:root {
  --page-top-gap: clamp(24px, 3.2vw, 40px);
  color-scheme: light;
  --paper: #f2f0e8;
  --panel: #fbfaf4;
  --ink: #171914;
  --muted: #73766d;
  --line: rgba(23, 25, 20, .2);
  --fine: rgba(23, 25, 20, .08);
  --orange: #ff5636;
  --brand: #3459d9;
  --shadow: 0 24px 65px rgba(31, 32, 25, .08);
  --sans: "Segoe UI Variable Text", "Aptos", "PingFang SC", "Microsoft YaHei", sans-serif;
  --display: "Segoe UI Variable Display", "Aptos Display", "PingFang SC", "Microsoft YaHei", sans-serif;
  --mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}
html[data-theme="dark"] {
  color-scheme: dark;
  --paper: #11130f;
  --panel: #191c17;
  --ink: #f3f1e7;
  --muted: #aeb2a7;
  --line: rgba(243, 241, 231, .24);
  --fine: rgba(243, 241, 231, .08);
  --orange: #ff7154;
  --brand: #769cff;
  --shadow: 0 24px 65px rgba(0, 0, 0, .18);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font: 16px/1.5 var(--sans); -webkit-font-smoothing: antialiased; transition: background .25s, color .25s; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 4px; }
.skip-link { position: fixed; z-index: 100; bottom: 12px; left: 50%; padding: 10px 14px; background: var(--ink); color: var(--paper); text-decoration: none; transform: translate(-50%, 160%); }
.skip-link:focus { transform: translate(-50%, 0); }

.site-header, main, .site-footer { width: min(1440px, calc(100% - 40px)); margin-inline: auto; }
.site-header { height: 72px; display: grid; grid-template-columns: 1fr auto auto; gap: 28px; align-items: center; border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; align-items: center; justify-self: start; text-decoration: none; }
.brand-logo, .note-logo { display: block; width: 104px; height: 32px; flex: none; background: url("../logo_b-6605c067721c.png") center / contain no-repeat; }
html[data-theme="dark"] .brand-logo, html[data-theme="dark"] .note-logo { background-image: url("../logo_w-b80f960c0447.png"); }
.site-header nav { display: flex; gap: 24px; justify-self: end; }
.site-header nav a { color: var(--muted); font: .75rem var(--mono); letter-spacing: .04em; text-decoration: none; }
.site-header nav a:hover, .site-header nav a[aria-current="page"] { color: var(--ink); }
.header-controls { display: flex; align-items: center; gap: 7px; }
.icon-button { width: 36px; height: 36px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent; color: inherit; text-decoration: none; cursor: pointer; transition: transform .2s, background-color .2s; }
.icon-button:hover { transform: rotate(-7deg) scale(1.05); background: var(--panel); }
.menu-toggle { display: none; }
.menu-toggle svg path { transform-origin: center; transition: transform .18s ease, opacity .18s ease; }
.site-header[data-menu-open="true"] .menu-toggle svg path:first-child { transform: translateY(5px) rotate(45deg); }
.site-header[data-menu-open="true"] .menu-toggle svg path:nth-child(2) { opacity: 0; }
.site-header[data-menu-open="true"] .menu-toggle svg path:last-child { transform: translateY(-5px) rotate(-45deg); }
.language-button { font: .75rem var(--mono); }
.icon-button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.moon, html[data-theme="dark"] .sun { display: none; }
html[data-theme="dark"] .moon { display: block; }

