/* Korean Life Sim — Scene HUD, Stages, Choices, Tray & Controls */

/* Grid layout guarantees floating overlays NEVER overlap #tray or .controls */
#scene {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  grid-template-columns: minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
  background: #14100e;
}

.stageroot {
  grid-row: 1;
  grid-column: 1;
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background-color: #211813;
}

/* ---------------- PHONE CALL STAGE (pc-*) ---------------- */
.pc-root {
  background: radial-gradient(circle at 50% 38%, #2b211b 0%, #120e0c 74%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.pc-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  max-width: 100%;
}
.pc-caller {
  font-size: 44px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: -0.01em;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.pc-label {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border-subtle);
  border-radius: 999px;
  padding: 4px 14px;
}
.pc-timer {
  font-size: 22px;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.pc-pulse {
  width: 124px;
  height: 124px;
  border-radius: 50%;
  margin-top: 26px;
  background: radial-gradient(circle, #4a3a2f 0%, #2f241d 100%);
  border: 2px solid var(--border-warm);
  --lvl: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pc-pulse.talking {
  background: radial-gradient(circle, #6d5340 0%, #443327 100%);
  border-color: var(--gold);
  box-shadow:
    0 0 calc(16px + var(--lvl) * 38px) calc(4px + var(--lvl) * 12px) rgba(245, 215, 168, 0.42),
    0 0 0 calc(6px + var(--lvl) * 14px) rgba(216, 139, 68, 0.16);
}

/* ---------------- PLAIN STAGE (pl-*) ---------------- */
.pl-root { background-image: none; }
.pl-panels {
  position: absolute;
  top: 56px;
  left: 20px;
  right: 20px;
  max-height: calc(100% - 140px);
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  z-index: 2;
  pointer-events: none;
}
.pl-panel {
  pointer-events: auto;
  width: min(270px, 100%);
  background: #1c2924;
  border: 4px solid #63452e;
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: var(--shadow-md);
}
.pl-panel-title {
  text-align: center;
  color: #a9c4b9;
  letter-spacing: 0.25em;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 8px;
  padding-bottom: 5px;
  border-bottom: 1px solid rgba(169, 196, 185, 0.2);
}
.pl-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 19px;
  color: #f4f0e4;
  padding: 5px 8px;
  border-radius: 9px;
  font-variant-numeric: tabular-nums;
}
.pl-row.pointable, .pl-card.pointable, .pl-thing.pointable, .pl-thing.pl-usable {
  cursor: pointer;
  outline: 2px dashed rgba(245, 215, 168, 0.65);
  outline-offset: 1px;
}
.pl-row.pointable:hover, .pl-thing.pointable:hover, .pl-thing.pl-usable:hover {
  background: rgba(255, 255, 255, 0.12);
}
.pl-figures {
  position: absolute;
  left: 50%;
  bottom: 8%;
  transform: translateX(-50%);
  display: flex;
  gap: 36px;
  z-index: 1;
  pointer-events: none;
}
.pl-figure { position: relative; width: 210px; height: 290px; border-radius: 105px 105px 0 0; --lvl: 0; }
.pl-head {
  position: absolute;
  left: 50%;
  top: 0;
  width: 96px;
  height: 114px;
  margin-left: -48px;
  border-radius: 50% 50% 46% 46%;
  background: #e6c3a1;
  box-shadow: inset 0 22px 0 #2a1b14;
}
.pl-shoulders {
  position: absolute;
  left: 0;
  top: 126px;
  width: 100%;
  height: 164px;
  border-radius: 105px 105px 0 0;
  background: #8a5a3a;
}
.pl-figure.talking {
  box-shadow: 0 0 calc(18px + var(--lvl) * 40px) calc(4px + var(--lvl) * 10px) rgba(245, 215, 168, 0.45);
}
.pl-props {
  position: absolute;
  right: 20px;
  bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-end;
  max-width: 48%;
  z-index: 3;
}
.pl-card {
  position: relative;
  width: 140px;
  height: 88px;
  border-radius: 10px;
  background: linear-gradient(135deg, #2f5d8a, #1d3550);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.45);
  transform: rotate(-6deg);
}
.pl-chip {
  position: absolute;
  left: 14px;
  top: 22px;
  width: 22px;
  height: 16px;
  border-radius: 4px;
  background: linear-gradient(135deg, #ebd089, #c49c45);
}
.pl-thing {
  background: var(--glass-strong);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-warm);
  border-radius: 12px;
  padding: 10px 16px;
  font-size: 18px;
  font-weight: 600;
  box-shadow: var(--shadow-sm);
}
.pl-spots {
  position: absolute;
  left: 20px;
  bottom: 20px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  max-width: 62%;
  z-index: 3;
}
.pl-spotbtn {
  background: var(--glass-strong);
  backdrop-filter: blur(8px);
  color: var(--text-main);
  border: 1.5px solid var(--border-warm);
  border-radius: 999px;
  padding: 9px 18px;
  min-height: 44px;
  font-size: 16.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.pl-spotbtn:hover { border-color: var(--accent); background: var(--surface-3); }
.pl-spotbtn.here { border-color: var(--gold); background: var(--surface-3); color: var(--gold); cursor: default; }
.pl-spotname {
  position: absolute;
  left: 22px;
  bottom: 72px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-soft);
  background: rgba(20, 16, 14, 0.72);
  padding: 3px 10px;
  border-radius: 999px;
  z-index: 3;
}
.pl-hint { animation: pl-pulse 0.85s ease-in-out 5; outline: 3px solid var(--gold) !important; }
.pl-mark { outline: 3px solid var(--gold) !important; background: rgba(245, 215, 168, 0.22) !important; }
@keyframes pl-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(245, 215, 168, 0); }
  50% { box-shadow: 0 0 16px 6px rgba(245, 215, 168, 0.78); }
}

/* ---------------- 3D ROOM STAGE HUD (rm-*) ---------------- */
.rm-root canvas { display: block; width: 100%; height: 100%; }
.rm-root canvas, .rm-stick { touch-action: none; }
.rm-dot, .rm-chip, .rm-stick, .rm-knob { user-select: none; -webkit-user-select: none; }

.rm-tag {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 3;
  background: rgba(24, 18, 15, 0.86);
  backdrop-filter: blur(6px);
  color: var(--text-main);
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 14.5px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.rm-tag.far { opacity: 0.65; }
.rm-tip {
  position: absolute;
  z-index: 3;
  pointer-events: none;
  background: rgba(24, 18, 15, 0.92);
  color: var(--text-main);
  border: 1px solid var(--border-warm);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 13.5px;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
}
.rm-dot {
  display: none;
  position: absolute;
  left: 50%;
  top: 50%;
  width: 7px;
  height: 7px;
  margin: -4px 0 0 -4px;
  border-radius: 50%;
  background: #fff;
  border: 1.5px solid rgba(20, 14, 10, 0.85);
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.5);
  pointer-events: none;
  z-index: 3;
  transition: width 0.1s ease, height 0.1s ease, margin 0.1s ease, background 0.1s ease;
}
.rm-locked .rm-dot { display: block; }
.rm-locked .rm-dot.on {
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  background: var(--gold);
}
.rm-chip {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  z-index: 3;
  pointer-events: none;
  background: rgba(22, 17, 14, 0.84);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 13px;
  white-space: nowrap;
}
.rm-stick {
  display: none;
  position: absolute;
  left: 20px;
  bottom: 20px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(20, 14, 11, 0.48);
  backdrop-filter: blur(6px);
  border: 2px solid rgba(245, 232, 214, 0.28);
  z-index: 3;
}
body.touchui .rm-free .rm-stick { display: block; }
.rm-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin: -24px 0 0 -24px;
  border-radius: 50%;
  background: rgba(246, 235, 220, 0.78);
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.rm-loose {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-width: calc(100% - 120px);
}

/* ---------------- SCENE TOP & CENTER OVERLAYS (Row 1) ---------------- */
.leave {
  grid-row: 1;
  grid-column: 1;
  justify-self: end;
  align-self: start;
  margin: 12px 14px 0 0;
  z-index: 6;
  background: var(--glass);
  backdrop-filter: blur(10px);
  color: var(--text-main);
  border: 1px solid var(--border-warm);
  box-shadow: var(--shadow-sm);
}
.leave:hover:not(:disabled) { background: var(--surface-3); border-color: var(--border-strong); }

.skip {
  grid-row: 1;
  grid-column: 1;
  justify-self: end;
  align-self: start;
  margin: 58px 14px 0 0;
  z-index: 6;
}

.banner {
  grid-row: 1;
  grid-column: 1;
  justify-self: center;
  align-self: start;
  margin: 12px 104px 0 14px;
  max-width: min(580px, calc(100% - 118px));
  z-index: 7;
  background: rgba(74, 32, 26, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 168, 148, 0.35);
  border-radius: 16px;
  padding: 11px 18px;
  font-size: 15.5px;
  line-height: 1.45;
  color: #fff3ee;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
}
#bannerbtns { display: flex; flex-wrap: wrap; gap: 8px; }

.thinking {
  grid-row: 1;
  grid-column: 1;
  place-self: center;
  z-index: 5;
  background: var(--glass-strong);
  backdrop-filter: blur(10px);
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  padding: 6px 22px 10px;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: var(--gold);
  box-shadow: var(--shadow-md);
  pointer-events: none;
  animation: think-breathe 1.3s ease-in-out infinite;
}
@keyframes think-breathe {
  0%, 100% { opacity: 0.65; transform: scale(0.98); }
  50% { opacity: 1; transform: scale(1.02); }
}

/* Look Box (Hanji paper menu / sign inspection) */
.lookbox {
  grid-row: 1;
  grid-column: 1;
  place-self: center;
  z-index: 8;
  width: min(520px, calc(100% - 28px));
  max-height: calc(100% - 32px);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--paper);
  color: var(--paper-ink);
  border: 2px solid var(--paper-border);
  border-radius: 20px;
  padding: 24px 28px;
  box-shadow: var(--shadow-lg);
  cursor: pointer;
}
.lk-title {
  text-align: center;
  letter-spacing: 0.24em;
  font-size: 13px;
  font-weight: 700;
  color: var(--paper-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--paper-border);
}
.lk-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  font-size: 25px;
  font-weight: 600;
  padding: 6px 0 2px;
  font-variant-numeric: tabular-nums;
}
.lk-en {
  font-size: 14px;
  color: var(--paper-muted);
  margin: 0 0 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(100, 88, 76, 0.2);
}
.lk-en:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

/* Overheard dialogue caption (overheard.js) */
.heardwords {
  position: fixed;
  left: 50%;
  bottom: 20%;
  transform: translateX(-50%);
  z-index: 4;
  max-width: min(560px, calc(100vw - 32px));
  pointer-events: none;
  background: rgba(22, 17, 14, 0.82);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border-subtle);
  color: var(--text-soft);
  border-radius: 12px;
  padding: 7px 16px;
  font-size: 16px;
  font-style: italic;
  line-height: 1.45;
  text-align: center;
  box-shadow: var(--shadow-sm);
}

