/* ============================================================
   RAN FINAL – home.css
   Premium dark gaming design
   ============================================================ */

/* Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --gold:    #D4AF37;
  --gold-lt: #F0C040;
  --gold-dk: #8B6A14;
  --red:     #C41E1E;
  --red-lt:  #FF4444;
  --blue:    #3b82f6;
  --blue-lt: #60a5fa;
  --dark:    #050505;
  --dark2:   #0a0806;
  --dark3:   #0f0c07;
  --panel:   rgba(255,255,255,.04);
  --glass:   rgba(212,175,55,.06);
}

body {
  font-family: 'Prompt', system-ui, sans-serif;
  font-weight: 300;
  background: var(--dark);
  color: #e5dfc8;
  overflow-x: hidden;
}
p, li, td { font-weight: 300; }
a { text-decoration: none; color: inherit; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0a0806; }
::-webkit-scrollbar-thumb { background: var(--gold-dk); border-radius: 3px; }

/* ============================================================
   HEADER
   ============================================================ */
#header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background .4s, backdrop-filter .4s;
}
#header.scrolled {
  background: rgba(5,5,5,.9);
  backdrop-filter: blur(16px);
  box-shadow: 0 1px 0 rgba(212,175,55,.12);
}
.header-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem;
}
.site-logo {
  font-size: 1.4rem; font-weight: 700; letter-spacing: .12em; color: #1d4ed8;
  display: flex; align-items: center; gap: .4rem;
  text-shadow: 0 0 14px rgba(212,175,55,.5);
}
.site-logo .accent { color: var(--red-lt); text-shadow: 0 0 14px rgba(196,30,30,.8); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link {
  font-size: .92rem; font-weight: 400; letter-spacing: .12em;
  text-transform: uppercase; color: #c8b98a;
  position: relative; padding-bottom: 4px; transition: color .25s;
}
.nav-link::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  width: 0; height: 1px;
  background: linear-gradient(90deg, var(--gold), var(--red));
  transform: translateX(-50%); transition: width .28s;
}
.nav-link:hover { color: var(--gold-lt); }
.nav-link:hover::after { width: 100%; }
.online-badge { display: flex; align-items: center; gap: .4rem; font-size: .72rem; letter-spacing: .15em; }
.online-dot {
  width: 7px; height: 7px; border-radius: 50%; background: #4ade80;
  animation: pulse-green 1.8s infinite; box-shadow: 0 0 8px #4ade80;
}
@keyframes pulse-green {
  0%,100% { opacity:1; transform:scale(1); }
  50%      { opacity:.5; transform:scale(.7); }
}
.btn-nav {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em;
  padding: .45rem 1.1rem; border-radius: 4px;
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: #fff; text-transform: uppercase;
  transition: box-shadow .25s, transform .2s;
}
.btn-nav:hover { box-shadow: 0 0 18px rgba(239,68,68,.6); transform: translateY(-1px); }
.btn-nav-dl {
  background: linear-gradient(135deg, #15803d, #22c55e) !important;
}
.btn-nav-dl:hover { box-shadow: 0 0 18px rgba(34,197,94,.65) !important; }
#mobile-menu-button {
  display: none; background: none; border: none;
  color: #fff; font-size: 1.3rem; cursor: pointer; z-index: 200;
}
#mobile-menu {
  display: none; position: fixed; inset: 0; top: 60px;
  background: rgba(5,5,5,.97); backdrop-filter: blur(20px);
  z-index: 99; padding: 2rem;
  flex-direction: column; gap: .5rem;
}
#mobile-menu.open { display: flex; }
.mobilelink {
  display: block; padding: .85rem 1rem;
  font-size: .9rem; letter-spacing: .1em; color: #c8b98a;
  border-bottom: 1px solid rgba(212,175,55,.07);
  transition: color .2s, background .2s;
}
.mobilelink:hover { color: var(--gold-lt); background: rgba(212,175,55,.05); }
@media (max-width: 900px) {
  #mobile-menu-button { display: block; }
  .nav-links, .online-badge, .btn-nav { display: none !important; }
}

/* ============================================================
   HERO
   ============================================================ */
#home {
  position: relative; min-height: 100vh;
  display: flex; align-items: flex-start; justify-content: center;
  overflow: hidden; background: var(--dark);
  padding-bottom: 0;
}

/* Video background */
.hero-video-bg {
  position: absolute;
  inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: 0;
  opacity: .55;
  pointer-events: none;
}

/* Sound toggle button */
.hero-sound-btn {
  position: absolute;
  bottom: 1.5rem; right: 1.5rem;
  z-index: 20;
  background: rgba(0,0,0,.5);
  border: 1px solid rgba(212,175,55,.3);
  color: var(--gold-lt);
  width: 2.4rem; height: 2.4rem;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, border-color .2s;
}
.hero-sound-btn:hover {
  background: rgba(212,175,55,.15);
  border-color: var(--gold-lt);
}

#particles-canvas {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; z-index: 1;
}
.hero-grid {
  position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(212,175,55,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,.025) 1px, transparent 1px);
  background-size: 80px 80px;
}
.hero-fade {
  position: absolute; bottom: 0; left: 0; right: 0; z-index: 3;
  height: 200px;
  background: linear-gradient(to bottom, transparent, var(--dark));
}

/* 2-column grid */
.hero-content {
  position: relative; z-index: 10;
  display: grid; grid-template-columns: 1fr 1fr;
  align-items: center; gap: 2rem 5rem;
  padding: 0rem 5vw 2rem;
  max-width: 1100px; margin: 0 auto; width: 100%;
}
.hero-left  { display: flex; flex-direction: column; align-items: center; text-align: center; }
.hero-right { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.5rem; align-self: end; }
.hero-tags {
  grid-column: 1 / -1;
  display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem 2.4rem;
  font-size: 1rem; font-weight: 500; letter-spacing: .08em;
  color: rgba(212,175,55,.85);
  text-shadow: 0 0 14px rgba(212,175,55,.35);
}
.hero-statbox-wrap {
  grid-column: 1 / -1;
  padding: 0;
  margin-top: .75rem;
  position: relative;
}
/* top decorative line */
.hero-statbox-wrap::before {
  content: '';
  display: block;
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,175,55,.5) 20%, rgba(212,175,55,.5) 80%, transparent);
  margin-bottom: .75rem;
}
.hero-statbox {
  display: flex; align-items: flex-start; justify-content: center;
  max-width: 1100px; margin: 0 auto;
  gap: 0; width: 100%;
}
.hero-statbox-item {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; padding: .5rem;
  gap: .2rem;
}
.hsb-num {
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  font-weight: 600; color: var(--gold-lt); line-height: 1;
  text-shadow: 0 0 20px rgba(212,175,55,.5);
}
.hsb-lbl {
  font-size: clamp(.85rem, 1.8vw, 1rem); color: #c8a84a; letter-spacing: .1em;
  font-weight: 600; text-transform: uppercase;
  text-align: center; line-height: 1.45;
}
/* diamond separator */
.hsb-div {
  width: auto; height: auto;
  background: none; flex-shrink: 0;
  color: rgba(212,175,55,.5);
  font-size: 1rem;
  align-self: center;
}
.hsb-div::before { content: '◆'; }

