/* lukyQoL - sito. Notte blu come il menu della mod, accento blu -> lavanda -> rosa. */
:root {
  --bg: #06080e;
  --bg2: #0a0e17;
  --card: #0e131e;
  --card2: #121827;
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .12);
  --text: #e9edf6;
  --muted: #8d96ab;
  --dim: #5c6479;
  --blue: #6ea8ff;
  --lav: #b8a2ff;
  --pink: #ff8fd1;
  --green: #5ee6a0;
  --red: #ff6b7d;
  --yellow: #ffd36e;
  --grad: linear-gradient(100deg, var(--blue) 0%, var(--lav) 48%, var(--pink) 100%);
  --r: 18px;
  --font: Inter, "Segoe UI Variable", "Segoe UI", ui-sans-serif, system-ui, -apple-system, Roboto, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
::selection { background: rgba(184, 162, 255, .35); }

.wrap { width: min(1160px, calc(100% - 40px)); margin: 0 auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }

/* ---------- nav (pillola che galleggia) ---------- */
.nav {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1100px, calc(100% - 24px)); display: flex; align-items: center; gap: 18px;
  padding: 8px 8px 8px 14px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(12, 15, 25, .52); backdrop-filter: blur(22px) saturate(170%);
  -webkit-backdrop-filter: blur(22px) saturate(170%); transition: background .25s, border-color .25s, box-shadow .25s;
  box-shadow: 0 10px 40px -18px rgba(0, 0, 0, .8), inset 0 1px 0 rgba(255, 255, 255, .05);
}
.nav.scrolled { background: rgba(10, 13, 22, .66); border-color: var(--line2); box-shadow: 0 16px 50px -20px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06); }
/* "Menu" nella barra: si puo' provare, quindi si fa notare un po' */
.nav-links a.try { position: relative; color: var(--text); display: inline-flex; align-items: center; gap: 7px; padding-right: 9px;
  background: linear-gradient(rgba(14, 18, 29, .9), rgba(14, 18, 29, .9)) padding-box, var(--grad) border-box; border: 1px solid transparent; }
.nav-links a.try:hover { background: linear-gradient(rgba(24, 29, 44, .95), rgba(24, 29, 44, .95)) padding-box, var(--grad) border-box; }
.nav-links a.try::after { content: ""; position: absolute; inset: -1px; border-radius: inherit; box-shadow: 0 0 18px rgba(184, 162, 255, .35); opacity: 0; animation: tryglow 3.2s ease-in-out infinite; pointer-events: none; }
.try-tag { font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .04em; padding: 1px 7px; border-radius: 999px; background: var(--grad); color: #0a0d15; }
@keyframes tryglow { 0%, 100% { opacity: 0; } 50% { opacity: 1; } }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: -.01em; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.brand b { font-weight: 700; }
.brand .cat { color: var(--blue); font-weight: 700; }
.nav-links { display: flex; gap: 4px; margin: 0 auto; }
.nav-links a { padding: 7px 13px; border-radius: 999px; color: var(--muted); font-size: 14px; transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .05); }
.nav-right { display: flex; gap: 8px; align-items: center; }
.lang { font-size: 12px; font-weight: 600; padding: 7px 10px; border-radius: 999px; color: var(--muted); border: 1px solid var(--line); }
.lang:hover { color: var(--text); border-color: var(--line2); }

