/* ============================================
   MINI DITKA STATUS PORTAL - STYLES
   ============================================ */

:root {
  --bears-navy: #0B162A;
  --bears-orange: #C83803;
  --bears-orange-light: #E8621A;
  --field-green: #2E7D32;
  --field-green-light: #388E3C;
  --field-green-dark: #1B5E20;
  --gold: #FFD700;
  --white: #FFFFFF;
  --gray-100: #F5F5F5;
  --gray-200: #EEEEEE;
  --gray-600: #757575;
  --gray-800: #424242;
}

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

body {
  font-family: 'Roboto', Arial, sans-serif;
  background: var(--bears-navy);
  color: var(--white);
  min-height: 100vh;
}

.hidden { display: none !important; }

/* ============================================
   PASSWORD GATE
   ============================================ */
.password-gate {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bears-navy) 0%, #1a2744 50%, var(--bears-navy) 100%);
}

.password-box {
  text-align: center;
  padding: 3rem;
  max-width: 420px;
  width: 90%;
}

.password-box h1 {
  font-family: 'Righteous', cursive;
  font-size: 2.5rem;
  color: var(--bears-orange);
  margin: 1.5rem 0 0.5rem;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.password-box .subtitle {
  color: var(--gray-600);
  margin-bottom: 2rem;
  font-size: 0.95rem;
}

#auth-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

#auth-form input {
  padding: 14px 20px;
  border: 2px solid var(--bears-orange);
  border-radius: 8px;
  background: rgba(255,255,255,0.05);
  color: var(--white);
  font-size: 1.1rem;
  text-align: center;
  letter-spacing: 4px;
  text-transform: uppercase;
  outline: none;
  transition: border-color 0.3s, box-shadow 0.3s;
}

#auth-form input:focus {
  border-color: var(--bears-orange-light);
  box-shadow: 0 0 20px rgba(200, 56, 3, 0.3);
}

#auth-form input::placeholder {
  color: var(--gray-600);
  letter-spacing: 2px;
  text-transform: none;
}

#auth-form button {
  padding: 14px;
  background: var(--bears-orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'Righteous', cursive;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
}

#auth-form button:hover { background: var(--bears-orange-light); }
#auth-form button:active { transform: scale(0.98); }

.error-msg {
  color: #FF6B6B;
  margin-top: 0.5rem;
  font-weight: 700;
  min-height: 1.5em;
}

/* ============================================
   DITKA BOBBLEHEAD - LARGE (Login Screen)
   ============================================ */
.ditka-large {
  display: flex;
  justify-content: center;
}

