:root {
  /* Palette A, "blu inchiostro" (scelta il 2026-10-27 tra tre prove): neutri freddi e un solo
     accento blu, che lascia il colore ai pallini e alle barre del mana */
  --bg: #f6f7f9;
  --surface: #ffffff;
  --text: #16191f;
  --muted: #5b6270;
  --border: #dfe3ea;
  --accent: #1f4e8c;
  /* Testo sopra l'accento (pulsanti): bianco sul blu scuro, scuro sull'azzurro del tema scuro */
  --on-accent: #ffffff;
  /* Colori del mana: pallini dei colori di un mazzo (sempre con la lettera, mai il colore da solo)
     e segmenti delle barre. Uguali nei due temi: il testo sopra ha il suo colore, --on-mana-* */
  --mana-w: #e9e2c4; --mana-u: #2a6fb5; --mana-b: #4a3f45; --mana-r: #c8413a; --mana-g: #2f7d4f; --mana-c: #b9b9be;
  --on-mana-light: #1d1d1f; --on-mana-dark: #ffffff;
  /* Bordo dei pallini: separa il bianco dallo sfondo chiaro e il nero dallo sfondo scuro */
  --pip-border: rgba(0, 0, 0, .35);
  /* Stati (legale/bannata/limitata, avvisi, errori): sempre con la parola, il colore aiuta soltanto */
  --status-ok: #2e7d32; --status-bad: #c62828; --status-warn: #965800;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #12151a;
    --surface: #1a1f26;
    --text: #e8ebf0;
    --muted: #9aa3b2;
    --border: #2a313b;
    --accent: #8db4f0;
    --on-accent: #12151a;
    --pip-border: rgba(255, 255, 255, .45);
    --status-ok: #7bc67e; --status-bad: #ef8a80; --status-warn: #f0b45a;
  }
}

/* Atkinson Hyperlegible Next (Braille Institute, licenza OFL in static/fonts/): disegnata per
   distinguere bene le lettere simili, servita dal sito (nessun dato dei visitatori a terzi).
   Variabile, un solo file per tutti i pesi; latin-ext solo se servono le lettere che contiene */
@font-face {
  font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
                 U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Atkinson Hyperlegible Next"; font-style: normal; font-weight: 200 800; font-display: swap;
  src: url("../fonts/atkinson-hyperlegible-next-latin-ext-wght-normal.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329,
                 U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

* { box-sizing: border-box; }
/* Il corpo è una colonna e main prende lo spazio che avanza: il footer sta sempre in fondo alla
   pagina, anche quando il contenuto è corto */
body { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column;
       font: 17px/1.5 "Atkinson Hyperlegible Next", system-ui, sans-serif; background: var(--bg); color: var(--text); }
main { flex: 1 0 auto; }
a { color: var(--accent); }

.topbar { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; padding: .75rem 1rem;
          background: var(--surface); border-bottom: 1px solid var(--border); }
.topbar nav { display: flex; flex-wrap: wrap; gap: 1rem; flex: 1; }
.topbar nav a, .brand { text-decoration: none; }
.brand { font-weight: 700; color: var(--text); }
.account { display: flex; gap: .5rem; align-items: center; }
.account form { margin: 0; }
/* Ricerca della barra: campo e pulsante uniti, come un solo controllo */
.site-search { display: flex; margin: 0; }
.site-search input { width: 15rem; min-width: 0; min-height: 34px; padding: .25rem .6rem; font: inherit; color: var(--text);
                     background: var(--bg); border: 1px solid var(--border); border-right: 0; border-radius: 6px 0 0 6px; }
.site-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: -1px; }
.site-search button { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; min-height: 34px;
                      padding: 0 .6rem; border-radius: 0 6px 6px 0; }
.page-search { flex-direction: column; gap: .3rem; max-width: 36rem; margin-bottom: 1.5rem; }
.page-search .search-row { display: flex; }
.page-search input { flex: 1; width: auto; }
.page-search button { width: auto; }
/* Schede di una sezione del menu (Cards: ricerca, staple, analisi): quella in cui si è sottolineata */
.section-nav { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; margin: 0 0 .5rem; border-bottom: 1px solid var(--border); }
.section-nav a { display: inline-block; padding: .45rem 0; margin-bottom: -1px; text-decoration: none; border-bottom: 3px solid transparent; }
.section-nav a:hover { border-bottom-color: var(--border); }
.section-nav a[aria-current] { color: var(--text); font-weight: 700; border-bottom-color: var(--accent); }
.search-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 1.5rem; }
/* Menu delle sezioni: sul computer i suoi figli stanno nella barra come prima (display: contents);
   su telefono, solo con JavaScript (static/js/menu.js mette .has-menu), si apre con il pulsante.
   Senza JavaScript i link restano sempre visibili */
.site-menu { display: contents; }
.menu-toggle { display: none; }
.menu-only { display: none; }
@media (max-width: 700px) {
  .has-menu .menu-toggle { display: inline-flex; align-items: center; gap: .35rem; min-height: 44px; padding: 0 .8rem;
                           border: 1px solid var(--border); border-radius: 6px; background: var(--surface);
                           color: var(--text); font: inherit; cursor: pointer; }
  .has-menu .menu-toggle[aria-expanded="true"] { border-color: var(--accent); }
  .has-menu .site-menu { display: none; }
  .has-menu .menu-only { display: block; }
  .has-menu .account .my-decks { display: none; }
  /* Su telefono la lingua è solo la bandiera (il nome resta per i lettori di schermo nell'etichetta) */
  .lang-menu .lang-name { display: none; }
  /* Prima riga: nome, Menu e lingua a destra; seconda: contatore e account */
  .has-menu .lang-menu { order: 1; margin-left: auto; }
  .has-menu .account { order: 2; flex-basis: 100%; }
  .has-menu .site-menu.open { display: flex; flex-direction: column; gap: .25rem; order: 10; flex-basis: 100%;
                              padding-top: .5rem; border-top: 1px solid var(--border); }
  .has-menu .site-menu.open nav { flex-direction: column; gap: 0; order: 2; }
  .has-menu .site-menu.open .site-search { order: 1; }
  .has-menu .site-menu.open .site-search input { flex: 1; width: auto; min-height: 44px; }
  .has-menu .site-menu.open .site-search button { min-height: 44px; min-width: 44px; }
  .has-menu .site-menu.open nav a { padding: .6rem 0; }
}

