/* ============================================================
   Asta Fantacalcio — design tokens
   Identità: tabellone da stadio a notte fonda. Ogni ruolo ha un
   colore di squadra (blu = partecipante, oro = crediti/banditore,
   rosso = rilancio/urgenza). Cifre in tabular-nums come un
   segnapunti a led, badge tondi con l'iniziale come una distinta
   di formazione.
   ============================================================ */

:root {
  --bg: #0a0d1a;
  --surface: #151933;
  --surface-2: #1c2142;
  --surface-3: #262c54;
  --border: #2a2f57;
  --border-strong: #3c4380;

  --text: #f5f6fc;
  --text-dim: #9aa0c9;
  --text-faint: #6a6f96;

  --blue: #5b7dff;
  --blue-deep: #2f3f9c;
  --gold: #ffc94d;
  --gold-deep: #a9832f;
  --red: #ff5f5f;
  --red-deep: #a4272d;
  --green: #22c55e;
  --green-deep: #0e6b39;

  --radius-lg: 1.25rem;
  --radius-md: 0.9rem;
  --radius-sm: 0.55rem;
  --shadow-soft: 0 12px 28px rgba(0, 0, 0, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overscroll-behavior: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.hidden {
  display: none !important;
}

.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* --- banner / toast --- */

.banner {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: var(--red-deep);
  color: #fff;
  text-align: center;
  padding: 0.6rem;
  font-size: 0.85rem;
  font-weight: 700;
}

.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--surface-3);
  border: 1px solid var(--border-strong);
  color: #fff;
  padding: 0.8rem 1.3rem;
  border-radius: var(--radius-md);
  max-width: 90vw;
  text-align: center;
  box-shadow: var(--shadow-soft);
}

/* --- generic buttons --- */

.secondary-btn {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--blue);
  background: transparent;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.12s ease, background-color 0.12s ease, box-shadow 0.12s ease;
}

.secondary-btn:active {
  transform: translateY(2px);
  background: rgba(91, 125, 255, 0.16);
}

.bid-btn:disabled,
.secondary-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  transform: none;
}

.link-btn {
  background: none;
  border: none;
  color: var(--text-dim);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.link-btn:hover,
.link-btn:active {
  background: var(--surface-2);
  color: var(--text);
}

a.link-btn {
  display: inline-block;
}

.icon-btn {
  background: var(--surface-2);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.12s ease, background-color 0.12s ease;
}

.icon-btn:active {
  transform: scale(0.92);
  background: var(--surface-3);
}

/* --- avatar badge (firma visiva: distinta di formazione) --- */

.avatar-badge {
  flex: none;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1rem;
  background: var(--surface-3);
  color: var(--text);
  border: 2px solid var(--blue-deep);
}

.avatar-badge-admin {
  border-color: var(--gold);
  color: var(--gold);
}

.avatar-badge.sm {
  width: 1.6rem;
  height: 1.6rem;
  font-size: 0.75rem;
}

.role-tag {
  font-size: 0.65rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: var(--bg);
  background: var(--gold);
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  white-space: nowrap;
}

.role-tag.danger {
  background: var(--red);
}

/* --- home screen --- */

.home-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  padding: 2rem 1.5rem 3rem;
  max-width: 30rem;
  width: 100%;
  margin: 0 auto;
  background:
    linear-gradient(180deg, rgba(10, 13, 26, 0.55) 0%, rgba(10, 13, 26, 0.88) 65%, var(--bg) 100%),
    url("/assets/stadium-bg.jpg");
  background-size: cover;
  background-position: center;
}

.home-hero {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--gold);
}

.home-banner {
  width: 100%;
  max-width: 26rem;
  height: auto;
}

.home-title {
  margin: 0;
  font-size: clamp(2.4rem, 11vw, 3.4rem);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: -0.01em;
  text-transform: uppercase;
}

.home-sub {
  margin: 0;
  color: var(--text-dim);
  font-size: 1rem;
  max-width: 22rem;
}

.role-tiles {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  width: 100%;
}

.role-tile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1.1rem 1.15rem;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 4px solid var(--blue);
  text-decoration: none;
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform 0.12s ease, border-color 0.12s ease, background-color 0.12s ease;
}

