/* CS2 Performance Lab — competitive-gaming shell.
   Geometry: sheared panels, square data entry. Accent: one amber, used as a system. */

/* ---------- Reset ---------- */
*, ::before, ::after { box-sizing: border-box; border: 0 solid; }
body, h1, h2, h3, p, fieldset, ul, ol { margin: 0; }
fieldset, ul, ol { padding: 0; }
ul, ol { list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { margin: 0; font: inherit; color: inherit; background: transparent; }
button { padding: 0; }
img, svg { display: block; }
img { max-width: 100%; }
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

:root {
  color-scheme: dark;

  /* One cool scale, deepest to lightest. */
  --void: #070B10;
  --bg: #0C1218;
  --panel: #121A22;
  --raised: #1A242E;
  --line: #22303C;
  --line-hi: #35495C;

  --ink: #EDF2F7;
  --muted: #94A6B8;
  --faint: #6B7F93;

  /* One signal colour. */
  --amber: #F0A030;
  --amber-hi: #FFBE5C;
  --ok: #4FD69C;
  --warn: #F2C94C;
  --error: #FF8A7D;

  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --font-display: "Bahnschrift", "DIN Alternate", "PingFang SC", "Microsoft YaHei UI", var(--font-sans);
  --font-mono: "Cascadia Mono", "Consolas", ui-monospace, "SFMono-Regular", monospace;

  /* The chassis: a cut corner instead of a radius. */
  --cut: 12px;
  --shear: polygon(var(--cut) 0, 100% 0, 100% calc(100% - var(--cut)), calc(100% - var(--cut)) 100%, 0 100%, 0 var(--cut));
}

html { scroll-behavior: smooth; background: var(--bg); }
body { min-width: 0; overflow-x: clip; color: var(--ink); font-family: var(--font-sans); font-size: 1rem; line-height: 1.6; }
:where(a[href], button, summary, select, label[for], .problem-card, .model-menu [role="option"]) { cursor: var(--control-cursor, pointer); }
button:disabled { cursor: var(--blocked-cursor, not-allowed); }
.benchmarks-dialog::backdrop { cursor: var(--control-cursor, pointer); }
:focus-visible { outline: 2px solid var(--amber-hi); outline-offset: 3px; }
[id] { scroll-margin-top: 24px; }
::selection { color: var(--void); background: var(--amber); }

@media (forced-colors: none) {
  :where(input, textarea) { caret-color: var(--amber-hi); }
}

/* A crosshair pointer belongs to the subject, so it stays. */
@media (any-hover: hover) and (any-pointer: fine) and (forced-colors: none) {
  html {
    --control-cursor: url("./assets/cursor-hand.png") 9 3, pointer;
    --blocked-cursor: url("./assets/cursor-blocked.png") 12 12, not-allowed;
    cursor: url("./assets/crosshair-cursor.png") 12 12, crosshair;
  }
  :where(input:not([type]), input[type="text"], input[type="number"], textarea, pre) {
    cursor: url("./assets/cursor-text.png") 12 12, text;
  }
  textarea::-webkit-resizer { cursor: url("./assets/cursor-resize.png") 12 12, ns-resize; }
}

.frame { width: min(1180px, calc(100% - 80px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; inset: 8px auto auto 8px; transform: translateY(-200%); padding: 11px 18px; color: var(--void); background: var(--amber); font-weight: 700; clip-path: var(--shear); --cut: 8px; }
.skip-link:focus { transform: translateY(0); }

/* ---------- Header ---------- */
.site-header { position: sticky; z-index: 10; top: 0; border-bottom: 1px solid var(--line); background: rgb(7 11 16 / .88); backdrop-filter: blur(14px) saturate(1.25); }
.header-inner { min-height: 68px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font-family: var(--font-display); font-size: 1.125rem; font-weight: 700; font-stretch: 87.5%; letter-spacing: .01em; line-height: 1.2; }
.brand-mark { display: grid; flex: 0 0 auto; place-items: center; width: 34px; height: 34px; color: var(--void); background: var(--amber); clip-path: var(--shear); --cut: 7px; }
.brand-mark svg { width: 20px; height: 20px; }
.header-nav { gap: clamp(22px, 3vw, 40px); }
.nav-link { position: relative; display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; color: var(--muted); font-size: .9375rem; font-weight: 600; transition: color .15s; }
.nav-link::after { content: ""; position: absolute; inset: auto 0 14px; height: 2px; background: var(--amber); transform: scaleX(0); transform-origin: left; transition: transform .18s ease; }
.nav-link:hover { color: var(--ink); }
.nav-link:hover::after { transform: scaleX(1); }

/* ---------- Buttons ---------- */
.button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 46px;
  padding: 11px 22px; clip-path: var(--shear); --cut: 10px;
  font-family: var(--font-display); font-size: .9375rem; font-weight: 700; font-stretch: 87.5%;
  letter-spacing: .055em; line-height: 1.3; text-align: center; text-transform: uppercase;
  transition: background .15s, color .15s;
}
.button svg { flex-shrink: 0; }
.button:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--void), inset 0 0 0 4px var(--amber-hi); }
.button-primary { min-height: 50px; color: var(--void); background: var(--amber); }
.button-primary:hover:not(:disabled) { background: var(--amber-hi); }
.button-primary:disabled { color: var(--faint); background: var(--raised); }
.button-secondary { color: var(--ink); background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-hi); }
.button-secondary:hover { color: var(--amber-hi); background: var(--panel); }
.button-secondary:focus-visible { box-shadow: inset 0 0 0 2px var(--void), inset 0 0 0 4px var(--amber-hi); }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; background: var(--void); }
.hero-art { position: absolute; z-index: -1; inset: 0; overflow: hidden; }
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 72% 44%; filter: contrast(1.06); }
.hero-art::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    linear-gradient(0deg, var(--void), rgb(7 11 16 / .35) 42%, transparent 72%),
    linear-gradient(90deg, var(--void) 22%, rgb(7 11 16 / .8) 48%, rgb(7 11 16 / .2) 76%, transparent);
}
/* The one bold move: an angled band edge with a hot hairline. */
.hero::after {
  content: ""; position: absolute; z-index: 1; inset: auto 0 -1px; height: 104px; pointer-events: none;
  background:
    linear-gradient(to top left,
      transparent calc(50% - 4.6px), var(--amber) calc(50% - 3.4px),
      var(--amber) calc(50% - 1.6px), transparent calc(50% - .4px)),
    var(--bg);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
}
.hero-inner { position: relative; display: flex; align-items: flex-end; min-height: clamp(540px, 60vh, 760px); padding-block: 104px 148px; }
.hero-content { min-width: 0; max-width: 40rem; }
.hero h1 {
  font-family: var(--font-display); font-size: clamp(2.75rem, 7vw, 5.5rem); font-weight: 700;
  font-stretch: 87.5%; line-height: .98; letter-spacing: -.01em;
}
.hero h1 span {
  display: flex; align-items: center; gap: 18px; margin-top: .4em;
  font-size: .2em; font-weight: 600; font-stretch: 100%; letter-spacing: .2em; line-height: 1.4; color: var(--ink);
}
.hero h1 span::before { content: ""; flex: 0 0 auto; width: 48px; height: 3px; background: var(--amber); }
.hero-description { max-width: 32rem; margin-top: 26px; color: var(--muted); font-size: 1.0625rem; line-height: 1.7; text-wrap: pretty; }
.hero-cta { gap: 14px; min-width: 200px; min-height: 56px; margin-top: 32px; padding-inline: 28px; font-size: 1.0625rem; }
.hero-cta svg { transition: transform .15s ease; }
.hero-cta:is(:hover, :focus-visible) svg { transform: translateX(4px); }
.hero-trust { margin-top: 18px; color: var(--faint); font-size: .875rem; }