.ditka-body-lg {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ditka-head-lg {
  width: 70px;
  height: 70px;
  background: #FDBF60;
  border-radius: 50%;
  position: relative;
  animation: bobble 2.5s ease-in-out infinite;
  z-index: 2;
  border: 3px solid #E8A830;
}

.ditka-hair {
  position: absolute;
  top: -2px;
  left: 10px;
  right: 10px;
  height: 20px;
  background: #5C4033;
  border-radius: 50% 50% 0 0;
}

.ditka-sunglasses {
  position: absolute;
  top: 22px;
  left: 8px;
  right: 8px;
  height: 16px;
  background: #111;
  border-radius: 3px;
  border: 2px solid #333;
}

.ditka-sunglasses::before {
  content: '';
  position: absolute;
  top: 3px;
  left: 5px;
  width: 16px;
  height: 8px;
  background: #2a2a4a;
  border-radius: 2px;
}

.ditka-sunglasses::after {
  content: '';
  position: absolute;
  top: 3px;
  right: 5px;
  width: 16px;
  height: 8px;
  background: #2a2a4a;
  border-radius: 2px;
}

.ditka-mustache {
  position: absolute;
  bottom: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 35px;
  height: 10px;
  background: #5C4033;
  border-radius: 0 0 50% 50%;
  clip-path: polygon(0% 0%, 100% 0%, 95% 50%, 80% 100%, 50% 70%, 20% 100%, 5% 50%);
}

.ditka-sweater {
  width: 80px;
  height: 55px;
  background: var(--bears-navy);
  border: 3px solid var(--bears-orange);
  border-radius: 0 0 12px 12px;
  margin-top: -8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.sweater-c {
  font-family: 'Righteous', cursive;
  font-size: 2rem;
  color: var(--bears-orange);
  font-weight: 700;
}

.ditka-arms-up {
  font-size: 2rem;
  margin-top: -10px;
}

@keyframes bobble {
  0%, 100% { transform: rotate(-4deg) translateY(0); }
  25% { transform: rotate(2deg) translateY(-3px); }
  50% { transform: rotate(4deg) translateY(0); }
  75% { transform: rotate(-2deg) translateY(-3px); }
}

/* ============================================
   DITKA MINI (Header)
   ============================================ */
.ditka-mini {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-right: 12px;
}

.ditka-head-sm {
  width: 32px;
  height: 32px;
  background: #FDBF60;
  border-radius: 50%;
  position: relative;
  animation: bobble 2.5s ease-in-out infinite;
  border: 2px solid #E8A830;
}

.ditka-sunglasses-sm {
  position: absolute;
  top: 10px;
  left: 4px;
  right: 4px;
  height: 8px;
  background: #111;
  border-radius: 2px;
}

.ditka-mustache-sm {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 5px;
  background: #5C4033;
  border-radius: 0 0 40% 40%;
}

.ditka-sweater-sm {
  width: 36px;
  height: 22px;
  background: var(--bears-navy);
  border: 2px solid var(--bears-orange);
  border-radius: 0 0 6px 6px;
  margin-top: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Righteous', cursive;
  font-size: 0.7rem;
  color: var(--bears-orange);
}

/* ============================================
   HEADER
   ============================================ */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: linear-gradient(180deg, #0d1b30 0%, var(--bears-navy) 100%);
  border-bottom: 4px solid var(--bears-orange);
  flex-wrap: wrap;
  gap: 1rem;
}

.header-left {
  display: flex;
  align-items: center;
}

.header-left h1 {
  font-family: 'Righteous', cursive;
  font-size: 1.5rem;
  color: var(--bears-orange);
}

.tagline {
  color: var(--gray-600);
  font-size: 0.85rem;
  margin-top: 2px;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 1.5rem;
}

.scoreboard {
  display: flex;
  gap: 1.5rem;
  background: rgba(0,0,0,0.3);
  padding: 8px 20px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.1);
}

.score-item {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.score-label {
  font-size: 0.65rem;
  color: var(--gray-600);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.score-value {
  font-family: 'Righteous', cursive;
  font-size: 1.5rem;
  color: var(--gold);
}

.btn-logout {
  padding: 6px 16px;
  background: transparent;
  border: 1px solid var(--gray-600);
  color: var(--gray-600);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.3s;
}
.btn-logout:hover { border-color: var(--white); color: var(--white); }

/* ============================================
   FOOTBALL FIELD
   ============================================ */
.field-section {
  padding: 2rem;
  position: relative;
}

.field-container {
  max-width: 1200px;
  margin: 0 auto;
}

.field {
  position: relative;
  height: 200px;
  border-radius: 8px;
  overflow: hidden;
  border: 4px solid var(--white);
  background: repeating-linear-gradient(
    90deg,
    var(--field-green) 0px,
    var(--field-green) 46px,
    var(--field-green-light) 46px,
    var(--field-green-light) 92px
  );
  box-shadow: 0 8px 32px rgba(0,0,0,0.4), inset 0 0 60px rgba(0,0,0,0.1);
}

.end-zone {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 9.375%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Righteous', cursive;
  font-size: 0.8rem;
  letter-spacing: 2px;
  color: rgba(255,255,255,0.9);
  text-shadow: 1px 1px 2px rgba(0,0,0,0.5);
  z-index: 2;
  line-height: 1.1;
  text-align: center;
}

.left-end-zone {
  left: 0;
  background: var(--bears-orange);
  background: repeating-linear-gradient(
    45deg,
    var(--bears-orange),
    var(--bears-orange) 10px,
    var(--bears-orange-light) 10px,
    var(--bears-orange-light) 20px
  );
  border-right: 3px solid var(--white);
}

.right-end-zone {
  right: 0;
  background: var(--bears-navy);
  background: repeating-linear-gradient(
    -45deg,
    #162d50,
    #162d50 10px,
    #1a3460 10px,
    #1a3460 20px
  );
  border-left: 3px solid var(--white);
}

.yard-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: rgba(255,255,255,0.5);
  z-index: 1;
}

.yard-line::before,
.yard-line::after {
  content: '';
  position: absolute;
  left: -4px;
  width: 10px;
  height: 2px;
  background: rgba(255,255,255,0.4);
}
.yard-line::before { top: 30%; }
.yard-line::after { bottom: 30%; }

.yard-num {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-family: 'Righteous', cursive;
  font-size: 1.5rem;
  color: rgba(255,255,255,0.18);
  white-space: nowrap;
  pointer-events: none;
}

.hash-marks {
  position: absolute;
  top: 0;
  left: 9.375%;
  right: 9.375%;
  bottom: 0;
  background: repeating-linear-gradient(
    90deg,
    transparent 0px,
    transparent 44px,
    rgba(255,255,255,0.08) 44px,
    rgba(255,255,255,0.08) 46px
  );
}

/* Field Order Markers */
.field-marker {
  position: absolute;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  transition: left 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.marker-ball {
  font-size: 1.8rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
  animation: pulse-ball 2s ease-in-out infinite;
}

.marker-label {
  background: var(--bears-navy);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.6rem;
  font-weight: 700;
  margin-top: 2px;
  white-space: nowrap;
  border: 1px solid var(--bears-orange);
  max-width: 90px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.marker-player {
  font-size: 0.55rem;
  color: var(--bears-orange);
  font-weight: 700;
}

@keyframes pulse-ball {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Stagger overlapping markers vertically */
.field-marker.stagger-1 { top: 30%; }
.field-marker.stagger-2 { top: 70%; }
.field-marker.stagger-3 { top: 20%; }
.field-marker.stagger-4 { top: 80%; }

/* Milestone Labels below field */
.milestone-labels {
  display: flex;
  max-width: 1200px;
  margin: 8px auto 0;
  padding: 0 0;
}

.milestone-labels span {
  flex: 1;
  text-align: center;
  font-size: 0.6rem;
  color: var(--gray-600);
  line-height: 1.3;
  padding: 0 2px;
}

/* ============================================
   SIDELINE & COACH
   ============================================ */
.sideline {
  max-width: 1200px;
  margin: 1rem auto 0;
  display: flex;
  align-items: center;
  padding: 12px 20px;
  background: rgba(255,255,255,0.03);
  border-radius: 8px;
  border: 1px dashed rgba(255,255,255,0.1);
}

.coach {
  display: flex;
  align-items: center;
  gap: 12px;
}

.coach-figure {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}

.coach-head {
  width: 30px;
  height: 30px;
  background: #FDBF60;
  border-radius: 50%;
  position: relative;
  border: 2px solid #E8A830;
}

.coach-headset {
  position: absolute;
  top: 6px;
  left: -6px;
  width: 42px;
  height: 20px;
  border: 2px solid #555;
  border-bottom: none;
  border-radius: 50% 50% 0 0;
}

.coach-headset::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: -2px;
  width: 8px;
  height: 8px;
  background: #555;
  border-radius: 50%;
}

.coach-body {
  width: 34px;
  height: 30px;
  background: var(--gray-800);
  border-radius: 0 0 8px 8px;
  margin-top: -4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.55rem;
  font-weight: 700;
  color: var(--white);
  border: 1px solid var(--gray-600);
}

.coach-clipboard {
  position: absolute;
  right: -16px;
  bottom: 2px;
  font-size: 0.9rem;
}

.coach-name {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--gray-200);
}

/* ============================================
   ROSTER
   ============================================ */
.roster-section {
  padding: 0 2rem 2rem;
}

.roster-section h2 {
  font-family: 'Righteous', cursive;
  color: var(--bears-orange);
  margin-bottom: 1rem;
  font-size: 1.2rem;
  text-align: center;
}

.roster {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
}

.player-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 10px;
  padding: 16px 8px;
  text-align: center;
  transition: all 0.3s;
  cursor: default;
}

.player-card:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--bears-orange);
  transform: translateY(-2px);
}

