/* AmA — サイバーパンクの夜の街。曲の低音（--beat）で光が脈打つ */
@font-face { font-family: "AmA Display"; src: url("./fonts/display-en.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "AmA Mono"; src: url("./fonts/mono.woff2") format("woff2"); font-display: swap; }

:root {
  --bg: #05030b;
  --ink: #fbf5ff;
  --dim: #b4a8c8;
  --pink: #ff2e97;
  --cyan: #2ef2ff;
  --yellow: #fcee0a;
  --violet: #8b5cff;
  --glass: rgba(14, 8, 28, .58);
  --line: rgba(255, 255, 255, .14);
  --beat: 0;
  --en: "AmA Display", "Segoe UI", system-ui, sans-serif;
  --mono: "AmA Mono", Consolas, Menlo, monospace;
  --body: "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Noto Sans JP", "Yu Gothic UI", Meiryo, system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --snap: cubic-bezier(.7, 0, .2, 1);
  --g: clamp(16px, 5vw, 72px);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.8; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
body.locked { overflow: hidden; height: 100vh; }
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 4px; }
::selection { background: var(--pink); color: #fff; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.sp { display: none; }

/* ── 背景レイヤー ── */

.fx-grain { position: fixed; inset: -50%; z-index: 1; pointer-events: none; opacity: .07; background-image: repeating-radial-gradient(circle at 13% 27%, #fff 0 1px, transparent 1px 3px), repeating-radial-gradient(circle at 71% 63%, #fff 0 1px, transparent 1px 4px); animation: grain 1s steps(4) infinite; }
.fx-scan { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .3; background: repeating-linear-gradient(to bottom, rgba(255, 255, 255, .035) 0 1px, transparent 1px 3px); }
.fx-dim { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: rgba(5, 3, 11, var(--dim, 0)); }
.fx-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(ellipse at 50% 40%, transparent 35%, rgba(0, 0, 0, .7)); }
.cursor-glow { position: fixed; z-index: 2; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; pointer-events: none; border-radius: 50%; background: radial-gradient(circle, rgba(46, 242, 255, .13), rgba(255, 46, 151, .05) 40%, transparent 65%); transform: translate(var(--cx, -999px), var(--cy, -999px)); mix-blend-mode: screen; }
.progress { position: fixed; z-index: 30; left: 0; right: 0; top: 0; height: 2px; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--pink), var(--cyan)); box-shadow: 0 0 12px var(--pink); }
.nav, main, .foot { position: relative; z-index: 5; }

/* ── 起動演出（オリジナル）：光のバースト・多重リング・漢字・配色反転・タイル増殖 ── */
.mono { font-family: var(--mono); letter-spacing: .14em; }
.boot { position: fixed; inset: 0; z-index: 60; overflow: hidden; background: #01020a; transition: opacity 1s var(--ease), visibility 1s; }
.boot.gone { opacity: 0; visibility: hidden; }
#bootfx { position: absolute; inset: 0; width: 100%; height: 100%; }
.boot.invert #bootfx { filter: hue-rotate(160deg) saturate(1.6) contrast(1.15); }
.boot.redshift #bootfx { filter: sepia(.6) hue-rotate(-30deg) saturate(3) contrast(1.2); }
.boot-frame i { position: absolute; width: 46px; height: 46px; border: 0 solid rgba(255, 245, 230, .85); opacity: 0; transition: opacity .4s; }
.boot-frame i:nth-child(1) { top: 18px; left: 18px; border-width: 3px 0 0 3px; } .boot-frame i:nth-child(2) { top: 18px; right: 18px; border-width: 3px 3px 0 0; }
.boot-frame i:nth-child(3) { bottom: 18px; left: 18px; border-width: 0 0 3px 3px; } .boot-frame i:nth-child(4) { bottom: 18px; right: 18px; border-width: 0 3px 3px 0; }
.boot.s1 .boot-frame i { opacity: 1; }
.boot-rings { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; opacity: 0; transform: scale(.4); transition: opacity .5s, transform .9s var(--snap); }
.boot.s1 .boot-rings { opacity: 1; transform: none; }
.boot-rings svg { width: min(92vmin, 760px); height: min(92vmin, 760px); overflow: visible; }
.rg circle { fill: none; stroke: rgba(255, 250, 240, .75); stroke-width: 1.5; }
.rg .dash { stroke-dasharray: 3 9; stroke-width: 6; }
.rg .tick { stroke-dasharray: 1 6; stroke-width: 14; stroke: rgba(255, 250, 240, .5); }
.rg text { fill: rgba(255, 250, 240, .85); font: 700 15px var(--mono); letter-spacing: 4px; }
.rg-b text { font: 900 18px var(--body); letter-spacing: 6px; }
.rg { transform-origin: 300px 300px; }
.rg-a { animation: spin 14s linear infinite; } .rg-b { animation: spin 9s linear infinite reverse; } .rg-c { animation: spin 5s linear infinite; }
.boot.s3 .rg-a { animation-duration: 3s; } .boot.s3 .rg-b { animation-duration: 2s; }
.boot-word { position: absolute; top: 50%; font: 900 clamp(64px, 13vw, 190px)/1 var(--body); color: #fffaf0; letter-spacing: .02em; transform: translateY(-50%) scale(1.6); opacity: 0; text-shadow: 0 0 30px rgba(255, 255, 255, .6); writing-mode: horizontal-tb; }
.boot-word.left { right: calc(50% + min(18vmin, 150px)); } .boot-word.right { left: calc(50% + min(18vmin, 150px)); }
.boot-word::before, .boot-word::after { content: attr(data-text); position: absolute; inset: 0; mix-blend-mode: screen; }
.boot-word::before { color: #ff2b4a; transform: translate(-6px, 2px); clip-path: inset(0 0 55% 0); }
.boot-word::after { color: #2ef2ff; transform: translate(6px, -2px); clip-path: inset(45% 0 0 0); }
.boot-word.hit { animation: word-slam .5s var(--snap) forwards; }
.boot-sigil { position: absolute; left: 50%; top: 50%; width: 74px; height: 74px; margin: -37px 0 0 -37px; display: grid; place-items: center; border: 2px solid rgba(255, 250, 240, .8); background: rgba(10, 16, 40, .7); box-shadow: 0 0 40px rgba(120, 200, 255, .6), inset 0 0 20px rgba(120, 200, 255, .4); font: 700 40px var(--en); color: #fff; animation: sigil 1.2s ease-in-out infinite; transition: opacity .3s, transform .5s var(--snap); }
.boot.s1 .boot-sigil { opacity: 0; transform: scale(3); }
.boot-corner { position: absolute; font-size: 11px; color: rgba(255, 250, 240, .75); line-height: 1.8; z-index: 2; }
.boot-corner.tl { top: 30px; left: 34px; } .boot-corner.br { bottom: 30px; right: 34px; font-size: 13px; }
.boot-end { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 16px; text-align: center; opacity: 0; pointer-events: none; transition: opacity .6s; z-index: 3; }
.boot.done .boot-end { opacity: 1; pointer-events: auto; }
.boot.done .boot-word, .boot.done .boot-rings { opacity: 0; transition: opacity .6s; }
.boot.done .boot-word { animation: word-out .5s var(--snap) forwards; }
.boot-logo { position: relative; margin: 0; font: 700 clamp(84px, 16vw, 180px)/1 var(--en); color: #fff; text-shadow: 0 0 30px rgba(46, 242, 255, .8), 0 0 80px rgba(255, 46, 151, .5); }
.boot-logo::before, .boot-logo::after { content: attr(data-text); position: absolute; inset: 0; mix-blend-mode: screen; }
.boot-logo::before { color: var(--cyan); clip-path: inset(0 0 60% 0); animation: glitch-a 2.4s steps(1) infinite; }
.boot-logo::after { color: var(--pink); clip-path: inset(50% 0 0 0); animation: glitch-b 2.4s steps(1) infinite; }
.enter-btn { position: relative; display: grid; gap: 2px; padding: 16px 46px; border: 1px solid var(--cyan); background: rgba(46, 242, 255, .08); color: #fff; cursor: pointer; clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); transition: background .3s, transform .3s var(--ease); animation: ready 1.6s var(--ease) infinite; }
.enter-btn:hover { background: var(--cyan); color: #00121a; transform: scale(1.04); }
.enter-label { font: 700 26px var(--en); letter-spacing: .4em; padding-left: .4em; }
.enter-sub { font-size: 11px; letter-spacing: .14em; opacity: .85; }
.enter-mute, .boot-skip { background: none; border: 0; color: rgba(255, 255, 255, .5); font-size: 12px; text-decoration: underline; cursor: pointer; }
.boot-skip { position: absolute; right: 34px; top: 30px; z-index: 4; pointer-events: auto; }
.boot.done .boot-skip { display: none; }
.boot.flash::after { content: ""; position: absolute; inset: 0; background: #fff; animation: boot-flash .5s ease-out forwards; pointer-events: none; z-index: 5; }
/* ENTER後のワープ */
.warp { position: fixed; inset: 0; z-index: 65; pointer-events: none; opacity: 0; background: repeating-conic-gradient(from 0deg at 50% 50%, transparent 0 2.2deg, rgba(255, 250, 240, .7) 2.2deg 2.5deg, transparent 2.5deg 5deg, rgba(46, 242, 255, .5) 5deg 5.2deg); -webkit-mask: radial-gradient(circle, transparent 6%, #000 40%); mask: radial-gradient(circle, transparent 6%, #000 40%); }
body.warping .warp { animation: warp 1.4s var(--snap) forwards; }
body.warping .boot-end { animation: suck .9s var(--snap) forwards; }

/* ── 背景映像（無音のMP4） ── */
.bg-video { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; background: #04030a; }
.bg-video video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 1.5s; }
body.video-on .bg-video video { opacity: 1; }
.bg-video::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 40%, rgba(5, 3, 11, .25), rgba(5, 3, 11, .65)), linear-gradient(rgba(5, 3, 11, .2), rgba(5, 3, 11, .45)); }
.bg-fallback { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: radial-gradient(ellipse at 30% 30%, rgba(255, 120, 170, .25), transparent 60%), radial-gradient(ellipse at 70% 70%, rgba(80, 140, 255, .25), transparent 60%), #05040c; animation: drift 14s ease-in-out infinite alternate; transition: opacity 1.5s; }
body.video-on .bg-fallback { opacity: 0; }

/* ── ナビ ── */
.nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 14px var(--g); background: linear-gradient(rgba(5, 3, 11, .85), rgba(5, 3, 11, .35)); backdrop-filter: blur(14px) saturate(1.5); -webkit-backdrop-filter: blur(14px) saturate(1.5); border-bottom: 1px solid rgba(255, 46, 151, .18); opacity: 0; transform: translateY(-20px); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 700 22px var(--en); letter-spacing: .06em; text-shadow: 0 0 calc(10px + var(--beat) * 26px) var(--pink); }
.brand img { border-radius: 8px; box-shadow: 0 0 16px rgba(255, 46, 151, .6); }
.links { display: flex; gap: 24px; font: 400 12px var(--mono); letter-spacing: .2em; }
.links a { text-decoration: none; color: var(--dim); position: relative; transition: color .2s; }
.links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1px; background: var(--cyan); transform: scaleX(0); transition: transform .3s var(--ease); }
.links a:hover { color: var(--ink); } .links a:hover::after { transform: scaleX(1); }
.player { margin-left: auto; display: flex; align-items: center; gap: 12px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); background: rgba(12, 6, 24, .6); border-radius: 999px; max-width: 420px; min-width: 0; }
.play { position: relative; flex: none; width: 32px; height: 32px; border-radius: 50%; border: 0; cursor: pointer; background: linear-gradient(135deg, var(--pink), var(--violet)); display: grid; grid-auto-flow: column; place-content: center; gap: 4px; box-shadow: 0 0 calc(6px + var(--beat) * 20px) var(--pink); }
.play span { width: 3px; height: 11px; background: #fff; border-radius: 2px; }
.play.paused span:first-child { width: 0; height: 0; background: none; border-style: solid; border-width: 6px 0 6px 10px; border-color: transparent transparent transparent #fff; margin-left: 3px; border-radius: 0; }
.play.paused span:last-child { display: none; }
.track { min-width: 0; display: grid; width: 150px; }
.np { font: 400 9px var(--mono); letter-spacing: .3em; color: var(--cyan); }
.ttl { overflow: hidden; white-space: nowrap; font-size: 11.5px; -webkit-mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); mask: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.ttl span { display: inline-block; padding-left: 100%; animation: marquee 16s linear infinite; }
#mini { flex: none; width: 80px; height: 24px; }
.vol input { width: 76px; accent-color: var(--pink); }
.nav-join { flex: none; padding: 9px 18px; border: 1px solid var(--yellow); background: rgba(252, 238, 10, .08); color: var(--yellow); font: 700 13px var(--en); letter-spacing: .2em; cursor: pointer; clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px); transition: background .2s, color .2s; }
.nav-join:hover { background: var(--yellow); color: #000; }

/* ── ヒーロー ── */
.hero { position: relative; min-height: calc(100svh - 64px); display: grid; justify-items: center; align-content: center; text-align: center; padding: 40px var(--g) 90px; gap: 20px; }
.hud { position: absolute; top: 18px; display: flex; gap: 14px; align-items: center; font: 400 11px var(--mono); letter-spacing: .2em; color: rgba(46, 242, 255, .75); }
.hud-tl { left: var(--g); } .hud-tr { right: var(--g); }
.bars { display: inline-flex; gap: 3px; align-items: flex-end; height: 12px; }
.bars i { width: 3px; background: var(--cyan); animation: bar 1.2s ease-in-out infinite; }
.bars i:nth-child(1) { height: 30%; } .bars i:nth-child(2) { height: 55%; animation-delay: .15s; } .bars i:nth-child(3) { height: 80%; animation-delay: .3s; } .bars i:nth-child(4) { height: 100%; animation-delay: .45s; }
.kicker { margin: 0; font: 400 13px var(--mono); letter-spacing: .7em; color: var(--cyan); text-shadow: 0 0 14px var(--cyan); }
.logo { position: relative; margin: 0; font: 700 clamp(84px, 15vw, 220px)/.9 var(--en); letter-spacing: .04em; color: #fff; text-shadow: 0 0 2px #fff, 0 0 calc(18px + var(--beat) * 40px) rgba(46, 242, 255, .85), 0 0 calc(60px + var(--beat) * 110px) rgba(255, 46, 151, .45); animation: logo-jitter 2.8s steps(1) infinite 3s; }
/* 横に裂けるスライス（グリッチ） */
.logo-slice { position: absolute; inset: 0; pointer-events: none; color: #fff; text-shadow: inherit; }
.logo-slice.s1 { clip-path: inset(30% 0 52% 0); animation: slice-a 2.8s steps(1) infinite 3s; }
.logo-slice.s2 { clip-path: inset(66% 0 18% 0); animation: slice-b 3.3s steps(1) infinite 3.2s; }
.glitch::before, .glitch::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen; }
.glitch::before { color: var(--cyan); clip-path: inset(0 0 58% 0); transform: translate(calc(-3px - var(--beat) * 12px), 0); opacity: calc(.25 + var(--beat) * .7); animation: glitch-a 3.2s steps(1) infinite; }
.glitch::after { color: var(--pink); clip-path: inset(48% 0 0 0); transform: translate(calc(3px + var(--beat) * 12px), 0); opacity: calc(.25 + var(--beat) * .7); animation: glitch-b 3.2s steps(1) infinite; }
.stats { display: flex; gap: clamp(16px, 4vw, 52px); margin: 10px 0 6px; padding: 14px 28px; border: 1px solid var(--line); background: var(--glass); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); clip-path: polygon(14px 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%, 0 14px); }
.stat { display: grid; justify-items: center; }
.stat b { font: 700 clamp(26px, 3.6vw, 40px)/1.1 var(--en); color: #fff; text-shadow: 0 0 16px var(--cyan); }
.stat span { display: inline-flex; align-items: center; gap: 6px; font: 400 10px var(--mono); letter-spacing: .25em; color: var(--dim); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3dff8a; box-shadow: 0 0 10px #3dff8a; animation: blink 1.4s steps(2) infinite; }
.cta { display: grid; justify-items: center; gap: 14px; margin-top: 8px; }
.cta-sub { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.btn-join { position: relative; display: grid; gap: 2px; padding: 22px 52px; border: 0; cursor: pointer; isolation: isolate; color: #fff; clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); transition: transform .35s var(--ease); }
.btn-bg { position: absolute; inset: 0; z-index: -1; background: linear-gradient(110deg, var(--pink), var(--violet) 45%, var(--cyan)); background-size: 220% 100%; animation: sheen 4.5s linear infinite; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); filter: brightness(calc(1 + var(--beat) * .35)); }
.btn-join::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%); transform: translateX(-120%); animation: shine 3.2s var(--ease) infinite; }
.btn-join:hover { transform: translateY(-3px) scale(1.03); }
.btn-main { font-size: clamp(18px, 2.4vw, 23px); font-weight: 900; letter-spacing: .14em; }
.btn-sub { font-size: 12px; opacity: .9; letter-spacing: .06em; }
.btn-join.big { padding: 28px 68px; }
.btn-ghost { display: inline-flex; align-items: center; padding: 11px 18px; border: 1px solid rgba(46, 242, 255, .45); background: rgba(46, 242, 255, .06); color: var(--ink); font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .2s, border-color .2s, transform .3s var(--ease); }
.btn-ghost:hover { background: rgba(46, 242, 255, .16); border-color: var(--cyan); }
.scroll-cue { position: absolute; bottom: 26px; left: 50%; width: 26px; height: 42px; margin-left: -13px; border: 1px solid rgba(255, 255, 255, .4); border-radius: 14px; }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 3px; height: 8px; margin-left: -1.5px; border-radius: 2px; background: var(--cyan); animation: cue 1.8s var(--ease) infinite; }

.ticker { position: relative; z-index: 5; overflow: hidden; background: var(--yellow); color: #0a0a0a; transform: rotate(-2deg) scale(1.04); box-shadow: 0 0 40px rgba(252, 238, 10, .35); }
.ticker-track { display: flex; gap: 30px; width: max-content; padding: 13px 0 11px; font: 700 clamp(14px, 1.8vw, 20px) var(--en); letter-spacing: .24em; animation: marquee-x 26s linear infinite; }

/* ── セクション共通 ── */
.sec { position: relative; max-width: 1240px; margin: 0 auto; padding: clamp(100px, 14vw, 180px) var(--g); }
.sec-head { margin-bottom: 56px; }
.sec-no { margin: 0 0 10px; font: 400 12px var(--mono); letter-spacing: .4em; color: var(--pink); text-shadow: 0 0 12px var(--pink); }
.sec-title { position: relative; display: inline-block; margin: 0; font-size: clamp(36px, 6vw, 80px); line-height: 1.1; font-weight: 900; letter-spacing: .02em; text-shadow: 0 0 30px rgba(46, 242, 255, .35); }
.sec-title::before, .sec-title::after { content: attr(data-text); position: absolute; inset: 0; pointer-events: none; opacity: 0; }
.reveal.in .sec-title::before { color: var(--cyan); animation: title-glitch .9s steps(2) 1; }
.reveal.in .sec-title::after { color: var(--pink); animation: title-glitch .9s steps(2) 1 reverse; }
.reveal { opacity: 0; transform: translateY(50px) scale(.98); filter: blur(10px); transition: opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }

/* 紹介 */
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: clamp(28px, 5vw, 70px); align-items: center; }
.holo-frame { position: relative; margin: 0; aspect-ratio: 16 / 9; border: 1px solid rgba(46, 242, 255, .5); background: var(--glass); overflow: hidden; box-shadow: 0 0 60px rgba(46, 242, 255, .2), inset 0 0 40px rgba(255, 46, 151, .15); clip-path: polygon(22px 0, 100% 0, 100% calc(100% - 22px), calc(100% - 22px) 100%, 0 100%, 0 22px); transform-style: preserve-3d; }
.holo-frame > img { width: 100%; height: 100%; object-fit: cover; filter: saturate(1.2) contrast(1.05); }
.holo-fallback { position: absolute; inset: 0; display: grid; place-items: center; font: 700 clamp(60px, 10vw, 140px) var(--en); color: rgba(255, 255, 255, .85); text-shadow: 0 0 40px var(--pink); background: radial-gradient(circle at 30% 30%, rgba(255, 46, 151, .4), transparent 60%), radial-gradient(circle at 70% 70%, rgba(46, 242, 255, .35), transparent 60%); }
.holo-frame figcaption { position: absolute; left: 16px; bottom: 16px; display: flex; gap: 12px; align-items: center; padding: 10px 16px 10px 10px; background: rgba(5, 3, 11, .75); border: 1px solid var(--line); backdrop-filter: blur(8px); }
.holo-frame figcaption img { border-radius: 12px; }
.holo-frame figcaption b { display: block; font: 700 20px var(--en); line-height: 1.1; }
.holo-frame figcaption small { font: 400 10px var(--mono); letter-spacing: .2em; color: var(--cyan); }
.holo-scan { position: absolute; left: 0; right: 0; height: 30%; top: -30%; background: linear-gradient(transparent, rgba(46, 242, 255, .2), transparent); animation: holo-scan 3.4s linear infinite; pointer-events: none; }
.about-text .lead { font-size: clamp(19px, 2.2vw, 26px); font-weight: 900; line-height: 1.6; margin: 0 0 18px; }
.about-text p { color: #d8cfe6; }
.chips { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; padding: 0; margin: 22px 0 0; }
.chips li { padding: 6px 14px; border: 1px solid rgba(255, 46, 151, .5); color: #ffd1ea; font-size: 13px; font-weight: 700; background: rgba(255, 46, 151, .08); }

/* 機能カード */
.cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card { position: relative; padding: 28px 22px 26px; background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); overflow: hidden; transform-style: preserve-3d; transition: border-color .3s, box-shadow .3s, opacity 1.1s var(--ease), transform 1.1s var(--ease), filter 1.1s var(--ease); clip-path: polygon(16px 0, 100% 0, 100% calc(100% - 16px), calc(100% - 16px) 100%, 0 100%, 0 16px); }
.card::before { content: ""; position: absolute; inset: 0; background: radial-gradient(240px circle at var(--mx, 50%) var(--my, 50%), rgba(46, 242, 255, .22), transparent 60%); opacity: 0; transition: opacity .3s; }
.card:hover { border-color: rgba(46, 242, 255, .6); box-shadow: 0 0 40px rgba(46, 242, 255, .2); }
.card:hover::before { opacity: 1; }
.card:nth-child(4n + 2) { transition-delay: .06s; } .card:nth-child(4n + 3) { transition-delay: .12s; } .card:nth-child(4n + 4) { transition-delay: .18s; }
.card-ico { position: relative; display: inline-block; padding: 4px 10px; font: 700 13px var(--en); letter-spacing: .14em; color: #000; background: var(--cyan); box-shadow: 0 0 18px rgba(46, 242, 255, .6); }
.card:nth-child(even) .card-ico { background: var(--pink); color: #fff; box-shadow: 0 0 18px rgba(255, 46, 151, .6); }
.card h3 { position: relative; margin: 18px 0 8px; font-size: 18px; font-weight: 900; }
.card p { position: relative; margin: 0; font-size: 14px; color: #cfc4de; line-height: 1.75; }

/* 参加の流れ */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; position: relative; }
.steps::before { content: ""; position: absolute; top: 36px; left: 8%; right: 8%; height: 2px; background: linear-gradient(90deg, var(--pink), var(--cyan), var(--yellow)); box-shadow: 0 0 14px var(--pink); }
.step { position: relative; padding: 0 10px; text-align: center; }
.step:nth-child(2) { transition-delay: .12s; } .step:nth-child(3) { transition-delay: .24s; }
.step b { position: relative; display: inline-grid; place-items: center; width: 72px; height: 72px; border-radius: 50%; font: 700 24px var(--en); background: var(--bg); border: 2px solid var(--cyan); box-shadow: 0 0 30px rgba(46, 242, 255, .5), inset 0 0 20px rgba(46, 242, 255, .3); }
.step h3 { margin: 22px 0 8px; font-size: 20px; font-weight: 900; }
.step p { margin: 0; color: #cfc4de; font-size: 14.5px; }

/* ルール */
.rule-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.rule { display: grid; grid-template-columns: 70px 1fr; gap: 18px; padding: 26px; background: var(--glass); border: 1px solid var(--line); border-left: 3px solid var(--yellow); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.rule b { font: 700 40px/1 var(--en); color: var(--yellow); text-shadow: 0 0 18px rgba(252, 238, 10, .5); }
.rule h3 { margin: 0 0 6px; font-size: 19px; font-weight: 900; }
.rule p { margin: 0; color: #cfc4de; font-size: 14.5px; }

/* FAQ */
.qa { max-width: 900px; border-top: 1px solid rgba(46, 242, 255, .3); }
.qa details { border-bottom: 1px solid rgba(46, 242, 255, .3); background: linear-gradient(90deg, rgba(46, 242, 255, .04), transparent); }
.qa summary { cursor: pointer; list-style: none; display: grid; grid-template-columns: 1fr 24px; gap: 14px; align-items: center; padding: 22px 16px; font-size: clamp(15px, 1.6vw, 18px); font-weight: 800; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 22px var(--mono); color: var(--cyan); transition: transform .35s var(--ease); justify-self: end; }
.qa details[open] summary::after { transform: rotate(45deg); }
.qa details p { margin: 0; padding: 0 16px 22px; color: #d8cfe6; }

/* 最後 */
.final { text-align: center; display: grid; justify-items: center; gap: 22px; padding-bottom: clamp(120px, 16vw, 220px); }
.final-kicker { margin: 0; font: 400 13px var(--mono); letter-spacing: .5em; color: var(--cyan); }
.final-title { position: relative; margin: 0; font: 700 clamp(64px, 14vw, 200px)/.9 var(--en); color: #fff; text-shadow: 0 0 calc(30px + var(--beat) * 60px) rgba(255, 46, 151, .9); }

.foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 26px; padding: 24px var(--g); border-top: 1px solid rgba(255, 46, 151, .2); font: 400 11px var(--mono); letter-spacing: .14em; color: rgba(255, 255, 255, .45); background: rgba(5, 3, 11, .7); }

/* トースト・待機 */
.toast { position: fixed; z-index: 70; left: 50%; bottom: 28px; transform: translateX(-50%); padding: 12px 22px; background: rgba(10, 5, 20, .9); border: 1px solid var(--cyan); box-shadow: 0 0 30px rgba(46, 242, 255, .4); font-weight: 700; font-size: 14px; animation: toast .35s var(--ease); }
.toast[hidden] { display: none; }
.waiting { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; background: rgba(4, 2, 8, .6); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: fade .5s var(--ease); }
.waiting[hidden] { display: none; }
.waiting-card { width: min(92vw, 460px); padding: 32px 28px; text-align: center; border: 1px solid rgba(46, 242, 255, .4); background: linear-gradient(160deg, rgba(40, 14, 60, .9), rgba(10, 6, 22, .95)); box-shadow: 0 0 90px rgba(255, 46, 151, .35); clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px); }
.waiting-kicker { margin: 0; font: 400 11px var(--mono); letter-spacing: .4em; color: var(--cyan); }
.waiting-title { margin: 10px 0 8px; font-size: 19px; font-weight: 900; }
.waiting-body { margin: 0 0 18px; font-size: 13px; color: var(--dim); }
.waiting-link { display: inline-block; padding: 12px 22px; background: linear-gradient(110deg, var(--pink), var(--violet)); color: #fff; text-decoration: none; font-weight: 800; }
.waiting-close { display: block; margin: 14px auto 0; background: none; border: 0; color: var(--dim); text-decoration: underline; cursor: pointer; font-size: 12px; }

/* ── 入場後の登場 ── */
.hero > * { opacity: 0; }
body.live .nav { animation: drop .9s var(--ease) forwards .3s; }
body.live .hud { animation: rise .8s var(--ease) forwards .6s; }
body.live .kicker { animation: rise 1s var(--ease) forwards .8s; }
body.live .logo { animation: logo-in 1.9s var(--snap) forwards 1s, logo-jitter 2.8s steps(1) infinite 3s; }
body.live .stats { animation: rise 1.2s var(--ease) forwards 2.35s; }
body.live .cta { animation: rise 1.2s var(--ease) forwards 2.6s; }
body.live .scroll-cue { animation: rise 1s var(--ease) forwards 3s; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes grid-run { to { background-position: 0 48px; } }
@keyframes cross { 0% { transform: translateY(-36vmin); opacity: 0; } 20% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateY(36vmin); opacity: 0; } }
@keyframes ready { 50% { box-shadow: 0 0 40px rgba(46, 242, 255, .7); } }
@keyframes warp { 0% { opacity: 0; transform: scale(.4) rotate(0); } 30% { opacity: 1; } 100% { opacity: 0; transform: scale(4) rotate(30deg); } }
@keyframes suck { to { transform: scale(.2); opacity: 0; filter: blur(12px); } }
@keyframes logo-jitter { 0%, 88%, 100% { transform: none; } 89% { transform: translate(-4px, 1px) skewX(-8deg); } 91% { transform: translate(5px, -1px); } 93% { transform: translate(-2px, 0) skewX(6deg); } 95% { transform: none; } }
@keyframes slice-a { 0%, 86%, 100% { transform: none; opacity: 0; } 87% { transform: translateX(-26px); opacity: 1; color: var(--cyan); } 90% { transform: translateX(18px); opacity: 1; } 93% { opacity: 0; } }
@keyframes slice-b { 0%, 84%, 100% { transform: none; opacity: 0; } 85% { transform: translateX(30px); opacity: 1; color: var(--pink); } 89% { transform: translateX(-14px); opacity: 1; } 92% { opacity: 0; } }
@keyframes word-slam { 0% { opacity: 0; transform: translateY(-50%) scale(1.8); filter: blur(10px); } 60% { opacity: 1; transform: translateY(-50%) scale(.96); filter: none; } 100% { opacity: 1; transform: translateY(-50%) scale(1); } }
@keyframes word-out { from { opacity: 1; transform: translateY(-50%) scale(1); filter: none; } to { opacity: 0; transform: translateY(-50%) scale(.6); filter: blur(12px); } }
@keyframes sigil { 50% { box-shadow: 0 0 70px rgba(120, 200, 255, .9), inset 0 0 30px rgba(120, 200, 255, .6); } }
@keyframes boot-flash { from { opacity: .9; } to { opacity: 0; } }
@keyframes drift { to { background-position: 10% 10%, -10% -10%, 0 0; filter: hue-rotate(30deg); } }
@keyframes grain { 0% { transform: translate(0, 0); } 25% { transform: translate(-3%, 2%); } 50% { transform: translate(2%, -3%); } 75% { transform: translate(-2%, -1%); } }
@keyframes rain-bg { to { background-position: -40px 120px; } }
@keyframes flicker { 0%, 19%, 21%, 23%, 55%, 57%, 100% { opacity: 1; } 20%, 22%, 56% { opacity: .2; } }
@keyframes ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }
@keyframes marquee { to { transform: translateX(-100%); } }
@keyframes marquee-x { to { transform: translateX(-50%); } }
@keyframes sheen { to { background-position: -220% 0; } }
@keyframes shine { 0%, 55% { transform: translateX(-120%); } 100% { transform: translateX(120%); } }
@keyframes bar { 50% { transform: scaleY(.4); } }
@keyframes blink { 50% { opacity: .3; } }
@keyframes cue { 0% { transform: translateY(0); opacity: 1; } 100% { transform: translateY(16px); opacity: 0; } }
@keyframes drop { to { opacity: 1; transform: none; } }
@keyframes rise { from { opacity: 0; transform: translateY(30px); filter: blur(10px); } to { opacity: 1; transform: none; filter: none; } }
@keyframes logo-in { 0% { opacity: 0; transform: scale(2); filter: blur(40px); letter-spacing: .5em; } 40% { opacity: 1; filter: blur(0); } 55% { transform: scale(.96); letter-spacing: -.02em; } 62% { transform: scale(1.02) skewX(-6deg); } 68% { transform: skewX(4deg); } 100% { opacity: 1; transform: none; letter-spacing: -.02em; } }
@keyframes glitch-a { 0%, 90%, 100% { clip-path: inset(0 0 58% 0); } 92% { clip-path: inset(20% 0 50% 0); transform: translate(-14px, 2px); } 94% { clip-path: inset(70% 0 10% 0); transform: translate(10px, 0); } 96% { clip-path: inset(5% 0 80% 0); } }
@keyframes glitch-b { 0%, 90%, 100% { clip-path: inset(48% 0 0 0); } 91% { clip-path: inset(60% 0 20% 0); transform: translate(14px, -2px); } 93% { clip-path: inset(10% 0 70% 0); transform: translate(-10px, 0); } 97% { clip-path: inset(85% 0 0 0); } }
@keyframes title-glitch { 0% { opacity: .9; transform: translate(-8px, 0); clip-path: inset(0 0 60% 0); } 50% { opacity: .9; transform: translate(8px, 0); clip-path: inset(40% 0 20% 0); } 100% { opacity: 0; transform: none; } }
@keyframes holo-scan { to { top: 110%; } }
@keyframes toast { from { opacity: 0; transform: translate(-50%, 16px); } }
@keyframes fade { from { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
@media (max-width: 1100px) {
  .links { display: none; }
  .cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .nav { flex-wrap: wrap; gap: 10px 14px; }
  .player { order: 3; width: 100%; max-width: none; }
  .track { flex: 1; width: auto; }
  #mini { display: none; }
  .nav-join { margin-left: auto; }
  .hud { display: none; }
  .about-grid, .rule-list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .cards { grid-template-columns: 1fr; }
  .stats { padding: 12px 18px; }
  .sp { display: inline; }
  .btn-join { padding: 20px 30px; }
  .btn-join.big { padding: 24px 36px; }
}
/* ───────── 起動演出：豪華版（金の魔法陣・字幕・衝撃） ───────── */
.boot.shake #bootfx, .boot.shake .boot-rings { animation: boot-shake .42s cubic-bezier(.36, .07, .19, .97); }
@keyframes boot-shake { 0% { transform: scale(1.04) translate(0, 0); } 15% { transform: scale(1.04) translate(-10px, 6px); } 30% { transform: scale(1.04) translate(9px, -7px); } 45% { transform: scale(1.04) translate(-6px, -4px); } 60% { transform: scale(1.04) translate(5px, 5px); } 80% { transform: scale(1.02) translate(-2px, 1px); } 100% { transform: none; } }
.boot-rings svg { width: min(58vmin, 520px); height: min(58vmin, 520px); }
.rg circle { stroke: rgba(255, 222, 150, .8); }
.rg .tick { stroke: rgba(255, 214, 140, .55); }
.rg text { fill: rgba(255, 232, 180, .9); }
.boot-word { color: #fff8e6; text-shadow: 0 0 18px rgba(255, 255, 255, .7), 0 0 50px rgba(255, 190, 80, .85), 0 0 110px rgba(255, 140, 40, .55); }
.boot-word.hit { animation: word-slam-gold .55s var(--snap) forwards; }
@keyframes word-slam-gold {
  0% { opacity: 0; transform: translateY(-50%) scale(2.4); filter: blur(14px) brightness(3); letter-spacing: .4em; }
  55% { opacity: 1; transform: translateY(-50%) scale(.94); filter: brightness(1.6); letter-spacing: .02em; }
  100% { opacity: 1; transform: translateY(-50%) scale(1); filter: none; }
}
/* 字幕（英語の副題）：細い金の線で挟む */
.boot-cap { position: absolute; left: 50%; top: calc(50% + min(19vmin, 150px)); transform: translateX(-50%); display: flex; align-items: center; gap: 14px; white-space: nowrap; font: 700 clamp(11px, 1.4vw, 15px) var(--mono); letter-spacing: .5em; padding-left: .5em; color: #ffe2a6; text-shadow: 0 0 12px rgba(255, 180, 70, .9); opacity: 0; z-index: 2; }
.boot-cap i { display: block; width: clamp(30px, 8vw, 110px); height: 1px; background: linear-gradient(90deg, transparent, #ffd37a); }
.boot-cap i:last-child { transform: scaleX(-1); }
.boot-cap.hit { animation: cap-in .7s var(--ease) forwards; }
.boot.done .boot-cap { opacity: 0 !important; transition: opacity .4s; animation: none; }
@keyframes cap-in { 0% { opacity: 0; letter-spacing: 1.4em; filter: blur(6px); } 100% { opacity: 1; letter-spacing: .5em; filter: none; } }
/* 最終画面：左右から滑り込む大きな文字 */
.boot-side { position: absolute; top: 50%; font: 700 clamp(26px, 4.6vw, 70px)/1 var(--en); letter-spacing: .3em; color: transparent; -webkit-text-stroke: 1px rgba(255, 214, 140, .85); text-shadow: 0 0 30px rgba(255, 170, 60, .35); opacity: 0; pointer-events: none; z-index: 2; }
.boot-side.l { left: 4vw; transform: translate(-60vw, -50%); }
.boot-side.r { right: 4vw; transform: translate(60vw, -50%); }
.boot.done .boot-side { opacity: 1; transform: translate(0, -50%); transition: transform 1s var(--ease) .15s, opacity .6s .15s; }
/* ロゴの上下：小見出しと金の飾り線 */
.boot-kicker { margin: 0; font-size: 11px; letter-spacing: .45em; color: #ffd98f; text-shadow: 0 0 10px rgba(255, 180, 70, .8); opacity: 0; }
.boot-sub { display: flex; align-items: center; gap: 14px; margin: -4px 0 6px; font: 700 clamp(12px, 1.6vw, 16px) var(--en); letter-spacing: .6em; padding-left: .6em; color: #ffe7b8; opacity: 0; }
.boot-sub i { width: clamp(28px, 7vw, 90px); height: 1px; background: linear-gradient(90deg, transparent, #ffd37a); position: relative; }
.boot-sub i::after { content: ""; position: absolute; right: -3px; top: -3px; width: 7px; height: 7px; background: #ffd37a; transform: rotate(45deg); box-shadow: 0 0 10px #ffb347; }
.boot-sub i:last-child { transform: scaleX(-1); }
.boot.done .boot-kicker { animation: rise-in .8s var(--ease) .2s forwards; }
.boot.done .boot-sub { animation: rise-in .8s var(--ease) .45s forwards; }
.boot.done .boot-logo { animation: logo-stamp .9s var(--snap) both; }
.boot-logo { text-shadow: 0 0 30px rgba(46, 242, 255, .8), 0 0 80px rgba(255, 46, 151, .5), 0 0 140px rgba(255, 180, 70, .55); }
@keyframes logo-stamp { 0% { opacity: 0; transform: scale(3.2); filter: blur(18px) brightness(4); } 50% { opacity: 1; transform: scale(.92); filter: brightness(1.8); } 75% { transform: scale(1.03); } 100% { transform: none; filter: none; } }
@keyframes rise-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } to { opacity: 1; transform: none; filter: none; } }
/* ENTER：光が走る */
.enter-btn { overflow: hidden; border-color: #ffd37a; box-shadow: 0 0 30px rgba(255, 190, 80, .25); }
.enter-btn::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; left: -60%; background: linear-gradient(100deg, transparent, rgba(255, 240, 200, .55), transparent); animation: btn-sheen 2.4s ease-in-out infinite 1s; pointer-events: none; }
@keyframes btn-sheen { 0% { left: -60%; } 60%, 100% { left: 130%; } }
@media (max-width: 760px) {
  .boot-side { display: none; }
  .boot-cap { letter-spacing: .3em; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  .boot.shake #bootfx, .boot.shake .boot-rings, .boot.done .boot-logo, .enter-btn::after { animation: none; }
}
.boot-logo::before, .boot-logo::after, .boot-word::before, .boot-word::after { text-shadow: none; } /* 切り抜きで光が四角く見えないように */

/* ───────── 起動演出：スマート版（激しさを抑え、近未来のHUDを足す） ───────── */
.boot-grid { position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .5;
  background-image: linear-gradient(rgba(120, 230, 255, .07) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 230, 255, .07) 1px, transparent 1px);
  background-size: 44px 44px; background-position: center;
  -webkit-mask: radial-gradient(ellipse at center, #000 20%, transparent 75%); mask: radial-gradient(ellipse at center, #000 20%, transparent 75%);
  animation: grid-drift 12s linear infinite; }
@keyframes grid-drift { to { background-position: center 44px; } }
#bootfx { z-index: 0; }
.boot-corner.bl { bottom: 30px; left: 34px; white-space: pre; font-size: 10px; color: rgba(160, 235, 255, .7); }
.boot.shake #bootfx, .boot.shake .boot-rings { animation: boot-shake-soft .3s ease-out; }
@keyframes boot-shake-soft { 0% { transform: scale(1.01) translate(0, 0); } 30% { transform: scale(1.01) translate(-3px, 2px); } 60% { transform: scale(1.01) translate(2px, -2px); } 100% { transform: none; } }
.boot.flash::after { animation: boot-flash-soft .4s ease-out forwards; }
@keyframes boot-flash-soft { from { opacity: .35; } to { opacity: 0; } }
.boot.invert #bootfx { filter: hue-rotate(160deg) saturate(1.2) contrast(1.05); }
.boot.redshift #bootfx { filter: hue-rotate(-20deg) saturate(1.4); }
/* 漢字：光を抑えて、ホログラムのような細い縁取りと走査線 */
.boot-word { color: #f4fbff; text-shadow: 0 0 12px rgba(255, 255, 255, .45), 0 0 36px rgba(120, 220, 255, .4); -webkit-text-stroke: .5px rgba(160, 240, 255, .6);
  background: repeating-linear-gradient(transparent 0 3px, rgba(120, 230, 255, .08) 3px 4px); -webkit-background-clip: text; background-clip: text; }
.boot-word.hit { animation: word-slam-smart .5s var(--ease) forwards; }
@keyframes word-slam-smart {
  0% { opacity: 0; transform: translateY(-50%) scale(1.25); filter: blur(8px); letter-spacing: .25em; clip-path: inset(0 0 100% 0); }
  60% { opacity: 1; filter: blur(0); letter-spacing: .02em; clip-path: inset(0 0 0 0); }
  100% { opacity: 1; transform: translateY(-50%) scale(1); filter: none; }
}
.boot-word::before { opacity: .55; transform: translate(-3px, 1px); }
.boot-word::after { opacity: .55; transform: translate(3px, -1px); }
.boot-cap { color: #dff6ff; text-shadow: 0 0 10px rgba(120, 220, 255, .6); }
.boot-cap i { background: linear-gradient(90deg, transparent, rgba(120, 230, 255, .9)); }
.boot-side { -webkit-text-stroke: 1px rgba(160, 235, 255, .7); text-shadow: 0 0 24px rgba(120, 220, 255, .3); }
.boot-kicker { color: #bff0ff; text-shadow: 0 0 10px rgba(120, 220, 255, .7); }
.boot-logo { text-shadow: 0 0 24px rgba(46, 242, 255, .7), 0 0 70px rgba(255, 46, 151, .35), 0 0 120px rgba(255, 200, 120, .3); }
@keyframes logo-stamp { 0% { opacity: 0; transform: scale(1.6); filter: blur(12px) brightness(2); letter-spacing: .3em; } 60% { opacity: 1; transform: scale(.98); filter: brightness(1.2); letter-spacing: 0; } 100% { transform: none; filter: none; } }
.enter-btn { border-color: rgba(120, 230, 255, .9); box-shadow: 0 0 24px rgba(120, 220, 255, .2), inset 0 0 20px rgba(120, 220, 255, .08); }
.enter-btn::after { background: linear-gradient(100deg, transparent, rgba(200, 245, 255, .4), transparent); }
@media (max-width: 760px) { .boot-corner.bl { display: none; } }

/* ───────── 起動演出：オリジナル版（画面分割・稲妻・揺れなし／光の粒からロゴが生まれる） ───────── */
.boot.done .boot-logo { opacity: 0; animation: none; }
.boot.formed .boot-logo { animation: logo-materialize .8s var(--ease) forwards; }
@keyframes logo-materialize { 0% { opacity: 0; filter: blur(5px) brightness(2.4); } 40% { opacity: 1; } 100% { opacity: 1; filter: none; } }

/* ───────── ヒーロー：作り直し（起動演出と同じ、金と水色の細い線の近未来デザイン） ───────── */
:root { --logo: "Michroma", "AmA Display", "Segoe UI", sans-serif; --hud: "Chakra Petch", "AmA Mono", Consolas, monospace; --ice: 160, 235, 255; --gold: 255, 218, 150; }
.hero { gap: 24px; }
.hud { font-family: var(--hud); font-weight: 500; color: rgba(var(--ice), .7); }
.kicker { display: flex; align-items: center; gap: 16px; font: 600 12px var(--hud); letter-spacing: .6em; padding-left: .6em; color: #e4f7ff; text-shadow: 0 0 10px rgba(120, 220, 255, .45); }
.kicker i { display: block; width: clamp(26px, 7vw, 84px); height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--ice), .9)); }
.kicker i:last-child { transform: scaleX(-1); }
/* ロゴ：細身で横に広い書体、白から氷色へのグラデーション、四隅に金の括弧 */
.logo { padding: .22em .55em .18em; font: 400 clamp(54px, 10.5vw, 150px)/1 var(--logo); letter-spacing: .08em; color: transparent;
  background: linear-gradient(180deg, #ffffff 0%, #eefaff 50%, #9fd9ee 100%); -webkit-background-clip: text; background-clip: text;
  text-shadow: none; filter: drop-shadow(0 0 16px rgba(120, 220, 255, .35)) drop-shadow(0 0 1px rgba(255, 255, 255, .8)); animation: none; }
.logo::after { content: ""; position: absolute; left: 8%; right: 8%; top: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(var(--ice), .95), transparent); opacity: 0; animation: logo-scan 5s ease-in-out infinite 3s; }
.logo-frame { position: absolute; inset: 0; pointer-events: none; }
.logo-frame i { position: absolute; width: clamp(14px, 2vw, 24px); height: clamp(14px, 2vw, 24px); border: 0 solid rgba(var(--gold), .85); }
.logo-frame i:nth-child(1) { top: 0; left: 0; border-width: 1px 0 0 1px; } .logo-frame i:nth-child(2) { top: 0; right: 0; border-width: 1px 1px 0 0; }
.logo-frame i:nth-child(3) { bottom: 0; left: 0; border-width: 0 0 1px 1px; } .logo-frame i:nth-child(4) { bottom: 0; right: 0; border-width: 0 1px 1px 0; }
@keyframes logo-scan { 0% { top: 0; opacity: 0; } 10% { opacity: 1; } 45% { top: 100%; opacity: .8; } 55%, 100% { top: 100%; opacity: 0; } }
@keyframes hero-logo-in { 0% { opacity: 0; letter-spacing: .45em; filter: blur(10px); } 100% { opacity: 1; letter-spacing: .08em; filter: drop-shadow(0 0 16px rgba(120, 220, 255, .35)) drop-shadow(0 0 1px rgba(255, 255, 255, .8)); } }
body.live .logo { animation: hero-logo-in 1.4s var(--ease) forwards .9s; }
/* 数字のパネル：細い枠と仕切り線、隅に金の目印 */
.stats { position: relative; gap: 0; padding: 0; margin: 4px 0 8px; border: 1px solid rgba(var(--ice), .22); background: rgba(6, 10, 24, .5); clip-path: none; }
.stats::before, .stats::after { content: ""; position: absolute; width: 10px; height: 10px; border: 0 solid rgba(var(--gold), .9); }
.stats::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; } .stats::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.stat { position: relative; padding: 12px clamp(18px, 3.4vw, 40px); }
.stat + .stat::before { content: ""; position: absolute; left: 0; top: 24%; bottom: 24%; width: 1px; background: rgba(var(--ice), .22); }
.stat b { font: 600 clamp(24px, 3vw, 34px)/1.15 var(--hud); letter-spacing: .04em; color: #fff; text-shadow: 0 0 12px rgba(120, 220, 255, .4); }
.stat span { font: 600 10px var(--hud); letter-spacing: .3em; color: rgba(var(--ice), .65); }
/* 参加ボタン：ガラスのような板に氷色の細枠、ホバーで光る */
.btn-join { padding: 18px 58px; color: #fff; }
.btn-bg { background: linear-gradient(135deg, rgba(120, 230, 255, .24), rgba(120, 230, 255, .06) 55%, rgba(var(--gold), .18)); background-size: 100% 100%; animation: none; filter: none;
  box-shadow: inset 0 0 0 1px rgba(var(--ice), .75), inset 0 0 28px rgba(120, 220, 255, .14); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background .35s; }
.btn-join:hover .btn-bg { background: linear-gradient(135deg, rgba(120, 230, 255, .42), rgba(120, 230, 255, .16) 55%, rgba(var(--gold), .32)); }
.btn-join::after { background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, .22) 50%, transparent 70%); }
.btn-main { font-size: clamp(17px, 2vw, 21px); font-weight: 700; letter-spacing: .16em; }
.btn-sub { font: 500 11.5px var(--hud); letter-spacing: .1em; color: rgba(225, 242, 255, .78); opacity: 1; }
.btn-ghost { border-color: rgba(var(--ice), .3); background: rgba(6, 10, 24, .4); font-size: 12.5px; font-weight: 600; letter-spacing: .06em; }
.btn-ghost:hover { border-color: rgba(var(--ice), .8); background: rgba(120, 230, 255, .12); }
/* 起動演出の最後のロゴも同じ書体にそろえる */
.boot-logo { font: 400 clamp(46px, 9vw, 120px)/1.1 var(--logo); letter-spacing: .08em; padding-left: .08em; }
@media (prefers-reduced-motion: reduce) { .logo::after { animation: none; } }
/* 上部バーも同じ色調に（氷色と金） */
.brand { font-family: var(--logo); font-weight: 400; font-size: 18px; letter-spacing: .1em; text-shadow: 0 0 12px rgba(120, 220, 255, .45); }
.play { background: linear-gradient(135deg, rgba(120, 230, 255, .9), rgba(90, 150, 255, .9)); box-shadow: 0 0 calc(6px + var(--beat) * 16px) rgba(120, 220, 255, .7); }
.vol input { accent-color: #8fe3ff; }
.np { font-family: var(--hud); font-weight: 600; }
.nav-join { border-color: rgba(var(--gold), .85); background: rgba(var(--gold), .08); color: #ffe2a6; font-family: var(--hud); font-weight: 700; }
.nav-join:hover { background: rgba(var(--gold), .9); color: #120c00; }
/* スマホでは動画の上のぼかし効果を外して負荷を下げる（背景動画のカクつき対策） */
@media (max-width: 760px), (pointer: coarse) {
  .stats, .btn-bg, .player, .rule, .card, .qa, .nav { backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
  .stats, .btn-bg { background-color: rgba(6, 10, 24, .72); }
  .fx-grain { display: none; }
}
/* リアルタイムの人数：値が変わったら一瞬光る／あまね停止中は赤 */
.stat b.bump { animation: stat-bump .9s ease-out; }
@keyframes stat-bump { 0% { color: #fff; text-shadow: 0 0 22px rgba(var(--ice), 1); } 100% { text-shadow: 0 0 12px rgba(120, 220, 255, .4); } }
#amane-stat.off .dot { background: #ff5a6a; box-shadow: 0 0 10px #ff5a6a; animation: none; }
#amane-stat.off b { color: #ffc2c8; text-shadow: none; }
@media (prefers-reduced-motion: reduce) { .stat b.bump { animation: none; } }

/* ───────── v14：起動の3段階（状態一覧＋フェーズパネル） ───────── */
.boot-word, .boot-cap { display: none !important; }
.phase-rail { position: absolute; left: clamp(16px, 3vw, 40px); top: 50%; transform: translateY(-50%); display: grid; gap: 10px; z-index: 3; opacity: 0; transition: opacity .5s; }
.boot.s1 .phase-rail { opacity: 1; }
.pr { display: grid; grid-template-columns: 26px auto 44px; align-items: center; gap: 10px; padding: 8px 12px; min-width: 190px; border: 1px solid rgba(120, 230, 255, .18); background: rgba(5, 10, 26, .55); font: 600 11px var(--hud); letter-spacing: .14em; color: rgba(190, 230, 255, .55); }
.pr b { font: 700 12px var(--hud); color: rgba(120, 230, 255, .6); }
.pr span { font-family: var(--body); font-weight: 700; letter-spacing: .2em; }
.pr em { font-style: normal; justify-self: end; font-size: 10px; letter-spacing: .2em; }
.pr[data-s="run"] { border-color: rgba(120, 230, 255, .8); color: #e8f8ff; box-shadow: inset 3px 0 0 #8fe3ff, 0 0 22px rgba(120, 220, 255, .18); }
.pr[data-s="run"] em { color: #8fe3ff; animation: blink 0.8s steps(2) infinite; }
.pr[data-s="ok"] { border-color: rgba(255, 218, 150, .5); color: #ffe7b8; box-shadow: inset 3px 0 0 #ffd37a; }
.pr[data-s="ok"] em { color: #ffd37a; }
.phase { position: absolute; left: 50%; bottom: max(7vh, 56px); width: min(560px, calc(100vw - 32px)); transform: translateX(-50%); z-index: 3; padding: 14px 18px 12px; background: linear-gradient(180deg, rgba(6, 14, 34, .82), rgba(4, 8, 20, .88)); border: 1px solid rgba(120, 230, 255, .38); box-shadow: 0 0 40px rgba(60, 160, 255, .12), inset 0 0 30px rgba(120, 220, 255, .06); opacity: 0; clip-path: inset(0 50% 0 50%); transition: opacity .3s, clip-path .55s var(--ease); }
.phase::before, .phase::after { content: ""; position: absolute; width: 12px; height: 12px; border: 0 solid #ffd37a; }
.phase::before { top: -1px; left: -1px; border-width: 1px 0 0 1px; } .phase::after { bottom: -1px; right: -1px; border-width: 0 1px 1px 0; }
.phase.on { opacity: 1; clip-path: inset(0 0 0 0); }
.phase.swap { animation: phase-swap .45s var(--ease); }
@keyframes phase-swap { 0% { filter: brightness(2.2) saturate(0); transform: translateX(-50%) translateY(4px); } 100% { filter: none; transform: translateX(-50%); } }
.pp-head { display: flex; justify-content: space-between; font: 600 10.5px var(--hud); letter-spacing: .32em; color: #8fe3ff; }
.pp-head span:last-child { color: rgba(255, 218, 150, .85); letter-spacing: .14em; }
.pp-title { margin-top: 4px; font: 800 clamp(28px, 5.4vw, 44px)/1.15 var(--body); letter-spacing: .22em; color: #f2fbff; text-shadow: -2px 0 rgba(255, 60, 120, .55), 2px 0 rgba(60, 220, 255, .55), 0 0 18px rgba(120, 220, 255, .35); white-space: nowrap; }
.pp-en { font: 600 12px var(--hud); letter-spacing: .42em; color: rgba(200, 235, 255, .75); white-space: nowrap; overflow: hidden; }
.pp-bar { display: flex; align-items: center; gap: 10px; margin: 10px 0 8px; }
.pp-bar span { flex: 1; display: grid; grid-template-columns: repeat(28, 1fr); gap: 3px; }
.pp-bar span i { height: 7px; background: rgba(120, 230, 255, .1); transform: skewX(-20deg); transition: background .12s; }
.pp-bar span i.lit { background: #8fe3ff; box-shadow: 0 0 8px rgba(120, 230, 255, .8); }
.pp-bar span i.lit:nth-child(7n) { background: #ffd37a; box-shadow: 0 0 8px rgba(255, 210, 120, .8); }
.pp-bar b { font: 700 12px var(--hud); color: #e8f8ff; letter-spacing: .1em; min-width: 4.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.pp-log { min-height: 3.9em; font: 500 11px/1.3 var(--hud); color: rgba(150, 235, 210, .78); letter-spacing: .06em; white-space: pre; overflow: hidden; }
.boot.done .phase, .boot.done .phase-rail { opacity: 0; transition: opacity .5s; pointer-events: none; }
@media (max-width: 760px) { .phase-rail { display: none; } .phase { bottom: max(5vh, 40px); padding: 12px 14px 10px; } .pp-log { font-size: 10px; } }

/* 効果音ありの版：最初の「タップして起動」 */
.fx-gate { position: absolute; inset: 0; z-index: 6; display: grid; place-items: center; background: radial-gradient(ellipse at center, rgba(4, 8, 22, .35), rgba(2, 4, 12, .85)); transition: opacity .5s; }
.fx-gate.go { opacity: 0; pointer-events: none; }
.fx-gate button { display: grid; gap: 8px; justify-items: center; padding: 26px 42px; background: rgba(6, 14, 34, .7); border: 1px solid rgba(120, 230, 255, .6); color: #fff; cursor: pointer; box-shadow: 0 0 40px rgba(120, 220, 255, .18); animation: ready 1.6s var(--ease) infinite; }
.fg-k { font: 600 11px var(--hud); letter-spacing: .4em; color: #8fe3ff; }
.fg-t { font: 400 clamp(22px, 4vw, 32px) var(--logo); letter-spacing: .2em; }
.fg-s { font-size: 12px; letter-spacing: .1em; color: rgba(220, 240, 255, .8); }
.boot.gated .boot-skip, .boot.gated .boot-corner { opacity: .3; }

/* ───────── v14：プレーヤーとプレイリスト ───────── */
.player { position: relative; gap: 8px; padding: 5px 8px 5px 6px; max-width: 520px; }
.pbtn { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: rgba(210, 238, 255, .8); cursor: pointer; transition: background .2s, color .2s; }
.pbtn svg { width: 14px; height: 14px; fill: currentColor; }
.pbtn:hover, .pbtn.on { background: rgba(120, 230, 255, .14); color: #fff; }
.track { width: 170px; gap: 1px; }
.ttl { display: block; font-size: 12px; font-weight: 700; color: #f2fbff; text-overflow: ellipsis; -webkit-mask: none; mask: none; }
.artist { font: 500 10px var(--hud); letter-spacing: .08em; color: rgba(190, 225, 245, .7); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.player::after { content: ""; position: absolute; left: 18px; right: 18px; bottom: -1px; height: 2px; background: linear-gradient(90deg, #8fe3ff calc(var(--track-p, 0) * 100%), rgba(120, 230, 255, .12) 0); border-radius: 2px; pointer-events: none; }
.playlist { position: absolute; top: calc(100% + 12px); right: 0; width: min(380px, calc(100vw - 32px)); z-index: 40; padding: 14px; background: linear-gradient(180deg, rgba(10, 16, 36, .96), rgba(6, 9, 22, .97)); border: 1px solid rgba(120, 230, 255, .3); box-shadow: 0 24px 60px rgba(0, 0, 0, .55), 0 0 40px rgba(80, 180, 255, .1); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); animation: pl-in .28s var(--ease); }
.playlist::before { content: ""; position: absolute; top: -1px; left: -1px; width: 12px; height: 12px; border: 0 solid #ffd37a; border-width: 1px 0 0 1px; }
@keyframes pl-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
.pl-head { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 10px; margin-bottom: 6px; border-bottom: 1px solid rgba(120, 230, 255, .14); }
.pl-head b { font: 700 11px var(--hud); letter-spacing: .4em; color: #8fe3ff; }
.pl-head span { font: 600 10px var(--hud); letter-spacing: .16em; color: rgba(190, 225, 245, .6); }
.pl-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.pl-list button { width: 100%; display: grid; grid-template-columns: 26px 1fr auto; align-items: center; gap: 10px; padding: 9px 10px; border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer; border-left: 2px solid transparent; transition: background .2s; }
.pl-list button:hover { background: rgba(120, 230, 255, .07); }
.pl-no { font: 700 12px var(--hud); color: rgba(150, 210, 240, .55); font-variant-numeric: tabular-nums; }
.pl-eq { display: none; gap: 2px; align-items: flex-end; height: 12px; }
.pl-eq i { width: 3px; background: #8fe3ff; animation: bar 1s ease-in-out infinite; }
.pl-eq i:nth-child(1) { height: 40%; } .pl-eq i:nth-child(2) { height: 90%; animation-delay: .2s; } .pl-eq i:nth-child(3) { height: 60%; animation-delay: .4s; }
.pl-main { display: grid; min-width: 0; }
.pl-main b { font-size: 13px; color: #eef8ff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-main small { font: 500 10.5px var(--hud); letter-spacing: .06em; color: rgba(190, 225, 245, .6); }
.pl-dur { font: 600 11px var(--hud); color: rgba(190, 225, 245, .6); font-variant-numeric: tabular-nums; }
.pl-list li.current button { background: rgba(120, 230, 255, .09); border-left-color: #8fe3ff; }
.pl-list li.current .pl-main b { color: #8fe3ff; }
.player.is-playing .pl-list li.current .pl-no { display: none; }
.player.is-playing .pl-list li.current .pl-eq { display: inline-flex; }
.pl-seek { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(120, 230, 255, .14); font: 600 11px var(--hud); color: rgba(190, 225, 245, .75); font-variant-numeric: tabular-nums; }
.pl-seek input { width: 100%; accent-color: #8fe3ff; }
@media (max-width: 760px) { .track { width: auto; flex: 1; } #mini { display: none; } .player { max-width: none; } }
@media (prefers-reduced-motion: reduce) { .pl-eq i, .pr[data-s="run"] em, .fx-gate button { animation: none; } }
.fx-gate[hidden], .playlist[hidden] { display: none !important; }
/* ── v18：ENTERの画面を、フェーズパネルやサイト本体と同じ配色（濃紺のガラス・青緑の線・白い文字・ピンクの差し色）にそろえる。金は使わない ── */
.boot-end { gap: 0; background: radial-gradient(ellipse 62% 58% at 50% 50%, rgba(5, 3, 11, .78) 0%, rgba(5, 3, 11, .5) 45%, rgba(5, 3, 11, 0) 80%); }
.boot-plaque { position: relative; display: grid; justify-items: center; gap: 14px; box-sizing: border-box; width: min(540px, calc(100vw - 40px)); padding: clamp(28px, 5vw, 42px) clamp(20px, 5vw, 56px) clamp(24px, 4vw, 32px);
  background: linear-gradient(90deg, transparent, rgba(255, 46, 151, .7) 30%, rgba(46, 242, 255, .9) 70%, transparent) top / 100% 1px no-repeat, linear-gradient(180deg, rgba(8, 14, 36, .84), rgba(5, 3, 11, .9));
  border: 1px solid rgba(120, 230, 255, .42);
  box-shadow: 0 0 0 4px rgba(5, 3, 11, .8), 0 0 0 5px rgba(120, 230, 255, .14), 0 24px 70px rgba(0, 0, 0, .6), 0 0 70px rgba(46, 242, 255, .12), inset 0 0 40px rgba(120, 220, 255, .05);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
/* 上下中央の菱形（上は青緑、下はピンク） */
.boot-plaque::before, .boot-plaque::after { content: ""; position: absolute; left: 50%; width: 10px; height: 10px; margin-left: -5px; background: #05030b; transform: rotate(45deg); }
.boot-plaque::before { top: -6px; border: 1px solid #8fe3ff; box-shadow: 0 0 10px rgba(46, 242, 255, .7); }
.boot-plaque::after { bottom: -6px; border: 1px solid #ff5fae; box-shadow: 0 0 10px rgba(255, 46, 151, .7); }
/* 四隅の鉤 */
.boot-plaque .pq { position: absolute; width: 16px; height: 16px; border: 0 solid #8fe3ff; pointer-events: none; opacity: .85; }
.pq.tl { left: 8px; top: 8px; border-width: 2px 0 0 2px; } .pq.tr { right: 8px; top: 8px; border-width: 2px 2px 0 0; }
.pq.bl { left: 8px; bottom: 8px; border-width: 0 0 2px 2px; } .pq.br { right: 8px; bottom: 8px; border-width: 0 2px 2px 0; }
/* 現れ方：中央から上下へ開く（ロゴの位置は動かさない＝光の粒の着地点がずれない） */
.boot.done .boot-plaque { animation: plaque-open .7s var(--ease) both; }
@keyframes plaque-open { from { opacity: 0; clip-path: inset(48% -20px 48% -20px); } to { opacity: 1; clip-path: inset(-20px -20px -20px -20px); } }
.boot-kicker { color: #8fe3ff; text-shadow: 0 0 10px rgba(46, 242, 255, .5); letter-spacing: .4em; padding-left: .4em; font-size: 10px; }
/* ロゴ：サイト本体のAmAと同じ白。青緑と紫の淡い光 */
.boot-logo { font-size: clamp(44px, 12vw, 104px); color: #fbf5ff; text-shadow: 0 0 22px rgba(46, 242, 255, .55), 0 0 60px rgba(139, 92, 255, .35); }
.boot-logo::before, .boot-logo::after { display: none; }
.boot.formed .boot-logo { animation: logo-materialize .8s var(--ease) forwards; }
.boot-sub { color: #e8f8ff; text-shadow: 0 1px 2px #000; margin: -2px 0 8px; font-size: clamp(10px, 2.6vw, 14px); letter-spacing: .5em; padding-left: .5em; }
.boot-sub i { background: linear-gradient(90deg, transparent, #8fe3ff); }
.boot-sub i::after { background: #ff5fae; box-shadow: 0 0 10px rgba(255, 46, 151, .8); }
/* ENTER：青緑の線のガラスの札。触れると青緑に光る */
.enter-btn { margin-top: 2px; padding: 14px clamp(40px, 10vw, 64px); border: 1px solid rgba(120, 230, 255, .85); color: #f2fbff; clip-path: none;
  background: linear-gradient(180deg, rgba(46, 242, 255, .1), rgba(46, 242, 255, .03));
  box-shadow: inset 0 0 0 3px rgba(5, 3, 11, .6), inset 0 0 0 4px rgba(120, 230, 255, .25), 0 0 22px rgba(46, 242, 255, .18);
  animation: enter-glow 2.4s ease-in-out infinite; }
.enter-btn::after { background: linear-gradient(100deg, transparent, rgba(220, 248, 255, .35), transparent); }
.enter-btn:hover, .enter-btn:focus-visible { background: #8fe3ff; color: #05030b; transform: scale(1.03); outline: none; }
.enter-btn:hover .enter-sub, .enter-btn:focus-visible .enter-sub { color: #0a1a2a; }
.enter-label { font-size: 24px; letter-spacing: .5em; padding-left: .5em; }
.enter-sub { color: rgba(200, 235, 255, .85); }
.enter-btn:disabled { opacity: .55; cursor: default; animation: none; }
@keyframes enter-glow { 50% { box-shadow: inset 0 0 0 3px rgba(5, 3, 11, .6), inset 0 0 0 4px rgba(120, 230, 255, .5), 0 0 38px rgba(46, 242, 255, .45); } }
.enter-mute { color: rgba(200, 235, 255, .7); }
.enter-mute:hover { color: #8fe3ff; }
/* 起動中の左の一覧・下のフェーズパネルの金の差し色もピンクに */
.pr[data-s="ok"] { border-color: rgba(255, 95, 174, .5); color: #ffe0f0; box-shadow: inset 3px 0 0 #ff5fae; }
.pr[data-s="ok"] em { color: #ff8cc6; }
.pp-head span:last-child { color: rgba(255, 140, 198, .85); }
.pp-bar span i.lit:nth-child(7n) { background: #ff5fae; box-shadow: 0 0 8px rgba(255, 46, 151, .8); }
/* ENTERを押したとき：パネルは手前へ突き抜けて消え、背景はリングのトンネルを一気に進む → 白い光 → サイトの暗い地色に沈んでからサイトが現れる */
.warp { display: none; }
body.warping .boot-end { animation: none; background: none; transition: background .4s; }
body.warping .boot.done .boot-plaque { animation: plaque-through .75s cubic-bezier(.55, 0, .75, .2) forwards; }
@keyframes plaque-through { 0% { opacity: 1; transform: none; filter: none; } 100% { opacity: 0; transform: scale(2.6); filter: blur(8px) brightness(1.8); } }
@media (prefers-reduced-motion: reduce) { .boot.done .boot-plaque, body.warping .boot.done .boot-plaque, .enter-btn { animation: none; } }
/* v18：サイト本体に残っていた金の差し色もピンク・青緑・白にそろえる */
:root { --gold: 255, 95, 174; }
.nav-join { color: #ffd1ea; }
.nav-join:hover { color: #1a0010; }
.phase::before, .phase::after { border-color: #ff5fae; }
.playlist::before { border-color: #ff5fae; }
.rg circle { stroke: rgba(200, 236, 255, .7); }
.rg .tick { stroke: rgba(120, 230, 255, .5); }
.boot-side { -webkit-text-stroke: 1px rgba(160, 235, 255, .7); text-shadow: 0 0 30px rgba(46, 242, 255, .3); }
/* ── デザイン案 A・B（?ui=a / ?ui=b のときだけ）：額縁をなくし、文字と光だけで見せる ── */
body.ui-a .boot-plaque, body.ui-b .boot-plaque { background: none; border: 0; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; padding: 0; width: auto; gap: 18px; }
body.ui-a .boot-plaque::before, body.ui-a .boot-plaque::after, body.ui-b .boot-plaque::before, body.ui-b .boot-plaque::after, body.ui-a .pq, body.ui-b .pq { display: none; }
body.ui-a .boot-end, body.ui-b .boot-end { background: radial-gradient(ellipse 52% 40% at 50% 50%, rgba(5, 3, 11, .78) 0%, rgba(5, 3, 11, .42) 55%, rgba(5, 3, 11, 0) 85%); }
body.ui-a .boot.done .boot-plaque, body.ui-b .boot.done .boot-plaque { animation: none; }
body.ui-a .enter-sub, body.ui-b .enter-sub { display: none; }
body.ui-a .boot-logo, body.ui-b .boot-logo { font-size: clamp(58px, 15vw, 136px); text-shadow: 0 0 18px rgba(46, 242, 255, .45), 0 0 50px rgba(139, 92, 255, .3); }
body.ui-a .boot-kicker, body.ui-b .boot-kicker, body.ui-a .boot-sub, body.ui-b .boot-sub, body.ui-a .enter-btn, body.ui-b .enter-btn, body.ui-a .enter-mute, body.ui-b .enter-mute { opacity: 0; transition: opacity .7s var(--ease); }
body.ui-a .boot.formed .boot-kicker, body.ui-b .boot.formed .boot-kicker, body.ui-a .boot.formed .boot-sub, body.ui-b .boot.formed .boot-sub { animation: rise-in .8s var(--ease) .15s forwards; }
body.ui-a .boot.formed .enter-btn, body.ui-b .boot.formed .enter-btn, body.ui-a .boot.formed .enter-mute, body.ui-b .boot.formed .enter-mute { opacity: 1; transition-delay: .45s; }
body.ui-a .boot.scattering .boot-logo, body.ui-b .boot.scattering .boot-logo { opacity: 0 !important; animation: none !important; transition: opacity .12s; }
body.ui-a .enter-mute, body.ui-b .enter-mute { font-size: 11px; letter-spacing: .2em; text-decoration: none; border-bottom: 1px solid rgba(200, 235, 255, .3); padding-bottom: 2px; }

/* 案A：線と文字だけの ENTER。左右の菱形と、触れると左右へ伸びる光の線 */
body.ui-a .enter-btn { background: none; border: 0; box-shadow: none; padding: 14px 30px; overflow: visible; animation: none; display: flex; align-items: center; gap: 18px; color: #f2fbff; }
body.ui-a .enter-btn::after { content: none; }
body.ui-a .enter-btn::before { content: ""; position: absolute; left: 0; right: 0; bottom: 2px; height: 1px; background: linear-gradient(90deg, transparent, #8fe3ff 30%, #ff5fae 70%, transparent); transform: scaleX(.35); transition: transform .6s var(--ease); }
body.ui-a .enter-label { font-size: 19px; letter-spacing: 1em; padding-left: 1em; text-shadow: 0 0 14px rgba(46, 242, 255, .65); display: flex; align-items: center; gap: 22px; animation: ui-breathe 2.6s ease-in-out infinite; }
body.ui-a .enter-label::before, body.ui-a .enter-label::after { content: ""; width: 6px; height: 6px; border: 1px solid #8fe3ff; transform: rotate(45deg); box-shadow: 0 0 8px rgba(46, 242, 255, .8); transition: transform .5s var(--ease), border-color .3s; }
body.ui-a .enter-label::after { border-color: #ff5fae; box-shadow: 0 0 8px rgba(255, 46, 151, .8); margin-left: -1em; }
body.ui-a .enter-btn:hover, body.ui-a .enter-btn:focus-visible { background: none; color: #8fe3ff; transform: none; outline: none; }
body.ui-a .enter-btn:hover::before, body.ui-a .enter-btn:focus-visible::before { transform: scaleX(1); }
body.ui-a .enter-btn:hover .enter-label::before, body.ui-a .enter-btn:focus-visible .enter-label::before { transform: translateX(-8px) rotate(225deg); }
body.ui-a .enter-btn:hover .enter-label::after, body.ui-a .enter-btn:focus-visible .enter-label::after { transform: translateX(8px) rotate(225deg); }
@keyframes ui-breathe { 50% { opacity: .62; } }

/* 案B：円の ENTER。外側を青緑とピンクの弧が逆向きに回る */
body.ui-b .enter-btn { width: 108px; height: 108px; padding: 0; margin-top: 6px; border-radius: 50%; display: grid; place-items: center; overflow: visible; animation: none;
  border: 1px solid rgba(120, 230, 255, .55); background: radial-gradient(circle, rgba(46, 242, 255, .14), rgba(5, 3, 11, .45) 70%); box-shadow: 0 0 34px rgba(46, 242, 255, .2), inset 0 0 22px rgba(46, 242, 255, .14); color: #f2fbff; }
body.ui-b .enter-btn::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 1px solid transparent; border-top-color: rgba(255, 95, 174, .9); border-bottom-color: rgba(255, 95, 174, .35); animation: ui-spin 5s linear infinite; }
body.ui-b .enter-btn::after { content: ""; position: absolute; top: -4px; right: -4px; bottom: -4px; left: -4px; width: auto; border-radius: 50%; background: none; border: 2px solid transparent; border-left-color: #8fe3ff; border-right-color: rgba(143, 227, 255, .3); animation: ui-spin 2.6s linear infinite reverse; transform: none; }
body.ui-b .enter-label { font-size: 14px; letter-spacing: .38em; padding-left: .38em; text-shadow: 0 0 12px rgba(46, 242, 255, .7); }
body.ui-b .enter-btn:hover, body.ui-b .enter-btn:focus-visible { background: radial-gradient(circle, rgba(143, 227, 255, .95), rgba(70, 180, 230, .85)); color: #05030b; transform: scale(1.06); outline: none; }
body.ui-b .enter-btn:hover .enter-label, body.ui-b .enter-btn:focus-visible .enter-label { text-shadow: none; }
@keyframes ui-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { body.ui-a .enter-label, body.ui-b .enter-btn::before, body.ui-b .enter-btn::after { animation: none; } }
body.ui-a .boot.done:not(.formed) .boot-kicker, body.ui-b .boot.done:not(.formed) .boot-kicker, body.ui-a .boot.done:not(.formed) .boot-sub, body.ui-b .boot.done:not(.formed) .boot-sub { animation: none; opacity: 0; }
body.warping.ui-a .boot.done .boot-plaque, body.warping.ui-b .boot.done .boot-plaque { animation: ui-out .6s cubic-bezier(.55, 0, .75, .2) forwards; }
@keyframes ui-out { to { opacity: 0; transform: scale(1.18); filter: blur(6px); } }
/* v20：案BのENTER。押した瞬間にボタンが光り、文字やボタンは中心へ吸い込まれるように消える */
body.ui-b .enter-btn.pressed { background: radial-gradient(circle, #fff, rgba(143, 227, 255, .9)); color: #05030b; box-shadow: 0 0 60px rgba(143, 227, 255, .9), 0 0 120px rgba(255, 70, 160, .4); transform: scale(.92); transition: transform .15s, background .15s; }
body.warping.ui-b .boot.done .boot-plaque { animation: ui-collapse .5s cubic-bezier(.6, 0, .8, .3) forwards; }
@keyframes ui-collapse { 30% { opacity: 1; transform: scale(1.04); filter: none; } 100% { opacity: 0; transform: scale(.35); filter: blur(5px) brightness(1.6); } }
body.warping.ui-b .boot-corner, body.warping.ui-b .boot-side, body.warping.ui-b .boot-skip { opacity: 0; transition: opacity .3s; }
@media (prefers-reduced-motion: reduce) { body.warping.ui-b .boot.done .boot-plaque { animation: none; } }
/* v21：スマホで横にはみ出さないように（縮小すると右側が空いて見えていた）。ナビの sticky を壊さないよう hidden ではなく clip を使う */
@media (hover: none), (pointer: coarse) { .cursor-glow { display: none; } }
main { overflow-x: clip; } /* 傾けた黄色の帯が右へ少しはみ出す分を切る */
@supports (overflow: clip) { html, body { overflow-x: clip; } }
/* ── v22：今オンラインの人・あまねとの会話のイメージ・更新記録 ── */
/* 今オンラインの人（アイコンだけ） */
.online-faces { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 14px auto 0; flex-wrap: wrap; animation: rise-in .8s var(--ease) both; }
.online-faces[hidden] { display: none !important; }
.of-label { display: inline-flex; align-items: center; gap: 6px; font: 600 10px var(--hud); letter-spacing: .3em; color: rgba(200, 235, 255, .75); }
.of-label .dot { width: 6px; height: 6px; border-radius: 50%; background: #3dffa8; box-shadow: 0 0 8px #3dffa8; }
.of-list { display: flex; align-items: center; padding-left: 8px; }
.of-list img { width: 30px; height: 30px; margin-left: -8px; border-radius: 50%; object-fit: cover; background: #0b0824; border: 2px solid #05030b; box-shadow: 0 0 0 1px rgba(120, 230, 255, .55), 0 0 10px rgba(46, 242, 255, .25); animation: face-in .5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
.of-more { margin-left: 6px; font: 700 11px var(--hud); letter-spacing: .08em; color: #8fe3ff; }
@keyframes face-in { from { opacity: 0; transform: translateY(6px) scale(.8); } to { opacity: 1; transform: none; } }

/* あまねとの会話のイメージ */
.talk { margin-top: clamp(36px, 6vw, 64px); padding: clamp(18px, 3vw, 28px); border: 1px solid rgba(120, 230, 255, .25); background: linear-gradient(180deg, rgba(8, 14, 36, .72), rgba(5, 3, 11, .78)); position: relative; }
.talk::before { content: ""; position: absolute; left: -1px; top: -1px; width: 14px; height: 14px; border: 0 solid #8fe3ff; border-width: 2px 0 0 2px; }
.talk::after { content: ""; position: absolute; right: -1px; bottom: -1px; width: 14px; height: 14px; border: 0 solid #ff5fae; border-width: 0 2px 2px 0; }
.talk-head { display: grid; gap: 4px; margin: 0 0 18px; font: 800 clamp(18px, 2.4vw, 22px)/1.3 var(--body); letter-spacing: .08em; color: #f2fbff; }
.talk-head span { font: 600 10px var(--hud); letter-spacing: .34em; color: #8fe3ff; }
.talk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.scene { margin: 0; padding: 14px; display: grid; gap: 10px; align-content: start; background: rgba(5, 3, 11, .55); border: 1px solid rgba(255, 255, 255, .08); }
.scene figcaption { font: 600 10px var(--hud); letter-spacing: .3em; color: rgba(255, 140, 198, .9); }
.msg { display: grid; grid-template-columns: 30px 1fr; gap: 10px; align-items: start; }
.msg .av { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font: 700 12px var(--body); font-style: normal; color: #05030b; background: #c9c3dc; }
.msg.amane .av { background: radial-gradient(circle, #fff, #8fe3ff); box-shadow: 0 0 12px rgba(46, 242, 255, .5); }
.msg p { margin: 0; padding: 9px 12px; font-size: 13.5px; line-height: 1.7; color: #e9e4f5; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .06); border-radius: 2px 12px 12px 12px; word-break: break-word; }
.msg.amane p { background: rgba(46, 242, 255, .08); border-color: rgba(120, 230, 255, .22); }
.msg .who { display: block; margin-bottom: 2px; font-size: 12px; color: #8fe3ff; }
.msg .mention { color: #b9c8ff; background: rgba(88, 101, 242, .3); padding: 0 3px; border-radius: 3px; font-weight: 600; }
.msg .link { color: #4fc3ff; word-break: break-all; }
.msg .embed { display: flex; gap: 8px; align-items: center; margin-top: 4px; padding: 8px 10px; border-left: 3px solid #ff5fae; background: rgba(5, 3, 11, .6); font-size: 12.5px; }
.embed-play { flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 10px; color: #05030b; background: #f2fbff; }
.talk-note { margin: 14px 0 0; font-size: 12px; color: rgba(200, 190, 220, .7); }

/* 更新記録 */
.updates[hidden] { display: none !important; }
.upd-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.upd { position: relative; padding: 16px 18px 16px 22px; background: linear-gradient(90deg, rgba(8, 14, 36, .8), rgba(5, 3, 11, .6)); border: 1px solid rgba(120, 230, 255, .2); animation: rise-in .7s var(--ease) both; animation-delay: calc(var(--i, 0) * 80ms); }
.upd::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(#8fe3ff, #ff5fae); }
.upd-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font: 600 11px var(--hud); letter-spacing: .14em; }
.upd-ver { color: #05030b; background: #8fe3ff; padding: 1px 8px; }
.upd-date { color: rgba(200, 235, 255, .7); }
.upd-new { color: #ff8cc6; border: 1px solid rgba(255, 95, 174, .6); padding: 0 6px; letter-spacing: .24em; }
.upd h3 { margin: 8px 0 4px; font-size: clamp(15px, 2vw, 17px); line-height: 1.5; color: #f2fbff; }
.upd p { margin: 0; font-size: 13.5px; line-height: 1.8; color: rgba(225, 218, 240, .82); }
.upd-note { margin: 14px 0 0; font-size: 12px; color: rgba(200, 190, 220, .7); }
@media (prefers-reduced-motion: reduce) { .online-faces, .of-list img, .upd { animation: none; } }
/* v23：会話のイメージを実際のあまねの動きに合わせる（リンク展開は投稿カード＋添付） */
.msg .bubble { margin: 0; padding: 9px 12px; font-size: 13.5px; line-height: 1.7; color: #e9e4f5; background: rgba(46, 242, 255, .08); border: 1px solid rgba(120, 230, 255, .22); border-radius: 2px 12px 12px 12px; min-width: 0; }
.xcard { display: grid; gap: 3px; margin-top: 4px; padding: 9px 11px; border-left: 3px solid #1d9bf0; background: rgba(5, 3, 11, .65); font-size: 12px; line-height: 1.55; }
.xc-by { color: rgba(220, 225, 240, .75); font-size: 11px; }
.xc-name { color: #4fc3ff; font-size: 13px; }
.xc-text { color: #e9e4f5; }
.xc-media { display: flex; align-items: center; gap: 8px; margin: 4px 0; padding: 14px 10px; background: linear-gradient(135deg, rgba(29, 155, 240, .18), rgba(5, 3, 11, .7)); border: 1px solid rgba(255, 255, 255, .08); color: rgba(235, 240, 255, .85); }
.xc-from { color: rgba(220, 225, 240, .8); }
.xc-foot { color: rgba(200, 205, 225, .55); font-size: 10.5px; }
.scene-note { margin: 0; font-size: 11.5px; color: rgba(200, 190, 220, .7); }
