:root { --bg: #111214; --fg: #f4f4f5; --panel: rgba(20, 21, 24, 0.82); --accent: #ff4d6d; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--fg); font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; overflow: hidden; }
#stage { position: fixed; inset: 0; }
#stage canvas { display: block; touch-action: none; }
.labels { position: absolute; inset: 0; pointer-events: none; }
.room { background: rgba(255, 255, 255, 0.9); color: #111; padding: 2px 8px; border-radius: 4px; font-size: 12px; font-weight: 600; }
.measure { background: #ffd400; color: #111; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-weight: 700; }
#loading { position: fixed; inset: 0; display: grid; place-items: center; font-size: 14px; color: #bbb; }
#modes { position: fixed; left: 16px; bottom: 16px; display: flex; gap: 6px; background: var(--panel); padding: 6px; border-radius: 10px; }
#modes button { display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: #cfd0d4; padding: 6px 10px; border-radius: 8px; cursor: pointer; font-size: 11px; }
#modes button svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; }
#modes button.on { background: rgba(255, 255, 255, 0.14); color: #fff; }
.chip { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: var(--panel); color: #fff; border: 0; border-radius: 16px; padding: 6px 16px; font-weight: 700; font-size: 13px; }
#reel { position: fixed; right: 16px; bottom: 16px; display: flex; gap: 4px; background: var(--panel); padding: 6px; border-radius: 10px; max-width: 50vw; overflow-x: auto; }
#reel button { min-width: 30px; height: 30px; border-radius: 15px; border: 1px solid #555; background: none; color: #ddd; cursor: pointer; }
#reel button.on { background: var(--accent); border-color: var(--accent); color: #fff; }
#hint { position: fixed; top: 56px; left: 50%; transform: translateX(-50%); background: var(--panel); color: #ddd; font-size: 12px; padding: 6px 12px; border-radius: 8px; white-space: nowrap; }
body.measuring #stage canvas { cursor: crosshair; }
@media (max-width: 600px) {
  #modes { left: 8px; bottom: 8px; } #modes button span { display: none; }
  #reel { right: 8px; bottom: 8px; } #hint { display: none; }
}
