/* V27 — cenário cinematográfico em tela ampla: todos os controles continuam sendo os do motor */
#veu.mm26-veil{padding:1.5vh 1vw;background:#02060eee;align-items:center;justify-content:center;z-index:100}
#modal.mm27-modal{width:min(1620px,98vw);height:min(920px,96dvh);max-height:96dvh;border:1px solid #4b6486;background:#061221;border-radius:18px;overflow:hidden;box-shadow:0 40px 110px #000c;padding:0}
.mm27-layout{position:relative;display:block;width:100%;height:100%;min-height:0;background:#061221;overflow:hidden}
.mm27-stage{position:absolute!important;inset:0!important;min-height:0!important;border:0!important;isolation:isolate;overflow:hidden}
.mm27-stage::before,.mm27-stage::after{display:none!important}
.mm27-stage>div{box-sizing:border-box}
.mm27-controls{position:absolute;z-index:10;display:flex;flex-direction:column;min-width:0;min-height:0;overflow:hidden;pointer-events:none}
.mm27-controls>*{pointer-events:auto}
.mm27-body{padding:15px 18px 16px!important;min-height:0;overflow-y:auto;overscroll-behavior:contain;background:rgba(4,14,30,.9);backdrop-filter:blur(16px);box-shadow:0 9px 38px #0007;border:1px solid #456588;border-radius:15px;scrollbar-color:#466b94 transparent}
.mm27-body h2{font-size:18px!important;line-height:1.15!important;margin:0 0 8px!important}
.mm27-body p{font-size:13px!important;line-height:1.35!important;margin:8px 0!important}
.mm27-body .mut{color:#b4cfe6!important}
.mm27-body .res{padding:12px!important;margin:6px 0!important;font-size:13px!important;line-height:1.35!important}
.mm27-body .opt{padding:10px 12px!important;font-size:13px!important;line-height:1.22!important;margin:6px 0!important;border-radius:10px!important;min-height:48px}
.mm27-body .opt small{font-size:11px!important;line-height:1.2!important;margin-top:4px!important}
.mm27-body .btn{padding:10px 13px!important;font-size:13px!important}
.mm27-body .row{margin-top:8px!important}
.mm27-body h3{font-size:13px!important;margin:11px 0 7px!important}
.mm27-body select,.mm27-body input{font-size:13px!important}
/* Debate – full-bleed TV set */
.mm27-studio-scene{position:absolute;inset:0;background-image:linear-gradient(180deg,#03142b22,#03142b05 55%,#020710a8),url('../assets/estudio_debate_v27.webp');background-size:cover;background-position:center;filter:saturate(1.19)}
.mm27-studio-head{position:absolute;top:24px;left:28px;right:26px;display:flex;justify-content:space-between;gap:20px;color:white;text-shadow:0 3px 10px #000b}
.mm27-studio-head h2{font-size:clamp(23px,2.9vw,39px);line-height:1;margin:0;font-weight:1000;letter-spacing:-.04em}
.mm27-studio-head div div{font-size:13px;margin-top:6px;color:#e6f3ff}
.mm27-onair{font-size:12px;font-weight:900;padding:10px 12px;background:#c1162d;border-radius:10px;height:max-content;white-space:nowrap}
.mm27-topic{position:absolute;top:18px;left:42%;width:21%;min-width:220px;text-align:center;border:1px solid #355575;border-radius:11px;background:#06172de8;padding:10px 14px;box-shadow:0 8px 30px #0008}
.mm27-topic small{color:#9bb8d7;font-size:10px;display:block;letter-spacing:.12em;font-weight:900}
.mm27-topic b{display:block;color:white;font-size:clamp(15px,1.4vw,20px);margin-top:3px;line-height:1.2}
.mm27-topic span{display:block;color:#b7d0ec;font-size:10px;margin-top:3px}
.mm27-topic-list{position:absolute;left:20px;top:100px;width:215px;max-height:50%;overflow:hidden;border-radius:15px;border:1px solid #3e6284;background:#06192fe5;backdrop-filter:blur(12px);padding:12px 10px;box-shadow:0 20px 30px #0006}
.mm27-topic-list h3,.mm27-reactions h3{font-size:11px;letter-spacing:.08em;color:#d9e9fa;margin:0 0 12px}
.mm27-topic-item{display:flex;align-items:center;gap:10px;border-radius:9px;padding:9px 8px;margin:3px 0;font-size:12px;color:#d1e5f9;line-height:1.2;font-weight:800}
.mm27-topic-item i{width:12px;height:12px;flex:none;border:1px solid #8daeca;border-radius:50%}
.mm27-topic-item.active{background:linear-gradient(90deg,#0260d7,#1249a2);box-shadow:inset 0 0 0 1px #529aff;color:#fff}
.mm27-topic-item.active i{background:#5be4ff;border-color:#b9f3ff;box-shadow:0 0 10px #2fd4ff}
.mm27-reactions{position:absolute;right:20px;top:112px;width:228px;max-height:46%;padding:14px;border:1px solid #2e577b;border-radius:14px;background:#06192fe9;backdrop-filter:blur(12px);box-shadow:0 20px 30px #0007}
.mm27-mood{display:flex;justify-content:space-between;gap:6px;color:#dff7ff}.mm27-mood b{font-size:25px;color:#57e2a8}.mm27-mood b:nth-child(2){color:#f4ca59}.mm27-mood b:nth-child(3){color:#ff6577}
.mm27-mood strong{display:block;text-align:center;font-size:16px;color:#fff}.mm27-reactions svg{width:100%;height:60px;margin:10px 0}.mm27-reactions p{font-size:11px;color:#b7cce1;line-height:1.4;margin:0}
.mm27-layout.debate .mm27-controls{bottom:13px;left:clamp(240px,25%,390px);right:clamp(240px,21%,340px);height:min(370px,47%)}
.mm27-response-heading{display:flex;align-items:center;gap:10px;padding:9px 14px;border:1px solid #486284;border-radius:13px 13px 0 0;background:#06172ddd;backdrop-filter:blur(9px);font-size:14px;font-weight:900;color:white}
.mm27-response-heading span{color:#4cedb6;font-size:10px;letter-spacing:.06em}
.mm27-layout.debate .mm27-body{flex:1;border-radius:0 0 13px 13px}
.mm27-layout.debate .mm27-body .opt{width:calc(33.333% - 9px);display:inline-flex;vertical-align:top;flex-direction:column;justify-content:center;min-height:75px;margin-right:7px!important;padding:10px!important;border-left-width:1px!important;text-align:center;align-items:center}
.mm27-layout.debate .mm27-body .opt:nth-of-type(3n){margin-right:0!important}
.mm27-layout.debate .mm27-body .btn.pri{background:#1468e5!important;min-width:160px!important}
/* Convenção — backdrop, dynamic party LED screen, character and choices */
.mm27-conv-base{position:absolute;inset:0;background:linear-gradient(90deg,#020a19a6 0%,#020a194f 50%,#020a1966 100%),url('../assets/convencao_base_v27.webp') center 38%/cover no-repeat;filter:saturate(1.12)}
.mm27-conv-wall{position:absolute;top:7%;right:9%;width:50%;min-height:31%;padding:18px 20px;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:linear-gradient(140deg,color-mix(in srgb,var(--party-color) 90%,#0f1122),color-mix(in srgb,var(--party-color) 49%,#0a1736));box-shadow:0 10px 60px #0009,inset 0 0 55px #0004;border:4px solid #ffffff38;border-radius:5px;transform:perspective(1200px) rotateY(-1deg)}
.mm27-conv-wall:before{content:"";position:absolute;inset:12px;border:1px solid #ffffff30;pointer-events:none}
.mm27-conv-wall small{font-weight:900;letter-spacing:.15em;font-size:12px;color:#fff}
.mm27-conv-wall b{font-size:clamp(50px,9vw,136px);line-height:1;font-weight:1000;text-shadow:0 5px 15px #0006;letter-spacing:-.05em;max-width:100%;overflow:hidden}
.mm27-conv-wall span{font-size:clamp(11px,1.4vw,20px);font-weight:800;color:#fff9}
.mm27-conv-flags{position:absolute;bottom:15%;left:40%;right:6%;display:flex;align-items:center;justify-content:space-between;gap:8px;pointer-events:none}
.mm27-conv-flags span{display:block;background:var(--party-color);border:2px solid #fff9;padding:12px 18px;transform:rotate(-9deg);box-shadow:0 12px 25px #0008;color:#fff;font-weight:1000;font-size:18px;max-width:160px;overflow:hidden}
.mm27-conv-flags span:nth-child(2){transform:rotate(11deg)}
.mm27-party-lead{position:absolute;top:24px;left:24px;width:35%;color:#fff;z-index:2;text-shadow:0 3px 12px #000c}
.mm27-official{display:inline-flex;gap:6px;font-weight:900;font-size:11px;letter-spacing:.10em;background:color-mix(in srgb,var(--party-color) 60%,#080e20);padding:9px 12px;border-radius:999px;border:1px solid #ffffff50}
.mm27-party-lead h2{font-size:clamp(23px,2.4vw,34px);margin:13px 0 7px;line-height:1.06;font-weight:1000}
.mm27-party-lead p{font-weight:700;font-size:12px;margin:0 0 10px;color:#fff7}
.mm27-party-lead div:last-child{font-size:13px;font-weight:900;background:#07172bbf;border:1px solid #ffffff32;border-radius:8px;padding:9px 12px;display:inline-block}
.mm27-person-holder{position:absolute;right:15%;bottom:17%;width:20%;height:41%;z-index:2;display:flex;flex-direction:column;align-items:stretch;filter:drop-shadow(0 15px 25px #000a)}
.mm27-person-holder .mm27-character{width:100%;height:calc(100% - 48px);object-fit:cover;object-position:center 20%;border-radius:42% 42% 8px 8px;border:3px solid #fff8;box-shadow:0 10px 28px #0009;background:#071830}
.mm27-person-caption{text-align:center;background:#05182aeb;border:1px solid #5a759b;border-radius:7px;padding:6px;min-height:48px}
.mm27-person-caption b{display:block;font-size:14px}.mm27-person-caption small{display:block;font-size:10px;color:#b6d1e9}
.mm27-layout.convencao .mm27-controls{bottom:13px;left:22px;top:32%;width:clamp(360px,36%,560px)}
.mm27-stage-list{flex:none;display:grid;gap:3px;padding:12px;background:rgba(4,16,35,.91);border:1px solid #40658d;border-radius:14px 14px 0 0;backdrop-filter:blur(12px);box-shadow:0 10px 28px #0007}
.mm27-list-title{font-weight:900;font-size:12px;letter-spacing:.09em;color:#c8e7ff;margin-bottom:5px}
.mm27-step{display:flex;gap:11px;align-items:center;min-height:32px;padding:6px 9px;color:#91aeca;font-size:12px;border:1px solid transparent;border-radius:10px}
.mm27-step span{flex:none;width:25px;height:25px;border-radius:50%;background:#233c58;display:grid;place-items:center;font-weight:900}
.mm27-step b{font-weight:750}.mm27-step.active{background:#1062ce;color:#fff;border-color:#388aff}.mm27-step.active span{background:#fff;color:#0756ac}
.mm27-layout.convencao .mm27-body{flex:1;border-radius:0 0 14px 14px;min-height:0}
.mm27-layout.convencao .mm27-body .opt{margin-bottom:5px!important}
/* Posse — high fidelity institutional scene and progress */
.mm27-posse-base{position:absolute;inset:0;background-image:linear-gradient(90deg,#0409139c 0%,#04091324 45%,#04091370 100%),url('../assets/posse_base_v27.webp');background-size:cover;background-position:center;filter:saturate(1.03)}
.mm27-posse-title{position:absolute;left:32px;top:22px;display:grid;gap:4px;text-shadow:0 3px 10px #0009}
.mm27-posse-title b{font-size:clamp(27px,2.9vw,45px);line-height:1;letter-spacing:-.05em}.mm27-posse-title span{color:#e2effe;font-size:14px}
.mm27-pose-card{position:absolute;top:17%;right:7%;height:57%;width:25%;display:flex;flex-direction:column;align-items:stretch;background:linear-gradient(180deg,#0f2f4c55,#02101bd9);border:1px solid #a5bbdc55;border-radius:20px;padding:8px;box-shadow:0 18px 35px #0009}
.mm27-pose-photo{height:calc(100% - 63px);border-radius:13px;overflow:hidden;background:#0a1e38}.mm27-pose-photo img{width:100%;height:100%;object-fit:cover;object-position:center 22%}
.mm27-pose-foot{display:grid;padding:9px 10px;gap:3px}.mm27-pose-foot b{font-size:16px;color:white;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mm27-pose-foot span{font-size:11px;color:#cde4f8}
.mm27-layout.posse .mm27-controls{left:22px;bottom:24px;top:22%;width:clamp(380px,42%,660px)}
.mm27-layout.posse .mm27-body{flex:1;border-radius:0 0 14px 14px;min-height:0}
.mm27-layout.posse .mm27-stage-list{max-height:230px}
.mm27-layout.posse .mm27-step{min-height:29px;padding:5px 10px}
.mm27-layout.posse .mm27-body .mm26-ceremony-stage .quote{font-size:13px;line-height:1.38;padding:12px}
/* Demo controls */
.mm27-demo-config{margin-top:10px!important;padding:10px;border:1px solid #435e79;border-radius:12px;background:#0d2841}
.mm27-demo-config label{min-width:160px!important;flex:1}
.mm27-demo-config select,.mm27-demo-config input{background:#102b46;color:white;border:1px solid #597895;border-radius:9px;font:inherit;padding:10px;width:100%;max-width:250px}
@media(max-width:1100px){
 .mm27-topic-list{width:165px;top:104px}.mm27-reactions{width:176px;right:13px}.mm27-layout.debate .mm27-controls{left:182px;right:188px;height:45%}
 .mm27-conv-wall{right:4%;width:53%}.mm27-person-holder{right:13%;width:23%}
}
@media(max-width:760px){
 #veu.mm26-veil{padding:0;align-items:stretch}
 #modal.mm27-modal{height:100dvh;max-height:100dvh;width:100vw;border-radius:0}
 .mm27-studio-head{top:13px;left:14px}.mm27-studio-head h2{font-size:23px}.mm27-onair{font-size:10px;padding:8px}
 .mm27-topic{top:77px;left:42%;min-width:0;width:55%;padding:8px;font-size:12px}
 .mm27-topic-list{top:130px;left:10px;width:35%;max-height:28%;padding:8px}.mm27-topic-item{font-size:10px;padding:5px}.mm27-topic-list h3{font-size:9px}
 .mm27-reactions{top:180px;right:8px;width:28%;padding:8px}.mm27-reactions h3{font-size:9px}.mm27-reactions p{display:none}.mm27-mood b{font-size:13px}.mm27-mood strong{font-size:11px}
 .mm27-layout.debate .mm27-controls{left:8px;right:8px;bottom:8px;height:58%}
 .mm27-layout.debate .mm27-body .opt{width:100%;display:flex;min-height:38px;align-items:flex-start!important;text-align:left!important}
 .mm27-party-lead{top:15px;left:13px;width:48%}.mm27-party-lead h2{font-size:22px}.mm27-conv-wall{top:13%;right:3%;width:66%;min-height:19%}.mm27-conv-wall b{font-size:clamp(32px,10vw,70px)}
 .mm27-person-holder{top:35%;bottom:auto;right:8%;width:30%;height:23%}
 .mm27-layout.convencao .mm27-controls{left:8px;right:8px;bottom:8px;top:60%;width:auto}.mm27-stage-list{display:none}
 .mm27-posse-title{left:15px;top:14px}.mm27-pose-card{right:8%;top:12%;height:27%;width:36%}
 .mm27-layout.posse .mm27-controls{left:8px;right:8px;top:42%;bottom:8px;width:auto}.mm27-layout.posse .mm27-stage-list{display:none}
 .mm27-body{padding:12px!important}.mm27-body h2{font-size:18px!important}
}
@media(prefers-reduced-motion:reduce){.mm27-studio-scene,.mm27-person-holder{animation:none}}
/* Final readability fixes: party-neutral photoreal backplates, game-controlled branding. */
.mm27-conv-base{filter:none;background-image:linear-gradient(90deg,#020a1fd6 0%,#020a1f44 40%,#020a1f70 100%),url('../assets/convencao_base_v27.webp')}
.mm27-stage.convencao::before{display:block!important;content:"";position:absolute;inset:0;z-index:-1;background:radial-gradient(circle at 63% 25%,color-mix(in srgb,var(--party-color) 44%,transparent),transparent 44%),linear-gradient(90deg,#0000, color-mix(in srgb,var(--party-color) 32%,transparent));pointer-events:none}
.mm27-posse-base{filter:none;background-image:linear-gradient(90deg,#040a19af,#040a1930,#040a198d),url('../assets/posse_base_v27.webp')}
.mm27-studio-scene{background-image:linear-gradient(180deg,#020e20a6 0%,#020e2040 30%,#020e2010 50%,#020e20ad 100%),url('../assets/estudio_debate_v27.webp')}
.mm27-studio-year{position:absolute;top:30%;left:42%;width:20%;min-height:18%;background:linear-gradient(145deg,#124ab6,#0756db 50%,#0b318e);border:2px solid #8bc3ff78;box-shadow:0 2px 28px #0008,inset 0 0 25px #ffffff1c;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;font-weight:1000;text-shadow:0 3px 12px #0d2a7a;color:white;text-align:center;border-radius:4px}
.mm27-studio-year b{font-size:clamp(22px,3.4vw,58px);letter-spacing:-.04em;line-height:.95}
.mm27-studio-year span{font-size:clamp(24px,4vw,64px);line-height:1}
@media(max-width:760px){.mm27-studio-year{top:24%;left:40%;width:26%;min-height:14%}.mm27-studio-year b{font-size:18px}.mm27-studio-year span{font-size:24px}}
/* Atmosphere: lighting and photographic crowd without static party branding. */
.mm27-layout.convencao .mm27-stage::after{content:"";position:absolute;inset:0;pointer-events:none;background:radial-gradient(ellipse 22% 55% at 28% -10%,#ffffff47,transparent),radial-gradient(ellipse 18% 45% at 52% -10%,#ffdd8a32,transparent),radial-gradient(ellipse 18% 45% at 78% -10%,#aad9ff3a,transparent);z-index:1}
.mm27-layout.convencao .mm27-conv-wall,.mm27-layout.convencao .mm27-person-holder,.mm27-layout.convencao .mm27-conv-flags,.mm27-layout.convencao .mm27-party-lead{z-index:2}
.mm27-layout.posse .mm27-stage::after{content:"";position:absolute;left:0;right:0;bottom:0;height:23%;background:linear-gradient(180deg,transparent,#020b18c9);pointer-events:none}

/* V28 ajustes finos — convenção mais larga e debate sem repetição visual */
.mm27-layout.convencao .mm27-controls{
  left:20px;
  top:30%;
  bottom:16px;
  width:clamp(500px,44%,720px);
}
.mm27-layout.convencao .mm27-body{
  background:rgba(4,14,30,.94);
}
.mm27-layout.convencao .mm27-body .row{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:10px!important;
  align-items:center!important;
}
.mm27-layout.convencao .mm27-body .opt,
.mm27-layout.convencao .mm27-body .res{
  overflow:hidden;
}
.mm27-layout.convencao .mm27-body .opt{
  padding:12px 14px 13px!important;
  line-height:1.25!important;
}
.mm27-layout.convencao .mm27-body .opt small{
  margin-top:6px!important;
  line-height:1.35!important;
}
.mm27-layout.convencao .mm27-body .tag,
.mm27-layout.convencao .mm27-body .res .tag{
  background:#163454!important;
  color:#eaf4ff!important;
  border-color:#4e7398!important;
  font-size:10px!important;
  padding:2px 7px!important;
  margin:2px 4px 2px 0!important;
  vertical-align:middle!important;
  white-space:nowrap!important;
}
.mm27-layout.convencao .mm27-body .opt .tag[style*='var(--red)']{
  background:#b61f34!important;
  border-color:#e15b6d!important;
  color:#fff!important;
}
.mm27-layout.convencao .mm27-body input,
.mm27-layout.convencao .mm27-body select{
  max-width:100%;
}
.mm27-party-lead{
  width:min(34%,420px);
}
.mm27-conv-wall{
  top:6%;
  right:4%;
  width:56%;
  min-height:27%;
}
.mm27-conv-flags{
  left:46%;
  right:4%;
  bottom:16%;
}
.mm27-person-holder{
  right:12%;
  bottom:15%;
  width:19%;
  height:38%;
}

/* Debate */
.mm27-layout.debate .mm27-controls{
  bottom:14px;
  left:clamp(300px,27%,430px);
  right:clamp(250px,19%,340px);
  height:min(380px,48%);
}
.mm27-layout.mode-debate_ask .mm27-controls{
  left:clamp(370px,35%,560px);
  right:18px;
  top:110px;
  bottom:18px;
  height:auto;
}
.mm27-layout.mode-debate_ask .mm27-body,
.mm27-layout.mode-debate_answer .mm27-body,
.mm27-layout.mode-debate .mm27-body,
.mm27-layout.mode-debate_intro .mm27-body,
.mm27-layout.mode-debate_end .mm27-body{
  background:rgba(4,14,30,.96);
}
.mm27-layout.mode-debate_ask .mm27-body h2:first-child,
.mm27-layout.mode-debate_ask .mm27-body > p.mut.sm:first-of-type,
.mm27-layout.mode-debate .mm27-body h2:first-child,
.mm27-layout.mode-debate_answer .mm27-body h2:first-child,
.mm27-layout.mode-debate_intro .mm27-body h2:first-child,
.mm27-layout.mode-debate_end .mm27-body h2:first-child{
  display:none!important;
}
.mm27-layout.mode-debate_ask .mm27-body .opt{
  width:100%!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  text-align:left!important;
  min-height:72px!important;
  margin-right:0!important;
  margin-bottom:8px!important;
  padding:12px 14px!important;
}
.mm27-layout.mode-debate_ask .mm27-body .row{
  justify-content:flex-end!important;
  gap:8px!important;
  flex-wrap:wrap!important;
}
.mm27-layout.mode-debate_ask .mm27-body .btn,
.mm27-layout.mode-debate_answer .mm27-body .btn,
.mm27-layout.mode-debate .mm27-body .btn{
  min-width:160px;
}
.mm27-layout.mode-debate_ask .mm27-body select{
  width:100%;
  max-width:360px;
}
.mm27-layout.mode-debate_ask .mm27-body .sm,
.mm27-layout.mode-debate .mm27-body .sm,
.mm27-layout.mode-debate_answer .mm27-body .sm{
  line-height:1.35!important;
}
.mm27-layout.mode-debate_ask .mm27-response-heading b{font-size:16px}

/* Mobile refinements */
@media(max-width:1100px){
  .mm27-layout.convencao .mm27-controls{width:clamp(430px,48%,620px)}
}
@media(max-width:760px){
  .mm27-layout.convencao .mm27-controls{left:8px;right:8px;top:52%;bottom:8px;width:auto}
  .mm27-party-lead{width:52%}
  .mm27-conv-wall{width:64%;right:3%;min-height:18%}
  .mm27-conv-flags{left:38%;right:3%;bottom:20%}
  .mm27-person-holder{top:34%;right:6%;width:34%;height:24%}
  .mm27-layout.mode-debate_ask .mm27-controls,
  .mm27-layout.debate .mm27-controls{left:8px;right:8px;top:auto;bottom:8px;height:58%}
}
