/* Tema condiviso — identico alla bozza approvata. Caricato dopo styles.css. */
:root {
  --bg: #07050d;
  --bg2: #160a26;
  --surface: #0f0b1a;
  --surface-2: #160a26;
  --line: rgba(178,77,255,.2);
  --text: #f1e6ff;
  --muted: rgba(233,214,255,.78);
  --magenta: #e56bff;
  --purple: #c77dff;
  --glow: #b24dff;
  --green: #3ddc84;
  --header-h: 76px;
}
html { background: var(--bg); scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  background-color: var(--bg);
  background-image: radial-gradient(ellipse at 50% 0%, var(--bg2), transparent 60%);
  background-attachment: fixed;
  font-size: 16px;
}
html.page-in body { animation: pageFade .25s ease; }
@keyframes pageFade { from { opacity: 0 } }

a:focus-visible, button:focus-visible, .member-card:focus-visible, .founder-card:focus-within {
  outline: 2px solid var(--purple);
  outline-offset: 3px;
}

/* Header: logo intero 44px, pillola nav, voce attiva sottolineata */
.site-header { height: var(--header-h); background: rgba(7,5,13,.85); backdrop-filter: blur(10px); border-bottom: 1px solid rgba(178,77,255,.25); }
.site-header .nav { display: flex; flex-wrap: nowrap; align-items: center; justify-content: space-between; gap: 16px; height: 100%; max-width: 1040px; }
.site-header .wordmark { flex: none; display: block; }
.site-header .mark-img { display: block; width: auto; height: 44px; object-fit: contain; object-position: left center; mix-blend-mode: normal; filter: none; }
.nav__toggle { display: none !important; }
.nav__mobile-cta { display: none !important; }
@media (min-width: 761px) and (max-width: 980px) {
  .nav__links > a, .nav__dropdown-btn { padding: 6px 10px; font-size: .85rem; }
}
.nav__links { display: flex; gap: 4px; padding: 5px; overflow: visible; max-width: 100%; border-radius: 999px; background: rgba(22,10,38,.7); border: 1px solid rgba(178,77,255,.25); }
.nav__links::-webkit-scrollbar { display: none; }
.nav__links > a, .nav__dropdown-btn { font-size: .95rem; padding: 7px 14px; color: var(--muted); border-radius: 999px; }
.nav__links > a:hover, .nav__dropdown-btn:hover { color: #fff; text-shadow: 0 0 10px var(--glow); }
.nav__links > a[aria-current]::after { left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--purple); box-shadow: 0 0 8px var(--glow); transform: scaleX(1); }
.nav__right { flex: none; }
.nav__login { display: inline-flex; align-items: center; min-height: 40px; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--glow); background: rgba(22,10,38,.85); font-size: .9rem; color: #fff; }
.nav__login::before { display: none; }
@media (min-width: 761px) {
  .nav__links { position: static; display: flex; flex-direction: row; align-items: center; }
  .nav__dropdown-menu { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); width: 280px; }
}
@media (max-width: 760px) {
  :root { --header-h: 108px; }
  .site-header .nav { flex-wrap: wrap; justify-content: center; align-content: center; gap: 6px; padding-block: 8px; }
  .site-header .wordmark { width: 100%; text-align: center; }
  .site-header .mark-img { margin-inline: auto; height: 44px; }
  .nav__links { width: 100%; overflow-x: auto; scrollbar-width: none; }
  .nav__links::-webkit-scrollbar { display: none; }
  .nav__dropdown-menu { position: fixed; top: var(--header-h); left: 12px; right: 12px; width: auto; transform: none; }
  .nav__right { display: none; }
}

/* Titolo di pagina: etichetta, titolo grande, linea neon corta, introduzione */
.section__head { display: block; margin-bottom: 24px; padding-bottom: 0; border-bottom: 0; }
.section .eyebrow, .focus-block .eyebrow { font-size: .82rem; letter-spacing: .2em; text-transform: uppercase; color: var(--magenta); }
.section h2, .section h1, .focus-block h2 { margin: 6px 0 0; font-size: clamp(2rem, 6vw, 3.2rem); line-height: 1.1; letter-spacing: -.02em; }
.section__head h2::after, .section__head h1::after { content: ""; display: block; width: 60px; height: 3px; margin: 14px 0 0; border-radius: 3px; background: var(--purple); box-shadow: 0 0 12px var(--glow); }
.lede { margin: 18px 0 24px; max-width: 580px; font-size: 1rem; line-height: 1.6; color: var(--muted); }
.section { padding: 48px 20px 72px; }

