.balance-stack {
  flex: none;
  display: grid;
  justify-items: end;
  gap: 3px;
  width: clamp(118px, 43vw, 165px);
  max-width: 47%;
}
.app-shell:not([data-page='factory']) .tour-help { display: none; }

.balance-stack .balance {
  width: 100%;
  max-width: 100%;
}

.tour-help {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  max-width: 100%;
  min-height: 31px;
  padding: 3px 9px 3px 5px;
  border: 1px solid #eea361;
  border-radius: 999px;
  background: linear-gradient(#aa5f34, #6a2b17 69%, #552111);
  box-shadow: inset 0 1px #fff1b34d, 0 2px 4px #260d17aa;
  color: #fff0cf;
  font: inherit;
  font-size: .72rem;
  font-weight: 950;
  line-height: 1.15;
  text-shadow: 0 1px #482013;
  cursor: pointer;
}
.tour-help:active { transform: translateY(1px); }
.tour-help:focus-visible { outline: 2px solid #ffe5a0; outline-offset: 2px; }
.tour-help-mark {
  display: grid;
  place-items: center;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1px solid #ffc76d;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 24%, #fff2aa, #ffbc4b 55%, #cb6f18);
  box-shadow: inset 0 1px #fff5c2, 0 1px 3px #3c1708a6;
  color: #63240e;
  font-size: .85rem;
  line-height: 1;
  text-shadow: none;
}

.choco-tour {
  max-width: 370px;
  text-align: center;
}

.tour-skip {
  display: block;
  margin-inline-start: auto;
  padding: 4px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #754425;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
}

.tour-art {
  display: block;
  margin: 2px auto 12px;
  object-fit: contain;
  filter: drop-shadow(0 6px 8px #85441835);
}

.choco-tour h2 { margin-bottom: 10px; }
.choco-tour .tour-message p { font-size: .95rem; }
.tour-message { min-height: 102px; }
.tour-progress {
  display: flex;
  justify-content: center;
  gap: 7px;
  margin: 16px 0;
}
.tour-progress span {
  width: 10px;
  height: 10px;
  border: 1px solid #af6d38;
  border-radius: 50%;
  background: #edc490;
}
.tour-progress .active { background: #aa5521; }
.tour-actions { display: flex; gap: 8px; }
.tour-actions > button { flex: 1; }
.tour-running .page { overflow: hidden !important; touch-action: none; }
.choco-tour.spotlight-tour {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
}
.spotlight-tour::backdrop { background: transparent; }
.tour-shade, .tour-ring { position: absolute; border-radius: 15px; pointer-events: none; }
.tour-shade { box-shadow: 0 0 0 200vmax #1f0b19c9; }
.tour-ring { border: 2px solid #ffe8a0; box-shadow: 0 0 0 3px #c77a26, inset 0 0 0 1px #ffca65; }
.spotlight-tour .tour-card {
  position: absolute;
  width: min(370px, calc(100% - 16px));
  margin: 0;
  padding: 12px 16px 14px;
  max-height: none;
  overflow: visible;
  text-align: center;
}
.spotlight-tour .tour-art { width: 54px; height: 54px; margin: -4px auto 6px; }
.spotlight-tour .tour-card h2 { font-size: 20px; margin-bottom: 8px; }
.spotlight-tour .tour-message { min-height: 0; }
.spotlight-tour .tour-message p { font-size: .85rem; line-height: 1.35; }
.spotlight-tour .tour-progress { margin: 12px 0; }
@media (max-height: 530px) {
  .spotlight-tour .tour-art { display: none; }
  .spotlight-tour .tour-card { padding: 8px 12px 10px; }
  .spotlight-tour .tour-card h2 { font-size: 17px; margin-bottom: 5px; }
  .spotlight-tour .tour-message p { font-size: .76rem; }
}
