/* Coin-Op: black and blue, built around arcade cabinets and game HUDs.
   Signature details: cut-corner shapes, wide game tiles, mono "HUD" labels. */

:root {
  --bg: #07080a;
  --surface: #0f1115;
  --surface-2: #181b21;
  --border: #23272f;
  --grid-line: rgba(47, 123, 255, 0.06);
  --text: #eef2f7;
  --muted: #8a93a1;
  --accent: #2f7bff;
  --accent-hover: #1f66e6;
  --sky: #5cb3ff;
  --danger: #ff5f5f;
  --star: #ffb938;
  --star-empty: #2f343c;

  --font-body: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Chakra Petch', var(--font-body);
  --font-mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --cut: 12px;
  --radius: 4px;
  --shadow: 0 14px 40px rgba(0, 0, 0, 0.6);
  color-scheme: dark;
}

/* Corner cut used across tiles, panels and primary buttons. */
.cut, .tile, .panel, .btn.primary, .mosaic, .game-hero, .player-card, .chip-link.on, .tab.active {
  clip-path: polygon(0 0, calc(100% - var(--cut)) 0, 100% var(--cut), 100% 100%, var(--cut) 100%, 0 calc(100% - var(--cut)));
}

* { box-sizing: border-box; }
html, body { margin: 0; }

