/* v0.17 · Visual & UX v2 handoff: the two-dice decision reads as "two destinations, pick one";
   the turn header carries the district goal; the property sheet shows income before/after and a
   keep-your-money exit; vacant plots never show a building; busy state is visible. */
.dice-rule {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 12px;
  background: var(--mm-mint);
  color: var(--mm-emerald-deep);
}
.dice-rule b {
  font-size: 13px;
}
.dice-rule span {
  font-size: 11px;
  line-height: 1.5;
  color: var(--mm-secondary);
}
.coach-dice {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff3c4;
  border: 1px solid var(--mm-gold-line);
}
.coach-dice img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center 20%;
  border: 2px solid var(--mm-gold);
  flex-shrink: 0;
  background: var(--mm-mint);
}
.coach-dice p {
  flex: 1;
  margin: 0;
  font-size: 11px;
  line-height: 1.5;
  color: #6b4a00;
}
.coach-dice .text-button {
  font-size: 11px;
  padding: 4px 8px;
  white-space: nowrap;
  min-height: 0;
}
.die-choice {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 2px 8px;
  align-items: center;
  text-align: left;
}
.die-choice .die {
  margin: 0;
}
.die-choice .die-text {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 2px;
}
.die-choice em {
  font-style: normal;
  font-size: 10px;
  font-weight: 700;
  color: #087f72;
}
.die-choice[data-die="1"] em {
  color: #b07a1c;
}
.die-choice b {
  white-space: normal !important;
  overflow: visible !important;
  text-overflow: clip !important;
  line-height: 1.3;
}
.die-choice small {
  white-space: normal;
  line-height: 1.4;
  margin-top: 0;
  color: var(--mm-secondary);
}
.die-choice[data-die="0"] {
  box-shadow: inset 0 0 0 1.5px #087f72;
}
.die-choice[data-die="1"] {
  box-shadow: inset 0 0 0 1.5px #d99a2b;
}
.die-choice:disabled {
  box-shadow: none;
  opacity: 0.55;
}
.die-choice.kind-rival small {
  color: #a33d37;
}
.die-choice.kind-mine small,
.die-choice.kind-coins small {
  color: #087f72;
}
.dice-options.same .die-choice.wide {
  flex: 1 1 100%;
}
/* The turn header's left side is the district goal: one line, opens the quest list. */
.turn-goal {
  border: 0;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: inherit;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  min-width: 0;
  text-align: left;
  line-height: 1.3;
}
.turn-goal .icon {
  width: 13px;
  height: 13px;
  flex-shrink: 0;
}
.turn-goal .nav-dot {
  position: static;
  margin-left: 2px;
  flex-shrink: 0;
}
.turn-goal:hover {
  color: var(--mm-emerald);
}
/* Upgrade sheet: income before and after, side by side. */
.income-change {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: var(--mm-mint);
  font-size: 11px;
  color: var(--mm-secondary);
}
.income-change b {
  display: block;
  font-size: 14px;
  color: var(--mm-text);
}
.income-change .after {
  text-align: right;
}
.income-change .after b {
  color: var(--mm-emerald);
}
/* Vacant plots show land, not a shop. */
.building-render.plot-empty {
  opacity: 0.96;
}
/* While a command is in flight the sheet says so, and nothing can be sent twice. */
body.busy .property-actions .primary,
body.busy .die-choice {
  pointer-events: none;
}
body.busy .property-actions .primary {
  color: transparent !important;
  text-shadow: none !important;
  position: relative;
}
body.busy .property-actions .primary::after {
  content: "กำลังยืนยัน…";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #27514a;
  font-weight: 700;
}
/* Three main destinations in the bottom bar, as the kit lays them out. */
@media (max-width: 900px) {
  .sidebar nav .nav-item {
    width: 30%;
  }
  .dice-rule {
    padding: 7px 10px;
    margin-bottom: 6px;
  }
  .dice-rule b {
    font-size: 12px;
  }
  .dice-rule span {
    font-size: 10px;
  }
  .coach-dice p {
    font-size: 10px;
  }
  body[data-screen="city"][data-turn="CHOOSE_DIE"] .die-choice {
    min-height: 60px;
    align-items: center;
  }
  body[data-screen="city"][data-turn="CHOOSE_DIE"] .die-choice small {
    font-size: 9px;
  }
}
/* v0.18 · sum rule: both dice, a plus sign and the total; doubles glow gold. */
.dice-sum {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 4px 10px;
  margin: 0 0 8px;
  padding: 8px 12px;
  border-radius: 14px;
  background: var(--mm-mint);
  color: var(--mm-emerald-deep);
}
.dice-sum .die {
  margin: 0 !important;
  width: 38px !important;
  height: 38px !important;
}
.dice-sum > span {
  font-size: 20px;
  font-weight: 700;
  color: var(--mm-secondary);
}
.dice-sum > b {
  font-size: 30px;
  line-height: 1;
  font-family: Poppins, Prompt, sans-serif;
}
.dice-sum > small {
  flex-basis: 100%;
  text-align: center;
  font-size: 12px;
  font-weight: 600;
}
.dice-sum.double {
  background: #fff3c4;
  box-shadow: inset 0 0 0 2px var(--mm-gold);
  color: #6b4a00;
}
.die-choice .die-go {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--mm-emerald);
  color: #fffaec;
}
.die-choice .die-go .icon {
  width: 18px;
  height: 18px;
}
.roll-button.bonus {
  box-shadow:
    0 0 0 3px #fff3c4,
    0 0 0 5px var(--mm-gold);
}
/* v0.20 · kit concept HUD accents: dark-emerald location plate with a gold rim, a fat gold roll pill. */
body[data-screen="city"] .map-title b {
  display: inline-block;
  padding: 3px 14px;
  border-radius: 999px;
  background: #0c5a4f;
  color: #fff3d4;
  box-shadow:
    inset 0 0 0 1.5px #e3b864,
    0 2px 0 #b98a3a;
}
body[data-screen="city"] .roll-button {
  border-radius: 999px !important;
  border: 2px solid #e3a92c !important;
  box-shadow:
    inset 0 3px 0 #fff4ae,
    0 5px 0 #b97f22,
    0 10px 22px rgba(201, 140, 35, 0.35) !important;
  letter-spacing: 0.01em;
}
body[data-screen="city"] .roll-button .icon {
  width: 30px;
  height: 30px;
  padding: 3px;
  border-radius: 8px;
  background: #fffdf6;
  color: #27514a;
  box-shadow: 0 2px 0 #d9c38f;
}
/* v0.21 · rich feel: toll preview, wallet glow on income. */
.toll-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  padding: 9px 12px;
  border-radius: 12px;
  background: linear-gradient(90deg, #fff3c4, #ffe7a3);
  color: #6b4a00;
  font-size: 13px;
  box-shadow: inset 0 0 0 1.5px #e7c05c;
}
.toll-preview b {
  font-size: 16px;
  color: #8a5a00;
}
.toll-preview .icon {
  width: 18px;
  height: 18px;
}
.wallet.gain {
  animation: wallet-gain 1.1s ease-out 1;
}
@keyframes wallet-gain {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 188, 75, 0.9);
    transform: scale(1);
  }
  30% {
    transform: scale(1.08);
  }
  100% {
    box-shadow: 0 0 0 18px rgba(245, 188, 75, 0);
    transform: scale(1);
  }
}
.reduce-motion .wallet.gain {
  animation: none;
}
/* v0.22 · plots walked over this move, buyable now. */
.passed-plots {
  margin: 4px 0 8px;
  padding: 8px 10px;
  border-radius: 12px;
  background: #fff6d8;
  box-shadow: inset 0 0 0 1.5px #ecc96a;
  text-align: left;
}
.passed-plots small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: #6b4a00;
  margin-bottom: 6px;
}
.passed-plots > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.passed-chip {
  min-height: 34px;
  font-size: 12px;
  background: #fffaec;
  border: 1.5px solid #d9a63c;
  color: #6b4a00;
  border-radius: 999px;
  padding: 5px 12px;
}
