/* ─────────────────────────────────────────────────────────────
   Flippy Cup · „Kante“ · Design-Tokens
   Vibe: Soft Structuralism (Papier, massive Grotesk, schwebende Flächen)
   Akzente: Becherrot + die vier Endzonen-Farben der Matte
   ───────────────────────────────────────────────────────────── */
:root {
  --paper: #f4f3ef;
  --paper-2: #ebeae4;
  --ink: #141416;
  --ink-2: #2a2a2e;
  --mute: #6f6f76;
  --hair: rgba(20, 20, 22, 0.08);
  --hair-2: rgba(20, 20, 22, 0.14);

  --cup: #e6332a;
  --cup-deep: #b8231c;
  --rot: #e6332a;
  --blau: #2457f5;
  --gruen: #19a85a;
  --gelb: #f2b705;
  --seat: var(--rot);

  --table: #121214;
  --table-2: #1b1b1f;
  --table-hair: rgba(255, 255, 255, 0.1);

  --r-xl: 2rem;
  --r-lg: 1.5rem;
  --r-md: 1.125rem;
  --pad-shell: 0.4rem;

  --shadow-float: 0 40px 80px -30px rgba(20, 20, 22, 0.22), 0 2px 6px rgba(20, 20, 22, 0.04);
  --shadow-soft: 0 18px 40px -20px rgba(20, 20, 22, 0.18), 0 1px 2px rgba(20, 20, 22, 0.04);
  --inset-hi: inset 0 1px 1px rgba(255, 255, 255, 0.7);
  --inset-hi-dark: inset 0 1px 1px rgba(255, 255, 255, 0.12);

  --ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --font-display: "Clash Display", "Geist", system-ui, sans-serif;
  --font-text: "Geist", system-ui, -apple-system, sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #141416;
    --paper-2: #1c1c20;
    --ink: #f4f3ef;
    --ink-2: #d9d8d2;
    --mute: #8d8d95;
    --hair: rgba(255, 255, 255, 0.08);
    --hair-2: rgba(255, 255, 255, 0.14);
    --shadow-float: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
    --shadow-soft: 0 18px 40px -20px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.3);
    --inset-hi: inset 0 1px 1px rgba(255, 255, 255, 0.08);
  }
}
:root[data-theme="dark"] {
  --paper: #141416;
  --paper-2: #1c1c20;
  --ink: #f4f3ef;
  --ink-2: #d9d8d2;
  --mute: #8d8d95;
  --hair: rgba(255, 255, 255, 0.08);
  --hair-2: rgba(255, 255, 255, 0.14);
  --shadow-float: 0 40px 80px -30px rgba(0, 0, 0, 0.7), 0 2px 6px rgba(0, 0, 0, 0.3);
  --shadow-soft: 0 18px 40px -20px rgba(0, 0, 0, 0.6), 0 1px 2px rgba(0, 0, 0, 0.3);
  --inset-hi: inset 0 1px 1px rgba(255, 255, 255, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: auto; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-text);
  font-size: 1.0625rem;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.app-open { overflow: hidden; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; letter-spacing: -0.02em; line-height: 0.98; margin: 0; }
p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; touch-action: manipulation; }
input { font: inherit; }
a { color: inherit; text-decoration: none; }
img, svg, canvas { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Korn – fix, pointer-events none, einziger Blur-/Textur-Layer */
.grain {
  position: fixed; inset: 0; z-index: 60; pointer-events: none; opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 160px 160px;
}

/* ───────── Bausteine ───────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5rem;
  border-radius: 999px; padding: 0.3rem 0.75rem;
  font-size: 0.625rem; letter-spacing: 0.22em; text-transform: uppercase; font-weight: 500;
  background: var(--hair); color: var(--ink-2);
}
.eyebrow i { width: 6px; height: 6px; border-radius: 50%; background: var(--cup); display: inline-block; }

.shell {
  background: rgba(20, 20, 22, 0.04);
  box-shadow: 0 0 0 1px var(--hair);
  padding: var(--pad-shell);
  border-radius: var(--r-xl);
}
.core {
  background: var(--paper);
  border-radius: calc(var(--r-xl) - var(--pad-shell));
  box-shadow: var(--inset-hi), var(--shadow-soft);
}
.shell.dark { background: rgba(255, 255, 255, 0.05); box-shadow: 0 0 0 1px var(--table-hair); }
.shell.dark .core { background: var(--table-2); box-shadow: var(--inset-hi-dark), 0 30px 60px -30px rgba(0, 0, 0, 0.8); }

.pill {
  position: relative; display: inline-flex; align-items: center; gap: 0.75rem;
  border-radius: 999px; padding: 0.85rem 0.6rem 0.85rem 1.5rem;
  background: var(--ink); color: var(--paper); font-weight: 500; font-size: 1rem;
  transition: transform 0.7s var(--ease), background 0.7s var(--ease), box-shadow 0.7s var(--ease);
  box-shadow: var(--shadow-soft);
  will-change: transform;
}
.pill .ico {
  width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
  background: rgba(255, 255, 255, 0.12); transition: transform 0.7s var(--ease), background 0.7s var(--ease);
}
.pill .ico svg { width: 1rem; height: 1rem; }
.pill:hover .ico { transform: translate(2px, -1px) scale(1.06); background: rgba(255, 255, 255, 0.2); }
.pill:active { transform: scale(0.98); }
.pill.red { background: var(--cup); color: #fff; }
.pill.ghost { background: transparent; color: var(--ink); box-shadow: 0 0 0 1px var(--hair-2) inset; }
.pill.ghost .ico { background: var(--hair); }
.pill.light { background: var(--paper); color: var(--ink); }
.pill.light .ico { background: var(--hair); }
.pill.wide { width: 100%; justify-content: space-between; }

/* Icons: dünne Linien, 1.25px */
.i { width: 1.1rem; height: 1.1rem; stroke: currentColor; fill: none; stroke-width: 1.25; stroke-linecap: round; stroke-linejoin: round; }

/* Einblendung beim Scrollen */
[data-reveal] { opacity: 0; transform: translateY(3.5rem); filter: blur(10px); will-change: transform, opacity, filter; }

/* ───────── Startseite ───────── */
.nav {
  position: fixed; top: 1.25rem; left: 50%; transform: translateX(-50%); z-index: 50;
  display: flex; align-items: center; gap: 0.25rem;
  padding: 0.35rem 0.35rem 0.35rem 1rem; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 72%, transparent);
  backdrop-filter: blur(18px) saturate(1.4); -webkit-backdrop-filter: blur(18px) saturate(1.4);
  box-shadow: 0 0 0 1px var(--hair), var(--shadow-soft);
  width: max-content; max-width: calc(100vw - 2rem);
}
.nav .mark { font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: -0.01em; display: flex; align-items: center; gap: 0.5rem; padding-right: 0.5rem; }
.nav .mark b { display: inline-block; width: 0.55rem; height: 0.7rem; background: var(--cup); border-radius: 0 0 0.3rem 0.3rem; transform: rotate(180deg); }
.nav .links { display: flex; gap: 0.1rem; }
.nav .links a { padding: 0.5rem 0.8rem; border-radius: 999px; font-size: 0.9rem; color: var(--mute); transition: color 0.5s var(--ease), background 0.5s var(--ease); }
.nav .links a:hover { color: var(--ink); background: var(--hair); }
.nav .pill { padding: 0.55rem 0.4rem 0.55rem 1rem; font-size: 0.9rem; box-shadow: none; }
.nav .pill .ico { width: 1.7rem; height: 1.7rem; }
.burger { position: relative; width: 2.6rem; height: 2.6rem; border-radius: 50%; display: none; place-items: center; }
.burger span { position: absolute; width: 1.1rem; height: 1.25px; background: var(--ink); transition: transform 0.7s var(--ease); }
.burger span:nth-child(1) { transform: translateY(-3.5px); }
.burger span:nth-child(2) { transform: translateY(3.5px); }
.menu-open .burger span:nth-child(1) { transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 45; display: grid; place-items: center;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: blur(40px) saturate(1.3); -webkit-backdrop-filter: blur(40px) saturate(1.3);
  opacity: 0; pointer-events: none; transition: opacity 0.7s var(--ease);
}
.menu-open .menu { opacity: 1; pointer-events: auto; }
.menu nav { display: grid; gap: 0.5rem; text-align: center; }
.menu nav a { font-family: var(--font-display); font-size: clamp(2.2rem, 9vw, 4rem); font-weight: 600; letter-spacing: -0.03em; opacity: 0; transform: translateY(3rem); transition: transform 0.9s var(--ease), opacity 0.9s var(--ease); }
.menu-open .menu nav a { opacity: 1; transform: none; }
.menu-open .menu nav a:nth-child(2) { transition-delay: 0.06s; }
.menu-open .menu nav a:nth-child(3) { transition-delay: 0.12s; }
.menu-open .menu nav a:nth-child(4) { transition-delay: 0.18s; }
.menu-open .menu nav a:nth-child(5) { transition-delay: 0.24s; }