body {
  background:
    linear-gradient(var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px) 0 0 / 32px 32px,
    var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font: 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
a:hover { color: #fff; }
h1, h2, h3 { line-height: 1.15; margin: 0; font-family: var(--font-display); font-weight: 700; }
h1 { font-size: 2rem; letter-spacing: -0.01em; }
h2 { font-size: 1.25rem; }
button, input, textarea { font: inherit; color: inherit; }

.container { max-width: 1160px; margin: 0 auto; padding: 0 16px; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.muted-link { color: var(--muted); font-size: 0.9rem; }
.muted-link:hover { color: var(--sky); }
.error { color: var(--danger); }
.full { grid-column: 1 / -1; }
.pad { padding: 12px 14px; margin: 0; }
.center { text-align: center; }

/* Small monospace label, like a HUD readout. */
.hud-label {
  display: inline-flex; align-items: center; gap: 8px; margin: 0;
  font: 700 0.72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--sky);
}
.hud-label::before { content: ''; width: 6px; height: 6px; background: currentColor; transform: rotate(45deg); }

.count-chip {
  display: inline-block; min-width: 22px; padding: 1px 6px; border-radius: 3px; text-align: center;
  font: 700 0.75rem/1.5 var(--font-mono); background: var(--surface-2); color: var(--sky);
}

/* ---------- Top bar ---------- */

.topbar {
  position: sticky; top: 0; z-index: 20;
  background: rgba(7, 8, 10, 0.86); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner { max-width: 1160px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; white-space: nowrap; align-items: center; gap: 8px; font: 700 1.3rem/1 var(--font-display); letter-spacing: 0.01em; }
.brand-mark { width: 26px; height: 26px; display: block; filter: drop-shadow(0 2px 8px rgba(47, 123, 255, 0.55)); transition: transform 0.2s; }
.brand:hover .brand-mark { transform: translateY(-2px); }
.brand-name { text-transform: uppercase; letter-spacing: 0.08em; }
.brand-name span { background: linear-gradient(90deg, #5cc8ff, #2f7bff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; }
.nav a { padding: 6px 12px; border-radius: var(--radius); color: var(--muted); font-weight: 600; font-size: 0.92rem; }
.nav a:hover { color: var(--text); background: var(--surface-2); }
.nav a.active { color: var(--text); background: var(--surface-2); box-shadow: inset 0 -2px 0 var(--accent); }
.search { margin-left: auto; flex: 0 1 280px; }
.search input {
  width: 100%; padding: 8px 12px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); outline: none;
}
.search input:focus { border-color: var(--accent); }

.banner {
  margin-top: 14px; padding: 10px 14px; border-radius: var(--radius);
  background: rgba(47, 123, 255, 0.08); border: 1px solid rgba(47, 123, 255, 0.3); border-left-width: 3px;
  font-size: 0.9rem;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 18px; border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--surface-2); font-weight: 600; font-size: 0.9rem; cursor: pointer; white-space: nowrap;
  transition: background 0.15s, border-color 0.15s;
}
.btn:hover { border-color: var(--sky); color: #fff; }
.btn.primary { --cut: 8px; background: var(--accent); border-color: var(--accent); color: #fff; padding-right: 22px; }
.btn.primary:hover { background: var(--accent-hover); }
.btn.ghost { background: transparent; }
.btn.danger { background: transparent; border-color: rgba(255, 95, 95, 0.5); color: var(--danger); }
.btn.danger:hover { background: rgba(255, 95, 95, 0.12); border-color: var(--danger); }
.btn.block { width: 100%; }
.btn.small { padding: 6px 12px; font-size: 0.85rem; }
.btn.primary.small { padding-right: 16px; }
.btn:disabled { opacity: 0.45; cursor: default; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.btn-row.end { justify-content: flex-end; }
.btn-row.spread { justify-content: space-between; }

.icon-btn {
  width: 32px; height: 32px; border-radius: var(--radius); border: none; background: transparent;
  color: var(--muted); cursor: pointer; font-size: 1rem; display: inline-grid; place-items: center;
}
.icon-btn:hover:not(:disabled) { background: var(--surface-2); color: var(--text); }
.icon-btn.danger:hover { color: var(--danger); }
.icon-btn:disabled { opacity: 0.25; cursor: default; }

.link { background: none; border: none; padding: 0; color: var(--sky); cursor: pointer; font-weight: 600; }
.link:hover { text-decoration: underline; }

/* ---------- Sections ---------- */

main { padding-bottom: 56px; }
main section { margin-top: 40px; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.section-head h1, .section-head h2 { display: flex; align-items: center; gap: 10px; }
.section-head h2::before { content: ''; width: 4px; height: 1.1em; background: var(--accent); }
.section-head h1 { font-size: 1.6rem; }

.hero { padding: 56px 0 8px; max-width: 680px; }
.hero h1 { font-size: clamp(2.2rem, 6vw, 3.4rem); margin-top: 14px; }
.hero > p:not(.hud-label) { color: var(--muted); font-size: 1.1rem; margin: 14px 0 24px; }

.empty {
  padding: 36px 20px; text-align: center; color: var(--muted);
  background: repeating-linear-gradient(135deg, transparent 0 10px, rgba(255, 255, 255, 0.015) 10px 20px);
  border: 1px dashed var(--border); border-radius: var(--radius);
}
.empty p { margin: 0 0 16px; }
.empty p:last-child { margin: 0; }
.empty.error p { color: var(--danger); }
.loading { padding: 80px 0; text-align: center; color: var(--muted); font-family: var(--font-mono); }

/* ---------- Covers ---------- */

.cover-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cover-fallback {
  width: 100%; height: 100%; display: flex; align-items: flex-start; padding: 10px; overflow: hidden;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.035) 0 1px, transparent 1px 4px),
    radial-gradient(circle at 85% 10%, hsl(calc(var(--h) + 15) 90% 65% / 0.4), transparent 50%),
    linear-gradient(150deg, hsl(var(--h) 65% 32%), hsl(calc(var(--h) + 10) 70% 8%));
  font: 700 0.9rem/1.15 var(--font-display); color: rgba(255, 255, 255, 0.92);
}
/* Tiles show the title in their own overlay. */
.tile .cover-fallback span, .mosaic .cover-fallback span, .row-thumb .cover-fallback span { display: none; }

/* ---------- Game tiles ---------- */

.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 20px 16px; }
.card { min-width: 0; }
.tile-wrap { position: relative; }
.tile {
  position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden;
  background: var(--surface-2); transition: transform 0.15s;
}
.tile::after { content: ''; position: absolute; inset: 0; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07); transition: box-shadow 0.15s; pointer-events: none; }
.tile-info {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 12px 10px;
  display: flex; align-items: baseline; gap: 8px;
  background: linear-gradient(to top, rgba(4, 6, 10, 0.95), rgba(4, 6, 10, 0.6) 55%, transparent);
}
.tile-title { flex: 1; min-width: 0; font: 700 1rem/1.2 var(--font-display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tile-year { font: 500 0.75rem var(--font-mono); color: var(--muted); }
.card:hover .tile { transform: translateY(-2px); }
.card:hover .tile::after { box-shadow: inset 0 0 0 2px var(--accent); }

.rank {
  position: absolute; left: 8px; top: 8px; padding: 3px 8px;
  font: 700 0.85rem/1.2 var(--font-mono); background: var(--accent); color: #fff;
  clip-path: polygon(0 0, 100% 0, calc(100% - 6px) 100%, 0 100%); padding-right: 12px;
}
.logged-badge {
  flex: 0 0 18px; width: 18px; height: 18px; border-radius: 3px; align-self: center;
  display: grid; place-items: center; font-size: 0.62rem; font-weight: 800;
  background: var(--sky); color: #03142b;
}
.card-actions { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; opacity: 0; transition: opacity 0.15s; }
.card:hover .card-actions, .card-actions:focus-within { opacity: 1; }
@media (hover: none) { .card-actions { opacity: 1; } }
.add-btn {
  width: 30px; height: 30px; border-radius: var(--radius); display: grid; place-items: center;
  border: none; background: rgba(4, 6, 10, 0.8); color: #fff; font-size: 1rem; line-height: 1; cursor: pointer;
}
.add-btn:hover { background: var(--accent); }

.card-rating { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 0.82rem; flex-wrap: wrap; }
.score-chip {
  display: inline-flex; align-items: center; gap: 3px; padding: 1px 7px; border-radius: 3px;
  font: 700 0.8rem/1.5 var(--font-mono); color: var(--star); background: rgba(255, 185, 56, 0.1); white-space: nowrap;
}
.status-tag { font: 700 0.7rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.card-note { margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); border-left: 2px solid var(--accent); padding-left: 8px; }

.skeleton .tile {
  background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%);
  background-size: 300% 100%; animation: shimmer 1.4s infinite linear;
}
@keyframes shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }

/* ---------- List cards: 2×2 mosaic ---------- */

.list-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 24px; }
.list-card { display: block; }
.mosaic { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; aspect-ratio: 16 / 9; background: var(--surface); }
.mosaic-cell { overflow: hidden; min-height: 0; }
.empty-cell { background: var(--surface-2); }
.mosaic-empty { grid-column: 1 / -1; display: grid; place-items: center; color: var(--muted); font: 500 0.85rem var(--font-mono); }
.list-card-text { padding: 10px 2px 0; }
.list-card h3 { font-size: 1.1rem; }
.list-card p { margin: 6px 0 0; font-size: 0.85rem; color: var(--muted); }
.list-card:hover h3 { color: var(--sky); }
.list-card:hover .mosaic { outline: 2px solid var(--accent); outline-offset: -2px; }

/* ---------- Panels ---------- */

.panel { background: var(--surface); border: 1px solid var(--border); padding: 16px; }
.panel:empty { display: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 14px; }

/* ---------- Game page ---------- */

.game-page { margin-top: 20px; }
.game-hero {
  position: relative; min-height: 340px; display: flex; align-items: flex-end; overflow: hidden;
  background: linear-gradient(150deg, hsl(var(--h) 65% 26%), hsl(calc(var(--h) + 10) 70% 7%));
}
.game-hero-art { position: absolute; inset: 0; }
.game-hero-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.game-hero::after {
  content: ''; position: absolute; inset: 0;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px 4px),
    linear-gradient(to top, rgba(4, 6, 10, 0.97) 5%, rgba(4, 6, 10, 0.5) 50%, rgba(4, 6, 10, 0.1));
}
.game-hero-text { position: relative; z-index: 1; padding: 28px; max-width: 820px; }
.game-hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); margin: 10px 0 8px; }
.hero-meta { margin: 0; font: 500 0.9rem var(--font-mono); color: #c3cbd5; }
.hero-meta span { color: var(--sky); margin: 0 4px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  padding: 3px 10px; border-radius: 3px; font: 700 0.72rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
  background: rgba(47, 123, 255, 0.18); color: var(--sky); border: 1px solid rgba(92, 179, 255, 0.3);
}

.game-body { display: grid; grid-template-columns: 1fr 320px; gap: 32px; margin-top: 28px; align-items: start; }
.game-main { min-width: 0; }
.desc { color: #c3cbd5; }
.desc p { margin: 0 0 12px; }
.desc.clamp { max-height: 15em; overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 1px; margin: 24px 0 0; background: var(--border); border: 1px solid var(--border); }
.facts div { background: var(--surface); padding: 10px 14px; }
.facts dt { font: 700 0.68rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.facts dd { margin: 4px 0 0; font-size: 0.92rem; }
.game-side { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 76px; }
.game-side > p { margin: 0; font-size: 0.9rem; }
.in-lists { list-style: none; padding: 0; margin: 0; }
.in-lists li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 0; border-top: 1px solid var(--border); font-size: 0.92rem; }
.in-lists li:first-child { border-top: none; padding-top: 0; }
.in-lists a:hover { color: var(--sky); }

/* "Your log" panel */
.status-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.status-btn {
  display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 8px 2px;
  border-radius: var(--radius); background: var(--surface-2); border: 1px solid transparent; cursor: pointer; color: var(--muted);
}
.status-btn:hover { color: var(--text); border-color: var(--border); }
.status-btn.on { background: rgba(47, 123, 255, 0.16); border-color: var(--accent); color: var(--sky); }
.status-icon { font-size: 1rem; line-height: 1; }
.status-label { font: 700 0.62rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; }
.rate-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: 16px 0 14px; }
.rate-value { justify-self: end; font: 700 1.1rem var(--font-mono); color: var(--star); }
.rate-value small { color: var(--muted); font-size: 0.75rem; }

.star-input { display: inline-flex; gap: 1px; cursor: pointer; outline: none; border-radius: var(--radius); padding: 2px 4px; touch-action: manipulation; }
.star-input:focus-visible { box-shadow: 0 0 0 2px var(--accent); }
.star {
  font-size: 1.7rem; line-height: 1; user-select: none;
  background: linear-gradient(90deg, var(--star) var(--fill), var(--star-empty) var(--fill));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* Score breakdown */
.score-summary { display: flex; align-items: baseline; gap: 10px; margin-bottom: 12px; }
.score-summary p { margin: 0; }
.score-big { font: 700 2.2rem/1 var(--font-mono); }
.score-big small { font-size: 0.9rem; color: var(--muted); }
.breakdown { display: flex; flex-direction: column; gap: 6px; }
.breakdown-row { display: grid; grid-template-columns: 28px 1fr 28px; align-items: center; gap: 8px; }
.breakdown-label { font: 700 0.75rem var(--font-mono); color: var(--muted); }
.breakdown-track { height: 8px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.breakdown-fill { display: block; height: 100%; width: var(--pct); background: linear-gradient(90deg, var(--accent), var(--sky)); }
.breakdown-count { font: 500 0.75rem var(--font-mono); color: var(--muted); text-align: right; }

/* Reviews */
.reviews { margin-top: 36px; }
.review { display: flex; gap: 14px; padding: 16px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--border); border-left: 3px solid var(--accent); }
.review-thumb { flex: 0 0 96px; width: 96px; }
.review-body { flex: 1; min-width: 0; }
.review-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.review-title { font-weight: 700; }
.review-title:hover { color: var(--sky); }
.review-body > p { margin: 2px 0 0; }
.review-text { color: #c3cbd5; white-space: pre-line; margin-top: 8px !important; overflow-wrap: anywhere; }

/* ---------- Avatars & menu ---------- */

.account { display: flex; align-items: center; gap: 8px; }
.avatar {
  --size: 28px;
  width: var(--size); height: var(--size); flex: 0 0 var(--size); border-radius: 6px;
  display: inline-grid; place-items: center; font: 700 calc(var(--size) * 0.46) var(--font-display); color: #fff;
  background: linear-gradient(135deg, hsl(var(--h) 80% 56%), hsl(calc(var(--h) + 20) 75% 30%));
  vertical-align: middle;
}
.avatar.sm { --size: 20px; border-radius: 4px; }
.avatar.xl { --size: 96px; border-radius: 14px; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--accent); }
.menu { position: relative; }
.menu-btn {
  display: flex; align-items: center; gap: 8px; padding: 3px 8px 3px 3px; border-radius: var(--radius);
  background: transparent; border: 1px solid transparent; cursor: pointer; color: var(--muted); font-size: 0.85rem;
}
.menu-btn:hover { background: var(--surface-2); color: var(--text); }
.menu-name { color: var(--text); font-weight: 600; max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 6px); min-width: 180px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
}
.menu-pop[hidden] { display: none; }
.menu-pop a, .menu-pop button {
  display: block; width: 100%; text-align: left; padding: 8px 10px; border-radius: 3px;
  background: none; border: none; cursor: pointer; font-size: 0.9rem;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); color: var(--sky); }
.menu-pop hr { border: none; border-top: 1px solid var(--border); margin: 4px 0; width: 100%; }

/* ---------- Profile: player card ---------- */

.profile { margin-top: 24px; }
.player-card {
  position: relative; display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding: 28px;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.02) 0 1px, transparent 1px 4px),
    linear-gradient(120deg, hsl(var(--h) 70% 22%), var(--surface) 60%);
  border: 1px solid var(--border);
}
.profile-id h1 { font-size: 2.2rem; margin-top: 8px; }
.profile-id p.muted { margin: 4px 0 0; }
.profile-stats { margin-left: auto; display: grid; grid-template-columns: repeat(5, minmax(76px, 1fr)); gap: 8px; }
a.stat:hover { border-color: var(--sky); }
.stat { display: flex; flex-direction: column; align-items: center; padding: 12px 10px; background: rgba(7, 8, 10, 0.55); border: 1px solid var(--border); border-radius: var(--radius); }
.stat strong { font: 700 1.6rem/1.1 var(--font-mono); color: var(--text); }
.stat span { font: 700 0.62rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-top: 4px; }
.profile-id { flex: 1 1 280px; min-width: 0; }
.bio { margin: 12px 0 0; max-width: 60ch; white-space: pre-line; overflow-wrap: anywhere; }
.profile-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 14px; }
.profile-actions:empty { display: none; }
.friends-badge { font: 700 0.72rem/1 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--sky); padding: 8px 10px; border: 1px solid var(--sky); border-radius: var(--radius); }
.bell { position: relative; color: var(--muted); }
.bell:hover, .bell.active { color: var(--text); background: var(--surface-2); }
.bell-count {
  position: absolute; top: -3px; right: -4px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  display: grid; place-items: center; font: 700 0.62rem/1 var(--font-mono); background: var(--danger); color: #fff;
  box-shadow: 0 0 0 2px var(--bg);
}

