/* ============================================================
   METEOR BREAKERS — official site (Web Design Lab showcase)
   架空ゲームのアーケード/ドット絵プロモサイト
   ============================================================ */

:root {
  --navy: #0a0e2a;      /* 宇宙紺 */
  --deep: #05071a;      /* 深宇宙 */
  --yellow: #ffd23d;    /* アーケードイエロー */
  --cyan: #3de8ff;      /* シアン */
  --magenta: #ff5cd0;   /* マゼンタ */
  --lime: #9dff3d;      /* ライム */
  --ink: #eaf0ff;
  --panel: #111844;
  --panel-2: #0d1338;
  --line: #2a3a8a;
  --font-dot: "DotGothic16", sans-serif;
  --font-en: "Press Start 2P", monospace;
  --font-body: "M PLUS Rounded 1c", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

html, body {
  /* overflow-x は clip（hidden は position:sticky を殺す） */
  overflow-x: clip;
  max-width: 100%;
}

body {
  background: var(--deep);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 700;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  image-rendering: pixelated;
  cursor: auto;
}

/* レインボーモード（イースターエッグ） */
body.rainbow { animation: rainbow 6s linear infinite; }
@keyframes rainbow { to { filter: hue-rotate(360deg); } }

img, canvas { image-rendering: pixelated; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--magenta); color: #fff; }

/* スクロールバー */
body::-webkit-scrollbar { width: 12px; }
body::-webkit-scrollbar-track { background: var(--deep); }
body::-webkit-scrollbar-thumb { background: var(--line); border: 2px solid var(--deep); }

/* ===== 共通: セクション見出し ===== */
.sec-head { text-align: center; margin-bottom: clamp(24px, 5vw, 48px); }
.sec-head__en {
  display: inline-block;
  font-family: var(--font-en);
  font-size: clamp(10px, 2.2vw, 15px);
  color: var(--cyan);
  letter-spacing: 2px;
  text-shadow: 0 0 0 var(--cyan), 3px 3px 0 #07103a;
  padding: 7px 14px;
  border: 2px solid var(--cyan);
  box-shadow: 4px 4px 0 #07103a;
  background: var(--panel-2);
}
.sec-head__ja {
  font-family: var(--font-dot);
  font-size: clamp(22px, 5vw, 40px);
  margin-top: 16px;
  letter-spacing: 4px;
  color: var(--yellow);
  text-shadow: 3px 3px 0 #1a1140, 0 0 18px rgba(255, 210, 61, .25);
}

/* ============================================================
   起動画面 NOW LOADING
   ============================================================ */
.boot {
  position: fixed; inset: 0; z-index: 9999;
  background: #000;
  display: grid; place-items: center;
  transition: opacity .45s ease, visibility .45s;
}
.boot.done { opacity: 0; visibility: hidden; pointer-events: none; }
.boot__inner { text-align: center; width: min(440px, 86vw); }
.boot__logo {
  font-family: var(--font-en);
  font-size: clamp(20px, 6vw, 34px);
  line-height: 1.5;
  color: var(--yellow);
  text-shadow: 4px 4px 0 #5a2a00;
  margin-bottom: 34px;
  animation: bootPulse 1.1s steps(2) infinite;
}
@keyframes bootPulse { 50% { opacity: .65; } }
.boot__bar {
  height: 22px; border: 3px solid var(--ink);
  background: #0a0a16; padding: 3px; box-shadow: 4px 4px 0 #222;
}
.boot__bar i {
  display: block; height: 100%; width: 0%;
  background: repeating-linear-gradient(90deg, var(--lime) 0 10px, #5fb800 10px 14px);
  transition: width .12s steps(1);
}
.boot__pct {
  font-family: var(--font-en); font-size: 12px; color: var(--lime);
  margin-top: 12px; letter-spacing: 1px;
}
.boot__tip {
  font-family: var(--font-dot); font-size: 14px; color: var(--cyan);
  margin-top: 20px; min-height: 1.6em; letter-spacing: 1px;
}
.boot__now {
  font-family: var(--font-en); font-size: 10px; color: #6679d8;
  margin-top: 26px; letter-spacing: 3px;
  animation: bootBlink 1s steps(2) infinite;
}
@keyframes bootBlink { 50% { opacity: 0; } }

/* ============================================================
   HUD ヘッダ（追従）
   ============================================================ */
.hud {
  position: fixed; top: 0; left: 0; right: 0; z-index: 800;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 10px clamp(12px, 3vw, 26px) 0;
  background: linear-gradient(180deg, rgba(5, 7, 26, .96), rgba(5, 7, 26, .82) 70%, transparent);
  border-bottom: 0;
}
.hud__logo {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-en);
  font-size: 11px; line-height: 1.4;
  color: var(--ink);
  letter-spacing: 1px;
  text-shadow: 2px 2px 0 #07103a;
}
.hud__logo:hover .hud__logo-txt { color: var(--yellow); }
.hud__logo-coin {
  width: 24px; height: 24px; flex: 0 0 24px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff5c0, var(--yellow) 55%, #c98a00);
  border: 2px solid #7a5200;
  box-shadow: inset -2px -2px 0 rgba(0, 0, 0, .25);
  animation: coinSpin 2.4s linear infinite;
}
@keyframes coinSpin { 50% { transform: scaleX(.12); } }

/* 中央ナビ */
.hud__nav {
  display: flex; justify-content: center; gap: clamp(6px, 1.4vw, 18px);
  font-family: var(--font-dot); font-size: 15px; letter-spacing: 2px;
}
.hud__nav a {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 8px; color: var(--ink);
  position: relative; transition: color .15s, transform .1s;
}
.hud__nav a .coin {
  width: 0; height: 12px; overflow: hidden;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff5c0, var(--yellow) 60%, #c98a00);
  transition: width .15s steps(3);
}
.hud__nav a:hover { color: var(--yellow); transform: translateY(-2px); }
.hud__nav a:hover .coin { width: 12px; animation: coinSpin .7s linear infinite; }
.hud__nav-cta {
  background: var(--magenta); color: #2a0020 !important;
  border: 2px solid #fff; box-shadow: 3px 3px 0 #7a0050;
  padding: 6px 12px !important;
}
.hud__nav-cta:hover { transform: translate(1px, 1px) !important; box-shadow: 1px 1px 0 #7a0050; }

/* QUEST PROGRESS HPバー */
.hud__quest {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 10px;
  padding: 4px 0 8px;
}
.hud__quest-label {
  font-family: var(--font-en); font-size: 8px; color: var(--lime);
  letter-spacing: 1px; white-space: nowrap;
}
.hud__hp {
  flex: 1; height: 12px; border: 2px solid #0c1a10;
  background: #06120a;
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, .06);
  overflow: hidden;
}
.hud__hp i {
  display: block; height: 100%; width: 100%;
  background: linear-gradient(180deg, var(--lime), #4fb000);
  transition: width .12s linear, background .25s;
}
.hud__quest-pct {
  font-family: var(--font-en); font-size: 9px; color: var(--ink);
  white-space: nowrap; min-width: 38px; text-align: right;
}

/* バーガー */
.hud__burger {
  display: none; background: none; border: 2px solid var(--ink);
  width: 38px; height: 32px; flex-direction: column; justify-content: center;
  gap: 4px; cursor: pointer; padding: 0 7px;
}
.hud__burger span { display: block; height: 3px; background: var(--ink); transition: .2s; }

/* ============================================================
   ヒーロー
   ============================================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: grid; place-items: center;
  overflow: hidden;
  background: radial-gradient(ellipse at 50% 30%, #131a52 0%, var(--navy) 45%, var(--deep) 100%);
}
.hero.shake { animation: shake .26s steps(2); }
@keyframes shake {
  0% { transform: translate(0, 0); } 25% { transform: translate(-5px, 3px); }
  50% { transform: translate(4px, -4px); } 75% { transform: translate(-3px, -2px); }
  100% { transform: translate(0, 0); }
}
.hero__cv { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero__scan {
  position: absolute; inset: 0; pointer-events: none; z-index: 3;
  background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .14) 0 2px, transparent 2px 4px);
  mix-blend-mode: multiply; opacity: .5;
}
.hero__copy {
  position: relative; z-index: 4; text-align: center;
  padding: 0 18px 80px; pointer-events: none;
}
.hero__copy a, .hero__copy { pointer-events: auto; }
.hero__sub {
  font-family: var(--font-dot); font-size: clamp(13px, 3vw, 19px);
  color: var(--cyan); letter-spacing: 3px; margin-bottom: 14px;
  text-shadow: 2px 2px 0 #001a2a, 0 0 14px rgba(61, 232, 255, .4);
}
.hero__sub[data-glitch] { animation: glitch 4s steps(1) infinite; }
@keyframes glitch {
  0%, 92%, 100% { transform: translate(0, 0); text-shadow: 2px 2px 0 #001a2a; }
  93% { transform: translate(-2px, 1px); text-shadow: -2px 0 var(--magenta), 2px 0 var(--cyan); }
  95% { transform: translate(2px, -1px); text-shadow: 2px 0 var(--magenta), -2px 0 var(--cyan); }
  97% { transform: translate(-1px, 0); }
}
.hero__tag {
  font-family: var(--font-dot); font-weight: 400;
  font-size: clamp(34px, 9vw, 78px);
  line-height: 1.1; letter-spacing: 4px;
  color: #fff;
  text-shadow:
    4px 4px 0 var(--magenta), 8px 8px 0 #4a0040,
    -2px -2px 0 var(--cyan);
}
.hero__press {
  font-family: var(--font-en); font-size: clamp(11px, 2.6vw, 16px);
  color: var(--yellow); letter-spacing: 2px; margin: 22px 0 26px;
  text-shadow: 3px 3px 0 #5a2a00;
  opacity: 0;
}
.hero__press.on { animation: pressBlink 1s steps(2) infinite; }
@keyframes pressBlink { 50% { opacity: 0; } }
.hero__meta {
  font-family: var(--font-dot); font-size: clamp(10px, 2.4vw, 14px);
  color: #aab6ff; letter-spacing: 1px; margin-top: 22px;
}
.hero__hint {
  position: absolute; bottom: 14px; left: 50%; transform: translateX(-50%);
  z-index: 4; font-family: var(--font-en); font-size: 9px; color: var(--cyan);
  letter-spacing: 2px; animation: hintBob 1.4s ease-in-out infinite;
}
@keyframes hintBob { 50% { transform: translate(-50%, 6px); opacity: .5; } }

/* ストアバッジ（CSS製） */
.badges { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.badge {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 16px; border-radius: 10px;
  border: 2px solid #fff; background: #0b0e22;
  box-shadow: 3px 3px 0 rgba(0, 0, 0, .55);
  transition: transform .1s, box-shadow .1s;
}
.badge b { font-size: 18px; line-height: 1; }
.badge span {
  font-family: var(--font-body); font-weight: 700;
  font-size: 9px; line-height: 1.25; letter-spacing: .5px; text-align: left;
  color: #cfd8ff; text-transform: uppercase;
}
.badge span strong { font-size: 13px; color: #fff; display: block; letter-spacing: .5px; }
.badge:hover { transform: translate(1px, 1px); box-shadow: 1px 1px 0 rgba(0, 0, 0, .55); }
.badge--apple b { color: var(--cyan); }
.badge--play b { color: var(--lime); }
.badge--switch { background: #161a30; }
.badge--switch b { color: #ff3a3a; }
.badges--sm .badge { padding: 6px 12px; }
.badges--sm .badge span { font-size: 8px; }
.badges--sm .badge span strong { display: inline; font-size: 11px; }

/* ============================================================
   アトラクトモード風 機能ティッカー
   ============================================================ */
.ticker {
  overflow: hidden; white-space: nowrap;
  background: var(--magenta);
  border-top: 3px solid #fff; border-bottom: 3px solid #fff;
  box-shadow: 0 0 24px rgba(255, 92, 208, .4);
  padding: 9px 0;
}
.ticker__track {
  display: inline-flex; gap: 0;
  will-change: transform;
  animation: tickerScroll 26s linear infinite;
}
@keyframes tickerScroll { to { transform: translateX(-50%); } }
.ticker__item {
  display: inline-flex; align-items: center; gap: 10px; padding: 0 26px;
  font-family: var(--font-dot); font-size: clamp(13px, 2.4vw, 17px);
  letter-spacing: 1px; color: #2a0020; text-shadow: 1px 1px 0 rgba(255, 255, 255, .35);
}
.ticker__star { color: var(--yellow); font-style: normal; text-shadow: 1px 1px 0 #5a2a00; }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation-duration: 90s; } }

/* ============================================================
   NEWS — RPGメッセージウィンドウ
   ============================================================ */
.news { padding: clamp(70px, 12vw, 130px) clamp(16px, 5vw, 60px); position: relative; }
.news__list {
  max-width: 760px; margin: 0 auto;
  display: flex; flex-direction: column; gap: 26px;
}
.msgwin {
  position: relative;
  background: linear-gradient(180deg, #0a1a6a, #061047);
  border: 4px solid #fff;
  border-radius: 14px;
  box-shadow: 0 0 0 4px #0a1a6a, 6px 6px 0 rgba(0, 0, 0, .5);
  padding: 22px 26px 26px;
  opacity: 0; transform: translateY(24px);
  transition: opacity .4s, transform .4s;
}
.msgwin.in { opacity: 1; transform: none; }
.msgwin__head {
  display: flex; align-items: center; gap: 12px; margin-bottom: 12px;
  font-family: var(--font-en); font-size: 9px;
}
.msgwin__cat {
  padding: 4px 8px; border: 2px solid #fff; letter-spacing: 1px;
  background: var(--yellow); color: #3a2400;
}
.msgwin__cat.up { background: var(--cyan); color: #002a33; }
.msgwin__cat.ev { background: var(--magenta); color: #2a0020; }
.msgwin__date { color: #9fb0ff; letter-spacing: 1px; }
.msgwin__body {
  font-family: var(--font-dot); font-size: clamp(15px, 2.6vw, 19px);
  line-height: 1.9; letter-spacing: 1px; color: #fff;
  min-height: 3.6em;
}
.msgwin__cursor {
  display: inline-block; width: .6em; color: var(--yellow);
  animation: caret .5s steps(2) infinite;
}
@keyframes caret { 50% { opacity: 0; } }
.msgwin__next {
  position: absolute; right: 16px; bottom: 10px;
  color: var(--yellow); font-size: 14px;
  animation: nextBob .7s steps(2) infinite; opacity: 0;
}
.msgwin.done .msgwin__next { opacity: 1; }
@keyframes nextBob { 50% { transform: translateY(4px); } }

/* ============================================================
   CHARACTER — キャラセレクト
   ============================================================ */
.char {
  padding: clamp(70px, 12vw, 130px) clamp(16px, 5vw, 60px);
  background:
    radial-gradient(ellipse at 80% 0%, rgba(255, 92, 208, .12), transparent 50%),
    radial-gradient(ellipse at 0% 100%, rgba(61, 232, 255, .12), transparent 50%),
    var(--navy);
  border-top: 3px solid var(--line);
}
.char__wrap {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 50px);
  align-items: stretch;
}
.char__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.cselect {
  position: relative; cursor: pointer;
  border: 3px solid var(--line); background: var(--panel-2);
  padding: 16px 14px; text-align: center;
  transition: transform .12s, border-color .12s;
  overflow: hidden;
}
.cselect::before {
  content: ""; position: absolute; inset: 0;
  background: var(--cc); opacity: .14; transition: opacity .15s;
}
.cselect:hover { transform: translateY(-3px); }
.cselect.sel {
  border-color: var(--cc);
  box-shadow: 0 0 0 3px var(--cc), 0 0 22px -4px var(--cc);
  animation: selBounce .35s cubic-bezier(.34, 1.7, .5, 1);
}
@keyframes selBounce { 0% { transform: scale(.9); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
.cselect.sel::before { opacity: .26; }
.cselect__face {
  width: 64px; height: 64px; margin: 0 auto 10px; position: relative; z-index: 1;
  image-rendering: pixelated;
}
.cselect__name {
  position: relative; z-index: 1;
  font-family: var(--font-dot); font-size: 18px; letter-spacing: 2px; color: #fff;
}
.cselect__role {
  position: relative; z-index: 1;
  font-family: var(--font-en); font-size: 7px; letter-spacing: 1px;
  color: var(--cc); margin-top: 5px;
}
.cselect__corner {
  position: absolute; top: 6px; right: 8px; z-index: 1;
  font-family: var(--font-en); font-size: 9px; color: var(--cc); opacity: 0;
}
.cselect.sel .cselect__corner { opacity: 1; }

.char__detail {
  border: 3px solid var(--line); background: var(--panel-2);
  display: grid; grid-template-columns: auto 1fr; gap: 18px;
  padding: 22px; align-items: center;
  box-shadow: inset 0 0 40px rgba(0, 0, 0, .4);
}
.char__stage {
  width: 200px; height: 200px;
  display: grid; place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, .03) 0 12px, transparent 12px 24px),
    radial-gradient(circle at 50% 60%, rgba(255, 255, 255, .08), transparent 60%);
  border: 2px solid var(--line);
}
.char__cv { width: 200px; height: 200px; }
.char__role {
  display: inline-block; font-family: var(--font-en); font-size: 8px;
  padding: 4px 8px; border: 2px solid currentColor; letter-spacing: 1px;
  margin-bottom: 8px; transition: color .2s;
}
.char__name {
  font-family: var(--font-dot); font-size: clamp(26px, 5vw, 40px);
  letter-spacing: 3px; color: #fff; line-height: 1.1;
  text-shadow: 3px 3px 0 #000;
}
.char__quote {
  font-family: var(--font-dot); font-size: 15px; color: var(--yellow);
  margin: 10px 0 16px; min-height: 1.7em; letter-spacing: 1px;
}
.char__radar { display: grid; place-items: center; }
.char__radar-cv { width: 220px; height: 220px; max-width: 100%; }

/* ============================================================
   SYSTEM — あそびかた
   ============================================================ */
.system {
  padding: clamp(70px, 12vw, 130px) clamp(16px, 5vw, 60px);
  border-top: 3px solid var(--line);
  background: var(--deep);
}
.system__lead {
  text-align: center; font-family: var(--font-dot);
  font-size: clamp(13px, 2.6vw, 17px); color: #aab6ff;
  letter-spacing: 1px; margin-bottom: clamp(28px, 5vw, 48px);
}
.system__grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.syscard {
  position: relative; cursor: pointer; user-select: none;
  border: 3px solid var(--c); background: var(--panel-2);
  padding: 30px 22px 24px; text-align: center;
  overflow: hidden; min-height: 230px;
  box-shadow: 6px 6px 0 rgba(0, 0, 0, .5);
  transition: transform .1s;
}
.syscard:active { transform: scale(.98); }
.syscard::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(circle at 50% 0%, var(--c), transparent 70%);
  opacity: .12; pointer-events: none;
}
.syscard__icon { font-size: 46px; display: block; line-height: 1; filter: saturate(1.2); }
.syscard__t {
  font-family: var(--font-dot); font-size: 24px; letter-spacing: 3px;
  color: var(--c); margin: 14px 0 10px; text-shadow: 2px 2px 0 #000;
}
.syscard__d {
  font-family: var(--font-body); font-weight: 700; font-size: 13px;
  color: #c8d2ff; line-height: 1.8;
}
.syscard__tap {
  position: absolute; right: 12px; bottom: 10px;
  font-family: var(--font-en); font-size: 8px; color: var(--c);
  opacity: .55; letter-spacing: 1px;
  animation: tapBlink 1.2s steps(2) infinite;
}
@keyframes tapBlink { 50% { opacity: .15; } }

/* ダメージ数字ポップ */
.dmg-pop {
  position: fixed; z-index: 700; pointer-events: none;
  font-family: var(--font-en); font-size: 20px; color: #fff;
  text-shadow: 2px 2px 0 #000, 0 0 8px currentColor;
  transform: translate(-50%, -50%);
  animation: dmgPop .8s cubic-bezier(.2, .8, .3, 1) forwards;
}
.dmg-pop.crit { font-size: 34px; color: var(--yellow); }
@keyframes dmgPop {
  0% { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
  20% { transform: translate(-50%, -70%) scale(1.25); opacity: 1; }
  60% { transform: translate(-50%, -110%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -160%) scale(.9); opacity: 0; }
}

/* ============================================================
   WORLD — ステージマップ
   ============================================================ */
.world {
  padding: clamp(70px, 12vw, 130px) 0 clamp(50px, 8vw, 90px);
  border-top: 3px solid var(--line);
  background: linear-gradient(180deg, var(--deep), #0a0e2a);
}
.world .sec-head { padding: 0 18px; }
.world__sky {
  position: relative; height: clamp(260px, 40vw, 420px);
  overflow: hidden;
  border-top: 3px solid var(--line); border-bottom: 3px solid var(--line);
  background: linear-gradient(180deg, #070a24 0%, #14163f 60%, #2a1450 100%);
}
.world__layer {
  position: absolute; inset: 0; left: -10%; width: 220%;
  background-repeat: repeat-x; background-position: bottom;
  will-change: transform;
}
.world__layer--3 {
  bottom: 0;
  background-image:
    radial-gradient(1px 1px at 20px 30px, #fff, transparent),
    radial-gradient(1px 1px at 80px 70px, #cfe, transparent),
    radial-gradient(1px 1px at 160px 40px, #fff, transparent),
    radial-gradient(2px 2px at 240px 90px, var(--cyan), transparent),
    radial-gradient(1px 1px at 320px 20px, #fff, transparent);
  background-size: 360px 200px; opacity: .8;
}
.world__layer--2 {
  background-image:
    linear-gradient(transparent 55%, rgba(157, 60, 200, .35) 55%),
    repeating-linear-gradient(90deg, transparent 0 120px, rgba(255, 92, 208, .25) 120px 150px);
  background-size: 100% 100%, 400px 100%; opacity: .5;
}
.world__layer--1 {
  background:
    repeating-linear-gradient(90deg, #1a1f55 0 60px, #232a66 60px 64px);
  height: 60px; bottom: 0; top: auto;
  border-top: 3px solid var(--cyan);
  box-shadow: 0 0 18px var(--cyan);
}
.world__stages {
  position: absolute; inset: 0; z-index: 5;
  display: flex; align-items: flex-end; justify-content: space-around;
  padding: 0 4% 64px;
}
.wstage {
  position: relative; cursor: pointer;
  display: flex; flex-direction: column; align-items: center;
  transition: transform .15s;
}
.wstage:hover { transform: translateY(-8px); }
.wstage__icon {
  width: clamp(44px, 9vw, 74px); height: clamp(54px, 11vw, 90px);
  position: relative;
  filter: drop-shadow(3px 3px 0 #000);
}
.wstage__num {
  font-family: var(--font-en); font-size: 8px; color: var(--ink);
  margin-top: 8px; opacity: .7;
}
.wstage__chip {
  position: absolute; top: -42px; left: 50%; transform: translateX(-50%) scale(.6);
  white-space: nowrap;
  font-family: var(--font-dot); font-size: 13px; letter-spacing: 1px;
  background: #fff; color: #0a0e2a; padding: 5px 12px;
  border: 2px solid var(--cyan);
  box-shadow: 2px 2px 0 var(--cyan);
  opacity: 0; pointer-events: none;
  transition: opacity .15s, transform .15s cubic-bezier(.34, 1.7, .5, 1);
}
.wstage__chip::after {
  content: ""; position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
  border: 6px solid transparent; border-top-color: var(--cyan);
}
.wstage:hover .wstage__chip { opacity: 1; transform: translateX(-50%) scale(1); }
.world__cap {
  text-align: center; font-family: var(--font-dot); font-size: clamp(12px, 2.4vw, 15px);
  color: #9fb0ff; letter-spacing: 1px; margin-top: 32px; padding: 0 18px;
}

/* ============================================================
   事前登録 — マイルストーンメーター
   ============================================================ */
.regist {
  position: relative; overflow: hidden;
  padding: clamp(70px, 12vw, 130px) clamp(16px, 5vw, 60px);
  border-top: 3px solid var(--line);
  background:
    radial-gradient(ellipse at 50% 120%, rgba(255, 210, 61, .15), transparent 60%),
    var(--navy);
  text-align: center;
}
.regist.shake { animation: shake .26s steps(2); }
.regist__counter { margin-bottom: 30px; }
.regist__num {
  font-family: var(--font-en); font-size: clamp(28px, 8vw, 56px);
  color: var(--yellow); text-shadow: 4px 4px 0 #5a2a00;
  letter-spacing: 1px;
}
.regist__unit { font-family: var(--font-dot); font-size: clamp(14px, 3vw, 20px); color: #fff; margin-left: 8px; }
.regist__meter { max-width: 760px; margin: 0 auto 40px; }
.regist__bar {
  height: 26px; border: 3px solid #fff; background: #0a0a16;
  padding: 3px; box-shadow: 5px 5px 0 rgba(0, 0, 0, .5);
}
.regist__bar i {
  display: block; height: 100%; width: 0%;
  background: repeating-linear-gradient(90deg, var(--cyan) 0 12px, #1aa0c0 12px 16px);
  transition: width 1.4s cubic-bezier(.2, .8, .3, 1);
}
.regist__milestones {
  list-style: none; display: flex; justify-content: space-between;
  margin-top: 14px; position: relative;
}
.regist__milestones li {
  flex: 1; text-align: center; position: relative;
  font-family: var(--font-dot); font-size: 12px; letter-spacing: 1px;
}
.regist__milestones li::before {
  content: ""; display: block; width: 14px; height: 14px; margin: 0 auto 8px;
  background: #2a3a8a; border: 2px solid #fff; transform: rotate(45deg);
  transition: background .3s;
}
.regist__milestones li.reached::before { background: var(--yellow); box-shadow: 0 0 12px var(--yellow); }
.regist__ms-k { display: block; font-family: var(--font-en); font-size: 8px; color: var(--cyan); margin-bottom: 4px; }
.regist__ms-r { color: #fff; }
.regist__milestones li.locked .regist__ms-r { color: #7585d0; }
.regist__milestones li.reached .regist__ms-r { color: var(--yellow); }

.regist__cta {
  position: relative; cursor: pointer;
  font-family: var(--font-dot); font-size: clamp(17px, 4vw, 24px);
  letter-spacing: 3px; color: #2a0020;
  padding: 18px 40px; border: 3px solid #fff;
  background: linear-gradient(180deg, var(--yellow), #e0a800);
  box-shadow: 0 6px 0 #8a5a00, 0 10px 18px rgba(0, 0, 0, .5);
  display: inline-flex; align-items: center; gap: 12px;
  transition: transform .08s, box-shadow .08s;
}
.regist__cta:hover { transform: translateY(-2px); }
.regist__cta:active { transform: translateY(5px); box-shadow: 0 1px 0 #8a5a00; }
.regist__cta-coin {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, #ffe9a0 50%, #c98a00);
  border: 2px solid #7a5200;
  animation: coinSpin 1.6s linear infinite;
}
.regist__note {
  font-family: var(--font-dot); font-size: 12px; color: #7585d0;
  margin-top: 20px; letter-spacing: 1px;
}
/* コイン爆発 + GOLDポップ */
.coin-burst, .gold-pop {
  position: fixed; z-index: 750; pointer-events: none; transform: translate(-50%, -50%);
}
.coin-burst {
  width: 16px; height: 16px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--yellow) 55%, #c98a00);
  border: 2px solid #7a5200;
}
.gold-pop {
  font-family: var(--font-en); font-size: 18px; color: var(--yellow);
  text-shadow: 2px 2px 0 #5a2a00; animation: dmgPop 1s ease-out forwards;
}

/* 製品情報パネル（ステータス画面風） */
.spec {
  max-width: 640px; margin: 48px auto 0; text-align: left;
  border: 3px solid var(--cyan); background: var(--panel-2);
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .5), inset 0 0 30px rgba(61, 232, 255, .06);
}
.spec__row {
  display: grid; grid-template-columns: 116px 1fr;
  border-bottom: 2px dashed #243a7a;
}
.spec__row:last-child { border-bottom: 0; }
.spec dt {
  font-family: var(--font-en); font-size: 8px; letter-spacing: 1px;
  color: var(--cyan); padding: 12px 10px;
  background: rgba(61, 232, 255, .06);
  display: flex; align-items: center;
  border-right: 2px solid #243a7a;
}
.spec dd {
  font-family: var(--font-dot); font-size: clamp(13px, 2.5vw, 16px);
  color: #eaf0ff; padding: 11px 14px; letter-spacing: .5px; line-height: 1.6;
}

/* ============================================================
   フッター — GAME OVER風
   ============================================================ */
.foot {
  background: #000; border-top: 4px solid var(--magenta);
  padding: clamp(40px, 7vw, 70px) clamp(16px, 5vw, 60px) 40px;
}
.foot__continue { text-align: center; margin-bottom: 50px; }
.foot__co-title {
  font-family: var(--font-en); font-size: clamp(18px, 5vw, 32px);
  color: var(--magenta); text-shadow: 3px 3px 0 #4a0040;
  letter-spacing: 2px; margin-bottom: 22px;
  animation: bootPulse 1.4s steps(2) infinite;
}
.foot__co-yes {
  font-family: var(--font-dot); font-size: clamp(20px, 5vw, 30px);
  color: var(--yellow); background: none; border: none; cursor: pointer;
  letter-spacing: 2px; text-shadow: 2px 2px 0 #000;
  transition: transform .1s, color .1s;
}
.foot__co-yes:hover { transform: scale(1.1); color: #fff; }
.foot__co-no {
  font-family: var(--font-dot); font-size: clamp(18px, 4.5vw, 28px);
  color: #44496a; letter-spacing: 2px; margin-top: 6px;
}
.foot__co-count {
  font-family: var(--font-en); font-size: 14px; color: var(--cyan);
  margin-top: 16px; letter-spacing: 2px;
}
.foot__main {
  max-width: 980px; margin: 0 auto;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 30px;
  padding-bottom: 30px; border-bottom: 2px solid #1a1f44;
}
.foot__logo {
  font-family: var(--font-en); font-size: 14px; color: #fff;
  letter-spacing: 1px; text-shadow: 2px 2px 0 var(--magenta);
}
.foot__tag {
  font-family: var(--font-dot); font-size: 14px; color: var(--cyan);
  margin: 8px 0 16px; letter-spacing: 2px;
}
.foot__links { display: grid; gap: 8px; align-content: start; }
.foot__links a {
  font-family: var(--font-dot); font-size: 15px; color: #aab6ff;
  letter-spacing: 1px; transition: color .12s, transform .12s;
}
.foot__links a:hover { color: var(--yellow); transform: translateX(4px); }
.foot__legal {
  max-width: 980px; margin: 24px auto 0; text-align: center;
}
.foot__legal p {
  font-family: var(--font-body); font-weight: 700; font-size: 11px;
  color: #6a73a0; line-height: 1.8;
}
.foot__copy { margin-top: 8px; font-family: var(--font-en) !important; font-size: 8px !important; color: #44496a !important; letter-spacing: 1px; }

/* ============================================================
   追従フローティングCTA
   ============================================================ */
.float-cta {
  position: fixed; right: 18px; bottom: 18px; z-index: 600;
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-dot); font-size: 15px; letter-spacing: 1px;
  color: #2a0020; padding: 12px 18px;
  background: linear-gradient(180deg, var(--magenta), #d030a0);
  border: 3px solid #fff;
  box-shadow: 0 5px 0 #7a0050, 0 8px 16px rgba(0, 0, 0, .5);
  transform: translateY(140px); opacity: 0;
  transition: transform .4s cubic-bezier(.34, 1.6, .5, 1), opacity .3s;
}
.float-cta.show { transform: none; opacity: 1; }
.float-cta:hover { transform: translateY(-3px); }
.float-cta__coin {
  width: 18px; height: 18px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, var(--yellow) 55%, #c98a00);
  border: 2px solid #7a5200; animation: coinSpin 1.4s linear infinite;
}

/* ============================================================
   実績解除トースト
   ============================================================ */
.ach-stack {
  position: fixed; top: 78px; right: 16px; z-index: 850;
  display: flex; flex-direction: column; gap: 10px; pointer-events: none;
}
.ach {
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, #1a1f55, #0a0e2a);
  border: 2px solid var(--yellow);
  box-shadow: 0 0 0 2px #000, 4px 4px 0 rgba(0, 0, 0, .5);
  padding: 10px 16px 10px 12px; min-width: 250px; max-width: 80vw;
  transform: translateX(120%); opacity: 0;
  transition: transform .45s cubic-bezier(.34, 1.6, .5, 1), opacity .3s;
}
.ach.show { transform: none; opacity: 1; }
.ach__badge {
  width: 38px; height: 38px; flex: 0 0 38px; display: grid; place-items: center;
  background: radial-gradient(circle at 40% 30%, #fff5c0, var(--yellow) 60%, #c98a00);
  border: 2px solid #7a5200; border-radius: 50%;
  font-size: 18px; animation: coinSpin 2s linear infinite;
}
.ach__txt { line-height: 1.4; }
.ach__label { font-family: var(--font-en); font-size: 8px; color: var(--lime); letter-spacing: 1px; }
.ach__name { font-family: var(--font-dot); font-size: 15px; color: #fff; letter-spacing: 1px; }

/* ============================================================
   カスタムカーソル（照準）+ 波紋
   ============================================================ */
.cursor {
  position: fixed; top: 0; left: 0; z-index: 9000; pointer-events: none;
  width: 30px; height: 30px; margin: -15px 0 0 -15px;
  will-change: transform; display: none;
}
.cursor-reticle {
  position: absolute; inset: 0;
  border: 2px solid var(--cyan); border-radius: 50%;
  box-shadow: 0 0 8px var(--cyan);
  transition: transform .12s, border-color .12s;
}
.cursor-reticle::before, .cursor-reticle::after {
  content: ""; position: absolute; background: var(--cyan);
}
.cursor-reticle::before { left: 50%; top: -6px; width: 2px; height: 8px; transform: translateX(-50%); box-shadow: 0 36px 0 var(--cyan); }
.cursor-reticle::after { top: 50%; left: -6px; height: 2px; width: 8px; transform: translateY(-50%); box-shadow: 36px 0 0 var(--cyan); }
.cursor.hover .cursor-reticle { transform: scale(1.4) rotate(45deg); border-color: var(--magenta); box-shadow: 0 0 10px var(--magenta); }
.cursor.hover .cursor-reticle::before, .cursor.hover .cursor-reticle::after { background: var(--magenta); box-shadow: none; }
.ripples { position: fixed; inset: 0; z-index: 8900; pointer-events: none; }
.ripple {
  position: fixed; width: 12px; height: 12px; margin: -6px 0 0 -6px;
  border: 2px solid var(--yellow); border-radius: 50%;
  animation: ripple .5s ease-out forwards;
}
@keyframes ripple { to { transform: scale(4); opacity: 0; } }

/* ============================================================
   レスポンシブ
   ============================================================ */
@media (max-width: 880px) {
  .char__wrap { grid-template-columns: 1fr; }
  .char__detail { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .char__radar { margin-top: 8px; }
}
@media (max-width: 720px) {
  .hud { grid-template-columns: 1fr auto; gap: 8px; }
  .hud__burger { display: flex; }
  .hud__nav {
    position: fixed; top: 0; right: 0; bottom: 0; width: min(74vw, 280px);
    flex-direction: column; justify-content: center; gap: 22px;
    background: rgba(5, 7, 26, .98); border-left: 3px solid var(--magenta);
    transform: translateX(110%); transition: transform .3s;
    font-size: 20px;
  }
  .hud.open .hud__nav { transform: none; }
  .hud.open .hud__burger span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hud.open .hud__burger span:nth-child(2) { opacity: 0; }
  .hud.open .hud__burger span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .hud__quest { grid-column: 1 / -1; }
  .system__grid { grid-template-columns: 1fr; }
  .char__grid { grid-template-columns: 1fr 1fr; }
  .ach-stack { top: 70px; right: 8px; left: 8px; align-items: flex-end; }
  .ach { min-width: 0; }
}
@media (max-width: 460px) {
  .hero__tag { letter-spacing: 2px; }
  .badge { padding: 7px 12px; }
  .foot__main { flex-direction: column; }
}

/* reduced-motion: 主要アニメは止める（演出はJS側で減速継続） */
@media (prefers-reduced-motion: reduce) {
  .boot__logo, .boot__now, .hero__press.on, .hero__sub[data-glitch],
  .hero__hint, .coin, .hud__logo-coin, .regist__cta-coin, .float-cta__coin,
  .ach__badge, .syscard__tap, .foot__co-title, .msgwin__cursor, .msgwin__next,
  .cselect.sel { animation: none !important; }
  .hero.shake, .regist.shake { animation: none !important; }
}
