:root {
  --bg: #080d1c;
  --bg-2: #0d1430;
  --card: #121a3a;
  --card-2: #18224a;
  --line: rgba(160, 190, 255, 0.12);
  --text: #eaf0ff;
  --muted: #9ba8cf;
  --blue: #5ad1ff;
  --blue-2: #2f6bff;
  --green: #84e02c;
  --green-2: #4fae16;
  --gold: #ffc53d;
  --purple: #b06cff;
  --red: #ff5d6c;
  --radius: 16px;
  --max: 1160px;
  --head: "Lilita One", "Trebuchet MS", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  /* night-sky glow + faint block grid */
  content: "";
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 520px at 78% -8%, rgba(47, 107, 255, 0.28), transparent 70%),
    radial-gradient(700px 480px at 8% 18%, rgba(132, 224, 44, 0.10), transparent 70%),
    radial-gradient(800px 600px at 50% 110%, rgba(176, 108, 255, 0.12), transparent 70%),
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 48px 48px,
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px) 0 0 / 48px 48px,
    var(--bg);
}
img { max-width: 100%; display: block; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { font-family: var(--head); font-weight: 400; letter-spacing: 0.01em; line-height: 1.1; margin: 0 0 0.5em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(8, 13, 28, 0.78);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-family: var(--head); font-size: 24px; }
.brand:hover { text-decoration: none; }
.brand img { width: 38px; height: 38px; border-radius: 10px; }
.brand .mc { color: var(--green); }
.nav { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav a { color: var(--muted); font-weight: 600; font-size: 15px; padding: 8px 12px; border-radius: 10px; }
.nav a:hover, .nav a.active { color: var(--text); background: rgba(255,255,255,0.06); text-decoration: none; }
.nav .btn { margin-left: 6px; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; width: 42px; height: 42px; font-size: 20px; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--body); font-weight: 700; font-size: 15px;
  padding: 12px 20px; border-radius: 12px; border: 0; cursor: pointer;
  color: #fff; transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-discord { background: #5865f2; box-shadow: 0 6px 20px rgba(88, 101, 242, 0.35); }
.btn-store { background: linear-gradient(180deg, var(--green), var(--green-2)); color: #10230a; box-shadow: 0 6px 20px rgba(132, 224, 44, 0.3); }
.btn-ghost { background: rgba(255,255,255,0.06); border: 1px solid var(--line); color: var(--text); }
.btn-small { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn.is-soon { opacity: 0.55; cursor: default; transform: none; box-shadow: none; }

/* ---------- hero ---------- */
.hero { padding: 72px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--green); background: rgba(132, 224, 44, 0.1); border: 1px solid rgba(132, 224, 44, 0.3);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 18px;
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.hero h1 { font-size: clamp(42px, 6.4vw, 76px); }
.hero h1 .accent { background: linear-gradient(90deg, var(--blue), var(--blue-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero h1 .accent-green { color: var(--green); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 540px; margin-bottom: 28px; }

.ip-box {
  display: flex; align-items: stretch; max-width: 520px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-bottom: 14px;
}
.ip-box .ip-main { flex: 1; padding: 14px 18px; min-width: 0; }
.ip-box .ip-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.ip-box .ip { display: block; font-family: var(--head); font-size: 26px; color: var(--text); overflow-wrap: anywhere; }
.copy-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-width: 120px; padding: 0 18px; border: 0; cursor: pointer;
  background: linear-gradient(180deg, var(--blue), var(--blue-2)); color: #fff;
  font-family: var(--body); font-weight: 800; font-size: 15px;
}
.copy-btn .copy-hint { font-size: 12px; font-weight: 600; opacity: 0.85; }
.copy-btn.copied { background: linear-gradient(180deg, var(--green), var(--green-2)); color: #10230a; }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--muted); margin-bottom: 28px;
}
.status-pill .pulse { width: 10px; height: 10px; border-radius: 50%; background: #6b7699; }
.status-pill.is-online { color: var(--text); }
.status-pill.is-online .pulse { background: var(--green); box-shadow: 0 0 0 0 rgba(132,224,44,0.6); animation: pulse 2s infinite; }
.status-pill.is-offline .pulse { background: var(--red); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(132,224,44,0.55); } 70% { box-shadow: 0 0 0 10px rgba(132,224,44,0); } 100% { box-shadow: 0 0 0 0 rgba(132,224,44,0); } }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-art { position: relative; }
.hero-art::before {
  content: ""; position: absolute; inset: 8% 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(90, 209, 255, 0.45), rgba(47, 107, 255, 0.15) 50%, transparent 70%);
  filter: blur(30px);
}
.hero-art img {
  position: relative; width: 100%; max-width: 480px; height: auto; aspect-ratio: 1 / 1; margin: 0 auto;
  border-radius: 28px; border: 1px solid var(--line);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- sections ---------- */
section { padding: 56px 0; }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 36px; }
.section-head h2 { font-size: clamp(32px, 4vw, 46px); }
.section-head p { color: var(--muted); font-size: 17px; }
.eyebrow { display: block; font-size: 13px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase; color: var(--blue); margin-bottom: 10px; }

.grid { display: grid; gap: 18px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: linear-gradient(180deg, var(--card), var(--bg-2));
  border: 1px solid var(--line); border-radius: var(--radius); padding: 24px;
}
.card h3 { font-size: 24px; margin-bottom: 8px; }
.card p { color: var(--muted); margin: 0; }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  font-size: 22px; margin-bottom: 16px; background: rgba(90, 209, 255, 0.12); border: 1px solid rgba(90, 209, 255, 0.25);
}
.card code, .inline-code {
  font-family: "Consolas", "SFMono-Regular", monospace; font-size: 14px;
  background: rgba(255,255,255,0.06); border: 1px solid var(--line); border-radius: 8px; padding: 2px 8px; color: var(--text);
}
.join-card .join-addr { margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.join-card .tag { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold); }

/* game modes */
.mode {
  position: relative; overflow: hidden; min-height: 260px;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.mode.live { border-color: rgba(132, 224, 44, 0.45); grid-column: span 2; }
.mode.live::before {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(10,16,36,0.97) 0%, rgba(10,16,36,0.9) 45%, rgba(10,16,36,0.25) 100%),
    url("img/logo.jpg") right -40px center / 62% auto no-repeat,
    var(--card);
}
.mode > * { position: relative; }
.mode.live p { max-width: 58%; color: #c3cdee; }
.mode .badge {
  align-self: flex-start; font-size: 12px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 5px 10px; border-radius: 999px; margin-bottom: auto;
}
.mode.live .badge { color: #10230a; background: var(--green); }
.mode.soon .badge { color: var(--muted); background: rgba(255,255,255,0.06); border: 1px solid var(--line); }
.mode.soon { align-items: flex-start; }
.mode.soon h3 { color: var(--muted); }
.mode h3 { font-size: 34px; margin-top: 24px; }
.mode .mode-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }

/* features */
.feature { display: flex; gap: 16px; align-items: flex-start; }
.feature .icon { flex: none; margin: 0; }
.feature h3 { font-size: 21px; margin-bottom: 4px; }
.feature p { font-size: 15px; }

/* CTA band */
.cta {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  background: linear-gradient(120deg, rgba(47, 107, 255, 0.35), rgba(176, 108, 255, 0.22));
  border: 1px solid rgba(90, 209, 255, 0.3); border-radius: 22px; padding: 36px;
}
.cta h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 6px; }
.cta p { margin: 0; color: #c9d4f5; }
.cta .hero-actions { justify-content: flex-end; }

/* ---------- inner pages ---------- */
.page-hero { padding: 64px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(40px, 6vw, 64px); }
.page-hero p { color: var(--muted); font-size: 18px; max-width: 620px; margin: 0 auto; }
.narrow { max-width: 820px; }

.rules { counter-reset: rule; display: grid; gap: 14px; }
.rule { display: grid; grid-template-columns: 56px 1fr; gap: 18px; align-items: start; }
.rule::before {
  counter-increment: rule; content: counter(rule);
  font-family: var(--head); font-size: 26px; color: var(--blue);
  width: 56px; height: 56px; border-radius: 14px; display: grid; place-items: center;
  background: rgba(90, 209, 255, 0.1); border: 1px solid rgba(90, 209, 255, 0.25);
}
.rule h3 { font-size: 22px; margin: 4px 0 4px; }
.rule p { color: var(--muted); margin: 0; }
.note { color: var(--muted); font-size: 15px; text-align: center; margin-top: 28px; }

.vote-list { display: grid; gap: 12px; }
.vote-card {
  display: grid; grid-template-columns: 48px 1fr auto; gap: 16px; align-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; color: var(--text);
  transition: border-color .15s ease, transform .15s ease;
}
.vote-card:hover { text-decoration: none; border-color: rgba(90, 209, 255, 0.5); transform: translateY(-1px); }
.vote-num { font-family: var(--head); font-size: 22px; color: var(--gold); text-align: center; }
.vote-name { font-weight: 700; font-size: 17px; }
.vote-go { font-weight: 700; color: var(--blue); }
.empty-card {
  display: flex; flex-direction: column; gap: 6px; text-align: center; align-items: center;
  background: var(--card); border: 1px dashed rgba(160, 190, 255, 0.3); border-radius: var(--radius); padding: 36px 24px; color: var(--muted);
}
.empty-card strong { color: var(--text); font-size: 18px; }
.steps { display: grid; gap: 12px; margin-top: 36px; }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 36px 0 44px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; grid-template-columns: 1fr auto; gap: 18px 32px; align-items: center; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: flex-end; }
.footer-links a { color: var(--muted); font-weight: 600; }
.footer-links a:hover { color: var(--text); }
.disclaimer { grid-column: 1 / -1; font-size: 13px; opacity: 0.8; margin: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .hero .wrap { grid-template-columns: 1fr; gap: 36px; }
  .hero-art { order: -1; }
  .hero-art img { max-width: 320px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: 1fr; }
  .mode.live { grid-column: auto; }
  .mode.live p { max-width: none; }
  .mode.live::before { background: linear-gradient(180deg, rgba(10,16,36,0.55), rgba(10,16,36,0.96) 60%), url("img/logo.jpg") center top / cover no-repeat; }
  .cta { grid-template-columns: 1fr; }
  .cta .hero-actions { justify-content: flex-start; }
}
@media (max-width: 760px) {
  .nav-toggle { display: grid; place-items: center; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 12px 16px 18px;
    background: rgba(8, 13, 28, 0.97); border-bottom: 1px solid var(--line);
  }
  .nav-open .nav { display: flex; }
  .nav .btn { margin: 6px 0 0; }
  .wrap { padding: 0 16px; }
  .hero { padding: 40px 0 32px; }
  .hero .lead { font-size: 17px; }
  .grid-4 { grid-template-columns: 1fr; }
  .ip-box { flex-direction: column; }
  .copy-btn { flex-direction: row; gap: 10px; padding: 12px; min-width: 0; }
  .site-footer .wrap { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .cta { padding: 26px 20px; }
  .rule { grid-template-columns: 44px 1fr; gap: 14px; }
  .rule::before { width: 44px; height: 44px; font-size: 21px; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-art img, .status-pill.is-online .pulse { animation: none; }
  html { scroll-behavior: auto; }
}
