/* Estilos restritos à entrada. O tema e as etapas do protocolo não são alterados. */
[hidden]{display:none!important}
#loginView .invite-panel{text-align:center;font:20px/1.6 "Cormorant Garamond",Georgia,serif}
#loginView .invite-panel p{margin:0 0 16px}
#entryTree{--ivory:#e8decb;--gold:#9d7949;--amber:#c09a61;--muted:#aa9784;--error:#c28c7f;width:100%;max-width:700px;margin:auto;padding:24px 16px;color:var(--ivory)}
#entryTree .evaluation{padding:0}
#entryTree .clue-control{text-align:center}
#entryTree button{font:500 11px/1.5 "IBM Plex Mono",monospace;letter-spacing:.08em;cursor:pointer}
#entryTree #consult-clue,#entryTree .close-clue{min-height:44px;padding:10px 20px;border:1px solid #9d794970;background:transparent;color:var(--ivory)}
#entryTree #clue-dialog{width:min(580px,calc(100% - 32px));max-height:calc(100vh - 48px);max-height:calc(100svh - 48px);overflow:auto;padding:30px 26px;background:#160e10;color:var(--ivory);border:1px solid var(--gold)}
#entryTree #clue-dialog:not([open]){display:none}
#entryTree #clue-dialog::backdrop{background:#080506d9}
#entryTree .passage{font:18px/1.8 "Cormorant Garamond",Georgia,serif}
#entryTree .passage p{margin:0 0 16px}
#entryTree #clue-dialog form{text-align:center;margin-top:24px}
#entryTree .audio-note,#entryTree .panel-note{text-align:center;font:10px/1.7 "IBM Plex Mono",monospace;color:var(--muted)}
#entryTree .audio-note{margin:10px 0 12px}
#entryTree .panel-note{margin:0 0 8px}
#entryTree .panel{border:1px solid #6e513335;padding:12px 8px 4px;background:radial-gradient(ellipse at 50% 38%,#30171955,transparent 65%)}
#entryTree #tree{display:block;width:min(100%,480px);margin:auto;overflow:visible}
#entryTree .path{stroke:#8a6840;stroke-width:1;opacity:.25;fill:none}
#entryTree .sphere{cursor:pointer;outline:none}
#entryTree .sphere .halo{fill:var(--amber);opacity:0;filter:url(#light);transition:opacity .3s}
#entryTree .sphere .core{fill:url(#sphere);stroke:#9d7949;stroke-width:1;transition:stroke .3s}
#entryTree .sphere .rim{fill:none;stroke:#795938;stroke-width:.6;opacity:.5}
#entryTree .sphere .hit{fill:transparent;stroke:none}
#entryTree .sphere.selected .core{fill:url(#litSphere);stroke:#c6a475}
#entryTree .sphere.selected .halo{opacity:.16}
#entryTree .sphere:hover .rim,#entryTree .sphere:focus-visible .rim{stroke:var(--ivory);stroke-width:1.4;opacity:.9}
#entryTree .sphere.pulse .halo{animation:entry-touch .6s ease-out}
#entryTree .sphere.awakened .halo{opacity:.58}
#entryTree .sphere.awakened .core{fill:url(#litSphere);stroke:var(--dl-ouro-claro)}
#entryTree .sphere.locked{pointer-events:none}
#entryTree .thread{fill:none;stroke:#b5935b;stroke-width:1.1;opacity:.35;stroke-linecap:round}
#entryTree .travel{fill:none;stroke:#e2c38a;stroke-width:1.8;stroke-linecap:round;filter:drop-shadow(0 0 3px #ae813e)}
#entryTree .respond .path{animation:entry-respond 1.5s ease-in-out}
#entryTree .sphere .breath{fill:var(--amber);opacity:0;filter:url(#light);pointer-events:none}
#entryTree .sphere.unexplored .breath{transform-box:fill-box;transform-origin:center;animation:entry-breath 3.2s ease-in-out infinite;animation-delay:var(--breath-delay,0s)}
#entryTree .seal-area{min-height:78px;text-align:center;padding-top:4px}
#entryTree #seal{border:1px solid var(--gold);background:#6e432418;color:var(--ivory);min-width:136px;min-height:48px;padding:12px 30px}
#entryTree #result{font:10px/1.6 "IBM Plex Mono",monospace;color:var(--error);min-height:20px;margin:6px 0 0}
#entryTree .below{text-align:center;margin:4px auto 0}
#entryTree .below button{border:0;background:none;color:var(--muted);font-size:10px;min-height:44px}
#entryTree .below p{font:12px/1.7 "Cormorant Garamond",Georgia,serif;color:var(--muted)}
#entryTree .below p:empty{display:none}
/* Tela pós árvore: título na mesma família dos cabeçalhos das etapas e botão sempre visível.
   O botão fica fixo no rodapé da tela (sticky): em telas baixas o texto rola por trás dele. */
