/* ═══════════════════════════════════════════════════════════
   S'Agapõ Club — grafica «Heartie»
   Si applica SOLO con <html class="ui-heartie"> (vedi l'interruttore in index.html
   e heartie.js). Senza quella classe nessuna regola qui sotto tocca niente: la
   grafica di sempre resta identica, pixel per pixel.
   Il metodo: si ridefiniscono i token di app.css (così la nuova palette arriva
   ovunque, anche nelle schermate non ridisegnate), poi si rifinisce componente
   per componente. I font si scaricano solo quando si usano, cioè solo qui.
   ═══════════════════════════════════════════════════════════ */
@font-face { font-family: 'DM Sans'; font-weight: 400 900; font-display: swap; src: url('../fonts/dmsans-var.woff2') format('woff2'); }
@font-face { font-family: 'Unbounded'; font-weight: 400 900; font-display: swap; src: url('../fonts/unbounded-var.woff2') format('woff2'); }
@font-face { font-family: 'Cinzel'; font-weight: 400 900; font-display: swap; src: url('../fonts/cinzel-var.woff2') format('woff2'); }

html.ui-heartie {
  --ink: #2a1d10;
  --paper: #fff9ee;
  --magenta: #ff2e7e;
  --yellow: #fdc11a;
  --points: #e8185f;
  --cuori: #7a4fd6;
  --ink-60: rgba(42, 29, 16, .62);
  --ink-40: rgba(42, 29, 16, .4);
  --ink-08: rgba(42, 29, 16, .07);
  --radius: 24px;
  --shadow: 0 10px 26px -16px rgba(185, 128, 0, .45);
  --shadow-pop: 0 10px 22px -10px rgba(255, 46, 126, .7);
  --hx-purple: linear-gradient(135deg, #6a3fb0, #3b1f6e);
  --hx-tabbar: #1c1a22;
  --hx-display: 'Unbounded', 'DM Sans', system-ui, sans-serif;
}
.ui-heartie body {
  font-family: 'DM Sans', system-ui, sans-serif;
  background:
    radial-gradient(900px 480px at 15% -8%, #fff3c4, transparent 60%),
    radial-gradient(700px 420px at 100% 6%, #ffe3ee, transparent 60%),
    var(--paper);
  background-attachment: fixed;
}
.ui-heartie h1, .ui-heartie h2 { font-family: var(--hx-display); font-weight: 700; letter-spacing: -.01em; }
.ui-heartie .section-title { font-family: 'DM Sans', sans-serif; font-weight: 900; }
.ui-heartie #hx-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- pezzi di Heartie ---------- */
.hx-fig, .hx-mark { display: inline-block; line-height: 0; }
.hx-fig svg, .hx-mark svg, .hx-tile svg { display: block; width: 100%; height: 100%; overflow: visible; }
.hxA { position: relative; transform-origin: 50% 100%; }
.hxA svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hxA .t { transform-origin: 50% 12.5%; }
/* l'illustrazione riempie la scatola dell'emoji/foto: stessa misura, stesso raggio */
.ui-heartie .hx-tile { padding: 0; overflow: hidden; background: #fff5d8; }

/* bloccata: la stessa illustrazione, spenta, col lucchetto sopra */
.ui-heartie .hx-tile { position: relative; }
.ui-heartie .hx-locked svg { filter: grayscale(1); opacity: .45; }
.ui-heartie .hx-lock { position: absolute; right: 6%; top: 6%; font-size: calc(var(--tile) * .2); line-height: 1;
  background: #fff; border-radius: 99px; padding: 4px; box-shadow: 0 3px 8px -4px rgba(0,0,0,.4); }
/* in bacheca: la faccia di Heartie del tipo di messaggio, su fondo crema */
.ui-heartie .hx-face { background: radial-gradient(circle at 50% 42%, #fff 0, #fff6d6 45%, #ffe7a3 100%); padding: 6%; }
/* stati vuoti (bacheca, acquisti): l'illustrazione grande al centro della card */
.ui-heartie .hx-empty { width: 140px; height: 140px; margin: 0 auto; border-radius: 28px; }
/* i pallini dei livelli sono tondi: l'illustrazione si ritaglia a cerchio */
.ui-heartie .lvl-dot.hx-tile { border-radius: 50%; }
.ui-heartie .game-big .gb-ico.hx-tile { font-size: 0; }

/* ---------- testata ---------- */
/* Con Heartie il fondo pagina ha i bagliori giallo e rosa: una barra color carta
   pieno ci farebbe un rettangolo sopra. Vetro smerigliato: lascia passare i colori
   di sotto e sfuma in basso senza bordo. */
.ui-heartie .wallet-bar::before {
  background: rgba(255,249,238,.84);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  -webkit-mask-image: linear-gradient(#000 62%, transparent); mask-image: linear-gradient(#000 62%, transparent);
}
.ui-heartie .hx-mark.wb-mark { width: 34px; height: 34px; }
.ui-heartie .pill { box-shadow: 0 4px 12px -8px rgba(0,0,0,.35); }
.ui-heartie .wb-bell { box-shadow: 0 4px 12px -8px rgba(0,0,0,.35); }

/* ---------- card e hero ---------- */
.ui-heartie .card { box-shadow: var(--shadow); }
.ui-heartie .card.hero { background: var(--hx-purple); overflow: visible; margin-top: 34px; }
.ui-heartie .card.hero::after {
  border-radius: inherit;
  background: radial-gradient(circle at 88% 8%, rgba(255,46,126,.35), transparent 45%),
              radial-gradient(circle at 8% 95%, rgba(253,193,26,.22), transparent 45%);
}
.ui-heartie .hero-hi { font-family: var(--hx-display); font-weight: 700; padding-right: 96px; }
/* Heartie che sbircia dall'angolo della card: fuori dal flusso, non allunga la home */
.ui-heartie .hx-peek { position: absolute; top: -44px; right: 4px; width: 104px; z-index: 2 !important; pointer-events: none;
  animation: hx-bob 2.4s ease-in-out infinite; transform-origin: 50% 90%; }
@keyframes hx-bob { 0%,100% { transform: translateY(0) scale(1,1); } 45% { transform: translateY(-5px) scale(.98,1.02); } 90% { transform: translateY(0) scale(1.02,.98); } }
.ui-heartie .progress-track { height: 10px; background: rgba(255,255,255,.18); }
.ui-heartie .hstat { border-radius: 18px; }

/* ---------- righe ---------- */
.ui-heartie .row-item { border-radius: 18px; padding: 10px 12px; box-shadow: 0 6px 18px -12px rgba(0,0,0,.28); }
.ui-heartie .row-item h4 { font-weight: 800; }
.ui-heartie .row-item .emoji { border-radius: calc(var(--tile) * .2); }
.ui-heartie .chip.points { background: #ffe3ee; color: #e8185f; }
.ui-heartie .chip.cuori  { background: #efe6ff; color: #7a4fd6; }
.ui-heartie .chip.done   { background: #e3f8ec; color: #1f9a57; }
.ui-heartie .chip.lock   { background: #f1ede8; color: #8a7560; }
.ui-heartie .banner { background: linear-gradient(90deg, #fff1c2, #ffe3ee); border: 0; font-weight: 800; }

/* ---------- bottoni ---------- */
.ui-heartie .btn { border-radius: 16px; font-weight: 800; }
.ui-heartie .btn.primary { background: var(--magenta); }

/* ---------- tab bar ---------- */
.ui-heartie .tabbar-inner { background: var(--hx-tabbar); border-radius: 22px; box-shadow: 0 14px 34px -12px rgba(28,26,34,.6); }
.ui-heartie .tab.active { color: #ffd84d; }
.ui-heartie .tab.center .t-ean {
  background: radial-gradient(circle at 50% 35%, #ff6f9c, #ff2e7e);
  box-shadow: 0 10px 22px -6px rgba(255,46,126,.7), 0 0 0 4px #fff;
}

/* ---------- welcome ---------- */
.ui-heartie .hx-welcome-fig { width: 140px; height: 140px; display: block; margin: 12px auto -6px; animation: hx-bob 1.8s ease-in-out infinite; transform-origin: 50% 90%; }
.ui-heartie .hx-bubble {
  position: relative; background: #fff; border-radius: 16px; padding: 10px 14px;
  font-weight: 700; font-size: .9rem; line-height: 1.35; text-align: center;
  box-shadow: 0 8px 18px -10px rgba(0,0,0,.3); margin: 8px auto 12px; max-width: 320px;
}
.ui-heartie .hx-bubble::after {
  content: ''; position: absolute; width: 14px; height: 14px; background: #fff;
  top: -6px; left: 50%; transform: translateX(-50%) rotate(45deg); border-radius: 2px;
}
.ui-heartie .hx-wordmark { font-family: 'Cinzel', Georgia, serif; font-weight: 500; letter-spacing: .08em; font-size: 1.6rem; }

/* ---------- premi: il buono 3D al posto dell'emoji ---------- */
.ui-heartie .rw-card { border-radius: 18px; box-shadow: 0 6px 18px -12px rgba(0,0,0,.28); }
.ui-heartie .rw-photo.hx-tile { background: #fff5d8; }

/* ---------- tessera ----------
   Una carta vera: intestazione, nome grande, codice su placca bianca. Le altezze
   restano strette: la commessa deve leggere carta e «sconti attivi» senza scorrere.
   Heartie sta sotto, fuori dalla carta, e non copre mai il codice. */
.ui-heartie .hx-tess { padding-top: 18px; }
.ui-heartie .hx-tess-title { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; gap: 6px; margin: 0 0 12px; }
.ui-heartie .hx-tess-back { font: inherit; font-size: 1.5rem; line-height: 1; background: none; border: 0; padding: 0 4px 0 0; color: var(--ink); cursor: pointer; }
.ui-heartie .ean-card.hx-tcard {
  position: relative; text-align: left; padding: 16px 16px 16px; border-radius: 24px;
  background: linear-gradient(135deg, #ffe066 0%, #fdc11a 45%, #ff9fbf 100%);
  box-shadow: 0 14px 26px -14px rgba(224,144,0,.8);
}
.ui-heartie .hx-tc-top { display: flex; justify-content: space-between; align-items: center; gap: 8px;
  font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: .74rem; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); }
.ui-heartie .hx-tc-name { font-family: 'Unbounded', sans-serif; font-weight: 800; font-size: 1.5rem; line-height: 1.15; margin: 12px 0 12px; color: var(--ink); overflow-wrap: anywhere; }
.ui-heartie .hx-tc-code { background: #fff; border-radius: 16px; padding: 12px 12px 8px; text-align: center; }
.ui-heartie .hx-tc-code svg.barcode { display: block; width: 100%; max-width: 320px; height: 96px; margin: 0 auto; }
.ui-heartie .hx-tc-code .ean-digits { margin-top: 6px; color: var(--ink); }
.ui-heartie .ean-card .cassa-box { background: rgba(255,255,255,.88); border-radius: 14px; border-top: 0; padding: 10px 10px 6px; margin-top: 12px; }
.ui-heartie .hx-tc-off { font-weight: 700; font-size: .85rem; margin: 12px 2px 0; }
.ui-heartie .hx-tc-talk { position: relative; margin-top: 18px; }
.ui-heartie .hx-tc-bub { text-align: left; margin: 0 0 4px; max-width: none; }
.ui-heartie .hx-tc-bub::after { top: auto; bottom: -6px; left: auto; right: 64px; transform: rotate(45deg); }
.ui-heartie .hx-tc-fig { display: block; width: 118px; height: 118px; margin: 0 6px 0 auto; pointer-events: none; animation: hx-bob 2.6s ease-in-out infinite; transform-origin: 50% 90%; }

/* ---------- profilo ---------- */
.ui-heartie .hx-av-main { width: 96px; height: 96px; display: block; margin: -4px auto 0; }
.ui-heartie .hx-avs { display: flex; justify-content: center; gap: 6px; margin-top: 10px; }
.ui-heartie .hx-av-pick { width: 40px; height: 40px; border-radius: 50%; background: #fff5d8; padding: 2px; }
.ui-heartie .hx-av-pick.on { outline: 3px solid var(--magenta); outline-offset: 1px; }
.ui-heartie .hx-av-pick:focus-visible { outline: 3px solid var(--cuori); }
.ui-heartie .hx-av-note { font-size: .72rem; color: var(--ink-40); margin-top: 4px; }

/* ---------- livelli ---------- */
.ui-heartie .hx-levels-fig { width: 130px; height: 130px; display: block; margin: 0 auto 4px; }
.ui-heartie .lvl-item.reached::before { background: linear-gradient(#fdc11a, #ff2e7e); }

/* ═══════════ ANIMAZIONI (scene) ═══════════ */
.hx-gold {
  font-family: var(--hx-display); font-weight: 900;
  background: linear-gradient(180deg, #fff2a8 0%, #fdc11a 45%, #e08a00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 3px 0 #f0a000) drop-shadow(0 8px 14px rgba(224,160,0,.33));
}
.hx-rays {
  position: absolute; top: 60px; left: 50%; width: 480px; height: 480px; opacity: 0;
  transform: translateX(-50%); border-radius: 50%; pointer-events: none;
  background: repeating-conic-gradient(rgba(255,255,255,.82) 0 7deg, transparent 7deg 18deg);
  -webkit-mask: radial-gradient(circle, #000 18%, transparent 60%); mask: radial-gradient(circle, #000 18%, transparent 60%);
}
.hx-flash { position: absolute; inset: 0; background: radial-gradient(circle at 50% 42%, #fff 0, rgba(255,255,255,0) 60%); opacity: 0; z-index: 5; pointer-events: none; }
.hx-fx { position: absolute; inset: 0; pointer-events: none; z-index: 6; overflow: hidden; }
.hx-p { position: absolute; width: 8px; height: 12px; border-radius: 2px; will-change: transform; }
.hx-p.h { width: auto; height: auto; border-radius: 0; font-size: 15px; line-height: 1; }

/* ---------- celebrazione e level up (a tutto schermo) ---------- */
.hx-cel {
  position: fixed; inset: 0; z-index: 200; overflow: hidden; isolation: isolate;
  display: flex; align-items: center; justify-content: center; color: var(--ink, #2a1d10);
  background: radial-gradient(circle at 50% 40%, #fff 0, #ffeef5 40%, #ffd1e2 80%, #ffe7a3 100%);
  font-family: 'DM Sans', system-ui, sans-serif;
}
.hx-cel.lvl { background: radial-gradient(circle at 50% 45%, #fff 0, #fff3c4 40%, #ffd98a 80%, #ffc9dc 100%); }
.hx-cel-in {
  position: relative; z-index: 3; width: min(360px, 100%); max-height: 100dvh; overflow-y: auto;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px;
  padding: calc(24px + env(safe-area-inset-top, 0px)) 22px calc(24px + env(safe-area-inset-bottom, 0px));
}
.hx-kick { font-size: 2.2rem; line-height: 1; opacity: 0; }
.hx-stage2 { position: relative; height: 210px; width: 100%; flex: none; }
.hx-stage2 .hxA { position: absolute; left: 50%; bottom: 16px; width: 130px; height: 130px; margin-left: -65px; z-index: 1; opacity: 0; transform: translateY(10px) scale(.5); }
.hx-gift { position: absolute; left: 50%; bottom: 0; width: 112px; height: 96px; margin-left: -56px; z-index: 2; transform-origin: 50% 100%; }
.hx-box { position: absolute; bottom: 0; left: 4px; width: 104px; height: 68px; border-radius: 12px; background: linear-gradient(160deg, #ff7aa9, #e8185f); box-shadow: inset -8px -8px 16px rgba(176,16,74,.33), inset 6px 6px 12px rgba(255,255,255,.27); }
.hx-box::before, .hx-lid::before { content: ''; position: absolute; left: 50%; top: 0; bottom: 0; width: 16px; margin-left: -8px; background: linear-gradient(90deg, #ffe066, #fdc11a, #e59300); }
.hx-lid { position: absolute; bottom: 62px; left: 0; width: 112px; height: 24px; border-radius: 9px; background: linear-gradient(160deg, #ff8fb8, #f0306f); box-shadow: inset -6px -6px 10px rgba(176,16,74,.27); }
.hx-lid::after { content: ''; position: absolute; left: 50%; top: -15px; width: 44px; height: 20px; margin-left: -22px; background: radial-gradient(circle at 28% 50%, #ffe066 0 8px, transparent 9px), radial-gradient(circle at 72% 50%, #fdc11a 0 8px, transparent 9px); }
.hx-ttl { font-size: clamp(1.9rem, 9vw, 2.4rem); line-height: 1.05; margin: 0; opacity: 0; }
.hx-msg { font-size: 1rem; line-height: 1.45; opacity: 0; max-width: 320px; }
.hx-cta { opacity: 0; max-width: 300px; margin-top: 6px; }
.hx-cta2 { margin-top: 0; }
.hx-lvcard { width: 100%; text-align: left; margin: 0; padding: 14px 16px; }
.hx-lab { font-size: .64rem; font-weight: 800; letter-spacing: .14em; opacity: .55; }
.hx-chip { position: relative; height: 28px; perspective: 300px; font: 700 1.15rem var(--hx-display, sans-serif); margin-top: 2px; }
.hx-chip span { position: absolute; left: 0; top: 0; backface-visibility: hidden; transform-origin: 50% 60%; white-space: nowrap; }
.hx-chip .to { transform: rotateX(-90deg); }
.hx-bar { height: 10px; border-radius: 99px; background: #f3eadc; overflow: hidden; margin: 8px 0 4px; }
.hx-bar i { display: block; height: 100%; width: 35%; background: linear-gradient(90deg, #fdc11a, #ff2e7e); border-radius: 99px; }
.hx-pts { font-size: .75rem; font-weight: 700; }
.hx-heroWrap { position: relative; width: 150px; height: 150px; margin: 6px auto 0; flex: none; }
.hx-heroWrap .hxA { width: 150px; height: 150px; }
.hx-shd { position: absolute; left: 50%; bottom: 4px; width: 96px; height: 14px; margin-left: -48px; border-radius: 50%; background: radial-gradient(rgba(138,90,0,.33), rgba(138,90,0,0) 70%); }
/* il QR speciale: Heartie a sinistra, la moneta del benvenuto a destra, il «×2» sopra */
.hx-cel.promo { background: radial-gradient(circle at 50% 40%, #fff 0, #fff3c4 38%, #ffd1e2 78%, #e9dcff 100%); }
.hx-stage3 { position: relative; height: 172px; width: 100%; flex: none; perspective: 520px; }
.hx-stage3 .hxA { position: absolute; left: 50%; bottom: 4px; width: 140px; height: 140px; margin-left: -124px; opacity: 0; }
.hx-coin {
  position: absolute; left: 50%; bottom: 30px; width: 98px; height: 98px; margin-left: 18px; border-radius: 50%; opacity: 0;
  display: grid; place-content: center; justify-items: center; line-height: 1;
  background: radial-gradient(circle at 32% 28%, #fff6c2 0, #fdc11a 46%, #e08a00 100%);
  box-shadow: inset 0 0 0 5px rgba(255,255,255,.45), inset 0 -8px 14px rgba(176,105,0,.35), 0 12px 18px -10px rgba(176,105,0,.7);
}
.hx-coin b { font: 900 1.5rem var(--hx-display, sans-serif); color: #7a3e00; letter-spacing: -.02em; }
.hx-coin span { font-size: .95rem; margin-top: 3px; }
.hx-x2 {
  position: absolute; left: 50%; bottom: 116px; margin-left: 88px; padding: 7px 11px; border-radius: 99px; opacity: 0;
  background: #ff2e7e; color: #fff; font: 900 1.05rem var(--hx-display, sans-serif); line-height: 1;
  box-shadow: 0 8px 14px -8px rgba(200,20,90,.8);
}
.hx-left { font-size: .86rem; font-weight: 800; background: #fff; border-radius: 99px; padding: 7px 16px; box-shadow: 0 6px 16px -10px rgba(0,0,0,.4); font-variant-numeric: tabular-nums; }
@media (max-height: 640px) {
  .hx-stage3 { height: 150px; }
  .hx-cel.promo .hx-kick { display: none; }   /* su un telefono basso contano i due pulsanti */
  .hx-cel.promo .hx-cel-in { gap: 8px; }
  .hx-stage2 { height: 170px; }
  .hx-heroWrap, .hx-heroWrap .hxA { width: 120px; height: 120px; }
}

/* ---------- hub dei giochi ---------- */
.ui-heartie .hx-hub { position: relative; isolation: isolate; text-align: center; margin: 4px -18px 10px; padding: 8px 18px 4px; overflow: hidden; }
.ui-heartie .hx-hub > :not(.hx-rays):not(.hx-flash):not(.hx-fx) { position: relative; z-index: 3; }
.ui-heartie .hx-gt { font-size: clamp(1.6rem, 8vw, 2.1rem); line-height: 1; white-space: nowrap; margin: 6px 0 0; }
.ui-heartie .hx-gt span { display: inline-block; }
.ui-heartie .hx-heroWrap.sm, .ui-heartie .hx-heroWrap.sm .hxA { width: 124px; height: 124px; }
.ui-heartie .game-big { border-radius: 22px; }

/* ---------- intro dei giochi: Heartie gioca per primo ----------
   La scena si adatta all'altezza del telefono: su uno schermo basso si accorcia,
   il «Via!» resta sempre in vista. */
.ui-heartie .hx-intro { position: relative; isolation: isolate; width: min(280px, 100%); flex: none; }
.ui-heartie .hx-intro .hx-rays { top: 0; }
.ui-heartie .hx-stg { position: relative; width: 100%; height: clamp(120px, 24dvh, 196px); overflow: visible; z-index: 3; }
.ui-heartie .hx-stg .hxA { position: absolute; width: 86px; height: 86px; }
.ui-heartie .hx-pl { position: absolute; bottom: 6px; left: 0; width: 96px; height: 104px; }
.ui-heartie .hx-pl .hxA { left: 5px; top: 0; }
.ui-heartie .hx-bag { position: absolute; right: 0; bottom: 0; width: 52px; height: 58px; border-radius: 4px; background: linear-gradient(135deg, #f7c64d, #e0a52a); box-shadow: inset -6px 0 0 rgba(0,0,0,.07), 0 4px 8px -4px rgba(0,0,0,.33); display: grid; place-items: center; }
.ui-heartie .hx-bag i { position: absolute; top: -14px; left: 50%; width: 26px; height: 20px; margin-left: -13px; border: 3px solid #2a1d10; border-bottom: 0; border-radius: 14px 14px 0 0; }
.ui-heartie .hx-bag span { font: 500 7px 'Cinzel', Georgia, serif; color: #2a1d10; letter-spacing: .04em; }
.ui-heartie .hx-gem { position: absolute; top: 0; width: var(--s, 26px); height: calc(var(--s, 26px) * .85); clip-path: polygon(25% 0, 75% 0, 100% 35%, 50% 100%, 0 35%); background: linear-gradient(135deg, #fff 0%, var(--c) 38%, var(--c) 62%, rgba(0,0,0,.2) 100%); }
.ui-heartie .hx-jar { position: absolute; right: 10px; bottom: 6px; width: 120px; height: calc(100% - 20px); border: 3px solid rgba(255,255,255,.82); border-top: 0; border-radius: 0 0 28px 28px; background: linear-gradient(90deg, rgba(255,255,255,.33), rgba(255,255,255,.13) 40%, rgba(255,255,255,.33)); }
.ui-heartie .hx-ring { position: absolute; top: 0; width: 84px; height: 18px; border-radius: 99px; background: linear-gradient(180deg, #fff9d9 0%, var(--c) 45%, var(--d) 100%); box-shadow: inset 0 -3px 0 rgba(0,0,0,.13), 0 2px 4px -2px rgba(0,0,0,.27); }
.ui-heartie .hx-ftx { position: absolute; font: 900 13px var(--hx-display); color: #ff2e7e; pointer-events: none; z-index: 4; text-shadow: 0 1px 0 #fff; }
.ui-heartie .rain-start h2 { font-family: var(--hx-display); }

/* ---------- Pioggia di gioielli con Heartie: fine partita ---------- */
.ui-heartie .hx-go-fig { width: 110px; height: 110px; display: block; margin: -8px auto 0; animation: hx-bob 1.8s ease-in-out infinite; transform-origin: 50% 90%; }
.ui-heartie .go-card h2 { font-family: var(--hx-display); }

/* ---------- la storia di Heartie ----------
   Un riquadro a tutto schermo sopra tutto (anche la tab bar): la storia ha la sua X
   per uscire. Sotto le finestre a comparsa e i toast, che devono poterla coprire. */
.ui-heartie .hx-story { position: fixed; inset: 0; z-index: 50; background: #fff6d6; }
.ui-heartie .hx-story iframe { display: block; width: 100%; height: 100%; border: 0; }