.btn {
  display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px;
  font-weight: 600; font-size: 14px; transition: transform .15s, background .2s, box-shadow .2s, opacity .2s; white-space: nowrap;
}
.btn:active { transform: scale(.97); }
.btn-light { background: #eef1f8; color: #0a0d15; }
.btn-light:hover { background: #fff; box-shadow: 0 0 0 4px rgba(255, 255, 255, .08); }
.btn-ghost { border: 1px solid var(--line2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn-ghost:hover { background: rgba(255, 255, 255, .06); }
.btn-grad { background: var(--grad); color: #0a0d15; }
.btn-grad:hover { box-shadow: 0 8px 30px -8px rgba(184, 162, 255, .7); }
.btn-discord { background: #5865f2; color: #fff; }
.btn-discord:hover { background: #4752e0; box-shadow: 0 8px 30px -10px rgba(88, 101, 242, .9); }
.btn-lg { padding: 14px 24px; font-size: 15px; }
.btn svg { width: 18px; height: 18px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.arrow { transition: transform .2s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- hero ---------- */
.hero { position: relative; padding: 168px 0 90px; text-align: center; overflow: visible; overflow-x: clip; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto; height: 760px; pointer-events: none;
  background:
    radial-gradient(40% 50% at 30% 30%, rgba(110, 168, 255, .20), transparent 70%),
    radial-gradient(35% 45% at 70% 25%, rgba(255, 143, 209, .16), transparent 70%),
    radial-gradient(40% 40% at 50% 60%, rgba(184, 162, 255, .12), transparent 70%);
  filter: blur(10px);
}
.hero .grid-bg {
  position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(60% 55% at 50% 35%, #000 20%, transparent 75%);
  -webkit-mask-image: radial-gradient(60% 55% at 50% 35%, #000 20%, transparent 75%);
}
.hero > .wrap { position: relative; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; font-size: 13px;
  border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); color: var(--muted);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); margin-left: 4px; }
.chip b { color: var(--text); font-weight: 600; }
.wordmark {
  font-size: clamp(72px, 15vw, 188px); font-weight: 800; letter-spacing: -.055em; line-height: 1.08; margin: 6px auto -10px;
  padding: 0 .12em .14em; display: block; width: fit-content;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 10px 60px rgba(184, 162, 255, .25));
}
.wordmark .face { color: var(--blue); -webkit-text-fill-color: var(--blue); font-size: .42em; vertical-align: .9em; margin-left: .08em; letter-spacing: 0; }
.hero h1 { font-size: clamp(26px, 3.6vw, 44px); letter-spacing: -.03em; line-height: 1.12; margin: 8px 0 0; font-weight: 700; }
.hero h1 em { font-style: italic; font-weight: 500; color: var(--muted); }
.hero p.lead { max-width: 640px; margin: 20px auto 0; color: var(--muted); font-size: 17px; }
.hero .ctas { display: flex; gap: 12px; justify-content: center; margin-top: 34px; flex-wrap: wrap; }
.glance { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 44px; }
.glance span {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  padding: 7px 12px; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .015);
}
.hero-shot { position: relative; margin: 70px auto 0; width: min(980px, 100%); }
.hero-shot::before {
  content: ""; position: absolute; inset: 8% 6% -6%; background: var(--grad); filter: blur(70px); opacity: .28; border-radius: 40px;
}
.window {
  position: relative; border-radius: 20px; border: 1px solid var(--line2); background: var(--card); overflow: hidden;
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9);
}
.window .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.window .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3142; }
.window .bar span { margin-left: 10px; font-family: var(--mono); font-size: 11.5px; color: var(--dim); letter-spacing: .06em; text-transform: uppercase; }
.float-card {
  position: absolute; border-radius: 16px; overflow: hidden; border: 1px solid var(--line2); background: var(--card);
  box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .85); animation: bob 7s ease-in-out infinite;
}
.float-card.a { width: 31%; left: -6%; bottom: -8%; }
.float-card.b { width: 34%; right: -7%; top: 14%; animation-delay: -3.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- sezioni ---------- */
section { position: relative; }
.sec { padding: 120px 0; }
.sec-head { text-align: center; margin-bottom: 60px; position: relative; }
.sec-num {
  position: absolute; left: 50%; top: -44px; transform: translateX(-50%); font-size: 120px; font-weight: 800; line-height: 1;
  letter-spacing: -.06em; color: transparent; -webkit-text-stroke: 1px rgba(255, 255, 255, .06); pointer-events: none; z-index: 0;
}
.eyebrow { position: relative; font-family: var(--mono); font-size: 12px; letter-spacing: .18em; text-transform: uppercase; color: var(--lav); }
.sec-head h2 { position: relative; font-size: clamp(34px, 5vw, 58px); letter-spacing: -.04em; line-height: 1.04; margin: 12px 0 0; font-weight: 800; }
.sec-head h2 em { display: block; font-style: italic; font-weight: 500; color: var(--muted); }
.sec-head p { position: relative; max-width: 620px; margin: 18px auto 0; color: var(--muted); }

/* righe alternate stile slinky: testo + immagine */
.feat { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: center; padding: 56px 0; }
.feat.rev { grid-template-columns: 1.15fr 1fr; }
.feat.rev .feat-text { order: 2; }
.feat-text .k { font-family: var(--mono); font-size: 13px; color: var(--blue); }
.feat-text h3 { font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -.035em; line-height: 1.05; margin: 10px 0 16px; font-weight: 800; }
.feat-text p { color: var(--muted); margin: 0 0 20px; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 10px; align-items: flex-start; color: #c7cede; font-size: 15px; }
.ticks li::before {
  content: ""; flex: none; width: 18px; height: 18px; margin-top: 3px; border-radius: 6px;
  background: rgba(110, 168, 255, .14) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%236ea8ff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.shot { position: relative; border-radius: var(--r); border: 1px solid var(--line2); background: var(--card); overflow: hidden; }
.shot img { width: 100%; }
.shot.tall { aspect-ratio: 16 / 11; }
.shot.tall img { height: 100%; object-fit: cover; object-position: top; }
.shot-glow { position: relative; }
.shot-glow::before { content: ""; position: absolute; inset: 10%; background: var(--grad); filter: blur(60px); opacity: .18; }
.stack { display: grid; gap: 14px; }

/* griglia di carte */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.card {
  padding: 26px; border-radius: var(--r); border: 1px solid var(--line); background: linear-gradient(180deg, var(--card2), var(--card));
  transition: border-color .25s, transform .25s;
}
.card:hover { border-color: var(--line2); transform: translateY(-2px); }
.card .ic {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px;
  background: rgba(184, 162, 255, .1); border: 1px solid rgba(184, 162, 255, .2); font-size: 19px;
}
.card h4 { margin: 0 0 6px; font-size: 17px; letter-spacing: -.01em; }
.card p { margin: 0; color: var(--muted); font-size: 14.5px; }

/* "non e' un cheat" */
.pledge {
  position: relative; border-radius: 28px; padding: 56px; overflow: hidden; border: 1px solid var(--line2);
  background: radial-gradient(80% 120% at 0% 0%, rgba(110, 168, 255, .12), transparent 60%),
              radial-gradient(70% 120% at 100% 100%, rgba(255, 143, 209, .10), transparent 60%), var(--card);
}
.pledge h2 { font-size: clamp(32px, 4.6vw, 56px); letter-spacing: -.04em; line-height: 1.02; margin: 12px 0 18px; font-weight: 800; }
.pledge > p { color: var(--muted); max-width: 680px; margin: 0; }
.pledge-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 36px; }
.pledge-col { border-radius: 16px; padding: 22px; border: 1px solid var(--line); background: rgba(0, 0, 0, .22); }
.pledge-col h5 { margin: 0 0 12px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; }
.pledge-col.yes h5 { color: var(--green); }
.pledge-col.no h5 { color: var(--red); }
.pledge-col ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 9px; font-size: 15px; color: #c7cede; }
.pledge-col.yes li::before { content: "+ "; color: var(--green); font-family: var(--mono); }
.pledge-col.no li::before { content: "× "; color: var(--red); font-family: var(--mono); }

/* client supportati */
.clients { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.client { padding: 22px; border-radius: var(--r); border: 1px solid var(--line); background: var(--card); }
.client .n { font-size: 30px; font-weight: 800; letter-spacing: -.04em; }
.client .n small { font-size: 14px; color: var(--dim); font-weight: 600; letter-spacing: 0; margin-left: 4px; }
.client p { margin: 6px 0 0; color: var(--muted); font-size: 14px; }
.client .tag { display: inline-block; margin-top: 12px; font-family: var(--mono); font-size: 11px; padding: 4px 8px; border-radius: 6px; background: rgba(110, 168, 255, .1); color: var(--blue); }

/* terminale (stile slinky) */
.term { border-radius: var(--r); border: 1px solid var(--line2); background: #080b12; overflow: hidden; font-family: var(--mono); font-size: 13.5px; }
.term .bar { display: flex; gap: 7px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.term .bar i { width: 11px; height: 11px; border-radius: 50%; background: #2a3142; }
.term pre { margin: 0; padding: 20px 22px; color: #b9c2d6; white-space: pre-wrap; line-height: 1.75; }
.term .p { color: var(--lav); }
.term .g { color: var(--green); }
.term .b { color: var(--blue); }
.term .y { color: var(--yellow); }
.term .d { color: var(--dim); }

/* changelog */
.cl-tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 26px; }
.cl-tabs button { padding: 8px 16px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.cl-tabs button.on { background: #eef1f8; color: #0a0d15; border-color: transparent; }
.cl-list { display: grid; gap: 12px; max-width: 820px; margin: 0 auto; }
.cl { border-radius: var(--r); border: 1px solid var(--line); background: var(--card); padding: 22px 24px; }
.cl-top { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.cl-top b { font-size: 20px; letter-spacing: -.02em; }
.badge { font-family: var(--mono); font-size: 11px; padding: 3px 8px; border-radius: 6px; letter-spacing: .04em; }
.badge.release { background: rgba(94, 230, 160, .12); color: var(--green); }
.badge.beta { background: rgba(255, 211, 110, .12); color: var(--yellow); }
.cl-top .date { margin-left: auto; color: var(--dim); font-size: 13px; }
.cl .title { color: var(--muted); font-style: italic; margin: 6px 0 0; }
.cl ul { margin: 12px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: 14.5px; color: #c7cede; }
.cl li { display: flex; gap: 10px; }
.cl li .m { flex: none; width: 18px; text-align: center; font-family: var(--mono); font-weight: 700; }
.cl li .m.add { color: var(--green); }
.cl li .m.chg { color: var(--blue); }
.cl li .m.del { color: var(--red); }
.cl li.sub { padding-left: 28px; color: var(--muted); }
.cl .more { margin-top: 10px; font-size: 13px; color: var(--lav); }
.cl-empty { text-align: center; color: var(--dim); }
code { font-family: var(--mono); font-size: .92em; background: rgba(255, 255, 255, .06); padding: 1px 6px; border-radius: 5px; }

/* faq */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 10px; }
.faq details { border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 0 20px; transition: border-color .2s; }
.faq details[open] { border-color: var(--line2); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 0; display: flex; justify-content: space-between; gap: 20px; font-weight: 600; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--dim); font-size: 20px; line-height: 1; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 18px; color: var(--muted); }

/* cta finale */
.cta {
  text-align: center; border-radius: 30px; padding: 80px 30px; border: 1px solid var(--line2); position: relative; overflow: hidden;
  background: radial-gradient(60% 100% at 50% 0%, rgba(184, 162, 255, .16), transparent 70%), var(--card);
}
.cta h2 { font-size: clamp(38px, 6vw, 72px); letter-spacing: -.05em; line-height: 1; margin: 16px 0; font-weight: 800; }
.cta p { color: var(--muted); max-width: 520px; margin: 0 auto 30px; }

/* footer */
footer { padding: 70px 0 40px; border-top: 1px solid var(--line); margin-top: 120px; }
.foot { display: grid; grid-template-columns: 1.6fr repeat(auto-fit, minmax(110px, 1fr)); gap: 30px; }
.foot h6 { margin: 0 0 14px; font-size: 13px; color: var(--text); }
.foot a { display: block; color: var(--muted); font-size: 14px; padding: 4px 0; }
.foot a:hover { color: var(--text); }
.foot .about { color: var(--muted); font-size: 14px; max-width: 320px; margin-top: 14px; }
.legal { margin-top: 50px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; color: var(--dim); font-size: 12.5px; }

/* comparsa allo scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s cubic-bezier(.2, .7, .2, 1), transform .8s cubic-bezier(.2, .7, .2, 1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- login ---------- */
.auth-page { min-height: 100vh; display: grid; place-items: center; padding: 90px 20px 60px; position: relative; overflow: hidden; }
.auth-page::before {
  content: ""; position: absolute; width: 900px; height: 600px; left: 50%; top: 40%; transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(184, 162, 255, .16), transparent); pointer-events: none;
}
.auth-top { position: absolute; top: 22px; left: 26px; right: 26px; display: flex; justify-content: space-between; align-items: center; }
.auth-top a.back { color: var(--muted); font-size: 14px; display: flex; gap: 8px; align-items: center; }
.auth-top a.back:hover { color: var(--text); }
.auth-card {
  position: relative; width: min(420px, 100%); border-radius: 22px; border: 1px solid var(--line2); padding: 30px;
  background: linear-gradient(180deg, var(--card2), var(--card)); box-shadow: 0 40px 120px -40px #000;
}
.auth-card h1 { margin: 0; text-align: center; font-size: 24px; letter-spacing: -.02em; }
.auth-card .sub { text-align: center; color: var(--muted); font-size: 14px; margin: 6px 0 24px; }
.steps { display: flex; gap: 6px; padding: 4px; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); margin-bottom: 22px; }
.steps span { flex: 1; text-align: center; padding: 8px; border-radius: 9px; font-size: 13px; color: var(--dim); font-weight: 600; }
.steps span.on { background: rgba(255, 255, 255, .07); color: var(--text); }
label.lbl { display: block; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(0, 0, 0, .3);
  color: var(--text); font: inherit; outline: none; transition: border-color .2s, box-shadow .2s;
}
.input:focus { border-color: var(--lav); box-shadow: 0 0 0 4px rgba(184, 162, 255, .12); }
.hint { font-size: 12.5px; color: var(--dim); margin-top: 8px; }
.otp { display: flex; gap: 8px; justify-content: center; }
.otp input {
  width: 48px; height: 58px; text-align: center; font-size: 24px; font-weight: 700; border-radius: 12px;
  border: 1px solid var(--line2); background: rgba(0, 0, 0, .3); color: var(--text); outline: none; font-family: var(--mono);
}
.otp input:focus { border-color: var(--lav); box-shadow: 0 0 0 4px rgba(184, 162, 255, .12); }
.who { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); margin-bottom: 18px; }
.who img { width: 40px; height: 40px; border-radius: 50%; }
.who b { display: block; }
.who small { color: var(--muted); }
.full { width: 100%; justify-content: center; margin-top: 20px; }
.err { display: none; margin-top: 14px; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; background: rgba(255, 107, 125, .1); color: #ff9aa7; border: 1px solid rgba(255, 107, 125, .25); }
.err.show { display: block; }
.link-btn { color: var(--lav); font-size: 13.5px; }
.link-btn:hover { text-decoration: underline; }
.disclaimer { position: absolute; bottom: 18px; left: 0; right: 0; text-align: center; font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; color: var(--dim); text-transform: uppercase; padding: 0 20px; }

/* ---------- dashboard ---------- */
.dash { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.side { border-right: 1px solid var(--line); background: var(--bg2); padding: 22px 16px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; }
.side .brand { padding: 4px 8px 22px; }
.side-group { font-family: var(--mono); font-size: 10.5px; letter-spacing: .16em; color: var(--dim); text-transform: uppercase; padding: 14px 12px 8px; }
.side a.item { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 11px; color: var(--muted); font-size: 14.5px; transition: background .2s, color .2s; }
.side a.item:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.side a.item.on { background: rgba(110, 168, 255, .1); color: var(--text); }
.side a.item svg { width: 18px; height: 18px; opacity: .85; }
.side a.item.on svg { color: var(--blue); opacity: 1; }
.side .me { margin-top: auto; display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); }
.side .me img { width: 34px; height: 34px; border-radius: 50%; }
.side .me b { font-size: 14px; display: block; line-height: 1.2; }
.side .me small { color: var(--dim); font-size: 12px; }
.side .me button { margin-left: auto; color: var(--dim); padding: 6px; border-radius: 8px; }
.side .me button:hover { color: var(--red); background: rgba(255, 107, 125, .08); }
.main { padding: 34px 44px 60px; max-width: 1180px; }
.crumb { font-family: var(--mono); font-size: 12px; color: var(--dim); letter-spacing: .1em; text-transform: uppercase; }
.page-title { font-size: 30px; letter-spacing: -.03em; margin: 8px 0 26px; }
.profile {
  display: flex; align-items: center; gap: 22px; padding: 26px; border-radius: 22px; border: 1px solid var(--line2);
  background: radial-gradient(60% 140% at 0% 0%, rgba(110, 168, 255, .12), transparent 60%), radial-gradient(50% 120% at 100% 100%, rgba(255, 143, 209, .09), transparent 60%), var(--card);
}
.avatar-wrap { position: relative; }
.avatar-wrap img { width: 76px; height: 76px; border-radius: 22px; border: 1px solid var(--line2); }
.avatar-wrap .mc-head { position: absolute; right: -8px; bottom: -8px; width: 32px; height: 32px; border-radius: 8px; border: 2px solid var(--card); image-rendering: pixelated; }
.profile h2 { margin: 0; font-size: 26px; letter-spacing: -.02em; }
.profile .handle { color: var(--muted); font-size: 14px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line2); color: var(--muted); }
.pill.ok { color: var(--green); border-color: rgba(94, 230, 160, .3); background: rgba(94, 230, 160, .07); }
.pill.warn { color: var(--yellow); border-color: rgba(255, 211, 110, .3); background: rgba(255, 211, 110, .07); }
.pill.bad { color: var(--red); border-color: rgba(255, 107, 125, .3); background: rgba(255, 107, 125, .07); }
.pill.lic { color: #0a0d15; border: 0; background: var(--grad); }
.stats3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 14px; }
.stat { padding: 20px 22px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.stat .l { font-size: 13px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.stat .v { font-size: 24px; font-weight: 750; letter-spacing: -.02em; margin-top: 8px; }
.stat .s { font-size: 13px; color: var(--dim); margin-top: 2px; }
.stat .v.ok { color: var(--green); }
.stat .v.bad { color: var(--red); }
.stat .v.warn { color: var(--yellow); }
.panel { margin-top: 14px; padding: 24px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); }
.panel h3 { margin: 0 0 4px; font-size: 17px; }
.panel > p.muted { margin: 0 0 18px; font-size: 14px; }
.qlinks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.qlink { padding: 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .18); transition: border-color .2s, background .2s; }
.qlink:hover { border-color: var(--line2); background: rgba(255, 255, 255, .03); }
.qlink b { display: block; font-size: 14.5px; }
.qlink small { color: var(--muted); font-size: 13px; }
.rows { display: grid; gap: 1px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; padding: 14px 18px; background: var(--card); font-size: 14.5px; }
.row .k { color: var(--muted); }
.row .v { word-break: break-all; }
.lic-card { padding: 20px; border-radius: 16px; border: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.lic-card + .lic-card { margin-top: 10px; }
.lic-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.lic-top b { font-family: var(--mono); font-size: 15px; }
.lic-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; font-size: 14px; }
.lic-grid small { display: block; color: var(--dim); font-size: 12px; margin-bottom: 2px; }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty b { display: block; color: var(--text); font-size: 17px; margin-bottom: 6px; }
.dl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.dl { padding: 18px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .18); }
.dl b { display: block; }
.dl small { color: var(--muted); }
.view { display: none; }
.view.on { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.loading { min-height: 100vh; display: grid; place-items: center; color: var(--dim); }
.spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--line2); border-top-color: var(--lav); animation: sp .8s linear infinite; }
@keyframes sp { to { transform: rotate(360deg); } }
.mob-top { display: none; }

/* ---------- responsive ---------- */
@media (max-width: 920px) {
  .nav-links { display: none; }
  .feat, .feat.rev { grid-template-columns: 1fr; gap: 30px; padding: 36px 0; }
  .feat.rev .feat-text { order: 0; }
  .cards, .clients { grid-template-columns: 1fr 1fr; }
  .pledge { padding: 32px 24px; }
  .pledge-grid { grid-template-columns: 1fr; }
  .foot { grid-template-columns: 1fr 1fr; }
  .float-card { display: none; }
  .dash { grid-template-columns: 1fr; }
  .side { display: none; }
  .side.open { display: flex; position: fixed; inset: 0; z-index: 60; width: 100%; }
  .mob-top { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); }
  .main { padding: 24px 18px 50px; }
  .stats3, .qlinks, .dl-grid { grid-template-columns: 1fr; }
  .lic-grid { grid-template-columns: 1fr 1fr; }
  .row { grid-template-columns: 1fr; gap: 2px; }
  .profile { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  .cards, .clients { grid-template-columns: 1fr; }
  .nav .btn-light span.long { display: none; }
  .sec { padding: 80px 0; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ======================================================================
   2026-12-05 (giro 2): barra finestra stile KDE Plasma (Breeze), icone, utente nella nav, menu interattivo
   ====================================================================== */

/* barra Breeze: icona a sinistra, titolo al centro, riduci / ingrandisci / chiudi a destra */
.kwin { position: relative; border-radius: 12px; overflow: hidden; border: 1px solid var(--line2); background: #0c1019; box-shadow: 0 40px 120px -40px rgba(0, 0, 0, .9); }
.kbar {
  position: relative; display: flex; align-items: center; height: 38px; padding: 0 8px 0 10px; user-select: none;
  background: linear-gradient(180deg, #1b2130, #161b27); border-bottom: 1px solid rgba(0, 0, 0, .45);
}
.kbar .kicon { width: 18px; height: 18px; border-radius: 5px; }
.kbar .ktitle { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; color: #c8cfdc; font-weight: 500; white-space: nowrap; }
.kbtns { margin-left: auto; display: flex; gap: 6px; }
.kbtns span { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #c8cfdc; transition: background .15s, color .15s; }
.kbtns span svg { width: 12px; height: 12px; }
.kbtns span:hover { background: rgba(255, 255, 255, .14); }
.kbtns .kclose { background: rgba(255, 255, 255, .14); }
.kbtns .kclose:hover { background: #da4453; color: #fff; }
.kwin > img { width: 100%; }

/* icone al posto delle emoji */
.card .ic { color: var(--lav); }
.card .ic svg { width: 20px; height: 20px; }

/* immagini con lo sfondo trasparente: niente cornice, solo un'ombra morbida */
.pic { position: relative; }
.pic img { width: 100%; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .55)); }
.pic::before { content: ""; position: absolute; inset: 12%; background: var(--grad); filter: blur(70px); opacity: .16; z-index: -1; }
.hero-shot .pic img { filter: drop-shadow(0 50px 80px rgba(0, 0, 0, .7)); }
.float-card { border: 0; background: none; box-shadow: none; overflow: visible; }
.float-card img { filter: drop-shadow(0 24px 40px rgba(0, 0, 0, .7)); }
.float-card.a { width: 40%; left: -9%; bottom: -10%; }
.float-card.b { width: 34%; right: -8%; top: 8%; }

/* utente nella nav (come furiah: foto + nome) */
.nav-user { display: inline-flex; align-items: center; gap: 8px; padding: 4px 14px 4px 4px; border-radius: 999px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .03); font-weight: 600; font-size: 14px; transition: background .2s; }
.nav-user:hover { background: rgba(255, 255, 255, .07); }
.nav-user img { width: 30px; height: 30px; border-radius: 50%; }

/* ---------- menu interattivo ---------- */
.menu-demo { position: relative; max-width: 1080px; margin: 0 auto; }
.menu-demo::before { content: ""; position: absolute; inset: 10% 8% -4%; background: var(--grad); filter: blur(90px); opacity: .16; z-index: -1; }
.menu-host { height: 660px; }
.m-win {
  --m-r: 17px; display: grid; grid-template-columns: 250px 1fr; height: 100%; color: var(--m-text); font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
  background: var(--m-bg); border-radius: 0 0 var(--m-r) var(--m-r); overflow: hidden; transition: background .35s, color .35s; user-select: none;
}
.m-win button { color: inherit; font: inherit; }
.m-win.edge { box-shadow: inset 0 0 0 1px var(--m-accent); }
.m-side { background: var(--m-side); display: flex; flex-direction: column; padding: 18px 12px 12px; min-height: 0; transition: background .35s; }
.m-brand { display: flex; gap: 12px; align-items: center; padding: 0 8px 18px; }
.m-brand img { width: 46px; height: 46px; border-radius: 12px; }
.m-brand b { font-size: 19px; display: block; line-height: 1.1; }
.m-brand b span { color: var(--m-accent); }
.m-brand small { color: var(--m-dim); font-size: 12px; }
.m-pages { position: relative; flex: 1; overflow-y: auto; scrollbar-width: none; }
.m-pages::-webkit-scrollbar { display: none; }
.m-group { font-size: 10px; font-weight: 700; color: var(--m-dim); letter-spacing: .08em; padding: 12px 14px 6px; border-top: 1px solid var(--m-line); margin-top: 6px; }
.m-page { position: relative; width: 100%; display: flex; align-items: center; gap: 12px; padding: 0 12px 0 16px; height: 34px; border-radius: 11px; color: var(--m-dim) !important; font-size: 15px !important; text-align: left; transition: background .2s, color .2s; }
.m-page:hover { background: var(--m-hover); color: var(--m-text) !important; }
.m-page.sel { color: var(--m-text) !important; font-weight: 700; }
.m-page i { width: 8px; height: 8px; border-radius: 50%; background: var(--m-off); transition: background .3s; flex: none; }
.m-page i.on { background: var(--m-accent); }
.m-page em { font-style: normal; font-size: 10px; font-weight: 700; }
.m-subs { margin: 2px 0 6px 26px; overflow: hidden; }
.m-subs button { display: block; width: 100%; text-align: left; padding: 3px 0 3px 18px; font-size: 13px !important; color: var(--m-dim) !important; position: relative; transition: color .2s, transform .2s; }
.m-subs button::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 1px; background: var(--m-edge); }
.m-subs button:last-child::before { bottom: 50%; }
.m-subs button::after { content: ""; position: absolute; left: 0; top: 50%; width: 10px; height: 1px; background: var(--m-edge); }
.m-subs button:hover { color: var(--m-accent) !important; transform: translateX(2px); }
.m-foot { display: flex; gap: 12px; align-items: center; margin-top: 10px; padding: 10px; border-radius: 14px; border: 1px solid var(--m-edge); background: var(--m-card); }
.m-foot img { width: 44px; height: 44px; border-radius: 8px; }
.m-foot img.px { image-rendering: pixelated; }
.m-foot b { display: block; font-size: 15px; }
.m-foot span { display: flex; gap: 8px; align-items: center; margin-top: 3px; }
.m-foot em { font-style: normal; font-size: 12px; font-weight: 700; color: var(--pink); border: 1px solid color-mix(in srgb, var(--pink) 50%, transparent); background: color-mix(in srgb, var(--pink) 12%, transparent); border-radius: 999px; padding: 1px 9px; }
.m-foot small { color: var(--m-dim); font-size: 12px; }
.m-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 22px 0 0 30px; }
.m-head { display: flex; align-items: center; gap: 12px; padding-right: 24px; margin-bottom: 8px; }
.m-head h3 { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -.01em; }
.m-reset { color: var(--m-dim) !important; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; transition: color .2s, transform .4s; }
.m-reset:hover { color: var(--m-accent) !important; transform: rotate(-120deg); }
.m-reset svg { width: 19px; height: 19px; }
.m-search { margin-left: auto; display: flex; align-items: center; gap: 8px; width: 260px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--m-field); border: 1px solid var(--m-edge); color: var(--m-dim); transition: border-color .2s; }
.m-search:focus-within { border-color: var(--m-accent); }
.m-search svg { width: 17px; height: 17px; flex: none; }
.m-search input { flex: 1; min-width: 0; background: none; border: 0; outline: none; color: var(--m-text); font: inherit; font-size: 14px; }
.m-search input::placeholder { color: var(--m-dim); }
.m-scroll { flex: 1; overflow-y: auto; padding-right: 18px; scrollbar-width: thin; scrollbar-color: var(--m-accent) transparent; }
.m-scroll::-webkit-scrollbar { width: 4px; }
.m-scroll::-webkit-scrollbar-thumb { background: var(--m-accent); border-radius: 4px; }
.m-desc { display: flex; gap: 20px; align-items: center; justify-content: space-between; padding: 4px 0 8px; }
.m-desc p { margin: 0; color: var(--m-dim); font-size: 14px; line-height: 1.4; }
.m-sec h4 { margin: 18px 0 8px; padding-left: 4px; font-size: 12.5px; font-weight: 700; color: var(--m-accent); letter-spacing: .02em; }
.m-card { border-radius: calc(var(--m-r) * .8); background: var(--m-card); overflow: hidden; }
.m-row { display: flex; align-items: center; gap: 16px; padding: 10px 16px; border-bottom: 1px solid var(--m-line); min-height: 58px; transition: background .2s, opacity .2s; }
.m-row:last-child { border-bottom: 0; }
.m-row:hover { background: var(--m-hover); }
.m-row.off { opacity: .5; }
.m-txt { flex: 1; min-width: 0; }
.m-txt b { display: block; font-weight: 400; font-size: 15.5px; }
.m-txt small { display: block; color: var(--m-dim); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.m-tag { font-size: 10px; font-weight: 700; color: var(--yellow); margin-left: 6px; text-transform: uppercase; }
.m-ctl { display: flex; align-items: center; gap: 14px; flex: none; }
.m-sw { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--m-off); transition: background .25s; flex: none; }
.m-sw i { position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: transform .25s cubic-bezier(.3, 1.4, .5, 1); }
.m-sw.on { background: var(--m-accent); }
.m-sw.on i { transform: translateX(20px); background: var(--m-on-accent); }
.m-sw[disabled] { cursor: default; }
.m-val { font-size: 14px; min-width: 44px; text-align: right; }
.m-slider { position: relative; width: 210px; height: 22px; cursor: pointer; touch-action: none; }
.m-slider::before { content: ""; position: absolute; left: 0; right: 0; top: 9px; height: 5px; border-radius: 5px; background: var(--m-off); }
.m-slider .m-fill { position: absolute; left: 0; top: 9px; height: 5px; border-radius: 5px; background: var(--m-accent); }
.m-slider .m-knob { position: absolute; top: 1px; width: 20px; height: 20px; margin-left: -10px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(0, 0, 0, .4); transition: transform .15s; }
.m-slider:hover .m-knob, .m-slider.drag .m-knob { transform: scale(1.12); }
.m-slider.hue::before { background: linear-gradient(90deg, #ff8080, #ffff80, #80ff80, #80ffff, #8080ff, #ff80ff, #ff8080 92%, #18181c 92%); }
.m-slider.hue .m-fill { display: none; }
.m-slider.hue .m-knob { box-shadow: 0 0 0 3px var(--m-accent), 0 1px 4px rgba(0, 0, 0, .4); }
.m-slider[aria-disabled] { cursor: default; }
.m-choice { display: flex; align-items: center; width: 278px; height: 38px; border-radius: 10px; border: 1px solid var(--m-edge); background: var(--m-field); }
.m-choice button { width: 34px; height: 100%; font-size: 22px !important; color: var(--m-text) !important; line-height: 1; }
.m-choice button:hover { color: var(--m-accent) !important; }
.m-choice span { flex: 1; text-align: center; font-size: 15px; display: flex; gap: 8px; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; }
.m-dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.m-key { width: 218px; height: 38px; border-radius: 10px; border: 1px solid var(--m-edge) !important; background: var(--m-field); font-size: 15px !important; transition: border-color .2s; }
.m-key:hover, .m-key.wait { border-color: var(--m-accent) !important; }
.m-key.wait { color: var(--m-accent) !important; }
.m-text { width: 218px; height: 38px; border-radius: 10px; border: 1px solid var(--m-edge); background: var(--m-field); color: var(--m-text); padding: 0 12px; font: inherit; font-size: 14px; outline: none; }
.m-text.wide { width: 278px; }
.m-text:focus { border-color: var(--m-accent); }
.m-empty { text-align: center; color: var(--m-dim); padding: 40px; }
.m-end { height: 24px; }
.m-win [disabled] { pointer-events: none; }
.menu-note { text-align: center; color: var(--dim); font-size: 13px; margin-top: 18px; }
.menu-note b { color: var(--muted); font-weight: 600; }

@media (max-width: 920px) {
  .menu-host { height: 600px; }
  .m-win { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr); }
  .m-side { padding: 10px 10px 0; }
  .m-brand, .m-foot, .m-subs, .m-group { display: none; }
  .m-pages { display: flex; gap: 4px; overflow-x: auto; padding-bottom: 8px; }
  .m-page { width: auto; flex: none; padding: 0 12px; }
  .m-page.sel::before { display: none; }
  .m-main { padding-left: 16px; }
  .m-search { width: auto; flex: 1; min-width: 0; max-width: 170px; }
  .m-head h3 { font-size: 22px; }
  .m-scroll { padding-right: 12px; }
  .m-slider { width: 160px; }
  .m-choice { width: 220px; }
  .m-text, .m-text.wide, .m-key { width: 200px; }
  .m-row { flex-wrap: wrap; }
  .m-ctl { width: 100%; justify-content: flex-end; }
}

/* ======================================================================
   2026-12-05 (giro 3): menu come in gioco + animazioni, finestre KDE che si ingrandiscono davvero
   ====================================================================== */
.m-hl { position: absolute; left: 0; right: 0; top: 0; height: 34px; border-radius: 11px; pointer-events: none; opacity: 0;
  background: color-mix(in srgb, var(--m-accent) 17%, transparent); transition: transform .38s cubic-bezier(.2, .9, .25, 1), height .38s cubic-bezier(.2, .9, .25, 1), opacity .2s, background .35s; }
.m-hl::before { content: ""; position: absolute; left: 0; top: 50%; width: 4px; height: 14px; margin-top: -7px; border-radius: 3px; background: var(--m-accent); transition: background .35s; }
.m-page { z-index: 1; background: transparent; }
.m-group { position: relative; z-index: 1; margin: 8px 6px 0; padding: 12px 8px 6px; }
.m-subs.grow { animation: subsIn .4s cubic-bezier(.2, .8, .2, 1); }
@keyframes subsIn { from { max-height: 0; opacity: 0; } to { max-height: 420px; opacity: 1; } }
.m-main.enter .m-head h3 { animation: pageIn .34s cubic-bezier(.2, .8, .2, 1); }
.m-main.enter .m-scroll { animation: pageIn .42s cubic-bezier(.2, .8, .2, 1); }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.m-row { transition: background .2s, opacity .3s; }
.m-sw { transition: background .3s ease; }
.m-sw i { transition: transform .32s cubic-bezier(.3, 1.45, .5, 1), background .3s, width .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .35); }
.m-sw:active i { width: 24px; }
.m-sw.on:active i { transform: translateX(16px); }
.m-choice { overflow: hidden; }
.m-choice button { display: grid; place-items: center; }
.m-choice button svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.m-cv { flex: 1; display: flex; gap: 8px; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; font-size: 15px; }
.m-cv span { overflow: hidden; text-overflow: ellipsis; }
.m-cv.flip-r { animation: flipR .28s cubic-bezier(.2, .8, .2, 1); }
.m-cv.flip-l { animation: flipL .28s cubic-bezier(.2, .8, .2, 1); }
@keyframes flipR { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes flipL { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.m-slider .m-fill, .m-slider .m-knob { transition: width .12s, left .12s, transform .15s; }
.m-slider.drag .m-fill, .m-slider.drag .m-knob { transition: transform .15s; }
.m-reset.spin svg { animation: rspin .55s cubic-bezier(.3, .9, .3, 1); }
@keyframes rspin { from { transform: rotate(0); } to { transform: rotate(-360deg); } }
.m-key.wait { animation: keyw 1s ease-in-out infinite; }
@keyframes keyw { 50% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--m-accent) 25%, transparent); } }
.m-foot .m-face { position: relative; flex: none; }
.m-foot .m-face img { width: 44px; height: 44px; border-radius: 8px; image-rendering: pixelated; display: block; }
.m-foot .m-face i { position: absolute; right: -3px; bottom: -3px; width: 12px; height: 12px; border-radius: 50%; background: #3ddc6b; border: 2px solid var(--m-card-solid, #141a26); }
.m-foot em { color: var(--tc, var(--m-text)); border-color: color-mix(in srgb, var(--tc, var(--m-text)) 55%, transparent); background: color-mix(in srgb, var(--tc, var(--m-text)) 10%, transparent); }
.m-win { position: relative; }
.m-grip { position: absolute; right: 7px; bottom: 7px; width: 14px; height: 14px; pointer-events: none; opacity: .45;
  background: linear-gradient(135deg, transparent 45%, var(--m-dim) 45%, var(--m-dim) 52%, transparent 52%, transparent 70%, var(--m-dim) 70%, var(--m-dim) 77%, transparent 77%); }
/* si apre come il menu in gioco */
.m-win.closed { opacity: 0; transform: scale(.94); }
.m-win.opening { animation: menuOpen .55s cubic-bezier(.2, .9, .25, 1.05); }
@keyframes menuOpen { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }

/* finestre KDE: ingrandisci = schermo intero animato, riduci / chiudi = sparisce e ritorna */
.kbtns span { cursor: pointer; }
.kbar { cursor: default; }
.kwin.max { position: fixed; z-index: 200; margin: 0; display: flex; flex-direction: column; }
.kwin.max.anim { transition: left .46s cubic-bezier(.2, .85, .25, 1), top .46s cubic-bezier(.2, .85, .25, 1), width .46s cubic-bezier(.2, .85, .25, 1), height .46s cubic-bezier(.2, .85, .25, 1), border-radius .46s; }
.kwin.max.full { left: 0 !important; top: 0 !important; width: 100vw !important; height: 100vh !important; border-radius: 0; border: 0; }
.kwin.max .menu-host { flex: 1; height: auto; min-height: 0; }
.kwin.max .m-win { border-radius: 0; }
.kwin.max pre { flex: 1; overflow: auto; font-size: 15px; }
.kwin-backdrop { position: fixed; inset: 0; z-index: 190; background: rgba(3, 5, 10, .55); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; transition: opacity .4s; pointer-events: none; }
.kwin-backdrop.on { opacity: 1; }
html.noscroll, html.noscroll body { overflow: hidden; }
.kwin-ph { border-radius: 12px; }

/* ---------- dashboard: download come furiah, account Minecraft ---------- */
.notice { padding: 14px 16px; border-radius: 14px; margin-bottom: 12px; font-size: 14px; color: var(--muted); border: 1px solid var(--line2); }
.notice b { display: block; color: var(--text); margin-bottom: 2px; }
.notice.warn { border-color: rgba(255, 211, 110, .3); background: rgba(255, 211, 110, .06); }
.notice.warn b { color: var(--yellow); }
.notice.bad { border-color: rgba(255, 107, 125, .3); background: rgba(255, 107, 125, .06); }
.notice a { color: var(--lav); }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.seg button { padding: 8px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s; }
.seg button small { font-family: var(--mono); font-weight: 500; opacity: .75; margin-left: 4px; }
.seg button:hover { color: var(--text); }
.seg button.on { background: rgba(255, 255, 255, .08); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.dl-card { padding: 26px; }
.dl-head { display: flex; justify-content: space-between; gap: 16px; align-items: flex-start; }
.dl-head h3 { font-size: 21px; letter-spacing: -.02em; }
.dl-badges { display: flex; gap: 6px; flex-wrap: wrap; }
.dl-files { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 22px 0 20px; }
.dl-file small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--dim); }
.dl-file b { display: block; font-size: 22px; letter-spacing: -.02em; margin: 2px 0 4px; }
.dl-file .sha { display: block; background: none; padding: 0; font-size: 11px; color: var(--muted); word-break: break-all; line-height: 1.45; }
.dl-btns { display: flex; gap: 10px; flex-wrap: wrap; }
.dl-btns .btn { box-shadow: 0 10px 30px -12px rgba(184, 162, 255, .8); }
.dl-btns .btn:hover { transform: translateY(-1px); }
.btn.off { opacity: .4; pointer-events: none; filter: grayscale(.6); box-shadow: none !important; }
.dl-notes { margin-top: 18px; font-size: 14px; color: var(--muted); }
.dl-notes p { margin: 6px 0; }
.dl-notes b { color: var(--text); }
.dl-notes details { margin-top: 10px; }
.dl-notes summary { cursor: pointer; color: var(--lav); }
.dl-notes pre { white-space: pre-wrap; font-family: var(--mono); font-size: 12.5px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin: 10px 0 0; color: #c7cede; }
.ver-list { display: grid; gap: 1px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--line); }
.ver { display: flex; align-items: center; gap: 12px; padding: 13px 16px; background: var(--card); font-size: 14px; transition: background .2s; }
.ver:hover { background: var(--card2); }
.ver b { font-family: var(--mono); min-width: 120px; }
.ver .muted { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pill.tiny { font-size: 11px; padding: 2px 8px; }
.panel h3 .count { font-family: var(--mono); font-size: 12px; color: var(--dim); font-weight: 500; margin-left: 6px; }
.acc-list { display: grid; gap: 8px; }
.acc { display: grid; grid-template-columns: 48px minmax(0, 1.6fr) 160px 1fr 1fr 1fr; gap: 16px; align-items: center; padding: 12px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(0, 0, 0, .18); transition: border-color .2s; }
.acc:hover { border-color: var(--line2); }
.acc-face img { width: 44px; height: 44px; border-radius: 9px; }
.acc-main b { display: flex; align-items: center; gap: 8px; font-size: 15.5px; }
.acc-main small { display: block; color: var(--dim); font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.acc-meta { font-size: 13.5px; }
.acc-meta small { display: block; color: var(--dim); font-size: 11.5px; }
@media (max-width: 920px) {
  .dl-files { grid-template-columns: 1fr 1fr; }
  .acc { grid-template-columns: 44px 1fr auto; }
  .acc-meta { grid-column: 2 / -1; }
}


/* ---------- pagine legali ---------- */
.nav-links a.on { color: var(--text); background: rgba(255, 255, 255, .06); }
.lg { padding: 130px 0 40px; }
.lg-head { max-width: 760px; margin-bottom: 40px; }
.lg-head h1 { font-size: clamp(34px, 5vw, 54px); letter-spacing: -.04em; line-height: 1.05; margin: 10px 0 10px; font-weight: 800; }
.lg-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 50px; align-items: start; }
.lg-toc { position: sticky; top: 100px; display: grid; gap: 2px; }
.lg-toc a { padding: 6px 12px; border-radius: 9px; color: var(--muted); font-size: 14px; border-left: 2px solid transparent; transition: color .2s, background .2s; }
.lg-toc a:hover { color: var(--text); background: rgba(255, 255, 255, .04); border-left-color: var(--lav); }
.lg-body { max-width: 760px; color: #c7cede; font-size: 15.5px; line-height: 1.7; }
.lg-body section { padding: 6px 0 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; scroll-margin-top: 100px; }
.lg-body section:last-child { border-bottom: 0; }
.lg-body h2 { color: var(--text); font-size: 21px; letter-spacing: -.02em; margin: 0 0 10px; }
.lg-body p { margin: 0 0 12px; }
.lg-body ul { margin: 0 0 12px; padding-left: 20px; display: grid; gap: 6px; }
.lg-body a { color: var(--lav); text-decoration: underline; text-decoration-color: rgba(184, 162, 255, .4); text-underline-offset: 3px; }
.lg-body b { color: var(--text); }
.ph { background: rgba(255, 211, 110, .14); color: var(--yellow); border-radius: 5px; padding: 1px 5px; font-family: var(--mono); font-size: .86em; }
.legal a { color: var(--muted); }
.legal a:hover { color: var(--text); }
@media (max-width: 920px) { .lg-grid { grid-template-columns: 1fr; } .lg-toc { display: none; } .lg { padding-top: 100px; } }

/* login: trappola per i bot (fuori dallo schermo, non display:none che alcuni bot saltano) e classi al posto degli style inline */
.hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; opacity: 0; }
.auth-tools { display: flex; gap: 10px; align-items: center; }
.auth-links { display: flex; justify-content: space-between; margin-top: 14px; }
.auth-join { margin-top: 22px; }
.center { text-align: center; }
form[hidden] { display: none !important; }
