qs-home-room, qs-life-place { display:block; }
.place-art-fit { width:100%; margin:0; }
.place-scene {
  position:relative; width:100%; aspect-ratio:6/5; isolation:isolate; overflow:hidden;
  touch-action:pan-y; user-select:none; -webkit-user-select:none;
}
/* Blend the assembled illustration into the page. Anchors and controls stay sharp above it. */
.place-artwork {
  position:absolute; inset:0; pointer-events:none;
  --fade-sides:linear-gradient(to right,
    transparent, #0003 1%, #000c 2.8%, #000 4.4% 95.6%, #000c 97.2%, #0003 99%, transparent);
  --fade-ends:linear-gradient(to bottom,
    transparent, #0003 1.5%, #000c 4.2%, #000 6.5% 92%, #000c 95%, #0003 98.2%, transparent);
  -webkit-mask-image:var(--fade-sides),var(--fade-ends);
  mask-image:var(--fade-sides),var(--fade-ends);
  -webkit-mask-composite:source-in;
  mask-composite:intersect;
}
.place-backdrop,.place-frame,.place-stems { position:absolute; inset:0; width:100%; height:100%; pointer-events:none; }
.place-backdrop,.place-frame { display:block; object-fit:cover; }
.place-frame { z-index:1; }
.place-stems { z-index:4; }
.place-stems line { stroke:#fff9e9; stroke-width:1.7px; vector-effect:non-scaling-stroke; stroke-linecap:round; filter:drop-shadow(0 1px 1px #42362745); }
.place-actor,.place-walker { position:absolute; z-index:3; translate:-50% -100%; }
.place-actor { border:0; padding:0; background:transparent; cursor:pointer; touch-action:pan-y; }
.place-walker { width:40%; pointer-events:none; }
.place-stride { width:100%; height:100%; transform:scaleX(var(--facing,1)); }
.place-stride img { display:none; position:absolute; inset:0; width:100%; height:100%; object-fit:contain; object-position:center bottom; }
.place-walker[data-frame="1"] [data-step="1"],.place-walker[data-frame="2"] [data-step="2"] { display:block; }
.place-object,.place-label {
  position:absolute; display:grid; place-items:center; margin:0; padding:0; translate:-50% -50%; min-width:44px; min-height:44px;
  border:0; border-radius:12px; background:transparent; font:inherit; cursor:pointer; touch-action:pan-y; -webkit-tap-highlight-color:transparent;
}
.place-object { z-index:5; width:13%; height:10%; }
.place-object i { box-sizing:border-box; width:10px; height:10px; border:2px solid #fff9e9; border-radius:50%; background:#96a779; box-shadow:0 1px 2px #35482b60; }
/* Keep the marker on the seat and let a tap on the seated neighbor reach the same action. */
qs-life-place[data-place="community"] .place-object[data-module="neighbor"] {
  width:25%; height:40%; translate:-77% -65%;
  clip-path:polygon(0 0,61% 0,61% 50%,100% 50%,100% 80%,61% 80%,61% 100%,0 100%);
}
qs-life-place[data-place="community"] .place-object[data-module="neighbor"] i {
  position:absolute; left:77%; top:65%; translate:-50% -50%;
}
.place-object[data-active="true"] i { background:#607b49; box-shadow:0 0 0 3px #fff5d077; }
.place-label { z-index:6; }
.place-chip { color:#293a2c; border:1px solid #fff9e7; border-radius:12px; padding:.28em .64em .31em; background:#fff9eafa; box-shadow:0 1px 4px #493d2b3b; font-size:14px; font-weight:600; line-height:1.35; white-space:nowrap; }
.place-label[aria-pressed="true"] .place-chip { background:#e4efd6; color:#304e33; }
.place-label:focus-visible { outline:0; }
.place-label:focus-visible .place-chip,.place-actor:focus-visible,.place-records:focus-visible { outline:2px solid #416b44; outline-offset:3px; }
.place-reply { position:absolute; z-index:5; translate:-50% -50%; padding:4px 8px; border-radius:10px 10px 10px 2px; font-size:12px; font-weight:500; line-height:1.4; color:#4f442e; background:#fff8e3; box-shadow:0 1px 4px #4d381b38; white-space:nowrap; pointer-events:none; }
.place-scene [hidden] { display:none; }
.place-description { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip-path:inset(50%); white-space:nowrap; }
.place-tab-card {
  margin:8px 16px 0;
  border:1px solid #fff;
  border-radius:21px;
  background:#f2f5ebf5;
}
.place-tab-card .place-keys {
  margin:0;
  padding:0 4px;
  align-items:stretch;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:inset 0 -1px #50684a27;
}
.place-tab-card .place-keys button {
  position:relative;
  min-height:46px;
  padding-inline:1px;
  color:#465646;
}
.place-tab-card .place-keys button:focus-visible { outline-offset:-3px; }
.place-tab-card .place-keys button[aria-selected="true"] {
  color:#2e4735;
  background:transparent;
  font-weight:700;
}
.place-tab-card .place-keys button[aria-selected="true"]::after {
  content:"";
  position:absolute;
  left:50%;
  bottom:0;
  width:26px;
  height:3px;
  border-radius:3px 3px 0 0;
  transform:translateX(-50%);
  background:#568458;
}
.place-tab-guide { padding:13px 15px 15px; }
.place-tab-guide h2 {
  margin:0;
  color:#2e4735;
  font-size:1.0625rem;
  font-weight:700;
  line-height:1.4;
}
.place-tab-guide p {
  margin:4px 0 0;
  color:#53654f;
  font-size:.8125rem;
  line-height:1.55;
}
.brain-list-count { margin:0 2px;text-align:right;font-size:12px;color:#657361; }
@media(max-width:350px) {
  .place-chip {font-size:13px;padding:4px 6px;}
  .place-tab-card {margin-inline:12px;}
}
