:root { color-scheme: dark; font: 15px/1.5 system-ui, sans-serif; color: #e8e8ea; background: #14161c; }
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-width: 280px; }
a { color: inherit; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { opacity: .55; cursor: wait; }
button, select, input { min-height: 42px; border-radius: 5px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid #fff; outline-offset: 4px; }
button svg, .play svg { width: 18px; height: 18px; flex: none; }
.page-header, main { width: min(100% - 40px, 900px); margin-inline: auto; }
.page-header { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.site-link { color: #b6bac3; text-decoration: none; font-size: 13px; }
[hidden] { display: none !important; }
h1 { margin: 22px 0 26px; font-size: 28px; line-height: 1.2; }
.section-label { font-size: 14px; color: #b6bac3; font-weight: 500; margin: 0 0 14px; }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.game { min-width: 0; overflow: hidden; border: 1px solid #383b43; border-top: 3px solid var(--accent); border-radius: 6px; background: #1d2027; }
.yellow { --accent: #f0d254; }
.silver { --accent: #a9d1d4; }
.cover { width: 100%; height: auto; aspect-ratio: 8 / 5; object-fit: contain; background: #000; display: block; image-rendering: pixelated; }
.game-body { padding: 20px; }
.meta { color: #aeb3bf; font-size: 12px; }
.game h2 { font-size: 21px; line-height: 1.25; margin: 5px 0; overflow-wrap: anywhere; }
.availability { min-height: 21px; margin: 8px 0 16px; font-size: 13px; color: #b6bac3; }
.availability.ready { color: #9cdbc0; }
.play, .secondary { display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 10px 16px; font-weight: 600; border: 1px solid transparent; }
.play { width: 100%; min-height: 42px; border-radius: 5px; text-decoration: none; color: #17191d; background: var(--accent); }
.play:hover { filter: brightness(1.08); }
.secondary { color: #e8e8ea; background: #292d35; border-color: #505660; }
.secondary:hover { background: #353b44; }
.local-rom { border-top: 1px solid #383b43; margin-top: 32px; padding-top: 23px; }
.local-rom h2 { font-size: 16px; margin: 0 0 14px; }
.local-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.local-controls label { font-size: 13px; color: #b6bac3; }
select, input { background: #14161c; border: 1px solid #505660; color: #e8e8ea; padding: 8px 10px; max-width: 100%; min-width: 0; }
footer { margin: 32px 0 24px; font-size: 12px; color: #989ea9; }
@media (max-width: 600px) {
  .page-header, main { width: calc(100% - 32px); }
  .page-header { min-height: 60px; }
  h1 { font-size: 25px; margin: 12px 0 22px; }
  .games { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .game { display: grid; grid-template-columns: 108px minmax(0, 1fr); }
  .cover { height: 100%; aspect-ratio: auto; }
  .game-body { padding: 14px; }
  .game h2 { font-size: 18px; }
  .availability { margin: 6px 0 10px; }
  .play { padding: 8px; }
  .local-controls { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .local-controls select, .local-controls button { width: 100%; }
}
@media (max-width: 350px) {
  .game { grid-template-columns: 76px minmax(0, 1fr); }
  .game-body { padding: 12px; }
  .meta { font-size: 11px; }
}
