/* Earn guide wizard — scoped to Aurora theme tokens (light + dark) */

.fx-guide-wizard.modal {
  --bs-modal-bg: transparent;
}

.fx-guide-wizard.modal.show,
.fx-guide-wizard.modal.showing {
  display: flex !important;
  align-items: flex-end;
  padding: 0;
}

.fx-guide-wizard-dialog {
  width: 100%;
  max-width: var(--app-width, 430px);
  max-height: min(92dvh, 820px);
  margin: 0 auto;
}

.fx-guide-wizard.modal.fade .modal-dialog {
  transition: transform 0.32s cubic-bezier(0.22, 1, 0.36, 1);
  transform: translate3d(0, 100%, 0);
}

.fx-guide-wizard.modal.show .modal-dialog,
.fx-guide-wizard.modal.showing .modal-dialog {
  transform: translate3d(0, 0, 0);
}

.fx-guide-wizard.modal.modal-static .modal-dialog {
  transform: translate3d(0, 0, 0);
}

.fx-guide-wizard-sheet {
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-bottom: 0;
  border-radius: 22px 22px 0 0 !important;
  border-bottom-left-radius: 0 !important;
  border-bottom-right-radius: 0 !important;
  background: var(--fx-card, #fff);
  box-shadow: var(--fx-shadow, 0 18px 38px -20px rgba(30, 41, 89, 0.28));
  max-height: min(92dvh, 820px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
  color: var(--fx-ink-soft, #475569);
}

.fx-guide-wizard-head {
  flex-shrink: 0;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 12px;
  border-bottom: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  background: var(--fx-card, #fff);
}

.easyfx-dashboard.fx-aurora .fx-guide-wizard-head .fx-dep-eyebrow {
  color: var(--fx-indigo, #6366f1);
}

.easyfx-dashboard.fx-aurora .fx-guide-wizard-head .fx-page-title,
.fx-guide-wizard-head .fx-page-title {
  margin: 4px 0 0;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--fx-ink, #0f172a) !important;
}

.easyfx-dashboard.fx-aurora .fx-guide-wizard-head .fx-page-sub,
.fx-guide-wizard-head .fx-page-sub {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.45;
  color: var(--fx-muted, #6b7a90) !important;
}

.fx-guide-wizard-close {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.1));
  border-radius: var(--fx-radius, 5px);
  background: rgba(15, 23, 42, 0.04);
  color: var(--fx-ink, #0f172a);
  font-size: 16px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.fx-guide-wizard-close:hover {
  background: rgba(15, 23, 42, 0.08);
  border-color: rgba(15, 23, 42, 0.14);
}

.fx-guide-wizard-close .icon-cancel,
.fx-guide-wizard-close .icon-cancel:before {
  color: inherit !important;
}

.fx-guide-wizard-progress {
  flex-shrink: 0;
  height: 3px;
  background: var(--fx-line, rgba(15, 23, 42, 0.08));
}

.fx-guide-wizard-progress-bar {
  display: block;
  height: 100%;
  width: 33%;
  background: linear-gradient(90deg, var(--fx-emerald, #10b981), var(--fx-indigo, #6366f1));
  transition: width 0.28s ease;
}

.fx-guide-wizard-body {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 16px 18px 10px;
  background: var(--fx-bg, #eef1fb);
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

.fx-guide-wizard-step[hidden] {
  display: none !important;
}

.fx-guide-wizard-label {
  margin: 0 0 10px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--fx-muted, #6b7a90);
}

.fx-guide-wizard-hint {
  margin: -4px 0 12px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fx-muted, #6b7a90);
}

.fx-guide-wizard-hint strong {
  color: var(--fx-ink, #0f172a);
  font-weight: 700;
}

.fx-guide-step-notes {
  margin: 14px 0 0;
  padding: 12px 14px;
  list-style: none;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
}

.fx-guide-step-notes li {
  font-size: 12px;
  line-height: 1.5;
  color: var(--fx-muted, #6b7a90);
}

.fx-guide-step-notes li + li {
  margin-top: 8px;
}

.fx-guide-step-notes strong {
  color: var(--fx-ink, #0f172a);
}

.fx-guide-wizard-back {
  margin: 0 0 12px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.easyfx-dashboard.fx-aurora .fx-guide-wizard-back {
  color: var(--fx-indigo, #6366f1) !important;
  background: transparent !important;
  border: 0 !important;
}

.fx-guide-wizard-paths {
  display: grid;
  gap: 10px;
}

.fx-guide-wizard-paths--simple .fx-guide-path-card {
  grid-template-columns: auto 1fr auto;
}

.fx-guide-path-copy small strong {
  color: var(--fx-indigo, #6366f1);
  font-weight: 700;
}

html.fx-dark .fx-guide-path-copy small strong {
  color: #a5b4fc;
}

.fx-guide-path-card {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 0;
  padding: 14px 14px 14px 12px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08)) !important;
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff) !important;
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.26));
  color: inherit !important;
  font-weight: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.easyfx-dashboard.fx-aurora .fx-guide-path-card,
.easyfx-dashboard.fx-aurora .fx-guide-path-card:hover,
.easyfx-dashboard.fx-aurora .fx-guide-path-card:focus,
.easyfx-dashboard.fx-aurora .fx-guide-path-card:focus-visible,
.easyfx-dashboard.fx-aurora .fx-guide-path-card:active {
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08)) !important;
  background: var(--fx-card, #fff) !important;
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.26)) !important;
  color: inherit !important;
  transform: none !important;
}

.fx-guide-path-card:hover,
.fx-guide-path-card:focus,
.fx-guide-path-card:focus-visible,
.fx-guide-path-card:active {
  border-color: var(--fx-line, rgba(15, 23, 42, 0.08)) !important;
  outline: none;
  background: var(--fx-card, #fff) !important;
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.26)) !important;
  transform: none !important;
}

html.fx-dark .easyfx-dashboard.fx-aurora .fx-guide-path-card,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-guide-path-card:hover,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-guide-path-card:focus,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-guide-path-card:focus-visible,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-guide-path-card:active {
  background: var(--fx-card, #121820) !important;
  border-color: var(--fx-line) !important;
}

.fx-guide-path-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: var(--fx-radius, 5px);
  font-size: 18px;
  flex-shrink: 0;
}

.fx-guide-path-icon--referral {
  background: rgba(99, 102, 241, 0.16);
  color: #4f46e5;
}

.fx-guide-path-icon--referral i,
.fx-guide-path-icon--referral i:before {
  color: #4f46e5 !important;
}

.fx-guide-path-icon--deposit,
.fx-guide-path-icon--gaming {
  background: rgba(16, 185, 129, 0.16);
  color: #059669;
}

.fx-guide-path-icon--deposit i,
.fx-guide-path-icon--deposit i:before,
.fx-guide-path-icon--gaming i,
.fx-guide-path-icon--gaming i:before {
  color: #059669 !important;
}

.fx-guide-path-icon--trading {
  background: rgba(99, 102, 241, 0.16);
  color: #4f46e5;
}

.fx-guide-path-icon--trading i,
.fx-guide-path-icon--trading i:before {
  color: #4f46e5 !important;
}

.fx-guide-path-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fx-guide-path-copy strong {
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
  line-height: 1.25;
}

.fx-guide-path-copy small {
  font-size: 12px;
  line-height: 1.45;
  color: var(--fx-muted, #6b7a90);
}

.fx-guide-path-tag {
  flex-shrink: 0;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: var(--fx-indigo, #6366f1);
  background: rgba(99, 102, 241, 0.1);
}

.fx-guide-path-tag--fast {
  color: #047857;
  background: rgba(16, 185, 129, 0.12);
}

.fx-guide-path-arrow {
  font-size: 12px;
  color: var(--fx-muted, #94a3b8);
}

.fx-guide-wizard-sheet .fx-card {
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.26));
}

.easyfx-dashboard.fx-aurora .fx-guide-wizard-sheet .fx-card-title {
  color: var(--fx-ink, #0f172a) !important;
}

.easyfx-dashboard.fx-aurora .fx-guide-wizard-sheet .fx-card-sub {
  color: var(--fx-muted, #6b7a90) !important;
}

.fx-guide-referral-card {
  padding: 16px;
}

.fx-guide-referral-card .fx-card-head {
  margin-bottom: 10px;
}

.fx-guide-benefits {
  margin: 0 0 14px;
  padding: 0;
}

.easyfx-dashboard.fx-aurora .fx-guide-wizard-sheet .fx-invite-benefits li {
  color: var(--fx-ink-soft, #475569) !important;
}

.fx-guide-wizard-link-block {
  margin-bottom: 12px;
}

.fx-guide-guest-hint {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: var(--fx-radius, 5px);
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: rgba(99, 102, 241, 0.08);
  font-size: 13px;
  line-height: 1.45;
  color: var(--fx-indigo, #6366f1);
}

.fx-guide-wizard-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.fx-guide-wizard-secondary-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 16px;
  border: 1.5px solid rgba(15, 23, 42, 0.12) !important;
  border-radius: var(--fx-radius, 5px) !important;
  background: #fff !important;
  color: var(--fx-ink, #0f172a) !important;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 6px 14px -10px rgba(15, 23, 42, 0.18);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.fx-guide-wizard-secondary-btn:hover {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
  color: var(--fx-ink, #0f172a) !important;
}

.fx-guide-wizard-secondary-btn--trade {
  color: #4338ca !important;
  border-color: rgba(99, 102, 241, 0.38) !important;
  background: #fff !important;
}

.fx-guide-wizard-secondary-btn--trade:hover {
  background: #eef2ff !important;
  color: #3730a3 !important;
  border-color: rgba(99, 102, 241, 0.5) !important;
}

.fx-guide-package-empty {
  padding: 16px;
  display: grid;
  gap: 12px;
}

.easyfx-dashboard.fx-aurora .fx-guide-wizard-sheet .fx-earn-copy .fx-field-input-icon,
.easyfx-dashboard.fx-aurora .fx-guide-wizard-sheet .fx-earn-copy .fx-field-input-icon:before {
  color: var(--fx-indigo, #6366f1) !important;
}

.fx-guide-package-scroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  margin-bottom: 12px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.fx-guide-package-scroll::-webkit-scrollbar {
  display: none;
}

.fx-guide-package-chip {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  min-width: 88px;
  padding: 10px 12px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-card, #fff);
  box-shadow: var(--fx-shadow-sm, 0 10px 22px -14px rgba(30, 41, 89, 0.26));
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.fx-guide-package-chip:hover {
  border-color: rgba(99, 102, 241, 0.22);
}

.fx-guide-package-chip.is-active {
  border-color: color-mix(in srgb, var(--board-accent, #10b981) 45%, rgba(15, 23, 42, 0.08));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--board-accent, #10b981) 10%, transparent), transparent),
    var(--fx-card, #fff);
}

.fx-guide-package-chip-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
}

.fx-guide-package-chip-price {
  font-size: 11px;
  font-weight: 600;
  color: var(--fx-muted, #6b7a90);
}

.fx-guide-package-detail {
  padding: 14px;
  border-color: color-mix(in srgb, var(--board-accent, #10b981) 30%, var(--fx-line, rgba(15, 23, 42, 0.08)));
}

.easyfx-dashboard.fx-aurora .fx-guide-package-detail .fx-owned-board-name {
  color: var(--fx-ink, #0f172a) !important;
}

.easyfx-dashboard.fx-aurora .fx-guide-package-detail .fx-owned-board-status,
.easyfx-dashboard.fx-aurora .fx-guide-package-detail .fx-owned-board-plays {
  color: var(--fx-muted, #6b7a90);
}

.fx-guide-board-meta--earnings {
  grid-template-columns: repeat(3, 1fr);
}

.fx-guide-stat-profit {
  color: var(--fx-indigo, #6366f1);
}

.fx-guide-stat-daily {
  color: #059669;
}

html.fx-dark .fx-guide-stat-profit {
  color: #a5b4fc;
}

html.fx-dark .fx-guide-stat-daily {
  color: #6ee7b7;
}

.fx-guide-board-meta {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 12px;
  margin: 12px 0 0;
}

.fx-guide-board-meta > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fx-guide-board-meta dt {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fx-muted, #6b7a90);
}

.fx-guide-board-meta dd {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--fx-ink, #0f172a);
  font-variant-numeric: tabular-nums;
}

.fx-guide-package-detail-note {
  margin: 12px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fx-muted, #6b7a90);
}

.fx-guide-trading-calc {
  padding: 14px;
  margin-bottom: 0;
}

.fx-guide-trading-calc .fx-card-head {
  margin-bottom: 12px;
}

.fx-guide-wizard-foot {
  flex-shrink: 0;
  padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  background: var(--fx-card, #fff);
  text-align: center;
}

.easyfx-dashboard.fx-aurora .fx-guide-wizard-foot-link,
.fx-guide-wizard-foot-link {
  font-size: 13px;
  font-weight: 600;
  color: var(--fx-indigo, #6366f1) !important;
  background: transparent !important;
  border: 0 !important;
  text-decoration: none !important;
}

.easyfx-dashboard.fx-aurora .fx-guide-wizard-foot-link:hover {
  color: #4f46e5 !important;
}

body.fx-guide-wizard-open {
  overflow: hidden;
}

/* Dark mode — inherit Aurora dark tokens inside wizard */
html.fx-dark .fx-guide-wizard-sheet {
  background: var(--fx-card, #121820);
  border-color: var(--fx-line);
}

html.fx-dark .fx-guide-wizard-head,
html.fx-dark .fx-guide-wizard-foot {
  background: var(--fx-card, #121820);
  border-color: var(--fx-line);
}

html.fx-dark .fx-guide-wizard-body {
  background: var(--fx-bg, #090c12);
}

html.fx-dark .fx-guide-wizard-head .fx-page-title,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-guide-wizard-head .fx-page-title {
  color: var(--fx-ink, #f1f5f9) !important;
}

html.fx-dark .fx-guide-wizard-head .fx-page-sub,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-guide-wizard-head .fx-page-sub {
  color: var(--fx-muted, #94a3b8) !important;
}

html.fx-dark .fx-guide-path-card,
html.fx-dark .fx-guide-wizard-sheet .fx-card,
html.fx-dark .fx-guide-package-chip {
  background: var(--fx-card, #121820);
  border-color: var(--fx-line);
}

html.fx-dark .fx-guide-path-copy strong,
html.fx-dark .fx-guide-package-chip-name,
html.fx-dark .fx-guide-board-meta dd,
html.fx-dark .easyfx-dashboard.fx-aurora .fx-guide-wizard-sheet .fx-card-title {
  color: var(--fx-ink, #f1f5f9) !important;
}

html.fx-dark .fx-guide-path-copy small,
html.fx-dark .fx-guide-wizard-label,
html.fx-dark .fx-guide-wizard-hint,
html.fx-dark .fx-guide-package-detail-note {
  color: var(--fx-muted, #94a3b8);
}

html.fx-dark .fx-guide-wizard-hint strong,
html.fx-dark .fx-guide-step-notes strong {
  color: var(--fx-ink, #f1f5f9);
}

html.fx-dark .fx-guide-step-notes {
  background: var(--fx-card, #121820);
  border-color: var(--fx-line);
}

html.fx-dark .fx-guide-wizard-secondary-btn {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: var(--fx-line) !important;
  color: var(--fx-ink, #f1f5f9) !important;
}

html.fx-dark .fx-guide-wizard-secondary-btn--trade {
  background: rgba(99, 102, 241, 0.12) !important;
  border-color: rgba(129, 140, 248, 0.45) !important;
  color: #c7d2fe !important;
}

html.fx-dark .fx-guide-wizard-secondary-btn--trade:hover {
  background: rgba(99, 102, 241, 0.2) !important;
  color: #e0e7ff !important;
}

html.fx-dark .fx-guide-path-icon--referral i,
html.fx-dark .fx-guide-path-icon--referral i:before,
html.fx-dark .fx-guide-path-icon--trading i,
html.fx-dark .fx-guide-path-icon--trading i:before {
  color: #a5b4fc !important;
}

html.fx-dark .fx-guide-path-icon--deposit i,
html.fx-dark .fx-guide-path-icon--deposit i:before,
html.fx-dark .fx-guide-path-icon--gaming i,
html.fx-dark .fx-guide-path-icon--gaming i:before {
  color: #6ee7b7 !important;
}

html.fx-dark .fx-guide-wizard-close {
  background: rgba(255, 255, 255, 0.06);
  border-color: var(--fx-line);
  color: var(--fx-ink, #f1f5f9);
}

@media (min-width: 520px) {
  .fx-guide-wizard.modal.show,
  .fx-guide-wizard.modal.showing {
    align-items: flex-end;
    padding: 0;
  }

  .fx-guide-wizard-sheet {
    border-radius: 22px 22px 0 0 !important;
    border-bottom-left-radius: 0 !important;
    border-bottom-right-radius: 0 !important;
  }
}

/* Catapult earning demo (referral step) */

.fx-guide-catapult-demo {
  margin-bottom: 12px;
  padding: 16px;
}

.fx-guide-catapult-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
}

.fx-guide-catapult-steps li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 10px 6px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-bg, #eef1fb);
  text-align: center;
}

.fx-guide-catapult-step-num {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.14);
  color: var(--fx-indigo, #6366f1);
  font-size: 11px;
  font-weight: 800;
}

.fx-guide-catapult-step-copy {
  font-size: 11px;
  line-height: 1.35;
  color: var(--fx-ink-soft, #475569);
}

.fx-guide-catapult-step-copy strong {
  display: block;
  font-size: 12px;
  color: var(--fx-ink, #0f172a);
}

.fx-guide-catapult-stage {
  margin-bottom: 12px;
}

.fx-guide-catapult-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.fx-guide-catapult-stage-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--fx-muted, #6b7a90);
}

.fx-guide-catapult-stage-note {
  font-size: 11px;
  color: var(--fx-muted, #6b7a90);
}

.fx-guide-catapult-rail {
  position: relative;
  padding: 34px 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.22);
  background:
    radial-gradient(circle at 50% 112%, rgba(16, 185, 129, 0.18), transparent 54%),
    linear-gradient(180deg, #0f172a 0%, #1e293b 58%, #102437 100%);
  overflow: hidden;
}

.fx-guide-catapult-rail::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 24px;
  bottom: 26px;
  width: 2px;
  transform: translateX(-50%);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.36), rgba(248, 250, 252, 0));
  opacity: 0.7;
  pointer-events: none;
}

.fx-guide-catapult-aim {
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  margin-left: -36px;
  opacity: 0;
  transform: translateX(var(--fx-guide-aim-x, 0)) scale(0.92);
  transition: opacity 0.2s ease, transform 0.28s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: none;
}

.fx-guide-catapult-aim.is-visible {
  opacity: 1;
  transform: translateX(var(--fx-guide-aim-x, 0)) scale(1);
}

.fx-guide-catapult-aim-tip {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 9px solid #f8fafc;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.35));
}

.fx-guide-catapult-aim-label {
  margin-top: 4px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.12);
  color: #e2e8f0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.fx-guide-catapult-board-viewport {
  position: relative;
  z-index: 3;
  height: 58px;
  margin: 0 -2px;
  overflow: hidden;
  border-radius: 10px;
}

.fx-guide-catapult-board {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.fx-guide-catapult-track {
  position: absolute;
  left: 50%;
  top: 50%;
  margin-top: -29px;
  display: flex;
  gap: 8px;
  width: max-content;
  will-change: transform;
  transform: translate3d(-50%, 0, 0);
}

.fx-guide-catapult-ball {
  position: relative;
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  max-width: none;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow:
    0 8px 14px rgba(0, 0, 0, 0.28),
    inset 0 2px 6px rgba(255, 255, 255, 0.22);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.fx-guide-catapult-ball::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 52%;
  height: 52%;
  border-radius: 50%;
  transform: translate(-50%, -50%);
  background: rgba(255, 255, 255, 0.92);
  z-index: 1;
}

.fx-guide-catapult-ball-value {
  position: relative;
  z-index: 2;
  font-family: "Barlow Condensed", "Plus Jakarta Sans", sans-serif;
  font-size: clamp(9px, 2.6vw, 11px);
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  text-align: center;
  white-space: nowrap;
}

.fx-guide-catapult-ball.low {
  background: radial-gradient(circle at 32% 28%, #7ef0b8, #22c07a 42%, #0f6844 88%);
  color: #0f5132;
}

.fx-guide-catapult-ball.mid {
  background: radial-gradient(circle at 32% 28%, #8fd0ff, #3b9ae8 42%, #1a5f99 88%);
  color: #ffffff;
}

.fx-guide-catapult-ball.jackpot {
  background: radial-gradient(circle at 32% 28%, #ffe38a, #ffc83d 38%, #c7770f 88%);
  color: #3b2100;
}

.fx-guide-catapult-ball:hover {
  transform: translateY(-2px);
}

.fx-guide-catapult-ball.is-aimed {
  border-color: rgba(250, 204, 21, 0.78);
  box-shadow:
    0 0 0 2px rgba(250, 204, 21, 0.32),
    0 8px 14px rgba(0, 0, 0, 0.28),
    inset 0 2px 6px rgba(255, 255, 255, 0.22);
}

.fx-guide-catapult-ball.is-active {
  border-color: rgba(255, 255, 255, 0.95);
  transform: translateY(-3px) scale(1.06);
  box-shadow:
    0 0 0 3px rgba(99, 102, 241, 0.45),
    0 10px 18px rgba(0, 0, 0, 0.34),
    inset 0 2px 6px rgba(255, 255, 255, 0.28);
}

.fx-guide-catapult-ball.is-scanning {
  border-color: rgba(255, 255, 255, 0.55);
  transform: scale(1.03);
}

.fx-guide-catapult-lane {
  position: relative;
  z-index: 2;
  height: 118px;
  margin-top: 10px;
  touch-action: none;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
}

.fx-guide-catapult-lane.is-dragging {
  cursor: grabbing;
}

.fx-guide-catapult-path {
  position: absolute;
  left: 50%;
  bottom: 46px;
  width: 2px;
  height: 72px;
  transform: translateX(-50%);
  transform-origin: bottom center;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(250, 204, 21, 0), rgba(250, 204, 21, 0.72));
  opacity: 0;
  transition: opacity 0.16s ease, transform 0.28s ease;
}

.fx-guide-catapult-demo.is-pulling .fx-guide-catapult-path {
  opacity: 0.55;
  transform: translateX(calc(-50% + var(--fx-guide-hit-x, 0px)));
}

.fx-guide-catapult-demo.is-flying .fx-guide-catapult-path,
.fx-guide-catapult-demo.is-hit .fx-guide-catapult-path {
  opacity: 1;
  transform: translateX(calc(-50% + var(--fx-guide-hit-x, 0px)));
}

.fx-guide-catapult-stone {
  position: absolute;
  left: 50%;
  bottom: 34px;
  z-index: 4;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  transform: translateX(-50%);
  background:
    radial-gradient(circle at 32% 28%, #f8fafc 0 12%, #8d99a4 13% 34%, #414c56 58%, #111827 100%);
  border: 2px solid rgba(255, 255, 255, 0.56);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.38);
  transition: transform 0.52s cubic-bezier(0.2, 0.86, 0.24, 1), box-shadow 0.18s ease;
}

.fx-guide-catapult-demo.is-pulling .fx-guide-catapult-stone {
  transform: translate(-50%, var(--fx-guide-pull-y, 18px)) scale(1.05);
  transition: transform 0.08s ease;
}

.fx-guide-catapult-demo.is-flying .fx-guide-catapult-stone,
.fx-guide-catapult-demo.is-hit .fx-guide-catapult-stone {
  transform: translate(calc(-50% + var(--fx-guide-hit-x, 0px)), -102px) scale(0.86) rotate(58deg);
  box-shadow: 0 8px 22px rgba(250, 204, 21, 0.32);
  transition: transform 0.52s cubic-bezier(0.2, 0.86, 0.24, 1), box-shadow 0.18s ease;
}

.fx-guide-catapult-demo.is-returning .fx-guide-catapult-stone {
  transform: translateX(-50%);
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.38);
  transition: transform 0.48s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.24s ease;
}

.fx-guide-catapult-demo.is-returning .fx-guide-catapult-path {
  opacity: 0;
  transition: opacity 0.2s ease;
}

.fx-guide-catapult-demo.is-board-paused .fx-guide-catapult-track {
  transition: transform 0.08s linear;
}

.fx-guide-catapult-sling {
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 94px;
  height: 62px;
  transform: translateX(-50%);
}

.fx-guide-catapult-sling::before,
.fx-guide-catapult-sling::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 58px;
  border-radius: 999px 999px 6px 6px;
  background: linear-gradient(180deg, #9a5c2f, #5f341d);
  box-shadow: inset 0 2px 0 rgba(255, 255, 255, 0.22), 0 8px 12px rgba(0, 0, 0, 0.2);
}

.fx-guide-catapult-sling::before {
  left: 16px;
  transform: rotate(11deg);
}

.fx-guide-catapult-sling::after {
  right: 16px;
  transform: rotate(-11deg);
}

.fx-guide-catapult-sling-band {
  position: absolute;
  left: 22px;
  right: 22px;
  bottom: 36px;
  height: 14px;
  border-bottom: 4px solid #2b1710;
  border-radius: 0 0 50% 50%;
  transition: transform 0.28s ease;
}

.fx-guide-catapult-demo.is-pulling .fx-guide-catapult-sling-band {
  transform: translateY(var(--fx-guide-pull-y, 16px)) scaleX(0.9);
}

.fx-guide-catapult-pull {
  position: absolute;
  left: 50%;
  bottom: 64px;
  transform: translateX(-50%);
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(248, 250, 252, 0.12);
  color: #e2e8f0;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.fx-guide-catapult-demo.is-flying .fx-guide-catapult-pull,
.fx-guide-catapult-demo.is-hit .fx-guide-catapult-pull {
  opacity: 0;
}

.fx-guide-catapult-launch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 10px;
  padding: 12px 14px;
  border: 1px solid rgba(99, 102, 241, 0.24);
  border-radius: var(--fx-radius, 5px);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.12), rgba(16, 185, 129, 0.08));
  color: var(--fx-indigo, #6366f1);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.12s ease, opacity 0.15s ease;
}

.fx-guide-catapult-launch-btn:hover {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.18), rgba(16, 185, 129, 0.12));
}

.fx-guide-catapult-launch-btn:active {
  transform: scale(0.99);
}

.fx-guide-catapult-launch-btn:disabled {
  opacity: 0.6;
  cursor: wait;
}

.fx-guide-catapult-launch-btn i,
.fx-guide-catapult-launch-btn i:before {
  color: inherit !important;
}

.fx-guide-catapult-rules {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin: 0 0 12px;
}

.fx-guide-catapult-rules span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 7px 6px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: color-mix(in srgb, var(--fx-indigo, #6366f1) 8%, var(--fx-card, #fff));
  color: var(--fx-ink-soft, #475569);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.25;
  text-align: center;
}

.fx-guide-catapult-result {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--fx-line, rgba(15, 23, 42, 0.08));
  border-radius: var(--fx-radius, 5px);
  background: var(--fx-bg, #eef1fb);
}

.fx-guide-catapult-result.is-win {
  border-color: rgba(16, 185, 129, 0.32);
  background: color-mix(in srgb, var(--fx-emerald, #10b981) 10%, var(--fx-card, #fff));
}

.fx-guide-catapult-result-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(99, 102, 241, 0.12);
  color: var(--fx-indigo, #6366f1);
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
}

.fx-guide-catapult-result.is-win .fx-guide-catapult-result-icon {
  background: rgba(16, 185, 129, 0.16);
  color: #059669;
}

.fx-guide-catapult-result-copy {
  min-width: 0;
}

.fx-guide-catapult-result-label {
  display: block;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--fx-muted, #6b7a90);
}

.fx-guide-catapult-result-amount {
  display: block;
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.1;
  color: var(--fx-ink, #0f172a);
}

.fx-guide-catapult-result.is-win .fx-guide-catapult-result-amount {
  color: #059669;
}

.fx-guide-catapult-result-note {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: var(--fx-ink-soft, #475569);
}

html.fx-dark .fx-guide-catapult-steps li {
  background: rgba(255, 255, 255, 0.04);
}

html.fx-dark .fx-guide-catapult-step-copy strong {
  color: var(--fx-ink, #f1f5f9);
}

html.fx-dark .fx-guide-catapult-result {
  background: rgba(255, 255, 255, 0.04);
}

html.fx-dark .fx-guide-catapult-rules span {
  background: rgba(255, 255, 255, 0.04);
}

html.fx-dark .fx-guide-catapult-result-amount {
  color: var(--fx-ink, #f1f5f9);
}

html.fx-dark .fx-guide-catapult-result.is-win .fx-guide-catapult-result-amount {
  color: #6ee7b7;
}
