/* =========================================================
   NØIR†BØRN — TAROT READER AI — FULL TAROT REPORT (DEMO FASE 1)
   ========================================================= */

:root {
  --obsidian:   #0a0708;
  --anthracite: #1b1719;
  --anth-soft:  rgba(27, 23, 25, 0.86);
  --bordeaux:   #5a0e1b;
  --blood:      #a3172b;
  --silver:     #b8b2aa;
  --silver-dim: rgba(184, 178, 170, 0.32);
  --ivory:      #efe6d8;
  --ivory-soft: #cfc5b6;

  --f-display: "Cormorant Garamond", "Cormorant", Georgia, "Times New Roman", serif;
  --f-body:    "EB Garamond", Garamond, Georgia, "Times New Roman", serif;
  --f-label:   "Manrope", "Segoe UI", system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--obsidian);
  color: var(--ivory);
  font-family: var(--f-body);
  font-size: 1.1875rem;          /* 19px: lettura comoda */
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

/* ---------- Velo di fondo: niente nero vuoto ---------- */
.bg-veil {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 15% 40%, rgba(163, 23, 43, 0.16), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 75%, rgba(90, 14, 27, 0.30), transparent 70%),
    linear-gradient(rgba(10, 7, 8, 0.64), rgba(10, 7, 8, 0.84)),
    url("assets/master.png") center / cover no-repeat;
  filter: blur(28px) saturate(1.1);
  transform: scale(1.12);         /* evita bordi chiari dovuti alla sfocatura */
}

/* ---------- Barra DEMO ---------- */
.demo-bar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 10px 16px;
  padding: 10px 16px;
  background: rgba(10, 7, 8, 0.92);
  border-bottom: 1px solid var(--silver-dim);
  font-family: var(--f-label);
  font-size: 0.8125rem;
  color: var(--ivory-soft);
  position: relative; z-index: 5;
}
.demo-tag {
  font-weight: 600; letter-spacing: 0.18em;
  color: var(--ivory); background: var(--blood);
  padding: 2px 10px; border-radius: 2px;
}
.demo-switch { display: inline-flex; border: 1px solid var(--silver-dim); border-radius: 2px; overflow: hidden; }
.switch-btn {
  font: inherit; font-weight: 500; color: var(--ivory-soft);
  background: transparent; border: 0; padding: 5px 12px; cursor: pointer;
}
.switch-btn + .switch-btn { border-left: 1px solid var(--silver-dim); }
.switch-btn.is-active { background: var(--bordeaux); color: var(--ivory); }
.spread-btn {
  font: inherit; font-weight: 500; color: var(--ivory-soft);
  background: transparent; border: 0; padding: 5px 12px; cursor: pointer;
}
.spread-btn + .spread-btn { border-left: 1px solid var(--silver-dim); }
.spread-btn.is-active { background: var(--bordeaux); color: var(--ivory); }
.spread-btn:focus-visible { outline: 2px solid var(--silver); outline-offset: -2px; }
.switch-btn:focus-visible { outline: 2px solid var(--silver); outline-offset: -2px; }

/* ---------- HERO ---------- */
.hero { position: relative; }

.hero-figure {
  position: relative;
  margin: 0 auto;
  width: 100%;
  max-width: 1602px;               /* risoluzione nativa: nessun ingrandimento */
  aspect-ratio: 1602 / 901;        /* proporzioni originali: nessun ritaglio */
}
.hero-figure img {
  display: block; width: 100%; height: 100%;
  object-fit: contain;
  /* Dissolvenza verso il report, solo nella fascia bassa (pavimento, meno dettagliata) */
  -webkit-mask-image: linear-gradient(to bottom, #000 74%, rgba(0,0,0,.45) 90%, transparent 100%);
          mask-image: linear-gradient(to bottom, #000 74%, rgba(0,0,0,.45) 90%, transparent 100%);
}
/* Su schermi più larghi dell'immagine: anche i bordi laterali sfumano */
@media (min-width: 1603px) {
  .hero-figure img {
    -webkit-mask-image:
      linear-gradient(to bottom, #000 74%, rgba(0,0,0,.45) 90%, transparent 100%),
      linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
    -webkit-mask-composite: source-in;
            mask-image:
      linear-gradient(to bottom, #000 74%, rgba(0,0,0,.45) 90%, transparent 100%),
      linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
            mask-composite: intersect;
  }
}

.hero-text {
  position: relative; z-index: 2;
  text-align: center;
  max-width: 760px;
  margin: clamp(-72px, -4.2vw, -12px) auto 0;
  padding: 0 20px;
}
.wordmark {
  margin: 0;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2.3rem, 6vw, 4.2rem);
  letter-spacing: 0.16em; line-height: 1.1;
  padding-left: 0.16em;            /* compensa la spaziatura finale */
  color: var(--ivory);
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.9);
}
.product {
  margin: 6px 0 0;
  font-family: var(--f-label); font-weight: 600;
  font-size: clamp(0.8125rem, 1.6vw, 0.95rem);
  letter-spacing: 0.42em; padding-left: 0.42em;
  color: var(--silver);
}
.hero-text h1 {
  margin: 0;
  font-family: var(--f-display); font-weight: 500;
  font-size: clamp(1.45rem, 3.4vw, 2.3rem);
  letter-spacing: 0.12em; line-height: 1.25;
  color: var(--ivory);
}
.tagline {
  margin: 6px 0 0;
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.2rem, 2.4vw, 1.5rem);
  color: var(--ivory-soft);
}

/* Filetto argento con gemma rossa (richiama la gemma dell'emblema) */
.rule {
  display: flex; align-items: center; justify-content: center;
  gap: 14px; margin: 22px auto; padding: 4px 0;  /* spazio per la gemma ruotata */
  width: min(320px, 70%);
}
.rule::before, .rule::after {
  content: ""; flex: 1; height: 1px;
  background: linear-gradient(to right, transparent, var(--silver));
}
.rule::after { background: linear-gradient(to left, transparent, var(--silver)); }
.rule i {
  width: 8px; height: 8px; transform: rotate(45deg);
  background: var(--blood);
  box-shadow: 0 0 0 1px var(--silver-dim), 0 0 10px rgba(163, 23, 43, 0.6);
}

/* ---------- CONTENITORE REPORT ---------- */
.report {
  position: relative;
  width: min(1040px, calc(100% - 32px));
  margin: clamp(36px, 6vw, 64px) auto clamp(48px, 8vw, 96px);
  padding: clamp(28px, 6vw, 68px) clamp(20px, 6vw, 72px);
  background: var(--anth-soft);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  border: 1px solid var(--silver-dim);
  border-radius: 2px;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(239, 230, 216, 0.05);
}
/* Doppio filetto interno, molto sottile */
.report::before {
  content: ""; position: absolute; inset: 10px; pointer-events: none;
  border: 1px solid rgba(184, 178, 170, 0.12);
}

.demo-watermark {
  margin: 0 0 24px; text-align: center;
  font-family: var(--f-label); font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--blood);
}

/* Dati cliente */
.meta {
  display: flex; flex-wrap: wrap;
  margin: 0;
  border-top: 1px solid var(--silver-dim);
  border-bottom: 1px solid var(--silver-dim);
}
.meta > div { padding: 18px 14px; flex: 1 1 110px; min-width: 0; }
.meta > div.is-wide { flex: 1.5 1 170px; }
.meta dd.nowrap { white-space: nowrap; }
.meta > div + div { border-left: 1px solid rgba(184, 178, 170, 0.14); }
.meta dt {
  font-family: var(--f-label); font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--silver);
}
.meta dd {
  margin: 4px 0 0;
  font-family: var(--f-display); font-weight: 600;
  font-size: 1.2rem; line-height: 1.3; color: var(--ivory);
}
.status-dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%;
  background: var(--blood); margin-right: 8px; vertical-align: middle;
  box-shadow: 0 0 8px rgba(163, 23, 43, 0.8);
}

/* Pulsanti */
.actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 14px;
  margin: 32px 0 8px;
}
.actions-end { margin-top: 56px; }
.btn {
  font-family: var(--f-label); font-weight: 600;
  font-size: 0.875rem; letter-spacing: 0.2em;
  color: var(--ivory);
  background: transparent;
  border: 1px solid var(--silver);
  padding: 14px 26px; min-width: 200px;
  cursor: pointer;
  transition: background-color .25s ease, border-color .25s ease, color .25s ease;
}
.btn:hover { background: rgba(184, 178, 170, 0.1); }
.btn-primary { background: var(--bordeaux); border-color: var(--blood); }
.btn-primary:hover { background: var(--blood); }
.btn:focus-visible { outline: 2px solid var(--ivory); outline-offset: 3px; }

