/* Tabella pagamenti laterale e pulsante AUTOMATICO, comuni ai nove motori. */
:root { --pt-w: 360px; }
.pt-side {
  box-sizing: border-box;
  color: #f4f1e8;
  font-family: "Segoe UI", sans-serif;
  font-size: 13px;
  line-height: 1.3;
  background: rgba(8, 10, 14, .9);
  border: 1px solid rgba(240, 215, 140, .35);
  border-radius: 14px;
  padding: 12px 12px 14px;
}
.pt-side *, .pt-side *::before, .pt-side *::after { box-sizing: border-box; }
.pt-title { margin: 0 0 2px; font-size: 14px; letter-spacing: .16em; color: #f0d78c; }
.pt-bet { margin: 0 0 8px; color: #c9c3b2; font-size: 12px; }
.pt-bet b { color: #fff; }
.pt-section { margin: 0 0 10px; }
.pt-section h3 { margin: 0 0 4px; font-size: 12px; letter-spacing: .06em; color: #f7e7b4; }
.pt-section h3 small { font-weight: 500; color: #b8b2a2; letter-spacing: 0; }
.pt-side table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pt-side thead th { font-size: 11px; font-weight: 700; color: #b8b2a2; text-align: center; padding: 2px 2px 4px; border-bottom: 1px solid rgba(240, 215, 140, .18); }
.pt-side thead th:first-child { text-align: left; width: 36%; }
.pt-side tbody th { text-align: left; font-weight: 600; font-size: 11.5px; padding: 3px 2px; display: flex; align-items: center; gap: 4px; line-height: 1.15; overflow-wrap: anywhere; }
.pt-side tbody th img { width: 24px; height: 24px; object-fit: contain; flex: 0 0 auto; }
.pt-side tbody th span { vertical-align: middle; }
.pt-side td { text-align: center; padding: 3px 2px; border-radius: 6px; font-variant-numeric: tabular-nums; }
.pt-side td b { display: block; font-size: 12px; }
.pt-side td small { display: block; font-size: 10px; color: #b8b2a2; white-space: nowrap; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pt-side td.pt-empty { color: #6f6a5e; }
.pt-side table.pt-dense thead th:first-child { width: 27%; }
.pt-side table.pt-dense tbody th { font-size: 10.5px; gap: 3px; }
.pt-side table.pt-dense tbody th img { width: 18px; height: 18px; }
.pt-side table.pt-dense td { padding: 3px 1px; }
.pt-side table.pt-dense td b { font-size: 10.5px; letter-spacing: -.03em; }
.pt-side table.pt-dense td small { font-size: 9px; letter-spacing: -.04em; }
.pt-side tr.is-hit-row th { color: #ffe08a; }
.pt-side td.is-hit { background: linear-gradient(180deg, #ffe08a, #d79a1a); color: #241606; box-shadow: 0 0 10px rgba(255, 200, 80, .75); animation: ptHit 700ms ease-in-out 2; }
.pt-side td.is-hit small { color: #3a2608; }
.pt-note { margin: 4px 0 10px; font-size: 11.5px; color: #e6dcc0; }
.pt-features { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.pt-features li { display: flex; gap: 6px; align-items: flex-start; padding: 6px 8px; border-radius: 8px; background: rgba(255, 255, 255, .04); border: 1px solid transparent; }
.pt-features li img { width: 26px; height: 26px; object-fit: contain; flex: 0 0 auto; }
.pt-features li b { display: block; color: #f7e7b4; font-size: 12px; }
.pt-features li span { display: block; font-size: 11.5px; color: #e2dccb; }
.pt-features li.is-hit { border-color: #ffd36a; background: rgba(255, 200, 80, .16); box-shadow: 0 0 10px rgba(255, 200, 80, .45); animation: ptHit 700ms ease-in-out 2; }
.pt-side.is-static td.is-hit, .pt-side.is-static .pt-features li.is-hit { animation: none; }
@keyframes ptHit { 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .pt-side td.is-hit, .pt-side .pt-features li.is-hit { animation: none; }
}
/* Cassetto: è la forma di base (lobby, iframe embed, telefono e tablet). */
.pt-side {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(var(--pt-drawer, 360px), 100%);
  margin: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  z-index: 90;
  border-radius: 14px 0 0 14px;
  border-right: 0;
  background: rgba(8, 10, 14, .97);
  box-shadow: -10px 0 32px rgba(0, 0, 0, .55);
  transform: translateX(105%);
  visibility: hidden;
  transition: transform .22s ease, visibility 0s linear .22s;
}
.pt-side.is-open { transform: none; visibility: visible; transition: transform .22s ease; }
.pt-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(2, 6, 10, .55);
  opacity: 0;
  visibility: hidden;
  transition: opacity .22s ease, visibility 0s linear .22s;
}
.pt-backdrop.is-open { opacity: 1; visibility: visible; transition: opacity .22s ease; }
.pt-head {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: -12px -12px 8px;
  padding: 10px 12px;
  background: rgba(8, 10, 14, .97);
  border-bottom: 1px solid rgba(240, 215, 140, .22);
}
.pt-head .pt-title { margin: 0; }
.pt-close {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid rgba(240, 215, 140, .55);
  border-radius: 10px;
  background: #f0d78c;
  color: #241c08;
  font: 800 .78rem "Segoe UI", sans-serif;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
}
.pt-close:focus-visible, .pt-open-btn:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
@media (max-width: 767px) {
  .pt-side { width: 100%; border-radius: 0; box-shadow: none; }
  .pt-backdrop { display: none; }
}

/* Pulsante TABELLA, uguale in tutti i motori: pieno, nel colore accento del motore. */
[data-pt-game="robo"] { --pt-accent: #39f3ff; --pt-ink: #031317; }
[data-pt-game="zodiaco"] { --pt-accent: #b48cff; --pt-ink: #12072b; }
[data-pt-game="holdwin"] { --pt-accent: #ff3b3b; --pt-ink: #ffffff; }
[data-pt-game="ways"] { --pt-accent: #00d1c1; --pt-ink: #02201e; }
[data-pt-game="dynamic"] { --pt-accent: #f0c14b; --pt-ink: #261b02; }
[data-pt-game="bothways"] { --pt-accent: #ff4fd8; --pt-ink: #2a0522; }
[data-pt-game="symphony"] { --pt-accent: #ffc94a; --pt-ink: #2a1c02; }
[data-pt-game="yinyang"] { --pt-accent: #3ddc97; --pt-ink: #04241a; }
[data-pt-game="diamondbloom"] { --pt-accent: #ff4f8b; --pt-ink: #2b0510; }
.pt-open-btn {
  position: fixed;
  top: 6px;
  right: 8px;
  z-index: 60;
  box-sizing: border-box;
  width: auto;
  min-width: 112px;
  min-height: 44px;
  margin: 0;
  padding: 10px 18px;
  border: 2px solid rgba(255, 255, 255, .85);
  border-radius: 12px;
  background: var(--pt-accent, #f0d78c);
  color: var(--pt-ink, #111);
  font: 800 .9rem "Segoe UI", sans-serif;
  letter-spacing: .16em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .5), 0 0 14px color-mix(in srgb, var(--pt-accent, #f0d78c) 55%, transparent);
}
html:not(.embed) .pt-open-btn { top: auto; bottom: 12px; right: 12px; }
.pt-open-btn:hover { filter: brightness(1.08); }
.pt-open-btn:active { transform: translateY(1px); }
.pt-open-btn[aria-expanded="true"] { visibility: hidden; }
html.embed body.has-pt-side .stage { padding-top: 54px; }

/* Desktop, pagina del motore da sola: pannello laterale fisso, sempre aperto. */
@media (min-width: 1024px) {
  html:not(.embed) body.has-pt-side { padding-right: var(--pt-w); }
  html:not(.embed) .pt-side {
    top: 76px;
    right: 8px;
    bottom: 8px;
    width: calc(var(--pt-w) - 16px);
    border-right: 1px solid rgba(240, 215, 140, .35);
    border-radius: 14px;
    background: rgba(8, 10, 14, .9);
    box-shadow: none;
    transform: none;
    visibility: visible;
    z-index: 30;
  }
  html:not(.embed) .pt-open-btn, html:not(.embed) .pt-backdrop, html:not(.embed) .pt-close { display: none; }
  html:not(.embed) .pt-head { position: static; margin: 0 0 2px; padding: 0; background: none; border: 0; }
}
@media (min-width: 1700px) {
  :root { --pt-w: 430px; }
  .pt-side { font-size: 14px; }
  .pt-side td b { font-size: 13px; }
}

.auto-btn {
  display: block;
  width: 100%;
  min-height: 40px;
  margin: 8px 0 0;
  padding: 8px 12px;
  border-radius: 8px;
  border: 1px solid rgba(240, 215, 140, .6);
  background: rgba(10, 12, 16, .78);
  color: #f0d78c;
  font: 800 .8rem "Segoe UI", sans-serif;
  letter-spacing: .14em;
  cursor: pointer;
}
.auto-btn.is-on { background: #b3261e; border-color: #ff8d8d; color: #fff; }
.auto-btn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
html.embed .auto-btn { min-height: 32px; margin-top: 4px; padding: 4px 10px; flex: 0 0 auto; }
