:root {
  --bg: #040A08;
  --bg2: #071510;
  --text: #E8FFF5;
  --muted: #9BC2B2;
  --dim: #5F8274;
  --line: rgba(124, 245, 192, 0.14);
  --glass: rgba(14, 34, 27, 0.55);
  --em: #3BE38F;
  --teal: #2DD4BF;
  --lime: #A3E635;
  --gold: #FFD166;
  --grad: linear-gradient(120deg, #7CF5C0 0%, #3BE38F 45%, #2DD4BF 100%);
  --radius: 18px;
  --font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, Arial, sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  color: var(--text);
  background: radial-gradient(1200px 700px at 50% -10%, #0C2A20 0%, var(--bg2) 40%, var(--bg) 100%);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
.ic { width: 1.15em; height: 1.15em; flex: none; }
.muted { color: var(--muted); }

#sky { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.aurora { position: fixed; inset: -20% -10% auto -10%; height: 70vh; z-index: 0; pointer-events: none; filter: blur(60px); opacity: 0.55; }
.aurora span { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 55vw; height: 28vh; left: 5%; top: 18%; background: radial-gradient(closest-side, rgba(59, 227, 143, 0.75), transparent); }
.aurora span:nth-child(2) { width: 45vw; height: 24vh; left: 42%; top: 8%; background: radial-gradient(closest-side, rgba(45, 212, 191, 0.65), transparent); animation-duration: 23s; }
.aurora span:nth-child(3) { width: 35vw; height: 20vh; left: 25%; top: 30%; background: radial-gradient(closest-side, rgba(167, 139, 250, 0.35), transparent); animation-duration: 28s; }
@keyframes drift {
  0% { transform: translate3d(-4%, 0, 0) rotate(-4deg) scaleX(1); }
  50% { transform: translate3d(5%, 4%, 0) rotate(3deg) scaleX(1.2); }
  100% { transform: translate3d(-2%, -3%, 0) rotate(-2deg) scaleX(0.95); }
}

.top {
  position: sticky; top: 0; z-index: 10;
  display: flex; align-items: center; gap: 24px;
  padding: 14px max(16px, env(safe-area-inset-left)) 14px max(16px, env(safe-area-inset-right));
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  background: linear-gradient(to bottom, rgba(4, 10, 8, 0.85), rgba(4, 10, 8, 0.35));
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: 0.12em; font-size: 18px; }
.brand b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand img { filter: drop-shadow(0 0 12px rgba(59, 227, 143, 0.55)); transition: transform 0.6s cubic-bezier(.2,.8,.2,1); }
.brand:hover img { transform: rotate(-12deg) scale(1.08); }
.brand.small { font-size: 14px; }
.links { display: flex; gap: 22px; margin-left: auto; }
.links a { color: var(--muted); font-weight: 600; font-size: 15px; position: relative; padding: 4px 0; transition: color 0.2s; }
.links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; border-radius: 2px; background: var(--grad); transition: right 0.3s ease; }
.links a:hover { color: var(--text); }
.links a:hover::after { right: 0; }
.lang { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); background: var(--glass); color: var(--text); border-radius: 999px; padding: 7px 12px; font: 600 13px var(--font); cursor: pointer; transition: border-color 0.2s, transform 0.2s; }
.lang:hover { border-color: rgba(59, 227, 143, 0.5); transform: translateY(-1px); }

main, .foot { position: relative; z-index: 1; }
.hero { min-height: calc(100vh - 70px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 60px 16px 90px; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--glass); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--muted); backdrop-filter: blur(8px); }
.pill b { color: var(--text); font-variant-numeric: tabular-nums; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--em); box-shadow: 0 0 0 0 rgba(59, 227, 143, 0.6); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(59, 227, 143, 0.6); } 70% { box-shadow: 0 0 0 12px rgba(59, 227, 143, 0); } 100% { box-shadow: 0 0 0 0 rgba(59, 227, 143, 0); } }
h1 { font-size: clamp(56px, 13vw, 132px); line-height: 0.95; margin: 22px 0 10px; letter-spacing: -0.04em; font-weight: 900; }
.grad { background: var(--grad); background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite; filter: drop-shadow(0 8px 40px rgba(59, 227, 143, 0.35)); }
@keyframes shine { 0% { background-position: 0% 50%; } 100% { background-position: 200% 50%; } }
.tag { font-size: clamp(17px, 2.6vw, 22px); color: var(--muted); max-width: 640px; margin: 0 0 30px; }
.address { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-bottom: 28px; }
.addr-label { font-size: 12px; text-transform: uppercase; letter-spacing: 0.18em; color: var(--dim); font-weight: 700; }
.addr { position: relative; display: inline-flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 14px; border: 1px solid rgba(59, 227, 143, 0.35); background: rgba(8, 28, 20, 0.7); color: var(--text); font: 700 clamp(17px, 3.6vw, 22px) var(--font); letter-spacing: 0.02em; cursor: pointer; box-shadow: 0 10px 40px rgba(59, 227, 143, 0.12), inset 0 0 0 1px rgba(255, 255, 255, 0.02); transition: transform 0.2s, box-shadow 0.3s, border-color 0.3s; }
.addr:hover { transform: translateY(-2px); border-color: var(--em); box-shadow: 0 16px 50px rgba(59, 227, 143, 0.25); }
.addr .copy, .addr .copied { display: inline-flex; color: var(--em); transition: transform 0.3s, opacity 0.3s; }
.addr .copied { position: absolute; right: 20px; opacity: 0; transform: scale(0.4); }
.addr.done .copy { opacity: 0; transform: scale(0.4); }
.addr.done .copied { opacity: 1; transform: scale(1); }
.cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.btn { display: inline-flex; align-items: center; gap: 9px; padding: 13px 22px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform 0.2s, box-shadow 0.3s, background 0.3s; }
.btn .ic { transition: transform 0.3s; }
.btn:hover .ic { transform: translateX(2px) scale(1.1); }
.btn.primary { background: var(--grad); color: #04130C; box-shadow: 0 10px 30px rgba(59, 227, 143, 0.35); }
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 16px 44px rgba(59, 227, 143, 0.5); }
.btn.ghost { border-color: var(--line); background: var(--glass); color: var(--text); }
.btn.ghost:hover { transform: translateY(-2px); border-color: rgba(59, 227, 143, 0.45); }
.versions { margin-top: 26px; display: inline-flex; align-items: center; gap: 8px; color: var(--dim); font-size: 14px; }

