:root { --gold: #f0d78c; --ink: #f7f4ea; --cell: 72px; --cell-max: 96px; --gap: 6px; --rows: 3; --frame-pad: 0px; }
*, *::before, *::after { box-sizing: border-box; }
html, body {
  overflow-x: hidden;
  width: 100%;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
body { margin: 0; min-height: 100vh; color: var(--ink); font-family: "Segoe UI", sans-serif; background: #10140f; }
html.embed, html.embed body {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}
html.embed body { display: flex; flex-direction: column; background: transparent; }
header { max-width: 1100px; margin: 0 auto; padding: 18px 18px 0; }
header .tag { color: var(--gold); letter-spacing: .16em; font-size: .72rem; }
html.embed header, html.embed .verifier { display: none; }
html.embed .stage { margin: 0; }
nav.suite { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
nav.suite a { color: var(--gold); text-decoration: none; border: 1px solid rgba(240,215,140,.4); border-radius: 999px; padding: 6px 10px; font-size: .78rem; min-height: 44px; display: inline-flex; align-items: center; }
nav.suite a[aria-current="page"] { background: rgba(240,215,140,.18); color: white; }
h1 { margin: 8px 0 0; font-weight: 560; }
.stage {
  max-width: 1100px; margin: 14px auto; padding: 18px; border-radius: 18px;
  background-color: #142018; background-position: center; background-size: cover; background-repeat: no-repeat;
  min-height: 280px;
}
html.embed .stage {
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
  max-width: none;
  height: auto;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: 0;
  padding: 8px 12px 10px;
}
.slot-stage-wrapper {
  width: 100%;
  max-width: 100%;
  height: min(70vh, 640px);
  max-height: 70vh;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
html.embed .slot-stage-wrapper {
  flex: 1 1 auto;
  height: auto;
  min-height: 0;
  max-height: none;
  width: 100%;
}
#tracker, .reels {
  display: flex;
  gap: var(--gap);
  justify-content: center;
  width: max-content;
  max-width: 100%;
}
#tracker:empty { display: none; }
#tracker { margin-bottom: 0; }
.reel, #tracker > .cell, #tracker > .spacer {
  flex: 0 0 var(--cell);
  width: var(--cell);
  max-width: var(--cell);
  min-width: 0;
}
.reel { display: flex; flex-direction: column; gap: var(--gap); }
.reel.cross-wild { outline: 2px solid rgba(64, 220, 255, .9); border-radius: 10px; box-shadow: 0 0 16px rgba(64, 220, 255, .45); }
.cell.cross-row { box-shadow: inset 0 0 0 2px rgba(240, 215, 140, .85); }
.cell, .spacer { width: var(--cell); max-width: 100%; }
.cell {
  height: var(--cell);
  aspect-ratio: 1;
  border-radius: clamp(6px, 1.4vw, 12px);
  background: rgba(6,10,8,.72);
  display: grid;
  place-items: center;
}
.cell img { width: 86%; height: 86%; object-fit: contain; }
html.embed .winline { flex: 0 0 auto; }
html.embed .meters,
html.embed #btnSpin { flex: 0 0 auto; width: 100%; }
html.embed .slot-stage-wrapper { flex: 1 1 0; }
html.embed .winline { margin-top: 4px; margin-bottom: 4px; min-height: 1.2em; }
html.embed .meters { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
html.embed .meter { padding: 4px 8px; }
html.embed input { min-height: 32px; }
html.embed #btnSpin { min-height: 40px; margin-top: 6px; padding: 8px 12px; }
.winline { min-height: 2.4em; margin: 12px 0; }
.meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.meter { background: rgba(8,12,10,.78); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.meter span { display: block; color: #b7c4b4; font-size: .72rem; letter-spacing: .08em; }
.meter b { overflow-wrap: anywhere; }
input, button { font: inherit; }
input { width: 100%; background: transparent; color: white; border: 0; min-height: 44px; }
button { margin-top: 12px; width: 100%; min-height: 44px; border: 0; border-radius: 8px; padding: 12px; font-weight: 800; background: var(--gold); color: #241c08; cursor: pointer; }
.reels.framed {
  box-sizing: border-box;
  aspect-ratio: 1280 / 720;
  max-width: 100%;
  max-height: 100%;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-origin: border-box;
  padding: 12.8125% 22.65625% 13.4375% 22.65625%;
  border-radius: 0;
  justify-content: flex-start;
  gap: 4px;
}
.reels.framed > .reel {
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  height: 100%;
  gap: 4px;
}
.reels.framed .cell {
  flex: 1 1 0;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: auto;
  min-height: 0;
}
.verifier { max-width: 1100px; margin: 0 auto 32px; padding: 0 18px; display: flex; flex-direction: column; gap: 8px; }
.mono, .verifier input { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; word-break: break-all; overflow-wrap: anywhere; }
.ok { color: #7dffa8; font-weight: 800; }
.bad { color: #ff8d8d; font-weight: 800; }
@media (max-width: 767px) {
  header, .stage, .verifier { padding-left: 12px; padding-right: 12px; }
  .meters { grid-template-columns: 1fr; }
  h1 { font-size: 1.35rem; }
}
@media (min-width: 768px) and (max-width: 1023px) {
  .meters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-height: 500px) {
  .slot-stage-wrapper { height: 54vh; max-height: 54vh; }
}

/* Masterpiece Atelier: cornice con tracker, placca dei modi e pulsanti comuni. */
body[data-suite-game="dynamic"] .atelier-frame {
  --at-s: 0.4px;
  --at-v: 0.4px;
  position: relative;
  max-width: none;
  max-height: none;
  flex: 0 0 auto;
}
body[data-suite-game="dynamic"] .atelier-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-style: solid;
  border-color: transparent;
  border-width: calc(233 * var(--at-v)) 0 calc(219 * var(--at-v)) 0;
  border-image-source: var(--at-frame, none);
  border-image-slice: 233 0 219 0 fill;
  border-image-width: calc(233 * var(--at-v)) 0 calc(219 * var(--at-v)) 0;
  border-image-repeat: stretch;
}
/* Vano misurato sull'immagine della cornice (1280 × 685): sei colonne tra x 20,9 % e 78,9 %,
   righe libere tra il fondo delle vaschette del tracker (y 233) e il bordo della placca (y 466). */
body[data-suite-game="dynamic"] {
  --atelier-left: 20.9%;
  --atelier-right: 21.1%;
  --atelier-gap: 0.7%;
  --atelier-col: calc((100% - var(--atelier-left) - var(--atelier-right) - 5 * var(--atelier-gap)) / 6);
}
body[data-suite-game="dynamic"] #tracker {
  position: absolute;
  left: calc(var(--atelier-left) + var(--atelier-col) + var(--atelier-gap));
  right: calc(var(--atelier-right) + var(--atelier-col) + var(--atelier-gap));
  top: calc(137 * var(--at-v));
  height: calc(77 * var(--at-v));
  width: auto;
  max-width: none;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: 1.85%;
  overflow: hidden;
}
body[data-suite-game="dynamic"] #tracker .cell {
  position: relative;
  width: auto;
  max-width: none;
  height: 100%;
  aspect-ratio: auto;
  background: transparent;
  overflow: hidden;
}
body[data-suite-game="dynamic"] .reels {
  position: absolute;
  left: var(--atelier-left);
  right: var(--atelier-right);
  top: calc(233 * var(--at-v));
  bottom: calc(219 * var(--at-v));
  width: auto;
  max-width: none;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  column-gap: 1.21%;
  overflow: hidden;
}
body[data-suite-game="dynamic"] .reels > .reel {
  width: auto;
  max-width: none;
  height: 100%;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body[data-suite-game="dynamic"] .reels .cell {
  position: relative;
  flex: 1 1 0;
  width: 100%;
  height: auto;
  max-width: none;
  aspect-ratio: auto;
  min-height: 0;
  overflow: hidden;
  border-radius: 6px;
  background: rgba(8, 6, 16, 0.28);
}
body[data-suite-game="dynamic"] .reels .cell img,
body[data-suite-game="dynamic"] #tracker .cell img {
  position: absolute;
  inset: 4%;
  width: 92%;
  height: 92%;
  object-fit: contain;
}
body[data-suite-game="dynamic"] .ways-plaque {
  position: absolute;
  left: 34%;
  right: 34%;
  top: calc(100% - 205.5 * var(--at-v));
  height: calc(75.4 * var(--at-v));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4a2a12;
  font-weight: 800;
  text-align: center;
  font-size: clamp(10px, calc(var(--at-s) * 40), 18px);
  pointer-events: none;
}
body[data-suite-game="dynamic"] .reels > .reel.is-pending,
body[data-suite-game="dynamic"] #tracker.is-pending { filter: blur(5px) brightness(.8); }
body[data-suite-game="dynamic"] .reels > .reel.is-pending .cell img,
body[data-suite-game="dynamic"] #tracker.is-pending .cell img { animation: atelierSpin 180ms linear infinite; }
body[data-suite-game="dynamic"] .reels > .reel.is-anticipating {
  border-radius: 8px;
  box-shadow: 0 0 0 2px rgba(255, 214, 102, .9), 0 0 18px rgba(255, 190, 70, .8);
}
@keyframes atelierSpin { from { transform: translateY(-30%); } to { transform: translateY(30%); } }
@media (prefers-reduced-motion: reduce) {
  body[data-suite-game="dynamic"] .reels > .reel.is-pending,
  body[data-suite-game="dynamic"] #tracker.is-pending { filter: none; opacity: .4; }
  body[data-suite-game="dynamic"] .reels > .reel.is-pending .cell img,
  body[data-suite-game="dynamic"] #tracker.is-pending .cell img { animation: none; }
}
body[data-suite-game="dynamic"] .cascade-hit {
  outline: 2px solid #ffd166;
  box-shadow: 0 0 12px rgba(255, 209, 102, 0.85);
}
body[data-suite-game="dynamic"] .spin-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
body[data-suite-game="dynamic"] #btnSpin {
  width: 88px;
  height: 88px;
  margin: 4px 0 0;
  border-radius: 50%;
  background-color: transparent;
  background-image: var(--spin);
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: transparent;
  font-size: 0;
}
body[data-suite-game="dynamic"] #btnSpin:hover { background-image: var(--spin-hover, var(--spin)); }
body[data-suite-game="dynamic"] #btnSpin:active { background-image: var(--spin-pressed, var(--spin)); }
body[data-suite-game="dynamic"] #btnSpin:disabled { background-image: var(--spin-disabled, var(--spin)); opacity: 1; }
body[data-suite-game="dynamic"] .step {
  width: 54px;
  height: 54px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background-color: transparent;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  color: transparent;
  font-size: 0;
}
body[data-suite-game="dynamic"] #betDown { background-image: var(--bet-minus); }
body[data-suite-game="dynamic"] #betUp { background-image: var(--bet-plus); }
body[data-suite-game="dynamic"] .bet-row {
  display: flex;
  align-items: center;
  gap: 6px;
}
body[data-suite-game="dynamic"] .bet-row input { min-height: 36px; text-align: center; }

/* Nova Jewels: Both Ways: esplosione a croce, celle sticky, linee e badge dei respin. */
body[data-suite-game="bothways"] .slot-stage-wrapper { position: relative; }
body[data-suite-game="bothways"] .cell { position: relative; }
body[data-suite-game="bothways"] .cell.nova-sticky {
  box-shadow: inset 0 0 0 2px rgba(150, 235, 255, .95), 0 0 14px rgba(120, 210, 255, .7);
}
body[data-suite-game="bothways"] .cell.nova-paid { filter: brightness(1.18); }
body[data-suite-game="bothways"] .cell.nova-land { z-index: 3; }
body[data-suite-game="bothways"] .cell.nova-land img { animation: nova-pulse 250ms ease-out both; }
body[data-suite-game="bothways"] .cell.nova-flash { animation: nova-flash 320ms ease-out both; }
.nova-rays { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.nova-rays i {
  position: absolute;
  display: block;
  border-radius: 999px;
  background: linear-gradient(var(--ray-dir, to top), rgba(255, 255, 255, .95), rgba(110, 225, 255, .85) 45%, rgba(110, 225, 255, 0));
  box-shadow: 0 0 12px rgba(150, 235, 255, .9);
  animation: nova-ray-v 350ms ease-out both;
}
.nova-rays .ray-up, .nova-rays .ray-down { left: 44%; width: 12%; height: calc(100% + var(--gap)); transform-origin: 50% 100%; }
.nova-rays .ray-up { bottom: 50%; --ray-dir: to top; }
.nova-rays .ray-down { top: 50%; --ray-dir: to bottom; transform-origin: 50% 0; }
.nova-rays .ray-left, .nova-rays .ray-right { top: 44%; height: 12%; width: calc(100% + var(--gap)); animation-name: nova-ray-h; }
.nova-rays .ray-left { right: 50%; --ray-dir: to left; transform-origin: 100% 50%; }
.nova-rays .ray-right { left: 50%; --ray-dir: to right; transform-origin: 0 50%; }
@keyframes nova-pulse {
  0% { transform: scale(.82); filter: brightness(1); }
  60% { transform: scale(1.12); filter: brightness(1.8) drop-shadow(0 0 12px #9feaff); }
  100% { transform: scale(1); filter: brightness(1.25) drop-shadow(0 0 8px #9feaff); }
}
@keyframes nova-ray-v {
  0% { transform: scaleY(0); opacity: 1; }
  80% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(1); opacity: .2; }
}
@keyframes nova-ray-h {
  0% { transform: scaleX(0); opacity: 1; }
  80% { transform: scaleX(1); opacity: 1; }
  100% { transform: scaleX(1); opacity: .2; }
}
@keyframes nova-flash {
  0% { background-color: rgba(230, 250, 255, .95); }
  100% { background-color: rgba(6, 10, 8, .72); }
}
.nova-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 5; overflow: visible; }
.nova-line { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.nova-line.is-ltr { stroke: #22e6ff; filter: drop-shadow(0 0 5px #22e6ff); }
.nova-line.is-rtl { stroke: #ff3ddb; filter: drop-shadow(0 0 5px #ff3ddb); }
.nova-badge {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  padding: 6px 16px;
  border-radius: 999px;
  background: rgba(10, 16, 40, .88);
  border: 1px solid rgba(150, 235, 255, .9);
  color: #e9fbff;
  font-weight: 900;
  letter-spacing: .06em;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 0 16px rgba(120, 210, 255, .55);
}
.nova-badge[hidden] { display: none; }
.nova-badge.is-pop { animation: nova-badge-pop 360ms ease-out both; }
@keyframes nova-badge-pop {
  0% { transform: translateX(-50%) scale(.6); opacity: 0; }
  70% { transform: translateX(-50%) scale(1.1); opacity: 1; }
  100% { transform: translateX(-50%) scale(1); opacity: 1; }
}
body[data-suite-game="bothways"] .spin-row { display: flex; gap: 10px; }
@media (prefers-reduced-motion: reduce) {
  body[data-suite-game="bothways"] .cell.nova-land img,
  body[data-suite-game="bothways"] .cell.nova-flash,
  .nova-badge.is-pop { animation: none !important; }
  .nova-rays { display: none !important; }
}

/* Hold & Win: valori sulle monete, griglia respin, finestre, volo dell'importo. */
.stage.holdwin-ready { position: relative; }
.stage.holdwin-ready .slot-stage-wrapper { position: relative; }
body[data-suite-game="holdwin"] #btnSpin:disabled { opacity: .45; cursor: not-allowed; }
.cell-coin { position: relative; overflow: visible; }
.cell-coin .coin-stack {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  position: relative;
}
.cell-coin img { width: 86%; height: 86%; object-fit: contain; }
.cell-coin .coin-value {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1px;
  color: #fff8e6;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow: 0 1px 2px #000, 0 0 6px #000;
  pointer-events: none;
  font-variant-numeric: tabular-nums;
  font-size: clamp(11px, 2.2vw, 20px);
  white-space: nowrap;
}
.cell-coin .coin-value small { font-size: .62em; font-weight: 750; letter-spacing: .01em; }
.cell-coin.is-multiplier .coin-value { color: #b9f3ff; }
.cell-coin.is-addition .coin-value { color: #c6f7cf; }
.cell.cell-coin.is-locked { box-shadow: inset 0 0 0 2px rgba(240, 215, 140, .9), 0 0 10px rgba(240, 180, 40, .35); }
.cell-coin.is-lit,
.cell-coin.is-counted { box-shadow: inset 0 0 0 2px #ffe7a3, 0 0 16px rgba(255, 210, 80, .9); z-index: 2; }
.cell-coin.is-falling { z-index: 3; overflow: visible; }
.cell-coin.is-falling .coin-stack { animation: holdwin-drop var(--holdwin-coin-fall, 520ms) cubic-bezier(.2, .8, .2, 1) both; }
.cell-coin.is-trigger .coin-stack { animation: holdwin-pulse var(--holdwin-pulse, 700ms) ease-in-out 2; }
@keyframes holdwin-drop {
  0% { transform: translateY(-130%) scale(.7); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes holdwin-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 8px rgba(255, 210, 80, .95)); }
}
.reels.holdwin-grid .cell-empty {
  background: linear-gradient(180deg, rgba(14, 16, 22, .92), rgba(3, 4, 7, .95));
  border: 1px solid rgba(255, 255, 255, .10);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .9);
}
body[data-suite-game="holdwin"] .cell {
  background: rgba(5, 7, 11, .80);
  border: 1px solid rgba(255, 255, 255, .10);
}
body[data-suite-game="holdwin"] .cell:not(.cell-coin):not(.cell-empty) img {
  filter: drop-shadow(2px 0 0 #fff) drop-shadow(-2px 0 0 #fff) drop-shadow(0 2px 0 #fff) drop-shadow(0 -2px 0 #fff) drop-shadow(0 0 6px rgba(0, 0, 0, .9));
}
.reels.holdwin-grid.is-miss .cell-empty { animation: holdwin-miss var(--holdwin-miss, 320ms) ease; }
@keyframes holdwin-miss {
  0%, 100% { filter: none; }
  50% { filter: brightness(1.55); }
}
.holdwin-counter { display: flex; justify-content: center; margin: 8px auto 0; min-height: 0; }
.holdwin-counter[hidden] { display: none !important; }
.holdwin-counter-art { width: 92px; height: 92px; object-fit: contain; filter: drop-shadow(0 8px 12px rgba(0,0,0,.5)); }
.holdwin-counter-art[hidden],
.holdwin-counter-dial[hidden] { display: none !important; }
.holdwin-counter-dial {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 42%, #2c2c2c, #070707 72%);
  border: 4px solid #d0d4da;
  box-shadow: 0 8px 16px rgba(0,0,0,.45), inset 0 0 0 3px #141414;
  display: grid;
  grid-template-rows: auto auto auto;
  align-content: center;
  justify-items: center;
  color: white;
  text-align: center;
}
.holdwin-counter-dial b { font-size: 34px; line-height: .9; font-variant-numeric: tabular-nums; }
.holdwin-counter-dial small { letter-spacing: .12em; font-size: .62rem; font-weight: 800; }
.holdwin-pips { display: flex; gap: 4px; margin-bottom: 2px; }
.holdwin-pips i { width: 14px; height: 8px; border-radius: 2px; background: #3a1010; display: block; }
.holdwin-pips i[hidden] { display: none; }
.holdwin-pips i.is-on { background: #ff2a2a; box-shadow: 0 0 8px #ff2a2a; }
.holdwin-counter.is-reset .holdwin-counter-dial,
.holdwin-counter.is-reset .holdwin-counter-art { animation: holdwin-counter-pop .24s ease; }
.holdwin-counter.is-down .holdwin-counter-dial { animation: holdwin-counter-down .24s ease; }
@keyframes holdwin-counter-pop { 50% { transform: scale(1.08); } }
@keyframes holdwin-counter-down { 50% { transform: translateY(3px); } }
.holdwin-tally {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  z-index: 4;
  pointer-events: none;
  text-align: center;
  color: white;
  text-shadow: 0 2px 0 #000, 0 0 12px rgba(0,0,0,.85);
}
.holdwin-tally[hidden] { display: none !important; }
.holdwin-tally small { display: block; letter-spacing: .14em; font-size: .72rem; color: #f0d78c; }
.holdwin-tally b { font-size: clamp(28px, 6vw, 56px); font-variant-numeric: tabular-nums; }
.holdwin-fly {
  position: absolute;
  z-index: 5;
  margin: 0;
  pointer-events: none;
  font-weight: 900;
  color: #fff6d0;
  text-shadow: 0 2px 0 #000, 0 0 10px rgba(0,0,0,.8);
  font-size: clamp(16px, 3vw, 28px);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transition-property: transform, opacity;
  transition-timing-function: cubic-bezier(.18, .8, .22, 1);
}
.holdwin-wash {
  position: absolute;
  inset: 0;
  background: #05060a;
  opacity: 0;
  pointer-events: none;
  z-index: 6;
  transition: opacity linear;
}
.holdwin-wash.is-on { opacity: 1; }
.holdwin-modal {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(4, 6, 12, .72);
}
.holdwin-modal[hidden] { display: none !important; }
.holdwin-modal-card {
  position: relative;
  z-index: 4;
  width: min(440px, 100%);
  padding: 22px 22px 18px;
  border-radius: 18px;
  text-align: center;
  color: #f7f4ea;
  background:
    linear-gradient(180deg, rgba(36, 24, 10, .96), rgba(12, 10, 8, .96));
  border: 1px solid rgba(240, 215, 140, .7);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  animation: holdwin-modal-in var(--holdwin-modal-in, 280ms) ease both;
}
.holdwin-modal-art { width: 96px; height: 96px; object-fit: contain; margin: 0 auto 8px; }
.holdwin-modal-art[hidden] { display: none !important; }
.holdwin-kicker { margin: 0; letter-spacing: .18em; font-size: .72rem; color: #f0d78c; }
.holdwin-modal h2 { margin: 8px 0 0; font-size: clamp(1.15rem, 3vw, 1.55rem); line-height: 1.2; }
.holdwin-modal-body { margin: 10px 0 0; font-size: clamp(1.35rem, 4vw, 2rem); font-weight: 850; letter-spacing: .04em; }
.holdwin-modal-detail { margin: 8px 0 0; color: #d9d0bc; }
.holdwin-continue { width: auto; min-width: 180px; margin: 16px auto 0; }
@keyframes holdwin-modal-in {
  0% { transform: translateY(10px) scale(.96); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cell-coin.is-falling .coin-stack,
  .cell-coin.is-trigger .coin-stack,
  .holdwin-modal-card,
  .holdwin-counter.is-reset .holdwin-counter-dial,
  .holdwin-counter.is-down .holdwin-counter-dial,
  .holdwin-fly { animation: none !important; transition: none !important; }
  .holdwin-fireworks,
  .holdwin-beam,
  .holdwin-veil { animation: none !important; }
}
.holdwin-settings {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
  justify-content: center;
  margin: 8px auto 0;
  color: #d9d0bc;
  font-size: .85rem;
}
.holdwin-settings label { display: flex; align-items: center; gap: 6px; }
.holdwin-frame-halo,
.holdwin-veil,
.holdwin-beam,
.holdwin-fireworks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.holdwin-frame-halo[hidden],
.holdwin-veil[hidden],
.holdwin-beam[hidden],
.holdwin-fireworks[hidden],
.holdwin-lamps[hidden] { display: none !important; }
.holdwin-frame-halo {
  z-index: 1;
  box-shadow: inset 0 0 46px rgba(198, 236, 255, .95);
  opacity: 0;
}
.holdwin-modal.is-level-1 .holdwin-frame-halo.is-on { opacity: .45; }
.holdwin-modal.is-level-2 .holdwin-frame-halo.is-on { opacity: .6; }
.holdwin-veil { z-index: 2; background: rgba(214, 242, 255, .3); opacity: 0; }
.holdwin-veil.is-on { opacity: .3; }
.holdwin-beam {
  z-index: 2;
  opacity: 0;
  background:
    linear-gradient(118deg, transparent 8%, rgba(232, 248, 255, .55) 42%, transparent 62%),
    linear-gradient(62deg, transparent 38%, rgba(232, 248, 255, .4) 58%, transparent 86%);
}
.holdwin-beam.is-on { opacity: 1; }
.holdwin-fireworks { z-index: 3; }
.holdwin-fireworks i {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, #f7fbff, rgba(150, 220, 255, .2) 70%, transparent);
  box-shadow:
    0 -18px 0 #dff6ff, 14px -10px 0 #ffe9a8, -14px -8px 0 #c9f1ff,
    10px 12px 0 #fff, -12px 10px 0 #d7f4ff;
}
.holdwin-fireworks i:nth-child(1) { top: 12%; left: 14%; }
.holdwin-fireworks i:nth-child(2) { top: 16%; right: 12%; }
.holdwin-fireworks i:nth-child(3) { bottom: 18%; left: 20%; }
.holdwin-fireworks i:nth-child(4) { bottom: 14%; right: 16%; }
.holdwin-fireworks.is-burst i { animation: holdwin-firework 700ms ease-out; }
@keyframes holdwin-firework {
  0% { transform: scale(.4); opacity: .9; }
  100% { transform: scale(2.4); opacity: 0; }
}
.holdwin-lamps {
  display: flex;
  justify-content: space-between;
  margin: 14px 8px 0;
  pointer-events: none;
}
.holdwin-lamp {
  width: 86px;
  height: 28px;
  border-radius: 50%;
  opacity: .28;
  background: radial-gradient(circle at 50% 50%, #fff 0%, #d9f4ff 38%, rgba(180, 220, 255, .15) 72%, transparent 78%);
  box-shadow: 0 0 10px rgba(190, 230, 255, .25);
}
.holdwin-lamp.is-on {
  opacity: 1;
  box-shadow: 0 0 16px 4px rgba(220, 246, 255, .95), 0 0 36px 8px rgba(170, 220, 255, .55);
}

/* Symphony Legends: Golden Baton: palcoscenico, numeri di linea, Wild ×2, Chiavi di violino e giri gratis. */
body[data-suite-game="symphony"] { background: #120b06; }
body[data-suite-game="symphony"] .stage { background-color: #1c1008; }
body[data-suite-game="symphony"] .slot-stage-wrapper { position: relative; }
body[data-suite-game="symphony"] .reels.framed { gap: 3px; }
body[data-suite-game="symphony"] .reels.framed > .reel { gap: 3px; }
body[data-suite-game="symphony"] .cell { position: relative; background: rgba(24, 12, 4, .58); border-radius: 8px; }
body[data-suite-game="symphony"] .cell img { width: 90%; height: 90%; }
body[data-suite-game="symphony"] .reels.sym-spinning > .reel:not(.is-stopped) img {
  filter: blur(3px) brightness(1.05);
  animation: sym-roll 140ms linear infinite;
}
body[data-suite-game="symphony"] .reel.is-landing { animation: sym-land 180ms ease-out; }
@keyframes sym-roll {
  0% { transform: translateY(-14%); }
  100% { transform: translateY(14%); }
}
@keyframes sym-land {
  0% { transform: translateY(-4%); }
  60% { transform: translateY(2%); }
  100% { transform: none; }
}
body[data-suite-game="symphony"] .cell.sym-paid { box-shadow: inset 0 0 0 2px rgba(255, 214, 120, .95), 0 0 14px rgba(255, 190, 70, .55); z-index: 2; }
body[data-suite-game="symphony"] .cell.sym-scatter { z-index: 3; animation: sym-scatter 900ms ease-in-out infinite alternate; }
@keyframes sym-scatter {
  0% { box-shadow: inset 0 0 0 2px rgba(255, 226, 140, .9), 0 0 10px rgba(255, 200, 80, .5); }
  100% { box-shadow: inset 0 0 0 3px #fff3c4, 0 0 28px rgba(255, 205, 90, .95); }
}
.sym-x2 {
  position: absolute;
  top: 6%;
  right: 6%;
  z-index: 4;
  padding: 2px 8px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe38a, #c88a12);
  color: #2a1804;
  font-weight: 900;
  font-size: clamp(.7rem, 1.6vw, 1rem);
  box-shadow: 0 0 0 2px rgba(255, 240, 190, .9), 0 0 14px rgba(255, 200, 70, .9);
  animation: sym-halo 300ms ease-out 3;
}
@keyframes sym-halo {
  0% { transform: scale(.7); box-shadow: 0 0 0 0 rgba(255, 220, 120, .9); }
  70% { transform: scale(1.15); box-shadow: 0 0 0 10px rgba(255, 220, 120, 0); }
  100% { transform: scale(1); box-shadow: 0 0 0 2px rgba(255, 240, 190, .9), 0 0 14px rgba(255, 200, 70, .9); }
}
.sym-overlay { position: absolute; z-index: 5; pointer-events: none; --sym-unit: 1px; }
.sym-overlay > * { pointer-events: none; }
.sym-line-nums, .sym-lines, .sym-notes { position: absolute; inset: 0; width: 100%; height: 100%; }
.sym-line-num {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: calc(var(--sym-unit) * 30);
  height: calc(var(--sym-unit) * 30);
  padding: 0 calc(var(--sym-unit) * 4);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(40, 20, 6, .88);
  border: 1px solid rgba(240, 200, 110, .7);
  color: #f3d58c;
  font-weight: 800;
  font-size: calc(var(--sym-unit) * 17);
  line-height: 1;
}
.sym-line-num.is-hit { background: linear-gradient(180deg, #ffe08a, #c4860f); color: #2a1804; box-shadow: 0 0 calc(var(--sym-unit) * 14) rgba(255, 200, 80, .9); }
.sym-lines { overflow: visible; }
.sym-line { fill: none; stroke: #fff0c8; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .9; filter: drop-shadow(0 0 4px rgba(255, 220, 150, .9)); }
.sym-line.is-wild { stroke: #ffc531; stroke-width: 8; filter: drop-shadow(0 0 8px #ffb300); }
.sym-line-tag circle { fill: #2a1606; stroke: #fff0c8; stroke-width: 3; }
.sym-line-tag.is-wild circle { fill: #ffc531; stroke: #fff6d8; }
.sym-line-tag text { fill: #fff0c8; font: 800 20px "Segoe UI", sans-serif; text-anchor: middle; }
.sym-line-tag.is-wild text { fill: #2a1804; }
.sym-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  padding: calc(var(--sym-unit) * 18) calc(var(--sym-unit) * 40);
  border-radius: calc(var(--sym-unit) * 18);
  background: linear-gradient(180deg, rgba(60, 30, 6, .94), rgba(24, 10, 2, .94));
  border: 2px solid #f2c75a;
  color: #ffe7a3;
  font-weight: 900;
  font-size: calc(var(--sym-unit) * 54);
  letter-spacing: .06em;
  white-space: nowrap;
  box-shadow: 0 0 calc(var(--sym-unit) * 40) rgba(255, 190, 60, .75);
}
.sym-banner[hidden], .sym-hud[hidden], .sym-big[hidden] { display: none; }
.sym-banner.is-on { animation: sym-banner 420ms ease-out both; }
@keyframes sym-banner {
  0% { transform: translate(-50%, -50%) scale(.6); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.sym-hud {
  position: absolute;
  top: calc(var(--sym-unit) * 104);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: calc(var(--sym-unit) * 14);
}
.sym-counter {
  padding: calc(var(--sym-unit) * 6) calc(var(--sym-unit) * 16);
  border-radius: 999px;
  background: rgba(30, 14, 4, .9);
  border: 1px solid rgba(240, 200, 110, .8);
  color: #ffe7a3;
  font-weight: 800;
  font-size: calc(var(--sym-unit) * 22);
  white-space: nowrap;
}
.sym-mult {
  min-width: calc(var(--sym-unit) * 70);
  padding: calc(var(--sym-unit) * 4) calc(var(--sym-unit) * 14);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe08a, #c4860f);
  color: #2a1804;
  text-align: center;
  font-weight: 900;
  font-size: calc(var(--sym-unit) * 28);
}
.sym-mult.is-combo { background: linear-gradient(180deg, #fff3c4, #ffb300); box-shadow: 0 0 calc(var(--sym-unit) * 22) rgba(255, 180, 0, .95); }
.sym-mult.is-pop { animation: sym-halo 300ms ease-out; }
.sym-wave {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 10%;
  aspect-ratio: 1;
  z-index: 6;
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(.2);
  border: calc(var(--sym-unit) * 10) solid rgba(255, 214, 120, .85);
  box-shadow: 0 0 calc(var(--sym-unit) * 40) rgba(255, 200, 80, .9), inset 0 0 calc(var(--sym-unit) * 30) rgba(255, 220, 140, .7);
  animation: sym-wave 820ms ease-out forwards;
}
@keyframes sym-wave {
  0% { transform: translate(-50%, -50%) scale(.2); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(11); opacity: 0; }
}
.sym-notes { z-index: 7; }
.sym-big {
  position: absolute;
  left: 50%;
  bottom: calc(var(--sym-unit) * 130);
  transform: translateX(-50%);
  z-index: 8;
  color: #ffe7a3;
  font-weight: 900;
  font-size: calc(var(--sym-unit) * 72);
  text-shadow: 0 0 calc(var(--sym-unit) * 18) rgba(255, 180, 40, .95), 0 2px 0 #4a2a06;
  white-space: nowrap;
}
#win.sym-win-glow { color: #ffe08a; text-shadow: 0 0 10px rgba(255, 190, 60, .9); }
html:not(.embed) body[data-suite-game="symphony"] .slot-stage-wrapper { height: auto; aspect-ratio: 1280 / 720; max-height: min(70vh, 640px); }
body[data-suite-game="symphony"] .meter { background: rgba(26, 12, 4, .82); }
body[data-suite-game="symphony"] .bet-row { display: flex; align-items: center; gap: 6px; }
body[data-suite-game="symphony"] .bet-row input { min-height: 36px; text-align: center; }
body[data-suite-game="symphony"] .step {
  flex: 0 0 auto;
  width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(240, 200, 110, .2);
  color: #ffe7a3;
  font-size: 1.3rem;
  line-height: 1;
}
body[data-suite-game="symphony"] .spin-row { display: flex; gap: 10px; }
body[data-suite-game="symphony"] #btnSpin { background: linear-gradient(180deg, #ffd45a, #b87a0e); color: #2a1804; }
body[data-suite-game="symphony"] #btnSpin:disabled { opacity: .55; cursor: progress; }
.sym-mini-lines { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.sym-mini { margin: 0; display: flex; align-items: center; gap: 6px; }
.sym-mini figcaption { width: 1.6em; text-align: right; font-weight: 800; color: #ffe7a3; }
.sym-mini div { display: grid; grid-template-columns: repeat(5, 10px); grid-auto-rows: 10px; gap: 2px; }
.sym-mini i { display: block; border-radius: 2px; background: rgba(240, 200, 110, .16); }
.sym-mini i.on { background: #ffc531; }
@media (max-width: 767px) {
  .sym-mini-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  body[data-suite-game="symphony"] .reels.sym-spinning > .reel:not(.is-stopped) img,
  body[data-suite-game="symphony"] .reel.is-landing,
  body[data-suite-game="symphony"] .cell.sym-scatter,
  .sym-x2,
  .sym-mult.is-pop,
  .sym-banner.is-on { animation: none !important; }
  body[data-suite-game="symphony"] .reels.sym-spinning > .reel:not(.is-stopped) img { filter: none; }
  body[data-suite-game="symphony"] .cell.sym-scatter { box-shadow: inset 0 0 0 3px #fff3c4, 0 0 18px rgba(255, 205, 90, .9); }
  .sym-wave, .sym-notes { display: none !important; }
}
body[data-suite-game="yinyang"] { background: #0b0d14; }
body[data-suite-game="yinyang"] .stage { background-color: #10131c; }
body[data-suite-game="yinyang"] .slot-stage-wrapper { position: relative; }
html:not(.embed) body[data-suite-game="yinyang"] .slot-stage-wrapper { height: auto; aspect-ratio: 1280 / 720; max-height: min(70vh, 640px); }
.reels.yy-board {
  --yy-unit: 1px;
  position: relative;
  display: block;
  aspect-ratio: 1280 / 720;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  gap: 0;
}
.yy-grid {
  position: absolute;
  z-index: 1;
  display: flex;
  gap: calc(var(--yy-unit) * 3);
  padding: calc(var(--yy-unit) * 3);
  background: rgba(8, 10, 18, .55);
}
.yy-grid.is-yang { background: radial-gradient(circle at 50% 40%, rgba(70, 36, 6, .55), rgba(20, 10, 2, .7)); }
.yy-grid.is-yin { background: radial-gradient(circle at 50% 40%, rgba(10, 40, 70, .55), rgba(4, 10, 22, .72)); }
.yy-grid > .reel {
  position: relative;
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  height: 100%;
  gap: calc(var(--yy-unit) * 3);
  border-radius: calc(var(--yy-unit) * 6);
}
.yy-grid .cell {
  position: relative;
  flex: 1 1 0;
  width: 100%;
  height: auto;
  max-width: none;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: calc(var(--yy-unit) * 6);
  background: rgba(6, 8, 14, .38);
}
.yy-grid .cell img { width: 92%; height: 92%; }
.yy-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.yy-label {
  position: absolute;
  z-index: 3;
  transform: translate(-50%, -50%);
  padding: 0 calc(var(--yy-unit) * 12);
  border-radius: 999px;
  font-weight: 900;
  font-size: calc(var(--yy-unit) * 18);
  letter-spacing: .18em;
  text-transform: uppercase;
  pointer-events: none;
}
.yy-label.is-yang { color: #ffd56a; background: rgba(40, 18, 2, .78); text-shadow: 0 0 calc(var(--yy-unit) * 8) rgba(255, 180, 40, .9); }
.yy-label.is-yin { color: #bff3ff; background: rgba(4, 18, 34, .78); text-shadow: 0 0 calc(var(--yy-unit) * 8) rgba(80, 210, 255, .9); }
.reels.yy-spinning .yy-grid > .reel:not(.is-stopped) img { animation: yy-roll 140ms linear infinite; }
.reels.yy-spinning .yy-grid.is-yang > .reel:not(.is-stopped) img { filter: blur(3px) drop-shadow(0 0 6px rgba(255, 190, 60, .95)); }
.reels.yy-spinning .yy-grid.is-yin > .reel:not(.is-stopped) img { filter: blur(3px) drop-shadow(0 0 6px rgba(80, 220, 255, .95)); }
.yy-grid > .reel.is-landing { animation: yy-land 180ms ease-out; }
@keyframes yy-roll {
  0% { transform: translateY(-16%); }
  100% { transform: translateY(16%); }
}
@keyframes yy-land {
  0% { transform: translateY(-4%); }
  60% { transform: translateY(2%); }
  100% { transform: none; }
}
.yy-grid .cell.yy-paid { z-index: 2; }
.yy-grid.is-yang .cell.yy-paid { box-shadow: inset 0 0 0 2px rgba(255, 214, 110, .95), 0 0 14px rgba(255, 190, 60, .6); }
.yy-grid.is-yin .cell.yy-paid { box-shadow: inset 0 0 0 2px rgba(230, 240, 250, .95), 0 0 14px rgba(200, 225, 255, .6); }
.yy-grid .cell.yy-scatter { z-index: 3; animation: yy-scatter 900ms ease-in-out infinite alternate; }
@keyframes yy-scatter {
  0% { box-shadow: inset 0 0 0 2px rgba(255, 240, 200, .9), 0 0 10px rgba(255, 220, 140, .5); }
  100% { box-shadow: inset 0 0 0 3px #fffbe8, 0 0 28px rgba(160, 230, 255, .95); }
}
.yy-grid .cell.yy-stamp { animation: yy-stamp 360ms ease-out; }
@keyframes yy-stamp {
  0% { transform: scale(.7); filter: brightness(2.2); }
  100% { transform: none; filter: none; }
}
.yy-grid > .reel.yy-wildcol { box-shadow: 0 0 0 2px rgba(255, 236, 170, .75), 0 0 16px rgba(255, 220, 140, .45); }
.yy-grid > .reel.yy-super { animation: yy-twin 600ms ease-in-out 3; box-shadow: 0 0 0 3px #ffe38a, 0 0 24px rgba(255, 200, 70, .95); }
.yy-grid.is-yin > .reel.yy-super { box-shadow: 0 0 0 3px #bff3ff, 0 0 24px rgba(80, 220, 255, .95); }
@keyframes yy-twin {
  0%, 100% { filter: none; }
  50% { filter: brightness(1.45); }
}
.yy-grid > .reel.yy-sticky { box-shadow: 0 0 0 3px #59e4ff, 0 0 18px rgba(60, 210, 255, .85); }
.yy-badge.is-super {
  position: absolute;
  bottom: calc(var(--yy-unit) * -16);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  padding: calc(var(--yy-unit) * 2) calc(var(--yy-unit) * 10);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe38a, #c88a12);
  color: #2a1804;
  font-weight: 900;
  font-size: calc(var(--yy-unit) * 18);
  box-shadow: 0 0 0 2px rgba(255, 240, 190, .9), 0 0 14px rgba(255, 200, 70, .9);
  animation: yy-pop 300ms ease-out;
}
.yy-lock {
  position: absolute;
  top: calc(var(--yy-unit) * 6);
  right: calc(var(--yy-unit) * 6);
  z-index: 5;
  width: calc(var(--yy-unit) * 16);
  height: calc(var(--yy-unit) * 12);
  margin-top: calc(var(--yy-unit) * 8);
  border-radius: calc(var(--yy-unit) * 2);
  background: #59e4ff;
  box-shadow: 0 0 calc(var(--yy-unit) * 8) rgba(60, 210, 255, .9);
}
.yy-lock::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 100%;
  width: calc(var(--yy-unit) * 10);
  height: calc(var(--yy-unit) * 8);
  transform: translateX(-50%);
  border: calc(var(--yy-unit) * 2.5) solid #59e4ff;
  border-bottom: 0;
  border-radius: calc(var(--yy-unit) * 6) calc(var(--yy-unit) * 6) 0 0;
}
@keyframes yy-pop {
  0% { transform: translateX(-50%) scale(.6); }
  70% { transform: translateX(-50%) scale(1.15); }
  100% { transform: translateX(-50%) scale(1); }
}
.yy-overlay { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.yy-overlay > * { pointer-events: none; }
.yy-lines, .yy-line-nums, .yy-sparks { position: absolute; inset: 0; width: 100%; height: 100%; }
.yy-lines { overflow: visible; }
.yy-line-num {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: calc(var(--yy-unit) * 22);
  height: calc(var(--yy-unit) * 17);
  padding: 0 calc(var(--yy-unit) * 3);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: calc(var(--yy-unit) * 12);
  line-height: 1;
}
.yy-line-num.is-yang { background: rgba(40, 18, 2, .9); border: 1px solid rgba(255, 200, 90, .7); color: #ffd56a; }
.yy-line-num.is-yin { background: rgba(4, 16, 30, .9); border: 1px solid rgba(190, 220, 240, .7); color: #e2edf6; }
.yy-line-num.is-yang.is-hit { background: linear-gradient(180deg, #ffe08a, #c4860f); color: #2a1804; box-shadow: 0 0 calc(var(--yy-unit) * 12) rgba(255, 200, 80, .9); }
.yy-line-num.is-yin.is-hit { background: linear-gradient(180deg, #ffffff, #9fb4c6); color: #0a1522; box-shadow: 0 0 calc(var(--yy-unit) * 12) rgba(200, 230, 255, .9); }
.yy-line { fill: none; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .92; }
.yy-line.is-yang { stroke: #ffc531; filter: drop-shadow(0 0 4px rgba(255, 190, 50, .95)); }
.yy-line.is-yin { stroke: #e6eef5; filter: drop-shadow(0 0 4px rgba(200, 230, 255, .95)); }
.yy-line.is-mult { stroke-width: 8; }
.yy-line-tag circle { stroke-width: 3; }
.yy-line-tag.is-yang circle { fill: #3a1c04; stroke: #ffc531; }
.yy-line-tag.is-yin circle { fill: #0a1a2c; stroke: #e6eef5; }
.yy-line-tag text { font: 800 16px "Segoe UI", sans-serif; text-anchor: middle; }
.yy-line-tag.is-yang text { fill: #ffd56a; }
.yy-line-tag.is-yin text { fill: #f2f7fb; }
.yy-line-mult rect { fill: #59e4ff; stroke: #e9fbff; stroke-width: 2; }
.yy-line-mult text { fill: #04202c; font: 900 16px "Segoe UI", sans-serif; text-anchor: middle; }
.yy-beam {
  fill: none;
  stroke-width: 10;
  stroke-linecap: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: yy-beam 400ms ease-in forwards;
}
.yy-beam.from-yang { stroke: #ffd56a; filter: drop-shadow(0 0 10px rgba(255, 190, 50, 1)); }
.yy-beam.from-yin { stroke: #8eeaff; filter: drop-shadow(0 0 10px rgba(80, 220, 255, 1)); }
@keyframes yy-beam {
  to { stroke-dashoffset: 0; }
}
.yy-banner {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 7;
  padding: calc(var(--yy-unit) * 18) calc(var(--yy-unit) * 40);
  border-radius: calc(var(--yy-unit) * 18);
  background: linear-gradient(90deg, rgba(60, 28, 4, .95), rgba(6, 22, 40, .95));
  border: 2px solid #f2d27a;
  color: #fff6dc;
  font-weight: 900;
  font-size: calc(var(--yy-unit) * 54);
  letter-spacing: .06em;
  white-space: nowrap;
  box-shadow: calc(var(--yy-unit) * -16) 0 calc(var(--yy-unit) * 36) rgba(255, 180, 40, .6), calc(var(--yy-unit) * 16) 0 calc(var(--yy-unit) * 36) rgba(60, 200, 255, .6);
}
.yy-banner[hidden], .yy-hud[hidden], .yy-big[hidden] { display: none; }
.yy-banner.is-on { animation: yy-banner 420ms ease-out both; }
@keyframes yy-banner {
  0% { transform: translate(-50%, -50%) scale(.6); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.yy-hud {
  position: absolute;
  top: calc(var(--yy-unit) * 600);
  left: 50%;
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: calc(var(--yy-unit) * 14);
}
.yy-counter {
  padding: calc(var(--yy-unit) * 6) calc(var(--yy-unit) * 16);
  border-radius: 999px;
  background: rgba(8, 12, 22, .9);
  border: 1px solid rgba(140, 220, 255, .8);
  color: #e6f8ff;
  font-weight: 800;
  font-size: calc(var(--yy-unit) * 22);
  white-space: nowrap;
}
.yy-mult {
  min-width: calc(var(--yy-unit) * 70);
  padding: calc(var(--yy-unit) * 4) calc(var(--yy-unit) * 14);
  border-radius: 999px;
  background: linear-gradient(180deg, #ffe08a, #c4860f);
  color: #2a1804;
  text-align: center;
  font-weight: 900;
  font-size: calc(var(--yy-unit) * 28);
}
.yy-mult[data-value="3"] { background: linear-gradient(180deg, #c8f6ff, #2fa9d4); color: #03202c; }
.yy-mult[data-value="5"] { background: linear-gradient(90deg, #ffd56a, #ffffff, #7fe7ff); color: #1a1406; box-shadow: 0 0 calc(var(--yy-unit) * 22) rgba(255, 230, 160, .95); }
.yy-mult.is-pop { animation: yy-mult 300ms ease-out; }
@keyframes yy-mult {
  0% { transform: scale(.7); }
  70% { transform: scale(1.15); }
  100% { transform: scale(1); }
}
.yy-sparks { z-index: 7; }
.yy-big {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 8;
  color: #fff6dc;
  font-weight: 900;
  font-size: calc(var(--yy-unit) * 76);
  text-shadow: calc(var(--yy-unit) * -4) 0 calc(var(--yy-unit) * 18) rgba(255, 180, 40, .95), calc(var(--yy-unit) * 4) 0 calc(var(--yy-unit) * 18) rgba(60, 200, 255, .95), 0 2px 0 #1a1406;
  white-space: nowrap;
}
#win.yy-win-glow { color: #fff1c0; text-shadow: 0 0 10px rgba(255, 190, 60, .9), 0 0 14px rgba(80, 220, 255, .7); }
body[data-suite-game="yinyang"] .meter { background: rgba(10, 12, 20, .84); }
body[data-suite-game="yinyang"] .bet-row { display: flex; align-items: center; gap: 6px; }
body[data-suite-game="yinyang"] .bet-row input { min-height: 36px; text-align: center; }
body[data-suite-game="yinyang"] .step {
  flex: 0 0 auto;
  width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: rgba(180, 220, 240, .18);
  color: #f2f7fb;
  font-size: 1.3rem;
  line-height: 1;
}
body[data-suite-game="yinyang"] .spin-row { display: flex; gap: 10px; }
body[data-suite-game="yinyang"] #btnSpin { background: linear-gradient(90deg, #ffd45a, #f4f4f4 50%, #6fd8f6); color: #141414; }
body[data-suite-game="yinyang"] #btnSpin:disabled { opacity: .55; cursor: progress; }
.yy-mini-lines { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.yy-mini { margin: 0; display: flex; align-items: center; gap: 6px; }
.yy-mini figcaption { width: 1.6em; text-align: right; font-weight: 800; color: #ffe7a3; }
.yy-mini div { display: grid; grid-template-columns: repeat(5, 10px); grid-auto-rows: 10px; gap: 2px; }
.yy-mini i { display: block; border-radius: 2px; background: rgba(200, 220, 240, .16); }
.yy-mini i.on { background: linear-gradient(90deg, #ffc531, #7fe7ff); }
@media (max-width: 767px) {
  .yy-mini-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .reels.yy-spinning .yy-grid > .reel:not(.is-stopped) img,
  .yy-grid > .reel.is-landing,
  .yy-grid > .reel.yy-super,
  .yy-grid .cell.yy-scatter,
  .yy-grid .cell.yy-stamp,
  .yy-badge.is-super,
  .yy-mult.is-pop,
  .yy-banner.is-on { animation: none !important; }
  .reels.yy-spinning .yy-grid > .reel:not(.is-stopped) img { filter: none; }
  .yy-grid .cell.yy-scatter { box-shadow: inset 0 0 0 3px #fffbe8, 0 0 18px rgba(160, 230, 255, .9); }
  .yy-beam, .yy-sparks { display: none !important; }
}

/* Tropical Bloom: Diamond Dew. Bright lagoon by day, sunset lagoon in the bonus. */
body[data-suite-game="diamondbloom"] { background: #d9f6f1; color: #0b4a52; }
body[data-suite-game="diamondbloom"] header .tag { color: #0b7a82; }
body[data-suite-game="diamondbloom"] nav.suite a { color: #0b5560; background: rgba(255, 255, 255, .72); border-color: rgba(11, 122, 130, .45); }
body[data-suite-game="diamondbloom"] nav.suite a[aria-current="page"] { background: #ff6fb5; color: #ffffff; border-color: #ff6fb5; }
body[data-suite-game="diamondbloom"] h1 { color: #0b4a52; }
body[data-suite-game="diamondbloom"] .stage { background-color: #8fe3da; }
body[data-suite-game="diamondbloom"] .slot-stage-wrapper { position: relative; }
html:not(.embed) body[data-suite-game="diamondbloom"] .slot-stage-wrapper { height: auto; aspect-ratio: 1280 / 880; max-height: min(78vh, 760px); }
.reels.db-board {
  --db-unit: 1px;
  position: relative;
  display: block;
  aspect-ratio: 1280 / 880;
  max-width: 100%;
  max-height: 100%;
  padding: 0;
  gap: 0;
}
.db-grid {
  position: absolute;
  z-index: 1;
  display: flex;
  gap: calc(var(--db-unit) * 3);
  padding: calc(var(--db-unit) * 2);
  background: rgba(255, 255, 255, .26);
}
.db-grid > .reel {
  position: relative;
  flex: 1 1 0;
  width: auto;
  max-width: none;
  min-width: 0;
  height: 100%;
  gap: calc(var(--db-unit) * 3);
  border-radius: calc(var(--db-unit) * 8);
}
.db-grid .cell {
  position: relative;
  flex: 1 1 0;
  width: 100%;
  height: auto;
  max-width: none;
  min-height: 0;
  aspect-ratio: auto;
  border-radius: calc(var(--db-unit) * 8);
  background: rgba(255, 255, 255, .42);
  box-shadow: inset 0 0 0 1px rgba(64, 224, 208, .45);
}
.db-grid .cell img { width: 92%; height: 92%; }
.db-frame {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 2;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  pointer-events: none;
}
.db-panel {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 2;
  background-size: 100% 100%;
  background-repeat: no-repeat;
  opacity: 0;
  visibility: hidden;
  transition: opacity 240ms ease;
  pointer-events: none;
}
.db-panel.is-visible { opacity: 1; visibility: visible; }
.db-slot {
  position: absolute;
  z-index: 2;
  opacity: 0;
  transform: scale(.4);
  object-fit: contain;
}
.db-slot.is-on { opacity: 1; transform: none; animation: db-slot 420ms ease-out; }
@keyframes db-slot {
  0% { transform: scale(.4); filter: brightness(2.4); }
  70% { transform: scale(1.18); }
  100% { transform: none; filter: none; }
}
.db-tier {
  position: absolute;
  z-index: 1;
  border-radius: calc(var(--db-unit) * 18);
  box-shadow: none;
}
.db-tier.is-wild {
  box-shadow: 0 0 0 calc(var(--db-unit) * 3) #ff6fb5, 0 0 calc(var(--db-unit) * 22) rgba(255, 111, 181, .9), inset 0 0 calc(var(--db-unit) * 16) rgba(255, 255, 255, .8);
  background: rgba(255, 255, 255, .22);
}
.reels.db-spinning .db-grid > .reel:not(.is-stopped) img {
  animation: db-roll 140ms linear infinite;
  filter: blur(3px) drop-shadow(0 calc(var(--db-unit) * 6) calc(var(--db-unit) * 5) rgba(64, 224, 208, .8));
}
.db-grid > .reel.is-landing { animation: db-land 180ms ease-out; }
@keyframes db-roll {
  0% { transform: translateY(-16%); }
  100% { transform: translateY(16%); }
}
@keyframes db-land {
  0% { transform: translateY(-4%); }
  60% { transform: translateY(2%); }
  100% { transform: none; }
}
.db-grid .cell.db-wild { z-index: 2; box-shadow: inset 0 0 0 2px rgba(64, 224, 208, .95), 0 0 calc(var(--db-unit) * 18) rgba(64, 224, 208, .95); background: rgba(190, 255, 248, .6); }
.db-grid .cell.db-flower-wild { z-index: 2; box-shadow: inset 0 0 0 2px rgba(255, 111, 181, .95), 0 0 calc(var(--db-unit) * 16) rgba(255, 111, 181, .9); background: rgba(255, 226, 242, .65); }
.db-grid .cell.db-flower-new { animation: db-bloom 700ms ease-out 2; }
@keyframes db-bloom {
  0%, 100% { transform: none; filter: none; }
  50% { transform: scale(1.12); filter: brightness(1.4); }
}
.db-grid .cell.db-scatter { z-index: 3; animation: db-scatter 900ms ease-in-out infinite alternate; }
@keyframes db-scatter {
  0% { box-shadow: inset 0 0 0 2px rgba(255, 226, 122, .9), 0 0 calc(var(--db-unit) * 10) rgba(255, 226, 122, .6); }
  100% { box-shadow: inset 0 0 0 3px #fff6c4, 0 0 calc(var(--db-unit) * 28) rgba(255, 190, 40, 1); }
}
.db-grid .cell.db-diamond { z-index: 3; box-shadow: inset 0 0 0 2px #ffffff, 0 0 calc(var(--db-unit) * 22) rgba(64, 224, 208, 1); }
.db-grid .cell.db-paid { z-index: 2; box-shadow: inset 0 0 0 2px rgba(255, 190, 40, .95), 0 0 calc(var(--db-unit) * 14) rgba(255, 190, 40, .7); }
.db-grid .cell.db-wild-cell { box-shadow: inset 0 0 0 3px #ff6fb5, 0 0 calc(var(--db-unit) * 14) rgba(255, 111, 181, .85); }
.db-overlay { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.db-overlay > * { pointer-events: none; }
.db-lines, .db-line-nums, .db-petals { position: absolute; inset: 0; width: 100%; height: 100%; }
.db-lines { overflow: visible; }
.db-line-num {
  position: absolute;
  transform: translate(-50%, -50%);
  min-width: calc(var(--db-unit) * 24);
  height: calc(var(--db-unit) * 21);
  padding: 0 calc(var(--db-unit) * 3);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(11, 122, 130, .6);
  color: #0b5560;
  font-weight: 800;
  font-size: calc(var(--db-unit) * 13);
  line-height: 1;
}
.db-line-num.is-hit { background: linear-gradient(180deg, #ffe27a, #ff9a3d); color: #5a2a00; box-shadow: 0 0 calc(var(--db-unit) * 12) rgba(255, 170, 40, .95); }
.db-line { fill: none; stroke: #ff9a3d; stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; opacity: .92; filter: drop-shadow(0 0 4px rgba(255, 255, 255, .95)); }
.db-line.is-wild { stroke: #ff4fa3; stroke-width: 7; }
.db-line-tag circle { fill: #ffffff; stroke: #ff6fb5; stroke-width: 3; }
.db-line-tag text { fill: #0b4a52; font: 800 16px "Segoe UI", sans-serif; text-anchor: middle; }
.db-banner {
  position: absolute;
  left: 50%;
  top: 41%;
  transform: translate(-50%, -50%);
  z-index: 7;
  padding: calc(var(--db-unit) * 16) calc(var(--db-unit) * 38);
  border-radius: calc(var(--db-unit) * 22);
  background: linear-gradient(90deg, rgba(255, 255, 255, .96), rgba(255, 226, 242, .96) 50%, rgba(206, 255, 249, .96));
  border: 3px solid #ff6fb5;
  color: #0b4a52;
  font-weight: 900;
  font-size: calc(var(--db-unit) * 52);
  letter-spacing: .05em;
  white-space: nowrap;
  box-shadow: 0 0 calc(var(--db-unit) * 36) rgba(255, 111, 181, .65), 0 0 calc(var(--db-unit) * 36) rgba(64, 224, 208, .65);
}
.db-banner[hidden], .db-hud[hidden], .db-big[hidden] { display: none; }
.db-banner.is-on { animation: db-banner 420ms ease-out both; }
@keyframes db-banner {
  0% { transform: translate(-50%, -50%) scale(.6); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}
.db-hud {
  position: absolute;
  left: 50%;
  top: calc(var(--db-unit) * 664);
  transform: translateX(-50%);
  z-index: 6;
  display: flex;
  align-items: center;
  gap: calc(var(--db-unit) * 12);
}
.db-counter, .db-diamonds, .db-flowers, .db-bonuswin {
  padding: calc(var(--db-unit) * 5) calc(var(--db-unit) * 16);
  border-radius: 999px;
  background: rgba(255, 255, 255, .94);
  border: 2px solid #40e0d0;
  color: #0b4a52;
  font-weight: 800;
  font-size: calc(var(--db-unit) * 21);
  white-space: nowrap;
}
.db-diamonds { border-color: #ff6fb5; }
.db-flowers { border-color: #b57bff; }
.db-bonuswin { border-color: #ffd84d; }
.db-hud { flex-wrap: wrap; justify-content: center; width: max-content; max-width: 96%; row-gap: calc(var(--db-unit) * 6); }
.db-flyer {
  position: absolute;
  z-index: 6;
  width: calc(var(--db-unit) * 70);
  height: calc(var(--db-unit) * 70);
  object-fit: contain;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 calc(var(--db-unit) * 10) rgba(64, 224, 208, 1));
}
.db-flyer.is-flying { transition: left 680ms ease-in-out, top 680ms ease-in-out, width 680ms ease-in-out, height 680ms ease-in-out; width: calc(var(--db-unit) * 40); height: calc(var(--db-unit) * 40); }
.db-petals { z-index: 7; }
.db-big {
  position: absolute;
  left: 50%;
  top: 41%;
  transform: translate(-50%, -50%);
  z-index: 8;
  color: #ffffff;
  font-weight: 900;
  font-size: calc(var(--db-unit) * 76);
  text-shadow: 0 0 calc(var(--db-unit) * 18) rgba(255, 79, 163, .95), 0 0 calc(var(--db-unit) * 26) rgba(64, 224, 208, .95), 0 3px 0 #0b7a82;
  white-space: nowrap;
}
#win.db-win-glow { color: #ff4fa3; text-shadow: 0 0 10px rgba(255, 190, 220, .9); }
body[data-suite-game="diamondbloom"] .meter { background: rgba(255, 255, 255, .86); }
body[data-suite-game="diamondbloom"] .meter span { color: #0b7a82; }
body[data-suite-game="diamondbloom"] .meter b { color: #0b4a52; }
body[data-suite-game="diamondbloom"] .bet-row { display: flex; align-items: center; gap: 6px; }
body[data-suite-game="diamondbloom"] .bet-row input { min-height: 36px; text-align: center; color: #0b4a52; }
body[data-suite-game="diamondbloom"] .step {
  flex: 0 0 auto;
  width: 40px;
  min-height: 40px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  background: #40e0d0;
  color: #06353a;
  font-size: 1.3rem;
  line-height: 1;
}
body[data-suite-game="diamondbloom"] .spin-row { display: flex; gap: 10px; }
body[data-suite-game="diamondbloom"] #btnSpin { background: linear-gradient(90deg, #ff6fb5, #ffe27a 50%, #40e0d0); color: #3a1a00; }
body[data-suite-game="diamondbloom"] #btnSpin:disabled { opacity: .55; cursor: progress; }
.db-mini-lines { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.db-mini { margin: 0; display: flex; align-items: center; gap: 6px; }
.db-mini figcaption { width: 1.6em; text-align: right; font-weight: 800; color: #d6247f; }
.db-mini div { display: grid; grid-template-columns: repeat(5, 10px); grid-auto-rows: 10px; gap: 2px; }
.db-mini i { display: block; border-radius: 2px; background: rgba(11, 122, 130, .16); }
.db-mini i.on { background: linear-gradient(90deg, #ff6fb5, #40e0d0); }
@media (max-width: 767px) {
  .db-mini-lines { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (prefers-reduced-motion: reduce) {
  .reels.db-spinning .db-grid > .reel:not(.is-stopped) img,
  .db-grid > .reel.is-landing,
  .db-grid .cell.db-scatter,
  .db-grid .cell.db-flower-new,
  .db-slot.is-on,
  .db-banner.is-on { animation: none !important; }
  .reels.db-spinning .db-grid > .reel:not(.is-stopped) img { filter: none; }
  .db-panel, .db-flyer.is-flying { transition: none; }
  .db-grid .cell.db-scatter { box-shadow: inset 0 0 0 3px #fff6c4, 0 0 18px rgba(255, 190, 40, .95); }
  .db-petals { display: none !important; }
}

/* Motore 3: parabrezza, cerchioni, seme, HUD. Font: Russo One e Chakra Petch (holdwin.html), con ripiego su quelli già caricati. */
body[data-suite-game="holdwin"] {
  --hw-display: "Russo One", "Orbitron", "Inter", system-ui, sans-serif;
  --hw-text: "Chakra Petch", "Inter", system-ui, sans-serif;
}
.cell-coin .coin-stack { position: relative; }
.cell-coin.has-ring img {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  filter: drop-shadow(0 0 8px var(--g));
}
.cell-coin .coin-ring {
  position: absolute;
  left: 50%;
  top: 45%;
  width: 72%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 3px solid var(--k);
  box-shadow: 0 0 12px var(--k), inset 0 0 8px var(--k);
  pointer-events: none;
}
.cell-coin.has-ring .coin-value {
  left: 50%;
  top: auto;
  bottom: 3%;
  transform: translateX(-50%);
  padding: 1px 7px;
  border-radius: 10px;
  border: 2px solid #fff;
  background: linear-gradient(180deg, var(--g), var(--k));
  color: #1a1206;
  font-family: var(--hw-display);
  font-weight: 400;
  font-size: clamp(9px, 1.7vw, 15px);
  text-shadow: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, .7);
}
.cell-coin.has-jackpot-ring .coin-value {
  background: linear-gradient(180deg, var(--d), var(--k));
  color: #fff;
  font-size: clamp(8px, 1.35vw, 12px);
  text-shadow: 0 1px 2px #000;
}
.cell-coin .coin-seed {
  position: absolute;
  right: 4%;
  top: 3%;
  z-index: 2;
  padding: 1px 6px;
  border-radius: 9px;
  border: 2px solid #fff;
  background: #9b6bff;
  color: #fff;
  font-family: var(--hw-display);
  font-size: clamp(8px, 1.3vw, 13px);
  box-shadow: 0 0 12px #9b6bff;
}
.cell-coin .hw-flash {
  position: absolute;
  inset: -12%;
  z-index: 4;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, .95), rgba(255, 220, 120, .4) 40%, transparent 70%);
  pointer-events: none;
  animation: hw-flash 800ms ease-out forwards;
}
@keyframes hw-flash {
  0% { opacity: 1; transform: scale(.6); }
  100% { opacity: 0; transform: scale(1.5); }
}
.cell-coin.is-grown .coin-value { animation: hw-grow 420ms ease-out; }
@keyframes hw-grow {
  0% { transform: translateX(-50%) scale(1.45); filter: brightness(1.6); }
  100% { transform: translateX(-50%) scale(1); filter: none; }
}
.reels .reel.is-rolling .cell > * {
  opacity: .35;
  filter: blur(3px);
  animation: hw-roll 140ms linear infinite;
}
@keyframes hw-roll {
  0% { transform: translateY(-14%); }
  100% { transform: translateY(14%); }
}
.reels .reel.is-landing { animation: hw-land 180ms ease-out; }
@keyframes hw-land {
  0% { transform: translateY(-4%); }
  60% { transform: translateY(2%); }
  100% { transform: none; }
}
.reels.holdwin-grid.is-respinning .cell-empty { animation: hw-empty-spin 500ms linear infinite; }
@keyframes hw-empty-spin {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(2.2); }
}
.holdwin-counter.is-last .holdwin-counter-dial,
.holdwin-counter.is-last .holdwin-counter-art { animation: hw-blink 500ms steps(1, end) infinite; }
@keyframes hw-blink {
  0% { filter: brightness(1.8) drop-shadow(0 0 10px #ff2a2a); }
  50% { filter: none; }
}
.hw-lbl {
  position: absolute;
  left: 50%;
  bottom: 8px;
  z-index: 4;
  transform: translateX(-50%);
  max-width: 96%;
  padding: 6px 14px;
  border-radius: 10px;
  border: 2px solid #ffd84a;
  background: rgba(0, 0, 0, .78);
  color: #ffd84a;
  font-family: var(--hw-display);
  font-size: clamp(12px, 2.4vw, 20px);
  text-align: center;
  white-space: nowrap;
  pointer-events: none;
}
.hw-lbl[hidden] { display: none !important; }
.holdwin-tally small { font-family: var(--hw-text); font-weight: 700; }
.holdwin-tally b, .holdwin-fly { font-family: var(--hw-display); font-weight: 400; color: #ffe066; }
.hw-trail {
  position: absolute;
  z-index: 5;
  height: 6px;
  border-radius: 3px;
  transform-origin: 0 50%;
  transition-property: transform, opacity;
  transition-timing-function: linear, ease;
  background: linear-gradient(90deg, rgba(255, 80, 0, 0), #ff7a00 60%, #fff2a0);
  box-shadow: 0 0 14px #ff7a00;
  pointer-events: none;
}
.hw-trail.is-seed {
  background: linear-gradient(90deg, rgba(155, 107, 255, 0), #9b6bff 60%, #fff);
  box-shadow: 0 0 14px #9b6bff;
}

.hw-hud { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 100%; margin: 4px auto 6px; }
.hw-hud[hidden] { display: none !important; }
.hw-hud-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.hw-chip,
.hw-seed {
  padding: 4px 12px;
  border-radius: 10px;
  font-family: var(--hw-display);
  font-size: clamp(12px, 2.4vw, 16px);
  letter-spacing: .04em;
}
.hw-chip { background: rgba(0, 0, 0, .72); border: 2px solid #ffd84a; color: #ffd84a; }
.hw-seed { background: #9b6bff; border: 2px solid #fff; color: #fff; box-shadow: 0 0 12px #9b6bff; }
.hw-seed[hidden] { display: none !important; }
.hw-plaques { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; width: 100%; }
.hw-plq {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
  padding: 3px 4px;
  border-radius: 10px;
  border: 3px solid var(--g);
  background: linear-gradient(180deg, var(--k), var(--d));
  box-shadow: 0 0 12px var(--k), inset 0 0 10px rgba(0, 0, 0, .4);
  color: #fff;
  font-family: var(--hw-display);
  font-size: clamp(10px, 2vw, 17px);
  text-shadow: 0 2px 2px #000;
  white-space: nowrap;
  opacity: .72;
}
.hw-plq b { font-family: var(--hw-text); font-size: .64em; letter-spacing: .12em; }
.hw-plq.lit { opacity: 1; box-shadow: 0 0 30px var(--k), 0 0 60px var(--k); filter: brightness(1.25); }

.holdwin-modal-card.hw-ws {
  --ws-w: 560px;
  --ws-a: #ffe27a; --ws-b: #c48a00; --ws-d: #5a3a00;
  width: min(var(--ws-w), 100%);
  aspect-ratio: 800 / 470;
  padding: 0;
  background: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  container-type: inline-size;
  color: #fff;
  animation: hw-ws-in var(--holdwin-modal-in, 350ms) cubic-bezier(.2, .8, .2, 1) both;
}
.hw-ws[data-color="red"] { --ws-a: #ff3b30; --ws-b: #9e0b0b; --ws-d: #4a0303; }
.hw-ws[data-color="blue"] { --ws-a: #4aa3ff; --ws-b: #0b4fa8; --ws-d: #04234d; }
.hw-ws[data-color="gold"] { --ws-a: #ffe27a; --ws-b: #c48a00; --ws-d: #5a3a00; }
.hw-ws[data-color="green"] { --ws-a: #6dff96; --ws-b: #14b843; --ws-d: #063d17; }
.hw-ws[data-color="fuchsia"] { --ws-a: #ff7fcf; --ws-b: #d10f86; --ws-d: #4d0632; }
.hw-ws[data-color="azure"] { --ws-a: #7fdcff; --ws-b: #0090d6; --ws-d: #03304a; }
.hw-ws[data-window="respinReset"] { --ws-w: 320px; }
.hw-ws[data-window="jackpot"] { --ws-w: 360px; }
@keyframes hw-ws-in {
  0% { transform: translateY(70%); opacity: 0; }
  100% { transform: none; opacity: 1; }
}
@keyframes hw-fade { 0% { opacity: 0; } 100% { opacity: 1; } }
.hw-ws-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; filter: drop-shadow(0 16px 30px rgba(0, 0, 0, .55)); }
.hw-glass {
  position: absolute;
  left: 18.75%;
  top: 12.3%;
  width: 62.5%;
  height: 47.7%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.hw-glass .holdwin-modal-art { width: 12cqw; height: 12cqw; margin: 0 auto 1cqw; }
.hw-ws .holdwin-kicker {
  font-family: var(--hw-text);
  font-weight: 600;
  font-size: max(9px, 1.9cqw);
  letter-spacing: .34em;
  color: #ffd84a;
  text-shadow: 0 0 8px rgba(0, 0, 0, .9);
}
.hw-ws h2 {
  margin: .6cqw 0 0;
  font-family: var(--hw-display);
  font-weight: 400;
  font-size: 4.75cqw;
  line-height: 1.05;
  color: #fff;
  text-shadow: 0 0 12px rgba(120, 200, 255, .9), 0 3px 0 rgba(0, 0, 0, .6);
}
.hw-ws h2 { text-wrap: balance; }
.hw-ws.is-mini h2 { font-size: 5.6cqw; }
.hw-ws .holdwin-modal-body {
  margin: .8cqw 0 0;
  font-family: var(--hw-display);
  font-weight: 400;
  font-size: 8cqw;
  line-height: 1;
  letter-spacing: 0;
  color: #ffe066;
  text-shadow: 0 0 18px rgba(255, 190, 0, .95), 0 4px 0 #6b3d00;
}
.hw-ws .holdwin-modal-body:empty,
.hw-ws .holdwin-modal-detail:empty,
.hw-ws .holdwin-kicker:empty { display: none; }
.hw-ws .holdwin-modal-detail {
  margin: 1cqw 0 0;
  font-family: var(--hw-text);
  font-size: max(10px, 2.4cqw);
  color: #e9f3ff;
  text-shadow: 0 2px 4px #000;
}
.hw-ws.is-mini .holdwin-modal-detail { font-size: max(10px, 4cqw); }
.hw-ws .holdwin-continue {
  position: absolute;
  left: 50%;
  top: 85.5%;
  transform: translateX(-50%);
  width: auto;
  min-width: 44px;
  min-height: 44px;
  margin: 0;
  padding: 8px 26px;
  border: 2px solid #fff4c0;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffe36b, #f0a800);
  box-shadow: 0 0 16px rgba(255, 190, 0, .7);
  color: #111;
  font-family: var(--hw-display);
  font-size: max(14px, 2.4cqw);
  letter-spacing: .08em;
}
.hw-ws .holdwin-continue:disabled { filter: grayscale(.8) brightness(.7); box-shadow: none; }
.hw-ws .holdwin-continue[hidden] { display: none !important; }
.hw-ws .holdwin-lamps { position: absolute; inset: 0; margin: 0; display: block; }
.hw-ws .holdwin-lamps[hidden] { display: none !important; }
.hw-ws .holdwin-lamp {
  position: absolute;
  top: 74%;
  width: 21%;
  height: 12.8%;
  opacity: 0;
}
.hw-ws .holdwin-lamp:first-child { left: 6.4%; }
.hw-ws .holdwin-lamp:last-child { left: 72.6%; }
.hw-ws .holdwin-lamp.is-on { opacity: 1; }
.holdwin-modal.is-calm .holdwin-modal-card.hw-ws { animation: hw-fade 200ms ease both; }
.holdwin-fireworks.is-loop i { animation: holdwin-firework 1400ms ease-out infinite; }
.holdwin-fireworks.is-loop i:nth-child(2) { animation-delay: .35s; }
.holdwin-fireworks.is-loop i:nth-child(3) { animation-delay: .7s; }
.holdwin-fireworks.is-loop i:nth-child(4) { animation-delay: 1.05s; }

.hw-suit {
  position: absolute;
  inset: 0;
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px;
  background: rgba(4, 4, 8, .62);
  container-type: inline-size;
}
.hw-suit[hidden] { display: none !important; }
.hw-suit-cards { display: flex; gap: 3cqw; justify-content: center; }
.hw-card {
  width: clamp(120px, 28cqw, 250px);
  aspect-ratio: 1;
  border-radius: 18px;
  border: 3px solid #5b4a8a;
  background: linear-gradient(180deg, #1b1530, #07060c);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  text-align: center;
  color: #fff;
  transition: transform 120ms ease, box-shadow 120ms ease, filter 160ms ease;
}
.hw-card-ico {
  width: 44%;
  aspect-ratio: 1;
  border-radius: 50%;
  border: 3px solid #fff;
  background: radial-gradient(circle, #c9b3ff, #9b6bff 60%, #2b1666);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--hw-display);
  font-size: clamp(14px, 4cqw, 40px);
  text-shadow: 0 2px 3px #000;
}
.hw-card[data-suit="COLLECT"] .hw-card-ico { font-size: clamp(9px, 1.9cqw, 16px); }
.hw-card-nm { font-family: var(--hw-display); font-size: clamp(11px, 2.4cqw, 22px); }
.hw-card-ds { font-family: var(--hw-text); font-size: clamp(9px, 1.6cqw, 14px); color: #cfc6e8; padding: 0 6px; }
.hw-card.is-hot,
.hw-card.is-on { border-color: #fff; box-shadow: 0 0 40px #9b6bff; transform: scale(1.08); }
.hw-card.is-off { filter: brightness(.42) saturate(.4); }
.hw-suit-caption {
  min-height: 1.4em;
  margin: 0;
  font-family: var(--hw-display);
  font-size: clamp(14px, 3cqw, 24px);
  color: #fff;
  text-shadow: 0 0 12px #9b6bff;
  text-align: center;
}
@container (max-width: 560px) {
  .hw-suit-cards { flex-direction: column; gap: 8px; }
  .hw-card { width: min(92cqw, 340px); aspect-ratio: auto; flex-direction: row; gap: 12px; padding: 8px 12px; text-align: left; }
  .hw-card-ico { width: 52px; flex: 0 0 52px; font-size: 16px; }
  .hw-card.is-hot, .hw-card.is-on { transform: scale(1.03); }
}
.hw-suit.is-calm .hw-card { transition: filter 200ms ease; transform: none !important; }
@media (prefers-reduced-motion: reduce) {
  .reels .reel.is-rolling .cell > *,
  .reels .reel.is-landing,
  .reels.holdwin-grid.is-respinning .cell-empty,
  .holdwin-counter.is-last .holdwin-counter-dial,
  .holdwin-counter.is-last .holdwin-counter-art,
  .holdwin-fireworks.is-loop i,
  .cell-coin.is-grown .coin-value { animation: none !important; }
  .reels .reel.is-rolling .cell > * { filter: none; opacity: .5; }
  .cell-coin .hw-flash { animation: hw-fade-out 800ms ease-out forwards !important; }
  .holdwin-modal-card.hw-ws { animation: hw-fade 200ms ease both !important; }
  .hw-card { transition: none; transform: none !important; }
  .hw-trail { transition-property: opacity; }
  .holdwin-counter.is-last .holdwin-counter-dial { box-shadow: 0 0 0 4px #ff2a2a; }
}
@keyframes hw-fade-out { 0% { opacity: .9; } 100% { opacity: 0; } }

/* Hold & Win · cornice A "Carbonio & Cordolo" attorno ai rulli. Solo GIRA + AUTOMATICO affiancati (50/50) su telefono. */
/* MOBILE: solo GIRA + AUTOMATICO affiancati (50/50) sotto la barra crediti; nessun'altra modifica. */
@media (max-width: 767px) {
  html.embed body[data-suite-game="holdwin"] .stage { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: auto minmax(0, 1fr) repeat(5, auto); column-gap: 8px; }
  html.embed body[data-suite-game="holdwin"] .stage > :is(.hw-hud, .slot-stage-wrapper, .holdwin-counter, .winline, .meters, .holdwin-settings) { grid-column: 1 / -1; }
  html.embed body[data-suite-game="holdwin"] .stage > .hw-hud { grid-row: 1; }
  html.embed body[data-suite-game="holdwin"] .stage > .slot-stage-wrapper { grid-row: 2; min-height: 0; }
  html.embed body[data-suite-game="holdwin"] .stage > .holdwin-counter { grid-row: 3; }
  html.embed body[data-suite-game="holdwin"] .stage > .winline { grid-row: 4; }
  html.embed body[data-suite-game="holdwin"] .stage > .meters { grid-row: 5; }
  html.embed body[data-suite-game="holdwin"] .stage > .holdwin-settings { grid-row: 7; }
  html.embed body[data-suite-game="holdwin"] .stage > #btnSpin { grid-column: 1; grid-row: 6; width: auto; }
  html.embed body[data-suite-game="holdwin"] .stage > #btnAuto { grid-column: 2; grid-row: 6; width: auto; margin-top: 6px; }
}
body[data-suite-game="holdwin"] #reels { position: relative; }
body[data-suite-game="holdwin"] #reels::after { content: ""; position: absolute; pointer-events: none; z-index: 4;
  inset: calc(-1 * var(--hw-out-t, 18px)) calc(-1 * var(--hw-out-s, 18px)) calc(-1 * var(--hw-out-b, 18px));
  border-style: solid; border-color: transparent; border-width: var(--hw-w-t, 22px) var(--hw-w-s, 22px) var(--hw-w-b, 22px);
  border-image: url("/03-HoldAndWin-Motori/Grafica/cornici/cornice-A-carbonio-cordolo.svg") 60 / var(--hw-w-t, 22px) var(--hw-w-s, 22px) var(--hw-w-b, 22px) round; }
@media (max-width: 767px) {
  html.embed body[data-suite-game="holdwin"] .slot-stage-wrapper { overflow: visible; }
  body[data-suite-game="holdwin"] #reels { --hw-out-s: 7px; --hw-w-s: 10px; --hw-out-t: 16px; --hw-w-t: 20px; --hw-out-b: 10px; --hw-w-b: 13px; }
}

/* 243 Ways: il vano della cornice e' piu' stretto di quello di Both Ways; le linee di griglia disegnate misurano ~2 px.
   Il gap ridotto vale solo da desktop: su telefono le celle non cambiano. */
body[data-suite-game="ways"] .reels.framed { padding: 16.5625% 18.59% 10.94% 19.06%; }
@media (min-width: 900px) and (min-height: 501px), (min-width: 900px) and (pointer: fine) {
  body[data-suite-game="ways"] .reels.framed, body[data-suite-game="ways"] .reels.framed > .reel { gap: 2px; }
}