/* ---------- Section headings ---------- */
.problem-intro h2, .hardware-intro h2, .how-header > h2, .faq-heading h2 {
  position: relative; padding-left: 18px; font-family: var(--font-display); font-size: clamp(1.625rem, 3vw, 2.5rem);
  font-weight: 700; font-stretch: 87.5%; line-height: 1.12; letter-spacing: -.008em;
}
.problem-intro h2::before, .hardware-intro h2::before, .how-header > h2::before, .faq-heading h2::before { content: ""; position: absolute; left: 0; top: .15em; bottom: .15em; width: 4px; background: var(--amber); }
.section-description { margin-top: 10px; padding-left: 18px; color: var(--muted); font-size: .9375rem; line-height: 1.7; }
/* Decorative tiles removed: icons stay only where they say which problem. */
.hardware-intro > .icon-tile, .faq-heading > .icon-tile, .how-grid .icon-tile { display: none; }

/* ---------- Form shell ---------- */
.test-form { padding-top: 72px; }
.test-fields { min-width: 0; }
.problem-section { display: grid; gap: 20px; min-width: 0; }
.problem-intro { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.problem-intro h2 { text-wrap: balance; }
.topic-count { flex: 0 0 auto; padding: 5px 11px; color: var(--amber-hi); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); font-family: var(--font-mono); font-size: .8125rem; font-variant-numeric: tabular-nums; }

