/* ==========================================================================
   DragonMC — app.css
   Tema: drago, brace, vetro scuro. Tutto vanilla, zero dipendenze.
   ========================================================================== */

@font-face {
  font-family: 'Outfit';
  src: url('/assets/fonts/outfit.woff2') format('woff2');
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: 'Chakra';
  src: url('/assets/fonts/chakra.woff2') format('woff2');
  font-weight: 400 700;
  font-display: swap;
}

:root {
  --bg: #07080b;
  --bg-2: #0b0e14;
  --bg-3: #0f131b;
  --ink: #f4efe7;
  --ink-dim: #cfc8be;
  --muted: #939cab;
  --line: rgba(255, 255, 255, .09);
  --line-strong: rgba(255, 255, 255, .16);
  --card: rgba(255, 255, 255, .035);
  --card-2: rgba(255, 255, 255, .06);
  --ember: #ff6a00;
  --flame: #ff2d1f;
  --gold: #ffb62e;
  --plasma: #b26bff;
  --ice: #44d7ff;
  --lime: #7cf24a;
  --ok: #3ddc84;
  --danger: #ff3b5c;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 24px 60px -24px rgba(0, 0, 0, .9);
  --glow: 0 0 0 1px rgba(255, 122, 26, .28), 0 18px 50px -18px rgba(255, 106, 0, .55);
  --grad-fire: linear-gradient(135deg, #ffb62e 0%, #ff7a1a 38%, #ff2d1f 100%);
  --grad-ink: linear-gradient(180deg, #fff 10%, #ffd9b3 55%, #ff8a3d 100%);
  --ease: cubic-bezier(.16, .84, .34, 1);
  --container: 1240px;
  --font: 'Outfit', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-mono: 'Chakra', ui-monospace, 'SF Mono', monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
::selection { background: rgba(255, 106, 0, .32); color: #fff; }

h1, h2, h3, h4 { margin: 0 0 .4em; line-height: 1.08; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.4vw, 4.6rem); }
h2 { font-size: clamp(1.9rem, 3.4vw, 2.9rem); }
h3 { font-size: 1.22rem; }
p { margin: 0 0 1em; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.mono { font-family: var(--font-mono); letter-spacing: .04em; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.tiny { font-size: .76rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ember); color: #140800; padding: 10px 16px; border-radius: 10px; font-weight: 700;
}
.skip:focus { top: 12px; }

/* ---------- Sfondo ---------- */
.bggrid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .028) 1px, transparent 1px);
  background-size: 84px 84px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 78%);
}
.orb {
  position: fixed; border-radius: 50%; filter: blur(90px); pointer-events: none; z-index: 0;
  opacity: .55; animation: orbFloat 22s ease-in-out infinite;
}
.orb-1 { width: 620px; height: 620px; left: -180px; top: -220px; background: radial-gradient(circle, rgba(255, 93, 0, .55), transparent 65%); }
.orb-2 { width: 520px; height: 520px; right: -160px; top: 160px; background: radial-gradient(circle, rgba(178, 107, 255, .35), transparent 65%); animation-delay: -7s; }
.orb-3 { width: 700px; height: 700px; left: 35%; bottom: -520px; background: radial-gradient(circle, rgba(255, 182, 46, .26), transparent 65%); animation-delay: -13s; }
@keyframes orbFloat {
  0%, 100% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(30px, 40px, 0) scale(1.08); }
}
#embers { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .7; }

main, .site-header, .topstrip, .site-footer { position: relative; z-index: 2; }

/* ---------- Top strip ---------- */
.topstrip {
  background: linear-gradient(90deg, rgba(255, 106, 0, .12), rgba(255, 45, 31, .06) 45%, transparent);
  border-bottom: 1px solid var(--line);
  font-size: .78rem;
}
.topstrip-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 38px; }
.topstrip-live { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-dim); letter-spacing: .02em; }
.topstrip-links { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-size: .75rem; }
.topstrip-links a:hover { color: var(--gold); }
.topstrip .sep { opacity: .35; }

.pulse-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(61, 220, 132, .7); animation: pulse 2.4s infinite;
  display: inline-block; flex: none;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61, 220, 132, .55); }
  70% { box-shadow: 0 0 0 9px rgba(61, 220, 132, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61, 220, 132, 0); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(7, 8, 11, .62);
  border-bottom: 1px solid transparent;
  transition: background .3s, border-color .3s, box-shadow .3s;
}
.site-header.is-stuck { background: rgba(7, 8, 11, .9); border-bottom-color: var(--line); box-shadow: 0 18px 40px -30px #000; }
.header-inner { display: flex; align-items: center; gap: 26px; min-height: 74px; }

.brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.brand-mark {
  position: relative; width: 46px; height: 46px; display: grid; place-items: center;
  filter: drop-shadow(0 0 14px rgba(255, 106, 0, .55));
}
.brand-mark::after {
  content: ''; position: absolute; inset: -8px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 106, 0, .3), transparent 68%);
  animation: brandPulse 4s ease-in-out infinite; z-index: -1;
}
@keyframes brandPulse { 0%, 100% { opacity: .5; transform: scale(.92); } 50% { opacity: 1; transform: scale(1.08); } }
.brand-mark img { width: 46px; height: 46px; object-fit: contain; animation: brandFloat 6s ease-in-out infinite; }
@keyframes brandFloat { 0%, 100% { transform: translateY(0) rotate(-1deg); } 50% { transform: translateY(-3px) rotate(1deg); } }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-size: 1.22rem; letter-spacing: .12em; font-weight: 900; }
.brand-text strong span { color: var(--ember); }
.brand-text em { font-style: normal; font-size: .58rem; letter-spacing: .24em; color: var(--muted); text-transform: uppercase; margin-top: 5px; }

.main-nav { display: flex; align-items: center; gap: 4px; margin-right: auto; }
.nav-link {
  position: relative; padding: 9px 14px; border-radius: 10px; font-size: .9rem; font-weight: 600;
  color: var(--ink-dim); transition: color .2s, background .2s;
}
.nav-link:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.nav-link.is-active { color: #fff; }
.nav-link.is-active::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px;
  background: var(--grad-fire); border-radius: 2px; box-shadow: 0 0 12px rgba(255, 106, 0, .8);
}

.header-actions { display: flex; align-items: center; gap: 10px; }
.nav-search {
  display: flex; align-items: center; gap: 8px; padding: 0 12px; height: 38px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, .035);
  color: var(--muted); transition: border-color .2s, box-shadow .2s, width .25s var(--ease); width: 190px;
}
.nav-search:focus-within { border-color: rgba(255, 122, 26, .6); box-shadow: 0 0 0 4px rgba(255, 106, 0, .1); color: var(--ink); }
.nav-search input { border: 0; background: none; outline: none; color: var(--ink); font-family: inherit; font-size: .84rem; width: 100%; }
.nav-search input::placeholder { color: var(--muted); }

.online-pill {
  display: inline-flex; align-items: center; gap: 7px; height: 38px; padding: 0 13px;
  border: 1px solid rgba(61, 220, 132, .28); background: rgba(61, 220, 132, .08);
  border-radius: 999px; font-size: .8rem; color: #d8ffe9; transition: .2s;
}
.online-pill b { font-family: var(--font-mono); font-size: .86rem; }
.online-label { color: rgba(216, 255, 233, .6); }
.online-pill:hover { background: rgba(61, 220, 132, .14); box-shadow: 0 0 22px -6px rgba(61, 220, 132, .5); }

.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 13px 24px; border: 0; border-radius: 12px; font-weight: 700; font-size: .94rem;
  cursor: pointer; transition: transform .2s var(--ease), box-shadow .25s, background .2s, color .2s;
  overflow: hidden; white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-sm { padding: 9px 16px; font-size: .85rem; border-radius: 10px; }
