/* Brand shell only. Cameras and gesture code stay intact. */
@font-face{font-family:Montserrat;font-style:normal;font-weight:200;font-display:swap;src:url('./brand/montserrat-200.ttf')}@font-face{font-family:Montserrat;font-style:normal;font-weight:300;font-display:swap;src:url('./brand/montserrat-300.ttf')}@font-face{font-family:Montserrat;font-style:normal;font-weight:400;font-display:swap;src:url('./brand/montserrat-400.ttf')}
:root{font-family:Montserrat,"Helvetica Neue","PingFang TC",Arial,sans-serif;background:#ebebeb;color:#292929;--brand-base:#ebebeb;--brand-muted:#727272;--brand-line:#d0ceca;--brand-shadow:4px 4px 10px #c8c5bf99,-4px -4px 10px #ffffffd9;--brand-inset:inset 3px 3px 7px #c8c5bf99,inset -3px -3px 7px #ffffffd9}.experience{background:var(--brand-base);box-shadow:none;border-radius:0}.masthead{min-height:40px;gap:14px}.wordmark{display:flex;align-items:center;font-family:Montserrat,sans-serif;font-size:12px;letter-spacing:0}.wordmark .brand-wordmark{width:112px;height:auto;display:block}.wordmark .brand-wordmark-label{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.reset{min-height:40px;min-width:44px;border:0;border-radius:8px;background:var(--brand-base);color:#666;box-shadow:var(--brand-shadow);font-size:10px;padding:9px 12px;letter-spacing:.02em}.reset:hover{color:#222}.intro{position:relative}.intro .eyebrow{font-family:Montserrat,sans-serif;color:#777;font-size:8px;letter-spacing:.18em}.intro h1{font-family:Montserrat,"PingFang TC",sans-serif;font-size:24px;font-weight:300;line-height:1.5;letter-spacing:.06em}.intro h1 em{color:#292929}.experience-links{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:1px;font-size:9px;color:#777;letter-spacing:.02em;min-height:30px}.experience-links a{display:inline-flex;align-items:center;min-height:30px;text-decoration:none;color:inherit}.experience-links a:hover{color:#222}.steps{border-color:var(--brand-line);color:#aaa;font-size:10px;gap:10px}.steps b{font-family:Montserrat,sans-serif;font-size:9px}.steps i{background:var(--brand-line)}.steps .active{color:#292929}.steps .complete{color:#777}.scene-toolbar .scene-label{color:#858585;letter-spacing:.1em}.scene-toolbar .zoom-button,.scene-toolbar .view-toggle{background:var(--brand-base);border:0;border-radius:8px;box-shadow:var(--brand-shadow);color:#666}.instruction{background:var(--brand-base);border:1px solid #ffffff80;border-radius:12px;box-shadow:var(--brand-shadow)}.instruction-top,#counter{color:#777}.instruction h2{font-family:Montserrat,"PingFang TC",sans-serif;font-size:15px;font-weight:400;color:#333;letter-spacing:.04em}.instruction>p,.instruction .observation{color:#707070}.instruction .observation{font-size:10px}.progress{background:#d5d5d2;box-shadow:inset 1px 1px 2px #b6b6b433}.progress span{background:#626262}footer{color:#777}footer>span{font-family:Montserrat,sans-serif;font-size:9px}footer p{font-size:9px}.viewport .contact{background:#f2f2f2f2;color:#444;border-color:#ffffffa6}.viewport[data-stage=part] .contact,.viewport[data-stage=root] .contact{background:#f2f2f2f2;color:#444}.viewport[data-stage=place] .contact,.viewport[data-stage=press] .contact,.viewport[data-stage=insert] .contact{background:#f4f4f4f5;color:#333!important}.scene-welcome p{color:#444;background:#f1f1f1dc;border:1px solid #ffffff7d;border-radius:10px;font-size:12px;text-shadow:none}.scene-welcome button{border-radius:10px;background:#ebebebe8;color:#292929;font-family:Montserrat,"PingFang TC",sans-serif;font-size:16px;min-height:54px;border-color:#ffffffd9;box-shadow:0 5px 20px #0002,inset 0 1px 0 #fff}.scene-actions .next-step{color:#292929;background:linear-gradient(135deg,#ffffffe0,#ebebeb85);border-radius:12px;outline-color:#7773;box-shadow:0 8px 25px #0003,inset 0 1px 0 #fff;font-family:Montserrat,"PingFang TC",sans-serif;font-size:21px;font-weight:400}.viewport .direct-view-help{background:#efefefed;color:#555;border-radius:9px}.direct-view-help button{background:#eee;border-color:#d1d1d1;border-radius:7px;color:#555}.completion{background:#ebebebf5;box-shadow:var(--brand-shadow);border:1px solid #fff9;border-radius:12px}.completion>span{color:#666}.completion .eyebrow{color:#888}.completion h2{font-family:Montserrat,"PingFang TC",sans-serif;font-weight:300;color:#292929}.completion>p:not(.eyebrow){color:#666}.completion button{background:#ebebeb;border:0;border-radius:8px;color:#333;box-shadow:var(--brand-shadow)}.completion-links{display:flex;flex-direction:column;gap:12px;margin-top:16px}.completion-links a{font-size:11px;color:#555;text-decoration:underline;text-underline-offset:4px;min-height:30px;display:grid;align-items:center}.loading{background:#ebebeb;color:#777}.loader{border-color:#ccc;border-top-color:#666}.experience button:focus-visible,.experience a:focus-visible,.experience #viewport:focus-visible{outline:2px solid #555;outline-offset:4px}.scene-actions .next-step:not([hidden]){animation:next-step-nudge 2s ease-in-out infinite}.selection .intro h1{font-size:34px}.selection .subtitle,.selection .entry-note,.entry-label{color:#777}.selection .brush-choice{background:var(--brand-base);border-color:#ffffff99;box-shadow:var(--brand-shadow)}.selection .brush-choice h2{font-family:Montserrat,"PingFang TC",sans-serif;font-weight:300;color:#292929}.selection .brush-choice p,.selection .brush-choice .eyebrow,.selection .choice-number{color:#777}.selection .choice-arrow{color:#555}.selection .powder-choice{background:var(--brand-base)}
@media(max-width:699px){.intro h1{font-size:21px}.experience-links{font-size:8px;min-height:28px}.wordmark .brand-wordmark{width:104px}.reset{font-size:9px}.scene-welcome button{font-size:15px;padding:14px 25px}.scene-welcome p{font-size:11px}.selection .intro h1{font-size:30px}}
@media(max-width:350px){.intro h1{font-size:19px}.steps{font-size:9px;gap:7px}.steps b{font-size:8px}.instruction .observation{font-size:9px}}
@media(prefers-reduced-motion:reduce){.scene-actions .next-step:not([hidden]){animation:none}}

/* Keep the completion choices inside short portrait frames. */
.completion{top:50%;left:50%;right:auto;transform:translate(-50%,-50%);width:min(250px,calc(100% - 32px));padding:16px}.completion>span{font-size:20px;margin-bottom:8px}.completion h2{font-size:19px;margin:8px 0}.completion-links{gap:5px;margin-top:10px}.completion-links a{min-height:32px}

/* Stable text line boxes keep native touch coordinates on the original pixel grid. */
.intro h1{line-height:36px}.steps{line-height:16px}
@media(max-width:699px){.intro h1{line-height:30px}}

/* Navigation follows the instructions so the existing scene stays at its original screen position. */
.masthead{min-height:37px}.reset{min-height:37px}.intro .eyebrow{line-height:11px}.intro h1{line-height:40px}.experience-links{margin-top:8px}
@media(max-width:699px){.intro .eyebrow{line-height:10px}.intro h1{line-height:30px}}

/* One next action stays visible; retain space for the secondary observation. */
.instruction #instruction-detail{color:#444;font-size:12px;line-height:1.8}.instruction .observation{visibility:hidden}

/* A calm product invitation follows the completed ritual. */
.completion h2{font-size:17px;letter-spacing:.02em}.completion .completion-links{gap:4px;margin-top:13px}.completion .completion-product{display:flex;justify-content:center;gap:12px;min-height:44px;padding:10px 12px;border-radius:8px;background:#292929;color:#f5f5f5;text-decoration:none}.completion .completion-product span{font-size:16px}.completion #again{background:transparent;box-shadow:none;color:#777;font-size:10px;min-height:32px;margin-top:2px;padding:7px 12px}.completion #again span{margin-left:7px}
@media(max-width:350px){.completion{padding:14px 12px}.completion h2{font-size:15px}.completion>p:not(.eyebrow){font-size:9px}}

/* Desktop landscape; phones retain the original portrait frame. */
@media(min-width:700px){
 .experience:not(.selection){max-width:1240px;padding-inline:32px}
 .experience .viewport{width:min(100%,max(540px,calc((100svh - 340px)*16/9)));aspect-ratio:16/9;margin:4px auto 0}
 .instruction .observation{display:none}
}

/* Shared game HUD. Only progress and non-interactive arrows overlay the scene. */
.experience:has(.game-hud){overflow-anchor:none}
.game-hud{position:absolute;z-index:3;top:0;left:0;width:100%;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:16px;padding:6px 14px 7px;border:0;border-radius:0;background:#ebebeb85;backdrop-filter:blur(5px);-webkit-backdrop-filter:blur(5px);box-shadow:none;pointer-events:none}
.game-hud .steps{border:0;padding:0;gap:12px;font-size:10px;line-height:16px}.game-hud .steps b{font-size:9px}.game-hud .instruction-top{margin:0;font-size:8px;line-height:14px;letter-spacing:.05em}.game-hud #phase-label{display:none}.game-hud #counter{font-size:9px}.game-hud .progress{position:absolute;bottom:0;left:0;width:100%;margin:0;height:2px;border-radius:0;background:#7772}
.experience:has(#welcome:not([hidden])) .game-hud,.viewport:has(#completion:not([hidden])) .game-hud{display:none}
.instruction{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:8px 18px;padding:14px 18px}
.instruction .action-instructions{min-width:0}.instruction h2{margin:0 0 5px}.instruction #instruction-detail{margin:0;font-size:12px;line-height:1.8;color:#555}
.instruction #contact{grid-column:1/-1;justify-self:start;position:static;transform:none;max-width:100%;width:auto;white-space:normal;border:1px solid #ffffffa6;border-radius:24px;padding:7px 13px;background:#f2f2f2f2;box-shadow:none;text-align:left;font-size:13px;line-height:1.6;font-weight:500;letter-spacing:.02em;color:#444!important}
.instruction #contact:empty,.instruction .observation{display:none}
.instruction .scene-welcome{grid-column:1/-1;position:static;transform:none;display:flex;align-items:center;justify-content:space-between;gap:16px;width:100%;text-align:left;pointer-events:auto}
.instruction .scene-welcome[hidden]{display:none}.instruction .scene-welcome p{background:transparent;border:0;padding:0;margin:0;box-shadow:none;backdrop-filter:none;text-shadow:none;font-size:12px;line-height:1.8;color:#555}
.instruction .scene-welcome button{flex:none;min-height:48px;padding:12px 22px;border:1px solid #292929;border-radius:9px;background:#292929;color:#fff;box-shadow:none;backdrop-filter:none;font-size:14px}.instruction .scene-welcome button span{margin-left:18px}
.instruction:has(.scene-welcome:not([hidden])) .action-instructions,.instruction:has(.scene-welcome:not([hidden])) #contact{display:none}
.experience>.direct-view-help{position:static;transform:none;display:flex;justify-content:center;gap:8px;max-width:100%;width:auto;margin:10px 0 0;padding:0;background:transparent;box-shadow:none;border:0;color:#777}
.experience>.direct-view-help[hidden]{display:none}.experience>.direct-view-help span{font-size:9px;line-height:1.7}.experience>.direct-view-help button{font-size:9px;min-height:28px;padding:4px 9px}
.viewport #gesture-cue{display:none!important}.motion-guides path{stroke:#555;stroke-width:7;stroke-linecap:round;stroke-linejoin:round;filter:drop-shadow(0 1px 2px #fff9)}.motion-guides[data-persistent=true] path{stroke:#555;stroke-width:7;filter:drop-shadow(0 1px 2px #fff9)}
@media(max-width:699px){.game-hud{top:0;width:100%;padding:5px 9px 6px;gap:10px}.game-hud .steps{font-size:9px;gap:7px}.game-hud .steps b{font-size:8px}.game-hud .instruction-top{margin:0;font-size:8px}.game-hud #counter{font-size:8px}.game-hud .progress{margin:0}.instruction{gap:8px 12px;padding:13px 14px}.instruction h2{font-size:14px;line-height:1.7}.instruction #instruction-detail{font-size:11px}.instruction #contact{font-size:12px}.instruction .scene-welcome{gap:14px}.instruction .scene-welcome p{font-size:11px}.instruction .scene-welcome button{min-height:44px;padding:11px 15px;font-size:12px}.instruction .scene-welcome button span{margin-left:8px}.experience>.direct-view-help{gap:7px;margin-top:8px}}
@media(max-width:350px){.instruction .scene-welcome{align-items:stretch;flex-direction:column;gap:10px}.instruction .scene-welcome button{width:100%;display:flex;justify-content:space-between;align-items:center}.game-hud .steps{font-size:8px;gap:5px}.game-hud .steps b{font-size:7px}}

/* Higher contrast HUD, retaining the same thin full-width footprint. */
.game-hud{background:#181c1bc7}.game-hud .steps{color:#dce1de}.game-hud .steps .active{color:#fff;font-weight:500}.game-hud .steps .complete{color:#d4eddf}.game-hud .steps i{background:#ffffff38}.game-hud #counter{color:#fff;font-weight:500}.game-hud .progress{height:3px;background:#ffffff29}.game-hud .progress span{background:#c8ead4;box-shadow:0 0 5px #c8ead466}

/* Players can read the next action and live feedback without leaving the scene. */
.viewport .in-scene-prompt{position:absolute;z-index:3;left:50%;bottom:12px;transform:translateX(-50%);width:max-content;max-width:min(560px,calc(100% - 24px));padding:9px 16px;border:1px solid #ffffffb3;border-radius:12px;background:#f2f2f2d9;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);text-align:center;pointer-events:none;box-shadow:0 2px 10px #0000000d}
.in-scene-prompt h2{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.in-scene-prompt #instruction-detail{margin:0;color:#555;font-size:11px;line-height:1.7}.in-scene-prompt #contact{position:static;transform:none;display:block;width:auto;max-width:100%;margin:4px 0 0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;white-space:normal;font-size:13px;line-height:1.6;font-weight:500;color:#292929!important;letter-spacing:.02em}.in-scene-prompt #contact:empty{display:none}
.experience:has(#welcome:not([hidden])) .in-scene-prompt,.viewport:has(#completion:not([hidden])) .in-scene-prompt,.viewport:has(#next-step:not([hidden])) .in-scene-prompt{display:none}
.experience:has(#welcome[hidden])>.instruction{display:none}
.viewport>.direct-view-help{top:38px;right:10px;bottom:auto;left:auto;transform:none;max-width:calc(100% - 20px);padding:0;margin:0;background:transparent;box-shadow:none;border:0;gap:0}.viewport>.direct-view-help span{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}.viewport>.direct-view-help button{min-height:26px;padding:4px 8px;border:1px solid #ffffff80;border-radius:7px;background:#f2f2f2b3;color:#555;font-size:9px}
.scene-actions .next-step{background:linear-gradient(135deg,#ffffff2e,#ebebeb14);border-color:#ffffff99;box-shadow:0 5px 18px #00000018,inset 0 1px 0 #ffffff40;backdrop-filter:blur(4px) saturate(1.05);-webkit-backdrop-filter:blur(4px) saturate(1.05)}
@media(max-width:699px){.viewport .in-scene-prompt{bottom:10px;padding:7px 11px;max-width:calc(100% - 20px);border-radius:10px}.in-scene-prompt #instruction-detail{font-size:10px}.in-scene-prompt #contact{font-size:12px}.viewport>.direct-view-help{top:36px;right:8px}}

/* Compact opening at the TV's lower edge keeps the Florence skyline visible. */
.viewport[data-brush]>.scene-welcome{top:56%;bottom:auto;left:50%;transform:translate(-50%,-50%);width:max-content;max-width:calc(100% - 24px);padding:10px 13px;display:flex;flex-direction:column;align-items:center;gap:6px;border:1px solid #ffffff33;border-radius:10px;background:#0000004d;box-shadow:0 4px 14px #0000001a;backdrop-filter:none;-webkit-backdrop-filter:none}
.viewport[data-brush]>.scene-welcome[hidden]{display:none}.viewport[data-brush]>.scene-welcome p{padding:0;margin:0;border:0;border-radius:0;background:transparent;box-shadow:none;backdrop-filter:none;color:#fff;font-size:11px;line-height:1.5;letter-spacing:.04em;text-shadow:0 1px 3px #0009}
.viewport[data-brush]>.scene-welcome button{min-height:44px;min-width:144px;padding:10px 20px;border:1px solid #ffffff80;border-radius:7px;background:#00000059;box-shadow:none;backdrop-filter:none;color:#fff;font-size:14px}.viewport[data-brush]>.scene-welcome button span{margin-left:18px}.viewport[data-brush]>.scene-welcome button:hover{background:#0009}.viewport[data-brush]>.scene-welcome button:focus-visible{outline-color:#fff;outline-offset:3px}
.experience:has(.viewport[data-brush])>.instruction{display:none}
/* A single stable instruction during Step 1; progress stays in the top HUD. */
.viewport[data-brush]:is([data-stage=part],[data-stage=root],[data-stage=scrub]) .in-scene-prompt #contact{display:none}
.viewport[data-brush]:is([data-stage=part],[data-stage=root],[data-stage=scrub]) .in-scene-prompt #instruction-detail{font-size:13px;color:#292929}
@media(max-width:699px){.viewport[data-brush]:is([data-stage=part],[data-stage=root],[data-stage=scrub]) .in-scene-prompt #instruction-detail{font-size:12px}}
.viewport[data-brush]:is([data-stage=part],[data-stage=root],[data-stage=scrub]) .in-scene-prompt:has(#instruction-detail:empty){display:none}

/* The bathroom opening places its compact card above the products. */
.viewport[data-brush=eye]>.scene-welcome{top:39%}
.viewport[data-brush=blush]>.scene-welcome{top:51%}

/* Identify the movable cleaner first; then show one downward action. */
.storage-guide{position:absolute;inset:0;width:100%;height:100%;z-index:2;pointer-events:none;overflow:hidden}
.storage-guide path{fill:none;stroke:rgba(255,255,255,.8);stroke-linecap:round;stroke-linejoin:round;vector-effect:non-scaling-stroke;filter:drop-shadow(0 1px 2px #0009)}
.storage-guide-down path{stroke-width:5;animation:storage-down 1.6s ease-in-out infinite}
.viewport[data-stage=insert] .in-scene-prompt #contact{display:none}
.viewport[data-stage=insert] .in-scene-prompt #instruction-detail{font-size:13px;color:#292929}
@keyframes storage-down{0%,100%{transform:translateY(-3px)}50%{transform:translateY(4px)}}
@media(max-width:699px){.viewport[data-stage=insert] .in-scene-prompt #instruction-detail{font-size:12px}}
@media(prefers-reduced-motion:reduce){.storage-guide-down path{animation:none}}

/* Sampled contrast follows the scene behind each cue. */
.motion-guides path,.motion-guides[data-persistent=true] path{stroke:var(--guide-stroke,rgba(0,0,0,.58));filter:drop-shadow(0 1px 2px var(--guide-shadow,#fff8))}
.storage-guide .storage-guide-glow{fill:rgba(255,255,255,.14);stroke:rgba(255,255,255,.95);stroke-width:2;filter:drop-shadow(0 0 3px #fffd) drop-shadow(0 0 1px #fff);animation:storage-cleaner-blink 1s ease-in-out infinite}
@keyframes storage-cleaner-blink{0%,100%{opacity:.08}45%,60%{opacity:1}}
@media(prefers-reduced-motion:reduce){.storage-guide .storage-guide-glow{animation:none;opacity:.25}}
