/* Skin Máquina do Tempo: latão, cobre, ciano e violeta. Vem depois de base, street e game, e só troca o que muda. */
:root {
  --ink: #050b10;
  --ink-2: #0a1620;
  --plum: #0f2430;
  --velvet: #1d3a48;
  --gold: #c9933a;
  --gold-hi: #f0c878;
  --copper: #c46a32;
  --pink: #a985ff;
  --cyan: #5ff0ff;
  --violet: #9a6bff;
  --amber: #e0903a;
  --line: rgba(233, 184, 106, .28);
  --glass: rgba(8, 18, 26, .72);
  --tinta: #3a2414;
  --tinta-2: #6a4a2a;
}
body { background: var(--ink); }
.brand { color: var(--gold-hi); text-shadow: 0 0 18px rgba(95, 240, 255, .25), 0 2px 0 #4a2a10; }

/* ---------- carregamento ---------- */
.lo-stand { display: none; }
/* o carregamento é o portal: aro de latão em volta, sem o brilho de vidro de bola de cristal */
.lo-ball { box-shadow: 0 0 0 10px #a8772e, 0 0 0 13px #e0b46a, 0 0 0 20px #4a2e14, 0 0 50px rgba(95, 240, 255, .35) !important; }
.lo-glass { opacity: .18; }
.loader-orb { --halo: rgba(95, 240, 255, .35); }
.lo-halo { background: radial-gradient(closest-side, rgba(95, 240, 255, .3), rgba(154, 107, 255, .12) 60%, transparent) !important; }

/* ---------- entrada: a Niterói antiga do fim da viagem, com um zoom lento ---------- */
#gate::before { inset: -4%; background: url("../assets/maq/nictheroy.webp") center / cover; filter: brightness(.78) saturate(1.05); animation: nictheroy 38s ease-in-out infinite alternate; }
@media (max-width: 900px) { #gate::before { background-image: url("../assets/maq/nictheroy-1280.webp"); } }
#gate::after { background: radial-gradient(70% 72% at 50% 46%, rgba(4, 16, 24, .55), rgba(4, 12, 18, .3) 58%, rgba(3, 8, 12, .82)); }
@keyframes nictheroy { from { transform: scale(1) translate(0, 0); } to { transform: scale(1.09) translate(-1.5%, 1%); } }
.gate-sign { background: radial-gradient(120% 90% at 50% 50%, rgba(10, 30, 40, .88), rgba(4, 10, 16, .96) 70%); }
.gs-tube { --tc: var(--gold); border-color: #ffefd2; }
.gs-tube.b { --tc: var(--cyan); }
.gs-row.top { --lc: var(--cyan); font-size: clamp(24px, 4.8vw, 38px); letter-spacing: .18em; margin-right: -.18em; }
.gs-row.main { --lc: var(--violet); }
.gs-row .l.sp { width: .5em; }
.gs-relogio { width: 84px; }
.gs-ponteiros { transform-origin: 0 0; animation: ponteiro 12s linear infinite reverse; }
@keyframes ponteiro { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { #gate::before, .gs-ponteiros { animation: none; } }

/* ---------- a estação ---------- */
.est-vortex { border-radius: 50%; overflow: hidden; mix-blend-mode: screen; pointer-events: none; opacity: .75; }
.est-vortex i { position: absolute; inset: -12%; border-radius: 50%; }
.est-vortex .v1 { background: conic-gradient(from 0deg, transparent 0 12%, rgba(95, 240, 255, .55) 20%, transparent 32% 50%, rgba(169, 133, 255, .5) 62%, transparent 74% 100%); animation: gira 7s linear infinite; }
.est-vortex .v2 { background: conic-gradient(from 90deg, transparent 0 20%, rgba(255, 255, 255, .35) 26%, transparent 34% 70%, rgba(95, 240, 255, .4) 78%, transparent 86%); animation: gira 11s linear infinite reverse; filter: blur(3px); }
.est-vortex .v3 { inset: 30%; background: radial-gradient(closest-side, rgba(240, 255, 255, .9), rgba(95, 240, 255, .3) 60%, transparent); animation: pulsa 2.8s ease-in-out infinite; }
.est-halo { border-radius: 50%; pointer-events: none; mix-blend-mode: screen; background: radial-gradient(closest-side, rgba(95, 240, 255, .32), rgba(154, 107, 255, .14) 55%, transparent); opacity: .55; transition: opacity .5s, transform .5s; animation: pulsa 4s ease-in-out infinite; }
#street.portal-quente .est-halo { opacity: 1; transform: scale(1.08); }
#street.portal-quente .est-vortex { opacity: 1; }
#street.portal-abre .est-vortex .v1 { animation-duration: 1.2s; }
#street.portal-abre .est-halo { opacity: 1; transform: scale(1.6); }
.est-portal { border-radius: 50%; cursor: pointer; }
.est-portal:focus-visible { outline: 3px solid var(--cyan); outline-offset: 6px; }
.est-relogio { pointer-events: none; }
.est-relogio i { position: absolute; left: 50%; bottom: 50%; width: 3.5%; margin-left: -1.75%; border-radius: 4px; background: #2a1608; transform-origin: 50% 100%; box-shadow: 0 0 2px rgba(0, 0, 0, .5); }
.est-relogio .h { height: 26%; transform: rotate(var(--h, 0deg)); }
.est-relogio .m { height: 38%; width: 2.4%; margin-left: -1.2%; transform: rotate(var(--m, 0deg)); }
.est-relogio.latao i { background: #e9c27a; box-shadow: 0 0 3px rgba(0, 0, 0, .6); }
.est-relogio b { position: absolute; left: 50%; top: 50%; width: 7%; height: 7%; margin: -3.5% 0 0 -3.5%; border-radius: 50%; background: var(--gold); }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes pulsa { 0%, 100% { opacity: .55; } 50% { opacity: .95; } }
@media (prefers-reduced-motion: reduce) { .est-vortex i, .est-halo { animation: none; } }
.street-shade { background: linear-gradient(90deg, rgba(3, 8, 12, .72), rgba(3, 8, 12, .2) 34%, transparent 60%), linear-gradient(0deg, rgba(3, 8, 12, .5), transparent 30%); }
.menu-item .mi-num { color: var(--cyan); }
.menu-item.is-main .mi-txt { color: var(--gold-hi); }
.door-hint .hint-dot { background: var(--cyan); box-shadow: 0 0 12px var(--cyan); }

/* ---------- passagem ---------- */
#passage { background: radial-gradient(60% 60% at 50% 50%, #0d2a38, #03080c); }
.pass-relogio { position: relative; width: 120px; height: 120px; margin: 0 auto 26px; border-radius: 50%; border: 5px solid var(--gold); box-shadow: 0 0 30px rgba(95, 240, 255, .35), inset 0 0 18px rgba(0, 0, 0, .6); background: #f0e2c2; }
.pass-relogio i { position: absolute; left: 50%; bottom: 50%; width: 5px; margin-left: -2.5px; border-radius: 3px; background: #2a1608; transform-origin: 50% 100%; }
.pass-relogio i:first-child { height: 32px; animation: gira 6s linear infinite reverse; }
.pass-relogio i:last-child { height: 46px; width: 3px; margin-left: -1.5px; animation: gira 1s linear infinite reverse; }
#passage { display: grid; place-content: center; text-align: center; }

/* ---------- a viagem em vídeo ---------- */
.viagem { position: fixed; inset: 0; z-index: 1500; background: #000; opacity: 0; transition: opacity .6s; }
.viagem.on { opacity: 1; }
.viagem.sai { opacity: 0; }
.vg-v { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .7s; }
.vg-v.on { opacity: 1; }
.vg-legenda { position: absolute; left: 50%; bottom: calc(9vh + var(--safe-b)); transform: translate(-50%, 8px); max-width: min(760px, calc(100vw - 32px)); padding: 12px 22px; border-radius: 12px; background: rgba(3, 10, 14, .62); backdrop-filter: blur(6px);
  font-family: var(--f-text); font-size: clamp(18px, 2.2vw, 26px); line-height: 1.3; text-align: center; text-wrap: balance; color: #fff6e4; opacity: 0; transition: opacity .5s, transform .5s; }
.vg-legenda.on { opacity: 1; transform: translate(-50%, 0); }
.vg-pular { position: absolute; right: max(16px, env(safe-area-inset-right)); top: max(16px, env(safe-area-inset-top)); }

/* ---------- o painel ---------- */
.hud { --ui: rgba(6, 16, 22, .78); }
.g-track li.on i { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 12px var(--cyan); }
.g-track li.done i { background: var(--gold); border-color: var(--gold); }
.g-track li.on { color: var(--gold-hi); }

/* no celular o pergaminho volta a ser uma faixa de vidro escuro no topo; no computador ele vai para a tela da esquerda */
.g-stats.tela { background: var(--ui); border: 1px solid var(--line); border-radius: 14px; backdrop-filter: blur(10px); box-shadow: 0 14px 30px rgba(0, 0, 0, .45); }
.g-stats.tela .g-name { font-family: var(--f-caps); font-weight: 700; font-size: 17px; white-space: nowrap; color: var(--gold-hi); }
.g-stats.tela .g-sheen, .g-stats.tela .g-flame { display: none; }

/* a fala do guia mora na tela de papel da direita, escrita a tinta */
.g-bubble::before { content: 'Guia do tempo'; color: var(--tinta-2); }
.g-diary { display: none !important; }
@media not (((orientation: portrait) and (max-width: 900px)) or ((orientation: landscape) and (max-height: 520px))) {
  .g-bubble { position: absolute; display: flex; flex-direction: column; justify-content: center; padding: 14px 18px; border: 0; border-radius: 6px; background: none; box-shadow: none; backdrop-filter: none; overflow: hidden;
    transform: none; transition: opacity .35s; }
  .g-bubble.on { transform: none; }
  .g-bubble .g-say { color: var(--tinta); text-shadow: 0 0 1px rgba(255, 246, 228, .6); line-height: 1.3; text-wrap: pretty; }
  .g-bubble .g-say .cur { background: var(--tinta); }
  .g-bubble::after { content: ''; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(120% 90% at 50% 50%, transparent 60%, rgba(95, 240, 255, .14)); }

  /* o pergaminho na tela de papel da esquerda: duas colunas, tinta escura */
  #hud .g-stats { position: absolute; transform: none; padding: 10px 16px; border: 0; border-radius: 6px; background: none; box-shadow: none; backdrop-filter: none; overflow: hidden;
    display: grid; grid-template-columns: 1.3fr 1fr; align-content: center; gap: calc(7px * var(--k, 1)) 16px; font-size: calc(15px * var(--k, 1)); color: var(--tinta); }
  #hud .g-stats.on { animation: telaLiga .8s ease both; }
  #hud .g-stats .g-sheen, #hud .g-stats .g-flame, #hud .g-stats .amulet, #hud .g-stats .candle { display: none; }
  #hud .g-stats .g-who { grid-column: 1; display: grid; gap: 2px; align-content: start; }
  #hud .g-stats .g-when { grid-column: 2; display: grid; gap: 1px; text-align: right; align-content: start; }
  #hud .g-stats .g-rotulo { font-family: var(--f-caps); font-size: .62em; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-2); }
  #hud .g-stats .g-name { font-family: var(--f-caps); font-weight: 700; font-size: calc(1.3em * 8 / max(8, var(--nl, 8))); line-height: 1.05; white-space: nowrap; color: var(--tinta); }
  #hud .g-stats .g-age { display: inline-block; width: fit-content; padding: 1px 8px; border-radius: 99px; font-family: var(--f-caps); font-size: .72em; font-style: normal; color: #fff3d6; background: #7a3a14; }
  #hud .g-stats .g-age:empty { display: none; }
  #hud .g-stats .g-year { font-family: var(--f-text); font-weight: 700; font-size: 1.7em; line-height: .95; color: var(--tinta); font-variant-numeric: lining-nums tabular-nums; }
  #hud .g-stats .g-where { font-size: .85em; font-style: italic; line-height: 1.1; color: var(--tinta); text-wrap: balance; }
  #hud .g-stats .g-era { font-family: var(--f-caps); font-size: .6em; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-2); }
  #hud .g-stats .g-candle { display: block; grid-column: 1; }
  #hud .g-stats .stat { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
  #hud .g-stats .stat-l { font-family: var(--f-caps); font-size: .62em; letter-spacing: .12em; text-transform: uppercase; color: var(--tinta-2); }
  #hud .g-stats .stat-v { font-family: var(--f-caps); font-size: .78em; font-weight: 700; color: var(--tinta); }
  #hud .g-stats .bar { grid-column: 1 / -1; height: 6px; border-radius: 99px; background: rgba(58, 36, 20, .2); overflow: hidden; }
  #hud .g-stats .bar b { display: block; height: 100%; width: calc(var(--v, .5) * 100%); border-radius: 99px; background: var(--c); transition: width 1.1s cubic-bezier(.3, .8, .3, 1); }
  #hud .g-stats .stat[data-k="alegria"] { grid-column: 2; }
  #hud .g-stats .stat[data-k="fortuna"] { grid-column: 1; }
  #hud .g-stats .stat[data-k="amor"] { grid-column: 2; }
  #hud .g-stats .luck { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
  #hud .g-stats .luck .m { width: .8em; height: .8em; border-radius: 50%; border: 1.5px solid var(--tinta-2); }
  #hud .g-stats .luck .m.on { background: var(--copper); border-color: var(--copper); box-shadow: 0 0 6px var(--copper); }

  /* a bancada: sempre ali embaixo, como a parte da frente do painel */
  .g-mesa { position: absolute; left: 50%; bottom: 0; width: min(100vw, 30vh * 3.79); aspect-ratio: 1376 / 363; transform: translateX(-50%); pointer-events: none;
    background: url("../assets/maq/rodape.webp") center bottom / 100% 100% no-repeat; filter: drop-shadow(0 -10px 24px rgba(0, 0, 0, .55)); }
  .g-mesa-slots { position: absolute; inset: 0; pointer-events: none; }
  .g-mesa-slots .choices { position: absolute; inset: 0; display: block; }
  .g-mesa-slots .choice { position: absolute; top: 20.6%; height: 23.4%; min-height: 0; padding: 4px 10px; border: 0; border-image: none; border-radius: 4px; pointer-events: auto;
    display: grid; place-content: center; text-align: center; text-wrap: balance; font-family: var(--f-text); font-weight: 600; font-size: clamp(13px, 1.15vw, 18px); line-height: 1.15; color: #f6e6c4;
    background: radial-gradient(120% 120% at 50% 40%, rgba(95, 240, 255, .06), rgba(0, 0, 0, .2)); text-shadow: 0 1px 0 rgba(0, 0, 0, .7), 0 0 8px rgba(95, 240, 255, .25);
    transition: box-shadow .25s, color .25s, background .25s, transform .2s; transform: none; filter: none; }
  .g-mesa-slots .choice.in { animation: placaAcende .5s ease both; animation-delay: var(--d, 0s); }
  .g-mesa-slots .choice:hover, .g-mesa-slots .choice:focus-visible { transform: none; filter: none; color: #fff; box-shadow: inset 0 0 0 2px rgba(95, 240, 255, .8), inset 0 0 22px rgba(95, 240, 255, .35), 0 0 18px rgba(95, 240, 255, .35);
    background: radial-gradient(120% 120% at 50% 40%, rgba(95, 240, 255, .18), rgba(0, 0, 0, .15)); }
  .g-mesa-slots .choice.picked { box-shadow: inset 0 0 0 2px rgba(169, 133, 255, .95), inset 0 0 26px rgba(169, 133, 255, .45), 0 0 24px rgba(169, 133, 255, .5); color: #fff; }
  .g-mesa-slots .choice.gone { opacity: .25; }
  .g-mesa-slots .choice-dado { display: block; margin-top: 4px; font-family: var(--f-caps); font-size: .72em; letter-spacing: .1em; color: var(--cyan); }
  .g-mesa-slots .choice:nth-child(1) { left: 18%; width: 15.4%; }
  .g-mesa-slots .mesa-2 .choice:nth-child(2), .g-mesa-slots .mesa-3 .choice:nth-child(3) { left: 67.2%; width: 15.6%; }
  .g-mesa-slots .mesa-3 .choice:nth-child(2) { left: 42.7%; width: 14.6%; }
  .g-mesa-slots .mesa-1 .choice:nth-child(1) { left: 42.7%; width: 14.6%; }
  /* o resto do painel de baixo fica acima da bancada */
  .g-panel { z-index: 3; bottom: calc(min(100vw, 30vh * 3.79) / 3.79 * .82 + var(--safe-b)); }
  .g-mesa-slots > .g-next { position: absolute; left: 42.7%; width: 14.6%; top: 20.6%; height: 23.4%; min-height: 0; padding: 4px 8px; border: 0; border-radius: 4px; pointer-events: auto;
    font-family: var(--f-caps); font-size: clamp(12px, 1vw, 16px); letter-spacing: .08em; line-height: 1.15; color: #fff6de; text-wrap: balance;
    background: radial-gradient(120% 120% at 50% 40%, rgba(95, 240, 255, .22), rgba(0, 0, 0, .2)); box-shadow: inset 0 0 0 2px rgba(95, 240, 255, .7), inset 0 0 20px rgba(95, 240, 255, .3), 0 0 16px rgba(95, 240, 255, .35);
    animation: placaAcende .5s ease both, seguePulsa 2.4s ease-in-out .6s infinite; }
  .g-mesa-slots > .g-next:hover, .g-mesa-slots > .g-next:focus-visible { color: #fff; box-shadow: inset 0 0 0 2px rgba(169, 133, 255, .95), inset 0 0 26px rgba(169, 133, 255, .4), 0 0 22px rgba(169, 133, 255, .5); }
  .hud.na-mesa .g-panel { pointer-events: none; }
  .g-summary.on ~ .g-mesa, .g-summary.on + .g-mesa { opacity: 0; }
}
@keyframes telaLiga { from { opacity: 0; filter: blur(3px) brightness(1.6); } to { opacity: 1; filter: none; } }
@keyframes seguePulsa { 0%, 100% { filter: brightness(1); } 50% { filter: brightness(1.25); } }
@keyframes placaAcende { from { opacity: 0; box-shadow: inset 0 0 0 2px rgba(95, 240, 255, 0); } 50% { box-shadow: inset 0 0 0 2px rgba(95, 240, 255, .7), 0 0 22px rgba(95, 240, 255, .5); } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .g-mesa-slots .choice.in { animation: none; opacity: 1; } }

/* no celular as escolhas ficam como placas de latão, já que a bancada não cabe */
.choice { border-image: none; border: 2px solid var(--gold); border-radius: 10px; background: linear-gradient(180deg, #2a2016, #16100a); box-shadow: inset 0 0 0 1px rgba(255, 230, 180, .15), 0 8px 18px rgba(0, 0, 0, .45); padding: 12px 16px; }
.choice:hover, .choice:focus-visible { box-shadow: inset 0 0 0 1px rgba(95, 240, 255, .6), 0 0 16px rgba(95, 240, 255, .35); }

/* o Ybytu: na primeira conversa ele fica grande à esquerda do cartão */
.pul-ybytu { position: absolute; left: 6vw; bottom: 0; height: min(86vh, 760px); width: auto; z-index: 0; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .6)); animation: pulBalanca 2.6s ease-in-out infinite; transform-origin: 50% 100%; }
.modal.pul-cena { background: radial-gradient(70% 80% at 25% 60%, #0f3040, #03080c); }
.pul-cena .modal-card { position: relative; z-index: 1; }
@media (max-width: 760px) { .pul-ybytu { height: 40vh; left: 50%; transform: translateX(-50%); opacity: .35; } }
.pul-toasty img { height: 100%; width: auto; }

/* ---------- o resumo da viagem ---------- */
.sum-linha { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; }
.sum-linha li { display: grid; grid-template-columns: 54px 1fr; gap: 10px; align-items: baseline; font-size: 16px; line-height: 1.3; }
.sum-linha b { font-family: var(--f-caps); font-weight: 700; color: #7a3a14; font-variant-numeric: tabular-nums; }
.sum-linha span { color: var(--tinta); }
.sum-fontes { font-size: 13px; font-style: italic; color: var(--tinta-2); margin-bottom: 14px; text-wrap: pretty; }

/* ---------- o relógio da passagem em 3D: as peças de latão da máquina (assets/abertura) ----------
   o aro gravado por cima, o mostrador por dentro, os ponteiros trabalhados girando para trás e duas engrenagens atrás */
#passage .pass-relogio { --r: clamp(150px, 22vmin, 210px); width: var(--r); height: var(--r); margin: 0 auto 30px; border: 0; border-radius: 50%; background: none;
  box-shadow: none; filter: drop-shadow(0 14px 18px rgba(0, 0, 0, .55)) drop-shadow(0 0 26px rgba(95, 240, 255, .22)); }
#passage .pass-relogio > * { position: absolute; pointer-events: none; user-select: none; }
#passage .pr-aro { inset: 0; width: 100%; height: 100%; z-index: 5; }
#passage .pr-face { left: 19%; top: 19%; width: 62%; height: 62%; z-index: 1; filter: brightness(.96) sepia(.15); }
#passage .pr-marcas { left: 19%; top: 19%; width: 62%; height: 62%; z-index: 2; fill: none; stroke: #4a2a10; stroke-width: 2.2; stroke-linecap: round; opacity: .8; }
#passage .pr-mao { left: 50%; top: 50%; z-index: 3; transform-origin: 50% 88%; translate: -50% -88%; filter: drop-shadow(1px 2px 1.5px rgba(30, 14, 4, .5)); }
#passage .pr-hora { height: 21%; animation: gira 9s linear infinite reverse; }
#passage .pr-min { height: 30%; animation: gira 1.6s linear infinite reverse; }
#passage .pr-eixo { left: 50%; top: 50%; z-index: 4; width: 7%; height: 7%; translate: -50% -50%; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1c2, #c8952e 55%, #5a3a10); box-shadow: 0 1px 2px rgba(0, 0, 0, .5); }
#passage .pr-eng { z-index: 0; animation: gira 7s linear infinite; }
#passage .pr-eng-g { width: 46%; left: -16%; bottom: -8%; }
#passage .pr-eng-p { width: 30%; right: -8%; top: -6%; animation-duration: 4.6s; animation-direction: reverse; }
@media (prefers-reduced-motion: reduce) { #passage .pr-mao, #passage .pr-eng { animation: none; } }

/* atrás do relógio, a baía de Nictheroy em loop, escura e um pouco fora de foco: o relógio e a frase continuam na frente */
#passage { isolation: isolate; overflow: hidden; }
#passage .pass-fundo { position: absolute; inset: -3%; width: 106%; height: 106%; object-fit: cover; z-index: -2; filter: blur(3px) saturate(.85) brightness(.62); }
#passage .pass-veu { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(42% 46% at 50% 46%, rgba(6, 22, 30, .15), rgba(3, 10, 14, .55) 60%, rgba(2, 6, 9, .88)); }
#passage .passage-line { text-shadow: 0 1px 2px rgba(0, 0, 0, .8), 0 0 18px rgba(0, 0, 0, .6); }
/* o fundo do carregamento agora é o vídeo do portal (prompt 27): nítido, só um véu leve nas bordas para o relógio e a frase */
#passage .pass-fundo { inset: 0; width: 100%; height: 100%; filter: saturate(1.05) brightness(.9); }
#passage .pass-veu { background: radial-gradient(30% 34% at 50% 46%, rgba(3, 10, 14, .35), rgba(3, 10, 14, 0) 70%), radial-gradient(90% 90% at 50% 50%, transparent 55%, rgba(2, 6, 9, .7)); }

/* o carregamento inicial: o vídeo do portal ocupa a tela; a frase, a barra de latão e a porcentagem ficam embaixo, sobre um véu */
#loader { isolation: isolate; overflow: hidden; display: block; padding: 0; background: var(--ink) url(../assets/maq/loading.webp) center / cover no-repeat; }
#loader .lo-fundo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; filter: saturate(1.05) brightness(.92); transition: filter .9s ease; }
#loader .lo-veu { position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(to top, rgba(6, 3, 12, .92) 0%, rgba(6, 3, 12, .6) 22%, rgba(6, 3, 12, 0) 44%), radial-gradient(95% 95% at 50% 45%, transparent 58%, rgba(4, 2, 8, .65)); }
#loader .lo-base { position: absolute; left: 0; right: 0; bottom: calc(clamp(28px, 7vh, 72px) + var(--safe-b)); display: grid; justify-items: center; gap: 14px; padding: 0 24px; }
#loader .loader-line { font-size: clamp(22px, 2.6vw, 32px); text-shadow: 0 1px 2px rgba(0, 0, 0, .85), 0 0 20px rgba(0, 0, 0, .7); }
#loader .lo-barra { position: relative; width: min(72vw, 420px); height: 8px; border-radius: 8px; overflow: hidden;
  background: rgba(20, 10, 4, .75); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .8), 0 0 0 1px #6a4818, 0 0 0 2px rgba(224, 180, 106, .35); }
#loader .lo-barra i { position: absolute; inset: 0; transform: scaleX(0); transform-origin: left; transition: transform .35s ease;
  background: linear-gradient(to bottom, #fff1c2, #e0b46a 45%, #a8772e); box-shadow: 0 0 12px rgba(95, 240, 255, .55); }
#loader .loader-pct { color: var(--gold-hi); text-shadow: 0 1px 2px rgba(0, 0, 0, .9); }
#loader.done .lo-fundo { filter: saturate(1.15) brightness(1.35); }
