.hero {
  padding: 64px 0 0;
}

.stage {
  position: relative;
  width: 728px;
  height: 480px;
  margin: 0 auto;
}

.intro .stage {
  opacity: 0;
}

.brand {
  position: absolute;
  z-index: 2;
  left: 0;
  top: 0;
  width: 320px;
  height: 480px;
  border-radius: 18px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.6), 0 0 40px rgba(124, 77, 255, 0.22);
}

.brand-clip {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: 18px;
  background: radial-gradient(95% 62% at 50% 40%, #2F145E 0%, #1A0C3A 50%, #0B0816 100%);
}

.brand::after {
  content: "";
  position: absolute;
  inset: 0;
  padding: 1px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(139, 107, 255, 0.55), rgba(139, 107, 255, 0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  pointer-events: none;
}

.brand-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 12px 12px;
  -webkit-mask-image: radial-gradient(70% 50% at 50% 40%, #000, transparent);
  mask-image: radial-gradient(70% 50% at 50% 40%, #000, transparent);
}

.art {
  position: absolute;
  left: 50%;
  top: 0;
  width: 320px;
  height: 480px;
  margin-left: -160px;
}

.line {
  position: absolute;
  display: block;
  transform-origin: 0 0;
  transform: rotate(-24.228deg);
  height: 1.2px;
  background: linear-gradient(90deg, rgba(176, 140, 255, 0), rgba(176, 140, 255, var(--a)) 50%, rgba(176, 140, 255, 0));
}

.line-1 { left: 105px; top: 470px; width: 170px; --a: 0.30; }
.line-2 { left: 185px; top: 440px; width: 110px; --a: 0.22; }
.line-3 { left: -31px; top: 150px; width: 90px; --a: 0.16; }

.glow {
  position: absolute;
  left: -10px;
  top: 14px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 77, 255, 0.8) 0%, rgba(124, 77, 255, 0.35) 35%, rgba(124, 77, 255, 0) 100%);
  opacity: 0.4;
}

.flash {
  position: absolute;
  left: 30px;
  top: 54px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(233, 225, 255, 1), rgba(233, 225, 255, 0));
  opacity: 0;
  visibility: hidden;
}

.streak {
  position: absolute;
  left: 0;
  height: 1.5px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0), rgba(201, 182, 255, 1));
  visibility: hidden;
}

.streak-0 { top: 118px; width: 150px; }
.streak-1 { top: 206px; width: 220px; }
.streak-2 { top: 262px; width: 120px; }
.streak-3 { top: 318px; width: 180px; }
.streak-4 { top: 372px; width: 140px; }

.crystal {
  position: absolute;
  left: 94.4px;
  top: 86.8px;
  width: 135.6px;
  height: 193.2px;
  overflow: visible;
  transform-origin: 69.6px 97.2px;
}

.word {
  position: absolute;
  left: 0;
  top: 270px;
  width: 320px;
  height: 110px;
  overflow: visible;
}

.word text {
  font: 700 38px var(--display);
}

.underline {
  position: absolute;
  left: 100px;
  transform-origin: 50% 50%;
  top: 360px;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, rgba(124, 92, 255, 0) 0%, rgba(124, 92, 255, 0.9) 30%, rgba(201, 182, 255, 0.9) 70%, rgba(201, 182, 255, 0) 100%);
}

.address {
  position: absolute;
  left: 0;
  right: 0;
  top: 371px;
  margin: 0;
  text-align: center;
  font: 500 10.5px/13.86px var(--mono);
  letter-spacing: 0.32em;
  text-indent: 0.32em;
  color: var(--lavender);
  opacity: 0.8;
}

.badge {
  position: absolute;
  left: 20px;
  top: 20px;
  padding: 3px calc(8px - 0.18em) 3px 8px;
  border-radius: 9px;
  border: 1px solid rgba(180, 140, 255, 0.7);
  background: rgba(180, 140, 255, 0.12);
}

