:root {
  --bg: #07070a; --panel: rgba(20, 20, 26, .78); --panel-solid: #15151b; --fg: #f1ecdf; --muted: #a39d8c;
  --accent: #d41f3a; --accent-2: #ff3b57; --gold: #e8c46a; --line: rgba(255, 255, 255, .08);
  --serif: "Playfair Display", "Georgia", "Times New Roman", serif;
  --sans: -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; background: var(--bg); color: var(--fg); font: 17px/1.55 var(--serif); -webkit-font-smoothing: antialiased; }
body { position: relative; overflow-x: hidden; }
button { font: inherit; }

/* blurred scene frame behind everything: no empty black space, no seams */
#backdrop { position: fixed; inset: -40px; z-index: 0; background: var(--bg) center/cover no-repeat; filter: blur(28px) brightness(.35) saturate(.6); transform: scale(1.08); transition: background-image .8s ease; }
#backdrop::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 20%, rgba(212, 31, 58, .12), transparent 55%), linear-gradient(180deg, rgba(7, 7, 10, .2), rgba(7, 7, 10, .85) 80%); }
#ambient { position: fixed; inset: 0; z-index: 0; pointer-events: none; mix-blend-mode: screen; }
header, main, .overlay, .popover, #toast { position: relative; z-index: 1; }

header { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: calc(10px + var(--sat)) 14px 10px; background: linear-gradient(180deg, rgba(7, 7, 10, .92), rgba(7, 7, 10, .55)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 10px; min-width: 0; flex: 1; }
.brand > div { min-width: 0; overflow: hidden; padding: 4px 6px; margin: -4px -6px; }
.brand img { width: 34px; height: 34px; border-radius: 8px; box-shadow: 0 0 0 1px var(--line); }
.brand-name { line-height: 1.1; white-space: nowrap; }
#chapter-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hud { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.chip { background: rgba(255, 255, 255, .06); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 11px; cursor: pointer; font-family: var(--sans); font-size: 14px; line-height: 1; transition: background .15s, border-color .15s; }
.chip:hover { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .2); }
#credits { color: var(--gold); font-weight: 700; border-color: rgba(232, 196, 106, .35); }
.chip-plus { display: inline-block; margin-left: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); color: #1a1408; font-size: 13px; font-weight: 800; line-height: 16px; text-align: center; vertical-align: -2px; }

main { max-width: 1180px; margin: 0 auto; padding: 0 0 calc(24px + var(--sab)); display: grid; grid-template-columns: 1fr; gap: 0; }

