#game-stage {
  --st-wood-dk: #4a2a10;
  --st-wood: #7a4a24;
  --st-wood-lt: #a8723d;
  --st-paper: #fbf4e2;
  --st-paper-dk: #f1e3c2;
  --st-ink: #1f3d7a;
  --st-ink-soft: #4d6597;
  --st-rule: #bcd0ea;
  --st-margin: #d65a4e;
  --st-red: #c0392b;
  --st-green: #3c8a26;
  --st-amber: #e7a032;
  --st-sticky: #fde68a;
  --st-ui: 'Be Vietnam Pro', system-ui, sans-serif;
  --st-hand: 'Be Vietnam Pro', system-ui, sans-serif;
}

#game-stage .st-sheet {
  display: none;
}

#game-stage.is-phone:not(.st-off) .modal-backdrop[data-st] > .st-sheet {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  z-index: 2;
  zoom: var(--pz, 1) !important;
  width: var(--ph-vw, 844px) !important;
  height: var(--ph-vh, 390px) !important;
  max-width: none !important;
  max-height: none !important;
  overflow: hidden !important;
  font-family: var(--st-ui);
  color: var(--st-wood-dk);
  user-select: none;
  -webkit-user-select: none;
  background: radial-gradient(120% 90% at 50% 0%, #8b5a2b, var(--st-wood-dk));
}

#game-stage.is-phone:not(.st-off) .modal-backdrop[data-st] > :not(.st-sheet) {
  display: none !important;
}

#game-stage.is-phone:not(.st-off) .modal-backdrop[data-st] {
  padding: 0;
  background: #2a170a;
}

#game-stage .st-sheet button {
  font-family: var(--st-ui);
  cursor: pointer;
}

#game-stage .st-sheet button:focus-visible {
  outline: 3px solid var(--st-amber);
  outline-offset: 2px;
}

#game-stage .st-frame {
  position: absolute;
  inset: 6px;
  border-radius: 16px;
  background: linear-gradient(var(--st-paper-dk), #ead6ad);
  box-shadow: inset 0 0 0 3px var(--st-wood-lt), inset 0 0 0 6px var(--st-wood-dk);
  padding: 7px 10px 9px;
  display: grid;
  grid-template-rows: 38px minmax(0, 1fr);
  gap: 6px;
}

/* Header Bar */
#game-stage .st-top {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  overflow: hidden;
}

#game-stage .st-day {
  display: flex;
  flex-direction: column;
  justify-content: center;
  flex: 0 0 auto;
  min-width: fit-content;
  line-height: 1.1;
}

#game-stage .st-day small {
  justify-self: start;
  align-self: flex-start;
  padding: 2px 7px;
  border-radius: 5px;
  background: linear-gradient(#f6cf74, #d99f3f);
  color: #5a3419;
  font: 800 10.5px/1.25 var(--st-ui);
  letter-spacing: .03em;
  text-transform: uppercase;
  box-shadow: 0 2px #9a6421;
  white-space: nowrap;
}

#game-stage .st-day b {
  font: 800 14.5px/1.2 var(--st-ui);
  color: var(--st-wood-dk);
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#game-stage .st-hint {
  min-width: 0;
  flex: 1 1 auto;
  font: 600 11.5px/1.3 var(--st-ui);
  color: var(--st-ink);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  padding: 0 4px;
}

#game-stage .st-pills {
  margin-left: auto;
  display: flex;
  gap: 7px;
  flex: 0 0 auto;
}

#game-stage .st-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px 3px 6px;
  border-radius: 10px;
  background: var(--st-wood-dk);
  color: #fff4dc;
  box-shadow: 0 2px #2c1707;
}

#game-stage .st-pill img {
  width: 22px;
  height: 22px;
}

#game-stage .st-pill span {
  display: grid;
  line-height: 1.05;
}

#game-stage .st-pill i {
  font: 700 10px/1.1 var(--st-ui);
  font-style: normal;
  color: #f6d79a;
}

#game-stage .st-pill b {
  font: 800 13.5px/1.1 var(--st-ui);
  font-variant-numeric: tabular-nums;
}

