:root {
  --bg-page: #f5eee3;
  --bg-page-alt: #efe4d4;
  --bg-panel: rgba(255, 251, 246, 0.92);
  --bg-panel-strong: rgba(250, 243, 234, 0.96);
  --bg-soft: #e8dac7;
  --bg-soft-alt: #dfccb6;
  --border: rgba(111, 86, 58, 0.14);
  --border-strong: rgba(111, 86, 58, 0.22);
  --text: #2f261f;
  --text-muted: #6f6255;
  --text-soft: #8b7b6c;
  --accent: #b48961;
  --accent-strong: #9b7350;
  --accent-soft: #dcc4aa;
  --accent-soft-2: #efe1d1;
  --good: #7f9770;
  --warn: #c28a5e;
  --bad: #b56b61;
  --shadow-soft: 0 18px 50px rgba(71, 52, 33, 0.10);
  --shadow-card: 0 10px 28px rgba(82, 60, 38, 0.08);
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
  --transition: all 0.24s ease;
}

* {
  box-sizing: border-box;
}

@keyframes entryPath {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font-body);
  background:
    radial-gradient(circle at 8% 14%, rgba(223, 203, 177, 0.46) 0, transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(219, 194, 160, 0.24) 0, transparent 26%),
    radial-gradient(circle at 76% 82%, rgba(204, 180, 147, 0.25) 0, transparent 28%),
    linear-gradient(180deg, #fbf7f1 0%, var(--bg-page) 44%, var(--bg-page-alt) 100%);
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.055;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.8'/%3E%3C/svg%3E");
}

.shell {
  position: relative;
  z-index: 1;
  width: min(1280px, calc(100% - 32px));
  margin: 24px auto 48px;
  display: grid;
  gap: 18px;
  animation: entryPath 0.45s ease-out;
}

.panel {
  position: relative;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--bg-panel);
  box-shadow: var(--shadow-soft);
  overflow: hidden;
  transition: var(--transition);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
}

.hero {
  padding: 36px;
  display: grid;
  gap: 18px;
}

.eyebrow {
  margin: 0;
  font-family: var(--font-body);
  text-transform: none;
  letter-spacing: 0.02em;
  color: var(--accent-strong);
  font-size: 13px;
  font-weight: 600;
}

h1,
.flow header h2,
.reveal header h2,
.claim-box h3,
.steps h3 {
  font-family: var(--font-display);
}

h1 {
  margin: 0;
  font-size: clamp(36px, 6vw, 58px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 700;
  color: var(--text);
}

.lede {
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  max-width: 780px;
  line-height: 1.65;
}

.quick-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: flex-start;
}

.quick-links a,
.action-link,
.quick-links-menu > summary,
.quick-links-menu-panel a {
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 10px 16px;
  background: rgba(255, 250, 244, 0.86);
  letter-spacing: 0;
  transition: var(--transition);
  box-shadow: 0 2px 10px rgba(71, 52, 33, 0.03);
}

.quick-links a:hover,
.action-link:hover,
.quick-links-menu > summary:hover,
.quick-links-menu-panel a:hover {
  transform: translateY(-1px);
  border-color: rgba(155, 115, 80, 0.30);
  background: #fffdf9;
  box-shadow: 0 10px 22px rgba(82, 60, 38, 0.08);
}

.quick-links-menu {
  position: relative;
}

.quick-links-menu > summary {
  list-style: none;
  cursor: pointer;
}

.quick-links-menu > summary::-webkit-details-marker {
  display: none;
}

.quick-links-menu > summary::before {
  content: "+";
  margin-right: 8px;
  color: var(--accent-strong);
  font-weight: 700;
}

.quick-links-menu[open] > summary {
  background: #fffdf9;
  border-color: rgba(155, 115, 80, 0.30);
}

.quick-links-menu[open] > summary::before {
  content: "−";
}

.quick-links-menu-panel {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 250, 244, 0.98);
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  box-shadow: var(--shadow-card);
}

.stage-band {
  border: 1px solid var(--border);
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 251, 247, 0.98), rgba(244, 235, 223, 0.92));
  padding: 18px;
  display: grid;
  gap: 12px;
}

