:root {
  --bg: #0a0708;
  --bg-elevated: #140d10;
  --bg-soft: #1a1114;
  --card: rgba(24, 15, 18, 0.9);
  --card-strong: rgba(31, 13, 18, 0.96);
  --line: rgba(255, 255, 255, 0.09);
  --hairline: linear-gradient(90deg, transparent, rgba(232, 185, 106, 0.4), transparent);
  --text: #f7efe9;
  --muted: #c9b3aa;
  --muted-strong: #f0d3c8;
  --accent: #d32d54;
  --accent-2: #ff7d8d;
  --accent-3: #ffb1c0;
  --gold: #e8b96a;
  --gold-soft: #d9a75a;
  --glow: rgba(211, 45, 84, 0.35);
  --success: #f1d7d9;
  --shadow: 0 30px 70px rgba(22, 3, 9, 0.55);
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --ease-rev: cubic-bezier(0.25, 1, 0.5, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100dvh;
  font-family: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  background:
    radial-gradient(circle at top, rgba(211, 45, 84, 0.18), transparent 34%),
    linear-gradient(180deg, #0b0809 0%, #130b0d 100%);
  color: var(--text);
}

/* Grain-Overlay gegen digitale Flachheit */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.22;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='140' height='140' filter='url(%23n)'/%3E%3C/svg%3E");
}

.page-shell {
  position: relative;
  z-index: 2;
}

:focus-visible {
  outline: 2px solid var(--accent-2);
  outline-offset: 2px;
  border-radius: 6px;
}

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 20;
  padding: 0.7rem 1rem;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  transform: translateY(-160%);
  transition: transform 200ms var(--ease-out);
}

.skip-link:focus-visible {
  transform: translateY(0);
}

img {
  max-width: 100%;
  display: block;
}

button,
input {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding-bottom: 52px;
}

.topbar,
.footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 24px 0 18px;
}

.brand-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent) 0%, #8a152f 100%);
  color: white;
  font-weight: 800;
  box-shadow: 0 14px 30px rgba(211, 45, 84, 0.35);
}

.brand-mark svg {
  width: 23px;
  height: 23px;
  display: block;
}

.brand-name {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.brand-sub {
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.nav {
  display: flex;
  gap: 18px;
  align-items: center;
}

.nav a,
.footer-links a {
  color: var(--muted-strong);
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 200ms ease, color 200ms ease;
}

.nav a:hover,
.footer-links a:hover {
  opacity: 1;
  color: var(--accent-3);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn {
  border-radius: 999px;
  padding: 0.8rem 1.2rem;
  font-weight: 600;
  transition: transform 160ms var(--ease-out), box-shadow 160ms ease,
    background-color 160ms ease, border-color 160ms ease;
}

.btn.small {
  padding: 0.55rem 0.9rem;
  font-size: 0.8rem;
}

@media (hover: hover) and (pointer: fine) {
  .btn:not(:disabled):hover {
    transform: translateY(-1px);
  }
  .btn-primary:not(:disabled):hover {
    box-shadow: 0 20px 36px rgba(211, 45, 84, 0.34);
  }
  .btn-ghost:not(:disabled):hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.18);
  }
}

.btn:not(:disabled):active {
  transform: scale(0.97);
  transition-duration: 90ms;
}

.btn-primary {
  background: linear-gradient(135deg, var(--accent) 0%, #8a152f 100%);
  color: white;
  box-shadow: 0 18px 30px rgba(211, 45, 84, 0.25);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  color: var(--text);
}

.large {
  padding: 1rem 1.45rem;
}

.wide {
  width: 100%;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr;
  gap: 36px;
  align-items: center;
  padding: 52px 0 22px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-3);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.hero-copy h1,
.section-heading h2,
.promise-copy h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  letter-spacing: -0.04em;
  color: #fff6f7;
  margin: 0;
}

.hero-copy h1 {
  font-size: clamp(3.4rem, 5vw, 6rem);
  line-height: 0.86;
  max-width: 650px;
}

.lead {
  max-width: 600px;
  font-size: 1.1rem;
  line-height: 1.7;
  color: rgba(246, 238, 241, 0.8);
  margin-top: 18px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 24px;
}

.mini-proof {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 0;
  padding: 0;
  color: var(--muted);
}

.mini-proof li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mini-proof li::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-2), var(--accent));
  box-shadow: 0 0 18px rgba(255, 125, 141, 0.75);
}

.hero-visual {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}

.glass-card {
  position: relative;
  width: min(420px, 90%);
  background: linear-gradient(180deg, rgba(38, 19, 22, 0.95), rgba(16, 11, 13, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 28px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.game-shell {
  margin-top: 24px;
}

.game-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
}

.game-panel {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 22px;
}

.panel-header {
  margin-bottom: 18px;
}

.panel-kicker {
  display: inline-block;
  color: var(--accent-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.68rem;
  margin-bottom: 10px;
}

.panel-header h3 {
  margin: 0;
  font-size: 1.7rem;
}

.profile-meta {
  display: grid;
  gap: 14px;
}

.profile-meta label {
  display: grid;
  gap: 8px;
  color: var(--muted-strong);
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.profile-meta input {
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  border-radius: 12px;
  color: white;
  padding: 0.8rem 0.9rem;
}

.progress-box {
  margin-top: 22px;
}

.progress-topline {
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
  color: var(--muted-strong);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.progress-bar {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
}

.progress-bar span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  transition: width 400ms var(--ease-out);
}

/* ---------- Level-Meter (passiv, nicht wählbar) ---------- */
.level-meter {
  margin-top: 24px;
}

.level-meter-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted-strong);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.level-meter-hint {
  color: var(--muted);
  opacity: 0.7;
  text-transform: none;
  letter-spacing: 0;
  font-size: 0.72rem;
}

.level-meter-rows {
  display: grid;
  gap: 6px;
}

.lvl-row {
  display: grid;
  grid-template-columns: 1.3rem 5.4rem 1fr 2.4rem;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid transparent;
  color: var(--muted);
  font-size: 0.8rem;
  transition: background-color 260ms var(--ease-out), border-color 260ms var(--ease-out),
    color 260ms var(--ease-out);
}

.lvl-row-key {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted-strong);
}

.lvl-row-name {
  white-space: nowrap;
}

.lvl-row-track {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  overflow: hidden;
}

.lvl-row-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: rgba(255, 177, 192, 0.35);
}

.lvl-row-pct {
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-size: 0.72rem;
  opacity: 0.75;
}

.lvl-row.active {
  background: rgba(211, 45, 84, 0.16);
  border-color: rgba(211, 45, 84, 0.5);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(211, 45, 84, 0.18), 0 10px 24px rgba(168, 23, 54, 0.18);
}

.lvl-row.active .lvl-row-key,
.lvl-row.active .lvl-row-pct {
  color: var(--accent-3);
  opacity: 1;
}

.lvl-row.active .lvl-row-track i {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
}

/* ---------- Aufgaben-Panel ---------- */
.task-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}

