/* ============================================
   NHẬT LUÂN KIẾM - Landing Page (Online Game)
   Mobile-first responsive
   ============================================ */

:root {
  --bg: #0a0a0a;
  --bg-2: #141414;
  --red: #c5272d;
  --red-dark: #8a1c20;
  --gold: #f4b400;
  --gold-soft: #e8d4b8;
  --text: #ececec;
  --text-dim: #a8a8a8;
  --font-jp: 'Shippori Mincho', serif;
  --font-vi: 'Be Vietnam Pro', system-ui, sans-serif;
  --radius: 12px;
  --max-w: 1240px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-vi);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
iframe { border: 0; }

.container { width: 100%; max-width: var(--max-w); margin: 0 auto; padding: 0 1rem; }

/* ---------- Canvas & cursor ---------- */
#sakura { position: fixed; inset: 0; pointer-events: none; z-index: 1; }
#cursor-trail {
  position: fixed; top: 0; left: 0; width: 24px; height: 24px;
  border-radius: 50%; pointer-events: none; z-index: 9999;
  background: radial-gradient(circle, rgba(244,180,0,.8), transparent 70%);
  mix-blend-mode: screen; display: none;
}
@media (hover: hover) and (pointer: fine) { #cursor-trail { display: block; } }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(10,10,10,.8); backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(244,180,0,.15);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: .8rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo { display: flex; align-items: center; gap: .6rem; }
.logo-img {
  height: 44px; width: auto;
  display: block;
  filter: drop-shadow(0 0 12px rgba(197,39,45,.5));
  transition: transform .25s, filter .25s;
}
.logo:hover .logo-img {
  transform: scale(1.05);
  filter: drop-shadow(0 0 18px rgba(244,180,0,.7));
}
.footer-logo {
  height: 44px;
  filter: drop-shadow(0 0 8px rgba(197,39,45,.25));
}
.nav-links { display: none; list-style: none; gap: 1.6rem; }
.nav-links a { font-size: .9rem; position: relative; transition: color .2s; }
.nav-links a:hover { color: var(--gold); }
.nav-links a::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px; background: var(--gold); transform: scaleX(0); transition: transform .3s;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-cta {
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  padding: .6rem 1.2rem; border-radius: 999px;
  font-weight: 700; font-size: .85rem; transition: all .2s;
  box-shadow: 0 4px 15px rgba(197,39,45,.4);
}
.nav-cta:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(197,39,45,.7); }
.nav-toggle { font-size: 1.4rem; display: block; }
@media (min-width: 900px) {
  .nav-links { display: flex; }
  .nav-toggle { display: none; }
}

/* ---------- HERO ---------- */
.hero {
  position: relative; min-height: 100vh;
  padding: 6rem 1rem 2rem;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  overflow: hidden;
  background: radial-gradient(ellipse at center, #2a0808 0%, var(--bg) 70%);
}
.hero-sun {
  position: absolute; top: 10%; left: 50%; transform: translateX(-50%);
  width: min(600px, 100vw); height: min(600px, 100vw);
  border-radius: 50%;
  background: radial-gradient(circle, var(--red) 0%, var(--red-dark) 35%, transparent 70%);
  filter: blur(30px); opacity: .5;
  animation: sunPulse 6s ease-in-out infinite;
}
@keyframes sunPulse {
  0%,100% { opacity: .45; transform: translateX(-50%) scale(1); }
  50% { opacity: .7; transform: translateX(-50%) scale(1.06); }
}
.hero-mountains {
  position: absolute; bottom: 0; left: 0; right: 0; height: 25%;
  background-color: #0a0202;
  clip-path: polygon(0 100%, 15% 40%, 30% 65%, 50% 30%, 70% 60%, 85% 45%, 100% 70%, 100% 100%);
  opacity: .9;
}

/* ---------- HERO STAGE: 4 CHARS + CENTER ---------- */
.hero-stage {
  position: relative; z-index: 2;
  width: 100%; max-width: 1400px;
  display: grid; gap: 1.5rem;
  grid-template-columns: 1fr;
  grid-template-areas:
    "center"
    "l1" "l2" "r1" "r2";
  margin-bottom: 2rem;
}
@media (min-width: 900px) {
  .hero-stage {
    grid-template-columns: 1fr 1.1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "l1 center r1"
      "l2 center r2";
    gap: .6rem .4rem;
    align-items: center;
    justify-items: center;
  }
}

.char-slot {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  padding: 1rem .5rem;
  transition: transform .4s ease;
}
.slot-l1 { grid-area: l1; }
.slot-l2 { grid-area: l2; }
.slot-r1 { grid-area: r1; }
.slot-r2 { grid-area: r2; }
.hero-center { grid-area: center; text-align: center; padding: 1rem; }

@media (min-width: 900px) {
  .char-slot:hover { transform: translateY(-8px) !important; }
}

.char-glow {
  position: absolute; top: 55%; left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(180px, 22vw, 280px);
  aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle,
    hsla(var(--h, 15), 85%, 55%, .55) 0%,
    hsla(var(--h, 15), 80%, 45%, .25) 35%,
    transparent 70%);
  filter: blur(28px);
  animation: glowPulse 3.5s ease-in-out infinite;
  pointer-events: none;
}
.char-slot[data-hue="15"] .char-glow { --h: 15; }
.char-slot[data-hue="210"] .char-glow { --h: 210; }
.char-slot[data-hue="50"] .char-glow { --h: 50; }
.char-slot[data-hue="280"] .char-glow { --h: 280; }
@keyframes glowPulse {
  0%,100% { opacity: .65; transform: translate(-50%,-50%) scale(.92); }
  50%     { opacity: 1;   transform: translate(-50%,-50%) scale(1.12); }
}
.char-silhouette {
  position: relative; z-index: 1;
  height: clamp(260px, 30vw, 380px);
  display: flex; align-items: center; justify-content: center;
  animation: charFloat 5s ease-in-out infinite;
}
.slot-l1 .char-silhouette { animation-delay: 0s; }
.slot-r1 .char-silhouette { animation-delay: 1.25s; }
.slot-l2 .char-silhouette { animation-delay: 2.5s; }
.slot-r2 .char-silhouette { animation-delay: 3.75s; }
@keyframes charFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-12px); }
}
.char-silhouette img {
  height: 100%; width: auto;
  object-fit: contain;
  filter: drop-shadow(0 12px 24px rgba(0,0,0,.7))
          drop-shadow(0 0 18px hsla(var(--h, 15), 70%, 45%, .35));
  transition: transform .4s ease, filter .4s ease;
}
.char-slot:hover .char-silhouette { animation-play-state: paused; }
.char-slot:hover .char-glow {
  animation-play-state: paused;
  opacity: 1;
}
.char-slot:hover .char-silhouette img {
  transform: scale(1.08) translateY(-6px);
  filter: drop-shadow(0 14px 28px rgba(0,0,0,.6))
          drop-shadow(0 0 26px hsla(var(--h, 15), 85%, 60%, .85));
}
.char-slot[data-hue="15"] .char-silhouette { --h: 15; }
.char-slot[data-hue="210"] .char-silhouette { --h: 210; }
.char-slot[data-hue="50"] .char-silhouette { --h: 50; }
.char-slot[data-hue="280"] .char-silhouette { --h: 280; }
.char-label { display: none; }

/* Center logo */
.hero-eyebrow {
  font-family: var(--font-jp); letter-spacing: 4px;
  color: var(--gold); font-size: .85rem; margin-bottom: 1rem;
}
.logo-ring {
  position: relative; display: inline-block; padding: 1rem;
}
.ring-sun {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 110%; aspect-ratio: 1; border-radius: 50%;
  border: 2px dashed rgba(244,180,0,.3);
  animation: ringRotate 30s linear infinite;
}
@keyframes ringRotate { to { transform: translate(-50%,-50%) rotate(360deg); } }
.hero-logo-img {
  display: block;
  width: clamp(220px, 38vw, 460px);
  height: auto;
  margin: 0 auto;
  filter: drop-shadow(0 0 30px rgba(197,39,45,.6))
          drop-shadow(0 0 60px rgba(244,180,0,.3));
  animation: logoFloat 5s ease-in-out infinite;
}
@keyframes logoFloat {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-6px) scale(1.02); }
}
.hero-slogan {
  font-family: var(--font-jp); font-style: italic;
  font-size: clamp(.9rem, 2vw, 1.15rem); color: var(--text-dim);
  margin-top: 1rem;
}

/* ---------- 4 DOWNLOAD BUTTONS ---------- */
.download-bar {
  position: relative; z-index: 3;
  display: grid; gap: .7rem;
  grid-template-columns: 1fr 1fr;
  width: 100%; max-width: 920px; margin-bottom: 1.5rem;
}
@media (min-width: 768px) { .download-bar { grid-template-columns: repeat(4, 1fr); } }

