/* AI Slop or Not? — one stylesheet. Quiet dark slate-blue frame so game art stands out;
   personality lives in the logo, stamps and verdicts. See docs/DESIGN.md. */
@font-face { font-family: "Libre Franklin"; src: url("/fonts/libre-franklin.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #1A2330;          /* page */
  --surface: #232F3E;     /* cards, panels */
  --surface-2: #2C3A4C;   /* sunken bits, hover rows, tags */
  --header: #121A24;
  --footer: #121A24;
  --footer-text: #B4C2D1;
  --input: #16202B;
  --text: #E4EAF0;
  --muted: #A3B2C2;
  --line: #34455A;
  --line-strong: #4A5E76;
  --accent: #6FB1EC;      /* links, focus, rank numbers */
  --accent-hover: #9CCBF4;
  --btn: #3874B5;         /* button fill; white text */
  --btn-hover: #2F6AA8;
  --not: #2E7D52;         /* Not Slop fill (white text) */
  --slop: #B5492A;        /* Slop fill (white text) */
  --not-text: #6CD49B;    /* Not Slop as text on the page */
  --slop-text: #F08A68;   /* Slop as text on the page */
  --error: #F08A80;
  --error-fill: #A93838;
  --highlight: #2A3E55;
  --overlay: rgba(14, 20, 28, .92);
  --radius: 6px;
  --font: "Libre Franklin", "Segoe UI", Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; } /* beats .btn's display */
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.55 var(--font); }
a { color: var(--accent); text-underline-offset: .15em; }
a:hover { color: var(--accent-hover); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
h1, h2, h3 { font-family: var(--font); line-height: 1.12; letter-spacing: -0.015em; color: var(--text); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.8rem); font-weight: 800; margin: 0 0 .5rem; }
h2 { font-size: 1.3rem; font-weight: 700; margin: 2rem 0 .9rem; }
h3 { font-weight: 700; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 1rem; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 10; }
.skip:focus { left: 1rem; }

/* Header and footer */
.site-header { background: var(--header); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: .5rem 1.5rem; min-height: 64px; flex-wrap: wrap; padding-top: .5rem; padding-bottom: .5rem; }
.logo { font-weight: 900; font-size: 1.55rem; line-height: 1; letter-spacing: -0.03em; color: var(--text); text-decoration: none; text-transform: uppercase; }
.logo:hover { color: var(--text); }
.logo-or { font-size: .7em; font-style: italic; font-weight: 600; letter-spacing: 0; text-transform: lowercase; color: var(--muted); }
.alpha { margin-left: -.9rem; padding: .1rem .45rem; border: 1px solid var(--accent); border-radius: 3px; color: var(--accent);
  font-size: .68rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; line-height: 1.3; transform: translateY(-.45rem); }
