/* ==========================================================================
   WIZARD CARD GAME - STILI VANILLA CSS PREMIUM & RESPONSIVE
   ========================================================================== */

:root {
  --bg-main: #0f172a;
  --bg-card: rgba(30, 41, 59, 0.85);
  --felt-green: radial-gradient(circle at center, #1b4d3e 0%, #0d2820 100%);
  --accent-gold: #fbbf24;
  --accent-purple: #8b5cf6;
  --accent-blue: #38bdf8;
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --color-hearts: #ef4444;
  --color-diamonds: #f97316;
  --color-clubs: #0284c7;
  --color-spades: #475569;
  --color-wizard: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  --color-jester: linear-gradient(135deg, #06b6d4 0%, #0891b2 100%);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --shadow-glow: 0 0 20px rgba(251, 191, 36, 0.35);
  --shadow-card: 0 10px 25px -5px rgba(0, 0, 0, 0.5);
  --transition-fast: 0.2s ease;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  font-family: 'Outfit', sans-serif;
  user-select: none;
}

body {
  background: var(--bg-main);
  color: var(--text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  position: relative;
}

/* HEADER */
.app-header {
  height: 60px;
  background: rgba(15, 23, 42, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  transition: transform var(--transition-fast);
  white-space: nowrap;
}

.logo:hover {
  transform: scale(1.05);
}

.logo-icon { font-size: 26px; }

.logo-text {
  font-family: 'Cinzel', serif;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 2px;
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  white-space: nowrap;
}

.room-info {
  display: flex;
  align-items: center;
  gap: 12px;
  white-space: nowrap;
}

.room-badge {
  background: rgba(255, 255, 255, 0.08);
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 13px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  white-space: nowrap;
}

.room-badge strong {
  color: var(--accent-gold);
  letter-spacing: 1px;
}

/* GLASS PANEL & BASIC COMPONENTS */
.glass-panel {
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
}

.hidden { display: none !important; }

button {
  cursor: pointer;
  border: none;
  outline: none;
  font-weight: 700;
  transition: all var(--transition-fast);
  border-radius: var(--radius-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  box-shadow: 0 4px 15px rgba(245, 158, 11, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.45);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-main);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
}

.btn-sm { padding: 7px 14px; font-size: 13px; white-space: nowrap; }
.btn-lg { padding: 14px 28px; font-size: 16px; width: 100%; }
.btn-xl { padding: 18px 36px; font-size: 20px; width: 100%; }

/* VIEWS */
.view-screen {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}

/* LOBBY & WAITING ROOM */
.lobby-card, .waiting-card {
  width: 100%;
  max-width: 500px;
  padding: 36px 28px;
  text-align: center;
}

.title-main {
  font-family: 'Cinzel', serif;
  font-size: 32px;
  margin-bottom: 8px;
  color: var(--accent-gold);
}

.subtitle {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 24px;
}

.form-group {
  text-align: left;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

input[type="text"] {
  width: 100%;
  padding: 14px 18px;
  background: rgba(15, 23, 42, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 16px;
  outline: none;
}

.divider {
  display: flex;
  align-items: center;
  margin: 20px 0;
}

.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.15);
}

.divider span { padding: 0 12px; font-size: 12px; color: var(--text-muted); }
.join-box { display: flex; flex-direction: column; gap: 12px; }

.room-code-share {
  background: rgba(15, 23, 42, 0.6);
  border: 1px dashed var(--accent-gold);
  border-radius: var(--radius-md);
  padding: 16px;
  margin: 16px 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.code-highlight {
  font-family: 'Cinzel', serif;
  font-size: 36px;
  letter-spacing: 6px;
  color: var(--accent-gold);
}

.players-list-box { text-align: left; margin: 20px 0; }
.players-list-box h3 { font-size: 14px; color: var(--text-muted); margin-bottom: 10px; }
.players-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }

.players-list li {
  background: rgba(255, 255, 255, 0.06);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
}

.host-tag {
  background: var(--accent-gold);
  color: #0f172a;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  font-weight: 800;
}

/* --------------------------------------------------------------------------
   SCHERMATA 3: TAVOLO DI GIOCO & SIDEBAR PUNTEGGI
   -------------------------------------------------------------------------- */
#view-game-table {
  padding: 12px;
  background: var(--felt-green);
  position: relative;
}

.game-main-layout {
  display: flex;
  width: 100%;
  height: 100%;
  gap: 16px;
}

.table-column {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  position: relative;
}

/* BARRA SUPERIORE DEL TAVOLO */
.table-top-bar {
  width: 100%;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  z-index: 10;
}

.round-indicator span { font-size: 11px; color: var(--text-muted); text-transform: uppercase; }
.round-indicator strong { font-size: 18px; color: var(--accent-gold); }

.trump-card-container {
  display: flex;
  align-items: center;
  gap: 10px;
}

.trump-label {
  font-size: 12px;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.trump-card-slot {
  display: flex;
  align-items: center;
  justify-content: center;
}

/* CARTA BRISCOLA MINI - POSIZIONAMENTO ASSOLUTO PERFETTO SENZA TAGLI */
.trump-card-slot .card-item {
  width: 54px;
  height: 80px;
  border-radius: 8px;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.45);
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.trump-card-slot .card-top {
  position: absolute;
  top: 4px;
  left: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.trump-card-slot .card-bottom {
  position: absolute;
  bottom: 4px;
  right: 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(180deg);
  line-height: 1;
}

.trump-card-slot .card-rank { font-size: 12px; font-weight: 900; line-height: 1; margin: 0; }
.trump-card-slot .card-suit-icon { font-size: 10px; line-height: 1; margin: 0; }
.trump-card-slot .card-center { font-size: 20px; width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }

.status-banner {
  background: rgba(255, 255, 255, 0.1);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-gold);
  border: 1px solid rgba(251, 191, 36, 0.3);
  transition: all 0.3s ease;
}

/* AVVERSARI */
.opponents-container {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  flex-wrap: wrap;
}

.opponent-card {
  background: rgba(15, 23, 42, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-md);
  padding: 8px 14px;
  min-width: 120px;
  text-align: center;
  transition: transform var(--transition-fast);
}

.opponent-card.active-turn {
  border-color: var(--accent-gold);
  box-shadow: 0 0 15px rgba(251, 191, 36, 0.4);
  transform: scale(1.05);
}

.op-name { font-weight: 700; font-size: 13px; margin-bottom: 2px; }
.op-stats { font-size: 11px; color: var(--text-muted); }

/* AREA CENTRALE TAVOLO */
.center-table-area {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 220px;
  position: relative;
}

.felt-table {
  width: 100%;
  max-width: 680px;
  height: 100%;
  min-height: 220px;
  background: rgba(0, 0, 0, 0.25);
  border: 2px dashed rgba(255, 255, 255, 0.15);
  border-radius: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 16px;
}

/* PANNELLO SCOMMESSA & BRISCOLA PERFETTAMENTE CENTRATO SUL TAVOLO */
.floating-action-panel {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 150;
  width: 90%;
  max-width: 440px;
  padding: 22px 24px;
  text-align: center;
  border: 2px solid var(--accent-gold);
  background: rgba(15, 23, 42, 0.95);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
  border-radius: var(--radius-lg);
  animation: smoothPopIn 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.floating-action-panel h3 {
  font-size: 16px;
  color: var(--accent-gold);
  margin-bottom: 6px;
}

.floating-action-panel p {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

/* CARTE GIOCATE NELLA PRESA */
.trick-cards-area {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}

.played-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  position: relative;
  animation: smoothSlideIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  transition: all 0.3s ease;
}

.played-card-wrapper.winner-card-wrapper .card-item {
  border-color: var(--accent-gold);
  box-shadow: 0 0 25px rgba(251, 191, 36, 0.8);
  transform: scale(1.1);
}

.winner-badge-on-table {
  background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
  color: #0f172a;
  font-size: 10px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
  animation: smoothPopIn 0.3s ease;
}

.played-by-name {
  font-size: 11px;
  font-weight: 700;
  background: rgba(15, 23, 42, 0.85);
  padding: 2px 8px;
  border-radius: 10px;
  color: var(--text-muted);
}

/* AREA INFERIORE GIOCATORE */
.player-bottom-area {
  width: 100%;
  padding: 12px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.my-info-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 6px;
}

.my-name { font-size: 15px; font-weight: 700; }
.my-stats { display: flex; gap: 14px; font-size: 12px; color: var(--text-muted); }
.my-stats strong { color: var(--accent-gold); }

.my-hand-container {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 12px;
  min-height: 130px;
  width: 100%;
  box-sizing: border-box;
  -webkit-overflow-scrolling: touch;
}

/* CARTE SINGOLE - STRUTTURA POSIZIONAMENTO ANGOLI PERFETTA */
.card-item {
  width: 76px;
  height: 114px;
  background: #ffffff;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
  position: relative;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
  overflow: hidden;
  box-sizing: border-box;
}

.card-item:hover:not(.disabled) {
  transform: translateY(-14px) scale(1.08);
  box-shadow: 0 12px 22px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

.card-item.disabled {
  opacity: 0.45;
  filter: grayscale(0.7);
  cursor: not-allowed;
  transform: none !important;
}

.card-top {
  position: absolute;
  top: 5px;
  left: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
}

.card-bottom {
  position: absolute;
  bottom: 5px;
  right: 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: rotate(180deg);
  line-height: 1;
}

.card-rank { font-size: 16px; font-weight: 900; line-height: 1; margin: 0; }
.card-suit-icon { font-size: 12px; line-height: 1; margin: 0; }

.card-center {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  width: 100%;
  height: 100%;
}

.card-item.suit-h { color: var(--color-hearts); }
.card-item.suit-d { color: var(--color-diamonds); }
.card-item.suit-c { color: var(--color-clubs); }
.card-item.suit-s { color: var(--color-spades); }

.card-item.type-wizard {
  background: var(--color-wizard);
  color: #ffffff;
  border-color: var(--accent-gold);
}

.card-item.type-jester {
  background: var(--color-jester);
  color: #ffffff;
  border-color: #22d3ee;
}

/* SIDEBAR PUNTEGGI PERMANENTE A DESTRA */
.sidebar-scores {
  width: 280px;
  min-width: 280px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex-shrink: 0;
  overflow: hidden;
}

.sidebar-scores h3 {
  font-size: 15px;
  color: var(--accent-gold);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding-bottom: 8px;
  white-space: nowrap;
}

.sidebar-scores-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  table-layout: fixed;
}

.sidebar-scores-table th, .sidebar-scores-table td {
  padding: 8px 3px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.sidebar-scores-table th {
  color: var(--text-muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.sidebar-scores-table th.col-name,
.sidebar-scores-table td.col-name {
  width: 44%;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-scores-table th.col-bid,
.sidebar-scores-table td.col-bid { width: 18%; }

.sidebar-scores-table th.col-won,
.sidebar-scores-table td.col-won { width: 18%; }

.sidebar-scores-table th.col-score,
.sidebar-scores-table td.col-score {
  width: 20%;
  text-align: right;
  padding-right: 4px;
}

.sidebar-scores-table tr.my-row {
  background: rgba(251, 191, 36, 0.12);
  font-weight: 700;
}

/* MODALE TABELLONE STORICO */
.score-modal-box {
  position: relative;
  padding: 24px 28px;
  max-width: 720px;
  width: 92%;
}

.modal-header-custom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-bottom: 14px;
}

.modal-header-custom h2 {
  font-size: 20px;
  color: var(--accent-gold);
  font-family: 'Cinzel', serif;
}

.btn-close-custom {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 22px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.btn-close-custom:hover {
  background: rgba(239, 68, 68, 0.8);
  border-color: #ef4444;
  transform: scale(1.1);
}

.scores-table-styled {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 13px;
}

.scores-table-styled th, .scores-table-styled td {
  padding: 12px 10px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.scores-table-styled th {
  color: var(--text-muted);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 11px;
  background: rgba(15, 23, 42, 0.5);
}

.scores-table-styled tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.03);
}

.scores-table-styled td strong {
  color: var(--accent-gold);
}

/* MODALI GENERALI */
.modal-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 200;
}

.bidding-buttons-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(46px, 1fr));
  gap: 10px;
}

.btn-bid {
  padding: 12px 0;
  font-size: 18px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  border-radius: var(--radius-md);
}

.btn-bid:hover {
  background: var(--accent-gold);
  color: #0f172a;
  transform: scale(1.1);
}

.trump-select-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.btn-trump {
  padding: 14px;
  font-size: 16px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-md);
  color: #fff;
}

.btn-trump:hover { transform: scale(1.05); border-color: var(--accent-gold); }

/* TOASTS */
.toast-container {
  position: fixed;
  top: 70px;
  right: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  z-index: 300;
}

.toast {
  background: rgba(15, 23, 42, 0.95);
  border-left: 4px solid var(--accent-gold);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  animation: slideInRight 0.3s ease;
}

@keyframes smoothPopIn {
  0% { transform: translate(-50%, -50%) scale(0.7); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

@keyframes smoothSlideIn {
  0% { transform: translateY(25px) scale(0.88); opacity: 0; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes slideInRight {
  0% { transform: translateX(100%); opacity: 0; }
  100% { transform: translateX(0); opacity: 1; }
}

/* --------------------------------------------------------------------------
   MEDIA QUERIES PER TABLET & SMARTPHONE (RESPONSIVE COMPLETO REFINED)
   -------------------------------------------------------------------------- */

@media (max-width: 900px) {
  .game-main-layout {
    flex-direction: column;
  }
  .sidebar-scores {
    width: 100%;
    min-width: 100%;
    order: 3;
  }
}

@media (max-width: 600px) {
  /* HEADER MOBILE PERFETTAMENTE ALLINEATO E SENZA RICEVIMENTI DI TESTO STRANI */
  .app-header {
    height: auto;
    min-height: 52px;
    padding: 6px 12px;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
  }

  .logo {
    gap: 6px;
  }

  .logo-icon { font-size: 20px; }
  .logo-text { font-size: 16px; letter-spacing: 0.5px; }

  .room-info {
    gap: 6px;
  }

  .room-badge {
    padding: 4px 8px;
    font-size: 11px;
    border-radius: 12px;
  }

  .btn-sm {
    padding: 5px 8px;
    font-size: 11px;
    border-radius: 12px;
  }

  .view-screen {
    padding: 6px;
  }

  .lobby-card, .waiting-card {
    padding: 20px 14px;
  }

  .title-main { font-size: 24px; }
  .code-highlight { font-size: 28px; letter-spacing: 3px; }

  /* TAVOLO DA GIOCO MOBILE */
  .table-top-bar {
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px 10px;
  }

  .trump-card-container {
    gap: 6px;
  }

  .trump-label { font-size: 10px; }

  /* BRISCOLA MINI PERFETTAMENTE CONTENUTA SU MOBILE */
  .trump-card-slot .card-item {
    width: 48px;
    height: 72px;
  }

  .trump-card-slot .card-top {
    top: 3px;
    left: 3px;
  }

  .trump-card-slot .card-bottom {
    bottom: 3px;
    right: 3px;
    transform: rotate(180deg);
  }

  .trump-card-slot .card-rank { font-size: 11px; }
  .trump-card-slot .card-suit-icon { font-size: 9px; }
  .trump-card-slot .card-center { font-size: 16px; }

  .status-banner {
    font-size: 11px;
    padding: 4px 10px;
    text-align: center;
  }

  /* AVVERSARI MOBILE */
  .opponents-container {
    gap: 6px;
  }

  .opponent-card {
    min-width: 90px;
    padding: 5px 6px;
  }

  .op-name { font-size: 10px; }
  .op-stats { font-size: 9px; }

  /* TAVOLO FELT & PANNELLO CENTRALE MOBILE */
  .felt-table {
    min-height: 170px;
    padding: 8px;
    border-radius: 16px;
  }

  .floating-action-panel {
    width: 96%;
    max-width: 320px;
    padding: 14px 12px;
  }

  .floating-action-panel h3 { font-size: 13px; }
  .floating-action-panel p { font-size: 10px; margin-bottom: 10px; }

  .bidding-buttons-grid {
    grid-template-columns: repeat(auto-fill, minmax(38px, 1fr));
    gap: 5px;
  }

  .btn-bid {
    padding: 8px 0;
    font-size: 15px;
  }

  .btn-trump {
    padding: 8px;
    font-size: 12px;
  }

  /* MANO DI CARTE MOBILE */
  .player-bottom-area {
    padding: 8px 10px;
    gap: 5px;
  }

  .my-info-bar {
    font-size: 11px;
  }

  .my-stats {
    gap: 6px;
    font-size: 10px;
  }

  .my-hand-container {
    justify-content: flex-start;
    min-height: 98px;
    padding: 6px 10px;
    gap: 6px;
  }

  .card-item {
    width: 58px;
    height: 88px;
    border-radius: 6px;
  }

  .card-top {
    top: 3px;
    left: 3px;
  }

  .card-bottom {
    bottom: 3px;
    right: 3px;
    transform: rotate(180deg);
  }

  .card-rank { font-size: 12px; }
  .card-suit-icon { font-size: 9px; }
  .card-center { font-size: 18px; }

  /* MODALI MOBILE */
  .score-modal-box {
    padding: 14px 10px;
  }

  .modal-header-custom h2 { font-size: 15px; }
  .btn-close-custom { width: 28px; height: 28px; font-size: 16px; }

  .scores-table-styled th, .scores-table-styled td {
    padding: 6px 3px;
    font-size: 10px;
  }
}
