/* ============================================================
   FRONTIER STORE

   Impianto: superfici bianche su fondo caldo, angoli morbidi,
   ombre appena accennate, gerarchia tipografica netta.
   Il richiamo western è solo nella temperatura dei colori e
   nella stella del marchio: niente serif, niente ornamenti.
   ============================================================ */

:root {
  color-scheme: light dark;

  /* Superfici */
  --paper:        #f6f4f0;   /* fondo pagina, bianco caldo */
  --paper-2:      #f0ece5;   /* fasce secondarie */
  --paper-3:      #e8e2d8;
  --card:         #ffffff;

  /* Testo */
  --ink:          #17140f;
  --ink-soft:     #6b6155;
  --ink-faint:    #948877;

  /* Linee: capelli, non bordi */
  --line:         rgba(23, 20, 15, 0.09);
  --line-strong:  rgba(23, 20, 15, 0.18);

  /* Accento */
  --brass:        #9a5024;
  --brass-deep:   #7d3f1a;
  --brass-wash:   #fbf1e9;

  --ok:           #2b7a4b;
  --warn:         #96671c;
  --bad:          #b3382a;

  --font-body:    -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI Variable Text",
                  "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-display: var(--font-body);
  --font-mono:    ui-monospace, "SF Mono", "SFMono-Regular", "Cascadia Mono", Consolas, monospace;

  --measure:      64rem;
  --reading:      42rem;
  --w:            var(--measure);
  --gutter:       1.25rem;

  --radius:       12px;
  --radius-lg:    18px;
  --radius-pill:  980px;

  --shadow-sm:    0 1px 2px rgba(23, 20, 15, 0.05);
  --shadow:       0 1px 2px rgba(23, 20, 15, 0.04), 0 10px 30px -16px rgba(23, 20, 15, 0.22);
  --shadow-lg:    0 2px 4px rgba(23, 20, 15, 0.05), 0 22px 50px -24px rgba(23, 20, 15, 0.3);
  --shadow-card:  var(--shadow);
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper:       #131110;
    --paper-2:     #1a1715;
    --paper-3:     #221e1a;
    --card:        #1b1817;

    --ink:         #f4efe8;
    --ink-soft:    #ada396;
    --ink-faint:   #8a8074;

    --line:        rgba(255, 250, 240, 0.10);
    --line-strong: rgba(255, 250, 240, 0.20);

    --brass:       #d98a54;
    --brass-deep:  #eda06b;
    --brass-wash:  #2a1d14;

    --ok:          #64b483;
    --warn:        #d6a45c;
    --bad:         #e07a68;

    --shadow-sm:   0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow:      0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 34px -20px rgba(0, 0, 0, 0.9);
    --shadow-lg:   0 2px 6px rgba(0, 0, 0, 0.5), 0 26px 60px -28px rgba(0, 0, 0, 1);
  }
}

/* ── Base ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.5;
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

img, svg { display: block; max-width: 100%; }
img { height: auto; }

a { color: var(--brass); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }

:focus-visible { outline: 2px solid var(--brass); outline-offset: 3px; border-radius: 4px; }

hr { border: 0; border-top: 1px solid var(--line); margin: 2rem 0; }

::selection { background: var(--brass-wash); }

/* ── Tipografia ────────────────────────────────────────────── */
h1, h2, h3, h4 {
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.022em;
  margin: 0 0 0.4em;
  text-wrap: balance;
}
h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.85rem); }
h2 { font-size: clamp(1.4rem, 1.2rem + 0.8vw, 1.85rem); }
h3 { font-size: 1.2rem; }

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

.lede { font-size: 1.08rem; color: var(--ink-soft); line-height: 1.45; }
.muted { color: var(--ink-faint); }
.mono { font-family: var(--font-mono); font-size: 0.9em; letter-spacing: 0; }

.overline {
  font-size: 0.75rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 0.7rem;
}
.eyebrow { font-size: 0.75rem; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--brass); margin: 0 0 0.6rem; }

/* ── Impaginazione ─────────────────────────────────────────── */
.wrap { width: 100%; max-width: var(--measure); margin-inline: auto; padding-inline: var(--gutter); }
.wrap--narrow { max-width: var(--reading); }

main { flex: 1 0 auto; padding-bottom: 4rem; }

.section { padding-block: clamp(2rem, 4vw, 3.25rem); }
.section--tight { padding-block: 1rem; }

.stack > * + * { margin-top: 1rem; }
.stack-sm > * + * { margin-top: 0.5rem; }
.spaced { margin-top: 1.25rem; }

