@font-face { font-family: "Geist"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/simulador/prima/fonts/Geist-Variable.woff2) format("woff2"); }
@font-face { font-family: "Geist Mono"; font-style: normal; font-weight: 100 900; font-display: swap; src: url(/simulador/prima/fonts/GeistMono-Variable.woff2) format("woff2"); }
/* Layout: one screen that never scrolls. A graphite stage that builds the works
   as the answers come, beside a light question panel; a ticket bar keeps the
   prime in view and narrows its range with every answer. Kwhiz DA v2: Snow and
   Mist surfaces, Graphite stage, a single Voltage accent. */
:root {
  --snow: #FFFFFF;
  --mist: #FAFAFB;
  --fog: #F2F3F5;
  --cloud: #E8EAEE;
  --graphite: #0E0F12;
  --ink: #1A1C22;
  --text: #14161B;
  --text-2: #4A4D55;
  --text-3: #7E8189;
  --text-4: #A8ABB2;
  --hair: rgba(14, 15, 18, .08);
  --hair-2: rgba(14, 15, 18, .14);
  --voltage: #0A84FF;
  --voltage-2: #5BA8FF;
  --voltage-deep: #0058D6;
  --voltage-tint: rgba(10, 132, 255, .08);
  --voltage-glow: rgba(10, 132, 255, .24);
  --success: #0FB871;
  --success-tint: rgba(15, 184, 113, .10);
  --warning: #F2A218;
  --danger: #E13E3E;
  --danger-tint: rgba(225, 62, 62, .08);
  --panel: var(--snow);
  --panel-2: var(--mist);
  --tile: var(--snow);
  --tile-hover: var(--fog);
  --shadow: 0 1px 2px rgba(14, 15, 18, .05), 0 8px 24px rgba(14, 15, 18, .06);
  --sans: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --text: #F4F5F7; --text-2: #C2C5CC; --text-3: #8E929B; --text-4: #6A6E77;
    --hair: rgba(255, 255, 255, .07); --hair-2: rgba(255, 255, 255, .13);
    --panel: #14161B; --panel-2: #1A1C22; --tile: #1A1C22; --tile-hover: #22252D;
    --fog: #22252D; --cloud: #2A2D35;
    --voltage-tint: rgba(10, 132, 255, .14);
    --success-tint: rgba(15, 184, 113, .16);
    --danger-tint: rgba(225, 62, 62, .14);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --text: #F4F5F7; --text-2: #C2C5CC; --text-3: #8E929B; --text-4: #6A6E77;
  --hair: rgba(255, 255, 255, .07); --hair-2: rgba(255, 255, 255, .13);
  --panel: #14161B; --panel-2: #1A1C22; --tile: #1A1C22; --tile-hover: #22252D;
  --fog: #22252D; --cloud: #2A2D35;
  --voltage-tint: rgba(10, 132, 255, .14);
  --success-tint: rgba(15, 184, 113, .16);
  --danger-tint: rgba(225, 62, 62, .14);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 24px rgba(0, 0, 0, .25);
}

html, body { height: 100%; }
body { margin: 0; overflow: hidden; background: var(--panel); color: var(--text); font-family: var(--sans); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
* { box-sizing: border-box; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--mono); }
:focus-visible { outline: 2px solid var(--voltage); outline-offset: 2px; }

.app { height: 100%; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; }
.embed .top { display: none; }

/* Top bar */
.top {
  display: flex; align-items: center; gap: 14px; min-height: 56px;
  padding-block: 0; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px));
  border-bottom: 1px solid var(--hair); background: var(--panel); position: relative; z-index: 6;
}
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--text); font-weight: 500; font-size: 19px; letter-spacing: -.04em; border: 0; background: none; padding: 0; }
.brand svg { width: 26px; height: 26px; display: block; }
.brand .bars rect { fill: var(--text); }
.crumb { padding-left: 14px; border-left: 1px solid var(--hair-2); font-size: 14px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.crumb b { color: var(--text); font-weight: 600; }
.crumb .code { font-family: var(--mono); font-size: 12px; color: var(--text-3); margin-left: 6px; }
.prog { margin-left: auto; display: flex; gap: 5px; align-items: center; }
.prog i { width: 18px; height: 4px; border-radius: 4px; background: var(--cloud); transition: background .4s var(--ease), width .4s var(--ease); }
.prog i.done { background: var(--voltage); }
.prog i.now { background: var(--voltage); width: 30px; }
.proto { font-size: 11px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); border: 1px solid var(--hair-2); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.prog:empty + .proto { margin-left: auto; }

/* Main split */
.main { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); min-height: 0; }

/* Stage */
.stage { position: relative; background: var(--graphite); overflow: hidden; container-type: size; min-height: 0; color: #fff; }
.layer { position: absolute; inset: 0; opacity: 0; transition: opacity .6s var(--ease); pointer-events: none; }
.layer.on { opacity: 1; pointer-events: auto; }
.photo { background-size: cover; background-position: center; transform: scale(1.04); transition: opacity .6s var(--ease), transform 6s linear; }
.photo.on { transform: scale(1); }
.photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(14, 15, 18, .15) 0%, rgba(14, 15, 18, 0) 35%, rgba(14, 15, 18, .88) 100%); }
.over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 1; padding: clamp(18px, 5cqh, 44px) clamp(20px, 6cqw, 52px); display: grid; gap: 10px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--voltage-2); }
.over h1 { margin: 0; font-size: clamp(28px, 7.4cqw, 60px); line-height: 1.02; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; max-width: 14ch; }
.over p { margin: 0; font-size: clamp(14px, 2.4cqw, 18px); color: rgba(255, 255, 255, .78); max-width: 42ch; }
.over .codes { display: flex; flex-wrap: wrap; gap: 6px; }
.codechip { font-family: var(--mono); font-size: 12px; padding: 4px 9px; border-radius: 999px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .16); color: #fff; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }

/* Map */
.mapbox { position: absolute; inset: 0; display: grid; place-items: center; padding: 6%; }
.mapbox svg { width: 100%; height: 100%; overflow: visible; }
.prov circle { fill: #2B2F38; transition: fill .5s var(--ease); }
.prov.lit circle { fill: var(--voltage); }
.prov.near circle { fill: #3A4152; }
.halo { fill: rgba(10, 132, 255, .18); }
.pin { position: absolute; width: 0; height: 0; opacity: 0; transition: opacity .3s; z-index: 2; }
.pin.on { opacity: 1; }
.pin .core { position: absolute; width: 14px; height: 14px; left: -7px; top: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px var(--voltage), 0 0 24px 6px var(--voltage-glow); }
.pin .ring { position: absolute; width: 60px; height: 60px; left: -30px; top: -30px; border-radius: 50%; border: 2px solid var(--voltage); opacity: 0; animation: ping 2.2s var(--ease) infinite; }
.pin .ring.r2 { animation-delay: 1.1s; }
.pin.drop .core { animation: drop .6s var(--spring); }
@keyframes ping { 0% { transform: scale(.2); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes drop { 0% { transform: translateY(-40px) scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
.pin .tag { position: absolute; left: 18px; top: -14px; white-space: nowrap; background: rgba(14, 15, 18, .82); border: 1px solid rgba(255, 255, 255, .14); border-radius: 12px; padding: 8px 12px; font-size: 14px; font-weight: 600; backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.pin .tag small { display: block; font-weight: 400; font-size: 12px; color: rgba(255, 255, 255, .7); }
.pin.flip .tag { left: auto; right: 18px; }
.map-hint { position: absolute; left: 0; right: 0; bottom: clamp(16px, 5cqh, 36px); text-align: center; font-size: 14px; color: rgba(255, 255, 255, .55); }

/* Scene */
.scene { position: absolute; inset: 0; display: grid; place-items: center; }
.scene svg { width: 100%; height: 100%; display: block; }
.scene .t { transition: all .7s var(--ease); }
.sc-label { font-family: var(--sans); font-size: 15px; font-weight: 600; fill: #fff; }
.sc-small { font-family: var(--sans); font-size: 12.5px; fill: rgba(255, 255, 255, .62); }
.sc-mono { font-family: var(--mono); font-size: 13px; fill: rgba(255, 255, 255, .85); }
.heatflow { stroke-dasharray: 6 10; animation: flow 1.4s linear infinite; }
.waterflow { stroke-dasharray: 3 9; animation: flow 1s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -32; } }
.spin { animation: spin 1.4s linear infinite; transform-box: fill-box; transform-origin: center; }
@keyframes spin { to { transform: rotate(360deg); } }
.flake { animation: fall linear infinite; }
@keyframes fall { from { transform: translateY(-40px); } to { transform: translateY(520px); } }
.pulse-soft { animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* Chips of answered facts, top-left of the stage */
.chips { position: absolute; top: clamp(12px, 3cqh, 22px); left: clamp(12px, 3cqw, 24px); right: clamp(12px, 3cqw, 24px); display: flex; flex-wrap: wrap; gap: 6px; z-index: 3; pointer-events: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; padding: 5px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: pop .45s var(--spring) both; }
.chip i { width: 6px; height: 6px; border-radius: 50%; background: var(--voltage); }
@keyframes pop { from { transform: scale(.7); opacity: 0; } to { transform: none; opacity: 1; } }

/* Result overlay on the stage */
.reveal { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; padding: clamp(16px, 4cqh, 36px) clamp(20px, 5cqw, 44px); background: linear-gradient(180deg, rgba(14, 15, 18, 0), rgba(14, 15, 18, .9) 45%); display: grid; gap: 4px; opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.reveal.on { opacity: 1; transform: none; }
.reveal .k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--voltage-2); }
.reveal .big { font-size: clamp(34px, 9.5cqw, 76px); font-weight: 700; letter-spacing: -.045em; line-height: 1; white-space: nowrap; }
.reveal .big .d { font-weight: 300; color: rgba(255, 255, 255, .5); padding: 0 .1em; }
.reveal .big .e { font-size: .5em; font-weight: 600; margin-left: .08em; }
.reveal .s { font-size: clamp(13px, 2.2cqw, 16px); color: rgba(255, 255, 255, .75); }
.burst { position: absolute; inset: 0; pointer-events: none; z-index: 5; overflow: hidden; }
.burst i { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--voltage); opacity: 0; }
.burst.go i { animation: burst 1.1s var(--ease) forwards; }
@keyframes burst { 0% { opacity: 1; transform: translate(0, 0) scale(1); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.3); } }

/* Panel */
.panel { background: var(--panel); min-height: 0; display: flex; flex-direction: column; border-left: 1px solid var(--hair); position: relative; }
.pbody { flex: 1; min-height: 0; overflow-y: auto; padding-block: clamp(18px, 3.5vh, 40px) 16px; padding-left: clamp(18px, 3.4vw, 48px); padding-right: clamp(18px, 3.4vw, 48px); display: flex; flex-direction: column; gap: 18px; }
.pbody.anim > * { animation: rise .45s var(--ease) both; }
.pbody.anim > *:nth-child(2) { animation-delay: .04s; }
.pbody.anim > *:nth-child(3) { animation-delay: .08s; }
.pbody.anim > *:nth-child(4) { animation-delay: .12s; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.qhead { display: grid; gap: 8px; }
.qcount { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--voltage-deep); }
:root[data-theme="dark"] .qcount { color: var(--voltage-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .qcount { color: var(--voltage-2); } }
.q { margin: 0; font-size: clamp(22px, 2.5vw, 30px); line-height: 1.12; letter-spacing: -.025em; font-weight: 600; text-wrap: balance; }
.help { margin: 0; color: var(--text-2); font-size: 15px; max-width: 52ch; }
.pfoot { display: flex; align-items: center; gap: 12px; padding-block: 12px 16px; padding-left: clamp(18px, 3.4vw, 48px); padding-right: clamp(18px, 3.4vw, 48px); border-top: 1px solid var(--hair); background: var(--panel); }
.back { border: 0; background: none; color: var(--text-3); font-size: 15px; padding: 10px 4px; display: inline-flex; align-items: center; gap: 6px; }
.back:hover { color: var(--text); }
.back svg { width: 16px; height: 16px; }
.next { flex: 1; height: 58px; border-radius: 16px; border: 0; background: var(--voltage); color: #fff; font-size: 17px; font-weight: 600; letter-spacing: -.01em; display: inline-flex; align-items: center; justify-content: center; gap: 10px; box-shadow: 0 8px 22px var(--voltage-glow); transition: transform .15s var(--ease), background .2s, box-shadow .2s, opacity .2s; }
.next:hover { background: var(--voltage-deep); }
.next:active { transform: scale(.98); }
.next:disabled { background: var(--cloud); color: var(--text-3); box-shadow: none; cursor: default; }
.next svg { width: 18px; height: 18px; }

/* Tiles */
.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tiles.one { grid-template-columns: 1fr; }
.tiles.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tile { position: relative; text-align: left; border: 1.5px solid var(--hair-2); background: var(--tile); border-radius: 16px; padding: 14px 16px; min-height: 64px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; transition: border-color .2s, background .2s, transform .15s var(--ease), box-shadow .2s; }
.tile:hover { background: var(--tile-hover); }
.tile:active { transform: scale(.98); }
.tile[aria-pressed="true"] { border-color: var(--voltage); background: var(--voltage-tint); box-shadow: 0 0 0 3px var(--voltage-glow); }
.tile .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--fog); display: grid; place-items: center; color: var(--text); }
.tile[aria-pressed="true"] .ic { background: var(--voltage); color: #fff; }
.tile .ic svg { width: 24px; height: 24px; stroke: currentColor; }
.tile .tl { display: grid; gap: 2px; min-width: 0; }
.tile .tl b { font-weight: 600; font-size: 16px; letter-spacing: -.01em; }
.tile .tl span { font-size: 13px; color: var(--text-3); }
.tile .ck { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--hair-2); display: grid; place-items: center; transition: all .2s; }
.tile[aria-pressed="true"] .ck { background: var(--voltage); border-color: var(--voltage); }
.tile .ck svg { width: 12px; height: 12px; stroke: #fff; opacity: 0; transition: opacity .2s; }
.tile[aria-pressed="true"] .ck svg { opacity: 1; }
.tile .tag { position: absolute; top: -9px; right: 12px; font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 2px 8px; border-radius: 999px; background: var(--voltage); color: #fff; }
.tile.noic { grid-template-columns: 1fr auto; }

/* Number step */
.numbox { display: grid; gap: 16px; padding: 18px; border-radius: 18px; background: var(--panel-2); border: 1px solid var(--hair); }
.numrow { display: flex; align-items: baseline; gap: 10px; justify-content: center; }
.numrow input { width: 5.2ch; border: 0; background: none; font-size: clamp(48px, 6vw, 68px); font-weight: 600; letter-spacing: -.04em; text-align: center; font-variant-numeric: tabular-nums; color: var(--text); padding: 0; -moz-appearance: textfield; appearance: textfield; }
.numrow input::-webkit-outer-spin-button, .numrow input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.numrow input:focus { outline: none; }
.numrow .u { font-size: 22px; color: var(--text-3); font-weight: 500; }
input[type=range] { width: 100%; height: 36px; background: none; -webkit-appearance: none; appearance: none; }
input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--voltage) var(--p, 50%), var(--cloud) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 8px; border-radius: 8px; background: var(--cloud); }
input[type=range]::-moz-range-progress { height: 8px; border-radius: 8px; background: var(--voltage); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; margin-top: -11px; border-radius: 50%; background: #fff; border: 3px solid var(--voltage); box-shadow: 0 4px 14px var(--voltage-glow); }
input[type=range]::-moz-range-thumb { width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--voltage); box-shadow: 0 4px 14px var(--voltage-glow); }
.presets { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pre { border: 1.5px solid var(--hair-2); background: var(--tile); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-variant-numeric: tabular-nums; transition: all .2s; }
.pre:hover { background: var(--tile-hover); }
.pre[aria-pressed="true"] { border-color: var(--voltage); background: var(--voltage-tint); color: var(--voltage-deep); }
.hint { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--text-2); padding: 12px 14px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--hair); }
.hint svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--voltage); }
.hint.ok { background: var(--success-tint); border-color: transparent; }
.hint.ok svg { color: var(--success); }
.hint b { color: var(--text); }

/* Town step */
.search { position: relative; }
.search input { width: 100%; height: 60px; border-radius: 16px; border: 1.5px solid var(--hair-2); background: var(--tile); padding: 0 16px 0 50px; font-size: 18px; transition: border-color .2s, box-shadow .2s; }
.search input:focus { outline: none; border-color: var(--voltage); box-shadow: 0 0 0 4px var(--voltage-glow); }
.search > svg { position: absolute; left: 17px; top: 20px; width: 20px; height: 20px; color: var(--text-3); }
.sugg { display: grid; gap: 4px; margin-top: 8px; }
.sugg button { text-align: left; border: 0; background: var(--panel-2); border-radius: 12px; min-height: 52px; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; transition: background .15s; }
.sugg button:hover, .sugg button.hl { background: var(--voltage-tint); }
.sugg b { font-weight: 600; }
.sugg span { font-size: 13px; color: var(--text-3); }
.quick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.quick .lbl { font-size: 13px; color: var(--text-3); margin-right: 2px; }
.geo { border: 1.5px dashed var(--hair-2); background: none; border-radius: 14px; padding: 12px 14px; display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text-2); }
.geo svg { width: 18px; height: 18px; color: var(--voltage); }
.towncard { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 16px; background: var(--voltage-tint); border: 1.5px solid var(--voltage); animation: pop .4s var(--spring); }
.towncard .pinic { width: 44px; height: 44px; border-radius: 50%; background: var(--voltage); display: grid; place-items: center; flex: none; }
.towncard .pinic svg { width: 22px; height: 22px; stroke: #fff; }
.towncard b { font-size: 18px; display: block; }
.towncard span { font-size: 13.5px; color: var(--text-2); }
.towncard button { margin-left: auto; border: 0; background: none; color: var(--voltage-deep); font-weight: 600; font-size: 14px; }

/* Hub */
.hubtitle { margin: 0; font-size: clamp(24px, 2.6vw, 32px); letter-spacing: -.03em; line-height: 1.1; font-weight: 600; text-wrap: balance; }
.sims { display: grid; gap: 10px; }
.sim { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; align-items: center; text-align: left; padding: 10px 14px 10px 10px; border-radius: 18px; border: 1.5px solid var(--hair-2); background: var(--tile); transition: border-color .2s, background .2s, transform .15s var(--ease), box-shadow .2s; }
.sim:hover { border-color: var(--voltage); box-shadow: 0 0 0 3px var(--voltage-glow); }
.sim:active { transform: scale(.985); }
.sim .th { width: 64px; height: 64px; border-radius: 13px; background-size: cover; background-position: center; }
.sim .tl { display: grid; gap: 3px; min-width: 0; }
.sim .tl b { font-size: 16.5px; font-weight: 600; letter-spacing: -.015em; }
.sim .tl span { font-size: 13px; color: var(--text-3); }
.sim .meta { display: grid; justify-items: end; gap: 6px; }
.sim .code { font-family: var(--mono); font-size: 11.5px; color: var(--text-2); border: 1px solid var(--hair-2); border-radius: 999px; padding: 2px 8px; white-space: nowrap; }
.sim .arrow { width: 30px; height: 30px; border-radius: 50%; background: var(--fog); display: grid; place-items: center; transition: background .2s, transform .2s var(--ease); }
.sim:hover .arrow { background: var(--voltage); color: #fff; transform: translateX(2px); }
.sim .arrow svg { width: 14px; height: 14px; }
.foot-note { font-size: 12.5px; color: var(--text-3); line-height: 1.5; }

/* Intro */
.asks { display: flex; flex-wrap: wrap; gap: 8px; }
.ask { display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--hair); font-size: 14px; }
.ask i { font-style: normal; font-family: var(--mono); font-size: 12px; color: var(--voltage-deep); }
.lead { margin: 0; font-size: 16px; color: var(--text-2); max-width: 52ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.fact { padding: 12px; border-radius: 14px; background: var(--panel-2); border: 1px solid var(--hair); display: grid; gap: 2px; }
.fact b { font-size: 18px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.fact span { font-size: 12.5px; color: var(--text-3); }

/* Result panel */
.res-amount { display: grid; gap: 6px; }
.res-amount .k { font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.res-amount .v { font-size: clamp(36px, 4.4vw, 52px); font-weight: 700; letter-spacing: -.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.res-amount .v .d { font-weight: 300; color: var(--text-4); padding: 0 .08em; }
.res-amount .v .e { font-size: .5em; font-weight: 600; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pill { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--panel-2); border: 1px solid var(--hair-2); color: var(--text-2); }
.pill.mono { font-family: var(--mono); font-size: 12px; }
.pill.est { background: rgba(242, 162, 24, .12); border-color: transparent; color: #8A5A00; }
:root[data-theme="dark"] .pill.est { color: #F7C46A; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.est { color: #F7C46A; } }
.pill.ok { background: var(--success-tint); border-color: transparent; color: #087A4B; }
:root[data-theme="dark"] .pill.ok { color: #5FE0A8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pill.ok { color: #5FE0A8; } }
.calc { border-radius: 16px; border: 1px solid var(--hair); background: var(--panel-2); overflow: hidden; }
.calc summary { list-style: none; padding: 14px 16px; font-weight: 600; font-size: 15px; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.calc summary::-webkit-details-marker { display: none; }
.calc summary svg { width: 16px; height: 16px; transition: transform .25s var(--ease); color: var(--text-3); }
.calc[open] summary svg { transform: rotate(180deg); }
.calc .rows { padding: 0 16px 14px; display: grid; gap: 8px; }
.calc .row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; color: var(--text-2); }
.calc .row b { color: var(--text); font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; }
.calc .row.tot { border-top: 1px solid var(--hair-2); padding-top: 8px; }
.calc .formula { font-family: var(--mono); font-size: 12.5px; color: var(--text-2); background: var(--panel); border: 1px solid var(--hair); border-radius: 10px; padding: 8px 10px; overflow-x: auto; white-space: nowrap; }
.cta { display: grid; gap: 10px; padding: 16px; border-radius: 20px; background: var(--graphite); color: #fff; position: relative; overflow: hidden; }
.cta::before { content: ""; position: absolute; width: 260px; height: 260px; right: -90px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(10, 132, 255, .45), rgba(10, 132, 255, 0) 70%); pointer-events: none; }
.cta h3 { margin: 0; font-size: 18px; letter-spacing: -.02em; font-weight: 600; position: relative; }
.cta p { margin: 0; font-size: 14px; color: rgba(255, 255, 255, .72); position: relative; }
.cta .go { position: relative; height: 60px; border-radius: 16px; background: var(--voltage); color: #fff; text-decoration: none; display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 17px; font-weight: 600; box-shadow: 0 10px 30px rgba(10, 132, 255, .45); transition: transform .15s var(--ease), background .2s; }
.cta .go:hover { background: var(--voltage-deep); }
.cta .go:active { transform: scale(.98); }
.cta .go svg { width: 18px; height: 18px; }
.cta .alt { position: relative; display: flex; gap: 8px; flex-wrap: wrap; }
.cta .alt a, .cta .alt button { flex: 1; min-width: 140px; height: 46px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; display: flex; align-items: center; justify-content: center; font-size: 14.5px; font-weight: 500; }
.cta .alt a:hover, .cta .alt button:hover { background: rgba(255, 255, 255, .12); }
.links { display: flex; gap: 16px; flex-wrap: wrap; }
.links button { border: 0; background: none; padding: 4px 0; color: var(--text-2); font-size: 14px; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--hair-2); }
.links button:hover { color: var(--text); }
.refusal { display: grid; gap: 8px; padding: 18px; border-radius: 18px; background: var(--danger-tint); border: 1px solid rgba(225, 62, 62, .25); }
.refusal b { font-size: 17px; }
.refusal p { margin: 0; color: var(--text-2); font-size: 15px; }
.ladder { display: grid; gap: 6px; }
.lad { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; font-size: 14px; }
.lad .bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--cloud); overflow: hidden; }
.lad .bar i { display: block; height: 100%; border-radius: 8px; background: var(--voltage); transform-origin: left; animation: grow .9s var(--ease) both; }
.lad.ref .bar i { background: var(--text-4); }
@keyframes grow { from { transform: scaleX(0); } }

/* Ticket */
.ticket { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: clamp(12px, 2.4vw, 28px); padding-block: 10px; padding-left: max(18px, env(safe-area-inset-left, 0px)); padding-right: max(18px, env(safe-area-inset-right, 0px)); padding-bottom: max(10px, env(safe-area-inset-bottom, 0px)); background: var(--graphite); color: #fff; border-top: 1px solid rgba(255, 255, 255, .06); min-height: 74px; position: relative; z-index: 6; }
.ticket[hidden] { display: none; }
.t-left { display: grid; gap: 2px; min-width: 0; }
.t-label { font-size: 11.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); white-space: nowrap; }
.t-amount { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; white-space: nowrap; }
.t-amount .d { font-weight: 300; color: rgba(255, 255, 255, .45); }
.t-amount .e { font-size: .6em; font-weight: 600; margin-left: .1em; }
.t-amount.wait { font-size: 16px; font-weight: 500; color: rgba(255, 255, 255, .6); letter-spacing: 0; }
.t-mid { display: grid; gap: 6px; min-width: 0; }
.t-bar { position: relative; height: 10px; border-radius: 10px; background: rgba(255, 255, 255, .08); }
.t-band { position: absolute; top: 0; bottom: 0; border-radius: 10px; background: linear-gradient(90deg, var(--voltage-deep), var(--voltage-2)); box-shadow: 0 0 18px rgba(10, 132, 255, .55); transition: left .8s var(--ease), width .8s var(--ease), opacity .4s; }
.t-cap { display: flex; justify-content: space-between; font-size: 11.5px; color: rgba(255, 255, 255, .5); font-variant-numeric: tabular-nums; }
.t-right { display: grid; justify-items: end; gap: 2px; }
.t-kwh { font-family: var(--mono); font-size: 14px; color: rgba(255, 255, 255, .9); white-space: nowrap; }
.t-kwh small { color: rgba(255, 255, 255, .5); font-family: var(--sans); font-size: 11.5px; display: block; text-align: right; }
.plus { position: absolute; left: 18px; top: -30px; font-size: 14px; font-weight: 700; color: var(--voltage-2); background: rgba(14, 15, 18, .85); padding: 4px 10px; border-radius: 999px; opacity: 0; pointer-events: none; }
.plus.go { animation: plus 1.4s var(--ease) forwards; }
@keyframes plus { 0% { opacity: 0; transform: translateY(8px); } 20% { opacity: 1; transform: none; } 80% { opacity: 1; } 100% { opacity: 0; transform: translateY(-10px); } }

/* Phone */
@media (max-width: 820px) {
  .main { grid-template-columns: 1fr; grid-template-rows: clamp(190px, 34%, 330px) minmax(0, 1fr); }
  .panel { border-left: 0; border-top: 1px solid var(--hair); }
  .crumb { display: none; }
  .prog i { width: 10px; }
  .prog i.now { width: 18px; }
  .proto { display: none; }
  .over h1 { font-size: clamp(24px, 8cqw, 40px); }
  .over p { display: none; }
  .ticket { grid-template-columns: auto 1fr; min-height: 64px; }
  .t-mid { display: none; }
  .next { height: 54px; }
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .fact b { font-size: 16px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tiles.one { grid-template-columns: 1fr; }
  .tile { padding: 12px; gap: 10px; min-height: 58px; }
  .tile .ic { width: 34px; height: 34px; }
  .tile .ck { display: none; }
  .tile.noic { grid-template-columns: 1fr; }
  .pin .tag { font-size: 13px; padding: 6px 10px; }
  .typing .main { grid-template-rows: 0 minmax(0, 1fr); }
  .reveal .s { display: none; }
}
@media (max-width: 820px) and (max-height: 700px) {
  .main { grid-template-rows: clamp(150px, 28%, 220px) minmax(0, 1fr); }
  .pbody { gap: 12px; }
  .help { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
[hidden] { display: none !important; }
.flipin { animation: pop .5s var(--spring); transform-box: fill-box; transform-origin: center; }
.pfoot[hidden] { display: none !important; }
.pbody > * { flex-shrink: 0; }
@media (max-width: 820px) {
  .chip:nth-last-child(n+4) { display: none; }
  .chip { font-size: 11.5px; padding: 4px 9px; }
  .reveal { display: none; }
}
.cta .alt a, .cta .alt button { text-align: center; padding: 0 10px; line-height: 1.2; }
button.crumb { border: 0; border-left: 1px solid var(--hair-2); background: none; font: inherit; font-size: 14px; color: var(--text-3); text-align: left; cursor: pointer; }
.topcta { margin-left: 4px; flex: none; height: 36px; padding: 0 14px; border-radius: 10px; background: var(--text); color: var(--panel); text-decoration: none; font-size: 14px; font-weight: 600; display: inline-flex; align-items: center; transition: background .2s, transform .15s var(--ease); }
.topcta:hover { background: var(--voltage); color: #fff; }
.prog:empty + .topcta { margin-left: auto; }
@media (max-width: 820px) { .topcta { height: 32px; padding: 0 10px; font-size: 13px; } .prog:not(:empty) + .topcta { display: none; } }
