:root {
  --bg: #051226;
  --bg-2: #091f3b;
  --ink: #eaf2ff;
  --muted: #9db0cc;
  --brand: #2f9bff;
  --brand-dark: #1f5fb8;
  --card: rgba(10, 30, 58, 0.82);
  --line: rgba(175, 210, 255, 0.2);
  --radius: 20px;
  --shadow: 0 20px 50px rgba(0, 8, 23, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

body::-webkit-scrollbar {
  display: none;
}

body {
  background:
    radial-gradient(circle at 8% -15%, #1b67c5 0%, transparent 42%),
    radial-gradient(circle at 95% 12%, #11418b 0%, transparent 40%),
    linear-gradient(155deg, var(--bg) 0%, var(--bg-2) 100%);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

.bg-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.05;
  z-index: -3;
  background-image: radial-gradient(#000 0.4px, transparent 0.4px);
  background-size: 3px 3px;
}

.bg-glow {
  position: fixed;
  z-index: -2;
  filter: blur(60px);
  opacity: 0.34;
  pointer-events: none;
}

.bg-glow-1 {
  width: 380px;
  height: 380px;
  background: #2f9bff;
  top: 10%;
  left: -110px;
  animation: drift 16s ease-in-out infinite alternate;
}

.bg-glow-2 {
  width: 420px;
  height: 420px;
  background: #204f9d;
  right: -130px;
  bottom: -40px;
  animation: drift 18s ease-in-out infinite alternate-reverse;
}

@keyframes drift {
  from { transform: translateY(0px); }
  to { transform: translateY(-24px); }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px clamp(16px, 3vw, 44px);
  backdrop-filter: blur(10px);
  background: rgba(5, 18, 38, 0.78);
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0d2749, #1b4d87);
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid rgba(175, 210, 255, 0.35);
}

.brand-mark img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.brand-name {
  font-family: "Chakra Petch", sans-serif;
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.main-nav a {
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}

.main-nav a:hover {
  color: var(--brand-dark);
}

.menu-item {
  transition: opacity 240ms ease, transform 240ms ease;
}

.btn-home {
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
  pointer-events: none;
  background: linear-gradient(135deg, #2b7be7, #5bb5ff);
  color: #fff !important;
}

body.rules-mode .menu-item:not(.menu-rules) {
  opacity: 0;
  transform: translateY(-8px);
  pointer-events: none;
  width: 0;
  overflow: hidden;
}

body.rules-mode .btn-home {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.nav-toggle {
  display: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 25px;
  height: 2px;
  background: var(--ink);
  margin: 5px 0;
}

main {
  width: min(1140px, 94vw);
  margin: 0 auto;
  padding: 34px 0 72px;
}

.hero {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  padding: 22px 0;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--brand-dark);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.78rem;
}

h1,
h2,
h3 {
  margin: 0 0 12px;
  line-height: 1.1;
  font-family: "Chakra Petch", sans-serif;
}

h1 {
  font-size: clamp(2rem, 7vw, 4rem);
}

h2 {
  font-size: clamp(1.45rem, 4vw, 2.4rem);
}

.hero-text {
  max-width: 64ch;
  color: #cbddf7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 18px;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 120ms ease, box-shadow 120ms ease, background-color 120ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(135deg, var(--brand), #2f73ff);
  color: #fff;
  box-shadow: 0 12px 25px rgba(43, 123, 231, 0.4);
}

.btn-ghost {
  border-color: var(--line);
  color: var(--ink);
  background: rgba(17, 44, 78, 0.6);
}

.btn-small {
  padding: 8px 12px;
  border-radius: 999px;
  background: #12345c;
  color: #dcecff !important;
}

.quick-stats {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 26px 0 0;
  padding: 0;
}

.quick-stats li {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(11, 34, 64, 0.65);
  padding: 12px;
}

.quick-stats strong {
  font-size: 1.5rem;
  display: block;
  line-height: 1;
  margin-bottom: 6px;
}

.quick-stats span {
  font-size: 0.9rem;
  color: var(--muted);
}

.hero-card,
.features article,
.faction-grid article,
.steps,
.status {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}

.hero-card {
  padding: 22px;
}

.hero-card ul {
  padding-left: 18px;
  margin: 0;
  display: grid;
  gap: 8px;
}

.features {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.features article {
  padding: 18px;
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.features article::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  opacity: 0.2;
  transform: scale(1.06);
  filter: saturate(0.95) contrast(1.04);
}

.features article::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(160deg, rgba(5, 18, 38, 0.82), rgba(9, 31, 59, 0.9));
}

.features article:nth-child(1)::before {
  background-image: url('pic/20260305.png');
}

.features article:nth-child(2)::before {
  background-image: url('pic/85332d1d.png');
}

.features article:nth-child(3)::before {
  background-image: url('pic/8_04.png');
}

.features article:nth-child(4)::before {
  background-image: url('pic/9_26_10s.png');
}

.shots {
  margin-top: 16px;
}

.shots-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.shot-card {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  overflow: hidden;
  min-height: 180px;
}

.shot-card img {
  width: 100%;
  height: 100%;
  min-height: 180px;
  max-height: 280px;
  object-fit: cover;
  display: block;
  transition: transform 380ms ease;
}

.shot-card:hover img {
  transform: scale(1.04);
}

.section-head {
  margin-top: 44px;
  margin-bottom: 18px;
}

.faction-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.faction-grid article {
  padding: 18px;
}

.steps {
  margin-top: 16px;
  padding: 24px;
}

.steps ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 10px;
}

.status {
  margin-top: 18px;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 24, 46, 0.9);
  padding: 12px 16px;
}

.vip {
  margin-top: 18px;
}

.vip-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.vip-card {
  border: 1px solid rgba(209, 228, 255, 0.26);
  border-radius: 2px;
  background: linear-gradient(145deg, rgba(24, 25, 33, 0.96), rgba(16, 16, 24, 0.96));
  padding: 24px;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}

.vip-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.45), rgba(255, 255, 255, 0));
}

.vip-topline {
  font-weight: 700;
  font-size: 1.05rem;
  color: #f2f5fb;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.vip-topline::after {
  content: '';
  display: block;
  width: 52px;
  height: 2px;
  margin-top: 12px;
  margin-bottom: 18px;
  background: rgba(255, 255, 255, 0.58);
}

.vip-title {
  margin: 0;
  font-family: "Bebas Neue", "Chakra Petch", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 0.92;
  font-size: clamp(2.3rem, 6vw, 3.55rem);
  color: #ffffff;
}

.vip-subtitle {
  margin-top: 10px;
  color: #a9bad8;
  font-size: 0.96rem;
  min-height: 40px;
}

.vip-price {
  display: inline-flex;
  width: fit-content;
  margin-top: 8px;
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(210, 228, 255, 0.35);
  background: rgba(47, 155, 255, 0.12);
  color: #f4f8ff;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}

.vip-feature-title {
  margin-top: auto;
  margin-bottom: 10px;
  font-family: "Bebas Neue", "Chakra Petch", sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 0.98;
  font-size: 2rem;
  color: #ffffff;
}

.vip-perks {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 7px;
  color: #edf3ff;
}

.vip-cta {
  margin-top: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  color: #121826;
  background: #ffffff;
  padding: 10px 18px;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.vip-cta:hover {
  transform: translateY(-2px);
}

.rules {
  display: none;
  margin-top: 24px;
}

.rules-content {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
  padding: 24px;
}

.rules-block {
  max-width: 92ch;
}

.rules-block h3 {
  margin-bottom: 10px;
}

.rules-block p {
  margin: 10px 0;
  color: #d6e5fb;
}

.rules-list {
  margin: 8px 0 14px;
  padding-left: 20px;
  color: #dce9ff;
  display: grid;
  gap: 6px;
}

.rules-divider {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 18px 0;
}

body.rules-mode .hero,
body.rules-mode .features,
body.rules-mode .factions,
body.rules-mode .steps,
body.rules-mode .vip,
body.rules-mode .status {
  animation: hideSections 320ms ease forwards;
  pointer-events: none;
}

body.rules-mode .rules {
  display: block;
  animation: reveal 420ms ease forwards;
}

@keyframes hideSections {
  from {
    opacity: 1;
    transform: translateY(0);
    max-height: 2000px;
    margin-top: 24px;
  }
  to {
    opacity: 0;
    transform: translateY(-10px);
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
  }
}

.dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #28a745;
  box-shadow: 0 0 0 8px rgba(40, 167, 69, 0.15);
}

.status-pill[data-state="degraded"] .dot {
  background: #d97706;
  box-shadow: 0 0 0 8px rgba(217, 119, 6, 0.18);
}

.status-pill[data-state="offline"] .dot {
  background: #dc2626;
  box-shadow: 0 0 0 8px rgba(220, 38, 38, 0.18);
}

.site-footer {
  border-top: 1px solid var(--line);
  padding: 20px clamp(16px, 3vw, 44px) 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.site-footer a {
  color: var(--ink);
  text-decoration: none;
  margin-left: 14px;
}

.reveal {
  opacity: 0;
  transform: translateY(16px);
  animation: reveal 700ms ease forwards;
}

.reveal:nth-child(2) { animation-delay: 120ms; }
.reveal:nth-child(3) { animation-delay: 190ms; }
.reveal:nth-child(4) { animation-delay: 260ms; }
.reveal:nth-child(5) { animation-delay: 320ms; }

@keyframes reveal {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 980px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .faction-grid {
    grid-template-columns: 1fr;
  }

  .quick-stats {
    grid-template-columns: 1fr;
  }

  .vip-grid {
    grid-template-columns: 1fr;
  }

  .shots-grid {
    grid-template-columns: 1fr 1fr;
  }

  .rules-content {
    padding: 18px;
  }
}

@media (max-width: 760px) {
  .nav-toggle {
    display: block;
  }

  .main-nav {
    position: absolute;
    right: 12px;
    top: 66px;
    width: min(92vw, 300px);
    background: rgba(5, 18, 38, 0.96);
    border: 1px solid var(--line);
    border-radius: 14px;
    box-shadow: var(--shadow);
    padding: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .main-nav.open {
    display: flex;
  }

  body.rules-mode .menu-item:not(.menu-rules) {
    display: none;
  }

  body.rules-mode .btn-home {
    display: inline-flex;
    width: 100%;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .shots-grid {
    grid-template-columns: 1fr;
  }

  .status {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  .shot-card img,
  .bg-glow-1,
  .bg-glow-2 {
    animation: none !important;
    transition: none !important;
  }
}
