/* Riftbound Zone — Custom Styles */
/* Loaded AFTER Elementor + Hello Elementor to win specificity */

@import url('https://fonts.googleapis.com/css2?family=Cinzel:wght@400;700;900&family=Barlow+Condensed:wght@300;400;600;700&family=Barlow:wght@300;400;500&display=swap');

:root {
  --bg: #0a0c14;
  --bg2: #0f1220;
  --bg3: #141828;
  --card: #181d2e;
  --card2: #1e2438;
  --border: rgba(255,255,255,0.07);
  --border2: rgba(255,255,255,0.12);
  --gold: #c8a45a;
  --gold2: #e8c47a;
  --gold-glow: rgba(200,164,90,0.25);
  --teal: #3ecfcf;
  --teal2: #5ee8e8;
  --teal-glow: rgba(62,207,207,0.2);
  --red: #e05555;
  --green: #4ecb80;
  --text: #d8dae8;
  --text2: #8890aa;
  --text3: #545c74;
  --white: #f0f2ff;
  --nav-h: 80px;

  /* Profile v4 — tier colors + domain pips */
  --tier-gold: #e8c47a;
  --tier-silver: #a8b4c0;
  --tier-bronze: #c89060;
  --pip-calm:  #7cb8e8;
  --pip-mind:  #b389e8;
  --pip-fury:  #e86d5a;
  --pip-order: #f2d06a;
  --pip-body:  #7ad487;
}

/* Override Elementor kit variables */
.elementor-kit-7,
[class*="elementor-kit-"] {
  --e-global-color-primary: #c8a45a !important;
  --e-global-color-secondary: #3ecfcf !important;
  --e-global-color-text: #d8dae8 !important;
  --e-global-typography-primary-font-family: 'Cinzel', serif !important;
  --e-global-typography-secondary-font-family: 'Barlow Condensed', sans-serif !important;
  --e-global-typography-text-font-family: 'Barlow', sans-serif !important;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

/* ── Global rem rescale ── */
/* Mobile/tablet (<1024px): default 16px = 100% — no scale.
 * Laptop (1024-1440px, es. Ideapad Flex 5 14"): 85% = 13.6px — più stretto, evita overflow lato destro.
 * Desktop (≥1441px): 90% = 14.4px — lieve scale-down, layout respira ma non ingombra. */
@media (min-width: 1024px) and (max-width: 1440px) {
  html { font-size: 85%; }
}
@media (min-width: 1441px) {
  html { font-size: 90%; }
}

body {
  font-family: 'Barlow', sans-serif !important;
  background: var(--bg) !important;
  color: var(--text) !important;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.025'/%3E%3C/svg%3E");
  pointer-events: none;
  z-index: 0;
}

/* Remove Elementor default padding on canvas */
.elementor-page .page-content,
.elementor-location-single,
body.elementor-template-canvas {
  padding: 0 !important;
  margin: 0 !important;
}

/* ── NAV ── */
#rbz-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2.5rem; height: var(--nav-h);
  background: rgba(10,12,20,0.94); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-logo {
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.6rem;
  letter-spacing: 0.08em; color: var(--gold);
  text-shadow: 0 0 24px var(--gold-glow); cursor: pointer;
}
.nav-logo span { color: var(--teal); }
.nav-links { display: flex; gap: 0.4rem; list-style: none; align-self: stretch; align-items: center; }
.nav-links li { display: flex; align-items: center; }
.nav-links li a {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.1rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text2); text-decoration: none; padding: 0.65rem 1.15rem;
  border-radius: 4px; transition: all 0.2s; cursor: pointer;
}
.nav-links li a:hover, .nav-links li a.active { color: var(--teal); background: var(--teal-glow); }
.nav-actions { display: flex; gap: 0.6rem; }
.btn-nav {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  padding: 0.55rem 1.25rem; border-radius: 4px; border: none; cursor: pointer; transition: all 0.2s;
}
.btn-ghost { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }
.btn-primary { background: var(--gold); color: #0a0c14; }
.btn-primary:hover { background: var(--gold2); box-shadow: 0 0 16px var(--gold-glow); }

.mobile-menu-toggle { display: none; background: none; border: none; cursor: pointer; padding: 0.5rem; flex-direction: column; gap: 5px; }
.mobile-menu-toggle span { display: block; width: 24px; height: 2px; background: var(--text2); transition: all 0.3s; }

/* Announcement banner */
#rbz-announcement {
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  z-index: 90;
  background: linear-gradient(90deg, var(--gold) 0%, var(--gold2) 100%);
  text-align: center;
  padding: 0.5rem 1rem;
}
#rbz-announcement a {
  color: var(--bg);
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  letter-spacing: 0.03em;
}
#rbz-announcement a:hover { text-decoration: underline; }

/* Page content top padding for fixed nav */
#rbz-content {
  padding-top: var(--nav-h) !important;
}
/* Global sidebar layout (logged-in users) */
.rbz-has-sidebar { display: flex; min-height: calc(100vh - var(--nav-h)); }
.rbz-global-sidebar { width: 220px; flex-shrink: 0; background: var(--bg2); border-right: 1px solid var(--border); padding: 0.5rem 0 0.4rem; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: hidden; display: flex; flex-direction: column; }
.rbz-main-content { flex: 1; min-width: 0; overflow-x: hidden; }
/* Home and Torneo landing heroes handle their own padding */
/* Anche /notizie/ (97), /meta/ (98) gestiscono la propria hero (nav clearance via calc(--nav-h)+) */
body.page-id-5 #rbz-content,
body.page-id-14 #rbz-content,
body.page-id-97 #rbz-content,
body.page-id-98 #rbz-content {
  padding-top: 0 !important;
}
.hero {
  padding-top: calc(var(--nav-h) + 5rem) !important;
}
/* Extra space on home for announcement banner */
body.page-id-5 .hero {
  padding-top: calc(var(--nav-h) + 2.5rem + 5rem) !important;
}

/* ── HERO ── */
.hero {
  position: relative; min-height: 90vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center; padding: 5rem 2rem;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 50%, rgba(62,207,207,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(200,164,90,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(62,207,207,0.04) 0%, transparent 60%);
}
.hero-cards { position: absolute; inset: 0; pointer-events: none; }
.hex-card {
  position: absolute; width: 80px; height: 92px;
  background: linear-gradient(135deg, var(--card2), var(--card));
  border: 1px solid var(--border2); border-radius: 4px; opacity: 0.35;
}
.hex-card:nth-child(1){top:15%;left:8%;animation:float1 8s ease-in-out infinite}
.hex-card:nth-child(2){top:60%;left:5%;width:55px;height:75px;animation:float2 10s ease-in-out infinite}
.hex-card:nth-child(3){top:20%;right:10%;width:65px;height:88px;animation:float3 9s ease-in-out infinite}
.hex-card:nth-child(4){top:65%;right:8%;width:70px;height:90px;animation:float1 11s ease-in-out infinite 2s}
.hex-card:nth-child(5){top:40%;left:15%;width:45px;height:62px;animation:float2 7s ease-in-out infinite 1s}
.hex-card:nth-child(6){top:35%;right:18%;width:50px;height:68px;animation:float3 9s ease-in-out infinite 3s}
@keyframes float1{0%,100%{transform:translateY(0) rotate(-3deg)}50%{transform:translateY(-20px) rotate(2deg)}}
@keyframes float2{0%,100%{transform:translateY(0) rotate(5deg)}50%{transform:translateY(-14px) rotate(-2deg)}}
@keyframes float3{0%,100%{transform:translateY(0) rotate(-2deg)}50%{transform:translateY(-18px) rotate(4deg)}}

.hero-content { position: relative; z-index: 1; max-width: 820px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: 0.85rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); border: 1px solid rgba(62,207,207,0.3);
  padding: 0.4rem 1.1rem; border-radius: 2px; margin-bottom: 2rem;
  animation: fadeUp 0.6s ease both;
}
.hero-title {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(4rem,10vw,7.5rem); line-height: 0.92;
  color: var(--white); margin-bottom: 0.4rem;
  animation: fadeUp 0.6s ease 0.1s both;
}
.hero-title .accent  { color: var(--gold); text-shadow: 0 0 50px var(--gold-glow); }
.hero-title .accent2 { color: var(--teal); text-shadow: 0 0 50px var(--teal-glow); }
.hero-sub {
  font-size: 1.25rem; font-weight: 300; color: var(--text2); line-height: 1.65;
  margin: 2rem auto 3rem; max-width: 560px;
  animation: fadeUp 0.6s ease 0.2s both;
}
.hero-cta { display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap; animation: fadeUp 0.6s ease 0.3s both; }
.btn-lg {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1rem; letter-spacing: 0.12em; text-transform: uppercase;
  padding: 1.05rem 2.4rem; border-radius: 4px; border: none; cursor: pointer; transition: all 0.25s;
}
.btn-gold { background: var(--gold); color: #0a0c14; box-shadow: 0 4px 24px rgba(200,164,90,0.3); }
.btn-gold:hover { background: var(--gold2); box-shadow: 0 4px 36px rgba(200,164,90,0.55); transform: translateY(-2px); }
.btn-outline-teal { background: transparent; color: var(--teal); border: 1px solid rgba(62,207,207,0.45); }
.btn-outline-teal:hover { background: var(--teal-glow); border-color: var(--teal); }
.hero-divider { margin: 5rem auto 0; width: 80px; height: 2px; background: linear-gradient(90deg, transparent, var(--gold), transparent); animation: fadeUp 0.6s ease 0.4s both; }

/* STATS BAR */
.stats-bar { display: flex; justify-content: center; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg2); }
.stat-item { flex: 1; max-width: 200px; padding: 1.5rem 1rem; text-align: center; border-right: 1px solid var(--border); }
.stat-item:last-child { border-right: none; }
.stat-number { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.9rem; color: var(--gold); }
.stat-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text3); margin-top: 0.2rem; }

/* SECTIONS */
.section { padding: 5rem 2rem; max-width: 1100px; margin: 0 auto; }
.section-header { display: flex; align-items: baseline; gap: 1rem; margin-bottom: 2.5rem; flex-wrap: wrap; }
.section-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.5rem; color: var(--white); }
.section-sub { font-family: 'Barlow Condensed', sans-serif; font-size: 0.75rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text3); }
.section-line { flex: 1; height: 1px; background: linear-gradient(90deg, var(--border2), transparent); }

/* BADGES */
.badge { display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.65rem; letter-spacing: 0.12em; text-transform: uppercase; padding: 0.15rem 0.5rem; border-radius: 2px; }
.badge-vendo  { background: rgba(78,203,128,0.15); color: var(--green); border: 1px solid rgba(78,203,128,0.3); }
.badge-cerco  { background: rgba(62,207,207,0.1);  color: var(--teal);  border: 1px solid rgba(62,207,207,0.25); }
.badge-scambio{ background: rgba(200,164,90,0.1);  color: var(--gold);  border: 1px solid rgba(200,164,90,0.25); }