/* ---------- Problem cards ---------- */
.problem-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.problem-card {
  position: relative; display: flex; align-items: center; gap: 14px; min-height: 92px;
  padding: 16px 44px 16px 20px; overflow: hidden;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--shear); --cut: 11px;
  transition: background .15s, box-shadow .15s;
}
.problem-card::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--amber);
  transform: scaleY(0); transform-origin: bottom; transition: transform .2s ease;
}
.problem-card:hover { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-hi); }
.problem-card:has(input:checked) { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-hi); }
.problem-card:has(input:checked)::after { transform: scaleY(1); }
.problem-card:has(input:focus-visible) { box-shadow: inset 0 0 0 2px var(--amber-hi); }
.problem-copy { display: grid; gap: 3px; min-width: 0; }
.problem-label { font-size: 1rem; font-weight: 700; }
.problem-hint { color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.problem-check {
  position: absolute; top: 16px; right: 16px; display: grid; place-items: center; width: 18px; height: 18px;
  box-shadow: inset 0 0 0 1px var(--line-hi); color: transparent;
  transition: color .15s, background .15s, box-shadow .15s;
}
.problem-card:has(input:checked) .problem-check { color: var(--void); background: var(--amber); box-shadow: none; }
.problem-section > .field-error { grid-column: 1 / -1; }

.icon-tile { display: grid; flex: 0 0 auto; width: 40px; height: 40px; place-items: center; color: var(--muted); }
.problem-card .icon-tile { width: auto; height: auto; }
.problem-card .icon-tile svg { width: 22px; height: 22px; }
.problem-card:has(input:checked) .icon-tile { color: var(--amber); }

/* ---------- Hardware panel ---------- */
.hardware-panel { margin-top: 40px; padding: clamp(22px, 4vw, 40px); background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); clip-path: var(--shear); --cut: 18px; }
.hardware-intro h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); }
.model-grid, .select-grid { display: grid; gap: 18px; }
.model-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 28px; }
.select-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 18px; }
.field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.field label { color: var(--ink); font-size: .8125rem; font-weight: 700; letter-spacing: .02em; }
.field-required, .field-optional { margin-left: 6px; font-size: .75rem; font-weight: 500; }
.field-required { color: var(--amber); }
.field-optional, .field-hint, .count { color: var(--faint); }
.field-hint, .field-error, .count { font-size: .8125rem; }
.field-error { color: var(--error); }
/* Data entry stays square — the shear is for chrome, not for text boxes. */
.field :is(input, textarea, select) {
  display: block; width: 100%; min-height: 48px; padding: 11px 14px; color: var(--ink);
  background: var(--void); box-shadow: inset 0 0 0 1px var(--line-hi); font-size: 1rem;
  transition: box-shadow .15s;
}
.field :is(input, textarea, select):focus { outline: none; box-shadow: inset 0 0 0 2px var(--amber-hi); }
.field [aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--error); }
.field :is(input, textarea)::placeholder { opacity: 1; color: var(--faint); }
.field textarea { min-height: 96px; resize: vertical; line-height: 1.6; }
.field :is(select, .model-control input) { padding-right: 40px; }
.field select { appearance: none; }
.field select:has(option[value=""]:checked) { color: var(--faint); }
.field option { color: var(--ink); background: var(--raised); }
.model-control, .select-control { position: relative; }
.control-icon { position: absolute; right: 14px; top: 16px; color: var(--faint); pointer-events: none; }
.model-menu {
  position: absolute; z-index: 3; inset: calc(100% + 4px) 0 auto; padding: 5px;
  background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-hi), 0 20px 44px rgb(0 0 0 / .6);
}
.model-menu ul { max-height: 216px; overflow-y: auto; }
.model-menu li { padding: 9px 11px; font-size: .875rem; }
.model-menu li:hover, .model-menu li[aria-selected="true"] { color: var(--void); background: var(--amber); font-weight: 600; }
.model-menu p { padding: 10px; color: var(--muted); font-size: .8125rem; }
.custom-number { margin-top: 12px; }
.static-custom-number { display: none; }
.field:has(select option[value="custom"]:checked) + .static-custom-number { display: flex; }
.notes { margin-top: 24px; }
.count { align-self: flex-end; font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.form-actions { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-top: 28px; padding-top: 24px; box-shadow: inset 0 1px var(--line); }
.form-actions p { display: flex; align-items: center; gap: 9px; color: var(--faint); font-size: .8125rem; }
.form-actions p svg { flex-shrink: 0; }
.form-actions .button { min-width: 168px; }

/* ---------- How it works: a real sequence, so it is numbered ---------- */
.how-section { position: relative; isolation: isolate; padding-block: 96px; background: var(--void); box-shadow: 0 0 0 100vmax var(--void); clip-path: inset(0 -100vmax); }
.how-section::before { content: ""; position: absolute; z-index: -1; inset: 0 -100vmax; background: repeating-linear-gradient(118deg, transparent 0 54px, rgba(255,255,255,.016) 54px 108px); pointer-events: none; }
.how-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px 20px; }
.how-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; margin-top: 40px; counter-reset: step; }
.how-grid li { min-width: 0; padding-top: 18px; box-shadow: inset 0 1px var(--line-hi); }
.how-grid li::before {
  counter-increment: step; content: "0" counter(step); display: block; color: var(--amber);
  font-family: var(--font-display); font-size: clamp(2.25rem, 4vw, 3.25rem); font-weight: 700;
  font-stretch: 75%; line-height: 1; font-variant-numeric: tabular-nums;
}
.how-grid h3 { margin: 18px 0 6px; font-size: 1.125rem; font-weight: 700; }
.how-grid p { color: var(--muted); font-size: .9375rem; }

