:root {
  color-scheme: light dark;
  --paper: #f1efe6;
  --ink: #151713;
  --muted: #55594f;
  --line: rgba(21, 23, 19, .22);
  --line-strong: rgba(21, 23, 19, .55);
  --accent: #d9542d;
  --accent-ink: #8f2f17;
  --wash: rgba(21, 23, 19, .045);
}
@media (prefers-color-scheme: dark) {
  :root {
    --paper: #101410;
    --ink: #f1efe6;
    --muted: #b0b3a8;
    --line: rgba(241, 239, 230, .20);
    --line-strong: rgba(241, 239, 230, .52);
    --accent: #ff7650;
    --accent-ink: #ff9a7e;
    --wash: rgba(241, 239, 230, .045);
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, "Segoe UI", sans-serif;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-underline-offset: .22em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent-ink); outline-offset: 5px; }
button { font: inherit; }
.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10;
  padding: 16px 20px;
  background: var(--ink);
  color: var(--paper);
  transform: translateY(-180%);
}
.skip-link:focus { transform: none; }
.shell { width: min(100%, 1320px); margin: auto; padding: 0 clamp(22px, 5vw, 64px); }
.site-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 20px 32px;
  padding: 28px 0;
  border-bottom: 1px solid var(--line);
}
.brand, .site-header nav, .kicker, .platform-filters legend, .site-footer {
  font-family: ui-monospace, "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.brand { text-decoration: none; }
.site-header nav { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; }
.site-header nav [aria-current] { color: var(--accent-ink); text-decoration-thickness: 2px; }
.library-intro { max-width: 780px; padding: clamp(64px, 9vw, 120px) 0 clamp(56px, 7vw, 96px); }
.kicker { display: flex; gap: 12px; align-items: center; margin: 0 0 30px; color: var(--accent-ink); }
.kicker::before { content: ""; flex: 0 0 34px; height: 2px; background: var(--accent); }
h1, h2, h3 { font-family: Georgia, "Times New Roman", serif; font-weight: 400; }
h1 { font-size: clamp(64px, 9vw, 124px); line-height: .92; letter-spacing: -.065em; margin: 0; }
h1 em { color: var(--accent); font-weight: 400; }
.lead { max-width: 590px; margin: 32px 0 0; font-size: clamp(18px, 1.8vw, 22px); line-height: 1.65; color: var(--muted); }
.releases { border-top: 1px solid var(--line-strong); padding: 42px 0 72px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 12px 28px; margin-bottom: 32px; }
h2 { font-size: clamp(32px, 4vw, 48px); line-height: 1.1; letter-spacing: -.04em; margin: 0; }
#release-count { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.6; }
.platform-filters { padding: 0; margin: 0 0 38px; border: 0; min-width: 0; }
.platform-filters legend { padding: 0; margin-bottom: 14px; color: var(--muted); }
.filter-options { display: flex; flex-wrap: wrap; gap: 10px; }
.filter-options button {
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid var(--line-strong);
  border-radius: 2px;
  background: var(--paper);
  color: var(--ink);
  cursor: pointer;
  font-size: 15px;
}
.filter-options button:hover { border-color: var(--ink); background: var(--wash); }
.filter-options button[aria-pressed="true"] { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.game-card { min-width: 0; border: 1px solid var(--line-strong); background: var(--paper); display: flex; flex-direction: column; }
.game-art { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.game-info { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.game-platform { color: var(--accent-ink); font: 700 12px/1.5 ui-monospace, Consolas, monospace; letter-spacing: .08em; text-transform: uppercase; }
.game-card h3 { margin: 16px 0 0; font-size: 36px; line-height: 1.1; letter-spacing: -.035em; overflow-wrap: anywhere; }
.game-description { color: var(--muted); font-size: 17px; line-height: 1.65; margin: 20px 0; overflow-wrap: anywhere; }
.game-version { color: var(--muted); font-size: 14px; margin: auto 0 0; line-height: 1.6; }
.download { display: inline-flex; align-items: center; gap: 14px; min-height: 48px; padding: 14px 20px; margin-top: 22px; background: var(--accent-ink); color: var(--paper); border: 1px solid var(--accent-ink); border-radius: 2px; text-decoration: none; font-weight: 700; line-height: 1.4; }
.download:hover { background: var(--ink); border-color: var(--ink); }
.empty-state { padding: clamp(36px, 5vw, 64px); border: 1px solid var(--line); background: var(--wash); max-width: 100%; }
.empty-mark { color: var(--accent-ink); font-size: 34px; line-height: 1; }
.empty-state h3 { font-size: clamp(30px, 4vw, 44px); line-height: 1.15; letter-spacing: -.035em; margin: 22px 0 18px; }
.empty-state p { max-width: 510px; margin: 0; color: var(--muted); font-size: 18px; line-height: 1.65; }
.notice { line-height: 1.65; color: var(--muted); }
.site-footer { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 16px 28px; padding: 28px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 11px; }
.site-footer a { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; }
.library-wheel { position: fixed; top: 46%; left: 78%; width: min(1320px, 110vw); aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .10; pointer-events: none; z-index: -1; }
.library-wheel svg { width: 100%; height: 100%; }
.orbit, .spokes, .core-lines { transform-origin: 50% 50%; animation: turn 42s linear infinite; }
.spokes { animation-duration: 54s; animation-direction: reverse; }
.core-lines { animation-duration: 22s; }
@keyframes turn { to { transform: rotate(360deg); } }
@media (max-width: 700px) {
  .game-grid { grid-template-columns: 1fr; }
  .library-wheel { left: 82%; top: 35%; width: 170vw; opacity: .08; }
  .site-header { align-items: flex-start; }
  .site-header nav { gap: 8px 16px; }
  h1 em { display: block; margin-left: 10vw; }
  .library-intro { padding-top: 58px; }
}
@media (prefers-reduced-motion: reduce) { .orbit, .spokes, .core-lines { animation: none; } }
@media (forced-colors: active) {
  .filter-options button[aria-pressed="true"] { border: 3px solid ButtonText; font-weight: 700; }
  .download { border-color: LinkText; }
  .library-wheel { display: none; }
}
