:root {
  color-scheme: dark;
  --background: #050505;
  --surface: #0a0a0a;
  --foreground: #f4f1ee;
  --muted: #aaa5a0;
  --border: #313131;
  --accent: #ef7f8c;
  --display: "Oswald", "Arial Narrow", Impact, sans-serif;
  --mono: "Geist Mono", ui-monospace, Consolas, monospace;
  font-family: var(--mono);
}
html { scroll-behavior: smooth; }
body { background: var(--background); color: var(--foreground); font-family: var(--mono); }
::selection { background: var(--accent); color: var(--background); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: calc(100% - 48px); max-width: 1440px; }
.topbar { min-height: 88px; gap: 24px; border-color: var(--border); }
.brand-group { display: flex; align-items: center; gap: clamp(16px, 2vw, 32px); min-width: 0; }
.brand-home { display: inline-flex; align-items: center; flex: none; }
.brand-logo { display: block; width: 132px; height: 62px; object-fit: contain; object-position: left center; }
.brand { display: inline-flex; align-items: center; min-height: 44px; border-left: 1px solid var(--border); padding-left: clamp(16px, 2vw, 32px); color: var(--foreground); font: 700 26px/1 var(--display); letter-spacing: .015em; text-transform: uppercase; }
.brand:hover, .brand:focus-visible { color: var(--accent); }
.topnav { flex-wrap: wrap; justify-content: flex-end; gap: clamp(14px, 2.5vw, 38px); color: var(--foreground); font-size: 13px; text-transform: uppercase; }
.topnav a { position: relative; padding-block: 12px; }
.topnav a::after { position: absolute; right: 100%; bottom: 5px; left: 0; height: 2px; background: var(--accent); content: ""; transition: right .2s ease; }
.topnav a:hover::after, .topnav a:focus-visible::after { right: 0; }
.page { padding: 44px 0 100px; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1; text-transform: uppercase; }
h1 { margin-bottom: 30px; font-size: clamp(50px, 6vw, 88px); letter-spacing: -.025em; }
.muted { color: var(--muted); }
.eyebrow { margin: 0 0 14px; color: var(--accent); font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.page-intro { position: relative; display: flex; align-items: center; min-height: 230px; margin: -44px 0 38px; overflow: hidden; border-bottom: 1px solid var(--border); }
.page-intro::before { position: absolute; top: 12%; right: 13%; width: 200px; aspect-ratio: 1; border: 1px solid #252525; border-radius: 50%; box-shadow: 0 0 0 36px #080808, 0 0 0 37px #1b1b1b; content: ""; }
.page-intro-copy { position: relative; z-index: 1; padding: 32px 0; }
.page-intro h1 { margin: 0; max-width: 790px; }
.intro-mascot { position: absolute; right: -6%; bottom: -36%; width: min(760px, 65%); height: auto; pointer-events: none; }
.section-heading { margin: 0 0 20px; color: var(--accent); font-size: 12px; font-weight: 400; letter-spacing: .1em; text-transform: uppercase; }
.games { gap: 1px; border: 1px solid var(--border); background: var(--border); }
.catalog-pagination { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 28px; font-size: 14px; }
.catalog-pagination a { display: inline-flex; min-width: 44px; min-height: 44px; align-items: center; justify-content: center; padding: 8px 12px; border: 1px solid var(--border); color: var(--foreground); text-decoration: none; }
.catalog-pagination a:hover, .catalog-pagination a:focus-visible, .catalog-pagination a[aria-current="page"] { border-color: var(--accent); color: var(--accent); }
.catalog-pagination a[aria-current="page"] { font-weight: 700; }
.pagination-pages { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.pagination-indicator { color: var(--muted); }
.game-card { border: 0; border-radius: 0; background: var(--background); transition: background .2s ease; }
.game-card:hover, .game-card:focus-visible { border: 0; background: #111; transform: none; }
.window-bar { justify-content: space-between; border-color: var(--border); color: var(--muted); font-size: 12px; font-weight: 500; text-transform: uppercase; }
.dots { order: 2; }
.dots span { border-color: #666; }
.thumb { background: #111; }
.game-card-body { padding: 24px; border-top: 1px solid var(--border); }
.game-card h2 { font-size: clamp(30px, 3vw, 46px); font-weight: 700; letter-spacing: -.02em; }
.card-rating { color: var(--muted); font-size: 13px; font-weight: 400; }
.arrow { color: var(--accent); font-size: 30px; }
.back { color: var(--accent); font-size: 13px; font-weight: 400; text-transform: uppercase; }
.back:hover { color: var(--foreground); }
.detail { grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr); gap: clamp(28px, 4vw, 64px); }
.detail .thumb { border-color: var(--border); border-radius: 0; }
.detail h1 { font-size: clamp(46px, 5vw, 76px); overflow-wrap: anywhere; }
.detail p { color: var(--muted); font-size: 16px; line-height: 1.7; }
.detail .detail-rating { color: var(--foreground); font-size: 14px; }
.community { grid-template-columns: minmax(260px, .75fr) minmax(0, 1.25fr); gap: 1px; margin-top: 70px; border: 1px solid var(--border); background: var(--border); align-items: stretch; }
.community-panel { padding: clamp(24px, 3vw, 42px); border: 0; border-radius: 0; background: var(--surface); }
.community-panel h2 { font-size: clamp(30px, 3vw, 42px); }
.community-panel .muted { font-size: 14px; }
.rating-stars button { border-radius: 0; color: #666; }
.rating-stars button.selected, .rating-stars button:hover { color: var(--accent); }
.rating-stars button:focus-visible, .comment-remove:focus-visible { outline-color: var(--accent); }
.sign-in-prompt { color: var(--muted); font-size: 14px; }
.sign-in-prompt a { color: var(--accent); }
.community textarea, .field input, .field textarea, .field select { border-color: var(--border); border-radius: 0; background: #090909; color: var(--foreground); }
.community textarea:focus, .field input:focus, .field textarea:focus, .field select:focus { border-color: var(--accent); box-shadow: none; }
.comment { border-color: var(--border); border-radius: 0; background: #0c0c0c; }
.comment-head { color: var(--muted); font-size: 13px; }
.comment-author, .comment-body { color: var(--foreground); }
.comment.removed .comment-body { color: var(--muted); }
.comment-remove { color: var(--accent); }
.button { min-height: 52px; padding: 0 22px; border-color: var(--foreground); border-radius: 0; background: var(--foreground); color: var(--background); font-size: 13px; font-weight: 600; text-transform: uppercase; }
.button:hover { border-color: var(--accent); background: var(--accent); color: var(--background); }
.button.secondary { border-color: var(--border); background: transparent; color: var(--foreground); }
.button.secondary:hover { border-color: var(--accent); background: transparent; color: var(--accent); }
.button.danger { border-color: #ad555c; background: #3f2027; color: #ffd6d6; }
.status { color: var(--muted); font-size: 14px; }
.panel { border-color: var(--border); border-radius: 0; background: var(--surface); }
.field { color: var(--foreground); font-size: 13px; text-transform: uppercase; }
.field input, .field textarea { font-size: 16px; text-transform: none; }
.field input[type="checkbox"] { width: auto; accent-color: var(--accent); }
.field small { color: var(--muted); font-size: 12px; line-height: 1.5; text-transform: none; }
.admin-item { border-color: var(--border); border-radius: 0; background: var(--surface); }
.admin-item img, .file-preview { border-radius: 0; }
.admin-item h2 { font-size: 24px; }
.admin-item p { color: var(--muted); }
@media (max-width: 900px) {
  .intro-mascot { right: -18%; width: 78%; opacity: .7; }
  .page-intro h1 { max-width: 60%; }
  .detail, .community { grid-template-columns: 1fr; }
}
@media (max-width: 700px) {
  .wrap { width: calc(100% - 24px); }
  .topbar { min-height: 72px; gap: 12px; }
  .brand-group { gap: 10px; }
  .brand-logo { width: 88px; height: 50px; }
  .brand { min-height: 34px; padding-left: 10px; font-size: 21px; }
  .topnav { gap: 12px; font-size: 12px; }
  .page { padding-top: 30px; }
  .page-intro { min-height: 190px; margin-top: -30px; margin-bottom: 28px; }
  .page-intro h1 { max-width: 68%; font-size: clamp(42px, 11vw, 68px); }
  .intro-mascot { right: -20px; bottom: -125px; width: 760px; max-width: none; opacity: .38; mask-image: linear-gradient(to right, transparent 30%, #000 65%); }
  .games { grid-template-columns: 1fr; }
  .game-card-body { padding: 18px; }
  .community { margin-top: 36px; }
  .community-panel { padding: 22px; }
  .admin-head { flex-wrap: wrap; }
}
@media (max-width: 400px) { .page-intro h1 { max-width: 75%; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }
