:root {
  --c-bg: #0b1020;
  --c-bg-2: #131a36;
  --c-card: #1a2247;
  --c-text: #eef1ff;
  --c-muted: #9aa3c7;
  --c-accent: #ffd23f;
  --c-accent-2: #ff5d8f;
  --c-success: #4ade80;
  --c-border: #2a3568;
  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 20px;
  --shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --maxw: 1180px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background:
    radial-gradient(at 20% 0%, #1e2a5e 0%, transparent 50%),
    radial-gradient(at 80% 100%, #3b1e5e 0%, transparent 50%),
    var(--c-bg);
  color: var(--c-text);
  line-height: 1.55;
  min-height: 100vh;
}

a { color: var(--c-accent); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; display: block; }

/* ---------- top bar ---------- */
.topbar {
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--c-border);
  font-size: 13px;
  color: var(--c-muted);
}
.topbar .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.topbar strong { color: var(--c-accent); }

/* ---------- header / nav ---------- */
header.site {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 24px;
  letter-spacing: -0.5px;
  color: var(--c-text);
}
.logo img { width: 36px; height: 36px; display: block; }
.logo span { color: var(--c-accent); }
.logo:hover { text-decoration: none; }
nav.main ul {
  display: flex;
  gap: 24px;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: wrap;
}
nav.main a {
  color: var(--c-text);
  font-weight: 500;
  font-size: 15px;
}
nav.main a.cta {
  background: var(--c-accent);
  color: #1a1a1a;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  font-weight: 700;
}

/* ---------- containers ---------- */
main { max-width: var(--maxw); margin: 0 auto; padding: 40px 20px; }
section { margin-bottom: 64px; }
h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.15; margin: 0 0 16px; }
h2 { font-size: clamp(22px, 3vw, 32px); margin: 0 0 16px; }
h3 { font-size: 19px; margin: 0 0 8px; }
p.lead { font-size: 18px; color: var(--c-muted); max-width: 700px; }

/* ---------- hero ---------- */
.hero {
  text-align: center;
  padding: 60px 20px 30px;
}
.hero .badge {
  display: inline-block;
  background: rgba(255, 210, 63, 0.15);
  color: var(--c-accent);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 20px;
  border: 1px solid rgba(255, 210, 63, 0.3);
}
.hero h1 { max-width: 800px; margin: 0 auto 16px; }
.hero p.lead { margin: 0 auto 28px; }
.hero .cta-row {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--r-sm);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform 0.1s ease;
  text-decoration: none;
}
.btn:hover { transform: translateY(-1px); text-decoration: none; }
.btn-primary { background: var(--c-accent); color: #1a1a1a; }
.btn-secondary {
  background: transparent;
  color: var(--c-text);
  border: 1px solid var(--c-border);
}
.btn-ghost { background: transparent; color: var(--c-muted); }

/* ---------- competition grid ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.card {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
}
.card .thumb {
  height: 180px;
  background: linear-gradient(135deg, #4338ca, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 48px;
}
.card .body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.card .price {
  font-weight: 700;
  color: var(--c-accent);
  font-size: 14px;
  margin-bottom: 8px;
}
.card h3 { margin-bottom: 8px; }
.card .meta { color: var(--c-muted); font-size: 13px; margin-bottom: 16px; flex: 1; }
.card .progress {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  height: 6px;
  overflow: hidden;
  margin-bottom: 8px;
}
.card .progress > div {
  background: var(--c-accent);
  height: 100%;
}
.card .progress-text { font-size: 12px; color: var(--c-muted); margin-bottom: 12px; }
.card .btn { width: 100%; text-align: center; }

/* ---------- competition detail ---------- */
.detail {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 40px;
}
@media (max-width: 800px) { .detail { grid-template-columns: 1fr; } }
.detail .hero-img {
  height: 360px;
  border-radius: var(--r-md);
  background: linear-gradient(135deg, #4338ca, #ec4899);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 96px;
  margin-bottom: 24px;
}
.entry-panel {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px;
  position: sticky;
  top: 20px;
  height: fit-content;
}
.entry-panel .price-big {
  font-size: 32px;
  font-weight: 800;
  color: var(--c-accent);
}
.entry-panel .free-cta {
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.3);
  border-radius: var(--r-sm);
  padding: 12px;
  margin-top: 16px;
  font-size: 14px;
}
.entry-panel .free-cta a { color: var(--c-success); font-weight: 700; }

/* ---------- forms ---------- */
.form-group { margin-bottom: 18px; }
.form-group label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  font-size: 14px;
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 10px 12px;
  background: var(--c-bg-2);
  border: 1px solid var(--c-border);
  border-radius: var(--r-sm);
  color: var(--c-text);
  font-size: 15px;
  font-family: inherit;
}
.form-group .hint { font-size: 12px; color: var(--c-muted); margin-top: 4px; }

