:root {
  --ink: #1e293b;
  --muted: #64748b;
  --line: #e2e8f0;
  --soft: #f8fafc;
  --card: #f1f5f9;
  --primary: #5b56c9;
  --primary-d: #4a46b0;
  --ok: #16a34a;
  --ok-d: #15803d;
  --ui-card: #ffffff;
  --ui-text: #1e293b;
  --ui-danger: #dc2626;
  --ui-success: #16a34a;
  --ui-primary: #5b56c9;
  --ui-border: #e2e8f0;
  --ui-bg: #f8fafc;
  --ui-muted: #64748b;
  --ui-warning: #d97706;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

.pass-body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: #fff;
  -webkit-font-smoothing: antialiased;
}

.pass-shell {
  width: min(760px, 100%);
  margin: 0 auto;
  padding: 16px 16px 40px;
}

.pass-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  padding-bottom: 14px;
  margin-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.pass-logo {
  display: block;
  width: 150px;
  cursor: default;
  pointer-events: none;
}
.pass-logo img {
  display: block;
  width: 150px;
  height: auto;
}

.pass-top-cta {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 260px;
  min-height: 44px;
  padding: 10px 14px;
  border: 1px solid var(--primary);
  border-radius: 8px;
  color: var(--primary);
  text-decoration: none;
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}
.pass-top-cta:hover {
  background: var(--primary);
  color: #fff;
}

.pass-ico {
  display: inline-flex;
  width: 1.15em;
  height: 1.15em;
  flex: 0 0 auto;
}
.pass-ico svg {
  width: 100%;
  height: 100%;
  display: block;
}

.pass-status {
  margin: 0 0 16px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 600;
  color: #334155;
}

.pass-status-block {
  margin: 0 0 16px;
  text-align: center;
}
.pass-status-block .pass-status {
  margin: 0 0 6px;
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--ink);
}
.pass-status-lead {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.45;
  font-weight: 500;
}

.pass-mission {
  border: 1px solid #d7d5f0;
  background: #f7f7fc;
}
.pass-mission-current {
  border-color: var(--primary);
  box-shadow: 0 0 0 1px rgba(91, 86, 201, 0.12);
}
.pass-mission-list {
  margin: 0 0 12px;
  padding-left: 1.1rem;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.55;
}
.pass-mission-list li { margin: 0 0 6px; }
.pass-mission .pass-btn-start { margin-top: 4px; }

.pass-badge {
  margin: 0 0 10px;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 800;
  font-style: italic;
  color: var(--ok);
}
.pass-brand-note {
  margin: -6px 0 12px;
  text-align: center;
  font-size: 0.86rem;
  color: var(--muted);
  font-weight: 600;
}
.pass-easy-ad {
  display: block;
  margin: 0 0 12px;
}
.pass-easy-ad img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
}

.pass-dest {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  margin-bottom: 18px;
  width: 100%;
}

.pass-dest > .pass-btn,
.pass-dest > a.pass-btn,
.pass-dest > button.pass-btn {
  display: flex;
  width: 100%;
  max-width: 100%;
  align-self: stretch;
  flex: 0 0 auto;
  box-sizing: border-box;
}

.pass-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 12px 16px;
  border: 0;
  border-radius: 8px;
  text-decoration: none;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.3;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}

.pass-btn-locked,
.pass-btn-open {
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
  padding: 14px 18px;
}

.pass-btn-locked {
  background: var(--primary);
  color: #fff;
  opacity: 0.78;
}

.pass-btn-open {
  background: var(--primary);
  color: #fff;
}

.pass-dest.is-unlocked .pass-btn-open {
  display: flex;
  width: 100%;
  min-height: 52px;
  font-size: 1rem;
  padding: 14px 18px;
}
.pass-dest .pass-btn-open > span:not(.pass-ico) {
  flex: 0 1 auto;
  min-width: 0;
}

.pass-btn-start,
.pass-btn-check {
  width: 100%;
  min-height: 48px;
}

.pass-btn-start {
  background: var(--primary);
  color: #fff;
  margin: 12px 0 16px;
}
.pass-btn-start:hover { background: var(--primary-d); }

.pass-btn-check {
  background: var(--ok);
  color: #fff;
}
.pass-btn-check:hover { background: var(--ok-d); }

.pass-box {
  background: var(--card);
  border-radius: 12px;
  padding: 18px 16px;
  margin: 8px 0 16px;
}

.pass-h {
  margin: 0 0 8px;
  font-size: 1.05rem;
  font-weight: 700;
}

.pass-lead {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.4;
}

.pass-steps {
  margin: 0 0 4px;
  padding-left: 1.2rem;
  color: #334155;
  font-size: 0.92rem;
  line-height: 1.55;
}
.pass-steps li { margin: 0 0 6px; }

.pass-task {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 8px;
  background: var(--ok);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.92rem;
}
.pass-task span { flex: 1 1 auto; }
.pass-task small {
  font-size: 0.75rem;
  font-weight: 600;
  opacity: .9;
}

.pass-form { margin-top: 4px; }

.pass-turnstile {
  display: flex;
  justify-content: center;
  margin: 0 0 8px;
  min-height: 0;
}

#turnstile-info,
.pass-status-msg {
  min-height: 0;
  margin: 0;
  text-align: center;
  font-size: 0.86rem;
  color: var(--ui-muted);
  font-weight: 650;
}
#turnstile-info:not(:empty),
.pass-status-msg:not(:empty) {
  min-height: 1em;
  margin: 0 0 10px;
}

.pass-btn[aria-busy="true"] {
  opacity: .92;
  cursor: wait;
}

.ui-spinner {
  display: inline-block;
  width: 1em;
  height: 1em;
  border: 2px solid rgba(255,255,255,.35);
  border-top-color: #fff;
  border-radius: 50%;
  vertical-align: -0.15em;
  animation: passSpin .7s linear infinite;
}
@keyframes passSpin {
  to { transform: rotate(360deg); }
}

.pass-help-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 8px 12px;
  background: var(--primary);
  color: #fff;
  border: 0;
  border-radius: 8px;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 650;
  cursor: pointer;
}
.pass-help {
  display: none;
  margin-top: 10px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid var(--line);
  color: #334155;
  font-size: 0.86rem;
  line-height: 1.45;
}
.pass-help.is-open { display: block; }

.pass-store-wrap {
  position: relative;
  margin: 12px 0;
}
.pass-store-ad-label {
  position: absolute;
  top: -7px;
  right: 10px;
  padding: 1px 7px;
  border-radius: 4px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 650;
  line-height: 1.4;
  z-index: 1;
}
.pass-store {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  border-radius: 8px;
  background: #dc2626;
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
}

.pass-ad {
  margin: 12px 0;
  overflow: hidden;
  text-align: center;
}
.pass-ad img, .pass-ad iframe { max-width: 100%; }

.pass-notes {
  margin: 8px 0 18px;
  text-align: center;
  color: #475569;
  font-size: 0.9rem;
  line-height: 1.45;
}

.pass-footer {
  margin-top: 28px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.pass-footer a { color: #334155; font-weight: 650; }

@media (max-width: 700px) {
  .pass-shell { padding: 12px 14px 32px; }
  .pass-top {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
  }
  .pass-logo,
  .pass-logo img { width: 132px; margin: 0 auto; }
  .pass-top-cta {
    width: 100%;
    max-width: 100%;
  }
}

.swal2-container {
  background-color: rgba(15, 23, 42, 0.45) !important;
}
.swal2-popup {
  background: #fff !important;
  color: #1e293b !important;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.22) !important;
}
.swal2-html-container {
  color: #1e293b !important;
}
