@import url("./rest-visit.css");

* {
  box-sizing: border-box;
}
html,
body,
#garden,
.room-stage {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
}
body {
  font:
    16px/1.5 "Malgun Gothic",
    "Apple SD Gothic Neo",
    system-ui,
    sans-serif;
  background: #302c28;
  color: #262d29;
}
button,
a,
select,
input,
textarea {
  font: inherit;
}
button,
select {
  cursor: pointer;
}
button {
  border: 0;
  color: inherit;
  background: transparent;
}
button,
a {
  touch-action: manipulation;
}
button:disabled {
  opacity: 0.48;
  cursor: default;
}
button:focus-visible,
a:focus-visible,
select:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #dcad66;
  outline-offset: 3px;
}
button:hover {
  filter: brightness(0.95);
}
[hidden] {
  display: none !important;
}
svg {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h2 {
  font-size: 23px;
  letter-spacing: -0.05em;
}
h3 {
  font-size: 18px;
  letter-spacing: -0.035em;
}
.room-stage {
  --bottom-inset: max(18px, env(safe-area-inset-bottom));
  --side-controls-lift: 0px;
  position: relative;
  isolation: isolate;
}
#canvas {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
}
#canvas canvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  outline: 0;
  cursor: grab;
}
#canvas canvas:active {
  cursor: grabbing;
}
.room-stage:after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  box-shadow: inset 0 70px 95px -65px #18140c66;
  z-index: 1;
}
.float-top {
  position: absolute;
  z-index: 3;
  left: max(20px, env(safe-area-inset-left));
  top: max(19px, env(safe-area-inset-top));
  right: max(20px, env(safe-area-inset-right));
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  pointer-events: none;
}
.float-top > * {
  pointer-events: auto;
}
.room-switch,
.glass-icon,
.count,
#lane-wrap select,
.float-actions button {
  color: #292c28;
  background: #fffdf5ea;
  box-shadow:
    0 3px 16px #20190f1a,
    0 0 0 1px #ffffff68 inset;
  backdrop-filter: blur(12px);
}
.room-switch {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 13px 9px 9px;
  border-radius: 14px;
  text-align: left;
}
.room-switch img {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}
.room-switch strong {
  display: block;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.24;
  letter-spacing: -0.055em;
}
.room-switch small {
  display: block;
  color: #5c665b;
  font-weight: 650;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 1px;
}
.chev {
  font-size: 19px;
  margin-left: 4px;
  align-self: center;
  color: #657161;
}
.top-tools,
.float-actions {
  display: flex;
  align-items: center;
  gap: 7px;
}
.glass-icon {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border-radius: 50%;
}
.count,
#lane-wrap select {
  font-size: 14px;
  border: 0;
  border-radius: 22px;
  padding: 8px 12px;
  font-weight: 650;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.count i {
  background: #558563;
  width: 6px;
  height: 6px;
  border-radius: 50%;
}
#lane-wrap:empty {
  display: none;
}
#lane-wrap select {
  max-width: 104px;
}
.float-actions {
  position: absolute;
  z-index: 3;
  right: max(20px, env(safe-area-inset-right));
  bottom: calc(var(--bottom-inset) + var(--side-controls-lift));
  gap: 7px;
}
.float-actions .glass-icon {
  width: 45px;
  height: 45px;
}
.float-actions .glass-icon.park-menu {
  display: inline-flex; width: auto; align-items: center; gap: .4rem;
  border-radius: 24px; padding: 0 13px; font-size: .9rem; font-weight: 700;
}
.float-actions svg {
  width: 21px;
  height: 21px;
}
.expression-overlay {
  position: absolute;
  z-index: 4;
  inset-inline: max(12px, env(safe-area-inset-left)) max(12px, env(safe-area-inset-right));
  bottom: var(--bottom-inset);
  display: grid;
  justify-items: center;
  gap: 9px;
  pointer-events: none;
}
.expression-dock {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  padding: 6px;
  border: 1px solid #fffdf1c2;
  border-radius: 16px;
  background: #f8f3e8f0;
  color: #293931;
  box-shadow: 0 6px 25px #25221e45;
  backdrop-filter: blur(14px);
  pointer-events: auto;
}
.expression-dock h2 {
  flex-shrink: 0;
  margin-inline: 7px 2px;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: -0.025em;
}
#expressions {
  display: grid;
  grid-auto-flow: column;
  gap: 4px;
  min-inline-size: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.expression-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 5px 8px;
  min-height: 44px;
  border-radius: 10px;
  background: #fffdf8;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
