:root {
  --bg: #0a0a10;
  --bg-2: #101019;
  --surface: #15151f;
  --surface-2: #1c1c29;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --text: #f5f5f8;
  --muted: #a3a3b5;
  --dim: #6f6f84;
  --amber: #ffb000;
  --orange: #ff6a0a;
  --red: #e5261a;
  --grad: linear-gradient(135deg, #ffb000 0%, #ff6a0a 48%, #e5261a 100%);
  --radius: 20px;
  --max: 1180px;
  --display: "Sora", system-ui, sans-serif;
  --brand: "Orbitron", "Sora", sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.65 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
::selection { background: var(--orange); color: #fff; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(10, 10, 16, .72);
  border-bottom: 1px solid transparent;
  transition: border-color .25s;
}
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 44px; height: auto; }
.brand-name { font: 800 18px/1 var(--brand); letter-spacing: .06em; }
.brand-name small { display: block; font: 600 9px/1 var(--brand); letter-spacing: .55em; color: var(--muted); margin-top: 5px; }
.nav-links { display: flex; align-items: center; gap: 32px; font-weight: 500; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }
.nav-links .btn { color: #fff; }
@media (max-width: 760px) { .nav-links a:not(.btn) { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 22px; border-radius: 999px;
  font: 600 15px/1 var(--body);
  transition: transform .2s, box-shadow .2s, background .2s;
  white-space: nowrap;
}
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgba(255, 106, 10, .7); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px rgba(255, 106, 10, .85); }
.btn-ghost { border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn svg { width: 18px; height: 18px; flex: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 96px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 820px; height: 820px;
  background: radial-gradient(circle, rgba(255, 106, 10, .30), rgba(229, 38, 26, .10) 40%, transparent 68%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at 30% 40%, #000 0%, transparent 70%);
  opacity: .5; pointer-events: none;
}
.hero .wrap { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 8px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line);
  font-size: 13px; font-weight: 500; color: var(--muted);
}
.eyebrow b { background: var(--grad); color: #fff; font-size: 11px; letter-spacing: .08em; padding: 4px 9px; border-radius: 999px; }
h1 {
  font: 800 clamp(40px, 6vw, 68px)/1.04 var(--display);
  letter-spacing: -.035em; margin: 22px 0 22px;
}
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lead { font-size: 18px; color: var(--muted); max-width: 520px; margin: 0 0 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.stats { display: flex; gap: 40px; margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--line); }
.stat strong { display: block; font: 800 34px/1 var(--display); letter-spacing: -.03em; }
.stat span { font-size: 14px; color: var(--muted); }

.collage { position: relative; aspect-ratio: 1 / 1; max-width: 520px; justify-self: end; width: 100%; }
.collage img {
  position: absolute; border-radius: 24%;
  box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8), 0 0 0 1px rgba(255, 255, 255, .08);
  animation: float 7s ease-in-out infinite;
}
.collage img:nth-child(1) { width: 40%; left: 30%; top: 28%; z-index: 3; animation-delay: 0s; }
.collage img:nth-child(2) { width: 29%; left: 2%;  top: 8%;  transform: rotate(-9deg); animation-delay: -1.5s; }
.collage img:nth-child(3) { width: 27%; left: 70%; top: 4%;  transform: rotate(8deg);  animation-delay: -3s; }
.collage img:nth-child(4) { width: 26%; left: 0%;  top: 60%; transform: rotate(7deg);  animation-delay: -4.5s; }
.collage img:nth-child(5) { width: 30%; left: 68%; top: 58%; transform: rotate(-7deg); animation-delay: -2.2s; }
.collage img:nth-child(6) { width: 20%; left: 40%; top: 0%;  transform: rotate(4deg);  animation-delay: -5.4s; opacity: .9; }
.collage img:nth-child(7) { width: 21%; left: 42%; top: 79%; transform: rotate(-5deg); animation-delay: -3.7s; opacity: .9; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (prefers-reduced-motion: reduce) { .collage img { animation: none; } html { scroll-behavior: auto; } }

@media (max-width: 920px) {
  .hero { padding: 48px 0 72px; }
  .hero .wrap { grid-template-columns: 1fr; gap: 40px; }
  .collage { justify-self: center; max-width: 420px; }
  .stats { gap: 28px; flex-wrap: wrap; }
}

/* ---------- sections ---------- */
section { padding: 96px 0; }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.kicker { font: 700 12px/1 var(--brand); letter-spacing: .3em; color: var(--orange); text-transform: uppercase; margin-bottom: 14px; }
h2 { font: 800 clamp(30px, 4vw, 44px)/1.1 var(--display); letter-spacing: -.03em; margin: 0; }
.section-head p { color: var(--muted); max-width: 440px; margin: 0; }
@media (max-width: 600px) { section { padding: 72px 0; } }

/* ---------- games ---------- */
.games { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.filters { display: flex; flex-wrap: wrap; gap: 8px; }
.filter {
  padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--muted); font: 500 14px/1 var(--body); cursor: pointer;
  transition: all .2s;
}
.filter:hover { color: var(--text); }
.filter.active { background: var(--text); color: var(--bg); border-color: var(--text); }

.grid { display: grid; grid-template-columns: repeat(3, 1fr); grid-auto-flow: dense; gap: 20px; }
@media (max-width: 980px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .grid { grid-template-columns: 1fr; } }
.card {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px; transition: transform .25s, border-color .25s, background .25s;
}
.card:hover { transform: translateY(-4px); border-color: rgba(255, 106, 10, .45); background: var(--surface-2); }
.card.hidden { display: none; }
.card-top { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.card-top img { width: 76px; height: 76px; border-radius: 22%; box-shadow: 0 0 0 1px var(--line-2); flex: none; background: var(--surface-2); }
.card h3 { font: 700 17px/1.25 var(--display); margin: 0 0 6px; letter-spacing: -.01em; }
.tag { font-size: 12px; font-weight: 600; color: var(--muted); }
.card p { font-size: 14.5px; color: var(--muted); margin: 0 0 20px; flex: 1; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.badge {
  font: 700 12px/1 var(--body); padding: 6px 10px; border-radius: 8px;
  background: rgba(255, 176, 0, .12); color: var(--amber);
}
.badge.new { background: rgba(229, 38, 26, .14); color: #ff7a6b; }
.play-link { display: inline-flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--text); }
.play-link svg { width: 16px; height: 16px; }
.play-link:hover { color: var(--amber); }
.card.featured { grid-column: span 2; flex-direction: row; gap: 28px; align-items: center; padding: 28px; overflow: hidden; }
.card.featured::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 260px; height: 260px;
  background: radial-gradient(circle, rgba(255, 106, 10, .22), transparent 70%); pointer-events: none;
}
.card.featured > img { width: 140px; height: 140px; border-radius: 22%; box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .8), 0 0 0 1px var(--line-2); flex: none; }
.card.featured .body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.card.featured h3 { font-size: 22px; }
@media (max-width: 640px) {
  .card.featured { grid-column: auto; flex-direction: column; align-items: flex-start; padding: 22px; gap: 18px; }
  .card.featured > img { width: 96px; height: 96px; }
}

.store-row { margin-top: 40px; text-align: center; }

/* ---------- pillars ---------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.pillar { padding: 32px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, var(--surface), transparent); }
.pillar .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: var(--grad); margin-bottom: 22px; box-shadow: 0 12px 30px -12px rgba(255, 106, 10, .8);
}
.pillar .ico svg { width: 26px; height: 26px; }
.pillar h3 { font: 700 20px/1.3 var(--display); margin: 0 0 10px; }
.pillar p { color: var(--muted); margin: 0; font-size: 15px; }
@media (max-width: 860px) { .pillars { grid-template-columns: 1fr; } }

/* ---------- about ---------- */
.about .wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 64px; align-items: center; }
.about-mark { position: relative; aspect-ratio: 1; max-width: 440px; width: 100%; display: grid; place-items: center; }
.about-mark::before {
  content: ""; position: absolute; inset: 6%; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 10, .28), transparent 65%);
}
.about-mark::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 60s linear infinite; }
.about-mark img { position: relative; width: 62%; filter: drop-shadow(0 30px 40px rgba(229, 38, 26, .45)); }
@keyframes spin { to { rotate: 360deg; } }
.about p { color: var(--muted); font-size: 17px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; margin-top: 2px; }
@media (max-width: 860px) { .about .wrap { grid-template-columns: 1fr; gap: 40px; } .about-mark { max-width: 300px; margin: 0 auto; } }