.task-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem 0.95rem;
  border-radius: 999px;
  background: rgba(211, 45, 84, 0.12);
  border: 1px solid rgba(211, 45, 84, 0.38);
  color: var(--accent-3);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.68rem;
}

/* Kreisförmiger Timer-Ring */
.timer-ring {
  position: relative;
  width: 96px;
  height: 96px;
  display: grid;
  place-items: center;
  flex: none;
  opacity: 0.55;
  transition: opacity 300ms var(--ease-out);
}

.timer-ring.is-active {
  opacity: 1;
}

.timer-ring svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.timer-ring circle {
  fill: none;
  stroke-width: 6;
  stroke-linecap: round;
}

.timer-ring-track {
  stroke: rgba(255, 255, 255, 0.09);
}

.timer-ring-fill {
  stroke: var(--accent);
  transform: rotate(-90deg);
  transform-origin: 50% 50%;
  stroke-dasharray: 276.46;
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1s linear, stroke 300ms ease;
}

.timer-ring.is-low .timer-ring-fill {
  stroke: var(--accent-2);
}

.timer-ring.is-up .timer-ring-fill {
  stroke: #ff4d63;
  transition: stroke 200ms ease;
}

.timer-ring.is-up #timerDisplay {
  color: #ff4d63;
  animation: timer-pulse 0.7s ease-in-out infinite;
}

.timer-ring.is-up .timer-ring-unit {
  color: #ff8095;
}

.timer-ring #timerDisplay {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.1rem;
  line-height: 1;
  color: #fff6f7;
  font-variant-numeric: tabular-nums;
}

.timer-ring.is-low #timerDisplay {
  color: var(--accent-2);
  animation: timer-pulse 1s ease-in-out infinite;
}

.timer-ring-unit {
  position: absolute;
  bottom: 16px;
  font-size: 0.56rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.task-card {
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(211, 45, 84, 0.14), transparent 55%),
    linear-gradient(180deg, rgba(36, 17, 21, 0.96), rgba(14, 9, 10, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: 28px 26px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.task-card.is-idle {
  background: linear-gradient(180deg, rgba(26, 15, 18, 0.9), rgba(13, 9, 10, 0.95));
}

.task-role {
  margin: 0 0 12px;
  color: var(--accent-3);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.7rem;
  font-weight: 600;
}

.task-card h3 {
  margin: 0;
  font-family: "Hanken Grotesk", "Segoe UI", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.9rem, 3.3vw, 3rem);
  line-height: 1.22;
  letter-spacing: -0.01em;
  color: #fff;
  min-height: 2.6em;
  max-height: 38vh;
  overflow-y: auto;
}

.task-card h3.is-long {
  font-size: clamp(1.45rem, 2.6vw, 2rem);
  line-height: 1.3;
}

.task-card h3.is-xlong {
  font-size: clamp(1.2rem, 2.2vw, 1.6rem);
}

.highscore-card {
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 20px;
}

.highscore-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
  color: rgba(246, 238, 241, 0.85);
}

.task-actions {
  display: grid;
  gap: 12px;
  margin-top: 24px;
}

/* Joker — Aufgabe überspringen */
.joker-hint {
  margin: 0 2px 2px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--muted);
}

.joker-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.joker-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 0.7rem 0.8rem;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

@media (hover: hover) and (pointer: fine) {
  .joker-btn:not(:disabled):hover {
    background: rgba(211, 45, 84, 0.12);
    border-color: rgba(211, 45, 84, 0.4);
    color: var(--accent-3);
  }
}

.joker-btn.spent {
  color: var(--muted);
}

.joker-btn-label {
  letter-spacing: 0.02em;
}

.joker-pips {
  display: inline-flex;
  gap: 5px;
}

.joker-pips i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  transition: background-color 200ms ease, box-shadow 200ms ease;
}

.joker-pips i.on {
  background: var(--accent-2);
  box-shadow: 0 0 8px rgba(255, 125, 141, 0.6);
}

.joker-pips i.off {
  background: rgba(255, 255, 255, 0.14);
}

.action-primary {
  width: 100%;
  padding: 0.95rem 1.2rem;
}