.dl-btn {
  display: flex; align-items: center; gap: .8rem;
  padding: .85rem 1.2rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #1a1a1a, #0a0a0a);
  border: 1.5px solid rgba(244,180,0,.2);
  color: var(--text);
  transition: all .25s ease;
  position: relative; overflow: hidden;
}
.dl-btn::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--red), var(--gold));
  opacity: 0; transition: opacity .25s; z-index: 0;
}
.dl-btn:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 10px 30px rgba(244,180,0,.3);
}
.dl-btn:hover::before { opacity: .12; }
.dl-btn > * { position: relative; z-index: 1; }
.dl-ico { width: 28px; height: 28px; flex-shrink: 0; color: var(--gold); }
.dl-txt { display: flex; flex-direction: column; line-height: 1.15; }
.dl-txt small { font-size: .7rem; color: var(--text-dim); letter-spacing: .5px; }
.dl-txt b { font-size: 1rem; font-weight: 700; letter-spacing: .3px; }

.dl-windows .dl-ico { color: #00adef; }
.dl-ios .dl-ico { color: #e8e8e8; }
.dl-android .dl-ico { color: #7ec850; }
.dl-apk .dl-ico { color: var(--red); }

/* ---------- SECONDARY ACTION ROW (Nạp tiền + Tin tức) ---------- */
.action-row {
  position: relative; z-index: 3;
  display: inline-flex; align-items: center;
  gap: 1.5rem;
  margin-top: .2rem; margin-bottom: 1.5rem;
  padding: 0 .5rem;
}
.action-row::before,
.action-row::after {
  content: '';
  flex: 0 0 auto;
  width: 28px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(244,180,0,.35));
}
.action-row::after {
  background: linear-gradient(90deg, rgba(244,180,0,.35), transparent);
}
.action-btn {
  position: relative;
  display: inline-flex; align-items: center;
  gap: .5rem;
  padding: .45rem .2rem;
  color: var(--text-dim);
  font-size: .82rem;
  font-weight: 500;
  letter-spacing: .3px;
  text-decoration: none;
  transition: color .25s ease;
}
.action-btn::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px;
  background: currentColor;
  opacity: 0;
  transform: scaleX(.3);
  transform-origin: center;
  transition: opacity .25s ease, transform .3s ease;
}
.action-btn:hover { color: var(--gold-soft); }
.action-btn:hover::after { opacity: .6; transform: scaleX(1); }
.action-ico {
  width: 16px; height: 16px;
  flex-shrink: 0;
  opacity: .8;
  transition: opacity .25s ease;
}
.action-btn:hover .action-ico { opacity: 1; }
.action-topup .action-ico { color: var(--red); }
.action-news  .action-ico { color: var(--gold); }
.action-divider {
  width: 1px; height: 14px;
  background: rgba(244,180,0,.25);
  flex-shrink: 0;
}

@media (max-width: 480px) {
  .action-row { gap: .9rem; }
  .action-row::before, .action-row::after { width: 14px; }
  .action-btn { font-size: .78rem; }
}

/* ---------- Sections ---------- */
.section { padding: 5rem 0; position: relative; z-index: 2; }
.section-head { text-align: center; margin-bottom: 3rem; }
.section-eyebrow {
  font-family: var(--font-jp); color: var(--gold);
  letter-spacing: 4px; font-size: .85rem; margin-bottom: .8rem;
}
.section-title {
  font-family: var(--font-jp); font-weight: 800;
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: .8rem;
}
.section-sub { color: var(--text-dim); max-width: 640px; margin: 0 auto; font-size: .95rem; }

/* ---------- CHARACTERS DETAIL ---------- */
.characters { background: linear-gradient(180deg, var(--bg), #15050a); }

.char-slider {
  position: relative;
  border-radius: var(--radius);
  border: 1px solid hsla(var(--hue),80%,55%,.4);
  background:
    radial-gradient(ellipse 70% 55% at 75% 50%, hsla(var(--hue),70%,30%,.4), transparent 70%),
    linear-gradient(135deg, hsla(var(--hue),50%,12%,.6), rgba(0,0,0,.9));
  box-shadow: 0 0 60px hsla(var(--hue),70%,40%,.25), inset 0 0 80px rgba(0,0,0,.6);
  overflow: hidden;
  transition: border-color .6s, box-shadow .6s, background .6s;
  min-height: 560px;
}
.char-slider:hover {
  border-color: hsla(var(--hue),85%,65%,.7);
  box-shadow: 0 0 90px hsla(var(--hue),75%,50%,.4), inset 0 0 80px rgba(0,0,0,.55);
}
.char-slider::after {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45) 100%);
  pointer-events: none; z-index: 0;
}
@media (min-width: 768px) { .char-slider { min-height: 400px; } }
@media (min-width: 1024px) { .char-slider { min-height: 440px; } }

.cs-track { position: relative; width: 100%; height: 100%; min-height: inherit; }

.cs-slide {
  position: absolute; inset: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) auto;
  align-items: center;
  opacity: 0; pointer-events: none;
  transition: opacity .7s ease;
  overflow: hidden;
}
@media (min-width: 768px) {
  .cs-slide {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
  }
}
.cs-slide.active { opacity: 1; pointer-events: auto; z-index: 1; }

.cs-portrait {
  position: relative;
  height: 100%;
  display: flex; align-items: center; justify-content: center;
  z-index: 1; pointer-events: none;
  order: -1;
}
@media (min-width: 768px) {
  .cs-portrait { order: 0; }
}
.cs-portrait::before {
  content: ""; position: absolute;
  left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(240px, 32vw, 440px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle,
    hsla(var(--hue),85%,55%,.4) 0%,
    hsla(var(--hue),80%,45%,.15) 35%,
    transparent 70%);
  filter: blur(22px);
  z-index: 0;
  animation: glowPulse 5s ease-in-out infinite;
}
.cs-portrait::after {
  content: "";
  position: absolute;
  left: 50%; bottom: 4%;
  transform: translateX(-50%);
  width: 62%; height: 30px;
  background: radial-gradient(ellipse at center,
    rgba(0,0,0,.78) 0%,
    rgba(0,0,0,.55) 22%,
    rgba(0,0,0,.25) 50%,
    rgba(0,0,0,.08) 72%,
    transparent 88%);
  filter: blur(7px);
  z-index: 0;
  transform-origin: 50% 50%;
  will-change: transform, opacity;
  animation: shadowBreath 2.4s ease-in-out infinite;
  animation-play-state: paused;
}
.cs-slide.active .cs-portrait::after { animation-play-state: running; }

/* Bóng co lại + mờ đi khi nhân vật nhô lên (đồng bộ idleBreath) */
@keyframes shadowBreath {
  0%, 100% { transform: translateX(-50%) scale(1, 1);     opacity: 1;    filter: blur(7px);  }
  50%      { transform: translateX(-50%) scale(.88, .82); opacity: .78;  filter: blur(8px);  }
}

@media (prefers-reduced-motion: reduce) {
  .cs-portrait::after { animation: none !important; }
}
.cs-portrait img {
  position: relative;
  z-index: 1;
  height: 92%;
  width: auto;
  max-width: 90%;
  object-fit: contain;
  filter:
    drop-shadow(0 16px 28px rgba(0,0,0,.7))
    drop-shadow(0 0 22px hsla(var(--hue),80%,50%,.45));
  image-rendering: -webkit-optimize-contrast;
  transform-origin: 50% 100%;
  will-change: transform;
  animation: idleBreath 2.4s ease-in-out infinite;
  animation-play-state: paused;
}
.cs-slide.active .cs-portrait img { animation-play-state: running; }
.cs-slide:not(.active) .cs-portrait img { animation-play-state: paused; }

/* Nhịp thở đều, mượt như nước — vai nhô lên, hạ xuống nhẹ nhàng */
@keyframes idleBreath {
  0%, 100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-8px) scale(1.022); }
}

@media (prefers-reduced-motion: reduce) {
  .cs-portrait img { animation: none !important; }
}

.cs-content {
  position: relative; z-index: 2;
  padding: 1rem 1.4rem 3.2rem;
  text-align: center;
  align-self: end;
}
@media (min-width: 768px) {
  .cs-content {
    padding: 2.5rem 1.5rem 2.5rem 5rem;
    text-align: left;
    align-self: center;
  }
}
@media (min-width: 1024px) {
  .cs-content { padding: 3rem 2rem 3rem 6.5rem; }
}

.cs-romaji {
  font-family: var(--font-jp);
  font-weight: 600;
  font-size: .8rem;
  letter-spacing: 4px;
  color: hsla(var(--hue), 80%, 70%, .9);
  margin-bottom: .6rem;
  opacity: .9;
}

.cs-name {
  font-family: var(--font-jp);
  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1.05;
  color: var(--gold-soft);
  margin: .3rem 0 1.2rem;
  text-shadow: 0 0 30px hsla(var(--hue),80%,50%,.6);
  letter-spacing: -1px;
  position: relative;
  padding-bottom: .8rem;
}
.cs-name::after {
  content: "";
  position: absolute;
  left: 0; bottom: 0;
  width: 64px; height: 2px;
  background: linear-gradient(90deg,
    hsla(var(--hue),85%,60%,.95),
    hsla(var(--hue),80%,50%,.4) 60%,
    transparent);
}
@media (max-width: 767px) {
  .cs-name::after { left: 50%; transform: translateX(-50%); }
}

