@charset "utf-8";
/* ==========================================================================
   PlayPopFa — design system: "Arcade Dark"
   Gameplay-first. The board is the hero product, so the palette is a dark
   console shell with one violet action colour and a lime "go" accent, and every
   surface is built to sit behind a glowing game board.
   Typeface: Vazirmatn (SIL OFL), self-hosted.
   ========================================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Medium.woff2') format('woff2');
  font-weight: 500; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Vazirmatn';
  src: url('/assets/fonts/Vazirmatn-Bold.woff2') format('woff2');
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --bg: #0a0b12;
  --bg-2: #0e1019;
  --surface: #14172440;
  --card: #161a29;
  --card-2: #1c2033;
  --stroke: #272c42;
  --stroke-2: #343a55;

  --text: #eef0f8;
  --muted: #a4abc4;
  --faint: #737a94;

  --violet: #7c5cff;
  --violet-2: #9d86ff;
  --lime: #c6ff3d;
  --fire: #ff5a2d;
  --safe: #2ee6a8;
  --gold: #ffc53d;

  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --r-xl: 30px;

  --shadow: 0 12px 40px -18px rgba(0, 0, 0, .9);
  --glow-violet: 0 0 0 1px rgba(124, 92, 255, .35), 0 10px 40px -12px rgba(124, 92, 255, .55);
  --glow-lime: 0 0 0 1px rgba(198, 255, 61, .3), 0 8px 30px -10px rgba(198, 255, 61, .35);

  --wrap: 1160px;
  --gap: clamp(16px, 3vw, 28px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}

body {
  margin: 0;
  background:
    radial-gradient(1100px 620px at 82% -6%, rgba(124, 92, 255, .20), transparent 62%),
    radial-gradient(760px 480px at 8% 2%, rgba(198, 255, 61, .08), transparent 60%),
    var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', system-ui, 'Segoe UI', Tahoma, sans-serif;
  font-size: 16.5px;
  line-height: 1.95;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.nav-open, body.pg-noscroll { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; }
a { color: var(--violet-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .6em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.75rem, 1.15rem + 2.6vw, 3rem); }
h2 { font-size: clamp(1.35rem, 1.05rem + 1.3vw, 2rem); }
h3 { font-size: clamp(1.1rem, .98rem + .6vw, 1.35rem); }
p { margin: 0 0 1.1em; }
ul, ol { padding-inline-start: 1.35em; margin: 0 0 1.2em; }
li { margin-bottom: .5em; }
small { font-size: .82rem; }
b, strong { font-weight: 700; color: #fff; }

/* `unicode-bidi: isolate` gives the LTR isolation on its own. Do NOT add
   `display: inline-block` here — this class is also used on <td> elements and
   an inline-block td silently drops out of table layout, which shears the
   column grid apart. */
.ltr-nums { direction: ltr; unicode-bidi: isolate; font-feature-settings: 'tnum' 1; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; inset-inline-start: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: #0a0b12; padding: 10px 18px; border-radius: 0 0 12px 12px;
  font-weight: 700; transition: top .2s;
}
.skip-link:focus { top: 0; }

.wrap { width: min(100% - 2rem, var(--wrap)); margin-inline: auto; }
.section { padding-block: clamp(38px, 6vw, 72px); }
.section--tight { padding-block: clamp(26px, 4vw, 48px); }
.lede { font-size: 1.08rem; color: var(--muted); max-width: 68ch; }

/* ------------------------------------------------------------- header --- */
.site-header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(10, 11, 18, .82);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--stroke);
}
.header-in { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text); font-size: 1.05rem; }
.logo:hover { text-decoration: none; }
.logo img { width: 38px; height: 38px; border-radius: 11px; }
.logo span small { display: block; font-size: .68rem; color: var(--faint); font-weight: 400; line-height: 1.2; }

.nav-toggle {
  margin-inline-start: auto; display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--stroke-2); color: var(--text);
  border-radius: 999px; padding: 9px 15px; font: inherit; font-size: .88rem; cursor: pointer;
}
.nav-toggle b { font-size: 1rem; line-height: 1; }
@media (min-width: 1000px) { .nav-toggle { display: none; } }

