/* ============================================================
   HIDDEN HEARTS — Lamplight UI · CSS de produção
   ------------------------------------------------------------
   Identidade: luz de abajur, âmbar sobre pele, serifa
   Cormorant/Playfair, painéis translúcidos com fio de luz no
   topo, movimento contínuo e sutil.

   Como usar:
   1. As fontes agora são LOCAIS: assets/fontes/fontes.css, carregado por
      <link> no index.html (antes deste arquivo). Não há mais @import do
      Google Fonts — o externo era bloqueante e não funcionava offline nem
      no file:// (duplo clique). Para trocar/atualizar as fontes, mexa em
      assets/fontes/.
   2. Aplique as classes .hh-* na sua marcação. Cada seção abaixo
      traz o HTML de referência em comentário.
   3. Os tamanhos base assumem um palco de 1920×1080 (ou 1120×630
      nos mocks). Use .hh-stage como container com aspect-ratio;
      tudo dentro escala via clamp()/%, então funciona em qualquer
      resolução de desktop.
   ============================================================ */

/* ---------- TOKENS ---------- */
:root {
  /* superfícies */
  --hh-bg:            #17110d;
  --hh-bg-2:          #14100c;
  --hh-panel:         linear-gradient(180deg, rgba(30,21,14,.90), rgba(24,17,11,.94));
  --hh-panel-soft:    linear-gradient(180deg, rgba(30,21,14,.72), rgba(22,15,10,.88));
  --hh-locked:        linear-gradient(160deg, #2a1c12, #150e09);

  /* âmbar / acento */
  --hh-amber:         #f0c78d;
  --hh-amber-2:       #e0a86b;
  --hh-amber-glow:    rgba(244,196,132,.30);
  --hh-line:          rgba(240,200,150,.22);
  --hh-line-strong:   rgba(240,200,150,.35);

  /* texto */
  --hh-text:          #efe6d8;
  --hh-text-hi:       #f4ede0;
  --hh-text-mut:      rgba(239,230,216,.60);
  --hh-text-faint:    rgba(239,230,216,.42);

  /* perigo (excluir save) */
  --hh-danger:        rgba(224,138,116,.90);
  --hh-danger-line:   rgba(200,96,74,.32);

  /* fontes */
  --hh-serif:         'Cormorant Garamond', Georgia, serif;
  --hh-display:       'Playfair Display', Georgia, serif;
  --hh-cond:          'Barlow Condensed', 'Arial Narrow', sans-serif;
  --hh-sans:          'Manrope', system-ui, sans-serif;

  /* raios/sombras */
  --hh-radius:        14px;
  --hh-radius-sm:     8px;
  --hh-shadow-panel:  0 20px 50px -20px rgba(0,0,0,.70);
  --hh-shadow-card:   0 22px 46px -24px rgba(0,0,0,.80);
}

/* ---------- KEYFRAMES (movimento contínuo) ---------- */
@keyframes hh-breathe   { 0%,100%{transform:scale(1);} 50%{transform:scale(1.018);} }
@keyframes hh-bgDrift   { 0%{transform:scale(1.07) translate(0,0);} 50%{transform:scale(1.13) translate(-1.4%,-1%);} 100%{transform:scale(1.07) translate(0,0);} }
@keyframes hh-spotPulse { 0%,100%{opacity:.80;transform:translateX(-50%) scale(1);} 50%{opacity:1;transform:translateX(-50%) scale(1.05);} }
@keyframes hh-floatMote { 0%{transform:translateY(0);opacity:0;} 14%{opacity:1;} 85%{opacity:1;} 100%{transform:translateY(-150px);opacity:0;} }
@keyframes hh-advNudge  { 0%,100%{transform:translateY(0);opacity:.45;} 50%{transform:translateY(3px);opacity:.95;} }
@keyframes hh-fade      { 0%{opacity:0;} 100%{opacity:1;} }

/* ============================================================
   PALCO / CAMADAS DE FUNDO (comum a todas as telas)
   ------------------------------------------------------------
   <div class="hh-stage">
     <div class="hh-bg" style="background-image:url(bg_living.jpg)"></div>
     <div class="hh-vignette"></div>
     <div class="hh-spot"></div>
     … conteúdo da tela …
   </div>
   ============================================================ */
.hh-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 100vh;
  margin: 0 auto;
  overflow: hidden;
  background: var(--hh-bg);
  color: var(--hh-text);
  font-family: var(--hh-sans);
  -webkit-font-smoothing: antialiased;
  /* escala tipográfica relativa ao palco */
  container-type: inline-size;
}

.hh-bg {
  position: absolute; inset: 0;
  background-position: center;
  background-size: cover;
  filter: blur(2px) brightness(.62) saturate(1.08);
  animation: hh-bgDrift 26s ease-in-out infinite;
  z-index: 0;
}
/* fundo mais desfocado para telas de menu (galeria/saves/seleção) */
.hh-bg--menu { filter: blur(16px) brightness(.36) saturate(1.05); }

.hh-vignette {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    linear-gradient(180deg, rgba(23,17,13,.42), rgba(23,17,13,.12) 42%, rgba(20,13,8,.82)),
    radial-gradient(120% 90% at 58% 78%, rgba(224,168,107,.16), transparent 55%),
    radial-gradient(140% 120% at 50% 50%, transparent 52%, rgba(12,8,5,.78));
}

