body {
  font-family: Arial, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.35), transparent 30%),
    radial-gradient(circle at top right, rgba(22,163,74,.25), transparent 25%),
    #0b1020;
  color: white;
  margin: 0;
  padding: 20px;
}
.container { max-width: 1180px; margin: auto; }
h1 { font-size: 38px; margin: 10px 0 20px; }
.card {
  background: rgba(31, 41, 55, .94);
  padding: 20px;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 12px 30px rgba(0,0,0,0.35);
  border: 1px solid rgba(255,255,255,0.06);
}
.hero { max-width: 760px; margin: 0 auto 20px; }
input, select, button {
  padding: 12px;
  margin: 6px 0;
  border-radius: 10px;
  border: none;
  font-size: 15px;
}
input, select {
  width: 100%;
  box-sizing: border-box;
  background: #f9fafb;
  color: #111827;
}
button {
  cursor: pointer;
  font-weight: 800;
  background: #2563eb;
  color: white;
}
button:hover { filter: brightness(1.08); }
.success { background: #16a34a; }
.danger { background: #dc2626; }
.small { padding: 9px 13px; width: auto; }
.hidden { display: none; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row button { flex: 1; }
.checkbox-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 12px;
  color: #e5e7eb;
}
.checkbox-line input { width: auto; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(3, 7, 18, .92);
  padding: 16px;
  border-radius: 16px;
  margin-bottom: 18px;
  border: 1px solid rgba(255,255,255,0.08);
}
.panel-section {
  background: rgba(17,24,39,.75);
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 14px;
}
.direct-add { border: 1px solid rgba(22,163,74,.45); }
.live {
  text-align: center;
  background:
    linear-gradient(135deg, rgba(37,99,235,.35), rgba(22,163,74,.18)),
    rgba(31,41,55,.95);
}
.timer-status {
  display: inline-block;
  background: #16a34a;
  padding: 5px 12px;
  border-radius: 999px;
  font-weight: 900;
  margin-bottom: 8px;
}
.timer-status.paused { background: #f59e0b; color: #111827; }
.timer {
  font-size: 76px;
  color: #facc15;
  font-weight: 900;
  line-height: 1;
}
.player {
  font-size: 44px;
  font-weight: 900;
  margin: 12px 0;
}
.auction-line { font-size: 18px; }
.bid-buttons {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 18px 0;
}
.bid-buttons button {
  font-size: 30px;
  padding: 24px 8px;
  border-radius: 18px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
}
.custom-bid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.custom-bid button { background: #7c3aed; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid2 { display: grid; grid-template-columns: 3fr 1fr; gap: 10px; }
.list-controls {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 10px;
}
.list-controls select:last-child {
  grid-column: span 2;
}
table { width: 100%; border-collapse: collapse; }
th, td { border-bottom: 1px solid #374151; padding: 9px; text-align: left; vertical-align: top; }
th { color: #dbeafe; }
.hint { color: #d1d5db; font-size: 14px; }
.role-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}
.role-card {
  border-radius: 16px;
  padding: 14px;
  background: #111827;
  border: 1px solid rgba(255,255,255,0.08);
}
.role-card .role-title { font-size: 24px; font-weight: 900; }
.role-card .role-sub { color: #cbd5e1; font-size: 13px; }
.role-P { border-left: 6px solid #38bdf8; }
.role-D { border-left: 6px solid #22c55e; }
.role-C { border-left: 6px solid #facc15; }
.role-A { border-left: 6px solid #f97316; }
.badge {
  display: inline-block;
  padding: 5px 9px;
  background: #374151;
  border-radius: 999px;
  margin: 3px;
  font-size: 13px;
}
.turn-active {
  color: #facc15;
  font-weight: 900;
}
.roster-card {
  background: #111827;
  padding: 14px;
  border-radius: 14px;
  margin-bottom: 12px;
  border: 1px solid rgba(255,255,255,0.06);
}
.roster-section { margin-top: 9px; }
.remove-btn {
  background: #dc2626;
  padding: 6px 9px;
  font-size: 12px;
  border-radius: 8px;
}
.team-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  background: rgba(255,255,255,.04);
  border-radius: 10px;
  margin: 6px 0;
}
.list-preview {
  max-height: 360px;
  overflow: auto;
  background: rgba(17,24,39,.7);
  border-radius: 14px;
  padding: 10px;
}
.player-row {
  display: grid;
  grid-template-columns: 60px 1fr 110px 80px;
  gap: 8px;
  padding: 9px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.player-row:hover { background: rgba(255,255,255,.04); }
.disabled-btn {
  opacity: .45;
  cursor: not-allowed;
}
@media (max-width: 850px) {
  .grid, .grid2, .custom-bid, .list-controls { grid-template-columns: 1fr; }
  .list-controls select:last-child { grid-column: auto; }
  .role-cards { grid-template-columns: 1fr 1fr; }
  .player { font-size: 31px; }
  .timer { font-size: 58px; }
  .bid-buttons { grid-template-columns: 1fr; }
  .bid-buttons button { font-size: 28px; padding: 20px; }
  .topbar { align-items: flex-start; gap: 10px; }
  table { font-size: 13px; }
  .player-row { grid-template-columns: 42px 1fr; }
}

.caller-banner {
  display: inline-block;
  margin: 6px 0 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(250, 204, 21, .16);
  border: 1px solid rgba(250, 204, 21, .45);
  color: #fde68a;
  font-weight: 800;
}

.ended-box {
  margin: 14px auto;
  padding: 14px;
  border-radius: 14px;
  background: rgba(250, 204, 21, .14);
  border: 1px solid rgba(250, 204, 21, .5);
  color: #fde68a;
  max-width: 520px;
  font-weight: 800;
}
.ended-box button {
  margin-top: 10px;
}

.roster-section.role-P { background: rgba(250, 204, 21, .14); border-left: 5px solid #facc15; padding: 8px; border-radius: 10px; }
.roster-section.role-D { background: rgba(34, 197, 94, .14); border-left: 5px solid #22c55e; padding: 8px; border-radius: 10px; }
.roster-section.role-C { background: rgba(59, 130, 246, .14); border-left: 5px solid #3b82f6; padding: 8px; border-radius: 10px; }
.roster-section.role-A { background: rgba(239, 68, 68, .14); border-left: 5px solid #ef4444; padding: 8px; border-radius: 10px; }
.max-bid-box {
  margin-top: 10px;
  padding: 10px;
  border-radius: 12px;
  background: rgba(59,130,246,.14);
  color: #dbeafe;
  font-weight: 800;
}


/* ===== V8 Football Theme ===== */

:root {
  --grass-dark: #052e16;
  --grass: #0f7a34;
  --grass-light: #16a34a;
  --line: rgba(255,255,255,.18);
  --gold: #facc15;
  --blue: #2563eb;
  --red: #dc2626;
  --panel: rgba(10, 18, 28, .88);
}

body {
  position: relative;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(255,255,255,.28), transparent 12%),
    radial-gradient(circle at 85% 0%, rgba(255,255,255,.20), transparent 13%),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255,255,255,.035) 1px, transparent 1px),
    repeating-linear-gradient(
      90deg,
      #075e2b 0px,
      #075e2b 90px,
      #086b31 90px,
      #086b31 180px
    );
  background-size: auto, auto, 46px 46px, 46px 46px, auto;
  color: #f8fafc;
}

.stadium-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -3;
  background:
    radial-gradient(ellipse at top, rgba(255,255,255,.22), transparent 22%),
    radial-gradient(ellipse at 50% 120%, rgba(0,0,0,.45), transparent 55%),
    linear-gradient(180deg, rgba(2,6,23,.40), rgba(2,6,23,.72));
}

.pitch-lines {
  position: fixed;
  inset: 90px 28px 28px;
  pointer-events: none;
  z-index: -2;
  border: 3px solid var(--line);
  border-radius: 18px;
  opacity: .85;
}

.pitch-lines::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 3px solid var(--line);
}

.pitch-lines::after {
  content: "";
  position: absolute;
  width: 140px;
  height: 140px;
  border: 3px solid var(--line);
  border-radius: 50%;
  left: calc(50% - 70px);
  top: calc(50% - 70px);
}

.container {
  position: relative;
  z-index: 1;
}

h1 {
  text-align: center;
  font-size: clamp(36px, 5vw, 62px);
  letter-spacing: -1.5px;
  font-weight: 1000;
  text-shadow: 0 6px 22px rgba(0,0,0,.45);
  margin-top: 18px;
}

.ball {
  display: inline-block;
  filter: drop-shadow(0 6px 10px rgba(0,0,0,.35));
}

h2 {
  letter-spacing: -.3px;
}

.card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    var(--panel);
  border: 1px solid rgba(255,255,255,.13);
  backdrop-filter: blur(12px);
  box-shadow:
    0 18px 50px rgba(0,0,0,.34),
    inset 0 1px 0 rgba(255,255,255,.08);
}

.hero {
  border: 1px solid rgba(250,204,21,.35);
  box-shadow:
    0 22px 60px rgba(0,0,0,.38),
    0 0 0 1px rgba(250,204,21,.08) inset;
}

.panel-section {
  background:
    linear-gradient(180deg, rgba(15,23,42,.72), rgba(15,23,42,.52));
  border: 1px solid rgba(255,255,255,.08);
}

.topbar {
  background:
    linear-gradient(135deg, rgba(2,6,23,.94), rgba(15,23,42,.88));
  border: 1px solid rgba(250,204,21,.18);
}

input, select {
  background: rgba(248,250,252,.96);
  border: 2px solid transparent;
  transition: border .15s ease, box-shadow .15s ease, transform .08s ease;
}

input:focus, select:focus {
  outline: none;
  border-color: rgba(250,204,21,.82);
  box-shadow: 0 0 0 4px rgba(250,204,21,.18);
}

button {
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 18px rgba(0,0,0,.22);
  transition: transform .08s ease, filter .15s ease, box-shadow .15s ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(0,0,0,.26);
}

button:active {
  transform: translateY(1px);
}

.success {
  background: linear-gradient(135deg, #16a34a, #15803d);
}

.danger {
  background: linear-gradient(135deg, #ef4444, #b91c1c);
}

.live {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 0%, rgba(250,204,21,.20), transparent 25%),
    linear-gradient(135deg, rgba(8,107,49,.82), rgba(2,44,34,.88)),
    var(--panel);
  border: 1px solid rgba(250,204,21,.28);
}

.live::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 2px solid rgba(255,255,255,.13);
  border-radius: 16px;
  pointer-events: none;
}

.live > * {
  position: relative;
  z-index: 1;
}

.timer {
  font-size: clamp(58px, 9vw, 104px);
  color: var(--gold);
  text-shadow:
    0 0 24px rgba(250,204,21,.38),
    0 8px 22px rgba(0,0,0,.50);
}

.player {
  text-transform: uppercase;
  letter-spacing: -1px;
  color: #ffffff;
  text-shadow: 0 8px 26px rgba(0,0,0,.46);
}

.caller-banner {
  background: rgba(250, 204, 21, .22);
  border: 1px solid rgba(250, 204, 21, .65);
  box-shadow: 0 8px 22px rgba(0,0,0,.25);
}

.timer-status {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: #052e16;
}

.timer-status.paused {
  background: linear-gradient(135deg, #facc15, #f59e0b);
}

.bid-buttons button {
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), transparent),
    linear-gradient(135deg, #2563eb, #1e40af);
  border: 1px solid rgba(255,255,255,.22);
  text-shadow: 0 2px 8px rgba(0,0,0,.35);
}

.bid-buttons button:nth-child(2) {
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), transparent),
    linear-gradient(135deg, #16a34a, #166534);
}

.bid-buttons button:nth-child(3) {
  background:
    linear-gradient(180deg, rgba(255,255,255,.16), transparent),
    linear-gradient(135deg, #f97316, #c2410c);
}

.custom-bid button {
  background: linear-gradient(135deg, #7c3aed, #5b21b6);
}

.role-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)),
    rgba(2,6,23,.66);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.role-card .role-title {
  font-size: 30px;
}

.role-P { border-left: 7px solid #facc15; }
.role-D { border-left: 7px solid #22c55e; }
.role-C { border-left: 7px solid #3b82f6; }
.role-A { border-left: 7px solid #ef4444; }

table {
  background: rgba(2,6,23,.22);
  border-radius: 14px;
  overflow: hidden;
}

th {
  background: rgba(15,23,42,.72);
  color: #fef3c7;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

tr:hover td {
  background: rgba(255,255,255,.035);
}

.badge {
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.10);
}

.roster-card {
  background:
    linear-gradient(180deg, rgba(255,255,255,.055), rgba(255,255,255,.025)),
    rgba(2,6,23,.70);
}

.roster-card h3 {
  margin-top: 0;
  color: #fef3c7;
}

.list-preview {
  background: rgba(2,6,23,.50);
  border: 1px solid rgba(255,255,255,.08);
}

.player-row {
  border-bottom: 1px solid rgba(255,255,255,.075);
}

.player-row:hover {
  background: rgba(250,204,21,.08);
}

.max-bid-box {
  border: 1px solid rgba(147,197,253,.35);
}

.ended-box {
  background: rgba(250, 204, 21, .18);
  border: 1px solid rgba(250, 204, 21, .65);
}

.disabled-btn {
  filter: grayscale(.7);
  opacity: .45;
}

@media (max-width: 850px) {
  body {
    padding: 12px;
  }

  .pitch-lines {
    inset: 75px 10px 10px;
    opacity: .45;
  }

  h1 {
    margin-top: 8px;
  }

  .card {
    border-radius: 16px;
    padding: 16px;
  }
}

/* ===== V10 Login Flow ===== */
#createRoomPanel, #joinRoomPanel {
  margin-top: 16px;
}

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

#loginChoice .row button {
  font-size: 18px;
  padding: 18px;
}

#joinRolePanel {
  margin-top: 14px;
}


/* V23 UI refinements */
.settings-line {
  display: grid;
  grid-template-columns: 180px 1fr 220px;
  gap: 10px;
  align-items: center;
}
.settings-line label {
  font-weight: 900;
  color: #e5e7eb;
}
.direct-inline {
  display: grid;
  grid-template-columns: 1.15fr 1fr 120px 190px;
  gap: 10px;
  align-items: center;
  margin: 12px 0 14px;
  padding: 14px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(34,197,94,.24), rgba(37,99,235,.16)),
    rgba(8,47,73,.72);
  border: 1px solid rgba(34,197,94,.42);
  box-shadow: 0 12px 26px rgba(0,0,0,.22);
}
.direct-inline div {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.direct-inline b {
  font-size: 17px;
  color: #ffffff;
}
.direct-inline span {
  font-size: 12px;
  color: #cbd5e1;
}
.direct-inline select,
.direct-inline input {
  margin: 0;
  background: rgba(15,23,42,.95);
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,.14);
}
.direct-btn {
  margin: 0;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  box-shadow: 0 12px 24px rgba(22,163,74,.22);
  text-transform: uppercase;
  letter-spacing: .03em;
}
.auction-line {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin: 10px 0 18px;
}
.auction-meta {
  font-size: 18px;
  color: #e5e7eb;
}
.current-offer {
  min-width: 230px;
  padding: 16px 24px;
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(250,204,21,.24), rgba(245,158,11,.16)),
    rgba(15,23,42,.86);
  border: 1px solid rgba(250,204,21,.38);
  box-shadow: 0 18px 45px rgba(250,204,21,.13);
}
.current-offer span,
.current-offer small {
  display: block;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 12px;
  color: #fde68a;
  font-weight: 900;
}
.current-offer b {
  display: block;
  font-size: clamp(58px, 9vw, 104px);
  line-height: .95;
  color: #facc15;
  text-shadow: 0 5px 22px rgba(250,204,21,.35);
}
.manual-player-row {
  margin-top: 10px;
}
#joinSelectedAsHostBtn.hidden {
  display: none;
}
button.disabled-btn {
  opacity: .45;
  cursor: not-allowed;
}

@media (max-width: 760px) {
  .settings-line,
  .direct-inline {
    grid-template-columns: 1fr;
  }
  .current-offer {
    width: 100%;
    box-sizing: border-box;
  }
}


/* === V24: pulsanti premium, sezioni colorate e visibilità corretta host/utente === */
.hidden,
.host-only-control.hidden,
#hostAuctionSettings.hidden,
#directAddPanel.hidden,
#assignWinnerBtn.hidden,
#pauseBtn.hidden,
#cancelAuctionBtn.hidden,
#saveTimerBtn.hidden,
#endedAssignBtn.hidden {
  display: none !important;
}

button {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.16) !important;
  border-radius: 16px !important;
  padding: 14px 18px !important;
  min-height: 48px;
  font-size: 15px !important;
  font-weight: 900 !important;
  letter-spacing: .01em;
  box-shadow: 0 14px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.18);
  transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
  background: linear-gradient(135deg, #2563eb, #1d4ed8 55%, #1e40af) !important;
}

button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,.18), transparent);
  transform: translateX(-120%);
  transition: transform .42s ease;
}

button:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
  box-shadow: 0 18px 38px rgba(0,0,0,.34), inset 0 1px 0 rgba(255,255,255,.22);
}

