/* Verity: the site's design system. Dark, quiet surfaces; the two trained models are the only saturated colours
   (validated pair for marks: orange #d95926 = unguarded, aqua #199e70 = Verity, on the #11131a chart surface). */
:root {
  color-scheme: dark;
  --bg: #06070a; --surface: rgba(255, 255, 255, .035); --surface-2: rgba(255, 255, 255, .06); --chart: #11131a;
  --line: rgba(255, 255, 255, .08); --line-2: rgba(255, 255, 255, .14);
  --text: #f3f5f9; --text-2: #b6bdcb; --muted: #7d8697;
  --accent: #8d9bff; --accent-2: #5fe3ff;
  --verity: #199e70; --verity-ink: #6be3b4; --verity-bg: rgba(25, 158, 112, .14);
  --plain: #d95926; --plain-ink: #ff9b70; --plain-bg: rgba(217, 89, 38, .14);
  --base: #6f7787;
  --sq-light: #d9dee7; --sq-dark: #7d8aa3;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --pieces: "Noto Sans Symbols 2", "Segoe UI Symbol", "DejaVu Sans", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh; overflow-x: hidden; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; letter-spacing: -.03em; text-wrap: balance; font-weight: 650; }
p { margin: 0; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.mono { font-family: var(--mono); font-size: .92em; }
.muted { color: var(--muted); } .soft { color: var(--text-2); }

/* page transitions between the separate pages (Chrome, Edge, Safari 18.2+; others just navigate) */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: 260ms var(--ease) both vt-out; }
::view-transition-new(root) { animation: 460ms var(--ease) both vt-in; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-10px) scale(.99); filter: blur(6px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px) scale(1.01); filter: blur(8px); } }