.section { max-width: 1140px; margin: 0 auto; padding: 70px 16px; }
.section h2 { font-size: clamp(28px, 5vw, 44px); margin: 0 0 10px; letter-spacing: -0.02em; text-align: center; }
.sub { text-align: center; color: var(--muted); margin: 0 auto 38px; max-width: 620px; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.game { --c: var(--em); position: relative; padding: 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); overflow: hidden; transform-style: preserve-3d; transition: transform 0.25s ease, border-color 0.3s, box-shadow 0.3s; backdrop-filter: blur(10px); }
.game::before { content: ""; position: absolute; inset: -40% -40% auto auto; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(closest-side, var(--c), transparent); opacity: 0.18; transition: opacity 0.3s, transform 0.6s; }
.game:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 20px 50px color-mix(in srgb, var(--c) 22%, transparent); }
.game:hover::before { opacity: 0.35; transform: scale(1.3); }
.game .gi { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); margin-bottom: 16px; }
.game .gi .ic { width: 26px; height: 26px; transition: transform 0.5s cubic-bezier(.2,.8,.2,1); }
.game:hover .gi .ic { transform: rotate(-10deg) scale(1.15); }
.game h3 { margin: 0 0 6px; font-size: 19px; }
.game p { margin: 0 0 16px; color: var(--muted); font-size: 14.5px; line-height: 1.5; }
.game .count { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--c); padding: 5px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, transparent); }
.game .count i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.game .new { position: absolute; top: 16px; right: 16px; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; color: #04130C; background: var(--gold); padding: 4px 8px; border-radius: 6px; }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.step { position: relative; padding: 26px 22px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px); }
.step .num { position: absolute; top: 18px; right: 20px; font-size: 54px; font-weight: 900; line-height: 1; color: rgba(59, 227, 143, 0.12); }
.step .sic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; color: var(--em); background: rgba(59, 227, 143, 0.1); border: 1px solid rgba(59, 227, 143, 0.3); margin-bottom: 14px; }
.step .sic .ic { width: 24px; height: 24px; }
.step h3 { margin: 0 0 8px; }
.step p { margin: 0; color: var(--muted); line-height: 1.55; }

.podium { list-style: none; padding: 0; margin: 0 auto; max-width: 640px; display: grid; gap: 10px; counter-reset: rank; }
.podium li { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 14px; background: var(--glass); border: 1px solid var(--line); counter-increment: rank; transition: transform 0.2s, border-color 0.2s; }
.podium li:hover { transform: translateX(4px); border-color: rgba(59, 227, 143, 0.4); }
.podium li::before { content: counter(rank); width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; background: rgba(255, 255, 255, 0.05); color: var(--muted); }
.podium li:nth-child(1)::before { background: rgba(255, 209, 102, 0.18); color: var(--gold); }
.podium li:nth-child(2)::before { background: rgba(203, 213, 225, 0.16); color: #D7E3EA; }
.podium li:nth-child(3)::before { background: rgba(217, 154, 91, 0.18); color: #E2A56A; }
.podium .av { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #04130C; }
.podium .nm { font-weight: 700; flex: 1; }
.podium .wins { font-weight: 800; color: var(--em); font-variant-numeric: tabular-nums; }
.podium .empty { justify-content: center; color: var(--muted); }
.podium .empty::before { display: none; }

.foot { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 40px 16px 50px; color: var(--dim); font-size: 13px; text-align: center; border-top: 1px solid var(--line); }
.foot p { margin: 0; }

.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.8s ease, transform 0.8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }

.lost { display: grid; place-items: center; min-height: 100vh; }
.lost-box { position: relative; z-index: 1; text-align: center; padding: 16px; }
.lost-box h1 { margin: 16px 0 6px; }
.lost-box p { color: var(--text); margin-bottom: 26px; }
.float { animation: float 4s ease-in-out infinite; filter: drop-shadow(0 0 24px rgba(59, 227, 143, 0.6)); }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-10px) rotate(-6deg); } }

@media (max-width: 720px) {
  .links { display: none; }
  .lang { margin-left: auto; }
  .hero { padding-top: 40px; }
  .section { padding: 54px 16px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