#game-stage .st-net {
  margin-left: auto;
  display: grid;
  justify-items: end;
  line-height: 1;
  padding: 3px 10px;
  border: 2px solid currentColor;
  border-radius: 8px;
  transform: rotate(-2deg);
  background: #fffaeebf;
}

#game-stage .st-net.pos { color: var(--st-green); }
#game-stage .st-net.neg { color: var(--st-red); }

#game-stage .st-net i {
  font: 700 10px/1.1 var(--st-ui);
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: .04em;
}

#game-stage .st-net b {
  font: 800 16px/1.05 var(--st-ui);
  font-variant-numeric: tabular-nums;
}

#game-stage .st-x {
  flex: none;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--st-wood-dk);
  color: #fff4dc;
  font: 800 14px/1 var(--st-ui);
  box-shadow: 0 2px #2c1707;
}

/* Body: Left Tabs (136px) | Center Notebook | Right Panel (156px) */
#game-stage .st-body {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr) 172px;
  gap: 10px;
  min-height: 0;
  align-items: stretch;
}

#game-stage .st-tabs {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  align-content: start;
}

#game-stage .st-tab {
  position: relative;
  width: 100%;
  height: 52px;
  min-height: 52px;
  max-height: 52px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 8px;
  row-gap: 1px;
  align-content: center;
  text-align: left;
  padding: 6px 10px;
  border: 1.5px solid #a8723d;
  border-radius: 12px;
  background: linear-gradient(135deg, #a06733, #7a461d);
  color: #fff6e2;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  margin-right: 0;
  cursor: pointer;
  transition: transform .12s, background .12s, box-shadow .12s, border-color .12s;
  font-family: var(--st-ui);
}

#game-stage .st-tab:hover {
  background: linear-gradient(135deg, #b0743d, #8a5022);
  border-color: #bd824d;
  transform: translateY(-1px);
}

#game-stage .st-tab:active {
  transform: translateY(1px);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

#game-stage .st-tab img {
  grid-row: 1 / 3;
  width: 26px;
  height: 26px;
  object-fit: contain;
  align-self: center;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

#game-stage .st-tab b {
  font: 800 13px/1.2 var(--st-ui);
  white-space: nowrap;
  color: #fffaf0;
}

#game-stage .st-tab span {
  font: 600 11px/1.2 var(--st-ui);
  color: #fde68a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#game-stage .st-tab.on {
  background: #fffdf5;
  border: 2px solid #ea580c;
  color: #3b1d0d;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15), inset 4px 0 0 #ea580c;
  transform: scale(1.02);
  z-index: 2;
}

#game-stage .st-tab.on b {
  color: #3b1d0d;
  font-weight: 800;
}

#game-stage .st-tab.on span {
  color: #b45309;
  font-weight: 700;
}

#game-stage .st-dot {
  position: absolute;
  top: 4px;
  right: 10px;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--st-red);
  color: #fff;
  font: 800 11px/18px var(--st-ui);
  font-style: normal;
  text-align: center;
  box-shadow: 0 0 0 2px #fff4dc;
}

#game-stage .st-slip {
  position: relative;
  margin-top: 6px;
  padding: 6px 7px 5px;
  background: #fffaf0;
  border: 1px solid #e3cfa6;
  transform: rotate(-2deg);
  box-shadow: 0 3px 6px #46280a2e;
  font: 600 11.5px/1.25 var(--st-ui);
  color: var(--st-ink);
  overflow: hidden;
}

#game-stage .st-slip:before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 30px;
  height: 10px;
  margin-left: -15px;
  background: #fadc82d9;
  transform: rotate(3deg);
}

#game-stage .st-slip b {
  display: block;
  font: 800 11px/1.25 var(--st-ui);
  color: var(--st-red);
  letter-spacing: .03em;
  text-transform: uppercase;
}

