/* =================================================================
   Eye of the Tiger — Styles
   Marken-Look: kräftiges Rot, runde Buttons, kinderfreundlich (6–12).
   Inspiriert vom RHEUMALIS Pieksolino: flachere Buttons, kompakter
   Next-Pfeil unten rechts, ruhige warme Karten-Optik, Dialog mit
   Sprechername in Markenrot.
   ================================================================= */

@import url("https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;800;900&display=swap");

:root {
  --brand-red: #c52a2a;
  --brand-red-dark: #9b1d1d;
  --brand-red-light: #e85c4a;
  --ink: #1f2430;
  --ink-soft: #3b4250;
  --muted: #6b7280;
  --paper: #f4ede0; /* warmer Papierton, passt zur Pieksolino-Illustration */
  --paper-dark: #ebe2d0;
  --card-bg: #ffffff;
  --surround: #1d1d1d; /* dunkler Rand außerhalb des Telefon-Frames */
  --gold: #f5b73a; /* Sterne */
  --radius-lg: 22px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --shadow-1: 0 6px 20px rgba(0, 0, 0, 0.12);
  --shadow-2: 0 18px 50px rgba(0, 0, 0, 0.35);
  --font: "Nunito", "Segoe UI", system-ui, -apple-system, sans-serif;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  height: 100%;
  height: 100dvh;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surround);
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
}

#app {
  position: relative;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  background: var(--surround);
}

/* ---------- Screen-Umschaltung ---------- */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
}
.screen.is-active {
  display: flex;
}

.center-screen {
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  padding: 24px;
}

/* "Telefon-Frame" auf größeren Screens: Portrait-Karten zentriert mit
   dunklem Rand drumherum (wie Pieksolino). Auf Mobilgeräten (klein oder
   im Querformat) füllen sie den Viewport komplett. */
.card-screen {
  align-items: center;
  justify-content: center;
  padding: 0;
  background: var(--surround);
}
.card-screen > * {
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: var(--paper);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  overflow: auto;
}
/* Frame nur wenn genug Platz in beide Richtungen vorhanden ist
   (Tablet hochkant / Desktop). Auf mobilem Querformat -> full bleed. */
@media (min-width: 700px) and (min-height: 700px) {
  .card-screen > * {
    height: min(900px, 92vh);
    aspect-ratio: 9 / 16;
    max-height: 92vh;
    border-radius: 28px;
    overflow: hidden;
    box-shadow: var(--shadow-2);
  }
}

/* ---------- Typo ---------- */
.brand-mark {
  font-weight: 800;
  letter-spacing: 0.22em;
  color: var(--brand-red);
  font-size: 12px;
  margin-top: 24px;
}
.game-title {
  font-size: clamp(28px, 6vw, 38px);
  font-weight: 900;
  margin: 0;
  color: var(--ink);
  line-height: 1.05;
  letter-spacing: -0.01em;
}
.game-title--light,
.muted--light {
  color: #fff;
}
.muted {
  color: var(--muted);
  margin: 0;
  font-size: 15px;
}
h2 {
  margin: 0;
  font-size: clamp(22px, 5vw, 28px);
  font-weight: 900;
}

/* ---------- Buttons ---------- */
.btn {
  font-family: inherit;
  font-weight: 800;
  border: none;
  border-radius: 14px;
  padding: 14px 22px;
  font-size: 17px;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: #fff;
}
.btn:active {
  transform: scale(0.97);
}
.btn-primary {
  background: var(--brand-red);
  color: #fff;
  border-radius: 16px;
}
.btn-primary:hover {
  background: var(--brand-red-dark);
}
.btn-block {
  width: 100%;
}
.btn-link {
  background: transparent;
  color: var(--brand-red);
  text-decoration: underline;
  padding: 8px;
  font-weight: 700;
}

/* Kompakter Next-Pfeil unten rechts (Pieksolino-Stil) */
.btn-next {
  background: var(--brand-red);
  color: #fff;
  width: clamp(78px, 22vmin, 110px);
  height: clamp(54px, 14vmin, 72px);
  border-radius: 16px;
  font-size: clamp(22px, 4.5vmin, 28px);
  padding: 0;
}

.btn-start {
  font-size: 22px;
  padding: 18px 56px;
  margin-top: 8px;
  border-radius: 18px;
}