.cs-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  z-index: 5;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(6px);
  border: 1px solid hsla(var(--hue),80%,55%,.5);
  color: var(--gold-soft);
  font-size: 1.6rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: all .25s;
  opacity: .65;
}
.char-slider:hover .cs-nav { opacity: 1; }
.cs-nav:hover {
  background: hsla(var(--hue),80%,40%,.85);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-50%) scale(1.12);
  opacity: 1;
}
.cs-prev { left: .5rem; }
.cs-next { right: .5rem; }
@media (min-width: 768px) {
  .cs-nav { width: 48px; height: 48px; font-size: 1.9rem; }
  .cs-prev { left: 1rem; }
  .cs-next { right: 1rem; }
}

.cs-dots {
  position: absolute; bottom: 1.2rem; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: .6rem;
  z-index: 5;
}
.cs-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  border: 1px solid rgba(255,255,255,.15);
  padding: 0;
  transition: all .3s;
}
.cs-dot:hover { background: rgba(255,255,255,.5); }
.cs-dot.active {
  width: 28px; border-radius: 6px;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

.char-tag {
  display: inline-block; padding: .35rem 1rem;
  background: hsla(var(--hue),80%,50%,.22);
  border: 1px solid hsla(var(--hue),80%,55%,.5);
  border-radius: 999px; font-size: .72rem; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: hsl(var(--hue),85%,80%);
  box-shadow: 0 0 18px hsla(var(--hue),80%,50%,.25);
  margin-bottom: .8rem;
}
.char-desc { color: var(--text-dim); font-size: .98rem; line-height: 1.7; margin-bottom: 0; max-width: 42ch; }
@media (max-width: 767px) { .char-desc { margin-left: auto; margin-right: auto; } }
.char-desc b { color: var(--gold); font-weight: 700; }
.char-stats { display: grid; gap: .6rem; max-width: 420px; }
.char-stats > div { display: grid; grid-template-columns: 50px 1fr; align-items: center; gap: .8rem; }
.char-stats span { font-size: .75rem; font-weight: 700; color: var(--gold); letter-spacing: 1px; }
.bar { height: 10px; border-radius: 5px; background: rgba(255,255,255,.06); overflow: hidden; box-shadow: inset 0 1px 2px rgba(0,0,0,.6); }
.bar i {
  display: block; height: 100%;
  background: linear-gradient(90deg, hsl(var(--hue),70%,50%), hsl(var(--hue),80%,65%));
  border-radius: 4px;
  animation: barFill 1.2s ease;
}
@keyframes barFill { from { width: 0 !important; } }

/* ---------- BREATHINGS ---------- */
.breathings { background: linear-gradient(180deg, #15050a, var(--bg-2)); }

.breath-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  justify-content: center;
  margin-bottom: 2rem;
}
.bt-btn {
  display: flex; align-items: center; gap: .8rem;
  padding: .8rem 1.4rem;
  border-radius: 999px;
  background: rgba(255,255,255,.04);
  border: 1px solid hsla(var(--hue),60%,45%,.35);
  color: var(--text-dim);
  font-family: var(--font-vi);
  font-weight: 600;
  font-size: .95rem;
  letter-spacing: .5px;
  transition: all .3s;
}
.bt-btn:hover {
  background: hsla(var(--hue),60%,30%,.2);
  border-color: hsla(var(--hue),80%,55%,.6);
  color: var(--text);
}
.bt-btn.active {
  background: linear-gradient(135deg, hsla(var(--hue),70%,35%,.45), hsla(var(--hue),60%,20%,.5));
  border-color: hsla(var(--hue),85%,60%,.85);
  color: hsl(var(--hue),85%,85%);
  box-shadow: 0 0 24px hsla(var(--hue),80%,50%,.4);
}
.bt-kanji {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: 1.3rem;
  color: hsl(var(--hue),85%,70%);
  text-shadow: 0 0 12px currentColor;
}

.breath-panels { position: relative; }
.bp-panel {
  display: none;
  grid-template-columns: 1fr;
  gap: 1rem;
}
.bp-panel.active {
  display: grid;
  animation: fadeUp .5s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: none; }
}
@media (min-width: 720px)  { .bp-panel.active { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .bp-panel.active { grid-template-columns: repeat(3, 1fr); } }

.skill-card {
  position: relative;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 1rem;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, hsla(var(--hue),50%,15%,.45), rgba(0,0,0,.6));
  border: 1px solid hsla(var(--hue),60%,45%,.3);
  transition: all .3s;
  overflow: hidden;
}
.skill-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px;
  background: linear-gradient(180deg, hsl(var(--hue),85%,55%), hsla(var(--hue),85%,40%,.3));
}
.skill-card:hover {
  transform: translateY(-3px);
  border-color: hsla(var(--hue),85%,60%,.7);
  box-shadow: 0 12px 30px hsla(var(--hue),70%,30%,.4);
}
.skill-card.sk-ult {
  background: linear-gradient(135deg, hsla(var(--hue),70%,22%,.7), hsla(var(--hue),60%,12%,.85));
  border-color: hsla(var(--hue),90%,60%,.7);
  box-shadow: 0 0 22px hsla(var(--hue),80%,45%,.35);
}
.skill-card.sk-ult::after {
  content: "ULT"; position: absolute; top: 8px; right: 10px;
  font-size: .65rem; font-weight: 800;
  letter-spacing: 2px;
  color: var(--gold);
  background: rgba(0,0,0,.55);
  border: 1px solid var(--gold);
  padding: 2px 8px; border-radius: 4px;
}

.sk-level {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  border-radius: 8px;
  background: radial-gradient(circle, hsla(var(--hue),70%,30%,.6), hsla(var(--hue),60%,12%,.7));
  border: 1px solid hsla(var(--hue),85%,55%,.5);
  padding: .4rem;
}
.sk-num {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: 1.8rem;
  line-height: 1;
  color: hsl(var(--hue),85%,80%);
  text-shadow: 0 0 14px currentColor;
}
.sk-lv {
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  margin-top: .15rem;
}