.notifications { margin-top: 32px; max-width: 720px; }
.notif-list { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.notif { display: flex; gap: 12px; padding: 14px 16px; border-top: 1px solid var(--border); }
.notif:first-child { border-top: none; }
.notif.unread { background: rgba(47, 123, 255, 0.07); box-shadow: inset 3px 0 0 var(--accent); }
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.notif-text { margin: 0; overflow-wrap: anywhere; }
.notif-text a { color: var(--sky); font-weight: 600; }
.notif-text a.notif-actor { color: var(--text); }
.notif-snippet { margin: 0; padding-left: 10px; border-left: 2px solid var(--border); color: #c9d0da; font-size: 0.92rem; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.notif-icon { --h: 40; color: #1a1300; background: var(--star); font-size: 0.9rem; }
.avatar.lg { --size: 56px; border-radius: 10px; }

.favorites { margin-top: 28px; }
.fav-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }

.friend-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.friend-card { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 12px; text-align: center; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.friend-card:hover { border-color: var(--sky); }
.friend-name { font: 700 1rem/1.2 var(--font-display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend-requests { margin-bottom: 18px; }
.friend-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--border); }
.friend-row:first-of-type { border-top: none; padding-top: 0; }
.friend-link { display: flex; align-items: center; gap: 10px; font-weight: 600; flex: 1; min-width: 0; }
.friend-link:hover { color: var(--sky); }

.like-btn { gap: 6px; }
.like-btn .heart { color: var(--muted); font-size: 1rem; line-height: 1; }
.like-btn.on { border-color: rgba(255, 95, 95, 0.6); background: rgba(255, 95, 95, 0.1); }
.like-btn.on .heart { color: var(--danger); }
.btn.grow { flex: 1; }

.fav-picker { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 10px; }
.fav-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); }
.fav-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icon-btn:disabled { opacity: 0.35; cursor: default; }

.profile-grid { display: grid; grid-template-columns: 1fr 300px; gap: 32px; margin-top: 24px; align-items: start; }
.profile-grid > div { min-width: 0; }