.nav { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; margin-left: auto; }
.nav a, .nav .btn-link { color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem; }
.nav a:hover, .nav .btn-link:hover { color: var(--accent-hover); }
.nav .btn { color: #fff; }
.nav .btn:hover { color: #fff; }
.inline { display: inline; margin: 0; }
.site-footer { background: var(--footer); color: var(--footer-text); margin-top: 4rem; padding: 2rem 0; }
.site-footer strong { color: #fff; }
.site-footer a { color: var(--footer-text); }
.site-footer a:hover { color: #fff; }
@media (max-width: 640px) {
  .header-row { min-height: 0; }
  .nav { margin-left: 0; width: 100%; gap: .9rem; }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: 0 1.2rem;
  border: 1px solid var(--btn); border-radius: var(--radius); background: var(--btn); color: #fff; font: 700 1rem var(--font);
  text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--btn-hover); border-color: var(--btn-hover); color: #fff; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-small { min-height: 36px; padding: 0 .9rem; font-size: .9rem; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); border-color: var(--line-strong); }
.btn-wide { width: 100%; }
.btn-discord { background: #5865f2; border-color: #5865f2; color: #fff; }
.btn-google { background: #fff; border-color: #c9ced4; color: #1f1f1f; }
.btn-github { background: #24292f; border-color: #57606a; color: #fff; }
.btn-discord:hover, .btn-github:hover { color: #fff; filter: brightness(1.1); }
.btn-google:hover { color: #1f1f1f; background: #f3f3f3; }
.btn-link { background: none; border: 0; padding: 0; color: var(--accent); font: 600 1rem var(--font); cursor: pointer; text-decoration: underline; text-underline-offset: .15em; }
.btn-link:hover { color: var(--accent-hover); }

/* Hero, search and genre chips */
.hero { padding: 2.5rem 0 1rem; }
.hero-compact { padding: 1.5rem 0 .5rem; }
.hero-compact h1 { font-size: clamp(1.5rem, 3.5vw, 2rem); }
.accent { color: var(--accent); }
.lead { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.25rem; max-width: 60ch; }
.t-slop { color: var(--slop-text); }
.t-not { color: var(--not-text); }
.search { display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.search input { flex: 1 1 240px; min-height: 44px; padding: 0 1rem; border-radius: var(--radius); border: 1px solid var(--line-strong);
  background: var(--input); color: var(--text); font: 1rem var(--font); }
.chips { display: flex; gap: .4rem; flex-wrap: wrap; }
.chip { padding: .3rem .75rem; border-radius: var(--radius); border: 1px solid var(--line); text-decoration: none; font-size: .85rem;
  font-weight: 600; color: var(--text); background: var(--surface); }
.chip:hover { color: var(--text); background: var(--surface-2); border-color: var(--line-strong); }
.chip-on, .chip-on:hover { background: var(--btn); border-color: var(--btn); color: #fff; }

/* Section headings: small and quiet, a hairline above */
.shelf > h2, .ranks > h2 { border-top: 1px solid var(--line); padding-top: 1rem; }

/* Game cards */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 1rem; }
.card { position: relative; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; text-decoration: none; color: var(--text); transition: border-color .12s, background-color .12s; }
.card:hover { border-color: var(--line-strong); background: var(--surface-2); color: var(--text); }
.thumb { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--surface-2); }
.thumb-empty { display: grid; place-items: center; font-size: 3.2rem; font-weight: 900; color: rgba(255, 255, 255, .85); }
.card-body { padding: .7rem .85rem .9rem; display: flex; flex-direction: column; gap: .35rem; flex: 1; }
.card-title { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.2; }
.card-meta { margin: 0; color: var(--muted); font-size: .85rem; }
.genre-tag { display: inline-block; margin-right: .3rem; padding: 0 .4rem; background: var(--surface-2); color: var(--muted); font-size: .7rem;
  font-weight: 700; letter-spacing: .06em; text-transform: uppercase; border-radius: 3px; }
.card:hover .genre-tag { background: var(--bg); }

/* Verdict stamps (thumbnails) and stickers: the one loud thing */
.stamp { position: absolute; top: .7rem; right: .6rem; padding: .15rem .55rem; border: 2px solid #fff; outline: 2px solid currentColor;
  font: 900 .8rem var(--font); letter-spacing: .08em; text-transform: uppercase; color: #fff; transform: rotate(-7deg); }
.stamp-not { background: var(--not); outline-color: var(--not); }
.stamp-slop { background: var(--slop); outline-color: var(--slop); transform: rotate(6deg); }
.sticker { position: absolute; right: .8rem; bottom: .8rem; display: grid; padding: .45rem .8rem .5rem; background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--radius); transform: rotate(-4deg); font-weight: 800; font-size: 1.15rem; line-height: 1.1; color: var(--text); }
.sticker small { font-size: .78rem; font-weight: 600; color: var(--muted); }

/* Verdict */
.verdict { display: grid; grid-template-columns: 1fr auto; gap: .3rem .5rem; align-items: baseline; margin-top: auto; padding-top: .2rem; font-size: .9rem; }
.verdict-count { color: var(--muted); font-size: .8rem; }
.verdict-good .verdict-label strong { color: var(--not-text); }
.verdict-bad .verdict-label strong { color: var(--slop-text); }
.verdict-new .verdict-label { color: var(--muted); font-style: italic; }
.meter { grid-column: 1 / -1; height: 6px; border-radius: 3px; background: var(--slop); overflow: hidden; }
.meter-fill { display: block; height: 100%; background: var(--not); border-right: 2px solid var(--surface); }
.meter-fill.w-0, .meter-fill.w-100 { border-right: 0; }

/* Panels and messages */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-top: 2rem; }
.narrow { max-width: 460px; margin-left: auto; margin-right: auto; }
.stack { display: grid; gap: .6rem; margin: 1.2rem 0; }
.notice { border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); padding: .7rem 1rem; border-radius: var(--radius); color: var(--text); }
.error { color: var(--error); }

@media (prefers-reduced-motion: reduce) { .card { transition: none; } }

/* Generated: meter widths (CSP forbids inline styles) and placeholder thumbnail colors (muted, Wada-style). */
.w-0{width:0%}.w-5{width:5%}.w-10{width:10%}.w-15{width:15%}.w-20{width:20%}.w-25{width:25%}.w-30{width:30%}.w-35{width:35%}.w-40{width:40%}.w-45{width:45%}.w-50{width:50%}.w-55{width:55%}.w-60{width:60%}.w-65{width:65%}.w-70{width:70%}.w-75{width:75%}.w-80{width:80%}.w-85{width:85%}.w-90{width:90%}.w-95{width:95%}.w-100{width:100%}
.hue-0{background:#7A3B2E}.hue-1{background:#8A5A2B}.hue-2{background:#6E6A2F}.hue-3{background:#3F5E3A}.hue-4{background:#2F5D57}.hue-5{background:#34506E}.hue-6{background:#4A3F6B}.hue-7{background:#6B2D5C}.hue-8{background:#7D3B4E}.hue-9{background:#5A4636}.hue-10{background:#3D4A4F}.hue-11{background:#6A4E2E}

/* Forms */
.form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; max-width: 640px; margin-top: 1.2rem; }
.form label { display: grid; gap: .35rem; font-weight: 600; min-width: 0; }
.form input:not([type=checkbox]), .form select, .form textarea { width: 100%; min-width: 0; min-height: 44px; padding: .55rem .8rem; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--input); color: var(--text); font: 1rem var(--font); }
@media (max-width: 480px) { .panel { padding: 1rem; } }
.form textarea { resize: vertical; }
.form .check { display: flex; gap: .6rem; align-items: flex-start; font-weight: 400; }
.form .check input { margin-top: .3rem; width: 18px; height: 18px; accent-color: var(--btn); }
.upload-progress { width: 100%; height: 10px; accent-color: var(--btn); }
.submit-status.error, .error-list { color: var(--error); }
.submit-status.ok { color: var(--not-text); }
.guide { margin: 1rem 0; } .guide summary { cursor: pointer; font-weight: 700; }
code { background: var(--surface-2); padding: .05rem .35rem; border-radius: 3px; font-size: .9em; }
.plain { list-style: none; padding: 0; display: grid; gap: .5rem; }
.row { display: flex; gap: .8rem; align-items: center; flex-wrap: wrap; }
.pre { white-space: pre-wrap; }
.btn-danger { background: var(--error-fill); border-color: var(--error-fill); color: #fff; } .btn-danger:hover { background: #7d2222; border-color: #7d2222; color: #fff; }

/* Game page and player */
.game-head { margin: 2rem 0 1rem; }
.game-head h1 { margin-bottom: .3rem; }
.player { margin: 1rem 0 1.5rem; }
.player-frame { position: relative; aspect-ratio: 16 / 9; background: #0B1017; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.game-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.player-overlay { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .8rem; background: var(--overlay); text-align: center; padding: 1rem; color: #fff; }
.player-overlay[hidden] { display: none; }
.btn-play { min-height: 56px; padding: 0 2rem; font-size: 1.2rem; }
.player-status { margin: 0; color: #C9D3DD; max-width: 40ch; }
.player-bar { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .5rem 0; flex-wrap: wrap; }
.player-actions { display: flex; gap: .5rem; align-items: center; }
.player-note { color: var(--muted); font-size: .85rem; }
.game-info { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.game-info > section > h2 { border-top: 1px solid var(--line); padding-top: 1rem; margin-top: 1rem; }
.ai-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.2rem; align-self: start; margin-top: 1rem; }
.ai-box h2 { margin-top: 0; font-size: 1.1rem; }
.ai-box p { margin: .2rem 0 .8rem; }
@media (max-width: 760px) { .game-info { grid-template-columns: 1fr; } }

/* Admin */
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { border-bottom: 1px solid var(--line-strong); }
.report { background: var(--surface-2); border-radius: var(--radius); padding: .6rem 1rem; }
.report h3 { margin: .5rem 0; font-size: 1.05rem; }
.details { display: grid; grid-template-columns: max-content 1fr; gap: .4rem 1rem; }
.details dt { color: var(--muted); } .details dd { margin: 0; }
.actions { display: grid; gap: 1rem; }
.decision { display: flex; gap: .6rem; align-items: flex-end; flex-wrap: wrap; }
.decision label { display: grid; gap: .3rem; flex: 1 1 260px; }
.decision input { min-height: 40px; padding: .4rem .7rem; border-radius: var(--radius); border: 1px solid var(--line-strong); background: var(--input); color: var(--text); font: 1rem var(--font); }

/* Community */
.badge { display: inline-block; padding: .15rem .55rem; border-radius: 3px; background: var(--surface-2); color: var(--accent);
  font-size: .72rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 .5rem; }
.see-all { font-weight: 600; font-size: .9rem; margin-left: .6rem; letter-spacing: 0; }
.vote-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; margin: 1.5rem 0; }
.vote-panel h2 { margin-top: 0; font-size: 1.5rem; }
.vote-panel .verdict { margin: 0 0 .8rem; padding: .8rem 1rem; border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--bg); max-width: 26rem; }
.vote-panel .verdict-label strong { font-size: 2.8rem; font-weight: 900; line-height: 1; letter-spacing: -0.03em; margin-right: .2rem; }
.vote-panel .verdict-label { font-weight: 700; font-size: 1.1rem; }
.vote-buttons { display: flex; gap: .8rem; margin-top: 1rem; }
.vote-buttons .btn { flex: 1; min-height: 60px; font-size: 1.2rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.btn-slop { background: var(--slop); border-color: var(--slop); color: #fff; }
.btn-slop:hover { background: #8f3618; border-color: #8f3618; color: #fff; }
.btn-not { background: var(--not); border-color: var(--not); color: #fff; }
.btn-not:hover { background: #1f5536; border-color: #1f5536; color: #fff; }
.tag-picker { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag-picker legend { margin-bottom: .4rem; }
.tag-option { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .7rem; border: 1px solid var(--line-strong); border-radius: var(--radius);
  font-size: .9rem; cursor: pointer; background: var(--input); }
.tag-option input { accent-color: var(--btn); }
.tag-option:has(input:checked) { background: var(--highlight); border-color: var(--accent); }
.tag-counts { list-style: none; padding: 0; margin: .8rem 0 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.tag { padding: .15rem .6rem; border-radius: 3px; background: var(--surface-2); font-size: .85rem; font-weight: 600; }
.tag .muted { font-weight: 400; }
.comment-form textarea { width: 100%; }
.comment-list { list-style: none; padding: 0; margin: 1rem 0; }
.comment { border-top: 1px solid var(--line); padding: .8rem 0; }
.comment:target { background: var(--highlight); }
.comment-meta, .comment-actions { margin: 0; }
.comment-meta strong, .comment-meta a { font-weight: 700; }
.comment-actions { display: flex; gap: 1rem; align-items: center; }
.comment .pre { margin: .3rem 0; }

/* Daily Pick: big image beside the headline */
.daily { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 2rem; align-items: center; margin-top: 2rem; padding: 1.25rem;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.daily h2 { margin: 0 0 .4rem; }
.cover-title { font-size: clamp(1.9rem, 4.5vw, 3rem); font-weight: 900; line-height: 1.02; letter-spacing: -0.03em; }
.cover-title a { color: var(--text); text-decoration: none; }
.cover-title a:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.cover-deck { margin: 0 0 1rem; color: var(--muted); }
.daily-thumb { position: relative; display: block; text-decoration: none; }
.daily-thumb .thumb { width: 100%; height: auto; border-radius: 4px; }
.daily-thumb .thumb-empty { font-size: clamp(5rem, 14vw, 9rem); }
@media (max-width: 760px) { .daily { grid-template-columns: 1fr; gap: 1.2rem; padding: 1rem; } .daily-thumb { order: -1; } .sticker { font-size: 1rem; } }

/* Home: New releases beside the numbered Top rated list */
.home-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 0 2rem; align-items: start; }
.home-split .grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
@media (max-width: 900px) { .home-split { grid-template-columns: 1fr; } }
.rank-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.rank-list li + li { border-top: 1px solid var(--line); }
.rank { display: grid; grid-template-columns: 2.2rem minmax(0, 1fr) auto; gap: .7rem; align-items: center; padding: .6rem .8rem; color: var(--text); text-decoration: none; }
.rank:hover { background: var(--surface-2); color: var(--text); }
.rank-n { display: grid; place-items: center; width: 2rem; height: 2rem; background: var(--surface-2); color: var(--accent); font-weight: 800; font-size: 1rem; border-radius: 4px; }
.rank:hover .rank-n { background: var(--bg); }
.rank-title { font-weight: 700; font-size: 1rem; line-height: 1.2; display: grid; }
.rank-meta { font-weight: 400; font-size: .8rem; color: var(--muted); }
.rank-pct { font-weight: 800; font-size: 1rem; }

.browse .chips { margin: .6rem 0; }
.pager { display: flex; gap: 1rem; align-items: center; justify-content: center; margin: 2rem 0; }
.profile-head { margin-top: 2rem; }
.report-queue li { border-top: 1px solid var(--line); padding: .6rem 0; }

/* Admin stats */
.stats { margin: 0 0 1.5rem; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: .75rem; margin: 0 0 .75rem; }
.stat-grid > div { border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); padding: .6rem .8rem; }
.stat-grid dt { font-size: .85rem; color: var(--muted); }
.stat-grid dd { margin: 0; }
.stat-grid dd:first-of-type { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.stats meter { width: min(20rem, 100%); vertical-align: middle; }

/* Policies and footer links */
.policy h2 { font-size: 1.3rem; margin-top: 1.8rem; }
.policy p, .policy li { line-height: 1.65; max-width: 70ch; }
.policy .lead { font-size: 1.05rem; }
.policy-nav, .footer-links { display: flex; flex-wrap: wrap; gap: .4rem 1.1rem; margin-top: 1.5rem; }
.footer-links { margin-top: .5rem; }

/* Shown only on small or touch screens (ROADMAP Phase 4: "best on desktop" note). */
.desktop-note { display: none; margin: 0 0 .6rem; padding: .5rem .75rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: var(--radius); background: var(--surface); color: var(--text); }
@media (max-width: 760px), (pointer: coarse) { .desktop-note { display: block; } }
