/* Vinile d'Oro — foglio di stile
   Identità: ogni decennio ha un colore di fondo; i candidati sono figurine bianche,
   il giallo è riservato alle azioni principali e a chi vince. */

/* Caratteri ospitati sul sito stesso: nessuna richiesta a Google Fonts, quindi nessun indirizzo IP dei visitatori ceduto a terzi. */
@font-face { font-family: "Unbounded"; src: url("../fonts/unbounded-800.woff2") format("woff2"); font-weight: 500 900; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-regular.woff") format("woff"); font-weight: 400 550; font-display: swap; }
@font-face { font-family: "Instrument Sans"; src: url("../fonts/instrument-sans-bold.woff") format("woff"); font-weight: 551 800; font-display: swap; }

:root {
  --ink: #17122b;
  --ink-soft: #57516d;
  --paper: #ffffff;
  --paper-dim: #f1eff7;
  --sun: #ffd21f;
  --sun-deep: #e9b900;
  --field: #2a2bd4;
  --on-field: #ffffff;
  --on-field-soft: rgba(255, 255, 255, .76);
  --hair: rgba(255, 255, 255, .32);
  --display: "Unbounded", "Arial Black", "Segoe UI", system-ui, sans-serif;
  --text: "Instrument Sans", "Segoe UI", system-ui, -apple-system, sans-serif;
  --r-s: 10px; --r-m: 14px; --r-l: 22px;
  --dock-h: 0px;
}
body[data-dec="1960"] { --field: #9a6700; }
body[data-dec="1970"] { --field: #b8441a; }
body[data-dec="1980"] { --field: #b5126b; }
body[data-dec="1990"] { --field: #12784a; }
body[data-dec="2000"] { --field: #0a74a3; }
body[data-dec="2010"] { --field: #6a2bc2; }
body[data-dec="2020"] { --field: #c21f3a; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--field); color: var(--on-field);
  font: 400 17px/1.45 var(--text); transition: background-color .7s ease;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; -webkit-tap-highlight-color: transparent; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 3px; border-radius: 6px; }
.sheet :focus-visible, .modal :focus-visible, .drawer :focus-visible, .card :focus-visible { outline-color: var(--ink); }

main { max-width: 1120px; margin: 0 auto; padding: 18px 20px calc(72px + var(--dock-h)); }
.screen { display: none; }
.screen.on { display: block; }

/* ── Testata ── */
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 44px; margin-bottom: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font: 700 16px/1 var(--display); letter-spacing: -.01em; }
.brand img { border-radius: 9px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .9); }
.crumb { font-weight: 600; color: var(--on-field-soft); }
.link { font-weight: 600; text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 4px; padding: 10px 2px; }
.link:hover { text-decoration-thickness: 3px; }
.link--ink { color: var(--ink); }

/* ── Titoli ── */
.hero { font: 700 clamp(30px, 6.4vw, 72px)/1.04 var(--display); letter-spacing: -.04em; max-width: 16ch; text-wrap: balance; }
.lede { margin-top: 18px; max-width: 56ch; font-size: 19px; color: var(--on-field-soft); }
.lede--tight { margin-top: 6px; font-size: 17px; }
.title { font: 700 clamp(28px, 5vw, 46px)/1.08 var(--display); letter-spacing: -.03em; margin-bottom: 24px; text-wrap: balance; }
.title--xl { font-size: clamp(40px, 10vw, 96px); margin-bottom: 32px; overflow-wrap: anywhere; }
.over { font-weight: 600; color: var(--on-field-soft); margin-bottom: 4px; }
.yearhead { font: 800 clamp(64px, 17vw, 168px)/.86 var(--display); letter-spacing: -.06em; margin-left: -.04em; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.yearhead.is-text { font-size: clamp(34px, 7vw, 72px); line-height: 1; letter-spacing: -.035em; margin-left: 0; }
.cat { font: 600 clamp(21px, 3.2vw, 30px)/1.15 var(--text); font-stretch: 88%; }
.roundhead { display: grid; grid-template-columns: auto 1fr; gap: 6px 28px; align-items: end; margin-bottom: 24px; }
.roundhead > div { padding-bottom: 6px; }

/* ── Pulsanti ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 24px;
  border-radius: var(--r-m); font-weight: 600; font-size: 18px; line-height: 1.1; text-align: center; white-space: nowrap;
  transition: transform .12s ease, box-shadow .12s ease, background-color .15s ease;
}
.btn:active { transform: translateY(2px); }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn--sun { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.btn--sun:hover:not([disabled]) { background: #ffdc4d; }
.btn--sun:active:not([disabled]) { box-shadow: 0 2px 0 var(--ink); }
.btn--line { box-shadow: inset 0 0 0 2px var(--on-field); color: var(--on-field); }
.btn--line:hover { background: rgba(255, 255, 255, .14); }
.btn--quiet { color: var(--on-field-soft); text-decoration: underline; text-underline-offset: 4px; padding: 0 8px; }
.btn--ink { background: var(--ink); color: #fff; }
.btn--ink:hover { background: #2a2247; }
.btn--paper { background: var(--paper-dim); color: var(--ink); }
.btn--sm { min-height: 44px; padding: 0 16px; font-size: 16px; border-radius: 12px; }
.btn--sm.btn--sun { box-shadow: 0 3px 0 var(--ink); }
.round { width: 48px; height: 48px; border-radius: 50%; background: var(--paper-dim); color: var(--ink); font-size: 26px; line-height: 1; flex: none; }
.round:hover { background: #e4e0f0; }

/* ── Home ── */
.strip-title { font: 600 17px/1.2 var(--text); color: var(--on-field-soft); margin: 44px 0 12px; }
.decades { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; }
.dec {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; text-align: left;
  aspect-ratio: 3 / 4; padding: 12px; border-radius: var(--r-m); color: #fff; background: var(--c);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .85); overflow: hidden; transition: transform .18s ease;
}
/* Il vinile: un elemento vero, così l'etichetta con la copertina gira insieme al disco */
.disc { position: absolute; right: -26%; top: -14%; width: 100%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle, var(--sun) 0 24%, rgba(23, 18, 43, .9) 24.5% 34%, transparent 34.5%), repeating-radial-gradient(circle, rgba(23, 18, 43, .92) 0 3px, rgba(23, 18, 43, .78) 3px 5px);
  transition: transform .5s ease; }
.disc img { position: absolute; left: 27%; top: 27%; width: 46%; height: 46%; border-radius: 50%; object-fit: cover; box-shadow: 0 0 0 3px var(--sun); opacity: 0; transition: opacity .5s ease; }
.disc img.on { opacity: 1; }
.disc::after { content: ""; position: absolute; left: 50%; top: 50%; width: 5%; height: 5%; transform: translate(-50%, -50%); border-radius: 50%; background: #17122b; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); z-index: 1; }
.dec .song { position: relative; z-index: 1; margin-top: auto; margin-bottom: 8px; max-width: 100%; font-size: 12px; font-weight: 600; line-height: 1.25; opacity: 0; transition: opacity .5s ease; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dec .song.on { opacity: .92; }
.dec:hover { transform: translateY(-4px); }
.dec:hover .disc { transform: rotate(50deg) scale(1.04); }
.dec b { position: relative; font: 800 clamp(22px, 3.6vw, 40px)/1 var(--display); letter-spacing: -.05em; }
.dec > span:last-child { position: relative; font-size: 14px; font-weight: 600; opacity: .9; margin-top: 4px; }
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 28px; }
.modes--one { grid-template-columns: minmax(0, 420px); }
.homefoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin-top: 28px; padding-top: 20px; border-top: 2px solid var(--hair); }
.credit { margin-top: 20px; font-size: 15px; color: var(--on-field-soft); max-width: 60ch; }

/* ── Selettori a segmenti ── */
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: rgba(23, 18, 43, .28); gap: 2px; }
.seg button { padding: 9px 16px; border-radius: 999px; font-weight: 600; font-size: 15px; color: var(--on-field); white-space: nowrap; transition: background-color .15s ease, color .15s ease; }
.seg button.on { background: var(--paper); color: var(--ink); }
.seg--paper { background: var(--paper-dim); }
.seg--paper button { color: var(--ink-soft); }
.seg--paper button.on { background: var(--ink); color: #fff; }

/* ── Fogli bianchi e moduli ── */
.sheet { background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: 28px; max-width: 760px; }
.sheet--narrow { max-width: 460px; }
.sheet + .modes, .stage + .modes, .modes + .sheet { margin-top: 24px; }
.sheet-title { font: 700 19px/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 14px; }
.field { margin-bottom: 26px; }
.pair { display: grid; grid-template-columns: auto 1fr; gap: 0 40px; }
.field > label, .label { display: block; font-weight: 600; margin-bottom: 10px; }
.labelrow { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 4px; }
.labelrow .label { margin: 0; }
.quick { display: flex; gap: 16px; font-size: 15px; }
.quick .link { padding: 6px 0; }
.help { font-size: 15px; color: var(--ink-soft); margin: -4px 0 12px; max-width: 58ch; }
.input { width: 100%; min-height: 52px; padding: 12px 14px; border-radius: var(--r-s); border: 2px solid #cfc9e0; background: #fff; color: var(--ink); outline: none; transition: border-color .15s ease; }
.input::placeholder { color: #8f89a6; }
.input:focus { border-color: var(--ink); }
textarea.input { resize: vertical; line-height: 1.4; }
.input--code { font: 700 34px/1 var(--display); letter-spacing: .28em; text-align: center; text-transform: uppercase; }
.input--field { flex: 1 1 220px; min-height: 44px; padding: 8px 14px; border-color: transparent; background: rgba(255, 255, 255, .96); }
.input--search { font-size: 19px; min-height: 56px; }
.formmsg { min-height: 1.45em; font-weight: 600; margin: -10px 0 14px; }
.yearpick { display: flex; align-items: center; gap: 14px; }
.yearpick output { font: 800 clamp(48px, 11vw, 84px)/1 var(--display); letter-spacing: -.06em; min-width: 3.1ch; text-align: center; font-variant-numeric: tabular-nums; }
.yearpick--sm output { font-size: 40px; min-width: 2ch; }
.ruler { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin-top: 10px; background: transparent; cursor: pointer; }
.ruler::-webkit-slider-runnable-track { height: 14px; border-radius: 7px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px calc(100% / 65 * 5)), var(--paper-dim); }
.ruler::-moz-range-track { height: 14px; border-radius: 7px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px calc(100% / 65 * 5)), var(--paper-dim); }
.ruler::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -8px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); }
.ruler::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--sun); border: 3px solid var(--ink); }
.catgroup { margin-top: 14px; }
.catgroup h4 { margin: 0 0 8px; font-size: 15px; font-weight: 600; color: var(--ink-soft); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .chip { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px 0 10px; border-radius: 999px; background: var(--paper-dim); color: var(--ink); font-weight: 500; font-size: 15px; transition: background-color .15s ease; }
.chips .chip::before { content: ""; width: 18px; height: 18px; border-radius: 50%; box-shadow: inset 0 0 0 2px #a9a2c2; flex: none; }
.chips .chip.on { background: var(--ink); color: #fff; }
.chips .chip.on::before { box-shadow: none; background: var(--sun) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M4.5 9.5l3 3 6-7' fill='none' stroke='%2317122b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px; }
.addaward { display: grid; grid-template-columns: 1fr auto auto; gap: 8px; }
.addaward select { width: auto; }
.awards { margin-top: 10px; display: grid; gap: 6px; }
.awards li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 14px; border-radius: var(--r-s); background: var(--paper-dim); }
.awards li span { color: var(--ink-soft); font-size: 15px; }
.sheetfoot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; padding-top: 22px; border-top: 2px solid var(--paper-dim); }
.sheetfoot p { font-weight: 600; }
.sheetfoot .btn { min-width: 200px; }

/* ── Stanze ── */
.bigcode { font: 800 clamp(64px, 18vw, 150px)/1 var(--display); letter-spacing: .06em; color: var(--sun); margin: 0 0 6px -.03em; }
#s-lobby .lede { margin: 0 0 24px; }
.players { display: grid; gap: 8px; margin-bottom: 16px; }
.players li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border-radius: var(--r-s); background: var(--paper-dim); font-weight: 600; }
.players small { font-size: 14px; font-weight: 500; color: var(--ink-soft); }
.players .ok { color: #12784a; }
#s-wait .yearhead, #s-pass .yearhead { margin-bottom: 28px; }

/* ── Votazione ── */
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(172px, 1fr)); gap: 16px; }
.card { position: relative; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: 18px; padding: 8px 8px 0; transition: transform .16s ease, box-shadow .16s ease; }
.card.hide { display: none; }
.card.picked { box-shadow: 0 0 0 4px var(--sun), 0 0 0 6px var(--ink); transform: translateY(-3px); }
.cover { position: relative; display: block; width: 100%; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--paper-dim); }
.cover.is-round, .cover.is-round .ph { border-radius: 50%; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; animation: coverin .35s ease; }
@keyframes coverin { from { opacity: 0; } }
.ph { position: absolute; inset: 0; display: grid; place-items: center; color: rgba(255, 255, 255, .92); font: 800 34px/1 var(--display); letter-spacing: -.04em; background: hsl(var(--h, 250) 46% 38%); }
.ph.is-loading { animation: breathe 1.3s ease-in-out infinite; }
@keyframes breathe { 50% { opacity: .62; } }
.pp { position: absolute; left: 8px; bottom: 8px; width: 42px; height: 42px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; }
.pp svg { width: 18px; height: 18px; fill: #fff; }
.pp .i-pause, .playing .pp .i-play, .loading .pp svg { display: none; }
.playing .pp .i-pause { display: block; }
.playing .pp { background: var(--sun); }
.playing .pp svg { fill: var(--ink); }
.loading .pp::after { content: ""; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .35); border-top-color: #fff; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.badge { position: absolute; right: -6px; top: -6px; z-index: 2; min-width: 40px; height: 40px; padding: 0 9px; border-radius: 20px; background: var(--sun); color: var(--ink); box-shadow: 0 0 0 3px var(--ink); display: grid; place-items: center; font: 800 17px/1 var(--display); animation: stick .22s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes stick { from { transform: scale(.4) rotate(-18deg); } }
.info { padding: 10px 6px 8px; flex: 1; }
.info .t { font-weight: 700; font-size: 16px; line-height: 1.18; font-stretch: 90%; overflow-wrap: anywhere; }
.info .a { margin-top: 3px; font-size: 14px; line-height: 1.25; color: var(--ink-soft); overflow-wrap: anywhere; }
.pick { margin: 0 -8px; min-height: 42px; border-top: 2px solid var(--paper-dim); border-radius: 0 0 18px 18px; font-weight: 600; font-size: 15px; }
.pick:hover { background: var(--paper-dim); }
.card.picked .pick { background: var(--ink); color: #fff; border-top-color: var(--ink); }
.empty { grid-column: 1 / -1; padding: 36px 28px; border-radius: var(--r-l); box-shadow: inset 0 0 0 2px var(--hair); max-width: 620px; }
.empty h3 { font: 700 22px/1.15 var(--display); letter-spacing: -.02em; margin-bottom: 8px; }
.empty p { color: var(--on-field-soft); margin-bottom: 18px; }

/* ── Scheda di voto ── */
.dock { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--ink); color: #fff; padding: 12px 20px calc(12px + env(safe-area-inset-bottom)); transform: translateY(110%); visibility: hidden; transition: transform .28s ease, visibility 0s .28s; }
.dock.on { transform: none; visibility: visible; transition: transform .28s ease; }
.dock-in { max-width: 1120px; margin: 0 auto; display: flex; align-items: center; gap: 12px; }
.dock-main { flex: 1; min-width: 0; }
.dock-cnt { font-weight: 600; font-size: 15px; margin-bottom: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.slots { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.slots::-webkit-scrollbar { display: none; }
.slots li { position: relative; flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .34); font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .6); overflow: hidden; }
.slots li.full { box-shadow: 0 0 0 2px var(--sun); }
.slots li img, .slots li .ph { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; font-size: 12px; }
.dock .btn--line { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .7); }

/* ── Finestre ── */
.modal, .drawer { position: fixed; inset: 0; z-index: 40; display: none; background: rgba(23, 18, 43, .62); }
.modal.on { display: grid; place-items: center; padding: 16px; }
.box { width: min(600px, 100%); max-height: 88vh; overflow: auto; background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: 24px; animation: rise .22s ease; }
.box--sm { width: min(420px, 100%); }
@keyframes rise { from { transform: translateY(14px); opacity: 0; } }
.box h3, .drawer h3 { font: 700 21px/1.2 var(--display); letter-spacing: -.02em; }
.box > p { margin-top: 10px; color: var(--ink-soft); }
.boxfoot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 20px; }
.drawer.on { display: flex; justify-content: flex-end; }
.drawer-in { width: min(560px, 100%); height: 100%; overflow-y: auto; background: var(--paper); color: var(--ink); padding: 14px 22px 40px; animation: slide .26s ease; }
@keyframes slide { from { transform: translateX(40px); opacity: 0; } }
.drawer-top { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4px 12px; margin-bottom: 14px; }
.drawer-top #ex-back { grid-column: 1 / -1; justify-self: start; }
.tabs { display: flex; gap: 22px; margin: 14px 0 6px; border-bottom: 2px solid var(--paper-dim); }
.tabs button { padding: 10px 0; font-weight: 600; color: var(--ink-soft); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--ink); }
.results h4 { margin: 22px 0 6px; font: 700 16px/1.2 var(--display); letter-spacing: -.02em; }
.results .note { padding: 26px 0; color: var(--ink-soft); }
.headcard { display: flex; align-items: center; gap: 16px; padding: 6px 0 4px; }
.headcard img { width: 96px; height: 96px; border-radius: 14px; object-fit: cover; background: var(--paper-dim); flex: none; }
.headcard.is-round img { border-radius: 50%; }
.headcard b { display: block; font: 700 22px/1.12 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.headcard span { color: var(--ink-soft); font-size: 15px; }

/* ── Righe: risultati, classifiche ── */
.rk { display: flex; align-items: center; gap: 12px; padding: 9px 0; border-bottom: 1.5px solid var(--paper-dim); }
.rk:last-child { border-bottom: 0; }
.rk .n { width: 34px; flex: none; text-align: center; font: 800 19px/1 var(--display); letter-spacing: -.04em; }
.thumb { position: relative; width: 54px; height: 54px; flex: none; border-radius: 9px; overflow: hidden; background: var(--paper-dim); display: block; }
.thumb.is-round { border-radius: 50%; }
.thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.thumb .ph { font-size: 15px; }
.thumb .pp { left: 50%; top: 50%; bottom: auto; width: 34px; height: 34px; margin: -17px 0 0 -17px; opacity: .94; }
.rk .tx { flex: 1; min-width: 0; text-align: left; }
.rk .tx b { display: block; font-weight: 700; line-height: 1.2; font-stretch: 92%; overflow-wrap: anywhere; }
.rk .tx span { display: block; font-size: 14px; color: var(--ink-soft); line-height: 1.3; overflow-wrap: anywhere; }
.rk .pts { flex: none; text-align: right; font: 700 17px/1.1 var(--display); letter-spacing: -.03em; }
.rk .pts small { display: block; font: 500 12px/1.2 var(--text); letter-spacing: 0; color: var(--ink-soft); }
.rk .go { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--paper-dim); display: grid; place-items: center; }
.rk .go svg { width: 16px; height: 16px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.rk.is-link { width: 100%; cursor: pointer; }
.rk.is-link:hover .go { background: var(--sun); }
.ib { width: 40px; height: 40px; flex: none; border-radius: 10px; background: var(--paper-dim); font-size: 18px; color: var(--ink); }
.ib:hover { background: #e4e0f0; }

/* ── Premiazione ── */
.stage { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 380px); gap: 28px; align-items: start; }
.noms { background: var(--paper); color: var(--ink); border-radius: var(--r-l); padding: 8px 20px; }
.noms li { opacity: 0; animation: nom .5s ease forwards; }
@keyframes nom { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.winner { position: relative; text-align: center; opacity: 0; animation: win .7s cubic-bezier(.2, 1.3, .4, 1) forwards; }
@keyframes win { from { opacity: 0; transform: scale(.7) rotate(-4deg); } to { opacity: 1; transform: none; } }
.winner::before { content: ""; pointer-events: none; position: absolute; left: 50%; top: 42%; width: 150%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; z-index: -1;
  background: repeating-conic-gradient(rgba(255, 210, 31, .5) 0 7deg, transparent 7deg 20deg);
  -webkit-mask: radial-gradient(circle, #000 20%, transparent 68%); mask: radial-gradient(circle, #000 20%, transparent 68%); animation: rays 40s linear infinite; }
@keyframes rays { to { transform: translate(-50%, -50%) rotate(360deg); } }
.winner .tag { display: inline-block; margin-bottom: 14px; padding: 8px 16px; border-radius: 999px; background: var(--sun); color: var(--ink); font-weight: 700; box-shadow: 0 0 0 3px var(--ink); }
.winner .cover { max-width: 300px; margin: 0 auto; border-radius: 20px; box-shadow: 0 0 0 8px var(--paper), 0 0 0 11px var(--ink); }
.winner .cover.is-round { border-radius: 50%; }
.winner .ph { font-size: 64px; }
.winner .wt { margin-top: 26px; font: 700 clamp(24px, 4.4vw, 36px)/1.08 var(--display); letter-spacing: -.03em; overflow-wrap: anywhere; }
.winner .wa { margin-top: 6px; font-size: 20px; font-weight: 600; }
.winner .wp { margin-top: 6px; color: var(--on-field-soft); }
.winner .btn { margin-top: 16px; }
#r-full h3 { font: 700 19px/1.2 var(--display); letter-spacing: -.02em; margin-bottom: 6px; }
.waiting { color: var(--on-field-soft); font-weight: 600; }

/* ── Elenchi vincitori ── */
.yearblock { font: 800 30px/1 var(--display); letter-spacing: -.05em; margin: 22px 0 4px; }
.yearblock:first-child { margin-top: 0; }
.winrow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 2px 20px; padding: 10px 0; border-bottom: 1.5px solid var(--paper-dim); }
.winrow dt { color: var(--ink-soft); }
.winrow dd { margin: 0; font-weight: 700; }
.winrow dd span { display: block; font-weight: 400; font-size: 15px; color: var(--ink-soft); }
details.cer { border-bottom: 1.5px solid var(--paper-dim); padding: 4px 0; }
details.cer summary { cursor: pointer; padding: 10px 0; font-weight: 700; }
details.cer summary span { font-weight: 400; color: var(--ink-soft); }
.blank { color: var(--ink-soft); }

/* ── Avvisi ── */
.netbar { position: sticky; top: 0; z-index: 30; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 18px; padding: 12px 20px; background: var(--sun); color: var(--ink); font-weight: 600; font-size: 15px; }
.netbar p { max-width: 70ch; }
.toast { position: fixed; left: 50%; bottom: calc(24px + var(--dock-h)); z-index: 60; transform: translate(-50%, 12px); padding: 12px 18px; border-radius: 12px; background: var(--ink); color: #fff; font-weight: 600; font-size: 15px; box-shadow: 0 0 0 2px rgba(255, 255, 255, .5); opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; max-width: calc(100vw - 32px); text-align: center; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }
#fx { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 50; }

/* ── Altri modi di giocare ── */

/* ── Torneo ── */
.duelhead { margin-bottom: 18px; text-align: center; }
.duelhead .lede { margin-left: auto; margin-right: auto; }
#s-duel .chatbar { max-width: 790px; margin-left: auto; margin-right: auto; }
.duel { display: grid; grid-template-columns: minmax(0, 360px) auto minmax(0, 360px); justify-content: center; gap: 22px; align-items: center; }
.vs { font: 800 clamp(28px, 6vw, 56px)/1 var(--display); letter-spacing: -.05em; color: var(--sun); text-shadow: 0 3px 0 var(--ink); }
.fighter { position: relative; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: 22px; padding: 10px 10px 0; transition: transform .18s ease, box-shadow .18s ease, opacity .25s ease; animation: rise .3s ease; }
.fighter .cover { border-radius: 14px; }
.fighter .pp { width: 54px; height: 54px; left: 12px; bottom: 12px; }
.fighter .pp svg { width: 22px; height: 22px; }
.fighter .info { padding: 12px 6px 10px; }
.fighter .info .t { font-size: clamp(17px, 2.4vw, 22px); }
.fighter .info .a { font-size: 15px; }
.fighter .pick { min-height: 54px; font-size: 17px; }
.fighter .tag1 { position: absolute; left: -10px; top: -10px; z-index: 2; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--sun); color: var(--ink); font: 800 22px/1 var(--display); box-shadow: 0 0 0 3px var(--ink); }
.fighter.won { box-shadow: 0 0 0 5px var(--sun), 0 0 0 8px var(--ink); transform: scale(1.03); }
.fighter.lost { opacity: .35; transform: scale(.96); }
.chatbar { margin-top: 22px; padding: 16px 18px; border-radius: var(--r-l); background: rgba(23, 18, 43, .35); }
.meter { display: flex; height: 18px; border-radius: 9px; overflow: hidden; background: rgba(255, 255, 255, .2); }
.meter span { display: block; height: 100%; transition: width .3s ease; }
.meter span:first-child { background: var(--sun); }
.meter span:last-child { background: #fff; margin-left: auto; }
.chatline { margin: 10px 0; font-weight: 600; }
.chatline b { font: 800 22px/1 var(--display); margin-right: 8px; }
.chatbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.round-list h4 { margin: 18px 0 4px; font: 700 16px/1.2 var(--display); }
.round-list .rk .n { width: auto; font-size: 14px; font-family: var(--text); font-weight: 600; color: var(--ink-soft); padding-right: 6px; }
.round-list .loser { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 1.5px; }

/* ── Funzioni con account ── */
.toplinks { display: flex; gap: 18px; }
.stat { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 8px 0 22px; }
.stat div b { display: block; font: 800 34px/1 var(--display); letter-spacing: -.04em; }
.stat div span { color: var(--on-field-soft); font-size: 15px; }
.yearchips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.yearchips button { min-width: 62px; min-height: 40px; padding: 0 10px; border-radius: 10px; font-weight: 700; background: rgba(23, 18, 43, .28); color: #fff; }
.yearchips button.on { background: var(--paper); color: var(--ink); }
.yearchips button.done { box-shadow: inset 0 0 0 2px var(--sun); }
.catcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.catcard { text-align: left; padding: 14px 16px; border-radius: var(--r-m); background: var(--paper); color: var(--ink); }
.catcard b { display: block; font-weight: 700; }
.catcard span { font-size: 14px; color: var(--ink-soft); }
.catcard.done { box-shadow: inset 0 0 0 3px var(--sun); }
.catcard.done span { color: #12784a; font-weight: 600; }
.rate-avg { margin: 8px 0 0; font-weight: 600; color: var(--ink-soft); }
.rate-q { margin-top: 18px; font-size: 17px !important; }
.scores { display: grid; grid-template-columns: repeat(10, 1fr); gap: 6px; margin-top: 10px; }
.scores button { aspect-ratio: 1; border-radius: 10px; background: var(--paper-dim); font: 800 17px/1 var(--display); color: var(--ink); }
.scores button:hover, .scores button.on { background: var(--sun); box-shadow: inset 0 0 0 2px var(--ink); }
.scorebadge { flex: none; min-width: 54px; text-align: center; padding: 6px 8px; border-radius: 10px; background: var(--sun); font: 800 18px/1 var(--display); }
.scorebadge small { display: block; font: 500 11px/1.3 var(--text); color: var(--ink-soft); }
.chips--field { margin-bottom: 14px; }
.chips--field .chip { background: rgba(23, 18, 43, .28); color: #fff; padding: 0 14px; }
.chips--field .chip::before { display: none; }
.newsdate { flex: none; width: 74px; font-size: 13px; font-weight: 600; color: var(--ink-soft); text-align: right; }
.follow { margin-top: 10px; }

/* ── Riquadri delle altre modalità: ognuno ha il suo disegno ── */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; }
.tile { position: relative; grid-column: span 2; min-height: 172px; display: flex; flex-direction: column; justify-content: flex-end; text-align: left; padding: 18px; border-radius: var(--r-l); overflow: hidden; color: #fff; transition: transform .18s ease; }
.tile:hover { transform: translateY(-3px); }
.tile b { position: relative; font: 700 21px/1.1 var(--display); letter-spacing: -.02em; }
.tile > span:not(.art):not(.pics) { position: relative; margin-top: 4px; font-size: 15px; opacity: .85; max-width: 30ch; }
.tile--tour, .tile--stream { grid-column: span 3; min-height: 196px; }
.tile--tour { background: #0d0a1f; }
.tile--stream { background: #6441a5; }
.tile--official { background: var(--sun); color: var(--ink); box-shadow: 0 4px 0 var(--ink); }
.tile--rate { background: #fff; color: var(--ink); }
.tile--news { background: #e8462b; }
.art { position: absolute; pointer-events: none; }
.art--bracket { right: 18px; top: 18px; width: 150px; height: 104px; }
.art--bracket i { position: absolute; left: 0; width: 52px; height: 3px; background: var(--sun); }
.art--bracket i:nth-child(1) { top: 6px; } .art--bracket i:nth-child(2) { top: 36px; } .art--bracket i:nth-child(3) { top: 66px; } .art--bracket i:nth-child(4) { top: 96px; }
.art--bracket em { position: absolute; left: 52px; width: 46px; height: 33px; border: 3px solid var(--sun); border-left: 0; }
.art--bracket em:nth-of-type(1) { top: 6px; } .art--bracket em:nth-of-type(2) { top: 66px; }
.art--bracket u { position: absolute; left: 98px; top: 21px; width: 50px; height: 63px; border: 3px solid #fff; border-left: 0; }
.art--chat { right: 16px; top: 16px; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; }
.art--chat i { font: 800 15px/1 var(--display); font-style: normal; padding: 8px 13px; border-radius: 14px 14px 4px 14px; background: #fff; color: #6441a5; }
.art--chat i:nth-child(2) { background: var(--sun); color: var(--ink); margin-right: 26px; border-radius: 14px 14px 14px 4px; }
.art--chat i:nth-child(3) { opacity: .7; }
.art--ballot { right: 16px; top: 16px; width: 86px; padding: 8px 0 10px; text-align: center; background: #fff; border-radius: 4px; box-shadow: 0 0 0 2px var(--ink); transform: rotate(5deg); }
.art--ballot i { display: block; font: 600 13px/1 var(--text); font-style: normal; text-transform: lowercase; color: #c21f3a; }
.art--ballot b { font-size: 24px; letter-spacing: -.04em; }
.art--bars { right: 16px; top: 16px; display: flex; align-items: flex-end; gap: 4px; height: 54px; }
.art--bars i { width: 9px; border-radius: 2px; background: #2a2bd4; }
.art--bars i:nth-child(1) { height: 10%; } .art--bars i:nth-child(2) { height: 18%; } .art--bars i:nth-child(3) { height: 27%; } .art--bars i:nth-child(4) { height: 36%; } .art--bars i:nth-child(5) { height: 45%; }
.art--bars i:nth-child(6) { height: 55%; } .art--bars i:nth-child(7) { height: 64%; } .art--bars i:nth-child(8) { height: 73%; background: var(--sun); } .art--bars i:nth-child(9) { height: 86%; } .art--bars i:nth-child(10) { height: 100%; }
.art--stack { right: 22px; top: 20px; width: 92px; height: 80px; }
.art--stack i { position: absolute; width: 58px; height: 58px; border-radius: 4px; box-shadow: 0 0 0 2px #fff; }
.art--stack i:nth-child(1) { left: 0; top: 18px; background: #0a74a3; transform: rotate(-9deg); }
.art--stack i:nth-child(2) { left: 18px; top: 8px; background: var(--sun); transform: rotate(-2deg); }
.art--stack i:nth-child(3) { left: 36px; top: 0; background: #17122b; transform: rotate(6deg); }

/* ── Sfida del torneo ── */
.stagehead { font: 800 clamp(30px, 6vw, 60px)/1 var(--display); letter-spacing: -.045em; }
.dots { display: flex; justify-content: center; gap: 6px; margin: 12px 0 8px; }
.dots li { width: 22px; height: 6px; border-radius: 3px; background: rgba(255, 255, 255, .3); }
.dots li.done { background: #fff; }
.dots li.now { background: var(--sun); width: 40px; }
.duel { position: relative; }
.duel .vs { width: 74px; height: 74px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--sun); font-size: 26px; text-shadow: none; box-shadow: 0 0 0 4px var(--sun); }
.fighter .pick { background: var(--sun); color: var(--ink); border-top: 0; font-weight: 700; }
.fighter .pick:hover { background: #ffdc4d; }

/* ── Campione e tabellone ── */
.champ { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 32px; align-items: start; margin-bottom: 24px; }
.bracket { display: flex; gap: 14px; overflow-x: auto; padding: 4px 4px 14px; }
.bcol { flex: 0 0 200px; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; }
.bcol h4 { font: 700 15px/1.2 var(--text); color: var(--on-field-soft); margin: 0 0 2px; }
.match { background: var(--paper); color: var(--ink); border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 2px rgba(23, 18, 43, .9); }
.match p { display: flex; justify-content: space-between; gap: 8px; padding: 7px 10px; font-size: 14px; line-height: 1.2; }
.match small { font-weight: 700; color: var(--ink-soft); }
.match .w { font-weight: 700; background: var(--sun); }
.match .l { color: var(--ink-soft); text-decoration: line-through; text-decoration-thickness: 1.5px; }
.bcol:last-child .match { box-shadow: 0 0 0 3px var(--ink), 0 0 0 6px var(--sun); }

/* ── Voto ufficiale: righello degli anni e schede ── */
.yearchips { flex-wrap: nowrap; overflow-x: auto; gap: 0; padding: 0 0 6px; scrollbar-width: thin; }
.yearchips button { flex: none; min-width: 58px; min-height: 52px; border-radius: 0; background: transparent; color: var(--on-field-soft); border-left: 1.5px solid var(--hair); font-weight: 600; font-size: 15px; position: relative; }
.yearchips button.dec0 { border-left: 3px solid #fff; color: #fff; }
.yearchips button.on { background: var(--paper); color: var(--ink); border-radius: 6px 6px 0 0; }
.yearchips button.done::after { content: ""; position: absolute; left: 50%; bottom: 6px; width: 6px; height: 6px; margin-left: -3px; border-radius: 50%; background: var(--sun); }
.catcard { position: relative; padding: 16px 16px 16px 54px; border-radius: 4px; box-shadow: 0 3px 0 rgba(23, 18, 43, .35); clip-path: polygon(0 0, calc(100% - 18px) 0, 100% 18px, 100% 100%, 0 100%); }
.catcard::after { content: ""; position: absolute; right: 0; top: 0; width: 18px; height: 18px; background: linear-gradient(225deg, transparent 50%, var(--paper-dim) 50%); }
.catcard .box { position: absolute; left: 16px; top: 16px; width: 24px; height: 24px; border: 2.5px solid var(--ink); border-radius: 3px; }
.catcard.done .box { background: var(--ink); }
.catcard.done .box::after { content: "✕"; position: absolute; inset: 0; display: grid; place-items: center; color: var(--sun); font: 800 16px/1 var(--display); }
.catcard.done { box-shadow: 0 3px 0 rgba(23, 18, 43, .35); }
.catcard.done span { color: var(--ink-soft); font-weight: 500; }

/* ── Voti da 1 a 10: barre che salgono ── */
.scores { display: flex; align-items: flex-end; gap: 6px; height: 150px; }
.scores button { flex: 1; aspect-ratio: auto; border-radius: 6px 6px 3px 3px; display: flex; align-items: flex-end; justify-content: center; padding-bottom: 8px; background: var(--paper-dim); }
.scores button:nth-child(1) { height: 26%; } .scores button:nth-child(2) { height: 34%; } .scores button:nth-child(3) { height: 42%; } .scores button:nth-child(4) { height: 50%; } .scores button:nth-child(5) { height: 58%; }
.scores button:nth-child(6) { height: 66%; } .scores button:nth-child(7) { height: 74%; } .scores button:nth-child(8) { height: 82%; } .scores button:nth-child(9) { height: 91%; } .scores button:nth-child(10) { height: 100%; }
.scores button:hover, .scores button.on { background: #2a2bd4; color: #fff; box-shadow: none; }
.scores button.on { background: var(--sun); color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.scorebadge { width: 58px; height: 58px; min-width: 0; padding: 0; border-radius: 50%; display: grid; place-content: center; transform: rotate(-6deg); box-shadow: 0 0 0 2px var(--ink); }

/* ── Novità: diario delle uscite ── */
.month { margin: 18px 0 4px; font: 700 18px/1.2 var(--display); letter-spacing: -.02em; text-transform: lowercase; }
.month:first-child { margin-top: 0; }
.news .day { flex: none; width: 44px; text-align: center; font-size: 12px; color: var(--ink-soft); text-transform: lowercase; }
.news .day b { display: block; font: 800 24px/1 var(--display); color: var(--ink); letter-spacing: -.04em; }

/* ── Tablet ── */
@media (max-width: 900px) {
  .modes { grid-template-columns: repeat(2, 1fr); }
  .decades { grid-template-columns: repeat(4, 1fr); }
  .stage { grid-template-columns: 1fr; }
  .stage #r-win { order: -1; }
  .winner::before { width: 110%; }
}
/* ── Smartphone ── */
@media (max-width: 600px) {
  body { font-size: 16px; }
  .scores { grid-template-columns: repeat(5, 1fr); }
  .toplinks { gap: 12px; font-size: 15px; }
  .top .brand { font-size: 14px; }
  main { padding: 12px 16px calc(64px + var(--dock-h)); }
  .top { margin-bottom: 20px; }
  .lede { font-size: 17px; }
  .decades { grid-template-columns: repeat(4, 1fr); gap: 6px; }
  .dec { padding: 9px; border-radius: 12px; }
  .dec .song { display: none; }
  .dec > span:last-child { font-size: 11px; white-space: nowrap; letter-spacing: -.01em; }
  .modes { grid-template-columns: 1fr; gap: 10px; }
  .duel { grid-template-columns: 1fr 1fr; gap: 10px; }
  .duel .vs { position: absolute; left: 50%; top: 32%; width: 48px; height: 48px; margin-left: -24px; font-size: 17px; z-index: 3; }
  .tiles { grid-template-columns: 1fr 1fr; }
  .tile, .tile--tour, .tile--stream { grid-column: span 1; min-height: 168px; padding: 14px; }
  .tile--official { grid-column: span 2; }
  .tile b { font-size: 17px; }
  .tile > span:not(.art):not(.pics) { font-size: 13px; }
  .art { transform: scale(.7); transform-origin: top right; }
  .art--ballot { transform: rotate(5deg) scale(.8); }
  .champ { grid-template-columns: 1fr; }
  .fighter { padding: 6px 6px 0; border-radius: 16px; }
  .fighter .pick { margin: 0 -6px; border-radius: 0 0 16px 16px; }
  .sheet { padding: 20px 18px; border-radius: 18px; }
  .pair { grid-template-columns: 1fr; }
  .addaward { grid-template-columns: 1fr auto; }
  .addaward input { grid-column: 1 / -1; }
  .roundhead { grid-template-columns: 1fr; }
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .info .t { font-size: 15px; }
  .tools .btn { flex: 1 1 auto; }
  .dock { padding-left: 14px; padding-right: 14px; }
  .dock-in { gap: 8px; }
  .dock .btn { padding: 0 12px; }
  .drawer-in { padding: 10px 16px 32px; }
  .sheetfoot .btn { width: 100%; }
  .winrow { grid-template-columns: 1fr; }
  .seg button { padding: 9px 12px; font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
}


/* ── Novità in home: la striscia di copertine ── */
.feed { margin-top: 40px; }
.feed-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.feed-h { font: 800 clamp(24px, 4vw, 34px)/1.05 var(--display); letter-spacing: -.04em; }
.feed-act { display: flex; flex-wrap: wrap; gap: 8px; }
.feed-sub { margin-top: 6px; color: var(--on-field-soft); font-size: 15px; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(168px, 200px); gap: 14px; overflow-x: auto; margin: 16px -20px 0; padding: 4px 20px 14px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.rail > * { scroll-snap-align: start; }
.rail .blank { color: var(--on-field-soft); grid-column: 1 / -1; white-space: normal; }

/* Scheda di un'uscita: copertina grande, sotto titolo e azioni */
.ncard { position: relative; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); border-radius: var(--r-m); overflow: hidden; text-align: left; box-shadow: 0 3px 0 rgba(23, 18, 43, .25); }
.ncard .art-l { position: relative; display: block; aspect-ratio: 1; background: var(--paper-dim); }
.ncard .art-l .thumb { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 0; }
.ncard .art-l img { width: 100%; height: 100%; object-fit: cover; }
.ncard .tag { position: absolute; left: 10px; top: 10px; padding: 4px 9px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; }
.ncard .tag--new { background: var(--sun); color: var(--ink); }
.ncard .body { display: flex; flex-direction: column; gap: 2px; padding: 12px 12px 4px; flex: 1; }
.ncard .body b { font: 700 16px/1.2 var(--display); letter-spacing: -.02em; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ncard .body span { font-size: 14px; color: var(--ink-soft); }
.ncard .acts { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 10px 12px 12px; }
.ncard .acts button { min-height: 36px; padding: 0 12px; border-radius: 999px; background: var(--paper-dim); font-size: 13px; font-weight: 700; }
.ncard .acts button:hover { background: var(--sun); }
.ncards { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.ncards .month { grid-column: 1 / -1; color: var(--on-field); }
.ncards .blank { grid-column: 1 / -1; color: var(--on-field-soft); }

/* Link a Deezer: sempre riconoscibile, scuro con il segno dell'equalizzatore */
.dzbtn { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.dzbtn::before { content: ""; width: 14px; height: 12px; background: linear-gradient(var(--sun), var(--sun)) 0 100% / 2px 40% no-repeat, linear-gradient(var(--sun), var(--sun)) 4px 100% / 2px 100% no-repeat, linear-gradient(var(--sun), var(--sun)) 8px 100% / 2px 65% no-repeat, linear-gradient(var(--sun), var(--sun)) 12px 100% / 2px 85% no-repeat; }
.dzbtn:hover { background: #2d2550; }
.ncard .dzbtn { justify-content: center; min-height: 36px; padding: 0 8px; gap: 6px; font-size: 12px; }
.headact { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* Scelta degli artisti */
.box--wide { width: min(760px, 100%); }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; margin-top: 6px; }
.pickgrid button { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; text-align: center; line-height: 1.2; }
.pickgrid .thumb { width: 84px; height: 84px; border-radius: 50%; transition: box-shadow .15s ease, transform .15s ease; }
.pickgrid button[aria-pressed="true"] .thumb { box-shadow: 0 0 0 4px var(--sun), 0 0 0 6px var(--ink); transform: scale(.94); }
.pickgrid button[aria-pressed="true"]::after { content: "Seguito"; font-size: 12px; color: var(--ink-soft); margin-top: -4px; }

/* Voto: distribuzione e recensioni */
.review-box { margin-top: 18px; }
.review-box small { font: 400 14px var(--text); color: var(--ink-soft); }
.review-box textarea { margin-top: 8px; }
.rv-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; font-size: 13px; color: var(--ink-soft); }
.spread { display: grid; gap: 4px; margin-top: 10px; }
.spread div { display: grid; grid-template-columns: 22px 1fr 34px; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.spread div b { font: 700 13px var(--display); color: var(--ink); text-align: right; }
.spread i { height: 10px; border-radius: 6px; background: var(--paper-dim); overflow: hidden; }
.spread i::before { content: ""; display: block; height: 100%; width: var(--w); background: var(--field); border-radius: 6px; }
.spread div.mine i::before { background: var(--sun-deep); }
.reviews { margin-top: 16px; display: grid; gap: 10px; }
.review { padding: 12px 14px; border-radius: var(--r-s); background: var(--paper-dim); }
.review header { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; }
.review header b { font-weight: 700; }
.review header em { font: 800 14px var(--display); font-style: normal; background: var(--sun); padding: 1px 8px; border-radius: 999px; }
.review p { margin-top: 4px; font-size: 15px; overflow-wrap: anywhere; white-space: pre-line; }
.review time { display: block; margin-top: 4px; font-size: 12px; color: var(--ink-soft); }
.boxfoot #rate-dz { margin-right: auto; }

@media (max-width: 640px) {
  .rail { grid-auto-columns: 150px; margin: 14px -16px 0; padding: 4px 16px 12px; }
  .ncards { grid-template-columns: 1fr 1fr; gap: 10px; }
  .ncard .acts { grid-template-columns: 1fr; }
  .feed-act { width: 100%; }
  .feed-act .btn { flex: 1; }
}

/* ── Immagini vere in home: copertine sopra i disegni ── */
.dec b, .dec > span:last-child { z-index: 1; }

.pics { position: absolute; display: none; pointer-events: none; }
.tile.has-pics .pics { display: block; }
.tile.has-pics .art { display: none; }
.pics img { position: absolute; object-fit: cover; border-radius: 8px; box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.pics--vs { right: 18px; top: 18px; width: 190px; height: 112px; }
.pics--vs img { width: 104px; height: 104px; top: 0; }
.pics--vs img:first-child { left: 0; transform: rotate(-5deg); }
.pics--vs img:last-child { right: 0; top: 8px; transform: rotate(5deg); }
.pics--vs::after { content: "VS"; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 1; font: 800 15px/1 var(--display); padding: 8px 9px; border-radius: 50%; background: var(--sun); color: var(--ink); box-shadow: 0 0 0 3px var(--ink); }
.tile--stream .pics--vs::after { content: "1 o 2"; border-radius: 999px; padding: 7px 10px; font-size: 13px; }
.pics--one { right: 18px; top: 16px; width: 100px; height: 100px; }
.pics--one img { inset: 0; width: 100%; height: 100%; transform: rotate(4deg); }
.pics--one::after { content: "9/10"; position: absolute; left: -22px; bottom: -8px; z-index: 1; font: 800 15px/1 var(--display); padding: 7px 10px; border-radius: 999px; background: var(--sun); color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
.pics--stack { right: 20px; top: 16px; width: 120px; height: 100px; }
.pics--stack img { width: 76px; height: 76px; box-shadow: 0 0 0 2px #fff, 0 6px 18px rgba(0, 0, 0, .3); }
.pics--stack img:nth-child(1) { left: 0; top: 20px; transform: rotate(-9deg); }
.pics--stack img:nth-child(2) { left: 22px; top: 10px; transform: rotate(-2deg); }
.pics--stack img:nth-child(3) { left: 44px; top: 0; transform: rotate(6deg); }
.tile--tour, .tile--stream { grid-column: span 3; min-height: 196px; }
.tile--rate { grid-column: 1 / -1; min-height: 196px; }

/* ── Vinile d'Oro Awards: il riquadro grande sotto le novità ── */
.awards { margin-top: 36px; }
.awards-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; min-height: 320px; text-align: left; border-radius: var(--r-l); overflow: hidden; background: var(--sun); color: var(--ink); box-shadow: 0 6px 0 var(--ink); transition: transform .18s ease; }
.awards-card:hover { transform: translateY(-3px); }
.awards-copy { position: relative; z-index: 1; background: var(--sun); box-shadow: -24px 0 24px -6px var(--sun); display: flex; flex-direction: column; align-items: flex-start; padding: 30px 32px; }
.awards-seal { display: inline-flex; flex-direction: column; align-items: center; padding: 8px 12px 10px; margin-bottom: 18px; background: #fff; border-radius: 4px; box-shadow: 0 0 0 2px var(--ink); transform: rotate(-4deg); font-size: 13px; font-weight: 600; color: #c21f3a; line-height: 1; }
.awards-seal b { order: 2; margin-top: 3px; font: 800 24px/1 var(--display); letter-spacing: -.04em; color: var(--ink); }
.awards-name { font: 800 clamp(30px, 5vw, 54px)/.98 var(--display); letter-spacing: -.05em; }
.awards-sub { margin-top: 8px; font: 700 clamp(16px, 2vw, 20px)/1.1 var(--display); letter-spacing: -.02em; color: #8a6a00; }
.awards-text { margin-top: 14px; max-width: 44ch; font-size: 16px; }
.awards-go { margin-top: auto; padding-top: 0; }
.awards-copy .awards-go { margin-top: 22px; background: var(--ink); color: #fff; box-shadow: none; }
.awards-wall { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); grid-auto-rows: max-content; gap: 6px; padding: 14px; align-content: center; transform: rotate(-6deg) scale(1.1); transform-origin: 30% 50%; }
.awards-wall img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 6px; box-shadow: 0 0 0 2px var(--ink); }
.awards-wall:empty { background: repeating-linear-gradient(-30deg, rgba(23, 18, 43, .08) 0 22px, transparent 22px 44px); transform: none; }

@media (max-width: 760px) {
  .awards-card { grid-template-columns: 1fr; min-height: 0; }
  .awards-wall { order: -1; height: 150px; overflow: hidden; grid-template-columns: repeat(5, 1fr); transform: rotate(-4deg) scale(1.25); margin: -6px -10px 0; }
  .awards-copy { padding: 22px 20px 24px; }
}
@media (max-width: 640px) {
  .tile--tour, .tile--stream { grid-column: span 1; min-height: 176px; }
  .tile--rate { grid-column: 1 / -1; min-height: 176px; }
  .pics--vs { width: 120px; height: 76px; right: 10px; top: 12px; }
  .pics--vs img { width: 68px; height: 68px; }
  .pics--one { width: 70px; height: 70px; right: 14px; }
  .pics--stack { transform: scale(.7); transform-origin: top right; right: 12px; }
}
.btn--danger { background: #c21f3a; color: #fff; }
.btn--onpaper { color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.captcha:not(:empty) { margin: 6px 0 4px; min-height: 65px; }

/* ── Torneo: partecipanti scelti a mano e voto in stanza ── */
.picklist { display: grid; gap: 6px; margin-top: 8px; max-height: 340px; overflow: auto; }
.picklist:empty { display: none; }
.picklist .rk { padding: 6px 8px; }
.picklist .rk .x { margin-left: auto; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; line-height: 1; color: var(--ink-soft); }
.picklist .rk .x:hover { background: var(--paper-dim); color: var(--ink); }
.pickbar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.tname { margin-top: 12px; }
.tname[hidden] { display: none; }
.roomvotes { margin-top: 8px; display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.roomvotes span { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-size: 14px; font-weight: 600; }
.roomvotes span.ok { background: var(--sun); color: var(--ink); }
.fighter.mine { box-shadow: 0 0 0 4px var(--sun); }
.fighter .pick[disabled] { opacity: .55; cursor: default; }
