/* =========================================================
   TRIPLE STAR — PANNELLO 4 CARD PREMIO
   Modulo grafico separato dal motore di gioco
   ========================================================= */

/* =========================================================
   PANNELLO CENTRALE
   ========================================================= */

.brand-panel {
  position: relative;
  display: grid !important;
  grid-template-rows: auto minmax(0, 1fr) auto auto !important;
  align-content: stretch;
  gap: 5px !important;
  padding: 5px 10px 6px !important;
  overflow: hidden !important;
}

.brand-panel .brand {
  position: relative;
  z-index: 2;
  margin: 0 !important;
  font-size: clamp(28px, 2.6vw, 44px) !important;
  line-height: 0.95 !important;
  text-align: center;
}

/* =========================================================
   CONTENITORE JACKPOT
   ========================================================= */

.player-prize-cards {
  position: relative;
  width: 98%;
  min-height: 0;
  margin: 0 auto;
  padding: 18px 8px 8px;
  border: 2px solid #ffbf00;
  border-radius: 16px;
  background:
    radial-gradient(
      circle at 50% 0%,
      rgba(255, 193, 7, 0.15),
      transparent 45%
    ),
    linear-gradient(
      180deg,
      rgba(5, 11, 22, 0.98),
      rgba(1, 5, 12, 0.98)
    );
  box-shadow:
    inset 0 0 14px rgba(255, 189, 0, 0.3),
    0 0 9px rgba(255, 189, 0, 0.7);
}

.player-prize-cards::before {
  content: "JACKPOT A 3 LIVELLI";
  position: absolute;
  top: -13px;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  padding: 1px 14px;
  border-radius: 12px;
  background: #07101e;
  color: #ffc400;
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 900;
  line-height: 1.3;
  white-space: nowrap;
  text-shadow:
    0 0 4px #000000,
    0 0 8px rgba(255, 196, 0, 0.75);
}

/* =========================================================
   LISTA DELLE QUATTRO CARD
   ========================================================= */

.player-prize-cards__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 5px;
  width: 100%;
  margin: 0;
}

.player-prize-card {
  position: relative;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) minmax(74px, auto);
  align-items: center;
  min-height: 38px;
  padding: 5px 10px;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 7px;
  overflow: hidden;
  box-shadow:
    inset 0 1px 2px rgba(255, 255, 255, 0.7),
    inset 0 -3px 7px rgba(0, 0, 0, 0.38),
    0 2px 5px rgba(0, 0, 0, 0.85);
}

.player-prize-card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      110deg,
      rgba(255, 255, 255, 0.34) 0%,
      rgba(255, 255, 255, 0.04) 34%,
      transparent 58%
    );
}

.player-prize-card__stars {
  position: relative;
  z-index: 1;
  font-size: clamp(17px, 1.45vw, 23px);
  font-weight: 900;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  padding-right: 10px;

  filter: drop-shadow(0 2px 1px rgba(0, 0, 0, 0.8));
}

.player-prize-card__title {
  position: relative;
  z-index: 1;
  min-width: 0;
  padding-left: 3px;
  color: #080808;
  font-size: clamp(15px, 1.35vw, 21px);
  font-weight: 950;
  line-height: 1;
  text-align: left;
  white-space: nowrap;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.62);
}

.player-prize-card__amount {
  position: relative;
  z-index: 1;
  display: block;
  min-width: 70px;
  padding: 3px 7px;
  border-radius: 5px;
  background: rgba(2, 8, 16, 0.82);
  color: #ffffff;
  font-size: clamp(15px, 1.35vw, 21px);
  font-weight: 950;
  line-height: 1;
  text-align: right;
  white-space: nowrap;
  box-shadow:
    inset 0 0 4px rgba(255, 255, 255, 0.18),
    0 0 4px rgba(0, 0, 0, 0.8);
  text-shadow:
    0 1px 2px #000000,
    0 0 5px #000000;
}

/* =========================================================
   COLORI DELLE CARD
   ========================================================= */

.player-prize-card--gold {
  color: #fff071;
  background:
    linear-gradient(
      90deg,
      #ffda26 0%,
      #d69a00 43%,
      #755000 100%
    );
}

.player-prize-card--silver {
  color: #ffffff;
  background:
    linear-gradient(
      90deg,
      #f5f6f8 0%,
      #bebfc4 45%,
      #55585f 100%
    );
}

.player-prize-card--bronze {
  color: #ff9e3d;
  background:
    linear-gradient(
      90deg,
      #e58b38 0%,
      #a34f18 45%,
      #54200b 100%
    );
}

.player-prize-card--fourth {
  color: #e76cff;
  background:
    linear-gradient(
      90deg,
      #bd3cf1 0%,
      #71159b 45%,
      #310642 100%
    );
}

/* =========================================================
   BONUS x3 / x5 / x9 — SOLO GRAFICA
   ========================================================= */

