/* ===== CRICTAKKAR, IPL AUCTION ("B1 · Auction Hall", Day 101) =====
   Wood-panelled auction hall: dark walnut room, gold lettering, a wood
   podium card for the player on the block, cream paper for squad lists.
   Only loaded by auction.html. */

.auc-body {
  --auc-bg-1: #3a2414;
  --auc-bg-2: #1a0f08;
  --auc-ink: #f6ead6;
  --auc-gold: #e7c27a;
  --auc-gold-soft: #f3d9a4;
  --auc-faint: #c9b38e;
  --auc-line: #6b4a26;
  --auc-panel: #2a1a0e;
  --auc-red: #c0392b;
  --auc-red-soft: #f2a093;
  --auc-paper: #f6ead6;
  --auc-paper-ink: #2a1a0e;
  background: radial-gradient(ellipse at 50% 0%, var(--auc-bg-1) 0%, var(--auc-bg-2) 60%) fixed;
  background-color: var(--auc-bg-2);
  color: var(--auc-ink);
  font-family: 'Nunito', sans-serif;
  min-height: 100vh;
}

.auc-screen { display: flex; justify-content: center; padding: 24px 16px 60px; }
.auc-panel {
  width: 100%; max-width: 560px; background: rgba(42, 26, 14, 0.85);
  border: 1px solid var(--auc-line); border-radius: 12px; padding: 24px 20px;
  display: flex; flex-direction: column; gap: 14px;
}
.auc-center { align-items: center; text-align: center; }
.auc-center-text { text-align: center; }
.auc-kicker { font-family: 'Oswald', sans-serif; letter-spacing: 2px; font-size: 0.8rem; color: var(--auc-gold); }
.auc-title { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 2.2rem; line-height: 1.1; margin: 0; color: var(--auc-ink); }
.auc-title-sm { font-size: 1.6rem; }
.auc-h2 { font-family: 'Playfair Display', serif; font-size: 1.3rem; margin: 6px 0 0; color: var(--auc-ink); }
.auc-muted { color: var(--auc-faint); margin: 0; line-height: 1.5; }
.auc-note { font-size: 0.85rem; color: var(--auc-gold-soft); margin: 0; }
.auc-small { font-size: 0.75rem; color: var(--auc-faint); }
.auc-small-cap { font-size: 0.72rem; font-weight: 800; letter-spacing: 1px; color: var(--auc-faint); }
.auc-error { color: var(--auc-red-soft); min-height: 1.2em; margin: 0; }

.auc-btn {
  display: inline-block; width: 100%; box-sizing: border-box; text-align: center; text-decoration: none;
  background: var(--auc-gold); color: var(--auc-bg-2); border: 0; border-radius: 8px;
  padding: 14px 18px; font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.05rem; cursor: pointer;
}
.auc-btn:disabled { opacity: 0.55; cursor: not-allowed; }
.auc-btn-ghost { background: transparent; color: var(--auc-ink); border: 1px solid var(--auc-line); font-family: 'Nunito', sans-serif; font-weight: 700; }
.auc-btn-sm { width: auto; padding: 10px 14px; font-size: 0.9rem; }
.auc-row-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }

.auc-code-input {
  width: 100%; box-sizing: border-box; text-align: center; text-transform: uppercase;
  font-family: 'Oswald', sans-serif; font-size: 1.8rem; letter-spacing: 6px;
  background: var(--auc-panel); color: var(--auc-ink); border: 1px solid var(--auc-line); border-radius: 8px; padding: 12px;
}
.auc-room-code {
  font-family: 'Oswald', sans-serif; font-size: 2.6rem; font-weight: 700; letter-spacing: 8px;
  color: var(--auc-gold); text-align: center;
}

