:root {
  color-scheme: dark;
  --ink: #091521;
  --ink-soft: #102332;
  --ink-lift: #182d3a;
  --paper: #f3eedf;
  --paper-warm: #e7dfcb;
  --cream: #f7f0dc;
  --muted: #91a0a4;
  --mint: #8be2ca;
  --mint-ink: #123c3b;
  --blue: #78cbe7;
  --orange: #ffac67;
  --lilac: #c6b8f0;
  --line-dark: rgba(245, 240, 223, .14);
  --line-light: rgba(14, 34, 44, .16);
  --font: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans CJK SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 28px; }
body {
  margin: 0;
  min-width: 320px;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
button, input, select { font: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--mint); outline-offset: 4px; }
a { color: inherit; text-decoration: none; }
[hidden] { display: none !important; }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

body::before {
  position: fixed;
  z-index: -1;
  inset: 0;
  content: "";
  pointer-events: none;
  background-image: linear-gradient(rgba(206, 226, 218, .018) 1px, transparent 1px), linear-gradient(90deg, rgba(206, 226, 218, .018) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: linear-gradient(to bottom, #000, transparent 88%);
}
.site-shell { width: min(100% - 72px, 1360px); margin: 0 auto; }

.topbar {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  border-bottom: 1px solid var(--line-dark);
}
.brand { display: inline-flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 7px); grid-template-rows: repeat(2, 7px); gap: 2px; transform: rotate(-8deg); }
.brand-mark i { display: block; background: var(--mint); box-shadow: 0 0 10px rgba(139, 226, 202, .15); }
.brand-mark i:nth-child(2) { background: var(--orange); }
.brand-mark i:nth-child(3) { background: #77cce7; }
.brand-mark i:nth-child(4) { background: var(--cream); }
.brand-name { color: var(--cream); font-size: 14px; font-weight: 800; letter-spacing: .035em; white-space: nowrap; }
.brand-name span { margin-left: 4px; color: var(--mint); }
.brand-edition { padding-left: 11px; border-left: 1px solid var(--line-dark); color: #7e9097; font-size: 8px; font-weight: 800; letter-spacing: .17em; white-space: nowrap; }
.main-nav { display: flex; align-items: center; gap: clamp(20px, 3vw, 47px); margin-left: auto; margin-right: auto; }
.nav-link { position: relative; padding: 32px 0 29px; color: #9aa8a9; font-size: 12px; font-weight: 650; transition: color .18s ease; }
.nav-link:hover, .nav-link.is-current { color: var(--cream); }
.nav-link.is-current::after { position: absolute; bottom: 19px; left: 0; width: 13px; height: 2px; content: ""; background: var(--mint); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.utility-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 37px; padding: 0 12px; border: 1px solid var(--line-dark); border-radius: 4px; background: transparent; color: #c9d0c7; font-size: 10px; cursor: pointer; transition: border-color .18s ease, color .18s ease, background .18s ease; }
.utility-button:hover { border-color: rgba(139, 226, 202, .68); color: var(--mint); background: rgba(139, 226, 202, .05); }
.utility-button[aria-pressed="true"] { color: #7e8b8d; }
.sound-glyph { display: inline-flex; align-items: center; gap: 2px; height: 14px; }
.sound-glyph i { width: 2px; display: block; border-radius: 2px; background: var(--mint); }
.sound-glyph i:nth-child(1) { height: 5px; }
.sound-glyph i:nth-child(2) { height: 11px; }
.sound-glyph i:nth-child(3) { height: 7px; }
.sound-button[aria-pressed="true"] .sound-glyph i { height: 2px; background: #7e8b8d; }
.help-mark { display: grid; place-items: center; width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 50%; font-size: 9px; font-weight: 800; }

.hero { position: relative; display: grid; grid-template-columns: minmax(330px, .83fr) minmax(540px, 1.17fr); gap: clamp(36px, 6vw, 92px); align-items: center; padding: 63px 0 67px; border-bottom: 1px solid var(--line-dark); }
.hero-copy { position: relative; min-width: 0; padding: 10px 0 2px 3px; }
.edition-line, .section-kicker { display: flex; align-items: center; gap: 12px; color: #9aaba9; font-size: 9px; font-weight: 720; letter-spacing: .1em; }
.edition-kicker { color: var(--mint); letter-spacing: .2em; }
.edition-rule, .kicker-line { display: inline-block; width: 32px; height: 1px; background: var(--mint); opacity: .72; }
.hero-greeting { margin: 48px 0 12px; color: #aab7b2; font-size: 13px; letter-spacing: .08em; }
.tiny-star { color: var(--orange); font-size: 15px; vertical-align: -1px; margin-right: 4px; }
.hero h1 { margin: 0; color: var(--cream); font-size: clamp(68px, 8.1vw, 119px); font-weight: 850; line-height: .83; letter-spacing: -.075em; }
.hero-title-top, .hero-title-bottom { display: block; }
.hero-title-top { color: var(--mint); letter-spacing: -.09em; }
.hero-title-bottom { margin-top: 15px; }
.title-orange { color: var(--orange); }
.title-dot { color: var(--mint); margin-left: 2px; }
.hero-description { margin: 23px 0 0; max-width: 365px; color: #a9b6b1; font-size: 14px; line-height: 1.85; letter-spacing: .025em; }
.hero-actions { display: flex; align-items: center; gap: 25px; margin-top: 30px; }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 49px; padding: 0 17px; border: 0; border-radius: 3px; font-size: 12px; font-weight: 800; letter-spacing: .02em; cursor: pointer; transition: transform .16s ease, filter .16s ease, background .16s ease; }
.button:hover { transform: translateY(-2px); filter: brightness(1.06); }
.button-primary { background: var(--mint); color: var(--mint-ink); box-shadow: 0 7px 22px rgba(80, 195, 167, .12); }
.button-arrow { display: inline-grid; place-items: center; width: 21px; height: 21px; border: 1px solid rgba(18, 60, 59, .27); border-radius: 50%; font-size: 13px; }
.button-dark { background: var(--ink); color: var(--cream); }
.best-score { display: flex; flex-direction: column; gap: 4px; padding-left: 17px; border-left: 1px solid var(--line-dark); }
.best-score-label { color: #77888d; font-size: 9px; letter-spacing: .12em; }
.best-score strong { color: var(--cream); font: 700 16px/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .11em; }
.hero-footnote { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 27px; color: #778b8f; font-size: 9px; letter-spacing: .04em; }
.pulse-dot, .status-square, .playing-dot, .ribbon-dot { display: inline-block; width: 6px; height: 6px; background: var(--mint); box-shadow: 0 0 0 3px rgba(139, 226, 202, .1); }
.footnote-divider { color: #435860; margin: 0 2px; }
.hero-side-note { position: absolute; left: -34px; bottom: 11px; writing-mode: vertical-rl; transform: rotate(180deg); color: #40535c; font-size: 8px; font-weight: 800; letter-spacing: .25em; }

.showcase { position: relative; padding: 14px 15px 11px; border: 1px solid rgba(192, 219, 205, .22); background: rgba(12, 28, 39, .72); box-shadow: 18px 24px 0 -16px rgba(137, 223, 200, .17); }
.showcase::before, .showcase::after { position: absolute; z-index: 1; width: 14px; height: 14px; content: ""; border-color: var(--mint); border-style: solid; opacity: .85; pointer-events: none; }
.showcase::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; }
.showcase::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.showcase-topline { display: flex; align-items: center; justify-content: space-between; min-height: 25px; padding: 0 4px 10px; color: #83989a; font-size: 8px; font-weight: 800; letter-spacing: .16em; }
.showcase-topline > span:first-child { display: inline-flex; align-items: center; gap: 7px; }
.status-square { width: 5px; height: 5px; box-shadow: none; }
.showcase-stage { position: relative; height: clamp(280px, 28vw, 377px); overflow: hidden; background: linear-gradient(180deg, #112936 0%, #17313b 63%, #142a34 100%); }
.showcase-stage::before { position: absolute; inset: 0; content: ""; background: linear-gradient(90deg, rgba(8, 20, 29, .1) 1px, transparent 1px), linear-gradient(rgba(8, 20, 29, .12) 1px, transparent 1px); background-size: 20px 20px; mask-image: linear-gradient(180deg, transparent, black 48%, black); }
.showcase-stage::after { position: absolute; left: 0; right: 0; bottom: 29px; height: 1px; content: ""; background: rgba(192, 231, 212, .17); box-shadow: 0 7px 0 rgba(192, 231, 212, .055), 0 13px 0 rgba(192, 231, 212, .025); }
.stage-ring { position: absolute; left: 50%; top: 49%; border: 1px solid rgba(135, 222, 201, .14); border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.stage-ring-one { width: min(64%, 375px); aspect-ratio: 1; }
.stage-ring-two { width: min(48%, 285px); aspect-ratio: 1; border-style: dashed; border-color: rgba(255, 172, 103, .18); animation: ring-turn 48s linear infinite; }
.stage-sunburst { position: absolute; left: 50%; top: 43%; width: 183px; aspect-ratio: 1; transform: translate(-50%, -50%); opacity: .32; background: repeating-conic-gradient(from 0deg, rgba(138, 227, 202, .14) 0deg 4deg, transparent 4deg 16deg); mask-image: radial-gradient(circle, black, transparent 70%); }
.stage-crosshair { position: absolute; color: rgba(190, 229, 211, .42); font: 14px/1 ui-monospace, monospace; }
.crosshair-one { left: 11%; top: 21%; }
.crosshair-two { right: 12%; top: 37%; color: rgba(255, 172, 103, .6); }
.stage-note { position: absolute; z-index: 2; display: flex; flex-direction: column; gap: 4px; padding: 7px 9px; border: 1px solid rgba(202, 224, 204, .25); background: rgba(9, 21, 33, .78); transform: rotate(-3deg); }
.stage-note-top { top: 29px; right: 25px; }
.stage-note span { color: #78908e; font: 700 7px/1 ui-monospace, monospace; letter-spacing: .16em; }
.stage-note strong { color: var(--mint); font: 800 11px/1 ui-monospace, monospace; letter-spacing: .04em; }
#showcaseCanvas { position: absolute; z-index: 1; inset: 0; display: block; width: 100%; height: 100%; image-rendering: pixelated; }
.sprite-notice { position: absolute; z-index: 5; top: 50%; left: 50%; max-width: min(82%, 330px); padding: 11px 15px; border: 1px solid rgba(139, 226, 202, .4); background: rgba(8, 20, 29, .9); color: #c6e2d4; font-size: 10px; line-height: 1.6; text-align: center; transform: translate(-50%, -50%); box-shadow: 0 9px 26px rgba(0, 0, 0, .2); }
.sprite-notice[data-state="error"] { border-color: rgba(255, 172, 103, .65); color: #ffcf9d; }
.character-caption { position: absolute; z-index: 3; bottom: 43px; display: flex; align-items: center; gap: 8px; padding: 5px 7px 5px 5px; border: 1px solid rgba(205, 226, 208, .23); background: rgba(8, 20, 29, .84); backdrop-filter: blur(3px); }
.caption-deepseek { left: 16.6667%; transform: translateX(-50%); }
.caption-claude { left: 50%; transform: translateX(-50%); }
.caption-gpt { left: 83.3333%; transform: translateX(-50%); }
.caption-index { display: grid; place-items: center; width: 20px; height: 24px; background: rgba(139, 226, 202, .13); color: var(--mint); font: 800 9px/1 ui-monospace, monospace; }
.caption-claude .caption-index { color: var(--orange); background: rgba(255, 172, 103, .13); }
.caption-gpt .caption-index { color: #cfc5f5; background: rgba(198, 184, 240, .13); }
.character-caption strong, .character-caption small { display: block; white-space: nowrap; }
.character-caption strong { color: #ebedda; font-size: 9px; line-height: 1.3; }
.character-caption small { margin-top: 2px; color: #70858b; font: 700 6px/1 ui-monospace, monospace; letter-spacing: .14em; }
.character-caption > i { width: 3px; height: 22px; margin-left: 2px; background: var(--mint); }
.caption-claude > i { background: var(--orange); }
.caption-gpt > i { background: #c6b8f0; }
.stage-bottomline { position: absolute; z-index: 2; right: 13px; bottom: 9px; left: 13px; display: flex; align-items: center; justify-content: space-between; color: #829895; font: 700 7px/1 ui-monospace, monospace; letter-spacing: .16em; }
.stage-bottomline > span:last-child { color: #c0d4c5; }
.stage-bars { display: flex; gap: 3px; align-items: center; }
.stage-bars i { display: block; width: 9px; height: 3px; background: #39564f; }
.stage-bars i:nth-child(1), .stage-bars i:nth-child(2), .stage-bars i:nth-child(3), .stage-bars i:nth-child(4) { background: var(--mint); }
.stage-bars i:nth-child(5) { background: var(--orange); }
.showcase-caption { display: flex; justify-content: space-between; align-items: center; padding: 12px 2px 0; color: #879896; font-size: 9px; letter-spacing: .05em; }
.showcase-caption span:last-child { color: var(--mint); }
.showcase-caption b { margin-left: 5px; font-size: 12px; font-weight: 500; }

.games-section { padding: 71px 0 82px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 27px; }
.section-kicker { margin: 0 0 13px; color: #819297; font-size: 8px; }
.section-kicker > span:first-child { color: var(--mint); letter-spacing: .18em; }
.kicker-line { width: 23px; }
.section-heading h2, .roster-copy h2 { margin: 0; color: var(--cream); font-size: clamp(32px, 4.4vw, 55px); line-height: 1.04; letter-spacing: -.055em; }
.section-heading h2 em, .roster-copy h2 em { color: var(--mint); font-style: normal; }
.section-aside { margin: 0 2px 5px 0; color: #8fa0a0; font-size: 11px; line-height: 1.75; text-align: right; }
.game-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.game-card { position: relative; overflow: hidden; border: 1px solid rgba(243, 238, 223, .12); background: #f0ead9; color: #14242c; transition: transform .2s ease, box-shadow .2s ease; }
.game-card:hover { transform: translateY(-5px); box-shadow: 0 15px 33px rgba(0, 0, 0, .23); }
.game-art { position: relative; height: 167px; overflow: hidden; isolation: isolate; }
.game-art::before { position: absolute; inset: 0; z-index: -1; content: ""; }
.art-action { background: linear-gradient(140deg, #124257 0%, #2d7280 51%, #95c8ae 100%); }
.art-action::before { background: radial-gradient(circle at 54% 66%, rgba(168, 243, 211, .45), transparent 38%), repeating-linear-gradient(135deg, transparent 0 18px, rgba(219, 246, 214, .08) 18px 19px); }
.art-shop { background: linear-gradient(145deg, #60342c, #b85e3f 52%, #f1a75d); }
.art-shop::before { background: radial-gradient(circle at 52% 42%, rgba(255, 228, 167, .4), transparent 34%), repeating-linear-gradient(45deg, transparent 0 22px, rgba(255, 228, 167, .07) 22px 23px); }
.art-cards { background: linear-gradient(145deg, #252c4b, #464d73 55%, #9b8ca5); }
.art-cards::before { background: radial-gradient(circle at 50% 58%, rgba(213, 210, 251, .34), transparent 37%), repeating-linear-gradient(-45deg, transparent 0 22px, rgba(229, 228, 255, .07) 22px 23px); }
.game-number, .art-sticker { position: absolute; z-index: 3; top: 12px; color: rgba(246, 241, 219, .84); font: 800 8px/1 ui-monospace, monospace; letter-spacing: .16em; }
.game-number { left: 13px; }
.art-sticker { right: 12px; padding: 6px 7px; border: 1px solid rgba(248, 244, 222, .4); border-radius: 99px; font-family: var(--font); font-size: 8px; letter-spacing: .04em; }
.card-sprite { position: absolute; z-index: 2; left: 50%; bottom: 0; width: min(100%, 200px); height: 100%; transform: translateX(-50%); image-rendering: pixelated; filter: drop-shadow(0 6px 0 rgba(12, 22, 29, .12)); }
.art-grid { position: absolute; right: 0; bottom: 0; left: 0; height: 47px; background: linear-gradient(transparent, rgba(5, 23, 31, .25)), repeating-linear-gradient(90deg, transparent 0 21px, rgba(7, 27, 35, .18) 21px 22px); border-top: 1px solid rgba(228, 241, 215, .2); }
.art-spark { position: absolute; color: #d1f8da; font-size: 18px; }
.art-spark-one { top: 45px; left: 22%; }
.art-spark-two { top: 78px; right: 20%; color: #ffdeb6; font-size: 15px; }
.art-label { position: absolute; z-index: 1; right: 21px; bottom: 41px; color: rgba(246, 245, 217, .76); font-size: 15px; font-weight: 900; line-height: 1.12; letter-spacing: .08em; transform: rotate(6deg); }
.shop-sun { position: absolute; top: 36px; left: 53%; width: 112px; height: 112px; border: 1px solid rgba(255, 224, 172, .46); border-radius: 50%; transform: translateX(-50%); box-shadow: 0 0 0 8px rgba(255, 218, 172, .08), 0 0 0 22px rgba(255, 218, 172, .055); }
.shop-orbit { position: absolute; top: 69px; left: 53%; width: 164px; height: 50px; border: 1px solid rgba(255, 234, 199, .28); border-radius: 50%; transform: translateX(-50%) rotate(-22deg); }
.art-label-vertical { right: 18px; bottom: 54px; font: 800 7px/1.55 ui-monospace, monospace; letter-spacing: .12em; text-align: center; transform: rotate(5deg); }
.art-label-vertical b { display: block; font-size: 12px; color: #ffe5bd; }
.card-sigil { position: absolute; top: 43px; left: 27px; color: #eeccff; font-size: 32px; text-shadow: 0 0 16px rgba(240, 223, 255, .43); }
.card-motif { position: absolute; top: 62px; right: 17px; color: rgba(239, 230, 255, .34); font: 800 26px/1 ui-monospace, monospace; letter-spacing: -.14em; transform: rotate(10deg); }
.art-label-stack { right: 18px; bottom: 43px; font: 800 7px/1.4 ui-monospace, monospace; text-align: center; transform: rotate(-7deg); }
.art-label-stack b { color: #f0e1ff; font: 900 19px/1 ui-monospace, monospace; }
.game-card-body { padding: 16px 17px 14px; }
.game-card-meta { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #718186; font-size: 8px; }
.game-type { display: inline-flex; align-items: center; gap: 6px; color: #3c6565; font: 800 7px/1 ui-monospace, monospace; letter-spacing: .08em; }
.game-type i { display: block; width: 5px; height: 5px; background: #42a88f; }
.game-card-shop .game-type { color: #986047; }
.game-card-shop .game-type i { background: #e0794d; }
.game-card-cards .game-type { color: #676284; }
.game-card-cards .game-type i { background: #8d7fc1; }
.game-card h3 { margin: 12px 0 6px; color: #182b32; font-size: 20px; font-weight: 850; letter-spacing: -.04em; }
.game-card-body > p { min-height: 42px; margin: 0; color: #687679; font-size: 10px; line-height: 1.72; }
.game-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 16px; padding-top: 12px; border-top: 1px solid rgba(16, 43, 49, .12); }
.game-credit { display: inline-flex; align-items: center; gap: 7px; color: #738184; font-size: 8px; white-space: nowrap; }
.mini-avatar { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #eff7e4; font: 800 8px/1 ui-monospace, monospace; }
.avatar-deepseek { background: #317a88; }
.avatar-claude { background: #bf6848; }
.avatar-gpt { background: #6c668b; }
.card-play { display: inline-flex; align-items: center; gap: 8px; padding: 7px 8px; border: 0; background: transparent; color: #153c3d; font-size: 9px; font-weight: 850; white-space: nowrap; cursor: pointer; transition: color .18s ease, background .18s ease; }
.card-play:hover { background: rgba(94, 202, 170, .18); color: #126856; }
.card-play span { font-size: 14px; font-weight: 500; }

.roster-section { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(35px, 9vw, 128px); padding: 50px clamp(20px, 5vw, 67px) 54px; overflow: hidden; border: 1px solid rgba(243, 238, 223, .14); background: #102330; }
.roster-section::before { position: absolute; top: -158px; left: 50%; width: 470px; height: 470px; content: ""; border: 1px solid rgba(139, 226, 202, .08); border-radius: 50%; box-shadow: 0 0 0 42px rgba(139, 226, 202, .018), 0 0 0 98px rgba(139, 226, 202, .014); pointer-events: none; }
.roster-copy { position: relative; z-index: 1; max-width: 380px; }
.roster-stamp { display: inline-block; margin-bottom: 18px; color: var(--orange); font: 800 8px/1 ui-monospace, monospace; letter-spacing: .19em; }
.roster-copy h2 { font-size: clamp(32px, 4vw, 49px); }
.roster-copy p { max-width: 325px; margin: 17px 0 19px; color: #9aabaa; font-size: 11px; line-height: 1.9; }
.text-link { display: inline-flex; align-items: center; gap: 11px; color: var(--mint); font-size: 10px; font-weight: 800; }
.text-link span { display: grid; place-items: center; width: 22px; height: 22px; border: 1px solid rgba(139, 226, 202, .38); border-radius: 50%; font-size: 12px; transition: transform .18s ease; }
.text-link:hover span { transform: translate(2px, -2px); }
.roster-stats { position: relative; z-index: 1; align-self: center; display: grid; }
.roster-stat { display: grid; grid-template-columns: 39px 1fr 28px; align-items: center; gap: 15px; min-height: 68px; border-bottom: 1px solid var(--line-dark); }
.roster-stat:first-child { border-top: 1px solid var(--line-dark); }
.roster-number { color: #738687; font: 800 9px/1 ui-monospace, monospace; }
.roster-stat b, .roster-stat small { display: block; }
.roster-stat b { color: var(--cream); font-size: 13px; }
.roster-stat small { margin-top: 5px; color: #819292; font: 700 7px/1 ui-monospace, monospace; letter-spacing: .1em; }
.stat-spark { color: var(--mint); font-size: 18px; text-align: right; }
.roster-claude .stat-spark { color: var(--orange); }
.roster-gpt .stat-spark { color: #c9c1ef; }
.roster-side-note { position: absolute; right: 12px; bottom: 12px; color: #40555e; font: 800 7px/1 ui-monospace, monospace; letter-spacing: .2em; writing-mode: vertical-rl; }

.score-ribbon { display: flex; align-items: center; gap: 30px; min-height: 80px; margin-top: 22px; padding: 0 22px; border: 1px solid rgba(139, 226, 202, .22); background: rgba(139, 226, 202, .055); }
.score-ribbon-label { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; color: var(--mint); font: 800 7px/1 ui-monospace, monospace; letter-spacing: .13em; }
.ribbon-dot { width: 5px; height: 5px; }
.score-ribbon-message { color: #d9dece; font-size: 11px; }
.score-ribbon-message span { margin-left: 8px; color: #819697; font-size: 9px; }
.score-ribbon-score { display: flex; align-items: center; gap: 13px; margin-left: auto; padding-left: 24px; border-left: 1px solid var(--line-dark); }
.score-ribbon-score span { color: #7f9291; font-size: 8px; white-space: nowrap; }
.score-ribbon-score strong { color: var(--cream); font: 800 13px/1 ui-monospace, monospace; letter-spacing: .1em; }

.site-footer { display: flex; align-items: center; gap: 17px; min-height: 93px; color: #71848a; font-size: 8px; }
.footer-brand { display: inline-flex; align-items: center; gap: 8px; color: #b9c4b9; font-size: 9px; font-weight: 800; white-space: nowrap; }
.brand-mark-small { grid-template-columns: repeat(2, 5px); grid-template-rows: repeat(2, 5px); gap: 1px; }
.footer-brand + p { margin: 0; padding-left: 16px; border-left: 1px solid var(--line-dark); white-space: nowrap; }
.footer-links { display: flex; align-items: center; justify-content: flex-end; gap: 8px; margin-left: auto; color: #71848a; white-space: nowrap; }
.footer-links a { color: #9daea8; text-decoration: underline; text-decoration-color: rgba(157, 174, 168, .28); text-underline-offset: 3px; }
.footer-links a:hover { color: var(--mint); }
.footer-sep { margin: 0 5px; color: #42575e; }

.game-view { min-height: 72vh; padding: 21px 0 68px; }
.game-shell-top { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 44px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--line-dark); }
.back-button { display: inline-flex; align-items: center; gap: 9px; padding: 7px 10px 7px 0; border: 0; background: transparent; color: #a9b8b2; font-size: 10px; cursor: pointer; transition: color .18s ease; }
.back-button:hover { color: var(--mint); }
.back-button span { display: grid; place-items: center; width: 23px; height: 23px; border: 1px solid var(--line-dark); border-radius: 50%; color: var(--mint); font-size: 13px; }
.game-shell-title { display: inline-flex; align-items: center; gap: 9px; color: var(--cream); font-size: 11px; font-weight: 800; }
.playing-dot { width: 5px; height: 5px; }
.game-header-center { display: flex; align-items: center; gap: 18px; }
.game-switcher { display: inline-flex; align-items: center; gap: 8px; color: #829297; font-size: 8px; white-space: nowrap; }
.game-switcher select { max-width: 158px; min-height: 29px; padding: 0 22px 0 8px; border: 1px solid rgba(243, 238, 223, .19); border-radius: 3px; appearance: none; background: #102631; color: #dce4d8; font-size: 9px; cursor: pointer; }
.game-switcher select:focus-visible { outline: 2px solid var(--mint); outline-offset: 2px; }
.game-shell-note { color: #70858b; font-size: 8px; }
.game-root { min-height: 440px; }
.game-loading { display: flex; justify-content: center; align-items: center; gap: 11px; min-height: 390px; color: #a3b2ad; font-size: 11px; }
.loading-pixel { width: 9px; height: 9px; background: var(--mint); box-shadow: 8px 0 #4c867e, 16px 0 #31585b; animation: loading-dance .6s steps(2, end) infinite alternate; }
.is-playing .main-nav, .is-playing .site-footer { display: none; }
.modal-open { overflow: hidden; }
.game-error { display: grid; justify-items: center; padding: 86px 20px; text-align: center; }
.error-mark { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 11px; border: 1px solid rgba(255, 172, 103, .6); color: var(--orange); font: 800 20px/1 ui-monospace, monospace; }
.game-error h2 { margin: 0; color: var(--cream); font-size: 24px; }
.game-error p { margin: 9px 0 21px; color: #9aacaa; font-size: 12px; }
.game-error .button { min-height: 42px; }

/* Shared visual language for the independently mounted games. */
.game-root { color: var(--ink); }
.game-panel { border: 1px solid rgba(232, 226, 207, .24); border-radius: 8px; background: var(--paper); color: var(--ink); box-shadow: 0 17px 45px rgba(0, 0, 0, .16); }
.game-panel h1, .game-panel h2, .game-panel h3 { color: #172931; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 38px; padding: 0 13px; border: 1px solid rgba(14, 36, 43, .19); border-radius: 4px; background: #e5dfcf; color: #18343a; font-size: 11px; font-weight: 750; cursor: pointer; transition: transform .14s ease, background .14s ease, border-color .14s ease; }
.btn:hover:not(:disabled) { transform: translateY(-1px); background: #d9e8db; border-color: rgba(37, 118, 98, .42); }
.btn:disabled { opacity: .46; cursor: not-allowed; }
.btn-primary { border-color: #62c7ab; background: #83dfc5; color: #123c3b; }
.btn-primary:hover:not(:disabled) { background: #9aebd3; }
.muted { color: #758486 !important; }
.hud { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; padding: 10px 13px; border: 1px solid rgba(232, 226, 207, .14); border-radius: 6px; background: #102631; color: #dce4d8; }
.stat { display: flex; align-items: center; gap: 6px; padding: 6px 9px; border: 1px solid rgba(26, 50, 58, .13); border-radius: 4px; background: rgba(255, 255, 255, .45); color: #213b40; font-size: 10px; }
.pixel-card { border: 1px solid rgba(17, 43, 49, .19); border-radius: 5px; background: #f7f1e2; color: #20333b; box-shadow: 3px 3px 0 rgba(16, 43, 49, .09); }
.game-root canvas { image-rendering: pixelated; }

.modal-backdrop { position: fixed; z-index: 50; inset: 0; display: grid; place-items: center; padding: 24px; background: rgba(3, 10, 16, .76); backdrop-filter: blur(8px); animation: veil-in .15s ease-out both; }
.help-dialog { position: relative; width: min(100%, 590px); padding: clamp(23px, 5vw, 42px); border: 1px solid rgba(139, 226, 202, .3); background: var(--paper); color: var(--ink); box-shadow: 0 25px 80px rgba(0, 0, 0, .42); animation: dialog-in .18s ease-out both; }
.modal-close { position: absolute; top: 12px; right: 13px; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid rgba(19, 45, 50, .14); background: transparent; color: #647579; font-size: 21px; line-height: 1; cursor: pointer; }
.modal-close:hover { color: #1b4f4b; border-color: #77cdb6; }
.dialog-kicker { color: #3e9b82; font: 800 8px/1 ui-monospace, monospace; letter-spacing: .18em; }
.help-dialog h2 { margin: 13px 0 7px; color: #172b33; font-size: clamp(30px, 5vw, 42px); letter-spacing: -.06em; }
.help-dialog h2 em { color: #439e84; font-style: normal; }
.dialog-intro { margin: 0; color: #687a7c; font-size: 11px; }
.help-rows { display: grid; margin-top: 25px; border-top: 1px solid rgba(20, 49, 55, .15); }
.help-row { display: grid; grid-template-columns: 31px 1fr auto; align-items: start; gap: 12px; padding: 14px 0; border-bottom: 1px solid rgba(20, 49, 55, .15); }
.help-icon { display: grid; place-items: center; width: 28px; height: 28px; background: #dbe8d9; color: #348c75; font-size: 14px; }
.help-row b { display: block; color: #20353b; font-size: 11px; }
.help-row p { margin: 5px 0 0; color: #758486; font-size: 9px; line-height: 1.65; }
.help-tag { padding: 5px 6px; border: 1px solid rgba(20, 49, 55, .14); color: #81908d; font: 700 7px/1 ui-monospace, monospace; letter-spacing: .1em; }
.dialog-foot { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
.dialog-foot > span { color: #84918d; font-size: 8px; }
.dialog-foot .button { min-height: 39px; }
.toast-region { position: fixed; z-index: 60; right: 20px; bottom: 20px; display: grid; gap: 8px; pointer-events: none; }
.toast { padding: 11px 15px; border: 1px solid rgba(139, 226, 202, .35); background: #102a35; color: #e4e9d9; box-shadow: 0 8px 24px rgba(0, 0, 0, .25); font-size: 10px; animation: toast-in .2s ease-out both; }

@keyframes ring-turn { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes veil-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes dialog-in { from { opacity: 0; transform: translateY(8px) scale(.99); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes loading-dance { from { filter: brightness(.65); transform: translateY(0); } to { filter: brightness(1.2); transform: translateY(-2px); } }

@media (min-width: 1500px) {
  .hero { grid-template-columns: minmax(390px, .84fr) minmax(600px, 1.16fr); }
}
@media (max-width: 1050px) {
  .site-shell { width: min(100% - 48px, 900px); }
  .hero { grid-template-columns: minmax(250px, .76fr) minmax(430px, 1.24fr); gap: 31px; padding: 51px 0 56px; }
  .hero h1 { font-size: clamp(64px, 8vw, 91px); }
  .hero-greeting { margin-top: 35px; }
  .showcase-stage { height: 315px; }
  .caption-deepseek { left: 16.6667%; }
  .caption-claude { left: 50%; }
  .caption-gpt { left: 83.3333%; }
  .character-caption { gap: 5px; padding: 4px 5px 4px 4px; }
  .caption-index { width: 17px; height: 21px; }
  .character-caption strong { font-size: 8px; }
  .game-card-bottom { align-items: flex-start; }
  .game-credit { white-space: normal; }
  .card-play { padding: 5px; }
  .game-card-body { padding-right: 13px; padding-left: 13px; }
}
@media (max-width: 760px) {
  .site-shell { width: min(100% - 36px, 640px); }
  .topbar { min-height: 70px; gap: 12px; }
  .brand { gap: 8px; }
  .brand-edition { display: none; }
  .main-nav { gap: 18px; }
  .nav-link { padding: 27px 0 25px; font-size: 10px; }
  .nav-link.is-current::after { bottom: 16px; }
  .utility-button { min-height: 34px; padding: 0 9px; font-size: 9px; }
  .help-button > span:last-child { display: none; }
  .hero { grid-template-columns: 1fr; gap: 39px; padding: 43px 0 51px; }
  .hero-copy { padding-left: 0; }
  .hero-greeting { margin-top: 32px; }
  .hero h1 { font-size: clamp(76px, 18vw, 118px); }
  .hero-description { margin-top: 17px; }
  .hero-actions { margin-top: 22px; }
  .hero-footnote { margin-top: 21px; }
  .hero-side-note { display: none; }
  .showcase { padding: 12px; }
  .showcase-stage { height: clamp(270px, 53vw, 355px); }
  .stage-note-top { top: 20px; right: 15px; }
  .character-caption { bottom: 42px; gap: 6px; padding: 5px; }
  .caption-deepseek { left: 16.6667%; }
  .caption-claude { left: 50%; }
  .caption-gpt { left: 83.3333%; }
  .character-caption > span:nth-child(2) { display: block; }
  .caption-index { width: 18px; height: 23px; }
  .character-caption strong { font-size: 8px; }
  .character-caption small { font-size: 5px; }
  .character-caption > i { width: 2px; height: 20px; }
  .games-section { padding: 53px 0 57px; }
  .section-heading { align-items: start; margin-bottom: 21px; }
  .section-aside { display: none; }
  .section-heading h2 { font-size: clamp(36px, 9vw, 48px); }
  .game-grid { grid-template-columns: 1fr; gap: 13px; }
  .game-card { display: grid; grid-template-columns: minmax(140px, .72fr) minmax(0, 1.28fr); min-height: 182px; }
  .game-art { height: auto; min-height: 182px; }
  .card-sprite { bottom: 0; width: min(100%, 200px); height: 100%; }
  .art-label { right: 10px; bottom: 43px; font-size: 12px; }
  .shop-sun { width: 88px; height: 88px; }
  .shop-orbit { width: 128px; }
  .card-motif { right: 6px; font-size: 20px; }
  .card-sigil { left: 8px; font-size: 25px; }
  .game-card-body { display: flex; flex-direction: column; justify-content: center; padding: 14px 13px; }
  .game-card-meta { font-size: 8px; }
  .game-type { font-size: 6px; }
  .game-card h3 { margin-top: 10px; font-size: 18px; }
  .game-card-body > p { min-height: 0; font-size: 9px; }
  .game-card-bottom { margin-top: 11px; padding-top: 9px; }
  .game-credit { max-width: 62%; font-size: 7px; }
  .mini-avatar { width: 19px; height: 19px; flex: 0 0 19px; }
  .card-play { font-size: 8px; }
  .roster-section { grid-template-columns: 1fr; gap: 24px; padding: 34px 25px 37px; }
  .roster-copy { max-width: none; }
  .roster-copy h2 { font-size: clamp(37px, 9vw, 49px); }
  .roster-copy p { max-width: 390px; }
  .roster-stats { margin-top: 2px; }
  .roster-stat { min-height: 61px; }
  .roster-side-note { writing-mode: initial; right: 12px; bottom: 12px; }
  .score-ribbon { flex-wrap: wrap; gap: 8px 16px; min-height: 0; padding: 17px 15px; }
  .score-ribbon-label { width: 100%; }
  .score-ribbon-message { flex: 1 1 55%; font-size: 10px; }
  .score-ribbon-message span { display: block; margin: 5px 0 0; }
  .score-ribbon-score { gap: 7px; padding-left: 14px; }
  .score-ribbon-score strong { font-size: 11px; }
  .site-footer { flex-wrap: wrap; gap: 8px 14px; min-height: 105px; padding: 20px 0; }
  .footer-brand + p { padding-left: 12px; }
  .footer-links { width: 100%; justify-content: flex-start; flex-wrap: wrap; margin-left: 0; line-height: 1.8; white-space: normal; }
  .game-view { padding-top: 13px; }
  .game-shell-top { gap: 9px; margin-bottom: 12px; }
  .game-shell-note { display: none; }
  .game-header-center { gap: 8px; margin-left: auto; }
  .game-shell-title { margin-left: 0; font-size: 9px; }
  .game-switcher > span { display: none; }
  .game-switcher select { max-width: 105px; padding-left: 6px; font-size: 8px; }
  .back-button { font-size: 9px; }
  .game-root { min-height: 400px; }
}
@media (max-width: 430px) {
  .site-shell { width: calc(100% - 28px); }
  .brand-name { font-size: 12px; }
  .brand-mark { grid-template-columns: repeat(2, 6px); grid-template-rows: repeat(2, 6px); }
  .main-nav { gap: 12px; }
  .nav-link { font-size: 9px; }
  .sound-button { gap: 5px; padding: 0 7px; }
  .sound-button #soundLabel { font-size: 8px; }
  .top-actions { gap: 6px; }
  .hero { padding-top: 35px; gap: 31px; }
  .edition-line { gap: 8px; font-size: 8px; }
  .hero h1 { font-size: 21vw; }
  .hero-actions { gap: 16px; }
  .button { min-height: 44px; padding: 0 13px; font-size: 11px; }
  .best-score { padding-left: 12px; }
  .showcase { padding: 9px; }
  .showcase-stage { height: 263px; }
  .showcase-topline { padding-bottom: 7px; font-size: 7px; }
  .character-caption { bottom: 40px; gap: 4px; padding: 4px; }
  .caption-deepseek { left: 16.6667%; }
  .caption-claude { left: 50%; }
  .caption-gpt { left: 83.3333%; }
  .character-caption strong { font-size: 7px; }
  .character-caption small { font-size: 4px; }
  .caption-index { width: 15px; height: 19px; font-size: 8px; }
  .character-caption > i { display: none; }
  .stage-note { padding: 5px 6px; }
  .stage-note-top { top: 13px; right: 9px; }
  .stage-note strong { font-size: 9px; }
  .showcase-caption { font-size: 8px; }
  .game-card { grid-template-columns: 122px minmax(0, 1fr); min-height: 175px; }
  .game-art { min-height: 175px; }
  .game-number { left: 8px; font-size: 7px; }
  .art-sticker { right: 7px; padding: 5px; font-size: 7px; }
  .card-sprite { width: min(100%, 200px); height: 100%; }
  .art-label { display: none; }
  .game-card-body { padding: 12px 10px; }
  .game-card h3 { font-size: 16px; }
  .game-card-meta > span:last-child { font-size: 7px; white-space: nowrap; }
  .game-type { font-size: 5px; letter-spacing: .03em; }
  .game-card-bottom { gap: 2px; }
  .game-credit { gap: 4px; font-size: 6px; }
  .card-play { gap: 4px; padding: 4px 2px; font-size: 7px; }
  .card-play span { font-size: 11px; }
  .dialog-foot { align-items: flex-start; flex-direction: column; }
  .help-row { grid-template-columns: 28px 1fr; }
  .help-tag { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