.jersey {
  width: 50px;
  height: 45px;
  margin: 0 auto 8px;
  background: var(--bears-navy);
  border: 2px solid var(--bears-orange);
  border-radius: 0 0 8px 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.jersey::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 10px;
  background: var(--bears-navy);
  border: 2px solid var(--bears-orange);
  border-bottom: none;
  border-radius: 50% 50% 0 0;
}

.jersey::after {
  content: '';
  position: absolute;
  top: -2px;
  left: -10px;
  width: 12px;
  height: 20px;
  background: var(--bears-navy);
  border: 2px solid var(--bears-orange);
  border-radius: 4px;
  box-shadow: 48px 0 0 0 var(--bears-navy);
}

.jersey-num {
  font-family: 'Righteous', cursive;
  font-size: 1.1rem;
  color: var(--white);
  position: relative;
  z-index: 1;
}

.player-name {
  display: block;
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--white);
  margin-bottom: 4px;
}

.player-orders {
  font-size: 0.7rem;
  color: var(--bears-orange);
}

/* ============================================
   ORDERS SECTION
   ============================================ */
.orders-section {
  padding: 0 2rem 2rem;
  max-width: 1200px;
  margin: 0 auto;
}

.orders-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.orders-header h2 {
  font-family: 'Righteous', cursive;
  color: var(--bears-orange);
  font-size: 1.2rem;
}