.wrap { width: min(1240px, 100% - 2rem); margin-inline: auto; }
section.block { padding: clamp(5rem, 12vw, 10rem) 0; }

/* Hero – Editorial Split */
.hero { min-height: 100dvh; display: grid; align-items: center; padding-top: 6rem; padding-bottom: 3rem; }
.hero .grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(3.2rem, 9.5vw, 8.5rem); letter-spacing: -0.04em; }
.hero h1 .w { display: block; overflow: hidden; }
.hero h1 .w span { display: block; transform: translateY(110%); }
.hero h1 .red { color: var(--cup); }
.hero .lead { max-width: 34rem; font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--mute); margin-top: 1.75rem; }
.hero .cta { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2.25rem; }
.hero .meta { display: flex; gap: 1.5rem; margin-top: 2.5rem; font-size: 0.8rem; color: var(--mute); }
.hero .meta b { color: var(--ink); font-weight: 600; display: block; font-family: var(--font-display); font-size: 1.4rem; letter-spacing: -0.02em; }

.stage { position: relative; aspect-ratio: 4 / 5; }
.stage .core { position: absolute; inset: 0; overflow: hidden; background: linear-gradient(180deg, var(--paper) 0%, var(--paper-2) 100%); }
.stage canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; touch-action: none; cursor: grab; }
.stage .hint {
  position: absolute; left: 50%; bottom: 1.25rem; transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.9rem; border-radius: 999px;
  background: color-mix(in srgb, var(--paper) 80%, transparent); box-shadow: 0 0 0 1px var(--hair);
  font-size: 0.8rem; color: var(--ink-2); white-space: nowrap; pointer-events: none;
  transition: opacity 0.6s var(--ease);
}
.stage .hint .arrow { animation: nudge 1.6s var(--ease) infinite; }
@keyframes nudge { 0%, 100% { transform: translateY(2px); } 50% { transform: translateY(-3px); } }
.stage .matmini { position: absolute; top: 1rem; right: 1rem; width: 7.25rem; }
.stage .flood { position: absolute; inset: 0; background: var(--rot); transform: scaleY(0); transform-origin: bottom; pointer-events: none; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-size: 2.2rem; font-weight: 600; letter-spacing: -0.03em; }
.stage .flood span { opacity: 0; transform: translateY(1rem); }
.stage .tally { position: absolute; top: 1rem; left: 1rem; display: flex; gap: 0.35rem; }
.stage .tally i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--hair-2); transition: background 0.5s var(--ease), transform 0.5s var(--spring); }
.stage .tally i.on { background: var(--cup); transform: scale(1.25); }

