/* ════════════════════════════════════════════════════════════════
   Tema "Carte nella notte" — caricato dopo main.css
   ════════════════════════════════════════════════════════════════ */

:root, [data-bs-theme="dark"] {
  --tn-bg: #0e0920;
  --tn-bg-deep: #0a0718;
  --tn-surface: #19113a;
  --tn-surface-2: rgba(255,255,255,0.035);
  --tn-line: rgba(255,255,255,0.08);
  --tn-text: #efeaff;
  --tn-muted: #9d93c9;
  --tn-primary: #9146ff;
  --tn-primary-2: #b994ff;
  --tn-live: #ff3b5c;
  --tn-gold: #ffe58a;
  --tn-holo: linear-gradient(115deg, #ff6ad5, #c774e8 18%, #ad8cff 34%, #8795e8 50%, #94d0ff 64%, #7ff0d0 80%, #ffe58a);
  --tn-head: 'Bricolage Grotesque', 'Figtree', sans-serif;
  --tn-body: 'Figtree', system-ui, sans-serif;

  /* Variabili esistenti rimappate */
  --color-primary: #9146ff;
  --color-primary-rgb: 145, 70, 255;
  --color-accent: #b994ff;
  --color-accent-rgb: 185, 148, 255;
  --color-bg: #0e0920;
  --color-bg-soft: #19113a;
  --color-card: #19113a;
  --color-card-rgb: 25, 17, 58;
  --color-card-solid: #19113a;

  /* Bootstrap */
  --bs-body-bg: #0e0920;
  --bs-body-bg-rgb: 14, 9, 32;
  --bs-body-color: #efeaff;
  --bs-body-color-rgb: 239, 234, 255;
  --bs-secondary-color: #9d93c9;
  --bs-tertiary-bg: #19113a;
  --bs-secondary-bg: #19113a;
  --bs-border-color: rgba(255,255,255,0.1);
  --bs-border-color-translucent: rgba(255,255,255,0.08);
  --bs-link-color: #b994ff;
  --bs-link-color-rgb: 185, 148, 255;
  --bs-link-hover-color: #d6c2ff;
  --bs-link-hover-color-rgb: 214, 194, 255;
  --bs-primary: #9146ff;
  --bs-primary-rgb: 145, 70, 255;
  --bs-danger: #ff3b5c;
  --bs-danger-rgb: 255, 59, 92;
  --bs-heading-color: #efeaff;
  --bs-emphasis-color: #ffffff;
  --bs-font-sans-serif: var(--tn-body);
}

/* ── Base ─────────────────────────────────────────────── */
html { background: var(--tn-bg-deep); }
body {
  font-family: var(--tn-body);
  color: var(--tn-text);
  background:
    radial-gradient(900px 420px at 85% -5%, rgba(145,70,255,0.28), transparent 70%),
    radial-gradient(700px 380px at 0% 35%, rgba(255,106,213,0.08), transparent 70%),
    var(--tn-bg);
  background-attachment: fixed;
}
/* La striscia diagonale e gli aloni debordano di proposito: si tagliano ai bordi dello schermo
   con un contenitore largo quanto la pagina (sul body il taglio passa alla finestra e non funziona;
   su <main> taglierebbe ai bordi del contenuto). */
.tn-page { overflow-x: clip; }
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 2000; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4, .h5, .h6, .navbar-brand, .display-4, .display-5 {
  font-family: var(--tn-head); letter-spacing: -0.025em; color: var(--tn-text);
}
.text-muted, .text-body-secondary { color: var(--tn-muted) !important; }
.text-dark { color: var(--tn-text) !important; }
/* Testo scuro voluto su fondi chiari (badge gialli/azzurri): resta scuro e leggibile */
.bg-warning.text-dark, .bg-info.text-dark, .bg-warning .text-dark, .bg-info .text-dark,
.bg-warning :is(h1, h2, h3, h4, h5, h6), .bg-info :is(h1, h2, h3, h4, h5, h6) { color: #1b0f40 !important; }
.bg-light, .bg-white, .bg-body-tertiary, .bg-body { background-color: var(--tn-surface) !important; color: var(--tn-text); }
a { color: var(--tn-primary-2); }
a:hover { color: #d6c2ff; }
::selection { background: rgba(145,70,255,.45); color: #fff; }

:focus-visible { outline: 2px solid var(--tn-primary-2) !important; outline-offset: 2px; box-shadow: none !important; }

/* ── Tipografia del tema ──────────────────────────────── */
.tn-h1 { font-family: var(--tn-head); font-weight: 800; font-size: clamp(2.6rem, 6vw, 4.6rem); line-height: .98; letter-spacing: -0.03em; margin: 0 0 1.25rem; }
.tn-h1-outline { display: block; color: transparent; -webkit-text-stroke: 1.5px rgba(239,234,255,0.85); }
.tn-h2 { font-family: var(--tn-head); font-weight: 800; font-size: clamp(1.5rem, 3vw, 1.9rem); letter-spacing: -0.03em; margin: 0; display: flex; align-items: center; gap: .75rem; }
.tn-h2 .tn-count { font-family: var(--tn-body); font-size: .95rem; font-weight: 700; color: var(--tn-muted); letter-spacing: 0; }
.tn-lead { color: var(--tn-muted); font-size: 1.06rem; line-height: 1.55; max-width: 32em; margin: 0 0 1.6rem; }
.tn-section { padding: 2.25rem 0; }
.tn-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.1rem; }
.tn-link { color: var(--tn-primary-2); font-weight: 700; font-size: .9rem; text-decoration: none; }
.tn-link:hover { text-decoration: underline; color: #d6c2ff; }
.tn-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--tn-live); display: inline-block; flex-shrink: 0;
  box-shadow: 0 0 0 5px rgba(255,59,92,.18), 0 0 18px rgba(255,59,92,.8); }

/* ── Superfici ────────────────────────────────────────── */
.tn-surface { background: var(--tn-surface-2); border: 1px solid var(--tn-line); border-radius: 16px; }
.tn-holo-frame { position: relative; border-radius: 20px; background: linear-gradient(var(--tn-surface), var(--tn-surface)) padding-box, var(--tn-holo) border-box; border: 1.5px solid transparent; }

/* ── Pulsanti ─────────────────────────────────────────── */
.btn { border-radius: 12px; font-weight: 700; }
.btn-holo, .btn-primary {
  position: relative; isolation: isolate; color: #fff !important; border: 0 !important;
  background: linear-gradient(180deg, #9146ff, #6f2be0) padding-box, var(--tn-holo) border-box !important;
  border: 2px solid transparent !important; box-shadow: 0 8px 24px -8px rgba(145,70,255,.7);
}
.btn-holo:hover, .btn-primary:hover { filter: brightness(1.08); }
.btn-outline-secondary, .btn-outline-light, .btn-outline-primary, .btn-secondary, .btn-light {
  background: transparent !important; color: var(--tn-text) !important; border: 1px solid rgba(255,255,255,0.18) !important;
}
.btn-outline-secondary:hover, .btn-outline-light:hover, .btn-outline-primary:hover, .btn-secondary:hover, .btn-light:hover {
  background: rgba(255,255,255,0.06) !important; border-color: rgba(255,255,255,0.3) !important;
}

/* ── Componenti Bootstrap ─────────────────────────────── */
.card, .list-group-item, .modal-content, .dropdown-menu, .offcanvas, .toast, .popover {
  background-color: var(--tn-surface); color: var(--tn-text); border-color: var(--tn-line);
}
.card { border: 1px solid var(--tn-line) !important; border-radius: 16px; }
.card.shadow-sm, .card.shadow { box-shadow: 0 10px 30px -12px rgba(0,0,0,.6) !important; }
.dropdown-menu { border: 1px solid var(--tn-line) !important; box-shadow: 0 18px 40px -10px rgba(0,0,0,.7) !important; }
.dropdown-item { color: var(--tn-text); }
.dropdown-item:hover, .dropdown-item:focus { background: rgba(145,70,255,.16); color: #fff; }
.dropdown-divider { border-color: var(--tn-line); }
.form-control, .form-select { background-color: rgba(255,255,255,0.04); color: var(--tn-text); border-color: rgba(255,255,255,0.12); border-radius: 12px; }
.form-control:focus, .form-select:focus { background-color: rgba(255,255,255,0.06); color: var(--tn-text); border-color: var(--tn-primary-2); box-shadow: 0 0 0 3px rgba(145,70,255,.25); }
.form-control::placeholder { color: rgba(157,147,201,.7); }
.form-check-input { background-color: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.25); }
.form-check-input:checked { background-color: var(--tn-primary); border-color: var(--tn-primary); }
.table { --bs-table-bg: transparent; --bs-table-color: var(--tn-text); --bs-table-border-color: var(--tn-line); --bs-table-striped-bg: rgba(255,255,255,0.03); --bs-table-hover-bg: rgba(145,70,255,.08); }
.nav-tabs { border-color: var(--tn-line); }
.nav-tabs .nav-link { color: var(--tn-muted); }
.nav-tabs .nav-link.active { background: var(--tn-surface); color: #fff; border-color: var(--tn-line) var(--tn-line) var(--tn-surface); }
.nav-pills .nav-link { color: var(--tn-muted); }
.nav-pills .nav-link.active { background: var(--tn-primary); color: #fff; }
.alert { border-radius: 14px; border: 1px solid var(--tn-line); background: var(--tn-surface); color: var(--tn-text); }
.alert-success { border-color: rgba(46, 204, 113, .35); }
.alert-danger { border-color: rgba(255, 59, 92, .45); }
.alert-warning { border-color: rgba(255, 229, 138, .4); }
.alert-info { border-color: rgba(148, 208, 255, .4); }
.pagination { --bs-pagination-bg: var(--tn-surface); --bs-pagination-color: var(--tn-text); --bs-pagination-border-color: var(--tn-line); --bs-pagination-active-bg: var(--tn-primary); --bs-pagination-active-border-color: var(--tn-primary); --bs-pagination-hover-bg: rgba(145,70,255,.15); --bs-pagination-hover-color: #fff; }
.badge.bg-light, .badge.text-bg-light { background: rgba(255,255,255,.1) !important; color: var(--tn-text) !important; }
.modal-header, .modal-footer { border-color: var(--tn-line); }
.btn-close { filter: invert(1) grayscale(1) brightness(1.6); }
hr { border-color: var(--tn-line); opacity: 1; }

/* ── Avviso unico del sito ────────────────────────────── */
.tn-notice {
  display: flex; align-items: center; gap: .9rem; padding: .9rem 1.1rem; margin-bottom: 1rem;
  border-radius: 16px; color: var(--tn-text); text-decoration: none;
  background: linear-gradient(var(--tn-surface), var(--tn-surface)) padding-box, var(--tn-holo) border-box; border: 1.5px solid transparent;
}
.tn-notice:hover { color: #fff; }
.tn-notice-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: rgba(145,70,255,.2); color: var(--tn-primary-2); font-size: 1.1rem; }
.tn-notice small { color: var(--tn-muted); }
.tn-notice-cta { margin-left: auto; font-weight: 800; color: var(--tn-primary-2); white-space: nowrap; }

/* ── Striscia diagonale ───────────────────────────────── */
.tn-band { margin: 2.25rem -2rem; transform: rotate(-2.2deg); background: var(--tn-holo); padding: 2px 0; }
.tn-band-in { background: #120b2a; overflow: hidden; white-space: nowrap; }
.tn-band-track { display: inline-flex; animation: tn-scroll 36s linear infinite; padding: .7rem 0; }
.tn-band-track span { font-family: var(--tn-head); font-weight: 800; font-size: 1.05rem; padding: 0 1.1rem; }
.tn-band-track .tn-band-name { color: var(--tn-primary-2); }
.tn-band-track .tn-band-sep { color: var(--tn-live); }
@keyframes tn-scroll { to { transform: translateX(-50%); } }

/* ── Movimento ridotto ────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {
  .tn-band-track { animation: none; }
  *, *::before, *::after { transition-duration: 0s !important; }
}

/* ── Menu ─────────────────────────────────────────────── */
.tn-nav { background: rgba(14,9,32,0.72) !important; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); padding: .7rem 0; border: 0; }
.tn-nav::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--tn-holo); opacity: .55; }
.tn-logo { display: inline-flex; align-items: center; gap: .55rem; font-family: var(--tn-head); font-weight: 800; font-size: 1.4rem; letter-spacing: -0.03em; color: #fff !important; text-decoration: none; }
.tn-logo i { width: 20px; height: 28px; border-radius: 5px; background: var(--tn-holo); transform: rotate(-8deg); box-shadow: 0 0 14px rgba(173,140,255,.6); display: inline-block; }
.tn-logo b { color: var(--tn-primary-2); font-weight: 800; }
.tn-nav .navbar-toggler { color: #fff; border: 1px solid var(--tn-line); border-radius: 10px; padding: .4rem .7rem; }
.tn-nav-main { margin-left: 1.5rem; gap: .25rem; }
.tn-nav .nav-link { color: var(--tn-muted) !important; font-weight: 600; font-size: .95rem; position: relative; }
.tn-nav .nav-link:hover { color: #fff !important; }
.tn-nav .nav-link.active { color: #fff !important; }
.tn-nav .nav-link.active::after { content: ""; position: absolute; left: .5rem; right: .5rem; bottom: .1rem; height: 2px; border-radius: 2px; background: var(--tn-holo); }
.tn-nav-right { gap: .4rem; }
.tn-points { display: inline-flex; align-items: center; gap: .4rem; padding: .35rem .8rem; border-radius: 999px; background: rgba(255,255,255,0.05); border: 1px solid var(--tn-line); color: var(--tn-text); text-decoration: none; font-size: .85rem; }
.tn-points i, .tn-points b { color: var(--tn-gold); }
.tn-points span { color: var(--tn-muted); }
.tn-icon-btn { background: none; border: 0; font-size: 1.05rem; padding: .45rem .55rem !important; }
/* "Supportaci": cuore e scritta in una pillola rosa, il cuore batte piano */
.tn-support { display: inline-flex; align-items: center; gap: .45rem; padding: .32rem .85rem !important; border-radius: 999px;
  border: 1px solid rgba(255,122,154,.4); background: rgba(255,122,154,.1); color: #ffb3c4 !important;
  font-weight: 700; font-size: .85rem; line-height: 1.2; transition: background .2s, border-color .2s, color .2s; }
.tn-support i { color: #ff7a9a; font-size: .9rem; animation: tn-batte 2.4s ease-in-out infinite; }
.tn-support:hover, .tn-support[aria-expanded="true"] { background: rgba(255,122,154,.2); border-color: rgba(255,122,154,.7); color: #fff !important; }
@keyframes tn-batte { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.22); } 90% { transform: scale(.95); } }
@media (prefers-reduced-motion: reduce) { .tn-support i { animation: none; } }
.tn-badge-count { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--tn-live); color: #fff; font-size: .62rem; font-weight: 800; display: grid; place-items: center; }
.tn-support-menu { width: 290px; padding: 1rem; }
.tn-unread { background: rgba(145,70,255,.12); }
.tn-account { background: none; border: 0; padding: .25rem !important; display: inline-flex; align-items: center; }
.tn-account img { border-radius: 50%; object-fit: cover; border: 2px solid transparent; background: var(--tn-holo) border-box; }
.tn-donation-track { height: 6px; border-radius: 999px; background: rgba(255,255,255,.08); overflow: hidden; }
.tn-donation-track div { height: 100%; background: var(--tn-holo); border-radius: 999px; }
@media (max-width: 991.98px) {
  .tn-nav-main { margin-left: 0; margin-top: .75rem; }
  .tn-nav .navbar-collapse { background: var(--tn-surface); border: 1px solid var(--tn-line); border-radius: 16px; padding: .5rem 1rem 1rem; margin-top: .6rem; }
  .tn-nav .nav-link.active::after { display: none; }
  /* nel menu a tendina del telefono il riquadro Supporta prende la larghezza del pannello */
  .tn-support-menu { width: 100%; }
  .tn-nav-right { flex-direction: row; flex-wrap: wrap; align-items: center; padding-top: .5rem; border-top: 1px solid var(--tn-line); margin-top: .5rem; }
}

/* ── Avviso in alto ───────────────────────────────────── */
.tn-topnote { background: var(--tn-primary) !important; border: 0 !important; font-size: .85rem; }
.tn-topnote .collab-banner-inner { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .45rem .75rem; }
.tn-topnote a, .tn-topnote a:hover, .tn-topnote .collab-banner-cta, .tn-topnote i { color: #fff !important; }
.tn-topnote a { text-decoration: none; }
.tn-topnote a:hover .collab-banner-cta { text-decoration: underline; }
.tn-topnote .collab-banner-cta { font-weight: 800; margin-left: .35rem; white-space: nowrap; }
.tn-topnote .collab-banner-close { background: none; border: 0; color: rgba(255,255,255,.8); padding: .15rem .4rem; border-radius: 6px; }
.tn-topnote .collab-banner-close:hover { background: rgba(255,255,255,.15); color: #fff; }
/* Striscia "attiva il conteggio in chat": viola Twitch, per gli streamer che non l'hanno ancora attivato */
.tn-topnote.tn-chatnote { background: linear-gradient(90deg, #6441a5, #9146ff) !important; }
.tn-chatnote .collab-banner-link b { font-weight: 800; margin-right: .25rem; }
.tn-chatnote .collab-banner-cta { background: rgba(255,255,255,.18); padding: .1rem .6rem; border-radius: 999px; }

/* ── Piè di pagina ────────────────────────────────────── */
.tn-footer { background: var(--tn-bg-deep) !important; color: var(--tn-text); position: relative; margin-top: 3rem; }
.tn-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 1px; background: var(--tn-holo); opacity: .5; }
.tn-footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; flex-wrap: wrap; padding-bottom: 2rem; margin-bottom: 2rem; border-bottom: 1px solid var(--tn-line); }
.tn-donation { min-width: 260px; max-width: 340px; flex: 1; }
.tn-footer h6 { color: var(--tn-primary-2) !important; font-family: var(--tn-body); font-size: .75rem !important; letter-spacing: .08em; }
.tn-footer .footer-link { color: var(--tn-muted) !important; }
.tn-footer .footer-link:hover { color: #fff !important; }

/* ── Homepage: landing ────────────────────────────────── */
.tn-hero { display: grid; grid-template-columns: 1fr 1.05fr; gap: 2rem; align-items: center; padding: 3rem 0 4.5rem; }
.tn-hero-sub { color: var(--tn-muted); font-size: .92rem; }
.tn-fan { position: relative; height: 400px; }
.tn-fan-slot { position: absolute; width: 210px; }
.tn-fan-1 { left: 0; top: 60px; } .tn-fan-1 .tc { --rz: -10deg; }
.tn-fan-2 { left: 33%; top: 6px; z-index: 2; }
.tn-fan-3 { left: 66%; top: 60px; } .tn-fan-3 .tc { --rz: 10deg; }
/* Solo due carte: ventaglio centrato */
.tn-fan-1:nth-last-child(2) { left: 12%; }
.tn-fan-2:last-child { left: 46%; }
.tn-numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; padding: 1.5rem 0; }
.tn-numbers div { padding: 1rem 1.1rem; border-radius: 16px; background: var(--tn-surface-2); border: 1px solid var(--tn-line); }
.tn-numbers b { display: block; font-family: var(--tn-head); font-weight: 800; font-size: 2.2rem; letter-spacing: -0.04em; line-height: 1; color: #fff; }
.tn-numbers span { color: var(--tn-muted); font-size: .85rem; }
.landing-steps, .landing-features, .landing-cta { background: transparent !important; }
.landing-step-num { background: var(--tn-holo) !important; color: #1b0f40 !important; font-family: var(--tn-head); font-weight: 800; }
.landing-feature, .hm-side-card, .landing-step { background: var(--tn-surface-2) !important; border: 1px solid var(--tn-line) !important; border-radius: 16px !important; box-shadow: none !important; }
.landing-feature i { color: var(--tn-primary-2) !important; }
.landing-cta-card { display: grid; grid-template-columns: 1.2fr .8fr; align-items: center; gap: 1.5rem; padding: 2.5rem; text-align: left !important; }
.tn-cta-fan { position: relative; height: 260px; }
.tn-cta-fan .tn-fan-slot { width: 160px; }
.tn-cta-1 { left: 5%; top: 20px; } .tn-cta-1 .tc { --rz: -8deg; }
.tn-cta-2 { left: 45%; top: 0; } .tn-cta-2 .tc { --rz: 6deg; }
@media (max-width: 991.98px) {
  .tn-hero { grid-template-columns: 1fr; padding-top: 2rem; }
  .tn-fan { height: 330px; max-width: 520px; width: 100%; margin: 0 auto; }
  .tn-fan-slot { width: 42%; }
  .tn-fan-1 { left: 4%; } .tn-fan-2 { left: 29%; } .tn-fan-3 { left: 54%; }
  .tn-fan-1:nth-last-child(2) { left: 10%; } .tn-fan-2:last-child { left: 48%; }
  .tn-numbers { grid-template-columns: repeat(2, 1fr); }
  .landing-cta-card { grid-template-columns: 1fr; }
  .tn-cta-fan { display: none; }
}
@media (max-width: 575.98px) { .tn-fan { height: 270px; } .tn-band { margin: 1.25rem -1rem; } }

/* ── Homepage: dashboard ──────────────────────────────── */
.tn-dash-head { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: 2rem 0 1.5rem; }
.tn-h1-dash { font-size: clamp(2.2rem, 5vw, 3.6rem); }
.tn-mycard { width: 190px; }
.tn-mycard .tc { --rz: 4deg; }
.hm-stats-row { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; }
.hm-stat { display: inline-flex; align-items: center; gap: .45rem; padding: .45rem .9rem; border-radius: 999px; background: var(--tn-surface-2); border: 1px solid var(--tn-line); color: var(--tn-text); text-decoration: none; }
.hm-stat-value { font-family: var(--tn-head); font-weight: 800; font-size: 1.1rem; }
.hm-stat-label { color: var(--tn-muted); font-size: .85rem; }
.hm-stat-divider { display: none; }
.hm-vip-badge { padding: .35rem .8rem; border-radius: 999px; font-weight: 800; font-size: .8rem; color: #1b0f40; background: var(--tn-holo); }
.tn-notice-block { flex-direction: column; align-items: stretch; }
.tn-shortcut { display: flex; align-items: center; gap: .5rem; padding: .6rem; border-radius: 12px; background: rgba(255,255,255,.05); color: var(--tn-text); }
.hm-missions, .hm-highlight-card, .hm-side-card, .hm-feed-item, .hm-tabs, .hm-hof { background: var(--tn-surface-2) !important; border: 1px solid var(--tn-line) !important; border-radius: 16px !important; box-shadow: none !important; }
.hm-missions-fill { background: var(--tn-holo) !important; }
.hm-section-title, .hm-highlight-badge { font-family: var(--tn-head); }
@media (max-width: 767.98px) { .tn-dash-head { grid-template-columns: 1fr; } .tn-mycard { width: 160px; } }

/* ── Scelta streamer/spettatore e ultimo passo ────────── */
.tn-role-choice { border: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
.tn-role-choice legend, .tn-role-choice > p { grid-column: 1 / -1; }
.tn-role { position: relative; cursor: pointer; margin: 0; }
.tn-role input { position: absolute; opacity: 0; }
.tn-role-card { display: flex; flex-direction: column; gap: .3rem; height: 100%; padding: 1rem; border-radius: 16px; background: var(--tn-surface-2); border: 1.5px solid var(--tn-line); transition: border-color .2s, background .2s; }
.tn-role-card i { font-size: 1.4rem; color: var(--tn-primary-2); }
.tn-role-card small { color: var(--tn-muted); line-height: 1.4; }
.tn-role input:checked + .tn-role-card { background: linear-gradient(#1d1446, #1d1446) padding-box, var(--tn-holo) border-box; border-color: transparent; }
.tn-role input:focus-visible + .tn-role-card { outline: 2px solid var(--tn-primary-2); outline-offset: 2px; }
.tn-step { display: grid; grid-template-columns: 170px 1fr; gap: 1.75rem; align-items: center; padding: 1.5rem; margin: 1rem 0 1.5rem; }
.tn-step-card .tc { --rz: -6deg; }
@media (max-width: 575.98px) { .tn-role-choice { grid-template-columns: 1fr; } .tn-step { grid-template-columns: 1fr; } .tn-step-card { width: 150px; } }

/* Vetrina come album */
.tn-album-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; padding: .8rem 1rem; margin-bottom: 1rem; border: 1px solid var(--tn-line); border-radius: 14px; background: var(--tn-surface); }
.tn-album-count b { font-family: var(--tn-head); font-size: 1.2rem; }
.tn-album-filter { display: flex; gap: .25rem; }
.tn-album-filter a { padding: .3rem .8rem; border-radius: 999px; color: var(--tn-muted); text-decoration: none; font-weight: 600; font-size: .85rem; }
.tn-album-filter a.active, .tn-album-filter a:hover { background: var(--tn-surface-2); color: #fff; }

/* La mia collezione */
.tn-coll-head { display: grid; grid-template-columns: 1fr minmax(260px, 360px); gap: 1.25rem; align-items: end; margin-bottom: 1.5rem; }
.tn-bustina { display: flex; flex-direction: column; gap: .75rem; padding: 1rem 1.25rem; border: 1px solid var(--tn-line); border-radius: 16px; background: var(--tn-surface); }
.tn-coll-goals { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: .5rem; }
.tn-coll-goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.tn-coll-goals li { display: flex; flex-direction: column; gap: .15rem; padding: .65rem .9rem; border-radius: 14px; background: var(--tn-surface); color: var(--tn-muted); font-size: .85rem; }
.tn-coll-goals li b { color: #e9e6f5; font-weight: 700; }
.tn-coll-goals li span { font-size: .78rem; }
.tn-coll-goals li.done { color: #d8d2ee; background: var(--tn-surface-2); box-shadow: inset 0 0 0 1px rgba(192,132,252,.35); }
.tn-coll-goals li.done b, .tn-coll-goals li.done i { color: #fff; }
@media (max-width: 767.98px) { .tn-coll-head { grid-template-columns: 1fr; } }

.tn-chip { display: inline-flex; gap: .35rem; align-items: center; padding: .25rem .7rem; border-radius: 999px; background: var(--tn-surface-2); font-size: .8rem; }

/* I suoi collezionisti */
.tn-coll-box { padding: 1rem 1.25rem; border: 1px solid var(--tn-line); border-radius: 16px; background: var(--tn-surface); }
.tn-coll-fan { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; }
.tn-coll-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: .4rem; vertical-align: middle; }
