/* Lucky 333 Competitions, front screen.
   Palette taken from the logo: near-black ground, deep clover green, gold line work. */

:root {
  --ink: #040805;
  --bg: #050906;
  --green-950: #04150B;
  --green-900: #072415;
  --green-800: #0A3A20;
  --green-700: #0E5229;
  --green-600: #146B36;
  --green-500: #1E8F4A;
  --bright: #45E07A;
  --gold: #E9C46A;
  --gold-light: #F8EBC2;
  --gold-deep: #B8912F;
  --cream: #F4F1E4;
  --muted: rgba(244, 241, 228, 0.62);
  --line: rgba(233, 196, 106, 0.24);
  --line-strong: rgba(233, 196, 106, 0.46);
  --card: linear-gradient(180deg, #081D11 0%, #050E08 100%);
  --radius: 18px;
  --header-h: 68px;
  --font-display: 'Archivo Black', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-slab: 'Alfa Slab One', 'Archivo Black', system-ui, serif;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 68px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background:
    radial-gradient(900px 520px at 50% -10%, rgba(30, 143, 74, 0.20), transparent 70%),
    radial-gradient(700px 420px at 100% 12%, rgba(233, 196, 106, 0.08), transparent 70%),
    radial-gradient(800px 500px at 0% 68%, rgba(14, 82, 41, 0.20), transparent 72%),
    var(--bg);
  color: var(--cream);
  font-family: var(--font-body);
  line-height: 1.5;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 4px 4px;
  opacity: 0.5;
}

main, .site-header, .topbar, .site-footer { position: relative; z-index: 1; }

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

a { color: inherit; text-decoration: none; }

button { font: inherit; color: inherit; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

::selection { background: var(--gold); color: var(--green-950); }

.clover-mini {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  display: inline-block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, var(--bright) 0 34%, transparent 35%),
    radial-gradient(circle at 68% 32%, var(--bright) 0 34%, transparent 35%),
    radial-gradient(circle at 32% 68%, var(--bright) 0 34%, transparent 35%),
    radial-gradient(circle at 68% 68%, var(--bright) 0 34%, transparent 35%);
  filter: drop-shadow(0 0 6px rgba(69, 224, 122, 0.55));
}

.dot {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--gold);
  opacity: 0.6;
  flex: 0 0 auto;
}

/* ---------- Top bar ---------- */

.topbar {
  background: linear-gradient(90deg, #072615, #0B3B21 50%, #072615);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 18px, #000 calc(100% - 18px), transparent 100%);
  border-bottom: 1px solid var(--line);
  overflow: hidden;
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--gold-light);
}

.topbar-track {
  display: flex;
  align-items: center;
  gap: 18px;
  width: max-content;
  padding: 8px 16px;
  animation: marquee 42s linear infinite;
}

.topbar-track span { white-space: nowrap; }

@media (max-width: 639px) {
  .topbar-track {
    width: 100%;
    justify-content: center;
    gap: 0;
    padding: 7px 12px;
    animation: none;
  }
  .topbar-track span:not(:first-child),
  .topbar-track .dot { display: none; }
  .topbar-track span:first-child {
    font-size: 9.5px;
    letter-spacing: 0.12em;
    white-space: normal;
    text-align: center;
  }
}

@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(5, 9, 6, 0.94);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 10px 16px;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 66px;
}

.logo { display: inline-flex; align-items: center; gap: 9px; }

.logo-mark { width: 36px; height: 36px; display: block; }
.logo-mark svg { width: 100%; height: 100%; display: block; }

.logo-type { display: flex; flex-direction: column; line-height: 0.82; }

.logo-line { display: flex; align-items: baseline; gap: 5px; }

.logo-lucky {
  font-family: var(--font-display);
  font-size: 19px;
  letter-spacing: 0.015em;
  color: #2FA65B;
  -webkit-text-stroke: 0.7px rgba(233, 196, 106, 0.9);
  text-shadow: 0 0 14px rgba(69, 224, 122, 0.25);
}

