:root {
  --bg: #0A0716;
  --bg-2: #120C24;
  --surface: rgba(255, 255, 255, 0.05);
  --surface-2: rgba(255, 255, 255, 0.08);
  --border: rgba(255, 255, 255, 0.09);
  --border-2: rgba(255, 255, 255, 0.16);
  --text: #F7F5FF;
  --muted: #A9A3C2;
  --faint: #8F88AB;
  --violet: #8B5CFF;
  --magenta: #D65BFF;
  --coral: #FF7A59;
  --pink: #FF8FD1;
  --mint: #3DF2B0;
  --gold: #F5C542;
  --danger: #FF6B7A;
  --grad: linear-gradient(100deg, var(--violet), var(--magenta) 55%, var(--coral));
  --display: 'Outfit', system-ui, sans-serif;
  --body: 'Inter', system-ui, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.55 var(--body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
a { color: #C9B8FF; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.02em; }
button, input { font: inherit; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; position: relative; }

.glow { position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: -1; }
.glow-a { width: 620px; height: 620px; left: -200px; top: -220px; background: rgba(110, 60, 255, 0.35); }
.glow-b { width: 560px; height: 560px; right: -220px; top: 380px; background: rgba(255, 110, 80, 0.16); }

/* ---------- Nav ---------- */
.nav { display: flex; align-items: center; justify-content: space-between; padding: 22px 0; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font: 700 26px/1 var(--display); letter-spacing: -0.02em; }
.brand .mark { width: 38px; height: 38px; }
.brand.small { font-size: 20px; }
.nav-actions { display: flex; gap: 14px; align-items: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 15px 26px; cursor: pointer;
  background: var(--grad); color: #fff; font: 600 17px/1 var(--display);
  box-shadow: 0 12px 34px rgba(170, 80, 255, 0.35);
  transition: transform .15s ease, box-shadow .15s ease, opacity .15s;
  width: 100%;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 16px 40px rgba(170, 80, 255, 0.45); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn-sm { width: auto; padding: 11px 18px; font-size: 15px; box-shadow: none; }
.btn.ghost { background: var(--surface-2); box-shadow: none; border: 1px solid var(--border-2); }
.link-btn { background: none; border: 0; color: var(--text); cursor: pointer; font-weight: 500; padding: 6px 4px; }
.link-btn:hover { color: #fff; text-decoration: underline; }
.link-btn.inline { color: #C9B8FF; padding: 0; font-size: inherit; }

/* ---------- Hero ---------- */
.hero { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; padding: 40px 0 80px; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 22px; padding: 7px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 12px var(--mint); }
h1 { font-size: clamp(46px, 7vw, 82px); line-height: .98; font-weight: 800; letter-spacing: -0.04em; }
.pink { color: var(--pink); }
.lede { color: var(--muted); font-size: 19px; max-width: 30ch; margin: 22px 0 30px; }

.ticket {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px;
  max-width: 460px; padding: 22px 24px 0; border-radius: 26px;
  background: rgba(255,255,255,0.045); border: 1px solid var(--border-2); backdrop-filter: blur(10px);
}
.ticket small { display: block; color: var(--muted); font-size: 14px; }
.ticket strong { font: 700 26px/1.25 var(--display); }
.ticket .right { text-align: right; }
.ticket svg { width: 22px; height: 22px; stroke: var(--muted); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.money { font-family: 'Inter', sans-serif !important; font-weight: 700; letter-spacing: -0.02em; }
.ticket .money { color: var(--mint); font-size: 25px; }
.ticket-foot { grid-column: 1 / -1; display: flex; justify-content: space-between; margin: 18px 0 0; padding: 14px 0 16px; border-top: 1px solid var(--border); color: var(--faint); font-size: 14px; }
.count { margin: 22px 0 0; color: var(--muted); font-size: 15px; }
.count b { color: var(--text); }

/* ---------- Panel ---------- */
.panel-wrap { position: relative; }
.panel {
  position: relative; z-index: 2; display: grid; gap: 14px; padding: 30px;
  border-radius: 28px; background: rgba(21, 15, 40, 0.82); border: 1px solid var(--border-2);
  backdrop-filter: blur(18px); box-shadow: 0 30px 80px rgba(0,0,0,0.45);
}
.panel h2 { font-size: 28px; }
.muted { color: var(--muted); margin: 0; }
.small { font-size: 14px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
label { display: grid; gap: 7px; font-size: 14px; color: var(--muted); font-weight: 500; }
input[type=text], input[type=email], input[type=tel], input:not([type]), .code-input {
  width: 100%; padding: 14px 16px; border-radius: 14px; background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-2); color: var(--text); font-size: 16px; outline: none;
  transition: border-color .15s, background .15s;
}
input:focus { border-color: var(--violet); background: rgba(139, 92, 255, 0.1); }
.code-input { text-align: center; font: 700 34px/1 'Inter', sans-serif; letter-spacing: 14px; padding: 16px 8px 16px 22px; }
.error { color: var(--danger); margin: 0; font-size: 14px; min-height: 0; }
.error:empty { display: none; }
.fine { color: var(--faint); font-size: 13px; margin: 0; text-align: center; }
.fine.split { display: flex; justify-content: space-between; }
.invited { margin: 0; padding: 10px 14px; border-radius: 12px; background: rgba(61, 242, 176, 0.08); border: 1px solid rgba(61, 242, 176, 0.25); color: var(--mint); font-size: 14px; }
.turnstile:empty { display: none; }

/* Glossy coins */
.coins { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.coin {
  position: absolute; display: grid; place-items: center; border-radius: 50%;
  color: #fff; font: 800 40px/1 var(--display); text-shadow: 0 2px 6px rgba(0,0,0,.2);
  animation: float 7s ease-in-out infinite;
}
.coin.usdt { width: 120px; height: 120px; right: -34px; top: -46px; font-size: 62px; background: radial-gradient(circle at 32% 26%, #C9FFE9 0%, #2FD49B 40%, #0D7A57 85%); box-shadow: 0 24px 50px rgba(47, 212, 155, .3); transform: rotate(10deg); }
.coin.btc { width: 92px; height: 92px; left: -84px; top: 60%; font-size: 48px; background: radial-gradient(circle at 32% 26%, #FFE4B5 0%, #F7A23A 42%, #B75F05 88%); animation-delay: -2s; }
.coin.ton { width: 70px; height: 70px; right: 56px; bottom: -34px; background: radial-gradient(circle at 32% 26%, #BFE3FF 0%, #2E95E8 45%, #0B4C9A 90%); animation-delay: -4s; }
.coin.ton i { width: 20px; height: 20px; background: #fff; transform: rotate(45deg); border-radius: 3px; }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@media (prefers-reduced-motion: reduce) { .coin { animation: none; } html { scroll-behavior: auto; } }

/* ---------- Sections ---------- */
section { padding: 56px 0; }
.section-title { font-size: clamp(30px, 4vw, 42px); margin-bottom: 28px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li, .feature-grid article, .card {
  padding: 26px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border);
}
.steps span { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 12px; background: var(--grad); font: 700 17px/1 var(--display); margin-bottom: 18px; }
.steps h3, .feature-grid h3 { font-size: 21px; margin-bottom: 8px; }
.steps p, .feature-grid p { color: var(--muted); margin: 0; }
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }

/* Leaderboard */
.board-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.board-head .section-title { margin-bottom: 18px; }
.board-list { list-style: none; margin: 0; padding: 8px; border-radius: 24px; background: var(--surface); border: 1px solid var(--border); }
.board-list li { display: grid; grid-template-columns: 48px 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; }
.board-list li + li { border-top: 1px solid var(--border); }
.board-list li.me { background: rgba(139, 92, 255, 0.14); border-color: transparent; }
.board-list li.me + li { border-top-color: transparent; }
.board-list .pos { font: 700 17px/1 var(--display); color: var(--faint); }
.board-list li:nth-child(1) .pos { color: var(--gold); }
.board-list li:nth-child(2) .pos { color: #D9DDE8; }
.board-list li:nth-child(3) .pos { color: #E3A06B; }
.board-list .name { font-weight: 600; }
.board-list .you { margin-left: 8px; font-size: 12px; padding: 3px 8px; border-radius: 999px; background: var(--grad); color: #fff; font-weight: 600; }
.board-list .pts { font-family: 'Inter', sans-serif; font-weight: 700; }
.board-list .empty { display: block; color: var(--muted); text-align: center; padding: 28px; }
#boardMore { margin: 14px auto 0; display: block; color: #C9B8FF; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary { cursor: pointer; font: 600 19px/1.3 var(--display); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; color: var(--muted); font-size: 24px; line-height: 1; }
.faq details[open] summary::after { content: '−'; }
.faq summary::-webkit-details-marker { display: none; }
.faq p { color: var(--muted); margin: 12px 0 0; max-width: 70ch; }

/* ---------- Dashboard ---------- */
.dash { padding-top: 24px; }
.hi { font-size: clamp(38px, 5vw, 56px); margin-bottom: 26px; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.card h3 { font-size: 21px; margin-bottom: 8px; }
.score { background: linear-gradient(135deg, rgba(123, 77, 255, .35), rgba(214, 91, 255, .22) 55%, rgba(255, 122, 89, .22)); border-color: rgba(255,255,255,.16); }
.score-row { display: flex; justify-content: space-between; gap: 16px; }
.score small { display: block; color: #D9D2F5; font-size: 14px; }
.score strong { display: inline-block; font: 800 54px/1.1 var(--display); letter-spacing: -0.03em; }
.score .pts { font-size: 50px; color: var(--mint); }
.score .sub { color: #D9D2F5; margin-left: 6px; font-size: 15px; }
.score .right { text-align: right; }
.hint { margin: 16px 0 0; color: #E6E0FF; font-size: 15px; }
.link-box { display: flex; align-items: center; gap: 10px; margin: 16px 0 12px; padding: 8px 8px 8px 16px; border-radius: 16px; background: rgba(255,255,255,0.06); border: 1px solid var(--border-2); }
.link-box span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.share { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.share a { padding: 9px 14px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 500; }
.share a:hover { border-color: var(--border-2); }
.tasks ul, .people { list-style: none; margin: 10px 0 0; padding: 0; }
.tasks li { display: flex; align-items: center; gap: 14px; padding: 14px 0; }
.tasks li + li, .people li + li { border-top: 1px solid var(--border); }
.tasks .t-text { flex: 1; }
.tasks .t-text b { display: block; font-weight: 600; }
.tasks .t-text small { color: var(--faint); }
.tasks .t-pts { color: var(--mint); font-weight: 700; font-size: 14px; white-space: nowrap; }
.tasks .done { color: var(--faint); font-size: 14px; display: inline-flex; align-items: center; gap: 6px; }
.tasks .done::before { content: '✓'; color: var(--mint); font-weight: 700; }
.people li { display: flex; justify-content: space-between; padding: 12px 0; }
.people .status { font-size: 13px; color: var(--faint); }
.people .status.ok { color: var(--mint); }
.people .empty { color: var(--muted); display: block; }

/* ---------- Sheets ---------- */
.sheet { border: 1px solid var(--border-2); border-radius: 26px; background: #150F28; color: var(--text); padding: 26px; width: min(520px, 100% - 32px); }
.sheet::backdrop { background: rgba(5, 3, 12, 0.7); backdrop-filter: blur(4px); }
.sheet form { display: grid; gap: 14px; }
.sheet h3 { font-size: 24px; }
fieldset { border: 0; margin: 0; padding: 0; }
legend { font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { display: inline-flex; padding: 9px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border-2); color: var(--text); cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips label:has(input:checked) { background: rgba(139, 92, 255, 0.25); border-color: var(--violet); }
.chips label:has(input:focus-visible) { outline: 2px solid var(--violet); outline-offset: 2px; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 6px; }

.toast { position: fixed; left: 50%; bottom: 24px; translate: -50% 20px; opacity: 0; padding: 12px 18px; border-radius: 14px; background: #221A3D; border: 1px solid var(--border-2); transition: .2s; pointer-events: none; z-index: 10; }
.toast.show { opacity: 1; translate: -50% 0; }

/* ---------- Footer ---------- */
.foot { padding: 40px 0 48px; border-top: 1px solid var(--border); margin-top: 40px; color: var(--faint); font-size: 14px; }
.foot-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.foot nav { display: flex; gap: 18px; }
.foot a { color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.foot p { margin: 6px 0 0; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 16px; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .nav { padding: 16px 0; }
  .nav .btn { display: none; }
  .brand { font-size: 23px; } .brand .mark { width: 34px; height: 34px; }
  .lede { font-size: 17px; }
  .ticket { padding: 18px 18px 0; }
  .ticket strong { font-size: 21px; } .ticket .money { font-size: 21px; }
  .panel { padding: 22px; border-radius: 24px; }
  .row { grid-template-columns: 1fr; }
  .steps, .feature-grid { grid-template-columns: 1fr; }
  .coin.usdt { width: 76px; height: 76px; font-size: 40px; right: -6px; top: -34px; }
  .coin.btc { display: none; }
  .coin.ton { display: none; }
  .score strong { font-size: 44px; } .score .pts { font-size: 40px; }
  section { padding: 40px 0; }
}

.tasks .lock { color: var(--faint); font-size: 14px; }
