/* ============================================================================
   GRAND ATLANTIC — onboarding modal (name · bankroll slider · profit goal)
   Loaded automatically by onboarding.js. Namespaced ga-ob-*.
   ========================================================================== */

.ga-ob-backdrop {
  position: fixed;
  inset: 0;
  z-index: 2147483400;
  display: flex;
  /* Anchor the card near the TOP of the screen (not dead-center) so the iOS
     keyboard, which pops from the bottom, can never cover the CONTINUE button.
     A modest safe-area + clamp offset keeps it off the very top edge on desktop. */
  align-items: flex-start;
  justify-content: center;
  padding: 16px;
  padding-top: calc(env(safe-area-inset-top, 0px) + clamp(12px, 6vh, 64px));
  overflow-y: auto;
  background: rgba(4, 6, 5, 0.78);
  backdrop-filter: blur(4px);
}

.ga-ob {
  width: min(440px, 100%);
  /* 100dvh tracks the SHRUNK visual viewport when the iOS keyboard is up, so the
     card + its CONTINUE button stay within the visible area above the keyboard. */
  max-height: calc(100dvh - env(safe-area-inset-top, 0px) - clamp(24px, 12vh, 128px));
  overflow-y: auto;
  border-radius: 16px;
  background: linear-gradient(170deg, #101613, #0a0e0c 60%);
  border: 1px solid rgba(226, 183, 85, 0.4);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.7);
  color: #f2efe6;
  font-family: "IBM Plex Mono", ui-monospace, Menlo, monospace;
  padding: 22px 22px 18px;
}

.ga-ob h2 {
  margin: 0 0 2px;
  font-size: 17px;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #e2b755;
  text-align: center;
}
.ga-ob .ga-ob-sub {
  margin: 0 0 18px;
  font-size: 11px;
  text-align: center;
  color: rgba(242, 239, 230, 0.55);
}

.ga-ob label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: rgba(242, 239, 230, 0.6);
  margin: 14px 0 6px;
}

.ga-ob .ga-ob-row { display: flex; gap: 8px; align-items: center; }

/* locked identity chip (name chosen a step earlier — shown read-only here) */
.ga-ob .ga-ob-locked {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(226, 183, 85, 0.28);
  background: rgba(226, 183, 85, 0.08);
}
.ga-ob .ga-ob-locked-ico { font-size: 16px; line-height: 1; }
.ga-ob .ga-ob-locked-name {
  flex: 1; min-width: 0;
  font: 700 15px/1.2 inherit; color: #f7df9a;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ga-ob .ga-ob-locked-tag {
  font-size: 9px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase;
  color: rgba(242, 239, 230, 0.55);
  padding: 3px 7px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.ga-ob .ga-ob-opt { font-weight: 400; text-transform: none; letter-spacing: 0; opacity: 0.55; }

.ga-ob input[type="text"],
.ga-ob input[type="number"],
.ga-ob select {
  width: 100%;
  box-sizing: border-box;
  padding: 9px 10px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f2efe6;
  font: 600 13px/1.2 inherit;
  font-family: inherit;
}
.ga-ob input:focus-visible,
.ga-ob select:focus-visible,
.ga-ob button:focus-visible {
  outline: 2px solid #e2b755;
  outline-offset: 1px;
}

.ga-ob .ga-ob-dice {
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  border-radius: 9px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.06);
  color: #f2efe6;
  font-size: 16px;
  cursor: pointer;
}

.ga-ob input[type="range"] {
  width: 100%;
  accent-color: #e2b755;
}
.ga-ob .ga-ob-bankroll-val {
  font-size: 20px;
  font-weight: 700;
  color: #e2b755;
  text-align: center;
  margin: 2px 0 4px;
}
.ga-ob .ga-ob-range-ends {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  color: rgba(242, 239, 230, 0.45);
}

.ga-ob .ga-ob-goal-row { display: flex; gap: 8px; }
.ga-ob .ga-ob-goal-row select { flex: 0 0 46%; }

