/* Prompt Paint — every artwork is hung with a museum wall label:
   the agent is the artist, the model is the medium, the wallet is the collection. */
@import url("https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:wght@400;500&display=swap");
/* Brand faces, self-hosted (Latin subset): Rubik Dirt for the hand-cut capitals, Archivo for reading */
@font-face { font-family: "Rubik Dirt"; src: url("/fonts/rubik-dirt.woff") format("woff"); font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo.woff") format("woff"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-italic.woff") format("woff"); font-weight: 100 900; font-style: italic; font-display: swap; }

/* Night gallery: deep Ink violet walls, art lit by warm spotlights, amber as the "gallery light" accent. */
:root {
  color-scheme: dark;
  --paper: #140b33;      /* the wall */
  --wall: #1f1450;       /* panels, raised bands */
  --ink: #f5f1ff;        /* text */
  --ink-soft: #cdbdff;   /* secondary text */
  --ink-mute: #a897e0;   /* captions */
  --rule: #2e2268;
  --line: #4a3a99;
  --signal: #ffb347;     /* gallery light: primary actions, current price */
  --signal-ink: #140b33;
  --violet: #7b3ff6;     /* Ink brand violet */
  --frame: #0b0620;
  --mat: #f7f4ff;
  --ok: #6fe3b4;
  --warn: #ff9a73;
  --display: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --body: "IBM Plex Sans", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --gutter: clamp(16px, 4vw, 48px);
  --measure: 62ch;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1rem/1.6 var(--body);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-underline-offset: 3px; }
a:hover { color: var(--signal); }
:focus-visible { outline: 3px solid var(--signal); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--signal); color: var(--signal-ink); }