.badge span {
  display: block;
  font: 700 9.5px/12.54px var(--mono);
  letter-spacing: 0.18em;
  background: linear-gradient(90deg, var(--lavender), #E4D9FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.sleeve {
  position: absolute;
  z-index: 1;
  left: 288px;
  top: 20px;
  width: 440px;
  height: 440px;
}

.panel {
  position: absolute;
  inset: 0;
  border-radius: 18px;
  background: var(--panel);
  border: 1px solid var(--edge);
  box-shadow: 0 6px 28px rgba(0, 0, 0, 0.55);
}

.tools {
  position: absolute;
  top: 13px;
  right: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sheet {
  position: absolute;
  left: 67px;
  top: 75px;
  width: 336px;
}

.status {
  position: relative;
  height: 16px;
  margin: 0;
}

.status .kicker {
  position: absolute;
  inset: 0;
  transition: opacity 200ms, color 200ms;
}

.status .kicker.out {
  opacity: 0;
}

.status .halo {
  position: absolute;
  left: 0;
  top: 8px;
  width: 0;
  height: 0;
  border-radius: 50%;
  pointer-events: none;
}

.hero h1 {
  margin: 15px 0 0;
  font: 600 24px/30px var(--ui);
  color: var(--text);
}

.hero .body {
  margin: 10px 0 0;
  font-size: 13.5px;
  line-height: 20px;
  color: var(--secondary);
}

.hero .facts {
  margin-top: 20px;
}

.actions {
  position: absolute;
  left: 67px;
  top: 333px;
  display: flex;
  gap: 12px;
}

.foot {
  position: absolute;
  left: 67px;
  top: 405px;
  margin: 0;
  font: 500 10px/13.2px var(--mono);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--secondary);
  white-space: nowrap;
}

.btn .shimmer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 72px;
  background: linear-gradient(90deg, rgba(233, 225, 255, 0), rgba(233, 225, 255, 0.3) 50%, rgba(233, 225, 255, 0));
  transform: translateX(-80px);
  pointer-events: none;
}

.btn.shine .shimmer {
  animation: shimmer 1200ms linear 1;
}

@keyframes shimmer {
  from { transform: translateX(-72px); }
  to { transform: translateX(var(--w, 240px)); }
}

.btn .ext {
  width: 12px;
  height: 12px;
  margin-left: 8px;
  flex: none;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}

.cards .wide {
  grid-column: 1 / -1;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding-left: 22px;
  margin-bottom: 10px;
  font-size: 13px;
  line-height: 19px;
  color: var(--secondary);
  transition: color 150ms;
}

.steps li:last-child {
  margin-bottom: 0;
}

.steps .marker {
  position: absolute;
  left: 0;
  top: 3.5px;
  width: 12px;
  height: 12px;
}

.steps .marker::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1.25px var(--off);
  transition: opacity 150ms;
}

.steps .marker::after {
  content: "";
  position: absolute;
  left: -3px;
  top: -3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(180, 140, 255, 0.45), rgba(180, 140, 255, 0));
  opacity: 0;
  transition: opacity 150ms;
}

.steps .dot {
  position: absolute;
  z-index: 1;
  left: 2px;
  top: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  transform: scale(0);
}

.steps .check {
  position: absolute;
  z-index: 1;
  left: 0;
  top: 0;
  width: 12px;
  height: 12px;
  overflow: visible;
  opacity: 0;
}

.steps .check path {
  fill: none;
  stroke: var(--ok);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 9.42;
  stroke-dashoffset: 9.42;
}

.steps li.pending {
  opacity: 0.8;
}

.steps li.current {
  color: var(--text);
}

.steps li.current .marker::before,
.steps li.done .marker::before {
  opacity: 0;
}

.steps li.current .marker::after {
  opacity: 1;
}

.steps li.current .dot {
  animation: dot-in 150ms linear forwards;
}

.steps li.done .check {
  opacity: 1;
}

.steps li.done .check path {
  animation: check-in 180ms ease-out forwards;
}

@keyframes dot-in {
  0% { transform: scale(0); }
  20% { transform: scale(0.4); }
  40% { transform: scale(0.77); }
  60% { transform: scale(1.03); }
  80% { transform: scale(1.09); }
  100% { transform: scale(1); }
}

@keyframes check-in {
  to { stroke-dashoffset: 0; }
}

.note {
  margin: 18px 0 0;
  padding-top: 16px;
  border-top: 1px solid rgba(58, 46, 94, 0.7);
  font-size: 12.5px;
  line-height: 18px;
  color: var(--secondary);
}

.note + .note {
  margin-top: 10px;
  padding-top: 0;
  border-top: 0;
}

.note strong {
  font-weight: 600;
  color: var(--text);
}

.launchers {
  margin: 12px 0 0;
  padding: 3px;
  list-style: none;
  border-radius: 10px;
  background: var(--deepest);
  border: 1px solid var(--edge);
}

.launchers li {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  min-height: 42px;
  padding: 4px 10px;
  border-radius: 8px;
  border: 1px solid transparent;
  transition: background-color 120ms, border-color 120ms;
}

.launchers li + li {
  margin-top: 3px;
}

.launchers li::before {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: 8px;
  border: 1px solid var(--brand-edge);
  background: var(--brand-fill);
  opacity: 0;
  transition: opacity 120ms;
  pointer-events: none;
}

.launchers li:hover::before {
  opacity: 1;
}

.launchers svg {
  position: relative;
  width: 20px;
  height: 20px;
  overflow: visible;
}

.launchers .lit {
  opacity: 0;
  transition: opacity 120ms;
}

