/*
 * RunCheck design system. Neutral surfaces and ink for actions; color is reserved for meaning:
 * green = runs (recommended), amber = minimum, red = won't run, gray = unknown.
 * Every color token holds both themes (light-dark()); data-theme on <html> pins one.
 */

/* ---------- fonts (self-hosted, split by script: browsers fetch only what a page uses) ---------- */

@font-face { font-family: 'FiraGO'; font-weight: 400; font-display: swap; src: url('../fonts/firago-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2248, U+FEFF, U+FFFD; }
@font-face { font-family: 'FiraGO'; font-weight: 500; font-display: swap; src: url('../fonts/firago-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2248, U+FEFF, U+FFFD; }
@font-face { font-family: 'FiraGO'; font-weight: 600; font-display: swap; src: url('../fonts/firago-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2248, U+FEFF, U+FFFD; }
@font-face { font-family: 'FiraGO'; font-weight: 700; font-display: swap; src: url('../fonts/firago-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2190-2199, U+2212, U+2215, U+2248, U+FEFF, U+FFFD; }
@font-face { font-family: 'FiraGO'; font-weight: 400; font-display: swap; src: url('../fonts/firago-georgian-400.woff2') format('woff2'); unicode-range: U+10A0-10FF, U+2D00-2D2F; }
@font-face { font-family: 'FiraGO'; font-weight: 500; font-display: swap; src: url('../fonts/firago-georgian-500.woff2') format('woff2'); unicode-range: U+10A0-10FF, U+2D00-2D2F; }
@font-face { font-family: 'FiraGO'; font-weight: 600; font-display: swap; src: url('../fonts/firago-georgian-600.woff2') format('woff2'); unicode-range: U+10A0-10FF, U+2D00-2D2F; }
@font-face { font-family: 'FiraGO'; font-weight: 700; font-display: swap; src: url('../fonts/firago-georgian-700.woff2') format('woff2'); unicode-range: U+10A0-10FF, U+2D00-2D2F; }
@font-face { font-family: 'FiraGO'; font-weight: 400; font-display: swap; src: url('../fonts/firago-cyrillic-400.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'FiraGO'; font-weight: 500; font-display: swap; src: url('../fonts/firago-cyrillic-500.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'FiraGO'; font-weight: 600; font-display: swap; src: url('../fonts/firago-cyrillic-600.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'FiraGO'; font-weight: 700; font-display: swap; src: url('../fonts/firago-cyrillic-700.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2190-2199, U+2212, U+2248; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+2000-206F, U+2190-2199, U+2212, U+2248; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 400; font-display: swap; src: url('../fonts/jetbrains-mono-cyrillic-400.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500; font-display: swap; src: url('../fonts/jetbrains-mono-cyrillic-500.woff2') format('woff2'); unicode-range: U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }

/* ---------- tokens ---------- */

:root {
  /* Dark is the brand; light is the alternative a visitor can pick (data-theme="light"). */
  color-scheme: dark;
  --bg: light-dark(#f3f4f7, #07080b);
  --surface: light-dark(#ffffff, #111318);
  --surface-2: light-dark(#eceef3, #181b22);
  --surface-3: light-dark(#dfe2ea, #232731);
  --glass: light-dark(rgb(255 255 255 / 0.8), rgb(17 19 25 / 0.68));
  --line: light-dark(#e1e4eb, rgb(255 255 255 / 0.08));
  --line-strong: light-dark(#c9cdd8, rgb(255 255 255 / 0.16));
  --text: light-dark(#0c0e13, #eef1f6);
  --muted: light-dark(#5b6272, #8f96a6);
  --faint: light-dark(#8e94a3, #5c6373);
  --ink: light-dark(#0c0e13, #eef1f6);
  --on-ink: light-dark(#ffffff, #0a0c10);
  /* The accent fills (buttons, gauges, the mark); as text it darkens on light backgrounds. */
  --acc: #b6ff3b;
  --on-acc: #0a0c10;
  --acc-text: light-dark(#3f7d00, #b6ff3b);
  --cyan: light-dark(#0a8fb0, #3fe3ff);
  --rec: light-dark(#3a8a00, #b6ff3b);
  --min: light-dark(#a35f00, #ffb547);
  --fail: light-dark(#c8302b, #ff6464);
  --unknown: light-dark(#7c8291, #8a90a0);
  --radius: 16px;
  --radius-sm: 10px;
  --glow: 0 10px 36px -12px light-dark(rgb(90 140 0 / 0.45), rgb(182 255 59 / 0.55));
  --pop: 0 20px 50px -18px light-dark(rgb(20 25 40 / 0.25), rgb(0 0 0 / 0.8));
  --font: 'FiraGO', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'FiraGO', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --container: 1240px;
}

:root[data-theme='light'] { color-scheme: light; }

/* A verdict color for any element: color: var(--v). */
.v-rec, .v-ok { --v: var(--rec); }
.v-min { --v: var(--min); }
.v-fail { --v: var(--fail); }
.v-partial, .v-unknown, .v-na { --v: var(--unknown); }

/* ---------- base ---------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 560px at 88% -12%, light-dark(transparent, rgb(140 70 255 / 0.13)), transparent 70%),
    radial-gradient(900px 520px at -12% 4%, light-dark(transparent, rgb(63 227 255 / 0.07)), transparent 70%),
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.55 var(--font);
  font-feature-settings: 'tnum' 0;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body:not(.adm) {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
}

h1, h2, h3, h4 {
  margin: 0;
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--acc-text);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection {
  background: color-mix(in srgb, var(--acc) 35%, transparent);
}

.icon {
  flex: none;
  width: 18px;
  height: 18px;
}

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}

.muted { color: var(--muted); }
.small { font-size: 13px; }
.num, .mono { font-family: var(--mono); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  border: 0;
  white-space: nowrap;
}

/* Small labels: no uppercase (Georgian has no case; FiraGO has no Mtavruli). */
.label {
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 4px;
  white-space: nowrap;
  transition: text-decoration-color 0.15s;
}

.link:hover {
  text-decoration-color: currentColor;
}

.link .icon {
  width: 15px;
  height: 15px;
}

.linklike {
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 4px;
  cursor: pointer;
}

/* ---------- buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  font-weight: 500;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s, filter 0.15s;
}

.btn--primary {
  background: var(--acc);
  color: var(--on-acc);
  font-weight: 600;
  box-shadow: var(--glow);
}

.btn--primary:hover {
  filter: brightness(1.07);
}

.btn--ghost {
  border-color: var(--line-strong);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  color: var(--text);
}

.btn--ghost:hover {
  border-color: color-mix(in srgb, var(--text) 40%, transparent);
  background: var(--surface-2);
}

.btn--danger {
  color: var(--fail);
}

.btn--sm {
  height: 32px;
  padding: 0 12px;
  font-size: 13px;
}

.btn--sm .icon {
  width: 16px;
  height: 16px;
}

.btn--lg {
  height: 48px;
  padding: 0 22px;
  font-size: 15.5px;
}

/* ---------- form controls ---------- */

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

.field > label,
.field__label {
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
}

:where(input:not([type='checkbox'], [type='radio'], [type='file'])),
:where(select),
:where(textarea) {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 14.5px;
  transition: border-color 0.15s, box-shadow 0.15s;
}

:where(input:not([type='checkbox'], [type='radio'])):focus,
:where(select):focus,
:where(textarea):focus {
  border-color: var(--acc-text);
  outline: none;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 18%, transparent);
}

:where(select) {
  appearance: none;
  padding-right: 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2388887f' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-position: right 11px center;
  background-repeat: no-repeat;
  cursor: pointer;
}

input::placeholder,
textarea::placeholder {
  color: var(--faint);
}

input[type='checkbox'] {
  accent-color: var(--acc);
  width: 16px;
  height: 16px;
}

.field__warn {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--min);
  font-size: 12.5px;
}

.field__warn .icon {
  width: 14px;
  height: 14px;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field--wide {
  grid-column: 1 / -1;
}

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  cursor: pointer;
}

/* On/off switch rendered as a link (catalog filter) */
.switch {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13.5px;
  font-weight: 500;
  white-space: nowrap;
}

.switch:hover,
.switch.is-on {
  color: var(--text);
}

.switch__track {
  position: relative;
  width: 34px;
  height: 20px;
  border-radius: 10px;
  background: var(--surface-3);
  transition: background-color 0.15s;
}

.switch__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: light-dark(#fff, #eef1f6);
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.25);
  transition: transform 0.15s;
}

.switch.is-on .switch__track {
  background: var(--acc);
}

.switch.is-on .switch__thumb {
  background: var(--on-acc);
  transform: translateX(14px);
}

/* ---------- surfaces & messages ---------- */

.card,
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.panel {
  padding: 20px;
}

.card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.card__title,
.panel__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
}

.card__title .icon {
  color: var(--muted);
}

.alert,
.toast,
.callout {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  line-height: 1.45;
}

.alert .icon,
.toast .icon,
.callout .icon {
  margin-top: 1px;
}

.alert--error {
  background: color-mix(in srgb, var(--fail) 11%, var(--surface));
  color: var(--text);
  box-shadow: inset 3px 0 0 var(--fail);
}

.alert--success,
.toast {
  background: color-mix(in srgb, var(--rec) 11%, var(--surface));
  box-shadow: inset 3px 0 0 var(--rec);
}

.toast .icon {
  color: var(--rec);
}

.alert--warn,
.callout {
  background: color-mix(in srgb, var(--min) 12%, var(--surface));
  box-shadow: inset 3px 0 0 var(--min);
}

.alert--warn .icon,
.callout .icon {
  color: var(--min);
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: color-mix(in srgb, var(--v, var(--unknown)) 13%, transparent);
  color: var(--v, var(--muted));
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
}

.badge--rec { --v: var(--rec); }
.badge--min { --v: var(--min); }
.badge--fail { --v: var(--fail); }
.badge--partial { --v: var(--unknown); }

.dot {
  flex: none;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--v, var(--rec));
}

.verdict-line {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--v);
  font-size: 13px;
  font-weight: 500;
}

.chip {
  display: inline-flex;
  align-items: center;
  height: 32px;
  padding: 0 13px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  color: var(--muted);
  font-size: 13.5px;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.chip:hover {
  border-color: var(--line-strong);
  color: var(--text);
}

.chip.is-active {
  border-color: var(--acc);
  background: var(--acc);
  color: var(--on-acc);
  font-weight: 600;
}

.empty {
  padding: 64px 0;
  color: var(--muted);
  text-align: center;
}

.spinner {
  width: 14px;
  height: 14px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--acc-text);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ---------- search suggestions (header, hero, hardware fields) ---------- */

.search__results {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  left: 0;
  z-index: 30;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--pop);
  list-style: none;
}

.search__results a {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 11px;
  border-radius: 7px;
  font-size: 14px;
}

.search__results a span {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12px;
}

.search__results a:hover,
.search__results a[aria-selected='true'] {
  background: var(--surface-2);
}

.field--suggest {
  position: relative;
}

/* ---------- header ---------- */

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: saturate(1.5) blur(18px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 9px;
}

.mark {
  width: 26px;
  height: 26px;
}

.mark__tile {
  fill: var(--acc);
}

.mark__bar {
  fill: var(--on-acc);
}

.brand__name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.03em;
}

.brand--quiet {
  color: var(--muted);
}

.brand--quiet .mark__tile {
  fill: var(--surface-3);
}

.brand--quiet .mark__bar {
  fill: var(--muted);
}

.nav {
  display: flex;
  gap: 4px;
}

.nav a {
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--muted);
  font-size: 14.5px;
  font-weight: 500;
  transition: color 0.15s, background-color 0.15s;
}

.nav a:hover {
  color: var(--text);
}

.nav a.is-active {
  background: var(--surface-2);
  color: var(--text);
}

.search {
  position: relative;
  display: flex;
  flex: 1;
  align-items: center;
  max-width: 400px;
}

.search > .icon {
  position: absolute;
  z-index: 1;
  left: 11px;
  width: 16px;
  height: 16px;
  color: var(--faint);
  pointer-events: none;
}

.topbar .search input {
  min-height: 38px;
  height: 38px;
  padding-left: 36px;
  border-color: var(--line);
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--surface-2) 75%, transparent);
  font-size: 14px;
}

.topbar .search input:focus {
  border-color: var(--line-strong);
  background: var(--surface-2);
  box-shadow: none;
}

.topbar__tools {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: auto;
}

.rig-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  height: 34px;
  margin-right: 6px;
  padding: 0 12px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius-sm);
  color: var(--muted);
  font-size: 13px;
  font-weight: 500;
  transition: border-color 0.15s, color 0.15s;
}

.rig-chip.is-set {
  border-style: solid;
  border-color: color-mix(in srgb, var(--acc-text) 40%, transparent);
  background: color-mix(in srgb, var(--acc) 9%, transparent);
  color: var(--acc-text);
  font-family: var(--mono);
  font-size: 12.5px;
}

.rig-chip.is-set .dot {
  --v: var(--acc-text);
  box-shadow: 0 0 10px var(--acc-text);
}

.rig-chip:hover {
  border-color: var(--acc-text);
  color: var(--acc-text);
}

.rig-chip__text {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rig-chip .icon {
  width: 15px;
  height: 15px;
}

.tool,
.lang-switch summary {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0 6px;
  border: 0;
  border-radius: var(--radius-sm);
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s, background-color 0.15s;
}

.tool:hover,
.lang-switch summary:hover,
.lang-switch[open] summary {
  background: var(--surface-2);
  color: var(--text);
}

/* The theme switch shows what it switches to (dark unless light was chosen). */
.icon--moon { display: none; }
:root[data-theme='light'] .icon--sun { display: none; }
:root[data-theme='light'] .icon--moon { display: block; }

.lang-switch {
  position: relative;
}

.lang-switch summary {
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  list-style: none;
}

.lang-switch summary::-webkit-details-marker {
  display: none;
}

.lang-switch ul {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  z-index: 30;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--pop);
  list-style: none;
}

.lang-switch a {
  display: block;
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 14px;
}

.lang-switch a:hover {
  background: var(--surface-2);
}

.lang-switch a.is-active {
  font-weight: 600;
}

.avatar {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin-left: 6px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--cyan), var(--acc));
  color: var(--on-acc);
  font-size: 12px;
  font-weight: 600;
}

/* ---------- footer ---------- */

.footer {
  margin-top: 96px;
  border-top: 1px solid var(--line);
}

.footer__inner {
  display: flex;
  align-items: center;
  gap: 32px;
  padding-top: 28px;
  padding-bottom: 36px;
  color: var(--muted);
  font-size: 13px;
}

.footer__inner p:first-of-type {
  flex: 1;
  max-width: 62ch;
}

.footer__inner p:last-child {
  margin-left: auto;
}

/* ---------- sections, title grid ---------- */

.section {
  margin-top: 64px;
}

.section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}

.section__title {
  font-size: 21px;
  font-weight: 650;
}

.page-head {
  padding-top: 48px;
  padding-bottom: 28px;
}

.page-head h1 {
  font-size: clamp(30px, 4vw, 40px);
  font-weight: 700;
  letter-spacing: -0.025em;
}

.page-head > p {
  margin-top: 8px;
}

.page-head__meta {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

.page-head .toast,
.page-head .alert,
.page-head .btn {
  margin-top: 18px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(232px, 1fr));
  gap: 16px;
}

/* Artwork with a typographic placeholder underneath (shown when there's no image or it fails). */
.art {
  position: relative;
  overflow: hidden;
  aspect-ratio: 460 / 215;
  border-radius: 10px;
  background:
    repeating-linear-gradient(135deg, transparent 0 9px, color-mix(in srgb, var(--text) 4%, transparent) 9px 10px),
    var(--surface-2);
}

.art::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--text) 7%, transparent);
  pointer-events: none;
}

.art__name {
  position: absolute;
  inset: auto 14px 12px;
  display: -webkit-box;
  overflow: hidden;
  color: color-mix(in srgb, var(--text) 72%, transparent);
  font-size: 19px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.art img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.tcard {
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  transition: border-color 0.2s, transform 0.2s;
}

.tcard:hover {
  border-color: color-mix(in srgb, var(--acc-text) 45%, transparent);
  transform: translateY(-2px);
}

.tcard .art {
  border-radius: 0;
}

.tcard:hover .art img {
  transform: scale(1.04);
}

.tcard__body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 14px 14px;
}

.tcard__name {
  overflow: hidden;
  font-size: 15px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcard__meta {
  overflow: hidden;
  color: var(--muted);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tcard__verdict {
  margin-top: 4px;
}

.tcard__measured {
  margin-top: 2px;
  font-size: 12.5px;
}

/* ---------- home ---------- */

.home-top {
  position: relative;
  overflow: hidden;
  margin-top: -64px; /* under the translucent header, like the title page */
  padding-top: 64px;
}

.home-top__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  opacity: 0.55;
}

.home-top::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 70%, transparent) 55%, color-mix(in srgb, var(--bg) 35%, transparent) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 50%);
}

.home-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 56px;
  align-items: center;
  padding-top: 88px;
  padding-bottom: 56px;
}

.home-hero h1 {
  font-size: clamp(38px, 5.4vw, 64px);
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 56ch;
  margin-top: 18px;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.6;
}

.hero-search {
  position: relative;
  display: flex;
  align-items: center;
  max-width: 620px;
  height: 60px;
  margin-top: 32px;
  padding: 6px 6px 6px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  transition: border-color 0.15s, box-shadow 0.15s;
}

.hero-search:focus-within {
  border-color: var(--acc-text);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--acc) 14%, transparent);
}

.hero-search > .icon {
  color: var(--faint);
}

.hero-search input[type='search'] {
  flex: 1;
  min-width: 0;
  height: 100%;
  min-height: 0;
  padding: 0 12px;
  border: 0;
  background: none;
  font-size: 16.5px;
}

.hero-search input[type='search']:focus {
  box-shadow: none;
}

.hero-search .btn {
  height: 44px;
  border-radius: 10px;
}

.home-hero__meta {
  margin-top: 14px;
  color: var(--muted);
  font-family: var(--mono);
  font-size: 12.5px;
}

/* "Your PC" card */
.rig {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: var(--pop);
  backdrop-filter: blur(24px) saturate(1.3);
}

.rig__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}

.rig__head .link {
  font-size: 13px;
}

.rig__specs {
  margin: 0;
}

.rig__specs div {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 12px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 13.5px;
}

.rig__specs dt {
  color: var(--muted);
}

.rig__specs dd {
  overflow: hidden;
  margin: 0;
  font-family: var(--mono);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rig__reach {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.rig__reach strong {
  color: var(--acc-text);
  font-size: 34px;
  font-weight: 500;
  letter-spacing: -0.03em;
}

.reach {
  display: block;
  width: 100%;
  height: 6px;
}

.reach__track {
  fill: var(--surface-3);
}

.reach__fill {
  fill: var(--acc);
  filter: drop-shadow(0 0 4px color-mix(in srgb, var(--acc) 60%, transparent));
}

.rig__missing {
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 13.5px;
}

.rig__missing .link {
  margin-top: 8px;
}

.rig--empty .btn {
  align-self: flex-start;
}

.rig__steps {
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.rig__steps li {
  display: grid;
  grid-template-columns: 30px 1fr;
  column-gap: 8px;
  counter-increment: step;
  font-size: 14px;
}

.rig__steps li::before {
  content: counter(step, decimal-leading-zero);
  grid-row: span 2;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.7;
}

.rig__steps span {
  color: var(--muted);
  font-size: 13.5px;
}

/* ---------- catalog ---------- */

.filters {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}

.genres {
  display: flex;
  flex: 1;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  mask-image: linear-gradient(to right, #000 calc(100% - 40px), transparent);
}

.genres::-webkit-scrollbar {
  display: none;
}

.genres .chip:last-child {
  margin-right: 40px;
}

.filters__end {
  display: flex;
  flex: none;
  align-items: center;
  gap: 16px;
}

.sort select {
  width: auto;
  min-height: 32px;
  height: 32px;
  padding: 0 30px 0 11px;
  font-size: 13.5px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
}

.pager__info {
  color: var(--muted);
  font-family: var(--mono);
  font-size: 13px;
}

/* ---------- title page ---------- */

/* Store art fills the hero; gradients keep text and the verdict panel readable over any image. */
.t-hero {
  position: relative;
  overflow: hidden;
  margin-top: -64px; /* runs under the translucent header */
  padding-top: 64px;
}

.t-hero__art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
}

.t-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--bg) 94%, transparent) 0%, color-mix(in srgb, var(--bg) 62%, transparent) 48%, color-mix(in srgb, var(--bg) 18%, transparent) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 42%);
}

.t-hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 470px;
  gap: 48px;
  align-items: end;
  min-height: 460px;
  padding-top: 56px;
  padding-bottom: 36px;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.crumbs a {
  padding: 4px 10px;
  border-radius: 7px;
  background: color-mix(in srgb, var(--text) 9%, transparent);
  color: color-mix(in srgb, var(--text) 82%, transparent);
  font-size: 12.5px;
  backdrop-filter: blur(8px);
  transition: background-color 0.15s;
}

.crumbs a:hover {
  background: color-mix(in srgb, var(--text) 16%, transparent);
}

.t-hero h1 {
  margin-top: 20px;
  font-size: clamp(40px, 6vw, 80px);
  font-weight: 700;
  line-height: 0.98;
  letter-spacing: -0.035em;
  text-shadow: 0 4px 40px rgb(0 0 0 / 0.35);
}

.t-hero__facts {
  margin-top: 16px;
  color: color-mix(in srgb, var(--text) 72%, transparent);
  font-family: var(--mono);
  font-size: 13px;
}

.t-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}

.t-hero__actions .btn {
  backdrop-filter: blur(10px);
}

/* The verdict panel: glass over the art */
.verdict {
  padding: 24px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--glass);
  box-shadow: var(--pop);
  backdrop-filter: blur(24px) saturate(1.3);
}

.verdict__head {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr);
  gap: 20px;
  align-items: center;
}

.verdict__ring {
  position: relative;
  display: grid;
  place-items: center;
}

.ring {
  width: 128px;
  height: 128px;
}

.ring circle {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
}

.ring__track {
  stroke: color-mix(in srgb, var(--text) 10%, transparent);
}

.ring__fill {
  stroke: var(--v, var(--acc));
  filter: drop-shadow(0 0 6px color-mix(in srgb, var(--v, var(--acc)) 60%, transparent));
}

.ring__value {
  fill: var(--text);
  font-size: 17px;
  font-weight: 600;
}

/* A measured frame rate in the ring: the number, "FPS" under it. */
.ring__value--fps {
  font-size: 34px;
}

.ring__unit {
  fill: var(--muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
}

/* Without a preset in the ring, the verdict icon takes the middle. */
.verdict__icon {
  position: absolute;
  display: none;
  color: var(--v, var(--acc-text));
}

.verdict__ring:not(:has(.ring__value)) .verdict__icon {
  display: grid;
}

.verdict__icon .icon {
  width: 34px;
  height: 34px;
  stroke-width: 2.2;
}

.verdict__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--v);
  font-size: 13px;
  font-weight: 600;
}