/* Matte als SVG */
.mat { width: 100%; height: auto; }
.mat .cell { fill: var(--paper); stroke: var(--hair-2); stroke-width: 1; }
.mat .zone-rot { fill: var(--rot); } .mat .zone-blau { fill: var(--blau); } .mat .zone-gruen { fill: var(--gruen); } .mat .zone-gelb { fill: var(--gelb); }
.mat .danger { fill: rgba(20, 20, 22, 0.08); }
.mat .glass { fill: #fff; stroke: var(--ink); stroke-width: 1.25; }
.mat .glass-liquid { fill: var(--gelb); }

/* Abschnitt: So geht's (gepinnt) */
.howto .pin { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: center; min-height: 100dvh; }
.howto .steps { display: grid; gap: 2rem; }
.howto .step { opacity: 0.25; transition: opacity 0.6s var(--ease); display: grid; grid-template-columns: auto 1fr; gap: 1.25rem; align-items: start; }
.howto .step.on { opacity: 1; }
.howto .step .n { font-family: var(--font-display); font-size: 0.8rem; letter-spacing: 0.2em; padding-top: 0.5rem; color: var(--mute); }
.howto .step h3 { font-size: clamp(1.7rem, 3.4vw, 2.6rem); }
.howto .step p { color: var(--mute); margin-top: 0.6rem; max-width: 28rem; }
.howto .board { position: relative; }
.howto .board .core { padding: clamp(1.25rem, 4vw, 2.5rem); position: relative; overflow: hidden; }
.howto .cups { position: absolute; left: 0; right: 0; display: flex; justify-content: space-between; padding: 0 clamp(1.25rem, 4vw, 2.5rem); pointer-events: none; }
.howto .flood { position: absolute; inset: 0; background: var(--rot); clip-path: circle(0% at 50% 100%); display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -0.03em; }
.howto .phone { position: absolute; right: -4%; bottom: -6%; width: 42%; opacity: 0; transform: translateY(4rem) rotate(6deg); }

/* Telefon-Mockup (CSS) */
.phone .shell { padding: 0.45rem; border-radius: 2.6rem; background: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, var(--shadow-float); }
.phone .screen { border-radius: calc(2.6rem - 0.45rem); aspect-ratio: 9 / 19.5; background: var(--table); overflow: hidden; position: relative; color: #fff; }

/* Joker-Abschnitt */
.joker .grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center; }
.joker h2 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.035em; }
.joker .lead { color: var(--mute); margin-top: 1.5rem; max-width: 30rem; }
.joker .demo { display: grid; place-items: center; padding: 3rem 1rem; }
.jcard { position: relative; width: min(16rem, 70vw); aspect-ratio: 5 / 7; perspective: 1400px; touch-action: none; }
.jcard .face { position: absolute; inset: 0; border-radius: 1.5rem; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 0.9s var(--ease); box-shadow: var(--shadow-float); }
.jcard .back { background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.jcard .back .pattern { position: absolute; inset: 0.75rem; border-radius: 1rem; background: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.06) 0 2px, transparent 2px 10px); }
.jcard .back .j { position: relative; font-family: var(--font-display); font-size: 5rem; font-weight: 600; color: var(--cup); }
.jcard .front { background: var(--paper); color: var(--ink); transform: rotateY(180deg); padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 0 0 1px var(--hair), var(--shadow-float); }
.jcard .front .t { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--cup); }
.jcard .front p { font-family: var(--font-display); font-size: 1.35rem; font-weight: 500; line-height: 1.15; letter-spacing: -0.01em; }
.jcard.peek .back { transform: rotateY(180deg); }
.jcard.peek .front { transform: rotateY(360deg); }
.jcard .lbl { position: absolute; left: 50%; bottom: -3rem; transform: translateX(-50%); font-size: 0.8rem; color: var(--mute); white-space: nowrap; }