.action-outcome {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-hold {
  background: rgba(127, 240, 178, 0.1);
  border: 1px solid rgba(127, 240, 178, 0.28);
  color: #cdeede;
}

@media (hover: hover) and (pointer: fine) {
  .btn-hold:not(:disabled):hover {
    background: rgba(127, 240, 178, 0.16);
    border-color: rgba(127, 240, 178, 0.45);
  }
}

.btn-primary.danger {
  background: linear-gradient(135deg, #a81736 0%, #430b17 100%);
  box-shadow: 0 16px 28px rgba(168, 23, 54, 0.25);
}

/* Rotes Herz — „Ich kann nicht mehr“ → Level 4 zünden */
.finale-heart {
  position: fixed;
  right: clamp(16px, 4vw, 44px);
  bottom: clamp(16px, 4vw, 44px);
  z-index: 30;
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  line-height: 1;
  color: #fff;
  background: radial-gradient(circle at 32% 30%, #ff6d86, #c3123a 72%);
  box-shadow: 0 14px 32px rgba(211, 45, 84, 0.5), 0 0 0 6px rgba(211, 45, 84, 0.14);
  transition: transform 140ms var(--ease-out);
  animation: heart-beat 1.9s ease-in-out infinite;
}

.finale-heart::after {
  content: "Ich kann nicht mehr";
  position: absolute;
  right: 50%;
  bottom: calc(100% + 8px);
  transform: translateX(50%);
  white-space: nowrap;
  font-size: 0.66rem;
  letter-spacing: 0.04em;
  color: var(--muted-strong);
  background: rgba(20, 8, 11, 0.92);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 10px;
  opacity: 0.9;
}

.finale-heart:hover {
  transform: scale(1.08);
}

.finale-heart:active {
  transform: scale(0.94);
}

@keyframes heart-beat {
  0%, 100% {
    box-shadow: 0 14px 32px rgba(211, 45, 84, 0.5), 0 0 0 6px rgba(211, 45, 84, 0.14);
  }
  50% {
    box-shadow: 0 14px 36px rgba(211, 45, 84, 0.7), 0 0 0 14px rgba(211, 45, 84, 0.04);
  }
}

.task-card.is-finale {
  border-color: rgba(211, 45, 84, 0.55);
  box-shadow: 0 0 0 1px rgba(211, 45, 84, 0.3), 0 26px 60px rgba(168, 23, 54, 0.3);
}

.task-card.is-finale .task-role {
  color: var(--accent-2);
}

/* „Gekommen“-Button im Finale = Ziel, nicht Niederlage */
.btn-primary.danger.is-goal {
  background: linear-gradient(135deg, #1f9d57 0%, #0c3f24 100%);
  box-shadow: 0 16px 28px rgba(31, 157, 87, 0.28);
}

/* Positiver Abschluss-Screen */
.game-over.is-win {
  background: linear-gradient(180deg, rgba(10, 22, 15, 0.96), rgba(7, 12, 9, 0.98));
}

.game-over.is-win .game-over-kicker {
  color: #7ff0b2;
}

/* Spielzeug-Wahl — im Spiel jederzeit umschaltbar */
.toy-switch {
  margin-top: 22px;
}

.toy-switch > span {
  display: block;
  margin-bottom: 10px;
  color: var(--muted-strong);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.72rem;
}

.toy-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.toy-opt {
  padding: 0.7rem 0.7rem;
  border-radius: 12px;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
  color: var(--muted-strong);
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.toy-opt.active {
  background: linear-gradient(135deg, var(--accent) 0%, #8a152f 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 22px rgba(211, 45, 84, 0.26);
}

/* Level-Meter: Finale-Zeile */
.lvl-row--finale {
  border-top: 1px dashed rgba(255, 255, 255, 0.12);
  margin-top: 4px;
  padding-top: 12px;
  color: var(--accent-3);
}

.lvl-row-track--finale {
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  background: none;
  height: auto;
}

.lvl-row--finale.active {
  background: rgba(211, 45, 84, 0.16);
  border-radius: 12px;
  border-color: rgba(211, 45, 84, 0.5);
}

.stats-inline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.stats-inline > div {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 16px 18px;
}

.stats-inline span {
  display: block;
  color: var(--muted);
  margin-bottom: 6px;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.stats-inline strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 2.1rem;
  color: #fff6f7;
}

.card-header {
  padding: 16px 18px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted-strong);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #7ff0b2;
  box-shadow: 0 0 18px rgba(127, 240, 178, 0.8);
}

.login-panel {
  padding: 22px 18px 18px;
}

.input-group {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.input-group label {
  color: var(--muted-strong);
  font-size: 0.8rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.input-group input {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
  border-radius: 14px;
  color: white;
  padding: 0.85rem 0.9rem;
}

.floating-task {
  width: min(420px, 90%);
  padding: 18px 18px 14px;
  border-radius: 18px;
  background: rgba(26, 10, 13, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 30px rgba(0, 0, 0, 0.4);
}

.task-tag {
  display: inline-block;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent-3);
  margin-bottom: 10px;
}

.floating-task p {
  margin: 0;
  color: rgba(246, 238, 241, 0.82);
  line-height: 1.5;
}

.stats-band {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  padding: 22px 26px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 22px;
  margin-top: 16px;
}

.stats-band > div {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 8px;
}

.stats-band strong {
  font-size: clamp(1.7rem, 2vw, 2.4rem);
  font-weight: 800;
}

.stats-band span {
  color: var(--muted);
}

.section-block {
  padding-top: 112px;
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2,
.promise-copy h2 {
  font-size: clamp(2.6rem, 4vw, 4rem);
  line-height: 0.96;
  max-width: 700px;
}

.narrow {
  max-width: 640px;
}

.level-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.level-card {
  background: linear-gradient(180deg, rgba(22, 12, 15, 0.98), rgba(13, 9, 10, 1));
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.level-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 14px;
}

.level-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 0.8rem;
  border-radius: 999px;
  background: rgba(211, 45, 84, 0.12);
  border: 1px solid rgba(211, 45, 84, 0.35);
  color: var(--accent-3);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.level-card h3 {
  margin: 0 0 12px;
  font-size: 1.55rem;
}

.level-card p {
  margin: 0;
  color: rgba(246, 238, 241, 0.8);
  line-height: 1.7;
}

.level-list {
  margin: 18px 0 0;
  padding-left: 18px;
  color: rgba(246, 238, 241, 0.82);
  display: grid;
  gap: 8px;
  line-height: 1.5;
}

.step-grid,
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 22px;
}

.step-card,
.price-card,
.faq-item {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 24px 20px;
}

.step-number {
  display: inline-flex;
  margin-bottom: 16px;
  font-weight: 800;
  color: var(--accent-3);
  letter-spacing: 0.12em;
}

.step-card h3,
.price-card h3,
.faq-item h3 {
  margin: 0 0 10px;
  font-size: 1.5rem;
}

.step-card p,
.price-card p,
.faq-item p {
  margin: 0;
  color: rgba(246, 238, 241, 0.8);
  line-height: 1.65;
}

.promise {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

.promise-list {
  display: grid;
  gap: 18px;
}

.promise-list > div {
  padding: 22px 18px;
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
}

.promise-list strong,
.price-card .price-label {
  display: block;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-3);
  margin-bottom: 8px;
}

.promise-list span {
  color: rgba(246, 238, 241, 0.8);
}

.price-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 100%;
}

.price-card h3 {
  font-size: clamp(2.1rem, 3vw, 3rem);
  margin: 0;
}

.price-card ul {
  list-style: none;
  padding: 0;
  margin: 10px 0 6px;
  display: grid;
  gap: 8px;
  color: rgba(246, 238, 241, 0.8);
}

.price-card li::before {
  content: "•";
  color: var(--accent-3);
  margin-right: 8px;
}

.featured {
  background: linear-gradient(180deg, rgba(111, 12, 34, 0.35), rgba(25, 14, 17, 0.92));
  border-color: rgba(255, 125, 141, 0.4);
  box-shadow: 0 16px 40px rgba(211, 45, 84, 0.15);
}

.testimonial {
  padding-top: 110px;
}

.testimonial blockquote {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.1rem, 3vw, 3.5rem);
  line-height: 1.05;
  color: var(--text);
  max-width: 780px;
}

.quote-meta {
  margin-top: 18px;
  display: inline-flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
}

.faq-list {
  display: grid;
  gap: 18px;
}

.footer {
  border-top: 1px solid var(--line);
  margin-top: 64px;
  padding-top: 24px;
}

.footer-links {
  display: flex;
  gap: 18px;
}

/* ---------- Redesign-Politur ---------- */
.hero-copy h1,
.section-heading h2,
.promise-copy h2,
.panel-header h3 {
  text-wrap: balance;
}

.lead,
.level-card p,
.step-card p,
.price-card p,
.faq-item p,
.task-card h3,
.task-status,
.game-over-text {
  text-wrap: pretty;
}

#timerDisplay,
.stats-inline strong,
.stats-band strong,
#progressValue,
.highscore-list {
  font-variant-numeric: tabular-nums;
}

.input-group input,
.profile-meta input {
  transition: border-color 160ms ease, box-shadow 160ms ease, background-color 160ms ease;
}

.input-group input:focus-visible,
.profile-meta input:focus-visible {
  outline: none;
  border-color: rgba(211, 45, 84, 0.65);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: 0 0 0 3px var(--glow);
}

.form-error {
  margin: 12px 2px 0;
  color: #ff9aa6;
  font-size: 0.85rem;
  line-height: 1.5;
}

/* ---------- Stripe/Abo-Bereich ---------- */
.billing-setup-note {
  margin: 10px 0 0;
  padding: 8px 14px;
  border-radius: 10px;
  border: 1px solid rgba(232, 185, 106, 0.4);
  background: rgba(232, 185, 106, 0.09);
  color: var(--muted-strong);
  font-size: 0.8rem;
  text-align: center;
}

.billing-setup-note code {
  color: var(--gold);
}

.checkout-notice {
  margin: 10px 0 0;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 0.9rem;
  line-height: 1.5;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
}

.checkout-notice[data-kind="success"] {
  border-color: rgba(127, 240, 178, 0.4);
  background: rgba(127, 240, 178, 0.09);
  color: #d4fbe3;
}

.checkout-notice[data-kind="error"] {
  border-color: rgba(255, 154, 166, 0.4);
  background: rgba(255, 154, 166, 0.09);
  color: #ff9aa6;
}

.checkout-notice[data-kind="info"] {
  border-color: rgba(232, 185, 106, 0.35);
  background: rgba(232, 185, 106, 0.08);
  color: var(--muted-strong);
}

.billing-error {
  margin: 16px 2px 0;
  color: #ff9aa6;
  font-size: 0.85rem;
  line-height: 1.5;
  text-align: center;
}

.billing-only-active {
  display: none;
}
body[data-billing="active"] .billing-only-active {
  display: inline-flex;
}

.btn .btn-spinner {
  width: 15px;
  height: 15px;
  margin-left: 8px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  display: none;
  vertical-align: middle;
}

.btn[data-loading="true"] .btn-spinner {
  display: inline-block;
  animation: cqBtnSpin 0.7s linear infinite;
}

.btn[data-loading="true"] .btn-label {
  opacity: 0.7;
}

@keyframes cqBtnSpin {
  to {
    transform: rotate(360deg);
  }
}

#gameSection[data-locked="true"] #gameLockBilling {
  display: none;
}
body[data-billing="inactive"] #gameSection[data-locked="true"] #gameLock {
  display: none;
}
body[data-billing="inactive"] #gameSection[data-locked="true"] #gameLockBilling {
  display: flex;
}

.footer-links {
  align-items: center;
}

.footer-note {
  color: var(--muted);
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Spiel-Zustände ---------- */
[hidden] {
  display: none !important;
}

.task-status {
  margin: 16px 2px 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.5;
  opacity: 0.75;
  min-height: 1.4em;
}

.btn[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.task-card {
  position: relative;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.task-card.is-running {
  border-color: rgba(211, 45, 84, 0.45);
  box-shadow: 0 0 0 1px rgba(211, 45, 84, 0.25), 0 24px 50px rgba(168, 23, 54, 0.22);
}

.task-card.is-held {
  border-color: rgba(127, 240, 178, 0.4);
  box-shadow: 0 0 0 1px rgba(127, 240, 178, 0.22);
}

.task-card.is-decide {
  border-color: rgba(255, 77, 99, 0.6);
  box-shadow: 0 0 0 1px rgba(255, 77, 99, 0.35), 0 24px 55px rgba(255, 77, 99, 0.22);
}

.task-card.is-decide .task-status {
  color: #ff8095;
  opacity: 1;
  font-weight: 600;
}

@keyframes timer-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}

.game-over[hidden] {
  display: none;
}

.game-over {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 28px 24px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(20, 8, 11, 0.96), rgba(10, 6, 7, 0.98));
  backdrop-filter: blur(2px);
}

.game-over-kicker {
  margin: 0;
  color: var(--accent-2);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 700;
}

.game-over-text {
  margin: 0;
  color: rgba(246, 238, 241, 0.82);
  line-height: 1.6;
  max-width: 40ch;
}

.game-over-score {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  color: #fff6f7;
}

.game-over .btn {
  margin-top: 6px;
  max-width: 260px;
}

@media (max-width: 860px) {
  .topbar,
  .footer {
    flex-wrap: wrap;
  }

  .nav {
    order: 3;
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
  }

  .hero,
  .promise,
  .game-layout {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 440px;
  }

  .topbar-actions {
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .page-shell {
    width: min(100% - 18px, 1180px);
  }

  .topbar-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .spacing-block {
    padding-top: 90px;
  }

  .hero-copy h1 {
    font-size: 3.1rem;
  }

  .cta-row {
    flex-direction: column;
  }

  .stats-band {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .floating-task {
    position: static;
    width: 100%;
    margin-top: 18px;
  }
}

/* ---------- Level-Meter: in der Anfangsphase gesperrte Stufen ---------- */
.lvl-row.locked {
  opacity: 0.4;
}

.lvl-row.locked .lvl-row-track i {
  background: rgba(255, 255, 255, 0.12);
}

.section-heading--game {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

/* ---------- Spielinhalt erst nach Login ---------- */
.level-card-meta {
  margin: 16px 0 0;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  opacity: 0.8;
}

.game-lock {
  display: none;
}

#gameSection[data-locked="true"] .game-layout {
  display: none;
}

#gameSection[data-locked="true"] .game-lock {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  padding: clamp(28px, 5vw, 60px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background:
    radial-gradient(120% 90% at 100% 0%, rgba(211, 45, 84, 0.1), transparent 55%),
    rgba(255, 255, 255, 0.02);
}

.game-lock-title {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  color: #fff6f7;
}

.game-lock-sub {
  margin: 0;
  max-width: 52ch;
  color: rgba(246, 238, 241, 0.8);
  line-height: 1.6;
}

/* ---------- TV-Modus ---------- */
.tv-exit {
  display: none;
}

.tv-mode .tv-exit {
  display: inline-flex;
  position: fixed;
  top: 22px;
  right: 22px;
  z-index: 40;
}

.tv-mode {
  overflow-x: hidden;
  overflow-y: auto;
}

.tv-mode .topbar,
.tv-mode .footer,
.tv-mode .section-heading--game,
.tv-mode main > section:not(#gameSection) {
  display: none;
}

.tv-mode .page-shell {
  width: min(1600px, 100vw);
  padding: clamp(28px, 4vw, 64px);
  padding-bottom: clamp(28px, 4vw, 64px);
}

.tv-mode .game-shell {
  margin-top: 0;
  padding-top: clamp(14px, 3vh, 40px);
  padding-bottom: clamp(14px, 3vh, 40px);
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.tv-mode .game-layout {
  grid-template-columns: 0.72fr 1.28fr;
  gap: 28px;
}

.tv-mode .game-panel {
  padding: clamp(20px, 2.4vw, 40px);
}

.tv-mode .task-card {
  padding: clamp(24px, 3vw, 48px);
}

.tv-mode .task-role {
  font-size: 0.95rem;
}

.tv-mode .task-card h3 {
  font-size: clamp(2.2rem, 3.6vw, 3.4rem);
  line-height: 1.15;
  max-height: 40vh;
}

.tv-mode .task-card h3.is-long {
  font-size: clamp(1.7rem, 2.8vw, 2.5rem);
}

.tv-mode .task-card h3.is-xlong {
  font-size: clamp(1.4rem, 2.4vw, 2rem);
}

.tv-mode .phase-hint,
.tv-mode .joker-hint {
  font-size: 1.05rem;
}

.tv-mode .timer-ring {
  width: clamp(120px, 12vw, 168px);
  height: clamp(120px, 12vw, 168px);
}

.tv-mode .timer-ring #timerDisplay {
  font-size: clamp(2.6rem, 4vw, 4rem);
}

.tv-mode .task-actions .btn {
  padding: 1.1rem 1.3rem;
  font-size: 1.05rem;
  border-radius: 16px;
}

.tv-mode .task-badge {
  font-size: 0.8rem;
  padding: 0.7rem 1.1rem;
}

.tv-mode .finale-heart {
  width: 92px;
  height: 92px;
  font-size: 2.6rem;
}

.tv-mode .stats-inline strong {
  font-size: clamp(2.4rem, 3.2vw, 3.4rem);
}

.tv-mode .lvl-row {
  font-size: 0.92rem;
  padding: 10px 12px;
}

@media (max-width: 860px) {
  .tv-mode .game-layout {
    grid-template-columns: 1fr;
  }
}

/* ============================================================
   Ausgebaute Website: Hero-Banner + Info-Sektionen
   (verändert das Spiel nicht)
   ============================================================ */

.hero-banner {
  position: relative;
  margin-top: 12px;
  border-radius: 28px;
  overflow: hidden;
  min-height: clamp(340px, 52vh, 580px);
  display: flex;
  align-items: flex-end;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  background:
    radial-gradient(120% 130% at 80% 15%, rgba(211, 45, 84, 0.32), transparent 60%),
    radial-gradient(90% 90% at 15% 95%, rgba(138, 21, 47, 0.42), transparent 62%),
    linear-gradient(180deg, #1b0d12 0%, #0b0809 100%);
}

.hero-banner-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
}

.hero-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(8, 5, 6, 0.94) 0%, rgba(8, 5, 6, 0.6) 44%, transparent 80%),
    linear-gradient(0deg, rgba(8, 5, 6, 0.85) 0%, transparent 46%);
}

.hero-banner-inner {
  position: relative;
  z-index: 2;
  padding: clamp(28px, 5vw, 66px);
  max-width: 700px;
}

.hero-banner-inner h1 {
  margin: 12px 0 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.6rem, 6vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #fff6f7;
  text-wrap: balance;
}

.hero-banner-sub {
  margin: 18px 0 0;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.65;
  color: rgba(246, 238, 241, 0.86);
  max-width: 48ch;
}

.hero-banner .cta-row {
  margin-top: 26px;
}

/* Spielprinzip */
.principle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}

.principle-grid article {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 26px 22px;
}

.principle-k {
  display: inline-block;
  margin-bottom: 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.7rem;
  color: var(--accent-3);
}

.principle-grid h3 {
  margin: 0 0 10px;
  font-size: 1.3rem;
}

.principle-grid p {
  margin: 0;
  color: rgba(246, 238, 241, 0.8);
  line-height: 1.65;
}

/* Diskret / TV */
.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 26px;
}