.logo-333 {
  font-family: var(--font-slab);
  font-size: 26px;
  letter-spacing: -0.01em;
  background: linear-gradient(180deg, #FBF1C9 5%, #E9C46A 48%, #B8912F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-sub {
  margin-top: 5px;
  font-size: 7.5px;
  font-weight: 800;
  letter-spacing: 0.36em;
  color: var(--gold);
}

.nav {
  display: none;
  align-items: center;
  gap: 26px;
  margin-left: 22px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(244, 241, 228, 0.78);
}

.nav a { padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { color: var(--gold-light); border-bottom-color: var(--gold); }

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 14px;
}

.header-note {
  display: none;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  cursor: pointer;
  border-radius: 999px;
  padding: 13px 24px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.btn-gold {
  color: #14210F;
  background: linear-gradient(180deg, #FAEFC8 0%, #E9C46A 52%, #C9A33C 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65), 0 6px 22px rgba(233, 196, 106, 0.22);
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 10px 28px rgba(233, 196, 106, 0.34);
}

.btn-ghost {
  color: var(--gold-light);
  background: rgba(233, 196, 106, 0.06);
  border: 1px solid var(--line-strong);
}

.btn-ghost:hover { background: rgba(233, 196, 106, 0.14); }

.btn-sm { padding: 10px 18px; font-size: 11.5px; }
.btn-full { width: 100%; margin-top: 14px; padding: 12px 18px; }

.link-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
}

.link-btn:hover { color: var(--gold-light); }

/* ---------- Hero ---------- */

.hero {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 0;
}

.hero-glow {
  position: absolute;
  inset: 30px 40px auto 40px;
  height: 240px;
  background: radial-gradient(50% 100% at 50% 0%, rgba(69, 224, 122, 0.18), transparent 75%);
  filter: blur(20px);
  pointer-events: none;
}

.slides {
  position: relative;
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  overflow: hidden;
  background:
    linear-gradient(115deg, #0B3D20 0%, #071E12 46%, #050D08 100%);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(248, 235, 194, 0.14);
}

.slides::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 22px;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(233, 196, 106, 0.10), inset 0 -80px 120px rgba(0, 0, 0, 0.35);
}

.slide {
  display: none;
  position: relative;
  grid-template-columns: 1fr;
}

.slide.is-active { display: grid; animation: slideIn 0.45s ease both; }

@keyframes slideIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.slide-copy {
  position: relative;
  z-index: 2;
  padding: 26px 20px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 14px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(4, 21, 11, 0.62);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
}

.slide h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 7.2vw, 4rem);
  line-height: 0.94;
  letter-spacing: -0.02em;
  text-transform: uppercase;
  color: #FBF8EC;
  text-shadow: 0 2px 30px rgba(0, 0, 0, 0.45);
}

.slide h1 em {
  display: block;
  font-style: normal;
  background: linear-gradient(180deg, #FDF4D2 0%, #E9C46A 46%, #B8912F 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 18px rgba(233, 196, 106, 0.22));
}

.slide-sub {
  margin: 0;
  max-width: 42ch;
  font-size: 14.5px;
  color: rgba(244, 241, 228, 0.78);
}

.chips { display: flex; flex-wrap: wrap; gap: 7px; }

.chip {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(4, 21, 11, 0.6);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}

.chip-green { color: var(--bright); border-color: rgba(69, 224, 122, 0.35); }
.chip-hot { color: #FFB59E; border-color: rgba(255, 120, 88, 0.4); }

.slide-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 4px; }

.slide-count {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(244, 241, 228, 0.5);
}

.slide-count b {
  margin-left: 6px;
  font-size: 13px;
  color: var(--gold-light);
  letter-spacing: 0.04em;
}

.slide-art {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
}

.slide-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.30;
}

.slide-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(5, 13, 8, 0.30) 0%, rgba(5, 13, 8, 0.62) 42%, #050D08 100%),
    linear-gradient(90deg, #071E12 4%, rgba(7, 30, 18, 0.72) 54%, rgba(7, 30, 18, 0.28) 100%);
}