.stage-head {
  display: flex;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
}

.stage-value {
  font-size: 14px;
  color: var(--accent-strong);
  font-weight: 700;
}

#stageNote {
  margin: 0;
  font-size: 13px;
  color: var(--text-soft);
}

.meter {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  background: #e9ddcf;
  overflow: hidden;
  border: 1px solid rgba(111, 86, 58, 0.08);
}

.meter span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #d2b18f, #b48961, #8d734f);
  transition: width 0.8s cubic-bezier(0.19, 1, 0.22, 1);
}

.meter span::after {
  display: none;
}

.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 8px;
}

.stat {
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 250, 245, 0.88);
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
  min-height: 96px;
}

.label,
.reveal-summary-key,
label {
  display: block;
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: none;
  letter-spacing: 0.01em;
  color: var(--text-soft);
  margin-bottom: 6px;
  font-weight: 600;
}

.value {
  display: block;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 600;
  color: var(--text);
  word-break: break-word;
}

.mono {
  font-family: var(--font-mono);
}

.content-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 24px;
  margin-top: 8px;
}

.flow,
.reveal {
  padding: 34px;
  display: grid;
  gap: 26px;
  align-content: start;
}

.flow header,
.reveal header {
  display: grid;
  gap: 8px;
}

.flow header h2,
.reveal header h2 {
  margin: 0;
  font-size: 34px;
  letter-spacing: -0.03em;
  color: var(--text);
}

.flow header p,
.reveal header p,
.steps p,
.section-copy {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
  line-height: 1.65;
}

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

.steps li {
  position: relative;
  padding: 18px 20px 18px 54px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 251, 247, 0.84);
}

.steps li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 22px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(180, 137, 97, 0.45);
  background: radial-gradient(circle at center, rgba(180, 137, 97, 0.24) 0%, rgba(180, 137, 97, 0.06) 70%, transparent 72%);
}