.verdict__badge .dot {
  box-shadow: 0 0 10px var(--v);
}

.verdict h2 {
  margin-top: 4px;
  font-size: 21px;
  font-weight: 650;
}

.verdict__text {
  margin-top: 4px;
  color: var(--muted);
  font-size: 14px;
}

.verdict__head .btn {
  margin-top: 14px;
}

.verdict__hint {
  margin-top: 12px;
  color: var(--faint);
  font-size: 12.5px;
}

/* The two halves of the answer side by side: what the requirements say, what was measured */
.vtiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vtile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 12px 16px;
  border: 1px solid color-mix(in srgb, var(--v) 30%, var(--line));
  border-radius: 16px;
  background: color-mix(in srgb, var(--v) 6%, transparent);
  text-align: center;
}

.vtile .label {
  align-self: stretch;
}

.vtile__ring .ring {
  width: 96px;
  height: 96px;
}

.vtile__ring .verdict__icon .icon {
  width: 26px;
  height: 26px;
}

.vtile .verdict__badge {
  justify-content: center;
  font-size: 13.5px;
  line-height: 1.3;
}

.vtile__sub {
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.4;
}

.vtile__action {
  color: var(--acc-text);
  font-size: 12.5px;
  font-weight: 600;
}

.verdict__partial {
  margin-top: 14px;
}

