:root {
  color-scheme: dark;
  --bg: #100d21;
  --surface: #211a3a;
  --ink: #f8f5ff;
  --muted: #beb6d7;
  --line: #46365f;
  --accent: #f9d54b;
  --accent-ink: #21152b;
  --purple: #8b49ea;
  --blue: #69c9ff;
  --display: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; font: 1rem/1.65 system-ui, -apple-system, 'Segoe UI', sans-serif; background: radial-gradient(ellipse at 90% 0, #38205a88, transparent 48rem), var(--bg); color: var(--ink); }
body::before { content: ''; position: absolute; inset: 0 0 auto; height: 900px; z-index: -1; opacity: .12; background-image: radial-gradient(#b79adf 1px, transparent 1px); background-size: 9px 9px; mask-image: linear-gradient(#000, transparent); pointer-events: none; }
[hidden] { display: none !important; }
.wrap { width: min(1200px, 100%); margin: 0 auto; padding-inline: 32px; }
a { color: var(--accent); text-underline-offset: 4px; }
a:hover { color: #fff0a3; }
button, a { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 6px; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; background: var(--accent); color: var(--bg); padding: 12px 20px; }
.skip-link:focus { top: 10px; }
.prototype-banner { padding: 6px 20px; background: #080611; border-bottom: 1px solid #30223f; text-align: center; color: #aaa0bf; font-size: .8125rem; letter-spacing: .025em; }
.prototype-banner span { color: var(--accent); padding-inline: 9px; }
header.site { background: #130e24e8; border-bottom: 1px solid var(--line); }
header.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 92px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.ball-mark { width: 44px; height: 44px; color: #ffae36; flex-shrink: 0; }
.brand-type { font: italic 1.5rem/.95 var(--display); text-transform: uppercase; letter-spacing: .04em; transform: rotate(-3deg); }
.brand-type > span { display: block; color: var(--accent); font-size: 1.1rem; letter-spacing: .28em; margin-top: 4px; }
nav.site { display: flex; align-items: center; gap: 6px; }
nav.site a { color: #d3cbe7; text-decoration: none; font-size: .875rem; font-weight: 650; padding: 10px 14px; border-radius: 5px; }
nav.site a:hover { background: #ffffff09; color: white; }
nav.site a[aria-current=page] { background: #3d285f; color: #fff; box-shadow: inset 0 -3px var(--purple); }
main { padding-block: 30px 72px; }
h1, h2, h3 { line-height: 1.12; }
h1 { font: italic clamp(2.6rem, 5vw, 4.5rem)/1 var(--display); text-transform: uppercase; letter-spacing: .015em; margin: 14px 0 18px; text-shadow: 3px 4px 0 #06040f; }
h2 { font: italic 2rem/1.12 var(--display); letter-spacing: .02em; margin: 44px 0 18px; }
h3 { font-size: 1.125rem; margin: 24px 0 10px; }
p { margin: 10px 0; }
.lede { color: var(--muted); font-size: 1.0625rem; max-width: 760px; }
.eyebrow { color: var(--blue); font-size: .8125rem; font-weight: 800; letter-spacing: .13em; line-height: 1.5; margin: 0 0 14px; }
.home-hero { display: grid; grid-template-columns: 1.1fr .9fr; align-items: center; min-height: 430px; position: relative; isolation: isolate; padding: 32px 0 54px; }
.home-hero h1 { font-size: clamp(4rem, 7.3vw, 6.6rem); line-height: .94; letter-spacing: -.025em; margin: 18px 0 20px; -webkit-text-stroke: 1px #f7f3ff; text-shadow: 4px 5px 0 #211036, 7px 8px 0 #0008; }
.home-hero h1 span { color: var(--accent); -webkit-text-stroke: 1px var(--accent); }
.hero-tagline { font-weight: 750; font-size: 1.375rem; letter-spacing: -.025em; margin: 26px 0 7px; }
.home-hero .lede { font-size: 1rem; }
.hero-actions { display: flex; gap: 24px; align-items: center; margin-top: 28px; }
.desktop-note { color: var(--muted); font-size: .8125rem; line-height: 1.5; }
.btn { display: inline-flex; justify-content: center; align-items: center; gap: 12px; min-height: 48px; padding: 13px 24px; border: 2px solid #1b102b; border-radius: 6px; color: var(--accent-ink); background: linear-gradient(#ffe780, #f4c82f); box-shadow: 0 5px 0 #9c6820, inset 0 2px 0 #fff6; font: 800 .9375rem/1.3 system-ui, sans-serif; cursor: pointer; text-decoration: none; transition: transform .15s, box-shadow .15s, filter .15s; }
.btn:hover { color: #21152b; filter: brightness(1.08); transform: translateY(-2px); box-shadow: 0 7px 0 #9c6820, inset 0 2px 0 #fff6; }
.btn:active { transform: translateY(3px); box-shadow: 0 2px 0 #9c6820; }
.btn.secondary { color: #f2edff; background: #37284d; border: 1px solid #62507d; box-shadow: 0 3px 0 #0d0917; font-size: .875rem; min-height: 42px; padding: 8px 18px; }
.btn:disabled { opacity: .45; cursor: default; transform: none; filter: none; }
.hero-art { height: 390px; position: relative; margin-left: 20px; }
.hero-art::before { content: ''; position: absolute; inset: 8% -2% 0; background: radial-gradient(ellipse, #8952ef4d, transparent 65%); }
.court-diagram { position: absolute; width: 440px; height: 310px; max-width: 100%; top: 34px; left: 2%; border: 2px solid #9c79dd4d; border-radius: 20px; transform: rotate(-13deg) skewY(2deg); background: linear-gradient(155deg, #7444ac29, #21133522); overflow: hidden; }
.court-diagram::after { content: ''; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 2px solid #9c79dd4d; }
.court-circle { position: absolute; width: 140px; height: 140px; border: 2px solid #9c79dd4d; border-radius: 50%; left: calc(50% - 70px); top: calc(50% - 70px); }
.court-key { position: absolute; width: 100px; height: 160px; border: 2px solid #9c79dd4d; border-left: 0; border-radius: 0 60px 60px 0; left: 0; top: 73px; }
.hero-ball { position: absolute; width: 225px; height: 225px; top: 45px; left: 23%; transform: rotate(-22deg); filter: drop-shadow(15px 20px 0 #100a255e); }
.hero-ball .ball-mark { width: 100%; height: 100%; color: #ff9d35; }
.shot-word { position: absolute; font: italic 4.5rem/.9 var(--display); letter-spacing: -.03em; color: var(--accent); text-shadow: 3px 4px 0 #21122b, 6px 7px 0 #8b49ea; transform: rotate(-10deg); top: 233px; left: 19%; }
.court-caption { position: absolute; right: 20px; bottom: 9px; color: #9684b7; font-size: .6875rem; letter-spacing: .16em; font-weight: 700; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 24px; }
.section-heading .eyebrow { margin-bottom: 8px; }
.section-heading h2 { margin: 0; font-size: 2.4rem; }
.section-note { color: var(--muted); font-size: .875rem; padding-bottom: 5px; }
.game-selection { padding-top: 16px; scroll-margin-top: 28px; }
.card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.game-card { min-width: 0; background: linear-gradient(145deg, #302043, #20182f); border: 1px solid #69438c; border-radius: 12px; box-shadow: 0 8px 0 #080610; overflow: hidden; transition: border-color .2s, transform .2s; }
.game-card:hover { border-color: #bc87fa; transform: translateY(-3px); }
.card-image { display: block; aspect-ratio: 1.95; position: relative; overflow: hidden; border-bottom: 3px solid #9b64e8; }
.card-image::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent 55%, #140c2e88); }
.card-image img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .4s; }
.game-card:hover .card-image img { transform: scale(1.035); }
.game-tag { position: absolute; z-index: 1; top: 14px; left: 14px; background: #171023e6; border: 1px solid #ffffff4d; padding: 5px 10px; border-radius: 3px; color: #fff; font-weight: 800; font-size: .75rem; letter-spacing: .06em; }
.image-play { position: absolute; z-index: 1; right: 18px; bottom: 18px; width: 42px; height: 42px; background: #f9d54b; border: 2px solid #171023; border-radius: 50%; box-shadow: 0 3px 0 #0005; }
.image-play::after, .play-icon { content: ''; display: inline-block; width: 0; height: 0; border-top: 7px solid transparent; border-bottom: 7px solid transparent; border-left: 11px solid #21152b; }
.image-play::after { position: absolute; left: 15px; top: 12px; }
.game-card .body { padding: 23px 25px 28px; }
.card-category { color: #ba9edc; font-size: .6875rem; letter-spacing: .12em; font-weight: 750; }
.game-card h3 { font: italic 2rem/1.1 var(--display); margin: 9px 0 10px; }
.game-card h3 a { color: white; text-decoration: none; }
.game-card p { font-size: .9375rem; color: #c8bddb; margin: 0 0 22px; max-width: 440px; }
.card-bottom { display: flex; gap: 10px; align-items: center; justify-content: space-between; }
.card-bottom .btn { font-size: .875rem; padding-inline: 18px; }
.card-mode { font: 1rem var(--display); color: #baa5cf; white-space: nowrap; }
.selection-disclaimer { font-size: .8125rem; color: #ad9ec4; margin-top: 24px; max-width: 900px; }
.info-content { margin-top: 54px; border-top: 1px solid var(--line); padding-top: 4px; }
.info-content > p { max-width: 900px; color: #c3b9d5; }
.verification { margin-top: 32px; border: 1px solid var(--line); background: #1b142a; border-radius: 8px; padding: 18px 22px; }
.verification summary { font-size: 1rem; font-weight: 700; cursor: pointer; }
.verification[open] summary { margin-bottom: 20px; }
.crumbs { font-size: .8125rem; color: #a999c1; margin: 0 0 26px; }
.crumbs a { color: #c3b2df; }
.game-heading { display: flex; gap: 20px; justify-content: space-between; align-items: end; }
.game-heading .eyebrow { margin-bottom: 8px; }
.game-heading h1 { margin: 0; }
.text-link { color: #e9dcff; font-weight: 700; font-size: .875rem; padding-bottom: 4px; white-space: nowrap; }
.game-lede { font-size: 1rem; margin-top: 16px; }
.game-shell { margin: 26px 0 32px; padding: 9px 9px 0; background: #281b40; border: 1px solid #8758bd; border-top: 4px solid #aa7be8; border-radius: 12px; box-shadow: 0 8px 0 #07050e, 0 22px 60px #0004; }
.game-frame { position: relative; aspect-ratio: 920 / 550; background: #080510; border-radius: 5px; overflow: hidden; }
.game-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.game-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 24px; isolation: isolate; }
.game-cover::after { content: ''; z-index: -1; position: absolute; inset: 0; background: linear-gradient(#140a3070, #160827b8); }
.game-cover img { position: absolute; z-index: -2; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.game-cover .btn { position: relative; font-size: 1.125rem; padding: 19px 32px; box-shadow: 0 6px 0 #9c6820, 0 0 0 7px #160f2b70; }
.game-cover .hint { color: #eee5ff; font-size: .8125rem; background: #10091ec9; padding: 5px 12px; border-radius: 4px; max-width: 90%; text-align: center; }
.game-toolbar { display: flex; justify-content: end; align-items: center; gap: 10px; padding: 14px 12px 10px; }
.toolbar-label { margin-right: auto; font: italic 1rem var(--display); letter-spacing: .07em; color: #c3a7e6; }
.game-status { font-size: .8125rem; color: #c0aed6; margin: 0; padding: 5px 12px 16px; min-height: 40px; }
.game-shell:fullscreen { border: 0; border-radius: 0; display: flex; flex-direction: column; padding: 0; background: #080510; }
.game-shell:fullscreen .game-frame { flex: 1; min-height: 0; width: 100%; aspect-ratio: auto; }
.game-shell:fullscreen .game-status { padding-bottom: 8px; }
.game-shell:fullscreen .game-toolbar { padding-block: 8px; }
.play-notes { border-left: 3px solid #8c56cc; padding: 6px 22px; margin: 44px 0; }
.play-notes .eyebrow { margin-bottom: 8px; }
.version-intro { color: var(--muted); font-size: .9375rem; max-width: 920px; }
.table-scroll { overflow-x: auto; max-width: 100%; margin-block: 18px; border: 1px solid var(--line); border-radius: 7px; }
.table-scroll:focus-visible { outline-offset: 3px; }
table { border-collapse: collapse; width: 100%; background: #1b152b; }
th, td { padding: 14px 18px; text-align: left; font-size: .9375rem; vertical-align: top; border-bottom: 1px solid #3b2c50; }
th { background: #39264e; color: #eee2ff; font-size: .8125rem; letter-spacing: .025em; }
tr:last-child td { border-bottom: 0; }
td { color: #d2c8e3; }
th:not(:last-child), td:not(:last-child) { border-right: 1px solid #3b2c50; }
.note { background: #392c204d; border-left: 3px solid var(--accent); padding: 16px 20px; color: #e7d6ba; font-size: .875rem; margin: 22px 0; }
.controls-image { display: block; width: min(100%, 850px); border: 1px solid #69438c; border-radius: 8px; margin: 26px auto; }
.source-box { border-top: 1px solid var(--line); padding-top: 18px; margin-top: 42px; font-size: .8125rem; color: #ad9fc3; }
.prose-page { max-width: 940px; min-height: 65vh; }
.prose-page > p, .prose-page li { color: #c8bed9; }
li { margin-bottom: 9px; }
footer.site { border-top: 1px solid var(--line); background: #0c0816; color: #9c8cae; font-size: .8125rem; }
footer.site .wrap { padding-block: 28px 32px; }
footer.site nav { display: flex; gap: 26px; margin-bottom: 12px; }
footer.site a { color: #d0bfdc; font-size: .875rem; }
footer.site p { max-width: 800px; }
@media (min-width: 1600px) { .wrap { width: min(1280px, 100%); } }
@media (max-width: 900px) {
  header.site .wrap { flex-wrap: wrap; gap: 18px; padding-block: 20px; }
  nav.site { margin-left: auto; }
  nav.site a { padding-inline: 10px; }
  .home-hero { grid-template-columns: 1.2fr .8fr; min-height: 390px; }
  .hero-art { transform: scale(.8); transform-origin: center; margin-left: -35px; }
  .card-bottom { align-items: start; }.card-mode { display: none; }
  .section-note { max-width: 190px; }
}
@media (max-width: 640px) {
  .wrap { padding-inline: 20px; }
  .prototype-banner { font-size: .75rem; }
  header.site .wrap { min-height: auto; gap: 20px; padding-block: 18px 12px; }
  .brand-type { font-size: 1.3rem; }.brand-type > span { font-size: .95rem; }
  .ball-mark { width: 38px; height: 38px; }
  nav.site { width: 100%; margin: 0; justify-content: space-between; gap: 2px; }
  nav.site a { font-size: .8125rem; padding: 9px 6px; }
  main { padding-block: 26px 50px; }
  .home-hero { display: block; min-height: 0; padding: 12px 0 38px; }
  .home-hero .eyebrow { font-size: .6875rem; letter-spacing: .09em; }
  .home-hero h1 { font-size: clamp(3.8rem, 16vw, 5.6rem); position: relative; z-index: 1; }
  .hero-art { display: none; }
  .hero-tagline { margin-top: 24px; font-size: 1.25rem; }
  .hero-actions { gap: 18px; }.hero-actions .btn { padding-inline: 18px; }
  .desktop-note { font-size: .75rem; }
  .section-heading { display: block; margin-bottom: 20px; }
  .section-heading h2 { font-size: 2rem; }.section-note { display: block; max-width: none; margin-top: 10px; }
  .card-grid { grid-template-columns: 1fr; gap: 28px; }
  .card-image { aspect-ratio: 1.8; }
  .game-card .body { padding: 22px; }.card-mode { display: block; }
  .game-card h3 { font-size: 1.9rem; }
  .info-content { margin-top: 38px; }
  .game-heading { display: block; }.game-heading h1 { font-size: clamp(2.35rem, 9vw, 3.5rem); }
  .game-heading .text-link { display: inline-block; margin-top: 18px; }
  .game-heading .eyebrow { font-size: .6875rem; }
  .game-shell { padding: 5px 5px 0; margin-top: 22px; }
  .game-frame { aspect-ratio: 4/3; }
  .game-cover { gap: 18px; }.game-cover .btn { font-size: .9375rem; padding: 15px 20px; }
  .game-cover .hint { font-size: .75rem; max-width: 90%; }
  .game-toolbar { padding: 12px 4px 9px; }.toolbar-label { font-size: .75rem; }
  .btn.secondary { min-height: 40px; padding-inline: 12px; font-size: .8125rem; }
  .game-status { padding-inline: 6px; font-size: .75rem; }
  h2 { font-size: 1.75rem; margin-top: 36px; }
  .play-notes { padding-inline: 16px; margin: 34px 0; }
  th, td { padding: 12px; min-width: 110px; font-size: .875rem; }
  .verification { padding: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
@media (max-width: 640px) {
  .nav-prefix { display: none; }
  nav.site { justify-content: flex-start; gap: 8px; }
  nav.site a { padding-inline: 12px; white-space: nowrap; }
}
/* Keyword content extends the existing arcade system. */
.section-nav { display: flex; flex-wrap: wrap; gap: 10px; padding: 16px 0; margin: 20px 0; border-block: 1px solid var(--line); }
.section-nav a { padding: 6px 10px; background: #302044; border-radius: 4px; font-size: .875rem; color: #eadcff; text-decoration: none; }
.section-nav a:hover { background: #493060; }
main section[id], main h2[id] { scroll-margin-top: 24px; }
main > section:not(.home-hero):not(.game-selection):not(.play-notes) > p { max-width: 940px; }
kbd { display: inline-block; padding: 0 6px; min-width: 26px; color: #fff; border: 1px solid #7a6498; border-bottom-width: 3px; border-radius: 4px; background: #302441; font: 700 .875rem/1.6 ui-monospace, monospace; text-align: center; }
.faq-list { margin-block: 22px; border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); }
.faq-list summary { padding: 20px 12px; color: #f0e5ff; font-weight: 700; cursor: pointer; }
.faq-list details[open] { background: #251931; }
.faq-list details > div { padding: 0 22px 22px; max-width: 940px; color: #c9bbdb; }
.home-support, .hub-grid, .help-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-top: 34px; }
.home-support > a, .help-choices > a { display: flex; flex-direction: column; gap: 8px; border: 1px solid #5c3b7b; border-radius: 8px; padding: 24px; background: #261a39; text-decoration: none; color: #f4ecff; }
.home-support > a:hover, .help-choices > a:hover { border-color: #ae77e9; background: #302044; }
.home-support .eyebrow { margin: 0; }.home-support strong { font: italic 1.75rem/1.1 var(--display); }
.home-support a > span:last-child, .help-choices a > span { color: var(--muted); font-size: .875rem; }
.content-hub { max-width: 1120px; }.content-hub > .lede { max-width: 850px; }
.hub-card { min-width: 0; background: #251a36; border: 1px solid #624180; border-radius: 8px; overflow: hidden; }
.hub-card img { width: 100%; height: auto; aspect-ratio: 1.9; object-fit: cover; display: block; }
.hub-card > div { padding: 24px; }.hub-card h2 { font-size: 1.8rem; margin: 0 0 14px; }.hub-card h2 a { color: white; }
.hub-card p { color: var(--muted); font-size: .9375rem; margin-bottom: 24px; }
header.site nav.site { min-width: 0; }.site .brand { min-width: max-content; }
@media (max-width: 1100px) { header.site .wrap { flex-wrap: wrap; padding-block: 16px; } nav.site { margin-left: 0; } }
@media (max-width: 640px) {
  nav.site { overflow-x: auto; max-width: 100%; padding-bottom: 7px; flex-wrap: nowrap; scrollbar-width: thin; }
  nav.site a { flex-shrink: 0; }.nav-prefix { display: none; }
  .home-support, .hub-grid, .help-choices { grid-template-columns: 1fr; }
  .section-nav { gap: 8px; }.section-nav a { font-size: .8125rem; }
  .content-hub h1 { overflow-wrap: anywhere; }
  .help-choices a, .home-support a { padding: 22px; }
}
