@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Oswald:wght@500;600;700&display=swap');

:root {
  --navy-950: #060e1a;
  --navy-900: #0a1628;
  --navy-800: #11223b;
  --navy-700: #1a3152;
  --green: #12a150;
  --green-600: #0e8a43;
  --green-50: #eafaf1;
  --gold: #f6b40e;
  --gold-600: #d99a00;
  --red: #e5484d;
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e5e9f0;
  --bg: #f4f6fa;
  --card: #ffffff;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(15,23,42,.06);
  --shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -6px rgba(15,23,42,.10);
  --shadow-lg: 0 24px 60px -12px rgba(6,14,26,.35);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --display: 'Oswald', 'Arial Narrow', Impact, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --team: #13284a; /* one neutral team style; teams are identified by their logo */
}
* { box-sizing: border-box; }
html, body { margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--ink); line-height: 1.55; -webkit-font-smoothing: antialiased; }
a { color: var(--green-600); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
h1, h2, h3, .display { font-family: var(--display); letter-spacing: .01em; line-height: 1.15; }
::selection { background: var(--gold); color: var(--navy-900); }

/* ===== Top bar ===== */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(10,22,40,.88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid rgba(255,255,255,.06); color: #fff; }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none !important; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, var(--green), #0b6b35); box-shadow: 0 6px 16px -4px rgba(18,161,80,.6); overflow: hidden; flex-shrink: 0; }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; }
.brand-mark .ball { width: 20px; height: 20px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ff7a7a, #c0181d 70%); position: relative; }
.brand-mark .ball::after { content: ""; position: absolute; inset: 2px 8px; border-left: 1.5px dashed rgba(255,255,255,.85); border-right: 1.5px dashed rgba(255,255,255,.85); }
.brand-text b { display: block; font-family: var(--display); font-size: 1.15rem; letter-spacing: .03em; text-transform: uppercase; line-height: 1.1; }
.brand-text small { display: block; font-size: .74rem; color: rgba(255,255,255,.6); letter-spacing: .08em; text-transform: uppercase; }
.nav { margin-left: auto; display: flex; gap: 4px; flex-wrap: wrap; }
.nav a, .nav button { color: rgba(255,255,255,.78); text-decoration: none !important; padding: 8px 14px; border-radius: 10px; font-size: .88rem; font-weight: 600; background: transparent; border: 0; cursor: pointer; font-family: inherit; transition: background .2s, color .2s; }
.nav a:hover, .nav button:hover { background: rgba(255,255,255,.08); color: #fff; }
.nav a.active { background: rgba(255,255,255,.12); color: #fff; }

/* ===== Hero ===== */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center; padding: 56px 16px 120px;
  background:
    radial-gradient(900px 400px at 15% -10%, rgba(18,161,80,.35), transparent 60%),
    radial-gradient(700px 400px at 100% 0%, rgba(246,180,14,.18), transparent 60%),
    linear-gradient(180deg, var(--navy-900), var(--navy-800)); }
.hero::before { content: ""; position: absolute; inset: 0; opacity: .07; pointer-events: none;
  background-image: repeating-linear-gradient(90deg, #fff 0 1px, transparent 1px 80px), repeating-linear-gradient(0deg, #fff 0 1px, transparent 1px 80px);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%); }
.hero > * { position: relative; }
.hero h1 { margin: 16px 0 10px; font-size: clamp(2.1rem, 6vw, 3.6rem); text-transform: uppercase; }
.hero h1 .accent { background: linear-gradient(90deg, var(--gold), #ffd866); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p { margin: 0 auto; max-width: 560px; color: rgba(255,255,255,.72); font-size: 1.05rem; }
.hero-ball { position: absolute; width: 90px; height: 90px; border-radius: 50%; right: 8%; top: 38px; opacity: .9;
  background: radial-gradient(circle at 30% 30%, #ff8a8a, #c0181d 55%, #6d0b0e); box-shadow: inset -10px -12px 24px rgba(0,0,0,.4), 0 20px 40px -10px rgba(192,24,29,.5); animation: float 6s ease-in-out infinite; }
.hero-ball::after { content: ""; position: absolute; inset: 6px 36px; border-left: 3px dashed rgba(255,255,255,.75); border-right: 3px dashed rgba(255,255,255,.75); border-radius: 50%; }
@media (max-width: 720px) { .hero-ball { width: 54px; height: 54px; top: 20px; right: 4%; } .hero-ball::after { inset: 4px 21px; border-width: 2px; } }
@keyframes float { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-14px) rotate(25deg); } }
.hero-stats { display: flex; justify-content: center; gap: 12px; margin-top: 28px; flex-wrap: wrap; }
.hero-stat { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 14px; padding: 12px 20px; min-width: 120px; backdrop-filter: blur(6px); }
.hero-stat b { display: block; font-family: var(--display); font-size: 1.8rem; line-height: 1; color: #fff; }
.hero-stat span { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.6); }

.eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(246,180,14,.14); color: var(--gold); border: 1px solid rgba(246,180,14,.35); font-weight: 700; padding: 6px 14px; border-radius: 999px; font-size: .78rem; letter-spacing: .08em; text-transform: uppercase; }
.eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: pulse 1.6s infinite; }

.container { max-width: 1240px; margin: 0 auto; padding: 28px 16px 56px; }
.narrow { max-width: 720px; }
.lift { margin-top: -84px; position: relative; z-index: 2; }

/* ===== Cards ===== */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid rgba(15,23,42,.04); padding: 24px; }
.card + .card { margin-top: 18px; }
.card h2 { margin: 0 0 4px; font-size: 1.4rem; text-transform: uppercase; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: .93rem; }
.section-title { display: flex; align-items: center; gap: 12px; margin: 26px 0 14px; font-family: var(--display); font-size: 1.05rem; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.section-title:first-child { margin-top: 0; }
.section-title .num { width: 28px; height: 28px; border-radius: 8px; background: var(--navy-900); color: #fff; display: grid; place-items: center; font-size: .85rem; }
.section-title::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* ===== Forms ===== */
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 16px; }
@media (max-width: 600px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label, .label { font-weight: 600; font-size: .86rem; color: var(--ink-2); }
.hint { font-size: .8rem; color: var(--muted); }
.req { color: var(--red); }
input[type=text], input[type=tel], input[type=number], input[type=password], input[type=url], select, textarea {
  font: inherit; font-size: .95rem; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--radius-sm); background: #fbfcfe; color: var(--ink); width: 100%; transition: border-color .2s, box-shadow .2s, background .2s;
}
input:hover, select:hover, textarea:hover { border-color: #cfd6e2; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--green); background: #fff; box-shadow: 0 0 0 4px rgba(18,161,80,.12); }
textarea { resize: vertical; min-height: 80px; }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--green); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 600; font-size: .9rem; background: #fbfcfe; user-select: none; transition: all .2s var(--ease); }
.chip span:hover { border-color: var(--green); transform: translateY(-1px); }
.chip input:checked + span { background: var(--navy-900); border-color: var(--navy-900); color: #fff; box-shadow: 0 8px 18px -8px rgba(10,22,40,.6); }
.chip input:focus-visible + span { box-shadow: 0 0 0 4px rgba(18,161,80,.25); }

.photo-pick { display: flex; align-items: center; gap: 20px; padding: 16px; border: 1.5px dashed #cfd6e2; border-radius: var(--radius); background: #fbfcfe; transition: border-color .2s, background .2s; }
.photo-pick.drag { border-color: var(--green); background: var(--green-50); }
.photo-preview { width: 104px; height: 104px; border-radius: 50%; background: #eef2f7 center/cover no-repeat; display: grid; place-items: center; color: var(--muted); flex-shrink: 0; cursor: pointer; position: relative; transition: transform .3s var(--ease); }
.photo-preview:hover { transform: scale(1.04); }
.photo-preview svg { width: 38px; height: 38px; }
.photo-preview.has { box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--green); }
.photo-preview.has svg { display: none; }

/* ===== Buttons ===== */
.btn { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 700; font-size: .92rem; padding: 11px 20px; border-radius: var(--radius-sm); border: 0; cursor: pointer; text-decoration: none !important; background: var(--navy-900); color: #fff; transition: transform .15s var(--ease), box-shadow .2s, background .2s; white-space: nowrap; }
.btn::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%); transform: translateX(-100%); transition: transform .6s var(--ease); }
.btn:hover::after { transform: translateX(100%); }
.btn:hover { transform: translateY(-1px); box-shadow: 0 10px 22px -10px rgba(10,22,40,.6); }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; box-shadow: none; }
.btn.block { width: 100%; padding: 15px; font-size: 1.02rem; }
.btn.green { background: linear-gradient(135deg, var(--green), var(--green-600)); }
.btn.gold { background: linear-gradient(135deg, #ffc93c, var(--gold)); color: #3a2a00; }
.btn.ghost { background: #fff; color: var(--ink-2); border: 1.5px solid var(--line); }
.btn.ghost:hover { border-color: #cfd6e2; box-shadow: var(--shadow-sm); }
.btn.danger { background: var(--red); }
.btn.soft-danger { background: #fff; color: var(--red); border: 1.5px solid #f6cfd0; }
.btn.sm { padding: 7px 12px; font-size: .82rem; border-radius: 10px; }
.btn.icon { padding: 8px; width: 36px; height: 36px; }
.btn .spinner { width: 16px; height: 16px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.alert { padding: 13px 16px; border-radius: var(--radius-sm); margin-bottom: 16px; font-size: .92rem; border: 1px solid transparent; }
.alert.err { background: #fff1f1; color: #9b1c1f; border-color: #fbd5d6; }
.alert.ok { background: var(--green-50); color: #0b5e2f; border-color: #bfeccf; }
.alert.info { background: #fff8e6; color: #7a5500; border-color: #fbe3a6; }
.hidden { display: none !important; }

/* ===== Toasts ===== */
.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: calc(100% - 32px); max-width: 420px; }
.toast { background: var(--navy-900); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: .9rem; font-weight: 600; animation: toastIn .35s var(--ease); display: flex; gap: 10px; align-items: center; }
.toast.err { background: #b4232a; }
.toast.out { animation: toastOut .3s var(--ease) forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(16px) scale(.96); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(10px); } }

/* ===== Sponsors ===== */
.sponsor { display: flex; align-items: center; gap: 16px; padding: 16px; border: 1.5px solid var(--line); border-radius: var(--radius); transition: all .25s var(--ease); background: #fff; }
.sponsor:hover { border-color: #cfd6e2; box-shadow: var(--shadow); transform: translateY(-2px); }
.sponsor + .sponsor { margin-top: 12px; }
.sponsor-logo { width: 60px; height: 60px; border-radius: 14px; background: #f1f4f9 center/contain no-repeat; flex-shrink: 0; display: grid; place-items: center; font-family: var(--display); color: var(--navy-700); font-size: 1.3rem; }
.sponsor-body { flex: 1; min-width: 0; }
.sponsor-body b { display: block; font-size: 1.02rem; }
.sponsor-body small { color: var(--muted); }
.sponsor.done { border-color: #a7e3bf; background: linear-gradient(0deg, var(--green-50), #fff); }
@media (max-width: 520px) { .sponsor { flex-wrap: wrap; } .sponsor .btn { width: 100%; } }

/* ===== Stars ===== */
.stars { display: inline-flex; gap: 0; }
.stars button { background: none; border: 0; padding: 0 1px; font-size: 1.3rem; line-height: 1; cursor: pointer; color: #d9dfe8; transition: transform .15s var(--ease), color .15s; }
.stars button.on { color: var(--gold); }
.stars:hover button { color: var(--gold); }
.stars button:hover ~ button { color: #d9dfe8; }
.stars button:hover { transform: scale(1.25); }
.stars-static { color: var(--gold); letter-spacing: 1px; }

/* ===== Admin ===== */
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.toolbar input, .toolbar select { width: auto; min-width: 150px; padding: 10px 12px; }
.toolbar input[type=text] { flex: 1; min-width: 200px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 20px; }
.stat { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px; position: relative; overflow: hidden; border: 1px solid rgba(15,23,42,.04); }
.stat::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent, var(--green)); }
.stat b { display: block; font-family: var(--display); font-size: 2rem; line-height: 1.05; }
.stat span { color: var(--muted); font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.stat .bar { height: 5px; background: #eef2f7; border-radius: 99px; margin-top: 10px; overflow: hidden; }
.stat .bar i { display: block; height: 100%; background: var(--accent, var(--green)); border-radius: 99px; transition: width .8s var(--ease); }

.admin-head { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.admin-head h1 { margin: 0; font-size: 2rem; text-transform: uppercase; }
.admin-head p { margin: 2px 0 0; color: var(--muted); }

.tabs { display: inline-flex; gap: 4px; padding: 5px; background: #e9edf3; border-radius: 14px; margin-bottom: 20px; flex-wrap: wrap; }
.tabs button { font: inherit; font-weight: 700; font-size: .88rem; padding: 9px 18px; border-radius: 10px; border: 0; background: transparent; cursor: pointer; color: var(--muted); transition: all .2s var(--ease); display: inline-flex; gap: 8px; align-items: center; }
.tabs button:hover { color: var(--ink); }
.tabs button.active { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm), 0 2px 8px rgba(15,23,42,.08); }
.tabs .badge { background: var(--navy-900); color: #fff; font-size: .7rem; padding: 1px 7px; border-radius: 99px; }

.bulkbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; padding: 10px 14px; background: var(--navy-900); color: #fff; border-radius: 12px; margin: 12px 0 0; animation: toastIn .25s var(--ease); }
.bulkbar .btn.ghost { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.15); color: #fff; }

.plist { margin-top: 14px; }
.player-row { display: grid; grid-template-columns: 24px 56px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 6px; border-bottom: 1px solid var(--line); transition: background .2s; animation: rowIn .4s var(--ease) backwards; }
.player-row:hover { background: #f9fbfd; }
.player-row:last-child { border-bottom: 0; }
@keyframes rowIn { from { opacity: 0; transform: translateY(6px); } }
.avatar { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; background: #eef2f7; display: block; }
.avatar.sm { width: 38px; height: 38px; }
.avatar.xs { width: 28px; height: 28px; }
.player-meta { min-width: 0; }
.player-meta .nm { font-weight: 700; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.player-meta small { color: var(--muted); display: block; font-size: .82rem; }
.player-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 760px) { .player-row { grid-template-columns: 24px 56px minmax(0, 1fr); } .player-actions { grid-column: 2 / -1; justify-content: flex-start; } }

.tag { display: inline-flex; align-items: center; gap: 4px; font-size: .7rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: #eef2f7; color: var(--ink-2); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tag.cap { background: var(--gold); color: #3a2a00; }
.tag.rev { background: #e8f0ff; color: #1d4ed8; }
.tag.warn { background: #fff1e0; color: #a14d00; }
.tag.selected { background: #dcfce7; color: #166534; }
.tag.pending { background: #eef2f7; color: #475569; }
.tag.rejected { background: #fee2e2; color: #991b1b; }
.tag.team { color: #fff; background: var(--team); }

.seg { display: inline-flex; border: 1.5px solid var(--line); border-radius: 10px; overflow: hidden; }
.seg button { font: inherit; font-size: .78rem; font-weight: 700; padding: 6px 10px; border: 0; background: #fff; cursor: pointer; color: var(--muted); transition: all .15s; }
.seg button + button { border-left: 1.5px solid var(--line); }
.seg button:hover { background: #f4f6fa; }
.seg button.on[data-status=selected] { background: #16a34a; color: #fff; }
.seg button.on[data-status=pending] { background: #64748b; color: #fff; }
.seg button.on[data-status=rejected] { background: var(--red); color: #fff; }

/* ===== Modal ===== */
.modal-back { position: fixed; inset: 0; background: rgba(6,14,26,.6); backdrop-filter: blur(4px); z-index: 60; display: grid; place-items: center; padding: 16px; animation: fadeIn .2s; }
.modal { background: #fff; border-radius: 22px; width: min(720px, 100%); max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); animation: modalIn .35s var(--ease); }
.modal-head { display: flex; align-items: center; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
.modal-head h3 { margin: 0; font-size: 1.3rem; text-transform: uppercase; flex: 1; }
.modal-body { padding: 24px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 16px 24px; border-top: 1px solid var(--line); flex-wrap: wrap; position: sticky; bottom: 0; background: #fff; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes modalIn { from { opacity: 0; transform: translateY(20px) scale(.97); } }

/* ===== Team logos ===== */
.tlogo { display: inline-grid; place-items: center; flex-shrink: 0; width: var(--s, 44px); height: var(--s, 44px); border-radius: 50%; background: #fff; }
img.tlogo { object-fit: contain; padding: calc(var(--s, 44px) * .1); box-shadow: 0 0 0 1px rgba(15,23,42,.08), 0 4px 12px -4px rgba(0,0,0,.3); }
.tlogo-fb { background: linear-gradient(145deg, #1f3a63, #0c1a30); color: #fff; font-family: var(--display); font-size: calc(var(--s, 44px) * .38); letter-spacing: .02em; box-shadow: inset 0 0 0 2px rgba(255,255,255,.25); }

/* ===== Team cards ===== */
.teams-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 18px; }
.team-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; transition: box-shadow .4s var(--ease), transform .4s var(--ease); border: 1px solid rgba(15,23,42,.04); animation: rowIn .5s var(--ease) backwards; }
.team-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px -16px rgba(15,23,42,.25); }
.team-head { position: relative; padding: 18px 16px; display: flex; align-items: center; gap: 12px; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--team), color-mix(in srgb, var(--team) 60%, #000)); }
.team-head::after { content: ""; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255,255,255,.05); }
.team-head h3 { margin: 0; font-size: 1.25rem; text-transform: uppercase; flex: 1; line-height: 1.1; }
.team-head .count { font-size: .76rem; font-weight: 700; background: rgba(0,0,0,.2); padding: 4px 10px; border-radius: 99px; white-space: nowrap; }
.team-progress { height: 4px; background: #eef2f7; }
.team-progress i { display: block; height: 100%; background: var(--green); transition: width .8s var(--ease); }
.slot { display: flex; align-items: center; gap: 12px; padding: 9px 16px; border-top: 1px solid var(--line); min-height: 56px; }
.slot:first-of-type { border-top: 0; }
.slot .num { width: 18px; font-size: .75rem; color: #a0aabb; font-weight: 700; text-align: right; }
.slot .name { font-weight: 600; font-size: .92rem; line-height: 1.2; }
.slot small { color: var(--muted); font-size: .78rem; display: block; }
.slot.empty { color: #a7b1c2; font-size: .86rem; }
.slot.empty .dot { width: 38px; height: 38px; border-radius: 50%; border: 2px dashed #d5dce7; flex-shrink: 0; }
.slot.fresh { animation: slotIn 1.6s var(--ease); }
@keyframes slotIn { 0% { background: #fff4c7; transform: translateX(-12px); opacity: 0; } 20% { opacity: 1; transform: none; } 100% { background: transparent; } }

.banner { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 20px; display: flex; align-items: center; gap: 14px; margin-bottom: 20px; flex-wrap: wrap; border: 1px solid rgba(15,23,42,.04); }
.live-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--red); color: #fff; font-weight: 800; font-size: .72rem; letter-spacing: .1em; padding: 4px 10px; border-radius: 6px; }
.live-pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .25; } }
.progress { height: 8px; background: #eef2f7; border-radius: 99px; overflow: hidden; flex: 1; min-width: 120px; }
.progress i { display: block; height: 100%; background: linear-gradient(90deg, var(--green), var(--gold)); border-radius: 99px; transition: width .8s var(--ease); }

.success-icon { width: 84px; height: 84px; border-radius: 50%; background: linear-gradient(135deg, #22c55e, var(--green-600)); color: #fff; display: grid; place-items: center; margin: 0 auto 6px; box-shadow: 0 0 0 10px rgba(34,197,94,.15), 0 16px 32px -8px rgba(18,161,80,.6); animation: popIn .6s var(--ease); }
.success-icon svg { width: 40px; height: 40px; stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .5s .35s ease forwards; }
@keyframes popIn { from { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.08); } }
@keyframes draw { to { stroke-dashoffset: 0; } }

.center { text-align: center; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spacer { flex: 1; }
footer.foot { text-align: center; color: var(--muted); font-size: .82rem; padding: 24px 16px 36px; }
.empty-state { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty-state .ico { font-size: 2.4rem; margin-bottom: 6px; }

/* ===== News ticker ===== */
.ticker { position: relative; z-index: 41; display: flex; align-items: stretch; height: 38px; background: #fff; border-bottom: 1px solid var(--line); overflow: hidden; font-size: .86rem; }
.ticker-label { flex-shrink: 0; display: flex; align-items: center; gap: 8px; padding: 0 16px 0 14px; background: var(--green); color: #fff; font-weight: 800; letter-spacing: .14em; font-size: .72rem; text-transform: uppercase; position: relative; }
.ticker-label::after { content: ""; position: absolute; right: -12px; top: 0; bottom: 0; width: 12px; background: var(--green); clip-path: polygon(0 0, 100% 50%, 0 100%); }
.ticker-label .dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.4s infinite; }
.ticker-track { flex: 1; overflow: hidden; position: relative; padding-left: 18px; mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 40px, #000 calc(100% - 40px), transparent); }
.ticker-move { display: inline-flex; align-items: center; height: 100%; white-space: nowrap; will-change: transform; animation: tick var(--dur, 30s) linear infinite; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-move .ti { color: var(--navy-800); font-weight: 600; padding: 0 22px; }
.ticker-move .sep { width: 5px; height: 5px; border-radius: 50%; background: var(--gold); flex-shrink: 0; }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ===== Hero with sponsor video ===== */
.hero-grid { max-width: 1180px; margin: 0 auto; }
.hero-grid.has-video { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: center; text-align: left; }
.hero-grid.has-video .hero-copy p { margin: 0; }
.hero-grid.has-video .hero-stats { justify-content: flex-start; }
.promo { position: relative; border-radius: 20px; overflow: hidden; background: #000; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 30px 70px -20px rgba(0,0,0,.7); animation: fadeUp .9s .2s var(--ease) backwards; }
.promo-frame { position: relative; aspect-ratio: 16 / 9; }
.promo-frame video, .promo-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.promo-frame iframe { pointer-events: none; }
.promo-bar { display: flex; align-items: center; gap: 10px; padding: 10px 12px 10px 14px; background: rgba(10,22,40,.92); color: #fff; font-size: .85rem; }
.promo-tag { background: var(--gold); color: #3a2a00; font-weight: 800; font-size: .66rem; letter-spacing: .12em; text-transform: uppercase; padding: 3px 8px; border-radius: 5px; flex-shrink: 0; }
.promo-cap { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; color: rgba(255,255,255,.85); }
.promo-mute { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); background: rgba(255,255,255,.08); color: #fff; cursor: pointer; display: grid; place-items: center; flex-shrink: 0; transition: background .2s; }
.promo-mute:hover { background: rgba(255,255,255,.18); }
@media (max-width: 860px) {
  .hero-grid.has-video { grid-template-columns: 1fr; gap: 26px; text-align: center; }
  .hero-grid.has-video .promo-col { order: -1; }
  .hero-grid.has-video .hero-copy p { margin: 0 auto; }
  .hero-grid.has-video .hero-stats { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .ticker-move { animation: none; } }

/* ===== Scroll reveal ===== */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.fade-up { animation: fadeUp .8s var(--ease) backwards; }
.d1 { animation-delay: .08s; } .d2 { animation-delay: .16s; } .d3 { animation-delay: .24s; } .d4 { animation-delay: .32s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
}


/* The sponsor credit that sits on top of the video.
   It is deliberately the same width as the video and squared off at the bottom, so the
   two read as one unit rather than a floating badge — and on a phone, where the video
   moves above the headline, the credit is the first thing on the page. */
.promo-col { display: flex; flex-direction: column; min-width: 0; }
.powered {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 11px 18px;
  border-radius: 16px 16px 6px 6px;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.05) 60%);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 0;
  box-shadow: 0 18px 40px -22px rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(6px);
  animation: fadeUp .9s .15s var(--ease) backwards;
}
.powered-chip {
  display: grid;
  place-items: center;
  padding: 4px 7px;
  background: #fff;
  border-radius: 9px;
  box-shadow: 0 2px 8px -2px rgba(0, 0, 0, .5);
}
.powered-chip img { height: 24px; width: auto; max-width: 110px; object-fit: contain; display: block; }
.powered-text {
  font-size: .9rem;
  line-height: 1.2;
  letter-spacing: .015em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.powered-pre { color: rgba(255, 255, 255, .62); font-weight: 600; }
.powered-name { color: var(--gold); font-weight: 800; }

@media (max-width: 860px) {
  .powered { padding: 10px 14px; gap: 9px; border-radius: 14px 14px 5px 5px; }
  .powered-text { font-size: .82rem; }
  .powered-chip img { height: 20px; }
}

/* When the credit is showing, the video tucks under it. */
.powered:not(.hidden) + .promo { border-radius: 6px 6px 20px 20px; }


/* Countdown strip to the live draw, above the sponsor credit on the registration page. */
.livebar {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; margin-bottom: 10px;
  border-radius: 16px; text-decoration: none; color: inherit;
  background: linear-gradient(100deg, rgba(239,68,68,.16), rgba(255,255,255,.06));
  border: 1px solid rgba(239,68,68,.35);
  transition: transform .15s ease, border-color .15s ease;
}
.livebar:hover { transform: translateY(-1px); border-color: rgba(239,68,68,.6); }
.livebar .live-dot { width: 9px; height: 9px; border-radius: 50%; background: #ef4444; flex-shrink: 0; box-shadow: 0 0 0 0 rgba(239,68,68,.7); animation: livePulse 1.6s infinite; }
@keyframes livePulse { 70% { box-shadow: 0 0 0 10px rgba(239,68,68,0); } 100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); } }
.livebar-text { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.livebar-text b { font-size: .9rem; letter-spacing: .02em; }
.livebar-text span { font-size: .74rem; opacity: .75; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.livebar-go { margin-left: auto; font-size: .78rem; font-weight: 700; white-space: nowrap; color: var(--gold); }
@media (max-width: 560px) { .livebar { padding: 10px 13px; gap: 10px; } .livebar-text span { font-size: .7rem; } }