/* ---------- Sprachauswahl ---------- */
.lang-body {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: clamp(10px, 2.4vmin, 18px);
  padding: clamp(20px, 4vmin, 36px) clamp(18px, 4vmin, 28px);
}
.owl-badge {
  width: clamp(96px, 32vmin, 170px);
  height: clamp(96px, 32vmin, 170px);
  border-radius: 50%;
  background: #fff5e6;
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 6px rgba(197, 42, 42, 0.12);
  overflow: hidden;
  margin: 8px 0;
}
.owl-badge__img {
  width: 92%;
  height: 92%;
  object-fit: contain;
}
.lang-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-top: 8px;
}
.btn-lang {
  background: #fff;
  color: var(--ink);
  border: 2px solid #e6e1d6;
  justify-content: flex-start;
  gap: 14px;
  border-radius: 16px;
}
.btn-lang:hover {
  border-color: var(--brand-red);
}
.flag {
  background: var(--brand-red);
  color: #fff;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.05em;
}

/* ---------- Topbar (Tutorial / Gameover / Bestenliste) ---------- */
.topbar {
  background: var(--brand-red);
  color: #fff;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  padding-top: max(8px, env(safe-area-inset-top));
  flex: 0 0 auto;
  min-height: 50px;
}
.topbar__side {
  display: flex;
  align-items: center;
  gap: 4px;
}
.topbar__side--right {
  justify-content: flex-end;
}
.topbar__btn {
  background: transparent;
  border: none;
  color: #fff;
  font-size: 22px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  border-radius: 10px;
  padding: 0;
}
.topbar__btn:active {
  background: rgba(255, 255, 255, 0.2);
}
.topbar__title {
  font-weight: 900;
  font-size: clamp(15px, 2.4vmin, 18px);
  letter-spacing: 0.01em;
  text-align: center;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.topbar__pill {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border: none;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.06em;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
  min-width: 44px;
}
.topbar__pill:active {
  background: rgba(255, 255, 255, 0.32);
}

/* ---------- Tutorial ---------- */
#screen-tutorial > .card-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.tutorial-art {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  place-items: center;
  min-height: 0;
  padding: 16px;
  background: linear-gradient(180deg, #f4e8c8, #e6d5a8);
  overflow: hidden;
}
.tutorial-art__img {
  max-width: min(78%, 320px);
  max-height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 20px rgba(0, 0, 0, 0.18));
}
.speech-bubble {
  position: absolute;
  top: 14px;
  right: 14px;
  background: #fff;
  color: var(--brand-red);
  border-radius: 16px;
  padding: 8px 14px;
  font-weight: 800;
  box-shadow: var(--shadow-1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}
.tutorial-body {
  flex: 0 0 auto;
  background: #fff;
  padding: clamp(14px, 3.5vmin, 26px) clamp(14px, 3.5vmin, 26px)
    max(clamp(14px, 3.5vmin, 26px), env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas:
    "title  ."
    "text   ."
    "dots   next"
    "skip   skip";
  gap: 8px 14px;
  align-items: end;
}
.tutorial-body__title {
  grid-area: title;
  font-size: clamp(18px, 3.6vmin, 24px);
  font-weight: 900;
  margin: 0;
  color: var(--brand-red); /* Sprechername-Stil wie bei Pieksolino */
}
.tutorial-body__text {
  grid-area: text;
  margin: 0;
  color: var(--ink-soft);
  font-size: clamp(15px, 2.4vmin, 18px);
  line-height: 1.6;
  white-space: pre-line;
  font-style: italic;
}
.tut-skip-btn {
  grid-area: skip;
  justify-self: center;
  font-size: 13px;
  color: var(--muted);
  padding: 2px 8px;
  margin-top: -4px;
}
#tut-next {
  grid-area: next;
}
.dots {
  grid-area: dots;
  display: flex;
  gap: 8px;
  align-items: center;
}
.dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8d0c0;
}
.dots span.is-on {
  background: var(--brand-red);
  transform: scale(1.25);
}

