/* ═══════════════════════════════════════════════════════
   AUCTION DRAFT — Premium Mobile-First Design System
   ═══════════════════════════════════════════════════════ */

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

/* ── Design Tokens ── */
:root {
  /* Surface */
  --bg-0: #09090b;
  --bg-1: #0f0f13;
  --bg-2: #16161d;
  --bg-3: #1c1c27;
  --bg-4: #252533;
  --bg-glass: rgba(22, 22, 29, 0.85);

  /* Border */
  --border-0: rgba(255,255,255,0.06);
  --border-1: rgba(255,255,255,0.1);
  --border-2: rgba(255,255,255,0.15);
  --border-focus: var(--accent);

  /* Text */
  --text-0: #fafafa;
  --text-1: #c4c4cc;
  --text-2: #8b8b99;
  --text-3: #5c5c6b;

  /* Accent — warm gold/amber */
  --accent: #f59e0b;
  --accent-bright: #fbbf24;
  --accent-dim: #b45309;
  --accent-ghost: rgba(245,158,11,0.08);
  --accent-glow: rgba(245,158,11,0.25);

  /* Semantic */
  --green: #10b981;
  --green-ghost: rgba(16,185,129,0.1);
  --green-glow: rgba(16,185,129,0.3);
  --yellow: #eab308;
  --orange: #f97316;
  --red: #ef4444;
  --red-ghost: rgba(239,68,68,0.1);
  --purple: #a855f7;
  --purple-ghost: rgba(168,85,247,0.08);
  --blue: #3b82f6;
  --blue-ghost: rgba(59,130,246,0.08);

  /* Typography */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;
  --fs-xs: 0.6875rem;   /* 11px */
  --fs-sm: 0.75rem;     /* 12px */
  --fs-base: 0.875rem;  /* 14px */
  --fs-md: 1rem;        /* 16px */
  --fs-lg: 1.25rem;     /* 20px */
  --fs-xl: 1.5rem;      /* 24px */
  --fs-2xl: 2rem;       /* 32px */
  --fs-3xl: 2.5rem;     /* 40px */
  --fs-display: 3.5rem; /* 56px */

  /* Spacing (8pt grid) */
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 20px;
  --s-6: 24px;
  --s-8: 32px;
  --s-10: 40px;
  --s-12: 48px;
  --s-16: 64px;

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 24px;
  --r-full: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.4);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.5);
  --shadow-glow: 0 0 40px var(--accent-glow);

  /* Animation */
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Timer */
  --timer-circumference: 326.726; /* 2π × 52 */

  /* Safe areas */
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
}

/* ── Base ── */
html {
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text-0);
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.5;
}

/* ── Views ── */
.view { display: none; min-height: 100dvh; }
.view.active { display: flex; flex-direction: column; }
.hidden { display: none !important; }

/* ══════════════════════════════════════
   HOME VIEW
   ══════════════════════════════════════ */
.home-wrap {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: var(--s-6);
  padding-top: calc(var(--s-6) + var(--safe-top));
  gap: var(--s-10);
  min-height: 100dvh;
}

/* Wordmark */
.wordmark {
  text-align: center;
  display: flex; flex-direction: column; align-items: center;
}
.wordmark-icon {
  font-size: 3rem;
  filter: drop-shadow(0 0 20px var(--accent-glow));
  margin-bottom: var(--s-3);
  animation: float 4s ease-in-out infinite;
}
@keyframes float {
  0%,100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
.wordmark h1 {
  font-size: var(--fs-3xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text-0);
}
.wordmark-accent {
  background: linear-gradient(135deg, var(--accent), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.home-tagline {
  color: var(--text-2);
  font-size: var(--fs-base);
  margin-top: var(--s-2);
  letter-spacing: 0.01em;
}

/* Action Cards */
.home-actions {
  display: flex; flex-direction: column;
  gap: var(--s-3);
  width: 100%; max-width: 420px;
}
.action-card {
  display: flex; align-items: center; gap: var(--s-4);
  width: 100%;
  padding: var(--s-5) var(--s-4);
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  -webkit-appearance: none; appearance: none;
  color: var(--text-0);
  font-family: var(--font);
  text-align: left;
  min-height: 80px;
}
.action-card:active {
  transform: scale(0.98);
  border-color: var(--accent);
  background: var(--bg-3);
}
.action-card-icon {
  width: 48px; height: 48px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-md);
  background: var(--accent-ghost);
  color: var(--accent);
  flex-shrink: 0;
}
.action-card-icon--join {
  background: var(--purple-ghost);
  color: var(--purple);
}
.action-card-text { flex: 1; }
.action-card-text h2 {
  font-size: var(--fs-md);
  font-weight: 700;
  margin-bottom: 2px;
}
.action-card-text p {
  font-size: var(--fs-sm);
  color: var(--text-2);
  line-height: 1.3;
}
.action-card-arrow {
  color: var(--text-3);
  flex-shrink: 0;
}

/* Join Form */
.join-form {
  width: 100%; max-width: 420px;
  animation: slideUp 0.35s var(--ease-out);
}
.join-form-inner {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: var(--s-5);
}
.join-label {
  display: block;
  font-size: var(--fs-xs);
  font-weight: 600;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-2);
}
.join-input-row {
  display: flex; gap: var(--s-2);
}
.join-input-row input {
  flex: 1;
  font-size: var(--fs-lg);
  text-align: center;
  letter-spacing: 0.15em;
  font-weight: 700;
  text-transform: uppercase;
}
.btn-join-go {
  padding: var(--s-3) var(--s-5);
  white-space: nowrap;
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Error Toast */
.error-toast {
  position: fixed;
  bottom: calc(var(--s-6) + var(--safe-bottom));
  left: var(--s-4); right: var(--s-4);
  background: var(--red);
  color: #fff;
  font-size: var(--fs-base);
  font-weight: 600;
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  text-align: center;
  z-index: 500;
  animation: shake 0.4s var(--ease-out);
}
@keyframes shake {
  0%,100% { transform: translateX(0); }
  25% { transform: translateX(-8px); }
  75% { transform: translateX(8px); }
}

/* ══════════════════════════════════════
   BUTTONS
   ══════════════════════════════════════ */
.btn {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--fs-base);
  padding: var(--s-3) var(--s-4);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  background: var(--bg-3);
  color: var(--text-0);
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  white-space: nowrap;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  -webkit-appearance: none;
  appearance: none;
  user-select: none;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.35; cursor: not-allowed; pointer-events: none; }

.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #000;
  font-weight: 700;
}
.btn-primary:active { background: var(--accent-dim); }

