/* =========================================================
   KING OF TOPPLAYER THE 2ND — Core & Hero
   ========================================================= */
:root {
  --black: #050506;
  --bg: #070708;
  --panel: #0c0c0e;
  --gold: #c8ae6a;
  --gold-2: #f2d279;
  --gold-3: #8d7440;
  --pink: #ff4b8d;
  --yellow: #fcea23;
  --blue: #2fb9ea;
  --white: #f4f1ea;
  --muted: #a49e92;
  --line: rgba(200, 174, 106, 0.26);
  --line-soft: rgba(255, 255, 255, 0.08);
  --font-body: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-display: "Anton", "Noto Sans SC", sans-serif;
  --font-tech: "Chakra Petch", "Noto Sans SC", monospace;
  --max: 1180px;
  --header-h: 78px;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 24px);
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.8;
  letter-spacing: 0.02em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
svg { display: block; }

::selection { background: var(--gold-2); color: #0a0a0b; }

body.is-locked { overflow: hidden; }
:focus-visible { outline: 2px solid var(--gold-2); outline-offset: 3px; }

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #050506; }
::-webkit-scrollbar-thumb { background: #2a2520; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold-3); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container { width: min(var(--max), calc(100% - 48px)); margin: 0 auto; position: relative; z-index: 3; }
.container--narrow { width: min(900px, calc(100% - 48px)); }

/* film grain */
.grain {
  position: fixed; inset: 0; z-index: 900; pointer-events: none; opacity: 0.045;
  background-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
}

/* ---------- shared bits ---------- */
.dia {
  width: 7px; height: 7px; flex: 0 0 7px; background: var(--gold-2);
  transform: rotate(45deg); display: inline-block;
  box-shadow: 0 0 10px rgba(242, 210, 121, 0.7);
}
.dia--lg { width: 10px; height: 10px; flex-basis: 10px; }
.kicker {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-tech); font-size: 11px; font-weight: 600;
  letter-spacing: 0.26em; color: var(--gold);
}
.corners { position: relative; }
.corners::before, .corners::after {
  content: ""; position: absolute; width: 18px; height: 18px;
  border: 2px solid var(--gold); opacity: 0.55; pointer-events: none; z-index: 2;
}
.corners::before { top: -1px; left: -1px; border-right: 0; border-bottom: 0; }
.corners::after { right: -1px; bottom: -1px; border-left: 0; border-top: 0; }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s cubic-bezier(0.2, 0.7, 0.3, 1), transform 0.8s cubic-bezier(0.2, 0.7, 0.3, 1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ---------- buttons ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  height: 54px; min-width: 208px; padding: 0 64px 0 26px;
  border-radius: 999px; overflow: hidden; isolation: isolate;
  font-weight: 700; font-size: 14px; letter-spacing: 0.04em;
  transition: transform 0.3s ease, filter 0.3s ease, box-shadow 0.3s ease;
}
.btn--gold {
  color: #0b0a06; border: 2px solid #fff;
  background: linear-gradient(105deg, #f7df9a 0%, #f2d279 38%, #c8ae6a 100%);
  box-shadow: 0 10px 30px rgba(200, 174, 106, 0.16);
}
.btn--ghost {
  color: var(--white); border: 2px solid var(--gold);
  background: rgba(6, 6, 7, 0.55); backdrop-filter: blur(6px);
}
.btn--sm { height: 44px; min-width: 118px; padding: 0 46px 0 18px; font-size: 12px; border-width: 2px; }
.btn--block { width: 100%; }

.btn__label { display: flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.btn__label em {
  font-family: var(--font-tech); font-style: normal; font-size: 10px;
  letter-spacing: 0.18em; opacity: 0.66;
}
.btn--ghost .btn__label em { color: var(--gold); opacity: 0.9; }

.btn__arrow {
  position: absolute; top: 0; right: 0; bottom: 0; width: 48px;
  display: grid; place-items: center;
  background: #070708;
  clip-path: polygon(38% 0, 100% 0, 100% 100%, 0 100%);
  transition: width 0.3s ease;
}
.btn--ghost .btn__arrow { background: linear-gradient(150deg, #f2d279, #c8ae6a); }
.btn--ghost .btn__arrow svg path { stroke: #0a0a0b; }
.btn__arrow svg { width: 18px; height: 18px; }
.btn__arrow svg path { fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn--sm .btn__arrow { width: 38px; }

@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); filter: brightness(1.06); }
  .btn:hover .btn__arrow { width: 56px; }
  .btn__arrow svg { transition: transform 0.3s ease; }
  .btn:hover .btn__arrow svg { transform: translateX(3px); }
}

/* ---------- header ---------- */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  transition: background 0.4s ease, border-color 0.4s ease, height 0.4s ease;
}
.header.is-scrolled {
  background: rgba(5, 5, 6, 0.86);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom-color: rgba(200, 174, 106, 0.22);
}
.header__inner {
  width: min(1360px, calc(100% - 48px)); height: 100%; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; flex: 0 0 auto; }
.brand__crown {
  width: 34px; height: auto; flex: 0 0 auto;
  filter: drop-shadow(0 0 10px rgba(242, 210, 121, 0.28));
  transition: transform 0.35s ease;
}
.brand:hover .brand__crown { transform: translateY(-1px) scale(1.05); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__text b {
  font-family: var(--font-display); font-weight: 400; font-size: 14px;
  letter-spacing: 0.1em; color: var(--white);
}
.brand__text em {
  font-style: normal; font-family: var(--font-tech); font-size: 9px;
  letter-spacing: 0.32em; color: var(--gold); margin-top: 3px;
}

.nav { display: flex; align-items: center; gap: 26px; }
.nav__link { position: relative; display: flex; flex-direction: column; align-items: center; line-height: 1.2; padding: 6px 0; }
.nav__link b {
  font-family: var(--font-tech); font-weight: 600; font-size: 12px;
  letter-spacing: 0.16em; color: #ded8cc; transition: color 0.25s ease;
}
.nav__link span { font-size: 9px; letter-spacing: 0.18em; color: #6f6a60; margin-top: 4px; transition: color 0.25s ease; }
.nav__link::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold-2), transparent);
  transform: scaleX(0); transition: transform 0.35s ease;
}
.nav__link:hover b, .nav__link.is-active b { color: var(--gold-2); }
.nav__link:hover span, .nav__link.is-active span { color: var(--gold); }
.nav__link.is-active::after, .nav__link:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 50%; padding: 12px 10px; position: relative; }
.burger i { display: block; height: 2px; background: var(--gold-2); margin: 4px 0; transition: transform 0.3s ease, opacity 0.3s ease; }
.burger.is-open i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.is-open i:nth-child(2) { opacity: 0; }
.burger.is-open i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.mobile-nav {
  position: fixed; inset: 0 0 0 0; z-index: 90; padding: calc(var(--header-h) + 30px) 28px 40px;
  background: rgba(5, 5, 6, 0.97); backdrop-filter: blur(18px);
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
  opacity: 0; visibility: hidden; transform: translateY(-12px);
  transition: opacity 0.35s ease, visibility 0.35s ease, transform 0.35s ease;
}
.mobile-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.mobile-nav nav { display: flex; flex-direction: column; }
.mobile-nav nav a {
  display: flex; align-items: baseline; gap: 14px; padding: 15px 4px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  font-size: 17px; font-weight: 700; letter-spacing: 0.08em;
}
.mobile-nav nav a span { font-family: var(--font-tech); font-size: 10px; color: var(--gold); letter-spacing: 0.2em; }
.mobile-nav nav a b { margin-left: auto; font-family: var(--font-tech); font-size: 10px; font-weight: 500; color: #6f6a60; letter-spacing: 0.2em; }
.mobile-nav__cta { align-self: center; margin-top: 30px; }

/* ---------- hero ---------- */
.hero {
  position: relative; min-height: 100svh; padding: calc(var(--header-h) + 34px) 24px 108px;
  display: flex; flex-direction: column; justify-content: flex-start; align-items: center;
  overflow: hidden; isolation: isolate; background: #050506;
}
.hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }

.hero__haze {
  position: absolute; inset: -10%;
  background:
    radial-gradient(ellipse 42% 38% at 50% 34%, rgba(121, 86, 214, 0.22), transparent 68%),
    radial-gradient(circle at 14% 18%, rgba(255, 75, 141, 0.16), transparent 42%),
    radial-gradient(circle at 86% 16%, rgba(47, 185, 234, 0.15), transparent 44%),
    radial-gradient(circle at 78% 74%, rgba(242, 210, 121, 0.09), transparent 40%),
    linear-gradient(180deg, #0a0810 0%, #050506 56%, #050506 100%);
  animation: hazePulse 9s ease-in-out infinite alternate;
}
@keyframes hazePulse { from { opacity: 0.75; } to { opacity: 1; } }

.hero__streaks {
  position: absolute; inset: -25% -10%;
  background:
    linear-gradient(112deg, transparent 20%, rgba(255, 75, 141, 0.42) 20.4%, rgba(255, 75, 141, 0.42) 21.6%, transparent 22%),
    linear-gradient(112deg, transparent 27%, rgba(242, 210, 121, 0.34) 27.3%, rgba(242, 210, 121, 0.34) 28.2%, transparent 28.6%),
    linear-gradient(112deg, transparent 71%, rgba(47, 185, 234, 0.4) 71.3%, rgba(47, 185, 234, 0.4) 72.4%, transparent 72.8%),
    linear-gradient(112deg, transparent 77%, rgba(255, 255, 255, 0.18) 77.3%, rgba(255, 255, 255, 0.18) 77.9%, transparent 78.2%),
    linear-gradient(66deg, transparent 14%, rgba(47, 185, 234, 0.25) 14.4%, rgba(47, 185, 234, 0.25) 15.4%, transparent 15.8%);
  opacity: 0.34; filter: blur(1.5px);
  animation: streakDrift 14s ease-in-out infinite alternate;
}
@keyframes streakDrift { from { transform: translate3d(-8px, 0, 0); opacity: 0.24; } to { transform: translate3d(8px, 6px, 0); opacity: 0.4; } }

.hero__stars { position: absolute; inset: 0; }
.hero__stars i {
  position: absolute; border-radius: 50%; background: #fff;
  animation: twinkle 4s ease-in-out infinite; opacity: 0.5;
}
@keyframes twinkle { 0%, 100% { opacity: 0.18; transform: scale(0.9); } 50% { opacity: 0.85; transform: scale(1.15); } }

.hero__grid {
  position: absolute; left: -20%; right: -20%; bottom: -6%; height: 44%;
  background-image:
    linear-gradient(rgba(200, 174, 106, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200, 174, 106, 0.16) 1px, transparent 1px);
  background-size: 64px 64px;
  transform: perspective(560px) rotateX(66deg);
  transform-origin: center bottom;
  mask-image: linear-gradient(to top, #000 0%, transparent 72%);
  -webkit-mask-image: linear-gradient(to top, #000 0%, transparent 72%);
  opacity: 0.5;
}

.hero__watermark {
  position: absolute; top: 15%; left: 50%; transform: translateX(-50%);
  font-family: var(--font-display); font-size: clamp(150px, 24vw, 340px);
  line-height: 1; color: transparent; letter-spacing: 0.04em;
  -webkit-text-stroke: 1px rgba(200, 174, 106, 0.16);
  white-space: nowrap; user-select: none;
}

.hero__side {
  position: absolute; top: 50%; transform: translateY(-50%);
  writing-mode: vertical-rl; font-family: var(--font-tech); font-size: 9px;
  letter-spacing: 0.32em; color: rgba(200, 174, 106, 0.45); z-index: 4;
}
.hero__side--l { left: 22px; }
.hero__side--r { right: 22px; }

.hero__content {
  position: relative; z-index: 5; width: min(1180px, 100%);
  margin-block: auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-family: var(--font-tech); font-size: 10px; font-weight: 600;
  letter-spacing: 0.24em; color: var(--gold-2); text-transform: uppercase;
}
.eyebrow span { white-space: nowrap; }
.eyebrow__dot { width: 4px; height: 4px; border-radius: 50%; background: rgba(242, 210, 121, 0.6); }

.emblem {
  position: relative; width: clamp(230px, 24vw, 350px);
  margin: 16px auto 2px; z-index: 2;
}
.emblem__glow {
  position: absolute; inset: -22%; z-index: -1; border-radius: 50%;
  background: radial-gradient(circle, rgba(242, 210, 121, 0.26), rgba(121, 86, 214, 0.18) 48%, transparent 70%);
  filter: blur(18px);
}
.emblem__ring {
  position: absolute; inset: -9%; border-radius: 50%; z-index: 0;
  background: conic-gradient(from 0deg,
    transparent 0 8%, rgba(242, 210, 121, 0.8) 9% 10%, transparent 11% 30%,
    rgba(255, 75, 141, 0.75) 31% 32%, transparent 33% 54%,
    rgba(47, 185, 234, 0.75) 55% 56%, transparent 57% 78%,
    rgba(242, 210, 121, 0.55) 79% 80%, transparent 81% 100%);
  mask: radial-gradient(circle, transparent 62%, #000 63%, #000 66%, transparent 67%);
  -webkit-mask: radial-gradient(circle, transparent 62%, #000 63%, #000 66%, transparent 67%);
  animation: spin 30s linear infinite;
  opacity: 0.6;
}
@keyframes spin { to { transform: rotate(360deg); } }

.emblem__ringtext {
  position: absolute; inset: -6%; width: 112%; height: 112%; z-index: 1;
  animation: spin 60s linear infinite reverse; opacity: 0.85;
}
.emblem__ringtext-label {
  fill: rgba(242, 210, 121, 0.55); font-family: var(--font-tech);
  font-size: 10.5px; letter-spacing: 0.22em;
}

.emblem__parallax { position: relative; z-index: 2; transform: translate3d(0, 0, 0); transition: transform 0.2s ease-out; }
.emblem__img {
  width: 100%; filter: drop-shadow(0 18px 40px rgba(0, 0, 0, 0.65)) drop-shadow(0 0 26px rgba(242, 210, 121, 0.28));
  animation: floatY 6s ease-in-out infinite;
}
@keyframes floatY { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.tagline {
  font-size: clamp(24px, 3.2vw, 40px); font-weight: 900; letter-spacing: 0.14em;
  line-height: 1.3; margin-top: 8px; text-shadow: 0 4px 24px rgba(0, 0, 0, 0.6);
}
.tagline em {
  font-style: normal;
  background: linear-gradient(180deg, #fff5d2 0%, #f2d279 46%, #c8ae6a 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tagline-en {
  font-family: var(--font-tech); font-size: 11px; letter-spacing: 0.38em;
  color: rgba(244, 241, 234, 0.5); margin-top: 10px;
}

.hero__meta {
  display: flex; align-items: center; justify-content: center; gap: clamp(14px, 3vw, 34px);
  margin-top: 22px; padding: 12px 30px;
  border-top: 1px solid rgba(200, 174, 106, 0.22);
  border-bottom: 1px solid rgba(200, 174, 106, 0.22);
  background: linear-gradient(90deg, transparent, rgba(200, 174, 106, 0.06), transparent);
  flex-wrap: wrap;
}
.hero__meta-cell { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 120px; }
.hero__meta-cell span {
  font-family: var(--font-tech); font-size: 9px; letter-spacing: 0.26em; color: var(--gold);
}
.hero__meta-cell b { font-size: clamp(15px, 1.6vw, 19px); font-weight: 700; letter-spacing: 0.1em; color: var(--white); }

.hero__actions { display: flex; align-items: center; gap: 16px; margin-top: 24px; flex-wrap: wrap; justify-content: center; }

.countdown--hero { margin-top: 16px; }
.countdown { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; justify-content: center; }
.countdown__label {
  display: flex; flex-direction: column; line-height: 1.35; text-align: left;
  padding-right: 14px; border-right: 1px solid rgba(200, 174, 106, 0.24);
}
.countdown__label span {
  font-family: var(--font-tech); font-size: 8.5px; letter-spacing: 0.24em; color: var(--gold);
}
.countdown__label b { font-family: var(--font-tech); font-size: 11px; font-weight: 600; color: var(--white); letter-spacing: 0.08em; }
.countdown__units { display: flex; align-items: center; gap: 6px; }
.cd-unit {
  min-width: 48px; padding: 5px 6px 4px; text-align: center;
  border: 1px solid rgba(200, 174, 106, 0.22); background: rgba(8, 8, 10, 0.6);
}
.cd-unit b { display: block; font-family: var(--font-tech); font-size: 19px; line-height: 1.1; color: var(--gold-2); letter-spacing: 0.06em; }
.cd-unit span { display: block; font-family: var(--font-tech); font-size: 7.5px; letter-spacing: 0.16em; color: #7c766b; margin-top: 3px; }
.cd-sep { font-family: var(--font-tech); color: rgba(200, 174, 106, 0.5); font-size: 16px; }
.countdown.is-ended .countdown__units { display: none; }
.countdown.is-ended .countdown__label b { color: var(--pink); }

.hero__scroll {
  position: absolute; left: 50%; bottom: 22px; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  z-index: 5; color: rgba(244, 241, 234, 0.4); font-family: var(--font-tech);
  font-size: 8px; letter-spacing: 0.3em;
}
.hero__scroll i { width: 1px; height: 34px; background: linear-gradient(180deg, var(--gold), transparent); animation: scrollLine 2.2s ease-in-out infinite; }
@keyframes scrollLine { 0%, 100% { transform: scaleY(0.6); opacity: 0.4; } 50% { transform: scaleY(1); opacity: 1; } }

/* ---------- ticker ---------- */
.ticker {
  position: relative; z-index: 6; overflow: hidden;
  background: linear-gradient(90deg, #8d7440 0%, #f2d279 22%, #fff1c1 50%, #f2d279 78%, #8d7440 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.35);
  border-bottom: 1px solid rgba(255, 255, 255, 0.25);
}
.ticker__track { display: flex; width: max-content; animation: marquee 42s linear infinite; }
.ticker__item {
  display: flex; align-items: center; gap: 26px; padding: 11px 30px;
  font-family: var(--font-tech); font-size: 11px; font-weight: 700;
  letter-spacing: 0.22em; color: #0b0a06; white-space: nowrap;
}
.ticker__item::after { content: "◆"; font-size: 9px; opacity: 0.7; }
@keyframes marquee { to { transform: translateX(-50%); } }
.ticker:hover .ticker__track { animation-play-state: paused; }
