:root {
  --bg: #07050f;
  --bg2: #0e0a1f;
  --panel: rgba(22, 15, 46, 0.72);
  --panel-solid: #150f2c;
  --line: rgba(160, 130, 255, 0.18);
  --text: #eeeaff;
  --muted: #a39ccf;
  --cyan: #22e4ff;
  --pink: #ff2bd6;
  --gold: #ffc940;
  --green: #3dffa2;
  --red: #ff4d6d;
  --radius: 16px;
  --glow-c: 0 0 24px rgba(34, 228, 255, 0.45);
  --glow-p: 0 0 24px rgba(255, 43, 214, 0.45);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  background-image:
    radial-gradient(1200px 600px at 80% -10%, rgba(255, 43, 214, 0.16), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(34, 228, 255, 0.12), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.55 'Inter', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  min-height: 100vh;
  display: flex; flex-direction: column;
}
a { color: var(--cyan); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, .display { font-family: 'Orbitron', 'Inter', sans-serif; letter-spacing: 0.02em; line-height: 1.15; }
h1 { font-size: clamp(2rem, 6vw, 3.6rem); margin: 0 0 0.4em; }
h2 { font-size: clamp(1.3rem, 3.4vw, 1.9rem); margin: 0 0 0.6em; }
h3 { font-size: 1.05rem; margin: 0 0 0.5em; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
main { flex: 1; padding: 28px 0 56px; }

/* header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 5, 15, 0.72);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 18px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: 'Orbitron', sans-serif; font-weight: 800; color: var(--text); font-size: 1.1rem; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand .logo { width: 30px; height: 30px; }
.brand b { background: linear-gradient(90deg, var(--cyan), var(--pink)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a { color: var(--muted); padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 0.92rem; }
.nav a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); text-decoration: none; }
.nav a.active { color: var(--text); background: rgba(34, 228, 255, 0.1); box-shadow: inset 0 0 0 1px rgba(34, 228, 255, 0.3); }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 10px; font-size: 1.1rem; }
.user-chip { display: flex; align-items: center; gap: 8px; padding: 6px 10px 6px 6px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); color: var(--text); font-weight: 600; font-size: 0.88rem; }
.user-chip .av { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--cyan), var(--pink)); color: #07050f; font-weight: 800; font-size: 0.8rem; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; background: var(--panel-solid); border-bottom: 1px solid var(--line); padding: 10px 16px 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px; }
}

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 12px; border: 0; cursor: pointer;
  font: 700 0.98rem 'Inter', sans-serif; color: #07050f;
  background: linear-gradient(90deg, var(--cyan), #7c8cff 50%, var(--pink));
  box-shadow: 0 8px 30px rgba(124, 140, 255, 0.35);
  transition: transform 0.12s, box-shadow 0.2s, filter 0.2s;
  text-decoration: none !important;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); box-shadow: 0 10px 40px rgba(255, 43, 214, 0.4); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn.big { padding: 16px 30px; font-size: 1.1rem; border-radius: 14px; }
.btn.ghost { background: rgba(255, 255, 255, 0.05); color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.ghost:hover { background: rgba(255, 255, 255, 0.09); }
.btn.gold { background: linear-gradient(90deg, #ffe27a, var(--gold), #ff9f2e); }
.btn.sm { padding: 8px 14px; font-size: 0.85rem; border-radius: 10px; }

/* cards */
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .g3, .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .g2, .g3, .g4 { grid-template-columns: 1fr; } }
.stat .v { font-family: 'Orbitron', sans-serif; font-size: 1.7rem; font-weight: 800; }
.stat .l { color: var(--muted); font-size: 0.85rem; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; background: rgba(34, 228, 255, 0.1); color: var(--cyan); border: 1px solid rgba(34, 228, 255, 0.25); }
.pill.pink { background: rgba(255, 43, 214, 0.1); color: var(--pink); border-color: rgba(255, 43, 214, 0.3); }
.pill.gold { background: rgba(255, 201, 64, 0.1); color: var(--gold); border-color: rgba(255, 201, 64, 0.3); }
.pill.green { background: rgba(61, 255, 162, 0.1); color: var(--green); border-color: rgba(61, 255, 162, 0.3); }
.pill.red { background: rgba(255, 77, 109, 0.1); color: var(--red); border-color: rgba(255, 77, 109, 0.3); }

/* tables */
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { text-align: left; padding: 11px 10px; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.table th { color: var(--muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; }
.table td.num, .table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.table-wrap { overflow-x: auto; }
.rank { width: 30px; height: 30px; border-radius: 9px; display: inline-grid; place-items: center; font-weight: 800; font-family: 'Orbitron', sans-serif; font-size: 0.85rem; background: rgba(255, 255, 255, 0.06); }
.rank.r1 { background: linear-gradient(135deg, #ffe27a, #ff9f2e); color: #241400; box-shadow: 0 0 18px rgba(255, 201, 64, 0.5); }
.rank.r2 { background: linear-gradient(135deg, #f0f4ff, #9aa7c7); color: #10131c; }
.rank.r3 { background: linear-gradient(135deg, #ffb27a, #b8642e); color: #210d00; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.85rem; word-break: break-all; }

/* forms */
label { display: block; font-weight: 600; font-size: 0.88rem; margin: 0 0 6px; color: var(--muted); }
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35); color: var(--text); font: inherit; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--cyan); box-shadow: 0 0 0 3px rgba(34, 228, 255, 0.15); }
.field { margin-bottom: 14px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 500; color: var(--text); }
.check input { width: auto; margin-top: 4px; }
.tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); margin-bottom: 16px; flex-wrap: wrap; }
.tabs button { background: none; border: 0; color: var(--muted); padding: 9px 16px; border-radius: 9px; font: 600 0.9rem 'Inter', sans-serif; cursor: pointer; }
.tabs button.on { background: rgba(34, 228, 255, 0.14); color: var(--text); box-shadow: inset 0 0 0 1px rgba(34, 228, 255, 0.35); }
.msg { padding: 12px 14px; border-radius: 12px; margin: 10px 0; font-size: 0.92rem; }
.msg.err { background: rgba(255, 77, 109, 0.12); border: 1px solid rgba(255, 77, 109, 0.35); color: #ffc2cd; }
.msg.ok { background: rgba(61, 255, 162, 0.1); border: 1px solid rgba(61, 255, 162, 0.3); color: #c6ffe4; }
.notice { border-left: 3px solid var(--gold); background: rgba(255, 201, 64, 0.07); padding: 12px 16px; border-radius: 0 12px 12px 0; font-size: 0.92rem; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: rgba(0, 0, 0, 0.35); padding: 26px 0 34px; font-size: 0.87rem; color: var(--muted); }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 18px 36px; justify-content: space-between; }
.site-footer .scam { color: #ffd6a1; }
.site-footer a { color: var(--muted); text-decoration: underline; }

/* hero */
.hero { position: relative; overflow: hidden; border-radius: 24px; border: 1px solid var(--line); padding: 56px 34px 46px; min-height: 420px; isolation: isolate; }
.hero::before {
  content: ''; position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, #120428 0%, #3a0b5a 52%, #ff2e88 54%, #120428 56%, #05010f 100%);
}
.hero .sun { position: absolute; z-index: -1; left: 50%; top: 18%; width: 300px; height: 300px; transform: translateX(-50%); border-radius: 50%;
  background: linear-gradient(180deg, #ffe66d 0%, #ff8a3d 45%, #ff2e88 80%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px), linear-gradient(#000 0 50%, transparent 50%);
  -webkit-mask-composite: source-over; mask: linear-gradient(180deg, #000 0 52%, transparent 52%), repeating-linear-gradient(180deg, #000 0 12px, transparent 12px 18px);
  filter: drop-shadow(0 0 40px rgba(255, 46, 136, 0.8)); opacity: 0.9; }
.hero .floor { position: absolute; z-index: -1; left: -50%; right: -50%; bottom: -10%; height: 55%;
  background-image: linear-gradient(rgba(34, 228, 255, 0.7) 2px, transparent 2px), linear-gradient(90deg, rgba(255, 43, 214, 0.7) 2px, transparent 2px);
  background-size: 60px 60px; transform: perspective(300px) rotateX(62deg); transform-origin: top; animation: floor 1.2s linear infinite;
  mask-image: linear-gradient(to bottom, transparent, #000 30%); -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%); }
@keyframes floor { to { background-position: 0 60px; } }
@media (prefers-reduced-motion: reduce) { .hero .floor { animation: none; } }
.hero .content { position: relative; max-width: 620px; }
.hero h1 { text-shadow: 0 0 30px rgba(255, 43, 214, 0.6); }
.hero p.lead { font-size: 1.12rem; color: #ddd6ff; max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }
.prize-box { display: inline-flex; gap: 22px; margin-top: 26px; padding: 14px 18px; border-radius: 14px; background: rgba(7, 5, 15, 0.6); border: 1px solid var(--line); flex-wrap: wrap; }
.prize-box .v { font-family: 'Orbitron', sans-serif; font-size: 1.35rem; font-weight: 800; color: var(--gold); }
.prize-box .l { font-size: 0.78rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.steps { counter-reset: s; }
.steps .card { position: relative; padding-top: 52px; }
.steps .card::before { counter-increment: s; content: counter(s); position: absolute; top: 16px; left: 22px; width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font: 800 0.9rem 'Orbitron'; background: linear-gradient(135deg, var(--cyan), var(--pink)); color: #07050f; }
.section { margin-top: 44px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
.hide { display: none !important; }
@media (min-width: 761px) { .hero .sun { left: 74%; } }
@media (max-width: 760px) { .hero .sun { opacity: 0.45; width: 220px; height: 220px; } }
