:root {
  color-scheme: light;
  --paper: #f5f4ee;
  --ink: #171b24;
  --muted: #515762;
  --blue: #263cda;
  --lime: #e4fa77;
  --line: #d7d8d0;
  --navy: #171d2a;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Malgun Gothic', sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* { box-sizing: border-box; }
body { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; width: 100%; height: 100%; object-fit: cover; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 3px solid #5981ff; outline-offset: 4px; }
.shell { width: min(100% - 5rem, 73rem); margin-inline: auto; }

.skip { position: fixed; z-index: 2; top: 1rem; left: 1rem; padding: .85rem; background: white; transform: translateY(-175%); }
.skip:focus { transform: none; }
.top { min-height: 4.75rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; gap: .65rem; font-size: 1.18rem; font-weight: 850; letter-spacing: -.045em; }
.brand-mark { display: grid; place-items: center; width: 2rem; aspect-ratio: 1; border-radius: .5rem; background: var(--blue); color: white; }
.brand-mark i { position: relative; width: 1.2rem; height: .86rem; border: 1.25px solid currentColor; border-radius: 2px; }
.brand-mark i::before, .brand-mark i::after { position: absolute; content: ''; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.brand-mark i::before { height: 100%; border-left: 1px solid currentColor; }
.brand-mark i::after { width: .31rem; height: .31rem; border: 1px solid currentColor; border-radius: 50%; }
.nav-link, .footer a { display: inline-flex; align-items: center; min-height: 2.75rem; font-size: .94rem; font-weight: 750; }
.nav-link:hover, .footer a:hover { color: var(--blue); text-decoration: underline; text-underline-offset: .3em; }

.intro { padding-block: clamp(2.55rem, 5vw, 4.3rem) clamp(1.75rem, 3vw, 2.6rem); }
.intro h1 { font-size: clamp(3.5rem, 7.7vw, 6.85rem); font-weight: 900; line-height: 1; letter-spacing: -.095em; }
.intro h1 span { color: var(--blue); }
.intro p { margin-top: 1rem; color: var(--muted); font-size: clamp(1rem, 1.7vw, 1.18rem); line-height: 1.6; word-break: keep-all; }

.feature-card { display: grid; grid-template-columns: .82fr 1.18fr; min-height: 22rem; overflow: hidden; border-radius: 1.05rem; background: var(--navy); color: white; }
.feature-card .game-copy { display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(1.5rem, 4.5vw, 3.5rem); }
.feature-card .sport-label { margin-bottom: 1rem; color: var(--lime); }
.feature-card .game-title { font-size: clamp(2rem, 4.45vw, 3.9rem); letter-spacing: -.075em; }
.feature-card .game-description { margin-block: .75rem 1.35rem; color: #d7dce5; }
.feature-card .game-media { position: relative; min-height: 100%; background: #1f4b3d; }
.feature-card .game-media img { position: absolute; inset: 0; object-position: 50% 75%; }
.feature-card .play { background: var(--lime); color: #151a24; }
.feature-card .play:hover { background: #f2ffab; }

.library { margin-top: clamp(2.6rem, 5vw, 4.35rem); scroll-margin-top: 1.1rem; }
.section-line { display: flex; align-items: center; gap: 1.05rem; margin-bottom: 1rem; }
.section-line h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); letter-spacing: -.06em; }
.section-line::after { content: ''; height: 1px; flex: 1; background: var(--line); }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.15rem; }
.game-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: .86rem; overflow: hidden; background: #fffefa; }
.game-card .game-media { position: relative; flex: none; aspect-ratio: 1.76; background: #202b37; }
.game-card .game-media img { position: absolute; inset: 0; }
.game-card[data-game='keeper'] img { object-position: 50% 62%; }
.game-card .game-copy { display: flex; flex: 1; flex-direction: column; align-items: flex-start; padding: 1.15rem; }
.sport-label { color: var(--blue); font-size: .88rem; font-weight: 800; }
.game-title { margin-top: .35rem; font-size: clamp(1.32rem, 2.65vw, 1.85rem); font-weight: 900; line-height: 1.16; letter-spacing: -.05em; word-break: keep-all; }
.game-description { margin-block: .55rem 1.05rem; color: var(--muted); font-size: 1rem; line-height: 1.55; word-break: keep-all; }
.play { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 2.75rem; margin-top: auto; padding: .63rem 1rem; border-radius: .5rem; background: var(--blue); color: white; font-size: 1rem; font-weight: 800; white-space: nowrap; transition: background-color .15s ease; }
.play-icon { width: 0; height: 0; border: .33rem solid transparent; border-left: .52rem solid currentColor; border-right: 0; }
.play:hover { background: #172caf; }
.footer { display: flex; justify-content: flex-end; margin-top: 2.95rem; padding-block: .45rem .85rem; border-top: 1px solid var(--line); color: var(--muted); }

@media (max-width: 50rem) {
  .shell { width: calc(100% - 2.5rem); }
  .feature-card { min-height: 18.75rem; }
  .feature-card .game-copy { padding: 1.45rem; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 35rem) {
  .shell { width: calc(100% - 2rem); }
  .top { min-height: 3.75rem; }
  .intro { padding-top: 2.3rem; }
  .feature-card { grid-template-columns: 1fr; }
  .feature-card .game-copy { padding: 1.25rem; }
  .feature-card .game-media { order: -1; aspect-ratio: 1.78; min-height: 0; }
  .feature-card .game-media img { object-position: 50% 66%; }
  .feature-card .sport-label { margin-bottom: .4rem; }
  .feature-card .game-description { margin-bottom: 1rem; }
  .play { width: 100%; }
  .game-grid { grid-template-columns: 1fr; gap: 1rem; }
}

@media (prefers-reduced-motion: reduce) { .play { transition: none; } }