.launchers li:hover .lit {
  opacity: 1;
}

.launchers li > span {
  position: relative;
}

.launchers .name {
  display: block;
  font: 600 13px/17px var(--ui);
  color: var(--text);
}

.launchers .detail {
  display: block;
  margin-top: 2px;
  font: 500 10.5px/14px var(--mono);
  color: var(--secondary);
}

.l-lunar { --brand-fill: linear-gradient(90deg, rgba(125, 184, 255, 0.22), rgba(53, 99, 233, 0.08)); --brand-edge: rgba(125, 184, 255, 0.6); }
.l-minecraft { --brand-fill: linear-gradient(90deg, rgba(82, 165, 53, 0.22), rgba(42, 100, 28, 0.08)); --brand-edge: rgba(82, 165, 53, 0.6); }
.l-modrinth { --brand-fill: linear-gradient(90deg, rgba(51, 245, 152, 0.22), rgba(0, 175, 92, 0.08)); --brand-edge: rgba(51, 245, 152, 0.6); }
.l-curseforge { --brand-fill: linear-gradient(90deg, rgba(255, 138, 91, 0.22), rgba(209, 74, 31, 0.08)); --brand-edge: rgba(255, 138, 91, 0.6); }

.file .facts {
  grid-template-columns: 96px minmax(0, 1fr);
  row-gap: 10px;
}

.hash {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}

.copy {
  display: inline-grid;
}

.copy > span {
  grid-area: 1 / 1;
  transition: opacity 160ms;
}

.copy .copy-done,
.copy.copied .copy-idle {
  opacity: 0;
}

.copy.copied .copy-done {
  opacity: 1;
}

.copy:disabled {
  cursor: default;
  color: var(--off);
}

.copy:disabled:hover {
  background: var(--field);
}

.hash code {
  font: 500 11px/16px var(--mono);
  color: var(--text);
  overflow-wrap: anywhere;
  user-select: all;
}

.links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 0;
  margin: 20px 0 0;
  font-size: 12px;
  line-height: 18px;
  color: var(--secondary);
}

.links > * + *::before {
  content: "·";
  display: inline-block;
  margin: 0 7px;
  color: var(--off);
}

.links code {
  font: 500 11px/16px var(--mono);
  color: var(--text);
}

.notes-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 20px;
  margin-bottom: 20px;
}

.notes-head .kicker {
  margin: 0;
}

.tabs {
  height: 32px;
}

.tabs button {
  height: 24px;
  padding: 0 12px;
  white-space: nowrap;
}

.tabs .count {
  margin-left: 6px;
  font: 700 9px/1 var(--mono);
  color: var(--off);
}

.tabs button[aria-selected="true"] .count {
  color: var(--secondary);
}

.notes-list {
  columns: 2;
  column-gap: 32px;
}

.notes-list li {
  break-inside: avoid;
}

.notes-empty {
  margin: 0;
  font-size: 13px;
  color: var(--secondary);
}

@media (max-width: 799px) {
  .hero {
    padding-top: 24px;
  }

  .stage {
    width: 100%;
    max-width: 440px;
    height: auto;
  }

  .brand {
    position: relative;
    width: 100%;
    height: 392px;
  }

  .art {
    top: -44px;
  }

  .sleeve {
    position: relative;
    left: auto;
    top: auto;
    width: 100%;
    height: auto;
    margin-top: -32px;
  }

  .panel {
    position: relative;
    inset: auto;
    padding: 64px 24px 24px;
  }

  .tools {
    top: 46px;
  }

  .sheet,
  .actions,
  .foot {
    position: static;
    width: auto;
  }

  .sheet {
    padding-top: 24px;
  }

  .actions {
    flex-wrap: wrap;
    margin-top: 28px;
  }

  .actions .btn {
    flex: 1 1 auto;
  }

  .foot {
    margin-top: 24px;
    white-space: normal;
  }

  .cards {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 40px;
  }

  .notes-list {
    columns: 1;
  }
}

@media (max-width: 380px) {
  .actions .btn {
    flex-basis: 100%;
  }
}

@media (max-width: 520px) {
  .links {
    flex-direction: column;
    align-items: flex-start;
  }

  .links > * + *::before {
    content: none;
  }

  .notes-head {
    display: block;
  }

  .notes-head .kicker {
    margin-bottom: 14px;
  }

  .tabs {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tabs::-webkit-scrollbar {
    display: none;
  }

  .tabs button {
    flex: 1 0 auto;
    padding: 0 8px;
  }

  .tabs .count {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .steps li.current .dot {
    animation: none;
    transform: scale(1);
  }

  .steps li.done .check path {
    animation: none;
    stroke-dashoffset: 0;
  }

  .btn.shine .shimmer {
    animation: none;
  }
}
