/* ==========================================================================
   Akichan 🦊💜 — on Stage ⇄ Secret Dorm Design System
   Palette & materiality drawn directly from her verified visuals:
   Ice Silver-Blue (#8EC5FF), Iris Lavender (#A78BFA), Stage Magenta (#F472B6),
   Velvet Stage (#0B0816) ⇄ Dorm Plum (#171127) + Soft Desk Lamp (#FFD6E8).
   ========================================================================== */

:root {
  --holo-ice: #8EC5FF;
  --ice-blue: #8EC5FF;
  --accent-cyan: #67E8F9;
  --iris: #A78BFA;
  --iris-deep: #6D5BD0;
  --stage-magenta: #F472B6;
  --horn-teal: #2DD4BF;
  --fox: #FDBA74;

  /* Stage Mode Defaults */
  --bg: #0B0816;
  --bg-elevated: #140F28;
  --surface: rgba(233, 227, 255, 0.065);
  --surface-2: rgba(20, 14, 42, 0.72);
  --surface-strong: rgba(26, 19, 49, 0.78);
  --border: rgba(167, 139, 250, 0.28);
  --border-bright: rgba(142, 197, 255, 0.55);
  --text: #F5F3FF;
  --text-muted: #C4BCE0;
  --muted: #C4BCE0;
  --accent-primary: #8EC5FF;
  --accent-secondary: #A78BFA;
  --glow-hero: radial-gradient(circle at 75% 20%, rgba(142, 197, 255, 0.24), transparent 52%),
               radial-gradient(circle at 20% 78%, rgba(244, 114, 182, 0.18), transparent 48%);
  --font-jp-head: 'Zen Kaku Gothic New', 'Hiragino Kaku Gothic ProN', 'Yu Gothic', sans-serif;
  --font-body: 'Zen Kaku Gothic New', 'Hiragino Sans', 'Yu Gothic', sans-serif;
  --font-display: 'Unbounded', 'Zen Kaku Gothic New', sans-serif;
  --font-script: 'Caveat', cursive;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
  --ekg-speed: 3.4s;
  --radius-card: 22px;
  --radius-pill: 999px;
  --shadow-card: 0 20px 50px rgba(4, 2, 14, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

/* Secret Dorm Mode Overrides */
html[data-mode="dorm"] {
  --bg: #150F24;
  --bg-elevated: #211838;
  --surface: rgba(255, 226, 242, 0.07);
  --surface-strong: rgba(34, 24, 56, 0.84);
  --border: rgba(244, 184, 232, 0.28);
  --border-bright: rgba(255, 214, 232, 0.55);
  --accent-primary: #E0B3FF;
  --accent-secondary: #FFD6E8;
  --glow-hero: radial-gradient(circle at 18% 82%, rgba(255, 198, 226, 0.22), transparent 55%),
               radial-gradient(circle at 80% 25%, rgba(167, 139, 250, 0.24), transparent 55%);
  --font-jp-head: 'Zen Maru Gothic', 'Zen Kaku Gothic New', sans-serif;
  --ekg-speed: 6.2s;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  background-image: var(--glow-hero);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
  transition: background-color 0.65s ease, color 0.4s ease;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--holo-ice); outline-offset: 3px; border-radius: 6px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: -9999px; top: 1rem; z-index: 9999;
  background: var(--iris); color: #0B0816; padding: .6rem 1rem; border-radius: 8px; font-weight: 700;
}
.skip-link:focus { left: 1rem; }

.container { width: min(1180px, 100% - 2rem); margin-inline: auto; }
.muted { color: var(--text-muted); }
.small { font-size: 0.9rem; }

/* Lightweight Pure-CSS Starfield & Atmosphere (0% idle CPU, zero cursor lag) */
.atmosphere-layer { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.starfield-layer {
  position: absolute; inset: 0; opacity: 0.58;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, rgba(142, 197, 255, 0.9), transparent),
    radial-gradient(1.5px 1.5px at 28% 72%, rgba(244, 114, 182, 0.75), transparent),
    radial-gradient(2px 2px at 44% 34%, rgba(167, 139, 250, 0.85), transparent),
    radial-gradient(1.5px 1.5px at 67% 22%, rgba(142, 197, 255, 0.8), transparent),
    radial-gradient(2px 2px at 82% 64%, rgba(244, 114, 182, 0.8), transparent),
    radial-gradient(1.5px 1.5px at 91% 15%, rgba(167, 139, 250, 0.75), transparent),
    radial-gradient(1.5px 1.5px at 18% 88%, rgba(167, 139, 250, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 56% 82%, rgba(142, 197, 255, 0.7), transparent);
  background-size: 620px 620px;
}
.stage-beams {
  position: absolute; inset: -10% -5% auto; height: 68vh;
  background:
    conic-gradient(from 195deg at 22% 0%, transparent 0deg, rgba(142, 197, 255, 0.14) 14deg, transparent 28deg),
    conic-gradient(from 155deg at 78% 0%, transparent 0deg, rgba(244, 114, 182, 0.13) 14deg, transparent 28deg),
    conic-gradient(from 175deg at 50% 0%, transparent 0deg, rgba(167, 139, 250, 0.13) 12deg, transparent 25deg);
  transition: opacity 0.8s ease;
}
html[data-mode="dorm"] .stage-beams { opacity: 0.15; }
.dorm-lamp {
  position: absolute; left: -120px; bottom: -120px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 232, 0.22) 0%, rgba(167, 139, 250, 0.1) 42%, transparent 72%);
  opacity: 0; transition: opacity 0.8s ease;
}
html[data-mode="dorm"] .dorm-lamp { opacity: 1; }