#about .about-statbox-wrap { margin-top: 1rem; margin-bottom: 0; width: 100%; }
.about-statbox-wrap .hero-statbox-wrap { margin-top: 0; }
.about-statbox-wrap .hero-statbox-wrap::before { margin-bottom: .5rem; }
.about-statbox-wrap .hero-statbox { max-width: 460px; }
.about-statbox-wrap .hero-statbox-item { padding: .3rem; gap: .15rem; }
.about-statbox-wrap .hsb-num { font-size: clamp(1rem, 1.7vw, 1.3rem); }
.about-statbox-wrap .hsb-div { font-size: .75rem; }
#about .about-statbox-wrap .hsb-lbl { white-space: nowrap; font-size: .65rem; letter-spacing: .06em; }

.hero-stats {
  grid-column: 1 / -1;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem;
  width: 100%; margin-top: .5rem;
}
.hero-stat-box {
  text-align: center;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 12px;
  padding: 1.1rem .75rem;
  position: relative; overflow: hidden;
}
.hero-stat-box::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.45), transparent);
}
.hero-stat-num {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem);
  font-weight: 600; color: var(--gold-lt); line-height: 1;
}
.hero-stat-lbl {
  font-size: .82rem; color: #8a8070; letter-spacing: .07em; margin-top: .4rem;
}
@media (max-width: 768px) {
  .hero-content { grid-template-columns: 1fr; gap: 1.5rem; padding: 5rem 1.5rem 2rem; }
  .hero-tags { grid-column: 1; }
  .hero-stats { grid-template-columns: repeat(2,1fr); }
}

