:root { color-scheme:dark; font-family:system-ui,"PingFang SC","Microsoft YaHei",sans-serif; background:#100f10; color:#f8f5ef }
* { box-sizing:border-box }
html, body, #show, #picture { width:100%; height:100%; margin:0; overflow:hidden }
#show { position:relative; isolation:isolate; background:#120f0c; outline:none; touch-action:manipulation; -webkit-tap-highlight-color:transparent; -webkit-user-select:none; user-select:none }
#show[data-mode=playing], #show[data-mode=playing] * { cursor:none }
#picture { position:absolute; inset:0; z-index:6; pointer-events:none }
#picture [data-stage-interactive], #picture .kv-qr { pointer-events:auto }
#show #picture [data-stage-interactive], #show #picture [data-stage-interactive] * { cursor:var(--stage-cursor,pointer) }
#picture [data-stage-interactive]:focus-visible { outline:2px solid currentColor; outline-offset:3px }
#take { position:absolute; inset:0; width:100%; height:100%; z-index:5; background:transparent; appearance:none; border:0; padding:0; cursor:inherit; touch-action:manipulation }
#take:focus-visible { outline:2px solid #d7c6a4; outline-offset:-4px }
#show:is([data-mode=ready],[data-mode=paused]) #take { z-index:7; cursor:pointer }
[hidden] { display:none!important }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap }
#desk { width:min(23rem,calc(100vw - 2rem)); border:1px solid #ffffff28; padding:1.3rem; border-radius:14px; color:#f7f5f0; background:#202326; box-shadow:0 1rem 4rem #0005 }
#desk::backdrop { background:#0c0b0b85 }
#desk header, #desk footer { display:flex; align-items:center; justify-content:space-between; gap:.5rem }
#desk h1 { margin:0; font-size:1.05rem; font-weight:600 }
#desk button, #desk a { appearance:none; color:inherit; background:none; border:0; font:inherit; text-decoration:none; text-align:left; cursor:pointer; padding:.55rem .35rem }
#desk button:hover, #desk a:hover { color:#f6d2a2 }
#desk #dismiss { font-size:1.5rem; line-height:1 }
#acts { display:grid; margin:.6rem 0; padding:.5rem 0; border-block:1px solid #ffffff25 }
#desk footer { font-size:.85rem }

.notebook-surface { position:fixed; inset:0; width:100%; height:100%; z-index:12; border:0; display:block; background:#f6f2ea }
#next-product { position:absolute; right:max(3%,env(safe-area-inset-right)); bottom:max(5%,env(safe-area-inset-bottom)); z-index:8;
  padding:.7em 1.1em; color:#312e29; background:#f6f3ef; border:1px solid #cec8c0; border-radius:2em; text-decoration:none; font-size:clamp(.9rem,1.1vw,1.25rem) }
#desk-notebook { display:block; border-bottom:1px solid #ffffff25; margin-bottom:.5rem }
@media (hover:hover) { #next-product { opacity:0; transition:opacity .2s } #next-product.awake,#next-product:hover,#next-product:focus-visible { opacity:1 } }