.feature-split article {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 30px 26px;
}

.feature-split h3 {
  margin: 12px 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.2vw, 2.05rem);
  line-height: 1.1;
  color: #fff6f7;
}

.feature-split p {
  margin: 0;
  color: rgba(246, 238, 241, 0.82);
  line-height: 1.7;
}

.feature-points {
  list-style: none;
  padding: 0;
  margin: 18px 0 0;
  display: grid;
  gap: 9px;
  color: rgba(246, 238, 241, 0.78);
}

.feature-points li::before {
  content: "–";
  color: var(--accent-3);
  margin-right: 10px;
}

/* Spielzeug-Band */
.toy-band > div {
  max-width: 860px;
  padding: clamp(24px, 4vw, 46px);
  border-radius: 24px;
  border: 1px solid rgba(255, 125, 141, 0.3);
  background: linear-gradient(180deg, rgba(111, 12, 34, 0.3), rgba(20, 12, 15, 0.92));
}

.toy-band h3 {
  margin: 12px 0 12px;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(1.5rem, 2.4vw, 2.1rem);
  color: #fff6f7;
}

.toy-band p {
  margin: 0;
  color: rgba(246, 238, 241, 0.82);
  line-height: 1.7;
}

@media (max-width: 760px) {
  .feature-split {
    grid-template-columns: 1fr;
  }
}

