/* FIVE PK - strumenti del giocatore: auto-ricarica, lista d'attesa, multi-tavolo (13/10/2026) */
.pt-ar{display:inline-flex;align-items:center;gap:6px;min-height:36px;padding:3px 6px 3px 10px;border:1px solid var(--border);border-radius:10px;background:var(--surface-2);font-size:.78rem;font-weight:700;color:var(--muted,inherit)}
.pt-ar select{border:0;background:transparent;color:var(--text);font:inherit;font-weight:800;cursor:pointer}
.pt-ar.is-on{border-color:var(--gold);color:var(--gold)}
.pt-ar[hidden]{display:none}
@media (max-width:760px){.pt-ar-label{display:none}.pt-ar::before{content:"↻";font-size:1rem}}
.pt-wl-join,.pt-mt-add-btn{margin-top:8px}
.pt-wl-panel{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin:0 0 12px;padding:10px 14px;border:1px solid var(--gold);border-radius:14px;background:color-mix(in srgb,var(--gold) 10%,var(--surface))}
.pt-wl-chip{display:inline-flex;align-items:center;gap:6px;padding:4px 6px 4px 10px;border-radius:999px;background:var(--surface-2);font-size:.85rem;font-weight:700}
.pt-wl-chip button{border:0;background:none;color:inherit;font-size:1.05rem;cursor:pointer;line-height:1}
.pt-dialog{max-width:440px}.pt-dialog fieldset{border:1px solid var(--border);border-radius:10px;margin:10px 0;display:grid;gap:6px}
.pt-dialog .pt-field{display:grid;gap:6px;margin:10px 0;font-weight:700}.pt-dialog output{color:var(--gold);font-weight:800}
/* multi-tavolo */
html.pt-mt-open{overflow:hidden}
.pt-mt{position:fixed;inset:0;z-index:60;display:flex;flex-direction:column;background:#07100d}
.pt-mt[hidden]{display:none}
.pt-mt-bar{display:flex;align-items:center;gap:10px;padding:6px 10px;background:#0b0f1e;border-bottom:1px solid #2a3366;color:#e8ecff;flex-wrap:wrap}
.pt-mt-title small{color:#edbd56;margin-left:4px}
.pt-mt-tabs{display:flex;gap:6px;overflow-x:auto;flex:1 1 auto;min-width:0}
.pt-mt-tabs button{display:inline-flex;align-items:center;gap:6px;white-space:nowrap;padding:6px 8px 6px 10px;border:1px solid #2a3366;border-radius:10px;background:#151b33;color:#e8ecff;font-weight:700;cursor:pointer}
.pt-mt-tabs button[aria-selected="true"]{border-color:#edbd56}
.pt-mt-tabs button small{color:#9fb5ab}.pt-mt-tabs button b{padding:0 4px;color:#9fb5ab}
.pt-mt-tabs button.is-turn{background:#3b2a0b;border-color:#edbd56;animation:ptPulse 1s infinite}
.pt-dot{width:9px;height:9px;border-radius:50%;background:#edbd56;display:inline-block}
.pt-mt-turn{border:0;border-radius:10px;padding:8px 12px;background:#edbd56;color:#07100d;font-weight:900;cursor:pointer;animation:ptPulse 1s infinite}
.pt-mt-turn[hidden]{display:none}
.pt-mt-actions{display:flex;gap:6px}.pt-mt-actions button{min-height:34px;padding:6px 10px}
.pt-mt-grid{flex:1 1 auto;display:grid;gap:4px;padding:4px;min-height:0;grid-template-columns:1fr;grid-auto-rows:1fr}
.pt-mt[data-count="2"]:not(.is-tabs) .pt-mt-grid{grid-template-columns:1fr 1fr}
.pt-mt[data-count="3"]:not(.is-tabs) .pt-mt-grid,.pt-mt[data-count="4"]:not(.is-tabs) .pt-mt-grid{grid-template-columns:1fr 1fr;grid-template-rows:1fr 1fr}
.pt-mt-tile{position:relative;min-height:0;border:2px solid #2a3366;border-radius:10px;overflow:hidden;background:#0b0f1e}
.pt-mt-tile[hidden]{display:none}
.pt-mt-tile.is-active{border-color:#2de2e6}.pt-mt-tile.is-turn{border-color:#edbd56;box-shadow:0 0 0 2px #edbd56 inset}
.pt-mt-tile iframe{width:100%;height:100%;border:0;display:block}
.pt-mt.is-tabs .pt-mt-grid{grid-template-columns:1fr;grid-template-rows:1fr}
.pt-mt-dock{position:fixed;right:14px;bottom:14px;z-index:55;border:1px solid #edbd56;border-radius:999px;padding:10px 16px;background:#0b0f1e;color:#e8ecff;font-weight:800;box-shadow:0 8px 24px rgba(0,0,0,.4);cursor:pointer}
.pt-mt-dock.is-turn{background:#edbd56;color:#07100d;animation:ptPulse 1s infinite}
@keyframes ptPulse{50%{filter:brightness(1.25)}}
@media (prefers-reduced-motion:reduce){.pt-mt-turn,.pt-mt-tabs button.is-turn,.pt-mt-dock.is-turn{animation:none}}
@media (max-width:760px){.pt-mt-title{display:none}.pt-mt-bar{gap:6px;padding:4px 6px}.pt-mt-layout{display:none}.pt-mt-turn{order:3;width:100%}}
/* inside a multi-table tile: table only (no app header, banners, nav) */
html.pt-in-tile .app-header,html.pt-in-tile .skip-link,html.pt-in-tile #home-banners,html.pt-in-tile .pt-mt-dock{display:none!important}
html.pt-in-tile body{min-height:0}
