/* ════════════════════════════════════════════════════════════
   main-streetkids.css  —  Gemeinsames Design-System StreetKids
   ════════════════════════════════════════════════════════════ */

/* ── FONTS ── */
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 400; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/baloo-2-v23-latin/baloo-2-v23-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 600; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/baloo-2-v23-latin/baloo-2-v23-latin-600.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 700; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/baloo-2-v23-latin/baloo-2-v23-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Baloo 2"; font-style: normal; font-weight: 800; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/baloo-2-v23-latin/baloo-2-v23-latin-800.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 400; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/lato-v25-latin/lato-v25-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Lato"; font-style: normal; font-weight: 700; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/lato-v25-latin/lato-v25-latin-700.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 400; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/playfair-dispplay-v40-latin/playfair-dispplay-v40-latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Playfair Display"; font-style: normal; font-weight: 700; font-display: swap; src: url("https://www.vhc.eu/images-fonts/fonts/playfair-dispplay-v40-latin/playfair-dispplay-v40-latin-700.woff2") format("woff2"); }

/* ── VARIABLEN ── */
:root {
  --cream:     #fdf6e3;
  --sand:      #e8d5b0;
  --orange:    #d4691e;
  --rust:      #a84219;
  --green:     #4a7c59;
  --darkgreen: #2d5940;
  --brown:     #5c3d2e;
  --sky:       #87ceeb;
  --text:      #2c1810;
  --muted:     #8b6b5a;
  --cream2:    #f5ead0;
  --sand2:     #d4bc8e;
}

/* ── RESET ── */
* { box-sizing: border-box; margin: 0; padding: 0; }

/* ── BODY ── */
body {
  font-family: 'Lato', sans-serif;
  background: var(--cream);
  color: var(--text);
  min-height: 100vh;
}

/* Spielseiten brauchen flex-column für footer-push */
body.game-page {
  display: flex;
  flex-direction: column;
}

/* ════════════════════════════════════════════════════════════
   HEADER
   ════════════════════════════════════════════════════════════ */
header {
  background: linear-gradient(180deg, var(--sky) 0%, #b8e4f5 60%, var(--cream) 100%);
  padding: 16px 32px 20px;
  position: relative;
  overflow: hidden;
  border-bottom: 3px solid var(--sand);
}

/* Spielseiten: header als flex-Container */
header:has(.header-left) {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

/* Index/FAQ: header-inner auf volle Breite */
header:has(.header-inner) {
  display: flex;
}

/* Wolken */
header::before {
  content: '☁  ☁   ☁';
  position: absolute;
  top: 8px; left: 5%;
  font-size: 1.1rem;
  color: rgba(255,255,255,0.8);
  letter-spacing: 24px;
  pointer-events: none;
}

/* Grasboden */
header::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 14px;
  background: var(--green);
  clip-path: polygon(
    0% 100%, 0% 60%, 2% 20%, 4% 60%, 6% 10%, 8% 55%,
    10% 100%, 12% 50%, 14% 15%, 16% 60%, 18% 5%, 20% 55%,
    22% 100%, 24% 45%, 26% 20%, 28% 65%, 30% 10%, 32% 50%,
    34% 100%, 36% 55%, 38% 15%, 40% 60%, 42% 5%, 44% 55%,
    46% 100%, 48% 45%, 50% 20%, 52% 65%, 54% 10%, 56% 50%,
    58% 100%, 60% 55%, 62% 15%, 64% 60%, 66% 5%, 68% 55%,
    70% 100%, 72% 45%, 74% 20%, 76% 65%, 78% 10%, 80% 50%,
    82% 100%, 84% 55%, 86% 15%, 88% 60%, 90% 5%, 92% 55%,
    94% 100%, 96% 50%, 98% 20%, 100% 60%, 100% 100%
  );
}

/* Index-Header-Innenlayout */
.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  width: 100%;
  padding-bottom: 24px;
}

