/* =====================================================================
   Championship Navy — app.css
   PGA Championship 2026 at Aronimink
   ===================================================================== */

:root {
  --navy:         #00205B;
  --navy-deep:    #001845;
  --white:        #FFFFFF;
  --cream:        #F8F6F0;
  --gold:         #B8860B;
  --gold-bright:  #DAA520;
  --red:          #C41E3A;
  --gray-600:     #4A5568;
  --gray-300:     #CBD5E0;
  --hairline:     rgba(0, 32, 91, 0.12);
  --card-shadow:  0 1px 3px rgba(0,0,0,.08), 0 8px 24px -8px rgba(0,32,91,.10);
}

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

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--navy);
  font-family: 'Manrope', -apple-system, sans-serif;
  font-size: 15px;
  line-height: 1.4;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--navy); }

/* ---- Hero ---- */
.hero {
  position: relative;
  text-align: center;
  padding: 48px 24px 40px;
  background: var(--navy);
  background-image: repeating-linear-gradient(
    45deg,
    var(--navy-deep) 0px,
    var(--navy-deep) 2px,
    transparent 2px,
    transparent 12px
  );
  animation: fade-up 600ms ease-out both;
}

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

.hero-inner { max-width: 800px; margin: 0 auto; }

.hero-auth {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 4px;
  min-height: 36px;
}

.auth-btn {
  background: transparent;
  border: 1.5px solid var(--gold);
  border-radius: 24px;
  padding: 8px 20px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--white);
  cursor: pointer;
  transition: background 200ms, color 200ms;
}
.auth-btn:hover {
  background: var(--gold);
  color: var(--navy);
}

.auth-user-info {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--white);
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  white-space: nowrap;
}
.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
}
.user-name {
  font-weight: 600;
  cursor: pointer;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 140px;
}
.user-name:hover { color: var(--gold-bright); }
.auth-logout {
  background: none;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 4px;
  color: rgba(255,255,255,.7);
  font-size: 11px;
  cursor: pointer;
  font-family: 'Manrope', sans-serif;
  padding: 4px 10px;
  white-space: nowrap;
}
.auth-logout:hover { color: var(--white); border-color: rgba(255,255,255,.6); }

.hero-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: clamp(28px, 4vw, 44px);
  color: var(--white);
  line-height: 1.0;
  margin: 0 0 16px;
  letter-spacing: -0.01em;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 50, "WONK" 1;
  white-space: nowrap;
}
.hero-real {
  font-weight: 600;
  font-style: italic;
}

.hero-subtitle {
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 8px;
}

.hero-info {
  font-family: 'Manrope', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  margin-bottom: 20px;
}

.hero-rule {
  width: 60px;
  height: 2px;
  background: var(--gold);
  margin: 0 auto;
}

/* ---- Tabs ---- */
.tabs {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  background: var(--navy);
  padding: 0;
  border-bottom: 1px solid rgba(255,255,255,.1);
}

.tab {
  background: transparent;
  border: 0;
  padding: 16px 24px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: rgba(255,255,255,.55);
  cursor: pointer;
  position: relative;
  white-space: nowrap;
  transition: color 200ms;
  letter-spacing: 0.02em;
}
.tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 3px;
  background: var(--gold);
  transition: width 200ms;
}
.tab.active { color: var(--white); }
.tab.active::after { width: 100%; }
.tab:hover { color: rgba(255,255,255,.85); }

/* ---- Panel ---- */
.panel {
  max-width: 980px;
  margin: 0 auto;
  padding: 32px 16px 80px;
}
.panel.hidden { display: none; }

/* ---- Card ---- */
.card {
  background: var(--white);
  border-radius: 8px;
  border: 1px solid var(--gray-300);
  box-shadow: var(--card-shadow);
  padding: 40px;
  overflow: hidden;
}

