:root{--pearl:#fff9ea;--sea:#153c3d;--gold:#d5c39b}html,body{overscroll-behavior:none;-webkit-tap-highlight-color:transparent}body{height:100dvh}#viewport{touch-action:none;user-select:none;-webkit-user-select:none}#viewport canvas{touch-action:none}.person-drag{cursor:grabbing!important}
#dock,body>footer,body>header,.scene-label,#hint,#showUI{display:none!important}
#mobileHeader{position:fixed;top:max(18px,env(safe-area-inset-top));left:max(20px,env(safe-area-inset-left));right:max(18px,env(safe-area-inset-right));z-index:5;display:flex;align-items:flex-start;justify-content:space-between;pointer-events:none;color:#fff9ec;text-shadow:0 1px 10px #153c3d99}
.mobile-brand{font:22px Georgia,'Microsoft YaHei',serif;letter-spacing:4px}.mobile-brand small{display:block;font:9px 'Segoe UI',sans-serif;letter-spacing:3px;margin-top:5px;opacity:.82}.mobile-meta{display:flex;gap:7px;pointer-events:auto}.mobile-meta button{min-height:44px;border-radius:24px;border:1px solid #fff8dd55;background:#193e3c6b;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);color:var(--pearl);padding:0 13px;font-size:11px;box-shadow:0 4px 18px #12343515}#gestureHelp{width:44px;padding:0;font:18px Georgia,serif}#soundToggle{min-width:44px;padding:0 10px}
#gestureNote{position:fixed;top:calc(max(18px,env(safe-area-inset-top)) + 58px);right:max(18px,env(safe-area-inset-right));z-index:6;background:#183b3de8;color:#f6f3e6;padding:17px 20px;border-radius:18px;border:1px solid #f8e8c135;box-shadow:0 10px 32px #14343633;font-size:12px;line-height:2;pointer-events:none;max-width:calc(100vw - 32px)}#gestureNote strong{display:block;color:#e9d7ad;font-weight:500;margin-bottom:4px}#gestureNote[hidden]{display:none}
#quickActions{position:fixed;right:max(22px,env(safe-area-inset-right));bottom:max(22px,env(safe-area-inset-bottom));z-index:7;display:grid;grid-template-columns:repeat(3,58px);grid-template-rows:repeat(3,58px);gap:7px;padding:0;border:0;background:none;pointer-events:none;width:auto}
#quickActions .pearl-action{pointer-events:auto;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;width:58px;height:58px;min-width:44px;min-height:44px;padding:0;border-radius:50%;color:#fcf7e9;background:linear-gradient(145deg,#3e6868d9,#173d40ed);border:1px solid #f4ead275;box-shadow:inset 0 1px 0 #ffffff35,0 5px 16px #0a303538;backdrop-filter:blur(9px);-webkit-backdrop-filter:blur(9px);transition:transform .16s,background .2s;touch-action:manipulation}
#quickActions svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}#quickActions span{font-size:9px;letter-spacing:.3px;line-height:1.2;white-space:nowrap}#quickActions .pearl-action:active{transform:scale(.91)}#quickActions .pearl-action:focus-visible{outline:2px solid #fff5ce;outline-offset:4px}#quickActions #photoBtn{grid-column:2;grid-row:1}#quickActions #confettiBtn{grid-column:1;grid-row:2}#quickActions #storyBtn{grid-column:2;grid-row:2;background:linear-gradient(140deg,#f4e8c9,#d4c49d);color:#254847;border-color:#fff9e6}#quickActions #guestGuideBtn{grid-column:3;grid-row:2}#quickActions #fireworkBtn{grid-column:2;grid-row:3}#quickActions #storyBtn.is-active svg{fill:currentColor}#quickActions #guestGuideBtn[aria-expanded=true]{background:#577975}
#toast{position:fixed;top:calc(max(18px,env(safe-area-inset-top)) + 65px);border:1px solid #e8dfbd44;border-radius:22px;font-size:12px;text-align:center;padding:10px 18px;width:max-content;max-width:85vw;background:#193e3ce6;z-index:22}
#guest-guide-panel{left:auto!important;right:max(22px,env(safe-area-inset-right))!important;top:auto!important;bottom:calc(max(22px,env(safe-area-inset-bottom)) + 202px)!important;width:300px!important;max-width:calc(100vw - 32px)!important;max-height:calc(100dvh - 285px)!important;overflow:auto!important;border-radius:20px!important;padding:15px!important;z-index:12!important}#guest-guide-panel input{font-size:16px!important;min-height:44px}#guest-guide-panel .gg-head button{min-width:44px;min-height:44px;font-size:12px!important}#gg-suggestions{max-height:180px!important;overscroll-behavior:contain}#gg-suggestions .gg-item{min-height:44px;display:flex;align-items:center}#guest-guide-panel .gg-hint{display:none}#photoCard{max-height:90dvh!important;overflow:auto}#photoCard img{max-height:66dvh;object-fit:contain}#photoCard .prow a,#photoCard .prow button{min-height:44px;display:flex;align-items:center;justify-content:center}
@media(max-width:600px){.mobile-brand{font-size:18px;letter-spacing:2px}.mobile-brand small{font-size:8px;letter-spacing:1.6px}.mobile-meta{gap:5px}.mobile-meta button{padding:0 10px}#mobileHeader{left:16px;right:12px}#quickActions{right:max(14px,env(safe-area-inset-right));bottom:max(18px,env(safe-area-inset-bottom));grid-template-columns:repeat(3,52px);grid-template-rows:repeat(3,52px);gap:6px}#quickActions .pearl-action{width:52px;height:52px}#quickActions svg{width:20px;height:20px}#quickActions span{font-size:8px}#guest-guide-panel{right:14px!important;bottom:calc(max(18px,env(safe-area-inset-bottom)) + 180px)!important}}
@media(max-height:500px){#quickActions{grid-template-columns:repeat(3,48px);grid-template-rows:repeat(3,48px);gap:5px;bottom:max(12px,env(safe-area-inset-bottom))}#quickActions .pearl-action{width:48px;height:48px}#quickActions svg{width:18px;height:18px}#guest-guide-panel{bottom:18px!important;right:190px!important;max-height:calc(100dvh - 92px)!important;width:280px!important}#gestureNote{font-size:11px;padding:10px 16px}}
@media(prefers-reduced-motion:reduce){#quickActions .pearl-action{transition:none}}