.expression-button:active:not(:disabled) {
  transform: translateY(1px);
  background: #eee5d4;
}
.expression-icon {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 7px;
  color: #3b6456;
  background: #e4eee4;
}
.expression-icon svg { width: 15px; height: 15px; }
.expression-button[data-expression="cry"] .expression-icon {
  color: #475c91;
  background: #e7ecfb;
}
.expression-button[data-expression="shout"] .expression-icon {
  color: #933f38;
  background: #f7e2d9;
}
.expression-button[data-expression="laugh"] .expression-icon {
  color: #765317;
  background: #faedc8;
}
.world-label,
.spatial-action {
  position: absolute;
  transform: translate(-50%, -100%);
  white-space: nowrap;
}
.world-label {
  pointer-events: none;
  background: #352f29aa;
  color: #fff;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.3;
  padding: 2px 7px;
  border-radius: 20px;
  box-shadow: 0 1px 3px #34261223;
}
.world-label.own {
  background: #fff8e6dc;
  color: #484638;
}
.world-label.interviewer {
  pointer-events: auto;
  width: 86px;
  text-align: center;
  border: 1px solid #ffffff60;
  padding: 3px 7px;
  border-radius: 8px;
  color: #f8fcff;
  background: #2d4353e8;
}
.world-label.interviewer small {
  display: block;
  color: #f3eadd;
  font: inherit;
  font-weight: 400;
  font-size: 0.71rem;
}
.world-label.interviewer::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  height: var(--lift, 0px);
  border-left: 1px solid #45586788;
  pointer-events: none;
}
.world-label.interviewer:disabled {
  opacity: 1;
}
.world-label.interviewer.in-range {
  z-index: 1;
  color: #fffaf1;
  background: #8d462e;
}
.world-label.speech.staff-quote {
  --pin: clamp(calc(100% - 100vw + var(--pin-x) + 6px), 50%, calc(var(--pin-x) - 6px));
  transform: translate(calc(0px - var(--pin)), calc(-100% - 43px));
  z-index: 3;
  width: max-content;
  max-width: min(232px, 80vw);
  white-space: normal;
  word-break: keep-all;
  line-height: 1.45;
  box-shadow: 0 2px 9px #35272038;
}
.world-label.mom {
  background: #582537;
  color: #fff0dc;
  font-weight: 700;
  border: 1px solid #cca182;
}
.world-label.speech,
#mom-note {
  font-size: 14px;
  background: #fff7e7ed;
  color: #4a3929;
  padding: 7px 12px;
  border-radius: 14px;
  z-index: 1;
}
.world-label.expression-speech {
  --pin: clamp(calc(100% - 100vw + var(--pin-x) + 8px), 50%, calc(var(--pin-x) - 8px));
  transform: translate(calc(0px - var(--pin)), -100%);
  max-width: min(270px, 80vw);
  width: max-content;
  text-align: center;
  white-space: normal;
  word-break: keep-all;
  line-height: 1.45;
}
.expression-speech[data-expression="cry"] { background: #e7efffed; color: #243d72; }
.expression-speech[data-expression="shout"] { background: #ffebe3ed; color: #7b302c; }
.expression-speech[data-expression="laugh"] { background: #fff0c3ed; color: #654514; }
#mom-note,
.toast,
#session-clock,
.no-webgl {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  z-index: 4;
  max-width: min(85%, 530px);
  text-align: center;
}
#mom-note {
  top: 85px;
}
.toast,
#activity:not(:empty),
#session-clock,
.no-webgl {
  border-radius: 18px;
  color: #fff9ed;
  background: #26251de6;
  padding: 8px 15px;
  font-size: 14px;
}
#activity {
  max-width: min(100%, 510px);
  text-align: center;
  word-break: keep-all;
  overflow-wrap: anywhere;
}
#activity:empty {
  display: none;
}
#activity .inline {
  pointer-events: auto;
  color: white;
}
.toast {
  position: fixed;
  top: max(139px, calc(env(safe-area-inset-top) + 118px));
  width: max-content;
}
.no-webgl {
  top: 24%;
  width: max-content;
}
#session-clock {
  left: auto;
  right: 22px;
  transform: none;
  bottom: calc(var(--bottom-inset) + var(--side-controls-lift) + 53px);
  font-variant-numeric: tabular-nums;
}
.spatial-action {
  z-index: 1;
  color: #fff9e9;
  background: #342f27e8;
  padding: 7px 13px;
  border-radius: 20px;
  font-weight: 650;
  font-size: 14px;
  box-shadow: 0 2px 9px #281c1638;
  line-height: 1.25;
}
.spatial-action:after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - 4px);
  border: 4px solid transparent;
  border-top-color: #342f27e8;
}
.spatial-action.park-seated {
  left: max(16px, env(safe-area-inset-left));
  bottom: calc(var(--bottom-inset) + max(70px, var(--side-controls-lift)));
  transform: none;
}
.spatial-action.park-seated:after { content: none; }
dialog {
  width: min(420px, calc(100vw - 28px));
  max-height: 84svh;
  overflow: auto;
  margin: auto;
  border: 1px solid #ffffff8a;
  background: #faf8f0;
  color: #30332d;
  padding: 22px;
  border-radius: 20px;
  box-shadow: 0 18px 75px #15191155;
}
dialog::backdrop {
  background: #1b241e66;
  backdrop-filter: blur(4px);
}
dialog.directory {
  width: min(630px, calc(100vw - 24px));
}
.modal-head,
.section-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.modal-head {
  margin-bottom: 17px;
}
.iconbtn {
  display: grid;
  place-items: center;
  background: #e9ede3;
  width: 32px;
  height: 32px;
  border-radius: 50%;
}
.outline,
.primary,
.danger,
.textbtn {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.4;
  border-radius: 9px;
  padding: 9px 13px;
  text-decoration: none;
}
.outline {
  background: #f0f1e8;
  border: 1px solid #d7dacf;
}
.primary {
  background: #365540;
  color: #fff;
}
.danger {
  color: #813c2e;
  background: #f4e3db;
}
.textbtn {
  color: #526552;
  text-decoration: underline;
  text-underline-offset: 3px;
}
dialog > button,
dialog > a,
.room-options button,
.room-options > a {
  margin: 3px 4px 3px 0;
}
.room-options h3 {
  margin: 13px 0 3px;
}
dialog p {
  color: #5f6659;
  font-size: 15px;
  line-height: 1.6;
  margin: 6px 0 12px;
}
.room-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}
.room-card {
  text-align: left;
  overflow: hidden;
  position: relative;
  min-height: 120px;
  border-radius: 12px;
  background: #656b60;
  color: #fff;
  padding: 0;
}
.room-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-caption {
  position: absolute;
  inset: 30% 0 0;
  padding: 15px 11px 10px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  background: linear-gradient(transparent, #191a18bf);
}
.card-caption small {
  font-size: 12px;
  color: #fbf6e5;
}
.card-caption strong {
  font-size: 17px;
  letter-spacing: -0.045em;
}
.room-card[aria-current="location"] {
  outline: 3px solid #8bb08b;
  outline-offset: -3px;
}
.room-count {
  font-size: 0.8rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.room-card .room-count {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  padding: 0.2rem 0.5rem;
  border-radius: 1rem;
  color: white;
  background: rgba(22, 40, 34, 0.9);
}
.other-rooms .room-count { margin-inline-start: 0.5rem; }
.other-rooms,
.booth-list {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 14px 0;
}
.other-rooms {
  max-height: 170px;
  overflow: auto;
}
.other-rooms svg {
  width: 15px;
}
.requirements,
.key {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.timer {
  display: block;
  font:
    700 25px ui-monospace,
    monospace;
}
dialog form,
dialog label {
  display: grid;
  gap: 6px;
}
dialog form {
  gap: 12px;
}
dialog label {
  font-size: 14px;
  font-weight: 650;
}
dialog input,
dialog select,
dialog textarea {
  width: 100%;
  padding: 9px 10px;
  border: 1px solid #c6cdbe;
  background: #fffdf7;
  color: #30362b;
  border-radius: 8px;
}
dialog textarea {
  min-height: 80px;
  resize: vertical;
}
.key {
  display: block;
  background: #e7ede3;
  padding: 9px;
  border-radius: 8px;
}
.form-error {
  color: #983a31;
  font-size: 14px;
}
.form-error:empty {
  display: none;
}
@media (max-width: 1380px) {
  .room-stage { --side-controls-lift: 64px; }
  #activity { transform: translateY(-55px); }
}
@media (max-width: 800px) {
  .room-stage {
    --bottom-inset: max(12px, env(safe-area-inset-bottom));
    --side-controls-lift: 142px;
  }
  .expression-dock {
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    width: min(100%, 430px);
  }
  .expression-dock h2 { margin-inline: 4px; }
  #expressions {
    grid-auto-flow: row;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
  .expression-button {
    flex-direction: column;
    gap: 2px;
    padding: 3px 2px;
    font-size: 12px;
  }
  .expression-icon { width: 20px; height: 20px; }
  #activity { font-size: 13px; }
}
@media (max-width: 620px) {
  .float-top {
    top: max(10px, env(safe-area-inset-top));
    left: 9px;
    right: 9px;
    gap: 4px;
  }
  .room-switch {
    gap: 6px;
    padding: 6px 8px 6px 6px;
    border-radius: 11px;
    max-width: 52vw;
  }
  .room-switch img {
    width: 27px;
    height: 27px;
  }
  .room-switch strong {
    font-size: 15px;
  }
  .room-switch small {
    font-size: 11px;
  }
  .chev {
    margin: 0;
  }
  .top-tools {
    gap: 4px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .glass-icon {
    width: 32px;
    height: 32px;
  }
  .glass-icon svg {
    width: 16px;
  }
  .count,
  #lane-wrap select {
    font-size: 12px;
    padding: 6px 8px;
  }
  .float-actions {
    right: max(12px, env(safe-area-inset-right));
  }
  .float-actions .glass-icon {
    width: 38px;
    height: 38px;
  }
  .room-card {
    min-height: 105px;
  }
  .card-caption strong {
    font-size: 15px;
  }
  .spatial-action {
    font-size: 13px;
  }
  .room-grid {
    gap: 7px;
  }
  dialog {
    padding: 16px;
  }
  #session-clock {
    right: 12px;
  }
}
@media (max-width: 380px) {
  .room-switch img {
    display: none;
  }
  .top-tools #share {
    display: none;
  }
  .float-top {
    left: 7px;
    right: 7px;
  }
}
.world-label.member {
  pointer-events: auto;
  cursor: pointer;
  border: 0;
}
.world-label.member::before {
  content: "";
  position: absolute;
  inset: -5px -4px;
}
.world-label.member:hover,
.world-label.member:focus-visible {
  background: #365540;
  color: #fff;
  outline: 2px solid #fff8e6;
}
dialog.profile-editor {
  width: min(445px, calc(100vw - 24px));
}
.profile-editor .modal-head {
  margin-bottom: 12px;
}
.avatar-field {
  margin: 0;
  padding: 0;
  border: 0;
  min-width: 0;
}
.avatar-field legend {
  font-size: 0.94rem;
  font-weight: 650;
  margin-bottom: 0.45rem;
}
.avatar-options {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
dialog .avatar-option {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto;
  cursor: pointer;
  overflow: hidden;
  border: 2px solid #dadacd;
  border-radius: 13px;
  background: #f3f0e6;
  text-align: center;
  margin: 0;
  gap: 0;
}
.avatar-option img {
  width: 100%;
  height: clamp(74px, 13vh, 120px);
  object-fit: cover;
  object-position: 50% 29%;
}
.avatar-option > span:not(.avatar-mark) {
  padding: 0.3rem;
  font-size: 0.94rem;
  font-weight: 650;
}
dialog .avatar-option input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  padding: 0;
  margin: 0;
  clip-path: inset(50%);
}
.avatar-option:has(input:checked) {
  border-color: #365540;
  background: #e4eddf;
}
.avatar-option:has(input:focus-visible) {
  outline: 3px solid #366a8a;
  outline-offset: 2px;
}
.avatar-mark {
  display: none;
  position: absolute;
  top: 6px;
  right: 6px;
  border-radius: 50%;
  width: 1.4rem;
  height: 1.4rem;
  line-height: 1.4rem;
  background: #365540;
  color: white;
}
.avatar-option:has(input:checked) .avatar-mark {
  display: block;
}
.profile-editor textarea {
  min-height: 4.5rem;
}
.bio-foot {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  margin-top: -0.45rem;
  color: #596453;
  font-size: 0.81rem;
}
.bio-foot > :last-child {
  flex: none;
  font-variant-numeric: tabular-nums;
}
.profile-editor .form-error:empty {
  display: none;
}
.profile-editor form > .primary {
  min-height: 42px;
}
.visitor-identity {
  display: flex;
  gap: 1rem;
  align-items: center;
}
.visitor-identity img {
  width: 4.6rem;
  height: 4.6rem;
  object-fit: cover;
  object-position: 50% 28%;
  border-radius: 50%;
}
.visitor-identity h3 {
  font-size: 1.35rem;
  margin: 0;
  overflow-wrap: anywhere;
}
.visitor-card h4 {
  margin: 1.25rem 0 0.5rem;
  font-size: 0.9rem;
  color: #53624e;
}
dialog .visitor-bio {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  color: #30332d;
  font-size: 1rem;
}
.people-list {
  display: grid;
  gap: 0.45rem;
}
.people-list button {
  overflow-wrap: anywhere;
  justify-content: flex-start;
}

.passage-action {
  background: #ffe670;
  color: #302b19;
}
.passage-action::after {
  border-top-color: #ffe670;
}
#result-actions {
  /* Keep the action row centered under the player's feet, including near an edge. */
  --pin-on-card: clamp(calc(100% - 100vw + var(--pin-x) + 6px), 50%, calc(var(--pin-x) - 6px));
  position: absolute;
  z-index: 2;
  visibility: hidden;
  transform: translate(calc(0px - var(--pin-on-card)), 6px);
  display: flex;
  gap: 3px;
  width: max-content;
  margin: 0;
  padding: 3px;
  border: 1px solid #8a806b;
  border-radius: 13px;
  background: #fff9e9;
  box-shadow: 0 3px 10px #30281c38;
}
.wish-action {
  --pin-on-label: clamp(calc(100% - 100vw + var(--pin-x) + 5px), 50%, calc(var(--pin-x) - 5px));
  transform: translate(calc(0px - var(--pin-on-label)), var(--wish-offset, 8px));
  min-height: 36px;
}
.wish-action::after {
  left: calc(var(--pin-on-label) - 4px);
  top: auto;
  bottom: 100%;
  border-color: transparent transparent #342f27e8;
}
.wish-book .wish-actions, .wish-book .wish-meta, .wish-byline {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.wish-book .wish-meta, .wish-byline time { font-size: 0.8125rem; color: #586454; }
.wish-book .wish-meta { justify-content: space-between; }
.wish-book h3 { margin: 20px 0 10px; font-size: 1rem; }
.wish-list { display: grid; gap: 9px; }
.wish-card {
  border: 1px solid #d4dacb;
  background: #fffdf7;
  border-radius: 12px;
  padding: 13px 15px;
}
.wish-byline { column-gap: 9px; }
.wish-byline strong { overflow-wrap: anywhere; font-size: 0.875rem; }
.wish-byline time { margin-left: auto; }
.wish-book .wish-card p { margin: 9px 0 0; font-size: 1rem; color: #323d32; white-space: pre-wrap; overflow-wrap: anywhere; }
.wish-lock-mark {
  position: relative;
  height: 12px;
  width: 16px;
  margin-top: 5px;
  border-radius: 4px;
  background: #547d6e;
}
.wish-lock-mark::before {
  content: "";
  position: absolute;
  border: 2px solid #75796e;
  border-bottom: 0;
  width: 8px;
  height: 6px;
  top: -6px;
  left: 2px;
  border-radius: 6px 6px 0 0;
  box-sizing: content-box;
}
.wish-book .wish-error { color: #883e37; }
.wish-book .wish-error:empty, .wish-book .wish-status:empty { display: none; }
.wish-book > .wish-card { margin-bottom: 10px; }
#result-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 44px;
  padding: 0 10px;
  border-radius: 9px;
  color: #40382b;
  background: #eee6d5;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  white-space: nowrap;
}
#result-actions #receive-mail {
  color: #fffaf0;
  background: #325e50;
}
#result-actions svg {
  width: 16px;
  height: 16px;
}
.no-webgl #result-actions {
  position: static;
  visibility: visible;
  transform: none;
  margin: 8px auto 0;
}
.mail-preview {
  width: 100%;
  height: auto;
  display: block;
}
.throw-kit { display: grid; align-content: center; padding: 2px 7px; color: #344c43; border-radius: 8px; background: #f4eddf; }
.throw-kit span { font-size: 0.73rem; line-height: 1.1; }
.throw-kit select { color: inherit; background: transparent; border: 0; font-family: inherit; font-size: 0.88rem; font-weight: 700; cursor: pointer; }
#canvas canvas.can-aim { cursor: crosshair; }
#canvas .interviewer { pointer-events: none; }
#canvas .interviewer:focus-visible { outline: 3px solid #ffd86e; }
.world-label.boss-action { background: #36574f; color: #fff8e8; border: 1px solid #c7b88c; border-radius: 10px; padding: 7px 12px; font-weight: 700; pointer-events: auto; }
.world-label.boss-reply { max-width: min(260px, 86vw); white-space: normal; width: max-content; text-align: center; color: #3a3528; background: #fff3cb; z-index: 4; transform: translate(calc(0px - clamp(calc(100% - 100vw + var(--pin-x) + 7px), 50%, calc(var(--pin-x) - 7px))), -100%); }

#break-panel:not([hidden]) {
  position: absolute;
  z-index: 5;
  left: 18px;
  bottom: calc(var(--bottom-inset) + var(--side-controls-lift) + 55px);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  width: min(290px, calc(100% - 36px));
  max-height: 48%;
  overflow: auto;
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid #d7d8c7;
  border-radius: 15px;
  color: #25483f;
  background: #fffdf5f5;
  box-shadow: 0 5px 20px #24372b25;
  font-size: 0.95rem;
}
#break-panel strong, #break-panel label, #break-panel span, #break-panel input { grid-column: 1 / -1; }
#break-panel output, #break-panel time { grid-column: 1 / -1; font-variant-numeric: tabular-nums; }
#break-panel button { min-height: 40px; padding: 7px 10px; border-radius: 8px; color: white; background: #355e50; }
#break-panel button:disabled { opacity: 0.58; }
#break-panel button:last-child { color: #355448; background: #e8ecdf; }
#break-panel label { display: grid; gap: 5px; }
#break-panel select { width: 100%; padding: 6px; font: inherit; }
#break-panel input { width: 100%; accent-color: #416d5c; }
@media (max-width: 600px) { #break-panel:not([hidden]) { left: 10px; } }
