/* =====================================================================
   MYRICAE — style.css
   Notte cinematografica: vetro, aurore, ciliegi. Colori in :root.
   ===================================================================== */
@view-transition { navigation: auto; }

:root {
  --bg: #07050c;
  --bg-2: #0c0815;
  --bg-3: #120c1f;
  --hair: rgba(255, 255, 255, .07);
  --hair-2: rgba(255, 255, 255, .12);
  --glass: rgba(18, 12, 30, .55);

  --text: #f4effc;
  --dim: #b6abcc;
  --mute: #7e7398;

  --pink: #ff8fcb;
  --pink-2: #ffc2e2;
  --rose: #f05fae;
  --violet: #9b7bff;
  --lav: #d9cbff;
  --gold: #f4cf6a;
  --green: #6ee7a1;
  --red: #ff7a7a;
  --blurple: #5865f2;

  --f-display: "Fraunces", Georgia, serif;
  --f-body: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --f-mono: "Geist Mono", ui-monospace, monospace;
  --f-pixel: "Pixelify Sans", ui-monospace, monospace;

  --ease: cubic-bezier(.32, .72, 0, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --r: 32px;
  --wrap: 1240px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 110px; }
html:not(.lenis) { scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100dvh;
  font-family: var(--f-body); font-size: 17px; line-height: 1.6; font-weight: 400;
  color: var(--text); background: var(--bg);
  overflow-x: clip; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; padding: 0; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 4px; border-radius: 10px; }
::selection { background: var(--pink); color: #1a0a14; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: -999px; top: 12px; z-index: 100; padding: 10px 16px; border-radius: 999px; background: var(--text); color: var(--bg); font-weight: 600; }
.skip:focus { left: 12px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }
.mono { font-family: var(--f-mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.mono b { color: var(--text); font-weight: 500; }

/* Grana da pellicola */
.grain {
  position: fixed; inset: 0; z-index: 80; pointer-events: none; opacity: .055; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Tipografia ---------- */
.tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 13px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
  color: var(--pink-2); background: rgba(255, 143, 203, .07); border: 1px solid rgba(255, 143, 203, .16);
}
.h2, .display {
  font-family: var(--f-display); font-weight: 400; letter-spacing: -.025em; line-height: 1.02; margin: 0;
  font-variation-settings: "opsz" 144, "SOFT" 50, "WONK" 0; text-wrap: balance;
}
.h2 { font-size: clamp(38px, 5.4vw, 76px); margin-top: 22px; }
.h2 em, .display em, .hero-claim em, .foot-claim em {
  font-style: italic; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  background: linear-gradient(100deg, var(--pink-2), var(--pink) 40%, var(--violet));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  padding-right: .06em;
}
.display { font-size: clamp(56px, 10vw, 150px); line-height: .95; margin-top: 26px; }
.lead { color: var(--dim); font-size: clamp(17px, 1.4vw, 19px); line-height: 1.6; max-width: 56ch; margin: 22px 0 0; text-wrap: pretty; }
.head { margin-bottom: clamp(48px, 6vw, 80px); max-width: 860px; }
.section { padding: clamp(110px, 14vw, 180px) 0; position: relative; }
code {
  font-family: var(--f-mono); font-size: .84em; padding: 2px 8px; border-radius: 7px;
  background: rgba(217, 203, 255, .08); color: var(--lav); border: 1px solid var(--hair); white-space: nowrap;
}

/* ---------- Pulsanti (pill con icona annidata) ---------- */
.btn {
  --mx: 0px; --my: 0px;
  display: inline-flex; align-items: center; gap: 14px; height: 56px; padding: 0 8px 0 26px; border-radius: 999px;
  font-size: 15.5px; font-weight: 500; letter-spacing: .005em; white-space: nowrap;
  transform: translate3d(var(--mx), var(--my), 0);
  transition: transform .6s var(--ease), background-color .4s var(--ease), color .4s var(--ease), box-shadow .6s var(--ease), border-color .4s var(--ease);
}
.btn:active { transform: translate3d(var(--mx), var(--my), 0) scale(.97); }
.btn-ico {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 18px;
  transition: transform .6s var(--ease), background-color .4s var(--ease);
}
.btn:hover .btn-ico { transform: translate(2px, -1px) scale(1.06); }
.btn-light { background: var(--text); color: #140b20; box-shadow: 0 0 0 1px rgba(255,255,255,.2), 0 18px 50px -18px rgba(255, 143, 203, .55); }
.btn-light .btn-ico { background: #140b20; color: var(--text); }
.btn-light:hover { box-shadow: 0 0 0 1px rgba(255,255,255,.3), 0 24px 70px -16px rgba(255, 143, 203, .8); }
.btn-ghost { background: rgba(255,255,255,.04); color: var(--text); border: 1px solid var(--hair-2); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.btn-ghost .btn-ico { background: rgba(255,255,255,.07); }
.btn-ghost:hover { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); }
.btn-discord { background: var(--blurple); color: #fff; box-shadow: 0 20px 60px -20px rgba(88, 101, 242, .9); }
.btn-discord .btn-ico { background: rgba(0,0,0,.2); }
.btn.is-copied { background: var(--green); color: #082414; }
.btn.is-copied .btn-ico { background: #082414; color: var(--green); }

.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--mute); flex: none; position: relative; }
.dot.is-on { background: var(--green); }
.dot.is-on::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--green); animation: ping 2.4s var(--ease-out) infinite; }
.dot.is-off { background: var(--red); }
@keyframes ping { from { transform: scale(.4); opacity: 1; } to { transform: scale(1.8); opacity: 0; } }

/* ---------- Doppia cornice (guscio + nucleo) ---------- */
.bezel {
  position: relative; padding: 7px; border-radius: var(--r);
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.015));
  box-shadow: inset 0 0 0 1px var(--hair);
}
.bezel-in {
  position: relative; height: 100%; border-radius: calc(var(--r) - 7px); overflow: hidden;
  background: linear-gradient(180deg, #150e23, #0e0a18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.035);
}
/* luce che segue il mouse */
[data-spot] .bezel-in::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0; z-index: 0;
  background: radial-gradient(520px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 143, 203, .13), transparent 45%);
  transition: opacity .6s var(--ease);
}
[data-spot]:hover .bezel-in::before { opacity: 1; }
[data-spot]::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  padding: 1px; -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
  background: radial-gradient(300px circle at var(--sx, 50%) var(--sy, 50%), rgba(255, 194, 226, .7), transparent 50%);
  transition: opacity .6s var(--ease);
}
[data-spot]:hover::after { opacity: 1; }

/* ---------- Isola di navigazione ---------- */
.island {
  position: fixed; top: 18px; left: 50%; z-index: 60; transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px; padding: 7px 7px 7px 20px; border-radius: 999px;
  background: var(--glass); backdrop-filter: blur(22px) saturate(1.4); -webkit-backdrop-filter: blur(22px) saturate(1.4);
  box-shadow: inset 0 0 0 1px var(--hair-2), 0 20px 50px -20px rgba(0,0,0,.6);
  transition: transform .8s var(--ease), background-color .5s var(--ease);
}
.island.is-hidden { transform: translate(-50%, -140%); }
.island-logo { display: block; flex: none; margin-right: 14px; }
.mark { height: 30px; width: 100px; max-width: none; overflow: visible; }
.island-links { display: flex; }
.island-link {
  position: relative; padding: 10px 15px; border-radius: 999px; font-size: 14.5px; color: var(--dim); white-space: nowrap;
  transition: color .4s var(--ease), background-color .4s var(--ease);
}
.island-link:hover { color: var(--text); background: rgba(255,255,255,.05); }
.island-link[aria-current="page"] { color: var(--text); background: rgba(255,255,255,.08); }
.island-ip {
  display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px; margin-left: 6px; border-radius: 999px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--hair);
  font-family: var(--f-mono); font-size: 12.5px; color: var(--lav); letter-spacing: .02em;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
.island-ip i { font-size: 15px; opacity: .7; }
.island-ip:hover { background: rgba(255,255,255,.1); color: var(--text); }
.island-ip.is-copied { color: var(--green); }
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 50%; background: rgba(255,255,255,.07); }
.burger span { position: absolute; left: 14px; right: 14px; height: 1.5px; border-radius: 2px; background: var(--text); transition: transform .6s var(--ease), top .6s var(--ease); }
.burger span:nth-child(1) { top: 18px; } .burger span:nth-child(2) { top: 25px; }
.menu-open .burger span:nth-child(1) { top: 21.5px; transform: rotate(45deg); }
.menu-open .burger span:nth-child(2) { top: 21.5px; transform: rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 55; display: flex; flex-direction: column; justify-content: center; gap: 40px;
  padding: 110px 28px 40px; background: rgba(7, 5, 12, .82); backdrop-filter: blur(30px); -webkit-backdrop-filter: blur(30px);
  opacity: 0; visibility: hidden; transition: opacity .6s var(--ease), visibility .6s;
}
.menu-open .menu { opacity: 1; visibility: visible; }
.menu-links { display: flex; flex-direction: column; gap: 4px; }
.menu-link { display: block; overflow: hidden; font-family: var(--f-display); font-size: clamp(40px, 11vw, 64px); line-height: 1.15; letter-spacing: -.02em; color: var(--text); }
.menu-link span { display: inline-block; transform: translateY(110%); transition: transform .9s var(--ease); transition-delay: calc(var(--i) * 60ms); }
.menu-link[aria-current="page"] span { font-style: italic; color: var(--pink); }
.menu-open .menu-link span { transform: none; transition-delay: calc(120ms + var(--i) * 60ms); }
.menu-foot { display: flex; gap: 10px; flex-wrap: wrap; opacity: 0; transform: translateY(20px); transition: opacity .8s var(--ease) .4s, transform .8s var(--ease) .4s; }
.menu-open .menu-foot { opacity: 1; transform: none; }
.menu-open { overflow: hidden; }

/* ---------- Cielo (aurore, stelle, luna) ---------- */
.sky { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; will-change: transform; }
.o1 { width: 52vw; height: 52vw; left: -14vw; top: -18vw; background: radial-gradient(circle, #8b4fd8, transparent 65%); animation: drift1 22s var(--ease) infinite alternate; }
.o2 { width: 46vw; height: 46vw; right: -12vw; top: 4vw; background: radial-gradient(circle, #e0529f, transparent 65%); opacity: .42; animation: drift2 26s var(--ease) infinite alternate; }
.o3 { width: 60vw; height: 40vw; left: 22vw; bottom: -26vw; background: radial-gradient(circle, #4b2a9e, transparent 65%); opacity: .6; animation: drift3 30s var(--ease) infinite alternate; }
@keyframes drift1 { to { transform: translate(10vw, 6vw) scale(1.1); } }
@keyframes drift2 { to { transform: translate(-8vw, 8vw) scale(.92); } }
@keyframes drift3 { to { transform: translate(-6vw, -4vw) scale(1.12); } }
.stars {
  position: absolute; inset: 0; opacity: .8;
  background-image:
    radial-gradient(1.2px 1.2px at 8% 22%, #fff, transparent), radial-gradient(1px 1px at 18% 64%, #ffd6ec, transparent),
    radial-gradient(1.4px 1.4px at 27% 12%, #fff, transparent), radial-gradient(1px 1px at 38% 40%, #e5dbff, transparent),
    radial-gradient(1.3px 1.3px at 52% 8%, #fff, transparent), radial-gradient(1px 1px at 61% 58%, #fff, transparent),
    radial-gradient(1.5px 1.5px at 72% 26%, #ffd6ec, transparent), radial-gradient(1px 1px at 83% 50%, #fff, transparent),
    radial-gradient(1.2px 1.2px at 93% 16%, #e5dbff, transparent), radial-gradient(1px 1px at 46% 84%, #fff, transparent),
    radial-gradient(1px 1px at 12% 90%, #fff, transparent), radial-gradient(1.2px 1.2px at 88% 82%, #ffd6ec, transparent);
  animation: twinkle 6s ease-in-out infinite alternate;
}
@keyframes twinkle { from { opacity: .45; } to { opacity: .9; } }
.moon {
  position: absolute; left: 50%; top: 18%; width: min(46vw, 560px); aspect-ratio: 1; margin-left: calc(min(46vw, 560px) / -2); border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 226, 244, .2) 0%, rgba(255, 194, 226, .1) 30%, rgba(255, 143, 203, .04) 52%, transparent 70%);
}
.petals { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100dvh; display: grid; place-items: center; text-align: center; overflow: hidden; isolation: isolate;
  padding: 130px 0 120px;
  background: radial-gradient(120% 80% at 50% 0%, #1a0f2c 0%, var(--bg) 70%);
}
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.branch { position: absolute; width: min(44vw, 600px); pointer-events: none; filter: drop-shadow(0 20px 30px rgba(0,0,0,.5)); opacity: .92; }
.branch-r { filter: blur(1.2px) drop-shadow(0 20px 30px rgba(0,0,0,.5)); opacity: .8; }
.branch-l { left: -4vw; top: -2vw; }
.branch-r { right: -5vw; top: 0; }
.hero-inner { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: center; width: 100%; padding: 0 20px; }
.hero-mark { width: min(980px, 92vw); margin: 18px auto 0; }
.wordmark { width: 100%; height: auto; overflow: visible; animation: float 8s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.wm-text {
  font-family: var(--f-display); font-style: italic; font-weight: 700; font-size: 230px; text-anchor: middle;
  font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
}
.hero-claim {
  font-family: var(--f-display); font-weight: 400; font-size: clamp(22px, 2.6vw, 34px); line-height: 1.2; letter-spacing: -.01em;
  margin: 4px 0 40px; color: var(--text); text-wrap: balance;
}
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.hero-foot {
  position: absolute; left: 0; right: 0; bottom: 34px; z-index: 2; display: flex; align-items: center; justify-content: space-between;
  width: min(var(--wrap), 100% - 48px); margin: 0 auto;
}
.scroll-cue { width: 1px; height: 54px; background: var(--hair-2); position: relative; overflow: hidden; }
.scroll-cue span { position: absolute; left: 0; top: 0; width: 1px; height: 22px; background: linear-gradient(transparent, var(--pink)); animation: cue 2.2s var(--ease) infinite; }
@keyframes cue { from { transform: translateY(-24px); } to { transform: translateY(58px); } }
.tag-live { background: rgba(255,255,255,.05); color: var(--dim); border-color: var(--hair-2); }

/* entrata del hero */
.js .reveal-hero { opacity: 0; transform: translateY(30px); filter: blur(10px); }
.is-loaded .reveal-hero {
  opacity: 1; transform: none; filter: none;
  transition: opacity 1.3s var(--ease-out), transform 1.3s var(--ease-out), filter 1.3s var(--ease-out);
  transition-delay: calc(.15s + var(--d, 0) * .14s);
}

/* ---------- Ticker ---------- */
.ticker { position: relative; overflow: hidden; padding: 30px 0; border-block: 1px solid var(--hair); background: var(--bg-2); }
.ticker::before, .ticker::after { content: ""; position: absolute; top: 0; bottom: 0; width: 140px; z-index: 1; pointer-events: none; }
.ticker::before { left: 0; background: linear-gradient(90deg, var(--bg-2), transparent); }
.ticker::after { right: 0; background: linear-gradient(-90deg, var(--bg-2), transparent); }
.ticker-track { display: flex; align-items: center; gap: 44px; width: max-content; animation: ticker 48s linear infinite; }
.ticker-track span { font-family: var(--f-display); font-size: clamp(30px, 4vw, 54px); font-style: italic; letter-spacing: -.02em; color: transparent; -webkit-text-stroke: 1px rgba(217, 203, 255, .45); white-space: nowrap; }
.ticker-track span:nth-of-type(3n+2) { color: var(--lav); -webkit-text-stroke: 0; }
.ticker-track i { width: 14px; height: 14px; flex: none; background: var(--pink); clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 57%, 79% 91%, 50% 70%, 21% 91%, 32% 57%, 2% 35%, 39% 35%); }
@keyframes ticker { to { transform: translateX(-50%); } }

/* ---------- Manifesto ---------- */
.statement-text {
  font-family: var(--f-display); font-weight: 300; font-size: clamp(32px, 4.6vw, 68px); line-height: 1.14; letter-spacing: -.025em;
  margin: 34px 0 0; max-width: 1100px; font-variation-settings: "opsz" 144, "SOFT" 50;
}
.statement-text .w { opacity: .14; transition: opacity .3s linear; }
.statement-text .w.on { opacity: 1; }
.no-js .statement-text .w, .no-anim .statement-text .w { opacity: 1; }
.inline-bloom { display: inline-block; width: .8em; height: .8em; vertical-align: -.06em; margin: 0 .05em; animation: spin 14s linear infinite; }
.inline-bloom svg { width: 100%; height: 100%; overflow: visible; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Modalità (bento) ---------- */
.bento-modes { display: grid; grid-template-columns: repeat(12, 1fr); grid-template-rows: auto auto; gap: 18px; }
.mode { display: block; --tx: 0deg; --ty: 0deg; transform: perspective(1200px) rotateX(var(--tx)) rotateY(var(--ty)); transition: transform .8s var(--ease); }
.mode .bezel-in { padding: clamp(28px, 3vw, 40px); display: flex; flex-direction: column; }
.mode-smp { grid-column: 1 / 8; grid-row: 1 / 3; }
.mode-surv { grid-column: 8 / 13; }
.mode-soon { grid-column: 8 / 13; }
.mode-top { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 1; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim);
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--hair);
}
.pill i { font-size: 14px; }
.pill-pink { color: var(--pink-2); background: rgba(255, 143, 203, .1); }
.pill-green { color: var(--green); background: rgba(110, 231, 161, .08); }
.mode-arrow {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 20px;
  background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--hair); transition: transform .7s var(--ease), background-color .5s var(--ease), color .5s;
}
.mode:hover .mode-arrow { transform: rotate(45deg) scale(1.05); background: var(--text); color: var(--bg); }
.mode-title {
  position: relative; z-index: 1; font-family: var(--f-display); font-weight: 400; font-size: clamp(40px, 4.6vw, 68px);
  line-height: 1; letter-spacing: -.03em; margin: 34px 0 14px;
}
.mode-title em { font-style: italic; color: var(--pink); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.mode-title-sm { font-size: clamp(32px, 3vw, 44px); margin-top: 14px; }
.mode-text { position: relative; z-index: 1; color: var(--dim); margin: 0; max-width: 46ch; }
.chips { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.chips li { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; color: var(--lav); background: rgba(217, 203, 255, .06); box-shadow: inset 0 0 0 1px var(--hair); }
.mode-shots { position: relative; height: 300px; margin-top: auto; padding-top: 40px; }
.mode-shots img {
  position: absolute; width: 58%; border-radius: 14px; image-rendering: pixelated;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(255,255,255,.08);
  transition: transform 1s var(--ease);
}
.mode-shots img:nth-child(1) { left: 0; bottom: -40px; transform: rotate(-7deg); }
.mode-shots img:nth-child(2) { left: 21%; bottom: -10px; z-index: 2; transform: rotate(1deg); }
.mode-shots img:nth-child(3) { right: 0; bottom: -50px; transform: rotate(8deg); }
.mode-smp:hover .mode-shots img:nth-child(1) { transform: rotate(-11deg) translate(-14px, -10px); }
.mode-smp:hover .mode-shots img:nth-child(2) { transform: rotate(0) translateY(-22px) scale(1.03); }
.mode-smp:hover .mode-shots img:nth-child(3) { transform: rotate(12deg) translate(14px, -10px); }
.mode-smp .bezel-in { min-height: 680px; background: radial-gradient(90% 60% at 80% 100%, rgba(240, 95, 174, .22), transparent 60%), linear-gradient(180deg, #170f26, #0e0a18); }

.floaters { position: relative; height: 150px; margin-top: 26px; }
.floater {
  position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 10px 16px; border-radius: 999px;
  font-size: 14px; color: var(--text); background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px var(--hair-2), 0 18px 30px -18px rgba(0,0,0,.8);
  animation: bob 6s ease-in-out infinite;
}
.floater i { font-size: 17px; color: var(--green); }
.f1 { left: 0; top: 8px; --r: -4deg; }
.f2 { left: 46%; top: 0; --r: 5deg; animation-delay: -1.5s; }
.f3 { left: 10%; top: 78px; --r: 3deg; animation-delay: -3s; }
.f4 { left: 58%; top: 70px; --r: -6deg; animation-delay: -4.5s; }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(var(--r)); } 50% { transform: translateY(-8px) rotate(var(--r)); } }
.mode-surv .bezel-in { background: radial-gradient(80% 70% at 100% 0%, rgba(110, 231, 161, .1), transparent 60%), linear-gradient(180deg, #150e23, #0e0a18); }
.mode-soon .bezel-in { opacity: .85; }
.soon-ring {
  position: relative; width: 74px; height: 74px; margin-top: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: var(--lav);
}
.soon-ring::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px dashed rgba(217, 203, 255, .35); animation: spin 18s linear infinite; }

/* ---------- Come entrare ---------- */
.join { background: linear-gradient(180deg, var(--bg), var(--bg-2) 30%, var(--bg-2) 70%, var(--bg)); }
.join-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; }
.steps li { display: grid; grid-template-columns: 70px 1fr; gap: 10px; padding: 26px 0; border-top: 1px solid var(--hair); }
.steps li:last-child { border-bottom: 1px solid var(--hair); }
.step-n { font-family: var(--f-mono); font-size: 13px; color: var(--pink); padding-top: 6px; }
.steps h3 { font-family: var(--f-display); font-weight: 400; font-size: 26px; letter-spacing: -.01em; margin: 0 0 4px; }
.steps p { margin: 0; color: var(--dim); }
.steps b { color: var(--text); font-weight: 500; }
.ip-inline {
  font-family: var(--f-mono); font-size: 14px; padding: 3px 10px; border-radius: 8px; color: var(--pink-2);
  background: rgba(255, 143, 203, .1); box-shadow: inset 0 0 0 1px rgba(255, 143, 203, .2); transition: background-color .3s;
}
.ip-inline:hover { background: rgba(255, 143, 203, .2); }

/* finta schermata "Multigiocatore" di Minecraft */
.mc { transform: rotate(1.5deg); }
.mc-screen {
  padding: 28px 26px 26px; font-family: "Minecraft", var(--f-pixel);
  background:
    linear-gradient(180deg, rgba(10, 6, 16, .55), rgba(10, 6, 16, .85)),
    repeating-conic-gradient(#2a1d36 0 25%, #241830 0 50%) 0 0 / 32px 32px;
}
.mc-head { text-align: center; font-size: 20px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; margin-bottom: 22px; }
.mc-list { display: grid; gap: 6px; padding: 10px; background: rgba(0,0,0,.45); border-radius: 4px; }
.mc-entry { display: flex; gap: 14px; padding: 8px; border: 2px solid transparent; }
.mc-entry.is-selected { border-color: #fff; background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 1px #000; }
.mc-icon { width: 64px; height: 64px; flex: none; image-rendering: pixelated; background: #16101f; }
.mc-icon-empty { display: block; background: repeating-conic-gradient(#3b2f48 0 25%, #2e2439 0 50%) 0 0 / 16px 16px; opacity: .7; }
.mc-body { flex: 1; min-width: 0; }
.mc-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.mc-name { font-size: 18px; color: #fff; text-shadow: 2px 2px 0 #3f3f3f; }
.mc-right { display: flex; align-items: center; gap: 10px; }
.mc-count { font-size: 15px; color: #a8a8a8; text-shadow: 2px 2px 0 #2a2a2a; }
.mc-ping { display: flex; align-items: flex-end; gap: 2px; height: 14px; }
.mc-ping i { width: 3px; background: #3b3b3b; }
.mc-ping i:nth-child(1) { height: 3px; } .mc-ping i:nth-child(2) { height: 5px; } .mc-ping i:nth-child(3) { height: 8px; } .mc-ping i:nth-child(4) { height: 11px; } .mc-ping i:nth-child(5) { height: 14px; }
.mc-ping.is-on i { background: #3fd84a; box-shadow: 1px 1px 0 #0d4a12; }
.mc-ping.is-off i { background: #c62828; }
.mc-motd { display: grid; margin-top: 4px; font-size: 15px; line-height: 1.35; text-shadow: 2px 2px 0 #2a1d36; }
.mc-ghost .mc-motd { display: block; }
.mc-ghost { opacity: .45; }
.mc-ghost .mc-motd span { color: #a8a8a8; }
.mc-buttons { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 18px; }
.mc-btn {
  display: grid; place-items: center; height: 44px; font-family: "Minecraft", var(--f-pixel); font-size: 16px; color: #e0e0e0; text-shadow: 2px 2px 0 #383838;
  background: linear-gradient(#7a7a7a, #6a6a6a); border: 2px solid #000; box-shadow: inset 2px 2px 0 rgba(255,255,255,.35), inset -2px -2px 0 rgba(0,0,0,.35);
}
.mc-btn-main { color: #fff; transition: filter .2s; }
.mc-btn-main:hover { filter: brightness(1.15) hue-rotate(250deg) saturate(1.6); }
.mc-btn-main.is-copied { background: linear-gradient(#3fa84a, #2f8a38); }

/* ---------- Community ---------- */
.discord .bezel-in {
  display: grid; grid-template-columns: 1.3fr .7fr; gap: 40px; align-items: center; padding: clamp(36px, 5vw, 72px);
  background: radial-gradient(70% 90% at 100% 100%, rgba(88, 101, 242, .38), transparent 60%), radial-gradient(50% 70% at 0% 0%, rgba(255, 143, 203, .12), transparent 60%), #0f0b1c;
}
.discord-bg { position: absolute; right: -40px; bottom: -80px; font-size: 420px; color: rgba(255,255,255,.035); pointer-events: none; transform: rotate(-12deg); }
.discord-copy { position: relative; z-index: 1; }
.discord-copy .btn { margin-top: 34px; }
.discord-stats { position: relative; z-index: 1; display: grid; gap: 12px; }
.stat { padding: 24px 26px; border-radius: 22px; background: rgba(7, 5, 12, .45); box-shadow: inset 0 0 0 1px var(--hair); }
.stat-num { display: flex; align-items: center; gap: 12px; font-family: var(--f-display); font-size: clamp(44px, 5vw, 64px); line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stat-label { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.donate {
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
  margin-top: 18px; padding: 30px 34px; border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--hair);
}
.donate h3 { font-family: var(--f-display); font-weight: 400; font-size: 26px; margin: 0 0 6px; }
.donate p { margin: 0; color: var(--dim); max-width: 60ch; }

/* ---------- Sotto-pagine ---------- */
.subhero {
  position: relative; overflow: hidden; isolation: isolate; min-height: 86dvh; display: flex; align-items: flex-end;
  padding: 170px 0 clamp(70px, 9vw, 120px);
  background: radial-gradient(120% 90% at 50% 0%, #1a0f2c 0%, var(--bg) 70%);
}
.subhero::after { content: ""; position: absolute; inset: auto 0 0; height: 30%; background: linear-gradient(transparent, var(--bg)); pointer-events: none; }
.subhero-green .o2 { background: radial-gradient(circle, #2fae79, transparent 65%); opacity: .3; }
.subhero-rules { min-height: 0; padding-bottom: 60px; }
.subhero-inner { position: relative; z-index: 2; }
.subhero .hero-cta { justify-content: flex-start; margin-top: 40px; }

.split { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(40px, 7vw, 110px); align-items: center; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.stat-card .bezel-in { padding: 28px 26px; display: flex; flex-direction: column; gap: 10px; color: var(--mute); font-size: 14.5px; line-height: 1.4; }
.big-num { font-family: var(--f-display); font-size: clamp(44px, 4.6vw, 64px); line-height: 1; letter-spacing: -.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.big-num small { font-size: .5em; color: var(--pink); margin-left: 2px; }
.big-word { font-style: italic; font-size: clamp(34px, 3.4vw, 46px); color: var(--pink-2); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.hint { display: flex; gap: 14px; align-items: center; margin-top: 30px; padding: 16px 20px; border-radius: 20px; background: rgba(110, 231, 161, .06); box-shadow: inset 0 0 0 1px rgba(110, 231, 161, .18); }
.hint i { font-size: 26px; color: var(--green); }
.hint p { margin: 0; font-size: 15px; color: var(--dim); }
.hint b { color: var(--text); font-weight: 500; }

.season-wrap { padding-bottom: clamp(110px, 14vw, 180px); }
.season .bezel-in {
  display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; padding: clamp(32px, 5vw, 60px);
  background: radial-gradient(60% 120% at 0% 50%, rgba(155, 123, 255, .3), transparent 60%), radial-gradient(50% 100% at 100% 0%, rgba(255, 143, 203, .2), transparent 60%), #120c1f;
}
.season-title { font-family: var(--f-display); font-style: italic; font-weight: 400; font-size: clamp(64px, 9vw, 130px); line-height: .95; letter-spacing: -.03em; margin: 18px 0 14px; color: var(--lav); font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1; }
.season-copy { position: relative; z-index: 1; }
.season-copy p { color: var(--dim); margin: 0; max-width: 44ch; }
.countdown { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.countdown div { min-width: 92px; padding: 18px 10px; border-radius: 20px; text-align: center; background: rgba(7, 5, 12, .5); box-shadow: inset 0 0 0 1px var(--hair); }
.countdown b { display: block; font-family: var(--f-display); font-weight: 400; font-size: 44px; line-height: 1; font-variant-numeric: tabular-nums; }
.countdown span { display: block; margin-top: 8px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }

.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.span-7 { grid-column: span 7; } .span-5 { grid-column: span 5; } .span-4 { grid-column: span 4; }
.feat .bezel-in { padding: 32px; }
.feat-ico {
  position: relative; z-index: 1; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; color: var(--pink-2);
  background: linear-gradient(180deg, rgba(255, 143, 203, .14), rgba(155, 123, 255, .06)); box-shadow: inset 0 0 0 1px rgba(255, 194, 226, .16);
}
.feat h3 { position: relative; z-index: 1; font-family: var(--f-display); font-weight: 400; font-size: 26px; letter-spacing: -.015em; margin: 26px 0 10px; }
.feat p { position: relative; z-index: 1; margin: 0; color: var(--dim); font-size: 16px; }
.coins { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 26px; }
.coin { display: flex; gap: 12px; align-items: center; padding: 14px; border-radius: 18px; background: rgba(7, 5, 12, .45); box-shadow: inset 0 0 0 1px var(--hair); }
.coin b { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 18px; }
.coin strong { display: block; font-weight: 500; font-size: 15px; }
.coin span { display: block; font-size: 12.5px; color: var(--mute); line-height: 1.3; }
.coin-gold b { color: var(--gold); background: rgba(244, 207, 106, .1); }
.coin-lav b { color: var(--lav); background: rgba(217, 203, 255, .1); }
.coin-pink b { color: var(--pink); background: rgba(255, 143, 203, .1); }
.wave { position: relative; z-index: 1; display: flex; align-items: center; gap: 5px; height: 64px; margin-top: 28px; }
.wave i { flex: 1; max-width: 8px; border-radius: 4px; background: linear-gradient(var(--green), #2fae79); height: 20%; animation: wave 1.3s ease-in-out infinite; }
.wave i:nth-child(3n) { animation-delay: -.3s; } .wave i:nth-child(3n+1) { animation-delay: -.7s; } .wave i:nth-child(4n) { animation-delay: -1s; } .wave i:nth-child(5n) { animation-delay: -.15s; }
@keyframes wave { 0%, 100% { height: 18%; } 50% { height: 100%; } }

/* galleria orizzontale */
.hscroll { position: relative; padding: clamp(80px, 10vw, 140px) 0; background: var(--bg-2); border-block: 1px solid var(--hair); overflow: hidden; }
.hscroll-head { margin-bottom: 56px; }
.hscroll-track { display: flex; gap: 26px; width: max-content; padding: 0 max(24px, calc((100vw - var(--wrap)) / 2)); }
.shot { margin: 0; width: min(560px, 80vw); flex: none; }
.shot .bezel-in { aspect-ratio: 960 / 792; background: #1b1d26; }
.shot img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.shot figcaption { display: flex; justify-content: space-between; gap: 16px; padding: 18px 8px 0; }
.shot figcaption b { font-family: var(--f-display); font-weight: 400; font-size: 22px; }
.shot figcaption span { color: var(--mute); font-size: 14px; text-align: right; }
.no-hpin .hscroll-track { overflow-x: auto; width: auto; scroll-snap-type: x mandatory; padding-bottom: 20px; scrollbar-width: none; }
.no-hpin .hscroll-track::-webkit-scrollbar { display: none; }
.no-hpin .shot { scroll-snap-align: center; }

.cta-end { padding-top: 0; }
.cta-card .bezel-in { padding: clamp(40px, 6vw, 80px); text-align: center; background: radial-gradient(60% 100% at 50% 0%, rgba(255, 143, 203, .18), transparent 70%), #110b1d; }
.cta-card .h2 { margin: 0 auto; max-width: 900px; position: relative; z-index: 1; }
.cta-row { position: relative; z-index: 1; display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 40px; }

/* ---------- Regolamento ---------- */
.switch { display: inline-flex; gap: 4px; padding: 5px; margin-top: 30px; border-radius: 999px; background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair-2); }
.switch a { padding: 10px 24px; border-radius: 999px; font-size: 15px; color: var(--dim); transition: background-color .5s var(--ease), color .5s var(--ease); }
.switch a:hover { color: var(--text); }
.switch a[aria-current="page"] { background: var(--text); color: var(--bg); }
.subhero-rules .lead { display: block; }
.search { position: relative; display: block; max-width: 560px; margin-top: 34px; }
.search i { position: absolute; left: 22px; top: 50%; transform: translateY(-50%); font-size: 20px; color: var(--mute); pointer-events: none; }
.search input {
  width: 100%; height: 60px; padding: 0 22px 0 54px; border-radius: 999px; border: 0; color: var(--text); font: inherit; font-size: 16px;
  background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--hair-2); transition: box-shadow .4s var(--ease), background-color .4s var(--ease);
}
.search input::placeholder { color: var(--mute); }
.search input:focus { outline: none; background: rgba(255,255,255,.07); box-shadow: inset 0 0 0 1px rgba(255, 143, 203, .5), 0 0 0 6px rgba(255, 143, 203, .1); }
.rules-section { padding: 40px 0 clamp(110px, 14vw, 180px); }
.rules-layout { display: grid; grid-template-columns: 250px 1fr; gap: 56px; align-items: start; }
.toc { position: sticky; top: 110px; }
.toc h2 { font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: flex; gap: 12px; padding: 9px 14px; border-radius: 12px; color: var(--dim); font-size: 15px; transition: background-color .4s var(--ease), color .4s var(--ease); }
.toc a span { font-family: var(--f-mono); font-size: 12px; color: var(--mute); padding-top: 2px; }
.toc a:hover, .toc a.is-active { background: rgba(255,255,255,.05); color: var(--text); }
.toc a.is-active span { color: var(--pink); }
.rule-block {
  position: relative; padding: 36px; border-radius: 25px; margin: 8px 8px 30px;
  background: linear-gradient(180deg, #140d21, #0e0a18);
  box-shadow: 0 0 0 7px rgba(255,255,255,.025), 0 0 0 8px var(--hair), inset 0 1px 0 rgba(255,255,255,.07);
}
.rule-block > header { display: flex; align-items: baseline; gap: 16px; margin-bottom: 18px; }
.rule-block h2 { font-family: var(--f-display); font-weight: 400; font-size: clamp(26px, 2.6vw, 34px); letter-spacing: -.015em; margin: 0; }
.rule-num { font-family: var(--f-mono); font-size: 12px; color: var(--pink); }
.rule-block p { color: var(--dim); margin: 0 0 12px; }
.rule-list { list-style: none; padding: 0; margin: 0; counter-reset: r; }
.rule-list li { counter-increment: r; display: grid; grid-template-columns: 40px 1fr; gap: 8px; padding: 14px 0; border-top: 1px solid var(--hair); color: var(--dim); }
.rule-list li:first-child { border-top: 0; }
.rule-list li::before { content: counter(r, decimal-leading-zero); font-family: var(--f-mono); font-size: 12px; color: var(--mute); padding-top: 4px; }
.rule-list li.is-allowed { color: var(--text); counter-increment: none; }
.rule-list li.is-allowed::before { content: "✓"; font-size: 15px; color: var(--green); padding-top: 0; }
.rule-list li[hidden], .rule-block[hidden] { display: none; }
mark { background: rgba(255, 143, 203, .28); color: var(--text); border-radius: 4px; padding: 0 2px; }
.rules-empty { margin: 8px; padding: 50px; text-align: center; color: var(--mute); border-radius: var(--r); box-shadow: inset 0 0 0 1px var(--hair); }
.sanctions-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin: 24px 0 22px; }
.sanction { padding: 18px 10px; border-radius: 18px; text-align: center; font-size: 14px; font-weight: 500; background: rgba(255,255,255,.03); box-shadow: inset 0 0 0 1px var(--hair); }
.sanction i { display: block; font-style: normal; font-family: var(--f-mono); font-size: 10px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); margin-bottom: 6px; }
.sanction:nth-child(4) { box-shadow: inset 0 0 0 1px rgba(255, 143, 203, .3); }
.sanction:nth-child(5) { box-shadow: inset 0 0 0 1px rgba(255, 122, 122, .4); color: #ffb4b4; }

/* ---------- Footer ---------- */
.foot { position: relative; overflow: hidden; padding-top: clamp(90px, 10vw, 140px); background: var(--bg); border-top: 1px solid var(--hair); }
.foot-top { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; }
.foot-claim { font-family: var(--f-display); font-size: clamp(36px, 4.4vw, 60px); line-height: 1.05; letter-spacing: -.025em; margin: 22px 0 30px; }
.ipcard {
  display: inline-grid; text-align: left; gap: 4px; padding: 20px 26px; border-radius: 24px;
  background: rgba(255,255,255,.04); box-shadow: inset 0 0 0 1px var(--hair-2); transition: background-color .4s var(--ease), transform .6s var(--ease);
}
.ipcard:hover { background: rgba(255,255,255,.07); transform: translateY(-2px); }
.ipcard-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase; color: var(--mute); }
.ipcard-ip { font-family: var(--f-mono); font-size: clamp(20px, 2.2vw, 26px); color: var(--text); }
.ipcard-hint { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--pink-2); }
.ipcard.is-copied .ipcard-hint { color: var(--green); }
.foot-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; padding-top: 10px; }
.foot h4 { font-family: var(--f-mono); font-weight: 500; font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--mute); margin: 0 0 18px; }
.foot ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot ul a { color: var(--dim); font-size: 15.5px; transition: color .3s var(--ease); }
.foot ul a:hover { color: var(--text); }
.foot-giant {
  font-family: var(--f-display); font-style: italic; font-weight: 600; font-size: 25.5vw; line-height: .8; letter-spacing: -.045em; text-align: center;
  margin: 60px 0 -3.5vw; white-space: nowrap; user-select: none; font-variation-settings: "opsz" 144, "SOFT" 100, "WONK" 1;
  background: linear-gradient(180deg, rgba(217, 203, 255, .16), rgba(217, 203, 255, 0) 85%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.foot-bottom { position: relative; display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 24px 0 30px; border-top: 1px solid var(--hair); font-size: 13px; color: var(--mute); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 26px; z-index: 90; padding: 13px 22px; border-radius: 999px;
  background: var(--text); color: var(--bg); font-weight: 500; font-size: 15px; box-shadow: 0 20px 50px -14px rgba(0,0,0,.7);
  transform: translate(-50%, 160%); opacity: 0; visibility: hidden; transition: transform .7s var(--ease), opacity .4s var(--ease), visibility .7s;
}
.toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* ---------- Comparsa allo scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(56px); filter: blur(8px); transition: opacity 1.1s var(--ease-out), transform 1.1s var(--ease-out), filter 1.1s var(--ease-out); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
.js .reveal[data-d="1"] { transition-delay: .1s; } .js .reveal[data-d="2"] { transition-delay: .2s; }
.js .mode.reveal.is-in { transform: perspective(1200px) rotateX(var(--tx)) rotateY(var(--ty)); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .island-links { display: none; }
  .burger { display: block; }
  .island { left: 16px; right: 16px; transform: none; justify-content: space-between; padding-left: 18px; }
  .island.is-hidden { transform: translateY(-140%); }
  .island-logo { margin-right: auto; }
  .bento-modes { grid-template-columns: 1fr 1fr; }
  .mode-smp { grid-column: 1 / -1; grid-row: auto; }
  .mode-surv, .mode-soon { grid-column: span 1; }
  .join-grid, .split, .discord .bezel-in, .season .bezel-in { grid-template-columns: 1fr; }
  .mc { transform: none; }
  .bento { grid-template-columns: 1fr 1fr; }
  .span-7, .span-5, .span-4 { grid-column: span 1; }
  .span-7 { grid-column: 1 / -1; }
  .foot-top { grid-template-columns: 1fr; }
  .rules-layout { grid-template-columns: 1fr; gap: 20px; }
  .toc { position: static; }
  .toc ol { display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .toc a { white-space: nowrap; box-shadow: inset 0 0 0 1px var(--hair); }
}
@media (max-width: 767px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .island { top: 12px; left: 12px; right: 12px; }
  .island-ip { position: relative; width: 44px; padding: 0; justify-content: center; margin-left: 0; }
  .island-ip span[data-server-ip] { display: none; }
  .island-ip .dot { position: absolute; top: 9px; right: 9px; width: 6px; height: 6px; }
  .hero { padding: 110px 0 120px; }
  .branch { width: 80vw; opacity: .8; }
  .branch-l { left: -26vw; top: 2vh; }
  .branch-r { right: -30vw; top: 6vh; }
  .hero-cta { width: 100%; max-width: 380px; flex-direction: column; }
  .hero-cta .btn { width: 100%; justify-content: space-between; }
  .subhero .hero-cta { max-width: none; }
  .bento-modes, .bento, .stats-grid, .coins { grid-template-columns: 1fr; }
  .mode-surv, .mode-soon, .span-7 { grid-column: auto; }
  .mode-smp .bezel-in { min-height: 0; }
  .mode-shots { height: 220px; }
  .mode { transform: none !important; }
  .mc-screen { padding: 20px 14px; }
  .mc-icon { width: 48px; height: 48px; }
  .mc-name { font-size: 16px; } .mc-motd { font-size: 13px; }
  .mc-buttons { grid-template-columns: 1fr; }
  .countdown { grid-template-columns: repeat(2, 1fr); }
  .countdown div { min-width: 0; }
  .foot-cols { grid-template-columns: 1fr 1fr; }
  .sanctions-row { grid-template-columns: 1fr 1fr; }
  .sanction:last-child { grid-column: 1 / -1; }
  .rule-block { padding: 26px 20px; }
  .discord-bg { font-size: 260px; }
  .ticker { padding: 22px 0; }
  .shot figcaption { flex-direction: column; gap: 2px; }
  .shot figcaption span { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  .js .reveal, .js .reveal-hero { opacity: 1; transform: none; filter: none; }
  .statement-text .w { opacity: 1; }
}

/* galleria fissata: tutto deve stare in uno schermo */
.hscroll.is-pinned { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 100px 0 40px; }
.hscroll.is-pinned .hscroll-head { margin-bottom: 36px; }
.hscroll.is-pinned .hscroll-head .lead { margin-top: 12px; }
.hscroll.is-pinned .h2 { font-size: clamp(34px, 4.2vw, 60px); margin-top: 16px; }
.hscroll.is-pinned .shot { width: min(560px, 80vw, calc((100svh - 400px) * 1.2)); }

/* Font di Minecraft (MIT, @south-paw/typeface-minecraft) per la schermata "Multigiocatore".
   Le lettere maiuscoletto (ᴍʏʀɪᴄᴀᴇ) non ci sono e usano Pixelify Sans, come in gioco usano un font di riserva. */
@font-face { font-family: "Minecraft"; src: url("../fonts/minecraft.woff2?v=2") format("woff2"); font-display: swap; }
.mc-count { font-variant-numeric: tabular-nums; letter-spacing: .02em; }

/* MOTD uguale a quello del proxy */
.mc-motd-live { display: grid; justify-items: center; text-align: center; gap: 2px; margin-top: 6px; font-size: 14px; letter-spacing: .02em; text-shadow: none; }
.mc-motd-live span, .mc-motd-live b { text-shadow: 2px 2px 0 rgba(20, 8, 30, .9); }
.motd-l1 { white-space: nowrap; }
.motd-l1 b { font-weight: 700; }
.g-bar, .g-name, .g-gold, .g-cosm { background-clip: text; -webkit-background-clip: text; color: transparent; text-shadow: none !important; filter: drop-shadow(2px 2px 0 rgba(20, 8, 30, .9)); }
.g-bar { background-image: linear-gradient(90deg, #ff8fcb, #b9a4f2); letter-spacing: -.12em; }
.g-bar-r { background-image: linear-gradient(90deg, #b9a4f2, #ff8fcb); }
.g-name { background-image: linear-gradient(90deg, #ffd6ec, #d9cbff, #a98bff); font-weight: 700; }
.g-gold { background-image: linear-gradient(90deg, #f4cf6a, #ffb0dc); }
.g-cosm { background-image: linear-gradient(90deg, #ff8fcb, #9b7bff); }
.c-pink { color: #ffc2e2; } .c-lav { color: #c9a8ff; } .c-rose { color: #ff8fcb; } .c-gold { color: #f4cf6a; }
.c-blue { color: #8c9eff; } .c-blue2 { color: #c7cdff; font-weight: 700; }
.motd-l2 { display: grid; width: 100%; }
.motd-l2 > div { grid-area: 1 / 1; justify-self: center; white-space: nowrap; opacity: 0; transform: translateY(3px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.motd-l2 > div.is-on { opacity: 1; transform: none; }
@media (max-width: 767px) { .motd-l2 > div, .motd-l1 { white-space: normal; } }
