#room-extra-actions{display:flex;flex-wrap:wrap;gap:10px;justify-content:center;margin:14px 0}#window-task,#house-enter{position:absolute;z-index:15;bottom:16%;left:50%;transform:translateX(-50%);background:#17282be8;border:1px solid #e4c17c;border-radius:30px;color:#f3e4c5;padding:13px 22px;min-height:48px;cursor:pointer;font:inherit}#window-task[hidden],#house-enter[hidden]{display:none}#extra-dialog{background:#17262b;color:#f1e6cd;border:1px solid #a69060;border-radius:16px;max-width:720px;width:calc(100% - 32px);max-height:90dvh;padding:30px;overflow:auto}#extra-dialog::backdrop,#house-dialog::backdrop{background:#051019c9}#extra-dialog h2{font:2rem Georgia}#extra-dialog .game-stage{display:grid;gap:18px}#extra-dialog label{display:grid;gap:10px}#extra-dialog input{font:inherit;padding:10px;background:#0e1c24;color:#f4e5c8;border:1px solid #ad9868;border-radius:8px;width:100%}#extra-dialog input[type=range]{padding:0;accent-color:#e4c17c}#extra-dialog button,#extra-dialog summary{font:inherit;cursor:pointer;min-height:44px}#extra-dialog button{background:#304038;color:#f1e6cd;border:1px solid #a69060;border-radius:24px;padding:10px 17px}#extra-dialog .puzzle-visual svg{width:100%}#extra-dialog .choice-row{display:flex;gap:10px;flex-wrap:wrap}#extra-dialog .answer-form{display:flex;align-items:end;gap:12px}#extra-dialog .answer-form label{flex:1}#extra-dialog .angle-paper{background:#ead9b5;color:#453628;padding:30px 10px;text-align:center;overflow:hidden;border-radius:8px}#extra-dialog .angle-paper strong{display:block;font:3rem Georgia}#extra-dialog details{margin-top:20px}#extra-dialog summary{color:#e4c17c}#extra-dialog .game-feedback{color:#b4dcbb;line-height:1.5}#extra-close{float:right}#house-dialog{width:96vw;height:94dvh;max-width:none;max-height:96dvh;border:1px solid #a69060;border-radius:12px;padding:0;background:#0d171d}#house-dialog iframe{width:100%;height:100%;border:0}#house-close{position:absolute;right:15px;bottom:15px;z-index:3;min-height:44px;padding:10px 16px;border-radius:24px;background:#e4c17c;color:#18222a;border:0;cursor:pointer;font:inherit}.wish-local-option{display:flex;align-items:flex-start;gap:12px;margin:16px 0;font-size:.85rem;line-height:1.5}.wish-local-option input{width:20px;height:20px;flex:none;margin-top:2px}.room-preview-link{color:#e4c17c;text-decoration:underline;margin-left:12px}@media(max-width:600px){#extra-dialog{padding:20px}#extra-dialog .answer-form{flex-direction:column;align-items:stretch}#window-task,#house-enter{bottom:20%;max-width:85%;font-size:14px}}

#house-dialog{overflow:hidden}#house-dialog iframe{display:block}

/* Give the prism a generous, unobstructed touch target. */
@media(max-width:600px){#prism-point{width:60px;height:60px;min-width:60px;min-height:60px;z-index:6}#prism-point:before{inset:20px}#prism-point:after{left:28px;top:28px}#prism-point span{bottom:65px}}

/* Stable, finger-sized room controls, including their text labels. */
#awake-room .scene-point,#awake-room #wish-paper{touch-action:manipulation;-webkit-user-select:none;user-select:none}
#awake-room .scene-point::before,#awake-room .scene-point::after{pointer-events:none}
@media(pointer:coarse){#awake-room .scene-point{min-width:48px;min-height:48px}#awake-room .scene-point span{touch-action:manipulation}}
