:root {
  --blue-600: #2449db;
  --blue-800: #1732a1;
  --ink-900: #16234b;
  --slate-600: #505d78;
  --blue-50: #eef1f8;
  --white: #fff;
  --line: #c3ccdf;
  --background: var(--blue-50);
  --surface: var(--white);
  --text: var(--ink-900);
  --muted: var(--slate-600);
  --accent: var(--blue-600);
  --accent-hover: var(--blue-800);
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-6: 3rem;
  --space-8: 4rem;
  --gutter: clamp(1rem, 3.4vw, 4rem);
  --content: 1440px;
  --radius: 5px;
  --button-background: var(--accent);
  --button-text: var(--white);
  --transition: 160ms ease;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--text);
  background: var(--background);
  font-synthesis: none;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 1rem; }
body { margin: 0; font-size: 1rem; line-height: 1.6; }
body.dialog-open { overflow: hidden; }
h1,h2,h3,p { margin: 0; }
h1,h2,h3 { line-height: 1.25; padding-bottom: 2px; }
a { color: inherit; text-underline-offset: .22em; }
button { font: inherit; color: inherit; cursor: pointer; }
button,a { -webkit-tap-highlight-color: transparent; }
button:active,.play:active { transform: translateY(1px); }
button:focus-visible,a:focus-visible { outline: 3px solid var(--accent); outline-offset: 5px; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; top: 1rem; left: 1rem; z-index: 10; padding: .75rem 1rem; background: var(--surface); transform: translateY(-200%); }
.skip:focus { transform: translateY(0); }
.masthead,main,.site-footer { width: min(calc(100% - var(--gutter) * 2),var(--content)); margin-inline: auto; }
.masthead { display: flex; gap: var(--space-4); align-items: center; min-height: 102px; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: .65rem; align-items: center; font-size: 1.5rem; font-weight: 700; text-decoration: none; letter-spacing: -.055em; }
.brand img { flex: 0 0 36px; }
.masthead-note { color: var(--muted); font-size: .875rem; margin-left: .5rem; }
.masthead nav { display: flex; gap: var(--space-4); margin-left: auto; }
.masthead nav a { display: flex; gap: 1.5rem; min-height: 44px; align-items: center; text-decoration: none; font-size: .875rem; font-weight: 600; }
.masthead nav a:hover { color: var(--accent); text-decoration: underline; }
.intro { display: grid; grid-template-columns: 1fr 1.65fr 1fr; align-items: center; gap: var(--space-6); padding: 52px 0; }
.eyebrow,.category { font-size: .75rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; }
.eyebrow { color: var(--accent); }
.intro-label { align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: var(--space-4); padding-block: .25rem; }
.collection-count { display: flex; align-items: baseline; gap: .75rem; font-size: 2rem; font-weight: 350; }
.collection-count span { font-size: .75rem; font-weight: 400; color: var(--muted); }
.intro h1 { font-size: clamp(2.7rem, 4.7vw, 4.65rem); letter-spacing: -.065em; font-weight: 650; line-height: 1.08; padding-bottom: .15em; }
.intro h1 span { color: var(--accent); }
.intro>p { color: var(--muted); font-size: 1rem; }
.intro-small { display: block; font-size: .75rem; margin-top: var(--space-2); }
.game-board { display: grid; grid-template-columns: repeat(12,minmax(0,1fr)); gap: var(--space-3); }
.game { background: var(--surface); border-radius: var(--radius); min-width: 0; overflow: clip; }
.game-1 { grid-column: span 4; grid-row: span 2; display: flex; flex-direction: column; background: var(--accent); color: var(--white); }
.game-2 { grid-column: span 5; }
.game-3 { grid-column: span 3; display: flex; flex-direction: column; }
.game-3 .art { flex: 1; }
.game-3 .art img { position: absolute; inset: 0; }
.game-4 { grid-column: span 4; }
.game-5 { grid-column: span 4; }
.game-6,.game-7 { grid-column: span 6; display: grid; grid-template-columns: 44% 1fr; }
.art { position: relative; background: var(--line); min-width: 0; }
.art img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 16/10; }
.game-1 .art { flex: 1; min-height: 0; color: var(--text); }
.game-1 .art img { position: absolute; inset: 0; object-fit: cover; }
.game-1 .game-caption { display: block; padding: 28px; }
.game-1 h2 { max-width: 10ch; }
.game-1 .category { color: var(--white); opacity: .85; }
.game-1 .game-description { color: var(--white); opacity: .85; display: block; margin-top: var(--space-2); max-width: 24ch; }
.game-1 .play { margin-top: var(--space-3); width: 100%; justify-content: space-between; background: var(--white); border-color: var(--white); color: var(--accent); }
.game-number { position: absolute; top: 12px; left: 12px; padding: .15rem .5rem; border-radius: 2px; background: var(--surface); color: var(--text); font: 600 .75rem/1.8 ui-monospace,monospace; }
.game-caption { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: 20px; }
.game-caption>div { min-width: 0; }
.category { font-size: .75rem; color: var(--muted); margin-bottom: .45rem; }
.game h2 { font-size: 1.15rem; letter-spacing: -.025em; font-weight: 650; }
.game.game-1 h2 { font-size: clamp(1.6rem,2.3vw,2.4rem); }
.game-description { display: none; color: var(--muted); font-size: .875rem; }
.game-6 .game-caption,.game-7 .game-caption { flex-direction: column; align-items: flex-start; padding: 24px; }
.game-6 .game-description,.game-7 .game-description { display: block; margin-top: .65rem; }
.play { flex-shrink: 0; display: inline-flex; align-items: center; gap: .35rem; min-height: 46px; padding: .55rem .8rem; color: var(--accent); background: transparent; border: 1px solid var(--accent); border-radius: 3px; font-size: .875rem; font-weight: 600; text-decoration: none; transition: background var(--transition),color var(--transition); }
.play:hover,.game-1 .play:hover { color: var(--white); background: var(--accent-hover); border-color: var(--accent-hover); }
.recent { display: flex; align-items: center; gap: var(--space-3); margin-bottom: var(--space-3); padding: .75rem 1.25rem; border: 1px solid var(--line); border-left: 4px solid var(--accent); background: var(--surface); }
.recent h2 { font-size: .875rem; white-space: nowrap; }
#recent-list { display: flex; flex-wrap: wrap; gap: .25rem .75rem; flex: 1; }
#recent-list button { background: transparent; border: 0; min-height: 44px; text-align: left; color: var(--accent); font-size: .875rem; text-decoration: underline; text-underline-offset: .2em; }
.text-control { background: none; border: none; padding: .5rem 0; min-height: 44px; text-decoration: underline; text-underline-offset: .2em; text-align: left; }
.text-control:hover { color: var(--accent); }
.play-notes { display: grid; grid-template-columns: 1.05fr 1fr 1fr; gap: var(--space-6); margin-block: 56px 64px; padding-top: var(--space-4); border-top: 1px solid var(--line); }
.play-notes h2 { font-size: 1.65rem; letter-spacing: -.035em; margin-top: .75rem; }
.play-notes h3 { font-size: 1rem; font-weight: 650; margin-bottom: .75rem; }
.play-notes p { font-size: .875rem; color: var(--muted); max-width: 42ch; }
.site-footer { padding-bottom: var(--space-4); }
.footer-heading { background: var(--accent); color: var(--white); display: flex; gap: var(--space-2); align-items: center; padding: 22px 24px; border-radius: var(--radius); }
.footer-heading p { font-size: 1.25rem; letter-spacing: -.035em; font-weight: 600; }
.footer-heading a { font-size: .875rem; margin-left: auto; padding: .5rem 0; }
.footer-details { display: flex; gap: var(--space-3); align-items: baseline; justify-content: space-between; margin-top: var(--space-2); font-size: .75rem; color: var(--muted); }
.footer-details nav { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.footer-details a,.footer-details button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; border: none; font-size: inherit; text-decoration: none; }
.footer-details a:hover,.footer-details button:hover { color: var(--accent); text-decoration: underline; }
.storage-note { width: min(calc(100% - var(--gutter) * 2),var(--content)); margin: 0 auto var(--space-4); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 20px 24px; background: var(--surface); display: flex; gap: var(--space-4); flex-wrap: wrap; align-items: center; }
.storage-note>div:first-child { flex: 1 1 26rem; }
.storage-note h2 { font-size: 1rem; margin-bottom: .5rem; }
.storage-note p { color: var(--muted); font-size: .8125rem; max-width: 80ch; }
.storage-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: .65rem 1rem; background: var(--button-background); color: var(--button-text); border: 1px solid var(--accent); border-radius: 3px; font-size: .875rem; font-weight: 600; }
.button:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.button.secondary { background: var(--surface); color: var(--accent); }
.button.secondary:hover { background: var(--background); }
.storage-message:empty { display: none; }
dialog { color: var(--text); border: 0; padding: 0; background: var(--surface); }
dialog::backdrop { background: rgb(14 26 58 / .72); }
.player { width: calc(100% - 32px); max-width: 1600px; height: calc(100dvh - 32px); max-height: none; border-radius: 6px; overflow: hidden; }
.player[open] { display: flex; flex-direction: column; }
.player-bar { display: grid; grid-template-columns: 180px 1fr 48px; align-items: center; gap: var(--space-2); padding: 8px 16px; background: var(--accent); color: var(--white); }
.player-bar h2 { text-align: center; font-size: 1rem; font-weight: 600; }
.player-back { display: flex; gap: .75rem; align-items: center; background: transparent; border: 0; color: var(--white); padding: .5rem; min-height: 44px; font-size: .875rem; }
.close { background: transparent; border: 1px solid currentColor; border-radius: 3px; width: 44px; height: 44px; font-size: 1.75rem; line-height: 1; display: grid; place-items: center; }
.player button:hover { background: rgb(255 255 255 / .15); }
.player button:focus-visible { outline-color: var(--white); outline-offset: 2px; }
.frame-slot { flex: 1; min-height: 0; background: #111; }
.frame-slot iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--background); }
.player-foot { padding: 8px 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; font-size: .75rem; color: var(--muted); }
.player-foot a { padding: .4rem 0; }
.settings { width: min(560px,calc(100% - 32px)); max-height: calc(100dvh - 32px); border-radius: var(--radius); padding: var(--space-4); }
.settings-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: var(--space-3); }
.settings h2 { font-size: 2rem; letter-spacing: -.04em; max-width: 13ch; margin-bottom: var(--space-2); }
.settings>p { margin-block: var(--space-2); color: var(--muted); }
.settings .small { font-size: .8125rem; border-top: 1px solid var(--line); padding-top: var(--space-3); }
.settings .preference-state { background: var(--background); padding: .75rem 1rem; font-size: .875rem; color: var(--text); }
.settings>.text-control { margin-top: var(--space-2); font-size: .875rem; }
.noscript { margin: var(--space-4); padding: var(--space-2); border: 1px solid var(--accent); }
.legal { padding-top: 52px; }
.legal-intro { display: grid; grid-template-columns: 1.8fr 1fr; gap: var(--space-8); align-items: end; padding-bottom: var(--space-6); border-bottom: 1px solid var(--line); }
.legal h1 { font-size: clamp(2.5rem,4.5vw,4.2rem); letter-spacing: -.055em; max-width: 15ch; margin-block: var(--space-3); }
.legal-summary { color: var(--muted); max-width: 48ch; }
.updated { font-size: .75rem; color: var(--muted); margin-top: var(--space-3); }
.policy-nav { display: flex; flex-direction: column; }
.policy-nav a { display: flex; justify-content: space-between; gap: 1rem; padding: .8rem 1rem; border-bottom: 1px solid var(--line); text-decoration: none; font-size: .875rem; }
.policy-nav [aria-current] { background: var(--accent); color: var(--white); border-radius: 3px; }
.policy-nav a:hover { text-decoration: underline; }
.legal-body { max-width: 790px; margin: var(--space-6) auto var(--space-8); }
.legal-body section { display: grid; grid-template-columns: 48px minmax(0,1fr); gap: var(--space-3); margin-bottom: var(--space-6); }
.section-number { font: .75rem/1.6 ui-monospace,monospace; color: var(--accent); padding-top: .25rem; }
.legal-body h2 { font-size: 1.4rem; letter-spacing: -.025em; margin-bottom: var(--space-2); }
.legal-body p { color: var(--muted); line-height: 1.8; }
code { font-size: .85em; color: var(--text); overflow-wrap: anywhere; }
@media (min-width: 1600px) { .game h2 { font-size: 1.35rem; } .game.game-1 h2 { font-size: 2.6rem; } }
@media (max-width: 1100px) {
  .masthead-note { display: none; }
  .intro { grid-template-columns: 1fr 1.6fr 1.2fr; gap: var(--space-3); }
  .game-board { gap: var(--space-2); }
  .game-caption { padding: 16px; }
  .game-1 .game-caption { padding: 24px; }
  .game h2 { font-size: 1rem; }
  .game.game-1 h2 { font-size: 1.9rem; }
  .game-3 .game-caption { flex-wrap: wrap; gap: .75rem; }
  .game-6,.game-7 { grid-template-columns: 40% 1fr; }
  .game-6 .game-caption,.game-7 .game-caption { padding: 20px; }
  .play-notes { gap: var(--space-4); }
}
@media (max-width: 900px) {
  .masthead { min-height: 84px; gap: var(--space-2); }
  .masthead nav { gap: var(--space-2); }
  .masthead nav a { gap: .5rem; font-size: .8125rem; }
  .intro { grid-template-columns: 1fr 1.4fr; padding: 36px 0; }
  .intro-label { grid-column: 1/-1; flex-direction: row; align-items: center; }
  .collection-count { font-size: 1.25rem; }
  .intro h1 { font-size: 3.4rem; }
  .intro>p { font-size: .875rem; justify-self: end; }
  .game-board { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .game-1,.game-2,.game-3,.game-4,.game-5 { grid-column: span 1; grid-row: auto; }
  .game-1 { grid-column: 1/-1; display: grid; grid-template-columns: 1fr 1fr; }
  .game-1 .art { min-height: 270px; }
  .game-1 .game-caption { align-self: center; }
  .game-1 h2 { max-width: 12ch; }
  .game-3 .game-caption { flex-wrap: nowrap; }
  .game-3 .art img { position: static; }
  .game-6,.game-7 { grid-column: span 1; display: flex; flex-direction: column; }
  .game-6 .game-caption,.game-7 .game-caption { flex-direction: row; align-items: center; flex: 1; padding: 16px; }
  .game-6 .game-description,.game-7 .game-description { display: none; }
  .play-notes { grid-template-columns: 1fr 1fr; margin-block: 40px; }
  .play-notes>div:first-child { grid-column: 1/-1; display: flex; align-items: start; justify-content: space-between; gap: var(--space-2); }
  .play-notes h2 { margin-top: 0; font-size: 1.5rem; }
  .footer-details { display: block; }
  .footer-details nav { margin-top: .25rem; }
  .recent { flex-wrap: wrap; gap: .5rem 1rem; }
  #recent-list { flex-basis: 100%; order: 3; }
  .recent>.text-control { margin-left: auto; font-size: .8125rem; }
  .legal-intro { grid-template-columns: 1fr; gap: var(--space-4); }
  .legal { padding-top: 36px; }
}
@media (max-width: 480px) {
  .masthead { flex-wrap: wrap; gap: 0; padding-top: 18px; padding-bottom: 8px; }
  .brand { font-size: 1.4rem; }
  .brand img { width: 30px; height: 30px; flex-basis: 30px; }
  .masthead nav { flex-basis: 100%; justify-content: space-between; margin-top: .5rem; }
  .intro { padding-block: 24px 28px; gap: 18px 12px; }
  .intro-label .eyebrow { font-size: .6875rem; letter-spacing: .03em; }
  .collection-count { font-size: 1rem; gap: .4rem; }
  .collection-count span { font-size: .6875rem; }
  .intro h1 { grid-column: 1/-1; font-size: clamp(2.8rem,11vw,3.4rem); }
  .intro>p { grid-column: 1/-1; justify-self: start; font-size: .8125rem; line-height: 1.5; max-width: none; }
  .intro>p br { display: none; }
  .intro-small { font-size: .7rem; margin-top: .35rem; }
  .game-board { gap: 20px 12px; }
  .game-1 { grid-template-columns: 46% 1fr; }
  .game-1 .art { min-height: 242px; }
  .game-1 .game-caption { padding: 18px; }
  .game.game-1 h2 { font-size: 1.45rem; }
  .game-1 .game-description { font-size: .75rem; }
  .game-1 .category { font-size: .6875rem; }
  .game-caption,.game-6 .game-caption,.game-7 .game-caption { display: flex; flex-direction: column; align-items: stretch; padding: 12px; gap: 14px; }
  .game h2 { font-size: .95rem; line-height: 1.2; }
  .game .category { font-size: .6875rem; letter-spacing: 0; }
  .game-3 .game-caption { flex-direction: column; align-items: stretch; }
  .game-caption>div { min-height: 65px; }
  .game-1 .game-caption>div { min-height: 0; }
  .play { justify-content: space-between; width: 100%; min-height: 44px; }
  .game-1 .play { margin-top: 16px; }
  .game-number { top: 8px; left: 8px; font-size: .6875rem; }
  .game-6 .art img,.game-7 .art img { aspect-ratio: 16/10; }
  .play-notes { grid-template-columns: 1fr; gap: var(--space-3); }
  .play-notes>div:first-child { grid-column: auto; display: block; }
  .play-notes h2 { margin-top: .75rem; }
  .play-notes h2 br { display: none; }
  .play-notes h2 br::after { content: ' '; }
  .play-notes p { max-width: none; }
  .footer-heading { padding: 18px; flex-wrap: wrap; gap: .5rem; }
  .footer-heading p { font-size: 1.1rem; }
  .footer-heading a { margin-left: 0; flex-basis: 100%; }
  .footer-details nav { gap: .25rem 1rem; }
  .storage-note { padding: 18px; gap: 18px; }
  .storage-actions { width: 100%; }
  .storage-actions .button { width: 100%; }
  .player { width: 100%; height: 100dvh; margin: 0; border-radius: 0; }
  .player-bar { grid-template-columns: 1fr 44px; gap: .4rem; padding: max(8px, env(safe-area-inset-top)) 12px 8px; }
  .player-back { grid-column: 1; grid-row: 1; }
  .player-bar h2 { grid-column: 1; grid-row: 2; text-align: left; padding-left: 8px; font-size: .875rem; }
  .player-bar .close { grid-column: 2; grid-row: 1/3; }
  .player-foot { padding-bottom: max(8px,env(safe-area-inset-bottom)); }
  .settings { padding: 24px; }
  .settings h2 { font-size: 1.75rem; }
  .settings .eyebrow { font-size: .6875rem; }
  .settings p { font-size: .875rem; }
  .settings-top .close { flex-shrink: 0; }
  .legal h1 { font-size: 2.7rem; }
  .legal-body section { grid-template-columns: 24px minmax(0,1fr); gap: 12px; }
  .legal-body h2 { font-size: 1.2rem; }
  .legal-body p { font-size: .9375rem; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *,*::before,*::after { transition: none !important; } button:active,.play:active { transform: none; } }