/* Spielseiten-Header-Innenlayout */
.header-left {
  display: flex;
  align-items: center;
  gap: 20px;
  position: relative;
  z-index: 1;
  padding-bottom: 18px;
}

/* ── LOGO ── */
.logo {
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  color: var(--brown);
  line-height: 1;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.1);
  text-decoration: none;
}
.logo em { color: var(--orange); font-style: normal; }

/* Index: größeres Logo */
.header-inner .logo {
  font-size: 3.2rem;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.1);
  letter-spacing: 1px;
}

/* Spielseiten: kleineres Logo */
.header-left .logo {
  font-size: 1.9rem;
}

/* ── TAGLINE (Index) ── */
.tagline {
  font-size: 0.85rem;
  color: var(--muted);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 4px;
  font-weight: 700;
}

/* ── NAV (Index) ── */
nav {
  display: flex;
  gap: 8px;
}
nav a {
  background: rgba(255,255,255,0.6);
  border: 2px solid var(--sand);
  color: var(--brown);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.8rem;
  padding: 8px 16px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
}
nav a:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ── BACK-LINK (Spielseiten) ── */
.back-link {
  background: rgba(255,255,255,0.6);
  border: 2px solid var(--sand);
  color: var(--brown);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 7px 14px;
  border-radius: 20px;
  letter-spacing: 1px;
  text-transform: uppercase;
  transition: background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.back-link:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}

/* ── GAME TITLE HEADER (Spielseiten) ── */
.game-title-header {
  position: relative;
  z-index: 1;
  padding-bottom: 18px;
  text-align: right;
}
.game-title-header h1 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--brown);
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: flex-end;
}
.game-title-header p {
  font-size: 0.72rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Header-Icon (klein, im Titel) */
.header-game-icon {
  width: 28px; height: 28px;
  border-radius: 6px;
  object-fit: cover;
  vertical-align: middle;
}

/* ════════════════════════════════════════════════════════════
   SALE BANNER (Index)
   ════════════════════════════════════════════════════════════ */
.sale-banner {
  background: var(--brown);
  color: var(--cream);
  padding: 20px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  overflow: hidden;
}
.sale-banner::before {
  content: '🏷️';
  position: absolute;
  right: 280px;
  font-size: 5rem;
  opacity: 0.08;
  top: 50%;
  transform: translateY(-50%);
}
.sale-banner h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--sand);
}
.sale-banner p {
  font-size: 0.82rem;
  opacity: 0.75;
  margin-top: 3px;
}
.sale-domains {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}
.domain-badge {
  background: rgba(255,255,255,0.1);
  border: 2px solid var(--sand);
  border-radius: 6px;
  padding: 8px 14px;
  font-family: 'Baloo 2', cursive;
  font-size: 1rem;
  color: var(--sand);
  font-weight: 700;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s, transform 0.15s;
  display: inline-block;
}
.domain-badge:hover {
  background: var(--orange);
  border-color: var(--orange);
  transform: translateY(-2px);
}

/* ════════════════════════════════════════════════════════════
   MAIN / INDEX-LAYOUT
   ════════════════════════════════════════════════════════════ */
main { padding: 40px; max-width: 1100px; margin: 0 auto; }

/* Spielseiten: main zentriert, flex */
body.game-page main {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 20px 40px;
  max-width: none;
}

/* ── SECTION HEADER ── */
.section-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
}
.section-header h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--brown);
  white-space: nowrap;
}
.section-line {
  flex: 1;
  height: 2px;
  background: var(--sand);
  border-radius: 2px;
}

/* ── KATEGORIE ── */
.games-category { margin-bottom: 36px; }
.games-category:last-child { margin-bottom: 0; }

.category-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
  margin-top: 8px;
}
.category-header h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.category-line {
  flex: 1;
  height: 1px;
  background: var(--sand);
  border-radius: 1px;
}

/* ── GAMES GRID ── */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 14px;
}