/* Notebook Center Paper */
#game-stage .st-paper {
  position: relative;
  min-height: 0;
  overflow: hidden;
  border-radius: 12px;
  color: var(--st-ink);
  font-family: var(--st-ui);
  background-color: var(--st-paper);
  background-image: linear-gradient(to right, transparent 36px, var(--st-margin) 36px, var(--st-margin) 38px, transparent 38px), url(../assets/sprites/ui/giay_vo_texture.webp);
  background-size: auto, 256px 256px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(80, 45, 15, 0.18);
  border: 1.5px solid #d4be94;
}

#game-stage .st-pg {
  position: absolute;
  inset: 4px 12px 6px 44px;
  display: none;
  grid-template-rows: 32px minmax(0, 1fr) auto;
}

#game-stage .st-pg.on {
  display: grid;
}

#game-stage .st-ph {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 800 14px/34px var(--st-ui);
  color: var(--st-ink);
  white-space: nowrap;
  min-width: 0;
  border-bottom: 1px solid var(--st-rule);
}

#game-stage .st-ph small {
  margin-left: auto;
  font: 600 11.5px/1 var(--st-ui);
  color: var(--st-ink-soft);
  overflow: hidden;
  text-overflow: ellipsis;
}

#game-stage .st-tagline {
  margin-left: auto;
  font: 700 11.5px/1.2 var(--st-ui);
  color: var(--st-green);
  border: 1.5px solid var(--st-green);
  padding: 2px 6px;
  border-radius: 5px;
  transform: rotate(-2deg);
  opacity: .9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 60%;
}

#game-stage .st-lines {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-auto-rows: 38px;
  align-content: start;
  background-image: repeating-linear-gradient(to bottom, transparent 0 37px, var(--st-rule) 37px 38px);
  background-attachment: local;
}

#game-stage .st-lines.st-scroll {
  overflow-y: auto;
  overscroll-behavior: contain;
}

#game-stage .st-row {
  display: grid;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

#game-stage .st-cho-row {
  grid-template-columns: 34px minmax(0, 1.25fr) 56px 86px 72px;
}

#game-stage .st-food {
  width: 32px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .25));
}

#game-stage .st-nm {
  display: grid;
  line-height: 1.1;
  min-width: 0;
}

#game-stage .st-nm b {
  font: 800 13px/1.15 var(--st-ui);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--st-ink);
}

#game-stage .st-nm i {
  font: 600 10.5px/1.1 var(--st-ui);
  font-style: normal;
  color: var(--st-ink-soft);
}

#game-stage .st-moon {
  font-style: normal;
  font-size: 11px;
  margin-left: 2px;
}

#game-stage .st-need {
  font: 700 12px/1 var(--st-ui);
  color: var(--st-red);
  white-space: nowrap;
}

#game-stage .st-need.ok {
  color: var(--st-green);
}

#game-stage .st-cost {
  font: 700 11.5px/1 var(--st-ui);
  text-align: right;
  white-space: nowrap;
  color: var(--st-ink-soft);
  font-variant-numeric: tabular-nums;
}

#game-stage .st-step {
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  height: 26px;
}

#game-stage .st-step button {
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font: 800 14px/1 var(--st-ui);
  color: #fff;
  box-shadow: 0 2px #00000040;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#game-stage .st-step button.m { background: linear-gradient(#7fb6d8, #3f7fa8); }
#game-stage .st-step button.p { background: linear-gradient(#86cf52, var(--st-green)); }
#game-stage .st-step button:active { transform: translateY(1px); box-shadow: 0 1px #00000040; }
#game-stage .st-step button:disabled { background: #cbbf9f; box-shadow: none; cursor: default; }

#game-stage .st-step output {
  text-align: center;
  font: 800 14.5px/1 var(--st-ui);
  color: var(--st-ink);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

#game-stage .st-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  font: 800 13px/1.2 var(--st-ui);
  color: var(--st-ink);
  white-space: nowrap;
  flex-wrap: wrap;
  padding-bottom: 2px;
}

#game-stage .st-foot u {
  text-decoration: underline double var(--st-margin);
  text-underline-offset: 3px;
}