#site-nav { margin-inline-start: auto; }
@media (min-width: 1000px) {
  /* ul and the CTA must sit on one row — without this the CTA drops to a
     second line and stretches across the whole header. */
  #site-nav { display: flex; align-items: center; gap: 6px; }
}
#site-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
#site-nav a {
  display: block; padding: 8px 11px; border-radius: 999px; color: var(--muted);
  font-size: .88rem; font-weight: 500; white-space: nowrap;
}
#site-nav a:hover { background: var(--card); color: var(--text); text-decoration: none; }
#site-nav a[aria-current='page'] { background: rgba(124, 92, 255, .18); color: #fff; }
.nav-cta { margin-inline-start: 8px; flex: none; }
/* `#site-nav a` (id + type) outranks `.btn` (class), so the CTA inside the nav
   would otherwise inherit the muted nav link colour and render text-on-text.
   Restate the button colours at higher specificity. */
#site-nav .nav-cta .btn { color: #fff; padding: 9px 18px; }
#site-nav .nav-cta .btn:hover { text-decoration: none; }
#site-nav .nav-cta .btn--lime { color: #0a0b12; }
@media (max-width: 999px) {
  #site-nav {
    position: fixed; inset: 68px 0 0; background: var(--bg-2); padding: 20px;
    overflow-y: auto; display: none; border-top: 1px solid var(--stroke);
  }
  #site-nav.is-open { display: block; }
  #site-nav ul { flex-direction: column; gap: 2px; }
  #site-nav a { padding: 13px 16px; border-radius: var(--r-sm); font-size: 1rem; }
  .nav-cta { margin: 16px 0 0; display: block; }
  .nav-cta .btn { width: 100%; justify-content: center; }
}

/* ------------------------------------------------------------ buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 24px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--violet), #5b3cf0);
  color: #fff; font: inherit; font-weight: 700; font-size: .96rem;
  box-shadow: var(--glow-violet); transition: transform .16s ease, box-shadow .16s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); text-decoration: none; box-shadow: 0 0 0 1px rgba(124,92,255,.5), 0 16px 46px -12px rgba(124,92,255,.7); }
.btn--lime { background: linear-gradient(135deg, var(--lime), #9ee01f); color: #0a0b12; box-shadow: var(--glow-lime); }
.btn--ghost { background: transparent; border: 1px solid var(--stroke-2); color: var(--text); box-shadow: none; }
.btn--ghost:hover { background: var(--card); box-shadow: none; }
.btn--sm { padding: 8px 15px; font-size: .85rem; }
.btn--lg { padding: 16px 34px; font-size: 1.05rem; }
.btn--block { display: flex; width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }

/* -------------------------------------------------------------- cards --- */
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 28px);
  box-shadow: var(--shadow);
}
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid--4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px; font-size: .78rem; font-weight: 700;
  color: var(--lime); background: rgba(198, 255, 61, .10); border: 1px solid rgba(198, 255, 61, .25);
  padding: 6px 13px; border-radius: 999px; margin-bottom: 14px; letter-spacing: .02em;
}
.eyebrow--violet { color: var(--violet-2); background: rgba(124,92,255,.12); border-color: rgba(124,92,255,.3); }

/* --------------------------------------------------------------- hero --- */
.hero { padding-block: clamp(30px, 5vw, 56px) 0; }
.hero-grid { display: grid; gap: clamp(22px, 4vw, 40px); align-items: start; }
@media (min-width: 1020px) { .hero-grid { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); } }
.hero h1 { margin-bottom: .5em; }
.hero h1 em { font-style: normal; color: var(--lime); }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 22px 0 0; }
.hero-facts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; list-style: none; padding: 0; }
.hero-facts li {
  background: var(--card); border: 1px solid var(--stroke); border-radius: 999px;
  padding: 7px 15px; font-size: .84rem; color: var(--muted); margin: 0;
}
.hero-facts b { color: var(--lime); }