/* ---------- FAQ ---------- */
.faq-section { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 2fr); gap: 36px; padding-block: 96px; }
.faq-heading h2 { position: sticky; top: 96px; }
.faq-list { display: grid; gap: 8px; }
.faq-list details { position: relative; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); transition: background .15s, box-shadow .15s; }
.faq-list details::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--amber); transform: scaleY(0); transition: transform .2s ease; }
.faq-list details:hover { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-hi); }
.faq-list details[open] { background: var(--raised); box-shadow: inset 0 0 0 1px var(--line-hi); }
.faq-list details[open]::before { transform: scaleY(1); }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 14px; list-style: none; padding: 16px 20px; font-weight: 700; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { flex-shrink: 0; color: var(--faint); transition: transform .2s, color .15s; }
.faq-list details[open] summary svg { transform: rotate(180deg); color: var(--amber); }
.faq-list details p { padding: 0 48px 18px 20px; color: var(--muted); font-size: .9375rem; line-height: 1.75; }
@supports (interpolate-size: allow-keywords) and selector(::details-content) {
  .faq-list details::details-content {
    interpolate-size: allow-keywords;
    block-size: 0;
    overflow: clip;
    transition: block-size .22s ease, content-visibility .22s allow-discrete;
  }
  .faq-list details[open]::details-content { block-size: auto; }
}

/* ---------- Footer ---------- */
.site-footer { background: var(--void); box-shadow: inset 0 1px var(--line); }
.footer-privacy { padding-block: 24px; }
.footer-privacy summary { display: flex; align-items: center; gap: 9px; width: fit-content; color: var(--faint); font-size: .875rem; list-style: none; }
.footer-privacy summary::-webkit-details-marker { display: none; }
.footer-privacy[open] summary svg:last-child { transform: rotate(180deg); }
.footer-privacy p { max-width: 68ch; margin-top: 10px; color: var(--faint); font-size: .8125rem; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
}