.btn-lg { padding: var(--s-4) var(--s-6); font-size: var(--fs-md); min-height: 52px; }
.btn-full { width: 100%; }

.btn-glow {
  box-shadow: 0 0 24px var(--accent-glow), 0 2px 8px rgba(0,0,0,0.3);
}
.btn-glow:active { box-shadow: 0 0 12px var(--accent-glow); }

.btn-share {
  background: var(--blue-ghost);
  border-color: rgba(59,130,246,0.2);
  color: var(--blue);
}
.btn-share:active { background: rgba(59,130,246,0.15); }

/* ══════════════════════════════════════
   FORMS
   ══════════════════════════════════════ */
input[type="text"], input[type="number"], textarea, select {
  font-family: var(--font);
  font-size: var(--fs-md);
  background: var(--bg-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  color: var(--text-0);
  padding: var(--s-3) var(--s-4);
  width: 100%;
  transition: border-color 0.15s;
  min-height: 48px;
  -webkit-appearance: none;
  appearance: none;
}
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-ghost);
}
label {
  display: block;
  font-weight: 600;
  font-size: var(--fs-base);
  color: var(--text-1);
  margin-bottom: var(--s-2);
}
.form-group { margin-bottom: var(--s-5); }
.form-section {
  margin-bottom: var(--s-8);
}
.section-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: var(--s-4);
}
.section-hint {
  font-weight: 400;
  color: var(--text-3);
  text-transform: none;
  letter-spacing: 0;
}

/* Stepper */
.stepper {
  display: flex;
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  overflow: hidden;
  background: var(--bg-3);
}
.stepper input {
  border: none;
  border-radius: 0;
  text-align: center;
  flex: 1;
  border-left: 1px solid var(--border-0);
  border-right: 1px solid var(--border-0);
  font-size: var(--fs-lg);
  font-weight: 700;
  min-height: 52px;
  background: transparent;
}
.stepper input:focus { box-shadow: none; }
.stepper-btn {
  font-family: var(--font);
  font-size: 1.4rem;
  font-weight: 700;
  min-width: 56px;
  min-height: 52px;
  background: var(--bg-4);
  border: none;
  color: var(--text-1);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
  user-select: none;
}
.stepper-btn:active { background: var(--accent-ghost); color: var(--accent); }

/* Team Names */
.team-names-list {
  display: flex; flex-direction: column; gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.team-name-row {
  display: flex; gap: var(--s-2); align-items: center;
}
.team-name-row input { flex: 1; }
.team-name-row .btn-remove {
  background: none; border: none;
  color: var(--red);
  font-size: 1.1rem;
  cursor: pointer;
  min-width: 44px; min-height: 44px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-sm);
  transition: background 0.15s;
}
.team-name-row .btn-remove:active { background: var(--red-ghost); }

.btn-add-team {
  font-family: var(--font);
  font-weight: 600;
  font-size: var(--fs-base);
  padding: var(--s-3) var(--s-4);
  border: 1px dashed var(--border-2);
  border-radius: var(--r-sm);
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  width: 100%;
  min-height: 44px;
  display: flex; align-items: center; justify-content: center; gap: var(--s-2);
  transition: all 0.15s;
}
.btn-add-team:active { border-color: var(--accent); color: var(--accent); }

/* ══════════════════════════════════════
   PAGE LAYOUT
   ══════════════════════════════════════ */
.page-container {
  max-width: 520px;
  margin: 0 auto;
  padding: var(--s-4);
  padding-top: calc(var(--s-4) + var(--safe-top));
  width: 100%;
}
.page-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-6);
  min-height: 44px;
}
.nav-back {
  background: none; border: none;
  color: var(--text-2);
  font-family: var(--font);
  font-size: var(--fs-base);
  font-weight: 500;
  cursor: pointer;
  display: flex; align-items: center; gap: var(--s-1);
  min-height: 44px;
  padding: var(--s-2);
  margin-left: calc(-1 * var(--s-2));
}
.nav-back:active { color: var(--text-0); }
.page-title {
  font-weight: 700;
  font-size: var(--fs-md);
}

/* ══════════════════════════════════════
   LOBBY
   ══════════════════════════════════════ */
.lobby-page {
  display: flex; flex-direction: column; gap: var(--s-6);
  min-height: 100dvh;
}
.lobby-header {
  display: flex; flex-direction: column; align-items: center;
  gap: var(--s-4);
  padding-top: var(--s-8);
}
.lobby-header h1 {
  font-size: var(--fs-xl);
  font-weight: 800;
}