.hh-spot {
  position: absolute; left: 59%; bottom: -14%;
  width: 62%; aspect-ratio: 1; border-radius: 50%;
  transform: translateX(-50%);
  background: radial-gradient(circle, var(--hh-amber-glow), rgba(244,196,132,0) 62%);
  z-index: 1; pointer-events: none;
  animation: hh-spotPulse 8s ease-in-out infinite;
}

/* poeira de luz — gere N .hh-mote com posições/delays aleatórios */
.hh-motes { position: absolute; inset: 0; z-index: 4; pointer-events: none; color: #e7b980; }
.hh-mote  {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: currentColor; filter: blur(.5px);
  animation: hh-floatMote var(--d, 12s) ease-in-out var(--delay, 0s) infinite;
}

/* sprite do personagem */
.hh-sprite {
  position: absolute; left: 59%; bottom: 0; z-index: 3;
  transform: translateX(-50%);
  transform-origin: bottom center;
  animation: hh-breathe 5.6s ease-in-out infinite;
}
.hh-sprite img { display: block; height: 96%; filter: drop-shadow(0 26px 34px rgba(0,0,0,.5)); }
.hh-sprite-shadow {
  position: absolute; left: 59%; bottom: 1.6%; width: 32%; height: 6%;
  transform: translateX(-50%); z-index: 2; filter: blur(3px);
  background: radial-gradient(circle, rgba(0,0,0,.55), transparent 70%);
}
/* cross-fade de sprites (rotação no título) */
.hh-sprite--stack { width: 57%; height: 100%; }
.hh-sprite--stack img {
  position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  height: 100%; opacity: 0; transition: opacity 1.4s ease;
}
.hh-sprite--stack img.is-active { opacity: 1; }

/* ============================================================
   HUD DE GAMEPLAY
   ============================================================ */

/* PERMANENTE — identidade (canto sup. esq.)
   <div class="hh-id"> <span class="hh-id__mark">HH</span>
     <div><div class="hh-id__name">Aria</div>
          <div class="hh-id__ch">Ch.05 · Borrowed Hours</div>
          <div class="hh-bond">…</div>
     <div class="hh-id__panel">…</div></div></div>                            */
.hh-id { position: absolute; top: 3.4%; left: 2.3%; z-index: 7; display: flex; align-items: center; gap: 14px; }
.hh-id__mark {
  width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid rgba(240,200,150,.40);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--hh-serif); font-weight: 600; font-size: 18px; color: var(--hh-amber);
}
.hh-id__name { font-family: var(--hh-serif); font-weight: 600; font-size: 20px; color: var(--hh-text); line-height: 1; }
.hh-id__ch   { margin-top: 5px; font-size: clamp(10.5px, .58vw, 12px); letter-spacing: .2em; text-transform: uppercase; color: rgba(231,230,225,.5); }

/* ---- VÍNCULO (ex-"Affinity") ----------------------------------------------
   O medidor numérico saiu da cena. A Aria é uma personagem construída para ser
   ilegível; um "12 / 40" com um "+1" verde ao lado resolvia em 1,8 s a
   ambiguidade que o texto passa uma cena inteira construindo — e, como quase
   toda escolha valia +1 contra 0, o número virava gabarito ao vivo.
   Fica uma palavra e um ponto de luz que muda de cor. O número exato continua
   existindo, na galeria e na tela de final, onde já não atrapalha a leitura. */
.hh-bond { display: flex; align-items: center; gap: 7px; margin-top: 5px;
  font-family: var(--hh-cond); font-size: clamp(10.5px, .58vw, 12px); letter-spacing: .18em;
  text-transform: uppercase; color: var(--hh-text-mut); }
.hh-bond:empty, .hh-bond span:empty { display: none; }
.hh-bond__dot { width: 6px; height: 6px; border-radius: 50%;
  background: var(--bond-color, rgba(240,199,141,.55));
  box-shadow: 0 0 10px var(--bond-color, rgba(240,199,141,.35));
  transition: background .8s ease, box-shadow .8s ease; }
.hh-bond__feedback {
  max-width: 0; overflow: hidden; opacity: 0; white-space: nowrap;
  color: var(--hh-gold); letter-spacing: .08em; transform: translateX(-3px);
  transition: max-width .2s ease, opacity .2s ease, transform .2s ease;
}
.hh-bond.changed .hh-bond__feedback {
  max-width: 64px; opacity: .9; transform: translateX(0);
}
.hh-bond.is-strained .hh-bond__feedback { color: #d99a8d; }
/* a mudança de estado é um pulso do ponto, não um número saltando */
@keyframes hh-bondPulse { 0%,100% { transform: scale(1); } 45% { transform: scale(1.9); } }
.hh-bond.changed .hh-bond__dot { animation: hh-bondPulse 1.1s ease; }

/* ---- PAINEL DE STATUS (hover/foco no bloco de identidade) -----------------
   Capítulo, momento, rota e progresso moravam soltos no canto e competiam com
   a cena. Agora só aparecem quando o jogador procura por eles. */
.hh-id__body { position: relative; }
.hh-id__panel {
  position: absolute; top: calc(100% + 10px); left: 0; z-index: 8;
  min-width: 260px; padding: 14px 16px 15px;
  background: var(--hh-panel); border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius-sm); box-shadow: var(--hh-shadow-panel);
  opacity: 0; visibility: hidden; transform: translateY(-4px);
  transition: opacity .18s ease, transform .18s ease, visibility 0s linear .18s;
  pointer-events: none;
}
.hh-id:hover .hh-id__panel, .hh-id:focus-within .hh-id__panel, .hh-id.is-open .hh-id__panel {
  opacity: 1; visibility: visible; transform: none; transition-delay: 0s; pointer-events: auto;
}
.hh-id__panel::before { content: ""; position: absolute; inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, var(--hh-line-strong), transparent); }
.hh-id__panel-row { display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
  font-family: var(--hh-cond); font-size: clamp(11px, .8vw, 12px); line-height: 1.35; letter-spacing: .14em; text-transform: uppercase; }
