:root {
  --bg: #0b0a09;
  --bg2: #13110f;
  --ink: #f2efe8;
  --mute: #a39a8e;
  --line: rgba(242, 239, 232, 0.1);
  --cyan: #2fe0ff;
  --mag: #e23cff;
  --ok: #5adf7a;
  --grad: linear-gradient(120deg, #2fe0ff, #6a5cff 50%, #e23cff);
  --wrap: min(1080px, calc(100% - 2rem));
  --display: "Syne", sans-serif;
  --sans: "Karla", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
ol { list-style: none; }
.wrap { width: var(--wrap); margin-inline: auto; }

/* NAV */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 40;
  padding: .85rem 0;
  transition: background .25s, border-color .25s;
  border-bottom: 1px solid transparent;
}
.nav.on {
  background: rgba(11, 10, 9, 0.9);
  backdrop-filter: blur(12px);
  border-bottom-color: var(--line);
}
.nav__inner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.logo {
  display: inline-flex; align-items: center; gap: .55rem;
  font-family: var(--display); font-weight: 800; font-size: 1.15rem;
}
.logo img { width: 36px; height: 36px; border-radius: 6px; }
.nav__links {
  display: none; gap: 1.25rem;
  color: var(--mute); font-weight: 600; font-size: .92rem;
}
.nav__links a:hover { color: var(--ink); }
.nav__actions { display: flex; align-items: center; gap: .55rem; }
.live {
  display: none; align-items: center; gap: .4rem;
  font-size: .75rem; font-weight: 700; color: #b7e89a;
}
.live i { width: 7px; height: 7px; background: var(--ok); border-radius: 1px; }
.live.off { color: #ffb0b0; }
.live.off i { background: #ff5555; }
@media (min-width: 700px) { .live { display: inline-flex; } }
@media (min-width: 900px) {
  .nav__links { display: flex; }
  .burger { display: none !important; }
}
.burger {
  width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 6px;
  display: grid; place-items: center;
}
.burger span, .burger span::before, .burger span::after {
  content: ""; display: block; width: 15px; height: 2px; background: var(--ink); position: relative;
}
.burger span::before { position: absolute; top: -5px; left: 0; }
.burger span::after { position: absolute; top: 5px; left: 0; }
.drawer {
  display: none; margin-top: .6rem;
  border-top: 1px solid var(--line);
}
.drawer.open { display: grid; }
.drawer a {
  padding: .75rem 0; font-weight: 600; color: var(--mute);
  border-bottom: 1px solid var(--line);
}

/* BUTTONS */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 0 1.1rem; border-radius: 6px;
  font-family: var(--display); font-weight: 700; font-size: .85rem;
  transition: filter .15s, transform .15s;
}
.btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
.btn-primary { background: var(--grad); color: #0b0a09; }
.btn-ghost {
  border: 1px solid var(--line); background: transparent;
}
.btn-ghost:hover { border-color: rgba(47, 224, 255, 0.45); }

/* HERO */
.hero {
  position: relative; min-height: 100svh;
  display: grid; align-items: end;
  isolation: isolate; overflow: hidden;
  padding: 7rem 0 4rem;
}
.hero__bg { position: absolute; inset: 0; z-index: -2; }
.hero__bg img {
  width: 100%; height: 100%; object-fit: cover; object-position: center 35%;
  filter: saturate(1.05);
}
.hero__dim {
  position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(11,10,9,.45) 0%, rgba(11,10,9,.25) 35%, rgba(11,10,9,.92) 100%),
    linear-gradient(90deg, rgba(11,10,9,.7) 0%, transparent 55%);
}
.hero__content { position: relative; max-width: 36rem; }
.hero__mark {
  width: 84px; height: 84px; border-radius: 10px; margin-bottom: .9rem;
  box-shadow: 0 0 0 2px rgba(47,224,255,.3);
}
.hero__brand {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(3rem, 9vw, 5rem);
  line-height: .9; letter-spacing: -0.04em; margin-bottom: .45rem;
}
.hero h1 {
  font-family: var(--display); font-weight: 700;
  font-size: clamp(1.25rem, 2.8vw, 1.7rem);
  letter-spacing: -0.02em; margin-bottom: .4rem;
}
.hero__lead {
  color: #cfc6b8; margin-bottom: 1.25rem; font-size: 1.02rem;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: .55rem; }
.ipbox {
  display: inline-flex; align-items: stretch; overflow: hidden;
  min-height: 44px; border: 1px solid var(--line); border-radius: 6px;
  background: rgba(11,10,9,.75);
}
.ipbox code {
  display: grid; place-items: center; padding: 0 1rem;
  font-family: var(--mono); font-size: .92rem; font-weight: 500;
}
.ipbox button {
  padding: 0 1rem; background: var(--grad); color: #0b0a09;
  font-family: var(--display); font-weight: 700; font-size: .8rem;
}
.ipbox button.done { background: var(--ok); color: #062010; }

/* STRIP */
.strip {
  padding: 1.1rem 0;
  border-bottom: 1px solid var(--line);
  background: var(--bg2);
}
.strip__grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem 1.2rem;
}
@media (min-width: 760px) { .strip__grid { grid-template-columns: repeat(4, 1fr); } }
.strip__grid strong {
  display: block; font-family: var(--display); font-size: 1.35rem; font-weight: 800;
}
.strip__grid span {
  color: var(--mute); font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
}

/* SECTIONS */
.section { padding: clamp(3rem, 6vw, 4.5rem) 0; }
.section--soft { background: var(--bg2); border-block: 1px solid var(--line); }
.head {
  display: flex; flex-wrap: wrap; justify-content: space-between;
  align-items: end; gap: .75rem; margin-bottom: 1.4rem;
}
.head h2 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(1.8rem, 3.5vw, 2.4rem); letter-spacing: -0.03em;
}
.head p { color: var(--mute); max-width: 24rem; }

/* GAMES */
.games {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem;
  margin-bottom: 1rem;
}
@media (min-width: 800px) { .games { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1000px) { .games { grid-template-columns: repeat(6, 1fr); } }
.game {
  display: grid; gap: .15rem; text-align: left;
  padding: .85rem .8rem; border-radius: 8px;
  border: 1px solid var(--line); background: #151210;
  transition: border-color .2s, background .2s;
}
.game:hover, .game.on {
  border-color: rgba(47, 224, 255, 0.45);
  background: #1a1613;
}
.game__dot {
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--c, var(--cyan)); margin-bottom: .35rem;
}
.game strong {
  font-family: var(--display); font-size: .95rem; font-weight: 800;
}
.game small { color: var(--mute); font-size: .78rem; }

.feature {
  position: relative; overflow: hidden; border-radius: 10px;
  min-height: 280px; border: 1px solid var(--line);
  display: grid; align-items: end;
}
.feature > img {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; opacity: .4;
}
.feature__text {
  position: relative; z-index: 1;
  padding: 1.4rem;
  background: linear-gradient(180deg, transparent, rgba(11,10,9,.92));
  max-width: 32rem;
}
.feature__tag {
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--cyan); margin-bottom: .4rem;
}
.feature h3 {
  font-family: var(--display); font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 800; margin-bottom: .4rem;
}
.feature__text > p:not(.feature__tag) {
  color: #d4cdc0; margin-bottom: 1rem;
}

/* WHY */
.why {
  display: grid; gap: 1.4rem;
}
@media (min-width: 800px) { .why { grid-template-columns: repeat(3, 1fr); gap: 2rem; } }
.why h3 {
  font-family: var(--display); font-size: 1.2rem; font-weight: 800;
  margin-bottom: .35rem;
}
.why p { color: var(--mute); font-size: .95rem; }

/* JOIN */
.tabs {
  display: inline-flex; gap: .35rem; margin-bottom: 1rem;
}
.tabs button {
  min-height: 40px; padding: 0 1rem; border-radius: 6px;
  border: 1px solid var(--line); color: var(--mute);
  font-family: var(--display); font-weight: 700; font-size: .8rem;
  background: transparent;
}
.tabs button.on { background: var(--grad); color: #0b0a09; border-color: transparent; }
.pane { display: none; }
.pane.on { display: block; }
.steps {
  display: grid; gap: .75rem;
}
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li {
  display: grid; grid-template-columns: auto 1fr; gap: .75rem;
  padding: 1rem; border: 1px solid var(--line); border-radius: 8px;
  background: #151210;
}
.steps b {
  width: 28px; height: 28px; display: grid; place-items: center;
  border-radius: 5px; background: var(--grad); color: #0b0a09;
  font-family: var(--display); font-weight: 800; font-size: .85rem;
}
.steps h3 {
  font-family: var(--display); font-size: 1.05rem; font-weight: 800;
  margin-bottom: .2rem;
}
.steps p { color: var(--mute); font-size: .9rem; }
.steps code {
  font-family: var(--mono); color: var(--cyan);
  background: rgba(47,224,255,.1); padding: .05rem .3rem; border-radius: 3px;
}

/* SHOP */
.ranks {
  display: grid; gap: .65rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 900px) { .ranks { grid-template-columns: repeat(4, 1fr); } }
.rank {
  display: grid; gap: .3rem; padding: 1.1rem;
  border: 1px solid var(--line); border-radius: 8px; background: #151210;
  transition: border-color .2s, transform .15s;
}
.rank:hover { border-color: rgba(47,224,255,.4); transform: translateY(-2px); }
.rank--hot { border-color: rgba(226,60,255,.4); }
.rank h3 {
  font-family: var(--display); font-size: 1.2rem; font-weight: 800;
}
.rank span {
  font-family: var(--display); font-size: 1.4rem; font-weight: 800; color: var(--cyan);
}
.rank--hot span { color: var(--mag); }
.rank p { color: var(--mute); font-size: .85rem; }

/* CTA */
.cta {
  display: grid; gap: 1.5rem; align-items: center;
  padding: 1.5rem; border: 1px solid var(--line); border-radius: 10px;
  background: #151210;
}
@media (min-width: 800px) {
  .cta { grid-template-columns: 1fr auto; padding: 1.8rem 2rem; }
}
.cta h2 {
  font-family: var(--display); font-size: clamp(1.7rem, 3vw, 2.2rem);
  font-weight: 800; margin-bottom: .35rem;
}
.cta p { color: var(--mute); margin-bottom: 1rem; }
.cta__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.cta img {
  width: 120px; height: 120px; border-radius: 12px;
  box-shadow: 0 0 0 2px rgba(47,224,255,.25);
}

/* FOOTER */
.footer {
  padding: 2.2rem 0 2.5rem;
  border-top: 1px solid var(--line);
  background: #080706;
}
.footer__grid {
  display: grid; gap: 1.3rem; margin-bottom: 1.3rem;
}
@media (min-width: 800px) { .footer__grid { grid-template-columns: 1.4fr repeat(3, 1fr); } }
.footer__brand {
  display: inline-flex; align-items: center; gap: .45rem;
  font-family: var(--display); font-weight: 800; margin-bottom: .3rem;
}
.footer__brand img { width: 28px; height: 28px; border-radius: 5px; }
.footer p { color: var(--mute); font-size: .88rem; }
.footer h4 {
  font-size: .7rem; letter-spacing: .1em; text-transform: uppercase;
  color: var(--mute); margin-bottom: .45rem;
}
.footer__grid > div { display: grid; gap: .28rem; align-content: start; }
.footer a:hover { color: var(--cyan); }
.footer__bar {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem;
  padding-top: .9rem; border-top: 1px solid var(--line);
  color: var(--mute); font-size: .8rem;
}

.toast {
  position: fixed; left: 50%; bottom: 1.4rem;
  transform: translateX(-50%) translateY(140%);
  z-index: 60; min-height: 40px; padding: 0 1rem; border-radius: 6px;
  background: var(--ink); color: var(--bg);
  font-family: var(--display); font-weight: 700; font-size: .78rem;
  display: grid; place-items: center;
  transition: transform .25s var(--ease); pointer-events: none;
}
.toast.on { transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .btn:hover, .rank:hover { transform: none; }
}