/* ---------------- SCENE BOTTOM OVERLAYS (Row 1, docked cleanly above Tray/Controls) ---------------- */
.choices, .pointmenu {
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  justify-self: center;
  margin: 0 12px 14px;
  width: min(640px, calc(100% - 24px));
  max-height: calc(100% - 76px);
  overflow-y: auto;
  overflow-x: hidden;
  z-index: 5;
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 10px;
  background: rgba(20, 15, 13, 0.78);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-warm);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
}
.pointmenu { width: min(480px, calc(100% - 24px)); z-index: 6; }

.choicehead {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin: 6px 6px 2px;
  pointer-events: none;
}
.choice {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 50px;
  text-align: left;
  background: rgba(45, 36, 31, 0.90);
  color: var(--text-main);
  border: 1.5px solid var(--border-warm);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.42;
  cursor: pointer;
  font-family: inherit;
  transition: background 0.14s ease, border-color 0.14s ease, transform 0.08s ease;
}
.choice:hover {
  border-color: var(--accent-hover);
  background: rgba(62, 49, 42, 0.96);
}
.choice:active { transform: scale(0.99); }
.choice .n {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  height: 26px;
  padding: 0 6px;
  border-radius: 8px;
  background: rgba(216, 139, 68, 0.18);
  border: 1px solid rgba(216, 139, 68, 0.38);
  color: var(--gold);
  font-size: 14px;
  font-weight: 700;
  flex: none;
}
.choice .t { flex: 1; min-width: 0; }
.choice.nothing { color: var(--text-muted); font-weight: 500; background: rgba(32, 26, 22, 0.72); border-color: var(--border-subtle); }
.choice.nothing .n { background: rgba(255, 255, 255, 0.05); border-color: var(--border-subtle); color: var(--text-muted); }
.choice.leave, .choice.pm-cancel { color: var(--text-soft); border-color: var(--border-subtle); background: rgba(34, 27, 23, 0.80); }