/* Decks */
.decks h2 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -0.035em; }
.decks .row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-top: 3rem; }
.deck { perspective: 1400px; aspect-ratio: 5 / 7; cursor: pointer; }
.deck .face { position: absolute; inset: 0; border-radius: var(--r-xl); backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 0.9s var(--ease); padding: 1.5rem; display: flex; flex-direction: column; justify-content: space-between; }
.deck { position: relative; }
.deck .a { background: var(--ink); color: var(--paper); box-shadow: var(--shadow-float); }
.deck .a .stripe { height: 0.4rem; border-radius: 999px; width: 40%; }
.deck .a h3 { font-size: 2rem; letter-spacing: -0.03em; margin-top: auto; }
.deck .a p { color: rgba(244, 243, 239, 0.6); font-size: 0.9rem; margin-top: 0.4rem; }
.deck .a .price { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; }
.deck .b { background: var(--paper); color: var(--ink); transform: rotateY(180deg); box-shadow: 0 0 0 1px var(--hair), var(--shadow-float); }
.deck .b .t { font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; }
.deck .b p { font-family: var(--font-display); font-size: 1.25rem; font-weight: 500; line-height: 1.15; }
.deck .b small { color: var(--mute); font-size: 0.8rem; }
.deck.flip .a { transform: rotateY(180deg); }
.deck.flip .b { transform: rotateY(360deg); }

/* Abschluss */
.final .core { padding: clamp(2.5rem, 7vw, 6rem); text-align: center; background: #141416; color: #f4f3ef; box-shadow: var(--inset-hi-dark), var(--shadow-float); }
.final .pill.light { background: #f4f3ef; color: #141416; } .final .pill.light .ico { background: rgba(20, 20, 22, 0.08); }
.final h2 { font-size: clamp(2.8rem, 8vw, 7rem); letter-spacing: -0.04em; }
.final p { color: rgba(244, 243, 239, 0.6); margin: 1.25rem auto 2rem; max-width: 28rem; }
footer { padding: 3rem 0 4rem; color: var(--mute); font-size: 0.8rem; display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }

/* ───────── App ───────── */
.app { position: fixed; inset: 0; z-index: 70; display: none; background: var(--ink); }
body.app-open .app { display: grid; place-items: center; }
.device { position: relative; width: 100%; height: 100dvh; background: var(--paper); color: var(--ink); overflow: hidden; --seat: var(--rot); user-select: none; -webkit-user-select: none; }
.device input { user-select: text; -webkit-user-select: text; }
@media (min-width: 768px) {
  .device { width: 430px; height: min(900px, 94dvh); border-radius: 2.6rem; box-shadow: 0 0 0 10px #0b0b0d, 0 0 0 11px rgba(255, 255, 255, 0.08), var(--shadow-float); }
}
.screen { position: absolute; inset: 0; display: flex; flex-direction: column; padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom)); opacity: 0; pointer-events: none; transform: translateY(1.1rem); overflow: hidden; visibility: hidden; transition: opacity 0.7s var(--ease), transform 0.9s var(--ease), visibility 0s linear 0.7s; }
.screen.on { opacity: 1; pointer-events: auto; transform: none; visibility: visible; transition-delay: 0s; }
.screen.leaving { transform: translateY(-0.6rem); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease), visibility 0s linear 0.4s; }
.screen.instant { transition: none; }
.screen.dark { background: var(--table); color: #fff; }
.screen .top { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; min-height: 2.75rem; }
.screen .top .code { font-family: var(--font-display); font-weight: 600; letter-spacing: 0.18em; font-size: 0.85rem; opacity: 0.6; }
.screen .top .round { font-family: var(--font-display); font-size: 0.75rem; letter-spacing: 0.18em; text-transform: uppercase; opacity: 0.6; }
.ibtn { width: 2.6rem; height: 2.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--hair); transition: transform 0.5s var(--ease), background 0.5s var(--ease); }
.ibtn:active { transform: scale(0.94); }
.dark .ibtn { background: rgba(255, 255, 255, 0.08); }
.screen .body { flex: 1; display: flex; flex-direction: column; min-height: 0; }
.screen .foot { display: grid; gap: 0.6rem; padding-top: 1rem; }
.screen h1 { font-size: clamp(2.4rem, 11vw, 3.4rem); letter-spacing: -0.035em; }
.screen .sub { color: var(--mute); margin-top: 0.6rem; }
.dark .sub { color: rgba(255, 255, 255, 0.55); }

