/* The room stays open; readable left drawers hold the secondary controls. */
.salon-game.has-game-hud,
body.world-mode:has(.salon-game.has-game-hud) > .ls-ui-popover,
body.world-mode:has(.salon-game.has-game-hud) .salon-analytics-preferences {
  --hud-clear: transparent;
  --hud-text: #f6f0e3;
  --hud-gold: #ead19a;
  --hud-muted: #d2c8b5;
  --hud-error: #ffd2b9;
  --hud-shadow: #000000e0;
  --hud-drawer-bg: var(--hud-clear);
  --hud-menu-card: #1b1a17ad;
  --hud-menu-hover: #383126b8;
  --hud-popover-bg: #1b1a17f2;
  --hud-mood-options-height: min(264px, 40dvh);
  --hud-menu-shadow: #0000005c;
  --hud-menu-ink: #211c12;
  --hud-gutter: clamp(24px, 3vw, 44px);
  --hud-header-top: max(18px, env(safe-area-inset-top));
  --hud-rail-width: clamp(304px, 25vw, 336px);
  --hud-drawer-width: clamp(360px, 30vw, 400px);
  --hud-drawer-edge: max(16px, env(safe-area-inset-left));
  --hud-drawer-bottom: max(24px, env(safe-area-inset-bottom));
  --hud-rail-top: 88px;
  --hud-dock-height: 64px;
  --hud-dock-bottom: max(12px, env(safe-area-inset-bottom));
  --hud-rail-bottom: calc(var(--hud-dock-height) + var(--hud-dock-bottom) + 24px);
  color: var(--hud-text);
  color-scheme: dark;
  text-shadow: 0 1px 2px var(--hud-shadow), 0 2px 10px var(--hud-shadow);
}

.salon-game.has-game-hud :is(button, input, select, textarea, summary, dialog, fieldset,
  .game-header, .game-views, .game-hud-dock, .game-negotiation, .game-moods,
  .game-mood-control, .game-amount-field, .game-session-meta, .game-current,
  .game-questions, .game-budget-details, .game-inventory, .game-entry-crest,
  .game-announcement, .game-captions, .game-person-tip, .game-audio-details,
  .game-history li, .game-avatar-provider, .game-import, .sound-emblem,
  .battle-carousel, .battle-table-popover, .battle-inspector,
  .battle-piece-pagination, .battle-chain-fit, .battle-chain-lengths li,
  .battle-control-status, .movement-studio, .movement-actors, .movement-personality,
  .movement-price-note, .movement-requests, .movement-request, .sound-orbit,
  .sound-now-playing, .sound-voices, .sound-import, .sound-status, .ls-ui-popover,
  .ls-ui-option, [data-game-tools-panel]) {
  background: var(--hud-clear) !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
}
.salon-game.has-game-hud :is(button, a, input, select, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--hud-gold) !important;
  outline-offset: 4px !important;
}
.salon-game.has-game-hud :is(button, input, select, summary):not(:focus-visible) { outline: none; }
.salon-game.has-game-hud :is(button, a, summary) { text-shadow: inherit; }
.salon-game.has-game-hud button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.salon-game.has-game-hud :is(button, summary) { min-height: 44px; font-size: 18px; }
.salon-game.has-game-hud :is(button, a, summary):hover,
.salon-game.has-game-hud :is(button[aria-pressed="true"], button[aria-expanded="true"]) { color: var(--hud-gold); }
.salon-game.has-game-hud :is(input, select) { color: var(--hud-text); font-size: 18px; }
.salon-game.has-game-hud input::placeholder { color: var(--hud-muted); }
.salon-game.has-game-hud :is(.game-primary, .game-accept, .game-text-button, .game-custom-entry) {
  color: var(--hud-gold) !important;
  font-size: 18px !important;
  min-height: 44px;
}
.salon-game.has-game-hud :is(.game-custom-entry, .game-audio-prompt) { clip-path: none; }
.salon-game.has-game-hud :is(.game-intro::before, .game-custom-entry::before, .game-custom-entry::after) { display: none; }
.salon-game.has-game-hud .game-custom-entry { padding: 8px 0; gap: 14px; text-shadow: inherit; }
.salon-game.has-game-hud .game-custom-entry:focus-visible { filter: none; }
.salon-game.has-game-hud .game-entry-crest { width: 32px; height: 36px; padding: 0; }
.salon-game.has-game-hud :is(.game-location, .game-audience-label, .game-move-hint, .game-battles-mount),
.salon-game.has-game-hud .game-engine-status.is-ready { display: none !important; }
.salon-game.has-game-hud .game-engine-status { top: var(--hud-rail-top); right: var(--hud-gutter); font-size: 14px; }

