/* Einfuehrung / Briefing (passi-Konzept 2026-10-05): Willkommen-Seite im Stil des Abspanns, Lichtkegel auf dem
   echten Hub, Seite "Ablauf des Abends". Alles liegt in EINEM Vollbild-Overlay (.intro-root). */
.intro-root { position: fixed; inset: 0; z-index: 450; overflow: hidden; }
.intro-root.hidden, .intro-page.hidden, .intro-spot.hidden, .intro-bar.hidden, .intro-root .hidden { display: none; }
body.briefing-open { overflow: hidden; }

/* ---- Seiten (Willkommen, Ablauf) -------------------------------------------------------------------- */
.intro-page { position: absolute; inset: 0; overflow-y: auto; display: flex; align-items: center; justify-content: center; padding: 2rem 1.5rem 5rem;
  background: radial-gradient(ellipse at 50% 30%, #1d0b16, #0a090b 70%); animation: intro-fade .5s ease both; }
@keyframes intro-fade { from { opacity: 0; } to { opacity: 1; } }
.intro-inner { width: min(1000px, 100%); display: flex; flex-direction: column; align-items: center; gap: 1.4rem; text-align: center; }

/* Willkommen (wie .fin-credits im Abspann: dunkler Radial-Hintergrund, Logo mit pinkem Glow, grosse weisse Zeilen) */
.wl-logo { width: min(260px, 50vw); height: auto; filter: drop-shadow(0 0 24px rgba(255, 61, 148, .5)); animation: intro-pulse 3.2s ease-in-out infinite; }
@keyframes intro-pulse { 0%, 100% { filter: drop-shadow(0 0 18px rgba(255, 61, 148, .4)); } 50% { filter: drop-shadow(0 0 34px rgba(255, 61, 148, .7)); } }
.wl-title { margin: 0; font-size: clamp(30px, 5vw, 56px); font-weight: 700; text-wrap: balance; color: var(--text); }
.wl-sub { margin: 0; font-size: clamp(18px, 2.4vw, 26px); color: var(--text-2); }
.wl-players { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; max-width: 880px; margin-top: .4rem; }
.wl-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .45rem .9rem; border-radius: var(--r-pill); background: rgba(255, 255, 255, .06); border: 1px solid var(--border); font-size: 17px; font-weight: 600; transition: border-color .25s, background .25s, opacity .25s; }
.wl-chip.is-offline { opacity: .45; }
.wl-chip.is-ready { border-color: #3fd48a; background: rgba(63, 212, 138, .12); }
.wl-check { color: #3fd48a; font-weight: 700; }
.wl-ready { width: auto; margin: .6rem 0 0; padding: .8rem 2rem; font-size: 19px; font-weight: 700; border-radius: var(--r-l); }
.wl-ready.is-on { background: #1f6f4a; color: #fff; }
.wl-count { margin: 0; font-size: 16px; color: var(--text-2); font-variant-numeric: tabular-nums; }

/* Ablauf des Abends */
.ab-eyebrow { margin: 0; text-transform: uppercase; letter-spacing: .14em; font-size: 14px; font-weight: 700; color: var(--accent); }
.ab-title { margin: 0; font-size: clamp(34px, 5.4vw, 64px); font-weight: 700; text-wrap: balance; }
.ab-title--big { font-size: clamp(40px, 7vw, 84px); }
.ab-big { margin: -.2rem 0 .2rem; font-size: clamp(30px, 4.6vw, 54px); font-weight: 700; color: var(--gold); text-shadow: 0 0 .6em rgba(255, 215, 0, .45); }
.ab-grid { width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 1rem; }
.ab-tile { display: flex; flex-direction: column; gap: .5rem; animation: ab-pop .55s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes ab-pop { from { opacity: 0; transform: translateY(18px) scale(.92); } to { opacity: 1; transform: none; } }
.ab-tile-face { aspect-ratio: 4 / 3; border-radius: var(--r-l); overflow: hidden; background: var(--surface-2); border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); }
.ab-tile-face img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-tile-icon { font-size: clamp(34px, 5vw, 60px); line-height: 1; color: var(--text-2); }
.ab-tile-name { font-size: 16px; font-weight: 600; text-wrap: balance; }
/* Verdeckte Kachel (passi 2026-10-07): dunkle Kartenrueckseite mit neonpinkem Fragezeichen */
.ab-q { font-size: clamp(46px, 6vw, 92px); font-weight: 700; line-height: 1; color: var(--accent);
  text-shadow: 0 0 .3em rgba(255, 61, 148, .85), 0 0 .9em rgba(255, 61, 148, .5); }
.ab-tile.is-covered .ab-tile-face, .ab-flip-front { background: radial-gradient(circle at 50% 45%, rgba(255, 61, 148, .16), transparent 65%), #141016;
  border: 1px solid rgba(255, 61, 148, .45); box-shadow: inset 0 0 26px rgba(255, 61, 148, .12), 0 10px 30px rgba(0, 0, 0, .45); }
.ab-tile.is-covered .ab-tile-name { color: var(--text-2); }
/* "Minispiele aufdecken": die Kachel dreht sich um und zeigt die Collage aller Minispiel-Titelbilder */
.ab-tile.is-flip .ab-tile-face { background: none; border: 0; box-shadow: none; overflow: visible; perspective: 1000px; }
.ab-flip { position: relative; width: 100%; height: 100%; transform-style: preserve-3d; animation: ab-flip 1s cubic-bezier(.3, .7, .2, 1) .7s both; }
@keyframes ab-flip { from { transform: rotateY(0); } to { transform: rotateY(180deg); } }
.ab-flip-front, .ab-flip-back { position: absolute; inset: 0; border-radius: var(--r-l); overflow: hidden; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  display: flex; align-items: center; justify-content: center; }
.ab-flip-back { transform: rotateY(180deg); background: #141016; border: 2px solid var(--accent); box-shadow: 0 0 30px rgba(255, 61, 148, .5); }
.ab-collage { width: 100%; height: 100%; display: grid; grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(3, 1fr); gap: 2px; }
.ab-collage img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ab-tile.is-flip .ab-tile-name { color: var(--accent); animation: intro-fade .4s ease 1.5s both; }
.ab-grid.no-anim .ab-tile { animation: none; }
.ab-grid.is-waiting { visibility: hidden; }
.ab-grid.is-waiting .ab-tile, .ab-grid.is-waiting .ab-flip, .ab-grid.is-waiting .ab-tile-name { animation: none; }

.ab-places { width: min(560px, 100%); display: grid; gap: .4rem; }
.ab-place { display: flex; justify-content: space-between; padding: .5rem 1.1rem; border-radius: var(--r-m); background: rgba(255, 255, 255, .05); border: 1px solid var(--border); font-size: 20px; font-weight: 600; animation: ab-pop .45s ease both; }
.ab-place:first-child { border-color: var(--gold); }
.ab-place-pts { font-variant-numeric: tabular-nums; color: var(--gold); }

.ab-cards { width: 100%; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.ab-card { display: flex; flex-direction: column; align-items: center; gap: .8rem; padding: 2rem 1.2rem; border-radius: var(--r-l); background: rgba(255, 255, 255, .05); border: 1px solid var(--border); animation: ab-pop .6s cubic-bezier(.2, .8, .2, 1) both; }
.ab-card-icon { font-size: 62px; line-height: 1; }
.ab-card-text { font-size: clamp(20px, 2.4vw, 28px); font-weight: 700; text-wrap: balance; }
.ab-flow { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: .8rem 1.1rem; font-size: clamp(18px, 1.9vw, 23px); font-weight: 700; animation: ab-pop .6s ease both; }
.ab-flow-step { padding: .55rem 1.2rem; border-radius: var(--r-l); background: rgba(255, 61, 148, .12); border: 1px solid rgba(255, 61, 148, .45); }
.ab-flow-arrow { color: var(--accent); font-size: 1.3em; }
.ab-note { margin: 0; font-size: clamp(17px, 1.9vw, 22px); color: var(--text-2); animation: ab-pop .6s ease both; }
.ab-pause-icon { font-size: clamp(70px, 11vw, 140px); line-height: 1; animation: ab-pop .6s ease both; }

/* ---- Lichtkegel auf dem echten Hub --------------------------------------------------------------------- */
.intro-spot { position: absolute; inset: 0; }
.intro-dim { position: absolute; background: rgba(10, 8, 12, .74); -webkit-backdrop-filter: blur(7px); backdrop-filter: blur(7px);
  transition: left .55s ease, top .55s ease, width .55s ease, height .55s ease; }
.intro-ring { position: absolute; border-radius: var(--r-l); border: 2px solid var(--accent); box-shadow: 0 0 0 4px rgba(255, 61, 148, .18), 0 0 34px rgba(255, 61, 148, .45); pointer-events: none;
  transition: left .55s ease, top .55s ease, width .55s ease, height .55s ease, opacity .3s ease; }
.intro-label { position: absolute; padding: .5rem 1.3rem; border-radius: var(--r-pill); background: var(--accent); color: var(--on-accent, #fff); font-size: 22px; font-weight: 700; white-space: nowrap;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .5); transition: left .55s ease, top .55s ease; }

/* ---- Steuerleiste (Live-Hinweis bzw. Hilfe-Navigation) --------------------------------------------------- */
.intro-bar { position: absolute; left: 50%; bottom: 1.2rem; transform: translateX(-50%); display: flex; align-items: center; gap: 1rem; padding: .55rem 1rem; border-radius: var(--r-pill);
  background: rgba(18, 14, 20, .92); border: 1px solid var(--border); box-shadow: 0 10px 34px rgba(0, 0, 0, .55); z-index: 2; max-width: calc(100% - 2rem); }
.intro-wait { color: var(--text-2); font-size: 15px; }
.intro-count { color: var(--text-2); font-variant-numeric: tabular-nums; }
.intro-btn { width: auto; margin: 0; padding: .55rem 1.2rem; }

@media (prefers-reduced-motion: reduce) { .intro-page, .ab-tile, .ab-place, .ab-card, .ab-pause-icon, .wl-logo, .ab-flow, .ab-note, .ab-tile-name { animation: none; } .ab-flip { animation: none; transform: rotateY(180deg); } .intro-dim, .intro-ring, .intro-label { transition: none; } }

/* ---- Niedrige Fenster (Laptop 1366x768 mit Browserleiste = ca. 650 px Hoehe, passi 2026-10-05): alles etwas kompakter,
   damit die Seiten ohne Scrollen auskommen. --------------------------------------------------------------------- */
.intro-page--maingames .intro-inner, .intro-page--minireveal .intro-inner, .intro-page--minigames .intro-inner { width: min(1560px, 100%); }
/* passi 2026-10-07: Bilder groesser -- Breite so, dass zwei Reihen (Bild 4:3 + Name) in die Fensterhoehe passen */
.ab-grid { max-width: min(100%, calc(5 * 4 / 3 * ((100vh - 280px) / 2 - 40px) + 64px)); }
@media (max-height: 820px) {
  .intro-page { padding: 1rem 1.5rem 4rem; }
  .intro-inner { gap: .9rem; }
  .ab-title { font-size: clamp(28px, 4.2vw, 46px); }
  .ab-big { font-size: clamp(26px, 3.4vw, 36px); margin: 0; }
  .ab-grid { gap: .7rem; }
  .ab-tile-name { font-size: 14px; }
  .ab-places { gap: .22rem; }
  .ab-place { padding: .28rem 1rem; font-size: 17px; }
  .ab-card { padding: 1.2rem 1rem; }
  .ab-card-icon { font-size: 46px; }
  .wl-logo { width: min(170px, 36vw); }
  .wl-title { font-size: clamp(26px, 3.6vw, 40px); }
  .wl-sub { font-size: 18px; }
  .wl-chip { font-size: 15px; padding: .3rem .75rem; }
  .wl-ready { padding: .6rem 1.6rem; font-size: 17px; }
}

/* Begruessung (passi 2026-10-12): Countdown bis zum geplanten Start + Ankunft als kleiner Moment */
.wl-countdown { margin: .2rem 0 0; display: flex; flex-direction: column; align-items: center; gap: .15rem; }
.wl-countdown-label { font-size: 13px; text-transform: uppercase; letter-spacing: .14em; color: var(--text-2); font-weight: 600; }
.wl-countdown-num { font-size: clamp(40px, 6vw, 68px); font-weight: 700; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 22px rgba(255, 61, 148, .45); }
.wl-countdown.is-soon .wl-countdown-num { font-size: clamp(28px, 4vw, 44px); color: var(--accent); }
.wl-chip.is-arriving { animation: wl-arrive 1.6s ease-out 1; }
@keyframes wl-arrive {
  0% { transform: scale(.85); box-shadow: 0 0 0 0 var(--pc, #ff3d94); border-color: var(--pc, #ff3d94); }
  25% { transform: scale(1.1); box-shadow: 0 0 22px 4px var(--pc, #ff3d94); border-color: var(--pc, #ff3d94); }
  100% { transform: scale(1); box-shadow: 0 0 0 0 transparent; }
}
@media (prefers-reduced-motion: reduce) { .wl-chip.is-arriving { animation: none; } }
