@font-face {
  font-family: "Barlow Condensed";
  src: url("/mint/fonts/barlow-condensed-latin-900-italic.woff2") format("woff2");
  font-style: italic;
  font-weight: 900;
  font-display: swap;
}
@font-face {
  font-family: "Barlow Condensed";
  src: url("/mint/fonts/barlow-condensed-latin-800-normal.woff2") format("woff2");
  font-style: normal;
  font-weight: 800;
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #152b34;
  --ink-deep: #102630;
  --paper: #f7f3e8;
  --ivory: #fffaf0;
  --muted: #4f615f;
  --dim: #646857;
  --line: #d6ccb5;
  --brass: #946323;
  --orange: #a96324;
  --gold: #ebb25e;
  --red: #ae3927;
  --lime: #405f59;
  --display: "Barlow Condensed", "Arial Narrow", "Microsoft YaHei", sans-serif;
  --sans: "Segoe UI", "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --mono: ui-monospace,"Cascadia Code",Consolas,monospace;
  --page-width: min(1240px, calc(100% - clamp(38px, 9.4vw, 144px)));
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
html { min-width: 320px; scroll-padding-block-start: 82px; }
body { margin: 0; min-width: 320px; line-height: 1.55; }
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: inherit; }
:focus-visible { outline: 3px solid #c96422; outline-offset: 4px; }
::selection { color: var(--ink-deep); background: #f1c77b; }
h1, h2, h3, h4, p { margin: 0; }
.wrap { width: 100%; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }

/* The masthead uses the same compact wordmark and ink buttons as the homepage. */
.top { position: relative; z-index: 2; color: var(--ink); background: #fbf8ef; border-bottom: 1px solid #c1b69c; }
.top-inner, .hero-inner, .mint-desk, .section, footer { width: var(--page-width); margin-inline: auto; }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; min-height: 67px; }
.brand, .top-right, .chip, .btn { display: inline-flex; align-items: center; }
.brand { gap: 9px; color: var(--ink); text-decoration: none; }
.brand img { width: 41px; height: 41px; object-fit: contain; }
.brand span { font: italic 900 clamp(22px, 2vw, 29px)/1 var(--display); letter-spacing: -.035em; white-space: nowrap; }
.brand em { color: var(--red); font: inherit; }
.mint-nav { display: flex; align-self: stretch; align-items: stretch; gap: clamp(17px, 2.2vw, 36px); }
.mint-nav a { display: inline-flex; align-items: center; position: relative; color: var(--muted); font-size: 14px; font-weight: 650; text-decoration: none; }
.mint-nav a:first-child, .mint-nav a:hover { color: var(--red); }
.mint-nav a:first-child::after { content: ""; position: absolute; bottom: 11px; left: calc(50% - 9px); width: 18px; height: 2px; background: var(--red); }
.top-right { gap: 10px; }
.top-right .btn { white-space: nowrap; }
.back-home, .home-link { color: var(--muted); font-size: 13px; font-weight: 700; text-decoration: none; }
.back-home:hover, .home-link:hover { color: var(--red); }
.chip { gap: 7px; color: var(--muted); font: 800 14px/1 var(--display); letter-spacing: .025em; }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #be8d3c; }
.btn, .mint-btn { justify-content: center; gap: 8px; border: 1px solid #9c9279; border-radius: 4px; padding: 9px 15px; text-decoration: none; color: var(--ink); background: #faf6e9; box-shadow: 0 2px 0 #cbbfa7; font-size: 13px; font-weight: 700; transition: transform .17s, color .17s, background .17s, box-shadow .17s; }
.btn.primary { background: var(--ink); border-color: var(--ink-deep); color: #fff6df; box-shadow: 0 2px 0 #718481; }
.btn.ghost { box-shadow: none; border-color: #c8bda3; }
.btn:active:not(:disabled), .mint-btn:active:not(:disabled) { transform: translateY(1px); box-shadow: none; }

/* The print is the actual captain from the original homepage, cropped for the terminal. */
.mint-hero { isolation: isolate; position: relative; overflow: hidden; border-bottom: 3px solid var(--gold); background: #142e38; color: #fff5d9; }
.mint-hero::after, .mint-hero .hero-art { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.mint-hero .hero-art { display: block; z-index: -2; object-fit: cover; object-position: 55% 12%; }
.mint-hero::after { content: ""; z-index: -1; background: linear-gradient(90deg, #09232ee8 0%, #102d39ce 20%, #112c389c 37%, #102d3624 57%, transparent 73%), linear-gradient(0deg, #08253560, transparent 30%); }
.hero-inner { min-height: clamp(265px, 24vw, 372px); display: flex; flex-direction: column; align-items: flex-start; justify-content: center; padding: clamp(24px, 2.8vw, 44px) 0; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; color: #ffcc76; font: 800 12px/1.25 var(--display); letter-spacing: .19em; text-transform: uppercase; }
.eyebrow::before { content: ""; width: 21px; height: 3px; background: currentColor; box-shadow: 3px 0 0 -1px currentColor; }
.mint-hero h1 { color: #fff5d9; font: italic 900 clamp(72px, 6.7vw, 115px)/.78 var(--display); letter-spacing: -.025em; text-shadow: 1px 3px #172b31; }
.mint-hero h1 > span, .mint-hero h1 > em { display: block; }
.mint-hero h1 em { margin-top: .055em; font: inherit; color: #ffb33f; text-shadow: 1px 2px #844823, 2px 4px #172b31; }
.lede { max-width: min(47%, 540px); margin-top: 17px; color: #fff1d8; font-size: clamp(14px, 1.05vw, 17px); font-weight: 600; }
.lede b { white-space: nowrap; }

/* Mint and the compact illustrated reference share one editorial spread. */
.mint-desk { display: grid; grid-template-columns: minmax(0, 1.38fr) minmax(285px, .82fr); align-items: start; gap: clamp(20px, 2.8vw, 40px); margin-block: clamp(27px, 3.2vw, 52px) 0; }
.mint, .mint-guide { min-width: 0; border: 1px solid #a89e84; border-radius: 7px; background: var(--ivory); box-shadow: 0 4px 0 #ded5bf, 0 13px 30px -26px #283a37; }
.mint { position: relative; padding: clamp(20px, 2.15vw, 34px); }
.mint::before { content: ""; position: absolute; inset: -1px 17% auto -1px; height: 3px; background: linear-gradient(to right, var(--red) 0 44px, #c7ac78 44px 82px, transparent 82px); border-top-left-radius: inherit; }
.mint-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 19px; }
.mint-head h2, .guide-body h2, .section-head h2 { color: var(--ink); font-size: clamp(22px, 2.15vw, 33px); font-weight: 800; letter-spacing: -.045em; line-height: 1.18; }
.mint-head small, .section-kicker, .panel-kicker, .guide-kicker { display: block; margin: 0 0 7px; color: var(--brass); font: 800 11px/1.2 var(--display); letter-spacing: .16em; text-transform: uppercase; }
.mint-head .status { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #d4c599; background: #f8efda; color: #74552c; border-radius: 20px; padding: 5px 10px; font-size: 11px; font-weight: 700; }
.bar-track { height: 8px; margin-bottom: 12px; border: 1px solid #d1c8af; border-radius: 2px; background: repeating-linear-gradient(125deg, #e4ddca 0 4px, #f0e9d8 4px 8px); overflow: hidden; }
.bar-fill { height: 100%; width: 0%; background: linear-gradient(90deg, #b33b28, #db7c3f 72%, #efb763); transition: width .4s ease-out; }
.bar-meta { display: flex; justify-content: space-between; gap: 12px; margin: 0 0 6px; color: var(--muted); font: 800 15px/1.4 var(--display); font-variant-numeric: tabular-nums; letter-spacing: .025em; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 43px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.row .k, .total .k { color: var(--muted); font-size: 13px; font-weight: 600; }
.row .v { color: var(--ink); font: 800 18px/1.2 var(--display); font-variant-numeric: tabular-nums; }
.stepper { display: inline-flex; align-items: center; border: 1px solid #9f967c; border-radius: 4px; background: #f6f0df; box-shadow: 0 2px 0 #dcd1b9; overflow: hidden; }
.stepper button, .stepper input { text-align: center; border: 0; color: var(--ink); }
.stepper button { width: 36px; height: 35px; background: transparent; font-size: 19px; }
.stepper input { width: 46px; height: 35px; border-inline: 1px solid #d5cbb2; background: var(--ivory); font: 800 20px/1 var(--display); }
.stepper :focus-visible { outline-offset: -3px; }
.total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 13px 0 9px; }
.total .amount { color: var(--ink); font: 800 clamp(31px, 2.8vw, 44px)/1.05 var(--display); font-variant-numeric: tabular-nums; letter-spacing: -.025em; }
.amount small { margin-left: 5px; color: var(--brass); font: 800 15px/1 var(--display); letter-spacing: .015em; }
.mint-btn { display: flex; width: 100%; min-height: 45px; border-color: #913524; background: #ba422e; color: #fff9e9; box-shadow: 0 3px 0 #7d3325; font-size: 15px; letter-spacing: .03em; }
.mint-btn:disabled { border-color: #b1a891; background: #ded7c6; color: #574f40; box-shadow: inset 0 1px #f0ead9; }
.mint-note { margin-top: 8px; color: var(--dim); font-size: 12px; line-height: 1.55; text-align: center; overflow-wrap: anywhere; }
.field-label { display: block; margin: 18px 0 7px; color: var(--ink); font-size: 13px; font-weight: 750; }
.invite { display: flex; gap: 8px; margin-top: 14px; }
.field-label + .invite { margin-top: 0; }
.invite input { flex: 1 1 130px; min-width: 0; min-height: 41px; border: 1px solid #bcb098; border-radius: 4px; padding: 8px 11px; background: #fffdf7; color: var(--ink); font: 14px/1.2 var(--sans); }
.invite input::placeholder { color: #77796d; }
.invite .btn { flex: none; }
.ref-flag, .banner { display: none; margin-top: 12px; border: 1px solid #dbc491; border-left: 3px solid #bc8d48; border-radius: 3px; padding: 9px 12px; color: #795624; background: #fbf2dd; font-size: 12px; line-height: 1.55; overflow-wrap: anywhere; }
.ref-flag { border-color: #acc2b6; border-left-color: #548273; background: #eef4e9; color: #395b51; }
.mint-guide { overflow: hidden; }
.guide-art { display: block; width: 100%; height: clamp(150px, 13.8vw, 204px); object-fit: cover; object-position: 50% 37%; border-bottom: 2px solid #b79c68; background: #183741; }
.guide-body { padding: clamp(17px, 2vw, 28px); }
.guide-body h2 { font-size: clamp(19px, 1.6vw, 25px); }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 16px 0 0; }
.fact { min-width: 0; padding: 10px 6px 9px 0; border-top: 1px solid var(--line); }
.fact:nth-child(2n) { padding-left: 15px; border-left: 1px solid var(--line); }
.fact span, .fact dt { display: block; margin-bottom: 2px; color: var(--muted); font-size: 12px; font-weight: 600; }
.fact b, .fact dd { display: block; margin: 0; color: var(--ink); font: 800 clamp(23px, 2.1vw, 33px)/1.15 var(--display); font-variant-numeric: tabular-nums; }
.fact small { margin-left: 4px; color: var(--brass); font-size: 12px; font-weight: 700; }
.guide-body > p { margin-top: 13px; color: var(--muted); font-size: 13px; line-height: 1.65; overflow-wrap: anywhere; }
.tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 13px; }
.tag { color: #6a5c41; border: 1px solid #d9c9a7; border-radius: 3px; padding: 2px 7px; background: #f6eedb; font-size: 11px; }

.section { padding-top: clamp(40px, 5.1vw, 74px); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 15px; margin: 0 0 17px; padding-bottom: 12px; border-bottom: 1px solid #c8bba1; }
.section-head h2 { font-size: clamp(21px, 2vw, 31px); }
.section-head p { color: var(--muted); font-size: 12px; }
.market-facts, .steps { display: grid; gap: 13px; }
.market-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.card, .step { min-width: 0; border: 1px solid #d0c5aa; border-radius: 5px; padding: clamp(17px, 1.8vw, 28px); background: #fcf8ee; }
.card h3 { font-size: 16px; line-height: 1.4; }
.source-link { display: grid; align-content: start; gap: 7px; text-decoration: none; }
.source-link code { font: 13px/1.55 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.source-link > span { margin-top: 7px; font-size: 13px; font-weight: 700; color: var(--red); }
.source-link:hover, .source-link:focus-visible { border-color: var(--brass); background: var(--ivory); }
.source-link:hover > span, .source-link:focus-visible > span { text-decoration: underline; text-underline-offset: .2em; }
.card p, .step p, details p { color: var(--muted); font-size: 13px; line-height: 1.75; }
.big { margin: 7px 0 4px; color: var(--brass); font: 800 clamp(32px, 3.4vw, 53px)/1 var(--display); letter-spacing: -.025em; }
.big small { margin-left: 4px; font-size: .48em; }
.steps { grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); color: var(--red); font: italic 900 24px/1 var(--display); }
.step b { display: block; margin: 9px 0 3px; font-size: 14px; }
.faq { border-bottom: 1px solid var(--line); }
details { border-top: 1px solid var(--line); padding: 13px 0; }
details:first-child { border-top: 0; }
summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; list-style: none; cursor: pointer; font-size: 14px; font-weight: 700; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; color: var(--brass); font-size: 19px; line-height: 1; }
details[open] summary::after { content: "−"; }
details p { margin-top: 8px; max-width: 80ch; }
footer { margin-top: clamp(40px, 5vw, 76px); border-top: 1px solid #c5b897; padding-block: 18px 32px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; color: var(--dim); font-size: 12px; }
footer .addr { overflow-wrap: anywhere; }
.toast { position: fixed; z-index: 5; left: 50%; bottom: max(18px, env(safe-area-inset-bottom)); width: max-content; max-width: min(calc(100% - 32px), 540px); border: 1px solid #a38d60; border-left: 3px solid var(--gold); padding: 12px 15px; border-radius: 4px; color: #fff4d8; background: #17323b; box-shadow: 0 7px 24px #10253140; pointer-events: none; opacity: 0; transform: translate(-50%, 12px); transition: opacity .16s, transform .16s; font-size: 13px; overflow-wrap: anywhere; }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast.bad { border-left-color: #f38262; }
.toast a { color: #ffd486; text-decoration: underline; }

.agent-prompt-card { margin-top: clamp(18px, 2vw, 30px); padding: clamp(15px, 2.2vw, 26px); border: 1px solid var(--line); border-radius: 8px; background: linear-gradient(110deg,#faf1db,var(--ivory)); }
.agent-prompt-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px 20px; }
.agent-prompt-actions h2 { font: 800 clamp(19px,2vw,27px)/1.3 var(--display); }
.agent-prompt-card details { padding-bottom: 0; border: 0; }
.agent-prompt-card summary { width: fit-content; gap: 10px; color: var(--brass); }
.agent-prompt-card textarea { display: block; width: 100%; margin-top: 10px; padding: 10px; border: 1px solid var(--line); border-radius: 5px; background: var(--ivory); color: var(--ink); font: 14px/1.6 var(--sans); resize: vertical; }
#agentPromptStatus:not(:empty) { margin-top: 8px; color: var(--muted); font-size: 14px; }

@media (hover: hover) and (pointer: fine) {
  .btn:hover:not(:disabled) { transform: translateY(-1px); background: #f0e6d0; }
  .btn.primary:hover:not(:disabled) { background: #294a52; }
  .mint-btn:hover:not(:disabled) { transform: translateY(-1px); background: #c54b32; }
  .stepper button:hover { background: #e8dcc2; }
  summary:hover { color: var(--red); }
}
@media (max-width: 800px) {
  .mint-nav { display: none; }
  :root { --page-width: calc(100% - 40px); }
  .mint-desk { grid-template-columns: minmax(0, 1.3fr) minmax(220px, .78fr); gap: 14px; }
  .guide-body { padding: 15px; }
  .guide-art { height: 150px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 801px) and (max-height: 790px) {
  .hero-inner { min-height: clamp(228px, 32vh, 253px); padding-block: 18px; }
  .mint-hero h1 { font-size: clamp(63px, 5.6vw, 82px); }
  .mint-desk { margin-top: 26px; }
}
@media (max-width: 640px) {
  :root { --page-width: calc(100% - 32px); }
  .top-inner { min-height: 57px; gap: 8px; }
  .brand { gap: 6px; }
  .brand img { width: 34px; height: 34px; }
  .brand span { font-size: 22px; }
  .top-right { gap: 7px; }
  .top-right .chip { display: none; }
  .top-right .btn { min-height: 38px; padding: 7px 10px; font-size: 12px; }
  .hero-inner { min-height: clamp(188px, 48vw, 252px); padding-block: 20px; }
  .mint-nav { display: none; }
  .mint-hero .hero-art { object-position: 67% 30%; }
  .mint-hero::after { background: linear-gradient(90deg,#0b2834e8 0%,#0f2a35bc 22%,#132d3770 45%,transparent 73%),linear-gradient(0deg,#1028365c,transparent 28%); }
  .eyebrow { margin-bottom: 7px; font-size: 10px; letter-spacing: .13em; gap: 6px; }
  .eyebrow::before { width: 13px; height: 2px; }
  .mint-hero h1 { font-size: clamp(48px, 12.6vw, 76px); }
  .lede { max-width: 54%; margin-top: 12px; font-size: 12px; }
  .mint-desk { grid-template-columns: 100%; margin-top: 19px; gap: 19px; }
  .mint { padding: 18px; }
  .mint-head { margin-bottom: 14px; }
  .row { min-height: 42px; padding-block: 7px; }
  .stepper button, .stepper input { height: 40px; }
  .stepper button { width: 40px; }
  .invite input { font-size: 16px; }
  .guide-art { height: clamp(125px, 39vw, 210px); }
  .guide-body { padding: 18px; }
  .market-facts { grid-template-columns: 1fr; gap: 9px; }
  .steps { gap: 9px; }
  .section-head { align-items: center; }
  .section-head p { font-size: 11px; }
}
@media (max-width: 370px) {
  .top-inner { flex-wrap: wrap; padding-block: 6px; }
  .top-right { margin-left: auto; }
  :root { --page-width: calc(100% - 24px); }
  .top-right { gap: 5px; }
  .back-home, .home-link { font-size: 11px; }
  .mint { padding: 15px; }
  .invite .btn { padding-inline: 8px; font-size: 12px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: 0s !important; animation-duration: 0s !important; }
}
