@font-face { font-family: "Unbounded"; src: url("/assets/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/assets/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "JBM"; src: url("/assets/fonts/jbm.woff2") format("woff2"); font-weight: 500; font-display: swap; }

:root {
  --bg: #0a1226; --bg2: #0f1a36; --panel: #121f42; --line: rgba(239, 227, 200, .12);
  --navy: #1a2858; --cream: #efe3c8; --cream2: #e4d4b0; --ink: #16204a;
  --teal: #2ee6c9; --teal2: #7cffe9; --gold: #d9a845; --gold2: #f2cd77;
  --tx: #eef1f8; --mu: #a8b3cf; --up: #3fe0a0; --dn: #ff7a85;
  --disp: "Unbounded", "Arial Black", system-ui, sans-serif;
  --body: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JBM", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--tx); font: 16px/1.6 var(--body); overflow-x: clip; }
img { max-width: 100%; display: block; }
a { color: inherit; }
[hidden] { display: none !important; }
code { font-family: var(--mono); font-size: .86em; }
.wrap { max-width: 1160px; margin: 0 auto; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); }
.slim { max-width: 760px; }
h1, h2, h3 { font-family: var(--disp); line-height: 1.12; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h2 { font-size: clamp(1.5rem, 3.4vw, 2.3rem); font-weight: 700; }

/* nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(10, 18, 38, .82); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.nav-in { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 1.1rem var(--disp); }
.brand img { border-radius: 50%; border: 2px solid var(--cream); }
.brand.sm { font-size: .95rem; gap: 8px; }
.brand.sm img { border-width: 1.5px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { text-decoration: none; color: var(--mu); font-weight: 600; font-size: .94rem; }
.links a:hover { color: var(--tx); }
.live { display: inline-flex; align-items: center; gap: 8px; padding: 7px 13px; border-radius: 99px; border: 1px solid var(--line); font: 500 .76rem var(--mono); color: var(--mu); white-space: nowrap; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--mu); }
.live.on { color: var(--teal2); border-color: rgba(46, 230, 201, .35); }
.live.on i { background: var(--teal); box-shadow: 0 0 0 0 rgba(46, 230, 201, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px rgba(46, 230, 201, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 201, 0); } }

/* buttons */
.btns { display: flex; flex-wrap: wrap; gap: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 0 24px; border-radius: 14px; background: var(--gold); color: #241800; font: 700 .98rem var(--body); text-decoration: none; border: 0; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.btn:hover { background: var(--gold2); }
.btn.ghost { background: transparent; color: var(--tx); border: 1.5px solid rgba(239, 227, 200, .35); box-shadow: none; }
.btn.ghost:hover { border-color: var(--cream); }
.btn.off { background: rgba(217, 168, 69, .2); color: var(--gold2); cursor: default; box-shadow: none; }

/* hero */
.hero { position: relative; overflow: hidden; background: radial-gradient(60% 80% at 78% 45%, #2b3756 0%, #18233f 38%, var(--bg) 75%); }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; gap: 30px; min-height: 540px; }
.hero-copy { padding-block: 60px; min-width: 0; }
.tag { display: inline-block; margin: 0 0 18px; padding: 6px 12px; border-radius: 8px; background: var(--cream); color: var(--ink); font: 600 .74rem var(--mono); letter-spacing: .1em; text-transform: uppercase; }
h1 { font-size: clamp(2.05rem, 5vw, 3.6rem); font-weight: 800; }
h1 em { font-style: normal; color: var(--teal); text-shadow: 0 0 34px rgba(46, 230, 201, .35); }
.lead { color: var(--mu); font-size: 1.1rem; max-width: 34em; margin: 20px 0 28px; }
.bot { align-self: end; justify-self: center; width: min(470px, 100%); }
.bot img { width: 100%; height: auto; -webkit-mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); mask-image: radial-gradient(closest-side, #000 72%, transparent 100%); animation: bob 5s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-8px); } }

/* radar console */
.console { padding-block: 72px; background: linear-gradient(180deg, var(--bg), var(--bg2)); }
.c-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 10px 30px; margin-bottom: 28px; }
.c-head p { margin: 0; color: var(--mu); max-width: 36em; }
.c-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 28px; align-items: start; }
.scope-box { min-width: 0; }
.scope { position: relative; width: 100%; max-width: 560px; aspect-ratio: 1; margin: 0 auto; border-radius: 50%; background: radial-gradient(circle, #0d3a44 0%, #0b2433 45%, #081526 100%); border: 10px solid var(--cream); box-shadow: 0 0 0 3px var(--navy), 0 0 0 7px rgba(239, 227, 200, .1), 0 0 80px rgba(46, 230, 201, .18), inset 0 0 60px rgba(0, 0, 0, .6); overflow: hidden; }
.scope canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.scope-c { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 13%; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 2px solid var(--teal); box-shadow: 0 0 22px rgba(46, 230, 201, .5); }
.scope-c img { width: 100%; height: 100%; object-fit: cover; }
.blips { position: absolute; inset: 0; }
.blip { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; background: none; border: 0; cursor: pointer; color: var(--tx); font: 600 .7rem var(--mono); }
.blip i { width: 12px; height: 12px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 10px var(--teal); transition: transform .4s, box-shadow .4s; }
.blip span { padding: 1px 6px; border-radius: 5px; background: rgba(8, 21, 38, .75); white-space: nowrap; max-width: 9em; overflow: hidden; text-overflow: ellipsis; }
.blip.strong i { width: 16px; height: 16px; background: var(--gold2); box-shadow: 0 0 14px var(--gold); }
.blip.quiet i { width: 8px; height: 8px; background: #6c7a9c; box-shadow: none; }
.blip.quiet span { color: var(--mu); opacity: .8; }
.blip.hit i { transform: scale(1.6); box-shadow: 0 0 22px var(--teal2); }
.blip.strong.hit i { box-shadow: 0 0 26px var(--gold2); }
.blip.sel span { background: var(--cream); color: var(--ink); }
.blip:focus-visible { outline: 2px solid var(--teal2); border-radius: 8px; }
.legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 18px; margin-top: 18px; color: var(--mu); font-size: .86rem; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.k { width: 10px; height: 10px; border-radius: 50%; }
.k.s { background: var(--gold2); } .k.b { background: var(--teal); } .k.q { background: #6c7a9c; }

.lens { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 22px; padding: 24px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.lens-top { display: flex; align-items: center; gap: 14px; }
.lens-top > div { min-width: 0; flex: 1; }
.lens-ring { flex: none; width: 46px; height: 46px; border-radius: 50%; border: 5px solid var(--gold); background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, .35), rgba(124, 255, 233, .12) 60%); position: relative; }
.lens-ring::after { content: ""; position: absolute; width: 6px; height: 18px; background: var(--gold); border-radius: 3px; right: -8px; bottom: -14px; transform: rotate(-40deg); }
.l-k { margin: 0; font: 500 .72rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--teal); }
.lens h3 { font-size: 1.35rem; font-weight: 700; overflow-wrap: anywhere; }
.lens h3 small { font: 600 .9rem var(--body); color: var(--mu); }
.pill { flex: none; padding: 5px 11px; border-radius: 99px; font: 700 .76rem var(--body); }
.pill.strong { background: var(--gold); color: #241800; }
.pill.building { background: rgba(46, 230, 201, .16); color: var(--teal2); }
.pill.quiet { background: rgba(168, 179, 207, .14); color: var(--mu); }
.l-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 20px 0 14px; }
.l-stats div { background: rgba(10, 18, 38, .55); border-radius: 12px; padding: 10px 12px; min-width: 0; }
.l-stats span { display: block; font-size: .74rem; color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.l-stats b { font: 600 1.05rem var(--mono); }
.up { color: var(--up); } .dn { color: var(--dn); }
.l-why { margin: 0 0 14px; color: var(--tx); min-height: 3.2em; }
.l-wal { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.l-wal li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 9px 12px; border-radius: 10px; background: rgba(239, 227, 200, .05); font-size: .88rem; }
.l-wal code { color: var(--cream); }
.tg { color: var(--mu); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tg.sm { color: var(--gold2); } .tg.nt { color: var(--teal2); }
.l-wal b { font: 600 .88rem var(--mono); }
.l-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; color: var(--mu); font: 500 .82rem var(--mono); }
.l-nav button { width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--tx); font-size: 1.1rem; cursor: pointer; }
.l-nav button:hover { border-color: var(--teal); }

/* case log: the detective's notebook */
.paper { padding-block: 72px; background: var(--cream); color: var(--ink); background-image: repeating-linear-gradient(180deg, transparent 0 35px, rgba(22, 32, 74, .07) 35px 36px); }
.p-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 18px; margin-bottom: 24px; }
.p-head p { margin: 0; color: #4a5378; }
.entries { list-style: none; margin: 0; padding: 0; border-left: 3px solid var(--gold); }
.entries li { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 14px 0 14px 20px; border-bottom: 1px dashed rgba(22, 32, 74, .2); }
.entries li.empty { display: block; color: #4a5378; }
.entries time { font: 500 .8rem var(--mono); color: #6a6f8a; }
.entries p { margin: 0; overflow-wrap: anywhere; }
.entries code { background: rgba(22, 32, 74, .08); padding: 1px 6px; border-radius: 5px; }
.st { font: 700 .72rem var(--body); padding: 3px 9px; border-radius: 99px; background: var(--ink); color: var(--teal2); }
.st.strong { background: var(--gold); color: #241800; }

/* clues */
.reads { padding-block: 80px; }
.clues { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 30px; }
.clue { position: relative; padding: 26px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.clue .n { display: block; font: 800 2.6rem var(--disp); color: transparent; -webkit-text-stroke: 1.5px var(--teal); margin-bottom: 10px; }
.clue h3 { font-size: 1.1rem; margin-bottom: 8px; }
.clue p { margin: 0; color: var(--mu); }

/* token */
.token { padding-block: 70px; background: var(--navy); }
.tok { display: flex; align-items: center; gap: 30px; }
.tok > img { border-radius: 50%; border: 4px solid var(--cream); flex: none; }
.tok-c { min-width: 0; }
.tok-c p { color: var(--mu); margin: 8px 0 16px; }
.ca { display: flex; gap: 8px; align-items: center; margin-bottom: 18px; max-width: 560px; }
.ca code { flex: 1; min-width: 0; padding: 12px 14px; border-radius: 12px; background: rgba(10, 18, 38, .6); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--mu); }
.ca.on code { color: var(--cream); }
.ca button { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--tx); font: 600 .9rem var(--body); cursor: pointer; }
.ca button:disabled { opacity: .45; cursor: default; }

/* faq + foot */
.faq { padding-block: 70px; }
.faq h2 { margin-bottom: 20px; }
details { border-bottom: 1px solid var(--line); padding: 16px 0; }
summary { cursor: pointer; font-weight: 700; font-size: 1.04rem; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--teal); font: 600 1.2rem var(--mono); }
details[open] summary::after { content: "–"; }
details p { color: var(--mu); margin: 10px 0 0; }
.foot { border-top: 1px solid var(--line); padding-block: 26px calc(26px + env(safe-area-inset-bottom, 0px)); color: var(--mu); font-size: .88rem; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }

/* tablets */
@media (max-width: 900px) {
  .links { display: none; }
  .live { margin-left: auto; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; gap: 0; }
  .hero-copy { padding-block: 34px 0; text-align: center; }
  .hero-copy .btns { justify-content: center; }
  .lead { margin-inline: auto; }
  .bot { width: min(300px, 74vw); margin-top: 6px; }
  .c-grid { grid-template-columns: 1fr; }
  .clues { grid-template-columns: 1fr; }
}
/* phones */
@media (max-width: 560px) {
  .nav-in { height: 56px; gap: 10px; }
  .live { padding: 6px 10px; font-size: .7rem; }
  h1 { font-size: clamp(1.75rem, 8.4vw, 2.3rem); }
  .lead { font-size: 1rem; margin: 14px auto 22px; }
  .btns .btn { flex: 1 1 auto; }
  .console, .paper, .reads, .token, .faq { padding-block: 48px; }
  .c-head { margin-bottom: 18px; }
  .scope { border-width: 7px; }
  .blip { padding: 4px; font-size: .62rem; }
  .blip span { max-width: 6.5em; padding: 1px 4px; }
  .lens { padding: 18px; border-radius: 18px; }
  .l-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lens h3 { font-size: 1.15rem; }
  .l-wal li { grid-template-columns: auto minmax(0, 1fr); }
  .l-wal li b { grid-column: 1 / -1; justify-self: start; margin-top: -4px; }
  .entries li { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 10px; padding-left: 14px; }
  .entries time { grid-column: 1 / -1; }
  .tok { flex-direction: column; align-items: flex-start; gap: 18px; }
  .tok > img { width: 76px; height: 76px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) { .bot img, .live.on i { animation: none; } html { scroll-behavior: auto; } }
