/* Bolt Solar — componentes da demonstração 3D (extraídos de styles.css para o site unificado) */
:root { --navy: #0a2a55; --navy-2: #0f3a72; --blue: #2b65ac; --sun: #fcb133; --sun-2: #f59e0b; --ink: #102d53; --ink-2: #57718c; --line: #d6e1ef; --bg-2: #f3f6fa;
  --c-solar: #fcb133; --c-grid: #5cb8ff; --c-bat: #34d399; --c-load: #e8eef6; --radius: 14px; --shadow: 0 18px 50px -18px rgba(10, 42, 85, .35); --shadow-sm: 0 6px 20px -8px rgba(10, 42, 85, .25);
  --ease: cubic-bezier(.22, .8, .24, 1); --head: "Manrope", "Segoe UI", system-ui, sans-serif; --body: "DM Sans", "Segoe UI", system-ui, sans-serif; --top: 0px; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* Botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 12px 24px; border-radius: 999px; border: 2px solid transparent; font: 700 16px/1.1 var(--body); text-decoration: none; cursor: pointer; transition: transform .25s var(--ease), background-color .2s, box-shadow .25s var(--ease), border-color .2s; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn--sm { min-height: 42px; padding: 9px 16px; font-size: 15px; }
.btn--sun { background: var(--sun); color: var(--navy); box-shadow: 0 10px 24px -8px rgba(245, 158, 11, .6); }
.btn--sun:hover { background: #ffc24f; box-shadow: 0 14px 30px -8px rgba(245, 158, 11, .7); }
.btn--blue { background: var(--navy); color: #fff; box-shadow: 0 10px 24px -10px rgba(10, 42, 85, .6); }
.btn--blue:hover { background: var(--navy-2); }
.btn--ghost { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn--line { border-color: var(--line); background: #fff; color: var(--navy); }
.btn--line:hover { border-color: var(--blue); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.ico { width: 20px; height: 20px; flex: none; }
.linkbtn { background: none; border: 0; padding: 6px 2px; min-height: 36px; font: 600 13.5px var(--body); color: var(--blue); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.icon-btn { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: 700 18px/1 var(--body); cursor: pointer; transition: border-color .2s, transform .2s var(--ease); }
.icon-btn:hover:not([disabled]) { border-color: var(--blue); transform: translateY(-1px); }
.icon-btn[disabled] { opacity: .35; cursor: default; }


/* ===== Experiência 3D ===== */
.xp { position: relative; background: #0d2446; }
.xp__stage { position: relative; height: clamp(600px, calc(100vh - var(--top)), 940px); overflow: hidden; background: linear-gradient(180deg, #7fb6e6 0%, #d7ecf8 55%, #8db35b 56%, #7fa550 100%); user-select: none; -webkit-user-select: none; }
.stage__canvas { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; opacity: 0; transition: opacity .8s var(--ease); }
.xp.is-ready .stage__canvas { opacity: 1; }
.xp__stage::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(120% 90% at 45% 45%, transparent 55%, rgba(6, 20, 45, .28) 100%); }
.xp__overlay { position: absolute; inset: 0; pointer-events: none; z-index: 2; }
.xp__overlay > * { position: absolute; left: 0; top: 0; will-change: transform; }
.xp__loading { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; color: var(--navy); font-weight: 600; z-index: 1; transition: opacity .5s; }
.xp__loading span { width: 34px; height: 34px; border-radius: 50%; border: 3px solid rgba(10, 42, 85, .15); border-top-color: var(--sun-2); animation: spin 1s linear infinite; }
.xp.is-ready .xp__loading { opacity: 0; pointer-events: none; }
@keyframes spin { to { transform: rotate(360deg); } }

.xp__intro { position: absolute; z-index: 4; left: max(24px, 3vw); top: 28px; max-width: min(560px, calc(100% - 480px)); padding: 26px 28px; border-radius: 22px; background: rgba(255, 255, 255, .8); backdrop-filter: blur(14px) saturate(1.4); -webkit-backdrop-filter: blur(14px) saturate(1.4); box-shadow: var(--shadow); transition: opacity .5s var(--ease), transform .6s var(--ease); }
.xp__intro h1 { font-size: clamp(32px, 3.4vw, 50px); font-weight: 800; font-style: italic; margin-bottom: 12px; }
.xp__intro h1 span { display: block; color: var(--blue); }
.xp__intro .lead { font-size: 17px; }
.xp:not([data-scene="1"]) .xp__intro { opacity: 0; transform: translateY(-16px) scale(.98); pointer-events: none; }

.xp__panel { position: absolute; z-index: 5; right: max(20px, 2vw); top: 24px; bottom: 24px; width: 380px; display: flex; flex-direction: column; gap: 14px; padding: 20px; overflow: auto; border-radius: 22px; background: rgba(255, 255, 255, .9); backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5); box-shadow: var(--shadow); scrollbar-width: thin; }
.prog { display: flex; align-items: center; gap: 12px; }
.prog__label { margin: 0; font: 700 13px var(--body); letter-spacing: .08em; color: var(--blue); white-space: nowrap; min-width: 34px; }
.prog__bar { flex: 1; display: flex; gap: 4px; }
.prog__seg { flex: 1; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; position: relative; }
.prog__seg::before { content: ""; position: absolute; left: 0; right: 0; top: 8px; height: 6px; border-radius: 3px; background: #dbe3ee; transition: background-color .3s; }
.prog__seg.done::before { background: var(--sun); }
.prog__seg[aria-current="step"]::before { background: var(--navy); }
.prog__seg:hover::before { background: var(--blue); }
.speech { display: none; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: #fff7e6; border: 1px solid #f6d58f; }
.speech p { margin: 0; font-weight: 600; color: var(--navy); line-height: 1.4; }
.speech__who { flex: none; width: 30px; height: 30px; border-radius: 50%; background: var(--navy); color: var(--sun); display: grid; place-items: center; }
.speech__who svg { width: 16px; height: 16px; }
.xp.speech-in-panel .speech, .xp.guide-off .speech, .xp.speech-offscene .speech { display: flex; }
.xp__story h2 { font-size: 26px; margin-bottom: 6px; }
.xp__story p { color: var(--ink-2); font-size: 15.5px; margin-bottom: 6px; }
.status { font-weight: 600; color: var(--navy) !important; }
.status:empty { display: none; }
.xp__actions { display: flex; flex-direction: column; gap: 8px; }
.xp__actions .btn { width: 100%; }
.seg { display: grid; grid-template-columns: 1fr 1fr; background: #eef2f7; border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { min-height: 38px; border: 0; border-radius: 9px; background: transparent; font: 600 15px var(--body); color: var(--ink); cursor: pointer; transition: background-color .2s, color .2s; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--navy); box-shadow: 0 2px 8px rgba(10, 42, 85, .15); }

.meters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 0; }
.meter { background: #f4f7fb; border-radius: 12px; padding: 10px 12px; position: relative; overflow: hidden; }
.meter::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 3px; background: var(--line); }
.meter dt { font-size: 11.5px; font-weight: 700; color: var(--ink-2); text-transform: uppercase; letter-spacing: .06em; }
.meter dd { margin: 2px 0 0; font-size: 14.5px; color: var(--ink); font-variant-numeric: tabular-nums; }
.meter dd b { font: 800 26px/1.05 var(--head); color: var(--navy); }
.meter--solar::before { background: var(--c-solar); }
.meter--grid::before { background: var(--c-grid); }
.meter--load::before { background: #94a3b8; }
.meter--bat { grid-column: 1 / -1; }
.meter--bat::before { background: var(--c-bat); }
.meter--bat small { display: block; color: var(--ink-2); font-size: 12.5px; }
.meter.is-off::before { background: #e05555; }
.soc { position: relative; display: block; height: 8px; border-radius: 6px; background: #dfe7f1; overflow: hidden; margin: 6px 0 4px; }
.soc__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: linear-gradient(90deg, #22c38a, #4ee0ad); border-radius: 6px; transition: width .3s linear; }
.soc__res { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--navy); opacity: .6; }
.circuits { border-top: 1px solid var(--line); padding-top: 10px; font-size: 14.5px; }
.circuits summary { cursor: pointer; font-weight: 700; color: var(--navy); }
.circuits ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; }
.circuits li { display: flex; justify-content: space-between; gap: 8px; }
.circuits li span:last-child { color: var(--ink-2); text-align: right; }
.circuits li.off span:last-child { color: #b42318; }
.xp__nav { margin-top: auto; display: flex; align-items: center; gap: 8px; padding: 10px 0 0; position: sticky; bottom: -20px; background: linear-gradient(0deg, rgba(255,255,255,.98) 70%, rgba(255,255,255,0)); padding-bottom: 4px; }
.xp__tools { margin-left: auto; display: flex; gap: 10px; }

.xp__legend { position: absolute; z-index: 3; left: max(24px, 3vw); bottom: 44px; display: flex; gap: 14px; flex-wrap: wrap; padding: 7px 14px; border-radius: 999px; background: rgba(8, 24, 48, .55); backdrop-filter: blur(8px); color: #fff; font-size: 12.5px; font-weight: 600; }
.xp__legend span { display: inline-flex; align-items: center; gap: 6px; }
.k { width: 16px; height: 4px; border-radius: 2px; display: inline-block; }
.k--solar { background: var(--c-solar); } .k--grid { background: var(--c-grid); } .k--bat { background: var(--c-bat); } .k--load { background: var(--c-load); }
.xp__note { position: absolute; z-index: 3; left: max(24px, 3vw); bottom: 14px; margin: 0; font-size: 12px; color: rgba(255, 255, 255, .92); text-shadow: 0 1px 3px rgba(0, 0, 0, .5); max-width: calc(100% - 460px); }
.xp__chip { position: absolute; z-index: 6; left: 50%; top: 24px; transform: translateX(-50%); margin: 0; padding: 10px 20px; border-radius: 999px; background: rgba(10, 30, 60, .88); color: #fff; font-weight: 700; font-size: 15px; box-shadow: var(--shadow-sm); }
.xp__stage.is-passing .stage__canvas { animation: passing 2.2s ease-in-out; }
@keyframes passing { 0%, 100% { opacity: 1; } 30%, 60% { opacity: .2; } }
.xp__fallback { display: none; }
.xp.is-fallback .xp__loading, .xp.is-fallback .stage__canvas, .xp.is-fallback .xp__legend { display: none; }
.xp.is-fallback .xp__fallback { display: grid; place-items: center; position: absolute; inset: 0; padding: 24px; text-align: center; color: var(--navy); font-weight: 600; }
.xp.is-fallback .xp__panel { display: none; }

/* Rótulos na cena */
.lbl { padding: 4px 11px; border-radius: 999px; background: rgba(255, 255, 255, .94); color: var(--navy); font: 600 12.5px/1.3 var(--body); white-space: nowrap; box-shadow: 0 4px 14px -4px rgba(10, 30, 60, .35); opacity: 0; transition: opacity .25s; }
.lbl::after { content: ""; position: absolute; left: 50%; bottom: -4px; width: 8px; height: 8px; margin-left: -4px; background: inherit; transform: rotate(45deg); border-radius: 1px; }
.lbl.on { opacity: 1; }
.lbl--navy { background: #173d70; color: #fff; }
.lbl--red { background: #e0463a; color: #fff; }
.lbl--green { background: #34d399; color: #06281b; }
.lbl--off { background: rgba(20, 28, 40, .88); color: #ffb4a8; }
.lbl--flow { background: rgba(8, 24, 48, .82); color: #fff; font: 700 13px/1.3 var(--body); font-variant-numeric: tabular-nums; border: 1.5px solid currentColor; }
.lbl--flow.lbl--solar, .lbl--flow.lbl--gridOut { color: var(--c-solar); }
.lbl--flow.lbl--gridIn { color: var(--c-grid); }
.lbl--flow.lbl--batIn, .lbl--flow.lbl--batOut { color: var(--c-bat); }
.lbl--flow::after { display: none; }
.tech-bubble { max-width: 290px; padding: 11px 15px; border-radius: 16px; background: #fff; color: var(--navy); font: 600 15.5px/1.38 var(--body); box-shadow: 0 14px 34px -10px rgba(10, 30, 60, .45); --tail: 50%; }
.tech-bubble::after { content: ""; position: absolute; left: var(--tail); bottom: -6px; width: 12px; height: 12px; margin-left: -6px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.tech-bubble.pop { animation: pop .45s var(--ease); }
@keyframes pop { from { opacity: 0; scale: .85; } to { opacity: 1; scale: 1; } }
.slot-btn { pointer-events: auto; width: 44px; height: 44px; border-radius: 50%; border: 3px solid #fff; background: var(--sun); color: var(--navy); font: 800 24px/1 var(--body); cursor: pointer; box-shadow: 0 8px 20px -6px rgba(0, 0, 0, .45); }
.slot-btn::before { content: ""; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid var(--sun); animation: ring 1.6s var(--ease) infinite; }
.slot-btn[hidden] { display: none; }
@keyframes ring { from { transform: scale(.8); opacity: 1; } to { transform: scale(1.5); opacity: 0; } }

.textual { margin: 0 auto; padding: 16px 20px; background: #fff; border-radius: 0; border: 0; border-top: 1px solid var(--line); width: 100%; }
.xp > .textual { max-width: none; }
.textual summary { cursor: pointer; font-weight: 700; color: var(--navy); max-width: 1200px; margin: 0 auto; }
.textual ol { max-width: 1200px; margin: 12px auto 4px; padding-left: 22px; color: var(--ink-2); }
.textual li { margin-bottom: 8px; }
.xp.is-fallback .textual { background: #fff; }


/* ===== Final da demonstração: escolha e equipamentos ===== */
.choice__q { margin: 2px 0 0; font-weight: 700; color: var(--navy); font-size: 14px; }
.equip fieldset { margin: 0; padding: 0; border: 0; display: grid; gap: 6px; }
.equip legend { font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.equip label { display: flex; align-items: center; gap: 10px; padding: 8px 12px; min-height: 42px; border-radius: 10px; background: #f4f7fb; cursor: pointer; font-size: 15px; transition: background-color .2s; }
.equip label:has(input:checked) { background: #fff3d6; }
.equip input { width: 18px; height: 18px; accent-color: var(--navy); }
.equip__note { font-size: 12.5px; color: var(--ink-2); margin: 8px 0 0; }

/* ===== Técnico fora da demonstração (guia pelo site) ===== */
.buddy__flyer { position: fixed; left: 0; top: 0; z-index: 90; pointer-events: none; will-change: transform, width, height; transition: opacity .45s var(--ease); filter: drop-shadow(0 18px 24px rgba(6, 20, 45, .3)); }
.buddy__flyer[hidden] { display: none; }
.buddy__flyer.is-leaving { opacity: 0; }
.buddy__canvas { width: 100% !important; height: 100% !important; display: block; }
.buddy { position: fixed; z-index: 91; right: calc(var(--buddy-w, 190px) + 30px); bottom: 26px; max-width: min(340px, calc(100vw - var(--buddy-w, 190px) - 48px)); }
.buddy[hidden] { display: none; }
.buddy__bubble { position: relative; padding: 16px 18px 12px; border-radius: 20px 20px 6px 20px; background: #fff; color: var(--navy); box-shadow: 0 22px 50px -16px rgba(6, 20, 45, .45); border: 1px solid var(--line); }
.buddy__bubble.pop { animation: pop .45s var(--ease); }
.buddy__bubble::after { content: ""; position: absolute; right: -8px; bottom: 16px; width: 16px; height: 16px; background: #fff; border-right: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.buddy__text { margin: 0 0 12px; padding-right: 22px; font: 600 16px/1.42 var(--body); }
.buddy__actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.buddy__close { position: absolute; top: 6px; right: 8px; width: 32px; height: 32px; border: 0; background: none; font-size: 22px; line-height: 1; color: var(--ink-2); cursor: pointer; border-radius: 50%; }
.buddy__close:hover { background: #f1f4f8; }
.buddy__step { position: absolute; left: 18px; top: -11px; padding: 2px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; }
.is-toured { position: relative; }
.is-toured::before { content: ""; position: absolute; inset: 10px; border-radius: 26px; box-shadow: inset 0 0 0 3px rgba(252, 177, 51, .75); pointer-events: none; animation: toured 1.2s var(--ease); z-index: 1; }
@keyframes toured { from { opacity: 0; transform: scale(.985); } to { opacity: 1; transform: none; } }
@media (max-width: 720px) {
  .buddy { right: 10px; left: 10px; bottom: calc(var(--buddy-w, 118px) * 1.25 + 8px); max-width: none; }
  .buddy__bubble { border-radius: 20px 20px 6px 20px; }
  .buddy__bubble::after { right: 44px; bottom: -8px; border-right: 1px solid var(--line); border-top: 0; border-bottom: 1px solid var(--line); }
  .buddy__text { font-size: 15px; }
}

/* arrastar para girar a câmera */
.stage__canvas { cursor: grab; touch-action: pan-y; }
.xp__stage.is-dragging .stage__canvas { cursor: grabbing; }

/* elementos usados pelo tema escuro (neutros no tema claro) */
h2 em { font-style: inherit; }
.brand__dark { display: none; }
.band { display: none; }
.theme-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px; border-radius: 999px; border: 1.5px solid var(--line); background: #fff; color: var(--navy); font: 600 14px var(--body); cursor: pointer; transition: border-color .2s; }
.theme-btn:hover { border-color: var(--blue); }
.theme-btn svg { width: 18px; height: 18px; }
@media (max-width: 720px) { .theme-btn { padding: 8px; } .theme-btn__txt { display: none; } }

@media (max-width: 1100px) {
  .xp__stage { height: clamp(460px, 62vh, 700px); }
  .xp__panel { position: static; width: auto; margin: 0; border-radius: 0; box-shadow: none; display: grid; grid-template-columns: 1.1fr 1fr; gap: 14px 32px; padding: 24px; }
  .prog, .speech, .xp__story, .xp__actions { grid-column: 1; }
  .meters, .circuits { grid-column: 2; }
  .meters { grid-row: 1 / span 4; align-content: start; }
  .xp__nav { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .xp__stage { position: sticky; top: 0; z-index: 6; height: 54svh; min-height: 330px; }
  .xp__panel { display: flex; padding: 18px 16px 22px; }
  .xp__legend { left: 10px; bottom: 34px; font-size: 11px; gap: 8px; padding: 5px 10px; }
  .xp__note { left: 10px; bottom: 8px; font-size: 10.5px; max-width: calc(100% - 20px); }
  .xp__chip { top: 12px; font-size: 13px; }
  .xp__story h2 { font-size: 23px; }
  .lbl { font-size: 11px; padding: 3px 8px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* legenda com valores: consumo agora e de onde ele vem */
.xp .xp__legend { display: block; bottom: 62px; width: 250px; padding: 12px 14px 10px; border-radius: 14px; background: #061a36cc; border: 1px solid #ffffff1c; font-size: 12px; font-weight: 500; }
.xp__legend .lg-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 7px; color: #c9d7ea; }
.xp__legend .lg-head b { font: 700 17px "Manrope", sans-serif; color: #fff; }
.xp__legend .lg-bar { display: flex; height: 8px; overflow: hidden; border-radius: 99px; background: #ffffff1a; margin-bottom: 9px; }
.xp__legend .lg-bar i { display: block; height: 100%; transition: width .4s; }
.xp__legend .lg-bar .s { background: var(--c-solar); } .xp__legend .lg-bar .b { background: var(--c-bat); } .xp__legend .lg-bar .g { background: var(--c-grid); }
.xp__legend ul { display: grid; gap: 4px; margin: 0; padding: 0; list-style: none; }
.xp__legend li { display: flex; align-items: center; gap: 7px; color: #dbe6f4; }
.xp__legend li b { margin-left: auto; font-weight: 700; color: #fff; white-space: nowrap; }
.xp__legend li.off b { color: #ff8a80; }
.xp__legend .k { flex: none; }
/* barra de nuvens: o cursor é uma nuvem */
.cloudbar { display: grid; gap: 6px; margin: 2px 0 6px; --v: 55%; }
.cloudbar > span { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 600; color: #dbe6f4; }
.cloudbar b { color: #fcb133; font-weight: 700; }
.cloudbar input { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 0; background: transparent; cursor: pointer; }
.cloudbar input::-webkit-slider-runnable-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #aebccc var(--v), #ffffff22 var(--v)); }
.cloudbar input::-moz-range-track { height: 8px; border-radius: 99px; background: linear-gradient(90deg, #aebccc var(--v), #ffffff22 var(--v)); }
.cloudbar input::-webkit-slider-thumb { -webkit-appearance: none; width: 44px; height: 28px; margin-top: -10px; border: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 28'%3E%3Cpath d='M12 26a9 9 0 0 1-1-18 11 11 0 0 1 21 2 8 8 0 0 1 0 16z' fill='%23eef2f6' stroke='%235f7087' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 3px 8px #0008); }
.cloudbar input::-moz-range-thumb { width: 44px; height: 28px; border: 0; border-radius: 0; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 44 28'%3E%3Cpath d='M12 26a9 9 0 0 1-1-18 11 11 0 0 1 21 2 8 8 0 0 1 0 16z' fill='%23eef2f6' stroke='%235f7087' stroke-width='1.6'/%3E%3C/svg%3E") center / contain no-repeat; }
@media (max-width: 700px) { .xp .xp__legend { width: 172px; bottom: 60px; padding: 8px 10px 7px; font-size: 10.5px; } .xp__legend .lg-head { margin-bottom: 5px; } .xp__legend .lg-head b { font-size: 14px; } .xp__legend .lg-bar { margin-bottom: 6px; height: 6px; } }

/* fala do técnico no topo da cena, como legenda; marcador sobre quem fala */
.tech-bubble.is-top { max-width: min(560px, calc(100% - 24px)); padding: 10px 18px; border-radius: 14px; font-size: 15px; text-align: center; background: #ffffffeb; backdrop-filter: blur(8px); }
.tech-bubble.is-top::after { display: none; }
.tech-mark { position: absolute; left: 0; top: 0; display: flex; gap: 3px; align-items: center; justify-content: center; width: 22px; height: 14px; border-radius: 99px; background: #fcb133; box-shadow: 0 3px 10px #0005; pointer-events: none; }
.tech-mark i { width: 3px; height: 3px; border-radius: 50%; background: #0a2a55; animation: talk 1s infinite ease-in-out; }
.tech-mark i:nth-child(2) { animation-delay: .15s; } .tech-mark i:nth-child(3) { animation-delay: .3s; }
@keyframes talk { 50% { transform: translateY(-2px); } }
/* sol no canto superior da cena */
.sky-sun { position: absolute; top: -120px; left: 0; width: 320px; height: 320px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(circle, #fffbe8 0 12%, #ffe6a3cc 18%, #ffd07a55 34%, #ffd07a00 66%); mix-blend-mode: screen; }
@media (max-width: 700px) { .tech-mark { transform: scale(.85); } .sky-sun { width: 200px; height: 200px; top: -80px; } }
@media (prefers-reduced-motion: reduce) { .tech-mark i { animation: none; } }

/* narração (topo) em faixa escura; o balão branco fica só para as falas curtas do técnico */
.tech-bubble.narr { background: #061a36e0; color: #fff; font-weight: 500; border: 1px solid #ffffff22; box-shadow: 0 10px 30px -12px #000a; }
.tech-bubble:not(.is-top) { max-width: 230px; padding: 8px 13px; font-size: 14px; }

/* painel enxuto: título, ações e navegação; os números ficam na legenda da cena e a explicação na narração */
.xp .xp-layout { grid-template-columns: minmax(0, 1fr) 290px; }
.xp .meters, .xp .circuits, .xp #scene-text { display: none; }
.xp .xp__story h2 { font-size: 24px; }
@media (max-width: 900px) { .xp .xp-layout { grid-template-columns: 1fr; } .xp .xp__panel { display: flex; } }
.xp__legend .soc-li { padding-left: 17px; }
.xp__legend .lg-soc { display: block; width: 100%; height: 4px; border-radius: 99px; background: #ffffff1c; overflow: hidden; }
.xp__legend .lg-soc i { display: block; height: 100%; background: var(--c-bat); transition: width .5s; }
.xp-close.xp-sound { margin-right: 8px; }
.xp-close.xp-sound + .xp-close { margin-left: 0; }
.xp-close.xp-sound[aria-pressed="true"] { border-color: #fcb133; color: #fcb133; }
/* indicadores de onde clicar */
.xp .btn.hint { animation: xp-hint 1.8s ease-out infinite; }
@keyframes xp-hint { 0% { box-shadow: 0 0 0 0 #fcb133aa; } 70% { box-shadow: 0 0 0 12px #fcb13300; } 100% { box-shadow: 0 0 0 0 #fcb13300; } }
.cloudbar.hint { position: relative; padding: 8px 10px; margin-left: -10px; margin-right: -10px; border-radius: 12px; animation: xp-hint 1.8s ease-out infinite; background: #fcb1331a; }
.cloudbar.hint::after { content: "← arraste a nuvem →"; display: block; margin-top: 2px; font: 700 11.5px "DM Sans", sans-serif; color: #fcb133; text-align: center; }
.cloudbar input:disabled { opacity: .45; cursor: not-allowed; }
@media (prefers-reduced-motion: reduce) { .xp .btn.hint, .cloudbar.hint { animation: none; } }
.xp-close.xp-sound[aria-pressed="true"] { background: #fcb133; border-color: #fcb133; color: #0a2a55; }
