/* ==========================================================================
   BRISCOLA PRO — STILE CASINO VIP (OTTIMIZZATO 100% MOBILE & DESKTOP)
========================================================================== */

:root {
  --table-green-center: #22c55e;
  --table-green-mid: #15803d;
  --table-green-dark: #0f582a;
  --panel-dark: rgba(15, 23, 42, 0.96);
  --orange-accent: #f59e0b;
  --gold-accent: #ffd700;
  --orange-header: linear-gradient(180deg, #f59e0b 0%, #d97706 100%);
  --font-display: 'Fredoka', cursive, sans-serif;
  --font-body: 'Nunito', sans-serif;
}

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

body {
  font-family: var(--font-body);
  background: #06180d;
  color: #ffffff;
  height: 100vh;
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  position: fixed;
}

/* ==================== TAVOLO ARENA ==================== */
.scopa-arena {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background-color: var(--table-green-mid);
  background-image: 
    radial-gradient(ellipse at 50% 50%, rgba(34, 197, 94, 0.45) 0%, rgba(21, 128, 61, 0.85) 60%, rgba(6, 40, 18, 0.98) 100%),
    repeating-linear-gradient(135deg, rgba(0, 0, 0, 0.035) 0px, rgba(0, 0, 0, 0.035) 14px, transparent 14px, transparent 28px),
    repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.035) 0px, rgba(0, 0, 0, 0.035) 14px, transparent 14px, transparent 28px);
}

/* Watermark Centrale */
.table-center-watermark {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(460px, 80vw);
  height: min(460px, 80vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(0, 0, 0, 0.06) 70%, transparent 100%);
  border: 4px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  z-index: 1;
}

.table-center-watermark::before {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1.5px dashed rgba(255, 255, 255, 0.15);
}

.watermark-logo-text {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2.2rem);
  font-weight: 900;
  color: rgba(255, 255, 255, 0.22);
  letter-spacing: 2.5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20%;
}

.watermark-crown {
  font-size: clamp(1.4rem, 3.5vw, 2rem);
  opacity: 0.35;
}

/* ==================== BANNER DI AZIONE ==================== */
.action-notification-banner {
  position: absolute;
  top: clamp(65px, 11vh, 96px);
  left: 50%;
  transform: translateX(-50%) translateY(-20px);
  background: rgba(15, 23, 42, 0.96);
  border: 2px solid var(--orange-accent);
  color: #ffffff;
  padding: 6px 18px;
  border-radius: 99px;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 2.8vw, 1.05rem);
  font-weight: 900;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), 0 0 20px rgba(245, 158, 11, 0.5);
  z-index: 80;
  opacity: 0;
  pointer-events: none;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 90vw;
  white-space: nowrap;
}

.action-notification-banner.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ==================== 1. PANNELLO GIOCO A 61 PUNTI ==================== */
.panel-score-match {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--panel-dark);
  border: 1.5px solid rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  overflow: hidden;
  width: clamp(120px, 20vw, 220px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  z-index: 50;
}

.panel-header-orange {
  background: var(--orange-header);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 1.8vw, 0.95rem);
  font-weight: 900;
  padding: 4px 6px;
  text-align: center;
  letter-spacing: 0.5px;
  white-space: nowrap;
}