.btn-xs { padding: 6px 11px; font-size: .74rem; border-radius: 8px; }
.btn-lg { padding: 17px 32px; font-size: 1.03rem; border-radius: 14px; }
.btn-primary {
  background: var(--grad-fire); color: #1a0700;
  box-shadow: 0 12px 30px -12px rgba(255, 90, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 42px -14px rgba(255, 90, 0, .95), inset 0 1px 0 rgba(255, 255, 255, .45); }
.btn-primary::after {
  content: ''; position: absolute; top: -60%; left: -30%; width: 34%; height: 220%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent);
  transform: rotate(18deg); animation: shine 5.2s ease-in-out infinite;
}
@keyframes shine { 0%, 62% { left: -40%; } 86%, 100% { left: 130%; } }
.btn-ghost { background: rgba(255, 255, 255, .05); border: 1px solid var(--line-strong); color: var(--ink); }
.btn-ghost:hover { background: rgba(255, 255, 255, .09); border-color: rgba(255, 182, 46, .45); }
.btn-discord { background: #5865f2; color: #fff; box-shadow: 0 12px 30px -14px rgba(88, 101, 242, .9); }
.btn-discord:hover { background: #4752c4; transform: translateY(-2px); }
.btn-danger { background: rgba(255, 59, 92, .14); border: 1px solid rgba(255, 59, 92, .4); color: #ff9fb2; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }

.user-menu { position: relative; }
.user-btn {
  display: flex; align-items: center; gap: 9px; padding: 4px 10px 4px 4px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 999px;
  color: var(--ink); cursor: pointer; transition: .2s;
}
.user-btn:hover { border-color: rgba(255, 122, 26, .45); background: rgba(255, 255, 255, .08); }
.user-btn-name { font-size: .85rem; font-weight: 600; max-width: 110px; overflow: hidden; text-overflow: ellipsis; }
.user-drop {
  position: absolute; right: 0; top: calc(100% + 12px); width: 244px; padding: 8px;
  background: linear-gradient(180deg, #151a22, #0d1117);
  border: 1px solid rgba(255, 182, 46, .22); border-radius: 16px;
  box-shadow: 0 24px 60px -22px rgba(0, 0, 0, .9), 0 0 0 1px rgba(255, 255, 255, .03) inset;
  display: none; flex-direction: column; gap: 2px; z-index: 120;
  backdrop-filter: blur(14px);
}
.user-drop::before {
  content: ''; position: absolute; top: -6px; right: 26px; width: 10px; height: 10px;
  background: #151a22; border-left: 1px solid rgba(255, 182, 46, .22); border-top: 1px solid rgba(255, 182, 46, .22);
  transform: rotate(45deg);
}
.user-drop.open { display: flex; animation: dropIn .18s var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateY(-6px); } }
.user-drop-head { display: flex; gap: 11px; align-items: center; padding: 8px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.user-drop-head strong { display: block; font-size: .93rem; }
.user-drop a { padding: 9px 11px; border-radius: 9px; font-size: .86rem; color: var(--ink-dim); }
.user-drop a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.user-drop a.danger { color: #ff8ea1; }

.avatar {
  --size: 40px; width: var(--size); height: var(--size); border-radius: 50%; flex: none;
  display: inline-grid; place-items: center; font-size: calc(var(--size) * .38); font-weight: 800;
  color: #120800; background: linear-gradient(150deg, var(--av), color-mix(in srgb, var(--av) 45%, #000));
  border: 1px solid rgba(255, 255, 255, .22); letter-spacing: -.02em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 12px -6px var(--av);
}

.burger { display: none; width: 40px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 4px; }
.burger span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: .25s; }
.burger.open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.scroll-progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 0;
  background: var(--grad-fire); box-shadow: 0 0 12px rgba(255, 106, 0, .9); transition: width .1s linear;
}

/* ---------- Rank badge ---------- */
.rank-badge {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 7px;
  border-radius: 999px; font-size: .7rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  border: 1px solid currentColor; background: color-mix(in srgb, currentColor 12%, transparent);
  vertical-align: middle;
}
.rank-badge.rank-sm { font-size: .62rem; padding: 2px 7px 2px 6px; }
.rank-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; box-shadow: 0 0 8px currentColor; }
.rank-user { color: #a9b3c2; }
.rank-staff { color: var(--ice); }
.rank-admin { color: var(--gold); }
.rank-founder { color: #ff5a3c; }

/* ---------- Utility layout ---------- */
.section { padding: 68px 0; position: relative; }
.section-tight { padding: 42px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 40px; flex-wrap: wrap; }
.section-head h2 { margin: 0; }
.section-head p { margin: 8px 0 0; max-width: 620px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-mono); font-size: .72rem;
  letter-spacing: .22em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px;
}
.eyebrow::before { content: ''; width: 22px; height: 1px; background: currentColor; box-shadow: 0 0 10px currentColor; }
.grad-text { background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fire-text { background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; color: transparent; }
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; position: relative; overflow: hidden;
}
.card-hover { transition: transform .3s var(--ease), border-color .3s, background .3s, box-shadow .3s; }
.card-hover:hover { transform: translateY(-4px); border-color: rgba(255, 122, 26, .35); background: var(--card-2); box-shadow: var(--shadow); }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.chip {
  display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font-size: .75rem; font-weight: 600; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .04);
  color: var(--ink-dim);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip-live { color: #9effc4; border-color: rgba(61, 220, 132, .35); background: rgba(61, 220, 132, .08); }
.chip-soon { color: #ffd88a; border-color: rgba(255, 182, 46, .35); background: rgba(255, 182, 46, .08); }
.mini-tag { font-size: .58rem; font-family: var(--font-mono); color: var(--gold); border: 1px solid rgba(255, 182, 46, .3); padding: 1px 5px; border-radius: 4px; margin-left: 6px; text-transform: uppercase; }

.flash-wrap { padding-top: 18px; display: grid; gap: 8px; }
.flash { padding: 12px 16px; border-radius: 12px; border: 1px solid var(--line-strong); background: rgba(255, 255, 255, .05); font-size: .9rem; }
.flash-success { border-color: rgba(61, 220, 132, .4); background: rgba(61, 220, 132, .1); color: #c6ffdd; }
.flash-error { border-color: rgba(255, 59, 92, .45); background: rgba(255, 59, 92, .1); color: #ffc2cd; }
.flash-info { border-color: rgba(68, 215, 255, .35); background: rgba(68, 215, 255, .08); color: #c4f2ff; }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 64px 0 40px; overflow: hidden; }
.hero::before {
  content: ''; position: absolute; inset: -10% -20% auto; height: 720px; z-index: -1;
  background: radial-gradient(ellipse 50% 55% at 62% 38%, rgba(255, 106, 0, .22), transparent 62%),
              radial-gradient(ellipse 40% 40% at 20% 20%, rgba(178, 107, 255, .14), transparent 65%);
  animation: heroGlow 12s ease-in-out infinite alternate;
}
@keyframes heroGlow { from { opacity: .7; transform: scale(1); } to { opacity: 1; transform: scale(1.06); } }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px;
  background: rgba(255, 255, 255, .05); border: 1px solid var(--line); font-size: .78rem; color: var(--ink-dim);
  margin-bottom: 22px;
}
.hero-badge .tag {
  background: var(--grad-fire); color: #1a0700; font-weight: 800; font-size: .66rem; letter-spacing: .12em;
  padding: 4px 9px; border-radius: 999px; text-transform: uppercase;
}
.hero h1 { margin-bottom: 18px; }
.hero h1 .line { display: block; }
.hero h1 .line-2 { font-size: .52em; letter-spacing: .28em; color: var(--ink-dim); font-weight: 600; margin-top: 10px; }
.hero-lead { font-size: 1.08rem; color: var(--ink-dim); max-width: 540px; margin-bottom: 28px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 34px; }
.hero-stats { display: flex; gap: 30px; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--font-mono); font-size: 1.6rem; line-height: 1; color: #fff; }
.hero-stat b em { font-style: normal; color: var(--ember); }
.hero-stat span { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }

.hero-visual { position: relative; display: grid; place-items: center; min-height: 480px; }
.dragon-core { position: relative; width: min(430px, 84vw); aspect-ratio: 1; display: grid; place-items: center; }
.dragon-halo {
  position: absolute; inset: -8%; border-radius: 50%;
  background: conic-gradient(from 0deg, rgba(255, 106, 0, .0), rgba(255, 106, 0, .55), rgba(255, 182, 46, .15), rgba(255, 45, 31, .55), rgba(255, 106, 0, 0));
  filter: blur(26px); animation: spin 14s linear infinite;
}
.dragon-ring {
  position: absolute; inset: 2%; border-radius: 50%; border: 1px dashed rgba(255, 182, 46, .35);
  animation: spin 34s linear infinite reverse;
}
.dragon-ring::before, .dragon-ring::after {
  content: ''; position: absolute; width: 7px; height: 7px; border-radius: 50%; background: var(--gold);
  box-shadow: 0 0 14px var(--gold); top: -3px; left: 50%;
}
.dragon-ring::after { top: auto; bottom: -3px; left: 30%; background: var(--flame); box-shadow: 0 0 14px var(--flame); }
@keyframes spin { to { transform: rotate(360deg); } }
.dragon-logo {
  position: relative; width: 78%; height: auto; aspect-ratio: 1 / 1; object-fit: contain;
  filter: drop-shadow(0 22px 40px rgba(0, 0, 0, .65)) drop-shadow(0 0 40px rgba(255, 106, 0, .35));
  animation: dragonFloat 7s ease-in-out infinite;
}
@keyframes dragonFloat {
  0%, 100% { transform: translateY(-8px) rotate(-1.2deg) scale(1); }
  50% { transform: translateY(10px) rotate(1.2deg) scale(1.015); }
}
.hero-float {
  position: absolute; padding: 10px 14px; border-radius: 13px; background: rgba(12, 15, 21, .82);
  border: 1px solid var(--line); backdrop-filter: blur(10px); box-shadow: var(--shadow);
  font-size: .76rem; display: flex; align-items: center; gap: 9px; z-index: 2;
  animation: floatCard 6s ease-in-out infinite;
}
.hero-float b { font-family: var(--font-mono); font-size: .88rem; }
.hero-float small { display: block; color: var(--muted); font-size: .64rem; letter-spacing: .1em; text-transform: uppercase; }
.hf-1 { top: 10%; left: -6%; animation-delay: -1s; }
.hf-2 { bottom: 16%; right: -8%; animation-delay: -3s; }
.hf-3 { bottom: 4%; left: 2%; animation-delay: -5s; }
@keyframes floatCard { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-11px); } }
.hero-float .spark { color: var(--gold); }

/* ---------- IP / status strip ---------- */
.ipbar {
  display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  margin-top: 18px;
}
.ipbar > div { background: #0a0d13; padding: 18px 22px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ipbar-value { overflow-wrap: anywhere; }
.ipbar .ip-main > div { min-width: 0; flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 3px; }
.ipbar .ip-main .ipbar-value { font-size: .95rem; word-break: break-word; display: flex; flex-direction: column; gap: 2px; }
.ipbar .ip-main .ipbar-value .small { font-size: .72rem; letter-spacing: .02em; }
.ipbar .ip-main { flex-wrap: wrap; }
.ipbar .ip-main .btn { flex: none; }
.ipbar .ip-main { flex-direction: row; align-items: center; justify-content: space-between; gap: 14px; background: linear-gradient(120deg, rgba(255, 106, 0, .12), #0a0d13 65%); }
.ipbar-label { font-size: .66rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.ipbar-value { font-family: var(--font-mono); font-size: 1.02rem; color: #fff; }
.ipbar-value b { color: var(--ember); }

/* ---------- Modalità ---------- */
.modes-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.mode-card {
  --accent: var(--ember);
  position: relative; display: flex; flex-direction: column; gap: 14px; padding: 24px;
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(170deg, color-mix(in srgb, var(--accent) 9%, #0b0e14), #0a0d13 62%);
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.mode-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--accent) 55%, transparent), transparent 45%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; opacity: .6; transition: opacity .3s;
  pointer-events: none;
}
.mode-card::after {
  content: ''; position: absolute; right: -40px; top: -50px; width: 180px; height: 180px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 42%, transparent), transparent 68%);
  filter: blur(14px); opacity: .55; transition: opacity .35s, transform .45s;
}
.mode-card:hover { transform: translateY(-6px); border-color: color-mix(in srgb, var(--accent) 45%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--accent) 60%, #000); }
.mode-card:hover::after { opacity: 1; transform: scale(1.15); }
.mode-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.mode-icon {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--accent) 16%, rgba(255, 255, 255, .03));
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  box-shadow: inset 0 0 22px -8px var(--accent), 0 8px 20px -14px var(--accent);
}
.mode-icon svg { width: 26px; height: 26px; }
.mode-card.is-soon { filter: saturate(.82); }
.mode-card.is-soon .mode-icon { opacity: .85; }
.mode-name { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.mode-name h3 { margin: 0; font-size: 1.32rem; letter-spacing: -.01em; }
.mode-sub { color: var(--muted); font-size: .86rem; margin: 0; }
.mode-desc { font-size: .88rem; color: var(--ink-dim); margin: 0; flex: 1; }

.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-family: var(--font-mono); font-size: .62rem; letter-spacing: .14em; text-transform: uppercase; }
.status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; box-shadow: 0 0 9px currentColor; }
.status-live { color: #7dffb4; background: rgba(61, 220, 132, .12); border: 1px solid rgba(61, 220, 132, .3); }
.status-live i { animation: pulse 2s infinite; }
.status-soon { color: #ffd27a; background: rgba(255, 182, 46, .1); border: 1px solid rgba(255, 182, 46, .3); }
.status-beta { color: #9ae8ff; background: rgba(68, 215, 255, .1); border: 1px solid rgba(68, 215, 255, .3); }
.status-offline { color: #98a2b3; background: rgba(152, 162, 179, .1); border: 1px solid rgba(152, 162, 179, .25); }

.mode-bar { height: 6px; border-radius: 999px; background: rgba(255, 255, 255, .07); overflow: hidden; margin-top: auto; }
.mode-bar span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 65%, #fff 10%), var(--accent)); box-shadow: 0 0 14px var(--accent); transition: width 1s var(--ease); }
.mode-meta { display: flex; justify-content: space-between; align-items: center; font-size: .74rem; color: var(--muted); font-family: var(--font-mono); }
.mode-meta-single { justify-content: flex-start; }
.mode-meta b { color: #fff; }
.mode-foot { display: flex; gap: 10px; align-items: center; margin-top: 2px; flex-wrap: wrap; }
.mode-foot .btn { flex: 1; min-width: 120px; }
.mode-link { font-size: .8rem; color: var(--accent); font-weight: 600; white-space: nowrap; }

/* ---------- Feature bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.bento-item { padding: 26px; border-radius: var(--radius); background: var(--card); border: 1px solid var(--line); position: relative; overflow: hidden; }
.bento-item h3 { font-size: 1.1rem; margin-bottom: 8px; }
.bento-item p { margin: 0; font-size: .88rem; color: var(--muted); }
.bento-item .bi-ico {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(255, 106, 0, .1); border: 1px solid rgba(255, 106, 0, .28); color: var(--gold);
}
.bento-item .bi-ico svg { width: 22px; height: 22px; }
.b1 { grid-column: span 3; }
.b2 { grid-column: span 3; }
.b3 { grid-column: span 2; }
.b4 { grid-column: span 2; }
.b5 { grid-column: span 2; }
.bento-item.big { background: linear-gradient(150deg, rgba(255, 106, 0, .14), rgba(178, 107, 255, .08) 60%, var(--card)); }
.bento-item.big::after {
  content: ''; position: absolute; right: -60px; bottom: -80px; width: 220px; height: 220px;
  background: radial-gradient(circle, rgba(255, 106, 0, .35), transparent 66%); filter: blur(20px);
}

/* ---------- Classifica / tabelle ---------- */
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 28px; align-items: end; }
.podium-card {
  position: relative; text-align: center; padding: 26px 18px 22px; border-radius: var(--radius);
  border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015));
  overflow: hidden; transition: transform .3s var(--ease);
}
.podium-card:hover { transform: translateY(-5px); }
.podium-1 { border-color: rgba(255, 182, 46, .5); box-shadow: 0 30px 70px -40px rgba(255, 182, 46, .9), inset 0 0 40px -20px rgba(255, 182, 46, .5); padding-top: 36px; padding-bottom: 32px; }
.podium-1::before {
  content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 0%, rgba(255, 182, 46, .22), transparent 62%);
}
.podium-rank { position: absolute; top: 12px; right: 14px; font-family: var(--font-mono); font-size: .72rem; color: var(--muted); }
.podium-medal { font-size: 1.6rem; line-height: 1; margin-bottom: 10px; }
.podium-card .avatar { margin: 0 auto 10px; }
.podium-name { font-weight: 700; font-size: 1rem; }
.podium-elo { font-family: var(--font-mono); font-size: 1.5rem; color: #fff; line-height: 1.2; }
.podium-elo small { display: block; font-size: .6rem; letter-spacing: .18em; color: var(--muted); }
.podium-wl { font-size: .72rem; color: var(--muted); margin-top: 6px; }

.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255, 255, 255, .022); }
table.data { width: 100%; border-collapse: collapse; font-size: .9rem; min-width: 620px; }
table.data.compact { min-width: 0; }
table.data.compact th, table.data.compact td { padding-left: 12px; padding-right: 12px; }
table.data th {
  text-align: left; font-family: var(--font-mono); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted); padding: 14px 18px; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .025);
  white-space: nowrap;
}
table.data td { padding: 13px 18px; border-bottom: 1px solid rgba(255, 255, 255, .05); vertical-align: middle; }
table.data tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background .2s; }
table.data tbody tr:hover { background: rgba(255, 255, 255, .04); }
table.data .r { text-align: right; }
table.data .c { text-align: center; }
.td-player { display: flex; align-items: center; gap: 11px; font-weight: 600; }
.td-player small { display: block; color: var(--muted); font-weight: 400; font-size: .72rem; }
.pos { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; font-family: var(--font-mono); font-size: .78rem; background: rgba(255, 255, 255, .06); color: var(--ink-dim); }
.pos-1 { background: rgba(255, 182, 46, .18); color: var(--gold); }
.pos-2 { background: rgba(201, 212, 226, .14); color: #dbe4ef; }
.pos-3 { background: rgba(201, 139, 90, .18); color: #e6a878; }
.elo-num { font-family: var(--font-mono); font-weight: 700; color: #fff; }
.delta-up { color: var(--ok); }
.delta-down { color: var(--danger); }
.winrate { display: flex; align-items: center; gap: 8px; }
.winrate .wr-bar { width: 56px; height: 5px; border-radius: 999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.winrate .wr-bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #a5ffb0); }

.tabs { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.tabs a, .tabs button {
  padding: 8px 18px; border-radius: 999px; font-size: .84rem; font-weight: 600; color: var(--muted);
  border: 0; background: none; cursor: pointer; transition: .2s; display: inline-flex; align-items: center; gap: 7px;
}
.tabs a:hover, .tabs button:hover { color: #fff; }
.tabs .is-active { background: var(--grad-fire); color: #1a0700; box-shadow: 0 6px 18px -8px rgba(255, 106, 0, .9); }
.tabs .soon-dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: .7; }

/* ---------- Store ---------- */
.store-hero {
  position: relative; border-radius: 26px; overflow: hidden; padding: 54px 48px;
  border: 1px solid rgba(255, 182, 46, .28);
  background:
    radial-gradient(ellipse 60% 90% at 82% 30%, rgba(255, 106, 0, .35), transparent 62%),
    radial-gradient(ellipse 50% 60% at 8% 90%, rgba(178, 107, 255, .22), transparent 65%),
    linear-gradient(140deg, #15100a, #0a0d13 60%);
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center;
}
.store-hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .025) 0 2px, transparent 2px 22px);
}
.store-hero h2 { font-size: clamp(2rem, 3.6vw, 3.2rem); }
.store-hero .store-art { position: relative; display: grid; place-items: center; }
.store-art img { width: min(260px, 60%); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .6)) drop-shadow(0 0 50px rgba(255, 106, 0, .35)); animation: dragonFloat 8s ease-in-out infinite; }
.store-perks { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 22px; }
.store-perk { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--ink-dim); }
.store-perk svg { width: 16px; height: 16px; color: var(--lime); }

.rank-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rank-card {
  position: relative; border-radius: 20px; padding: 26px 22px; border: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, .055), rgba(255, 255, 255, .015));
  display: flex; flex-direction: column; gap: 14px; overflow: hidden;
  transition: transform .35s var(--ease), border-color .3s, box-shadow .35s;
}
.rank-card:hover { transform: translateY(-6px); border-color: var(--rc, var(--gold)); box-shadow: 0 34px 70px -40px var(--rc, var(--gold)); }
.rank-card .rc-top { display: flex; justify-content: space-between; align-items: center; }
.rank-card .rc-badge {
  width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 900;
  background: color-mix(in srgb, var(--rc, var(--gold)) 18%, transparent);
  color: var(--rc, var(--gold)); border: 1px solid color-mix(in srgb, var(--rc, var(--gold)) 40%, transparent);
}
.rank-card h3 { margin: 0; font-size: 1.2rem; }
.rank-card .rc-price { font-family: var(--font-mono); font-size: 1.7rem; color: #fff; }
.rank-card .rc-price small { font-size: .66rem; color: var(--muted); font-family: var(--font); letter-spacing: .1em; text-transform: uppercase; }
.rank-card ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; font-size: .83rem; color: var(--ink-dim); }
.rank-card ul li { display: flex; gap: 8px; align-items: flex-start; }
.rank-card ul li::before { content: '✦'; color: var(--rc, var(--gold)); font-size: .7rem; line-height: 1.8; }
.rank-card.is-featured { border-color: rgba(255, 106, 0, .5); background: linear-gradient(180deg, rgba(255, 106, 0, .16), rgba(255, 255, 255, .015)); }
.rank-card .rc-tag { position: absolute; top: 0; right: 0; background: var(--grad-fire); color: #1a0700; font-size: .62rem; font-weight: 800; letter-spacing: .12em; padding: 5px 12px; border-bottom-left-radius: 10px; }

.pack-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pack {
  display: flex; gap: 16px; padding: 20px; border-radius: 16px; border: 1px solid var(--line);
  background: var(--card); transition: .3s var(--ease); align-items: center;
}
.pack:hover { border-color: rgba(255, 182, 46, .35); background: var(--card-2); transform: translateY(-3px); }
.pack-ico {
  width: 54px; height: 54px; border-radius: 14px; flex: none; display: grid; place-items: center; font-size: 1.5rem;
  background: rgba(255, 182, 46, .1); border: 1px solid rgba(255, 182, 46, .25);
}
.pack-body { flex: 1; min-width: 0; }
.pack-body h4 { margin: 0 0 2px; font-size: .98rem; }
.pack-body p { margin: 0; font-size: .78rem; color: var(--muted); }
.pack-price { font-family: var(--font-mono); color: var(--gold); font-weight: 700; white-space: nowrap; }

.store-note { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; border: 1px dashed rgba(255, 182, 46, .3); background: rgba(255, 182, 46, .04); font-size: .84rem; color: var(--ink-dim); }

/* ---------- Forum ---------- */
.forum-layout { display: grid; grid-template-columns: 1fr 320px; gap: 26px; align-items: start; }
.thread-row {
  display: flex; gap: 16px; padding: 18px 20px; border-bottom: 1px solid var(--line);
  transition: background .2s; align-items: flex-start;
}
.thread-row:last-child { border-bottom: 0; }
.thread-row:hover { background: rgba(255, 255, 255, .035); }
.thread-main { flex: 1; min-width: 0; }
.thread-title { display: flex; gap: 9px; align-items: center; flex-wrap: wrap; font-weight: 700; font-size: .98rem; }
.thread-title:hover { color: var(--gold); }
.thread-excerpt { font-size: .83rem; color: var(--muted); margin: 5px 0 8px; }
.thread-meta { display: flex; gap: 14px; align-items: center; font-size: .74rem; color: var(--muted); flex-wrap: wrap; }
.thread-meta span { display: inline-flex; align-items: center; gap: 5px; }
.thread-replies { text-align: center; min-width: 62px; font-family: var(--font-mono); }
.thread-replies b { display: block; font-size: 1.02rem; color: #fff; }
.thread-replies span { font-size: .6rem; letter-spacing: .14em; color: var(--muted); text-transform: uppercase; }
.pin-ico { color: var(--gold); font-size: .8rem; }
.lock-ico { color: var(--danger); font-size: .8rem; }
.cat-pill { display: inline-flex; padding: 3px 9px; border-radius: 6px; font-size: .66rem; font-family: var(--font-mono); letter-spacing: .08em; text-transform: uppercase; background: rgba(255, 255, 255, .07); color: var(--ink-dim); }
.cat-annunci { background: rgba(255, 59, 92, .14); color: #ff9fb2; }
.cat-pvp { background: rgba(255, 122, 26, .16); color: #ffb98a; }
.cat-supporto { background: rgba(68, 215, 255, .14); color: #9ae8ff; }
.cat-suggerimenti { background: rgba(124, 242, 74, .13); color: #c5ffa8; }
.cat-generale { background: rgba(178, 107, 255, .16); color: #dcc0ff; }

.side-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); padding: 20px; margin-bottom: 18px; }
.side-card h4 { font-size: .72rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; font-family: var(--font-mono); }
.side-stat { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed rgba(255, 255, 255, .07); font-size: .85rem; }
.side-stat:last-child { border-bottom: 0; }
.side-stat b { font-family: var(--font-mono); color: #fff; }

.post { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.post:last-child { border-bottom: 0; }
.post-author { width: 150px; flex: none; text-align: center; }
.post-author .avatar { margin: 0 auto 8px; }
.post-author strong { display: block; font-size: .85rem; }
.post-body { flex: 1; min-width: 0; }
.post-body .post-head { display: flex; justify-content: space-between; gap: 10px; font-size: .72rem; color: var(--muted); margin-bottom: 8px; }
.post-body p { font-size: .92rem; color: var(--ink-dim); }
.post-body p:last-child { margin-bottom: 0; }
.discord-tag { display: inline-flex; align-items: center; gap: 5px; font-size: .64rem; color: #a9b1ff; border: 1px solid rgba(88, 101, 242, .35); padding: 2px 7px; border-radius: 5px; }

.reply-box { margin-top: 20px; }
.field label { display: block; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; font-family: var(--font-mono); }
.field { margin-bottom: 16px; }
.input, .textarea, .select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04); color: var(--ink); font-family: inherit; font-size: .92rem;
  transition: border-color .2s, box-shadow .2s, background .2s; outline: none;
}
.input:focus, .textarea:focus, .select:focus { border-color: rgba(255, 122, 26, .6); box-shadow: 0 0 0 4px rgba(255, 106, 0, .1); background-color: rgba(255, 255, 255, .055); }
.textarea { min-height: 130px; resize: vertical; }
.select {
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  cursor: pointer; padding-right: 42px; line-height: 1.25;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23ffb62e' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; background-size: 14px 14px;
}
.select:hover { border-color: rgba(255, 182, 46, .45); background-color: rgba(255, 255, 255, .06); }
.select:disabled { opacity: .55; cursor: not-allowed; }
.select option, .select optgroup { background: #14100c; color: #f6ede4; }
.select.input-sm { padding: 8px 36px 8px 12px; border-radius: 10px; font-size: .82rem; background-position: right 11px center; background-size: 12px 12px; }
.input-sm { padding: 8px 12px; border-radius: 10px; font-size: .82rem; }
.hint { font-size: .74rem; color: var(--muted); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- Ticket ---------- */
.ticket-list { display: grid; gap: 12px; }
.ticket-item {
  display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--card); transition: .25s var(--ease);
}
.ticket-item:hover { border-color: rgba(255, 182, 46, .32); transform: translateX(3px); }
.ticket-code { font-family: var(--font-mono); font-size: .72rem; color: var(--gold); }
.ticket-subject { font-weight: 700; font-size: .96rem; }
.ticket-sub { font-size: .76rem; color: var(--muted); }
.ticket-status { padding: 4px 10px; border-radius: 999px; font-size: .64rem; font-family: var(--font-mono); letter-spacing: .12em; text-transform: uppercase; }
.ts-open { background: rgba(61, 220, 132, .13); color: #8bffbc; border: 1px solid rgba(61, 220, 132, .3); }
.ts-waiting { background: rgba(255, 182, 46, .12); color: #ffd68a; border: 1px solid rgba(255, 182, 46, .3); }
.ts-closed { background: rgba(152, 162, 179, .12); color: #b6c0cf; border: 1px solid rgba(152, 162, 179, .25); }

.ticket-chat { display: grid; gap: 14px; padding: 8px 0; }
.msg { display: flex; gap: 12px; max-width: 86%; }
.msg-own { margin-left: auto; flex-direction: row-reverse; }
.msg-bubble { padding: 13px 16px; border-radius: 14px; background: rgba(255, 255, 255, .055); border: 1px solid var(--line); font-size: .9rem; }
.msg-own .msg-bubble { background: linear-gradient(150deg, rgba(255, 122, 26, .18), rgba(255, 61, 31, .1)); border-color: rgba(255, 122, 26, .32); }
.msg-bubble .msg-meta { font-size: .68rem; color: var(--muted); margin-bottom: 4px; display: flex; gap: 8px; align-items: center; }
.msg-bubble p { margin: 0; }
.msg-staff .msg-bubble { background: rgba(68, 215, 255, .08); border-color: rgba(68, 215, 255, .25); }
.msg-ds .msg-bubble { background: rgba(88, 101, 242, .13); border-color: rgba(88, 101, 242, .35); }

/* ---------- Account ---------- */
.account-grid { display: grid; grid-template-columns: 340px 1fr; gap: 24px; align-items: start; }
.profile-card { text-align: center; padding: 32px 24px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .015)); position: relative; overflow: hidden; }
.profile-card::before { content: ''; position: absolute; inset: -40% -40% auto; height: 220px; background: radial-gradient(circle, rgba(255, 106, 0, .3), transparent 65%); }
.profile-card .avatar { margin: 0 auto 14px; position: relative; box-shadow: 0 0 0 4px rgba(255, 106, 0, .12), 0 0 40px -10px var(--ember); }
.profile-name { font-size: 1.3rem; font-weight: 800; }
.profile-joined { font-size: .76rem; color: var(--muted); margin-top: 4px; }
.profile-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 22px; }
.profile-stats div { background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 10px; padding: 10px 6px; }
.profile-stats b { display: block; font-family: var(--font-mono); font-size: 1.05rem; }
.profile-stats span { font-size: .6rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

.discord-card { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 20px; border-radius: 16px; border: 1px solid rgba(88, 101, 242, .32); background: linear-gradient(120deg, rgba(88, 101, 242, .14), rgba(88, 101, 242, .03)); }
.discord-logo { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: #5865f2; color: #fff; font-weight: 900; font-size: 1.1rem; box-shadow: 0 12px 26px -12px #5865f2; }
.link-code { font-family: var(--font-mono); font-size: 1.5rem; letter-spacing: .22em; color: #fff; background: rgba(0, 0, 0, .35); border: 1px dashed rgba(255, 255, 255, .25); border-radius: 10px; padding: 10px 16px; display: inline-block; }

/* ---------- Admin ---------- */
.admin-shell { display: grid; grid-template-columns: 230px 1fr; gap: 26px; align-items: start; }
.admin-nav { position: sticky; top: 96px; border: 1px solid var(--line); border-radius: 16px; background: var(--card); padding: 12px; display: grid; gap: 3px; }
.admin-nav a { padding: 10px 13px; border-radius: 9px; font-size: .87rem; color: var(--ink-dim); display: flex; justify-content: space-between; align-items: center; }
.admin-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.admin-nav a.is-active { background: rgba(255, 106, 0, .14); color: #ffc79a; }
.admin-nav .badge { font-family: var(--font-mono); font-size: .66rem; color: var(--muted); }
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat-card { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.stat-card span { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.stat-card b { display: block; font-family: var(--font-mono); font-size: 1.7rem; margin-top: 6px; }
.mode-editor { display: grid; grid-template-columns: 1.4fr .8fr; gap: 10px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.mode-editor:last-child { border-bottom: 0; }
.inline-form { display: inline-flex; gap: 8px; align-items: center; }
.input-sm { padding: 7px 10px; font-size: .82rem; border-radius: 8px; }
.api-key { font-family: var(--font-mono); font-size: .76rem; background: rgba(0, 0, 0, .4); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; word-break: break-all; color: #ffd9a8; }

/* ---------- Auth ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - 74px); }
.auth-side { position: relative; padding: 70px 56px; display: flex; flex-direction: column; justify-content: center; overflow: hidden; border-right: 1px solid var(--line); background: radial-gradient(ellipse 70% 60% at 30% 20%, rgba(255, 106, 0, .2), transparent 65%), #080a0f; }
.auth-side img { width: 190px; filter: drop-shadow(0 16px 40px rgba(255, 106, 0, .35)); margin-bottom: 26px; animation: dragonFloat 8s ease-in-out infinite; }
.auth-side h2 { font-size: 2.4rem; }
.auth-side ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.auth-side li { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--ink-dim); }
.auth-side li svg { width: 18px; height: 18px; color: var(--lime); flex: none; margin-top: 2px; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 50px 24px; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card h1 { font-size: 2.1rem; }
.auth-switch { font-size: .86rem; color: var(--muted); margin-top: 18px; text-align: center; }
.auth-switch a { color: var(--gold); font-weight: 600; }
.founder-note { padding: 12px 14px; border-radius: 10px; border: 1px solid rgba(255, 106, 0, .35); background: rgba(255, 106, 0, .08); font-size: .8rem; color: #ffcfa8; margin-bottom: 18px; display: flex; gap: 10px; }

/* ---------- Player page ---------- */
.player-hero { display: flex; gap: 24px; align-items: center; padding: 32px; border-radius: 22px; border: 1px solid var(--line); background: radial-gradient(ellipse 60% 100% at 0% 0%, rgba(255, 106, 0, .16), transparent 60%), var(--card); margin-bottom: 24px; flex-wrap: wrap; }
.player-hero .avatar { box-shadow: 0 0 0 4px rgba(255, 255, 255, .06), 0 0 50px -14px var(--ember); }
.player-title { font-size: 2rem; font-weight: 800; line-height: 1.1; }
.player-sub { color: var(--muted); font-size: .84rem; }
.big-elo { font-family: var(--font-mono); font-size: 2.6rem; line-height: 1; color: #fff; margin-left: auto; text-align: right; }
.big-elo small { display: block; font-size: .64rem; letter-spacing: .2em; color: var(--muted); margin-top: 6px; font-family: var(--font-mono); }
.tier-badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 999px; font-size: .72rem; font-weight: 700; border: 1px solid currentColor; background: color-mix(in srgb, currentColor 12%, transparent); }

/* ---------- News ---------- */
.news-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 20px; }
.news-main { position: relative; isolation: isolate; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); min-height: 340px; display: flex; flex-direction: column; justify-content: flex-end; padding: 34px; background: linear-gradient(180deg, transparent, #080a0e 78%), radial-gradient(ellipse 80% 80% at 20% 0%, rgba(255, 106, 0, .35), transparent 60%), #10141b; }
.news-main::after { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 26px); pointer-events: none; z-index: -1; }
.news-main > * { position: relative; z-index: 1; }
.news-main .news-watermark {
  position: absolute; right: -26px; top: -18px; width: 215px; opacity: .16; transform: rotate(-7deg);
  z-index: -1; animation: dragonFloat 10s ease-in-out infinite; pointer-events: none;
}
.news-main .news-chip { align-self: flex-start; margin-bottom: 14px; }
.news-main h3 { margin-top: 0; }
.news-main h3 { font-size: 1.9rem; max-width: 640px; }
.news-main p { color: var(--ink-dim); max-width: 620px; }
.news-list { display: grid; gap: 14px; }
.news-item { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: var(--card); transition: .25s var(--ease); }
.news-item:hover { border-color: rgba(255, 182, 46, .3); transform: translateY(-3px); }
.news-item h4 { margin: 8px 0 6px; font-size: 1rem; }
.news-item p { margin: 0; font-size: .82rem; color: var(--muted); }

/* ---------- CTA ---------- */
.cta-band {
  position: relative; border-radius: 26px; padding: 56px 48px; text-align: center; overflow: hidden;
  border: 1px solid rgba(255, 106, 0, .32);
  background: radial-gradient(ellipse 55% 120% at 50% 0%, rgba(255, 106, 0, .32), transparent 62%), #0a0d13;
}
.cta-band::before { content: ''; position: absolute; inset: 0; background-image: repeating-linear-gradient(115deg, rgba(255, 255, 255, .02) 0 2px, transparent 2px 24px); }
.cta-band h2 { font-size: clamp(2rem, 4vw, 3.2rem); position: relative; }
.cta-band p { max-width: 560px; margin: 0 auto 28px; color: var(--ink-dim); position: relative; }
.cta-band .hero-cta { justify-content: center; margin: 0; position: relative; }

/* ---------- Footer ---------- */
.site-footer { position: relative; margin-top: 60px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(255, 255, 255, .018), transparent 40%), #06070a; overflow: hidden; }
.footer-glow { position: absolute; left: 50%; top: -160px; width: 900px; height: 320px; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(255, 106, 0, .18), transparent 65%); filter: blur(30px); pointer-events: none; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 34px; padding: 56px 24px 38px; }
.footer-brand p { margin: 16px 0; max-width: 320px; }
.footer-brand .brand-text em { letter-spacing: .1em; }
.ip-copy { display: inline-flex; align-items: center; gap: 10px; padding: 7px 8px 7px 14px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); margin-bottom: 16px; }
.footer-social { display: flex; gap: 8px; }
.soc { padding: 7px 13px; border-radius: 8px; border: 1px solid var(--line); font-size: .76rem; color: var(--ink-dim); transition: .2s; }
.soc:hover { border-color: var(--ember); color: #fff; background: rgba(255, 106, 0, .1); }
.footer-col { display: flex; flex-direction: column; gap: 9px; }
.footer-col h4 { font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; font-family: var(--font-mono); }
.footer-col a { font-size: .86rem; color: var(--ink-dim); }
.footer-col a:hover { color: var(--gold); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 24px 28px; border-top: 1px solid var(--line); font-size: .74rem; color: var(--muted); flex-wrap: wrap; }
.footer-sys { display: inline-flex; align-items: center; gap: 8px; }

/* ---------- Error page ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; }
.error-code { font-family: var(--font-mono); font-size: clamp(5rem, 18vw, 11rem); line-height: .9; font-weight: 700; background: var(--grad-fire); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .9; }

/* ---------- Reveal ---------- */
[data-reveal] { transition: opacity .7s var(--ease), transform .7s var(--ease); }
.noanim [data-reveal], .noanim [data-reveal].in { opacity: 1 !important; transform: none !important; transition: none !important; }
.js [data-reveal] { opacity: 0; transform: translateY(22px); }
.js [data-reveal].in { opacity: 1; transform: none; }
[data-reveal][data-delay="1"] { transition-delay: .08s; }
[data-reveal][data-delay="2"] { transition-delay: .16s; }
[data-reveal][data-delay="3"] { transition-delay: .24s; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
  #embers { display: none; }
}

/* ---------- Toast ---------- */
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: #12161d; border: 1px solid var(--line-strong); color: #fff; padding: 11px 18px; border-radius: 10px; font-size: .85rem; opacity: 0; pointer-events: none; transition: .3s var(--ease); z-index: 90; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 10px; }
  .hero-visual { min-height: 380px; order: -1; }
  .dragon-core { width: min(340px, 70vw); }
  .nav-search { display: none; }
  .rank-cards { grid-template-columns: repeat(2, 1fr); }
  .pack-grid { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(4, 1fr); }
  .b1, .b2 { grid-column: span 4; }
  .b3, .b4, .b5 { grid-column: span 2; }
  .forum-layout, .account-grid { grid-template-columns: 1fr; }
  .ipbar { grid-template-columns: 1fr 1fr; }
  .ipbar .ip-main { grid-column: span 2; }
}

@media (max-width: 860px) {
  .main-nav {
    position: fixed; inset: 0 0 0 auto; width: min(320px, 86vw); padding: 100px 22px 30px;
    background: rgba(9, 11, 16, .98); backdrop-filter: blur(20px); border-left: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 4px; transform: translateX(100%);
    transition: transform .35s var(--ease); z-index: 45; margin: 0;
  }
  .main-nav.open { transform: none; }
  .main-nav .nav-link { padding: 14px 16px; font-size: 1rem; }
  .main-nav .nav-link.is-active::after { display: none; }
  .burger { display: flex; }
  .online-pill .online-label { display: none; }
  .nav-cta, .nav-login { display: none; }
  .main-nav .mobile-auth { display: grid !important; gap: 8px; margin-top: 18px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .store-hero { grid-template-columns: 1fr; padding: 36px 26px; }
  .store-art { display: none; }
  .news-grid { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-nav { position: static; display: flex; overflow-x: auto; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .podium { grid-template-columns: 1fr; }
  .podium-1 { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 620px) {
  .container { padding: 0 18px; }
  .hero { padding-top: 34px; }
  .hero-stats { gap: 18px; display: grid; grid-template-columns: 1fr 1fr; }
  .hero-stat { min-width: 0; }
  .hero-stat b { font-size: 1.32rem; }
  .hero-float { display: none; }
  .section { padding: 56px 0; }
  .grid.g2, .grid.g3, .grid.g4, .form-row { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .b1, .b2, .b3, .b4, .b5 { grid-column: span 2; }
  .rank-cards, .pack-grid { grid-template-columns: 1fr; }
  .ipbar { grid-template-columns: 1fr; }
  .ipbar .ip-main { grid-column: span 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; padding-top: 40px; }
  .post { flex-direction: column; gap: 10px; }
  .post-author { width: auto; text-align: left; display: flex; align-items: center; gap: 10px; }
  .post-author .avatar { margin: 0; }
  .store-hero { padding: 30px 22px; }
  .cta-band { padding: 40px 22px; }
  .player-hero { padding: 22px; }
  .big-elo { margin-left: 0; text-align: left; }
  .topstrip-links { display: none; }
  .header-inner { min-height: 64px; gap: 12px; }
  .brand-mark, .brand-mark img { width: 38px; height: 38px; }
  .brand-text strong { font-size: 1rem; }
  .podium-card { padding: 20px 14px; }
}

/* FAQ toggle */
details.card summary { list-style: none; }
details.card summary::-webkit-details-marker { display: none; }
details.card summary span { transition: transform .25s var(--ease); }
details.card[open] summary span { transform: rotate(45deg); }
details.card[open] { border-color: rgba(255, 182, 46, .3); }

/* ==========================================================================
   Leaderboard teaser + search/pager (home e classifiche)
   ========================================================================== */
.leader-teaser { align-items: start; }
.leader-teaser-card {
  border: 1px solid var(--line); border-radius: 18px; background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015));
  padding: 18px 18px 10px; transition: transform .3s var(--ease), border-color .3s, box-shadow .3s;
}
.leader-teaser-card:hover { transform: translateY(-4px); border-color: rgba(255,122,26,.3); box-shadow: var(--shadow); }
.lt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.lt-head h3 { margin: 0 0 4px; font-size: 1.02rem; }
.lt-head .mode-icon svg { width: 20px; height: 20px; }
.leader-teaser-card .table-wrap { border: 0; background: none; }
.leader-teaser-card table.data { min-width: 0; }
.leader-teaser-card table.data th { background: none; padding: 8px 6px; }
.leader-teaser-card table.data td { padding: 8px 6px; }

.leaderboard-search { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.leaderboard-search .nav-search { display: flex; width: 300px; max-width: 100%; height: 44px; border-radius: 12px; }
.pager { display: flex; gap: 8px; justify-content: center; margin-top: 24px; flex-wrap: wrap; }
.tabs-scroll { max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs-scroll::-webkit-scrollbar { display: none; }
.mobile-auth { display: none; }
.mobile-auth-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); font-size: .8rem; color: var(--muted); }

/* ==========================================================================
   MOBILE — rifinitura grafica (telefono)
   ========================================================================== */
@media (max-width: 860px) {
  .mobile-auth { display: grid; gap: 8px; margin-top: 18px; }
  .main-nav { padding: 94px 20px 28px; overflow-y: auto; }
  .main-nav::before {
    content: 'DRAGONMC'; position: absolute; top: 34px; left: 22px;
    font-weight: 900; letter-spacing: .16em; font-size: .95rem; color: var(--muted);
  }
  .main-nav::after {
    content: ''; position: absolute; top: 64px; left: 22px; right: 22px; height: 1px;
    background: linear-gradient(90deg, rgba(255,122,26,.6), transparent);
  }
  .nav-link { padding: 12px 14px; border-radius: 10px; }
  .online-pill { height: 36px; }
  .site-header .header-inner { gap: 10px; }
  .leaderboard-search .nav-search { width: 100%; flex: 1 1 200px; }
  .hero-visual { min-height: 330px; margin-bottom: 4px; }
  .dragon-core { width: min(290px, 74vw); }
  .dragon-halo { filter: blur(20px); }
}

@media (max-width: 620px) {
  body { font-size: 15.5px; }
  .container { padding: 0 16px; }
  .topstrip { font-size: .72rem; }
  .topstrip-inner { min-height: 32px; }
  .topstrip-live { gap: 6px; }
  .site-header .header-inner { min-height: 60px; }
  .brand-mark, .brand-mark img { width: 36px; height: 36px; }
  .brand-text strong { font-size: .98rem; }
  .brand-text em { font-size: .5rem; letter-spacing: .16em; margin-top: 4px; }

  /* Hero */
  .hero { padding: 26px 0 22px; }
  .hero-grid { gap: 4px; }
  .hero-badge { font-size: .7rem; padding: 5px 12px 5px 5px; margin-bottom: 16px; }
  .hero-badge .tag { font-size: .6rem; padding: 3px 8px; }
  .hero h1 { font-size: clamp(2.15rem, 11.2vw, 2.9rem); margin-bottom: 12px; }
  .hero h1 .line-2 { font-size: .34em; letter-spacing: .2em; margin-top: 8px; }
  .hero-lead { font-size: .95rem; margin-bottom: 20px; }
  .hero-cta { flex-direction: column; gap: 9px; margin-bottom: 24px; }
  .hero-cta .btn { width: 100%; padding: 14px 18px; font-size: .92rem; }
  .hero-stats { gap: 8px; margin-bottom: 2px; }
  .hero-stat {
    background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
    border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px;
  }
  .hero-stat b { font-size: 1.18rem; }
  .hero-stat span { font-size: .58rem; letter-spacing: .1em; line-height: 1.4; display: block; }
  .hero-visual { min-height: 300px; }
  .dragon-core { width: min(250px, 68vw); }
  .hero-float { display: flex; padding: 7px 10px; border-radius: 10px; font-size: .64rem; gap: 7px; }
  .hero-float small { font-size: .52rem; letter-spacing: .05em; }
  .hero-float b { font-size: .74rem; }
  .hf-1 { top: 0; left: -3%; }
  .hf-2 { bottom: 8%; right: -4%; }
  .hf-3 { display: none; }

  /* Sezioni e card */
  .section { padding: 48px 0; }
  .section-tight { padding: 34px 0; }
  .section-head { margin-bottom: 24px; gap: 14px; }
  .section-head h2 { font-size: 1.7rem; }
  .section-head p { font-size: .9rem; }
  .eyebrow { font-size: .66rem; letter-spacing: .18em; margin-bottom: 10px; }
  .card { padding: 20px; border-radius: 16px; }
  .ipbar { border-radius: 14px; }
  .ipbar > div { padding: 13px 16px; }
  .ipbar .ip-main { gap: 8px; }
  .ipbar .ip-main .btn { padding: 8px 12px; }

  /* Modalità */
  .modes-grid { grid-template-columns: 1fr; gap: 14px; }
  .mode-card { padding: 20px; gap: 12px; border-radius: 16px; }
  .mode-icon { width: 46px; height: 46px; border-radius: 12px; }
  .mode-name h3 { font-size: 1.16rem; }
  .mode-desc { font-size: .85rem; }
  .mode-foot { gap: 8px; }
  .mode-foot .btn { min-width: 0; padding: 10px 12px; }

  /* Bento e grid */
  .bento { gap: 12px; }
  .bento-item { padding: 20px; }
  .grid { gap: 14px; }
  .store-hero { border-radius: 20px; }
  .store-hero h2 { font-size: 1.8rem; }
  .cta-band { border-radius: 20px; }
  .cta-band h2 { font-size: 1.75rem; }

  /* Classifiche */
  .stat-cards { gap: 9px; }
  .stat-card { padding: 13px 14px; border-radius: 12px; }
  .stat-card b { font-size: 1.32rem; }
  .stat-card span { font-size: .6rem; letter-spacing: .1em; }
  .tabs { width: 100%; justify-content: flex-start; }
  .tabs a, .tabs button { padding: 8px 14px; font-size: .8rem; white-space: nowrap; }
  .tabs-scroll { display: flex; }
  .podium { gap: 10px; margin-bottom: 18px; }
  .podium-1 { padding-top: 26px; }
  .podium-elo { font-size: 1.3rem; }
  .table-wrap { border-radius: 14px; -webkit-overflow-scrolling: touch; }
  table.data { font-size: .82rem; min-width: 560px; }
  table.data.compact { min-width: 0; }
  table.data th, table.data td { padding: 10px 12px; }
  .leaderboard-search .nav-search { width: 100%; }
  .leaderboard-search .btn { flex: 1 1 auto; }

  /* Forum / ticket */
  .thread-row { padding: 15px 14px; gap: 11px; flex-wrap: wrap; }
  .thread-row > .avatar { display: none; }
  .thread-replies { min-width: 48px; }
  .thread-replies b { font-size: .9rem; }
  .thread-replies span { font-size: .52rem; }
  .thread-row > .btn { display: none; }
  .ticket-item { padding: 14px; gap: 11px; flex-wrap: wrap; }
  .msg { max-width: 100%; }
  .post-body p { font-size: .88rem; }
  .form-row { grid-template-columns: 1fr; }

  /* Account / admin */
  .profile-card { padding: 26px 18px; }
  .discord-card { grid-template-columns: auto 1fr; }
  .discord-card form, .discord-card > .btn { grid-column: span 2; }
  .account-grid { gap: 16px; }
  .admin-nav { border-radius: 12px; padding: 8px; }
  .admin-nav a { padding: 9px 11px; font-size: .8rem; white-space: nowrap; }
  .mode-editor { grid-template-columns: 1fr; }

  /* Footer */
  .site-footer { margin-top: 40px; }
  .footer-grid { padding: 36px 4px 26px; }
  .footer-bottom { padding: 16px 4px 26px; }
  .footer-social { flex-wrap: wrap; }

  /* Auth */
  .auth-main { padding: 28px 16px 40px; }
  .auth-card h1 { font-size: 1.85rem; }
  .auth-card .btn-lg { padding: 14px 18px; }
}

/* Podium compatto su telefono */
@media (max-width: 620px) {
  .podium { display: grid; grid-template-columns: 1fr; gap: 8px; margin-bottom: 18px; }
  .podium-card {
    display: flex; align-items: center; gap: 10px; text-align: left;
    padding: 12px 14px; min-height: 0;
  }
  .podium-1 { padding: 14px; order: -1; }
  .podium-medal { display: none; }
  .podium-rank { position: static; font-size: .8rem; color: var(--muted); min-width: 20px; order: 0; }
  .podium-card .avatar { width: 44px !important; height: 44px !important; font-size: 15px !important; margin: 0; order: 1; }
  .podium-name { font-size: .95rem; flex: 1 1 auto; min-width: 0; order: 2; }
  .podium-card .tier-badge { margin: 0 !important; flex: none; font-size: .6rem; padding: 3px 8px; order: 3; }
  .podium-elo { margin-left: auto; font-size: 1.12rem; line-height: 1.05; text-align: right; order: 4; }
  .podium-elo small { font-size: .48rem; margin-top: 3px; }
  .podium-wl { display: none; }
}

@media (max-width: 620px) {
  table.data .opt { display: none; }
  table.data { min-width: 0; }
  table.data .td-player small { font-size: .66rem; }
}

@media (max-width: 620px) {
  table.data .td-player small { display: none; }
  table.data td, table.data th { padding: 11px 10px; }
}

@media (max-width: 620px) {
  .store-hero .store-art { display: grid; margin-top: 4px; }
  .store-hero .store-art img { width: min(175px, 48%); }
  .store-hero .store-perks { gap: 10px 16px; margin-top: 18px; }
}


/* ---------- Dropdown / details rifiniti ---------- */
details.card { transition: border-color .2s, background .2s; }
details.card:hover { border-color: rgba(255, 182, 46, .3); }
details.card summary::-webkit-details-marker { display: none; }
details.card summary { user-select: none; }
details.card summary span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: rgba(255, 182, 46, .1); border: 1px solid rgba(255, 182, 46, .25); transition: transform .2s var(--ease), background .2s; }
details.card[open] summary span { transform: rotate(45deg); background: rgba(255, 182, 46, .2); }
details.card[open] { border-color: rgba(255, 182, 46, .32); background: rgba(255, 255, 255, .035); }

/* ---------- Reset password (admin) ---------- */
.pw-reset { display: inline-block; margin-top: 6px; }
.pw-reset > summary { list-style: none; cursor: pointer; }
.pw-reset > summary::-webkit-details-marker { display: none; }
.pw-reset[open] > summary { display: none; }
.pw-form { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; margin-top: 4px; }
.pw-form .input { width: 150px; padding: 8px 10px; font-size: .8rem; border-radius: 9px; }

/* Icona modalità come emoji (impostata dal Founder) */
.mode-emoji { font-size: 1.35rem; line-height: 1; display: inline-grid; place-items: center; }
