/* FIVE PK - Tema v2 "Notte & Oro" (14/10/2026). NASCOSTO: attivo solo con html[data-skin="v2"]
   (anteprima ?anteprima=v2 oppure flag server themeV2=true). Grafica originale FIVE PK. */
html[data-skin="v2"], html[data-skin="v2"][data-theme="dark"], html[data-skin="v2"][data-theme="light"] {
  color-scheme: dark;
  --bg: #0b0f1e; --surface: #151b33; --surface-2: #1a2142; --surface-3: #232b55;
  --text: #e8ecff; --muted: #9aa3c7; --border: #2a3366;
  --green: #2de2e6; --green-strong: #2de2e6; --green-soft: #123a4a;
  --gold: #f5c54b; --red: #ff6b7d; --red-soft: #3a1626;
  --felt: #0e3a7a; --felt-deep: #071f4a; --focus: #2de2e6;
  --shadow: 0 22px 60px rgba(0, 0, 0, .45);
  --v2-gold: linear-gradient(180deg, #ffe08a 0%, #f5c54b 45%, #c98d1c 100%);
  --v2-blue: linear-gradient(135deg, #5ff0f2, #2de2e6 55%, #1fb8c9);
  --v2-glow: 0 0 0 1px rgba(45,226,230,.35), 0 0 24px rgba(45,226,230,.18);
}
html[data-skin="v2"] body {
  background: radial-gradient(1200px 600px at 15% -10%, rgba(70,50,160,.22), transparent 60%),
              radial-gradient(900px 500px at 100% 0%, rgba(245,197,75,.10), transparent 60%), #0b0f1e;
  background-attachment: fixed;
}
html[data-skin="v2"] .app-header { background: linear-gradient(90deg, rgba(27,20,64,.95), rgba(15,26,58,.95)); border-bottom: 1px solid rgba(45,226,230,.18); backdrop-filter: blur(12px); }
html[data-skin="v2"] .brand-pk { color: #f5c54b; }
html[data-skin="v2"] .primary-button, html[data-skin="v2"] .v2-btn-gold {
  background: var(--v2-gold) !important; color: #1b1200 !important; border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 18px rgba(245,197,75,.28) !important; font-weight: 800;
}
html[data-skin="v2"] .secondary-button, html[data-skin="v2"] .v2-btn-blue {
  background: var(--v2-blue) !important; color: #0b0f1e !important; border: 0 !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 6px 18px rgba(45,226,230,.28) !important; font-weight: 800;
}
html[data-skin="v2"] .primary-button:hover, html[data-skin="v2"] .secondary-button:hover { filter: brightness(1.08); transform: translateY(-1px); }
html[data-skin="v2"] .table-card, html[data-skin="v2"] .competition-card, html[data-skin="v2"] .fastfold-card,
html[data-skin="v2"] .featured-grid > *, html[data-skin="v2"] .lobby-live-strip > * {
  background: linear-gradient(160deg, #1a2142, #151b33) !important; border: 1px solid rgba(45,226,230,.22) !important;
  box-shadow: var(--v2-glow); transition: transform .18s ease, box-shadow .18s ease;
}
html[data-skin="v2"] .table-card:hover, html[data-skin="v2"] .competition-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px rgba(245,197,75,.55), 0 10px 30px rgba(45,226,230,.25); }
html[data-skin="v2"] .lobby-product-tabs button.is-active { background: var(--v2-blue) !important; color: #0b0f1e !important; box-shadow: 0 0 18px rgba(45,226,230,.4); }
html[data-skin="v2"] .poker-shell { background: linear-gradient(155deg, #0c1838, #070f26) !important; border-color: rgba(45,226,230,.25) !important; }
html[data-skin="v2"] .felt-ring { background: linear-gradient(#071a3f,#071a3f) padding-box, linear-gradient(145deg,#c98d1c,#2a2f45 30%,#f5c54b 52%,#1b2440 78%,#c98d1c) border-box !important; }
html[data-skin="v2"] .felt-ring::after { border-color: rgba(45,226,230,.35) !important; box-shadow: 0 0 18px rgba(45,226,230,.25) !important; }
html[data-skin="v2"] .mobile-nav { background: rgba(15,20,44,.95); border-top: 1px solid rgba(45,226,230,.2); }
html[data-skin="v2"] .mobile-nav .is-active, html[data-skin="v2"] .nav-link.is-active { color: #f5c54b !important; }

/* Ospite: solo vetrina */
html[data-skin="v2"][data-v2-guest] #view-lobby, html[data-skin="v2"][data-v2-guest] #view-table,
html[data-skin="v2"][data-v2-guest] #view-history, html[data-skin="v2"][data-v2-guest] #view-home,
html[data-skin="v2"][data-v2-guest] #view-club, html[data-skin="v2"][data-v2-guest] #view-negozio,
html[data-skin="v2"][data-v2-guest] .primary-nav, html[data-skin="v2"][data-v2-guest] .mobile-nav,
html[data-skin="v2"][data-v2-guest] .balance, html[data-skin="v2"][data-v2-guest] .connection-chip,
html[data-skin="v2"][data-v2-guest] .avatar-button { display: none !important; }
html[data-skin="v2"]:not([data-v2-guest]) #view-vetrina { display: none !important; }
html:not([data-skin="v2"]) .v2-only { display: none !important; }

/* Pagine v2 */
.v2-page { max-width: 1180px; margin: 0 auto; padding: 20px clamp(14px, 3vw, 32px) 90px; }
.v2-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: 1.2fr .8fr; gap: 24px; align-items: center;
  padding: clamp(24px, 5vw, 56px); border-radius: 28px; border: 1px solid rgba(45,226,230,.28);
  background: radial-gradient(600px 300px at 80% 30%, rgba(45,226,230,.28), transparent 70%), linear-gradient(135deg, #1b1440, #0f1a3a 70%);
  box-shadow: var(--v2-glow), 0 30px 80px rgba(0,0,0,.5); }
.v2-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 60%; height: 180%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.06), transparent); animation: v2-sheen 7s ease-in-out infinite; pointer-events: none; }
@keyframes v2-sheen { 0%,100% { transform: translateX(-120%) rotate(12deg); } 50% { transform: translateX(60%) rotate(12deg); } }
.v2-eyebrow { color: #2de2e6; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: .78rem; margin-bottom: 10px; }
.v2-hero h1 { font-size: clamp(2rem, 5vw, 3.6rem); margin-bottom: 14px; }
.v2-hero h1 em { font-style: normal; background: var(--v2-gold); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v2-hero p { color: var(--muted); font-size: 1.08rem; max-width: 560px; }
.v2-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
.v2-cta a, .v2-cta button { display: inline-flex; align-items: center; justify-content: center; min-width: 150px; min-height: 50px; padding: 0 26px; border-radius: 999px; text-decoration: none; font-size: 1.02rem; cursor: pointer; }
.v2-hero-art { position: relative; display: grid; place-items: center; min-height: 240px; }
.v2-hero-art img { width: min(240px, 70%); filter: drop-shadow(0 0 30px rgba(45,226,230,.55)); animation: v2-float 5s ease-in-out infinite; }
.v2-chip { position: absolute; width: 56px; height: 56px; border-radius: 50%; border: 6px dashed rgba(255,255,255,.85); box-shadow: 0 6px 18px rgba(0,0,0,.4); animation: v2-float 6s ease-in-out infinite; }
.v2-chip.c1 { background: #f5c54b; top: 8%; left: 10%; } .v2-chip.c2 { background: #2fb4ff; bottom: 10%; right: 8%; animation-delay: -2s; } .v2-chip.c3 { background: #ff6b7d; bottom: 18%; left: 16%; width: 42px; height: 42px; animation-delay: -4s; }
@keyframes v2-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (prefers-reduced-motion: reduce) { .v2-hero::before, .v2-hero-art img, .v2-chip { animation: none; } }
.v2-section { margin-top: 44px; }
.v2-section > h2 { font-size: clamp(1.4rem, 3vw, 2rem); margin-bottom: 6px; }
.v2-section > p.v2-lead { color: var(--muted); margin-bottom: 18px; }
.v2-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.v2-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 20px; text-align: left; color: var(--text); text-decoration: none;
  background: linear-gradient(160deg, #1a2142, #151b33); border: 1px solid rgba(45,226,230,.22); box-shadow: var(--v2-glow); transition: transform .18s, box-shadow .18s; font: inherit; }
button.v2-card, a.v2-card { cursor: pointer; }
button.v2-card:hover, a.v2-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px rgba(245,197,75,.6), 0 14px 34px rgba(45,226,230,.25); }
.v2-card .v2-ico { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; font-size: 1.5rem; background: var(--v2-blue); box-shadow: inset 0 1px 0 rgba(255,255,255,.5); }
.v2-card.gold .v2-ico { background: var(--v2-gold); color: #1b1200; }
.v2-card h3 { margin: 6px 0 0; font-size: 1.15rem; }
.v2-card p { margin: 0; color: var(--muted); font-size: .95rem; }
.v2-card .v2-go { margin-top: auto; padding-top: 8px; color: #2de2e6; font-weight: 800; }
.v2-badge { position: absolute; top: 14px; right: 14px; padding: 4px 10px; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; background: var(--v2-gold); color: #1b1200; }
.v2-club { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: center; padding: clamp(22px, 4vw, 44px); border-radius: 26px;
  background: radial-gradient(500px 260px at 0% 0%, rgba(245,197,75,.20), transparent 70%), linear-gradient(135deg, #1b1440, #151b33);
  border: 1px solid rgba(245,197,75,.45); box-shadow: 0 0 0 1px rgba(245,197,75,.15), 0 0 40px rgba(245,197,75,.12); }
.v2-club ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.v2-club li::before { content: "◆"; color: #f5c54b; margin-right: 10px; }
.v2-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; counter-reset: s; }
.v2-steps li { list-style: none; padding: 20px; border-radius: 18px; background: rgba(26,33,66,.6); border: 1px solid rgba(45,226,230,.18); }
.v2-steps li::before { counter-increment: s; content: counter(s); display: inline-grid; place-items: center; width: 36px; height: 36px; margin-bottom: 10px; border-radius: 50%; background: var(--v2-gold); color: #1b1200; font-weight: 900; }
.v2-steps { padding: 0; }
.v2-soon { display: grid; place-items: center; text-align: center; gap: 12px; min-height: 52vh; padding: 40px 20px; border-radius: 28px; background: linear-gradient(135deg, #1b1440, #0f1a3a); border: 1px solid rgba(245,197,75,.4); }
.v2-soon .v2-ico { font-size: 3rem; }
.v2-foot { margin-top: 48px; color: var(--muted); font-size: .85rem; text-align: center; }
@media (max-width: 760px) { .v2-hero, .v2-club { grid-template-columns: 1fr; } .v2-hero-art { min-height: 160px; order: -1; } .v2-cta a, .v2-cta button { flex: 1; } }
/* Logo v2 */
.v2-brand-h { height: 42px; width: auto; display: block; }
.v2-brand-i { height: 40px; width: 40px; display: none; }
@media (max-width: 760px) { .v2-brand-h { height: 34px; } }
@media (max-width: 380px) { .v2-brand-h { display: none; } .v2-brand-i { display: block; } }
.v2-hero-art img.v2-hero-logo { width: min(300px, 80%); border-radius: 22%; }
/* Coerenza globale: dialog (cassa, profilo, connessione, regole), input, pannelli */
html[data-skin="v2"] dialog { background: linear-gradient(160deg, #1a2142, #151b33) !important; color: var(--text) !important; border: 1px solid rgba(45,226,230,.28) !important; border-radius: 20px !important; box-shadow: 0 0 0 1px rgba(245,197,75,.12), 0 30px 80px rgba(0,0,0,.6) !important; }
html[data-skin="v2"] dialog::backdrop { background: rgba(5,7,18,.72); backdrop-filter: blur(4px); }
html[data-skin="v2"] input, html[data-skin="v2"] select, html[data-skin="v2"] textarea { background: #0f1430 !important; color: var(--text) !important; border: 1px solid #2a3366 !important; border-radius: 12px; }
html[data-skin="v2"] input:focus, html[data-skin="v2"] select:focus { border-color: #2de2e6 !important; box-shadow: 0 0 0 3px rgba(45,226,230,.2); }
html[data-skin="v2"] .lobby-product-tabs button { background: #1a2142; border: 1px solid #2a3366; border-radius: 999px; color: var(--text); }
html[data-skin="v2"] h1, html[data-skin="v2"] .lobby-heading h1 { color: #e8ecff; }
html[data-skin="v2"] .eyebrow, html[data-skin="v2"] .v2-section > h2 { color: #f5c54b; }
html[data-skin="v2"] .balance strong { color: #2de2e6; }
html[data-skin="v2"] .balance, html[data-skin="v2"] .connection-chip { background: #0f1430; border: 1px solid #2a3366; border-radius: 999px; }
html[data-skin="v2"] .lobby-product-tabs button.is-active *, html[data-skin="v2"] .lobby-product-tabs button.is-active strong { color: #0b0f1e !important; }
/* 15/10/2026: card premium - fondo scuro, bordo oro sottile, icone metalliche (niente azzurro chiaro piatto) */
.v2-card { background: radial-gradient(140% 90% at 0% 0%, rgba(245,197,75,.10), transparent 55%), linear-gradient(160deg, #181d3d, #0f1430) !important;
  border: 1px solid rgba(245,197,75,.38) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.06), 0 0 18px rgba(245,197,75,.08), 0 10px 26px rgba(0,0,0,.35) !important; }
button.v2-card:hover, a.v2-card:hover { border-color: rgba(245,197,75,.8) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 26px rgba(245,197,75,.22), 0 14px 34px rgba(0,0,0,.45) !important; }
.v2-card .v2-ico, .v2-card.gold .v2-ico, .v2-soon .v2-ico { width: 64px; height: 64px; border-radius: 18px; color: inherit;
  background: radial-gradient(circle at 50% 30%, #2a2f5c, #0b0f1e 75%) !important;
  border: 1px solid rgba(245,197,75,.55); box-shadow: inset 0 1px 0 rgba(255,255,255,.18), inset 0 -6px 12px rgba(0,0,0,.5), 0 0 14px rgba(245,197,75,.15) !important; }
.v2-ico svg { width: 46px; height: 46px; transition: transform .25s ease; }
button.v2-card:hover .v2-ico svg, a.v2-card:hover .v2-ico svg { transform: translateY(-2px) scale(1.06); }
.v2-soon .v2-ico.v2-ico-xl { width: 96px; height: 96px; } .v2-ico-xl svg { width: 70px; height: 70px; }
.v2-card .v2-go { color: #f5c54b; }
.v2-steps li { border-color: rgba(245,197,75,.3); background: linear-gradient(160deg, #181d3d, #0f1430); }
/* Pagine account v2 (Accedi / Registrati / Password) */
.v2-auth { max-width: 440px; margin: 24px auto 0; padding: 28px clamp(18px, 4vw, 34px); border-radius: 24px; background: linear-gradient(160deg, #181d3d, #0f1430); border: 1px solid rgba(245,197,75,.4); box-shadow: 0 0 30px rgba(245,197,75,.10), 0 24px 60px rgba(0,0,0,.5); }
.v2-auth-brand img { display: block; width: min(280px, 90%); margin: 0 auto 16px; }
.v2-auth h1 { font-size: 1.6rem; text-align: center; } .v2-auth > p { text-align: center; }
.v2-auth-form { display: grid; gap: 14px; margin-top: 10px; }
.v2-field { display: grid; gap: 6px; font-weight: 700; font-size: .9rem; } .v2-field input { min-height: 46px; padding: 0 14px; font-size: 1rem; }
.v2-check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); } .v2-check input { margin-top: 3px; width: 18px; height: 18px; }
.v2-auth-submit { display: flex; align-items: center; justify-content: center; min-height: 50px; border-radius: 999px; font-size: 1.05rem; cursor: pointer; text-decoration: none; }
.v2-auth-msg { min-height: 1.2em; margin: 0; font-size: .92rem; } .v2-auth-msg[data-tone="err"] { color: #ff8a95; } .v2-auth-msg[data-tone="ok"] { color: #2de2e6; }
.v2-auth-foot { margin-top: 16px; text-align: center; font-size: .9rem; color: var(--muted); } .v2-auth-foot a { color: #f5c54b; }

/* 26/10/2026 game image icons */
.v2-card .v2-ico:has(.v2-gi){ background:none !important; box-shadow:none !important; }
.v2-gi{ width:64px; height:64px; border-radius:18px; object-fit:cover; display:block; box-shadow:0 6px 16px rgba(0,0,0,.45); }
button.v2-card:hover .v2-ico .v2-gi, a.v2-card:hover .v2-ico .v2-gi{ transform:translateY(-2px) scale(1.06); transition:transform .25s ease; }

/* 26/10/2026 FIX titolo card sempre visibile */
.v2-card h3{ color:#f3f5ff !important; }

/* 26/10/2026 icone premium lobby/negozio + badge NOVITA' */
.v2-soon .v2-ico:has(.v2-gi){ background:none !important; box-shadow:none !important; }
.v2-ico-xl .v2-gi{ width:96px; height:96px; border-radius:24px; }
.v2-ni{ width:22px; height:22px; border-radius:6px; object-fit:cover; display:inline-block; vertical-align:middle; box-shadow:0 2px 6px rgba(0,0,0,.45); }
.fpk-gs__gem .v2-gi{ width:56px; height:56px; border-radius:16px; margin:0 auto; }
.fpk-gs__gem:has(.v2-gi){ filter:drop-shadow(0 0 10px rgba(45,226,230,.45)); }
.v2-badge.v2-badge-new{ background:linear-gradient(135deg,#fff3c4,#f5c451 45%,#c98a12); color:#1b1200; box-shadow:0 0 0 1px rgba(255,236,170,.7),0 4px 14px rgba(245,196,81,.55); z-index:2; }

/* 28/10/2026 vetrina "Cosa offriamo": banner illustrati cartoon (assets/brand/v2/cards/card-*.webp) */
.v2-grid-art{ grid-template-columns:repeat(auto-fill,minmax(260px,1fr)); gap:20px; }
.v2-grid-art .v2-card{ padding:0 0 18px; overflow:hidden; }
.v2-grid-art .v2-card > :not(.v2-art):not(.v2-badge){ margin-left:20px; margin-right:20px; }
.v2-art{ display:block; width:100%; aspect-ratio:4/3; overflow:hidden; border-bottom:1px solid rgba(245,197,75,.45); background:#0c2862; margin-bottom:6px; }
.v2-art img{ width:100%; height:100%; object-fit:cover; display:block; transition:transform .35s ease; }
button.v2-card:hover .v2-art img, a.v2-card:hover .v2-art img{ transform:scale(1.05); }
.v2-grid-art .v2-badge{ z-index:2; }
@media (max-width:640px){ .v2-grid-art{ grid-template-columns:1fr; gap:16px; } }