/* LISTING CARD */
.listing-card {
  background: var(--card); cursor: pointer; transition: all 0.2s;
  position: relative; overflow: hidden; display: flex; gap: 0;
}
.listing-card:hover { background: var(--card2); }
.listing-photo {
  width: 160px; flex-shrink: 0;
  background: var(--bg3); border-right: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; position: relative;
}
.listing-photo img { width: 100%; height: 100%; object-fit: cover; }
.listing-photo .lp-default, .listing-photo .lp-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.25s; }
.listing-photo .lp-hover { opacity: 0; }
.listing-card:hover .listing-photo .lp-hover { opacity: 1; }
.listing-card:hover .listing-photo .lp-default { opacity: 0; }
.listing-photo-placeholder {
  width: 100%; height: 100%; min-height: 110px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem; opacity: 0.3;
}
.listing-body { flex: 1; padding: 1rem 1.25rem; border-left: 3px solid transparent; transition: border-color 0.2s; position: relative; }
.listing-card:hover .listing-body { border-left-color: var(--gold); }
.listing-title { font-weight: 600; font-size: 0.95rem; color: var(--white); margin: 0.4rem 0 0.3rem; }
.listing-meta { font-size: 0.8rem; color: var(--text2); display: flex; gap: 1rem; flex-wrap: wrap; }
.listing-price { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; color: var(--gold); }
.listing-user { font-size: 0.74rem; color: var(--text3); margin-top: 0.5rem; }
.listing-lang { font-size: 0.68rem; background: var(--card2); color: var(--text2); padding: 0.1rem 0.4rem; border-radius: 2px; letter-spacing: 0.05em; }
.listing-foil-badge { position: absolute; top: 8px; right: 8px; background: linear-gradient(135deg, #a855f7, #3b82f6); color: #fff; font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 12px; letter-spacing: 0.05em; box-shadow: 0 2px 8px rgba(168, 85, 247, 0.4); }
.listing-foil-tag { font-size: 0.7rem; background: linear-gradient(135deg, #a855f7, #3b82f6); color: #fff; padding: 0.1rem 0.5rem; border-radius: 3px; font-weight: 700; letter-spacing: 0.05em; }
.listing-preview { margin-top: 0.5rem; opacity: 0.85; }
.listing-desc { font-size: 0.78rem; color: var(--text2); margin-top: 0.4rem; line-height: 1.4; }
.listing-thumbs { display: flex; gap: 0.3rem; margin-top: 0.5rem; }
.listing-thumb { width: 40px; height: 40px; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); cursor: pointer; transition: transform 0.15s; }
.listing-thumb:hover { transform: scale(1.15); }
.listing-body-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.25rem; }
.listing-fav { display: flex; align-items: center; gap: 0.3rem; cursor: pointer; padding: 0.2rem 0.4rem; border-radius: 4px; transition: all 0.15s; user-select: none; }
.listing-fav:hover { background: rgba(224,85,85,0.1); }
.listing-fav-icon { font-size: 1.1rem; color: var(--text3); transition: color 0.15s; }
.listing-fav[data-fav="1"] .listing-fav-icon { color: #e05555; }
.listing-fav-count { font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem; font-weight: 600; color: var(--text3); }
.mercatino-actions { display: flex; align-items: center; margin-bottom: 1.5rem; }
#mercatino-pagination { display: flex; justify-content: center; gap: 0.4rem; padding: 2rem 0; }

/* TOURNAMENT CARD */
.torneo-card { background: var(--card); cursor: pointer; transition: all 0.2s; overflow: hidden; }
.torneo-card:hover { background: var(--card2); }
.torneo-header { padding: 1.5rem; border-bottom: 1px solid var(--border); display: flex; align-items: flex-start; justify-content: space-between; gap: 1rem; }
.torneo-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1rem; color: var(--white); }
.torneo-format { font-family: 'Barlow Condensed', sans-serif; font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--teal); margin-top: 0.25rem; }
.torneo-status { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.2rem 0.6rem; border-radius: 2px; white-space: nowrap; }
.status-open  { background: rgba(78,203,128,0.15); color: var(--green); border: 1px solid rgba(78,203,128,0.3); }
.status-closed{ background: rgba(224,85,85,0.1);   color: var(--red);   border: 1px solid rgba(224,85,85,0.25); }
.status-cancelled { background: rgba(255,200,0,0.12); color: #ffc800; border: 1px solid rgba(255,200,0,0.35); }
.torneo-body  { padding: 1rem 1.5rem; }
.torneo-info  { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.info-label   { color: var(--text3); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.1em; font-family: 'Barlow Condensed', sans-serif; }
.info-value   { color: var(--text); margin-top: 0.15rem; font-size: 0.9rem; }
.torneo-footer{ padding: 1rem 1.5rem; border-top: 1px solid var(--border); display: flex; gap: 0.75rem; }

/* BUTTONS */
.btn-sm { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5rem 1rem; border-radius: 3px; border: none; cursor: pointer; transition: all 0.2s; }
.btn-teal   { background: var(--teal); color: #0a0c14; }
.btn-teal:hover { background: var(--teal2); }
.btn-subtle { background: var(--bg3); color: var(--text2); border: 1px solid var(--border2); }
.btn-subtle:hover { border-color: var(--teal); color: var(--teal); }

/* PAGE HERO */
.page-hero { padding: 3rem 2rem 2rem; max-width: 1100px; margin: 0 auto; }
.page-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.5rem; }
.page-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 2.4rem; color: var(--white); }

/* FILTERS */
.filters-bar { max-width: 1100px; margin: 0 auto; padding: 0 2rem 1.5rem; display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.filter-btn { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.45rem 1rem; border-radius: 3px; cursor: pointer; border: 1px solid var(--border2); background: transparent; color: var(--text2); transition: all 0.2s; }
.filter-btn:hover, .filter-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(200,164,90,0.08); }
.search-box { margin-left: auto; display: flex; align-items: center; border: 1px solid var(--border2); border-radius: 4px; overflow: hidden; background: var(--bg2); }
.search-box input { background: transparent; border: none; outline: none; font-family: 'Barlow', sans-serif; font-size: 0.85rem; color: var(--text); padding: 0.45rem 0.8rem; width: 200px; }
.search-box input::placeholder { color: var(--text3); }

/* MERCATINO GRID */
.mercatino-grid { max-width: 1100px; margin: 0 auto; padding: 0 2rem 4rem; display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--border); }

/* FAB */
.fab { position: fixed; bottom: 2rem; right: 2rem; z-index: 50; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.8rem 1.6rem; border-radius: 4px; border: none; background: var(--gold); color: #0a0c14; cursor: pointer; box-shadow: 0 4px 24px rgba(200,164,90,0.4); transition: all 0.2s; }
.fab:hover { background: var(--gold2); box-shadow: 0 4px 32px rgba(200,164,90,0.6); transform: translateY(-2px); }

/* TORNEI GRID */
.tornei-grid { max-width: 800px; margin: 0 auto; padding: 0 2rem 4rem; display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }

/* TORNEO DETAIL */
.torneo-detail { max-width: 860px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.detail-header { padding-bottom: 2rem; border-bottom: 1px solid var(--border); margin-bottom: 2.5rem; }
.detail-title  { font-family: 'Cinzel', serif; font-weight: 900; font-size: 2.2rem; color: var(--white); line-height: 1.1; }
.detail-meta   { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 1.5rem; }
.meta-label    { font-family: 'Barlow Condensed', sans-serif; font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--text3); }
.meta-value    { font-size: 0.95rem; color: var(--text); margin-top: 0.2rem; }
.detail-body   { line-height: 1.8; color: var(--text2); font-size: 0.9rem; }
.detail-body h3{ font-family: 'Cinzel', serif; font-size: 1rem; color: var(--white); margin: 2rem 0 0.75rem; }
.detail-body p { margin-bottom: 1rem; }
.detail-actions{ margin-top: 2.5rem; padding-top: 2rem; border-top: 1px solid var(--border); display: flex; gap: 1rem; flex-wrap: wrap; }
.btn-melee { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.8rem 1.75rem; border-radius: 4px; border: none; cursor: pointer; background: var(--teal); color: #0a0c14; transition: all 0.2s; }
.btn-melee:hover { background: var(--teal2); box-shadow: 0 4px 20px var(--teal-glow); }

/* COMMUNITY */
.community-hero { text-align: center; padding: 5rem 2rem 3rem; }
.community-hero-title { font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(2rem,5vw,3.5rem); color: var(--white); margin-bottom: 0.75rem; }
.community-hero-sub { color: var(--text2); font-size: 1rem; max-width: 540px; margin: 0 auto 3.5rem; line-height: 1.7; }
.social-grid { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; padding: 0 2rem; max-width: 900px; margin: 0 auto; }
.social-card { flex: 1; min-width: 220px; max-width: 260px; background: var(--card); padding: 2.5rem 1.75rem; border: 1px solid var(--border); border-radius: 6px; cursor: pointer; transition: all 0.3s; text-align: center; }
.social-card:hover { border-color: var(--gold); transform: translateY(-5px); box-shadow: 0 16px 48px rgba(0,0,0,0.5); }
.social-card:hover.whatsapp { border-color: #25D366; }
.social-card:hover.discord  { border-color: #5865F2; }
.social-card:hover.instagram{ border-color: #E1306C; }
.social-icon-wrap { width: 60px; height: 60px; border-radius: 14px; margin: 0 auto 1.2rem; display: flex; align-items: center; justify-content: center; }
.social-icon-wrap.whatsapp  { background: rgba(37,211,102,0.12); border: 1px solid rgba(37,211,102,0.25); }
.social-icon-wrap.discord   { background: rgba(88,101,242,0.12); border: 1px solid rgba(88,101,242,0.25); }
.social-icon-wrap.instagram { background: rgba(225,48,108,0.1);  border: 1px solid rgba(225,48,108,0.2); }
.social-icon-wrap svg { width: 28px; height: 28px; }
.social-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: 0.5rem; }
.social-desc { font-size: 0.8rem; color: var(--text2); line-height: 1.5; margin-bottom: 1.4rem; }
.social-btn-wa { background: rgba(37,211,102,0.15); color: #25D366; border: 1px solid rgba(37,211,102,0.35); }
.social-btn-wa:hover { background: rgba(37,211,102,0.25); }
.social-btn-dc { background: rgba(88,101,242,0.15); color: #7289da; border: 1px solid rgba(88,101,242,0.35); }
.social-btn-dc:hover { background: rgba(88,101,242,0.25); }
.social-btn-ig { background: rgba(225,48,108,0.1); color: #E1306C; border: 1px solid rgba(225,48,108,0.25); }
.social-btn-ig:hover { background: rgba(225,48,108,0.2); }

/* FEEDBACK */
.feedback-section { max-width: 1100px; margin: 0 auto; padding: 4rem 2rem 5rem; }
.feedback-search-bar { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.feedback-search { flex: 1; min-width: 220px; display: flex; align-items: center; border: 1px solid var(--border2); border-radius: 4px; overflow: hidden; background: var(--card); }
.feedback-search input { flex: 1; background: transparent; border: none; outline: none; font-family: 'Barlow', sans-serif; font-size: 0.9rem; color: var(--text); padding: 0.6rem 1rem; }
.feedback-search input::placeholder { color: var(--text3); }
.feedback-search span { padding: 0.6rem 0.9rem; color: var(--text3); font-size: 0.9rem; }
.stars { color: var(--gold); letter-spacing: 0.1em; font-size: 1.3rem; }
.feedback-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }
.feedback-card { background: var(--card); padding: 2.2rem; transition: background 0.2s; display: flex; flex-direction: column; gap: 0.2rem; }
.feedback-card:hover { background: var(--card2); }
.feedback-people { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.6rem; }
.feedback-stars { margin-bottom: 0.8rem; }
.feedback-text  { font-size: 1.05rem; color: #b8bdd0; line-height: 1.8; margin-bottom: 1.4rem; flex: 1; }
.feedback-person { display: flex; align-items: center; gap: 1rem; }
.feedback-avatar { width: 52px; height: 52px; border-radius: 50%; background: linear-gradient(135deg, var(--gold), var(--teal)); display: flex; align-items: center; justify-content: center; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.25rem; color: #0a0c14; flex-shrink: 0; }
.feedback-label { font-size: 0.8rem; color: #9ca3b8; text-transform: uppercase; letter-spacing: 0.08em; line-height: 1; }
.feedback-name  { font-weight: 700; font-size: 1.15rem; color: var(--white); margin-top: 0.25rem; }
.feedback-city { font-size: 0.8rem; color: #9ca3b8; margin-top: 0.1rem; }
.feedback-badge-type { font-size: 0.85rem; color: var(--teal); background: rgba(0,208,176,0.1); padding: 0.35rem 0.85rem; border-radius: 4px; font-weight: 600; }
.feedback-footer { display: flex; justify-content: space-between; align-items: center; padding-top: 1rem; border-top: 1px solid var(--border); }
.feedback-author { font-size: 0.9rem; color: #9ca3b8; }
.feedback-author strong { color: #c8cdd8; }
.feedback-date  { font-size: 0.85rem; color: #9ca3b8; }
.feedback-approved { font-size: 0.85rem; color: #4caf50; margin-top: 0.6rem; }
.fb-actions { display: flex; gap: 0.5rem; margin-top: 0.8rem; padding-top: 0.8rem; border-top: 1px solid var(--border); }
.fb-actions .btn-sm { font-size: 0.78rem; padding: 0.3rem 0.7rem; }
.fb-clickable { cursor: pointer; transition: color 0.2s; }
.fb-clickable:hover { color: var(--teal); }

/* User profile modal (v4) */
.fb-profile-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(3px); z-index: 9999; display: none; align-items: center; justify-content: center; padding: 2rem; }
.fb-profile-overlay.active { display: flex; }
.fb-profile-modal {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  width: 100%;
  max-width: 640px;
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  padding: 2.5rem;
}
.fb-profile-modal::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 100%);
  opacity: 0.5;
  border-radius: 12px 12px 0 0;
}
.fb-profile-close { position: absolute; top: 1rem; right: 1rem; background: none; border: none; color: var(--text2); font-size: 1.6rem; cursor: pointer; line-height: 1; padding: 0.2rem 0.5rem; transition: color 0.15s; z-index: 1; }
.fb-profile-close:hover { color: var(--white); }
.fb-profile-header { display: flex; align-items: center; gap: 1.2rem; margin-bottom: 2rem; position: relative; z-index: 1; }
/* Avatar modal premium 64px */
.fb-profile-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3a447a 0%, #1a2040 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--gold2);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(200,164,90,0.5);
}
.fb-profile-name { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.4rem; color: var(--white); }
.fb-profile-city { font-size: 0.88rem; color: var(--text2); margin-top: 0.15rem; }
.fb-profile-stats { font-size: 0.9rem; color: var(--text2); margin-top: 0.3rem; }
.fb-rating-bars { margin-bottom: 2rem; padding: 1.2rem 1.5rem; background: rgba(255,255,255,0.02); border-radius: 8px; border: 1px solid var(--border); }
.fb-rating-row { display: flex; align-items: center; gap: 0.75rem; height: 28px; }
.fb-rating-label { font-size: 0.9rem; color: var(--gold); width: 3.2rem; text-align: right; flex-shrink: 0; white-space: nowrap; }
.fb-rating-bar { flex: 1; height: 10px; background: rgba(255,255,255,0.06); border-radius: 5px; overflow: hidden; min-width: 0; }
.fb-rating-fill { height: 100%; background: linear-gradient(90deg, var(--gold), #f5d77a); border-radius: 5px; min-width: 2px; transition: width 0.4s ease; }
.fb-rating-count { font-size: 0.82rem; color: var(--text2); width: 5rem; flex-shrink: 0; text-align: left; white-space: nowrap; }
.fb-role-averages { margin-top: 1rem; padding-top: 1rem; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 0.6rem; }
.fb-role-avg { display: flex; align-items: center; gap: 0.6rem; font-size: 0.92rem; color: var(--text); }
.fb-role-icon { font-size: 1.05rem; }
.fb-role-val { color: var(--text2); font-size: 0.82rem; }
.fb-profile-section { margin-bottom: 1.5rem; }
/* H3 con gold bar verticale (coerenza col profilo pubblico) */
.fb-profile-section h3 {
  font-family: 'Cinzel', serif;
  font-size: 1rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0 0 0.5rem 0.75rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.fb-profile-section h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.1rem;
  bottom: 0.6rem;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(200,164,90,0.2));
}
.fb-profile-item { padding: 0.9rem 0; border-bottom: 1px solid var(--border); }
.fb-profile-item:last-child { border-bottom: none; }
.fb-profile-item-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 0.4rem; }
.fb-profile-item-text { font-size: 0.93rem; color: var(--text); line-height: 1.55; margin-bottom: 0.35rem; }
.fb-profile-item-meta { font-size: 0.82rem; color: var(--text3); }
.fb-profile-item-meta strong { color: var(--text); font-weight: 500; }

/* Feedback form */
.feedback-form-wrap { max-width: 1100px; margin: 0 auto; padding: 0 2rem 2rem; }
.feedback-form-box { background: var(--card); border: 1px solid var(--border); border-radius: 4px; padding: 2rem; max-width: 600px; margin: 0 auto; }
.feedback-form-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.1rem; color: var(--white); margin-bottom: 1.5rem; }
.feedback-form .form-row { display: flex; gap: 1rem; }
.feedback-form select.form-input { cursor: pointer; }
.feedback-form select.form-input option { background: var(--card); color: var(--text); }

/* Autocomplete dropdown */
.autocomplete-list { position: absolute; top: 100%; left: 0; right: 0; background: var(--card); border: 1px solid var(--border); border-top: none; border-radius: 0 0 4px 4px; max-height: 220px; overflow-y: auto; z-index: 100; display: none; }
.ac-item { display: flex; align-items: center; gap: 0.6rem; padding: 0.55rem 0.75rem; cursor: pointer; transition: background 0.15s; }
.ac-item:hover { background: rgba(0,255,204,0.07); }
.ac-avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--teal); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.75rem; flex-shrink: 0; }
.ac-card-thumb { width: 36px; height: 50px; border-radius: 4px; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255,255,255,0.1); }
.ac-version { font-size: 0.7rem; color: var(--teal); font-weight: 400; opacity: 0.85; }
.ac-name { color: var(--white); font-size: 0.85rem; font-weight: 600; }
.ac-login { color: var(--text3); font-size: 0.75rem; margin-left: auto; }

/* Photo upload */
.photo-upload-area { margin-top: 0.4rem; }
.photo-previews { display: flex; gap: 0.6rem; flex-wrap: wrap; margin-top: 0.6rem; }
.photo-preview { position: relative; width: 80px; height: 80px; border-radius: 4px; overflow: hidden; border: 1px solid var(--border); }
.photo-preview img { width: 100%; height: 100%; object-fit: cover; }
.photo-remove { position: absolute; top: 2px; right: 2px; background: rgba(0,0,0,0.7); color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px; font-size: 14px; line-height: 18px; cursor: pointer; padding: 0; }
.photo-remove:hover { background: var(--red, #e74c3c); }
.feedback-photos { display: flex; gap: 0.4rem; margin-top: 0.5rem; }
.feedback-photo { width: 60px; height: 60px; object-fit: cover; border-radius: 3px; border: 1px solid var(--border); cursor: pointer; transition: transform 0.15s; }
.feedback-photo:hover { transform: scale(1.1); }

/* Star selector */
.star-select { display: flex; gap: 0.25rem; }
.star-btn { font-size: 1.6rem; cursor: pointer; color: var(--text3); transition: color 0.15s, transform 0.15s; user-select: none; }
.star-btn:hover, .star-btn.star-active { color: var(--gold); }
.star-btn:hover { transform: scale(1.15); }

/* Char count */
.form-char-count { text-align: right; font-size: 0.7rem; color: var(--text3); margin-top: 0.3rem; }

/* Pagination */
.feedback-pagination { display: flex; justify-content: center; gap: 0.4rem; padding: 2rem 0; }
.pagination-btn { background: var(--card); border: 1px solid var(--border); color: var(--text2); padding: 0.4rem 0.8rem; border-radius: 3px; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-size: 0.82rem; transition: all 0.2s; }
.pagination-btn:hover { border-color: var(--teal); color: var(--teal); }
.pagination-btn.active { background: var(--teal); color: var(--bg); border-color: var(--teal); }

/* Feedback search bar layout fix */
.feedback-search-bar { display: flex; gap: 0.75rem; align-items: center; margin-bottom: 2.5rem; flex-wrap: wrap; }
.feedback-search-bar .btn-sm { flex-shrink: 0; }

@media (max-width: 600px) {
  .feedback-form .form-row { flex-direction: column; gap: 0; }
}

/* FORM */
.form-container { max-width: 640px; margin: 0 auto; padding: 3rem 2rem 5rem; }
.form-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.6rem; color: var(--white); margin-bottom: 2rem; padding-bottom: 1rem; border-bottom: 1px solid var(--border); }
.form-group { margin-bottom: 1.5rem; }
.form-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.7rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text2); display: block; margin-bottom: 0.5rem; }
.form-label span { color: var(--red); }
.form-input { width: 100%; background: var(--card); border: 1px solid var(--border2); border-radius: 4px; padding: 0.7rem 1rem; font-family: 'Barlow', sans-serif; font-size: 0.9rem; color: var(--text); outline: none; transition: border-color 0.2s; }
.form-input:focus { border-color: var(--teal); }
.form-input::placeholder { color: var(--text3); }
select.form-input { cursor: pointer; }
textarea.form-input { resize: vertical; min-height: 100px; }

/* AUTH */
.auth-page { min-height: calc(100vh - var(--nav-h)); display: flex; align-items: center; justify-content: center; padding: 3rem 2rem; }
.auth-box { width: 100%; max-width: 420px; background: var(--card); border: 1px solid var(--border); padding: 2.5rem; border-radius: 4px; }
.auth-logo { text-align: center; margin-bottom: 2rem; font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.5rem; color: var(--gold); }
.auth-tabs { display: flex; margin-bottom: 2rem; border-bottom: 1px solid var(--border); }
.auth-tab { flex: 1; padding: 0.65rem; text-align: center; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text2); border-bottom: 2px solid transparent; margin-bottom: -1px; transition: all 0.2s; }
.auth-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.78rem; color: var(--text3); }
.auth-footer a { color: var(--teal); cursor: pointer; }
.auth-msg { padding: 0.75rem 1rem; border-radius: 4px; font-size: 0.82rem; margin-bottom: 1.5rem; line-height: 1.5; }
.auth-msg-success { background: rgba(78,203,128,0.1); border: 1px solid rgba(78,203,128,0.3); color: var(--green); }
.auth-msg-error { background: rgba(224,85,85,0.1); border: 1px solid rgba(224,85,85,0.3); color: var(--red); }
.auth-terms { font-size: 0.75rem; color: var(--text3); margin-bottom: 1rem; line-height: 1.5; }
.auth-terms a { color: var(--teal); }
.auth-forgot-text { font-size: 0.85rem; color: var(--text2); margin-bottom: 1.5rem; line-height: 1.6; }

/* Nav user state */
.nav-user { display: flex; align-items: center; gap: 0.5rem; }
.nav-user-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--gold); color: var(--bg); display: flex; align-items: center; justify-content: center; font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.8rem; }
.nav-user-name { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.82rem; color: var(--text); letter-spacing: 0.04em; }

/* INFO PAGE */
.info-layout { max-width: 1100px; margin: 0 auto; padding: 3rem 2rem 5rem; display: grid; grid-template-columns: 210px 1fr; gap: 3rem; }
.info-nav { list-style: none; }
.info-nav li { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; padding: 0.5rem 0.75rem; margin-bottom: 0.2rem; border-radius: 3px; cursor: pointer; color: var(--text2); transition: all 0.2s; border-left: 2px solid transparent; }
.info-nav li:hover { color: var(--text); border-left-color: var(--border2); }
.info-nav li.active { color: var(--gold); border-left-color: var(--gold); background: rgba(200,164,90,0.05); }
.info-section-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.4rem; color: var(--white); margin-bottom: 1.5rem; }
.info-body { line-height: 1.9; color: var(--text2); font-size: 0.88rem; }
.info-body h4 { color: var(--white); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; letter-spacing: 0.08em; text-transform: uppercase; margin: 1.5rem 0 0.5rem; }
.info-body p { margin-bottom: 1rem; }
.info-body ul { padding-left: 1.2rem; margin-bottom: 1rem; }
.info-body ul li { margin-bottom: 0.4rem; }

/* BACK BUTTON */
.back-btn { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text2); background: transparent; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 0.4rem; padding: 0 0 1.5rem; transition: color 0.2s; }
.back-btn:hover { color: var(--teal); }

/* ── FOOTER ── */
/* ── Unified footer (used on all pages, home included) ── */
#rbz-footer {
  background: var(--bg);
  padding: 2rem 1.5rem 1.2rem;
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
}
.rbz-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
}
/* 2-zone layout: links cluster (left) + support cluster (right) */
.rbz-footer-main {
  display: grid; gap: 2rem;
  grid-template-columns: 1fr;
  margin-bottom: 1.4rem;
}
@media (min-width: 820px) {
  .rbz-footer-main { grid-template-columns: 1.4fr 1fr; gap: 3rem; }
}
.rbz-footer-links {
  display: grid; gap: 1.5rem;
  grid-template-columns: repeat(3, 1fr);
}
@media (max-width: 480px) {
  .rbz-footer-links { grid-template-columns: 1fr 1fr; }
}
.rbz-footer-support { display: flex; flex-direction: column; gap: 0.85rem; }
.rbz-footer-brand { display: flex; flex-direction: column; gap: 0.4rem; }
.rbz-footer-blurb { margin: 0; font-size: 0.88rem; line-height: 1.55; color: var(--text2); }
.rbz-footer-logo { display: flex; align-items: center; gap: 0.55rem; }
.rbz-footer-logo-mark {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--gold), var(--gold2));
  color: var(--bg);
  font-family: 'Archivo Black', 'Cinzel', sans-serif;
  font-size: 0.78rem; letter-spacing: -0.02em;
  border-radius: 5px;
}
.rbz-footer-logo-text {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: 1.05rem; letter-spacing: 0.04em;
  color: var(--text);
}
.rbz-footer-logo-text .rbz-accent { color: var(--gold); }
.rbz-footer-title {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 0.7rem;
}
.rbz-footer-col ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 0.4rem; }
.rbz-footer-col a {
  font-size: 0.9rem; color: var(--text2);
  text-decoration: none; transition: color 0.15s ease;
}
.rbz-footer-col a:hover { color: var(--gold); }

.rbz-footer-socials { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.rbz-footer-social {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border2);
  color: var(--text2);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.rbz-footer-social:hover { transform: translateY(-1px); }
.rbz-footer-social svg { width: 18px; height: 18px; }
.rbz-footer-social--discord:hover   { color: #5865F2; border-color: rgba(88,101,242,0.6);  background: rgba(88,101,242,0.1); }
.rbz-footer-social--whatsapp:hover  { color: #25D366; border-color: rgba(37,211,102,0.6);  background: rgba(37,211,102,0.1); }
.rbz-footer-social--instagram:hover { color: #E1306C; border-color: rgba(225,48,108,0.6);  background: rgba(225,48,108,0.1); }

.rbz-footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 1rem; text-align: center;
  display: flex; flex-direction: column; gap: 0.4rem;
}
.rbz-footer-copy { font-size: 0.85rem; font-weight: 600; color: var(--text2); }
.rbz-footer-legal {
  font-size: 0.78rem; color: var(--text3); line-height: 1.55;
  max-width: 60rem; margin: 0 auto;
}
.rbz-footer-policies {
  display: flex; justify-content: center;
  gap: 0.45rem; flex-wrap: wrap;
  font-size: 0.82rem; margin-top: 0.2rem;
}
.rbz-footer-policies a { color: var(--text2); text-decoration: none; transition: color 0.15s ease; }
.rbz-footer-policies a:hover { color: var(--gold); }
.rbz-footer-policies span { color: var(--text3); }

/* ── Banner ospite sul Deck Builder (anon read-only) ── */
.db-anon-banner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; flex-wrap: wrap;
  margin: 0 0 1.2rem;
  padding: 0.7rem 1rem;
  background: rgba(62, 207, 207, 0.08);
  border: 1px solid rgba(62, 207, 207, 0.25);
  border-left: 3px solid var(--teal);
  border-radius: 6px;
  font-size: 0.88rem; color: var(--text2);
}
.db-anon-banner strong { color: var(--text); }
.db-anon-banner a { white-space: nowrap; }

/* legacy alias: old .footer-* classes redirect to new ones (in case any page reaches in) */
.footer-discord-dot { width: 8px; height: 8px; border-radius: 50%; background: #3ba55d; flex-shrink: 0; }
.footer-discord-sep { color: var(--border2); margin: 0 0.15rem; }

/* ── Buy Me a Coffee — supporta block (footer unificato) ── */
.rbz-bmac {
  display: flex; align-items: center; gap: 0.7rem;
  margin: 0;
  padding: 0.7rem 0.85rem;
  background: linear-gradient(135deg, rgba(255, 221, 0, 0.07), rgba(255, 165, 0, 0.03));
  border: 1px solid rgba(255, 221, 0, 0.2);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s ease, transform 0.2s ease, background 0.2s ease;
  text-align: left;
}
.rbz-bmac:hover {
  border-color: rgba(255, 221, 0, 0.5);
  background: linear-gradient(135deg, rgba(255, 221, 0, 0.12), rgba(255, 165, 0, 0.06));
  transform: translateY(-1px);
}
.rbz-bmac-icon {
  flex-shrink: 0;
  width: 34px; height: 34px;
  display: flex; align-items: center; justify-content: center;
  background: #FFDD00;
  border-radius: 50%;
  font-size: 1.05rem;
  line-height: 1;
}
.rbz-bmac-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.05rem; }
.rbz-bmac-text strong {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.92rem;
  letter-spacing: 0.02em;
  color: var(--text);
}
.rbz-bmac-text span {
  font-size: 0.8rem;
  color: var(--text2);
  line-height: 1.4;
}
.rbz-bmac-btn {
  flex-shrink: 0;
  padding: 0.5rem 0.9rem;
  background: #FFDD00;
  color: #1a1300;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.8rem;
  letter-spacing: 0.06em; text-transform: uppercase;
  border-radius: 5px;
  transition: background 0.2s ease;
  white-space: nowrap;
}
.rbz-bmac:hover .rbz-bmac-btn { background: #FFE94D; }
@media (max-width: 640px) {
  .rbz-bmac { flex-direction: column; text-align: center; gap: 0.55rem; padding: 0.85rem 0.85rem; }
  .rbz-bmac-text { align-items: center; }
  .rbz-bmac-btn { width: 100%; text-align: center; }
}

/* MODAL */
.modal-overlay { display: none; position: fixed; inset: 0; z-index: 200; background: rgba(0,0,0,0.78); backdrop-filter: blur(5px); align-items: center; justify-content: center; padding: 2rem; }
.modal-overlay.open { display: flex; }
.modal { background: var(--card); border: 1px solid var(--border2); border-radius: 4px; padding: 2rem; max-width: 540px; width: 100%; max-height: 82vh; overflow-y: auto; position: relative; }
.modal-close { position: absolute; top: 1rem; right: 1rem; cursor: pointer; color: var(--text3); font-size: 1.2rem; background: none; border: none; transition: color 0.2s; }
.modal-close:hover { color: var(--text); }
.modal-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.15rem; color: var(--white); margin-bottom: 1.5rem; }

/* COOKIE BANNER */
#cookie-banner {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 9000;
  background: var(--card2); border: 1px solid var(--border2);
  border-radius: 6px; padding: 1.5rem;
  max-width: 360px; width: calc(100% - 3rem);
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
  animation: slideUp 0.4s ease;
}
#cookie-banner h4 { font-family: 'Cinzel', serif; font-weight: 700; font-size: 0.95rem; color: var(--white); margin-bottom: 0.6rem; }
#cookie-banner p  { font-size: 0.78rem; color: var(--text2); line-height: 1.6; margin-bottom: 1.1rem; }
#cookie-banner p a{ color: var(--teal); cursor: pointer; }
.cookie-btns { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.cookie-btns button { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.7rem; letter-spacing: 0.1em; text-transform: uppercase; padding: 0.5rem 1rem; border-radius: 3px; cursor: pointer; transition: all 0.2s; }
.btn-accept-all { background: var(--gold); color: #0a0c14; border: none; flex: 1; }
.btn-accept-all:hover { background: var(--gold2); }
.btn-essential  { background: transparent; color: var(--text2); border: 1px solid var(--border2); }
.btn-essential:hover { border-color: var(--teal); color: var(--teal); }

#cookie-pref-toggle {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 8990;
  background: var(--card2); border: 1px solid var(--border2);
  border-radius: 50px; padding: 0.65rem 1.3rem;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text2); cursor: pointer; transition: all 0.2s; display: none;
}
#cookie-pref-toggle:hover { color: var(--teal); border-color: var(--teal); }

.cookie-modal { max-width: 480px; }
.cookie-row { display: flex; align-items: center; justify-content: space-between; padding: 1rem 0; border-bottom: 1px solid var(--border); }
.cookie-row:last-child { border-bottom: none; }
.cookie-row-label { font-weight: 500; font-size: 0.88rem; color: var(--text); }
.cookie-row-desc  { font-size: 0.75rem; color: var(--text3); margin-top: 0.2rem; }
.toggle-wrap { flex-shrink: 0; }
.toggle { position: relative; width: 38px; height: 20px; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider { position: absolute; inset: 0; background: var(--bg3); border-radius: 20px; cursor: pointer; transition: 0.3s; border: 1px solid var(--border2); }
.toggle-slider::before { content: ''; position: absolute; width: 14px; height: 14px; left: 2px; bottom: 2px; background: var(--text3); border-radius: 50%; transition: 0.3s; }
.toggle input:checked + .toggle-slider { background: rgba(62,207,207,0.2); border-color: var(--teal); }
.toggle input:checked + .toggle-slider::before { transform: translateX(18px); background: var(--teal); }
.toggle input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }


@keyframes slideUp { from{opacity:0;transform:translateY(12px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeUp  { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }

/* ── MOBILE RESPONSIVE ── */
@media (max-width: 768px) {
  #rbz-nav { padding: 0 1rem; }
  #rbz-announcement { display: none; }
  .nav-links { display: none; position: absolute; top: var(--nav-h); left: 0; right: 0; background: rgba(10,12,20,0.98); flex-direction: column; padding: 1rem; border-bottom: 1px solid var(--border); z-index: 200; }
  #rbz-nav.nav-open .nav-links { display: flex; }
  .nav-more, .nav-dropdown { display: contents; }
  .nav-more > a { display: none; }
  .nav-dropdown > a { display: block; padding: 0.5rem 1rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text2); text-decoration: none; }
  .nav-more-dropdown { position: static; transform: none; display: contents; box-shadow: none; border: none; background: none; padding: 0; min-width: auto; margin: 0; }
  .nav-more-dropdown a { display: block; padding: 0.5rem 1rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.95rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text2); text-decoration: none; }
  .nav-more-dropdown a:hover { color: var(--teal); background: var(--teal-glow); }
  .nav-actions .nav-user, .nav-actions .btn-ghost { display: none; }
  .nav-actions .notif-bell { display: inline-flex; }
  .mobile-menu-toggle { display: flex; }
  .hero-title { font-size: clamp(2.5rem, 8vw, 4rem); }
  .stats-bar { flex-wrap: wrap; }
  .stat-item { min-width: 50%; }
  .mercatino-grid, .tornei-grid { grid-template-columns: 1fr; }
  .info-layout { grid-template-columns: 1fr; }
  .tornei-grid { grid-template-columns: 1fr; }
  .listing-card { flex-direction: column; }
  .listing-photo { width: 100%; height: 120px; border-right: none; border-bottom: 1px solid var(--border); }
  .torneo-info-grid { grid-template-columns: 1fr !important; }
  .premi-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .iscrizione-box { flex-direction: column !important; }
  .iscrizione-price { min-width: auto !important; }
  .torneo-landing-title { font-size: clamp(2.5rem, 8vw, 4rem) !important; }
  .roadmap-hero-title { font-size: clamp(1.8rem, 6vw, 3rem); }
  .roadmap-rotate { min-width: 180px; }
  .roadmap-grid { grid-template-columns: 1fr; padding: 0 0.5rem; gap: 1rem; }
}

/* ── TORNEO LANDING PAGE ── */
.torneo-landing { overflow: hidden; }

.torneo-landing-hero {
  position: relative; min-height: 80vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center; padding: 5rem 2rem;
  padding-top: calc(var(--nav-h) + 5rem);
}
.torneo-landing-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(200,164,90,0.08) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(62,207,207,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(200,164,90,0.04) 0%, transparent 60%);
}
.torneo-landing-hero-content {
  position: relative; z-index: 1; max-width: 820px;
}
.torneo-landing-title {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(3.5rem, 9vw, 6.5rem); line-height: 0.95;
  color: var(--white); margin-bottom: 0.4rem;
  animation: fadeUp 0.6s ease 0.1s both;
}
.torneo-landing-sub {
  font-size: 1.15rem; font-weight: 300; color: var(--text2); line-height: 1.65;
  margin: 2rem auto 2rem; max-width: 540px;
  animation: fadeUp 0.6s ease 0.2s both;
}
.torneo-landing-date {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 1.1rem; letter-spacing: 0.08em;
  color: var(--gold); margin-bottom: 2.5rem;
  animation: fadeUp 0.6s ease 0.25s both;
}
.date-icon { font-size: 1.3rem; }
.torneo-landing-cta {
  display: flex; gap: 1.25rem; justify-content: center; flex-wrap: wrap;
  animation: fadeUp 0.6s ease 0.3s both;
}
.torneo-landing-cta .btn-lg {
  text-decoration: none; display: inline-flex; align-items: center;
}

/* INFO CARDS GRID */
.torneo-info-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1px; background: var(--border);
}
.torneo-info-card {
  background: var(--card); padding: 2rem 1.5rem;
  transition: background 0.2s;
}
.torneo-info-card:hover { background: var(--card2); }
.info-card-icon { font-size: 1.8rem; margin-bottom: 0.75rem; }
.info-card-label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.65rem; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--teal); margin-bottom: 0.5rem;
}
.info-card-value {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 1rem; color: var(--white); margin-bottom: 0.25rem;
}
.info-card-detail {
  font-size: 0.82rem; color: var(--text2); line-height: 1.5;
}

