:root {
  color-scheme: light;
  --ink: #101010;
  --muted: #5d5a54;
  --paper: #fffaf1;
  --white: #ffffff;
  --line: #151515;
  --green: #9cff00;
  --green-dark: #218a3e;
  --cyan: #17c9e8;
  --blue: #0868e8;
  --red: #ff4053;
  --gold: #ffcd4d;
  --purple: #7130a0;
  --shadow: 8px 8px 0 #101010;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(135deg, rgba(16, 16, 16, 0.07) 25%, transparent 25%) 0 0 / 54px 54px,
    linear-gradient(315deg, rgba(16, 16, 16, 0.07) 25%, transparent 25%) 0 0 / 54px 54px,
    #f5f0e6;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  padding: 20px 0 26px;
}

.topbar,
.hero-grid,
.quest-board {
  border: 3px solid var(--line);
  background: var(--paper);
  box-shadow: var(--shadow);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 68px;
  padding: 11px 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 950;
  text-decoration: none;
}

.brand-mark,
.icon-link {
  display: inline-grid;
  place-items: center;
  border: 3px solid var(--line);
  box-shadow: 3px 3px 0 var(--line);
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--green);
}

.brand-mark img {
  width: 19px;
  height: 28px;
  object-fit: contain;
}

.socials {
  display: flex;
  gap: 12px;
}

.icon-link {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--cyan);
  text-decoration: none;
}

#openseaLink {
  background: var(--white);
}

.icon-link img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

#openseaLink img {
  width: 31px;
  height: 31px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: 28px;
  margin-top: 18px;
  padding: 30px;
  overflow: hidden;
}

.hero-copy {
  align-self: center;
  max-width: 550px;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 16px;
  padding: 7px 11px;
  border: 3px solid var(--line);
  background: var(--green);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
  box-shadow: 4px 4px 0 var(--line);
}

.eyebrow.small {
  margin-bottom: 14px;
  background: var(--gold);
}

h1 {
  margin: 0;
  font-size: clamp(52px, 9vw, 112px);
  line-height: 0.9;
  letter-spacing: 0;
}

.lead {
  max-width: 500px;
  margin: 20px 0 24px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.45;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 54px;
  padding: 0 20px;
  border: 3px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 950;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 5px 5px 0 var(--line);
  transition: transform 150ms ease, box-shadow 150ms ease, opacity 150ms ease;
}

.button:hover:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 3px 3px 0 var(--line);
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.button.primary {
  background: var(--green);
}

.button.done {
  background: var(--gold);
}

.hero-jump {
  min-width: 220px;
}

.art-strip {
  position: relative;
  min-height: 450px;
}

.art-card {
  position: absolute;
  border: 4px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 7px 7px 0 var(--line);
  object-fit: cover;
}

.main-art {
  z-index: 2;
  right: 125px;
  bottom: 0;
  width: min(77%, 400px);
  aspect-ratio: 1;
}

.side-art {
  right: 0;
  top: 6px;
  width: min(42%, 230px);
  aspect-ratio: 1;
}

.side-art.lower {
  right: 0;
  top: auto;
  bottom: 24px;
  width: min(46%, 260px);
}

.quest-board {
  margin: 0 0 90px;
  padding: 30px;
  scroll-margin-top: 18px;
}

.quest-header {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 340px);
  align-items: end;
  gap: 24px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 3px solid var(--line);
}

.quest-header h2 {
  margin: 0;
  font-size: 38px;
  line-height: 1;
  letter-spacing: 0;
}

.progress-summary strong {
  display: block;
  margin-bottom: 9px;
  text-align: right;
}

.progress-track {
  height: 18px;
  overflow: hidden;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--green);
  transition: width 240ms ease;
}

.quest-form {
  display: grid;
  gap: 16px;
}

.quest-step {
  display: grid;
  grid-template-columns: 64px 1fr;
  min-width: 0;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--line);
  transition: opacity 180ms ease, background 180ms ease;
}

.quest-step.locked {
  background: #ddd9d1;
  opacity: 0.5;
}

.quest-step.complete {
  background: #f4ffe3;
}

.step-marker {
  display: grid;
  place-items: start center;
  padding-top: 20px;
  border-right: 3px solid var(--line);
  background: var(--purple);
}

.quest-step:nth-of-type(2) .step-marker {
  background: var(--red);
}

.quest-step:nth-of-type(3) .step-marker {
  background: var(--cyan);
}

.quest-step:nth-of-type(4) .step-marker {
  background: var(--blue);
}

.step-marker span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--paper);
  font-weight: 950;
  box-shadow: 3px 3px 0 var(--line);
}

.complete .step-marker span {
  background: var(--green);
}

.step-content {
  min-width: 0;
  padding: 18px 20px 20px;
}