.role-tile:active {
  transform: translateY(2px) scale(0.99);
  background: var(--surface-2);
}

.role-tile-gold {
  border-left-color: var(--gold);
}

.role-tile-badge {
  flex: none;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 900;
  font-size: 1.15rem;
  background: var(--surface-2);
  border: 2px solid var(--blue);
  color: var(--blue);
}

.role-tile-gold .role-tile-badge {
  border-color: var(--gold);
  color: var(--gold);
}

.role-tile-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.role-tile-title {
  font-weight: 800;
  font-size: 1.08rem;
  letter-spacing: 0.01em;
}

.role-tile-desc {
  font-size: 0.82rem;
  color: var(--text-dim);
  line-height: 1.3;
}

.role-tile-arrow {
  flex: none;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-faint);
}

/* --- selection / denied screens --- */

.screen {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  text-align: center;
}

.screen h1 {
  font-size: 1.6rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  margin: 0 0 0.35rem;
}

.screen-nav {
  align-self: stretch;
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  padding: 0.5rem 0;
  margin-bottom: 1rem;
}

.participant-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  width: 100%;
  max-width: 24rem;
  margin-top: 1.5rem;
}

.participant-btn {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-size: 1.05rem;
  font-weight: 700;
  padding: 0.85rem 1rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  text-align: left;
  transition: transform 0.12s ease, background-color 0.12s ease, border-color 0.12s ease;
}

.participant-btn:active {
  transform: translateY(2px);
  background: var(--surface-2);
  border-color: var(--border-strong);
}

.participant-btn-name {
  flex: 1;
  min-width: 0;
}

.participant-btn::after {
  content: "\203A";
  color: var(--text-faint);
  font-size: 1.4rem;
  font-weight: 700;
}

.denied-card {
  max-width: 22rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 4px solid var(--red);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.denied-actions {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  margin-top: 0.5rem;
}

/* --- app screen (partecipante) --- */

#app-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: rgba(21, 25, 51, 0.7);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 40;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.header-right .link-btn {
  padding: 0.35rem 0.6rem;
  font-size: 0.78rem;
  border: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 999px;
}

.header-right .link-btn:hover,
.header-right .link-btn:active {
  background: var(--surface-3);
  border-color: var(--border-strong);
}

.you-block {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.3;
  white-space: nowrap;
}

@media (max-width: 420px) {
  .app-header {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }
  .you-block {
    align-items: center;
    width: 100%;
  }
  .header-right {
    width: 100%;
    justify-content: center;
  }
}

#you-label {
  font-weight: 700;
  color: var(--text);
}

.you-budget {
  font-size: 0.85rem;
  color: var(--gold);
  font-weight: 800;
}

.screen-section {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 1rem 1.5rem;
  text-align: center;
  overflow-y: auto;
}

.hint {
  color: var(--text-dim);
}

.status-line {
  position: relative;
  padding-left: 0;
  transition: padding-left 0.12s ease;
}

.status-line.is-live {
  padding-left: 1.1rem;
  color: var(--text);
  font-weight: 700;
}

.status-line.is-live::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 rgba(255, 95, 95, 0.5);
  animation: live-pulse 1.6s ease-in-out infinite;
}

@keyframes live-pulse {
  0% { box-shadow: 0 0 0 0 rgba(255, 95, 95, 0.55); }
  70% { box-shadow: 0 0 0 0.5rem rgba(255, 95, 95, 0); }
  100% { box-shadow: 0 0 0 0 rgba(255, 95, 95, 0); }
}

.player-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.player-name {
  font-size: 1.5rem;
  font-weight: 800;
}

.player-meta {
  font-size: 0.92rem;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.value-display {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--gold);
}

.timer {
  font-size: 18vw;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--blue), #b06dff);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.last-bidder {
  font-size: 1.15rem;
  color: var(--text-dim);
  font-weight: 600;
}