/* DARK SECTION */
.torneo-section-dark {
  background: var(--bg2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

/* STRUCTURE TIMELINE */
.torneo-structure { max-width: 680px; }
.structure-item {
  display: flex; gap: 1.5rem; margin-bottom: 2rem;
  position: relative;
}
.structure-item:not(:last-child)::after {
  content: '';
  position: absolute; left: 21px; top: 48px; bottom: -8px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold), transparent);
}
.structure-step {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Cinzel', serif; font-weight: 900; font-size: 1.1rem;
  color: #0a0c14; background: var(--gold);
  border-radius: 50%; position: relative; z-index: 1;
}
.structure-content h3 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 1rem; color: var(--white); margin-bottom: 0.4rem;
}
.structure-content p {
  font-size: 0.88rem; color: var(--text2); line-height: 1.7;
}
.structure-content strong { color: var(--gold2); }

/* REQUISITI */
.requisiti-list { max-width: 680px; }
.requisito-item {
  display: flex; gap: 1.25rem; align-items: flex-start;
  padding: 1.25rem 0; border-bottom: 1px solid var(--border);
}
.requisito-item:last-child { border-bottom: none; }
.requisito-icon {
  width: 36px; height: 36px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 700; color: var(--green);
  background: rgba(78,203,128,0.1); border: 1px solid rgba(78,203,128,0.25);
  border-radius: 50%;
}
.requisito-text strong {
  display: block; font-size: 0.95rem; color: var(--white); margin-bottom: 0.2rem;
}
.requisito-text span {
  font-size: 0.82rem; color: var(--text2); line-height: 1.5;
}

/* ISCRIZIONE BOX */
.iscrizione-box {
  display: flex; gap: 0;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 4px; overflow: hidden;
}
.iscrizione-price {
  min-width: 220px; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 3rem 2rem;
  background: linear-gradient(135deg, rgba(200,164,90,0.1), rgba(200,164,90,0.02));
  border-right: 1px solid var(--border);
}
.price-amount {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: 3.5rem; color: var(--gold);
  text-shadow: 0 0 40px var(--gold-glow);
}
.price-label {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text3); margin-top: 0.3rem;
}
.iscrizione-details { padding: 2rem; flex: 1; }
.iscrizione-step {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.75rem 0;
  font-size: 0.88rem; color: var(--text2);
}
.step-num {
  width: 28px; height: 28px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.8rem; color: var(--teal);
  border: 1px solid rgba(62,207,207,0.3); border-radius: 50%;
}
.iscrizione-warning {
  margin-top: 1.25rem; padding: 1rem 1.25rem;
  background: rgba(224,85,85,0.08); border: 1px solid rgba(224,85,85,0.2);
  border-radius: 4px;
  font-size: 0.85rem; font-weight: 600; color: var(--red);
}

/* PREMI GRID */
.premi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 1px; background: var(--border);
}
.premio-card {
  background: var(--card); padding: 2.5rem 1.5rem;
  text-align: center; transition: all 0.2s;
}
.premio-card:hover { background: var(--card2); transform: translateY(-3px); }
.premio-pos { font-size: 2.2rem; margin-bottom: 0.75rem; }
.premio-place {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.72rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--text2); margin-bottom: 0.5rem;
}
.premio-value {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: 2.2rem; margin-bottom: 0.3rem;
}
.premio-gold .premio-value { color: var(--gold); text-shadow: 0 0 30px var(--gold-glow); }
.premio-silver .premio-value { color: #c0c0c0; }
.premio-bronze .premio-value { color: #cd7f32; }
.premio-other .premio-value { color: var(--teal); }
.premio-desc {
  font-size: 0.78rem; color: var(--text3);
}
.premi-note {
  text-align: center; font-size: 0.78rem; color: var(--text3);
  margin-top: 1.5rem; font-style: italic;
}

/* PRANZO BOX */
.torneo-pranzo-box {
  display: flex; align-items: center; gap: 1.5rem;
  background: var(--card); border: 1px solid var(--border2);
  border-radius: 4px; padding: 2rem;
}
.pranzo-icon { font-size: 2.5rem; flex-shrink: 0; }
.pranzo-content h3 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 1rem; color: var(--white); margin-bottom: 0.4rem;
}
.pranzo-content p {
  font-size: 0.88rem; color: var(--text2); line-height: 1.6;
}

/* FINAL CTA */
/* ── ROADMAP PAGE ── */
.roadmap-page { overflow: hidden; }

/* Roadmap Hero */
.roadmap-hero {
  position: relative; min-height: 70vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; text-align: center; padding: 5rem 2rem;
  padding-top: calc(var(--nav-h) + 5rem);
}
.roadmap-hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 40%, rgba(62,207,207,0.07) 0%, transparent 70%),
    radial-gradient(ellipse 40% 40% at 20% 80%, rgba(200,164,90,0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 80% 20%, rgba(62,207,207,0.04) 0%, transparent 60%);
}
.roadmap-hero-content {
  position: relative; z-index: 1; max-width: 820px;
}
.roadmap-hero-title {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(2.5rem, 7vw, 4.5rem); line-height: 1.1;
  color: var(--white); margin-bottom: 0.5rem;
  animation: fadeUp 0.6s ease 0.1s both;
}
.roadmap-rotate-wrap {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(2rem, 5.5vw, 3.5rem); line-height: 1.2;
  animation: fadeUp 0.6s ease 0.2s both;
  margin-bottom: 0.5rem;
  display: flex; align-items: baseline; justify-content: center; gap: 0.3em;
}
.roadmap-rotate-wrap .accent2 {
  color: var(--gold); text-shadow: 0 0 40px var(--gold-glow);
  flex-shrink: 0;
}
.roadmap-hero-sub {
  font-size: 1.05rem; font-weight: 300; color: var(--text2); line-height: 1.7;
  margin: 1.5rem auto 1.5rem; max-width: 520px;
  animation: fadeUp 0.6s ease 0.3s both;
}
.roadmap-hero-free {
  display: inline-block;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.85rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--green); padding: 0.5rem 1.5rem;
  border: 1px solid rgba(78,203,128,0.35);
  background: rgba(78,203,128,0.08);
  border-radius: 3px; margin-bottom: 2rem;
  animation: fadeUp 0.6s ease 0.4s both;
}
.roadmap-hero-stats {
  display: flex; justify-content: center; gap: 3rem;
  margin-top: 1rem; animation: fadeUp 0.6s ease 0.5s both;
}
.roadmap-hero-stat { text-align: center; }
.roadmap-hero-stat-num {
  display: block; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 2rem; color: var(--teal);
}
.roadmap-hero-stat-label {
  font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--text3);
}

/* Rotating words */
.roadmap-rotate {
  position: relative;
  display: inline-grid;
}
.roadmap-rotate .rotate-word {
  grid-area: 1 / 1;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
  color: var(--teal); text-shadow: 0 0 50px var(--teal-glow);
  white-space: nowrap;
  visibility: hidden;
}
.roadmap-rotate .rotate-word.active {
  opacity: 1; transform: translateY(0);
  visibility: visible;
}

/* No extra padding — hero handles it */
body.page-id-25 #rbz-content {
  padding-top: 0 !important;
}
.roadmap-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.25rem; padding: 0 1rem;
}
.roadmap-card {
  background: var(--card); padding: 1.75rem;
  border: 1px solid var(--border); border-radius: 12px;
  transition: border-color 0.2s, box-shadow 0.2s; position: relative;
}
.roadmap-card:hover { border-color: rgba(62,207,207,0.3); box-shadow: 0 4px 20px rgba(0,0,0,0.15); }
.roadmap-card.roadmap-done { border-left: 3px solid var(--teal); }
.roadmap-card.roadmap-wip { border-left: 3px solid var(--gold); }
.roadmap-icon { font-size: 2.2rem; margin-bottom: 0.75rem; }
.roadmap-card h3 {
  font-family: 'Cinzel', serif; font-weight: 700;
  font-size: 1.05rem; color: var(--white); margin-bottom: 0.4rem;
  display: inline;
}
.roadmap-pct {
  display: inline-block; font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.82rem; color: var(--teal); background: rgba(62,207,207,0.1);
  padding: 0.2rem 0.6rem; border-radius: 4px; margin-left: 0.6rem; vertical-align: middle;
}
.roadmap-card p {
  font-size: 0.84rem; color: var(--text2); line-height: 1.6; margin-top: 0.4rem;
}
.roadmap-sub {
  list-style: none; padding: 0; margin: 1rem 0 0;
  display: flex; flex-direction: column; gap: 0.4rem;
  border-top: 1px solid var(--border); padding-top: 0.85rem;
}
.roadmap-sub li {
  font-size: 0.82rem; color: var(--text2); padding-left: 1.8rem;
  position: relative; line-height: 1.6;
}
.roadmap-sub li::before { position: absolute; left: 0; top: 0.1rem; font-size: 0.9rem; }
.roadmap-sub li.sub-done::before { content: '\2705'; }
.roadmap-sub li.sub-done { color: var(--text); }
.roadmap-sub li.sub-wip::before { content: '\1F6E0\FE0F'; }
.roadmap-sub li.sub-wip { color: var(--gold); }
.roadmap-sub li.sub-planned::before { content: '\274C'; }
.roadmap-sub li.sub-planned { color: var(--text3); }
.roadmap-status-badge {
  display: inline-block; font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.65rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 0.2rem 0.6rem;
  border-radius: 4px; margin-bottom: 0.85rem;
}
.badge-done {
  background: rgba(78,203,128,0.15); color: var(--green);
  border: 1px solid rgba(78,203,128,0.3);
}
.badge-wip {
  background: rgba(200,164,90,0.12); color: var(--gold);
  border: 1px solid rgba(200,164,90,0.3);
}
.badge-planned {
  background: rgba(62,207,207,0.1); color: var(--teal);
  border: 1px solid rgba(62,207,207,0.25);
}

/* PARTECIPANTI GRID */
.partecipanti-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1px; background: var(--border);
}
.partecipante-card {
  background: var(--card); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 0.75rem;
  transition: background 0.2s;
}
.partecipante-card:hover { background: var(--card2); }
.partecipante-avatar {
  width: 36px; height: 36px; flex-shrink: 0;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--gold), var(--teal));
  display: flex; align-items: center; justify-content: center;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.9rem; color: #0a0c14;
}
.partecipante-name {
  font-size: 0.88rem; font-weight: 500; color: var(--white);
  flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.partecipante-num {
  font-family: 'Barlow Condensed', sans-serif; font-weight: 600;
  font-size: 0.7rem; letter-spacing: 0.1em; color: var(--text3);
}

/* FINAL CTA */
.torneo-final-cta {
  text-align: center; padding: 6rem 2rem;
  background:
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(200,164,90,0.06) 0%, transparent 70%);
}
.torneo-final-cta h2 {
  font-family: 'Cinzel', serif; font-weight: 900;
  font-size: clamp(1.8rem, 4vw, 2.8rem); color: var(--white);
  margin-bottom: 0.75rem;
}
.torneo-final-cta p {
  font-size: 1rem; color: var(--text2); max-width: 480px;
  margin: 0 auto 2.5rem; line-height: 1.6;
}

/* ── SHARED: filter-group, search-input, page containers ── */
.filter-group { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }
.search-input-sm { width: 100%; max-width: 200px; }
.feature-page { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.feature-page-narrow { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.feature-actions { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap; justify-content: space-between; }
.feature-actions-right { display: flex; gap: 0.5rem; align-items: center; }
.owned-label { font-size: 0.8rem; color: var(--text2); display: flex; align-items: center; gap: 0.4rem; cursor: pointer; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.torneo-winner-box { background: rgba(200,164,90,0.1); border: 1px solid var(--gold); border-radius: 10px; padding: 1rem; margin-bottom: 1.5rem; text-align: center; }
.torneo-winner-box span { font-size: 1.5rem; }
.torneo-winner-box strong { color: var(--gold); font-size: 1.1rem; }
.bracket-container { display: flex; gap: 2rem; overflow-x: auto; padding: 1rem 0; -webkit-overflow-scrolling: touch; }
.bracket-round-title { color: var(--text3); font-size: 0.75rem; text-align: center; margin-bottom: 0.5rem; font-family: 'Barlow Condensed', sans-serif; text-transform: uppercase; letter-spacing: 0.08em; }
.torneo-detail-page { max-width: 900px; margin: 0 auto; }
.torneo-detail-title { color: var(--gold); font-family: 'Cinzel', serif; font-size: 1.5rem; margin: 0; }
.torneo-detail-meta { display: flex; gap: 0.75rem; flex-wrap: wrap; margin: 0.75rem 0 1.5rem; align-items: center; }
.torneo-players-grid { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.5rem; }
.torneo-section-title { color: var(--white); font-family: 'Cinzel', serif; font-size: 1rem; margin: 1.5rem 0 0.75rem; }

/* Nav dropdowns (Altro + Mercatino) */
.nav-more, .nav-dropdown { position: relative; }
.nav-more > a, .nav-dropdown > a { cursor: pointer; }
.nav-more-dropdown { display: none; position: absolute; top: 100%; left: 50%; transform: translateX(-50%); min-width: 200px; background: var(--card); border: 1px solid var(--border); border-radius: 8px; box-shadow: 0 8px 32px rgba(0,0,0,0.4); padding: 0.4rem 0; z-index: 200; margin-top: 0.6rem; }
.nav-more-dropdown::before { content: ''; position: absolute; top: -0.7rem; left: 0; right: 0; height: 0.7rem; }
.nav-more:hover .nav-more-dropdown,
.nav-more.open .nav-more-dropdown,
.nav-dropdown:hover .nav-more-dropdown,
.nav-dropdown.open .nav-more-dropdown { display: block; }
.nav-more-dropdown a { display: block; padding: 0.7rem 1.3rem; font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.95rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text2); text-decoration: none; transition: all 0.15s; }
.nav-more-dropdown a:hover { color: var(--teal); background: var(--teal-glow); }
.nav-more-dropdown a.nav-lock { color: var(--text3); display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; }
.nav-more-dropdown a.nav-lock::after { content: '\01F512'; font-size: 0.75rem; opacity: 0.7; }
.nav-more-dropdown a.nav-lock:hover { color: var(--gold); background: var(--gold-glow); }

/* ── GUIDE ── */
.guide-page { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.guide-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform 0.2s, border-color 0.2s; display: flex; flex-direction: column; }
.guide-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.guide-thumb { height: 160px; background: var(--bg3); background-size: cover; background-position: center; }
.guide-thumb-placeholder { background: linear-gradient(135deg, var(--bg3), var(--card2)); display: flex; align-items: center; justify-content: center; }
.guide-thumb-placeholder::after { content: "\1F4DA"; font-size: 2.5rem; opacity: 0.3; }
.guide-card-body { padding: 1rem 1.2rem 1.2rem; flex: 1; display: flex; flex-direction: column; }
.guide-card-meta { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 0.5rem; }
.guide-card-title { color: var(--white); font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700; margin: 0 0 0.5rem; line-height: 1.3; }
.guide-card-excerpt { color: var(--text2); font-size: 0.82rem; line-height: 1.5; flex: 1; margin-bottom: 0.75rem; }
.guide-card-footer { display: flex; gap: 0.75rem; font-size: 0.75rem; color: var(--text3); border-top: 1px solid var(--border); padding-top: 0.6rem; }
.guide-detail-overlay { max-width: 800px; margin: 0 auto; padding: 2rem 1rem; }
.guide-detail-meta { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.guide-detail-title { color: var(--gold); font-family: 'Cinzel', serif; font-size: 1.5rem; margin: 0.5rem 0 1rem; }
.guide-detail-author { color: var(--text2); margin-bottom: 1.5rem; }
.guide-detail-author strong { color: var(--teal); }
.guide-content { color: var(--text); line-height: 1.75; font-size: 0.95rem; }
.guide-content p { margin-bottom: 1rem; }
.guide-content h2, .guide-content h3 { color: var(--gold); margin: 1.5rem 0 0.75rem; }
.guide-content ul, .guide-content ol { margin: 0.75rem 0; padding-left: 1.5rem; }
.guide-content li { margin-bottom: 0.4rem; }

/* ── PROFILO GIOCATORE (v4) ── */
.profilo-page { max-width: 900px; margin: 0 auto; padding: 2rem 1rem; }

/* Header con gradient hairline top + radial teal glow */
.profilo-header {
  display: flex;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2rem;
  padding: 2rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}
.profilo-header::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 100%);
  opacity: 0.5;
}
.profilo-header::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 15% 0%, rgba(62,207,207,0.06), transparent 55%);
  pointer-events: none;
}
.profilo-header > * { position: relative; z-index: 1; }

/* Avatar premium: dark interior + gold ring + teal glow */
.profilo-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3a447a 0%, #1a2040 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--gold2);
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(200,164,90,0.5), 0 0 28px rgba(62,207,207,0.15);
}

.profilo-info { flex: 1; min-width: 0; }
.profilo-info h1 { color: var(--gold); font-family: 'Cinzel', serif; font-size: 1.6rem; margin: 0 0 0.3rem; }
.profilo-info-sub { color: var(--text2); font-size: 0.85rem; display: flex; gap: 1rem; flex-wrap: wrap; align-items: center; }

/* Role pill (override scoped del .badge-done globale) */
.profilo-info-sub .badge-done {
  background: rgba(200,164,90,0.1);
  color: var(--gold2);
  border: 1px solid rgba(200,164,90,0.3);
  padding: 0.18rem 0.5rem;
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* Stats con hover lift + hairline teal animata */
.profilo-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; margin-bottom: 2rem; }
.profilo-stat {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem;
  text-align: center;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.profilo-stat::before {
  content: "";
  position: absolute;
  top: 0; left: 20%; right: 20%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62,207,207,0.4), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.profilo-stat:hover { transform: translateY(-2px); border-color: rgba(62,207,207,0.25); }
.profilo-stat:hover::before { opacity: 1; }
.profilo-stat-num { font-size: 1.8rem; font-weight: 700; color: var(--teal); font-family: 'Barlow Condensed', sans-serif; line-height: 1; }
.profilo-stat--featured .profilo-stat-num { color: var(--gold2); }
.profilo-stat-label { font-size: 0.75rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.25rem; }
.profilo-stat-sub { font-family: 'Barlow Condensed', sans-serif; font-size: 0.75rem; color: var(--gold); margin-top: 0.2rem; letter-spacing: 0.03em; }

/* Section h2 con gold bar verticale */
.profilo-section { margin-bottom: 2rem; }
.profilo-section h2 {
  color: var(--gold);
  font-family: 'Cinzel', serif;
  font-size: 1.1rem;
  margin-bottom: 1rem;
  padding: 0 0 0.5rem 0.9rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}
.profilo-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15rem;
  bottom: 0.65rem;
  width: 3px;
  background: linear-gradient(180deg, var(--gold), rgba(200,164,90,0.2));
}