/* Three room actions; the separate privacy control has its own reserved slot. */
.salon-game.has-game-hud .game-header {
  top: var(--hud-header-top);
  left: var(--hud-gutter);
  right: calc(var(--hud-gutter) + 56px);
  z-index: 30;
  gap: 16px;
  padding: 0;
  min-height: 44px;
  pointer-events: none;
}
.salon-game.has-game-hud .game-header > * { pointer-events: auto; }
.salon-game.has-game-hud .game-brand { gap: 9px; color: var(--hud-gold) !important; }
.salon-game.has-game-hud .game-brand img { width: 25px; height: 31px; }
.salon-game.has-game-hud .game-brand > span { font-size: 19px; letter-spacing: .15em; }
.salon-game.has-game-hud .game-brand small { display: none; }
.salon-game.has-game-hud .game-header-actions { gap: 4px; margin-left: auto; }
.salon-game.has-game-hud .game-header-actions .game-icon { width: 44px; height: 44px; padding: 10px; }
.salon-game.has-game-hud .game-header-actions svg { width: 21px; height: 21px; filter: drop-shadow(0 1px 3px var(--hud-shadow)); }
body.world-mode:has(.salon-game.has-game-hud) .salon-analytics-preferences {
  position: fixed;
  top: max(18px, env(safe-area-inset-top));
  right: clamp(24px, 3vw, 44px);
  bottom: auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: var(--hud-clear);
  box-shadow: none;
  backdrop-filter: none;
}
body.world-mode:has(.salon-game.has-game-hud) .salon-analytics-preferences:focus-visible {
  outline: 2px solid var(--hud-gold);
  outline-offset: 4px;
}

