/* =========================================================
   HOLESHOT RAFFLE — stadium lights, dirt, number plates
   ========================================================= */
:root {
  --bg: #0b0b0d;
  --panel: #16161a;
  --panel-2: #1e1e24;
  --line: #2b2b33;
  --text: #f2f2f2;
  --muted: #9b9ba5;
  --orange: #ff5a1f;
  --orange-2: #ff7a45;
  --yellow: #ffd60a;
  --green: #22c55e;
  --red: #ef4444;
  --dirt: #5a3d24;
  --radius: 10px;
  --display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --body: 'Barlow', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--orange-2); }
a:hover { color: var(--yellow); }
img { max-width: 100%; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.narrow { max-width: 760px; }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; }
.text-red { color: var(--red); }

.h1, .h2, .h3, h1, h2, h3 {
  font-family: var(--display); font-style: italic; font-weight: 800;
  text-transform: uppercase; letter-spacing: .01em; line-height: 1.02; margin: 0 0 .4em;
}
.h1 { font-size: clamp(2.4rem, 5vw, 3.6rem); }
.h2 { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.h3 { font-size: 1.5rem; }
.lead { font-size: 1.15rem; color: #d6d6dc; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 11, 13, .88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.logo-flag {
  width: 30px; height: 30px; transform: skewX(-12deg); border-radius: 3px;
  background: repeating-conic-gradient(#fff 0 25%, #0b0b0d 0 50%) 0 0 / 15px 15px;
  box-shadow: 0 0 0 2px var(--orange);
}
.logo-text { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 1.6rem; letter-spacing: .02em; line-height: 1; }
.logo-text em { color: var(--orange); margin-left: 4px; }
.logo-sm .logo-text { font-size: 1.3rem; }
.logo-sm .logo-flag { width: 24px; height: 24px; background-size: 12px 12px; }
.nav-links { display: flex; gap: 6px; }
.nav-links a {
  color: var(--text); text-decoration: none; font-weight: 600; font-size: .95rem;
  padding: 8px 12px; border-radius: 6px;
}
.nav-links a:hover, .nav-links a.active { background: var(--panel-2); color: var(--yellow); }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); font-size: 1.6rem; cursor: pointer; }

@media (max-width: 760px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    flex-direction: column; background: var(--panel); padding: 10px 20px 18px; border-bottom: 1px solid var(--line);
  }
  .nav-open .nav-links { display: flex; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase;
  font-size: 1.1rem; letter-spacing: .03em; line-height: 1;
  padding: 13px 22px; border-radius: 6px; border: 2px solid transparent;
  text-decoration: none; cursor: pointer; transition: transform .12s, background .15s, border-color .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--orange); color: #0b0b0d; }