/* ---------- Sanfter Querformat-Hinweis im Spielscreen ---------- */
.landscape-hint {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-size: 13px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s;
}
.landscape-hint.is-visible {
  opacity: 1;
}
.landscape-hint__icon {
  font-size: 20px;
  animation: rotate-hint 2s ease-in-out infinite;
}
@keyframes rotate-hint {
  0%,
  40% {
    transform: rotate(0deg);
  }
  60%,
  100% {
    transform: rotate(-90deg);
  }
}

/* ---------- Start ---------- */
#screen-start {
  background: var(--surround);
  align-items: center;
  justify-content: center;
}
#screen-start > .card-content {
  width: 100%;
  max-width: 460px;
  height: 100%;
  background: radial-gradient(circle at 50% 30%, #2b3550, #131826);
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
@media (min-width: 700px) and (min-height: 700px) {
  #screen-start > .card-content {
    height: min(900px, 92vh);
    aspect-ratio: 9 / 16;
    max-height: 92vh;
    border-radius: 28px;
    box-shadow: var(--shadow-2);
  }
}

/* ---------- Spiel: schwarzer Bezel + gerundeter Viewport ---------- */
#screen-game {
  background: #000;
  overflow: hidden;
}
/* Spielfeld-Viewport in Form einer Augenuntersuchungs-Brille.
   Querformat: liegendes "Fernglas" mit dezenter, RUNDER Welle in der Mitte.
   Hochformat: stehende Pille (Einzel-Linse) — sanft gerundet ohne Pinch.
   Beide Formen leiten dieselbe "schau-da-rein"-Bildsprache, passend zur
   Bildschirm-Orientierung. */
.game-viewport {
  position: absolute;
  top: clamp(36px, 7vh, 52px);     /* Platz für HUD oben (Sterne, Score, Buttons) */
  bottom: clamp(28px, 5.5vh, 44px); /* Platz für Timer unten */
  left: clamp(4px, 1.2vw, 14px);
  right: clamp(4px, 1.2vw, 14px);
  overflow: hidden;
  background: #87c5e8; /* Fallback-Himmel, falls Canvas noch nicht gerendert */
  -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50' preserveAspectRatio='none'><path fill='black' d='M50,8 C35,8 25,3 15,3 C5,3 3,14 3,25 C3,36 5,47 15,47 C25,47 35,42 50,42 C65,42 75,47 85,47 C95,47 97,36 97,25 C97,14 95,3 85,3 C75,3 65,8 50,8 Z'/></svg>");
          mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 50' preserveAspectRatio='none'><path fill='black' d='M50,8 C35,8 25,3 15,3 C5,3 3,14 3,25 C3,36 5,47 15,47 C25,47 35,42 50,42 C65,42 75,47 85,47 C95,47 97,36 97,25 C97,14 95,3 85,3 C75,3 65,8 50,8 Z'/></svg>");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
@media (orientation: portrait) {
  /* Hochformat: zwei vertikal gestackte Linsen (Fernglas hochkant),
     smooth ohne Knicke, dezente runde Welle in der Mitte links/rechts. */
  .game-viewport {
    -webkit-mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 100' preserveAspectRatio='none'><path fill='black' d='M25,3 C12,3 3,12 3,25 C3,36 8,42 8,50 C8,58 3,64 3,75 C3,88 12,97 25,97 C38,97 47,88 47,75 C47,64 42,58 42,50 C42,42 47,36 47,25 C47,12 38,3 25,3 Z'/></svg>");
            mask-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 50 100' preserveAspectRatio='none'><path fill='black' d='M25,3 C12,3 3,12 3,25 C3,36 8,42 8,50 C8,58 3,64 3,75 C3,88 12,97 25,97 C38,97 47,88 47,75 C47,64 42,58 42,50 C42,42 47,36 47,25 C47,12 38,3 25,3 Z'/></svg>");
  }
}
#game-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  touch-action: manipulation;
}

