:root {
  color-scheme: light;
  --paper: #f2f5fa;
  --ink: #172844;
  --muted: #52647c;
  --blue: #244fc4;
  --line: #d2dce9;
  --court: #dce9ff;
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* { box-sizing: border-box; }
body { margin: 0; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
a:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
::selection { background: #c7d9ff; }
.shell { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip-link { position: fixed; left: 16px; top: 16px; padding: 12px 20px; background: white; z-index: 10; transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }
.site-header { min-height: 104px; display: flex; align-items: center; justify-content: space-between; gap: 24px; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: baseline; flex-wrap: wrap; column-gap: 10px; font-size: 23px; font-weight: 750; letter-spacing: -1px; }
.brand span { font-size: 16px; font-weight: 500; color: var(--blue); letter-spacing: -.4px; }
.site-header nav { display: flex; gap: 28px; font-size: 14px; }
.site-header nav a, .site-footer a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; }
.site-header nav a:hover, .site-footer a:hover { text-decoration: underline; text-underline-offset: 5px; }
.intro { padding-block: 78px 70px; }
.intro-note { margin: 0 0 22px; font-size: 15px; color: var(--muted); }
h1 { font-size: clamp(52px, 7.5vw, 94px); line-height: 1.03; letter-spacing: -.065em; font-weight: 750; margin: 0; }
.intro-description { max-width: 570px; color: var(--muted); font-size: 17px; line-height: 1.8; margin: 26px 0 18px; }
.browse-link { display: inline-flex; gap: 20px; align-items: center; min-height: 44px; color: var(--blue); font-size: 14px; font-weight: 650; }
.browse-link:hover { text-decoration: underline; text-underline-offset: 5px; }
.library { scroll-margin-top: 24px; }
.section-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.section-heading h2 { font-size: 25px; letter-spacing: -.7px; margin: 0; }
.section-heading p { font-size: 13px; color: var(--muted); margin: 0; }
.game-list { display: grid; gap: 28px; }
.game-card { display: grid; grid-template-columns: 1.1fr 1fr; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: white; }
.game-art { position: relative; isolation: isolate; min-height: 440px; overflow: hidden; background: var(--court); padding: 30px; display: flex; flex-direction: column; justify-content: space-between; }
.art-label { font-size: 22px; font-weight: 750; letter-spacing: -1px; color: #244787; }
.court { position: absolute; z-index: -1; width: 76%; height: 61%; top: 19%; left: 13%; border: 3px solid #8eafe3; border-radius: 5px; transform: rotate(-13deg) skew(8deg); background-image: linear-gradient(#b9cef0 1px, transparent 1px), linear-gradient(90deg, #b9cef0 1px, transparent 1px); background-size: 28px 28px; background-color: #d2e2fc; box-shadow: 10px 12px 0 #b6cbed; }
.court-line { position: absolute; border: 2px solid #a4bde5; }
.court-line-one { inset: 12px; }
.court-line-two { height: 100%; left: 50%; border-width: 0 0 0 2px; }
.obstacle { position: absolute; border: 3px solid #426bad; background: #edf4ff; box-shadow: 6px 7px 0 #8cabe0; }
.obstacle-one { width: 28%; height: 15%; left: 12%; top: 20%; }
.obstacle-two { width: 12%; height: 35%; right: 18%; top: 12%; }
.obstacle-three { width: 31%; height: 12%; right: 13%; bottom: 20%; }
.obstacle-four { width: 13%; height: 24%; left: 21%; bottom: 15%; }
.runner { position: absolute; width: 24px; height: 24px; border-radius: 50%; border: 4px solid white; box-shadow: 0 3px 5px #17284433; }
.runner-chaser { background: #244fc4; left: 43%; top: 40%; }
.runner-evader { background: #b94928; left: 65%; top: 52%; }
.chase-trail { position: absolute; width: 18%; height: 15%; left: 47%; top: 47%; border-bottom: 3px dashed #688ac0; border-left: 3px dashed #688ac0; border-bottom-left-radius: 20px; }
.art-caption { display: flex; justify-content: space-between; align-items: end; gap: 12px; color: #244787; font-size: 15px; font-weight: 600; }
.art-caption strong { font-size: 54px; line-height: 1; letter-spacing: -3px; }
.art-caption strong span { font-size: 16px; letter-spacing: 0; margin-left: 4px; }
.game-details { padding: 40px; display: flex; flex-direction: column; align-items: start; }
.game-tags { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; color: var(--muted); font-size: 12px; }
.available { display: inline-flex; align-items: center; gap: 7px; color: #256145; }
.available::before { content: ""; width: 6px; height: 6px; background: currentColor; border-radius: 50%; }
.game-details h3 { font-size: clamp(28px, 3vw, 36px); letter-spacing: -1.3px; line-height: 1.15; margin: 24px 0 14px; }
.game-details > p { margin: 0; font-size: 15px; line-height: 1.85; color: var(--muted); max-width: 48ch; }
.game-facts { display: flex; flex-wrap: wrap; gap: 16px 32px; margin: 24px 0 28px; }
.game-facts dt { font-size: 12px; color: var(--muted); margin-bottom: 5px; }
.game-facts dd { margin: 0; font-size: 13px; font-weight: 600; }
.play-link { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 50px; padding: 14px 24px; border-radius: 8px; background: var(--blue); color: white; font-size: 14px; font-weight: 650; margin-top: auto; }
.play-link:hover { background: #1b3e9e; }
.play-icon { font-size: 12px; }
.library-note { color: var(--muted); font-size: 14px; line-height: 1.7; margin: 24px 0 0; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px 32px; border-top: 1px solid var(--line); margin-top: 70px; padding-block: 24px; font-size: 12px; color: var(--muted); }
.site-footer p { margin: 0; line-height: 1.7; }
.site-footer a { flex-shrink: 0; }
@media (max-width: 900px) {
  .game-details { padding: 28px; }
  .game-art { padding: 24px; }
  .art-caption { font-size: 13px; }
}
@media (max-width: 700px) {
  .shell { width: calc(100% - 40px); }
  .site-header { min-height: 84px; gap: 16px; }
  .brand { font-size: 20px; column-gap: 6px; }
  .brand span { font-size: 14px; }
  .site-header nav { gap: 16px; font-size: 13px; }
  .intro { padding-block: 52px 44px; }
  .intro-description { font-size: 16px; }
  .desktop-break { display: none; }
  .game-card { grid-template-columns: 1fr; }
  .game-art { min-height: 310px; }
  .court { width: 70%; left: 16%; }
  .game-details { padding: 28px 24px; }
  .game-details h3 { margin-top: 20px; }
  .play-link { width: 100%; }
  .site-footer { margin-top: 48px; align-items: start; flex-direction: column; }
}
@media (max-width: 360px) {
  .site-header { flex-wrap: wrap; padding-block: 16px; gap: 4px 20px; }
  .game-art { min-height: 270px; padding: 20px; }
  .game-details { padding: 24px 20px; }
}