#game-stage .st-stamp {
  height: 30px;
  padding: 0 10px;
  border: 2px solid var(--st-red);
  border-radius: 7px;
  background: #fff5f0bf;
  color: var(--st-red);
  font: 800 11.5px/1 var(--st-ui)!important;
  letter-spacing: .02em;
  transform: rotate(-2deg);
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#game-stage .st-stamp+.st-stamp { margin-left: 0; }
#game-stage .st-stamp.blue { border-color: var(--st-ink); color: var(--st-ink); }
#game-stage .st-stamp:disabled { border-color: var(--st-green); color: var(--st-green); cursor: default; }

/* Két tiền Tab */
#game-stage .st-ket-cols {
  grid-template-columns: 1fr 1fr;
  grid-template-rows: repeat(5, 36px);
  grid-auto-flow: column;
  column-gap: 10px;
}

#game-stage .st-ket-row {
  grid-template-columns: 50px 76px minmax(0, 1fr);
  gap: 6px;
}

#game-stage .st-ket-row img {
  width: 48px;
  height: 26px;
  object-fit: contain;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2));
}

#game-stage .st-ket-row.is-empty img { filter: grayscale(1); opacity: .55; }
#game-stage .st-ket-row .st-step { grid-template-columns: 24px 1fr 24px; }
#game-stage .st-ket-row .st-step button { width: 24px; height: 24px; font-size: 14px; }
#game-stage .st-ket-row .st-step output { font-size: 14.5px; }

#game-stage .st-val {
  font: 700 11.5px/1 var(--st-ui);
  color: var(--st-ink-soft);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Cơm hộp Tab */
#game-stage .st-twin {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 4px;
  overflow: hidden;
}

#game-stage .st-sticky {
  align-self: start;
  background: var(--st-sticky);
  padding: 6px 10px 8px;
  transform: rotate(-1.2deg);
  box-shadow: 0 3px 6px #50320a40;
  color: #4a3510;
  font: 600 11.5px/1.3 var(--st-ui);
}

#game-stage .st-sticky h3 {
  margin: 0 0 3px;
  display: flex;
  align-items: center;
  gap: 5px;
  font: 800 12.5px/1.2 var(--st-ui);
  color: #6b3d0d;
}

#game-stage .st-sticky h3 img {
  width: 22px;
  height: 22px;
}

#game-stage .st-help {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border: 1.5px solid #6b3d0d;
  border-radius: 50%;
  background: transparent;
  color: #6b3d0d;
  font: 800 11.5px/1 var(--st-ui)!important;
}

#game-stage .st-sticky .st-step {
  width: 104px;
  margin: 2px 0 4px;
}

#game-stage .st-sticky .st-step output {
  font-size: 17px;
  color: #4a3510;
}

#game-stage .st-sticky p { margin: 0; }
#game-stage .st-sticky b.pos, #game-stage .st-price b.pos { color: var(--st-green); }
#game-stage .st-sticky b.neg { color: var(--st-red); }

#game-stage .st-price { min-width: 0; }

#game-stage .st-price-head {
  display: flex;
  align-items: center;
  gap: 6px;
}

#game-stage .st-price-head b {
  font: 800 13.5px/1.2 var(--st-ui);
  color: var(--st-ink);
  white-space: nowrap;
}

#game-stage .st-step-sm {
  width: 96px;
  margin-left: auto;
}

#game-stage .st-step-sm output {
  font-size: 15px;
}

#game-stage .st-price-sub {
  margin: 2px 0 4px;
  font: 600 11px/1.2 var(--st-ui);
  color: var(--st-ink-soft);
}

#game-stage .st-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}

#game-stage .st-chip {
  position: relative;
  display: grid;
  gap: 1px;
  padding: 3px 6px;
  min-height: 42px;
  border: 1.5px dashed #9eb4d6;
  border-radius: 8px;
  background: #ffffff8c;
  text-align: left;
  color: var(--st-ink);
}

#game-stage .st-chip b {
  font: 800 14px/1.1 var(--st-ui);
}

#game-stage .st-chip span {
  font: 600 10.5px/1.15 var(--st-ui);
  color: var(--st-ink-soft);
}

