/* ─── board3d.css ───────────────────────────────────────
   Stili della modalità 3D e dei componenti condivisi
   introdotti col renderer WebGL (selettore, toast, azioni
   ancorate alla carta).

   Il markup del tavolo 2D non cambia: in modalità 3D le sue
   zone vengono solo nascoste, mentre HUD e indicatori restano
   sopra al canvas.
   ───────────────────────────────────────────────────────── */

/* ═══ CANVAS ═══════════════════════════════════════════ */

.board3d {
  position: fixed;
  inset: 0;
  z-index: 0;
  display: none;
  overflow: hidden;
  background: #0d0618;
}

.render-webgl .board3d { display: block; }

.board3d-canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
}

/* ═══ IL BOARD 2D IN MODALITÀ 3D ═══════════════════════
   Restano solo area evento e info strip, sopra al canvas. */

.render-webgl #board {
  position: relative;
  z-index: 5;
  max-width: none;              /* niente colonna centrale: il tavolo è il canvas */
  border-left: none;
  border-right: none;
  background: transparent;
  pointer-events: none;
  justify-content: flex-end;    /* HUD in basso, sopra il tavolo */
}

/* Gli aloni decorativi della cornice 2D non hanno senso sopra al 3D. */
.render-webgl #board::before,
.render-webgl #board::after {
  display: none;
}

.render-webgl #board > .top-bar,
.render-webgl #board > .bottom-bar,
.render-webgl #board > .field-zone,
.render-webgl #board > .hand-tray {
  display: none;
}

.render-webgl #board > .event-zone,
.render-webgl #board > .info-strip {
  pointer-events: auto;
}

.render-webgl #board > .event-zone {
  min-height: 0;
  padding: 0 0 6px;
  background: transparent;
  border: none;
}

/* Le etichette verticali delle zone appartengono al layout 2D. */
.render-webgl .zone-tag { display: none; }

/* In 3D le richieste in sospeso sono un cartello sul tavolo: qui
   finivano sopra il ritratto e la mano, illeggibili. Lo stack degli
   Eventi sta sul tavolo, al centro. */
.render-webgl #event-area,
.render-webgl #event-stack { display: none; }

/* La finestra di risposta invece ha bottoni: resta in HTML anche in 3D,
   stretta e centrata come la striscia dei contatori. */
.render-webgl #board > .response-bar {
  pointer-events: auto;
  width: min(96vw, 620px);
  margin: 0 auto 6px;
  background: rgba(40, 8, 16, .88);
  backdrop-filter: blur(6px);
}

/* I PR di entrambi stanno già accanto ai ritratti: qui sarebbero doppioni
   e su telefono facevano andare la striscia a capo. */
.render-webgl .pr-chip,
.render-webgl .opp-chip { display: none; }

/* In 2D il conteggio del mazzo è già sulla pila in basso. */
.render-dom .deck-chip { display: none; }

/* La riga è larga quanto lo schermo ma quasi tutta vuota: se raccogliesse
   i click, coprirebbe il ritratto CEO che le sta accanto. Riceve i
   puntatori solo ciò che contiene davvero. */
.render-webgl #board > .turn-bar { pointer-events: none; }
.render-webgl #board > .turn-bar > * { pointer-events: auto; }

.render-webgl #board > .info-strip {
  width: min(96vw, 620px);
  margin: 0 auto 8px;
  background: rgba(13, 6, 24, .78);
  backdrop-filter: blur(6px);
  border-radius: 12px;
  border: 1px solid rgba(184, 148, 62, .28);
}

/* In 2D il contenitore 3D non deve occupare spazio né eventi. */
.render-dom .board3d { display: none; }

/* ═══ RITRATTI CEO ═════════════════════════════════════
   Il CEO è il giocatore, non una carta in campo: sta in un angolo
   con nome e PR, come i ritratti dei duellanti. */

.ceo-portrait {
  position: absolute;
  z-index: 12;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 12px 5px 5px;
  background: rgba(13, 6, 24, .82);
  border: 1px solid rgba(184, 148, 62, .45);
  border-radius: 999px;
  cursor: pointer;
  backdrop-filter: blur(5px);
  transition: border-color .2s, box-shadow .2s;
}

.ceo-portrait[hidden] { display: none; }

.ceo-portrait-opp {
  top: calc(10px + env(safe-area-inset-top, 0px));
  left: 10px;
}

