/*
 * DREAMMAKER KALSHI SETUP HELP V2
 *
 * Help control contained inside the Beta Portal's
 * Kalshi Account Setup section.
 */

#dm-kalshi-setup-help-launcher {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 9px;

  margin: 22px 0 8px;
  padding: 13px 20px;

  border: 1px solid rgba(77, 190, 255, 0.88);
  border-radius: 18px;

  background:
    linear-gradient(
      135deg,
      rgba(38, 107, 220, 0.98),
      rgba(39, 201, 178, 0.98)
    );

  box-shadow:
    0 14px 32px rgba(9, 65, 158, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);

  color: #ffffff;
  font: inherit;
  font-size: 17px;
  font-weight: 900;
  line-height: 1.2;
  text-align: center;

  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

#dm-kalshi-setup-help-launcher:active {
  transform: translateY(1px);
}

#dm-kalshi-help-overlay-v2 {
  position: fixed;
  inset: 0;
  z-index: 2147483000;

  display: none;
  align-items: flex-start;
  justify-content: center;

  padding:
    max(18px, env(safe-area-inset-top))
    14px
    max(22px, env(safe-area-inset-bottom));

  overflow-y: auto;
  overscroll-behavior: contain;

  background: rgba(1, 6, 24, 0.88);
  backdrop-filter: blur(9px);
  -webkit-backdrop-filter: blur(9px);
}

#dm-kalshi-help-overlay-v2.dm-open {
  display: flex;
}

#dm-kalshi-help-dialog-v2 {
  position: relative;

  width: min(760px, 100%);
  margin: auto 0;

  border: 1px solid rgba(67, 153, 255, 0.64);
  border-radius: 24px;

  background:
    linear-gradient(
      165deg,
      rgba(9, 24, 62, 0.99),
      rgba(4, 12, 37, 0.99)
    );

  box-shadow:
    0 28px 80px rgba(0, 0, 0, 0.62),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);

  color: #eef4ff;
  overflow: hidden;
}

#dm-kalshi-help-header-v2 {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;

  padding: 22px 22px 18px;

  border-bottom: 1px solid rgba(105, 149, 220, 0.28);
}

#dm-kalshi-help-header-v2 h2 {
  margin: 0;

  color: #ffffff;
  font-size: clamp(23px, 5vw, 34px);
  line-height: 1.12;
}

#dm-kalshi-help-header-v2 p {
  margin: 8px 0 0;

  color: #aebddd;
  font-size: 15px;
  line-height: 1.5;
}

#dm-kalshi-help-close-v2 {
  flex: 0 0 auto;

  width: 44px;
  height: 44px;

  border: 1px solid rgba(126, 168, 233, 0.45);
  border-radius: 50%;

  background: rgba(15, 34, 75, 0.9);
  color: #ffffff;

  font-size: 27px;
  font-weight: 700;
  line-height: 1;

  cursor: pointer;
  touch-action: manipulation;
}

#dm-kalshi-help-body-v2 {
  padding: 22px;

  color: #d8e1f5;
  font-size: 16px;
  line-height: 1.65;
}

#dm-kalshi-help-body-v2 h3 {
  margin: 25px 0 10px;

  color: #6ec5ff;
  font-size: 20px;
  line-height: 1.3;
}

#dm-kalshi-help-body-v2 h3:first-child {
  margin-top: 0;
}

#dm-kalshi-help-body-v2 ol,
#dm-kalshi-help-body-v2 ul {
  margin: 10px 0 14px;
  padding-left: 24px;
}

#dm-kalshi-help-body-v2 li {
  margin: 7px 0;
}

.dm-kalshi-help-warning-v2 {
  margin: 18px 0;
  padding: 15px 16px;

  border: 1px solid rgba(255, 190, 80, 0.48);
  border-radius: 15px;

  background: rgba(107, 69, 15, 0.2);
  color: #ffe0a0;
}

.dm-kalshi-help-success-v2 {
  margin: 18px 0;
  padding: 15px 16px;

  border: 1px solid rgba(65, 226, 173, 0.42);
  border-radius: 15px;

  background: rgba(13, 94, 74, 0.18);
  color: #bfffea;
}

.dm-kalshi-key-example-v2 {
  display: block;

  margin: 12px 0;
  padding: 14px;

  border: 1px solid rgba(100, 148, 220, 0.35);
  border-radius: 13px;

  background: rgba(2, 9, 28, 0.78);
  color: #d9ebff;

  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    monospace;

  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

html.dm-kalshi-help-open-v2,
body.dm-kalshi-help-open-v2 {
  overflow: hidden !important;
  overscroll-behavior: none !important;
}

@media (max-width: 560px) {
  #dm-kalshi-setup-help-launcher {
    min-height: 50px;
    margin-top: 18px;
    padding: 12px 14px;
    border-radius: 16px;
    font-size: 15px;
  }

  #dm-kalshi-help-header-v2 {
    padding: 18px 17px 15px;
  }

  #dm-kalshi-help-body-v2 {
    padding: 18px 17px 22px;
    font-size: 15px;
  }

  #dm-kalshi-help-dialog-v2 {
    border-radius: 20px;
  }
}
