/* Slabedd — ecrã de entrada: logo animado, barra de carregamento e login.
   Carregado no <head> para aparecer antes de tudo o resto. */
.slabGate{position:fixed;inset:0;z-index:9000;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:26px;
  padding:24px 16px calc(24px + env(safe-area-inset-bottom));background:#0b0709;color:#f4ecee;overflow:hidden;
  font-family:'Chakra Petch','Space Grotesk',system-ui,sans-serif;transition:opacity .45s ease,visibility .45s}
.slabGate.out{opacity:0;visibility:hidden;pointer-events:none}
html.gateOpen,html.gateOpen body{overflow:hidden}
/* katakana gigante de fundo e grelha, como no resto da app */
.slabGate::before{content:'スラベッド';position:absolute;right:-4vw;bottom:-6vh;font-family:'Dela Gothic One',sans-serif;font-size:min(30vw,260px);line-height:1;
  color:rgba(193,39,45,.09);white-space:nowrap;pointer-events:none}
.slabGate::after{content:'';position:absolute;inset:0;pointer-events:none;
  background:linear-gradient(rgba(255,255,255,.03) 1px,transparent 1px) 0 0/100% 32px,linear-gradient(90deg,rgba(255,255,255,.03) 1px,transparent 1px) 0 0/32px 100%}
.slabGate>*{position:relative;z-index:1}

/* ---------- logo: cresce da direita (lado estreito) para a esquerda, a seguir a curva ---------- */
.gateLogo{width:min(78vw,420px);height:auto;display:block;overflow:visible;transform-origin:96% 30%;
  animation:gateGrow 1.4s cubic-bezier(.3,.7,.2,1) both}