.field { margin-top: 2rem; }
.field label { display: block; font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); margin-bottom: 0.5rem; }
.field .shell { padding: 0.3rem; border-radius: 1.4rem; }
.field input { width: 100%; border: 0; outline: 0; background: var(--paper); color: var(--ink); border-radius: 1.1rem; padding: 1rem 1.1rem; font-family: var(--font-display); font-size: 1.6rem; font-weight: 500; letter-spacing: -0.02em; box-shadow: var(--inset-hi); }
.field input::placeholder { color: var(--hair-2); }
.field input.code { letter-spacing: 0.25em; text-transform: uppercase; text-align: center; }

/* Lobby */
.lobby .codebox { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; margin-top: 1.25rem; }
.lobby .codebox .core { padding: 1rem 1.25rem; }
.lobby .codebox .big { font-family: var(--font-display); font-weight: 600; font-size: 2.2rem; letter-spacing: 0.2em; line-height: 1; }
.lobby .codebox small { color: var(--mute); font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; }
.lobby .qr { width: 5.2rem; height: 5.2rem; border-radius: 1rem; background: #fff; padding: 0.4rem; box-shadow: 0 0 0 1px var(--hair); }
.lobby .qr svg { width: 100%; height: 100%; }
.seats { margin-top: 1.5rem; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.seat { position: relative; display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem; border-radius: 1.25rem; background: var(--paper-2); box-shadow: 0 0 0 1px var(--hair) inset; transition: transform 0.6s var(--ease), background 0.6s var(--ease); text-align: left; }
.seat:active { transform: scale(0.97); }
.seat .dot { width: 2.4rem; height: 2.4rem; border-radius: 50%; flex: none; display: grid; place-items: center; color: #fff; font-family: var(--font-display); font-weight: 600; background: var(--c); box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35); }
.seat .nm { font-weight: 500; font-size: 0.95rem; line-height: 1.1; }
.seat .nm small { display: block; color: var(--mute); font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; margin-top: 0.15rem; }
.seat.free .dot { background: transparent; box-shadow: 0 0 0 1.25px var(--c) inset; color: var(--c); }
.seat.me { background: var(--paper); box-shadow: 0 0 0 1.5px var(--c) inset, var(--shadow-soft); }
.bench { margin-top: 0.75rem; font-size: 0.8rem; color: var(--mute); display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.bench b { font-weight: 500; color: var(--ink); }
.deckrow { margin-top: 1.5rem; display: flex; gap: 0.5rem; overflow-x: auto; scrollbar-width: none; padding-bottom: 0.25rem; }
.deckrow::-webkit-scrollbar { display: none; }
.dpill { flex: none; display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.9rem; border-radius: 999px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--hair) inset; font-size: 0.9rem; transition: background 0.5s var(--ease), color 0.5s var(--ease); }
.dpill i { width: 0.6rem; height: 0.6rem; border-radius: 50%; background: var(--c); }
.dpill.on { background: var(--ink); color: var(--paper); }
.dpill .lock { width: 0.9rem; height: 0.9rem; opacity: 0.6; }
.kurz { margin-top: 1.25rem; padding: 1rem 1.1rem; border-radius: 1.25rem; background: var(--paper-2); box-shadow: 0 0 0 1px var(--hair) inset; display: grid; gap: 0.5rem; font-size: 0.85rem; color: var(--ink-2); }
.kurz div { display: grid; grid-template-columns: 1.4rem 1fr; gap: 0.5rem; align-items: start; }
.kurz b { font-family: var(--font-display); font-weight: 600; color: var(--cup); font-size: 0.75rem; letter-spacing: 0.1em; padding-top: 0.15rem; }
.lbl { font-size: 0.7rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute); margin-top: 1.5rem; }

/* Tisch */
.table .mat { width: min(62%, 15rem); margin: 0 auto; }
.table .mat .cell { fill: var(--table-2); stroke: var(--table-hair); }
.table .mat .cell.zone-rot { fill: var(--rot); } .table .mat .cell.zone-blau { fill: var(--blau); } .table .mat .cell.zone-gruen { fill: var(--gruen); } .table .mat .cell.zone-gelb { fill: var(--gelb); }
.table .mat .cell.danger { fill: rgba(255, 255, 255, 0.06); }
.table .mat .danger { fill: rgba(255, 255, 255, 0.05); }
.table .players { position: relative; width: min(100%, 22rem); margin: 0.5rem auto 0; aspect-ratio: 1; display: grid; place-items: center; }
.table .players .mat { position: absolute; inset: 14%; width: auto; margin: 0; }
.table .pl { position: absolute; display: flex; flex-direction: column; align-items: center; gap: 0.3rem; font-size: 0.75rem; color: rgba(255, 255, 255, 0.7); }
.table .pl .dot { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-family: var(--font-display); font-weight: 600; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 0 0 3px var(--table); }
.table .pl.b { bottom: 0; left: 50%; transform: translateX(-50%); } .table .pl.t { top: 0; left: 50%; transform: translateX(-50%); }
.table .pl.l { left: 0; top: 50%; transform: translateY(-50%); } .table .pl.r { right: 0; top: 50%; transform: translateY(-50%); }
.table .pl.me .dot { box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35), 0 0 0 3px var(--table), 0 0 0 4.5px var(--c); }
.rules { display: flex; gap: 0.4rem; flex-wrap: wrap; justify-content: center; min-height: 1.9rem; margin-top: 0.25rem; }
.chip { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.7rem; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 0.75rem; color: rgba(255, 255, 255, 0.85); box-shadow: 0 0 0 1px var(--table-hair) inset; }
.chip b { font-family: var(--font-display); font-weight: 600; color: var(--gelb); }
.chip.mode { background: var(--gelb); color: var(--table); }
.seatline { position: absolute; left: 0; right: 0; bottom: 0; height: 0.45rem; background: var(--seat); border-radius: 999px 999px 0 0; }

/* Joker-Stapel auf dem Tisch */
.jslot { position: relative; margin: 0.5rem auto 0; width: 6.4rem; aspect-ratio: 5 / 7; perspective: 1000px; touch-action: none; }
.jslot .face { position: absolute; inset: 0; border-radius: 0.9rem; backface-visibility: hidden; -webkit-backface-visibility: hidden; transition: transform 0.8s var(--ease); }
.jslot .back { background: var(--paper); color: var(--cup); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 2.4rem; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.5) inset, 0 20px 30px -16px rgba(0, 0, 0, 0.9); }
.jslot .back::after { content: ""; position: absolute; inset: 0.35rem; border-radius: 0.6rem; background: repeating-linear-gradient(135deg, rgba(20, 20, 22, 0.06) 0 2px, transparent 2px 9px); }
.jslot .front { background: var(--ink); color: var(--paper); transform: rotateY(180deg); padding: 0.6rem; font-size: 0.62rem; line-height: 1.25; display: grid; align-content: center; text-align: center; box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.1) inset; }
.jslot { z-index: 1; } .jslot.peek { z-index: 3; }
.jslot.peek .back { transform: rotateY(180deg) scale(1.7); } .jslot.peek .front { transform: rotateY(360deg) scale(1.7); }
.jslot.gone { opacity: 0.25; pointer-events: none; }
.jlbl { text-align: center; font-size: 0.7rem; color: rgba(255, 255, 255, 0.45); margin-top: 0.5rem; letter-spacing: 0.08em; }