.eyebrow, .visual-label, .visual-foot, .section-number, .card-type, .art-no, .poster-index, .poster-type, .poster-mark, .stage-counter, .play-meta, .card-source { font-family: var(--mono); font-size: .72rem; letter-spacing: .07em; }
.site-header + main > section:first-child { padding-top: var(--page-top-gap); }
.eyebrow { margin: 0; color: var(--muted); }
.signal-dot { display: inline-block; width: 7px; height: 7px; margin: 0 8px 1px 1px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 5px color-mix(in srgb, var(--orange) 15%, transparent); }
.intro { display: grid; grid-template-columns: minmax(0, 1.14fr) minmax(360px, .86fr); gap: clamp(45px, 7vw, 115px); align-items: center; padding: clamp(55px, 7vw, 100px) 4px clamp(48px, 6vw, 84px); }
.intro-main h1 { margin: 24px 0 23px; font: 680 clamp(2.3rem, 3.8vw, 3.65rem)/1.22 var(--display); letter-spacing: -.05em; }
.intro-description { max-width: 560px; margin: 0; color: var(--muted); font-size: clamp(1rem, 1.25vw, 1.13rem); line-height: 1.8; }
.network-tip { display: flex; gap: 12px; max-width: 560px; margin: 22px 0 0; padding: 12px 15px; border-left: 2px solid var(--orange); background: color-mix(in srgb, var(--orange) 7%, var(--paper)); color: var(--muted); font-size: .82rem; line-height: 1.65; }.network-tip > span:first-child { color: var(--orange); font-size: 1rem; font-weight: 700; }
.intro-link { display: inline-flex; align-items: center; gap: 18px; margin-top: 36px; padding: 13px 18px; border: 1px solid var(--line); border-radius: 5px; font-weight: 650; text-decoration: none; transition: border-color .2s, gap .2s; }
.intro-link:hover { gap: 24px; border-color: var(--orange); color: var(--orange); }
.intro-visual { position: relative; min-height: 355px; overflow: hidden; border: 1px solid var(--line); border-radius: 14px; background: #e3e9f1; }
html[data-theme="dark"] .intro-visual { background: #232b33; }
.intro-visual::before { content: ''; position: absolute; inset: 0; background-image: radial-gradient(rgba(58,84,129,.17) 1px, transparent 1px); background-size: 20px 20px; }
.visual-label, .visual-foot { position: absolute; z-index: 3; left: 25px; color: #42536b; font-weight: 600; }
html[data-theme="dark"] .visual-label, html[data-theme="dark"] .visual-foot { color: #c1cad2; }
.visual-label { top: 23px; }.visual-foot { bottom: 20px; }
.intro-visual strong { position: absolute; z-index: 2; right: 38px; bottom: 20px; color: #284c88; font: 730 clamp(6rem, 10vw, 10rem)/1 var(--display); letter-spacing: -.08em; opacity: .9; }
html[data-theme="dark"] .intro-visual strong { color: #93abda; }
.visual-orbit { position: absolute; border: 1px solid rgba(52,89,217,.45); border-radius: 50%; }
.orbit-one { width: 280px; height: 280px; top: -75px; right: -45px; }.orbit-two { width: 190px; height: 190px; top: 85px; left: 35px; border-color: rgba(255,86,54,.5); }.orbit-three { width: 75px; height: 75px; top: 146px; left: 91px; background: var(--orange); border: 0; box-shadow: 0 0 0 22px rgba(255,86,54,.1); }

.collection { padding-bottom: clamp(90px, 10vw, 150px); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding: 0 4px 26px; border-top: 1px solid var(--line); padding-top: 25px; }
.section-heading h2 { margin: 11px 0 0; font: 660 clamp(1.55rem, 2.3vw, 2.2rem)/1.3 var(--display); letter-spacing: -.035em; }
.section-number { color: var(--muted); white-space: nowrap; }
.section-number span[aria-hidden] { margin-left: 12px; color: var(--orange); font: 1.2rem var(--sans); }
.game-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.game-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); transition: transform .2s, border-color .2s, box-shadow .2s; }
.game-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.game-card.is-active { border-color: var(--orange); }
.card-art { position: relative; height: 150px; overflow: hidden; isolation: isolate; }
.art-no { position: absolute; z-index: 5; top: 14px; left: 15px; color: rgba(255,255,255,.9); font-weight: 650; }
.art-pelican { background: linear-gradient(145deg, #f3c77a, #b4d7bb 72%); }
.art-pelican::after { content: ''; position: absolute; inset: 65% 0 0; background: #6a9d9a; transform: skewY(-6deg) scale(1.1); }
.art-sun { position: absolute; width: 88px; height: 88px; top: 22px; right: 12%; border-radius: 50%; background: #fff2bf; box-shadow: 0 0 0 24px rgba(255,241,190,.2); }
.art-wheel { position: absolute; z-index: 2; bottom: 17%; width: 56px; height: 56px; border: 7px solid #3f5758; border-radius: 50%; box-shadow: inset 0 0 0 3px rgba(255,255,255,.55); }
.wheel-one { left: 22%; }.wheel-two { left: 58%; }
.art-line { position: absolute; z-index: 3; bottom: 32%; left: 31%; width: 36%; height: 5px; background: #e76945; transform: rotate(-12deg); box-shadow: 0 -25px 0 -1px #e76945; }
.art-ship { background: linear-gradient(150deg, #748dad, #283f63); }
.art-ship::before { content: ''; position: absolute; inset: 0; opacity: .3; background-image: linear-gradient(rgba(255,255,255,.2) 1px,transparent 1px), linear-gradient(90deg,rgba(255,255,255,.2) 1px,transparent 1px); background-size: 26px 26px; transform: perspective(280px) rotateX(30deg) scale(1.4); }
.art-container { position: absolute; width: 42%; height: 31%; border: 3px solid rgba(248,248,231,.65); background: #d46c4e; box-shadow: 10px 11px 0 rgba(19,29,49,.3); transform: skewY(-9deg); }
.container-one { left: 10%; top: 31%; }.container-two { right: 10%; top: 22%; background: #e4ba70; }.container-three { right: 20%; bottom: 10%; background: #597e9b; }
.art-target { position: absolute; z-index: 3; top: 41%; left: 46%; width: 43px; height: 43px; border: 2px solid #fff1cf; border-radius: 50%; box-shadow: 0 0 0 13px rgba(255,241,207,.12); }
.art-target::before, .art-target::after { content: ''; position: absolute; background: #fff1cf; }.art-target::before { width: 2px; height: 65px; left: 19px; top: -13px; }.art-target::after { height: 2px; width: 65px; left: -13px; top: 19px; }
.art-racing { background: linear-gradient(135deg, #625383, #252942); }
.art-racing::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 80% 20%, rgba(243,143,135,.4), transparent 32%); }
.art-road { position: absolute; left: 18%; right: 18%; bottom: -33%; height: 125%; background: #34384a; clip-path: polygon(39% 0,61% 0,100% 100%,0 100%); }
.art-lane { position: absolute; z-index: 2; top: 15%; width: 4px; height: 100%; background: repeating-linear-gradient(to bottom, #f4d9aa 0 22px, transparent 22px 42px); transform-origin: top; }.lane-one { left: 44%; transform: rotate(14deg); }.lane-two { right: 44%; transform: rotate(-14deg); }
.art-car { position: absolute; z-index: 3; left: 46%; bottom: 23%; width: 16%; height: 24%; border-radius: 20% 20% 35% 35%; background: #f86a55; box-shadow: 0 8px 0 #9b3145, 0 15px 26px rgba(0,0,0,.45); transform: rotate(-18deg); }
.art-generic { background: linear-gradient(145deg, var(--art-a), var(--art-b)); }
.generic-grid { position: absolute; inset: 0; opacity: .28; background-image: linear-gradient(rgba(255,255,255,.22) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.22) 1px, transparent 1px); background-size: 25px 25px; transform: perspective(300px) rotateX(16deg) scale(1.3); }
.generic-orb { position: absolute; width: 54%; aspect-ratio: 1; top: 12%; right: -8%; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; box-shadow: 0 0 0 24px rgba(255,255,255,.055), 0 0 0 64px rgba(255,255,255,.04); }
.generic-mark { position: absolute; z-index: 2; left: 15px; bottom: 10px; max-width: calc(100% - 30px); overflow: hidden; color: rgba(255,255,255,.85); font: 750 clamp(2.8rem, 4.5vw, 4.5rem)/1 var(--display); letter-spacing: -.08em; text-overflow: clip; white-space: nowrap; }
.card-body { display: flex; flex: 1; flex-direction: column; padding: 15px; }
.card-type { color: var(--muted); font-size: .65rem; font-weight: 600; }
.card-body h3 { margin: 9px 0 8px; font: 670 clamp(1.05rem, 1.25vw, 1.25rem)/1.35 var(--display); letter-spacing: -.025em; }
.card-body p { min-height: 4.5em; margin: 0 0 12px; color: var(--muted); font-size: .78rem; line-height: 1.6; }
.card-source { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; color: var(--muted); font-size: .67rem; letter-spacing: 0; }.card-source a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }.card-source a:hover { color: var(--orange); }
.card-actions { display: grid; margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); }
.no-script-note { padding: 20px; border: 1px solid var(--line); color: var(--muted); }.no-script-note a { color: var(--ink); text-decoration: underline; }
.select-game, .external-game { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 39px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 5px; background: transparent; color: var(--ink); font-size: .78rem; font-weight: 690; text-align: left; text-decoration: none; cursor: pointer; transition: border-color .2s, background-color .2s, color .2s; }
.select-game:hover { border-color: var(--ink); background: var(--paper); }.external-game { border-color: var(--orange); background: color-mix(in srgb, var(--orange) 10%, var(--panel)); }.external-game:hover { color: var(--orange); }
.select-game span:last-child, .external-game span:last-child { flex: none; color: var(--orange); font-size: 1.1rem; transition: transform .2s; }.select-game:hover span:last-child { transform: translate(3px,3px); }.external-game:hover span:last-child { transform: translate(3px,-3px); }

.play-section { padding-bottom: clamp(80px, 8vw, 120px); }
.play-section .section-heading { margin-bottom: 0; }
.game-stage { display: flex; flex-direction: column; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.game-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 64px; padding: 10px 18px; border-bottom: 1px solid var(--line); }
.stage-identity, .stage-controls { display: flex; align-items: center; gap: 14px; min-width: 0; }
.stage-identity strong { overflow: hidden; font-size: .9rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.stage-counter { color: var(--muted); white-space: nowrap; }
.live-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: #00c83a; box-shadow: 0 0 0 5px rgba(0,200,58,.13); }
.close-game-button, .fullscreen-button { display: inline-flex; align-items: center; gap: 8px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 5px; background: transparent; white-space: nowrap; font-size: .82rem; font-weight: 650; cursor: pointer; }
.close-game-button:hover, .fullscreen-button:hover { border-color: var(--orange); color: var(--orange); }
.close-game-button span:last-child { font-size: 1.25rem; line-height: .7; }
.game-screen { position: relative; min-height: 480px; aspect-ratio: 16 / 9; overflow: hidden; background: #dfe6ee; }
.frame-host, .frame-host iframe { position: absolute; inset: 0; width: 100%; height: 100%; }.frame-host iframe { border: 0; background: #151b21; }
.game-poster, .game-loading { position: absolute; inset: 0; z-index: 2; display: flex; flex-direction: column; padding: clamp(24px, 4vw, 52px); }
.game-poster { justify-content: space-between; background: radial-gradient(circle at 75% 35%, rgba(255,255,255,.6), transparent 35%), linear-gradient(135deg, #eee1c3, #b8d6cb); }
.game-poster[data-art="ship"] { background: radial-gradient(circle at 80% 25%, rgba(255,255,255,.35), transparent 35%), linear-gradient(135deg, #c6d7e1, #7892b0); }.game-poster[data-art="racing"] { background: radial-gradient(circle at 80% 25%, rgba(255,255,255,.3), transparent 35%), linear-gradient(135deg, #d9c5db, #9d9abf); }
html[data-theme="dark"] .game-poster { background: linear-gradient(135deg, #333d39, #232c27); }html[data-theme="dark"] .game-poster[data-art="ship"] { background: linear-gradient(135deg, #2b3b50, #202936); }html[data-theme="dark"] .game-poster[data-art="racing"] { background: linear-gradient(135deg, #3b304a, #232232); }
.game-poster:not([data-art="pelican"]):not([data-art="ship"]):not([data-art="racing"]) { background: linear-gradient(135deg, color-mix(in srgb, var(--poster-a) 24%, var(--paper)), color-mix(in srgb, var(--poster-b) 26%, var(--paper))); }
.game-poster::after { content: 'AGA'; position: absolute; right: 1%; bottom: -18%; color: var(--brand); font: 750 clamp(13rem, 30vw, 31rem)/1 var(--display); letter-spacing: -.12em; opacity: .13; pointer-events: none; }
.game-poster > * { position: relative; z-index: 1; }
.poster-index, .poster-mark { color: var(--muted); font-weight: 650; }.poster-mark { align-self: end; }
.poster-copy { margin-top: auto; }.poster-type { color: var(--orange); font-weight: 700; }.poster-copy h3 { margin: 12px 0 11px; font: 680 clamp(2rem, 3.1vw, 3rem)/1.2 var(--display); letter-spacing: -.04em; }.poster-copy p { max-width: 520px; margin: 0 0 22px; color: var(--muted); line-height: 1.7; }
.start-button { display: inline-flex; align-items: center; gap: 28px; padding: 13px 20px; border: 0; border-radius: 5px; background: var(--ink); color: var(--paper); font-weight: 700; cursor: pointer; }.start-button:hover { background: var(--orange); color: #fff; }
.game-loading { justify-content: center; background: var(--panel); }.game-loading > div { width: min(100%, 500px); }.game-loading strong { display: block; margin: 20px 0 10px; font: 650 clamp(1.4rem, 2.3vw, 2.1rem)/1.35 var(--display); }.game-loading p { margin: 0; color: var(--muted); line-height: 1.7; }
.loading-track { display: block; height: 4px; margin-top: 32px; overflow: hidden; border-radius: 4px; background: var(--line); }.loading-track i { display: block; width: 36%; height: 100%; border-radius: inherit; background: var(--orange); animation: load-route 1.8s ease-in-out infinite alternate; }@keyframes load-route { from { transform: translateX(-100%); } to { transform: translateX(280%); } }
.play-meta { display: flex; justify-content: space-between; align-items: start; gap: 20px; margin-top: 15px; padding: 0 3px; color: var(--muted); letter-spacing: 0; line-height: 1.65; }.play-meta p { margin: 0; }.play-meta > span { text-align: right; }
.game-stage:fullscreen { width: 100vw; height: 100dvh; border: 0; border-radius: 0; }.game-stage:fullscreen .game-screen { flex: 1; min-height: 0; aspect-ratio: auto; }

.collection-note { display: grid; grid-template-columns: 82px minmax(0, 1fr); align-items: center; gap: 20px; margin-bottom: 70px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); }
.note-logo { width: 82px; height: 25px; }.collection-note p { margin: 0; color: var(--muted); font-size: .88rem; line-height: 1.7; }.collection-note a { color: var(--ink); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }.collection-note a:hover { color: var(--orange); }
.page-views { display: inline-flex; align-items: baseline; gap: 5px; color: var(--muted); white-space: nowrap; }.page-views strong { color: var(--ink); font-weight: 650; }.counter-credit a { text-decoration: underline; text-underline-offset: 3px; }.footer-identity { display: inline-flex; align-items: baseline; gap: 14px; }.footer-separator { color: var(--muted); }
.site-footer { min-height: 85px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font: .73rem var(--mono); }.site-footer a { color: var(--ink); text-decoration: none; }.site-footer .footer-home { color: inherit; }.site-footer a:hover { color: var(--orange); }

@media (max-width: 1240px) { .game-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 1000px) { .intro { grid-template-columns: minmax(0, 1fr) minmax(280px, .75fr); gap: 36px; }.game-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 780px) {
  .site-header { width: min(100% - 24px, 1440px); height: auto; min-height: 72px; position: relative; z-index: 20; grid-template-columns: 1fr auto; grid-template-rows: 1fr; grid-template-areas: "brand controls"; align-content: center; gap: 8px 12px; padding-block: 10px; }
  .site-header[data-menu-open="true"] { grid-template-rows: auto auto; grid-template-areas: "brand controls" "nav nav"; align-content: start; }
  .brand { grid-area: brand; }.brand-logo { width: 98px; height: 30px; }.header-controls { grid-area: controls; gap: 4px; }.menu-toggle { display: grid; }
  .site-header nav { display: none; grid-area: nav; justify-self: stretch; width: 100%; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); box-shadow: var(--shadow); }
  .site-header[data-menu-open="true"] nav { display: flex; flex-direction: column; gap: 0; }.site-header nav a { padding: 10px 8px; text-align: left; }.site-header nav a + a { border-top: 1px solid var(--fine); }
  .intro { grid-template-columns: 1fr; gap: 35px; padding-top: 60px; }.intro-visual { min-height: 230px; }.intro-visual strong { font-size: 8rem; }.orbit-one { right: 30px; }
  .game-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 620px) {
  main, .site-footer { width: min(100% - 28px, 520px); }.intro { padding: 50px 2px 44px; }.intro-main h1 { font-size: clamp(2rem, 7vw, 2.8rem); }.intro-visual { min-height: 190px; }.visual-foot { display: none; }
  .game-grid { grid-template-columns: 1fr; }.game-card { display: grid; grid-template-columns: minmax(128px, .58fr) minmax(0, 1fr); }.card-art { height: 100%; min-height: 190px; }.card-body { padding: 14px; }.card-body p { min-height: 0; }
  .section-heading { gap: 10px; }.section-number { font-size: .64rem; }.section-number span[aria-hidden] { display: none; }
  .game-toolbar { flex-wrap: wrap; padding: 12px; }.stage-controls { width: 100%; justify-content: flex-end; }.game-screen { min-height: 470px; aspect-ratio: auto; }.game-poster, .game-loading { padding: 25px; }.poster-copy h3 { font-size: 2rem; }.play-meta { display: block; }.play-meta > span { display: block; margin-top: 10px; text-align: left; }
  .collection-note { gap: 12px; padding: 18px; }.site-footer { min-height: 95px; flex-wrap: wrap; gap: 8px 20px; padding: 22px 0; }
}
@media (max-width: 340px) { .site-header { column-gap: 8px; }.brand-logo { width: 92px; height: 28px; }.icon-button { width: 34px; height: 34px; }.stage-counter { display: none; } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
