@font-face {
  font-family: "Bungee";
  src: url("../fonts/Bungee-Regular.ttf") format("truetype");
  font-display: swap;
}
@font-face {
  font-family: "Russo One";
  src: url("../fonts/RussoOne-Regular.ttf") format("truetype");
  font-display: swap;
}

:root {
  --bg: #0d0820;
  --bg-2: #140b2b;
  --panel: #1b1036;
  --panel-2: #24164a;
  --line: rgba(190, 160, 255, 0.14);
  --text: #f1ecff;
  --muted: #b3a8d6;
  --accent: #9146ff;
  --accent-2: #ff3cac;
  --ok: #5af078;
  --warn: #ffaa28;
  --radius: 16px;
  --display: "Bungee", "Russo One", system-ui, sans-serif;
  --head: "Russo One", system-ui, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--body);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
code { font-family: var(--mono); }
.px { image-rendering: pixelated; }
.wrap { width: min(1160px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 40px); }

.skip {
  position: absolute; left: -999px; top: 8px; z-index: 100;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 8px;
}
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--accent-2); outline-offset: 3px; border-radius: 6px; }

/* Nav */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(13, 8, 32, 0.72);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: var(--display); font-size: 20px; letter-spacing: 0.5px; }
.brand img { border-radius: 8px; }
.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a { text-decoration: none; color: var(--muted); font-weight: 600; font-size: 15px; transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-actions { display: flex; align-items: center; gap: 10px; }
.lang {
  background: transparent; color: var(--muted); border: 1px solid var(--line);
  border-radius: 999px; padding: 6px 12px; font: 700 13px var(--body); cursor: pointer;
}
.lang:hover { color: var(--text); border-color: var(--accent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 12px; font: 700 15px var(--body);
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 60, 172, .6); }
.btn-ghost { border-color: var(--line); background: rgba(255,255,255,.03); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-small { padding: 7px 14px; font-size: 13px; border-radius: 999px; }
.btn-discord { background: #5865f2; color: #fff; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding: 96px 0 72px;
  background:
    radial-gradient(800px 420px at 50% -10%, rgba(145, 70, 255, .45), transparent 70%),
    radial-gradient(600px 300px at 85% 30%, rgba(255, 60, 172, .18), transparent 70%),
    linear-gradient(var(--bg-2), var(--bg));
  border-bottom: 1px solid var(--line);
}
.hero-inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; }
.sparkles { position: absolute; inset: 0; pointer-events: none; }
.sparkles i {
  position: absolute; width: 20px; height: 24px;
  background: url("../img/spark.png") center / contain no-repeat;
  image-rendering: pixelated; opacity: .0;
  animation: twinkle 4s ease-in-out infinite;
}
@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.6); } 50% { opacity: .9; transform: scale(1); } }

.status {
  display: inline-flex; align-items: center; gap: 10px; margin: 0 0 22px;
  padding: 7px 14px; border-radius: 999px; font-size: 14px; font-weight: 600;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted);
}
.status .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); }
.status.online .dot { background: var(--ok); box-shadow: 0 0 0 0 rgba(90,240,120,.6); animation: pulse 2s infinite; }
.status.online { color: var(--text); }
.status.offline .dot { background: var(--warn); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(90,240,120,.6); } 70% { box-shadow: 0 0 0 10px rgba(90,240,120,0); } 100% { box-shadow: 0 0 0 0 rgba(90,240,120,0); } }