.game-card {
  background: #fff;
  border: 2px solid var(--sand);
  border-radius: 14px;
  padding: 22px 14px;
  text-align: center;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  position: relative;
  text-decoration: none;
  display: block;
  color: inherit;
}
.game-card:hover {
  transform: translateY(-4px);
  border-color: var(--orange);
  box-shadow: 0 8px 20px rgba(212,105,30,0.2);
}
.game-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 10px;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}
.game-card h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brown);
}
.game-card p {
  font-size: 0.7rem;
  color: var(--muted);
  margin-top: 3px;
}

/* ── INDEX BADGES ── */
.badge-new {
  position: absolute;
  top: -4px; right: -6px;
  width: 68px; height: 36px;
  background: none;
  border: none;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  z-index: 2;
}
.badge-new svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  overflow: visible;
}
.badge-new span {
  position: relative;
  z-index: 1;
  font-family: 'Baloo 2', cursive;
  font-weight: 800;
  font-size: 0.72rem;
  letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
  transform: rotate(-4deg);
  display: block;
  margin-top: 2px;
}

.badge-update {
  position: absolute;
  top: 8px; left: 8px;
  background: #00ff88;
  border-radius: 4px;
  font-size: 0.52rem;
  padding: 2px 6px;
  color: #1a3d2a;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 800;
  font-family: 'Baloo 2', cursive;
  z-index: 2;
}

.badge-soon {
  position: absolute;
  top: 8px; right: 8px;
  background: rgba(139,58,195,0.15);
  border: 1px solid #8b3ac3;
  border-radius: 4px;
  font-size: 0.52rem;
  padding: 2px 6px;
  color: #8b3ac3;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 800;
  font-family: 'Baloo 2', cursive;
  z-index: 2;
}

.badge-mobile {
  position: absolute;
  bottom: 10px; left: 10px;
  color: var(--orange);
  font-size: 0;
  line-height: 0;
}

/* ════════════════════════════════════════════════════════════
   FAQ GRID (Index)
   ════════════════════════════════════════════════════════════ */
#faq .section-header h2 { color: var(--darkgreen); }

.faq-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.faq-card {
  background: #fff;
  border: 2px solid #c8ddc0;
  border-radius: 16px;
  padding: 28px 24px 24px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
  position: relative;
  overflow: hidden;
  text-decoration: none;
  display: block;
}
.faq-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--green), var(--darkgreen));
  opacity: 0;
  transition: opacity 0.2s;
}
.faq-card:hover {
  transform: translateY(-4px);
  border-color: var(--green);
  box-shadow: 0 10px 28px rgba(74,124,89,0.18);
  background: #f7fdf8;
}
.faq-card:hover::before { opacity: 1; }
.faq-icon {
  font-size: 2.4rem;
  margin-bottom: 12px;
  display: block;
  line-height: 1;
}
.faq-card h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--darkgreen);
  margin-bottom: 8px;
  line-height: 1.3;
}
.faq-card p {
  font-size: 0.78rem;
  color: var(--muted);
  line-height: 1.65;
}
.faq-badge {
  position: absolute;
  top: 12px; right: 12px;
  background: #e8f5e9;
  border: 1px solid #a5d6a7;
  border-radius: 4px;
  font-size: 0.58rem;
  padding: 2px 7px;
  color: var(--darkgreen);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  font-family: 'Lato', sans-serif;
}

/* ════════════════════════════════════════════════════════════
   SPIELSEITEN — CANVAS & OVERLAY
   ════════════════════════════════════════════════════════════ */
.canvas-wrap {
  position: relative;
  border: 3px solid var(--sand);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(92,61,46,0.15);
}
canvas { display: block; }

.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(253,246,227,0.93);
  gap: 10px;
  text-align: center;
  padding: 20px;
  z-index: 5;
}
.overlay.hidden { display: none; }

.overlay-icon { font-size: 3.5rem; }
.overlay-icon img {
  width: 72px; height: 72px;
  border-radius: 50%;
  object-fit: cover;
}

.overlay h2 {
  font-family: 'Baloo 2', cursive;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--brown);
}
.overlay h2.dead   { color: var(--rust); }
.overlay h2.paused { color: var(--orange); }

.overlay p {
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  max-width: 280px;
}
.overlay p strong { color: var(--orange); }
.overlay p.level-info {
  color: var(--green);
  font-weight: 700;
  font-size: 0.75rem;
}

.btn-start {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 11px 30px;
  font-family: 'Baloo 2', cursive;
  font-size: 1.05rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.15s;
  margin-top: 4px;
}
.btn-start:hover {
  background: var(--rust);
  transform: translateY(-2px);
}
.btn-start span { position: relative; z-index: 1; }

@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }
.overlay-hint {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  font-weight: 700;
  animation: blink 1.5s ease-in-out infinite;
}

/* ── SCORE BAR (Spielseiten) ── */
.score-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 420px;
  margin-bottom: 14px;
  gap: 10px;
}

/* ── SCORE BOX (Basis) ── */
.score-box {
  background: #fff;
  border: 2px solid var(--sand);
  border-radius: 12px;
  padding: 8px 18px;
  text-align: center;
  flex: 1;
}
.score-box label {
  display: block;
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 700;
}
.score-box span {
  font-family: 'Baloo 2', cursive;
  font-size: 1.3rem;
  font-weight: 800;
  color: var(--brown);
  line-height: 1.1;
}
.score-box.best span  { color: var(--green); }
.score-box.lives span { color: var(--rust); font-size: 0.9rem; letter-spacing: 2px; }
.score-box.level span { color: var(--orange); }
.score-box.power span { color: var(--darkgreen); font-size: 0.72rem; }