/* Lobby: franchise placards */
.auc-pick-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.auc-pick {
  background: var(--auc-panel); border: 1px solid var(--auc-line); border-radius: 8px; padding: 10px;
  color: var(--auc-ink); text-align: left; cursor: pointer; font: inherit;
}
.auc-pick:disabled { cursor: default; opacity: 0.75; }
.auc-pick-code { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1.1rem; }
.auc-pick-name { font-size: 0.78rem; color: var(--auc-faint); }
.auc-pick-owner { font-size: 0.8rem; font-weight: 700; margin-top: 4px; color: var(--auc-gold-soft); }
.auc-pick.is-mine { border-color: var(--auc-gold); background: #4a3218; }

/* Hall layout */
.auc-hall { padding-top: 16px; }
.auc-hall-grid { width: 100%; max-width: 980px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
@media (min-width: 900px) { .auc-hall-grid { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.auc-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

.auc-setline { display: flex; justify-content: space-between; gap: 8px; font-family: 'Oswald', sans-serif; font-size: 0.8rem; letter-spacing: 2px; color: var(--auc-gold); text-transform: uppercase; }
.auc-next { font-size: 0.8rem; color: var(--auc-faint); }

.auc-podium {
  background: linear-gradient(180deg, #5a3a1e, #3b2412); border: 2px solid #b8893f; border-radius: 10px;
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
}
.auc-player-name { font-family: 'Playfair Display', serif; font-weight: 900; font-size: 2rem; line-height: 1.05; text-align: center; overflow-wrap: anywhere; }
.auc-pills { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; font-size: 0.78rem; font-weight: 700; }
.auc-pill { background: rgba(255, 255, 255, 0.1); border-radius: 99px; padding: 3px 10px; }
.auc-pill-role { background: var(--auc-gold); color: var(--auc-bg-2); }
.auc-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 12px; font-size: 0.85rem; border-top: 1px solid var(--auc-line); padding-top: 10px; }
.auc-facts span.k { color: var(--auc-faint); margin-right: 4px; }
.auc-fact-wide { grid-column: 1 / -1; }

.auc-auctioneer { text-align: center; font-family: 'Playfair Display', serif; font-style: italic; font-size: 1.2rem; color: var(--auc-gold-soft); min-height: 1.5em; }
.auc-auctioneer.is-sold { color: var(--auc-gold); font-style: normal; font-weight: 900; }

.auc-bidbox {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--auc-panel); border: 1px solid var(--auc-line); border-radius: 10px; padding: 12px 14px;
}
.auc-bid-left { display: flex; align-items: center; gap: 12px; min-width: 0; }
.auc-paddle {
  flex: 0 0 58px; width: 58px; height: 58px; border-radius: 50%; background: #4a3218; border: 3px solid var(--auc-ink);
  display: flex; align-items: center; justify-content: center; font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 1rem;
}
.auc-paddle.is-up { background: var(--auc-red); }
.auc-paddle.is-mine { background: #2f6b45; }
.auc-bid-amount { font-family: 'Oswald', sans-serif; font-size: 2.3rem; font-weight: 700; color: var(--auc-gold); line-height: 1; }
.auc-clock { text-align: center; }
.auc-clock-num { font-family: 'Oswald', sans-serif; font-size: 1.9rem; font-weight: 700; }
.auc-clock-num.is-low { color: var(--auc-red-soft); }
.auc-trail { font-size: 0.78rem; color: var(--auc-faint); min-height: 1.1em; }

.auc-actions { display: flex; gap: 10px; }
.auc-raise {
  flex: 2; background: var(--auc-gold); color: var(--auc-bg-2); border: 0; border-radius: 8px; padding: 16px 10px;
  font-family: 'Playfair Display', serif; font-weight: 900; font-size: 1.1rem; cursor: pointer;
}
.auc-pass {
  flex: 1; background: transparent; color: var(--auc-ink); border: 1px solid var(--auc-line); border-radius: 8px;
  padding: 12px 10px; font-weight: 700; font-size: 1rem; cursor: pointer; font-family: inherit;
}
.auc-raise:disabled, .auc-pass:disabled { opacity: 0.45; cursor: not-allowed; }
.auc-reason { text-align: center; font-size: 0.8rem; color: var(--auc-red-soft); min-height: 1em; }
.auc-chip {
  background: transparent; color: var(--auc-faint); border: 1px solid var(--auc-line); border-radius: 99px;
  padding: 7px 12px; font: inherit; font-size: 0.8rem; font-weight: 700; cursor: pointer;
}
.auc-chip[aria-pressed="true"] { background: #4a3218; color: var(--auc-gold); border-color: var(--auc-gold); }
.auc-chip:disabled { opacity: 0.5; cursor: not-allowed; }

.auc-section-head { font-family: 'Oswald', sans-serif; letter-spacing: 2px; font-size: 0.85rem; color: var(--auc-gold); border-top: 1px solid var(--auc-line); padding-top: 12px; }
.auc-stat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; text-align: center; }
.auc-stat { background: var(--auc-panel); border-radius: 8px; padding: 10px 4px; }
.auc-stat-num { font-family: 'Oswald', sans-serif; font-size: 1.35rem; font-weight: 700; }
.auc-role-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; text-align: center; font-size: 0.78rem; }
.auc-role { background: var(--auc-panel); border: 1px solid transparent; border-radius: 8px; padding: 8px 2px; }
.auc-role b { display: block; font-family: 'Oswald', sans-serif; font-size: 1.1rem; font-weight: 600; }
.auc-role.is-empty { background: #4a1c16; border-color: #e07a5f; }

.auc-paper { background: var(--auc-paper); color: var(--auc-paper-ink); border-radius: 8px; padding: 10px 12px; font-size: 0.86rem; display: flex; flex-direction: column; gap: 4px; }
.auc-paper-head { font-weight: 800; font-size: 0.75rem; letter-spacing: 1px; }
.auc-line { display: flex; justify-content: space-between; gap: 10px; }
.auc-line span:first-child { min-width: 0; overflow-wrap: anywhere; }
.auc-line span:last-child { font-family: 'Oswald', sans-serif; white-space: nowrap; }

.auc-room-table { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }
.auc-room-row { display: grid; grid-template-columns: 1.5fr 1fr 0.7fr 0.8fr; gap: 6px; padding: 5px 6px; border-radius: 6px; }
.auc-room-row.is-head { color: var(--auc-faint); font-weight: 700; font-size: 0.78rem; }
.auc-room-row.is-mine { color: var(--auc-gold); font-weight: 800; background: rgba(231, 194, 122, 0.08); }
.auc-room-row.is-leader { color: var(--auc-red-soft); font-weight: 800; }
.auc-room-row span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.auc-sold { display: flex; flex-direction: column; gap: 4px; font-size: 0.85rem; }

.auc-team-card { background: var(--auc-panel); border: 1px solid var(--auc-line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; }
.auc-team-card summary { cursor: pointer; font-weight: 800; }
.auc-team-card .auc-line { font-size: 0.82rem; padding: 2px 0; }

@media (max-width: 420px) {
  .auc-player-name { font-size: 1.7rem; }
  .auc-bid-amount { font-size: 2rem; }
}
.auc-room-row.is-viewed { outline: 1px solid var(--auc-gold); }
.auc-room-row:not(.is-head):hover { background: rgba(231, 194, 122, 0.12); }
