/* 摊位点果布局：移动端房室概览最多三列，六房显示为两行。 */
.layout-b {
  --ink: #f0ead8;
  --ink-soft: #b7c2ad;
  --gold: #eac16a;
  --line: #d7e4b51c;
  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 {
  --dialogue-height: 72px;
  --risk-height: 42px;
  --open-height: 50px;
  --deck-gap: 12px;
  --deck-top: 16px;
  --deck-bottom: max(20px,env(safe-area-inset-bottom));
  --selection-deck-height: calc(var(--dialogue-height) + var(--risk-height) + var(--open-height) + var(--deck-gap)*2 + var(--deck-top) + var(--deck-bottom));
  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: 14px;
  font-weight: 700;
  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 {
  width: 36px;
  display: grid;
  place-content: center;
  color: #e5e9d9;
  border-radius: 50%;
  background: #15251e66;
}
.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: none;
}
.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] .scene {
  height: auto;
  bottom: var(--selection-deck-height);
}
.layout-b .game[data-state=select] .scene-image--vendor {
  height: 100%;
  object-position: center;
  transform: none;
  filter: none;
}
.layout-b .action-deck {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 6;
  padding: var(--deck-top) 20px var(--deck-bottom);
  display: grid;
  grid-template-rows: var(--dialogue-height) var(--risk-height) 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(--dialogue-height);
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  overflow: visible;
  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 url("./assets/vendor-host-talk-v3.jpg") center 26% / 350% auto no-repeat;
}
.layout-b .speech[data-speaker="榴莲王子"] .speech-avatar {
  background-image: url("./assets/durian-prince-companion-v1.png");
  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: 11px;
  letter-spacing: .08em;
  color: #e5c787;
  line-height: 16px;
  text-shadow: none;
}
.layout-b .speech .speech-line {
  position: relative;
  margin: 4px 0 0;
  font-size: 14px;
  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: 20px;
  right: 20px;
  bottom: calc(100% + 12px);
  width: auto;
  display: grid;
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 20px)/3);
  gap: 10px;
  overflow-x: auto;
  padding: 0;
  margin: 0;
  scroll-snap-type: x proximity;
  overflow-y: hidden;
}
.layout-b .durian-choice {
  position: relative;
  min-width: 0;
  height: 150px;
  min-height: 0;
  padding: 0 0 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  border: 0;
  border-radius: 8px;
  color: #ede7d3;
  background: transparent;
  scroll-snap-align: start;
  box-shadow: none;
  text-align: center;
  isolation: isolate;
}
.layout-b .durian-choice.is-selected {
  transform: none;
  background: transparent;
  border-color: transparent;
}
.layout-b .durian-choice:active:not(:disabled) {
  transform: scale(.98);
}
.layout-b .durian-choice>span {
  order: 1;
  font-size: 12px;
  font-weight: 700;
  color: inherit;
  max-width: 100%;
  margin: 0;
  width: 100%;
  padding: 6px 0 2px;
  background: #102017e8;
  border-radius: 5px 5px 0 0;
  border-top: 1px solid #e0d0a93b;
}
.layout-b .durian-choice>strong {
  order: 2;
  font-size: 13px;
  font-weight: 700;
  color: #eac16a;
  margin-top: 3px;
  width: 100%;
  margin: 0;
  padding: 0 0 6px;
  background: #102017e8;
  border-radius: 0 0 5px 5px;
}
.layout-b .durian-choice small {
  order: 3;
  font-size: 9px;
  color: #8e9f8d;
  line-height: 16px;
  margin: 1px 0 0;
  display: none;
}
.layout-b .durian-choice.is-selected small {
  color: #e0c88b;
}
.layout-b #riskProfile,.layout-b #deckPrompt {
  display: none!important;
}
.layout-b .preview-risk {
  min-height: var(--risk-height);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
}
.layout-b .preview-risk strong {
  font-size: 13px;
  color: #d4dcbf;
  font-weight: 700;
  line-height: 1.4;
}
.layout-b .preview-risk p {
  margin: 0;
  font-size: 11px;
  color: #93a48f;
  line-height: 1.55;
}
.layout-b .open-button,.layout-b .room-continue-button,.layout-b .continue-button {
  min-height: 50px;
  border-radius: 6px;
  border: 0;
  font-size: 13px;
  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::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset: 0 4px 40px;
  background: radial-gradient(ellipse at 50% 75%,#f3d88755,transparent 67%);
  opacity: 0;
  transition: opacity 220ms ease;
}
.layout-b .durian-choice.is-selected::before {
  opacity: 1;
}
.layout-b .durian-choice.is-selected>span,.layout-b .durian-choice.is-selected>strong {
  background: #eac16a;
  color: #302a18;
}
.layout-b .mission span::after {
  content: "· 点摊上的榴莲";
  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: none;
}
.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;
  font-size: 9px;
  color: #c0c9ae;
  letter-spacing: 0;
}
.layout-b .game:not([data-state=select]) .cash-block strong {
  font-size: 14px;
}
.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 {
  font-size: 10px;
  color: #cdd4bb;
}
.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-size: 22px;
}
.layout-b .room-reveal {
  top: 80px;
  left: 20px;
  right: 20px;
  bottom: 177px;
  grid-template-rows: minmax(0,1fr) auto;
}
.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: 70px;
}
.layout-b .room-details {
  min-height: 100px;
  padding: 14px 16px;
  background: #0d1a13c9;
  border: 1px solid #e3ce991a;
  border-radius: 0 6px 6px 0;
  box-shadow: none;
  gap: 4px 10px;
  backdrop-filter: blur(8px);
  border-left: 2px solid #d5b978;
}
.layout-b .room-details h1 {
  font-size: 26px;
}
.layout-b .room-details>p {
  font-size: 11px;
  line-height: 1.55;
}
.layout-b .room-rarity {
  font-size: 9px;
  color: #d2c391;
}
.layout-b .room-return {
  min-width: 65px;
  padding-left: 12px;
}
.layout-b .room-return span {
  font-size: 9px;
}
.layout-b .room-return strong {
  font-size: 19px;
  color: #eac16a;
}
.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;
}
.layout-b .room-actions>div {
  margin: 0;
  font-size: 9px;
  gap: 8px;
}
.layout-b .room-actions>div span {
  color: #c3cbad;
}
.layout-b .result-reaction,.layout-b .game[data-state=result] .result-reaction {
  position: static;
  inset: auto;
  width: 100%;
  max-width: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transform: none;
  animation: none;
}
.layout-b .result-reaction span {
  font-size: 9px;
  letter-spacing: 0;
  color: #cfbc88;
  line-height: 19px;
}
.layout-b .result-reaction p {
  font-size: 11px;
  line-height: 1.7;
  color: #cbd1ba;
}
.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) auto;
  border: 0;
  background: transparent;
  position: relative;
  grid-row: 2;
  margin: 0 20px;
  min-height: 0;
}
.layout-b .whole-overview-items {
  padding: 0;
}
.layout-b .whole-result-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  grid-auto-flow: row;
  grid-auto-columns: auto;
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
}
.layout-b .whole-result-board .whole-room-card {
  grid-column: auto!important;
  grid-template-rows: minmax(0,1fr) auto;
  border: 1px solid #b6bc9222;
  border-radius: 5px;
  background: #183020d9;
}
.layout-b .whole-room-card span {
  font-size: 10px;
  padding: 5px 6px;
  background: #152619c9;
}
.layout-b .whole-room-card img {
  padding: 4px;
}
.layout-b .whole-overview-copy {
  padding: 9px 0 0;
  border: 0;
  background: transparent;
  justify-content: flex-end;
}
.layout-b .whole-overview-copy strong {
  display: none;
}
.layout-b .whole-overview-copy span {
  font-size: 10px;
  color: #c7c9a5;
}
.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;
  max-height: calc(100svh - 52px - min(30svh, 244px) - 24px);
  overflow: auto;
  pointer-events: auto;
  position: relative;
  grid-row: 3;
  min-height: 0;
}
.layout-b .result-panel {
  height: auto;
  max-height: none;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
  animation: none;
}
.layout-b .result-kicker {
  display: none;
}
.layout-b .result-panel h1 {
  margin: 0 0 4px;
  font-family: "Noto Sans SC",sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
.layout-b .result-heading {
  gap: 12px;
  align-items: center;
}
.layout-b .result-net {
  border: 0;
  padding: 0;
}
.layout-b .result-net small {
  font-size: 10px;
  color: #c6ccaf;
}
.layout-b .result-net strong {
  font-size: 30px;
  line-height: 1.3;
  font-weight: 800;
  color: #dfcb84;
}
.layout-b .result-net strong.is-loss {
  color: #eaa18c;
}
.layout-b .result-panel>#resultDescription {
  font-size: 10px;
  color: #91a18a;
}
.layout-b .result-economy {
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 8px;
  margin: 15px 0 8px;
}
.layout-b .result-economy>div {
  padding-top: 10px;
  border-top: 1px solid #d6ddae1c;
}
.layout-b .result-economy span {
  font-size: 10px;
  color: #a7b398;
}
.layout-b .result-economy strong {
  font-size: 15px;
  margin-top: 5px;
  color: #ddcb92;
}
.layout-b .room-breakdown {
  margin: 0;
  font-size: 10px;
}
.layout-b .room-breakdown summary {
  min-height: 32px;
  color: #a4b498;
  font-size: 10px;
}
.layout-b .result-formula {
  margin: 0 0 8px;
  font-size: 10px;
  padding: 8px;
  background: #ffffff06;
}
.layout-b .continue-button {
  position: static;
  width: 100%;
  min-height: 50px;
  margin: 10px 0 0;
  padding: 0;
  background: #eac16a;
  box-shadow: none;
}
.layout-b .game[data-state=result] .result-layout:has(.room-breakdown[open]) {
  max-height: 315px;
}
.layout-b .result-layout:has(.room-breakdown[open]) .continue-button {
  position: sticky;
  bottom: -20px;
  box-shadow: 0 -10px 20px #14241c;
}
.layout-b .collection-gain {
  font-size: 10px;
}
.layout-b .season-report {
  max-height: calc(100% - 88px);
  overflow: auto;
  border-radius: 12px;
  background: #14241cf2;
  left: 20px;
  right: 20px;
  border-color: #ded3a12b;
}
.layout-b .season-report h1 {
  font-size: 26px;
}
.layout-b .report-money strong {
  font-size: 30px;
}
.layout-b .report-actions button {
  font-size: 12px;
  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 .game {
    --dialogue-height: 64px;
    --risk-height: 38px;
    --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: 13px;
  }
  .layout-b .durian-choice {
    height: 128px;
  }
  .layout-b .preview-risk {
    gap: 4px;
  }
  .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 {
    top: 66px;
    bottom: 159px;
    left: 16px;
    right: 16px;
  }
  .layout-b .room-details {
    min-height: 89px;
    padding: 11px 13px;
  }
  .layout-b .room-details h1 {
    font-size: 23px;
  }
  .layout-b .room-actions {
    padding: 12px 16px max(15px,env(safe-area-inset-bottom));
    gap: 9px;
  }
  .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;
  }
  .layout-b .result-economy {
    margin-top: 10px;
  }
  .layout-b .result-net strong {
    font-size: 27px;
  }
  .layout-b .room-visual img:not([data-quality=special]) {
    top: 40px;
  }
}
@media(prefers-reduced-motion:reduce) {
  .layout-b * {
    transition-duration: 1ms!important;
    animation-duration: 1ms!important;
  }
}
.layout-b .game[data-state=result] {
  display: grid;
  grid-template-rows: minmax(52px, 1fr) minmax(112px, min(30svh, 244px)) minmax(0, auto);
  gap: 12px;
}
.layout-b .whole-result-board.rooms-1 {
  grid-template-columns: minmax(0, 1fr) !important;
}
.layout-b .whole-result-board.rooms-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
}