/* Il ritratto sta in basso, all'altezza della riga dei comandi: più in
   alto copriva le carte della mano. `bottom` lo imposta il renderer
   misurando l'HUD, qui c'è solo un ripiego. */
.ceo-portrait-me {
  bottom: 120px;
  left: 10px;
  /* Condivide la riga con Fine turno: non deve arrivarci addosso. */
  max-width: calc(100% - 190px);
}

.ceo-portrait-me .ceo-portrait-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 100%;
}

.ceo-portrait-frame {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  border: 2px solid #b8943e;
  background: #1a0a2e;
}

.ceo-portrait-frame img {
  width: 100%;
  height: 100%;
  /* Le illustrazioni hanno il soggetto in alto: inquadra il volto. */
  object-fit: cover;
  object-position: 50% 22%;
  display: block;
}

.ceo-portrait-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  line-height: 1.15;
}

.ceo-portrait-name {
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  letter-spacing: .4px;
  color: #e8dcc8;
}

.ceo-portrait-pr {
  font-family: 'Cinzel', serif;
  font-size: .98rem;
  font-weight: 700;
  color: #d4a843;
}

/* Di chi è il turno. */
.ceo-portrait.is-turn {
  border-color: #d4a843;
  box-shadow: 0 0 18px rgba(212, 168, 67, .35);
}

/* Abilità CEO disponibile: il ritratto pulsa. */
.ceo-portrait.has-action .ceo-portrait-frame {
  border-color: #b06fd0;
  animation: ceoReady 1.8s ease-in-out infinite;
}

@keyframes ceoReady {
  0%, 100% { box-shadow: 0 0 0 rgba(176, 111, 208, 0); }
  50%      { box-shadow: 0 0 14px rgba(176, 111, 208, .9); }
}

/* ═══ BOTTONI VISTA ════════════════════════════════════ */

.board3d-views {
  position: absolute;
  top: calc(10px + env(safe-area-inset-top, 0px));
  right: 10px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.board3d-view-btn {
  font-family: 'Cinzel', serif;
  font-size: .78rem;
  letter-spacing: .5px;
  text-transform: uppercase;
  padding: 7px 11px;
  color: #e8dcc8;
  background: rgba(26, 10, 46, .82);
  border: 1px solid rgba(184, 148, 62, .45);
  border-radius: 8px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: border-color .15s, color .15s, background .15s;
}

.board3d-zoom {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 9px;
  background: rgba(26, 10, 46, .82);
  border: 1px solid rgba(184, 148, 62, .45);
  border-radius: 8px;
  backdrop-filter: blur(4px);
  color: #d4a843;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  line-height: 1;
}

.board3d-zoom input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 92px;
  height: 4px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(212, 168, 67, .35), #d4a843);
  outline: none;
}

.board3d-zoom input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f0d68a, #d4a843 55%, #9a7a2c 100%);
  border: 1px solid #0d0618;
  cursor: pointer;
}

.board3d-zoom input[type="range"]::-moz-range-thumb {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #f0d68a, #d4a843 55%, #9a7a2c 100%);
  border: 1px solid #0d0618;
  cursor: pointer;
}

.board3d-view-btn:hover,
.board3d-view-btn:focus-visible {
  color: #d4a843;
  border-color: #d4a843;
  background: rgba(34, 18, 64, .92);
}

/* ═══ FINE TURNO ═══════════════════════════════════════
   Riga propria sopra i contatori: prima l'orb assoluto ci finiva
   sopra e copriva il nome del giocatore. */

.turn-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 6px 10px 0;
}

/* ═══ MENU RICHIUDIBILE ════════════════════════════════
   In partita la navbar copriva una fascia intera di schermo.
   Ora sta chiusa dietro un bottone, come nel riferimento. */