.hero-logo {
  width: min(380px, 45vw); height: auto;
  filter:
    drop-shadow(0 0 30px rgba(212,175,55,.55))
    drop-shadow(0 0 70px rgba(212,175,55,.25))
    drop-shadow(0 0 120px rgba(196,30,30,.2));
  animation: floatLogo 5s ease-in-out infinite;
  margin-bottom: 0.1rem;
}
@keyframes floatLogo {
  0%,100% { transform: translateY(0) scale(1); }
  50%      { transform: translateY(-14px) scale(1.01); }
}
.hero-tagline {
  font-size: clamp(.8rem, 2.6vw, 1.6rem); font-weight: 400;
  font-family: 'Kanit', 'Prompt', sans-serif; font-style: italic;
  letter-spacing: .05em;
  margin-top: -.4rem; margin-bottom: 0; line-height: 1.5;
  white-space: nowrap;
  background: linear-gradient(120deg, #b8954a 0%, #f0d070 40%, #fff5cc 60%, #d4a830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(212,175,55,.45)) drop-shadow(0 2px 6px rgba(0,0,0,.7));
}

/* Launch box */
.launch-box {
  position: relative; display: inline-block;
  padding: 1.4rem 2.8rem;
  background:
    linear-gradient(135deg, rgba(212,175,55,.12) 0%, rgba(0,0,0,0) 60%),
    rgba(10,8,2,.55);
  backdrop-filter: blur(8px);
  box-shadow:
    0 0 0 1px rgba(212,175,55,.55),
    0 0 40px rgba(212,175,55,.12),
    inset 0 1px 0 rgba(212,175,55,.18),
    inset 0 -1px 0 rgba(212,175,55,.08);
}
.launch-box::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 55%; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold-lt), var(--gold), var(--gold-lt), transparent);
  box-shadow: 0 0 12px rgba(212,175,55,.7);
}
.launch-box::after {
  content: ''; position: absolute; bottom: 0; left: 50%;
  transform: translateX(-50%); width: 35%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(212,175,55,.5), transparent);
}
.corner-tl, .corner-br {
  position: absolute; width: 6px; height: 6px;
  background: var(--gold); transform: rotate(45deg);
}
.corner-tl { top: -3px; left: -3px; }
.corner-br { bottom: -3px; right: -3px; }
.launch-date { display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.launch-day-num {
  font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 600;
  color: var(--gold-lt); line-height: 1; letter-spacing: .04em;
}
.launch-weekday { font-size: clamp(1rem, 2vw, 1.2rem); font-weight: 500; color: #c4a96e; letter-spacing: .05em; }

/* Countdown */
.countdown-wrap { display: flex; gap: 1.2rem; align-items: flex-start; }
.cd-unit { display: flex; flex-direction: column; align-items: center; gap: .35rem; }
.cd-box {
  background: rgba(10,8,2,.7); border: 1px solid rgba(212,175,55,.3);
  border-radius: 6px; padding: .55rem .9rem;
  box-shadow: 0 0 18px rgba(212,175,55,.1), inset 0 1px 0 rgba(212,175,55,.1);
  min-width: 3.4rem; text-align: center;
}
.cd-num {
  font-size: clamp(1.8rem, 4vw, 2.4rem); font-weight: 700;
  color: var(--gold-lt); letter-spacing: .04em; line-height: 1;
  font-variant-numeric: tabular-nums;
}
.cd-label {
  font-size: clamp(.75rem, 1.6vw, .92rem); font-weight: 600;
  color: #b09060; letter-spacing: .12em; text-transform: uppercase;
}

/* CTA buttons */
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; justify-content: center; }
.btn-primary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .85rem 2rem;
  background: linear-gradient(135deg, #b91c1c, #ef4444);
  color: #fff; font-size: .9rem; font-weight: 700; letter-spacing: .1em;
  border-radius: 4px; box-shadow: 0 0 24px rgba(239,68,68,.4);
  transition: box-shadow .25s, transform .2s;
}
.btn-primary:hover { box-shadow: 0 0 40px rgba(239,68,68,.7); transform: translateY(-2px); }
.btn-secondary {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .83rem 2rem; background: #1877f2;
  border: 1px solid #1877f2; color: #fff;
  font-size: .9rem; font-weight: 500; letter-spacing: .08em;
  border-radius: 4px; transition: border-color .25s, color .25s, background .25s;
}
.btn-secondary:hover { border-color: var(--gold); color: var(--gold-lt); background: rgba(212,175,55,.07); }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal, .reveal-left, .reveal-right {
  opacity: 0; transform: translateY(30px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal-left  { transform: translateX(-30px); }
.reveal-right { transform: translateX(30px); }
.reveal.visible, .reveal-left.visible, .reveal-right.visible { opacity: 1; transform: none; }
.stagger > * { transition-delay: calc(var(--i, 0) * .1s); }

/* ============================================================
   SECTIONS — common
   ============================================================ */
section { position: relative; padding: 6rem 0; }
.container { max-width: 1060px; margin: 0 auto; padding: 0 2rem; }
.section-label {
  font-size: .7rem; font-weight: 600; letter-spacing: .25em;
  text-transform: uppercase; color: rgba(212,175,55,.5); margin-bottom: .75rem;
}
.nc-single .section-label { font-size: .85rem; margin-bottom: 1rem; }
.section-title {
  font-size: clamp(2rem, 5vw, 3rem); font-weight: 900;
  letter-spacing: .05em; line-height: 1.1; margin-bottom: 1rem;
}
.section-title.gold  { color: var(--gold-lt); text-shadow: 0 0 30px rgba(212,175,55,.35); }
.section-title.red   { color: var(--red-lt);  text-shadow: 0 0 30px rgba(196,30,30,.5); }
.section-title.white { color: #fff; }
.section-title.green { color: #4ade80; text-shadow: 0 0 30px rgba(74,222,128,.5); }
.section-sub { font-size: clamp(1rem, 2.5vw, 1.2rem); color: #7a6840; margin-bottom: 3rem; }

.angle-top::before {
  content: ''; position: absolute; top: -60px; left: 0; right: 0;
  height: 120px; background: inherit;
  clip-path: polygon(0 50%, 100% 0, 100% 100%, 0 100%);
}
.angle-top-r::before {
  content: ''; position: absolute; top: -60px; left: 0; right: 0;
  height: 120px; background: inherit;
  clip-path: polygon(0 0, 100% 50%, 100% 100%, 0 100%);
}

/* ============================================================
   EP DIVIDER — slim visual-cut banner between hero and profession card
   ============================================================ */
#ep-divider {
  background: var(--dark2);
  padding: 2.5rem 0;
  border-top: 1px solid rgba(212,175,55,.18);
  border-bottom: 1px solid rgba(212,175,55,.18);
}
#ep-divider .divider-headline { margin-bottom: 0; }

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  position: relative;
  overflow: hidden;
  background: var(--dark);
  padding-top: 0;
  padding-bottom: 0;
}
.about-video {
  position: absolute; inset: 0; z-index: 0;
  width: 100%; height: 100%; object-fit: cover;
  opacity: .18; filter: saturate(1.4) brightness(.8);
}
#about::before {
  content: ''; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(to bottom,
    rgba(5,3,1,.95) 0%, rgba(5,3,1,.82) 30%, rgba(5,3,1,.82) 70%, rgba(5,3,1,.95) 100%);
}
#about .container { position: relative; z-index: 2; text-align: center; }

.about-headline {
  font-size: clamp(1.3rem, 2.8vw, 2rem);
  font-weight: 600;
  line-height: 1.9;
  margin-bottom: 2rem;
  text-align: center;
  letter-spacing: .02em;
  background: linear-gradient(120deg, #b8954a 0%, #f0d070 40%, #fff5cc 60%, #d4a830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(212,175,55,.35));
}
.about-headline .lead-cross { -webkit-text-fill-color: #ff5555; filter: drop-shadow(0 0 8px rgba(255,60,60,.5)); }
.about-headline .lead-check { -webkit-text-fill-color: #4ade80; filter: drop-shadow(0 0 8px rgba(74,222,128,.5)); }
.about-headline strong { -webkit-text-fill-color: #f5eac0; font-weight: 600; }
.about-origin {
  font-size: clamp(1.3rem, 3vw, 1.9rem);
  font-weight: 700;
  color: #e0d0a0;
  line-height: 1.5;
  margin-bottom: .6rem;
  text-align: center;
}
.origin-pain {
  color: var(--red-lt);
  font-style: italic;
  text-shadow: 0 0 18px rgba(255,68,68,.5);
}
.about-origin-sub {
  font-size: clamp(.95rem, 2vw, 1.15rem);
  font-weight: 300;
  color: #8a7450;
  line-height: 1.7;
  margin-bottom: 2.5rem;
  text-align: center;
}

.about-lead {
  text-align: center;
  font-size: clamp(1.1rem, 2.5vw, 1.5rem); font-weight: 400;
  color: #b8a070; line-height: 1.9; margin-bottom: 3.5rem;
}
.about-lead strong { color: var(--gold-lt); font-weight: 700; text-shadow: 0 0 16px rgba(212,175,55,.5); }
.lead-cross { color: #ff5555; font-weight: 700; text-shadow: 0 0 10px rgba(255,60,60,.5); }
.lead-check { color: #4ade80; font-weight: 700; text-shadow: 0 0 10px rgba(74,222,128,.5); }

/* ============================================================
   EP RADIAL MIND MAP — Pentagon
   ============================================================ */
#about .container {
  max-width: 1400px;
}

.ep-radial-wrap {
  position: relative; width: 100%;
  margin: 0 auto .6rem;
  height: 460px;
}
.ep-lines-svg {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none;
}
.ep-line { stroke: rgba(255,255,255,.2); stroke-width: 0.4; opacity: 1; }

/* Logo hub — top center */
.mm-hub {
  position: absolute; left: 50%; top: 16%;
  transform: translate(-50%, -50%);
  width: min(200px, 16vw);
  display: flex; align-items: center; justify-content: center;
  z-index: 5;
}
.mm-hub-logo {
  width: 100%; height: auto;
  filter: drop-shadow(0 0 24px rgba(212,175,55,.8)) drop-shadow(0 0 50px rgba(212,175,55,.35));
}

/* Bubbles — single card with EP num + description */
.ep-bubble {
  position: absolute;
  left: var(--bx); top: var(--by);
  transform: translate(-50%, -50%);
  width: 255px;
  padding: .9rem 1.1rem;
  border-radius: 14px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  display: flex; flex-direction: column; gap: .4rem;
  z-index: 4;
  text-align: left;
}
.ep-b-num {
  font-size: 1.15rem; font-weight: 900; line-height: 1; letter-spacing: .04em;
}
.ep-b-desc {
  font-size: 1.01rem; color: #c8b882; line-height: 1.6;
}
.ep-b-desc strong {
  display: block; font-size: 1.09rem; font-weight: 700;
  color: #f5eac0; margin-bottom: .25rem;
}
.ep-tag {
  color: var(--gold-lt);
  font-weight: 700;
  font-size: 1.25em;
  letter-spacing: .06em;
}

.ep-side-text {
  position: absolute;
  left: var(--bx); top: var(--by);
  transform: translate(-50%, -50%);
  width: 300px;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
  letter-spacing: .02em;
  background: linear-gradient(120deg, #b8954a 0%, #f0d070 40%, #fff5cc 60%, #d4a830 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 18px rgba(212,175,55,.35));
  z-index: 5;
}
.ep-side-text .lead-cross { -webkit-text-fill-color: #ff5555; filter: drop-shadow(0 0 8px rgba(255,60,60,.5)); }
.ep-side-text .lead-check { -webkit-text-fill-color: #4ade80; filter: drop-shadow(0 0 8px rgba(74,222,128,.5)); }
.ep-side-text strong { -webkit-text-fill-color: #f5eac0; font-weight: 600; }

/* EP color accents — left border + num color */
.ep-bubble.ep1 { border-left: 3px solid var(--gold-lt); background: rgba(212,175,55,.24); box-shadow: 0 0 22px rgba(212,175,55,.22); }
.ep-bubble.ep1 .ep-b-num { color: var(--gold-lt); }

.ep-bubble.ep3 { border-left: 3px solid #4ade80; background: rgba(74,222,128,.22); box-shadow: 0 0 22px rgba(74,222,128,.2); }
.ep-bubble.ep3 .ep-b-num { color: #4ade80; }

.ep-bubble.ep5 { border-left: 3px solid #fb923c; background: rgba(251,146,60,.22); box-shadow: 0 0 22px rgba(251,146,60,.2); }
.ep-bubble.ep5 .ep-b-num { color: #fb923c; }

.ep-bubble.ep7 { border-left: 3px solid #60a5fa; background: rgba(96,165,250,.22); box-shadow: 0 0 22px rgba(96,165,250,.2); }
.ep-bubble.ep7 .ep-b-num { color: #60a5fa; }

.ep-bubble.ep9 { border-left: 3px solid var(--red-lt); background: rgba(255,68,68,.22); box-shadow: 0 0 22px rgba(255,68,68,.2); }
.ep-bubble.ep9 .ep-b-num { color: var(--red-lt); }

@media (max-width: 600px) {
  .ep-radial-wrap { height: 420px; }
  .ep-bubble { width: min(100px, 24vw); }
  .mm-hub { width: min(120px, 30vw); }
  .ep-side-text { width: min(190px, 44vw); font-size: .95rem; line-height: 1.35; }
}

/* ============================================================
   ABOUT — two-column layout: EP mind-map (left) + level cards (right)
   ============================================================ */
.about-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 2rem;
  align-items: center;
  text-align: left;
}

/* Shrink the EP radial map to fit a half-width column */
.about-layout .ep-radial-wrap { height: 400px; margin: 0; }
.about-layout .ep-bubble { width: 130px; padding: .55rem .7rem; }
.about-layout .ep-b-desc { font-size: .78rem; }
.about-layout .ep-b-desc strong { font-size: .85rem; }
.about-layout .ep-tag { font-size: 1.05em; }
.about-layout .mm-hub { width: 200px; }

/* Level cards, rescoped from #levels to #about */
#about .lv-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
#about .lv-card {
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: row;
  text-align: left;
}
#about .lv-card.blue { border-left: 3px solid #60a5fa; background: rgba(96,165,250,.12); }
#about .lv-card.red  { border-left: 3px solid var(--red-lt); background: rgba(255,68,68,.12); }
#about .lv-card-img {
  width: 42%;
  height: auto;
  min-height: 180px;
  object-fit: cover;
  object-position: center;
  display: block;
  opacity: .85;
  flex-shrink: 0;
}
#about .lv-card-body {
  flex: 1;
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .5rem;
}
#about .lv-range {
  font-size: clamp(1.4rem, 1.8vw, 1.7rem);
  font-weight: 700;
  margin-bottom: .2rem;
  white-space: nowrap;
}
#about .lv-range.blue { color: #60a5fa; }
#about .lv-range.red  { color: #f87171; }
#about .lv-item {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  font-size: .92rem;
  font-weight: 400;
  color: #c8b882;
  line-height: 1.55;
}
#about .lv-bullet { color: #6b5a30; flex-shrink: 0; }

@media (max-width: 900px) {
  .about-layout { grid-template-columns: 1fr; gap: 2.5rem; }
  .about-layout .ep-radial-wrap { height: 460px; margin: 0 auto; max-width: 600px; }
  .about-layout .ep-bubble { width: 255px; padding: .9rem 1.1rem; }
  .about-layout .ep-b-desc { font-size: 1.01rem; }
  .about-layout .ep-b-desc strong { font-size: 1.09rem; }
  .about-layout .ep-tag { font-size: 1.25em; }
  .about-layout .mm-hub { width: min(200px, 16vw); }
}
@media (max-width: 600px) {
  .about-layout .ep-radial-wrap { height: 420px; }
  .about-layout .ep-bubble { width: min(100px, 24vw); padding: .9rem 1.1rem; }
  .about-layout .mm-hub { width: min(120px, 30vw); }
  #about .lv-card { flex-direction: column; }
  #about .lv-card-img { width: 100%; min-height: 160px; }
}

/* Feature pills */
.ep-features { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }
.ep-feat {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255,255,255,.03); border: 1px solid rgba(212,175,55,.12);
  border-radius: 8px; padding: .85rem 1.25rem;
  min-width: 180px; flex: 1; max-width: 240px;
}
.ep-feat-icon { font-size: 1.4rem; }
.ep-feat-title { font-size: .88rem; font-weight: 600; color: #e0d0a0; line-height: 1.2; }
.ep-feat-sub { font-size: .72rem; color: #7a6840; margin-top: .15rem; }

/* ============================================================
   LEVELS
   ============================================================ */
#levels { background: var(--dark2); padding-top: clamp(1.5rem, 4vw, 3rem); padding-bottom: 1.5rem; }
#levels > .container { position: relative; z-index: 1; }
#levels .container { max-width: 1400px; }

/* 2-small + 1-tall layout */
#levels .lv-layout {
  display: grid;
  grid-template-columns: 1fr;
  align-items: center;
  margin-top: .5rem;
}

/* WAR card */
#levels .war-card-header {
  padding: 1.25rem 1.5rem 1rem;
  border-bottom: 1px solid rgba(255,68,68,.25);
  background: rgba(180,20,20,.15);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}
#levels .war-card-title {
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold-lt);
}
#levels .war-card-sub { font-size: 1rem; letter-spacing: .04em; color: #9a7a50; font-weight: 500; text-transform: none; }
#levels .war-card-body {
  flex: 1;
  padding: 1.25rem 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0;
}
#levels .cw-event { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .65rem; }
#levels .cw-name { font-size: 1.2rem; font-weight: 700; color: var(--red-lt); letter-spacing: .06em; display: flex; align-items: baseline; gap: .5rem; justify-content: center; flex-wrap: wrap; }
#levels .cw-freq { font-size: 1rem; font-weight: 500; color: #9a8060; }
#levels .cw-days { display: flex; flex-direction: row; justify-content: center; gap: .3rem; flex-wrap: nowrap; }
#levels .cw-days .wd {
  width: 2rem; height: 2rem;
  border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 600;
  background: rgba(255,255,255,.04);
  color: #4a4030;
  border: 1px solid rgba(255,255,255,.06);
}
#levels .cw-days .wd.active {
  background: rgba(212,175,55,.15);
  color: var(--gold-lt);
  border-color: rgba(212,175,55,.35);
}
#levels .cw-slots { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
#levels .cw-slot { display: flex; align-items: baseline; justify-content: center; gap: .6rem; }
#levels .cw-lbl { font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: #9a8060; font-weight: 500; }
#levels .cw-time { font-size: 1.7rem; font-weight: 600; color: var(--gold-lt); font-variant-numeric: tabular-nums; }
#levels .cw-sep {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,175,55,.2), transparent);
  margin: 1rem 0;
}

/* Carousel now lives in #about's left column — sized in % of the
   column's own width so it fills the available area. Horizontal
   offsets use `left` (column-relative %) rather than transform's
   translateX (which is always relative to the card's OWN box). */
#about .lv-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin-top: -1.25rem;
}
#about .class-carousel { max-width: 78%; width: 78%; height: 300px; margin: 0 auto; }
/* Smooth, even rotation (no bounce/overshoot) since the deck now turns
   to the right on its own instead of snapping forward on click. */
#about .class-card {
  width: 45%;
  transition: transform .8s ease, opacity .6s ease, box-shadow .25s;
}
/* All 5 cards share the SAME size (scale 1) — no single oversized
   "active" card with the rest shrunk down. Depth comes only from
   left-offset, rotation, z-index and opacity, like a hand of equal-size
   playing cards fanned out and overlapping each other. */
#about .class-card.is-active {
  left: 50%;
  transform: translate(-50%,-50%) scale(1);
}
#about .class-card.is-next1 {
  left: 61%;
  transform: translate(-50%, calc(-50% + 4px)) rotate(6deg) scale(1);
}
#about .class-card.is-prev1 {
  left: 39%;
  transform: translate(-50%, calc(-50% + 4px)) rotate(-6deg) scale(1);
}
/* All 5 cards stay in play; the 2nd-row pair peeks just past next1/prev1
   (small additional offset, lower z-index/opacity) so it reads as a
   stacked deck rather than fanning out toward the level cards. Click a
   right-side card to slide left (advance); click a left-side card to
   slide right (go back). */