/* Glass Cards & Surfaces */
.glass-card {
  position: relative;
  background: var(--surface);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  transition: border-color 0.3s ease, transform 0.3s ease, background-color 0.5s ease;
}
.glass-card:hover { border-color: var(--border-bright); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11, 8, 22, 0.76);
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(167, 139, 250, 0.22);
}
html[data-mode="dorm"] .site-header { background: rgba(21, 15, 36, 0.82); }
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.9rem; padding: 0.7rem 0;
}
.brand-lockup { display: flex; align-items: center; gap: 0.65rem; text-decoration: none !important; flex-shrink: 0; }
.brand-icon { border-radius: 9px; box-shadow: 0 0 18px rgba(167, 139, 250, 0.42); }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-script {
  font-family: var(--font-script); font-size: 1.55rem; font-weight: 700;
  background: linear-gradient(90deg, #E9E3FF, #8EC5FF, #F472B6);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand-sub { font-family: var(--font-display); font-size: 0.62rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }

.main-nav { display: flex; align-items: center; gap: 1.15rem; }
.main-nav a {
  font-size: 0.88rem; font-weight: 600; color: var(--text-muted);
  transition: color 0.2s ease; white-space: nowrap;
}
.main-nav a:hover { color: var(--text); text-decoration: none; }

.header-controls { display: flex; align-items: center; gap: 0.55rem; flex-shrink: 0; }

/* Stage ⇄ Dorm Toggle Switch */
.mode-switch {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; align-items: center;
  padding: 3px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border);
  font-size: 0.76rem; font-weight: 700; letter-spacing: 0.03em;
  min-width: 146px;
}
.mode-pill {
  position: relative; z-index: 2; padding: 0.3rem 0.6rem; text-align: center;
  color: var(--text-muted); transition: color 0.3s ease; white-space: nowrap;
}
html[data-mode="stage"] .stage-label,
html[data-mode="dorm"] .dorm-label { color: #0B0816; }
.mode-thumb {
  position: absolute; top: 3px; left: 3px; width: calc(50% - 3px); height: calc(100% - 6px);
  border-radius: var(--radius-pill);
  background: linear-gradient(120deg, #8EC5FF, #A78BFA);
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.4s ease;
  z-index: 1;
}
html[data-mode="dorm"] .mode-thumb {
  transform: translateX(100%);
  background: linear-gradient(120deg, #C084FC, #F472B6);
}

.lang-switch {
  display: inline-flex; padding: 2px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
}
.lang-btn {
  background: transparent; border: none; border-radius: var(--radius-pill);
  padding: 0.26rem 0.5rem; font-size: 0.73rem; font-weight: 700; color: var(--text-muted);
}
.lang-btn.is-active { background: rgba(167, 139, 250, 0.35); color: #fff; }

.icon-btn {
  width: 34px; height: 34px; display: inline-grid; place-items: center;
  border-radius: 50%; background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border); font-size: 0.92rem;
}
.icon-btn:hover { border-color: var(--holo-ice); background: rgba(142, 197, 255, 0.14); }
.icon-btn[aria-pressed="true"] { background: rgba(244, 114, 182, 0.25); border-color: var(--stage-magenta); }

.mobile-only { display: none; }
.mobile-drawer {
  border-top: 1px solid var(--border); background: rgba(11, 8, 22, 0.96);
  padding: 0.9rem 1.25rem 1.25rem;
}
.mobile-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0.65rem; }
.mobile-nav a {
  padding: 0.55rem 0.75rem; border-radius: 12px; background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(167, 139, 250, 0.2); font-weight: 600; color: var(--text); text-align: center;
}

/* Buttons & Chips */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  padding: 0.75rem 1.35rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: 0.94rem; border: 1px solid transparent;
  text-decoration: none !important; transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn-sm { padding: 0.48rem 0.95rem; font-size: 0.83rem; }
.btn-primary {
  background: linear-gradient(120deg, #8EC5FF 0%, #A78BFA 55%, #F472B6 100%);
  color: #0B0816; box-shadow: 0 8px 26px rgba(167, 139, 250, 0.35);
}
.btn-primary:hover { box-shadow: 0 12px 32px rgba(244, 114, 182, 0.45); }
.btn-glass {
  background: rgba(233, 227, 255, 0.08); border-color: var(--border); color: var(--text);
}
.btn-glass:hover { background: rgba(167, 139, 250, 0.18); border-color: var(--border-bright); }
.btn-prism {
  background: linear-gradient(120deg, rgba(142, 197, 255, 0.22), rgba(244, 114, 182, 0.22));
  border-color: rgba(167, 139, 250, 0.5); color: #fff;
}
.btn-ghost { background: transparent; border-color: rgba(255, 255, 255, 0.18); color: var(--text-muted); }
.btn-ghost:hover { color: #fff; border-color: var(--iris); }

.pill-badge, .pill-mini {
  display: inline-flex; align-items: center; gap: 0.45rem;
  border-radius: var(--radius-pill); font-weight: 700; letter-spacing: 0.05em;
}
.pill-badge {
  padding: 0.32rem 0.85rem; font-size: 0.78rem;
  background: rgba(244, 114, 182, 0.14); border: 1px solid rgba(244, 114, 182, 0.48); color: #FCE7F3;
}
.pill-mini {
  align-self: flex-start;
  padding: 0.2rem 0.6rem; font-size: 0.7rem; text-transform: uppercase;
  background: rgba(167, 139, 250, 0.18); border: 1px solid rgba(167, 139, 250, 0.42); color: #E9E3FF;
}
.pulse-dot {
  width: 8px; height: 8px; border-radius: 50%; background: var(--stage-magenta);
  box-shadow: 0 0 10px var(--stage-magenta); animation: pulseBeat 1.8s infinite;
}
@keyframes pulseBeat {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.45); opacity: 0.6; }
}

/* ① HERO */
.hero-section { position: relative; padding: 3.2rem 0 3.4rem; overflow: hidden; }
.hero-banner-bg {
  position: absolute; inset: 0 0 auto 0; height: 340px; overflow: hidden; z-index: -1; pointer-events: none;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.36) 0%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.36) 0%, transparent 100%);
}
.hero-banner-bg img { width: 100%; height: 100%; object-fit: cover; filter: blur(2px) saturate(1.25); opacity: 0.55; }
html[data-mode="dorm"] .hero-banner-bg img { opacity: 0.22; filter: blur(6px) hue-rotate(-14deg); }

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 2.5rem; align-items: center;
}
.hero-eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin-bottom: 0.9rem; }
.jst-clock-pill {
  font-family: var(--font-mono); font-size: 0.76rem; padding: 0.32rem 0.72rem;
  border-radius: var(--radius-pill); background: rgba(142, 197, 255, 0.12);
  border: 1px solid rgba(142, 197, 255, 0.36); color: #BAE6FD;
}
.hero-quote-whisper { margin: 0 0 0.5rem; font-size: 0.92rem; color: #DDD6FE; }
.hero-quote-whisper a { color: #E9E3FF; border-bottom: 1px dashed rgba(167, 139, 250, 0.6); }
.quote-date { font-family: var(--font-mono); font-size: 0.75rem; color: var(--text-muted); margin-left: 0.35rem; }

.hero-title {
  margin: 0 0 0.5rem; display: flex; align-items: baseline; flex-wrap: wrap; gap: 0.5rem;
  font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 4.3rem); line-height: 1.05;
}
.title-display {
  background: linear-gradient(120deg, #FFFFFF 12%, #8EC5FF 48%, #C084FC 76%, #F472B6 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.title-mark { font-size: 0.62em; }
.hero-tagline { font-family: var(--font-jp-head); font-size: clamp(1.1rem, 2.2vw, 1.38rem); font-weight: 700; margin: 0 0 0.85rem; color: #F3E8FF; }
.hero-mode-line { margin: 0 0 1.2rem; color: var(--text-muted); max-width: 56ch; font-size: 0.98rem; }

.hero-motto-bar {
  display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.55rem;
  padding: 0.45rem 1rem; margin-bottom: 1.4rem; border-radius: 14px;
  background: rgba(11, 8, 22, 0.55); border: 1px solid rgba(167, 139, 250, 0.36);
  font-family: var(--font-display); font-size: 0.78rem; letter-spacing: 0.1em; color: #E9E3FF;
  box-shadow: 0 0 24px rgba(167, 139, 250, 0.18);
}
.motto-dot { color: var(--stage-magenta); }

.hero-cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 1.15rem; }
.hero-quick-tags { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.copy-chip {
  padding: 0.32rem 0.75rem; border-radius: var(--radius-pill); font-size: 0.8rem; font-weight: 600;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); color: #E9E3FF;
  transition: background 0.2s ease, border-color 0.2s ease;
}
.copy-chip:hover { background: rgba(167, 139, 250, 0.22); border-color: var(--holo-ice); }
.dorm-night-whisper {
  margin: 0.9rem 0 0; font-size: 0.84rem; color: #FFD6E8;
  padding: 0.45rem 0.85rem; border-radius: 12px; background: rgba(244, 114, 182, 0.12);
  border: 1px dashed rgba(255, 214, 232, 0.4); display: inline-block;
}

/* Hero Visual Dual Frame */
.hero-visual-wrap { position: relative; }
.hero-frame {
  position: relative; border-radius: 26px; overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.45);
  box-shadow: 0 28px 64px rgba(5, 2, 20, 0.7), 0 0 42px rgba(142, 197, 255, 0.18);
  background: #120C24;
}
.hero-card-stage, .hero-card-dorm { position: relative; }
.hero-img { width: 100%; height: auto; object-fit: contain; }
html[data-mode="stage"] .hero-card-dorm { display: none; }
html[data-mode="dorm"] .hero-card-stage { display: none; }

.hero-card-caption {
  position: absolute; inset: auto 0 0 0; padding: 0.85rem 1.05rem;
  display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; flex-wrap: wrap;
  background: linear-gradient(to top, rgba(11, 8, 22, 0.92), rgba(11, 8, 22, 0.4) 70%, transparent);
}
.mode-badge {
  font-size: 0.72rem; font-weight: 700; padding: 0.22rem 0.65rem; border-radius: var(--radius-pill);
  background: rgba(142, 197, 255, 0.22); border: 1px solid rgba(142, 197, 255, 0.55); color: #E0F2FE;
}
.mode-badge.dorm {
  background: rgba(244, 114, 182, 0.24); border-color: rgba(255, 214, 232, 0.6); color: #FCE7F3;
}
.caption-date { font-family: var(--font-mono); font-size: 0.72rem; color: #DDD6FE; }
.stage-mirror-floor {
  height: 22px; margin: 0.6rem 1.2rem 0; border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(167, 139, 250, 0.45) 0%, rgba(244, 114, 182, 0.2) 45%, transparent 72%);
  filter: blur(8px);
}

/* EKG Divider */
.ekg-divider { width: 100%; overflow: hidden; margin: 0.5rem 0; opacity: 0.85; }
.ekg-divider svg { width: 100%; height: 40px; display: block; }
.ekg-divider.small svg { height: 30px; }
.ekg-path {
  fill: none; stroke: url(#ekgGrad); stroke: var(--stage-magenta); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round;
  filter: drop-shadow(0 0 6px rgba(244, 114, 182, 0.75));
  stroke-dasharray: 1400; stroke-dashoffset: 0;
  animation: ekgGlow var(--ekg-speed) ease-in-out infinite;
}
@keyframes ekgGlow {
  0%, 100% { opacity: 0.55; filter: drop-shadow(0 0 4px rgba(244, 114, 182, 0.5)); }
  45% { opacity: 1; filter: drop-shadow(0 0 11px rgba(244, 114, 182, 0.95)); }
}

/* Sections */
.section { padding: 3.6rem 0; }
.section-head { max-width: 740px; margin-bottom: 2rem; }
.section-kicker {
  display: inline-block; font-family: var(--font-display); font-size: 0.72rem;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--holo-ice); margin-bottom: 0.45rem;
}
.section-title {
  font-family: var(--font-jp-head); font-size: clamp(1.55rem, 3.2vw, 2.25rem);
  font-weight: 900; margin: 0 0 0.65rem; line-height: 1.25;
}
.section-desc { margin: 0; color: var(--text-muted); font-size: 0.97rem; }
.sub-heading { font-family: var(--font-jp-head); font-size: 1.2rem; margin: 2.2rem 0 1rem; }

/* Made by Aki Floating Craft Overlay */
.craft-tag {
  display: none; position: absolute; top: -12px; right: 14px; z-index: 12;
  font-family: var(--font-script); font-size: 1.08rem; font-weight: 700;
  padding: 0.18rem 0.75rem; border-radius: var(--radius-pill);
  background: #FEF3C7; color: #3B0764; box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
  transform: rotate(1.5deg); pointer-events: none;
}
body.show-craft .craft-tag { display: inline-block; }

/* ② Story & Craft */
.story-triptych { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1.5rem; }
.story-step { padding: 1.5rem; display: flex; flex-direction: column; gap: 0.65rem; }
.step-num { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.12em; color: var(--stage-magenta); }
.story-step h3 { margin: 0; font-family: var(--font-jp-head); font-size: 1.15rem; }
.story-step p { margin: 0; font-size: 0.93rem; color: var(--text-muted); }

.verbatim-quote {
  margin: auto 0 0; padding: 0.75rem 0.9rem; border-radius: 14px;
  background: rgba(167, 139, 250, 0.11); border-left: 3px solid var(--iris);
  font-size: 0.87rem; color: #F5F3FF;
}
.verbatim-quote.large { font-size: 1.02rem; line-height: 1.65; }
.verbatim-quote cite { display: block; margin-top: 0.35rem; font-style: normal; font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-muted); }

.craft-showcase { padding: 1.55rem; }
.craft-showcase-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.craft-showcase-head h3 { margin: 0.15rem 0 0; font-family: var(--font-jp-head); font-size: 1.28rem; }
.craft-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.craft-item {
  padding: 1rem; border-radius: 16px; background: rgba(11, 8, 22, 0.42);
  border: 1px solid rgba(167, 139, 250, 0.22);
}
.craft-ico { font-size: 1.35rem; display: block; margin-bottom: 0.35rem; }
.craft-item strong { display: block; margin-bottom: 0.25rem; font-size: 0.95rem; }
.craft-item p { margin: 0; font-size: 0.84rem; color: var(--text-muted); }

/* Timeline */
.timeline-track {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.9rem;
}
.milestone-card {
  padding: 1rem 1.1rem; border-radius: 16px;
  background: rgba(233, 227, 255, 0.05); border: 1px solid rgba(167, 139, 250, 0.22);
}
.milestone-top { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; margin-bottom: 0.4rem; }
.milestone-date { font-family: var(--font-mono); font-size: 0.78rem; color: var(--holo-ice); font-weight: 700; }
.milestone-card p { margin: 0; font-size: 0.87rem; color: #EDE9FE; }

/* ③ Schedule */
.schedule-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.75fr); gap: 1.4rem; align-items: start; }
.schedule-board {
  padding: 1.6rem;
  background: linear-gradient(160deg, rgba(167, 139, 250, 0.2) 0%, rgba(109, 91, 208, 0.16) 45%, rgba(30, 22, 56, 0.75) 100%);
}
.schedule-board-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8rem; margin-bottom: 1.1rem; }
.schedule-script { font-family: var(--font-script); font-size: 1.8rem; color: #F5F3FF; line-height: 1; }
.schedule-week-label { font-family: var(--font-display); font-size: 0.92rem; color: #E9E3FF; letter-spacing: 0.06em; margin-top: 0.25rem; }
.hankou-pill {
  padding: 0.35rem 0.8rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.25);
  font-size: 0.78rem; font-weight: 700; color: #F5F3FF;
}
.schedule-rows { display: flex; flex-direction: column; gap: 0.65rem; }
.sched-row {
  display: grid; grid-template-columns: 78px 92px minmax(0, 1fr) auto;
  align-items: center; gap: 0.75rem;
  padding: 0.75rem 1rem; border-radius: 16px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16);
}
.sched-row.is-rest { opacity: 0.68; background: rgba(255, 255, 255, 0.04); }
.sched-row.is-today {
  border-color: var(--stage-magenta);
  box-shadow: 0 0 22px rgba(244, 114, 182, 0.28);
  background: rgba(244, 114, 182, 0.14);
}
.sched-date { font-family: var(--font-display); font-size: 0.82rem; line-height: 1.15; }
.sched-date small { display: block; font-size: 0.66rem; color: var(--text-muted); }
.sched-time { font-family: var(--font-mono); font-size: 0.8rem; color: #BAE6FD; }
.sched-main strong { display: block; font-size: 0.96rem; }
.sched-main span { font-size: 0.8rem; color: var(--text-muted); }
.sched-badge {
  font-size: 0.72rem; font-weight: 800; padding: 0.24rem 0.7rem; border-radius: var(--radius-pill);
  background: linear-gradient(120deg, #F9A8D4, #C4B5FD); color: #0B0816; white-space: nowrap;
}
.sched-row.is-rest .sched-badge { background: rgba(255, 255, 255, 0.14); color: #E9E3FF; }
.sched-row.is-horror .sched-badge { background: linear-gradient(120deg, #FDE047, #FDBA74); color: #0B0816; }
.schedule-footer-bubble {
  margin-top: 1.15rem; text-align: center; padding: 0.65rem 1rem;
  border-radius: var(--radius-pill); border: 1px dashed rgba(244, 114, 182, 0.55);
  background: rgba(244, 114, 182, 0.08); font-weight: 700; color: #FCE7F3;
}

.schedule-art-card { padding: 1.15rem; }
.schedule-art-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.75rem; }
.source-link { font-size: 0.8rem; font-weight: 700; color: var(--holo-ice); }
.schedule-thumb-btn {
  padding: 0; border: 1px solid var(--border); border-radius: 16px; overflow: hidden;
  background: transparent; width: 100%; display: block;
}
.schedule-thumb-btn img { width: 100%; transition: transform 0.35s ease; }
.schedule-thumb-btn:hover img { transform: scale(1.02); }
.schedule-art-cap { margin: 0.75rem 0 0; font-size: 0.83rem; color: var(--text-muted); }

/* ④ Dance Stage */
.dance-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 1.15rem; margin-bottom: 1.4rem; }
.dance-card {
  padding: 1.35rem; display: flex; flex-direction: column; gap: 0.75rem; overflow: hidden;
}
.dance-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: linear-gradient(90deg, var(--c1, #7DD3FC), var(--c2, #A78BFA), var(--c3, #F472B6));
}
.dance-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 0.5rem; }
.dance-artist { font-family: var(--font-display); font-size: 0.72rem; letter-spacing: 0.1em; color: var(--holo-ice); text-transform: uppercase; }
.dance-title { margin: 0.15rem 0 0; font-family: var(--font-display); font-size: 1.25rem; }
.dance-quote { margin: 0; font-size: 0.87rem; color: #EDE9FE; }
.dance-credits {
  margin-top: auto; padding-top: 0.65rem; border-top: 1px solid rgba(167, 139, 250, 0.2);
  font-family: var(--font-mono); font-size: 0.73rem; color: var(--text-muted); display: flex; flex-direction: column; gap: 0.18rem;
}
.duality-vote { padding: 1.45rem; display: flex; flex-direction: column; gap: 0.9rem; }
.duality-vote h3 { margin: 0.35rem 0 0.25rem; font-family: var(--font-jp-head); font-size: 1.15rem; }
.duality-vote-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; }
.btn-vote {
  background: rgba(255, 255, 255, 0.08); border: 1px solid var(--border);
  padding: 0.58rem 1.05rem; border-radius: var(--radius-pill); font-weight: 700; font-size: 0.88rem;
}
.btn-vote:hover, .btn-vote.is-selected {
  background: linear-gradient(120deg, rgba(142, 197, 255, 0.28), rgba(244, 114, 182, 0.28));
  border-color: var(--stage-magenta);
}
.vote-reply { margin: 0; font-weight: 700; color: #F9A8D4; min-height: 1.4em; }

/* ⑤ Gaming Loadout & Toys */
.loadout-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1.25rem; }
.loadout-card { padding: 1.45rem; display: flex; flex-direction: column; gap: 0.75rem; }
.loadout-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.loadout-head h3 { margin: 0; font-family: var(--font-display); font-size: 1.2rem; }
.game-id-box {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap;
  padding: 0.7rem 0.95rem; border-radius: 14px;
  background: rgba(11, 8, 22, 0.62); border: 1px solid rgba(142, 197, 255, 0.38);
}
.game-id-code { font-family: var(--font-mono); font-size: 0.95rem; font-weight: 700; color: #BAE6FD; word-break: break-all; }

.gaming-widgets-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; margin-bottom: 1.25rem; }
.rules-card, .horror-door-card, .magnet-card { padding: 1.35rem; display: flex; flex-direction: column; gap: 0.75rem; }
.rules-card h3, .horror-door-card h3, .magnet-card h3 { margin: 0; font-family: var(--font-jp-head); font-size: 1.1rem; }
.pixel-list { margin: 0; padding-left: 1.2rem; display: flex; flex-direction: column; gap: 0.55rem; font-size: 0.89rem; color: #EDE9FE; }
.pixel-list li::marker { content: "♡ "; color: var(--stage-magenta); }

.horror-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.horror-status-badge {
  font-family: var(--font-mono); font-size: 0.7rem; font-weight: 700;
  padding: 0.2rem 0.55rem; border-radius: var(--radius-pill);
  background: rgba(45, 212, 191, 0.2); border: 1px solid rgba(45, 212, 191, 0.5); color: #99F6E4;
}
.horror-door-card.is-night .horror-status-badge {
  background: rgba(244, 114, 182, 0.2); border-color: rgba(244, 114, 182, 0.55); color: #FBCFE8;
}
.horror-quote { margin: 0; font-size: 0.84rem; color: var(--text-muted); }
.horror-door-visual {
  padding: 0.95rem; border-radius: 16px; text-align: center;
  background: rgba(11, 8, 22, 0.5); border: 1px dashed rgba(167, 139, 250, 0.35);
}
.door-icon { font-size: 2rem; display: block; margin-bottom: 0.3rem; }
.door-msg { margin: 0; font-size: 0.86rem; font-weight: 600; color: #F5F3FF; }

/* Magnetic Crosshair Toy */
.magnet-score { font-family: var(--font-mono); font-size: 0.74rem; color: var(--holo-ice); }
.magnet-arena {
  position: relative; height: 112px; border-radius: 16px; overflow: hidden;
  background: radial-gradient(circle at center, rgba(167, 139, 250, 0.18), rgba(11, 8, 22, 0.72));
  border: 1px solid rgba(142, 197, 255, 0.32);
  display: grid; place-items: center;
}
.magnet-target {
  position: absolute; font-size: 1.9rem; transform: translate(62px, -16px);
  transition: transform 0.24s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}
.magnet-fire-btn {
  position: relative; z-index: 2; padding: 0.42rem 1rem; border-radius: var(--radius-pill);
  background: rgba(142, 197, 255, 0.22); border: 1px solid var(--holo-ice);
  font-family: var(--font-display); font-size: 0.74rem; color: #fff;
  transform: translate(-54px, 14px);
}
.magnet-actions { display: flex; align-items: center; gap: 0.65rem; flex-wrap: wrap; }
.magnet-msg { font-size: 0.82rem; color: #FBCFE8; font-weight: 600; }

/* Gaming Roots Heatmap */
.roots-card { padding: 1.45rem; }
.roots-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.roots-head h3 { margin: 0.2rem 0 0.35rem; font-family: var(--font-jp-head); font-size: 1.2rem; }
.roots-bars { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem 1.4rem; margin-top: 1rem; }
.root-row { display: flex; flex-direction: column; gap: 0.28rem; }
.root-row-top { display: flex; justify-content: space-between; font-size: 0.84rem; }
.root-bar-track { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
.root-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, #8EC5FF, #A78BFA, #F472B6); }

/* ⑥ Wardrobe Archive */
.wardrobe-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 1.15rem; }
.wardrobe-card { padding: 1rem; display: flex; flex-direction: column; gap: 0.7rem; }
.wardrobe-media {
  position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden;
  background: rgba(11, 8, 22, 0.65); border: 1px solid rgba(167, 139, 250, 0.26);
}
.wardrobe-media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.wardrobe-card.is-hanger .wardrobe-media {
  display: grid; place-items: center; text-align: center; padding: 1.25rem;
  border-style: dashed; border-color: rgba(45, 212, 191, 0.55);
  background: radial-gradient(circle at center, rgba(45, 212, 191, 0.12), rgba(11, 8, 22, 0.7));
}
.hanger-graphic { font-size: 2.5rem; margin-bottom: 0.5rem; }
.wardrobe-num { font-family: var(--font-display); font-size: 0.7rem; color: var(--holo-ice); letter-spacing: 0.12em; }
.wardrobe-card h3 { margin: 0; font-family: var(--font-jp-head); font-size: 1rem; }
.wardrobe-card p { margin: 0; font-size: 0.83rem; color: var(--text-muted); }

/* ⑦ Lookbook Gallery */
.filter-bar { display: flex; flex-wrap: wrap; gap: 0.55rem; margin-bottom: 1.35rem; }
.filter-btn {
  padding: 0.44rem 0.95rem; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border);
  font-size: 0.84rem; font-weight: 700; color: var(--text-muted);
}
.filter-btn.is-active, .filter-btn:hover {
  background: linear-gradient(120deg, rgba(142, 197, 255, 0.25), rgba(167, 139, 250, 0.3));
  border-color: var(--holo-ice); color: #fff;
}
.lookbook-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 1.15rem; }
.lookbook-card {
  position: relative; padding: 0; overflow: hidden; text-align: left;
  display: flex; flex-direction: column; width: 100%; background: var(--surface);
}
.lookbook-img-wrap { aspect-ratio: 4 / 5; overflow: hidden; background: #100B20; }
.lookbook-img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform 0.4s ease; }
.lookbook-card:hover .lookbook-img-wrap img { transform: scale(1.04); }
.lookbook-meta { padding: 0.9rem 1rem; display: flex; flex-direction: column; gap: 0.28rem; }
.lookbook-date { font-family: var(--font-mono); font-size: 0.72rem; color: var(--holo-ice); }
.lookbook-meta strong { font-size: 0.94rem; color: #fff; }
.lookbook-meta span { font-size: 0.8rem; color: var(--text-muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ⑧ Community Interactive Corner */
.community-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.widget-card { padding: 1.45rem; display: flex; flex-direction: column; gap: 0.85rem; }
.widget-head { display: flex; justify-content: space-between; align-items: center; gap: 0.5rem; }
.widget-card h3 { margin: 0; font-family: var(--font-jp-head); font-size: 1.16rem; }
.widget-actions { display: flex; flex-wrap: wrap; gap: 0.55rem; }
.widget-feedback { margin: 0; font-size: 0.86rem; font-weight: 700; color: #F9A8D4; min-height: 1.3em; }

/* Stamp Grid */
.stamp-count, .bpm-readout, .quiz-progress { font-family: var(--font-mono); font-size: 0.78rem; font-weight: 700; color: var(--holo-ice); }
.stamp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 0.45rem; }
.stamp-slot {
  aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center;
  background: rgba(11, 8, 22, 0.55); border: 1px dashed rgba(167, 139, 250, 0.42);
  font-size: 1.15rem; color: rgba(255, 255, 255, 0.22); transition: transform 0.25s ease, border-color 0.25s ease;
}
.stamp-slot.is-stamped {
  background: linear-gradient(135deg, rgba(142, 197, 255, 0.25), rgba(244, 114, 182, 0.3));
  border-style: solid; border-color: var(--stage-magenta); color: #fff;
  box-shadow: 0 0 16px rgba(244, 114, 182, 0.32); transform: scale(1.03);
}

/* Affection Spectrum */
.spectrum-control input[type="range"] { width: 100%; accent-color: var(--stage-magenta); cursor: pointer; }
.spectrum-labels { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.4rem; margin-top: 0.4rem; }
.spec-tab {
  padding: 0.36rem 0.45rem; border-radius: 10px; font-size: 0.78rem; font-weight: 700;
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--border); color: var(--text-muted);
}
.spec-tab.is-active { background: rgba(244, 114, 182, 0.22); border-color: var(--stage-magenta); color: #fff; }
.spectrum-output { display: flex; flex-direction: column; gap: 0.65rem; }

/* Channel Points Sim */
.cp-buttons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.55rem; }
.cp-btn {
  padding: 0.68rem 0.55rem; border-radius: 14px; text-align: center;
  background: rgba(167, 139, 250, 0.14); border: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.2rem; align-items: center;
  transition: transform 0.18s ease, border-color 0.2s ease;
}
.cp-btn:hover { border-color: var(--stage-magenta); transform: translateY(-2px); }
.cp-btn span { font-size: 0.82rem; font-weight: 700; }
.cp-btn small { font-size: 0.7rem; color: var(--text-muted); }
.cp-btn.is-shivering { animation: shiver 0.28s linear infinite; border-color: var(--stage-magenta); }
@keyframes shiver {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-3px); }
  75% { transform: translateX(3px); }
}
.cp-stage {
  padding: 0.9rem 1rem; border-radius: 14px; background: rgba(11, 8, 22, 0.52);
  border: 1px solid rgba(167, 139, 250, 0.25); display: flex; align-items: center; gap: 0.85rem;
}
.cp-emoji { font-size: 1.8rem; flex-shrink: 0; }
.cp-stage p { margin: 0; font-size: 0.86rem; color: #F5F3FF; }

/* Quiz */
.quiz-container { display: flex; flex-direction: column; gap: 0.75rem; }
.quiz-q { margin: 0; font-weight: 700; font-size: 0.97rem; }
.quiz-choices { display: grid; gap: 0.5rem; }
.quiz-choice {
  text-align: left; padding: 0.6rem 0.85rem; border-radius: 12px;
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--border); font-size: 0.88rem;
}
.quiz-choice:hover:not(:disabled) { border-color: var(--holo-ice); background: rgba(142, 197, 255, 0.14); }
.quiz-choice.is-correct { background: rgba(45, 212, 191, 0.22); border-color: #2DD4BF; }
.quiz-choice.is-wrong { background: rgba(244, 114, 182, 0.22); border-color: #F472B6; }
.quiz-explain {
  padding: 0.7rem 0.85rem; border-radius: 12px; background: rgba(167, 139, 250, 0.14);
  font-size: 0.84rem; color: #EDE9FE;
}

/* ⑨ Exits & Footer */
.exits-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 0.95rem; margin-bottom: 1.25rem; }
.exit-card {
  display: flex; align-items: center; gap: 0.85rem; padding: 1.05rem 1.2rem;
  border-radius: 18px; background: var(--surface); border: 1px solid var(--border);
  color: var(--text); text-decoration: none !important; transition: transform 0.2s ease, border-color 0.25s ease;
}
.exit-card:hover { transform: translateY(-3px); border-color: var(--holo-ice); }
.exit-ico { font-size: 1.45rem; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, 0.08); flex-shrink: 0; }
.exit-card strong { display: block; font-size: 0.98rem; }
.exit-card span { font-size: 0.8rem; color: var(--text-muted); }
.exit-arrow { margin-left: auto; color: var(--holo-ice); font-weight: 700; }

.fan-stickers-bar { padding: 1rem 1.25rem; display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; }
.stickers-label { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); }
.sticker-btn {
  padding: 0.36rem 0.82rem; border-radius: var(--radius-pill);
  background: rgba(167, 139, 250, 0.18); border: 1px solid rgba(167, 139, 250, 0.45);
  font-size: 0.82rem; font-weight: 700; color: #F5F3FF;
}
.sticker-btn:hover { border-color: var(--stage-magenta); background: rgba(244, 114, 182, 0.24); }

.site-footer { padding: 1.5rem 0 3rem; text-align: center; }
.footer-inner { display: flex; flex-direction: column; align-items: center; gap: 0.85rem; padding-top: 1rem; }
.footer-brand { display: flex; align-items: center; gap: 0.5rem; }
.footer-script { font-family: var(--font-script); font-size: 2.1rem; color: #E9E3FF; }
.footer-note { max-width: 68ch; font-size: 0.82rem; color: var(--text-muted); margin: 0; }
.footer-actions { display: flex; flex-wrap: wrap; gap: 0.65rem; justify-content: center; }

/* Native Dialog Lightbox */
.lightbox {
  margin: auto; padding: 0; border: none; background: transparent; color: var(--text);
  width: min(860px, calc(100% - 1.5rem)); max-width: 100%; max-height: 92vh; overflow: visible;
}
.lightbox::backdrop { background: rgba(6, 4, 16, 0.84); backdrop-filter: blur(8px); }
.lightbox-panel {
  position: relative; width: 100%; max-height: 92vh;
  padding: 1.2rem; display: flex; flex-direction: column; gap: 0.85rem; overflow: auto;
  background: rgba(18, 12, 36, 0.97);
}
.lightbox-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.lightbox-top h3 { margin: 0.3rem 0 0; font-family: var(--font-jp-head); font-size: 1.15rem; }
.lightbox-media-wrap {
  display: grid; place-items: center; background: #080512; border-radius: 16px; overflow: hidden;
  max-height: 62vh;
}
.lightbox-media-wrap img { max-height: 62vh; width: auto; max-width: 100%; object-fit: contain; }
.lightbox-bottom { display: flex; flex-direction: column; gap: 0.75rem; }
.lightbox-bottom p { margin: 0; font-size: 0.9rem; color: #EDE9FE; }
.lightbox-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; }

/* Toast */
.toast {
  position: fixed; left: 50%; bottom: 1.5rem; transform: translateX(-50%); z-index: 1000;
  padding: 0.7rem 1.25rem; border-radius: var(--radius-pill);
  background: rgba(20, 14, 42, 0.95); border: 1px solid var(--stage-magenta);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55); color: #FFF1F7; font-weight: 700; font-size: 0.88rem;
  max-width: min(92vw, 520px); text-align: center;
}

/* ==========================================================================
   Recent Twitch Streams Shelf, Fan Art & Kaomoji Atelier, and Dictionary
   ========================================================================== */
.streams-shelf {
  margin-top: 1.35rem;
  padding: 1.5rem;
}
.streams-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
  margin-top: 0.9rem;
}
.stream-chip {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.72rem 0.9rem;
  border-radius: 14px;
  background: rgba(15, 10, 32, 0.62);
  border: 1px solid rgba(167, 139, 250, 0.22);
  transition: transform 0.18s ease, border-color 0.18s ease;
}
.stream-chip:hover {
  transform: translateY(-2px);
  border-color: rgba(244, 114, 182, 0.5);
}
.stream-date {
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--ice-blue);
  white-space: nowrap;
}
.stream-body strong {
  display: block;
  font-size: 0.86rem;
  color: #F5F3FF;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stream-body span {
  font-size: 0.75rem;
  color: var(--text-muted);
}
.stream-dur {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: #FBCFE8;
  background: rgba(244, 114, 182, 0.14);
  border: 1px solid rgba(244, 114, 182, 0.34);
  padding: 0.15rem 0.48rem;
  border-radius: 999px;
  white-space: nowrap;
}

.fa-origin-banner {
  padding: 1.25rem 1.45rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  flex-wrap: wrap;
  margin-bottom: 1.3rem;
  border-color: rgba(244, 114, 182, 0.36);
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.16), rgba(244, 114, 182, 0.12));
}
.fa-panel, .dict-panel {
  padding: 1.5rem;
  margin-bottom: 1.3rem;
}
.dict-panel { margin-top: 1.4rem; margin-bottom: 0; }
.fa-panel-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.15rem;
}
.fa-panel-head h3 { margin: 0.25rem 0 0.2rem; }
.emote-size-switch, .kaomoji-filters {
  display: flex;
  gap: 0.42rem;
  flex-wrap: wrap;
}
.size-btn, .kfilter-btn {
  padding: 0.38rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.3);
  background: rgba(15, 10, 32, 0.65);
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.16s ease;
}
.size-btn:hover, .kfilter-btn:hover { color: #FFF; border-color: var(--stage-magenta); }
.size-btn.is-active, .kfilter-btn.is-active {
  color: #FFF;
  background: linear-gradient(135deg, rgba(167, 139, 250, 0.42), rgba(244, 114, 182, 0.36));
  border-color: var(--stage-magenta);
}

.emote-proto-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}
.emote-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 0.55rem;
  padding: 1.15rem 1rem;
  border-radius: 16px;
  background: rgba(14, 9, 30, 0.72);
  border: 1px solid rgba(167, 139, 250, 0.24);
  cursor: pointer;
  color: inherit;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.emote-card:hover {
  transform: translateY(-3px);
  border-color: var(--stage-magenta);
  box-shadow: 0 12px 28px rgba(167, 139, 250, 0.2);
}
.emote-stage {
  height: 124px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  border-radius: 12px;
  background: radial-gradient(circle, rgba(167, 139, 250, 0.2), rgba(10, 6, 22, 0.78));
}
.emote-proto-grid[data-size="28"] .emote-svg,
.emote-proto-grid[data-size="28"] .emote-3d-img { width: 28px; height: 28px; }
.emote-proto-grid[data-size="56"] .emote-svg,
.emote-proto-grid[data-size="56"] .emote-3d-img { width: 56px; height: 56px; }
.emote-proto-grid[data-size="96"] .emote-svg,
.emote-proto-grid[data-size="112"] .emote-3d-img { width: 112px; height: 112px; }
.emote-svg, .emote-3d-img { object-fit: contain; transition: width 0.2s ease, height 0.2s ease; }
.emote-code {
  font-family: var(--font-mono);
  font-size: 0.76rem;
  color: var(--ice-blue);
  background: rgba(142, 197, 255, 0.12);
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
}
.emote-card strong { font-size: 0.95rem; color: #FFF; }
.emote-card p { margin: 0; font-size: 0.79rem; color: var(--text-muted); line-height: 1.5; }

.kaomoji-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}
.kaomoji-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
  text-align: left;
  padding: 0.75rem 0.95rem;
  border-radius: 14px;
  background: rgba(15, 10, 32, 0.68);
  border: 1px solid rgba(167, 139, 250, 0.24);
  color: #F5F3FF;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.kaomoji-btn:hover {
  transform: translateY(-2px);
  border-color: var(--stage-magenta);
  background: rgba(167, 139, 250, 0.16);
}
.kaomoji-text {
  font-size: 0.9rem;
  font-weight: 700;
  word-break: break-word;
}
.kaomoji-lbl {
  display: block;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}