button:hover::after {
  transform: translateX(120%);
}

button:active {
  transform: translateY(1px) scale(.99);
}

button.disabled-btn,
button:disabled {
  opacity: .45;
  cursor: not-allowed;
  transform: none !important;
  filter: grayscale(.35);
}

.btn-primary { background: linear-gradient(135deg, #2563eb, #3b82f6 48%, #1d4ed8) !important; }
.btn-success, .success { background: linear-gradient(135deg, #15803d, #22c55e 48%, #16a34a) !important; }
.btn-danger, .danger { background: linear-gradient(135deg, #991b1b, #ef4444 48%, #dc2626) !important; }
.btn-warning { background: linear-gradient(135deg, #b45309, #f59e0b 48%, #d97706) !important; color: #111827 !important; }
.btn-info { background: linear-gradient(135deg, #0369a1, #06b6d4 48%, #0284c7) !important; }
.btn-purple { background: linear-gradient(135deg, #6d28d9, #8b5cf6 48%, #7c3aed) !important; }
.btn-call { background: linear-gradient(135deg, #1d4ed8, #2563eb 38%, #16a34a) !important; }
.btn-upload { margin-right: 10px; }
.btn-export { margin-left: 0; }

.panel-section {
  position: relative;
  padding: 18px !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 16px 35px rgba(0,0,0,.22);
}

.panel-section h3 {
  margin-top: 0;
  margin-bottom: 14px;
  font-size: 18px;
}

.section-listone {
  background:
    linear-gradient(135deg, rgba(37,99,235,.24), rgba(14,165,233,.13)),
    rgba(15,23,42,.92) !important;
  border-color: rgba(59,130,246,.34) !important;
}

.section-settings {
  background:
    linear-gradient(135deg, rgba(245,158,11,.22), rgba(250,204,21,.10)),
    rgba(15,23,42,.92) !important;
  border-color: rgba(245,158,11,.32) !important;
}

.section-teams {
  background:
    linear-gradient(135deg, rgba(124,58,237,.24), rgba(37,99,235,.10)),
    rgba(15,23,42,.92) !important;
  border-color: rgba(139,92,246,.32) !important;
}

.section-auction {
  background:
    linear-gradient(135deg, rgba(22,163,74,.22), rgba(37,99,235,.12)),
    rgba(15,23,42,.92) !important;
  border-color: rgba(34,197,94,.32) !important;
}

.direct-inline {
  grid-template-columns: 1.15fr 1fr 120px 190px;
  background:
    linear-gradient(135deg, rgba(22,163,74,.30), rgba(6,182,212,.14)),
    rgba(6,78,59,.75) !important;
  border: 1px solid rgba(34,197,94,.50) !important;
}

.direct-btn {
  background: linear-gradient(135deg, #16a34a, #22c55e 50%, #15803d) !important;
}

.settings-line {
  gap: 12px;
}

#hostPanel .section-listone button {
  display: inline-flex;
  width: auto;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
}

.bid-buttons button {
  border-radius: 24px !important;
  min-height: 84px;
  font-size: 34px !important;
}

.bid-plus-one { background: linear-gradient(135deg, #1d4ed8, #3b82f6) !important; }
.bid-plus-five { background: linear-gradient(135deg, #15803d, #22c55e) !important; }
.bid-plus-ten { background: linear-gradient(135deg, #c2410c, #f97316) !important; }

.current-offer {
  min-width: min(92vw, 340px);
  padding: 20px 32px !important;
  border-radius: 28px !important;
}

.current-offer b {
  font-size: clamp(76px, 14vw, 132px) !important;
}

@media (max-width: 760px) {
  #hostPanel .section-listone button {
    display: flex;
    width: 100%;
    margin-right: 0;
  }

  .direct-inline {
    grid-template-columns: 1fr !important;
  }

  .row button {
    flex: 1 1 100%;
  }
}


/* === V25: palette coerente a 4 colori per pubblicazione ===
   Colori consentiti: blu, verde, arancio, rosso.
   Le vecchie varianti viola/giallo/ciano vengono rimappate qui. */
:root {
  --v25-blue: #2563eb;
  --v25-blue-dark: #1e40af;
  --v25-green: #16a34a;
  --v25-green-dark: #166534;
  --v25-orange: #ea580c;
  --v25-orange-dark: #9a3412;
  --v25-red: #dc2626;
  --v25-red-dark: #991b1b;
  --v25-panel: rgba(12, 22, 34, .92);
  --gold: var(--v25-orange);
  --blue: var(--v25-blue);
  --red: var(--v25-red);
}

input:focus,
select:focus {
  border-color: rgba(234,88,12,.78) !important;
  box-shadow: 0 0 0 4px rgba(234,88,12,.16) !important;
}

button,
.btn-primary,
.btn-info,
.btn-purple {
  background:
    linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0)),
    linear-gradient(135deg, var(--v25-blue), var(--v25-blue-dark)) !important;
}

.btn-success,
.success,
.direct-btn {
  background:
    linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0)),
    linear-gradient(135deg, var(--v25-green), var(--v25-green-dark)) !important;
}

.btn-warning,
.timer-status.paused {
  color: #fff !important;
  background:
    linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0)),
    linear-gradient(135deg, var(--v25-orange), var(--v25-orange-dark)) !important;
}

.btn-danger,
.danger,
.remove-btn {
  background:
    linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0)),
    linear-gradient(135deg, var(--v25-red), var(--v25-red-dark)) !important;
}

.btn-call {
  background:
    linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0)),
    linear-gradient(135deg, var(--v25-blue), var(--v25-green)) !important;
}

.custom-bid button {
  background:
    linear-gradient(180deg, rgba(255,255,255,.13), rgba(255,255,255,0)),
    linear-gradient(135deg, var(--v25-blue), var(--v25-blue-dark)) !important;
}

.bid-plus-one {
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)),
    linear-gradient(135deg, var(--v25-blue), var(--v25-blue-dark)) !important;
}
.bid-plus-five {
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)),
    linear-gradient(135deg, var(--v25-green), var(--v25-green-dark)) !important;
}
.bid-plus-ten {
  background:
    linear-gradient(180deg, rgba(255,255,255,.14), rgba(255,255,255,0)),
    linear-gradient(135deg, var(--v25-orange), var(--v25-orange-dark)) !important;
}

/* Sezioni: una funzione = un colore coerente */
.section-listone {
  background:
    linear-gradient(135deg, rgba(37,99,235,.28), rgba(30,64,175,.10)),
    var(--v25-panel) !important;
  border-color: rgba(37,99,235,.42) !important;
}
.section-listone h3 { color: #dbeafe; }

.section-settings {
  background:
    linear-gradient(135deg, rgba(234,88,12,.24), rgba(154,52,18,.10)),
    var(--v25-panel) !important;
  border-color: rgba(234,88,12,.38) !important;
}
.section-settings h3 { color: #fed7aa; }

.section-teams {
  background:
    linear-gradient(135deg, rgba(22,163,74,.24), rgba(22,101,52,.10)),
    var(--v25-panel) !important;
  border-color: rgba(22,163,74,.38) !important;
}
.section-teams h3 { color: #bbf7d0; }

.section-auction {
  background:
    linear-gradient(135deg, rgba(220,38,38,.20), rgba(153,27,27,.08)),
    var(--v25-panel) !important;
  border-color: rgba(220,38,38,.34) !important;
}
.section-auction h3 { color: #fecaca; }

.direct-inline {
  background:
    linear-gradient(135deg, rgba(22,163,74,.26), rgba(22,101,52,.11)),
    rgba(10, 30, 22, .86) !important;
  border-color: rgba(22,163,74,.42) !important;
}

.timer,
.current-offer b,
.turn-active {
  color: var(--v25-orange) !important;
}

.current-offer {
  background:
    linear-gradient(135deg, rgba(234,88,12,.22), rgba(154,52,18,.10)),
    rgba(15,23,42,.88) !important;
  border-color: rgba(234,88,12,.38) !important;
  box-shadow: 0 18px 45px rgba(234,88,12,.12) !important;
}
.current-offer span,
.current-offer small,
.caller-banner {
  color: #fed7aa !important;
}

.caller-banner,
.ended-box {
  background: rgba(234,88,12,.16) !important;
  border-color: rgba(234,88,12,.42) !important;
}

.timer-status {
  background:
    linear-gradient(135deg, var(--v25-green), var(--v25-green-dark)) !important;
  color: #fff !important;
}

/* Colori ruoli definitivi:
   Portieri = arancio, Difensori = verde, Centrocampisti = blu, Attaccanti = rosso */
.role-P,
.roster-section.role-P { border-left-color: var(--v25-orange) !important; }
.role-D,
.roster-section.role-D { border-left-color: var(--v25-green) !important; }
.role-C,
.roster-section.role-C { border-left-color: var(--v25-blue) !important; }
.role-A,
.roster-section.role-A { border-left-color: var(--v25-red) !important; }

.role-card.role-P,
.roster-section.role-P { background: rgba(234,88,12,.14) !important; }
.role-card.role-D,
.roster-section.role-D { background: rgba(22,163,74,.14) !important; }
.role-card.role-C,
.roster-section.role-C { background: rgba(37,99,235,.14) !important; }
.role-card.role-A,
.roster-section.role-A { background: rgba(220,38,38,.14) !important; }

.role-card.role-P .role-title { color: #fed7aa !important; }
.role-card.role-D .role-title { color: #bbf7d0 !important; }
.role-card.role-C .role-title { color: #dbeafe !important; }
.role-card.role-A .role-title { color: #fecaca !important; }

th,
.roster-card h3 {
  color: #dbeafe !important;
}

.player-row:hover {
  background: rgba(37,99,235,.08) !important;
}

.hero {
  border-color: rgba(37,99,235,.34) !important;
  box-shadow:
    0 22px 60px rgba(0,0,0,.38),
    0 0 0 1px rgba(37,99,235,.10) inset !important;
}

.topbar {
  border-color: rgba(37,99,235,.26) !important;
}


/* SEO home intro */
.seo-home {
  margin: 12px 0 18px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(37,99,235,.20), rgba(22,163,74,.13)),
    rgba(15,23,42,.72);
  border: 1px solid rgba(255,255,255,.10);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.seo-home .eyebrow {
  margin: 0 0 8px;
  color: #93c5fd;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.seo-home h2 {
  margin: 0 0 10px;
  font-size: 28px;
  line-height: 1.12;
}
.seo-home p {
  margin: 0;
  color: #dbeafe;
  line-height: 1.55;
}
.seo-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}
.seo-features span {
  display: inline-flex;
  align-items: center;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.10);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
}
@media (max-width: 640px) {
  .seo-home {
    padding: 15px;
  }
  .seo-home h2 {
    font-size: 23px;
  }
  .seo-features span {
    font-size: 12px;
    padding: 7px 9px;
  }
}


/* ===== V30 Home pulita + brand FantAsta Online Italia ===== */
.site-header {
  max-width: 900px;
  margin: 8px auto 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(15,23,42,.88), rgba(15,23,42,.72)),
    radial-gradient(circle at 0% 0%, rgba(245,158,11,.32), transparent 32%),
    radial-gradient(circle at 100% 0%, rgba(37,99,235,.28), transparent 30%);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 20px 52px rgba(0,0,0,.32);
}

.brand-mark {
  width: 62px;
  height: 62px;
  display: grid;
  place-items: center;
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(245,158,11,.95), rgba(220,38,38,.88));
  box-shadow:
    0 18px 35px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.32);
  font-size: 32px;
}

.brand-kicker {
  margin: 0 0 4px;
  color: #bfdbfe;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.site-header h1 {
  margin: 0;
  font-size: clamp(30px, 6vw, 52px);
  line-height: 1;
  letter-spacing: -.04em;
}

.hero {
  max-width: 900px !important;
  padding: 0 !important;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(15,23,42,.96), rgba(15,23,42,.90)) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
}

.seo-home {
  position: relative;
  margin: 0 !important;
  padding: clamp(22px, 4vw, 34px) !important;
  border-radius: 0 !important;
  background:
    radial-gradient(circle at 18% 0%, rgba(245,158,11,.22), transparent 34%),
    radial-gradient(circle at 88% 5%, rgba(37,99,235,.22), transparent 30%),
    linear-gradient(135deg, rgba(15,23,42,.94), rgba(12,28,46,.88)) !important;
  border: 0 !important;
  box-shadow: none !important;
}

.seo-home::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.18), transparent);
}

.seo-home .eyebrow {
  color: #fbbf24 !important;
  font-size: 13px !important;
  letter-spacing: .1em !important;
}

.seo-home h2 {
  max-width: 780px;
  margin: 0 0 14px !important;
  font-size: clamp(28px, 5vw, 46px) !important;
  line-height: 1.05 !important;
  letter-spacing: -.04em;
}

.seo-home p {
  max-width: 780px;
  margin: 0 0 12px !important;
  color: #dbeafe !important;
  font-size: 16px;
  line-height: 1.68 !important;
}

.seo-features {
  display: none !important;
}

.home-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 20px 24px 10px;
  background: rgba(2,6,23,.26);
}

.home-actions button {
  min-height: 54px;
  font-size: 16px;
  border-radius: 16px;
}

.btn-blue {
  background:
    linear-gradient(135deg, #2563eb, #1d4ed8) !important;
  color: #fff !important;
  box-shadow: 0 16px 30px rgba(37,99,235,.24);
}

.home-hint {
  padding: 0 24px 24px;
  margin: 0 !important;
  color: #cbd5e1 !important;
}

@media (max-width: 640px) {
  .site-header {
    align-items: flex-start;
    padding: 15px;
    border-radius: 20px;
  }

  .brand-mark {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    font-size: 26px;
  }

  .home-actions {
    grid-template-columns: 1fr;
    padding: 16px 18px 8px;
  }

  .home-hint {
    padding: 0 18px 18px;
  }
}


/* ===== V31: home banner sotto CTA + logo vicino al titolo ===== */
.site-header {
  justify-content: center;
  text-align: left;
}

.brand-logo {
  width: 66px;
  height: 66px;
  object-fit: contain;
  border-radius: 20px;
  box-shadow:
    0 18px 35px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.28);
  background: rgba(15,23,42,.56);
  padding: 6px;
}

.site-header h1 {
  text-align: left;
}

.brand-kicker {
  display: none !important;
}

#loginChoice {
  display: flex;
  flex-direction: column;
}

.home-actions {
  order: 1;
  padding: 26px 26px 8px !important;
}

.home-hint {
  order: 2;
  padding: 0 26px 18px !important;
  font-size: 13px;
}

.seo-banner {
  order: 3;
  margin: 0 20px 22px !important;
  padding: clamp(20px, 4vw, 30px) !important;
  border-radius: 24px !important;
  background:
    radial-gradient(circle at 12% 0%, rgba(234,88,12,.18), transparent 32%),
    radial-gradient(circle at 92% 8%, rgba(37,99,235,.20), transparent 30%),
    linear-gradient(135deg, rgba(2,6,23,.66), rgba(15,23,42,.92)) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  box-shadow:
    0 18px 42px rgba(0,0,0,.24),
    inset 0 1px 0 rgba(255,255,255,.08) !important;
}

.seo-banner::after {
  display: none !important;
}

.seo-banner .eyebrow {
  color: #fed7aa !important;
  font-size: 12px !important;
  letter-spacing: .11em !important;
  text-transform: uppercase;
}

.seo-banner h2 {
  max-width: 820px;
  font-size: clamp(24px, 4.2vw, 38px) !important;
  line-height: 1.08 !important;
}

.seo-banner p {
  max-width: 850px;
  color: #e5efff !important;
  font-size: 15.5px;
}

.site-footer {
  max-width: 1180px;
  margin: 12px auto 28px;
  padding: 0 20px;
  text-align: center;
  color: rgba(226,232,240,.62);
  font-size: 11px;
  letter-spacing: .03em;
  text-transform: lowercase;
}

@media (max-width: 640px) {
  .site-header {
    justify-content: flex-start;
  }

  .brand-logo {
    width: 52px;
    height: 52px;
    border-radius: 16px;
    padding: 5px;
  }

  .site-header h1 {
    font-size: clamp(28px, 8vw, 38px);
  }

  .home-actions {
    padding: 18px 18px 8px !important;
  }

  .home-hint {
    padding: 0 18px 16px !important;
  }

  .seo-banner {
    margin: 0 14px 18px !important;
  }

  .seo-banner p {
    font-size: 14.5px;
    line-height: 1.62 !important;
  }
}


/* ===== V32: CTA in banner separato, logo allineato al titolo, footer claim rimosso ===== */
.site-header {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 16px !important;
}

.site-header > div {
  display: flex;
  align-items: center;
}

.site-header h1 {
  margin: 0 !important;
  line-height: 1 !important;
}

.brand-logo {
  flex: 0 0 auto;
  display: block;
  margin: 0 !important;
}

.home-cta-banner {
  order: 1;
  margin: 22px 20px 18px;
  padding: 24px;
  border-radius: 26px;
  background:
    radial-gradient(circle at 18% 0%, rgba(34,197,94,.18), transparent 34%),
    radial-gradient(circle at 82% 0%, rgba(37,99,235,.22), transparent 32%),
    linear-gradient(135deg, rgba(2,6,23,.76), rgba(15,23,42,.94));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 20px 48px rgba(0,0,0,.28),
    inset 0 1px 0 rgba(255,255,255,.09);
}

.home-cta-banner .home-actions {
  padding: 0 !important;
  margin: 0 auto;
  max-width: 660px;
  display: flex !important;
  justify-content: center;
  align-items: stretch;
  gap: 14px;
  background: transparent !important;
}

.home-cta-banner .home-actions button {
  flex: 1 1 260px;
  max-width: 310px;
  min-height: 58px;
  font-size: 16px !important;
}

.home-cta-banner .home-hint {
  padding: 12px 0 0 !important;
  margin: 0 auto !important;
  max-width: 680px;
  text-align: center;
  color: rgba(226,232,240,.82) !important;
}

.seo-banner {
  order: 2;
  margin-top: 0 !important;
}

.site-footer {
  display: none !important;
}

@media (max-width: 640px) {
  .site-header {
    justify-content: center !important;
    text-align: left;
    gap: 12px !important;
  }

  .site-header > div {
    min-width: 0;
  }

  .home-cta-banner {
    margin: 16px 14px 16px;
    padding: 18px;
    border-radius: 22px;
  }

  .home-cta-banner .home-actions {
    flex-direction: column;
    max-width: 100%;
  }

  .home-cta-banner .home-actions button {
    max-width: none;
    width: 100%;
    flex: 1 1 auto;
  }
}


/* ===== V33: pagine legali, tutorial e footer ===== */
.legal-footer {
  max-width: 1180px;
  margin: 18px auto 34px;
  padding: 0 20px;
}

.legal-footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 18px 20px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 0% 0%, rgba(37,99,235,.18), transparent 34%),
    linear-gradient(135deg, rgba(2,6,23,.72), rgba(15,23,42,.92));
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 42px rgba(0,0,0,.22);
}