#about .class-card.is-next2 {
  left: 75%;
  transform: translate(-50%, calc(-50% + 8px)) rotate(12deg) scale(1);
  opacity: .65;
}
#about .class-card.is-prev2 {
  left: 25%;
  transform: translate(-50%, calc(-50% + 8px)) rotate(-12deg) scale(1);
  opacity: .65;
}
/* With exactly 5 cards filling all 5 slots, the card leaving the far side
   on one click has nowhere to come from except the opposite far side —
   without this it visibly flies straight across the deck (the "pop").
   While the slot change happens we snap that one card (no transition) to
   a hidden point tucked behind the active card, then release it so it
   transitions OUT from there to its real spot — it reads as emerging
   from the back of the stack instead of flying across the front. */
#about .class-card.is-warping {
  transition: none !important;
  left: 50% !important;
  transform: translate(-50%,-50%) scale(.3) !important;
  opacity: 0 !important;
  z-index: 1 !important;
}

/* Heading shown below the class carousel */
#about .class-carousel-title {
  margin-bottom: 1.85rem;
  font-size: clamp(2rem, 5vw, 3rem);
  font-weight: 700;
  letter-spacing: .08em;
  text-align: center;
  color: var(--gold-lt);
  text-shadow: 0 0 30px rgba(212,175,55,.35);
}