.verdict__partial .btn {
  margin-top: 10px;
}

.verdict > .callout {
  margin-top: 14px;
}

/* Under the hero: the measurements in detail */
.t-measured {
  margin-top: 32px;
}

.t-measured__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 16px;
  margin: 14px 0 10px;
}

.t-measured__card {
  padding: 18px 20px;
}

.t-measured__card .verdict__players {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

/* Whether the measurements agree with the requirements */
.verdict__compare {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 16px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--rec) 10%, var(--surface));
  box-shadow: inset 3px 0 0 var(--rec);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.45;
}

.verdict__compare.is-worse {
  background: color-mix(in srgb, var(--fail) 11%, var(--surface));
  box-shadow: inset 3px 0 0 var(--fail);
}

.verdict__compare .icon {
  flex: none;
  margin-top: 1px;
}

/* Measured by players with the same GPU */
.verdict__players {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
}

.verdict__fps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 28px;
  margin-top: 8px;
}

.verdict__fps strong {
  display: block;
  color: var(--acc-text);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.1;
}

.verdict__fps p + p strong {
  color: var(--text);
}

.verdict__fps span {
  color: var(--muted);
  font-size: 12.5px;
}

/* Components: one card each, the user's value on the min/rec scale */
.bars {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.bar {
  padding: 18px 18px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.bar__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 4px 12px;
}

.bar__label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.bar__label .icon {
  width: 16px;
  height: 16px;
}

.bar__value {
  overflow: hidden;
  margin-top: 8px;
  font-size: 16px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.bar__status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--v);
  font-size: 12.5px;
  font-weight: 500;
  white-space: nowrap;
}