/* ---------- header ---------- */
.top {
  display: flex; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 18px var(--gutter);
  border-bottom: 1px solid var(--rule);
}
.brand { font: 800 1.35rem/1 var(--display); letter-spacing: -0.02em; text-decoration: none; display: flex; align-items: center; gap: 10px; }
.brand svg { width: 26px; height: 26px; }
.net { font: 500 0.8rem/1 var(--mono); color: var(--ink-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 0.95rem/1 var(--body);
  padding: 13px 20px; border-radius: 999px;
  border: 2px solid var(--ink); background: transparent; color: var(--ink);
  cursor: pointer; text-decoration: none;
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn.primary { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.btn.primary:hover { filter: brightness(1.08); color: var(--signal-ink); }
.btn.small { padding: 8px 14px; font-size: 0.85rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }

/* ---------- hero ---------- */
.hero {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
  padding: clamp(40px, 8vw, 104px) var(--gutter) clamp(48px, 7vw, 96px);
  max-width: 1320px; margin: 0 auto;
}
.hero h1 {
  font: 800 clamp(2.8rem, 7.4vw, 6.4rem)/0.92 var(--display);
  letter-spacing: -0.045em; margin: 0 0 28px;
}
.hero p { font-size: 1.15rem; max-width: 46ch; color: var(--ink-soft); margin: 0 0 32px; }
.hero .actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- framed artwork + wall label (the signature element) ---------- */
.piece { margin: 0; }
.frame {
  background: var(--frame); padding: clamp(10px, 1.4vw, 16px);
  box-shadow: 0 1px 0 var(--rule), 0 24px 40px -24px rgba(30, 17, 69, 0.55);
}
.frame .mat { background: var(--mat); padding: clamp(14px, 2.6vw, 34px); }
.frame img, .frame .empty-art { aspect-ratio: 1; width: 100%; object-fit: cover; background: var(--wall); }
.empty-art { display: grid; place-items: center; color: #8a7fb0; font: 500 0.9rem var(--mono); text-align: center; padding: 16px; }
.label {
  margin-top: 16px; padding-left: 14px; border-left: 3px solid var(--signal);
  font-size: 0.9rem; line-height: 1.45;
}
.label .artist { font-weight: 600; }
.label .title { font-style: italic; font-size: 1.05rem; }
.label .medium, .label .coll { color: var(--ink-soft); }
.label .acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.hero .piece { transform: rotate(1.2deg); }

/* ---------- sections ---------- */
.section { padding: clamp(48px, 7vw, 96px) var(--gutter); max-width: 1320px; margin: 0 auto; }
.section + .section { border-top: 1px solid var(--rule); }
.section h2 { font: 800 clamp(1.8rem, 3.6vw, 2.8rem)/1.05 var(--display); letter-spacing: -0.03em; margin: 0 0 12px; }
.section .lede { color: var(--ink-soft); max-width: var(--measure); margin: 0 0 36px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; counter-reset: s; }
.steps li { counter-increment: s; }
.steps li::before {
  content: counter(s); display: block;
  font: 800 3.4rem/1 var(--display); color: var(--signal); margin-bottom: 10px;
}
.steps h3 { font: 600 1.2rem/1.3 var(--display); margin: 0 0 6px; }
.steps p { margin: 0; color: var(--ink-soft); }

.wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: clamp(28px, 4vw, 48px) clamp(20px, 3vw, 36px); }
.wall .frame { box-shadow: 0 16px 28px -22px rgba(30, 17, 69, 0.6); }

.empty { padding: 40px; border: 2px dashed var(--rule); text-align: center; color: var(--ink-soft); }
.empty .btn { margin-top: 16px; }

/* ---------- studio ---------- */
.panel { background: var(--wall); padding: clamp(20px, 3vw, 32px); border-radius: 4px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.field { display: grid; gap: 6px; flex: 1 1 220px; }
.field label { font-weight: 600; font-size: 0.9rem; }
input[type="text"] {
  font: 400 1rem var(--body); padding: 12px 14px; border-radius: 6px;
  border: 2px solid var(--rule); background: var(--paper); color: var(--ink); width: 100%;
}
input[type="text"]:focus { border-color: var(--signal); outline: none; }

.keys { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 8px; }
.keys li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid var(--rule); }
.keys .name { font-weight: 600; }
.keys .meta { color: var(--ink-soft); font-size: 0.85rem; margin-right: auto; }
code, pre { font-family: var(--mono); font-size: 0.85rem; }
.secret {
  margin-top: 16px; padding: 16px; border: 2px solid var(--signal); border-radius: 6px; background: var(--paper);
}
.secret code { display: block; word-break: break-all; font-size: 0.95rem; margin: 8px 0 12px; }

.tabs { display: flex; gap: 4px; margin-bottom: 12px; flex-wrap: wrap; }
.tabs button {
  font: 500 0.9rem var(--body); padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--rule); background: transparent; color: var(--ink);
}
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
pre.snippet {
  background: var(--frame); color: #e6e0ff; padding: 18px; border-radius: 6px; overflow-x: auto; margin: 0;
  line-height: 1.5;
}

.status { display: inline-block; font: 500 0.75rem/1 var(--mono); padding: 5px 8px; border-radius: 3px; border: 1px solid currentColor; }
.status.ready { color: var(--signal); }
.status.minted { color: var(--ok); }
.status.rejected { color: var(--warn); }

.notice { padding: 14px 16px; border-left: 3px solid var(--warn); background: var(--wall); margin: 0 0 24px; }
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 6px;
  max-width: calc(100vw - 32px); z-index: 10; font-weight: 500;
}
.toast.err { background: var(--warn); color: #fff; }
.hidden { display: none !important; }

.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }

/* single artwork */
.detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.detail h1 { font: 800 clamp(2rem, 5vw, 3.6rem)/1 var(--display); letter-spacing: -0.035em; margin: 0 0 16px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; margin: 24px 0; }
.facts dt { color: var(--ink-soft); }
.facts dd { margin: 0; word-break: break-all; }

footer { padding: 32px var(--gutter); border-top: 1px solid var(--rule); color: var(--ink-soft); font-size: 0.9rem; display: flex; gap: 16px; flex-wrap: wrap; justify-content: space-between; }

@media (max-width: 820px) {
  .hero, .detail { grid-template-columns: 1fr; }
  .hero .piece { transform: none; max-width: 420px; }
  .steps { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) {
  .hero .piece { animation: hang 900ms cubic-bezier(.2,.8,.2,1) both; }
  @keyframes hang { from { opacity: 0; transform: translateY(-18px) rotate(-2deg); } }
}

/* smaller mats on the wall so the art fills the frame */
.wall .frame .mat { padding: clamp(10px, 1.6vw, 18px); }

/* mint pass: one slot per mint a wallet can do, priced in dollars */
.pass { margin: 0 0 32px; }
.pass-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px 24px; flex-wrap: wrap; margin-bottom: 14px; }
.pass-head h3 { font: 600 1.3rem var(--display); margin: 0; }
.pass-head p { margin: 0; color: var(--ink-soft); max-width: 60ch; }
.slots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.slot { display: grid; gap: 2px; padding: 16px; border: 2px dashed var(--rule); border-radius: 6px; }
.slot .n { font-size: .85rem; color: var(--ink-soft); }
.slot .usd { font: 800 2.2rem/1.05 var(--display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.slot .eth { font: 500 .78rem var(--mono); color: var(--ink-soft); }
.slot.next { border: 2px solid var(--signal); background: var(--paper); }
.slot.next .usd { color: var(--signal); }
.slot.used { border-style: solid; border-color: var(--rule); background: var(--wall); }
.slot.used .usd { text-decoration: line-through; text-decoration-thickness: 3px; color: var(--ink-soft); }


/* ---------- night gallery overrides ---------- */
.brand svg { color: var(--violet); }
.top { border-bottom-color: var(--rule); }
.net { border: 1px solid var(--line); border-radius: 999px; padding: 5px 10px; color: var(--ink-soft); }
.btn { border-color: var(--line); min-height: 44px; }
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary:hover { filter: brightness(1.06); }
.hero h1 { font-weight: 800; letter-spacing: -0.05em; line-height: 0.9; }
.hero p { color: var(--ink-soft); }
.hero .price-note { font-size: 0.95rem; color: var(--ink-mute); margin: 24px 0 0; }
.section h2, .detail h1 { font-weight: 800; }
.lede, .steps p, .label .medium, .label .coll { color: var(--ink-soft); }
.label .coll, .label .medium { color: var(--ink-mute); }
.steps li { border-top: 2px solid var(--line); padding-top: 22px; }
.steps li::before { color: var(--signal); }
.frame { box-shadow: 0 34px 50px -28px rgba(0, 0, 0, 0.85); }
.wall .frame { box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9); }
.label { border-left-color: var(--signal); }

/* the spotlight above the hero piece */
#hero-piece { position: relative; padding-top: 32px; }
#hero-piece::before {
  content: ""; position: absolute; left: -10%; right: -10%; top: -48px; height: 120%; pointer-events: none;
  background: radial-gradient(ellipse 46% 55% at 50% 10%, rgba(255, 214, 150, 0.28), rgba(255, 214, 150, 0.07) 55%, rgba(255, 214, 150, 0) 76%);
}
#hero-piece .piece { position: relative; }

/* price tickets on the home page */
.tickets-band { background: var(--wall); border-block: 1px solid var(--rule); }
.tickets-band .inner { max-width: 1320px; margin: 0 auto; padding: clamp(44px, 6vw, 72px) var(--gutter); display: flex; flex-wrap: wrap; gap: 40px; align-items: center; }
.tickets-band .copy { flex: 1 1 300px; min-width: 0; }
.tickets-band h2 { font: 800 clamp(1.8rem, 3.4vw, 2.5rem)/1.05 var(--display); letter-spacing: -0.03em; margin: 0 0 10px; }
.tickets-band p { margin: 0; color: var(--ink-soft); max-width: 40ch; }
.tickets { flex: 999 1 600px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 14px; }

/* tickets and studio slots share one look */
.ticket, .slot { display: grid; gap: 4px; padding: 20px; border-radius: 10px; border: 2px dashed var(--line); background: var(--paper); color: var(--ink); }
.ticket .n, .slot .n { font: 500 0.8rem var(--mono); color: inherit; opacity: 0.85; }
.ticket .usd, .slot .usd { font: 800 clamp(2.4rem, 4vw, 3.2rem)/1 var(--display); letter-spacing: -0.04em; font-variant-numeric: tabular-nums; color: inherit; }
.ticket .eth, .slot .eth { font: 400 0.82rem var(--body); color: inherit; opacity: 0.85; }
.ticket.first, .slot.next { background: var(--signal); border: 2px solid var(--signal); color: var(--signal-ink); }
.slot.next .usd { color: var(--signal-ink); }
.slot.used { background: var(--wall); border: 2px solid var(--wall); color: var(--ink-mute); }
.slot.used .usd { color: var(--ink-mute); text-decoration: line-through; text-decoration-thickness: 4px; }

.panel { background: var(--wall); border-radius: 16px; }
input[type="text"] { background: var(--paper); border-color: var(--line); }
.keys li { border-top-color: var(--rule); }
.secret { background: var(--paper); border-color: var(--signal); }
.tabs button { border-color: var(--line); }
.tabs button[aria-selected="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
pre.snippet { background: var(--frame); border-radius: 12px; }
.status.ready { color: var(--signal); }
.notice { background: var(--wall); }
.empty { border-color: var(--line); color: var(--ink-soft); }
.toast { background: var(--ink); color: var(--paper); }
footer { border-top-color: var(--rule); color: var(--ink-mute); }


/* display face: Instrument Serif has one weight, set large with tight leading */
.hero h1 { font-weight: 400; font-size: clamp(3.4rem, 8.4vw, 7.6rem); line-height: 0.92; letter-spacing: -0.025em; }
.hero h1 em { font-style: italic; }
.section h2, .detail h1, .tickets-band h2 { font-weight: 400; letter-spacing: -0.015em; font-size: clamp(2.2rem, 4.2vw, 3.4rem); }
.steps li::before { font-weight: 400; font-size: 3.8rem; }
.steps h3 { font-family: var(--body); font-weight: 600; }
.brand { font-weight: 400; font-size: 1.6rem; letter-spacing: 0; }
.ticket .usd, .slot .usd { font-weight: 400; letter-spacing: -0.02em; font-size: clamp(2.8rem, 4.6vw, 3.6rem); }
.pass-head h3 { font-weight: 400; font-size: 1.9rem; line-height: 1.1; }
.label .title { font-family: var(--display); font-size: 1.25rem; }
.hero { overflow-x: clip; }
#hero-piece::before { left: 0; right: 0; background: radial-gradient(ellipse 42% 50% at 50% 12%, rgba(255, 214, 150, 0.26), rgba(255, 214, 150, 0.06) 60%, rgba(255, 214, 150, 0) 80%); }

/* collection supply meter */
.supply { margin-top: 24px; display: grid; gap: 10px; max-width: 360px; }
.supply-count { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.supply-count strong { font: 400 2rem/1 var(--display); color: var(--ink); margin-right: 4px; }
.supply-bar { height: 6px; border-radius: 999px; background: var(--paper); overflow: hidden; }
.supply-bar span { display: block; height: 100%; background: var(--signal); border-radius: inherit; }
.supply .sold { margin: 0; color: var(--signal); font-weight: 600; }

/* about */
.about { background: var(--wall); border-top: 1px solid var(--rule); }
.about .inner { max-width: 1320px; margin: 0 auto; padding: clamp(56px, 8vw, 96px) var(--gutter); display: flex; flex-wrap: wrap; gap: 56px; }
.about-copy { flex: 1 1 360px; min-width: 0; display: grid; gap: 18px; align-content: start; }
.about h2 { font: 400 clamp(2.6rem, 5vw, 3.6rem)/1 var(--display); letter-spacing: -0.015em; margin: 0; }
.about p { margin: 0; color: var(--ink-soft); max-width: 48ch; }
.about p.big { font-size: 1.2rem; max-width: 44ch; }
.about-links { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.about-links:empty { display: none; }
.about-links .copyable { user-select: all; cursor: text; }
.facts-grid { flex: 1.2 1 440px; min-width: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 32px 40px; }
.facts-grid > div { border-top: 2px solid var(--line); padding-top: 18px; display: grid; gap: 6px; align-content: start; }
.facts-grid dt { font: 400 1.75rem/1.1 var(--display); }
.facts-grid dd { margin: 0; color: var(--ink-soft); }

/* ---------- votes and rarity tiers ---------- */
.tier { display: inline-block; font: 600 0.72rem/1 var(--body); letter-spacing: 0.04em; padding: 5px 9px; border-radius: 999px; border: 1px solid currentColor; }
.tier-legendary { color: #140b33; background: var(--signal); border-color: var(--signal); }
.tier-epic { color: #e2c8ff; background: #4b1fa8; border-color: #4b1fa8; }
.tier-rare { color: #9fe8ff; }
.tier-common { color: var(--ink-mute); }
.tier-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin: 6px 0 2px; }
.tier-row .rank { color: var(--ink-mute); font-size: 0.82rem; font-variant-numeric: tabular-nums; }

.vote-head { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: flex-end; justify-content: space-between; margin-bottom: 28px; }
.vote-head > div { flex: 1 1 420px; min-width: 0; }
.vote-head .lede { margin-bottom: 0; }
.tier-legend { flex: 1 1 420px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.tier-chip { display: grid; gap: 6px; padding: 14px; border-radius: 10px; background: var(--wall); justify-items: start; }
.tier-chip .share { color: var(--ink-soft); font-size: 0.85rem; }
.tier-chip .count { font: 400 1.5rem/1 var(--display); }

.vote-bar { display: flex; gap: 12px 24px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 36px; }
.vote-bar .tabs { margin: 0; }
.vote-note { margin: 0; color: var(--ink-mute); font-size: 0.9rem; max-width: 70ch; }

.vote-btn {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  font: 600 0.95rem var(--body); font-variant-numeric: tabular-nums; color: var(--ink); background: transparent; border: 2px solid var(--line);
}
.vote-btn:hover { border-color: var(--signal); color: var(--signal); }
.vote-btn[aria-pressed="true"] { background: var(--signal); border-color: var(--signal); color: var(--signal-ink); }
.vote-btn[aria-pressed="true"] svg { fill: currentColor; }
.vote-btn[disabled] { opacity: 0.6; cursor: progress; }
.vote-own { color: var(--ink-mute); font-size: 0.85rem; }
@media (prefers-reduced-motion: no-preference) {
  .vote-btn[aria-pressed="true"] svg { animation: pop 260ms ease-out; }
  @keyframes pop { 50% { transform: scale(1.3); } }
}

/* paid votes: the ballot of 5 */
.ballot { margin-top: 20px; display: flex; gap: 12px 18px; align-items: center; flex-wrap: wrap; }
.ballot p { margin: 0; color: var(--ink-soft); max-width: 46ch; }
.ballot-slots { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; }
.ballot-slots li { width: 36px; height: 36px; border-radius: 999px; display: grid; place-items: center; border: 2px solid var(--signal); color: var(--signal); }
.ballot-slots li svg { fill: currentColor; }
.ballot-slots li.used { border-color: var(--line); color: var(--ink-mute); }
.ballot-slots li.used svg { fill: none; }
.vote-label { font-weight: 600; }
.vote-btn .vote-label { padding-left: 8px; border-left: 1px solid currentColor; margin-left: 2px; }
.vote-btn[aria-pressed="true"][disabled] { opacity: 1; cursor: default; }
.vote-count { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-mute); font-variant-numeric: tabular-nums; }

/* call to action to the vote page */
.vote-cta-wrap { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter) clamp(56px, 8vw, 96px); }
.vote-cta {
  display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: center; justify-content: space-between;
  background: var(--signal); color: var(--signal-ink); border-radius: 20px; padding: clamp(28px, 5vw, 48px); text-decoration: none;
}
.vote-cta:hover { color: var(--signal-ink); filter: brightness(1.04); }
.vote-cta .copy { flex: 1 1 380px; min-width: 0; display: grid; gap: 10px; }
.vote-cta h2 { font: 400 clamp(2.4rem, 4.6vw, 3.4rem)/1 var(--display); letter-spacing: -0.015em; margin: 0; }
.vote-cta p { margin: 0; font-size: 1.1rem; max-width: 48ch; }
.vote-cta .go { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.vote-cta .hearts { display: flex; gap: 6px; }
.vote-cta .hearts span { width: 36px; height: 36px; border-radius: 999px; border: 2px solid currentColor; display: grid; place-items: center; }
.vote-cta .go-btn { background: var(--signal-ink); color: var(--ink); font-weight: 600; padding: 15px 26px; border-radius: 999px; min-height: 52px; display: inline-flex; align-items: center; }
.vote-cta:focus-visible { outline-color: var(--ink); }

/* ---------- prizes ---------- */
.prize-band { display: flex; flex-wrap: wrap; gap: 24px 40px; align-items: center; background: var(--wall); border: 2px solid var(--signal); border-radius: 16px; padding: clamp(20px, 3vw, 32px); margin-bottom: 32px; }
.prize-copy { flex: 1 1 300px; min-width: 0; display: grid; gap: 8px; }
.prize-band h3 { margin: 0; font: 400 clamp(1.8rem, 3vw, 2.4rem)/1.05 var(--display); }
.prize-band h3 span { color: var(--signal); }
.prize-band p { margin: 0; color: var(--ink-soft); max-width: 52ch; }
.podium { flex: 2 1 520px; min-width: 0; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.podium li { display: grid; gap: 2px; padding: 12px 14px; border-radius: 10px; background: var(--paper); min-width: 0; }
.podium li.open { border: 2px dashed var(--line); background: transparent; }
.podium .place { font: 500 0.78rem var(--mono); color: var(--ink-mute); }
.podium .who { font-family: var(--display); font-size: 1.2rem; line-height: 1.15; overflow-wrap: anywhere; }
.podium .who a { text-decoration: none; }
.podium .meta { color: var(--ink-mute); font-size: 0.8rem; }
.podium .usd { color: var(--signal); font-weight: 600; font-variant-numeric: tabular-nums; }
.vote-cta .cta-prize { font-weight: 600; font-size: 1rem; }
.vote-cta .cta-prize a { color: inherit; }

/* ---------- supporters ---------- */
.sup-hero { display: flex; flex-wrap: wrap; gap: 28px 48px; align-items: flex-end; justify-content: space-between; margin-bottom: 40px; }
.sup-hero .copy { flex: 1 1 420px; min-width: 0; }
.sup-hero .lede { margin-bottom: 0; }
.prize-card { flex: 0 1 360px; min-width: 0; display: grid; gap: 4px; background: var(--signal); color: var(--signal-ink); border-radius: 16px; padding: 24px 28px; }
.prize-card .amount { font: 400 clamp(3rem, 6vw, 4.4rem)/1 var(--display); letter-spacing: -0.02em; }
.join-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; counter-reset: j; }
.join-steps li { counter-increment: j; border-top: 2px solid var(--line); padding-top: 20px; display: grid; gap: 8px; align-content: start; }
.join-steps li::before { content: counter(j); font: 400 3rem/1 var(--display); color: var(--signal); }
.join-steps h3 { margin: 0; font-size: 1.2rem; }
.join-steps p { margin: 0; color: var(--ink-soft); }
.join-box { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-top: 6px; }
.join-box:empty { display: none; }
.join-box .code { font: 500 1.3rem var(--mono); letter-spacing: 0.06em; padding: 10px 14px; border: 2px dashed var(--signal); border-radius: 8px; user-select: all; }
.join-box .hint { margin: 0; flex-basis: 100%; color: var(--ink-mute); font-size: 0.85rem; }
.join-box .linked { margin: 0; color: var(--ok); }

.board-head { display: flex; gap: 8px 24px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; margin-bottom: 18px; }
.board-head h2 { margin: 0; }
.table-wrap { overflow-x: auto; border-radius: 12px; background: var(--wall); }
.board { width: 100%; border-collapse: collapse; min-width: 720px; }
.board th, .board td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--rule); }
.board th { font: 500 0.78rem var(--mono); color: var(--ink-mute); }
.board .num { text-align: right; font-variant-numeric: tabular-nums; }
.board .strong { font-weight: 600; }
.board tr.winner td:first-child { color: var(--signal); font-weight: 600; }
.board tr.winner td:last-child { color: var(--signal); font-weight: 600; }
.board tr.ineligible { opacity: 0.6; }
.board .why { display: block; font-size: 0.78rem; color: var(--ink-mute); }
.board .empty-row { text-align: center; color: var(--ink-soft); padding: 32px; }
#rules { margin-top: 14px; }

/* =====================================================================
   Smooth pass: page buttons, page transitions, gentle motion
   ===================================================================== */
:root { --ease: cubic-bezier(.2, .7, .2, 1); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
  /* soft cross-fade between pages (browsers that support view transitions) */
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out 180ms ease-in both; }
  ::view-transition-new(root) { animation: vt-in 320ms var(--ease) both; }
  @keyframes vt-out { to { opacity: 0; } }
  @keyframes vt-in { from { opacity: 0; transform: translateY(6px); } }
  /* first paint */
  main { animation: page-in 520ms var(--ease) both; }
  @keyframes page-in { from { opacity: 0; transform: translateY(10px); } }
}
[id] { scroll-margin-top: 90px; }

/* ---------- header: sticky, with page buttons ---------- */
.top {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20;
  display: block; padding: 0; border-bottom: 1px solid transparent;
  background: transparent; transition: background-color 240ms var(--ease), border-color 240ms var(--ease), backdrop-filter 240ms;
}
.top.scrolled { background: rgba(20, 11, 51, 0.82); border-bottom-color: var(--rule); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.top-inner { max-width: 1320px; margin: 0 auto; padding: 14px var(--gutter); display: flex; align-items: center; gap: 16px 20px; flex-wrap: wrap; }
.top .brand { flex: none; }
.pills { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; background: var(--wall); padding: 5px; border-radius: 999px; border: 1px solid var(--rule); }
.pill {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 8px 14px; border-radius: 999px;
  color: var(--ink-soft); text-decoration: none; font-weight: 500; font-size: 0.93rem;
  transition: background-color 200ms var(--ease), color 200ms var(--ease), transform 200ms var(--ease);
}
.pill svg { flex: none; opacity: 0.9; }
.pill:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.pill:active { transform: scale(0.96); }
.pill[aria-current="page"] { background: var(--signal); color: var(--signal-ink); }
.pill[aria-current="page"]:hover { color: var(--signal-ink); }

/* ---------- phone: bottom tab bar ---------- */
.tabbar { display: none; }
@media (max-width: 760px) {
  .pills { display: none; }
  .net { margin-left: auto; }
  body { padding-bottom: calc(76px + env(safe-area-inset-bottom, 0px)); }
  .tabbar {
    display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
    padding: 6px max(8px, env(safe-area-inset-left, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-right, 0px));
    background: rgba(20, 11, 51, 0.92); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--rule);
  }
  .tab {
    display: grid; justify-items: center; gap: 3px; padding: 7px 2px; min-height: 52px; border-radius: 12px;
    color: var(--ink-mute); text-decoration: none; font-size: 0.7rem; font-weight: 500;
    transition: color 200ms var(--ease), background-color 200ms var(--ease);
  }
  .tab[aria-current="page"] { color: var(--signal); background: rgba(255, 179, 71, 0.1); }
  .toast { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
}

/* ---------- smoother controls ---------- */
.btn, .vote-btn, .tabs button, .filters .btn {
  transition: background-color 200ms var(--ease), color 200ms var(--ease), border-color 200ms var(--ease), transform 160ms var(--ease), box-shadow 200ms var(--ease), filter 200ms;
}
.btn:active, .vote-btn:active, .tabs button:active { transform: scale(0.97); }
.btn.primary:hover { box-shadow: 0 10px 24px -12px rgba(255, 179, 71, 0.7); }
a { transition: color 160ms var(--ease); }
input[type="text"] { transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease); }
input[type="text"]:focus { box-shadow: 0 0 0 4px rgba(255, 179, 71, 0.18); }

/* artworks lift a little on hover, like stepping closer to the wall */
.piece .frame { transition: transform 320ms var(--ease), box-shadow 320ms var(--ease); }
@media (hover: hover) {
  .wall .piece:hover .frame { transform: translateY(-6px); box-shadow: 0 34px 48px -26px rgba(0, 0, 0, 0.95); }
  .ticket, .slot, .tier-chip, .podium li { transition: transform 240ms var(--ease), border-color 240ms; }
  .ticket:hover, .tier-chip:hover, .podium li:hover { transform: translateY(-3px); }
  .vote-cta { transition: transform 280ms var(--ease), box-shadow 280ms var(--ease), filter 200ms; }
  .vote-cta:hover { transform: translateY(-3px); box-shadow: 0 24px 40px -24px rgba(255, 179, 71, 0.6); }
  .vote-cta:hover .go-btn { transform: translateX(3px); }
  .vote-cta .go-btn { transition: transform 280ms var(--ease); }
}

/* ---------- reveal on scroll (only for things that start below the screen) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .rv { opacity: 0; transform: translateY(18px); }
  .rv.in { opacity: 1; transform: none; transition: opacity 600ms var(--ease) var(--rv-delay, 0ms), transform 700ms var(--ease) var(--rv-delay, 0ms); }

  /* the gallery light over the hero piece breathes very slowly */
  #hero-piece::before { animation: light 7s ease-in-out infinite alternate; }
  @keyframes light { from { opacity: 0.75; } to { opacity: 1; } }

  /* supply bar fills in */
  .supply-bar span { animation: fill 1.2s var(--ease) both 200ms; transform-origin: left; }
  @keyframes fill { from { transform: scaleX(0); } }

  /* the next price ticket and the first ticket glow softly */
  .slot.next, .ticket.first { animation: glow 2.8s ease-in-out infinite alternate; }
  @keyframes glow { from { box-shadow: 0 0 0 0 rgba(255, 179, 71, 0); } to { box-shadow: 0 0 0 6px rgba(255, 179, 71, 0.16); } }

  /* toasts slide up */
  .toast { animation: toast-in 280ms var(--ease) both; }
  @keyframes toast-in { from { opacity: 0; transform: translate(-50%, 12px); } }
}
#hero-piece::before { top: -24px; background: radial-gradient(ellipse 40% 48% at 50% 34%, rgba(255, 214, 150, 0.24), rgba(255, 214, 150, 0.06) 60%, rgba(255, 214, 150, 0) 80%); }

/* ---------- Connect X + live leaderboard ---------- */
.board-head { align-items: flex-end; }
.board-title { display: grid; gap: 6px; }
.x-bar { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.x-btn svg, .join-box .btn svg { flex: none; }
.x-chip { display: inline-flex; align-items: center; gap: 10px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--wall); border: 1px solid var(--rule); }
.x-chip .muted { color: var(--ink-mute); }
.avatar { width: 32px; height: 32px; border-radius: 999px; object-fit: cover; flex: none; background: var(--wall); }
.avatar.ph { display: inline-grid; place-items: center; font-weight: 600; color: var(--signal-ink); background: var(--signal); font-size: 0.85rem; }
.live { display: inline-flex; align-items: center; gap: 7px; color: var(--ok); font-weight: 600; font-size: 0.85rem; }
.live .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ok); }
@media (prefers-reduced-motion: no-preference) {
  .live .dot { animation: pulse 1.8s ease-in-out infinite; }
  @keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(111, 227, 180, 0.6); } 100% { box-shadow: 0 0 0 8px rgba(111, 227, 180, 0); } }
}
.board .who { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.board .who > span { display: grid; line-height: 1.25; }
.board .nm { font-weight: 600; color: var(--ink); }
.board .handle { color: var(--ink-mute); font-size: 0.85rem; }
.board .you { font: 600 0.7rem var(--body); color: var(--signal-ink); background: var(--signal); padding: 2px 7px; border-radius: 999px; margin-left: 4px; vertical-align: 1px; }
.board tr.me td { background: rgba(255, 179, 71, 0.08); }
.board tbody tr { transition: background-color 200ms; }
.board tbody tr:hover td { background: rgba(255, 255, 255, 0.03); }

/* ---------- X / OpenSea links ---------- */
.socials { display: flex; gap: 6px; margin-left: 8px; }
.soc { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); text-decoration: none; transition: border-color .2s, color .2s, transform .2s; }
.soc:hover { border-color: var(--accent, #FFB347); color: var(--accent, #FFB347); transform: translateY(-1px); }
.soc.soon { opacity: .5; cursor: default; }
.soc.soon:hover { transform: none; border-color: var(--line); color: var(--ink); }
.foot-links { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.foot-links a:not(.soc) { color: var(--ink-soft); }
@media (max-width: 820px) { .socials { margin-left: auto; } .socials .soc { min-width: 40px; height: 40px; } }
@media (max-width: 480px) { .top .net { display: none; } }

/* Vote card: a box with a real "Go vote" link stretched over it, so the supporters link inside stays its own link */
.vote-cta { position: relative; cursor: pointer; }
.vote-cta .go-btn { text-decoration: none; }
.vote-cta .go-btn::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.vote-cta:hover .go-btn, .vote-cta .go-btn { transform: none; }
.vote-cta .cta-prize a { position: relative; z-index: 1; }
.vote-cta:focus-within { outline: 2px solid var(--ink); outline-offset: 3px; }


/* =====================================================================
   WOODCUT — the Prompt Paint brand from the X banner and profile picture:
   amber poster paper, black block-printed ink, one red eye. Every color
   below is a token, so the night-gallery rules above all follow it.
   ===================================================================== */
:root {
  color-scheme: light;
  --paper: #ffad1d;      /* the poster */
  --wall: #f6a114;       /* raised bands, a shade deeper */
  --ink: #15100b;        /* block-print black */
  --ink-soft: #3a2a14;
  --ink-mute: #5c431d;
  --rule: rgba(21, 16, 11, 0.22);
  --line: #15100b;
  --signal: #15100b;     /* primary actions are solid ink */
  --signal-ink: #ffad1d;
  --red: #e2321c;        /* the archer's eye */
  --cream: #fff1d6;
  --violet: var(--red);
  --frame: #15100b;
  --mat: #fff1d6;
  --ok: #17603a;
  --warn: #e2321c;
  --accent: var(--red);
  --display: "Rubik Dirt", "Archivo Black", Impact, sans-serif;
  --body: "Archivo", "Segoe UI", system-ui, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, monospace;
  --stamp: 4px 4px 0 var(--ink);
}

/* printed-paper grain over the whole page */
body { background: var(--paper); }
body::after {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 60; opacity: .18; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .08 0 0 0 0 .06 0 0 0 0 .04 0 0 0 1.4 -.55'/%3E%3C/filter%3E%3Crect width='220' height='220' filter='url(%23n)'/%3E%3C/svg%3E");
}
::selection { background: var(--ink); color: var(--paper); }
a:hover { color: var(--red); }
:focus-visible { outline-color: var(--ink); }

/* type: hand-cut capitals for display, sturdy grotesk for reading */
.hero h1, .section h2, .detail h1, .tickets-band h2, .about h2, .vote-cta h2, .facts-grid dt, .steps li::before,
.ticket .usd, .slot .usd, .supply-count strong, .brand, .pass-head h3 {
  font-family: var(--display); font-weight: 400; text-transform: uppercase; letter-spacing: 0.01em;
}
.hero h1 { font-size: clamp(2.7rem, 6.2vw, 5.6rem); line-height: 0.95; letter-spacing: 0.005em; }
.hero h1 em, .section h2 em, .about h2 em, .vote-cta h2 em, .detail h1 em { font-style: normal; color: var(--red); }
.section h2, .detail h1, .tickets-band h2 { font-size: clamp(2rem, 3.8vw, 3rem); line-height: 1; }
.about h2 { font-size: clamp(2.2rem, 4.4vw, 3.2rem); line-height: 1; }
.facts-grid dt { font-size: 1.35rem; line-height: 1.15; }
.steps h3 { font-weight: 700; }
.label .title { font-family: var(--body); font-style: italic; font-weight: 600; font-size: 1.1rem; }
.hero p, .lede, .about p, .steps p { color: var(--ink-soft); }

/* header: logo mark + ink pills */
.brand { font-size: 1.45rem; gap: 12px; color: var(--ink); }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.top.scrolled { background: rgba(255, 173, 29, 0.93); border-bottom: 2px solid var(--ink); }
.net { border: 2px solid var(--ink); color: var(--ink); font-weight: 600; background: transparent; }
.pills { background: transparent; border: 2px solid var(--ink); }
.pill { color: var(--ink); font-weight: 600; }
.pill:hover { background: rgba(21, 16, 11, 0.1); color: var(--ink); }
.pill[aria-current="page"] { background: var(--ink); color: var(--paper); }
.soc { border: 2px solid var(--ink); color: var(--ink); }
.soc:hover { border-color: var(--red); color: var(--red); }

/* buttons: printed blocks with a hard offset shadow */
.btn { border: 2px solid var(--ink); border-radius: 8px; color: var(--ink); font-weight: 700; letter-spacing: .01em; }
.btn:hover { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.primary { background: var(--ink); color: var(--paper); border-color: var(--ink); box-shadow: var(--stamp); }
.btn.primary:hover { filter: none; transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--red); color: var(--paper); }
.btn.primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ink); }
input[type="text"], input[type="password"], textarea, select { background: var(--cream); border: 2px solid var(--ink); color: var(--ink); border-radius: 8px; }
input[type="text"]:focus { border-color: var(--red); box-shadow: 0 0 0 4px rgba(226, 50, 28, 0.18); }

/* hero: the archer from the banner, aiming at the headline */
.hero-art { position: relative; margin: 0; justify-self: end; width: min(100%, 520px); }
.hero-art img { width: 100%; height: auto; display: block; }
@media (prefers-reduced-motion: no-preference) {
  .hero-art img { animation: draw 900ms cubic-bezier(.2,.8,.2,1) both; }
  @keyframes draw { from { opacity: 0; transform: translateX(40px); } to { opacity: 1; transform: none; } }
}
#hero-piece::before { display: none; }

/* artwork: black frame, cream mat, like a print hung in a studio */
.frame { background: var(--frame); box-shadow: var(--stamp); }
.wall .frame { box-shadow: var(--stamp); }
.frame img, .frame .empty-art { background: var(--wall); }
.empty-art { color: var(--ink-mute); }
.label { border-left: 3px solid var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .wall .piece:hover .frame { transform: translate(-3px, -3px); box-shadow: 7px 7px 0 var(--red); }
}

/* sections and rules in ink */
.section + .section { border-top: 2px solid var(--ink); }
.steps li { border-top: 3px solid var(--ink); }
.steps li::before { color: var(--red); font-size: 3.4rem; }
.facts-grid > div { border-top: 3px solid var(--ink); }
.empty { border: 2px dashed var(--ink); color: var(--ink-soft); }
.panel, .notice { background: var(--wall); border: 2px solid var(--ink); }
.secret { background: var(--cream); border-color: var(--ink); }
.toast { background: var(--ink); color: var(--paper); }
.toast.err { background: var(--red); color: var(--cream); }

/* inverted bands: black ink fields with amber type, like the solid areas of a woodcut */
.tickets-band, .about, footer {
  --paper: #15100b; --wall: #241a10; --ink: #ffad1d; --ink-soft: #f3c66d; --ink-mute: #d29f45;
  --line: #ffad1d; --rule: rgba(255, 173, 29, 0.25); --signal: #ffad1d; --signal-ink: #15100b; --frame: #ffad1d;
  background: #15100b; color: var(--ink); border: 0;
}
.tickets-band .ticket { background: transparent; border: 2px dashed #ffad1d; color: #ffad1d; }
.tickets-band .ticket.first { background: #ffad1d; color: #15100b; border-style: solid; }
.supply-bar { background: rgba(255, 173, 29, 0.2); }
.supply-bar span { background: var(--red); }
.about .btn { border-color: #ffad1d; color: #ffad1d; }
.about .btn:hover { background: #ffad1d; color: #15100b; }
footer { border-top: 0; }
footer a:hover { color: #fff1d6; }
footer .soc { border-color: #ffad1d; color: #ffad1d; }

/* vote card: an ink block with the red eye as accent */
.vote-cta { background: var(--ink); color: var(--paper); border-radius: 14px; box-shadow: 6px 6px 0 var(--red); }
.vote-cta:hover { color: var(--paper); }
.vote-cta h2 em { color: var(--red); }
.vote-cta .go-btn { background: var(--paper); color: var(--ink); border-radius: 8px; }
.vote-cta .cta-prize a:hover { color: var(--cream); }
.vote-cta:focus-within { outline-color: var(--red); }
@media (prefers-reduced-motion: no-preference) {
  .vote-cta:hover { transform: translate(-2px, -2px); box-shadow: 9px 9px 0 var(--red); }
}

/* rarity tiers */
.tier-legendary { color: var(--cream); background: var(--red); border-color: var(--red); }
.tier-epic { color: var(--paper); background: var(--ink); border-color: var(--ink); }
.tier-rare { color: var(--ink); background: transparent; border-color: var(--ink); }

/* tables (leaderboards) */
.board th { border-bottom: 2px solid var(--ink); }
.board td { border-bottom: 1px solid var(--rule); }
.board tbody tr:hover td { background: rgba(21, 16, 11, 0.06); }
.board tr.me td { background: rgba(226, 50, 28, 0.12); }
.board tr.winner td:first-child { color: var(--red); font-weight: 700; }

/* phone tab bar */
@media (max-width: 760px) {
  .tabbar { background: rgba(255, 173, 29, 0.96); border-top: 2px solid var(--ink); }
  .tab { color: var(--ink-mute); }
  .tab[aria-current="page"] { color: var(--paper); background: var(--ink); }
  .hero-art { justify-self: center; width: min(86%, 380px); }
}
@media (prefers-reduced-motion: no-preference) {
  @keyframes glow { from { box-shadow: 0 0 0 0 rgba(226, 50, 28, 0); } to { box-shadow: 0 0 0 6px rgba(226, 50, 28, 0.2); } }
}
/* small display labels read better in the grotesk */
.facts-grid dt, .supply-count strong { font-family: var(--body); font-weight: 800; text-transform: uppercase; letter-spacing: 0.02em; }
.facts-grid dt { font-size: 1.05rem; }
.supply-count strong { font-size: 2rem; }
