/* TAKE A NUMBER - UI styles. System fonts only. */
:root {
  --red: #c01818;
  --red2: #ff3a20;
  --paper: #efe4c4;
  --ink: #1a1410;
  --hud: #f0e8d0;
  --dim: #9a9078;
  --good: #7fe08a;
  --bad: #ff5a4a;
  --font: "Arial Black", "Impact", "Helvetica Neue", Arial, sans-serif;
  --body: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --mono: "Courier New", Consolas, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: #000; overflow: hidden; color: var(--hud); font-family: var(--body); }
#app { position: fixed; inset: 0; }
#game { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
#ui { position: absolute; inset: 0; pointer-events: none; user-select: none; }
#ui > * { pointer-events: none; }
.hidden { display: none !important; }
.dim, .muted { color: var(--dim); }
.good { color: var(--good); }
kbd { display: inline-block; min-width: 1.4em; padding: 0 0.35em; border: 1px solid rgba(255, 255, 255, 0.45); border-bottom-width: 2px; border-radius: 3px; font-family: var(--mono); font-size: 0.85em; text-align: center; background: rgba(0, 0, 0, 0.4); }
a { color: #ffb070; }

/* ------------------------------------------------------------------ HUD */
#hud { position: absolute; inset: 0; text-shadow: 0 1px 2px #000, 0 0 6px rgba(0, 0, 0, 0.8); }
.hud-tl { position: absolute; left: 18px; top: 14px; max-width: 46vw; }
#obj { font-size: 15px; line-height: 1.35; }
#obj .olbl { font-family: var(--font); color: var(--red2); font-size: 11px; letter-spacing: 1px; margin-right: 6px; }
#obj.flash { animation: objflash 1.2s ease-out; }
@keyframes objflash { 0% { color: #fff6a0; transform: translateX(6px); } 100% { color: var(--hud); transform: none; } }
#evid { margin-top: 6px; font-size: 12px; color: var(--dim); font-family: var(--mono); }
.hud-tr { position: absolute; right: 18px; top: 14px; text-align: right; }
#cash { font-family: var(--font); font-size: 26px; color: #9fe07a; }
#ticket { margin-top: 6px; background: var(--paper); color: var(--ink); text-shadow: none; padding: 6px 10px; font-family: var(--mono); font-size: 13px; border-top: 6px solid var(--red); box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6); transform: rotate(1.2deg); }
#ticket b { font-size: 16px; }
.hud-bl { position: absolute; left: 18px; bottom: 16px; width: 290px; }
.stat { display: grid; grid-template-columns: 112px 1fr 58px; align-items: center; gap: 8px; margin-top: 5px; }
.stat .lbl { font-family: var(--font); font-size: 10px; letter-spacing: 1px; color: var(--dim); }
.stat b { font-family: var(--mono); font-size: 16px; text-align: right; }
.bar { height: 10px; background: rgba(0, 0, 0, 0.55); border: 1px solid rgba(255, 255, 255, 0.25); position: relative; overflow: hidden; }
.bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(#d8483a, #8a1a12); transition: width 0.15s; }
.bar.low i { animation: lowhp 0.8s infinite alternate; }
@keyframes lowhp { to { background: #ff2a10; } }
.bar.armor i { background: linear-gradient(#5a8ad8, #1a3a7a); }
.bar.bpb i { background: linear-gradient(#e0b040, #8a6010); }
.bar.bpb.warn i { background: linear-gradient(#ff7a20, #a03a08); }
.bar.bpb.crit i { background: linear-gradient(#ff2020, #800); animation: lowhp 0.4s infinite alternate; }
.stat.bp { position: relative; }
#heart { position: absolute; right: -22px; color: #ff3030; font-size: 18px; animation: beat 1s infinite; }
@keyframes beat { 0%, 60%, 100% { transform: scale(1); } 20% { transform: scale(1.35); } }
.hud-br { position: absolute; right: 18px; bottom: 16px; text-align: right; }
#wname { font-family: var(--font); font-size: 18px; letter-spacing: 0.5px; }
#wammo { font-family: var(--mono); font-size: 20px; margin-top: 2px; }
#wammo b { font-size: 30px; }
#wslots { margin-top: 6px; }
#wslots .slot { display: inline-block; width: 18px; height: 18px; line-height: 16px; margin-left: 3px; font-family: var(--mono); font-size: 11px; text-align: center; border: 1px solid rgba(255, 255, 255, 0.15); color: rgba(255, 255, 255, 0.2); }
#wslots .slot.own { color: var(--hud); border-color: rgba(255, 255, 255, 0.45); }
#wslots .slot.cur { background: var(--red); border-color: #ff7060; color: #fff; }
#keys .key { display: inline-block; margin: 0 0 6px 6px; padding: 2px 6px; font-size: 11px; font-family: var(--mono); background: rgba(0, 0, 0, 0.5); border-left: 4px solid #ccc; }
#keys .k-evidence { border-color: #d8c020; } #keys .k-armory { border-color: #20a040; } #keys .k-chief { border-color: #d4b25a; } #keys .k-archive { border-color: #c02020; }
#boss { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); width: min(560px, 70vw); text-align: center; }
#bossName { font-family: var(--font); letter-spacing: 3px; font-size: 14px; color: #ffd0a0; }
#boss .bar { height: 14px; margin-top: 4px; }
#boss .bar i { background: linear-gradient(#ff4020, #6a0a04); }
#cross { position: absolute; left: 50%; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; }
#cross::before, #cross::after { content: ''; position: absolute; background: rgba(255, 240, 220, 0.85); box-shadow: 0 0 2px #000; }
#cross::before { left: 8px; top: 2px; width: 2px; height: 5px; box-shadow: 0 9px 0 rgba(255, 240, 220, 0.85); }
#cross::after { top: 8px; left: 2px; width: 5px; height: 2px; box-shadow: 9px 0 0 rgba(255, 240, 220, 0.85); }
#prompt { position: absolute; left: 50%; top: 60%; transform: translateX(-50%); font-size: 16px; background: rgba(0, 0, 0, 0.45); padding: 4px 12px; border-radius: 3px; }
#prompt:empty { display: none; }
#zone { position: absolute; top: 26%; left: 50%; transform: translateX(-50%); font-family: var(--font); font-size: 28px; letter-spacing: 6px; color: #f6eedc; opacity: 0; white-space: nowrap; }
#zone.show { animation: zone 3.2s ease-out; }
@keyframes zone { 0% { opacity: 0; letter-spacing: 14px; } 15% { opacity: 0.9; letter-spacing: 6px; } 75% { opacity: 0.9; } 100% { opacity: 0; } }
#toasts { position: absolute; right: 18px; top: 110px; width: min(420px, 40vw); display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.toast { background: rgba(10, 8, 6, 0.82); border-left: 4px solid #d8c8a0; padding: 7px 11px; font-size: 14px; line-height: 1.35; animation: tin 0.25s ease-out; transition: opacity 0.5s, transform 0.5s; }
.toast.good { border-color: var(--good); } .toast.bad { border-color: var(--bad); } .toast.secret { border-color: #c080ff; color: #f0d8ff; }
.toast.out { opacity: 0; transform: translateX(30px); }
@keyframes tin { from { opacity: 0; transform: translateX(30px); } }
#subs { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); width: min(900px, 86vw); text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; }
.sub { background: rgba(0, 0, 0, 0.62); padding: 5px 12px; font-size: 17px; line-height: 1.35; transition: opacity 0.5s; }
.sub b { color: #ffcf80; }
.sub.earl b { color: #9fd0ff; }
.sub.bark { font-size: 14px; opacity: 0.85; }
.sub.out { opacity: 0; }
#fps { position: absolute; left: 50%; top: 6px; transform: translateX(-50%); font-family: var(--mono); font-size: 12px; color: #9f9; }

/* overlays */
#vignette, #bpfx, #strokefx, #burnfx { position: absolute; inset: 0; opacity: 0; transition: opacity 0.15s; }
#vignette { background: radial-gradient(ellipse at center, transparent 45%, rgba(200, 0, 0, 0.75) 100%); }
#bpfx { background: radial-gradient(ellipse at center, transparent 55%, rgba(160, 0, 0, 0.7) 100%); animation: bppulse 0.9s infinite; transition: opacity 0.6s; }
@keyframes bppulse { 50% { filter: brightness(1.6); } }
#strokefx { background: linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(10, 0, 20, 0.85) 30%, rgba(20, 0, 40, 0.25) 52%, transparent 62%); transition: opacity 1s; }
#burnfx { background: radial-gradient(ellipse at 50% 120%, rgba(255, 120, 20, 0.7) 0%, transparent 55%), radial-gradient(ellipse at center, transparent 50%, rgba(255, 80, 0, 0.45) 100%); animation: burnfl 0.2s infinite alternate; }
@keyframes burnfl { to { filter: brightness(1.3); } }
#dmgdir { position: absolute; left: 50%; top: 50%; width: 360px; height: 360px; transform: translate(-50%, -50%); opacity: 0; transition: opacity 0.35s; background: radial-gradient(ellipse 30% 12% at 50% 4%, rgba(255, 30, 20, 0.9), transparent 70%); }
#fade { position: absolute; inset: 0; background: #000; opacity: 1; }
#clickhint { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); padding: 12px 24px; background: rgba(0, 0, 0, 0.7); border: 1px solid #c8b890; font-family: var(--font); letter-spacing: 2px; pointer-events: auto !important; cursor: pointer; }

/* ------------------------------------------------------------------ dialog */
#dialog { position: absolute; left: 50%; bottom: 40px; transform: translateX(-50%); width: min(860px, 92vw); background: rgba(12, 10, 8, 0.92); border: 1px solid #5a4a30; border-top: 4px solid var(--red); padding: 16px 20px 12px; pointer-events: auto !important; cursor: pointer; box-shadow: 0 8px 40px rgba(0, 0, 0, 0.8); }
.dname { font-family: var(--font); font-size: 14px; letter-spacing: 2px; color: #ffcf80; margin-bottom: 6px; }
.dname.earl { color: #9fd0ff; }
.dtext { font-size: 19px; line-height: 1.45; min-height: 56px; white-space: pre-wrap; }
.dopts { margin-top: 10px; display: flex; flex-direction: column; gap: 4px; }
.dopt { padding: 6px 10px; font-size: 16px; background: rgba(255, 255, 255, 0.04); border-left: 3px solid transparent; }
.dopt:hover { background: rgba(255, 255, 255, 0.1); border-color: var(--red); }

/* ------------------------------------------------------------------ waiting */
#waitmenu { position: absolute; right: 40px; top: 50%; transform: translateY(-50%); width: 330px; background: rgba(12, 10, 8, 0.88); border: 1px solid #5a4a30; padding: 18px; pointer-events: auto !important; }
.wclock { font-family: var(--mono); font-size: 46px; text-align: center; color: #ff4a2a; text-shadow: 0 0 12px rgba(255, 60, 20, 0.6); }
.wsub { text-align: center; font-size: 13px; color: var(--dim); margin: 4px 0 14px; }
.wopts { display: flex; flex-direction: column; gap: 6px; }
.wopts.busy { opacity: 0.4; pointer-events: none; }

/* ------------------------------------------------------------------ buttons */
button { font: inherit; color: inherit; cursor: pointer; }
.wopts button, .mbtn, #shop button, .tabs button { pointer-events: auto; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.25); color: var(--hud); padding: 8px 14px; text-align: left; font-size: 15px; transition: background 0.1s, border-color 0.1s; }
.wopts button:hover, .mbtn:hover, #shop button:hover:not(:disabled), .tabs button:hover { background: var(--red); border-color: #ff7060; }
button:disabled { opacity: 0.35; cursor: default; }
.mbtn.small { font-size: 12px; padding: 5px 10px; }
.mbtn.danger { border-color: #a02020; }
.mbtn.back { margin-top: 18px; }
.linkbtn { background: none; border: none; color: #ffb070; text-decoration: underline; padding: 0 4px; pointer-events: auto; }
.linkbtn.on { color: #fff; text-decoration: none; font-weight: bold; }

/* ------------------------------------------------------------------ shop */
#shop { position: absolute; inset: 4vh 4vw; background: linear-gradient(#1c1418, #0e0a0c); border: 2px solid #d99fb1; box-shadow: 0 0 60px rgba(240, 120, 160, 0.25); padding: 18px 22px; pointer-events: auto !important; display: flex; flex-direction: column; }
.shead { display: flex; justify-content: space-between; align-items: baseline; }
.stitle { font-family: var(--font); font-size: 30px; color: #f6c8d8; letter-spacing: 2px; }
.stitle small { font-size: 13px; color: #a8b8ff; margin-left: 8px; letter-spacing: 1px; }
.scash { font-size: 18px; } .scash b { color: #9fe07a; font-family: var(--mono); font-size: 24px; }
.sline { font-style: italic; color: #f0d8c0; margin: 6px 0 10px; min-height: 1.4em; }
.scols { display: grid; grid-template-columns: 1.3fr 1fr; gap: 20px; overflow-y: auto; flex: 1; pointer-events: auto; }
.scol h3 { font-family: var(--font); font-size: 13px; letter-spacing: 2px; color: #d99fb1; margin: 8px 0; }
.sitem { display: grid; grid-template-columns: 1fr auto; grid-template-areas: "n p" "d b"; gap: 2px 12px; padding: 8px 10px; margin-bottom: 6px; background: rgba(255, 255, 255, 0.04); border-left: 3px solid #5a3a48; }
.sitem.owned { border-color: #4a8a4a; opacity: 0.7; }
.sitem.dim { opacity: 0.55; }
.sname { grid-area: n; font-weight: bold; }
.sprice { grid-area: p; font-family: var(--mono); color: #9fe07a; text-align: right; }
.sdesc { grid-area: d; font-size: 13px; color: #c8b8a8; }
.sitem button { grid-area: b; padding: 4px 14px; font-family: var(--font); font-size: 12px; align-self: center; }
.sfoot { margin-top: 10px; text-align: right; }

/* ------------------------------------------------------------------ terminal */
#terminal { position: absolute; inset: 5vh 8vw; background: #031208; border: 3px solid #1a3a24; border-radius: 12px; box-shadow: 0 0 80px rgba(40, 255, 120, 0.15), inset 0 0 120px rgba(0, 0, 0, 0.8); font-family: var(--mono); color: #5dff9a; pointer-events: auto !important; display: flex; flex-direction: column; padding: 14px 18px; text-shadow: 0 0 4px rgba(80, 255, 140, 0.6); }
#terminal::after { content: ''; position: absolute; inset: 0; border-radius: 10px; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, 0.18) 0 1px, transparent 1px 3px); }
.thead { border-bottom: 1px solid #1f6a3a; padding-bottom: 6px; margin-bottom: 8px; font-weight: bold; letter-spacing: 1px; }
.tout { flex: 1; overflow-y: auto; font-size: 15px; line-height: 1.38; pointer-events: auto; padding-right: 8px; }
.tl { white-space: pre-wrap; word-break: break-word; }
.tl.cmd { color: #b8ffcf; }
.tl.dim { color: #2f9a58; }
.tl.err { color: #ff8a6a; }
.tl.ok { color: #e8ff80; }
.tl.file { color: #9dffbe; }
.tl.link { color: #e8ff80; cursor: pointer; text-decoration: underline; text-decoration-color: rgba(232, 255, 128, 0.35); }
.tl.link:hover { background: rgba(93, 255, 154, 0.15); }
.tin { display: flex; gap: 8px; margin-top: 8px; align-items: center; }
.tin input { flex: 1; background: transparent; border: none; outline: none; color: #b8ffcf; font: inherit; font-size: 15px; caret-color: #5dff9a; text-shadow: inherit; pointer-events: auto; }
.thint { font-size: 12px; color: #2f9a58; margin-top: 6px; }

/* ------------------------------------------------------------------ map */
#mapov { position: absolute; inset: 0; background: rgba(5, 4, 3, 0.9); display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 30px; padding: 20px; overflow-y: auto; }
#mapov canvas { width: min(560px, 60vh, 90vw); height: min(560px, 60vh, 90vw); border: 1px solid #5a4a30; image-rendering: pixelated; }
.mside { width: min(340px, 90vw); font-size: 14px; line-height: 1.45; }
.mside h2 { font-family: var(--font); letter-spacing: 1px; margin: 0 0 6px; font-size: 18px; }
.mside h3 { font-family: var(--font); font-size: 12px; letter-spacing: 2px; color: var(--red2); margin: 14px 0 4px; }
.mside ul { margin: 0; padding-left: 18px; }
.mside li { color: var(--dim); } .mside li.got { color: #e0c8ff; }
.mobj { color: #fff6c0; }

/* ------------------------------------------------------------------ screens */
#screen { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; pointer-events: auto !important; overflow-y: auto; }
#screen * { pointer-events: auto; }
#screen.scr-menu, #screen.scr-death { background: rgba(5, 3, 2, 0.82); }
#screen.scr-intro { background: #000; }
#screen.scr-ending { background: rgba(0, 0, 0, 0.85); }
.panel { width: min(860px, 92vw); max-height: 92vh; overflow-y: auto; background: rgba(16, 13, 10, 0.95); border: 1px solid #5a4a30; border-top: 5px solid var(--red); padding: 22px 28px; }
.panel.narrow { width: min(460px, 92vw); text-align: center; }
.panel h1 { font-family: var(--font); letter-spacing: 3px; margin: 0 0 12px; font-size: 26px; }
.panel h3 { font-family: var(--font); font-size: 12px; letter-spacing: 2px; color: var(--red2); margin: 16px 0 6px; }
.menu { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.menu.row { flex-direction: row; justify-content: center; }
.menu .mbtn { text-align: center; font-family: var(--font); letter-spacing: 1px; font-size: 16px; padding: 11px 16px; }
.mbtn.diff { text-align: left; display: flex; flex-direction: column; }
.mbtn.diff small { font-family: var(--body); letter-spacing: 0; font-size: 13px; color: #d8c8b0; margin-top: 2px; }
.death h1 { color: var(--red2); font-size: 34px; }
.scols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
.srow { display: grid; grid-template-columns: 1fr 140px 44px; gap: 10px; align-items: center; margin: 6px 0; font-size: 14px; }
.srow.chk { grid-template-columns: 1fr auto; }
.srow select { grid-column: span 2; background: #1a1612; color: var(--hud); border: 1px solid #5a4a30; padding: 4px; }
.srow output { font-family: var(--mono); font-size: 12px; text-align: right; }
input[type=range] { accent-color: var(--red); }
table.ctl { width: 100%; border-collapse: collapse; }
table.ctl td { padding: 5px 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 14px; }
table.ctl td:first-child { width: 170px; }

/* title */
.scr-title { background: radial-gradient(ellipse at 30% 50%, rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.75) 70%); justify-content: flex-start !important; }
.title { margin-left: 7vw; display: flex; flex-direction: column; align-items: flex-start; }
.logo { display: flex; flex-direction: column; font-family: var(--font); line-height: 0.88; text-shadow: 0 4px 0 #000, 0 0 40px rgba(200, 20, 20, 0.6); }
.logo .t1 { font-size: 46px; color: var(--paper); letter-spacing: 8px; }
.logo .t2 { font-size: 104px; color: var(--red); letter-spacing: 2px; transform: skewX(-6deg); }
.tagline { font-style: italic; color: #e8d8b8; margin: 6px 0 18px; font-size: 18px; text-shadow: 0 1px 3px #000; }
.ticketgfx { background: var(--paper); color: var(--ink); width: 210px; text-align: center; border-top: 14px solid var(--red); padding: 8px 10px 10px; transform: rotate(-3deg); box-shadow: 0 10px 30px rgba(0, 0, 0, 0.7); margin-bottom: 18px; position: relative; }
.ticketgfx::after { content: ''; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 6px 0, transparent 5px, var(--paper) 5.5px) 0 0 / 12px 8px repeat-x; }
.tk-h { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; }
.tk-n { font-family: var(--font); font-size: 66px; line-height: 1; margin: 4px 0; }
.tk-f { font-family: var(--mono); font-size: 10px; letter-spacing: 1px; }
.ticketgfx.big { width: 300px; } .ticketgfx.big .tk-n { font-size: 100px; } .ticketgfx.big .tk-f { font-size: 13px; font-weight: bold; }
.title .menu { width: 290px; }
.foot { margin-top: 18px; font-size: 12px; color: #b8a888; text-shadow: 0 1px 2px #000; }

/* intro */
.intro { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; }
.itext { max-width: 760px; font-size: 26px; line-height: 1.55; text-align: center; color: #e8dcc0; font-family: Georgia, "Times New Roman", serif; animation: ifade 1.2s ease-out; padding: 0 20px; }
@keyframes ifade { from { opacity: 0; transform: translateY(8px); } }
.ihint { position: absolute; bottom: 40px; color: var(--dim); font-size: 13px; }

/* ending newspaper */
.paper { width: min(760px, 94vw); max-height: 94vh; overflow-y: auto; background: #ece4cf; color: #1a1612; padding: 26px 34px; font-family: Georgia, "Times New Roman", serif; box-shadow: 0 20px 80px rgba(0, 0, 0, 0.9); transform: rotate(-0.6deg); }
.pmast { font-family: "Old English Text MT", Georgia, serif; font-size: 44px; text-align: center; border-bottom: 3px double #1a1612; padding-bottom: 6px; }
.pdate { text-align: center; font-size: 12px; border-bottom: 1px solid #1a1612; padding: 4px 0; margin-bottom: 14px; }
.phead { font-family: var(--font); font-size: 34px; line-height: 1.05; text-align: center; margin-bottom: 14px; }
.pbody { columns: 2; column-gap: 26px; font-size: 15px; line-height: 1.5; }
.pbody p { margin: 0 0 10px; }
.pstats { margin-top: 14px; border-top: 1px solid #1a1612; padding-top: 10px; font-family: var(--mono); font-size: 12px; line-height: 1.6; }
.paper .mbtn { color: #1a1612; border-color: #1a1612; }
.paper .mbtn:hover { color: #fff; }

/* legal */
.legal .tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.legal .tabs button.on { background: var(--red); }
.ltext { font-size: 14px; line-height: 1.55; }
.ltext h1 { font-size: 22px; } .ltext h2 { font-size: 15px; margin: 16px 0 4px; color: #ffcf80; }
.ltext table.lic { border-collapse: collapse; width: 100%; font-size: 13px; }
.ltext table.lic td, .ltext table.lic th { border: 1px solid #4a3a28; padding: 4px 6px; text-align: left; vertical-align: top; }
.ltext pre.license { white-space: pre-wrap; font-size: 11px; background: rgba(0, 0, 0, 0.4); padding: 8px; }
.ltext code { font-family: var(--mono); color: #d8f0a0; }

/* age gate & splash */
.agegate, .splash, .legalpage, .fatal { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; background: radial-gradient(ellipse at center, #1c1410, #050403 75%); pointer-events: auto !important; z-index: 50; }
.agegate *, .splash *, .legalpage * { pointer-events: auto; }
.legalpage { z-index: 60; background: rgba(0, 0, 0, 0.9); }
.age-box { width: min(520px, 92vw); background: rgba(16, 13, 10, 0.96); border: 1px solid #5a4a30; border-top: 5px solid var(--red); padding: 22px 26px; text-align: center; }
.age-badge { display: inline-block; font-family: var(--font); font-size: 34px; color: #fff; background: var(--red); border-radius: 50%; width: 76px; height: 76px; line-height: 76px; margin: 6px 0; }
.age-box h1 { font-family: var(--font); letter-spacing: 3px; margin: 6px 0; }
.age-box p { font-size: 14px; line-height: 1.5; }
.age-form { display: flex; gap: 8px; justify-content: center; align-items: flex-end; flex-wrap: wrap; margin: 12px 0; }
.age-form label { display: flex; flex-direction: column; font-size: 11px; color: var(--dim); gap: 4px; }
.age-form input { width: 64px; font-size: 20px; padding: 6px; text-align: center; background: #0c0a08; color: #fff; border: 1px solid #5a4a30; font-family: var(--mono); }
.age-form .year input { width: 90px; }
.age-form .mbtn { font-family: var(--font); }
.age-error { color: var(--bad); min-height: 1.2em; }
.age-denied { color: var(--bad); font-weight: bold; }
.age-privacy { color: var(--dim); font-size: 12px !important; }
.age-legal { margin-top: 8px; font-size: 12px; }
.age-lang { font-size: 12px; text-align: right; }
.splash { cursor: pointer; gap: 14px; }
.splash .ticketgfx { transform: rotate(-2deg); animation: tkfloat 3s ease-in-out infinite; }
@keyframes tkfloat { 50% { transform: rotate(-1deg) translateY(-6px); } }
.fatal h1 { font-family: var(--font); color: var(--red); }

@media (max-width: 900px) {
  .logo .t2 { font-size: 64px; } .logo .t1 { font-size: 30px; }
  .scols, .scols2 { grid-template-columns: 1fr; }
  .pbody { columns: 1; }
  .hud-bl { width: 230px; } .stat { grid-template-columns: 90px 1fr 50px; }
}