.draft-code-box {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  background: var(--bg-2);
  border: 2px solid var(--border-2);
  border-radius: var(--r-lg);
  padding: var(--s-4) var(--s-8);
  cursor: pointer;
  transition: all 0.2s var(--ease-out);
  user-select: none;
}
.draft-code-box:active {
  border-color: var(--accent);
  transform: scale(0.98);
}
.code-label {
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.code-value {
  font-family: var(--mono);
  font-size: var(--fs-2xl);
  font-weight: 800;
  letter-spacing: 0.2em;
  color: var(--accent-bright);
}
.code-hint {
  font-size: var(--fs-xs);
  color: var(--text-3);
}
.draft-code-box.copied .code-value { color: var(--green); }
.draft-code-box.copied .code-hint { color: var(--green); }

.lobby-section {
  display: flex; flex-direction: column; gap: var(--s-3);
}
.lobby-teams {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.lobby-team {
  background: var(--bg-2);
  border: 1px solid var(--border-0);
  border-radius: var(--r-sm);
  padding: var(--s-3) var(--s-4);
  display: flex; align-items: center; gap: var(--s-3);
  font-size: var(--fs-base);
  min-height: 48px;
}
.lobby-team .dot {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  flex-shrink: 0;
}
.lobby-team .dot.online {
  background: var(--green);
  box-shadow: 0 0 8px var(--green-glow);
}
.lobby-team .dot.offline { background: var(--text-3); }

.team-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.team-select-btn {
  background: var(--bg-2);
  border: 2px solid var(--border-1);
  border-radius: var(--r-md);
  padding: var(--s-4);
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  font-size: var(--fs-md);
  font-weight: 600;
  color: var(--text-0);
  font-family: var(--font);
  display: flex; align-items: center; gap: var(--s-2);
  min-height: 56px;
  -webkit-appearance: none; appearance: none;
}
.team-select-btn:active:not(.taken) {
  border-color: var(--accent);
  background: var(--accent-ghost);
  transform: scale(0.97);
}
.team-select-btn.taken {
  opacity: 0.3;
  cursor: not-allowed;
}

.lobby-bottom {
  margin-top: auto;
  padding-bottom: calc(var(--s-6) + var(--safe-bottom));
}

/* ══════════════════════════════════════
   DRAFT ROOM — THE HERO
   ══════════════════════════════════════ */
#view-draft {
  height: 100dvh;
  display: flex; flex-direction: column;
  overflow: hidden;
  position: relative;
  background: var(--bg-0);
}

/* Header bar */
.draft-header {
  flex-shrink: 0;
  padding: var(--s-3) var(--s-4);
  padding-top: calc(var(--s-3) + var(--safe-top));
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-0);
}
.draft-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-2);
}
.draft-league-label {
  font-weight: 700;
  font-size: var(--fs-base);
  color: var(--text-1);
}
.status-chip {
  font-size: var(--fs-xs);
  font-weight: 800;
  padding: 3px var(--s-2);
  border-radius: var(--r-full);
  background: var(--green);
  color: #000;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.2;
}
.status-chip.paused { background: var(--yellow); }
.status-chip.complete { background: var(--purple); color: #fff; }

.progress-track {
  height: 3px;
  background: var(--bg-4);
  border-radius: 2px;
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--orange));
  border-radius: 2px;
  transition: width 0.5s var(--ease-out);
  width: 0%;
}

/* ── Auction Stage ── */
.auction-stage {
  flex-shrink: 0;
  background: linear-gradient(180deg, var(--bg-1) 0%, var(--bg-0) 100%);
  padding: var(--s-4);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  border-bottom: 1px solid var(--border-0);
  min-height: 180px;
}

.stage-content {
  text-align: center;
  width: 100%;
}
.stage-waiting {
  color: var(--text-3);
  font-size: var(--fs-md);
  padding: var(--s-6) 0;
}

/* Nomination Hero */
.nom-hero {
  animation: popIn 0.4s var(--ease-spring);
}
@keyframes popIn {
  from { opacity: 0; transform: scale(0.9) translateY(8px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}
.nom-player {
  font-size: var(--fs-xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin-bottom: var(--s-1);
}
.nom-meta {
  color: var(--text-2);
  font-size: var(--fs-sm);
}
.nom-bid-hero {
  font-family: var(--mono);
  font-size: var(--fs-2xl);
  font-weight: 800;
  color: var(--green);
  margin-top: var(--s-2);
}
.nom-bidder {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-top: var(--s-1);
}

/* Timer */
.timer-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
}
.timer-ring {
  position: relative;
  width: 96px;
  height: 96px;
}
.timer-ring svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}
.timer-track {
  fill: none;
  stroke: var(--bg-4);
  stroke-width: 6;
}
.timer-arc {
  fill: none;
  stroke: var(--accent);
  stroke-width: 6;
  stroke-dasharray: var(--timer-circumference);
  stroke-dashoffset: 0;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.3s;
  filter: drop-shadow(0 0 6px var(--accent-glow));
}
.timer-value {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--mono);
  font-size: var(--fs-2xl);
  font-weight: 800;
}

/* Timer states */
.timer-warning .timer-arc { stroke: var(--yellow); filter: drop-shadow(0 0 8px rgba(234,179,8,0.4)); }
.timer-warning .timer-value { color: var(--yellow); }
.timer-urgent .timer-arc { stroke: var(--red); filter: drop-shadow(0 0 10px rgba(239,68,68,0.5)); }
.timer-urgent .timer-value { color: var(--red); animation: pulse 0.8s ease-in-out infinite; }

