:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif;
  color: #e9e4f5;
  background: #130d24;
  line-height: 1.7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: radial-gradient(ellipse at 70% 0%, #38204a 0, transparent 55%);
  min-height: 100vh;
}
a {
  color: #f49bda;
  text-underline-offset: 4px;
}
a:hover {
  color: #fff;
}
a:focus-visible,
button:focus-visible {
  outline: 3px solid #ff7cd0;
  outline-offset: 4px;
}
.site-header {
  max-width: 1060px;
  margin: auto;
  padding: 28px;
}
.site-header a {
  display: inline-flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  font-size: 22px;
  font-weight: 700;
  text-decoration: none;
}
.site-header img {
  border-radius: 12px;
}
main {
  max-width: 1040px;
  margin: 0 auto;
  padding: 24px 24px 72px;
}
main > div {
  max-width: 640px;
  margin: auto;
}
h1 {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  letter-spacing: -0.045em;
  line-height: 1.1;
  color: #fff;
}
h2 {
  font-size: 1.25rem;
  color: #fff;
}
p,
li {
  color: #d6cce3;
}
main > div > header {
  text-align: center;
  padding: 20px 0;
}
section[role="alert"] {
  border: 1px solid #ba5576;
  border-radius: 20px;
  background: #45172955;
  padding: 22px;
  margin: 32px 0;
}
section {
  margin: 30px 0;
}
main > div > div {
  margin: 30px 0;
}
.primary-link {
  display: inline-block;
  padding: 14px 28px;
  color: #fff;
  background: linear-gradient(110deg, #5938bf, #a73583);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
}
.primary-link svg {
  width: 18px;
  vertical-align: middle;
}
main > article {
  max-width: 960px;
  margin: auto;
}
article > div:has(h1) {
  margin-bottom: 32px;
}
article h2 {
  margin-top: 30px;
}
button {
  font: inherit;
  cursor: pointer;
}
video,
img {
  max-width: 100%;
}
button:disabled {
  cursor: default;
}
svg {
  width: 20px;
  height: 20px;
}

.guide {
  width: 100%;
  max-width: 960px;
  color: #e9e4f5;
  line-height: 1.65;
}
.guide ::selection {
  background: #ff7cd0;
  color: #1b1136;
}
.guide a {
  text-underline-offset: 4px;
}
.guide :is(a, button, summary) {
  -webkit-tap-highlight-color: transparent;
  transition:
    color 160ms ease-out,
    background-color 160ms ease-out,
    border-color 160ms ease-out;
}
.guide a:hover {
  color: #ffa1e0;
}
.guide :is(a, button, summary, video, [role="tabpanel"]):focus-visible {
  outline: 3px solid #ff7cd0;
  outline-offset: 5px;
}
.guide svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}
.backLink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: #bfb3d5;
  font-size: 14px;
}
.intro {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 40px;
  margin: 24px 0 32px;
}
.header h1 {
  margin: 0;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.03em;
  text-wrap: balance;
}
.header > p {
  max-width: 620px;
  margin-top: 16px;
  font-size: 17px;
  color: #d9cee9;
}
.header .status {
  margin-top: 20px;
  color: #ffdba1;
  font-size: 14px;
}
.header .hardware {
  font-size: 13px;
  margin-top: 8px;
  color: #bfb3d5;
}
.hardware a {
  color: #ffa1e0;
  text-decoration: underline;
}
.readSteps {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin-top: 12px;
  color: #ffb7e7;
  font-size: 14px;
  font-weight: 500;
}
.walkthrough {
  min-width: 0;
}
.videoGroup video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  background: #17102c;
  border-radius: 16px;
  box-shadow: 0 16px 40px #08041640;
}
.videoCaption {
  margin-top: 10px;
  font-size: 12px;
  color: #bfb3d5;
}
.videoError {
  margin-top: 12px;
  font-size: 14px;
  color: #ffdba1;
}
.safety {
  scroll-margin-top: 24px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 24px;
  padding: 20px 0 0;
  border-top: 1px solid #ffffff26;
  font-size: 14px;
  color: #ebdece;
}
.safety svg {
  width: 20px;
  height: 20px;
  margin-top: 2px;
  color: #ffdba1;
}
.safety strong {
  color: #ffdba1;
}
.steps {
  border: 1px solid #ffffff26;
  border-radius: 16px;
  background: #191130;
  scroll-margin-top: 24px;
}
.tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #ffffff26;
}
.tabs button {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: center;
  min-height: 48px;
  padding: 8px;
  border-radius: 8px;
  color: #bfb3d5;
  font-size: 14px;
  cursor: pointer;
}
.tabs button[aria-selected="true"] {
  background: #ff7cd014;
  color: #ffb7e7;
}
.tabs button:hover:not([aria-selected="true"]) {
  background: #ffffff08;
  color: #fff;
}
.stepNumber {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  border: 1px solid #ffffff26;
  border-radius: 50%;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tabs button[aria-selected="true"] .stepNumber {
  border-color: #ff7cd0;
  background: #ff7cd0;
  color: #1b1136;
  font-weight: 600;
}
.stepPanel {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 40px;
  min-height: 452px;
  padding: 32px 32px 24px;
  animation: step-enter 260ms cubic-bezier(0.16, 1, 0.3, 1);
}
.stepPanel[hidden] {
  display: none;
}
@keyframes step-enter {
  from {
    opacity: 0.65;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.stepText {
  flex: 1;
  min-width: 0;
}
.stepText h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 600;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.stepText ol {
  display: flex;
  flex-direction: column;
  gap: 18px;
  list-style: decimal;
  padding-left: 20px;
}
.stepText li {
  padding-left: 4px;
}
.stepText li::marker {
  color: #bfb3d5;
  font-size: 13px;
}
.stepText strong {
  color: #fff;
  font-weight: 600;
}
.note {
  max-width: 54ch;
  margin-top: 24px;
  color: #ffb7e7;
  font-size: 14px;
}
.contract {
  margin-bottom: 24px;
  padding: 0 0 24px;
  border-bottom: 1px solid #ffffff26;
}
.contractLabel {
  margin-bottom: 8px;
  color: #bfb3d5;
  font-size: 13px;
}
.contractAddress {
  display: block;
  color: #fff;
  font-size: 15px;
  overflow-wrap: anywhere;
  user-select: all;
}
.copyContract {
  margin-top: 14px;
  min-height: 44px;
  padding: 8px 14px;
  border: 1px solid #a292c3;
  border-radius: 8px;
  background: transparent;
  color: #fff;
  font-size: 14px;
  cursor: pointer;
}
.copyContract:hover {
  border-color: #ff7cd0;
  color: #ffb7e7;
}
.copyStatus {
  margin-top: 8px;
  color: #bfb3d5;
  font-size: 13px;
}
.copyStatus:empty {
  display: none;
}
.screen {
  display: block;
  flex: 0 0 232px;
  width: 232px;
  border-radius: 10px;
}
.screen img {
  width: 100%;
  height: auto;
  border-radius: 10px;
}
.screen span {
  display: block;
  margin-top: 8px;
  text-align: center;
  color: #bfb3d5;
  font-size: 12px;
}
.stepActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 32px 24px;
}
.stepActions button {
  display: inline-flex;
  gap: 10px;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 10px 16px;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
}
.previous {
  color: #e9e4f5;
}
.previous:hover:not(:disabled) {
  background: #ffffff0d;
}
.previous:disabled {
  opacity: 0.35;
  cursor: default;
}
.next {
  background: #ff7cd0;
  color: #1b1136;
  font-weight: 600;
}
.next:hover {
  background: #ffa1e0;
}
.otherWallet {
  margin-top: 24px;
  border-bottom: 1px solid #ffffff26;
}
.otherWallet summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 52px;
  padding: 16px 0;
  color: #e9e4f5;
  font-weight: 500;
  cursor: pointer;
  list-style: none;
}
.otherWallet summary::-webkit-details-marker {
  display: none;
}
.otherWallet summary:hover {
  color: #ffb7e7;
}
.otherWallet[open] summary svg {
  transform: rotate(180deg);
}
.otherWallet > div {
  padding: 0 0 22px;
  font-size: 14px;
  color: #d9cee9;
}
.otherWallet ol {
  list-style: decimal;
  padding-left: 22px;
  margin: 16px 0;
}
.otherWallet li {
  margin: 10px 0;
}
.otherWallet a {
  display: inline-block;
  margin-top: 14px;
}
.otherWallet a,
.help a {
  color: #ffa1e0;
  text-decoration: underline;
}
.help {
  margin-top: 24px;
  font-size: 14px;
  color: #bfb3d5;
}
.help > p + p {
  margin-top: 8px;
  font-size: 12px;
}
@media (max-width: 800px) {
  .intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .stepPanel {
    gap: 24px;
  }
}
@media (max-width: 600px) {
  .intro {
    margin-top: 20px;
    margin-bottom: 24px;
  }
  .header > p {
    font-size: 16px;
  }
  .header .status {
    font-size: 13px;
  }
  .header h1 {
    font-size: 32px;
  }
  .stepPanel {
    flex-direction: column;
    gap: 24px;
    min-height: 0;
    padding: 24px 20px;
  }
  .stepText h2 {
    font-size: 24px;
  }
  .stepText ol {
    font-size: 15px;
  }
  .screen {
    flex: 0 0 auto;
    width: 220px;
    align-self: center;
  }
  .tabs button {
    flex-direction: column;
    font-size: 12px;
    padding-inline: 4px;
    gap: 6px;
    min-height: 64px;
  }
  .tabs {
    gap: 4px;
    padding: 8px;
  }
  .stepActions {
    padding: 0 20px 20px;
  }
  .stepActions button {
    min-height: 48px;
  }
  .videoCaption {
    font-size: 11px;
  }
  .safety {
    padding-top: 20px;
    font-size: 13px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .guide :is(a, button, summary) {
    transition: none;
  }
  .stepPanel {
    animation: none;
  }
}