/* ---------- Image verification and network result ---------- */
[hidden] { display: none !important; }
body:has(dialog:modal) { overflow: hidden; }
.test-modal {
  inset: 0;
  width: min(500px, calc(100% - 28px));
  max-width: none;
  max-height: calc(100dvh - 24px);
  padding: 0;
  margin: auto;
  color: var(--ink);
  background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line-hi), 0 32px 90px rgb(0 0 0 / .75);
  clip-path: var(--shear);
  --cut: 16px;
  overscroll-behavior: contain;
}
.test-modal::backdrop { background: rgb(5 8 12 / .82); backdrop-filter: blur(5px); cursor: var(--control-cursor, pointer); }
.test-modal-inner { position: relative; padding: clamp(20px, 5vw, 32px); overflow-wrap: anywhere; }
.test-modal-close {
  position: absolute; top: 14px; right: 14px; display: grid; place-items: center;
  width: 38px; height: 38px; color: var(--faint); transition: background .15s, color .15s;
}
.test-modal-close:hover { background: var(--raised); color: var(--ink); }
.test-modal .icon-tile { width: 42px; height: 42px; color: var(--void); background: var(--amber); clip-path: var(--shear); --cut: 9px; }
.test-modal .icon-tile svg { width: 22px; height: 22px; }
.test-modal-title { margin-top: 18px; font-family: var(--font-display); font-size: clamp(1.5rem, 4.5vw, 2rem); font-weight: 700; font-stretch: 87.5%; line-height: 1.14; letter-spacing: -.005em; }
.test-modal-description { margin-top: 8px; color: var(--muted); font-size: .9375rem; }

.puzzle-board {
  position: relative;
  width: min(100%, 296px, 47dvh);
  aspect-ratio: 1;
  margin: 26px auto 20px;
  overflow: hidden;
  border-radius: 50%;
  background: var(--void);
  box-shadow: 0 0 0 1px var(--line-hi), 0 0 0 7px var(--void), 0 0 0 8px var(--line);
}
.puzzle-board-image { display: block; width: 100%; height: 100%; object-fit: fill; }
.puzzle-piece-image {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56.25%;
  height: 56.25%;
  border-radius: 50%;
  transform: translate(-50%, -50%) rotate(var(--puzzle-rotation, 0deg));
}
.puzzle-seam {
  position: absolute;
  inset: 50% auto auto 50%;
  width: 56.25%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgb(240 160 48 / .55), inset 0 0 0 1px rgb(7 11 16 / .55);
  pointer-events: none;
}
.puzzle-board img { pointer-events: none; user-select: none; }
.puzzle-controls { display: grid; grid-template-columns: minmax(0, 1fr) 48px; gap: 10px; margin-top: 16px; }
.puzzle-slider {
  --slider-thumb: var(--amber);
  appearance: none;
  display: block;
  width: 100%;
  min-width: 0;
  height: 48px;
  margin: 0;
  background:
    repeating-linear-gradient(90deg, var(--line-hi) 0 1px, transparent 1px 13px) 50% / 100% 9px no-repeat,
    linear-gradient(90deg, rgb(240 160 48 / .26) var(--puzzle-progress, 0%), var(--void) var(--puzzle-progress, 0%));
  box-shadow: inset 0 0 0 1px var(--line-hi);
  cursor: var(--control-cursor, ew-resize);
  touch-action: none;
}
.puzzle-slider::-webkit-slider-thumb {
  appearance: none;
  width: 20px;
  height: 46px;
  background: var(--slider-thumb);
}
.puzzle-slider::-moz-range-thumb {
  box-sizing: border-box;
  width: 20px;
  height: 46px;
  border: 0;
  border-radius: 0;
  background: var(--slider-thumb);
}
.puzzle-slider:hover { --slider-thumb: var(--amber-hi); }
.puzzle-slider:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--amber-hi); }
.puzzle-refresh {
  display: grid;
  place-items: center;
  height: 48px;
  color: var(--muted);
  background: var(--raised);
  box-shadow: inset 0 0 0 1px var(--line-hi);
  transition: color .15s, background .15s;
}
.puzzle-refresh:hover { color: var(--amber-hi); background: var(--panel); }
.puzzle-slider:disabled, .puzzle-refresh:disabled { opacity: .45; }
.puzzle-status { margin-top: 12px; color: var(--error); font-size: .875rem; }
.puzzle-status:empty { margin-top: 0; }
#local-puzzle-preview { margin-top: 14px; }