/* Halten-Knopf */
.hold { position: relative; width: 100%; border-radius: 999px; padding: 1.25rem 1.5rem; font-family: var(--font-display); font-weight: 600; font-size: 1.35rem; letter-spacing: -0.01em; overflow: hidden; background: var(--paper); color: var(--ink); display: flex; align-items: center; justify-content: space-between; touch-action: none; user-select: none; -webkit-user-select: none; transition: transform 0.5s var(--ease); box-shadow: var(--inset-hi), var(--shadow-float); }
.hold.red { background: var(--cup); color: #fff; }
.hold.seat { background: var(--seat); color: #fff; }
.hold .fill { position: absolute; inset: 0; background: rgba(0, 0, 0, 0.18); transform: scaleX(0); transform-origin: left; }
.hold.light .fill { background: rgba(20, 20, 22, 0.1); }
.hold span { position: relative; }
.hold small { position: relative; font-family: var(--font-text); font-weight: 400; font-size: 0.75rem; opacity: 0.7; letter-spacing: 0.1em; text-transform: uppercase; }
.hold.holding { transform: scale(0.985); }
.hold.ghost { background: transparent; color: #fff; box-shadow: 0 0 0 1px var(--table-hair) inset; }
.hold.disabled { opacity: 0.4; pointer-events: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.tbtn { border-radius: 999px; padding: 0.9rem 1rem; background: rgba(255, 255, 255, 0.08); color: #fff; font-weight: 500; font-size: 0.9rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; box-shadow: 0 0 0 1px var(--table-hair) inset; transition: transform 0.5s var(--ease); }
.tbtn:active { transform: scale(0.97); }
.light .tbtn { background: var(--paper-2); color: var(--ink); box-shadow: 0 0 0 1px var(--hair) inset; }

/* Flut */
.flood-screen { background: var(--seat); color: #fff; justify-content: center; }
.flood-screen h1 { font-size: clamp(3.4rem, 18vw, 6rem); letter-spacing: -0.045em; text-align: center; }
.flood-screen .who { text-align: center; font-family: var(--font-display); font-size: 1.1rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.8; margin-top: 0.75rem; }
.flood-screen .undo { position: absolute; left: 50%; bottom: 2rem; transform: translateX(-50%); }

/* Ziehen (Verlierer) */
.draw { background: var(--seat); color: #fff; }
.draw .stack { position: relative; flex: 1; display: grid; place-items: center; touch-action: none; }
.draw .card { position: absolute; width: min(72%, 17rem); aspect-ratio: 5 / 7; border-radius: 1.6rem; background: var(--paper); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, 0.5); display: grid; place-items: center; color: var(--ink); font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: 0.2em; text-transform: uppercase; will-change: transform; }
.draw .card::after { content: ""; position: absolute; inset: 0.6rem; border-radius: 1.1rem; background: repeating-linear-gradient(135deg, rgba(20, 20, 22, 0.05) 0 2px, transparent 2px 10px); }
.draw .card.c2 { transform: translateY(0.6rem) scale(0.96); opacity: 0.8; } .draw .card.c3 { transform: translateY(1.2rem) scale(0.92); opacity: 0.6; }
.draw .card.top { cursor: grab; }
.draw .card.top span { position: relative; z-index: 1; }
.draw .cue { text-align: center; opacity: 0.85; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; }
.draw .cue .arrow { display: inline-block; animation: nudge 1.4s var(--ease) infinite; margin-right: 0.4rem; }

/* Karte */
.cardscreen .bigcard { flex: 1; min-height: 0; border-radius: 1.8rem; background: var(--paper); color: var(--ink); padding: 1.6rem 1.5rem; display: flex; flex-direction: column; box-shadow: var(--inset-hi), var(--shadow-float); position: relative; overflow: hidden; }
.cardscreen .bigcard .kind { display: inline-flex; align-items: center; gap: 0.5rem; font-family: var(--font-display); font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--seat); }
.cardscreen .bigcard .kind i { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--seat); }
.cardscreen .bigcard .txt { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 6.4vw, 2.1rem); line-height: 1.08; letter-spacing: -0.02em; margin-top: auto; }
.cardscreen .bigcard .txt b { color: var(--seat); font-weight: 600; }
.cardscreen .bigcard .for { font-size: 0.8rem; color: var(--mute); margin-top: 1.25rem; display: flex; align-items: center; gap: 0.5rem; }
.cardscreen .bigcard .for .dot { width: 1.3rem; height: 1.3rem; border-radius: 50%; background: var(--seat); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 0.65rem; }
.cardscreen .bigcard .dur { position: absolute; top: 1.3rem; right: 1.3rem; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.65rem; border-radius: 999px; background: var(--hair); font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; }
.timer { display: grid; place-items: center; margin: 0.5rem auto 0; width: 7.5rem; position: relative; }
.timer svg { width: 7.5rem; height: 7.5rem; transform: rotate(-90deg); }
.timer circle { fill: none; stroke-width: 3; }
.timer .track { stroke: var(--hair-2); } .timer .prog { stroke: var(--seat); stroke-linecap: round; }
.timer .num { position: absolute; font-family: var(--font-display); font-weight: 600; font-size: 2rem; letter-spacing: -0.03em; }

/* Steht? */
.ready h1 { text-align: center; }
.ready .list { display: grid; gap: 0.5rem; margin-top: 1.5rem; }
.ready .pr { display: flex; align-items: center; gap: 0.75rem; padding: 0.7rem 0.9rem; border-radius: 1.1rem; background: rgba(255, 255, 255, 0.06); box-shadow: 0 0 0 1px var(--table-hair) inset; }
.ready .pr .dot { width: 2rem; height: 2rem; border-radius: 50%; background: var(--c); display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; }
.ready .pr .st { margin-left: auto; font-size: 0.75rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255, 255, 255, 0.45); }
.ready .pr.ok .st { color: var(--gruen); }
.count { position: absolute; inset: 0; display: grid; place-items: center; background: var(--table); color: #fff; opacity: 0; pointer-events: none; }
.count .n { font-family: var(--font-display); font-weight: 600; font-size: clamp(8rem, 50vw, 14rem); letter-spacing: -0.06em; line-height: 1; }
.count .prost { font-size: clamp(4rem, 24vw, 6.5rem); color: var(--gelb); }

/* STOP */
.stop { background: var(--gelb); color: var(--table); justify-content: center; }
.stop h1 { font-size: clamp(4rem, 26vw, 8rem); letter-spacing: -0.05em; text-align: center; }
.stop .who { text-align: center; font-family: var(--font-display); letter-spacing: 0.2em; text-transform: uppercase; font-size: 0.9rem; margin-top: 0.5rem; }
.stop .jtxt { margin: 2rem auto 0; max-width: 20rem; text-align: center; font-family: var(--font-display); font-weight: 500; font-size: 1.5rem; line-height: 1.15; letter-spacing: -0.02em; }

/* Ende */
.end .hero-stat { text-align: center; margin-top: 1.5rem; }
.end .hero-stat .dot { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--c); margin: 0 auto; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 1.8rem; color: #fff; box-shadow: inset 0 1px 1px rgba(255, 255, 255, 0.35); }
.end .hero-stat h2 { font-size: 2.4rem; letter-spacing: -0.035em; margin-top: 0.8rem; }
.end .hero-stat small { color: var(--mute); letter-spacing: 0.15em; text-transform: uppercase; font-size: 0.7rem; }
.end .titles { display: grid; gap: 0.5rem; margin-top: 1.5rem; }
.end .tt { display: flex; align-items: center; gap: 0.75rem; padding: 0.8rem 0.9rem; border-radius: 1.1rem; background: var(--paper-2); box-shadow: 0 0 0 1px var(--hair) inset; }
.end .tt .dot { width: 2rem; height: 2rem; border-radius: 50%; background: var(--c); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 600; font-size: 0.8rem; }
.end .tt b { font-family: var(--font-display); font-weight: 600; display: block; }
.end .tt small { color: var(--mute); font-size: 0.75rem; }
.end .tt .v { margin-left: auto; font-family: var(--font-display); font-weight: 600; font-size: 1.4rem; letter-spacing: -0.02em; }

/* Menü im Spiel */
.sheet { position: absolute; inset: 0; display: grid; align-items: end; background: rgba(0, 0, 0, 0.4); opacity: 0; pointer-events: none; transition: opacity 0.5s var(--ease); z-index: 5; }
.sheet.on { opacity: 1; pointer-events: auto; }
.sheet .panel { background: var(--paper); color: var(--ink); border-radius: 1.8rem 1.8rem 0 0; padding: 1.25rem 1rem max(1.25rem, env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform 0.7s var(--ease); display: grid; gap: 0.5rem; }
.sheet.on .panel { transform: none; }
.sheet .panel .h { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; margin-bottom: 0.5rem; display: flex; justify-content: space-between; align-items: center; }
.sheet .opt { display: flex; align-items: center; gap: 0.75rem; padding: 0.9rem 1rem; border-radius: 1.1rem; background: var(--paper-2); box-shadow: 0 0 0 1px var(--hair) inset; text-align: left; font-weight: 500; }
.sheet .opt small { margin-left: auto; color: var(--mute); font-weight: 400; font-size: 0.8rem; }
.sheet .opt.danger { color: var(--cup); }

/* Toast-Ersatz: eine dezente Zeile */
.note { position: absolute; left: 50%; top: 4.5rem; transform: translate(-50%, -1rem); padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--ink); color: var(--paper); font-size: 0.8rem; opacity: 0; pointer-events: none; white-space: nowrap; z-index: 6; }
.dark .note { background: var(--paper); color: var(--ink); }

/* ───────── Mobil ───────── */
@media (max-width: 1023px) {
  .decks .row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 767px) {
  .wrap { width: calc(100% - 2rem); }
  section.block { padding: 4rem 0; }
  .nav { top: 0.9rem; padding-left: 0.9rem; }
  .nav .links { display: none; }
  .burger { display: grid; }
  .hero { padding-top: 5.5rem; }
  .hero .grid { grid-template-columns: 1fr; gap: 2rem; }
  .hero h1 { font-size: clamp(3rem, 16vw, 4.6rem); }
  .stage { aspect-ratio: 4 / 4.4; }
  .howto .pin { grid-template-columns: 1fr; min-height: auto; gap: 2rem; }
  .howto .phone { display: none; }
  .joker .grid { grid-template-columns: 1fr; gap: 2rem; }
  .decks .row { grid-template-columns: 1fr 1fr; gap: 0.75rem; }
  .deck .a h3 { font-size: 1.4rem; } .deck .face { padding: 1rem; } .deck .b p { font-size: 1rem; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; filter: none; }
  .stage .hint .arrow, .draw .cue .arrow { animation: none; }
}
