:root {
  --ink: #f6f2ec;
  --glass: rgba(20, 18, 16, 0.55);
  --accent: #e7b46a;
  --bg: #12110f;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink);
  font: 15px/1.4 "Helvetica Neue", Helvetica, Arial, sans-serif; overflow: hidden; }
main, .view { position: fixed; inset: 0; }
.view[hidden] { display: none; }

.bar { position: fixed; top: 0; left: 0; right: 0; z-index: 20; display: flex; gap: 12px; align-items: baseline;
  padding: max(14px, env(safe-area-inset-top)) 16px 14px; pointer-events: none;
  background: linear-gradient(rgba(0,0,0,.45), transparent); }
.brand { font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.title { opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.room { position: fixed; z-index: 20; left: 50%; transform: translateX(-50%); bottom: max(22px, env(safe-area-inset-bottom));
  background: var(--glass); backdrop-filter: blur(8px); padding: 6px 14px; border-radius: 999px; font-size: 14px; }
.room:empty { display: none; }

.tools { position: fixed; z-index: 20; left: 16px; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; gap: 8px; }
.tools button { width: 44px; height: 44px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer;
  background: var(--glass); backdrop-filter: blur(8px); color: var(--ink); }
.tools button svg { width: 22px; height: 22px; fill: currentColor; }
.tools button[aria-pressed="true"] { background: var(--ink); color: #111; }
.tools button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.spot { display: block; width: 100%; height: 100%; border-radius: 50%; cursor: pointer;
  border: 2px solid rgba(255,255,255,.85); background: rgba(255,255,255,.18); box-shadow: 0 0 6px rgba(0,0,0,.35);
  transition: background .15s; }
.spot:hover { background: rgba(255,255,255,.55); }

#doll-canvas { width: 100%; height: 100%; display: block; }
.hint { position: absolute; top: 64px; left: 50%; transform: translateX(-50%); margin: 0; font-size: 13px; opacity: .7;
  white-space: nowrap; }

#plan { display: grid; place-items: center; padding: 70px 16px 84px; background: #ece7df; }
#plan[hidden] { display: none; }
.plan-wrap { position: relative; height: min(calc(100dvh - 154px), calc((100vw - 32px) / var(--plan-ratio, .6)));
  aspect-ratio: var(--plan-ratio, .6); }
#plan-img { width: 100%; height: 100%; object-fit: contain; display: block; border-radius: 6px; }
.dot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; border: 2px solid #fff;
  background: #1f6feb; box-shadow: 0 1px 4px rgba(0,0,0,.4); cursor: pointer; padding: 0; }
.dot[aria-current="true"] { background: var(--accent); }
.dot:focus-visible { outline: 2px solid #111; outline-offset: 2px; }

@media (max-width: 600px) { .hint { display: none; } }
.embed .bar { display: none; }
.rooms { position: fixed; z-index: 20; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; display: flex; gap: 6px;
  overflow-x: auto; scrollbar-width: none; }
.rooms::-webkit-scrollbar { display: none; }
.rooms button { flex: none; border: 0; border-radius: 999px; padding: 8px 14px; font: 500 13px/1 -apple-system, BlinkMacSystemFont, "Helvetica Neue", sans-serif;
  background: rgba(255, 255, 255, 0.85); color: #1d1d1f; cursor: pointer; }
.rooms button[aria-current="true"] { background: #1d1d1f; color: #fff; }
.rooms button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
body:not(.embed) .rooms { top: 52px; }
@media (max-width: 600px) { .embed .room { display: none; } }
.back { margin-left: auto; pointer-events: auto; color: var(--ink); text-decoration: none; font-weight: 600; white-space: nowrap;
  background: var(--glass); padding: 6px 12px; border-radius: 999px; }
body:not(.embed) .rooms { top: 56px; }