/* ---- Section head ---- */
.section-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
}
.section-head-label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  color: var(--navy);
  white-space: nowrap;
  line-height: 1;
}
.section-head-rule {
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

/* ---- Empty state ---- */
.empty-state {
  text-align: center;
  padding: 60px 20px;
  color: var(--gray-600);
}
.empty-state .empty-icon {
  font-size: 48px;
  margin-bottom: 16px;
}
.empty-state h3 {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  color: var(--navy);
  margin: 0 0 8px;
}
.empty-state p {
  font-size: 15px;
  margin: 0;
  color: var(--gray-600);
}

/* ---- Leaderboard body ---- */
.leaderboard-body { overflow: hidden; }

.leaderboard-team {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: 'Manrope', sans-serif;
}
.leaderboard-team:last-child { border-bottom: 0; }
.lb-team-name { font-weight: 600; font-size: 15px; color: var(--navy); }
.lb-team-tb {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: var(--gold);
  font-weight: 600;
}
.lb-team-picks {
  font-size: 12px;
  color: var(--gray-600);
}

/* ---- Auth prompt (Your Team tab) ---- */
.auth-prompt {
  text-align: center;
  padding: 60px 20px;
}
.prompt-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 12px;
}
.prompt-text {
  font-size: 16px;
  color: var(--gray-600);
  margin: 0 0 28px;
  max-width: 400px;
  margin-left: auto;
  margin-right: auto;
}
.prompt-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Buttons ---- */
.btn-gold {
  background: var(--gold);
  color: var(--navy);
  border: 0;
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 200ms;
}
.btn-gold:hover { background: var(--gold-bright); }
.btn-gold:disabled { opacity: .5; cursor: not-allowed; }

.btn-gold-sm {
  background: var(--gold);
  color: var(--navy);
  border: 0;
  padding: 10px 18px;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.btn-gold-sm:hover { background: var(--gold-bright); }

.btn-outline {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid var(--navy);
  padding: 12px 28px;
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 200ms;
}
.btn-outline:hover { background: rgba(0,32,91,.06); }


.btn-danger-sm {
  background: none;
  border: 0;
  color: var(--red);
  font-size: 18px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
  opacity: .6;
}
.btn-danger-sm:hover { opacity: 1; }

.full-width { width: 100%; }

/* ---- Form elements ---- */
.form-group {
  margin-bottom: 16px;
}
.form-group label {
  display: block;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 6px;
}
.form-group input,
.form-input {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--navy);
  background: var(--white);
  outline: none;
  transition: border-color 200ms;
}
.form-group input:focus,
.form-input:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 2px rgba(184,134,11,.15);
}

.form-error {
  color: var(--red);
  font-size: 13px;
  min-height: 20px;
  margin-bottom: 8px;
}

/* ---- Auth divider ---- */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 20px 0;
  color: var(--gray-600);
  font-size: 13px;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}
.auth-switch {
  text-align: center;
  font-size: 13px;
  color: var(--gray-600);
  margin-top: 16px;
}
.auth-switch a {
  color: var(--gold);
  font-weight: 600;
  text-decoration: none;
}
.auth-switch a:hover { text-decoration: underline; }

/* ---- Modal ---- */
.modal-shade {
  position: fixed;
  inset: 0;
  background: rgba(0, 20, 50, .65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
  backdrop-filter: blur(4px);
}
.modal-shade.hidden { display: none; }

.modal {
  background: var(--white);
  max-width: 420px;
  width: 100%;
  border-radius: 12px;
  box-shadow: 0 20px 60px rgba(0,0,0,.3);
  overflow: hidden;
}

.modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--hairline);
}
.modal-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 24px;
  color: var(--navy);
}
.modal-close {
  background: none;
  border: 0;
  font-size: 14px;
  cursor: pointer;
  color: var(--gray-600);
  padding: 0;
  line-height: 1;
}
.modal-close:hover { color: var(--navy); }

.modal-body { padding: 24px 28px 28px; }

/* ---- Copy row ---- */
.copy-row { display: flex; gap: 10px; align-items: center; }
.copy-row input {
  flex: 1;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 10px 14px;
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--cream);
  color: var(--navy);
  outline: none;
}
.copy-status {
  margin-top: 10px;
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--gold);
  min-height: 16px;
}

/* ---- Share panel ---- */
.share-content { padding: 20px 0; }
.share-text {
  font-size: 15px;
  color: var(--gray-600);
  margin: 0 0 20px;
}

/* ---- Team creation ---- */
.team-create {
  text-align: center;
  padding: 60px 20px;
}
.team-create-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 20px;
}
.team-create-form {
  max-width: 360px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ---- Team switcher ---- */
.team-switcher {
  margin-bottom: 20px;
}
.team-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.team-tab {
  padding: 8px 18px;
  border: 1px solid var(--gray-300);
  border-radius: 20px;
  background: var(--white);
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 14px;
  color: var(--gray-600);
  cursor: pointer;
  transition: all 200ms;
}
.team-tab.active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}
.team-tab:hover:not(.active) {
  border-color: var(--navy);
  color: var(--navy);
}

.team-create-inline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--gray-300);
}
.team-create-inline .form-input {
  flex: 1;
  min-width: 160px;
}
.team-create-inline .form-error {
  width: 100%;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  white-space: nowrap;
}