/* Blocchi di contenuto */
.block { margin-top: clamp(48px, 8vw, 80px); }
.block-title {
  margin: 0; text-align: center;
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(1.55rem, 3.6vw, 2.15rem);
  letter-spacing: 0.12em; line-height: 1.25;
  color: var(--ivory);
}
.block-title::after {
  content: ""; display: block; width: 64px; height: 1px; margin: 16px auto 0;
  background: var(--blood);
}
.block-sub {
  margin: 14px 0 0; text-align: center;
  font-style: italic; color: var(--ivory-soft);
}

/* ---------- CARTE ---------- */
.spread {
  list-style: none; margin: 36px 0 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: clamp(20px, 4vw, 40px);
}
.spread { --gap: clamp(20px, 4vw, 40px); gap: var(--gap); }
.spread > li {
  width: min(220px, calc((100% - (var(--cols, 3) - 1) * var(--gap)) / var(--cols, 3)));
  text-align: center;
}
.spread[data-count="5"], .spread[data-count="7"], .spread[data-count="10"] { --gap: clamp(16px, 2.6vw, 28px); row-gap: 40px; }
/* Etichette di posizione su 1 o 2 righe: nomi delle carte allineati sulla stessa riga */
.spread[data-count="5"] .card-pos, .spread[data-count="7"] .card-pos, .spread[data-count="10"] .card-pos {
  min-height: 3.4em; display: flex; align-items: flex-end; justify-content: center;
}

.card-btn {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; color: inherit;
}
.card-btn:focus-visible .card { outline: 2px solid var(--ivory); outline-offset: 4px; }

.card {
  position: relative;
  aspect-ratio: 7 / 12;
  border-radius: 6px;
  border: 1px solid rgba(184, 178, 170, 0.55);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.6), 0 0 0 4px rgba(10, 7, 8, 0.6);
  overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card-btn:hover .card {
  transform: translateY(-4px);
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.7), 0 0 0 4px rgba(90, 14, 27, 0.7);
}
.card img { display: block; width: 100%; height: 100%; object-fit: cover; }
.card.is-reversed img { transform: rotate(180deg); }

