body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 900px 700px at 50% -10%, rgba(212, 175, 55, 0.1), transparent 60%),
    radial-gradient(ellipse 800px 600px at 50% 110%, rgba(30, 92, 46, 0.12), transparent 60%),
    #030304;
}

.phone-frame {
  position: relative;
  width: 430px;
  max-width: 100vw;
  height: 100vh;
  max-height: 932px;
  border: 10px solid #1a1a1f;
  border-radius: 42px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(212, 175, 55, 0.18), 0 0 70px -18px rgba(212, 175, 55, 0.35);
}
/* Desktop-preview mockup bezel, not meant for an actual phone screen
   (or the wrapped app) -- drop it entirely edge-to-edge below phone
   width instead of it reading as an ugly border. */
@media (max-width: 480px) {
  .phone-frame {
    width: 100vw;
    max-width: none;
    height: 100vh;
    max-height: none;
    border: none;
    border-radius: 0;
    box-shadow: none;
  }
}

/* Export/view-board/message now live inline in the header row (see
   .header-actions below) instead of an absolutely-positioned stack --
   that floated over the screen and covered the bottom of the Recent
   Picks list, and separately overlapped the title once the header
   became left-aligned like Draft Entry's. Sized down to fit
   comfortably in a header row instead of as floating FABs. */
.board-message-fab,
.board-fab {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 15px;
  cursor: pointer;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}
.board-message-fab:active,
.board-fab:active { transform: scale(0.95); }
.board-message-fab[hidden],
.board-fab[hidden] { display: none; }
/* Transparent circle + white-only icon (matches the Draft Board
   header's tool buttons) instead of a solid filled background --
   lets these sit over the field-photo background without a heavy
   opaque disc competing with it. Message uses the same treatment but
   with a blue outline (matching the title's blue outline) instead of
   the neutral border, so it still reads as the "different" action. */
.board-fab {
  background: rgba(8, 10, 14, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
}
.board-message-fab {
  width: auto;
  height: 34px;
  padding: 0 14px 0 10px;
  border-radius: 17px;
  gap: 6px;
  background: #2f6fed;
  border: 1.5px solid #2f6fed;
  color: #fff;
  font-weight: 700;
}
.board-message-label {
  font-size: 12px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.phone-screen {
  height: 100%;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  /* Same field photo + dark overlay gradient as the Draft Board header
     and the Enter Pick screen, instead of just the plain turf pattern
     (.turf-bg). */
  background-image: linear-gradient(180deg, rgba(6, 8, 12, 0.72) 0%, rgba(6, 8, 12, 0.88) 100%), url("shared/images/field-bg.jpg");
  background-size: cover;
  background-position: center 65%;
}

/* ---------------- Header ---------------- */

.picks-header {
  flex: none;
  padding: 16px 16px 14px;
}
/* Same layout as the Draft Entry header: title left, actions grouped
   on the right (space-between), instead of a centered title with an
   absolutely-positioned back button and a separate floating FAB stack
   that could overlap it. The back button is a normal flex child now
   (collapses out of flow via [hidden] instead of just being invisible
   in place), so it never overlaps the title either. */
.header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.back-btn[hidden] { display: none; }
.back-btn {
  background: var(--panel-alt);
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: none;
}
/* Same treatment as the Draft Entry / Draft Board titles: plain white
   text with a hard (0-blur) blue outline, no glow/drop-shadow. */
.picks-title {
  margin: 0;
  font-size: 28px;
  font-weight: 900;
  letter-spacing: 0.5px;
  color: #fff;
  text-shadow:
    -1px 0 0 #2f6fed,
    1px 0 0 #2f6fed,
    0 -1px 0 #2f6fed,
    0 1px 0 #2f6fed,
    -1px -1px 0 #2f6fed,
    1px -1px 0 #2f6fed,
    -1px 1px 0 #2f6fed,
    1px 1px 0 #2f6fed;
  flex: 1;
  min-width: 0;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}

/* ---------------- Main ---------------- */

.picks-main { flex: 1; padding: 20px 16px 28px; }

.section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--text-faint);
  margin-bottom: 10px;
}
.section-label::before {
  content: "";
  width: 3px;
  height: 11px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold-dim));
  flex: none;
}

.picker-hint { font-size: 12.5px; color: var(--text-dim); line-height: 1.4; margin: -4px 0 14px; }

.recap-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: linear-gradient(155deg, rgba(212, 175, 55, 0.18) 0%, var(--panel-alt-grad) 60%);
  border: 1px solid var(--gold-dim);
  box-shadow: var(--panel-sheen);
  text-decoration: none;
  color: var(--text);
}
.recap-banner[hidden] { display: none; }
.recap-banner-icon { display: flex; line-height: 0; flex: none; }
.recap-banner-text { font-size: 13px; font-weight: 700; }