.legal-footer nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.legal-footer a,
.legal-page a {
  color: #bfdbfe;
  text-decoration: none;
  font-weight: 800;
}

.legal-footer a {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.10);
}

.legal-footer a:hover,
.legal-page a:hover {
  color: #fff;
  background: rgba(37,99,235,.25);
}

.legal-page {
  max-width: 960px;
  margin: 0 auto;
}

.legal-hero {
  margin: 22px 0 18px;
  padding: clamp(22px, 4vw, 36px);
  border-radius: 28px;
  background:
    radial-gradient(circle at 10% 0%, rgba(234,88,12,.18), transparent 28%),
    radial-gradient(circle at 90% 0%, rgba(37,99,235,.24), transparent 30%),
    linear-gradient(135deg, rgba(2,6,23,.72), rgba(15,23,42,.96));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 24px 54px rgba(0,0,0,.28);
}

.legal-hero h1 {
  text-align: left;
  margin: 0 0 10px !important;
  line-height: 1.05 !important;
  font-size: clamp(32px, 5vw, 54px);
}

.legal-hero p {
  color: #dbeafe;
  max-width: 760px;
  line-height: 1.65;
}

.legal-card {
  margin-bottom: 18px;
  padding: clamp(18px, 3vw, 28px);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    rgba(10,18,28,.90);
  border: 1px solid rgba(255,255,255,.12);
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

.legal-card h2 {
  margin-top: 0;
  color: #ffffff;
}

.legal-card h3 {
  color: #bfdbfe;
  margin-bottom: 8px;
}

.legal-card p,
.legal-card li {
  color: #e5efff;
  line-height: 1.7;
}

.legal-note {
  border-left: 5px solid #f97316;
  background: rgba(249,115,22,.12);
  padding: 14px 16px;
  border-radius: 14px;
  color: #ffedd5 !important;
}

.tutorial-steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
}