.bar__note {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.gauge {
  display: block;
  margin-top: 12px;
  overflow: visible;
}

.gauge__track {
  fill: color-mix(in srgb, var(--text) 9%, transparent);
}

.gauge__fill {
  fill: var(--v);
  filter: drop-shadow(0 0 5px color-mix(in srgb, var(--v) 55%, transparent));
}

.gauge__tick {
  stroke: var(--text);
  stroke-opacity: 0.45;
  stroke-width: 1.5;
}

.gauge__label {
  fill: var(--muted);
  font-family: var(--mono);
  font-size: 10.5px;
}

.t-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
  margin-top: 56px;
}

.t-main .section__title {
  margin-bottom: 16px;
}

.t-side {
  position: sticky;
  top: 88px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Spec sheet */
.spec {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.spec__row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
  padding: 14px 20px;
  border-top: 1px solid var(--line);
  font-size: 14.5px;
}

.spec__row--head {
  padding: 11px 20px;
  border-top: 0;
  background: color-mix(in srgb, var(--text) 3%, transparent);
  color: var(--muted);
  font-size: 12.5px;
  font-weight: 500;
}

.spec__label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
}

.spec__label .icon {
  width: 16px;
  height: 16px;
}

.section .muted.small,
.disclaimer {
  margin-top: 14px;
}