#entryTree #recognized{min-height:calc(100vh - 60px);min-height:calc(100dvh - 60px);display:grid;align-content:center;text-align:center;padding:clamp(4px,3vh,32px) 0 0;padding:clamp(4px,3dvh,32px) 0 0;animation:entry-appear 1.3s ease}
#entryTree #recognized .eyebrow{margin:0 0 clamp(8px,1.6vh,16px);margin:0 0 clamp(8px,1.6dvh,16px)}
#entryTree #recognized h1{margin:0;font:500 clamp(30px,5.4vw,46px)/1.08 "Cormorant Garamond",Georgia,serif;letter-spacing:.09em;color:var(--ivory)}
#entryTree .rule{display:block;width:48px;height:1px;background:var(--gold);margin:clamp(14px,2.6vh,26px) auto;margin:clamp(14px,2.6dvh,26px) auto}
#entryTree .recognized-copy{max-width:540px;margin:0 auto;text-align:left;font:clamp(17px,2.3vh + 6px,19px)/1.6 "Cormorant Garamond",Georgia,serif;font:clamp(17px,2.3dvh + 6px,19px)/1.6 "Cormorant Garamond",Georgia,serif;color:var(--ivory)}
#entryTree .recognized-copy p{margin:0 0 clamp(8px,1.5vh,14px);margin:0 0 clamp(8px,1.5dvh,14px)}
#entryTree .recognized-copy strong{font-weight:600;color:#f1dfba}
#entryTree #recognized::after{content:"";position:sticky;bottom:0;z-index:1;height:84px;margin-top:-84px;background:linear-gradient(rgba(8,5,4,0),rgba(8,5,4,.97) 62%);pointer-events:none}
#entryTree #recognized-continue{position:sticky;bottom:max(14px,env(safe-area-inset-bottom));z-index:2;justify-self:center;min-height:44px;margin:clamp(10px,2vh,22px) auto 0;margin:clamp(10px,2dvh,22px) auto 0;padding:10px 28px;border:1px solid #9d794970;border-radius:3px;background:#0b0706;color:var(--amber);font:500 11px/1.5 "IBM Plex Mono",monospace;letter-spacing:.16em;transition:border-color .2s ease,color .2s ease}
#entryTree #recognized-continue:hover,#entryTree #recognized-continue:focus-visible{border-color:var(--amber);color:var(--ivory);outline:0}
#entryTree .fade-away,.invite-exit{animation:entry-vanish .28s ease forwards}
.invite-enter{animation:entry-appear .4s ease}
#entryTree #experience:focus{outline:none}
@keyframes entry-breath{0%,100%{opacity:.07;transform:scale(1)}50%{opacity:.32;transform:scale(1.04)}}
@keyframes entry-touch{0%{opacity:.55}100%{opacity:.12}}
@keyframes entry-respond{50%{opacity:.7;stroke:#c6a16b}}
@keyframes entry-appear{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes entry-vanish{to{opacity:0}}
@media(max-width:600px){
  #loginView #invitation{min-height:0;padding:24px 16px}
  #loginView #invitation .login-hero{padding-bottom:24px}
  #loginView .invite-panel{padding:20px 16px 12px}
  #loginView .invite-panel p{margin-bottom:12px}
  #entryTree{padding:12px 8px}
  #entryTree #tree{height:clamp(300px,calc(100vh - 290px),720px);height:clamp(300px,calc(100svh - 290px),720px);width:100%}
  #entryTree .sphere .hit{r:36px}
  #loginView .invite-panel{font-size:18px}
}
@media(prefers-reduced-motion:reduce){#entryTree *,#invitation{animation-duration:.001ms!important;transition-duration:.001ms!important}}

/* O CONVITE: apresentação isolada; IDs e eventos permanecem intactos. */
body:has(#loginView.active :is(#invitation, #experience):not([hidden])) {
  background:
    radial-gradient(ellipse at 48% 42%, #24171480, transparent 78%),
    radial-gradient(ellipse at 65% 72%, #20101460, transparent 85%),
    linear-gradient(150deg, #0a0707, #110b09 52%, #080606);
}
body:has(#loginView.active :is(#invitation, #experience):not([hidden]))::before {
  opacity: .07;
  background:
    repeating-linear-gradient(23deg, #d6bfa522 0 1px, transparent 1px 3px),
    repeating-linear-gradient(113deg, #c4a38b18 0 1px, transparent 1px 5px);
  mix-blend-mode: soft-light;
  pointer-events: none;
}
body:has(#loginView.active :is(#invitation, #experience):not([hidden]))::after {
  background: radial-gradient(ellipse at center, transparent 20%, #00000030 70%, #00000070);
  pointer-events: none;
}
#loginView.active:has(#invitation:not([hidden])) {
  min-height: calc(100vh - 10px);
  min-height: calc(100svh - 10px);
  padding: 28px 19px;
}
#loginView:has(#invitation:not([hidden])) #entryTree { display: none; }
#loginView #invitation {
  width: min(100%, 520px);
  min-height: 0;
  margin: auto;
  padding: 0;
  overflow: visible;
  text-align: center;
  background: transparent;
  border: 0;
  outline: none;
  border-radius: 0;
  box-shadow: none;
}
#loginView #invitation::before,
#loginView #invitation::after,
#loginView #invitation .invite-panel::before,
#loginView #invitation .invite-panel::after { display: none; }
#loginView #invitation .login-hero { padding: 0 0 30px; }
#loginView #invitation .shield-mark {
  width: 24px;
  height: 24px;
  margin: 0 auto 22px;
  color: #a68a58;
  background: none;
  border: 0;
  box-shadow: none;
  filter: none;
}
#loginView #invitation .eyebrow {
  margin: 0 0 18px;
  font-size: 10px;
  line-height: 1.6;
  letter-spacing: .25em;
  text-transform: uppercase;
  color: #a68a62;
}
#loginView #invitation h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 7vw, 72px);
  font-weight: 500;
  line-height: 1.05;
  letter-spacing: .055em;
  color: #eee7db;
  background: none;
  -webkit-text-fill-color: currentColor;
  -webkit-text-stroke: 0;
  text-shadow: none;
  filter: none;
}
#loginView #invitation .invite-panel {
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  outline: none;
  border-radius: 0;
  background: none;
  box-shadow: none;
  color: #c4bcb0;
  font: 20px/1.6 "Cormorant Garamond", Georgia, serif;
}
#loginView #invitation .invite-panel > p:not(.feedback) { margin: 0 0 18px; }
#loginView #invitation #start-invite {
  display: block;
  width: min(100%, 380px);
  min-height: 52px;
  margin: 32px auto 0;
  padding: 13px 20px;
  border: 1px solid #997047;
  border-radius: 4px;
  background: linear-gradient(180deg, #94683f, #88603b);
  color: #f4ecdf;
  font: 500 19px/1.25 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .14em;
  text-shadow: none;
  box-shadow: 0 6px 18px #56301626;
  transition: filter .18s ease;
}
#loginView #invitation #start-invite:hover { filter: brightness(1.06); transform: none; }
#loginView #invitation #start-invite:focus-visible { outline: 2px solid #c4ab80; outline-offset: 4px; }
@media (max-width: 600px), (max-height: 650px) {
  #loginView.active:has(#invitation:not([hidden])) { padding: 22px 19px; }
  #loginView #invitation .login-hero { padding-bottom: 24px; }
  #loginView #invitation .shield-mark { margin-bottom: 16px; }
  #loginView #invitation .eyebrow { margin-bottom: 14px; }
  #loginView #invitation .invite-panel { font-size: 18px; }
  #loginView #invitation .invite-panel > p:not(.feedback) { margin-bottom: 14px; }
  #loginView #invitation #start-invite { margin-top: 24px; }
}
/* Árvore: painel transparente; compensação da borda preserva a geometria. */
#loginView #entryTree #experience .panel {
  border: 0;
  outline: none;
  box-shadow: none;
  background: transparent;
  padding: 13px 9px 5px;
}
/* Retorno ao convite, ao lado do controle superior e fora da árvore. */
#entryTree #experience .evaluation { position: relative; }
#entryTree #back-to-invite {
  position: absolute;
  top: 0;
  left: 0;
  min-height: 44px;
  padding: 8px 4px;
  border: 0;
  background: transparent;
  color: var(--muted);
}
#entryTree #back-to-invite:hover { color: var(--ivory); text-decoration: underline; text-underline-offset: 4px; }
#entryTree #back-to-invite:focus-visible { outline: 1px solid var(--gold); outline-offset: 3px; }
/* Avaliação: aproveita a área disponível sem rolagem no celular. */
#loginView #entryTree:has(#experience:not([hidden])) {
  max-width: 800px;
  padding: 12px 8px;
}
#entryTree #experience .audio-note { margin: 8px 0 0; }
#entryTree #experience .volume-note {
  margin: 0 0 6px;
  text-align: center;
  color: var(--muted);
  font: 9px/1.5 "IBM Plex Mono", monospace;
}
#entryTree #experience .evaluation {
  height: calc(100vh - 34px);
  height: calc(100svh - 34px);
  display: flex;
  flex-direction: column;
}
#entryTree #experience .evaluation > :not(.panel) { flex-shrink: 0; }
#loginView #entryTree #experience .panel {
  padding: 0;
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
#entryTree #experience .panel-note,
#entryTree #experience .seal-area { flex-shrink: 0; }
#entryTree #experience #tree {
  width: 100%;
  height: 0;
  flex: 1;
  min-height: 0;
  max-height: 900px;
}
#entryTree #experience .below { min-height: 20px; margin: 0; }
#entryTree #experience #audio-status { margin: 0; }
/* Árvore refinada: hierarquia, esferas maiores, fios legíveis e progresso discreto. */
#entryTree #experience .clue-control { order: 0; text-align: center; min-height: 44px; }
#entryTree #experience .panel { order: 1; }
#entryTree #experience .audio-note { order: 2; margin: 6px 0 0; }
#entryTree #experience .volume-note { order: 3; margin: 0 0 4px; }
#entryTree #experience .below { order: 4; }
/* CONSULTAR ENIGMA precisa ser notado: contorno visível e brilho suave até o primeiro clique. */
#entryTree #consult-clue {
  min-height: 44px;
  padding: 9px 22px;
  border: 1px solid #b58f57;
  border-radius: 3px;
  background: #6e432422;
  color: var(--ivory);
  font: 500 11px/1.5 "IBM Plex Mono", monospace;
  letter-spacing: .16em;
  animation: entry-clue-glow 2.8s ease-in-out infinite;
  transition: border-color .2s ease, background .2s ease;
}
#entryTree #consult-clue:hover { border-color: var(--amber); background: #6e43243a; }
#entryTree #consult-clue:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
#entryTree #consult-clue.seen { animation: none; }
@keyframes entry-clue-glow {
  0%, 100% { box-shadow: 0 0 0 0 #c09a6100; }
  50% { box-shadow: 0 0 14px 1px #c09a6155; }
}
@media (prefers-reduced-motion: reduce) {
  #entryTree #consult-clue { animation: none; box-shadow: 0 0 10px 0 #c09a6138; }
}
#entryTree #experience .panel-note {
  margin: 2px 0 0;
  font: italic 400 clamp(17px, 2.2vh + 5px, 20px)/1.4 "Cormorant Garamond", Georgia, serif;
  font: italic 400 clamp(17px, 2.2dvh + 5px, 20px)/1.4 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .02em;
  color: var(--ivory);
}
#entryTree .signal-dots { display: flex; justify-content: center; gap: 10px; margin: 8px 0 6px; flex-shrink: 0; }
#entryTree .signal-dots i {
  width: 7px; height: 7px; border-radius: 50%;
  border: 1px solid var(--gold);
  transition: background .3s ease, box-shadow .3s ease;
}
#entryTree .signal-dots i.on { background: var(--amber); border-color: var(--amber); box-shadow: 0 0 8px #c09a6188; }
#entryTree .path { stroke: #a37d4c; opacity: .34; }
#entryTree .sphere .core { r: 26px; }
#entryTree .sphere .halo { r: 36px; }
#entryTree .sphere .breath { r: 32px; }
#entryTree .sphere .rim { r: 31px; }
#entryTree .sphere .hit { r: 44px; }
#entryTree .sphere:not(.unexplored) .core { stroke: #bd9b62; }
#entryTree #experience .seal-area { min-height: 64px; }