.brand-panel .multiplier-lines {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 7px !important;
  width: 98% !important;
  min-height: 49px !important;
  margin: 8px auto 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.brand-panel .multiplier-lines div {
  display: flex !important;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 5px 4px;
  gap: 4px !important;
  border: 1px solid currentColor;
  border-radius: 9px;
  background:
    linear-gradient(
      180deg,
      rgba(8, 13, 25, 0.98),
      rgba(1, 4, 10, 0.98)
    );
  font-size: clamp(14px, 1.45vw, 21px) !important;
  font-weight: 950;
  line-height: 1 !important;
  white-space: nowrap;
  box-shadow:
    inset 0 0 7px rgba(255, 255, 255, 0.08),
    0 0 6px currentColor;
}

.brand-panel .multiplier-lines div:nth-child(1) {
  color: #e32cff;
}

.brand-panel .multiplier-lines div:nth-child(2) {
  color: #168cff;
}

.brand-panel .multiplier-lines div:nth-child(3) {
  color: #ff2424;
}

.brand-panel .multiplier-lines span,
.brand-panel .multiplier-lines strong {
  line-height: 1 !important;
  white-space: nowrap;
  text-shadow:
    0 0 5px currentColor,
    0 0 9px currentColor;
}

/* =========================================================
   MOLTIPLICATORE ATTIVO
   ========================================================= */

.brand-panel .active-multiplier {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 96% !important;
  min-height: 27px !important;
  margin: 0 auto !important;
  padding: 2px 8px !important;
  gap: 9px !important;
}

.brand-panel .active-multiplier small {
  font-size: clamp(9px, 0.9vw, 12px) !important;
  line-height: 1 !important;
}

.brand-panel .active-multiplier strong {
  font-size: clamp(17px, 1.6vw, 24px) !important;
  line-height: 1 !important;
}

/* =========================================================
   RIDUZIONE PER SCHERMI DESKTOP PIÙ STRETTI
   ========================================================= */

@media (max-width: 1250px) {
  .brand-panel {
    gap: 3px !important;
    padding: 4px 7px 5px !important;
  }

  .player-prize-cards {
    padding: 15px 6px 6px;
  }

  .player-prize-cards__list {
    gap: 3px;
  }

  .player-prize-card {
    grid-template-columns: 62px minmax(0, 1fr) minmax(58px, auto);
    min-height: 27px;
    padding: 2px 7px;
  }

  .brand-panel .multiplier-lines {
    min-height: 37px !important;
    gap: 5px !important;
  }

  .brand-panel .multiplier-lines div {
    padding: 3px;
  }
}
/* =========================================================
   CORREZIONE POSIZIONE TITOLO E BONUS GRAFICI
   ========================================================= */

.brand-panel {
  grid-template-rows: 1fr 44px 29px !important;
  align-content: start !important;
  gap: 6px !important;
}

/* Titolo Triple Star sopra il pannello jackpot */
.brand-panel .brand {
  position: static !important;
  inset: auto !important;
  transform: none !important;
  width: 100% !important;
  min-height: 36px;
  margin: 0 auto 3px !important;
  font-size: clamp(30px, 2.5vw, 43px) !important;
  line-height: 1 !important;
  text-align: center !important;
}

/* Pannello delle quattro card */
.player-prize-cards {
  align-self: start;
  margin-top: 0;
  padding-top: 10px;
}

/* Riduzione controllata delle card */
.player-prize-cards__list {
  gap: 3px;
}

.player-prize-card {
  min-height: 32px;
  padding-top: 3px;
  padding-bottom: 3px;
}

/* I tre bonus x3 / x5 / x9 devono essere sempre visibili */
.brand-panel .multiplier-lines {
  display: grid !important;
  visibility: visible !important;
  opacity: 1 !important;
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  align-self: stretch !important;
  width: 98% !important;
  height: 44px !important;
  min-height: 44px !important;
  margin: 10px auto 0 !important;
  overflow: visible !important;
}

.brand-panel .multiplier-lines div {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
  min-height: 40px !important;
}

/* Moltiplicatore attivo sempre in fondo */
.brand-panel .active-multiplier {
  position: relative !important;
  inset: auto !important;
  transform: none !important;
  align-self: end !important;
  height: 29px !important;
  min-height: 29px !important;
}

/* =====================================================
   V5.2 — TRIPLE STAR ESTERNO E JACKPOT CENTRATO
   Solo desktop: non modifica il mobile
===================================================== */

@media (min-width: 901px) and (hover: hover) and (pointer: fine) {

  /* Struttura del pannello centrale */
  .brand-panel {
    position: relative !important;

    display: grid !important;
    grid-template-rows: auto auto !important;
    align-content: center !important;
    justify-items: center !important;

    gap: 4px !important;

    padding:
      7px
      14px
      15px !important;

    overflow: hidden !important;
  }

  /* Titolo Triple Star esterno alle card */
  .brand-panel::before {
    content: "Triple Star";

    display: block;

    width: 100%;

    margin: 0 0 2px;
    padding: 0;

    background:
      linear-gradient(
        180deg,
        #fff8a5 0%,
        #ffe34c 22%,
        #ffc21c 48%,
        #e28100 72%,
        #fff06a 100%
      );

    background-clip: text;
    -webkit-background-clip: text;

    color: transparent;
    -webkit-text-fill-color: transparent;

    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(31px, 2.8vw, 47px);
    font-style: italic;
    font-weight: 900;
    line-height: 0.95;

    text-align: center;
    white-space: nowrap;

    filter:
      drop-shadow(2px 2px 0 #9b2100)
      drop-shadow(0 0 5px rgba(255, 210, 35, 0.9))
      drop-shadow(0 0 10px rgba(255, 169, 0, 0.55));
  }

  /* Contenitore Jackpot senza cornice interna */
  .player-prize-cards {
    position: relative !important;

    width: 96% !important;
    max-width: 560px !important;
    min-height: 0 !important;

    margin: 0 auto !important;
    padding:
      25px
      5px
      9px !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;
    box-shadow: none !important;
  }

  /* Scritta Jackpot semplice, senza sfondo ad arco */
  .player-prize-cards::before {
    content: "JACKPOT A 3 LIVELLI";

    position: absolute !important;
    top: 1px !important;
    left: 50% !important;
    z-index: 3 !important;

    width: auto !important;
    height: auto !important;

    transform: translateX(-50%) !important;

    margin: 0 !important;
    padding: 0 !important;

    border: 0 !important;
    border-radius: 0 !important;

    background: transparent !important;

    color: #ffc928 !important;

    font-family: Arial, Helvetica, sans-serif !important;
    font-size: clamp(13px, 1.05vw, 16px) !important;
    font-style: normal !important;
    font-weight: 900 !important;
    letter-spacing: 0.8px !important;
    line-height: 1 !important;

    white-space: nowrap !important;

    text-shadow:
      0 1px 1px #000000,
      0 0 5px rgba(255, 201, 40, 0.85),
      0 0 9px rgba(255, 157, 0, 0.5) !important;

    box-shadow: none !important;
  }

  /* Le tre card occupano quasi tutta la larghezza */
  .player-prize-cards__list {
    width: 100% !important;

    display: grid !important;
    grid-template-columns: 1fr !important;

    gap: 5px !important;

    margin: 0 !important;
    padding: 0 !important;
  }

  .player-prize-card {
    width: 100% !important;
    min-height: 38px !important;

grid-template-columns:
  68px
  minmax(0, 1fr)
  minmax(120px, auto) !important;
   
   padding: 4px 12px !important;

    border-radius: 8px !important;

    box-shadow:
      inset 0 2px 2px rgba(255, 255, 255, 0.55),
      inset 0 -4px 7px rgba(0, 0, 0, 0.45),
      0 3px 6px rgba(0, 0, 0, 0.82) !important;
  }

  .player-prize-card__stars {
    font-size: clamp(18px, 1.45vw, 23px) !important;
  }

  .player-prize-card__title {
  font-size: clamp(14px, 1.10vw, 18px) !important;
  text-align: left !important;
  padding-left: 0 !important;
}

  .player-prize-card__amount {
    min-width: 116px !important;

    padding: 4px 9px !important;

    font-size: clamp(17px, 1.45vw, 22px) !important;
  }

  /* Stelle x3 / x5 / x9 distaccate dalle card e dal bordo dorato */
  .brand-panel .multiplier-lines {
    width: 100% !important;
    height: 43px !important;
    min-height: 43px !important;

    display: grid !important;
    grid-template-columns:
      repeat(3, minmax(0, 1fr)) !important;

    gap: 8px !important;

    margin:
      11px
      auto
      7px !important;

    padding: 0 !important;

    border: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
  }

  .brand-panel .multiplier-lines div {
    min-height: 40px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 4px 6px !important;

    border-radius: 9px !important;

    background:
      linear-gradient(
        180deg,
        #16202d 0%,
        #020509 100%
      ) !important;
  }

  /* Eventuale barra del moltiplicatore attivo */
  .brand-panel .active-multiplier {
    width: 100% !important;
    height: 28px !important;
    min-height: 28px !important;

    margin:
      3px
      auto
      5px !important;
  }
}
/* =====================================================
   V5.3 — Nasconde i moltiplicatori x3 x5 x9 sul desktop
   (rimangono nel DOM per il futuro popup)
===================================================== */

@media (min-width: 901px) and (hover: hover) and (pointer: fine) {

  .brand-panel .multiplier-lines {
    display: none !important;
  }

  .brand-panel .active-multiplier {
    display: none !important;
  }

}
