/* The Mint page, in the Landfall theme (assets/home/base.css + theme.css). A full-screen 3D hero (assets/mint/mint3d.js)
   with HiMen floating round the words, then the Get HiMan card on dark glass: a countdown and one button to the OpenSea
   drop. Load after theme.css. */

/* ── stage and fallback ── */
/* base.css's `header.top { position: relative }` would otherwise outrank theme.css's fixed header (same fix as pages.css) */
header.top { position: fixed; z-index: 6; }
.sky { display: block; }
/* the stage belongs to the hero: as tall as the first screen (mint3d.js sets the exact px), it scrolls away with the
   page and its bottom fades into the still starfield below */
#canvas-container { position: absolute; inset: 0 0 auto 0; height: 100vh; height: 100svh; overflow: hidden;
  -webkit-mask-image: linear-gradient(#000 88%, transparent); mask-image: linear-gradient(#000 88%, transparent); }
/* OrbitControls sets touch-action: none on the canvas; here the page must still scroll by touch, except on a HiMan
   (mint3d.js takes those touches itself) */
#canvas-container canvas { touch-action: pan-y pinch-zoom !important; }
body.no-gl #canvas-container { display: none; }
body:not(.gl-on) .toy { visibility: hidden; }
body.no-gl .toy, body.no-gl .launched { display: none; }
.says { position: absolute; inset: 0; z-index: 3; pointer-events: none; overflow: hidden; }
.say { position: absolute; left: 0; top: 0; padding: 7px 12px 8px; border-radius: 14px 14px 14px 4px; background: rgba(236, 232, 225, .95); color: #0B0904;
  font: 500 14px/1.25 "Work Sans", system-ui, sans-serif; white-space: nowrap; box-shadow: 0 6px 20px rgba(0, 0, 0, .45);
  opacity: 0; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -100%) scale(.85); transition: opacity .18s var(--ease-out), scale .18s var(--ease-out); will-change: transform; }
.say.on { opacity: 1; transform: translate3d(var(--x, 0), var(--y, 0), 0) translate(-50%, -100%); }
body.grab, body.grab * { cursor: grab !important; }
body.grabbing, body.grabbing * { cursor: grabbing !important; user-select: none; -webkit-user-select: none; }

/* ── hero ── */
.hero { position: relative; z-index: 2; min-height: 100svh; display: flex; align-items: center; padding: 120px var(--gutter) 9vh; }
.hero .copy { max-width: min(600px, 44vw); }
.hero h1 { margin: 0; font: 400 clamp(58px, 6.4vw, 112px)/.94 Italiana; letter-spacing: -.01em; text-wrap: balance; }
.hero h1 .gold { color: var(--gold); }
.hero .lead { margin-top: 26px; max-width: 34ch; }
.hero .lead + .lead { margin-top: 2px; } /* two short lines under the title, as on the home page */
@media (min-width: 861px) and (min-aspect-ratio: 124/100) { .board .copy { position: sticky; top: 132px; } } /* the words stay beside the pass */
.t-kicker { font-weight: 300; }
.hero .ctas { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 22px; margin-top: 30px; }
.hero .chip { margin: 0 0 22px; }
.hero .eyebrow-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; margin: 0 0 22px; }
.hero .eyebrow-row .chip, .hero .eyebrow-row .eyebrow { margin: 0; }
.hero .chip { background: rgba(0, 0, 0, .35); }
.hero h1, .hero .lead, .hero .eyebrow, .toy, .board .h2, .board p { text-shadow: var(--text-shadow); }
.toy { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; margin: 18px 0 0; font-size: 15px; color: var(--muted); }
.toy .hand { color: var(--gold); font: 300 12px/1 Jura; letter-spacing: .3em; text-transform: uppercase; }
.text-btn { appearance: none; border: 0; background: none; padding: 14px 0; margin: -14px 0; min-height: 44px; color: var(--ink); font: inherit; cursor: pointer; border-bottom: 1px solid var(--line); line-height: 1.1; }
.text-btn:hover { border-color: var(--ink); }
.launched { margin: 10px 0 0; font: 300 14px/1.3 Jura; letter-spacing: .12em; color: var(--gold); min-height: 1.3em; }

/* ── boarding: the copy beside the ticket ── */
.board { position: relative; z-index: 2; min-height: 100svh; padding: 132px var(--gutter) 110px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 40px 6vw; align-items: start; }
.board .copy { max-width: 440px; padding-top: 10px; }
.board .h2 { font-size: clamp(44px, 4.6vw, 76px); }
.board .lead { max-width: 38ch; }
.board .facts { list-style: none; margin: 28px 0 0; padding: 0; display: grid; gap: 10px; color: var(--muted); font-size: 15px; }
.board .facts li { display: flex; gap: 12px; align-items: baseline; }
.board .facts b { font: 300 13px/1 Jura; letter-spacing: .26em; text-transform: uppercase; color: var(--gold); min-width: 64px; }

/* ── the ticket ── */
[data-sec] .ticket { pointer-events: auto; }
.ticket { position: relative; width: 100%; border-radius: 26px; background: rgba(9, 9, 13, .74); border: 1px solid var(--line-soft);
  -webkit-backdrop-filter: blur(18px) saturate(1.1); backdrop-filter: blur(18px) saturate(1.1);
  box-shadow: 0 40px 90px rgba(0, 0, 0, .55), inset 0 1px 0 rgba(255, 255, 255, .06); font-size: 15px; scroll-margin-top: 90px; }