/* Enigma: barra no rodapé que abre o texto no próprio lugar. A árvore continua tocável
   (em celular ela encolhe; em tela larga o texto abre numa coluna ao lado). */
#entryTree #experience .evaluation { padding-top: 40px; }
#entryTree #experience .panel { order: 1; }
#entryTree #experience #clue-dialog { order: 2; }
#entryTree #experience .clue-control { order: 3; min-height: 0; margin: 6px 0 0; }
#entryTree #experience .audio-note { order: 4; }
#entryTree #experience .volume-note { order: 5; }
#entryTree #experience .below { order: 6; }
#entryTree #consult-clue {
  display: flex; width: 100%; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 16px;
}
#entryTree #consult-clue::after {
  content: ""; width: 7px; height: 7px; flex: none;
  border-top: 1.5px solid currentColor; border-left: 1.5px solid currentColor;
  transform: rotate(45deg) translate(2px, 2px);
  transition: transform .25s ease;
}
#entryTree #consult-clue[aria-expanded="true"]::after { transform: rotate(225deg) translate(2px, 2px); }
#entryTree #experience #clue-dialog[open] {
  display: block; position: static; width: auto; margin: 6px 0 0; padding: 14px 18px;
  max-height: clamp(150px, 30vh, 260px);
  max-height: clamp(150px, 30dvh, 260px); overflow: auto;
  border: 1px solid #6e5133; border-radius: 3px; background: #150d0f; color: var(--ivory);
}
/* Celular e telas baixas: a árvore não encolhe; o enigma sobrepõe a parte de baixo, ancorado
   logo acima da barra (a altura da barra é medida pelo JS em --clue-bottom). */