.tutorial-step {
  position: relative;
  padding: 18px 18px 18px 68px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
}

.tutorial-step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 18px;
  top: 18px;
  width: 34px;
  height: 34px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-weight: 1000;
  color: #fff;
  background: linear-gradient(135deg, #2563eb, #16a34a);
}

.tutorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tutorial-box {
  padding: 16px;
  border-radius: 18px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.10);
}

.legal-back {
  display: inline-block;
  margin: 12px 0 24px;
  padding: 11px 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff !important;
  box-shadow: 0 12px 26px rgba(37,99,235,.24);
}

@media (max-width: 760px) {
  .legal-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .legal-footer nav {
    justify-content: flex-start;
  }

  .tutorial-grid {
    grid-template-columns: 1fr;
  }
}


.legal-updated {
  color: #d1d5db;
  font-size: 13px;
  margin: 14px 0 22px;
  opacity: .9;
}
.legal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 18px 0 30px;
}
.legal-link-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  text-decoration: none;
  font-weight: 900;
  border-radius: 14px;
  padding: 12px 16px;
  box-shadow: 0 12px 26px rgba(37,99,235,.25);
}
.legal-card a {
  color: #93c5fd;
  font-weight: 800;
}


/* ===== V35: footer copyright e backup stanza ===== */
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.footer-brand span {
  color: rgba(226,232,240,.68);
  font-size: 12px;
  font-weight: 600;
}