/* Segnaposto chiaramente identificato (nessuna immagine di tarocchi generica) */
.card-ph {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 10px; padding: 14px;
  background:
    radial-gradient(ellipse at 50% 40%, rgba(163, 23, 43, 0.35), transparent 65%),
    linear-gradient(160deg, #2a0a12 0%, #140b0e 55%, #0d0809 100%);
}
.card-ph::before {
  content: ""; position: absolute; inset: 8px;
  border: 1px solid rgba(184, 178, 170, 0.35); border-radius: 3px;
}
.ph-arrow {
  font-size: 1.6rem; line-height: 1; color: var(--silver);
  transition: transform .3s ease;
}
.card.is-reversed .ph-arrow { transform: rotate(180deg); }
.ph-label {
  font-family: var(--f-label); font-weight: 600;
  font-size: 0.6875rem; letter-spacing: 0.18em;
  color: var(--ivory-soft); text-transform: uppercase;
}
.ph-code {
  font-family: var(--f-label); font-weight: 500;
  font-size: 0.75rem; letter-spacing: 0.04em;
  color: var(--ivory); text-align: center; max-width: 100%;
  background: rgba(0, 0, 0, 0.45); padding: 3px 6px; border-radius: 2px;
}

.card-pos {
  margin: 16px 0 0;
  font-family: var(--f-label); font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--silver);
}
.card-name {
  margin: 4px 0 0;
  font-family: var(--f-display); font-weight: 600;
  font-size: 1.35rem; line-height: 1.2; color: var(--ivory);
}
.card-ori {
  display: inline-block; margin-top: 8px;
  font-family: var(--f-label); font-weight: 600;
  font-size: 0.6875rem; letter-spacing: 0.18em; text-transform: uppercase;
  padding: 3px 10px; border: 1px solid var(--silver-dim); color: var(--ivory-soft);
}
.card-ori.is-reversed { border-color: var(--blood); color: #f0b6bf; }

/* ---------- INTERPRETAZIONE ---------- */
.prose p { margin: 0 0 1.1em; }
.prose p:last-child { margin-bottom: 0; }
.raw-text { white-space: pre-wrap; overflow-wrap: anywhere; } /* testo del Worker mostrato integralmente */

.meaning-item {
  margin-top: 36px; padding-top: 28px;
  border-top: 1px solid rgba(184, 178, 170, 0.14);
}
.meaning-item:first-of-type { border-top: 0; padding-top: 0; }
.meaning-head { margin: 0 0 12px; }
.meaning-head .card-pos { margin: 0; }
.meaning-head h3 {
  margin: 2px 0 0;
  font-family: var(--f-display); font-weight: 600;
  font-size: 1.55rem; line-height: 1.25; color: var(--ivory);
}
.meaning-head h3 small {
  font-family: var(--f-label); font-size: 0.6875rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #f0b6bf; margin-left: 10px; vertical-align: middle;
}

.revelation {
  margin-top: 32px;
  padding: clamp(22px, 4vw, 36px);
  background: linear-gradient(135deg, rgba(90, 14, 27, 0.42), rgba(27, 23, 25, 0.3));
  border-left: 2px solid var(--blood);
  font-size: 1.25rem;
}

.qa { margin-top: 32px; }
.qa + .qa { padding-top: 28px; border-top: 1px solid rgba(184, 178, 170, 0.14); }
.qa-q {
  margin: 0 0 10px;
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: 1.4rem; line-height: 1.35; color: var(--ivory);
}
.qa-q::before {
  content: "Q"; font-family: var(--f-label); font-style: normal; font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.1em; color: var(--blood);
  margin-right: 12px; vertical-align: middle;
}


/* ---------- YOUR QUESTION ---------- */
.question {
  position: relative;
  margin: 30px auto 0;
  max-width: 760px;
  padding: 28px clamp(8px, 4vw, 48px);
  text-align: center;
  font-family: var(--f-display); font-style: italic; font-weight: 500;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
  line-height: 1.4;
  color: var(--ivory);
  border-top: 1px solid var(--silver-dim);
  border-bottom: 1px solid var(--silver-dim);
  overflow-wrap: anywhere;
}
.question::before, .question::after {
  font-style: normal; color: var(--blood);
  font-size: 1.4em; line-height: 0; vertical-align: -0.35em;
}
.question::before { content: "\201C"; margin-right: 0.12em; }
.question::after  { content: "\201D"; margin-left: 0.12em; }

/* ---------- THE FINAL VERDICT ---------- */
.verdict {
  margin-top: 32px;
  padding: clamp(24px, 4.5vw, 44px);
  border: 1px solid var(--silver-dim);
  background: linear-gradient(180deg, rgba(90, 14, 27, 0.30), rgba(27, 23, 25, 0.25));
  box-shadow: inset 0 1px 0 rgba(239, 230, 216, 0.05);
}
.verdict-answer {
  margin: 0 0 26px; text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.verdict-kicker {
  font-family: var(--f-label); font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--silver);
}
.verdict-word {
  font-family: var(--f-display); font-weight: 600;
  font-size: clamp(2.6rem, 7vw, 3.6rem);
  letter-spacing: 0.2em; padding-left: 0.2em; line-height: 1.1;
  color: var(--ivory);
}
.verdict-word::after {
  content: ""; display: block; width: 56px; height: 2px; margin: 12px auto 0;
  background: var(--blood);
}
.verdict-no .verdict-word { color: #f0b6bf; }
.verdict-unclear .verdict-word {
  font-size: clamp(1.5rem, 4vw, 2.1rem); letter-spacing: 0.14em; padding-left: 0.14em;
  color: var(--ivory-soft);
}
.verdict-unclear .verdict-word::after { background: var(--silver); }
.verdict-open {
  margin: 0 0 22px; text-align: center;
  font-family: var(--f-label); font-weight: 600;
  font-size: 0.8125rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--silver);
}
.verdict-basis { margin: 0 0 24px; text-align: center; }
.verdict-basis-label {
  margin: 0 0 10px;
  font-family: var(--f-label); font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--silver);
}
.verdict-cards {
  list-style: none; margin: 0; padding: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 8px;
}
.verdict-cards li {
  font-family: var(--f-display); font-weight: 600; font-size: 1.1rem; line-height: 1.3;
  padding: 4px 12px;
  border: 1px solid var(--silver-dim);
  color: var(--ivory);
  background: rgba(10, 7, 8, 0.35);
}
.verdict-cards li.is-reversed { border-color: rgba(163, 23, 43, 0.8); }
.verdict-text { border-top: 1px solid rgba(184, 178, 170, 0.14); padding-top: 22px; }

/* Leggibilità desktop: testo un poco più grande */
@media (min-width: 900px) {
  .prose { font-size: 1.25rem; }
}

