/* QG V6.8.19Q — fechamento premium global */
:root{--qg-screen-bg:#050705;--qg-gold:#e4bd3c;--qg-green:#45df8d}
html,body{overscroll-behavior-y:none}
button,a[href],[role="button"],input,select{touch-action:manipulation;-webkit-tap-highlight-color:transparent}
button,a[href],[role="button"]{transition:transform .08s ease,filter .08s ease,opacity .08s ease!important}
.qg-touching{transform:scale(.985)!important;filter:brightness(1.08)!important}
/* estrutura global: reserva física para a navegação fixa; aparência pertence ao tema oficial */
body:has(#QG_BOTTOM_NAV){padding-bottom:calc(118px + env(safe-area-inset-bottom))!important}
body:has(#QG_BOTTOM_NAV)>main,body:has(#QG_BOTTOM_NAV)>.app,body:has(#QG_BOTTOM_NAV)>.page,body:has(#QG_BOTTOM_NAV)>.wrap{padding-bottom:calc(132px + env(safe-area-inset-bottom))!important}
#QG_BOTTOM_NAV{position:fixed!important;left:50%!important;bottom:max(8px,env(safe-area-inset-bottom))!important;top:auto!important;transform:translateX(-50%)!important;margin:0!important;width:min(820px,calc(100% - 22px))!important;z-index:1000!important;}
/* SINAPSE viva na home */
body[data-qg-route="qg"] .v670-target,body[data-qg-route="qg"] .v670-order-orb,body[data-qg-route="qg"] .qg-order-orb,body[data-qg-route="qg"] .qg-sinapse-orb{position:relative}
body[data-qg-route="qg"] .v670-target:after,body[data-qg-route="qg"] .v670-order-orb:after,body[data-qg-route="qg"] .qg-order-orb:after,body[data-qg-route="qg"] .qg-sinapse-orb:after{content:"";position:absolute;inset:-7px;border:1px solid rgba(69,223,141,.7);border-radius:50%;animation:qgSinapsePulse 1.8s ease-out infinite;box-shadow:0 0 18px rgba(69,223,141,.18)}
@keyframes qgSinapsePulse{0%{transform:scale(.88);opacity:.85}70%,100%{transform:scale(1.18);opacity:0}}
/* Sala de treinamento premium minimalista */
body[data-qg-route="missoes"] .qcard{border-color:#5a481d!important;background:linear-gradient(160deg,#10110d,#060706 74%)!important;box-shadow:inset 0 1px 0 rgba(228,189,60,.09),0 22px 50px #0009!important}
body[data-qg-route="missoes"] .statement{font-size:clamp(24px,6.2vw,42px)!important;line-height:1.2!important;letter-spacing:-.025em!important}
body[data-qg-route="missoes"] .answers{grid-template-columns:1fr 1fr!important;gap:12px!important}
body[data-qg-route="missoes"] .answer{min-height:82px!important;border-radius:18px!important;font-size:20px!important;letter-spacing:.08em!important}
.qg-skip-question{width:100%;min-height:50px;margin:10px 0 0;border:1px solid #5c4a20;border-radius:14px;background:#0a0b09;color:#d6b957;font-weight:950;letter-spacing:.12em}
.qg-skip-question small{display:block;margin-top:4px;color:#777;font-size:8px;letter-spacing:.05em;font-weight:700}
.qg-cebraspe-score{display:grid;grid-template-columns:repeat(3,1fr);gap:7px;margin-top:10px}.qg-cebraspe-score div{border:1px solid #302b1e;border-radius:12px;padding:10px;text-align:center;background:#090a08}.qg-cebraspe-score b{display:block;color:#f2d45c;font-size:18px}.qg-cebraspe-score span{font-size:7px;color:#777;font-weight:900;letter-spacing:.08em}
.qg-training-counter{display:flex;gap:8px;flex-wrap:wrap;margin:9px 0;color:#8a887e;font-size:8px;font-weight:900;letter-spacing:.08em}.qg-training-counter b{color:#e4bd3c}
/* Carreira QG final */
.qg-career-final{border:1px solid #6a531a;border-radius:22px;background:radial-gradient(circle at 50% 42%,rgba(228,189,60,.08),transparent 28%),linear-gradient(155deg,#14140f,#080908 74%);box-shadow:inset 0 1px 0 rgba(255,222,111,.09),0 18px 46px #0009;overflow:hidden}
.qg-career-final-head{display:grid;grid-template-columns:1fr 1px 1fr;gap:18px;align-items:center;padding:22px}.qg-career-divider{width:1px;height:70px;background:#43391f}.qg-career-k{font-size:8px;color:#9c927a;font-weight:950;letter-spacing:.22em}.qg-career-rank{font-size:clamp(24px,7vw,40px);font-weight:1000;margin-top:8px}.qg-career-next{text-align:right}.qg-career-next .qg-career-rank{color:#e4bd3c}
.qg-career-center{margin:0 18px 18px;padding:18px;border:1px solid #292820;border-radius:18px;background:rgba(0,0,0,.24);text-align:center}.qg-career-xp{font-size:clamp(44px,13vw,76px);font-weight:1000;color:#e4bd3c;line-height:1}.qg-career-track{height:10px;border-radius:99px;background:#2b2921;overflow:hidden;margin:16px 0 8px}.qg-career-track i{display:block;height:100%;background:linear-gradient(90deg,#a77a0d,#f4d65e);box-shadow:0 0 18px rgba(228,189,60,.38)}.qg-career-meta{display:flex;justify-content:space-between;gap:10px;color:#8b887f;font-size:9px}.qg-career-meta strong{color:#eee}
.qg-career-route{display:flex;gap:8px;overflow-x:auto;scroll-snap-type:x mandatory;padding:4px 22px 22px;scrollbar-width:none}.qg-career-route::-webkit-scrollbar{display:none}.qg-career-step{min-width:92px;scroll-snap-align:center;text-align:center}.qg-career-node{width:58px;height:58px;margin:auto;border:2px solid #4b473d;border-radius:50%;display:grid;place-items:center;font-size:18px;font-weight:1000;color:#777;background:#080908}.qg-career-step.done .qg-career-node{border-color:#8e7126;color:#c9a740}.qg-career-step.current .qg-career-node{border-color:#f0cd54;color:#090909;background:#e4bd3c;box-shadow:0 0 28px rgba(228,189,60,.45)}.qg-career-label{font-size:8px;margin-top:8px;color:#777;font-weight:900}.qg-career-step.current .qg-career-label{color:#e4bd3c}
/* apresentação: uma etapa por viewport */
body.qg-presentation-final{overflow:hidden!important}.qg-presentation-final .qg-pres{height:100dvh!important;min-height:100dvh!important;padding-top:calc(env(safe-area-inset-top) + 8px)!important;padding-bottom:calc(env(safe-area-inset-bottom) + 8px)!important;display:flex!important;flex-direction:column!important}.qg-presentation-final .shell{flex:1!important;min-height:0!important;display:flex!important;flex-direction:column!important}.qg-presentation-final .content{flex:1!important;min-height:0!important;display:flex!important;flex-direction:column!important;justify-content:space-between!important;overflow:hidden!important}.qg-presentation-final .lead{margin-bottom:10px!important}.qg-presentation-final .impact{margin:10px 0!important}.qg-presentation-final .flow,.qg-presentation-final .stats{margin:9px 0!important}.qg-presentation-final .progress{margin:10px 0!important}.qg-presentation-final .actions{margin-top:auto!important}.qg-presentation-final .foot{margin-top:6px!important}
@media(max-height:820px){.qg-presentation-final .command{padding:12px 16px!important}.qg-presentation-final .core{width:54px!important;height:54px!important}.qg-presentation-final .content{padding:14px 18px!important}.qg-presentation-final #title{font-size:clamp(25px,7vw,34px)!important}.qg-presentation-final .lead{font-size:13px!important;line-height:1.4!important}.qg-presentation-final .flow.pain div,.qg-presentation-final .flow div{min-height:42px!important;padding:8px!important;font-size:8px!important}.qg-presentation-final .impact{padding:12px 14px!important;font-size:10px!important}.qg-presentation-final .btn{min-height:48px!important}.qg-presentation-final .skip{margin-top:8px!important}}
@media(max-height:700px){.qg-presentation-final .topline,.qg-presentation-final .foot{display:none!important}.qg-presentation-final .command{padding:8px 14px!important}.qg-presentation-final .content{padding:10px 14px!important}.qg-presentation-final #title{font-size:23px!important}.qg-presentation-final .lead{font-size:11px!important}.qg-presentation-final .impact{font-size:9px!important}.qg-presentation-final .flow.pain div,.qg-presentation-final .flow div{min-height:34px!important}}


/* QG V6.8.19R — consolidação visual/funções aprovadas */
:root{--qg-fade-top-extra:46px;--qg-fade-bottom-extra:94px}
/* fade premium mais curto/progressivo */
.qg-screen-fade-top{height:calc(env(safe-area-inset-top) + 18px)!important;background:linear-gradient(180deg,var(--qg-screen-bg) 0%,var(--qg-screen-bg) 40%,rgba(5,7,5,.78) 67%,rgba(5,7,5,0) 100%)!important}
body.qg-scrolled .qg-screen-fade-top{height:calc(env(safe-area-inset-top) + var(--qg-fade-top-extra))!important}
.qg-screen-fade-bottom{height:calc(env(safe-area-inset-bottom) + var(--qg-fade-bottom-extra))!important;background:linear-gradient(0deg,var(--qg-screen-bg) 0%,var(--qg-screen-bg) 38%,rgba(5,7,5,.80) 66%,rgba(5,7,5,0) 100%)!important}
#QG_BOTTOM_NAV:before{top:-34px!important;height:36px!important;background:linear-gradient(180deg,transparent,var(--qg-screen-bg))!important}

/* centralização premium para telas curtas */
body.qg-auto-center-page{min-height:100dvh!important}
body.qg-auto-center-page>.wrap,body.qg-auto-center-page>main.wrap,body.qg-auto-center-page>.page{min-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - var(--qg-center-reserve,24px))!important;display:flex!important;flex-direction:column!important;justify-content:center!important}
body.qg-auto-center-page:has(#QG_BOTTOM_NAV)>.wrap,body.qg-auto-center-page:has(#QG_BOTTOM_NAV)>.page{--qg-center-reserve:122px}

/* login centralizado aprovado */
body.qg-login-premium{display:flex!important;align-items:center!important;justify-content:center!important;min-height:100dvh!important;padding:calc(env(safe-area-inset-top) + 18px) 24px calc(env(safe-area-inset-bottom) + 18px)!important;background:radial-gradient(circle at 50% 28%,rgba(202,155,34,.08),transparent 24rem),#020302!important}
body.qg-login-premium .shell{width:min(440px,100%)!important;margin:auto!important}
body.qg-login-premium .brand{margin:0 auto 22px!important;text-align:center!important}
body.qg-login-premium .brand img{width:104px!important;height:104px!important;border-radius:25px!important;clip-path:none!important;object-fit:cover!important;border:1px solid rgba(229,190,54,.78)!important;box-shadow:0 0 0 3px rgba(112,82,16,.15),0 0 30px rgba(229,190,54,.14),0 14px 45px #000!important}
body.qg-login-premium .brand h1{font-size:clamp(19px,5.5vw,25px)!important;letter-spacing:.15em!important;margin:18px 0 6px!important;color:#dcbf59!important}
body.qg-login-premium .brand p{font-size:11px!important;letter-spacing:.21em!important;color:#777!important}
body.qg-login-premium .card{padding:26px!important;border-radius:22px!important;border-color:#4a3b18!important;background:linear-gradient(155deg,#11120f,#080908)!important;box-shadow:0 30px 80px #000b!important}
body.qg-login-premium .card h2{font-size:clamp(23px,6vw,31px)!important;line-height:1.15!important;margin:10px 0 22px!important}
body.qg-login-premium .field input{min-height:58px!important;border-radius:14px!important;padding:15px 16px!important;background:#050605!important}
body.qg-login-premium .btn.gold{min-height:58px!important;border-radius:14px!important;background:linear-gradient(180deg,#e6c557,#ad8427)!important;box-shadow:0 8px 28px rgba(214,172,49,.12)!important}
body.qg-login-premium .links{margin-top:18px!important}
body.qg-login-premium .foot{margin-top:22px!important;color:#555!important}
@media(max-height:760px){body.qg-login-premium{align-items:flex-start!important;padding-top:calc(env(safe-area-inset-top) + 8px)!important}body.qg-login-premium .brand img{width:78px!important;height:78px!important}body.qg-login-premium .brand{margin-bottom:12px!important}body.qg-login-premium .card{padding:20px!important}body.qg-login-premium .card h2{font-size:21px!important;margin-bottom:14px!important}.qg-login-premium .field{margin:9px 0!important}}

/* Home: somente lupa e notificações no topo */
body[data-qg-route="qg"] #QG_STATIC_HEADER_PROFILE,body[data-qg-route="qg"] #QG_HEADER_IDENTITY,body[data-qg-route="qg"] #QG_V670_HEADER_RIGHT{display:none!important}
body[data-qg-route="qg"] #QG_FINAL_HEADER_RIGHT{display:flex!important;flex-direction:row!important;align-items:center!important;justify-content:flex-end!important;width:86px!important;min-width:86px!important;gap:8px!important}
body[data-qg-route="qg"] #QG_FINAL_HEADER_RIGHT .qg-header-actions{display:flex!important;gap:8px!important;width:auto!important}
body[data-qg-route="qg"] #QG_GLOBAL_SEARCH_BTN,body[data-qg-route="qg"] #QG_HOME_NOTIFICATIONS{width:36px!important;height:36px!important;flex:0 0 36px!important;border-radius:50%!important}
body[data-qg-route="qg"] .header-row{grid-template-columns:78px minmax(0,1fr) 86px!important}
@media(max-width:390px){body[data-qg-route="qg"] .header-row{grid-template-columns:68px minmax(0,1fr) 78px!important}body[data-qg-route="qg"] #QG_FINAL_HEADER_RIGHT{width:78px!important;min-width:78px!important}body[data-qg-route="qg"] #QG_GLOBAL_SEARCH_BTN,body[data-qg-route="qg"] #QG_HOME_NOTIFICATIONS{width:33px!important;height:33px!important;flex-basis:33px!important}}

/* SINAPSE oficial viva — núcleo sináptico circular */
.qg-sinapse-command{margin:0 0 12px;padding:13px 14px;border:1px solid rgba(66,220,137,.46);border-radius:20px;background:linear-gradient(145deg,rgba(5,18,11,.98),rgba(6,9,7,.99));box-shadow:inset 0 1px 0 rgba(95,255,163,.06),0 0 28px rgba(35,206,112,.07);display:grid;grid-template-columns:72px minmax(0,1fr) auto;align-items:center;gap:12px;position:relative;overflow:hidden}
.qg-sinapse-command:before{content:"";position:absolute;inset:auto -40px -70px auto;width:180px;height:180px;border-radius:50%;border:1px solid rgba(69,223,141,.08);box-shadow:0 0 0 24px rgba(69,223,141,.025),0 0 0 48px rgba(69,223,141,.014)}
.qg-syn-core{width:68px;height:68px;border-radius:50%;position:relative;display:grid;place-items:center;background:radial-gradient(circle,rgba(52,225,134,.15),rgba(4,10,7,.95) 56%,#040605 57%);border:1px solid rgba(228,189,60,.52);box-shadow:0 0 0 5px rgba(5,8,6,.95),0 0 0 7px rgba(69,223,141,.24),0 0 24px rgba(69,223,141,.18)}
.qg-syn-core:before{content:"";position:absolute;inset:7px;border:1px dashed rgba(69,223,141,.56);border-radius:50%;animation:qgSynSweep 8s linear infinite}.qg-syn-core:after{content:"";position:absolute;inset:-6px;border:1px solid rgba(69,223,141,.5);border-radius:50%;animation:qgSinapsePulse 2s ease-out infinite}
.qg-syn-core svg{width:48px;height:48px;fill:none;stroke:#48df8c;stroke-width:1.25;filter:drop-shadow(0 0 7px rgba(69,223,141,.4))}.qg-syn-core circle.node{fill:#e4bd3c;stroke:none}.qg-syn-copy{min-width:0}.qg-syn-copy small{display:block;color:#47df8c;font-size:7px;font-weight:950;letter-spacing:.16em}.qg-syn-copy b{display:block;margin:4px 0;color:#f4f1ea;font-size:16px;letter-spacing:.035em}.qg-syn-copy span{display:block;color:#9a9c96;font-size:8.5px;line-height:1.45}.qg-syn-state{position:relative;z-index:1;border:1px solid rgba(69,223,141,.26);border-radius:12px;padding:9px 10px;background:#07100a;text-align:center}.qg-syn-state small{display:block;color:#777;font-size:6px;font-weight:900;letter-spacing:.1em}.qg-syn-state b{display:block;margin-top:3px;color:#54df8c;font-size:8px;letter-spacing:.08em}.qg-sinapse-command[data-state="ALERTA"]{border-color:rgba(231,158,47,.55)}.qg-sinapse-command[data-state="ALERTA"] .qg-syn-core svg{stroke:#e5a334}.qg-sinapse-command[data-state="ALERTA"] .qg-syn-state b{color:#e5a334}.qg-sinapse-command[data-state="DECISÃO PRONTA"] .qg-syn-state{border-color:rgba(228,189,60,.34)}.qg-sinapse-command[data-state="DECISÃO PRONTA"] .qg-syn-state b{color:#e4bd3c}
body[data-qg-route="qg"] .v670-sinapse{display:none!important}
@media(max-width:430px){.qg-sinapse-command{grid-template-columns:58px minmax(0,1fr) auto;padding:11px}.qg-syn-core{width:54px;height:54px}.qg-syn-core svg{width:39px;height:39px}.qg-syn-copy b{font-size:13px}.qg-syn-copy span{font-size:7.4px}.qg-syn-state{padding:7px}.qg-syn-state small{display:none}}

/* Sua Situação Atual clicável */
body[data-qg-route="qg"] .v670-sit{cursor:pointer;position:relative;transition:transform .12s ease,filter .12s ease,border-color .12s ease!important}
body[data-qg-route="qg"] .v670-sit:after{content:"VER DETALHES →";display:block;margin-top:10px;color:#dcb83e;font-size:6.5px;font-weight:950;letter-spacing:.08em;opacity:.82}
body[data-qg-route="qg"] .v670-sit:active{transform:scale(.985);filter:brightness(1.08)}
.qg-stat-modal{position:fixed;inset:0;z-index:4200;display:none;align-items:flex-end;justify-content:center;background:rgba(0,0,0,.7);backdrop-filter:blur(9px);padding:18px 14px calc(env(safe-area-inset-bottom) + 18px)}.qg-stat-modal.open{display:flex}.qg-stat-sheet{width:min(560px,100%);border:1px solid rgba(228,189,60,.46);border-radius:24px;background:linear-gradient(155deg,#11120f,#060806);box-shadow:0 30px 80px #000;padding:18px;position:relative}.qg-stat-sheet h3{margin:4px 0 15px;color:#f4f1e8;font-size:22px}.qg-stat-k{color:#dcb83e;font-size:8px;font-weight:950;letter-spacing:.17em}.qg-stat-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:8px}.qg-stat-grid div{border:1px solid #29281f;border-radius:13px;background:#090a08;padding:11px}.qg-stat-grid small{display:block;color:#777;font-size:7px;font-weight:900;letter-spacing:.08em}.qg-stat-grid b{display:block;color:#eee;font-size:17px;margin-top:5px}.qg-stat-action{display:block;width:100%;margin-top:12px;border:1px solid #8c6c1d;border-radius:13px;background:#110f08;color:#e4bd3c;text-align:center;text-decoration:none;padding:13px;font-size:9px;font-weight:950;letter-spacing:.1em}.qg-stat-close{position:absolute;right:12px;top:12px;width:34px;height:34px;border-radius:50%;border:1px solid #3d3520;background:#090a08;color:#dcb83e;font-size:18px}

/* apresentação QG: centralização real por viewport */
body.qg-presentation-final,body.qg-presentation-final html{height:100dvh!important;overflow:hidden!important}
.qg-presentation-final .qg-pres{height:100dvh!important;min-height:100dvh!important;justify-content:center!important;padding:calc(env(safe-area-inset-top) + 6px) 18px calc(env(safe-area-inset-bottom) + 6px)!important}
.qg-presentation-final .topline{flex:0 0 auto;margin-bottom:8px!important}.qg-presentation-final .shell{margin:auto!important;max-height:calc(100dvh - env(safe-area-inset-top) - env(safe-area-inset-bottom) - 54px)!important}.qg-presentation-final .command{flex:0 0 auto!important}.qg-presentation-final .content{overflow:hidden!important}.qg-presentation-final .foot{flex:0 0 auto;margin-top:7px!important}.qg-presentation-final .actions{flex:0 0 auto!important}.qg-presentation-final .skip{flex:0 0 auto!important}
@media(max-height:850px){.qg-presentation-final .command{padding:10px 14px!important}.qg-presentation-final .core{width:50px!important;height:50px!important}.qg-presentation-final .content{padding:11px 16px!important}.qg-presentation-final #title{font-size:clamp(22px,6.5vw,31px)!important;line-height:1.02!important}.qg-presentation-final .lead{font-size:12px!important;line-height:1.35!important;margin:6px 0!important}.qg-presentation-final .impact{padding:10px 12px!important;font-size:9.5px!important;line-height:1.42!important}.qg-presentation-final .flow,.qg-presentation-final .stats{margin:7px 0!important}.qg-presentation-final .flow.pain div,.qg-presentation-final .flow div{min-height:37px!important;padding:7px!important;font-size:7.4px!important}.qg-presentation-final .progress{margin:7px 0!important}.qg-presentation-final .btn{min-height:44px!important}.qg-presentation-final .skip{margin-top:6px!important;font-size:8px!important}.qg-presentation-final .foot{font-size:7px!important}}

/* V6.8.19U — SUA SITUAÇÃO ATUAL: remover CTA duplicado + fogo vivo */
body[data-qg-route="qg"] .v670-sit::after{content:none!important;display:none!important}
body[data-qg-route="qg"] .v670-fire{
  transform-origin:50% 85%;
  animation:qgFireAlive 1.35s ease-in-out infinite;
  will-change:transform,filter,opacity;
}
@keyframes qgFireAlive{
  0%,100%{transform:translateY(0) scale(1) rotate(0deg);filter:drop-shadow(0 0 8px rgba(237,139,20,.28)) drop-shadow(0 0 2px rgba(255,207,70,.22));opacity:.96}
  25%{transform:translateY(-1px) scale(1.035,.975) rotate(-1deg);filter:drop-shadow(0 0 11px rgba(237,139,20,.42)) drop-shadow(0 0 4px rgba(255,207,70,.30));opacity:1}
  55%{transform:translateY(-2px) scale(.985,1.045) rotate(1deg);filter:drop-shadow(0 0 14px rgba(237,139,20,.48)) drop-shadow(0 0 5px rgba(255,207,70,.34));opacity:.98}
  78%{transform:translateY(-1px) scale(1.02,.99) rotate(-.5deg);filter:drop-shadow(0 0 10px rgba(237,139,20,.35)) drop-shadow(0 0 3px rgba(255,207,70,.26));opacity:1}
}
@media (prefers-reduced-motion:reduce){body[data-qg-route="qg"] .v670-fire{animation:none!important}}