/* ---------- Session-Hitze-Meter ---------- */
.heat-box {
  margin-top: 16px;
}

.heat-bar span {
  background: linear-gradient(90deg, #7a1b33 0%, var(--accent) 42%, #ff7d3a 78%, #ffd27a 100%);
  box-shadow: 0 0 12px rgba(255, 125, 58, 0.4);
  transition: width 900ms var(--ease-out), box-shadow 400ms ease;
}

.heat-box.is-hot .progress-topline strong {
  color: #ffb86b;
}

.heat-box.is-hot .heat-bar span {
  box-shadow: 0 0 18px rgba(255, 140, 70, 0.65);
  animation: heat-glow 1.6s ease-in-out infinite;
}

.heat-box.is-max .progress-topline strong {
  color: #ffd27a;
}

.heat-box.is-max .heat-bar {
  box-shadow: 0 0 0 1px rgba(255, 210, 122, 0.5), 0 0 22px rgba(255, 170, 90, 0.5);
}

@keyframes heat-glow {
  0%, 100% { box-shadow: 0 0 14px rgba(255, 140, 70, 0.5); }
  50% { box-shadow: 0 0 26px rgba(255, 170, 90, 0.85); }
}

/* Ton-Schalter: gleiche Optik wie der Spielzeug-Schalter */
.sound-switch {
  margin-top: 16px;
}

/* ============================================================
   DESIGN REFRESH — editorial / candlelight (ui-ux-pro-max)
   Nur Marketing-Optik. Spielbereich (#gameSection) unberührt.
   ============================================================ */

/* --- Labels: von Rosa auf Kerzenlicht-Gold --- */
.eyebrow,
.panel-kicker,
.price-label,
.step-number,
.principle-k,
.game-over-kicker,
.brand-sub {
  color: var(--gold);
}

.eyebrow {
  font-family: "Hanken Grotesk", sans-serif;
  letter-spacing: 0.22em;
  font-weight: 600;
  font-size: 0.7rem;
}

/* --- Feine Gold-Trennlinie zwischen den Sektionen --- */
main > section.section-block {
  position: relative;
}
main > section.section-block::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(240px, 40%);
  height: 1px;
  background: var(--hairline);
  opacity: 0.7;
}
#gameSection::before,
.hero-banner + .hero + #gameSection::before {
  display: none;
}