.ticket::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(160deg, rgba(233, 185, 73, .55), rgba(233, 185, 73, 0) 34%, rgba(233, 185, 73, 0) 70%, rgba(233, 185, 73, .25));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.t-part { padding: 22px 26px; }
.t-part + .t-part { padding-top: 20px; }
.t-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.t-kicker { margin: 0; font: 300 12px/1 Jura; letter-spacing: .34em; text-transform: uppercase; color: var(--gold); }
.gate-chip { display: inline-flex; align-items: center; gap: 9px; height: 32px; margin-left: auto; padding: 0 13px; border-radius: 999px; border: 1px solid var(--line-soft); font: 300 12px/1 Jura; letter-spacing: .2em; text-transform: uppercase; color: var(--ink); }
.gate-chip i { font-style: normal; color: var(--muted); }
.route { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; margin: 20px 0 0; padding: 14px 0 0; border-top: 1px solid var(--line-soft); }
.route span { display: grid; gap: 5px; }
.route b { font: 300 22px/1 Jura; letter-spacing: .08em; }
.route i { font: 300 11px/1 Jura; font-style: normal; letter-spacing: .28em; text-transform: uppercase; color: var(--muted); }
.route .path { height: 14px; display: block; color: var(--gold); }
.route .path svg { width: 100%; height: 14px; }
.route .day { padding-left: 14px; border-left: 1px solid var(--line-soft); }
.route .day b { color: var(--gold); }

/* the perforation between the stub and the rest */
.perf { position: relative; height: 0; margin: 0 26px; border-top: 1.5px dashed rgba(236, 232, 225, .16); }
.perf::before, .perf::after { content: ""; position: absolute; top: -10px; width: 20px; height: 20px; border-radius: 50%; background: #000; border: 1px solid var(--line-soft); }
.perf::before { left: -37px; clip-path: inset(0 0 0 50%); }
.perf::after { right: -37px; clip-path: inset(0 50% 0 0); }

/* the status line: big, quiet, on the stub */
.pass-status { margin: 22px 0 0; font: 400 clamp(28px, 2.4vw, 34px)/1.1 Italiana; color: var(--ink); }
.pass-status span { white-space: nowrap; }
.pass-status .gold { color: var(--gold); }

/* countdown (drawn by the page script) */
#pass-countdown { margin-top: 18px; }
#pass-countdown[hidden] { display: none; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line-soft); border-radius: 16px; background: rgba(255, 255, 255, .02); }
.cd-cell { position: relative; display: grid; justify-items: center; gap: 7px; padding: 14px 4px 16px; border-left: 1px solid var(--line-soft); }
.cd-cell:first-child { border-left: 0; }
.cd-cell b { font: 300 clamp(28px, 2.6vw, 36px)/1 Jura; font-variant-numeric: tabular-nums; color: var(--ink); }
.cd-cell span { font: 300 10.5px/1 Jura; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.cd-bar { position: absolute; left: 24%; right: 24%; bottom: 6px; height: 2px; border-radius: 2px; background: rgba(236, 232, 225, .08); overflow: hidden; }
.cd-bar > i { display: block; height: 100%; width: 0; background: var(--gold); }
.cd-meta { margin: 10px 0 0; color: #8E9198; font-size: 13px; line-height: 1.5; }

/* the one button: disabled until opensea.drop is set, then a gold link to the drop */
.act { margin-top: 4px; }
.btn-lg { padding: 18px 28px; font-size: 17px; min-height: 56px; }
.btn-block { width: 100%; }
.btn[disabled]:hover { background: var(--gold); }
.btn svg { width: 16px; height: 16px; flex: none; }
.btn-reason { margin: 10px 0 0; font-size: 13px; color: var(--muted); text-align: center; overflow-wrap: anywhere; }
.btn-secondary { background: rgba(255, 255, 255, .03); color: var(--ink); border: 1px solid var(--line); }
.btn-secondary:hover { background: rgba(255, 255, 255, .07); border-color: rgba(236, 232, 225, .45); }
.btn-sm { min-height: 44px; padding: 0 18px; font-size: 14px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.row:not(:has(:not([hidden]))) { display: none; }
.row .btn { flex: 1 1 auto; }
.fine { margin: 0; font-size: 12.5px; line-height: 1.55; color: #7E8188; }
.fine + .fine { margin-top: 10px; }
.fine.safety { color: var(--muted); font-size: 13.5px; }

@media (max-width: 860px), (max-aspect-ratio: 124/100) {
  .hero { align-items: flex-end; padding: 96px 20px max(28px, 5vh); }
  .hero .copy { max-width: 560px; }
  .hero h1 { font-size: clamp(46px, 12.6vw, 76px); }
  .hero .lead { margin-top: 18px; font-size: 16.5px; }
  .hero .ctas { margin-top: 22px; }
  .hero .eyebrow-row { margin-bottom: 16px; }
  .toy { margin-top: 14px; font-size: 14px; }
  .board { grid-template-columns: minmax(0, 1fr); padding: 96px 16px 96px; gap: 26px; min-height: 0; }
  .board .copy { padding-top: 0; }
  .board .h2 { font-size: clamp(40px, 11vw, 60px); }
  .ticket { max-width: 560px; }
}
@media (max-width: 420px) {
  .t-part { padding: 20px 18px; }
  .perf { margin: 0 18px; }
  .perf::before { left: -29px; } .perf::after { right: -29px; }
  .route { gap: 10px; }
  .route b { font-size: 19px; }
  .cd-cell b { font-size: 26px; }
  .cd-cell span { letter-spacing: .14em; }
}
@media (prefers-reduced-motion: reduce) { .say { transition: none; } }

/* phones: the words stay compact so the HiMen above them get room */
.toy .short { display: none; }
@media (max-width: 420px) {
  .hero .lead { font-size: 16px; line-height: 1.45; margin-top: 14px; }
  .toy .hand, .toy .long { display: none; }
  .toy .short { display: inline; }
}