.hh-id__panel-row + .hh-id__panel-row { margin-top: 9px; }
.hh-id__panel-row > span { color: var(--hh-text-faint); }
.hh-id__panel-row > b { font-weight: 500; color: var(--hh-text); text-align: right; }
.hh-id__panel-row.is-off { display: none; }
.hh-id__panel-bar { margin-top: 11px; height: 2px; border-radius: 2px; background: rgba(255,255,255,.12); position: relative; }
.hh-id__panel-bar > i { position: absolute; inset: 0; right: auto; background: rgba(240,199,141,.65); border-radius: 2px; transition: width .4s ease; }
/* o bloco inteiro vira alvo de hover sem virar botão */
.hh-id { cursor: default; }
.hh-id:focus { outline: none; }
.hh-id:focus-visible { outline: 1px solid var(--hh-line-strong); outline-offset: 6px; border-radius: 4px; }

/* ---- CARTELA DE CAPÍTULO / SALTO TEMPORAL ---------------------------------
   São 30 capítulos com saltos de "Weeks later" a "Two years later" e a
   passagem entre eles era um clique igual a todos os outros. */
.hh-card {
  position: absolute; inset: 0; z-index: 9;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden; pointer-events: none;
  background: radial-gradient(120% 100% at 50% 50%, rgba(12,8,5,.55), rgba(8,5,3,.88));
  transition: opacity .5s ease, visibility 0s linear .5s;
}
.hh-card.on { opacity: 1; visibility: visible; transition-delay: 0s; }
.hh-card__inner { text-align: center; padding: 0 8%; transform: translateY(10px); transition: transform .7s cubic-bezier(.2,.7,.2,1); }
.hh-card.on .hh-card__inner { transform: none; }
.hh-card__kicker { font-family: var(--hh-cond); font-size: clamp(10px, .8vw, 12px);
  letter-spacing: .34em; text-transform: uppercase; color: var(--hh-amber-2); }
.hh-card__title { margin-top: 12px; font-family: var(--hh-display); font-weight: 600;
  font-size: clamp(26px, 3.2vw, 48px); line-height: 1.15; color: var(--hh-text-hi); }
.hh-card__title:empty { display: none; }
.hh-card__rule { width: 74px; height: 1px; margin: 18px auto 0;
  background: linear-gradient(90deg, transparent, var(--hh-line-strong), transparent); }
.hh-card__when { margin-top: 16px; font-family: var(--hh-serif); font-style: italic;
  font-size: clamp(15px, 1.35vw, 21px); color: var(--hh-text-mut); }
.hh-card__when:empty { display: none; }
/* salto temporal dentro do capítulo: mais discreto, sem título grande */
.hh-card.is-timeskip .hh-card__inner { padding-top: 0; }
.hh-card.is-timeskip .hh-card__when { font-size: clamp(19px, 2.1vw, 30px); color: var(--hh-text); }
.hh-card.is-timeskip { background: radial-gradient(120% 100% at 50% 50%, rgba(12,8,5,.42), rgba(8,5,3,.72)); }

/* ---- TELA DE NOME DO PROTAGONISTA ---------------------------------------- */
.hh-nameform { max-width: 520px; margin: auto; text-align: center; padding: 0 24px; }
.hh-nameform__title { margin: 10px 0 0; font-family: var(--hh-display); font-weight: 600;
  font-size: clamp(30px, 3.6vw, 46px); color: var(--hh-text-hi); }
.hh-nameform__hint { margin: 14px 0 26px; font-family: var(--hh-serif); font-style: italic;
  font-size: clamp(15px, 1.3vw, 19px); color: var(--hh-text-mut); }
.hh-nameform__input {
  width: 100%; padding: 15px 18px; text-align: center;
  font-family: var(--hh-serif); font-weight: 600; font-size: 24px; color: var(--hh-text-hi);
  background: rgba(20,14,9,.55); border: 1px solid var(--hh-line-strong);
  border-radius: var(--hh-radius-sm); transition: border-color .18s ease, background .18s ease;
}
.hh-nameform__input::placeholder { color: var(--hh-text-faint); font-weight: 500; }
.hh-nameform__input:focus { outline: none; border-color: var(--hh-amber); background: rgba(30,20,12,.7); }
.hh-nameform__note { margin: 12px 0 0; font-family: var(--hh-cond); font-size: 11px;
  letter-spacing: .16em; text-transform: uppercase; color: var(--hh-text-faint); }
.hh-nameform__note b { color: var(--hh-text-mut); font-weight: 500; }
.hh-nameform__actions { display: flex; justify-content: center; gap: 12px; margin-top: 30px; }

/* ---- ações de sessão dentro do ⚙ ----------------------------------------- */
.set-actions { display: flex; flex-direction: column; gap: 10px; }
.set-group--session[hidden] { display: none; }