@media (max-width: 768px) {
  #about .class-card { width: 42%; }
  #about .class-card.is-next1 { left: 60%; }
  #about .class-card.is-prev1 { left: 40%; }
  #about .class-card.is-next2 { left: 73%; }
  #about .class-card.is-prev2 { left: 27%; }
}

/* ============================================================
   MAP SHOWCASE
   ============================================================ */
#maps { background: var(--dark2); padding-top: 1.5rem; }
#maps .container { position: relative; z-index: 1; text-align: center; }
#maps .section-title { font-weight: 600; }
#maps .section-sub { color: #c9b889; font-weight: 500; }

.map-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  margin-top: 1rem;
}

.map-card-center {
  position: absolute;
  grid-column: 1 / -1;
  grid-row: 1 / -1;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 24%;
  z-index: 10;
}
.map-card-center-inner {
  position: relative;
  border-radius: 16px;
  background: radial-gradient(circle at center, rgba(24,19,9,.97) 0%, rgba(8,6,3,.98) 100%);
  border: 2px solid rgba(212,175,55,.6);
  box-shadow: 0 0 40px rgba(212,175,55,.45), 0 0 90px rgba(212,175,55,.2);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
  padding: .6rem .5rem 1rem;
  gap: .35rem;
}
.map-card-center-mark {
  font-size: clamp(1.5rem, 3.2vw, 2.1rem);
  font-weight: 900;
  letter-spacing: .25em;
  color: var(--gold-lt);
  text-shadow: 0 0 24px rgba(212,175,55,.7);
}
.map-card-center-text {
  font-size: 1rem;
  line-height: 1.4;
  color: #e8d9a8;
}
.map-card-center-text strong {
  display: block;
  font-size: 1.3rem;
  color: var(--gold-lt);
  margin-bottom: .3rem;
}
.map-card-center-text .map-card-center-warn {
  display: block;
  margin-top: .3rem;
  color: var(--red-lt);
  font-weight: 700;
  text-shadow: 0 0 14px rgba(255,68,68,.5);
}
.map-card {
  position: relative;
}
.map-card-frame {
  position: relative;
  aspect-ratio: 16 / 9;
}
.map-card-inner {
  position: absolute; inset: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.08);
  z-index: 2;
}
.map-card-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
}
.map-card-caption {
  position: absolute;
  bottom: 16px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--gold-lt);
  letter-spacing: .05em;
  text-shadow: 0 2px 10px rgba(0,0,0,.85), 0 0 16px rgba(212,175,55,.4);
  padding: .3rem .9rem;
}
.map-card-caption-left { left: 16px; text-align: left; }
.map-card-caption-right { right: 16px; text-align: right; }

/* Floating boss renders — full uncropped image, shifted up so most of it
   floats above the card. The lower portion still sits BEHIND the card
   image (lower z-index), so the opaque map screenshot hides the boss's
   legs while the head/torso rises above the card's top edge. */
.boss-pop {
  position: absolute;
  top: -62%;
  height: 90%;
  width: auto;
  max-width: none;
  display: block;
  z-index: 1;
  pointer-events: none;
}
.boss-pop-left {
  left: 0;
}
.boss-pop-right {
  right: 0;
  top: -72%;
  height: 110%;
}

/* Front duplicate — same image, same position, clipped to just the
   hands (sea boss) so that feature renders IN FRONT of the card image
   while the rest of the body stays behind it. (Snow boss no longer uses
   this trick — its sword/robe overlapped the clip region, so the whole
   snow boss now simply sits behind the card like a normal floating boss.) */
.boss-pop-front { z-index: 3; }

.sea-hand-l { clip-path: inset(18% 64% 38% 0%); }
.sea-hand-r { clip-path: inset(18% 0% 38% 64%); }

@media (max-width: 560px) {
  .boss-pop { top: -54%; height: 76%; }
  .boss-pop-right { top: -63%; height: 93%; }
}

@media (max-width: 768px) {
  .map-grid { grid-template-columns: 1fr; }
  .map-card-center { width: 48%; }
  .map-card-center-mark { font-size: 1.3rem; }
  .map-card-center-text { font-size: .85rem; }
}

/* ============================================================
   WHO SECTION
   ============================================================ */