.btn-add {
  padding: 8px 20px;
  background: var(--bears-orange);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: 'Righteous', cursive;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-add:hover { background: var(--bears-orange-light); }

/* Add Form */
.add-form {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 1.5rem;
  margin-bottom: 1.5rem;
}

.add-form h3 {
  font-family: 'Righteous', cursive;
  color: var(--bears-orange);
  margin-bottom: 1rem;
}

.form-row {
  display: flex;
  gap: 1rem;
  margin-bottom: 1rem;
}

.form-group {
  flex: 1;
  margin-bottom: 0.5rem;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  color: var(--gray-600);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.form-group input,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  color: var(--white);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}

.form-group input:focus,
.form-group select:focus {
  border-color: var(--bears-orange);
}

.form-group select option {
  background: var(--bears-navy);
  color: var(--white);
}

.form-actions {
  display: flex;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-primary {
  padding: 10px 30px;
  background: var(--bears-orange);
  color: var(--white);
  border: none;
  border-radius: 6px;
  font-family: 'Righteous', cursive;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.3s;
}
.btn-primary:hover { background: var(--bears-orange-light); }

.btn-cancel {
  padding: 10px 20px;
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-600);
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-cancel:hover { border-color: var(--white); color: var(--white); }

/* Orders Table */
.orders-table-wrap {
  overflow-x: auto;
}

.orders-table {
  width: 100%;
  border-collapse: collapse;
}

.orders-table th {
  text-align: left;
  padding: 10px 12px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-600);
  border-bottom: 2px solid rgba(255,255,255,0.1);
}

.orders-table td {
  padding: 12px;
  border-bottom: 1px solid rgba(255,255,255,0.05);
  font-size: 0.9rem;
  vertical-align: middle;
}

.orders-table tr:hover td {
  background: rgba(255,255,255,0.03);
}

.order-name {
  font-weight: 700;
}

.order-player-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(200, 56, 3, 0.15);
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 700;
}

.order-player-num {
  font-family: 'Righteous', cursive;
  font-size: 0.7rem;
  color: var(--bears-orange);
}

.order-status {
  font-weight: 700;
  font-size: 0.8rem;
}

