:root {
  color-scheme: dark;
  --ink: #05090c;
  --panel: #0b1218;
  --text: #f4f7f8;
  --muted: #b2bdc5;
  --gold: #d6a34a;
  --gold-light: #f4cf83;
  --line: rgba(202,171,110,.25);
  --max: 1180px;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--text); background: var(--ink); font: 400 1rem/1.6 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
.shell { width: min(calc(100% - 2rem), var(--max)); margin-inline: auto; }
a:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 5px; }
.skip-link { position: fixed; top: 1rem; left: 1rem; z-index: 100; padding: .75rem 1rem; color: var(--ink); background: var(--text); transform: translateY(-180%); }
.skip-link:focus { transform: none; }
.site-header { border-bottom: 1px solid rgba(255,255,255,.08); background: #030608; }
.site-nav { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; }
.brand { display: inline-flex; align-items: center; gap: .85rem; text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.mark { position: relative; display: block; width: 46px; height: 46px; flex: none; overflow: hidden; border-radius: 50%; background: #050505; }
.mark img { position: absolute; width: 100px; max-width: none; height: auto; left: -27px; top: -44px; }
.navlinks { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem 1.5rem; color: #c8d2d8; }
.navlinks a { display: inline-flex; align-items: center; min-height: 44px; font-size: .94rem; text-decoration: none; }
.navlinks a:hover, .navlinks a[aria-current="page"] { color: var(--gold-light); }
.navlinks a[aria-current="page"] { text-decoration: underline; text-underline-offset: .5rem; text-decoration-thickness: 2px; }
.library { padding-block: clamp(2.5rem, 5vw, 4rem) clamp(3.5rem, 7vw, 6rem); }
.library-heading { margin-bottom: 2rem; }
.eyebrow, .game-kind { margin: 0; color: var(--gold-light); font-size: .8rem; font-weight: 750; text-transform: uppercase; letter-spacing: .14em; }
h1 { margin: .45rem 0 .6rem; font-size: clamp(2.5rem, 5vw, 4rem); letter-spacing: -.045em; line-height: 1.08; }
.intro { margin: 0; color: var(--muted); font-size: 1.1rem; }
.game-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 1.5rem; }
.game-card { min-width: 0; overflow: hidden; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: 20px; }
.featured-game { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(260px,.75fr) minmax(300px,1.25fr); }
.featured-game .game-art { border-right: 1px solid var(--line); border-bottom: 0; }
.game-art { display: grid; place-items: center; padding: 1.5rem; border-bottom: 1px solid var(--line); }
.escape-art { min-height: 280px; overflow: hidden; background: radial-gradient(circle at 50% 45%, #1b160c, #030608 70%); }
.escape-art img { width: 260px; height: 260px; object-fit: cover; object-position: 50% 36%; border: 1px solid rgba(244,207,131,.2); }
.solitaire-art { background: #030a16; }
.spark-art { background: #061010; }
.game-art img { width: min(100%, 248px); aspect-ratio: 1; border-radius: 16px; }
.game-copy { display: flex; flex-direction: column; align-items: flex-start; flex: 1; padding: 1.65rem 1.75rem 1.75rem; }
h2 { margin: .4rem 0 .6rem; font-size: clamp(1.8rem, 3vw, 2.25rem); letter-spacing: -.035em; line-height: 1.15; }
.game-description { margin: 0 0 1.5rem; color: var(--muted); }
.play-button { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; width: 100%; margin-top: auto; padding: .75rem 1rem; border: 1px solid var(--gold-light); border-radius: 9px; background: var(--gold-light); color: #080b0d; font-weight: 750; text-decoration: none; text-align: center; }
.play-button:hover { background: #ffe0a0; }
.site-footer { border-top: 1px solid rgba(255,255,255,.08); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem 2rem; padding-block: 1.5rem; color: #91a0aa; }
.footer-inner a { display: inline-flex; min-height: 44px; align-items: center; font-size: .85rem; font-weight: 750; text-decoration: none; }
.footer-inner p { margin: 0; font-size: .8rem; }
@media (max-width: 760px) {
  .site-nav { flex-wrap: wrap; padding-block: .75rem .4rem; gap: .3rem; }
  .brand { flex-basis: 100%; }
  .navlinks { gap: .2rem 1.4rem; }
  .library { padding-top: 2rem; }
  .game-grid { grid-template-columns: 1fr; }
  .featured-game { grid-column: auto; display: flex; }
  .featured-game .game-art { border-right: 0; border-bottom: 1px solid var(--line); }
  .escape-art { min-height: 0; }
  .game-art { padding: 1.15rem; }
  .game-art img { width: min(100%, 200px); }
  .game-copy { padding: 1.25rem; }
  .footer-inner { flex-direction: column; align-items: flex-start; gap: .25rem; }
}
@media (max-width: 360px) {
  .brand { font-size: .9rem; gap: .6rem; }
  .navlinks { column-gap: 1rem; }
}