.sk-body { display: flex; flex-direction: column; gap: .4rem; min-width: 0; }
.sk-head {
  display: flex; flex-wrap: wrap;
  align-items: center; gap: .6rem;
}
.sk-name {
  font-family: var(--font-jp);
  font-size: 1.2rem;
  color: var(--gold-soft);
  line-height: 1.2;
}
.sk-type {
  display: inline-block;
  padding: .15rem .6rem;
  font-size: .65rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 999px;
  border: 1px solid currentColor;
  white-space: nowrap;
}
.type-aoe     { color: #ff6b6b; background: rgba(255,107,107,.1); }
.type-passive { color: #6bb6ff; background: rgba(107,182,255,.1); }
.type-active  { color: var(--gold); background: rgba(244,180,0,.1); }

.sk-desc {
  color: var(--text-dim);
  font-size: .88rem;
  line-height: 1.55;
}

/* ---------- VIDEO SLIDER ---------- */
.videos { background: var(--bg-2); }
.video-slider { position: relative; }
.v-stage { max-width: 960px; margin: 0 auto 1.5rem; position: relative; }
.v-main {
  position: relative; aspect-ratio: 16/9;
  border-radius: var(--radius); overflow: hidden;
  background: #000;
  border: 2px solid rgba(244,180,0,.3);
  box-shadow: 0 20px 60px rgba(197,39,45,.25);
}
.v-main iframe { width: 100%; height: 100%; }
.v-title {
  text-align: center; margin-top: 1rem;
  font-family: var(--font-jp); font-size: 1.2rem;
  color: var(--gold-soft);
}

.v-nav {
  position: absolute; top: calc(50% - 40px); transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(197,39,45,.85); font-size: 1.8rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  z-index: 5; transition: all .2s;
  color: #fff;
}
.v-nav:hover { background: var(--red); transform: translateY(-50%) scale(1.1); box-shadow: 0 0 20px var(--red); }
.v-prev { left: .5rem; }
.v-next { right: .5rem; }
@media (min-width: 1100px) {
  .v-prev { left: -24px; } .v-next { right: -24px; }
}

.v-thumbs {
  display: flex; gap: .8rem;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: .5rem .2rem 1rem;
  scrollbar-width: thin; scrollbar-color: var(--red) transparent;
}
.v-thumbs::-webkit-scrollbar { height: 6px; }
.v-thumbs::-webkit-scrollbar-thumb { background: var(--red); border-radius: 3px; }
.v-thumb {
  flex: 0 0 clamp(140px, 42vw, 180px); scroll-snap-align: center;
  display: flex; flex-direction: column; gap: .5rem;
  padding: .4rem; border-radius: 10px;
  background: rgba(0,0,0,.4); border: 2px solid transparent;
  transition: all .25s;
  text-align: left;
}
.v-thumb:hover { border-color: rgba(244,180,0,.4); transform: translateY(-3px); }
.v-thumb.active { border-color: var(--red); box-shadow: 0 0 15px rgba(197,39,45,.6); }
.thumb-img {
  aspect-ratio: 16/9; border-radius: 6px;
  position: relative;
}
.thumb-img::after {
  content: '▶'; position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 1.6rem;
  text-shadow: 0 0 10px rgba(0,0,0,.8);
}
.v-thumb span { font-size: .8rem; font-weight: 600; color: var(--text); padding: 0 .3rem .3rem; }

/* ---------- GIFTCODE ---------- */
.giftcode { background: linear-gradient(135deg, #1a0505, #0a0a0a); }
.gift-box {
  position: relative;
  max-width: 680px;
  margin: 0 auto;
  background: linear-gradient(135deg, rgba(197,39,45,.16), rgba(244,180,0,.08));
  border: 1px solid rgba(244,180,0,.35);
  border-radius: var(--radius);
  padding: 1.2rem 1.2rem;
  display: flex; flex-direction: column;
  gap: .9rem;
  box-shadow: 0 0 50px rgba(197,39,45,.12);
}
@media (min-width: 720px) { .gift-box { padding: 1.4rem 1.6rem; gap: 1rem; } }

.gift-head { text-align: center; }
.gift-head h2 {
  font-family: var(--font-jp);
  font-size: clamp(1.2rem, 3vw, 1.5rem);
  color: var(--gold);
  margin: 0;
}
.gift-hsd-inline {
  font-family: var(--font-vi);
  font-size: .8rem;
  color: var(--text-dim);
  font-weight: 400;
  letter-spacing: .5px;
}
.gift-hsd-inline b { color: var(--gold); font-weight: 700; }

/* code card — single row */
.gift-code-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: .7rem .9rem;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(0,0,0,.55), rgba(244,180,0,.05));
  border: 1px dashed rgba(244,180,0,.5);
}
.gcc-label {
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 2px;
  color: var(--gold);
  background: rgba(244,180,0,.12);
  padding: .15rem .55rem;
  border-radius: 999px;
  border: 1px solid rgba(244,180,0,.3);
  text-transform: uppercase;
}
.gift-code-card code {
  font-family: 'Courier New', monospace;
  font-weight: 800;
  font-size: clamp(1.25rem, 3.5vw, 1.5rem);
  letter-spacing: 2.5px;
  color: var(--gold-soft);
  background: rgba(0,0,0,.55);
  padding: .35rem .9rem;
  border-radius: 6px;
  border: 1px solid rgba(244,180,0,.4);
  text-shadow: 0 0 14px rgba(244,180,0,.45);
  user-select: all;
}
.gcc-copy {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  padding: .4rem .8rem;
  border-radius: 999px;
  font-size: .78rem;
  font-weight: 600;
  background: linear-gradient(135deg, var(--red), var(--red-dark));
  color: #fff;
  box-shadow: 0 3px 12px rgba(197,39,45,.4);
  transition: all .25s;
}
.gcc-copy:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 18px rgba(197,39,45,.6);
}
.gcc-copy.copied {
  background: linear-gradient(135deg, #2da44e, #1a7a3a);
  box-shadow: 0 3px 12px rgba(45,164,78,.5);
}
.gcc-copy-ico { font-size: .9rem; line-height: 1; }

/* rewards — compact grid */
.gift-rewards {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: .35rem;
  grid-template-columns: 1fr;
}
@media (min-width: 520px) { .gift-rewards { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 760px) { .gift-rewards { grid-template-columns: repeat(3, 1fr); } }

.gift-rewards li {
  display: flex; align-items: center; gap: .55rem;
  padding: .4rem .6rem;
  background: rgba(244,180,0,.05);
  border: 1px solid rgba(244,180,0,.18);
  border-radius: 6px;
  font-size: .82rem;
  color: var(--text);
  transition: all .2s;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.gift-rewards li:hover {
  background: rgba(244,180,0,.12);
  border-color: rgba(244,180,0,.4);
}
.gr-qty {
  display: inline-block;
  min-width: 40px;
  font-family: 'Courier New', monospace;
  font-weight: 800;
  color: var(--gold);
  text-align: center;
  background: rgba(244,180,0,.18);
  border: 1px solid rgba(244,180,0,.28);
  border-radius: 4px;
  padding: .05rem .3rem;
  font-size: .78rem;
}

.gift-note {
  text-align: center;
  font-size: .78rem;
  color: var(--text-dim);
  padding: .5rem .8rem;
  background: rgba(0,0,0,.3);
  border-radius: 6px;
  border-left: 2px solid var(--gold);
  margin: 0;
}
.gift-note b { color: var(--gold-soft); font-weight: 700; }

.rating-12 {
  background: linear-gradient(135deg, #2da44e, #1a7a3a);
  color: #fff !important;
  padding: .15rem .6rem;
  border-radius: 6px;
  font-weight: 700;
  letter-spacing: .5px;
  box-shadow: 0 2px 8px rgba(45,164,78,.4);
}

/* ---------- COMMUNITY ---------- */
.community { background: linear-gradient(180deg, var(--bg), #0a0505); }
.social-grid {
  display: grid; gap: 1rem; margin-top: 2rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}
.social {
  display: flex; flex-direction: column; align-items: center; gap: .3rem;
  padding: 1.5rem 1rem; border-radius: var(--radius);
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  transition: all .3s;
}
.social b { font-size: 2rem; font-weight: 800; }
.social span { font-weight: 600; }
.social small { color: var(--text-dim); font-size: .75rem; }
.social.fb:hover { background: #1877f2; border-color: #1877f2; }
.social.dc:hover { background: #5865f2; border-color: #5865f2; }
.social.tk:hover { background: #000; border-color: #ff0050; color: #ff0050; }
.social.yt:hover { background: #ff0000; border-color: #ff0000; }

/* ---------- FOOTER ---------- */
.footer { background: #050505; padding: 1.5rem 0 1rem; border-top: 1px solid rgba(244,180,0,.1); }
.footer-inner { display: grid; gap: 2rem; }
.footer-desc {
  color: rgba(168, 168, 168, .85);
  font-size: .75rem;
  line-height: 1.65;
  margin-top: .8rem;
  max-width: 48ch;
  padding-left: .9rem;
  border-left: 2px solid rgba(244,180,0,.18);
}
.footer-desc + .footer-desc { margin-top: .55rem; }
.footer-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.footer-cols h4 { color: var(--gold); margin-bottom: .8rem; font-size: .9rem; letter-spacing: 1px; }
.footer-cols a { display: block; color: var(--text-dim); font-size: .85rem; padding: .25rem 0; transition: color .2s; }
.footer-cols a:hover { color: var(--gold); }
.footer-partners {
  display: flex; flex-direction: column; align-items: center;
  gap: .7rem;
  padding: 1rem 1rem .6rem;
  margin-top: 1rem;
  border-top: 1px solid rgba(244,180,0,.08);
}
.partner-label {
  font-family: var(--font-jp);
  font-size: .75rem;
  letter-spacing: 3px;
  color: var(--gold-soft);
  text-transform: uppercase;
  opacity: .85;
}
.partner-logos {
  display: inline-flex; align-items: center;
  gap: 2.5rem;
  flex-wrap: wrap;
  justify-content: center;
}
.partner-logos img {
  height: 48px;
  width: auto;
  opacity: .92;
  filter: brightness(1.1) drop-shadow(0 2px 8px rgba(0,0,0,.4));
  transition: opacity .3s ease, filter .3s ease, transform .3s ease;
}
.partner-logos img:first-child { height: 58px; }
.partner-logos img:hover {
  opacity: 1;
  filter: brightness(1.25) drop-shadow(0 4px 14px rgba(91,191,255,.4));
  transform: translateY(-2px);
}
@media (max-width: 480px) {
  .footer-partners { gap: .6rem; padding: .8rem 1rem .6rem; margin-top: .6rem; }
  .partner-logos { gap: 1.5rem; }
  .partner-logos img { height: 36px; }
  .partner-logos img:first-child { height: 44px; }
}

.footer-bottom {
  text-align: center; color: var(--text-dim); font-size: .8rem;
  padding-top: .6rem;
  margin-top: 0;
}
@media (min-width: 720px) { .footer-inner { grid-template-columns: 1.5fr 2fr; } }

/* ---------- Easter egg ---------- */
#focusEgg {
  position: fixed; inset: 0; z-index: 9998;
  background: rgba(0,0,0,.85); display: none;
  align-items: center; justify-content: center;
}
#focusEgg.show { display: flex; }
.focus-ring {
  position: absolute; width: 300px; height: 300px; border-radius: 50%;
  border: 4px solid var(--red); animation: focusRing 1.5s ease infinite;
}
.focus-text {
  font-family: var(--font-jp); font-weight: 800; text-align: center;
  font-size: clamp(3rem, 10vw, 6rem); color: var(--red);
  text-shadow: 0 0 40px var(--red); z-index: 1; position: relative;
}
.focus-text span { display: block; font-size: .25em; letter-spacing: .4em; color: var(--gold); margin-top: 1rem; }
@keyframes focusRing { 0% { transform: scale(.5); opacity: 1; } 100% { transform: scale(2); opacity: 0; } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(30px); transition: all .8s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Mobile tweaks ---------- */
@media (max-width: 640px) {
  .section { padding: 2.5rem 0; }
  .nav-cta { padding: .4rem .9rem; font-size: .8rem; }
  .hero { padding-top: 5.5rem; }
  .char-silhouette { height: clamp(140px, 28vw, 220px); width: auto; font-size: 2.5rem; }
  .char-silhouette img { height: 100%; width: auto; max-width: 100%; }
  .char-glow { width: clamp(130px, 32vw, 210px); filter: blur(20px); }
  @keyframes charFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }
  .char-slot { padding: .25rem .15rem; }
  .slot-l1, .slot-l2, .slot-r1, .slot-r2 {
    display: inline-flex;
  }
  .bt-btn { padding: .6rem .9rem; font-size: .85rem; gap: .5rem; }
  .bt-kanji { font-size: 1.1rem; }
  .footer-cols { grid-template-columns: 1fr; gap: 1.2rem; }
  .footer-cols a { padding: .5rem 0; font-size: .9rem; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
  .download-bar { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: 1fr; }
}

/* Mobile/tablet: keep desktop "diamond" layout (chars around logo), shrink everything */
/* Mobile: 2x2 chars at corners, logo floats absolute in the middle (overlaps grid) */
@media (max-width: 899px) {
  .hero-stage {
    position: relative;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
    grid-template-areas:
      "l1 r1"
      "l2 r2";
    gap: .4rem;
    align-items: center;
  }
  .slot-l1, .slot-l2 { justify-self: start; }
  .slot-r1, .slot-r2 { justify-self: end; }
  .slot-r1 { transform: translateX(40px); }
  .char-slot { position: relative; z-index: 2; }
  .hero-center {
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    z-index: 3;
    grid-area: unset;
    padding: 0;
    pointer-events: none;
  }
  .hero-center > * { pointer-events: auto; }
}
@media (max-width: 768px) {
  .hero-eyebrow, .hero-slogan { display: none; }
  .hero-logo-img { width: clamp(240px, 60vw, 420px); }
  .logo-ring { padding: .2rem; }
}

/* Mobile-only standalone eyebrow above hero-stage */
.hero-eyebrow-mobile {
  display: none;
  text-align: center;
  font-family: var(--font-jp);
  letter-spacing: 3px;
  color: var(--gold);
  font-size: .72rem;
  margin: 0 0 1rem;
}
@media (max-width: 768px) {
  .hero-eyebrow-mobile { display: block; }
}

/* ---------- Mobile menu ---------- */
.nav-links.open {
  display: flex;
  flex-direction: column;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: rgba(10,10,10,.97);
  padding: 1rem;
  border-top: 1px solid rgba(244,180,0,.2);
  gap: .5rem;
  animation: menuSlideDown .25s ease-out;
}
@keyframes menuSlideDown {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
body.no-scroll { overflow: hidden; }

/* ========================================
   ROADMAP PAGE
   ======================================== */

/* Active nav link */
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -6px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}

/* Page hero (simple, no chars/logo) */
.page-hero {
  position: relative;
  padding: 8rem 1rem 3rem;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 60% at 50% 20%, rgba(197,39,45,.18), transparent 70%),
    linear-gradient(180deg, #0a0606 0%, #15050a 100%);
  border-bottom: 1px solid rgba(244,180,0,.1);
}
.page-title {
  font-family: var(--font-jp); font-weight: 800;
  font-size: clamp(2rem, 6vw, 3.4rem);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin: .5rem 0 .8rem;
  letter-spacing: 1px;
}
.page-sub {
  color: var(--text-dim);
  font-size: clamp(.95rem, 2vw, 1.05rem);
  line-height: 1.6;
  max-width: 640px; margin: 0 auto;
}
.page-sub b { color: var(--gold-soft); }
@media (max-width: 640px) {
  .page-hero { padding: 6rem 1rem 2rem; }
}

/* Roadmap timeline */
.roadmap { background: linear-gradient(180deg, #0a0606 0%, #0d0a13 100%); }
.roadmap-timeline {
  list-style: none;
  position: relative;
  margin: 0 auto;
  max-width: 1200px;
}

/* === MOBILE / TABLET: vertical timeline === */
@media (max-width: 1023px) {
  .roadmap-timeline { padding: 0 0 0 4rem; max-width: 760px; }
  .roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 1.7rem; top: 1rem; bottom: 1rem;
    width: 2px;
    background: linear-gradient(180deg,
      rgba(244,180,0,.5) 0%,
      rgba(244,180,0,.25) 50%,
      rgba(197,39,45,.4) 100%);
  }
  .rm-item { position: relative; margin-bottom: 1.5rem; display: block; }
  .rm-marker {
    position: absolute;
    left: -3.5rem; top: .4rem;
  }
  .rm-item:hover .rm-card { transform: translateX(4px); }
}

/* === DESKTOP: horizontal timeline === */
@media (min-width: 1024px) {
  .roadmap-timeline {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding: 1rem 1rem 0;
    max-width: 1000px;
  }
  .roadmap-timeline::before {
    content: '';
    position: absolute;
    left: 16%; right: 16%;
    top: calc(1rem + 28px); height: 2px;
    background: linear-gradient(90deg,
      rgba(126,200,80,.6) 0%,
      rgba(244,180,0,.55) 50%,
      rgba(197,39,45,.65) 100%);
    z-index: 0;
  }
  .rm-item {
    position: relative;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
    margin-bottom: 0;
  }
  .rm-marker {
    position: relative;
    margin-bottom: 1.2rem;
  }
  .rm-card { width: 100%; }
  .rm-item:hover .rm-card { transform: translateY(-4px); }
  .rm-desc { min-height: 4.8em; font-size: .85rem; }
  .rm-name { font-size: 1.05rem; }
  .rm-card { padding: 1rem 1rem; }
}

.rm-marker {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #1a0a0d, #060303);
  border: 2px solid rgba(244,180,0,.4);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-jp);
  font-size: 1.5rem; font-weight: 700;
  color: var(--gold-soft);
  box-shadow: 0 4px 12px rgba(0,0,0,.5);
  transition: all .3s ease;
  z-index: 1;
  flex-shrink: 0;
}
.rm-card {
  background: linear-gradient(135deg, rgba(20,12,12,.85), rgba(8,4,4,.9));
  border: 1px solid rgba(244,180,0,.18);
  border-radius: 12px;
  padding: 1.2rem 1.4rem;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.rm-item:hover .rm-card {
  border-color: rgba(244,180,0,.45);
  box-shadow: 0 6px 20px rgba(0,0,0,.5);
}
.rm-date {
  font-family: var(--font-jp);
  letter-spacing: 3px;
  font-size: .72rem;
  color: var(--gold);
  text-transform: uppercase;
  margin-bottom: .3rem;
}
.rm-name {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.4vw, 1.3rem);
  color: var(--gold-soft);
  margin-bottom: .5rem;
  line-height: 1.3;
}
.rm-desc {
  color: var(--text-dim);
  font-size: .92rem;
  line-height: 1.65;
  margin-bottom: .9rem;
}
.rm-status {
  display: inline-block;
  padding: .3rem .8rem;
  border-radius: 99px;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-dim);
}

/* Done state */
.rm-done .rm-marker {
  opacity: .6;
  border-color: rgba(126,200,80,.5);
  color: rgba(126,200,80,.8);
}
.rm-done .rm-card { opacity: .75; }
.rm-status-done {
  background: rgba(126,200,80,.1);
  border-color: rgba(126,200,80,.4);
  color: #7ec850;
}

/* Active state */
.rm-active .rm-marker {
  border-color: var(--gold);
  background: linear-gradient(135deg, hsla(45,80%,40%,.3), #060303);
  color: var(--gold);
  box-shadow: 0 0 24px rgba(244,180,0,.4), 0 4px 12px rgba(0,0,0,.5);
  animation: rmPulse 2.5s ease-in-out infinite;
}
.rm-active .rm-card {
  border-color: rgba(244,180,0,.45);
  background: linear-gradient(135deg, rgba(40,28,8,.7), rgba(8,4,4,.9));
}
.rm-status-active {
  background: rgba(244,180,0,.18);
  border-color: rgba(244,180,0,.55);
  color: var(--gold);
}
.rm-status-active::before {
  display: inline-block;
  margin-right: .25rem;
  animation: rmDotPulse 1.5s ease-in-out infinite;
}

/* Launch state */
.rm-launch .rm-marker {
  border-color: var(--red);
  background: linear-gradient(135deg, hsla(0,70%,40%,.45), #060303);
  color: var(--gold);
  box-shadow: 0 0 28px rgba(197,39,45,.45), 0 4px 12px rgba(0,0,0,.5);
}
.rm-launch .rm-card {
  border-color: rgba(197,39,45,.45);
  background:
    radial-gradient(ellipse 100% 60% at 50% 0%, rgba(197,39,45,.12), transparent 70%),
    linear-gradient(135deg, rgba(40,12,12,.85), rgba(8,4,4,.9));
}
.rm-status-launch {
  background: linear-gradient(135deg, var(--red), #d97a3e);
  border-color: rgba(244,180,0,.4);
  color: #fff;
  box-shadow: 0 4px 16px rgba(197,39,45,.35);
}

@keyframes rmPulse {
  0%,100% { box-shadow: 0 0 24px rgba(244,180,0,.4), 0 4px 12px rgba(0,0,0,.5); }
  50%     { box-shadow: 0 0 36px rgba(244,180,0,.7), 0 4px 12px rgba(0,0,0,.5); }
}
@keyframes rmDotPulse {
  0%,100% { opacity: 1; }
  50%     { opacity: .4; }
}

@media (max-width: 640px) {
  .roadmap-timeline { padding-left: 3.2rem; max-width: 100%; }
  .roadmap-timeline::before { left: 1.2rem; }
  .rm-marker { left: -2.9rem; width: 44px; height: 44px; font-size: 1.15rem; }
  .rm-card { padding: 1rem 1.1rem; }
}

/* Events grid */
.events { background: linear-gradient(180deg, #0d0a13 0%, var(--bg) 100%); }
.events-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.2rem;
  max-width: 1100px; margin: 0 auto;
}
@media (min-width: 768px) {
  .events-grid { grid-template-columns: 1.3fr 1fr 1fr; }
  .event-feature { grid-column: 1; grid-row: span 1; }
}
.event-card {
  position: relative;
  display: flex; flex-direction: column;
  background: linear-gradient(135deg, rgba(20,12,12,.85), rgba(8,4,4,.9));
  border: 1px solid rgba(244,180,0,.2);
  border-radius: 14px;
  padding: 1.5rem 1.4rem;
  transition: border-color .3s ease, transform .3s ease, box-shadow .3s ease;
}
.event-card:hover {
  border-color: rgba(244,180,0,.5);
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(0,0,0,.55);
}
.event-feature {
  background:
    radial-gradient(ellipse 100% 70% at 0% 0%, rgba(197,39,45,.18), transparent 70%),
    linear-gradient(135deg, rgba(30,15,15,.9), rgba(8,4,4,.9));
  border-color: rgba(244,180,0,.4);
}
.event-tag {
  display: inline-block;
  align-self: flex-start;
  padding: .25rem .7rem;
  border-radius: 99px;
  font-family: var(--font-jp);
  font-size: .68rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(244,180,0,.1);
  border: 1px solid rgba(244,180,0,.35);
  margin-bottom: .9rem;
}
.event-feature .event-tag {
  color: #fff;
  background: linear-gradient(135deg, var(--red), #d97a3e);
  border-color: transparent;
}
.event-title {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--gold-soft);
  margin-bottom: .6rem;
  line-height: 1.3;
}
.event-desc {
  color: var(--text-dim);
  font-size: .9rem;
  line-height: 1.6;
  margin-bottom: 1rem;
  flex: 1;
}
.event-meta {
  list-style: none;
  display: grid; gap: .4rem;
  margin-bottom: 1.1rem;
  padding-top: .9rem;
  border-top: 1px dashed rgba(244,180,0,.15);
}
.event-meta li {
  display: flex; justify-content: space-between;
  font-size: .82rem;
}
.event-meta span { color: var(--text-dim); letter-spacing: .5px; }
.event-meta b { color: var(--gold-soft); font-weight: 600; }
.event-cta {
  display: inline-flex; align-items: center; justify-content: center;
  padding: .7rem 1.1rem;
  border-radius: 10px;
  background: rgba(244,180,0,.08);
  border: 1px solid rgba(244,180,0,.4);
  color: var(--gold);
  font-weight: 700;
  font-size: .88rem;
  text-decoration: none;
  letter-spacing: .5px;
  transition: all .25s ease;
}
.event-cta:hover {
  background: linear-gradient(135deg, rgba(244,180,0,.2), rgba(197,39,45,.2));
  border-color: var(--gold);
  color: #fff;
  transform: translateX(2px);
}

/* ---------- COMING SOON MODAL ---------- */
.modal {
  position: fixed; inset: 0;
  z-index: 999;
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
}
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(40,8,12,.85), rgba(0,0,0,.95));
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  animation: modalFade .35s ease-out;
}
.modal-card {
  position: relative;
  width: 100%; max-width: 440px;
  padding: 2.5rem 2rem 2rem;
  border-radius: 18px;
  background:
    radial-gradient(ellipse 120% 80% at 50% 0%, hsla(15,70%,30%,.4), transparent 70%),
    linear-gradient(160deg, #1a0a0d 0%, #0c0606 100%);
  border: 1px solid rgba(244,180,0,.4);
  box-shadow:
    0 20px 60px rgba(0,0,0,.7),
    0 0 80px rgba(197,39,45,.25),
    inset 0 1px 0 rgba(255,255,255,.05);
  text-align: center;
  animation: modalSlideIn .4s cubic-bezier(.2,.9,.3,1.1);
  overflow: hidden;
}
.modal-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--red), var(--gold), transparent);
  opacity: .8;
}
.modal-kanji {
  font-family: var(--font-jp); font-weight: 800;
  font-size: 5rem; line-height: 1;
  color: hsla(15, 80%, 55%, .15);
  position: absolute; top: 1rem; right: 1.2rem;
  pointer-events: none; user-select: none;
  text-shadow: 0 0 30px rgba(197,39,45,.3);
}
.modal-eyebrow {
  font-family: var(--font-jp);
  letter-spacing: 4px;
  font-size: .75rem;
  color: var(--gold);
  margin-bottom: .6rem;
  position: relative;
}
.modal-title {
  font-family: var(--font-jp); font-weight: 800;
  font-size: clamp(1.6rem, 4vw, 2rem);
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 1.2rem;
  letter-spacing: 1px;
  position: relative;
}
.modal-title::after {
  content: '';
  display: block;
  width: 60px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  margin: .8rem auto 0;
}
.modal-body {
  color: var(--text-dim);
  font-size: .95rem; line-height: 1.7;
  margin-bottom: 1.6rem;
  position: relative;
}
.modal-body b { color: var(--gold-soft); font-weight: 700; }
.modal-link {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid hsla(45,80%,50%,.4);
  padding-bottom: 1px;
  transition: color .2s, border-color .2s;
}
.modal-link:hover { color: #fff; border-bottom-color: var(--gold); }
.modal-actions {
  display: flex; gap: .7rem;
  justify-content: center;
  flex-wrap: wrap;
}
.modal-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5rem;
  padding: .7rem 1.2rem;
  border-radius: 10px;
  font-family: var(--font-vi);
  font-weight: 600; font-size: .9rem;
  cursor: pointer;
  border: 1px solid transparent;
  text-decoration: none;
  transition: all .25s ease;
}
.modal-btn-primary {
  background: linear-gradient(135deg, #1877f2, #0e5fc7);
  color: #fff;
  border-color: rgba(255,255,255,.1);
  box-shadow: 0 4px 16px rgba(24,119,242,.35);
}
.modal-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(24,119,242,.5);
  filter: brightness(1.08);
}
.modal-btn-ghost {
  background: transparent;
  color: var(--text-dim);
  border-color: rgba(244,180,0,.25);
}
.modal-btn-ghost:hover {
  color: var(--gold);
  border-color: var(--gold);
  background: rgba(244,180,0,.05);
}
.modal-close {
  position: absolute; top: .8rem; left: .9rem;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--text-dim);
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.modal-close:hover {
  background: rgba(197,39,45,.3);
  border-color: var(--red);
  color: #fff;
  transform: rotate(90deg);
}

@keyframes modalFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes modalSlideIn {
  from { opacity: 0; transform: translateY(20px) scale(.95); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .modal-card { padding: 2rem 1.3rem 1.5rem; }
  .modal-kanji { font-size: 4rem; }
  .modal-actions { flex-direction: column; }
  .modal-btn { width: 100%; }
}

/* ========================================
   PHASE 1 — Pre-launch countdown + hero CTAs
   ======================================== */

/* Launch banner — replaces countdown when no fixed date yet */
.launch-banner {
  position: relative; z-index: 3;
  text-align: center;
  margin: -.5rem auto 1.4rem;
  padding: 0 1rem;
}
.launch-eyebrow {
  font-family: var(--font-jp);
  font-size: .78rem;
  letter-spacing: 4px;
  color: var(--gold);
  margin-bottom: .5rem;
  text-transform: uppercase;
  opacity: .9;
}
.launch-title {
  font-family: var(--font-jp); font-weight: 800;
  font-size: clamp(2.4rem, 6.5vw, 4rem);
  line-height: 1;
  margin: 0 0 1.2rem;
  letter-spacing: 1px;
}
.lt-shine {
  background: linear-gradient(
    90deg,
    var(--gold-soft) 0%,
    var(--gold) 25%,
    #fff5cc 45%,
    var(--gold) 65%,
    var(--gold-soft) 100%
  );
  background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
  filter: drop-shadow(0 0 22px rgba(244,180,0,.45));
  animation: ltShine 4s ease-in-out infinite;
}
@keyframes ltShine {
  0%, 100% { background-position: 100% 50%; }
  50%      { background-position: 0% 50%; }
}

/* 3-step progress bar */
.launch-progress {
  display: inline-flex; align-items: center;
  gap: .6rem;
  padding: .8rem 1.3rem;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(20,12,12,.7), rgba(8,4,4,.7));
  border: 1px solid rgba(244,180,0,.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 6px 18px rgba(0,0,0,.5);
}
.lp-step {
  display: inline-flex; align-items: center; gap: .5rem;
  flex-shrink: 0;
}
.lp-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  border: 2px solid rgba(255,255,255,.2);
  box-shadow: 0 0 0 3px rgba(255,255,255,.04);
  transition: all .3s ease;
}
.lp-label {
  font-family: var(--font-jp);
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: var(--text-dim);
  text-transform: uppercase;
  white-space: nowrap;
}
.lp-line {
  width: 32px; height: 2px;
  background: rgba(255,255,255,.15);
  flex-shrink: 0;
}

/* Done step */
.lp-done .lp-dot {
  background: #7ec850;
  border-color: rgba(126,200,80,.7);
  box-shadow: 0 0 0 3px rgba(126,200,80,.15), 0 0 12px rgba(126,200,80,.45);
}
.lp-done .lp-label { color: rgba(126,200,80,.85); }
.lp-line-done {
  background: linear-gradient(90deg, rgba(126,200,80,.7), rgba(244,180,0,.7));
}

/* Active step */
.lp-active .lp-dot {
  background: var(--gold);
  border-color: var(--gold);
  box-shadow:
    0 0 0 3px rgba(244,180,0,.2),
    0 0 18px rgba(244,180,0,.7);
  animation: lpPulse 1.6s ease-in-out infinite;
}
.lp-active .lp-label {
  color: var(--gold-soft);
  text-shadow: 0 0 12px rgba(244,180,0,.4);
}
@keyframes lpPulse {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 0 0 3px rgba(244,180,0,.2), 0 0 18px rgba(244,180,0,.7);
  }
  50% {
    transform: scale(1.18);
    box-shadow: 0 0 0 6px rgba(244,180,0,.12), 0 0 28px rgba(244,180,0,.95);
  }
}

@media (max-width: 600px) {
  .launch-progress { gap: .35rem; padding: .6rem .8rem; }
  .lp-line { width: 16px; }
  .lp-label { font-size: .68rem; letter-spacing: 1px; }
  .lp-dot { width: 10px; height: 10px; }
  .lp-step { gap: .35rem; }
}
@media (max-width: 420px) {
  .launch-progress { gap: .25rem; padding: .5rem .65rem; }
  .lp-line { width: 10px; }
  .lp-label { font-size: .6rem; letter-spacing: .5px; }
  .lp-dot { width: 9px; height: 9px; border-width: 1.5px; }
  .lp-step { gap: .3rem; }
}
@media (max-width: 360px) {
  .launch-progress { padding: .45rem .5rem; }
  .lp-line { width: 8px; }
  .lp-label { font-size: .55rem; letter-spacing: .3px; }
}

.hero-cta-row {
  position: relative; z-index: 3;
  display: flex; gap: .8rem;
  flex-wrap: wrap; justify-content: center;
  margin-bottom: 2rem;
  padding: 0 1rem;
}
.hero-cta-btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .9rem 1.6rem;
  border-radius: 999px;
  font-family: var(--font-vi);
  font-weight: 700;
  font-size: .95rem;
  letter-spacing: .5px;
  text-decoration: none;
  transition: all .25s ease;
  border: 1.5px solid transparent;
}
.hero-cta-primary {
  background: linear-gradient(135deg, #c5272d, #8a1c20);
  color: #fff;
  box-shadow: 0 6px 20px rgba(197,39,45,.45), 0 0 24px rgba(197,39,45,.25);
  border-color: rgba(244,180,0,.4);
}
.hero-cta-primary:hover {
  transform: translateY(-3px);
  filter: brightness(1.1);
  box-shadow: 0 10px 28px rgba(197,39,45,.6), 0 0 36px rgba(244,180,0,.35);
}
.hero-cta-ghost {
  background: rgba(20,12,12,.7);
  color: var(--gold);
  border-color: rgba(244,180,0,.4);
  backdrop-filter: blur(4px);
}
.hero-cta-ghost:hover {
  border-color: var(--gold);
  background: rgba(244,180,0,.08);
  transform: translateY(-3px);
  color: var(--gold-soft);
}
@media (max-width: 480px) {
  .hero-cta-btn { font-size: .88rem; padding: .8rem 1.3rem; }
}

/* Community section: featured variant for Phase 1 */
.community-featured { padding: 4rem 0 5rem; }
.community-featured .section-eyebrow { color: var(--gold); margin-bottom: .6rem; }
.community-featured .section-title { font-size: clamp(1.6rem, 4.5vw, 2.4rem); margin-bottom: .8rem; }


/* ========================================
   PHASE 1 — Platforms (info-only)
   ======================================== */
.platforms { background: linear-gradient(180deg, #0d0a13 0%, #0a0606 100%); }
.platform-grid {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  max-width: 960px;
  margin: 0 auto;
}
@media (min-width: 768px) {
  .platform-grid { grid-template-columns: repeat(4, 1fr); gap: 1.2rem; }
}
.platform-card {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 1.8rem 1.2rem 1.5rem;
  background: linear-gradient(160deg, rgba(20,12,12,.85), rgba(8,4,4,.9));
  border: 1px solid rgba(244,180,0,.18);
  border-radius: 14px;
  box-shadow: 0 8px 22px rgba(0,0,0,.5);
  transition: transform .35s ease, border-color .35s ease, box-shadow .35s ease;
  overflow: hidden;
}
.platform-card::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse 100% 60% at 50% 0%,
    hsla(var(--p-h, 45), 80%, 50%, .15), transparent 70%);
  opacity: 0;
  transition: opacity .35s ease;
  pointer-events: none;
}
.platform-card:hover {
  transform: translateY(-4px);
  border-color: hsla(var(--p-h, 45), 70%, 55%, .55);
  box-shadow: 0 14px 30px rgba(0,0,0,.6),
              0 0 28px hsla(var(--p-h, 45), 70%, 45%, .25);
}
.platform-card:hover::before { opacity: 1; }
.platform-card > * { position: relative; z-index: 1; }
.platform-ico {
  display: flex; align-items: center; justify-content: center;
  width: 56px; height: 56px;
  margin-bottom: .9rem;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(244,180,0,.06), rgba(0,0,0,.4));
  border: 1px solid rgba(244,180,0,.18);
  color: hsl(var(--p-h, 45), 80%, 65%);
  transition: transform .35s ease, color .35s ease;
}
.platform-ico svg { width: 28px; height: 28px; }
.platform-card:hover .platform-ico {
  transform: scale(1.08) rotate(-3deg);
  color: hsl(var(--p-h, 45), 85%, 72%);
}
.platform-name {
  font-family: var(--font-jp);
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 1px;
  color: var(--gold-soft);
  margin-bottom: .25rem;
}
.platform-meta {
  font-size: .78rem;
  letter-spacing: .5px;
  color: var(--text-dim);
  opacity: .8;
}

/* Per-platform accent hue */
.platform-windows { --p-h: 200; }  /* blue */
.platform-ios     { --p-h: 0;   } /* white-ish, will use neutral */
.platform-ios .platform-ico { color: #e8e8e8; }
.platform-ios:hover .platform-ico { color: #fff; }
.platform-android { --p-h: 100; }  /* green */
.platform-apk     { --p-h: 0;   }  /* red */
.platform-apk .platform-ico { color: var(--red); }
.platform-apk:hover .platform-ico { color: #ff5a5f; }

/* "Sắp ra mắt" note */
.platform-note {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap;
  gap: .8rem;
  margin: 2rem auto 0;
  color: var(--text-dim);
  font-size: .9rem;
  text-align: center;
}
.platform-soon {
  display: inline-flex; align-items: center;
  padding: .35rem .9rem;
  border-radius: 99px;
  font-family: var(--font-jp);
  font-size: .72rem; font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(244,180,0,.1);
  border: 1px solid rgba(244,180,0,.4);
}
.platform-soon::before {
  content: '●';
  margin-right: .4rem;
  font-size: .55rem;
  animation: lpPulse 1.6s ease-in-out infinite;
}
.platform-divider {
  width: 1px; height: 14px;
  background: rgba(244,180,0,.2);
}
.platform-note a {
  color: var(--gold);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 1px solid hsla(45,80%,50%,.4);
  transition: color .25s, border-color .25s;
}
.platform-note a:hover {
  color: #fff;
  border-bottom-color: var(--gold);
}
@media (max-width: 480px) {
  .platform-card { padding: 1.4rem .8rem 1.2rem; }
  .platform-ico { width: 48px; height: 48px; }
  .platform-ico svg { width: 24px; height: 24px; }
  .platform-name { font-size: 1rem; }
  .platform-divider { display: none; }
  .platform-note { gap: .5rem; font-size: .82rem; }
}

/* ---------- HIGHLIGHTS / HOẠT ĐỘNG NỔI BẬT ---------- */
.highlights {
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, hsla(var(--hue,30),60%,18%,.5), transparent 70%),
    linear-gradient(180deg, #0a0a0a, #15050a);
  overflow: hidden;
}

.hl-slider {
  position: relative;
  margin: 0 auto;
  max-width: 1100px;
  padding: 1rem 0 1rem;
  perspective: 1600px;
}

.hl-stage {
  position: relative;
  min-height: 560px;
  transform-style: preserve-3d;
}
@media (max-width: 768px) { .hl-stage { min-height: 500px; } }
@media (max-width: 480px) { .hl-stage { min-height: 460px; } }

.hl-slide {
  position: absolute;
  top: 0; left: 50%;
  width: min(620px, 90%);
  transform: translateX(-50%) scale(.55) rotateY(0deg);
  opacity: 0;
  pointer-events: none;
  transition: transform .7s cubic-bezier(.22,.61,.36,1), opacity .6s ease;
  z-index: 0;
}
.hl-slide.prev {
  transform: translateX(calc(-50% - 320px)) scale(.72) rotateY(28deg);
  opacity: .55;
  z-index: 1;
  filter: brightness(.6) saturate(.7);
}
.hl-slide.next {
  transform: translateX(calc(-50% + 320px)) scale(.72) rotateY(-28deg);
  opacity: .55;
  z-index: 1;
  filter: brightness(.6) saturate(.7);
}
.hl-slide.active {
  transform: translateX(-50%) scale(1) rotateY(0);
  opacity: 1;
  pointer-events: auto;
  z-index: 3;
  filter: none;
}

.hl-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 2/1;
  border-radius: 14px;
  overflow: hidden;
  border: 2px solid hsla(var(--hue),85%,60%,.55);
  background: linear-gradient(135deg, hsla(var(--hue),50%,12%,.8), rgba(0,0,0,.9));
  box-shadow:
    0 0 60px hsla(var(--hue),80%,50%,.35),
    0 18px 40px rgba(0,0,0,.55),
    inset 0 0 60px rgba(0,0,0,.4);
  transition: border-color .6s, box-shadow .6s;
}
.hl-slide.active .hl-frame {
  border-color: hsla(var(--hue),85%,65%,.85);
  box-shadow:
    0 0 90px hsla(var(--hue),85%,55%,.55),
    0 22px 50px rgba(0,0,0,.65),
    inset 0 0 60px rgba(0,0,0,.3);
}
.hl-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, transparent 55%, rgba(0,0,0,.5));
  pointer-events: none;
  z-index: 2;
}
.hl-frame::after {
  content: "";
  position: absolute;
  top: -2px; left: -2px; right: -2px; bottom: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg, hsla(var(--hue),90%,65%,.7), transparent 40%, transparent 60%, hsla(var(--hue),90%,65%,.7));
  z-index: -1;
  filter: blur(8px);
  opacity: 0;
  transition: opacity .6s;
}
.hl-slide.active .hl-frame::after { opacity: .8; }
.hl-frame img {
  position: relative;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.hl-info {
  text-align: center;
  margin-top: 1.4rem;
  padding: 1rem 1rem 0;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .5s ease .15s, transform .5s ease .15s;
  position: relative;
}
.hl-info::before {
  content: "";
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%);
  width: 80px; height: 1px;
  background: linear-gradient(90deg,
    transparent,
    hsla(var(--hue),85%,60%,.8),
    transparent);
}
.hl-slide.active .hl-info { opacity: 1; transform: translateY(0); }

.hl-badge {
  display: inline-block;
  padding: .3rem .9rem;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
  background: hsla(var(--hue),60%,20%,.55);
  border: 1px solid hsla(var(--hue),85%,60%,.6);
  border-radius: 999px;
  margin-bottom: .7rem;
  text-shadow: 0 0 8px hsla(var(--hue),80%,50%,.5);
}

.hl-title {
  font-family: var(--font-jp);
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 700;
  color: var(--gold-soft);
  margin: 0 0 .4rem;
  text-shadow: 0 0 24px hsla(var(--hue),85%,55%,.55);
  letter-spacing: .5px;
}

.hl-desc {
  color: var(--text-dim);
  font-size: .95rem;
  max-width: 520px;
  margin: 0 auto;
  line-height: 1.55;
}

.hl-nav {
  position: absolute;
  top: 28%;
  transform: translateY(-50%);
  z-index: 10;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  border: 1px solid hsla(var(--hue),85%,60%,.55);
  color: var(--gold-soft);
  font-size: 1.8rem; line-height: 1;
  display: flex; align-items: center; justify-content: center;
  transition: background .25s, border-color .25s, color .25s, opacity .25s;
  opacity: .75;
}
.hl-slider:hover .hl-nav { opacity: 1; }
.hl-nav:hover {
  background: hsla(var(--hue),80%,40%,.85);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-50%) scale(1.12);
}
.hl-prev { left: 0; }
.hl-next { right: 0; }
@media (min-width: 768px) {
  .hl-nav { width: 54px; height: 54px; font-size: 2.1rem; }
  .hl-prev { left: 1rem; }
  .hl-next { right: 1rem; }
}
@media (max-width: 768px) { .hl-nav { top: 34%; } }
@media (max-width: 480px) { .hl-nav { top: 21%; } }

.hl-dots {
  position: relative;
  margin: 1.5rem auto 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: .5rem;
  z-index: 5;
  max-width: 90%;
  padding: 0 1rem;
}
.hl-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.22);
  border: 1px solid rgba(255,255,255,.15);
  padding: 0;
  transition: all .3s;
}
.hl-dot:hover { background: rgba(255,255,255,.5); }
.hl-dot.active {
  width: 28px; border-radius: 6px;
  background: var(--gold);
  border-color: var(--gold);
  box-shadow: 0 0 12px var(--gold);
}

@media (max-width: 768px) {
  .hl-slide.prev,
  .hl-slide.next {
    opacity: 0;
    pointer-events: none;
    transform: translateX(-50%) scale(.85);
  }
  .hl-slide { width: 92%; }
}

/* Active slide image: clickable to zoom */
.hl-slide.active .hl-frame { cursor: zoom-in; }
.hl-slide.active .hl-frame:hover {
  transform: translateZ(0) scale(1.015);
}
.hl-slide .hl-frame { transition: transform .35s ease, border-color .6s, box-shadow .6s; }

/* ---------- Lightbox ---------- */
.hl-lightbox {
  position: fixed;
  inset: 0;
  z-index: 9000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(0, 0, 0, .85);
  backdrop-filter: blur(8px);
  animation: hlLbFade .25s ease;
}
.hl-lightbox[hidden] { display: none; }

@keyframes hlLbFade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes hlLbZoom {
  from { opacity: 0; transform: scale(.92); }
  to { opacity: 1; transform: scale(1); }
}

.hl-lb-figure {
  position: relative;
  max-width: min(1600px, 96vw);
  max-height: 92vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  animation: hlLbZoom .35s cubic-bezier(.22,.61,.36,1);
}

.hl-lb-img {
  max-width: 100%;
  max-height: 80vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 12px;
  border: 2px solid hsla(var(--hue,30),85%,60%,.7);
  box-shadow:
    0 0 90px hsla(var(--hue,30),85%,55%,.5),
    0 30px 80px rgba(0,0,0,.7);
}

.hl-lb-caption {
  color: var(--gold-soft);
  font-family: var(--font-jp);
  font-size: clamp(1rem, 2vw, 1.4rem);
  text-align: center;
  text-shadow: 0 0 20px hsla(var(--hue,30),80%,50%,.5);
  max-width: 90%;
}

.hl-lb-close {
  position: absolute;
  top: 1.2rem;
  right: 1.2rem;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  border: 1px solid hsla(var(--hue,30),85%,60%,.6);
  color: var(--gold-soft);
  font-size: 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s;
  z-index: 10;
}
.hl-lb-close:hover {
  background: var(--red);
  border-color: var(--gold);
  color: #fff;
  transform: rotate(90deg) scale(1.1);
}

.hl-lb-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(0,0,0,.6);
  backdrop-filter: blur(6px);
  border: 1px solid hsla(var(--hue,30),85%,60%,.55);
  color: var(--gold-soft);
  font-size: 2rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all .25s;
  z-index: 10;
  opacity: .8;
}
.hl-lb-nav:hover {
  background: hsla(var(--hue,30),80%,40%,.85);
  border-color: var(--gold);
  color: #fff;
  transform: translateY(-50%) scale(1.12);
  opacity: 1;
}
.hl-lb-prev { left: 1.2rem; }
.hl-lb-next { right: 1.2rem; }

@media (max-width: 600px) {
  .hl-lb-nav { width: 42px; height: 42px; font-size: 1.6rem; }
  .hl-lb-prev { left: .5rem; }
  .hl-lb-next { right: .5rem; }
  .hl-lb-close { top: .6rem; right: .6rem; width: 38px; height: 38px; font-size: 1.2rem; }
  .hl-lightbox { padding: .5rem; }
}

body.hl-lb-open { overflow: hidden; }

/* === Legal / privacy prose === */
.legal {
  max-width: 820px;
  margin: 0 auto;
  color: var(--text-dim);
  font-size: 1rem;
  line-height: 1.75;
}
.legal-updated {
  color: var(--gold);
  font-size: .85rem;
  letter-spacing: .5px;
  margin-bottom: 2rem;
}
.legal h3 {
  font-family: var(--font-jp);
  font-weight: 700;
  font-size: clamp(1.15rem, 3vw, 1.45rem);
  color: var(--text);
  margin: 2.2rem 0 .8rem;
  padding-left: .9rem;
  border-left: 3px solid var(--gold);
}
.legal p { margin: 0 0 1rem; }
.legal ul {
  margin: 0 0 1.2rem;
  padding-left: 1.3rem;
  list-style: none;
}
.legal ul li {
  position: relative;
  margin-bottom: .7rem;
  padding-left: 1.1rem;
}
.legal ul li::before {
  content: '◆';
  position: absolute;
  left: 0;
  top: 0;
  color: var(--gold);
  font-size: .7rem;
}
.legal b { color: var(--gold-soft); }
.legal a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(244,180,0,.4);
  transition: color .2s, border-color .2s;
}
.legal a:hover { color: var(--gold-soft); border-color: var(--gold-soft); }

@media (max-width: 640px) {
  .legal { font-size: .95rem; }
}