@keyframes pulse {
  0%,100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.6; transform: scale(1.05); }
}

/* Nomination queue */
.nom-queue {
  display: flex;
  gap: var(--s-2);
  align-items: center;
  font-size: var(--fs-sm);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  width: 100%;
  scrollbar-width: none;
}
.nom-queue::-webkit-scrollbar { display: none; }
.nq-label {
  color: var(--text-3);
  font-size: var(--fs-xs);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
}
.nq-item {
  background: var(--bg-3);
  border: 1px solid var(--border-0);
  border-radius: var(--r-full);
  padding: var(--s-1) var(--s-3);
  font-size: var(--fs-xs);
  white-space: nowrap;
  flex-shrink: 0;
  font-weight: 500;
}
.nq-item.current {
  border-color: var(--accent);
  background: var(--accent-ghost);
  color: var(--accent-bright);
  font-weight: 700;
}

/* ── Budget Strip ── */
.budget-strip {
  flex-shrink: 0;
  display: flex;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-1);
  border-bottom: 1px solid var(--border-0);
  scrollbar-width: none;
}
.budget-strip::-webkit-scrollbar { display: none; }

.team-pill {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  border-radius: var(--r-full);
  background: var(--bg-3);
  border: 1.5px solid var(--border-0);
  font-size: var(--fs-xs);
  cursor: pointer;
  transition: all 0.15s var(--ease-out);
  white-space: nowrap;
  min-height: 36px;
  user-select: none;
}
.team-pill:active { transform: scale(0.95); }
.team-pill.you {
  border-color: var(--accent);
  background: var(--accent-ghost);
}
.team-pill.disconnected { opacity: 0.3; }
.pill-dot {
  width: 8px; height: 8px;
  border-radius: var(--r-full);
  flex-shrink: 0;
}
.pill-budget {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  font-weight: 700;
  color: var(--green);
}
.pill-slots {
  font-size: 0.625rem;
  color: var(--text-3);
}
.pill-flash {
  animation: pillFlash 0.6s ease;
}
@keyframes pillFlash {
  0%,100% { background: var(--bg-3); }
  40% { background: var(--accent-ghost); border-color: var(--accent); }
}

/* ── Tab Body ── */
.draft-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}
.tab-bar {
  display: flex;
  border-bottom: 1px solid var(--border-0);
  flex-shrink: 0;
  background: var(--bg-1);
}
.tab {
  flex: 1;
  text-align: center;
  padding: var(--s-3) var(--s-2);
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 600;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-3);
  cursor: pointer;
  transition: all 0.15s;
  min-height: 44px;
}
.tab.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}
.tab-panel {
  display: none;
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding: var(--s-3) var(--s-3);
}
.tab-panel.active { display: block; }

/* Activity Feed */
.feed-item {
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border-0);
  font-size: var(--fs-sm);
  color: var(--text-2);
  animation: feedSlide 0.3s var(--ease-out);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: var(--s-2);
}
@keyframes feedSlide {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.feed-item.sold { color: var(--green); font-weight: 600; }
.feed-item.bid { color: var(--accent-bright); }
.feed-item.nominate { color: var(--purple); }
.feed-item.warning { color: var(--yellow); }
.feed-item .ts {
  font-size: var(--fs-xs);
  color: var(--text-3);
  flex-shrink: 0;
}

/* Draft Board */
.board-row {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border-0);
  font-size: var(--fs-sm);
}
.board-num {
  color: var(--text-3);
  font-size: var(--fs-xs);
  min-width: 24px;
  font-family: var(--mono);
}
.board-player { flex: 1; font-weight: 600; }
.board-team { font-size: var(--fs-xs); }
.board-price {
  font-family: var(--mono);
  font-weight: 700;
  color: var(--green);
}

/* Rosters */
.roster-card {
  background: var(--bg-2);
  border: 1px solid var(--border-0);
  border-radius: var(--r-md);
  padding: var(--s-4);
  margin-bottom: var(--s-3);
  border-left: 3px solid var(--accent);
}
.roster-header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-2);
  font-weight: 700;
  font-size: var(--fs-base);
}
.roster-you {
  font-size: var(--fs-xs);
  color: var(--accent);
  font-weight: 700;
  background: var(--accent-ghost);
  padding: 1px var(--s-2);
  border-radius: var(--r-full);
}
.roster-stats {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-bottom: var(--s-2);
}
.roster-player {
  display: flex;
  justify-content: space-between;
  padding: var(--s-1) 0;
  border-bottom: 1px solid var(--border-0);
  font-size: var(--fs-sm);
}
.roster-price {
  font-family: var(--mono);
  color: var(--green);
  font-weight: 600;
}

/* ── Nominate Bar ── */
.nominate-bar {
  flex-shrink: 0;
  padding: var(--s-3) var(--s-4);
  background: var(--bg-1);
  border-top: 2px solid var(--accent);
  position: relative;
  overflow: hidden;
  animation: slideUp 0.3s var(--ease-out);
}
.nominate-pulse {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, var(--accent-ghost), transparent);
  animation: nomPulse 2s ease-in-out infinite;
}
@keyframes nomPulse {
  0%,100% { transform: translateX(-100%); }
  50% { transform: translateX(100%); }
}
.nominate-label {
  display: block;
  font-size: var(--fs-sm);
  font-weight: 700;
  color: var(--accent);
  margin-bottom: var(--s-2);
  position: relative;
  text-align: center;
}
.nominate-row {
  display: flex;
  gap: var(--s-2);
  position: relative;
}
.nominate-row input { flex: 1; }
.btn-nominate {
  padding: var(--s-3) var(--s-5);
  font-weight: 700;
}