/* Parting Offer Bar */
.partbar {
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  justify-self: center;
  margin: 0 12px 14px;
  max-width: calc(100% - 24px);
  z-index: 5;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
}
.btn.part {
  background: linear-gradient(180deg, #f3dcba 0%, #e0c197 100%);
  color: #2c1c0e;
  border-radius: 999px;
  min-height: 46px;
  padding: 10px 20px;
  font-size: 15.5px;
}

/* Type Box & Live Talk Box */
.typebox {
  grid-row: 1;
  grid-column: 1;
  align-self: end;
  justify-self: center;
  margin: 0 12px 14px;
  width: min(540px, calc(100% - 24px));
  z-index: 7;
  background: var(--glass-strong);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}
.typebox input {
  width: 100%;
  font-size: 21px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1.5px solid var(--accent);
  background: var(--bg-0);
  color: var(--text-main);
  font-family: inherit;
  outline: none;
}
.typebox input::placeholder { color: var(--text-muted); }
.typebox-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
}
#typecancel, #talkcancel {
  background: var(--surface-2);
  color: var(--text-soft);
  border: 1px solid var(--border-warm);
  box-shadow: none;
}
#typecancel:hover, #talkcancel:hover { background: var(--surface-3); color: var(--text-main); }

/* ---------------- ITEMS TRAY (Row 2) ---------------- */
.tray {
  grid-row: 2;
  grid-column: 1;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 8px 18px;
  background: #1b1512;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  z-index: 4;
}
.tray-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  background: var(--surface-2);
  color: var(--text-main);
  border: 1.5px solid var(--border-warm);
  border-radius: 11px;
  padding: 7px 15px;
  font-size: 15.5px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.1s ease;
}
.tray-item:hover:not(:disabled) { border-color: var(--accent-hover); background: var(--surface-3); }
.tray-item:active:not(:disabled) { transform: scale(0.98); }
.tray-item:disabled { opacity: 0.48; cursor: default; }
.tray-item.pl-hint { border-color: var(--gold); }
.tray-card .pl-chip { position: static; display: inline-block; flex: none; }

