/* ANSEM SIMULATOR: a dark room, a trading screen, a certificate. Warm black, one rug red, green/red only for the market. */
@font-face { font-family: 'Anton'; src: url('/fonts/Anton-Regular.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'DM Sans'; src: url('/fonts/DMSans-opsz_wght.woff2') format('woff2'); font-weight: 100 1000; font-display: swap; }
@font-face { font-family: 'Azeret Mono'; src: url('/fonts/AzeretMono.woff2') format('woff2'); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #0a0908; --s1: #100f0d; --s2: #151311; --s3: #1c1916; --s4: #26221e;
  --ink: #ece6da; --ink2: rgba(236, 230, 218, .68); --ink3: rgba(236, 230, 218, .42);
  --line: rgba(236, 230, 218, .08); --line2: rgba(236, 230, 218, .16);
  --red: #ff3b46; --red2: #c81e2e; --up: #2ebd85; --dn: #f6465d;
  --r: 4px; --ease: cubic-bezier(.2, .7, .2, 1);
  --fd: 'Anton', Impact, 'Arial Narrow', sans-serif; --fs: 'DM Sans', system-ui, sans-serif; --fm: 'Azeret Mono', ui-monospace, Menlo, monospace;
  --sb-thumb: rgba(236, 230, 218, .18);
}
* { box-sizing: border-box; }
html, body { height: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 14px/1.45 var(--fs); overflow: hidden; -webkit-font-smoothing: antialiased; }
::selection { background: var(--red); color: #160204; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--red); outline-offset: 2px; }
kbd { font: 500 9.5px/1 var(--fm); padding: 3px 4px; border: 1px solid var(--line2); border-radius: 3px; color: var(--ink3); background: rgba(0, 0, 0, .25); }
[hidden] { display: none !important; }

#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; }
#flatroom { position: fixed; inset: 0; background:
  radial-gradient(ellipse 30% 22% at 50% 52%, rgba(150, 180, 255, .35), transparent 70%),
  linear-gradient(#0d0c0b 0 2px, transparent 2px) 0 0 / 100% 100%,
  linear-gradient(180deg, #160a0c 0%, #0d0b0a 40%, #0a0807 100%); }
#flatroom::after { content: ''; position: absolute; left: 50%; top: 50%; width: min(46vw, 520px); aspect-ratio: 16 / 9; transform: translate(-50%, -50%); border: 10px solid #0b0b0c; background: #0c0e11; box-shadow: 0 0 80px rgba(140, 170, 255, .35); }

/* ── the site bar ── */
header.site { position: fixed; top: 0; left: 0; right: 0; height: 48px; z-index: 70; display: flex; align-items: center; justify-content: space-between; padding: 0 16px;
  background: linear-gradient(rgba(10, 9, 8, .9), rgba(10, 9, 8, 0)); }
body.in-term header.site, body.in-end header.site { background: var(--bg); border-bottom: 1px solid var(--line); }
.mark { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 400 19px/1 var(--fd); text-transform: uppercase; letter-spacing: .02em; }
.mark .bull { width: 22px; height: 22px; background: url('/favicon.svg') center / contain no-repeat; }
header.site nav { display: flex; align-items: center; gap: 8px; }
.ca { display: inline-flex; align-items: center; gap: 8px; height: 32px; padding: 0 10px; background: var(--s2); border: 1px solid var(--line2); border-radius: var(--r); font: 500 12px/1 var(--fm); color: var(--ink2); }
.ca b { color: var(--red); font-weight: 600; }
.ca svg { width: 14px; height: 14px; opacity: .7; }
.ca:hover, .xbtn:hover, .snd:hover { border-color: var(--ink3); color: var(--ink); }
.ca.done { border-color: var(--up); }
.xbtn, .snd { width: 32px; height: 32px; display: grid; place-items: center; background: var(--s2); border: 1px solid var(--line2); border-radius: var(--r); color: var(--ink2); }
.xbtn svg, .snd svg { width: 15px; height: 15px; }
body.muted .snd .w { opacity: 0; }

/* ── the intro, over the live room ── */
#intro { position: fixed; inset: 0; z-index: 40; display: grid; align-content: end; padding: 90px clamp(20px, 6vw, 80px) clamp(64px, 9vh, 110px);
  background: linear-gradient(0deg, rgba(10, 9, 8, .96) 0%, rgba(10, 9, 8, .7) 38%, rgba(10, 9, 8, .15) 75%), radial-gradient(ellipse 80% 60% at 70% 30%, transparent, rgba(10, 9, 8, .55));
  transition: opacity .7s var(--ease); }
#intro.gone { opacity: 0; pointer-events: none; }
.in-wrap { max-width: 680px; }
.eyebrow { font: 500 11px/1 var(--fm); text-transform: uppercase; letter-spacing: .14em; color: var(--ink3); margin-bottom: 18px; }
.eyebrow::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; border-radius: 50%; background: var(--red); vertical-align: 1px; animation: pulse 1.4s infinite; }
#intro h1 { margin: 0 0 22px; font: 400 clamp(64px, 11.5vw, 172px)/.84 var(--fd); text-transform: uppercase; letter-spacing: -.005em; }
#intro h1 span { color: transparent; -webkit-text-stroke: 2px var(--ink); }
.lede { margin: 0 0 22px; font-size: clamp(16px, 1.6vw, 19px); color: var(--ink2); max-width: 46ch; }
.lede b { color: var(--ink); font-weight: 600; }
.facts { list-style: none; margin: 0 0 28px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); max-width: 640px; }
.facts li { background: rgba(16, 15, 13, .85); padding: 10px 12px; font-size: 12.5px; color: var(--ink2); }
.facts i { display: block; font: 500 10px/1 var(--fm); font-style: normal; text-transform: uppercase; letter-spacing: .12em; color: var(--red); margin-bottom: 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 50px; padding: 0 26px; border-radius: var(--r); border: 0; font: 700 14px/1 var(--fs); text-transform: uppercase; letter-spacing: .08em; text-decoration: none; transition: transform .15s var(--ease), filter .15s; }
.btn.red { background: var(--red); color: #160204; }
.btn.red:hover:not(:disabled) { filter: brightness(1.1); transform: translateY(-1px); }
.btn:disabled { opacity: .45; cursor: progress; }
.btn.ghost { background: transparent; border: 1px solid currentColor; }
.how { margin: 14px 0 0; font: 400 11px/1.4 var(--fm); color: var(--ink3); }
.cablock { position: absolute; right: clamp(20px, 6vw, 80px); bottom: clamp(64px, 9vh, 110px); display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 12px; background: rgba(16, 15, 13, .85); border: 1px solid var(--line2); border-radius: var(--r); font: 400 12px/1 var(--fm); max-width: 44vw; }
.cablock .lab { color: var(--red); font-weight: 600; }
.cablock code { color: var(--ink2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cablock button { height: 26px; padding: 0 10px; background: var(--s3); border: 1px solid var(--line2); border-radius: 3px; font: 500 11px/1 var(--fm); text-transform: uppercase; }
.cablock a { color: var(--ink2); font-size: 11px; }
.legal { position: absolute; left: clamp(20px, 6vw, 80px); bottom: 22px; margin: 0; font: 400 10.5px/1 var(--fm); color: var(--ink3); letter-spacing: .04em; }

/* ── in the room ── */
#hud { position: fixed; inset: 0; z-index: 30; pointer-events: none; }
.goal { position: absolute; top: 62px; left: 16px; padding: 9px 13px; background: rgba(10, 9, 8, .7); border-left: 2px solid var(--red); font: 500 11.5px/1.3 var(--fm); text-transform: uppercase; letter-spacing: .08em; color: var(--ink); max-width: 80vw; }
.hint { position: absolute; left: 50%; bottom: 30px; transform: translateX(-50%); padding: 7px 11px; background: rgba(0, 0, 0, .6); border: 1px solid var(--line2); border-radius: var(--r); font: 500 11.5px/1 var(--fm); color: var(--ink); white-space: nowrap; }
.hint:empty { display: none; }
.toast { position: absolute; left: 50%; bottom: 78px; transform: translate(-50%, 8px); padding: 11px 16px; max-width: min(520px, 90vw); background: rgba(16, 15, 13, .94); border: 1px solid var(--line2); border-radius: var(--r); font-size: 15px; text-align: center; opacity: 0; transition: opacity .2s, transform .25s var(--ease); }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

.xhair { position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: rgba(236, 230, 218, .85); box-shadow: 0 0 0 1px rgba(0, 0, 0, .6); display: none; transition: transform .12s, background .12s; }
body.locked .xhair { display: block; }
body.aim .xhair { transform: scale(2.2); background: var(--red); }
.lockmsg { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; gap: 8px; justify-items: center; padding: 18px 26px; background: rgba(10, 9, 8, .82); border: 1px solid var(--line2); border-radius: 6px; pointer-events: auto; color: var(--ink); }
.lockmsg b { font: 400 26px/1 var(--fd); text-transform: uppercase; letter-spacing: .03em; }
.lockmsg span { font: 400 11px/1.4 var(--fm); color: var(--ink3); }
body.locked .lockmsg, body.touch .lockmsg { display: none; }

/* ── the trading screen ── */
#term { position: fixed; inset: 48px 0 0 0; z-index: 45; display: grid; grid-template-rows: 58px auto minmax(0, 1fr); background: var(--bg); animation: rise .45s var(--ease); }
.tbar { display: grid; grid-template-columns: auto minmax(0, 1fr) 180px 180px auto; gap: 22px; align-items: center; padding: 0 16px; background: var(--s1); border-bottom: 1px solid var(--line); }
.tk { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.tk b { font: 600 14px/1 var(--fm); }
.tk span:last-child { color: var(--ink3); font-size: 12px; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--up); box-shadow: 0 0 0 3px rgba(46, 189, 133, .18); animation: pulse 1.6s infinite; }
.clock { display: grid; grid-template-columns: auto; justify-items: start; gap: 4px; }
.clock b { font: 600 15px/1 var(--fm); font-variant-numeric: tabular-nums; }
.cbar, .mb { display: block; width: 100%; max-width: 180px; height: 3px; background: var(--line2); border-radius: 2px; overflow: hidden; }
.cbar i, .mb i { display: block; height: 100%; background: var(--ink3); transform-origin: left; transform: scaleX(0); transition: transform .25s linear; }
.clock small { font: 400 10px/1 var(--fm); color: var(--ink3); }
.meter { display: grid; gap: 6px; }
.meter span:first-child { font: 500 10px/1 var(--fm); text-transform: uppercase; letter-spacing: .1em; color: var(--ink3); white-space: nowrap; }
.meter b { color: var(--ink); margin-left: 4px; }
.meter.mood i { background: var(--up); }
.meter.heat i { background: var(--red); }
.mb { height: 5px; max-width: none; }
.tact { display: flex; gap: 8px; }
.tact button { height: 32px; padding: 0 12px; display: inline-flex; align-items: center; gap: 8px; background: var(--s2); border: 1px solid var(--line2); border-radius: var(--r); font: 500 12px/1 var(--fs); color: var(--ink2); }
.tact button:hover { color: var(--ink); border-color: var(--ink3); }
.exposed-banner { display: none; padding: 7px 16px; background: var(--red); color: #160204; font: 400 17px/1 var(--fd); text-transform: uppercase; letter-spacing: .04em; text-align: center; }
body.exposed .exposed-banner { display: block; animation: blink 1s steps(2) infinite; }
.tmain { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 1px; background: var(--line); min-height: 0; }
.tleft { background: var(--bg); display: grid; grid-template-rows: auto minmax(0, 1fr) 176px; min-height: 0; }
.chead { display: flex; align-items: flex-end; gap: 28px; padding: 12px 16px 10px; border-bottom: 1px solid var(--line); }
.chead small, .bh small, .bkv small { display: block; font: 500 10px/1 var(--fm); text-transform: uppercase; letter-spacing: .1em; color: var(--ink3); margin-bottom: 6px; }
.mcbox b { font: 600 28px/1 var(--fm); font-variant-numeric: tabular-nums; letter-spacing: -.02em; margin-right: 10px; }
.chg { font: 600 13px/1 var(--fm); }
.chg.up { color: var(--up); } .chg.dn { color: var(--dn); }
.kv b { font: 500 13.5px/1 var(--fm); font-variant-numeric: tabular-nums; color: var(--ink2); white-space: nowrap; }
.chartwrap { position: relative; min-height: 0; }
#chart { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.tapebox { border-top: 1px solid var(--line); display: grid; grid-template-rows: 24px minmax(0, 1fr); min-height: 0; }
.th, .tr { display: grid; grid-template-columns: 70px 42px minmax(0, 1fr) 84px 70px 60px; gap: 8px; padding: 0 16px; align-items: center; font: 400 11.5px/1 var(--fm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.th { font-size: 9.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--ink3); border-bottom: 1px solid var(--line); }
.tape { overflow: hidden; }
.tr { height: 21px; color: var(--ink2); }
.tr span:nth-child(n+4) { text-align: right; }
.tr .w { overflow: hidden; text-overflow: ellipsis; }
.tr.b span:nth-child(2) { color: var(--up); } .tr.s span:nth-child(2) { color: var(--dn); }
.tr.me { background: rgba(246, 70, 93, .13); color: var(--ink); }
.tr:first-child { animation: flash .6s var(--ease); }
.tright { background: var(--s1); display: grid; grid-template-rows: auto minmax(0, 1fr); min-height: 0; }
.bagcard { display: grid; gap: 11px; padding: 14px 16px 16px; border-bottom: 1px solid var(--line); }
.bh { display: flex; justify-content: space-between; align-items: baseline; }
.bh small { margin: 0; }
.bh span { font: 400 11px/1 var(--fm); color: var(--ink3); }
.bagn { display: flex; align-items: baseline; gap: 8px; }
.bagn b { font: 600 26px/1 var(--fm); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.bagn span { color: var(--ink3); font-size: 12px; }
.bkv { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); }
.bkv div { background: var(--s2); padding: 9px 10px; }
.bkv b { font: 500 14px/1 var(--fm); font-variant-numeric: tabular-nums; white-space: nowrap; }
.sells { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.sell { position: relative; display: grid; gap: 5px; text-align: left; padding: 10px 10px 9px; background: var(--s3); border: 1px solid var(--line2); border-radius: var(--r); user-select: none; touch-action: none; transition: background .12s, border-color .12s; }
.sell span { font-weight: 600; font-size: 13.5px; }
.sell small { font: 500 11px/1 var(--fm); color: var(--dn); }
.sell kbd { position: absolute; top: 8px; right: 8px; }
.sell:hover { border-color: var(--ink3); }
.sell.held, .sell:active { background: rgba(246, 70, 93, .18); border-color: var(--dn); }
.nuke { position: relative; height: 78px; border: 0; border-radius: 6px; overflow: hidden; display: grid; place-content: center; gap: 4px; text-align: center; color: #160204;
  background: radial-gradient(ellipse at 50% 30%, #ff5560, #c4121f 70%, #8d0b15); box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 59, 70, .4); perspective: 600px; }
.nuke .go { font: 400 32px/1 var(--fd); text-transform: uppercase; letter-spacing: .04em; }
.nuke small { font: 500 11px/1.2 var(--fm); color: rgba(22, 2, 4, .8); }
.nuke kbd { position: absolute; top: 8px; right: 8px; color: rgba(22, 2, 4, .7); border-color: rgba(22, 2, 4, .3); background: rgba(255, 255, 255, .12); }
.nuke .cover { position: absolute; inset: 0; z-index: 2; display: grid; place-items: center; font: 400 20px/1 var(--fd); text-transform: uppercase; letter-spacing: .06em; color: var(--ink);
  background: repeating-linear-gradient(-45deg, #2a0d10 0 12px, #181513 12px 24px); border: 1px solid var(--line2); border-radius: 6px; transform-origin: top; transition: transform .38s var(--ease); }
.nuke.armed .cover, .nuke.fired .cover { transform: rotateX(-104deg); }
.nuke.armed { animation: armed .5s infinite alternate; }
.nuke.fired { filter: brightness(1.6); }
.phone { display: grid; grid-template-rows: auto auto auto auto minmax(0, 1fr); gap: 9px; padding: 13px 16px 0; min-height: 0; }
.ph, .lh { display: flex; justify-content: space-between; align-items: baseline; }
.ph > b, .lh > b { font: 600 10.5px/1 var(--fm); text-transform: uppercase; letter-spacing: .12em; }
.ph .stats, .lh span { font: 400 11px/1 var(--fm); color: var(--ink3); }
.ph .stats b, .lh span b { color: var(--ink); font-weight: 500; }
.lines { display: grid; gap: 4px; }
.line { position: relative; overflow: hidden; display: grid; grid-template-columns: 8px 46px minmax(0, 1fr) auto; align-items: center; gap: 9px; width: 100%; min-height: 40px; padding: 6px 10px; text-align: left; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r); }
.line .led { width: 8px; height: 8px; border-radius: 50%; background: #2a2622; }
.line .ln { font: 500 10px/1 var(--fm); color: var(--ink3); text-transform: uppercase; }
.line .who { min-width: 0; }
.line .who b { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line .who i { display: block; font-style: normal; font-size: 11px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.line .ans { font: 600 10.5px/1 var(--fm); text-transform: uppercase; letter-spacing: .06em; padding: 6px 9px; border-radius: 3px; background: var(--up); color: #03140c; }
.line .tm { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--up); transform-origin: left; }
.line.ring { border-color: rgba(46, 189, 133, .45); animation: ringbg 1s infinite; }
.line.ring .led { background: var(--up); animation: blink .5s steps(2) infinite; }
button.line:disabled { cursor: default; }
button.line:disabled .ans { background: var(--s4); color: var(--ink3); }
.call { min-height: 132px; padding: 11px 12px; background: var(--s2); border: 1px solid var(--line); border-radius: var(--r); }
.call.idle { display: grid; place-items: center; }
.call.idle p { margin: 0; text-align: center; color: var(--ink3); font-size: 12.5px; max-width: 30ch; }
.call.on { border-color: rgba(255, 59, 70, .35); }
.ch { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ch .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); animation: pulse 1.2s infinite; flex: none; }
.ch b { font-size: 14px; white-space: nowrap; }
.ch i { flex: 1; font-style: normal; font-size: 11.5px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hang { flex: none; height: 24px; padding: 0 8px; background: transparent; border: 1px solid rgba(255, 59, 70, .5); border-radius: 3px; font: 500 10.5px/1 var(--fm); text-transform: uppercase; color: var(--red); }
.call .them { margin: 9px 0; font-size: 15px; line-height: 1.4; }
.call .you { margin: 9px 0 0; font-size: 12.5px; color: var(--ink3); }
.call .won { margin: 0; font: 600 12px/1 var(--fm); color: var(--up); }
.opts { display: grid; gap: 5px; }
.opts button { display: flex; align-items: center; gap: 9px; text-align: left; padding: 8px 10px; background: var(--s3); border: 1px solid var(--line2); border-radius: var(--r); font-size: 13px; line-height: 1.3; animation: rise .3s var(--ease) both; }
.opts button:nth-child(2) { animation-delay: .05s; } .opts button:nth-child(3) { animation-delay: .1s; }
.opts button:hover { border-color: var(--ink3); background: var(--s4); }
.leads { overflow: auto; min-height: 0; padding-bottom: 12px; }
.lead { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.lead .who b { display: block; font-size: 13px; }
.lead .who i { display: block; font-style: normal; font-size: 11px; color: var(--ink3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead button { height: 28px; padding: 0 12px; background: transparent; border: 1px solid var(--line2); border-radius: 3px; font: 500 10.5px/1 var(--fm); text-transform: uppercase; letter-spacing: .06em; }
.lead button:hover:not(:disabled) { border-color: var(--up); color: var(--up); }
.lead button:disabled { opacity: .35; cursor: default; }

/* the guide */
.coach { position: fixed; left: 0; top: 0; z-index: 80; width: 290px; padding: 12px 14px 10px; background: var(--ink); color: #14100c; border-radius: 6px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); pointer-events: auto; transition: transform .28s var(--ease); }
.coach.pop { animation: pop .35s var(--ease); }
.coach::after { content: ''; position: absolute; width: 12px; height: 12px; background: var(--ink); transform: rotate(45deg); }
.coach[data-side="right"]::after { right: -6px; top: calc(50% - 6px); }
.coach[data-side="top"]::after { top: -6px; left: calc(50% - 6px); }
.coach[data-side="bottom"]::after { bottom: -6px; left: calc(50% - 6px); }
.cstep { font: 600 10px/1 var(--fm); text-transform: uppercase; letter-spacing: .12em; color: var(--red2); }
.coach p { margin: 6px 0 8px; font-size: 14px; line-height: 1.38; }
.coach p b { font-weight: 700; }
.coach button { padding: 0; background: none; border: 0; font: 500 10.5px/1 var(--fm); text-transform: uppercase; letter-spacing: .08em; color: rgba(20, 16, 12, .5); text-decoration: underline; }
.coach-on { position: relative; z-index: 2; outline: 2px solid var(--ink) !important; outline-offset: 3px; animation: coachring 1.1s infinite; }
@keyframes coachring { 50% { outline-color: var(--red); } }
@keyframes pop { from { opacity: 0; } }

/* ── the certificate ── */
#end { position: fixed; inset: 48px 0 0 0; z-index: 60; display: grid; place-items: center; padding: 16px; background: rgba(5, 4, 4, .82); opacity: 0; transition: opacity .5s var(--ease); overflow: auto; }
#end.on { opacity: 1; }
.cert { position: relative; width: min(720px, 100%); background: #efe9dc; color: #16120e; padding: clamp(22px, 4vw, 44px); box-shadow: inset 0 0 0 10px #efe9dc, inset 0 0 0 11px #bdb29a, 0 30px 90px rgba(0, 0, 0, .65); transform: translateY(14px) rotate(-.6deg); transition: transform .6s var(--ease); }
#end.on .cert { transform: none; }
.ctop { display: flex; justify-content: space-between; gap: 10px; font: 500 10.5px/1 var(--fm); text-transform: uppercase; letter-spacing: .14em; color: #6d6250; }
.cert h2 { margin: 20px 0 12px; font: 400 clamp(40px, 7vw, 74px)/.9 var(--fd); text-transform: uppercase; letter-spacing: -.005em; max-width: 12ch; }
.cert h2 s { text-decoration-color: #c4161c; text-decoration-thickness: 5px; }
.stamp { position: absolute; right: 7%; top: 16%; padding: 4px 16px; font: 400 clamp(36px, 6vw, 58px)/1 var(--fd); letter-spacing: .05em; color: #c4161c; border: 5px solid #c4161c; border-radius: 6px; opacity: 0; transform: rotate(-14deg) scale(2.6); mix-blend-mode: multiply; pointer-events: none; }
.stamp.hit { animation: stamp .32s cubic-bezier(.5, 0, .6, 1.4) forwards; }
.cline { margin: 0 0 16px; font-size: 16px; line-height: 1.45; max-width: 52ch; }
.rank { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid #c9bfa9; border-bottom: 1px solid #c9bfa9; margin-bottom: 14px; }
.rank small { font: 500 10px/1 var(--fm); text-transform: uppercase; letter-spacing: .14em; color: #6d6250; }
.rank b { font: 400 28px/1 var(--fd); text-transform: uppercase; color: #c4161c; letter-spacing: .02em; }
.rank span { font-size: 14px; color: #3b3328; }
.stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0 26px; margin: 0 0 14px; }
.stats div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 7px 0; border-bottom: 1px dashed #cfc5ae; }
.stats dt { font-size: 13px; color: #5b513f; }
.stats dd { margin: 0; font: 600 13px/1.2 var(--fm); text-align: right; font-variant-numeric: tabular-nums; }
.real { margin: 0 0 18px; font: 400 11px/1.4 var(--fm); color: #6d6250; }
.acts { display: flex; flex-wrap: wrap; gap: 10px; }
.cert .btn.ghost { color: #16120e; }
.sig { position: absolute; right: clamp(22px, 4vw, 44px); bottom: clamp(18px, 3vw, 34px); text-align: center; }
.sig span { display: block; font: italic 26px/1 'Brush Script MT', 'Segoe Script', cursive; color: #2a2118; border-bottom: 1px solid #8b7f68; padding: 0 10px 4px; }
.sig small { font: 400 9.5px/1 var(--fm); text-transform: uppercase; letter-spacing: .12em; color: #6d6250; }

body.shake #term { animation: shake .9s cubic-bezier(.36, .07, .19, .97); }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes blink { 50% { opacity: .25; } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes flash { from { background: rgba(236, 230, 218, .12); } }
@keyframes ringbg { 50% { background: rgba(46, 189, 133, .1); } }
@keyframes armed { to { box-shadow: inset 0 -4px 0 rgba(0, 0, 0, .35), 0 0 0 3px rgba(255, 59, 70, .8), 0 0 30px rgba(255, 59, 70, .6); } }
@keyframes stamp { to { opacity: .88; transform: rotate(-14deg) scale(1); } }
@keyframes shake { 10%, 90% { transform: translate(-2px, 1px); } 20%, 80% { transform: translate(4px, -2px); } 30%, 50%, 70% { transform: translate(-7px, 3px); } 40%, 60% { transform: translate(7px, -3px); } }

@media (max-width: 1180px) {
  .tbar { grid-template-columns: auto minmax(0, 1fr) 150px 150px auto; gap: 14px; }
  .tmain { grid-template-columns: minmax(0, 1fr) 360px; }
  .hide-s { display: none; }
}
@media (max-width: 900px) {
  #term { overflow: auto; display: block; }
  .tbar { grid-template-columns: 1fr auto; grid-auto-rows: auto; gap: 10px 14px; padding: 10px 14px; }
  .tk span:last-child { display: none; }
  .clock small { display: none; }
  .meter { grid-column: span 1; }
  .tact { grid-column: 2; grid-row: 1; }
  .tmain { display: block; }
  .tleft { grid-template-rows: auto 44vh 150px; }
  .tright { display: block; }
  .phone { padding-bottom: 20px; }
  .leads { overflow: visible; }
  .th, .tr { grid-template-columns: 62px 38px minmax(0, 1fr) 70px 56px; }
  .th span:nth-child(6), .tr span:nth-child(6) { display: none; }
  .chead { gap: 18px; flex-wrap: wrap; }
  #intro { padding-bottom: 130px; }
  .facts { grid-template-columns: 1fr; }
  .cablock { left: 20px; right: 20px; bottom: 54px; max-width: none; }
  .tact button kbd { display: none; }
  .stats { grid-template-columns: 1fr; }
  .sig { position: static; margin-top: 18px; text-align: left; }
  .stamp { top: 9%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }
