@charset "utf-8";
/* ==========================================================================
   PopRankFa — design system: "Review Desk"
   An editorial ranking authority. Deep navy paper, gold reserved strictly for
   rank and score, hairline rules instead of cards wherever possible, and a
   score column that reads like a masthead. Not a dashboard, not an arcade.
   Typeface: Shabnam (SIL OFL), self-hosted.
   ========================================================================== */

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

:root {
  --bg: #0d1526;
  --bg-2: #111c33;
  --panel: #16223c;
  --panel-2: #1c2a48;
  --rule: #24334f;
  --rule-2: #33456a;

  --ink: #f2f4fa;
  --ink-2: #b3bdd4;
  --ink-3: #7d8aa8;

  --gold: #d4af37;
  --gold-2: #f0cf6a;
  --gold-soft: rgba(212, 175, 55, .12);
  --green: #3ecf8e;
  --red: #e5645b;

  --r-sm: 6px;
  --r: 10px;
  --r-lg: 16px;

  --wrap: 1140px;
  --gap: clamp(16px, 2.8vw, 26px);
}

*, *::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: var(--bg); color: var(--ink);
  font-family: 'Shabnam', system-ui, Tahoma, sans-serif;
  font-size: 16.5px; line-height: 2; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
body.nav-open, body.pg-noscroll { overflow: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--gold-2); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 4px; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 4px; }

h1, h2, h3, h4 { line-height: 1.45; margin: 0 0 .55em; font-weight: 700; }
h1 { font-size: clamp(1.75rem, 1.2rem + 2.4vw, 2.85rem); letter-spacing: -.015em; }
h2 { font-size: clamp(1.3rem, 1.05rem + 1.15vw, 1.9rem); }
h3 { font-size: clamp(1.05rem, .98rem + .45vw, 1.25rem); }
p { margin: 0 0 1.15em; }
ul, ol { padding-inline-start: 1.35em; margin: 0 0 1.2em; }
li { margin-bottom: .5em; }
code { background: var(--panel); border: 1px solid var(--rule); border-radius: 4px; padding: 1px 6px; font-size: .88em; color: var(--gold-2); }

/* No display:inline-block — used on <td>; an inline-block cell drops out of
   table layout and shears the column grid. */
.ltr-nums { direction: ltr; unicode-bidi: isolate; font-feature-settings: 'tnum' 1; }
.muted { color: var(--ink-2); }
.faint { color: var(--ink-3); }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; 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(--gold); color: #1a1300; padding: 10px 18px; border-radius: 0 0 8px 8px; 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(34px, 5vw, 64px); }
.section--tight { padding-block: clamp(22px, 3.4vw, 40px); }
.section--panel { background: var(--bg-2); border-block: 1px solid var(--rule); }
.lede { font-size: 1.08rem; color: var(--ink-2); max-width: 66ch; }
.rule { border: 0; border-top: 1px solid var(--rule); margin: 0; }

/* ------------------------------------------------------------- header --- */
.site-header { background: rgba(13, 21, 38, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--rule); position: sticky; top: 0; z-index: 60; }
.header-in { display: flex; align-items: center; gap: 14px; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; font-weight: 700; color: var(--ink); }
.logo:hover { text-decoration: none; }
.logo img { width: 38px; height: 38px; }
.logo span small { display: block; font-size: .67rem; color: var(--ink-3); font-weight: 400; line-height: 1.3; letter-spacing: .02em; }
.nav-toggle { margin-inline-start: auto; display: inline-flex; align-items: center; gap: 7px; background: var(--panel); border: 1px solid var(--rule-2); color: var(--ink); border-radius: var(--r-sm); padding: 9px 15px; font: inherit; font-size: .88rem; cursor: pointer; }
@media (min-width: 1000px) { .nav-toggle { display: none; } }
#site-nav { margin-inline-start: auto; }
@media (min-width: 1000px) { #site-nav { display: flex; align-items: center; gap: 6px; } }
#site-nav ul { display: flex; gap: 0; list-style: none; margin: 0; padding: 0; }
#site-nav a { display: block; padding: 9px 12px; color: var(--ink-2); font-size: .9rem; font-weight: 500; white-space: nowrap; border-bottom: 2px solid transparent; }
#site-nav a:hover { color: var(--gold-2); text-decoration: none; }
#site-nav a[aria-current='page'] { color: var(--gold); border-bottom-color: var(--gold); font-weight: 700; }
.nav-cta { margin-inline-start: 10px; flex: none; }
/* `#site-nav a` outranks `.btn`; restate the CTA colours at higher specificity. */
#site-nav .nav-cta .btn { color: #1a1300; padding: 9px 18px; border-bottom: 0; }
#site-nav .nav-cta .btn:hover { color: #1a1300; text-decoration: none; }
@media (max-width: 999px) {
  #site-nav { position: fixed; inset: 68px 0 0; background: var(--bg-2); padding: 18px; overflow-y: auto; display: none; }
  #site-nav.is-open { display: block; }
  #site-nav ul { flex-direction: column; }
  #site-nav a { padding: 14px 8px; border-bottom: 1px solid var(--rule); font-size: 1rem; }
  .nav-cta { display: block; margin: 18px 0 0; }
  .nav-cta .btn { width: 100%; }
}

/* ------------------------------------------------------------ buttons --- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 24px; border-radius: var(--r-sm); border: 0; cursor: pointer; background: var(--gold); color: #1a1300; font: inherit; font-weight: 700; font-size: .94rem; transition: background .15s, transform .15s; }
.btn:hover { background: var(--gold-2); color: #1a1300; transform: translateY(-1px); text-decoration: none; }
.btn--ghost { background: transparent; border: 1px solid var(--rule-2); color: var(--ink); }
.btn--ghost:hover { background: var(--panel); color: var(--gold-2); border-color: var(--gold); }
.btn--sm { padding: 7px 14px; font-size: .83rem; }
.btn--lg { padding: 15px 32px; font-size: 1.02rem; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: clamp(16px, 2.6vw, 24px); }
.grid { display: grid; gap: var(--gap); }
.grid--2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 245px), 1fr)); }

.kicker { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; color: var(--gold); text-transform: uppercase; margin-bottom: 12px; }
.dateline { font-size: .78rem; color: var(--ink-3); border-block: 1px solid var(--rule); padding-block: 9px; margin-bottom: 20px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------------------------------------------------------- rank list --- */
.podium { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.podium-item { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 20px; position: relative; display: flex; flex-direction: column; gap: 12px; }
.podium-item--1 { border-color: var(--gold); background: linear-gradient(180deg, rgba(212,175,55,.09), var(--panel)); }
.podium-medal { position: absolute; inset-block-start: -12px; inset-inline-start: 20px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: .95rem; color: #1a1300; background: var(--rule-2); }
.podium-item--1 .podium-medal { background: var(--gold); }
.podium-item--2 .podium-medal { background: #c3cbdc; }
.podium-item--3 .podium-medal { background: #c08a52; }
.podium-head { display: flex; align-items: center; gap: 12px; margin-top: 6px; }
.podium-head img { width: 50px; height: 50px; object-fit: contain; flex: none; }
.podium-head h3 { margin: 0; font-size: 1.1rem; }
.podium-head p { margin: 0; font-size: .75rem; color: var(--ink-3); }
.podium-score { display: flex; align-items: baseline; gap: 6px; }
.podium-score b { font-size: 2.1rem; color: var(--gold); line-height: 1; font-weight: 700; }
.podium-score span { font-size: .76rem; color: var(--ink-3); }
.podium-item p.verdict { margin: 0; font-size: .87rem; color: var(--ink-2); flex: 1; }
.podium-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------------------------------------------------------- scorecard --- */
.scorecard { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); overflow: hidden; }
.scorecard-top { display: flex; align-items: center; gap: 16px; padding: 20px; border-bottom: 1px solid var(--rule); flex-wrap: wrap; }
.scorecard-top img { width: 58px; height: 58px; object-fit: contain; flex: none; }
.scorecard-top h2 { margin: 0 0 2px; font-size: 1.15rem; }
.scorecard-top p { margin: 0; font-size: .77rem; color: var(--ink-3); }
.scorecard-grade { margin-inline-start: auto; text-align: center; padding-inline-start: 16px; border-inline-start: 1px solid var(--rule); }
.scorecard-grade b { display: block; font-size: 2.4rem; color: var(--gold); line-height: 1; font-weight: 700; }
.scorecard-grade span { font-size: .7rem; color: var(--ink-3); }
.scorecard-rows { padding: 6px 20px 18px; }
.srow { display: grid; grid-template-columns: minmax(96px, 30%) 1fr auto auto; gap: 12px; align-items: center; padding-block: 10px; border-bottom: 1px solid var(--rule); font-size: .86rem; }
.srow:last-child { border-bottom: 0; }
.srow-label { color: var(--ink-2); }
.srow-track { height: 6px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.srow-fill { display: block; height: 100%; width: var(--fill, 0%); background: linear-gradient(90deg, var(--gold), var(--gold-2)); transition: width .7s ease; }
.srow-value { font-weight: 700; min-width: 34px; text-align: end; }
.srow-weight { font-size: .74rem; color: var(--ink-3); min-width: 38px; text-align: end; }

.stars { display: inline-flex; gap: 1px; }
.star { color: var(--rule-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(125,138,168,.14); color: var(--ink-3); border: 1px dashed var(--rule-2); }

/* -------------------------------------------------------------- table --- */
.table-wrap { overflow-x: auto; border: 1px solid var(--rule); border-radius: var(--r); background: var(--panel); -webkit-overflow-scrolling: touch; }
table.data { width: 100%; border-collapse: collapse; min-width: 700px; font-size: .88rem; }
table.data caption { text-align: start; padding: 15px 17px 0; color: var(--ink-3); font-size: .79rem; }
table.data th, table.data td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--rule); vertical-align: middle; }
table.data thead th { background: var(--bg-2); color: var(--ink-2); font-size: .78rem; letter-spacing: .03em; white-space: nowrap; }
table.data th[data-sortkey] { cursor: pointer; user-select: none; }
table.data th[data-sortkey]:hover { color: var(--gold); }
table.data th[data-sortkey]::after { content: ' ⇅'; opacity: .45; font-size: .8em; }
table.data tbody tr:hover { background: var(--panel-2); }
table.data tbody tr:last-child td { border-bottom: 0; }
.c-brand a { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 700; }
.c-brand img { width: 32px; height: 32px; object-fit: contain; flex: none; }
.c-num { text-align: center; white-space: nowrap; }
.c-num b { color: var(--gold); font-size: 1.02rem; }
.rank-pill { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--bg); border: 1px solid var(--rule-2); font-weight: 700; font-size: .84rem; }
tr:nth-child(1) .rank-pill { background: var(--gold); color: #1a1300; border-color: transparent; }
tr:nth-child(2) .rank-pill { background: #c3cbdc; color: #1a1300; border-color: transparent; }
tr:nth-child(3) .rank-pill { background: #c08a52; color: #1a1300; border-color: transparent; }
.table-hint { font-size: .79rem; color: var(--ink-3); margin: 10px 0 0; }

/* --------------------------------------------------------- game (desk) --- */
.game-shell { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r-lg); padding: clamp(14px, 2.4vw, 22px); }
.game-shell-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--rule); }
.game-shell-head h2 { margin: 0; font-size: 1.06rem; }
.game-badge { font-size: .73rem; font-weight: 700; color: var(--gold); background: var(--gold-soft); border-radius: 999px; padding: 5px 12px; }

.pg { display: flex; flex-direction: column; gap: 15px; }
.pg-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(94px, 1fr)); gap: 8px; }
.pg-stat { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 9px 11px; display: flex; flex-direction: column; }
.pg-stat-label { font-size: .67rem; color: var(--ink-3); }
.pg-stat-value { font-size: 1.02rem; font-weight: 700; }
.pg-stat--mult .pg-stat-value, .pg-stat--balance .pg-stat-value { color: var(--gold); }
.pg-stat--win .pg-stat-value { color: var(--green); }

.pg-board { display: flex; flex-direction: column; gap: 6px; }
.pg-row { display: flex; align-items: center; gap: 10px; }
.pg-mult { min-width: 54px; text-align: center; font-size: .76rem; font-weight: 700; padding: 5px 6px; border-radius: 5px; color: var(--ink-3); background: var(--bg); border: 1px solid var(--rule); flex: none; }
.pg-mult.is-active { background: var(--gold); color: #1a1300; border-color: transparent; }
.pg-mult.is-past { background: rgba(62,207,142,.14); color: var(--green); border-color: transparent; }
.pg-tiles { display: flex; gap: 7px; flex: 1; justify-content: center; }
.pg-tile { width: var(--pg-tile, 52px); height: var(--pg-tile, 52px); flex: none; display: inline-flex; align-items: center; justify-content: center; background: var(--bg); border: 1px solid var(--rule-2); border-radius: 8px; color: var(--ink-3); font: inherit; font-size: 1.05rem; font-weight: 700; cursor: default; padding: 0; transition: transform .14s, background .14s, border-color .14s; }
.pg-tile[data-state='hidden'] { cursor: pointer; border-color: var(--gold); color: var(--gold); background: var(--gold-soft); }
.pg-tile[data-state='hidden']:hover { transform: translateY(-2px); background: rgba(212,175,55,.2); }
.pg-tile[data-state='safe'] { background: rgba(62,207,142,.16); border-color: var(--green); color: var(--green); }
.pg-tile[data-state='poop'] { background: rgba(229,100,91,.16); border-color: var(--red); }
.pg-tile[data-state='disabled'] { opacity: .4; }
.pg-coach { margin: 0; font-size: .86rem; color: var(--ink-2); background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r-sm); padding: 11px 14px; line-height: 1.8; }
.pg-controls { display: flex; flex-direction: column; gap: 12px; }
.pg-chips { display: flex; flex-direction: column; gap: 7px; }
.pg-chips-label { font-size: .76rem; color: var(--ink-3); }
.pg-chip-row { display: flex; gap: 7px; flex-wrap: wrap; }
.pg-chip { flex: 1 1 58px; min-width: 58px; height: 42px; border-radius: var(--r-sm); border: 1px solid var(--rule-2); background: var(--bg); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; direction: ltr; }
.pg-chip.is-active { background: var(--gold); color: #1a1300; border-color: transparent; }
.pg-chip[disabled] { opacity: .4; cursor: not-allowed; }
.pg-chip-input { flex: 1 1 100px; min-width: 100px; height: 42px; border-radius: var(--r-sm); text-align: center; border: 1px solid var(--rule-2); background: var(--bg); color: var(--ink); font: inherit; direction: ltr; }
.pg-actions { display: flex; gap: 9px; flex-wrap: wrap; }
.pg-btn { flex: 1 1 auto; padding: 12px 18px; border-radius: var(--r-sm); border: 0; cursor: pointer; background: var(--gold); color: #1a1300; font: inherit; font-weight: 700; font-size: .93rem; }
.pg-btn--main { flex: 2 1 180px; }
.pg-btn--ghost { background: transparent; border: 1px solid var(--rule-2); color: var(--ink-2); flex: 0 1 auto; }
.pg-btn[disabled] { opacity: .4; cursor: not-allowed; }
.pg-note { margin: 0; font-size: .76rem; color: var(--ink-3); line-height: 1.75; }
.pg-side { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.pg-ladder, .pg-log, .pg-session { background: var(--bg); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 16px; }
.pg-ladder-title, .pg-log-title, .pg-session-title { font-size: .88rem; margin: 0 0 10px; }
.pg-ladder-track { display: flex; flex-wrap: wrap; gap: 5px; }
.pg-ladder-step { font-size: .73rem; font-weight: 700; padding: 4px 8px; border-radius: 5px; background: var(--panel); border: 1px solid var(--rule); color: var(--ink-3); }
.pg-ladder-step.is-done { background: rgba(62,207,142,.14); color: var(--green); border-color: transparent; }
.pg-ladder-step.is-next { background: var(--gold); color: #1a1300; border-color: transparent; }
.pg-ladder-note, .pg-log-note { font-size: .74rem; color: var(--ink-3); margin: 10px 0 0; line-height: 1.7; }
.pg-log-list { list-style: none; margin: 0; padding: 0; display: grid; 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: 4px; padding: 2px 7px; font-size: .7rem; }
.pg-log-item.is-win .pg-log-badge { background: rgba(62,207,142,.16); color: var(--green); }
.pg-log-item.is-loss .pg-log-badge { background: rgba(229,100,91,.16); color: var(--red); }
.pg-log-amount { margin-inline-start: auto; font-weight: 700; }
.pg-log-empty { color: var(--ink-3); font-size: .8rem; margin: 0; }
.pg-session-grid { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; margin: 0; font-size: .81rem; }
.pg-session-grid dt { color: var(--ink-3); }
.pg-session-grid dd { margin: 0; font-weight: 700; }

.pg-dialog { position: fixed; inset: 0; z-index: 200; background: rgba(6, 10, 20, .8); display: flex; align-items: center; justify-content: center; padding: 18px; }
.pg-dialog[hidden] { display: none; }
.pg-dialog-card { background: var(--panel); border: 1px solid var(--rule-2); border-radius: var(--r-lg); padding: clamp(20px, 4vw, 28px); width: min(450px, 100%); text-align: center; max-height: 90vh; overflow-y: auto; }
.pg-dialog-emoji { font-size: 2.3rem; line-height: 1; margin-bottom: 8px; }
.pg-dialog-title { font-size: 1.12rem; }
.pg-dialog-text { color: var(--ink-2); font-size: .9rem; margin: 0 0 1em; }
.pg-dialog-actions { display: flex; gap: 9px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }
.pg-dots { display: flex; gap: 6px; justify-content: center; margin-top: 14px; }
.pg-dot { width: 8px; height: 8px; border-radius: 999px; background: var(--rule-2); }
.pg-dot.is-on { width: 22px; background: var(--gold); }
.pg-result-grid { display: grid; grid-template-columns: 1fr auto; margin: 14px 0; text-align: start; font-size: .88rem; }
.pg-result-grid dt { color: var(--ink-2); padding: 8px 0; border-bottom: 1px solid var(--rule); }
.pg-result-grid dd { margin: 0; font-weight: 700; padding: 8px 0; border-bottom: 1px solid var(--rule); text-align: end; }

@media (max-width: 560px) {
  .pg-tile { --pg-tile: min(16.5vw, 52px) !important; }
  .pg-tiles { gap: 5px; }
  .pg-mult { min-width: 46px; font-size: .7rem; padding: 4px; }
  .pg-row { gap: 6px; }
}

/* --------------------------------------------------------- breadcrumb --- */
.crumbs { font-size: .79rem; color: var(--ink-3); padding-block: 14px 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(--rule-2); }
.crumbs a { color: var(--ink-3); }

/* --------------------------------------------------------------- misc --- */
.prose { max-width: 68ch; }
.prose h2 { margin-top: 1.9em; padding-bottom: .22em; border-bottom: 1px solid var(--rule); }
.prose h3 { margin-top: 1.5em; }
.prose ul li::marker, .prose ol li::marker { color: var(--gold); }
.prose blockquote { margin: 1.6em 0; padding-inline-start: 18px; border-inline-start: 3px solid var(--gold); color: var(--ink-2); font-size: 1.02rem; }
.callout { background: var(--panel); border: 1px solid var(--rule); border-inline-start: 3px solid var(--gold); 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(--red); }

.faq { display: grid; gap: 8px; }
.faq details { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); }
.faq summary { cursor: pointer; padding: 15px 18px; font-weight: 700; font-size: .94rem; 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(--gold); font-size: 1.3rem; flex: none; }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 18px 16px; color: var(--ink-2); 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%, 228px), 1fr)); list-style: none; padding: 0; margin: 0; }
.link-grid li { margin: 0; }
.link-grid a { display: block; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 15px 17px; color: var(--ink); height: 100%; }
.link-grid a:hover { border-color: var(--gold); text-decoration: none; }
.link-grid strong { display: block; margin-bottom: 4px; font-size: .94rem; }
.link-grid span { font-size: .8rem; color: var(--ink-3); line-height: 1.65; display: block; }

/* ----------------------------------------------------------- comments --- */
.comments { display: grid; gap: 16px; }
.comment-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.comment { background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 14px 17px; margin: 0; }
.comment.is-pending { border-style: dashed; border-color: var(--gold); }
.comment-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 5px; }
.comment-name { font-weight: 700; font-size: .89rem; }
.comment-head time { font-size: .74rem; color: var(--ink-3); margin-inline-start: auto; }
.comment-status { font-size: .71rem; color: var(--gold); background: var(--gold-soft); border-radius: 999px; padding: 2px 9px; margin-inline-start: auto; }
.comment-body { margin: 0; font-size: .88rem; color: var(--ink-2); line-height: 1.9; }
.comment-form { display: grid; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { font-size: .84rem; color: var(--ink-2); font-weight: 500; }
.field input[type='text'], .field textarea { background: var(--bg); border: 1px solid var(--rule-2); border-radius: var(--r-sm); padding: 11px 13px; color: var(--ink); font: inherit; font-size: .91rem; width: 100%; }
.field textarea { min-height: 105px; resize: vertical; line-height: 1.85; }
.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.55rem; color: var(--rule-2); line-height: 1; padding: 2px; }
.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(--gold); outline-offset: 2px; }
.form-status { font-size: .85rem; margin: 0; padding: 10px 13px; border-radius: var(--r-sm); }
.form-status:empty { display: none; }
.form-status.is-ok { background: rgba(62,207,142,.14); color: var(--green); }
.form-status.is-error { background: rgba(229,100,91,.14); color: var(--red); }
.form-note { font-size: .77rem; color: var(--ink-3); margin: 0; line-height: 1.75; }

.authorbox { display: flex; gap: 14px; align-items: flex-start; background: var(--panel); border: 1px solid var(--rule); border-radius: var(--r); padding: 16px 18px; margin-top: 2.2em; }
.authorbox-avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--gold-soft); border: 1px solid var(--gold); color: var(--gold); display: grid; place-items: center; font-size: 1.15rem; flex: none; }
.authorbox p { margin: 0; font-size: .82rem; color: var(--ink-3); line-height: 1.8; }
.authorbox strong { display: block; color: var(--ink); font-size: .91rem; margin-bottom: 2px; }
.updated { font-size: .79rem; color: var(--ink-3); }

/* ------------------------------------------------------------- footer --- */
.site-footer { border-top: 1px solid var(--rule); background: var(--bg-2); margin-top: clamp(40px, 6vw, 76px); }
.footer-top { display: grid; gap: 26px; padding-block: clamp(30px, 5vw, 48px); grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.footer-brand p { font-size: .84rem; color: var(--ink-3); max-width: 34ch; }
.footer-col h3 { font-size: .87rem; margin-bottom: 12px; color: var(--gold); letter-spacing: .04em; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.footer-col li { margin: 0; }
.footer-col a { font-size: .85rem; color: var(--ink-2); }
.footer-col a:hover { color: var(--gold-2); }
.footer-disclaimer { border-top: 1px solid var(--rule); padding-block: 16px; font-size: .77rem; color: var(--ink-3); line-height: 1.85; }
.footer-bottom { border-top: 1px solid var(--rule); padding-block: 16px; font-size: .78rem; color: var(--ink-3); display: flex; gap: 14px; flex-wrap: wrap; justify-content: space-between; }

/* ---------------------------------------------------------------- 404 --- */
.err { text-align: center; padding-block: clamp(50px, 9vw, 100px); }
.err-code { font-size: clamp(3.6rem, 14vw, 7rem); font-weight: 700; color: var(--gold); margin: 0; line-height: 1; }
.err .link-grid { margin-top: 28px; text-align: start; }