.hud {
  position: absolute;
  z-index: 5;
  pointer-events: none;
}
/* HUD-Sterne + Score: oben links AUF dem schwarzen Bezel (außerhalb Viewport) */
.hud--topleft {
  top: max(6px, env(safe-area-inset-top));
  left: max(10px, env(safe-area-inset-left));
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: clamp(8px, 1.6vw, 16px);
  height: clamp(36px, 7vh, 60px);
}
.stars {
  display: flex;
  gap: 4px;
  font-size: clamp(18px, 3.4vmin, 28px);
  line-height: 1;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, 0.4));
}
.star {
  color: var(--gold);
}
.star.is-lost {
  color: rgba(255, 255, 255, 0.35);
}
.score {
  font-weight: 900;
  font-size: clamp(20px, 3.8vmin, 32px);
  color: #fff;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.5);
}
/* Timer: außerhalb des Viewports, unten mittig auf dem schwarzen Bezel */
.hud-timer {
  position: absolute;
  z-index: 5;
  bottom: max(8px, env(safe-area-inset-bottom));
  left: 50%;
  transform: translateX(-50%);
  font-weight: 900;
  font-size: clamp(22px, 5vmin, 34px);
  color: #fff;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.hud-timer.is-low {
  color: #ffd2d2;
  animation: pulse 1s ease-in-out infinite;
}
@keyframes pulse {
  50% {
    transform: translateX(-50%) scale(1.12);
  }
}
/* Mute-Button: oben rechts auf dem schwarzen Bezel, vertikal auf HUD-Linie */
.hud-mute {
  position: absolute;
  z-index: 5;
  top: max(6px, env(safe-area-inset-top));
  right: max(10px, env(safe-area-inset-right));
  width: clamp(34px, 6vmin, 44px);
  height: clamp(34px, 6vmin, 44px);
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: clamp(14px, 2.8vmin, 20px);
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hud-mute:active {
  background: rgba(255, 255, 255, 0.25);
}
/* Beenden-Button: links neben dem Mute-Button, gleiche Optik */
.hud-quit {
  position: absolute;
  z-index: 5;
  top: max(6px, env(safe-area-inset-top));
  right: calc(max(10px, env(safe-area-inset-right)) + clamp(34px, 6vmin, 44px) + 8px);
  width: clamp(34px, 6vmin, 44px);
  height: clamp(34px, 6vmin, 44px);
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: clamp(14px, 2.8vmin, 20px);
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.hud-quit:active {
  background: rgba(255, 255, 255, 0.25);
}
/* HUD-Reihe oben (Sterne+Score links, Mute rechts) auf einer Höhe */
#screen-game .hud--topleft,
#screen-game .hud-mute {
  /* sitzen jeweils in der oberen schwarzen Banderole */
}

.cue-label {
  position: absolute;
  z-index: 5;
  top: 14%;
  left: 50%;
  transform: translateX(-50%) translateY(-8px);
  background: #fff;
  color: var(--brand-red);
  font-weight: 900;
  padding: clamp(6px, 1.4vmin, 10px) clamp(12px, 2.6vmin, 22px);
  border-radius: 14px;
  box-shadow: var(--shadow-1);
  font-size: clamp(14px, 2.6vmin, 20px);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
  pointer-events: none;
  white-space: nowrap;
}
.cue-label.is-on {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.toast-layer {
  position: absolute;
  z-index: 6;
  top: 30%;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  pointer-events: none;
}
.toast {
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  font-weight: 900;
  padding: clamp(8px, 1.6vmin, 12px) clamp(14px, 3vmin, 22px);
  border-radius: 14px;
  font-size: clamp(16px, 3vmin, 22px);
  animation: toast-rise 1.4s ease forwards;
  white-space: nowrap;
}
.toast--bonus {
  background: #1c9b50;
}
.toast--star {
  background: var(--brand-red);
}
@keyframes toast-rise {
  0% {
    opacity: 0;
    transform: translateY(14px) scale(0.9);
  }
  15% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  80% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateY(-30px);
  }
}

/* ---------- Game Over ---------- */
#screen-gameover > .card-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  padding: 0;
}
.go-body {
  padding: 22px 22px max(22px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  flex: 1 1 auto;
  background: #fff;
}
.final-score {
  font-size: clamp(44px, 11vmin, 72px);
  font-weight: 900;
  color: var(--brand-red);
  line-height: 1;
}
.score-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
}
.text-input {
  font-family: inherit;
  font-size: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  border: 2px solid #e0dccf;
  text-align: center;
  width: 100%;
  background: #faf6ec;
}
.text-input:focus {
  outline: none;
  border-color: var(--brand-red);
  background: #fff;
}