.bid-btn {
  width: 65vw;
  max-width: 18rem;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  border: none;
  background: radial-gradient(circle at 35% 30%, var(--red), var(--red-deep));
  color: #fff;
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: 0.05em;
  box-shadow: 0 0 40px rgba(255, 90, 90, 0.45), inset 0 -6px 0 rgba(0, 0, 0, 0.25);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
}

.bid-btn:active {
  transform: scale(0.96);
  box-shadow: 0 0 20px rgba(255, 90, 90, 0.4), inset 0 -2px 0 rgba(0, 0, 0, 0.25);
}

.bid-next-value {
  font-size: 1rem;
  font-weight: 700;
  opacity: 0.9;
}

.punctual-bid-box {
  display: flex;
  gap: 0.5rem;
  width: 100%;
  max-width: 22rem;
}

.punctual-bid-box input {
  flex: 1;
  font-size: 1.1rem;
  padding: 0.75rem;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-strong);
  background: var(--surface-2);
  color: #fff;
  min-width: 0;
}

.punctual-bid-box input:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.punctual-bid-box input:focus,
.field-label input:focus,
.participant-name-input:focus,
#total-budget-input:focus {
  outline: none;
  border-color: var(--blue);
}

.bid-controls {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 0 1.5rem 1.5rem;
  text-align: center;
}

/* --- winner overlay --- */

.overlay {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2rem;
  padding: 1.5rem;
  text-align: center;
  overflow-y: auto;
}

.winner-text {
  font-size: 12vw;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.winner-value {
  font-size: 6vw;
  font-weight: 800;
  opacity: 0.9;
}

.overlay.win {
  background: radial-gradient(circle at 50% 30%, var(--green), var(--green-deep));
  animation: pulse-win 1s ease-in-out infinite;
}

.overlay.win .winner-text {
  color: #eaffef;
  text-shadow: 0 0 30px rgba(255, 255, 255, 0.6);
}

.overlay.lose {
  background: var(--surface-2);
}

.overlay.lose .winner-text {
  color: var(--text-dim);
}

@keyframes pulse-win {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.25); }
}

@media (min-width: 700px) {
  .timer {
    font-size: 9rem;
  }
  .winner-text {
    font-size: 5rem;
  }
  .winner-value {
    font-size: 2.2rem;
  }
}

/* --- modale rose --- */

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 110;
  background: rgba(0, 0, 0, 0.6);
}

.modal {
  position: fixed;
  z-index: 120;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(92vw, 52rem);
  max-height: 85vh;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
  flex: none;
}

.modal-header h2 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.modal-chips {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem;
  overflow-x: auto;
  border-bottom: 1px solid var(--border);
  flex: none;
}

.squad-chip {
  flex: none;
  border: none;
  background: none;
  padding: 0;
  cursor: pointer;
}

.modal-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1rem 1.25rem 1.5rem;
  overflow-y: auto;
}

.drawer-empty {
  color: var(--text-dim);
}

.squad-list {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  overflow-x: auto;
  text-align: left;
  padding-bottom: 0.25rem;
}

.squad-card {
  flex: 0 0 15rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (min-width: 1024px) {
  .modal {
    width: min(96vw, 110rem);
  }

  .squad-card {
    flex-basis: 10rem;
  }
}

.squad-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.5rem;
}

.squad-who {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 0;
}

.squad-name {
  font-weight: 800;
}

.squad-budget {
  font-size: 0.82rem;
  color: var(--gold);
  font-weight: 700;
  white-space: nowrap;
}

