/* Temi del profilo animati: premium (1500 punti) ed esclusive per i supporter.
   Questo file contiene: le anteprime in miniatura del negozio (sezione 1);
   i temi sul profilo, i decori e le rifiniture delle esclusive vengono aggiunti
   in fondo, una sezione per volta.
   Regole: si animano solo transform, opacity e background-position; con
   prefers-reduced-motion le animazioni si fermano e restano i colori. */

/* ============ 1. Anteprime nel negozio (.tn-shop-swatch) ============ */
.tn-shop-gruppo { margin: .7rem 0 .25rem; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; opacity: .7; }
.tn-shop-gruppo.is-sup { color: #ffd36b; opacity: 1; }
.tn-shop-lock { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--tn-line); opacity: .75; font-size: .78rem; }
.tn-shop-tema-nome { flex: 1; min-width: 0; }

.tn-shop-swatch { position: relative; overflow: hidden; isolation: isolate; }
.tn-shop-swatch::before, .tn-shop-swatch::after { content: ""; position: absolute; pointer-events: none; }

/* Galassia: nebulosa che ruota + stelle che brillano */
.theme-preview.theme-galassia-preview { background: #04020d; box-shadow: 0 0 0 2px #04020d, 0 0 0 3px rgba(247,37,133,.7), 0 0 14px rgba(114,9,183,.7); }
.theme-galassia-preview::before { inset: -60%; background: conic-gradient(#3a0ca3, #7209b7, #f72585, #4361ee, #3a0ca3); opacity: .8; animation: tema-mini-gira 9s linear infinite; }
.theme-galassia-preview::after { inset: 0; background-image: radial-gradient(1.5px 1.5px at 25% 30%, #fff, transparent), radial-gradient(1px 1px at 70% 25%, #fff, transparent), radial-gradient(1.5px 1.5px at 45% 75%, #fff, transparent), radial-gradient(1px 1px at 82% 65%, #fff, transparent); animation: tema-mini-brilla 1.6s ease-in-out infinite alternate; }

/* Olografico: pellicola arcobaleno che scorre */
.theme-preview.theme-olografico-preview { background: linear-gradient(115deg, #ff9ad5, #9ad0ff, #b5ffcf, #fff59a, #ffb08a, #d0a0ff, #ff9ad5); background-size: 300% 300%; animation: tema-mini-scorri 4s linear infinite alternate; box-shadow: 0 0 0 2px #120f1f, 0 0 0 3px #ff9ad5, 0 0 14px rgba(154,208,255,.7); }
.theme-olografico-preview::after { inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 4px, rgba(255,255,255,.3) 4px 5px); }

/* Synthwave: sole al neon e griglia che corre */
.theme-preview.theme-synthwave-preview { background: linear-gradient(#1a0533 0%, #3d0a5c 45%, #ff2f92 62%, #1a0533 63%); box-shadow: 0 0 0 2px #1a0533, 0 0 0 3px #00f0ff, 0 0 14px rgba(255,47,146,.7); }
.theme-synthwave-preview::before { left: 25%; top: 12%; width: 50%; height: 50%; border-radius: 50%; background: linear-gradient(#ffd23f, #ff2f92); box-shadow: 0 0 10px #ff2f92; }
.theme-synthwave-preview::after { left: -50%; right: -50%; bottom: 0; height: 45%; background-image: linear-gradient(#ff2f92 1px, transparent 1px), linear-gradient(90deg, #ff2f92 1px, transparent 1px); background-size: 8px 8px; transform: perspective(40px) rotateX(55deg); transform-origin: bottom; animation: tema-mini-griglia .8s linear infinite; }

/* Cristallo: gemma che fluttua su fondo blu */
.theme-preview.theme-sup_cristallo-preview { background: radial-gradient(circle at 50% 120%, #3d7bff, #0e2a7a 45%, #050b2a 80%); box-shadow: 0 0 0 2px #e8eeff, 0 0 14px rgba(111,195,255,.8); }
.theme-sup_cristallo-preview::before { left: 9px; top: 5px; width: 10px; height: 10px; background: linear-gradient(135deg, #e6f6ff, #6fc3ff 45%, #1d5bd8); box-shadow: 0 0 8px #6fc3ff; transform: rotate(45deg); animation: tema-mini-fluttua 2.4s ease-in-out infinite; }

/* Notte di Coppa: prato a strisce, faro che oscilla */
.theme-preview.theme-sup_coppa-preview { background: repeating-linear-gradient(90deg, #1f7a2e 0 6px, #25903a 6px 12px); box-shadow: 0 0 0 2px #fff, 0 0 0 3px #ffd23f, 0 0 12px rgba(255,255,220,.6); }
.theme-sup_coppa-preview::before { left: 2px; top: -6px; width: 26px; height: 40px; background: conic-gradient(from 160deg at 50% 0%, transparent 0deg, rgba(255,255,220,.6) 20deg, transparent 40deg); transform-origin: 50% 0; animation: tema-mini-faro 2.6s ease-in-out infinite alternate; }

/* Operazione: mimetica, radar che gira */
.theme-preview.theme-sup_operazione-preview { background-color: #1d2318; background-image: linear-gradient(45deg, #2a331f 25%, transparent 25%, transparent 75%, #2a331f 75%), linear-gradient(45deg, #2a331f 25%, #161b12 25%, #161b12 75%, #2a331f 75%); background-size: 8px 8px; background-position: 0 0, 4px 4px; box-shadow: 0 0 0 2px #9dff6a, 0 0 12px rgba(157,255,106,.5); }
.theme-sup_operazione-preview::before { right: -8px; bottom: -8px; width: 32px; height: 32px; border-radius: 50%; background: conic-gradient(from 0deg, rgba(157,255,106,.8), transparent 60deg); animation: tema-mini-gira 2.2s linear infinite; }

/* Tempesta: cielo a fumetto, cerchio viola che si stringe */
.theme-preview.theme-sup_tempesta-preview { background: linear-gradient(#3fb6ff, #7d5cff 70%, #3a1d8a); box-shadow: 0 0 0 2px #fff35c, 0 0 0 3px #24104f, 0 0 12px rgba(125,92,255,.7); }
.theme-sup_tempesta-preview::before { left: 50%; top: 50%; width: 36px; height: 36px; margin: -18px; border-radius: 50%; box-shadow: 0 0 0 30px rgba(106,43,217,.85), inset 0 0 6px 2px #b98cff; animation: tema-mini-stringi 3s ease-in-out infinite alternate; }

/* Blocchi: cielo, terra a cubetti, nuvola che passa */
.theme-preview.theme-sup_blocchi-preview { background: linear-gradient(#7ec8ff 0 60%, #5dbb3a 60% 72%, #8b5a2b 72%); box-shadow: 0 0 0 2px #3b3b3b, 0 0 10px rgba(126,200,255,.7); border-radius: 2px; }
.theme-sup_blocchi-preview::before { left: 0; top: 5px; width: 12px; height: 6px; background: #fff; box-shadow: 14px 5px 0 #fff; animation: tema-mini-nuvola 5s linear infinite; }

/* Notte in città: tramonto, skyline, fari che sfrecciano */
.theme-preview.theme-sup_citta-preview { background: linear-gradient(#2a0b4a 0%, #8a1f6b 45%, #ff7a59 70%, #ffc46b 80%); box-shadow: 0 0 0 2px #ff4fd8, 0 0 12px rgba(255,79,216,.7); }
.theme-sup_citta-preview::after { left: 0; right: 0; bottom: 0; height: 9px; background: #0b0316; }
.theme-sup_citta-preview::before { left: -14px; bottom: 5px; width: 14px; height: 2px; z-index: 1; background: linear-gradient(90deg, transparent, #ff3b6b); box-shadow: 0 0 6px #ff3b6b; animation: tema-mini-auto 1.5s linear infinite; }

@keyframes tema-mini-gira { to { transform: rotate(360deg); } }
@keyframes tema-mini-brilla { from { opacity: .35; } to { opacity: 1; } }
@keyframes tema-mini-scorri { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes tema-mini-griglia { to { background-position: 0 8px; } }
@keyframes tema-mini-fluttua { 50% { transform: translateY(8px) rotate(45deg); } }
@keyframes tema-mini-faro { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes tema-mini-stringi { from { transform: scale(1); } to { transform: scale(.55); } }
@keyframes tema-mini-nuvola { from { transform: translateX(-14px); } to { transform: translateX(32px); } }
@keyframes tema-mini-auto { to { transform: translateX(46px); } }

@media (prefers-reduced-motion: reduce) {
  .tn-shop-swatch, .tn-shop-swatch::before, .tn-shop-swatch::after { animation: none !important; }
}

/* ============ 2. Temi premium sul profilo ============
   Struttura: .tema-on (contenitore pagina) > .tema-decori (decori, dietro)
   > .tema-decori-cielo (alto quanto lo schermo, resta fermo mentre si
   scorre: le particelle si vedono sempre) > strati e particelle.
   I riquadri restano scuri (--tcard) sopra a tutto: il testo si legge. */

/* Colori dei tre temi nuovi (stesse variabili dei temi classici) */
.profile-theme-galassia {
  --ta: #ff5fae; --ta2: #b06cff; --ta3: #8fb4ff; --ta-rgb: 247, 37, 133; --tbtn: #fff;
  --tcard: rgba(10, 6, 28, .88); --tcard-solid: #0a061c;
  --tbg: radial-gradient(900px 500px at 15% 10%, rgba(114,9,183,.35), transparent 65%),
         radial-gradient(800px 500px at 90% 80%, rgba(247,37,133,.22), transparent 65%),
         #04020d;
  --tband: radial-gradient(1.5px 1.5px at 12% 30%, #fff, transparent), radial-gradient(1px 1px at 30% 70%, #fff, transparent),
           radial-gradient(2px 2px at 55% 25%, #fff, transparent), radial-gradient(1px 1px at 78% 55%, #fff, transparent),
           radial-gradient(1.5px 1.5px at 92% 20%, #fff, transparent),
           linear-gradient(transparent 55%, #0a061c),
           radial-gradient(60% 90% at 30% 40%, rgba(247,37,133,.75), transparent 70%),
           radial-gradient(55% 90% at 75% 50%, rgba(67,97,238,.8), transparent 70%),
           linear-gradient(135deg, #3a0ca3, #7209b7 50%, #1a0636);
}
.profile-theme-olografico {
  --ta: #ff9ad5; --ta2: #9ad0ff; --ta3: #b5ffcf; --ta-rgb: 255, 154, 213; --tbtn: #120f1f;
  --tcard: rgba(18, 15, 31, .86); --tcard-solid: #120f1f;
  --tbg: linear-gradient(160deg, #1d1830, #0d0b17);
  --tband: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 8px, rgba(255,255,255,.22) 8px 9px),
           linear-gradient(transparent 55%, #120f1f),
           linear-gradient(115deg, #ff9ad5, #9ad0ff, #b5ffcf, #fff59a, #ffb08a, #d0a0ff, #ff9ad5);
}
.profile-theme-synthwave {
  --ta: #00f0ff; --ta2: #ff2f92; --ta3: #ffd23f; --ta-rgb: 0, 240, 255; --tbtn: #1a0533;
  --tcard: rgba(22, 4, 44, .9); --tcard-solid: #16042c;
  --tbg: linear-gradient(#1a0533 0%, #3d0a5c 55%, #1a0533 100%);
  --tband: linear-gradient(transparent 70%, #16042c),
           repeating-linear-gradient(transparent 0 10px, #16042c 10px 13px) 50% 100% / 120px 50px no-repeat,
           radial-gradient(circle at 50% 100%, #ffd23f 0, #ff8a3d 45%, #ff2f92 70%, transparent 71%) 50% 100% / 120px 60px no-repeat,
           linear-gradient(#1a0533 0%, #3d0a5c 55%, #ff2f92 100%);
}

/* Livello dei decori: dietro ai contenuti, mai cliccabile */
.tema-decori {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  border-radius: inherit; overflow: hidden; overflow: clip;
}
.tema-decori-cielo { position: sticky; top: 0; height: min(100vh, 100%); overflow: hidden; --h: 100vh; }
@supports (height: 1cqh) { .tema-decori-cielo { container-type: size; --h: 100cqh; } }
.tema-decori-cielo > div, .td-particelle { position: absolute; pointer-events: none; }
.td-particelle { inset: 0; }
.td-p { position: absolute; display: block; font-style: normal; will-change: transform, opacity; }
.tema-on > .container { position: relative; z-index: 1; }
/* Avatar: alone che pulsa (solo opacity/transform) */
.tema-on:is(.profile-theme-sunset, .profile-theme-ice, .profile-theme-galassia, .profile-theme-olografico, .profile-theme-synthwave) .flair-wrapper { position: relative; }
.tema-on:is(.profile-theme-sunset, .profile-theme-ice, .profile-theme-galassia, .profile-theme-olografico, .profile-theme-synthwave) .flair-wrapper::after {
  content: ""; position: absolute; inset: -28px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--ta-rgb), .95) 68%, rgba(var(--ta-rgb), .4) 82%, transparent);
  animation: td-alone 2.2s ease-in-out infinite;
}
@keyframes td-alone { 0%, 100% { opacity: .45; transform: scale(.94); } 50% { opacity: 1; transform: scale(1.08); } }
/* Pulsanti fuori dai riquadri: fondo scuro, si leggono sopra gli effetti */
.tema-on:is(.profile-theme-sunset, .profile-theme-ice, .profile-theme-galassia, .profile-theme-olografico, .profile-theme-synthwave) .btn:not(.btn-primary):not(.btn-twitch) { background-color: rgba(8, 4, 16, .62); }
.tema-on:is(.profile-theme-sunset, .profile-theme-ice, .profile-theme-galassia, .profile-theme-olografico, .profile-theme-synthwave) .text-muted:not(h1, h2, h3, h4, h5, h6) { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 10px rgba(0,0,0,.7); }

/* ---- Tramonto Infuocato: lava, braci che salgono, nome d'oro ---- */
.profile-theme-sunset.tema-on { --tbg: #2a0610; border-color: rgba(255,179,71,.6); }
.tema-decori-sunset .td-lava {
  inset: -50%;
  background: linear-gradient(120deg, #2a0610 0%, #7a1a0c 18%, #ff6a2a 34%, #ffb347 44%, #c2361a 56%, #7a1a0c 70%, #ff6a2a 84%, #2a0610 100%);
  opacity: .9; animation: td-lava 16s ease-in-out infinite alternate;
}
.tema-decori-sunset .td-magma {
  inset: -30%;
  background: radial-gradient(28% 22% at 25% 70%, rgba(255,210,122,.55), transparent 70%),
              radial-gradient(30% 25% at 75% 30%, rgba(255,61,0,.55), transparent 70%),
              radial-gradient(22% 18% at 60% 85%, rgba(255,140,40,.5), transparent 70%);
  animation: td-magma 11s ease-in-out infinite alternate;
}
.tema-decori-sunset .td-velo { inset: 0; background: radial-gradient(120% 90% at 50% 40%, transparent 35%, rgba(26,3,8,.75)); }
.tema-decori-sunset .td-p {
  left: var(--x); bottom: -12px; width: 9px; height: 9px; border-radius: 50%;
  background: #ffe2a0; box-shadow: 0 0 10px 3px #ff8a3d, 0 0 22px 6px rgba(255,61,0,.5);
  animation: td-sale var(--d) linear var(--w) infinite;
}
@keyframes td-lava { from { transform: translate3d(-14%, -8%, 0) rotate(-4deg); } to { transform: translate3d(14%, 8%, 0) rotate(5deg); } }
@keyframes td-magma { from { transform: translate3d(-10%, 6%, 0) scale(1); } to { transform: translate3d(10%, -6%, 0) scale(1.15); } }
@keyframes td-sale {
  0% { transform: translate3d(0, 0, 0) scale(var(--s)); opacity: 0; }
  12% { opacity: 1; }
  80% { opacity: .9; }
  100% { transform: translate3d(var(--dx), calc(var(--h) * -1.04), 0) scale(calc(var(--s) * .4)); opacity: 0; }
}
.profile-theme-sunset .tema-head::before { background-size: 100% 100%, 100% 100%, 300% 300%; animation: td-fascia 9s ease-in-out infinite alternate; }
@keyframes td-fascia { from { background-position: 0 0, 0 0, 0% 50%; } to { background-position: 0 0, 0 0, 100% 50%; } }
.profile-theme-sunset .tema-head .card-title:not([class*="vip-"]) {
  background: linear-gradient(90deg, #fff3c4, #ffb347, #ff5e3a, #ffd166, #fff3c4); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
  text-shadow: none; filter: drop-shadow(0 0 10px rgba(255,138,61,.7)); animation: td-brilla 3s linear infinite;
}
.profile-theme-sunset .card { border-color: rgba(255,179,71,.55) !important; box-shadow: inset 0 1px 0 rgba(255,210,122,.15), 0 18px 50px -18px rgba(255,90,30,.75) !important; }
@keyframes td-brilla { to { background-position: 200% 0; } }

/* ---- Neve & Ghiaccio: neve che cade, vetro smerigliato, riflesso ---- */
.profile-theme-ice.tema-on { --tbg: radial-gradient(circle at 30% 0%, #3b7bbf, #0b2140 60%, #050d1c); border-color: rgba(212,244,255,.6); }
.tema-decori-ice .td-aurora {
  inset: -20% -40%;
  background: radial-gradient(40% 30% at 30% 20%, rgba(155,231,255,.35), transparent 70%),
              radial-gradient(35% 28% at 70% 10%, rgba(90,169,255,.35), transparent 70%);
  animation: td-aurora 14s ease-in-out infinite alternate;
}
.tema-decori-ice .td-riflesso {
  top: -10%; bottom: -10%; left: 0; width: 45%;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,.08) 38%, rgba(255,255,255,.4) 50%, rgba(255,255,255,.08) 62%, transparent 80%);
  transform: translateX(-120%); animation: td-riflesso 7s ease-in-out infinite;
}
.tema-decori-ice .td-p {
  left: var(--x); top: -40px; color: #fff; font-size: 26px; line-height: 1;
  text-shadow: 0 0 8px rgba(155,231,255,.9); opacity: .9;
  animation: td-cade var(--d) linear var(--w) infinite;
}
.tema-decori-ice .td-p::before { content: "\2744\FE0E"; }
@keyframes td-aurora { from { transform: translate3d(-8%, 0, 0); } to { transform: translate3d(8%, 4%, 0); } }
@keyframes td-riflesso { 0% { transform: translateX(-120%); } 55%, 100% { transform: translateX(260%); } }
@keyframes td-cade {
  0% { transform: translate3d(0, 0, 0) rotate(0) scale(var(--s)); }
  50% { transform: translate3d(var(--dx), calc(var(--h) * .55), 0) rotate(180deg) scale(var(--s)); }
  100% { transform: translate3d(0, calc(var(--h) * 1.08), 0) rotate(360deg) scale(var(--s)); }
}
.profile-theme-ice .tema-head::after {
  content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 132px; z-index: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent, rgba(255,255,255,.75), transparent);
  transform: translateX(-110%); animation: td-riflesso 5s ease-in-out infinite;
}
.profile-theme-ice .card {
  background: rgba(16, 40, 76, .66) !important; border-color: rgba(212,244,255,.5) !important;
  -webkit-backdrop-filter: blur(10px) saturate(1.3); backdrop-filter: blur(10px) saturate(1.3);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 0 30px rgba(155,231,255,.08), 0 18px 44px -20px rgba(155,231,255,.7) !important;
}
.profile-theme-ice .tema-head .card-title:not([class*="vip-"]) { color: #e6faff !important; text-shadow: 0 0 12px #9be7ff, 0 0 28px #5aa9ff, 0 0 46px rgba(90,169,255,.6); }

/* ---- Galassia: nebulosa che ruota, stelle che brillano, comete ---- */
/* Nebulosa: macchie sfumate gia' nel gradiente (niente blur, niente mask):
   il livello si disegna una volta e poi ruota solo con transform */
.tema-decori-galassia .td-nebulosa {
  left: 50%; top: 50%; width: 100vmax; height: 100vmax; margin: -50vmax 0 0 -50vmax;
  background: radial-gradient(30% 30% at 32% 34%, rgba(247,37,133,.62), rgba(247,37,133,.28) 45%, transparent),
              radial-gradient(28% 28% at 70% 30%, rgba(67,97,238,.6), rgba(67,97,238,.25) 45%, transparent),
              radial-gradient(30% 30% at 64% 72%, rgba(114,9,183,.7), rgba(114,9,183,.3) 45%, transparent),
              radial-gradient(26% 26% at 30% 70%, rgba(58,12,163,.65), rgba(58,12,163,.25) 45%, transparent),
              radial-gradient(50% 50% at 50% 50%, rgba(114,9,183,.45), rgba(58,12,163,.2) 60%, transparent);
  opacity: .9; will-change: transform; animation: td-gira 50s linear infinite;
}
.tema-decori-galassia .td-stelle {
  inset: 0;
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 120px 80px, #fff, transparent),
                    radial-gradient(2px 2px at 60px 160px, #fff, transparent), radial-gradient(1px 1px at 190px 120px, #dfe6ff, transparent),
                    radial-gradient(1.5px 1.5px at 240px 30px, #fff, transparent), radial-gradient(1px 1px at 160px 220px, #ffd6ec, transparent);
  background-size: 260px 260px; animation: td-brillano 2.6s ease-in-out infinite alternate;
}
.tema-decori-galassia .td-stelle-b { background-size: 190px 190px; background-position: 70px 40px; animation-duration: 3.4s; animation-delay: -1.7s; }
.tema-decori-galassia .td-cometa {
  top: 12%; left: 60%; width: 160px; height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, #fff, rgba(255,95,174,.6) 30%, transparent);
  box-shadow: 0 0 8px #fff; opacity: 0; transform: rotate(-25deg);
  animation: td-cometa 9s ease-in infinite 2s;
}
.tema-decori-galassia .td-cometa-b { top: 35%; left: 85%; animation-delay: 6.5s; animation-duration: 11s; }
.tema-decori-galassia .td-p, .tema-decori-olografico .td-p {
  left: var(--x); top: var(--y); width: 26px; height: 26px;
  background: radial-gradient(closest-side, #fff, rgba(255,255,255,0)),
              linear-gradient(90deg, transparent 45%, #fff 50%, transparent 55%),
              linear-gradient(transparent 45%, #fff 50%, transparent 55%);
  filter: drop-shadow(0 0 6px rgba(var(--ta-rgb), .9));
  animation: td-scintilla var(--d) ease-in-out var(--w) infinite;
}
@keyframes td-gira { to { transform: rotate(360deg); } }
@keyframes td-brillano { from { opacity: .35; } to { opacity: 1; } }
@keyframes td-cometa {
  0% { opacity: 0; transform: rotate(-25deg) translateX(0); }
  3% { opacity: 1; }
  12% { opacity: 0; transform: rotate(-25deg) translateX(-55vw); }
  100% { opacity: 0; transform: rotate(-25deg) translateX(-55vw); }
}
@keyframes td-scintilla { 0%, 100% { opacity: 0; transform: scale(.2) rotate(0); } 50% { opacity: 1; transform: scale(calc(var(--s) * 1.4)) rotate(45deg); } }
.profile-theme-galassia .tema-head .card-title:not([class*="vip-"]) { color: #fff !important; text-shadow: 0 0 14px #f72585, 0 0 30px #7209b7, 0 0 50px rgba(114,9,183,.8); }
.profile-theme-galassia :is(h3, h4, h5, h6):not([class*="vip-"]) {
  background: linear-gradient(90deg, #ff9ad5, #ff5fae, #b06cff, #8fb4ff); -webkit-background-clip: text; background-clip: text;
  color: transparent !important; text-shadow: none;
}
.profile-theme-galassia .card { border-color: rgba(176,108,255,.55) !important; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(247,37,133,.15), 0 20px 50px -20px rgba(176,108,255,.8) !important; }

/* ---- Olografico: pellicola arcobaleno, righe, lampo come le carte rare ---- */
.tema-decori-olografico .td-pellicola {
  inset: -50%;
  background: linear-gradient(115deg, #ff9ad5, #9ad0ff, #b5ffcf, #fff59a, #ffb08a, #d0a0ff, #ff9ad5, #9ad0ff, #b5ffcf);
  opacity: .62; animation: td-pellicola 12s ease-in-out infinite alternate;
}
.tema-decori-olografico .td-righe { inset: 0; background: repeating-linear-gradient(115deg, rgba(255,255,255,0) 0 8px, rgba(255,255,255,.14) 8px 9px); }
.tema-decori-olografico .td-lampo {
  top: -20%; bottom: -20%; left: 0; width: 35%;
  background: linear-gradient(115deg, transparent 25%, rgba(255,255,255,.55) 50%, transparent 75%);
  transform: translateX(-130%) skewX(-10deg); animation: td-lampo 5.5s ease-in-out infinite;
}
@keyframes td-pellicola { from { transform: translate3d(-18%, -10%, 0); } to { transform: translate3d(18%, 10%, 0); } }
@keyframes td-lampo { 0% { transform: translateX(-130%) skewX(-10deg); } 45%, 100% { transform: translateX(330%) skewX(-10deg); } }
.profile-theme-olografico .tema-head .card-title:not([class*="vip-"]),
.profile-theme-olografico :is(h3, h4, h5, h6):not([class*="vip-"]) {
  background: linear-gradient(90deg, #ff7ac6, #7ac8ff, #8affc0, #ffe97a, #ff7ac6); background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
  text-shadow: none; filter: drop-shadow(0 1px 0 rgba(0,0,0,.55)); animation: td-brilla 4s linear infinite;
}
.profile-theme-olografico .card {
  border-color: rgba(255,255,255,.55) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.2), -8px 0 26px -12px #9ad0ff, 8px 0 26px -12px #ff9ad5, 0 20px 44px -22px #b5ffcf !important;
}
.profile-theme-olografico .flair-wrapper { background: conic-gradient(#ff9ad5, #9ad0ff, #b5ffcf, #fff59a, #ffb08a, #d0a0ff, #ff9ad5); }

/* ---- Synthwave: sole al neon a righe, griglia che corre ---- */
.tema-decori-synthwave .td-stelle {
  inset: 0 0 45% 0;
  background-image: radial-gradient(1.5px 1.5px at 30px 40px, #fff, transparent), radial-gradient(1px 1px at 150px 90px, #ffd6f0, transparent),
                    radial-gradient(1px 1px at 230px 20px, #fff, transparent), radial-gradient(1.5px 1.5px at 90px 150px, #c9fbff, transparent);
  background-size: 280px 200px; animation: td-brillano 3s ease-in-out infinite alternate;
}
.tema-decori-synthwave .td-sole {
  left: 50%; top: calc(62% - 340px); width: 340px; height: 340px; margin-left: -170px; border-radius: 50%;
  background: linear-gradient(#ffe45c 0%, #ffb03f 40%, #ff2f92 85%);
  -webkit-mask: linear-gradient(#000 0 50%, transparent 50%), repeating-linear-gradient(#000 0 14px, transparent 14px 22px);
  mask: linear-gradient(#000 0 50%, transparent 50%), repeating-linear-gradient(#000 0 14px, transparent 14px 22px);
  filter: drop-shadow(0 0 40px rgba(255,47,146,.9)); animation: td-sole 4s ease-in-out infinite alternate;
}
.tema-decori-synthwave .td-orizzonte {
  left: 0; right: 0; top: 62%; height: 3px;
  background: linear-gradient(90deg, transparent, #ff2f92 15%, #ffb3dc 50%, #ff2f92 85%, transparent);
  box-shadow: 0 0 24px 6px rgba(255,47,146,.75);
}
/* Griglia: il piano in prospettiva e' fermo; dentro scorre un livello a
   quadretti (piu' alto di un quadretto) con solo translateY. La sfumatura
   verso l'orizzonte e' un velo fermo sopra, non una mask. */
.tema-decori-synthwave .td-griglia {
  left: -60%; right: -60%; top: 62%; bottom: 0; overflow: hidden;
  transform: perspective(300px) rotateX(62deg); transform-origin: 50% 0;
}
.tema-decori-synthwave .td-griglia::before {
  content: ""; position: absolute; left: 0; right: 0; top: -60px; bottom: 0;
  background-image: linear-gradient(rgba(255,47,146,.95) 2px, transparent 2px), linear-gradient(90deg, rgba(255,47,146,.95) 2px, transparent 2px);
  background-size: 60px 60px; background-position: 50% 0;
  will-change: transform; animation: td-griglia 1.1s linear infinite;
}
.tema-decori-synthwave .td-griglia::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 25%;
  background: linear-gradient(#330950, rgba(51,9,80,0));
}
@keyframes td-sole { from { opacity: .82; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes td-griglia { from { transform: translateY(0); } to { transform: translateY(60px); } }
.profile-theme-synthwave .tema-head .card-title:not([class*="vip-"]) { color: #fff !important; text-shadow: 0 0 8px #00f0ff, 0 0 22px #00f0ff, 3px 3px 0 #ff2f92; }
.profile-theme-synthwave :is(h3, h4, h5, h6):not([class*="vip-"]) { text-transform: uppercase; letter-spacing: .05em; color: #00f0ff !important; text-shadow: 0 0 10px rgba(0,240,255,.7), 2px 2px 0 rgba(255,47,146,.85); }
.profile-theme-synthwave .card { border-radius: 10px !important; border-color: rgba(0,240,255,.7) !important; box-shadow: 0 0 18px -4px rgba(0,240,255,.6), 6px 6px 0 rgba(255,47,146,.55) !important; }

/* ---- Schermi piccoli: metà particelle, effetti più leggeri ---- */
@media (max-width: 575.98px) {
  .td-particelle > .td-p:nth-child(2n) { display: none; }
  .profile-theme-ice .tema-head::after { height: 112px; }
  .profile-theme-ice .card { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(16, 40, 76, .85) !important; }
  .tema-decori-synthwave .td-sole { width: 220px; height: 220px; margin-left: -110px; top: calc(62% - 220px); }
}

/* ---- Movimento ridotto: tutto fermo, restano colori e decori ---- */
@media (prefers-reduced-motion: reduce) {
  .tema-decori *, .tema-decori *::before, .tema-decori *::after,
  .profile-theme-sunset .tema-head::before, .profile-theme-sunset .tema-head .card-title,
  .profile-theme-ice .tema-head::after, .profile-theme-ice .flair-wrapper::after,
  .profile-theme-galassia .flair-wrapper::after,
  .profile-theme-olografico .tema-head .card-title, .profile-theme-olografico :is(h3, h4, h5, h6),
  .profile-theme-synthwave .flair-wrapper::after,
  .tema-on .flair-wrapper::after { animation: none !important; }
  .tema-decori-sunset .td-p { opacity: .8; bottom: var(--y); transform: scale(var(--s)); }
  .tema-decori-ice .td-p { top: var(--y); transform: scale(var(--s)); }
  .tema-decori :is(.td-p, .td-stelle) { opacity: .8; }
  .tema-decori-galassia .td-p, .tema-decori-olografico .td-p { transform: scale(var(--s)); }
  .tema-decori :is(.td-riflesso, .td-lampo, .td-cometa), .profile-theme-ice .tema-head::after { display: none; }
}

/* ============ 3. Esclusive per i supporter sul profilo ============
   Come i premium (decori dietro, riquadri sopra) piu': un riquadro a tema
   per ogni genere, l'etichetta "Esclusiva supporter", e lo strato sopra ai
   contenuti (.tema-sup-strato) con la luce che segue il puntatore, il lampo
   d'entrata e la polvere al clic (static/js/tema-supporter.js).
   Ogni tema imposta --spot (colore della luce) e --lampo (colore del lampo). */

/* ---- Comune a tutte le esclusive ---- */
.tema-sup .flair-wrapper { position: relative; }
.tema-sup .flair-wrapper::after {
  content: ""; position: absolute; inset: -30px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(var(--ta-rgb), .95) 66%, rgba(var(--ta-rgb), .4) 82%, transparent);
  animation: td-alone 2.4s ease-in-out infinite;
}
.tema-sup:not(.profile-theme-sup_tempesta) .btn:not(.btn-primary):not(.btn-twitch) { background-color: rgba(8, 4, 16, .62); }
.tema-sup .tema-head .card-title:not([class*="vip-"]) { font-size: 2.1rem; font-weight: 900; }
/* Etichetta accanto al nome, con un riflesso che passa */
.tema-sup-etichetta {
  display: inline-block; padding: 5px 14px; border-radius: 99px;
  font-size: .72rem; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; line-height: 1.2;
  background-image: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%);
  background-size: 300% 100%; background-repeat: no-repeat; background-position: 150% 0;
  animation: tema-sup-etichetta 4s ease-in-out infinite 1.4s;
}
@keyframes tema-sup-etichetta { 0% { background-position: 150% 0; } 40%, 100% { background-position: -50% 0; } }

/* Strato sopra ai contenuti: mai cliccabile, non esce dal contenitore */
.tema-sup-strato {
  position: absolute; inset: 0; z-index: 2; pointer-events: none;
  border-radius: inherit; overflow: hidden; overflow: clip;
}
.tema-sup-luce {
  position: absolute; left: 0; top: 0; width: 560px; height: 560px; margin: -280px 0 0 -280px; border-radius: 50%;
  background: radial-gradient(closest-side, var(--spot, rgba(255,255,255,.18)), transparent);
  opacity: 0; transform: translate3d(var(--mx, 50%), var(--my, 200px), 0);
  transition: opacity .35s ease; will-change: transform;
}
.tema-sup-luce.is-on { opacity: 1; }
/* Lampo d'entrata: una striscia di luce passa una volta e svela la pagina */
.tema-sup-lampo {
  position: absolute; left: 0; top: 0; width: 75%; height: min(100vh, 100%);
  background: linear-gradient(100deg, transparent 15%, var(--lampo, #fff) 50%, transparent 85%);
  opacity: 0; transform: translateX(-105%); will-change: transform, opacity;
  animation: tema-sup-lampo 1.15s ease-out .1s 1 both;
}
@keyframes tema-sup-lampo {
  0% { transform: translateX(-105%); opacity: .95; }
  80% { opacity: .8; }
  100% { transform: translateX(140%); opacity: 0; }
}
.tema-sup > .container { animation: tema-sup-appari 1.15s ease-out 1; }
@keyframes tema-sup-appari { 0%, 30% { opacity: 0; transform: scale(.985); } 100% { opacity: 1; transform: none; } }

/* Polvere al clic (le crea il JS dentro lo strato) */
.tema-sup-p {
  position: absolute; display: block; font-style: normal; pointer-events: none; line-height: 1;
  will-change: transform, opacity; animation: tema-sup-polvere 1.45s cubic-bezier(.2, .6, .4, 1) forwards;
}
@keyframes tema-sup-polvere {
  0% { transform: translate3d(-50%, -50%, 0) rotate(0); opacity: 1; }
  65% { opacity: 1; }
  100% { transform: translate3d(calc(var(--dx) - 50%), calc(var(--dy) + 110px - 50%), 0) rotate(var(--rot)); opacity: 0; }
}
.tema-sup-p-cristallo { width: 13px; height: 13px; background: linear-gradient(135deg, #fff, #8fd3ff 45%, #2a6bff); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); }
.tema-sup-p-coriandoli { width: 8px; height: 14px; background: var(--c); border-radius: 1px; }
.tema-sup-p-scintille { width: 5px; height: 5px; border-radius: 50%; background: #ffe39a; box-shadow: 0 0 8px 3px #ff8a1f; }
.tema-sup-p-scintille.is-bossolo { width: 5px; height: 13px; border-radius: 2px; background: linear-gradient(#fff0b8, #d9a441 40%, #8a5a1a); box-shadow: none; }
.tema-sup-p-fulmini { font-size: 22px; color: #fff35c; text-shadow: 1px 1px 0 #24104f, -1px -1px 0 #24104f, 1px -1px 0 #24104f, -1px 1px 0 #24104f, 0 0 10px #b98cff; }
.tema-sup-p-pixel { width: 10px; height: 10px; background: var(--c); box-shadow: inset -3px -3px 0 rgba(0,0,0,.25); }
.tema-sup-p-neon { width: 6px; height: 6px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px 4px var(--c); }

/* ---- Cristallo: gioco di ruolo fantasy, finestre blu, cristalli ---- */
.profile-theme-sup_cristallo {
  --ta: #8fd3ff; --ta2: #3d7bff; --ta3: #e8eeff; --ta-rgb: 111, 195, 255; --tbtn: #06123a;
  --tcard: rgba(11, 26, 92, .92); --tcard-solid: #0b1a5c;
  --spot: rgba(150, 210, 255, .24); --lampo: #dcefff;
  --tbg: radial-gradient(circle at 50% 120%, #3d7bff 0%, #0e2a7a 45%, #050b2a 80%);
  --tband: linear-gradient(transparent 55%, #0b1a5c),
           radial-gradient(2px 2px at 18% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 72% 22%, #fff, transparent),
           radial-gradient(1.5px 1.5px at 40% 60%, #dff3ff, transparent), radial-gradient(2px 2px at 88% 55%, #fff, transparent),
           radial-gradient(circle at 50% 140%, #8fd3ff 0%, #2a6bff 35%, #0e2a7a 65%, #050b2a);
}
.profile-theme-sup_cristallo.tema-on { border-color: rgba(232,238,255,.7); }
.tema-decori-sup_cristallo .tema-decori-cielo { background: radial-gradient(circle at 50% 125%, #3d7bff 0%, #0e2a7a 45%, #050b2a 82%); }
.tema-decori-sup_cristallo .td-bagliore {
  left: 10%; right: 10%; bottom: -30%; height: 70%; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(111,195,255,.55), rgba(61,123,255,.18) 60%, transparent);
  animation: td-respira 5s ease-in-out infinite alternate;
}
.tema-decori-sup_cristallo .td-raggi {
  left: 50%; top: -20%; width: 140vmax; height: 140vmax; margin-left: -70vmax;
  background: repeating-conic-gradient(from 0deg at 50% 0%, rgba(180,220,255,.09) 0 4deg, transparent 4deg 14deg);
  opacity: .8; transform-origin: 50% 0; will-change: transform;
  animation: td-raggi 24s ease-in-out infinite alternate;
}
.tema-decori-sup_cristallo .td-stelle {
  inset: 0;
  background-image: radial-gradient(1.5px 1.5px at 20px 30px, #fff, transparent), radial-gradient(1px 1px at 140px 90px, #dff3ff, transparent),
                    radial-gradient(2px 2px at 70px 170px, #fff, transparent), radial-gradient(1px 1px at 210px 140px, #fff, transparent);
  background-size: 250px 230px; animation: td-brillano 2.8s ease-in-out infinite alternate;
}
.tema-decori-sup_cristallo .td-p {
  left: var(--x); top: var(--y); width: 46px; height: 46px;
  background: linear-gradient(135deg, #f2fbff 0%, #a8e0ff 30%, #4a9dff 60%, #1d5bd8 100%);
  clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%);
  opacity: .9; animation: td-gemma var(--d) ease-in-out var(--w) infinite;
}
.tema-decori-sup_cristallo .td-p::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 40%, rgba(255,255,255,.85) 50%, transparent 60%);
}
@keyframes td-respira { from { opacity: .55; transform: scale(.95); } to { opacity: 1; transform: scale(1.05); } }
@keyframes td-raggi { from { transform: rotate(-8deg); } to { transform: rotate(8deg); } }
@keyframes td-gemma {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-8deg) scale(var(--s)); }
  50% { transform: translate3d(calc(var(--dx) * .3), -28px, 0) rotate(8deg) scale(calc(var(--s) * 1.1)); }
}
/* Riquadri a finestra blu, con bordo chiaro */
.profile-theme-sup_cristallo .card {
  background: linear-gradient(180deg, #2b4fb8 0%, #16307e 45%, #0b1a5c 100%) !important;
  border: 2px solid #e8eeff !important; border-radius: 8px !important;
  box-shadow: 0 0 0 3px #0b1a5c, 0 0 0 4px rgba(232,238,255,.35), inset 0 0 26px rgba(0,0,0,.45), 0 20px 46px -16px rgba(111,195,255,.75) !important;
}
.profile-theme-sup_cristallo .card-header, .profile-theme-sup_cristallo .card-footer { background: rgba(255,255,255,.06); border-color: rgba(232,238,255,.35) !important; }
.profile-theme-sup_cristallo .list-group-item { background: rgba(5,11,42,.35); border-color: rgba(232,238,255,.18); }
.profile-theme-sup_cristallo :is(h1, h2, h3, h4, h5, h6):not([class*="vip-"]) { color: #fff !important; text-shadow: 0 0 10px #6fc3ff, 0 2px 0 #0b1a5c; letter-spacing: .03em; }
.profile-theme-sup_cristallo .card :is(h5, h6):not([class*="vip-"])::before { content: "\25B6\FE0E"; margin-right: .45em; font-size: .75em; color: #e8eeff; text-shadow: 0 0 8px #6fc3ff; }
.profile-theme-sup_cristallo .text-muted { color: #c2d4ff !important; }
.profile-theme-sup_cristallo .tema-head .card-title:not([class*="vip-"]) { color: #fff !important; letter-spacing: .05em; text-shadow: 0 0 14px #6fc3ff, 0 0 30px #3d7bff, 0 3px 0 #0b1a5c; }
.profile-theme-sup_cristallo .flair-wrapper { background: linear-gradient(135deg, #ffffff, #8fd3ff 40%, #2a6bff); box-shadow: 0 0 0 3px #0b1a5c, 0 0 0 5px #e8eeff, 0 0 34px 6px rgba(111,195,255,.75); }
.profile-theme-sup_cristallo .tema-sup-etichetta { background-color: #16307e; background-image: linear-gradient(100deg, transparent 35%, rgba(255,255,255,.55) 50%, transparent 65%), linear-gradient(#2b4fb8, #0b1a5c); background-size: 300% 100%, 100% 100%; border: 1px solid #e8eeff; color: #fff; box-shadow: 0 0 12px rgba(111,195,255,.6); }

/* ---- Notte di Coppa: prato a strisce, fari dello stadio, tabellone ---- */
.profile-theme-sup_coppa {
  --ta: #ffd23f; --ta2: #fff3a8; --ta3: #5dff8a; --ta-rgb: 255, 210, 63; --tbtn: #0a3d15;
  --tcard: rgba(11, 20, 16, .93); --tcard-solid: #0b1410;
  --spot: rgba(255, 255, 225, .26); --lampo: #fffbe0;
  --tbg: repeating-linear-gradient(90deg, #1f7a2e 0 90px, #25903a 90px 180px);
  --tband: linear-gradient(transparent 50%, #0b1410),
           radial-gradient(ellipse 60% 90% at 50% -10%, rgba(255,255,225,.7), transparent 70%),
           linear-gradient(90deg, transparent calc(50% - 1.5px), rgba(255,255,255,.8) calc(50% - 1.5px) calc(50% + 1.5px), transparent calc(50% + 1.5px)),
           repeating-linear-gradient(90deg, #1f7a2e 0 34px, #25903a 34px 68px);
}
.profile-theme-sup_coppa.tema-on { border-color: rgba(255,255,255,.6); }
.tema-decori-sup_coppa .tema-decori-cielo { background: repeating-linear-gradient(90deg, #1f7a2e 0 90px, #25903a 90px 180px); }
/* Linee del campo: meta' campo, cerchio di centrocampo, aree */
.tema-decori-sup_coppa .td-campo { inset: 0; background: linear-gradient(90deg, transparent calc(50% - 2px), rgba(255,255,255,.65) calc(50% - 2px) calc(50% + 2px), transparent calc(50% + 2px)); }
.tema-decori-sup_coppa .td-campo::after {
  content: ""; position: absolute; left: 50%; top: 58%; width: 300px; height: 300px; margin: -150px 0 0 -150px;
  border: 4px solid rgba(255,255,255,.65); border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,.75) 0 6px, transparent 7px);
}
.tema-decori-sup_coppa .td-area { left: -4px; top: 30%; width: 13%; min-width: 90px; height: 56%; border: 4px solid rgba(255,255,255,.6); border-left: 0; }
.tema-decori-sup_coppa .td-area-b { left: auto; right: -4px; border-left: 4px solid rgba(255,255,255,.6); border-right: 0; }
.tema-decori-sup_coppa .td-velo { inset: 0; background: linear-gradient(rgba(2,10,5,.72), rgba(2,10,5,.15) 45%, rgba(2,10,5,.45)); }
.tema-decori-sup_coppa .td-faro {
  top: -60px; left: -140px; width: 520px; height: 130vh; transform-origin: 50% 0; will-change: transform;
  background: conic-gradient(from 162deg at 50% 0%, transparent 0deg, rgba(255,255,225,.32) 14deg, rgba(255,255,225,.12) 22deg, transparent 36deg);
  animation: td-faro 6s ease-in-out infinite alternate;
}
.tema-decori-sup_coppa .td-faro-b { left: auto; right: -140px; animation-delay: -3s; }
.tema-decori-sup_coppa .td-riflettori {
  left: 0; right: 0; top: 0; height: 40px;
  background: radial-gradient(14px 10px at 6% 40%, #fffbe0 60%, transparent), radial-gradient(14px 10px at 9% 40%, #fffbe0 60%, transparent),
              radial-gradient(14px 10px at 91% 40%, #fffbe0 60%, transparent), radial-gradient(14px 10px at 94% 40%, #fffbe0 60%, transparent),
              radial-gradient(60px 30px at 7.5% 40%, rgba(255,255,225,.55), transparent), radial-gradient(60px 30px at 92.5% 40%, rgba(255,255,225,.55), transparent);
}
/* Flash dei fotografi sugli spalti */
.tema-decori-sup_coppa .td-p {
  left: var(--x); top: calc(var(--y) * .3 + 3%); width: 14px; height: 14px; border-radius: 50%;
  background: radial-gradient(closest-side, #fff, rgba(255,255,255,.5) 40%, transparent);
  opacity: 0; animation: td-flash var(--d) ease-out var(--w) infinite;
}
@keyframes td-faro { from { transform: rotate(-16deg); } to { transform: rotate(16deg); } }
@keyframes td-flash { 0%, 86%, 100% { opacity: 0; transform: scale(.3); } 90% { opacity: 1; transform: scale(calc(var(--s) * 1.6)); } }
/* Riquadri a tabellone */
.profile-theme-sup_coppa .card {
  background: linear-gradient(#142219, #0b1410 30%) !important;
  border: 1px solid rgba(255,255,255,.22) !important; border-top: 4px solid #ffd23f !important; border-radius: 6px !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.6), 0 18px 44px -14px rgba(0,0,0,.95), 0 -6px 24px -10px rgba(255,210,63,.55) !important;
}
.profile-theme-sup_coppa .list-group-item { background: rgba(255,255,255,.03); border-color: rgba(255,255,255,.1); font-variant-numeric: tabular-nums; }
.profile-theme-sup_coppa .card :is(h3, h4, h5, h6):not([class*="vip-"]) { font-family: ui-monospace, "Courier New", monospace; text-transform: uppercase; letter-spacing: .08em; color: #ffd23f !important; text-shadow: 0 0 10px rgba(255,210,63,.45); }
.profile-theme-sup_coppa .text-muted { color: #c9d8c7 !important; }
.profile-theme-sup_coppa .tema-head .card-title:not([class*="vip-"]) { color: #fff !important; text-transform: uppercase; font-style: italic; letter-spacing: .02em; text-shadow: 0 3px 0 #0a3d15, 0 0 16px rgba(255,255,255,.55); }
.profile-theme-sup_coppa .flair-wrapper { background: #fff; box-shadow: 0 0 0 4px #ffd23f, 0 0 0 7px #0a3d15, 0 0 34px 6px rgba(255,255,225,.6); }
.profile-theme-sup_coppa .tema-sup-etichetta { background-color: #ffd23f; color: #0a3d15; box-shadow: 0 3px 0 #0a3d15; }

/* ---- Operazione: mimetica digitale, radar, terminale verde ---- */
.profile-theme-sup_operazione {
  --ta: #9dff6a; --ta2: #c8ff9d; --ta3: #4fae2a; --ta-rgb: 157, 255, 106; --tbtn: #0b0f08;
  --tcard: rgba(6, 10, 5, .92); --tcard-solid: #0b0f08;
  --spot: rgba(157, 255, 106, .2); --lampo: #c8ff9d;
  --mimetica: conic-gradient(#2a331f 25%, transparent 0 50%, #2a331f 0 75%, transparent 0) 0 0 / 24px 24px,
              conic-gradient(#161b12 25%, transparent 0 50%, #161b12 0 75%, transparent 0) 12px 36px / 72px 72px,
              conic-gradient(#3a4429 25%, transparent 0) 30px 6px / 120px 96px,
              #1d2318;
  --tbg: var(--mimetica);
  --tband: linear-gradient(transparent 50%, #0b0f08),
           repeating-linear-gradient(0deg, rgba(157,255,106,.16) 0 1px, transparent 1px 18px),
           repeating-linear-gradient(90deg, rgba(157,255,106,.16) 0 1px, transparent 1px 18px),
           radial-gradient(circle at 80% 60%, rgba(157,255,106,.4), transparent 55%),
           #0e1a0a;
}
.profile-theme-sup_operazione.tema-on { border-color: rgba(157,255,106,.6); border-radius: 8px !important; }
.tema-decori-sup_operazione .tema-decori-cielo { background: var(--mimetica); }
.tema-decori-sup_operazione .td-reticolo {
  inset: 0;
  background: repeating-linear-gradient(0deg, rgba(157,255,106,.08) 0 1px, transparent 1px 64px),
              repeating-linear-gradient(90deg, rgba(157,255,106,.08) 0 1px, transparent 1px 64px),
              radial-gradient(120% 90% at 50% 50%, transparent 40%, rgba(5,8,4,.7));
}
.tema-decori-sup_operazione .td-radar {
  right: -90px; bottom: -90px; width: 420px; height: 420px; border-radius: 50%; overflow: hidden;
  border: 2px solid rgba(157,255,106,.5);
  background: repeating-radial-gradient(circle, transparent 0 52px, rgba(157,255,106,.3) 52px 54px),
              linear-gradient(90deg, transparent calc(50% - 1px), rgba(157,255,106,.3) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
              linear-gradient(transparent calc(50% - 1px), rgba(157,255,106,.3) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
              rgba(10,20,8,.6);
  box-shadow: 0 0 40px rgba(157,255,106,.25);
}
.tema-decori-sup_operazione .td-radar::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(157,255,106,.7), rgba(157,255,106,.15) 50deg, transparent 70deg);
  will-change: transform; animation: td-gira 3.2s linear infinite;
}
/* Mirino che si sposta piano */
.tema-decori-sup_operazione .td-mirino {
  left: 6%; top: 14%; width: 120px; height: 120px; border-radius: 50%;
  border: 2px solid rgba(157,255,106,.45);
  background: linear-gradient(90deg, transparent calc(50% - 1px), rgba(157,255,106,.6) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px)),
              linear-gradient(transparent calc(50% - 1px), rgba(157,255,106,.6) calc(50% - 1px) calc(50% + 1px), transparent calc(50% + 1px));
  animation: td-mirino 7s ease-in-out infinite;
}
.tema-decori-sup_operazione .td-barra {
  left: 0; right: 0; top: 0; height: 140px;
  background: linear-gradient(transparent, rgba(157,255,106,.1) 70%, rgba(157,255,106,.35) 98%, transparent);
  will-change: transform; animation: td-barra 6s linear infinite;
}
.tema-decori-sup_operazione .td-scansione { inset: 0; background: repeating-linear-gradient(transparent 0 3px, rgba(0,0,0,.22) 3px 4px); }
/* Contatti sul radar */
.tema-decori-sup_operazione .td-p {
  left: var(--x); top: var(--y); width: 9px; height: 9px; border-radius: 50%;
  background: #c8ff9d; box-shadow: 0 0 10px 3px rgba(157,255,106,.8);
  opacity: 0; animation: td-contatto var(--d) ease-out var(--w) infinite;
}
@keyframes td-barra { from { transform: translateY(-140px); } to { transform: translateY(calc(var(--h) + 20px)); } }
@keyframes td-mirino { 0%, 100% { transform: translate3d(0, 0, 0); } 30% { transform: translate3d(40px, 24px, 0); } 60% { transform: translate3d(12px, 60px, 0); } }
@keyframes td-contatto { 0%, 100% { opacity: 0; transform: scale(.4); } 10% { opacity: 1; transform: scale(var(--s)); } 60% { opacity: 0; transform: scale(calc(var(--s) * 2)); } }
/* Riquadri da terminale, con angoli da mirino */
.profile-theme-sup_operazione .card {
  background: linear-gradient(#9dff6a, #9dff6a) 6px 6px / 24px 3px no-repeat,
              linear-gradient(#9dff6a, #9dff6a) 6px 6px / 3px 24px no-repeat,
              linear-gradient(#9dff6a, #9dff6a) calc(100% - 6px) 6px / 24px 3px no-repeat,
              linear-gradient(#9dff6a, #9dff6a) calc(100% - 6px) 6px / 3px 24px no-repeat,
              linear-gradient(#9dff6a, #9dff6a) 6px calc(100% - 6px) / 24px 3px no-repeat,
              linear-gradient(#9dff6a, #9dff6a) 6px calc(100% - 6px) / 3px 24px no-repeat,
              linear-gradient(#9dff6a, #9dff6a) calc(100% - 6px) calc(100% - 6px) / 24px 3px no-repeat,
              linear-gradient(#9dff6a, #9dff6a) calc(100% - 6px) calc(100% - 6px) / 3px 24px no-repeat,
              rgba(6, 10, 5, .92) !important;
  border: 1px solid rgba(157,255,106,.45) !important; border-radius: 2px !important;
  box-shadow: 0 0 0 1px rgba(0,0,0,.7), 0 0 26px -6px rgba(157,255,106,.5) !important;
}
.profile-theme-sup_operazione .card-header, .profile-theme-sup_operazione .card-footer { background: rgba(157,255,106,.06); }
.profile-theme-sup_operazione .list-group-item { background: rgba(157,255,106,.03); border-color: rgba(157,255,106,.15); font-family: ui-monospace, "Courier New", monospace; font-size: .9em; }
.profile-theme-sup_operazione :is(h1, h2, h3, h4, h5, h6):not([class*="vip-"]) { font-family: ui-monospace, "Courier New", monospace; text-transform: uppercase; letter-spacing: .1em; color: #c8ff9d !important; text-shadow: 0 0 10px rgba(157,255,106,.7); }
.profile-theme-sup_operazione .card :is(h5, h6):not([class*="vip-"])::before { content: "// "; opacity: .65; }
.profile-theme-sup_operazione .text-muted { color: #a9cf96 !important; }
.profile-theme-sup_operazione .tema-head .card-title:not([class*="vip-"]) { color: #c8ff9d !important; letter-spacing: .14em; font-size: 1.8rem; text-shadow: 0 0 10px #9dff6a, 0 0 26px rgba(157,255,106,.6); }
.profile-theme-sup_operazione :is(.flair-wrapper, .flair-wrapper > img, .flair-wrapper > .rounded-circle, .flair-wrapper > .avatar-supporter, .flair-wrapper > .avatar-supporter > img, .flair-wrapper > .avatar-supporter > .rounded-circle) { border-radius: 6px !important; }
.profile-theme-sup_operazione .flair-wrapper > .avatar-supporter::after { border-radius: 6px; }
.profile-theme-sup_operazione .flair-wrapper { background: #9dff6a; box-shadow: 0 0 0 4px #0b0f08, 0 0 0 6px rgba(157,255,106,.5), 0 0 30px 4px rgba(157,255,106,.5); }
.profile-theme-sup_operazione .flair-wrapper::after { border-radius: 12px; }
.profile-theme-sup_operazione .tema-sup-etichetta { background-color: #9dff6a; color: #0b0f08; border-radius: 2px; font-family: ui-monospace, "Courier New", monospace; }

/* ---- Tempesta: cielo a fumetto, cerchio della tempesta che si stringe ---- */
.profile-theme-sup_tempesta {
  --ta: #fff35c; --ta2: #b98cff; --ta3: #3fb6ff; --ta-rgb: 255, 243, 92; --tbtn: #24104f;
  --tcard: rgba(36, 16, 79, .92); --tcard-solid: #24104f;
  --spot: rgba(255, 255, 255, .26); --lampo: #f0e6ff;
  --tbg: #5a1fc9;
  --tband: linear-gradient(transparent 60%, rgba(36,16,79,.35)),
           radial-gradient(40px 22px at 20% 40%, #fff 95%, transparent), radial-gradient(30px 18px at 28% 46%, #fff 95%, transparent),
           radial-gradient(44px 24px at 76% 30%, #fff 95%, transparent), radial-gradient(28px 16px at 84% 38%, #fff 95%, transparent),
           linear-gradient(#3fb6ff, #7d5cff 80%, #5a1fc9);
}
.profile-theme-sup_tempesta.tema-on { border: 3px solid #24104f; }
.tema-decori-sup_tempesta .tema-decori-cielo {
  background: repeating-linear-gradient(115deg, rgba(255,255,255,.06) 0 16px, transparent 16px 46px), radial-gradient(circle at 50% 50%, #7a3ff0, #5a1fc9 60%, #3a1d8a);
}
/* La zona sicura: cielo azzurro dentro, tempesta viola fuori */
.tema-decori-sup_tempesta .td-zona {
  left: 50%; top: 50%; width: 130vmin; height: 130vmin; margin: -65vmin 0 0 -65vmin; border-radius: 50%;
  background: linear-gradient(#5cc6ff 0%, #3fb6ff 35%, #8a6cff 85%);
  box-shadow: 0 0 0 6px rgba(255,255,255,.85), 0 0 0 12px rgba(185,140,255,.6), 0 0 70px 24px #b98cff, inset 0 0 70px 16px rgba(185,140,255,.9);
  will-change: transform; animation: td-zona 7s ease-in-out infinite alternate;
}
.tema-decori-sup_tempesta .td-fulmine {
  left: 6%; top: 8%; width: 70px; height: 150px;
  background: linear-gradient(#fffbd0, #fff35c);
  clip-path: polygon(45% 0, 100% 0, 62% 40%, 92% 40%, 20% 100%, 40% 52%, 8% 52%);
  opacity: 0; animation: td-fulmine 5s linear infinite;
}
.tema-decori-sup_tempesta .td-fulmine-b { left: auto; right: 7%; top: 52%; width: 56px; height: 120px; animation-delay: -2.4s; animation-duration: 6.5s; }
.tema-decori-sup_tempesta .td-nuvole {
  left: 0; top: 6%; width: 200%; height: 140px;
  background: radial-gradient(70px 40px at 6% 60%, #fff 96%, transparent), radial-gradient(54px 34px at 10% 40%, #fff 96%, transparent),
              radial-gradient(50px 30px at 13% 64%, #fff 96%, transparent),
              radial-gradient(80px 44px at 36% 50%, #fff 96%, transparent), radial-gradient(56px 36px at 40% 30%, #fff 96%, transparent),
              radial-gradient(70px 40px at 56% 60%, #fff 96%, transparent), radial-gradient(54px 34px at 60% 40%, #fff 96%, transparent),
              radial-gradient(50px 30px at 63% 64%, #fff 96%, transparent),
              radial-gradient(80px 44px at 86% 50%, #fff 96%, transparent), radial-gradient(56px 36px at 90% 30%, #fff 96%, transparent);
  opacity: .95; will-change: transform; animation: td-nuvole 60s linear infinite;
}
.tema-decori-sup_tempesta .td-nuvole-b { top: auto; bottom: 4%; opacity: .8; animation-duration: 85s; animation-direction: reverse; }
.tema-decori-sup_tempesta .td-p {
  left: var(--x); top: var(--y); width: 30px; height: 30px;
  background: #fff35c; clip-path: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  animation: td-scintilla var(--d) ease-in-out var(--w) infinite;
}
@keyframes td-zona { from { transform: scale(1); } to { transform: scale(.6); } }
@keyframes td-fulmine { 0%, 88%, 100% { opacity: 0; } 90%, 94% { opacity: 1; } 92% { opacity: .3; } }
@keyframes td-nuvole { from { transform: translateX(0); } to { transform: translateX(-50%); } }
/* Riquadri a fumetto: chiari, contorno spesso, ombra piena */
.profile-theme-sup_tempesta .card {
  --ta: #6a2bd9; --ta-rgb: 106, 43, 217; --tbtn: #fff;
  --bs-body-color: #24104f; --bs-emphasis-color: #24104f; --bs-secondary-color: #5b4a8a; --bs-border-color: rgba(36,16,79,.2);
  --bs-link-color: #6a2bd9; --bs-link-color-rgb: 106, 43, 217; --bs-link-hover-color: #24104f; --bs-link-hover-color-rgb: 36, 16, 79;
  --bs-body-bg: #fffdf4; --bs-secondary-bg: #f1ecff; --bs-tertiary-bg: #f6f2ff; --bs-card-color: #24104f; --bs-list-group-color: #24104f;
  --tn-text: #24104f; --tn-muted: #5b4a8a; --tn-line: rgba(36,16,79,.18); --tn-surface: #f6f2ff; --tn-surface-2: rgba(36,16,79,.04);
  color: #24104f; background: #fffdf4 !important;
  border: 3px solid #24104f !important; border-radius: 16px !important;
  box-shadow: 0 6px 0 #24104f, 0 18px 34px -10px rgba(20,6,50,.6) !important;
}
.profile-theme-sup_tempesta .card-header, .profile-theme-sup_tempesta .card-footer { background: #f1ecff; border-color: rgba(36,16,79,.25) !important; }
.profile-theme-sup_tempesta .list-group-item { background: #f6f2ff; color: #24104f; border-color: rgba(36,16,79,.14); }
.profile-theme-sup_tempesta .card :is(h1, h2, h3, h4, h5, h6):not([class*="vip-"]) { color: #24104f !important; font-weight: 900; text-shadow: 2px 2px 0 #fff35c; }
.profile-theme-sup_tempesta .card .text-muted { color: #5b4a8a !important; text-shadow: none !important; }
.profile-theme-sup_tempesta .card .border-top, .profile-theme-sup_tempesta .card hr { border-color: rgba(36,16,79,.2) !important; }
.profile-theme-sup_tempesta .tn-coll-box { background: rgba(36,16,79,.92) !important; border: 3px solid #24104f !important; }
.profile-theme-sup_tempesta :is(h1, h2):not(.card-title):not([class*="vip-"]) { color: #fff35c !important; -webkit-text-stroke: 1.5px #24104f; paint-order: stroke fill; text-shadow: 0 3px 0 #24104f; }
.profile-theme-sup_tempesta .tema-head .card-title:not([class*="vip-"]) { color: #fff35c !important; font-size: 2.3rem; -webkit-text-stroke: 7px #24104f; paint-order: stroke fill; text-shadow: 0 5px 0 #24104f; }
.profile-theme-sup_tempesta .flair-wrapper { background: #fff35c; box-shadow: 0 0 0 4px #24104f, 0 0 0 8px #fff, 0 0 0 11px #24104f, 0 0 30px 8px rgba(185,140,255,.8); }
.profile-theme-sup_tempesta .tema-sup-etichetta { background-color: #fff35c; color: #24104f; border: 2px solid #24104f; box-shadow: 0 3px 0 #24104f; }
/* Numeri e icone colorati sui riquadri chiari: tinte scure che si leggono (>= 4.5:1) */
.profile-theme-sup_tempesta .card .text-warning { color: #8a4b00 !important; }
.profile-theme-sup_tempesta .card .text-info { color: #005f73 !important; }
.profile-theme-sup_tempesta .card .text-danger { color: #b01530 !important; }
.profile-theme-sup_tempesta .card .text-success { color: #146c2e !important; }
.profile-theme-sup_tempesta .card [style*="#00FFE0" i] { color: #00695c !important; }
.profile-theme-sup_tempesta .card [style*="#9146FF" i] { color: #5b21b6 !important; }
.profile-theme-sup_tempesta .card .text-body { color: #24104f !important; }
.profile-theme-sup_tempesta .card a.text-body:hover { color: #6a2bd9 !important; }
/* Testi tenui fuori dai riquadri, sopra cielo e tempesta */
.profile-theme-sup_tempesta > .container .text-muted { color: #fff !important; text-shadow: 0 1px 2px #24104f, 0 0 8px #24104f; }
/* Il "Condividi" fuori dal riquadro cade sull'anello a lampi: pillola scura dietro il testo */
.profile-theme-sup_tempesta > .container small.text-muted.d-block {
  width: fit-content; margin-inline: auto; padding: .15rem .8rem; border-radius: 999px;
  background: #24104f; border: 1px solid rgba(255,255,255,.35);
}
/* Pulsanti a fumetto: fondo chiaro, testo e contorno scuri */
.profile-theme-sup_tempesta .btn:not(.btn-primary):not(.btn-twitch) {
  background: #fffdf4 !important; color: #24104f !important;
  border: 2px solid #24104f !important; box-shadow: 0 3px 0 #24104f !important; font-weight: 700;
}
.profile-theme-sup_tempesta .btn:not(.btn-primary):not(.btn-twitch):hover,
.profile-theme-sup_tempesta .btn:not(.btn-primary):not(.btn-twitch):focus-visible { background: #fff35c !important; color: #24104f !important; }
.profile-theme-sup_tempesta .btn:not(.btn-primary):not(.btn-twitch) i { color: inherit !important; }

/* ---- Blocchi: cielo, nuvole a pixel, terra a cubetti, inventario ---- */
.profile-theme-sup_blocchi {
  --ta: #5dbb3a; --ta2: #3f8f25; --ta3: #7ec8ff; --ta-rgb: 93, 187, 58; --tbtn: #fff;
  --tcard: rgba(60, 60, 60, .95); --tcard-solid: #3b3b3b;
  --spot: rgba(255, 255, 255, .28); --lampo: #ffffff;
  --tbg: linear-gradient(#5aaef0, #9fd6ff 60%, #c9ecff);
  --tband: linear-gradient(transparent 0 70%, #5dbb3a 70% 80%, #3f8f25 80% 83%, #8b5a2b 83%) 0 0 / 100% 100%,
           linear-gradient(#fff, #fff) 12% 22% / 64px 18px no-repeat, linear-gradient(#fff, #fff) 16% 32% / 96px 14px no-repeat,
           linear-gradient(#fff, #fff) 74% 18% / 80px 16px no-repeat,
           linear-gradient(#5aaef0, #9fd6ff);
}
.profile-theme-sup_blocchi.tema-on { border: 4px solid #3b3b3b; border-radius: 6px !important; }
.tema-decori-sup_blocchi .tema-decori-cielo { background: linear-gradient(#4a9fe6, #8fd0ff 55%, #c9ecff); }
.tema-decori-sup_blocchi .td-sole { right: 9%; top: 7%; width: 96px; height: 96px; background: #fff7b0; box-shadow: 0 0 0 12px rgba(255,247,176,.45), 0 0 0 24px rgba(255,247,176,.2); }
.tema-decori-sup_blocchi .td-nuvole {
  left: 0; top: 13%; width: 200%; height: 80px;
  background: linear-gradient(#fff, #fff) 3% 0 / 160px 32px no-repeat, linear-gradient(#fff, #fff) 1% 32px / 240px 32px no-repeat,
              linear-gradient(#fff, #fff) 22% 16px / 128px 32px no-repeat,
              linear-gradient(#fff, #fff) 37% 0 / 96px 32px no-repeat, linear-gradient(#fff, #fff) 36% 32px / 192px 32px no-repeat,
              linear-gradient(#fff, #fff) 53% 0 / 160px 32px no-repeat, linear-gradient(#fff, #fff) 51% 32px / 240px 32px no-repeat,
              linear-gradient(#fff, #fff) 72% 16px / 128px 32px no-repeat,
              linear-gradient(#fff, #fff) 87% 0 / 96px 32px no-repeat, linear-gradient(#fff, #fff) 86% 32px / 192px 32px no-repeat;
  opacity: .95; will-change: transform; animation: td-nuvole 70s linear infinite;
}
.tema-decori-sup_blocchi .td-nuvole-b { top: 32%; opacity: .7; animation-duration: 110s; animation-delay: -40s; }
/* Terra: erba, terra e qualche pietra, tutto a cubetti da 48px */
.tema-decori-sup_blocchi .td-terra {
  left: 0; right: 0; bottom: 0; height: 144px;
  background: linear-gradient(90deg, rgba(0,0,0,.18) 2px, transparent 2px) 0 0 / 48px 48px,
              linear-gradient(rgba(0,0,0,.18) 2px, transparent 2px) 0 0 / 48px 48px,
              linear-gradient(#7a7a7a, #7a7a7a) 144px 96px / 48px 48px no-repeat,
              linear-gradient(#7a7a7a, #7a7a7a) 480px 96px / 96px 48px no-repeat,
              linear-gradient(#6b6b6b, #6b6b6b) 816px 96px / 48px 48px no-repeat,
              linear-gradient(#5dbb3a 0 18px, #4ea82f 18px 24px, #8b5a2b 24px 48px, #7a4e24 48px 96px, #6a4420 96px);
  box-shadow: inset 0 3px 0 rgba(255,255,255,.25);
}
/* Riquadri da inventario: grigi, bordo in rilievo */
.profile-theme-sup_blocchi .card {
  --ta: #ffffff; --ta-rgb: 255, 255, 255;
  background: #6b6b6b !important; color: #fff; border-radius: 0 !important;
  border: 4px solid !important; border-color: #d0d0d0 #474747 #474747 #d0d0d0 !important;
  box-shadow: 0 0 0 3px #2b2b2b, 0 14px 0 -4px rgba(0,0,0,.25) !important;
  text-shadow: 2px 2px 0 #3b3b3b;
}
.profile-theme-sup_blocchi .card-header, .profile-theme-sup_blocchi .card-footer { background: #5e5e5e; border-color: #474747 !important; }
.profile-theme-sup_blocchi .list-group-item { background: #777; color: #fff; border: 3px solid !important; border-color: #474747 #e0e0e0 #e0e0e0 #474747 !important; margin-bottom: 4px; border-radius: 0 !important; }
.profile-theme-sup_blocchi :is(h1, h2, h3, h4, h5, h6):not([class*="vip-"]) { font-family: ui-monospace, "Courier New", monospace; color: #fff !important; text-shadow: 3px 3px 0 #3b3b3b; letter-spacing: .02em; }
.profile-theme-sup_blocchi .text-muted { color: #ededed !important; text-shadow: 1px 1px 0 #3b3b3b; }
.profile-theme-sup_blocchi .card .badge { border-radius: 0 !important; }
/* Caselle e numeri: grigio scuro come gli slot, numeri bianchi con ombra a pixel */
.profile-theme-sup_blocchi .card .bg-body-tertiary { background: #555 !important; border: 3px solid !important; border-color: #383838 #8e8e8e #8e8e8e #383838 !important; border-radius: 0 !important; }
.profile-theme-sup_blocchi .card :is(.text-warning, .text-info, .text-primary, .text-danger, .text-success, [style*="color:#" i]) { color: #fff !important; text-shadow: 2px 2px 0 #2b2b2b; }
.profile-theme-sup_blocchi :is(.btn-primary, .btn-twitch) { background: #5dbb3a !important; border-radius: 0 !important; box-shadow: inset -3px -3px 0 #2d5e1a, inset 3px 3px 0 #8be46a !important; text-shadow: 1px 1px 0 #2d5e1a; }
.profile-theme-sup_blocchi .btn { border-radius: 0 !important; }
.profile-theme-sup_blocchi .btn:not(.btn-primary):not(.btn-twitch) { background: #6b6b6b !important; color: #fff !important; border: 3px solid !important; border-color: #d0d0d0 #474747 #474747 #d0d0d0 !important; text-shadow: 1px 1px 0 #2b2b2b; }
.profile-theme-sup_blocchi .btn:not(.btn-primary):not(.btn-twitch):hover { background: #7b7b7b !important; }
.profile-theme-sup_blocchi .btn:not(.btn-primary):not(.btn-twitch) i { color: inherit !important; }
.profile-theme-sup_blocchi > .container .text-muted { color: #fff !important; text-shadow: 2px 2px 0 #3b3b3b; }
.profile-theme-sup_blocchi .tema-head .card-title:not([class*="vip-"]) { font-family: ui-monospace, "Courier New", monospace; color: #fff !important; text-shadow: 4px 4px 0 #3b3b3b; }
.profile-theme-sup_blocchi :is(.flair-wrapper, .flair-wrapper > img, .flair-wrapper > .rounded-circle, .flair-wrapper > .avatar-supporter, .flair-wrapper > .avatar-supporter > img, .flair-wrapper > .avatar-supporter > .rounded-circle) { border-radius: 0 !important; }
.profile-theme-sup_blocchi .flair-wrapper > .avatar-supporter::after { border-radius: 0; }
.profile-theme-sup_blocchi .flair-wrapper { background: #5dbb3a; box-shadow: 0 0 0 4px #3b3b3b, 0 0 0 8px #8b5a2b, 0 0 0 11px #3b3b3b; }
.profile-theme-sup_blocchi .flair-wrapper::after { border-radius: 0; background: radial-gradient(closest-side, rgba(255,247,176,.9) 66%, rgba(255,247,176,.35) 82%, transparent); }
.profile-theme-sup_blocchi .tema-sup-etichetta { background-color: #5dbb3a; color: #fff; border-radius: 0; border: 3px solid #2d5e1a; text-shadow: 1px 1px 0 #2d5e1a; font-family: ui-monospace, "Courier New", monospace; }

/* ---- Notte in città: tramonto, skyline, fari che sfrecciano, neon ---- */
.profile-theme-sup_citta {
  --ta: #ff4fd8; --ta2: #00e5ff; --ta3: #ffc46b; --ta-rgb: 255, 79, 216; --tbtn: #14062a;
  --tcard: rgba(20, 6, 42, .9); --tcard-solid: #14062a;
  --spot: rgba(255, 120, 220, .26); --lampo: #ffd0f2;
  --tbg: linear-gradient(#2a0b4a 0%, #8a1f6b 45%, #ff7a59 75%, #ffc46b 90%);
  --tband: linear-gradient(transparent 55%, #14062a),
           linear-gradient(#14062a, #14062a) 8% 100% / 22px 60px no-repeat, linear-gradient(#14062a, #14062a) 16% 100% / 30px 90px no-repeat,
           linear-gradient(#14062a, #14062a) 30% 100% / 26px 70px no-repeat, linear-gradient(#14062a, #14062a) 68% 100% / 34px 100px no-repeat,
           linear-gradient(#14062a, #14062a) 82% 100% / 24px 64px no-repeat, linear-gradient(#14062a, #14062a) 92% 100% / 30px 84px no-repeat,
           linear-gradient(#2a0b4a 0%, #8a1f6b 45%, #ff7a59 75%, #ffc46b);
}
.tema-decori-sup_citta .tema-decori-cielo { background: linear-gradient(#2a0b4a 0%, #6a1a64 30%, #c23a6a 52%, #ff7a59 68%, #ffc46b 80%); }
.tema-decori-sup_citta .td-sole {
  left: 50%; bottom: 22%; width: 300px; height: 300px; margin-left: -150px; border-radius: 50%;
  background: linear-gradient(#ffe9a8, #ff9a5c 60%, #ff4f8a);
  box-shadow: 0 0 80px 30px rgba(255,140,90,.55);
}
/* Palazzi: la sagoma e' una clip-path ferma, le finestre un motivo ripetuto */
.tema-decori-sup_citta .td-palazzi {
  left: 0; right: 0; bottom: 56px; height: 34%;
  background: linear-gradient(90deg, transparent 0 58%, #14062a 58%) 0 0 / 230px 100%,
              linear-gradient(#14062a 0 40%, transparent 40%) 0 0 / 170px 300px,
              linear-gradient(90deg, #14062a 0 18px, transparent 18px) 0 0 / 28px 26px,
              linear-gradient(#14062a 0 14px, rgba(255,214,120,.8) 14px 22px, #14062a 22px) 0 0 / 28px 26px;
  clip-path: polygon(0 100%, 0 55%, 6% 55%, 6% 30%, 12% 30%, 12% 60%, 18% 60%, 18% 15%, 22% 15%, 22% 5%, 25% 5%, 25% 45%, 32% 45%, 32% 35%, 38% 35%, 38% 70%, 44% 70%, 44% 20%, 50% 20%, 50% 50%, 56% 50%, 56% 10%, 60% 10%, 60% 40%, 67% 40%, 67% 62%, 73% 62%, 73% 25%, 79% 25%, 79% 55%, 85% 55%, 85% 35%, 91% 35%, 91% 65%, 100% 65%, 100% 100%);
}
.tema-decori-sup_citta .td-palazzi-lontani {
  height: 46%; opacity: .55; background: #4a1660;
  clip-path: polygon(0 100%, 0 40%, 4% 40%, 4% 20%, 9% 20%, 9% 50%, 15% 50%, 15% 28%, 21% 28%, 21% 62%, 28% 62%, 28% 12%, 31% 12%, 31% 0, 33% 0, 33% 12%, 36% 12%, 36% 48%, 47% 48%, 47% 30%, 53% 30%, 53% 58%, 62% 58%, 62% 22%, 66% 22%, 66% 44%, 76% 44%, 76% 16%, 81% 16%, 81% 52%, 88% 52%, 88% 30%, 95% 30%, 95% 56%, 100% 56%, 100% 100%);
}
.tema-decori-sup_citta .td-strada { left: 0; right: 0; bottom: 0; height: 56px; background: #0b0316; border-top: 2px solid #2a0b4a; }
.tema-decori-sup_citta .td-strada::after {
  content: ""; position: absolute; left: 0; right: 0; top: 26px; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(255,214,120,.55) 0 30px, transparent 30px 70px);
}
/* Fari delle auto: rossi verso destra, bianchi verso sinistra */
.tema-decori-sup_citta .td-p {
  left: -140px; top: auto; bottom: 34px; width: 110px; height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, transparent, #ff3b6b); box-shadow: 0 0 12px 2px #ff3b6b;
  --corsa: calc(100vw + 280px);
  will-change: transform; animation: td-auto var(--d) linear var(--w) infinite;
}
.tema-decori-sup_citta .td-p:nth-child(2n) {
  bottom: 12px; background: linear-gradient(90deg, #fff6c8, transparent); box-shadow: 0 0 12px 2px #fff6c8;
  animation-direction: reverse;
}
@supports (width: 1cqw) { .tema-decori-sup_citta .td-p { --corsa: calc(100cqw + 280px); } }
@keyframes td-auto { from { transform: translateX(0); } to { transform: translateX(var(--corsa)); } }
.profile-theme-sup_citta .card {
  background: rgba(20, 6, 42, .9) !important; border: 1px solid rgba(255,79,216,.7) !important; border-radius: 12px !important;
  box-shadow: 0 0 0 1px rgba(0,229,255,.15), 0 0 22px rgba(255,79,216,.4), 0 20px 46px -18px rgba(0,229,255,.55) !important;
}
.profile-theme-sup_citta .list-group-item { background: rgba(255,79,216,.05); border-color: rgba(255,79,216,.2); }
.profile-theme-sup_citta :is(h1, h2, h3, h4, h5, h6):not([class*="vip-"]) { color: #ffe1f7 !important; text-shadow: 0 0 6px #ff4fd8, 0 0 16px #ff4fd8; }
.profile-theme-sup_citta .card :is(h5, h6):not([class*="vip-"]) { color: #d9fbff !important; text-shadow: 0 0 6px #00e5ff, 0 0 14px #00e5ff; }
.profile-theme-sup_citta .text-muted { color: #e2bfe0 !important; }
.profile-theme-sup_citta .tema-head .card-title:not([class*="vip-"]) { font-style: italic; color: #fff !important; text-shadow: 0 0 6px #ff4fd8, 0 0 18px #ff4fd8, 0 0 34px #00e5ff; animation: td-neon 4s linear infinite; }
.profile-theme-sup_citta .flair-wrapper { background: linear-gradient(135deg, #ff4fd8, #00e5ff); box-shadow: 0 0 0 4px #14062a, 0 0 22px 4px #ff4fd8, 0 0 44px 8px rgba(0,229,255,.5); }
.profile-theme-sup_citta .tema-sup-etichetta { background-color: rgba(20,6,42,.6); border: 1px solid #00e5ff; color: #00e5ff; text-shadow: 0 0 8px #00e5ff; box-shadow: 0 0 12px rgba(0,229,255,.5), inset 0 0 8px rgba(0,229,255,.3); }
@keyframes td-neon { 0%, 18%, 22%, 62%, 64%, 100% { opacity: 1; } 20%, 63% { opacity: .55; } }

/* ---- Schermi piccoli: meta' particelle (regola comune sopra), decori piu' piccoli ---- */
@media (max-width: 575.98px) {
  .tema-sup-luce { width: 340px; height: 340px; margin: -170px 0 0 -170px; }
  .tema-sup .tema-head .card-title:not([class*="vip-"]) { font-size: 1.7rem; }
  .profile-theme-sup_tempesta .tema-head .card-title:not([class*="vip-"]) { font-size: 1.9rem; -webkit-text-stroke-width: 6px; }
  .tema-decori-sup_coppa .td-campo::after { width: 200px; height: 200px; margin: -100px 0 0 -100px; }
  .tema-decori-sup_coppa .td-faro { width: 300px; left: -120px; }
  .tema-decori-sup_coppa .td-faro-b { left: auto; right: -120px; }
  .tema-decori-sup_operazione .td-radar { width: 260px; height: 260px; right: -70px; bottom: -70px; }
  .tema-decori-sup_operazione .td-mirino { width: 80px; height: 80px; }
  .tema-decori-sup_blocchi .td-terra { height: 96px; }
  .tema-decori-sup_blocchi .td-sole { width: 64px; height: 64px; }
  .tema-decori-sup_citta .td-sole { width: 200px; height: 200px; margin-left: -100px; }
}

/* ---- Movimento ridotto: niente luce, lampo, polvere; decori fermi ---- */
@media (prefers-reduced-motion: reduce) {
  .tema-sup-luce, .tema-sup-lampo, .tema-sup-p { display: none !important; }
  .tema-sup > .container, .tema-sup .flair-wrapper::after, .tema-sup-etichetta,
  .tema-sup .tema-head .card-title { animation: none !important; }
  .tema-decori-sup_cristallo .td-p { transform: scale(var(--s)); }
  .tema-decori-sup_coppa .td-p, .tema-decori-sup_operazione .td-p, .tema-decori-sup_citta .td-p, .tema-decori-sup_operazione .td-barra { display: none; }
  .tema-decori-sup_tempesta .td-p { opacity: .8; transform: scale(var(--s)); }
  .tema-decori-sup_tempesta .td-fulmine { opacity: .85; }
  .tema-decori-sup_tempesta .td-zona { transform: scale(.8); }
}

/* ======================================================================
   Anellino supporter: anello oro con cuoricino, su ogni avatar di un supporter.
   Statico. Va sul contenitore (non sull'immagine) perché serve ::after.
   ====================================================================== */
.avatar-supporter {
  position: relative; display: inline-block; flex-shrink: 0; line-height: 0; vertical-align: middle;
  border-radius: 50%; box-shadow: 0 0 0 2px #ffd36b, 0 0 8px #ffd36baa;
}
.avatar-supporter > img, .avatar-supporter > div { vertical-align: top; }
.avatar-supporter::after {
  content: "\2764"; position: absolute; right: -4px; bottom: -4px; z-index: 3; pointer-events: none;
  width: 13px; height: 13px; font-size: 8px; line-height: 13px; text-align: center;
  border-radius: 50%; background: #ffd36b; color: #b0125e; font-style: normal;
}
.avatar-supporter.as-sm { box-shadow: 0 0 0 1.5px #ffd36b, 0 0 5px #ffd36baa; }
.avatar-supporter.as-sm::after { right: -3px; bottom: -3px; width: 10px; height: 10px; font-size: 6px; line-height: 10px; }
.avatar-supporter.as-md { box-shadow: 0 0 0 2px #ffd36b, 0 0 12px #ffd36baa; }
.avatar-supporter.as-md::after { width: 16px; height: 16px; font-size: 11px; line-height: 16px; }
.avatar-supporter.as-lg { box-shadow: 0 0 0 3px #ffd36b, 0 0 18px #ffd36baa; }
.avatar-supporter.as-lg::after { right: 2px; bottom: 2px; width: 30px; height: 30px; font-size: 18px; line-height: 30px; }
/* Streamer del Giorno: la stellina sta in basso a destra, il cuore passa in basso a sinistra */
.spotlight-avatar-wrap .avatar-supporter::after { right: auto; left: 2px; }
.hm-spotlight-avatar-wrap .avatar-supporter::after { right: auto; left: -4px; }
/* Menu in alto: l'anello sta dentro i 30px del bottone */
.tn-account .avatar-supporter { margin: 2px; }

/* ============ 4. Premi delle edizioni speciali ============
   Non si comprano: li dà l'edizione (edizioni.py). Stessa struttura dei premium. */
.tn-shop-gruppo.is-evento { color: #ffb35c; opacity: 1; }
.tn-shop-evento-nota { color: #ffb35c; margin-top: .2rem; }

/* ---- Notte di Halloween (premio Notte Stregata 2026) ---- */
.theme-preview.theme-halloween-preview { background: linear-gradient(180deg, #1a0a33, #3b1240 70%, #0b0614); box-shadow: 0 0 0 2px #120726, 0 0 0 3px #ff8a2b, 0 0 14px rgba(255,138,43,.7); }
.theme-halloween-preview::before { right: 14%; top: 14%; width: 44%; height: 44%; border-radius: 50%; background: radial-gradient(circle at 38% 38%, #ffe2b8, #ff9c45 60%, #c9561f); box-shadow: 0 0 10px rgba(255,138,43,.8); animation: tema-mini-brilla 1.8s ease-in-out infinite alternate; }
.theme-halloween-preview::after { left: 0; right: 0; bottom: 0; height: 32%; background: #07030f; clip-path: polygon(0 100%, 0 40%, 12% 55%, 18% 0, 24% 50%, 40% 35%, 55% 60%, 62% 10%, 68% 55%, 85% 40%, 100% 55%, 100% 100%); }

.profile-theme-halloween {
  --ta: #ff8a2b; --ta2: #b994ff; --ta3: #8dffb0; --ta-rgb: 255, 138, 43; --tbtn: #1a0700;
  --tcard: rgba(18, 8, 34, .88); --tcard-solid: #120822;
  --tbg: radial-gradient(800px 500px at 80% 5%, rgba(255,138,43,.22), transparent 65%), linear-gradient(180deg, #1a0a33, #0b0614);
  --tband: linear-gradient(transparent 60%, #120822),
           radial-gradient(1.5px 1.5px at 15% 30%, #fff, transparent), radial-gradient(1px 1px at 40% 18%, #fff, transparent),
           radial-gradient(1.5px 1.5px at 70% 35%, #fff, transparent), radial-gradient(1px 1px at 88% 15%, #fff, transparent),
           radial-gradient(60% 80% at 80% 0%, rgba(255,138,43,.35), transparent 70%),
           linear-gradient(180deg, #2a1050, #4b1a3e 75%, #1a0a33);
}
.profile-theme-halloween.tema-on { border-color: rgba(255,138,43,.55); }
.tema-decori-halloween .td-stelle { inset: 0 0 40% 0;
  background-image: radial-gradient(1.5px 1.5px at 12% 20%, #fff, transparent), radial-gradient(1px 1px at 33% 12%, #fff, transparent),
                    radial-gradient(1.5px 1.5px at 58% 28%, #fff, transparent), radial-gradient(1px 1px at 22% 40%, #fff, transparent),
                    radial-gradient(1px 1px at 45% 8%, #fff, transparent), radial-gradient(1.5px 1.5px at 7% 55%, #fff, transparent);
  opacity: .7; animation: tema-mini-brilla 2.4s ease-in-out infinite alternate; }
.tema-decori-halloween .td-luna { right: 8%; top: 9%; width: min(28vw, 260px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 38% 38%, #fff1d8, #ffb35c 45%, #ff8a2b 62%, #c9561f);
  box-shadow: 0 0 80px 10px rgba(255,138,43,.45), 0 0 200px 40px rgba(255,138,43,.18); animation: td-luna 6s ease-in-out infinite alternate; }
.tema-decori-halloween .td-alberi { left: -2%; right: -2%; bottom: 0; height: 26%; background: #07030f;
  clip-path: polygon(0 100%, 0 55%, 4% 62%, 7% 20%, 9% 50%, 12% 35%, 15% 60%, 24% 52%, 30% 66%, 38% 48%, 41% 8%, 43% 45%, 47% 30%, 50% 58%, 62% 50%, 70% 64%, 78% 46%, 81% 12%, 83% 44%, 87% 28%, 90% 56%, 100% 48%, 100% 100%); }
.tema-decori-halloween .td-nebbia { left: -30%; right: -30%; bottom: 0; height: 34%;
  background: radial-gradient(ellipse at 30% 80%, rgba(220,200,255,.22), transparent 60%), radial-gradient(ellipse at 75% 90%, rgba(220,200,255,.18), transparent 60%);
  animation: td-nebbia-h 14s ease-in-out infinite alternate; }
.tema-decori-halloween .td-p { left: -60px; top: var(--y); width: 38px; height: 19px; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 32'%3E%3Cpath fill='%2307030f' d='M32 10c2-4 4-6 4-6s1 4 0 6c6-4 16-6 28-2-6 2-10 6-10 12-4-3-9-3-12 1-2-3-6-4-10-4s-8 1-10 4c-3-4-8-4-12-1 0-6-4-10-10-12 12-4 22-2 28 2-1-2 0-6 0-6s2 2 4 6z'/%3E%3C/svg%3E") center / contain no-repeat;
  animation: td-pipistrello var(--d) linear var(--w) infinite; }
.tema-decori-halloween .td-p:nth-child(n+6) { top: calc(var(--y) * .5); }
@keyframes td-luna { from { transform: scale(1); } to { transform: scale(1.04); } }
@keyframes td-nebbia-h { to { transform: translateX(12%); } }
@keyframes td-pipistrello {
  0% { transform: translate3d(0, 0, 0) scale(var(--s)); }
  25% { transform: translate3d(30vw, -30px, 0) scale(var(--s)) scaleY(.6); }
  50% { transform: translate3d(60vw, 10px, 0) scale(var(--s)); }
  75% { transform: translate3d(90vw, -20px, 0) scale(var(--s)) scaleY(.6); }
  100% { transform: translate3d(120vw, 0, 0) scale(var(--s)); }
}
.profile-theme-halloween .tema-head .card-title:not([class*="vip-"]) {
  background: linear-gradient(90deg, #ffe2b8, #ff8a2b, #ffd36b, #ff8a2b, #ffe2b8); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 0 10px rgba(255,122,0,.7)); animation: td-brilla 3s linear infinite; }
.profile-theme-halloween :is(h3, h4, h5, h6):not([class*="vip-"]) { color: #ffb35c !important; text-shadow: 0 0 10px rgba(255,138,43,.45); }
.profile-theme-halloween .card { border-color: rgba(255,138,43,.45) !important; box-shadow: inset 0 1px 0 rgba(255,179,92,.12), 0 18px 50px -18px rgba(255,90,0,.6) !important; }
.tema-on.profile-theme-halloween .flair-wrapper { position: relative; }
.tema-on.profile-theme-halloween .flair-wrapper::after {
  content: ""; position: absolute; inset: -28px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255,138,43,.9) 68%, rgba(122,47,208,.4) 82%, transparent);
  animation: td-alone 2.4s ease-in-out infinite; }
.tema-on.profile-theme-halloween .btn:not(.btn-primary):not(.btn-twitch) { background-color: rgba(8, 4, 16, .62); }
.tema-on.profile-theme-halloween .text-muted:not(h1, h2, h3, h4, h5, h6) { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 10px rgba(0,0,0,.7); }
@media (max-width: 575.98px) { .tema-decori-halloween .td-luna { width: 120px; } }
@media (prefers-reduced-motion: reduce) {
  .profile-theme-halloween .tema-head .card-title, .tema-on.profile-theme-halloween .flair-wrapper::after { animation: none !important; }
  .tema-decori-halloween .td-p { left: var(--x); transform: scale(var(--s)); }
}

/* ---- Natale di cristallo (premio del calendario del Natale di Cristallo 2026) ---- */
.theme-preview.theme-natale-preview { background: radial-gradient(circle at 50% 18%, rgba(120,240,230,.35), transparent 40%), linear-gradient(180deg, #1b0f3d, #2a1660 70%, #0e0920); box-shadow: 0 0 0 2px #120726, 0 0 0 3px #7af2e6, 0 0 14px rgba(122,242,230,.6); }
.theme-natale-preview::before { left: 30%; right: 30%; top: 22%; bottom: 14%; background: repeating-linear-gradient(180deg, rgba(255,255,255,.95) 0 2px, transparent 2px 7px); clip-path: polygon(50% 0, 100% 100%, 0 100%); opacity: .85; animation: tema-mini-brilla 1.8s ease-in-out infinite alternate; }
.theme-natale-preview::after { left: 44%; top: 8%; width: 12%; aspect-ratio: 1; background: #e8fbff; clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%); box-shadow: 0 0 8px #7af2e6; }

.profile-theme-natale {
  --ta: #7af2e6; --ta2: #c9b8ff; --ta3: #ffffff; --ta-rgb: 122, 242, 230; --tbtn: #071a1a;
  --tcard: rgba(20, 12, 46, .86); --tcard-solid: #140c2e;
  --tbg: radial-gradient(700px 480px at 50% 0%, rgba(122,242,230,.16), transparent 65%), linear-gradient(180deg, #1b0f3d, #0e0920);
  --tband: linear-gradient(transparent 60%, #140c2e),
           radial-gradient(1.5px 1.5px at 14% 30%, #fff, transparent), radial-gradient(1px 1px at 38% 16%, #fff, transparent),
           radial-gradient(1.5px 1.5px at 66% 34%, #fff, transparent), radial-gradient(1px 1px at 86% 18%, #fff, transparent),
           radial-gradient(50% 80% at 50% 0%, rgba(122,242,230,.28), transparent 70%),
           linear-gradient(180deg, #24135a, #3a1d78 75%, #1b0f3d);
}
.profile-theme-natale.tema-on { border-color: rgba(122,242,230,.5); }

/* decori del tema Natale: stelle, alone acquamarina, albero di lucine con puntale di cristallo, ghirlanda innevata con
   palline nei colori del sito, neve leggera (particelle). Tutto in CSS: niente immagini da scaricare. */
.tema-decori-natale .td-stelle { inset: 0 0 45% 0;
  background-image: radial-gradient(1.5px 1.5px at 10% 22%, #fff, transparent), radial-gradient(1px 1px at 28% 10%, #fff, transparent),
                    radial-gradient(1.5px 1.5px at 52% 26%, #fff, transparent), radial-gradient(1px 1px at 70% 12%, #fff, transparent),
                    radial-gradient(1px 1px at 88% 30%, #fff, transparent), radial-gradient(1.5px 1.5px at 40% 6%, #fff, transparent);
  opacity: .65; animation: tema-mini-brilla 2.6s ease-in-out infinite alternate; }
.tema-decori-natale .td-alone { right: -6%; top: 0; width: min(30vw, 320px); aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,255,224,.16), rgba(145,70,255,.08) 45%, transparent 68%); }
.tema-decori-natale .td-albero { right: 1.2%; top: 12%; width: clamp(80px, 9.5vw, 130px); aspect-ratio: 250 / 330;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 250 330'%3E%3Cg stroke='%23e9fbff' stroke-width='3' stroke-linecap='round' fill='none'%3E%3Cpath d='M125 4 V44 M108 14 L142 34 M108 34 L142 14'/%3E%3Cpath d='M125 12 l-5 -5 M125 12 l5 -5 M125 36 l-5 5 M125 36 l5 5'/%3E%3C/g%3E%3C/svg%3E") top center / 100% auto no-repeat; filter: drop-shadow(0 0 8px #9fe9ff); }
.tema-decori-natale .td-albero::before { content: ""; position: absolute; left: 0; right: 0; top: 15%; bottom: 0;
  background-image:
    radial-gradient(2.5px 2.5px at 50% 4%, #e9fbff 60%, transparent),
    radial-gradient(2.5px 2.5px at 44% 14%, #00ffe0 60%, transparent),
    radial-gradient(2.5px 2.5px at 56% 18%, #c9a7ff 60%, transparent),
    radial-gradient(2.5px 2.5px at 38% 28%, #e9fbff 60%, transparent),
    radial-gradient(2.5px 2.5px at 50% 26%, #00ffe0 60%, transparent),
    radial-gradient(2.5px 2.5px at 62% 32%, #c9a7ff 60%, transparent),
    radial-gradient(2.5px 2.5px at 32% 44%, #c9a7ff 60%, transparent),
    radial-gradient(2.5px 2.5px at 46% 42%, #e9fbff 60%, transparent),
    radial-gradient(2.5px 2.5px at 58% 44%, #00ffe0 60%, transparent),
    radial-gradient(2.5px 2.5px at 70% 48%, #e9fbff 60%, transparent),
    radial-gradient(2.5px 2.5px at 26% 60%, #00ffe0 60%, transparent),
    radial-gradient(2.5px 2.5px at 40% 58%, #c9a7ff 60%, transparent),
    radial-gradient(2.5px 2.5px at 54% 60%, #e9fbff 60%, transparent),
    radial-gradient(2.5px 2.5px at 68% 58%, #00ffe0 60%, transparent),
    radial-gradient(2.5px 2.5px at 78% 64%, #c9a7ff 60%, transparent),
    radial-gradient(2.5px 2.5px at 18% 78%, #e9fbff 60%, transparent),
    radial-gradient(2.5px 2.5px at 32% 76%, #00ffe0 60%, transparent),
    radial-gradient(2.5px 2.5px at 46% 78%, #c9a7ff 60%, transparent),
    radial-gradient(2.5px 2.5px at 60% 76%, #e9fbff 60%, transparent),
    radial-gradient(2.5px 2.5px at 74% 78%, #00ffe0 60%, transparent),
    radial-gradient(2.5px 2.5px at 86% 82%, #e9fbff 60%, transparent);
  filter: drop-shadow(0 0 4px #9fe9ff); animation: td-natale-luci 1.8s ease-in-out infinite alternate; }
.tema-decori-natale .td-albero::after { content: ""; position: absolute; left: 50%; top: 4%; width: 16%; aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: radial-gradient(circle, rgba(233,251,255,.85), transparent 65%); animation: td-natale-puntale 3s ease-in-out infinite alternate; }
.tema-decori-natale .td-ghirlanda { left: -2%; right: -2%; top: 0; height: 64px;
  background:
    radial-gradient(circle at 18% 46px, #efe4ff 0, #9146ff 6px, #2e1170 9px, transparent 10px),
    radial-gradient(circle at 47% 52px, #e6fffb 0, #00d6bd 7px, #035c55 10px, transparent 11px),
    radial-gradient(circle at 76% 42px, #fff 0, #b8c4d6 5px, #4a5468 8px, transparent 9px),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 240 30' preserveAspectRatio='none'%3E%3Cpath d='M0 4 Q60 28 120 6 Q180 28 240 4' fill='none' stroke='%231d5a52' stroke-width='10' stroke-dasharray='3 3'/%3E%3Cpath d='M0 0 Q60 24 120 2 Q180 24 240 0' fill='none' stroke='%23eef8ff' stroke-width='4' stroke-dasharray='12 5 5 8' stroke-linecap='round'/%3E%3C/svg%3E") 0 0 / 240px 30px repeat-x;
  filter: drop-shadow(0 3px 3px rgba(0,0,0,.5)); }
.tema-decori-natale .td-p { left: var(--x); top: -10px; width: 5px; height: 5px; border-radius: 50%; background: #fff; opacity: .7;
  box-shadow: 0 0 6px rgba(233,251,255,.8); animation: td-natale-neve var(--d) linear var(--w) infinite; }
@keyframes td-natale-luci { from { opacity: .55; } to { opacity: 1; } }
@keyframes td-natale-puntale { from { opacity: .4; transform: translateX(-50%) scale(.8); } to { opacity: 1; transform: translateX(-50%) scale(1.2); } }
@keyframes td-natale-neve { from { transform: translate(0, 0) scale(var(--s)); } to { transform: translate(var(--dx), 110vh) scale(var(--s)); } }
.profile-theme-natale .tema-head .card-title:not([class*="vip-"]) {
  background: linear-gradient(90deg, #e9fbff, #7af2e6, #ffffff, #c9b8ff, #e9fbff); background-size: 200% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent !important;
  filter: drop-shadow(0 0 10px rgba(122,242,230,.6)); animation: td-brilla 3.4s linear infinite; }
.profile-theme-natale :is(h3, h4, h5, h6):not([class*="vip-"]) { color: #bff4ff !important; text-shadow: 0 0 10px rgba(122,242,230,.35); }
.profile-theme-natale .card { border-color: rgba(122,242,230,.4) !important; box-shadow: inset 0 1px 0 rgba(233,251,255,.12), 0 18px 50px -18px rgba(0,255,224,.4) !important; }
.tema-on.profile-theme-natale .flair-wrapper { position: relative; }
.tema-on.profile-theme-natale .flair-wrapper::after {
  content: ""; position: absolute; inset: -28px; z-index: -1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(122,242,230,.75) 66%, rgba(145,70,255,.35) 82%, transparent);
  animation: td-alone 2.6s ease-in-out infinite; }
.tema-on.profile-theme-natale .btn:not(.btn-primary):not(.btn-twitch) { background-color: rgba(10, 6, 24, .62); }
.tema-on.profile-theme-natale .text-muted:not(h1, h2, h3, h4, h5, h6) { text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 10px rgba(0,0,0,.7); }
@media (max-width: 575.98px) { .tema-decori-natale .td-albero { width: 64px; right: 2%; top: 6%; opacity: .7; } .tema-decori-natale .td-alone { width: 220px; } }
@media (prefers-reduced-motion: reduce) {
  .profile-theme-natale .tema-head .card-title, .tema-on.profile-theme-natale .flair-wrapper::after,
  .tema-decori-natale .td-albero::before, .tema-decori-natale .td-albero::after, .tema-decori-natale .td-stelle { animation: none !important; }
  .tema-decori-natale .td-p { top: var(--y); transform: scale(var(--s)); }
}