.btn-backup {
  margin-left: 10px;
}

@media (max-width: 760px) {
  .btn-backup,
  .btn-export,
  .btn-upload {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    margin-top: 8px;
  }
}


/* V36 - Asta a busta chiusa */
.sealed-bid-box {
  margin-top: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(59, 130, 246, .35);
  background:
    radial-gradient(circle at top left, rgba(59,130,246,.20), transparent 34%),
    linear-gradient(135deg, rgba(15,23,42,.96), rgba(30,41,59,.92));
  box-shadow: 0 18px 38px rgba(0,0,0,.22);
}

.sealed-bid-box h3 {
  margin: 0 0 8px;
  color: #dbeafe;
  letter-spacing: -.02em;
}

.sealed-bid-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.sealed-bid-row input {
  min-height: 48px;
  border-radius: 16px;
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
}

.sealed-bid-status {
  margin-top: 12px;
  font-weight: 900;
  color: #bbf7d0;
}

@media (max-width: 720px) {
  .sealed-bid-row {
    grid-template-columns: 1fr;
  }
}

.room-setup-section {
  border-color: rgba(37, 99, 235, .32);
  background: linear-gradient(135deg, rgba(37, 99, 235, .16), rgba(22, 163, 74, .08));
}

.sealed-bid-box {
  border: 1px solid rgba(249, 115, 22, .35);
  background: linear-gradient(135deg, rgba(249, 115, 22, .16), rgba(15, 23, 42, .76));
  border-radius: 18px;
  padding: 18px;
  margin-top: 16px;
}