.kaomoji-copy-tag {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--ice-blue);
  white-space: nowrap;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  border: 1px solid rgba(142, 197, 255, 0.35);
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.95rem;
}
.palette-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.05rem;
}
.swatch-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.6rem 0.75rem;
  border-radius: 13px;
  background: rgba(14, 9, 30, 0.72);
  border: 1px solid rgba(167, 139, 250, 0.24);
  text-align: left;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.swatch-btn:hover {
  transform: translateY(-2px);
  border-color: var(--stage-magenta);
}
.swatch-chip {
  width: 30px; height: 30px; border-radius: 9px; flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
}
.swatch-info { min-width: 0; }
.swatch-info strong {
  display: block; font-size: 0.76rem; color: #F5F3FF;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.swatch-info code { font-family: var(--font-mono); font-size: 0.72rem; color: var(--ice-blue); }
.traits-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
}
.trait-card {
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: rgba(15, 10, 32, 0.66);
  border: 1px solid rgba(167, 139, 250, 0.22);
}
.trait-head { display: flex; align-items: center; gap: 0.55rem; flex-wrap: wrap; margin-bottom: 0.35rem; }
.trait-head strong { font-size: 0.9rem; color: #FFF; }
.trait-card p { margin: 0; font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }
.roadmap-card {
  padding: 1.2rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.roadmap-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.roadmap-ico { font-size: 1.45rem; }
.roadmap-card h4 { margin: 0.15rem 0 0; font-size: 0.95rem; color: #FFF; }
.roadmap-card p { margin: 0; font-size: 0.8rem; color: var(--text-muted); line-height: 1.55; }

.dict-search {
  min-width: 240px;
  padding: 0.52rem 0.95rem;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.38);
  background: rgba(12, 8, 26, 0.82);
  color: #FFF;
  font-size: 0.84rem;
}
.dict-search:focus {
  outline: none;
  border-color: var(--ice-blue);
  box-shadow: 0 0 0 3px rgba(142, 197, 255, 0.18);
}
.dict-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem;
}
.dict-card {
  padding: 1rem 1.05rem;
  border-radius: 15px;
  background: rgba(14, 9, 30, 0.72);
  border: 1px solid rgba(167, 139, 250, 0.22);
  display: flex;
  flex-direction: column;
  gap: 0.42rem;
}
.dict-card-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.5rem;
}
.dict-term { font-size: 0.98rem; font-weight: 800; color: #F5F3FF; }
.dict-reading { font-size: 0.73rem; color: #F9A8D4; }
.dict-desc { margin: 0; font-size: 0.81rem; color: #DDD6FE; line-height: 1.58; flex: 1; }
.dict-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.73rem;
  color: var(--text-muted);
  padding-top: 0.4rem;
  border-top: 1px solid rgba(167, 139, 250, 0.14);
}

/* Reduced Motion & Explicit Motion Pause */
html.motion-paused { scroll-behavior: auto !important; }
html.motion-paused *,
html.motion-paused *::before,
html.motion-paused *::after {
  animation-play-state: paused !important;
  transition-duration: 0.01ms !important;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Responsive Breakpoints (1160px handles JP / 繁中 / EN nav comfortably without clipping) */
@media (max-width: 1160px) {
  .main-nav { display: none; }
  .mobile-only { display: inline-grid; }
}
@media (max-width: 1020px) {
  .hero-grid { grid-template-columns: 1fr; }
  .story-triptych { grid-template-columns: 1fr; }
  .craft-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .timeline-track { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schedule-layout { grid-template-columns: 1fr; }
  .loadout-grid, .gaming-widgets-grid, .community-grid { grid-template-columns: 1fr; }
  .roots-bars, .streams-list, .kaomoji-grid, .traits-grid { grid-template-columns: 1fr; }
  .emote-proto-grid, .dict-grid, .roadmap-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .palette-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 680px) {
  .container { width: min(1180px, 100% - 1.25rem); }
  .header-inner { flex-wrap: wrap; row-gap: 0.5rem; padding: 0.55rem 0; }
  .brand-lockup { order: 1; }
  .header-controls {
    order: 2; width: 100%; justify-content: space-between; flex-wrap: wrap; gap: 0.4rem;
    padding-top: 0.45rem; border-top: 1px solid rgba(167, 139, 250, 0.16);
  }
  .mode-switch { min-width: 132px; font-size: 0.72rem; }
  .lang-btn { padding: 0.24rem 0.46rem; font-size: 0.7rem; }
  .sched-row { grid-template-columns: 64px minmax(0, 1fr); gap: 0.45rem; }
  .sched-time { grid-column: 1 / -1; }
  .craft-grid, .timeline-track, .emote-proto-grid, .dict-grid, .roadmap-grid { grid-template-columns: 1fr; }
  .palette-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dict-search { width: 100%; min-width: 0; }
  .cp-buttons { grid-template-columns: 1fr; }
  .stamp-grid { gap: 0.3rem; }
}

/* ==========================================================================
   50-Artwork codebrush Fan Art Collection Grid
   ========================================================================== */
.cb-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.cb-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(195px, 1fr));
  gap: 0.9rem;
  margin-top: 1.1rem;
}
.cb-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface-2);
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.cb-card:hover,
.cb-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 12px 26px rgba(139, 92, 246, 0.18);
  outline: none;
}
.cb-thumb-wrap {
  position: relative;
  aspect-ratio: 4 / 5;
  width: 100%;
  background: #1a162b;
  overflow: hidden;
}
.cb-thumb-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cb-num-badge {
  position: absolute;
  top: 0.5rem;
  left: 0.5rem;
  padding: 0.16rem 0.48rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  background: rgba(20, 16, 36, 0.82);
  color: #f4eeff;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.cb-meta {
  padding: 0.65rem 0.75rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
}
.cb-title {
  font-size: 0.84rem;
  font-weight: 700;
  line-height: 1.28;
  color: var(--text);
}
.cb-sub {
  font-size: 0.72rem;
  color: var(--muted);
  display: flex;
  justify-content: space-between;
  gap: 0.35rem;
}
@media (max-width: 640px) {
  .cb-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
  .emote-proto-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }
}