/* Tournament grid (nuovo: celle dense con icon + val + lbl) */
.profilo-tourney-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; }
.profilo-tourney-cell { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 0.9rem 1rem; display: flex; align-items: center; gap: 0.7rem; transition: border-color 0.15s; }
.profilo-tourney-cell:hover { border-color: rgba(200,164,90,0.3); }
.profilo-tourney-cell-icon { font-size: 1.5rem; line-height: 1; flex-shrink: 0; filter: drop-shadow(0 0 8px rgba(200,164,90,0.3)); }
.profilo-tourney-cell-val { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.4rem; color: var(--white); line-height: 1; }
.profilo-tourney-cell-lbl { font-size: 0.7rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.08em; margin-top: 0.2rem; }

/* Badges con rarity tier (nuova struttura, classe .profilo-badge rimpiazza span inline-styled) */
.profilo-badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0.6rem; }
.profilo-badge {
  display: flex !important;
  align-items: center;
  gap: 0.7rem;
  padding: 0.65rem 0.85rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--text3);
  border-radius: 8px;
  font-size: 0.85rem;
  color: var(--white);
  transition: background 0.15s, border-color 0.15s;
}
.profilo-badge:hover { background: var(--card2); }
.profilo-badge-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--bg);
  background: var(--text3);
  flex-shrink: 0;
}
.profilo-badge-body { min-width: 0; }
.profilo-badge-name { font-family: 'Cinzel', serif; font-size: 0.82rem; color: var(--white); line-height: 1.1; }
.profilo-badge-season { font-family: 'Barlow Condensed', sans-serif; font-size: 0.68rem; color: var(--text3); letter-spacing: 0.1em; text-transform: uppercase; margin-top: 0.15rem; }
.profilo-badge--gold   { border-left-color: var(--tier-gold); }
.profilo-badge--gold   .profilo-badge-icon { background: var(--tier-gold); }
.profilo-badge--silver { border-left-color: var(--tier-silver); }
.profilo-badge--silver .profilo-badge-icon { background: var(--tier-silver); }
.profilo-badge--bronze { border-left-color: var(--tier-bronze); }
.profilo-badge--bronze .profilo-badge-icon { background: var(--tier-bronze); }

/* Activity con icon in cerchietto gold */
.profilo-activity { display: flex; flex-direction: column; gap: 0.5rem; }
.profilo-activity-item {
  display: flex;
  gap: 0.9rem;
  align-items: center;
  padding: 0.8rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 0.88rem;
  color: var(--text);
  transition: border-color 0.15s, background 0.15s;
}
.profilo-activity-item:hover { border-color: rgba(200,164,90,0.25); background: var(--card2); }
.profilo-activity-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(200,164,90,0.08);
  border: 1px solid rgba(200,164,90,0.25);
  color: var(--gold2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.profilo-activity-date { color: var(--text3); font-size: 0.72rem; margin-left: auto; flex-shrink: 0; font-family: 'Barlow Condensed', sans-serif; letter-spacing: 0.08em; text-transform: uppercase; }

/* Deck card + domain pips */
.profilo-decks { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 0.75rem; }
.profilo-deck-card {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.9rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 8px;
  transition: border-color 0.15s, background 0.15s;
  text-decoration: none;
  color: inherit;
}
.profilo-deck-card:hover { border-color: var(--teal); background: var(--card2); }
.profilo-deck-icon { font-size: 1.3rem; flex-shrink: 0; color: var(--gold); }
.profilo-deck-body { flex: 1; min-width: 0; }
.profilo-deck-name { font-family: 'Cinzel', serif; font-size: 0.92rem; color: var(--white); font-weight: 700; }
.profilo-deck-meta { font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem; color: var(--text3); margin-top: 0.15rem; letter-spacing: 0.05em; }
.profilo-deck-pips { display: flex; gap: 0.25rem; flex-shrink: 0; }
.profilo-deck-pip { width: 8px; height: 8px; border-radius: 50%; }
.profilo-deck-pip--calm  { background: var(--pip-calm); }
.profilo-deck-pip--mind  { background: var(--pip-mind); }
.profilo-deck-pip--fury  { background: var(--pip-fury); }
.profilo-deck-pip--order { background: var(--pip-order); }
.profilo-deck-pip--body  { background: var(--pip-body); }

/* ── COLLEZIONE — Album ── */
.collezione-page { max-width: 1100px; margin: 0 auto; padding: 0 1rem 4rem; }
.coll-overview { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem 2rem; margin-bottom: 2rem; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; text-align: center; }
.coll-ov-block { padding: 0.5rem 0; }
.coll-ov-block-bar { padding: 0.75rem 0.5rem; display: flex; flex-direction: column; justify-content: center; }
.coll-ov-block h4 { font-family: 'Cinzel', serif; font-size: 0.85rem; font-weight: 700; color: var(--white); margin: 0 0 0.5rem; }
.coll-ov-block .coll-overview-num { font-size: 2rem; }
.coll-ov-block .coll-overview-label { font-size: 0.82rem; color: var(--text2); }
.coll-ov-pct { font-family: 'Barlow Condensed', sans-serif; font-size: 1.8rem; font-weight: 700; color: var(--teal); }
.coll-ov-setname { font-size: 0.82rem; color: var(--text2); margin-top: 0.2rem; }
.coll-overview-stat { text-align: center; }
.coll-overview-num { font-family: 'Barlow Condensed', sans-serif; font-size: 2rem; font-weight: 700; color: var(--teal); display: block; line-height: 1; }
.coll-overview-num small { font-size: 1rem; }
.coll-overview-label { font-size: 0.7rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.2rem; }
/* Album covers */
.coll-albums { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1.25rem; }
.coll-album { background: var(--card); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; cursor: pointer; transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s; }
.coll-album:hover { transform: translateY(-4px); border-color: var(--teal); box-shadow: 0 8px 30px rgba(62,207,207,0.15); }
.coll-album-cover { height: 180px; background-size: cover; background-position: center top; position: relative; }
.coll-album-cover::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 80px; background: linear-gradient(transparent, var(--card)); }
.coll-album-body { padding: 1rem 1.25rem 1.25rem; }
.coll-album-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.1rem; color: var(--white); margin: 0 0 0.3rem; }
.coll-album-count { font-size: 0.82rem; color: var(--text2); margin-bottom: 0.6rem; }
.coll-album-bar { height: 6px; background: var(--bg3); border-radius: 3px; overflow: hidden; }
.coll-album-fill { height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 3px; transition: width 0.4s; min-width: 2px; }
.coll-album-pct { font-size: 0.72rem; color: var(--text3); margin-top: 0.35rem; }
/* Album animations */
.coll-album-opening { animation: albumOpen 0.35s ease forwards; }
.coll-album-fading { animation: albumFade 0.3s ease forwards; }
.coll-av-entering { animation: albumViewIn 0.4s ease both; }
.coll-av-closing { animation: albumClose 0.25s ease both; }
.coll-albums-returning .coll-album { animation: albumReturn 0.35s ease both; }
.coll-albums-returning .coll-album:nth-child(1) { animation-delay: 0s; }
.coll-albums-returning .coll-album:nth-child(2) { animation-delay: 0.05s; }
.coll-albums-returning .coll-album:nth-child(3) { animation-delay: 0.1s; }
.coll-albums-returning .coll-album:nth-child(4) { animation-delay: 0.15s; }
.coll-albums-returning .coll-album:nth-child(n+5) { animation-delay: 0.2s; }
.coll-back-btn { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.85rem; color: var(--text2); background: none; border: none; cursor: pointer; padding: 0.4rem 0; transition: color 0.15s; }
.coll-back-btn:hover { color: var(--teal); }
@keyframes albumOpen { 0%{transform:scale(1);opacity:1} 100%{transform:scale(1.05);opacity:0;} }
@keyframes albumFade { 0%{transform:scale(1);opacity:1} 100%{transform:scale(0.95);opacity:0;} }
@keyframes albumViewIn { 0%{opacity:0;transform:translateY(20px)} 100%{opacity:1;transform:translateY(0)} }
@keyframes albumClose { 0%{opacity:1;transform:scale(1)} 100%{opacity:0;transform:scale(0.95)} }
@keyframes albumReturn { 0%{opacity:0;transform:scale(0.9)} 100%{opacity:1;transform:scale(1)} }
/* Page turn animations */
.coll-page-out-left { animation: pageOutLeft 0.25s ease forwards; }
.coll-page-out-right { animation: pageOutRight 0.25s ease forwards; }
.coll-page-in-left { animation: pageInLeft 0.3s ease both; }
.coll-page-in-right { animation: pageInRight 0.3s ease both; }
@keyframes pageOutLeft { 0%{opacity:1;transform:translateX(0) scale(1)} 100%{opacity:0;transform:translateX(-40px) scale(0.97)} }
@keyframes pageOutRight { 0%{opacity:1;transform:translateX(0) scale(1)} 100%{opacity:0;transform:translateX(40px) scale(0.97)} }
@keyframes pageInLeft { 0%{opacity:0;transform:translateX(40px) scale(0.97)} 100%{opacity:1;transform:translateX(0) scale(1)} }
@keyframes pageInRight { 0%{opacity:0;transform:translateX(-40px) scale(0.97)} 100%{opacity:1;transform:translateX(0) scale(1)} }
.coll-album-soon { opacity: 0.55; cursor: default; pointer-events: none; }
.coll-album-cover-soon { background: linear-gradient(135deg, var(--bg3), var(--card2)); display: flex; align-items: center; justify-content: center; background-size: cover; background-position: center; position: relative; }
.coll-album-cover-soon::before { content: ""; position: absolute; inset: 0; background: rgba(10,12,20,0.6); }
.coll-soon-badge { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); background: rgba(200,164,90,0.15); border: 1px solid rgba(200,164,90,0.3); padding: 0.4rem 1rem; border-radius: 4px; z-index: 1; }
/* Language selector */
.coll-lang-selector { grid-column: 1 / -1; display: flex; align-items: center; gap: 0.6rem; flex-wrap: wrap; padding: 0.75rem 0; margin-bottom: 0.5rem; }
.coll-lang-label { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); }
.coll-lang-btn { font-family: 'Barlow Condensed', sans-serif; font-weight: 600; font-size: 0.85rem; padding: 0.45rem 1rem; border-radius: 6px; border: 1px solid var(--border2); background: transparent; color: var(--text2); cursor: pointer; transition: all 0.15s; display: inline-flex; align-items: center; gap: 0.4rem; }
.coll-lang-btn:hover { border-color: var(--teal); color: var(--teal); }
.coll-lang-btn.active { border-color: var(--gold); color: var(--gold); background: rgba(200,164,90,0.08); }
.coll-lang-soon { opacity: 0.5; cursor: default; pointer-events: none; }
.coll-soon-badge-sm { font-size: 0.6rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); background: rgba(200,164,90,0.12); padding: 0.15rem 0.4rem; border-radius: 3px; }
/* Album view (open) */
.coll-av-header { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.coll-av-info { flex: 1; min-width: 200px; }
.coll-av-title { font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.4rem; color: var(--gold); margin: 0.5rem 0 0.3rem; }
.coll-av-stats { font-size: 0.85rem; color: var(--text2); margin-bottom: 0.5rem; }
.coll-av-controls { display: flex; gap: 0.4rem; }
/* Cards in album — 9 per page (3x3) */
.coll-av-grid-page { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; max-width: 720px; margin: 0 auto; position: relative; }
.coll-av-grid-full { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 0.7rem; }
.coll-av-card { background: var(--card); border: 2px solid var(--border); border-radius: 10px; overflow: hidden; cursor: pointer; transition: transform 0.15s, border-color 0.15s; position: relative; }
.coll-av-card:hover { transform: translateY(-2px); border-color: var(--teal); }
.coll-av-card.owned { border-color: var(--gold); }
.coll-av-card.coll-legend { border-color: rgba(200,164,90,0.5); }
.coll-av-card.coll-epic { border-color: rgba(168,85,247,0.4); }
.coll-av-card.coll-rare { border-color: rgba(62,207,207,0.3); }
.coll-av-card.coll-showcase { border-color: rgba(200,164,90,0.35); }
.coll-av-card.owned.coll-legend { box-shadow: 0 0 14px rgba(200,164,90,0.2); }
.coll-av-card.owned.coll-epic { box-shadow: 0 0 14px rgba(168,85,247,0.15); }
.coll-av-card-img { position: relative; }
.coll-av-card-img img { width: 100%; aspect-ratio: 0.716; object-fit: cover; display: block; }
.coll-av-placeholder { aspect-ratio: 0.716; background: var(--bg3); }
.collezione-qty { position: absolute; top: 6px; right: 6px; background: var(--gold); color: var(--bg); font-size: 0.7rem; font-weight: 700; width: 24px; height: 24px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 8px rgba(0,0,0,0.3); }
.coll-av-overlay { position: absolute; top: 0; left: 0; right: 0; bottom: 0; background: rgba(10,12,20,0.78); display: flex; align-items: center; justify-content: center; gap: 0.5rem; opacity: 0; transition: opacity 0.2s; }
.coll-av-card:hover .coll-av-overlay { opacity: 1; }
.coll-av-overlay span { color: var(--white); font-weight: 700; font-size: 1.1rem; }
.coll-add-hint { font-size: 0.85rem !important; color: var(--teal) !important; font-weight: 600 !important; }
.coll-btn-minus, .coll-btn-plus { width: 32px; height: 32px; border-radius: 50%; border: none; font-size: 1.1rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: all 0.15s; }
.coll-btn-minus { background: rgba(224,85,85,0.2); color: var(--red); }
.coll-btn-minus:hover { background: rgba(224,85,85,0.4); }
.coll-btn-plus { background: rgba(62,207,207,0.2); color: var(--teal); }
.coll-btn-plus:hover { background: rgba(62,207,207,0.4); }
.coll-av-card-info { padding: 0.4rem 0.6rem; }
.coll-av-card-name { font-size: 0.78rem; color: var(--white); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.coll-av-card-meta { font-size: 0.65rem; color: var(--text3); }
/* Pagination */
/* Side arrows */
.coll-arrow { position: absolute; top: 50%; transform: translateY(-50%); z-index: 80; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border2); background: var(--card); color: var(--teal); font-size: 1.8rem; display: flex; align-items: center; justify-content: center; cursor: pointer; transition: all 0.2s; box-shadow: 0 4px 16px rgba(0,0,0,0.3); line-height: 1; }
.coll-arrow:hover { background: var(--teal); color: var(--bg); border-color: var(--teal); }
.coll-arrow-left { left: -52px; }
.coll-arrow-right { right: -52px; }
.coll-av-pag { display: flex; align-items: center; justify-content: center; gap: 1rem; padding: 1rem 0; }
.coll-av-pag-info { font-size: 0.85rem; color: var(--text3); }
@media (max-width: 768px) {
  .coll-arrow { width: 36px; height: 36px; font-size: 1.5rem; }
  .coll-arrow-left { left: 0.5rem; }
  .coll-arrow-right { right: 0.5rem; }
}
@media (max-width: 768px) {
  .coll-overview { grid-template-columns: repeat(2, 1fr); padding: 1rem; gap: 0.75rem; }
  .coll-albums { grid-template-columns: repeat(2, 1fr); }
  .coll-album-cover { height: 130px; }
  .coll-av-header { flex-direction: column; align-items: flex-start; }
  .coll-av-grid-page { grid-template-columns: repeat(3, 1fr); gap: 0.6rem; }
  .coll-av-grid-full { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); }
}

/* ── CLASSIFICHE ── */
.classifiche-page { max-width: 900px; margin: 0 auto; padding: 0 1rem; }
.classifiche-table { width: 100%; border-collapse: separate; border-spacing: 0; }
.classifiche-table th { background: var(--card2); color: var(--gold); font-family: 'Cinzel', serif; font-size: 0.75rem; padding: 0.8rem 0.75rem; text-align: left; border-bottom: 2px solid var(--gold); white-space: nowrap; }
.classifiche-table th.col-center { text-align: center; }
.classifiche-table th.col-rank { width: 50px; }
.classifiche-table td { padding: 0.7rem 0.75rem; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text); }
.classifiche-table td.col-center { text-align: center; }
.classifiche-table td.col-gold { text-align: center; color: var(--gold); font-weight: 700; }
.classifiche-table td.col-teal { text-align: center; }
.classifiche-table td.col-teal strong { color: var(--teal); font-size: 1.05rem; }
.classifiche-table tr:hover td { background: rgba(62,207,207,0.04); }
.classifiche-rank { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; }
.classifiche-rank-1 { color: #ffd700; }
.classifiche-rank-2 { color: #c0c0c0; }
.classifiche-rank-3 { color: #cd7f32; }
.classifiche-user { display: flex; align-items: center; gap: 0.6rem; }
.classifiche-user-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--teal); display: flex; align-items: center; justify-content: center; font-size: 0.75rem; font-weight: 700; color: var(--bg); flex-shrink: 0; }

/* Hide columns su mobile per tabelle dense (classifiche, swiss) */
@media (max-width: 640px) {
  .col-hide-sm { display: none !important; }
}
@media (max-width: 480px) {
  .col-hide-md { display: none !important; }
}

/* ── TORNEI ── */
.tornei-page { max-width: 1100px; margin: 0 auto; padding: 0 1rem; }
.tornei-grid { display: grid; grid-template-columns: 1fr; gap: 1px; background: var(--border); }
.torneo-card { background: var(--card); cursor: pointer; transition: background 0.2s; overflow: hidden; display: flex; flex-direction: column; }
.torneo-card:hover { background: var(--card2); }
.torneo-card .torneo-body { flex: 1; }
.torneo-card .torneo-footer { margin-top: auto; }
.badge-open { background: rgba(78,203,128,0.15); color: var(--green); }
.badge-active { background: rgba(62,207,207,0.15); color: var(--teal); }
.badge-closed { background: rgba(224,85,85,0.15); color: var(--red); }
.badge-cancelled { background: rgba(255,200,0,0.15); color: #ffc800; }
.bracket-round { display: flex; flex-direction: column; gap: 1.5rem; min-width: 200px; }
.bracket-match { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.bracket-player { padding: 0.6rem 0.8rem; font-size: 0.82rem; color: var(--text); display: flex; justify-content: space-between; }
.bracket-player + .bracket-player { border-top: 1px solid var(--border); }
.bracket-player.winner { color: var(--gold); font-weight: 600; background: rgba(200,164,90,0.08); }
.swiss-round { display: flex; flex-direction: column; gap: 0.5rem; }
.swiss-match { display: flex; align-items: center; gap: 0.75rem; padding: 0.6rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; font-size: 0.85rem; }
.swiss-p { font-weight: 600; min-width: 100px; }
.swiss-res { margin-left: auto; }
@media (max-width: 768px) { .swiss-match { flex-wrap: wrap; gap: 0.4rem; } .swiss-p { min-width: auto; } }
.import-section { padding-bottom: 0.5rem; }
.torneo-info-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; padding: 1.25rem; background: var(--card); border: 1px solid var(--border); border-radius: 10px; }
.torneo-info-item {}
.torneo-info-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text3); margin-bottom: 0.2rem; }
.torneo-info-value { color: var(--white); font-size: 0.92rem; font-weight: 600; }