#entryTree #experience .evaluation { position: relative; }
#entryTree #experience #clue-dialog[open] {
  position: absolute; left: 0; right: 0; bottom: var(--clue-bottom, 92px); margin: 0 auto; z-index: 3;
  width: min(100%, 600px); max-height: 52vh; max-height: 52dvh; background: #150d0ff5; box-shadow: 0 -10px 24px #0b0706cc;
}
@media (max-width: 420px) {
  #entryTree #experience #clue-dialog .passage { font-size: 16px; line-height: 1.55; }
  #entryTree #experience #clue-dialog[open] { padding: 12px 16px; }
}
#entryTree #experience #clue-dialog .passage { font: 17px/1.6 "Cormorant Garamond", Georgia, serif; }
#entryTree #experience #clue-dialog .passage p { margin: 0 0 10px; }
#entryTree #experience #clue-dialog .passage p:last-child { margin-bottom: 0; }
#entryTree #experience #clue-dialog form { display: none; }
}

/* Faixa do topo: VOLTAR à esquerda e o aviso de áudio à direita; o rodapé fica livre para a árvore. */
#entryTree #experience .evaluation { padding-top: 46px; }
#entryTree #experience .audio-note,
#entryTree #experience .volume-note { position: absolute; right: 4px; margin: 0; text-align: right; }
#entryTree #experience .audio-note { top: 8px; }
#entryTree #experience .volume-note { top: 24px; }
#entryTree #experience .seal-area { min-height: 54px; }
/* Telas amplas: leitura um pouco maior na folha do enigma. */
@media (min-width: 700px) and (min-height: 760px) {
  #entryTree #experience #clue-dialog .passage { font-size: 18px; line-height: 1.65; }
}
/* Menos vão entre a árvore e a barra; enigma inteiro cabe na folha em telas baixas. */
#entryTree #experience .below { min-height: 0; }
#entryTree #experience .seal-area { min-height: 50px; padding-top: 2px; }
@media (max-height: 700px) {
  #entryTree #experience #clue-dialog .passage { font-size: 15.5px; line-height: 1.5; }
  #entryTree #experience #clue-dialog .passage p { margin-bottom: 8px; }
}