@media (max-height: 540px) {
  .captcha-modal .icon-tile { display: none; }
  .captcha-modal .test-modal-title { margin-top: 0; padding-right: 36px; }
}

.result-destination {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px;
  padding: 14px 16px; margin-block: 22px 14px; background: var(--void); box-shadow: inset 0 0 0 1px var(--line);
}
.result-destination dt { color: var(--faint); font-size: .75rem; letter-spacing: .02em; }
.result-destination dd { margin: 0; font-family: var(--font-mono); font-size: .9375rem; }
.result-destination:has(> [hidden]) { grid-template-columns: minmax(0, 1fr); }
.result-copy { width: 100%; margin-top: 6px; }
.result-copy-status { margin-top: 10px; color: var(--ok); font-size: .8125rem; }
.result-copy-status.field-error { color: var(--error); }
.result-copy-status:empty { display: none; }
.result-preview summary {
  display: flex; align-items: center; gap: 7px; width: fit-content; min-height: 40px;
  color: var(--muted); font-size: .875rem; list-style: none; transition: color .15s;
}
.result-preview summary::-webkit-details-marker { display: none; }
.result-preview summary:hover { color: var(--ink); }
.result-preview[open] summary svg { transform: rotate(180deg); }
.result-preview pre {
  padding: 13px 15px; margin: 0 0 14px; background: var(--void); box-shadow: inset 0 0 0 1px var(--line);
  color: var(--amber-hi); font-family: var(--font-mono); font-size: .875rem;
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.result-instructions, .result-notice { padding: 16px 18px; background: var(--void); box-shadow: inset 0 0 0 1px var(--line); }
.result-instructions h3, .result-notice h3 { font-size: .9375rem; font-weight: 700; }
.result-instructions ol { display: grid; gap: 10px; margin-top: 12px; counter-reset: steps; }
.result-instructions li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; color: var(--muted); font-size: .875rem; line-height: 1.55; }
.result-instructions li::before {
  content: counter(steps); counter-increment: steps; color: var(--amber);
  font-family: var(--font-mono); font-size: .8125rem; font-weight: 700; line-height: 1.55;
}
.result-notice { display: flex; gap: 12px; margin-top: 12px; }
.result-notice svg { flex-shrink: 0; margin-top: 3px; color: var(--warn); }
.result-notice h3 { color: var(--warn); }
.result-notice p { margin-top: 5px; color: var(--muted); font-size: .8125rem; line-height: 1.65; }

