/* ==========================================================================
   Für Bianca – Geburtstagsgeschenk
   ========================================================================== */

@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../assets/fonts/fraunces-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113; }
@font-face { font-family: 'Fraunces'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url(../assets/fonts/fraunces-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Fraunces'; font-style: italic; font-display: swap; font-weight: 100 900;
  src: url(../assets/fonts/fraunces-latin-wght-italic.woff2) format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url(../assets/fonts/dm-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1E00-1E9F,U+20A0-20AB,U+20AD-20C0,U+2113; }
@font-face { font-family: 'DM Sans'; font-style: normal; font-display: swap; font-weight: 100 1000;
  src: url(../assets/fonts/dm-sans-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'DM Mono'; font-style: normal; font-display: swap; font-weight: 500;
  src: url(../assets/fonts/dm-mono-latin-500-normal.woff2) format('woff2'); }

:root {
  --night-950: #05071A;
  --night-900: #070A1F;
  --night-800: #0C1233;
  --night-700: #141C4A;
  --night-600: #1F2A66;
  --cream: #F6EFE3;
  --paper: #FBF7EF;
  --ink: #171A33;
  --ink-soft: #4A4E6B;
  --red: #D62839;
  --red-bright: #EC4654;
  --red-deep: #A81B2B;
  --gold: #E8C173;
  --gold-deep: #C9A24B;
  --amber: #FFC94A;
  --text: #F5F1E8;
  --text-soft: rgba(245, 241, 232, .78);
  --line: rgba(245, 241, 232, .16);

  --font-display: 'Fraunces', 'Iowan Old Style', Georgia, serif;
  --font-body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'DM Mono', ui-monospace, 'SF Mono', Menlo, Consolas, monospace;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 64px;
  --radius: 18px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --ease-out: cubic-bezier(.2, .8, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--night-900);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
  overflow: hidden;
  overscroll-behavior: none;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
[hidden] { display: none !important; }

#sky, #fx { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
#sky { z-index: 0; background:
  radial-gradient(120% 70% at 50% 108%, #2A2F7A 0%, rgba(31, 42, 102, .55) 34%, transparent 70%),
  radial-gradient(60% 40% at 82% 8%, rgba(214, 40, 57, .16), transparent 70%),
  linear-gradient(180deg, var(--night-950), var(--night-800) 62%, #151B4D); }
#fx { z-index: 40; pointer-events: none; }
#flash { position: fixed; inset: 0; z-index: 50; background: #fff; opacity: 0; pointer-events: none; }

#app { position: fixed; inset: 0; z-index: 10; }
.scene {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(var(--s5) + var(--safe-t)) var(--s5) calc(var(--s5) + var(--safe-b));
  user-select: none; -webkit-user-select: none; -webkit-touch-callout: none;
  touch-action: manipulation;
}
.scene--scroll { display: block; overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; padding: 0; }
.scene--dark { background: radial-gradient(120% 80% at 50% 0%, #1A1C24, #08090C 70%); }

/* ---------- Typo ---------- */
.kicker {
  font-size: 12px; font-weight: 600; letter-spacing: .26em; text-transform: uppercase;
  color: var(--gold);
}
.kicker--light { color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
.display {
  font-family: var(--font-display); font-weight: 420; font-size: clamp(36px, 10.5vw, 52px);
  line-height: 1.04; letter-spacing: -.02em; text-wrap: balance;
  font-variation-settings: 'opsz' 144;
}
.display em, .section-title em { font-style: italic; font-weight: 380; color: var(--gold); }
.display--sm { font-size: clamp(30px, 8.6vw, 42px); }
.lead { font-size: 19px; line-height: 1.45; color: var(--text); text-wrap: pretty; }
.ico { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  min-height: 56px; padding: 0 var(--s6); border-radius: 999px;
  font-weight: 650; font-size: 17px; letter-spacing: .01em; text-decoration: none;
  transition: transform .14s var(--ease-out), box-shadow .2s, background-color .2s, opacity .2s;
  touch-action: manipulation;
}
.btn:active { transform: scale(.96); }
.btn--primary {
  color: #fff; background: linear-gradient(180deg, var(--red-bright), var(--red));
  box-shadow: 0 10px 30px -8px rgba(214, 40, 57, .75), inset 0 1px 0 rgba(255, 255, 255, .28);
}
.btn--ghost { color: var(--text); border: 1.5px solid var(--line); background: rgba(255, 255, 255, .04); }
.btn--amber { color: #1A1300; background: linear-gradient(180deg, #FFD976, var(--amber)); box-shadow: 0 0 0 0 rgba(255, 201, 74, .6); animation: pulse-amber 1.6s infinite; }
.btn[disabled] { opacity: .55; pointer-events: none; }
.btn:focus-visible, .iconbtn:focus-visible, .linkbtn:focus-visible, .seal:focus-visible, .gift:focus-visible { outline: 2px solid var(--gold); outline-offset: 4px; }
@keyframes pulse-amber { 70% { box-shadow: 0 0 0 18px rgba(255, 201, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 201, 74, 0); } }
.iconbtn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: var(--text-soft); }
.iconbtn .mute-off { display: none; }
.iconbtn[aria-pressed="true"] .mute-on { display: none; }
.iconbtn[aria-pressed="true"] .mute-off { display: inline; }
.linkbtn { min-height: 44px; padding: 0 var(--s3); font-size: 14px; color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }

/* ==========================================================================
   Geschenk
   ========================================================================== */
.gift {
  --gw: min(74vw, 300px, calc(var(--stage-h, 400px) * .9));
  position: relative; width: var(--gw); aspect-ratio: 300 / 320; flex: none;
  touch-action: none;
}
.gift--float { animation: floaty 4.6s ease-in-out infinite; cursor: pointer; }
@keyframes floaty { 0%, 100% { transform: translateY(0) rotate(-1.2deg); } 50% { transform: translateY(-10px) rotate(1.2deg); } }
.gift__shadow {
  position: absolute; left: 10%; right: 10%; bottom: -3%; height: 9%;
  background: radial-gradient(closest-side, rgba(0, 0, 0, .55), transparent); filter: blur(6px);
}
.gift__halo {
  position: absolute; inset: -22%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(232, 193, 115, .28), rgba(232, 193, 115, .08) 55%, transparent 72%);
  animation: halo 3.6s ease-in-out infinite;
}
@keyframes halo { 50% { opacity: .55; transform: scale(1.06); } }
.box { position: absolute; inset: 0; }
.box__body {
  position: absolute; left: 11.333%; top: 43.75%; width: 77.333%; height: 51.25%;
  border-radius: 7px;
  background:
    radial-gradient(1.5px 1.5px at 18% 22%, var(--gold) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 78% 30%, var(--gold) 50%, transparent 52%),
    radial-gradient(1px 1px at 64% 78%, var(--gold) 50%, transparent 52%),
    radial-gradient(1px 1px at 28% 70%, var(--gold) 50%, transparent 52%),
    radial-gradient(1.5px 1.5px at 88% 84%, var(--gold) 50%, transparent 52%),
    linear-gradient(90deg, #111A45, #1C2867 48%, #121B49);
  box-shadow: inset 0 14px 18px -8px rgba(0, 0, 0, .55);
  display: grid; place-items: center; overflow: hidden;
}
.box__frame { position: absolute; inset: 9px; border: 1px solid rgba(232, 193, 115, .55); border-radius: 4px; }
.box__label {
  font-family: var(--font-display); color: var(--gold); text-align: center;
  font-size: calc(var(--gw) * .085); line-height: 1.05; letter-spacing: .01em; font-weight: 400;
}
.box__label em { font-size: 1.5em; font-style: italic; font-weight: 420; }
.box__lid {
  position: absolute; left: 6.667%; top: 28.125%; width: 86.667%; height: 16.875%;
  border-radius: 7px;
  background: linear-gradient(90deg, #17225A, #25337F 48%, #17225A);
  box-shadow: 0 6px 10px -4px rgba(0, 0, 0, .5), inset 0 1px 0 rgba(255, 255, 255, .14);
  will-change: transform;
}
.box__lid::after { content: ''; position: absolute; inset: 0 0 62% 0; border-radius: 7px 7px 0 0; background: linear-gradient(180deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, 0)); }
.touch-hint { position: absolute; left: 41%; top: 58%; width: 18%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: rgba(255, 255, 255, .3); border: 2px solid rgba(255, 255, 255, .9); box-shadow: 0 2px 10px rgba(0, 0, 0, .35); }
.touch-hint--swipe { animation: hint-swipe 2s ease-in-out infinite; }
.touch-hint--tap { top: 28%; animation: hint-tap .95s ease-out infinite; }
@keyframes hint-swipe { 0% { transform: translate(-130%, -60%); opacity: 0; } 12% { opacity: 1; } 45% { transform: translate(130%, -10%); } 88% { transform: translate(-110%, 70%); opacity: 1; } 100% { transform: translate(-110%, 70%); opacity: 0; } }
@keyframes hint-tap { 0% { transform: scale(1.3); opacity: 0; } 30% { transform: scale(.85); opacity: 1; box-shadow: 0 0 0 0 rgba(255, 255, 255, .6); } 100% { transform: scale(.85); opacity: 0; box-shadow: 0 0 0 20px rgba(255, 255, 255, 0); } }
.box__glow {
  position: absolute; left: 2%; right: 2%; top: 34%; height: 22%; opacity: 0; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 236, 170, .98), rgba(255, 201, 74, .6) 45%, transparent 75%);
  filter: blur(7px); mix-blend-mode: screen;
}
.box__beam {
  position: absolute; left: -30%; right: -30%; bottom: 52%; height: 190%; opacity: 0; pointer-events: none;
  background: linear-gradient(0deg, rgba(255, 232, 160, .95), rgba(255, 214, 120, .35) 45%, transparent 85%);
  clip-path: polygon(34% 100%, 66% 100%, 100% 0, 0 0);
  filter: blur(10px); mix-blend-mode: screen; transform-origin: 50% 100%;
}
.gift__paper { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; }
.gift__ribbon { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.rb-handle { pointer-events: auto; cursor: grab; touch-action: none; outline: none; }
.rb-handle:active { cursor: grabbing; }
.rb-pulse { transform-box: fill-box; transform-origin: center; animation: rb-pulse 1.5s ease-out infinite; }
@keyframes rb-pulse { from { transform: scale(.9); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.gift.is-tappable { cursor: pointer; }

/* ==========================================================================
   0 · Sperrbildschirm
   ========================================================================== */
.lock { display: flex; flex-direction: column; align-items: center; text-align: center; width: 100%; max-width: 420px; }
.lock .gift { --gw: min(58vw, 240px, calc((100dvh - 400px) * .9375)); }
.lock__gift { position: relative; margin: var(--s6) 0 var(--s7); }
.lock__bubble {
  position: absolute; left: 50%; top: -6px; transform: translate(-50%, -100%); white-space: nowrap;
  padding: 9px 16px; border-radius: 999px; background: var(--paper); color: var(--ink);
  font-size: 15px; font-weight: 600; opacity: 0; pointer-events: none;
  box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .6);
}
.lock__bubble::after { content: ''; position: absolute; left: 50%; bottom: -6px; width: 12px; height: 12px; background: inherit; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); width: 100%; max-width: 340px; }
.countdown__cell {
  display: flex; flex-direction: column; align-items: center; gap: 2px; padding: var(--s3) 0 var(--s2);
  border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
}
.countdown__num { font-family: var(--font-display); font-size: clamp(30px, 9vw, 40px); font-weight: 420; line-height: 1; font-variant-numeric: tabular-nums lining-nums; }
.countdown__lbl { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--text-soft); }
.lock__note { margin-top: var(--s5); color: var(--text-soft); font-size: 15px; }
.lock__sign { margin-top: var(--s2); font-family: var(--font-display); font-style: italic; font-size: 20px; color: var(--gold); }
.final-count { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(5, 7, 26, .88); z-index: 5; }
.final-count span { font-family: var(--font-display); font-size: min(62vw, 300px); line-height: 1; font-weight: 500; color: var(--gold); font-variant-numeric: tabular-nums; }

/* ==========================================================================
   1 · Begrüßung
   ========================================================================== */
.intro { display: flex; flex-direction: column; align-items: flex-start; gap: var(--s5); width: 100%; max-width: 420px; }
.intro .lead { color: var(--text); }
.hint { display: flex; align-items: center; gap: var(--s3); color: var(--text-soft); font-size: 15px; line-height: 1.4; }
.hint .ico { color: var(--gold); }
.intro .btn { width: 100%; }
.intro__sign { font-family: var(--font-display); font-style: italic; font-size: 22px; color: var(--gold); align-self: flex-end; }

/* ==========================================================================
   2 · Auspacken
   ========================================================================== */
#s-unwrap { --stage-h: min(376px, calc(100dvh - 290px)); justify-content: center; gap: 18px; padding: calc(64px + var(--safe-t)) 0 calc(var(--s5) + var(--safe-b)); }
.hud { position: absolute; top: calc(var(--s3) + var(--safe-t)); left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: var(--s3); width: 100%; max-width: 460px; padding: 0 var(--s3) 0 var(--s5); }
.hype { flex: 1; display: flex; align-items: center; gap: var(--s3); min-width: 0; }
.hype__lbl { font-size: 11px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.hype__track { flex: 1; height: 8px; border-radius: 99px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.hype__fill { display: block; height: 100%; width: 100%; border-radius: inherit; transform-origin: 0 50%; transform: scaleX(.04);
  background: linear-gradient(90deg, var(--gold), #FF8A5B 60%, var(--red-bright)); }
.hype__mood { font-size: 12px; font-weight: 600; color: var(--text-soft); min-width: 104px; text-align: right; white-space: nowrap; }
.stage { position: relative; flex: 0 0 auto; height: var(--stage-h); width: 100%; display: grid; place-items: center; }
.stage > * { grid-area: 1 / 1; }
.prompt { width: 100%; max-width: 460px; min-height: 148px; padding: 0 var(--s5); text-align: center; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.prompt__step { font-size: 11px; font-weight: 700; letter-spacing: .24em; text-transform: uppercase; color: var(--gold); }
.prompt__title { font-family: var(--font-display); font-weight: 430; font-size: clamp(25px, 7.2vw, 32px); line-height: 1.1; letter-spacing: -.01em; text-wrap: balance; }
.prompt__sub { color: var(--text-soft); font-size: 16px; text-wrap: balance; }

/* Umschlag */
.env { width: min(80vw, 330px, calc(var(--stage-h) * 1.3)); aspect-ratio: 3 / 2; position: relative; filter: drop-shadow(0 22px 28px rgba(0, 0, 0, .5)); }
.env__inner { position: absolute; inset: 0; perspective: 900px; }
.env__back, .env__front, .env__flap, .env__letter { position: absolute; inset: 0; }
.env__back { z-index: 0; background: #E4D8C2; border-radius: 10px; }
.env__front { z-index: 2; } .env__flap { z-index: 3; } .seal { z-index: 4; }
.env__letter { z-index: 1; inset: 8% 7% 10%; background: var(--paper); border-radius: 6px; padding: 12% 12% 0; display: flex; flex-direction: column; gap: 9%; box-shadow: 0 2px 8px rgba(0, 0, 0, .18); }
.env__letter span { height: 4%; border-radius: 9px; background: rgba(23, 26, 51, .16); }
.env__letter span:nth-child(2) { width: 82%; } .env__letter span:nth-child(3) { width: 55%; }
.env__front { border-radius: 10px;
  background: linear-gradient(180deg, #F3EADA, var(--cream));
  clip-path: polygon(0 0, 50% 56%, 100% 0, 100% 100%, 0 100%); }
.env__front::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(to top right, rgba(120, 96, 52, .10) calc(50% - 1px), rgba(90, 70, 34, .38) 50%, transparent calc(50% + 1px)) left bottom / 50% 62% no-repeat,
  linear-gradient(to top left, rgba(120, 96, 52, .10) calc(50% - 1px), rgba(90, 70, 34, .38) 50%, transparent calc(50% + 1px)) right bottom / 50% 62% no-repeat; }
.env__flap { transform-origin: 50% 0; backface-visibility: visible; filter: drop-shadow(0 4px 4px rgba(60, 44, 16, .35)); }
.env__flap i { position: absolute; inset: 0; display: block; background: linear-gradient(180deg, #FFFCF5, #F1E6D0); clip-path: polygon(0 0, 100% 0, 50% 60%); border-radius: 10px 10px 0 0; }
.seal { position: absolute; left: 50%; top: 58%; width: 34%; aspect-ratio: 1; transform: translate(-50%, -50%); touch-action: none; border-radius: 50%; }
.seal svg { width: 100%; height: 100%; overflow: visible; display: block; }
.seal__track { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 4; }
.seal__ring { fill: none; stroke: var(--gold); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 100; transform: rotate(-90deg); transform-origin: 50px 50px; }
.seal__blob { fill: var(--red); filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .35)); }
.seal__inner { fill: none; stroke: rgba(0, 0, 0, .22); stroke-width: 2; }
.seal__shine { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1.500; }
.seal__heart { fill: var(--red-deep); stroke: rgba(255, 255, 255, .25); stroke-width: 1; }
.seal__wax { transform-origin: 50px 50px; }
.seal.is-idle .seal__wax { animation: seal-beat 1.4s ease-in-out infinite; }
@keyframes seal-beat { 0%, 100% { transform: scale(1); } 12% { transform: scale(1.07); } 24% { transform: scale(1); } 36% { transform: scale(1.05); } }

/* Karten */
.deck { position: relative; width: min(76vw, 300px, calc(var(--stage-h) * .76)); aspect-ratio: 4 / 5; }
.card {
  position: absolute; inset: 0; border-radius: 22px; padding: var(--s5);
  background: linear-gradient(170deg, #FFFCF6, var(--cream)); color: var(--ink);
  display: flex; flex-direction: column; justify-content: space-between; text-align: left;
  box-shadow: 0 24px 40px -18px rgba(0, 0, 0, .7), 0 0 0 1px rgba(23, 26, 51, .06);
  cursor: pointer; touch-action: manipulation; will-change: transform;
}
.card__top { display: flex; justify-content: space-between; align-items: center; color: var(--red); }
.card__top .ico { width: 34px; height: 34px; stroke-width: 1.5; }
.card__num { font-family: var(--font-mono); font-size: 13px; color: var(--ink-soft); letter-spacing: .08em; }
.card__title { font-family: var(--font-display); font-size: clamp(27px, 7.6vw, 33px); line-height: 1.08; font-weight: 440; letter-spacing: -.015em; text-wrap: balance; }
.card__sub { margin-top: var(--s3); font-family: var(--font-display); font-style: italic; font-size: clamp(21px, 5.8vw, 25px); line-height: 1.15; color: var(--red); }
.card__foot { display: flex; align-items: center; justify-content: space-between; font-size: 12px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--ink-soft); }
.card__foot .ico { width: 18px; height: 18px; }
.card--last .card__foot { color: var(--red); }

/* ==========================================================================
   3 · Anzeigetafel
   ========================================================================== */
#s-board { gap: var(--s5); }
.board {
  --cell-gap: 3px;
  --cell-w: calc((min(100vw - 40px, 400px) - 28px - 8 * var(--cell-gap)) / 9);
  width: min(100vw - 40px, 400px); padding: 14px; border-radius: 16px;
  background: linear-gradient(180deg, #17191F, #0E0F13); border: 1px solid #2A2D36;
  box-shadow: 0 30px 60px -20px #000, inset 0 1px 0 rgba(255, 255, 255, .06);
}
.board__head { display: flex; align-items: center; gap: var(--s3); padding: 2px 2px 12px; border-bottom: 1px solid #2A2D36; color: var(--amber); }
.board__plane { width: 28px; height: 28px; }
.board__titles { flex: 1; display: flex; flex-direction: column; line-height: 1.1; }
.board__titles strong { font-size: 18px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; }
.board__titles span { font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 201, 74, .7); }
.board__clock { font-family: var(--font-mono); font-size: 18px; color: #fff; }
.board__rows { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.brow__lbl { display: block; font-family: var(--font-mono); font-size: 10.500px; letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 201, 74, .85); margin-bottom: 4px; }
.brow__cells { display: flex; gap: var(--cell-gap); }
.flap {
  position: relative; width: var(--cell-w); height: calc(var(--cell-w) * 1.36); border-radius: 4px;
  background: linear-gradient(180deg, #2B2E38 0 49%, #0A0B0E 49% 52%, #22252E 52%);
  display: grid; place-items: center; overflow: hidden;
  font-family: var(--font-mono); font-weight: 500; font-size: calc(var(--cell-w) * .78); line-height: 1; color: #F4F4F0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}
.flap span { display: block; transform-origin: 50% 50%; }
.brow--dest .flap { height: calc(var(--cell-w) * 1.5); font-size: calc(var(--cell-w) * .86); }
.brow--dest .flap.is-locked { color: #1A1300; background: linear-gradient(180deg, #FFE08A 0 49%, #B98A1E 49% 52%, #FFC94A 52%); box-shadow: 0 0 18px rgba(255, 201, 74, .65); }
.brow--dest .flap.is-fake { color: #fff; background: linear-gradient(180deg, #5A5F70 0 49%, #0A0B0E 49% 52%, #474B5A 52%); }
.board__caption { min-height: 28px; font-family: var(--font-display); font-style: italic; font-size: 21px; color: var(--text); text-align: center; }

/* ==========================================================================
   4 · Enthüllung
   ========================================================================== */
#s-reveal { padding: 0; overflow: hidden; }
.reveal__bg { position: absolute; inset: -4%; background: #0C1233 center / cover no-repeat; will-change: transform; }
.reveal__shade { position: absolute; inset: 0; background:
  linear-gradient(180deg, rgba(5, 7, 26, .55) 0%, rgba(5, 7, 26, .12) 28%, rgba(5, 7, 26, .55) 58%, rgba(5, 7, 26, .94) 100%); }
.reveal { position: relative; width: 100%; max-width: 460px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; text-align: center; gap: var(--s3);
  padding: var(--s5) var(--s5) calc(var(--s6) + var(--safe-b)); }
.reveal__city {
  font-family: var(--font-display); font-weight: 560; font-size: clamp(54px, 18.5vw, 92px); line-height: .95; letter-spacing: -.03em;
  color: #fff; text-shadow: 0 6px 40px rgba(0, 0, 0, .55); white-space: nowrap;
}
.reveal__city span { display: inline-block; will-change: transform; }
.reveal__flag { width: 76px; height: 12px; border-radius: 3px; overflow: hidden; display: grid; grid-template-rows: 1fr 1fr; box-shadow: 0 2px 10px rgba(0, 0, 0, .4); margin: var(--s2) 0; }
.reveal__flag span:first-child { background: #fff; } .reveal__flag span:last-child { background: #DC143C; }
.reveal__dates { font-family: var(--font-mono); font-size: 17px; letter-spacing: .06em; color: #fff; }
.reveal__sub { font-family: var(--font-display); font-style: italic; font-size: 23px; color: var(--gold); margin-bottom: var(--s4); }
.reveal .btn { width: 100%; }

/* ==========================================================================
   5 · Finale
   ========================================================================== */
.final { width: 100%; max-width: 460px; margin: 0 auto; padding: calc(var(--s7) + var(--safe-t)) var(--s5) calc(var(--s8) + var(--safe-b)); display: flex; flex-direction: column; gap: var(--s5); }
.final > .kicker { margin-bottom: calc(var(--s3) * -1); }
.section-title { font-family: var(--font-display); font-weight: 430; font-size: 28px; letter-spacing: -.01em; margin-top: var(--s6); }

.ticket-slot { margin-top: var(--s3); }
.ticket { --notch: 13px; position: relative; color: var(--ink); filter: drop-shadow(0 26px 26px rgba(0, 0, 0, .55)); user-select: text; -webkit-user-select: text; }
.ticket__main { border-radius: 20px 20px 0 0; background:
  radial-gradient(circle at 0 100%, transparent var(--notch), var(--paper) calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
  radial-gradient(circle at 100% 100%, transparent var(--notch), var(--paper) calc(var(--notch) + .5px)) right / 51% 100% no-repeat; }
.ticket__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 20px; border-radius: 20px 20px 0 0; background: linear-gradient(90deg, var(--red-deep), var(--red)); color: #fff; }
.ticket__head strong { font-size: 13px; letter-spacing: .22em; text-transform: uppercase; font-weight: 700; }
.ticket__head span { font-family: var(--font-mono); font-size: 13px; opacity: .92; }
.ticket__route { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: var(--s3); padding: 22px 20px 8px; }
.ticket__code { font-family: var(--font-display); font-size: 46px; font-weight: 600; line-height: 1; letter-spacing: -.02em; }
.ticket__code--from { color: var(--red); }
.ticket__city { display: block; margin-top: 6px; font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: 0; color: var(--ink-soft); }
.ticket__to { text-align: right; }
.ticket__path { position: relative; height: 24px; color: var(--red); display: grid; place-items: center; }
.ticket__path::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 2px dashed rgba(23, 26, 51, .28); }
.ticket__path .ico { position: relative; width: 26px; height: 26px; background: var(--paper); padding: 0 3px; box-sizing: content-box; }
.ticket__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 12px; padding: 16px 20px 22px; }
.ticket__field dt { font-size: 10.500px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.ticket__field dd { margin: 3px 0 0; font-family: var(--font-mono); font-size: 16px; line-height: 1.25; color: var(--ink); }
.ticket__field dd small { display: block; font-size: 12px; color: var(--ink-soft); }
.ticket__stub { position: relative; display: flex; align-items: center; justify-content: space-between; gap: var(--s4); padding: 20px 20px 20px; border-radius: 0 0 20px 20px; background:
  radial-gradient(circle at 0 0, transparent var(--notch), var(--paper) calc(var(--notch) + .5px)) left / 51% 100% no-repeat,
  radial-gradient(circle at 100% 0, transparent var(--notch), var(--paper) calc(var(--notch) + .5px)) right / 51% 100% no-repeat; }
.ticket__stub::before { content: ''; position: absolute; left: 20px; right: 20px; top: -1px; border-top: 2px dashed rgba(23, 26, 51, .28); }
.barcode { display: flex; align-items: stretch; height: 46px; flex: 1; max-width: 190px; }
.barcode i { display: block; background: var(--ink); margin-right: 2px; }
.ticket__stubtxt { text-align: right; font-family: var(--font-mono); font-size: 13px; line-height: 1.35; }
.ticket__stubtxt strong { display: block; font-size: 19px; font-weight: 500; }

.tripcount { display: flex; align-items: baseline; justify-content: center; gap: var(--s3); padding: var(--s5); border-radius: var(--radius); border: 1px solid var(--line); background: rgba(255, 255, 255, .05); text-align: center; flex-wrap: wrap; }
.tripcount strong { font-family: var(--font-display); font-size: 54px; line-height: 1; font-weight: 480; color: var(--gold); font-variant-numeric: tabular-nums lining-nums; }
.tripcount span { font-size: 16px; color: var(--text); }

.gallery { display: flex; gap: var(--s3); overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 calc(var(--s5) * -1); padding: 4px var(--s5) var(--s4); scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { display: none; }
.shot { position: relative; flex: 0 0 min(72vw, 290px); aspect-ratio: 3 / 4; border-radius: var(--radius); overflow: hidden; scroll-snap-align: center; background: var(--night-700); box-shadow: 0 20px 34px -20px #000; }
.shot img { width: 100%; height: 100%; object-fit: cover; display: block; -webkit-user-drag: none; }
.shot figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 56px 18px 18px; background: linear-gradient(180deg, transparent, rgba(5, 7, 26, .92) 68%); }
.shot figcaption strong { display: block; font-family: var(--font-display); font-size: 24px; font-weight: 460; line-height: 1.1; color: #fff; }
.shot figcaption span { display: block; margin-top: 4px; font-size: 14.500px; line-height: 1.35; color: rgba(255, 255, 255, .88); }
figure { margin: 0; }

.letter { margin-top: var(--s3); padding: var(--s6) var(--s5); border-radius: 6px; background: var(--paper); color: var(--ink); transform: rotate(-.8deg); box-shadow: 0 24px 40px -22px #000; user-select: text; -webkit-user-select: text; }
.letter p { font-family: var(--font-display); font-size: 19px; line-height: 1.5; font-weight: 380; }
.letter p + p { margin-top: var(--s4); }
.letter p:first-child { font-size: 24px; font-style: italic; }
.letter__sign { font-style: italic; font-size: 26px !important; color: var(--red); text-align: right; margin-top: var(--s5) !important; }

.actions { display: flex; flex-direction: column; gap: var(--s3); margin-top: var(--s4); }
.stolat { margin-top: var(--s6); text-align: center; }
.stolat__big { font-family: var(--font-display); font-style: italic; font-size: 36px; line-height: 1.1; color: var(--gold); }
.stolat__small { margin-top: var(--s2); font-size: 15px; color: var(--text-soft); }
.stolat__egg { margin-top: var(--s5); font-size: 14px; color: var(--text-soft); text-wrap: balance; }

/* ---------- Größere Bildschirme ---------- */
@media (min-width: 700px) {
  .scene:not(.scene--scroll):not(#s-reveal):not(#s-unwrap) { padding: var(--s7); }
}
@media (max-height: 620px) {
  .prompt { min-height: 124px; }
  .lock__gift { margin: var(--s5) 0 var(--s6); }
  #s-board { gap: var(--s3); padding-top: var(--s3); padding-bottom: var(--s3); }
  .board__rows { gap: 6px; padding-top: 8px; }
  .board__head { padding-bottom: 8px; }
  .intro { gap: var(--s4); }
}

/* Querformat auf dem Handy: bitte drehen */
#rotate { display: none; position: fixed; inset: 0; z-index: 60; background: var(--night-900); color: var(--text);
  flex-direction: column; align-items: center; justify-content: center; gap: var(--s4); text-align: center; padding: var(--s5); }
#rotate .ico { width: 48px; height: 48px; color: var(--gold); animation: rotate-hint 2.4s ease-in-out infinite; }
#rotate p { font-family: var(--font-display); font-size: 22px; }
@keyframes rotate-hint { 0%, 30% { transform: rotate(90deg); } 60%, 100% { transform: rotate(0); } }
@media (orientation: landscape) and (max-height: 520px) and (pointer: coarse) { #rotate { display: flex; } }
@media (prefers-reduced-motion: reduce) {
  .gift--float, .gift__halo, .rb-pulse, .seal.is-idle .seal__wax, .btn--amber { animation: none; }
}
