/* Same-origin Garden Bot preview only — first-time fifth-card onboarding.
   The original /battle pages do NOT load this stylesheet. */
.gb-turn-command:has(.gb-bonus-step-help) {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}

.gb-bonus-step-help {
  display: grid;
  gap: 10px;
  width: 100%;
  padding: 8px 4px 2px;
}

.gb-bonus-step-help p {
  margin: 0;
  color: #e4fbf0;
  font-family: system-ui, sans-serif;
  font-size: clamp(12px, 3.4vw, 14px);
  font-weight: 500;
  line-height: 1.45;
  text-align: left;
}

.gb-bonus-step-help button {
  min-height: 48px;
  width: 100%;
  padding: 10px 12px;
  background: linear-gradient(110deg, #b56cff, #f0ca4d);
  border: 2px solid #f6df9c;
  border-radius: 9px;
  color: #150a26;
  font-family: Orbitron, sans-serif;
  font-weight: 900;
  font-size: clamp(11px, 3vw, 13px);
  letter-spacing: .02em;
  cursor: pointer;
  touch-action: manipulation;
}
.gb-bonus-step-help button:focus-visible {
  outline: 3px solid #f7ffff;
  outline-offset: 3px;
}
.gb-fifth-picker, .gb-move-card-grid { scroll-margin-top: 16px; }

@media (max-width: 640px) {
  /* During the bonus phase, put the actual choices before rerolls and warnings,
     so "Step 1" immediately precedes the only required action. */
  .gb-battle-options:has(> .gb-fifth-picker) {
    display: flex;
    flex-direction: column;
  }
  .gb-battle-options:has(> .gb-fifth-picker) > .gb-turn-command { order: -2; }
  .gb-battle-options:has(> .gb-fifth-picker) > .gb-fifth-picker { order: -1; }

  .gb-battle-options:has(> .gb-fifth-picker) > .gb-fifth-picker {
    margin-top: 2px;
    margin-bottom: 11px;
  }
}