/* ==========================================================================
   Section Artwork Accents, codebrush v2 Strip, Salon Spotlight & Thanksgiving KV
   ========================================================================== */
.section-head.has-accent {
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 136px;
  gap: 1.5rem;
  align-items: center;
}
.section-head-copy { max-width: 740px; }
.section-accent-btn {
  position: relative;
  display: block;
  width: 136px;
  aspect-ratio: 4 / 5;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.42);
  background: #100c20;
  box-shadow: 0 14px 32px rgba(5, 2, 18, 0.55), 0 0 18px rgba(142, 197, 255, 0.15);
  transition: transform 0.24s ease, border-color 0.24s ease, box-shadow 0.24s ease;
}
.section-accent-btn:hover,
.section-accent-btn:focus-visible {
  transform: translateY(-4px) rotate(-1deg);
  border-color: var(--accent-cyan);
  box-shadow: 0 18px 36px rgba(5, 2, 18, 0.68), 0 0 24px rgba(103, 232, 249, 0.28);
}
.section-accent-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
html[data-mode="stage"] .accent-img-dorm { display: none; }
html[data-mode="dorm"] .accent-img-stage { display: none; }
.section-accent-cap {
  position: absolute;
  inset: auto 0 0 0;
  padding: 0.34rem 0.45rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-align: center;
  color: #F5F3FF;
  background: linear-gradient(to top, rgba(11, 8, 22, 0.92), rgba(11, 8, 22, 0.45) 75%, transparent);
}

/* codebrush v2 16:10 Scroll-Snap Exhibition Strip */
.cbv2-panel {
  border-color: rgba(103, 232, 249, 0.38);
  background: linear-gradient(135deg, rgba(103, 232, 249, 0.08), rgba(167, 139, 250, 0.11));
}
.cbv2-strip {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(265px, 315px);
  gap: 0.95rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 0.2rem 0.1rem 0.65rem;
  scrollbar-color: rgba(103, 232, 249, 0.5) rgba(15, 10, 32, 0.5);
}
.cbv2-card {
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(13, 9, 28, 0.86);
  border: 1px solid rgba(167, 139, 250, 0.28);
  text-align: left;
  color: var(--text);
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}
.cbv2-card:hover,
.cbv2-card:focus-visible {
  transform: translateY(-4px);
  border-color: var(--accent-cyan);
  box-shadow: 0 14px 30px rgba(8, 4, 24, 0.62);
}
.cbv2-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  width: 100%;
  background: #0b0817;
  overflow: hidden;
}
.cbv2-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.cbv2-meta {
  padding: 0.68rem 0.82rem 0.78rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
.cbv2-meta strong { font-size: 0.86rem; color: #F5F3FF; line-height: 1.3; }
.cbv2-meta span { font-size: 0.73rem; color: var(--text-muted); }

/* Salon Spotlight Grid (4x2 Desktop, 2-col Mobile) */
.salon-spotlight-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}
.cb-badge-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.14rem;
}
.cb-inline-badge {
  padding: 0.12rem 0.46rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.64rem;
  font-weight: 700;
  background: rgba(167, 139, 250, 0.16);
  color: #BAE6FD;
  border: 1px solid rgba(142, 197, 255, 0.3);
}
.cb-inline-badge.clear {
  color: #99F6E4;
  border-color: rgba(45, 212, 191, 0.45);
}
.cb-inline-badge.midnight {
  color: #DDD6FE;
  border-color: rgba(167, 139, 250, 0.5);
}