#game-stage .st-chip i {
  position: absolute;
  bottom: 3px;
  right: 5px;
  font: 800 10px/1 var(--st-ui);
  font-style: normal;
  color: var(--st-amber);
}

#game-stage .st-chip.on {
  border: 2px solid var(--st-margin);
  border-radius: 8px;
  background: #fff0e6cc;
}

#game-stage .st-note {
  margin: 4px 0 0;
  font: 600 11px/1.3 var(--st-ui);
  color: var(--st-ink-soft);
}

/* Thu Chi / Ledger */
#game-stage .st-ledger {
  min-height: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 14px;
  align-content: start;
  overflow: hidden;
  background-image: repeating-linear-gradient(to bottom, transparent 0 31px, var(--st-rule) 31px 32px);
}

#game-stage .st-col {
  display: grid;
  grid-auto-rows: 32px;
  align-content: start;
}

#game-stage .st-led {
  display: flex;
  align-items: center;
  gap: 6px;
  font: 600 12px/1 var(--st-ui);
  white-space: nowrap;
  min-width: 0;
}

#game-stage .st-led span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

#game-stage .st-led small {
  font-size: 10.5px;
  color: var(--st-ink-soft);
}

#game-stage .st-led b {
  margin-left: auto;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

#game-stage .st-led b.pos { color: var(--st-green); }
#game-stage .st-led b.neg { color: var(--st-red); }

#game-stage .st-led.total {
  font-size: 13px;
  font-weight: 800;
}

#game-stage .st-led.total span {
  text-decoration: underline double var(--st-margin);
  text-underline-offset: 3px;
}

#game-stage .st-stock {
  margin: 6px 0 0;
  padding: 5px 10px;
  border-radius: 8px;
  background: rgba(254, 243, 199, 0.92);
  border: 1px dashed #d97706;
  font: 600 11px/1.35 var(--st-ui);
  color: #78350f;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Missions */
#game-stage .st-mission {
  grid-template-columns: 24px minmax(0, 1fr);
  font: 600 12px/1.2 var(--st-ui);
}

#game-stage .st-mission > span:last-child {
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

#game-stage .st-mission img {
  width: 18px;
  height: 18px;
  vertical-align: -2px;
  object-fit: contain;
}

#game-stage .st-tick {
  font: 800 14px/1 var(--st-ui);
  text-align: center;
  color: var(--st-ink-soft);
}

#game-stage .st-mission.ok .st-tick { color: var(--st-green); }
#game-stage .st-mission.no .st-tick { color: var(--st-red); }
#game-stage .st-mission.no > span:last-child { color: var(--st-ink-soft); }

/* Transactions */
#game-stage .st-tx {
  grid-template-columns: 22px minmax(0, 1fr) auto;
}

#game-stage .st-tx-no {
  font: 700 11px/1 var(--st-ui);
  color: var(--st-ink-soft);
}

#game-stage .st-tx-who {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font: 600 11.5px/1.15 var(--st-ui);
}

#game-stage .st-tx-who b {
  font-weight: 800;
  font-size: 12px;
}

#game-stage .st-tx-who i {
  font-style: normal;
  font-size: 10.5px;
  color: var(--st-ink-soft);
  margin-right: 3px;
}

#game-stage .st-tx-who small {
  font-size: 10.5px;
  color: var(--st-ink-soft);
}

#game-stage .st-tx-amt {
  display: flex;
  gap: 4px;
  font: 800 11.5px/1 var(--st-ui);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

#game-stage .st-tx-amt b { font-weight: 800; }
#game-stage .st-tx-amt b.pos { color: var(--st-green); }
#game-stage .st-tx-amt b.neg { color: var(--st-red); }

/* Right Side Panel */
#game-stage .st-side {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 0;
  justify-content: space-between;
  font-family: var(--st-ui);
}

#game-stage .st-bubble {
  position: relative;
  background: #fffcf5;
  border: 1.5px solid var(--st-wood-lt);
  border-radius: 12px;
  padding: 7px 9px;
  font: 600 11.5px/1.35 var(--st-ui);
  color: #4a2a10;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
}