.sealed-bid-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.sealed-bid-status {
  margin-top: 10px;
  font-weight: 800;
  color: #fed7aa;
}

@media (max-width: 720px) {
  .sealed-bid-row {
    grid-template-columns: 1fr;
  }
}


/* V38 - Busta chiusa estesa a tutti gli utenti */
.sealed-bid-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.sealed-offer-btn,
.sealed-remove-btn {
  min-height: 48px;
  border-radius: 16px;
  white-space: nowrap;
  padding-left: 18px;
  padding-right: 18px;
}

.sealed-remove-btn {
  box-shadow: 0 12px 24px rgba(220,38,38,.22);
}

@media (max-width: 820px) {
  .sealed-bid-row {
    grid-template-columns: 1fr;
  }

  .sealed-offer-btn,
  .sealed-remove-btn {
    width: 100%;
  }
}


/* === V40: numeri gialli e risultato pubblico busta chiusa === */
.timer,
.current-offer b,
#currentBid,
.sealed-result-bid b {
  color: #facc15 !important;
  text-shadow: 0 5px 24px rgba(250, 204, 21, .42) !important;
}

.current-offer {
  border-color: rgba(250, 204, 21, .48) !important;
  box-shadow: 0 18px 48px rgba(250, 204, 21, .16) !important;
}

.sealed-result-box {
  max-width: 720px;
  margin: 18px auto 22px;
  padding: 18px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, .18), rgba(22, 163, 74, .14)),
    rgba(15, 23, 42, .90);
  border: 1px solid rgba(250, 204, 21, .42);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .22);
  text-align: center;
}

.sealed-result-kicker {
  color: #fde68a;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 900;
  font-size: 12px;
  margin-bottom: 8px;
}

.sealed-result-main {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: baseline;
  justify-content: center;
  color: #f8fafc;
  font-size: clamp(18px, 3vw, 28px);
  font-weight: 800;
}

.sealed-result-main span {
  color: #cbd5e1;
  font-weight: 700;
}

.sealed-result-bid {
  margin: 14px auto 0;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(250, 204, 21, .12);
  border: 1px solid rgba(250, 204, 21, .32);
}

.sealed-result-bid span,
.sealed-result-bid small {
  color: #fde68a;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 900;
  font-size: 11px;
}

.sealed-result-bid b {
  font-size: clamp(30px, 6vw, 54px);
  line-height: 1;
}


/* V43 - HUD coerente host/utente + risultato asta più evidente */
#app.mode-team .topbar,
#app.mode-host .topbar {
  background:
    radial-gradient(circle at top left, rgba(37,99,235,.24), transparent 34%),
    linear-gradient(135deg, rgba(8,20,36,.96), rgba(10,31,24,.94));
  border: 1px solid rgba(59,130,246,.24);
}

#app.mode-team #callerPanel,
#app.mode-host #callerPanel,
#app.mode-team .live,
#app.mode-host .live {
  background:
    radial-gradient(circle at top left, rgba(22,163,74,.20), transparent 35%),
    radial-gradient(circle at bottom right, rgba(37,99,235,.18), transparent 34%),
    linear-gradient(135deg, rgba(6,44,26,.96), rgba(8,25,42,.94));
  border: 1px solid rgba(34,197,94,.22);
}

#app.mode-team .auction-controls,
#app.mode-host .auction-controls {
  background:
    linear-gradient(135deg, rgba(7,32,49,.92), rgba(7,49,31,.88));
  border: 1px solid rgba(59,130,246,.22);
}

.sealed-bid-row {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.sealed-remove-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
}

.sealed-result-box {
  max-width: 760px;
  margin: 18px auto;
  padding: 22px;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(circle at top, rgba(250,204,21,.22), transparent 40%),
    linear-gradient(135deg, rgba(15,23,42,.96), rgba(31,41,55,.94));
  border: 1px solid rgba(250,204,21,.45);
  box-shadow: 0 22px 60px rgba(250,204,21,.18), 0 18px 48px rgba(0,0,0,.35);
}

.sealed-result-kicker {
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #fde68a;
  font-weight: 950;
  font-size: 13px;
  margin-bottom: 10px;
}

.sealed-result-main {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: baseline;
  font-size: clamp(22px, 4vw, 38px);
  line-height: 1.1;
  color: #fff;
  font-weight: 900;
}

.sealed-result-main strong {
  color: #facc15;
  text-shadow: 0 8px 28px rgba(250,204,21,.24);
}

.sealed-result-main span {
  color: rgba(255,255,255,.82);
  font-size: .62em;
  text-transform: uppercase;
  letter-spacing: .06em;
}

.sealed-result-bid {
  margin: 16px auto 0;
  max-width: 340px;
  padding: 14px 18px;
  border-radius: 20px;
  background: rgba(250,204,21,.10);
  border: 1px solid rgba(250,204,21,.32);
}

.sealed-result-bid span,
.sealed-result-bid small {
  display: block;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #fde68a;
  font-weight: 900;
  font-size: 12px;
}

.sealed-result-bid b {
  display: block;
  color: #facc15;
  font-size: clamp(52px, 8vw, 88px);
  line-height: .95;
  text-shadow: 0 8px 30px rgba(250,204,21,.28);
}

@media (max-width: 760px) {
  .sealed-bid-row {
    grid-template-columns: 1fr;
  }
}


/* === V44: notifiche custom e schermata aggiudicazione centrale === */
.notice-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  width: min(420px, calc(100vw - 32px));
  z-index: 99999;
  display: grid;
  gap: 12px;
  pointer-events: none;
}

.fantasta-notice {
  pointer-events: auto;
  display: grid;
  grid-template-columns: 14px 1fr auto;
  align-items: start;
  gap: 12px;
  padding: 14px 14px;
  border-radius: 18px;
  background: rgba(15, 23, 42, .96);
  border: 1px solid rgba(250, 204, 21, .28);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .35);
  color: #f8fafc;
  font-weight: 800;
  animation: noticeIn .18s ease-out;
  backdrop-filter: blur(12px);
}

.notice-ball {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 4px;
  background: #facc15;
  box-shadow: 0 0 18px rgba(250, 204, 21, .75);
}

