:root {
  --bg: #13062b;
  --panel: #241050;
  --panel2: #2d1563;
  --line: rgba(255, 255, 255, .09);
  --fg: #ffffff;
  --muted: #b7a6dd;
  --pink: #ff2d87;
  --cyan: #19d3ff;
  --yellow: #ffd23f;
  --green: #2ee59d;
  --field: #170838;
  --display: "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; color: var(--fg);
  background: radial-gradient(1200px 600px at 80% -10%, #3a1180 0%, transparent 60%), radial-gradient(900px 500px at -10% 30%, #2a0a5e 0%, transparent 60%), var(--bg);
  font: 16px/1.55 var(--display);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; }
a { color: inherit; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.row { display: flex; align-items: center; justify-content: space-between; }

/* ---------- header ---------- */
.top { background: rgba(12, 4, 28, .85); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.top .row { height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 900; font-style: italic; font-size: 1.45rem; letter-spacing: -.01em; }
.logo b { color: var(--yellow); }
.actions { display: flex; align-items: center; gap: 16px; }
.link { text-decoration: none; color: var(--muted); font-weight: 600; font-size: .95rem; }
.link:hover { color: var(--fg); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 22px; border-radius: 999px; border: 0;
  background: linear-gradient(180deg, #ffe066 0%, #ffc21a 100%); color: #2a1600;
  font: 800 .95rem/1 var(--display); letter-spacing: .02em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  box-shadow: 0 4px 0 #c98a00, 0 8px 20px rgba(255, 194, 26, .25);
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #c98a00; }
.btn-lg { height: 54px; padding: 0 34px; font-size: 1.05rem; }
.btn-ghost { background: rgba(255, 255, 255, .1); color: #fff; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); }
.btn-ghost:hover { background: rgba(255, 255, 255, .16); }
.btn-ghost:active { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .3); }
.btn.wide { width: 100%; height: 48px; }

/* ---------- category strip ---------- */
.cats { display: flex; gap: 10px; padding: 18px 20px 0; overflow-x: auto; scrollbar-width: none; }
.cats::-webkit-scrollbar { display: none; }
.cat { flex: none; display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; background: var(--panel); color: var(--muted); font-weight: 700; font-size: .92rem; text-decoration: none; border: 1px solid var(--line); }
.cat svg { width: 18px; height: 18px; }
.cat:hover { color: #fff; background: var(--panel2); }
.cat.on { background: linear-gradient(90deg, var(--pink), #b620e0); color: #fff; border-color: transparent; }

/* ---------- hero banner ---------- */
.hero {
  position: relative; margin-top: 18px; border-radius: 24px; overflow: hidden;
  background: linear-gradient(115deg, #5b12c9 0%, #b5179e 55%, #ff5a36 100%);
  display: grid; grid-template-columns: 1fr 1fr; align-items: center; min-height: 430px;
}
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(rgba(255,255,255,.10) 1.2px, transparent 1.4px) 0 0 / 22px 22px; mask-image: linear-gradient(90deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); }
.hero-text { position: relative; z-index: 1; padding: 48px 0 48px 52px; }
.pill-live { display: inline-flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .28); border-radius: 999px; padding: 6px 14px 6px 10px; font-weight: 800; font-size: .8rem; letter-spacing: .12em; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #ff3b3b; box-shadow: 0 0 0 0 rgba(255, 59, 59, .7); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 9px rgba(255, 59, 59, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 59, 59, 0); } }
.hero h1 { font-weight: 900; font-style: italic; text-transform: uppercase; font-size: clamp(2.4rem, 5vw, 4.1rem); line-height: .97; letter-spacing: -.02em; margin: 18px 0 16px; text-shadow: 0 4px 0 rgba(0, 0, 0, .18); }
.hero h1 span { color: var(--yellow); }
.hero .lead { font-size: 1.12rem; max-width: 470px; margin: 0 0 28px; color: rgba(255, 255, 255, .92); }
.buttons { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-art { position: relative; align-self: stretch; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 12%); mask-image: linear-gradient(90deg, transparent 0, #000 12%); }
.hero-art svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* ---------- facts strip ---------- */
.strip { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.strip > div { padding: 18px 22px; border-right: 1px solid var(--line); }
.strip > div:last-child { border-right: 0; }
.strip small { display: block; color: var(--muted); font-weight: 700; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; }
.strip b { display: block; font-weight: 900; font-size: 1.6rem; font-variant-numeric: tabular-nums; margin-top: 2px; }
.strip .gold { color: var(--yellow); }
.strip .cy { color: var(--cyan); }
.strip .gr { color: var(--green); }
.strip .pk { color: var(--pink); }

/* ---------- sections ---------- */
.sec { padding-top: 56px; scroll-margin-top: 80px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.sec-head h2 { margin: 0; font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 1.7rem; letter-spacing: -.01em; }
.sec-head h2 span { color: var(--pink); }
.sec-head p { margin: 0; color: var(--muted); }

/* game tiles */
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tile { position: relative; border-radius: 20px; overflow: hidden; background: var(--panel); border: 1px solid var(--line); transition: transform .18s, box-shadow .18s; }
.tile:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(0, 0, 0, .35); }
.thumb { position: relative; aspect-ratio: 16 / 10; }
.thumb svg { display: block; width: 100%; height: 100%; }
.t-bj .thumb { background: linear-gradient(135deg, #0a6cff 0%, #19d3ff 100%); }
.t-pp .thumb { background: linear-gradient(135deg, #e0157a 0%, #ff7ac0 100%); }
.t-t3 .thumb { background: linear-gradient(135deg, #ff6a00 0%, #ffd23f 100%); }
.badge { position: absolute; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; background: rgba(0, 0, 0, .55); color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .1em; padding: 5px 10px; border-radius: 999px; }
.badge .dot { width: 7px; height: 7px; }
.pays { position: absolute; top: 12px; right: 12px; background: #fff; color: #1b0b3a; font-weight: 900; font-size: .8rem; padding: 5px 10px; border-radius: 999px; }
.tile-body { padding: 16px 18px 20px; }
.tile h3 { margin: 0 0 4px; font-weight: 900; font-size: 1.2rem; }
.tile p { margin: 0; color: var(--muted); font-size: .93rem; }

/* why */
.feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feat { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 24px 22px; }
.ico { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 14px; color: #fff; }
.ico svg { width: 26px; height: 26px; }
.i-pk { background: linear-gradient(135deg, #ff2d87, #b620e0); }
.i-cy { background: linear-gradient(135deg, #0a6cff, #19d3ff); }
.i-yl { background: linear-gradient(135deg, #ff8a1f, #ffd23f); }
.i-gr { background: linear-gradient(135deg, #00a86b, #2ee59d); }
.feat h3 { margin: 0 0 6px; font-weight: 900; font-size: 1.12rem; }
.feat p { margin: 0; color: var(--muted); font-size: .94rem; }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step { background: var(--panel); border: 1px solid var(--line); border-radius: 20px; padding: 26px 24px; }
.num { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-weight: 900; font-size: 1.3rem; color: #1b0b3a; margin-bottom: 14px; }
.step:nth-child(1) .num { background: var(--pink); color: #fff; }
.step:nth-child(2) .num { background: var(--cyan); }
.step:nth-child(3) .num { background: var(--yellow); }
.step h3 { margin: 0 0 6px; font-weight: 900; font-size: 1.15rem; }
.step p { margin: 0; color: var(--muted); }

/* ---------- footer ---------- */
.foot { margin-top: 72px; background: #0c041c; border-top: 1px solid var(--line); padding: 34px 0 40px; color: var(--muted); font-size: .9rem; }
.foot p { margin: 6px 0; }
.foot-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 14px; }
.foot-links { display: flex; gap: 22px; flex-wrap: wrap; }
.foot-links a { text-decoration: none; font-weight: 600; }
.foot-links a:hover { color: var(--fg); }
.age { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--pink); color: #fff; font-size: .78rem; font-weight: 900; flex: none; }
.small { font-size: .8rem; line-height: 1.5; }

/* ---------- modals + region gate ---------- */
.modal { position: fixed; inset: 0; z-index: 10; display: none; align-items: center; justify-content: center; padding: 20px; background: rgba(8, 2, 20, .7); }
.modal.open { display: flex; }
.box { position: relative; width: 100%; max-width: 400px; background: linear-gradient(180deg, #2d1563 0%, #1f0b47 100%); border: 1px solid rgba(255, 255, 255, .14); border-radius: 22px; padding: 30px 26px 24px; box-shadow: 0 24px 60px rgba(0, 0, 0, .5); }
.box h3 { margin: 0 0 10px; font-size: 1.35rem; font-weight: 900; }
.box p { margin: 0 0 18px; color: #ddd2f5; }
.close { position: absolute; top: 12px; right: 14px; background: none; border: 0; color: var(--muted); font-size: 1.6rem; line-height: 1; cursor: pointer; }
.close:hover { color: var(--fg); }
.muted { color: var(--muted) !important; }
.center { text-align: center; margin: 16px 0 0 !important; }
.form { display: grid; gap: 14px; margin-top: 8px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 700; color: var(--muted); }
.form input { height: 48px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16); background: var(--field); color: var(--fg); padding: 0 14px; font: 1rem var(--display); }
.form input:focus { outline: none; border-color: var(--yellow); }
.err { background: rgba(255, 45, 135, .15); border: 1px solid rgba(255, 45, 135, .5); color: #ffc2dc !important; border-radius: 10px; padding: 9px 12px; font-size: .9rem; margin: 0 !important; }
.gate { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 20px; background: rgba(10, 2, 26, .66); -webkit-backdrop-filter: blur(9px); backdrop-filter: blur(9px); }
.unlocked .gate { display: none; }
html:not(.unlocked) body { overflow: hidden; }
.gate-box { text-align: center; max-width: 420px; padding: 36px 30px 30px; }
.gate-box img { margin-bottom: 14px; }
.gate-box p { margin: 0 0 12px; }
.gate-box p:last-child { margin: 0; }

/* ---------- privacy page ---------- */
.doc { padding: 56px 20px 0; }
.doc > * { max-width: 760px; }
.doc h1 { font-size: 2.4rem; font-weight: 900; font-style: italic; text-transform: uppercase; margin: 0 0 6px; }
.doc .date { color: var(--muted); margin: 0 0 32px; }
.doc h2 { font-size: 1.2rem; font-weight: 800; margin: 36px 0 10px; color: var(--yellow); }
.doc p, .doc li { color: #e0d7f5; }
.doc ul { padding-left: 20px; }
.doc li { margin: 6px 0; }
.doc a { color: var(--cyan); }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-text { padding: 34px 26px 0; }
  .hero-art { height: 270px; -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 14%); mask-image: linear-gradient(180deg, transparent 0, #000 14%); }
  .strip { grid-template-columns: repeat(2, 1fr); }
  .strip > div:nth-child(2) { border-right: 0; }
  .strip > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .tiles, .steps { grid-template-columns: 1fr; }
  .feats { grid-template-columns: 1fr 1fr; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 2px; }
}
@media (max-width: 520px) {
  .top .link { display: none; }
  .logo { font-size: 1.25rem; }
  .btn { padding: 0 18px; }
  .buttons .btn { flex: 1; }
  .strip > div { padding: 14px 16px; }
  .strip b { font-size: 1.3rem; }
  .feats { grid-template-columns: 1fr; }
  .btn-lg { padding: 0 14px; font-size: .95rem; white-space: nowrap; }
}