/* ---------- FOOTER ---------- */
.report-footer { margin-top: 56px; text-align: center; }
.footer-mark {
  margin: 0; font-family: var(--f-display); font-weight: 600;
  font-size: 1.5rem; letter-spacing: 0.16em; padding-left: 0.16em;
}
.footer-motto {
  margin: 2px 0 0; font-family: var(--f-label); font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.38em; padding-left: 0.38em; color: var(--silver);
}
.footer-note {
  margin: 20px auto 0; max-width: 520px;
  font-size: 1rem; font-style: italic; color: var(--ivory-soft);
}

/* ---------- LIGHTBOX ---------- */
.lightbox {
  border: 1px solid var(--silver-dim);
  background: rgba(16, 12, 13, 0.97);
  color: var(--ivory);
  padding: 52px 28px 28px;
  width: min(440px, calc(100% - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  box-shadow: 0 40px 120px rgba(0, 0, 0, 0.8);
}
.lightbox::backdrop { background: rgba(5, 3, 4, 0.82); backdrop-filter: blur(4px); }
.lb-card .card { width: min(100%, 300px); margin: 0 auto; cursor: default; }
.lb-card .ph-label { font-size: 0.8125rem; }
.lb-card .ph-code { font-size: 0.875rem; }
.lb-info { text-align: center; margin-top: 22px; }
.lb-pos {
  margin: 0; font-family: var(--f-label); font-weight: 600;
  font-size: 0.75rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--silver);
}
.lb-info h3 {
  margin: 4px 0 0; font-family: var(--f-display); font-weight: 600; font-size: 1.8rem; line-height: 1.2;
}
.lb-ori { margin: 6px 0 0; font-style: italic; color: var(--ivory-soft); }
.lb-close {
  position: absolute; top: 8px; right: 10px;
  width: 44px; height: 44px; border: 0; background: none;
  color: var(--ivory); font-size: 2rem; line-height: 1; cursor: pointer;
}
.lb-close:focus-visible { outline: 2px solid var(--silver); }

/* ---------- TOAST ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 50;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px);
  background: var(--anthracite); color: var(--ivory);
  border: 1px solid var(--silver-dim); border-left: 2px solid var(--blood);
  padding: 12px 18px; font-family: var(--f-label); font-size: 0.875rem;
  box-shadow: 0 12px 40px rgba(0,0,0,0.6);
  transition: opacity .3s ease, transform .3s ease;
}
.toast.is-visible { opacity: 1; transform: translate(-50%, 0); }

/* ---------- SMARTPHONE ---------- */
@media (max-width: 640px) {
  body { font-size: 1.125rem; }
  .demo-text { flex-basis: 100%; text-align: center; }
  .meta { display: grid; grid-template-columns: 1fr 1fr; }
  .meta > div.is-wide { grid-column: 1 / -1; }
  .meta > div { padding: 14px 10px; border-left: 0 !important; }
  .spread > li { width: calc(50% - 12px); }
  .spread .card-pos { min-height: 3.4em; display: flex; align-items: flex-end; justify-content: center; }
  .btn { width: 100%; min-width: 0; }
  .report::before { inset: 6px; }
}
@media (max-width: 380px) {
  .spread > li { width: 78%; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* =========================================================
   STAMPA / SALVA COME PDF
   ========================================================= */
@page { margin: 16mm 14mm; }

@media print {
  html, body { background: #fff !important; color: #111 !important; }
  body { font-size: 11.5pt; line-height: 1.55; }

  .no-print, .bg-veil, .demo-bar, .actions, .lightbox, .toast { display: none !important; }

  /* Immagine MASTER come intestazione contenuta della prima pagina */
  .hero-figure { max-width: 100%; aspect-ratio: auto; }
  .hero-figure img { height: auto; max-height: 75mm; object-fit: contain; -webkit-mask-image: none; mask-image: none; }

  .hero-text { margin: 6mm auto 0; }
  .wordmark, .hero-text h1, .footer-mark { color: #111 !important; text-shadow: none; }
  .wordmark { font-size: 26pt; }
  .hero-text h1 { font-size: 15pt; }
  .product, .footer-motto { color: #444 !important; }
  .tagline { color: #333 !important; }
  .rule { margin: 4mm auto; }
  .rule::before, .rule::after { background: #888 !important; }
  .rule i { background: #7a1020 !important; box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .report {
    width: 100%; margin: 6mm 0 0; padding: 0;
    background: none !important; border: 0; box-shadow: none;
    -webkit-backdrop-filter: none; backdrop-filter: none;
  }
  .report::before { display: none; }

  .demo-watermark { color: #7a1020 !important; }

  .meta { border-color: #999; display: flex !important; }
  .meta > div.is-wide { grid-column: auto; }
  .meta > div { padding: 3mm 2mm; border-left-color: #ccc !important; }
  .meta dt { color: #555 !important; font-size: 7.5pt; }
  .meta dd { color: #111 !important; font-size: 12pt; }
  .status-dot { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }

  .block { margin-top: 9mm; }
  .block-title, .meaning-head h3, .card-name, .qa-q, .lb-info h3 { color: #111 !important; }
  .block-title { font-size: 16pt; break-after: avoid; page-break-after: avoid; }
  .block-title::after { background: #7a1020; }
  .block-sub, .card-pos, .footer-note { color: #444 !important; }

  /* Carte: impaginate in riga, mai spezzate tra due pagine */
  .block-spread { break-inside: avoid; page-break-inside: avoid; }
  .print-hide { display: none !important; }
  .spread { gap: 8mm; margin-top: 5mm; --gap: 8mm; }
  .spread > li { width: 33mm; break-inside: avoid; page-break-inside: avoid; }
  .spread[data-count="5"], .spread[data-count="7"], .spread[data-count="10"] { gap: 6mm 5mm; }
  .spread[data-count="5"] > li, .spread[data-count="7"] > li, .spread[data-count="10"] > li { width: 29mm; }
  .spread[data-count="5"] .card-name, .spread[data-count="7"] .card-name, .spread[data-count="10"] .card-name { font-size: 10.5pt; }
  .spread .card-pos { font-size: 6.5pt; line-height: 1.4; }
  .spread[data-count="5"] .card-pos, .spread[data-count="7"] .card-pos, .spread[data-count="10"] .card-pos { min-height: 2.8em; }
  .spread[data-count="10"] .ph-label { font-size: 5.5pt; letter-spacing: 0.1em; }

  .block-question { break-inside: avoid; page-break-inside: avoid; }
  .question { color: #111 !important; border-color: #999 !important; font-size: 15pt; padding: 4mm 6mm; }
  .question::before, .question::after { color: #7a1020 !important; }

  .verdict {
    background: none !important; box-shadow: none;
    border: 1pt solid #555; padding: 5mm 6mm;
    break-inside: avoid; page-break-inside: avoid;
  }
  .block-verdict { break-inside: avoid; page-break-inside: avoid; }  /* titolo + verdetto sempre insieme */
  .block-verdict .block-title { break-after: avoid; page-break-after: avoid; }
  .verdict-kicker, .verdict-open, .verdict-basis-label { color: #444 !important; }
  .verdict-word { color: #111 !important; font-size: 26pt; }
  .verdict-unclear .verdict-word { font-size: 17pt; color: #111 !important; }
  .verdict-word::after { background: #7a1020 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .verdict-cards li { color: #111 !important; background: none !important; border-color: #999 !important; font-size: 10.5pt; }
  .verdict-cards li.is-reversed { border-color: #7a1020 !important; }
  .verdict-text { border-color: #ccc !important; }
  .prose { font-size: inherit !important; }
  .card { box-shadow: none; border: 1px solid #333; }
  .card-ph { background: #fff !important; }
  .card-ph::before { border-color: #999; }
  .ph-arrow, .ph-label { color: #333 !important; }
  .ph-code { color: #111 !important; background: #eee !important; }
  .card-ori { color: #333 !important; border-color: #999 !important; }
  .card-ori.is-reversed { color: #7a1020 !important; border-color: #7a1020 !important; }

  .prose, .prose p, .raw-text { color: #111 !important; orphans: 3; widows: 3; }
  .meaning-item, .qa { border-color: #ccc !important; }
  .meaning-head { break-after: avoid; page-break-after: avoid; break-inside: avoid; }
  .meaning-item, .qa { break-inside: avoid; page-break-inside: avoid; }
  .meaning-head h3 small { color: #7a1020 !important; }
  .revelation {
    background: none !important; border-left: 2pt solid #7a1020;
    padding: 2mm 0 2mm 5mm; font-size: 12pt;
  }
  .qa-q { break-after: avoid; page-break-after: avoid; }

  .report-footer { margin-top: 6mm; break-inside: avoid; page-break-inside: avoid; }
  .report-footer .rule { margin: 3mm auto; }
  .footer-note { margin-top: 3mm; }
}
