/* ========================================
   Barlow Font (local)
   ======================================== */

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("../fonts/Barlow/Barlow-Regular.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("../fonts/Barlow/Barlow-SemiBold.woff2") format("woff2");
}

@font-face {
  font-family: "Barlow";
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("../fonts/Barlow/Barlow-Bold.woff2") format("woff2");
}

/* ========================================
   Reset & Base
   ======================================== */

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body,
html {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  -ms-touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  font-family: "Barlow", sans-serif;
  background: #002c47;
}

/* ========================================
   Page Container
   ======================================== */

.page {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

/* ========================================
   Background
   ======================================== */

.bg-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(157deg, #002c47 0%, #176a9e 99%);
  z-index: 1;
}

.bg-overlay {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 2;
  pointer-events: none;
  opacity: 0.6;
}

/* ========================================
   Content Layer - Flex Column Layout
   ======================================== */

.content {
  position: relative;
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  height: 100%;
  padding: 4vh 5vw;
  max-width: 1200px;
  margin: 0 auto;
}

/* ========================================
   Title
   ======================================== */

.title {
  font-family: "Barlow", sans-serif;
  font-size: clamp(32px, 5vh, 64px);
  font-weight: 700;
  color: #cad400;
  text-align: center;
  line-height: 1.1;
  margin-top: 2vh;
  flex-shrink: 0;
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

/* ========================================
   Hero Row (Mascot + Bubble)
   ======================================== */

.hero-row {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  flex: 1;
  position: relative;
  z-index: 5;
}

.mascot {
  /* Min 300px for mobile, Max 1200px for kiosk */
  height: clamp(300px, 65vh, 1200px); 
  width: auto;
  transform: rotate(8deg);
  margin-right: -60px;
  margin-left: -32.5vw;
  margin-top: -5vh;
  z-index: 6; 
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.2));
}

.speech-bubble-wrap {
  position: relative;
  z-index: 10;
  margin-top: -22.5vh;
  margin-left: -7.5vw;
  transform: rotate(-2deg);
  /* Min 280px for mobile, Max 800px for kiosk */
  width: clamp(280px, 60vw, 800px);
}

.speech-bubble {
  width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.1));
}

.speech-bubble-text {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80%;
  text-align: center;
  font-family: "Barlow", sans-serif;
  font-weight: 700;
  font-size: clamp(2.25rem, 5vw, 5rem); /* Lower min font size */
  color: #002c47;
  line-height: 1.1;
  pointer-events: none;
}

/* ========================================
   Game Cards
   ======================================== */

.game-cards {
  display: flex;
  gap: 6vw;
  align-items: flex-start;
  justify-content: center;
  margin-top: -22.5vh;
  margin-bottom: 5vh;
  flex-shrink: 0;
  z-index: 8;
  width: 100%;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5vh;
  text-decoration: none;
  /* Min 160px for mobile, Max 550px for kiosk */
  width: clamp(160px, 40vw, 550px);
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
}

.game-card:hover {
  transform: scale(1.05);
}

.game-card:active {
  transform: scale(0.95);
}

.game-thumb {
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  border: 5px solid #cad400;
  border-radius: 20px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  display: block;
  background: #002c47;
}

.game-label {
  font-family: "Barlow", sans-serif;
  font-size: clamp(16px, 2.5vh, 32px);
  font-weight: 700;
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  text-align: center;
}

/* ========================================
   Footer
   ======================================== */

.footer {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2.5vh;
  margin-bottom: 5vh;
  flex-shrink: 0;
}

.footer a {
  text-decoration: none;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-logo {
  height: clamp(60px, 10vh, 180px); /* Min 60px for mobile */
  width: auto;
  margin-bottom: 1vh;
}

.footer-url {
  display: inline-block;
  padding: 14px 28px;
  background: #cad400;
  color: #002c47;
  font-family: "Barlow", sans-serif;
  font-size: clamp(50px, 3vh, 32px);
  font-weight: 400;
  text-align: center;
  border-radius: 4px;
}

.footer-url strong {
  font-weight: 700;
}

/* ========================================
   Media Queries for Landscape / Desktop
   ======================================== */

@media (min-aspect-ratio: 1/1) {
  .content {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 4vw;
  }

  .title {
    width: 100%;
    margin-bottom: 20px;
  }

  .hero-row {
    width: auto;
    flex: 0 0 auto;
    margin-right: 5vw;
  }

  .game-cards {
    width: auto;
    margin-bottom: 0;
  }

  .footer {
    width: 100%;
    margin-top: 40px;
    margin-bottom: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .game-card,
  .impressum-btn {
    transition: none;
  }
}