#game-stage .st-bubble img {
  float: left;
  width: 34px;
  height: 34px;
  margin: 0 7px 2px 0;
  border-radius: 50%;
  background: #fff3d6;
  border: 1.5px solid #b47539;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
}

#game-stage .st-sum {
  background: rgba(255, 250, 238, 0.95);
  border: 1.5px solid #d4b890;
  border-radius: 11px;
  padding: 6px 10px;
  display: grid;
  gap: 3px;
  font: 600 11.5px/1.25 var(--st-ui);
  color: #5a3419;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.06);
  margin-top: 0;
}

#game-stage .st-sum div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

#game-stage .st-sum div span {
  font-size: 11.5px;
  font-weight: 700;
  color: #6b4226;
}

#game-stage .st-sum b {
  font-size: 12.5px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #2a1405;
}

#game-stage .st-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  margin-top: auto;
}

/* Secondary Button (Chụp check-in / Quay lại bán tiếp) */
#game-stage .st-mini,
#game-stage .st-checkin-btn,
#game-stage .st-back-btn,
#game-stage .st-side button.st-mini {
  width: 100%;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  box-sizing: border-box;
  border: 1.5px solid #b47539;
  border-radius: 12px;
  background: linear-gradient(180deg, #fffdf8, #feecc8);
  color: #5a3419;
  font-family: var(--st-ui) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 3px #8b532266;
  cursor: pointer;
  transition: transform .12s, background .12s, box-shadow .12s;
}

#game-stage .st-mini:hover,
#game-stage .st-checkin-btn:hover,
#game-stage .st-back-btn:hover {
  background: linear-gradient(180deg, #ffffff, #fff3d6);
  transform: translateY(-1px);
  box-shadow: 0 4px #8b532280;
}

#game-stage .st-mini:active,
#game-stage .st-checkin-btn:active,
#game-stage .st-back-btn:active {
  transform: translateY(1px);
  box-shadow: 0 1px #8b532266;
}

#game-stage .st-mini .st-btn-ic {
  font-size: 15px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
}

#game-stage .st-mini:disabled {
  opacity: .55;
  cursor: default;
  transform: none;
  box-shadow: none;
}

/* Primary Button (Đóng sổ & Nghỉ ngơi / Mở hàng) */
#game-stage .st-open,
#game-stage .st-side .st-open {
  flex: none;
  width: 100%;
  min-height: 48px;
  max-height: 52px;
  box-sizing: border-box;
  padding: 4px 8px;
  border: 1.5px solid #82340b;
  border-radius: 14px;
  background: linear-gradient(135deg, #f59e0b, #d97706);
  color: #fff;
  font-family: var(--st-ui) !important;
  font-weight: 800 !important;
  letter-spacing: .02em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
  box-shadow: 0 4px #78350f, 0 6px 14px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform .12s, background .12s, box-shadow .12s;
}

#game-stage .st-open:hover {
  background: linear-gradient(135deg, #fbbf24, #ea580c);
  transform: translateY(-1px);
  box-shadow: 0 5px #78350f, 0 8px 16px rgba(0, 0, 0, 0.25);
}

#game-stage .st-open:active {
  transform: translateY(2px);
  box-shadow: 0 2px #78350f;
}

#game-stage .st-open:disabled {
  background: #a89a85;
  border-color: #7d6e5c;
  box-shadow: 0 3px #594d3f;
  color: #eee4d5;
  cursor: default;
  transform: none;
  opacity: .8;
}

#game-stage .st-open img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,0.25));
}

#game-stage .st-open.st-next {
  white-space: normal;
  text-align: center;
  gap: 2px;
}

#game-stage .st-open .st-next-title {
  font-size: 13.5px !important;
  font-weight: 800 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
  font-family: var(--st-ui);
}

#game-stage .st-open .st-next-sub {
  font-size: 10.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  color: #fff2d6 !important;
  opacity: 0.95 !important;
  background: rgba(0, 0, 0, 0.22) !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  margin-top: 2px !important;
  letter-spacing: .03em !important;
  white-space: nowrap !important;
  font-family: var(--st-ui);
}