/* ── Commissioner Bar ── */
.commish-bar {
  flex-shrink: 0;
  display: flex;
  gap: var(--s-2);
  padding: var(--s-2) var(--s-3);
  background: var(--bg-1);
  border-top: 1px solid var(--border-0);
}
.btn-commish {
  font-family: var(--font);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: var(--s-2) var(--s-3);
  border: 1px solid var(--border-1);
  border-radius: var(--r-sm);
  background: var(--bg-3);
  color: var(--text-1);
  cursor: pointer;
  flex: 1;
  min-height: 40px;
  transition: all 0.15s;
}
.btn-commish:active { transform: scale(0.97); }
.btn-commish--danger { border-color: rgba(239,68,68,0.3); color: var(--red); }

/* ══════════════════════════════════════
   BID BAR — THUMB ZONE
   ══════════════════════════════════════ */
.bid-bar {
  flex-shrink: 0;
  background: var(--bg-1);
  border-top: 2px solid var(--green);
  padding: var(--s-3) var(--s-4);
  padding-bottom: calc(var(--s-3) + var(--safe-bottom));
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  box-shadow: 0 -4px 24px rgba(0,0,0,0.4);
}

.bid-bar-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
}
.bid-current-wrap {
  display: flex;
  align-items: baseline;
  gap: var(--s-2);
}
.bid-label {
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.bid-amount {
  font-family: var(--mono);
  font-size: var(--fs-xl);
  font-weight: 800;
  color: var(--green);
  transition: color 0.2s;
}
.bid-amount.flash {
  animation: bidPop 0.35s var(--ease-spring);
}
@keyframes bidPop {
  0% { transform: scale(1); }
  40% { transform: scale(1.15); color: var(--accent-bright); }
  100% { transform: scale(1); }
}
.bid-leader-wrap {
  font-size: var(--fs-xs);
  color: var(--text-2);
}

.bid-increments {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s-2);
}
.bid-inc {
  font-family: var(--mono);
  font-weight: 700;
  font-size: var(--fs-base);
  padding: var(--s-3);
  background: var(--bg-3);
  border: 1.5px solid var(--border-1);
  border-radius: var(--r-sm);
  color: var(--text-0);
  cursor: pointer;
  transition: all 0.12s var(--ease-out);
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  user-select: none;
}
.bid-inc:active:not(:disabled) {
  border-color: var(--green);
  background: var(--green-ghost);
  transform: scale(0.95);
}
.bid-inc:disabled,
.bid-inc.own-bid {
  opacity: 0.2;
  cursor: not-allowed;
}

.bid-custom-row {
  display: flex;
  gap: var(--s-2);
}
.bid-custom-row input {
  flex: 1;
  text-align: center;
  font-size: var(--fs-md);
}
.btn-bid-submit {
  font-size: var(--fs-md);
  font-weight: 800;
  padding: var(--s-3) var(--s-6);
  min-height: 52px;
  letter-spacing: 0.05em;
  background: var(--green);
  border-color: var(--green);
  color: #000;
}
.btn-bid-submit:active { background: #059669; }

.bid-meta {
  display: flex;
  justify-content: space-between;
  font-size: var(--fs-xs);
  color: var(--text-3);
  font-family: var(--mono);
}

/* ══════════════════════════════════════
   SOLD OVERLAY
   ══════════════════════════════════════ */
.sold-overlay {
  position: absolute;
  inset: 0;
  z-index: 50;
  background: rgba(0,0,0,0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.sold-overlay-inner {
  text-align: center;
  padding: var(--s-8);
  width: 100%;
}
.sold-text {
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sold-going-once {
  color: var(--yellow);
  font-size: var(--fs-2xl);
  animation: soldBounce 0.5s var(--ease-spring);
}
.sold-going-twice {
  color: var(--orange);
  font-size: var(--fs-3xl);
  animation: soldBounce 0.5s var(--ease-spring);
}
.sold-final {
  color: var(--green);
  font-size: var(--fs-display);
  text-shadow: 0 0 40px var(--green-glow), 0 0 80px var(--green-glow);
  animation: soldFinal 0.6s var(--ease-spring);
}
@keyframes soldBounce {
  from { transform: scale(0.5); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}
@keyframes soldFinal {
  0% { transform: scale(0.2); opacity: 0; }
  60% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}
.sold-player-info {
  color: var(--text-1);
  font-size: var(--fs-md);
  font-weight: 600;
  margin-top: var(--s-3);
  letter-spacing: 0;
  text-transform: none;
}

/* ══════════════════════════════════════
   TEAM SHEET
   ══════════════════════════════════════ */
.sheet {
  position: absolute;
  inset: 0;
  z-index: 40;
}
.sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.6);
  backdrop-filter: blur(4px);
}
.sheet-panel {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border-1);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--s-3) var(--s-4) var(--s-6);
  padding-bottom: calc(var(--s-6) + var(--safe-bottom));
  max-height: 65dvh;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: sheetUp 0.3s var(--ease-out);
}
@keyframes sheetUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
.sheet-handle {
  width: 32px; height: 4px;
  border-radius: 2px;
  background: var(--border-2);
  margin: 0 auto var(--s-4);
}
.sheet-header {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-3);
}
.sheet-avatar { font-size: 1.5rem; }
.sheet-name { font-weight: 700; flex: 1; font-size: var(--fs-lg); }
.sheet-close {
  background: var(--bg-4);
  border: none;
  color: var(--text-2);
  font-size: var(--fs-md);
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
}
.sheet-stats {
  font-size: var(--fs-sm);
  color: var(--text-2);
  margin-bottom: var(--s-3);
  line-height: 1.6;
}
.ts-roster-item {
  display: flex;
  justify-content: space-between;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border-0);
  font-size: var(--fs-sm);
}
.ts-roster-price {
  font-family: var(--mono);
  color: var(--green);
  font-weight: 600;
}

