:root{
  --purple-dark:#2B0D4D;
  --purple:#6A2C91;
  --lilac:#B195E7;
  --lilac-light:#EDE4FB;
  --green:#28C76F;
  --white:#fff;
  --ink:#2c1743;
  --muted:#6f6180;
  --line:#d8caee;
  --shadow:0 18px 48px rgba(43,13,77,.13);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html,body{margin:0;width:100%;height:100%;overflow:hidden;background:#13061f;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;color:var(--ink);-webkit-tap-highlight-color:transparent}
button,a{font:inherit}
button{cursor:pointer}
.kiosk,.screen{width:100%;height:100dvh;overflow:hidden}
.screen{display:none}.screen.active{display:block}
.app-shell{width:min(100%,1024px);height:100dvh;margin:0 auto;position:relative;overflow:hidden;display:flex;flex-direction:column;background:linear-gradient(180deg,#f9f4ff 0%,#efe6fb 100%)}
.brand-header{background:linear-gradient(135deg,#2B0D4D 0%,#401161 55%,#2B0D4D 100%);display:flex;align-items:center;justify-content:center;flex:0 0 auto;position:relative;z-index:3;box-shadow:0 8px 24px rgba(43,13,77,.18)}
.compact-header{height:clamp(100px,11dvh,150px);border-radius:0 0 48% 48% / 0 0 14% 14%}
.intro-header{height:clamp(150px,17dvh,230px);border-radius:0 0 50% 50% / 0 0 24% 24%}
.brand-logo{display:block;width:min(54%,420px);height:80%;object-fit:contain;filter:drop-shadow(0 4px 10px rgba(0,0,0,.14))}
.brand-logo-hero{width:min(68%,560px);height:82%}
.footer-strip{height:clamp(34px,4.2dvh,54px);background:var(--purple-dark);color:#fff;font-size:clamp(11px,1.2vw,16px);display:flex;align-items:center;justify-content:center;flex:0 0 auto;letter-spacing:.01em}
.content-panel{flex:1;min-height:0;padding:clamp(18px,2.2dvh,32px) clamp(28px,5vw,66px);display:flex;flex-direction:column;align-items:center;text-align:center;overflow:hidden}
.micro-label{font-size:clamp(12px,1.2vw,17px);font-weight:950;letter-spacing:.15em;margin:0 0 10px;color:#fff}.micro-label.purple{color:var(--purple);font-size:clamp(11px,1.1vw,15px)}
h1,h2,p{margin-top:0}
h1{margin:0;color:#fff;font-weight:1000;font-size:clamp(58px,7.2dvh,96px);line-height:.88;letter-spacing:-.055em;text-align:left;text-shadow:0 5px 16px rgba(0,0,0,.18)}h1 span{color:#51e889}
h2{margin:0;color:var(--purple-dark);font-weight:1000;font-size:clamp(42px,4.7dvh,66px);line-height:.98;letter-spacing:-.04em}.lead{font-size:clamp(20px,2.1dvh,28px);line-height:1.35;color:var(--muted);margin-bottom:14px}.lead.small{font-size:clamp(16px,1.75dvh,22px)}
.btn{border:0;border-radius:18px;min-height:clamp(58px,6.2dvh,82px);width:min(100%,620px);padding:0 28px;font-weight:1000;font-size:clamp(18px,2dvh,26px);letter-spacing:.01em;display:flex;align-items:center;justify-content:center;gap:14px;box-shadow:0 9px 22px rgba(43,13,77,.08)}.btn span{font-size:1.3em}.btn-green{background:linear-gradient(180deg,#32d77b,#20bd64);color:#fff}.btn-white{background:#fff;color:var(--purple-dark);border:1px solid #ddd2ec}.btn:active{transform:translateY(1px) scale(.994)}

/* Início */
.intro-shell{background:linear-gradient(180deg,#2B0D4D 0%,#421264 80%,#2B0D4D 100%);color:#fff}.intro-art{position:absolute;inset:11% 0 4%;opacity:.7;background:repeating-linear-gradient(135deg,transparent 0 72px,rgba(106,44,145,.50) 72px 104px,transparent 104px 142px),repeating-linear-gradient(25deg,transparent 0 120px,rgba(40,199,111,.20) 120px 142px,transparent 142px 210px);transform:skewY(-3deg);pointer-events:none}.intro-content{position:relative;z-index:2;flex:1;min-height:0;padding:clamp(28px,4dvh,56px) clamp(48px,8vw,92px);display:flex;flex-direction:column;align-items:flex-start;justify-content:center}.intro-lead{color:#efe3f8;text-align:left;max-width:690px;margin:26px 0 30px}.intro-content .btn{align-self:center}

/* Quiz */
.quiz-panel{justify-content:flex-start}.quiz-topline{width:100%;display:grid;grid-template-columns:70px 1fr;align-items:center;color:var(--purple-dark);font-size:clamp(13px,1.35dvh,18px);font-weight:900;letter-spacing:.06em;margin-bottom:10px}.back-button{justify-self:start;width:52px;height:52px;border:0;background:transparent;color:var(--purple-dark);font-size:34px}.dot-progress{width:min(92%,650px);display:grid;grid-template-columns:repeat(4,1fr);align-items:center;gap:0;margin:0 auto clamp(18px,2.5dvh,32px)}.progress-dot{height:5px;background:#cdbbe7;position:relative}.progress-dot:first-child{border-radius:999px 0 0 999px}.progress-dot:last-child{border-radius:0 999px 999px 0}.progress-dot::after{content:"";position:absolute;right:-7px;top:50%;transform:translateY(-50%);width:13px;height:13px;border-radius:50%;background:#eee7f8;border:2px solid #a98bcf;z-index:2}.progress-dot.done,.progress-dot.active{background:var(--green)}.progress-dot.done::after,.progress-dot.active::after{background:var(--green);border-color:var(--green)}.question-block{margin-bottom:clamp(20px,2.8dvh,38px);width:100%}.question-block h2{font-size:clamp(40px,4.5dvh,62px);max-width:760px;margin:auto}.answers{width:min(100%,700px);display:grid;gap:clamp(12px,1.5dvh,20px);margin:auto 0}.answer{width:100%;min-height:clamp(76px,8.3dvh,108px);border:2px solid #dccff0;border-radius:20px;background:#fff;display:grid;grid-template-columns:18px 1fr 34px;align-items:center;text-align:left;padding:0 22px;color:var(--purple-dark);font-weight:900;font-size:clamp(20px,2.05dvh,28px);box-shadow:0 8px 18px rgba(43,13,77,.04)}.answer .answer-marker{width:10px;height:10px;border-radius:50%;background:#bda8da}.answer .radio{width:24px;height:24px;border-radius:50%;border:2px solid #a48bc8;justify-self:end}.answer.selected{border-color:var(--green);box-shadow:0 0 0 2px rgba(40,199,111,.08)}.answer.selected .radio{border-color:var(--green);box-shadow:inset 0 0 0 5px #fff;background:var(--green)}.answer.selected .answer-marker{background:var(--green)}.key-hint{margin:14px 0 0;color:#6a5a7d;font-size:12px}

/* Camera */
.camera-panel{padding-top:10px}.step-line{width:100%;display:flex;justify-content:flex-end;color:var(--purple-dark);font-size:13px;margin-bottom:4px}.step-line b{display:flex;align-items:center;gap:7px}.step-line i{display:inline-block;width:9px;height:9px;background:var(--green);border-radius:50%}.camera-panel h2{font-size:clamp(38px,4.2dvh,58px);margin-bottom:8px}.camera-frame{position:relative;width:min(100%,650px);flex:1;min-height:300px;max-height:58dvh;border-radius:26px;overflow:hidden;background:#190d22;box-shadow:var(--shadow);border:3px solid rgba(255,255,255,.9)}.camera-frame video,.camera-frame>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;background:#190d22;transform:scaleX(-1)}.camera-corners{position:absolute;inset:28px;pointer-events:none;background:linear-gradient(#fff,#fff) left top/42px 3px no-repeat,linear-gradient(#fff,#fff) left top/3px 42px no-repeat,linear-gradient(#fff,#fff) right top/42px 3px no-repeat,linear-gradient(#fff,#fff) right top/3px 42px no-repeat,linear-gradient(#fff,#fff) left bottom/42px 3px no-repeat,linear-gradient(#fff,#fff) left bottom/3px 42px no-repeat,linear-gradient(#fff,#fff) right bottom/42px 3px no-repeat,linear-gradient(#fff,#fff) right bottom/3px 42px no-repeat}.camera-controls{display:flex;align-items:center;justify-content:center;gap:18px;margin:10px 0 7px}.round-control{min-width:92px;height:54px;padding:0 14px;border-radius:999px;border:1px solid #d9cbea;background:#fff;color:var(--purple);font-size:13px;font-weight:900;letter-spacing:.04em}.camera-main{min-width:100px;height:88px;padding:0 16px;border-radius:999px;border:8px solid #fff;background:var(--purple);box-shadow:0 0 0 2px #c5acdf,0 8px 20px rgba(43,13,77,.2);font-size:17px;font-weight:1000;color:#fff;letter-spacing:.06em}.secondary-action{min-height:58px}.camera-note{font-size:15px;color:#4e3e62;margin:4px 0 0}.status{min-height:20px;font-size:14px;color:var(--muted);margin:6px 0}

/* Resultado */
.result-panel{padding-top:10px}.result-panel h2{font-size:clamp(38px,4.1dvh,58px);margin-bottom:6px}.poster-shell{height:min(58dvh,720px);aspect-ratio:2/3;background:#2B0D4D;border-radius:20px;overflow:hidden;box-shadow:var(--shadow);margin:4px auto 8px}.poster-shell canvas{display:block;width:100%;height:100%}.result-summary{font-size:14px;color:#6c5a80;margin:2px 0 8px}.stack-actions{width:min(100%,620px);display:grid;gap:10px;margin-top:auto}

/* NPS */
.nps-shell::after{content:"";position:absolute;left:-10%;right:-10%;bottom:3%;height:23%;z-index:0;background:linear-gradient(165deg,transparent 0 30%,rgba(177,149,231,.35) 31% 48%,transparent 49%),linear-gradient(190deg,transparent 0 36%,rgba(106,44,145,.28) 37% 56%,transparent 57%);pointer-events:none}.nps-panel{position:relative;z-index:1;padding-top:10px}.nps-panel h2{font-size:clamp(42px,4.6dvh,64px);margin:18px 0 12px}.nps-scale-wrap{width:min(100%,760px);margin-top:clamp(28px,4dvh,58px)}.nps-grid{display:grid;grid-template-columns:repeat(11,minmax(0,1fr));gap:6px;background:#fff;border:1px solid #d8caea;border-radius:14px;padding:7px}.nps-grid button{min-width:0;aspect-ratio:1/1;border:0;background:transparent;border-radius:9px;color:var(--purple-dark);font-weight:950;font-size:clamp(15px,1.75dvh,22px)}.nps-grid button.selected{background:var(--green);color:white}.nps-labels{display:flex;justify-content:space-between;font-size:12px;font-weight:800;margin-top:8px;color:#665775}

/* QR */
.qr-panel{padding-top:10px}.qr-panel h2{font-size:clamp(42px,4.7dvh,66px);margin:14px 0 10px}.qr-card{width:min(70%,430px);aspect-ratio:1;background:#fff;border:3px solid var(--green);border-radius:24px;display:grid;place-items:center;padding:18px;box-shadow:var(--shadow);margin:10px 0}.qr-box{width:100%;height:100%;display:grid;place-items:center}.qr-box img{display:block;max-width:100%;max-height:100%;width:100%;height:100%;object-fit:contain;image-rendering:pixelated}.direct-link{color:var(--purple);font-weight:900;text-decoration:underline}.qr-actions{margin-top:4px}.qr-note{margin:10px 0 0;font-size:14px;color:#514161}

@media(max-width:640px){
 .compact-header{height:86px}.intro-header{height:112px}.brand-logo{width:60%}.brand-logo-hero{width:72%}.content-panel{padding:14px 18px}.intro-content{padding:22px 28px}.intro-content h1{font-size:48px}.question-block h2,h2{font-size:32px}.answer{min-height:62px;grid-template-columns:14px 1fr 26px;padding:0 14px;font-size:17px}.camera-main{min-width:82px;height:74px;font-size:14px}.round-control{min-width:78px;height:46px;font-size:11px}.nps-grid{gap:2px;padding:4px}.nps-grid button{font-size:14px;border-radius:6px}.qr-card{width:min(76%,330px)}.poster-shell{height:min(52dvh,560px)}
}

/* ===== V6.6 — responsividade real: celular + totem ===== */
html,body,.kiosk,.screen,.app-shell{
  height:100vh;
  height:100svh;
  height:100dvh;
}

/* As respostas ficam ligadas à pergunta, em vez de descerem para o meio/fim da tela. */
.answers{margin:0 auto;align-self:center}
.quiz-panel{justify-content:flex-start}

/* A câmera não pode consumir a altura toda e empurrar os botões para fora. */
.camera-frame{flex:0 1 auto;aspect-ratio:3/4;height:min(52dvh,700px);min-height:0}
.camera-controls{width:100%;flex:0 0 auto}
.secondary-action{flex:0 0 auto}

@media (max-width:640px){
  .compact-header{height:72px;border-radius:0 0 34% 34% / 0 0 10% 10%}
  .intro-header{height:100px}
  .brand-logo{width:58%;height:82%}
  .brand-logo-hero{width:70%}
  .footer-strip{height:24px;font-size:9px}
  .content-panel{padding:8px 14px 6px}

  /* QUIZ */
  .quiz-panel{padding-top:6px;justify-content:flex-start}
  .quiz-topline{grid-template-columns:42px 1fr;margin-bottom:2px;font-size:10px;min-height:32px}
  .back-button{width:38px;height:32px;font-size:22px}
  .dot-progress{width:94%;margin:0 auto 8px}
  .progress-dot{height:3px}
  .progress-dot::after{width:9px;height:9px;right:-5px}
  .question-block{margin:0 0 10px}
  .question-block .micro-label{margin-bottom:4px;font-size:9px;letter-spacing:.12em}
  .question-block h2{font-size:25px;line-height:1.02;max-width:360px}
  .answers{width:100%;gap:8px;margin:0 auto}
  .answer{min-height:52px;padding:0 12px;grid-template-columns:12px 1fr 24px;border-radius:14px;font-size:15px}
  .answer .answer-marker{width:7px;height:7px}
  .answer .radio{width:19px;height:19px}
  .key-hint{margin:8px 0 0;font-size:9px}

  /* CÂMERA */
  .camera-panel{padding:5px 12px 5px}
  .step-line{font-size:9px;margin-bottom:2px;min-height:12px}
  .step-line i{width:6px;height:6px}
  .camera-panel h2{font-size:25px;line-height:1.02;margin:1px 0 3px}
  .camera-panel .lead.small{font-size:12px;margin:0 0 5px}
  .camera-frame{width:min(100%,330px);height:min(43dvh,360px);max-height:none;min-height:0;border-radius:18px;border-width:2px}
  .camera-corners{inset:16px;background-size:30px 2px,2px 30px,30px 2px,2px 30px,30px 2px,2px 30px,30px 2px,2px 30px}
  .camera-controls{display:flex;gap:7px;margin:6px 0 5px;padding:0 2px}
  .round-control,.camera-main{min-width:0!important;width:auto;flex:1 1 0;max-width:108px;padding:0 7px;letter-spacing:.02em}
  .round-control{height:42px;font-size:10px}
  .camera-main{height:52px;border-width:4px;font-size:11px;box-shadow:0 0 0 1px #c5acdf,0 5px 12px rgba(43,13,77,.16)}
  .secondary-action{width:min(100%,330px);min-height:44px;height:44px;border-radius:13px;font-size:14px;padding:0 12px}
  .camera-note{font-size:10px;margin:3px 0 0}
  .camera-panel .status{min-height:12px;margin:2px 0;font-size:10px}

  /* RESULTADO */
  .result-panel{padding:5px 12px 5px}
  .result-panel h2{font-size:25px;margin:1px 0 2px}
  .result-panel .lead.small{font-size:11px;margin-bottom:4px}
  .poster-shell{height:min(43dvh,390px);margin:2px auto 4px;border-radius:13px}
  .result-summary{font-size:9px;margin:1px 0 4px}
  .stack-actions{gap:5px;width:min(100%,350px)}
  .stack-actions .btn{min-height:42px;height:42px;border-radius:12px;font-size:13px;padding:0 12px}

  /* NPS */
  .nps-panel{padding:5px 12px}
  .nps-panel h2{font-size:27px;line-height:1.02;margin:6px 0}
  .nps-panel .lead.small{font-size:12px;margin-bottom:4px}
  .nps-scale-wrap{margin-top:14px;width:100%}
  .nps-grid{gap:2px;padding:4px}
  .nps-grid button{font-size:12px;border-radius:5px}
  .nps-labels{font-size:9px;margin-top:5px}

  /* QR */
  .qr-panel{padding:5px 12px}
  .qr-panel h2{font-size:27px;margin:5px 0 4px}
  .qr-panel .lead.small{font-size:11px;margin-bottom:5px}
  .qr-card{width:min(58vw,250px);margin:5px 0;padding:10px;border-radius:16px;border-width:2px}
  .qr-panel .status{font-size:10px;min-height:12px;margin:2px 0}
  .qr-note{font-size:10px;margin:4px 0 0}
}

/* Celulares baixos: iPhone SE, navegadores com barras grandes etc. */
@media (max-width:640px) and (max-height:760px){
  .compact-header{height:60px}
  .content-panel{padding-top:4px;padding-bottom:3px}
  .question-block h2{font-size:22px}
  .answer{min-height:45px;font-size:14px}
  .answers{gap:6px}
  .camera-frame{height:min(38dvh,285px)}
  .camera-panel h2{font-size:22px}
  .camera-main{height:46px}
  .round-control{height:38px}
  .secondary-action{height:40px;min-height:40px}
  .camera-note{display:none}
  .poster-shell{height:min(38dvh,310px)}
}

/* Totem / telas verticais grandes */
@media (min-width:641px) and (min-height:1000px){
  .quiz-panel .answers{margin-top:10px}
  .camera-frame{height:min(50dvh,690px)}
}
