*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ease: cubic-bezier(.4, 0, .2, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-soft: cubic-bezier(.65, 0, .35, 1);
}

html, body { height: 100%; }

body {
  font-family: 'Epilogue', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
  background: #fff;
  color: #0d1832;
}

#root { min-height: 100%; display: flex; flex-direction: column; }

/* ── Page shell ── */
.page { min-height: 100vh; display: flex; flex-direction: column; background: #fff; }

/* ── Nav ── */
.nav {
  background: #fff;
  border-bottom: 1px solid #e6edf8;
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-inner {
  width: 100%;
  padding: 0 36px;
  height: 84px;
  display: flex;
  align-items: center;
}
.nav-brand { display: flex; align-items: center; flex-shrink: 0; }
.nav-logo { height: 76px; width: auto; display: block; }
.nav-links {
  display: flex;
  align-items: stretch;
  height: 100%;
  gap: 0;
  margin-left: auto;
}
.nav-link {
  display: flex; align-items: center; gap: 8px;
  padding: 0 20px;
  border: 0; background: none;
  font: inherit; font-size: 14px; font-weight: 600;
  color: #66768f;
  cursor: pointer;
  border-bottom: 2.5px solid transparent;
  transition: color .15s var(--ease), border-color .15s var(--ease);
}
.nav-link:hover { color: #0d1832; background: none; }
.nav-link[data-active="1"] { color: #2454d6; border-bottom-color: #2454d6; background: none; }
.nav-link-ico { width: 17px; height: 17px; object-fit: contain; opacity: .55; transition: opacity .15s; }
.nav-link[data-active="1"] .nav-link-ico,
.nav-link:hover .nav-link-ico { opacity: 1; }
.nav-right { display: none; }

/* ── Main ── */
.main { flex: 1; }

/* ── Hero ── */
.hero {
  background: linear-gradient(180deg, #edf3ff 0%, #f5f8ff 55%, #fff 100%);
  text-align: center;
  padding: 56px 24px 48px;
  border-bottom: 1px solid #e6edf8;
}
.hero-icon {
  width: 54px; height: 54px;
  object-fit: contain;
  margin: 0 auto 20px;
  display: block;
  filter: drop-shadow(0 4px 14px rgba(36,84,214,.22));
}
.hero-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -.025em;
  color: #0d1832;
  margin-bottom: 12px;
}
.hero-sub {
  font-size: 15px;
  color: #5c6c8a;
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto;
}

/* ── Content area ── */
.content-area {
  max-width: 640px;
  margin: 0 auto;
  padding: 44px 24px 80px;
  width: 100%;
}
.content-area.wide { max-width: 760px; }

/* ── Form card ── */
.form-card {
  background: #fff;
  border: 1px solid #dde8f8;
  border-radius: 18px;
  padding: 32px 36px 36px;
  box-shadow: 0 2px 4px rgba(15,30,70,.04), 0 10px 36px -14px rgba(15,30,70,.1);
}

/* ── Fields ── */
.field { margin-bottom: 18px; }
.field > label, .group-label {
  display: block;
  font-size: 12.5px; font-weight: 600;
  color: #0d1832;
  margin-bottom: 8px;
  letter-spacing: .005em;
}
.input {
  width: 100%;
  padding: 12px 14px;
  font: inherit; font-size: 14px;
  color: #0d1832;
  background: #fafcff;
  border: 1.5px solid #dae4f6;
  border-radius: 10px;
  transition: border-color .18s var(--ease), box-shadow .18s var(--ease);
}
.input::placeholder { color: #a0b2cc; }
.input:hover { border-color: #b4c8ec; }
.input:focus {
  outline: none;
  border-color: #2454d6;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(36,84,214,.13);
}
.help { font-size: 11.5px; color: #8a9ab8; margin-top: 6px; line-height: 1.5; }

/* ── Checkboxes ── */
.checks { margin: 20px 0 6px; }
.checks .group-label { margin-bottom: 10px; }
.check {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 13px;
  border: 1.5px solid #dae4f6;
  border-radius: 10px;
  margin-bottom: 8px;
  cursor: pointer; font-size: 13.5px; color: #5c6c8a;
  background: #fff;
  transition: border-color .15s var(--ease), background .15s var(--ease), color .15s var(--ease);
  user-select: none;
}
.check:hover { border-color: #b4c8ec; color: #0d1832; }
.check[data-on="1"] { border-color: rgba(36,84,214,.38); background: #eef2fd; color: #0d1832; }
.box {
  position: relative; width: 18px; height: 18px; flex-shrink: 0;
  border: 2px solid #b4c8ec; border-radius: 5px; background: #fff;
  transition: border-color .15s var(--ease), background .15s var(--ease);
}
.check[data-on="1"] .box { background: #2454d6; border-color: #2454d6; }
.box::after {
  content: ''; position: absolute; left: 5px; top: 2px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform .15s var(--ease-out);
}
.check[data-on="1"] .box::after { transform: rotate(45deg) scale(1); }

/* ── Collapsible filter ── */
.filter-toggle {
  display: flex; align-items: center; justify-content: space-between;
  padding: 11px 13px;
  background: #fafcff; border: 1.5px solid #dae4f6;
  border-radius: 10px;
  cursor: pointer; font-size: 13px; font-weight: 600; color: #66768f;
  margin-top: 12px; user-select: none;
  transition: border-color .15s var(--ease), color .15s var(--ease), background .15s var(--ease);
}
.filter-toggle:hover { border-color: #b4c8ec; color: #0d1832; }
.filter-toggle[data-open="1"] { border-color: rgba(36,84,214,.32); background: #eef2fd; color: #1c3aa8; }
.filter-chevron { flex-shrink: 0; transition: transform .25s var(--ease-soft); }
.filter-toggle[data-open="1"] .filter-chevron { transform: rotate(180deg); }
.filter-body { padding-top: 4px; animation: filterIn .2s var(--ease-out); }
@keyframes filterIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ── Buttons ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  width: 100%; padding: 14px 22px;
  font: inherit; font-size: 15px; font-weight: 700; letter-spacing: .005em;
  border: 1.5px solid transparent; border-radius: 12px;
  cursor: pointer;
  transition: transform .1s var(--ease), background .15s var(--ease), box-shadow .15s var(--ease), color .15s var(--ease);
}
.btn:active { transform: scale(.985); }
.btn-primary {
  background: #2454d6; color: #fff;
  box-shadow: 0 1px 3px rgba(36,84,214,.25), 0 8px 22px -8px rgba(36,84,214,.5);
}
.btn-primary:hover { background: #1c3eb8; box-shadow: 0 2px 4px rgba(36,84,214,.3), 0 12px 28px -8px rgba(36,84,214,.55); }
.btn-outline { background: transparent; color: #2454d6; border-color: rgba(36,84,214,.28); }
.btn-outline:hover { background: #eef2fd; border-color: rgba(36,84,214,.45); }
.btn-ghost { background: #f0f4fb; color: #0d1832; border-color: transparent; }
.btn-ghost:hover { background: #e4ecf7; }
.btn:disabled { opacity: .45; cursor: not-allowed; pointer-events: none; }
.btn .arrow { transition: transform .18s var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }
.btn-row { display: flex; gap: 10px; margin-top: 4px; }

/* ── Loading ── */
.loading {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 72px 24px;
  color: #66768f; font-size: 13.5px;
}
.spinner {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid #e0eaf8; border-top-color: #2454d6;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading .lbl { font-family: 'IBM Plex Mono', monospace; letter-spacing: .04em; color: #8a9ab8; }

/* ── Results ── */
.back-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 600; color: #66768f;
  background: none; border: 0; cursor: pointer; padding: 0;
  margin-bottom: 22px; font-family: inherit;
  transition: color .15s var(--ease);
}
.back-link:hover { color: #2454d6; }
.back-link .arrow { transition: transform .18s var(--ease); }
.back-link:hover .arrow { transform: translateX(-3px); }

.head { margin-bottom: 24px; }
.eyebrow {
  font-family: 'IBM Plex Mono', monospace; font-size: 11px;
  letter-spacing: .14em; text-transform: uppercase; color: #2454d6;
  margin-bottom: 10px; display: flex; align-items: center; gap: 8px;
}
.eyebrow::before { content: ''; width: 18px; height: 1.5px; background: #2454d6; opacity: .5; }
.title { font-size: 26px; font-weight: 700; letter-spacing: -.02em; color: #0d1832; }
.subtitle { margin-top: 8px; font-size: 14px; line-height: 1.55; color: #5c6c8a; }
.subtitle a { color: #2454d6; text-decoration: none; word-break: break-all; }
.subtitle a:hover { text-decoration: underline; }

.stats {
  display: flex; border: 1px solid #dde8f8; border-radius: 12px;
  overflow: hidden; margin-bottom: 18px; background: #fafcff;
}
.stat { flex: 1; padding: 16px 20px; border-right: 1px solid #dde8f8; }
.stat:last-child { border-right: 0; }
.stat .k { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: #8a9ab8; font-weight: 600; }
.stat .v { font-family: 'IBM Plex Mono', monospace; font-size: 22px; font-weight: 500; color: #2454d6; margin-top: 5px; font-feature-settings: 'tnum'; }
.stat .v.small { font-size: 15px; }

.criteria { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: #eef2fd; color: #1c3aa8;
  padding: 5px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  border: 1px solid rgba(36,84,214,.14);
}
.pill .tick { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.section-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-label h2 { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a9ab8; }
.reroll-hint { font-size: 12.5px; color: #66768f; line-height: 1.55; margin-bottom: 14px; }

.winners { list-style: none; margin-bottom: 20px; }
.winner {
  display: flex; align-items: flex-start; gap: 14px;
  padding: 14px 16px;
  border: 1.5px solid #dde8f8; border-radius: 12px;
  margin-bottom: 10px; background: #fff;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease);
}
.winner:hover { border-color: rgba(36,84,214,.28); box-shadow: 0 4px 16px -8px rgba(36,84,214,.18); }
@keyframes winnerFlash { 0% { transform: scale(.97); background: #eef2fd; } 100% { transform: none; background: #fff; } }
.winner.flash { animation: winnerFlash .55s var(--ease-out); }
.wnum {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; font-weight: 600;
  color: #2454d6; background: #eef2fd; border: 1px solid rgba(36,84,214,.14);
}
.winner-avatar { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; object-fit: cover; border: 1.5px solid #dde8f8; }
.winner-body { flex: 1; min-width: 0; }
.winner-name { font-size: 14.5px; font-weight: 600; color: #0d1832; letter-spacing: -.01em; }
.winner-handle { font-family: 'IBM Plex Mono', monospace; font-size: 12.5px; margin-top: 3px; }
.winner-handle a { color: #2454d6; text-decoration: none; }
.winner-handle a:hover { text-decoration: underline; }
.winner-bio { font-size: 12.5px; color: #66768f; line-height: 1.5; margin-top: 6px; word-break: break-word; }
.winner-location { font-size: 11.5px; color: #8a9ab8; margin-top: 4px; display: flex; align-items: center; gap: 4px; }
.winner-comment { font-size: 13px; color: #66768f; line-height: 1.5; margin-top: 6px; word-break: break-word; }
.winner-meta { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; color: #8a9ab8; margin-top: 6px; display: flex; align-items: center; gap: 8px; }
.winner-meta .sep { opacity: .4; }

.rr {
  flex-shrink: 0; position: relative; width: 20px; height: 20px; margin-top: 4px;
  border: 2px solid #b4c8ec; border-radius: 6px; background: #fff;
  cursor: pointer; transition: border-color .15s var(--ease), background .15s var(--ease);
}
.rr:hover { border-color: #2454d6; }
.rr[data-on="1"] { background: #2454d6; border-color: #2454d6; }
.rr::after {
  content: ''; position: absolute; left: 6px; top: 2.5px;
  width: 5px; height: 9px; border: solid #fff; border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0); transition: transform .15s var(--ease-out);
}
.rr[data-on="1"]::after { transform: rotate(45deg) scale(1); }
.winner[data-marked="1"] { border-color: rgba(36,84,214,.38); background: #f4f6fe; }

.empty {
  text-align: center; padding: 48px 28px;
  border: 1.5px dashed #b4c8ec; border-radius: 12px;
  margin-bottom: 20px; color: #66768f;
}
.empty .emoji { font-family: 'IBM Plex Mono', monospace; font-size: 13px; color: #8a9ab8; letter-spacing: .04em; }
.empty p { font-size: 13.5px; line-height: 1.55; margin-top: 8px; }

.alert { padding: 12px 15px; border-radius: 10px; margin-bottom: 16px; font-size: 13px; line-height: 1.5; border: 1px solid; }
.alert.error { background: #fef2f2; border-color: #fbcaca; color: #b42318; animation: shake .4s var(--ease); }
.alert.warn { background: #fff8eb; border-color: #fde2a8; color: #9a6700; }
@keyframes shake { 0%,100% { transform: translateX(0); } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }

.share-panel { margin-top: 12px; padding: 14px 16px; background: #fafcff; border: 1px solid #dde8f8; border-radius: 12px; display: flex; flex-direction: column; }
.share-panel-label { font-size: 11.5px; font-weight: 600; color: #8a9ab8; margin-bottom: 8px; }
.share-url-input { width: 100%; font-family: 'IBM Plex Mono', monospace; font-size: 11px; color: #2454d6; background: #fff; border: 1.5px solid rgba(36,84,214,.22); border-radius: 8px; padding: 9px 12px; cursor: pointer; }
.share-url-input:focus { outline: none; border-color: #2454d6; }

.fair { margin-top: 22px; padding: 15px 16px; border: 1px solid #dde8f8; border-radius: 12px; background: #fafcff; }
.fair-head { font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #8a9ab8; margin-bottom: 12px; display: flex; align-items: center; gap: 7px; }
.fair-head::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: rgba(36,84,214,.45); box-shadow: 0 0 0 2.5px rgba(36,84,214,.14); }
.fair-row { display: flex; align-items: baseline; gap: 10px; margin-bottom: 8px; }
.fair-row:last-of-type { margin-bottom: 0; }
.fair-key { font-size: 10.5px; font-weight: 700; color: #8a9ab8; text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; width: 46px; }
.fair-val { font-family: 'IBM Plex Mono', monospace; font-size: 10px; color: #66768f; word-break: break-all; background: #fff; padding: 5px 8px; border-radius: 6px; border: 1px solid #dde8f8; flex: 1; cursor: pointer; user-select: all; transition: border-color .15s; }
.fair-val:hover { border-color: rgba(36,84,214,.3); }
.fair-hint { font-size: 11px; color: #8a9ab8; margin-top: 10px; line-height: 1.55; }
.fair-hint a { color: #2454d6; text-decoration: none; }
.fair-hint a:hover { text-decoration: underline; }

/* ── Footer ── */
.footer { background: #f7f9fd; border-top: 1px solid #e0eaf6; padding: 52px 28px 32px; margin-top: auto; }
.footer-inner { max-width: 1120px; margin: 0 auto 40px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; align-items: start; }
.footer-logo { height: 40px; width: auto; display: block; margin-bottom: 14px; }
.footer-tagline { font-size: 13.5px; color: #66768f; line-height: 1.65; max-width: 230px; }
.footer-col-head { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #0d1832; margin-bottom: 14px; }
.footer-link { display: block; font-size: 13.5px; color: #66768f; margin-bottom: 10px; cursor: default; transition: color .15s; }
.footer-link:hover { color: #2454d6; }
.footer-copy { max-width: 1120px; margin: 0 auto; padding-top: 24px; border-top: 1px solid #e0eaf6; font-size: 12.5px; color: #8a9ab8; }

/* ── Kick Giveaway ── */
.content-area.kick { max-width: 1040px; padding-top: 32px; }
.kick-live { display: flex; flex-direction: column; gap: 16px; }

.kick-topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px;
  background: #fff;
  border: 1px solid #dde8f8;
  border-radius: 14px;
  box-shadow: 0 1px 3px rgba(15,30,70,.04);
}
.kick-channel-name { font-size: 14px; color: #5c6c8a; font-weight: 500; }
.kick-channel-name strong { color: #0d1832; font-weight: 700; }

.kick-status-dot {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
}
.kick-status-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.kick-status-live { color: #16a34a; background: rgba(22,163,74,.1); }
.kick-status-connecting { color: #d97706; background: rgba(217,119,6,.1); }
.kick-status-off { color: #8a9ab8; background: #f0f4fb; }
.kick-status-error { color: #dc2626; background: rgba(220,38,38,.08); }

.kick-grid { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.kick-left { display: flex; flex-direction: column; gap: 16px; }
.kick-right { display: flex; flex-direction: column; gap: 16px; }

.kick-panel {
  background: #fff;
  border-radius: 14px;
  padding: 18px 20px;
  border: 1px solid #dde8f8;
  box-shadow: 0 1px 3px rgba(15,30,70,.04);
}
.kick-panel-title {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: #8a9ab8;
  margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between;
}

.kick-label { display: block; font-size: 12px; font-weight: 600; color: #5c6c8a; margin-bottom: 7px; }
.kick-panel .input:disabled { opacity: .5; }

.kick-btn-primary {
  width: 100%; padding: 11px 16px;
  background: #2454d6; color: #fff;
  font: inherit; font-size: 13.5px; font-weight: 700;
  border: none; border-radius: 10px; cursor: pointer;
  box-shadow: 0 1px 3px rgba(36,84,214,.25), 0 4px 14px -6px rgba(36,84,214,.45);
  transition: background .15s, opacity .15s;
}
.kick-btn-primary:hover { background: #1c3eb8; }
.kick-btn-primary:disabled { opacity: .4; cursor: not-allowed; }

.kick-btn-danger {
  width: 100%; padding: 11px 16px;
  background: rgba(220,38,38,.07); color: #dc2626;
  font: inherit; font-size: 13.5px; font-weight: 700;
  border: 1px solid rgba(220,38,38,.18); border-radius: 10px; cursor: pointer;
  transition: background .15s;
}
.kick-btn-danger:hover { background: rgba(220,38,38,.12); }

.kick-btn-spin {
  width: 100%; padding: 11px 16px;
  background: #53fc18; color: #0a3800;
  font: inherit; font-size: 13.5px; font-weight: 700;
  border: none; border-radius: 10px; cursor: pointer;
  box-shadow: 0 1px 3px rgba(83,252,24,.3), 0 4px 14px -6px rgba(83,252,24,.4);
  transition: background .15s, opacity .15s;
}
.kick-btn-spin:hover { background: #40dd10; }
.kick-btn-spin:disabled { opacity: .35; cursor: not-allowed; box-shadow: none; }

.kick-btn-ghost {
  width: 100%; padding: 9px 16px;
  background: #f0f4fb; color: #66768f;
  font: inherit; font-size: 12.5px; font-weight: 600;
  border: none; border-radius: 10px; cursor: pointer;
  transition: background .15s, color .15s;
}
.kick-btn-ghost:hover { background: #e4ecf7; color: #0d1832; }

.kick-entries { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.kick-entry {
  display: flex; align-items: center; gap: 9px;
  padding: 7px 8px; border-radius: 8px; transition: background .12s;
}
.kick-entry:hover { background: #f7f9fd; }
.kick-entry-name { flex: 1; font-size: 13px; color: #0d1832; font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kick-entry-num { font-size: 11px; color: #8a9ab8; font-family: 'IBM Plex Mono', monospace; }
.kick-entry-remove {
  width: 20px; height: 20px; display: flex; align-items: center; justify-content: center;
  background: none; border: none; color: #b4c8ec; cursor: pointer;
  font-size: 11px; border-radius: 5px; opacity: 0; transition: opacity .12s, background .12s, color .12s;
}
.kick-entry:hover .kick-entry-remove { opacity: 1; }
.kick-entry-remove:hover { background: rgba(220,38,38,.08); color: #dc2626; }

.kick-empty-text { font-size: 12.5px; color: #8a9ab8; text-align: center; padding: 16px 0; }

.kick-avatar-img { border-radius: 50%; object-fit: cover; border: 1.5px solid #dde8f8; flex-shrink: 0; }
.kick-avatar-fallback {
  border-radius: 50%; background: #eef2fd;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; color: #2454d6;
  flex-shrink: 0; border: 1.5px solid #dde8f8;
}

.kick-spinner-panel { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 160px; }
.kick-spinner-wrap { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.kick-strip-outer { position: relative; overflow: hidden; border-radius: 12px; background: #f7f9fd; border: 1px solid #dde8f8; }
.kick-strip-inner { display: flex; position: absolute; top: 0; left: 0; height: 100%; }
.kick-strip-item { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px; flex-shrink: 0; padding: 0 8px; }
.kick-strip-name { font-size: 11.5px; font-weight: 600; color: #5c6c8a; text-align: center; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kick-spinner-fade-l { position: absolute; left: 0; top: 0; height: 100%; width: 80px; background: linear-gradient(to right, #f7f9fd, transparent); z-index: 2; pointer-events: none; }
.kick-spinner-fade-r { position: absolute; right: 0; top: 0; height: 100%; width: 80px; background: linear-gradient(to left, #f7f9fd, transparent); z-index: 2; pointer-events: none; }
.kick-spinner-center { position: absolute; top: 0; height: 100%; z-index: 2; pointer-events: none; border: 2px solid rgba(83,252,24,.55); border-radius: 10px; background: rgba(83,252,24,.06); }
.kick-spinning-label { font-size: 11px; color: #8a9ab8; letter-spacing: .1em; text-transform: uppercase; font-family: 'IBM Plex Mono', monospace; }

.kick-pointer {
  position: absolute;
  width: 0; height: 0;
  transform: translateX(-50%);
  z-index: 10;
  filter: drop-shadow(0 0 5px rgba(83,252,24,.7));
}
.kick-pointer-top {
  top: -11px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 11px solid #53fc18;
}
.kick-pointer-bottom {
  bottom: -11px;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-bottom: 11px solid #53fc18;
}

.kick-spinner-placeholder { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.kick-spinner-placeholder-strip { display: flex; }
.kick-strip-ghost { opacity: .25; }
.kick-avatar-ghost { width: 38px; height: 38px; border-radius: 50%; background: #e4ecf7; }
.kick-name-ghost { width: 56px; height: 9px; border-radius: 5px; background: #e4ecf7; margin-top: 4px; }

.kick-winner-card {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 22px;
  background: rgba(83,252,24,.08); border: 1.5px solid rgba(83,252,24,.3);
  border-radius: 14px;
  animation: kickWinnerIn .4s cubic-bezier(.16,1,.3,1);
}
@keyframes kickWinnerIn { from { opacity: 0; transform: scale(.95); } to { opacity: 1; transform: none; } }
.kick-winner-label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #16a34a; margin-bottom: 3px; }
.kick-winner-name { font-size: 22px; font-weight: 800; color: #14532d; letter-spacing: -.01em; }
.kick-winner-link {
  margin-left: auto; font-size: 12.5px; font-weight: 600; color: #16a34a;
  text-decoration: none; padding: 7px 14px;
  border: 1px solid rgba(22,163,74,.25); border-radius: 8px;
  transition: background .15s; white-space: nowrap;
}
.kick-winner-link:hover { background: rgba(22,163,74,.08); }

.kick-winner-msgs { max-height: 200px; overflow-y: auto; display: flex; flex-direction: column; gap: 6px; }
.kick-msg { display: flex; gap: 7px; padding: 8px 10px; background: #f7f9fd; border-radius: 8px; border: 1px solid #eef2f9; }
.kick-msg-user { font-size: 12.5px; font-weight: 700; color: #16a34a; flex-shrink: 0; }
.kick-msg-text { font-size: 12.5px; color: #5c6c8a; line-height: 1.4; word-break: break-word; }

/* ── Wheel Giveaway ── */
.content-area.wheel { max-width: 940px; padding-top: 36px; }

.wheel-layout {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 28px;
  align-items: start;
}

.wheel-sidebar { /* inherits form-card styles */ }

.wheel-area {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 4px;
}

.wheel-outer {
  position: relative;
  display: inline-block;
  line-height: 0;
  filter: drop-shadow(0 8px 32px rgba(15,30,70,.14)) drop-shadow(0 2px 6px rgba(15,30,70,.07));
}

.wheel-pointer {
  position: absolute;
  top: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0; height: 0;
  border-left: 11px solid transparent;
  border-right: 11px solid transparent;
  border-top: 20px solid #2454d6;
  z-index: 10;
  filter: drop-shadow(0 2px 6px rgba(36,84,214,.45));
}

.wheel-canvas {
  display: block;
  border-radius: 50%;
}

.wheel-hint {
  font-size: 12.5px;
  color: #8a9ab8;
  margin-top: 12px;
  text-align: center;
}

.wheel-entry-list {
  list-style: none;
  max-height: 300px;
  overflow-y: auto;
  margin-top: 4px;
}

.wheel-entry-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  transition: background .12s;
}
.wheel-entry-item:hover { background: #f7f9fd; }

.wheel-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.wheel-entry-name {
  flex: 1;
  font-size: 13px;
  color: #0d1832;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.wheel-entry-remove {
  width: 20px; height: 20px;
  display: flex; align-items: center; justify-content: center;
  background: none; border: none;
  color: #b4c8ec; cursor: pointer;
  font-size: 11px; border-radius: 5px; font-family: inherit;
  opacity: 0;
  transition: opacity .12s, background .12s, color .12s;
}
.wheel-entry-item:hover .wheel-entry-remove { opacity: 1; }
.wheel-entry-remove:hover { background: rgba(220,38,38,.08); color: #dc2626; }

.wheel-clear-btn {
  background: none; border: none; cursor: pointer;
  font: inherit; font-size: 11.5px; font-weight: 600;
  color: #8a9ab8; padding: 0;
  transition: color .15s;
}
.wheel-clear-btn:hover { color: #dc2626; }

.wheel-winner {
  margin-top: 22px;
  padding: 22px 28px;
  background: linear-gradient(135deg, #eef2fd, #f4f6fe);
  border: 1.5px solid rgba(36,84,214,.2);
  border-radius: 16px;
  text-align: center;
  width: 100%;
  max-width: 320px;
  animation: wheelWinnerIn .45s cubic-bezier(.16,1,.3,1);
}
@keyframes wheelWinnerIn { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
.wheel-winner-label {
  font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: #2454d6; margin-bottom: 8px;
}
.wheel-winner-name {
  font-size: 26px; font-weight: 800;
  letter-spacing: -.02em; color: #0d1832;
  word-break: break-word;
}

/* ── Responsive ── */

/* filter-row: two number inputs side-by-side, wraps on mobile */
.filter-row { display: flex; gap: 12px; }
.filter-row .field { flex: 1; min-width: 120px; }

@media (max-width: 720px) {
  /* Nav */
  .nav-inner { padding: 0 16px; }
  .nav-links { gap: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-link { padding: 0 14px; font-size: 13px; white-space: nowrap; }

  /* Hero */
  .hero { padding: 36px 20px 32px; }
  .hero-title { font-size: 27px; }

  /* Content */
  .content-area { padding: 28px 16px 60px; }
  .form-card { padding: 24px 20px 28px; }

  /* Results */
  .stats { flex-direction: column; }
  .stat { border-right: 0; border-bottom: 1px solid #dde8f8; }
  .stat:last-child { border-bottom: 0; }
  .btn-row { flex-direction: column; }

  /* Kick */
  .kick-grid { grid-template-columns: 1fr; }
  .kick-right { order: -1; }

  /* Wheel */
  .wheel-layout { grid-template-columns: 1fr; }
  .wheel-sidebar { order: 2; }

  /* Footer */
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 520px) {
  /* Nav — icon-only, no text labels */
  .nav-inner { height: 60px; }
  .nav-logo { height: 52px; }
  .nav-lbl { display: none; }
  .nav-link { padding: 0 12px; }

  /* Hero */
  .hero { padding: 28px 16px 24px; }
  .hero-icon { width: 44px; height: 44px; margin-bottom: 14px; }
  .hero-title { font-size: 22px; }
  .hero-sub { font-size: 13.5px; }

  /* Content */
  .content-area { padding: 20px 12px 52px; }
  .form-card { padding: 20px 16px 24px; }

  /* Filter row stacks */
  .filter-row { flex-direction: column; gap: 0; }

  /* Results */
  .title { font-size: 22px; }
  .winner { gap: 10px; padding: 12px 12px; }
  .winner-avatar { width: 34px; height: 34px; }
  .share-url-input { font-size: 12px; }

  /* Kick */
  .kick-topbar { flex-wrap: wrap; gap: 8px; padding: 12px 14px; }
  .kick-winner-card { flex-wrap: wrap; gap: 10px; }
  .kick-winner-link { margin-left: 0; }
  .kick-entry { padding: 6px 6px; }
  .kick-avatar-img, .kick-avatar-fallback { width: 24px !important; height: 24px !important; }

  /* Wheel */
  .wheel-winner { max-width: 100%; }
  .wheel-outer { width: 100%; display: flex; justify-content: center; }

  /* Footer */
  .footer { padding: 32px 20px 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-brand { grid-column: auto; }
}

[data-theme="dark"] .stat { border-color: rgba(255,255,255,0.08); }

/* ── Theme toggle ── */
.nav-right { display: flex; align-items: center; margin-left: 16px; }
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  background: none; border: 1.5px solid #e0eaf6;
  border-radius: 10px; cursor: pointer; color: #66768f;
  transition: color .15s var(--ease), border-color .15s var(--ease), background .15s var(--ease);
  flex-shrink: 0;
}
.theme-toggle:hover { color: #0d1832; border-color: #b4c8ec; background: #f0f4fb; }

/* ── Dark mode ── */
[data-theme="dark"] { color-scheme: dark; }
[data-theme="dark"] body,
[data-theme="dark"] .page { background: #0d1829; color: #e4ecfa; }

[data-theme="dark"] .nav { background: #0d1829; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .theme-toggle { border-color: rgba(255,255,255,0.12); color: #8aaad0; }
[data-theme="dark"] .theme-toggle:hover { color: #e4ecfa; border-color: rgba(255,255,255,0.28); background: rgba(255,255,255,0.07); }
[data-theme="dark"] .ico-x { filter: brightness(0) invert(1); }
[data-theme="dark"] .nav-link { color: #4e6a8e; }
[data-theme="dark"] .nav-link:hover { color: #e4ecfa; }
[data-theme="dark"] .nav-link[data-active="1"] { color: #6da4f8; border-bottom-color: #6da4f8; }

[data-theme="dark"] .hero { background: linear-gradient(180deg, #0e1e3a 0%, #0d1829 60%, #0d1829 100%); border-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .hero-title { color: #e4ecfa; }
[data-theme="dark"] .hero-sub { color: #6a8ab0; }

[data-theme="dark"] .form-card { background: #132040; border-color: rgba(255,255,255,0.09); box-shadow: 0 2px 4px rgba(0,0,0,0.3), 0 10px 36px -14px rgba(0,0,0,0.4); }
[data-theme="dark"] .field > label, [data-theme="dark"] .group-label { color: #c8d8f0; }
[data-theme="dark"] .input { background: #0c1830; border-color: rgba(255,255,255,0.11); color: #e4ecfa; }
[data-theme="dark"] .input::placeholder { color: #2e4a68; }
[data-theme="dark"] .input:hover { border-color: rgba(255,255,255,0.22); }
[data-theme="dark"] .input:focus { background: #0c1830; border-color: #2454d6; box-shadow: 0 0 0 3px rgba(36,84,214,0.28); }
[data-theme="dark"] .help { color: #3d5a7e; }

[data-theme="dark"] .check { background: #132040; border-color: rgba(255,255,255,0.1); color: #6a8ab0; }
[data-theme="dark"] .check:hover { border-color: rgba(255,255,255,0.22); color: #e4ecfa; }
[data-theme="dark"] .check[data-on="1"] { background: rgba(36,84,214,0.2); border-color: rgba(36,84,214,0.5); color: #e4ecfa; }
[data-theme="dark"] .box { background: #0c1830; border-color: rgba(255,255,255,0.18); }

[data-theme="dark"] .filter-toggle { background: #0c1830; border-color: rgba(255,255,255,0.1); color: #6a8ab0; }
[data-theme="dark"] .filter-toggle:hover { border-color: rgba(255,255,255,0.22); color: #e4ecfa; }
[data-theme="dark"] .filter-toggle[data-open="1"] { background: rgba(36,84,214,0.18); border-color: rgba(36,84,214,0.42); color: #93b4f0; }

[data-theme="dark"] .btn-outline { color: #6da4f8; border-color: rgba(109,164,248,0.3); }
[data-theme="dark"] .btn-outline:hover { background: rgba(36,84,214,0.18); border-color: rgba(109,164,248,0.55); }
[data-theme="dark"] .btn-ghost { background: rgba(255,255,255,0.07); color: #e4ecfa; }
[data-theme="dark"] .btn-ghost:hover { background: rgba(255,255,255,0.12); }

[data-theme="dark"] .back-link { color: #3d5a7e; }
[data-theme="dark"] .back-link:hover { color: #6da4f8; }
[data-theme="dark"] .eyebrow { color: #6da4f8; }
[data-theme="dark"] .eyebrow::before { background: #6da4f8; }
[data-theme="dark"] .title { color: #e4ecfa; }
[data-theme="dark"] .subtitle { color: #6a8ab0; }
[data-theme="dark"] .subtitle a { color: #6da4f8; }

[data-theme="dark"] .stats { background: #0c1830; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .stat { border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .stat:last-child { border-bottom: 0; }
[data-theme="dark"] .stat .k { color: #3d5a7e; }
[data-theme="dark"] .stat .v { color: #6da4f8; }

[data-theme="dark"] .criteria .pill { background: rgba(36,84,214,0.18); color: #93b4f0; border-color: rgba(36,84,214,0.28); }
[data-theme="dark"] .section-label h2 { color: #3d5a7e; }
[data-theme="dark"] .reroll-hint { color: #3d5a7e; }

[data-theme="dark"] .winner { background: #132040; border-color: rgba(255,255,255,0.09); }
[data-theme="dark"] .winner:hover { border-color: rgba(36,84,214,0.45); box-shadow: 0 4px 16px -8px rgba(0,0,0,0.4); }
[data-theme="dark"] .winner[data-marked="1"] { background: rgba(36,84,214,0.15); border-color: rgba(36,84,214,0.42); }
[data-theme="dark"] .wnum { background: rgba(36,84,214,0.18); border-color: rgba(36,84,214,0.22); color: #6da4f8; }
[data-theme="dark"] .winner-avatar { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .winner-name { color: #e4ecfa; }
[data-theme="dark"] .winner-handle a { color: #6da4f8; }
[data-theme="dark"] .winner-bio { color: #4a6a90; }
[data-theme="dark"] .winner-location { color: #2e4a68; }
[data-theme="dark"] .winner-comment { color: #4a6a90; }
[data-theme="dark"] .winner-meta { color: #2e4a68; }
[data-theme="dark"] .rr { background: #0c1830; border-color: rgba(255,255,255,0.15); }
[data-theme="dark"] .rr:hover { border-color: #6da4f8; }

[data-theme="dark"] .empty { border-color: rgba(255,255,255,0.09); color: #3d5a7e; }
[data-theme="dark"] .empty .emoji { color: #2e4a68; }
[data-theme="dark"] .empty p { color: #3d5a7e; }

[data-theme="dark"] .share-panel { background: #0c1830; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .share-panel-label { color: #3d5a7e; }
[data-theme="dark"] .share-url-input { background: #080f1e; border-color: rgba(36,84,214,0.32); color: #6da4f8; }

[data-theme="dark"] .fair { background: #0c1830; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .fair-head { color: #3d5a7e; }
[data-theme="dark"] .fair-val { background: #080f1e; border-color: rgba(255,255,255,0.08); color: #6a8ab0; }
[data-theme="dark"] .fair-val:hover { border-color: rgba(36,84,214,0.4); }
[data-theme="dark"] .fair-key { color: #3d5a7e; }
[data-theme="dark"] .fair-hint { color: #2e4a68; }
[data-theme="dark"] .fair-hint a { color: #6da4f8; }

[data-theme="dark"] .loading { color: #3d5a7e; }
[data-theme="dark"] .spinner { border-color: rgba(255,255,255,0.08); border-top-color: #2454d6; }
[data-theme="dark"] .loading .lbl { color: #2e4a68; }

[data-theme="dark"] .footer { background: #08101e; border-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .footer-col-head { color: #e4ecfa; }
[data-theme="dark"] .footer-link { color: #3d5a7e; }
[data-theme="dark"] .footer-link:hover { color: #6da4f8; }
[data-theme="dark"] .footer-tagline { color: #3d5a7e; }
[data-theme="dark"] .footer-copy { color: #1e3352; border-color: rgba(255,255,255,0.07); }

/* Kick — dark */
[data-theme="dark"] .kick-topbar { background: #132040; border-color: rgba(255,255,255,0.09); }
[data-theme="dark"] .kick-channel-name { color: #6a8ab0; }
[data-theme="dark"] .kick-channel-name strong { color: #e4ecfa; }
[data-theme="dark"] .kick-panel { background: #132040; border-color: rgba(255,255,255,0.09); }
[data-theme="dark"] .kick-panel-title { color: #3d5a7e; }
[data-theme="dark"] .kick-label { color: #6a8ab0; }
[data-theme="dark"] .kick-entry:hover { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .kick-entry-name { color: #e4ecfa; }
[data-theme="dark"] .kick-entry-num { color: #2e4a68; }
[data-theme="dark"] .kick-empty-text { color: #2e4a68; }
[data-theme="dark"] .kick-avatar-fallback { background: rgba(36,84,214,0.2); color: #6da4f8; border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .kick-avatar-img { border-color: rgba(255,255,255,0.1); }
[data-theme="dark"] .kick-btn-ghost { background: rgba(255,255,255,0.07); color: #6a8ab0; }
[data-theme="dark"] .kick-btn-ghost:hover { background: rgba(255,255,255,0.12); color: #e4ecfa; }
[data-theme="dark"] .kick-strip-outer { background: #0c1830; border-color: rgba(255,255,255,0.08); }
[data-theme="dark"] .kick-spinner-fade-l { background: linear-gradient(to right, #0c1830, transparent); }
[data-theme="dark"] .kick-spinner-fade-r { background: linear-gradient(to left, #0c1830, transparent); }
[data-theme="dark"] .kick-strip-name { color: #6a8ab0; }
[data-theme="dark"] .kick-spinning-label { color: #2e4a68; }
[data-theme="dark"] .kick-avatar-ghost { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .kick-name-ghost { background: rgba(255,255,255,0.06); }
[data-theme="dark"] .kick-msg { background: #0c1830; border-color: rgba(255,255,255,0.07); }
[data-theme="dark"] .kick-msg-text { color: #6a8ab0; }

/* Wheel — dark */
[data-theme="dark"] .wheel-entry-item:hover { background: rgba(255,255,255,0.04); }
[data-theme="dark"] .wheel-entry-name { color: #e4ecfa; }
[data-theme="dark"] .wheel-hint { color: #2e4a68; }
[data-theme="dark"] .wheel-clear-btn { color: #2e4a68; }
[data-theme="dark"] .wheel-clear-btn:hover { color: #dc2626; }
[data-theme="dark"] .wheel-winner { background: linear-gradient(135deg, rgba(36,84,214,0.22), rgba(36,84,214,0.12)); border-color: rgba(36,84,214,0.32); }
[data-theme="dark"] .wheel-winner-name { color: #e4ecfa; }