.row { display: flex; gap: 0.75rem; flex-wrap: wrap; align-items: center; }
.row--between { justify-content: space-between; }
.row--center { justify-content: center; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ── Barra superiore ───────────────────────────────────────── */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.5rem; }

.brand { display: inline-flex; align-items: center; gap: 0.55rem; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 1.3rem; height: 1.3rem; flex: none; color: var(--brass); }
.brand__name { font-size: 0.98rem; font-weight: 600; letter-spacing: -0.015em; }

.nav { display: flex; align-items: center; gap: 1.6rem; }
.nav a { color: var(--ink-soft); font-size: 0.86rem; font-weight: 400; }
.nav a:hover { color: var(--ink); text-decoration: none; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 500; }

.nav-toggle { display: none; }

@media (max-width: 40rem) {
  .nav {
    display: none;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line);
    padding: 0.25rem var(--gutter) 0.75rem;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.75rem 0; border-top: 1px solid var(--line); font-size: 0.95rem; }
  .nav-toggle {
    display: inline-flex; align-items: center;
    background: none; border: 0; color: var(--ink);
    font: inherit; font-size: 0.86rem; padding: 0.35rem 0; cursor: pointer;
  }
}

/* ── Testata di pagina ─────────────────────────────────────── */
.hero { text-align: center; padding-block: clamp(2.5rem, 6vw, 4.5rem) clamp(1.75rem, 3vw, 2.5rem); }
.hero h1 { margin-bottom: 0.45rem; }
.hero .lede { max-width: 32rem; margin-inline: auto; }

.ip-copy {
  display: inline-flex; align-items: center; gap: 0.55rem;
  margin-top: 1.5rem;
  font-size: 0.88rem; color: var(--ink-soft);
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-pill); padding: 0.45rem 1rem;
  cursor: copy; box-shadow: var(--shadow-sm);
  transition: box-shadow 0.15s ease;
}
.ip-copy:hover { box-shadow: var(--shadow); }
.ip-copy b { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.ip-copy svg { width: 0.95rem; height: 0.95rem; color: var(--ink-faint); }

/* ── Filtri categoria ──────────────────────────────────────── */
.cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.4rem; margin-bottom: 2rem; }
.cat {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0.42rem 0.95rem;
  border-radius: var(--radius-pill);
  font-size: 0.88rem; font-weight: 500;
  color: var(--ink-soft); background: transparent;
  border: 1px solid transparent;
  transition: background-color 0.15s ease, color 0.15s ease;
}
.cat:hover { text-decoration: none; color: var(--ink); background: var(--paper-2); }
.cat[aria-current="true"] { background: var(--ink); color: var(--paper); }
.cat__count { opacity: 0.55; font-size: 0.8rem; }

/* ── Schede prodotto ───────────────────────────────────────── */
.pkgs {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(18rem, 1fr));
  align-items: stretch;
}

.pkg {
  display: flex; flex-direction: column;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  padding: 1.6rem 1.5rem 1.5rem;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}
.pkg:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.pkg--featured { box-shadow: 0 0 0 1.5px var(--brass), var(--shadow); }
.pkg--featured:hover { box-shadow: 0 0 0 1.5px var(--brass), var(--shadow-lg); }

.pkg__badge {
  align-self: flex-start;
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--brass); background: var(--brass-wash);
  border-radius: var(--radius-pill); padding: 0.22rem 0.65rem;
  margin-bottom: 0.9rem;
}

.pkg__art { margin: -1.6rem -1.5rem 1.25rem; }
.pkg__art img { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; border-radius: var(--radius-lg) var(--radius-lg) 0 0; }

.pkg__name { font-size: 1.3rem; margin: 0; }
.pkg__tagline { color: var(--ink-soft); font-size: 0.94rem; margin: 0.3rem 0 0; line-height: 1.4; }