/* ══════════════════════════════════════
   RESULTS
   ══════════════════════════════════════ */
.results-page {
  padding-bottom: calc(var(--s-8) + var(--safe-bottom));
}
.results-hero {
  text-align: center;
  padding: var(--s-8) 0 var(--s-6);
}
.trophy {
  font-size: 4rem;
  margin-bottom: var(--s-3);
  filter: drop-shadow(0 0 20px rgba(245,158,11,0.4));
}
.results-hero h1 {
  font-size: var(--fs-2xl);
  font-weight: 900;
  background: linear-gradient(135deg, var(--accent), var(--orange));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.results-hero h2 {
  color: var(--text-2);
  font-size: var(--fs-md);
  font-weight: 500;
  margin-top: var(--s-1);
}

.results-actions {
  display: flex;
  gap: var(--s-2);
  justify-content: center;
  margin-bottom: var(--s-6);
  flex-wrap: wrap;
}

.results-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--s-2);
  margin-bottom: var(--s-6);
}
.stat-card {
  background: var(--bg-2);
  border: 1px solid var(--border-0);
  border-radius: var(--r-md);
  padding: var(--s-4);
  text-align: center;
}
.stat-value {
  font-size: var(--fs-xl);
  font-weight: 800;
  font-family: var(--mono);
  color: var(--text-0);
}
.stat-label {
  font-size: var(--fs-xs);
  color: var(--text-3);
  margin-top: var(--s-1);
  font-weight: 500;
}

/* Swipeable results */
.results-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  margin: 0 calc(-1 * var(--s-4));
  padding: 0 var(--s-4);
}
.results-scroll::-webkit-scrollbar { display: none; }
.results-cards {
  display: flex;
  gap: var(--s-4);
}
.result-card {
  background: var(--bg-2);
  border: 1px solid var(--border-0);
  border-radius: var(--r-lg);
  padding: var(--s-5);
  scroll-snap-align: center;
  flex-shrink: 0;
  width: calc(100vw - 3rem);
  max-width: 360px;
  border-top: 3px solid var(--accent);
}
.rc-header {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.rc-avatar { font-size: 1.5rem; }
.rc-name { font-weight: 700; flex: 1; }
.rc-spent {
  font-family: var(--mono);
  color: var(--green);
  font-weight: 700;
}
.rc-player {
  display: flex;
  justify-content: space-between;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border-0);
  font-size: var(--fs-sm);
}
.rc-price {
  font-family: var(--mono);
  color: var(--green);
  font-weight: 600;
}
.rc-badge {
  font-size: var(--fs-xs);
  padding: 1px var(--s-2);
  border-radius: var(--r-full);
  font-weight: 700;
  margin-left: var(--s-1);
  display: inline-block;
  vertical-align: middle;
}
.badge-steal { background: var(--green-ghost); color: var(--green); }
.badge-splurge { background: var(--red-ghost); color: var(--red); }

.results-dots {
  display: flex;
  justify-content: center;
  gap: var(--s-2);
  margin-top: var(--s-4);
}
.results-dot {
  width: 6px; height: 6px;
  border-radius: var(--r-full);
  background: var(--bg-4);
  transition: all 0.2s var(--ease-out);
}
.results-dot.active {
  background: var(--accent);
  transform: scale(1.5);
}

/* ══════════════════════════════════════
   MODAL
   ══════════════════════════════════════ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0,0,0,0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-4);
  backdrop-filter: blur(4px);
}
.modal-panel {
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  max-width: 380px;
  width: 100%;
  position: relative;
}
.modal-close {
  position: absolute;
  top: var(--s-3); right: var(--s-3);
  background: var(--bg-4);
  border: none;
  color: var(--text-2);
  font-size: var(--fs-md);
  cursor: pointer;
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-full);
}
.modal-panel h2 { margin-bottom: var(--s-4); }
.shortcut-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
}
.sc {
  font-size: var(--fs-sm);
  display: flex;
  align-items: center;
  gap: var(--s-2);
}
kbd {
  font-family: var(--mono);
  font-size: var(--fs-xs);
  background: var(--bg-4);
  border: 1px solid var(--border-1);
  border-radius: 4px;
  padding: 2px var(--s-2);
  min-width: 28px;
  text-align: center;
}

/* ══════════════════════════════════════
   CONFETTI + PTR
   ══════════════════════════════════════ */
#confetti-canvas {
  position: fixed;
  inset: 0;
  z-index: 300;
  pointer-events: none;
}