.status-kickoff { color: #90CAF9; }
.status-progress { color: var(--gold); }
.status-touchdown { color: #66BB6A; }

.order-yard {
  font-family: 'Righteous', cursive;
  color: var(--white);
  font-size: 1rem;
}

/* Progress bar */
.progress-bar-wrap {
  width: 120px;
  height: 8px;
  background: rgba(255,255,255,0.1);
  border-radius: 4px;
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.5s ease;
}

.progress-0 { background: var(--gray-600); }
.progress-low { background: #F44336; }
.progress-mid { background: var(--gold); }
.progress-high { background: #66BB6A; }
.progress-td { background: var(--bears-orange); }

/* Action buttons */
.btn-advance {
  padding: 5px 12px;
  background: var(--field-green);
  color: var(--white);
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.3s;
  white-space: nowrap;
}
.btn-advance:hover { background: var(--field-green-light); }
.btn-advance:disabled {
  background: var(--gray-600);
  cursor: not-allowed;
  opacity: 0.5;
}

.btn-retreat {
  padding: 5px 8px;
  background: transparent;
  color: var(--gray-600);
  border: 1px solid var(--gray-600);
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.3s;
}
.btn-retreat:hover { border-color: var(--white); color: var(--white); }
.btn-retreat:disabled { opacity: 0.3; cursor: not-allowed; }

.btn-delete {
  padding: 5px 8px;
  background: transparent;
  color: #F44336;
  border: 1px solid #F44336;
  border-radius: 4px;
  cursor: pointer;
  font-size: 0.75rem;
  transition: all 0.3s;
}
.btn-delete:hover { background: #F44336; color: var(--white); }

.order-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.no-orders {
  text-align: center;
  padding: 3rem;
  color: var(--gray-600);
  font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  text-align: center;
  padding: 2rem;
  color: var(--gray-600);
  font-size: 0.75rem;
  border-top: 1px solid rgba(255,255,255,0.05);
}

/* ============================================
   CELEBRATION OVERLAY
   ============================================ */
.celebration {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: fadeIn 0.3s ease;
}

.celebration-content {
  text-align: center;
  z-index: 1001;
  position: relative;
}

.td-text {
  font-family: 'Righteous', cursive;
  font-size: 5rem;
  color: var(--bears-orange);
  text-shadow: 0 0 40px rgba(200, 56, 3, 0.6), 0 0 80px rgba(200, 56, 3, 0.3);
  animation: td-pulse 0.5s ease-in-out infinite alternate;
  margin-bottom: 0.5rem;
}

.td-sub {
  font-size: 1.5rem;
  color: var(--gold);
  margin-bottom: 2rem;
  font-weight: 700;
}

.td-ditka {
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
}

.celebrating {
  animation: celebrate-bounce 0.4s ease-in-out infinite alternate;
}

.yt-player-wrap {
  margin: 1.5rem auto;
  border-radius: 12px;
  overflow: hidden;
  display: inline-block;
  border: 3px solid var(--bears-orange);
  box-shadow: 0 0 30px rgba(200, 56, 3, 0.4);
}

.btn-dismiss {
  padding: 14px 40px;
  background: var(--bears-orange);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-family: 'Righteous', cursive;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.3s, transform 0.1s;
  margin-top: 1rem;
}
.btn-dismiss:hover { background: var(--bears-orange-light); }
.btn-dismiss:active { transform: scale(0.98); }

@keyframes td-pulse {
  from { transform: scale(1); }
  to { transform: scale(1.05); }
}

@keyframes celebrate-bounce {
  from { transform: translateY(0) rotate(-5deg); }
  to { transform: translateY(-20px) rotate(5deg); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Confetti */
.confetti-container {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  z-index: 1000;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  width: 10px;
  height: 10px;
  animation: confetti-fall linear forwards;
}

@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translateY(100vh) rotate(720deg);
    opacity: 0;
  }
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .roster {
    grid-template-columns: repeat(3, 1fr);
  }
  .form-row {
    flex-direction: column;
  }
  .header {
    padding: 1rem;
  }
  .header-left h1 {
    font-size: 1.1rem;
  }
  .field-section,
  .roster-section,
  .orders-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }
  .td-text {
    font-size: 3rem;
  }
}

@media (max-width: 600px) {
  .roster {
    grid-template-columns: repeat(2, 1fr);
  }
  .scoreboard {
    padding: 6px 12px;
    gap: 1rem;
  }
  .field {
    height: 160px;
  }
  .milestone-labels span {
    font-size: 0.5rem;
  }
  .orders-table {
    font-size: 0.8rem;
  }
  .orders-table th,
  .orders-table td {
    padding: 8px 6px;
  }
}