/* Composição final: instrução no topo; VOLTAR e aviso de áudio numa linha acima da barra do enigma.
   Grid para colocar cada peça sem depender da ordem do HTML. */
#entryTree #experience .evaluation {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: minmax(0, 1fr) auto auto auto auto auto;
  padding-top: 4px;
}
#entryTree #experience .panel { grid-column: 1 / -1; grid-row: 1; min-height: 0; }
#entryTree #experience #clue-dialog { grid-column: 1 / -1; grid-row: 2; }
#entryTree #experience #back-to-invite {
  position: static; grid-column: 1; grid-row: 3 / span 2; align-self: center; justify-self: start;
  margin: 2px 0 0 2px; padding: 8px 6px;
}
#entryTree #experience .audio-note,
#entryTree #experience .volume-note { position: static; grid-column: 2; justify-self: end; margin: 0; text-align: right; }
#entryTree #experience .audio-note { grid-row: 3; align-self: end; padding-top: 6px; }
#entryTree #experience .volume-note { grid-row: 4; align-self: start; }
#entryTree #experience .clue-control { grid-column: 1 / -1; grid-row: 5; margin: 8px 0 0; }
#entryTree #experience .below { grid-column: 1 / -1; grid-row: 6; }
/* Painel absoluto (celular e PC largo) não pode usar a área do grid como referência. */
#entryTree #experience #clue-dialog[open] { grid-row: auto; grid-column: auto; }
/* Linha do VOLTAR compacta: a área de toque continua grande (pseudo-elemento), sem gastar altura. */
#entryTree #experience #back-to-invite { position: relative; min-height: 0; padding: 4px 6px; line-height: 1.2; }
#entryTree #experience #back-to-invite::before { content: ""; position: absolute; top: -12px; right: -10px; bottom: -12px; left: -10px; }
#entryTree #experience .audio-note { padding-top: 2px; }
#entryTree #experience .clue-control { margin: 10px 0 0; }