.nomination-banner-mobile {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  padding: 12px 14px;
  margin-bottom: 16px;
  border-radius: var(--radius-md);
  background: var(--panel-alt-grad);
  border: 1px solid var(--gold-dim);
  box-shadow: var(--panel-sheen);
}
.nomination-banner-mobile[hidden] { display: none; }
.nomination-label-mobile {
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.2px;
  color: var(--gold);
  white-space: nowrap;
}
.nomination-player-mobile { font-size: 16px; font-weight: 800; color: var(--text); }
.nomination-position-mobile {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 2px 8px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-soft);
}
.nomination-position-mobile.pos-QB { color: var(--qb-glow); border-color: var(--qb); }
.nomination-position-mobile.pos-RB { color: var(--rb-glow); border-color: var(--rb); }
.nomination-position-mobile.pos-WR { color: var(--wr-glow); border-color: var(--wr); }
.nomination-position-mobile.pos-TE { color: var(--te-glow); border-color: var(--te); }
.nomination-position-mobile.pos-DEF { color: var(--def-glow); border-color: var(--def); }
.nomination-position-mobile.pos-K { color: var(--k-glow); border-color: var(--k); }

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.team-box {
  position: relative;
  aspect-ratio: 1 / 1;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 8px;
  cursor: pointer;
  overflow: hidden;
  box-shadow: inset 0 -18px 26px rgba(0, 0, 0, 0.35);
  transition: transform 0.1s ease;
}
.team-box:active { transform: scale(0.97); }
.team-box::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 8px;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,0.35) 0px, rgba(255,255,255,0.35) 6px, rgba(255,255,255,0.08) 6px, rgba(255,255,255,0.08) 12px);
}
.team-box::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.14) 0%, transparent 45%, rgba(0, 0, 0, 0.22) 100%);
  pointer-events: none;
}
.team-box-name {
  font-size: 12.5px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.95);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
  line-height: 1.25;
}

/* ---------------- Draft-wide stats ----------------
   Same look and feel as the Draft Board header's own stat widgets
   (frosted chips, position colors, gold labels) -- stacked vertically
   here instead of side by side, since the header row there is wide and
   this is a narrow phone screen. */
.picks-stats {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.stats-tracker { display: flex; flex-direction: column; align-items: center; }
.tracker-numbers { display: flex; align-items: baseline; gap: 6px; }
.tracker-label { font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.5px; color: var(--text-faint); }
.tracker-value { font-size: 16px; font-weight: 700; color: #59c2f0; }
.progress-bar {
  margin-top: 5px;
  width: 100%;
  max-width: 220px;
  height: 6px;
  border-radius: 999px;
  background: var(--panel-alt);
  border: 1px solid var(--border);
  overflow: hidden;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #005a8a, #0076b6);
  border-radius: 999px;
  transition: width 0.5s ease;
}

.stats-block { display: flex; flex-direction: column; gap: 8px; }
.recent-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); }

.position-totals-row { display: flex; gap: 8px; justify-content: space-between; }
.pt-chip {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 6px 4px;
  border-radius: var(--radius-sm);
  background: rgba(28, 30, 40, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--border);
}
.pt-chip .pt-pos { font-size: 10px; font-weight: 800; letter-spacing: 0.5px; }
.pt-chip .pt-count { font-size: 15px; font-weight: 700; color: var(--text); }

.recent-strip { display: flex; flex-direction: column; gap: 6px; }
.recent-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  background: rgba(28, 30, 40, 0.28);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--border);
  font-size: 12px;
  overflow: hidden;
}
.rc-pos-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.rc-name { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); font-weight: 600; }
.rc-price { font-weight: 800; flex: none; }

/* ---------------- Roster view ---------------- */

.team-banner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  border-radius: var(--radius-lg);
  font-size: 19px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.4);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}
.team-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.16) 0%, transparent 50%, rgba(0, 0, 0, 0.2) 100%);
  pointer-events: none;
}

.budget-row {
  display: flex;
  gap: 10px;
  margin-top: 14px;
}
.budget-chip {
  flex: 1;
  background: var(--panel-alt-grad);
  box-shadow: var(--panel-sheen);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  text-align: center;
}
.budget-chip .bc-label { font-size: 10px; text-transform: uppercase; letter-spacing: 1px; color: var(--text-faint); }
/* Spent/Remaining stay neutral white; Max Bid gets the same blue used
   for "Max Bid" on the real Draft Board grid (.budget-cell.max-bid),
   so the two pages read consistently. */
.budget-chip .bc-value { font-size: 17px; font-weight: 800; color: var(--text); margin-top: 2px; }
.budget-chip.max .bc-value { color: #59c2f0; }

.roster-list {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.roster-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-md);
  background: var(--panel-grad);
  box-shadow: var(--panel-sheen);
  border: 2px solid var(--border-soft);
}
.roster-row.filled.pos-QB { border-color: var(--qb); }
.roster-row.filled.pos-RB { border-color: var(--rb); }
.roster-row.filled.pos-WR { border-color: var(--wr); }
.roster-row.filled.pos-TE { border-color: var(--te); }
.roster-row.filled.pos-DEF { border-color: var(--def); }
.roster-row.filled.pos-K { border-color: var(--k); }

.roster-slot-tag {
  flex: none;
  width: 52px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  color: var(--text-dim);
}
.roster-player { flex: 1; }
.roster-player .rp-name { font-size: 14.5px; font-weight: 700; color: var(--text); }
.roster-player .rp-pos { font-size: 11px; color: var(--text-faint); margin-top: 1px; }
.roster-price { font-size: 15px; font-weight: 800; color: var(--text); }
.roster-row.empty .roster-price { color: var(--text-faint); font-weight: 600; font-size: 12px; text-transform: uppercase; }