/* width: 100% serve dentro la colonna del corpo: con i margini automatici, senza, main si
   restringerebbe al suo contenuto */
.container { width: 100%; max-width: 1100px; margin: 0 auto; padding: 1.5rem 1rem; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }

.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; margin: 1.5rem 0; }
.tile { display: block; padding: 1rem; background: var(--surface); border: 1px solid var(--border);
        border-radius: 8px; color: var(--text); text-decoration: none; }
.tile:hover { border-color: var(--accent); }
.tile h2 { margin: 0 0 .25rem; font-size: 1.1rem; }
.tile p { margin: 0; color: var(--muted); }

/* Home: il meta di ogni formato. La striscia è il meta a colpo d'occhio, un tratto per archetipo
   lungo quanto la sua quota con i colori del mazzo tipico; la parte vuota sono tutti gli altri
   mazzi. Il bordo bianco tra i tratti separa due archetipi degli stessi colori */
.format-metas { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 1rem;
                list-style: none; margin: 1rem 0 2rem; padding: 0; }
.format-meta { display: flex; flex-direction: column; gap: .5rem; padding: .9rem 1rem; background: var(--surface);
               border: 1px solid var(--border); border-radius: 8px; }
.format-meta h3 { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .6rem;
                  margin: 0; font-size: 1.15rem; }