.notice-success .notice-ball { background: #22c55e; box-shadow: 0 0 18px rgba(34, 197, 94, .75); }
.notice-error .notice-ball { background: #ef4444; box-shadow: 0 0 18px rgba(239, 68, 68, .75); }
.notice-warn .notice-ball { background: #f97316; box-shadow: 0 0 18px rgba(249, 115, 22, .75); }

.notice-text {
  line-height: 1.35;
  font-size: 14px;
}

.notice-close {
  border: 0;
  background: rgba(255, 255, 255, .08);
  color: #f8fafc;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  padding: 0;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

.notice-hide {
  opacity: 0;
  transform: translateY(-6px) scale(.98);
  transition: all .18s ease;
}

@keyframes noticeIn {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card.live.result-active {
  min-height: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background:
    radial-gradient(circle at center, rgba(250, 204, 21, .20), transparent 48%),
    linear-gradient(135deg, rgba(37, 99, 235, .22), rgba(22, 163, 74, .12)),
    rgba(15, 23, 42, .96);
}

.card.live.result-active .timer-status,
.card.live.result-active .caller-banner,
.card.live.result-active .timer,
.card.live.result-active .player,
.card.live.result-active .auction-line,
.card.live.result-active #endedBox,
.card.live.result-active #bidPanel {
  display: none !important;
}

.card.live.result-active #sealedResultBox {
  display: block !important;
  max-width: 820px;
  width: min(100%, 820px);
  margin: 0 auto;
  padding: clamp(24px, 5vw, 46px);
  border-radius: 34px;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, .24), rgba(22, 163, 74, .14)),
    rgba(15, 23, 42, .95);
  border: 1px solid rgba(250, 204, 21, .52);
  box-shadow: 0 28px 80px rgba(0, 0, 0, .42), 0 0 55px rgba(250, 204, 21, .12);
}

.card.live.result-active .sealed-result-kicker {
  font-size: 13px;
  letter-spacing: .14em;
}

.card.live.result-active .sealed-result-main {
  display: grid;
  gap: 8px;
  font-size: clamp(26px, 5vw, 54px);
  line-height: 1.05;
}

.card.live.result-active .sealed-result-main span {
  font-size: clamp(15px, 2vw, 20px);
  text-transform: uppercase;
  letter-spacing: .08em;
}

.card.live.result-active .sealed-result-bid {
  margin-top: 24px;
  padding: 16px 26px;
}

.card.live.result-active .sealed-result-bid b {
  font-size: clamp(34px, 8vw, 76px);
}

.ended-box {
  max-width: 760px;
  padding: 22px;
  border-radius: 24px;
  background:
    linear-gradient(135deg, rgba(250, 204, 21, .18), rgba(249, 115, 22, .14)),
    rgba(15, 23, 42, .90);
  border: 1px solid rgba(250, 204, 21, .45);
  color: #fde68a;
  box-shadow: 0 20px 55px rgba(0,0,0,.24);
  font-size: clamp(18px, 3vw, 28px);
}

.ended-box button,
#assignWinnerBtn,
#endedAssignBtn {
  font-size: 16px;
  font-weight: 950;
}

@media (max-width: 640px) {
  .notice-stack {
    top: 10px;
    right: 10px;
    width: calc(100vw - 20px);
  }
}


/* V45 - polish user friendly, Mantra, export Leghe */
.topbar-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.create-step-banner {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0 18px;
}

.choice-card {
  text-align: left;
  min-height: 116px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255,255,255,.16);
  background:
    linear-gradient(135deg, rgba(37,99,235,.20), rgba(22,163,74,.10)),
    rgba(15,23,42,.88);
  box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

.choice-card strong {
  display: block;
  font-size: 22px;
  margin-bottom: 8px;
}

.choice-card span {
  display: block;
  color: #dbeafe;
  line-height: 1.35;
  font-weight: 600;
}

.choice-card.selected {
  outline: 3px solid #facc15;
  background:
    linear-gradient(135deg, rgba(250,204,21,.25), rgba(37,99,235,.18)),
    rgba(15,23,42,.95);
}

.choice-card.back-choice {
  background:
    linear-gradient(135deg, rgba(220,38,38,.24), rgba(31,41,55,.60)),
    rgba(15,23,42,.95);
}

.roster-setup-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 14px 0;
}

.roster-setup-grid.compact {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  align-items: end;
}

.roster-setup-grid label {
  color: #e5e7eb;
  font-weight: 900;
  font-size: 13px;
}

input, select {
  background:
    linear-gradient(135deg, rgba(255,255,255,.10), rgba(255,255,255,.055)),
    rgba(15,23,42,.94) !important;
  border: 1px solid rgba(255,255,255,.20) !important;
  color: #f8fafc !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 10px 24px rgba(0,0,0,.18);
}

input::placeholder {
  color: rgba(226,232,240,.64);
}

select option {
  color: #111827;
  background: #ffffff;
}

#rosters {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
}

.roster-vertical-card {
  display: grid;
  grid-template-columns: 210px repeat(4, 1fr);
  gap: 12px;
  align-items: start;
}

.roster-vertical-card h3 {
  margin: 0;
  color: #facc15;
}

.roster-player-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 2px;
}

.roster-player-list .badge {
  display: block;
  width: fit-content;
  max-width: 100%;
}

.roster-player-list small {
  color: #facc15;
  font-weight: 900;
  margin-left: 6px;
}

.role-X { border-left: 6px solid #94a3b8; }

@media (max-width: 900px) {
  .create-step-banner,
  .roster-setup-grid,
  .roster-setup-grid.compact {
    grid-template-columns: 1fr;
  }
  .roster-vertical-card {
    grid-template-columns: 1fr;
  }
}

/* V47 setup polish */
.create-mode-picker {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 12px;
  align-items: stretch;
}
.choice-card span { display: none !important; }
.compact-back {
  min-width: 110px;
  padding: 10px 14px !important;
  font-size: 14px !important;
  align-self: center;
}
.room-identity-section input {
  background: rgba(255,255,255,.10);
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
}
.room-identity-section input::placeholder { color: rgba(255,255,255,.58); }
.locked-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(245,158,11,.22), rgba(37,99,235,.18));
  border: 1px solid rgba(255,255,255,.18);
  color: #fff;
}
.role-edit-tool {
  display: grid;
  grid-template-columns: 2fr 1fr auto;
  gap: 10px;
  margin-top: 10px;
}
#rosters {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.roster-card {
  min-width: 260px;
  flex: 0 0 260px;
}
.bid-buttons button, #classicBidPanel .bid-btn {
  background: linear-gradient(135deg, #f59e0b, #facc15) !important;
  color: #111827 !important;
}
@media (max-width: 760px) {
  .create-mode-picker { grid-template-columns: 1fr 1fr; }
  .compact-back { grid-column: 1 / -1; justify-self: center; }
  .role-edit-tool { grid-template-columns: 1fr; }
}


/* V48 - rifiniture UX Mantra, chiamate, ruoli e rose */
#app:not(.hidden) ~ .legal-footer nav,
body:has(#app:not(.hidden)) .legal-footer nav {
  display: none !important;
}

.create-mode-picker .choice-card,
.choice-card {
  min-height: 74px !important;
  text-align: center !important;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    linear-gradient(135deg, rgba(15, 118, 110, .30), rgba(21, 128, 61, .18)),
    rgba(15,23,42,.92) !important;
  border-color: rgba(34,197,94,.26) !important;
}

.choice-card strong {
  margin: 0 !important;
  font-size: 20px !important;
}

.choice-card.selected {
  outline: none !important;
  border-color: rgba(250, 204, 21, .72) !important;
  background:
    linear-gradient(135deg, rgba(234,88,12,.36), rgba(21,128,61,.20)),
    rgba(15,23,42,.96) !important;
  box-shadow: 0 18px 46px rgba(234,88,12,.18), inset 0 1px 0 rgba(255,255,255,.12) !important;
}

.choice-card.back-choice {
  min-height: 46px !important;
  max-width: 140px;
  justify-self: center;
  background:
    linear-gradient(135deg, rgba(148,163,184,.22), rgba(15,23,42,.88)),
    rgba(15,23,42,.92) !important;
  border-color: rgba(148,163,184,.28) !important;
}

.btn-info,
.btn-call,
.bid-buttons button,
#classicBidPanel .bid-btn {
  background: linear-gradient(135deg, #0f766e, #16a34a 52%, #15803d) !important;
  color: #ffffff !important;
  text-shadow: 0 2px 10px rgba(0,0,0,.18) !important;
}

#currentBid.sealed-question {
  color: #f8fafc !important;
  text-shadow: 0 8px 30px rgba(255,255,255,.28) !important;
  font-size: clamp(78px, 14vw, 156px) !important;
  line-height: .9 !important;
}

.role-edit-tool {
  grid-template-columns: 2fr 1fr 1fr auto !important;
  align-items: start;
}

.role-edit-tool select[multiple] {
  min-height: 120px;
}

.role-edit-hint {
  grid-column: 1 / -1;
  margin: 0 !important;
}