/* PERMANENTE — controles (canto sup. dir.), rótulos estilo créditos
   <nav class="hh-controls">
     <button class="hh-hideui"><span class="hh-hideui__icon"></span>Hide UI</button>
     <span class="hh-controls__sep"></span>
     <button>Auto</button><button>Log</button><button>⚙</button>
     <span class="hh-controls__sep"></span>
     <button>Saves</button><button>Menu</button>
   </nav>                                                                     */
.hh-controls {
  position: absolute; top: 4%; right: 2.5%; z-index: 7;
  display: flex; align-items: center; gap: 16px;
  font-family: var(--hh-cond); font-size: 14px; letter-spacing: .16em;
  text-transform: uppercase;
}
.hh-controls button {
  background: none; border: 0; cursor: pointer; padding: 0;
  font: inherit; letter-spacing: inherit; text-transform: inherit;
  color: rgba(239,230,216,.55); transition: color .15s ease;
}
.hh-controls button:hover { color: var(--hh-amber); }
.hh-controls__sep { width: 1px; height: 14px; background: rgba(240,200,150,.28); }

.hh-hideui { display: flex; align-items: center; gap: 7px; }
.hh-hideui__icon {
  width: 17px; height: 12px; border: 1.5px solid currentColor; border-radius: 2px;
  display: inline-block; position: relative;
}
.hh-hideui__icon::after {
  content: ""; position: absolute; inset: 2.5px; background: currentColor; opacity: .35; border-radius: 1px;
}

/* setas de navegação discretas (canto inf. esq.) */
.hh-nav { position: absolute; left: 2.3%; bottom: 5.4%; z-index: 7; display: flex; gap: 6px; }
.hh-nav button {
  width: 34px; height: 34px; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(240,200,150,.20);
  background: rgba(20,14,9,.40); backdrop-filter: blur(6px);
  color: rgba(239,230,216,.55); font-size: 16px;
  display: flex; align-items: center; justify-content: center;
}
.hh-nav button:disabled { color: rgba(239,230,216,.30); cursor: default; }

/* TEMPORÁRIO — caixa de fala (acesa, viva)
   <div class="hh-dialog">
     <div class="hh-dialog__speaker"><i></i>Aria</div>
     <p class="hh-dialog__text">…</p>
     <div class="hh-dialog__adv">tap ▾</div>
   </div>                                                                     */
.hh-dialog {
  position: absolute; left: 50%; bottom: 5.4%; transform: translateX(-50%);
  width: min(880px, 84%); z-index: 6;
  background: var(--hh-panel);
  border: 1px solid var(--hh-line);
  border-radius: var(--hh-radius);
  padding: 22px 30px 20px;
  box-shadow: var(--hh-shadow-panel);
  animation: hh-fade .4s ease;
}
.hh-dialog::before { /* fio de luz no topo */
  content: ""; position: absolute; top: 0; left: 26px; right: 26px; height: 2px;
  background: linear-gradient(90deg, transparent, rgba(240,199,141,.85), transparent);
}
.hh-dialog__speaker { display: flex; align-items: center; gap: 9px; margin-bottom: 9px; font-family: var(--hh-serif); font-weight: 600; font-size: 24px; color: var(--hh-amber); line-height: 1; }
.hh-dialog__speaker i { width: 6px; height: 6px; border-radius: 50%; background: var(--hh-amber); }
.hh-dialog__text { margin: 0; font-size: 18px; line-height: 1.72; color: var(--hh-text); padding-bottom: 26px; }
.hh-dialog__adv {
  position: absolute; right: 26px; bottom: 16px;
  display: flex; align-items: center; gap: 6px;
  color: var(--hh-amber); font-size: 11px; letter-spacing: .14em; text-transform: uppercase;
  animation: hh-advNudge 1.9s ease-in-out infinite;
}

/* ============================================================
   MENUS — cabeçalho comum (galeria / seleção / saves)
   <header class="hh-head">
     <div><div class="hh-head__kicker">Hidden Hearts</div>
          <h1 class="hh-head__title">Gallery</h1></div>
     <div class="hh-head__aside">…</div>
   </header>                                                                  */
/* A barra OCUPA espaço (não flutua sobre o conteúdo): ela é irmã da área que
   rola dentro de .hh-screen, que é uma coluna flex. Enquanto ela era
   `position:absolute`, a área de rolagem precisava adivinhar a altura dela num
   padding fixo — e bastava o cabeçalho crescer (aside quebrando linha em tela
   estreita, nome comprido) para o conteúdo passar por baixo. Agora ela cresce e
   EMPURRA o conteúdo, em qualquer largura, sem número mágico nenhum. */
/* `align-items: center` (não `flex-end`): os botões se alinham pelo MEIO do
   bloco de identidade. Grudados na base, eles ficavam pendurados no pé de uma
   pilha de três linhas (marca + título + progresso) — o desequilíbrio que se
   via na lista de personagens. */
.hh-head { position: relative; flex: none; z-index: 5; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 14px 26px; }
.hh-head__kicker { font-family: var(--hh-cond); font-size: 12px; letter-spacing: .4em; text-transform: uppercase; color: rgba(240,200,150,.7); }
.hh-head__title  { margin: 6px 0 0; font-family: var(--hh-display); font-weight: 800; font-size: 38px; color: var(--hh-text-hi); line-height: 1; overflow-wrap: anywhere; }
/* Variante do título dentro do chip de personagem (era um style= no HTML). */
.hh-head__title--chip { margin: 4px 0 0; font-size: 26px; }
.hh-head__sub    { font-family: var(--hh-serif); font-style: italic; font-size: 17px; color: rgba(239,230,216,.55); margin-top: 4px; }
.hh-back { display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--hh-cond); font-size: 13px; letter-spacing: .18em; text-transform: uppercase; color: rgba(239,230,216,.5); background: none; border: 0; }
.hh-back:hover { color: var(--hh-amber); }
.hh-back[hidden] { display: none; }   /* o `display:flex` acima anularia o atributo hidden */