/* Every secondary menu uses the same left drawer over the room. */
.salon-game.has-game-hud :is([data-game-tools-panel], .game-moods[data-game-people-panel], .game-dialog[open], .movement-studio, .battle-inspector.product-drawer) {
  position: absolute;
  top: var(--hud-rail-top);
  right: auto;
  bottom: var(--hud-drawer-bottom);
  left: var(--hud-drawer-edge);
  z-index: 35;
  display: grid;
  align-content: start;
  gap: 12px;
  width: var(--hud-drawer-width) !important;
  max-width: calc(100% - 2 * var(--hud-drawer-edge)) !important;
  max-height: calc(100dvh - var(--hud-rail-top) - var(--hud-drawer-bottom)) !important;
  margin: 0;
  padding: 24px !important;
  border-radius: 18px;
  background: var(--hud-drawer-bg) !important;
  box-shadow: none !important;
  text-shadow: 0 1px 3px var(--hud-shadow);
  overflow: auto;
  overscroll-behavior: contain;
  transform: none;
  scrollbar-width: thin;
}
.salon-game.has-game-hud .game-dialog[open] { position: fixed; display: block; height: auto; }
.salon-game.has-game-hud .game-moods[data-game-people-panel] { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 16px; }
.salon-game.has-game-hud .game-moods[data-game-people-panel] > * { flex: 0 0 auto; }
.salon-game.has-game-hud .game-category-nav { display: block; margin: 12px 0; }
.salon-game.has-game-hud .game-category-nav button { min-height: 52px; padding: 8px 0; justify-content: flex-start; }
.salon-game.has-game-hud [data-game-tools-panel] [data-game-menu-back] { display: none; margin-bottom: 10px; color: var(--hud-gold); }
.salon-game.has-game-hud:is([data-hud-category="table"], :has([data-game-tools-panel][data-hud-category="table"])) [data-game-tools-panel] [data-game-menu-back]:not([hidden]) { display: flex; }
.salon-game.has-game-hud:is([data-hud-category="table"], :has([data-game-tools-panel][data-hud-category="table"])) [data-game-tools-panel] :is(.game-tools-primary, .game-site-nav, .game-corner-controls, .game-category-nav) { display: none; }
.salon-game.has-game-hud [data-game-tools-panel] :is(button, a, summary) {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  min-height: 44px;
  width: 100%;
  margin: 0;
  padding: 8px 0;
  font-size: 18px !important;
  text-align: left;
}
.salon-game.has-game-hud [data-game-tools-panel] :is(.game-site-nav, .game-corner-controls) {
  position: static;
  inset: auto;
  display: grid;
  justify-content: stretch;
  gap: 2px;
  width: 100%;
  margin: 0;
  padding: 0;
}
.salon-game.has-game-hud [data-game-tools-panel] .game-site-nav a::after { display: none; }
.salon-game.has-game-hud [data-game-tools-panel] .game-menu-resume { min-height: 56px; padding: 12px 16px; margin-bottom: 16px; border-radius: 12px; background: var(--hud-gold) !important; color: var(--hud-menu-ink) !important; font-weight: 600; text-shadow: none; }
.salon-game.has-game-hud .game-menu-group { margin: 8px 0; border: 0; border-radius: 13px; overflow: hidden; background: var(--hud-menu-card) !important; box-shadow: none; }
.salon-game.has-game-hud [data-game-tools-panel] .game-menu-group > summary { gap: 12px; min-height: 54px; padding: 12px 16px; color: var(--hud-text); font-size: 20px !important; font-weight: 600; list-style: none; }
.salon-game.has-game-hud .game-menu-group > summary::-webkit-details-marker { display: none; }
.salon-game.has-game-hud .game-menu-group > summary::before { content: none; display: none; }
.salon-game.has-game-hud .game-menu-group > summary::after { content: "⌄"; margin-left: auto; color: var(--hud-gold); font-size: 22px; }
.salon-game.has-game-hud .game-menu-group[open] > summary::after { transform: rotate(180deg); }
.salon-game.has-game-hud .game-menu-group > summary svg { width: 24px; height: 24px; color: var(--hud-gold); }
.salon-game.has-game-hud [data-game-tools-panel] .game-menu-group > summary:hover { background: var(--hud-menu-hover) !important; }
.salon-game.has-game-hud .game-menu-group-content { padding: 0 16px 12px; }
.salon-game.has-game-hud [data-game-tools-panel] .game-menu-group-content :is(button, a) { min-height: 48px; padding: 8px 0; font-size: 18px !important; color: var(--hud-text); }
.salon-game.has-game-hud .game-menu-group-content svg { color: var(--hud-gold); }
.salon-game.has-game-hud [data-game-tools-panel] .game-menu-group-content :is(button, a):hover { color: var(--hud-gold); }
.salon-game.has-game-hud :is([data-game-tools-panel], .game-moods[data-game-people-panel], .game-dialog[open], .movement-studio) :is(select, textarea, .ls-ui-select-button) { border-radius: 10px; padding: 10px 12px; background: var(--hud-menu-card) !important; }
.salon-game.has-game-hud .game-touch-move { display: none !important; }
.salon-game.has-game-hud [data-game-tools-panel] .game-touch-move {
  position: static;
  display: grid !important;
  grid-template-columns: repeat(3, 44px);
  gap: 4px;
  width: max-content;
}
.salon-game.has-game-hud .game-pane-title { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.salon-game.has-game-hud .game-pane-title h2 { margin: 0; font: 400 28px/1.2 var(--brand-serif, Georgia, serif); }
.salon-game.has-game-hud .game-pane-title button { flex: 0 0 44px; width: 44px; height: 44px; padding: 8px; }
.salon-game.has-game-hud .game-mood-control { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto; align-content: start; gap: 8px; min-width: 0; padding: 12px; border-radius: 12px; background: var(--hud-menu-card) !important; }
.salon-game.has-game-hud .game-person-pick {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 26px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0;
  text-align: left;
}
.salon-game.has-game-hud .game-mood-control > .game-person-pick { grid-column: 1; grid-row: 1; }
.salon-game.has-game-hud .game-mood-control > label { display: block; grid-column: 1; grid-row: 2; width: 100%; min-width: 0; }
.salon-game.has-game-hud .game-mood-control .game-mood-portrait { display: block; width: 32px; height: 40px; grid-column: 1; grid-row: 1; }
.salon-game.has-game-hud .game-mood-name { font-size: 18px; }
.salon-game.has-game-hud .game-mood-control .game-mood-icon { grid-column: 3; grid-row: 1; }
.salon-game.has-game-hud .game-mood-control :is([data-game-mood], .ls-ui-control) { grid-column: auto; grid-row: auto; max-width: none; width: 100%; }
.salon-game.has-game-hud .game-mood-control [data-game-mood] { font-size: 18px; }
.salon-game.has-game-hud .game-mood-control .ls-ui-select-button { min-height: 44px; padding: 8px 0; font-size: 18px; color: var(--hud-gold); }
.salon-game.has-game-hud .game-moods .game-mood-control .ls-ui-select-button { background: var(--hud-clear) !important; }
.salon-game.has-game-hud .game-mood-control .ls-ui-select-button:not(:focus-visible) { outline: none !important; }
.salon-game.has-game-hud .game-mood-note { position: static; white-space: normal; text-align: left; font-size: 14px; }
.salon-game.has-game-hud.is-hud-secondary :is(.game-negotiation, .game-return, .game-intro, .game-dock-left) { visibility: hidden; pointer-events: none; }

/* The conversation flows from its heading to the offer; only this rail scrolls. */
.salon-game.has-game-hud .game-negotiation {
  top: var(--hud-rail-top);
  right: var(--hud-gutter);
  bottom: var(--hud-rail-bottom);
  width: var(--hud-rail-width);
  max-height: none;
  padding: 2px 5px 8px;
  border-radius: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--hud-muted) var(--hud-clear);
  overscroll-behavior: contain;
  scroll-padding: 12px;
}
.salon-game.has-game-hud .game-panel-heading { align-items: flex-start; margin-bottom: 8px; }
.salon-game.has-game-hud .game-panel-heading h2 { font-size: 32px; margin: 4px 0 0; color: var(--hud-text); }
.salon-game.has-game-hud .game-panel-heading .game-overline { font-size: 14px; line-height: 1.4; }
.salon-game.has-game-hud .game-panel-heading .game-icon { width: 44px; height: 44px; margin: -2px -2px 0 0; }
.salon-game.has-game-hud .game-session-meta { padding-bottom: 7px; font-size: 14px; color: var(--hud-muted); }
.salon-game.has-game-hud .game-session-meta > span:first-child { display: none; }
.salon-game.has-game-hud .game-dealer { margin-top: 8px; gap: 9px; }
.salon-game.has-game-hud .game-dealer-portrait { width: 30px; height: 36px; }
.salon-game.has-game-hud .game-dealer strong { font-size: 18px; }
.salon-game.has-game-hud .game-dealer > div > span { font-size: 14px; color: var(--hud-muted); }
.salon-game.has-game-hud .game-speech { min-height: 0; margin: 10px 0 12px; color: var(--hud-text); font-size: 18px; line-height: 1.5; }
.salon-game.has-game-hud .game-current { margin-bottom: 8px; padding-bottom: 0; }
.salon-game.has-game-hud .game-current > span { color: var(--hud-muted); font-size: 14px; }
.salon-game.has-game-hud .game-current > span:first-child { font-size: 16px; margin-bottom: 3px; }
.salon-game.has-game-hud .game-current strong { font-size: 42px; color: var(--hud-gold); }
.salon-game.has-game-hud .game-budget-details { margin: 0 0 8px; }
.salon-game.has-game-hud :is(.game-budget-details, .game-questions) > summary { display: flex; align-items: center; justify-content: space-between; min-height: 44px; list-style: none; font-size: 18px; color: var(--hud-muted); cursor: pointer; }
.salon-game.has-game-hud :is(.game-budget-details, .game-questions) > summary::-webkit-details-marker { display: none; }
.salon-game.has-game-hud .game-budget { margin: 0 0 8px; font-size: 16px; color: var(--hud-muted); }
.salon-game.has-game-hud .game-budget strong { font-size: 18px; color: var(--hud-text); }
.salon-game.has-game-hud .game-offer-form label { font-size: 16px; margin-bottom: 2px; }
.salon-game.has-game-hud .game-offer-form label span { font-size: 14px; }
.salon-game.has-game-hud .game-offer-entry { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; }
.salon-game.has-game-hud .game-offer-entry .game-amount-field { min-width: 0; gap: 6px; }
.salon-game.has-game-hud .game-offer-entry input { min-width: 0; width: 100%; }
.salon-game.has-game-hud .game-offer-send { display: inline-flex; align-items: center; gap: 8px; width: auto; min-height: 52px; padding: 8px 0; font-size: 18px !important; }
.salon-game.has-game-hud .game-action-icon { width: 22px; height: 22px; flex: 0 0 22px; }
.salon-game.has-game-hud .game-amount-field { min-height: 48px; padding: 0; gap: 8px; }
.salon-game.has-game-hud .game-amount-field input { min-height: 48px; padding: 8px 0; font-size: 36px !important; color: var(--hud-text); text-shadow: inherit; }
.salon-game.has-game-hud .game-amount-field .game-icon { width: 44px; height: 44px; margin: 0; }
.salon-game.has-game-hud .game-amount-field > span { color: var(--hud-muted); }
.salon-game.has-game-hud .game-offer-form [role="alert"] { font-size: 16px; color: var(--hud-error); }
.salon-game.has-game-hud :is(.game-privacy, .game-disclosure) { font-size: 14px; line-height: 1.45; color: var(--hud-muted); }
.salon-game.has-game-hud .game-privacy { margin: 6px 0; }
.salon-game.has-game-hud .game-offer-shortcuts { margin: 4px 0; gap: 10px; }
.salon-game.has-game-hud .game-offer-shortcuts button { min-height: 44px; padding: 5px 0; font-size: 18px; color: var(--hud-muted); }
.salon-game.has-game-hud .game-offer-form > .game-primary { justify-content: space-between; width: 100%; min-height: 48px; padding: 8px 0; font-weight: 600; }
.salon-game.has-game-hud .game-accept { min-height: 44px; margin-top: 4px; padding: 8px 0; }
.salon-game.has-game-hud .game-questions { margin-top: 6px; padding-top: 0; }
.salon-game.has-game-hud .game-questions > div { margin-top: 0; gap: 4px 12px; }
.salon-game.has-game-hud .game-questions button { min-height: 44px; padding: 6px 0; font-size: 18px; text-align: left; }
.salon-game.has-game-hud .game-panel-footer { margin-top: 4px; gap: 12px; }
.salon-game.has-game-hud .game-panel-footer .game-text-button { min-height: 44px; font-size: 18px !important; }
.salon-game.has-game-hud .game-return { top: var(--hud-rail-top); right: var(--hud-gutter); left: auto; bottom: auto; max-width: var(--hud-rail-width); min-height: 44px; padding: 8px 0; }

