/* EliteTyper — glass UI. Near-black canvas, translucent white surfaces, blur + saturate,
   inset top highlight, 16px radii, soft blue blooms behind content. */

:root {
  color-scheme: dark;
  --bg: #000;
  --surface: #ffffff0b;
  --surface-2: #ffffff12;
  --border: #ffffff14;
  --border-2: #ffffff1f;
  --text: #fff;
  --text-2: #ffffffa3;
  --text-3: #ffffff66;
  --accent: #3b82f6;
  --good: #7ee0a1;
  --bad: #ff8f8f;
  --s1: #3987e5; --s2: #d95926; --s3: #199e70; --s4: #c98500; --s5: #d55181; --s6: #008300; --s7: #9085e9; --s8: #e66767;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Fustat", "Plus Jakarta Sans", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --elev: 0 25px 50px -12px #00000080, inset 0 1px #ffffff0a;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; min-height: 100vh; color: var(--text);
  font: 400 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
a { color: var(--text); text-decoration: none; }
p a, .hint a, .note a { color: #93c5fd; } p a:hover, .note a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -.025em; line-height: 1.1; margin: 0; color: #fff; }
h1 { font-size: clamp(32px, 4vw, 48px); margin: .15em 0 .3em; }
h2 { font-size: clamp(24px, 2.6vw, 34px); margin: 1.6em 0 .5em; }
h3 { font-size: 19px; }
p { margin: 0 0 .8em; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: 2px 7px; border-radius: 6px; color: #fff; }
::selection { background: #3b82f655; }

/* Ambient light behind everything: gives the glass something to blur. */
.ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.ambient::before, .ambient::after, .ambient i { content: ""; position: absolute; border-radius: 50%; filter: blur(70px); }
.ambient i { width: 50vw; height: 50vh; left: -14vw; top: 38vh; background: radial-gradient(closest-side, #3b82f64d, #3b82f600); }
.ambient::before { width: 80vw; height: 70vh; left: 10vw; top: -26vh; background: radial-gradient(closest-side, #3b82f680, #3b82f600); }
.ambient::after { width: 60vw; height: 60vh; right: -14vw; bottom: -20vh; background: radial-gradient(closest-side, #6366f166, #6366f100); }

main { max-width: 1120px; margin: 0 auto; padding: 44px 32px 72px; }

/* ---- Glass primitive ------------------------------------------------------ */
.glass, .card, .arena, .note, .table-wrap, .panel, .tile, .test {
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: var(--elev), inset 0 0 0 1px var(--border-2);
  border-radius: 16px;
}

/* ---- Nav -------------------------------------------------------------------- */
/* ---- Sidebar -------------------------------------------------------------------------------------- */
:root { --sb-w: 236px; }
.sidebar {
  position: fixed; z-index: 30; top: 12px; left: 12px; bottom: 12px; width: calc(var(--sb-w) - 12px); display: flex; flex-direction: column; gap: 22px; padding: 18px 12px 14px; overflow-y: auto;
  background: #ffffff0d; border-radius: 16px; backdrop-filter: blur(48px) saturate(150%); -webkit-backdrop-filter: blur(48px) saturate(150%);
  box-shadow: inset 0 0 0 1px var(--border-2), inset 0 1px #ffffff0f, 0 18px 50px -22px #000c;
}
.sb-brand { display: inline-flex; align-items: center; gap: 8px; padding: 2px 8px; font-family: var(--display); font-size: 20px; font-weight: 500; letter-spacing: -.02em; }
.sb-brand .ph { width: 28px; height: 28px; margin: 0; color: var(--accent); } .sb-brand b { font-weight: 500; color: var(--accent); } .sb-brand:hover { text-decoration: none; }
.sb-nav { display: flex; flex-direction: column; gap: 20px; flex: 1; }
.sb-group { display: flex; flex-direction: column; gap: 2px; }
.sb-title { margin: 0 0 4px; padding: 0 10px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.sb-link { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 11px; font-size: 14px; font-weight: 500; color: var(--text-2); transition: background .25s ease, color .25s ease; }
.sb-link .ph { width: 18px; height: 18px; margin: 0; flex: none; }
a.sb-link:hover { background: #ffffff14; color: #fff; text-decoration: none; }
.sb-link.on { background: #fff; color: #000; }
.sb-link.soon { color: var(--text-3); cursor: default; } .sb-link.soon em { margin-left: auto; padding: 2px 7px; border-radius: 999px; background: #ffffff10; font-style: normal; font-size: 10.5px; font-weight: 600; letter-spacing: .03em; color: var(--text-3); }
.sb-layout { display: flex; flex-direction: column; gap: 6px; padding: 12px 8px 0; border-top: 1px solid var(--border); margin: 0; }
.sb-layout label { font-size: 12px; color: var(--text-3); } .sb-layout-row { display: flex; gap: 6px; } .sb-layout select { flex: 1; min-width: 0; }
.mobile-bar, .sb-scrim { display: none; }
.menu-toggle { position: absolute; opacity: 0; pointer-events: none; }
body { padding-left: var(--sb-w); }

@media (max-width: 900px) {
  body { padding-left: 0; }
  .mobile-bar { position: fixed; z-index: 25; top: 10px; left: 12px; right: 12px; height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 10px 0 12px; border-radius: 14px; background: #0e0e0ef0; box-shadow: inset 0 0 0 1px var(--border-2); }
  .sidebar { transform: translateX(calc(-100% - 24px)); transition: transform .35s var(--ease); background: #0c0c0cf2; backdrop-filter: none; -webkit-backdrop-filter: none; }
  .menu-toggle:checked ~ .sidebar { transform: none; }
  .menu-toggle:checked ~ .sb-scrim { display: block; position: fixed; inset: 0; z-index: 28; background: #000000a6; }
  .menu-toggle:focus-visible ~ .mobile-bar label { box-shadow: 0 0 0 3px #3b82f670; }
}

select, input[type=number] {
  font: 500 14px/1 var(--sans); color: #fff; background: #ffffff0f; border: 0; border-radius: 10px; height: 36px; padding: 0 12px;
  box-shadow: inset 0 0 0 1px var(--border-2); outline: 0; transition: background .2s ease, box-shadow .2s ease;
}
select { padding-right: 8px; cursor: pointer; } select option { background: #111; color: #fff; }
select:hover, input[type=number]:hover { background: #ffffff1a; }
select:focus-visible, input:focus-visible, button:focus-visible, a:focus-visible, .arena:focus-visible { box-shadow: inset 0 0 0 1px #ffffff59, 0 0 0 3px #3b82f640; }
input[type=number] { width: 5.5em; }
input[type=checkbox] { accent-color: #fff; width: 15px; height: 15px; vertical-align: -2px; }
.icon-btn {
  display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; cursor: pointer;
  color: var(--text-2); background: #ffffff0f; box-shadow: inset 0 0 0 1px var(--border-2); transition: background .2s ease, color .2s ease;
}
.icon-btn:hover { background: #ffffff1f; color: #fff; } .icon-btn .ph { margin: 0; width: 16px; height: 16px; }


/* ---- Buttons ----------------------------------------------------------------- */
.btn, .hero-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 18px; border: 0; border-radius: 12px;
  background: #fff; color: #000; font: 600 14px/1 var(--sans); cursor: pointer; transition: background .2s ease, transform .2s ease;
}
.btn:hover, .hero-btn:hover { background: #ffffffe6; text-decoration: none; }
.btn .ph { margin: 0 2px 0 0; width: 16px; height: 16px; }
.btn.ghost { background: #ffffff14; color: #fff; box-shadow: inset 0 0 0 1px var(--border-2); } .btn.ghost:hover { background: #ffffff24; }
.btn.small { height: 34px; padding: 0 14px; font-size: 13px; } .btn[disabled] { opacity: .5; cursor: default; }
.hero-btn .ph { margin: 0; width: 16px; height: 16px; transition: transform .2s ease; } .hero-btn:hover .ph { transform: translateX(2px); }

/* ---- Type helpers ---------------------------------------------------------------- */
.lead { font-size: 18px; font-weight: 300; color: var(--text-2); max-width: 62ch; } .lead.small { font-size: 16px; }
.hint, .tag { color: var(--text-3); font-size: 13.5px; }
.crumb { margin: 0; color: var(--text-3); font-size: 14px; } .crumb a { color: var(--text-2); }
.tag-inline { display: inline-block; vertical-align: middle; margin-left: 10px; padding: 4px 10px; border-radius: 999px; background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--border); font: 500 12px/1 var(--sans); color: var(--text-2); letter-spacing: 0; }
.note { display: flex; gap: 2px; align-items: baseline; padding: 12px 16px; font-size: 14.5px; color: var(--text-2); }
.note .ph { color: var(--accent); flex: none; transform: translateY(3px); }
.ph { width: 1.1em; height: 1.1em; vertical-align: -.18em; margin-right: .4em; flex: none; }

/* ---- Hero ----------------------------------------------------------------------------------------- */
.hero { padding: 24px 0 8px; display: flex; flex-direction: column; align-items: center; gap: 36px; }
.hero-copy { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 24px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: #ffffff1a;
  box-shadow: inset 0 0 0 2px #ffffff0d; font-size: 14px; font-weight: 500; line-height: 1; transition: gap .5s var(--ease), background .3s ease;
}
.pill:hover { gap: 14px; background: #ffffff24; text-decoration: none; } .pill .ph { margin: 0; width: 16px; height: 16px; }
.hero-h1 { font-size: clamp(40px, 6vw, 72px); line-height: 1.06; letter-spacing: -.03em; margin: 0; text-wrap: balance; }
.accent { color: var(--accent); }
.hero-sub { margin: 0; max-width: 600px; font-size: 18px; font-weight: 200; line-height: 1.45; color: #ffffff80; text-wrap: pretty; }
.byline { margin: -8px 0 0; font-size: 16px; font-weight: 500; color: var(--text-2); letter-spacing: .01em; }

/* ---- Test ---------------------------------------------------------------------------------------------- */
.test { width: 100%; max-width: 980px; padding: 18px 22px 22px; background: #ffffff0d; }
.test-bar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.timer { font-family: var(--display); display: flex; align-items: baseline; gap: 2px; } .timer b { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -.03em; font-variant-numeric: tabular-nums; min-width: 1.4em; } .timer span { color: var(--text-3); font-size: 18px; }
.live { display: flex; gap: 22px; color: var(--text-3); font-size: 14px; } .live b { color: #fff; font: 600 20px var(--display); font-variant-numeric: tabular-nums; }
.test-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; } .test-meta .tag-inline { margin: 0; }
.arena {
  position: relative; height: calc(1.95em * 6 + 26px); margin: 8px 0 12px; padding: 26px 30px 0; overflow: hidden; font: 500 28px/1.95 var(--mono); outline: 0;
  background: #0000004d; backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 25px 50px -12px #00000080, inset 0 0 0 1px var(--border-2); transition: box-shadow .2s ease;
}
.arena.running { box-shadow: 0 25px 50px -12px #00000080, inset 0 0 0 1px #3b82f666, 0 0 50px -12px #3b82f666; }
.arena .words { display: flex; flex-wrap: wrap; gap: 0 .9em; }
.w { white-space: nowrap; } .w.done { color: #ffffff2e; } .w.wrong { text-decoration: underline; text-decoration-color: #e66767; text-underline-offset: 6px; }
.c { color: #ffffff59; } .w.cur .c { color: #ffffffb3; } .c.ok { color: #fff; } .w.done .c.ok { color: #ffffff38; }
.c.bad { color: #e66767; background: #e667671f; border-radius: 4px; } .c.extra { background: #e667672e; border-radius: 4px; }
.c.next { border-bottom: 2px solid var(--accent); }
.overlay { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; background: #00000073; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); font: 500 18px var(--sans); color: #fff; cursor: text; }
.overlay small { color: var(--text-3); font-size: 13px; font-weight: 400; } .overlay[hidden] { display: none; }
.overlay.analyzing { background: #000000b3; font-size: 18px; gap: 10px; } .overlay.analyzing .ph { width: 32px; height: 32px; margin: 0 auto 8px; color: var(--accent); animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.progress { height: 4px; background: #ffffff12; border-radius: 2px; overflow: hidden; } .progress > div { height: 100%; width: 0; background: var(--accent); border-radius: 2px; }

/* ---- Sections / cards ------------------------------------------------------------------------------------ */
.section-head { margin: 88px 0 28px; }
.kicker { display: flex; align-items: center; gap: 6px; margin: 0; font-size: 16px; font-weight: 500; color: var(--accent); } .kicker .ph { margin: 0; width: 20px; height: 20px; }
.section-head h2 { margin: 12px 0 0; font-size: clamp(30px, 3.4vw, 46px); }
.section-head p:not(.kicker) { margin: 8px 0 0; max-width: 70ch; font-size: clamp(15px, 1.3vw, 19px); font-weight: 200; color: #ffffff85; }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.card { position: relative; overflow: hidden; display: block; padding: 24px; isolation: isolate; }
.card::before { content: ""; position: absolute; z-index: -1; right: -8%; bottom: -34%; width: 24rem; height: 24rem; border-radius: 50%; background: radial-gradient(closest-side, #3b82f629, #3b82f600); filter: blur(28px); pointer-events: none; }
.card:nth-child(3n+2)::before { right: auto; left: -10%; bottom: -40%; background: radial-gradient(closest-side, #6366f124, #6366f100); }
.card h3 { display: flex; align-items: center; font-size: 20px; margin-bottom: 8px; } .card h3 .ph { width: 24px; height: 24px; margin: 0 10px 0 0; color: var(--accent); }
.card p { color: #ffffff80; font-size: 14.5px; margin: 0; }
.recent { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.recent-item { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 8px; padding: 16px 18px; border-radius: 16px; transition: box-shadow .3s ease; }
.recent-item:hover { box-shadow: var(--elev), inset 0 0 0 1px #ffffff33; text-decoration: none; }
.recent-item b { font: 600 34px/1 var(--display); letter-spacing: -.03em; } .recent-item span { color: var(--text-3); } .recent-item em { grid-column: 1 / -1; font-style: normal; color: var(--text-2); font-size: 13px; } .recent-item time { grid-column: 1 / -1; color: var(--text-3); font-size: 12px; }

/* ---- Tables --------------------------------------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
table.data th { text-align: left; font-size: 12.5px; font-weight: 500; color: var(--text-3); padding: 12px 16px; white-space: nowrap; }
table.data td { padding: 11px 16px; border-top: 1px solid var(--border); color: var(--text-2); white-space: nowrap; } table.data td:first-child { color: #fff; font-weight: 500; }
table.data.compact td, table.data.compact th { padding: 8px 14px; } table.data tbody tr:hover { background: #ffffff08; }
table.data a { display: inline-flex; align-items: center; } table.data a .ph { margin: 0 0 0 6px; }

/* ---- Report ------------------------------------------------------------------------------------------------ */
.report { padding-top: 6px; }
.rhead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 28px; margin: 8px 0 28px; }
.rhead-main .kicker { margin-bottom: 4px; } .rhead-main .tag-inline { margin-left: 8px; }
.hero-fig { display: flex; align-items: baseline; gap: 12px; } .hero-fig .big { font: 600 clamp(80px, 11vw, 132px)/1 var(--display); letter-spacing: -.04em; } .hero-fig .unit { font: 500 26px var(--display); color: var(--text-3); }
.delta { display: inline-flex; align-items: center; gap: 2px; padding: 6px 12px; border-radius: 999px; background: #ffffff0f; box-shadow: inset 0 0 0 1px var(--border); font-size: 13.5px; color: var(--text-2); } .delta .ph { margin: 0 6px 0 0; }
.delta.up .ph { color: var(--good); } .delta.down .ph { color: var(--bad); } .delta:hover { background: #ffffff1a; text-decoration: none; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; flex: 1; min-width: min(100%, 520px); max-width: 720px; }
.tiles.small { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); max-width: none; }
.tile { padding: 14px 16px; border-radius: 14px; background: #ffffff0a; box-shadow: inset 0 1px #ffffff08, inset 0 0 0 1px var(--border); backdrop-filter: none; -webkit-backdrop-filter: none; }
.tile b { display: block; font: 600 26px/1.1 var(--display); letter-spacing: -.02em; } .tile span { display: block; font-size: 12.5px; color: var(--text-2); margin-top: 2px; } .tile em { display: block; font-style: normal; font-size: 11.5px; color: var(--text-3); margin-top: 2px; line-height: 1.35; }
.toc { position: sticky; top: 14px; z-index: 5; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 8px; padding: 8px; border-radius: 14px; background: #ffffff0d; backdrop-filter: blur(24px) saturate(150%); -webkit-backdrop-filter: blur(24px) saturate(150%); box-shadow: inset 0 0 0 1px var(--border); }
.toc a { padding: 5px 12px; border-radius: 10px; font-size: 13px; color: var(--text-2); } .toc a:hover { background: #ffffff1a; color: #fff; text-decoration: none; }
.rsec { scroll-margin-top: 150px; } .rsec .section-head { margin-top: 72px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 16px; align-items: start; }
.grid.two-wide { grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); }
.panel { position: relative; padding: 20px 22px 22px; overflow: hidden; isolation: isolate; min-width: 0; }
.panel::before { content: ""; position: absolute; z-index: -1; right: -10%; bottom: -45%; width: 22rem; height: 22rem; border-radius: 50%; background: radial-gradient(closest-side, #3b82f61f, #3b82f600); filter: blur(28px); pointer-events: none; }
.panel:nth-child(even)::before { right: auto; left: -12%; background: radial-gradient(closest-side, #6366f11c, #6366f100); }
.panel header { margin-bottom: 10px; } .panel h3 { font-size: 18px; } .panel header p { margin: 4px 0 0; color: var(--text-3); font-size: 13.5px; line-height: 1.45; max-width: 64ch; }
.panel.wide { grid-column: 1 / -1; } .panel.center { display: flex; flex-direction: column; align-items: center; }
.panel.center header { align-self: flex-start; }
.chart { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--sans); font-size: 11.5px; fill: #ffffffa6; }
.chart text.muted { fill: #ffffff66; } .chart text.strong { fill: #fff; font-weight: 600; } .chart text.ink { fill: #fff; font-size: 12.5px; } .chart text.s { font-size: 10.5px; } .chart text.k { font: 600 15px var(--mono); }
.matrix-wrap { overflow-x: auto; } .matrix-wrap .chart { min-width: 520px; max-width: 640px; margin: 0 auto; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 10px 0 0; padding: 0; font-size: 12.5px; color: var(--text-2); }
.legend li { display: inline-flex; align-items: center; gap: 7px; } .legend .sw { flex: none; }
.scale { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; font-size: 12.5px; color: var(--text-3); } .scale-bar { flex: none; }
.scale .nodata { width: 12px; height: 12px; border-radius: 4px; background: #ffffff08; box-shadow: inset 0 0 0 1px #ffffff1f; margin-left: 12px; }
.tabs { position: relative; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 16px; }
.tabs > input { position: absolute; opacity: 0; pointer-events: none; }
.tabs > label { padding: 7px 16px; border-radius: 12px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--text-2); background: #ffffff0f; box-shadow: inset 0 0 0 1px var(--border-2); transition: background .2s ease, color .2s ease; }
.tabs > label:hover { background: #ffffff1c; color: #fff; }
.tabs > input:checked + label { background: #fff; color: #000; box-shadow: none; } .tabs > input:focus-visible + label { box-shadow: 0 0 0 3px #3b82f670; }
.tab-panel { display: none; flex-basis: 100%; padding: 22px; margin-top: 6px; border-radius: 16px; background: var(--surface); box-shadow: var(--elev), inset 0 0 0 1px var(--border-2); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.tab-panel .chart { max-width: 760px; margin: 0 auto; }
#hm-speed:checked ~ .t-speed, #hm-err:checked ~ .t-err, #hm-hold:checked ~ .t-hold, #hm-use:checked ~ .t-use { display: block; }
#heatmap .panel { margin-top: 16px; }
ul.insights { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; } .insights li { display: flex; gap: 8px; align-items: baseline; line-height: 1.5; color: var(--text-2); } .insights .ph { color: var(--accent); transform: translateY(2px); margin: 0; }
.callout { display: flex; align-items: baseline; gap: 2px; margin: 14px 0 0; padding: 12px 16px; border-radius: 12px; background: #3b82f61a; box-shadow: inset 0 0 0 1px #3b82f640; color: #ffffffd0; font-size: 14.5px; } .callout .ph { color: var(--accent); transform: translateY(2px); } .callout b { color: #fff; }
dl.defs { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 10px 14px; font-size: 14px; } .defs dt { font-weight: 600; color: #fff; } .defs dd { margin: 0; color: var(--text-2); }
ul.wordlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .wordlist li { display: flex; justify-content: space-between; padding: 8px 12px; border-radius: 10px; background: #ffffff08; font-size: 14px; color: var(--text-3); }
ul.plain { padding-left: 18px; color: var(--text-2); } ul.plain.small { font-size: 13.5px; } ul.plain li { margin-bottom: 8px; }
details.method { margin-top: 56px; } details.method summary { cursor: pointer; font-weight: 500; color: var(--text-2); margin-bottom: 14px; } details.method .table-wrap { max-height: 360px; overflow: auto; margin-bottom: 18px; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 56px 0 8px; } .actions.center { justify-content: center; } .actions form { margin: 0; }
.btn.danger { color: #ff9d9d; }

/* ---- Footer ---------------------------------------------------------------------------------------------- */
.site-foot { max-width: 1120px; margin: 0 auto; padding: 0 28px 36px; }
.foot-panel { padding: 22px 26px; border-radius: 16px; background: #0f0f0f; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; box-shadow: inset 0 0 0 1px var(--border); }
.foot-brand { display: flex; align-items: center; gap: 8px; font: 500 18px var(--display); } .foot-brand .ph { width: 26px; height: 26px; margin: 0; color: var(--accent); }
.foot-note { color: var(--text-3); font-size: 13px; margin: 0; max-width: 70ch; } .foot-note strong { color: var(--text-2); font-weight: 500; }

@media (max-width: 760px) {
  main { padding: 84px 16px 56px; } .arena { font-size: 19px; padding: 18px; } .grid, .grid.two-wide { grid-template-columns: 1fr; } .cards { grid-template-columns: 1fr; }
  .hero-fig .big { font-size: 88px; } .site-foot { padding: 0 16px 24px; } .toc { top: 74px; } .test { padding: 14px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

.leak-notes { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; color: var(--text-3); } .leak-notes b { color: var(--text-2); font-weight: 500; margin-right: 6px; }
.callout > span { display: block; }
.empty { margin: 8px 0 0; padding: 14px 16px; border-radius: 12px; background: #ffffff08; color: var(--text-3); font-size: 13.5px; }

/* ---- Test display modes ------------------------------------------------------------------------------- */
.arena { scroll-behavior: smooth; }
.arena .words { position: relative; }
.arena.tape { height: auto; padding: 0; line-height: 1; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 88%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 9%, #000 88%, transparent 100%); }
.arena.tape .words { flex-wrap: nowrap; width: max-content; padding: 40px 0; gap: 0 .9em; will-change: transform; }
.arena.tape::after { content: ""; position: absolute; left: 32%; top: 22px; bottom: 22px; width: 2px; background: #3b82f680; border-radius: 1px; pointer-events: none; opacity: 0; transition: opacity .2s ease; }
.arena.tape.running::after { opacity: 1; }
.arena.tape .c.next { border-bottom: 0; }
.arena.tape .w.done { color: #ffffff2e; }
.arena.tape .overlay { -webkit-mask-image: none; mask-image: none; }
.seg { display: inline-flex; padding: 3px; border-radius: 12px; background: #ffffff0f; box-shadow: inset 0 0 0 1px var(--border-2); }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: transparent; color: var(--text-2); font: 500 13px var(--sans); cursor: pointer; transition: background .2s ease, color .2s ease; }
.seg button .ph { width: 15px; height: 15px; margin: 0; }
.seg button:hover, .seg a:hover { color: #fff; text-decoration: none; } .seg button.on, .seg a.on { background: #fff; color: #000; }

/* ---- Focus mode: dim everything but the test once typing starts ---------------------------------------- */
.sidebar, .mobile-bar, .site-foot, .hero-copy, main .section-head, main .cards, main .recent, .test-meta, .ambient { transition: opacity .5s ease; }
body.focus .sidebar, body.focus .mobile-bar, body.focus .site-foot, body.focus .hero-copy, body.focus main .section-head, body.focus main .cards, body.focus main .recent { opacity: .08; pointer-events: none; }
body.focus .test-meta { opacity: .2; pointer-events: none; }
body.focus .ambient { opacity: .45; }

/* ---- Report: Summary / Full analysis ----------------------------------------------------------------------- */
.vtabs { position: relative; display: block; margin-top: 8px; }
.vtabs > input { position: absolute; opacity: 0; pointer-events: none; }
.vtabs > label { display: inline-flex; align-items: center; gap: 8px; margin: 0 6px 22px 0; padding: 10px 20px; border-radius: 14px; cursor: pointer; font: 500 15px var(--sans); color: var(--text-2); background: #ffffff0f; box-shadow: inset 0 0 0 1px var(--border-2); transition: background .2s ease, color .2s ease; }
.vtabs > label .ph { margin: 0; width: 17px; height: 17px; } .vtabs > label:hover { background: #ffffff1c; color: #fff; }
.vtabs > input:checked + label { background: #fff; color: #000; box-shadow: none; } .vtabs > input:focus-visible + label { box-shadow: 0 0 0 3px #3b82f670; }
.v-pane { display: none; }
#v-sum:checked ~ .v-sum, #v-full:checked ~ .v-full { display: block; }
.section-head.tight { margin: 56px 0 20px; } .section-head.tight h2 { font-size: clamp(26px, 2.8vw, 36px); }
.sum-profile { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(300px, .9fr); gap: 24px; align-items: center; padding: 8px 4px 0; }
.sum-profile h2 { margin: 6px 0 12px; font-size: clamp(34px, 4.2vw, 54px); } .sum-radar { display: grid; place-items: center; } .sum-radar .chart { max-width: 400px; }
.findings { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.finding { position: relative; display: flex; flex-direction: column; gap: 10px; padding: 22px; border-radius: 16px; background: var(--surface); box-shadow: var(--elev), inset 0 0 0 1px var(--border-2); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); overflow: hidden; isolation: isolate; }
.finding::before { content: ""; position: absolute; z-index: -1; right: -12%; bottom: -40%; width: 20rem; height: 20rem; border-radius: 50%; background: radial-gradient(closest-side, #3b82f624, #3b82f600); filter: blur(26px); pointer-events: none; }
.finding header { display: flex; align-items: center; gap: 8px; } .finding header .ph { width: 20px; height: 20px; margin: 0; color: var(--accent); }
.finding h3 { font-size: 17px; line-height: 1.25; }
.rank { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 8px; background: #ffffff14; color: #fff; font: 600 13px var(--display); flex: none; }
.f-stat b { display: block; font: 600 44px/1 var(--display); letter-spacing: -.03em; } .f-stat span { font-size: 13px; color: var(--text-3); }
.finding p { margin: 0; color: var(--text-2); font-size: 14.5px; line-height: 1.55; flex: 1; }
.finding footer { display: grid; gap: 10px; } .meter { display: block; width: 100%; height: 6px; }
.f-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 13px; color: var(--text-3); } .f-meta b { color: #fff; font-weight: 600; }
.f-meta a { display: inline-flex; align-items: center; color: #93c5fd; font-weight: 500; } .f-meta a .ph { margin: 0 0 0 5px; width: 14px; height: 14px; }
.strengths { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.strength { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 16px; background: #ffffff0a; box-shadow: inset 0 1px #ffffff08, inset 0 0 0 1px var(--border); }
.strength > .ph { width: 26px; height: 26px; margin: 2px 0 0; color: var(--good); flex: none; }
.strength b { font: 600 16px var(--display); } .strength em { font-style: normal; margin-left: 10px; color: var(--good); font-weight: 600; font-size: 14px; } .strength p { margin: 4px 0 0; color: var(--text-3); font-size: 13.5px; line-height: 1.45; }
.key-notes { margin: 10px 0 0; font-size: 13px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; } .key-notes > span:first-child { width: 58px; color: var(--text-3); } .key-notes .muted { color: var(--text-3); margin-right: 6px; }
.next-card { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-top: 40px; padding: 22px 26px; border-radius: 16px; background: #3b82f61a; box-shadow: inset 0 0 0 1px #3b82f650; }
.next-card > div:first-child .ph { width: 32px; height: 32px; margin: 0; color: var(--accent); } .next-card > div:nth-child(2) { flex: 1; min-width: 240px; } .next-card h3 { font-size: 20px; margin-bottom: 4px; } .next-card p { margin: 0; color: var(--text-2); font-size: 14.5px; }
.center-link { text-align: center; margin: 40px 0 0; }
.v-full > .toc { margin-top: 0; }
@media (max-width: 860px) { .sum-profile { grid-template-columns: 1fr; } .seg button { padding: 0 9px; } .seg button { font-size: 12px; } }
@media (max-width: 560px) { .seg button { font-size: 0; gap: 0; } .seg button .ph { margin: 0; } }

/* ---- Burst trainer ------------------------------------------------------------------------------------ */
.hero.tight { gap: 28px; }
.arena.burst-arena { height: 210px; display: grid; place-items: center; padding: 0 30px; font-size: clamp(32px, 4.4vw, 52px); scroll-behavior: auto; }
.burst-arena .words { justify-content: center; gap: 0 .9em; transition: opacity .12s ease; }
.burst-arena.gap .words { opacity: 0; }
.burst-arena.early { box-shadow: 0 25px 50px -12px #00000080, inset 0 0 0 1.5px #ff8f8fb3; }
.burst-arena .w.done { color: #ffffff59; }
.gapbar { height: 4px; border-radius: 2px; background: #ffffff12; overflow: hidden; }
.gapbar > div { height: 100%; width: 100%; background: var(--accent); border-radius: 2px; transform-origin: left; transform: scaleX(0); }
.gapbar.run > div { animation: gapfill var(--gap, 500ms) linear forwards; }
@keyframes gapfill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.h-sub { font-size: 22px; margin: 36px 0 12px; }
.chg { font-variant-numeric: tabular-nums; color: var(--text-2); } .chg.up { color: var(--good); } .chg.down { color: var(--bad); }
table.fatigue td:nth-child(n+2), table.fatigue th:nth-child(n+2) { text-align: right; }
.burst-arena .c { color: #ffffffb8; } .burst-arena .w.cur .c { color: #ffffffd9; } .burst-arena .c.ok { color: #fff; } .burst-arena .c.bad { color: var(--bad); }

/* ---- Endurance trainer --------------------------------------------------------------------------------- */
.test-bar.opts { margin: 2px 0 6px; }
.overlay.rest { background: #000000b8; gap: 4px; }
.overlay.rest b { font: 600 clamp(64px, 9vw, 104px)/1 var(--display); letter-spacing: -.04em; color: #fff; font-variant-numeric: tabular-nums; }
.overlay.rest small { font-size: 15px; color: var(--text-2); }
.arena.early { box-shadow: 0 25px 50px -12px #00000080, inset 0 0 0 1.5px #ff8f8fb3; }
#e-status { margin: 10px 2px 0; }

/* ---- Endurance modes, ghost, workout ------------------------------------------------------------------- */
.hide { display: none !important; }
.mode-tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; background: #ffffff0f; box-shadow: inset 0 0 0 1px var(--border-2); }
.mode-tabs a { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 16px; border-radius: 10px; font: 500 14px var(--sans); color: var(--text-2); transition: background .2s ease, color .2s ease; }
.mode-tabs a .ph { margin: 0; width: 17px; height: 17px; } .mode-tabs a:hover { color: #fff; text-decoration: none; background: #ffffff14; } .mode-tabs a.on { background: #fff; color: #000; }
.pace-form { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--text-2); } .pace-form label { display: inline-flex; align-items: center; gap: 6px; }
.pace-hint { margin: 2px 2px 6px; }
.ghost-lead { font-variant-numeric: tabular-nums; min-width: 9.5em; text-align: right; color: var(--text-3); } .ghost-lead.ahead { color: var(--good); } .ghost-lead.behind { color: var(--bad); }
.c.ghost { background: #d959264d; box-shadow: inset 0 -2px 0 #d95926; border-radius: 3px; }
.wo-banner { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: #3b82f61f; box-shadow: inset 0 0 0 1px #3b82f655; font-size: 14px; color: #ffffffd9; }
.wo-banner .ph { margin: 0; color: var(--accent); } .wo-banner b { color: #fff; } .wo-banner a { padding: 5px 12px; border-radius: 999px; background: #ffffff14; font-size: 12.5px; color: var(--text-2); } .wo-banner a:hover { background: #ffffff24; color: #fff; text-decoration: none; }
.wo-resume { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 18px; padding: 10px 12px 10px 18px; border-radius: 14px; background: #3b82f61f; box-shadow: inset 0 0 0 1px #3b82f655; font-size: 14px; color: #ffffffd9; }
.wo-resume .ph { color: var(--accent); } .wo-resume b { color: #fff; } .wo-resume .btn { margin-left: auto; }
.wo-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; margin-top: 8px; }
.wo-card { position: relative; overflow: hidden; isolation: isolate; padding: 24px; border-radius: 16px; background: var(--surface); box-shadow: var(--elev), inset 0 0 0 1px var(--border-2); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.wo-card::before { content: ""; position: absolute; z-index: -1; right: -10%; bottom: -40%; width: 22rem; height: 22rem; border-radius: 50%; background: radial-gradient(closest-side, #3b82f629, #3b82f600); filter: blur(28px); pointer-events: none; }
.wo-card header h3 { font-size: 24px; } .wo-card header p { margin: 4px 0 14px; color: var(--text-3); font-size: 14px; }
.wo-preview { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 2px; }
.wo-preview li { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 10px; } .wo-preview li:hover { background: #ffffff0a; }
.wo-preview .ph { width: 18px; height: 18px; margin: 0; color: var(--accent); flex: none; } .wo-preview b { font-weight: 500; font-size: 14.5px; } .wo-preview em { display: block; font-style: normal; font-size: 12.5px; color: var(--text-3); }
.wo-note { max-width: 70ch; margin: 22px 2px 0; }
.wo-continue { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 14px; background: #3b82f61f; box-shadow: inset 0 0 0 1px #3b82f655; color: #fff; } .wo-continue .ph { margin: 0; color: var(--accent); } .wo-continue:hover { background: #3b82f62e; text-decoration: none; }
.wo-title { font-size: clamp(36px, 4.6vw, 58px); margin: 4px 0 6px; }
.wo-progress { margin-top: 14px; max-width: 520px; } .wo-bar { display: flex; gap: 4px; } .wo-bar i { flex: 1; height: 6px; border-radius: 3px; background: #ffffff14; } .wo-bar i.on { background: var(--accent); } .wo-bar i.cur { background: #ffffff59; }
.wo-path { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; counter-reset: none; }
.wo-step { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 16px; background: #ffffff0a; box-shadow: inset 0 0 0 1px var(--border); }
.wo-step.next { background: var(--surface); box-shadow: var(--elev), inset 0 0 0 1px #3b82f68c; backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.wo-step.later { opacity: .6; }
.wo-num { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: #ffffff12; font: 600 15px var(--display); } .wo-step.done .wo-num { background: transparent; } .wo-num .ph { width: 28px; height: 28px; margin: 0; color: var(--good); } .wo-step.next .wo-num { background: #fff; color: #000; }
.wo-body header { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; } .wo-body header .ph { width: 18px; height: 18px; margin: 0; color: var(--accent); } .wo-body h3 { font-size: 17px; } .wo-meta { font-size: 12.5px; color: var(--text-3); }
.wo-body p { margin: 4px 0 0; font-size: 14px; color: var(--text-2); line-height: 1.5; max-width: 70ch; } .wo-body .wo-result { color: #fff; font-weight: 500; }
.wo-later { font-size: 12.5px; color: var(--text-3); }
.wo-summary { margin-top: 8px; } .wo-summary .actions { margin: 20px 0 0; justify-content: flex-start; }
@media (max-width: 640px) { .wo-step { grid-template-columns: 32px 1fr; } .wo-act { grid-column: 2; } .mode-tabs a { padding: 0 11px; } }

/* ---- accounts ---- */
.auth { display: flex; justify-content: center; padding: 28px 0 8px; }
.auth-card { width: min(440px, 100%); padding: 30px 28px 26px; border-radius: 18px; background: var(--surface); box-shadow: var(--elev), inset 0 0 0 1px var(--border-2); backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%); }
.auth-h { margin: 0 0 6px; font-size: 32px; line-height: 1.1; }
.auth-sub { margin: 0 0 22px; color: var(--text-2); font-size: 15px; }
.auth-form { display: grid; gap: 14px; margin: 0; }
.auth-form.again { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.field { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; color: var(--text-2); }
.field input { height: 44px; padding: 0 14px; border: 0; border-radius: 11px; background: #ffffff0f; box-shadow: inset 0 0 0 1px var(--border-2); color: #fff; font: 400 15px var(--sans); outline: none; transition: box-shadow .2s ease, background .2s ease; }
.field input:hover { background: #ffffff16; } .field input:focus { background: #ffffff16; box-shadow: inset 0 0 0 1.5px var(--accent); }
.field input[aria-invalid="true"] { box-shadow: inset 0 0 0 1.5px var(--bad); }
.field em { font-style: normal; font-weight: 400; font-size: 12.5px; color: var(--text-3); }
.auth-btn { width: 100%; height: 46px; justify-content: center; margin-top: 4px; }
.auth-alt { margin: 20px 0 0; text-align: center; font-size: 14px; color: var(--text-3); } .auth-alt a { color: #fff; }
.auth-note { margin: 0; font-size: 14px; color: var(--text-2); }
.form-error { display: flex; align-items: flex-start; gap: 8px; margin: 0; padding: 11px 14px; border-radius: 11px; background: #ff8f8f1a; box-shadow: inset 0 0 0 1px #ff8f8f40; color: #ffc4c4; font-size: 14px; } .form-error .ph { flex: none; margin-top: 3px; color: var(--bad); }
.sb-account { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 0; padding: 8px 8px 8px 12px; border-radius: 12px; background: #ffffff0a; box-shadow: inset 0 0 0 1px var(--border); }
.sb-who { display: inline-flex; align-items: center; gap: 8px; min-width: 0; font-size: 14px; color: var(--text-2); } .sb-who .ph { flex: none; width: 18px; height: 18px; margin: 0; color: var(--accent); } .sb-who b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; color: #fff; }
.cal { overflow-x: auto; padding-bottom: 4px; } .cal .chart { min-width: 520px; width: 100%; max-width: 680px; height: auto; }
code.pair { padding: 2px 8px; border-radius: 7px; background: #ffffff12; font: 600 13px var(--mono); letter-spacing: .06em; color: #fff; }
.foot-hint { margin-top: 56px; } .foot-hint a { display: inline-flex; align-items: center; gap: 6px; }
.drill-tag { display: inline-flex; align-items: center; gap: 5px; color: var(--accent); } .drill-tag .ph { margin: 0; width: 14px; height: 14px; }

/* ---- profile layout ---- */
.pf-head { display: grid; gap: 22px; margin: 6px 0 20px; }
.pf-id { display: flex; align-items: center; gap: 18px; }
.pf-avatar { display: grid; place-items: center; flex: none; width: 64px; height: 64px; border-radius: 20px; font: 600 30px var(--display); color: #fff; background: linear-gradient(135deg, #3b82f6, #6366f1); box-shadow: 0 10px 30px -10px #3b82f6aa, inset 0 1px #ffffff40; }
.pf-name { margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.05; letter-spacing: -.03em; overflow-wrap: anywhere; }
.pf-meta { margin: 4px 0 0; font-size: 14px; color: var(--text-3); } .pf-meta b { color: var(--text-2); font-weight: 600; }
.pf-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.pf-tabs { margin: 0 0 26px; overflow-x: auto; scrollbar-width: none; } .pf-tabs::-webkit-scrollbar { display: none; }
.pf-tabs .mode-tabs { min-width: max-content; }
.pf-body { display: grid; gap: 16px; }
.pf-body > .panel.wide, .pf-body > .next-card { margin: 0; }
.pf-note { margin: 0; font-size: 14px; color: var(--text-3); max-width: 80ch; }
.pf-next { align-items: center; }
.pf-next code.pair { margin-right: 4px; }
@media (max-width: 900px) { .pf-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pf-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pf-avatar { width: 52px; height: 52px; font-size: 24px; } }
.pf-body > .grid { align-items: stretch; }
.cal .chart { max-width: 820px; }

/* ---- Landing: one fixed screen, always ready to type ----------------------------------------------------- */
.hero-sub { color: #ffffffd1; font-weight: 300; font-size: 19px; }
.byline { color: #ffffffe0; font-size: 17px; }
body.home .live { color: #ffffffb8; } body.home .timer span { color: #ffffffa0; }

/* The text: bigger and bright white. Upcoming words are clearly readable, the current word is brighter,
   what you have typed is full white, and finished words fall back so your eyes stay on the caret. */
.arena.caret { font-size: 34px; line-height: 1.7; }
/* Tight boxes: the box is as tall as its text plus even padding, not a tall empty panel. */
.arena.caret.block { height: calc(1.7em * 3 + 34px); padding: 22px 30px 0; -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 14px), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 14px), transparent); }
.arena.caret.tape { height: calc(1.7em + 84px); display: grid; align-content: center; padding: 0; }
.arena.caret.tape .words { padding: 0; }
.arena.caret .c { color: #ffffffb0; }
.arena.caret .w.cur .c { color: #ffffffe6; }
.arena.caret .c.ok { color: #fff; }
.arena.caret .c.bad { color: #ff7b7b; }
.arena.caret .w.done .c.ok { color: #ffffff42; }
.arena.caret .w.done { color: #ffffff42; }
.arena.caret .c.next { border-bottom: 0; position: relative; }
.arena.caret .c.next.end { display: inline-block; width: 0; }

/* The caret: a thin blinking line on the next letter (block) or at the fixed reading point (tape).
   It blinks while you have not started and holds steady once you type. */
@keyframes caret-blink { 0%, 55% { opacity: 1; } 55.01%, 100% { opacity: 0; } }
.arena.caret.block .c.next::before { content: ""; position: absolute; left: -1px; top: .1em; bottom: .1em; width: 2px; border-radius: 1px; background: #5b9bff; box-shadow: 0 0 12px #5b9bffb3; }
.arena.caret.block:not(.running) .c.next::before { animation: caret-blink 1.1s steps(1, end) infinite; }
.arena.caret.tape::after { opacity: 1; top: calc(50% - .72em); bottom: auto; height: 1.44em; width: 2px; background: #5b9bff; box-shadow: 0 0 12px #5b9bffb3; }
.arena.caret.tape:not(.running)::after { animation: caret-blink 1.1s steps(1, end) infinite; }
.arena.caret:focus-visible { box-shadow: 0 25px 50px -12px #00000080, inset 0 0 0 1px var(--border-2); }
.arena.caret.running, .arena.caret.running:focus-visible { box-shadow: 0 25px 50px -12px #00000080, inset 0 0 0 1px #3b82f666, 0 0 50px -12px #3b82f666; }

.keys-hint { margin: 14px 0 0; text-align: center; font-size: 12.5px; color: #ffffff6e; transition: opacity .5s ease; } .keys-hint span { margin: 0 6px; }
.keys-hint kbd { margin-right: 3px; padding: 2px 7px; border-radius: 6px; background: #ffffff14; color: #ffffffb8; font: 600 11px var(--mono); }
body.focus .keys-hint { opacity: 0; }

/* On a normal desktop screen the whole landing page is one fixed screen: nothing to scroll, nothing to snap to. */
@media (min-width: 901px) and (min-height: 680px) {
  body.home { height: 100vh; overflow: hidden; }
  /* Anchored from the top, so switching Block/Tape only changes what is below the box. If a window is
     too short for everything (big zoom), the page scrolls inside main instead of cutting the headline off. */
  body.home main { height: 100vh; overflow-y: auto; max-width: 1040px; padding: clamp(20px, 8vh, 84px) 32px 44px; scrollbar-width: none; }
  body.home main::-webkit-scrollbar { display: none; }
  body.home .hero { padding: 0; gap: 26px; }
  body.home .hero-copy { gap: 14px; }
  body.home .hero-sub { max-width: 760px; font-size: 18px; }
  body.home .site-foot { position: fixed; left: var(--sb-w); right: 0; bottom: 0; padding: 0 28px 10px; pointer-events: none; }
  body.home .foot-panel { padding: 4px 0; background: transparent; box-shadow: none; justify-content: center; }
  body.home .foot-brand { display: none; }
  body.home .foot-note { text-align: center; font-size: 12.5px; color: #ffffff59; }
}