/* corações de afinidade (reutilizável) */
.hh-hearts { display: flex; gap: 2px; }
.hh-hearts i { font-style: normal; font-size: 13px; line-height: 1; color: rgba(239,230,216,.16); }
.hh-hearts i.is-on { color: var(--hh-amber); }

/* ============================================================
   TÍTULO / MENU PRINCIPAL
   ============================================================ */
.hh-title-logo { position: absolute; left: 5.7%; top: 17.5%; z-index: 6; }
.hh-title-logo__kicker { font-family: var(--hh-cond); font-size: 13px; letter-spacing: .44em; text-transform: uppercase; color: rgba(240,200,150,.75); margin-bottom: 12px; }
.hh-title-logo__1 { font-family: var(--hh-display); font-weight: 800; font-size: 84px; line-height: .92; color: var(--hh-text-hi); }
.hh-title-logo__2 { font-family: var(--hh-serif); font-style: italic; font-weight: 600; font-size: 84px; line-height: .96; color: var(--hh-amber); }
.hh-title-rule { position: absolute; left: 5.7%; top: 51%; z-index: 6; width: 120px; height: 2px; background: linear-gradient(90deg, rgba(240,199,141,.85), transparent); }

.hh-menu { position: absolute; left: 5.7%; top: 56%; z-index: 6; display: flex; flex-direction: column; gap: 14px; }
.hh-menu__item { display: flex; align-items: baseline; gap: 14px; cursor: pointer; color: rgba(239,230,216,.62); background: none; border: 0; text-align: left; }
.hh-menu__item:hover { color: var(--hh-amber); }
.hh-menu__n { font-family: var(--hh-cond); font-size: 12px; letter-spacing: .1em; color: rgba(240,199,141,.55); width: 20px; }
.hh-menu__label { font-family: var(--hh-serif); font-weight: 600; font-size: 27px; line-height: 1; }

/* Continue rebaixado: chip discreto no topo */
.hh-resume {
  position: absolute; left: 5.7%; top: 8.3%; z-index: 6;
  display: flex; align-items: center; gap: 11px; cursor: pointer;
  padding: 9px 15px; border-radius: 999px;
  background: rgba(20,14,9,.5); border: 1px solid var(--hh-line);
  backdrop-filter: blur(8px); text-decoration: none;
}
.hh-resume:hover { border-color: rgba(240,200,150,.5); }
.hh-resume__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--hh-amber); box-shadow: 0 0 8px rgba(240,199,141,.8); }
.hh-resume__label { font-family: var(--hh-cond); font-size: 12px; letter-spacing: .16em; text-transform: uppercase; color: rgba(239,230,216,.55); }
.hh-resume__sep { width: 1px; height: 12px; background: rgba(240,200,150,.25); }
.hh-resume__where { font-family: var(--hh-serif); font-size: 15px; color: var(--hh-text); }

/* botão Patreon (canto inf. dir.) */
.hh-patreon {
  position: absolute; right: 2.7%; bottom: 4.1%; z-index: 6;
  display: flex; align-items: center; gap: 9px; text-decoration: none;
  padding: 9px 16px; border-radius: 999px;
  background: rgba(20,14,9,.5); border: 1px solid rgba(240,200,150,.24);
  backdrop-filter: blur(8px);
}
.hh-patreon:hover { border-color: rgba(240,200,150,.55); background: rgba(30,20,12,.6); }
.hh-patreon__p { width: 22px; height: 22px; border-radius: 50%; background: var(--hh-amber); color: #1a1109; display: flex; align-items: center; justify-content: center; font-family: var(--hh-display); font-weight: 800; font-size: 13px; }
.hh-patreon__label { font-family: var(--hh-cond); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; color: var(--hh-amber); }

/* ============================================================
   GRID GENÉRICO DE CARTÕES  (seleção / roster / galeria / saves)
   <div class="hh-grid hh-grid--3">…</div>
   ============================================================ */
.hh-grid { position: absolute; left: 5%; right: 5%; top: 150px; z-index: 5; display: grid; gap: 22px; }
.hh-grid--3   { grid-template-columns: repeat(3, 1fr); }
.hh-grid--4x2 { grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr); }
.hh-grid--3x2 { grid-template-columns: repeat(3, 1fr); grid-template-rows: repeat(2, 1fr); }

/* ---------- CHARACTER SELECT (arte em destaque ~60%) ----------
   <article class="hh-char">
     <div class="hh-char__art" style="background-image:url(...)">
        <span class="hh-badge hh-badge--amber">62% complete</span></div>
     <div class="hh-char__body">
        <h3 class="hh-char__name">Aria</h3>
        <p class="hh-char__desc">…</p>
        <div class="hh-tags"><span class="hh-tag">Romance</span>…</div>
        <div class="hh-progress"><span><i style="width:62%"></i></span><b>62%</b></div>
     </div>
   </article>                                                                 */
