#app .device-scene { position:relative; margin:32px 0 0; }
#app .device-art { width:100%; height:auto; display:block; }
#app .device-screen { position:absolute; display:block; background:#101010; cursor:zoom-in; }
#app .desktop-panel .device-screen { left:29.17%; top:25%; width:40.2%; height:38.6%; }
#app .mobile-panel .device-screen { left:71.85%; top:36.8%; width:8.05%; height:28.3%; border-radius:8px; }
#app .device-screen > img { width:100%; height:100%; object-fit:contain; }
#app .device-hint { position:absolute; right:8px; bottom:8px; display:flex; align-items:center; gap:8px; padding:4px 8px; border-radius:16px; background:#101510df; color:#eeeae1; font-size:1rem; pointer-events:none; }
#app .hint-copy { display:none; }
#app .desktop-panel .device-screen:is(:hover,:focus-visible) .hint-copy { display:inline; }
#app .device-screen:is(:hover,:focus-visible) { outline:2px solid #ff947a; outline-offset:2px; }
#app .device-detail { width:fit-content; max-width:96vw; max-height:96dvh; padding:48px 16px 16px; background:#101510; border:1px solid #73776e; overflow:auto; }
#app .device-detail::backdrop { background:#000e; }
#app .device-zoom { position:relative; background-image:url('assets/ember-brain-devices.png'); background-repeat:no-repeat; touch-action:pan-y; }
#app [data-kind="desktop"] .device-zoom { width:min(1000px,86vw,96dvh); aspect-ratio:720 / 520; background-size:230.4167% auto; background-position:48.99% 49.07%; }
#app [data-kind="mobile"] .device-zoom { width:min(340px,70vw,36dvh); aspect-ratio:160 / 310; background-size:1036.875% auto; background-position:78.5857% 51.0972%; }
#app .device-zoom img { position:absolute; object-fit:contain; background:#101010; }
#app [data-kind="desktop"] .device-zoom img { left:3.33%; top:5.19%; width:92.64%; height:70.38%; }
#app [data-kind="mobile"] .device-zoom img { left:8.125%; top:7.74%; width:83.75%; height:86.13%; border-radius:8px; }
#app .device-detail[open] .device-zoom { animation:device-in 220ms ease-out; }
@keyframes device-in { from { transform:scale(.94); opacity:.6; } to { transform:scale(1); opacity:1; } }
#app .zoom-controls { display:flex; align-items:center; justify-content:center; gap:16px; margin-top:16px; }
#app .zoom-caption { font-size:1rem; line-height:1.5; text-align:center; }
#app .device-detail button { min-width:44px; min-height:44px; border:1px solid #73776e; border-radius:50%; background:#161b16; color:#eeeae1; cursor:pointer; flex-shrink:0; }
#app .device-detail button:hover { border-color:#ff947a; }
#app .device-detail button:focus-visible { outline:3px solid #ff947a; outline-offset:2px; }
#app .device-detail-close { position:absolute; top:0; right:8px; padding:0 16px; border:0!important; border-radius:0!important; }
@media(max-width:700px) {
 #app .device-scene { margin:24px 0 0; }
 #app .device-art { display:none; }
 #app .device-panel { position:relative; background-image:url('assets/ember-brain-devices.png'); background-repeat:no-repeat; margin-bottom:24px; }
 #app .desktop-panel { aspect-ratio:1 / .9; background-size:160% auto; background-position:36% top; }
 #app .desktop-panel .device-screen { left:25.07%; top:25.39%; width:64.32%; height:39.21%; }
 #app .mobile-panel { aspect-ratio:1 / 1.4; background-size:320% auto; background-position:100% top; }
 #app .mobile-panel .device-screen { left:9.92%; top:48.06%; width:25.76%; height:36.97%; }
}
@media(prefers-reduced-motion:reduce) { #app .device-detail[open] .device-zoom { animation:none; } }
#app .zoom-help { margin:8px 0 0; text-align:center; color:#b9beb2; font-size:1rem; }
/* The device travels from its real position in the scene; no popup card. */
#app .device-screen { transition:box-shadow 180ms ease; }
#app .device-screen:hover { outline:none; box-shadow:0 0 24px 2px #ffb48a42; }
#app .device-screen:focus-visible { outline:2px solid #ffb48a; outline-offset:4px; }
#app .device-detail { position:fixed; inset:0; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:transparent; overflow:hidden; }
#app .device-detail[open] { display:flex; align-items:center; justify-content:center; }
#app .device-detail::backdrop { background:#050705ed; animation:scene-dim 620ms ease both; }
#app .device-detail.is-closing::backdrop { animation:scene-clear 460ms ease both; }
@keyframes scene-dim { from {background:#05070500;} to {background:#050705ed;} }
@keyframes scene-clear { from {background:#050705ed;} to {background:#05070500;} }
#app .device-detail[open] .device-zoom { animation:none; transform-origin:0 0; will-change:transform; }
#app [data-kind="desktop"] .device-zoom { width:min(1120px,84vw,110dvh); }
#app [data-kind="mobile"] .device-zoom { width:min(400px,72vw,40dvh); }
#app .device-detail button { background:transparent; border:0; border-radius:0; color:#e9e6dd; font-size:1.5rem; opacity:.65; transition:opacity 150ms ease; }
#app .device-detail button:hover { opacity:1; }
#app .device-detail-close { position:fixed; top:16px; right:24px; z-index:2; font-size:2rem; }
#app .zoom-controls { margin:0; }
#app .zoom-controls button { position:fixed; top:calc(50% - 24px); }
#app [data-zoom-step="-1"] { left:16px; }
#app [data-zoom-step="1"] { right:16px; }
#app .zoom-caption { position:fixed; bottom:24px; left:16px; right:16px; color:#b9beb2; }
#app .zoom-help { display:none; }
#app .is-closing :is(.zoom-controls,.device-detail-close) { opacity:0; }
@media(max-width:700px) { #app .zoom-controls button { top:auto; bottom:12px; } #app .zoom-caption { bottom:24px; left:64px; right:64px; } }
@media(prefers-reduced-motion:reduce) { #app .device-detail::backdrop,#app .device-detail.is-closing::backdrop { animation:none; } #app .device-screen { transition:none; } }
/* Camera plane: the entire original artwork, never a cropped device card. */
#app .device-detail .device-zoom { position:absolute; left:0; top:0; width:1659px; height:948px; max-width:none; aspect-ratio:auto; background-size:1659px 948px; background-position:0 0; transform-origin:0 0; }
#app .device-detail .device-zoom .camera-desktop { left:29.17%; top:25%; width:40.2%; height:38.6%; border-radius:0; }
#app .device-detail .device-zoom .camera-mobile { left:71.85%; top:36.8%; width:8.05%; height:28.3%; border-radius:8px; }
#app .device-detail::backdrop { background:#101510; animation:none; }
#app .device-detail.is-closing::backdrop { animation:none; background:transparent; }
#app .zoom-controls { position:relative; z-index:2; }
#app .zoom-caption { width:fit-content; margin:auto; padding:8px 16px; background:#101510c9; border-radius:24px; color:#eeeae1; }
#app .device-detail button { text-shadow:0 1px 8px #000; opacity:1; }