/* ---------------- BOTTOM CONTROLS DOCK (Row 3) ---------------- */
.controls {
  grid-row: 3;
  grid-column: 1;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 10px 12px;
  padding: 10px 18px;
  background: #140f0d;
  border-top: 1px solid var(--border-subtle);
  flex-wrap: wrap;
  z-index: 4;
}
#modebtn, #againbtn, #typebtn, #talkbtn, #talkmic {
  background: var(--surface-2);
  color: var(--text-main);
  border: 1px solid var(--border-warm);
  box-shadow: none;
  min-height: 40px;
}
#modebtn:hover, #againbtn:hover, #typebtn:hover, #talkbtn:hover, #talkmic:hover {
  background: var(--surface-3);
  border-color: var(--accent);
}
#typebtn, #talkbtn { border-color: rgba(216, 139, 68, 0.45); color: var(--gold); }

/* Microphone Button */
.mic {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1.5px solid var(--border-strong);
  background: linear-gradient(180deg, #4b3b31 0%, #372b23 100%);
  cursor: pointer;
  position: relative;
  flex: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
  transition: background 0.15s ease, transform 0.1s ease, box-shadow 0.15s ease;
}
.mic:hover { background: linear-gradient(180deg, #5a473b 0%, #43342b 100%); border-color: var(--gold); }
.mic::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 12px;
  height: 18px;
  margin: -12px 0 0 -6px;
  border-radius: 6px;
  background: var(--text-main);
}
.mic::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 20px;
  height: 11px;
  margin: -2px 0 0 -10px;
  border: 2px solid var(--text-main);
  border-top: 0;
  border-radius: 0 0 11px 11px;
  box-sizing: border-box;
}
.mic.rec {
  background: var(--danger);
  border-color: #ff9c8e;
  box-shadow: 0 0 0 6px rgba(221, 87, 70, 0.32), 0 0 24px 6px rgba(221, 87, 70, 0.65);
}

.hints {
  color: var(--text-muted);
  font-size: 13.5px;
  line-height: 1.38;
  flex: 1 1 200px;
  min-width: 0;
}
.slider.right { margin-left: auto; }

/* Touch UI sizing */
body.touchui .choice { min-height: 52px; font-size: 19px; }
body.touchui #micbtn {
  width: 66px;
  height: 66px;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}