.panel-match-body {
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.panel-match-labels {
  display: flex;
  justify-content: space-between;
  font-size: clamp(0.68rem, 1.6vw, 0.92rem);
  font-weight: 900;
  color: #cbd5e1;
}

.panel-match-values {
  display: flex;
  justify-content: space-between;
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 3.5vw, 2.2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

/* ==================== 2. PANNELLO BRISCOLA & PUNTI ==================== */
.panel-current-points {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--panel-dark);
  border: 1.5px solid rgba(0, 0, 0, 0.7);
  border-radius: 10px;
  overflow: hidden;
  width: clamp(140px, 22vw, 260px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
  z-index: 50;
}

.briscola-trump-badge-box {
  background: rgba(15, 23, 42, 0.9);
  padding: 5px 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1.5px solid rgba(255, 255, 255, 0.12);
}

.trump-title-label {
  font-size: clamp(0.65rem, 1.5vw, 0.85rem);
  font-weight: 900;
  color: #94a3b8;
}

.trump-suit-display {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-display);
  font-size: clamp(0.78rem, 1.8vw, 1.1rem);
  font-weight: 900;
  color: var(--gold-accent);
}

.points-table-body {
  padding: 5px 8px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.points-table-header {
  display: flex;
  justify-content: flex-end;
  gap: 16px;
  font-size: clamp(0.65rem, 1.5vw, 0.88rem);
  font-weight: 900;
  color: #94a3b8;
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.points-table-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: clamp(0.68rem, 1.6vw, 0.92rem);
  color: #cbd5e1;
}

.points-row-label { font-weight: 800; }
.points-row-vals {
  display: flex;
  gap: 18px;
  font-weight: 900;
  color: #ffffff;
  font-size: clamp(0.78rem, 1.8vw, 1.05rem);
}
.points-row-vals span {
  width: 18px;
  text-align: center;
}

/* ==================== 3. ZONA SUPERIORE: AVATAR TOP + CARTE ==================== */
.top-opponent-area {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.5vw, 16px);
  z-index: 20;
}

.player-vip-pod {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1vw, 10px);
  background: var(--panel-dark);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  border-radius: 12px;
  padding: 4px 10px 4px 4px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.7);
  transition: all 0.25s;
}

.player-vip-pod.is-turn {
  border-color: var(--orange-accent);
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.9), 0 6px 18px rgba(0, 0, 0, 0.85);
  transform: scale(1.03);
}

.pod-avatar-frame {
  width: clamp(38px, 6vw, 54px);
  height: clamp(38px, 6vw, 54px);
  border-radius: 8px;
  background: #1e293b;
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(1.2rem, 3vw, 1.8rem);
  position: relative;
}

.pod-level-tag {
  position: absolute;
  bottom: -3px;
  right: -3px;
  background: var(--orange-header);
  color: #000;
  font-family: var(--font-display);
  font-size: clamp(0.55rem, 1.2vw, 0.68rem);
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 3px;
  border: 1px solid #ffffff;
}

.pod-info-box {
  display: flex;
  flex-direction: column;
}