/* ---------- callouts ---------- */
.callout {
  background: rgba(255, 210, 63, 0.08);
  border-left: 4px solid var(--c-accent);
  padding: 16px 20px;
  border-radius: var(--r-sm);
  margin: 24px 0;
}
.callout strong { color: var(--c-accent); }
.callout.green {
  background: rgba(74, 222, 128, 0.08);
  border-left-color: var(--c-success);
}
.callout.green strong { color: var(--c-success); }

/* ---------- footer ---------- */
footer.site {
  background: rgba(0, 0, 0, 0.4);
  border-top: 1px solid var(--c-border);
  margin-top: 80px;
  padding: 40px 20px 20px;
  color: var(--c-muted);
  font-size: 14px;
}
footer.site .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 32px;
}
footer.site h4 { color: var(--c-text); margin: 0 0 12px; font-size: 15px; }
footer.site ul { list-style: none; padding: 0; margin: 0; }
footer.site li { margin-bottom: 6px; }
footer.site a { color: var(--c-muted); }
footer.site a:hover { color: var(--c-accent); }
.legal {
  max-width: var(--maxw);
  margin: 32px auto 0;
  padding-top: 20px;
  border-top: 1px solid var(--c-border);
  font-size: 12px;
  color: var(--c-muted);
  line-height: 1.6;
}
.legal .row {
  display: flex;
  gap: 24px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.legal .pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  font-weight: 600;
  color: var(--c-text);
}

/* ---------- age gate modal ---------- */
.age-gate {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}
.age-gate.show { display: flex; }
.age-gate .box {
  background: var(--c-card);
  border-radius: var(--r-lg);
  padding: 40px;
  max-width: 460px;
  width: 100%;
  text-align: center;
  border: 1px solid var(--c-border);
}
.age-gate h2 { margin-bottom: 12px; }
.age-gate .btns { display: flex; gap: 12px; justify-content: center; margin-top: 24px; }

/* ---------- utility ---------- */
.text-center { text-align: center; }
.muted { color: var(--c-muted); }
.mt-2 { margin-top: 16px; }
.mt-4 { margin-top: 32px; }
.steps {
  counter-reset: step;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.steps .step {
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  padding: 24px;
}
.steps .step::before {
  counter-increment: step;
  content: counter(step);
  display: inline-flex;
  width: 36px;
  height: 36px;
  background: var(--c-accent);
  color: #1a1a1a;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  margin-bottom: 12px;
}

/* ---------- carousel ---------- */
.carousel { position: relative; }
.carousel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
  gap: 12px;
}
.carousel-controls { display: flex; gap: 8px; }
.carousel-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--c-border);
  background: var(--c-card);
  color: var(--c-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, transform 0.15s;
}
.carousel-btn:hover {
  background: var(--c-accent);
  color: #1a1a1a;
  border-color: var(--c-accent);
}
.carousel-btn:active { transform: scale(0.95); }
.carousel-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.carousel-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 4px 4px 16px;
  scrollbar-width: none;
}
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track:focus { outline: none; }
.slide {
  flex: 0 0 calc((100% - 32px) / 3);
  min-width: 260px;
  scroll-snap-align: start;
  background: var(--c-card);
  border: 1px solid var(--c-border);
  border-radius: var(--r-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow);
  transition: transform 0.2s, border-color 0.2s;
}
.slide:hover { transform: translateY(-2px); border-color: var(--c-accent); }
.slide-thumb {
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 64px;
  background: var(--g, linear-gradient(135deg, #1e2a5e, #3b1e5e));
}
.slide-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.slide-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--c-accent);
  background: rgba(255, 210, 63, 0.12);
  padding: 4px 10px;
  border-radius: 999px;
}
.slide h3 { margin: 0; }
.slide p { color: var(--c-muted); margin: 0; font-size: 14px; }
.slide .btn { margin-top: auto; align-self: flex-start; }
.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 8px;
}
.carousel-dots button {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: none;
  background: var(--c-border);
  cursor: pointer;
  padding: 0;
  transition: background 0.2s, transform 0.2s;
}
.carousel-dots button.active {
  background: var(--c-accent);
  transform: scale(1.3);
}
@media (max-width: 900px) {
  .slide { flex-basis: calc((100% - 16px) / 2); }
}
@media (max-width: 600px) {
  .slide { flex-basis: 85%; }
}
