:root {
  --bg: #030405;
  --panel: #0d0f12;
  --panel-2: #15100d;
  --text: #fff2df;
  --muted: #bcae9b;
  --line: rgba(255, 242, 223, .14);
  --orange: #b8326f;
  --gold: #d85a91;
  --cyan: #57d6c1;
  --red: #e35644;
  --shadow: rgba(0,0,0,.45);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background:
    radial-gradient(circle at 82% 18%, rgba(184,50,111,.2), transparent 24rem),
    linear-gradient(rgba(255,255,255,.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.028) 1px, transparent 1px),
    var(--bg);
  background-size: auto, 38px 38px, 38px 38px, auto;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, rgba(255,255,255,.03) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: .42;
}

a { color: inherit; text-decoration: none; }
button { font: inherit; }

.system-strip {
  height: 28px;
  display: flex;
  align-items: center;
  gap: clamp(18px, 4vw, 58px);
  overflow: hidden;
  padding: 0 28px;
  border-bottom: 1px solid rgba(216,90,145,.24);
  background: #050302;
  color: #e598bd;
  font: 800 11px/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 2px;
  white-space: nowrap;
}

.pulse::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 13px var(--cyan);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 74px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 0 clamp(16px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: rgba(5,5,5,.84);
  backdrop-filter: blur(18px);
}

.brand, .desktop-nav, .header-actions, .hero-actions, .hero-stats, .section-heading, .video-block, .downloads, .certification, footer {
  display: flex;
  align-items: center;
}

.brand { gap: 12px; font-weight: 950; }
.brand strong span, footer span { color: var(--orange); }

