:root {
  --night: #0B0B12;
  --surface: #161620;
  --raised: #1E1E2B;
  --text: #FFFFFF;
  --soft: rgba(255, 255, 255, 0.76);
  --line: rgba(255, 255, 255, 0.10);
  --lime: #D4F84A;
  --lime-deep: #A9D61F;
  --ink: #14140F;
  --font: ui-rounded, "SF Pro Rounded", "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--night);
  color: var(--text);
  font-family: var(--font);
  font-weight: 700;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--lime); }
img { max-width: 100%; height: auto; display: block; }

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

/* Header */
.top { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 900; font-size: 20px; letter-spacing: -0.3px; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.nav { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.28);
  color: var(--text); text-decoration: none; font-weight: 800; font-size: 15px;
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 72px; }
.hero::before {
  content: ""; position: absolute; inset: -40% -20% auto; height: 140%;
  background: repeating-conic-gradient(from 0deg at 50% 30%, rgba(212, 248, 74, 0.07) 0deg 9deg, transparent 9deg 18deg);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 60%);
          mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 60%);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 40px; align-items: center; }
.mascot { width: 150px; margin-bottom: 8px; }
h1 { margin: 0; font-weight: 900; font-size: clamp(56px, 9vw, 104px); line-height: 0.9; letter-spacing: -3px; text-shadow: 0 6px 0 rgba(0, 0, 0, 0.35); }
h1 span { color: var(--lime); display: block; }
.lead { font-size: clamp(18px, 2.2vw, 22px); color: var(--soft); max-width: 520px; margin: 18px 0 26px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill {
  display: inline-flex; align-items: center; justify-content: center; min-height: 60px; padding: 0 28px; border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.32) 0%, rgba(255, 255, 255, 0) 52%), linear-gradient(180deg, #DDFB63, var(--lime-deep));
  box-shadow: 0 12px 28px rgba(169, 214, 31, 0.35);
  color: var(--ink); font-weight: 900; font-size: 19px; text-decoration: none;
}
.note { color: var(--soft); font-size: 15px; }
.hero-shot { justify-self: center; width: min(360px, 100%); filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); border-radius: 28px; }

/* Sections */
section { padding: 56px 0; }
h2 { font-weight: 900; font-size: clamp(32px, 5vw, 48px); line-height: 1; letter-spacing: -1.5px; margin: 0 0 12px; }
h2 em { font-style: normal; color: var(--lime); }
.sub { color: var(--soft); max-width: 640px; margin: 0 0 28px; font-size: 18px; }

.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.game { position: relative; overflow: hidden; border-radius: 22px; padding: 22px; min-height: 170px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4); }
.game::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 50% 115%, var(--glow) 0%, transparent 62%); opacity: 0.75; pointer-events: none; }
.game > * { position: relative; z-index: 1; }
.game h3 { margin: 0 0 6px; font-weight: 900; font-size: 26px; letter-spacing: -0.6px; }
.game p { margin: 0; color: rgba(255, 255, 255, 0.84); font-size: 16px; }
.tag { display: inline-block; margin-bottom: 10px; padding: 4px 12px; border-radius: 999px; font-size: 12px; font-weight: 900; letter-spacing: 0.6px; background: rgba(0, 0, 0, 0.28); }
.tag.free { background: #FFB020; color: #2A0D02; }

.strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip img { width: 100%; border-radius: 18px; box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45); }
@media (max-width: 820px) { .strip { grid-template-columns: repeat(2, 1fr); gap: 12px; } }

.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 22px; }
.card h3 { margin: 0 0 6px; font-size: 20px; font-weight: 900; }
.card p { margin: 0; color: var(--soft); }
.num { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--lime); color: var(--ink); font-weight: 900; margin-bottom: 10px; }

/* Text pages */
.doc { max-width: 760px; padding: 24px 0 72px; }
.doc h1 { font-size: clamp(40px, 7vw, 64px); margin-bottom: 8px; }
.doc h2 { font-size: 26px; letter-spacing: -0.5px; margin-top: 34px; }
.doc p, .doc li { color: var(--soft); font-weight: 600; font-size: 17px; }
.doc strong { color: var(--text); }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px 20px; margin-bottom: 10px; }
summary { cursor: pointer; font-weight: 900; font-size: 18px; }
details p { margin: 10px 0 0; }

footer { border-top: 1px solid var(--line); padding: 28px 0 48px; color: var(--soft); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; }
footer nav { display: flex; gap: 16px; flex-wrap: wrap; }
footer a { color: var(--soft); }

@media (max-width: 820px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 16px; }
  .hero-shot { width: min(300px, 80%); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* Language menu */
.langs { position: relative; background: none; border: 0; padding: 0; margin: 0; }
.langs summary { list-style: none; }
.langs summary::-webkit-details-marker { display: none; }
.langs nav { position: absolute; inset-inline-end: 0; top: 48px; z-index: 5; display: grid; min-width: 200px; padding: 8px; border-radius: 18px; background: var(--raised); border: 1px solid var(--line); box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5); }
.langs nav a { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 10px; font-weight: 800; }
.langs nav a:hover, .langs nav a[aria-current] { background: rgba(212, 248, 74, 0.14); color: var(--lime); }
[dir="rtl"] .doc ul { padding-inline-start: 20px; }