/* Thanksgiving 2026 Key Visual Gift Card */
.thanksgiving-section { padding-top: 1.2rem; }
.thanksgiving-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 1.85rem;
  align-items: center;
  padding: 1.85rem;
  border-color: rgba(244, 114, 182, 0.42);
  background: linear-gradient(135deg, rgba(142, 197, 255, 0.10), rgba(167, 139, 250, 0.14) 55%, rgba(244, 114, 182, 0.12));
}
.thanksgiving-copy { display: flex; flex-direction: column; gap: 0.9rem; }
.thanksgiving-copy .section-title { margin-bottom: 0; }
.thanksgiving-actions { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 0.25rem; }
.kv-credit-note {
  margin: 0.35rem 0 0;
  font-size: 0.74rem;
  color: var(--text-muted);
  line-height: 1.55;
  opacity: 0.88;
}
.kv-visual-btn {
  position: relative;
  display: block;
  width: 100%;
  max-width: 390px;
  justify-self: center;
  aspect-ratio: 4 / 5;
  padding: 0;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: #100b22;
  box-shadow: 0 24px 52px rgba(4, 2, 16, 0.68), 0 0 36px rgba(244, 114, 182, 0.22);
  transition: transform 0.25s ease, border-color 0.25s ease;
}
.kv-visual-btn:hover,
.kv-visual-btn:focus-visible {
  transform: translateY(-4px);
  border-color: var(--holo-ice);
}
.kv-visual-btn img { width: 100%; height: 100%; object-fit: cover; display: block; }
html[data-mode="stage"] .kv-dorm-img,
html[data-mode="stage"] .kv-dorm-cap { display: none; }
html[data-mode="dorm"] .kv-stage-img,
html[data-mode="dorm"] .kv-stage-cap { display: none; }
.kv-caption-pill {
  position: absolute;
  inset: auto 0.75rem 0.75rem 0.75rem;
  padding: 0.36rem 0.7rem;
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 700;
  text-align: center;
  color: #F5F3FF;
  background: rgba(11, 8, 22, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.24);
  backdrop-filter: blur(8px);
}

@media (max-width: 960px) {
  .salon-spotlight-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .thanksgiving-card { grid-template-columns: 1fr; padding: 1.35rem; }
}
@media (max-width: 680px) {
  .section-head.has-accent { grid-template-columns: 1fr; gap: 1rem; }
  .section-accent-btn { width: 148px; }
  .cbv2-strip { grid-auto-columns: minmax(235px, 82vw); }
}
