/* Reversi: Starlight Tournament — game page (no external dependencies) */
:root {
  --night: #0a0f2c;
  --night-2: #121a48;
  --night-3: #1b2463;
  --panel: rgba(20, 28, 78, .72);
  --line: rgba(160, 180, 255, .22);
  --ink: #f6f7ff;
  --sub: #c3c9ef;
  --muted: #8f97c8;
  --gold: #ffd45e;
  --pink: #ff8cc6;
  --cyan: #74e3ff;
  --violet: #a58cff;
  --rainbow: linear-gradient(90deg, #ff6fae, #ffb84a 25%, #ffe45c 45%, #6fe6a6 62%, #5ccfff 78%, #a77dff);
  --radius: 18px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  color: var(--ink);
  background-color: var(--night);
  background-image:
    radial-gradient(1px 1px at 12% 18%, #fff9 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 72% 8%, #fffc 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 62%, #ffffff80 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 46%, #fff8 50%, transparent 51%),
    radial-gradient(1px 1px at 54% 34%, #ffe9a6aa 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 84%, #c9d6ff99 50%, transparent 51%),
    linear-gradient(180deg, var(--night) 0%, #0d1440 40%, #101a52 70%, var(--night) 100%);
  background-size: 360px 360px, 420px 420px, 300px 300px, 520px 520px, 280px 280px, 460px 460px, 100% 100%;
  font-family: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, "Noto Sans JP", "Apple SD Gothic Neo", "Malgun Gothic", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
:lang(ko) body, body:lang(ko) { word-break: keep-all; overflow-wrap: anywhere; }
a { color: inherit; }
.wrap { width: min(1160px, 100% - 64px); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--gold); color: #1a1530; padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip-link:focus { top: 12px; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* Top bar */
.topbar { position: fixed; inset: 0 0 auto; z-index: 50; background: linear-gradient(180deg, rgba(8, 12, 38, .88), rgba(8, 12, 38, .55)); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.topbar-inner { width: min(1240px, 100% - 40px); margin-inline: auto; height: 64px; display: flex; align-items: center; gap: 24px; }
.brand img { width: 118px; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a { text-decoration: none; font-size: 13px; font-weight: 600; color: var(--sub); padding: 8px 12px; border-radius: 999px; transition: color .2s, background .2s; }
.topnav a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.lang-select { position: relative; display: inline-flex; align-items: center; gap: 6px; color: var(--sub); border: 1px solid var(--line); border-radius: 999px; padding: 0 10px 0 12px; background: rgba(255, 255, 255, .05); }
.lang-select select { appearance: none; -webkit-appearance: none; background: transparent; color: var(--ink); border: 0; font: inherit; font-size: 13px; font-weight: 600; height: 36px; padding: 0 18px 0 2px; cursor: pointer; }
.lang-select select option { color: #111; }
.lang-select::after { content: ""; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-70%) rotate(45deg); pointer-events: none; }

/* Hero */
.hero { --art-h: max(420px, 32.3vw); position: relative; padding: 0 0 56px; isolation: isolate; overflow: hidden; }
.hero-art { position: relative; display: block; height: var(--art-h); z-index: -2; overflow: hidden; }
.hero-art img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; animation: hero-zoom 18s ease-out both; }
@keyframes hero-zoom { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero-sky { position: absolute; inset: 0 0 auto; height: calc(var(--art-h) + 2px); z-index: -1; background:
  linear-gradient(180deg, rgba(10, 15, 44, .6) 0%, rgba(10, 15, 44, 0) 18%, rgba(10, 15, 44, 0) 52%, rgba(10, 15, 44, .85) 82%, var(--night) 100%); }
.hero-content { position: relative; margin-top: calc(var(--art-h) * -.3); text-align: center; display: flex; flex-direction: column; align-items: center; }
.hero-logo { margin: 0; width: min(560px, 92%); filter: drop-shadow(0 10px 30px rgba(0, 0, 0, .45)); }
.hero-logo img { width: 100%; }
.hero-kicker { margin: 10px 0 0; font-size: 13px; font-weight: 700; letter-spacing: .24em; color: var(--gold); text-transform: uppercase; }
.hero-lead { margin: 6px 0 0; font-size: clamp(18px, 2.3vw, 26px); font-weight: 700; letter-spacing: .04em; text-shadow: 0 2px 16px rgba(0, 0, 0, .55); }
.hero-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 24px; }
.hero-platforms { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin: 22px 0 0; }
.chip { font-size: 12px; font-weight: 600; letter-spacing: .02em; padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16); color: var(--sub); }
.chip-link { text-decoration: none; color: var(--ink); transition: background .2s, border-color .2s; }
.chip-link:hover { background: rgba(255, 255, 255, .16); border-color: rgba(255, 255, 255, .4); }
.chip-soon { background: rgba(255, 212, 94, .14); border-color: rgba(255, 212, 94, .5); color: var(--gold); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font-size: 15px; font-weight: 700; text-decoration: none; letter-spacing: .02em; transition: transform .2s, box-shadow .2s, background .2s; }
.btn-primary { color: #1d1236; background: linear-gradient(135deg, #ffe37a, #ffb84a 55%, #ff8cc6); box-shadow: 0 8px 28px rgba(255, 170, 90, .35), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 34px rgba(255, 170, 90, .5), inset 0 1px 0 rgba(255, 255, 255, .6); }
.btn-ghost { color: var(--ink); background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .28); }
.btn-ghost:hover { background: rgba(255, 255, 255, .14); transform: translateY(-2px); }

/* Sections */
.section { padding: 88px 0; position: relative; }
.section + .section::before { content: ""; position: absolute; top: 0; left: 50%; width: min(640px, 70%); height: 1px; transform: translateX(-50%); background: var(--rainbow); opacity: .45; }
.section-head { text-align: center; margin-bottom: 40px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 8px; font-size: 12px; font-weight: 800; letter-spacing: .28em; color: var(--cyan); }
.disc { width: 14px; height: 14px; border-radius: 50%; background: linear-gradient(90deg, #111 50%, #fafafa 50%); box-shadow: 0 0 0 2px rgba(255, 255, 255, .25), 0 0 12px rgba(116, 227, 255, .6); }
h2 { margin: 0; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.4; letter-spacing: .02em; }
.section-note { margin: 12px auto 0; max-width: 640px; color: var(--sub); font-size: 15px; }
.frame { margin: 0; border-radius: var(--radius); overflow: hidden; position: relative; box-shadow: 0 20px 50px rgba(0, 0, 0, .45); }
.frame::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: var(--rainbow); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: .7; pointer-events: none; }

/* Intro */
.intro-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; align-items: center; }
.intro-text p:not(.eyebrow) { color: var(--sub); font-size: 16px; margin: 18px 0 0; }
.intro-text h2 { margin-top: 4px; }
.stat-row { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.stat-row li { text-align: center; padding: 14px 6px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.stat-row strong { display: block; font-size: 30px; line-height: 1.1; background: linear-gradient(180deg, #fff3b0, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-row span { display: block; font-size: 12px; color: var(--sub); margin-top: 4px; line-height: 1.4; }

/* Trailer */
.video-frame { max-width: 960px; margin-inline: auto; aspect-ratio: 16 / 9; background: #000; }
.video-frame video { width: 100%; height: 100%; display: block; }
.video-frame[hidden] { display: none; }
.movie-tabs { display: flex; justify-content: center; gap: 10px; margin: -12px 0 22px; flex-wrap: wrap; }
.movie-tab { appearance: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--sub); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; line-height: 1.2; min-height: 44px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--panel); transition: color .2s, background .2s; }
.movie-tab small { font-size: 12px; font-weight: 600; color: var(--muted); }
.movie-tab:hover { color: #fff; }
.movie-tab[aria-selected="true"] { color: #1d1236; border-color: transparent; background: linear-gradient(135deg, #ffe37a, #ffb84a 55%, #ff8cc6); }
.movie-tab[aria-selected="true"] small { color: #4a3460; }

/* Features */
.feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 72px; }
.feature-alt .feature-media { order: 2; }
.feature-tag { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: .2em; color: var(--pink); }
.feature-body h3 { margin: 0; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.45; }
.feature-body p:not(.feature-tag) { color: var(--sub); margin: 14px 0 0; }
.level-bar { list-style: none; padding: 0; margin: 20px 0 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.level-bar li { font-size: 10px; font-weight: 700; text-align: center; padding: 22px 2px 6px; border-radius: 8px; background: rgba(255, 255, 255, .06); position: relative; color: var(--sub); line-height: 1.25; }
.level-bar li::before { content: ""; position: absolute; left: 50%; top: 7px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: hsl(calc(190 - var(--i, 0) * 30), 90%, 65%); box-shadow: 0 0 10px currentColor; }
.level-bar li:nth-child(1) { --i: 0; } .level-bar li:nth-child(2) { --i: 1; } .level-bar li:nth-child(3) { --i: 2; } .level-bar li:nth-child(4) { --i: 3; } .level-bar li:nth-child(5) { --i: 4; } .level-bar li:nth-child(6) { --i: 5; } .level-bar li:nth-child(7) { --i: 6; }
.level-bar li:last-child { color: var(--gold); background: rgba(255, 212, 94, .12); }
.noa-media { margin: 0; position: relative; display: grid; place-items: center; min-height: 420px; }
.noa-media::before { content: ""; position: absolute; inset: 8% 4%; border-radius: 50%; background: radial-gradient(circle, rgba(116, 227, 255, .35), rgba(165, 140, 255, .15) 45%, transparent 70%); }
.noa-media::after { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; border: 1px dashed rgba(116, 227, 255, .45); animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.noa-media img { position: relative; z-index: 1; width: min(440px, 100%); filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .5)); }
.param-list { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.param-list li { font-size: 13px; font-weight: 600; padding: 5px 12px; border-radius: 999px; border: 1px solid rgba(116, 227, 255, .45); color: #d6f6ff; background: rgba(116, 227, 255, .08); }
.mini-features { list-style: none; padding: 0; margin: 8px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.mini-features li { padding: 24px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.mini-features svg { width: 32px; height: 32px; fill: none; stroke: var(--gold); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mini-features h3 { margin: 12px 0 6px; font-size: 17px; }
.mini-features p { margin: 0; font-size: 13.5px; color: var(--sub); line-height: 1.7; }

/* Characters */
.char-tabs { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-bottom: 18px; }
.char-tab { appearance: none; border: 1px solid var(--line); background: var(--panel); color: var(--sub); border-radius: 16px; padding: 10px 4px 8px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 700; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: transform .2s, border-color .2s, background .2s; line-height: 1.3; min-width: 0; }
.char-tab img { width: 64px; height: 64px; border-radius: 50%; background: linear-gradient(180deg, #2b3a8c, #1a2263); border: 2px solid rgba(255, 255, 255, .25); }
.char-tab span { overflow-wrap: anywhere; text-align: center; }
.char-tab:hover { transform: translateY(-3px); color: #fff; }
.char-tab[aria-selected="true"] { color: #fff; border-color: transparent; background: linear-gradient(var(--night-3), var(--night-3)) padding-box, var(--rainbow) border-box; border: 2px solid transparent; }
.char-tab[aria-selected="true"] img { border-color: var(--gold); box-shadow: 0 0 16px rgba(255, 212, 94, .55); }
.char-stage { position: relative; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: end; min-height: 560px; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--night-2); isolation: isolate; }
.char-scene { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; opacity: .55; transition: opacity .4s; }
.char-stage::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(10, 15, 44, .2) 0%, rgba(10, 15, 44, .55) 42%, rgba(10, 15, 44, .92) 62%); }
.char-portrait { align-self: stretch; display: flex; align-items: flex-end; justify-content: center; padding-top: 24px; }
.char-portrait img { height: 560px; width: auto; max-width: none; filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .55)); animation: rise .5s ease both; }
.char-info { padding: 44px 48px 48px 0; align-self: center; animation: fade .5s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
.char-index { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .25em; color: var(--cyan); }
.char-name { margin: 4px 0 0; font-size: clamp(28px, 3.6vw, 44px); line-height: 1.3; background: linear-gradient(180deg, #fff, #ffe9a8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.char-point { margin: 14px 0 0; font-size: 17px; font-weight: 600; line-height: 1.7; }
.char-profile { margin: 22px 0 0; display: grid; gap: 10px; }
.char-profile div { display: grid; grid-template-columns: 8.5em minmax(0, 1fr); gap: 12px; padding: 10px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .08); }
.char-profile dt { font-size: 12px; font-weight: 800; color: var(--gold); letter-spacing: .05em; padding-top: 2px; }
.char-profile dd { margin: 0; font-size: 14px; color: var(--sub); }

/* Gallery */
.gallery { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery a { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 16 / 9; background: var(--night-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.gallery a:hover img { transform: scale(1.05); }
.gallery a::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 0 2px transparent; border-radius: inherit; transition: box-shadow .2s; }
.gallery a:hover::after { box-shadow: inset 0 0 0 2px var(--gold); }
.lightbox { border: 0; padding: 0; background: transparent; max-width: min(1280px, 94vw); width: 100%; overflow: visible; color: var(--ink); }
.lightbox::backdrop { background: rgba(4, 6, 22, .88); backdrop-filter: blur(4px); }
.lightbox img { width: 100%; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .6); }
.lightbox-caption { text-align: center; margin: 12px 0 0; color: var(--sub); font-size: 14px; }
.lb-btn { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35); background: rgba(10, 15, 44, .8); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lb-btn:hover { background: var(--night-3); border-color: var(--gold); }
.lb-close { top: -54px; right: 0; }
.lb-prev, .lb-next { top: calc(50% - 40px); }
.lb-prev { left: -22px; }
.lb-next { right: -22px; }

/* Platforms */
.platform-grid { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.platform { text-align: center; padding: 30px 20px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.platform svg { width: 40px; height: 40px; color: var(--ink); }
.platform h3 { margin: 10px 0 2px; font-size: 20px; }
.platform p { margin: 0; color: var(--sub); font-size: 14px; }
.store-link { display: block; width: fit-content; margin: 14px auto 0; font-size: 13px; font-weight: 700; color: var(--ink); text-decoration: none; padding: 8px 16px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .07); transition: background .2s; }
.store-link:hover { background: rgba(255, 255, 255, .14); }
.status { display: inline-block; margin-top: 14px; font-size: 12px; font-weight: 800; letter-spacing: .08em; padding: 4px 14px; border-radius: 999px; color: var(--gold); border: 1px solid rgba(255, 212, 94, .5); background: rgba(255, 212, 94, .1); }
.spec-title { margin: 56px 0 16px; font-size: 20px; text-align: center; }
.spec-scroll { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
.spec-table th, .spec-table td { padding: 12px 18px; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.spec-table thead th { font-size: 12px; letter-spacing: .12em; color: var(--gold); background: rgba(255, 255, 255, .04); }
.spec-table tbody th { width: 9.5em; color: var(--ink); font-weight: 700; white-space: nowrap; }
.spec-table td { color: var(--sub); }
.spec-table tr:last-child > * { border-bottom: 0; }
.fact-grid { margin: 24px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.fact-grid div { padding: 14px 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.fact-grid dt { font-size: 12px; font-weight: 800; color: var(--cyan); letter-spacing: .08em; }
.fact-grid dd { margin: 4px 0 0; font-size: 14px; }

/* Contact & footer */
.contact-card { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 40px 44px; border-radius: 24px; background: linear-gradient(135deg, rgba(43, 58, 140, .7), rgba(27, 36, 99, .7)), url("img/bg-garden.webp") center / cover; border: 1px solid var(--line); }
.contact-card h2 { font-size: clamp(22px, 2.6vw, 28px); }
.contact-card p:not(.eyebrow) { color: var(--sub); margin: 10px 0 0; max-width: 560px; }
.contact-actions { display: flex; flex-direction: column; gap: 10px; flex: none; }
.site-foot { border-top: 1px solid rgba(255, 255, 255, .08); padding: 26px 0 34px; color: var(--muted); font-size: 12px; }
.foot-inner { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: #fff; }

/* Responsive */
@media (max-width: 1020px) {
  .topnav { display: none; }
  .lang-select { margin-left: auto; }
  .char-tabs { grid-template-columns: repeat(4, 1fr); }
  .mini-features { grid-template-columns: repeat(2, 1fr); }
  .fact-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .section { padding: 64px 0; }
  .intro-grid, .feature { grid-template-columns: 1fr; gap: 26px; }
  .feature { margin-bottom: 56px; }
  .feature-alt .feature-media { order: 0; }
  .noa-media { min-height: 0; }
  .noa-media img { width: min(320px, 80%); }
  .char-stage { grid-template-columns: 1fr; min-height: 0; }
  .char-stage::before { background: linear-gradient(180deg, rgba(10, 15, 44, .15) 0%, rgba(10, 15, 44, .5) 34%, rgba(10, 15, 44, .94) 52%); }
  .char-scene { height: 60%; }
  .char-portrait { height: 380px; overflow: hidden; align-items: flex-start; padding-top: 20px; }
  .char-portrait img { height: 760px; }
  .char-info { padding: 0 24px 28px; }
  .platform-grid { grid-template-columns: 1fr; }
  .contact-card { flex-direction: column; align-items: flex-start; padding: 30px 26px; }
  .contact-actions { width: 100%; }
}
@media (max-width: 720px) {
  .hero { --art-h: 66.7vw; padding-bottom: 40px; }
  .hero-content { margin-top: calc(var(--art-h) * -.22); }
  .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .wrap { width: calc(100% - 32px); }
  .topbar-inner { width: calc(100% - 32px); height: 58px; }
  .brand img { width: 96px; }
  html { scroll-padding-top: 66px; }
  .hero-kicker { font-size: 11px; letter-spacing: .16em; }
  .btn { width: 100%; }
  .hero-actions { width: 100%; }
  .char-tabs { gap: 6px; }
  .char-tab { padding: 8px 2px 6px; font-size: 10.5px; border-radius: 12px; }
  .char-tab img { width: 48px; height: 48px; }
  .char-tab[aria-selected="true"] { border-width: 1.5px; }
  .char-profile div { grid-template-columns: 1fr; gap: 2px; }
  .char-point { font-size: 15px; }
  .level-bar { grid-template-columns: repeat(4, 1fr); }
  .mini-features { grid-template-columns: 1fr; }
  .fact-grid { grid-template-columns: 1fr; }
  .spec-table { min-width: 0; font-size: 12.5px; }
  .spec-table th, .spec-table td { padding: 10px 10px; }
  .spec-table tbody th { width: auto; white-space: normal; }
  .lb-prev { left: 4px; }
  .lb-next { right: 4px; }
  .lb-close { right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
