/* Interactive furniture uses the same world coordinates as the canvas. */
.living-room .room-object-hit{position:absolute;z-index:3;border:0;padding:0;min-width:44px;min-height:44px;background:transparent;border-radius:25%;touch-action:manipulation;cursor:pointer}
.living-room .room-object-hit:hover{background:#ffdc9e0a}
.living-room .room-object-hit:focus-visible{outline:2px dashed #ffdfa4;outline-offset:3px;background:#fff3}
.living-room #room-bowl-hit{z-index:4}
.living-room .room-dock{z-index:5;left:12%;right:12%;bottom:4%}
.living-room .room-dock .focus-launch{padding:11px 16px;box-shadow:inset 0 0 10px #e0ccff55,0 0 15px #a28aff25}
.living-room .room-dock>p{margin:0 0 8px;min-height:14px}
@media(max-width:720px){.immersive-room.living-room{min-height:520px}.living-room .room-dock{bottom:calc(88px + env(safe-area-inset-bottom));left:14%;right:14%}.living-room .focus-launch>span{font-size:19px}.living-room .room-greeting{top:12%}.living-room .pet-hud{top:22%;padding:10px}.living-room .room-shortcuts{margin-top:1px;gap:5px}.living-room .room-shortcuts button{font-size:10px;padding:4px 8px}}

@media(max-width:720px) and (max-height:700px){.living-room .room-dock>p,.living-room .focus-launch small{display:none}.living-room .room-dock .focus-launch{min-height:46px;padding:8px 12px}.living-room .room-shortcuts button{min-height:36px}.living-room .room-dock{bottom:calc(90px + env(safe-area-inset-bottom))}.living-room .pet-hud{top:21%;padding:8px}.living-room .hud-food>span{display:none}}

.room-focus-hud{position:absolute;z-index:4;top:7%;left:5%;right:5%;display:flex;align-items:center;gap:12px;padding:5px 8px 5px 12px;background:#211933eb;border:1px solid #947b9c88;border-radius:17px;color:#fff1df;box-shadow:0 3px 14px #21112b55}
.room-focus-hud button{min-height:44px}
.room-focus-hud .hud-detail{border:0;text-align:left;background:transparent;padding:0 5px}
.hud-detail small,.hud-detail strong{display:block}.hud-detail small{color:#d3bad8;font-size:.72rem}.hud-detail strong{font-size:1.4rem;font-variant-numeric:tabular-nums;line-height:1.1}
.room-focus-hud>span{flex:1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:.86rem}
.hud-command{padding:5px 12px}.living-room:has(.room-focus-hud) .room-greeting{visibility:hidden}
.room-sheet header{display:flex;justify-content:space-between;align-items:center;gap:8px}.room-sheet h2{margin:0}.room-sheet header button{min-width:44px;font-size:1.4rem}.room-sheet .activity-choice{margin:.5rem 0}.room-sheet .sheet-link{width:100%;border:0}.room-sheet select{width:100%;margin:4px 0 8px}.room-sheet .card{margin:10px 0}
@media(max-width:720px){.room-focus-hud{top:max(74px,11%)}.living-room:has(.room-focus-hud) .pet-hud{top:max(145px,23%)}dialog:has(.room-sheet){position:fixed;inset:auto 0 0;width:100%;max-width:100%;box-sizing:border-box;margin:0;border-radius:22px 22px 0 0;padding:16px 18px calc(12px + env(safe-area-inset-bottom));max-height:78dvh;overflow:auto}dialog:has(.room-sheet)::backdrop{background:#100c2138;backdrop-filter:none}.room-sheet header button,.room-sheet .presets button,.room-sheet .activity-choice button{min-height:44px}}

.mode-choice{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:3px;background:#181529;border-radius:14px;margin:10px 0}.mode-choice button{min-height:44px;border:0}.mode-choice [aria-pressed=true]{background:#534369;color:#fff3e6}
.cycle-plan{display:grid;gap:4px;padding:10px 12px;background:#292238;border-radius:12px;margin:5px 0 8px}.cycle-plan small{color:#d8c8dc}.cycle-plan summary{cursor:pointer;padding:8px 0}.cycle-fields{display:grid;grid-template-columns:1fr 1fr;gap:6px}.cycle-fields label{font-size:.8rem}.cycle-fields input{width:100%;min-width:0}
.pet-needs{display:grid;gap:3px;margin-top:6px}.need-row{display:grid;grid-template-columns:auto minmax(18px,1fr) auto;align-items:center;gap:4px;font-size:11px;line-height:1.35;color:#f4e7ef;font-variant-numeric:tabular-nums}.need-row meter{width:100%;height:8px;appearance:none;background:#393044;border-radius:5px;overflow:hidden}.need-row meter::-webkit-meter-bar{background:#393044;border:0;border-radius:4px;height:5px}.need-row meter::-webkit-meter-optimum-value{background:var(--need-color)}.need-row meter::-moz-meter-bar{background:var(--need-color)}.need-sleep{--need-color:#b5a4d9}.need-hunger{--need-color:#eeb477}.need-wellbeing{--need-color:#98c697}.pet-card .need-row{font-size:14px}

.focus-composer{margin:0 0 .65rem}
.focus-composer summary{width:fit-content;padding:.5rem 0;color:#e3d9ff;cursor:pointer}
.focus-composer form{display:grid;gap:.42rem;margin-bottom:.75rem}
.focus-composer input{width:100%;min-width:0;font-size:1rem}

.living-room .focus-launch-label{min-width:0}
.living-room .cycle-return .cycle-position{display:block;margin:0 0 3px;font-size:.7rem;letter-spacing:.02em;text-transform:none}
.living-room .cycle-return .launch-task{white-space:normal;overflow-wrap:anywhere;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.living-room .focus-launch .launch-task{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;letter-spacing:normal;text-transform:none;font-size:.8rem}
.living-room .focus-launch:has(.launch-task){max-width:100%}