.manual-player-settings {
  margin-top: 14px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(2,6,23,.25);
  border: 1px solid rgba(255,255,255,.10);
}

.manual-player-settings h4 {
  margin: 0 0 10px;
  color: #f8fafc;
}

.manual-player-settings-grid {
  display: grid;
  grid-template-columns: 1.4fr .7fr 1fr 1fr auto;
  gap: 10px;
  align-items: center;
}

#rosters {
  display: flex !important;
  gap: 16px !important;
  overflow-x: auto !important;
  padding: 6px 2px 14px !important;
  scroll-snap-type: x proximity;
}

.roster-team-card {
  min-width: 340px !important;
  flex: 0 0 340px !important;
  scroll-snap-align: start;
  border-radius: 22px;
  background:
    radial-gradient(circle at top left, rgba(34,197,94,.18), transparent 35%),
    linear-gradient(135deg, rgba(15,23,42,.96), rgba(6,78,59,.80)) !important;
  border: 1px solid rgba(34,197,94,.22) !important;
  box-shadow: 0 16px 38px rgba(0,0,0,.20);
}

.roster-team-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 12px;
}

.roster-team-head h3 {
  margin: 0 !important;
  color: #f8fafc !important;
  font-size: 20px;
}

.roster-team-head span {
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(250,204,21,.12);
  border: 1px solid rgba(250,204,21,.28);
  color: #fde68a;
  font-weight: 900;
  white-space: nowrap;
}

.roster-classic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(120px,1fr));
  gap: 10px;
}

.roster-role-column {
  min-height: 90px;
  padding: 10px;
  border-radius: 16px;
  background: rgba(2,6,23,.24);
  border: 1px solid rgba(255,255,255,.10);
}

.roster-role-column > b {
  display: block;
  margin-bottom: 8px;
  color: #f8fafc;
}

.roster-line {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 7px 8px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  margin-bottom: 6px;
  color: #f8fafc;
}

.roster-line b {
  color: #facc15;
}

.roster-line em {
  font-style: normal;
  color: #bbf7d0;
  font-weight: 900;
  white-space: nowrap;
}

.roster-mantra-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

@media (max-width: 900px) {
  .role-edit-tool,
  .manual-player-settings-grid {
    grid-template-columns: 1fr !important;
  }
  .roster-team-card {
    min-width: 86vw !important;
    flex-basis: 86vw !important;
  }
  .roster-classic-grid {
    grid-template-columns: 1fr 1fr;
  }
}


.footer-home-link {
  border: 1px solid rgba(255,255,255,.18);
  background: rgba(255,255,255,.07);
  border-radius: 999px;
  padding: 7px 12px;
  font-weight: 900;
}

.footer-home-link:hover {
  background: rgba(255,255,255,.14);
}

/* V53 - rose ordinate e assegnazione manuale senza sezione fissa */
#directAddPanel { display: none !important; }

#rosters {
  display: flex !important;
  gap: 16px !important;
  overflow-x: auto !important;
  align-items: flex-start !important;
  padding: 8px 4px 14px !important;
  scroll-snap-type: x proximity;
}

.roster-board-card {
  flex: 0 0 360px;
  min-width: 360px;
  scroll-snap-align: start;
  border-radius: 22px;
  padding: 14px;
  background:
    radial-gradient(circle at top left, rgba(34,197,94,.18), transparent 38%),
    linear-gradient(135deg, rgba(15,23,42,.96), rgba(6,78,59,.78));
  border: 1px solid rgba(34,197,94,.24);
  box-shadow: 0 18px 42px rgba(0,0,0,.24);
}

.roster-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.roster-board-head h3 {
  margin: 0;
  color: #f8fafc;
  font-size: 20px;
  line-height: 1.05;
}

.roster-board-head span,
.roster-total-line {
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(250,204,21,.12);
  border: 1px solid rgba(250,204,21,.30);
  color: #fde68a;
  font-weight: 900;
  white-space: nowrap;
}

.roster-board-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(72px, 1fr));
  gap: 8px;
}

.roster-role-lane {
  border-radius: 16px;
  padding: 8px;
  background: rgba(2,6,23,.25);
  border: 1px solid rgba(255,255,255,.10);
  min-height: 420px;
}

.roster-role-title {
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2px;
  font-weight: 950;
  color: #f8fafc;
  text-align: center;
  margin-bottom: 8px;
}

.roster-role-title small {
  color: rgba(226,232,240,.78);
  font-size: 11px;
}

.roster-slot {
  min-height: 34px;
  border-radius: 11px;
  margin-bottom: 6px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(255,255,255,.045);
  display: grid;
  align-items: center;
  padding: 6px 7px;
  color: #f8fafc;
}

.roster-slot.filled {
  background: rgba(255,255,255,.085);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
}

.roster-slot.blank {
  background: rgba(255,255,255,.025);
  border-style: dashed;
  opacity: .65;
}

.roster-slot span {
  font-size: 12px;
  font-weight: 800;
  line-height: 1.15;
  overflow: hidden;
  text-overflow: ellipsis;
}

.roster-slot em {
  font-style: normal;
  color: #bbf7d0;
  font-size: 11px;
  font-weight: 900;
  margin-top: 2px;
}

.roster-slot.role-P { border-left: 3px solid #f59e0b; }
.roster-slot.role-D { border-left: 3px solid #22c55e; }
.roster-slot.role-C { border-left: 3px solid #3b82f6; }
.roster-slot.role-A { border-left: 3px solid #ef4444; }

.roster-board-mantra {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.roster-board-mantra .roster-slot {
  grid-template-columns: auto 1fr auto;
  gap: 8px;
  min-height: 38px;
}

.roster-board-mantra .roster-slot b {
  color: #facc15;
}

.roster-total-line {
  display: inline-flex;
  margin-top: 12px;
  font-size: 12px;
}

.direct-assign-overlay {
  position: fixed;
  inset: 0;
  z-index: 9998;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2,6,23,.70);
  backdrop-filter: blur(10px);
}

.direct-assign-modal {
  width: min(440px, 96vw);
  border-radius: 24px;
  padding: 22px;
  position: relative;
  background:
    radial-gradient(circle at top left, rgba(250,204,21,.16), transparent 36%),
    linear-gradient(135deg, rgba(15,23,42,.98), rgba(20,83,45,.92));
  border: 1px solid rgba(250,204,21,.26);
  box-shadow: 0 28px 80px rgba(0,0,0,.42);
  color: #f8fafc;
}

.direct-assign-modal h3 {
  margin: 4px 0 4px;
  font-size: 26px;
  color: #f8fafc;
}

.direct-assign-modal p,
.direct-assign-modal label {
  color: rgba(226,232,240,.82);
  font-weight: 800;
}

.direct-assign-modal select,
.direct-assign-modal input {
  width: 100%;
  margin: 7px 0 13px;
}

.modal-eyebrow {
  color: #fde68a;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-weight: 950;
}

.modal-x {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  padding: 0;
  background: rgba(239,68,68,.18);
  border: 1px solid rgba(239,68,68,.30);
  color: #fecaca;
  font-size: 22px;
}

.direct-overlay-submit {
  width: 100%;
  margin-top: 4px;
}

@media (max-width: 760px) {
  .roster-board-card {
    flex-basis: 88vw;
    min-width: 88vw;
  }
  .roster-board-grid {
    grid-template-columns: repeat(2, minmax(120px, 1fr));
  }
  .roster-role-lane {
    min-height: 260px;
  }
}

/* V54 - Svincolati / non assegnati */
.free-agents-card {
  border-color: rgba(245, 158, 11, 0.35);
  background: linear-gradient(180deg, rgba(245, 158, 11, 0.10), rgba(15, 23, 42, 0.86));
}
.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.section-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 800;
  color: #fbbf24;
  border: 1px solid rgba(251, 191, 36, 0.35);
  background: rgba(251, 191, 36, 0.10);
  white-space: nowrap;
}
.free-agent-badge {
  display: inline-flex;
  padding: 6px 9px;
  border-radius: 999px;
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  font-weight: 900;
}
#freeAgentsTable td:first-child small {
  display: block;
  opacity: 0.68;
  margin-top: 3px;
}
