@font-face { font-family: 'Montserrat Local'; src: url('fonts/Montserrat-VariableFont_wght.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
:root {
  --verde: #29510B; --laranja: #FBB03B; --petroleo: #0F4C5C; --folha: #3F7D3A; --dourado-txt: #9B6D24;
  --tinta: #111; --creme: #F7F3E8; --papel: #fff; --linha: #d9d3c2;
  --ff: 'Century Gothic', 'Montserrat Local', 'URW Gothic', Avenir, 'Trebuchet MS', system-ui, sans-serif;
  --esq: 300px; --dir: 330px; --topo: 72px; --rod: 34px;
  font-size: 16px;
}
@media (min-width: 1700px) { :root { font-size: 17.5px; --esq: 340px; --dir: 370px; } }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0a1713; color: var(--tinta); font-family: var(--ff); }
button, select, input { font-family: inherit; font-size: .92rem; }
svg { width: 1.05em; height: 1.05em; fill: currentColor; flex: none; }
#ap-ant svg path, #ap-prox svg path { fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* topo */
.topo { height: var(--topo); display: flex; align-items: center; gap: 18px; padding: 0 16px; background: var(--papel); border-bottom: 4px solid var(--laranja); position: relative; z-index: 5; }
.marcas { display: flex; align-items: center; gap: 8px; }
.logo-pill { background: #fff; border-radius: 10px; padding: 4px 8px; display: inline-flex; align-items: center; }
.topo .logo-pill img { height: 34px; }
.topo .logo-pill:first-child img { height: 30px; }
.marcas .x { color: var(--dourado-txt); font-weight: 700; }
.titulo { flex: 1; min-width: 0; }
.titulo h1 { margin: 0; font-size: 1.15rem; color: var(--verde); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.titulo p { margin: 2px 0 0; font-size: .82rem; color: #444; }
.acoes { display: flex; align-items: center; gap: 8px; flex-wrap: nowrap; }
button { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--linha); background: #fff; color: var(--tinta); padding: 8px 12px; border-radius: 9px; cursor: pointer; font-weight: 600; }
button:hover { border-color: var(--verde); }
button.prim { background: var(--verde); color: #fff; border-color: var(--verde); }
button.prim:hover { background: #1f3f08; }
button.sec { background: var(--laranja); color: var(--tinta); border-color: var(--laranja); }
button:focus-visible, select:focus-visible { outline: 3px solid var(--laranja); outline-offset: 2px; }
label.sel { display: flex; flex-direction: column; font-size: .68rem; color: #555; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
label.sel select { margin-top: 2px; padding: 5px 6px; border-radius: 7px; border: 1.5px solid var(--linha); font-size: .85rem; text-transform: none; letter-spacing: 0; max-width: 230px; }

/* corpo */
.corpo { position: absolute; top: var(--topo); bottom: var(--rod); left: 0; right: 0; display: grid; grid-template-columns: var(--esq) 1fr var(--dir); }
.stage { grid-column: 2; grid-row: 1; position: relative; z-index: 1; isolation: isolate; overflow: hidden; min-width: 0; background: radial-gradient(ellipse at 50% 40%, #173a2b 0%, #0a1713 70%); }
.stage canvas { display: block; cursor: grab; }
.labels { position: absolute; inset: 0; pointer-events: none; z-index: 1; }
.painel.esq { grid-column: 1; grid-row: 1; } .painel.dir { grid-column: 3; grid-row: 1; }
.painel { background: var(--creme); overflow-y: auto; padding: 12px 14px 18px; position: relative; z-index: 3; }
.painel.esq { border-right: 1px solid var(--linha); }
.painel.dir { border-left: 1px solid var(--linha); }
.painel h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--petroleo); margin: 10px 0 8px; }
.painel h3 { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; color: #555; margin: 12px 0 6px; }
.recolher { display: none; position: absolute; top: 6px; right: 6px; padding: 2px 9px; font-size: 1.1rem; }
.cenarios { display: flex; flex-direction: column; gap: 6px; }
.cen { flex-direction: column; align-items: flex-start; text-align: left; gap: 2px; padding: 8px 10px; background: #fff; }
.cen b { font-size: .9rem; color: var(--tinta); }
.cen small { font-size: .75rem; color: #555; font-weight: 400; }
.cen.sel { border-color: var(--verde); box-shadow: inset 4px 0 0 var(--verde); background: #eef5e6; }
.etapas { list-style: none; margin: 0; padding: 0; counter-reset: e; }
.etapas li { display: flex; gap: 8px; align-items: center; padding: 6px 8px; border-radius: 8px; cursor: pointer; font-size: .86rem; line-height: 1.25; }
.etapas li:hover { background: #fff; }
.etapas .n { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #e3dccb; font-weight: 700; font-size: .78rem; flex: none; }
.etapas li.feita .n { background: var(--folha); color: #fff; }
.etapas li.atual { background: #fff; box-shadow: 0 0 0 2px var(--laranja) inset; font-weight: 700; }
.etapas li.atual .n { background: var(--laranja); color: var(--tinta); }
.legenda ul { list-style: none; margin: 0; padding: 0; font-size: .82rem; }
.legenda li { display: flex; align-items: center; gap: 8px; margin: 4px 0; }
.legenda i { width: 16px; height: 16px; border-radius: 4px; display: inline-block; flex: none; }
.legenda i.circ { border-radius: 50%; border: 1px solid #999; }
.dica { font-size: .78rem; color: #555; margin-top: 12px; }

/* indicadores */
.indic-cab { display: flex; align-items: center; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.tag-sim { background: var(--laranja); color: var(--tinta); font-size: .66rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 3px 7px; border-radius: 5px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 6px; }
.kpis div { background: #fff; border: 1px solid var(--linha); border-radius: 9px; padding: 7px 9px; display: flex; flex-direction: column; }
.kpis div.larga { grid-column: span 2; flex-direction: row; align-items: center; gap: 10px; border-color: var(--dourado-txt); }
.kpis b { font-size: 1.45rem; color: var(--verde); line-height: 1.1; font-variant-numeric: tabular-nums; }
.kpis .larga b { color: var(--dourado-txt); }
.kpis span { font-size: .74rem; color: #444; line-height: 1.2; }
.barra-quem { margin-top: 10px; font-size: .74rem; color: #444; }
.barra { height: 14px; border-radius: 7px; background: #e3dccb; overflow: hidden; display: flex; margin: 4px 0; }
.barra .ag { background: var(--folha); transition: width .5s; }
.barra .pe { background: var(--laranja); transition: width .5s; }
.rot2 { display: flex; justify-content: space-between; gap: 6px; }
.rot2 .ag { color: var(--folha); font-weight: 700; } .rot2 .pe { color: var(--dourado-txt); font-weight: 700; }
.aviso { font-size: .74rem; color: #444; background: #fff8e8; border-left: 4px solid var(--laranja); padding: 7px 9px; border-radius: 4px; margin: 10px 0 0; line-height: 1.35; }
.trilha h2 small { text-transform: none; letter-spacing: 0; color: #777; font-weight: 400; }
.log { list-style: none; margin: 0; padding: 0; font-size: .76rem; max-height: 40vh; overflow-y: auto; }
.log li { padding: 5px 7px; border-left: 3px solid var(--petroleo); background: #fff; margin-bottom: 4px; border-radius: 0 5px 5px 0; line-height: 1.3; animation: entra .35s ease; }
.log li time { display: inline-block; min-width: 48px; color: #777; font-variant-numeric: tabular-nums; margin-right: 4px; }
.log li.k-humano { border-color: var(--dourado-txt); } .log li.k-alerta { border-color: #B23A1E; } .log li.k-doc { border-color: var(--verde); } .log li.k-registro { border-color: var(--folha); }
@keyframes entra { from { opacity: 0; transform: translateX(8px); } }

/* rótulos 3D */
.lbl { pointer-events: auto; cursor: pointer; background: rgba(255,255,255,.94); color: var(--tinta); border-radius: 9px; padding: 4px 9px; font-size: .78rem; line-height: 1.2; text-align: center; box-shadow: 0 3px 10px rgba(0,0,0,.35); border: 2px solid transparent; white-space: nowrap; transition: transform .15s, box-shadow .15s; user-select: none; }
.lbl b { display: block; font-size: .82rem; }
.lbl small { display: block; font-size: .68rem; color: #555; }
.lbl .chip { display: inline-block; margin-top: 2px; font-size: .6rem; font-weight: 800; padding: 1px 6px; border-radius: 4px; letter-spacing: .04em; }
.chip.mvp { background: var(--laranja); color: var(--tinta); } .chip.f2 { background: #dfe7e2; color: #234; }
.lbl.agente.jornada { border-color: #5FAE4F; } .lbl.agente.transversal { border-color: #2BB3C0; } .lbl.agente.orq { border-color: var(--laranja); font-size: .95rem; padding: 6px 12px; }
.lbl.agente.orq b { font-size: 1rem; }
.lbl.geaweb { background: #1e2a33; color: #fff; border-color: #2BB3C0; } .lbl.geaweb small { color: #bfe9ee; }
.lbl.ator { background: rgba(247,243,232,.95); }
.lbl.ativo { box-shadow: 0 0 0 3px var(--laranja), 0 4px 14px rgba(0,0,0,.45); }
.lbl.hover { transform: scale(1.08); }
.escudo-lbl { background: rgba(15,76,92,.92); color: #fff; font-size: .68rem; border-color: #2BB3C0; cursor: default; }
.checklist { position: absolute; top: 44px; right: 10px; z-index: 3; animation: entra .35s ease; pointer-events: none; background: rgba(255,255,255,.97); border-radius: 10px; border: 2px solid #2BB3C0; padding: 8px 12px; width: 300px; font-size: .74rem; box-shadow: 0 6px 20px rgba(0,0,0,.45); }
.checklist h4 { margin: 0 0 2px; color: var(--petroleo); font-size: .85rem; }
.checklist ul { list-style: none; margin: 6px 0 0; padding: 0; }
.checklist li { display: flex; align-items: center; gap: 7px; padding: 2px 0; color: #888; transition: color .2s; }
.checklist .ic { width: 14px; height: 14px; border-radius: 50%; border: 2px solid #bbb; flex: none; }
.checklist li.ok { color: var(--tinta); } .checklist li.ok .ic { background: var(--folha); border-color: var(--folha); }
.checklist li.pend { color: #B23A1E; font-weight: 700; } .checklist li.pend .ic { background: #B23A1E; border-color: #B23A1E; }

/* legenda da etapa */
.caption { position: absolute; left: 50%; bottom: 14px; transform: translate(-50%, 20px); width: min(860px, calc(100% - 28px)); background: rgba(255,255,255,.96); border-radius: 14px; padding: 12px 18px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.4); border-top: 5px solid var(--laranja); opacity: 0; transition: opacity .35s, transform .35s; pointer-events: none; z-index: 3; }
.caption.visivel { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.cap-meta { display: flex; justify-content: space-between; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--petroleo); font-weight: 700; }
.caption h2 { margin: 4px 0 4px; font-size: 1.2rem; color: var(--verde); }
.caption p { margin: 0; font-size: .95rem; line-height: 1.45; text-align: justify; }
.ap-nav { display: none; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.cam-ctl { position: absolute; top: 10px; left: 10px; display: flex; gap: 8px; align-items: center; z-index: 3; }
.cam-ctl button, .cam-ctl label { background: rgba(255,255,255,.92); font-size: .8rem; padding: 6px 10px; border-radius: 8px; display: inline-flex; gap: 5px; align-items: center; font-weight: 600; border: 0; cursor: pointer; }
.selo-sim { position: absolute; top: 10px; right: 10px; z-index: 3; background: var(--laranja); color: var(--tinta); font-weight: 800; font-size: .72rem; letter-spacing: .08em; padding: 5px 10px; border-radius: 6px; }

/* detalhe */
.detalhe { position: absolute; top: 12px; right: calc(var(--dir) + 12px); width: min(440px, calc(100% - 24px)); max-height: calc(100% - 24px); overflow-y: auto; background: #fff; border-radius: 14px; box-shadow: 0 12px 40px rgba(0,0,0,.5); z-index: 6; padding: 0 0 14px; }
.detalhe .fechar { position: absolute; top: 8px; right: 8px; font-size: 1.3rem; padding: 0 10px; line-height: 1.6; background: rgba(255,255,255,.9); }
.det-cab { background: linear-gradient(135deg, var(--c), #0f2a20); color: #fff; padding: 16px 18px 12px; border-radius: 14px 14px 0 0; }
.det-cab h3 { margin: 8px 0 0; font-size: 1.15rem; }
.det-cab .chip { display: inline-block; background: rgba(255,255,255,.92); color: var(--tinta); font-size: .66rem; font-weight: 800; padding: 2px 7px; border-radius: 5px; margin-right: 5px; text-transform: uppercase; letter-spacing: .04em; }
.detalhe p, .detalhe section { padding: 0 18px; }
.detalhe p { font-size: .9rem; line-height: 1.5; text-align: justify; }
.detalhe h4 { margin: 10px 0 4px; font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--petroleo); }
.detalhe ul { margin: 0; padding-left: 18px; font-size: .85rem; line-height: 1.4; }
.detalhe li { margin: 3px 0; }
.det-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.det-grade section { padding-right: 6px; }
.ganhos { background: #eef5e6; margin: 12px 18px 0; padding: 4px 12px 10px !important; border-radius: 9px; }
.detalhe .nota { font-size: .78rem; color: #444; background: #f3f6f7; margin: 12px 18px 0; padding: 8px 10px; border-radius: 7px; border-left: 4px solid var(--petroleo); }
.detalhe .nota.forte { font-weight: 600; }

/* rodapé */
.rodape { position: absolute; bottom: 0; left: 0; right: 0; height: var(--rod); background: var(--verde); color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 0 14px; font-size: .72rem; white-space: nowrap; overflow: hidden; }
.rodape span { overflow: hidden; text-overflow: ellipsis; }
.rodape .papel { color: #ffe3b0; }

/* intro */
.intro { position: fixed; inset: 0; z-index: 20; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 30%, rgba(23,58,43,.86), rgba(5,12,9,.94)); transition: opacity .5s; padding: 16px; }
.intro.saiu { opacity: 0; pointer-events: none; }
.intro-card { background: #fff; border-radius: 18px; max-width: 820px; width: 100%; padding: 26px 32px 22px; box-shadow: 0 20px 60px rgba(0,0,0,.5); border-top: 8px solid var(--laranja); }
.marcas.grandes { justify-content: center; gap: 16px; }
.marcas.grandes img { height: 62px; }
.marcas.grandes .logo-pill:last-child img { height: 78px; }
.intro .sobre { text-align: center; color: var(--petroleo); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin: 14px 0 4px; }
.intro h1 { text-align: center; color: var(--verde); margin: 0 0 10px; font-size: 1.65rem; line-height: 1.25; }
.intro .lead { text-align: justify; font-size: 1.02rem; line-height: 1.5; margin: 0 0 16px; }
.intro-acoes { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
button.grande { font-size: 1rem; padding: 12px 18px; }
.intro .aviso { margin-top: 16px; }
.autoria { text-align: center; font-size: .82rem; color: #444; margin: 12px 0 0; }
.semgl { position: fixed; inset: 0; z-index: 30; display: grid; place-items: center; background: #0a1713; color: #fff; text-align: center; padding: 20px; }

/* modo apresentação */
body.apresentacao { --esq: 0px; --dir: 0px; --topo: 0px; --rod: 0px; }
body.apresentacao .topo, body.apresentacao .painel, body.apresentacao .rodape { display: none; }
body.apresentacao .corpo { grid-template-columns: 1fr; } body.apresentacao .stage { grid-column: 1; }
body.apresentacao .checklist { font-size: .9rem; width: 380px; top: 48px; right: 16px; } body.apresentacao .cam-ctl { top: auto; bottom: 16px; left: 16px; display: none; }
body.apresentacao .caption { width: min(1100px, calc(100% - 40px)); bottom: 22px; padding: 16px 24px 16px; }
body.apresentacao .caption h2 { font-size: 1.75rem; }
body.apresentacao .caption p { font-size: 1.22rem; }
body.apresentacao .cap-meta { font-size: .9rem; }
body.apresentacao .ap-nav { display: flex; }
body.apresentacao .lbl { font-size: .9rem; } body.apresentacao .lbl b { font-size: .95rem; }
body.apresentacao .selo-sim { font-size: .85rem; }
body.apresentacao .detalhe { right: 12px; }

/* responsivo */
@media (max-width: 1280px) { :root { --esq: 250px; --dir: 280px; } .acoes label.sel:nth-of-type(2) { display: none; } .titulo p { display: none; } }
@media (max-width: 1050px) {
  :root { --esq: 0px; --dir: 0px; }
  .corpo { grid-template-columns: 1fr; } .stage { grid-column: 1; }
  .painel { position: absolute; top: 0; bottom: 0; width: 290px; box-shadow: 0 0 30px rgba(0,0,0,.4); transition: transform .3s; }
  .painel.esq { left: 0; transform: translateX(-100%); } .painel.dir { right: 0; transform: translateX(100%); }
  body.esq-aberto .painel.esq { transform: none; } body.dir-aberto .painel.dir { transform: none; }
  .recolher { display: inline-flex; }
  .painel.esq .recolher { right: -38px; } .painel.dir .recolher { left: -38px; right: auto; }
  .painel .recolher { position: absolute; top: 56px; background: #fff; font-size: .78rem; padding: 6px 8px; writing-mode: vertical-rl; }
  .painel.esq .recolher { right: -36px; } .painel.dir .recolher { left: -36px; }
  #btn-reiniciar span, #btn-apres span { display: none; } .painel { z-index: 7; }
  .painel { overflow: visible; } .painel > section { overflow: visible; }
  .titulo { display: none; } .rodape .papel { display: none; }
  .detalhe { right: 12px; }
}
@media (max-width: 720px) {
  :root { --topo: 112px; }
  .topo { flex-wrap: wrap; height: auto; min-height: var(--topo); padding: 8px; gap: 8px; }
  .acoes { flex-wrap: wrap; } .acoes button span { display: none; } #btn-play span { display: inline; }
  .caption p { font-size: .85rem; } .cam-ctl label { display: none; }
  .rodape #credito { display: none; }
  .intro h1 { font-size: 1.25rem; } .marcas.grandes img { height: 40px; } .marcas.grandes .logo-pill:last-child img { height: 50px; }
}
[hidden] { display: none !important; }

a.btn-link { display:inline-flex; align-items:center; gap:6px; border:1.5px solid var(--linha); background:#fff; color:var(--tinta); padding:8px 12px; border-radius:9px; font-weight:600; text-decoration:none; font-size:.92rem; }
a.btn-link:hover { border-color: var(--verde); }
a.btn-link.grande { font-size:1rem; padding:12px 18px; }
@media (max-width:1280px) { #btn-imagens span { display:none; } }