/* --- Display-Typo schärfen (Editorial Classic) --- */
.hero-copy h1,
.section-heading h2,
.promise-copy h2,
.hero-banner-inner h1 {
  font-weight: 600;
  letter-spacing: -0.025em;
}
.hero-copy h1,
.hero-banner-inner h1 {
  line-height: 0.94;
}
.section-heading h2 {
  line-height: 1.0;
}

/* --- Scroll-Reveal (Standard: fade + 24px up, stagger) --- */
.js .reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 560ms var(--ease-rev), transform 560ms var(--ease-rev);
  transition-delay: var(--reveal-delay, 0ms);
}
.js .reveal.in-view {
  opacity: 1;
  transform: none;
}
.js .reveal-stagger > * {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 520ms var(--ease-rev), transform 520ms var(--ease-rev);
}
.js .reveal-stagger.in-view > * {
  opacity: 1;
  transform: none;
}
.js .reveal-stagger.in-view > *:nth-child(1) { transition-delay: 0ms; }
.js .reveal-stagger.in-view > *:nth-child(2) { transition-delay: 70ms; }
.js .reveal-stagger.in-view > *:nth-child(3) { transition-delay: 140ms; }
.js .reveal-stagger.in-view > *:nth-child(4) { transition-delay: 210ms; }
.js .reveal-stagger.in-view > *:nth-child(5) { transition-delay: 280ms; }
.js .reveal-stagger.in-view > *:nth-child(6) { transition-delay: 350ms; }

