/* Fantasy Leagues Lottery — arena stage UI */
.lottery-hub {
  display: none;
  padding: 0 0 64px;
  min-height: 70vh;
}
.lottery-hub.active { display: block; }

.fll-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px 20px 40px;
  color: #e8ecf2;
}

.fll-hero {
  margin-bottom: 28px;
  position: relative;
}
.fll-hero::before {
  content: '';
  position: absolute;
  inset: -40px -20% auto;
  height: 180px;
  background:
    radial-gradient(ellipse 60% 80% at 50% 0%, rgba(255, 166, 77, 0.18), transparent 70%),
    radial-gradient(ellipse 40% 60% at 80% 20%, rgba(29, 66, 138, 0.2), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.fll-hero > * { position: relative; z-index: 1; }
.fll-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #ffa64d;
  margin: 0 0 8px;
}
.fll-hero h1 {
  font-size: clamp(28px, 5vw, 42px);
  font-weight: 800;
  letter-spacing: -0.5px;
  margin: 0 0 10px;
  line-height: 1.1;
}
.fll-hero h1 em {
  font-style: normal;
  background: linear-gradient(90deg, #ffb965, #ffa64d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.fll-sub {
  margin: 0;
  color: #9aa3b2;
  font-size: 15px;
  max-width: 520px;
  line-height: 1.5;
}
.fll-sub code {
  font-size: 12px;
  background: rgba(255, 255, 255, 0.06);
  padding: 2px 7px;
  border-radius: 4px;
  color: #c8d0dc;
}

.fll-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 860px) {
  .fll-grid { grid-template-columns: 1fr; }
}

.fll-panel {
  background: linear-gradient(165deg, rgba(22, 28, 40, 0.95), rgba(12, 16, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  padding: 20px 18px 22px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}
.fll-panel h2 {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aa3b2;
  margin: 0 0 16px;
}

.fll-label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: #9aa3b2;
  margin-bottom: 16px;
}
.fll-hint { font-weight: 500; color: #6b7385; font-size: 12px; }
.fll-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  padding: 11px 12px;
  color: #e8ecf2;
  font: inherit;
  font-size: 15px;
}
.fll-input:focus {
  outline: none;
  border-color: rgba(255, 166, 77, 0.55);
  box-shadow: 0 0 0 3px rgba(255, 166, 77, 0.12);
}

.fll-count-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.fll-count { width: 72px; text-align: center; }
.fll-count-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #e8ecf2;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
}
.fll-count-btn:hover { border-color: rgba(255, 166, 77, 0.45); color: #ffa64d; }

.fll-mode-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.fll-mode {
  flex: 1;
  min-width: 90px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #c8d0dc;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.fll-mode.is-on {
  border-color: rgba(255, 166, 77, 0.55);
  background: rgba(255, 166, 77, 0.12);
  color: #ffd089;
}
.fll-mode-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  color: #6b7385;
  line-height: 1.45;
}

.fll-teams-head {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6b7385;
  margin: 8px 0 8px;
  padding: 0 4px;
}
.fll-teams-head-3 {
  grid-template-columns: 1fr 64px 52px;
}
.fll-row-pct {
  font-size: 12px;
  font-weight: 700;
  color: #9aa3b2;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.fll-pool { width: 88px; }
.fll-pool-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -6px 0 14px;
}
.fll-chip {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: #c8d0dc;
  border-radius: 999px;
  padding: 5px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}
.fll-chip:hover {
  border-color: rgba(255, 166, 77, 0.45);
  color: #ffa64d;
}

.fll-teams-head-2 {
  grid-template-columns: 1fr 72px;
}
.fll-teams-head-3 {
  grid-template-columns: 1fr 64px 52px;
}
.fll-pct-sum {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  color: #3dd68c;
  font-variant-numeric: tabular-nums;
}
.fll-pct-sum.is-warn { color: #ffb965; }

.fll-preview-boulier {
  margin: 0 0 16px;
  display: flex;
  justify-content: center;
}

/* ── Boulier (lottery drum) ── */
.fll-boulier {
  width: min(340px, 100%);
  margin: 0 auto;
}
.fll-boulier-sm {
  width: min(260px, 100%);
  transform: scale(0.92);
  transform-origin: top center;
}
.fll-boulier-stage {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 8px;
}
.fll-boulier-arm {
  position: absolute;
  top: 42px;
  width: 28px;
  height: 8px;
  background: linear-gradient(180deg, #8a919c, #4a5058);
  border-radius: 4px;
  z-index: 4;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}
.fll-boulier-arm-l { left: 18%; transform: rotate(-8deg); }
.fll-boulier-arm-r { right: 18%; transform: rotate(8deg); }

.fll-boulier-drum {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  z-index: 2;
}
.fll-boulier-glass {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 22%, rgba(255, 255, 255, 0.22) 0%, transparent 42%),
    radial-gradient(circle at 72% 78%, rgba(0, 0, 0, 0.35) 0%, transparent 50%),
    linear-gradient(145deg, rgba(120, 140, 170, 0.18), rgba(20, 28, 42, 0.55));
  border: 3px solid rgba(180, 200, 230, 0.35);
  box-shadow:
    inset 0 0 30px rgba(0, 0, 0, 0.45),
    inset 0 -8px 20px rgba(255, 255, 255, 0.06),
    0 12px 40px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 3;
}
.fll-boulier-cage {
  position: absolute;
  inset: 14px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, rgba(40, 50, 68, 0.9), rgba(8, 12, 20, 0.98));
  border: 2px solid rgba(255, 255, 255, 0.06);
}
.fll-boulier-inner {
  position: absolute;
  inset: 0;
  transform-origin: 50% 52%;
}
.fll-boulier.is-spinning .fll-boulier-inner {
  animation: fllDrumSpin 0.55s linear infinite;
}
.fll-boulier-rim {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 4px solid rgba(255, 166, 77, 0.25);
  box-shadow: 0 0 20px rgba(255, 166, 77, 0.12);
  pointer-events: none;
  z-index: 1;
}
.fll-boulier-pedestal {
  margin-top: -6px;
  width: 160px;
  padding: 10px 12px 12px;
  background: linear-gradient(180deg, #3a424f, #1a1f28);
  border-radius: 0 0 14px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: none;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
  z-index: 2;
}
.fll-boulier-brand {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.22em;
  color: #ffa64d;
}
.fll-boulier-count {
  display: block;
  margin-top: 3px;
  font-size: 10px;
  font-weight: 600;
  color: #6b7385;
}
.fll-boulier-chute {
  width: 52px;
  height: 56px;
  margin-top: 4px;
  background: linear-gradient(180deg, rgba(30, 36, 48, 0.95), rgba(12, 16, 24, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0 0 12px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 8px;
  box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.5);
}
.fll-chute-empty {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px dashed rgba(255, 255, 255, 0.12);
}
.fll-boulier-status {
  margin-top: 10px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7385;
}
.fll-boulier-status.is-pick { color: #ffa64d; }

.fll-ball {
  position: absolute;
  left: var(--bx, 50%);
  top: var(--by, 50%);
  width: 16px;
  height: 16px;
  margin-left: -8px;
  margin-top: -8px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 30% 28%, #fff 0%, transparent 28%),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--c, #ffa64d) 85%, #fff), var(--c, #ffa64d));
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45), inset 0 -2px 3px rgba(0, 0, 0, 0.25);
  transform: rotate(var(--br, 0deg));
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}
.fll-boulier.is-spinning .fll-ball {
  animation: fllBallTumble 0.4s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * 18ms);
}
.fll-ball.is-picked {
  transform: rotate(var(--br, 0deg)) scale(1.2);
  box-shadow: 0 0 0 2px #fff, 0 0 14px color-mix(in srgb, var(--c) 70%, transparent);
  z-index: 5;
}
.fll-ball-exit {
  position: static;
  margin: 0;
  width: 28px;
  height: 28px;
  animation: fllBallDrop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
}
.fll-ball-lg {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

@keyframes fllDrumSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes fllBallTumble {
  0%, 100% { transform: rotate(var(--br, 0deg)) translate(0, 0); }
  25% { transform: rotate(calc(var(--br, 0deg) + 40deg)) translate(2px, -3px); }
  50% { transform: rotate(calc(var(--br, 0deg) + 80deg)) translate(-2px, 2px); }
  75% { transform: rotate(calc(var(--br, 0deg) + 120deg)) translate(3px, 1px); }
}
@keyframes fllBallDrop {
  0% { transform: translateY(-40px) scale(0.6); opacity: 0; }
  70% { transform: translateY(4px) scale(1.05); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

.fll-draw-stage-boulier {
  width: min(520px, 100%);
  gap: 18px;
}
.fll-spotlight-boulier {
  width: min(520px, 100%);
}
.fll-stage-wide {
  width: 100%;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.fll-picked-reveal {
  width: 100%;
  text-align: center;
  padding: 16px 20px;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, transparent);
  background: color-mix(in srgb, var(--c) 10%, rgba(12, 16, 24, 0.95));
  animation: fllPop 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.fll-picked-reveal .fll-env-name {
  font-size: clamp(20px, 4vw, 30px);
  font-weight: 800;
  color: var(--c, #ffd089);
}

/* Legacy hopper (unused) — kept for reference */
.fll-hopper { display: none; }

.fll-draw-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(460px, 100%);
}

.fll-teams {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 420px;
  overflow-y: auto;
  padding-right: 4px;
}
.fll-team-row {
  display: grid;
  grid-template-columns: 28px 14px 1fr 72px 56px;
  gap: 8px;
  align-items: center;
  padding: 8px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid transparent;
}
.fll-team-row:hover { border-color: rgba(255, 255, 255, 0.08); }
.fll-rank {
  font-size: 12px;
  font-weight: 700;
  color: #6b7385;
  text-align: center;
}
.fll-swatch {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--c, #ffa64d);
  box-shadow: 0 0 0 2px rgba(0, 0, 0, 0.35), 0 0 10px color-mix(in srgb, var(--c, #ffa64d) 40%, transparent);
  display: inline-block;
  flex-shrink: 0;
}
.fll-name-input {
  background: transparent;
  border: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 0;
  padding: 6px 2px;
  color: #e8ecf2;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  width: 100%;
}
.fll-name-input:focus {
  outline: none;
  border-bottom-color: rgba(255, 166, 77, 0.55);
}
.fll-weight-input {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 6px 8px;
  color: #ffd089;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-align: right;
  width: 100%;
}
.fll-weight-read {
  font-size: 13px;
  font-weight: 700;
  color: #ffd089;
  text-align: right;
}
.fll-row-balls {
  font-size: 12px;
  font-weight: 700;
  color: #9aa3b2;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.fll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.fll-btn {
  border: none;
  border-radius: 11px;
  padding: 11px 16px;
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.fll-btn:disabled { opacity: 0.5; cursor: wait; }
.fll-btn-primary {
  background: linear-gradient(180deg, #ffb965, #ffa64d);
  color: #1a1208;
  box-shadow: 0 6px 20px rgba(255, 166, 77, 0.28);
}
.fll-btn-primary:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 8px 24px rgba(255, 166, 77, 0.4);
}
.fll-btn-ghost {
  background: rgba(255, 255, 255, 0.04);
  color: #c8d0dc;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.fll-btn-ghost:hover { border-color: rgba(255, 166, 77, 0.4); color: #ffa64d; }
.fll-btn-lg { padding: 14px 22px; font-size: 16px; }

.fll-preview-note {
  margin: -8px 0 14px;
  font-size: 12px;
  color: #6b7385;
}
.fll-odds-list { display: flex; flex-direction: column; gap: 10px; }
.fll-odds-meta {
  display: grid;
  grid-template-columns: 22px 14px 1fr auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 4px;
  font-size: 13px;
}
.fll-rank-sm {
  font-size: 11px;
  font-weight: 800;
  color: #6b7385;
  text-align: center;
}
.fll-odds-name { font-weight: 600; color: #e8ecf2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fll-odds-pct { font-weight: 800; color: #ffd089; font-variant-numeric: tabular-nums; }
.fll-odds-balls { font-size: 11px; color: #6b7385; font-variant-numeric: tabular-nums; }
.fll-odds-track {
  height: 6px;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.fll-odds-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 0.25s ease;
  min-width: 2px;
}

.fll-hero-stage h1 { text-align: center; }
.fll-hero-stage .fll-eyebrow,
.fll-hero-stage .fll-sub { text-align: center; margin-left: auto; margin-right: auto; }

.fll-stage {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-bottom: 28px;
}
.fll-spotlight {
  width: min(420px, 100%);
  perspective: 800px;
}
.fll-envelope {
  background: linear-gradient(145deg, rgba(36, 42, 56, 0.98), rgba(14, 18, 28, 0.99));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  padding: 36px 28px;
  text-align: center;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  position: relative;
  overflow: hidden;
}
.fll-envelope::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 0%, rgba(255, 166, 77, 0.12), transparent 55%);
  pointer-events: none;
}
.fll-envelope.is-open {
  border-color: color-mix(in srgb, var(--c, #ffa64d) 50%, transparent);
  animation: fllPop 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.45),
    0 0 40px color-mix(in srgb, var(--c, #ffa64d) 35%, transparent);
}
.fll-final-glory {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.fll-envelope-one {
  width: min(460px, 100%);
  padding: 44px 32px 40px;
  border-width: 2px;
  animation: fllGlory 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.fll-envelope-one .fll-env-name {
  font-size: clamp(28px, 5.5vw, 40px);
}
.fll-env-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.18em;
  color: #1a1208;
  background: linear-gradient(180deg, #ffb965, #ffa64d);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
  position: relative;
}
.fll-env-glory {
  margin-top: 12px;
  font-size: 13px;
  font-weight: 600;
  color: rgba(255, 208, 137, 0.85);
  letter-spacing: 0.04em;
  position: relative;
}
.fll-envelope-two {
  width: min(320px, 88%);
  padding: 18px 20px;
  opacity: 0.92;
  animation: fllPop 0.55s 0.12s both cubic-bezier(0.22, 1, 0.36, 1);
}
.fll-env-name-sm {
  font-size: clamp(16px, 3vw, 22px) !important;
}
.fll-envelope-final-wait {
  border-style: dashed;
  border-color: rgba(255, 166, 77, 0.4);
}
.fll-btn-glory {
  box-shadow: 0 8px 28px rgba(255, 166, 77, 0.45);
}
@keyframes fllGlory {
  0% { transform: scale(0.88) translateY(12px); opacity: 0.3; filter: brightness(0.8); }
  60% { transform: scale(1.03) translateY(0); }
  100% { transform: scale(1); opacity: 1; filter: brightness(1); }
}
.fll-env-pick {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.16em;
  color: #ffa64d;
  margin-bottom: 10px;
  position: relative;
}
.fll-env-name {
  font-size: clamp(22px, 4vw, 32px);
  font-weight: 800;
  letter-spacing: -0.3px;
  color: #e8ecf2;
  position: relative;
}
.fll-envelope.is-open .fll-env-name { color: var(--c, #ffd089); }
.fll-stage-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.fll-reveal-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
@media (max-width: 860px) {
  .fll-reveal-grid { grid-template-columns: 1fr; }
}

.fll-remaining-panel .fll-remain-row {
  margin-bottom: 2px;
  padding: 8px 8px 6px;
  border-radius: 10px;
  border: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease;
}
.fll-remain-row.is-leader {
  border-color: rgba(255, 166, 77, 0.35);
  background: rgba(255, 166, 77, 0.08);
}
.fll-remain-meta {
  display: grid;
  grid-template-columns: 14px 1fr auto auto auto;
  gap: 8px;
  align-items: center;
  margin-bottom: 5px;
  font-size: 13px;
}
.fll-remain-meta .fll-swatch { background: var(--c, #ffa64d); }
.fll-remain-name {
  font-weight: 700;
  color: #e8ecf2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fll-remain-pct {
  font-weight: 800;
  color: #ffd089;
  font-variant-numeric: tabular-nums;
  min-width: 3.2em;
  text-align: right;
}
.fll-delta {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  min-width: 4.2em;
  text-align: right;
}
.fll-delta.is-up { color: #3dd68c; }
.fll-delta.is-down { color: #ff6b6b; }
.fll-delta.is-flat { color: #6b7385; }
.fll-remaining-empty {
  margin: 0;
  color: #6b7385;
  font-size: 13px;
}
.fll-remaining-list .fll-odds-fill {
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.fll-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}
.fll-board-slot {
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  padding: 12px 10px;
  min-height: 72px;
  transition: border-color 0.2s, background 0.2s, transform 0.25s;
}
.fll-board-slot.is-next {
  border-color: rgba(255, 166, 77, 0.45);
  background: rgba(255, 166, 77, 0.08);
}
.fll-board-slot.is-in {
  animation: fllSlotIn 0.4s ease;
}
.fll-board-slot.is-one.is-in {
  border-color: rgba(255, 166, 77, 0.65);
  background: linear-gradient(160deg, rgba(255, 166, 77, 0.18), rgba(255, 255, 255, 0.03));
}
@keyframes fllSlotIn {
  from { transform: scale(0.96); opacity: 0.5; }
  to { transform: scale(1); opacity: 1; }
}
.fll-pick-num {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #6b7385;
  margin-bottom: 6px;
}
.fll-board-slot.is-one .fll-pick-num { color: #ffa64d; }
.fll-pick-team {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: #e8ecf2;
}
.fll-pick-team .fll-swatch { background: var(--c); }
.fll-pick-locked {
  font-size: 12px;
  color: #6b7385;
  font-weight: 600;
}

.fll-results-list { display: flex; flex-direction: column; gap: 6px; }
.fll-result-row {
  display: grid;
  grid-template-columns: 48px 14px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 12px 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
}
.fll-result-row .fll-swatch { background: var(--c); }
.fll-result-row.is-one {
  border-color: rgba(255, 166, 77, 0.45);
  background: rgba(255, 166, 77, 0.1);
}
.fll-result-pick {
  font-weight: 800;
  font-size: 15px;
  color: #9aa3b2;
  font-variant-numeric: tabular-nums;
}
.fll-result-row.is-one .fll-result-pick { color: #ffa64d; }
.fll-result-name { font-weight: 700; font-size: 15px; }
.fll-result-odds {
  font-size: 11px;
  font-weight: 600;
  color: #6b7385;
  white-space: nowrap;
}
.fll-export {
  width: 100%;
  box-sizing: border-box;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 12px;
  color: #c8d0dc;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.5;
  resize: vertical;
  margin-bottom: 4px;
}
.fll-grid-results .fll-actions { flex-direction: column; }
.fll-grid-results .fll-actions .fll-btn { width: 100%; }

/* ── Modern layer ── */
.fll-hero {
  padding: 24px 28px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 200, 110, 0.22);
  background:
    radial-gradient(ellipse 70% 140% at 95% 0%, rgba(255, 200, 110, 0.16), transparent 55%),
    radial-gradient(ellipse 50% 120% at 0% 100%, rgba(29, 66, 138, 0.22), transparent 60%),
    linear-gradient(145deg, #161d2c, #0a0e14 75%);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.35);
  margin-bottom: 16px;
  overflow: hidden;
}
.fll-hero::before { display: none; }
.fll-hero .fll-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #ffd089;
  background: rgba(255, 200, 110, 0.1);
  border: 1px solid rgba(255, 200, 110, 0.35);
  padding: 5px 12px;
  border-radius: 999px;
  margin: 0 0 12px;
}
.fll-hero h1 { margin: 0 0 8px; letter-spacing: -0.6px; }
.fll-hero h1 em { background: linear-gradient(90deg, #ffd089, #ffa64d); -webkit-background-clip: text; background-clip: text; }
.fll-hero .fll-sub { font-size: 14px; max-width: 620px; }
.fll-hero-stage { text-align: center; }
.fll-hero-stage .fll-steps { justify-content: center; }

.fll-steps {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 16px;
  padding: 0;
}
.fll-steps li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  font-weight: 700;
  color: #6b7385;
  padding: 5px 12px 5px 5px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.02);
}
.fll-steps li span {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10.5px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.06);
  color: #8f99ab;
}
.fll-steps li.is-on { color: #ffd089; border-color: rgba(255, 200, 110, 0.4); background: rgba(255, 200, 110, 0.08); }
.fll-steps li.is-on span { background: linear-gradient(180deg, #ffb965, #ffa64d); color: #1a1208; }
.fll-steps li.is-done { color: #9fe3bd; }
.fll-steps li.is-done span { background: rgba(74, 222, 128, 0.18); color: #4ade80; }

.fll-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}
.fll-stat {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, #141a25, #0e131c);
  min-width: 0;
}
.fll-stat small { font-size: 10px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: #6b7486; }
.fll-stat b { font-size: 24px; font-weight: 900; letter-spacing: -0.5px; color: #f1f5f9; font-variant-numeric: tabular-nums; line-height: 1.1; }
.fll-stat em { font-style: normal; font-size: 12px; color: #8f99ab; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fll-stat:nth-child(3) b { color: #ffd089; }
@media (max-width: 760px) { .fll-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.fll-panel {
  background: linear-gradient(165deg, #141a25, #0d1219);
  border-radius: 18px;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.3);
}
.fll-panel h2 { font-size: 11px; letter-spacing: 1.6px; font-weight: 900; color: #8f99ab; }

.fll-mode-row {
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  flex-wrap: nowrap;
}
.fll-mode { border: 0; background: none; border-radius: 9px; min-width: 0; color: #8f99ab; }
.fll-mode:hover { color: #e8ecf2; background: rgba(255, 255, 255, 0.05); }
.fll-mode.is-on {
  color: #ffd089;
  background: linear-gradient(180deg, rgba(255, 200, 110, 0.2), rgba(255, 200, 110, 0.07));
  box-shadow: inset 0 0 0 1px rgba(255, 200, 110, 0.4);
}

.fll-teams { max-height: none; overflow: visible; padding-right: 0; }
.fll-teams-head-3 { grid-template-columns: 1fr 64px 52px 52px; }
.fll-team-row {
  grid-template-columns: 24px 14px 1fr 72px 52px 52px;
  border-left: 3px solid var(--rc, transparent);
}
.fll-team-row:first-child .fll-rank { color: #4ade80; }
.fll-team-row:last-child .fll-rank { color: #ffa64d; }
.fll-count-btn:disabled, .fll-count:disabled { opacity: 0.35; cursor: not-allowed; }
.fll-count-row .fll-hint { margin-left: 4px; }
.fll-move { display: inline-flex; gap: 3px; justify-content: flex-end; }
.fll-move button {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: #8f99ab;
  font-size: 9px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.fll-move button:hover:not(:disabled) { color: #ffd089; border-color: rgba(255, 200, 110, 0.45); }
.fll-move button:disabled { opacity: 0.25; cursor: default; }

.fll-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 640px;
  margin: 0 auto 18px;
  font-size: 11.5px;
  font-weight: 800;
  color: #8f99ab;
  font-variant-numeric: tabular-nums;
}
.fll-progress-track { flex: 1; height: 6px; border-radius: 99px; background: rgba(255, 255, 255, 0.06); overflow: hidden; }
.fll-progress-fill {
  height: 100%;
  border-radius: 99px;
  background: linear-gradient(90deg, #ffa64d, #ffd089);
  transition: width 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.fll-board { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.fll-board-slot { border-radius: 12px; background: rgba(255, 255, 255, 0.025); }
.fll-board-slot.is-in .fll-pick-team { color: #f1f5f9; }
.fll-board-slot.is-in { border-left: 3px solid var(--c, rgba(255, 255, 255, 0.2)); }

.fll-podium {
  display: grid;
  grid-template-columns: 1fr 1.15fr 1fr;
  align-items: end;
  gap: 12px;
  margin-bottom: 18px;
}
.fll-podium-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
  padding: 18px 14px 16px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--c) 45%, rgba(255, 255, 255, 0.1));
  background:
    radial-gradient(ellipse 80% 70% at 50% 0%, color-mix(in srgb, var(--c) 30%, transparent), transparent 70%),
    linear-gradient(165deg, #151c29, #0b0f16);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.35);
  animation: fllPop 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
  min-width: 0;
}
.fll-podium-1 { order: 2; padding-top: 28px; padding-bottom: 24px; border-color: rgba(255, 200, 110, 0.6); animation-delay: 0.15s; }
.fll-podium-2 { order: 1; }
.fll-podium-3 { order: 3; animation-delay: 0.08s; }
.fll-podium-pick { font-size: 12px; font-weight: 900; letter-spacing: 1.6px; color: #8f99ab; }
.fll-podium-1 .fll-podium-pick {
  color: #1a1208;
  background: linear-gradient(180deg, #ffd089, #ffa64d);
  padding: 4px 12px;
  border-radius: 999px;
}
.fll-podium-card .fll-ball { position: static; margin: 0; }
.fll-podium-1 .fll-ball-lg { width: 56px; height: 56px; }
.fll-podium-card b {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.3px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fll-podium-1 b { font-size: clamp(20px, 3vw, 26px); color: #ffd089; }
.fll-podium-card small { font-size: 11.5px; color: #8f99ab; }
@media (max-width: 640px) {
  .fll-podium { grid-template-columns: 1fr; }
  .fll-podium-1, .fll-podium-2, .fll-podium-3 { order: 0; }
}

.fll-result-row { grid-template-columns: 44px 14px 1fr auto auto; border-left: 3px solid var(--c); }
.fll-move-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.05);
  color: #8f99ab;
}
.fll-move-tag.is-up { color: #4ade80; background: rgba(74, 222, 128, 0.12); }
.fll-move-tag.is-down { color: #ff7b7b; background: rgba(255, 107, 107, 0.12); }
.fll-podium-card .fll-move-tag { padding: 2px 7px; }

@keyframes fllPop {
  from { transform: scale(0.94); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 560px) {
  .fll-team-row { grid-template-columns: 20px 12px 1fr 58px 40px 50px; gap: 6px; }
  .fll-teams-head-3 { grid-template-columns: 1fr 58px 40px 50px; }
  .fll-shell { padding: 20px 14px 36px; }
  .fll-hero { padding: 20px 18px; }
  .fll-result-row { grid-template-columns: 36px 12px 1fr auto; }
  .fll-result-row .fll-result-odds { display: none; }
}
