:root {
  --brand: #fe346e;
  --brand-deep: #e11981;
  --ink: #262626;
  --ink-soft: #3a3a3a;
  --paper: #ffffff;
  --fog: #f4f4f4;
  --muted: #757777;
  --line: #e5e7eb;
  --ok: #0eb04c;
  --warn: #c47f00;
  --radius: 14px;
  --font: "Outfit", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --shadow: 0 10px 30px rgba(38, 38, 38, 0.06);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: #ffffff !important;
}

body {
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.atmosphere {
  display: none !important;
}

.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 720px;
  margin: 0 auto;
  padding: 1.5rem 1.5rem 0;
  animation: rise 0.7s ease both;
}

.brand {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.brand img {
  display: block;
  height: 26px;
  width: auto;
}

.badge {
  margin: 0;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.8rem;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.85);
}

.stage {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.25rem 1.5rem 1.5rem;
}

.intro {
  margin-bottom: 2rem;
  animation: rise 0.8s 0.08s ease both;
}

.intro h1 {
  margin: 0 0 0.75rem;
  font-size: clamp(2rem, 5vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1.1;
  color: var(--ink);
}

.lede {
  margin: 0;
  max-width: 36rem;
  color: var(--muted);
  font-size: 1.05rem;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 1.25rem;
}

.step {
  padding: 1.35rem 1.35rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  animation: rise 0.75s ease both;
  transition: border-color 0.35s ease, opacity 0.35s ease, box-shadow 0.35s ease;
}

.step:nth-child(1) {
  animation-delay: 0.14s;
}
.step:nth-child(2) {
  animation-delay: 0.22s;
}

.step.is-active {
  border-color: rgba(254, 52, 110, 0.45);
  box-shadow: 0 0 0 3px rgba(254, 52, 110, 0.08), var(--shadow);
}

.step.is-done {
  border-color: rgba(14, 176, 76, 0.4);
}

.step.is-locked {
  opacity: 0.55;
}

.step.is-locked.is-unlocked {
  opacity: 1;
  border-color: rgba(254, 52, 110, 0.45);
}

.step-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.15rem;
}

.step-num {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(254, 52, 110, 0.12);
  color: var(--brand);
  font-weight: 600;
  font-size: 0.95rem;
}

.step.is-done .step-num {
  background: rgba(14, 176, 76, 0.14);
  color: var(--ok);
}

.step-head h2 {
  margin: 0 0 0.2rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.step-head p {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.records {
  display: grid;
  gap: 0.75rem;
}

.record {
  display: grid;
  gap: 0.55rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--fog);
  border: 1px solid var(--line);
}

.record-row {
  display: grid;
  grid-template-columns: 4.5rem 1fr auto;
  gap: 0.5rem;
  align-items: center;
}

.record-row .label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.record-row code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink-soft);
  word-break: break-all;
}

.copy {
  appearance: none;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  border-radius: 8px;
  padding: 0.35rem 0.6rem;
  font-family: var(--font);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.copy:hover {
  background: rgba(254, 52, 110, 0.08);
  border-color: rgba(254, 52, 110, 0.4);
  color: var(--brand-deep);
}

.hint {
  margin: 1rem 0 1.1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.lock-note {
  padding: 0.85rem 1rem;
  border-radius: 10px;
  border: 1px dashed #cfd3d8;
  color: var(--muted);
  font-size: 0.9rem;
  background: #fafafa;
}

.btn {
  appearance: none;
  border: none;
  border-radius: 10px;
  padding: 0.85rem 1.15rem;
  font-family: var(--font);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.15s ease, filter 0.2s ease, opacity 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  color: #fff;
}

.btn.primary:hover {
  filter: brightness(1.04);
}

.btn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.feedback {
  margin: 0.85rem 0 0;
  font-size: 0.9rem;
}

.feedback.is-ok {
  color: var(--ok);
}

.feedback.is-wait {
  color: var(--warn);
}

.foot {
  max-width: 720px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem 2rem;
  color: var(--muted);
  font-size: 0.8rem;
  text-align: center;
}

.foot p {
  margin: 0;
}

.loading-panel {
  margin-top: 0.5rem;
  padding: 2rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  text-align: center;
  animation: rise 0.5s ease both;
}

.unsupported {
  margin-top: 0.5rem;
  animation: rise 0.55s ease both;
}

.unsupported-card {
  padding: 2rem 1.6rem 1.75rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  box-shadow: var(--shadow);
  border-top: 3px solid var(--brand);
}

.unsupported-kicker {
  margin: 0 0 0.55rem;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brand);
}

.unsupported-title {
  margin: 0 0 0.75rem;
  font-size: clamp(1.35rem, 3.5vw, 1.7rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: var(--ink);
}

.unsupported-body {
  margin: 0 0 1.5rem;
  max-width: 34rem;
  color: var(--muted);
  font-size: 1.02rem;
}

.unsupported-cta {
  display: inline-flex;
  text-decoration: none;
  align-items: center;
}

body.is-unsupported .steps,
body.is-unsupported .loading-panel {
  display: none !important;
}

body.is-unsupported .badge {
  border-color: rgba(254, 52, 110, 0.35);
  color: var(--brand-deep);
  background: rgba(254, 52, 110, 0.06);
}

.spinner {
  width: 2.25rem;
  height: 2.25rem;
  margin: 0 auto 1rem;
  border-radius: 50%;
  border: 3px solid rgba(254, 52, 110, 0.18);
  border-top-color: var(--brand);
  animation: spin 0.8s linear infinite;
}

.loading-title {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.loading-sub {
  margin: 0 auto;
  max-width: 28rem;
  color: var(--muted);
  font-size: 0.95rem;
}

body.is-loading .steps {
  display: none;
}

.btn.is-busy {
  position: relative;
  padding-left: 2.4rem;
}

.btn.is-busy::before {
  content: "";
  position: absolute;
  left: 0.95rem;
  top: 50%;
  width: 0.9rem;
  height: 0.9rem;
  margin-top: -0.45rem;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.is-completed .btn.primary {
  opacity: 0.7;
  cursor: default;
}

@media (max-width: 560px) {
  .brand img {
    height: 22px;
  }

  .record-row {
    grid-template-columns: 3.5rem 1fr;
  }

  .record-row .copy {
    grid-column: 2;
    justify-self: start;
  }
}