.pod-player-name {
  font-family: var(--font-display);
  font-size: clamp(0.75rem, 1.8vw, 0.95rem);
  font-weight: 900;
  color: #ffffff;
  max-width: clamp(65px, 12vw, 110px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pod-status-sub {
  font-size: clamp(0.6rem, 1.4vw, 0.75rem);
  color: #94a3b8;
  font-weight: 800;
}

/* CARTE COPERTE TOP */
.bot-facedown-hand {
  display: flex;
  align-items: center;
  gap: clamp(3px, 1vw, 8px);
}

.card-facedown-mini {
  width: clamp(38px, 7vw, 72px);
  height: clamp(58px, 10.5vw, 112px);
  border-radius: 6px;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #090d16 100%);
  border: 1.5px solid var(--gold-accent);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3px;
}

.card-facedown-mini .card-back-frame {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(255, 215, 0, 0.6);
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
}

.card-facedown-mini .crest-circle {
  width: clamp(20px, 3.5vw, 36px);
  height: clamp(20px, 3.5vw, 36px);
  border-radius: 50%;
  border: 1.5px solid var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(0.7rem, 1.8vw, 1.1rem);
  color: var(--gold-accent);
}

/* ==================== 4. GIOCATORI LATERALI (MODALITÀ 4P) ==================== */
.side-player-area {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  z-index: 25;
}

.side-player-left { left: 10px; }
.side-player-right { right: 10px; }

.side-facedown-hand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-facedown-side {
  width: clamp(34px, 5.5vw, 54px);
  height: clamp(24px, 4vw, 36px);
  border-radius: 4px;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #090d16 100%);
  border: 1px solid var(--gold-accent);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--gold-accent);
}

/* ==================== 5. CENTRO TAVOLO: CARTE PRESA ==================== */
.table-cards-center-area {
  position: absolute;
  top: 46%;
  left: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(8px, 2vw, 22px);
  width: auto;
  max-width: 95vw;
  z-index: 10;
}

/* ==================== 6. ZONA INFERIORE: GIOCATORE + MANO ==================== */
.bottom-player-area {
  position: absolute;
  bottom: clamp(12px, 2.5vh, 26px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: clamp(10px, 2vw, 24px);
  z-index: 30;
}

.player-interactive-hand {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: clamp(6px, 1.8vw, 14px);
  position: relative;
}

.player-card-slot {
  cursor: pointer;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), z-index 0.15s;
  touch-action: manipulation;
}

.player-card-slot:hover, .player-card-slot:active {
  transform: translateY(-22px) scale(1.08);
  z-index: 50;
}

/* ==================== 7. MAZZO IN BASSO A DESTRA CON BRISCOLA ==================== */
.deck-bottom-right {
  position: absolute;
  bottom: clamp(10px, 2vh, 26px);
  right: clamp(8px, 2vw, 24px);
  z-index: 40;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.deck-briscola-wrapper {
  position: relative;
  width: clamp(70px, 12vw, 130px);
  height: clamp(90px, 16vw, 165px);
  display: flex;
  align-items: center;
  justify-content: center;
}

.briscola-turned-card {
  position: absolute;
  left: clamp(-45px, -8vw, -80px);
  top: 15%;
  width: clamp(60px, 11vw, 115px);
  height: clamp(88px, 16vw, 172px);
  transform: rotate(-90deg);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.9), 0 0 12px rgba(255, 215, 0, 0.5);
  border: 1.5px solid var(--gold-accent);
  z-index: 5;
  overflow: hidden;
}

.briscola-turned-card img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.deck-cards-stack {
  position: relative;
  width: clamp(55px, 10vw, 100px);
  height: clamp(82px, 15vw, 156px);
  z-index: 10;
}

.deck-card-layer {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: #0f172a;
  border: 1.5px solid var(--gold-accent);
}

.deck-card-layer.l1 { transform: translate(-2px, -2px) rotate(-1.5deg); }
.deck-card-layer.l2 { transform: translate(-4px, -4px) rotate(1.5deg); }

.deck-card-top {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background: radial-gradient(circle at 50% 50%, #1e293b 0%, #090d16 100%);
  border: 2px solid var(--gold-accent);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.deck-card-pattern {
  width: 100%;
  height: 100%;
  border: 1px dashed rgba(255, 215, 0, 0.7);
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
}

.deck-circle-counter {
  width: clamp(28px, 5vw, 48px);
  height: clamp(28px, 5vw, 48px);
  border-radius: 50%;
  background: #020617;
  border: 1.5px solid var(--gold-accent);
  color: var(--gold-accent);
  font-family: var(--font-display);
  font-size: clamp(0.9rem, 2.2vw, 1.4rem);
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ==================== 8. PULSANTI AZIONE CASINO ==================== */
.bottom-left-actions {
  position: absolute;
  bottom: clamp(10px, 2vh, 24px);
  left: clamp(8px, 2vw, 24px);
  z-index: 50;
  display: flex;
  gap: clamp(6px, 1.2vw, 12px);
}

.bottom-right-actions {
  position: absolute;
  bottom: clamp(10px, 2vh, 24px);
  right: clamp(160px, 26vw, 320px);
  z-index: 50;
  display: flex;
  gap: clamp(6px, 1.2vw, 12px);
}

.btn-casino-action {
  width: clamp(38px, 5.5vw, 50px);
  height: clamp(38px, 5.5vw, 50px);
  border-radius: 12px;
  background: linear-gradient(145deg, #1e293b 0%, #0f172a 100%);
  border: 1.5px solid var(--gold-accent);
  color: var(--gold-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.8);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: manipulation;
}

.btn-casino-action svg {
  width: clamp(18px, 3vw, 24px);
  height: clamp(18px, 3vw, 24px);
  fill: currentColor;
}

.btn-casino-action:active { transform: scale(0.94); }

/* ==================== 9. CARTE DA GIOCO ==================== */
.scopa-card {
  width: clamp(75px, 14.5vw, 138px);
  height: clamp(116px, 22.5vw, 214px);
  border-radius: clamp(6px, 1vw, 11px);
  background: #ffffff;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.7);
  position: relative;
  overflow: hidden;
  border: 1.5px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.card-img-content {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 6px;
  display: block;
  pointer-events: none;
}

.card-points-badge {
  position: absolute;
  top: 4px;
  right: 4px;
  background: var(--orange-header);
  color: #000;
  font-family: var(--font-display);
  font-size: clamp(0.55rem, 1.2vw, 0.72rem);
  font-weight: 900;
  padding: 1px 4px;
  border-radius: 4px;
  border: 1px solid #ffffff;
}

.scopa-card.is-carico {
  border-color: var(--gold-accent);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.6), 0 8px 20px rgba(0, 0, 0, 0.7);
}

.scopa-card.is-winning-trick {
  border-color: #22c55e !important;
  box-shadow: 0 0 25px #22c55e, 0 10px 25px rgba(0,0,0,0.9) !important;
  transform: scale(1.06) translateY(-6px);
}

.card-specular-gloss {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.18) 0%, transparent 100%);
  pointer-events: none;
}

/* Toast Presa */
.scopa-toast {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  background: var(--orange-header);
  color: #ffffff;
  padding: 12px 32px;
  border-radius: 99px;
  box-shadow: 0 15px 40px rgba(0,0,0,0.9), 0 0 40px rgba(245, 158, 11, 0.9);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 500;
  pointer-events: none;
  border: 2px solid #ffffff;
  transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scopa-toast.show { transform: translate(-50%, -50%) scale(1.15); }
.scopa-toast-text { font-family: var(--font-display); font-size: clamp(1.4rem, 4vw, 2.1rem); font-weight: 900; }

/* Modali Generali */
.scopa-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 16px;
}

.scopa-modal.hidden { display: none !important; }

.scopa-modal-box {
  background: linear-gradient(180deg, #1e293b 0%, #0f172a 100%);
  border: 2px solid var(--gold-accent);
  border-radius: 20px;
  padding: clamp(18px, 4vw, 32px);
  max-width: 520px;
  width: 100%;
  max-height: 92dvh;
  overflow-y: auto;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0,0,0,0.95);
}

.scopa-modal-title {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 4vw, 2rem);
  font-weight: 900;
  color: var(--gold-accent);
  margin-bottom: 6px;
}

.scopa-modal-sub {
  color: #cbd5e1;
  font-size: clamp(0.85rem, 2.2vw, 1rem);
  margin-bottom: 18px;
}

.mode-selection-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 20px;
}

.btn-mode-card {
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(255, 215, 0, 0.4);
  border-radius: 14px;
  padding: 16px 10px;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #ffffff;
}

.btn-mode-card:hover, .btn-mode-card.is-selected {
  background: rgba(245, 158, 11, 0.2);
  border-color: var(--gold-accent);
  transform: scale(1.03);
  box-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.mode-icon-big { font-size: clamp(2rem, 5vw, 2.8rem); }

.mode-card-title {
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.25rem);
  font-weight: 900;
  color: var(--gold-accent);
}

.btn-modal-primary {
  width: 100%;
  background: linear-gradient(135deg, #fbbf24 0%, #d97706 50%, #b45309 100%);
  color: #000000;
  font-family: var(--font-display);
  font-size: clamp(1rem, 2.5vw, 1.2rem);
  font-weight: 900;
  padding: 13px;
  border-radius: 99px;
  border: 2px solid #ffffff;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(245, 158, 11, 0.5);
}

/* Modale Risultati */
.score-summary-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}

.score-player-card {
  background: rgba(15, 23, 42, 0.85);
  border: 2px solid rgba(255, 215, 0, 0.35);
  border-radius: 14px;
  padding: 14px 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.score-player-name {
  font-family: var(--font-display);
  font-size: clamp(0.85rem, 2.2vw, 1.15rem);
  font-weight: 900;
  color: var(--gold-accent);
  text-align: center;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.score-big-points {
  font-family: var(--font-display);
  font-size: clamp(2rem, 6vw, 3.2rem);
  font-weight: 900;
  color: #ffffff;
  line-height: 1;
}

.score-points-sub {
  font-size: 0.75rem;
  font-weight: 800;
  color: #94a3b8;
  text-transform: uppercase;
}

/* ==================== OTTIMIZZAZIONE RESPONSIVE MOBILE VERTICALE & ORIZZONTALE ==================== */
@media (max-width: 680px) {
  .top-opponent-area {
    top: 6px;
    gap: 6px;
  }
  
  .panel-score-match {
    top: 6px;
    left: 6px;
    width: 100px;
  }
  
  .panel-current-points {
    top: 6px;
    right: 6px;
    width: 110px;
  }

  .points-table-body {
    padding: 3px 5px;
  }

  .points-row-label { font-size: 0.65rem; }
  .points-row-vals { gap: 8px; font-size: 0.7rem; }
  .points-row-vals span { width: 14px; }
  
  .table-cards-center-area {
    top: 44%;
    gap: 6px;
  }

  .scopa-card {
    width: 76px;
    height: 118px;
    padding: 2px;
  }

  .bottom-player-area {
    bottom: 12px;
    gap: 8px;
  }

  .bottom-left-actions {
    bottom: 8px;
    left: 6px;
    gap: 6px;
  }

  .bottom-left-actions .btn-casino-action {
    width: 36px;
    height: 36px;
  }

  .bottom-right-actions {
    display: none; /* Rimuovi icone superflue su mobile per massima chiarezza */
  }

  .deck-bottom-right {
    bottom: 8px;
    right: 6px;
  }

  .deck-cards-stack {
    width: 52px;
    height: 80px;
  }

  .deck-circle-counter {
    width: 26px;
    height: 26px;
    font-size: 0.8rem;
  }

  .briscola-turned-card {
    width: 54px;
    height: 84px;
    left: -48px;
  }

  .side-player-area {
    display: none !important; /* Compatta sui cellulari */
  }
}


/* ==================== EVIDENZIAZIONE TURNO GIOCATORE: GIALLO ACCESSO SOLIDO ==================== */
.player-vip-pod.is-turn {
  border: 3.5px solid #ffe600 !important;
  outline: 2.5px solid #ffd700 !important;
  box-shadow: 0 0 0 3px #000000, 0 0 0 6px #ffe600, 0 8px 25px rgba(0, 0, 0, 0.95) !important;
  transform: scale(1.08) !important;
  z-index: 100 !important;
  background: #0f172a !important;
  animation: turnPulseSolid 1.1s infinite alternate ease-in-out !important;
}

.player-vip-pod.is-turn .pod-avatar-frame {
  border: 3px solid #ffe600 !important;
}

.player-vip-pod.is-turn .pod-player-name {
  color: #ffe600 !important;
  font-weight: 900 !important;
  text-shadow: 0 0 2px #000;
}

.player-vip-pod.is-turn .pod-status-sub {
  color: #4ade80 !important;
  font-weight: 900 !important;
}

@keyframes turnPulseSolid {
  0% {
    box-shadow: 0 0 0 3px #000000, 0 0 0 5px #ffe600, 0 8px 20px rgba(0, 0, 0, 0.9);
  }
  100% {
    box-shadow: 0 0 0 3px #000000, 0 0 0 8px #fff000, 0 10px 28px rgba(0, 0, 0, 0.95);
  }
}