/* SELAR sob a árvore: o espaço é reservado desde o início, então a árvore não muda de tamanho
   quando o botão surge. O botão só aparece (fade); a mensagem de erro fica sobreposta embaixo. */
#entryTree #experience .seal-area { position: relative; height: 58px; min-height: 0; padding: 0; }
#entryTree #experience #seal {
  display: block; margin: 0 auto; min-height: 44px; padding: 0 30px;
  transition: opacity .35s ease, transform .35s ease, border-color .2s ease;
}
#entryTree #experience #seal[inert] { opacity: 0; transform: translateY(4px); pointer-events: none; }
#entryTree #experience #result { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; min-height: 0; line-height: 14px; text-align: center; }
/* Fios das esferas escolhidas mais presentes; rejeição da sequência acende os fios em vermelho. */
#entryTree .thread { stroke: var(--dl-ouro); stroke-width: 1.5; opacity: .6; filter: drop-shadow(0 0 3px #ae813e88); }
#entryTree .reject .thread { animation: entry-reject .8s ease-out; }
@keyframes entry-reject {
  0% { stroke: var(--error); opacity: .95; }
  100% { stroke: var(--dl-ouro); opacity: .6; }
}
/* Brilho suave atrás da árvore: dá foco e profundidade sem competir com as esferas. */
#loginView #entryTree #experience .panel {
  background: radial-gradient(ellipse 62% 46% at 50% 48%, #4d2b1d4d, #2a15163a 45%, transparent 75%);
}
@media (prefers-reduced-motion: reduce) {
  #entryTree #experience #seal { transition: none; }
  #entryTree .reject .thread { animation: none; }
}