/* ---------- contact ---------- */
.contact-box {
  position: relative; overflow: hidden; border-radius: 28px; padding: 64px;
  background: var(--grad); color: #fff;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center;
}
.contact-box::before {
  content: ""; position: absolute; right: -120px; bottom: -160px; width: 480px; height: 480px;
  background: url("logo.svg") center / contain no-repeat; opacity: .14; rotate: -12deg;
}
.contact-box h2 { color: #fff; }
.contact-box p { color: rgba(255, 255, 255, .88); font-size: 17px; margin: 14px 0 0; }
.contact-list { position: relative; display: grid; gap: 12px; }
.contact-item {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px;
  background: rgba(10, 10, 16, .22); border: 1px solid rgba(255, 255, 255, .22);
  transition: background .2s;
}
.contact-item:hover { background: rgba(10, 10, 16, .38); }
.contact-item svg { width: 22px; height: 22px; flex: none; }
.contact-item small { display: block; font-size: 12px; opacity: .8; }
.contact-item span { font-weight: 600; overflow-wrap: anywhere; }
@media (max-width: 860px) { .contact-box { grid-template-columns: 1fr; padding: 40px 28px; } }
@media (max-width: 480px) {
  .contact-box { padding: 32px 18px; border-radius: 22px; }
  .contact-item { padding: 14px; gap: 12px; }
  .contact-item span { font-size: 14.5px; }
}

/* ---------- footer ---------- */
footer { padding: 56px 0 40px; border-top: 1px solid var(--line); }
.foot { display: flex; justify-content: space-between; gap: 32px; flex-wrap: wrap; align-items: flex-start; }
.foot p { color: var(--dim); font-size: 14px; margin: 14px 0 0; max-width: 320px; }
.foot-links { display: flex; gap: 48px; flex-wrap: wrap; }
.foot-links h4 { font: 700 12px/1 var(--brand); letter-spacing: .25em; color: var(--dim); margin: 0 0 16px; text-transform: uppercase; }
.foot-links a { display: block; color: var(--muted); font-size: 15px; margin-bottom: 10px; }
.foot-links a:hover { color: var(--text); }
.copy { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--dim); font-size: 13px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* ---------- legal pages ---------- */
.legal { padding: 64px 0 96px; }
.legal .wrap { max-width: 820px; }
.legal h1 { font-size: clamp(34px, 5vw, 50px); margin: 14px 0 10px; }
.legal .meta { color: var(--dim); font-size: 14px; margin-bottom: 40px; }
.legal h2 { font-size: 24px; margin: 48px 0 14px; letter-spacing: -.02em; scroll-margin-top: 96px; }
.legal h3 { font: 700 17px/1.4 var(--display); margin: 28px 0 8px; }
.legal p, .legal li { color: #c8c8d6; }
.legal ul { padding-left: 22px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--amber); text-decoration: underline; text-underline-offset: 3px; }
.legal .toc { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px 26px; }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.legal .toc li { margin: 0 0 6px; break-inside: avoid; }
.legal .toc a { color: var(--muted); text-decoration: none; }
.legal .toc a:hover { color: var(--text); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 14px; margin: 16px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 560px; }
.legal th, .legal td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; color: #c8c8d6; }
.legal th { background: var(--surface); color: var(--text); font-weight: 600; }
.legal tr:last-child td { border-bottom: 0; }
.legal [id] { scroll-margin-top: 96px; }
.legal .lead { margin-bottom: 36px; max-width: none; }
.legal .btn { color: #fff; text-decoration: none; }
.help-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; margin: 20px 0 40px; }
.help-item { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: #c8c8d6; font-size: 15px; }
.help-item svg { width: 22px; height: 22px; flex: none; color: var(--orange); margin-top: 1px; }
.support-card .note { font-size: 14px; color: var(--muted); margin-bottom: 0; }
.legal .thanks { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); }
.support-card .btn { justify-self: start; }
.support-card {
  display: grid; grid-template-columns: 1fr; gap: 24px;
  padding: 32px; border-radius: var(--radius); border: 1px solid rgba(255, 106, 10, .35);
  background: linear-gradient(135deg, rgba(255, 176, 0, .10), rgba(229, 38, 26, .08)), var(--surface);
}
.support-card h2 { margin-top: 0; }
.support-card ul { margin-bottom: 0; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 16px; background: var(--surface); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-2); }
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 22px; font-weight: 600; color: var(--text);
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 24px/1 var(--body); color: var(--orange); transition: rotate .2s; flex: none; }
.faq details[open] summary::after { rotate: 45deg; }
.faq details p { margin: 0; padding: 0 22px 20px; }
@media (max-width: 760px) { .support-card { grid-template-columns: 1fr; padding: 24px 20px; } .support-card .btn { justify-content: center; } }
@media (max-width: 600px) {
  .legal .toc ol { columns: 1; }
  .legal table { min-width: 0; font-size: 13.5px; }
  .legal th, .legal td { padding: 10px; overflow-wrap: anywhere; }
}
@media (max-width: 400px) { .support-card .btn { font-size: 13.5px; padding: 13px 14px; } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