.ga-ob .ga-ob-target {
  margin-top: 8px;
  font-size: 11.5px;
  color: rgba(242, 239, 230, 0.7);
}
.ga-ob .ga-ob-target b { color: #2dd4bf; }

.ga-ob .ga-ob-actions { display: flex; gap: 10px; margin-top: 20px; }
.ga-ob .ga-ob-btn {
  flex: 1;
  padding: 12px 0;
  border-radius: 11px;
  border: none;
  font: 800 13px/1 inherit;
  font-family: inherit;
  letter-spacing: 1px;
  text-transform: uppercase;
  cursor: pointer;
}
.ga-ob .ga-ob-btn-primary { background: #e2b755; color: #0a0e0c; }
.ga-ob .ga-ob-btn-primary:hover { background: #f0ca6e; }
.ga-ob .ga-ob-btn-ghost {
  background: transparent;
  color: rgba(242, 239, 230, 0.75);
  border: 1px solid rgba(255, 255, 255, 0.2);
}
.ga-ob .ga-ob-btn-danger {
  background: transparent;
  color: #ff5470;
  border: 1px solid rgba(255, 84, 112, 0.5);
}
.ga-ob .ga-ob-btn-danger:hover { background: rgba(255, 84, 112, 0.12); }

.ga-ob .ga-ob-current {
  margin: 0 0 6px;
  padding: 12px;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 12px;
  line-height: 1.65;
}
.ga-ob .ga-ob-current b { color: #e2b755; }
.ga-ob .ga-ob-current .ga-ob-hit { color: #2dd4bf; font-weight: 700; }

@media (prefers-reduced-motion: no-preference) {
  .ga-ob { animation: ga-ob-in 0.25s ease; }
  @keyframes ga-ob-in {
    from { transform: translateY(10px) scale(0.98); opacity: 0; }
    to   { transform: none; opacity: 1; }
  }
}

/* ── redesigned check-in: emblem + quick-pick chips (v1.1) ── */
.ga-ob-emblem {
  width: 54px; height: 54px;
  margin: 0 auto 10px;
  border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at 40% 34%, #f7df9a, #e2b755 45%, #a5813d 72%, transparent 73%),
    repeating-conic-gradient(from -12deg, #1a140a 0deg 9deg, transparent 9deg 45deg),
    radial-gradient(circle, #6f571f 54%, #2a2008 100%);
  box-shadow: 0 6px 16px rgba(0,0,0,.55), inset 0 2px 5px rgba(255,255,255,.3), inset 0 -3px 6px rgba(0,0,0,.4);
  animation: ga-ob-emblem 6s ease-in-out infinite;
}
.ga-ob-chipmark { font-size: 22px; color: #1a1204; text-shadow: 0 1px 1px rgba(255,255,255,.25); }
@keyframes ga-ob-emblem {
  0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); }
}

.ga-ob-chiprow, .ga-ob-goalquick { display: flex; gap: 7px; margin-top: 9px; flex-wrap: wrap; }
.ga-ob-chip, .ga-ob-gq {
  flex: 1 1 0;
  min-width: 58px;
  padding: 8px 4px;
  border-radius: 9px;
  border: 1px solid rgba(226, 183, 85, 0.28);
  background: rgba(226, 183, 85, 0.06);
  color: #f2efe6;
  font: 700 12px/1 inherit;
  font-family: inherit;
  cursor: pointer;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease;
}
.ga-ob-chip:hover, .ga-ob-gq:hover { background: rgba(226, 183, 85, 0.14); transform: translateY(-1px); }
.ga-ob-chip.on, .ga-ob-gq.on {
  background: linear-gradient(160deg, #e2b755, #c79a3a);
  border-color: #f0ca6e;
  color: #171104;
  box-shadow: 0 3px 10px rgba(226, 183, 85, 0.28);
}

.ga-ob h2 { letter-spacing: 3px; }
@media (prefers-reduced-motion: reduce) { .ga-ob-emblem { animation: none; } }

/* ── QUICK START — top-of-card fast path (bypasses the form + mobile keyboard) ── */
.ga-ob-quickstart {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 14px 0 4px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid #f0ca6e;
  background: linear-gradient(150deg, #f2cf74, #e2b755 55%, #c79a3a);
  color: #171104;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 6px 20px rgba(226, 183, 85, 0.32);
  animation: ga-ob-qs-pulse 2.2s ease-in-out infinite;
}
.ga-ob-quickstart:hover { filter: brightness(1.05); }
.ga-ob-quickstart:active { transform: translateY(1px); }
.ga-ob-qs-bolt { font-size: 22px; line-height: 1; flex: 0 0 auto; }
.ga-ob-qs-text { display: flex; flex-direction: column; line-height: 1.2; }
.ga-ob-qs-title {
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.ga-ob-qs-sub { font-size: 11px; font-weight: 700; opacity: 0.78; }
/* light sweep across the button face */
.ga-ob-qs-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 30%, rgba(255, 255, 255, 0.55) 50%, transparent 70%);
  transform: translateX(-120%);
  animation: ga-ob-qs-shimmer 2.6s ease-in-out infinite;
  pointer-events: none;
}
.ga-ob-qs-or {
  margin: 6px 0 0;
  text-align: center;
  font-size: 10px;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: rgba(242, 239, 230, 0.4);
}
@keyframes ga-ob-qs-pulse {
  0%, 100% { box-shadow: 0 6px 20px rgba(226, 183, 85, 0.28); }
  50%      { box-shadow: 0 6px 26px rgba(226, 183, 85, 0.6); }
}
@keyframes ga-ob-qs-shimmer {
  0%   { transform: translateX(-120%); }
  60%, 100% { transform: translateX(120%); }
}
@media (prefers-reduced-motion: reduce) {
  .ga-ob-quickstart { animation: none; }
  .ga-ob-qs-shimmer { display: none; }
}