.art-tag {
  position: absolute;
  z-index: 2;
  right: 14px;
  bottom: 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #14210F;
  background: linear-gradient(180deg, #FBF1C9, #E9C46A 60%, #C9A33C);
  padding: 7px 12px;
  border-radius: 999px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.4);
}

.hero-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 0 2px;
}

.hero-arrow {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(7, 36, 21, 0.7);
  color: var(--gold-light);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.hero-arrow:hover { background: rgba(14, 82, 41, 0.8); border-color: var(--gold); }
.hero-arrow svg { width: 16px; height: 16px; }

.hero-dots { display: flex; align-items: center; gap: 7px; }

.hero-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(233, 196, 106, 0.55);
  background: transparent;
  cursor: pointer;
  transition: width 0.2s ease, background 0.2s ease;
}

.hero-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--gold-light), var(--gold));
  border-color: var(--gold);
}

/* ---------- Winners ticker ---------- */

.winners {
  display: flex;
  align-items: stretch;
  max-width: 1200px;
  margin: 14px auto 0;
  padding: 0 16px;
  gap: 0;
  overflow: hidden;
}

.winners-label {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  padding: 12px 14px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-950);
  background: linear-gradient(180deg, #FBF1C9, #E9C46A);
  border-radius: 12px 0 0 12px;
}

.winners-viewport {
  flex: 1 1 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-left: 0;
  border-radius: 0 12px 12px 0;
  background: rgba(7, 30, 18, 0.55);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 34px, #000 calc(100% - 34px), transparent 100%);
}

.winners-track {
  display: flex;
  align-items: center;
  gap: 22px;
  width: max-content;
  padding: 12px 18px;
  animation: marquee 55s linear infinite;
}

.winners:hover .winners-track { animation-play-state: paused; }

.winner {
  font-size: 12px;
  color: rgba(244, 241, 228, 0.72);
  white-space: nowrap;
}

.winner b { color: var(--cream); font-weight: 700; }
.winner em { font-style: normal; color: var(--gold); font-weight: 700; }

/* ---------- Promo strip ---------- */

.promo { max-width: 1200px; margin: 0 auto; padding: 18px 16px 0; }

.promo-inner {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.stats-card {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 10px;
  background: rgba(7, 30, 18, 0.55);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
}

.stat { display: flex; align-items: center; gap: 10px; min-width: 0; }

.stat-icon {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--gold-light);
  background: rgba(69, 224, 122, 0.10);
  border: 1px solid rgba(69, 224, 122, 0.22);
}

.stat-icon svg { width: 17px; height: 17px; }

