/* Colors from the 789CLUB logo: neon purple, magenta, and cyan. */
:root {
  --red: #8b3dff;
  --red-2: #c026d3;
  --hover: #6a22c9;
  --gold: #7ef6ff;
  --gold-2: #d7b8ff;
  --header: #0a0721;
  --ink: #f4f0ff;
  --muted: #c8b8e4;
  --line: rgba(155, 90, 255, 0.38);
  --card: rgba(16, 8, 40, 0.9);
  --sans: "Be Vietnam Pro", "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: #0a0721; }
body {
  margin: 0;
  color: var(--ink);
  background: #0a0721 url("/assets/img/bg.webp") center top / cover fixed;
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.75;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold-2); text-underline-offset: 3px; }
a:hover { color: var(--gold); }
.skip {
  position: absolute;
  left: 12px;
  top: 8px;
  padding: 8px 12px;
  background: #fff;
  color: #120000;
  z-index: 40;
  transform: translateY(-160%);
}
.skip:focus { transform: none; }

.wrap { width: min(1180px, calc(100% - 32px)); margin: 0 auto; }

.site-header {
  position: sticky; top: 0; z-index: 20;
  background: var(--header);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.site-header .wrap { display: flex; align-items: center; gap: 16px; min-height: 78px; }
.brand { display: flex; align-items: center; text-decoration: none; }
.brand img {
  height: 62px; width: auto; border-radius: 10px;
  box-shadow: 0 0 18px rgba(126, 246, 255, 0.35);
}
.nav { display: flex; gap: 4px; align-items: center; flex: 1; flex-wrap: nowrap; justify-content: center; }
.nav a:not(.btn) {
  color: #fff; text-decoration: none; font-size: 15px; font-weight: 650;
  padding: 8px 10px; border-radius: 6px; order: 1; white-space: nowrap; flex-shrink: 0;
}
.menu-group { position: relative; order: 1; flex-shrink: 0; }
.menu-group > a { display: inline-flex; align-items: center; gap: 6px; }
.menu-group > a::after {
  content: "";
  border: 4px solid transparent;
  border-top-color: currentColor;
  margin-top: 3px;
}
.menu-panel {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 168px;
  padding: 8px;
  background: #16082e;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.35);
  z-index: 30;
}
.menu-group:hover .menu-panel,
.menu-group:focus-within .menu-panel { display: flex; flex-direction: column; }
.menu-panel a { display: block; }
.menu-group.here > a { color: #7ef6ff; }
.nav a:not(.btn):hover, .nav a[aria-current="page"] { color: #7ef6ff; background: rgba(139, 61, 255, 0.2); }
.nav .btn { order: 2; flex-shrink: 0; }
.nav .btn-solid { margin-left: auto; }
.nav-toggle {
  display: none; margin-left: 8px;
  width: 42px; height: 42px; padding: 0; gap: 5px;
  flex-direction: column; justify-content: center; align-items: center;
  background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,.25); border-radius: 6px;
}
.nav-toggle span { display: block; width: 18px; height: 2px; background: #fff; border-radius: 1px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-decoration: none; border-radius: 6px; padding: 10px 16px; font-weight: 800;
}
.btn-solid, .btn-gold { background: var(--red); color: #fff; }
.btn-solid:hover, .btn-gold:hover { background: var(--hover); color: #fff; }
.btn-ghost, .btn-line { border: 1px solid #fff; color: #fff; background: transparent; }
.btn-ghost:hover, .btn-line:hover { background: #fff; color: var(--header); }

.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 36px;
  align-items: center; padding: 36px 0 12px;
}
.kicker {
  color: var(--gold); letter-spacing: 0.14em; text-transform: uppercase;
  font-size: 12px; font-weight: 800; margin: 0 0 10px;
}
h1 {
  font-weight: 800; font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18; margin: 0 0 14px; color: #fff;
}
.lead { font-size: 18px; color: #efe7ff; }
.lead a { color: #7ef6ff; font-weight: 700; }
.hero-figure { margin: 0; }
.hero-figure img, .frame img {
  width: 100%; border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}
.hero-figure figcaption, .frame figcaption {
  color: var(--muted); font-size: 13px; font-style: italic; text-align: center; margin-top: 8px;
}
.actions { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 8px; }

.layout { display: grid; grid-template-columns: 300px 1fr; gap: 28px; padding: 18px 0 64px; }
.toc {
  position: sticky; top: 96px; align-self: start;
  background: #140a28; border: 1px solid rgba(126, 246, 255, 0.28);
  border-radius: 18px; padding: 18px 18px 8px;
  counter-reset: toc;
}
.toc p {
  margin: 0 0 6px; padding-bottom: 12px;
  font-size: 13px; letter-spacing: 0.14em; text-transform: uppercase;
  color: #fff; font-weight: 800;
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}
.toc a {
  display: grid; grid-template-columns: 34px 1fr; gap: 8px; align-items: baseline;
  counter-increment: toc;
  color: #f3ecff; text-decoration: none;
  font-size: 15px; font-weight: 600; line-height: 1.4;
  margin: 0; padding: 11px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}
.toc a::before {
  content: counter(toc, decimal-leading-zero);
  color: #7ef6ff; font-weight: 800; font-size: 15px;
}
.toc a:last-child { border-bottom: 0; }
.toc a:hover { color: #7ef6ff; }

.article {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 28px 32px 40px;
}
.crumbs { font-size: 13px; color: var(--muted); margin: 0 0 8px; }
.crumbs a { color: var(--gold-2); }
h2 { font-size: 28px; line-height: 1.25; font-weight: 800; margin: 32px 0 10px; color: #fff; }
h3 { font-size: 20px; margin: 22px 0 8px; color: #c5ffff; }
.article table { width: 100%; border-collapse: collapse; margin: 16px 0 8px; font-size: 15px; }
.article th, .article td { border: 1px solid var(--line); text-align: left; padding: 10px 8px; vertical-align: top; }
.article th { background: #241046; color: #c5ffff; font-weight: 700; }
.article td { background: rgba(255, 255, 255, 0.03); }
.frame { margin: 18px 0; }
blockquote {
  margin: 18px 0; padding: 12px 16px; border-left: 3px solid var(--red);
  background: rgba(139, 61, 255, 0.12); color: #fff;
}
.faq details { border-top: 1px solid var(--line); padding: 10px 0; }
.faq summary { cursor: pointer; font-weight: 700; color: #fff; }
.related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 12px; }
.related a {
  display: block; text-decoration: none; color: var(--ink);
  background: rgba(255, 255, 255, 0.04); border-radius: 12px; padding: 14px; border: 1px solid var(--line);
}
.related a:hover { border-color: var(--gold); }
.card-list { display: grid; gap: 12px; }
.card-list a { text-decoration: none; color: inherit; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.note { font-size: 14px; color: var(--muted); }

.site-footer { background: #12082a; color: #fff; padding: 36px 0 18px; border-top: 1px solid rgba(126,246,255,.25); }
.foot-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.15fr; gap: 28px; align-items: start; }
.foot-brand img { height: 92px; width: auto; margin-bottom: 14px; }
.foot-about p { margin: 0; font-size: 15px; line-height: 1.65; }
.foot-about p a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { color: #7ef6ff; }
.site-footer a.gold,
.site-footer .highlight-brand,
.site-footer .highlight-brand a { color: #7ef6ff; font-weight: 700; }
.foot-label {
  color: #fff; font-size: 15px; margin: 8px 0 12px; letter-spacing: 0.04em;
  text-transform: uppercase; font-weight: 800;
  border-bottom: 1px solid rgba(255,255,255,.55); padding-bottom: 8px;
}
.site-footer ul { margin: 0; padding: 0; }
.foot-links { list-style: none; }
.foot-links a::before { content: "> "; }
.foot-links li { margin: 8px 0; }
.foot-contact { list-style: disc; padding-left: 18px; }
.foot-contact li { margin: 8px 0; }
.foot-keywords { margin: 22px 0 0; font-size: 16px; line-height: 1.7; color: #fff; }
.foot-keywords a { color: #7ef6ff; text-decoration: underline; text-underline-offset: 3px; }
.legal { margin: 22px 0 0; font-size: 13px; color: rgba(255,255,255,.85); text-align: center; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }

.cert-row {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 14px 26px; margin: 0 0 26px; padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.2);
}
.cert-row img { display: block; height: 40px; width: auto; max-width: 170px; object-fit: contain; }
.cert-row .cert-18 { height: 46px; max-width: 46px; }
.cert-ncsc, .cert-bct { display: block; height: auto; margin-top: 16px; }
.cert-ncsc { width: 200px; }
.cert-bct { width: 210px; }

@media (max-width: 900px) {
  .hero, .stage-grid, .layout, .foot-grid, .related { grid-template-columns: 1fr; }
  .hero { padding: 16px 0 8px; }
  .hero h1 { font-size: 26px; line-height: 1.2; margin-bottom: 10px; }
  .hero .lead { font-size: 15px; line-height: 1.55; }
  .hero .actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero .actions .btn { width: 100%; padding: 12px 8px; font-size: 15px; }
  .toc { display: none; }
  .brand img { height: 48px; }
  .site-header .wrap { min-height: 64px; gap: 8px; }
  .nav-toggle { display: inline-flex; margin-left: auto; }
  .nav .btn-solid { margin-left: 0; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    background: #16082e; padding: 12px 18px 18px; flex-direction: column; align-items: stretch;
    justify-content: flex-start;
  }
  .nav.open { display: flex; }
  .nav .btn { order: 0; width: 100%; margin: 4px 0 8px; }
  .menu-group { width: 100%; }
  .menu-group > a::after { display: none; }
  .menu-panel {
    display: flex;
    position: static;
    min-width: 0;
    padding: 0 0 8px 10px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .article { padding: 20px 16px 28px; }
  body { background-attachment: scroll; }
}

.nav a:not(.btn) { text-transform: uppercase; letter-spacing: 0.03em; font-size: 13px; }
.btn-play {
  background: linear-gradient(90deg, #7a2bff, #d946ef);
  color: #fff; border: 0; min-width: 220px; border-radius: 999px;
  box-shadow: 0 0 22px rgba(139, 61, 255, 0.45);
}
.btn-play:hover { color: #fff; filter: brightness(1.08); }
.halls { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.halls a {
  text-decoration: none; color: #c5ffff; font-weight: 700; font-size: 14px;
  border: 1px solid rgba(126, 246, 255, 0.45); border-radius: 999px;
  padding: 8px 12px; background: rgba(10, 7, 33, 0.55);
}
.halls a:hover { background: rgba(139, 61, 255, 0.35); color: #fff; }
.quick-mobile { display: none; }
.dock { display: none; }
@media (max-width: 900px) {
  .desk-only { display: none; }
  .quick-desk { display: none; }
  .quick-mobile { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
  .gate, .rail { display: none; }
  .btn-web { width: 100%; min-width: 0; }
  .btn-store, .btn-apk {
    border-radius: 12px; padding: 12px 8px; font-size: 14px; color: #fff; text-align: center;
  }
  .btn-store { background: linear-gradient(180deg, #3a2a78, #241446); border: 1px solid #7ef6ff; }
  .btn-apk { background: linear-gradient(180deg, #8b3dff, #5b1db8); border: 1px solid #d7b8ff; }
  .dock {
    display: grid; grid-template-columns: 1fr 1fr; position: fixed; left: 0; right: 0; bottom: 0;
    z-index: 40; background: #12082a; border-top: 1px solid rgba(126,246,255,.35);
  }
  .dock a {
    text-align: center; text-decoration: none; color: #fff; font-weight: 800;
    padding: 14px 8px 16px; text-transform: uppercase; letter-spacing: 0.04em;
  }
  .dock a:first-child { background: #241446; color: #7ef6ff; }
  .dock a:last-child { background: linear-gradient(90deg, #7a2bff, #d946ef); }
  .nav { background: #12082a; }
}

.stage { padding: 28px 0 8px; }
.stage h1 {
  text-align: center; font-weight: 700;
  font-size: clamp(22px, 3vw, 34px); margin: 0 0 22px;
}
.stage-grid {
  display: grid; grid-template-columns: 248px minmax(0, 1fr) 230px;
  gap: 22px; align-items: center;
}
.gate {
  position: relative; border: 1px solid rgba(126, 246, 255, 0.35);
  border-radius: 18px; padding: 22px 16px 16px;
  background: rgba(12, 6, 36, 0.72);
}
.gate-kicker {
  position: absolute; top: -12px; left: 16px; margin: 0;
  background: linear-gradient(90deg, #7a2bff, #d946ef); color: #fff;
  font-size: 12px; font-weight: 800; letter-spacing: 0.04em;
  text-transform: uppercase; padding: 4px 10px; border-radius: 8px;
}
.gate-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin: 14px 0; flex-wrap: nowrap; }
.gate-row span { white-space: nowrap; }
.gate-row span { color: #c8b8e4; }
.gate-row a, .gate-row strong { color: #7ef6ff; font-weight: 800; text-decoration: none; }
.gate-note { font-size: 13px; color: #d7b8ff; margin: 8px 0 0; line-height: 1.45; }
.stage-main { text-align: center; }
.btn-web {
  margin-top: 16px; min-width: min(420px, 100%);
  padding: 14px 28px; font-size: 18px; letter-spacing: 0.04em; text-transform: uppercase;
}
.rail { display: flex; flex-direction: column; gap: 10px; }
.rail-tile {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  min-height: 120px; border-radius: 16px; text-decoration: none; color: #fff;
  background: radial-gradient(circle at 30% 20%, #3a1d78, #12082a 70%);
  border: 1px solid rgba(126, 246, 255, 0.4);
  box-shadow: 0 0 18px rgba(139, 61, 255, 0.35);
}
.rail-tile strong { font-size: 28px; letter-spacing: 0.06em; }
.rail-tile span { color: #7ef6ff; font-size: 14px; }
.rail-btn {
  display: flex; align-items: center; justify-content: center;
  text-decoration: none; color: #fff; font-weight: 800;
  border-radius: 999px; padding: 10px 14px;
  background: linear-gradient(90deg, #5b2bff, #7a3dff);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.rail-btn:hover { color: #fff; filter: brightness(1.08); }
.access-line { text-align: center; margin: 18px 0 0; color: #d7b8ff; font-size: 15px; }
.access-line a { color: #7ef6ff; }

/* stage mobile */
@media (max-width: 900px) {
  .stage-grid { grid-template-columns: 1fr; }
  .gate, .rail { display: none; }
}

.gate-kicker { background: none; padding: 0; top: -18px; }
.gate-kicker img { display: block; height: 34px; width: auto; }
.gate-row img { height: 32px; width: auto; }
.rail-tile {
  min-height: 0; padding: 0; background: transparent; border: 0; box-shadow: none;
}
.rail-tile img { width: 100%; height: auto; border-radius: 16px; }

.head-auth { display: flex; align-items: center; gap: 8px; margin-left: 12px; }
.head-auth .btn { min-width: 0; padding: 8px 14px; font-size: 14px; border-radius: 999px; white-space: nowrap; }
.head-auth .btn-play { min-width: 0; box-shadow: none; }
@media (max-width: 900px) {
  .head-auth { margin-left: auto; gap: 6px; }
  .head-auth .btn { padding: 7px 10px; font-size: 12px; }
  body.is-inner .nav-toggle { margin-left: 8px; }
}

@media (max-width: 900px) {
  .nav.open {
    max-height: calc(100dvh - 72px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 8px 12px 20px;
    gap: 2px;
  }
  .nav.open > a:not(.btn),
  .nav.open .menu-group > a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 12px 14px;
    white-space: normal;
    flex-shrink: 1;
    box-sizing: border-box;
  }
  .nav.open .menu-group { width: 100%; }
  .nav.open .menu-group > a::after { display: none; }
  .nav.open .menu-panel {
    display: flex;
    flex-direction: column;
    position: static;
    width: 100%;
    min-width: 0;
    margin: 0 0 6px;
    padding: 0 0 4px 10px;
    gap: 4px;
    background: transparent;
    border: 0;
    box-shadow: none;
  }
  .nav.open .menu-panel a {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 10px 12px;
    white-space: normal;
    flex-shrink: 1;
    color: #efe7ff;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    box-sizing: border-box;
  }
}

@media (max-width: 900px) {
  .cert-row { gap: 12px 16px; }
  .cert-row img { height: 32px; max-width: 42vw; }
  .cert-row .cert-18 { height: 40px; max-width: 40px; }
  .cert-ncsc, .cert-bct { width: min(220px, 100%); }
}

.news-archive { display: grid; gap: 12px; margin: 8px 0 28px; }
.news-archive a {
  display: block; text-decoration: none; color: #fff;
  background: rgba(255,255,255,.04); border: 1px solid rgba(126,246,255,.25);
  border-radius: 12px; padding: 14px 16px;
}
.news-archive a:hover { border-color: #7ef6ff; }
.news-archive time { display: block; color: #7ef6ff; font-size: 13px; margin-bottom: 4px; }
.news-archive strong { display: block; color: #c5ffff; font-size: 18px; line-height: 1.35; margin-bottom: 6px; }
.news-archive span { display: block; color: #efe8ff; font-size: 15px; line-height: 1.55; }