.disclaimer {
  color: var(--faint);
  font-size: 12.5px;
  line-height: 1.5;
}

/* Upgrades */
.upgrades .panel__title {
  margin-bottom: 14px;
}

.upgrade-list {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.upgrade {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 12px;
}

.upgrade__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}

.upgrade.is-critical .upgrade__icon {
  background: color-mix(in srgb, var(--fail) 14%, var(--surface));
  color: var(--fail);
}

.upgrade__icon .icon {
  width: 16px;
  height: 16px;
}

.upgrade__tag {
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}

.upgrade.is-critical .upgrade__tag {
  color: var(--fail);
}

.upgrade h4 {
  margin-top: 1px;
  font-size: 14.5px;
  font-weight: 600;
}

.upgrade p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13.5px;
}

.parts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.parts li {
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 12px;
}

.upgrades__none {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--rec);
  font-size: 14px;
  font-weight: 500;
}

/* ---------- my PC ---------- */

.mypc {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

.mypc .card,
.account__box,
.pc {
  padding: 22px;
}

.mypc__side {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.scan > p {
  margin-top: 8px;
  color: var(--muted);
}

.scan__os {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.scan__os h3 {
  margin-bottom: 12px;
  font-size: 15px;
  font-weight: 600;
}

.scan__os .btn {
  margin-top: 6px;
}

.scan__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.scan__app .scan__actions {
  margin-top: 8px;
}

.scan__os .muted.small {
  margin-top: 10px;
}

.scan__steps {
  display: grid;
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.scan__steps li {
  position: relative;
  padding-left: 30px;
  font-size: 14px;
  counter-increment: step;
}

.scan__steps li::before {
  content: counter(step, decimal-leading-zero);
  position: absolute;
  left: 0;
  color: var(--faint);
  font-family: var(--mono);
  font-size: 12.5px;
  line-height: 1.75;
}

.scan__alt {
  margin-top: 16px;
}

.scan__alt summary {
  color: var(--muted);
  font-size: 13.5px;
  cursor: pointer;
}

.scan__alt[open] summary {
  margin-bottom: 10px;
}

.codebox {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.codebox code {
  flex: 1;
  overflow-x: auto;
  font-family: var(--mono);
  font-size: 12.5px;
  white-space: nowrap;
}

.codebox + p {
  margin-top: 8px;
}

.scan__status {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-size: 14px;
}

.scan__status[data-state='done'] {
  background: color-mix(in srgb, var(--rec) 12%, var(--surface));
  color: var(--rec);
}

.scan__status[data-state='expired'] {
  background: color-mix(in srgb, var(--fail) 11%, var(--surface));
}

.scan__status:not([data-state='waiting']) .spinner {
  display: none;
}

.scan__links {
  display: flex;
  gap: 16px;
  margin-top: 14px;
  font-size: 13.5px;
}

.scan__links a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

.scan > .muted.small:last-child {
  margin-top: 14px;
}

.detect .muted.small {
  margin-top: 6px;
}

.detect__list {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.detect__list li {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 9px 0;
  border-top: 1px solid var(--line);
  font-size: 14px;
}

.detect__list li span {
  color: var(--muted);
}

.detect__list li strong {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  text-align: right;
}

.form .card__title {
  margin-bottom: 18px;
}

/* ---------- account ---------- */

.account {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 32px;
  align-items: start;
}

.account__side {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.account__box .card__title {
  margin-bottom: 14px;
}

.account__box .field + .field {
  margin-top: 14px;
}

.pc-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.pc.is-active {
  border-color: color-mix(in srgb, var(--acc-text) 55%, transparent);
}

.pc__head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pc__icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
}

.pc__rename {
  flex: 1;
}

.pc__rename input {
  min-height: 34px;
  padding: 4px 8px;
  border-color: transparent;
  background: none;
  font-size: 16px;
  font-weight: 600;
}

.pc__rename input:hover {
  border-color: var(--line);
}

.pc__specs {
  margin-top: 12px;
  font-family: var(--mono);
  font-size: 13px;
}

.pc__full {
  margin: 12px 0 10px;
  font-size: 13.5px;
}

.pc__full summary {
  color: var(--muted);
  cursor: pointer;
}

.pc__full dl {
  display: grid;
  grid-template-columns: minmax(96px, max-content) 1fr;
  gap: 6px 16px;
  margin: 12px 0 0;
}

.pc__full dt {
  color: var(--muted);
}

.pc__full dd {
  margin: 0;
}

.pc__full dd span {
  display: block;
}

.pc .muted.small {
  margin-top: 4px;
}

.pc__actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.device-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.device-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
}

.device-list li div {
  display: flex;
  flex-direction: column;
  font-size: 14px;
}

.account .empty {
  padding: 28px;
}

.account .empty a {
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ---------- auth & link ---------- */

.auth {
  display: flex;
  justify-content: center;
  padding-top: 64px;
}

.auth__card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  max-width: 400px;
  padding: 32px;
}

.auth__card h1 {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.auth__icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--muted);
}

.auth__card .btn {
  margin-top: 4px;
}

.auth__forgot {
  align-self: flex-end;
  margin-top: -8px;
  color: var(--muted);
  font-size: 13px;
}

.auth__forgot:hover,
.auth__switch a {
  color: var(--text);
}

.auth__switch {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
}

.auth__switch a {
  font-weight: 500;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.link-code {
  padding: 14px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
  font-family: var(--mono);
  font-size: 30px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-align: center;
}

.empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding-top: 96px;
  text-align: center;
}

.empty-state__code {
  color: var(--faint);
  font-family: var(--mono);
  font-size: 72px;
  line-height: 1;
}

.empty-state .btn {
  margin-top: 12px;
}

/* ---------- responsive ---------- */

@media (max-width: 1080px) {
  .home-hero {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 64px;
  }

  .t-hero__inner {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: 0;
    padding-top: 120px;
  }

  .t-layout {
    grid-template-columns: 1fr;
  }

  .t-side {
    position: static;
  }

  .t-side .art {
    display: none;
  }

  .mypc,
  .account {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .container {
    padding: 0 16px;
  }

  .topbar__inner {
    flex-wrap: wrap;
    gap: 10px 14px;
    height: auto;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .nav {
    display: none;
  }

  .search {
    order: 3;
    flex-basis: 100%;
    max-width: none;
  }

  .rig-chip {
    max-width: 44px;
    margin-right: 0;
    padding: 0 12px;
  }

  .rig-chip__text {
    display: none;
  }

  .home-hero {
    padding-top: 40px;
    padding-bottom: 32px;
  }

  .hero-search {
    height: 52px;
  }

  .hero-search .btn {
    height: 40px;
    padding: 0 12px;
  }

  .filters {
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }

  .filters__end {
    justify-content: space-between;
  }

  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .t-hero__inner {
    padding-top: 72px;
    padding-bottom: 20px;
  }

  .verdict {
    padding: 18px;
  }

  .verdict__head {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 14px;
  }

  .ring {
    width: 96px;
    height: 96px;
  }

  .verdict__head .btn {
    height: auto;
    min-height: 40px;
    padding: 8px 14px;
    white-space: normal;
  }

  .presets {
    gap: 6px;
  }

  .spec__row {
    grid-template-columns: 1fr 1fr;
    gap: 6px 16px;
    padding: 12px 16px;
  }

  .spec__label {
    grid-column: 1 / -1;
    color: var(--text);
    font-weight: 500;
  }

  .spec__row--head span:first-child {
    display: none;
  }

  .form__grid {
    grid-template-columns: 1fr;
  }

  .footer__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }
}

/* My sessions: a card per game, the latest session's graph, others with the same card, the history */
.session-list {
  display: grid;
  gap: 16px;
  padding-bottom: 48px;
}

.session-game {
  min-width: 0; /* lets the table scroll inside the card instead of widening the page */
  padding: 22px 24px;
}

.session-game__head {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
}

.session-game__head a {
  color: inherit;
}

.session-game__fps {
  display: flex;
  gap: 24px;
}

.session-game__fps strong {
  display: block;
  font-size: 28px;
  font-weight: 500;
  line-height: 1.1;
}

.session-game__fps p:first-child strong {
  color: var(--acc-text);
}

.session-game__fps span {
  color: var(--muted);
  font-size: 12.5px;
}

.session-game__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 24px;
  align-items: center;
  margin-top: 18px;
}

.spark {
  display: block;
  width: 100%;
  overflow: visible;
}

.spark--big {
  height: 88px;
}

.spark--title {
  height: 52px;
  margin-top: 12px;
}

.spark--row {
  width: 96px;
  height: 24px;
}

.spark__area {
  fill: color-mix(in srgb, var(--acc-text) 18%, transparent);
}

.spark__line {
  fill: none;
  stroke: var(--acc-text);
  stroke-width: 1.75;
  stroke-linejoin: round;
}

.compare {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}

.compare strong {
  font-size: 22px;
}

.compare__you {
  margin-top: 4px;
  font-weight: 600;
}

.compare.is-above .compare__you .num {
  color: var(--rec);
}

.compare.is-below .compare__you .num {
  color: var(--min);
}

.session-game__all {
  margin-top: 16px;
}

.session-game__all summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
}

.table-scroll {
  overflow-x: auto;
}

.sessions-table {
  width: 100%;
  margin-top: 10px;
  border-collapse: collapse;
  font-size: 13px;
}

.sessions-table th,
.sessions-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  white-space: nowrap;
}

.sessions-table th {
  color: var(--muted);
  font-weight: 500;
}

.sessions-table td span {
  display: block;
}

@media (max-width: 720px) {
  .session-game__body {
    grid-template-columns: 1fr;
  }
}

/* Long-form text: the privacy policy */
.prose {
  padding-bottom: 56px;
}

.prose > section {
  max-width: 760px; /* lines short enough to read, aligned with the heading */
}

.prose section + section {
  margin-top: 28px;
}

.prose h2 {
  font-size: 19px;
  font-weight: 650;
  margin-bottom: 8px;
}

.prose p,
.prose li {
  line-height: 1.65;
}

.prose ul {
  margin: 10px 0 0;
  padding-left: 20px;
}

.prose li + li {
  margin-top: 6px;
}

.account__danger summary {
  cursor: pointer;
  font-weight: 600;
}

.account__danger .form {
  margin-top: 12px;
}

.account__danger .field {
  margin-top: 14px;
}