.brand-cube {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(184,50,111,.58);
  border-radius: 8px;
  background: linear-gradient(145deg, #51152f, #c7437b);
  box-shadow: inset -8px -8px 16px rgba(0,0,0,.26);
  color: #fbe7f0;
  font-weight: 950;
}

.desktop-nav {
  justify-content: center;
  gap: 28px;
  color: #d4c3aa;
  font-weight: 800;
}

.desktop-nav a {
  padding: 28px 0 24px;
  border-bottom: 3px solid transparent;
}

.desktop-nav a:hover { color: white; border-color: var(--orange); }

.header-actions { gap: 10px; }

.icon-btn, .lang-btn, .menu-btn {
  height: 42px;
  min-width: 42px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  cursor: pointer;
}

.lang-btn { padding: 0 12px; font-weight: 900; }
.menu-btn { display: none; font-size: 22px; }

.join-btn, .primary {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 8px;
  background: linear-gradient(180deg, #d85a91, #9f285f);
  color: #fff2f8;
  font-weight: 950;
  box-shadow: 0 14px 34px rgba(184,50,111,.3);
}

.mobile-drawer {
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 60;
  width: min(380px, 100%);
  padding: 28px;
  background: #080807;
  border-left: 1px solid var(--line);
  transform: translateX(100%);
  transition: transform .25s ease;
}

.mobile-drawer.open { transform: translateX(0); }
.mobile-drawer button { float: right; border: 0; background: transparent; color: white; font-size: 30px; }
.mobile-drawer a { clear: both; display: block; padding: 18px 0; border-bottom: 1px solid var(--line); font-size: 22px; font-weight: 950; }
.mobile-drawer span { display: block; color: var(--muted); font-size: 12px; letter-spacing: 1.6px; }
.drawer-join { margin-top: 20px; border-bottom: 0 !important; text-align: center; }

.hero {
  min-height: calc(100vh - 102px);
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: clamp(28px, 5vw, 76px);
  padding: clamp(52px, 8vw, 92px) clamp(16px, 5vw, 64px) 42px;
  border-bottom: 1px solid var(--line);
}

.hero-copy { align-self: center; max-width: 680px; }

.eyebrow {
  color: var(--gold);
  font: 900 12px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 4px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  margin-bottom: 24px;
  font-size: clamp(50px, 7.4vw, 96px);
  line-height: .98;
  letter-spacing: 0;
  text-wrap: balance;
}

h1::first-letter { color: var(--orange); }

.lead {
  max-width: 610px;
  color: #e3d3be;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.9;
}

.hero-actions { gap: 12px; flex-wrap: wrap; margin: 34px 0; }

.outline {
  min-height: 46px;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255,255,255,.035);
  font-weight: 950;
}

.outline small {
  color: var(--muted);
  font: 800 10px/1.2 ui-monospace, Menlo, monospace;
  letter-spacing: 1.3px;
}

.outline.gold { border-color: rgba(216,90,145,.52); }
.outline.cyan { border-color: rgba(87,214,193,.44); }

.hero-stats {
  max-width: 620px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(18,12,8,.74);
  box-shadow: 0 18px 48px var(--shadow);
}

.hero-stats div { flex: 1; min-width: 0; padding: 18px 20px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats span { display: block; color: var(--muted); font: 800 11px/1.4 ui-monospace, Menlo, monospace; letter-spacing: 1px; }
.hero-stats strong { color: var(--orange); font-size: clamp(20px, 2.4vw, 29px); }
.hero-stats div:nth-child(2) strong { color: var(--cyan); }

.hero-panel {
  position: relative;
  align-self: center;
  width: 100%;
  aspect-ratio: 1.18 / 1;
  min-height: 360px;
  max-height: min(560px, calc(100vh - 170px));
  border: 1px solid rgba(87,214,193,.28);
  border-radius: 8px;
  background:
    linear-gradient(rgba(87,214,193,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(87,214,193,.08) 1px, transparent 1px),
    rgba(9,9,9,.72);
  background-size: 38px 38px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04), 0 30px 86px rgba(0,0,0,.46);
}

canvas { width: 100%; height: 100%; display: block; }

.panel-label {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 22px;
  display: grid;
  gap: 4px;
  padding: 14px;
  border: 1px solid rgba(87,214,193,.3);
  border-radius: 8px;
  background: rgba(4,5,5,.62);
  font-family: ui-monospace, Menlo, monospace;
  letter-spacing: 2.4px;
}

.panel-label span, .panel-label small { color: var(--cyan); font-weight: 900; }
.panel-label strong { font-size: clamp(20px, 3vw, 38px); line-height: 1; }

section:not(.hero) { padding: clamp(58px, 8vw, 98px) clamp(16px, 5vw, 64px); }

.section-heading { justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.section-heading p, .story > p { margin: 0; color: var(--gold); font: 900 12px/1 ui-monospace, Menlo, monospace; letter-spacing: 3px; }
.section-heading h2, .story h2, .video-block h2, .certification h2 { margin: 0; font-size: clamp(34px, 4.5vw, 62px); line-height: 1.05; }
.section-heading a { color: var(--orange); font-weight: 950; }
.section-heading.stacked { display: block; max-width: 760px; }
.section-heading.stacked span { display: block; margin-top: 14px; color: var(--muted); line-height: 1.8; }

.event-grid, .game-grid, .step-grid, .downloads {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.event-grid article, .game-card, .step-grid article, .faq details, .download-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}

.event-grid article { padding: 24px; }
.event-grid span, .game-card small, .step-grid span { color: var(--gold); font: 900 11px/1 ui-monospace, Menlo, monospace; letter-spacing: 2px; }
.event-grid h3, .game-card h3, .step-grid h3 { margin: 18px 0 12px; font-size: 24px; }
.event-grid p, .game-card p, .story p, .video-block p, .certification p, .step-grid p, .faq p, footer p { color: #cebea8; line-height: 1.8; }
.event-grid button { border: 1px solid rgba(184,50,111,.48); border-radius: 8px; padding: 10px 14px; background: rgba(184,50,111,.14); color: var(--text); cursor: pointer; }

.games { background: rgba(255,255,255,.025); border-block: 1px solid var(--line); }

.game-card {
  position: relative;
  min-height: 360px;
  padding: 26px;
  overflow: hidden;
  transition: transform .22s ease, border-color .22s ease;
}

.game-card:hover { transform: translateY(-6px); border-color: rgba(184,50,111,.62); }
.game-card b { display: block; margin: 46px 0 8px; color: rgba(255,242,223,.16); font-size: clamp(56px, 6vw, 86px); letter-spacing: 2px; }
.game-card em { position: absolute; left: 26px; right: 26px; bottom: 24px; color: var(--cyan); font-style: normal; font-weight: 900; }
.game-card.active { background: linear-gradient(180deg, rgba(184,50,111,.22), rgba(255,255,255,.035)); }

.story { text-align: center; max-width: 880px; margin: 0 auto; }

.video-block { gap: 42px; border-top: 1px solid var(--line); }
.video-card {
  min-height: 320px;
  flex: 1;
  display: grid;
  place-items: center;
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: radial-gradient(circle, rgba(87,214,193,.18), rgba(184,50,111,.12) 45%, rgba(255,255,255,.035));
  cursor: pointer;
}
.video-card span { width: 74px; height: 74px; display: grid; place-items: center; border-radius: 50%; background: var(--orange); color: #fff2f8; font-size: 28px; }
.video-card strong, .video-card small { display: block; }
.video-card + div { flex: 1; }

.downloads { grid-template-columns: repeat(4, minmax(0, 1fr)); padding-top: 0 !important; }
.download-card { padding: 24px; font-weight: 950; }
.download-card span { display: block; margin-top: 10px; color: var(--muted); font-weight: 700; }

.certification {
  justify-content: space-between;
  gap: 32px;
  background: rgba(255,255,255,.025);
  border-block: 1px solid var(--line);
}
.certification > div:first-child { max-width: 720px; }
.cert-card { min-width: min(380px,100%); padding: 32px; border: 1px solid rgba(87,214,193,.3); border-radius: 8px; background: rgba(0,0,0,.22); }
.cert-card span { color: var(--cyan); font: 950 80px/1 ui-monospace, Menlo, monospace; }
.cert-card strong, .cert-card small { display: block; margin-top: 12px; }

.step-grid article { padding: 24px; }
.rules { background: rgba(0,0,0,.16); }
.faq { display: grid; gap: 12px; max-width: 900px; }
.faq details { padding: 18px 20px; }
.faq summary { cursor: pointer; font-weight: 950; }
.faq p { margin: 12px 0 0; }

.support {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  width: 78px;
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(184,50,111,.58);
  border-radius: 20px;
  background: linear-gradient(180deg, #d85a91, #9f285f);
  color: #fff2f8;
  font-weight: 950;
  line-height: 1;
  text-align: center;
  box-shadow: 0 18px 42px rgba(184,50,111,.32);
  cursor: pointer;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  place-items: center;
  padding: 18px;
  background: rgba(0,0,0,.62);
}
.modal.open { display: grid; }
.modal-card { width: min(460px, 100%); padding: 28px; border: 1px solid var(--line); border-radius: 8px; background: #0d0f12; box-shadow: 0 30px 90px rgba(0,0,0,.52); }
.modal-card button { float: right; border: 0; background: transparent; color: white; font-size: 28px; cursor: pointer; }

footer {
  justify-content: space-between;
  gap: 18px;
  padding: 28px clamp(16px, 5vw, 64px);
  border-top: 1px solid var(--line);
  background: #050302;
}
footer p { margin: 0; font-size: 13px; }

.sub-hero {
  padding: clamp(58px, 8vw, 96px) clamp(16px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background: radial-gradient(circle at 78% 20%, rgba(184,50,111,.18), transparent 28rem);
}

.sub-hero h1 {
  max-width: 860px;
  margin-bottom: 18px;
}

.sub-hero .lead {
  max-width: 760px;
}

.sub-grid, .info-grid, .schedule-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.content-card, .rule-card, .schedule-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 24px;
  background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  box-shadow: 0 18px 48px rgba(0,0,0,.28);
}

.content-card span, .rule-card span, .schedule-item time {
  color: var(--gold);
  font: 900 12px/1 ui-monospace, Menlo, monospace;
  letter-spacing: 2px;
}

.content-card h3, .rule-card h3, .schedule-item h3 {
  margin: 18px 0 12px;
  font-size: 24px;
}

.content-card p, .rule-card p, .schedule-item p, .sub-section p, .download-list p {
  color: #cebea8;
  line-height: 1.8;
}

.sub-section {
  padding: clamp(58px, 8vw, 96px) clamp(16px, 5vw, 64px);
}

.sub-section.alt {
  border-block: 1px solid var(--line);
  background: rgba(255,255,255,.025);
}

.table-spec {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.table-spec th, .table-spec td {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.table-spec th {
  color: var(--gold);
  font-size: 12px;
  letter-spacing: 1.5px;
}

.table-spec tr:last-child td { border-bottom: 0; }

.download-list {
  display: grid;
  gap: 14px;
  max-width: 940px;
}

.download-row {
  display: grid;
  grid-template-columns: 150px 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
  background: rgba(255,255,255,.04);
}

.download-row strong { color: var(--text); font-size: 22px; }
.download-row p { margin: 0; }

@media (max-width: 920px) {
  .sub-grid, .info-grid, .schedule-grid { grid-template-columns: 1fr; }
  .download-row { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .desktop-nav { display: none; }
  .site-header { grid-template-columns: auto 1fr; }
  .header-actions { justify-content: flex-end; }
  .menu-btn { display: inline-block; }
}

@media (max-width: 920px) {
  .hero { grid-template-columns: 1fr; }
  .hero-panel { aspect-ratio: 1.55 / 1; min-height: 320px; max-height: none; }
  .event-grid, .game-grid, .step-grid, .downloads { grid-template-columns: 1fr; }
  .video-block, .certification { flex-direction: column; align-items: stretch; }
}

@media (max-width: 640px) {
  .system-strip { padding-inline: 14px; }
  .site-header { padding-inline: 14px; }
  .icon-btn, .lang-btn { display: none; }
  .hero { padding-inline: 14px; }
  .hero-panel { aspect-ratio: 1 / .92; min-height: 300px; }
  .panel-label { left: 14px; right: 14px; bottom: 14px; padding: 12px; letter-spacing: 1.5px; }
  .panel-label strong { font-size: clamp(18px, 7vw, 28px); }
  .hero-actions { align-items: stretch; flex-direction: column; }
  .primary, .outline { width: 100%; }
  .hero-stats { display: grid; }
  .hero-stats div { border-right: 0; border-bottom: 1px solid var(--line); }
  .hero-stats div:last-child { border-bottom: 0; }
  section:not(.hero), footer { padding-inline: 14px; }
  footer { align-items: flex-start; flex-direction: column; }
}