.gateLogo .sweep{stroke-dasharray:1 1;stroke-dashoffset:1;animation:gateSweep 1.25s cubic-bezier(.45,.1,.3,1) .05s forwards}
@keyframes gateSweep{to{stroke-dashoffset:0}}
@keyframes gateGrow{0%{transform:scale(.55) rotate(4deg);opacity:0}12%{opacity:1}70%{transform:scale(1.04) rotate(-1deg)}100%{transform:scale(1) rotate(0)}}
.gateKana{margin-top:-14px;font-family:'Dela Gothic One',sans-serif;font-size:15px;letter-spacing:.5em;color:#c1272d;opacity:0;animation:gateFade .5s .95s forwards}
@keyframes gateFade{to{opacity:1}}

/* ---------- barra de carregamento ---------- */
.gateLoad{width:min(78vw,360px);display:grid;gap:8px;transition:opacity .3s}
.gateLoad.done{opacity:0;height:0;margin:-13px 0;overflow:hidden}
.gateTrack{height:10px;border:2px solid #f4ecee;background:transparent;box-shadow:4px 4px 0 #c1272d;overflow:hidden}
.gateTrack span{display:block;height:100%;width:0;background:repeating-linear-gradient(-45deg,#c1272d 0 8px,#e0353c 8px 16px);transition:width .25s ease-out}
.gateLoadText{display:flex;justify-content:space-between;font-family:'JetBrains Mono',ui-monospace,monospace;font-size:12px;letter-spacing:.08em;color:#c9b9be;text-transform:uppercase}

/* ---------- login ---------- */
.gateForm{width:min(100%,380px);display:none;gap:12px;padding:22px 20px;background:#150b0e;border:2px solid #f4ecee;box-shadow:6px 6px 0 #c1272d}
.gateForm.show{display:grid;animation:gateUp .4s cubic-bezier(.2,.8,.2,1)}
@keyframes gateUp{from{opacity:0;transform:translateY(14px)}}
.gateForm h1{margin:0;font-size:22px;letter-spacing:.02em;text-transform:uppercase}
.gateForm p{margin:0;color:#c9b9be;font-size:14px;line-height:1.45}
.gateForm label{display:grid;gap:5px;font-size:12px;font-weight:700;letter-spacing:.08em;text-transform:uppercase;color:#e9e2e4}
.slabGate .gateForm input{width:100%;box-sizing:border-box;padding:12px!important;border:2px solid #f4ecee!important;border-radius:0!important;background:#0b0709!important;color:#fff!important;box-shadow:none;font:500 16px "Space Grotesk",system-ui,sans-serif}
.slabGate .gateForm input:focus{outline:none;border-color:#e0353c!important;box-shadow:3px 3px 0 #c1272d}
.gateForm .gateSubmit{margin-top:4px;padding:14px;border:2px solid #f4ecee;background:#c1272d;color:#fff;font:700 15px 'Chakra Petch',sans-serif;letter-spacing:.12em;text-transform:uppercase;cursor:pointer;box-shadow:4px 4px 0 #f4ecee}
.gateForm .gateSubmit:active{transform:translate(3px,3px);box-shadow:1px 1px 0 #f4ecee}
.gateForm .gateSubmit:disabled{opacity:.6;cursor:wait}
.gateLinks{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap}
.gateLinks button{padding:0;border:0;background:none;color:#ff8a8f;font:600 13px 'Chakra Petch',sans-serif;text-decoration:underline;text-underline-offset:3px;cursor:pointer}
.gateMsg{min-height:0;font-size:13.5px;line-height:1.4}
.gateMsg.err{color:#ff8a8f}
.gateMsg.ok{color:#8fe3a7}
.gateNote{font-size:12px!important;color:#9c8a90!important;border-top:1px dashed #4a3a3f;padding-top:10px}
.gateForm [hidden]{display:none!important}

@media(max-height:640px){.slabGate{justify-content:flex-start;overflow-y:auto}.gateLogo{width:min(60vw,300px)}}
@media(prefers-reduced-motion:reduce){.gateLogo,.gateLogo .sweep,.gateKana{animation:none!important;stroke-dashoffset:0!important;opacity:1!important}}

/* ---------- cursor Pokébola (só com rato; nos campos de texto fica o cursor de escrever) ---------- */
@media (pointer:fine){
  html,body,*{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16.8' cy='16.8' r='14.6' fill='%23f4ecee'/%3E%3Ccircle cx='17.6' cy='17.6' r='12.6' fill='%23150b0e'/%3E%3Cg transform=''%3E%3Cpath d='M3.4 16a12.6 12.6 0 0 1 25.2 0z' fill='%23c1272d'/%3E%3Cpath d='M3.4 16a12.6 12.6 0 0 0 25.2 0z' fill='%23f4ecee'/%3E%3Ccircle cx='16' cy='16' r='12.6' fill='none' stroke='%23150b0e' stroke-width='2.4'/%3E%3Cpath d='M3.6 16h24.8' stroke='%23150b0e' stroke-width='2.6'/%3E%3Ccircle cx='16' cy='16' r='4.6' fill='%23f4ecee' stroke='%23150b0e' stroke-width='2.4'/%3E%3Ccircle cx='16' cy='16' r='1.9' fill='%23f4ecee'/%3E%3Cpath d='M8.5 9.2a8.8 8.8 0 0 1 4.6-3.2' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' opacity='.75' fill='none'/%3E%3C/g%3E%3C/svg%3E") 16 16,auto!important}
  a,button,select,summary,label,[role="button"],[role="radio"],[tabindex]:not([tabindex="-1"]),.lpCard,[data-open],[data-cs-open],[data-deck-open]{cursor:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'%3E%3Ccircle cx='16.8' cy='16.8' r='14.6' fill='%23f4ecee'/%3E%3Ccircle cx='17.6' cy='17.6' r='12.6' fill='%23150b0e'/%3E%3Cg transform='rotate(-18 16 16)'%3E%3Cpath d='M3.4 16a12.6 12.6 0 0 1 25.2 0z' fill='%23c1272d'/%3E%3Cpath d='M3.4 16a12.6 12.6 0 0 0 25.2 0z' fill='%23f4ecee'/%3E%3Ccircle cx='16' cy='16' r='12.6' fill='none' stroke='%23150b0e' stroke-width='2.4'/%3E%3Cpath d='M3.6 16h24.8' stroke='%23150b0e' stroke-width='2.6'/%3E%3Ccircle cx='16' cy='16' r='6.5' fill='%23ff6b70' opacity='.45'/%3E%3Ccircle cx='16' cy='16' r='4.6' fill='%23f4ecee' stroke='%23150b0e' stroke-width='2.4'/%3E%3Ccircle cx='16' cy='16' r='1.9' fill='%23c1272d'/%3E%3Cpath d='M8.5 9.2a8.8 8.8 0 0 1 4.6-3.2' stroke='%23fff' stroke-width='1.6' stroke-linecap='round' opacity='.75' fill='none'/%3E%3C/g%3E%3C/svg%3E") 16 16,pointer!important}
  input:not([type]),input[type="text"],input[type="email"],input[type="password"],input[type="search"],input[type="number"],input[type="tel"],textarea,[contenteditable="true"]{cursor:text!important}
  [disabled],[aria-disabled="true"]{cursor:not-allowed!important}
}