@media (prefers-reduced-motion: reduce) {
  .js .reveal,
  .js .reveal.in-view,
  .js .reveal-stagger > *,
  .js .reveal-stagger.in-view > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* --- Sticky-Nav: beim Scrollen verdichten --- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 15;
  transition: background-color 240ms ease, backdrop-filter 240ms ease,
    border-color 240ms ease, padding 240ms ease;
  border-bottom: 1px solid transparent;
}
.topbar.is-scrolled {
  background: rgba(10, 7, 8, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--line);
  padding-top: 14px;
  padding-bottom: 14px;
}

/* --- Karten: Hover-Lift + Gold-Glint oben --- */
.step-card,
.faq-item,
.price-card,
.principle-grid article,
.feature-split article,
.level-card,
.highscore-card {
  position: relative;
  transition: transform 260ms var(--ease-out), border-color 260ms ease,
    box-shadow 260ms ease;
}
.step-card::after,
.faq-item::after,
.price-card::after,
.principle-grid article::after,
.feature-split article::after,
.level-card::after {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 1px;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, rgba(232, 185, 106, 0.55), transparent);
  opacity: 0;
  transition: opacity 260ms ease;
}
@media (hover: hover) and (pointer: fine) {
  .step-card:hover,
  .faq-item:hover,
  .price-card:hover,
  .principle-grid article:hover,
  .feature-split article:hover,
  .level-card:hover {
    transform: translateY(-4px);
    border-color: rgba(232, 185, 106, 0.28);
  }
  .step-card:hover::after,
  .faq-item:hover::after,
  .price-card:hover::after,
  .principle-grid article:hover::after,
  .feature-split article:hover::after,
  .level-card:hover::after {
    opacity: 1;
  }
}

/* --- Pricing: empfohlene Stufe in Gold --- */
.price-card.featured {
  border-color: rgba(232, 185, 106, 0.45);
  box-shadow: 0 20px 50px rgba(232, 185, 106, 0.1);
}
.price-card.featured .price-label {
  color: var(--gold);
}
.price-card.featured .btn-primary {
  background: linear-gradient(135deg, var(--gold) 0%, var(--gold-soft) 100%);
  color: #221706;
  box-shadow: 0 16px 30px rgba(232, 185, 106, 0.28);
}

/* --- Testimonial: Gold-Anführung --- */
.testimonial {
  position: relative;
}
.testimonial blockquote {
  position: relative;
  padding-top: 0.4em;
}
.testimonial blockquote::before {
  content: "\201C";
  position: absolute;
  left: -0.06em;
  top: -0.35em;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 4.5rem;
  line-height: 1;
  color: var(--gold);
  opacity: 0.5;
}
.quote-meta strong {
  color: var(--gold);
}

/* --- Stats-Band: Gold-Zahlen, Gold-Rahmen --- */
.stats-band {
  border-color: rgba(232, 185, 106, 0.16);
}
.stats-band strong {
  color: var(--gold);
}

/* --- Brand-Mark: Gold-Kontur statt Vollton-Rot --- */
.brand-mark {
  background: radial-gradient(120% 120% at 30% 20%, rgba(232, 185, 106, 0.22), transparent 60%),
    linear-gradient(135deg, #2a1116 0%, #160b0e 100%);
  border: 1px solid rgba(232, 185, 106, 0.35);
  color: var(--gold);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.4);
}

/* --- Hero-Banner: reicher, mit Gold-Haarlinien-Rahmen --- */
.hero-banner {
  background:
    radial-gradient(130% 130% at 82% 12%, rgba(211, 45, 84, 0.34), transparent 58%),
    radial-gradient(80% 90% at 12% 100%, rgba(232, 185, 106, 0.16), transparent 60%),
    radial-gradient(60% 70% at 60% 40%, rgba(138, 21, 47, 0.5), transparent 70%),
    linear-gradient(180deg, #1c0d12 0%, #0a0708 100%);
}
.hero-banner::before {
  content: "";
  position: absolute;
  inset: 14px;
  z-index: 3;
  border: 1px solid rgba(232, 185, 106, 0.22);
  border-radius: 20px;
  pointer-events: none;
}
.hero-banner-inner .eyebrow {
  color: var(--gold);
}
.hero-banner-inner h1 .accent-i {
  font-style: italic;
  color: var(--gold);
}

/* --- Ghost-Buttons in Marketing-Sektionen: Gold-Hauch beim Hover --- */
@media (hover: hover) and (pointer: fine) {
  main > section:not(#gameSection) .btn-ghost:not(:disabled):hover {
    border-color: rgba(232, 185, 106, 0.4);
    color: var(--gold);
  }
}

/* ---------- Polish: Browser-Oberflächen aus der Palette ---------- */
::selection {
  background: rgba(232, 185, 106, 0.3);
  color: #1a1008;
}
#gameSection ::selection {
  background: rgba(211, 45, 84, 0.34);
  color: #fff;
}