.hh-char {
  position: relative; display: flex; flex-direction: column; cursor: pointer;
  border-radius: var(--hh-radius); overflow: hidden; height: 100%;
  border: 1px solid var(--hh-line-strong);
  background: var(--hh-panel-soft);
  box-shadow: var(--hh-shadow-card);
}
.hh-char--locked { border-color: rgba(240,200,150,.12); }
.hh-char__art { position: relative; flex: none; height: 60%; background-size: cover; background-position: center top; }
.hh-char__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 42%, rgba(22,15,10,.96)); }
.hh-char--locked .hh-char__art { background: var(--hh-locked); }
.hh-char__lock { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 30px; color: rgba(239,230,216,.4); z-index: 1; }
.hh-char__body { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 7px; padding: 0 16px 16px; }
.hh-char__name { margin: -2px 0 0; font-family: var(--hh-serif); font-weight: 600; font-size: 26px; line-height: 1; color: var(--hh-text-hi); }
.hh-char--locked .hh-char__name { color: rgba(239,230,216,.55); }
.hh-char__desc { margin: 0; font-family: var(--hh-sans); font-size: 12px; line-height: 1.5; color: var(--hh-text-mut);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

.hh-char__profile { display: grid; gap: 8px; margin-top: 2px; }
.hh-char__tag-group { display: grid; grid-template-columns: 66px minmax(0, 1fr); align-items: start; gap: 8px; }
.hh-char__tag-label { padding-top: 4px; font-family: var(--hh-cond); font-size: 9px; font-weight: 600; line-height: 1.2; letter-spacing: .15em; text-transform: uppercase; color: rgba(240,199,141,.76); }
.hh-char__tag-group--adult .hh-char__tag-label { color: rgba(238,166,192,.9); }
.hh-tags { display: flex; flex-wrap: wrap; gap: 5px; min-width: 0; }
.hh-tag { font-family: var(--hh-cond); font-size: 10px; line-height: 1.2; letter-spacing: .07em; text-transform: uppercase; padding: 3px 7px; border-radius: 999px; border: 1px solid var(--hh-line-strong); color: rgba(240,199,141,.88); background: rgba(20,14,9,.4); }
.hh-tag--story { border-color: rgba(240,199,141,.32); background: rgba(20,14,9,.32); }
.hh-tag--adult { border-radius: 5px; border-color: rgba(210,104,143,.48); color: rgba(247,205,220,.94); background: rgba(112,42,68,.28); }
.hh-tag--muted { border-color: rgba(240,200,150,.14); color: rgba(239,230,216,.42); }

.hh-char__structure { margin-top: auto; padding-top: 8px; border-top: 1px solid rgba(240,200,150,.12); font-family: var(--hh-cond); font-size: 10px; line-height: 1.2; letter-spacing: .15em; text-transform: uppercase; color: var(--hh-text-faint); }

.hh-progress { display: flex; align-items: center; gap: 11px; }
.hh-progress > span { flex: 1; height: 4px; border-radius: 4px; background: rgba(255,255,255,.12); position: relative; overflow: hidden; }
.hh-progress > span > i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--hh-amber); border-radius: 4px; }
.hh-progress > b { font-family: var(--hh-cond); font-weight: 400; font-size: 12px; letter-spacing: .14em; color: var(--hh-amber); }

.hh-badge { position: absolute; top: 15px; right: 14px; z-index: 1; font-family: var(--hh-cond); font-size: 10px; letter-spacing: .18em; text-transform: uppercase; padding: 3px 8px; border-radius: 999px; }
.hh-badge--amber  { background: var(--hh-amber); color: #1a1109; }
.hh-badge--locked { background: rgba(20,14,9,.6); color: rgba(239,230,216,.55); border: 1px solid rgba(240,200,150,.2); }

/* ---------- GALLERY · Passo 1 (roster) ----------
   Reusa .hh-char-mini dentro de .hh-grid.hh-grid--3
   <article class="hh-roster" style="--art:url(...)">
     <div class="hh-roster__art"></div>
     <div class="hh-roster__body">
       <h3>Aria</h3><div class="hh-hearts">…</div>
       <div class="hh-roster__count">8 / 12 scenes unlocked</div></div>
   </article>                                                                 */
.hh-roster { position: relative; border-radius: 13px; overflow: hidden; cursor: pointer; border: 1px solid var(--hh-line-strong); box-shadow: 0 18px 40px -22px rgba(0,0,0,.8); }
.hh-roster--locked { border-color: rgba(240,200,150,.12); }
.hh-roster__art { position: absolute; inset: 0; background-image: var(--art); background-position: var(--art-position, center top); background-size: var(--art-size, cover); background-repeat: no-repeat; filter: brightness(.9); }
.hh-roster--locked .hh-roster__art { background: var(--hh-locked); filter: none; }
.hh-roster::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 36%, rgba(16,11,7,.95)); }
.hh-roster__lock { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 28px; color: rgba(239,230,216,.4); }
.hh-roster__body { position: absolute; left: 16px; right: 16px; bottom: 14px; z-index: 1; }
.hh-roster__body h3 { margin: 0; font-family: var(--hh-serif); font-weight: 600; font-size: 23px; line-height: 1; color: var(--hh-text-hi); }
.hh-roster--locked .hh-roster__body h3 { color: rgba(239,230,216,.5); }
.hh-roster__body .hh-hearts { margin-top: 6px; }
.hh-roster__count { margin-top: 5px; font-family: var(--hh-cond); font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(240,199,141,.85); }
.hh-roster--locked .hh-roster__count { color: rgba(239,230,216,.4); }
/* Segunda linha do card: os finais. Vem abaixo da contagem de memórias, com
   menos peso — é informação de progresso, não a manchete do card. */