/* ------------------------------------------------------- game surface --- */
.game-shell {
  background: linear-gradient(180deg, rgba(28, 32, 51, .9), rgba(18, 20, 33, .96));
  border: 1px solid var(--stroke-2); border-radius: var(--r-xl);
  padding: clamp(14px, 2.6vw, 24px);
  box-shadow: 0 40px 90px -50px rgba(124, 92, 255, .85), var(--shadow);
  position: relative; overflow: hidden;
}
.game-shell::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 220px at 50% -10%, rgba(124, 92, 255, .22), transparent 70%);
}
.game-shell-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  flex-wrap: wrap; margin-bottom: 16px; position: relative;
}
.game-shell-head h2 { margin: 0; font-size: 1.15rem; }
.game-badge {
  font-size: .74rem; font-weight: 700; color: var(--safe);
  background: rgba(46, 230, 168, .1); border: 1px solid rgba(46, 230, 168, .3);
  border-radius: 999px; padding: 5px 12px;
}

/* --------------------------------------------------------- game board --- */
.pg { display: flex; flex-direction: column; gap: 16px; position: relative; }
.pg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px; }
.pg-stat {
  background: rgba(10, 11, 18, .6); border: 1px solid var(--stroke);
  border-radius: var(--r-sm); padding: 9px 11px; display: flex; flex-direction: column; gap: 2px;
}
.pg-stat-label { font-size: .68rem; color: var(--faint); }
.pg-stat-value { font-size: 1.02rem; font-weight: 700; color: var(--text); }
.pg-stat--mult .pg-stat-value { color: var(--safe); }
.pg-stat--win .pg-stat-value { color: var(--lime); }
.pg-stat--balance .pg-stat-value { color: var(--gold); }

.pg-board { display: flex; flex-direction: column; gap: 7px; }
.pg-row { display: flex; align-items: center; gap: 10px; }
.pg-mult {
  min-width: 58px; text-align: center; font-size: .8rem; font-weight: 700;
  padding: 5px 7px; border-radius: 8px; color: var(--faint);
  background: rgba(10, 11, 18, .5); border: 1px solid var(--stroke); flex: none;
}
.pg-mult.is-active { color: #0a0b12; background: var(--lime); border-color: transparent; }
.pg-mult.is-past { color: var(--safe); border-color: rgba(46, 230, 168, .4); }
.pg-tiles { display: flex; gap: 7px; flex: 1; justify-content: center; }
.pg-tile {
  width: var(--pg-tile, 56px); height: var(--pg-tile, 56px); flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--card-2); border: 1px solid var(--stroke-2); border-radius: 14px;
  color: var(--faint); font: inherit; font-size: 1.15rem; font-weight: 700; cursor: default;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease, background .15s ease;
  padding: 0;
}
.pg-tile[data-state='hidden'] { cursor: pointer; border-color: rgba(124, 92, 255, .35); color: var(--violet-2); background: rgba(124, 92, 255, .07); }
.pg-tile[data-state='hidden']:hover { transform: translateY(-3px); box-shadow: var(--glow-violet); border-color: var(--violet); }
.pg-tile[data-state='safe'] { background: rgba(46, 230, 168, .14); border-color: var(--safe); color: var(--safe); animation: pg-pop .3s ease; }
.pg-tile[data-state='poop'] { background: rgba(255, 90, 45, .16); border-color: var(--fire); animation: pg-shake .4s ease; }
.pg-tile[data-state='disabled'] { opacity: .38; }
@keyframes pg-pop { from { transform: scale(.7); } to { transform: scale(1); } }
@keyframes pg-shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
.pg-row.is-active .pg-tiles { filter: drop-shadow(0 0 16px rgba(124, 92, 255, .3)); }

.pg-coach {
  margin: 0; font-size: .87rem; color: var(--muted); background: rgba(10, 11, 18, .55);
  border: 1px solid var(--stroke); border-radius: var(--r-sm); padding: 11px 14px; line-height: 1.75;
}
.pg-controls { display: flex; flex-direction: column; gap: 13px; }
.pg-chips { display: flex; flex-direction: column; gap: 8px; }
.pg-chips-label { font-size: .76rem; color: var(--faint); }
.pg-chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.pg-chip {
  flex: 1 1 62px; min-width: 62px; height: 44px; border-radius: 12px;
  border: 1px solid var(--stroke-2); background: var(--card); color: var(--text);
  font: inherit; font-weight: 700; cursor: pointer; direction: ltr;
}
.pg-chip.is-active { background: var(--violet); border-color: transparent; color: #fff; box-shadow: var(--glow-violet); }
.pg-chip[disabled] { opacity: .4; cursor: not-allowed; }
.pg-chip-input {
  flex: 1 1 110px; min-width: 110px; height: 44px; border-radius: 12px; text-align: center;
  border: 1px solid var(--stroke-2); background: var(--card); color: var(--text); font: inherit; direction: ltr;
}
.pg-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.pg-btn {
  flex: 1 1 auto; padding: 13px 18px; border-radius: 999px; border: 0; cursor: pointer;
  background: linear-gradient(135deg, var(--violet), #5b3cf0); color: #fff;
  font: inherit; font-weight: 700; font-size: .95rem; box-shadow: var(--glow-violet);
}
.pg-btn--main { flex: 2 1 200px; }
.pg-btn--ghost { background: transparent; border: 1px solid var(--stroke-2); color: var(--muted); box-shadow: none; flex: 0 1 auto; }
.pg-btn[disabled] { opacity: .45; cursor: not-allowed; }
.pg-note { margin: 0; font-size: .76rem; color: var(--faint); text-align: center; line-height: 1.7; }

.pg-side { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.pg-ladder, .pg-log, .pg-session {
  background: rgba(10, 11, 18, .5); border: 1px solid var(--stroke);
  border-radius: var(--r); padding: 14px 16px;
}
.pg-ladder-title, .pg-log-title, .pg-session-title { font-size: .9rem; margin: 0 0 10px; }
.pg-ladder-track { display: flex; flex-wrap: wrap; gap: 5px; }
.pg-ladder-step {
  font-size: .74rem; font-weight: 700; padding: 5px 9px; border-radius: 8px;
  background: var(--card-2); border: 1px solid var(--stroke); color: var(--faint);
}
.pg-ladder-step.is-done { background: rgba(46, 230, 168, .14); border-color: var(--safe); color: var(--safe); }
.pg-ladder-step.is-next { background: var(--lime); color: #0a0b12; border-color: transparent; }
.pg-ladder-note, .pg-log-note { font-size: .74rem; color: var(--faint); margin: 10px 0 0; line-height: 1.7; }
.pg-log-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 5px; }
.pg-log-item { display: flex; align-items: center; gap: 8px; font-size: .78rem; margin: 0; }
.pg-log-badge { font-weight: 700; border-radius: 6px; padding: 2px 7px; font-size: .7rem; }
.pg-log-item.is-win .pg-log-badge { background: rgba(46, 230, 168, .16); color: var(--safe); }
.pg-log-item.is-loss .pg-log-badge { background: rgba(255, 90, 45, .16); color: var(--fire); }
.pg-log-amount { margin-inline-start: auto; font-weight: 700; }
.pg-log-item.is-win .pg-log-amount { color: var(--safe); }
.pg-log-item.is-loss .pg-log-amount { color: var(--fire); }
.pg-log-empty { color: var(--faint); font-size: .8rem; margin: 0; }
.pg-session-grid { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 0; font-size: .8rem; }
.pg-session-grid dt { color: var(--faint); }
.pg-session-grid dd { margin: 0; font-weight: 700; }

/* ------------------------------------------------------------ dialogs --- */
.pg-dialog {
  position: fixed; inset: 0; z-index: 200; background: rgba(5, 6, 12, .78);
  display: flex; align-items: center; justify-content: center; padding: 18px;
  backdrop-filter: blur(6px);
}
.pg-dialog[hidden] { display: none; }
.pg-dialog-card {
  background: var(--card); border: 1px solid var(--stroke-2); border-radius: var(--r-lg);
  padding: clamp(20px, 4vw, 30px); width: min(460px, 100%); text-align: center;
  box-shadow: 0 40px 90px -30px #000; max-height: 90vh; overflow-y: auto;
}
.pg-dialog-emoji { font-size: 2.4rem; line-height: 1; margin-bottom: 8px; }
.pg-dialog-title { font-size: 1.15rem; margin-bottom: .5em; }
.pg-dialog-text { color: var(--muted); font-size: .9rem; margin: 0 0 1em; }
.pg-dialog-actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 16px; }
.pg-dots { display: flex; gap: 6px; justify-content: center; margin: 16px 0 0; }
.pg-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--stroke-2); }
.pg-dot.is-on { width: 22px; background: var(--lime); }
.pg-result-grid { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 16px 0; text-align: start; font-size: .88rem; }
.pg-result-grid dt { color: var(--muted); padding: 9px 0; border-bottom: 1px solid var(--stroke); }
.pg-result-grid dd { margin: 0; font-weight: 700; padding: 9px 0; border-bottom: 1px solid var(--stroke); text-align: end; }

@media (max-width: 560px) {
  .pg-tile { --pg-tile: min(17vw, 56px) !important; border-radius: 11px; }
  .pg-tiles { gap: 5px; }
  .pg-mult { min-width: 48px; font-size: .72rem; padding: 4px; }
  .pg-row { gap: 6px; }
}

/* ------------------------------------------------------ brand pieces --- */
.brand-strip { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.brand-card {
  background: linear-gradient(180deg, var(--card-2), var(--card));
  border: 1px solid var(--stroke); border-radius: var(--r-lg); padding: 20px;
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
}
.brand-card.is-top { border-color: rgba(198, 255, 61, .4); box-shadow: var(--glow-lime); }
.brand-card-rank {
  position: absolute; inset-block-start: 0; inset-inline-end: 0;
  background: var(--violet); color: #fff; font-weight: 700; font-size: .78rem;
  padding: 5px 14px; border-end-start-radius: 12px;
}
.brand-card.is-top .brand-card-rank { background: var(--lime); color: #0a0b12; }
.brand-card-head { display: flex; align-items: center; gap: 12px; }
.brand-card-head img { width: 52px; height: 52px; object-fit: contain; background: #fff; border-radius: 12px; padding: 5px; flex: none; }
.brand-card-head h3 { margin: 0; font-size: 1.05rem; }
.brand-card-head p { margin: 0; font-size: .76rem; color: var(--faint); }
.score-big { display: flex; align-items: baseline; gap: 5px; }
.score-big b { font-size: 1.9rem; color: var(--lime); line-height: 1; }
.score-big span { font-size: .78rem; color: var(--faint); }
.brand-card-body { font-size: .87rem; color: var(--muted); margin: 0; flex: 1; }
.brand-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.brand-card-actions .btn { flex: 1 1 auto; }

.scorebars { display: grid; gap: 9px; margin: 0; }
.scorebar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: .82rem; }
.scorebar-label { color: var(--muted); }
.scorebar-track { height: 8px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--stroke); overflow: hidden; }
.scorebar-fill { display: block; height: 100%; width: var(--fill, 0%); border-radius: 999px; background: linear-gradient(90deg, var(--violet), var(--lime)); transition: width .7s ease; }
.scorebar-value { font-weight: 700; }

.stars { display: inline-flex; gap: 1px; }
.star { color: var(--stroke-2); font-size: .95rem; }
.star.is-on { color: var(--gold); }

.pill { display: inline-block; border-radius: 999px; padding: 3px 10px; font-size: .74rem; font-weight: 700; }
.pill--unknown { background: rgba(163, 171, 196, .12); color: var(--faint); border: 1px dashed var(--stroke-2); }
.pill--ok { background: rgba(46, 230, 168, .14); color: var(--safe); }

/* -------------------------------------------------------------- table --- */
.table-wrap { overflow-x: auto; border: 1px solid var(--stroke); border-radius: var(--r-lg); background: var(--card); -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; min-width: 720px; font-size: .88rem; }
table.data caption { text-align: start; padding: 16px 18px 0; color: var(--faint); font-size: .8rem; }
table.data th, table.data td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--stroke); vertical-align: middle; }
table.data thead th { background: rgba(10, 11, 18, .6); color: var(--muted); font-size: .8rem; font-weight: 700; white-space: nowrap; position: sticky; top: 0; }
table.data th[data-sortkey] { cursor: pointer; user-select: none; }
table.data th[data-sortkey]:hover { color: var(--lime); }
table.data th[data-sortkey]::after { content: ' ⇅'; opacity: .45; font-size: .8em; }
table.data tbody tr:hover { background: rgba(124, 92, 255, .07); }
table.data tbody tr:last-child td { border-bottom: 0; }
.c-brand a { display: flex; align-items: center; gap: 9px; color: var(--text); font-weight: 700; }
.c-brand img { width: 34px; height: 34px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; flex: none; }
.c-num { text-align: center; white-space: nowrap; }
.c-num b { color: var(--lime); font-size: 1rem; }
.rank-pill {
  display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
  border-radius: 9px; background: var(--card-2); border: 1px solid var(--stroke-2); font-weight: 700; font-size: .85rem;
}
tr:nth-child(1) .rank-pill { background: var(--lime); color: #0a0b12; border-color: transparent; }
tr:nth-child(2) .rank-pill { background: #cfd6e6; color: #0a0b12; border-color: transparent; }
tr:nth-child(3) .rank-pill { background: #d9a05b; color: #0a0b12; border-color: transparent; }
.table-hint { font-size: .78rem; color: var(--faint); margin: 10px 0 0; }

/* --------------------------------------------------------- breadcrumb --- */
.crumbs { font-size: .8rem; color: var(--faint); padding-block: 16px 0; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.crumbs li { margin: 0; display: flex; gap: 6px; align-items: center; }
.crumbs li + li::before { content: '‹'; color: var(--stroke-2); }
.crumbs a { color: var(--faint); }
.crumbs [aria-current] { color: var(--muted); }

/* --------------------------------------------------------------- misc --- */
.prose { max-width: 74ch; }
.prose h2 { margin-top: 1.8em; }
.prose h3 { margin-top: 1.5em; }
.prose ul li::marker { color: var(--violet-2); }
.callout {
  border: 1px solid var(--stroke-2); border-inline-start: 3px solid var(--lime);
  background: rgba(198, 255, 61, .05); border-radius: var(--r); padding: 16px 18px; margin: 1.6em 0;
}
.callout h3 { margin-top: 0; font-size: 1rem; }
.callout p:last-child { margin-bottom: 0; }
.callout--warn { border-inline-start-color: var(--fire); background: rgba(255, 90, 45, .06); }

.faq { display: grid; gap: 9px; }
.faq details {
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r); overflow: hidden;
}
.faq summary {
  cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: .95rem; list-style: none;
  display: flex; justify-content: space-between; gap: 12px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--lime); font-size: 1.3rem; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 18px 16px; color: var(--muted); font-size: .9rem; }
.faq details > div p:last-child { margin-bottom: 0; }

.link-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); list-style: none; padding: 0; margin: 0; }
.link-grid li { margin: 0; }
.link-grid a {
  display: block; background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r);
  padding: 15px 17px; color: var(--text); height: 100%;
}
.link-grid a:hover { border-color: var(--violet); text-decoration: none; transform: translateY(-2px); }
.link-grid strong { display: block; margin-bottom: 4px; font-size: .95rem; }
.link-grid span { font-size: .8rem; color: var(--faint); line-height: 1.6; display: block; }