/* ── LIVES BOX (Space Shooter etc.) ── */
.lives-box {
  background: #fff;
  border: 2px solid var(--sand);
  border-radius: 12px;
  padding: 8px 14px;
  text-align: center;
  flex: 1;
  min-height: 58px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.lives-box label {
  display: block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 2px;
}
.hearts-row {
  font-size: 1.1rem;
  line-height: 1.3;
  display: flex;
  justify-content: center;
  gap: 1px;
}
.hearts-bonus {
  font-size: 0.95rem;
  line-height: 1.3;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  min-height: 18px;
}

/* ── DIFFICULTY BUTTONS (Spielseiten) ── */
.diff-label {
  font-size: 0.72rem;
  color: var(--muted);
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 4px;
}
.diff-btns { display: flex; gap: 8px; margin-top: 2px; }
.diff-btn {
  background: #fff;
  border: 2px solid var(--sand);
  color: var(--brown);
  font-family: 'Baloo 2', cursive;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 7px 16px;
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.15s;
}
.diff-btn:hover { border-color: var(--orange); color: var(--orange); }
.diff-btn.active { background: var(--orange); border-color: var(--orange); color: #fff; }

/* ── CONTROLS HINT (Tastatur-Hinweise) ── */
.controls-hint {
  margin-top: 16px;
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
}
.key {
  background: #fff;
  border: 2px solid var(--sand);
  border-radius: 6px;
  width: 30px; height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
  box-shadow: 0 2px 0 var(--sand);
}
.key-wide { width: auto; padding: 0 10px; }
.key-hint-label {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin: 0 4px;
}

/* ── MOBILE CONTROLS: DPAD (Snake, Space Shooter etc.) ── */
.mobile-controls {
  display: none;
  margin-top: 20px;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.dpad-row { display: flex; gap: 8px; align-items: center; }
.dpad-btn {
  width: 52px; height: 52px;
  background: #fff;
  border: 2px solid var(--sand);
  border-radius: 10px;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: background 0.15s, transform 0.1s;
  box-shadow: 0 3px 0 var(--sand);
  color: var(--brown);
  touch-action: none;
}
.dpad-btn:active {
  background: var(--orange);
  color: #fff;
  transform: translateY(2px);
  box-shadow: none;
}
.shoot-btn {
  width: 68px; height: 68px;
  background: var(--orange);
  border: 3px solid var(--rust);
  border-radius: 50%;
  font-size: 1.6rem;
  box-shadow: 0 4px 0 var(--rust);
  color: #fff;
}
.shoot-btn:active {
  background: var(--rust);
  transform: translateY(3px);
  box-shadow: none;
}

/* ── MOBILE CONTROLS: CTRL-BTN (Asteroids/Breakout) ── */
.ctrl-row { display: flex; gap: 8px; align-items: center; }
.ctrl-btn {
  width: 54px; height: 54px;
  background: #fff;
  border: 2px solid var(--sand);
  border-radius: 10px;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  transition: all 0.15s;
  color: var(--brown);
  box-shadow: 0 3px 0 var(--sand);
  touch-action: none;
}
.ctrl-btn.fire {
  width: 80px;
  color: var(--orange);
  border-color: var(--orange);
  font-family: 'Baloo 2', cursive;
  font-size: 0.85rem;
  font-weight: 700;
}
.ctrl-btn:active, .ctrl-btn.pressed {
  background: var(--orange);
  border-color: var(--rust);
  color: #fff;
  transform: translateY(2px);
  box-shadow: none;
}
.ctrl-btn.fire:active, .ctrl-btn.fire.pressed {
  background: var(--rust);
  border-color: var(--rust);
  color: #fff;
  transform: translateY(2px);
  box-shadow: none;
}

/* Mobile Controls: Einblenden */
@media (max-width: 500px) {
  .mobile-controls { display: flex; }
  .controls-hint { display: none; }
}
@media (hover: none) and (pointer: coarse) {
  .mobile-controls { display: flex; }
  .controls-hint { display: none; }
}

/* ── ACTION BUTTONS (Mahjong Hint/New etc.) ── */
.btn-action {
  background: #fff;
  border: 2px solid var(--sand);
  border-radius: 20px;
  padding: 8px 18px;
  font-family: 'Baloo 2', cursive;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--brown);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  white-space: nowrap;
}
.btn-action:hover { background: var(--orange); border-color: var(--orange); color: #fff; }
.btn-action.hint-btn:hover { background: var(--green); border-color: var(--green); color: #fff; }

/* ── START-GAME BUTTON (Setup-Screens) ── */
.btn-start-game {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 14px 32px;
  font-family: 'Baloo 2', cursive;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.2s, transform 0.15s;
}
.btn-start-game:hover { background: var(--rust); transform: translateY(-2px); }
.btn-start-game:disabled { background: var(--sand); color: var(--muted); cursor: not-allowed; transform: none; }

/* ════════════════════════════════════════════════════════════
   FAQ-SEITEN — GEMEINSAMES LAYOUT
   ════════════════════════════════════════════════════════════ */

.book-wrap {
  max-width: 780px;
  margin: 44px auto 60px;
  padding: 0 20px;
}

/* Titelblock */
.book-header {
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 32px;
}
.book-header-top {
  padding: 34px 40px 30px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.book-header-icon {
  font-size: 4.5rem;
  line-height: 1;
  flex-shrink: 0;
  filter: drop-shadow(0 3px 10px rgba(0,0,0,0.3));
}
.book-header-titles h2 {
  font-family: 'Playfair Display', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--cream);
  line-height: 1.15;
}
.book-header-titles .subtitle {
  font-size: 0.75rem;
  color: rgba(253,246,227,0.55);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-top: 6px;
  font-weight: 700;
}
.book-header-bottom {
  background: var(--cream2);
  border-top: 3px solid var(--sand2);
  padding: 22px 40px 24px;
}
.book-header-bottom p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.75;
}
.book-meta {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}
.meta-chip {
  background: #fff;
  border: 1.5px solid var(--sand2);
  border-radius: 20px;
  padding: 4px 13px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brown);
}

/* Spiel-Karte (FAQ-Einträge) */
.game-entry {
  background: #fff;
  border: 1.5px solid var(--sand);
  border-radius: 14px;
  padding: 26px 32px 24px;
  margin-bottom: 16px;
  position: relative;
  box-shadow: 0 2px 10px rgba(92,61,46,0.07);
  overflow: hidden;
}
.game-entry::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent, var(--orange)), var(--accent2, var(--rust)));
  border-radius: 14px 14px 0 0;
}
.game-number {
  position: absolute;
  top: 14px; right: 22px;
  font-family: 'Playfair Display', serif;
  font-size: 3.2rem;
  font-weight: 700;
  color: var(--sand);
  line-height: 1;
  user-select: none;
}
.game-entry h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brown);
  margin-bottom: 12px;
  margin-top: 4px;
  padding-right: 52px;
}
.game-chips {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--cream);
  border: 1.5px solid var(--sand);
  border-radius: 20px;
  padding: 3px 10px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
}
.chip.green  { border-color: #b2d8b8; background: #f0faf2; color: var(--darkgreen); }
.chip.orange { border-color: #f0c49a; background: #fef6ee; color: var(--rust); }
.chip.blue   { border-color: #a8cfe0; background: #f0f8fc; color: #3a6b8a; }
.chip.purple { border-color: #d4a8d4; background: #faf0fa; }

.game-entry p {
  font-size: 0.88rem;
  line-height: 1.78;
  color: var(--text);
}
.game-entry p + p { margin-top: 8px; }

.game-tip {
  margin-top: 14px;
  padding: 10px 14px;
  border: 1px solid var(--sand);
  border-left: 3px solid var(--accent, var(--orange));
  border-radius: 0 8px 8px 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.65;
}
.game-tip strong { color: var(--accent, var(--orange)); }

/* Nostalgie-Hinweis (Strassenspiele) */
.nostalgie {
  background: #fffbf0;
  border: 1.5px solid var(--sand2);
  border-radius: 12px;
  padding: 18px 24px;
  margin-bottom: 20px;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.7;
  font-style: italic;
  text-align: center;
}
.nostalgie strong {
  color: var(--brown);
  font-style: normal;
}

/* FAQ Responsive — merged into main mobile block below */

/* ════════════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════════════ */
footer {
  background: var(--brown);
  color: var(--sand);
  padding: 16px 40px;
  text-align: center;
  font-size: 0.65rem;
}
footer a { color: var(--orange); text-decoration: none; }
footer a:hover { text-decoration: underline; }
.footer-info {
  margin-top: 6px;
  font-size: 0.62rem;
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
}

/* Spielseiten-Footer */
body.game-page footer {
  color: rgba(255,255,255,0.25);
  line-height: 1.6;
  flex-shrink: 0;
}

/* ════════════════════════════════════════════════════════════
   MOBILE OPTIMIZATION: max-width: 600px
   ════════════════════════════════════════════════════════════ */
@media (max-width: 600px) {

  /* ── FAQ PAGES ── */
  .book-header-top { padding: 24px 22px; gap: 16px; }
  .book-header-icon { font-size: 3rem; }
  .book-header-titles h2 { font-size: 1.5rem; }
  .book-header-bottom { padding: 16px 22px 18px; }
  .game-entry { padding: 22px 18px 20px; }
  .game-number { font-size: 2.4rem; top: 12px; right: 14px; }

  /* ── HEADER ── */
  header {
    padding: 14px 20px 16px;
    flex-wrap: wrap;
  }

  .header-inner {
    padding-bottom: 18px;
  }

  .header-inner .logo {
    font-size: 2.4rem;
  }

  body.game-page header {
    padding: 12px 16px 14px;
  }

  .header-left .logo {
    font-size: 1.5rem;
  }

  .back-link {
    font-size: 0.68rem;
    padding: 6px 12px;
  }

  /* ── NAVIGATION ── */
  nav {
    flex-direction: column;
    gap: 4px;
    width: 100%;
    margin-top: 10px;
  }

  nav a {
    font-size: 0.72rem;
    padding: 7px 14px;
    flex: 1;
    text-align: center;
  }

  /* ── GAME TITLE HEADER (Spielseiten) ── */
  .game-title-header {
    text-align: center;
    width: 100%;
    margin-top: 6px;
    padding-bottom: 0;
  }

  .game-title-header h1 {
    font-size: 1.1rem;
    justify-content: center;
  }

  .game-title-header p {
    font-size: 0.65rem;
  }

  /* ── SALE BANNER ── */
  .sale-banner {
    flex-direction: column;
    padding: 16px 20px;
    text-align: center;
  }

  .sale-banner h2 {
    font-size: 1.1rem;
  }

  .sale-domains {
    justify-content: center;
  }

  /* ── MAIN ── */
  main {
    padding: 28px 20px;
  }

  body.game-page main {
    padding: 20px 16px 30px;
  }

  /* ── SECTION HEADER ── */
  .section-header {
    margin-bottom: 20px;
    gap: 12px;
  }

  .section-header h2 {
    font-size: 1.3rem;
  }

  .category-header h3 {
    font-size: 0.85rem;
  }

  /* ── GAMES GRID ── */
  .games-grid {
    grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    gap: 10px;
  }

  .game-card {
    padding: 18px 10px 16px;
  }

  .game-icon {
    width: 64px;
    height: 64px;
    margin-bottom: 8px;
  }

  .game-card h3 {
    font-size: 0.82rem;
  }

  .game-card p {
    font-size: 0.62rem;
  }

  /* ── FAQ GRID ── */
  .faq-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .faq-card {
    padding: 22px 18px 18px;
  }

  .faq-card h3 {
    font-size: 0.95rem;
  }

  /* ── SCORE BAR (Spielseiten) ── */
  .score-bar {
    max-width: 100%;
    width: 100%;
    margin-bottom: 12px;
    gap: 8px;
  }

  .score-box {
    padding: 6px 10px;
  }

  .score-box label {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
  }

  .score-box span {
    font-size: 1.2rem;
  }

  .lives-box {
    padding: 6px 10px;
  }

  .lives-box label {
    font-size: 0.55rem;
    letter-spacing: 1.5px;
    margin-bottom: 2px;
  }

  .hearts-row {
    font-size: 0.95rem;
    gap: 1px;
  }

  .hearts-bonus {
    font-size: 0.85rem;
    gap: 3px;
  }

  /* ── CANVAS WRAP ── */
  .canvas-wrap {
    border-width: 2px;
  }

  /* ── OVERLAY ── */
  .overlay {
    padding: 16px;
    gap: 8px;
  }

  .overlay h2 {
    font-size: 1.4rem;
  }

  .overlay p {
    font-size: 0.78rem;
  }

  .overlay-icon img {
    width: 56px;
    height: 56px;
  }

  /* ── CONTROLS HINT ── */
  .controls-hint {
    margin-top: 12px;
    gap: 6px;
  }

  .key {
    width: 28px;
    height: 28px;
    font-size: 0.65rem;
  }

  .key-hint-label {
    font-size: 0.6rem;
  }

  /* ── DIFFICULTY BUTTONS ── */
  .diff-btns {
    gap: 6px;
  }

  .diff-btn {
    font-size: 0.78rem;
    padding: 6px 12px;
  }

  /* ── FOOTER ── */
  footer {
    padding: 14px 20px;
    font-size: 0.58rem;
  }

  .footer-info {
    font-size: 0.55rem;
  }

}


/* ── BUG REPORT: Button + Modal ── */
.bug-report-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  cursor: pointer;
  padding: 8px 16px;
  border: 2px solid var(--sand);
  border-radius: 10px;
  transition: all 0.2s;
  margin-top: 20px;
}
.bug-report-btn:hover {
  border-color: var(--orange);
  box-shadow: 0 6px 16px rgba(212,105,30,0.2);
  transform: translateY(-2px);
}
.bug-report-btn img {
  height: 52px;
  width: auto;
  display: block;
}
.bug-report-btn span {
  font-family: 'Baloo 2', cursive;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.bug-report-btn:hover span {
  color: var(--orange);
}

.bug-modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(253,246,227,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.bug-modal-bg.open { display: flex; }

.bug-modal {
  background: #fff;
  border: 2px solid var(--sand);
  border-radius: 16px;
  padding: 28px 26px 24px;
  max-width: 400px;
  width: 100%;
  position: relative;
  box-shadow: 0 12px 40px rgba(92,61,46,0.2);
  max-height: 90vh;
  overflow-y: auto;
}
.bug-modal::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--orange), var(--rust));
  border-radius: 16px 16px 0 0;
}

.bug-modal-close {
  position: absolute;
  top: 10px; right: 14px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.4rem;
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
}
.bug-modal-close:hover { color: var(--rust); }

.bug-modal h3 {
  font-family: 'Baloo 2', cursive;
  font-size: 1rem;
  font-weight: 700;
  color: var(--rust);
  margin-bottom: 6px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.bug-modal h3 img {
  height: 32px;
  width: auto;
}

.bug-modal .bug-page-info {
  font-size: 0.68rem;
  color: var(--muted);
  margin-bottom: 16px;
  letter-spacing: 0.5px;
}

.bug-modal textarea {
  width: 100%;
  min-height: 110px;
  background: var(--cream);
  border: 2px solid var(--sand);
  border-radius: 10px;
  color: var(--text);
  font-family: 'Lato', sans-serif;
  font-size: 0.85rem;
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
  margin-bottom: 4px;
}
.bug-modal textarea:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 8px rgba(212,105,30,0.15);
}

.bug-modal .char-count {
  font-size: 0.62rem;
  color: var(--muted);
  text-align: right;
  margin-bottom: 12px;
}
.bug-modal .char-count.warn { color: var(--rust); }

.bug-captcha {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.bug-captcha canvas {
  border-radius: 6px;
  display: block;
  flex-shrink: 0;
}
.bug-captcha input {
  width: 48px;
  background: var(--cream);
  border: 2px solid var(--sand);
  border-radius: 6px;
  color: var(--brown);
  font-family: 'Baloo 2', cursive;
  font-size: 1rem;
  font-weight: 700;
  padding: 6px;
  text-align: center;
  -moz-appearance: textfield;
}
.bug-captcha input::-webkit-outer-spin-button,
.bug-captcha input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.bug-captcha input:focus {
  outline: none;
  border-color: var(--orange);
}

.bug-modal .btn-send {
  width: 100%;
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 11px;
  font-family: 'Baloo 2', cursive;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 1px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
}
.bug-modal .btn-send:hover {
  background: var(--rust);
  transform: translateY(-2px);
}
.bug-modal .btn-send span { position: relative; z-index: 1; }
.bug-modal .btn-send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.bug-modal .bug-status {
  font-size: 0.72rem;
  text-align: center;
  margin-top: 10px;
  min-height: 1.2em;
  letter-spacing: 0.5px;
}
.bug-modal .bug-status.success { color: var(--green); }
.bug-modal .bug-status.error { color: var(--rust); }

/* ── LANG SWITCHER ── */
.lang-switcher {
  display: flex;
  gap: 6px;
  align-items: center;
}
.lang-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(255,255,255,0.7);
  border: 2px solid var(--sand);
  border-radius: 8px;
  padding: 4px 10px;
  font-family: 'Lato', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--brown);
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: background 0.15s, border-color 0.15s;
}
.lang-btn:hover {
  background: rgba(212,105,30,0.1);
  border-color: var(--orange);
}
.lang-btn.active {
  background: rgba(212,105,30,0.15);
  border-color: var(--orange);
  color: var(--rust);
}
.lang-flag {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}