.menu-toggle {
  position: fixed;
  left: 50%;
  bottom: calc(4px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 18px;
  font-family: 'Cinzel', serif;
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: #e8dcc8;
  background: rgba(26, 10, 46, .92);
  border: 1px solid rgba(184, 148, 62, .5);
  border-radius: 12px 12px 0 0;
  cursor: pointer;
  backdrop-filter: blur(4px);
  transition: bottom .28s ease, color .15s;
}

.menu-toggle:hover { color: #d4a843; }

/* Novità nel log, che ora sta dentro il menu chiuso: senza questo il
   badge dei messaggi non letti resterebbe invisibile. */
.menu-toggle.has-news::after {
  content: "";
  position: absolute;
  top: 4px;
  right: 10px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #e84393;
  box-shadow: 0 0 6px rgba(232, 67, 147, .9);
}

.nav-open .menu-toggle.has-news::after { display: none; }

.menu-toggle-chevron {
  display: inline-block;
  font-size: 1rem;
  line-height: 1;
  transition: transform .28s ease;
}

/* Aperta: il bottone sale sopra la barra e la freccia si gira. */
.nav-open .menu-toggle {
  bottom: calc(66px + env(safe-area-inset-bottom, 0px));
}

.nav-open .menu-toggle-chevron { transform: rotate(180deg); }

.bottom-nav {
  transform: translateY(100%);
  transition: transform .28s ease;
}

.nav-open .bottom-nav { transform: translateY(0); }

/* Con la barra chiusa non serve riservarle spazio in fondo al board. */
body:not(.nav-open) #board {
  padding-bottom: calc(30px + env(safe-area-inset-bottom, 0px));
}

.btn-end-turn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 9px 18px 9px 12px;
  font-family: 'Cinzel', serif;
  font-size: .85rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #e8dcc8;
  background: linear-gradient(135deg, #2c1550, #1a0a2e);
  border: 2px solid #b8943e;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
  transition: transform .15s, box-shadow .15s, filter .15s;
}

.btn-end-turn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(212, 168, 67, .3);
}

.btn-end-turn:active:not(:disabled) { transform: scale(.97); }

.btn-end-turn:disabled {
  opacity: .35;
  cursor: not-allowed;
}

.end-turn-orb {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #d4a0e8, #9b59b6 40%, #6a3580 100%);
  box-shadow: 0 0 10px rgba(155, 89, 182, .5);
  flex-shrink: 0;
}

/* Quando tocca a te il bottone si fa notare. */
.btn-end-turn:not(:disabled) .end-turn-orb {
  animation: endTurnPulse 2s ease-in-out infinite;
}

@keyframes endTurnPulse {
  0%, 100% { box-shadow: 0 0 8px rgba(155, 89, 182, .45); }
  50%      { box-shadow: 0 0 18px rgba(212, 168, 67, .75); }
}

/* ═══ TURNO DELLA CPU ══════════════════════════════════
   Mentre muove l'avversario i comandi del giocatore spariscono.
   `visibility` e non `display`: lo spazio resta occupato, così
   l'inquadratura 3D — che si calcola sull'altezza dell'HUD — non
   sobbalza a ogni passaggio di turno. */

/* Sparisce solo Fine turno: il Log resta, ed è anzi quello che si vuole
   consultare mentre l'avversario muove. */
.cpu-turn .btn-end-turn {
  visibility: hidden;
  pointer-events: none;
}

/* Il proprio ritratto resta visibile ma non è più un bottone. */
.cpu-turn .ceo-portrait-me {
  pointer-events: none;
  opacity: .75;
}

/* ═══ CARTA A SCHERMO INTERO CON AZIONI ════════════════ */

.card-detail-overlay {
  position: fixed;
  inset: 0;
  z-index: 1650;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(6, 3, 12, .93);
  backdrop-filter: blur(8px);
  animation: cardDetailIn .16s ease-out;
}

@keyframes cardDetailIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.card-detail {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 1020px;
  max-height: 100%;
}

/* Illustrazione grande a sinistra, scheda leggibile a destra */
.card-detail-main {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 22px;
  width: 100%;
  min-height: 0;
}

.card-detail-art {
  flex: 0 1 auto;
  min-height: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.card-detail-art img {
  max-width: 100%;
  max-height: 72vh;
  object-fit: contain;
  border-radius: 10px;
  border: 2px solid #b8943e;
  box-shadow: 0 12px 40px rgba(0, 0, 0, .7);
}

.card-detail-panel {
  flex: 1 1 380px;
  max-width: 480px;
  min-width: 0;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  text-align: left;
  padding: 18px 20px;
  background: rgba(26, 10, 46, .92);
  border: 1.5px solid rgba(184, 148, 62, .5);
  border-radius: 12px;
}

.card-detail-panel h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.7rem;
  line-height: 1.2;
  color: #f0c957;
  margin: 0 0 4px;
}