.pkg__price {
  display: flex; align-items: baseline; gap: 0.45rem;
  margin: 1.1rem 0 1.25rem;
}
.pkg__amount { font-size: 2rem; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.pkg__once { font-size: 0.82rem; color: var(--ink-faint); }

/* Elenco vantaggi: spaziatura al posto dei separatori */
.perks { list-style: none; margin: 0 0 1.5rem; padding: 0; display: grid; gap: 0.6rem; }
.perks li {
  display: grid; grid-template-columns: 1.05rem 1fr; gap: 0.6rem;
  align-items: start;
  font-size: 0.92rem; color: var(--ink-soft); line-height: 1.4;
}
.perks svg { width: 1.05rem; height: 1.05rem; color: var(--ok); margin-top: 0.15rem; }

.pkg__cta { margin-top: auto; }

.pkg__note { font-size: 0.78rem; color: var(--ink-faint); text-align: center; margin-top: 0.6rem; }

/* ── Bottoni ───────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font: inherit; font-size: 0.95rem; font-weight: 500;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  cursor: pointer; text-decoration: none; line-height: 1.25;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, opacity 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.985); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.45; cursor: not-allowed; }

.btn--primary, .btn--brass { background: var(--brass); color: #fff; border-color: var(--brass); }
.btn--primary:hover, .btn--brass:hover { background: var(--brass-deep); border-color: var(--brass-deep); color: #fff; }

.btn--dark { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn--dark:hover { opacity: 0.88; color: var(--paper); }

.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--paper-2); }

.btn--danger { background: transparent; color: var(--bad); border-color: currentColor; }
.btn--danger:hover { background: var(--bad); color: #fff; }

.btn--sm { padding: 0.4rem 0.9rem; font-size: 0.85rem; }
.btn--lg { padding: 0.9rem 1.6rem; font-size: 1rem; }
.btn--block { width: 100%; }

/* ── Riquadro «pagamenti sicuri» ───────────────────────────── */
.paysafe {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--card), var(--paper-2));
  padding: 1.5rem 1.25rem;
  text-align: center;
}
.paysafe--inline { background: var(--paper-2); padding: 1.1rem; margin-bottom: 1.5rem; }

.paysafe__label {
  display: inline-flex; align-items: center; gap: 0.45rem;
  font-size: 0.74rem; font-weight: 600;
  letter-spacing: 0.09em; text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 1rem;
}
.paysafe__label svg { width: 1.05rem; height: 1.05rem; color: var(--ok); }

/* Ogni marchio nella sua mattonella bianca: si leggono meglio e reggono
   anche il tema scuro, dove i loghi originali sparirebbero sul fondo. */
.paysafe__marks { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.paysafe__mark {
  width: 3.5rem; height: 2.25rem;
  display: grid; place-items: center;
  background: #fff;
  border: 1px solid rgba(23, 20, 15, 0.1);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(23, 20, 15, 0.06);
}
.paysafe__mark img { width: 2.3rem; height: 1.5rem; object-fit: contain; }

/* Su telefono le mattonelle si stringono quanto basta a stare su una riga sola. */
@media (max-width: 24rem) {
  .paysafe__marks { gap: 0.35rem; }
  .paysafe__mark { width: 3rem; height: 2rem; }
  .paysafe__mark img { width: 2rem; height: 1.3rem; }
}
.paysafe__note { font-size: 0.84rem; color: var(--ink-faint); margin: 1rem 0 0; }
.paysafe__note strong { color: var(--ink-soft); font-weight: 600; }

/* ── Come funziona ─────────────────────────────────────────── */
.how { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); margin-top: 3rem; }
.how__item { text-align: left; }
.how__num {
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  background: var(--paper-2); color: var(--ink-soft);
  display: grid; place-items: center;
  font-size: 0.8rem; font-weight: 600;
  margin-bottom: 0.6rem;
}
.how__item strong { display: block; font-size: 0.95rem; font-weight: 600; margin-bottom: 0.15rem; }
.how__item span { font-size: 0.88rem; color: var(--ink-faint); line-height: 1.45; }

/* ── Moduli ────────────────────────────────────────────────── */
.field { margin-bottom: 1.1rem; }
.field > label, .label { display: block; font-size: 0.86rem; font-weight: 500; color: var(--ink); margin-bottom: 0.4rem; }

.input, .select, .textarea {
  width: 100%; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--card);
  border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none; border-color: var(--brass);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 14%, transparent);
}
.input::placeholder, .textarea::placeholder { color: var(--ink-faint); }
.input[aria-invalid="true"] { border-color: var(--bad); }

.textarea { min-height: 7rem; resize: vertical; font-family: var(--font-mono); font-size: 0.88rem; line-height: 1.55; }

.select {
  appearance: none;
  background-image: linear-gradient(45deg, transparent 50%, currentColor 50%), linear-gradient(135deg, currentColor 50%, transparent 50%);
  background-position: right 1.05rem center, right 0.75rem center;
  background-size: 5px 5px, 5px 5px; background-repeat: no-repeat;
  padding-right: 2.1rem;
}

/* ── Anteprima del giocatore ───────────────────────────────── */
.who {
  display: flex; align-items: center; gap: 0.85rem;
  margin-top: 0.6rem; padding: 0.7rem 0.85rem;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--paper-2);
  transition: border-color 0.2s ease, background-color 0.2s ease;
}
.who--found { border-color: color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 6%, var(--card)); }
.who--missing { border-color: color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 6%, var(--card)); }