.stat-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.stat-text b { font-family: var(--font-display); font-size: 17px; color: #FBF8EC; letter-spacing: -0.01em; }
.stat-text small { font-size: 10.5px; color: var(--muted); }

.next-draw {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
  padding: 13px 16px;
  border-radius: 16px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(100deg, #0A3A20, #06170D);
}

.next-draw-label {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.next-draw-time { display: flex; align-items: center; gap: 10px; }

.nd-seg { display: flex; flex-direction: column; align-items: center; min-width: 32px; }
.nd-seg b {
  font-family: var(--font-mono);
  font-size: 17px;
  line-height: 1;
  color: #FBF8EC;
  font-variant-numeric: tabular-nums;
}
.nd-seg small { font-size: 8.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }

.next-draw-when { margin-left: auto; font-size: 11px; color: var(--muted); }

.tiles {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.tile {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 12px;
  cursor: pointer;
  text-align: left;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.tile:hover { transform: translateY(-2px); border-color: var(--gold); }

.tile-icon { width: 28px; height: 28px; flex: 0 0 auto; display: grid; place-items: center; }
.tile-icon svg { width: 22px; height: 22px; }

.tile-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.tile-text b { font-size: 13px; font-weight: 800; }
.tile-text small { font-size: 10px; opacity: 0.72; }

.tile-arrow { margin-left: auto; font-size: 15px; opacity: 0.7; }

.tile-gold { background: linear-gradient(140deg, #FBF1C9, #E9C46A 58%, #C9A33C); color: #14210F; border-color: #E9C46A; }
.tile-green { background: linear-gradient(140deg, #2FC467, #146B36 65%, #0A3A20); color: #04150B; border-color: rgba(69, 224, 122, 0.5); }
.tile-dark { background: linear-gradient(140deg, #0E5229, #072415); color: var(--gold-light); }
.tile-outline { background: rgba(4, 21, 11, 0.7); color: var(--gold-light); border-color: var(--line-strong); }

/* ---------- Section heads ---------- */

.section-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.section-head h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #FBF8EC;
  white-space: nowrap;
}

.head-rule { flex: 1 1 40px; height: 1px; background: linear-gradient(90deg, var(--line-strong), transparent); }

.section-note { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }

/* ---------- Live draws rail ---------- */

.rail-section { max-width: 1200px; margin: 0 auto; padding: 22px 16px 0; }

.rail {
  display: flex;
  gap: 12px;
  margin-top: 12px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
  scroll-snap-type: x mandatory;
}

.rail::-webkit-scrollbar { display: none; }

.rail-card {
  flex: 0 0 78%;
  scroll-snap-align: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
}

.rail-art { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.rail-art img { width: 100%; height: 100%; object-fit: cover; }
.rail-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(5, 14, 8, 0.85) 100%);
}

.badge {
  position: absolute;
  z-index: 2;
  top: 10px;
  left: 10px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-light);
  background: rgba(4, 21, 11, 0.78);
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  padding: 5px 9px;
  backdrop-filter: blur(6px);
}

.badge-hot { color: #FFCDBB; border-color: rgba(255, 120, 88, 0.55); background: rgba(52, 12, 6, 0.82); }
.badge-instant { color: var(--bright); border-color: rgba(69, 224, 122, 0.5); }

.badge-price { left: auto; right: 10px; top: auto; bottom: 10px; color: var(--gold); }

.rail-body { padding: 12px 13px 14px; }
.rail-body h3 { margin: 0 0 3px; font-size: 14px; font-weight: 800; color: #FBF8EC; }
.rail-meta { margin: 0 0 9px; font-size: 11px; color: var(--muted); }

.bar { height: 6px; border-radius: 999px; background: rgba(233, 196, 106, 0.14); overflow: hidden; }
.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2FC467, #45E07A);
  box-shadow: 0 0 10px rgba(69, 224, 122, 0.45);
}
.bar .bar-hot { background: linear-gradient(90deg, #E9C46A, #FF9D6B); box-shadow: 0 0 10px rgba(255, 157, 107, 0.45); }

.rail-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 10px;
  font-size: 11px;
  color: var(--gold-light);
  font-family: var(--font-mono);
}

.mini-btn {
  font-family: var(--font-body);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #14210F;
  background: linear-gradient(180deg, #FBF1C9, #E9C46A);
  border-radius: 999px;
  padding: 7px 12px;
}

/* ---------- Category bar ---------- */

.category-bar {
  position: sticky;
  top: var(--header-h);
  z-index: 50;
  margin-top: 22px;
  background: rgba(5, 9, 6, 0.95);
  backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.category-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 9px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.category-inner::-webkit-scrollbar { display: none; }

.pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(7, 30, 18, 0.55);
  color: rgba(244, 241, 228, 0.72);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pill span {
  font-size: 10px;
  color: var(--muted);
  background: rgba(233, 196, 106, 0.10);
  border-radius: 999px;
  padding: 1px 6px;
}

.pill:hover { border-color: var(--line-strong); color: var(--cream); }

.pill.is-active {
  color: #14210F;
  background: linear-gradient(180deg, #FBF1C9, #E9C46A 60%, #C9A33C);
  border-color: var(--gold);
}

.pill.is-active span { color: #14210F; background: rgba(20, 33, 15, 0.14); }

/* ---------- Wall ---------- */

.wall { max-width: 1200px; margin: 0 auto; padding: 20px 16px 0; }

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.comp-card {
  position: relative;
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--card);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.comp-card:hover {
  transform: translateY(-3px);
  border-color: var(--line-strong);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(233, 196, 106, 0.10);
}

.comp-card.is-hidden { display: none; }

.card-art { position: relative; aspect-ratio: 1 / 1; overflow: hidden; background: #071E12; }

.card-art img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.comp-card:hover .card-art img { transform: scale(1.03); }

.card-art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(4, 21, 11, 0.05) 45%, rgba(5, 14, 8, 0.75) 100%);
}

.card-art-crop img { transform: scale(1.22); }

.card-body { display: flex; flex-direction: column; flex: 1 1 auto; padding: 12px 12px 13px; }

.card-body h3 {
  margin: 0 0 4px;
  font-size: 13.5px;
  line-height: 1.22;
  font-weight: 800;
  color: #FBF8EC;
}

.card-prize {
  margin: 0 0 10px;
  font-size: 10.5px;
  line-height: 1.45;
  color: var(--muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 8px;
}

.card-price b {
  font-family: var(--font-slab);
  font-size: 22px;
  line-height: 1;
  background: linear-gradient(180deg, #FBF1C9, #E9C46A 55%, #C9A33C);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.card-price span { font-size: 10px; color: var(--muted); white-space: nowrap; }

.card-price em {
  margin-left: auto;
  font-style: normal;
  font-size: 9.5px;
  font-weight: 700;
  color: var(--bright);
  white-space: nowrap;
}

.card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 7px;
  font-size: 9.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.card-foot .js-countdown {
  font-family: var(--font-mono);
  color: var(--gold-light);
  font-size: 9.5px;
}

.comp-card .btn-full { margin-top: auto; }

/* Game cards */

.game-art {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 46%, rgba(69, 224, 122, 0.24), transparent 58%),
    linear-gradient(160deg, #0E5229, #04150B 70%);
}

.game-art::before {
  content: "";
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  border: 1px dashed rgba(233, 196, 106, 0.35);
}

.game-ring {
  width: 58%;
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    conic-gradient(from 0deg, #E9C46A 0 12%, #0A3A20 12% 25%, #45E07A 25% 37%, #0A3A20 37% 50%, #E9C46A 50% 62%, #0A3A20 62% 75%, #45E07A 75% 87%, #0A3A20 87% 100%);
  box-shadow: 0 0 34px rgba(69, 224, 122, 0.35), inset 0 0 0 6px #04150B, inset 0 0 0 7px var(--line-strong);
  animation: spin 18s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.clover-big {
  width: 42%;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 32%, var(--gold-light) 0 33%, transparent 34%),
    radial-gradient(circle at 68% 32%, var(--gold-light) 0 33%, transparent 34%),
    radial-gradient(circle at 32% 68%, var(--gold-light) 0 33%, transparent 34%),
    radial-gradient(circle at 68% 68%, var(--gold-light) 0 33%, transparent 34%);
  box-shadow: 0 0 18px rgba(233, 196, 106, 0.5);
}

.game-art-scratch { background: radial-gradient(circle at 50% 45%, rgba(233, 196, 106, 0.26), transparent 60%), linear-gradient(160deg, #0A3A20, #04150B 72%); }

.game-scratch {
  width: 62%;
  aspect-ratio: 1.25;
  display: grid;
  place-items: center;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background:
    repeating-linear-gradient(115deg, rgba(244, 241, 228, 0.10) 0 2px, transparent 2px 8px),
    linear-gradient(150deg, #C9A33C, #E9C46A 45%, #8C6D22);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.45);
  transform: rotate(-6deg);
}

.game-scratch span {
  font-family: var(--font-slab);
  font-size: clamp(22px, 8vw, 34px);
  color: #08200F;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.35);
}

/* ---------- How it works ---------- */

.how { max-width: 1200px; margin: 0 auto; padding: 34px 16px 40px; }

.steps { display: grid; gap: 12px; margin-top: 14px; }

.step {
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px 16px 16px 62px;
  background: rgba(7, 30, 18, 0.45);
}

.step-num {
  position: absolute;
  left: 14px;
  top: 14px;
  font-family: var(--font-slab);
  font-size: 30px;
  line-height: 1;
  background: linear-gradient(180deg, #FBF1C9, #E9C46A 55%, #B8912F);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: #FBF8EC; }
.step p { margin: 0; font-size: 12px; line-height: 1.55; color: rgba(244, 241, 228, 0.68); }

.how-note {
  margin: 16px 0 0;
  padding: 12px 14px;
  border-left: 2px solid var(--gold);
  background: rgba(233, 196, 106, 0.05);
  font-size: 11.5px;
  line-height: 1.6;
  color: var(--muted);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(4, 21, 11, 0.5), #040805 60%);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 30px 16px 22px;
  display: grid;
  gap: 24px;
}

.footer-brand p { margin: 12px 0 0; max-width: 30ch; font-size: 12px; line-height: 1.6; color: var(--muted); }

.footer-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

.footer-col { display: flex; flex-direction: column; gap: 7px; }

.footer-col h4 {
  margin: 0 0 2px;
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.footer-col a, .footer-col span { font-size: 11.5px; color: rgba(244, 241, 228, 0.66); }
.footer-col a:hover { color: var(--gold-light); }

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 16px 26px;
  border-top: 1px solid rgba(233, 196, 106, 0.12);
}

.footer-bottom p { margin: 0 0 6px; font-size: 10.5px; line-height: 1.6; color: rgba(244, 241, 228, 0.44); }
.footer-bottom .support-line { color: rgba(233, 196, 106, 0.6); }

/* ---------- Larger screens ---------- */

@media (min-width: 640px) {
  .header-note { display: inline; }
  .stats-card { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .rail-card { flex-basis: calc(50% - 6px); }
  .grid { gap: 16px; }
  .card-body { padding: 15px 15px 16px; }
  .card-body h3 { font-size: 15px; }
  .card-prize { font-size: 11.5px; }
  .card-price b { font-size: 25px; }
  .card-foot { font-size: 10.5px; }
  .card-foot .js-countdown { font-size: 10.5px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .footer-inner { grid-template-columns: 1fr 1.4fr; align-items: start; }
}

@media (min-width: 900px) {
  .hero { padding-top: 22px; }
  .slide { grid-template-columns: 1.02fr 1fr; min-height: 410px; }
  .slide-copy { padding: 34px 36px; gap: 13px; }
  .slide h1 { font-size: clamp(2.4rem, 3.5vw, 3.4rem); }
  .slide-sub { font-size: 15.5px; }
  .slide-art { position: relative; inset: auto; }
  .slide-art img { opacity: 1; }
  .slide-art::after {
    background:
      linear-gradient(90deg, #071E12 0%, rgba(7, 30, 18, 0.55) 16%, rgba(7, 30, 18, 0) 46%),
      linear-gradient(180deg, rgba(5, 14, 8, 0.05) 55%, rgba(5, 14, 8, 0.55) 100%);
  }
  .art-tag { right: 22px; bottom: 22px; }
  .promo-inner { grid-template-columns: 1fr auto; align-items: stretch; }
  .next-draw { align-self: stretch; min-width: 340px; }
  .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 12px; }
  .tile { padding: 18px 16px; }
  .rail { gap: 16px; overflow: visible; }
  .rail-card { flex: 1 1 0; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
  .section-head h2 { font-size: 21px; }
  .wall { padding-top: 26px; }
  .how { padding-top: 44px; }
  .footer-inner { grid-template-columns: 1.1fr 1.6fr; padding-top: 40px; }
}

@media (min-width: 960px) {
  .nav { display: flex; }
}

/* Motion off */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .topbar-track, .winners-track, .game-ring { animation: none; }
  .slide.is-active { animation: none; }
  .comp-card, .tile, .btn, .card-art img { transition: none; }
}