.ptr {
  position: fixed;
  top: 0; left: 0; right: 0;
  text-align: center;
  padding: var(--s-3);
  background: var(--accent);
  color: #000;
  font-size: var(--fs-sm);
  font-weight: 700;
  z-index: 100;
  animation: slideDown 0.3s var(--ease-out);
}
@keyframes slideDown {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

/* Sold flash on nomination area */
.sold-flash { animation: soldFlash 1s ease; }
@keyframes soldFlash {
  0%,20% { background: var(--green-ghost); }
  100% { background: transparent; }
}

/* ══════════════════════════════════════
   YOUR TURN INDICATOR
   ══════════════════════════════════════ */
.your-turn-glow {
  animation: turnGlow 1.5s ease-in-out infinite;
}
@keyframes turnGlow {
  0%,100% { box-shadow: 0 0 0 0 var(--accent-glow); }
  50% { box-shadow: 0 0 20px 4px var(--accent-glow); }
}

/* ══════════════════════════════════════
   DESKTOP ENHANCEMENTS
   ══════════════════════════════════════ */
/* ════════════════════════════════════════
   TEAM IDENTITY BADGE
   ════════════════════════════════════════ */
.team-badge {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  padding: var(--s-2) var(--s-4);
  background: var(--bg-1);
  border-bottom: 2px solid var(--accent);
  flex-shrink: 0;
}
.team-badge-avatar {
  font-size: 1.4rem;
}
.team-badge-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.team-badge-name {
  font-weight: 800;
  font-size: var(--fs-base);
  color: var(--text-0);
}
.team-badge-stats {
  font-size: var(--fs-xs);
  font-family: var(--mono);
  color: var(--text-2);
  font-weight: 600;
}

/* ════════════════════════════════════════
   TURN AWARENESS BANNER
   ════════════════════════════════════════ */
.turn-banner {
  flex-shrink: 0;
  text-align: center;
  padding: var(--s-3) var(--s-4);
  font-weight: 800;
  font-size: var(--fs-base);
  letter-spacing: 0.02em;
  animation: fadeIn 0.3s ease;
}
.turn-banner.your-turn {
  background: linear-gradient(90deg, rgba(245,158,11,0.15), rgba(249,115,22,0.15));
  color: var(--accent-bright);
  border-bottom: 2px solid var(--accent);
  animation: turnBannerPulse 2s ease-in-out infinite;
}
.turn-banner.waiting {
  background: var(--bg-2);
  color: var(--text-2);
  font-weight: 600;
  font-size: var(--fs-sm);
  animation: waitingPulse 3s ease-in-out infinite;
}
@keyframes turnBannerPulse {
  0%,100% { background: linear-gradient(90deg, rgba(245,158,11,0.1), rgba(249,115,22,0.1)); }
  50% { background: linear-gradient(90deg, rgba(245,158,11,0.25), rgba(249,115,22,0.25)); }
}
@keyframes waitingPulse {
  0%,100% { opacity: 1; }
  50% { opacity: 0.6; }
}

/* ════════════════════════════════════════
   BID HISTORY TIMELINE
   ════════════════════════════════════════ */
.bid-timeline {
  display: flex;
  align-items: center;
  gap: var(--s-1);
  padding: var(--s-2) 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
}
.bid-timeline::-webkit-scrollbar { display: none; }
.bid-tl-item {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: var(--fs-xs);
  color: var(--text-2);
  white-space: nowrap;
  padding: 2px var(--s-2);
  border-radius: var(--r-full);
  background: var(--bg-3);
  border: 1px solid var(--border-0);
  font-family: var(--mono);
  font-weight: 600;
}
.bid-tl-item.current {
  background: var(--green-ghost);
  border-color: var(--green);
  color: var(--green);
  box-shadow: 0 0 12px var(--green-glow);
}
.bid-tl-arrow {
  color: var(--text-3);
  font-size: var(--fs-xs);
  flex-shrink: 0;
}

/* ════════════════════════════════════════
   WATCHLIST
   ════════════════════════════════════════ */
.watchlist-fab {
  position: fixed;
  bottom: calc(80px + var(--safe-bottom));
  right: var(--s-4);
  z-index: 30;
  width: 48px;
  height: 48px;
  border-radius: var(--r-full);
  background: var(--bg-3);
  border: 1.5px solid var(--border-2);
  color: var(--text-0);
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  transition: all 0.2s var(--ease-out);
}
.watchlist-fab:active { transform: scale(0.9); }

.watchlist-panel {
  position: fixed;
  bottom: calc(140px + var(--safe-bottom));
  right: var(--s-4);
  z-index: 31;
  width: 280px;
  max-height: 320px;
  background: var(--bg-2);
  border: 1px solid var(--border-1);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  animation: slideUp 0.25s var(--ease-out);
  overflow: hidden;
}
.watchlist-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-3) var(--s-4);
  font-weight: 700;
  font-size: var(--fs-base);
  border-bottom: 1px solid var(--border-0);
  flex-shrink: 0;
}
.watchlist-toggle {
  background: none;
  border: none;
  color: var(--text-2);
  font-size: var(--fs-md);
  cursor: pointer;
  padding: var(--s-1);
}
.watchlist-add-row {
  display: flex;
  gap: var(--s-2);
  padding: var(--s-3);
  border-bottom: 1px solid var(--border-0);
  flex-shrink: 0;
}
.watchlist-add-row input {
  flex: 1;
  font-size: var(--fs-sm);
  min-height: 36px;
  padding: var(--s-2) var(--s-3);
}
.btn-sm {
  padding: var(--s-2) var(--s-3);
  min-height: 36px;
  font-size: var(--fs-base);
  font-weight: 800;
}
.watchlist-items {
  overflow-y: auto;
  flex: 1;
  padding: var(--s-2) var(--s-3);
}
.watchlist-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--s-2) 0;
  border-bottom: 1px solid var(--border-0);
  font-size: var(--fs-sm);
}
.watchlist-item .wl-remove {
  background: none;
  border: none;
  color: var(--red);
  cursor: pointer;
  font-size: var(--fs-sm);
  padding: var(--s-1) var(--s-2);
  border-radius: var(--r-sm);
}
.watchlist-item .wl-remove:active { background: var(--red-ghost); }
.watchlist-item.drafted {
  opacity: 0.35;
  text-decoration: line-through;
}

