/* The room carries the atmosphere. Only actions and reading surfaces need chrome. */
.salon-game {
  --game-panel: #121712eb;
  --game-panel-soft: #111710b8;
  --game-hairline: #dbc18b55;
  --game-muted: #d5ccba;
  --game-clear: transparent;
  --game-shadow: #00000040;
  --game-control-radius: 999px;
  --game-surface-radius: 24px;
  --game-ease: cubic-bezier(0.16, 1, 0.3, 1);
}
.salon-game .game-audience-label {
  display: none;
}
.salon-game .game-inventory,
.salon-game .battle-carousel {
  background: var(--game-clear);
  border: 0;
  box-shadow: none;
  backdrop-filter: none;
}
.salon-game .game-inventory {
  width: 280px;
  padding: 0;
}
.salon-game .game-inventory-heading {
  font-size: 12px;
  letter-spacing: 0.07em;
}
.salon-game .game-inventory-heading button {
  width: 44px;
  height: 44px;
  margin: -12px 0;
}
.salon-game .game-item-row {
  gap: 14px;
  margin: 16px 0 10px;
}
.salon-game .game-item {
  border: 0 !important;
  border-radius: 50%;
  aspect-ratio: 1;
  min-height: 74px;
  background: var(--game-panel-soft);
  padding: 10px;
}
.salon-game .game-item > span {
  font-size: 12px;
  color: var(--game-muted);
}
.salon-game .game-item > b {
  font-size: 14px;
  top: 1px;
  right: 3px;
}
.salon-game .game-inventory > small {
  font-size: 12px;
  text-align: left;
}
.salon-game .battle-carousel {
  border-top: 0 !important;
  padding-top: 10px;
}
.salon-game .battle-carousel-top {
  padding: 0 0 8px;
}
.salon-game .battle-carousel-top > span,
.salon-game .battle-carousel-main small,
.salon-game .battle-carousel-main time {
  font-size: 12px;
}
.salon-game .battle-carousel-top button {
  width: 44px;
  height: 44px;
}
.salon-game .battle-carousel-empty {
  padding: 10px 0;
}
.salon-game .battle-carousel-empty p {
  font-size: 14px;
  color: var(--game-muted);
}
.salon-game .battle-carousel-empty strong {
  font-size: 28px;
}
.salon-game .battle-carousel-actions button {
  min-height: 44px;
  font-size: 14px;
}
.salon-game .game-intro::before {
  background: linear-gradient(
    90deg,
    var(--game-panel) 0%,
    var(--game-panel-soft) 50%,
    var(--game-clear)
  );
  filter: none;
  inset: -24px -36px -24px -28px;
  border-radius: var(--game-surface-radius);
}
.salon-game .game-intro .game-overline,
.salon-game .game-location,
.salon-game .game-engine-status {
  font-size: 12px;
  letter-spacing: 0.1em;
}
.salon-game .game-brand small {
  font-size: 10px;
  letter-spacing: 0.16em;
}
.salon-game .game-site-nav {
  font-size: 14px;
}
.salon-game .game-text-button {
  font-size: 14px !important;
  min-height: 44px;
}
.salon-game .game-custom-entry {
  font-size: 14px !important;
}
.salon-game .game-controls {
  align-items: end;
}
.salon-game .game-views {
  border: 0;
  box-shadow: none;
  border-radius: var(--game-control-radius);
  background: var(--game-panel-soft);
  padding: 6px;
  gap: 4px;
}
.salon-game .game-views button {
  border: 0 !important;
  border-radius: var(--game-control-radius);
  min-height: 48px;
  padding: 10px 16px;
  font-size: 14px;
  background: var(--game-clear);
}
.salon-game .game-views button[aria-pressed="true"] {
  color: var(--game-gold);
  background: var(--game-panel);
}
.salon-game .game-icon,
.salon-game .game-corner-controls button {
  min-width: 44px;
  min-height: 44px;
}
.salon-game .game-negotiation {
  background: var(--game-panel);
  border: 0;
  border-radius: var(--game-surface-radius);
  box-shadow: 0 18px 60px var(--game-shadow);
  padding: 26px;
  top: 190px;
}
.salon-game .game-negotiation .game-overline,
.salon-game .game-session-meta,
.salon-game .game-budget,
.salon-game .game-dealer span,
.salon-game .game-offer-form label,
.salon-game .game-privacy,
.salon-game .game-disclosure {
  font-size: 12px;
}
.salon-game .game-speech {
  font-size: 16px;
  line-height: 1.6;
}
.salon-game .game-primary,
.salon-game .game-accept {
  background: var(--game-clear);
  color: var(--game-gold) !important;
  border: 0 !important;
  border-radius: var(--game-control-radius);
  min-height: 48px;
  font-size: 14px !important;
}
.salon-game .game-primary:hover,
.salon-game .game-accept:hover {
  background: var(--game-panel-soft);
}
.salon-game .game-amount-field,
.salon-game .game-offer-shortcuts button {
  border-radius: 12px;
}
.salon-game .game-offer-shortcuts button {
  min-height: 44px;
  font-size: 14px;
}
.salon-game .game-questions button {
  min-height: 44px;
  font-size: 14px;
}
.salon-game .game-panel-footer {
  gap: 14px;
  flex-wrap: wrap;
}
.salon-game .game-moods {
  position: absolute;
  z-index: 6;
  top: 107px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 24px;
  max-width: min(620px, calc(100% - 48px));
  pointer-events: auto;
}
.salon-game .game-mood-control {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) 26px;
  gap: 0 8px;
  align-items: center;
  min-width: 0;
  padding: 9px 12px;
  border-radius: 20px;
  background: var(--game-panel-soft);
  color: var(--game-ivory);
}
.salon-game .game-mood-portrait {
  grid-row: 1 / 4;
  width: 36px;
  height: 44px;
  object-fit: cover;
  object-position: 50% 10%;
  border-radius: 50%;
}
.salon-game .game-mood-name {
  grid-column: 2;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.salon-game .game-mood-icon {
  grid-column: 3;
  grid-row: 1 / 3;
  color: var(--game-gold);
}
.salon-game .game-mood-icon svg {
  width: 24px;
  height: 24px;
}
.salon-game [data-game-mood] {
  grid-column: 2;
  min-width: 0;
  width: 100%;
  max-width: 190px;
  min-height: 44px;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  background: var(--game-clear);
  color: var(--game-gold);
  font-size: 14px;
  cursor: pointer;
}
.salon-game [data-game-mood] option {
  background: var(--game-panel);
  color: var(--game-ivory);
}
.salon-game .game-mood-source {
  grid-column: 2 / 4;
  color: var(--game-muted);
  font-size: 12px;
  line-height: 1.4;
}
.salon-game.is-entrance-running .game-moods,
.salon-game.is-entrance-pending .game-moods {
  visibility: hidden;
}
.salon-game .game-tour-caption > span {
  font-size: 12px;
}
.salon-game .game-tour-skip {
  font-size: 14px !important;
  min-height: 44px;
}
@media (max-width: 1100px) {
  .salon-game .game-location,
  .salon-game .game-engine-status {
    top: 183px;
  }
  .salon-game .game-moods {
    top: 91px;
    gap: 14px;
  }
  .salon-game .game-battles-mount {
    width: 250px;
  }
  .salon-game .game-inventory {
    width: 250px;
  }
  .salon-game .game-intro {
    bottom: 268px;
  }
  .salon-game .game-negotiation {
    top: 215px;
  }
}
@media (max-width: 600px) {
  .salon-game .game-header {
    padding: 18px 18px;
    gap: 10px;
  }
  .salon-game .game-brand > span {
    font-size: 20px;
  }
  .salon-game .game-brand small {
    font-size: 8px;
    letter-spacing: 0.08em;
  }
  .salon-game .game-moods {
    top: 85px;
    left: 16px;
    right: 16px;
    max-width: none;
    transform: none;
    gap: 10px;
  }
  .salon-game .game-mood-control {
    flex: 1;
    padding: 8px;
    grid-template-columns: 24px minmax(0, 1fr) 20px;
    gap: 0 6px;
  }
  .salon-game .game-mood-portrait {
    width: 24px;
    height: 34px;
  }
  .salon-game .game-mood-name {
    font-size: 13px;
  }
  .salon-game .game-mood-icon svg {
    width: 20px;
    height: 20px;
  }
  .salon-game [data-game-mood] {
    font-size: 12px;
    min-height: 44px;
  }
  .salon-game .game-mood-source {
    font-size: 12px;
  }
  .salon-game .game-location {
    top: 202px;
    left: 20px;
    font-size: 11px;
  }
  .salon-game .game-engine-status {
    top: auto;
    bottom: 94px;
    right: 20px;
    max-width: 170px;
    font-size: 10px;
  }
  .salon-game .game-room-number {
    display: none;
  }
  .salon-game .game-battles-mount {
    top: 236px;
    right: 18px;
    width: 160px;
  }
  .salon-game .battle-carousel-top > span {
    font-size: 10px;
  }
  .salon-game .battle-carousel-empty p {
    font-size: 12px;
  }
  .salon-game .battle-carousel-empty strong {
    font-size: 21px;
  }
  .salon-game .game-intro {
    bottom: 260px;
    left: 24px;
    max-width: calc(100% - 48px);
  }
  .salon-game .game-intro h1 {
    font-size: clamp(42px, 12vw, 64px);
  }
  .salon-game .game-intro .game-overline {
    font-size: 12px;
  }
  .salon-game .game-intro-actions .game-text-button {
    font-size: 14px !important;
    min-height: 44px;
  }
  .salon-game .game-inventory {
    bottom: 113px;
    left: 24px;
    width: 230px;
    padding: 0;
  }
  .salon-game .game-item-row {
    gap: 10px;
  }
  .salon-game .game-item {
    min-height: 66px;
    padding: 7px;
  }
  .salon-game .game-item > span,
  .salon-game.is-playing .game-item span {
    font-size: 12px;
  }
  .salon-game .game-controls {
    left: 12px;
    right: 12px;
    bottom: 18px;
  }
  .salon-game .game-views {
    width: 100%;
    justify-content: space-between;
  }
  .salon-game .game-views button {
    padding: 8px 10px;
    font-size: 12px;
  }
  .salon-game .game-corner-controls {
    display: none;
  }
  .salon-game.is-playing .game-inventory {
    top: 229px;
    left: 18px;
    width: 205px;
  }
  .salon-game.is-playing .game-negotiation {
    top: auto;
    bottom: 93px;
    right: 12px;
    width: calc(100% - 24px);
    max-height: 46dvh;
    padding: 20px;
  }
  .salon-game .game-negotiation .game-panel-heading h2 {
    font-size: 28px;
  }
  .salon-game .game-captions,
  .salon-game.is-playing .game-captions {
    bottom: 90px;
    font-size: 14px;
  }
  .salon-game .game-return {
    top: 230px;
    left: auto;
    right: 16px;
    max-width: calc(100% - 238px);
    font-size: 12px !important;
  }
}
@media (max-height: 650px) {
  .salon-game .game-intro {
    bottom: 190px;
  }
  .salon-game .game-intro h1 {
    font-size: 42px;
    margin: 10px 0;
  }
  .salon-game .game-inventory {
    bottom: 98px;
  }
  .salon-game .game-mood-source {
    display: none;
  }
}
@media (prefers-reduced-motion: no-preference) {
  .salon-game .game-mood-control,
  .salon-game .game-inventory,
  .salon-game .game-negotiation {
    animation: salon-surface-reveal 650ms var(--game-ease) both;
  }
  .salon-game .game-mood-control + .game-mood-control {
    animation-delay: 80ms;
  }
  @keyframes salon-surface-reveal {
    from {
      opacity: 0;
      transform: translateY(8px);
    }
    to {
      opacity: 1;
      transform: translateY(0);
    }
  }
}
.salon-game .game-mood-person {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: baseline;
  gap: 7px;
  min-width: 0;
}
.salon-game .game-mood-person .game-mood-source {
  font-size: 11px;
}
.salon-game .game-mood-control .game-mood-icon {
  grid-row: 1;
}
.salon-game .game-mood-control [data-game-mood] {
  grid-column: 1 / 4;
  grid-row: 2;
  max-width: none;
}
.salon-game .game-mood-note {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  font-size: 12px;
  color: var(--game-muted);
  text-align: center;
  white-space: nowrap;
}
@media (max-width: 600px) {
  .salon-game .game-mood-person {
    flex-direction: column;
    gap: 0;
  }
  .salon-game .game-mood-person .game-mood-source {
    font-size: 11px;
  }
  .salon-game .game-moods {
    gap: 8px;
  }
}
.salon-game .game-mood-control {
  min-width: 225px;
  flex: 1;
}
.salon-game .game-mood-control .ls-ui-control {
  grid-column: 1 / 4;
  grid-row: 2;
  width: 100%;
  min-width: 0;
}
.salon-game .game-mood-control .ls-ui-select-button {
  min-height: 44px;
  padding: 4px 0;
  border: 0;
  border-bottom: 0;
  border-radius: 0;
  box-shadow: none;
  background: var(--game-clear);
  font-size: 14px;
}
.salon-game .game-mood-control .ls-ui-value {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.salon-game .game-mood-note {
  top: calc(100% + 7px);
}
@media (max-width: 600px) {
  .salon-game .game-mood-control {
    min-width: 0;
  }
  .salon-game .game-mood-control .ls-ui-select-button {
    font-size: 12px;
  }
}
.salon-game .game-mood-control .game-mood-portrait {
  grid-column: 1;
  grid-row: 1;
}
.salon-game .game-intro {
  bottom: 260px;
}
.salon-game .game-intro::before {
  background: linear-gradient(90deg, var(--game-panel-soft), var(--game-clear));
}
.salon-game .game-battles-mount:has(.battle-carousel-empty) {
  display: none;
}
@media (max-height: 650px) {
  .salon-game .game-intro {
    bottom: 200px;
  }
}
.salon-game .game-negotiation .game-primary,
.salon-game .game-negotiation .game-accept {
  min-height: 48px;
  border-radius: var(--game-control-radius);
  font-size: 14px !important;
  background: var(--game-clear);
  color: var(--game-gold) !important;
}
.salon-game .battle-piece-thumb {
  border: 0;
  border-radius: 14px;
  background: var(--game-clear);
}
.salon-game .battle-piece-thumb > span:not(.battle-piece-placeholder) {
  font-size: 12px;
}
.salon-game .battle-table-popover,
.salon-game .battle-inspector {
  border-radius: var(--game-surface-radius);
}
/* The battle stylesheet is inserted lazily. Placement must outrank its
   solo-game selectors so this layout does not depend on stylesheet load order. */
.salon-game.is-playing:not(.is-inspecting-piece) .battle-piece-rail {
  display: none;
}
.salon-game .game-intro {
  bottom: 280px;
}
@media (min-width: 601px) and (max-width: 820px) {
  .salon-game .game-moods {
    top: 82px;
  }
  .salon-game .game-location,
  .salon-game .game-engine-status {
    top: 224px;
  }
  .salon-game.has-cinematic-entry .battle-controls .battle-table {
    top: 252px;
  }
  .salon-game .game-intro {
    bottom: 286px;
  }
  .salon-game .game-touch-move {
    left: auto;
    right: 28px;
    top: auto;
    bottom: 330px;
  }
  .salon-game .game-corner-controls {
    bottom: 214px;
  }
  .salon-game.is-playing .game-touch-move {
    top: 330px;
    bottom: auto;
    left: 28px;
    right: auto;
  }
  .salon-game.is-playing .game-corner-controls {
    position: fixed;
    left: 28px;
    right: auto;
    top: 440px;
    bottom: auto;
  }
  .salon-game.is-playing .game-avatar-tag {
    bottom: 292px;
  }
}
@media (max-width: 700px) {
  .salon-game:not(.is-playing) .battle-controls .battle-piece-rail {
    top: 235px;
    bottom: auto;
    right: 16px;
    left: auto;
    transform: none;
    flex-direction: column;
    max-width: 82px;
    max-height: 237px;
  }
  .salon-game:not(.is-playing) .battle-controls .battle-piece-thumb {
    flex: 0 0 66px;
    width: 72px;
    height: 66px;
  }
  .salon-game .battle-controls .battle-table summary {
    font-size: 12px;
    min-height: 44px;
  }
  .salon-game.is-playing .game-inventory-heading,
  .salon-game.is-playing .game-inventory > small {
    display: none;
  }
  .salon-game.is-playing .game-item-row {
    margin: 0;
  }
}
@media (max-width: 600px) {
  .salon-game .game-moods {
    top: 82px;
    gap: 8px;
  }
  .salon-game .game-mood-control {
    grid-template-columns: minmax(0, 1fr) 22px;
  }
  .salon-game .game-mood-control .game-mood-portrait {
    display: none;
  }
  .salon-game .game-mood-person {
    grid-column: 1;
    flex-direction: row;
    gap: 4px;
  }
  .salon-game .game-mood-name {
    font-size: 13px;
  }
  .salon-game .game-mood-control .game-mood-icon {
    grid-column: 2;
  }
  .salon-game .game-mood-control .ls-ui-control {
    grid-column: 1 / 3;
  }
  .salon-game .game-location {
    top: 190px;
  }
  .salon-game.has-cinematic-entry .battle-controls .battle-table {
    top: 214px;
    left: 18px;
  }
  .salon-game .game-intro {
    bottom: clamp(260px, 37dvh, 310px);
    max-width: calc(100% - 132px);
  }
  .salon-game .game-intro-actions .game-text-button {
    display: none;
  }
  .salon-game .game-custom-entry {
    min-width: 0;
    max-width: calc(100vw - 132px);
    gap: 9px;
    padding: 12px 14px;
    font-size: 13px !important;
  }
  .salon-game .game-views button {
    min-width: 0;
    padding: 8px;
  }
  .salon-game .game-views button span {
    white-space: nowrap;
    font-size: 11px;
  }
  .salon-game.is-playing .game-inventory {
    top: 265px;
    bottom: auto;
  }
  .salon-game .game-return {
    left: 18px;
    right: 18px;
    top: auto;
    bottom: 104px;
    max-width: none;
  }
}
@media (max-height: 650px) and (max-width: 600px) {
  .salon-game .game-moods {
    top: 76px;
  }
  .salon-game .game-mood-note,
  .salon-game .game-location {
    display: none;
  }
  .salon-game .game-intro h1 {
    font-size: 38px;
  }
  .salon-game .game-intro .game-overline {
    display: none;
  }
  .salon-game.has-cinematic-entry .battle-controls .battle-table {
    top: 168px;
  }
  .salon-game:not(.is-playing) .battle-controls .battle-piece-rail {
    top: 228px;
  }
  .salon-game.is-playing .game-inventory {
    top: 228px;
  }
  .salon-game.is-playing .game-negotiation {
    max-height: calc(100dvh - 399px);
  }
}

/* Consent remains reachable without covering the game’s display settings. */
.world-mode .salon-analytics-preferences {
  top: 22px;
  right: 180px;
  bottom: auto;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border-radius: 50%;
  font-size: 0;
  display: grid;
  place-items: center;
}
.world-mode .salon-analytics-preferences::before {
  content: "";
  width: 20px;
  height: 22px;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round' d='m12 2 8 3v6c0 5-4 8-8 11-4-3-8-6-8-11V5zM9 12l2 2 4-4'/%3E%3C/svg%3E")
    center / contain no-repeat;
}
@media (max-width: 600px) {
  .world-mode .salon-analytics-preferences {
    top: 187px;
    right: 16px;
  }
}
@media (max-height: 650px) and (max-width: 600px) {
  .world-mode .salon-analytics-preferences {
    top: 168px;
  }
}

/* Border-free controls use tone and spacing; keyboard focus stays explicit. */
.salon-game button,
.salon-game input,
.salon-game select,
.salon-game dialog,
.salon-game .game-custom-entry::before,
.salon-game .game-entry-crest,
.salon-game .game-amount-field,
.salon-game .game-session-meta,
.salon-game .game-current,
.salon-game .game-questions,
.salon-game .game-audio-details,
.salon-game .game-history li,
.salon-game .game-dealer-portrait,
.salon-game .sound-emblem,
.salon-game .shop-mode,
.salon-game .shop-packs em,
.salon-game .battle-carousel-main > img,
.salon-game .battle-controls .battle-table summary,
.salon-game .battle-controls .battle-table-popover,
.salon-game .battle-controls .battle-color-dot,
.salon-game .battle-controls .battle-inspector,
.salon-game .battle-controls .battle-piece-pagination,
.salon-game .battle-controls .battle-control-status {
  border: 0 !important;
}
.salon-game .game-primary,
.salon-game .game-accept,
.salon-game .game-custom-entry {
  background: var(--game-panel-soft);
}