.section-title.green { color: #4ade80; text-shadow: 0 0 30px rgba(74,222,128,.5); }

#who { background: var(--dark2); padding-top: 0.5rem; }
#who > .container { position: relative; z-index: 1; }
#who .section-title { font-weight: 400; font-size: clamp(1.1rem, 2.2vw, 1.5rem); letter-spacing: .04em; margin-bottom: 2.5rem; }

/* WHO — open pillar layout */
.who-pillars {
  display: flex;
  align-items: flex-start;
  gap: 0;
  margin-top: 3rem;
}
.who-pillar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0 2.5rem;
  position: relative;
}
.who-num { display: none; }
.who-icon {
  font-size: 2rem;
  color: var(--gold-lt);
  margin-bottom: .75rem;
}
.who-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #fff;
  margin-bottom: .6rem;
}
.who-copy {
  font-size: .95rem;
  font-weight: 400;
  color: #b8a87a;
  line-height: 1.9;
}
.who-divider {
  width: 1px;
  align-self: stretch;
  background: linear-gradient(to bottom, transparent, rgba(212,175,55,.3) 30%, rgba(212,175,55,.3) 70%, transparent);
  flex-shrink: 0;
  margin-top: 1rem;
}

@media (max-width: 768px) {
  .who-pillars { flex-direction: column; }
  .who-divider { width: 100%; height: 1px; align-self: auto;
    background: linear-gradient(to right, transparent, rgba(212,175,55,.3) 30%, rgba(212,175,55,.3) 70%, transparent);
    margin: 1.5rem 0; }
  .who-pillar { padding: 0 1rem; }
}

/* ============================================================
   WAR SECTION
   ============================================================ */
#war { background: var(--dark3); padding-top: clamp(3rem, 6vw, 4.5rem); }
#war .container { position: relative; z-index: 1; }
#war .section-title { font-weight: 700; text-align: center; }
#war .section-sub { text-align: center; }

/* WAR — image left, schedule table right */
.war-layout {
  display: grid;
  grid-template-columns: 1.7fr 1fr;
  gap: 2rem;
  align-items: stretch;
  margin-top: 2rem;
}

/* WAR — banner image */
.war-banner {
  margin: 0;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid rgba(255,68,68,.25);
  box-shadow: 0 10px 40px rgba(0,0,0,.4);
}
.war-banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* WAR — schedule board */
.war-schedule {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 0;
}

@media (max-width: 900px) {
  .war-layout { grid-template-columns: 1fr; }
  .war-banner-img { height: auto; }
}

/* WAR — bordered schedule card (matches reference design) */
#war .war-card {
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(160deg, rgba(196,30,30,.30), rgba(90,12,12,.38));
  border: 1px solid rgba(255,68,68,.5);
  box-shadow: 0 12px 36px rgba(196,30,30,.3), inset 0 1px 0 rgba(255,255,255,.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  width: fit-content;
  max-width: 100%;
}
#war .war-card-header {
  padding: 1.1rem 1.5rem;
  border-bottom: 1px solid rgba(255,68,68,.3);
  background: linear-gradient(180deg, rgba(196,30,30,.38), rgba(196,30,30,.16));
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: .4rem;
  flex-wrap: wrap;
  text-align: center;
}
#war .war-card-title {
  font-size: 1.2rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; color: var(--gold-lt);
}
#war .war-card-sub { font-size: 1.05rem; letter-spacing: .06em; color: var(--gold-lt); font-weight: 600; }
#war .war-card-body {
  flex: 1;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0;
}
#war .cw-event { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .65rem; }
#war .cw-name {
  font-size: 1.2rem; font-weight: 700; color: #fff; letter-spacing: .06em;
  display: flex; align-items: baseline; gap: .5rem; justify-content: center; flex-wrap: wrap;
}
#war .cw-name i { color: var(--red-lt); }
#war .cw-freq { font-size: 1rem; font-weight: 500; color: #9a8060; }
#war .cw-days { display: flex; flex-direction: row; justify-content: center; gap: .4rem; flex-wrap: wrap; }
#war .cw-days .wd {
  width: 2.2rem; height: 2.2rem;
  border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 600;
  background: rgba(255,255,255,.04);
  color: #4a4030;
  border: 1px solid rgba(255,255,255,.06);
}
#war .cw-days .wd.active {
  background: rgba(212,175,55,.15);
  color: var(--gold-lt);
  border-color: rgba(212,175,55,.35);
}
#war .cw-slots { display: flex; flex-direction: column; align-items: center; gap: .3rem; }
#war .cw-slot { display: flex; align-items: baseline; justify-content: center; gap: .6rem; }
#war .cw-lbl { font-size: .95rem; letter-spacing: .06em; text-transform: uppercase; color: #9a8060; font-weight: 500; }
#war .cw-time { font-size: 1.7rem; font-weight: 600; color: var(--gold-lt); font-variant-numeric: tabular-nums; }
#war .cw-sep {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,175,55,.2), transparent);
  margin: 1rem 1.75rem;
}

/* ============================================================
   CLASS CARDS
   ============================================================ */
#classes { background: var(--dark); padding-top: 2rem; }

.class-carousel {
  position: relative;
  margin: 2rem auto 0;
  max-width: 1100px;
  height: 320px;
}
.class-carousel-track {
  position: relative;
  width: 100%;
  height: 100%;
}
.class-card {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 190px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(212,175,55,.18);
  border-radius: 12px;
  overflow: hidden;
  opacity: 0;
  z-index: 1;
  pointer-events: none;
  transform: translate(-50%,-50%) scale(.5);
  transition: transform .7s cubic-bezier(.4,0,.2,1), opacity .7s ease, box-shadow .25s;
}
.class-card:hover { box-shadow: 0 12px 36px rgba(212,175,55,.25); }

.class-card.is-active {
  transform: translate(-50%,-50%) scale(1.5);
  opacity: 1;
  z-index: 5;
  pointer-events: auto;
}
/* Side cards are grouped into two small stacks (left / right) like a
   fanned pile of playing cards, instead of being spread out far apart.
   Click any visible card (including a peeking back card) to open it. */
.class-card.is-next1 {
  transform: translate(calc(-50% + 195px), calc(-50% + 14px)) rotate(5deg) scale(.72);
  opacity: .85;
  z-index: 4;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
.class-card.is-prev1 {
  transform: translate(calc(-50% - 195px), calc(-50% + 14px)) rotate(-5deg) scale(.72);
  opacity: .85;
  z-index: 4;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(0,0,0,.45);
}
.class-card.is-next2 {
  transform: translate(calc(-50% + 206px), calc(-50% + 26px)) rotate(11deg) scale(.66);
  opacity: .55;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}
.class-card.is-prev2 {
  transform: translate(calc(-50% - 206px), calc(-50% + 26px)) rotate(-11deg) scale(.66);
  opacity: .55;
  z-index: 3;
  pointer-events: auto;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,.4);
}

.class-card-img img { width: 100%; display: block; aspect-ratio: 3/4; object-fit: cover; }

/* Name + description overlap the image as a bottom caption (like the
   map-card captions) instead of stacking below — keeps the big portrait
   art but adds zero extra card height. */