/* Bottoni: la scintilla e' gia' .btn::after in styles.css, non la duplico */
.btn { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 0; padding: 13px 28px; border: 1px solid var(--glow); border-radius: 999px; background: linear-gradient(135deg, #c77dff, #7b2fe0); color: #fff; font-size: .95rem; font-weight: 600; text-decoration: none; transition: transform .25s, box-shadow .25s; }
.btn--ghost, .btn.g { background: rgba(22,10,38,.85); border-color: var(--glow); }
.btn--small { min-height: 0; padding: 8px 18px; font-size: .9rem; }
.btn--mini { min-height: 0; padding: 8px 14px; font-size: .85rem; }
.btn:hover { transform: translateY(-3px); box-shadow: 0 0 22px rgba(178,77,255,.6); }
.btn:active { transform: translateY(1px); }
.btn::after { transition: transform .5s ease-out; }
.btn:hover::after { transform: translateX(330%) skewX(-20deg); }

/* Card statistiche */
.strip, .stat-pair, .stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; width: 100%; margin-top: 0; background: none; border: 0; overflow: visible; }
.strip__card, .stat { padding: 18px; border: 1px solid rgba(178,77,255,.2); border-radius: 14px; background: var(--surface); text-align: center; transition: border-color .25s, box-shadow .25s; }
.strip__card:hover, .stat:hover { border-color: rgba(199,125,255,.7); box-shadow: 0 0 22px rgba(178,77,255,.25); transform: none; }
.strip__card dt, .stat dt { font-size: .82rem; letter-spacing: .04em; color: var(--muted); }
.strip__card dd, .stat dd { margin: 4px 0; font-size: 2.4rem; line-height: 1.2; color: #fff; }
.strip__card dd.strip__label { margin: 0; font-size: .82rem; color: var(--muted); }

/* Cosa offre la Gang: griglia 2 colonne, freccia che scorre */
.menu-list { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px; }
.menu-list > li { position: relative; display: flex; align-items: center; gap: 14px; min-height: 80px; padding: 18px; border: 1px solid rgba(178,77,255,.2); border-radius: 14px; background: var(--surface); transition: transform .25s, border-color .25s, box-shadow .25s; }
.menu-list > li::before { content: ""; flex: none; width: 44px; height: 44px; border-radius: 12px; background: rgba(178,77,255,.14) center / 22px 22px no-repeat; }
.menu-list > li:nth-child(1)::before { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M3 3h7v7H3zM14 3h7v7h-7zM3 14h7v7H3zM14 14h7v7h-7z'/%3E%3C/svg%3E") no-repeat center; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M3 3h7v7H3zM14 3h7v7h-7zM3 14h7v7H3zM14 14h7v7h-7z'/%3E%3C/svg%3E") no-repeat center; background-color: rgba(178,77,255,.14); }
.menu-list > li:nth-child(2)::before { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M3 3h8l10 10-8 8L3 11z'/%3E%3C/svg%3E") no-repeat center; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M3 3h8l10 10-8 8L3 11z'/%3E%3C/svg%3E") no-repeat center; background-color: rgba(178,77,255,.14); }
.menu-list > li:nth-child(3)::before { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M12 3l8 3v6c0 5-4 8-8 9-4-1-8-4-8-9V6z'/%3E%3C/svg%3E") no-repeat center; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M12 3l8 3v6c0 5-4 8-8 9-4-1-8-4-8-9V6z'/%3E%3C/svg%3E") no-repeat center; background-color: rgba(178,77,255,.14); }
.menu-list > li:nth-child(4)::before { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M3 8h18v4H3zM5 12h14v9H5zM12 8v13'/%3E%3C/svg%3E") no-repeat center; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M3 8h18v4H3zM5 12h14v9H5zM12 8v13'/%3E%3C/svg%3E") no-repeat center; background-color: rgba(178,77,255,.14); }
.menu-list > li:nth-child(5)::before { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M5 20V10M12 20V4M19 20v-7'/%3E%3C/svg%3E") no-repeat center; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M5 20V10M12 20V4M19 20v-7'/%3E%3C/svg%3E") no-repeat center; background-color: rgba(178,77,255,.14); }
.menu-list > li:nth-child(6)::before { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M10 14l4-4M8 12a4 4 0 0 1 0-6l1-1M16 12a4 4 0 0 1 0 6l-1 1'/%3E%3C/svg%3E") no-repeat center; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M10 14l4-4M8 12a4 4 0 0 1 0-6l1-1M16 12a4 4 0 0 1 0 6l-1 1'/%3E%3C/svg%3E") no-repeat center; background-color: rgba(178,77,255,.14); }
.menu-list > li:nth-child(7)::before { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M6 3h9l4 4v14H6zM14 3v5h5'/%3E%3C/svg%3E") no-repeat center; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M6 3h9l4 4v14H6zM14 3v5h5'/%3E%3C/svg%3E") no-repeat center; background-color: rgba(178,77,255,.14); }
.menu-list > li:nth-child(8)::before { mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M12 3v18M5 7h14M5 7l-3 7h6zM19 7l-3 7h6z'/%3E%3C/svg%3E") no-repeat center; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c77dff' stroke-width='2'%3E%3Cpath d='M12 3v18M5 7h14M5 7l-3 7h6zM19 7l-3 7h6z'/%3E%3C/svg%3E") no-repeat center; background-color: rgba(178,77,255,.14); }
.menu-list > li:hover { transform: translateY(-3px); border-color: rgba(199,125,255,.7); box-shadow: 0 0 24px rgba(178,77,255,.28); }
.menu-list strong { font-size: 1.05rem; }
.menu-list small { font-size: .95rem; color: var(--muted); }
.menu-list > li > a { margin-left: auto; color: var(--magenta); font-size: 1.2rem; transition: transform .25s; }
.menu-list > li:hover > a { transform: translateX(5px); }
@media (max-width: 700px) { .menu-list { grid-template-columns: 1fr; } }

/* Founder: avatar tondi 120px con anello luminoso */
.founder-carousel { display: flex; align-items: center; gap: 14px; }
.founder-grid { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 40px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 8px 2px 16px; }
.founder-grid::-webkit-scrollbar { display: none; }
.founder-card { width: 120px; flex: none; scroll-snap-align: start; text-align: center; }
.founder-nav { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(178,77,255,.45); background: rgba(22,10,38,.85); color: var(--purple); font-size: 1.4rem; line-height: 1; cursor: pointer; transition: transform .25s; }
.founder-nav:hover { transform: scale(1.08); }
.founder-card__link { display: block; text-decoration: none; color: var(--text); }
.founder-card__img { display: block; width: 120px; height: 120px; margin: 0 auto 12px; border-radius: 50%; object-fit: cover; border: 0; box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--purple), 0 0 22px var(--glow); transition: transform .3s; }
.founder-card:hover .founder-card__img, .founder-card:focus-within .founder-card__img { transform: translateY(-4px); animation: founderRing 1.4s ease-in-out infinite; }
@keyframes founderRing { 50% { box-shadow: 0 0 0 3px var(--bg), 0 0 0 5px var(--purple), 0 0 40px var(--glow); } }
.founder-card__name { font-size: .85rem; color: var(--purple); }

/* Gang: pillole filtro, avatar quadrati, badge ruolo */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.chips li { padding: 8px 16px; border: 1px solid rgba(178,77,255,.3); border-radius: 999px; background: var(--surface); font-size: .95rem; cursor: pointer; transition: border-color .2s, box-shadow .2s; }
.chips li:hover { border-color: var(--purple); }
.chips li.is-active { border-color: transparent; color: #fff; background: linear-gradient(135deg, #c77dff, #7b2fe0); box-shadow: 0 0 14px rgba(178,77,255,.5); }
.role-count { display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: rgba(178,77,255,.18); color: var(--purple); font-size: .78rem; }
.role-group { margin-top: 26px; }
.role-group[hidden] { display: none; }
.role-group__title { margin: 0 0 12px; font-size: 1.1rem; color: var(--purple); text-shadow: 0 0 10px rgba(178,77,255,.45); }
.member-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 22px; margin-top: 28px; }
.member-card { aspect-ratio: auto; border: 0; background: none; text-align: center; }
.member-card__avatar, .member-card__fallback { display: block; width: 100%; max-width: 140px; aspect-ratio: 1; margin: 0 auto 10px; border-radius: 18px; object-fit: cover; border: 1px solid rgba(199,125,255,.4); background: linear-gradient(135deg, #7b2fe0, #2a0f55); }
.member-card__fallback { display: grid; place-items: center; font-size: 2.6rem; font-weight: 700; }
.member-card__overlay { position: static; display: block; padding: 0; background: none; opacity: 1; transform: none; }
.member-card__name { display: block; font-size: .95rem; font-weight: 600; }
.member-card__role { display: inline-block; margin-top: 4px; padding: 2px 12px; border-radius: 999px; font-size: .82rem; color: #e9c8ff; background: rgba(178,77,255,.16); }
.member-card__link { display: block; width: 100%; height: auto; background: none; border: 0; border-radius: 0; box-shadow: none; text-decoration: none; color: var(--text); }
.member-card[hidden] { display: none; }
.member-card__empty { grid-column: 1 / -1; }
.bk, .section .btn.bk { margin-top: 32px; }

/* Stato vuoto unico */
.event-card__empty, .member-card__empty { position: relative; max-width: 560px; margin: 10px auto 0; padding: 40px 28px; border-radius: 20px; border: 1px solid transparent; background: linear-gradient(var(--surface), var(--surface)) padding-box, linear-gradient(135deg, #c77dff, rgba(178,77,255,.1) 45%, #7b2fe0) border-box; text-align: center; color: var(--muted); }
.empty-ring { display: grid; place-items: center; width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; color: var(--purple); background: rgba(178,77,255,.1); box-shadow: 0 0 0 2px rgba(199,125,255,.25); animation: emptyRing 2.4s ease-in-out infinite; }
@keyframes emptyRing { 0%,100% { box-shadow: 0 0 0 2px rgba(199,125,255,.25) } 50% { box-shadow: 0 0 0 8px rgba(199,125,255,.05) } }
.event-card__empty strong { display: block; margin-bottom: 6px; color: var(--text); font-size: 1.3rem; }
.event-card__wait { display: inline-flex; align-items: center; gap: 8px; margin: 18px 0 22px; font-size: .85rem; color: var(--muted); }
.event-card__wait i { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 8px var(--glow); animation: emptyDot 1.6s ease-in-out infinite; }
@keyframes emptyDot { 50% { opacity: .3 } }

/* Card evento (giveaway, sondaggi, listino) */
.event-card { padding: 22px; border: 1px solid rgba(178,77,255,.2); border-radius: 14px; background: var(--surface); }
.event-card h3 { font-size: 1.15rem; }
.event-card__badge { padding: 4px 12px; border-radius: 999px; background: rgba(61,220,132,.12); border: 1px solid rgba(61,220,132,.45); color: var(--green); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }
.event-card__badge.is-closed { color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.event-card__meta { font-size: .86rem; color: var(--muted); }
.event-card__meta strong { color: var(--text); font-variant-numeric: tabular-nums; }

/* Regolamento: card con numero neon */
.rules { display: grid; gap: 10px; counter-reset: rule; }
.rules li { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border: 1px solid rgba(178,77,255,.18); border-radius: 14px; background: var(--surface); font-size: 1rem; transition: transform .25s, border-color .25s, box-shadow .25s; }
.rules li::before { min-width: 44px; font-size: 1.8rem; color: var(--purple); text-shadow: 0 0 12px var(--glow); }
.rules li:hover { transform: translateX(4px); border-color: rgba(199,125,255,.6); box-shadow: 0 0 18px rgba(178,77,255,.2); }

/* Legale: accordion come card */
.legal-item { border: 1px solid rgba(178,77,255,.2); border-radius: 14px; background: var(--surface); }
.legal-item > button { font-size: 1rem; }

/* Numeri: shimmer finche' il bot carica */
.cnt.sh, [data-state].sh { color: transparent !important; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.06), rgba(199,125,255,.4), rgba(255,255,255,.06)) 0 0 / 200% 100%; animation: shimmer 1.1s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }

/* Reveal allo scroll (usa .rv/.in aggiunti da effects.js) */
.rv { animation: revealUp .5s ease both; animation-delay: calc(var(--i, 0) * 60ms); animation-play-state: paused; }
.rv.in { animation-play-state: running; }
@keyframes revealUp { from { opacity: 0; transform: translateY(16px) } }

/* Footer identico, linea neon in cima */
.footer { position: relative; background: var(--surface); border-top: 0; padding: 0; }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, transparent, var(--purple), transparent); box-shadow: 0 0 14px var(--glow); }
.footer__top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 28px; max-width: 1040px; margin: 0 auto; padding: 44px 20px 20px; }
.footer__bottom { max-width: 1040px; margin: 0 auto; padding: 16px 20px 28px; border-top: 1px solid rgba(178,77,255,.15); font-size: .82rem; }
.footer .mark-img { height: 88px; width: auto; object-fit: contain; margin: 0 auto 12px; }
.footer__brand { text-align: center; }
.footer__brand p { margin-inline: auto; }
.footer__brand .btn { margin-inline: auto; }
.footer__col h3, .footer__col h4 { font-size: 1rem; margin-bottom: 10px; }
.footer__col a, .footer__col .link-button { display: block; margin: 8px 0; min-height: 0; font-size: .95rem; color: var(--muted); }
.footer__col a:hover, .footer__col .link-button:hover { color: #fff; }
@media (max-width: 760px) { .footer__top { grid-template-columns: 1fr 1fr; } }

/* Livelli degli effetti condivisi */
#fx-bolts { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
#fx-glow { position: fixed; left: 0; top: 0; width: 500px; height: 500px; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .6s; background: radial-gradient(circle, rgba(178,77,255,.18), transparent 60%); will-change: transform; }
main, .footer, .site-header { position: relative; z-index: 2; }

/* Hero home: logo grande al posto della skin (codice skin 3D lasciato intatto) */
.skin-card, .discord-reveal { display: none !important; }
.hero-logo { display: block; width: min(340px, 86vw); padding: 20px 20px 14px; border-radius: 20px; text-decoration: none; color: var(--purple); background: radial-gradient(closest-side, rgba(124,58,237,.3), transparent); transition: transform .25s; }
.hero-logo:hover { transform: translateY(-3px); }
.hero-logo__img { display: block; width: 100%; height: auto; max-height: 260px; object-fit: contain; filter: drop-shadow(0 0 16px rgba(178,77,255,.55)); }
.hero-logo__hint { display: block; margin-top: 12px; font-size: .8rem; letter-spacing: .02em; }

/* Titoli in stile bozza */
.section__head h2, .section__head h1, .event-card__empty strong { font-family: "Metal Mania", "Pirata One", Georgia, serif; font-weight: 400; color: #c77dff; text-shadow: 0 0 10px rgba(199,125,255,.8), 0 0 24px rgba(178,77,255,.55); }
.section#community h2, .section#founder h2 { margin: 52px 0 18px; font-size: 2rem; }

/* Glow dei bottoni: solo opacity, nessun filtro animato */
.btn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; box-shadow: 0 0 26px 3px rgba(178,77,255,.7); opacity: .35; animation: btnPulse 2.6s ease-in-out infinite; transition: opacity .3s, transform .3s; }
@keyframes btnPulse { 0%,100% { opacity: .25 } 50% { opacity: .6 } }
.btn:hover::before { animation: none; opacity: 1; transform: scale(1.06); }

/* Header dopo il login */
.user-menu { position: relative; flex: none; }
.user-menu__trigger { display: inline-flex; align-items: center; gap: 9px; min-height: 40px; padding: 4px 14px 4px 5px; border: 1px solid rgba(178,77,255,.45); border-radius: 999px; background: rgba(22,10,38,.85); color: var(--text); font-size: .86rem; cursor: pointer; }
.user-menu__avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 2px solid var(--purple); }
.user-menu__name { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-menu__dropdown { position: absolute; right: 0; top: calc(100% + 8px); z-index: 70; min-width: 190px; padding: 8px; border-radius: 14px; border: 1px solid rgba(178,77,255,.35); background: var(--surface); box-shadow: 0 18px 34px rgba(0,0,0,.5); }
.user-menu__dropdown a, .user-menu__dropdown button { display: block; width: 100%; padding: 9px 12px; border-radius: 9px; color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; font-size: .92rem; text-align: left; cursor: pointer; }
.user-menu__dropdown a:hover, .user-menu__dropdown button:hover { background: rgba(168,85,247,.14); }

/* Profilo */
.profile-box { max-width: 560px; margin: 0 auto; }
.profile-loading { color: var(--muted); }
.profile-card { display: grid; justify-items: center; gap: 12px; text-align: center; }
.profile-card__avatar { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; border: 2px solid var(--purple); }

/* Pannello staff */
.staff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.staff-card { display: grid; gap: 12px; align-content: start; }
.staff-textarea { width: 100%; min-height: 180px; padding: 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: .95rem; resize: vertical; }
.staff-note { font-size: .82rem; color: var(--muted); }
.staff-log { display: grid; gap: 8px; max-height: 260px; overflow-y: auto; }
.staff-log__row { padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: .9rem; }

/* Testo: normale >= 15px, caption >= 13px */
.nav__dropdown-menu small, .eyebrow, .event-card__badge, .member-card__role, .footer__col h4,
.cookie__eyebrow, .cookie__links .link-button, .cookie__row small, .switch, .skin-card__hint { font-size: .82rem; }
.skin-card__name { font-size: .82rem; }
.lede, .menu-list small, .footer__col a, .footer__col .link-button, .rules li { font-size: 1rem; }

@media (prefers-reduced-motion: reduce) {
  html.page-in body { animation: none; }
  .rv, .rv.in { animation: none; opacity: 1; transform: none; }
  .btn:hover, .btn:active, .menu-list > li:hover, .rules li:hover, .founder-card:hover .founder-card__img, .founder-card:focus-within .founder-card__img, .empty-ring, .event-card__wait i, .cnt.sh, [data-state].sh, .btn::before { animation: none; transform: none; }
  .hero-logo:hover { transform: none; }
}
