[data-game-theme="badsale"] {
  --sale-panel: #28253b;
  --sale-line: #6e5b55;
  --sale-slot: #1b1a2b;
}
html[data-theme="light"] [data-game-theme="badsale"] {
  --sale-panel: #fff7e9;
  --sale-line: #cdae80;
  --sale-slot: #fffdf8;
}
[data-game-theme="badsale"].ds-panel { max-width: 40rem; }
[data-game-theme="badsale"] .ds-room-menu > summary { display: none; }
.badsale-meta { color: var(--game-accent-text); font-size: .85rem; font-weight: 800; }
.badsale-stage { display: grid; gap: 10px; }
.badsale-stage:empty { display: none; }
.badsale-card {
  min-width: 0;
  border: 1px solid var(--sale-line);
  border-radius: 16px;
  background: var(--sale-panel);
  padding: 14px;
  display: grid;
  gap: 10px;
  line-height: 1.75;
}
.badsale-card h2 { font-weight: 900; font-size: 1.05rem; }
.badsale-job { display: flex; align-items: center; gap: 14px; }
.badsale-job img { width: 86px; height: 86px; object-fit: cover; border-radius: 12px; flex: none; }
.badsale-job p { font-size: .82rem; margin-bottom: 2px; }
.badsale-job strong { font-size: 1.2rem; color: var(--game-accent-text); }
.badsale-button {
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  border: 1px solid var(--sale-line);
  padding: 7px 10px;
  font-weight: 800;
  background: var(--sale-slot);
}
.badsale-button.primary { background: var(--game-accent); color: #24180c; }
.badsale-button:disabled { opacity: .5; }
.badsale-button:focus-visible, .badsale-card button:focus-visible { outline: 2px solid var(--game-accent-text); outline-offset: 2px; }
.badsale-phrase { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 6px; }
.badsale-kasra { font-size: 1.7rem; font-weight: 900; color: var(--game-accent-text); line-height: 1; }
.badsale-slot { border-style: dashed; }
.badsale-slot.filled { border-style: solid; color: var(--game-accent-text); }
.badsale-hand { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.badsale-hand .is-empty { visibility: hidden; }
.badsale-hand button, .badsale-slot { overflow-wrap: anywhere; }
.badsale-product { font-size: 1.35rem; font-weight: 900; color: var(--game-accent-text); }
.badsale-score { display: flex; justify-content: space-between; gap: 10px; }
.badsale-confirm { position: fixed; inset: 0; margin: auto; width: min(92vw, 360px); color: inherit; }
.badsale-confirm:not([open]) { display: none; }
.badsale-confirm::backdrop { background: #130e21bb; }
@media (max-width: 640px) {
  .badsale-shell { padding: 8px; justify-content: flex-start; }
  [data-game-theme="badsale"].ds-panel { padding: 12px; gap: 12px; }
  [data-game-theme="badsale"] .ds-room-menu > summary { display: block; font-size: .82rem; cursor: pointer; }
  .badsale-job img { width: 72px; height: 72px; }
}