.class-card-info {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 1.6rem .85rem .65rem;
  background: linear-gradient(180deg, rgba(10,10,14,0) 0%, rgba(10,10,14,.55) 45%, rgba(10,10,14,.92) 100%);
}
.class-card-name { font-size: 1rem; font-weight: 600; color: var(--gold-lt); letter-spacing: .04em; text-shadow: 0 1px 6px rgba(0,0,0,.9), 0 0 16px rgba(212,175,55,.4); }
.class-card-desc { font-size: .75rem; color: #e5dfc8; margin-top: .25rem; line-height: 1.35; font-weight: 500; text-shadow: 0 1px 4px rgba(0,0,0,.9); }

@media (max-width: 900px) {
  .class-carousel { height: 280px; }
  .class-card { width: 160px; }
  .class-card.is-next1 { transform: translate(calc(-50% + 150px), calc(-50% + 10px)) rotate(5deg) scale(.78); }
  .class-card.is-prev1 { transform: translate(calc(-50% - 150px), calc(-50% + 10px)) rotate(-5deg) scale(.78); }
  .class-card.is-next2, .class-card.is-prev2 { opacity: 0; pointer-events: none; }
}
@media (max-width: 560px) {
  .class-carousel { height: 250px; }
  .class-card { width: 135px; }
}

/* ============================================================
   TAGLINE BANNER
   ============================================================ */
.tagline-banner { background: var(--dark); padding: 3rem 2rem; text-align: center; }
.tagline-banner-inner { display: flex; align-items: center; gap: 1.5rem; max-width: 800px; margin: 0 auto; }
.tagline-banner-line {
  flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, rgba(212,175,55,.4), transparent);
}
.tagline-banner-text {
  font-size: clamp(1.1rem, 2.5vw, 1.6rem); font-weight: 300; font-style: italic;
  font-family: Georgia, 'Sarabun', serif; color: #c4a96e; letter-spacing: .08em; white-space: nowrap;
}

/* ============================================================
   RULES (compact, collapsed by default)
   ============================================================ */
#rules { background: var(--dark2); padding: 3.5rem 0; }
.rules-container { max-width: 1100px; position: relative; z-index: 2; }

.rules-split {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}
@media (max-width: 768px) {
  .rules-split { gap: 2rem; }
  .rules-head { padding-top: 0; }
}

.rules-col { display: flex; flex-direction: column; align-items: center; gap: 1.5rem; width: 100%; max-width: 700px; }
.rules-head { text-align: center; margin-bottom: 0; padding-top: 2.5rem; width: 100%; }
.rules-title {
  font-size: clamp(1.6rem, 3.2vw, 2.1rem); font-weight: 600;
  color: var(--blue); letter-spacing: .03em; margin-bottom: .4rem;
  text-shadow: 0 2px 10px rgba(0,0,0,.75), 0 0 26px rgba(59,130,246,.55);
}
.rules-sub {
  font-size: clamp(.85rem, 1.7vw, 1rem); color: #b6a574; margin-bottom: 0;
  text-shadow: 0 2px 10px rgba(0,0,0,.75);
}

.rules-list {
  display: grid;
  grid-template-columns: fit-content(100%);
  justify-content: center;
  gap: .75rem;
  width: 100%;
  max-width: 100%;
}
.rules-item {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(212,175,55,.22);
  border-radius: 10px;
  background: rgba(10,8,6,.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  width: 100%;
}
.rules-item[open] { z-index: 30; }
.rules-item summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
  flex-wrap: nowrap;
  padding: .55rem 1rem;
  min-height: 2.5rem;
  font-size: .88rem; font-weight: 500; color: #c9b889;
  letter-spacing: .01em;
}
.rules-item summary span { flex: 1; min-width: 0; }

.rules-item summary::-webkit-details-marker { display: none; }
.rules-item summary:hover { color: var(--gold-lt); }
.rules-contact-card { margin: 0 auto; }
@media (max-width: 768px) {
  .rules-contact-card { max-width: 480px; }
}
.rules-chevron {
  flex-shrink: 0; font-size: .7rem; color: rgba(212,175,55,.45);
  transition: transform .25s ease;
}
.rules-item[open] summary { color: var(--gold-lt); }
.rules-item[open] .rules-chevron { transform: rotate(180deg); }
.rules-body {
  position: absolute;
  top: 100%; left: 0; right: 0;
  margin-top: .5rem;
  z-index: 1;
  background: #0c0a07;
  border: 1px solid rgba(212,175,55,.3);
  border-radius: 10px;
  box-shadow: 0 18px 34px rgba(0,0,0,.55);
  padding: 1rem 1.1rem; font-size: .82rem; line-height: 1.7; color: #948766;
}
.rules-body p { margin-bottom: .5rem; }
.rules-penalty {
  font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: rgba(255,68,68,.6); margin-bottom: .35rem;
}
.rules-body ul { margin: 0; padding-left: 1.05rem; }
.rules-body ul li { margin-bottom: .3rem; }
.rules-body ul li::marker { color: rgba(212,175,55,.45); }

/* ============================================================
   RULES + CONTACT (two-column: rules left, image + contact right)
   ============================================================ */
.rules-twocol {
  display: grid;
  grid-template-columns: fit-content(100%) 1fr;
  align-items: stretch;
  gap: 1.5rem;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}