/* ── NOTIFICHE ── */
.notif-bell { position: relative; cursor: pointer; display: inline-flex; align-items: center; margin-right: 0.75rem; }
.notif-bell svg { color: var(--text2); transition: color 0.2s; }
.notif-bell:hover svg { color: var(--teal); }
.notif-bell-count { position: absolute; top: -5px; right: -5px; background: var(--red); color: #fff; font-size: 0.6rem; font-weight: 700; min-width: 16px; height: 16px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.notif-dropdown { position: absolute; top: calc(100% + 10px); right: -1rem; width: 320px; max-height: 400px; overflow-y: auto; background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,0.5); z-index: 1000; display: none; }
.notif-dropdown.open { display: block; }
.notif-dropdown-header { padding: 0.8rem 1rem; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.notif-dropdown-header span { color: var(--gold); font-family: 'Cinzel', serif; font-size: 0.85rem; }
.notif-mark-read { background: none; border: none; color: var(--teal); cursor: pointer; font-size: 0.75rem; font-family: 'Barlow Condensed', sans-serif; }
.notif-item { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.82rem; color: var(--text); cursor: pointer; transition: background 0.15s; display: flex; gap: 0.6rem; align-items: flex-start; }
.notif-item:hover { background: rgba(62,207,207,0.05); }
.notif-item.unread { background: rgba(62,207,207,0.03); }
.notif-item-icon { font-size: 1rem; flex-shrink: 0; margin-top: 2px; }
.notif-item-body { flex: 1; }
.notif-item-text { line-height: 1.4; }
.notif-item-time { font-size: 0.7rem; color: var(--text3); margin-top: 2px; }
.notif-empty { padding: 2rem; text-align: center; color: var(--text3); font-size: 0.85rem; }

/* ── Side button "Area Personale" ── */
.side-btn-dashboard {
  position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 90;
  display: flex; align-items: center; gap: 0.7rem;
  background: linear-gradient(135deg, var(--teal), #2ab8b8); color: var(--bg); text-decoration: none;
  font-family: 'Barlow Condensed', sans-serif; font-weight: 700;
  font-size: 0.92rem; letter-spacing: 0.1em; text-transform: uppercase; white-space: nowrap;
  padding: 0.9rem 1.5rem; border-radius: 50px;
  box-shadow: 0 4px 20px rgba(62,207,207,0.4), 0 0 0 0 rgba(62,207,207,0);
  transition: all 0.25s; animation: sideBtn 3s ease-in-out infinite;
}
.side-btn-dashboard:hover {
  background: linear-gradient(135deg, var(--teal2), var(--teal)); transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(62,207,207,0.55);
}
.side-btn-dashboard svg { width: 20px; height: 20px; flex-shrink: 0; }
@keyframes sideBtn { 0%,100%{box-shadow:0 4px 20px rgba(62,207,207,0.4),0 0 0 0 rgba(62,207,207,0.3)} 50%{box-shadow:0 4px 20px rgba(62,207,207,0.4),0 0 0 8px rgba(62,207,207,0)} }
.side-btn-wrap { position: fixed; left: 1.5rem; bottom: 1.5rem; z-index: 90; display: flex; flex-direction: column; align-items: flex-start; gap: 0.5rem; }
.side-btn-wrap .side-btn-dashboard { position: static; }
.side-btn-hints { position: relative; height: 1.6rem; min-width: 200px; }
.side-btn-hints span { position: absolute; left: 0; bottom: 0; white-space: nowrap; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; letter-spacing: 0.06em; color: var(--teal); background: rgba(10,12,20,0.88); backdrop-filter: blur(8px); padding: 0.5rem 1.2rem; border-radius: 24px; border: 1px solid rgba(62,207,207,0.25); opacity: 0; transform: translateY(6px); transition: opacity 0.5s, transform 0.5s; pointer-events: none; }
.side-btn-hints span.visible { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) {
  .side-btn-dashboard { left: 1rem; bottom: 1rem; font-size: 0.82rem; padding: 0.75rem 1.2rem; }
}

/* ── HOME — Features section ── */
.home-features { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.home-feature-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 1.5rem; text-decoration: none; color: var(--text); transition: transform 0.2s, border-color 0.2s; display: flex; flex-direction: column; gap: 0.4rem; }
.home-feature-card:hover { transform: translateY(-3px); border-color: var(--teal); }
.home-feature-icon { font-size: 2rem; margin-bottom: 0.25rem; }
.home-feature-card h3 { font-family: 'Cinzel', serif; font-size: 1rem; font-weight: 700; color: var(--white); margin: 0; }
.home-feature-card p { font-size: 0.82rem; color: var(--text2); line-height: 1.5; margin: 0; }
.home-feature-highlight { border-color: var(--teal); background: linear-gradient(135deg, rgba(62,207,207,0.06), var(--card)); position: relative; }
.home-feature-highlight h3 { color: var(--teal); }
.home-feature-arrow { font-size: 1.3rem; color: var(--teal); margin-top: auto; align-self: flex-end; }
.home-user-banner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 1100px; margin: 0 auto 0; padding: 1rem 2rem; background: linear-gradient(135deg, rgba(62,207,207,0.08), rgba(200,164,90,0.06)); border: 1px solid rgba(62,207,207,0.15); border-radius: 10px; color: var(--text); font-size: 0.9rem; }
@media (max-width: 640px) {
  .home-features { grid-template-columns: 1fr; }
  .home-user-banner { flex-direction: column; text-align: center; margin: 0 1rem; }
}

/* ── DASHBOARD — Sidebar layout ── */
.dash-layout { display: flex; min-height: calc(100vh - var(--nav-h)); }
.dash-sidebar { width: 220px; flex-shrink: 0; background: var(--bg2); border-right: 1px solid var(--border); padding: 0.5rem 0 0.4rem; position: sticky; top: var(--nav-h); height: calc(100vh - var(--nav-h)); overflow-y: hidden; display: flex; flex-direction: column; }
.dash-sidebar-user { display: flex; flex-direction: row; align-items: center; gap: 0.55rem; padding: 0.4rem 0.85rem 0.55rem; border-bottom: 1px solid var(--border); margin-bottom: 0.3rem; flex-shrink: 0; }
.dash-sidebar-avatar { width: 32px !important; height: 32px !important; font-size: 0.85rem !important; flex-shrink: 0; }
.dash-sidebar-name { color: var(--white); font-family: var(--rbz-font-display); font-weight: 700; font-size: 0.8rem; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-sidebar-nav { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: none; }
.dash-sidebar-nav::-webkit-scrollbar { width: 0; height: 0; }
.dash-sidebar-label { font-family: var(--rbz-font-body); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text3); padding: 0.45rem 1rem 0.2rem; }
.dash-sidebar-link { display: flex; align-items: center; gap: 0.5rem; padding: 0.3rem 1rem; font-family: var(--rbz-font-body); font-size: 0.8rem; font-weight: 600; color: var(--text2); text-decoration: none; transition: color 0.15s, background 0.15s, border-color 0.15s; cursor: pointer; border-left: 3px solid transparent; line-height: 1.2; }
.dash-sidebar-link:hover { color: var(--teal); background: rgba(62,207,207,0.04); }
.dash-sidebar-link.active { color: var(--teal); background: rgba(62,207,207,0.07); border-left-color: var(--teal); }
.dash-sidebar-icon { font-size: 0.9rem; width: 1.1rem; text-align: center; flex-shrink: 0; }
.dash-sidebar-logout { color: var(--red); }
.dash-sidebar-logout:hover { color: var(--red); background: rgba(224,85,85,0.06); }
.dash-main { flex: 1; min-width: 0; padding: 2rem 2.5rem; }
.dash-mobile-toggle { display: none; }
.dash-section-title { font-family: var(--rbz-font-display); font-weight: 700; font-size: 1.3rem; color: var(--white); margin: 0 0 1.5rem; padding-left: 0.9rem; position: relative; letter-spacing: -0.01em; }
.dash-section-title::before { content: ""; position: absolute; left: 0; top: 0.15rem; bottom: 0.25rem; width: 3px; background: linear-gradient(180deg, var(--gold), rgba(246,132,31,0.2)); }
.dash-section-subtitle { font-family: var(--rbz-font-display); font-weight: 700; font-size: 1rem; color: var(--gold); margin: 0 0 1rem; letter-spacing: -0.01em; }
.dash-quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 2rem; }
.dash-quick-btn { display: flex; flex-direction: column; align-items: center; gap: 0.5rem; padding: 1.2rem 0.75rem; background: var(--card); border: 1px solid var(--border); border-radius: 4px; text-decoration: none; color: var(--text); font-size: 0.8rem; font-weight: 600; transition: border-color 0.2s, transform 0.2s; text-align: center; }
.dash-quick-btn:hover { border-color: var(--teal); transform: translateY(-2px); color: var(--teal); }
.dash-quick-icon { font-size: 1.5rem; }
.dash-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.75rem; margin-bottom: 2rem; }
.dash-list { display: flex; flex-direction: column; gap: 0.5rem; }
.dash-list-item { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 0.75rem 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 4px; font-size: 0.85rem; color: var(--text); }
.dash-list-main { display: flex; align-items: center; gap: 0.5rem; flex-wrap: wrap; flex: 1; min-width: 0; }
.dash-fav-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1rem; }
.dash-fav-card { display: flex; gap: 1rem; padding: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 4px; transition: background 0.2s; position: relative; }
.dash-fav-card:hover { background: var(--card2); }
.dash-fav-photo { width: 100px; height: 140px; border-radius: 8px; overflow: hidden; flex-shrink: 0; position: relative; border: 1px solid var(--border); background: var(--bg2); }
.dash-fav-photo img { width: 100%; height: 100%; object-fit: cover; }
.dash-fav-photo .lp-default, .dash-fav-photo .lp-hover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }
.dash-fav-photo .lp-hover { opacity: 0; }
.dash-fav-photo:hover .lp-hover { opacity: 1; }
.dash-fav-photo:hover .lp-default { opacity: 0; }
.dash-fav-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.15rem; }
.dash-fav-title { color: var(--white); font-weight: 600; font-size: 0.95rem; }
.dash-fav-title:hover { color: var(--teal); }
.dash-fav-remove { position: absolute; top: 0.6rem; right: 0.7rem; background: none; border: none; color: #e05555; font-size: 1.2rem; cursor: pointer; padding: 0.3rem; line-height: 1; opacity: 0.6; transition: opacity 0.2s; }
.dash-fav-remove:hover { opacity: 1; }
@media (max-width: 640px) { .dash-fav-grid { grid-template-columns: 1fr; } }
.dash-settings { max-width: 480px; }
.dash-settings-divider { border: none; border-top: 1px solid var(--border); margin: 2rem 0; }
/* ── Area Personale Landing (Apple/Stripe style) ── */
.ap-landing { overflow: hidden; }

/* Hero */
.ap-hero { min-height: 85vh; display: flex; align-items: center; justify-content: center; text-align: center; position: relative; padding: 0 2rem; }
.ap-hero-bg { position: absolute; inset: 0; background: radial-gradient(ellipse 60% 50% at 50% 40%, rgba(62,207,207,0.06) 0%, transparent 70%), radial-gradient(ellipse 40% 40% at 80% 60%, rgba(200,164,90,0.05) 0%, transparent 60%); }
.ap-hero-content { position: relative; z-index: 1; max-width: 700px; }
.ap-eyebrow { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--teal); margin-bottom: 1.5rem; }
.ap-title { font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(2.8rem, 6vw, 4.5rem); line-height: 1.05; color: var(--white); margin: 0 0 1.5rem; }
.ap-sub { font-size: 1.15rem; color: var(--text2); line-height: 1.6; max-width: 500px; margin: 0 auto 2.5rem; }
.ap-hero-cta { margin-bottom: 3rem; }
.ap-scroll-hint { font-family: 'Barlow Condensed', sans-serif; font-size: 0.78rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--text3); animation: apBounce 2s ease-in-out infinite; }
@keyframes apBounce { 0%,100%{transform:translateY(0)} 50%{transform:translateY(6px)} }
/* Hero animated gradient title */
.ap-title { background: linear-gradient(135deg, var(--white) 0%, var(--teal) 50%, var(--gold) 100%); background-size: 200% 200%; -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; animation: apGradient 6s ease infinite; }
@keyframes apGradient { 0%{background-position:0% 50%} 50%{background-position:100% 50%} 100%{background-position:0% 50%} }

/* Hero glow orbs */
.ap-hero-bg::before, .ap-hero-bg::after { content:""; position:absolute; border-radius:50%; filter:blur(80px); animation:apOrb 8s ease-in-out infinite; }
.ap-hero-bg::before { width:300px; height:300px; background:rgba(62,207,207,0.12); top:20%; left:15%; }
.ap-hero-bg::after { width:250px; height:250px; background:rgba(200,164,90,0.1); bottom:20%; right:15%; animation-delay:-4s; animation-name:apOrb2; }
@keyframes apOrb { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(30px,-20px) scale(1.1)} 66%{transform:translate(-20px,30px) scale(0.9)} }
@keyframes apOrb2 { 0%,100%{transform:translate(0,0) scale(1)} 33%{transform:translate(-25px,25px) scale(1.15)} 66%{transform:translate(20px,-15px) scale(0.85)} }

/* Reveal */
.ap-reveal { opacity: 0; transform: translateY(40px) scale(0.97); transition: opacity 0.9s cubic-bezier(0.16,1,0.3,1), transform 0.9s cubic-bezier(0.16,1,0.3,1); }
.ap-reveal.ap-visible { opacity: 1; transform: translateY(0) scale(1); }
.ap-d1 { transition-delay: 0.15s; }
.ap-d2 { transition-delay: 0.3s; }
.ap-d3 { transition-delay: 0.45s; }
.ap-d4 { transition-delay: 0.6s; }
.ap-reveal-scroll { opacity: 0; transform: translateY(80px); transition: opacity 1s cubic-bezier(0.16,1,0.3,1), transform 1s cubic-bezier(0.16,1,0.3,1); }
.ap-reveal-scroll.ap-visible { opacity: 1; transform: translateY(0); }

/* Stat number glow pulse */
.ap-stat-num { text-shadow: 0 0 20px rgba(62,207,207,0.3); }

/* Stats */
.ap-section { max-width: 1100px; margin: 0 auto; padding: 5rem 2rem; }
.ap-stats-section { padding: 3rem 2rem; }
.ap-stats { display: flex; justify-content: center; gap: 3.5rem; flex-wrap: wrap; }
.ap-stat { text-align: center; }
.ap-stat-num { font-family: 'Barlow Condensed', sans-serif; font-size: 3rem; font-weight: 700; color: var(--teal); display: block; line-height: 1; }
.ap-stat-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.78rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.12em; margin-top: 0.3rem; }

/* Feature sections */
.ap-feature { display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center; }
.ap-feature-reverse { direction: rtl; }
.ap-feature-reverse > * { direction: ltr; }
.ap-feature-tag { font-family: 'Barlow Condensed', sans-serif; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: var(--teal); margin-bottom: 0.75rem; }
.ap-feature-text h2 { font-family: 'Cinzel', serif; font-weight: 700; font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--white); margin: 0 0 1rem; line-height: 1.15; }
.ap-feature-text p { color: var(--text2); font-size: 1rem; line-height: 1.65; margin: 0 0 1.5rem; }

/* Mock visuals */
.ap-feature-visual { display: flex; flex-direction: column; gap: 0.75rem; }
.ap-mock-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1rem 1.25rem; transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.4s, border-color 0.3s; perspective: 800px; }
.ap-mock-card:hover { transform: translateY(-4px) rotateX(2deg); box-shadow: 0 12px 40px rgba(62,207,207,0.12); border-color: var(--teal); }
.ap-mock-title { color: var(--white); font-weight: 600; font-size: 0.92rem; margin: 0.3rem 0 0.2rem; }
.ap-mock-meta { color: var(--text3); font-size: 0.78rem; }
.ap-mock-progress { margin-bottom: 0.5rem; }
.ap-mock-prog-label { display: flex; justify-content: space-between; font-size: 0.82rem; color: var(--text2); margin-bottom: 0.3rem; }
.ap-mock-prog-label span { color: var(--teal); font-weight: 700; }
.ap-animate-bar { transition: width 1.2s cubic-bezier(0.16,1,0.3,1) 0.3s; }
/* Bracket mock */
.ap-mock-bracket { display: flex; gap: 1.5rem; }
.ap-mock-match { background: var(--card); border: 1px solid var(--border); border-radius: 8px; overflow: hidden; flex: 1; }
.ap-mock-p { padding: 0.6rem 0.8rem; font-size: 0.82rem; color: var(--text); }
.ap-mock-p + .ap-mock-p { border-top: 1px solid var(--border); }
.ap-mock-p.winner { color: var(--gold); font-weight: 600; background: rgba(200,164,90,0.06); }

/* Stagger mock cards */
.ap-visible .ap-mock-card, .ap-visible .ap-mock-progress, .ap-visible .ap-mock-match { opacity: 0; animation: apCardIn 0.6s cubic-bezier(0.16,1,0.3,1) forwards; }
.ap-visible .ap-mock-card:nth-child(1), .ap-visible .ap-mock-match:nth-child(1), .ap-visible .ap-mock-progress:nth-child(1) { animation-delay: 0.2s; }
.ap-visible .ap-mock-card:nth-child(2), .ap-visible .ap-mock-match:nth-child(2), .ap-visible .ap-mock-progress:nth-child(2) { animation-delay: 0.35s; }
.ap-visible .ap-mock-card:nth-child(3), .ap-visible .ap-mock-progress:nth-child(3) { animation-delay: 0.5s; }
@keyframes apCardIn { 0%{opacity:0;transform:translateY(20px) scale(0.95)} 100%{opacity:1;transform:translateY(0) scale(1)} }

/* Feature text highlight on scroll */
.ap-feature-text h2 { transition: color 0.5s; }
.ap-visible .ap-feature-text h2 { background: linear-gradient(90deg, var(--white), var(--teal)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* CTA glow */
.ap-final-cta .btn-gold { animation: apGlow 3s ease-in-out infinite; }
@keyframes apGlow { 0%,100%{box-shadow:0 4px 24px rgba(200,164,90,0.3)} 50%{box-shadow:0 4px 40px rgba(200,164,90,0.6),0 0 60px rgba(200,164,90,0.15)} }

/* Final CTA */
.ap-final-cta { text-align: center; padding: 6rem 2rem; position: relative; }
.ap-final-cta::before { content:""; position:absolute; top:50%; left:50%; transform:translate(-50%,-50%); width:400px; height:400px; background:radial-gradient(circle, rgba(200,164,90,0.08) 0%, transparent 70%); border-radius:50%; pointer-events:none; }
.ap-final-cta h2 { font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(2rem, 5vw, 3.5rem); color: var(--gold); margin: 0 0 0.75rem; }
.ap-final-cta p { color: var(--text2); font-size: 1.1rem; margin-bottom: 2rem; }

@media (max-width: 768px) {
  .ap-feature { grid-template-columns: 1fr; gap: 2rem; }
  .ap-feature-reverse { direction: ltr; }
  .ap-section { padding: 3rem 1.5rem; }
  .ap-stats { gap: 2rem; }
  .ap-stat-num { font-size: 2.2rem; }
  .ap-mock-bracket { flex-direction: column; }
}
/* Dashboard preview (non-logged) */
.dash-preview { max-width: 1000px; margin: 0 auto; padding: 2rem 1rem; }
.dash-preview-header { text-align: center; margin-bottom: 2rem; }
.dash-preview-sub { color: var(--text2); font-size: 0.95rem; margin-top: 0.5rem; }
.dash-layout-preview { border: 1px solid var(--border); border-radius: 14px; overflow: hidden; pointer-events: none; }
.dash-sidebar-preview { pointer-events: none; }
.dash-main-preview { pointer-events: auto; padding: 2rem; }
.dash-preview-cta { display: flex; gap: 1rem; justify-content: center; margin-top: 2rem; pointer-events: auto; }
@media (max-width: 768px) {
  .dash-layout-preview { flex-direction: column; }
  .dash-sidebar-preview { width: 100%; height: auto; position: static; transform: none; max-height: none; border-right: none; border-bottom: 1px solid var(--border); }
  .dash-preview-cta { flex-direction: column; align-items: center; }
}
.dash-sidebar-sep { height: 1px; background: var(--border); margin: 0.25rem 1rem; }
.dash-home-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 0.6rem; margin-bottom: 1.5rem; }
.dash-stat-box { display: block; background: var(--card); border: 1px solid var(--border); border-radius: 4px; padding: 1rem 0.75rem; text-align: center; position: relative; transition: transform 0.15s ease, border-color 0.15s ease; text-decoration: none; color: inherit; }
.dash-stat-box::before { content: ""; position: absolute; top: 0; left: 20%; right: 20%; height: 1px; background: linear-gradient(90deg, transparent, var(--gold), transparent); opacity: 0; transition: opacity 0.2s; }
.dash-stat-box:hover { transform: translateY(-2px); border-color: var(--gold); }
.dash-stat-box:hover::before { opacity: 0.6; }
.dash-stat-val { font-size: 1.5rem; font-weight: 700; color: var(--gold); font-family: var(--rbz-font-display); letter-spacing: -0.01em; }
.dash-stat-lbl { font-size: 0.68rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.5px; margin-top: 0.2rem; }
/* Onboarding steps */
.dash-onboarding { background: var(--card); border: 1px solid var(--border); border-radius: 4px; margin-bottom: 2rem; overflow: hidden; }
.dash-onboarding-header { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 1.2rem; font-family: var(--rbz-font-body); font-weight: 700; font-size: 0.78rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); background: rgba(246,132,31,0.06); border-bottom: 1px solid var(--border); }
.dash-step { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1.2rem; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--text); transition: background 0.15s; }
.dash-step:last-child { border-bottom: none; }
.dash-step:hover { background: rgba(62,207,207,0.03); }
.dash-step-icon { font-size: 1.2rem; flex-shrink: 0; }
.dash-step-text { flex: 1; font-size: 0.88rem; }
.dash-step .btn-sm { flex-shrink: 0; }
/* Empty states */
.dash-empty { text-align: center; padding: 3rem 1.5rem; background: var(--card); border: 1px dashed var(--border2); border-radius: 4px; }
.dash-empty-icon { font-size: 2.5rem; margin-bottom: 0.75rem; opacity: 0.5; }
.dash-empty p { color: var(--text); font-size: 0.95rem; margin: 0 0 0.3rem; }
.dash-empty-hint { color: var(--text3); font-size: 0.82rem; margin-bottom: 1rem !important; }
/* Progress bar */
.dash-progress { height: 8px; background: var(--bg3); border-radius: 4px; overflow: hidden; }
.dash-progress-bar { height: 100%; background: linear-gradient(90deg, var(--teal), var(--gold)); border-radius: 4px; transition: width 0.5s ease; min-width: 2px; }