body.touchui #modebtn, body.touchui #typebtn, body.touchui #againbtn, body.touchui #leavebtn, body.touchui #skipbtn,
body.touchui #partchip, body.touchui #partgo, body.touchui #typesend, body.touchui #typecancel, body.touchui .pm-cancel,
body.touchui .pointmenu .choice { min-height: 46px; }

/* Narrow / 390px Scene Layout */
@media (max-width: 700px) {
  .pc-caller { font-size: 30px; }
  .pl-panels { top: 52px; left: 10px; right: 10px; gap: 10px; }
  .pl-panel { width: 100%; padding: 12px 14px; }
  .pl-row { font-size: 18px; }
  .pl-figures { gap: 12px; max-width: 100%; }
  .pl-figure { width: min(180px, 42vw); height: min(250px, 55vh); }
  .pl-spots { left: 10px; bottom: 10px; max-width: calc(100% - 20px); }
  .pl-props { right: 10px; bottom: 64px; max-width: calc(100% - 20px); }
  .banner {
    justify-self: start;
    margin: 56px 12px 0;
    max-width: calc(100% - 24px);
  }
  .choices, .pointmenu, .typebox {
    margin: 0 8px 10px;
    width: calc(100% - 16px);
  }
  .choice { font-size: 18px; padding: 10px 12px; gap: 10px; min-height: 48px; }
  .lookbox { width: calc(100% - 20px); padding: 18px 18px; }
  .lk-row { font-size: 21px; gap: 10px; }
  .tray { padding: 7px 12px; gap: 8px; }
  .controls { padding: 8px 12px; gap: 8px; }
  .hints { flex: 1 1 100%; order: 10; font-size: 12.5px; }
  .slider.right { margin-left: 0; font-size: 12.5px; }
  .slider.right input[type="range"] { width: 84px; }
}

.handbar {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  z-index: 6;
  background: var(--glass-strong);
  border: 1px solid var(--border-warm);
  border-radius: 999px;
  padding: 5px 12px;
}
.hb-label { font-size: 13px; color: var(--text-soft); }
.hb-item { font-size: 13.5px; padding: 4px 10px; }
.peoplebar {
  position: absolute;
  top: 56px;
  right: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 6;
}
.pb-item { font-size: 13px; padding: 4px 10px; opacity: 0.85; }
.pb-item.active { border-color: var(--gold); color: var(--gold); opacity: 1; }