/* ---------- Player benchmarks ---------- */
button.benchmarks-launch { min-height: 42px; margin-inline-start: auto; padding: 9px 16px; font-size: .8125rem; }
.benchmarks-launch svg { color: var(--faint); }
.benchmarks-launch:hover svg { color: var(--amber-hi); }
.benchmarks-dialog {
  --panel-height: min(620px, calc(100dvh - 28px));
  inset: 0 clamp(18px, 4vw, 54px) 0 auto;
  width: min(470px, calc(100% - 28px));
  max-width: none;
  max-height: var(--panel-height);
  margin: auto 0;
  overflow: hidden;
  background: var(--panel);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--line-hi), 0 24px 70px rgb(0 0 0 / .65);
  clip-path: var(--shear);
  --cut: 14px;
}
.benchmarks-dialog::backdrop { background: rgb(5 8 12 / .62); }
.benchmarks-inner { display: flex; flex-direction: column; max-height: var(--panel-height); padding: clamp(16px, 3vw, 24px); }
.benchmarks-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; }
.benchmarks-heading h2 { font-family: var(--font-display); font-size: clamp(1.1875rem, 4vw, 1.5rem); font-weight: 700; font-stretch: 87.5%; line-height: 1.2; }
.benchmarks-label { padding: 3px 9px; color: var(--amber); background: var(--void); box-shadow: inset 0 0 0 1px var(--line-hi); font-family: var(--font-mono); font-size: .6875rem; }
.benchmarks-close { display: grid; place-items: center; width: 34px; height: 34px; margin-inline-start: auto; color: var(--faint); transition: background .15s, color .15s; }
.benchmarks-close:hover { background: var(--raised); color: var(--ink); }
.benchmarks-description { margin-top: 8px; color: var(--muted); font-size: .8125rem; line-height: 1.6; }
.benchmarks-panel { min-height: 0; overflow: auto; overscroll-behavior: contain; margin-top: 16px; background: var(--void); box-shadow: inset 0 0 0 1px var(--line); }
.benchmarks-panel:focus-visible { outline-offset: -2px; }
.benchmarks-table { width: 100%; table-layout: fixed; border-collapse: collapse; overflow-wrap: anywhere; }
.benchmarks-playerColumn { width: 24%; }
.benchmarks-hardwareColumn { width: 42%; }
.benchmarks-table :is(th, td) { padding: 10px 11px; text-align: left; font-size: .8125rem; }
.benchmarks-table thead th { position: sticky; top: 0; box-shadow: inset 0 -1px var(--line-hi); background: var(--raised); color: var(--faint); font-size: .6875rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.benchmarks-table tbody th { color: var(--ink); font-weight: 700; }
.benchmarks-table td { color: var(--muted); font-family: var(--font-mono); font-variant-numeric: tabular-nums; }
.benchmarks-table td:first-of-type { font-family: var(--font-sans); }
.benchmarks-table tbody tr + tr { box-shadow: inset 0 1px var(--line); }
.benchmarks-table td small { display: block; color: var(--faint); font-size: .92em; }
.benchmarks-table .benchmarks-fps { color: var(--amber-hi); font-weight: 700; }
.benchmarks-table td .benchmarks-unit { display: inline; color: var(--faint); font-weight: 400; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .frame { width: calc(100% - 48px); }
  .problem-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .select-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .frame { width: calc(100% - 28px); }
  .header-inner { min-height: 60px; gap: 12px; }
  .brand { font-size: 1rem; gap: 10px; }
  .brand-mark { width: 30px; height: 30px; --cut: 6px; }
  .brand-mark svg { width: 18px; height: 18px; }
  .hero::after { height: 52px; }
  .hero-inner { min-height: auto; padding-block: clamp(200px, 46vw, 300px) 76px; }
  .hero-content { width: 100%; }
  .hero-art { bottom: auto; height: clamp(252px, 66vw, 388px); }
  .hero-art::after { background: linear-gradient(0deg, var(--void) 2%, rgb(7 11 16 / .86) 26%, transparent 68%); }
  .hero-image { object-position: 86% 35%; }
  .hero h1 { font-size: clamp(2.25rem, 9vw, 3.75rem); }
  .hero h1 span { gap: 12px; font-size: .26em; letter-spacing: .14em; }
  .hero h1 span::before { width: 30px; }
  .hero-description { margin-top: 18px; font-size: 1rem; }
  .hero-cta { margin-top: 24px; }
  .test-form { padding-top: 48px; }
  .model-grid { margin-top: 22px; }
  .select-grid, .model-grid { grid-template-columns: 1fr; gap: 16px; }
  .model-menu { position: static; margin-top: 4px; }
  .model-menu ul { max-height: 158px; }
  .hardware-panel { margin-top: 28px; --cut: 14px; }
  .form-actions { flex-direction: column; align-items: stretch; }
  .form-actions .button { order: -1; }
  .how-section { padding-block: 64px; }
  .how-grid { gap: 20px; margin-top: 28px; }
  .faq-section { grid-template-columns: 1fr; gap: 20px; padding-block: 64px; }
  .faq-heading h2 { position: relative; top: auto; }
}

@media (max-width: 700px) {
  .benchmarks-dialog { inset-inline: 0; margin-inline: auto; }
}

@media (max-width: 470px) {
  .hero-cta { width: 100%; }
  .problem-grid { gap: 8px; }
  .problem-card { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 116px; padding: 15px 40px 15px 17px; }
  .problem-label { font-size: .9375rem; }
  .hardware-panel { padding: 20px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-grid li { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 16px; padding-top: 14px; }
  .how-grid li::before { grid-row: span 2; font-size: 2.25rem; }
  .how-grid h3 { margin: 0 0 2px; }
}

@media (max-width: 430px) {
  .benchmarks-heading h2 { font-size: 1.0625rem; }
  .benchmarks-playerColumn { width: 26%; }
  .benchmarks-hardwareColumn { width: 38%; }
  .benchmarks-table :is(th, td) { padding-inline: 8px; font-size: .78125rem; }
}