.hh-roster__count--endings { margin-top: 2px; color: rgba(239,230,216,.62); }

/* chip de afinidade (cabeçalho do Passo 2). `min-width:0` + o quebra-linha do
   nome são o que impede um nome comprido de esticar o chip para cima do resto
   da barra em tela estreita. */
.hh-affchip { display: flex; align-items: center; gap: 11px; padding: 9px 14px; border-radius: 12px; min-width: 0; background: var(--hh-panel-soft); border: 1px solid rgba(240,200,150,.2); }
.hh-affchip__av { width: 42px; height: 42px; border-radius: 50%; flex: none; background: var(--av) center top / cover; border: 1px solid rgba(240,200,150,.4); }
.hh-affchip__body { min-width: 0; }
.hh-affchip__body .hh-head__kicker { font-size: 10px; letter-spacing: .3em; }
.hh-affchip__body .hh-head__stats { margin-top: 4px; }
.hh-affchip__body .hh-head__count { font-size: 11px; letter-spacing: .14em; }

/* ---------- GALLERY · Passo 2 (cenas) ----------
   <figure class="hh-scene" style="--art:url(...)"><figcaption>First Lesson</figcaption></figure>
   <figure class="hh-scene hh-scene--locked"><span class="hh-scene__lock">🔒</span></figure>  */
.hh-scene { position: relative; margin: 0; border-radius: 11px; overflow: hidden; cursor: pointer; border: 1px solid rgba(240,200,150,.14); box-shadow: 0 14px 30px -18px rgba(0,0,0,.8); }
.hh-scene::before { content: ""; position: absolute; inset: 0; background: var(--art) center / cover; }
.hh-scene::after  { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(16,11,7,.85)); }
.hh-scene--locked::before { background: var(--hh-locked); }
.hh-scene__lock { position: absolute; inset: 0; z-index: 1; display: flex; align-items: center; justify-content: center; font-size: 24px; color: rgba(239,230,216,.32); }
.hh-scene__kind { position: absolute; top: 9px; left: 10px; z-index: 2; font-family: var(--hh-cond); font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: rgba(239,230,216,.72); background: rgba(16,11,7,.7); border: 1px solid rgba(240,200,150,.18); padding: 3px 7px; border-radius: 999px; }
.hh-scene figcaption { position: absolute; left: 12px; bottom: 10px; z-index: 1; font-family: var(--hh-serif); font-size: 15px; color: var(--hh-text); }
.hh-scene--locked figcaption { color: rgba(239,230,216,.58); }
/* Capa = um quadro do próprio vídeo da cena (canvas pintado pelo motor).
   Entra como filho do card: fica ACIMA do ::before (placeholder) e ABAIXO do
   ::after (degradê da legenda). Bloqueada, a mesma capa vira preto e branco. */
.hh-scene__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.hh-scene--locked .hh-scene__art { filter: grayscale(1) brightness(.6) contrast(1.04); }
.hh-scene:not(.hh-scene--locked) .hh-scene__art { filter: none; }

/* ---------- GALLERY · Passo 2b (finais) ----------
   A segunda prateleira da página de cada personagem: um bloco por FINAL, com
   as cenas exclusivas dele. Todos os finais aparecem sempre — o não descoberto
   fica esmaecido e sem contar o que acontece nele.
   <section class="hh-endings">
     <div class="hh-endings__head"><h2 class="hh-endings__title">Endings</h2>
       <span class="hh-endings__count">1 / 7 discovered</span></div>
     <article class="hh-endblock hh-endblock--locked">
       <header class="hh-endblock__head">…</header>
       <div class="hh-grid hh-grid--scenes hh-endblock__grid">…</div>
     </article>
   </section>                                                                 */
.hh-endings { margin-top: 40px; }
.hh-endings[hidden] { display: none; }
.hh-endings__head { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap;
  gap: 8px 18px; padding-bottom: 11px; border-bottom: 1px solid var(--hh-line-strong); }
.hh-endings__title { margin: 0; font-family: var(--hh-cond); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--hh-amber); }
.hh-endings__count { font-family: var(--hh-cond); font-size: 11.5px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--hh-text-mut); }

.hh-endblock { margin-top: 22px; padding: 18px 20px 20px; border-radius: 12px;
  background: var(--hh-panel-soft); border: 1px solid rgba(240,200,150,.16); }
/* O bloqueado não some nem vira um borrão: continua legível (o jogador precisa
   contar o que falta), só perde o destaque de quem já foi conquistado. */
.hh-endblock--locked { background: rgba(20,14,9,.34); border-color: rgba(240,200,150,.09); }
.hh-endblock__head { margin: 0; }
.hh-endblock__route { font-family: var(--hh-cond); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--hh-amber); }
.hh-endblock--locked .hh-endblock__route { color: rgba(239,230,216,.42); }
.hh-endblock__title { margin: 7px 0 6px; font-family: var(--hh-serif); font-weight: 600; font-size: 21px;
  color: var(--hh-text-hi); }
.hh-endblock--locked .hh-endblock__title { color: rgba(239,230,216,.55); }
.hh-endblock__summary { margin: 0; max-width: 78ch; font-size: 13px; line-height: 1.6; color: var(--hh-text-mut); }
.hh-endblock__meta { margin-top: 9px; font-family: var(--hh-cond); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: rgba(240,199,141,.8); }
.hh-endblock--locked .hh-endblock__meta { color: rgba(239,230,216,.4); }
.hh-endblock__grid { margin-top: 15px; }