/* ambient background: slow aurora and a faint grid that fades out */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient i { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; opacity: .5; animation: drift 28s ease-in-out infinite alternate; will-change: transform; }
.ambient i:nth-child(1) { background: radial-gradient(closest-side, rgba(84, 101, 255, .55), transparent 70%); left: -18vmax; top: -38vmax; }
.ambient i:nth-child(2) { background: radial-gradient(closest-side, rgba(0, 196, 160, .30), transparent 70%); right: -26vmax; top: -10vmax; animation-duration: 34s; }
.ambient i:nth-child(3) { background: radial-gradient(closest-side, rgba(150, 70, 255, .30), transparent 70%); left: 18vmax; top: 40vmax; animation-duration: 40s; }
.ambient::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px); background-size: 72px 72px; mask-image: radial-gradient(ellipse 70% 55% at 50% 0%, #000 20%, transparent 80%); }
@keyframes drift { to { transform: translate3d(7vmax, 5vmax, 0) scale(1.12); } }

/* the navigation: one floating bar, the five pages as numbered steps */
.nav { position: sticky; top: 14px; z-index: 50; width: min(1240px, 100% - 24px); margin: 14px auto 0; display: flex; align-items: center; gap: 12px; padding: 7px 7px 7px 16px; border-radius: 999px; background: rgba(13, 15, 21, .72); border: 1px solid var(--line); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); box-shadow: 0 10px 40px rgba(0, 0, 0, .35); view-transition-name: nav; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; flex: none; }
.brand svg { width: 26px; height: 26px; }
.steps { display: flex; gap: 2px; margin: 0 auto; overflow-x: auto; scrollbar-width: none; }
.steps::-webkit-scrollbar { display: none; }
.steps a { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; color: var(--text-2); font-size: 13.5px; font-weight: 550; white-space: nowrap; transition: background .2s, color .2s; }
.steps a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.steps a .n { font: 500 11.5px var(--mono); color: var(--muted); }
.steps a[aria-current="page"] { background: rgba(255, 255, 255, .09); color: var(--text); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.steps a[aria-current="page"] .n { color: var(--accent-2); }
.navlive { display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 14px; border-radius: 999px; font-size: 13px; font-weight: 550; color: var(--text-2); background: var(--surface); border: 1px solid var(--line); flex: none; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); flex: none; }
.dot.on { background: #31d08c; box-shadow: 0 0 0 0 rgba(49, 208, 140, .6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(49, 208, 140, 0); } 100% { box-shadow: 0 0 0 0 rgba(49, 208, 140, 0); } }

/* buttons, pills, keys */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 9px; height: 46px; padding: 0 22px; border-radius: 999px; font: 600 14.5px/1 var(--sans); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--text); cursor: pointer; white-space: nowrap; transition: transform .2s var(--ease), box-shadow .2s, background .2s, opacity .2s; }
.btn:hover { transform: translateY(-1px); background: rgba(255, 255, 255, .09); }
.btn:active { transform: translateY(0) scale(.98); }
.btn.primary { background: #fff; color: #06070a; border-color: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25), 0 10px 34px rgba(141, 155, 255, .35); }
.btn.primary:hover { background: #fff; box-shadow: 0 0 0 1px rgba(255, 255, 255, .4), 0 14px 44px rgba(141, 155, 255, .5); }
.btn.sm { height: 38px; padding: 0 16px; font-size: 13.5px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; }
.btn svg { width: 16px; height: 16px; }
kbd { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; font: 500 11.5px var(--mono); border-radius: 6px; border: 1px solid var(--line-2); border-bottom-width: 2px; background: rgba(255, 255, 255, .05); color: var(--text-2); }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; color: var(--text-2); }
.pill b { background: linear-gradient(92deg, var(--accent), var(--accent-2)); color: #05060a; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; }
.tag { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--sans); padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag.verity { background: var(--verity-bg); color: var(--verity-ink); }
.tag.baseline { background: var(--plain-bg); color: var(--plain-ink); }
.tag.base { background: rgba(255, 255, 255, .06); color: var(--text-2); }

/* glass surfaces with a cursor spotlight */
.glass { position: relative; background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .02)); border: 1px solid var(--line); border-radius: 20px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 20px 60px rgba(0, 0, 0, .35); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); min-width: 0; }
.spot::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s; background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(141, 155, 255, .12), transparent 45%); }
.spot:hover::before { opacity: 1; }
.card { padding: 22px; }
.card > .title { font-size: 12.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 14px; }
.pending { padding: 30px; border: 1px dashed var(--line-2); border-radius: 18px; color: var(--muted); text-align: center; }
.note { font-size: 13.5px; color: var(--muted); }

/* page heads */
.page { padding: clamp(44px, 7vh, 84px) 0 140px; }
.head { display: grid; gap: 16px; max-width: 900px; margin-bottom: 36px; }
.head.center { margin-inline: auto; text-align: center; justify-items: center; }
.kicker { font: 600 12px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--accent-2); }
.head h1 { font-size: clamp(36px, 5.4vw, 68px); line-height: 1.02; letter-spacing: -.045em; }
.head p { font-size: clamp(16px, 1.4vw, 18.5px); color: var(--text-2); max-width: 70ch; }
.grad { background: linear-gradient(92deg, #ffffff 0%, #cfd5ff 35%, #8d9bff 65%, #5fe3ff 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.grad-v { background: linear-gradient(92deg, #ffffff, #6be3b4); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* entrance */
.reveal { animation: rise .9s var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 60ms); }
@keyframes rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } }

/* home: hero */
.hero { text-align: center; padding: clamp(56px, 11vh, 128px) 0 28px; }
.hero h1 { font-size: clamp(46px, 8vw, 112px); line-height: .96; letter-spacing: -.055em; margin: 26px auto 0; max-width: 13ch; }
.hero .lede { font-size: clamp(17px, 1.7vw, 21px); color: var(--text-2); max-width: 720px; margin: 26px auto 0; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 36px; }
.hint { margin-top: 18px; font-size: 13px; color: var(--muted); display: inline-flex; gap: 8px; align-items: center; }