/* ----------------------------------------------------------- comments --- */
.comments { display: grid; gap: 16px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.comment {
  background: var(--card); border: 1px solid var(--stroke); border-radius: var(--r); padding: 14px 17px; margin: 0;
}
.comment.is-pending { border-style: dashed; border-color: var(--gold); background: rgba(255, 197, 61, .05); }
.comment-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.comment-name { font-weight: 700; font-size: .9rem; }
.comment-head time { font-size: .75rem; color: var(--faint); margin-inline-start: auto; }
.comment-status { font-size: .72rem; color: var(--gold); background: rgba(255, 197, 61, .12); border-radius: 999px; padding: 2px 9px; margin-inline-start: auto; }
.comment-body { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.85; }

.comment-form { display: grid; gap: 13px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .84rem; color: var(--muted); font-weight: 500; }
.field input[type='text'], .field textarea {
  background: var(--bg-2); border: 1px solid var(--stroke-2); border-radius: var(--r-sm);
  padding: 12px 14px; color: var(--text); font: inherit; font-size: .92rem; width: 100%;
}
.field textarea { min-height: 110px; resize: vertical; line-height: 1.8; }
.rating-input { display: flex; gap: 6px; flex-direction: row-reverse; justify-content: flex-end; }
.rating-input input { position: absolute; opacity: 0; width: 0; height: 0; }
.rating-input label {
  cursor: pointer; font-size: 1.6rem; color: var(--stroke-2); line-height: 1; padding: 2px;
  transition: color .15s, transform .15s;
}
.rating-input input:checked ~ label, .rating-input label:hover, .rating-input label:hover ~ label { color: var(--gold); }
.rating-input input:focus-visible + label { outline: 3px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
.form-status { font-size: .85rem; margin: 0; padding: 10px 14px; border-radius: var(--r-sm); }
.form-status:empty { display: none; }
.form-status.is-ok { background: rgba(46, 230, 168, .12); color: var(--safe); }
.form-status.is-error { background: rgba(255, 90, 45, .12); color: var(--fire); }
.form-note { font-size: .76rem; color: var(--faint); margin: 0; line-height: 1.7; }

/* ------------------------------------------------------------- footer --- */
.site-footer { border-top: 1px solid var(--stroke); background: rgba(6, 7, 12, .7); margin-top: clamp(40px, 6vw, 80px); }
.footer-top { display: grid; gap: 28px; padding-block: clamp(30px, 5vw, 50px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-brand p { font-size: .85rem; color: var(--faint); max-width: 34ch; }
.footer-col h3 { font-size: .88rem; margin-bottom: 12px; color: var(--text); }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-col li { margin: 0; }
.footer-col a { color: var(--faint); font-size: .85rem; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid var(--stroke); padding-block: 18px; font-size: .78rem; color: var(--faint); display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; }
.footer-disclaimer { font-size: .76rem; color: var(--faint); line-height: 1.85; border-top: 1px solid var(--stroke); padding-block: 16px; }

/* ---------------------------------------------------------------- 404 --- */
.err { text-align: center; padding-block: clamp(50px, 10vw, 110px); }
.err-code { font-size: clamp(4rem, 16vw, 8rem); font-weight: 700; line-height: 1; color: var(--violet); margin: 0; }
.err .link-grid { margin-top: 30px; text-align: start; }

/* ------------------------------------------------------------- author --- */
.authorbox {
  display: flex; gap: 14px; align-items: flex-start; background: var(--card);
  border: 1px solid var(--stroke); border-radius: var(--r); padding: 16px 18px; margin-top: 2.2em;
}
.authorbox-avatar {
  width: 44px; height: 44px; border-radius: 12px; background: rgba(124, 92, 255, .15);
  border: 1px solid rgba(124, 92, 255, .35); display: grid; place-items: center; font-size: 1.3rem; flex: none;
}
.authorbox p { margin: 0; font-size: .82rem; color: var(--faint); line-height: 1.8; }
.authorbox strong { display: block; color: var(--text); font-size: .92rem; margin-bottom: 3px; }
.updated { font-size: .78rem; color: var(--faint); }