.steps h3 {
  margin: 0 0 4px;
  font-size: 19px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.controls {
  display: grid;
  gap: 14px;
  margin-top: 4px;
}

.line {
  display: grid;
  gap: 8px;
}

.block-line,
.claim-line {
  grid-template-columns: 1fr auto auto;
  gap: 12px;
  align-items: end;
}

.claim-line {
  grid-template-columns: 1fr auto auto auto auto;
}

.claim-input-line {
  gap: 8px;
  margin-bottom: 8px;
}

.claim-input-line input {
  border-color: rgba(180, 137, 97, 0.22);
  background: rgba(255, 252, 248, 0.92);
}

.post-reveal-line {
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.post-reveal-actions {
  display: grid;
  gap: 10px;
}

.post-reveal-actions button {
  white-space: nowrap;
}

.secondary-button {
  background: rgba(255, 252, 248, 0.95);
  color: var(--text);
  border-color: var(--border);
  box-shadow: 0 4px 12px rgba(124, 94, 65, 0.08);
}

.secondary-button:hover {
  background: #fffdf9;
  border-color: rgba(155, 115, 80, 0.30);
  box-shadow: 0 8px 18px rgba(124, 94, 65, 0.12);
}

.claim-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: stretch;
}

.claim-actions button {
  width: 100%;
}

@media (max-width: 1100px) {
  .block-line,
  .claim-line,
  .post-reveal-line {
    grid-template-columns: 1fr;
  }

  .block-line button,
  .claim-line button,
  .claim-actions button {
    width: 100%;
  }

  .claim-actions {
    grid-template-columns: 1fr;
  }
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px 16px;
  font-size: 15px;
  color: var(--text);
  background: rgba(255, 252, 248, 0.95);
  transition: var(--transition);
  font-family: var(--font-body);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

input::placeholder,
textarea::placeholder {
  color: #a59788;
}

input:focus,
textarea:focus {
  outline: none;
  border-color: rgba(180, 137, 97, 0.40);
  background: #fffdf9;
  box-shadow: 0 0 0 4px rgba(180, 137, 97, 0.10);
}

textarea {
  min-height: 172px;
  resize: vertical;
  line-height: 1.6;
  font-family: var(--font-mono);
  font-size: 13px;
}

button {
  border: 1px solid transparent;
  border-radius: 999px;
  background: linear-gradient(180deg, #b8916a 0%, #a87f59 100%);
  color: #fffaf4;
  font-size: 14px;
  font-weight: 600;
  padding: 13px 20px;
  cursor: pointer;
  letter-spacing: 0;
  transition: var(--transition);
  font-family: var(--font-body);
  box-shadow: 0 8px 18px rgba(124, 94, 65, 0.15);
}

button:hover {
  transform: translateY(-1px);
  background: linear-gradient(180deg, #c09971 0%, #ae845f 100%);
  box-shadow: 0 12px 24px rgba(124, 94, 65, 0.18);
}

button:active {
  transform: translateY(0);
}

#checkBtn {
  background: linear-gradient(180deg, #8ea47f 0%, #7f9770 100%);
}

#checkBtn:hover {
  background: linear-gradient(180deg, #97ac88 0%, #869d77 100%);
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

@media (min-width: 1101px) {
  .button-row {
    flex-wrap: nowrap;
    align-items: center;
  }

  .button-row > * {
    flex: 0 0 auto;
  }
}

.status {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 250, 244, 0.92);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--text-muted);
  font-family: var(--font-body);
}

.status.good {
  border-color: rgba(127, 151, 112, 0.28);
  color: #5e7251;
  background: rgba(235, 245, 231, 0.86);
}

.status.warn {
  border-color: rgba(194, 138, 94, 0.28);
  color: #98633b;
  background: rgba(252, 242, 230, 0.92);
}

.status.bad {
  border-color: rgba(181, 107, 97, 0.28);
  color: #975148;
  background: rgba(250, 236, 234, 0.92);
}

.claim-box,
.tech-details,
.reveal-summary {
  margin-top: 0;
  padding: 18px;
  background: rgba(255, 251, 246, 0.88);
  border-radius: 22px;
  border: 1px solid var(--border);
}

.claim-box h3 {
  margin: 0 0 8px;
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.02em;
}

.claim-box p {
  margin: 0 0 14px;
  color: var(--text-muted);
  font-size: 14px;
  line-height: 1.6;
}

.claim-box .claim-input-line label {
  color: var(--accent-strong);
}

.advanced-tools {
  margin-top: 12px;
  border: 1px solid var(--border);
  border-radius: 24px;
  background: rgba(255, 250, 244, 0.72);
  overflow: hidden;
}

.advanced-tools > summary,
.tech-details > summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 18px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
  color: var(--text);
  background: rgba(247, 239, 229, 0.85);
}

.advanced-tools > summary::-webkit-details-marker,
.tech-details > summary::-webkit-details-marker {
  display: none;
}

.advanced-tools > summary::before,
.tech-details > summary::before {
  content: "+";
  display: inline-block;
  width: 18px;
  margin-right: 8px;
  color: var(--accent-strong);
  font-weight: 700;
}

.advanced-tools[open] > summary,
.tech-details[open] > summary {
  background: rgba(244, 234, 222, 0.95);
}

.advanced-tools[open] > summary::before,
.tech-details[open] > summary::before {
  content: "−";
}

.advanced-tools-body {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.card-shell {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: 380px;
  margin: 0 auto;
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 252, 248, 0.90);
  position: relative;
  box-shadow: var(--shadow-card);
}

.hidden-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: var(--text-muted);
  background: linear-gradient(180deg, #f3e7d7 0%, #e6d4bf 100%);
  text-align: center;
  padding: 28px;
}

.hidden-card::after {
  content: "Waiting for mint confirmation";
  font-family: var(--font-body);
  font-size: 13px;
  margin-top: 10px;
  opacity: 0.8;
}

.reveal-summary {
  display: grid;
  gap: 12px;
}

.reveal-summary-row {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
  align-items: center;
}

.reveal-summary-row-stack {
  align-items: start;
}

.reveal-summary-value {
  font-size: 14px;
  color: var(--text);
  min-width: 0;
  word-break: break-word;
}

.trait-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 24px;
  align-items: center;
}

.trait-chip-list.is-empty {
  color: var(--text-soft);
  font-size: 13px;
}

.trait-chip {
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(180, 137, 97, 0.22);
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(220, 196, 170, 0.25);
  color: var(--accent-strong);
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
}

.tech-details {
  overflow: hidden;
  padding: 0;
}

#traits {
  margin: 0;
  border: 0;
  border-top: 1px solid rgba(111, 86, 58, 0.10);
  background: rgba(251, 246, 239, 0.92);
  padding: 18px;
  max-height: 300px;
  overflow-y: auto;
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-soft);
  font-family: var(--font-mono);
}