.pick-team-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.btn-delete-team {
  background: none;
  border: 1px solid var(--red);
  color: var(--red);
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 200ms;
}
.btn-delete-team:hover {
  background: var(--red);
  color: var(--white);
}

/* ---- Pick interface ---- */
.pick-interface { padding: 0; }

.pick-and-tiebreaker {
  display: flex;
  gap: 24px;
  align-items: flex-start;
}
.pick-tiers { flex: 1; min-width: 0; }

.tiebreaker-section {
  flex-shrink: 0;
  width: 130px;
  text-align: center;
  padding: 20px 12px;
  background: var(--cream);
  border: 1px solid var(--gray-300);
  border-radius: 12px;
  position: sticky;
  top: 20px;
}
.tiebreaker-label {
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 14px;
  color: var(--navy);
  margin-bottom: 12px;
}
.tiebreaker-display {
  font-family: 'JetBrains Mono', monospace;
  font-size: 36px;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 12px;
  line-height: 1;
}
.tiebreaker-controls {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 10px;
}
.tb-btn {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  border: 1px solid var(--navy);
  background: var(--navy);
  color: var(--white);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 200ms;
}
.tb-btn:hover { opacity: .85; }
.tb-btn:disabled {
  opacity: .3;
  cursor: not-allowed;
}
.tiebreaker-hint {
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  color: var(--gray-600);
  line-height: 1.3;
}

.save-team-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--hairline);
  flex-wrap: wrap;
}
.btn-save-team {
  background: var(--navy);
  color: var(--white);
  border: 0;
  border-radius: 8px;
  padding: 12px 24px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  transition: background 200ms;
  min-width: 140px;
}
.btn-save-team:hover { background: var(--navy-deep); }
.btn-save-team.saved {
  background: #2e7d32;
}
.save-team-note {
  font-family: 'Manrope', sans-serif;
  font-size: 12px;
  color: var(--gray-600);
  font-style: italic;
}

.pick-team-name {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 32px;
  color: var(--navy);
  margin: 0;
}

.pick-lock-msg {
  display: inline-block;
  background: rgba(196,30,58,.1);
  color: var(--red);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 4px;
  margin-bottom: 20px;
}

.pick-progress {
  margin-bottom: 28px;
}
.pick-progress-text {
  font-size: 13px;
  font-weight: 600;
  color: var(--gray-600);
  margin-bottom: 8px;
}
.pick-progress-bar {
  height: 6px;
  background: var(--gray-300);
  border-radius: 3px;
  overflow: hidden;
}
.pick-progress-fill {
  height: 100%;
  background: var(--gold);
  border-radius: 3px;
  transition: width 300ms ease;
}

.pick-countdown {
  font-size: 12px;
  color: var(--gray-600);
  margin-bottom: 24px;
}

.tier-section {
  margin-bottom: 28px;
}
.tier-label {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 20px;
  color: var(--navy);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--gold);
  margin-bottom: 14px;
}

.pick-slot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: var(--cream);
  border-radius: 6px;
  margin-bottom: 8px;
  min-height: 48px;
}
.pick-slot-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--gray-600);
  min-width: 70px;
}
.pick-slot-player {
  flex: 1;
  font-weight: 600;
  font-size: 14px;
  color: var(--navy);
  margin: 0 12px;
}
.pick-slot-empty {
  flex: 1;
  margin: 0 12px;
}

.btn-select-player {
  background: var(--navy);
  color: var(--white);
  border: 0;
  padding: 6px 14px;
  border-radius: 4px;
  font-family: 'Manrope', sans-serif;
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
  transition: background 200ms;
}
.btn-select-player:hover { background: var(--navy-deep); }

/* ---- Player dropdown ---- */
.player-dropdown {
  position: relative;
}
.player-dropdown-list {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  max-height: 200px;
  overflow-y: auto;
  background: var(--white);
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  z-index: 20;
  margin-top: 4px;
}
.player-dropdown-item {
  padding: 10px 14px;
  font-size: 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--hairline);
}
.player-dropdown-item:hover { background: var(--cream); }
.player-dropdown-item:last-child { border-bottom: 0; }
.player-dropdown-search {
  padding: 10px 14px;
  border-bottom: 1px solid var(--gray-300);
  position: sticky;
  top: 0;
  background: var(--white);
}
.player-dropdown-search input {
  width: 100%;
  border: 1px solid var(--gray-300);
  border-radius: 4px;
  padding: 6px 10px;
  font-size: 13px;
  outline: none;
}

