:root{--gold:#F4B324;--black:#111114;--white:#fff;--muted:#68707b;--line:#e8e8e8}*{box-sizing:border-box}html,body{margin:0;min-height:100%;font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:var(--black);background:#fff}button{font:inherit;cursor:pointer;touch-action:manipulation}button:focus-visible{outline:3px solid var(--gold);outline-offset:3px}.page{min-height:100svh;padding:28px 20px 18px;display:flex;flex-direction:column;align-items:center}.brand{text-align:center;width:100%}.logo{display:block;height:clamp(115px,18vh,180px);width:auto;max-width:90%;object-fit:contain;margin:0 auto 8px}.eyebrow{font-size:.69rem;letter-spacing:.22em;font-weight:800;color:#9a6b03;margin:0 0 6px}h1{font-size:clamp(1.5rem,3vw,2rem);letter-spacing:-.035em;margin:0;font-weight:800}.accent{display:block;background:var(--gold);height:4px;width:54px;border-radius:5px;margin:13px auto}.subheading{color:var(--muted);font-size:.95rem;margin:0 0 24px}.profiles{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;width:min(100%,980px)}.profile{background:white;border:1.5px solid #e5e5e5;border-radius:18px;box-shadow:0 7px 26px rgba(0,0,0,.045);display:flex;flex-direction:column;align-items:center;justify-content:center;min-height:240px;padding:18px 12px;transition:transform .15s,border .15s,box-shadow .15s}.profile:hover{transform:translateY(-3px);border-color:var(--gold);box-shadow:0 9px 24px rgba(244,179,36,.13)}.profile:active{transform:scale(.985)}.profile img{width:150px;height:135px;max-width:100%;object-fit:contain;margin-bottom:13px}.profile span{font-weight:800;font-size:1.02rem}.profile small{font-size:.76rem;color:#777;margin-top:6px}footer{margin-top:auto;padding:40px 0 5px;font-size:.76rem;color:#929292;text-align:center}.overlay{position:fixed;inset:0;background:rgba(10,10,10,.58);display:grid;place-items:center;padding:14px;z-index:50}.overlay[hidden]{display:none}.modal{background:white;width:min(100%,390px);max-height:min(95svh,780px);overflow:auto;border-radius:22px;box-shadow:0 25px 80px #0004;padding:26px 26px 20px;border-top:6px solid var(--gold)}.modal-head{display:flex;align-items:start;justify-content:space-between;gap:8px}.modal h2{margin:0;font-size:1.35rem}.icon-btn{border:0;background:#f2f2f2;border-radius:100%;width:37px;height:37px;font-size:26px;line-height:1}.modal-desc{color:var(--muted);margin:16px 0;font-size:.89rem}.pin-dots{display:flex;justify-content:center;gap:15px;padding:10px 0}.pin-dots i{height:17px;width:17px;border:2px solid #b2b2b2;border-radius:50%;background:white;transition:background .1s}.pin-dots i.filled{background:var(--gold);border-color:var(--gold)}.sr-only-input{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.message{min-height:31px;margin:6px 0 8px;text-align:center;font-size:.84rem;color:#b42318;font-weight:600}.message.info{color:#6c510a}.keyboard{display:grid;grid-template-columns:repeat(3,1fr);gap:9px}.keyboard button{border:1px solid #e4e4e4;background:#fafafa;border-radius:12px;min-height:57px;font-size:1.34rem;font-weight:700}.keyboard button:hover{background:#fff4da;border-color:var(--gold)}.keyboard button[data-key=clear]{font-size:.86rem}.keyboard button:disabled{cursor:not-allowed;opacity:.38}.cancel{display:block;margin:16px auto 0;border:0;background:none;font-size:.91rem;color:#666;padding:8px 20px}.cancel:hover{text-decoration:underline}body.modal-open{overflow:hidden}@media(max-width:760px){.profiles{grid-template-columns:repeat(2,minmax(0,1fr));max-width:540px}.profile{min-height:190px;padding:13px 6px}.profile img{height:105px;width:120px}.profile span{font-size:.91rem}.subheading{margin-bottom:18px}}@media(max-width:370px){.page{padding:16px 12px}.profiles{gap:10px}.profile{min-height:158px}.profile img{height:85px}.profile span{font-size:.82rem}.modal{padding:19px}.keyboard button{min-height:49px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{transition:none!important}}

/* Identidade oficial no topo */
.brand-name{font-size:clamp(1.6rem,4vw,2.4rem);font-weight:850;letter-spacing:-.035em;margin:7px 0 3px;color:#111114}.brand-subtitle{font-size:clamp(.98rem,2vw,1.16rem);font-weight:650;margin:0;color:#555}.brand .logo{height:clamp(135px,20vh,195px)}

.server-state{min-height:16px;text-align:center;color:#71717a;font-size:.71rem;margin:1px 0 9px}.server-state.problem{color:#b42318}.server-state.good{color:#21734f}
@media (max-height:700px){.modal{padding-top:13px;padding-bottom:12px}.modal-desc{margin:10px 0}.keyboard button{min-height:48px}}

.server-state{display:none}.modal{overscroll-behavior:contain}.profile{touch-action:manipulation}@media(min-width:1200px){.profiles{gap:20px}}

/* Estrutura persistente: mudar de página dentro do perfil não sai do fullscreen. */
#profile-shell{position:fixed;inset:0;width:100vw;height:100dvh;z-index:100;background:#fff;overflow:hidden}
#profile-shell[hidden]{display:none}
#profile-frame{display:block;border:0;width:100%;height:100%;background:#fff}
html.gdse-profile-open,html.gdse-profile-open body{overflow:hidden!important;height:100%!important}

/* v5.38: ícone de fechar oficial */
#close{display:inline-grid;place-items:center;min-width:38px;min-height:38px;padding:4px}
#close img{display:block;width:25px;height:25px;object-fit:contain}
