:root { font-family: Arial, sans-serif; color: white; background: #5591cd; }
* { box-sizing: border-box; }
body { margin: 0; min-height: 100dvh; }
[hidden] { display: none !important; }
header { display: flex; justify-content: space-between; align-items: center; max-width: 1200px; margin: auto; padding: 20px 24px 12px; }
h1 { margin: 0; font-size: clamp(20px, 2.4vw, 28px); font-weight: 600; }
main { max-width: 1200px; margin: auto; padding: 0 24px 24px; }
.room-nav { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin: 4px 0 18px; }
.room-nav a { color: white; text-decoration: none; border: 1px solid #fff9; border-radius: 24px; padding: 10px 20px; font-weight: 600; }
.room-nav a[aria-current="page"] { color: #164573; background: white; }
.room-nav a:hover { background: #ffffff25; }
.room-nav a[aria-current="page"]:hover { background: white; }
.settings-container { position: relative; z-index: 20; }
.settings-container summary { cursor: pointer; font-size: 36px; list-style: none; border-radius: 8px; }
.settings-container summary::-webkit-details-marker { display: none; }
.volume-menu { position: absolute; right: 0; top: 48px; width: 160px; padding: 16px; background: white; color: #1a2634; border-radius: 12px; box-shadow: 0 8px 24px #0003; }
.volume-menu label { display: block; margin-bottom: 8px; font-weight: bold; }
#volume-control { width: 100%; }
#model-frame { position: relative; aspect-ratio: 16 / 9; width: min(100%, calc((100dvh - 365px) * 16 / 9)); min-width: min(100%, 320px); margin-inline: auto; background: #000; }
#live-render { display: block; width: 100%; height: 100%; }
#hotspots { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
#hotspots button { pointer-events: auto; }
.white-dot { position: absolute; width: clamp(18px, 2.6vw, 32px); height: clamp(18px, 2.6vw, 32px); padding: 0; background: white; border: 3px solid #1a2634; border-radius: 50%; cursor: pointer; box-shadow: 0 0 15px white; transform: translate(-50%, -50%); z-index: 10; }
.white-dot:hover, .white-dot:focus-visible { transform: translate(-50%, -50%) scale(1.2); }
:focus-visible { outline: 3px solid #ffd54a; outline-offset: 4px; }
#dot-fridge { left: 73%; top: 42%; }
#dot-oven { left: 25%; top: 46%; }
#dot-egg { left: 74%; top: 25%; }
#dot-sink { left: 47%; top: 32%; }
#dot-clock { left: 47%; top: 21%; }
#dot-door { left: 97%; top: 35%; }
#dot-window { left: 16%; top: 24%; }
#dot-cabinet { left: 47%; top: 41%; }
#dot-drawer { left: 63%; top: 43%; }
#loading { position: absolute; inset: 0; display: grid; place-items: center; background: #0008; padding: 24px; text-align: center; }
#object-label { position: absolute; bottom: 5%; width: 100%; text-align: center; font-size: clamp(20px, 3vw, 36px); font-weight: bold; pointer-events: none; text-shadow: 0 2px 6px #000; }
.controls { margin-top: 20px; display: flex; gap: 12px; justify-content: center; align-items: center; flex-wrap: wrap; }
.controls button { border: 1px solid #fff9; border-radius: 8px; padding: 12px 18px; font: inherit; color: white; background: #1c4c7c; cursor: pointer; min-height: 44px; }
.controls button.primary { background: white; color: #164573; font-weight: bold; }
.controls button:hover { filter: brightness(1.08); }
.controls button:disabled { opacity: .55; cursor: wait; }
.preview-toggle { display: flex; align-items: center; gap: 6px; }
#camera-status { text-align: center; min-height: 1.4em; margin: 16px 0 8px; }
.hint, .privacy { text-align: center; margin: 8px 0; line-height: 1.5; }
.privacy { font-size: 13px; }
#camera-preview { position: relative; width: min(320px, 100%); margin: 16px auto 0; background: #123; border-radius: 8px; overflow: hidden; }
#webcam { display: block; width: 100%; transform: scaleX(-1); }
#camera-preview span { position: absolute; bottom: 8px; left: 8px; background: #0009; padding: 4px 8px; border-radius: 4px; font-size: 12px; }
@media (max-width: 600px) { header { padding: 12px; } main { padding: 0 8px 24px; } .white-dot { border-width: 2px; } .hint, #camera-status { font-size: 14px; } }
