/* 摊位点果布局：全部品种直接可见；逐房揭晓、回本进度与单手操作保持独立。 */
.layout-b {
  /* 操作、说明与金额共用字号层级；宋体只承担对白和逐房结果标题。 */
  --text-caption: 11px;
  --text-label: 12px;
  --text-body: 13px;
  --text-action: 14px;
  --text-heading: 16px;
  --text-reveal: 20px;
  --text-amount: 24px;
  --text-total: 32px;
  --ink: #f0ead8;
  --ink-soft: #b7c2ad;
  --gold: #eac16a;
  --line: #d7e4b51c;
  font-size: var(--text-body);
  background: #0c1813;
}
.layout-b .world {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  min-height: 100svh;
  padding: 0;
  background: #0c1813;
  place-items: center;
}
.layout-b .game {
  --room-dialogue-height: 64px;
  --open-height: 50px;
  --deck-gap: 12px;
  --deck-top: 16px;
  --deck-bottom: max(20px,env(safe-area-inset-bottom));
  /* 以两行对白的常规操作区确定背景构图，不跟随实际对白高度重新裁切。 */
  --selection-dialogue-height: calc(20px + var(--text-body) * 3.1);
  --selection-deck-height: calc(var(--deck-top) + var(--selection-dialogue-height) + var(--deck-gap) + var(--open-height) + var(--deck-bottom) + 1px);
  width: min(100%, 470px);
  height: 100svh;
  max-height: none;
  aspect-ratio: auto;
  background: #0c1813;
  box-shadow: none;
}
.layout-b .ledger,.layout-b .rotate-notice {
  display: none;
}
.layout-b .game .hud {
  top: max(12px,env(safe-area-inset-top));
  left: 20px;
  right: 20px;
  display: grid;
  grid-template-columns: 1fr auto 36px;
  align-items: center;
  gap: 12px;
}
.layout-b .game .hud-block,.layout-b .game .sound-button {
  height: 36px;
  min-height: 36px;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}