.format-meta p { margin: 0; margin-top: auto; }
.meta-strip { display: flex; height: .9rem; overflow: hidden; border-radius: 3px; background: var(--border); }
.meta-strip > span { flex: 0 0 calc(var(--share) * 1%); min-width: 3px; box-shadow: inset -2px 0 0 var(--surface); }
.format-leaders { margin: 0; padding-left: 1.3rem; }
.format-leaders li { padding: .15rem 0; }
.format-leaders li::marker { color: var(--muted); font-variant-numeric: tabular-nums; }
.leader-share { float: right; margin-left: .5rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.event-list { list-style: none; margin: 0 0 .5rem; padding: 0; }
.event-list li { padding: .35rem 0; border-bottom: 1px solid var(--border); }
.event-list li:last-child { border-bottom: 0; }
.event-when { display: inline-block; min-width: 7.6rem; font-variant-numeric: tabular-nums; }
.home-play { margin-top: 2rem; padding: 1rem 1.2rem; background: var(--surface); border: 1px solid var(--border);
             border-left: 4px solid var(--accent); border-radius: 8px; }
.home-play h2 { margin-top: 0; }
.home-play p:last-child { margin-bottom: 0; }

.form { max-width: 420px; }
.form input { width: 100%; padding: .5rem; border: 1px solid var(--border); border-radius: 6px;
              background: var(--surface); color: var(--text); }
button { padding: .5rem 1rem; border: 0; border-radius: 6px; background: var(--accent); color: var(--on-accent); cursor: pointer; }
button.link { padding: 0; min-height: 24px; background: none; color: var(--accent); }  /* 24 px: WCAG 2.5.8 */

/* Link con l'aspetto di un pulsante (Log in e Sign up nella barra in alto); secondary: solo il bordo */
.button { display: inline-block; padding: .35rem .85rem; border: 1px solid var(--accent); border-radius: 6px;
          background: var(--accent); color: var(--on-accent); font-weight: 600; line-height: 1.3; text-decoration: none; }
.button:hover { filter: brightness(.92); }
.button.secondary, button.secondary { background: transparent; color: var(--accent); border: 1px solid var(--accent); }
.button.secondary:hover, button.secondary:hover { filter: none; background: color-mix(in srgb, var(--accent) 12%, transparent); }
.button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Fondo pagina: a tutta larghezza, con lo sfondo e il bordo della barra in alto */
.site-footer { background: var(--surface); border-top: 1px solid var(--border); }
.site-footer .container { padding-top: 1.5rem; padding-bottom: 1rem; }
.site-footer p { margin: .25rem 0; }
/* Piè di pagina: le sezioni e i formati in colonne che vanno a capo, poi la riga della Fan Content
   Policy con la lingua in fondo a destra */
.footer-nav { display: grid; grid-template-columns: repeat(auto-fit, minmax(10rem, 1fr)); gap: 1rem 1.5rem; }
.footer-nav h2 { font-size: .9rem; margin: 0 0 .4rem; }
.footer-nav ul { list-style: none; margin: 0; padding: 0; }
.footer-nav li { margin: .2rem 0; }
.footer-nav a { display: inline-block; padding: .1rem 0; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; align-items: center; justify-content: space-between;
                 margin-top: 1.25rem; padding-top: .75rem; border-top: 1px solid var(--border); }
.footer-bottom p { flex: 1 1 24rem; }
.lang-menu { position: relative; }
.lang-menu summary { display: inline-flex; align-items: center; gap: .45rem; min-height: 32px; padding: .2rem .7rem;
                     border: 1px solid var(--border); border-radius: 6px; cursor: pointer; list-style: none; }
.lang-menu summary::-webkit-details-marker { display: none; }
.lang-menu summary::after { content: "▾"; color: var(--muted); }
.lang-menu[open] summary::after { content: "▴"; }
.lang-menu summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.lang-menu ul { position: absolute; right: 0; top: calc(100% + .3rem); z-index: 30; min-width: 100%; margin: 0; padding: .3rem;
                list-style: none; background: var(--surface); border: 1px solid var(--border); border-radius: 6px;
                box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.lang-menu li > * { display: flex; align-items: center; gap: .45rem; padding: .35rem .5rem; white-space: nowrap; border-radius: 4px; }
.lang-menu li > span { font-weight: 700; }
.lang-menu li > a:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.flag { display: inline-block; height: 14px; width: auto; border-radius: 2px; box-shadow: 0 0 0 1px var(--border); }

/* Carte */
.filters { display: flex; flex-wrap: wrap; gap: .75rem; margin-bottom: 1rem; }
.filters label { display: flex; flex-direction: column; gap: .25rem; font-size: .85rem; color: var(--muted); }
.filters input, .filters select { padding: .4rem; border: 1px solid var(--border); border-radius: 6px;
                                  background: var(--surface); color: var(--text); }
.card-grid { list-style: none; padding: 0; margin: 0; display: grid; gap: .75rem;
             grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.card-grid img { width: 100%; height: auto; aspect-ratio: 488 / 680; border-radius: 4.75% / 3.5%; display: block; }
#results { min-height: 60vh; }
.card-placeholder { display: flex; align-items: center; justify-content: center; aspect-ratio: 488 / 680;
                    padding: .5rem; text-align: center; background: var(--surface); border: 1px solid var(--border);
                    border-radius: 8px; color: var(--text); }
.pager { display: flex; gap: 1rem; justify-content: center; align-items: center; margin: 1.5rem 0; }
.card-detail { display: grid; grid-template-columns: minmax(0, 340px) 1fr; gap: 2rem; }
.card-detail img { width: 100%; height: auto; border-radius: 4.75% / 3.5%; }
.card-detail h1 { margin-top: 0; }
.mana { font-size: 1rem; font-weight: 400; color: var(--muted); }
.oracle { white-space: normal; }
/* Legalità: per famiglia una griglia di riquadri piccoli, formato e stato; i formati dove la carta
   non è legale restano più tenui */
.legal-family { margin: .75rem 0 .3rem; font-size: .85rem; color: var(--muted); font-weight: 600; }
.legal-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(8.5rem, 1fr)); gap: .3rem; list-style: none;
              margin: 0; padding: 0; font-size: .85rem; }
.legal-list li { display: flex; flex-direction: column; padding: .2rem .45rem; border: 1px solid var(--border); border-radius: 6px;
                 background: var(--surface); line-height: 1.25; }
.legal-format { font-weight: 600; }
.legal-not_legal { border-style: dashed; background: transparent; }
.legal-not_legal .status-not_legal { color: var(--muted); }
.status-legal { color: var(--status-ok); }
.status-banned { color: var(--status-bad); }
.status-restricted { color: var(--status-warn); }
@media (max-width: 640px) { .card-detail { grid-template-columns: 1fr; } }


.links { list-style: none; padding: 0; }
.links li { margin: .25rem 0; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Campo trappola dell'iscrizione (apps/accounts/forms.py): fuori dallo schermo, non con display:none */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* Meta game */
.toolbar { display: flex; flex-wrap: wrap; gap: 1rem; margin: 1rem 0; }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; }
.chip { padding: .2rem .7rem; border: 1px solid var(--border); border-radius: 999px; font-size: .85rem;
        text-decoration: none; color: var(--text); background: var(--surface); }
.chip.active { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.data { width: 100%; border-collapse: collapse; margin: .5rem 0 1.5rem; }
.data th, .data td { padding: .4rem .6rem; border-bottom: 1px solid var(--border); text-align: left; }
.data th { font-size: .85rem; color: var(--muted); font-weight: 600; }
.data .num { text-align: right; font-variant-numeric: tabular-nums; }
.data tr.muted a { color: var(--muted); }
/* Tabelle su telefono: le colonne secondarie (.col-wide) spariscono e i loro valori tornano in una
   riga piccola sotto il nome (.cell-more), così la pagina non scorre di lato. Su schermo largo la riga
   resta nascosta, e chi usa un lettore di schermo non sente i valori due volte */
.cell-more { display: none; }
/* Spazi pubblicitari (apps/core/ads.py): l'altezza è riservata prima che l'annuncio arrivi, così la
   pagina non salta (CLS). Misure standard: 728×90 sopra i 760 px; su telefono 320×100 in alto e
   300×250 dopo la tabella. L'etichetta dice che è pubblicità, sempre */
.ad-slot { margin: 1rem auto 1.5rem; text-align: center; contain: layout; }
.ad-label { display: block; font-size: .7rem; color: var(--muted); margin-bottom: .2rem; }
.ad-unit { margin: 0 auto; max-width: 100%; background: var(--surface); border-radius: 4px; overflow: hidden; }
.ad-slot-top .ad-unit { width: 320px; height: 100px; }
.ad-slot-content .ad-unit { width: 300px; height: 250px; }
@media (min-width: 760px) {
  .ad-slot-top .ad-unit, .ad-slot-content .ad-unit { width: 728px; height: 90px; }
}
/* Pagina personale (accounts/account.html): azioni di un mazzo nella riga, modulo per seguire un formato */
.inline-links.deck-actions { margin: 0; gap: .25rem 1rem; justify-content: flex-end; }
.follow-form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 1rem 0; }
.follow-form select { min-height: 2.25rem; max-width: 100%; }
.format-meta form { display: inline; }
.format-meta button.link { font: inherit; }
.followed .format-meta p { margin-top: 0; }
.followed-extra { margin-top: auto; }
.followed-extra .inline-links { margin: .5rem 0 0; }
@media (max-width: 600px) {
  .data .col-wide { display: none; }
  /* Nomi lunghi senza spazi (giocatori MTGO): vanno a capo invece di allargare la tabella */
  .data td:not(.num) { overflow-wrap: anywhere; }
  .data td.num { white-space: nowrap; }
  .data .cell-more { display: flex; flex-wrap: wrap; gap: 0 .9rem; margin-top: .1rem; font-size: .85rem;
                     color: var(--muted); font-variant-numeric: tabular-nums; }
}
/* Rete di sicurezza per una tabella che non si può piegare: scorre lei, non la pagina */
.table-scroll { overflow-x: auto; }
/* Cosa vogliono dire le colonne: sotto la tabella, visibile anche su telefono (un title= non si vede al tocco) */
.col-notes { margin: -1rem 0 1.5rem; font-size: .85rem; color: var(--muted); }
.col-notes div { margin: .15rem 0; }
.col-notes dt { display: inline; font-weight: 600; }
.col-notes dt::after { content: ":"; }
.col-notes dd { display: inline; margin: 0 0 0 .25rem; }
.share { min-width: 160px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar { display: inline-block; height: .6rem; max-width: 100px; margin-right: .4rem; border-radius: 3px;
       background: var(--accent); vertical-align: middle; }

/* Tabella del meta (meta/format.html). La barra della quota è l'unico elemento forte della
   pagina: a segmenti con i colori dell'archetipo (sfondo dato dalla vista, ShareRow.bar_background) */
.meta-table caption { caption-side: top; text-align: left; color: var(--muted); font-size: .9rem; padding: 0 0 .4rem; }
.meta-table td:first-child a { text-decoration: none; font-weight: 600; }
.meta-table td:first-child a:hover, .meta-table td:first-child a:focus-visible { text-decoration: underline; }
.meta-table tr.muted td:first-child a { font-weight: 400; }
.meta-table .share-bar { display: inline-block; height: .8rem; width: calc(var(--w) * 1.4px); min-width: 3px;
                         margin-right: .5rem; border-radius: 2px; vertical-align: -1px;
                         box-shadow: inset 0 0 0 1px var(--pip-border); }
.meta-table .nowrap { white-space: nowrap; }
.meta-table .trend { white-space: nowrap; font-variant-numeric: tabular-nums; }
.meta-table .trend-steady, .meta-table .trend-new { color: var(--muted); }
.meta-table .trend-inline { display: none; }
/* Tabelle piccole dentro una colonna (pagina della carta): righe più strette */
.data.compact td, .data.compact th { padding: .3rem .4rem; }
/* Link affiancati (dopo una partita, sotto le statistiche): al posto dei punti in mezzo */
.inline-links { display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; list-style: none; padding: 0; margin: 1rem 0; }
/* Legenda (matrice dei matchup): voci affiancate, che vanno a capo intere */
.legend { display: flex; flex-wrap: wrap; gap: .25rem 1.25rem; list-style: none; padding: 0; margin: .5rem 0; }
/* Dati di una pagina (giocatore, evento, data, fonte...): coppie etichetta-valore affiancate, al
   posto di una riga di valori separati da punti, che non dice cosa sia ognuno */
.facts { display: flex; flex-wrap: wrap; gap: .35rem 1.75rem; margin: .5rem 0 1.25rem; }
.facts > div { display: flex; gap: .45rem; align-items: baseline; }
.facts dt { color: var(--muted); font-size: .9rem; }
.facts dd { margin: 0; }
h1 .pips { margin-left: .6rem; vertical-align: .2em; }
h1 .pip { width: 1.6rem; height: 1.6rem; font-size: .9rem; }
/* Pallini dei colori: lettera del mana su un cerchio del suo colore */
.pips { display: inline-flex; gap: 2px; margin-left: .45rem; vertical-align: 1px; white-space: nowrap; }
.pip { display: inline-grid; place-items: center; width: 1.15rem; height: 1.15rem; border-radius: 50%;
       font-size: .68rem; font-weight: 700; line-height: 1; box-shadow: inset 0 0 0 1px var(--pip-border); }
.pip-w { background: var(--mana-w); color: var(--on-mana-light); }
.pip-u { background: var(--mana-u); color: var(--on-mana-dark); }
.pip-b { background: var(--mana-b); color: var(--on-mana-dark); }
.pip-r { background: var(--mana-r); color: var(--on-mana-dark); }
.pip-g { background: var(--mana-g); color: var(--on-mana-dark); }
.pip-c { background: var(--mana-c); color: var(--on-mana-light); }
/* Costo generico (numeri, X) e simboli rari (ibridi, phyrexiani) come etichetta */
.pip-n { background: var(--surface); color: var(--text); }
.pip-text { width: auto; padding: 0 .35rem; border-radius: 999px; background: var(--surface); color: var(--text); }
/* Tap, untap, neve, energia: un segno al posto della lettera */
.pip-glyph { font-size: .8rem; font-weight: 400; }
/* Ibrido: le due metà dei colori, le lettere chiare con il contorno scuro per leggersi su tutte e due */
.pip-hybrid { width: auto; min-width: 1.15rem; padding: 0 .2rem; border-radius: 999px; color: #fff; font-size: .6rem;
              background: linear-gradient(135deg, var(--pip-a) 50%, var(--pip-b) 50%);
              text-shadow: 0 0 2px #000, 0 0 2px #000; }
/* Nel testo oracle i pallini stanno sulla riga del testo */
.oracle .pip, .preview-text .pip, .popup-text .pip { vertical-align: -.15em; margin: 0 1px; }
/* I simboli di Scryfall (static/img/mana/, apps/cards/symbols.py): stessa misura dei pallini */
.ms { display: inline-block; width: 1.15rem; height: 1.15rem; vertical-align: -.2em; }
.pips .ms { vertical-align: 0; }
h1 .ms { width: 1.6rem; height: 1.6rem; }
.oracle .ms, .preview-text .ms, .popup-text .ms { width: 1em; height: 1em; vertical-align: -.12em; margin: 0 1px; }
/* Telefono: archetipo (con il trend sotto), quota e top 8; i mazzi e la colonna del trend spariscono */
@media (max-width: 600px) {
  .meta-table .col-decks, .meta-table .col-trend { display: none; }
  .meta-table .trend-inline { display: block; font-size: .85rem; margin-top: .1rem; }
  .meta-table .share { min-width: 0; }
  .meta-table .share-bar { width: calc(var(--w) * .7px); }
}
.events { list-style: none; padding: 0; }
.events li { padding: .3rem 0; border-bottom: 1px solid var(--border); }
.two-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; }
.decklist { display: grid; grid-template-columns: 2fr 1fr; gap: 2rem; }
.decklist ul { list-style: none; padding: 0; margin: 0 0 1rem; }
.decklist h3 { font-size: .95rem; color: var(--muted); margin: 1rem 0 .3rem; }
@media (max-width: 720px) { .two-cols, .decklist { grid-template-columns: 1fr; } }

/* Matrice dei matchup: blu se l'archetipo della riga vince più spesso, arancio se perde più spesso
   (due colori distinguibili anche da chi non vede i colori). Il testo resta del colore normale:
   sulle tinte chiare (e scure nel tema scuro) il contrasto supera 4,5:1 */
:root { --mu-win2: #9ecae1; --mu-win1: #deebf7; --mu-loss1: #fee6ce; --mu-loss2: #fdae6b; }
@media (prefers-color-scheme: dark) {
  :root { --mu-win2: #1f4e79; --mu-win1: #1b3450; --mu-loss1: #4a3018; --mu-loss2: #7a4210; }
}
.matrix-wrap { overflow-x: auto; margin: 1rem 0; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); }
.matrix-wrap:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.matrix { border-collapse: separate; border-spacing: 0; font-size: .85rem; font-variant-numeric: tabular-nums; }
.matrix caption { caption-side: top; text-align: left; padding: .5rem .75rem; color: var(--muted); }
/* La didascalia resta ferma a sinistra mentre la tabella scorre, larga quanto lo schermo */
.matrix caption span { display: inline-block; position: sticky; left: .75rem; max-width: min(40rem, calc(100vw - 4rem)); }
/* Su schermo stretto la matrice non ci sta: lo si dice prima, perché la prima schermata mostra solo 3 colonne */
.matrix-hint { display: none; margin-bottom: -.5rem; }
@media (max-width: 1000px) { .matrix-hint { display: block; } }
.matrix th, .matrix td { padding: .35rem .45rem; border-bottom: 1px solid var(--border); text-align: center; }
.matrix thead th { vertical-align: bottom; font-weight: 600; min-width: 4.5rem; max-width: 7rem; }
.matrix th[scope="row"] { position: sticky; left: 0; z-index: 1; background: var(--surface); text-align: left;
                          white-space: nowrap; border-right: 1px solid var(--border); }
.matrix td a { display: block; color: var(--text); text-decoration: none; }
.matrix td a:hover .rate, .matrix td a:focus-visible .rate { text-decoration: underline; }
.matrix .rate { display: block; font-weight: 600; }
.matrix .record { display: block; font-size: .75rem; }
.mu-win2 { background: var(--mu-win2); }
.mu-win1 { background: var(--mu-win1); }
.mu-loss1 { background: var(--mu-loss1); }
.mu-loss2 { background: var(--mu-loss2); }
.matrix td.mu-few a, .mu-none, .mu-self { color: var(--muted); }
.legend-swatch { display: inline-block; width: .9rem; height: .9rem; border-radius: 3px; vertical-align: -.1rem;
                 border: 1px solid var(--border); }

/* Staple: filtri e tabelle con la miniatura della carta (dal CDN di Scryfall) */
.staple-filters { display: flex; flex-direction: column; gap: .5rem; margin: 1rem 0 1.5rem; }
.staple-filters .chips { align-items: center; }
.staple-card { display: flex; align-items: center; gap: .5rem; }
.staple-card img { width: 40px; height: 56px; border-radius: 4.75% / 3.5%; object-fit: cover; flex: none; }
.staple-name { display: flex; flex-direction: column; }
.staple-name .mana { font-size: .8rem; }
.data.staples td { vertical-align: middle; }
/* Oltre le prime 50 righe: nascoste finché "Show all" è chiuso (senza :has() si vedono tutte) */
.staple-section:has(.staple-more:not([open])) .staple-extra { display: none; }
.staple-more { margin: -1rem 0 1.5rem; }
.staple-more summary { display: inline-block; padding: .3rem .8rem; border: 1px solid var(--border); border-radius: 999px;
                       background: var(--surface); color: var(--accent); cursor: pointer; list-style: none; }
.staple-more summary::-webkit-details-marker { display: none; }
.staple-more summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.staple-more[open] .when-closed, .staple-more:not([open]) .when-open { display: none; }
.staple-more + .col-notes { margin-top: 0; }
.card-staples ul { margin-top: 0; }

/* Collezione di mazzi e messaggi dopo un'azione */
.deck-actions { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin: .75rem 0 1rem; }
.deck-actions form { margin: 0; }
/* Salva e annulla di un modulo lungo (l'editor dei mazzi): attaccati al fondo dello schermo */
.form-actions { display: flex; flex-wrap: wrap; gap: 1rem; align-items: center; }
.sticky-actions { position: sticky; bottom: 0; z-index: 5; margin: 1rem -1rem 0; padding: .6rem 1rem;
                  background: var(--surface); border-top: 1px solid var(--border); }
/* La lista da provare nella pagina di un archetipo */
.featured-deck { margin: 1rem 0; padding: .8rem 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.featured-deck h2 { margin: 0 0 .3rem; font-size: 1.1rem; }
.featured-deck p { margin: 0; }
.featured-deck .deck-actions { margin: .6rem 0 0; }
button.chip { cursor: pointer; font: inherit; font-size: .85rem; }
.deck-warnings { margin: 1rem 0; padding: .75rem 1rem; border: 1px solid var(--status-warn); border-radius: 8px; background: var(--surface); }
.deck-warnings h2 { margin: 0 0 .25rem; font-size: 1rem; }
.deck-warnings ul { margin: 0; padding-left: 1.2rem; }
.flash { list-style: none; padding: 0; margin: 0 0 1rem; }
.flash li { padding: .5rem .75rem; border-radius: 6px; background: var(--surface); border: 1px solid var(--border); }
.flash .flash-error { border-color: var(--status-bad); }
.flash .flash-success { border-color: var(--status-ok); }

/* Calendario dei tornei: due settimane da lunedì (una colonna per giorno, su telefono una lista) e il mese */
.cal-weeks { margin-top: 2rem; }
.cal-week { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.cal-day { padding: .4rem .5rem; background: var(--surface); border: 1px solid var(--border); border-radius: 6px; font-size: .85rem; min-width: 0; }
.cal-day ul { list-style: none; padding: 0; margin: .25rem 0 0; }
.cal-date { display: block; font-weight: 600; color: var(--muted); font-size: .8rem; }
.cal-item { padding: .15rem 0; overflow-wrap: anywhere; }
.cal-item.expected, .cal-item.expected a { color: var(--muted); }
.cal-time { font-variant-numeric: tabular-nums; font-weight: 600; margin-right: .25rem; }
/* "＋": aggiungere un torneo previsto al proprio calendario (.ics o Google Calendar) */
.cal-add { display: inline-block; }
.cal-add summary { display: inline-block; cursor: pointer; padding: 0 .3rem; border: 1px solid var(--border); border-radius: 4px;
                   color: var(--accent); list-style: none; }
.cal-add summary::-webkit-details-marker { display: none; }
.cal-add summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cal-add[open] .cal-add-menu { display: flex; flex-direction: column; gap: .2rem; margin-top: .25rem; padding: .35rem .5rem;
                               background: var(--bg); border: 1px solid var(--border); border-radius: 6px; }
.cal-nav { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1rem 0; }
.cal-month-wrap { overflow-x: auto; }
.cal-month { width: 100%; border-collapse: separate; border-spacing: .3rem; table-layout: fixed; }
.cal-month caption { text-align: left; color: var(--muted); padding-bottom: .25rem; }
.cal-month th { font-size: .85rem; color: var(--muted); }
.cal-month td { vertical-align: top; }
.cal-month td.cal-day { height: 5.5rem; }
.cal-outside { background: none; }
/* I prossimi tornei in testa al mese in corso, e oggi segnato nella griglia */
.cal-next ul { list-style: none; padding: 0; margin: .25rem 0 .5rem; }
.cal-next .cal-item { padding: .3rem 0; border-bottom: 1px solid var(--border); }
.cal-item-day { display: inline-block; min-width: 5.5rem; color: var(--muted); }
.cal-month td#today { border-color: var(--accent); scroll-margin-top: 1rem; }
@media (max-width: 760px) {
  .cal-month caption { display: block; }
  .cal-month .cal-day.empty#today { display: block; }
  .cal-week { grid-template-columns: 1fr; }
  .cal-week .cal-day.empty { display: none; }
  /* Il mese su telefono: un giorno sotto l'altro, solo quelli con tornei */
  .cal-month, .cal-month tbody, .cal-month tr, .cal-month td { display: block; width: 100%; }
  .cal-month thead, .cal-month .cal-outside, .cal-month .cal-day.empty { display: none; }
  .cal-month td.cal-day { height: auto; margin-bottom: .3rem; }
}
/* Etichetta del formato: il nome è sempre scritto, il colore aiuta solo a scorrere */
.fmt-badge { display: inline-block; padding: 0 .35rem; border-radius: 4px; font-size: .72rem; font-weight: 700;
             margin-right: .25rem; color: #1d1d1f; background: #e2e2e0; }
.fmt-standard { background: #cfe3f7; } .fmt-pioneer { background: #fde2c4; } .fmt-modern { background: #d9d2f3; }
.fmt-legacy { background: #f6d0d6; } .fmt-vintage { background: #e9dfc9; } .fmt-pauper { background: #cdeccf; }

/* Uso della carta nei tornei */
.card-usage { margin-top: 2.5rem; }
.card-usage > .col-notes { margin-top: 0; }
.usage-format { padding: 1rem 0; border-top: 1px solid var(--border); }
.usage-format h3 { margin: 0 0 .25rem; }
.usage-format h4 { margin: .5rem 0; font-size: .95rem; }
.three-cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.5rem; }
.data.compact th, .data.compact td { padding: .25rem .4rem; font-size: .9rem; }
@media (max-width: 900px) { .three-cols { grid-template-columns: 1fr; } }

/* Analisi carte */
.trend.up { color: var(--status-ok); }
.trend.down { color: var(--status-bad); }
.analysis-head { display: flex; gap: 1rem; align-items: flex-start; }
.analysis-head img { border-radius: 4.75% / 3.5%; width: 110px; height: auto; }
.analysis-head h1 { margin: 0 0 .25rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin: 1.5rem 0 1rem; }
.stat-tile { padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.stat-label { font-size: .85rem; color: var(--muted); }
.stat-value { font-size: 2rem; font-weight: 600; line-height: 1.2; }
.sparkline { display: block; max-width: 100%; height: auto; margin-top: .5rem; }
.spark-base { stroke: var(--border); stroke-width: 1; }
.spark-line { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.spark-last { fill: var(--accent); stroke: var(--surface); stroke-width: 2; }
.spark-hit { fill: transparent; }
.spark-hit:hover { fill: var(--accent); fill-opacity: .15; }

/* SEO: percorso di navigazione, frase riassuntiva, data dei dati, pagine di testo */
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .35rem; padding: 0; margin: 0 0 1rem; }
.breadcrumbs li + li::before { content: "›"; margin-right: .35rem; color: var(--muted); }
.lead { font-size: 1.05rem; max-width: 70ch; }
.updated { margin-top: -.5rem; }
.prose { max-width: 70ch; }

/* Mazzo: confronto con la lista media dell'archetipo */
.deck-diff { margin: 1rem 0 1.5rem; padding: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; }
.deck-diff h2 { margin-top: 0; font-size: 1.1rem; }
.deck-diff ul { list-style: none; padding: 0; margin: 0; }

/* Simulatore: lobby, attesa, ingresso in partita (il tavolo è in static/play/table.css) */
.play-form select, .play-form textarea, .deck-form input[name="name"], .share-link { width: 100%; max-width: 640px; padding: .5rem;
  border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; }
.play-form textarea { font-family: ui-monospace, monospace; font-size: .9rem; }
.play-form fieldset { border: 0; padding: 0; margin: 0 0 1rem; }
/* Le scelte (avversario, match) una per riga: le etichette sono lunghe e affiancate andavano a capo a metà */
.play-form label.inline { display: flex; align-items: baseline; gap: .5rem; padding: .2rem 0; }
.play-form label.inline input { flex: none; }
/* "Play now" della lobby: la scelta già fatta, con il pulsante */
.quick-play { margin: 1rem 0 1.5rem; padding: .9rem 1.1rem; background: var(--surface); border: 1px solid var(--border);
              border-left: 4px solid var(--accent); border-radius: 8px; }
.quick-play h2 { margin: 0 0 .3rem; }
.quick-play p { margin: 0 0 .7rem; }
.quick-play form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1rem; margin: 0; }
.play-form p > label, .play-form legend { display: block; margin-bottom: .25rem; font-weight: 600; }
.play-form p > .small.muted { display: block; margin-top: .25rem; }
.errors { color: var(--status-bad); }
/* Contatore nella barra, accanto a "My decks": utenti online e partite in corso nel simulatore */
.live-counter { display: inline-flex; align-items: center; gap: .4rem; padding: .2rem .65rem; font-size: .85rem;
                color: var(--text); text-decoration: none; white-space: nowrap;
                border: 1px solid var(--border); border-radius: 999px; }
.live-counter:hover { border-color: var(--accent); }
.live-counter:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.live-dot { width: .6rem; height: .6rem; border-radius: 50%; background: var(--status-ok); }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: live-pulse 2s ease-in-out infinite; }
  @keyframes live-pulse { 50% { opacity: .35; } }
}

/* Trascinamento (static/js/dnd.js): la copia che segue il puntatore, la carta di partenza attenuata,
   la zona di arrivo con un bordo tratteggiato (non solo colore: anche la forma del bordo) */
.dnd-ghost { position: fixed; left: 0; top: 0; z-index: 1000; margin: 0; pointer-events: none; opacity: .92;
             list-style: none; background: var(--surface); box-shadow: 0 6px 18px rgba(0, 0, 0, .25); }
.dnd-source { opacity: .45; }
.drop-target { outline: 3px dashed var(--accent); outline-offset: 2px; }
.dnd-active, .dnd-active * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }

/* Editor dei mazzi della collezione (static/collection/editor.js) */
.deck-editor { margin: 1rem 0; }
.deck-editor h2, .deck-suggest h2 { font-size: 1.1rem; margin: 0 0 .5rem; }
.card-search { position: relative; max-width: 640px; margin-bottom: 1rem; }
.card-search label { display: block; font-weight: 600; margin-bottom: .25rem; }
.card-search input { width: 100%; padding: .5rem; border: 1px solid var(--border); border-radius: 6px;
                     background: var(--surface); color: var(--text); font: inherit; }
.card-search .small.muted { display: block; margin-top: .25rem; }
.search-results { position: absolute; left: 0; right: 0; z-index: 20; margin: .25rem 0 0; padding: .25rem; list-style: none;
                  max-height: 22rem; overflow: auto; background: var(--surface); border: 1px solid var(--accent); border-radius: 6px;
                  box-shadow: 0 6px 18px rgba(0, 0, 0, .15); }
.search-option { display: flex; align-items: center; gap: .6rem; padding: .3rem .4rem; border-radius: 4px; cursor: grab;
                 border: 2px solid transparent; touch-action: pan-y; }
.search-option[aria-selected="true"] { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.search-option:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.option-text { display: flex; flex-direction: column; min-width: 0; }
.option-name { font-weight: 600; }
.search-results img, .deck-row img, .suggest-card img { width: 32px; height: auto; border-radius: 4.75% / 3.5%; flex: none; }
.suggest-card img { width: 40px; }
.deck-zones { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.deck-zone { padding: .75rem; background: var(--surface); border: 1px solid var(--border); border-radius: 8px; min-height: 6rem; }
.deck-zone.zone-main { grid-row: span 2; }
.deck-zone h3 { font-size: 1rem; margin: 0 0 .4rem; }
.deck-zone h4 { margin: .6rem 0 .2rem; color: var(--muted); font-weight: 600; }
.zone-count { font-weight: 400; color: var(--muted); }
.deck-rows { list-style: none; margin: 0; padding: 0; }
.deck-row { display: flex; align-items: center; gap: .4rem; padding: .15rem .25rem; border-radius: 4px; cursor: grab; touch-action: pan-y; }
.deck-row:hover { background: color-mix(in srgb, var(--accent) 8%, transparent); }
.row-qty { min-width: 1.6rem; text-align: right; font-variant-numeric: tabular-nums; font-weight: 600; }
.row-name { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.row-name .unknown { color: var(--status-bad); }
.row-actions { display: flex; gap: .2rem; flex: none; }
.row-button { min-width: 24px; min-height: 24px; padding: .1rem .4rem; font-size: .85rem; line-height: 1.2; background: none;
              color: var(--accent); border: 1px solid var(--border); border-radius: 4px; }
.row-button:hover, .row-button:focus-visible { border-color: var(--accent); }
.deck-problems { margin-top: .75rem; }
.deck-problems h3 { margin: 0 0 .25rem; }
.deck-problems ul { margin: 0; padding-left: 1.2rem; color: var(--status-bad); }
.deck-problems .ready { color: var(--status-ok); font-weight: 600; }
.deck-suggest { margin: 1.5rem 0; }
.suggest-columns { display: grid; grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); gap: 1rem; }
.suggest-part h3 { font-size: 1rem; margin: 0 0 .3rem; }
.suggest-list { list-style: none; margin: 0; padding: 0; }
.suggest-card { display: flex; align-items: center; gap: .5rem; padding: .25rem; border-radius: 4px; touch-action: pan-y; }
.suggest-card:has(button:not([hidden])) { cursor: grab; }
.suggest-text { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.suggest-card button { padding: .2rem .6rem; }
.deck-suggest button.secondary { background: none; color: var(--accent); border: 1px solid var(--accent); }
.deck-text { margin: 1rem 0; }
.deck-text summary { cursor: pointer; font-weight: 600; }
@media (max-width: 700px) {
  .deck-zones { grid-template-columns: minmax(0, 1fr); }
  .deck-zone.zone-main { grid-row: auto; }
}
/* Anteprima al passaggio del mouse sui link alle carte (static/js/card-hover.js), in tutte le pagine */
.card-hover { position: fixed; z-index: 900; pointer-events: none; }
.card-hover img { display: block; width: 244px; height: auto; border-radius: 4.75% / 3.5%;
                  box-shadow: 0 8px 28px rgba(0, 0, 0, .35); }
/* Anteprima della carta nell'editor: l'immagine grande accanto alla riga */
/* Immagine e, accanto, nome, costo, tipo e testo oracle */
.card-preview { position: fixed; z-index: 900; display: flex; gap: .75rem; width: min(92vw, 520px); padding: .5rem;
                pointer-events: none; background: var(--surface); color: var(--text);
                border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 8px 28px rgba(0, 0, 0, .3); }
.card-preview[hidden], .dnd-active .card-preview { display: none; }
.card-preview img { display: block; width: 244px; height: auto; flex: none; border-radius: 4.75% / 3.5%; }
.preview-text { min-width: 0; }
.preview-text p { margin: .4rem 0 0; }
@media (max-width: 600px) { .card-preview img { width: 140px; } }
/* Scelta della stampa nell'editor */
.print-picker { width: min(94vw, 760px); max-height: 85vh; overflow: auto; padding: 1rem; background: var(--surface); color: var(--text);
                border: 1px solid var(--border); border-radius: 10px; }
.print-picker::backdrop { background: rgba(0, 0, 0, .45); }
.print-picker h2 { font-size: 1.1rem; margin: 0 0 .25rem; }
.print-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: .6rem; list-style: none; padding: 0; margin: .5rem 0; }
.print-option { display: flex; flex-direction: column; gap: .25rem; width: 100%; padding: .3rem; text-align: left; background: none;
                color: var(--text); border: 2px solid transparent; border-radius: 8px; }
.print-option:hover, .print-option:focus-visible { border-color: var(--border); }
.print-option[aria-pressed="true"] { border-color: var(--accent); }
.print-option img { width: 100%; height: auto; border-radius: 4.75% / 3.5%; }
.picker-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.picker-search label, .prints-search label { display: block; font-weight: 600; margin-bottom: .25rem; }
.picker-search input, .prints-search input { width: 100%; max-width: 420px; padding: .45rem .5rem; border: 1px solid var(--border);
                                             border-radius: 6px; background: var(--bg); color: var(--text); font: inherit; }
.picker-favorite { padding: .4rem .6rem; border: 1px solid var(--accent); border-radius: 6px; font-weight: 600; }
.print-options li[hidden], .print-grid li[hidden] { display: none; }
.print-picker button.secondary { background: none; color: var(--accent); border: 1px solid var(--accent); }
.row-set { font-variant-caps: all-small-caps; }
.row-thumb { padding: 0; border: 0; background: none; border-radius: 3px; cursor: zoom-in; flex: none; line-height: 0; }
.row-thumb:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* Stampe della carta (pagina della carta): griglia di miniature con il set e la preferita */
.prints { margin-top: 1rem; }
.prints summary { cursor: pointer; font-weight: 600; }
.print-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .75rem; list-style: none; padding: 0; margin: .75rem 0 0; }
.print-grid li { display: flex; flex-direction: column; gap: .3rem; }
.print-grid img { width: 100%; height: auto; border-radius: 4.75% / 3.5%; }
.print-grid form { margin: 0; }
.print-grid button { width: 100%; padding: .25rem .4rem; background: none; color: var(--accent); border: 1px solid var(--accent); border-radius: 6px; }
.print-grid button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent); }
/* Appunti nella pagina di una partita finita */
.game-notes ul { list-style: none; padding: 0; margin: 0; }
.game-notes li { padding: .5rem 0; border-bottom: 1px solid var(--border); }
.game-notes li p { margin: 0; }
