:root { --pad: clamp(18px, 6vw, 88px); --sun: #f26a21; --page: #0b1623; --ink: #eef4f6; --ink-2: #a8bcc6; --card: rgba(8,17,28,.6); --line: rgba(255,255,255,.1); }
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 400 16px/1.5 Onest, system-ui, sans-serif; color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--sun); outline-offset: 3px; }

.stage { position: relative; }
.hero { position: relative; overflow: hidden; min-height: 100svh; padding-bottom: 46svh; background: #06101c; }
#scene { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; -webkit-tap-highlight-color: transparent; user-select: none; -webkit-user-select: none; }
.top, .copy { position: relative; z-index: 2; pointer-events: none; }
.top > *, .copy > * { pointer-events: auto; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: clamp(14px, 2.6vw, 26px) var(--pad) 0; }
.logo { height: 24px; width: auto; display: block; color: var(--ink); }
.langs { display: flex; gap: 2px; padding: 3px; border-radius: 999px; background: rgba(255,255,255,.08); }
.langs button { font: inherit; font-size: 13px; font-weight: 500; color: var(--ink-2); background: none; border: 0; padding: 5px 10px; border-radius: 999px; cursor: pointer; }
.langs button[aria-pressed="true"] { background: var(--ink); color: var(--page); }

.copy { padding: clamp(10px, 2.6vh, 36px) var(--pad) 0; max-width: 48rem; transition: opacity .9s, transform .9s; text-shadow: 0 1px 14px rgba(4,10,18,.6); }
h1 { font-weight: 600; font-size: clamp(24px, min(2.4vw, 4.4vh), 36px); line-height: 1.12; letter-spacing: -0.025em; margin: 0 0 12px; text-wrap: pretty; }
.lead { font-size: clamp(15px, 1.1vw, 17px); color: #bccdd5; max-width: 38rem; margin: 0 0 18px; text-wrap: pretty; white-space: pre-line; }
.launch { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; }
.beta { display: inline-flex; align-items: center; gap: 10px; padding: 11px 20px; border-radius: 999px; background: var(--sun); color: #fff; text-decoration: none; font-weight: 600; text-shadow: none; box-shadow: 0 0 0 0 rgba(242,106,33,.5); animation: ring 2.8s ease-out infinite; }
.beta:hover { background: #ff7a33; }
.beta svg { width: 18px; height: 18px; }
.when { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; font-size: 15px; }
.when::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #6ff0c8; box-shadow: 0 0 10px #6ff0c8; }
.note { margin: 8px 0 0; font-size: 13px; color: var(--ink-2); }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(242,106,33,.55); } 70%, 100% { box-shadow: 0 0 0 14px rgba(242,106,33,0); } }

.board { position: absolute; z-index: 3; top: clamp(70px, 10vh, 104px); right: var(--pad); width: 320px; padding: 12px 14px 10px; border-radius: 16px; background: var(--card); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border: 1px solid var(--line); box-shadow: 0 18px 48px -20px rgba(0,0,0,.6); font-variant-numeric: tabular-nums; transition: opacity .9s; overflow: hidden; }
.board-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.board-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14px; }
.board-title::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--sun); animation: pulse 1.6s ease-in-out infinite; }
.snd { margin-left: auto; border: 0; background: none; color: var(--ink-2); padding: 4px; cursor: pointer; display: grid; }
.snd svg { width: 17px; height: 17px; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 8px; }
.tabs button { font: inherit; font-size: 11.5px; font-weight: 500; line-height: 1; padding: 5px 8px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--ink-2); cursor: pointer; }
.tabs button[aria-pressed="true"] { background: rgba(242,106,33,.2); border-color: rgba(242,106,33,.7); color: var(--ink); }
.rows { list-style: none; margin: 0; padding: 0; min-height: 170px; }
.rows li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; align-items: baseline; padding: 4px 8px; margin: 0 -8px; border-radius: 7px; font-size: 13.5px; }
.rows li + li { border-top: 1px solid var(--line); }
.rows li.hd { font-size: 10px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-2); padding-top: 0; padding-bottom: 3px; }
.rows li.hd span:nth-child(n+3), .rows .x, .rows .t { text-align: right; }
.rows .pl { color: var(--ink-2); font-size: 12px; }
.rows .nm { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rows .x { color: var(--ink-2); font-size: 12.5px; }
.rows .t { font-weight: 500; }
.rows .mp .t, .rows .mp .pl { color: #ff9b6b; }
.rows .mine .nm::after { content: attr(data-mine); margin-left: 6px; padding: 1px 6px; border-radius: 6px; background: var(--sun); color: #fff; font-size: 10px; font-weight: 600; vertical-align: 1px; }
.rows .fresh { animation: fresh 2.4s ease-out; }
.board-last { margin: 6px 0 0; font-size: 12px; color: var(--ink-2); min-height: 1.5em; }
@keyframes fresh { from { background: rgba(242,106,33,.35); } to { background: transparent; } }
@keyframes pulse { 50% { opacity: .35; } }
body.intro .copy { opacity: 0; transform: translateY(8px); }
body.intro .board { opacity: 0; }

.features { padding: clamp(40px, 6vw, 76px) var(--pad); background: #0e1c2b; }
.features h2 { font-weight: 600; font-size: clamp(22px, 2.2vw, 30px); letter-spacing: -0.02em; line-height: 1.2; margin: 0 0 clamp(22px, 3vw, 38px); max-width: 26ch; }
.grid { display: grid; gap: 28px 36px; grid-template-columns: repeat(4, 1fr); }
.grid svg { width: 28px; height: 28px; color: var(--sun); margin-bottom: 10px; }
.grid h3 { font-size: 17px; font-weight: 600; line-height: 1.3; margin: 0 0 8px; letter-spacing: -0.01em; text-wrap: balance; }
.grid p { margin: 0; color: var(--ink-2); font-size: 15px; text-wrap: pretty; }
.cta2 { margin-top: clamp(28px, 4vw, 44px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
footer { background: #070f18; color: #c9d6dc; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; justify-content: space-between; padding: 26px var(--pad); font-size: 14px; }
footer .logo { height: 20px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer a { text-decoration: none; border-bottom: 1px solid rgba(255,255,255,.3); }

@media (max-width: 1180px) {
  .board { position: relative; top: auto; right: auto; width: auto; max-width: 460px; margin: 0 var(--pad) 28px; }
  .stage { padding-bottom: 1px; background: #0a1622; }
}
@media (min-width: 1181px) {
  .board { top: clamp(64px, 9vh, 96px); padding-top: 10px; }
  .rows { min-height: 0; }
  .rows li:nth-child(n+6):not(.fresh) { display: none; }
  .board-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (min-width: 1181px) { .copy { max-width: min(calc(56rem + 2 * var(--pad)), calc(100% - 344px - var(--pad))); } .lead { max-width: 44rem; } }
@media (max-width: 1000px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 700px) {
  .grid { grid-template-columns: 1fr; gap: 22px; }
  .when { font-size: 14px; }
  .board { margin-top: 16px; }
}
.found { position: absolute; z-index: 3; left: var(--pad); bottom: 14px; font-size: 12px; font-weight: 500; padding: 5px 11px; border-radius: 999px; background: rgba(8,17,28,.62); border: 1px solid var(--line); color: var(--ink-2); cursor: pointer; font-family: inherit; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); transition: background .3s, color .3s, opacity .9s; }
.found.new { background: var(--sun); color: #fff; border-color: transparent; }
body.intro .found { opacity: 0; }
.found:hover { background: rgba(14,28,42,.8); color: var(--ink); }
.fpanel { position: absolute; z-index: 4; left: var(--pad); bottom: 52px; width: min(380px, calc(100% - 2 * var(--pad))); max-height: min(56vh, 420px); overflow: auto; padding: 12px 14px; border-radius: 14px; background: rgba(8,17,28,.9); border: 1px solid var(--line); color: var(--ink-2); font-size: 12px; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.fpanel[hidden] { display: none; }
.fp-h { font-weight: 700; font-size: 13px; color: var(--ink); margin-bottom: 8px; }
.fpanel ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 5px; }
.play { position: absolute; z-index: 3; left: var(--pad); right: var(--pad); bottom: 14px; display: flex; align-items: center; gap: 10px; pointer-events: none; }
.play > * { pointer-events: auto; }
.play .found { position: static; flex: none; }
.found.new { animation: pop .5s ease-out; }
@keyframes pop { 40% { transform: scale(1.12); } }
.fpanel .fp-tip { margin: 6px 0 0; font-size: 11.5px; color: var(--ink-2); }
.fp-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.fp-reset { font: inherit; font-size: 11.5px; font-weight: 500; color: var(--ink-2); background: none; border: 1px solid var(--line); border-radius: 999px; padding: 3px 10px; cursor: pointer; }
.fp-reset:hover, .fp-reset.armed { color: #fff; border-color: rgba(242,106,33,.7); background: rgba(242,106,33,.2); }
.fpanel .fp-sub { margin: 12px 0 6px; color: var(--ink-2); }
.fp-got button { font: inherit; padding: 3px 10px; border-radius: 999px; border: 0; background: rgba(111,240,200,.13); color: #bff5e4; cursor: pointer; }
.fp-got button:hover { background: rgba(111,240,200,.28); color: #fff; }
.fp-got button::before { content: "↻ "; opacity: .6; }
.fpanel .fp-hints { display: block; }
.fp-hints li { padding: 2px 0 2px 16px; position: relative; }
.fp-hints li::before { content: "?"; position: absolute; left: 2px; color: var(--sun); font-weight: 700; }
.fpanel p { margin: 10px 0 0; }
.fp-left { color: var(--ink); font-weight: 600; }
.net { display: none; font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: 999px; background: rgba(255,90,70,.2); color: #ff9b8b; }
.net.on { display: inline-block; }
.net.ok { background: rgba(111,240,200,.16); color: #6ff0c8; }
.shot * { transition: none !important; }
@media (prefers-reduced-motion: reduce) { .board-title::before, .rows .fresh, .beta { animation: none; } }
