@font-face{font-family:Space;src:url('assets/space-grotesk.ttf') format('truetype');font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:Nexus;src:url('assets/pixellar-nexus.woff2') format('woff2');font-style:normal;font-weight:500;font-display:swap}
:root{font-family:Space,Arial,sans-serif;color:#eeeae5;background:#05070b;color-scheme:dark;--muted:#9398a1;--orange:#ec8b45}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}button,input,summary{-webkit-tap-highlight-color:transparent}button,input{font:inherit}button,summary{cursor:pointer}button{color:inherit}button:disabled{opacity:.4;cursor:default}button:focus-visible,input:focus-visible,summary:focus-visible{outline:2px solid #f2ad75;outline-offset:5px}
.scene-wrap,.scene{position:fixed;inset:0;width:100%;height:100%;height:100dvh;overflow:hidden}.scene{isolation:isolate;background:#080c13}.scene-world{position:absolute;transform-origin:21% 34%}.art,.steam,.eyelids{position:absolute;inset:0;display:block;width:100%;height:100%}.steam,.eyelids{pointer-events:none}.steam{mix-blend-mode:screen}#ram-layer{isolation:isolate}#torso-composite{mix-blend-mode:plus-lighter}
.scene-copy{position:absolute;left:50%;top:42%;width:34%;max-width:540px;transform:translateY(-50%);pointer-events:none;text-align:center;filter:drop-shadow(0 2px 12px #02060c99)}.result-logo{display:block;width:100%;height:auto}.tagline{font-family:Nexus,Space,Arial,sans-serif;font-weight:500;font-size:clamp(15px,1.65vw,26px);letter-spacing:.075em;line-height:1.2;color:#e9e2da;margin:8px 0 0}.configuration{font-family:monospace;position:absolute;bottom:clamp(28px,5.2vh,68px);left:50%;transform:translateX(-50%);margin:0;white-space:nowrap;font-size:clamp(11px,1vw,15px);font-weight:400;letter-spacing:.46em;word-spacing:.65em;text-indent:.46em;color:#e9e7e5;text-shadow:0 2px 12px #000,0 1px 4px #000;pointer-events:none}.configuration:before{content:'';position:absolute;z-index:-1;inset:-28px -60px;background:radial-gradient(ellipse,#05070b66,transparent 70%)}
.scene[data-focus=true] .scene-world{transform:scale(2.1)}.scene[data-focus=true] .scene-copy{visibility:hidden}.scene[data-original=true] .animated-scene,.scene[data-original=true] .steam,.scene[data-original=true] .eyelids,.scene[data-original=true] .scene-copy,.scene[data-original=true] .configuration{visibility:hidden}.scene[data-copy=false] .scene-copy,.scene[data-copy=false] .configuration{visibility:hidden}.scene[data-ready=false] .animated-scene,.scene[data-ready=false] .steam,.scene[data-ready=false] .eyelids{visibility:hidden}.original-label{display:none;position:absolute;left:24px;top:85px;border:1px solid #ffffff35;background:#080c13bb;padding:9px 12px;font:9px monospace;letter-spacing:.12em}.scene[data-original=true] .original-label{display:block}.load-error{position:absolute;top:50%;right:5%;max-width:400px;padding:16px;background:#111d;color:#ffd4a4;font-size:12px;line-height:1.7}
.topbar{position:fixed;z-index:3;top:22px;left:28px;right:28px;display:flex;align-items:center;justify-content:space-between;pointer-events:none}.brand{width:130px;height:auto;max-height:34px;filter:drop-shadow(0 1px 8px #000)}.edition{display:flex;gap:10px;align-items:center;font:9px monospace;letter-spacing:.13em;color:#e0d6ce;text-shadow:0 1px 8px #000}.edition-note{color:#a6a4a4}.status-dot{width:5px;height:5px;border-radius:50%;background:#f09351}
.controls{position:fixed;z-index:4;bottom:20px;left:24px;right:24px;width:calc(100% - 48px);max-width:1240px;max-height:66dvh;overflow:auto;margin:0 auto;display:grid;grid-template-columns:minmax(180px,1fr) auto auto;align-items:center;gap:16px 24px;padding:20px 24px 12px;background:#080c12ed;border:1px solid #ffffff21;border-radius:12px;backdrop-filter:blur(16px);box-shadow:0 8px 40px #0005}.transport{display:flex;align-items:center;gap:13px}.play-button{height:40px;width:40px;flex-shrink:0;border-radius:50%;border:1px solid #ffffff35;background:transparent;font-size:17px}.play-button:hover{background:#ffffff09;border-color:#ed7b3288}.control-title{font-size:12px;margin:0 0 5px}.control-caption{font-size:10px;color:var(--muted);margin:0}.switches{display:flex;gap:18px;align-items:center}.toggle{display:flex;align-items:center;gap:8px;cursor:pointer;font-size:11px;position:relative;color:#d0d0d5;white-space:nowrap}.toggle input{position:absolute;width:28px;height:17px;opacity:0}.switch{position:relative;flex-shrink:0;width:28px;height:17px;border:1px solid #ffffff35;border-radius:20px;background:#ffffff05}.switch:after{content:'';position:absolute;top:3px;left:3px;width:9px;height:9px;background:#82858e;border-radius:50%}.toggle input:checked+.switch{background:#ba64282b;border-color:#b97950}.toggle input:checked+.switch:after{left:14px;background:#f1a26d}.toggle input:focus-visible+.switch{outline:2px solid var(--orange);outline-offset:4px}.compare{justify-self:end;display:flex;align-items:center;gap:10px}.compare-button,.result-button{border:1px solid #ffffff30;border-radius:5px;background:transparent;padding:12px 14px;font-size:11px;white-space:nowrap}.compare-button:hover,.compare-button[aria-pressed=true]{border-color:#bd855f;background:#ffffff08}.result-button{background:#ed9858;border-color:#ed9858;color:#20130b;font-weight:600}.result-button:hover{background:#ffb67d}.result-button span{margin-left:12px}.adjustments{grid-column:1/-1;border-top:1px solid #ffffff16;padding-top:13px}.adjustments summary{display:flex;justify-content:space-between;list-style:none;font-size:11px;color:#a7a9af}.adjustments summary::-webkit-details-marker{display:none}.adjustments summary span{font-size:14px}.adjustment-body{padding:22px 0 4px;max-width:700px}.adjustment-body>label{display:flex;justify-content:space-between;font-size:12px;margin:14px 0 12px}.adjustment-body output{color:#e2ab85}.adjustment-body>input{width:100%;accent-color:#df8e56}.adjustment-body p{font-size:11px;line-height:1.65;color:var(--muted)}.review-actions{display:flex;flex-wrap:wrap;align-items:center;gap:20px;margin:22px 0}.panel-hint{grid-column:1/-1;font-size:10px;color:#858b96;margin:0;line-height:1.5}
.result-pause{display:none;position:fixed;z-index:5;right:max(20px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));width:38px;height:38px;border:1px solid #ffffff30;border-radius:50%;background:#05091066;color:#d9dce1;font-size:15px;align-items:center;justify-content:center;opacity:.58}.result-pause:hover,.result-pause:focus-visible{opacity:1;background:#050910bb}body[data-view=result] .topbar,body[data-view=result] .controls{display:none}body[data-view=result] .result-pause{display:flex}
@media(max-width:1080px){.controls{grid-template-columns:1fr auto;gap:16px}.switches{grid-row:2;grid-column:1/-1;justify-content:space-between}.compare{grid-column:2;grid-row:1}.control-caption{font-size:9px}}
@media(max-width:600px) and (max-aspect-ratio:1/1){.scene-copy{left:50%;top:9%;width:min(68%,320px);transform:translate(-50%,0)}.tagline{font-size:clamp(14px,3.5vw,20px);margin-top:8px}.configuration{bottom:max(36px,calc(env(safe-area-inset-bottom) + 32px));font-size:11px;letter-spacing:.4em;word-spacing:.5em}.result-pause{bottom:max(26px,env(safe-area-inset-bottom));right:16px;width:32px;height:32px}}
@media(max-width:600px){.topbar{top:18px;left:18px;right:18px}.brand{width:110px}.edition{font-size:8px;gap:6px}.edition-note{display:none}.controls{left:12px;right:12px;bottom:12px;width:calc(100% - 24px);padding:16px;gap:16px 10px;max-height:70dvh}.transport{gap:9px}.control-title{font-size:11px}.control-caption{display:none}.play-button{width:34px;height:34px}.compare{gap:7px}.compare-button,.result-button{padding:11px 10px;font-size:10px}.result-button span{margin-left:5px}.switches{display:grid;grid-template-columns:1fr 1fr;gap:14px 24px}.panel-hint{font-size:9px}.review-actions{gap:17px}.review-actions .toggle{font-size:10px}.original-label{left:18px;top:68px}.load-error{left:20px;right:20px;max-width:none}.result-pause{opacity:.7}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
html[data-view=result] .topbar,html[data-view=result] .controls{display:none}html[data-view=result] .result-pause{display:flex}

.scene[data-brand-position=bottom] .scene-copy{top:70%}.brand-position{margin:0 0 24px;padding:14px 16px;border:1px solid #ffffff24;border-radius:6px;display:flex;gap:24px;align-items:center}.brand-position legend{font-size:11px;color:#a7a9af;padding:0 6px}.brand-position label{font-size:12px;display:flex;gap:7px;align-items:center;cursor:pointer}.brand-position input{accent-color:#ed9858}
@media(max-width:600px) and (max-aspect-ratio:1/1){.scene[data-brand-position=bottom] .scene-copy{top:auto;bottom:14%;transform:translate(-50%,0)}}

/* Brand color matches the orange A in the supplied vector wordmark. */
:root{--brand-orange:#ff8700}
.tagline{color:var(--brand-orange)}
.configuration{left:auto;right:max(24px,4vw,env(safe-area-inset-right));bottom:max(32px,5vh,calc(env(safe-area-inset-bottom) + 20px));transform:none;text-align:right;text-indent:0;max-width:calc(100vw - 48px);font-size:clamp(16px,1.35vw,20px);font-weight:500;letter-spacing:.28em;word-spacing:.45em;color:#fffaf5}
.result-pause{top:max(20px,env(safe-area-inset-top));bottom:auto}
@media(max-width:1180px) and (min-aspect-ratio:1/1){.scene-copy{left:48%;width:44%;max-width:520px}.tagline{font-size:clamp(18px,2vw,24px)}}
@media(max-width:1024px) and (max-aspect-ratio:1/1){.scene-copy{left:50%;top:8%;width:80%;max-width:640px;transform:translate(-50%,0)}.tagline{font-size:clamp(20px,2.5vw,26px);margin-top:6px}.scene[data-brand-position=bottom] .scene-copy{top:auto;bottom:15%;transform:translate(-50%,0)}}
@media(max-width:640px) and (max-aspect-ratio:1/1){.scene-copy{top:clamp(56px,8vh,96px);width:calc(100% - 40px);max-width:390px}.tagline{font-size:clamp(17px,4.6vw,20px)}.configuration{font-size:16px;letter-spacing:.25em;right:max(24px,env(safe-area-inset-right))}.result-pause{top:max(16px,env(safe-area-inset-top));bottom:auto}.scene[data-brand-position=bottom] .scene-copy{bottom:15%}}
.gesture-review{border-top:1px solid #ffffff16;border-bottom:1px solid #ffffff16;padding:17px 0;margin:20px 0}.gesture-review>label:not(.toggle){display:flex;justify-content:space-between;font-size:12px;margin:18px 0 12px}.gesture-review>input{width:100%;accent-color:#df8e56}
.configuration{line-height:1;filter:drop-shadow(0 2px 8px #000);font-size:0}.configuration img{display:block;width:clamp(280px,28vw,430px);max-width:calc(100vw - 48px);height:auto}.configuration:before{inset:-18px -24px}
.panel-hint a{color:#f2ad75;text-underline-offset:3px}

/* Revision 08: articulated, connected character surface; rigid face and cup. */
.ram-live{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.scene[data-rig=mesh] #weight-rig{visibility:hidden}
.scene[data-original=true] .ram-live,.scene[data-ready=false] .ram-live{visibility:hidden}
.terminal-cursor{position:absolute;left:93.442623%;top:33.333333%;width:2.704918%;height:45.333333%;background:var(--brand-orange);box-shadow:0 0 5px #ff870066;animation:terminal-caret 1.1s steps(1,end) infinite}
@keyframes terminal-caret{0%,49.99%{opacity:1}50%,100%{opacity:0}}
.scene[data-paused=true] .terminal-cursor{animation-play-state:paused}
@media(prefers-reduced-motion:reduce){.terminal-cursor{animation:none}}
@media(max-width:1024px) and (max-aspect-ratio:1/1){.scene[data-brand-position=bottom] .scene-copy{bottom:43%}}

/* Earth is composited only inside the glass, below the preserved blue limb. */
.earth-layer{position:absolute;left:0;top:48.611111%;width:100%;height:27.777778%;pointer-events:none;display:block}
.earth-layer[data-ready=false],.earth-layer[data-enabled=false],.scene[data-original=true] .earth-layer,.scene[data-ready=false] .earth-layer{visibility:hidden}
.adjustment-body a{color:#b8d4e8;text-underline-offset:3px}

/* Revision 18: quieter branding and transparent terminal label. */
.scene-copy{left:auto;right:4.2vw;top:7.5vh;width:clamp(240px,24vw,420px);max-width:420px;transform:none}
.tagline{font-size:clamp(13px,1.02vw,18px);letter-spacing:.12em;margin-top:7px}
.configuration{right:max(3.6vw,env(safe-area-inset-right));bottom:max(3.8vh,calc(env(safe-area-inset-bottom) + 16px));filter:none;background:none;border:0;box-shadow:none}
.configuration:before{display:none}
.configuration img{width:clamp(230px,23vw,340px);min-width:0;max-width:calc(100vw - 40px);height:auto}
.terminal-cursor{left:95.726496%;top:27.272727%;width:2.820513%;height:61.818182%}
@media (max-width: 1180px), (max-width: 1366px) and (pointer: coarse) {
  .scene-copy, .configuration { left: 50%; right: auto; transform: translateX(-50%); }
  .scene-copy { top: 11dvh; }
  .configuration { bottom: max(2.7dvh, calc(env(safe-area-inset-bottom) + 12px)); }
}
@media(max-width:1024px) and (max-aspect-ratio:1/1){
 .scene-copy{top:15dvh;width:60%;max-width:480px}
 .tagline{font-size:clamp(15px,2vw,20px)}
 .configuration img{width:42vw}
}
@media(max-width:640px) and (max-aspect-ratio:1/1){
 .scene-copy{top:clamp(72px,17.5dvh,150px);width:74vw;max-width:320px}
 .tagline{font-size:clamp(13px,3.4vw,16px);margin-top:6px}
 .configuration img{width:70vw;min-width:0;max-width:300px}
}

.sound-control {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-width: 38px;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid #ffffff38;
  border-radius: 999px;
  background: #050910b8;
  color: #e9e2da;
  font: 400 12px Space, Arial, sans-serif;
  white-space: nowrap;
}
.sound-control:hover:not(:disabled), .sound-control:focus-visible { background: #141b26; border-color: #ffffff70; }
.sound-control svg { flex: none; }
.panel-footer {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.panel-footer .sound-control { flex-shrink: 0; }
.result-controls {
  display: none;
  position: fixed;
  z-index: 5;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(18px, env(safe-area-inset-bottom));
  align-items: center;
  gap: 10px;
}
body[data-view=result] .result-controls,
html[data-view=result] .result-controls {
  display: flex;
}
.result-pause,
.result-sound {
  position: static;
  top: auto;
  right: auto;
  bottom: auto;
  left: auto;
}
html[data-view=result] .result-sound { display: inline-flex; }
@media (max-width: 600px) {
  .result-pause,
  .result-sound {
    min-height: 40px;
    min-width: 40px;
  }
}

/* Scale RAM and her attached effects together around the bottom of the shot. */
.ram-foreground {
  position: absolute;
  inset: 0;
  pointer-events: none;
  transform-origin: 21% 100%;
}
@media (max-width: 1024px) and (max-aspect-ratio: 1/1) {
  .scene[data-focus=false] .ram-foreground { transform: scale(.90); }
  .scene[data-focus=false] .clean-plate { mask: none; }
}
@media (max-width: 640px) and (max-aspect-ratio: 1/1) {
  .scene[data-focus=false] .ram-foreground { transform: scale(.82); }
  .configuration { filter: drop-shadow(0 1px 2px #000) drop-shadow(0 0 4px #020407e6); }
}
@media (max-width: 640px) and (min-height: 640px) and (max-aspect-ratio: 1/1) {
  .scene-copy { top: clamp(64px, 13.5dvh, 124px); }
  .scene[data-focus=false] .ram-foreground { transform: scale(.92); }
}

/* Propuesta A: Ultra-transparent HUD Homebrew-style source code panel */
.brew-panel {
  position: absolute;
  right: max(3.6vw, env(safe-area-inset-right));
  top: 21.5dvh;
  bottom: 13.5dvh;
  width: clamp(280px, 24.8vw, 382px);
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
  background: linear-gradient(180deg, rgba(12, 48, 37, 0.10) 0%, rgba(41, 223, 176, 0.04) 50%, rgba(8, 32, 25, 0.12) 100%);
  border: 1px solid rgba(68, 235, 186, 0.15);
  box-shadow: inset 0 0 28px rgba(41, 223, 176, 0.03), 0 4px 24px rgba(0, 0, 0, 0.14);
  overflow: hidden;
  padding: 13px 15px 14px;
  pointer-events: none;
}
.brew-panel::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(to right, rgba(68, 235, 186, 0.55) 8px, transparent 8px) 0 0 / 100% 1px no-repeat,
    linear-gradient(to bottom, rgba(68, 235, 186, 0.55) 8px, transparent 8px) 0 0 / 1px 100% no-repeat,
    linear-gradient(to left, rgba(68, 235, 186, 0.55) 8px, transparent 8px) 100% 0 / 100% 1px no-repeat,
    linear-gradient(to bottom, rgba(68, 235, 186, 0.55) 8px, transparent 8px) 100% 0 / 1px 100% no-repeat,
    linear-gradient(to right, rgba(68, 235, 186, 0.55) 8px, transparent 8px) 0 100% / 100% 1px no-repeat,
    linear-gradient(to top, rgba(68, 235, 186, 0.55) 8px, transparent 8px) 0 100% / 1px 100% no-repeat,
    linear-gradient(to left, rgba(68, 235, 186, 0.55) 8px, transparent 8px) 100% 100% / 100% 1px no-repeat,
    linear-gradient(to top, rgba(68, 235, 186, 0.55) 8px, transparent 8px) 100% 100% / 1px 100% no-repeat;
}
.brew-panel-header {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 7px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(68, 235, 186, 0.12);
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: 9px;
  letter-spacing: 0.16em;
  color: rgba(68, 235, 186, 0.72);
  text-transform: uppercase;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.8);
}
.brew-live-dot {
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #44ebba;
  box-shadow: 0 0 6px #44ebba;
  margin-right: 6px;
  vertical-align: middle;
}
.brew-stream-body {
  flex: 1;
  min-height: 0;
  font-family: 'SF Mono', Menlo, Monaco, 'Courier New', monospace;
  font-size: clamp(9.5px, 0.68vw, 10.5px);
  line-height: 1.5;
  color: #29dfb0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 2px;
  overflow: hidden;
  mask-image: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.65) 10%, black 22%, black 100%);
  -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.18) 0%, rgba(0,0,0,0.65) 10%, black 22%, black 100%);
}
.brew-line {
  flex-shrink: 0;
  min-width: 0;
  white-space: pre;
  overflow: hidden;
  text-shadow: 0 1px 3px rgba(2, 6, 12, 0.9), 0 0 5px rgba(41, 223, 176, 0.25);
  display: flex;
  justify-content: space-between;
}
.brew-line-left {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}
.brew-dim-bin {
  color: rgba(41, 223, 176, 0.28);
  font-size: clamp(8.5px, 0.62vw, 9.5px);
  letter-spacing: 0.05em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.65);
}
.brew-dim {
  color: rgba(41, 223, 176, 0.50);
}
.brew-code {
  color: rgba(68, 235, 186, 0.68);
}
.brew-cmd {
  color: #44ebba;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(2, 6, 12, 0.92), 0 0 8px rgba(68, 235, 186, 0.42);
}
.brew-arrow {
  color: #6bffd3;
  font-weight: 700;
}
.brew-ok {
  color: #5fffd2;
  font-weight: 600;
  flex-shrink: 0;
  margin-left: 6px;
}
.brew-active-line {
  color: #6bffd3;
  font-weight: 600;
  text-shadow: 0 1px 3px rgba(2, 6, 12, 0.95), 0 0 8px rgba(68, 235, 186, 0.55);
}
.brew-inline-caret {
  display: inline-block;
  width: 6px;
  height: 11px;
  background: #44ebba;
  vertical-align: -1px;
  margin-left: 4px;
  box-shadow: 0 0 6px #44ebba;
  animation: terminal-caret 1.1s steps(1, end) infinite;
}
.scene[data-paused=true] .brew-inline-caret {
  animation-play-state: paused;
}
@media (prefers-reduced-motion: reduce) {
  .brew-inline-caret { animation: none; }
}
.scene[data-focus=true] .brew-panel,
.scene[data-original=true] .brew-panel,
.scene[data-copy=false] .brew-panel {
  visibility: hidden;
}
.scene[data-brand-position=bottom] .brew-panel {
  top: 8dvh;
  bottom: 34dvh;
}
/* Tablet Opción 1: Anclado a la derecha del ventanal sin tocar la taza ni el rostro de RAM */
@media (max-width: 1180px), (max-width: 1366px) and (pointer: coarse) {
  .brew-panel {
    left: auto;
    right: max(3.2vw, env(safe-area-inset-right));
    transform: none;
    top: 23dvh;
    bottom: 12dvh;
    width: clamp(280px, 44vw, 380px);
  }
}
@media (max-width: 1024px) and (max-aspect-ratio: 1/1) {
  .brew-panel {
    left: auto;
    right: max(3.2vw, env(safe-area-inset-right));
    transform: none;
    top: 23.5dvh;
    bottom: 11.5dvh;
    width: clamp(270px, 49vw, 380px);
    padding: 12px 14px;
  }
}
/* Móvil: Pantallas verticales estrechas (Android e iPhone) */
@media (max-width: 768px) and (max-aspect-ratio: 1/1) {
  .brew-panel {
    display: flex;
    position: absolute;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    top: 61.5dvh;
    bottom: max(84px, calc(env(safe-area-inset-bottom, 20px) + 64px));
    width: min(88vw, 330px);
    padding: 7px 11px 8px;
    background: linear-gradient(180deg, rgba(8, 28, 22, 0.70) 0%, rgba(12, 38, 30, 0.55) 100%);
    border: 1px solid rgba(68, 235, 186, 0.25);
    border-radius: 8px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .brew-panel-header {
    font-size: 8.5px;
    letter-spacing: 0.14em;
    padding-bottom: 5px;
    margin-bottom: 4px;
  }
  .brew-stream-body {
    font-size: 9.0px;
    mask-image: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 16%, black 28%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, rgba(0,0,0,0.15) 0%, rgba(0,0,0,0.75) 16%, black 28%, black 100%);
  }
  .configuration {
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    bottom: max(30px, calc(env(safe-area-inset-bottom, 20px) + 14px));
    text-align: center;
    margin: 0;
  }
  .configuration img {
    width: clamp(170px, 52vw, 240px);
    height: auto;
  }
  .result-controls {
    top: max(16px, env(safe-area-inset-top));
    bottom: auto;
    left: max(16px, env(safe-area-inset-left));
  }
}

/* Secret 3-second hold on letter A + TOTP & Pulse Telemetry Dashboard */
.result-logo-wrap, .brand-wrap {
  position: relative;
  display: inline-block;
  width: 100%;
}
.brand-wrap { width: auto; pointer-events: auto; }
.px-secret-a-zone {
  position: absolute;
  left: 71.5%;
  top: 0;
  width: 14.5%;
  height: 100%;
  pointer-events: auto;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.px-secret-a-hit {
  pointer-events: all;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.px-hold-indicator {
  position: fixed;
  z-index: 2147483647;
  top: 18px;
  right: 18px;
  pointer-events: none;
  filter: drop-shadow(0 0 8px rgba(255, 135, 0, 0.55));
}
.px-pulse-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483647;
  background: rgba(4, 7, 12, 0.82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  font-family: Space, system-ui, sans-serif;
  color: #eeeae5;
}
.px-totp-card {
  width: min(400px, 94vw);
  background: linear-gradient(180deg, rgba(12, 20, 30, 0.96) 0%, rgba(7, 11, 18, 0.98) 100%);
  border: 1px solid rgba(255, 135, 0, 0.35);
  border-radius: 12px;
  padding: 22px 24px;
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.75), inset 0 0 24px rgba(255, 135, 0, 0.05);
  text-align: center;
}
.px-totp-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 11px;
  letter-spacing: 0.14em;
  color: #ff8700;
  margin-bottom: 14px;
}
.px-live-badge {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ff8700;
  box-shadow: 0 0 8px #ff8700;
  flex-shrink: 0;
}
.px-close-btn, .px-icon-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #d6d9e0;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}
.px-close-btn:hover, .px-icon-btn:hover {
  border-color: #ff8700;
  color: #fff;
}
.px-totp-subtitle {
  font-size: 13px;
  color: #b7c0cc;
  margin: 0 0 18px;
  line-height: 1.45;
}
.px-totp-input-wrap {
  position: relative;
  margin: 0 auto 16px;
  cursor: text;
}
.px-totp-hidden-input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.01;
  font-size: 22px;
  border: 0;
  background: transparent;
  color: transparent;
  caret-color: transparent;
}
.px-totp-boxes {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
}
.px-totp-box {
  height: 52px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(5, 8, 14, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 22px;
  font-weight: 600;
  color: #fff;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.px-totp-box.active {
  border-color: #ff8700;
  box-shadow: 0 0 12px rgba(255, 135, 0, 0.35);
}
.px-totp-box.filled {
  border-color: rgba(68, 235, 186, 0.55);
  color: #44ebba;
}
.px-totp-error {
  color: #ff6b6b;
  font-size: 12px;
  margin: 0 0 14px;
}
.px-totp-remember {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #9aa3b0;
  cursor: pointer;
}
.px-totp-remember input {
  accent-color: #ff8700;
}

/* Dashboard Modal */
.px-dash-modal {
  width: min(1060px, 96vw);
  max-height: 90dvh;
  overflow-y: auto;
  background: linear-gradient(180deg, rgba(10, 16, 24, 0.97) 0%, rgba(6, 10, 16, 0.99) 100%);
  border: 1px solid rgba(68, 235, 186, 0.28);
  border-radius: 14px;
  padding: 20px 22px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.85);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.px-dash-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.px-dash-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.px-dash-brand h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.14em;
  color: #ff8700;
  font-family: 'SF Mono', Menlo, monospace;
}
.px-dash-brand p {
  margin: 3px 0 0;
  font-size: 11px;
  color: #8c96a5;
}
.px-dash-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.px-period-tabs {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 7px;
  padding: 2px;
}
.px-tab {
  background: transparent;
  border: 0;
  color: #9aa3b0;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 5px;
}
.px-tab.active {
  background: #ff8700;
  color: #090d14;
  font-weight: 600;
}
.px-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.px-kpi-card {
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.px-kpi-label {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.12em;
  color: #44ebba;
}
.px-kpi-val {
  font-size: 26px;
  font-weight: 600;
  color: #fff;
}
.px-kpi-val small {
  font-size: 13px;
  color: #ff8700;
  font-weight: 400;
}
.px-kpi-sub {
  font-size: 11px;
  color: #8b95a5;
}
.px-chart-box, .px-panel-box {
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  padding: 14px 16px;
}
.px-sec-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 10px;
  letter-spacing: 0.13em;
  color: #a6b0bf;
  margin-bottom: 12px;
}
.px-subhead {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}
.px-sec-meta {
  color: #44ebba;
}
.px-bars-wrap {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 110px;
  padding-top: 8px;
}
.px-bar-col {
  flex: 1;
  min-width: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}
.px-bar-track {
  flex: 1;
  width: 100%;
  max-width: 26px;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 4px;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
}
.px-bar-fill {
  width: 100%;
  background: linear-gradient(180deg, #ff8700 0%, #44ebba 100%);
  border-radius: 4px 4px 0 0;
  transition: height 0.25s ease;
}
.px-bar-lbl {
  font-family: 'SF Mono', Menlo, monospace;
  font-size: 8.5px;
  color: #7c8594;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.px-columns-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.px-rank-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.px-rank-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  margin-bottom: 4px;
}
.px-rank-bar {
  height: 5px;
  background: rgba(255, 255, 255, 0.06);
  border-radius: 99px;
  overflow: hidden;
}
.px-rank-bar > div {
  height: 100%;
  background: linear-gradient(90deg, #ff8700, #44ebba);
  border-radius: 99px;
}
.px-city-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.px-city-chip {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  padding: 5px 9px;
  font-size: 11px;
  color: #d5dce6;
}
.px-empty {
  font-size: 12px;
  color: #7d8694;
  margin: 6px 0;
}
.px-table-scroll {
  overflow-x: auto;
}
.px-recent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  text-align: left;
}
.px-recent-table th {
  color: #8a94a6;
  font-weight: 500;
  padding: 6px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.px-recent-table td {
  padding: 7px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.04);
  color: #d6dde8;
  white-space: nowrap;
}
.px-Step-pill {
  display: inline-block;
  font-size: 9.5px;
  padding: 2px 6px;
  border-radius: 4px;
  margin-right: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #6c7583;
}
.px-Step-pill.on {
  background: rgba(68, 235, 186, 0.16);
  color: #44ebba;
  border: 1px solid rgba(68, 235, 186, 0.35);
}
@media (max-width: 820px) {
  .px-kpi-grid { grid-template-columns: repeat(2, 1fr); }
  .px-columns-grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .px-dash-modal { padding: 14px; }
  .px-kpi-val { font-size: 21px; }
}