.who__face {
  position: relative;
  width: 3rem; height: 3rem; flex: none;
  display: grid; place-items: center;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.who__face img {
  width: 2.4rem; height: 2.4rem;
  image-rendering: pixelated;
  transition: opacity 0.25s ease, transform 0.25s ease;
}
.who--loading .who__face img { opacity: 0.25; }
.who--found .who__face img { animation: who-pop 0.28s ease-out; }

@keyframes who-pop {
  from { transform: scale(0.82); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Cerchietto di caricamento, visibile solo mentre si interroga il profilo. */
.who__spinner {
  position: absolute;
  width: 1.1rem; height: 1.1rem;
  border: 2px solid var(--line-strong);
  border-top-color: var(--brass);
  border-radius: 50%;
  opacity: 0;
}
.who--loading .who__spinner { opacity: 1; animation: who-spin 0.7s linear infinite; }
@keyframes who-spin { to { transform: rotate(360deg); } }

.who__text { min-width: 0; }
.who__text strong {
  display: block; font-size: 0.95rem; font-weight: 600;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.who--found .who__text strong { font-family: var(--font-mono); letter-spacing: 0; }
.who__text span { display: block; font-size: 0.82rem; color: var(--ink-faint); line-height: 1.35; }
.who--found .who__text span { color: var(--ok); }
.who--missing .who__text span { color: var(--warn); }

@media (prefers-reduced-motion: reduce) {
  .who--found .who__face img { animation: none; }
  .who--loading .who__spinner { animation: none; }
}

.hint { font-size: 0.83rem; color: var(--ink-faint); margin-top: 0.35rem; }
.coupon-ok { color: var(--ok); font-weight: 500; }
.error-text { font-size: 0.85rem; color: var(--bad); margin-top: 0.35rem; }

.check { display: grid; grid-template-columns: 1.15rem 1fr; gap: 0.65rem; align-items: start; font-size: 0.9rem; color: var(--ink-soft); cursor: pointer; }
.check input { margin-top: 0.2rem; accent-color: var(--brass); width: 1.05rem; height: 1.05rem; }

.field-row { display: grid; gap: 0.9rem; grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); }

.input-group { display: flex; gap: 0.5rem; align-items: stretch; }
.input-group .input { flex: 1; min-width: 0; }
.input-group .btn { flex: none; }

/* ── Pannelli e avvisi ─────────────────────────────────────── */
.panel {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
  padding: 1.5rem;
}
.panel h2 { font-size: 1.15rem; margin-bottom: 0.6rem; }

.buy {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 1.6rem 1.5rem;
  scroll-margin-top: 4.5rem;
}
.buy h2 { font-size: 1.15rem; margin-bottom: 1.25rem; }

.notice {
  display: flex; gap: 0.65rem; align-items: flex-start;
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 0.85rem 1rem; background: var(--card); font-size: 0.92rem;
}
.notice--success { border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.notice--error   { border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.notice--warning { border-color: color-mix(in srgb, var(--warn) 40%, transparent); }
.notice--info    { border-color: var(--line-strong); }
.notice__icon { color: var(--brass); font-size: 0.85rem; line-height: 1.6; }

.banner { background: var(--ink); color: var(--paper); font-size: 0.8rem; text-align: center; padding: 0.5rem 1rem; }

.badge {
  display: inline-flex; align-items: center; gap: 0.35rem;
  font-size: 0.75rem; font-weight: 500;
  padding: 0.22rem 0.6rem; border-radius: var(--radius-pill);
  color: var(--ink-soft); background: var(--paper-2); border: 1px solid var(--line);
  white-space: nowrap;
}
.badge--brass { color: var(--brass); background: var(--brass-wash); border-color: color-mix(in srgb, var(--brass) 25%, transparent); }
.badge--ok { color: var(--ok); } .badge--warn { color: var(--warn); } .badge--bad { color: var(--bad); }

.dot { width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; flex: none; }
.dot--ok { color: var(--ok); } .dot--warn { color: var(--warn); } .dot--bad { color: var(--bad); } .dot--idle { color: var(--ink-faint); }

/* ── Riepiloghi ────────────────────────────────────────────── */
.summary { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); overflow: hidden; }
.summary__row { display: flex; justify-content: space-between; gap: 1rem; padding: 0.75rem 1.1rem; border-bottom: 1px solid var(--line); font-size: 0.93rem; }
.summary__row:last-child { border-bottom: 0; }
.summary__row dt { color: var(--ink-faint); margin: 0; }
.summary__row dd { margin: 0; font-weight: 500; text-align: right; }
.summary__row--total { background: var(--paper-2); }
.summary__row--total dt { color: var(--ink); font-weight: 500; }
.summary__row--total dd { font-size: 1.2rem; font-weight: 600; letter-spacing: -0.02em; }

/* ── Stato ordine ──────────────────────────────────────────── */
.status { text-align: center; padding-block: 2.5rem 1.5rem; }
.status__icon { width: 3.25rem; height: 3.25rem; border-radius: 50%; display: grid; place-items: center; margin: 0 auto 1.1rem; }
.status__icon svg { width: 1.6rem; height: 1.6rem; }
.status__icon--ok { background: color-mix(in srgb, var(--ok) 12%, transparent); color: var(--ok); }
.status__icon--wait { background: color-mix(in srgb, var(--warn) 12%, transparent); color: var(--warn); }
.status__icon--bad { background: color-mix(in srgb, var(--bad) 12%, transparent); color: var(--bad); }

.player { display: inline-flex; align-items: center; gap: 0.5rem; background: var(--paper-2); border-radius: var(--radius-pill); padding: 0.3rem 0.8rem 0.3rem 0.35rem; }
.player img { width: 1.5rem; height: 1.5rem; image-rendering: pixelated; border-radius: 50%; }
.player span { font-family: var(--font-mono); font-size: 0.86rem; }

/* ── Tabelle ───────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--card); }
table.data { width: 100%; border-collapse: collapse; font-size: 0.9rem; min-width: 36rem; }
table.data th, table.data td { padding: 0.7rem 0.9rem; text-align: left; border-bottom: 1px solid var(--line); }
table.data th { font-size: 0.74rem; letter-spacing: 0.05em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; background: var(--paper-2); white-space: nowrap; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr:hover { background: var(--paper-2); }
table.data td.num { text-align: right; font-variant-numeric: tabular-nums; }

.empty { padding: 3rem 1.25rem; text-align: center; color: var(--ink-faint); }
.empty__mark { display: block; font-size: 1.3rem; margin-bottom: 0.6rem; opacity: 0.4; }

/* ── Testi ─────────────────────────────────────────────────── */
.prose { color: var(--ink-soft); }
.prose h2 { color: var(--ink); font-size: 1.2rem; margin-top: 2rem; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-left: 1.15rem; }

.crumbs { display: flex; gap: 0.4rem; align-items: center; flex-wrap: wrap; font-size: 0.85rem; color: var(--ink-faint); padding-block: 1.25rem 1rem; }
.crumbs a { color: var(--ink-soft); }
.crumbs a:hover { color: var(--ink); }

.code-block { font-family: var(--font-mono); font-size: 0.8rem; line-height: 1.55; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 0.9rem; overflow-x: auto; white-space: pre; text-align: left; color: var(--ink-soft); }

.rule { height: 1px; background: var(--line); border: 0; margin-block: 2rem; }
.rule__mark { display: none; }

.centered-card { max-width: var(--reading); margin-inline: auto; }
.measure-narrow { max-width: 32ch; }

.steps { list-style: none; margin: 0; padding: 0; counter-reset: step; }
.steps li { display: grid; grid-template-columns: 1.6rem 1fr; gap: 0.8rem; padding: 0.6rem 0; align-items: start; }
.steps li::before { counter-increment: step; content: counter(step); width: 1.6rem; height: 1.6rem; display: grid; place-items: center; border-radius: 50%; background: var(--paper-2); color: var(--ink-soft); font-size: 0.78rem; font-weight: 600; }
.steps strong { display: block; color: var(--ink); font-weight: 500; }
.steps span { font-size: 0.88rem; color: var(--ink-faint); }

/* ── Piè di pagina ─────────────────────────────────────────── */
.footer { border-top: 1px solid var(--line); padding-block: 2rem; font-size: 0.85rem; color: var(--ink-faint); }
.footer__inner { display: flex; flex-wrap: wrap; gap: 0.9rem 2rem; justify-content: space-between; align-items: center; }
.footer a { color: var(--ink-soft); }
.footer a:hover { color: var(--ink); }
.footer nav { display: flex; gap: 1.25rem; flex-wrap: wrap; }
.footer__legal { max-width: 34ch; line-height: 1.45; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

@media print {
  .topbar, .footer, .btn { display: none !important; }
  body { background: #fff; color: #000; }
}