/* ---------- CRÉDITOS (rodapé da galeria) ----------
   Conteúdo em gallery-config.js — quem cede/atua nos vídeos usados. */
.hh-credits { padding: 20px 22px 22px; border-radius: 12px;
  background: var(--hh-panel-soft); border: 1px solid rgba(240,200,150,.16); }
.hh-credits[hidden] { display: none; }
.hh-credits__title { margin: 0 0 14px; font-family: var(--hh-cond); font-size: 12px; font-weight: 600;
  letter-spacing: .22em; text-transform: uppercase; color: var(--hh-amber); }
.hh-credits__list { display: grid; grid-template-columns: auto 1fr; gap: 7px 18px; margin: 0; align-items: baseline; }
.hh-credits__list dt { font-family: var(--hh-cond); font-size: 11px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--hh-text-faint); }
.hh-credits__list dd { margin: 0; font-family: var(--hh-serif); font-size: 16px; color: var(--hh-text-hi); }
.hh-credits__note { margin: 16px 0 0; font-size: 12px; line-height: 1.6; color: var(--hh-text-mut); white-space: pre-line; }

/* ============================================================
   SAVES — slot preenche a altura toda
   <article class="hh-slot hh-slot--auto">
     <div class="hh-slot__thumb" style="--art:url(...)"><span class="hh-slot__tag">Autosave</span></div>
     <div class="hh-slot__body">
       <div><h3 class="hh-slot__title">Borrowed Hours</h3>
            <div class="hh-slot__meta">Jul 17 · 21:04 · 6h 12m</div></div>
       <div class="hh-slot__actions">
         <button class="hh-btn hh-btn--primary">Load</button>
         <button class="hh-btn">Save</button>
         <button class="hh-iconbtn" title="Export">⭱</button>
         <button class="hh-iconbtn hh-iconbtn--danger" title="Delete">✕</button>
       </div></div>
   </article>
   <article class="hh-slot hh-slot--empty"><button class="hh-slot__new">+ Save here</button></article>  */
.hh-slot { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 12px; overflow: hidden; background: var(--hh-panel-soft); border: 1px solid rgba(240,200,150,.18); }
.hh-slot--auto  { border: 2px solid var(--hh-amber); }
.hh-slot--empty { background: rgba(20,14,9,.35); border: 1px dashed var(--hh-line); }

.hh-slot__thumb { position: relative; flex: none; height: 104px; background: var(--art) center / cover; }
.hh-slot__thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(16,11,7,.15), rgba(16,11,7,.82)); }
.hh-slot__tag { position: absolute; top: 10px; left: 12px; z-index: 1; font-family: var(--hh-cond); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; color: rgba(240,199,141,.7); background: rgba(16,11,7,.55); padding: 3px 10px; border-radius: 999px; backdrop-filter: blur(4px); }
.hh-slot--auto .hh-slot__tag { color: var(--hh-amber); }

.hh-slot__body { flex: 1; display: flex; flex-direction: column; justify-content: space-between; padding: 13px 15px 14px; }
.hh-slot__title { margin: 0; font-family: var(--hh-serif); font-weight: 600; font-size: 20px; line-height: 1.05; color: var(--hh-text-hi); }
.hh-slot__meta  { margin-top: 5px; font-family: var(--hh-sans); font-size: 11px; color: var(--hh-text-faint); }
.hh-slot__actions { display: flex; align-items: center; gap: 7px; }
.hh-slot__new { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; height: 100%; cursor: pointer; background: none; border: 0; color: rgba(239,230,216,.4); font-family: var(--hh-cond); font-size: 13px; letter-spacing: .2em; text-transform: uppercase; }
.hh-slot__new:hover { color: var(--hh-amber); }
.hh-slot__new::before { content: "+"; font-size: 34px; font-weight: 300; line-height: 1; }

/* botões reutilizáveis */
.hh-btn { cursor: pointer; font-family: var(--hh-cond); font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase; padding: 8px 14px; border-radius: 7px; border: 1px solid var(--hh-line-strong); color: var(--hh-text-mut); background: none; }
.hh-btn:hover { color: var(--hh-amber); border-color: rgba(240,200,150,.6); }
.hh-btn--primary { flex: 1; text-align: center; padding: 8px 0; background: var(--hh-amber); color: #1a1109; border-color: transparent; }
.hh-iconbtn { width: 34px; height: 33px; display: flex; align-items: center; justify-content: center; border-radius: 7px; cursor: pointer; border: 1px solid rgba(240,200,150,.25); color: rgba(239,230,216,.65); background: none; font-size: 14px; }
.hh-iconbtn:hover { color: var(--hh-amber); border-color: rgba(240,200,150,.55); }
.hh-iconbtn--danger { border-color: var(--hh-danger-line); color: var(--hh-danger); }
.hh-iconbtn--danger:hover { color: var(--hh-danger); background: rgba(200,96,74,.16); }

/* importar arquivo (topo dos saves) */
.hh-import { display: flex; align-items: center; gap: 8px; cursor: pointer; font-family: var(--hh-cond); font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: rgba(239,230,216,.72); padding: 9px 16px; border-radius: 999px; border: 1px solid rgba(240,200,150,.28); background: none; }
.hh-import:hover { color: var(--hh-amber); border-color: rgba(240,200,150,.55); }

/* ---------- links padrão ---------- */
a { color: var(--hh-amber-2); text-decoration: none; }
a:hover { color: var(--hh-amber); text-decoration: underline; }