.squad-role-block {
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.squad-role-label {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.4rem;
  color: var(--bg);
}

.squad-role-label-neutral {
  color: var(--text-dim);
  background: var(--surface-3);
}

.squad-role-rows {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.squad-slot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  padding: 0.3rem 0.45rem;
  border-left: 3px solid;
  background: var(--surface);
  color: var(--text-dim);
}

.squad-slot-empty {
  color: var(--text-faint);
  font-style: italic;
  border-left-style: dashed;
  background: transparent;
}

.role-P .squad-role-label { background: var(--gold); }
.role-P .squad-slot { border-left-color: var(--gold); }
.role-D .squad-role-label { background: var(--green); }
.role-D .squad-slot { border-left-color: var(--green); }
.role-C .squad-role-label { background: var(--blue); }
.role-C .squad-slot { border-left-color: var(--blue); }
.role-A .squad-role-label { background: var(--red); }
.role-A .squad-slot { border-left-color: var(--red); }

.squad-item-value {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.remove-entry-btn {
  width: 1.6rem;
  height: 1.6rem;
  font-size: 1rem;
  padding: 0;
}

.player-suggestions {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 14rem;
  overflow-y: auto;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.3rem;
}

.player-suggestion-item {
  text-align: left;
  background: none;
  border: none;
  color: var(--text);
  padding: 0.4rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  cursor: pointer;
}

.player-suggestion-item:hover,
.player-suggestion-item:active {
  background: var(--surface-3);
}

.player-suggestion-overflow {
  padding: 0.35rem 0.5rem;
  font-size: 0.78rem;
  color: var(--text-faint);
}

.player-suggestion-empty {
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  color: var(--text-dim);
}

.player-suggestion-selected {
  padding: 0.4rem 0.5rem;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--green);
}

/* --- admin page --- */

.admin-screen {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.admin-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding: 1rem 1.25rem 2rem;
  max-width: 40rem;
  width: 100%;
  margin: 0 auto;
}

.admin-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  text-align: left;
}

.admin-card h2 {
  margin: 0;
  font-size: 0.8rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding-left: 0.65rem;
  border-left: 3px solid var(--blue);
}

.admin-card select,
.admin-card input[type="file"],
.admin-card input[type="text"] {
  font-size: 1rem;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-strong);
  background: var(--surface-2);
  color: #fff;
  font-family: inherit;
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.checkbox-row.small {
  font-size: 0.85rem;
  color: var(--text-dim);
  white-space: nowrap;
}

.mode-toggle-row {
  display: flex;
  gap: 0.5rem;
}

.mode-toggle-btn {
  flex: 1;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 0.6rem 0.4rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-strong);
  background: var(--surface-2);
  color: var(--text-dim);
  cursor: pointer;
  transition: background-color 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.mode-toggle-btn:active {
  transform: translateY(1px);
}

.mode-toggle-btn.is-active {
  border-color: var(--blue);
  background: rgba(91, 125, 255, 0.16);
  color: var(--text);
}

.admin-start-btn {
  width: 100%;
  font-weight: 900;
  letter-spacing: 0.05em;
  border: none;
  background: linear-gradient(135deg, var(--gold), #d99a2b);
  color: #1a1200;
  box-shadow: 0 8px 20px rgba(255, 201, 77, 0.25);
}

.admin-start-btn:active {
  background: linear-gradient(135deg, #d99a2b, var(--gold));
}

.list-mode-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.6rem 0.75rem;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.list-current-player {
  font-weight: 700;
  color: var(--text);
}

.field-label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--text-dim);
}

.field-label input {
  font-size: 1.1rem;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-strong);
  background: var(--surface-2);
  color: #fff;
}

.role-limits-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem;
}

.quota-block {
  color: var(--red);
  font-weight: 700;
}

.participants-editor {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.participant-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.participant-row .participant-name-input {
  flex: 1;
  font-size: 1rem;
  padding: 0.55rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-strong);
  background: var(--surface-2);
  color: #fff;
  min-width: 0;
}

.admin-timer {
  font-size: 3.5rem;
}

.admin-bid-btn {
  width: 40vw;
  max-width: 10rem;
  font-size: 1.2rem;
  margin: 0 auto;
}

.arena-card {
  gap: 0.9rem;
}

.arena-setup {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding-bottom: 0.9rem;
  border-bottom: 1px solid var(--border);
}

.complete-entry-box {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  width: 100%;
  max-width: 22rem;
  margin-top: 0.5rem;
}

.complete-entry-box input,
.complete-entry-box select {
  font-size: 1.05rem;
  padding: 0.65rem;
  border-radius: var(--radius-sm);
  border: 2px solid var(--border-strong);
  background: var(--surface-2);
  color: #fff;
  font-family: inherit;
}

#pending-completion-banner {
  align-self: center;
  width: calc(100% - 2.5rem);
  margin: 0.75rem 1.25rem 0;
}