/* ── Dashboard Hero (v5 brand) ── */
.dash-hero { display: flex; align-items: center; gap: 1.25rem; padding: 1.5rem; background: var(--card); border: 1px solid var(--border); border-radius: 4px; margin-bottom: 1.5rem; position: relative; overflow: hidden; }
.dash-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse 50% 80% at 0% 50%, rgba(246,132,31,0.06), transparent 70%); pointer-events: none; }
.dash-hero-avatar { width: 72px !important; height: 72px !important; font-size: 1.8rem !important; flex-shrink: 0; position: relative; z-index: 1; }
.dash-hero-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0.4rem; position: relative; z-index: 1; }
.dash-hero-title { font-family: var(--rbz-font-display); font-size: 1.6rem; color: var(--white); margin: 0.2rem 0 0; line-height: 1.1; letter-spacing: -0.01em; }
.dash-hero-meta { display: flex; gap: 1rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--text2); margin-top: 0.1rem; }
.dash-hero-stats { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.92rem; color: var(--text2); margin-top: 0.25rem; align-items: baseline; }
.dash-hero-stat { display: inline-flex; align-items: baseline; gap: 0.35rem; }
.dash-hero-stat strong { color: var(--gold); font-family: var(--rbz-font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: -0.01em; }
@media (max-width: 640px) {
  .dash-hero { flex-direction: column; text-align: center; padding: 1.25rem 1rem; }
  .dash-hero-stats, .dash-hero-meta { justify-content: center; }
  .dash-hero-avatar { width: 56px !important; height: 56px !important; font-size: 1.4rem !important; }
  .dash-hero-title { font-size: 1.35rem; }
}

/* Sparkline + clickable stat box */
.dash-spark { color: var(--gold); height: 18px; margin: 0.25rem auto 0.1rem; max-width: 60px; }
.dash-spark-svg { width: 100%; height: 100%; display: block; opacity: 0.75; }
.dash-stat-clickable { cursor: pointer; }
.dash-stat-clickable:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

/* Onboarding progress bar + dismiss button */
.dash-onboarding-bar { height: 4px; background: var(--bg); }
.dash-onboarding-fill { height: 100%; background: var(--gold); transition: width 0.3s ease; }
.dash-onboarding-dismiss { background: none; border: none; color: var(--text3); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 0.25rem; opacity: 0.5; transition: opacity 0.15s, color 0.15s; }
.dash-onboarding-dismiss:hover { opacity: 1; color: var(--text); }

/* ── Dashboard HOME — fixed-viewport console layout ── */
/* Lock body & hide footer/global wrappers so page itself can't scroll */
body.dash-home-active { overflow: hidden; }
body.dash-home-active #rbz-footer { display: none; }
body.dash-home-active #rbz-content { padding-top: var(--nav-h) !important; height: 100vh; overflow: hidden; }
body.dash-home-active .dash-layout { height: calc(100vh - var(--nav-h)); min-height: 0; overflow: hidden; }
body.dash-home-active .dash-main { height: calc(100vh - var(--nav-h)); padding: 1.1rem 1.4rem; overflow: hidden; display: flex; flex-direction: column; min-height: 0; }
body.dash-home-active #dash-mc { flex: 1; min-height: 0; display: flex; }
body.dash-home-active #dash-loading { display: none; }
.dash-home-fixed { flex: 1; min-height: 0; width: 100%; display: flex; flex-direction: column; gap: 0.85rem; }

/* Compact hero inside fixed layout */
.dash-home-fixed .dash-hero { margin-bottom: 0; padding: 0.9rem 1.2rem; gap: 1rem; }
.dash-home-fixed .dash-hero-avatar { width: 56px !important; height: 56px !important; font-size: 1.4rem !important; }
.dash-home-fixed .dash-hero-title { font-size: 1.3rem; margin-top: 0.1rem; }
.dash-home-fixed .dash-hero-meta { font-size: 0.78rem; gap: 0.85rem; }
.dash-home-fixed .dash-hero-stats { font-size: 0.85rem; gap: 1.1rem; margin-top: 0.15rem; }
.dash-home-fixed .dash-hero-body { gap: 0.25rem; }
.dash-home-fixed .rbz6-pill { font-size: 0.62rem; padding: 0.18rem 0.55rem; }

/* Onboarding mini banner */
.dash-onbo-mini { display: flex; align-items: center; gap: 0.7rem; padding: 0.45rem 0.85rem; background: var(--card); border: 1px solid var(--border); border-left: 3px solid var(--gold); border-radius: 4px; font-size: 0.82rem; color: var(--text); }
.dash-onbo-pct { font-family: var(--rbz-font-display); font-size: 0.85rem; color: var(--gold); letter-spacing: -0.01em; flex-shrink: 0; }
.dash-onbo-text { flex: 1; min-width: 0; color: var(--text2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-onbo-text em { color: var(--text3); font-style: normal; font-size: 0.78rem; }
.dash-onbo-step { background: var(--gold); color: var(--bg); border: none; }
.dash-onbo-dismiss { background: none; border: none; color: var(--text3); font-size: 1.2rem; line-height: 1; cursor: pointer; padding: 0 0.2rem; opacity: 0.5; }
.dash-onbo-dismiss:hover { opacity: 1; }

/* Stat strip (compact pills) */
.dash-stat-strip { display: flex; gap: 0.5rem; }
.dash-stat-pill { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 0.45rem; padding: 0.55rem 0.7rem; background: var(--card); border: 1px solid var(--border); border-radius: 4px; text-decoration: none; color: inherit; transition: border-color 0.15s, transform 0.15s; }
.dash-stat-pill:hover { border-color: var(--gold); transform: translateY(-1px); }
.dash-stat-pill[data-section], .dash-stat-pill[href] { cursor: pointer; }
.dash-stat-pill-val { font-family: var(--rbz-font-display); font-size: 1.05rem; color: var(--gold); letter-spacing: -0.01em; line-height: 1; }
.dash-stat-pill-val sup { font-size: 0.6rem; color: var(--text2); margin-left: 0.1rem; vertical-align: super; font-family: var(--rbz-font-body); font-weight: 700; }
.dash-stat-pill-lbl { font-size: 0.68rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.06em; }

/* Widgets grid (fills remaining height) */
.dash-widgets-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.25fr 1fr; gap: 0.85rem; }
.dash-widget { display: flex; flex-direction: column; min-height: 0; background: var(--card); border: 1px solid var(--border); border-radius: 4px; overflow: hidden; }
.dash-widget-head { display: flex; align-items: center; justify-content: space-between; padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--border); background: var(--bg2); flex-shrink: 0; }
.dash-widget-title { font-family: var(--rbz-font-display); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--white); }
.dash-widget-link { font-size: 0.74rem; color: var(--gold); text-decoration: none; cursor: pointer; font-weight: 600; }
.dash-widget-link:hover { text-decoration: underline; }
.dash-widget-body { flex: 1; min-height: 0; overflow-y: auto; }
.dash-widget-body::-webkit-scrollbar { width: 6px; }
.dash-widget-body::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
.dash-widget-empty { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.6rem; padding: 1.5rem; text-align: center; color: var(--text3); font-size: 0.85rem; }

/* Mini listing rows */
.dash-mini-listing { display: flex; align-items: center; gap: 0.65rem; padding: 0.5rem 0.85rem; border-bottom: 1px solid var(--border); cursor: pointer; transition: background 0.12s; }
.dash-mini-listing:last-child { border-bottom: none; }
.dash-mini-listing:hover { background: var(--bg2); }
.dash-mini-listing img { width: 34px; height: 48px; object-fit: cover; border-radius: 3px; flex-shrink: 0; background: var(--bg); }
.dash-mini-listing-noimg { width: 34px; height: 48px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; background: var(--bg2); border-radius: 3px; flex-shrink: 0; opacity: 0.5; }
.dash-mini-listing-body { flex: 1; min-width: 0; }
.dash-mini-listing-title { font-size: 0.84rem; color: var(--white); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dash-mini-listing-meta { font-size: 0.72rem; color: var(--text3); margin-top: 0.12rem; display: flex; align-items: center; gap: 0.3rem; flex-wrap: wrap; }
.dash-mini-listing-meta .badge { font-size: 0.62rem; padding: 0.08rem 0.35rem; }

/* Mini feedback rows */
.dash-mini-fb { padding: 0.55rem 0.85rem; border-bottom: 1px solid var(--border); }
.dash-mini-fb:last-child { border-bottom: none; }
.dash-mini-fb-head { display: flex; align-items: center; gap: 0.5rem; font-size: 0.75rem; }
.dash-mini-fb-stars { color: var(--gold); letter-spacing: 0.05em; font-size: 0.85rem; }
.dash-mini-fb-stars-empty { color: var(--border); }
.dash-mini-fb-author { color: var(--white); font-weight: 600; }
.dash-mini-fb-date { color: var(--text3); margin-left: auto; font-size: 0.7rem; }
.dash-mini-fb-text { font-size: 0.8rem; color: var(--text2); margin-top: 0.2rem; line-height: 1.45; }

/* Mobile fallback: revert to scrollable layout */
@media (max-width: 768px) {
  body.dash-home-active { overflow: visible; }
  body.dash-home-active #rbz-footer { display: block; }
  body.dash-home-active #rbz-content { height: auto; overflow: visible; }
  body.dash-home-active .dash-layout { height: auto; min-height: calc(100vh - var(--nav-h)); overflow: visible; }
  body.dash-home-active .dash-main { height: auto; overflow: visible; padding: 1rem; }
  .dash-widgets-grid { grid-template-columns: 1fr; grid-auto-rows: minmax(220px, auto); }
  .dash-stat-strip { flex-wrap: wrap; }
  .dash-stat-pill { flex: 1 1 calc(33% - 0.4rem); }
  .dash-onbo-text { white-space: normal; }
  .dash-home-fixed .dash-hero { flex-direction: row; padding: 0.85rem 1rem; }
  .dash-home-fixed .dash-hero-stats { font-size: 0.78rem; gap: 0.7rem; }
}

/* ── RESPONSIVE — new features ── */
@media (max-width: 768px) {
  .guide-page, .collezione-page, .tornei-page { padding: 0 0.75rem; }
  .feature-actions { flex-direction: column; align-items: stretch; gap: 0.75rem; }
  .feature-actions-right { flex-wrap: wrap; }
  .search-input-sm { max-width: 100%; }
  .nav-more-dropdown { left: auto; right: 0; transform: none; }
  .notif-dropdown { right: -3rem; width: calc(100vw - 2rem); max-width: 320px; }
  .bracket-container { gap: 1rem; }
  .bracket-round { min-width: 180px; }
  .classifiche-table th, .classifiche-table td { padding: 0.6rem 0.5rem; font-size: 0.75rem; }
}
@media (max-width: 640px) {
  .guide-grid, .tornei-grid { grid-template-columns: 1fr; }
  .collezione-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
  .profilo-header { flex-direction: column; text-align: center; }
  .profilo-info-sub { justify-content: center; }
  .collezione-summary { grid-template-columns: repeat(3, 1fr); }
}
/* Dashboard sidebar responsive — breakpoint mobile drawer fino a 1024px (tablet incluso) */
@media (max-width: 1024px) {
  .dash-layout { flex-direction: column; }
  .dash-sidebar { width: 100%; height: auto; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 150; transform: translateX(-100%); transition: transform 0.25s ease; border-right: none; border-bottom: 1px solid var(--border); max-height: calc(100vh - var(--nav-h)); }
  .dash-sidebar.open { transform: translateX(0); }
  .dash-main { padding: 1rem; }
  .dash-mobile-toggle { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; margin-bottom: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 4px; color: var(--gold); font-family: var(--rbz-font-body); font-weight: 700; font-size: 0.85rem; cursor: pointer; }
  .dash-quick { grid-template-columns: repeat(2, 1fr); }
  .dash-stats { grid-template-columns: repeat(3, 1fr); }
}

/* Global sidebar mobile — stesso breakpoint per coerenza */
@media (max-width: 1024px) {
  .rbz-has-sidebar { flex-direction: column; }
  .rbz-global-sidebar { width: 100%; height: auto; position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 150; transform: translateX(-100%); transition: transform 0.25s ease; border-right: none; border-bottom: 1px solid var(--border); max-height: calc(100vh - var(--nav-h)); overflow-y: auto; }
  .rbz-global-sidebar.open { transform: translateX(0); }
  .rbz-sidebar-toggle { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; margin: 1rem; background: var(--card); border: 1px solid var(--border); border-radius: 8px; color: var(--teal); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
}
@media (min-width: 1025px) {
  .rbz-sidebar-toggle { display: none; }
}
.sidebar-backdrop { display: none; position: fixed; inset: 0; top: var(--nav-h); background: rgba(0,0,0,0.5); z-index: 149; }
.sidebar-backdrop.active { display: block; }

/* US-020: iOS Safari smooth scroll + prevent horizontal overflow nelle sidebar mobile */
@media (max-width: 768px) {
  .rbz-global-sidebar, .dash-sidebar { -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
  body, html { overflow-x: hidden; max-width: 100%; }
}

/* ── MOBILE TYPOGRAPHY — bump base font del 6% per leggibilità su 320-640px ── */
@media (max-width: 640px) {
  html { font-size: 17px; }
  .form-label { font-size: 0.8rem; }
  .form-char-count, .ac-version { font-size: 0.8rem; }
  .torneo-format { font-size: 0.78rem; letter-spacing: 0.08em; }
  .cookie-btns button { font-size: 0.85rem; }
  .rbz6-meta-scene-title-prefix { font-size: 0.8rem; }
}

/* ── MOBILE TOUCH TARGETS — Apple HIG: min 44×44 (38+ accettabile con padding generoso) ── */
@media (pointer: coarse), (max-width: 768px) {
  .badge { padding: 0.4rem 0.7rem; font-size: 0.7rem; min-height: 24px; display: inline-flex; align-items: center; }
  .torneo-status { padding: 0.35rem 0.7rem; min-height: 28px; display: inline-flex; align-items: center; }
  .listing-fav { padding: 0.55rem 0.7rem; min-height: 40px; }
  .listing-lang { padding: 0.25rem 0.5rem; min-height: 22px; display: inline-flex; align-items: center; }
  .listing-fav-icon { font-size: 1.25rem; }
  .listing-foil-badge { padding: 5px 10px; font-size: 0.72rem; }
  .listing-foil-tag { padding: 0.2rem 0.6rem; font-size: 0.75rem; min-height: 22px; display: inline-flex; align-items: center; }
  .btn-sm { padding: 0.65rem 1.2rem; font-size: 0.8rem; min-height: 38px; }
  .fb-actions .btn-sm, .fb-profile-close { min-height: 36px; padding: 0.5rem 1rem; }
  .photo-remove { width: 32px; height: 32px; padding: 6px; }
  .info-label { font-size: 0.78rem; }
  .info-value { font-size: 0.95rem; }
}

/* ── Messages / Chat ── */
.msg-layout { display: flex; gap: 0; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; height: calc(100vh - var(--nav-h) - 10rem); min-height: 400px; }
.msg-conv-list { width: 300px; flex-shrink: 0; border-right: 1px solid var(--border); overflow-y: auto; background: var(--bg2); }
.msg-conv-item { display: flex; align-items: center; gap: 0.75rem; padding: 0.85rem 1rem; cursor: pointer; transition: background 0.15s; border-bottom: 1px solid var(--border); position: relative; }
.msg-conv-item:hover, .msg-conv-item.active { background: var(--card); }
.msg-conv-item.msg-unread { background: rgba(62,207,207,0.06); }
.msg-unread-badge { position: absolute; top: 0.5rem; right: 0.5rem; background: var(--teal); color: var(--bg); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.7rem; width: 18px; height: 18px; border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.msg-chat { flex: 1; display: flex; flex-direction: column; background: var(--bg); }
.msg-chat-header { padding: 0.85rem 1rem; border-bottom: 1px solid var(--border); background: var(--card); display: flex; align-items: center; }
.msg-messages { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: 0.5rem; }
.msg-bubble { max-width: 75%; padding: 0.6rem 0.9rem; border-radius: 12px; font-size: 0.88rem; line-height: 1.5; }
.msg-mine { align-self: flex-end; background: rgba(62,207,207,0.15); border-bottom-right-radius: 4px; }
.msg-other { align-self: flex-start; background: var(--card); border-bottom-left-radius: 4px; }
.msg-text { color: var(--text); word-break: break-word; }
.msg-time { font-size: 0.68rem; color: var(--text3); margin-top: 0.2rem; text-align: right; }
.msg-input-wrap { display: flex; gap: 0.5rem; align-items: flex-end; padding: 0.75rem 1rem; border-top: 1px solid var(--border); background: var(--card); }
.msg-input-wrap textarea { flex: 1; resize: none; }
@media (max-width: 768px) {
  .msg-layout { flex-direction: column; height: auto; min-height: auto; }
  .msg-conv-list { width: 100%; max-height: 250px; border-right: none; border-bottom: 1px solid var(--border); }
}

/* ── Creator ── */
.creator-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1.25rem; }
.creator-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; padding: 1.5rem; text-align: center; transition: border-color 0.15s; }
.creator-card:hover { border-color: var(--teal); }
.creator-featured { border-color: var(--gold); box-shadow: 0 0 20px rgba(200,164,90,0.1); }
.creator-avatar { width: 80px; height: 80px; border-radius: 50%; object-fit: cover; margin: 0 auto; display: block; }
.creator-links a { text-decoration: none; transition: opacity 0.15s; }
.creator-links a:hover { opacity: 0.8; }

/* ── Negozi ── */
.stores-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(350px, 1fr)); gap: 1.25rem; }
.store-card { background: var(--card); border: 1px solid var(--border); border-radius: 10px; overflow: hidden; transition: border-color 0.15s; }
.store-card:hover { border-color: var(--teal); }
.store-thumb { width: 100%; height: 160px; object-fit: cover; }
.store-body { padding: 1.25rem; }
@media (max-width: 768px) { .stores-grid { grid-template-columns: 1fr; } }

