@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root {
  color-scheme: dark;
  --bg: #101925;
  --panel: #142338;
  --text: #edf3fa;
  --muted: #a9b9cc;
  --line: #344f6d;
  --accent: #96caff;
  --shadow: #07111d;
  --heading-font: 'Space Grotesk', sans-serif;
  --body-font: 'DM Sans', sans-serif;
  --divider-pixels: repeating-linear-gradient(90deg, #6088b2 0 4px, transparent 4px 8px);
  font-family: 'DM Sans', sans-serif;
  background: var(--bg);
  color: var(--text);
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
a:focus-visible { outline: 3px solid var(--accent); outline-offset: 6px; }
a:hover { color: var(--accent); }
.shell { width: min(1220px, calc(100% - 96px)); margin: auto; }
.skip { position: absolute; left: 24px; top: -100px; background: var(--accent); color: var(--bg); padding: 12px; z-index: 5; }
.skip:focus { top: 12px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

header { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; border-bottom: 0; position: relative; gap: 24px; }
header::after { content: ''; position: absolute; bottom: 0; left: 0; width: 100%; height: 4px; background: var(--divider-pixels); pointer-events: none; }
/* Trim only the surrounding margins in layout; preserve the approved artwork. */
.brand { position: relative; display: block; flex: 0 0 auto; width: 220px; height: 142px; overflow: hidden; }
.brand-logo { position: absolute; display: block; width: 138%; max-width: none; height: auto; left: -19%; top: -24%; image-rendering: pixelated; }
nav { display: flex; gap: 16px; font: 500 15px/1.4 var(--body-font); }
nav a { padding: 12px 20px; border: 2px solid transparent; }
nav a:hover, nav a[aria-current] { border-color: var(--accent); background: var(--panel); box-shadow: 4px 4px 0 var(--shadow); color: var(--accent); }

.collection { scroll-margin-top: 28px; }
.collection + .collection { position: relative; }
.collection + .collection::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--divider-pixels); pointer-events: none; }
.intro { padding: 60px 0 40px; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }
.eyebrow, .small-label { font-family: var(--body-font); font-size: 11px; font-weight: 600; line-height: 1.5; letter-spacing: 1px; text-transform: uppercase; }
.eyebrow { color: var(--accent); margin: 0 0 12px; }
.eyebrow::before { content: ''; display: inline-block; width: 6px; height: 6px; margin: 0 12px 2px 0; background: var(--accent); box-shadow: 6px -6px 0 var(--accent); }
h1, .collection-title { font-family: var(--heading-font); font-weight: 400; font-size: clamp(44px, 6vw, 76px); line-height: 1.1; letter-spacing: -2px; margin: 0; }
.intro > p:last-child { font-size: 15px; color: var(--muted); max-width: 245px; line-height: 1.7; margin: 0 0 5px; }
.games { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; margin-bottom: 56px; }
.games article { min-width: 0; }
.game-card { display: block; }
.shot { aspect-ratio: 16/9; position: relative; overflow: hidden; background: var(--panel); border: 4px solid var(--line); box-shadow: 6px 6px 0 var(--shadow); display: grid; place-items: center; }
.shot img { width: 100%; height: 100%; object-fit: contain; position: absolute; inset: 0; image-rendering: pixelated; }
.game-card:hover .shot, .game-card:focus-visible .shot { border-color: var(--accent); }
.placeholder { display: flex; flex-direction: column; align-items: center; gap: 20px; width: 100%; height: 100%; justify-content: center; background: #192f49; padding: 24px; }
.placeholder .symbol { font: 500 clamp(32px, 5vw, 76px)/1.1 var(--heading-font); color: var(--accent); max-width: 100%; text-align: center; overflow-wrap: anywhere; }
.placeholder .caption { font: 400 15px/1.4 var(--heading-font); letter-spacing: 1px; color: var(--muted); text-transform: uppercase; }
.time .placeholder { background: #222f50; }
.card-info { display: flex; justify-content: space-between; align-items: center; padding: 24px 0; position: relative; gap: 20px; }
.card-info h2, .card-info h3 { font-family: var(--heading-font); font-size: 25px; line-height: 1.3; font-weight: 400; letter-spacing: -0.5px; margin: 0; overflow-wrap: anywhere; }
.arrow { height: 40px; width: 40px; display: grid; place-items: center; border: 2px solid #55789e; background: var(--panel); box-shadow: 4px 4px 0 var(--shadow); flex-shrink: 0; }
.pixel-arrow { display: inline-block; width: 16px; height: 16px; vertical-align: middle; shape-rendering: crispEdges; }
.game-card:hover .arrow, .game-card:focus-visible .arrow { background: var(--accent); color: var(--bg); border-color: var(--accent); }

.small-label { color: var(--muted); }
.game-socials { padding-top: 24px; }
.game-socials .small-label { display: block; margin-bottom: 16px; }
.socials { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; font: 400 14px/1.5 var(--body-font); }
.socials a { display: inline-flex; gap: 20px; align-items: center; justify-content: space-between; min-height: 44px; min-width: 176px; padding: 9px 16px; border: 2px solid var(--line); background: var(--panel); box-shadow: 4px 4px 0 var(--shadow); }
.socials a:hover, .socials a:focus-visible { color: var(--accent); border-color: var(--accent); }
.socials a:active, .button:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--shadow); }
.socials a span { color: var(--accent); }
.socials .unconfigured { color: #91a5be; padding: 8px 0; }
.socials span small { font: 12px/1.5 'DM Sans',sans-serif; display: block; margin-top: 4px; }
.detail-socials { padding: 0 0 56px; }

footer { position: relative; padding: 24px 0 32px; display: flex; justify-content: space-between; gap: 24px; font-size: 12px; color: var(--muted); }
footer span:last-child { font: 12px/1.5 var(--body-font); }
.back { display: inline-block; color: var(--muted); font: 14px/1.5 var(--body-font); margin: 36px 0; padding: 4px 0; }
.game-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 28px; margin: 12px 0 40px; }
.game-heading > div { min-width: 0; }
.game-heading h1 { font-size: clamp(38px, 5vw, 64px); max-width: 850px; overflow-wrap: anywhere; }
.detail-shot { aspect-ratio: 16/9; }
.detail-copy { display: grid; grid-template-columns: 1fr 2fr; gap: 60px; margin: 44px 0 64px; }
.detail-copy h2 { font: 400 24px/1.3 var(--heading-font); margin: 0; }
.detail-copy p { line-height: 1.85; color: var(--muted); font-size: 17px; margin: 0; white-space: pre-line; }
.button { display: inline-flex; align-items: center; gap: 20px; background: var(--accent); color: #10243b; border: 3px solid var(--accent); padding: 12px 20px; font: 600 14px/1.5 var(--body-font); box-shadow: 5px 5px 0 #355b82; white-space: nowrap; }
.button:hover { background: #c2e1ff; border-color: #c2e1ff; color: #10243b; }
.contact-content { min-height: 64vh; padding: 64px 0 80px; max-width: 900px; }
.contact-content h1 { margin-bottom: 28px; }
.contact-content .lead { color: var(--muted); font-size: 18px; line-height: 1.8; max-width: 540px; margin: 0 0 36px; }
.contact-info { padding: 24px; margin-top: 28px; border: 3px solid var(--line); background: var(--panel); box-shadow: 6px 6px 0 var(--shadow); }
.contact-info .small-label { margin-top: 0; }
.contact-info p { color: var(--muted); line-height: 1.8; }
.contact-info .email { font-family: var(--heading-font); font-size: clamp(20px, 3vw, 32px); line-height: 1.4; color: var(--accent); overflow-wrap: anywhere; }
.note { font-size: 13px; color: var(--muted); line-height: 1.7; }
.error { padding: 30px; border: 3px solid var(--line); }
[hidden] { display: none !important; }

@media(max-width:800px) {
  .shell { width: calc(100% - 40px); }
  header { padding: 18px 0; }
  .brand { width: 170px; height: 110px; }
  nav { gap: 8px; font-size: 14px; }
  nav a { padding: 10px 12px; }
  .intro { padding: 44px 0 32px; display: block; }
  .intro > p:last-child { margin-top: 24px; max-width: none; }
  .games { gap: 40px; grid-template-columns: 1fr; }
  .card-info h2, .card-info h3 { font-size: 24px; }
  .game-heading { display: block; }
  .game-heading .button { margin-top: 28px; }
  .detail-copy { grid-template-columns: 1fr; gap: 20px; margin: 32px 0 48px; }
  .contact-content { padding: 44px 0 52px; }
  footer { line-height: 1.7; }
}
@media(max-width:480px) {
  header { flex-wrap: wrap; gap: 14px; }
  .brand { width: 160px; height: 104px; }
  nav { width: 100%; gap: 16px; }
  nav a { flex: 1; text-align: center; border-color: var(--line); }
  .games { margin-bottom: 40px; }
  .card-info { align-items: flex-start; gap: 12px; }
  .card-info h2, .card-info h3 { font-size: 24px; }
  .contact-info { padding: 18px; }
  footer { flex-direction: column; gap: 8px; }
}
@media(prefers-reduced-motion:reduce) { * { scroll-behavior: auto !important; } }

.card-info::after, footer::before { content: ''; position: absolute; left: 0; width: 100%; height: 4px; background: var(--divider-pixels); pointer-events: none; }
.card-info::after { bottom: 0; }
footer::before { top: 0; }
