/* Current sack presentation. Keep the 3D scene and its hit areas in sync. */
:root{--cream:#fff0d5;--gold:#e3bc78}
.room-shade{background:linear-gradient(90deg,#100a08d9 0%,#100a0890 28%,#100a0810 57%,#100a0822),linear-gradient(0deg,#100908ed,transparent 32%,transparent 76%,#10090875)}
.topbar a{min-height:44px;font-size:12px;letter-spacing:.17em;color:#f2dfbd}
.circle-button{width:44px;height:44px;font-size:19px;border-color:#e6c38a66;background:#231710b8;transition:background .2s,border-color .2s,transform .2s}
.circle-button:hover{background:#56381ce6;border-color:#ffe3a1;transform:translateY(-1px)}
.circle-button[aria-pressed=true]{background:#674522;color:#fff1cc;border-color:#ecc985}
.scene-copy{top:27%;width:32%;text-shadow:0 2px 18px #100604}
body[data-phase=intro] .scene-copy{width:29%}
.eyebrow{font-size:12px;line-height:1.5;letter-spacing:.18em;color:#edc88f}
.scene-copy h1{line-height:1.02;margin-top:18px;overflow-wrap:break-word}
.scene-copy p{font-size:16px;line-height:1.7;max-width:330px;color:#f0dfc7}
.copy-ornament{margin:24px 0;color:#edc284}
.gesture-hint,body[data-phase=intro] .gesture-hint{left:65%;bottom:14.5%;width:max-content;max-width:42%;padding:10px 18px;border:1px solid #eac48455;border-radius:999px;background:#24170ce0;box-shadow:0 5px 22px #09050355;backdrop-filter:blur(10px);transform:translateX(-50%);text-align:center;white-space:normal;color:#ffebc8;font-size:14px;line-height:1.5;letter-spacing:.015em;opacity:1}
.secondary{font-size:14px;min-height:44px;padding:10px 6px;color:#f5dfba;border-color:#d9b57899}
.secondary:hover{color:#fff6df;border-color:#fff0b8}
.control-hint{font-size:14px;line-height:1.5;margin-top:16px;color:#ead8bf}
.footnote{font-size:12px;letter-spacing:.025em;color:#ddcbb3;text-shadow:0 1px 5px #000}
.loading{font-size:16px;line-height:1.6;padding:24px;text-align:center}
.fallback>p{font-size:14px;color:#fff0d5;background:#20150bf2;line-height:1.6}
.dialog-close{width:44px;height:44px;top:8px;right:8px;display:grid;place-items:center;border-radius:50%;font-size:28px}
.dialog-close:hover{background:#e8c5861a}
dialog{max-width:min(480px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:40px 32px 32px;overflow-y:auto;background:linear-gradient(145deg,#302116,#1c130e);border-color:#d6af6d;box-shadow:0 24px 100px #000b,inset 0 1px #f3d19926}
dialog h2{font-size:38px}
dialog p{font-size:16px;line-height:1.7}
dialog small{font-size:13px;line-height:1.65;color:#d5bea1}
.gift-target:focus-visible{outline:2px solid #ffedbf;outline-offset:6px;box-shadow:0 0 0 6px #1c100b80,0 0 28px #f7cd7070}
.sack-target span{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}
.sack-target:disabled{cursor:wait}
.sack-target::after{content:'';position:absolute;left:13%;right:13%;height:3px;bottom:-8px;border-radius:50%;background:#ffe1a3;box-shadow:0 0 14px 4px #eec67b88;opacity:0;transform:scaleX(.6);transition:opacity .2s,transform .2s;pointer-events:none}
.sack-target[data-hover=true]::after,.sack-target:focus-visible::after{opacity:1;transform:scaleX(1)}
body[data-phase=requesting] .controls{opacity:.8}
body[data-phase=drawerror] .scene-copy p{color:#ffe1bc}
body[data-phase=result] .scene-copy h1{font-size:clamp(40px,4.3vw,80px)}
body[data-visual-mode=fallback][data-phase=intro] .sack-targets{display:flex;align-items:center;justify-content:center;gap:16px;inset:34% 5% 20% 42%}
body[data-visual-mode=fallback][data-phase=intro] .sack-target{position:relative!important;inset:auto!important;width:48%!important;height:100%!important;background:linear-gradient(0deg,#491524ee,#122b2099),url('assets/workshop-v14/sack-desktop.webp') center/cover;border:1px solid #d9b96e;border-radius:22px;color:#fff0c4;box-shadow:0 12px 35px #0008}
body[data-visual-mode=fallback][data-phase=intro] .sack-target[data-bag=sport]{background-color:#153f2d;background-blend-mode:luminosity}
body[data-visual-mode=fallback][data-phase=intro] .sack-target span{position:static;clip-path:none;width:auto;height:auto;font:bold 24px Georgia,serif;letter-spacing:.08em}
body[data-visual-mode=fallback][data-phase=intro] .fallback-art{display:none}
@media(max-aspect-ratio:3/4){
 .topbar{left:5%;right:5%;top:max(16px,env(safe-area-inset-top))}
 .topbar a{font-size:11px;letter-spacing:.1em;gap:8px}
 .brand-star{font-size:26px}
 .top-actions{gap:8px}
 .circle-button{width:44px;height:44px;font-size:18px}
 .room-shade{background:linear-gradient(0deg,#140b08ed,transparent 35%,#140b081a 55%,#140b0899 82%,#140b0880)}
 .scene-copy,body[data-phase=intro] .scene-copy,body[data-phase=result] .scene-copy{top:12%;left:6%;width:88%}
 .eyebrow{font-size:11px;letter-spacing:.15em}
 .scene-copy h1,body[data-phase=intro] .scene-copy h1{font-size:clamp(40px,11.5vw,56px);line-height:.98;margin:12px 0 16px}
 .scene-copy h1 em{white-space:normal}
 .scene-copy p{font-size:16px;line-height:1.6;max-width:340px}
 body:is([data-phase=choose],[data-phase=chosen]) .scene-copy p{display:block}
 .gesture-hint,body[data-phase=intro] .gesture-hint{left:50%;bottom:20%;max-width:90%;width:max-content;padding:9px 14px;font-size:14px;transform:translateX(-50%)}
 .controls{bottom:max(8%,65px)}
 .control-hint{font-size:13px;line-height:1.5;margin-top:14px}
 .secondary,body[data-phase=result] .secondary{font-size:14px}
 .footnote{left:5%;right:5%;font-size:11px;bottom:max(16px,env(safe-area-inset-bottom))}
 body[data-phase=result] .scene-copy h1{font-size:clamp(36px,10.5vw,48px)}
 body[data-phase=requesting] .scene-copy h1,body[data-phase=drawerror] .scene-copy h1{font-size:clamp(36px,10vw,46px)}
 body[data-visual-mode=fallback][data-phase=intro] .sack-targets{inset:37% 5% 25%}
 .fallback>p{top:31%;font-size:13px;line-height:1.5}
 dialog{padding:40px 24px 28px}
 dialog h2{font-size:34px}
}
@media(max-width:360px) and (max-aspect-ratio:3/4){
 .topbar a{font-size:10px;letter-spacing:.08em}
 .top-actions{gap:6px}
 .scene-copy h1,body[data-phase=intro] .scene-copy h1{font-size:40px}
 .scene-copy p{font-size:16px;line-height:1.5}
 .gesture-hint,body[data-phase=intro] .gesture-hint{font-size:13px;padding:8px 12px}
 .footnote{font-size:10px}
}
@media(max-height:700px) and (max-aspect-ratio:3/4){
 .scene-copy,body[data-phase=intro] .scene-copy,body[data-phase=result] .scene-copy{top:14%}
 .scene-copy h1,body[data-phase=intro] .scene-copy h1{font-size:clamp(34px,10vw,42px);margin:8px 0 12px}
 .scene-copy p{font-size:15px;line-height:1.45}
 .eyebrow{font-size:10px}
 .gesture-hint,body[data-phase=intro] .gesture-hint{bottom:19%;font-size:13px;padding:7px 12px}
 .control-hint{font-size:12px;margin-top:12px}
 body[data-phase=result] .scene-copy h1{font-size:36px}
 body[data-phase=result] .action-row{gap:8px}
}
@media(max-height:560px) and (min-aspect-ratio:3/4){
 .topbar{top:12px}
 .scene-copy{top:24%;left:5%;width:31%}
 .scene-copy h1{font-size:40px;margin-top:10px}
 .scene-copy p{font-size:14px;line-height:1.5}
 .copy-ornament{margin:14px 0}
 .eyebrow{font-size:10px}
 .topbar a{font-size:11px}
 .circle-button{width:40px;height:40px}
 .gesture-hint,body[data-phase=intro] .gesture-hint{font-size:13px;padding:7px 12px;bottom:12%}
 .footnote{font-size:10px;bottom:10px}
 .control-hint{font-size:12px;margin-top:10px}
}
@media(prefers-reduced-motion:reduce){.circle-button,.sack-target::after{transition:none}.circle-button:hover{transform:none}}