/* SELAR sobre a árvore: centralizado no vão entre as duas esferas de baixo (posição calculada pelo JS
   a partir do SVG). Não ocupa espaço, então a árvore usa toda a altura e nada se mexe ao surgir. */
#entryTree #experience .panel { position: relative; }
#entryTree #experience .seal-area { display: contents; }
#entryTree #experience #seal {
  position: absolute; left: 50%; top: 86%; translate: -50% -50%; z-index: 2;
  min-height: 40px; padding: 0 28px; margin: 0; background: #120a0cf2; box-shadow: 0 0 14px 4px #120a0c;
}
#entryTree #experience #seal[inert] { pointer-events: none; }
#entryTree #experience #result { bottom: 0; z-index: 2; text-shadow: 0 0 6px #0b0706, 0 0 2px #0b0706; }
@media (max-height: 700px) {
  #entryTree #experience #seal { min-height: 34px; padding: 0 22px; font-size: 11px; }
}

/* Aviso de áudio: nunca empurra a árvore. Fica sobreposto logo acima da linha do VOLTAR (altura zero no fluxo). */
#entryTree #experience .below {
  grid-column: 1 / -1; grid-row: 3; align-self: start; position: relative;
  height: 0; min-height: 0; margin: 0; overflow: visible; pointer-events: none; z-index: 2;
}
#entryTree #experience .below p { position: absolute; left: 0; right: 0; bottom: 16px; margin: 0; text-shadow: 0 0 6px #0b0706, 0 0 2px #0b0706; }
#entryTree #experience .below button { pointer-events: auto; }
/* Convite: frase única em duas linhas — afirmação e desafio. */
#loginView #invitation .invite-panel > p.invite-chosen {
  margin: 0 0 10px;
  color: #ece3d4;
  font: 500 30px/1.25 "Cormorant Garamond", Georgia, serif;
  letter-spacing: .01em;
}
#loginView #invitation .invite-panel > p.invite-challenge {
  margin: 0;
  color: #a39684;
  font: italic 19px/1.5 "Cormorant Garamond", Georgia, serif;
}
@media (max-width: 600px), (max-height: 650px) {
  #loginView #invitation .invite-panel > p.invite-chosen { font-size: 26px; margin-bottom: 8px; }
  #loginView #invitation .invite-panel > p.invite-challenge { font-size: 17px; }
}
/* Tela pós-árvore: texto curto centralizado, alinhado ao título e ao botão. */
#entryTree .recognized-copy{max-width:480px;text-align:center}
#entryTree .recognized-copy p{text-wrap:balance}
#entryTree .recognized-copy p:first-child{font-size:1.12em;color:#f1e6d3}
/* O degradê do rodapé só faz sentido quando a tela rola; com o texto curto
   ele aparecia como um retângulo escuro atrás do botão. */
#entryTree #recognized::after{display:none}
@media (max-height:600px){
  #entryTree #recognized::after{display:block;grid-column:1/-1;justify-self:stretch}
}