.logo {
  margin: 0; font-family: var(--display); font-weight: 400;
  font-size: clamp(64px, 13vw, 148px); line-height: .95; letter-spacing: 2px;
  color: #fff;
  text-shadow: 0 6px 0 #3a1d78, 0 12px 40px rgba(145, 70, 255, .55);
}
.logo span { background: linear-gradient(180deg, #ffd1f0, var(--accent-2)); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: none; filter: drop-shadow(0 6px 0 #6b1450); }
.tagline { max-width: 620px; margin: 22px auto 30px; font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); }

.ip-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ip-label { font-size: 12px; text-transform: uppercase; letter-spacing: 2px; color: var(--muted); font-weight: 700; }
.ip {
  display: inline-flex; align-items: center; gap: 16px;
  padding: 10px 10px 10px 22px; border-radius: 14px; cursor: pointer;
  background: var(--panel); border: 1px solid rgba(145,70,255,.5); color: var(--text);
  box-shadow: 0 0 0 4px rgba(145,70,255,.12), 0 20px 40px -20px rgba(0,0,0,.6);
  transition: border-color .15s, transform .15s;
}
.ip:hover { border-color: var(--accent-2); transform: translateY(-1px); }
.ip-value { font: 400 24px var(--display); letter-spacing: 1px; }
.ip-action { font: 700 13px var(--body); background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 10px; }
.ip.copied .ip-action { background: var(--ok); color: #0d2a14; }
.ip-lg .ip-value { font-size: 30px; }

.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 28px; }

.facts {
  list-style: none; padding: 0; margin: 56px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  width: 100%; max-width: 880px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
.facts li { background: rgba(20, 11, 43, .85); padding: 18px 12px; display: flex; flex-direction: column; gap: 2px; }
.facts strong { font: 400 22px var(--head); }
.facts span { color: var(--muted); font-size: 14px; }

/* Sections */
.section { padding: 88px 0; }
.section-alt { background: var(--bg-2); border-block: 1px solid var(--line); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 40px; }
.section-head h2 { margin: 0 0 10px; font: 400 clamp(30px, 4.5vw, 44px) var(--display); letter-spacing: .5px; }
.section-head p { margin: 0; color: var(--muted); font-size: 17px; }

/* Games */
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.filter {
  --c: var(--accent);
  padding: 9px 16px; border-radius: 999px; cursor: pointer;
  background: rgba(255,255,255,.03); border: 1px solid var(--line); color: var(--muted);
  font: 700 14px var(--body); transition: all .15s;
}
.filter:hover { color: var(--text); border-color: var(--c); }
.filter[aria-selected="true"] { color: #fff; background: color-mix(in srgb, var(--c) 28%, transparent); border-color: var(--c); }
.cat-desc { text-align: center; color: var(--muted); min-height: 1.6em; margin: 16px 0 28px; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.card {
  --c: var(--accent);
  position: relative; display: flex; flex-direction: column; gap: 10px;
  padding: 20px; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c) 14%, var(--panel)) 0%, var(--panel) 55%);
  border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  transition: transform .18s, border-color .18s, box-shadow .18s;
  animation: rise .35s ease both;
}
.card:hover { transform: translateY(-4px); border-color: var(--c); box-shadow: 0 18px 40px -22px var(--c); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.card-top { display: flex; align-items: center; gap: 14px; }
.card-icon {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center;
  border-radius: 14px; background: color-mix(in srgb, var(--c) 18%, #0d0820);
  border: 1px solid color-mix(in srgb, var(--c) 35%, transparent);
}
.card-icon img { width: 34px; height: auto; image-rendering: pixelated; }
.card h3 { margin: 0; font: 400 20px var(--head); }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.card-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.tag {
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  background: rgba(255,255,255,.05); border: 1px solid var(--line); color: var(--muted);
}
.tag code { color: color-mix(in srgb, var(--c) 70%, #fff); }

/* Join */
.join { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.join-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; }
.join-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.badge { font: 400 15px var(--head); padding: 6px 12px; border-radius: 10px; background: rgba(145,70,255,.2); border: 1px solid rgba(145,70,255,.5); }
.badge-alt { background: rgba(90,240,120,.12); border-color: rgba(90,240,120,.45); }
.join-sub { color: var(--muted); font-size: 14px; }
.join-card ol { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.join-card li::marker { color: var(--accent-2); font-weight: 800; }
.chip-copy {
  background: var(--panel-2); border: 1px solid var(--line); color: var(--text);
  border-radius: 8px; padding: 3px 10px; cursor: pointer; font-size: 15px;
}
.chip-copy:hover { border-color: var(--accent); }
.chip-copy::after { content: "⧉"; margin-left: 8px; color: var(--muted); }
code.plain { background: var(--panel-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 10px; }
.note { margin: 18px 0 0; font-size: 14px; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 14px; }

/* Features */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.feature img { width: 34px; height: auto; margin-bottom: 14px; image-rendering: pixelated; }
.feature h3 { margin: 0 0 8px; font: 400 19px var(--head); }
.feature p { margin: 0; color: var(--muted); font-size: 15px; }

/* FAQ */
details { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; }
summary { cursor: pointer; padding: 18px 22px; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--accent-2); font-size: 22px; line-height: 1; transition: transform .2s; }
details[open] summary::after { transform: rotate(45deg); }
details p { margin: 0; padding: 0 22px 18px; color: var(--muted); }

/* CTA + footer */
.cta-band {
  padding: 80px 0;
  background: radial-gradient(600px 240px at 50% 100%, rgba(255,60,172,.25), transparent 70%), var(--bg);
}
.cta-inner { display: flex; flex-direction: column; align-items: center; gap: 24px; text-align: center; }
.cta-inner h2 { margin: 0; font: 400 clamp(26px, 4vw, 38px) var(--display); }
.footer { border-top: 1px solid var(--line); padding: 32px 0; color: var(--muted); font-size: 14px; }
.footer-inner { display: grid; grid-template-columns: auto 1fr; gap: 12px 24px; align-items: center; }
.footer-brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 700; }
.footer-brand img { border-radius: 6px; }
.footer-links { display: flex; gap: 18px; justify-content: flex-end; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { color: var(--text); }
.legal { grid-column: 1 / -1; margin: 0; font-size: 12px; opacity: .8; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px);
  background: var(--ok); color: #0d2a14; font-weight: 700; padding: 10px 18px; border-radius: 999px;
  opacity: 0; pointer-events: none; transition: all .25s; z-index: 100;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Responsive */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
  .join { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .hero { padding: 64px 0 56px; }
  .features { grid-template-columns: 1fr; }
  .section { padding: 64px 0; }
  .ip-value { font-size: 20px; }
  .ip-lg .ip-value { font-size: 22px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}