.rules-image-col {
  position: relative;
  min-width: 0;
  width: 90%;
  height: 90%;
  justify-self: center;
  align-self: center;
  overflow: hidden;
  border-radius: 14px;
  border: 1px solid rgba(212,175,55,.25);
  box-shadow: 0 18px 40px rgba(0,0,0,.5);
}
.rules-side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
.rules-content-col { min-width: 0; }
.rules-contact-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .85rem;
  padding: 2.5rem 1.5rem 1.25rem;
  background: linear-gradient(to top, rgba(0,0,0,.88) 0%, rgba(0,0,0,.6) 60%, transparent 100%);
}
.nc-single {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  max-width: 560px;
  width: 100%;
  text-align: center;
  margin-top: 0;
}
.nc-copyright {
  margin: 0;
  text-align: center;
  font-size: clamp(.62rem, 1.4vw, .8rem);
  font-weight: 300;
  color: #e5dfc8;
  letter-spacing: .03em;
  text-shadow: 0 2px 10px rgba(0,0,0,.8);
  white-space: nowrap;
}
.nc-single .section-title { font-weight: 600; font-size: clamp(1.6rem, 3.2vw, 2.3rem); }
.nc-sub { color: #c8b882; font-size: clamp(.62rem, 2.6vw, 1.05rem); margin-top: .6rem; margin-bottom: 1.75rem; line-height: 1.7; text-shadow: 0 2px 10px rgba(0,0,0,.85); white-space: nowrap; }
.nc-social-row { display: flex; gap: .75rem; justify-content: center; flex-wrap: nowrap; }
.nc-social-btn {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .75rem 1.1rem; border-radius: 10px;
  font-size: clamp(.85rem, 2.2vw, 1.05rem); font-weight: 600; text-decoration: none;
  transition: opacity .2s, transform .2s;
  box-shadow: 0 10px 26px rgba(0,0,0,.45);
  white-space: nowrap;
}
.nc-social-btn:hover { opacity: .85; transform: translateY(-2px); }
.nc-social-btn i { font-size: 1.2rem; }
.nc-social-btn.facebook { background: #1877f2; border: 1px solid #1877f2; color: #fff; }
.nc-social-btn.discord  { background: #5865f2; border: 1px solid #5865f2; color: #fff; }

@media (max-width: 768px) {
  .rules-twocol { grid-template-columns: 1fr; gap: 2rem; margin-left: 0; margin-right: 0; padding-left: 0; padding-right: 0; }
  .rules-side-img { height: auto; object-fit: initial; }
  .nc-single { max-width: 92%; margin-top: 2.5rem; }
}

/* ============================================================
   LEVEL CARD IMAGE
   ============================================================ */
.lv-panel-img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  object-position: center;
  border-radius: 0;
  display: block;
  opacity: .85;
}
@media (max-width: 768px) {
  .lv-panel-img { height: 180px; }
}

/* ============================================================
   MINI WAR SCHEDULE (inside level card)
   ============================================================ */
.lv-war-mini {
  margin-top: 1.5rem;
  padding: 1.25rem 1.75rem;
  background: rgba(255,68,68,.05);
  border: 1px solid rgba(255,68,68,.18);
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.lv-war-mini-label {
  font-size: .72rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--red-lt);
  opacity: .8;
  margin-bottom: .1rem;
}
.lv-war-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.lv-war-name {
  font-size: .88rem;
  font-weight: 600;
  color: #fff;
  min-width: 130px;
}
.lv-war-days {
  display: flex;
  gap: .3rem;
}
.lv-war-days .wd {
  width: 1.6rem;
  height: 1.6rem;
  font-size: .65rem;
  border-radius: 4px;
}
.lv-war-time {
  margin-left: auto;
  font-size: 1rem;
  font-weight: 600;
  color: var(--gold-lt);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

/* Level card 201-250 split layout */
.lv-panel-info {
  flex: 1;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
}
.lv-panel-war {
  flex: 1;
  padding: 1.75rem 2rem 1.75rem 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
}
.lv-panel-war .lv-war-mini {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
  width: 100%;
}
@media (max-width: 768px) {
  .lv-panel-info { border-right: none; border-bottom: 1px solid rgba(255,68,68,.15); padding: 1.5rem; }
  .lv-panel-war { padding: 1.5rem; justify-content: flex-start; }
}

/* ============================================================
   LEVELS — new left/right layout
   ============================================================ */
.levels-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  align-items: stretch;
  margin-top: 2rem;
}

/* Left: stacked cards */
.levels-left {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
.lv-card {
  flex: 1;
  border-radius: 14px;
  overflow: hidden;
  background: rgba(255,255,255,.04);
  display: flex;
  flex-direction: column;
}
.lv-card.blue { border-left: 4px solid #60a5fa; }
.lv-card.red  { border-left: 4px solid var(--red-lt); }
.lv-card-img {
  width: 100%; height: 140px;
  object-fit: cover; object-position: center;
  display: block; opacity: .8;
}
.lv-card-body {
  padding: 1.1rem 1.4rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .45rem;
}
.lv-card .lv-range { font-size: 1.3rem; font-weight: 600; margin-bottom: .2rem; }
.lv-card.blue .lv-range { color: #60a5fa; }
.lv-card.red  .lv-range { color: #f87171; }
.lv-card .lv-item { font-size: .95rem; font-weight: 400; margin-bottom: 0; }

/* Right: WAR panel */
.levels-war {
  border-radius: 14px;
  background: rgba(255,68,68,.04);
  border: 1px solid rgba(255,68,68,.2);
  display: flex;
  flex-direction: column;
}
.levels-war-header {
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid rgba(255,68,68,.15);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: .4rem;
}
.levels-war-icon {
  font-size: 2rem;
  color: var(--red-lt);
  opacity: .8;
}
.levels-war-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.levels-war-sub {
  font-size: .75rem;
  color: #7a5a50;
  letter-spacing: .1em;
}

.levels-war-body {
  flex: 1;
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  gap: 0;
}
.war-ev-block {
  display: flex;
  flex-direction: column;
  gap: .7rem;
}
.war-ev-block-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: .08em;
}
.war-ev-block-freq {
  font-size: .72rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: #6b5040;
}
.war-ev-block-days {
  display: flex;
  gap: .35rem;
}
.war-ev-block-slots {
  display: flex;
  flex-direction: column;
  gap: .4rem;
}
.war-ev-slot {
  display: flex;
  align-items: baseline;
  gap: .75rem;
}
.slot-round {
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #6b5040;
  min-width: 38px;
}
.slot-t {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--gold-lt);
  font-variant-numeric: tabular-nums;
}
.war-ev-sep {
  height: 1px;
  background: linear-gradient(to right, transparent, rgba(255,68,68,.25), transparent);
  margin: 1.25rem 0;
}

@media (max-width: 768px) {
  .levels-layout { grid-template-columns: 1fr; }
  .levels-war { min-height: 300px; }
}

/* ============================================================
   COLLAGE GRID LAYOUT
   ============================================================ */
.collage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 6px;
  height: 600px;
  margin-top: 2rem;
  border-radius: 16px;
  overflow: hidden;
}
.collage-cell {
  position: relative;
  overflow: hidden;
}
.collage-cell.top-left    { grid-column: 1; grid-row: 1; }
.collage-cell.bottom-left { grid-column: 1; grid-row: 2; }
.collage-cell.right       { grid-column: 2; grid-row: 1 / span 2; }

/* Image */
.collage-img {
  width: 100%; height: 100%;
  object-fit: cover; object-position: center;
  display: block;
  transition: transform .5s ease;
}
.collage-cell:hover .collage-img { transform: scale(1.04); }

/* Overlay gradient + text */
.collage-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.85) 50%, rgba(0,0,0,.2) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.25rem 1.5rem;
}
.collage-range {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: .5rem;
  letter-spacing: .03em;
}
.collage-range.blue { color: #60a5fa; }
.collage-range.red  { color: #f87171; }
.collage-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: .2rem;
}
.collage-list li {
  font-size: .82rem;
  color: #ccc4aa;
  font-weight: 400;
  padding-left: .9rem;
  position: relative;
  line-height: 1.5;
}
.collage-list li::before {
  content: '·';
  position: absolute; left: 0;
  color: #8a7a50;
}

/* WAR panel (right cell) */
.collage-cell.right {
  background: #080605;
  border: 1px solid rgba(255,68,68,.18);
}
.collage-war-bg {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(255,68,68,.08) 0%, transparent 70%);
  pointer-events: none;
}
.collage-war-content {
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 2rem;
  text-align: center;
  gap: .5rem;
}
.collage-war-icon { font-size: 2.2rem; color: var(--red-lt); opacity: .7; }
.collage-war-title {
  font-size: 1.4rem; font-weight: 700;
  letter-spacing: .14em; text-transform: uppercase; color: #fff;
}
.collage-war-sub {
  font-size: .72rem; letter-spacing: .1em;
  color: #6b4a40; margin-bottom: .75rem;
}
.collage-war-events {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0;
}
.cw-event {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: .55rem;
  width: 100%;
}
.cw-name {
  font-size: .95rem; font-weight: 700; color: #fff; letter-spacing: .06em;
}
.cw-freq {
  font-size: .68rem; text-transform: uppercase;
  letter-spacing: .12em; color: #6b4a40;
}