.layout-b .game .hud-label,.layout-b .day-track {
  display: none;
}
.layout-b .game .hud strong {
  font-size: var(--text-action);
  font-weight: 600;
  letter-spacing: .02em;
  text-shadow: 0 2px 8px #0008;
}
.layout-b .game .cash-block {
  min-width: 0;
  text-align: right;
}
.layout-b .game .sound-button {
  display: grid;
  place-content: center;
  color: #e5e9d9;
  border-radius: 50%;
  background: #15251e66;
  width: 44px;
  min-height: 44px;
}
.layout-b .sound-button .icon {
  width: 17px;
  height: 17px;
}
.layout-b .mission {
  top: 61px;
  left: 20px;
  right: auto;
  max-width: none;
  width: auto;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.layout-b .mission strong {
  display: block;
  margin-top: 4px;
  color: #e8d29c;
  font-size: 11px;
  letter-spacing: 0;
}
.layout-b .mission span {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  letter-spacing: .12em;
  color: #d6d9bd;
  margin: 0;
}
.layout-b .mission span::before {
  content: "";
  width: 4px;
  height: 4px;
  background: #dec482;
  border-radius: 50%;
}
.layout-b .scene-grade {
  background: linear-gradient(180deg,#02080488,transparent 27%,transparent 59%,#06140c77 79%,#07170ff2);
}
.layout-b .game[data-state=select] {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}
.layout-b .game[data-state=select] .scene {
  position: absolute;
  inset: 0 0 var(--selection-deck-height);
  height: auto;
  min-height: 0;
}
.layout-b .game[data-state=select] .scene-image--vendor {
  height: 100%;
  object-position: center;
  transform: none;
  filter: none;
}
.layout-b .action-deck {
  position: relative;
  grid-row: 2;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: var(--deck-top) 16px var(--deck-bottom);
  container-type: inline-size;
  container-name: durian-select;
  display: grid;
  grid-template-rows: auto var(--open-height);
  gap: var(--deck-gap);
  background: #0b1914;
  border-top: 1px solid #dfd5a51c;
  border-radius: 0;
  box-shadow: none;
}
.layout-b .speech {
  position: relative;
  display: grid;
  grid-template-columns: 44px minmax(0,1fr);
  align-items: start;
  gap: 12px;
  width: 100%;
  max-width: none;
  height: var(--selection-dialogue-height);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-gutter: stable;
  scrollbar-width: thin;
  scrollbar-color: #b7c2ad66 transparent;
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  transform: none;
  text-align: left;
  cursor: pointer;
}
.layout-b .speech-avatar {
  width: 44px;
  height: 44px;
  margin-top: 2px;
  border: 1px solid #eac16a55;
  border-radius: 50%;
  background: #243527 var(--vendor-talk-portrait) center 26% / 350% auto no-repeat;
}
.layout-b .speech[data-speaker="榴莲王子"] .speech-avatar {
  background-image: var(--prince-portrait);
  background-size: 180% auto;
  background-position: center 12%;
}
.layout-b .speech-copy {
  min-width: 0;
}
.layout-b .game:not([data-state=select]) .speech {
  display: none;
}
.layout-b .speech:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 4px;
}
.layout-b .speaker {
  display: block;
  font-size: var(--text-caption);
  font-weight: 600;
  letter-spacing: .08em;
  color: #e5c787;
  line-height: 16px;
  text-shadow: none;
}
.layout-b .speech .speech-line {
  position: relative;
  margin: 4px 0 0;
  font-family: var(--font-display);
  font-size: var(--text-body);
  line-height: 1.55;
  font-weight: 500;
  color: #faf2df;
  display: block;
}
.layout-b .speech-measure {
  visibility: hidden;
}
.layout-b .speech-characters {
  position: absolute;
  inset: 0;
}
.layout-b .speech .speech-source {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.layout-b .durian-picker {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(100% + 12px);
  width: auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  padding: 0;
  margin: 0;
  scroll-snap-type: none;
}
.layout-b .durian-picker:has(>.durian-choice:nth-child(4):last-child) {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.layout-b .durian-choice {
  position: relative;
  min-width: 0;
  height: auto;
  min-height: 78px;
  padding: 12px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border: 1px solid #d7e4b525;
  border-radius: 7px;
  color: #f0ead8;
  background: #13251b;
  box-shadow: none;
  text-align: center;
  isolation: isolate;
}
.layout-b .durian-choice.is-selected {
  transform: none;
  background: #302d1c;
  border-color: #eac16a;
}
@media (hover: hover) {
  .layout-b .durian-choice:hover:not([aria-disabled="true"]) {
    transform: none;
    border-color: #eac16a;
  }
}
.layout-b .durian-choice:active:not([aria-disabled="true"]) {
  transform: scale(.98);
}
.layout-b .durian-choice>span {
  order: 1;
  font-size: var(--text-body);
  font-weight: 500;
  line-height: 1.4;
  color: inherit;
  max-width: 100%;
  margin: 0;
  width: 100%;
  padding: 0;
}
.layout-b .durian-choice>strong {
  order: 2;
  font-size: var(--text-heading);
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  color: #eac16a;
  width: 100%;
  margin: 0;
  padding: 0;
}
.layout-b .durian-choice[aria-disabled="true"] {
  opacity: 1;
  background: #191e1b;
  border: 1px dashed #687268;
  color: #a3aba1;
  cursor: not-allowed;
  transform: none;
}
.layout-b .durian-choice[aria-disabled="true"]>strong {
  color: #929c90;
}
.layout-b .durian-choice[aria-disabled="true"]>.choice-unavailable {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 2px 6px;
  border-radius: 4px;
  color: #d3dbcf;
  background: #343e33;
  font-weight: 600;
}
.layout-b .choice-unavailable::before {
  content: "⊘";
}
.layout-b .open-button,.layout-b .room-continue-button,.layout-b .continue-button {
  min-height: 50px;
  border-radius: 6px;
  border: 0;
  font-family: var(--font-body);
  font-size: var(--text-action);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: .04em;
  box-shadow: none;
  color: #302617;
  background: #eac16a;
}
.layout-b .open-button {
  margin: 0;
  width: 100%;
  padding: 0 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.layout-b .open-button .icon {
  width: 16px;
  height: 16px;
}
.layout-b .open-button:disabled {
  background: #344033;
  color: #83907d;
}
.layout-b .game:not([data-state=select]) .action-deck {
  display: none;
}
.layout-b .game:not([data-state=select]) .mission {
  display: none;
}
.layout-b .durian-choice.is-selected>span,.layout-b .durian-choice.is-selected>strong {
  color: #eac16a;
}
.layout-b .mission span::after {
  content: none;
  letter-spacing: 0;
  color: #bdc5ae;
  font-size: 9px;
}
.layout-b .game[data-state=opening] .hud,.layout-b .game[data-state=room-reveal] .hud,.layout-b .game[data-state=result] .hud {
  grid-template-columns: auto 1fr;
  gap: 18px;
  left: 20px;
  right: 20px;
  top: 12px;
}
.layout-b .game:not([data-state=select]) .sound-button {
  display: grid;
  grid-column: 3;
  grid-row: 1;
}
.layout-b .game:not([data-state=select]) .cash-block {
  padding: 0;
  text-align: left;
  height: 36px;
  min-height: 36px;
}
.layout-b .game:not([data-state=select]) .cash-block .hud-label {
  display: block;
  color: #c0c9ae;
  letter-spacing: 0;
  font-size: 12px;
}
.layout-b .game:not([data-state=select]) .cash-block strong {
  font-size: var(--text-heading);
}
.layout-b .game .room-progress {
  height: 36px;
  min-height: 36px;
  justify-content: flex-end;
  gap: 8px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.layout-b .room-progress-copy span {
  display: none;
}
.layout-b .room-progress-copy strong {
  color: #cdd4bb;
  font-size: 12px;
}
.layout-b .opened-room-icon {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  border-color: #d3d3a833;
  background: #13291c;
}
.layout-b .opening-status {
  left: 20px;
  right: 20px;
  bottom: 100px;
}
.layout-b .opening-status span {
  font-family: var(--font-body);
  font-size: var(--text-heading);
  font-weight: 600;
}
.layout-b .room-reveal {
  left: 20px;
  right: 20px;
  grid-template-rows: minmax(0,1fr) auto;
  top: 82px;
  bottom: calc(var(--room-actions-height, 260px) + 12px);
}
.layout-b .room-visual img {
  object-position: center;
  max-height: 100%;
  filter: drop-shadow(0 18px 28px #0008);
}
.layout-b .room-visual img:not([data-quality=special]) {
  top: 0;
}
.layout-b .room-details {
  background: #0d1a13c9;
  border: 1px solid #e3ce991a;
  border-radius: 0 6px 6px 0;
  box-shadow: none;
  backdrop-filter: blur(8px);
  border-left: 2px solid #d5b978;
}
.layout-b .room-actions {
  padding: 15px 20px max(20px,env(safe-area-inset-bottom));
  display: grid;
  gap: 12px;
  background: #102017;
  border-top: 1px solid #dec9971c;
  padding-top: 12px;
}
.layout-b .room-continue-button {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px 12px;
}
.layout-b .room-current-label {
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  opacity: .72;
  display: none;
}
.layout-b .room-continue-text {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1.3;
}










.layout-b .result-dialogues {
  min-height: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #a4b49866 transparent;
}
.layout-b .result-dialogues > * {
  flex-shrink: 0;
}


.layout-b .result-scroll > .result-dialogues {
  margin-top: 16px;
  overflow: visible;
}
.layout-b .character-dialogues {
  display: grid;
  gap: 8px;
  grid-column: 1 / -1;
}
.layout-b .character-dialogue {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: start;
  padding-left: 56px;
}
.layout-b .character-copy {
  min-width: 0;
}
.layout-b .character-copy span {
  display: block;
  color: #e5c787;
  font-size: var(--text-caption);
  line-height: 16px;
  font-weight: 600;
  letter-spacing: .08em;
  text-align: right;
}
.layout-b .character-dialogue p {
  margin: 4px 0 0;
  color: #faf2df;
  font-size: var(--text-body);
  line-height: 1.55;
  font-family: var(--font-display);
  font-weight: 500;
  text-align: right;
}
.layout-b .character-avatar {
  background-size: 240% auto;
  background-position: center 20%;
}
.layout-b .character-dialogue[data-result-id="person-puppy"] .character-avatar {
  background-size: 260% auto;
  background-position: 68% 14%;
}
.layout-b .character-dialogue[data-result-id="person-homebody"] .character-avatar {
  background-size: 350% auto;
  background-position: 50% 4%;
}
.layout-b .character-dialogue[data-result-id="person-athlete"] .character-avatar {
  background-size: 280% auto;
  background-position: 48% 4%;
}
.layout-b .character-dialogue[data-result-id="person-suit-executive"] .character-avatar {
  background-size: 280% auto;
  background-position: 57% 8%;
}
.layout-b .character-dialogue[data-result-id="person-durian-prince"] .character-avatar {
  background-size: 450% auto;
  background-position: 48% 7%;
}
.layout-b .room-continue-button:disabled {
  background: #344033;
  color: #83907d;
}
.layout-b .game[data-state=result] .whole-overview {
  top: auto;
  bottom: auto;
  left: auto;
  right: auto;
  height: 100%;
  grid-template-rows: minmax(0,1fr);
  border: 0;
  background: transparent;
  position: relative;
  grid-row: 2;
  margin: 0 20px;
  min-height: 0;
}
.layout-b .whole-overview-items {
  display: flex;
  align-items: center;
  padding: 0;
}




.layout-b .game[data-state=result] .result-layout {
  top: auto;
  left: 0;
  right: 0;
  bottom: auto;
  padding: 18px 20px max(20px,env(safe-area-inset-bottom));
  gap: 14px;
  background: #14241c;
  border-top: 1px solid #d4bd7b2b;
  border-radius: 18px 18px 0 0;
  height: auto;
  /* 结算按内容收紧并贴底，超出可用高度时由内部明细区滚动。 */
  max-height: 100%;
  align-self: end;
  grid-template-rows: minmax(0, 1fr);
  align-content: stretch;
  overflow: hidden;
  pointer-events: auto;
  position: relative;
  grid-row: 3;
  min-height: 0;
}
.layout-b .result-panel {
  display: flex;
  flex-direction: column;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-variant-numeric: tabular-nums;
  min-height: 0;
  height: auto;
  max-height: none;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: hidden;
  animation: none;
}
.layout-b .result-panel > * {
  flex-shrink: 0;
}
.layout-b .result-panel > .result-scroll {
  flex: 0 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #a4b49866 transparent;
  padding-right: 8px;
}
.layout-b .result-scroll::-webkit-scrollbar {
  width: 4px;
}
.layout-b .result-scroll::-webkit-scrollbar-thumb {
  background: #a4b49899;
  border-radius: 4px;
}
.layout-b .result-kicker {
  color: #b7c2ad;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0;
  display: none;
}
.layout-b .result-panel h1 {
  margin: 0;
  font-family: var(--font-body);
  line-height: 1.5;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.layout-b .result-heading {
  display: none;
}
.layout-b #resultDescription {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.45;
  color: #b7c2ad;
}
.layout-b .settlement-adjustments {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
}
.layout-b .settlement-adjustments span {
  color: #b7c2ad;
  font-size: 12px;
}
.layout-b .settlement-adjustments strong {
  display: block;
  font-size: var(--text-action);
  font-weight: 600;
  color: #eac16a;
}
.layout-b .result-panel>.continue-button {
  min-height: 44px;
  margin-top: 12px;
  padding: 8px 16px;
}
.layout-b .room-breakdown {
  margin: 0;
  border-top: 1px solid #d7e4b521;
  border-bottom: 1px solid #d7e4b521;
}
.layout-b .room-breakdown-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0;
  border: 0;
  color: #a4b498;
  background: transparent;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.layout-b .room-breakdown-trigger::after {
  content: "›";
  font-size: 20px;
}
.layout-b .room-breakdown-modal {
  width: min(430px, calc(100% - 32px));
  max-height: min(var(--modal-max-height, 560px), calc(100svh - max(32px, env(safe-area-inset-top)) - max(32px, env(safe-area-inset-bottom))));
  padding: 18px;
  border: 1px solid #d4bd7b40;
  border-radius: 16px;
  color: var(--ink);
  background: #102018;
  box-shadow: 0 24px 80px #0009;
  overflow: hidden;
}
.layout-b .room-breakdown-modal[open] {
  display: flex;
  flex-direction: column;
}
.layout-b .room-breakdown-modal::backdrop {
  background: #030b08b8;
  backdrop-filter: blur(4px);
}
.layout-b .room-breakdown-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-shrink: 0;
  gap: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}
.layout-b .room-breakdown-modal h2 {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--text-heading);
  font-weight: 600;
}
.layout-b .room-breakdown-close {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  color: #c6ccaf;
  background: #ffffff08;
  font: inherit;
  line-height: 1;
  cursor: pointer;
}
.layout-b .room-breakdown-close svg {
  display: block;
  width: 20px;
  height: 20px;
}
.layout-b .room-breakdown-modal-body {
  min-height: 0;
  padding: 16px 0;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  scrollbar-width: thin;
  scrollbar-color: #a4b49899 transparent;
}
.layout-b .room-breakdown-modal .result-formula {
  margin: 0 0 10px;
  padding: 12px;
  border-radius: 6px;
  color: var(--ink-soft);
  background: #ffffff06;
  font-size: 12px;
  line-height: 1.6;
}
.layout-b .room-breakdown-modal .room-breakdown-line {
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
  line-height: 1.5;
}
.layout-b .room-breakdown-modal .room-breakdown-line strong {
  flex-shrink: 0;
  color: #dfcb84;
  font-variant-numeric: tabular-nums;
}
.layout-b .room-breakdown-return {
  flex-shrink: 0;
  min-height: 48px;
  width: 100%;
  padding: 0 16px;
  border: 0;
  border-radius: 6px;
  color: #181207;
  background: var(--gold);
  font: inherit;
  font-size: var(--text-action);
  font-weight: 600;
  cursor: pointer;
}
.layout-b .continue-button {
  position: static;
  width: 100%;
  min-height: 50px;
  margin: 10px 0 0;
  padding: 0;
  background: #eac16a;
  box-shadow: none;
}
.layout-b .collection-gain {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  padding: 8px 10px;
  border: 1px solid #c7d7a833;
  border-radius: 6px;
  color: #c7d7a8;
  background: #c7d7a80b;
  font: inherit;
  font-size: 11px;
  line-height: 1.4;
  text-align: left;
  cursor: pointer;
}
.layout-b .collection-gain::after {
  content: "›";
  flex-shrink: 0;
  font-size: 22px;
  line-height: 1;
}
.layout-b .collection-progress {
  margin: 0;
  min-width: 0;
  color: #a7b398;
  font-size: 12px;
}
.layout-b .collection-heading {
  display: flex;
  align-items: baseline;
  gap: 12px;
  min-width: 0;
}
.layout-b .collection-heading h2,
.layout-b .collection-modal .room-breakdown-close {
  flex-shrink: 0;
}
.layout-b .collection-modal {
  --modal-max-height: 640px;
}
.layout-b .collection-gallery {
  display: grid;
  font-size: var(--text-body);
  gap: 16px;
}
.layout-b .collection-card {
  overflow: hidden;
  border: 1px solid #d4bd7b26;
  border-radius: 10px;
  background: #ffffff04;
}
.layout-b .collection-card > img,
.layout-b .collection-image-placeholder {
  display: block;
  width: 100%;
  height: 220px;
  object-fit: contain;
  background: #0b1611;
}
.layout-b .collection-image-placeholder {
  display: grid;
  place-items: center;
  color: #a7b398;
  font-size: 13px;
}
.layout-b .collection-card-copy {
  padding: 14px;
}
.layout-b .collection-card h3 {
  margin: 0;
  color: #faf2df;
  font-family: var(--font-body);
  font-size: var(--text-heading);
  font-weight: 600;
  text-align: center;
}
.layout-b .collection-card-copy > p {
  margin: 8px 0 12px;
  color: #cbd1ba;
  font-size: 12px;
  line-height: 1.6;
}
.layout-b .season-report {
  max-height: calc(100% - 88px);
  overflow: auto;
  border-radius: 12px;
  background: #14241cf2;
  left: 20px;
  right: 20px;
  border-color: #ded3a12b;
  padding: 24px 20px;
}
.layout-b .season-report .report-label {
  margin: 0;
  font-size: var(--text-label);
  font-weight: 600;
  letter-spacing: 1px;
}
.layout-b .report-stamp {
  position: static;
  margin: 8px 0 18px;
  padding: 0;
  border: 0;
  color: #b9c1ac;
  font-size: 12px;
  font-weight: 400;
  letter-spacing: 0;
  transform: none;
}
.layout-b .season-report h1 {
  margin: 0 0 6px;
  font-family: var(--font-body);
  font-size: var(--text-reveal);
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.25;
}
.layout-b .report-subtitle {
  font-size: var(--text-body);
}
.layout-b .report-money {
  margin: 0;
  padding: 22px 0 18px;
  border: 0;
}
.layout-b .report-money > span {
  font-size: 12px;
}
.layout-b .report-money strong {
  font-size: var(--text-total);
  font-weight: 700;
  line-height: 1.35;
}
.layout-b .report-money small {
  font-size: var(--text-action);
  font-weight: 600;
}
.layout-b .report-money small.is-loss,
.layout-b .report-stats strong.is-loss {
  color: #f69a87;
}
.layout-b .report-money small.is-even {
  color: var(--ink-soft);
}
.layout-b .report-stats {
  gap: 16px;
  padding: 16px 0 20px;
  border-top: 1px solid var(--line);
}
.layout-b .report-stats > div {
  display: block;
  padding: 0;
  border: 0;
}
.layout-b .report-stats span {
  display: block;
  font-size: 12px;
}
.layout-b .report-stats strong {
  display: block;
  margin-top: 3px;
  font-size: var(--text-heading);
  font-weight: 600;
}
.layout-b .season-report .collection-report {
  margin: 0;
  padding: 16px 0 20px;
}
.layout-b .season-report .collection-report > div:first-child {
  font-size: var(--text-action);
  letter-spacing: 0;
}
.layout-b .season-collection-copy {
  margin: 8px 0 0;
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.6;
}
.layout-b .report-actions {
  margin: 0;
  gap: 10px;
}
.layout-b .report-actions button {
  font-size: var(--text-action);
  font-weight: 600;
  min-height: 48px;
}
.layout-b .prince-companion {
  bottom: 43%;
  right: 3%;
  width: 19%;
}
.layout-b .room-actions,.layout-b .game[data-state=result] .result-layout {
  background: #0b1914eb;
  border-radius: 0;
  backdrop-filter: blur(10px);
}
@media(max-height:700px) {
  .layout-b { --text-total: 28px; }
  .layout-b .game {
    --open-height: 46px;
    --deck-gap: 9px;
    --deck-top: 12px;
    --deck-bottom: max(12px,env(safe-area-inset-bottom));
  }
  .layout-b .game[data-state=select] .scene-image--vendor {
    object-position: center 18%;
  }
  .layout-b .action-deck {
    padding-left: 16px;
    padding-right: 16px;
  }
  .layout-b .speech {
    grid-template-columns: 40px minmax(0,1fr);
    gap: 10px;
  }
  .layout-b .speech-avatar {
    width: 40px;
    height: 40px;
  }
  .layout-b .speech .speech-line {
    font-size: var(--text-body);
  }
  .layout-b .open-button,.layout-b .room-continue-button,.layout-b .continue-button {
    min-height: 46px;
  }
  .layout-b .durian-picker {
    left: 16px;
    right: 16px;
    bottom: calc(100% + 8px);
  }
  .layout-b .room-reveal {
    left: 16px;
    right: 16px;
  }
  .layout-b .room-actions {
    padding: 12px 16px max(15px,env(safe-area-inset-bottom));
    gap: 9px;
  }


  .layout-b .character-dialogue {
    grid-template-columns: minmax(0, 1fr) 40px;
    gap: 10px;
    padding-left: 50px;
  }
  .layout-b .character-dialogue p {
    font-size: 13px;
  }
  .layout-b .game[data-state=result] .result-layout {
    padding: 14px 16px 16px;
    gap: 10px;
  }
  .layout-b .game[data-state=result] .whole-overview {
    margin: 0 16px;
  }

}
@media(prefers-reduced-motion:reduce) {
  .layout-b * {
    transition-duration: 1ms!important;
    animation-duration: 1ms!important;
  }
}
.layout-b .game[data-state=result] {
  --result-header-height: calc(max(12px, env(safe-area-inset-top)) + 48px);
  --result-overview-height: clamp(168px, 28svh, 224px);
  display: grid;
  /* 结算贴底且按内容占高，回顾在上方余下空间居中；长对白不挤占回顾所需高度。 */
  grid-template-rows: var(--result-header-height) minmax(0, 1fr) fit-content(calc(100svh - var(--result-header-height) - var(--result-overview-height) - 24px));
  gap: 12px;
}



/* 横屏沿用同一结算内容，将房位回顾放在左侧，让右侧保留完整的操作高度。 */
@media (max-height: 500px) and (min-width: 550px) {
  .layout-b .game[data-state=result] {
    width: min(100%, 820px);
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    grid-template-rows: calc(max(12px, env(safe-area-inset-top)) + 48px) minmax(0, 1fr);
    gap: 8px 0;
  }
  .layout-b .game[data-state=result] .whole-overview {
    grid-column: 1;
    margin: 0 12px max(12px, env(safe-area-inset-bottom));
    height: auto;
  }
  .layout-b .game[data-state=result] .result-layout {
    grid-column: 2;
    grid-row: 2;
    border-top: 0;
    border-left: 1px solid var(--line);
    padding-top: 8px;
  }
}

/* 逐房HUD位置。共享尺寸与文字规则已归并到各组件，保留原有效的媒体覆盖。 */
.layout-b .game:not([data-state=select]) .hud {
  grid-template-columns: auto minmax(0, 1fr) 44px;
  gap: 10px;
}

.layout-b .open-button:disabled,.layout-b .room-continue-button:disabled { color: #c6cfb9; background: #344033; }
.layout-b .game:not([data-state=select]) .room-progress {
  min-width: 0;
  gap: 4px;
  flex-wrap: wrap;
  height: auto;
  grid-column: 2;
  grid-row: 1;
}


.layout-b .game[data-state=summary] .hud { grid-template-columns: minmax(0, 1fr) auto 44px; }
.layout-b .game[data-state=summary] .cash-block { text-align: right; }







.layout-b .game[data-reward=jackpot] .room-return strong { color: #ffdb7f; }




.layout-b .toast { font-size: var(--text-body); }
.layout-b .durian-choice > small { order: 4; color: #f0ead8; font-size: 11px; }
.layout-b .durian-choice > .fruit-observation {
  order: 3;
  color: #cbd7bd;
  font-size: 12px;
  font-weight: 400;
}
@media (max-height: 460px) and (min-width: 600px) {
  .layout-b .durian-picker,
  .layout-b .durian-picker:has(>.durian-choice:nth-child(4):last-child) {
    grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  }
}
.layout-b .durian-choice.is-new:not([aria-disabled="true"]) { border-color: #eac16a99; }
.layout-b .scene-image--market { opacity: 0; object-fit: cover; }
.layout-b .game[data-state=result] .scene-image--market,
.layout-b .game[data-state=summary] .scene-image--market,
.layout-b .game[data-state=room-reveal] .scene-image--market { opacity: .9; }
.layout-b .game[data-state=result] .scene-image--vendor,
.layout-b .game[data-state=summary] .scene-image--vendor,
.layout-b .game[data-state=room-reveal] .scene-image--vendor { opacity: 0; }
.layout-b .game[data-state=summary] .season-report { top: 76px; bottom: auto; height: auto; transform: none; max-height: calc(100% - 92px); background: #14241ce8; }
.layout-b ::selection { background: #eac16a; color: #0c1813; }
.layout-b :focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
@media(max-height:700px) {
  .layout-b .room-reveal { top: 74px; bottom: calc(var(--room-actions-height, 230px) + 8px); }

}

.layout-b .room-visual img[data-pose="1"]:not([data-quality=special]),.layout-b .whole-room-card img[data-pose="1"]:not([data-kind=special]) { transform: rotate(-5deg); }

.layout-b .room-visual img[data-pose="2"]:not([data-quality=special]),.layout-b .whole-room-card img[data-pose="2"]:not([data-kind=special]) { transform: rotate(5deg); }
