/* Meu Mandato V29 — convenção, debate por emissora, falas da apuração */
#veu.mm29-veil{background:rgba(2,8,18,.84);backdrop-filter:blur(10px);padding:2vh 12px;z-index:85}
#modal.mm29-modal{width:min(1180px,calc(100vw - 24px))!important;max-width:none!important;max-height:95vh;max-height:95dvh;padding:0!important;overflow:hidden;border:1px solid #2f4a68;border-radius:18px;background:#0a1626;color:#eef4fb;box-shadow:0 30px 90px rgba(0,0,0,.6)}
#modal.mm29-modal *{box-sizing:border-box}
.mm29-wrap{display:flex;flex-direction:column;max-height:95vh;max-height:95dvh;min-height:0;--pc:#1b72ba}

/* palco (comum) */
.mm29-stage{position:relative;overflow:hidden;flex:none;isolation:isolate}
.mm29-svg{position:absolute;inset:0;width:100%;height:100%;z-index:1}
.mm29-chip{position:absolute;z-index:3;top:12px;left:14px;display:flex;align-items:center;gap:10px;padding:7px 12px;border-radius:999px;background:rgba(0,0,0,.55);color:#fff;font-size:13px;backdrop-filter:blur(6px)}
.mm29-live{color:#ff5a6a;font-weight:900;font-size:11px;letter-spacing:.06em;animation:mm29-pulse 1.6s infinite}
@keyframes mm29-pulse{50%{opacity:.45}}
.mm29-year{position:absolute;z-index:3;top:12px;right:14px;padding:7px 12px;border-radius:10px;background:rgba(0,0,0,.55);color:#fff;font-size:12px;font-weight:800;letter-spacing:.08em}
.mm29-lower{position:relative;z-index:3;flex:none;width:100%;display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;padding:10px 18px 10px 16px;background:var(--lw,#0d3a74);color:var(--lwt,#fff);border-left:6px solid var(--lwa,#ffd23f);font-size:14px}
.mm29-lower b{font-size:15px}.mm29-lower .mm29-tp{display:none}.mm29-lower span{font-size:12px;opacity:.88}.mm29-lower .mm29-tp{flex-basis:100%;opacity:.75}

/* palco do debate por emissora */
.mm29-stage-deb{height:clamp(200px,31dvh,300px)}
.mm29-body .ao-vivo{display:none}
.mm29-deb[data-tema=globo]{--a:#2a8fd6;--lw:#ffffff;--lwt:#0b3a63;--lwa:#2a8fd6;--lec:#ffffffcc;--lecb:#7cc4f0;--lect:#0b3a63}
.mm29-deb[data-tema=globo] .mm29-stage-deb{background:linear-gradient(180deg,#e9f6ff 0%,#a9d8f6 55%,#6db9ea 100%)}
.mm29-deb[data-tema=cnn]{--a:#e3162d;--lw:#e3162d;--lwt:#fff;--lwa:#fff;--lec:#15151a;--lecb:#e3162d;--lect:#fff}
.mm29-deb[data-tema=cnn] .mm29-stage-deb{background:linear-gradient(180deg,#0a0a0d 0%,#2a0a10 55%,#4a0b15 100%)}
.mm29-deb[data-tema=sbt]{--a:#ffd23f;--lw:#0a2a73;--lwt:#fff;--lwa:#ffd23f;--lec:#eaf2ff;--lecb:#4a86ee;--lect:#0a2a73}
.mm29-deb[data-tema=sbt] .mm29-stage-deb{background:linear-gradient(180deg,#0b3a96 0%,#1b5bd0 60%,#2d74ee 100%)}
.mm29-deb[data-tema=band]{--a:#7a5cf0;--lw:#1a1250;--lwt:#fff;--lwa:#f5a623;--lec:#161047;--lecb:#7a5cf0;--lect:#fff}
.mm29-deb[data-tema=band] .mm29-stage-deb{background:linear-gradient(180deg,#07052a 0%,#1d1269 55%,#3a1f93 100%)}
.mm29-deb[data-tema=record]{--a:#19c3d9;--lw:#06566f;--lwt:#fff;--lwa:#7ff0ff;--lec:#ffffffe6;--lecb:#27c9e0;--lect:#06566f}
.mm29-deb[data-tema=record] .mm29-stage-deb{background:linear-gradient(180deg,#0a6d8c 0%,#12a6c2 55%,#3fd3e8 100%)}
.mm29-deb[data-tema=globo] .mm29-chip,.mm29-deb[data-tema=globo] .mm29-year{background:rgba(255,255,255,.8);color:#0b3a63}

/* painel (comum) */
.mm29-panel{min-height:0;flex:1 1 auto;display:flex;flex-direction:column;background:#0c1a2d;border-top:3px solid var(--a,var(--pc))}
.mm29-body{min-height:0;flex:1 1 auto;overflow-y:auto;overscroll-behavior:contain;padding:20px 24px 0;scrollbar-color:#46688f transparent;color:#eef4fb}
.mm29-body h2{font-size:clamp(19px,2.2vw,25px)!important;line-height:1.15!important;margin:0 0 6px!important;color:#fff!important}
.mm29-body h3{font-size:14px!important;color:#f2d78d!important;margin:16px 0 8px!important}
.mm29-body p{font-size:14px!important;line-height:1.5!important;margin:6px 0 10px!important;color:#c8d9ea}
.mm29-body .res{padding:14px 16px!important;margin:8px 0!important;font-size:14px!important;line-height:1.5!important;border-radius:12px;background:#12293f!important;border:1px solid #34536f!important;color:#eaf4ff!important}
.mm29-body .res.ok{background:#11382f!important;border-color:#26705f!important}
.mm29-body .res.ruim{background:#391c2a!important;border-color:#74384a!important}
.mm29-body .res b{color:#fff!important}
.mm29-body .mut,.mm29-body small{color:#b3c7dc!important}
.mm29-body .opt{display:block!important;width:100%;height:auto!important;overflow:visible!important;margin:0!important;padding:13px 15px!important;min-height:64px;font-size:14px!important;line-height:1.35!important;text-align:left;border-radius:12px!important;background:#12293f;color:#f1f7fc!important;border:1px solid #38566f!important;border-left:4px solid var(--a,var(--pc))!important}
.mm29-body .opt small{display:block!important;margin-top:4px!important;font-size:12px!important;line-height:1.35!important;font-weight:500;margin:0!important}
.mm29-body .opt:hover{background:#18354f}
.mm29-body .opt.sel,.mm29-body .opt.sel:hover{background:#1f4a73!important;border-color:#f8d370!important;border-left-color:#f8d370!important}
.mm29-body select,.mm29-body input,.mm29-body textarea{width:100%;max-width:100%;font-size:14px!important;padding:11px 12px;border-radius:10px;background:#0e2338;color:#eaf4ff;border:1px solid #4a6783}
.mm29-body .opts{display:grid;grid-template-columns:repeat(auto-fit,minmax(250px,1fr));gap:10px;margin:8px 0}
.mm29-deb .mm29-body{display:flex;flex-wrap:wrap;gap:10px;align-content:flex-start;padding-bottom:0}
.mm29-deb .mm29-body>*{flex:0 0 100%;margin-top:0;margin-bottom:0}
.mm29-deb .mm29-body>.opt{flex:1 1 calc(25% - 10px);min-width:230px;width:auto}
.mm29-body .btn{font-size:14px!important;padding:11px 18px!important;border-radius:11px;background:#16304b;color:#fff;border:1px solid #54748f}
.mm29-body .btn.pri{background:var(--a,#1b8a68);border-color:transparent;color:#fff}
.mm29-deb[data-tema=sbt] .mm29-body .btn.pri{color:#0a2a73}
.mm29-body>.row:last-child,.mm29-body>.opts~.row,.mm29-sticky{position:sticky;bottom:0;z-index:4;display:flex;flex-wrap:wrap;justify-content:flex-end;gap:10px;margin:14px -24px 0!important;padding:12px 24px 16px!important;background:linear-gradient(180deg,rgba(12,26,45,0),#0c1a2d 28%)}
.mm29-deb .mm29-body>.row:last-child{margin:0 -24px!important;flex:0 0 calc(100% + 48px)}

/* painel claro para a Globo */
.mm29-deb[data-tema=globo] .mm29-panel{background:#eef7ff}
.mm29-deb[data-tema=globo] .mm29-body{color:#0b2f52}
.mm29-deb[data-tema=globo] .mm29-body h2{color:#0b3a63!important}
.mm29-deb[data-tema=globo] .mm29-body p,.mm29-deb[data-tema=globo] .mm29-body .mut,.mm29-deb[data-tema=globo] .mm29-body small{color:#3c5f80!important}
.mm29-deb[data-tema=globo] .mm29-body .res{background:#fff!important;border-color:#a9d3f0!important;color:#0b2f52!important}
.mm29-deb[data-tema=globo] .mm29-body .res b{color:#062c4d!important}
.mm29-deb[data-tema=globo] .mm29-body .res.ok{background:#e4f8ee!important;border-color:#8fd5b0!important}
.mm29-deb[data-tema=globo] .mm29-body .res.ruim{background:#fdebee!important;border-color:#eaa3ae!important}
.mm29-deb[data-tema=globo] .mm29-body .opt{background:#fff;color:#0b2f52!important;border-color:#b9dcf4!important;border-left-color:#2a8fd6!important}
.mm29-deb[data-tema=globo] .mm29-body .opt:hover{background:#f2f9ff}
.mm29-deb[data-tema=globo] .mm29-body .opt.sel,.mm29-deb[data-tema=globo] .mm29-body .opt.sel:hover{background:#d9eefc!important;border-color:#2a8fd6!important}
.mm29-deb[data-tema=globo] .mm29-body select,.mm29-deb[data-tema=globo] .mm29-body input{background:#fff;color:#0b2f52;border-color:#9cc8e8}
.mm29-deb[data-tema=globo] .mm29-body .btn{background:#fff;color:#0b3a63;border-color:#9cc8e8}
.mm29-deb[data-tema=globo] .mm29-body .btn.pri{background:#2a8fd6;color:#fff}
.mm29-deb[data-tema=globo] .mm29-body>.row:last-child{background:linear-gradient(180deg,rgba(238,247,255,0),#eef7ff 28%)}
.mm29-deb[data-tema=globo] .mm29-body h3{color:#0b3a63!important}

/* convenção */
.mm29-conv{display:grid;grid-template-columns:minmax(300px,.78fr) minmax(0,1.22fr);height:auto;min-height:min(660px,95dvh);max-height:95dvh}
.mm29-stage-conv{display:flex;flex-direction:column;align-items:center;padding:20px 20px 96px;background:radial-gradient(120% 70% at 50% 0%,color-mix(in srgb,var(--pc) 78%,#fff 0%) 0%,color-mix(in srgb,var(--pc) 45%,#050b18) 55%,#050b18 100%)}
.mm29-banner{width:100%;text-align:center;padding:14px 12px;border-radius:14px;background:rgba(0,0,0,.28);border:1px solid rgba(255,255,255,.28);color:#fff}
.mm29-banner small{display:block;font-size:11px;letter-spacing:.14em;font-weight:800;opacity:.9}
.mm29-banner b{display:block;font-size:clamp(30px,4vw,48px);line-height:1.05;letter-spacing:-.02em;margin:2px 0}
.mm29-banner span{display:block;font-size:12.5px;opacity:.92}
.mm29-flags{display:flex;justify-content:space-between;width:92%;margin-top:6px;opacity:.9}
.mm29-flags i{display:block;width:6px;height:60px;background:rgba(255,255,255,.5);border-radius:3px;position:relative}
.mm29-flags i::after{content:"";position:absolute;left:6px;top:2px;width:38px;height:26px;background:var(--pc);border:1px solid rgba(255,255,255,.6);filter:brightness(1.15)}
.mm29-cand{margin-top:6px;text-align:center;color:#fff}
.mm29-photo{width:clamp(110px,16dvh,150px);aspect-ratio:1;border-radius:50%;overflow:hidden;margin:0 auto;border:4px solid #fff;box-shadow:0 8px 28px rgba(0,0,0,.5);background:#24364d;display:flex;align-items:center;justify-content:center}
.mm29-photo img{width:100%;height:100%;object-fit:cover;object-position:50% 20%}
.mm29-photo em{font-style:normal;font-size:46px;font-weight:900}
.mm29-name{margin-top:10px}.mm29-name b{display:block;font-size:19px}.mm29-name small{display:block;font-size:12px;opacity:.9;letter-spacing:.06em}
.mm29-steps{list-style:none;margin:14px 0 0;padding:0;width:100%;display:grid;gap:5px;position:relative;z-index:2}
.mm29-steps li{display:flex;align-items:center;gap:9px;padding:6px 10px;border-radius:9px;background:rgba(0,0,0,.28);color:#e9f1fa;font-size:12.5px;font-weight:700}
.mm29-steps li span{flex:none;width:21px;height:21px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.18);font-size:11px}
.mm29-steps li.on{background:#fff;color:#0b2038}.mm29-steps li.on span{background:var(--pc);color:#fff}
.mm29-steps li.past span{background:#23b989;color:#fff}
.mm29-crowd{position:absolute;left:0;right:0;bottom:0;width:100%;height:84px;z-index:1;opacity:.85}
.mm29-conv .mm29-panel{border-top:0;border-left:3px solid var(--pc)}
.mm29-conv .mm29-body{padding:22px 26px 0}
.mm29-conv .mm29-body .opt{margin:0 0 8px!important}
.mm29-conv .mm29-body .tag{display:inline-block;margin-left:6px;vertical-align:middle}
.mm29-accordion,.mm29-conv .mm26-accordion{border:1px solid #2c4a66;border-radius:12px;margin:0 0 10px;overflow:hidden;background:#0d2037}
.mm29-conv .mm26-accordion summary{cursor:pointer;padding:13px 15px;background:#17304a;color:#fff;font-size:14px;font-weight:800;list-style:none;display:flex;justify-content:space-between}
.mm29-conv .mm26-accordion summary::after{content:'⌄';color:#eac963;font-size:18px}
.mm29-conv .mm26-accordion[open] summary{color:#f4d984}
.mm29-conv .mm26-acc-body{padding:12px 14px 14px}
.mm29-conv .mm26-acc-body h3{display:none}

/* telas pequenas */
@media(max-width:860px){
 #veu.mm29-veil{padding:0;align-items:flex-end}
 #modal.mm29-modal{width:100%!important;border-radius:16px 16px 0 0;max-height:97dvh}
 .mm29-wrap{max-height:97dvh}
 .mm29-stage-deb{height:clamp(150px,24dvh,210px)}
 .mm29-lower{max-width:100%;font-size:12.5px;padding:6px 12px}.mm29-lower b{font-size:13px}.mm29-lower .mm29-tp{display:none}
 .mm29-chip{top:8px;left:8px;padding:5px 9px;font-size:12px}.mm29-year{top:8px;right:8px;font-size:11px;padding:5px 9px}
 .mm29-body{padding:14px 14px 0}
 .mm29-body>.row:last-child,.mm29-body>.opts~.row{margin:12px -14px 0!important;padding:10px 14px 14px!important}
 .mm29-deb .mm29-body>.opt{flex-basis:100%}
 .mm29-deb .mm29-body>.row:last-child{margin:0 -14px!important;flex:0 0 calc(100% + 28px)}
 .mm29-conv{display:flex;flex-direction:column;height:auto;min-height:0;max-height:97dvh}
 .mm29-stage-conv{flex-direction:row;flex-wrap:wrap;align-items:center;justify-content:space-between;padding:12px 14px;gap:8px}
 .mm29-banner{flex:1 1 0;width:auto;text-align:left;padding:8px 12px}.mm29-banner b{font-size:26px}.mm29-banner span{display:none}
 .mm29-flags,.mm29-crowd,.mm29-steps{display:none}
 .mm29-cand{display:flex;align-items:center;gap:10px;margin:0;text-align:left}
 .mm29-photo{width:56px;border-width:2px}.mm29-photo em{font-size:22px}.mm29-name{margin:0}.mm29-name b{font-size:14px}
 .mm29-conv .mm29-panel{border-left:0;border-top:3px solid var(--pc)}
 .mm29-conv .mm29-body{padding:14px 14px 0}
}
@media(prefers-reduced-motion:reduce){.mm29-live{animation:none}}

/* falas da apuração: painel no topo, legível */
.mm29-apreac{margin:10px 0 12px;padding:12px 14px;border-radius:14px;background:#fff;border:1px solid #d8e0ea;color:#14263a;box-shadow:0 2px 10px rgba(0,0,0,.06)}
html[data-tema=escuro] .mm29-apreac,body.escuro .mm29-apreac,.dark .mm29-apreac{background:#14253a;border-color:#2c4a66;color:#eaf2fb}
.mm29-ap-top{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;opacity:.65;margin-bottom:6px}
.mm29-ap-main{display:flex;gap:11px;align-items:flex-start}
.mm29-ap-ico{flex:none;width:38px;height:38px;border-radius:50%;display:grid;place-items:center;background:rgba(30,110,200,.14);font-size:20px}
.mm29-ap-who{font-size:13px}.mm29-ap-who small{opacity:.7;margin-left:4px}
.mm29-ap-txt{font-size:15px;line-height:1.4;margin-top:2px}
.mm29-ap-ant{margin-top:8px;padding-top:8px;border-top:1px dashed rgba(120,140,160,.4);font-size:12.5px;opacity:.78;display:grid;gap:3px}

/* V29.1: rolagem garantida e etiquetas legíveis */
.mm29-conv{grid-template-rows:minmax(0,1fr)}
.mm29-conv .mm29-panel,.mm29-conv .mm29-stage-conv{min-height:0}
.mm29-conv .mm29-panel{overflow:hidden}
.mm29-conv .mm29-stage-conv{overflow:hidden}
.mm29-body{-webkit-overflow-scrolling:touch}
.mm29-body .tag:not([style]),.mm29-body .res .tag:not([style]){background:rgba(255,255,255,.16)!important;color:#f2f8ff!important;border:1px solid rgba(255,255,255,.3)!important}
.mm29-body .tag{font-weight:700}
.mm29-deb[data-tema=globo] .mm29-body .tag:not([style]){background:#d9eefc!important;color:#0b3a63!important;border-color:#9cc8e8!important}
@media(max-width:860px){.mm29-conv{grid-template-rows:none}}

/* V29.3: cabeçalho acompanha a largura de cada tela do jogo */
#topo .in{padding:0 16px;box-sizing:border-box}
body:has(.mmx12-root) #topo .in{max-width:1700px;padding:0 20px}
body:has(.mm-home) #topo .in{max-width:1440px;padding:0 22px}
body:has(.mm-create) #topo .in{max-width:1320px;padding:0 16px}
@media(max-width:850px){body:has(.mmx12-root) #topo .in{padding:0 10px}}
@media(max-width:650px){body:has(.mm-home) #topo .in{padding:0 10px}}

/* V29.4: removido o cartão grande de calendário (o avanço fica no topo e no "Próximo capítulo") */
.mmx12-date{display:none!important}

/* V29.5: cabeçalho no mesmo desenho e cor do banner do jogo */
#topo{background:#0f2f43;background-image:linear-gradient(180deg,#13374d,#0d2a3b);border-bottom:3px solid #f5c451;box-shadow:0 4px 0 #0a2230,0 8px 18px rgba(0,0,0,.18);padding:9px 16px}
#topo .logo{color:#fff}
#topo .logo b{color:#f5c451}
#topo .lgm{background:#fff;box-shadow:0 0 0 2px #f5c451}
#topo .info{color:#cfe3f0;font-weight:600}
#topo .iconbtn{background:#173f58;border:1px solid #2f6482;color:#eaf4fb;border-radius:12px;font-weight:800;box-shadow:0 2px 0 #0a2230}
#topo .iconbtn:hover{background:#1e5070;border-color:#f5c451;color:#fff}
#topo .iconbtn:active{transform:translateY(1px);box-shadow:none}
