/* Calcetto v2 — mobile first. Nero OLED, accento lime, Unbounded per titoli e numeri, Inter per il testo. */
:root {
  --bg: #060807; --s1: #0f1311; --s2: #151a17; --s3: #1d231f;
  --line: rgba(255,255,255,.07); --line-2: rgba(255,255,255,.12);
  --text: #f1f4f2; --muted: #8b958f; --dim: #5d6661;
  --lime: #c8ff2e; --lime-ink: #0b1000; --lime-soft: color-mix(in srgb, var(--lime) 12%, transparent);
  --blue: #4d7cff; --ok: #3ddc84; --bad: #ff5d5d; --warn: #ffb53d;
  --ok-soft: rgba(61,220,132,.13); --bad-soft: rgba(255,93,93,.13); --warn-soft: rgba(255,181,61,.13);
  --r: 22px; --r-sm: 14px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --display: 'Unbounded', var(--font);
  --st: env(safe-area-inset-top, 0px); --sb: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.2,.9,.25,1.1); --ease-out: cubic-bezier(.16,1,.3,1);
  color-scheme: dark;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--bg); }
body {
  font-family: var(--font); color: var(--text); font-size: 15px; line-height: 1.4;
  -webkit-font-smoothing: antialiased; overscroll-behavior-y: none; min-height: 100dvh;
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
input, textarea, select { font-size: 16px; } /* niente zoom su iOS */
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -.02em; font-weight: 700; }
.muted { color: var(--muted); } .dim { color: var(--dim); } .lime { color: var(--lime); }
.small { font-size: 13px; } .xs { font-size: 11px; }
.num { font-family: var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; } .between { justify-content: space-between; } .grow { flex: 1; min-width: 0; }
.stack > * + * { margin-top: 12px; }
.center { text-align: center; }
.ell { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hidden { display: none !important; }

/* sfondo vivo */
.aurora { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.aurora i { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(90px); opacity: .22; }
.aurora i:nth-child(1) { background: var(--lime); top: -320px; right: -260px; animation: float 18s ease-in-out infinite alternate; }
.aurora i:nth-child(2) { background: var(--blue); top: -260px; left: -360px; opacity: .14; animation: float 22s ease-in-out infinite alternate-reverse; }
@keyframes float { to { transform: translate(-60px, 80px) scale(1.15); } }

/* ---------- pagina ---------- */
.view { position: relative; z-index: 1; max-width: 560px; margin: 0 auto; padding: calc(var(--st) + 14px) 16px calc(var(--sb) + 112px); }
.view.enter > * { animation: rise .5s var(--ease-out) both; }
.view.enter > *:nth-child(2) { animation-delay: .04s; } .view.enter > *:nth-child(3) { animation-delay: .08s; }
.view.enter > *:nth-child(4) { animation-delay: .12s; } .view.enter > *:nth-child(n+5) { animation-delay: .16s; }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.view > * + * { margin-top: 14px; }

.hdr { display: flex; align-items: flex-end; gap: 12px; padding: 6px 2px 4px; }
.hdr .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.hdr h1 { font-size: 30px; font-weight: 800; line-height: 1.05; margin-top: 4px; }
.hdr .back { width: 40px; height: 40px; border-radius: 50%; background: var(--s2); border: 1px solid var(--line); display: grid; place-items: center; flex-shrink: 0; align-self: center; }
.me-btn { margin-left: auto; position: relative; flex-shrink: 0; align-self: center; }
.me-btn .av { width: 44px; height: 44px; font-size: 22px; }
.me-btn .badge-dot { position: absolute; right: -1px; top: -1px; width: 12px; height: 12px; border-radius: 50%; background: var(--lime); border: 2px solid var(--bg); }
.sec-t { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 2px 0; }
.sec-t h2 { font-size: 15px; font-weight: 700; }
.sec-t a, .sec-t button { color: var(--lime); font-size: 13px; font-weight: 600; }

/* ---------- superfici ---------- */
.card { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; position: relative; overflow: hidden; }
.card.tap { transition: transform .15s; } .card.tap:active { transform: scale(.98); }
.bento { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bento .card { padding: 14px; min-height: 112px; display: flex; flex-direction: column; }
.bento .wide { grid-column: span 2; min-height: 0; }
.tile-k { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.tile-v { font-family: var(--display); font-size: 30px; font-weight: 800; letter-spacing: -.04em; margin-top: auto; line-height: 1; }
.tile-s { font-size: 12px; color: var(--muted); margin-top: 6px; }
.empty { text-align: center; padding: 28px 16px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 6px; }

/* ---------- gruppi ---------- */
.hdr.col { flex-direction: column; align-items: flex-start; gap: 14px; }
.gchip { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px 0 5px; border-radius: 99px; background: var(--s1); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; max-width: 70%; }
.gchip svg { width: 18px; height: 18px; fill: none; stroke: var(--muted); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.glogo { width: 34px; height: 34px; border-radius: 50%; object-fit: contain; flex-shrink: 0; display: inline-grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 12px; }
.glogo.sm { width: 30px; height: 30px; font-size: 11px; }
.glogo.xl { width: 72px; height: 72px; font-size: 22px; filter: drop-shadow(0 8px 18px rgba(0,0,0,.5)); }
.glogo.xxl { width: 140px; height: 140px; font-size: 40px; filter: drop-shadow(0 12px 30px rgba(0,0,0,.6)); }
.av:has(> .glogo) { background: none; border: 0; }
.gcard { width: 100%; display: flex; align-items: center; gap: 16px; padding: 18px; border-color: color-mix(in srgb, var(--ga) 35%, transparent);
  background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--ga) 18%, transparent), transparent 60%), var(--s1); }
.gname { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
.swatch { width: 40px; height: 40px; border-radius: 50%; border: 3px solid transparent; box-shadow: inset 0 0 0 1px rgba(255,255,255,.15); transition: transform .2s var(--ease); }
.swatch.on { border-color: #fff; transform: scale(1.1); }

/* ---------- prossima partita ---------- */
.hero { padding: 20px; border-radius: 28px; border: 1px solid color-mix(in srgb, var(--lime) 22%, transparent);
  background:
    radial-gradient(120% 90% at 100% 0%, color-mix(in srgb, var(--lime) 20%, transparent), transparent 55%),
    radial-gradient(90% 80% at 0% 100%, rgba(77,124,255,.16), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--lime) 5%, #101311), #0b0e0c); }
.hero::after { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background: repeating-linear-gradient(90deg, transparent 0 38px, rgba(255,255,255,.018) 38px 76px); }
.hero > * { position: relative; z-index: 1; }
.hero .tag { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.hero .tag .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 0 var(--lime); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 8px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
.hero .when { font-family: var(--display); font-size: 26px; font-weight: 800; line-height: 1.1; margin-top: 10px; text-transform: capitalize; }
.hero .where { color: var(--muted); margin-top: 4px; font-size: 14px; }
.cd { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 18px; }
.cd div { background: rgba(0,0,0,.35); border: 1px solid var(--line); border-radius: 16px; padding: 10px 0 8px; text-align: center; backdrop-filter: blur(6px); }
.cd b { display: block; font-family: var(--display); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: -.03em; }
.cd span { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cd.now b { color: var(--lime); }
.fill { margin-top: 18px; }
.fill .bar { height: 8px; border-radius: 99px; background: rgba(255,255,255,.08); overflow: hidden; margin-top: 8px; }
.fill .bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, color-mix(in srgb, var(--lime) 60%, #fff), var(--lime)); box-shadow: 0 0 16px color-mix(in srgb, var(--lime) 60%, transparent); transition: width .8s var(--ease-out); }

/* rsvp */
.rsvp { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 8px; margin-top: 16px; }
.rsvp button { height: 56px; border-radius: 18px; background: rgba(255,255,255,.06); border: 1px solid var(--line-2); font-weight: 700; font-size: 15px; display: flex; align-items: center; justify-content: center; gap: 6px; transition: transform .15s var(--ease), background .2s; }
.rsvp button:active { transform: scale(.95); }
.rsvp .y { font-family: var(--display); font-size: 14px; }
.rsvp .y.on { background: var(--lime); color: var(--lime-ink); border-color: transparent; box-shadow: 0 0 0 3px color-mix(in srgb, var(--lime) 25%, transparent), 0 8px 30px color-mix(in srgb, var(--lime) 35%, transparent); }
.rsvp .m.on { background: var(--warn-soft); border-color: var(--warn); color: var(--warn); }
.rsvp .n.on { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.status-line { margin-top: 12px; font-size: 13px; color: var(--muted); display: flex; align-items: center; gap: 8px; }

/* ---------- elementi ---------- */
.av { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--s3); border: 1px solid var(--line-2); font-size: 18px; flex-shrink: 0; line-height: 1; }
.av.lg { width: 56px; height: 56px; font-size: 28px; } .av.xl { width: 88px; height: 88px; font-size: 46px; }
.av.sm { width: 28px; height: 28px; font-size: 14px; }
.av.me { border-color: var(--lime); box-shadow: 0 0 0 2px color-mix(in srgb, var(--lime) 25%, transparent); }
.avs { display: flex; align-items: center; }
.avs .av { width: 30px; height: 30px; font-size: 15px; margin-left: -8px; border: 2px solid #0e120f; }
.avs .av:first-child { margin-left: 0; }
.avs .more { font-size: 12px; font-weight: 700; color: var(--muted); margin-left: 8px; }

.btn { height: 50px; padding: 0 20px; border-radius: 16px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--s3); border: 1px solid var(--line-2); transition: transform .15s var(--ease), opacity .2s; white-space: nowrap; }
.btn:active { transform: scale(.96); }
.btn.pri { background: var(--lime); color: var(--lime-ink); border-color: transparent; }
.btn.danger { background: var(--bad-soft); color: var(--bad); border-color: rgba(255,93,93,.3); }
.btn.ghost { background: transparent; }
.btn.block { width: 100%; }
.btn.sm { height: 38px; padding: 0 14px; border-radius: 12px; font-size: 13px; }
.btn[disabled] { opacity: .4; pointer-events: none; }
.btns { display: flex; gap: 8px; } .btns > * { flex: 1; }

.pill { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; letter-spacing: .02em; background: var(--s3); color: var(--muted); white-space: nowrap; }
.pill.lime { background: var(--lime-soft); color: var(--lime); }
.pill.ok { background: var(--ok-soft); color: var(--ok); } .pill.bad { background: var(--bad-soft); color: var(--bad); } .pill.warn { background: var(--warn-soft); color: var(--warn); }

.seg { display: flex; padding: 4px; gap: 4px; background: var(--s1); border: 1px solid var(--line); border-radius: 16px; position: relative; }
.seg button { flex: 1; height: 38px; border-radius: 12px; font-weight: 600; font-size: 13px; color: var(--muted); transition: background .2s, color .2s; white-space: nowrap; }
.seg button.on { background: var(--s3); color: var(--text); box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px; }
.chips::-webkit-scrollbar { display: none; }
.chip { height: 36px; padding: 0 14px; border-radius: 99px; border: 1px solid var(--line-2); background: var(--s1); font-size: 13px; font-weight: 600; white-space: nowrap; color: var(--muted); flex-shrink: 0; }
.chip.on { background: var(--text); color: #000; border-color: transparent; }

.list { background: var(--s1); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; min-height: 60px; position: relative; }
.li + .li::before { content: ''; position: absolute; top: 0; left: 62px; right: 0; height: 1px; background: var(--line); }
.li.tap:active { background: var(--s2); }
.li .t { font-weight: 600; } .li .s { font-size: 12px; color: var(--muted); margin-top: 1px; }
.li .chev { color: var(--dim); font-size: 18px; }
.li .rk { width: 22px; text-align: center; font-family: var(--display); font-weight: 700; font-size: 13px; color: var(--muted); flex-shrink: 0; }
.li.me-row { background: linear-gradient(90deg, var(--lime-soft), transparent 70%); }
.li .pts { font-family: var(--display); font-weight: 800; font-size: 18px; text-align: right; min-width: 40px; }
.form { display: flex; gap: 3px; } .form i { width: 6px; height: 6px; border-radius: 50%; background: var(--dim); }
.form i.V { background: var(--ok); } .form i.P { background: var(--warn); } .form i.S { background: var(--bad); }

/* ---------- partite ---------- */
.mcard { display: flex; gap: 14px; align-items: center; }
.mcard .date { width: 56px; height: 62px; border-radius: 16px; background: var(--s3); display: flex; flex-direction: column; align-items: center; justify-content: center; flex-shrink: 0; }
.mcard .date b { font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1; }
.mcard .date span { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-top: 3px; }
.mcard.next .date { background: var(--lime); color: var(--lime-ink); } .mcard.next .date span { color: rgba(0,0,0,.6); }
.score-mini { font-family: var(--display); font-weight: 800; font-size: 20px; letter-spacing: -.03em; white-space: nowrap; }

.score { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; padding: 8px 0; }
.score .tm { text-align: center; min-width: 0; }
.score .crest { width: 54px; height: 54px; border-radius: 18px; margin: 0 auto 8px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 20px; }
.score .tm b { display: block; font-size: 14px; } .score .tm span { font-size: 11px; color: var(--muted); }
.score .res { font-family: var(--display); font-size: 48px; font-weight: 900; letter-spacing: -.05em; line-height: 1; }
.score .res i { color: var(--dim); font-style: normal; margin: 0 4px; }
.scorers { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 16px; font-size: 13px; color: var(--muted); margin-top: 6px; }
.scorers div:nth-child(even) { text-align: right; }

/* ---------- campo ---------- */
.pitch { position: relative; aspect-ratio: 9 / 16; border-radius: 26px; overflow: hidden; border: 1px solid rgba(255,255,255,.1);
  background: repeating-linear-gradient(180deg, #0f3b23 0 10%, #11432a 10% 20%); box-shadow: inset 0 0 80px rgba(0,0,0,.55); }
.pitch .ln { position: absolute; border: 2px solid rgba(255,255,255,.35); pointer-events: none; }
.pitch .ln.mid { left: 0; right: 0; top: 50%; border-width: 2px 0 0; }
.pitch .ln.circ { left: 50%; top: 50%; width: 30%; aspect-ratio: 1; border-radius: 50%; transform: translate(-50%, -50%); }
.pitch .ln.bt, .pitch .ln.bb { left: 22%; right: 22%; height: 13%; }
.pitch .ln.bt { top: -2px; border-top: 0; border-radius: 0 0 14px 14px; } .pitch .ln.bb { bottom: -2px; border-bottom: 0; border-radius: 14px 14px 0 0; }
.tok { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; width: 70px; transition: left .5s var(--ease-out), top .5s var(--ease-out); }
.tok .sh { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 13px; box-shadow: 0 6px 16px rgba(0,0,0,.5); border: 2px solid rgba(255,255,255,.85); transition: transform .2s var(--ease); }
.tok .tn { margin-top: 4px; font-size: 11px; font-weight: 700; background: rgba(0,0,0,.6); padding: 2px 7px; border-radius: 99px; max-width: 70px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; backdrop-filter: blur(4px); }
.tok.me .sh { box-shadow: 0 0 0 4px color-mix(in srgb, var(--lime) 50%, transparent), 0 6px 16px rgba(0,0,0,.5); }
.tok.sel .sh { transform: scale(1.25); box-shadow: 0 0 0 4px #fff, 0 0 30px rgba(255,255,255,.6); }
.pitch-t { position: absolute; left: 12px; font-size: 10px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; padding: 4px 9px; border-radius: 99px; background: rgba(0,0,0,.45); }
.edit-hint { font-size: 12px; color: var(--muted); text-align: center; padding: 4px 0; }

/* ---------- classifica ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; align-items: end; gap: 8px; padding-top: 10px; }
.podium .p { text-align: center; min-width: 0; }
.podium .p .av { margin-bottom: 8px; }
.podium .p .nm { font-weight: 700; font-size: 13px; }
.podium .p .pt { font-size: 12px; color: var(--muted); }
.podium .step { margin-top: 10px; border-radius: 18px 18px 6px 6px; display: grid; place-items: center; font-family: var(--display); font-weight: 900; font-size: 28px; color: rgba(255,255,255,.9); }
.podium .p1 .step { height: 118px; background: linear-gradient(180deg, var(--lime), #6f9b00); color: var(--lime-ink); box-shadow: 0 10px 40px color-mix(in srgb, var(--lime) 30%, transparent); }
.podium .p2 .step { height: 86px; background: linear-gradient(180deg, #d9dee2, #707a80); color: #111; }
.podium .p3 .step { height: 64px; background: linear-gradient(180deg, #e0a36b, #8a5428); color: #1a0d00; }
.podium .p1 .av { width: 72px; height: 72px; font-size: 36px; border: 3px solid var(--lime); }
.podium .crown { font-size: 22px; display: block; margin-bottom: -4px; }

/* ---------- figurine ---------- */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fut { position: relative; aspect-ratio: 3 / 4.1; border-radius: 18px; padding: 10px 8px 8px; display: flex; flex-direction: column; align-items: center; overflow: hidden;
  background: linear-gradient(160deg, #262d29, #121614 60%); border: 1px solid var(--line-2); transition: transform .15s; }
.fut:active { transform: scale(.96); }
.fut.gold { background: linear-gradient(160deg, color-mix(in srgb, var(--lime) 45%, #fff), var(--lime) 40%, color-mix(in srgb, var(--lime) 55%, #000)); color: var(--lime-ink); border-color: transparent; }
.fut.silver { background: linear-gradient(160deg, #f4f6f8, #a9b3ba 50%, #5f686e); color: #111; border-color: transparent; }
.fut::before { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.25) 45%, transparent 60%); transform: translateX(-100%); animation: shine 5s infinite; pointer-events: none; }
@keyframes shine { 0%, 70% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.fut .ovr { position: absolute; left: 9px; top: 8px; text-align: center; line-height: 1; }
.fut .ovr b { font-family: var(--display); font-weight: 900; font-size: 20px; display: block; }
.fut .ovr span { font-size: 9px; font-weight: 800; letter-spacing: .06em; opacity: .75; }
.fut .em { font-size: 40px; margin-top: 16px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.35)); }
.fut .nm { margin-top: auto; font-family: var(--display); font-weight: 700; font-size: 11px; text-transform: uppercase; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; letter-spacing: 0; }
.fut .ln2 { display: flex; gap: 6px; font-size: 10px; font-weight: 700; opacity: .7; margin-top: 3px; }
.fut.off { opacity: .45; }

.statgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.statgrid div { background: var(--s2); border-radius: 16px; padding: 12px 6px; text-align: center; }
.statgrid b { font-family: var(--display); font-size: 20px; font-weight: 800; display: block; letter-spacing: -.03em; }
.statgrid span { font-size: 10px; color: var(--muted); font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.badges { display: flex; flex-wrap: wrap; gap: 6px; }
.badges .pill { font-size: 12px; padding: 6px 10px; background: var(--s2); color: var(--text); }

/* ---------- dock ---------- */
.dock { position: fixed; z-index: 30; left: 50%; bottom: calc(var(--sb) + 12px); transform: translateX(-50%); width: min(calc(100% - 32px), 420px);
  display: grid; grid-template-columns: repeat(4, 1fr); padding: 6px; border-radius: 26px;
  background: rgba(20,24,22,.72); backdrop-filter: blur(22px) saturate(1.6); -webkit-backdrop-filter: blur(22px) saturate(1.6);
  border: 1px solid rgba(255,255,255,.1); box-shadow: 0 18px 50px rgba(0,0,0,.6); transition: transform .35s var(--ease-out), opacity .3s; }
.dock.away { transform: translate(-50%, 140%); opacity: 0; }
.dock a { position: relative; z-index: 1; height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: var(--muted); font-size: 10px; font-weight: 600; transition: color .25s; }
.dock a svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s var(--ease); }
.dock a.on { color: var(--lime-ink); } .dock a.on svg { transform: translateY(-1px) scale(1.05); }
.dock-glow { position: absolute; z-index: 0; top: 6px; left: 6px; height: 54px; width: calc((100% - 12px) / 4); border-radius: 20px; background: var(--lime); box-shadow: 0 6px 24px color-mix(in srgb, var(--lime) 40%, transparent); transition: transform .45s var(--ease); transform: translateX(calc(var(--on, 0) * 100%)); }

/* ---------- bottom sheet ---------- */
.scrim { position: fixed; inset: 0; z-index: 50; background: rgba(0,0,0,.55); backdrop-filter: blur(3px); animation: fade .25s both; }
.scrim.out { animation: fade .22s reverse both; }
@keyframes fade { from { opacity: 0; } }
.sheet { position: fixed; z-index: 51; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; max-height: calc(100dvh - var(--st) - 24px);
  background: #111513; border: 1px solid var(--line-2); border-bottom: 0; border-radius: 30px 30px 0 0; display: flex; flex-direction: column;
  animation: up .42s var(--ease-out) both; box-shadow: 0 -20px 60px rgba(0,0,0,.6); }
.sheet.out { animation: up .25s ease-in reverse both; }
@keyframes up { from { transform: translateY(100%); } }
.sheet .grab { padding: 10px 0 4px; display: grid; place-items: center; touch-action: none; flex-shrink: 0; }
.sheet .grab i { width: 40px; height: 5px; border-radius: 99px; background: rgba(255,255,255,.22); }
.sheet .sh-h { padding: 4px 20px 10px; display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.sheet .sh-h h2 { font-size: 20px; flex: 1; }
.sheet .x { width: 34px; height: 34px; border-radius: 50%; background: var(--s3); display: grid; place-items: center; color: var(--muted); font-size: 16px; }
.sheet .sh-b { padding: 4px 20px calc(var(--sb) + 20px); overflow-y: auto; overscroll-behavior: contain; }
.sheet .sh-b > * + * { margin-top: 12px; }

/* ---------- moduli ---------- */
.field { display: block; }
.field > span { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin: 0 0 6px 2px; }
.in { width: 100%; height: 52px; padding: 0 16px; border-radius: 16px; background: var(--s2); border: 1px solid var(--line-2); outline: none; transition: border-color .2s; }
textarea.in { height: auto; min-height: 110px; padding: 14px 16px; resize: vertical; line-height: 1.45; }
.in:focus { border-color: var(--lime); }
select.in { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 22px) 50%, calc(100% - 16px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sw { position: relative; width: 52px; height: 32px; flex-shrink: 0; }
.sw input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; z-index: 1; }
.sw i { position: absolute; inset: 0; border-radius: 99px; background: var(--s3); border: 1px solid var(--line-2); transition: background .2s; }
.sw i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: transform .3s var(--ease); }
.sw input:checked + i { background: var(--lime); } .sw input:checked + i::after { transform: translateX(20px); background: var(--lime-ink); }
.step { display: flex; align-items: center; gap: 4px; background: var(--s2); border: 1px solid var(--line-2); border-radius: 14px; padding: 3px; flex-shrink: 0; }
.step button { width: 34px; height: 34px; border-radius: 11px; background: var(--s3); font-size: 18px; font-weight: 700; }
.step b { min-width: 30px; text-align: center; font-family: var(--display); font-weight: 700; }
.emojis { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.emojis button { aspect-ratio: 1; border-radius: 14px; background: var(--s2); font-size: 22px; border: 1px solid transparent; }
.emojis button.on { border-color: var(--lime); background: var(--lime-soft); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.pinpad button { height: 62px; border-radius: 20px; background: var(--s2); font-family: var(--display); font-size: 22px; font-weight: 600; transition: transform .1s, background .2s; }
.pinpad button:active { transform: scale(.92); background: var(--s3); }
.pindots { display: flex; justify-content: center; gap: 14px; margin-top: 10px; }
.pindots i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line-2); transition: background .15s, transform .2s var(--ease); }
.pindots i.on { background: var(--lime); border-color: var(--lime); transform: scale(1.1); }
.shake { animation: shake .4s; }
@keyframes shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }

.toast { position: fixed; z-index: 90; left: 50%; top: calc(var(--st) + 12px); transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 99px; background: rgba(240,244,242,.96); color: #000; font-weight: 600; font-size: 14px;
  box-shadow: 0 12px 40px rgba(0,0,0,.5); animation: drop .45s var(--ease) both; display: flex; gap: 8px; align-items: center; }
.toast.err { background: var(--bad); color: #fff; }
.toast.out { animation: drop .25s reverse both; }
@keyframes drop { from { opacity: 0; transform: translate(-50%, -30px) scale(.9); } }
.confetti { position: fixed; top: -12px; width: 9px; height: 14px; z-index: 95; border-radius: 2px; pointer-events: none; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(105vh) rotate(720deg); opacity: .7; } }

/* ---------- partita dal vivo ---------- */
.live { position: fixed; inset: 0; z-index: 40; background: #000; display: flex; flex-direction: column; padding: calc(var(--st) + 10px) 16px calc(var(--sb) + 16px); }
.live .top { display: flex; align-items: center; justify-content: space-between; }
.live .clock { font-family: var(--display); font-size: 64px; font-weight: 900; letter-spacing: -.05em; text-align: center; font-variant-numeric: tabular-nums; margin: 14px 0 4px; }
.live .clock.run { color: var(--lime); text-shadow: 0 0 40px color-mix(in srgb, var(--lime) 40%, transparent); }
.live .halves { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; flex: 1; min-height: 0; margin-top: 12px; }
.live .side { border-radius: 28px; display: flex; flex-direction: column; align-items: center; justify-content: center; position: relative; overflow: hidden; transition: transform .12s; user-select: none; -webkit-user-select: none; }
.live .side:active { transform: scale(.97); }
.live .side .g { font-family: var(--display); font-size: 110px; font-weight: 900; line-height: 1; letter-spacing: -.06em; }
.live .side .n { font-weight: 800; font-size: 14px; text-transform: uppercase; letter-spacing: .1em; opacity: .8; }
.live .side .plus { position: absolute; bottom: 14px; font-size: 12px; font-weight: 700; opacity: .7; }
.live .side.pop .g { animation: pop .5s var(--ease); }
@keyframes pop { 40% { transform: scale(1.3); } }
.live .feed { max-height: 26vh; overflow-y: auto; margin-top: 12px; }
.live .ev { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-bottom: 1px solid var(--line); font-size: 14px; }
.live .ev .min { font-family: var(--display); font-weight: 700; color: var(--muted); width: 36px; font-size: 12px; }
.live .ctrl { display: grid; grid-template-columns: 1fr 1.4fr 1fr; gap: 8px; margin-top: 12px; }

@media (min-width: 700px) {
  .cards { grid-template-columns: repeat(4, 1fr); }
  .pitch { aspect-ratio: 4 / 5; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* ---------- fasi, avvisi, ruoli ---------- */
.bell { position: relative; margin-left: auto; width: 44px; height: 44px; border-radius: 50%; background: var(--s1); border: 1px solid var(--line-2); display: grid; place-items: center; flex-shrink: 0; }
.bell svg { width: 21px; height: 21px; fill: none; stroke: var(--text); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bell i { position: absolute; top: -3px; right: -3px; min-width: 19px; height: 19px; padding: 0 5px; border-radius: 99px; background: var(--bad); color: #fff; font-style: normal; font-size: 11px; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--bg); }
.phases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 16px; }
.phases .ph { position: relative; padding: 9px 8px 8px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); min-width: 0; }
.phases .ph b { display: block; font-size: 11px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.phases .ph span { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; text-transform: capitalize; }
.phases .ph.done { opacity: .5; }
.phases .ph.done b::after { content: ' ✓'; }
.phases .ph.now { background: var(--lime-soft); border-color: color-mix(in srgb, var(--lime) 45%, transparent); }
.phases .ph.now b { color: var(--lime); }
.lockbox { margin-top: 16px; padding: 14px 16px; border-radius: 18px; background: rgba(255,255,255,.05); border: 1px dashed var(--line-2); font-size: 14px; font-weight: 600; color: var(--muted); }
.vet { font-size: 12px; }
.fut-vet { position: absolute; right: 9px; top: 8px; font-size: 14px; }
.fut-adm { position: absolute; right: 7px; top: 30px; font-size: 8px; font-weight: 900; letter-spacing: .08em; padding: 2px 5px; border-radius: 6px; background: rgba(0,0,0,.55); color: #fff; }
.glogo.lg { width: 52px; height: 52px; font-size: 16px; }
.req { border-color: color-mix(in srgb, var(--ga) 40%, transparent); background: radial-gradient(120% 120% at 0% 0%, color-mix(in srgb, var(--ga) 16%, transparent), transparent 60%), var(--s1); }
.chip.on { background: var(--text); }

/* ---------- pagamenti ---------- */
.payic { width: 36px; height: 36px; border-radius: 12px; display: inline-grid; place-items: center; color: #fff; font-family: var(--display); font-weight: 900; font-size: 16px; flex-shrink: 0; }
.pill .payic { width: 16px; height: 16px; border-radius: 5px; font-size: 9px; }
.paybox { display: flex; gap: 12px; align-items: flex-start; padding: 14px; border-radius: 20px; background: var(--s2); border: 1px solid var(--line); }
.paycard.due { border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.paycard.ok { border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.secure { display: flex; gap: 10px; padding: 12px 14px; border-radius: 16px; background: var(--ok-soft); color: var(--text); font-size: 12px; line-height: 1.45; }
.secure b { color: var(--ok); }

/* ---------- accesso e registrazione ---------- */
.auth { max-width: 420px; margin: 0 auto; padding-top: 4vh; }
.auth > * + * { margin-top: 16px; }
.auth-top { text-align: center; padding: 8px 0 6px; }
.auth-logo { width: 76px; height: 76px; border-radius: 24px; box-shadow: 0 16px 40px color-mix(in srgb, var(--lime) 25%, transparent); }
.auth-top .eyebrow { margin-top: 18px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.auth-top h1 { font-size: 28px; font-weight: 800; margin-top: 6px; }
.auth-top p { margin: 8px 0 0; font-size: 14px; }
.auth form .btn.pri { margin-top: 18px; }
.pw { position: relative; }
.pw .in { padding-right: 52px; }
.pw .eye { position: absolute; right: 6px; top: 6px; width: 40px; height: 40px; border-radius: 12px; font-size: 16px; opacity: .7; }
.steps { display: flex; gap: 6px; justify-content: center; }
.steps i { width: 28px; height: 4px; border-radius: 4px; background: var(--line-2); }
.steps i.on { background: var(--lime); }
.at-in { position: relative; }
.at-in > b { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--dim); font-weight: 700; pointer-events: none; }
.at-in > .in { padding-left: 32px; width: 100%; }
.in.otp { font-size: 24px; letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.pwlogin summary { list-style: none; cursor: pointer; }
.pwlogin summary::-webkit-details-marker { display: none; }
.pwlogin[open] summary { display: none; }
.or { display: flex; align-items: center; gap: 12px; color: var(--dim); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; }
.or::before, .or::after { content: ''; flex: 1; height: 1px; background: var(--line-2); }
.gbtn { display: flex; justify-content: center; min-height: 44px; }
img.av { object-fit: cover; }

/* ---------- foto profilo ---------- */
.photo-pick { display: flex; align-items: center; gap: 14px; }
.ph-circle { position: relative; width: 84px; height: 84px; border-radius: 50%; background: var(--s2); border: 2px dashed var(--line-2); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; cursor: pointer; }
.ph-circle span { font-size: 28px; }
.ph-circle img { width: 100%; height: 100%; object-fit: cover; }
.ph-circle input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tok .sh.ph { padding: 0; overflow: hidden; border-width: 3px; }
.tok .sh.ph img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.tok .sh { width: 44px; height: 44px; }
.fut-ph { width: 54%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; margin-top: 30px; border: 3px solid rgba(255,255,255,.35); box-shadow: 0 8px 18px rgba(0,0,0,.35); }
.fut.gold .fut-ph, .fut.silver .fut-ph { border-color: rgba(0,0,0,.25); }

/* ---------- telefoni piccoli e browser vecchi ---------- */
body { min-height: 100vh; min-height: 100dvh; }
.sheet { max-height: calc(100vh - 40px); max-height: calc(100dvh - var(--st) - 24px); }
.hdr.col > .row { min-width: 0; }
.gchip { flex: 1 1 auto; min-width: 0; max-width: none; }
.gchip .ell { flex: 1; min-width: 0; text-align: left; }
.bell { margin-left: 0; }
.btns > * { min-width: 0; }
.btn { max-width: 100%; }
.mcard .row { flex-wrap: wrap; }
.res-row { gap: 8px; padding: 8px 10px; flex-wrap: wrap; }
.res-row .sw { width: 44px; }
.live .ctrl .btn { padding: 0 10px; white-space: normal; line-height: 1.1; }
@media (max-width: 360px) {
  .view { padding-left: 12px; padding-right: 12px; }
  .chips { margin: 0 -12px; padding: 0 12px; }
  .status-line { flex-wrap: wrap; }
  .hdr h1 { font-size: 26px; }
  .hero { padding: 16px; }
  .hero .when { font-size: 22px; }
  .cd b { font-size: 20px; }
  .rsvp { grid-template-columns: 1.4fr 1fr 1fr; }
  .rsvp button { font-size: 14px; }
  .seg button { font-size: 12px; }
  .res-row > .grow { flex-basis: calc(100% - 40px); }
  .cards { grid-template-columns: repeat(2, 1fr); }
  .phases .ph b { font-size: 10px; }
  .live .side .g { font-size: 84px; }
  .live .clock { font-size: 52px; }
  .pitch { aspect-ratio: 9 / 17.5; }
  .tok .sh { width: 36px; height: 36px; font-size: 12px; }
  .tok .tn { font-size: 10px; padding: 1px 6px; margin-top: 2px; }
}
@media (max-width: 300px) {
  .gchip { flex: 0 0 auto; padding-right: 6px; }
  .gchip .ell { display: none; }   /* sul Fold chiuso resta il logo del gruppo */
  .bell { margin-left: auto; }
  .tok { width: 58px; }
  .tok .sh { width: 30px; height: 30px; font-size: 11px; border-width: 2px; }
  .tok .tn { font-size: 9px; max-width: 58px; padding: 1px 4px; }
}
.hero > .row.between { flex-wrap: wrap; gap: 6px; }

/* ---------- annullamenti ---------- */
.card.cancelled { border-color: color-mix(in srgb, var(--bad) 40%, transparent); background: linear-gradient(90deg, var(--bad-soft), transparent 70%), var(--s1); }
.card.alert { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.chip.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }

/* ---------- portiere ---------- */
.goalie { width: 100%; margin-top: 10px; padding: 14px 16px; border-radius: 16px; border: 1px dashed var(--line-2); background: rgba(255,255,255,.04); font-weight: 700; font-size: 14px; color: var(--text); }
.goalie.on { border-style: solid; border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }

/* ---------- bacheca e ricevute ---------- */
.thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; border-radius: 20px; overflow: hidden; }
.thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.post { padding: 14px; }
.pics { display: grid; gap: 4px; margin-top: 12px; border-radius: 16px; overflow: hidden; }
.pics.n1 { grid-template-columns: 1fr; } .pics.n2 { grid-template-columns: 1fr 1fr; } .pics.n3, .pics.n4 { grid-template-columns: 1fr 1fr; }
.pics.n3 button:first-child { grid-row: span 2; }
.pics button { position: relative; display: block; padding: 0; }
.pics img { width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; display: block; }
.pics.n1 img { aspect-ratio: 4 / 3; }
.pics.n3 button:first-child img { aspect-ratio: auto; }
.pics span { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0,0,0,.55); font: 800 28px var(--display); }
.like { padding: 8px 14px; border-radius: 99px; background: var(--s2); border: 1px solid var(--line-2); font-weight: 700; }
.like.on { border-color: var(--bad); background: var(--bad-soft); }
.fab { position: fixed; z-index: 31; right: max(16px, calc(50% - 264px)); bottom: calc(var(--sb) + 92px); height: 54px; padding: 0 22px; border-radius: 99px; background: var(--lime); color: var(--lime-ink); font: 800 16px var(--font); box-shadow: 0 12px 30px rgba(0,0,0,.5); }
.pickbox { position: relative; display: grid; place-items: center; height: 110px; border-radius: 20px; border: 2px dashed var(--line-2); background: var(--s2); font-weight: 700; }
.pickbox input, .receipt-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.receipt-btn { position: relative; overflow: hidden; }

/* ---------- grafica 2.0: momenti animati ---------- */
/* contatore dei convocati che scatta, barra che cresce, timbro «SI GIOCA!» */
.cnt { display: inline-block; }
.cnt.pop { animation: cntPop .6s var(--ease) both; }
@keyframes cntPop { 0% { transform: translateY(60%) scale(.6); opacity: 0; } 60% { transform: translateY(-10%) scale(1.3); opacity: 1; color: var(--lime); } 100% { transform: none; } }
.bar i.grow { animation: barGrow .9s var(--ease-out) both; }
@keyframes barGrow { from { width: var(--from); } }
.stamp { position: fixed; left: 50%; top: 42%; z-index: 96; translate: -50% -50%; rotate: -9deg; font-family: var(--display); font-weight: 900; font-size: clamp(34px, 11vw, 56px); letter-spacing: -.02em;
  color: var(--lime); border: 5px solid var(--lime); border-radius: 18px; padding: 6px 18px; background: rgba(6,8,7,.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none; white-space: nowrap; box-shadow: 0 20px 60px rgba(0,0,0,.5); animation: stampIn .5s var(--ease) both; }
.stamp.out { animation: stampOut .5s ease forwards; }
@keyframes stampIn { from { scale: 2.6; opacity: 0; } to { scale: 1; opacity: 1; } }
@keyframes stampOut { from { scale: 1; opacity: 1; } to { scale: .9; opacity: 0; } }

/* tabellone: le cifre girano gol dopo gol */
.res .dg { display: inline-block; min-width: .62em; text-align: center; }
.dg.flip { animation: digFlip .4s var(--ease-out) both; }
@keyframes digFlip { from { transform: perspective(300px) rotateX(-95deg); opacity: .2; } }
.scorers.late { animation: rise .5s var(--ease-out) 1.6s both; }

/* formazioni: i giocatori entrano dal centro e corrono al loro posto */
.pitch.enter .tok { animation: tokIn .8s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes tokIn { from { left: 50%; top: 50%; opacity: 0; transform: translate(-50%, -50%) scale(.3); } }

/* la scheda della partita che si allarga nella pagina */
::view-transition-group(mcard) { animation-duration: .45s; animation-timing-function: cubic-bezier(.16,1,.3,1); }
::view-transition-old(mcard), ::view-transition-new(mcard) { height: 100%; }

/* figurina dell'MVP */
@property --rx { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --ry { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --mx { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
@property --my { syntax: '<percentage>'; inherits: true; initial-value: 50%; }
.pill.gold { background: rgba(244,201,93,.14); color: #f4c95d; }
.mvp-mini { width: 40px; height: 48px; border-radius: 10px 10px 18px 18px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(155deg, #fff2c2, #f4c95d 40%, #b8862d 75%, #6e4c14); color: #2a1c05; font-family: var(--display); font-weight: 900; font-size: 15px; box-shadow: 0 4px 14px rgba(244,201,93,.3); }
.mvp-mini img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.mvpstage { display: grid; place-items: center; padding: 18px 0 24px; perspective: 900px; touch-action: none; background: radial-gradient(circle at 50% 35%, rgba(244,201,93,.16), transparent 62%); }
.mvpc { --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; width: 220px; max-width: 70vw; aspect-ratio: 220 / 314; position: relative; overflow: hidden; color: #2a1c05;
  transform: rotateX(var(--rx)) rotateY(var(--ry)); transition: transform .25s ease-out; border-radius: 22px 22px 48px 48px;
  background: linear-gradient(155deg, #fff2c2 0%, #f4c95d 34%, #b8862d 70%, #6e4c14 100%); box-shadow: 0 24px 50px rgba(0,0,0,.55), inset 0 0 0 2px rgba(255,255,255,.35); }
.mvpstage:not(.hold) .mvpc { animation: sway 6s ease-in-out infinite; }
@keyframes sway { 0%, 100% { --rx: 4deg; --ry: -10deg; --mx: 30%; --my: 25%; } 50% { --rx: -3deg; --ry: 11deg; --mx: 72%; --my: 70%; } }
.mvpc::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; mix-blend-mode: color-dodge; opacity: .65;
  background: radial-gradient(circle at var(--mx) var(--my), rgba(255,255,255,.75), transparent 38%), linear-gradient(115deg, transparent 20%, rgba(255,120,220,.35) 40%, rgba(110,220,255,.35) 52%, rgba(255,240,140,.35) 64%, transparent 80%);
  background-size: 100% 100%, 250% 250%; background-position: 0 0, var(--mx) var(--my); }
.mvpc .ovr { position: absolute; left: 18px; top: 18px; text-align: center; line-height: 1; }
.mvpc .ovr b { font-family: var(--display); font-weight: 900; font-size: 24px; display: block; letter-spacing: -.04em; }
.mvpc .ovr small { font-weight: 800; font-size: 12px; letter-spacing: .06em; }
.mvpc .star { position: absolute; right: 16px; top: 14px; font-size: 22px; }
.mvpc .face { position: absolute; left: 50%; top: 64px; translate: -50% 0; width: 116px; height: 116px; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  font-family: var(--display); font-weight: 900; font-size: 40px; color: #fff4d0; background: radial-gradient(circle at 35% 30%, #8a6420, #3b2706); box-shadow: inset 0 -8px 18px rgba(0,0,0,.35), 0 6px 16px rgba(60,40,0,.35); }
.mvpc .face img { width: 100%; height: 100%; object-fit: cover; }
.mvpc .nm { position: absolute; left: 10px; right: 10px; top: 194px; text-align: center; font-family: var(--display); font-weight: 800; font-size: 16px; letter-spacing: -.02em; text-transform: uppercase; line-height: 1.1; }
.mvpc .st { position: absolute; left: 20px; right: 20px; top: 232px; display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; border-top: 1px solid rgba(42,28,5,.25); padding-top: 8px; }
.mvpc .st b { font-family: var(--display); font-weight: 800; font-size: 17px; display: block; }
.mvpc .st span { font-size: 9px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .75; }
.mvpc .gr { position: absolute; bottom: 14px; left: 10px; right: 10px; text-align: center; font-size: 9px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; opacity: .7; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* card del risultato */
.share-img { width: 100%; max-width: 360px; display: block; margin: 0 auto; border-radius: 16px; box-shadow: 0 12px 40px rgba(0,0,0,.5); }
@media (prefers-reduced-motion: reduce) { .mvpstage .mvpc { animation: none !important; } .pitch.enter .tok, .cnt.pop, .bar i.grow, .dg.flip, .scorers.late { animation: none !important; } }

/* codice d'invito e azioni della schermata gruppi */
.invcode { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 34px; font-weight: 800; letter-spacing: .18em; color: var(--lime); margin: 6px 0 0; cursor: pointer; user-select: all; overflow-wrap: anywhere; }
.gacts { margin-top: 14px; }
.gacts .card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 10px; min-width: 0; }

/* ================= rifinitura UI (11/11/2026) ================= */

/* --- telefono --- */
/* intestazione con «indietro»: il tasto resta all'altezza del titolo, l'occhiello non va a capo */
.hdr:not(.col) { align-items: flex-start; }
.hdr:not(.col) .back { align-self: flex-start; margin-top: 14px; }
.hdr:not(.col) .eyebrow { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr:not(.col) h1 { overflow-wrap: anywhere; }
/* righe di pulsanti scorrevoli: sfumano sul bordo, così si capisce che continuano */
.chips { mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 16px, #000 calc(100% - 28px), transparent); scroll-snap-type: x proximity; scroll-padding: 0 16px; }
.chip { height: 40px; scroll-snap-align: start; transition: background .2s, color .2s, transform .15s var(--ease); }
.chip:active { transform: scale(.95); }
/* aree da toccare di almeno 40-44 px */
.sheet .x { width: 40px; height: 40px; }
.sec-t a, .sec-t button { padding: 8px 2px; margin: -8px -2px; }
.step button { width: 38px; height: 38px; }
.like { min-height: 40px; }
/* riquadro «Quote da saldare» in riga, non impilato al centro */
.bento .card.row { flex-direction: row; align-items: center; min-height: 0; gap: 12px; }
.bento .card.row b { font-family: var(--display); font-size: 20px; letter-spacing: -.03em; }
/* liste e schede: feedback al tocco più chiaro */
.li.tap { transition: background .15s; }
a.li:active, button.li:active { background: var(--s2); }
/* finestre dal basso: niente rimbalzo della pagina sotto e spazio per la tastiera */
body:has(#layer .sheet) { overflow: hidden; }
.sheet .sh-b { scroll-padding-bottom: 120px; }
.sheet .sh-h h2 { min-width: 0; overflow-wrap: anywhere; }
/* numeri tabellari ovunque servano */
.tile-v, .li .pts, .score .res, .mcard .num { font-variant-numeric: tabular-nums; }

/* --- tastiera e mouse --- */
:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 12px; }
.in:focus-visible { outline: none; }
@media (hover: hover) and (pointer: fine) {
  .card.tap, .li.tap, a.li, .btn, .chip, .seg button, .dock a, .bell, .gchip, .like, .fut { transition: background .2s, border-color .2s, color .2s, transform .15s var(--ease), filter .2s; }
  .card.tap:hover { border-color: var(--line-2); background-color: var(--s2); }
  .li.tap:hover, a.li:hover { background: var(--s2); }
  .btn:hover { filter: brightness(1.12); }
  .chip:hover:not(.on) { color: var(--text); border-color: rgba(255,255,255,.22); }
  .seg button:hover:not(.on) { color: var(--text); }
  .dock a:hover:not(.on) { color: var(--text); }
  .bell:hover, .gchip:hover { border-color: rgba(255,255,255,.22); }
  .fut:hover { transform: translateY(-3px); }
  .sec-t a:hover, .sec-t button:hover { text-decoration: underline; text-underline-offset: 3px; }
}

/* --- tablet e computer --- */
@media (min-width: 700px) {
  /* le finestre diventano riquadri centrati */
  .sheet { top: 50%; bottom: auto; left: 50%; right: auto; width: min(560px, calc(100% - 48px)); margin: 0;
    translate: -50% -50%; border-radius: 28px; border-bottom: 1px solid var(--line-2); max-height: min(86vh, 860px);
    animation: modalIn .32s var(--ease-out) both; box-shadow: 0 30px 90px rgba(0,0,0,.7); }
  .sheet.out { animation: modalIn .2s ease-in reverse both; }
  .sheet .grab { visibility: hidden; padding: 6px 0 0; }
  .sheet .sh-b { padding-bottom: 22px; }
  @keyframes modalIn { from { opacity: 0; transform: scale(.94) translateY(12px); } }
}
@media (min-width: 1024px) {
  .view { max-width: 760px; padding-top: 32px; padding-bottom: 56px; padding-left: 120px; padding-right: 24px; box-sizing: content-box; }
  .view:has(> .auth) { padding-left: 24px; }
  .view > * + * { margin-top: 18px; }
  .hdr h1 { font-size: 38px; }
  /* barra di navigazione verticale a sinistra */
  .dock { left: 24px; top: 50%; bottom: auto; transform: translateY(-50%); width: 88px; grid-template-columns: 1fr; grid-auto-rows: 64px; gap: 4px; padding: 8px; border-radius: 28px; }
  .dock.away { transform: translate(-160%, -50%); }
  .dock a { height: 64px; font-size: 11px; border-radius: 20px; }
  .dock-glow { top: 8px; left: 8px; width: calc(100% - 16px); height: 64px; transform: translateY(calc(var(--on, 0) * (100% + 4px))); }
  .fab { bottom: 32px; right: max(24px, calc(50% - 380px + 48px)); }
  /* più spazio: statistiche su 4 colonne, figurine su 5 */
  .bento { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .bento .wide { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(5, 1fr); gap: 12px; }
  .hero { padding: 28px; }
  .hero .when { font-size: 32px; }
  .pitch { max-width: 600px; margin-left: auto; margin-right: auto; }
  .chips { margin: 0; padding: 0; mask-image: none; -webkit-mask-image: none; flex-wrap: wrap; overflow: visible; }
  .toast { top: 24px; }
  .live { max-width: 900px; margin: 0 auto; }
  .aurora i { width: 900px; height: 900px; filter: blur(140px); }
}
@media (prefers-reduced-motion: reduce) { .chip:active, .fut:hover { transform: none; } }