.step-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.step-kicker {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.step-heading h3 {
  margin: 0;
  font-size: 25px;
  line-height: 1.1;
  letter-spacing: 0;
}

.step-state {
  flex: 0 0 auto;
  padding: 6px 9px;
  border: 2px solid var(--line);
  border-radius: 6px;
  background: var(--gold);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.locked .step-state {
  background: #bbb7af;
}

.complete .step-state {
  background: var(--green);
}

.step-copy {
  margin: 9px 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.45;
}

.step-controls.two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(190px, 0.34fr);
  align-items: end;
  gap: 14px;
}

.field {
  display: block;
  min-width: 0;
}

.field > span {
  display: block;
  margin-bottom: 7px;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

input {
  width: 100%;
  min-height: 54px;
  padding: 0 14px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 800;
  outline: none;
}

input:focus {
  box-shadow: 0 0 0 4px rgba(23, 201, 232, 0.35);
}

input:disabled,
input[readonly] {
  background: #eee9df;
  color: #55514b;
}

.task-action {
  width: 100%;
  background: var(--cyan);
}

.wallet-action {
  background: var(--green);
}

.step-message,
.form-message {
  min-height: 20px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.step-message.error,
.form-message.error {
  color: #c51628;
}

.submit-zone {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 320px);
  align-items: center;
  gap: 20px;
  margin-top: 8px;
  padding: 20px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 5px 5px 0 var(--green);
}

.submit-zone strong {
  font-size: 20px;
}

.submit-zone .form-message {
  color: #d8d5cf;
}

.submit-zone .form-message.error {
  color: #ff7d88;
}

.submit-button {
  width: 100%;
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(16, 16, 16, 0.58);
}

.modal-panel {
  position: relative;
  z-index: 1;
  width: min(440px, 100%);
  padding: 24px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: var(--shadow);
}

.modal-panel h2 {
  margin: 0 0 8px;
  font-size: 34px;
}

.modal-copy {
  margin: 0 0 18px;
  color: var(--muted);
  font-weight: 800;
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 3px solid var(--line);
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--line);
}

.wallet-options {
  display: grid;
  gap: 12px;
}

.wallet-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 4px 4px 0 var(--line);
}

.wallet-option:hover {
  background: var(--green);
}

.wallet-option img,
.wallet-fallback {
  width: 34px;
  height: 34px;
  border: 2px solid var(--line);
  border-radius: 50%;
  background: var(--cyan);
}

.wallet-fallback {
  display: inline-grid;
  place-items: center;
}

.modal-open {
  overflow: hidden;
}

.music-control {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: calc(100vw - 36px);
  padding: 9px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--paper);
  box-shadow: 5px 5px 0 var(--line);
}

.youtube-music,
.youtube-music iframe {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  border: 0;
  opacity: 0;
  pointer-events: none;
}

.music-button {
  min-width: 94px;
  min-height: 40px;
  border: 3px solid var(--line);
  border-radius: 8px;
  background: var(--cyan);
  color: var(--ink);
  font-weight: 950;
  cursor: pointer;
  box-shadow: 3px 3px 0 var(--line);
}

.music-button.muted {
  background: var(--gold);
}

.volume-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 900;
}

.volume-wrap input {
  width: 110px;
  min-height: 0;
  padding: 0;
  border: 0;
  box-shadow: none;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .art-strip {
    min-height: 410px;
  }

  .main-art {
    left: 0;
    right: auto;
    width: min(76%, 370px);
  }

  .side-art {
    width: min(36%, 190px);
  }
}

@media (max-width: 680px) {
  .quest-header,
  .submit-zone {
    grid-template-columns: 1fr;
  }

  .progress-summary strong {
    text-align: left;
  }

  .step-controls.two-column {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: min(100% - 18px, 1180px);
  }

  .topbar,
  .hero-grid,
  .quest-board {
    box-shadow: 5px 5px 0 var(--line);
  }

  .topbar {
    min-height: 62px;
    padding: 9px;
  }

  .brand span:last-child {
    display: none;
  }

  .hero-grid,
  .quest-board {
    padding: 17px;
  }

  .lead {
    font-size: 17px;
  }

  .button {
    width: 100%;
  }

  .art-strip {
    min-height: 320px;
  }

  .main-art {
    width: 78%;
  }

  .side-art {
    width: 40%;
  }

  .side-art.lower {
    bottom: 8px;
  }

  .quest-header h2 {
    font-size: 31px;
  }

  .quest-step {
    grid-template-columns: 48px 1fr;
  }

  .step-marker {
    padding-top: 16px;
  }

  .step-marker span {
    width: 32px;
    height: 32px;
  }

  .step-content {
    padding: 15px 13px 17px;
  }

  .step-heading {
    display: block;
  }

  .step-state {
    display: inline-block;
    margin-top: 9px;
  }

  .music-control {
    left: 9px;
    right: 9px;
    bottom: 9px;
    justify-content: space-between;
  }

  .volume-wrap input {
    width: 86px;
  }
}
