/* Artwork coordinates refer to the shared 4344 × 1448 canvas. */
body { overflow-x: hidden; }
.site-shell { max-width: none; padding: 0; }
.masthead { height: 76px; padding: 0 32px; background: #111222; border-bottom: 3px solid #3a3047; position: relative; z-index: 20; }
.masthead nav { gap: 27px; }
.masthead nav a { font-size: 11px; }
.site-shell > main { min-height: calc(100svh - 76px); }
.site-shell > footer { padding: 0 32px; }
.home-route footer { display: none; }
.notice { margin: 0; position: relative; z-index: 30; }
.section-block { width: min(1180px, calc(100% - 48px)); margin: 56px auto 90px; }
.page-heading { margin: 0 0 26px; padding: 22px 0 0; }
.page-heading h1 { font-size: clamp(52px, 8vw, 92px); line-height: .93; margin: 10px 0 16px; }
.page-heading > p:last-child { max-width: 680px; color: #cac8d4; font-size: 15px; }

.arcade-section { height: calc(100svh - 76px); min-height: 510px; background: #08091a; }
.arcade-stage { height: 100%; position: relative; overflow: hidden; }
.arcade-viewport { width: 100%; height: 100%; overflow-x: auto; overflow-y: hidden; scrollbar-color: #ca8669 #161324; scrollbar-width: thin; touch-action: pan-x; outline: none; cursor: grab; }
.arcade-viewport:active { cursor: grabbing; }
.arcade-viewport:focus-visible { outline: 3px solid #ffd17b; outline-offset: -3px; }
.arcade-track { display: flex; width: max-content; height: 100%; }
.arcade-world { position: relative; height: 100%; width: 300svh; aspect-ratio: 3 / 1; flex: none; overflow: hidden; user-select: none; }
.arcade-endcap { flex: 0 0 clamp(260px, 24vw, 640px); height: 100%; background: linear-gradient(90deg, #190f26, #08091a); }
.art-background, .art-foreground { position: absolute; inset: 0; width: 100%; height: 100%; display: block; pointer-events: none; user-select: none; }
.art-background { z-index: 0; will-change: transform; }
.art-foreground { z-index: 1; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

.art-hotspot { position: absolute; z-index: 2; display: block; padding: 0; border: 3px solid transparent; background: transparent; color: #ffe2ad; cursor: pointer; text-decoration: none; box-sizing: border-box; border-radius: 12px; transition: border-color .16s, box-shadow .16s, background-color .16s, filter .16s; }
.art-hotspot:hover, .art-hotspot:focus-visible { border-color: #ffd27b; background: #ffd27b18; box-shadow: 0 0 0 4px #1e1848bb, 0 0 27px 9px #ffc267a8, inset 0 0 22px #ffd17b63; outline: none; }
.art-hotspot::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 5px); width: max-content; max-width: 250px; padding: 8px 11px; border: 2px solid #f8bd74; background: #141529ed; box-shadow: 4px 4px 0 #09091a; color: #ffe2ac; font: 900 12px/1.2 monospace; letter-spacing: .04em; text-align: center; opacity: 0; pointer-events: none; transition: opacity .16s, transform .16s; }
.art-hotspot:hover::after, .art-hotspot:focus-visible::after { opacity: 1; transform: translate(-50%, 0); }
.hotspot-tokens::after { left: 0; transform: translate(0, 5px); }
.hotspot-tokens:hover::after, .hotspot-tokens:focus-visible::after { transform: translate(0, 0); }
.hotspot-tickets::after { left: auto; right: 0; transform: translate(0, 5px); }
.hotspot-tickets:hover::after, .hotspot-tickets:focus-visible::after { transform: translate(0, 0); }
.hotspot-tokens { left: 0.1%; top: 49.6%; width: 4.1%; height: 16.6%; }
.hotspot-defender { left: 31.7%; top: 37.5%; width: 10.7%; height: 45.5%; }
.hotspot-karts { left: 42.5%; top: 37.5%; width: 10.7%; height: 45.5%; }
.hotspot-jam { left: 57.1%; top: 41.5%; width: 12.1%; height: 38.7%; }
.hotspot-elevator-up { left: 81.9%; top: 39.8%; width: 2.8%; height: 8.1%; border-radius: 18px; }
.hotspot-elevator-down { left: 81.9%; top: 59.1%; width: 2.8%; height: 8.1%; border-radius: 18px; }
.hotspot-tickets { left: 89.1%; top: 30%; width: 10.7%; height: 49.5%; }
.karts-ribbon { position: absolute; top: 30%; left: 11%; right: 11%; padding: 8px 2px; color: #fff2c9; background: #5033a8e8; border: 3px solid #ffa969; box-shadow: 3px 4px 0 #121329, 0 0 16px #f5aa65a3; font: 900 clamp(10px, 1.25vw, 20px)/1 monospace; letter-spacing: .06em; text-align: center; transform: rotate(-5deg); pointer-events: none; }

.scene-hud { position: absolute; top: 16px; right: 20px; z-index: 4; display: flex; align-items: stretch; background: #141329e8; border: 2px solid #e1a466; box-shadow: 5px 5px 0 #0b0a19af; }
.hud-credit { min-width: 200px; padding: 9px 14px; }
.hud-label { display: block; color: #ffcc85; font: 900 10px monospace; letter-spacing: .12em; }
.hud-credit div { display: flex; align-items: center; gap: 9px; }
.hud-credit strong { color: #ffdb91; font: 900 31px/1 monospace; }
.hud-credit div span { max-width: 175px; color: #e0d4d6; font-size: 10px; line-height: 1.2; }
.hud-earn { display: flex; align-items: center; padding: 0 13px; border-left: 2px solid #e1a466; color: #ffdb91; font: 900 10px monospace; letter-spacing: .06em; }
.hud-earn:hover { background: #59425e; }
.scene-controls { position: absolute; left: 20px; right: 20px; bottom: 19px; z-index: 4; display: flex; align-items: end; justify-content: space-between; pointer-events: none; }
.scene-position, .scene-arrows { pointer-events: auto; display: flex; align-items: center; gap: 10px; padding: 8px 10px; border: 2px solid #b98169; background: #141329e8; color: #f6ce93; font: 900 10px monospace; letter-spacing: .06em; }
.scene-progress { width: 130px; height: 7px; border: 1px solid #ba866c; background: #443251; }
.scene-progress span { display: block; height: 100%; width: 0; background: #ffd18b; }
.scene-arrows { gap: 0; padding: 0; }
.scene-arrows button { width: 48px; height: 44px; border: 0; background: transparent; color: #ffd18b; font: 900 25px monospace; cursor: pointer; }
.scene-arrows button + button { border-left: 2px solid #b98169; }
.scene-arrows button:hover, .scene-arrows button:focus-visible { background: #69516e; }
.scene-arrows button:disabled { opacity: .35; cursor: default; }
.scene-toast { position: absolute; left: 50%; bottom: 84px; z-index: 5; transform: translateX(-50%); max-width: min(90vw, 390px); padding: 13px 18px; border: 2px solid #f3b579; background: #17162fe8; box-shadow: 5px 5px 0 #0b0a19; color: #ffe0ab; font: 900 13px/1.4 monospace; text-align: center; }

.developer-grid, .jam-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.developer-grid article, .jam-grid article { min-height: 180px; padding: 22px; border: 1px solid #63536f; background: #202136; }
.developer-grid h2, .jam-grid h2 { margin: 10px 0 8px; font-size: 26px; }
.developer-grid p, .jam-grid p { margin: 0; color: #c9c5d4; font-size: 13px; }
.developer-terminal { margin-top: 16px; border: 1px solid #6d5b69; background: #111827; box-shadow: 7px 7px 0 #0c0e19; }
.terminal-heading { display: flex; justify-content: space-between; gap: 20px; padding: 12px 16px; border-bottom: 1px solid #75616b; background: #393149; color: #eec18b; font: 900 11px monospace; letter-spacing: .08em; }
.terminal-heading span:last-child { color: #bfb6c5; }
.terminal-examples { display: grid; grid-template-columns: 1fr 1fr; }
.terminal-examples > div { min-width: 0; padding: 20px; }
.terminal-examples > div + div { border-left: 1px solid #51495c; }
.terminal-examples strong { color: #ffc57c; font: 900 12px monospace; }
.terminal-examples pre { margin: 15px 0 0; overflow: auto; color: #c3e7e1; font: 12px/1.7 monospace; }
.developer-terminal > p { margin: 0; padding: 11px 20px; border-top: 1px solid #51495c; color: #bdb9c9; font-size: 12px; }
.developer-note, .jam-next { display: flex; align-items: center; gap: 20px; margin-top: 25px; padding: 24px; border: 1px solid #b37957; background: #30243d; }
.developer-note strong, .jam-next strong { color: #ffd191; font: 900 21px monospace; }
.developer-note span, .jam-next p { flex: 1; color: #d3c7d1; font-size: 13px; }
.developer-note .button { margin-left: auto; }
.jam-hero { padding: 44px 44px 42px; border: 1px solid #995c70; background: radial-gradient(circle at 80% 20%, #75356a, transparent 35%), linear-gradient(135deg, #352142, #15182b); }
.jam-hero h1 { margin: 10px 0 16px; font-size: clamp(62px, 10vw, 120px); line-height: .9; }
.jam-hero > p:not(.section-kicker) { max-width: 780px; color: #e0cfda; font-size: 17px; line-height: 1.6; }
.jam-status { display: inline-block; margin-top: 12px; padding: 9px 12px; border: 1px solid #e5ad76; color: #ffd390; font: 900 11px monospace; letter-spacing: .09em; }
.jam-grid { margin-top: 16px; }
.jam-next { flex-wrap: wrap; }
.jam-next div { flex: 1 1 300px; }
.jam-next p { margin: 6px 0 0; }

@media (max-width: 850px) {
  .arcade-endcap { flex-basis: 18vw; }
  .masthead { padding: 0 16px; gap: 16px; }
  .masthead nav { gap: 12px; }
  .masthead nav a { font-size: 9px; }
  .masthead .brand { font-size: 24px; }
  .developer-grid, .jam-grid, .terminal-examples { grid-template-columns: 1fr; }
  .terminal-examples > div + div { border-left: 0; border-top: 1px solid #51495c; }
  .developer-note { align-items: start; flex-direction: column; }
  .developer-note .button { margin-left: 0; }
  .hud-credit { min-width: 145px; }
  .hud-credit div span { max-width: 100px; }
}
@media (max-width: 600px) {
  .masthead { height: auto; min-height: 80px; padding: 13px 14px; gap: 10px; }
  .masthead .brand { font-size: 21px; }
  .masthead nav { order: 3; width: 100%; justify-content: space-between; margin: 0; }
  .masthead nav a { font-size: 9px; }
  .account-area { margin-left: auto; }
  .arcade-section { height: calc(100svh - 112px); min-height: 500px; }
  .scene-hud { top: 8px; right: 8px; }
  .hud-credit { min-width: 126px; padding: 6px 9px; }
  .hud-credit strong { font-size: 25px; }
  .hud-credit div span { max-width: 80px; font-size: 8px; }
  .hud-earn { padding: 0 8px; font-size: 8px; }
  .scene-controls { left: 8px; right: 8px; bottom: 11px; }
  .scene-position { gap: 5px; padding: 6px; font-size: 8px; }
  .scene-progress { width: 63px; }
  .scene-arrows button { width: 37px; height: 38px; font-size: 20px; }
  .section-block { width: calc(100% - 30px); margin: 32px auto 60px; }
  .balance-banner { display: block; }
  .balance-banner > div:last-child { margin-top: 15px; }
  .developer-note .button { width: 100%; }
  .jam-hero { padding: 30px 22px; }
  .jam-next .button { width: 100%; }
  .karts-ribbon { font-size: 12px; padding: 4px 0; border-width: 2px; }
}
@media (prefers-reduced-motion: reduce) {
  .art-hotspot, .art-hotspot::after { transition: none; }
}