/* Avatar, reactions and views occupy one footer, rather than floating corners. */
.salon-game.has-game-hud .game-hud-dock {
  position: absolute;
  left: var(--hud-gutter);
  right: var(--hud-gutter);
  bottom: var(--hud-dock-bottom);
  z-index: 24;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: var(--hud-dock-height);
  padding: 0;
  pointer-events: none;
}
.salon-game.has-game-hud .game-hud-dock > * { pointer-events: auto; }
.salon-game.has-game-hud .game-dock-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.salon-game.has-game-hud .game-hud-dock :is(.game-avatar-tag, .game-inventory, .game-views) { position: static; inset: auto; width: auto; max-width: none; margin: 0; padding: 0; transform: none; }
.salon-game.has-game-hud .game-hud-dock .game-avatar-tag:not([hidden]) { display: flex !important; flex: 0 1 auto; align-items: center; min-width: 0; gap: 8px; }
.salon-game.has-game-hud .game-avatar-tag > img { display: none; }
.salon-game.has-game-hud .game-avatar-tag strong { display: block; max-width: 96px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 18px; }
.salon-game.has-game-hud .game-avatar-tag > button { flex: 0 0 44px; width: 44px; height: 44px; margin: 0; padding: 0; }
.salon-game.has-game-hud .game-avatar-tag > .game-player-pick { display: inline-flex; flex: 0 1 auto; justify-content: flex-start; gap: 8px; width: auto; min-width: 0; padding: 0; }
.salon-game.has-game-hud .game-player-pick > img { display: block; flex: 0 0 30px; width: 30px; height: 36px; }
.salon-game.has-game-hud .game-player-pick > div { display: block; min-width: 0; }
.salon-game.has-game-hud .game-player-pick strong { max-width: 96px; font-size: 18px; }
.salon-game.has-game-hud .game-inventory { display: flex; align-items: center; gap: 4px; min-width: 0; animation: none; }
.salon-game.has-game-hud .game-inventory-heading { order: 2; padding: 0; margin: 0; }
.salon-game.has-game-hud .game-inventory-heading button { width: 44px; height: 44px; margin: 0; }
.salon-game.has-game-hud .game-item-row { margin: 0; gap: 5px; }
.salon-game.has-game-hud .game-item { flex: 0 0 48px; width: 48px; height: 48px; min-height: 48px; padding: 3px; border-radius: 0; aspect-ratio: auto; }
.salon-game.has-game-hud .game-item svg.throwable-art { width: 40px; height: 40px; }
.salon-game.has-game-hud .game-item > b { top: 0; right: 0; font-size: 14px; line-height: 1.2; color: var(--hud-text); }
.salon-game.has-game-hud :is(.game-avatar-tag small, .game-inventory-heading > span, .game-inventory > small, .game-item > span),
.salon-game.has-game-hud .game-views button:not([aria-pressed="true"]) > span { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.salon-game.has-game-hud .game-views { display: flex; align-items: center; gap: 4px; justify-self: end; }
.salon-game.has-game-hud .game-views button { min-width: 44px; min-height: 44px; padding: 8px 10px; gap: 8px; color: var(--hud-muted); font-size: 18px; }
.salon-game.has-game-hud .game-views button[aria-pressed="true"] { color: var(--hud-gold); }
.salon-game.has-game-hud .game-views button > span { white-space: nowrap; font-size: 18px; }
.salon-game.has-game-hud .game-views button svg { width: 20px; height: 20px; }
.salon-game.has-game-hud :is(.game-announcement, .game-captions) { bottom: var(--hud-rail-bottom); font-size: 18px; color: var(--hud-text); }
.salon-game.has-game-hud .game-intro { left: var(--hud-gutter); bottom: calc(var(--hud-rail-bottom) + 22px); max-width: min(520px, calc(100% - 2 * var(--hud-gutter))); }
.salon-game.has-game-hud .game-intro h1 { font-size: clamp(48px, 5.5vw, 82px); }
.salon-game.has-game-hud .game-person-tip { position: absolute; left: var(--person-left, 0); top: var(--person-top, 0); z-index: 26; max-width: 260px; margin: 0; padding: 0; pointer-events: none; font-size: 18px; line-height: 1.45; color: var(--hud-text); }
.salon-game.has-game-hud .game-person-tip :is(strong, span, small) { display: block; }
.salon-game.has-game-hud .game-person-tip strong { font-weight: 600; }
.salon-game.has-game-hud .game-person-tip :is(span, small) { color: var(--hud-muted); font-size: 16px; }
.salon-game.has-game-hud .game-dialog { max-height: calc(100dvh - 48px); }
.salon-game.has-game-hud .game-dialog::backdrop { background: var(--hud-clear); backdrop-filter: none; }
.salon-game.has-game-hud .game-dialog :is(p, label, small, dt, dd, li) {
  font-size: 16px;
  line-height: 1.5;
}
.salon-game.has-game-hud .game-dialog :is(button, input, select) {
  min-height: 44px;
  font-size: 18px !important;
}
.salon-game.has-game-hud .game-dialog :is(.game-overline, .game-privacy) { font-size: 14px; }
.salon-game.has-game-hud .game-face-dialog canvas { display: block; width: auto; max-width: 100%; max-height: 32dvh; margin: 0 auto 16px; object-fit: contain; }
.salon-game.has-game-hud .game-face-dialog canvas[hidden] { display: none !important; }
.salon-game.has-game-hud .game-face-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.salon-game.has-game-hud .game-face-dialog .game-field { gap: 16px; font-size: 18px; }
.salon-game.has-game-hud .sound-studio { --sound-gold: var(--hud-gold); width: 100%; max-width: none; margin: 0; color: var(--hud-text); }
.salon-game.has-game-hud .sound-studio-heading { gap: 12px; }
.salon-game.has-game-hud .sound-orbit { width: 38px; height: 44px; flex: 0 0 38px; }
.salon-game.has-game-hud .sound-studio h2 { font-size: 32px; }
.salon-game.has-game-hud .sound-enable { justify-content: space-between; min-height: 48px; padding: 8px 0; color: var(--hud-gold) !important; }
.salon-game.has-game-hud .sound-emotion-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.salon-game.has-game-hud .sound-emotion-grid button { align-items: flex-start; min-height: 78px; padding: 12px; border-radius: 12px; background: var(--hud-menu-card) !important; }
.salon-game.has-game-hud .sound-emotion-grid button:is(:hover, [aria-pressed="true"]) { background: var(--hud-menu-hover) !important; color: var(--hud-gold); }
.salon-game.has-game-hud .sound-emotion-grid button > span { font-size: 18px; }
.salon-game.has-game-hud .sound-studio :is(legend, summary) { font-size: 18px; }
.salon-game.has-game-hud .sound-studio :is(label, .sound-intro) { font-size: 16px; }
.salon-game.has-game-hud .sound-studio :is(small, .sound-eyebrow, .sound-note, .sound-status, .sound-credits) { font-size: 14px !important; color: var(--hud-muted); }
.salon-game.has-game-hud .sound-status { padding-left: 0; }
.salon-game.has-game-hud .sound-now-playing { padding: 12px 0; }
.salon-game.has-game-hud .sound-levels { gap: 16px; }
.salon-game.has-game-hud .sound-file input::file-selector-button { min-height: 44px; border: 0; padding: 8px 0; background: var(--hud-clear); color: var(--hud-gold); font: inherit; }
.salon-game.has-game-hud .movement-studio { display: block; }
.salon-game.has-game-hud .movement-studio :is(button, input, select, summary) { min-height: 44px; font-size: 18px !important; }
.salon-game.has-game-hud .movement-studio :is(label, .movement-range) { font-size: 16px; }
.salon-game.has-game-hud .movement-studio :is(small, .movement-presence, .movement-local-note, output) { font-size: 14px; }
.salon-game.has-game-hud .movement-heading .game-icon { width: 44px; height: 44px; margin: 0; }
.salon-game.has-game-hud .movement-card { justify-content: flex-start; min-height: 56px; padding: 12px; border-radius: 12px; background: var(--hud-menu-card) !important; }
.salon-game.has-game-hud .movement-card > span { font-size: 18px; }
.salon-game.has-game-hud .movement-card > small { display: none; }
.salon-game.has-game-hud .movement-signature { padding: 8px 0; }
.salon-game.has-game-hud .movement-signature strong { font-size: 18px; }
.salon-game.has-game-hud .movement-brief-dialog textarea { font-size: 18px; }
.salon-game.has-game-hud .ls-ui-popover { border-radius: 12px; background: var(--hud-popover-bg) !important; box-shadow: 0 12px 40px var(--hud-menu-shadow) !important; text-shadow: none; }
.salon-game.has-game-hud .ls-ui-popover .ls-ui-option { outline: none; font-size: 18px; color: var(--hud-text); }
.salon-game.has-game-hud .ls-ui-popover .ls-ui-option:is(.is-active, :hover, [aria-selected="true"]) { color: var(--hud-gold); font-weight: 600; }
.salon-game.has-game-hud .game-mood-control .ls-ui-popover[data-placement="flow"] {
  position: relative;
  inset: auto;
  z-index: auto;
  width: 100%;
  max-width: 100%;
  max-height: var(--hud-mood-options-height);
  margin-top: 4px;
  padding: 0;
  border-radius: 0;
  background: var(--hud-clear) !important;
  box-shadow: none !important;
  text-shadow: inherit;
  overflow-y: auto;
}
.salon-game.has-game-hud .game-mood-control .ls-ui-popover[data-placement="flow"] .ls-ui-option { min-height: 44px; padding: 10px 4px; background: var(--hud-clear) !important; }

.salon-game.has-game-hud.is-inspecting-piece .battle-controls { z-index: 36; }

/* Lazy battle CSS cannot put cards or table controls back over the room. */
.salon-game.has-game-hud .battle-controls .battle-table { display: none; }
.salon-game.has-game-hud [data-game-tools-panel] .battle-table { position: static; display: none; }
.salon-game.has-game-hud:is([data-hud-category="table"], :has([data-game-tools-panel][data-hud-category="table"])) [data-game-tools-panel] .battle-table { display: block; }
.salon-game.has-game-hud [data-game-tools-panel] .battle-table summary { min-height: 44px; padding: 8px 0; font-size: 18px; }
.salon-game.has-game-hud [data-game-tools-panel] .battle-table-popover { width: 100%; max-width: none; margin-top: 4px; padding: 0; }
.salon-game.has-game-hud [data-game-tools-panel] .battle-table-heading strong { font-size: 26px; }
.salon-game.has-game-hud [data-game-tools-panel] .battle-table-heading button { flex: 0 0 44px; width: 44px; padding: 8px; }
.salon-game.has-game-hud [data-game-tools-panel] .battle-table-fields { gap: 12px; }
.salon-game.has-game-hud [data-game-tools-panel] .battle-table-fields label { font-size: 16px; }
.salon-game.has-game-hud [data-game-tools-panel] .battle-table-fields :is(select, input) { min-height: 44px; padding: 6px 0; font-size: 18px; }
.salon-game.has-game-hud [data-game-tools-panel] .battle-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.salon-game.has-game-hud [data-game-tools-panel] .battle-swatches button { width: 44px; height: 44px; min-width: 44px; padding: 0; }
.salon-game.has-game-hud [data-game-tools-panel] .battle-swatches button::before { content: ""; display: block; width: 16px; height: 16px; margin: auto; border-radius: 50%; background: var(--swatch); }
.salon-game.has-game-hud [data-game-tools-panel] .battle-table-popover small { font-size: 14px; color: var(--hud-muted); }
.salon-game.has-game-hud .battle-controls > .battle-piece-rail { display: none; }
.salon-game.has-game-hud .battle-controls .product-drawer .battle-piece-rail {
  position: static;
  inset: auto;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: none;
  max-height: none;
  margin: 12px 0 16px;
  padding: 0;
  overflow: visible;
  transform: none;
}
.salon-game.has-game-hud .battle-controls .product-drawer .battle-piece-thumb { display: flex; flex: 1 1 0; flex-direction: column; justify-content: flex-start; gap: 8px; width: 0; min-width: 0; height: auto; padding: 8px; border-radius: 10px; background: var(--hud-menu-card) !important; }
.salon-game.has-game-hud .battle-controls .product-drawer .battle-piece-thumb:is(:hover, [aria-pressed="true"]) { background: var(--hud-menu-hover) !important; }
.salon-game.has-game-hud .battle-controls .product-drawer .battle-piece-thumb img { display: block; flex: 0 0 64px; width: 100%; height: 64px; object-fit: contain; opacity: 1; transform: none; }
.salon-game.has-game-hud .battle-controls .product-drawer .battle-piece-thumb > span:not(.battle-piece-placeholder) { position: static; inset: auto; width: 100%; padding: 0; background: var(--hud-clear); text-align: center; text-shadow: none; font-size: 16px; line-height: 1.3; white-space: normal; overflow-wrap: anywhere; }
.salon-game.has-game-hud .battle-controls .product-drawer .battle-piece-placeholder { display: grid; place-items: center; width: 100%; height: 64px; }
.salon-game.has-game-hud .battle-controls .product-drawer .battle-piece-thumb > small { display: none; }
.salon-game.has-game-hud .battle-controls .battle-inspector { top: var(--hud-rail-top); right: var(--hud-gutter); bottom: calc(var(--hud-rail-bottom) + 96px); width: var(--hud-rail-width); max-height: none; padding: 4px; transform: none; }
.salon-game.has-game-hud .battle-controls .battle-inspector.product-drawer { top: var(--hud-rail-top); right: auto; bottom: var(--hud-drawer-bottom); left: var(--hud-drawer-edge); z-index: 35; display: block; max-height: calc(100dvh - var(--hud-rail-top) - var(--hud-drawer-bottom)) !important; transform: none; pointer-events: auto; }
.salon-game.has-game-hud .product-drawer .battle-inspector-top { gap: 12px; }
.salon-game.has-game-hud .product-drawer .battle-inspector-top > span { font-size: 14px; color: var(--hud-muted); }
.salon-game.has-game-hud .product-drawer .battle-inspector-top button { flex: 0 0 44px; min-width: 44px; min-height: 44px; }
.salon-game.has-game-hud .product-drawer h2 { margin: 8px 0 16px; font-size: 32px; line-height: 1.15; }
.salon-game.has-game-hud .product-drawer .battle-piece-description { max-height: none; overflow: visible; font-size: 16px; line-height: 1.5; }
.salon-game.has-game-hud .product-drawer .battle-piece-price { font-size: 36px; color: var(--hud-gold); }
.salon-game.has-game-hud .product-drawer :is(.battle-piece-kicker, .battle-piece-model) { font-size: 14px; }
.salon-game.has-game-hud .product-drawer :is(button, a) { min-height: 44px; font-size: 18px; }
.salon-game.has-game-hud .product-drawer .battle-piece-actions { flex-wrap: wrap; gap: 8px 16px; }
.salon-game.has-game-hud .product-image { display: grid; gap: 10px; margin: 16px 0; padding: 0; border-radius: 12px; overflow: hidden; background: var(--hud-menu-card); }
.salon-game.has-game-hud .product-image picture { display: block; width: 100%; aspect-ratio: 4 / 3; }
.salon-game.has-game-hud .product-image img { display: block; width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: contain; }
.salon-game.has-game-hud .product-image picture > img { height: 100%; }
.salon-game.has-game-hud .product-image figcaption { padding: 0 12px 12px; font-size: 16px; line-height: 1.45; color: var(--hud-muted); }
.salon-game.has-game-hud .product-image:has(img[hidden]) { min-height: 160px; align-content: center; padding: 20px 8px 8px; }
.salon-game.has-game-hud .product-image:has(img[hidden])::before { content: "◇"; color: var(--hud-gold); font-size: 32px; text-align: center; }
.salon-game.has-game-hud .battle-controls .battle-control-status { top: var(--hud-rail-top); padding: 6px 0; font-size: 16px; }
.salon-game.has-game-hud .battle-controls :is(.battle-merchant-3d, .battle-merchant-link) { color: var(--hud-gold) !important; min-height: 44px; padding: 8px 0; background: var(--hud-clear); }

/* Portalled selects use the same readable menu surface. */
body.world-mode:has(.salon-game.has-game-hud) > .ls-ui-popover {
  padding: 6px;
  border: 0;
  border-radius: 12px;
  background: var(--hud-popover-bg);
  box-shadow: 0 12px 40px var(--hud-menu-shadow);
  text-shadow: none;
  backdrop-filter: none;
}
body.world-mode:has(.salon-game.has-game-hud) > .ls-ui-popover .ls-ui-option { min-height: 44px; padding: 8px; color: var(--hud-text); font-size: 18px; background: var(--hud-clear); outline: none; }
body.world-mode:has(.salon-game.has-game-hud) > .ls-ui-popover .ls-ui-option:is(.is-active, :hover, [aria-selected="true"]) { color: var(--hud-gold); font-weight: 600; background: var(--hud-clear); outline: none; }
body.world-mode:has(.salon-game.has-game-hud) > .ls-ui-popover :is(button, input, select) {
  min-height: 44px;
  border: 0;
  background: var(--hud-clear);
  box-shadow: none;
  color: var(--hud-text);
  font-size: 18px;
  text-shadow: inherit;
}
body.world-mode:has(.salon-game.has-game-hud) > .ls-ui-popover :is(button, input, select):focus-visible { outline: 2px solid var(--hud-gold); outline-offset: 3px; }
body.world-mode:has(.salon-game.has-game-hud) > .ls-ui-popover :is(button, input, select):not(:focus-visible) { outline: none; }
body.world-mode:has(.salon-game.has-game-hud) > .ls-ui-popover .ls-ui-palette-swatch::before { content: ""; display: block; width: 18px; height: 18px; margin: auto; border-radius: 50%; background: var(--swatch); }
body.world-mode:has(.salon-game.has-game-hud) > .ls-ui-popover :is(.ls-ui-field-label, .ls-ui-popup-hint) { color: var(--hud-muted); font-size: 16px; }

@media (max-width: 820px) {
  .salon-game.has-game-hud { --hud-gutter: 20px; }
  .salon-game.has-game-hud .game-negotiation {
    top: auto;
    bottom: var(--hud-rail-bottom);
    width: min(400px, calc(100% - 2 * var(--hud-gutter)));
    max-height: min(45dvh, calc(100dvh - var(--hud-rail-top) - var(--hud-rail-bottom)));
    padding: 2px 5px 6px;
  }
  .salon-game.has-game-hud .game-hud-dock { gap: 8px; }
  .salon-game.has-game-hud .game-dock-left { gap: 8px; }
  .salon-game.has-game-hud .game-item { flex-basis: 44px; width: 44px; height: 44px; min-height: 44px; }
  .salon-game.has-game-hud .game-item-row { gap: 2px; }
  .salon-game.has-game-hud .game-item svg.throwable-art { width: 38px; height: 38px; }
  .salon-game.has-game-hud .battle-controls .battle-inspector { top: auto; bottom: calc(var(--hud-rail-bottom) + 82px); max-height: 42dvh; width: min(360px, calc(100% - 2 * var(--hud-gutter))); }
  body.world-mode:has(.salon-game.has-game-hud) .salon-analytics-preferences { right: 20px; }
}
@media (max-width: 600px) {
  .salon-game.has-game-hud .game-amount-field input { font-size: 30px !important; }
  .salon-game.has-game-hud { --hud-gutter: 14px; --hud-header-top: max(12px, env(safe-area-inset-top)); --hud-rail-top: 76px; --hud-dock-height: 112px; --hud-drawer-width: calc(100vw - 2 * var(--hud-gutter)); }
  .salon-game.has-game-hud .game-header { gap: 8px; }
  .salon-game.has-game-hud .game-brand { gap: 6px; }
  .salon-game.has-game-hud .game-brand img { width: 21px; height: 27px; }
  .salon-game.has-game-hud .game-brand > span { font-size: 18px; letter-spacing: .11em; }
  .salon-game.has-game-hud .game-header-actions { gap: 0; }
  .salon-game.has-game-hud .game-header:has(.game-header-actions > button:nth-child(4)) .game-brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .salon-game.has-game-hud .game-hud-dock { grid-template-columns: minmax(0, 1fr); gap: 2px; align-content: end; }
  .salon-game.has-game-hud .game-dock-left { justify-content: center; gap: 12px; }
  .salon-game.has-game-hud .game-avatar-tag strong { max-width: 58px; }
  .salon-game.has-game-hud .game-views { justify-self: center; max-width: 100%; }
  .salon-game.has-game-hud .game-views button { padding: 8px; }
  .salon-game.has-game-hud .game-intro h1 { font-size: clamp(40px, 10.5vw, 56px); }
  .salon-game.has-game-hud .game-intro-actions { gap: 8px; }
  .salon-game.has-game-hud .game-negotiation .game-panel-heading h2 { font-size: 28px; }
  .salon-game.has-game-hud .game-current strong { font-size: 36px; }
  .salon-game.has-game-hud .game-return { top: auto; bottom: var(--hud-rail-bottom); right: var(--hud-gutter); left: var(--hud-gutter); max-width: none; }
  body.world-mode:has(.salon-game.has-game-hud) .salon-analytics-preferences { top: max(12px, env(safe-area-inset-top)); right: 14px; }
}
@media (max-width: 360px) {
  .salon-game.has-game-hud { --hud-gutter: 10px; --hud-dock-height: 156px; }
  .salon-game.has-game-hud .game-brand > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .salon-game.has-game-hud .game-avatar-tag strong { max-width: 42px; }
  .salon-game.has-game-hud .game-dock-left { flex-wrap: wrap; gap: 4px 12px; }
  body.world-mode:has(.salon-game.has-game-hud) .salon-analytics-preferences { right: 10px; }
}
@media (max-height: 500px) and (min-width: 601px) {
  .salon-game.has-game-hud { --hud-header-top: 10px; --hud-rail-top: 66px; --hud-dock-height: 48px; --hud-dock-bottom: max(6px, env(safe-area-inset-bottom)); }
  .salon-game.has-game-hud .game-intro h1 { font-size: 42px; margin: 8px 0 12px; }
  .salon-game.has-game-hud .game-intro { bottom: calc(var(--hud-rail-bottom) + 12px); }
  body.world-mode:has(.salon-game.has-game-hud) .salon-analytics-preferences { top: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  .salon-game.has-game-hud :is(.game-inventory, .game-negotiation, .game-mood-control) { animation: none; transition: none; }
}
@media (prefers-reduced-motion: no-preference) {
  .salon-game.has-game-hud :is([data-game-tools-panel]:not([hidden]), [data-game-people-panel]:not([hidden]), .game-dialog[open], .movement-studio:not([hidden])) { animation: salon-drawer-enter 180ms ease-out both; }
  @keyframes salon-drawer-enter { from { opacity: 0; transform: translateX(-10px); } to { opacity: 1; transform: none; } }
}
