/* The same demo shell serves Huevio, Orbivio and Chipvio. Sortivio keeps its established six-step guide. */
.daily-demo{box-sizing:border-box;padding:0;width:min(580px,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;border:1px solid var(--line);border-radius:16px;background:var(--paper);color:var(--ink);box-shadow:0 24px 90px #092c2866;font:14px/1.6 var(--sans)}
.daily-demo::backdrop{background:#10281fcc}
.daily-demo *{box-sizing:border-box}
.daily-demo button{font-family:var(--sans);cursor:pointer;touch-action:manipulation}
.daily-demo button:disabled{cursor:default;opacity:.55}
.daily-demo button:focus-visible{outline:3px solid #ba8331;outline-offset:3px}
.demo-header{display:flex;align-items:center;justify-content:space-between;padding:12px 24px;background:var(--green);color:var(--paper);font-weight:600}
.demo-header small{margin-left:12px;color:var(--yellow);font-size:11px;letter-spacing:1.5px}
.demo-header button{display:grid;place-items:center;width:40px;height:40px;background:transparent;border:0;color:inherit;font-size:28px;line-height:1}
.demo-scene{display:grid;place-items:center;min-height:250px;padding:22px;background:#214d40;color:var(--paper)}
.demo-body{padding:24px 30px}
.demo-caption{font-size:11px;letter-spacing:1px;color:#667260}
.daily-demo .demo-body h2{font:400 38px/1.1 var(--serif);letter-spacing:-.5px;margin:12px 0;color:var(--ink)}
.daily-demo .demo-body>p{font-size:13px;line-height:1.8;color:#596c50;margin:0 0 12px}
.daily-demo .demo-body>.demo-feedback{min-height:48px;padding:12px;background:#eceee4;border-radius:7px;color:#294839;font-size:12px}
.daily-demo .demo-body>.demo-progress{text-align:center;font-size:11px;margin:18px 0 12px;color:var(--muted)}
.demo-navigation,.demo-footer{display:flex;align-items:center;justify-content:space-between;gap:12px}
.demo-navigation button{border:0;background:transparent;padding:10px 0;min-height:44px;font-size:12px;color:#596c50}
.demo-navigation .demo-next{background:var(--green);color:var(--paper);padding:12px 20px;border-radius:7px}
.demo-navigation button:disabled{visibility:hidden}
.demo-footer{margin-top:20px;border-top:1px solid var(--line);padding-top:12px;flex-wrap:wrap}
.demo-footer button,.demo-quiet{border:0;background:transparent;color:inherit;padding:6px 0;min-height:40px;font-size:11px;text-decoration:underline;text-underline-offset:3px}
.demo-footer button{color:#596c50}
.demo-row{display:flex;align-items:center;justify-content:center;gap:6px}
.demo-clue{display:grid;place-items:center;width:36px;height:36px;background:#c96f63;color:#203c33;font-weight:700;border-radius:4px;margin-right:8px}
.demo-pixel{width:54px;height:54px;border:1px solid #b1baa6;background:#eeeee4;color:#52644b;border-radius:3px;font-size:28px;line-height:1}
.demo-pixel.painted{background:#c96f63}
.demo-palette,.demo-tray{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:10px;margin-top:20px}
.demo-palette button,.demo-tray button{display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;padding:8px 12px;border:1px solid #83977e;border-radius:7px;background:#f0f0e5;color:#203c33;font-size:12px}
.demo-palette button[aria-pressed=true],.demo-tray button[aria-pressed=true]{outline:2px solid var(--yellow);outline-offset:3px}
.demo-palette i{display:inline-block;width:14px;height:14px;border-radius:2px;background:#c96f63}
.demo-visual-note{font-size:18px;margin:20px 0 0;text-align:center;color:var(--yellow)}
.demo-route{display:grid;grid-template-columns:repeat(3,64px);grid-template-rows:repeat(3,64px);position:relative}
.demo-route>svg{position:absolute;inset:0;width:192px;height:192px;stroke:none;pointer-events:none}
.demo-route polyline{fill:none;stroke:#e8cf83;stroke-width:5;stroke-linecap:round;stroke-linejoin:round}
.demo-route button{position:relative;z-index:1;width:44px;height:44px;align-self:center;justify-self:center;border:1px solid #8ca18c;background:#214d40;color:#d1dfc7;border-radius:50%;font-size:20px}
.demo-route .planet{background:#f2dfaa;color:#294839;border:2px solid #ddbb63;font-size:18px;font-weight:700}
.demo-route .star.visited{background:#738b67;color:#f6f5ef}
.demo-orbit{text-align:center}
.demo-orbit .demo-quiet{margin-top:8px;color:var(--paper)}
.demo-pcb{display:flex;justify-content:center;gap:22px;border:2px solid #9cbea3;border-radius:12px;padding:20px;background:#37684b;box-shadow:0 5px 0 #254d3f}
.demo-pcb button{width:82px;min-height:86px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;border:1px dashed #b2c8a9;background:#254d3f;color:#f0ebdb;border-radius:7px;font-size:11px}
.demo-part-icon{display:inline-block;font-size:27px;line-height:1;color:#cfb57b}
.demo-part-icon.led{color:#f47c74}
.demo-pcb .demo-part-icon:not(.mounted){opacity:.2}
.demo-pcb.powered .led{color:#e8cf83;filter:drop-shadow(0 0 10px #e8cf83)}
.demo-tray{max-width:360px}
.demo-tray button{font-size:11px}
.demo-tray .demo-part-icon{font-size:21px}
.demo-ready{display:flex;flex-direction:column;align-items:center;gap:10px}
.demo-ready>span{display:grid;place-items:center;width:80px;height:80px;border:1px solid #b5c69d;border-radius:50%;font-size:46px;color:var(--yellow)}
.demo-ready strong{font:400 30px var(--serif);color:var(--paper)}
.demo-scene button:disabled{opacity:1}
@media(max-width:540px){.daily-demo{width:calc(100% - 20px);max-height:calc(100dvh - 20px)}.demo-header{padding:8px 18px}.demo-scene{min-height:220px;padding:20px 15px}.demo-body{padding:20px}.daily-demo .demo-body h2{font-size:32px}.demo-pixel{width:46px;height:46px}.demo-clue{margin-right:2px}.demo-tray{gap:7px}.demo-tray button{padding:8px 9px}}
@media(prefers-reduced-motion:reduce){.daily-demo,.daily-demo *{animation:none!important;transition:none!important}}