/* ---- Rules ---- */
.rules-card { padding: 40px; }

.rules-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 36px;
  color: var(--navy);
  margin: 0 0 28px;
  line-height: 1;
}

.rules-body { columns: 2; column-gap: 48px; }

.rules {
  padding-left: 18px;
  line-height: 1.7;
  font-family: 'Manrope', sans-serif;
  font-size: 15px;
  color: var(--navy);
  break-inside: avoid;
  margin: 0;
}
.rules li { margin: 10px 0; break-inside: avoid; }
.rules a { color: var(--gold); text-underline-offset: 2px; }
.rules strong { color: var(--navy); }

/* ---- Stats ---- */
.stats-section { margin-bottom: 36px; }
.stats-section h3 {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 300;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 14px;
  line-height: 1;
}
.stats-section h3::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--gray-300);
}

.stat-row {
  display: grid;
  grid-template-columns: 28px 1fr 72px 72px;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 14px;
  align-items: baseline;
}
.stat-row:last-of-type { border-bottom: 0; }
.stat-row .rank {
  font-family: 'JetBrains Mono', monospace;
  font-size: 11px;
  color: var(--gray-600);
  opacity: .55;
}
.stat-row .player-name {
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  color: var(--navy);
}
.stat-row .pct {
  font-family: 'JetBrains Mono', monospace;
  text-align: right;
  font-size: 13px;
  color: var(--gray-600);
}
.stat-row .pct.primary {
  color: var(--red);
  font-weight: 700;
  font-size: 15px;
}

.tier-stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

/* ---- PGA Championship Leaderboard ---- */
.pga-lb-row {
  display: grid;
  grid-template-columns: 50px 1fr 70px 60px 60px;
  gap: 8px;
  padding: 10px 0;
  border-bottom: 1px solid var(--hairline);
  font-family: 'Manrope', sans-serif;
  font-size: 14px;
  align-items: center;
}
.pga-lb-header {
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--gray-600);
  border-bottom: 2px solid var(--navy);
  padding-bottom: 8px;
}
.pga-lb-row:last-child { border-bottom: 0; }
.pga-lb-top { background: rgba(184,134,11,.06); }
.pga-lb-pos {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}
.pga-lb-name {
  font-weight: 600;
  color: var(--navy);
}
.pga-lb-score {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 700;
  text-align: right;
  color: var(--navy);
}
.pga-lb-today, .pga-lb-thru {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  text-align: right;
  color: var(--gray-600);
}
.pga-source {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--hairline);
  text-align: center;
}
.pga-source a {
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--gold);
  text-decoration: none;
}
.pga-source a:hover { text-decoration: underline; }

/* ---- Focus ---- */
*:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ---- Responsive ---- */
@media (max-width: 640px) {
  .hero { padding: 36px 16px 28px; }
  .hero-title { font-size: 28px; white-space: normal; }
  .hero-subtitle { font-size: 10px; letter-spacing: 0.2em; }
  .hero-info { font-size: 12px; }

  .tabs { gap: 0; overflow-x: auto; justify-content: flex-start; padding: 0 8px; }
  .tab { font-size: 13px; padding: 14px 14px; flex-shrink: 0; }

  .panel { padding: 20px 10px 60px; }
  .card { padding: 24px 16px; }
  .rules-card { padding: 24px 16px; }
  .rules-body { columns: 1; }
  .rules-title { font-size: 28px; }

  .section-head-label { font-size: 22px; }

  .auth-prompt { padding: 40px 10px; }
  .prompt-title { font-size: 24px; }
  .prompt-text { font-size: 14px; }

  .pick-team-name { font-size: 24px; }
  .tier-label { font-size: 18px; }

  .hero-auth { margin-bottom: 8px; }

  .pick-and-tiebreaker { flex-direction: column; }
  .tiebreaker-section {
    width: 100%;
    position: static;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    flex-wrap: wrap;
  }
  .tiebreaker-label { margin-bottom: 0; }
  .tiebreaker-display { font-size: 28px; margin-bottom: 0; }
  .tiebreaker-controls { margin-bottom: 0; }

  .pga-lb-row { grid-template-columns: 40px 1fr 55px 45px 45px; gap: 4px; font-size: 13px; }
  .pga-lb-header { font-size: 10px; }
}

@media (max-width: 390px) {
  .tab { font-size: 12px; padding: 12px 10px; }
  .hero-title { font-size: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  .hero { animation: none; }
  .tab::after { transition: none; }
}