.card-detail-type {
  margin: 0 0 14px;
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #9b8bd0;
}

.card-detail-stats {
  margin: 0 0 16px;
  border-top: 1px solid rgba(184, 148, 62, .3);
}

.card-detail-stats > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  padding: 9px 2px;
  border-bottom: 1px solid rgba(184, 148, 62, .18);
}

.card-detail-stats dt {
  font-size: 1.1rem;
  color: #b7a88c;
}

.card-detail-stats dd {
  margin: 0;
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: #f0c957;
  white-space: nowrap;
}

.card-detail-text {
  margin: 0;
  font-size: 1.3rem;
  line-height: 1.5;
  color: #e8dcc8;
}

/* Schermi stretti: la scheda va sotto l'illustrazione */
@media (max-width: 820px) {
  .card-detail-main { flex-direction: column; align-items: center; gap: 14px; overflow-y: auto; }
  .card-detail-art img { max-height: 42vh; }
  .card-detail-panel { flex: 0 0 auto; width: 100%; max-width: 100%; overflow: visible; }
}

.card-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: 100%;
}

.card-detail-btn {
  flex: 1 1 auto;
  min-width: 120px;
  padding: 13px 18px;
  font-family: 'Cinzel', serif;
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: #0d0618;
  background: linear-gradient(135deg, #d4a843, #b8943e);
  border: none;
  border-radius: 9px;
  cursor: pointer;
  transition: filter .15s, transform .12s;
}

.card-detail-btn:hover { filter: brightness(1.12); }
.card-detail-btn:active { transform: scale(.97); }

.card-detail-btn.btn-fire   { background: linear-gradient(135deg, #e86060, #c03030); color: #fff; }
.card-detail-btn.btn-sell   { background: linear-gradient(135deg, #5cb884, #3d8a5e); color: #fff; }
.card-detail-btn.btn-assign { background: linear-gradient(135deg, #6a9de0, #3d6bb0); color: #fff; }
.card-detail-btn.btn-equip  { background: linear-gradient(135deg, #dda05e, #b0703a); color: #fff; }
.card-detail-btn.btn-offer  { background: linear-gradient(135deg, #f05fa8, #c02a78); color: #fff; }
.card-detail-btn.btn-ability,
.card-detail-btn.btn-ceo-ability { background: linear-gradient(135deg, #b06fd0, #7d3fa0); color: #fff; }

.card-detail-back {
  flex-basis: 100%;
  color: #e8dcc8;
  background: rgba(232, 220, 200, .12);
  border: 1px solid rgba(184, 148, 62, .35);
}

/* ═══ SUGGERIMENTO DI BERSAGLIAMENTO ═══════════════════ */

.board3d-targeting {
  position: absolute;
  left: 50%;
  top: calc(12px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 14;
  padding: 8px 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.12rem;
  color: #0d0618;
  background: #47d4c0;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(71, 212, 192, .35);
  animation: board3dPulse 1.6s ease-in-out infinite;
}

@keyframes board3dPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .72; }
}

/* ═══ EFFETTI FLOTTANTI (PR, dado) ═════════════════════ */

.board3d-effects {
  position: absolute;
  inset: 0;
  z-index: 11;
  pointer-events: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.board3d-flash {
  font-family: 'Cinzel', serif;
  font-size: 1.88rem;
  font-weight: 700;
  color: #e8dcc8;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .85);
  animation: board3dFloat 1.6s ease-out forwards;
}

.board3d-flash.gain { color: #6ee7a8; }
.board3d-flash.loss { color: #ff7a7a; }
.board3d-flash.opp  { color: #b9a6e0; font-size: 1.44rem; }
.board3d-flash.die  { color: #d4a843; }

@keyframes board3dFloat {
  0%   { opacity: 0; transform: translateY(14px) scale(.9); }
  18%  { opacity: 1; transform: translateY(0) scale(1); }
  70%  { opacity: 1; transform: translateY(-16px); }
  100% { opacity: 0; transform: translateY(-42px); }
}

/* ═══ SELETTORE (sostituisce prompt()) ═════════════════ */

.chooser-overlay {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(13, 6, 24, .88);
  backdrop-filter: blur(6px);
}

.chooser-box {
  width: 100%;
  max-width: 720px;
  max-height: calc(100dvh - 36px);
  overflow-y: auto;
  padding: 20px;
  text-align: center;
  background: #1a0a2e;
  border: 2px solid #b8943e;
  border-radius: 14px;
  box-shadow: 0 0 40px rgba(184, 148, 62, .22);
}

.chooser-box h3 {
  font-family: 'Cinzel', serif;
  font-size: 1.25rem;
  color: #d4a843;
  margin-bottom: 14px;
}

.chooser-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.chooser-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 8px 6px;
  color: #e8dcc8;
  background: #221240;
  border: 1px solid #5a4520;
  border-radius: 9px;
  cursor: pointer;
  transition: border-color .15s, transform .12s;
}

.chooser-item:hover,
.chooser-item:focus-visible {
  border-color: #d4a843;
  transform: translateY(-2px);
}

.chooser-item img {
  width: 100%;
  aspect-ratio: 71 / 100;
  object-fit: cover;
  border-radius: 5px;
}

.chooser-label {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  line-height: 1.3;
}

.chooser-sub {
  font-size: .88rem;
  opacity: .8;
}

/* ═══ TOAST (sostituisce alert()) ══════════════════════ */

.toast-layer {
  position: fixed;
  left: 50%;
  top: calc(96px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 1700;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: min(92vw, 460px);
  pointer-events: none;
}

/* I messaggi stanno in alto: in basso c'è la mano, e non vanno coperte le carte */

.toast {
  width: 100%;
  padding: 11px 16px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.19rem;
  line-height: 1.35;
  text-align: center;
  color: #e8dcc8;
  background: rgba(26, 10, 46, .96);
  border: 1px solid rgba(184, 148, 62, .55);
  border-left: 4px solid #d4a843;
  border-radius: 9px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .6);
  animation: toastIn .22s ease-out;
  transition: opacity .5s, transform .5s;
}

.toast.error { border-left-color: #e04040; }
.toast.success { border-left-color: #4a9e6e; }
.toast.out { opacity: 0; transform: translateY(10px); }

@keyframes toastIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ═══ AGGIUNTE AL RENDERER 2D ══════════════════════════ */

.btn-assign {
  background: #4a7ec9;
  color: #fff;
}

.ceo-slot-name {
  font-size: .68rem;
  font-weight: 600;
  color: #d4a843;
}

.mini-pile.has-cards {
  border-style: solid;
  border-color: rgba(184, 148, 62, .55);
  background: linear-gradient(135deg, #221240, #150a28);
}

.render-notice {
  position: fixed;
  left: 50%;
  top: calc(96px + env(safe-area-inset-top, 0px));
  transform: translateX(-50%);
  z-index: 30;
  max-width: 92vw;
  margin: 0;
  padding: 8px 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.06rem;
  text-align: center;
  color: #e8dcc8;
  background: rgba(26, 10, 46, .92);
  border: 1px solid rgba(184, 148, 62, .4);
  border-radius: 8px;
}

.nav-btn.nav-mode .nav-icon { filter: saturate(1.2); }

/* ═══ MOVIMENTO RIDOTTO ════════════════════════════════ */

@media (prefers-reduced-motion: reduce) {
  .board3d-flash,
  .board3d-targeting,
  .toast {
    animation: none;
  }
}

/* ── Tutorial in 3D ── */
/* La regia della camera è del tutorial: i bottoni di inquadratura e lo zoom
   sarebbero solo rumore. Il ritratto avversario resta in alto a sinistra,
   quindi il fumetto scende sotto di lui. */
.tutorial-mode.render-webgl .board3d-views,
.tutorial-mode.render-webgl .board3d-zoom { display: none; }
.tutorial-mode.render-webgl .tut-bubble { top: 78px; }
.render-webgl .ceo-portrait.tutorial-spot {
  box-shadow: 0 0 0 2px #f0c957, 0 0 22px rgba(240, 201, 87, .65);
  animation: tut-spot 1.3s ease-in-out infinite;
}

/* Freccia del tutorial ancorata alla carta evidenziata sul tavolo */
.board3d-pointer {
  position: absolute; transform: translate(-50%, -100%);
  color: #f0c957; font-size: 1.44rem; text-shadow: 0 0 10px rgba(0, 0, 0, .9), 0 0 14px rgba(240, 201, 87, .6);
  animation: tut-arrow 1s ease-in-out infinite; pointer-events: none; z-index: 5;
}
.board3d-pointer[hidden] { display: none; }