/* home: the training run, shown in a desktop window with Verity's notes floating on it */
.stagewin { position: relative; margin: 96px auto 72px; width: min(1120px, 100%); perspective: 1600px; }
.window { overflow: hidden; border-radius: 22px; background: rgba(13, 15, 21, .82); }
.titlebar { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border-bottom: 1px solid var(--line); font: 500 12.5px var(--mono); color: var(--muted); }
.titlebar i { width: 11px; height: 11px; border-radius: 50%; background: #2a2e38; }
.titlebar i:nth-child(1) { background: #ff5f57; } .titlebar i:nth-child(2) { background: #febc2e; } .titlebar i:nth-child(3) { background: #28c840; }
.titlebar span { margin-left: 10px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.titlebar .chip { margin-left: auto; color: var(--verity-ink); background: var(--verity-bg); padding: 3px 10px; border-radius: 999px; font: 600 11px var(--sans); flex: none; }
.winbody { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; padding: 18px; }
.panel { background: var(--chart); border: 1px solid var(--line); border-radius: 14px; padding: 16px 16px 10px; min-width: 0; }
.panel .t { font-size: 13px; font-weight: 600; color: var(--text); }
.panel .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.float { position: absolute; z-index: 3; width: min(320px, 40%); padding: 14px 16px; border-radius: 16px; font-size: 13px; line-height: 1.5; animation: floatin 1s var(--ease) both; }
.float .h { display: flex; align-items: center; gap: 8px; font-weight: 650; font-size: 13.5px; margin-bottom: 6px; }
.float .h svg { width: 16px; height: 16px; flex: none; }
.float.f1 { left: -44px; bottom: -58px; animation-delay: 1.6s; }
.float.f2 { right: -44px; top: -46px; animation-delay: 2.3s; }
.float q { display: block; color: var(--text-2); font-style: normal; }
.float q::before, .float q::after { content: none; }
@keyframes floatin { from { opacity: 0; transform: translateY(16px) scale(.96); filter: blur(6px); } }

/* home: three steps and the bento of real results */
.trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 96px; }
.trio .card { padding: 26px; }
.trio .n { font: 500 12px var(--mono); color: var(--accent-2); }
.trio h3 { font-size: 21px; margin: 10px 0 8px; }
.trio p { color: var(--text-2); font-size: 14.5px; }
.section-title { margin: 112px 0 28px; display: grid; gap: 12px; }
.section-title h2 { font-size: clamp(30px, 4vw, 48px); line-height: 1.04; letter-spacing: -.04em; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.bento .card { padding: 24px; display: grid; gap: 10px; align-content: start; overflow: hidden; }
.bento .w3 { grid-column: span 3; } .bento .w2 { grid-column: span 2; } .bento .w4 { grid-column: span 4; }
.bento .tint-v { background: linear-gradient(160deg, rgba(25, 158, 112, .16), rgba(255, 255, 255, .02) 60%); }
.bento .tint-i { background: linear-gradient(160deg, rgba(110, 125, 255, .18), rgba(255, 255, 255, .02) 60%); }
.bento .tint-p { background: linear-gradient(160deg, rgba(160, 90, 255, .16), rgba(255, 255, 255, .02) 60%); }
.bento .tint-o { background: linear-gradient(160deg, rgba(217, 89, 38, .14), rgba(255, 255, 255, .02) 60%); }
.big { font-size: clamp(40px, 5vw, 64px); font-weight: 680; letter-spacing: -.05em; line-height: 1; font-variant-numeric: tabular-nums; }
.big small { font-size: .38em; letter-spacing: -.01em; color: var(--text-2); font-weight: 550; margin-left: 4px; }
.bento h3 { font-size: 16.5px; letter-spacing: -.01em; }
.bento p { font-size: 13.5px; color: var(--text-2); }
.vs { display: flex; gap: 22px; align-items: flex-end; flex-wrap: wrap; }
.vs > div { display: grid; gap: 6px; }

/* horizontal bars with direct labels */
.bars { display: grid; gap: 10px; margin-top: 4px; }
.bar { display: grid; grid-template-columns: 96px minmax(0, 1fr) 54px; gap: 12px; align-items: center; font-size: 13px; }
.bar .lbl { color: var(--text-2); }
.bar .track { height: 12px; border-radius: 4px; background: rgba(255, 255, 255, .05); overflow: hidden; }
.bar .fill { height: 100%; border-radius: 0 4px 4px 0; transform-origin: left; animation: grow 1.2s var(--ease) both; animation-delay: .4s; }
.bar .val { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
@keyframes grow { from { transform: scaleX(0); } }

/* line charts */
.lc { position: relative; }
.lc svg { display: block; width: 100%; height: auto; overflow: visible; }
.lc .grid line { stroke: rgba(255, 255, 255, .06); }
.lc .axis text { fill: var(--muted); font: 10.5px var(--mono); }
.lc .series path { fill: none; stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.lc .series path.raw { stroke-width: 1; opacity: .22; }
.lc.draw .series path.main { stroke-dasharray: var(--len); stroke-dashoffset: var(--len); animation: draw 2.2s var(--ease) forwards; animation-delay: .5s; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.lc .endlbl { font: 600 11px var(--sans); fill: var(--text-2); }
.lc .cross { stroke: rgba(255, 255, 255, .35); stroke-width: 1; }
.lc .tip { position: absolute; pointer-events: none; z-index: 4; padding: 8px 10px; border-radius: 10px; background: rgba(10, 12, 17, .94); border: 1px solid var(--line-2); font-size: 12px; line-height: 1.5; white-space: nowrap; transform: translate(-50%, calc(-100% - 12px)); box-shadow: 0 10px 30px rgba(0, 0, 0, .4); }
.lc .tip i { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: var(--text-2); margin-top: 8px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; vertical-align: middle; margin-right: 6px; }

/* the "next" bar that walks the presentation forward */
.nextbar { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: flex; align-items: center; gap: 10px; padding: 7px 7px 7px 16px; border-radius: 999px; background: rgba(13, 15, 21, .82); border: 1px solid var(--line); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); box-shadow: 0 14px 40px rgba(0, 0, 0, .45); font-size: 13px; color: var(--text-2); view-transition-name: nextbar; }
.nextbar .prev { color: var(--muted); padding: 0 6px; }
.nextbar .prev:hover { color: var(--text); }
.progress { position: fixed; left: 0; top: 0; height: 2px; z-index: 60; background: linear-gradient(90deg, var(--accent), var(--accent-2)); view-transition-name: progress; transition: width .5s var(--ease); }

/* demo pages: the command bar */
.command { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px; border-radius: 18px; }
.command label { display: inline-flex; align-items: center; gap: 8px; height: 46px; padding: 0 6px 0 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); min-width: 0; }
.command select { height: 40px; min-width: 0; max-width: 340px; border: 0; background: transparent; color: var(--text); font: 600 14px var(--sans); padding: 0 26px 0 2px; cursor: pointer; }
.command select option { background: #12141b; color: var(--text); }
.command .grow { flex: 1; }
.status { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); padding: 0 6px; }

/* shop: the request bar */
.askbar { display: grid; gap: 10px; padding: 12px; border-radius: 22px; }
.askrow { display: flex; gap: 10px; align-items: center; }
.askrow input { flex: 1; min-width: 0; height: 56px; padding: 0 18px; border-radius: 15px; border: 1px solid var(--line-2); background: rgba(255, 255, 255, .045); color: var(--text); font: 500 16px var(--sans); transition: border-color .2s, box-shadow .2s; }
.askrow input::placeholder { color: var(--muted); }
.askrow input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 4px rgba(141, 155, 255, .18); }
.askrow .btn { height: 56px; border-radius: 15px; } .askrow .btn kbd { background: rgba(0, 0, 0, .08); border-color: rgba(0, 0, 0, .15); color: #06070a; }
.pick { display: inline-flex; align-items: center; gap: 6px; height: 56px; padding: 0 6px 0 14px; border-radius: 15px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 12px; color: var(--muted); flex: none; }
.pick select { height: 44px; max-width: 200px; border: 0; background: transparent; color: var(--text); font: 600 14px var(--sans); cursor: pointer; }
.pick select option { background: #12141b; }
.askrow2 { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 0 4px; }
.askfoot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 2px 0 0; }
.grow { flex: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 32px; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: 500 12.5px var(--sans); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.chip:hover { color: var(--text); border-color: var(--line-2); background: var(--surface-2); }
.askstatus, .status { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-2); padding: 0 6px; min-height: 22px; }
.askstatus.err, .status.err { color: var(--plain-ink); }
.goalbar .asked { display: grid; gap: 2px; margin-bottom: 8px; } .goalbar .req { font-size: 15px; color: var(--text-2); font-style: italic; }
.goalbar .understood { font-size: 12.5px; color: var(--verity-ink); margin-top: 4px; }

/* chess: the board and the match panel (players at the top and bottom, the move, the list, the chances) */
.arena2 { display: grid; grid-template-columns: minmax(0, 640px) minmax(0, 1fr); gap: 20px; align-items: stretch; margin-top: 20px; }
.boardcol { display: grid; gap: 10px; align-content: start; }
.matchpanel { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; overflow: hidden; contain: size; }  /* as tall as the board */
.prow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 16px 18px; transition: background .35s; }
.prow[data-side="b"] { border-bottom: 1px solid var(--line); } .prow[data-side="w"] { border-top: 1px solid var(--line); }
.prow .av { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font: 800 15px var(--sans); color: #06070a; }
.prow .av.verity { background: var(--verity); } .prow .av.baseline { background: var(--plain); }
.prow .who { display: grid; min-width: 0; } .prow .nm { font-weight: 680; font-size: 16px; letter-spacing: -.02em; }
.prow .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.prow .state { font: 600 12px var(--sans); color: var(--text-2); min-width: 64px; text-align: right; }
.prow .st { display: flex; gap: 18px; text-align: right; font-size: 11px; color: var(--muted); }
.prow .st b { display: block; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; }
.prow.turn .state::after { content: ""; display: inline-block; width: 16px; text-align: left; animation: dots 1.2s steps(4) infinite; }
.prow.turn:has(.av.verity) { background: linear-gradient(90deg, rgba(25, 158, 112, .16), transparent 70%); }
.prow.turn:has(.av.baseline) { background: linear-gradient(90deg, rgba(217, 89, 38, .16), transparent 70%); }
.prow[data-state="won"] .state { color: var(--verity-ink); }
@keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75% { content: "..."; } }
.mp { display: grid; gap: 12px; padding: 14px 18px; align-content: start; min-height: 0; overflow-y: auto; }
.mp-move { height: 150px; overflow-y: auto; }
.mvhead { display: flex; justify-content: space-between; align-items: center; gap: 10px; } .mvhead b { font-size: 22px; letter-spacing: -.02em; }
.result { margin-top: 10px; font-size: 14px; color: var(--text-2); } .result b { color: var(--text); }
.boardwrap { display: grid; grid-template-columns: 12px minmax(0, 1fr); gap: 10px; padding: 14px; border-radius: 20px; }
.evalbar { position: relative; background: #1b1f27; border-radius: 4px; overflow: hidden; }
.evalbar div { position: absolute; left: 0; right: 0; bottom: 0; background: #f2f4f8; transition: height .5s var(--ease); }
.board { display: grid; grid-template-columns: repeat(8, 1fr); aspect-ratio: 1; border-radius: 10px; overflow: hidden; }
.sq { position: relative; display: grid; place-items: center; aspect-ratio: 1; font: clamp(24px, 4.2vw, 46px)/1 var(--pieces); user-select: none; }
.sq.l { background: var(--sq-light); } .sq.d { background: var(--sq-dark); }
.sq.hl::after { content: ""; position: absolute; inset: 0; background: rgba(95, 227, 255, .32); }
.sq .w { color: #fbfbfc; -webkit-text-stroke: 1.2px #1a1d22; paint-order: stroke fill; position: relative; z-index: 1; }
.sq .b { color: #14171c; position: relative; z-index: 1; }
.sq .coord { position: absolute; font: 600 9px var(--mono); color: rgba(20, 24, 30, .55); }
.sq .rank { top: 2px; left: 3px; } .sq .file { bottom: 1px; right: 3px; }
.controls { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.controls button { height: 34px; min-width: 38px; padding: 0 11px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 500 13px var(--sans); cursor: pointer; }
.controls button:hover { background: var(--surface-2); }
.controls .pos { margin-left: auto; font: 12px var(--mono); color: var(--muted); }
.moves { font: 13px/1.95 var(--mono); height: 88px; overflow-y: auto; }
.moves button { font: inherit; background: none; border: 0; color: var(--text); padding: 0 4px; cursor: pointer; border-radius: 5px; }
.moves button.on { background: var(--accent); color: #06070a; }
.moves .n { color: var(--muted); margin-left: 6px; }
.evalchart svg { width: 100%; height: auto; display: block; border-radius: 10px; }
.evalchart text { font: 600 11px var(--sans); }
.games { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.games button { height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font: 550 13px var(--sans); cursor: pointer; }
.games button[aria-pressed="true"] { color: var(--text); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }

/* logs */
.log { list-style: none; margin: 0; padding: 0; font: 12.5px/1.55 var(--mono); display: grid; gap: 2px; }
.log li { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; padding: 6px 8px; border-radius: 8px; }
.log .i { color: var(--muted); }
.log .r { color: var(--text-2); overflow-wrap: anywhere; }
.log .c { color: var(--muted); }
.log li.bad { background: var(--plain-bg); }
.log li.bad .why { color: var(--plain-ink); font-family: var(--sans); font-size: 12.5px; }
.log li.blocked { background: var(--verity-bg); }
.log li.blocked .r { color: var(--verity-ink); }
.log li.now { box-shadow: inset 2px 0 0 var(--accent-2); background: rgba(255, 255, 255, .04); }
.log li.sum .r { color: var(--text); font-weight: 600; }
.log li.flag { background: var(--verity-bg); }
.log li.new { animation: logline .35s var(--ease) both; }
@keyframes logline { from { opacity: 0; transform: translateX(-6px); } }
pre.code { margin: 0; background: #0c0e13; border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; font: 12.5px/1.65 var(--mono); color: #d7dceb; overflow-x: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.k { color: var(--accent); } .cm { color: var(--muted); }

/* tables */
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: right; padding: 11px 12px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; vertical-align: top; }
th:first-child, td:first-child, td.text, th.text { text-align: left; }
th { font-size: 11.5px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
tr:last-child td { border-bottom: 0; }
td b { font-weight: 680; }
.scroll { overflow-x: auto; }
.u { color: var(--plain-ink); } .v { color: var(--verity-ink); }

/* shop: two browser windows */
.goalbar { padding: 16px 20px; border-radius: 16px; margin: 18px 0; display: grid; gap: 4px; }
.goalbar .lbl { font: 600 11.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.goalbar .goal { font-size: 17px; font-weight: 550; letter-spacing: -.01em; }
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
.lane { display: grid; gap: 12px; align-content: start; min-width: 0; }
.lane .top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lane .top .who { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.lane .top .sub { font-size: 12.5px; color: var(--muted); font-weight: 500; }
.browser { border-radius: 16px; overflow: hidden; background: #fff; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 24px 70px rgba(0, 0, 0, .5); }
.browser.baseline { box-shadow: 0 24px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(217, 89, 38, .25); }
.browser.verity { box-shadow: 0 24px 70px rgba(0, 0, 0, .5), 0 0 0 1px rgba(25, 158, 112, .3); }
.browser .chrome { height: 38px; display: flex; align-items: center; gap: 7px; padding: 0 12px; background: #eef0f4; border-bottom: 1px solid #dfe3ea; }
.browser .chrome i { width: 10px; height: 10px; border-radius: 50%; background: #d0d5de; flex: none; }
.browser .chrome i:nth-child(1) { background: #ff5f57; } .browser .chrome i:nth-child(2) { background: #febc2e; } .browser .chrome i:nth-child(3) { background: #28c840; }
.browser .addr { flex: 1; min-width: 0; height: 24px; margin-left: 8px; border-radius: 7px; background: #fff; border: 1px solid #dfe3ea; font: 12px var(--sans); color: #5a6472; display: flex; align-items: center; padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewport { position: relative; }
.storeframe { background: #fff; color: #1d2433; padding: 10px 16px 14px; font: 12.5px/1.45 system-ui, -apple-system, "Segoe UI", sans-serif; height: 380px; overflow: auto; }
.storeframe h1 { font-size: 15px; color: #2747a8; margin: 4px 0 6px; letter-spacing: 0; font-weight: 700; }
.storeframe h2 { font-size: 13px; margin: 10px 0 4px; letter-spacing: 0; font-weight: 700; }
.storeframe p { margin: 5px 0; }
.storeframe table { font-size: 12px; width: auto; }
.storeframe th, .storeframe td { padding: 3px 8px 3px 0; text-align: left; font: inherit; color: inherit; border-bottom: 1px solid #e6e9ee; text-transform: none; letter-spacing: 0; }
.storeframe th { font-weight: 600; }
.storeframe button { font: 600 11px/1 system-ui, sans-serif; padding: 4px 8px; border: 1px solid #b9c2d3; border-radius: 4px; background: #f4f6fa; color: #1d2433; }
.storeframe a { color: #2747a8; text-decoration: underline; }
.storeframe input, .storeframe select { font: 12px system-ui, sans-serif; padding: 3px 5px; border: 1px solid #b9c2d3; border-radius: 4px; background: #fff; color: #1d2433; }
.storeframe label { display: block; margin: 4px 0; }
.storeframe ul { padding-left: 18px; margin: 6px 0; }
.storeframe .idle { height: 100%; display: grid; place-items: center; align-content: center; gap: 8px; color: #8a93a3; text-align: center; font-size: 13px; }
.storeframe .idle b { color: #1d2433; font-size: 15px; }
.storeframe .typing { outline: 2px solid #1f5bd8; outline-offset: 1px; }
.pointer { position: absolute; left: 0; top: 0; width: 22px; height: 22px; pointer-events: none; z-index: 5; transition: transform .45s cubic-bezier(.2, .75, .25, 1), opacity .3s; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .35)); }
.ripple { position: absolute; width: 30px; height: 30px; margin: -15px 0 0 -15px; border-radius: 50%; background: rgba(31, 91, 216, .35); pointer-events: none; z-index: 4; animation: ripple .55s ease-out forwards; }
@keyframes ripple { from { transform: scale(.3); opacity: 1; } to { transform: scale(2.3); opacity: 0; } }
.lane .log { max-height: 200px; overflow-y: auto; }
.verdict { padding: 14px 16px; border-radius: 14px; font-size: 14px; color: var(--text-2); animation: rise .6s var(--ease) both; }
.verdict.ok { background: var(--verity-bg); border: 1px solid rgba(25, 158, 112, .35); }
.verdict.no { background: var(--plain-bg); border: 1px solid rgba(217, 89, 38, .35); }
.verdict.miss { background: rgba(255, 255, 255, .04); border: 1px solid var(--line-2); }
.verdict b { display: block; font-size: 15.5px; margin-bottom: 3px; color: var(--text); }

/* method: environment switch and the four-stage timeline */
.seg { display: inline-flex; gap: 4px; padding: 5px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 30px; }
.seg button { height: 38px; padding: 0 18px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font: 600 14px var(--sans); cursor: pointer; transition: background .2s, color .2s; }
.seg button[aria-selected="true"] { background: #fff; color: #06070a; }
.timeline { position: relative; display: grid; gap: 22px; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2) 50%, transparent); opacity: .5; }
.stage { position: relative; display: grid; gap: 16px; }
.stage::before { content: ""; position: absolute; left: -29px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent-2); box-shadow: 0 0 18px rgba(95, 227, 255, .5); }
.stage .label { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.stage .label span { font: 500 12px var(--mono); color: var(--accent-2); }
.stage .label b { font-size: 22px; letter-spacing: -.03em; }
.stage .label p { font-size: 14px; color: var(--muted); }
.grid2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.stack { display: grid; gap: 14px; min-width: 0; align-content: start; }
.stage .glass.card > .log { max-height: 520px; overflow-y: auto; }
.charts { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }

/* audit upload */
.drop { position: relative; display: grid; place-items: center; gap: 10px; text-align: center; padding: 46px 24px; border-radius: 20px; cursor: pointer; background: rgba(255, 255, 255, .03); isolation: isolate; }
.drop::before { content: ""; position: absolute; inset: 0; z-index: -1; padding: 1.5px; border-radius: inherit; background: conic-gradient(from var(--a, 0deg), var(--accent), var(--accent-2), #a46bff, var(--accent)); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; animation: spin 6s linear infinite; opacity: .7; }
.drop.over::before { opacity: 1; }
.drop .ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; background: rgba(141, 155, 255, .14); color: var(--accent); }
.drop b { font-size: 17px; }
@property --a { syntax: "<angle>"; initial-value: 0deg; inherits: false; }
@keyframes spin { to { --a: 360deg; } }
.term { border-radius: 18px; overflow: hidden; }
.term .log { max-height: 420px; overflow-y: auto; padding: 12px; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.facts div { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); font-size: 13px; color: var(--text-2); }
.facts b { display: block; color: var(--text); font-size: 14px; }
.how { display: grid; gap: 12px; counter-reset: how; }
.how li { list-style: none; display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 12px; font-size: 14px; color: var(--text-2); }
.how li::before { counter-increment: how; content: counter(how); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 10px; background: rgba(141, 155, 255, .14); color: var(--accent); font: 600 13px var(--mono); }
.how b { color: var(--text); }

footer { padding: 40px 0 120px; color: var(--muted); font-size: 13px; display: grid; gap: 10px; border-top: 1px solid var(--line); margin-top: 40px; }
footer .prov { font: 11.5px/1.7 var(--mono); }

@media (max-width: 1080px) {
  .arena2 { grid-template-columns: minmax(0, 1fr); }
  .matchpanel { contain: none; } .mp { overflow: visible; }
  .arena2 .boardcol { max-width: 640px; width: 100%; justify-self: center; }
  .prow .st { display: none; }
  .float.f1 { left: 8px; } .float.f2 { right: 8px; }
}
@media (max-width: 860px) {
  .winbody, .trio, .grid2, .duo { grid-template-columns: minmax(0, 1fr); }
  .askrow { flex-wrap: wrap; } .pick { width: 100%; } .askrow input { flex-basis: 100%; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .bento .w2, .bento .w3, .bento .w4 { grid-column: auto; }
  .float { position: relative; inset: auto !important; width: auto; margin-top: 12px; }
  .steps a .lbl { display: none; }
  .navlive .lbl { display: none; }
  .facts { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .nextbar .lbl { display: none; }
  .command label { width: 100%; }
  .command select { max-width: none; flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0ms !important; transition-duration: .01ms !important; }
  .lc.draw .series path.main { stroke-dashoffset: 0; }
}