/* ── Deck Builder ── */
.deck-builder-layout { display: flex; gap: 2rem; margin-top: 1.5rem; }
.db-search-panel { flex: 1; min-width: 0; }
.db-deck-panel { width: 320px; flex-shrink: 0; background: var(--card); border: 1px solid var(--border); border-radius: 8px; padding: 1.25rem; align-self: flex-start; position: sticky; top: calc(var(--nav-h) + 1rem); }
.db-card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(95px, 1fr)); gap: 0.5rem; }
.db-card { position: relative; border-radius: 6px; border: 2px solid #333; overflow: hidden; cursor: pointer; transition: transform 0.15s, border-color 0.15s; aspect-ratio: 744/1039; }
.db-card:hover { transform: scale(1.05); z-index: 2; }
.db-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.db-card-qty { position: absolute; top: 4px; right: 4px; background: var(--teal); color: var(--bg); font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.75rem; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; z-index: 2; }
.db-card-controls { position: absolute; left: 0; right: 0; bottom: 0; display: flex; justify-content: space-between; padding: 4px; opacity: 0; transition: opacity 0.12s; pointer-events: none; z-index: 3; }
.db-card:hover .db-card-controls { opacity: 1; pointer-events: auto; }
.db-card-btn { width: 26px; height: 26px; border-radius: 50%; border: none; cursor: pointer; font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 1.1rem; line-height: 1; display: flex; align-items: center; justify-content: center; background: rgba(10,12,20,0.92); color: var(--white); transition: background 0.1s, transform 0.1s; }
.db-card-btn:hover { transform: scale(1.1); }
.db-card-plus:hover { background: var(--green, #4ecb80); color: var(--bg); }
.db-card-minus:hover { background: var(--red); color: var(--white); }
.db-deck-stats { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1rem; }
.db-stat { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.85rem; color: var(--teal); background: rgba(62,207,207,0.08); padding: 0.25rem 0.6rem; border-radius: 4px; }
.db-stat-sm { font-size: 0.75rem; color: var(--text2); background: var(--bg2); }
.db-deck-list { /* scroll demandato a .db-deck-panel — niente max-height qui */ }
.db-deck-group-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 0.75rem 0 0.3rem; }
.db-deck-item { display: flex; align-items: center; gap: 0.4rem; padding: 0.3rem 0.4rem; border-radius: 4px; cursor: pointer; font-size: 0.82rem; transition: background 0.1s; }
.db-deck-item:hover { background: rgba(224,85,85,0.08); }
.db-deck-item-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.db-deck-item-name { flex: 1; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.db-deck-item-qty { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; color: var(--text2); font-size: 0.8rem; }
.db-deck-item-remove { color: var(--text3); font-size: 0.7rem; cursor: pointer; opacity: 0; transition: opacity 0.15s; }
.db-deck-item:hover .db-deck-item-remove { opacity: 1; }
.db-load-item { display: flex; justify-content: space-between; padding: 0.5rem 0.6rem; border-radius: 4px; cursor: pointer; font-size: 0.85rem; color: var(--text); transition: background 0.1s; }
.db-load-item:hover { background: var(--bg2); }
.db-deck-item-energy { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.75rem; color: var(--gold); background: rgba(200,164,90,0.12); width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.db-stats-row { display: flex; gap: 0.4rem; flex-wrap: wrap; align-items: center; margin-bottom: 0.3rem; }
.db-domain-badge { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 12px; letter-spacing: 0.04em; }
.db-energy-curve { display: flex; gap: 2px; align-items: flex-end; height: 70px; padding: 0.25rem 0; }
.db-curve-col { display: flex; flex-direction: column; align-items: center; flex: 1; gap: 2px; }
.db-curve-bar { width: 100%; background: linear-gradient(to top, var(--gold), rgba(200,164,90,0.4)); border-radius: 2px 2px 0 0; min-width: 14px; transition: height 0.2s; }
.db-curve-val { font-family: 'Barlow Condensed', sans-serif; font-size: 0.65rem; color: var(--text2); font-weight: 600; min-height: 12px; }
.db-curve-label { font-family: 'Barlow Condensed', sans-serif; font-size: 0.65rem; color: var(--text3); }

/* ── Deck Viewer ── */
.dv-header h1 { margin-bottom: 0; }
.dv-layout { display: flex; gap: 2rem; }
.dv-list { width: 300px; flex-shrink: 0; }
.dv-gallery { flex: 1; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 0.5rem; align-content: start; }
.dv-group-title { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; font-size: 0.8rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--gold); margin: 1rem 0 0.3rem; }
.dv-group-title:first-child { margin-top: 0; }
.dv-item { display: flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.5rem; border-radius: 4px; font-size: 0.85rem; cursor: default; transition: background 0.1s; }
.dv-item:hover { background: rgba(62,207,207,0.06); }
.dv-item-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.dv-item-name { flex: 1; color: var(--text); }
.dv-item-qty { font-family: 'Barlow Condensed', sans-serif; font-weight: 700; color: var(--text2); }
.dv-gallery-card { border-radius: 6px; border: 2px solid #333; overflow: hidden; transition: transform 0.15s, border-color 0.2s, box-shadow 0.2s; aspect-ratio: 744/1039; }
.dv-gallery-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.dv-gallery-card:hover { transform: scale(1.05); z-index: 2; }
.dv-highlight { border-color: var(--teal) !important; box-shadow: 0 0 12px rgba(62,207,207,0.4); transform: scale(1.03); }

/* ── Deck downloads (Proxy PDF / Image / Embed) ── */
.dv-dl-box { margin-top: 2rem; background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1.25rem 1.25rem; }
.dv-dl-title-row { font-size: 0.7rem; color: var(--text3); text-transform: uppercase; letter-spacing: 0.1em; font-weight: 800; margin-bottom: 0.85rem; }
.dv-dl-grid { display: flex; flex-direction: column; gap: 0.55rem; }
.dv-dl-card { display: flex; align-items: center; gap: 0.85rem; padding: 0.9rem 1rem; background: rgba(255,138,0,0.04); border: 1px solid rgba(255,138,0,0.22); border-left: 3px solid var(--accent, #ff8a00); border-radius: 8px; cursor: pointer; text-decoration: none; color: var(--text); transition: background 0.18s, border-color 0.18s, transform 0.18s; font-family: inherit; font-size: 1rem; text-align: left; width: 100%; }
.dv-dl-card:hover { background: rgba(255,138,0,0.09); border-color: rgba(255,138,0,0.45); transform: translateY(-1px); text-decoration: none; }
.dv-dl-icon { font-size: 1.75rem; line-height: 1; flex-shrink: 0; }
.dv-dl-text { display: flex; flex-direction: column; gap: 0.1rem; min-width: 0; }
.dv-dl-name { font-weight: 700; font-size: 0.95rem; color: var(--white, #fff); }
.dv-dl-sub { font-size: 0.78rem; color: var(--text3); }

.rbz-embed-ov { position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 9999; display: flex; align-items: center; justify-content: center; padding: 1rem; }
.rbz-embed-modal { background: var(--bg, #0f1620); border: 1px solid var(--border); border-radius: 12px; padding: 1.5rem; max-width: 560px; width: 100%; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.rbz-embed-h { font-size: 1.1rem; font-weight: 700; margin: 0 0 0.4rem; color: var(--white, #fff); }
.rbz-embed-p { color: var(--text2); margin: 0 0 0.75rem; font-size: 0.88rem; line-height: 1.5; }
.rbz-embed-ta { width: 100%; min-height: 90px; background: rgba(0,0,0,0.4); border: 1px solid var(--border); border-radius: 6px; padding: 0.65rem; color: var(--text); font-family: ui-monospace, 'SF Mono', Monaco, monospace; font-size: 0.78rem; resize: vertical; margin-bottom: 1rem; }
.rbz-embed-act { display: flex; gap: 0.5rem; flex-wrap: wrap; }

@media (max-width: 768px) {
  .deck-builder-layout { flex-direction: column; }
  .db-deck-panel { width: 100%; position: static; max-height: none; }
  .dv-layout { flex-direction: column; }
  .dv-list { width: 100%; }
  .db-card-grid { grid-template-columns: repeat(auto-fill, minmax(75px, 1fr)); }
}

/* ── Discord Widget ── */
.discord-widget {
  max-width: 360px;
  margin: 2.5rem auto 0;
  background: #1a1a2e;
  border: 1px solid rgba(212,175,55,0.15);
  border-radius: 16px;
  overflow: hidden;
  font-family: inherit;
}
.discord-widget-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 1.2rem;
  background: rgba(88,101,242,0.1);
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}
.discord-widget-stats {
  display: flex;
  gap: 1.2rem;
  padding: 0.6rem 1.2rem;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
}
.dw-online { display: flex; align-items: center; gap: 0.3rem; }
.dw-dot {
  width: 8px; height: 8px;
  background: #57F287;
  border-radius: 50%;
  display: inline-block;
}
.discord-widget-members {
  padding: 0.5rem 1.2rem;
  max-height: 200px;
  overflow-y: auto;
}
.dw-member {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.35rem 0;
}
.dw-avatar {
  width: 28px; height: 28px;
  border-radius: 50%;
  object-fit: cover;
}
.dw-name {
  color: rgba(255,255,255,0.85);
  font-size: 0.85rem;
  flex: 1;
}
.dw-status {
  width: 8px; height: 8px;
  border-radius: 50%;
}
.dw-status-online { background: #57F287; }
.dw-status-idle { background: #FEE75C; }
.dw-status-dnd { background: #ED4245; }
.dw-empty {
  color: rgba(255,255,255,0.35);
  font-size: 0.82rem;
  padding: 0.5rem 0;
  text-align: center;
}
.discord-widget-join {
  display: block;
  text-align: center;
  padding: 0.8rem;
  background: #5865F2;
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: background 0.2s;
}
.discord-widget-join:hover {
  background: #4752C4;
}

/* ============================================================
   ═══════════════════════════════════════════════════════════
   HOME CINEMATIC (v8.4.0-home) — scroll-driven multi-layer
   ═══════════════════════════════════════════════════════════
   Usato da: feature-home.php (is_page(5))
   JS engine: GSAP + ScrollTrigger (CDN)
   ============================================================ */

/* Reset margin sul wrap e body per immersione full-bleed */
.page-id-5 .rbz-home {
  margin: calc(-1 * var(--nav-h, 80px)) 0 0 0 !important;
  padding: 0;
  position: relative;
  overflow-x: hidden;
  color: var(--text);
}
/* Kill page padding + any container margin inherited */
.page-id-5 .entry-content,
.page-id-5 main,
.page-id-5 .site-main,
.page-id-5 article,
.page-id-5 .page-content {
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
}
.page-id-5 body { overflow-x: hidden; }

/* Noise overlay (subtle film grain) */
.rbz-home-noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.05 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* Scene base */
.rbz-scene {
  position: relative;
  width: 100%;
  overflow: hidden;
  isolation: isolate;
}

/* ─────────────────────────────────────────────────────
   SCENE 1 — HERO
   ───────────────────────────────────────────────────── */
.rbz-scene-hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--nav-h, 80px) 1.5rem 2rem;
  background: radial-gradient(ellipse at 50% 100%, #0a0f1e 0%, #05070d 70%);
}

.rbz-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}
.rbz-layer-nebula { z-index: 1; }
.rbz-layer-stars  { z-index: 2; }
.rbz-layer-cards  { z-index: 3; }

/* Nebula blobs */
.rbz-nebula {
  position: absolute;
  width: 60vw;
  height: 60vw;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.45;
  mix-blend-mode: screen;
}
.rbz-nebula--teal   { background: radial-gradient(circle, #3ecfcf 0%, transparent 60%); top: -10%; left: -10%; animation: rbz-nebula-drift 28s ease-in-out infinite; }
.rbz-nebula--gold   { background: radial-gradient(circle, #c8a45a 0%, transparent 60%); bottom: -10%; right: -10%; animation: rbz-nebula-drift 34s ease-in-out infinite reverse; }
.rbz-nebula--purple { background: radial-gradient(circle, #6b4fb0 0%, transparent 65%); top: 30%; right: 20%; width: 40vw; height: 40vw; opacity: 0.35; animation: rbz-nebula-drift 40s ease-in-out infinite; }
@keyframes rbz-nebula-drift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33%      { transform: translate(6vw, 4vh) scale(1.08); }
  66%      { transform: translate(-4vw, 6vh) scale(0.95); }
}

/* Stars — 3 layers with different speeds */
.rbz-stars {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.8), transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 50% 50%, rgba(232,196,122,0.8), transparent),
    radial-gradient(1px 1px at 80% 10%, rgba(94,232,232,0.7), transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(255,255,255,0.5), transparent),
    radial-gradient(1px 1px at 15% 80%, rgba(255,255,255,0.6), transparent),
    radial-gradient(2px 2px at 70% 20%, rgba(232,196,122,0.6), transparent),
    radial-gradient(1px 1px at 35% 45%, rgba(255,255,255,0.7), transparent);
  background-size: 600px 600px;
  background-repeat: repeat;
}
.rbz-stars--1 { opacity: 0.8; animation: rbz-stars-move 120s linear infinite; }
.rbz-stars--2 { opacity: 0.6; background-size: 800px 800px; animation: rbz-stars-move 180s linear infinite reverse; }
.rbz-stars--3 { opacity: 0.4; background-size: 1000px 1000px; animation: rbz-stars-move 240s linear infinite; filter: blur(0.5px); }
@keyframes rbz-stars-move {
  from { background-position: 0 0; }
  to   { background-position: 600px 600px; }
}

/* Floating TCG cards */
.rbz-float-card {
  position: absolute;
  width: 120px;
  height: 168px;
  border-radius: 8px;
  background: linear-gradient(145deg, #1a2540 0%, #0d1320 100%);
  box-shadow:
    inset 0 0 0 1px rgba(200,164,90,0.4),
    inset 0 0 0 4px rgba(10,14,25,0.9),
    inset 0 0 0 5px rgba(62,207,207,0.2),
    0 20px 40px rgba(0,0,0,0.7),
    0 0 30px rgba(62,207,207,0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  transform-style: preserve-3d;
  will-change: transform;
}
.rbz-float-card .rbz-card-face {
  font-family: 'Cinzel', serif;
  font-size: 2.8rem;
  color: var(--gold2);
  text-shadow: 0 0 20px rgba(232,196,122,0.5), 0 2px 4px rgba(0,0,0,0.9);
}
/* Individual card positions + base float animation */
.rbz-float-card--1 { top: 15%; left:  8%; transform: rotate(-12deg) scale(0.85); animation: rbz-card-float 7s ease-in-out infinite; }
.rbz-float-card--2 { top: 60%; left: 12%; transform: rotate( 18deg) scale(0.7);  animation: rbz-card-float 9s ease-in-out infinite -2s; }
.rbz-float-card--3 { top: 20%; right: 10%; transform: rotate( 15deg) scale(0.9); animation: rbz-card-float 6s ease-in-out infinite -1s; }
.rbz-float-card--4 { top: 65%; right: 15%; transform: rotate(-20deg) scale(0.75); animation: rbz-card-float 8s ease-in-out infinite -3s; }
.rbz-float-card--5 { top: 40%; left: 18%; transform: rotate(  5deg) scale(0.65); animation: rbz-card-float 10s ease-in-out infinite -4s; opacity: 0.65; }
.rbz-float-card--6 { top: 50%; right: 22%; transform: rotate(-8deg) scale(0.6);  animation: rbz-card-float 11s ease-in-out infinite -5s; opacity: 0.7; }
@keyframes rbz-card-float {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -20px; }
}

/* Hero content */
.rbz-hero-content {
  position: relative;
  z-index: 10;
  text-align: center;
  max-width: 800px;
  padding: 2rem 1rem;
}
.rbz-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.9rem;
  background: rgba(200,164,90,0.08);
  border: 1px solid rgba(200,164,90,0.3);
  border-radius: 100px;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gold2);
  margin-bottom: 1.75rem;
  backdrop-filter: blur(4px);
}
.rbz-hero-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: rbz-pulse 2s ease-in-out infinite;
}
@keyframes rbz-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: 0.6; transform: scale(1.3); }
}

.rbz-hero-title {
  font-family: 'Cinzel', serif !important;
  font-weight: 900 !important;
  font-size: clamp(3.5rem, 10vw, 7.5rem);
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--white) !important;
  margin: 0 0 1.75rem;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.9),
    0 4px 24px rgba(0,0,0,0.8),
    0 0 40px rgba(62,207,207,0.15);
}
.rbz-hero-title .rbz-word {
  display: block;
  color: var(--white) !important;
}
.rbz-hero-title .rbz-word--accent {
  color: var(--gold2) !important;
  text-shadow:
    0 2px 0 rgba(0,0,0,0.9),
    0 4px 24px rgba(0,0,0,0.8),
    0 0 50px rgba(232,196,122,0.5),
    0 0 80px rgba(200,164,90,0.3);
}

.rbz-hero-sub {
  font-size: clamp(1rem, 2vw, 1.2rem);
  line-height: 1.6;
  color: var(--text);
  max-width: 580px;
  margin: 0 auto 2rem;
  opacity: 0.9;
}

.rbz-hero-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* Shared button system for home */
.rbz-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-decoration: none !important;
  border: 1px solid transparent;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.rbz-btn--gold {
  background: linear-gradient(135deg, var(--gold2), var(--gold));
  color: #0a0c14 !important;
  box-shadow: 0 4px 20px rgba(200,164,90,0.3), inset 0 1px 0 rgba(255,255,255,0.2);
}
.rbz-btn--gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(200,164,90,0.5), inset 0 1px 0 rgba(255,255,255,0.3);
}
.rbz-btn--ghost {
  background: transparent;
  color: var(--text) !important;
  border-color: rgba(255,255,255,0.25);
  backdrop-filter: blur(6px);
}
.rbz-btn--ghost:hover {
  background: rgba(62,207,207,0.08);
  border-color: var(--teal);
  color: var(--teal2) !important;
}
.rbz-btn--sm { padding: 0.65rem 1.2rem; font-size: 0.8rem; }
.rbz-btn--lg { padding: 1rem 2rem; font-size: 1rem; }

.rbz-scroll-hint {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--text3);
  opacity: 0.7;
}
.rbz-scroll-line {
  width: 1px;
  height: 48px;
  background: linear-gradient(to bottom, var(--gold), transparent);
  animation: rbz-scroll-pulse 2s ease-in-out infinite;
}
@keyframes rbz-scroll-pulse {
  0%, 100% { transform: scaleY(0.3); transform-origin: top; opacity: 0.4; }
  50%      { transform: scaleY(1);   transform-origin: top; opacity: 1; }
}


/* ─────────────────────────────────────────────────────
   SCENE 2 — STATS
   ───────────────────────────────────────────────────── */
.rbz-scene-stats {
  min-height: 80vh;
  display: flex;
  align-items: center;
  padding: 8rem 1.5rem;
  background: radial-gradient(ellipse at 50% 50%, rgba(62,207,207,0.04), transparent 60%), var(--bg);
}
.rbz-stats-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.rbz-stats-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 3rem;
}
.rbz-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  margin-bottom: 3rem;
}
.rbz-megastat { text-align: center; }
.rbz-megastat-num {
  font-family: 'Cinzel', serif !important;
  font-weight: 700 !important;
  font-size: clamp(3rem, 7vw, 5.5rem);
  line-height: 1;
  color: var(--white) !important;
  text-shadow: 0 2px 0 rgba(0,0,0,0.6), 0 0 30px rgba(62,207,207,0.15);
}
.rbz-megastat-lbl {
  margin-top: 0.75rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text2);
}
.rbz-stats-caption {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  color: var(--text3);
  font-size: 1rem;
}


/* ─────────────────────────────────────────────────────
   SCENES 3-4 — FEATURE SECTIONS (Mercatino, Tornei)
   ───────────────────────────────────────────────────── */
.rbz-scene-feature {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem;
  position: relative;
}
.rbz-scene-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 30% 50%, rgba(200,164,90,0.04), transparent 70%);
  pointer-events: none;
}
.rbz-feature--reverse::before {
  background: radial-gradient(ellipse 80% 60% at 70% 50%, rgba(62,207,207,0.04), transparent 70%);
}
.rbz-feature-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.rbz-feature--reverse .rbz-feature-inner { direction: rtl; }
.rbz-feature--reverse .rbz-feature-inner > * { direction: ltr; }

.rbz-feature-visual {
  position: relative;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rbz-feature-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.rbz-feature-title {
  font-family: 'Cinzel', serif !important;
  font-weight: 700 !important;
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 1.5rem;
}
.rbz-feature-desc {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text);
  margin-bottom: 1.5rem;
}
.rbz-feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem;
}
.rbz-feature-bullets li {
  padding: 0.6rem 0 0.6rem 1.75rem;
  position: relative;
  color: var(--text);
  font-size: 0.95rem;
  border-bottom: 1px solid var(--border);
}
.rbz-feature-bullets li:last-child { border-bottom: 0; }
.rbz-feature-bullets li::before {
  content: "→";
  position: absolute;
  left: 0;
  color: var(--gold);
  font-weight: 700;
}

/* Showcase card (Mercatino) */
.rbz-showcase-card {
  position: relative;
  width: 320px;
  max-width: 100%;
  perspective: 1200px;
  transform-style: preserve-3d;
}
.rbz-showcase-card-inner {
  background: var(--card);
  border: 1px solid rgba(200,164,90,0.3);
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 80px rgba(0,0,0,0.7),
    0 0 0 1px rgba(62,207,207,0.1),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
  z-index: 2;
}
.rbz-showcase-card-inner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
  opacity: 0.6;
}
.rbz-showcase-card-img {
  height: 280px;
  background: radial-gradient(circle at 30% 20%, #2a3b6b 0%, #0e1426 70%, #050810 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 6rem;
  color: var(--gold2);
  text-shadow: 0 0 40px rgba(232,196,122,0.6);
}
.rbz-showcase-card-body {
  padding: 1.25rem 1.4rem;
}
.rbz-showcase-card-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background: rgba(200,164,90,0.12);
  color: var(--gold2);
  border: 1px solid rgba(200,164,90,0.4);
  border-radius: 3px;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  margin-bottom: 0.6rem;
}
.rbz-showcase-card-title {
  font-family: 'Cinzel', serif;
  font-size: 1.2rem;
  color: var(--white);
  margin-bottom: 0.35rem;
}
.rbz-showcase-card-meta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  color: var(--text2);
  letter-spacing: 0.05em;
  margin-bottom: 0.75rem;
}
.rbz-showcase-card-price {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--gold2);
}
.rbz-showcase-glow {
  position: absolute;
  inset: -20px;
  background: radial-gradient(circle, rgba(62,207,207,0.15) 0%, transparent 60%);
  filter: blur(30px);
  z-index: 1;
  animation: rbz-glow-pulse 4s ease-in-out infinite;
}
@keyframes rbz-glow-pulse {
  0%, 100% { opacity: 0.6; }
  50%      { opacity: 1; }
}

/* Bracket (Tornei) */
.rbz-bracket-svg {
  width: 100%;
  max-width: 480px;
  height: auto;
  filter: drop-shadow(0 8px 30px rgba(62,207,207,0.15));
}
.rbz-bracket-trophy {
  position: absolute;
  right: 5%;
  top: 50%;
  transform: translate(20%, -50%);
  font-size: 3rem;
  filter: drop-shadow(0 0 20px rgba(232,196,122,0.6));
}


/* ─────────────────────────────────────────────────────
   SCENE 5 — COMMUNITY ORBIT
   ───────────────────────────────────────────────────── */
.rbz-scene-community {
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 6rem 1.5rem;
  background: radial-gradient(ellipse at 50% 50%, rgba(107,79,176,0.06), transparent 60%), var(--bg);
  position: relative;
  overflow: hidden;
}
.rbz-community-inner {
  max-width: 900px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
  position: relative;
  z-index: 2;
}
.rbz-community-title {
  font-family: 'Cinzel', serif !important;
  font-weight: 700 !important;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  line-height: 1.1;
  color: var(--white);
  margin: 0 0 1.25rem;
}
.rbz-community-sub {
  font-size: 1.1rem;
  line-height: 1.6;
  color: var(--text);
  max-width: 560px;
  margin: 0 auto 3rem;
}

/* Orbital — 2 rings + real user avatars (siblings, not children of rings) */
.rbz-orbit {
  --orbit-size: min(480px, 88vw);
  --inner-r: calc(var(--orbit-size) * 0.33);
  --outer-r: calc(var(--orbit-size) * 0.46);
  position: relative;
  width: var(--orbit-size);
  height: var(--orbit-size);
  margin: 2rem auto 3rem;
}
.rbz-orbit-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.rbz-orbit-star {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff2c9 0%, var(--gold2) 40%, var(--gold) 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: #3d2c0f;
  box-shadow: 0 0 60px rgba(232,196,122,0.5), inset 0 2px 4px rgba(255,255,255,0.4);
  animation: rbz-pulse 3s ease-in-out infinite;
}
/* Rings = decorative dashed circles, spin slowly */
.rbz-orbit-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  border: 1px dashed rgba(200,164,90,0.25);
  pointer-events: none;
  transform: translate(-50%, -50%);
}
.rbz-orbit-ring--1 {
  width: calc(var(--inner-r) * 2);
  height: calc(var(--inner-r) * 2);
  animation: rbz-orbit-ring-spin 40s linear infinite;
}
.rbz-orbit-ring--2 {
  width: calc(var(--outer-r) * 2);
  height: calc(var(--outer-r) * 2);
  animation: rbz-orbit-ring-spin 60s linear infinite reverse;
}
@keyframes rbz-orbit-ring-spin {
  from { transform: translate(-50%, -50%) rotate(0deg); }
  to   { transform: translate(-50%, -50%) rotate(360deg); }
}
/* Avatars = static positions around the center, not children of rings */
.rbz-orbit-avatar {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3a447a 0%, #1a2040 100%);
  color: var(--gold2);
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 2px rgba(200,164,90,0.5), 0 6px 20px rgba(0,0,0,0.5);
  text-decoration: none !important;
  margin-left: calc(-28px); /* compensate half avatar width */
  margin-top: calc(-28px);
  transform: rotate(var(--a)) translate(var(--r)) rotate(calc(-1 * var(--a)));
  transform-origin: 28px 28px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}
.rbz-orbit-avatar--inner { --r: var(--inner-r); }
.rbz-orbit-avatar--outer { --r: var(--outer-r); }
.rbz-orbit-avatar--sm {
  width: 42px;
  height: 42px;
  font-size: 1.05rem;
  margin-left: -21px;
  margin-top: -21px;
  transform-origin: 21px 21px;
}
a.rbz-orbit-avatar:hover {
  box-shadow: inset 0 0 0 2px var(--gold2), 0 6px 28px rgba(200,164,90,0.4);
  background: linear-gradient(180deg, #4a5490 0%, #2a3050 100%);
  z-index: 2;
}
/* Responsive — orbit smaller on mobile */
@media (max-width: 560px) {
  .rbz-orbit { --orbit-size: min(360px, 85vw); }
  .rbz-orbit-avatar { width: 46px; height: 46px; font-size: 1.05rem; margin-left:-23px; margin-top:-23px; transform-origin: 23px 23px; }
  .rbz-orbit-avatar--sm { width: 36px; height: 36px; font-size: 0.9rem; margin-left:-18px; margin-top:-18px; transform-origin: 18px 18px; }
  .rbz-orbit-star { width: 60px; height: 60px; font-size: 1.9rem; }
}

.rbz-community-cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}


/* ─────────────────────────────────────────────────────
   SCENE 6 — FEATURES GRID
   ───────────────────────────────────────────────────── */
.rbz-scene-features {
  min-height: 90vh;
  padding: 7rem 1.5rem;
  display: flex;
  align-items: center;
  background: var(--bg);
  position: relative;
}
.rbz-scene-features::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,164,90,0.25), transparent);
}
.rbz-features-inner {
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  text-align: center;
}
.rbz-features-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}
.rbz-features-title {
  font-family: 'Cinzel', serif !important;
  font-weight: 700 !important;
  font-size: clamp(2rem, 4.5vw, 3rem);
  color: var(--white);
  margin: 0 0 3rem;
}
.rbz-features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}
.rbz-feat-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 1.75rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  text-decoration: none !important;
  color: inherit !important;
  text-align: left;
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}
.rbz-feat-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(62,207,207,0.5), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.rbz-feat-card:hover {
  transform: translateY(-4px);
  border-color: rgba(62,207,207,0.3);
  background: var(--card2);
  box-shadow: 0 12px 32px rgba(0,0,0,0.4);
}
.rbz-feat-card:hover::before { opacity: 1; }
.rbz-feat-card--featured {
  background: linear-gradient(135deg, rgba(200,164,90,0.08), rgba(62,207,207,0.05));
  border-color: rgba(200,164,90,0.3);
}
.rbz-feat-icon {
  font-size: 2rem;
  line-height: 1;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 0 10px rgba(200,164,90,0.2));
}
.rbz-feat-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.rbz-feat-desc {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
  color: var(--text2);
  line-height: 1.4;
  letter-spacing: 0.02em;
}


/* ─────────────────────────────────────────────────────
   SCENE 7 — CTA FINAL
   ───────────────────────────────────────────────────── */
.rbz-scene-cta {
  min-height: 80vh;
  padding: 8rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  background: radial-gradient(ellipse at 50% 100%, #0a1020 0%, #05070d 80%);
}
.rbz-cta-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 50%, rgba(200,164,90,0.15), transparent 70%),
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(62,207,207,0.08), transparent 60%);
  pointer-events: none;
}
.rbz-cta-inner {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
}
.rbz-cta-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.25rem;
}
.rbz-cta-title {
  font-family: 'Cinzel', serif !important;
  font-weight: 700 !important;
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  line-height: 1.05;
  color: var(--gold2) !important;
  margin: 0 0 1.5rem;
  text-shadow: 0 2px 0 rgba(0,0,0,0.8), 0 0 40px rgba(232,196,122,0.3);
}
.rbz-cta-desc {
  font-size: 1.1rem;
  color: var(--text);
  margin-bottom: 2rem;
  line-height: 1.6;
}
.rbz-cta-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.rbz-cta-social {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.88rem;
  letter-spacing: 0.1em;
  color: var(--text3);
}
.rbz-social-link {
  color: var(--text) !important;
  text-decoration: none !important;
  transition: color 0.2s;
}
.rbz-social-link:hover { color: var(--gold2) !important; }
.rbz-social-sep { margin: 0 0.75rem; color: var(--text3); }


