/* GETAWAYS public demo: hero select, the 1-3 level strip, the "What's coming" cutscene overlay and end card.
   Phone first (390x844), desktop too. Reduced motion (#app.rm or the OS setting): no flashes, shakes, punches. */

/* ---------------------------------------------------------------- title: crew in shadow on the key art */
/* cl-16h (Anton 2026-11-25): VEGA and GHOST show in full colour on the title, and the hero cards are hidden (TORQ is the only demo hero). */
#app.demo #heroSelect { display: none !important; }
#app.demo .level-badge { margin-top: auto; }
/* cl19-audit: the standing VERSE rule's loading-splash line (plain text: the boot screen is never a tap target; demo only) */
.boot-verse { display: none; font-size: 10px; font-weight: 800; font-style: italic; letter-spacing: .24em; color: rgba(244,238,248,.55); }
#app.demo .boot-verse { display: block; }
/* cl19-audit: the public demo hides the playtest-only settings (SEND PLAYTEST DATA, TEST SPEED) and the TEST SPEED note;
   the demo sends nothing (js/telemetry.js `enabled`), so the switch would be a dead control. ?demo=0 (tester) keeps them. */
#app.demo #settings .srow.test, #app.demo #settings .snote-test { display: none; }

/* ---------------------------------------------------------------- hero select */
.hero-select { display: flex; gap: 10px; justify-content: center; align-items: flex-end; margin-top: auto; margin-bottom: 8px; pointer-events: auto; }
.hero-select .hero { position: relative; width: 72px; padding: 5px 4px 5px; border-radius: 12px; text-align: center; cursor: pointer;
  background: rgba(20,18,34,.84); border: 2px solid rgba(255,255,255,.18); font-style: italic; }