/* screen */
#screen { position: relative; background: #000; aspect-ratio: 4/3; max-height: 62vh; overflow: hidden; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9); }
#screen::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at center, transparent 55%, rgba(0, 0, 0, .55)); }
#screen::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: .18; mix-blend-mode: overlay; 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='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
#video { width: 100%; height: 100%; object-fit: cover; display: block; background: #000 url(/static/poster.svg) center/cover; }
#shoot-layer { position: absolute; inset: 0; cursor: crosshair; z-index: 2; }
/* shooting gallery: the frame is always alive — clip playing or a slow push-in on the still */
#screen.shooting::after { background: radial-gradient(ellipse at center, transparent 50%, rgba(120, 0, 20, .35) 80%, rgba(0, 0, 0, .75)); animation: vignette 1.2s ease-in-out infinite alternate; }
#screen.live #video { animation: pushin 9s ease-in-out forwards; transform-origin: 50% 40%; }
#screen.flash::after { background: rgba(255, 245, 230, .55); animation: none; }
@keyframes pushin { from { transform: scale(1); } to { transform: scale(1.16); } }
@keyframes vignette { from { opacity: .7; } to { opacity: 1; } }
.target { position: absolute; min-width: 64px; min-height: 64px; color: #ff3b57; display: flex; align-items: center; justify-content: center; border: 2px solid rgba(255, 59, 87, .85); border-radius: 8px; box-shadow: 0 0 26px rgba(212, 31, 58, .75), inset 0 0 14px rgba(212, 31, 58, .3); background: radial-gradient(ellipse at center, rgba(212, 31, 58, .18), transparent 70%); animation: lockon .28s ease-out, pulse .45s .28s infinite alternate; }
.target svg { width: 72%; height: 72%; max-width: 160px; max-height: 160px; filter: drop-shadow(0 0 8px rgba(255, 59, 87, .9)); animation: spin 2.4s linear infinite; }
.target-label { position: absolute; bottom: -24px; left: 50%; transform: translateX(-50%); font-family: var(--sans); font-size: 12px; font-weight: 800; letter-spacing: .18em; color: #fff; background: rgba(212, 31, 58, .9); padding: 2px 8px; border-radius: 4px; white-space: nowrap; text-shadow: 0 1px 4px #000; }
.hit-mark, .miss-mark { position: absolute; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; pointer-events: none; animation: ripple .5s ease-out forwards; }
.hit-mark { border: 3px solid #fff; box-shadow: 0 0 24px #ff3b57, inset 0 0 18px rgba(255, 59, 87, .9); }
.miss-mark { border: 2px solid rgba(255, 255, 255, .55); }
@keyframes lockon { from { transform: scale(2.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ripple { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }
@keyframes pulse { from { opacity: .55; transform: scale(.97); } to { opacity: 1; transform: scale(1); } }
.shoot-brief { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 18px 22px; text-align: center; background: linear-gradient(180deg, rgba(0, 0, 0, .55), rgba(0, 0, 0, .3) 45%, rgba(0, 0, 0, .8)); transition: opacity .5s; }
.shoot-brief.go { opacity: 0; }
.shoot-text { margin: 0; max-width: 560px; font-size: 18px; line-height: 1.45; color: #fff; text-shadow: 0 2px 12px #000; }
.shoot-rule { margin: 0; font-family: var(--sans); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: var(--accent-2); text-shadow: 0 0 12px #000; }
.shoot-count { font-family: var(--sans); font-size: 88px; font-weight: 800; line-height: 1; color: #fff; text-shadow: 0 0 18px #000, 0 0 40px rgba(212, 31, 58, .8); animation: pulse .5s infinite alternate; }
.video-cta { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 8px; padding: 0 16px 18px; background: linear-gradient(180deg, transparent 35%, rgba(0, 0, 0, .75)); }
.video-cta .btn.primary { min-width: 240px; box-shadow: 0 8px 30px rgba(212, 31, 58, .45); }
.video-cta .btn.primary:disabled { background: rgba(20, 20, 26, .85); color: var(--muted); box-shadow: none; border: 1px solid var(--line); cursor: default; }
.video-cta .btn.primary:disabled::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 10px; border: 2px solid var(--accent-2); border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: spin .9s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
/* «Подглядеть»: blurred frame + 2 s of the clip until the scene is unlocked (never during a shootout) */
#screen.peek:not(.shooting) video { filter: blur(14px) saturate(1.2) brightness(.85); transform: scale(1.06); }
#screen.peek:not(.shooting) .video-cta { background: linear-gradient(180deg, rgba(0, 0, 0, .15), rgba(0, 0, 0, .3) 40%, rgba(0, 0, 0, .85)); }
.peek-tag { display: none; font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #fff; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .35); background: rgba(0, 0, 0, .45); backdrop-filter: blur(6px); }
#screen.peek:not(.shooting) .peek-tag { display: inline-block; }
.btn.pass-cta { border-color: rgba(232, 196, 106, .55); color: var(--gold); background: rgba(232, 196, 106, .1); }
.btn.pass-cta:hover { background: rgba(232, 196, 106, .2); }
.timer { position: absolute; top: 12px; right: 14px; z-index: 3; font-family: var(--sans); font-size: 30px; font-weight: 800; color: var(--accent-2); text-shadow: 0 0 12px #000, 0 0 30px rgba(212, 31, 58, .7); }

/* story panel */
#panel { padding: 0; }
#story { padding: 20px 18px 6px; }
.eyebrow { font-family: Oranienbaum, var(--serif); font-size: 14px; letter-spacing: .2em; text-transform: uppercase; color: #ff6b80; text-shadow: 0 0 6px rgba(255, 59, 87, .9), 0 0 18px rgba(255, 59, 87, .55); margin-bottom: 8px; }
.eyebrow .dot { color: #fff; text-shadow: 0 0 6px #fff, 0 0 14px rgba(255, 59, 87, .8); }
#story h1 { font-size: clamp(24px, 5.5vw, 34px); line-height: 1.15; margin: 0 0 12px; font-weight: 700; letter-spacing: -.01em; text-shadow: 0 2px 20px rgba(0, 0, 0, .6); }
#story h1:empty, .eyebrow:empty { display: none; }
#story p { margin: 0 0 12px; white-space: pre-line; font-size: 18px; line-height: 1.6; color: var(--fg); text-shadow: 0 1px 2px rgba(0, 0, 0, .8); }
#story p::first-letter { font-size: 1.6em; line-height: 1; color: var(--accent-2); font-weight: 700; }
.muted { color: var(--muted); }
.small { font-size: 13px; font-family: var(--sans); }
.gen { position: relative; padding: 10px 14px 10px 16px; margin: 10px 0; color: #ddd7c8; background: var(--panel); border-radius: 10px; font-style: italic; border-left: 3px solid var(--accent); }
.gen b { font-style: normal; color: var(--gold); font-family: var(--sans); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-right: 4px; }
.event { font-family: var(--sans); font-size: 14px; color: var(--gold); margin: 4px 0; padding-left: 14px; position: relative; }
.event::before { content: "◆"; position: absolute; left: 0; font-size: 9px; top: 5px; }
.event.death { color: var(--accent-2); font-weight: 700; font-size: 16px; }
.event.ending { color: var(--fg); font-family: var(--serif); font-size: 22px; font-weight: 700; margin-top: 12px; padding-left: 0; }
.event.ending::before { display: none; }
#items-here { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
#items-here:empty, #events:empty, #talk-log:empty, #generated:empty { display: none; }
#talk-log { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.line { padding: 8px 12px; border-radius: 12px; max-width: 92%; font-size: 16px; line-height: 1.45; }
.line.you { align-self: flex-end; background: rgba(255, 255, 255, .07); color: #d8d3c6; border-bottom-right-radius: 4px; }
.line.npc { align-self: flex-start; background: rgba(212, 31, 58, .12); border-bottom-left-radius: 4px; }
.line .who { color: var(--accent-2); font-weight: 700; font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; display: block; margin-bottom: 2px; }

/* actions */
#actions { padding: 8px 18px 4px; display: flex; flex-direction: column; gap: 10px; }
#choices { display: flex; flex-direction: column; gap: 10px; }
#choices:empty { display: none; }
.btn { position: relative; background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px 14px 40px; text-align: left; cursor: pointer; font-size: 16.5px; line-height: 1.35; transition: transform .12s, border-color .15s, background .15s; -webkit-tap-highlight-color: transparent; }
#choices .btn::before { content: "›"; position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--accent-2); font-size: 24px; font-weight: 700; line-height: 1; }
.btn:hover { border-color: rgba(255, 255, 255, .25); background: rgba(35, 35, 44, .9); }
.btn:active { transform: scale(.985); }
.btn.primary { background: linear-gradient(180deg, var(--accent-2), var(--accent)); border-color: transparent; color: #fff; text-align: center; padding-left: 16px; font-weight: 700; font-family: var(--sans); letter-spacing: .02em; }
.btn.primary::before, .btn.danger::before, .btn.small::before, .btn.pack::before { display: none; }
.btn.danger { background: linear-gradient(180deg, #4a0d18, #2a0810); border-color: var(--accent); color: #fff; text-align: center; padding-left: 16px; font-family: var(--sans); font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.btn.locked { opacity: .45; cursor: not-allowed; }
.btn.small { padding: 8px 12px; font-size: 14px; border-radius: 999px; font-family: var(--sans); }
.btn.ghost { background: rgba(0, 0, 0, .35); border-color: rgba(255, 255, 255, .25); color: #fff; }
.btn.big { padding: 16px 28px; font-size: 18px; }
.platforms { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 14px 0 6px; border-top: 1px solid var(--line); margin-top: 8px; }
#talk, #riddle { display: flex; gap: 8px; flex-wrap: wrap; }
/* free-text row styled exactly like a ready answer: same box, marker and type */
.input-row { display: flex; align-items: center; gap: 8px; width: 100%; box-sizing: border-box; padding-right: 8px; cursor: text; }
.input-row::before { content: "✎"; position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--accent-2); font-size: 20px; line-height: 1; }
.input-row:focus-within { border-color: var(--accent-2); box-shadow: 0 0 0 3px rgba(212, 31, 58, .2); background: var(--panel); }
.input-row input { flex: 1; min-width: 0; background: none; border: 0; color: var(--fg); padding: 0; font: inherit; font-size: 16.5px; line-height: 1.35; outline: none; }
.input-row input::placeholder { color: var(--muted); }
.input-row .send { flex-shrink: 0; width: 40px; height: 40px; border-radius: 10px; border: 0; background: linear-gradient(180deg, var(--accent-2), var(--accent)); color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }
.input-row .send:hover { filter: brightness(1.1); }
.wallet { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 10px 18px 0; padding: 12px 14px; border: 1px solid rgba(232, 196, 106, .3); border-radius: 12px; background: rgba(232, 196, 106, .06); }
.wallet-balance { font-family: var(--sans); font-size: 15px; }
.wallet-balance b { color: var(--gold); font-size: 17px; }
.btn.tbank { background: #ffdd2d; border-color: #ffdd2d; color: #1a1a1a; font-weight: 700; }
.btn.tbank:hover { background: #ffe860; border-color: #ffe860; }
#wallet-gift { background: rgba(255, 90, 140, .18); border-color: rgba(255, 90, 140, .6); color: #ffd1e0; }
.wallet-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.wallet-pass { flex-basis: 100%; font-family: var(--sans); font-size: 13px; color: var(--gold); }
.pack-row { display: flex; gap: 8px; align-items: stretch; }
.pack-row .btn.pack { flex: 1; min-width: 0; }
.pack-row.pass .btn.pack { border-color: rgba(232, 196, 106, .6); background: linear-gradient(135deg, rgba(232, 196, 106, .16), rgba(212, 31, 58, .12)); box-shadow: 0 0 24px rgba(232, 196, 106, .12); }
.pack-row.pass .btn.pack .name { color: var(--gold); }
.pack-row.first .btn.pack { border-color: rgba(212, 31, 58, .5); }
.btn.stars { flex-shrink: 0; align-self: center; white-space: nowrap; border-color: rgba(255, 210, 60, .5); color: #ffd23c; }
#invite-link { width: 100%; box-sizing: border-box; margin: 8px 0; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .15); color: var(--fg); padding: 12px 14px; border-radius: 12px; font: inherit; font-size: 14px; outline: none; }
.invite-actions { display: flex; gap: 8px; margin-bottom: 8px; }
.invite-actions .btn { flex: 1; }
.pay-note { margin: 10px 0 0; }
#acc-form, #gift-form { display: flex; flex-direction: column; gap: 8px; margin: 8px 0; }
#acc-form input, #gift-form input { width: 100%; box-sizing: border-box; background: rgba(0, 0, 0, .45); border: 1px solid rgba(255, 255, 255, .15); color: var(--fg); padding: 13px 14px; border-radius: 12px; font: inherit; font-size: 16px; outline: none; }
#acc-form input:focus, #gift-form input:focus { border-color: var(--accent-2); }
.link { background: none; border: 0; color: var(--accent-2); cursor: pointer; font: inherit; font-size: 14px; padding: 6px 0; }
#talk .muted { width: 100%; padding-left: 16px; }

/* overlays */
.overlay { position: fixed; inset: 0; background: rgba(4, 4, 7, .86); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; z-index: 20; padding: 16px; }
.card { background: var(--panel-solid); border: 1px solid var(--line); border-radius: 16px; padding: 22px; max-width: 440px; width: 100%; box-shadow: 0 30px 80px rgba(0, 0, 0, .8); }
.card h2 { margin: 0 0 10px; font-size: 26px; }
.card .btn { width: 100%; margin-top: 6px; }
.inv-item { padding: 10px 0; border-bottom: 1px solid var(--line); }
.inv-item .name { font-weight: 700; }
.popover { position: fixed; right: 12px; top: calc(60px + var(--sat)); background: var(--panel-solid); border: 1px solid var(--line); border-radius: 12px; padding: 14px; z-index: 25; display: flex; flex-direction: column; gap: 10px; min-width: 230px; box-shadow: 0 20px 50px rgba(0, 0, 0, .7); }
.popover label { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; font-family: var(--sans); }
.popover input[type=range] { width: 130px; accent-color: var(--accent); }
#toast { position: fixed; left: 50%; bottom: calc(24px + var(--sab)); transform: translateX(-50%); background: rgba(20, 20, 26, .96); color: #fff; padding: 12px 18px; border-radius: 12px; z-index: 30; max-width: 90vw; font-family: var(--sans); font-size: 15px; border: 1px solid var(--line); box-shadow: 0 10px 40px rgba(0, 0, 0, .6); }
.hidden { display: none !important; }
#shop-list { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.btn.pack { width: 100%; padding-left: 16px; }
.btn.pack .name { font-weight: 700; }

/* intro trailer */
.overlay.intro { background: #000; padding: 0; z-index: 40; }
#intro-video { width: 100%; height: 100%; object-fit: contain; background: #000; }
.intro-ui { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; pointer-events: none; }
.intro-ui .btn { pointer-events: auto; }
#intro-skip { position: absolute; top: calc(14px + var(--sat)); right: 14px; }

/* desktop: screen left, story right — no dead space */
@media (max-width: 520px) {
  header { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .brand { gap: 8px; }
  .brand img { width: 30px; height: 30px; }
  .brand-name { font-size: 11px; letter-spacing: .08em; }
  #chapter-title { font-size: 12px; }
  .hud { gap: 3px; }
  .chip { padding: 5px 6px; font-size: 12px; }
  .chip-plus { width: 14px; height: 14px; font-size: 11px; line-height: 14px; margin-left: 2px; }
  .chip-label { display: none; }
}
@media (max-width: 380px) {
  #chapter-title { font-size: 11px; }
  header { padding-left: 8px; padding-right: 8px; }
  .brand { gap: 6px; }
  .chip { padding: 5px 5px; font-size: 11px; }
  #restart-btn { display: none; }
}
@media (min-width: 900px) {
  body { font-size: 18px; }
  main { max-width: 1600px; grid-template-columns: minmax(0, 8fr) minmax(380px, 5fr); gap: 0 32px; padding: 18px 24px calc(18px + var(--sab)); align-items: stretch; }
  #screen { border-radius: 16px; aspect-ratio: auto; max-height: none; height: calc(100vh - 100px); min-height: 480px; position: sticky; top: 74px; }
  #panel { display: flex; flex-direction: column; justify-content: center; min-height: calc(100vh - 100px); padding: 12px 0; }
  #story { padding: 4px 0 8px; }
  #story h1 { font-size: 36px; }
  #actions { padding: 8px 0 0; }
}
@media (min-width: 1240px) { #story h1 { font-size: 40px; } #story p { font-size: 19px; } }

/* location transition clip */
#screen.transition::after { background: linear-gradient(180deg, rgba(0, 0, 0, .35), transparent 30%, transparent 70%, rgba(0, 0, 0, .6)); }
#screen.transition #video { cursor: pointer; animation: fadein .6s ease; }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }

/* ---------- neon sign (title) ---------- */
.neon {
  --tube: #ff8fa6; --glow: #ff2d55;
  position: relative; display: inline-block; font-family: var(--serif); font-weight: 900; font-style: italic;
  text-transform: uppercase; letter-spacing: .06em; line-height: 1; color: #fff7f8;
  text-shadow: 0 0 2px #fff, 0 0 6px var(--tube), 0 0 14px var(--glow), 0 0 32px var(--glow), 0 0 64px rgba(255, 45, 85, .55);
  animation: neon-hum 5s ease-in-out infinite;
}
.neon::before {
  content: attr(data-text); position: absolute; inset: 0; z-index: -1; color: transparent;
  -webkit-text-stroke: .045em var(--tube); text-shadow: none; filter: blur(.02em); opacity: .9;
}
.neon::after {
  content: attr(data-text); position: absolute; inset: 0; z-index: -2; color: transparent;
  -webkit-text-stroke: .11em var(--glow); filter: blur(.12em); opacity: .55;
}
.neon-md { font-size: clamp(30px, 6vw, 54px); margin: 0 0 8px; }

/* ---------- wordmark: Cinzel capitals as a hollow neon tube, N and Q white-hot (same on phone and PC) ---------- */
.sign {
  --tube: #ff8fa6; --glow: #ff2d55;
  display: inline-block; font-family: Cinzel, var(--serif); font-weight: 400; font-style: normal;
  text-transform: uppercase; letter-spacing: .12em; line-height: 1.1; white-space: nowrap;
  color: transparent; -webkit-text-stroke: .018em var(--tube);
  text-shadow: 0 0 .03em var(--glow), 0 0 .14em rgba(255, 45, 85, .7);
  animation: sign-hum 6s ease-in-out infinite;
}
.sign .hot { color: #fff3f5; -webkit-text-stroke: 0; text-shadow: 0 0 .02em #fff, 0 0 .1em var(--glow); }
.sign-xl { font-size: clamp(44px, 10.5vw, 104px); margin: 6px 0 14px; }
.sign-xl .hot:first-child { display: inline-block; animation: neon-flicker 9s linear infinite; }
.sign-sm { font-size: 19px; -webkit-text-stroke: 1px var(--tube); text-shadow: 0 0 2px var(--glow), 0 0 8px rgba(255, 45, 85, .6); animation: none; }
@keyframes sign-hum {
  0%, 100% { text-shadow: 0 0 .03em var(--glow), 0 0 .14em rgba(255, 45, 85, .7); }
  50% { text-shadow: 0 0 .04em var(--glow), 0 0 .22em rgba(255, 45, 85, .85); }
}
@keyframes neon-hum {
  0%, 100% { text-shadow: 0 0 2px #fff, 0 0 6px var(--tube), 0 0 14px var(--glow), 0 0 32px var(--glow), 0 0 64px rgba(255, 45, 85, .55); }
  50% { text-shadow: 0 0 3px #fff, 0 0 9px var(--tube), 0 0 22px var(--glow), 0 0 48px var(--glow), 0 0 96px rgba(255, 45, 85, .7); }
}
@keyframes neon-flicker {
  0%, 18%, 22%, 25%, 53%, 57%, 100% { opacity: 1; }
  20%, 24%, 55% { opacity: .35; }
  21% { opacity: .8; }
}
@media (prefers-reduced-motion: reduce) { .neon, .sign, .sign-xl .hot { animation: none; } }

/* ---------- landing gate (18+) with clip montage ---------- */
.overlay.landing { background: #050507; padding: 0; overflow: auto; align-items: stretch; z-index: 30; }
.gate-video { position: fixed; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.75); }
.gate-shade { position: fixed; inset: 0; background:
  radial-gradient(ellipse at 50% 45%, rgba(255, 45, 85, .14), transparent 60%),
  linear-gradient(180deg, rgba(5, 5, 7, .55), rgba(5, 5, 7, .35) 40%, rgba(5, 5, 7, .92) 100%); }
.gate-body { position: relative; margin: auto; width: 100%; max-width: 820px; padding: calc(28px + var(--sat)) 22px calc(28px + var(--sab)); text-align: center; }
.gate-body .eyebrow { margin-bottom: 4px; font-size: 13px; letter-spacing: .14em; white-space: nowrap; }
.gate-lead { font-size: 19px; line-height: 1.5; margin: 0 auto 18px; max-width: 640px; color: #f1ecdf; text-shadow: 0 2px 12px rgba(0, 0, 0, .9); }
.gate-perks { list-style: none; margin: 0 auto 22px; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.gate-perks li { font-family: var(--sans); font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(232, 196, 106, .35); border-radius: 999px; padding: 6px 12px; background: rgba(0, 0, 0, .45); }
.gate-body .btn.xl { display: inline-block; min-width: 280px; }
.gate-body .muted.small { margin-top: 18px; text-shadow: 0 1px 8px #000; }
.gate-body a { color: var(--fg); }
.btn.xl { padding: 18px 34px; font-size: 19px; border-radius: 14px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 40px rgba(255, 45, 85, .45); animation: cta-pulse 3s ease-in-out infinite; }
.btn.xl:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .2) inset, 0 12px 56px rgba(255, 45, 85, .7); }
@keyframes cta-pulse { 0%, 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 40px rgba(255, 45, 85, .45); } 50% { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset, 0 10px 56px rgba(255, 45, 85, .75); } }

/* ---------- teaser gallery ---------- */
.teasers { position: relative; z-index: 1; max-width: 1600px; margin: 0 auto; padding: 18px 14px calc(40px + var(--sab)); }
.teasers-head { text-align: center; max-width: 720px; margin: 0 auto 18px; }
.teasers-head p { margin: 4px 0 0; }
.teaser-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.teaser { position: relative; margin: 0; border-radius: 14px; overflow: hidden; aspect-ratio: 16 / 9; background: #0b0b10; border: 1px solid var(--line);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .7); transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.teaser:hover { transform: translateY(-3px) scale(1.01); border-color: rgba(255, 143, 166, .5); box-shadow: 0 22px 60px rgba(0, 0, 0, .8), 0 0 40px rgba(255, 45, 85, .25); }
.teaser video { width: 100%; height: 100%; object-fit: cover; display: block; }
.teaser figcaption { position: absolute; inset: auto 0 0 0; padding: 34px 14px 12px; background: linear-gradient(180deg, transparent, rgba(5, 5, 7, .92)); display: flex; flex-direction: column; gap: 2px; }
.teaser figcaption b { font-size: 17px; line-height: 1.2; }
.teaser figcaption small { color: var(--muted); font-family: var(--sans); font-size: 13px; }
.teaser .badge { position: absolute; top: 10px; left: 10px; font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: rgba(255, 45, 85, .9); color: #fff; box-shadow: 0 0 14px rgba(255, 45, 85, .7); }
.teaser.tag-gun .badge { background: rgba(232, 196, 106, .95); color: #1a1408; box-shadow: 0 0 14px rgba(232, 196, 106, .6); }
.teaser.tag-hot::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(255, 45, 85, .25); border-radius: 14px; }
.teasers-cta { text-align: center; margin-top: 22px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
@media (min-width: 900px) {
  .teasers { padding: 8px 24px calc(48px + var(--sab)); }
  .teaser-grid { grid-template-columns: repeat(6, 1fr); }
  .teaser:nth-child(1), .teaser:nth-child(2) { grid-column: span 3; }
  .teaser:nth-child(n + 3) { grid-column: span 2; }
}
@media (max-width: 520px) {
  .sign-sm { font-size: clamp(10px, 3.4vw, 17px); letter-spacing: .07em; -webkit-text-stroke: .7px var(--tube); }
  .teaser-grid { grid-template-columns: 1fr; }
}
.nudge { animation: nudge .9s ease-out 1; }
@keyframes nudge { 0% { box-shadow: 0 0 0 0 rgba(255, 45, 85, .0); } 30% { box-shadow: 0 0 0 4px rgba(255, 45, 85, .55); } 100% { box-shadow: 0 0 0 0 rgba(255, 45, 85, 0); } }

/* ---------- briefing after the trailer ---------- */
#brief { background: radial-gradient(ellipse at 50% 30%, rgba(255, 45, 85, .16), transparent 60%), #050507; z-index: 35; }
.brief-perks li { color: var(--fg); border-color: rgba(255, 143, 166, .35); text-transform: none; letter-spacing: .02em; font-size: 14px; }

/* ---------- «Помощь» widget in NoirQuest colours: red neon on black ---------- */
body #fa-help[data-brand="noirquest"] { --fah-bg: #0b0b10; --fah-bg2: #07070a; --fah-line: rgba(255, 45, 85, .22); --fah-txt: #f1ecdf; --fah-mute: #a39d8c;
  --fah-acc: #d41f3a; --fah-acc2: #ff3b57; --fah-lime: #e8c46a; --fah-user: #2a0810; --fah-red: #ff8fa6; font-family: var(--sans); }
body #fa-help[data-brand="noirquest"] .fah-fab { background: #07070a; color: #ff8fa6; border: 1px solid rgba(255, 45, 85, .7);
  text-shadow: 0 0 6px var(--glow, #ff2d55); box-shadow: 0 0 10px rgba(255, 45, 85, .45), 0 0 28px rgba(255, 45, 85, .3), inset 0 0 12px rgba(255, 45, 85, .15); }
body #fa-help[data-brand="noirquest"] .fah-fab:hover { box-shadow: 0 0 14px rgba(255, 45, 85, .7), 0 0 40px rgba(255, 45, 85, .45), inset 0 0 14px rgba(255, 45, 85, .25); }
body #fa-help[data-brand="noirquest"] .fah-fab svg { filter: drop-shadow(0 0 4px #ff2d55); }
body #fa-help[data-brand="noirquest"] .fah-head { background: linear-gradient(180deg, rgba(255, 45, 85, .14), transparent); }
body #fa-help[data-brand="noirquest"] .fah-msg.sys .fah-bubble { background: rgba(255, 45, 85, .1); border-color: rgba(255, 45, 85, .3); }
body #fa-help[data-brand="noirquest"] .fah-sugg button:hover, body #fa-help[data-brand="noirquest"] .fah-email { background: rgba(255, 45, 85, .1); }
body #fa-help[data-brand="noirquest"] .fah-form textarea:focus { box-shadow: 0 0 0 3px rgba(255, 45, 85, .2); }
body #fa-help[data-brand="noirquest"] .fah-bubble a { color: #ff8fa6; }

/* «Снять сцену» under a reply · the player's film */
.film-row { align-self: flex-start; margin: -2px 0 6px; }
.film-btn { border-color: rgba(212, 31, 58, .45); color: var(--accent-2); }
.film-btn:disabled { opacity: .55; }
.film-item .small { margin-top: 2px; }
.film-clip { display: block; width: 100%; margin-top: 8px; border-radius: 10px; background: #000; max-height: 220px; }
#film .card { max-height: 88vh; overflow: auto; }

/* dramaturg: interlude card, hint, stall nudge */
.interlude { margin: 0 0 14px; padding: 12px 14px; border-left: 2px solid var(--accent-2); background: rgba(212, 31, 58, .07); border-radius: 0 12px 12px 0; }
.interlude p { margin: 6px 0 8px; font-style: italic; color: #d8d3c6; }
.hint { margin: 6px 2px 0; }
.hint.strong { color: var(--accent-2); }
.line.nudge { opacity: .85; font-style: italic; }
.line.action { align-self: stretch; max-width: 100%; font-style: italic; color: #e6dfcf; background: rgba(255, 200, 80, .07); border-left: 3px solid #f0b33a; border-radius: 6px; }
.line.action .who { color: #f0b33a; }
.line.you.act { border-right: 3px solid #f0b33a; }
.line.you.act .who { color: #f0b33a; }
#talk-how { width: 100%; padding: 0 16px; color: #bfb7a6; line-height: 1.4; }
#talk-how b { color: #f0b33a; font-weight: 700; }
#talk-chips { width: 100%; display: flex; flex-direction: column; gap: 6px; padding: 0 8px; }
.chip-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.chip-label { font-family: var(--sans); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--accent-2); min-width: 90px; }
.chip-group.do .chip-label { color: #f0b33a; }
.chip { font: inherit; font-size: 14px; padding: 5px 10px; border-radius: 999px; cursor: pointer; color: #d8d3c6; background: rgba(255, 255, 255, .05); border: 1px solid rgba(212, 31, 58, .45); }
.chip-group.do .chip { border-color: rgba(240, 179, 58, .55); }
.chip:hover { background: rgba(255, 255, 255, .1); }

/* ---- flash offer: neon red/black sign that slides in, HH:MM:SS countdown ---- */
.offer { position: fixed; left: 50%; bottom: calc(18px + var(--sab)); transform: translateX(-50%); z-index: 19; width: min(440px, calc(100vw - 24px)); padding: 18px 20px 18px; text-align: center; font-family: var(--sans); color: #fff3f4; background: rgba(6, 4, 6, .94); border: 1.5px solid var(--accent-2); border-radius: 16px; box-shadow: 0 0 6px var(--accent-2), 0 0 24px rgba(255, 59, 87, .55), 0 0 70px rgba(212, 31, 58, .35), inset 0 0 22px rgba(212, 31, 58, .18); animation: offer-in .5s cubic-bezier(.2, .9, .3, 1.2), neon-hum 2.6s ease-in-out 1s infinite alternate; }
.offer.hidden { display: none; }
@keyframes offer-in { from { transform: translate(-50%, 40px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.offer-x { position: absolute; top: 6px; right: 8px; width: 30px; height: 30px; border: 0; background: none; color: var(--muted); font-size: 22px; line-height: 30px; cursor: pointer; }
.offer-eyebrow { font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent-2); text-shadow: 0 0 8px rgba(255, 59, 87, .8); }
.offer-sign { display: flex; align-items: center; justify-content: center; gap: 14px; margin: 8px 0 6px; }
.offer-pct { font: 700 54px/1 var(--sans); letter-spacing: -.02em; color: #fff; text-shadow: 0 0 4px #fff, 0 0 12px var(--accent-2), 0 0 28px var(--accent-2), 0 0 60px var(--accent); animation: neon-flicker 5s linear infinite; }
.offer-what { text-align: left; font-size: 14px; line-height: 1.3; color: var(--fg); }
.offer-timer { font-size: 13px; color: var(--muted); margin-bottom: 12px; }
.offer-clock { font: 700 18px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #fff; text-shadow: 0 0 8px var(--accent-2), 0 0 18px rgba(255, 59, 87, .6); letter-spacing: .06em; }
.offer .btn.primary { width: 100%; }
.offer-chip { border-color: var(--accent-2) !important; color: #fff !important; box-shadow: 0 0 10px rgba(255, 59, 87, .5), inset 0 0 10px rgba(212, 31, 58, .2); }
.offer-chip .offer-clock { font-size: 12px; }
.shop-offer { font-family: var(--sans); font-size: 13px; padding: 8px 12px; border: 1px solid var(--accent-2); border-radius: 10px; color: #fff; background: rgba(212, 31, 58, .12); box-shadow: 0 0 14px rgba(255, 59, 87, .35), inset 0 0 12px rgba(212, 31, 58, .15); text-align: center; }
.shop-offer .offer-clock { font-size: 13px; }
.pack-row.hot .btn.pack { border-color: var(--accent-2); box-shadow: 0 0 16px rgba(255, 59, 87, .35); }
.btn.pack .name .was { color: var(--muted); font-weight: 400; margin-right: 2px; }
.btn.pack .name .now { color: #fff; text-shadow: 0 0 8px rgba(255, 59, 87, .8); }

/* ---- prizes: sticker pack for finishing + half-year cash draw with countdown ---- */
.prizes { position: relative; z-index: 2; max-width: 980px; margin: 0 auto; padding: 26px 16px 34px; font-family: var(--sans); }
.prizes.hidden { display: none; }
.prizes .eyebrow { text-align: center; }
.prize-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 12px; }
.prize-card { padding: 18px 18px 16px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); backdrop-filter: blur(10px); text-align: left; }
.prize-card:nth-child(2) { border-color: rgba(232, 196, 106, .5); box-shadow: 0 0 26px rgba(232, 196, 106, .12), inset 0 0 20px rgba(232, 196, 106, .06); }
.prize-icon { font-size: 30px; line-height: 1; margin-bottom: 8px; }
.prize-card b { display: block; font-size: 18px; color: #fff; margin-bottom: 6px; }
.prize-card:nth-child(2) b { color: var(--gold); text-shadow: 0 0 12px rgba(232, 196, 106, .5); }
.prize-card p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--fg); }
.prize-countdown { display: flex; gap: 8px; margin-top: 14px; }
.prize-countdown .cd { flex: 1; text-align: center; padding: 8px 4px; border: 1px solid rgba(232, 196, 106, .45); border-radius: 10px; background: rgba(6, 4, 6, .7); box-shadow: 0 0 12px rgba(232, 196, 106, .2), inset 0 0 10px rgba(232, 196, 106, .08); }
.prize-countdown b { display: block; font: 700 24px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #fff; text-shadow: 0 0 8px rgba(232, 196, 106, .8); margin-bottom: 3px; }
.prize-countdown small { font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.prize-note { margin-top: 12px; text-align: center; font-size: 14px; color: var(--gold); }
.prizes-gate { padding: 14px 0 0; max-width: 720px; }
.prizes-gate .prize-card { padding: 12px 14px; }
.prizes-gate .prize-card b { font-size: 15px; }
.prizes-gate .prize-card p { font-size: 12.5px; }
.prizes-gate .prize-icon { font-size: 22px; margin-bottom: 4px; }
.prizes-gate .prize-countdown { margin-top: 10px; }
.prizes-gate .prize-countdown b { font-size: 18px; }
.prizes-gate .prize-note { display: none; }
@media (max-width: 520px) {
  .offer-pct { font-size: 44px; }
  .prizes-gate .prize-grid { grid-template-columns: 1fr; }
  .prizes-gate .prize-card p { display: none; }
}

/* ---------- floating «ПРИЗ» sign over the age gate ---------- */
.prize-float { position: fixed; z-index: 31; right: 16px; top: calc(16px + var(--sat)); width: 300px; display: none; align-items: stretch; gap: 0; cursor: pointer; font-family: var(--sans); text-align: center; color: #fff8e6; background: rgba(6, 4, 6, .93); border: 1.5px solid var(--gold); border-radius: 18px; overflow: hidden; box-shadow: 0 0 6px var(--gold), 0 0 26px rgba(232, 196, 106, .55), 0 0 80px rgba(232, 196, 106, .3), inset 0 0 26px rgba(232, 196, 106, .16); animation: pf-float 3.4s ease-in-out infinite, pf-hum 2.2s ease-in-out infinite alternate; }
body:has(#age-gate:not(.hidden)) .prize-float:not(.hidden) { display: flex; }
.prize-float:hover { transform: scale(1.03); }
.pf-tag { writing-mode: vertical-rl; transform: rotate(180deg); display: flex; align-items: center; justify-content: center; padding: 8px 6px; font-weight: 900; font-size: 22px; letter-spacing: .28em; color: #fff; background: linear-gradient(180deg, var(--accent-2), var(--accent)); text-shadow: 0 0 8px #fff, 0 0 18px var(--accent-2); box-shadow: 0 0 18px rgba(255, 59, 87, .8); animation: pf-blink 1.6s steps(2, jump-none) infinite; }
.pf-body { flex: 1; padding: 12px 12px 11px; }
.pf-sum { font-size: 38px; line-height: 1; font-weight: 900; letter-spacing: .02em; color: #fff; text-shadow: 0 0 6px #fff, 0 0 16px var(--gold), 0 0 42px rgba(232, 196, 106, .9); }
.pf-line { margin-top: 4px; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--gold); }
.pf-cd { display: flex; gap: 5px; margin-top: 9px; }
.pf-cell { flex: 1; padding: 5px 2px; border: 1px solid rgba(232, 196, 106, .55); border-radius: 8px; background: rgba(0, 0, 0, .7); box-shadow: inset 0 0 8px rgba(232, 196, 106, .12); }
.pf-cell b { display: block; font: 800 19px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: #fff; text-shadow: 0 0 8px rgba(232, 196, 106, .9); }
.pf-cell small { display: block; margin-top: 2px; font-size: 8.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.pf-stick { margin-top: 9px; padding-top: 8px; border-top: 1px dashed rgba(255, 59, 87, .5); color: #ffd6dc; text-shadow: 0 0 10px rgba(255, 59, 87, .8); text-transform: none; letter-spacing: .02em; font-size: 13px; font-weight: 700; }
@keyframes pf-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -7px; } }
@keyframes pf-hum { from { box-shadow: 0 0 6px var(--gold), 0 0 26px rgba(232, 196, 106, .55), 0 0 80px rgba(232, 196, 106, .3), inset 0 0 26px rgba(232, 196, 106, .16); } to { box-shadow: 0 0 10px var(--gold), 0 0 40px rgba(232, 196, 106, .85), 0 0 110px rgba(232, 196, 106, .45), inset 0 0 34px rgba(232, 196, 106, .24); } }
@keyframes pf-blink { from { filter: brightness(1); } to { filter: brightness(1.35); } }
/* brighter prize cards on the gate */
.prizes-gate .prize-card:nth-child(1) { border-color: var(--accent-2); box-shadow: 0 0 6px rgba(255, 59, 87, .6), 0 0 28px rgba(255, 59, 87, .35), inset 0 0 22px rgba(212, 31, 58, .14); }
.prizes-gate .prize-card:nth-child(1) b { color: #ffd6dc; text-shadow: 0 0 12px rgba(255, 59, 87, .9); }
.prizes-gate .prize-card:nth-child(2) { border-color: var(--gold); box-shadow: 0 0 6px rgba(232, 196, 106, .6), 0 0 28px rgba(232, 196, 106, .35), inset 0 0 22px rgba(232, 196, 106, .12); }
.prizes-gate .prize-card:nth-child(2) b { color: #fff; text-shadow: 0 0 6px #fff, 0 0 18px var(--gold); font-size: 20px; }
@media (max-width: 760px) {
  .prize-float { right: 10px; left: 10px; width: auto; top: calc(10px + var(--sat)); }
  .pf-tag { font-size: 16px; padding: 6px 5px; }
  .pf-body { padding: 9px 10px 9px; }
  .pf-sum { font-size: 30px; }
  .pf-line { font-size: 10.5px; }
  .pf-cd { margin-top: 7px; }
  .pf-cell b { font-size: 17px; }
  .pf-stick { font-size: 12px; margin-top: 7px; padding-top: 6px; }
  #age-gate .gate-body { padding-top: calc(190px + var(--sat)); }
}
@media (prefers-reduced-motion: reduce) { .prize-float, .pf-tag { animation: none; } }