/* Watchlist quick-picks above nomination input */
.watchlist-quickpicks {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-1);
  padding: 0 0 var(--s-2) 0;
  position: relative;
}
.wl-quickpick {
  font-family: var(--font);
  font-size: var(--fs-xs);
  font-weight: 600;
  padding: var(--s-1) var(--s-3);
  border: 1px solid var(--accent);
  border-radius: var(--r-full);
  background: var(--accent-ghost);
  color: var(--accent-bright);
  cursor: pointer;
  transition: all 0.12s;
  white-space: nowrap;
}
.wl-quickpick:active {
  background: var(--accent);
  color: #000;
}

/* Watchlist alert toast */
.watchlist-alert {
  position: fixed;
  top: calc(var(--safe-top) + 60px);
  left: var(--s-4);
  right: var(--s-4);
  z-index: 60;
  background: linear-gradient(135deg, #f97316, #ef4444);
  color: #fff;
  font-weight: 700;
  font-size: var(--fs-base);
  padding: var(--s-3) var(--s-4);
  border-radius: var(--r-md);
  text-align: center;
  animation: slideDown 0.3s var(--ease-out);
  box-shadow: var(--shadow-lg);
}

/* ════════════════════════════════════════
   MY ROSTER FAB + PANEL
   ════════════════════════════════════════ */
.roster-fab {
  position: fixed;
  bottom: calc(20px + var(--safe-bottom));
  right: var(--s-4);
  z-index: 30;
  padding: var(--s-2) var(--s-4);
  border-radius: var(--r-full);
  background: var(--accent);
  border: none;
  color: #000;
  font-family: var(--font);
  font-size: var(--fs-sm);
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: var(--s-1);
  box-shadow: var(--shadow-glow);
  transition: all 0.2s var(--ease-out);
  min-height: 40px;
}
.roster-fab:active { transform: scale(0.9); }

.roster-panel {
  position: absolute;
  inset: 0;
  z-index: 41;
}
.roster-panel-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s-2);
  margin-bottom: var(--s-3);
}
.rp-stat {
  background: var(--bg-3);
  border-radius: var(--r-sm);
  padding: var(--s-2) var(--s-3);
  text-align: center;
}
.rp-stat-val {
  font-family: var(--mono);
  font-weight: 800;
  font-size: var(--fs-md);
  color: var(--text-0);
}
.rp-stat-label {
  font-size: var(--fs-xs);
  color: var(--text-3);
}

/* ════════════════════════════════════════
   SOLD RESULT CARD
   ════════════════════════════════════════ */
.result-card-overlay {
  position: absolute;
  inset: 0;
  z-index: 51;
  background: rgba(0,0,0,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn 0.3s ease;
}
.result-card-inner {
  text-align: center;
  padding: var(--s-8) var(--s-6);
  max-width: 360px;
  width: 100%;
  animation: popIn 0.5s var(--ease-spring);
}
.rc-sold-player {
  font-size: var(--fs-2xl);
  font-weight: 900;
  margin-bottom: var(--s-2);
  line-height: 1.1;
}
.rc-sold-arrow {
  font-size: var(--fs-lg);
  color: var(--text-3);
  margin: var(--s-2) 0;
}
.rc-sold-team {
  font-size: var(--fs-xl);
  font-weight: 800;
  margin-bottom: var(--s-2);
}
.rc-sold-price {
  font-family: var(--mono);
  font-size: var(--fs-3xl);
  font-weight: 900;
  color: var(--green);
  text-shadow: 0 0 20px var(--green-glow);
}

/* Bid bar team accent */
.bid-bar[data-team-color] {
  border-top-color: var(--team-accent, var(--green));
}

@media (min-width: 768px) {
  .home-actions {
    flex-direction: row;
    max-width: 640px;
  }
  .action-card { flex: 1; }

  .auction-stage {
    min-height: 220px;
    padding: var(--s-6);
  }
  .nom-player { font-size: var(--fs-2xl); }
  .nom-bid-hero { font-size: var(--fs-3xl); }

  .timer-ring { width: 110px; height: 110px; }
  .timer-value { font-size: var(--fs-3xl); }

  .budget-strip { padding: var(--s-2) var(--s-8); }

  .draft-body {
    max-width: 800px;
    margin: 0 auto;
    width: 100%;
  }

  .bid-bar {
    max-width: 640px;
    margin: 0 auto;
    width: 100%;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }

  .results-page { max-width: 900px; }
  .results-stats {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }
  .result-card { width: 320px; }

  .sold-going-once { font-size: var(--fs-3xl); }
  .sold-going-twice { font-size: var(--fs-display); }
  .sold-final { font-size: 5rem; }

  .lobby-teams {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }
  .team-select-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  }

  /* Hover states */
  .action-card:hover {
    border-color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  .btn:hover:not(:disabled) { filter: brightness(1.1); }
  .btn-primary:hover:not(:disabled) { box-shadow: var(--shadow-glow); }
  .bid-inc:hover:not(:disabled) {
    border-color: var(--green);
    background: var(--green-ghost);
  }
  .team-pill:hover { background: var(--bg-4); }
  .team-select-btn:hover:not(.taken) { border-color: var(--accent); }
}

@media (min-width: 1024px) {
  .draft-body { max-width: 960px; }
  .bid-bar { max-width: 720px; }
}