.tabs { display: inline-flex; max-width: 100%; overflow-x: auto; gap: 4px; padding: 4px; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.tab { --cut: 6px; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; font-weight: 600; color: var(--muted); }
.tab:hover { color: var(--text); }
.tab.active { background: var(--accent); color: #fff; }
.tab.active .count-chip { background: rgba(0, 0, 0, 0.25); color: #fff; }
.filter-bar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.chip-row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.chip-link { --cut: 5px; padding: 4px 12px; font: 700 0.72rem/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); background: var(--surface); border: 1px solid var(--border); }
.chip-link:hover { color: var(--text); }
.chip-link.on { background: var(--sky); color: #03142b; border-color: var(--sky); }

/* ---------- List page ---------- */

.list-page { margin-top: 32px; }
.list-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.list-head h1 { font-size: 2.4rem; margin-top: 10px; }
.list-head .desc { margin: 10px 0 0; max-width: 640px; }
.list-head p.muted { margin: 8px 0 0; font: 500 0.82rem var(--font-mono); }
.owner-link { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-transform: none; letter-spacing: 0; font: 600 0.85rem var(--font-body); }
.owner-link:hover { color: var(--sky); }

.editor-bar { display: flex; gap: 16px; align-items: center; margin-bottom: 14px; }
.adder { position: relative; flex: 1; }
.adder input { width: 100%; padding: 11px 14px; border-radius: var(--radius); outline: none; background: var(--surface); border: 1px solid var(--border); }
.adder input:focus { border-color: var(--accent); }
.adder-results {
  position: absolute; z-index: 10; left: 0; right: 0; top: calc(100% + 6px);
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); max-height: 420px; overflow-y: auto;
}
.adder-item { display: flex; align-items: center; gap: 12px; width: 100%; padding: 8px 12px; background: none; border: none; text-align: left; cursor: pointer; }
.adder-item:hover:not(:disabled) { background: var(--surface-2); }
.adder-item:disabled { cursor: default; opacity: 0.55; }
.adder-item > span:nth-child(2) { flex: 1; min-width: 0; }
.adder-tag { font: 700 0.72rem var(--font-mono); color: var(--sky); text-transform: uppercase; letter-spacing: 0.06em; }

.toggle { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; font-size: 0.92rem; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.toggle.small-print { align-items: flex-start; font-size: 0.85rem; color: var(--muted); line-height: 1.4; }
.toggle.small-print input { margin-top: 1px; flex-shrink: 0; }

.rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.rows-empty { padding: 28px; text-align: center; }
.row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; background: var(--surface); border-top: 1px solid var(--border); }
.row:first-child { border-top: none; }
.row.dragging { opacity: 0.4; }
.row.drop-target { box-shadow: inset 0 2px 0 var(--accent); }
.handle { cursor: grab; color: var(--muted); letter-spacing: -3px; padding: 0 4px; user-select: none; }
.row-rank { width: 32px; text-align: right; font: 700 0.95rem var(--font-mono); color: var(--sky); }
.row-thumb { flex: 0 0 64px; width: 64px; aspect-ratio: 16 / 9; border-radius: 3px; overflow: hidden; display: block; }
.row-thumb .cover-fallback { padding: 0; }
.row-main { flex: 1; min-width: 0; }
.row-main a { font-weight: 600; }
.row-main a:hover { color: var(--sky); }
.note {
  display: block; width: 100%; margin-top: 4px; padding: 4px 8px; font-size: 0.85rem;
  background: transparent; border: 1px solid transparent; border-radius: 3px; outline: none; color: var(--muted);
}
.note:hover { border-color: var(--border); }
.note:focus { border-color: var(--accent); color: var(--text); background: var(--bg); }
.row-btns { display: flex; gap: 2px; }

/* ---------- Modal ---------- */

dialog {
  width: min(480px, calc(100vw - 32px)); padding: 0; border: 1px solid var(--border); border-top: 3px solid var(--accent);
  border-radius: var(--radius); background: var(--surface); color: var(--text); box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(0, 0, 0, 0.7); backdrop-filter: blur(3px); }
.modal-body { padding: 18px 20px 20px; }
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.modal-head h2 { font-size: 1.25rem; }
.modal-game { display: flex; align-items: center; gap: 12px; padding: 10px; background: var(--bg); border-radius: var(--radius); margin-bottom: 14px; }
.modal-note { margin: -4px 0 14px; padding: 10px 12px; border-radius: var(--radius); background: rgba(47, 123, 255, 0.1); border-left: 3px solid var(--accent); font-size: 0.9rem; }
.modal-search input { width: 100%; padding: 10px 12px; border-radius: var(--radius); outline: none; background: var(--bg); border: 1px solid var(--border); }
.modal-search input:focus { border-color: var(--accent); }
.quick-results { margin-top: 8px; max-height: 360px; overflow-y: auto; }
.pick-list { list-style: none; padding: 0; margin: 0 0 14px; max-height: 280px; overflow-y: auto; }
.pick { display: flex; align-items: center; gap: 12px; width: 100%; padding: 10px 8px; background: none; border: none; border-radius: var(--radius); cursor: pointer; text-align: left; }
.pick:hover { background: var(--surface-2); }
.pick-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.check { width: 20px; height: 20px; flex: 0 0 20px; border-radius: 3px; border: 2px solid var(--border); display: grid; place-items: center; font-size: 0.75rem; font-weight: 800; }
.pick.on .check { background: var(--accent); border-color: var(--accent); color: #fff; }

.inline-form { display: flex; gap: 8px; }
.inline-form input, .field input, .field textarea {
  flex: 1; width: 100%; padding: 9px 12px; border-radius: var(--radius); outline: none; background: var(--bg); border: 1px solid var(--border);
}
.inline-form input:focus, .field input:focus, .field textarea:focus { border-color: var(--accent); }
.stack-form { display: flex; flex-direction: column; gap: 14px; }
.stack-form p { margin: -6px 0 0; }
.stack-form a { color: var(--sky); }
.field { display: flex; flex-direction: column; gap: 6px; font: 700 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.field input, .field textarea { color: var(--text); font: 400 0.95rem var(--font-body); text-transform: none; letter-spacing: 0; resize: vertical; }
.field-label { font: 700 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.rating-field { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.form-error { margin: 0; font-size: 0.9rem; }

.status-picker { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.status-opt input { position: absolute; opacity: 0; pointer-events: none; }
.status-opt > span {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; border-radius: var(--radius);
  background: var(--bg); border: 1px solid var(--border); cursor: pointer;
  font: 700 0.68rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted);
}
.status-opt span .status-icon { font-size: 1rem; }
.status-opt input:checked + span { border-color: var(--accent); color: var(--sky); background: rgba(47, 123, 255, 0.12); }
.status-opt input:focus-visible + span { box-shadow: 0 0 0 2px var(--accent); }

.settings-head { font: 700 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.14em; color: var(--sky); }
.settings-rule { border: none; border-top: 1px solid var(--border); margin: 20px 0; }

/* ---------- Toast & misc ---------- */

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  padding: 10px 18px; border-radius: var(--radius); background: var(--surface-2); color: var(--text);
  border: 1px solid var(--border); border-left: 3px solid var(--sky); box-shadow: var(--shadow);
  font-weight: 600; font-size: 0.9rem; opacity: 0; pointer-events: none;
  transition: opacity 0.2s, transform 0.2s; z-index: 100; max-width: calc(100vw - 32px);
}
#toast.show { opacity: 1; transform: translate(-50%, 0); }
.more { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- Responsive ---------- */

@media (max-width: 900px) {
  .topbar-inner { flex-wrap: wrap; gap: 10px 12px; }
  .search { order: 3; flex: 1 1 100%; }
  .nav { margin-left: auto; }
  .menu-name { display: none; }
  .game-body, .profile-grid { grid-template-columns: 1fr; }
  .game-side { position: static; order: -1; }
  .game-body.discussion .game-side { order: 0; } /* Posts first when discussing. */
  .profile-side { order: -1; }
  .profile-stats { margin-left: 0; width: 100%; }
}

@media (max-width: 640px) {
  .nav a { padding: 6px 8px; }
  .game-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px 10px; }
  .tile-title { font-size: 0.88rem; }
  .game-hero { min-height: 260px; }
  .game-hero-text { padding: 18px; }
  .list-head h1 { font-size: 1.8rem; }
  .editor-bar { flex-direction: column; align-items: stretch; }
  .handle { display: none; }
  .row { gap: 8px; padding: 8px; }
  .inline-form { flex-direction: column; }
  .account .btn.ghost.small { display: none; }
  .player-card { padding: 20px; gap: 16px; }
  .profile-stats { grid-template-columns: repeat(3, 1fr); }
  .fav-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .status-picker { grid-template-columns: repeat(2, 1fr); }
  .review-thumb { flex-basis: 72px; width: 72px; }
}

/* ---------- Password reset ---------- */

.reset-page { max-width: 440px; margin: 56px auto 0; }
.reset-page h1 { font-size: 1.7rem; margin: 10px 0 20px; }

/* ---------- Discussions ---------- */

.game-tabs { margin: 18px 0 0; }
.feed-sort { margin-bottom: 14px; }
.feed { display: flex; flex-direction: column; gap: 8px; }

.post-row {
  display: flex; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color 0.15s;
}
.post-row:hover { border-color: #33405a; }
.post-thumb { flex: 0 0 96px; width: 96px; align-self: flex-start; }
.post-main { flex: 1; min-width: 0; }
.post-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.8rem; color: var(--muted); }
.post-game { font-weight: 700; color: var(--sky); }
.post-game:hover { text-decoration: underline; }
.author { display: inline-flex; align-items: center; gap: 5px; color: var(--text); font-weight: 600; }
.author:hover { color: var(--sky); }
.post-title { display: block; margin-top: 4px; font: 700 1.08rem/1.3 var(--font-display); overflow-wrap: anywhere; }
.post-title:hover { color: var(--sky); }
.post-snippet { margin: 6px 0 0; color: #b5bdc8; font-size: 0.9rem; white-space: pre-line; overflow-wrap: anywhere; }
.post-comments { display: inline-block; margin-top: 8px; font: 700 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.post-comments:hover { color: var(--sky); }
.spoiler-tag {
  padding: 1px 6px; border-radius: 3px; font: 700 0.65rem/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: #ffb4b4; background: rgba(255, 95, 95, 0.12); border: 1px solid rgba(255, 95, 95, 0.35);
}
.spoiler { filter: blur(6px); cursor: pointer; user-select: none; transition: filter 0.2s; }
.spoiler.revealed { filter: none; cursor: auto; user-select: auto; }

/* Coin credits: the arcade take on a like button */
.credits { display: flex; flex-direction: column; align-items: center; gap: 10px; min-width: 56px; }
.credits.inline { flex-direction: row; gap: 14px; min-width: 0; }
.reaction { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.credits.inline .reaction { flex-direction: row; gap: 5px; }
.coin-btn {
  width: 34px; height: 34px; padding: 4px; border-radius: 50%; border: none; background: none; cursor: pointer;
  display: grid; place-items: center; transition: transform 0.15s;
}
.credits.inline .coin-btn { width: 26px; height: 26px; padding: 2px; }
.coin-btn:hover { transform: translateY(-2px); }
.coin-icon { width: 100%; height: 100%; display: block; }
.coin-face { fill: var(--surface-2); stroke: var(--border); stroke-width: 1.5; transition: fill 0.15s, stroke 0.15s; }
.coin-ring { fill: none; stroke: var(--muted); stroke-opacity: 0.4; stroke-width: 1; stroke-dasharray: 1.5 1.2; }
.coin-star { fill: var(--muted); transition: fill 0.15s; }
.coin-btn:hover .coin-star { fill: var(--star); }
.coin-btn.on .coin-face { fill: var(--star); stroke: #c98a12; }
.coin-btn.on .coin-ring { stroke: #fff; stroke-opacity: 0.6; }
.coin-btn.on .coin-star { fill: #fff; }
.coin-btn.animate { animation: coin-drop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }
@keyframes coin-drop {
  0% { transform: translateY(-10px) rotateY(0deg) scale(1.15); }
  60% { transform: translateY(2px) rotateY(360deg) scale(0.95); }
  100% { transform: translateY(0) rotateY(360deg) scale(1); }
}
.credit-count { font: 700 0.9rem/1 var(--font-mono); }
.credit-label { font: 700 0.58rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); }
.credits.inline .credit-count { font-size: 0.8rem; }
.coin-btn.on + .credit-count { color: var(--star); }

/* Post page */
.post-page { max-width: 820px; margin: 28px auto 0; }
.post-back { display: inline-flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.post-back .row-thumb { flex-basis: 72px; width: 72px; }
.post-back strong { display: block; margin-top: 4px; font-family: var(--font-display); }
.post-back:hover strong { color: var(--sky); }
.post-full { display: flex; gap: 16px; }
.post-heading { font-size: 1.6rem; margin: 6px 0 10px; overflow-wrap: anywhere; }
.post-body { color: #c9d0da; white-space: pre-line; overflow-wrap: anywhere; }
.post-footer { display: flex; align-items: center; gap: 16px; margin-top: 14px; }
.text-btn { background: none; border: none; padding: 2px 0; cursor: pointer; font: 700 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }
.text-btn:hover { color: var(--sky); }
.text-btn.danger:hover { color: var(--danger); }

.comments-area { margin-top: 20px; }
.comment-form textarea {
  width: 100%; padding: 10px 12px; border-radius: var(--radius); outline: none; resize: vertical;
  background: var(--surface); border: 1px solid var(--border); color: var(--text); font: inherit;
}
.comment-form textarea:focus { border-color: var(--accent); }
.comment-form .btn-row { margin-top: 8px; }
.comment-form .form-error { margin-top: 6px; }
.comments { margin-top: 20px; }

.comment { position: relative; display: flex; gap: 10px; margin-top: 14px; }
.comment.flash > .comment-content { animation: flash 1.6s ease-out; }
@keyframes flash { from { background: rgba(47, 123, 255, 0.18); } to { background: transparent; } }
.thread-line {
  flex: 0 0 14px; width: 14px; padding: 0; border: none; cursor: pointer;
  background: linear-gradient(var(--border), var(--border)) center / 2px 100% no-repeat;
}
.thread-line:hover { background-image: linear-gradient(var(--accent), var(--accent)); }
.comment-content { flex: 1; min-width: 0; border-radius: var(--radius); }
.comment-head { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; font-size: 0.85rem; }
.op-tag { padding: 0 5px; border-radius: 3px; font: 700 0.62rem/1.5 var(--font-mono); background: var(--accent); color: #fff; }
.collapse-btn { margin-left: auto; background: none; border: none; cursor: pointer; color: var(--muted); font: 700 0.75rem var(--font-mono); }
.collapse-btn::before { content: '[–]'; }
.comment.collapsed > .comment-content .collapse-btn::before { content: '[+]'; }
.collapse-btn:hover { color: var(--sky); }
.comment-body p { margin: 4px 0 0; white-space: pre-line; overflow-wrap: anywhere; color: #c9d0da; }
.comment-actions { display: flex; align-items: center; gap: 14px; margin-top: 4px; }
.reply-slot:not(:empty) { margin-top: 8px; }
.comment.collapsed > .comment-content > :not(.comment-head) { display: none; }
.comment.collapsed > .thread-line { background-image: none; }

@media (max-width: 640px) {
  .post-row { gap: 10px; padding: 12px; }
  .post-thumb { display: none; }
  .post-full { gap: 10px; }
  .post-heading { font-size: 1.3rem; }
  .comment { gap: 6px; }
  .thread-line { flex-basis: 10px; width: 10px; }
}

/* Damage: the red, arcade take on a dislike */
.damage-btn {
  position: relative; width: 30px; height: 30px; padding: 3px; border: none; background: none; cursor: pointer;
  display: grid; place-items: center; transition: transform 0.15s;
}
.credits.inline .damage-btn { width: 24px; height: 24px; padding: 2px; }
.damage-btn:hover { transform: translateY(-2px); }
.damage-icon { width: 100%; height: 100%; display: block; overflow: visible; }
.damage-icon .heart { fill: var(--surface-2); stroke: var(--border); stroke-width: 1; transition: fill 0.15s, stroke 0.15s; }
.damage-icon .crack { fill: transparent; transition: fill 0.15s; }
.damage-btn:hover .heart { fill: rgba(255, 77, 77, 0.35); stroke: #ff4d4d; }
.damage-btn.on .heart { fill: #ff4d4d; stroke: #b81d1d; }
.damage-btn.on .crack { fill: var(--bg); }
.damage-count { font: 700 0.9rem/1 var(--font-mono); }
.credits.inline .damage-count { font-size: 0.8rem; }
.damage-btn.on + .damage-count { color: #ff6b6b; }
.hp-pop {
  position: absolute; left: 50%; top: -4px; transform: translateX(-50%); opacity: 0; pointer-events: none; white-space: nowrap;
  font: 700 0.62rem var(--font-mono); color: #ff6b6b; text-shadow: 0 1px 2px #000;
}
.damage-btn.animate { animation: damage-hit 0.4s ease-out; }
.damage-btn.animate .hp-pop { animation: hp-pop 0.8s ease-out; }
@keyframes damage-hit {
  0%, 100% { transform: translateX(0); filter: none; }
  20% { transform: translateX(-3px); filter: brightness(1.8); }
  40% { transform: translateX(3px); }
  60% { transform: translateX(-2px); }
  80% { transform: translateX(1px); }
}
@keyframes hp-pop {
  0% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -18px); }
}

/* ---------- Rules & moderation ---------- */

.banner.danger { background: rgba(255, 95, 95, 0.1); border-color: rgba(255, 95, 95, 0.4); }
.banner a { color: var(--sky); font-weight: 600; }
.mod-tag {
  display: inline-block; padding: 1px 6px; border-radius: 3px; font: 700 0.62rem/1.5 var(--font-mono);
  text-transform: uppercase; letter-spacing: 0.06em; color: #ffcf7a; background: rgba(255, 185, 56, 0.12); border: 1px solid rgba(255, 185, 56, 0.35);
}
.rules-hint { margin: 0; font-size: 0.8rem; color: var(--muted); }
.rules-hint a { color: var(--sky); }
.comment-form .btn-row.spread { align-items: center; }

.rules-page { max-width: 760px; margin: 40px auto 0; }
.rules-page h1 { font-size: 2.4rem; margin: 10px 0 8px; }
.rules-intro { color: var(--muted); font-size: 1.05rem; margin: 0 0 24px; }
.rules-list { list-style: none; counter-reset: rule; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.rules-list li { counter-increment: rule; position: relative; padding: 14px 16px 14px 64px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.rules-list li::before {
  content: counter(rule, decimal-leading-zero); position: absolute; left: 16px; top: 14px;
  font: 700 1.1rem var(--font-mono); color: var(--sky);
}
.rules-list h2 { font-size: 1.1rem; }
.rules-list p { margin: 4px 0 0; color: #c3cbd5; }
.rules-enforcement p { margin: 0 0 10px; color: #c3cbd5; }
.rules-enforcement p:last-child { margin: 0; }
.rules-short { padding-left: 18px; margin: 0 0 10px; display: grid; gap: 6px; font-size: 0.9rem; color: #c3cbd5; }
.report-reasons { display: grid; gap: 4px; }
.report-reason { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: var(--radius); background: var(--bg); border: 1px solid var(--border); cursor: pointer; font-size: 0.92rem; }
.report-reason:has(input:checked) { border-color: var(--accent); background: rgba(47, 123, 255, 0.1); }
.report-reason input { accent-color: var(--accent); }

.mod-list { display: grid; gap: 12px; }
.mod-item h3 { margin: 10px 0 4px; font-size: 1.1rem; }
.mod-item-head { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.mod-item-head a { color: var(--sky); }
.mod-body { margin: 6px 0; white-space: pre-line; overflow-wrap: anywhere; color: #c9d0da; }
.mod-reasons { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-wrap: wrap; gap: 12px; font-size: 0.85rem; }
.mod-details { margin: 0 0 12px; padding-left: 18px; color: var(--muted); font-size: 0.85rem; }

.site-footer {
  display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 18px; padding-bottom: 28px;
  border-top: 1px solid var(--border); font: 500 0.8rem var(--font-mono); color: var(--muted);
}
.site-footer a { color: var(--sky); }

/* ---------- Critic reviews ---------- */

.critics:not(:empty) { margin-top: 36px; }
.critic-source { display: inline-flex; align-items: center; gap: 8px; font: 500 0.78rem var(--font-mono); color: var(--muted); }
.critic-source a { color: var(--sky); }
.tier-chip { padding: 2px 8px; border-radius: 3px; font: 700 0.68rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; background: var(--surface-2); color: var(--text); }
.tier-mighty { background: rgba(255, 185, 56, 0.16); color: var(--star); }
.tier-strong { background: rgba(92, 179, 255, 0.16); color: var(--sky); }
.tier-weak { background: rgba(255, 95, 95, 0.14); color: #ff8a8a; }
.critic-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; margin-bottom: 14px; }
.critic-tile { display: flex; flex-direction: column; padding: 12px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.critic-tile span { font: 700 0.65rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); }
.critic-tile strong { font: 700 1.7rem/1.2 var(--font-mono); margin-top: 4px; }
.critic-list { display: grid; gap: 8px; }
.critic-review { display: flex; gap: 14px; padding: 14px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.critic-score {
  flex: 0 0 auto; min-width: 58px; height: 52px; padding: 0 8px; border-radius: var(--radius);
  display: grid; place-items: center; font: 700 1rem var(--font-mono); background: var(--surface-2); color: var(--text);
}
.critic-score.score-high { background: rgba(92, 179, 255, 0.16); color: var(--sky); }
.critic-score.score-mid { background: rgba(255, 185, 56, 0.14); color: var(--star); }
.critic-score.score-low { background: rgba(255, 95, 95, 0.14); color: #ff8a8a; }
.critic-body { min-width: 0; }
.critic-head { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; font-size: 0.85rem; color: var(--muted); }
.critic-head strong { color: var(--text); font-size: 0.98rem; }
.critic-body p { margin: 6px 0; color: #c9d0da; overflow-wrap: anywhere; }
.critic-link { font: 700 0.72rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--sky); }
.follow-chip {
  margin-left: auto; padding: 3px 9px; border-radius: var(--radius); cursor: pointer; white-space: nowrap;
  font: 700 0.66rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em;
  background: transparent; border: 1px solid var(--border); color: var(--sky);
}
.follow-chip:hover { border-color: var(--sky); }
.follow-chip.on { background: rgba(92, 179, 255, 0.12); border-color: rgba(92, 179, 255, 0.5); }
.outlet-chips { margin-bottom: 20px; }
.outlet-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 12px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-weight: 600; font-size: 0.9rem; }
.outlet-chip .follow-chip { margin-left: 4px; }
.outlet-chip .icon-btn { width: 24px; height: 24px; font-size: 0.75rem; }
.feed-review .critic-score { margin-left: auto; flex: none; }
.feed-review .review-thumb { flex: none; }
.feed-review .critic-body { flex: 1; }
.feed-review .critic-head + .critic-head { margin-top: 2px; }
.new-chip { font: 700 0.62rem/1.4 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em; padding: 1px 6px; border-radius: 3px; background: var(--accent); color: #fff; }
.outlet-list { list-style: none; padding: 0; margin: 10px 0 0; max-height: 420px; overflow-y: auto; }
.outlet-row { display: flex; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--border); }
.outlet-row:first-child { border-top: none; }
.outlet-name { flex: 1; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outlet-row .follow-chip { margin-left: 0; }
.critic-off { margin-top: 24px; }
.critic-off p { margin: 8px 0 0; }
.critic-off code { font-family: var(--font-mono); color: var(--text); }

/* ---------- Discussion boards ---------- */

.board-tile {
  width: 100%; height: 100%; display: grid; place-items: center;
  background:
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.04) 0 1px, transparent 1px 4px),
    linear-gradient(150deg, hsl(var(--h) 75% 42%), hsl(calc(var(--h) + 10) 75% 14%));
}
.board-tile span { font: 700 1.1rem/1 var(--font-mono); letter-spacing: 0.06em; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.row-thumb .board-tile span { font-size: 0.75rem; }
.board-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.board-card {
  display: flex; gap: 12px; padding: 12px; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); transition: border-color 0.15s, transform 0.15s;
}
.board-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.board-thumb { flex: 0 0 52px; width: 52px; height: 52px; border-radius: 6px; overflow: hidden; display: block; }
.board-thumb.big { flex-basis: 84px; width: 84px; height: 84px; border-radius: 10px; }
.board-thumb.big .board-tile span { font-size: 1.6rem; }
.board-text { display: flex; flex-direction: column; min-width: 0; }
.board-text strong { font-family: var(--font-display); font-size: 1.02rem; }
.board-card:hover strong { color: var(--sky); }
.board-desc { font-size: 0.82rem; color: var(--muted); line-height: 1.4; margin-top: 2px;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.board-meta { margin-top: 6px; font: 500 0.7rem var(--font-mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--sky); }
.board-page { margin-top: 24px; }
.board-hero { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin: 14px 0 20px; padding: 20px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.board-hero-text { flex: 1; min-width: 220px; }
.board-hero h1 { margin: 6px 0 4px; }
.board-hero p:not(.hud-label) { margin: 0; color: var(--muted); }
.board-group + .board-group { margin-top: 26px; }

/* ---------- Privacy ---------- */

.privacy-list { display: grid; gap: 10px; }
.privacy-list h2 { font-size: 1.1rem; }
.privacy-list p { margin: 6px 0 0; color: #c3cbd5; }
.privacy-list a { color: var(--sky); }
.banner code { font-family: var(--font-mono); font-size: 0.85em; color: var(--text); }
.sample-tag {
  padding: 1px 6px; border-radius: 3px; font: 700 0.65rem/1.5 var(--font-mono); text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--sky); background: rgba(92, 179, 255, 0.1); border: 1px dashed rgba(92, 179, 255, 0.45); cursor: help;
}