/* ─────────────────────────────────────────────────────
   RESPONSIVE
   ───────────────────────────────────────────────────── */
@media (max-width: 960px) {
  .rbz-feature-inner { grid-template-columns: 1fr; gap: 2.5rem; }
  .rbz-feature--reverse .rbz-feature-inner { direction: ltr; }
  .rbz-features-grid { grid-template-columns: repeat(2, 1fr); }
  .rbz-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 2.5rem; }
  .rbz-float-card { width: 80px; height: 112px; }
  .rbz-float-card .rbz-card-face { font-size: 1.8rem; }
  .rbz-float-card--5, .rbz-float-card--6 { display: none; }
  .rbz-orbit { width: 90vw; height: 90vw; }
}
@media (max-width: 560px) {
  .rbz-scene-feature { padding: 4rem 1rem; }
  .rbz-scene-stats, .rbz-scene-community, .rbz-scene-features, .rbz-scene-cta { padding: 4rem 1rem; }
  .rbz-features-grid { grid-template-columns: 1fr; }
  .rbz-hero-cta, .rbz-cta-actions { flex-direction: column; width: 100%; }
  .rbz-btn { width: 100%; }
  .rbz-showcase-card { width: 260px; }
  .rbz-showcase-card-img { height: 220px; font-size: 4rem; }
  .rbz-float-card--4, .rbz-float-card--5, .rbz-float-card--6 { display: none; }
  .rbz-orbit-avatar--sm { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .rbz-nebula, .rbz-stars, .rbz-orbit-ring, .rbz-orbit-avatar, .rbz-scroll-line,
  .rbz-float-card, .rbz-showcase-glow, .rbz-orbit-star, .rbz-hero-badge-dot {
    animation: none !important;
  }
}

/* ============================================================
   HOME v2 — Brightness + new components
   (sovrascrive dove serve i valori v1, aggiunge listings strip,
   next tournament, podium, testimonial, social)
   ============================================================ */

/* BRIGHTNESS — surfaces più chiari */
.rbz-home { --rbz-surface: #222946; --rbz-surface-2: #2a325a; --rbz-surface-hover: #303a66; }

.rbz-scene-stats { background: radial-gradient(ellipse 60% 80% at 50% 40%, rgba(62,207,207,0.06), transparent 65%), linear-gradient(180deg, #0a0e1c 0%, #0d1324 100%); }
.rbz-scene-feature { background: radial-gradient(ellipse 70% 90% at 50% 50%, rgba(200,164,90,0.04), transparent 60%), #0c1020; }
.rbz-scene-community { background: radial-gradient(ellipse 60% 80% at 50% 30%, rgba(107,79,176,0.10), transparent 60%), radial-gradient(ellipse 50% 60% at 80% 80%, rgba(62,207,207,0.05), transparent 60%), #0b1020; }
.rbz-scene-features { background: linear-gradient(180deg, #0d1324 0%, #0a0e1c 100%); }

/* Ambient cross-scene glow bands (soft transition tra scene) */
.rbz-scene + .rbz-scene::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200,164,90,0.15), transparent);
  pointer-events: none;
  z-index: 5;
}

/* Feature cards più chiari + stronger contrast */
.rbz-feat-card {
  background: var(--rbz-surface);
  border-color: var(--border2);
}
.rbz-feat-card:hover {
  background: var(--rbz-surface-hover);
  border-color: rgba(62,207,207,0.45);
}
.rbz-feat-name { color: var(--white); }
.rbz-feat-desc { color: var(--text); }
.rbz-feat-card--featured {
  background: linear-gradient(135deg, rgba(200,164,90,0.15), rgba(62,207,207,0.08)), var(--rbz-surface);
  border-color: rgba(200,164,90,0.5);
}

/* Showcase card più luminosa */
.rbz-showcase-card-inner { background: var(--rbz-surface); }
.rbz-showcase-card-img { background: radial-gradient(circle at 30% 20%, #3a4c82 0%, #1a2540 60%, #0e1426 100%); }

/* Typo più bianca */
.rbz-hero-sub { color: var(--white); opacity: 0.92; }
.rbz-feature-desc { color: var(--white); opacity: 0.9; }
.rbz-community-sub { color: var(--white); opacity: 0.85; }
.rbz-cta-desc { color: var(--white); opacity: 0.92; }

/* ─────────────────────────────────────────────────────
   LISTINGS STRIP (Scene 3.5)
   ───────────────────────────────────────────────────── */
.rbz-scene-listings {
  padding: 4rem 1.5rem 6rem;
  background: linear-gradient(180deg, #0c1020 0%, #0b1020 100%);
  position: relative;
}
.rbz-listings-inner { max-width: 1200px; margin: 0 auto; }
.rbz-listings-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
  gap: 1rem;
}
.rbz-listings-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.rbz-listings-kicker::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: rbz-pulse 2s ease-in-out infinite;
}
.rbz-listings-title {
  font-family: 'Cinzel', serif !important;
  font-weight: 700 !important;
  font-size: clamp(1.6rem, 3.2vw, 2.2rem);
  color: var(--white);
  margin: 0;
}
.rbz-listings-strip {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 1rem;
}
.rbz-listings-skel {
  aspect-ratio: 0.75;
  background: linear-gradient(90deg, var(--rbz-surface) 0%, var(--rbz-surface-2) 50%, var(--rbz-surface) 100%);
  background-size: 200% 100%;
  border-radius: 8px;
  animation: rbz-shimmer 1.5s ease-in-out infinite;
}
@keyframes rbz-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
.rbz-listing-mini {
  display: flex;
  flex-direction: column;
  background: var(--rbz-surface);
  border: 1px solid var(--border2);
  border-radius: 8px;
  overflow: hidden;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.25s ease;
  position: relative;
}
.rbz-listing-mini:hover {
  transform: translateY(-4px);
  border-color: rgba(62,207,207,0.4);
  background: var(--rbz-surface-hover);
  box-shadow: 0 10px 28px rgba(0,0,0,0.5);
}
.rbz-listing-mini-img {
  aspect-ratio: 1;
  background: radial-gradient(circle, #2a3b6b, #0e1426);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.rbz-listing-mini-img img { width: 100%; height: 100%; object-fit: cover; }
.rbz-listing-mini-ph { font-size: 2.5rem; color: var(--gold2); opacity: 0.6; }
.rbz-listing-mini-body { padding: 0.7rem 0.8rem 0.9rem; display: flex; flex-direction: column; gap: 0.2rem; }
.rbz-listing-mini-badge {
  align-self: flex-start;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--gold2);
  background: rgba(200,164,90,0.1);
  border: 1px solid rgba(200,164,90,0.3);
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  margin-bottom: 0.3rem;
}
.rbz-listing-mini-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--white);
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.rbz-listing-mini-price {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--gold2);
  margin-top: 0.2rem;
}
.rbz-listing-mini-user {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  color: var(--text2);
  margin-top: 0.25rem;
  letter-spacing: 0.03em;
}
.rbz-listings-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text);
  background: var(--rbz-surface);
  border: 1px dashed var(--border2);
  border-radius: 8px;
}
.rbz-listings-empty a { color: var(--teal2); }

/* ─────────────────────────────────────────────────────
   NEXT TOURNAMENT CARD (inside Tornei scene)
   ───────────────────────────────────────────────────── */
.rbz-next-tourney {
  display: block;
  margin: 1.25rem 0;
  padding: 1.1rem 1.4rem;
  background: linear-gradient(135deg, rgba(62,207,207,0.12), rgba(200,164,90,0.06)), var(--rbz-surface);
  border: 1px solid rgba(62,207,207,0.4);
  border-radius: 10px;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.25s;
  position: relative;
  overflow: hidden;
}
.rbz-next-tourney::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold));
}
.rbz-next-tourney:hover {
  transform: translateY(-2px);
  border-color: rgba(62,207,207,0.7);
  box-shadow: 0 10px 28px rgba(62,207,207,0.18);
}
.rbz-next-tourney-label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 0.5rem;
}
.rbz-next-tourney-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--teal);
  box-shadow: 0 0 10px var(--teal);
  animation: rbz-pulse 2s ease-in-out infinite;
}
.rbz-next-tourney-title {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--white);
  margin-bottom: 0.4rem;
  line-height: 1.2;
}
.rbz-next-tourney-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.9rem;
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  color: var(--text);
  letter-spacing: 0.04em;
}

/* ─────────────────────────────────────────────────────
   PODIUM top 3 (inside Community scene)
   ───────────────────────────────────────────────────── */
.rbz-podium {
  margin: 3rem auto 2rem;
  max-width: 800px;
  text-align: center;
}
.rbz-podium-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.5rem;
}
.rbz-podium-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  align-items: end;
}
.rbz-podium-slot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1.5rem 1rem;
  background: var(--rbz-surface);
  border: 1px solid var(--border2);
  border-radius: 10px;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.25s ease;
  position: relative;
}
.rbz-podium-slot:hover { transform: translateY(-4px); box-shadow: 0 12px 30px rgba(0,0,0,0.5); }
.rbz-podium-slot--first  { order: 2; padding-top: 2rem; border-color: rgba(232,196,122,0.6); background: linear-gradient(180deg, rgba(232,196,122,0.12), transparent 70%), var(--rbz-surface); }
.rbz-podium-slot--second { order: 1; border-color: rgba(168,180,192,0.5); background: linear-gradient(180deg, rgba(168,180,192,0.08), transparent 70%), var(--rbz-surface); }
.rbz-podium-slot--third  { order: 3; border-color: rgba(200,144,96,0.5); background: linear-gradient(180deg, rgba(200,144,96,0.08), transparent 70%), var(--rbz-surface); }
.rbz-podium-medal { font-size: 2rem; line-height: 1; filter: drop-shadow(0 0 12px rgba(232,196,122,0.4)); }
.rbz-podium-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3a447a 0%, #1a2040 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.6rem;
  color: var(--gold2);
  box-shadow: inset 0 0 0 2px rgba(200,164,90,0.55), 0 0 20px rgba(62,207,207,0.15);
}
.rbz-podium-slot--first .rbz-podium-avatar { width: 72px; height: 72px; font-size: 1.8rem; box-shadow: inset 0 0 0 2px rgba(232,196,122,0.8), 0 0 25px rgba(232,196,122,0.3); }
.rbz-podium-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--white);
}
.rbz-podium-city {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.72rem;
  color: var(--text2);
  letter-spacing: 0.06em;
}
.rbz-podium-score {
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--gold2);
  letter-spacing: 0.1em;
  margin-top: 0.3rem;
}

/* ─────────────────────────────────────────────────────
   TESTIMONIAL (inside Community scene)
   ───────────────────────────────────────────────────── */
.rbz-testimonial {
  margin: 2.5rem auto 2.5rem;
  max-width: 640px;
  padding: 2rem 2.25rem;
  background: linear-gradient(180deg, rgba(200,164,90,0.05), transparent 60%), var(--rbz-surface);
  border: 1px solid var(--border2);
  border-left: 3px solid var(--gold);
  border-radius: 10px;
  text-align: left;
}
.rbz-testimonial-stars {
  font-size: 1.1rem;
  color: var(--gold2);
  letter-spacing: 0.08em;
  margin-bottom: 0.75rem;
}
.rbz-testimonial-stars .rbz-star-dim { color: var(--text3); }
.rbz-testimonial-quote {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 1.2rem;
  line-height: 1.55;
  color: var(--white);
  margin: 0 0 1.25rem;
}
.rbz-testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.rbz-testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, #3a447a 0%, #1a2040 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--gold2);
  box-shadow: inset 0 0 0 1.5px rgba(200,164,90,0.5);
  flex-shrink: 0;
}
.rbz-testimonial-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--white);
}
.rbz-testimonial-meta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  color: var(--text2);
  letter-spacing: 0.03em;
  margin-top: 0.1rem;
}

/* ─────────────────────────────────────────────────────
   SOCIAL BAR (Scene 5.5)
   ───────────────────────────────────────────────────── */
.rbz-scene-social {
  padding: 6rem 1.5rem;
  background: radial-gradient(ellipse 60% 80% at 50% 0%, rgba(62,207,207,0.06), transparent 60%), radial-gradient(ellipse 40% 60% at 50% 100%, rgba(200,164,90,0.05), transparent 60%), #0b1020;
  text-align: center;
}
.rbz-social-inner { max-width: 1100px; margin: 0 auto; }
.rbz-social-kicker {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--teal);
  margin-bottom: 1rem;
}
.rbz-social-title {
  font-family: 'Cinzel', serif !important;
  font-weight: 700 !important;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--white);
  margin: 0 0 3rem;
}
.rbz-social-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.rbz-social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 2rem 1.5rem;
  background: var(--rbz-surface);
  border: 1px solid var(--border2);
  border-radius: 12px;
  text-decoration: none !important;
  color: inherit !important;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}
.rbz-social-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, var(--social-accent, rgba(255,255,255,0.1)), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s;
}
.rbz-social-card:hover { transform: translateY(-6px); border-color: var(--social-accent-border, rgba(255,255,255,0.3)); box-shadow: 0 14px 36px rgba(0,0,0,0.5); }
.rbz-social-card:hover::before { opacity: 1; }
.rbz-social-card--discord   { --social-accent: rgba(88,101,242,0.2); --social-accent-border: rgba(88,101,242,0.6); }
.rbz-social-card--whatsapp  { --social-accent: rgba(37,211,102,0.18); --social-accent-border: rgba(37,211,102,0.6); }
.rbz-social-card--instagram { --social-accent: rgba(228,64,95,0.18); --social-accent-border: rgba(228,64,95,0.6); }
.rbz-social-card > * { position: relative; z-index: 1; }
.rbz-social-icon {
  width: 56px;
  height: 56px;
  margin-bottom: 0.75rem;
}
.rbz-social-icon svg { width: 100%; height: 100%; }
.rbz-social-card--discord   .rbz-social-icon { color: #5865f2; }
.rbz-social-card--whatsapp  .rbz-social-icon { color: #25d366; }
.rbz-social-card--instagram .rbz-social-icon { color: #e4405f; }
.rbz-social-name {
  font-family: 'Cinzel', serif;
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--white);
  letter-spacing: 0.02em;
}
.rbz-social-desc {
  font-size: 0.92rem;
  color: var(--text);
  line-height: 1.5;
  max-width: 260px;
  margin-bottom: 0.5rem;
}
.rbz-social-cta {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Responsive for new components */
@media (max-width: 960px) {
  .rbz-listings-strip { grid-template-columns: repeat(3, 1fr); }
  .rbz-social-grid { grid-template-columns: 1fr; }
  .rbz-podium-grid { grid-template-columns: 1fr; }
  .rbz-podium-slot--first, .rbz-podium-slot--second, .rbz-podium-slot--third { order: unset; padding-top: 1.5rem; }
}
@media (max-width: 560px) {
  .rbz-listings-strip { grid-template-columns: repeat(2, 1fr); }
  .rbz-testimonial { padding: 1.5rem 1.25rem; }
  .rbz-testimonial-quote { font-size: 1rem; }
}


/* ─── DISCORD LINK (dashboard settings) ─── */
.discord-link-box { padding: 1.2rem 1.25rem; background: var(--card2); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 1rem; }
.discord-linked { display: flex; align-items: center; gap: 1rem; }
.discord-linked-icon { width: 36px; height: 36px; border-radius: 50%; background: var(--green); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.2rem; flex-shrink: 0; }
.discord-linked-body { flex: 1; min-width: 0; }
.discord-linked-title { font-family: 'Cinzel', serif; font-weight: 700; color: var(--white); font-size: 0.95rem; }
.discord-linked-sub { font-family: 'Barlow Condensed', sans-serif; font-size: 0.82rem; color: var(--text2); margin-top: 0.15rem; letter-spacing: 0.04em; }
.discord-code-wrap { text-align: center; }
.discord-code-cmd { display: inline-block; margin: 0.75rem auto; padding: 0.9rem 1.4rem; background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%); color: #fff; font-family: 'Monaco', 'Menlo', monospace; font-size: 1rem; letter-spacing: 0.03em; border-radius: 6px; box-shadow: 0 4px 16px rgba(88,101,242,0.3); }
.discord-code-cmd strong { color: #fff24a; font-family: 'Cinzel', serif; font-size: 1.15rem; letter-spacing: 0.1em; margin-left: 0.3rem; }
.discord-code-expire { font-family: 'Barlow Condensed', sans-serif; font-size: 0.8rem; color: var(--text3); letter-spacing: 0.08em; text-transform: uppercase; margin: 0.3rem 0 0.75rem; }


.btn-discord-oauth {
  display: inline-flex; align-items: center; gap: 0.2rem;
  padding: 0.65rem 1.2rem;
  background: linear-gradient(135deg, #5865f2 0%, #4752c4 100%);
  color: #fff !important;
  font-family: 'Barlow Condensed', sans-serif;
  font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.08em; text-transform: uppercase;
  text-decoration: none !important;
  border-radius: 6px; cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 16px rgba(88,101,242,0.3);
}
.btn-discord-oauth:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, #6d78f5 0%, #5865f2 100%);
  box-shadow: 0 6px 22px rgba(88,101,242,0.5);
}
.discord-manual-hint { font-size: 0.8rem; color: var(--text3); margin-top: 0.75rem; letter-spacing: 0.03em; }
.discord-manual-hint a { color: var(--teal); text-decoration: none; }
.discord-manual-hint a:hover { text-decoration: underline; }


/* ── Discord signup button on /accedi/ ── */
.auth-discord-quick { margin-bottom: 1.5rem; }
.auth-divider { display: flex; align-items: center; gap: 0.75rem; color: var(--text3); font-family: "Barlow Condensed", sans-serif; font-size: 0.78rem; letter-spacing: 0.18em; text-transform: uppercase; margin: 0.5rem 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* ── Nickname forced modal ── */
.rbz-nick-overlay {
  position: fixed; inset: 0; z-index: 10000;
  background: rgba(5,7,12,0.92);
  backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.5rem;
}
.rbz-nick-modal {
  background: var(--card);
  border: 1px solid rgba(200,164,90,0.35);
  border-radius: 14px;
  padding: 2rem 2rem 1.75rem;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 18px 50px rgba(0,0,0,0.6), inset 0 0 0 1px rgba(62,207,207,0.06);
  position: relative;
}
.rbz-nick-modal::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--teal), var(--gold)); opacity: 0.6;
  border-radius: 14px 14px 0 0;
}
.rbz-nick-modal h2 { font-family: "Cinzel", serif; font-weight: 700; color: var(--gold2); font-size: 1.2rem; margin: 0 0 0.75rem; }
.rbz-nick-modal p { color: var(--text); font-size: 0.95rem; line-height: 1.55; margin: 0 0 1rem; }
.rbz-nick-modal p strong { color: var(--white); }


/* Dashboard Discord feature list */
.dash-feature-list { list-style: none; padding: 0; margin: 0 0 1rem; }
.dash-feature-list li { padding: 0.55rem 0 0.55rem 1.4rem; position: relative; color: var(--text); font-size: 0.92rem; border-bottom: 1px solid var(--border); }
.dash-feature-list li:last-child { border-bottom: 0; }
.dash-feature-list li::before { content: '→'; position: absolute; left: 0; color: var(--teal); font-weight: 700; }
.dash-feature-list strong { color: var(--white); }


/* ── Deck builder — tournament banner ── */
.db-tournament-banner {
  background: linear-gradient(135deg, rgba(200,164,90,0.12), rgba(62,207,207,0.06)), var(--card);
  border: 1px solid rgba(200,164,90,0.45);
  border-radius: 12px;
  padding: 1.1rem 1.4rem 1.2rem;
  margin-bottom: 1.5rem;
  position: relative;
  overflow: hidden;
}
.db-tournament-banner::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--teal));
  opacity: 0.7;
}
.db-tbanner-head { display: flex; align-items: center; gap: 1rem; }
.db-tbanner-icon { font-size: 2rem; line-height: 1; filter: drop-shadow(0 0 12px rgba(232,196,122,0.4)); }
.db-tbanner-kicker {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.22em; text-transform: uppercase; color: var(--gold);
}
.db-tbanner-title {
  font-family: 'Cinzel', serif; font-weight: 700; font-size: 1.3rem; color: var(--white);
  margin-top: 0.15rem;
}
.db-tbanner-meta {
  font-family: 'Barlow Condensed', sans-serif; font-size: 0.82rem; color: var(--text2);
  letter-spacing: 0.06em; margin-top: 0.15rem;
}
.db-tbanner-desc {
  font-size: 0.92rem; color: var(--text); line-height: 1.55;
  margin: 0.9rem 0 0.5rem;
}
.db-tstatus {
  margin-top: 0.6rem; padding: 0.7rem 1rem;
  border-radius: 6px; font-size: 0.92rem;
  border: 1px solid var(--border2);
  background: rgba(255,255,255,0.02);
}
.db-tstatus strong { color: var(--white); }
.db-tstatus--pending  { border-left: 3px solid var(--teal);   background: rgba(62,207,207,0.08); }
.db-tstatus--approved { border-left: 3px solid var(--green);  background: rgba(78,203,128,0.08); }
.db-tstatus--rejected { border-left: 3px solid var(--red);    background: rgba(224,85,85,0.08); }
.db-tstatus--warn     { border-left: 3px solid var(--gold);   background: rgba(200,164,90,0.08); }

/* Quick submit deck esistente nel banner torneo */
.db-quick-submit {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px dashed rgba(200,164,90,0.3);
}
.db-quick-submit-label {
  font-family: 'Barlow Condensed', sans-serif;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 0.55rem;
}
.db-quick-submit-row {
  display: flex;
  gap: 0.6rem;
  align-items: stretch;
  flex-wrap: wrap;
}
.db-quick-submit-row select { flex: 1; min-width: 200px; }
.db-quick-submit-row button { flex-shrink: 0; }

/* Live polling indicator (torneo detail): puntino pulsante */
@keyframes rbzPulse {
  0%, 100% { opacity: 1; transform: scale(1); box-shadow: 0 0 0 0 rgba(20,184,166,0.55); }
  50%      { opacity: 0.55; transform: scale(1.25); box-shadow: 0 0 0 4px rgba(20,184,166,0); }
}

/* ── MOBILE PERFORMANCE: riduci blur ombre + rispetta reduced-motion ── */
@media (max-width: 768px) {
  /* Riduci box-shadow blur (rendering cost alto su mobile) */
  .btn-gold, .coll-album, .notif-dropdown, .ap-mock-card { box-shadow: 0 4px 14px rgba(0,0,0,0.25); }
  .listing-foil-badge { box-shadow: 0 2px 6px rgba(168, 85, 247, 0.35); }
}

/* Accessibility: utenti che preferiscono meno animazioni */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