.hero-select .hero .pic { display: block; width: 52px; height: 52px; margin: 0 auto 3px; border-radius: 10px; background: #1b1830 url(../assets/img/icon-192.png) center / cover no-repeat; }
.hero-select .hero b { display: block; font-size: 13px; letter-spacing: .08em; color: #fff; }
.hero-select .hero.sel { border-color: transparent; background: linear-gradient(rgba(34,28,50,.95), rgba(34,28,50,.95)) padding-box, linear-gradient(135deg, #8FE3CF, #F7C79C, #F2BCDF) border-box;
  box-shadow: 0 0 14px rgba(214,131,75,.45); transform: translateY(-4px); }
.hero-select .hero.locked { width: 62px; opacity: .92; }
.hero-select .hero.locked .pic { width: 44px; height: 46px; background-color: transparent; background-size: auto 160%; background-position: 50% 8%;
  filter: brightness(0) drop-shadow(0 0 1.2px rgba(169,200,255,1)) drop-shadow(0 0 5px rgba(120,160,255,.5)); }
.hero-select .hero.locked .pic.vega { background-image: url(../assets/img/title_vega.webp); background-position: 70% 0%; background-size: auto 150%; }
.hero-select .hero.locked .pic.ghost { background-image: url(../assets/img/title_ghost.webp); background-position: 40% 4%; background-size: auto 140%; }
.hero-select .hero.locked b { color: #a9c8ff; font-size: 16px; line-height: 14px; }
.hero-select .hero.locked i { display: block; margin-top: 2px; font-style: normal; font-size: 8px; letter-spacing: .12em; color: #F7C79C; }
.hero-select:not(.hidden) + .level-badge { margin-top: 0; }

/* ---------------------------------------------------------------- level strip: the playable 1-3 only (cl-17b, Anton 2026-11-26:
   the locked "4 · FULL GAME" tiles are gone). Three equal tiles, centred under the route card, a little wider than the full game's chips. */
.level-select.demo { gap: 10px; justify-content: center; }
.level-select.demo .lvl { flex: none; width: clamp(78px, calc((100vw - 80px) / 3), 100px); }   /* 3 x 100 + 2 x 10 = 320 px, about the RUN button's width */

/* ---------------------------------------------------------------- cutscene overlay */
.trailer { position: absolute; inset: 0; z-index: 40; pointer-events: none; overflow: hidden; font-family: "Exo2Callout", var(--font); }
.trailer .tr-fx { position: absolute; inset: 0; width: 100%; height: 100%; }
.trailer .tr-vignette { position: absolute; inset: 0; background: radial-gradient(120% 80% at 50% 48%, transparent 55%, rgba(0,0,0,.55)); }
.trailer .tr-bars i { position: absolute; left: 0; right: 0; height: 6.5vh; background: #000; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.trailer .tr-bars i:first-child { top: 0; transform: translateY(-100%); } .trailer .tr-bars i:last-child { bottom: 0; transform: translateY(100%); }
.trailer.on .tr-bars i { transform: none; }
.trailer.end .tr-bars i { transform: translateY(-100%); } .trailer.end .tr-bars i:last-child { transform: translateY(100%); }
.trailer .tr-flash { position: absolute; inset: 0; background: #fff; opacity: 0; mix-blend-mode: screen; }
.trailer .tr-flare { position: absolute; left: -20%; right: -20%; top: 46%; height: 3px; opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(160,200,255,.0) 15%, rgba(200,225,255,.9) 48%, #fff 50%, rgba(255,210,160,.9) 52%, transparent 85%);
  box-shadow: 0 0 24px 6px rgba(150,190,255,.45); mix-blend-mode: screen; }
.trailer .tr-flare.go { animation: trflare .55s ease-out; }
@keyframes trflare { 0% { opacity: 0; transform: scaleX(.3); } 15% { opacity: 1; } 100% { opacity: 0; transform: scaleX(1.25); } }

.tr-supers { position: absolute; left: 0; right: 0; top: calc(6.5vh + max(var(--sat), 8px) + 5vh); text-align: center; padding: 0 16px; }
.tr-super { display: inline-block; font-style: italic; font-weight: 900; font-size: clamp(40px, 12.4vw, 92px); line-height: .92; letter-spacing: -.01em; color: #fff;
  text-shadow: 3px 0 0 rgba(255,90,110,.55), -3px 0 0 rgba(90,200,255,.5), 0 6px 26px rgba(0,0,0,.65); opacity: 0; transform-origin: 50% 60%; }
.tr-super.long { font-size: clamp(32px, 10vw, 80px); }
.tr-super.on { animation: trsuper .9s cubic-bezier(.15,1.3,.35,1) forwards; }
@keyframes trsuper { 0% { opacity: 0; transform: scale(1.6) skewX(-14deg); filter: blur(6px); } 22% { opacity: 1; transform: scale(.96) skewX(-6deg); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) skewX(-6deg); } }
.tr-tag { margin-top: 8px; font-style: italic; font-size: clamp(12px, 3.4vw, 18px); letter-spacing: .34em; color: #F7C79C; opacity: 0; text-shadow: 0 2px 8px rgba(0,0,0,.8); }
.tr-tag.on { animation: trtag .5s .08s ease-out forwards; }
@keyframes trtag { from { opacity: 0; transform: translateY(8px); letter-spacing: .6em; } to { opacity: 1; transform: none; } }

.tr-logo { position: absolute; left: 50%; top: calc(6.5vh + max(var(--sat), 8px) + 3vh); width: min(92vw, 640px); transform: translateX(-50%) scale(1.8); opacity: 0;
  filter: drop-shadow(0 8px 22px rgba(0,0,0,.75)); }
.tr-logo svg { width: 100%; height: auto; display: block; }
.trailer.logo-on .tr-logo { animation: trlogo .7s cubic-bezier(.12,1.35,.3,1) forwards; }
@keyframes trlogo { 0% { opacity: 0; transform: translateX(-50%) scale(1.8); filter: blur(10px) brightness(3); } 30% { opacity: 1; filter: blur(0) brightness(1.6); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); filter: drop-shadow(0 8px 22px rgba(0,0,0,.75)); } }
.tr-coming { position: absolute; left: 0; right: 0; top: calc(6.5vh + max(var(--sat), 8px) + 3vh + min(92vw, 640px) * .2 + 12px); text-align: center; font-style: italic; font-weight: 900;
  font-size: clamp(13px, 3.9vw, 30px); letter-spacing: .16em; white-space: nowrap; color: #fff; opacity: 0; text-shadow: 0 0 18px rgba(247,199,156,.55), 0 3px 10px rgba(0,0,0,.8); }
.trailer.coming-on .tr-coming { animation: trtag .7s ease-out forwards; }

/* cl-19: SKIP is a 44 px tall hit area (was ~38 px) and the game's slanted plate (as .pill), not a rounded pill */
.tr-skip { position: absolute; right: calc(14px + var(--sar, 0px)); bottom: calc(6.5vh + max(var(--sab), 8px) + 10px); display: flex; align-items: center; gap: 4px; min-height: 44px; padding: 0 20px; white-space: nowrap; font-style: italic; font-size: 14px; letter-spacing: .14em;
  color: #fff; background: rgba(10,10,18,.62); clip-path: polygon(8px 0, 100% 0, calc(100% - 8px) 100%, 0 100%); opacity: 0; transition: opacity .35s; pointer-events: none; cursor: pointer; }
.tr-skip::before { content: ""; position: absolute; inset: 0; clip-path: inherit; box-shadow: inset 0 0 0 1.5px rgba(255,255,255,.35); pointer-events: none; }
.tr-skip span { font-size: 18px; }
.trailer.skip-on .tr-skip { opacity: .9; pointer-events: auto; }

.tr-end { position: absolute; left: 0; right: 0; bottom: calc(max(var(--sab), 10px) + 4vh); display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 0 22px;
  opacity: 0; transform: translateY(18px); transition: opacity .5s, transform .5s cubic-bezier(.2,.9,.3,1); }
.trailer.end .tr-end { opacity: 1; transform: none; pointer-events: auto; }
.tr-end .pill { pointer-events: auto; }
.tr-end .tr-more { text-decoration: none; font-size: 15px; background: rgba(20,18,34,.86); }
.tr-badge { position: relative; display: flex; align-items: baseline; gap: 8px; margin-bottom: 8px; padding: 6px 18px; font-style: italic; letter-spacing: .2em; font-size: 11px;
  color: #E4DCEE; background: rgba(10,10,18,.66); clip-path: polygon(7px 0, 100% 0, calc(100% - 7px) 100%, 0 100%); }
/* cl19-audit: the badge is a link to VERSE (new tab); the plate itself is >= 44 px tall (clip-path would cut a bigger hit area) */
a.tr-badge { text-decoration: none; pointer-events: auto; cursor: pointer; padding-top: 13px; padding-bottom: 13px; margin-bottom: 2px; }
.tr-badge::before { content: ""; position: absolute; inset: 0; clip-path: inherit; box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); pointer-events: none; }
.tr-badge sup { font-size: 9px; font-style: normal; letter-spacing: 0; margin-left: -6px; align-self: flex-start; color: #E4DCEE; }
.tr-badge b { font-size: 15px; letter-spacing: .16em; background: linear-gradient(90deg, #8FE3CF, #F7C79C, #F2BCDF); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* reduced motion: words fade in, no punch / blur / flare / flash; the cuts are crossfades (js/trailer.js) */
.trailer.rm .tr-flare, .trailer.rm .tr-flash { display: none; }
.trailer.rm .tr-super.on, .trailer.rm .tr-tag.on, .trailer.rm.coming-on .tr-coming { animation: trfade .6s ease-out forwards; }
.trailer.rm.logo-on .tr-logo { animation: trlogofade 1s ease-out forwards; }
@keyframes trfade { from { opacity: 0; } to { opacity: 1; } }
@keyframes trlogofade { from { opacity: 0; transform: translateX(-50%) scale(1); } to { opacity: 1; transform: translateX(-50%) scale(1); } }

@media (min-aspect-ratio: 4/3) {
  .tr-super { font-size: clamp(40px, 7.2vw, 104px); } .tr-super.long { font-size: clamp(34px, 6vw, 92px); }
  .tr-logo { width: min(56vw, 760px); } .tr-coming { top: calc(6.5vh + 3vh + min(56vw, 760px) * .2 + 14px); }
  .tr-end { flex-direction: row; flex-wrap: wrap; justify-content: center; gap: 12px; }
  .tr-end .tr-badge { flex-basis: 100%; justify-content: center; max-width: 220px; margin: 0 calc(50% - 110px) 4px; }
  .tr-end .pill { margin: 0; width: 300px; }
}

/* ---------------------------------------------------------------- cl-16n demo outro (js/outro.js)
   The crane-out runs on the live level; then the approved title poster (#titleScene) fades in with the title UI hidden, the
   Warden surveys the city, GETAWAYS / FULL GAME COMING SOON / the Verse end card sit in the poster's 390x844 box (--ots = the
   scene scale, set by outro.js). Art untouched: motion is CSS transforms on the existing groups only. */
.trailer.outro { --ots: 1; }
.trailer.outro .tr-fx, .trailer.outro .tr-bars, .trailer.outro .tr-flare, .trailer.outro .tr-flash, .trailer.outro .tr-supers { display: none; }
.ou-veil { position: absolute; inset: 0; opacity: 0; pointer-events: none; display: none;
  background: radial-gradient(90% 60% at 50% 38%, rgba(214,196,255,.95) 0%, rgba(136,97,255,.55) 42%, rgba(24,16,48,0) 80%); mix-blend-mode: screen; }
.ou-veil.dark { background: #05040b; mix-blend-mode: normal; }
.trailer.outro .ou-veil { display: block; }
.trailer.outro .tr-logo { width: calc(354px * var(--ots)); top: calc(50% - 402px * var(--ots)); }
.trailer.outro .tr-coming { top: calc(50% - 330px * var(--ots)); font-size: calc(15px * var(--ots)); letter-spacing: .16em; }
.trailer.outro .tr-skip { right: auto; left: calc(50% + 195px * var(--ots) - 14px); transform: translateX(-100%); bottom: calc(50% - 422px * var(--ots) + 14px * var(--ots)); }
.trailer.outro .tr-end { left: 50%; right: auto; width: calc(390px * var(--ots)); margin-left: calc(-195px * var(--ots)); bottom: calc(50% - 422px * var(--ots) + 18px * var(--ots));
  flex-direction: column; flex-wrap: nowrap; gap: 4px; padding: 0 22px; }
.trailer.outro .tr-end .tr-badge { flex-basis: auto; max-width: none; margin: 0 0 8px; }
.trailer.outro .tr-end .pill { width: auto; margin: 0; }
/* the poster: head down, slowly turning across the city (about the neck); the whole shadow drifts; bg / drones / camera creep. Slow: 6-12 s sweeps. */
#title.outro-poster .title-inner, #title.outro-poster .howto { display: none; }
#title.outro-poster .ts-warden-shadow { animation: ouwarden 12s ease-in-out infinite alternate; }
#title.outro-poster .ts-warden-shadow .ws-head { transform-box: view-box; transform-origin: 210px 112px; animation: ouhead 6.5s ease-in-out infinite alternate; }
#title.outro-poster .ts-bg { animation: oubg 14s ease-in-out infinite alternate; }
#title.outro-poster .ts-cam { animation: oucam 16s ease-in-out infinite alternate; }
@keyframes ouwarden { from { translate: 0 0; } to { translate: -5px 3px; } }
@keyframes ouhead { 0% { transform: translate(5px, 1px) rotate(-3.5deg) scaleX(1); } 100% { transform: translate(-6px, 3.5px) rotate(-11.5deg) scaleX(.985); } }
@keyframes oubg { from { translate: 0 0; scale: 1; } to { translate: -7px -3px; scale: 1.03; } }
@keyframes oucam { from { scale: 1; } to { scale: 1.035; } }
/* reduced camera motion: the Warden is still, nothing drifts (head held down) */
#title.outro-poster.nomove .ts-warden-shadow, #title.outro-poster.nomove .ts-bg, #title.outro-poster.nomove .ts-cam,
#title.outro-poster.nomove .ts-warden-shadow .ws-head { animation: none; }
#title.outro-poster.nomove .ts-warden-shadow .ws-head { transform: rotate(-7deg); }