#traits::-webkit-scrollbar {
  width: 8px;
}

#traits::-webkit-scrollbar-track {
  background: rgba(230, 220, 206, 0.68);
}

#traits::-webkit-scrollbar-thumb {
  background: rgba(180, 137, 97, 0.36);
  border-radius: 999px;
}

@media (max-width: 980px) {
  .stats {
    grid-template-columns: repeat(2, 1fr);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .hero,
  .flow,
  .reveal {
    padding: 26px;
  }

  .reveal-summary-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }
}

@media (max-width: 600px) {
  .shell {
    width: min(100% - 18px, 1280px);
    margin-top: 12px;
  }

  .hero,
  .flow,
  .reveal {
    padding: 20px;
  }

  .stats {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 34px;
  }

  .button-row,
  .quick-links,
  .quick-links-menu-panel {
    flex-direction: column;
  }

  .quick-links a,
  .action-link,
  .quick-links-menu > summary,
  .quick-links-menu-panel a,
  button {
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .steps li {
    padding: 16px 16px 16px 48px;
  }

  .steps li::before {
    left: 16px;
    top: 20px;
  }
}

/* Western mint-site override */
:root {
  --bg-page: #f2ead7;
  --bg-page-alt: #efe4cd;
  --bg-panel: #efe5d0;
  --bg-panel-strong: #f3e8d4;
  --bg-soft: #e6d4b8;
  --bg-soft-alt: #d9c09a;
  --border: #9b5a2d;
  --border-strong: #5c2d13;
  --text: #3a2417;
  --text-muted: #8b5d3d;
  --text-soft: #86674d;
  --accent: #b7832f;
  --accent-strong: #a45f2a;
  --accent-soft: #d1a94e;
  --accent-soft-2: #f5e5be;
  --good: #7c8f6e;
  --warn: #a45f2a;
  --bad: #93422f;
  --shadow-soft: 7px 7px 0 rgba(92, 45, 19, 0.95);
  --shadow-card: 6px 6px 0 rgba(92, 45, 19, 0.9);
  --font-display: 'Poppins', sans-serif;
  --font-body: 'Inter', sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, 'Liberation Mono', monospace;
}

body {
  background:
    linear-gradient(rgba(173, 146, 115, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(173, 146, 115, 0.08) 1px, transparent 1px),
    radial-gradient(circle at 15% 18%, rgba(205, 174, 122, 0.14), transparent 28%),
    radial-gradient(circle at 85% 82%, rgba(150, 103, 61, 0.1), transparent 30%),
    linear-gradient(180deg, #f9f3e5 0%, #f4ead8 42%, #efe4cd 100%);
  background-size: 28px 28px, 28px 28px, auto, auto, auto;
}

.backdrop {
  opacity: 0.06;
  mix-blend-mode: multiply;
  background-image:
    radial-gradient(circle at 50% 50%, rgba(147, 96, 53, 0.22) 0 1px, transparent 1px);
  background-size: 28px 28px;
}

.shell {
  width: min(1100px, calc(100% - 36px));
  gap: 30px;
  margin: 20px auto 42px;
}

.panel {
  border: 2px solid var(--border);
  border-radius: 2px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), rgba(255,255,255,0) 14%),
    repeating-linear-gradient(180deg, transparent 0, transparent 26px, rgba(164, 95, 42, 0.08) 26px, rgba(164, 95, 42, 0.08) 27px),
    linear-gradient(180deg, #f3ead6 0%, #eee2ca 100%);
  box-shadow: var(--shadow-soft);
  overflow: visible;
}

.panel::before {
  inset: 6px;
  border-radius: 0;
  box-shadow: inset 0 0 0 1px rgba(155, 90, 45, 0.22);
}

.hero {
  padding: 34px 38px 32px;
  border-color: #c8921b;
  background:
    radial-gradient(circle at 60% 50%, rgba(136, 63, 22, 0.38), transparent 42%),
    linear-gradient(90deg, #2a120c 0%, #4f220f 52%, #24110a 100%);
  box-shadow:
    0 0 0 2px #e1b432 inset,
    0 0 0 8px rgba(40, 19, 10, 0.75) inset,
    0 0 0 10px #9b5a2d,
    8px 8px 0 rgba(48, 21, 9, 0.9);
}

.hero::before {
  inset: 10px;
  box-shadow: inset 0 0 0 1px rgba(228, 180, 50, 0.48);
}

.hero::after {
  content: "";
  position: absolute;
  inset: 18px;
  pointer-events: none;
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctext x='16' y='22' text-anchor='middle' font-size='22' fill='%23b7832f'%3E%E2%98%85%3C/text%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctext x='16' y='22' text-anchor='middle' font-size='22' fill='%23b7832f'%3E%E2%98%85%3C/text%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctext x='16' y='22' text-anchor='middle' font-size='22' fill='%23b7832f'%3E%E2%98%85%3C/text%3E%3C/svg%3E"),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ctext x='16' y='22' text-anchor='middle' font-size='22' fill='%23b7832f'%3E%E2%98%85%3C/text%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: 18px 18px;
  background-position: top left, top right, bottom left, bottom right;
}

.eyebrow {
  color: #d0a431;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
}

.eyebrow::before,
.eyebrow::after {
  content: "------";
  letter-spacing: 0.18em;
  color: rgba(208, 164, 49, 0.72);
}

h1 {
  font-size: clamp(58px, 7vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.02em;
  color: #f6ead0;
  text-shadow: 1px 1px 0 #d8bf8e;
}

.lede {
  max-width: 760px;
  color: #e3cda7;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 18px;
  line-height: 1.5;
}

.content-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 28px;
}

.search-first {
  padding: 28px 30px 30px;
  display: grid;
  gap: 18px;
}

.search-first header {
  display: grid;
  gap: 8px;
}

.search-first h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.01em;
}

.search-first > p,
.search-first header p {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 16px;
}

.search-first .steps {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.primary-grid {
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
}

.builder-secondary .controls {
  margin-top: 0;
}

.docs-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 20px;
  border: 2px solid var(--border);
  background: linear-gradient(180deg, #f4ead6 0%, #efe2ca 100%);
  box-shadow: var(--shadow-card);
}

.docs-strip-copy {
  margin: 0;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 17px;
  color: var(--text-muted);
}

.docs-strip-link {
  flex: 0 0 auto;
  min-width: 210px;
}

.flow,
.reveal {
  padding: 28px 30px 30px;
  gap: 18px;
}

.flow header h2,
.reveal header h2,
.claim-box h3 {
  position: relative;
  font-size: 32px;
  line-height: 1;
  color: var(--text);
  letter-spacing: -0.01em;
  padding-left: 28px;
}

.flow header h2::before,
.reveal header h2::before,
.claim-box h3::before {
  content: "✦";
  position: absolute;
  left: 0;
  top: 3px;
  color: var(--accent-strong);
  font-size: 15px;
}

.flow header p,
.reveal header p,
.claim-box p {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  color: var(--text-muted);
  font-size: 16px;
}

.controls {
  gap: 14px;
}

.label,
.reveal-summary-key,
label {
  font-family: var(--font-mono);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.24em;
  color: var(--accent-strong);
  margin-bottom: 8px;
  font-weight: 700;
}

.block-line {
  grid-template-columns: minmax(0, 1fr) 130px;
  grid-template-areas:
    "label label"
    "input check"
    "next next";
  gap: 12px;
}

.block-line label { grid-area: label; }
#blockInput { grid-area: input; }
#checkBtn { grid-area: check; }
#nextBtn { grid-area: next; }

input,
textarea {
  border: 2px solid var(--border);
  border-radius: 0;
  background:
    repeating-linear-gradient(180deg, rgba(255,255,255,0.06) 0, rgba(255,255,255,0.06) 24px, rgba(139,93,61,0.06) 24px, rgba(139,93,61,0.06) 25px),
    rgba(255, 248, 236, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35);
  color: var(--text);
  font-family: var(--font-body);
}

textarea {
  min-height: 126px;
  font-size: 12px;
  line-height: 1.45;
}

button,
.action-link {
  border: 2px solid var(--border-strong);
  border-radius: 0;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
  box-shadow: 3px 3px 0 rgba(60, 32, 17, 0.95);
  min-height: 44px;
}

button {
  background: linear-gradient(90deg, #995728 0%, #8e4c20 100%);
  color: #f5ead0;
}

button:hover,
.action-link:hover {
  transform: translate(1px, 1px);
  box-shadow: 2px 2px 0 rgba(60, 32, 17, 0.95);
}

.action-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f2e7cf;
  color: #7b4d2a;
  text-decoration: none;
}

#checkBtn,
#simulateRevealBtn {
  background: linear-gradient(90deg, #c7a135 0%, #bf962d 100%);
  color: #2c170d;
}

#nextBtn,
#claimBtn {
  background: linear-gradient(90deg, #9a5727 0%, #8a461d 100%);
  color: #f5ead0;
}

.secondary-button,
.secondary-button:hover {
  background: #f2e7cf;
  color: #8c562f;
  border-color: var(--border);
}

.button-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.button-row > * {
  width: 100%;
}

.status {
  border: 2px solid #9eae91;
  border-radius: 0;
  background: rgba(223, 230, 208, 0.78);
  color: #738166;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
  font-size: 15px;
  padding: 10px 14px;
  box-shadow: none;
}

.status.good {
  border-color: #9eae91;
  color: #65765b;
  background: rgba(219, 228, 205, 0.82);
}

.status.warn,
.status.bad {
  border-color: #b58e67;
  color: #8f5d3b;
  background: rgba(239, 220, 195, 0.82);
}

#revealState {
  font-family: var(--font-mono);
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #74866a;
}

.reveal-frame,
.tech-details,
.claim-box {
  border: 2px solid var(--border);
  border-radius: 0;
  background:
    repeating-linear-gradient(180deg, transparent 0, transparent 26px, rgba(164, 95, 42, 0.08) 26px, rgba(164, 95, 42, 0.08) 27px),
    linear-gradient(180deg, #f4ead6 0%, #efe2ca 100%);
  box-shadow: var(--shadow-card);
}

.reveal-frame {
  overflow: hidden;
}

.card-shell {
  width: 100%;
  aspect-ratio: 1 / 1;
  max-width: none;
  margin: 0;
  border: 0;
  border-bottom: 2px solid #b7832f;
  border-radius: 0;
  background: linear-gradient(135deg, #2f7a74 0%, #566aa6 100%);
  box-shadow: none;
}

.card-shell::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid rgba(199, 161, 53, 0.95);
  pointer-events: none;
}

.card-shell::after {
  content: attr(data-banner);
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  min-width: 132px;
  text-align: center;
  padding: 4px 10px;
  background: #3f1e12;
  color: #d0a431;
  border: 1px solid rgba(199, 161, 53, 0.6);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.card-shell[data-state="revealed"]::after {
  content: "Revealed";
}

.card-shell[data-state="locked"]::after {
  content: "Unrevealed";
}

.card-shell[data-state="idle"]::after {
  content: "";
  display: none;
}

.hidden-card {
  background: linear-gradient(135deg, #5a5e7e 0%, #7b6e55 100%);
  color: #f6ead0;
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 500;
}

.hidden-card::after {
  content: "Waiting for mint confirmation";
  color: rgba(246, 234, 208, 0.8);
}

.reveal-summary {
  display: grid;
  gap: 0;
  padding: 14px 18px 16px;
  border: 0;
  border-radius: 0;
  background: linear-gradient(90deg, #3b1c12 0%, #2b140c 100%);
  box-shadow: none;
}

.reveal-summary-row {
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(208, 164, 49, 0.14);
}

.reveal-summary-row:last-child {
  border-bottom: 0;
}

.reveal-summary-key {
  color: #b0894c;
  margin-bottom: 0;
}

.reveal-summary-value,
.trait-chip-list.is-empty {
  color: #f3e7ce;
  font-size: 14px;
}

#revealSummaryState {
  color: #d6b041;
  font-weight: 700;
}

.trait-chip {
  border: 1px solid rgba(208, 164, 49, 0.28);
  border-radius: 0;
  background: rgba(208, 164, 49, 0.12);
  color: #f3e7ce;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.tech-details {
  padding: 0;
  overflow: hidden;
}

.tech-details > summary {
  position: relative;
  padding: 12px 18px;
  background: rgba(245, 233, 211, 0.95);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #755031;
}

.tech-details > summary::before {
  content: "+";
  margin-right: 10px;
}

.tech-details > summary::after {
  content: "▼";
  position: absolute;
  right: 16px;
  top: 11px;
  font-size: 12px;
}

.tech-details[open] > summary::before {
  content: "−";
}

.tech-details[open] > summary::after {
  content: "▲";
}

#traits {
  border-top: 2px solid rgba(155, 90, 45, 0.22);
  background: rgba(248, 239, 224, 0.95);
  color: #74553d;
}

.post-reveal-box {
  padding: 18px 18px 20px;
}

.post-reveal-box h3 {
  margin-bottom: 6px;
}

.post-reveal-box p {
  margin-bottom: 14px;
}

.post-reveal-line {
  grid-template-columns: 1fr;
  gap: 12px;
}

.claim-input-line {
  margin-bottom: 0;
}

.post-reveal-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.post-reveal-actions button {
  width: 100%;
}

@media (max-width: 980px) {
  .shell {
    width: min(100% - 20px, 1100px);
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .search-first .steps {
    grid-template-columns: 1fr;
  }

  .docs-strip {
    flex-direction: column;
    align-items: stretch;
  }

  .hero,
  .flow,
  .reveal,
  .search-first {
    padding: 22px;
  }
}

@media (max-width: 600px) {
  .button-row,
  .post-reveal-actions {
    grid-template-columns: 1fr;
  }

  .block-line {
    grid-template-columns: 1fr;
    grid-template-areas:
      "label"
      "input"
      "check"
      "next";
  }

  .reveal-summary-row {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 44px;
  }
}

.risk-callout {
  border: 2px solid #b7832f;
  background: rgba(245, 233, 211, 0.9);
  padding: 10px 12px;
  font-family: var(--font-body);
  color: #734b2f;
}

.risk-callout p {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
}

.legal-strip {
  border: 2px solid var(--border);
  background: linear-gradient(180deg, #f4ead6 0%, #efe2ca 100%);
  box-shadow: var(--shadow-card);
  padding: 14px 16px;
  display: grid;
  gap: 12px;
}

.legal-strip-copy {
  margin: 0;
  color: var(--text-muted);
  font-family: var(--font-body);
  font-size: 17px;
  font-style: normal;
  font-weight: 500;
}

.legal-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.legal-shell {
  width: min(980px, calc(100% - 36px));
}

.legal-hero {
  padding: 28px 30px;
}

.legal-updated {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #d0a431;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.legal-panel {
  padding: 24px 30px;
  display: grid;
  gap: 18px;
}

.legal-section {
  border: 2px solid rgba(155, 90, 45, 0.22);
  background: rgba(248, 239, 224, 0.78);
  padding: 14px 16px;
}

.legal-section h2 {
  margin: 0 0 8px;
  font-size: 25px;
  line-height: 1.1;
  color: var(--text);
  font-family: var(--font-display);
}

.legal-section p {
  margin: 0;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.55;
  font-family: var(--font-body);
  font-style: normal;
}

.legal-section ul {
  margin: 0;
  padding-left: 22px;
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1.5;
  font-family: var(--font-body);
  font-style: normal;
}

@media (max-width: 600px) {
  .legal-link-row {
    flex-direction: column;
  }

  .legal-shell {
    width: min(100% - 18px, 980px);
  }

  .legal-hero,
  .legal-panel {
    padding: 18px 16px;
  }

  .legal-section h2 {
    font-size: 21px;
  }
}
