/* Huntrez Revamp — public site styles (concept v1: midnight navy + cyan). */

:root {
  --bg: #07071c;
  --surface: #0f1029;
  --surface-2: #15173a;
  --surface-3: #1b1d45;
  --icon-bg: #13143a;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.18);
  --text: #f4f5ff;
  --text-2: #d9dbf5;
  --text-3: #b9bce0;
  --muted: #9ea1c9;
  --accent: #00e5f5;
  --accent-ink: #07071c;
  --link: #7af4ff;
  --gold: #ffcf5a;
  --live: #6ff5a6;
  --live-dot: #3ef08a;
  --error: #ff8fa3;
  --radius-card: 20px;
  --radius-btn: 12px;
  --font-display: 'Bubblegum Sans', 'Gabarito', system-ui, sans-serif;
  --font-body: 'Gabarito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --container: 1200px;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: #c4fbff; }
button { font: inherit; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

.num { font-variant-numeric: tabular-nums; }

/* ---------- Top bar ---------- */
.topbar {
  --bar-pad: 14px;
  position: sticky; top: 0; z-index: 10;
  background: rgba(7, 7, 28, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding-top: var(--bar-pad); padding-bottom: var(--bar-pad); }
/* Keeps the space under the bar from merging with a first section's top margin, so the compact bar's spacer
   (motion.css) always adds up exactly. */
.topbar + main { display: flow-root; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; }
.brand img { width: 40px; height: 40px; border-radius: 10px; }
.brand span { font-family: var(--font-display); font-size: 24px; letter-spacing: 0.5px; }
.brand:hover { color: var(--text); }
.nav { display: flex; flex-wrap: wrap; gap: 4px; margin-left: 12px; flex: 1 1 auto; }
.nav a { padding: 10px 14px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-weight: 600; }
.nav a:hover, .nav a[aria-current='page'] { background: var(--icon-bg); color: var(--text); }
.top-actions { display: flex; align-items: center; gap: 8px; }

.icon-btn {
  width: 44px; height: 44px; border-radius: var(--radius-btn);
  display: grid; place-items: center;
  background: var(--icon-bg); color: var(--link);
  transition: transform 0.15s ease, background 0.15s ease;
}
.icon-btn:hover { background: var(--surface-3); color: var(--link); transform: translateY(-1px); }
.icon-btn svg, .icon-btn img { width: 18px; height: 18px; }

/* ---------- Buttons ---------- */
.btn {
  min-height: 44px; padding: 0 18px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: var(--radius-btn); border: 0;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn-lg { min-height: 52px; padding: 0 26px; border-radius: 14px; font-size: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { color: var(--accent-ink); transform: translateY(-1px); box-shadow: 0 8px 24px rgba(0, 229, 245, 0.25); }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line-strong); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255, 255, 255, 0.35); }
.btn-soft { background: var(--surface-3); color: var(--text); }
.btn-soft:hover { color: var(--text); background: #24275a; }
.btn-block { width: 100%; }

/* ---------- Pills / chips ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; white-space: nowrap; }
.pill-live { background: rgba(62, 240, 138, 0.12); color: var(--live); }
.pill-soon { background: rgba(255, 207, 90, 0.14); color: var(--gold); }
.pill-idle { background: rgba(158, 161, 201, 0.14); color: #c9ccef; }
.pill-error { background: rgba(255, 143, 163, 0.14); color: var(--error); }
.status-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live-dot); }
.chip { padding: 4px 10px; border-radius: 8px; background: var(--surface-2); font-size: 14px; }
.chip-muted { color: var(--muted); }

/* ---------- Cards ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 24px; }

/* ---------- Headings ---------- */
.display { font-family: var(--font-display); font-weight: 400; letter-spacing: 0.5px; }
.h1 { margin: 0; font-size: clamp(44px, 7vw, 72px); line-height: 1.02; }
.h2 { margin: 0; font-size: clamp(34px, 5vw, 48px); line-height: 1.1; }
.kicker { margin: 0 0 16px; display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; background: var(--icon-bg); color: #c9ccef; font-weight: 600; font-size: 14px; }
.lede { color: var(--text-3); font-size: 19px; }
.muted { color: var(--muted); }
.section { padding-top: 32px; padding-bottom: 64px; } /* keep .container's side padding */
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-head p { margin: 6px 0 0; }

/* ---------- Hero ---------- */
.hero { display: flex; flex-wrap: wrap; gap: 48px; align-items: center; padding-top: 72px; padding-bottom: 56px; }
.hero-copy { flex: 1 1 520px; min-width: 0; }
.hero-copy .lede { margin: 20px 0 32px; max-width: 520px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.accent-text { color: var(--accent); }

.liverace { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; gap: 18px; padding: 20px; background: linear-gradient(180deg, #14163f, var(--surface) 70%); }
.lr-skeleton { display: flex; flex-direction: column; gap: 14px; }
.lr-none { margin: 0; padding: 24px 4px; }
.lr-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.lr-tab { flex: none; height: 40px; padding: 0 16px; display: inline-flex; align-items: center; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; cursor: pointer; }
.lr-tab img { height: 16px; width: auto; max-width: 84px; object-fit: contain; opacity: 0.6; transition: opacity 0.2s ease; }
.lr-tab:hover img { opacity: 1; }
.lr-tab[aria-pressed='true'] { background: var(--surface-3); border-color: var(--accent); }
.lr-tab[aria-pressed='true'] img { opacity: 1; }
.lr-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.lr-pool { font-family: var(--font-display); font-size: clamp(44px, 6vw, 60px); line-height: 1; color: var(--gold); font-variant-numeric: tabular-nums; }
.lr-pool small { font-family: var(--font-body); font-size: 20px; font-weight: 700; color: var(--text-3); }
.lr-sub { margin-top: 4px; color: var(--muted); }
.lr-time { text-align: right; flex: none; }
.lr-time strong { display: block; font-size: 26px; font-weight: 800; line-height: 1.1; }
.lr-time span { color: var(--muted); font-size: 14px; }

.lanes { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.lane { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.lane-rank { text-align: center; font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.lane-track { position: relative; height: 44px; padding: 0 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-radius: 12px; background: var(--surface-2); overflow: hidden; }
.lane-fill { position: absolute; top: 0; bottom: 0; left: 0; width: var(--w); transform-origin: left; background: linear-gradient(90deg, rgba(0, 229, 245, 0.06), rgba(0, 229, 245, 0.34)); border-right: 3px solid var(--accent); transition: width 1s ease; }
.lane-1 .lane-fill { background: linear-gradient(90deg, rgba(255, 207, 90, 0.08), rgba(255, 207, 90, 0.36)); border-right-color: var(--gold); }
.lane-name, .lane-wager { position: relative; }
.lane-name { font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lane-wager { flex: none; color: var(--text-2); font-size: 14px; }
.lane-prize { min-width: 52px; text-align: right; font-weight: 800; color: var(--gold); }
.lane-empty { padding: 22px 4px; color: var(--muted); }

/* ---------- Race cards ---------- */
.race-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.race { display: flex; flex-direction: column; gap: 18px; }
.race-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.race-head img { height: 28px; width: auto; max-width: 170px; object-fit: contain; object-position: left; }
.race-pool { font-size: 44px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold); }
.race-pool small { font-size: 22px; font-weight: 700; color: var(--text-3); }
.race-meta { color: var(--muted); margin-top: 6px; }
.progress-label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }
.progress-label span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.progress { height: 8px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 99px; background: var(--accent); }
.progress.is-soon > span { background: var(--gold); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.race .btn { margin-top: auto; }
.race-paused-note { color: var(--muted); }

/* ---------- Steps: a path that draws itself ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; }
.steps::before, .steps::after { content: ""; position: absolute; z-index: 0; top: 21px; left: 21px; width: calc(66.667% + 27px); height: 2px; border-radius: 2px; }
.steps::before { background: var(--line-strong); }
.steps::after { background: linear-gradient(90deg, var(--accent), var(--link)); transform-origin: left; transform: scaleX(0); transition: transform 1.6s cubic-bezier(0.22, 1, 0.36, 1) 0.2s; }
.steps.is-in::after { transform: scaleX(1); }
.step { position: relative; z-index: 1; padding-top: 64px; } /* above the connecting line, so the line runs behind the number circles */
.step-num { position: absolute; top: 0; left: 0; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: var(--bg); border: 2px solid var(--accent); color: var(--accent); font-family: var(--font-display); font-size: 22px; line-height: 1; }
.step h3 { margin: 0 0 6px; font-size: 20px; }
.step p { margin: 0; max-width: 34ch; color: var(--text-3); }

/* ---------- Bonuses ---------- */
.bonus-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.bonus { display: flex; flex-direction: column; gap: 14px; }
.bonus img { height: 26px; width: auto; max-width: 170px; object-fit: contain; object-position: left; align-self: flex-start; }
.bonus-title { margin: 0; font-size: 20px; font-weight: 700; }
.bonus p { margin: 0; }

/* ---------- Community ---------- */
.community { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; padding: 40px; border-radius: 24px; }
.community-copy { flex: 1 1 360px; min-width: 0; }
.community-copy p { margin: 8px 0 0; color: var(--text-3); }
.social-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.social-cta { min-height: 52px; padding: 0 22px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; transition: transform 0.15s ease; }
.social-cta:hover { transform: translateY(-2px); }
.social-cta svg, .social-cta img { width: 18px; height: 18px; }
.cta-discord { background: #5865f2; color: #ffffff; }
.cta-discord:hover { color: #ffffff; }
.cta-kick { background: #53fc18; color: #07071c; }
.cta-kick:hover { color: #07071c; }
.cta-x { background: #000000; color: #ffffff; border: 1px solid rgba(255, 255, 255, 0.25); }
.cta-x:hover { color: #ffffff; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; padding-top: 32px; padding-bottom: 32px; color: var(--muted); font-size: 14px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 16px; }
.footer-links a { color: var(--text-3); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

/* ---------- Privacy page ---------- */
.container.legal { max-width: calc(760px + 48px); padding-top: 56px; padding-bottom: 80px; }
.legal .lede { margin: 14px 0 0; }
.legal-date { margin: 10px 0 0; color: var(--muted); font-size: 14px; }
.legal-summary { margin: 28px 0 0; padding: 18px 20px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line-strong); }
.legal-summary p { margin: 0; color: var(--text-2); }
.legal h2 { margin: 40px 0 12px; font-size: 22px; }
.legal p, .legal li { color: var(--text-3); line-height: 1.65; }
.legal ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.legal strong { color: var(--text); }
.legal a { color: var(--accent); }
.legal code { padding: 1px 6px; border-radius: 6px; background: var(--surface-2); color: var(--text-2); font-size: 0.88em; overflow-wrap: anywhere; }

/* ---------- Leaderboard page ---------- */
.board-head { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; justify-content: space-between; padding-top: 40px; padding-bottom: 24px; }
.board-title { flex: 1 1 420px; min-width: 0; }
.board-title img { height: 44px; width: auto; max-width: 260px; object-fit: contain; object-position: left; }
.board-title h1 { margin: 16px 0 6px; font-size: clamp(40px, 6vw, 56px); line-height: 1.05; }
.board-title p { margin: 0; color: var(--text-3); }
.clock { display: flex; gap: 10px; }
.clock-cell { min-width: 84px; padding: 14px 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.clock-cell strong { display: block; font-size: 34px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; color: var(--gold); }
.clock-cell span { display: block; margin-top: 6px; font-size: 13px; color: var(--muted); }
.clock-ended { padding: 14px 18px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; }

.race-switch { display: flex; flex-wrap: wrap; gap: 6px; margin-left: auto; }
.race-switch a { padding: 8px 14px; border-radius: 999px; background: var(--icon-bg); color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 14px; }
.race-switch a[aria-current='page'] { background: var(--text); color: var(--bg); font-weight: 700; }

.tabs { display: flex; flex-wrap: wrap; gap: 8px; padding-bottom: 24px; }
.tab { min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--text-2); font-weight: 600; font-size: 15px; cursor: pointer; }
.tab[aria-selected='true'] { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 700; }

.board-layout { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; padding-bottom: 64px; }
.board-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.board-side { flex: 1 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.board-side .card { padding: 20px; border-radius: 18px; }
.board-side h2 { margin: 0 0 10px; font-size: 18px; }
.split-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; font-variant-numeric: tabular-nums; }
.split-grid div { padding: 10px; border-radius: 10px; background: var(--surface-2); }

.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: end; }
.podium-spot { padding: 20px 16px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; min-width: 0; }
.podium-spot.first { padding: 28px 16px; background: #12143a; border-color: rgba(255, 207, 90, 0.5); }
.podium-rank { font-size: 13px; font-weight: 800; letter-spacing: 1px; }
.first .podium-rank { color: var(--gold); }
.second .podium-rank { color: #c9ccef; }
.third .podium-rank { color: #e0a979; }
.avatar { position: relative; width: 64px; height: 64px; margin: 12px auto; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; font-weight: 800; font-size: 22px; color: #c9ccef; overflow: hidden; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.first .avatar { width: 84px; height: 84px; border: 2px solid var(--gold); color: var(--gold); background: #2a2510; }
.podium-name { font-weight: 700; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium-wager { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.podium-prize { margin-top: 10px; padding: 6px; border-radius: 10px; background: var(--surface-2); font-weight: 800; }
.first .podium-prize { background: var(--gold); color: #1a1400; padding: 8px; }
.podium-empty { color: var(--muted); padding: 26px 0; }

.find { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.find label { font-weight: 700; }
.find input { flex: 1 1 220px; min-height: 44px; padding: 0 14px; border-radius: var(--radius-btn); border: 1px solid rgba(255, 255, 255, 0.14); background: var(--bg); color: var(--text); font: 500 15px var(--font-body); }
.find-result { width: 100%; margin: 0; color: var(--text-3); font-size: 14px; }
.find-result:empty { display: none; }

.table-wrap { border-radius: 18px; background: var(--surface); border: 1px solid var(--line); overflow-x: auto; }
.standings { width: 100%; border-collapse: collapse; min-width: 520px; }
.standings th { text-align: left; color: var(--muted); font-size: 14px; padding: 14px 18px; font-weight: 600; }
.standings td { padding: 12px 18px; border-top: 1px solid rgba(255, 255, 255, 0.06); }
.standings .r { text-align: right; font-variant-numeric: tabular-nums; }
.standings .rank { font-weight: 700; color: #c9ccef; width: 70px; }
.standings tr.is-match td { background: rgba(0, 229, 245, 0.08); }
.player { display: flex; align-items: center; gap: 12px; min-width: 0; }
.player .avatar { width: 32px; height: 32px; margin: 0; font-size: 13px; flex: none; }
.player span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.past-list { display: flex; flex-direction: column; gap: 12px; }
.past-item { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 18px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.past-item > div { flex: 1 1 200px; }
.past-item strong { display: block; font-size: 18px; }

.notice { padding: 28px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-align: center; }
.notice h2 { margin: 0 0 6px; font-size: 24px; }
.notice p { margin: 0 0 16px; color: var(--text-3); }

/* ---------- Loading ---------- */
.skeleton { background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 720px) {
  .nav { order: 3; margin-left: 0; width: 100%; }
  .hero { padding-top: 40px; gap: 32px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .steps::before, .steps::after { display: none; }
  .step { padding: 6px 0 0 64px; min-height: 44px; }
  /* From the bottom of each circle down to the top of the next one; the last step has none. */
  .step:not(:last-child)::before, .step:not(:last-child)::after { content: ''; position: absolute; left: 21px; top: 44px; width: 2px; height: calc(100% - 16px); border-radius: 2px; }
  .step:not(:last-child)::before { background: var(--line-strong); }
  .step:not(:last-child)::after { background: linear-gradient(180deg, var(--accent), var(--link)); transform-origin: top; transform: scaleY(0); transition: transform 0.9s cubic-bezier(0.22, 1, 0.36, 1) calc(var(--n) * 0.45s + 0.5s); }
  .steps.is-in .step:not(:last-child)::after { transform: scaleY(1); }
  .community { padding: 28px 22px; }
  .podium { grid-template-columns: 1fr; }
  .podium-spot.first { order: -1; }
  .clock-cell { min-width: 64px; }
  .clock-cell strong { font-size: 26px; }
}

@media (max-width: 560px) {
  .topbar { --bar-pad: 10px; }
  .topbar-inner { gap: 10px; }
  .top-actions { margin-left: auto; }
  .top-actions .btn { display: none; } /* the hero has its own copy-code button */
  .nav { flex-wrap: nowrap; overflow-x: auto; }
  .nav a { padding: 8px 10px; white-space: nowrap; }
  .race-switch { margin-left: 0; width: 100%; flex-wrap: nowrap; overflow-x: auto; }
  .race-switch a { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Partner deposit offers ---------- */
.bonus-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; }
.code-tag { padding: 4px 10px; border-radius: 999px; background: var(--icon-bg); color: var(--link); font-size: 13px; font-weight: 700; white-space: nowrap; }
.bonus-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; color: var(--text-2); }
.bonus-points li { display: flex; align-items: center; gap: 10px; }
.bonus-points li::before { content: ''; flex: none; width: 18px; height: 18px; border-radius: 50%; background: rgba(0, 229, 245, 0.14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.6L13 6.6' fill='none' stroke='%237af4ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }
.bonus .btn { margin-top: auto; }
.claim-link { align-self: center; border: 0; background: none; padding: 6px 4px; color: var(--link); font: 600 14px var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.claim-link:hover { color: #c4fbff; }

/* ---------- How to claim dialog ---------- */
.claim-dialog { width: min(92vw, 560px); padding: 0; border: 1px solid var(--line-strong); border-radius: 22px; background: var(--surface); color: var(--text); }
.claim-dialog::backdrop { background: rgba(3, 3, 12, 0.72); backdrop-filter: blur(6px); }
.claim-dialog[open] { animation: claim-in 0.28s cubic-bezier(0.22, 1, 0.36, 1); }
@keyframes claim-in { from { opacity: 0; transform: translateY(16px) scale(0.97); } }
.claim-box { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.claim-box h2 { margin: 0; font-size: 24px; line-height: 1.2; }
.claim-steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 10px; color: var(--text-2); }
.claim-steps ul { margin: 6px 0 0; padding-left: 18px; color: var(--text-3); }
.claim-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- Live on Kick ---------- */
.kick-live { position: fixed; left: 16px; bottom: 16px; z-index: 20; display: flex; align-items: center; gap: 12px; padding: 10px 16px 10px 14px; border-radius: 999px; background: rgba(15, 16, 41, 0.92); border: 1px solid rgba(83, 252, 24, 0.4); backdrop-filter: blur(10px); color: var(--text); text-decoration: none; box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4); }
.kick-live[hidden] { display: none; }
.kick-live:hover { color: var(--text); border-color: #53fc18; }
.kick-live strong, .kick-live small { display: block; line-height: 1.25; }
.kick-live small { color: var(--muted); font-size: 12px; }
.kick-dot { width: 10px; height: 10px; border-radius: 50%; background: #53fc18; box-shadow: 0 0 0 0 rgba(83, 252, 24, 0.6); animation: kick-pulse 1.8s infinite; }
.kick-live.is-offline { border-color: var(--line-strong); }
.kick-live.is-offline .kick-dot { background: #6f73a8; animation: none; }
@keyframes kick-pulse { 70% { box-shadow: 0 0 0 10px rgba(83, 252, 24, 0); } 100% { box-shadow: 0 0 0 0 rgba(83, 252, 24, 0); } }

.stale-note { display: inline-block; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: rgba(255, 207, 90, 0.1); color: var(--gold); font-size: 14px; }

/* ---------- Sign in with Kick ---------- */
.kick-btn { min-height: 40px; padding: 0 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: var(--radius-btn); background: #53fc18; color: #07110a; font-weight: 800; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease; }
.kick-btn:hover { color: #07110a; background: #7dff4d; transform: translateY(-1px); box-shadow: 0 8px 22px rgba(83, 252, 24, 0.28); }
.kick-btn img { width: 18px; height: 18px; filter: brightness(0); } /* the logo is green, so on the green button it is drawn black */
#kick-auth { position: relative; }

.user-chip-btn { min-height: 44px; padding: 0 12px 0 6px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--icon-bg); color: var(--text); font: 700 14px var(--font-body); cursor: pointer; }
.user-chip-btn:hover { border-color: rgba(83, 252, 24, 0.55); }
.chip-avatar, .winner-avatar { position: relative; flex: none; display: grid; place-items: center; border-radius: 50%; background: #1f2250; color: var(--link); font-weight: 800; overflow: hidden; }
.chip-avatar { width: 30px; height: 30px; font-size: 14px; }
.chip-avatar img, .winner-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.chip-name { max-width: 110px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 220px; padding: 8px; display: flex; flex-direction: column; gap: 2px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-strong); box-shadow: 0 18px 40px rgba(0, 0, 0, 0.5); }
.user-menu[hidden] { display: none; }
.user-menu a, .user-menu button { min-height: 40px; padding: 0 12px; display: flex; align-items: center; border: 0; border-radius: 10px; background: none; color: var(--text-2); font: 600 15px var(--font-body); text-align: left; text-decoration: none; cursor: pointer; }
.user-menu a:hover, .user-menu button:hover { background: var(--surface-3); color: var(--text); }
.user-menu-who { margin: 0; padding: 8px 12px 10px; color: var(--muted); font-size: 14px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.user-menu-who strong { color: var(--text); }
.user-menu .user-menu-danger { margin-top: 4px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; color: #ff9b9b; font-size: 14px; }
.user-menu .user-menu-danger:hover { background: rgba(255, 107, 107, 0.12); color: #ffc2c2; }
.user-menu .user-menu-danger:disabled { opacity: 0.6; cursor: progress; }
.host-badge { margin-left: 8px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 207, 90, 0.16); color: var(--gold); font-size: 12px; font-weight: 800; }

/* ---------- Toasts ---------- */
.toasts { position: fixed; left: 50%; bottom: 20px; z-index: 60; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { padding: 12px 18px; border-radius: 14px; background: var(--surface-3); border: 1px solid var(--line-strong); color: var(--text); font-weight: 600; box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5); animation: toast-in 0.3s cubic-bezier(0.22, 1, 0.36, 1); }
.toast-ok { border-color: rgba(111, 245, 166, 0.5); }
.toast-warn { border-color: rgba(255, 207, 90, 0.5); }
.toast-error { border-color: rgba(255, 143, 163, 0.55); }
.toast.is-leaving { opacity: 0; transform: translateY(8px); transition: opacity 0.5s ease, transform 0.5s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(14px) scale(0.97); } }

/* ---------- Live raffle strip on the homepage ---------- */
.raffle-banner { padding-top: 0; padding-bottom: 8px; }
.raffle-banner[hidden] { display: none; }
.raffle-strip { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; padding: 16px 20px; border-radius: 18px; background: linear-gradient(100deg, rgba(83, 252, 24, 0.12), rgba(0, 229, 245, 0.08) 60%, transparent), var(--surface); border: 1px solid rgba(83, 252, 24, 0.35); color: var(--text); text-decoration: none; transition: transform 0.25s ease, border-color 0.25s ease; }
.raffle-strip:hover { color: var(--text); transform: translateY(-2px); border-color: rgba(83, 252, 24, 0.7); }
.raffle-strip-tag { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 99px; background: rgba(83, 252, 24, 0.14); color: #9dff78; font-weight: 800; font-size: 14px; white-space: nowrap; }
.raffle-strip-main { flex: 1 1 240px; min-width: 0; }
.raffle-strip-main strong { display: block; font-size: 18px; }
.raffle-strip-main span { color: var(--text-3); }

/* ---------- Phones: keep the top bar to two rows even with the Kick sign-in control ---------- */
@media (max-width: 560px) {
  .top-actions { gap: 6px; }
  .top-actions .icon-btn { width: 38px; height: 38px; }
  /* The green Kick button takes the place of the plain Kick icon; the channel link is still in the live pill and the community section. */
  body.has-kick-auth .top-actions .icon-btn[aria-label*='Kick'] { display: none; }
  .kb-extra, .chip-name { display: none; }
  .kick-btn { min-height: 38px; padding: 0 12px; }
  .user-chip-btn { min-height: 38px; padding: 0 4px; }
  .topbar-inner > #kick-auth { order: 2; margin-left: auto; }
  .race-switch { order: 3; }
}

/* ---------- Phones: the four menu links fit on one line ---------- */
@media (max-width: 560px) {
  .nav { gap: 0; margin-right: -8px; }
  .nav a { padding: 8px 9px; font-size: 14.5px; }
}

@media (max-width: 380px) {
  .nav a { padding: 8px 6px; font-size: 14px; }
}

/* ---------- Shared phone rules that lived in the old raffles block ---------- */
@media (max-width: 720px) {
  .chip-name { max-width: 80px; }
  .raffle-strip .btn { width: 100%; }
}

/* ---------- Raffles: the ticket booth ---------- */
.raffles-head { padding-top: 56px; padding-bottom: 8px; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 24px; }
.raffles-intro { flex: 1 1 420px; min-width: 0; }
.raffles-intro .lede { max-width: 52ch; margin: 14px 0 0; }
.signin-card { flex: 0 1 330px; display: flex; flex-direction: column; gap: 10px; padding: 18px; border-radius: 18px; background: var(--surface); border: 1px solid rgba(83, 252, 24, 0.32); }
.signin-card[hidden] { display: none; }
.signin-card p { margin: 0; color: var(--muted); font-size: 14px; }
.kick-btn-lg { min-height: 52px; padding: 0 20px; font-size: 16px; border-radius: 14px; }

.raffle-section { padding-top: 30px; }
.raffle-section:last-child { padding-bottom: 72px; }
.section-label { margin: 0 0 14px; font-size: 16px; font-weight: 800; color: var(--text-3); }
.ticket-stack { display: flex; flex-direction: column; gap: 24px; }

/* The ticket: a main part and a tear-off stub, with real notches cut where they meet. */
.ticket { position: relative; filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.45)); }
.ticket-shape {
  --stub: 220px;
  --notch: 15px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) var(--stub);
  border-radius: 24px;
  background: linear-gradient(135deg, #191c48 0%, #11133a 55%, #0e1030 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  -webkit-mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 98%, #000 100%) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 98%, #000 100%) bottom / 100% 51% no-repeat;
  mask:
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 0, #0000 98%, #000 100%) top / 100% 51% no-repeat,
    radial-gradient(circle var(--notch) at calc(100% - var(--stub)) 100%, #0000 98%, #000 100%) bottom / 100% 51% no-repeat;
}
.ticket.is-open { filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 26px rgba(83, 252, 24, 0.13)); }
.ticket.is-open .ticket-shape { background: linear-gradient(135deg, #15284a 0%, #121a42 45%, #0f1132 100%); box-shadow: inset 0 0 0 1px rgba(83, 252, 24, 0.38); }
.ticket.is-waiting .ticket-shape { box-shadow: inset 0 0 0 1px rgba(255, 207, 90, 0.35); }
.ticket.is-gold { filter: drop-shadow(0 22px 38px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 32px rgba(255, 207, 90, 0.22)); }
.ticket.is-gold .ticket-shape { background: linear-gradient(135deg, #3b3013 0%, #251e0c 50%, #17130a 100%); box-shadow: inset 0 0 0 1px rgba(255, 207, 90, 0.6); }
.ticket-empty { filter: none; }
.ticket-empty .ticket-shape { background: rgba(15, 16, 41, 0.55); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); }

.ticket-main { padding: 28px 30px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.ticket-top { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.tag { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: 99px; font-weight: 800; font-size: 14px; white-space: nowrap; }
.tag-live { background: rgba(83, 252, 24, 0.14); color: #9dff78; }
.tag-live .status-dot { background: #53fc18; }
.tag-wait { background: rgba(255, 207, 90, 0.14); color: var(--gold); }
.tag-gold { background: var(--gold); color: #1a1400; }
.ticket-meta { color: var(--muted); font-weight: 600; font-size: 14px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ticket-title { margin: 0; font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; }
.ticket-prize { margin: 0; font-family: var(--font-display); font-size: clamp(40px, 6vw, 60px); line-height: 1; color: var(--gold); overflow-wrap: anywhere; }
.ticket-desc { margin: 0; color: var(--text-3); max-width: 60ch; }
.ticket-action { margin-top: 6px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.ticket-note { margin: 0; color: var(--text-3); font-weight: 600; }
.ticket-note.is-in { padding: 10px 14px; border-radius: 12px; background: rgba(111, 245, 166, 0.12); color: var(--live); }
.get-ticket { min-width: 220px; }

.stub { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; padding: 24px 18px; border-left: 2px dashed rgba(255, 255, 255, 0.16); text-align: center; min-width: 0; }
.stub-cell { display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.stub-label { color: var(--muted); font-size: 13px; font-weight: 700; }
.stub-big { font-family: var(--font-display); font-weight: 400; font-size: 46px; line-height: 1; color: var(--text); font-variant-numeric: tabular-nums; }
.stub-mine { font-family: var(--font-display); font-weight: 400; font-size: 32px; line-height: 1; color: var(--accent); }
.stub-mine.is-empty { font-family: var(--font-body); font-weight: 700; font-size: 16px; color: var(--muted); }
.stub-foot { color: var(--gold); font-weight: 700; font-size: 13px; }
.barcode { width: 120px; height: 28px; opacity: 0.26; border-radius: 2px; background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 4px, var(--text) 4px 5px, transparent 5px 8px, var(--text) 8px 11px, transparent 11px 13px); }
.is-gold .stub { border-left-color: rgba(255, 207, 90, 0.45); }
.claim-code { padding: 8px 12px; border-radius: 10px; background: rgba(0, 0, 0, 0.35); border: 1px dashed rgba(255, 207, 90, 0.7); color: var(--gold); font: 800 19px ui-monospace, 'Cascadia Mono', Consolas, monospace; letter-spacing: 0.05em; user-select: all; white-space: nowrap; }

.btn-sm { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 10px; }
.btn-gold { background: var(--gold); color: #1a1400; }
.btn-gold:hover { color: #1a1400; background: #ffdb7d; }
.link-btn { border: 0; background: none; padding: 0 2px; color: var(--link); font: 600 13px var(--font-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.link-btn:hover { color: #c4fbff; }

/* Host tools sit on the ticket as one quiet row. */
.host-row { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; margin-top: 4px; border-top: 1px solid rgba(255, 207, 90, 0.18); }
.entrant-list { margin: 0; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.25); color: var(--text-2); font-size: 14px; overflow-wrap: anywhere; }

/* Results: one compact row per finished raffle. */
.results { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.result { display: grid; grid-template-columns: minmax(200px, 1fr) minmax(0, 1.5fr); gap: 18px; align-items: center; padding: 18px 20px; border-radius: 18px; background: rgba(15, 16, 41, 0.78); border: 1px solid var(--line); }
.result.is-mine { border-color: rgba(255, 207, 90, 0.55); }
.result-main { min-width: 0; }
.result-main h3 { margin: 0; font-size: 18px; overflow-wrap: anywhere; }
.result-prize { margin: 2px 0 0; color: var(--gold); font-weight: 800; }
.result-meta { margin: 4px 0 0; color: var(--muted); font-size: 14px; }
.result-side { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.win-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.win-chip { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; max-width: 100%; }
.win-chip.is-first { border-color: rgba(255, 207, 90, 0.55); }
.win-no { padding: 5px 8px; border-radius: 8px; background: rgba(255, 207, 90, 0.14); color: var(--gold); font-family: var(--font-display); font-size: 17px; line-height: 1; }
.mini-avatar { position: relative; flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: #1f2250; color: var(--link); font-weight: 800; font-size: 12px; }
.mini-avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.win-name { font-weight: 700; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 160px; }
.win-code { color: var(--gold); font: 700 13px ui-monospace, 'Cascadia Mono', Consolas, monospace; user-select: all; white-space: nowrap; }

/* Host desk: a slim bar; the composer and drafts open under it. */
.host-desk { padding-top: 24px; }
.host-desk[hidden] { display: none; }
.desk { padding: 14px 16px; border-radius: 18px; background: linear-gradient(90deg, rgba(255, 207, 90, 0.09), transparent 45%), rgba(15, 16, 41, 0.85); border: 1px solid rgba(255, 207, 90, 0.32); display: flex; flex-direction: column; gap: 12px; }
.desk-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.desk-title { display: flex; align-items: baseline; gap: 10px; margin-right: auto; }
.desk-title h2 { margin: 0; font-size: 18px; color: var(--gold); }
.desk-title span { color: var(--muted); font-size: 14px; }
.code-check { display: flex; gap: 8px; flex: 0 1 360px; min-width: 0; }
.code-check .input { min-height: 44px; text-transform: uppercase; }
.code-check .input::placeholder { text-transform: none; }
.check-result { margin: 0; font-weight: 700; }
.check-result:empty { display: none; }
.check-result.ok { color: var(--live); }
.check-result.bad { color: var(--error); }
.composer { padding-top: 14px; border-top: 1px solid rgba(255, 207, 90, 0.18); display: flex; flex-direction: column; gap: 14px; }
.composer[hidden] { display: none; }
.composer-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.composer-grid .span-2 { grid-column: span 2; }
.composer-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.desk-label { margin: 2px 0 8px; font-size: 14px; color: var(--text-3); }
.draft-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.draft { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(0, 0, 0, 0.22); }
.draft-text { display: flex; flex-direction: column; min-width: 0; }
.draft-text span { color: var(--muted); font-size: 14px; }
.draft-actions { display: flex; gap: 8px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-weight: 600; color: var(--text-2); }
.input { min-height: 44px; padding: 0 12px; width: 100%; border-radius: 10px; border: 1px solid rgba(255, 255, 255, 0.14); background: var(--bg); color: var(--text); font: 500 15px var(--font-body); }
.input:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; font-weight: 600; color: var(--text-2); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }
.row-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }

/* Motion: tickets settle in once; your ticket number is stamped when you get it; winners flip in when drawn. */
.first-paint .ticket, .first-paint .result { animation: ticket-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) backwards; }
.first-paint .ticket:nth-child(2), .first-paint .result:nth-child(2) { animation-delay: 0.08s; }
.first-paint .ticket:nth-child(3), .first-paint .result:nth-child(3) { animation-delay: 0.16s; }
@keyframes ticket-in { from { opacity: 0; transform: translateY(18px); } }
.just-entered .stub-mine { animation: stamp 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes stamp { 0% { opacity: 0; transform: scale(2.4) rotate(-14deg); } 55% { opacity: 1; } 100% { transform: none; } }
.just-drawn .win-chip { animation: chip-in 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) backwards; animation-delay: calc(var(--i, 0) * 150ms); }
.ticket.is-gold.just-drawn { animation: ticket-in 0.8s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes chip-in { from { opacity: 0; transform: translateY(10px) scale(0.9); } }

/* Phones: the stub moves under the ticket and the notches move to the sides. */
@media (max-width: 720px) {
  .raffles-head { padding-top: 34px; }
  .signin-card { flex-basis: 100%; }
  .ticket-shape {
    --stub-h: 100px;
    grid-template-columns: 1fr;
    -webkit-mask:
      radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub-h)), #0000 98%, #000 100%) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub-h)), #0000 98%, #000 100%) right / 51% 100% no-repeat;
    mask:
      radial-gradient(circle var(--notch) at 0 calc(100% - var(--stub-h)), #0000 98%, #000 100%) left / 51% 100% no-repeat,
      radial-gradient(circle var(--notch) at 100% calc(100% - var(--stub-h)), #0000 98%, #000 100%) right / 51% 100% no-repeat;
  }
  .ticket.is-gold .ticket-shape { --stub-h: 172px; }
  .ticket-main { padding: 22px 20px 20px; }
  .stub { height: var(--stub-h); flex-direction: row; justify-content: space-around; gap: 12px; padding: 0 16px; border-left: 0; border-top: 2px dashed rgba(255, 255, 255, 0.16); }
  .is-gold .stub { flex-direction: column; justify-content: center; border-top-color: rgba(255, 207, 90, 0.45); }
  .stub-big { font-size: 38px; }
  .barcode { display: none; }
  .get-ticket, .ticket-action .kick-btn { width: 100%; }
  .result { grid-template-columns: 1fr; gap: 12px; }
  .composer-grid { grid-template-columns: 1fr 1fr; }
  .composer-grid .span-2 { grid-column: 1 / -1; }
  .desk-title { flex-basis: 100%; }
  .code-check { flex: 1 1 100%; }
  #new-raffle { width: 100%; }
}
