/* Gabarito — abertura branca da Área do aluno, IGUAL à do professor (Rafael, 22/11/2026: "e a transição do branco Gabarito igual a do
   professor para entrar na página do aluno"). Cópia dos estilos .lh-escrita do limpo-inicio.css (o aluno.html não carrega aquele arquivo).
   Se a abertura do professor mudar, mudar aqui também. */
.lh-escrita { position: fixed; inset: 0; z-index: 3000; display: grid; place-items: center; background: #FFFFFF; padding: 24px max(16px, env(safe-area-inset-right, 0px)) 24px max(16px, env(safe-area-inset-left, 0px)); transition: opacity .8s cubic-bezier(.16, 1, .3, 1), visibility .8s }
.lh-f3 .lh-escrita, .lh-escrita[hidden] { opacity: 0; visibility: hidden; pointer-events: none }
.lh-es { display: grid; justify-items: center; gap: 10px; width: min(720px, 100%) }
.lh-es-svg { width: 100%; height: auto; overflow: visible }
/* a mão: o traço desenha as letras enquanto a "ponta da caneta" (o recorte) anda da esquerda para a direita; depois a tinta assenta */
.lh-es-t { font: italic 400 124px/1 'Instrument Sans', 'Inter', system-ui, sans-serif; letter-spacing: -.035em; fill: transparent; stroke: #0B1F44; stroke-width: 1.3; stroke-dasharray: 1100; stroke-dashoffset: 1100; stroke-linejoin: round }
.lh-es-o { stroke: #C81E1E }
.lh-es-mao { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0) }
.lh-es-cap { opacity: 0; transform-box: fill-box; transform-origin: 50% 60% }
.lh-es-fr { margin: 0; font: italic 300 clamp(17px, 2.2vw, 22px)/1.4 'Instrument Sans', 'Inter', system-ui, sans-serif; color: #43526F; letter-spacing: .01em; opacity: 0; transform: translateY(8px) }
.lh-es-skip { position: absolute; right: max(20px, env(safe-area-inset-right, 0px)); top: calc(18px + env(safe-area-inset-top, 0px)); background: transparent !important; color: #5E6D88 !important; border: 1px solid #D5DCE8 !important }
.lh-escrita.vai .lh-es-mao { animation: lhEsMao 3.6s cubic-bezier(.37, .1, .45, .95) .2s forwards }
.lh-escrita.vai .lh-es-t { animation: lhEsTraco 3.8s cubic-bezier(.37, .1, .45, .95) .2s forwards, lhEsTinta 1.1s ease 3.7s forwards }
.lh-escrita.vai .lh-es-o { animation: lhEsTraco 3.8s cubic-bezier(.37, .1, .45, .95) .2s forwards, lhEsTintaO 1.1s ease 3.7s forwards }
.lh-escrita.vai .lh-es-cap { animation: lhEsCap 1s cubic-bezier(.34, 1.4, .5, 1) 3.9s forwards }
.lh-escrita.vai .lh-es-fr { animation: lhEsFrase 1s cubic-bezier(.16, 1, .3, 1) 4.4s forwards }
@keyframes lhEsMao { to { transform: scaleX(1) } }
@keyframes lhEsTraco { to { stroke-dashoffset: 0 } }
@keyframes lhEsTinta { to { fill: #0B1F44; stroke-width: 0 } }
@keyframes lhEsTintaO { to { fill: #C81E1E; stroke-width: 0 } }
@keyframes lhEsCap { from { opacity: 0; transform: translateY(-10px) rotate(-8deg) scale(.86) } to { opacity: 1; transform: none } }
@keyframes lhEsFrase { to { opacity: 1; transform: none } }
@media (max-width: 600px) { .lh-es-svg { width: 112% } }
@media (prefers-reduced-motion: reduce) { .lh-escrita { display: none } }
html:not(.nativo) .lh-escrita { --px: 0; --py: 0; background: transparent; overflow: hidden; opacity: 1; transition: none }
html:not(.nativo) .lh-es-bl { position: absolute; inset: 0; z-index: 0; display: grid; grid-template-columns: repeat(var(--c, 14), 1fr); grid-template-rows: repeat(var(--r, 8), 1fr); pointer-events: none }
html:not(.nativo) .lh-es-bl i { background: #FFFFFF; box-shadow: 0 0 0 1px #FFFFFF; transition: opacity .5s cubic-bezier(.4, 0, .2, 1), transform .5s cubic-bezier(.4, 0, .2, 1); transition-delay: calc(var(--d, 0) * 1ms) }
html:not(.nativo) .lh-escrita .lh-es { position: relative; z-index: 1; transform: perspective(1100px) rotateX(calc(var(--py) * -4deg)) rotateY(calc(var(--px) * 6deg)); transition: transform .4s cubic-bezier(.16, 1, .3, 1), opacity .45s ease }
html:not(.nativo) .lh-escrita .lh-es-skip { z-index: 2; transition: opacity .3s }
/* mais rápida (Rafael: "uma rápida interatividade e depois já entra"): o nome em ~2,4 s, o símbolo e a frase logo depois */
html:not(.nativo) .lh-escrita.vai .lh-es-mao { animation: lhEsMao 2.4s cubic-bezier(.37, .1, .45, .95) .15s forwards }
html:not(.nativo) .lh-escrita.vai .lh-es-t { animation: lhEsTraco 2.6s cubic-bezier(.37, .1, .45, .95) .15s forwards, lhEsTinta .8s ease 2.4s forwards }
html:not(.nativo) .lh-escrita.vai .lh-es-o { animation: lhEsTraco 2.6s cubic-bezier(.37, .1, .45, .95) .15s forwards, lhEsTintaO .8s ease 2.4s forwards }
html:not(.nativo) .lh-escrita.vai .lh-es-cap { animation: lhEsCap .8s cubic-bezier(.34, 1.4, .5, 1) 2.5s forwards }
html:not(.nativo) .lh-escrita.vai .lh-es-fr { animation: lhEsFrase .8s cubic-bezier(.16, 1, .3, 1) 2.9s forwards }
/* saída: o nome some e o branco se desfaz em quadrados; só depois a camada deixa de existir */
html:not(.nativo) .lh-f3 .lh-escrita.vai, html:not(.nativo) .lh-escrita.vai.sai { opacity: 1; visibility: hidden; pointer-events: none; transition: visibility 0s 1.5s }
html:not(.nativo) .lh-f3 .lh-escrita.vai .lh-es, html:not(.nativo) .lh-escrita.vai.sai .lh-es,
html:not(.nativo) .lh-f3 .lh-escrita.vai .lh-es-skip, html:not(.nativo) .lh-escrita.vai.sai .lh-es-skip { opacity: 0 }
html:not(.nativo) .lh-f3 .lh-escrita.vai .lh-es-bl i, html:not(.nativo) .lh-escrita.vai.sai .lh-es-bl i { opacity: 0; transform: scale(.35) }
/* quando a abertura NÃO toca (voltar ao Início pelo menu), a camada some na hora, sem se desfazer */
html:not(.nativo) .lh-f3 .lh-escrita:not(.vai) { opacity: 0; visibility: hidden; pointer-events: none; transition: none }
@media (max-width: 600px) { html:not(.nativo) .lh-escrita .lh-es-svg { width: 108% } }