.btn-primary:hover { background: var(--yellow); color: #0b0b0d; }
.btn-ghost { background: transparent; color: var(--text); border-color: #3b3b45; }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-green { background: var(--green); color: #04120a; }
.btn-red { background: var(--red); color: #fff; }
.btn-lg { font-size: 1.3rem; padding: 16px 28px; }
.btn-sm { font-size: .95rem; padding: 9px 14px; }
.btn-xs { font-size: .8rem; padding: 6px 9px; border-width: 1px; }
.btn-block { display: flex; width: 100%; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.btn-row form { margin: 0; }
td.btn-row { display: table-cell; white-space: nowrap; }
td.btn-row > form { display: inline-block; margin: 2px; }

/* ---------- Badges ---------- */
.badge {
  display: inline-block; font-family: var(--display); font-weight: 800; font-style: italic;
  text-transform: uppercase; font-size: .82rem; letter-spacing: .05em;
  padding: 4px 10px; border-radius: 4px; background: var(--panel-2); color: var(--muted);
}
.badge-green { background: rgba(34, 197, 94, .15); color: var(--green); }
.badge-red { background: rgba(239, 68, 68, .15); color: #ff7b7b; }
.badge-yellow { background: rgba(255, 214, 10, .15); color: var(--yellow); }
.badge-orange { background: rgba(255, 90, 31, .15); color: var(--orange-2); }
.badge-flag { background: #fff; color: #0b0b0d; }

/* ---------- Checkered strip ---------- */
.checker-strip {
  height: 24px;
  background: repeating-conic-gradient(#f2f2f2 0 25%, #0b0b0d 0 50%) 0 0 / 24px 24px;
  opacity: .9;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden; padding: 110px 0 140px;
  background:
    linear-gradient(180deg, rgba(11,11,13,0) 55%, var(--dirt) 100%),
    radial-gradient(ellipse at 50% 120%, #3a2614 0%, transparent 60%),
    var(--bg);
}
.hero-lights {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(circle at 12% -10%, rgba(255,255,255,.22), transparent 32%),
    radial-gradient(circle at 88% -10%, rgba(255,255,255,.22), transparent 32%),
    radial-gradient(circle at 50% -30%, rgba(255,90,31,.25), transparent 45%);
}
.hero-inner { position: relative; z-index: 2; }
.eyebrow {
  display: inline-block; font-family: var(--display); font-weight: 700; font-style: italic;
  text-transform: uppercase; letter-spacing: .12em; color: var(--yellow);
  border-left: 4px solid var(--orange); padding-left: 10px; margin: 0 0 18px;
}
.hero-title {
  font-family: var(--display); font-style: italic; font-weight: 900; text-transform: uppercase;
  font-size: clamp(3rem, 9vw, 6.6rem); line-height: .9; margin: 0 0 22px; letter-spacing: -.01em;
}
.hero-title span { color: var(--orange); text-shadow: 0 0 40px rgba(255, 90, 31, .45); }
.hero-sub { max-width: 600px; font-size: 1.15rem; color: #d3d3da; margin: 0 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.gate {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70px; z-index: 1;
  background:
    repeating-linear-gradient(90deg, #1a1a1f 0 54px, #2c2c33 54px 58px),
    #1a1a1f;
  border-top: 6px solid var(--orange);
  box-shadow: 0 -10px 30px rgba(0,0,0,.6);
  clip-path: polygon(0 30%, 100% 0, 100% 100%, 0 100%);
}

/* ---------- Sections ---------- */
.section { padding: 70px 0; }
.section-dark { background: var(--panel); }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; margin-bottom: 24px; }
.section-head .h2, .section-head .h3 { margin-bottom: 0; }
.section-head p { margin: 0; }
.link-arrow { font-weight: 700; text-decoration: none; }

/* ---------- Number plates ---------- */
.plate {
  display: inline-grid; place-items: center; width: 64px; height: 54px;
  background: #fff; color: #0b0b0d; border-radius: 8px 8px 14px 14px;
  border: 3px solid var(--orange); transform: skewX(-8deg);
}
.plate span { font-family: var(--display); font-weight: 900; font-style: italic; font-size: 2rem; line-height: 1; transform: skewX(8deg); }
.plate-lg { width: 104px; height: 88px; border-width: 4px; }
.plate-lg span { font-size: 3.4rem; }
.plate-xs { width: 38px; height: 32px; border-width: 2px; border-radius: 5px 5px 9px 9px; }
.plate-xs span { font-size: 1.2rem; }

/* ---------- Round cards ---------- */
.round-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.round-card {
  position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px; display: flex; flex-direction: column; transition: transform .15s, border-color .15s;
}
.round-card:hover { transform: translateY(-3px); border-color: #45454f; }
.round-card.is-open { border-color: rgba(255, 90, 31, .55); box-shadow: 0 10px 40px -20px rgba(255, 90, 31, .6); }
.round-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.round-city { font-size: 1.7rem; margin: 0; }
.round-venue { color: var(--muted); margin: 2px 0 14px; font-size: .95rem; }
.round-meta { list-style: none; padding: 0; margin: 0 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.round-meta li { background: var(--panel-2); border-radius: 6px; padding: 7px 10px; font-weight: 600; }
.round-meta b { display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.round-card .btn { margin-top: auto; }

.countdown { font-family: var(--display); font-weight: 700; font-style: italic; text-transform: uppercase; color: var(--yellow); margin: 0 0 12px; letter-spacing: .03em; }
.countdown.is-urgent { color: var(--orange); }
.countdown.is-closed { color: var(--muted); }
.countdown-lg { font-size: 1.4rem; padding: 10px 0; border-top: 1px dashed var(--line); border-bottom: 1px dashed var(--line); }

/* ---------- Steps / winners ---------- */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.step { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; position: relative; overflow: hidden; }
.step-n { position: absolute; right: 12px; top: -6px; font-family: var(--display); font-weight: 900; font-style: italic; font-size: 4.5rem; color: rgba(255, 90, 31, .16); }
.step h3 { font-size: 1.5rem; color: var(--orange); }
.step p { color: #cfcfd6; margin: 0; }

.winner-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.winner-card {
  background: linear-gradient(135deg, var(--panel) 0%, var(--panel-2) 100%);
  border: 1px solid var(--line); border-left: 5px solid var(--yellow); border-radius: var(--radius); padding: 18px;
}
.winner-name { font-family: var(--display); font-weight: 800; font-style: italic; text-transform: uppercase; font-size: 1.6rem; line-height: 1; }
.winner-round { margin-top: 10px; font-weight: 600; color: var(--orange-2); }

/* ---------- Round page ---------- */
.round-hero {
  padding: 50px 0 40px; border-bottom: 1px solid var(--line);
  background: radial-gradient(ellipse at 20% -40%, rgba(255, 90, 31, .25), transparent 55%), var(--bg);
}
.round-hero-inner { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; }
.round-hero .h1 { margin: 10px 0 4px; }
.round-hero .lead { margin: 0; }
.round-layout { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .round-layout { grid-template-columns: 1fr; } }

.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 24px; }
.prize-panel { position: sticky; top: 90px; }
.prize-big { font-family: var(--display); font-weight: 900; font-style: italic; text-transform: uppercase; font-size: 3rem; line-height: 1; color: var(--yellow); margin: 0 0 10px; }
.facts { list-style: none; padding: 0; margin: 16px 0; }
.facts li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.facts li span { color: var(--muted); }

/* ---------- Forms ---------- */
.form { display: grid; gap: 16px; }
.form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.form small { color: var(--muted); font-weight: 400; }
input, select, textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid #34343d; border-radius: 6px; padding: 11px 12px;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--orange); box-shadow: 0 0 0 3px rgba(255, 90, 31, .2); }
.form label.check { display: flex; align-items: flex-start; gap: 10px; font-weight: 500; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--orange); flex: none; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 620px) { .row2, .row3 { grid-template-columns: 1fr; } }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.pay-box { background: #fff; color: #111; border-radius: var(--radius); padding: 18px; margin-top: 6px; }
.pay-box .muted { color: #666; }
.pay-head { display: flex; justify-content: space-between; align-items: center; font-weight: 700; margin-bottom: 14px; }
.pay-head b { font-family: var(--display); font-style: italic; font-size: 1.8rem; }
.free-box { border: 1px dashed #3d3d47; border-radius: var(--radius); padding: 16px; }
.free-box p { margin: 0 0 12px; font-size: .92rem; color: #cfcfd6; }

.success-box { text-align: center; padding: 20px 0; }
.success-flag {
  width: 80px; height: 80px; margin: 0 auto 16px; transform: skewX(-12deg); border-radius: 6px;
  background: repeating-conic-gradient(#fff 0 25%, #0b0b0d 0 50%) 0 0 / 20px 20px;
  box-shadow: 0 0 0 4px var(--orange), 0 0 40px rgba(255, 90, 31, .5);
  animation: wave 1.4s ease-in-out infinite alternate;
}
@keyframes wave { from { transform: skewX(-12deg) rotate(-4deg); } to { transform: skewX(-6deg) rotate(4deg); } }

/* ---------- Alerts ---------- */
.alert { padding: 13px 16px; border-radius: 8px; margin: 14px 0; border-left: 4px solid; font-weight: 500; }
.alert-success { background: rgba(34, 197, 94, .12); border-color: var(--green); }
.alert-error { background: rgba(239, 68, 68, .12); border-color: var(--red); }
.alert-info { background: rgba(255, 214, 10, .08); border-color: var(--yellow); }

/* ---------- Tables ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); }
.table { width: 100%; border-collapse: collapse; background: var(--panel); }
.table th, .table td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-family: var(--display); font-style: italic; text-transform: uppercase; letter-spacing: .05em; font-size: .9rem; color: var(--muted); background: var(--panel-2); white-space: nowrap; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #1b1b20; }
.table .num { text-align: right; }
.table-compact td { padding: 9px 12px; font-size: .92rem; }

/* ---------- Rules ---------- */
.rules h2 { font-size: 1.4rem; margin-top: 1.6em; color: var(--orange); }
.rules p { color: #d4d4da; }

/* ---------- Footer ---------- */
.site-footer { background: #070708; padding: 36px 0 26px; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; align-items: center; }
.site-footer a { color: var(--text); }
.legal { font-size: .78rem; color: #77777f; margin-top: 22px; line-height: 1.6; }
.legal a { color: #a0a0a8; }

/* ---------- Admin ---------- */
.admin-main { padding-top: 30px; }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin: 0 0 24px; }
.stat { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--orange); border-radius: var(--radius); padding: 16px 18px; }
.stat span { display: block; color: var(--muted); font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.stat b { font-family: var(--display); font-style: italic; font-weight: 900; font-size: 2.1rem; line-height: 1.1; }
.admin-round-head { display: flex; flex-wrap: wrap; align-items: center; gap: 22px; margin-bottom: 24px; }
.admin-round-head > div:nth-child(2) { flex: 1; min-width: 240px; }
.admin-round-head p { margin: 0; }
.draw-panel { border-color: rgba(255, 90, 31, .45); }
.filter-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 10px; }
.filter-row select, .filter-row input { width: auto; flex: 1 1 160px; }
.filter-row input { flex: 2 1 240px; }