html {
  scrollbar-color: rgba(232, 185, 106, 0.4) transparent;
  scrollbar-width: thin;
}
::-webkit-scrollbar {
  width: 11px;
  height: 11px;
}
::-webkit-scrollbar-track {
  background: var(--bg);
}
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(232, 185, 106, 0.42), rgba(211, 45, 84, 0.38));
  border-radius: 999px;
  border: 3px solid var(--bg);
}
::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, rgba(232, 185, 106, 0.62), rgba(211, 45, 84, 0.55));
}

input {
  caret-color: var(--accent-2);
}

/* ---------- Polish: Motion neu gewichtet ----------
   Grid-Karten staffeln sich beim Eintritt (zeigt Struktur).
   Der Hero bekommt EINEN eigenen Auftritt statt derselben Fade-Wiederholung. */
.js .hero-banner-inner.is-hero-enter > * {
  opacity: 0;
  transform: translateY(18px);
  animation: heroRise 700ms var(--ease-rev) forwards;
}
.js .hero-banner-inner.is-hero-enter > *:nth-child(1) { animation-delay: 60ms; }
.js .hero-banner-inner.is-hero-enter > *:nth-child(2) { animation-delay: 150ms; }
.js .hero-banner-inner.is-hero-enter > *:nth-child(3) { animation-delay: 250ms; }
.js .hero-banner-inner.is-hero-enter > *:nth-child(4) { animation-delay: 360ms; }
.js .hero-banner-inner.is-hero-enter h1 .accent-i {
  color: #b98a44;
  animation: goldIgnite 900ms 520ms var(--ease-rev) forwards;
}
@keyframes heroRise {
  to { opacity: 1; transform: none; }
}
@keyframes goldIgnite {
  from { color: #b98a44; text-shadow: none; }
  60% { color: #ffdca0; text-shadow: 0 0 26px rgba(232, 185, 106, 0.55); }
  to { color: var(--gold); text-shadow: 0 0 0 rgba(232, 185, 106, 0); }
}
@media (prefers-reduced-motion: reduce) {
  .js .hero-banner-inner.is-hero-enter > *,
  .js .hero-banner-inner.is-hero-enter h1 .accent-i {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }
}

/* Display-Tracking Richtung Craft-Floor (-0.03…-0.04em) */
.hero-copy h1,
.hero-banner-inner h1 {
  letter-spacing: -0.035em;
}
.section-heading h2,
.promise-copy h2 {
  letter-spacing: -0.028em;
}

/* mehr Luft über einer Überschrift als darunter */
.section-heading {
  padding-top: 8px;
}

/* zweiter Hero jetzt <h2> — Startblock-Hierarchie unter dem Banner */
.hero-copy h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  font-size: clamp(2.7rem, 4.4vw, 4.4rem);
  line-height: 0.94;
  letter-spacing: -0.035em;
  color: #fff6f7;
  margin: 0;
  max-width: 620px;
  text-wrap: balance;
}

/* section-heading-Politur nur im Marketing, Spielbereich unberührt */
main > section:not(#gameSection) .section-heading {
  padding-top: 8px;
}
#gameSection .section-heading {
  padding-top: 0;
}

/* ---------- Polish: horizontales Überlaufen abfangen (Mobile) ---------- */
html,
body {
  overflow-x: clip;
}

.level-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(15rem, 100%), 1fr));
}

.level-card-meta {
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .level-head {
    flex-wrap: wrap;
    row-gap: 8px;
  }
  .level-pill {
    font-size: 0.62rem;
    letter-spacing: 0.1em;
  }
  .hero-banner {
    min-height: clamp(300px, 64vh, 520px);
  }
  .hero-banner-inner {
    padding: clamp(22px, 6vw, 40px);
  }
}

/* ============================================================
   Login-Bereich (Supabase) — auth-abhängige Sichtbarkeit
   ============================================================ */

/* Standard = ausgeloggt: „logged-in"-UI verstecken, bis der Status feststeht */
.auth-only-in { display: none; }
body[data-authed="true"] .auth-only-out { display: none; }
body[data-authed="true"] .btn.auth-only-in { display: inline-flex; }
body[data-authed="true"] .couple-chip.auth-only-in { display: inline-flex; }
body[data-authed="true"] .card-header .auth-only-in { display: inline; }

/* Login-Card im Hero: exakt eine der beiden Varianten */
.login-panel > .auth-only-in,
.login-panel > .auth-only-out { display: none; }
body:not([data-authed]) .login-panel > .auth-only-out,
body[data-authed="false"] .login-panel > .auth-only-out { display: block; }
body[data-authed="true"] .login-panel > .auth-only-in { display: block; }
.login-panel .btn.wide {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}
.login-panel .btn.wide:first-child { margin-top: 0; }

.login-lead {
  margin: 0 0 4px;
  color: rgba(246, 238, 241, 0.82);
  line-height: 1.55;
  font-size: 0.9rem;
}

/* Paar-Chip in der Topbar */
.couple-chip {
  align-items: center;
  max-width: 190px;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  border: 1px solid rgba(232, 185, 106, 0.32);
  background: rgba(232, 185, 106, 0.08);
  color: var(--gold);
  font-size: 0.82rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.couple-chip .js-couple-name {
  overflow: hidden;
  text-overflow: ellipsis;
}

/* „Für Couple Quest braucht ihr ein Konto" — Aktionen im Lock-Overlay */
.game-lock-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