/* ---------- Bestenliste ---------- */
#screen-leaderboard > .card-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.lb-body {
  padding: 22px 22px max(22px, env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1 1 auto;
  min-height: 0;
}
.leaderboard {
  list-style: none;
  margin: 0;
  padding: 0;
  width: 100%;
  flex: 1 1 auto;
  overflow-y: auto;
}
.leaderboard li {
  display: grid;
  grid-template-columns: 36px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  font-weight: 700;
}
.leaderboard li:nth-child(odd) {
  background: #f4efe4;
}
.leaderboard li .lb-rank {
  font-weight: 900;
  color: var(--brand-red);
  text-align: center;
}
.leaderboard li .lb-score {
  font-weight: 900;
}
.leaderboard li.is-me {
  background: #fff0c2;
  box-shadow: inset 0 0 0 2px var(--gold);
}

/* ---------- Fußzeile (Legal) ---------- */
.legal-footer {
  background: var(--surround);
  color: #c8c4bd;
  display: flex;
  gap: clamp(8px, 2vw, 20px);
  justify-content: center;
  align-items: center;
  font-size: clamp(10px, 2.2vmin, 12px);
  padding: clamp(8px, 1.6vmin, 14px) clamp(10px, 3vw, 22px);
  flex-wrap: wrap;
  width: 100%;
  margin: 0;
  /* edge-to-edge: keine Rundungen, ganze Breite, am unteren Rand der Karte */
}
.legal-footer a {
  color: inherit;
  text-decoration: underline;
}

/* In den schmalen Telefon-Frame-Karten den Footer-Boden mitrunden,
   damit er bündig im Rahmen abschließt. */
@media (min-width: 700px) and (min-height: 700px) {
  .card-screen > * {
    /* der Frame hat overflow:hidden, daher reicht das */
  }
}

/* ---------- Hilfsklassen ---------- */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
[hidden] {
  display: none !important;
}

/* Im Querformat bei kleiner Höhe (Smartphones, Tablets quer):
   kompakter, Footer raus, weniger Padding. */
@media (max-height: 520px) and (orientation: landscape) {
  .owl-badge {
    width: clamp(64px, 18vmin, 110px);
    height: clamp(64px, 18vmin, 110px);
    margin: 0;
  }
  .legal-footer {
    display: none;
  }
  #screen-language > .card-content,
  #screen-start > .card-content {
    padding: 14px 24px;
    gap: 8px;
  }
  .card-screen > * {
    padding-top: 0;
    padding-bottom: 0;
  }
  /* Sprachauswahl: zwei Buttons nebeneinander, kompakter */
  .lang-buttons {
    flex-direction: row;
    gap: 10px;
  }
  /* Tutorial: Illustration links, Text rechts. Beides nutzt die Höhe. */
  #screen-tutorial > .card-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto 1fr;
    grid-template-areas:
      "top  top"
      "art  body";
  }
  #screen-tutorial .topbar {
    grid-area: top;
  }
  #screen-tutorial .tutorial-art {
    grid-area: art;
    min-height: 0;
  }
  #screen-tutorial .tutorial-body {
    grid-area: body;
    align-self: stretch;
    align-items: stretch;
    overflow: auto;
  }
  /* Topbar etwas flacher */
  .topbar {
    min-height: 42px;
    padding: 6px 10px;
  }
  /* Game-Over / Bestenliste: weniger Luft */
  .final-score {
    font-size: clamp(36px, 14vmin, 64px);
  }
  .go-body,
  .lb-body {
    padding: 12px 20px;
    gap: 8px;
  }
}

/* Sehr schmale Telefone (z. B. iPhone SE 320px) */
@media (max-width: 360px) {
  .card-screen > * {
    overflow: auto;
  }
  .game-title {
    font-size: clamp(22px, 8vw, 30px);
  }
  .brand-mark {
    margin-top: 16px;
  }
}

/* Tablets hochkant: etwas mehr Luft in Karten, größerer Charakter */
@media (min-width: 700px) and (orientation: portrait) {
  .owl-badge {
    width: clamp(150px, 26vmin, 200px);
    height: clamp(150px, 26vmin, 200px);
  }
  .tutorial-body__title {
    font-size: 26px;
  }
  .tutorial-body__text {
    font-size: 18px;
  }
}
