/* Sluicery prototype styles: quiet gallery look */
:root {
  --ink: #111111;
  --ink-2: #3F3F3F;
  --muted: #5E5E5E;
  --faint: #6B6B6B;
  --line: #EEEEEE;
  --line-2: #E2E2E2;
  --soft: #F7F7F5;
  --gold: #C9971F;
  --gold-ink: #7A5A0E;
  --gold-soft: #FAF7EF;
  --radius: 8px;
  --display: 'Inter Tight', Inter, system-ui, sans-serif;
  --body: Inter, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --max: 1180px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.5; }
a { color: var(--ink); }
a:hover { color: #555; }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 500; letter-spacing: -0.02em; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 52px); line-height: 1.05; letter-spacing: -0.03em; }
h2 { font-size: clamp(22px, 2.6vw, 28px); line-height: 1.15; }
h3 { font-size: 18px; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.stack { display: flex; flex-direction: column; }
.row { display: flex; align-items: center; }
.between { justify-content: space-between; }
.gap-4 { gap: 4px; } .gap-8 { gap: 8px; } .gap-12 { gap: 12px; } .gap-16 { gap: 16px; } .gap-24 { gap: 24px; }
.section { padding: 40px 0; }
.section + .section { border-top: 1px solid var(--line); }
.wrap.section { padding: 40px 20px; }

/* Prototype banner */
.proto-bar { background: var(--ink); color: #fff; font-size: 12px; text-align: center; padding: 6px 12px; }
.proto-bar a { color: #fff; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,0.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.logo { font-family: var(--display); font-weight: 600; font-size: 22px; letter-spacing: -0.02em; text-decoration: none; }
.main-nav { display: flex; gap: 22px; margin-left: 12px; }
.main-nav a { text-decoration: none; font-size: 14px; font-weight: 500; color: var(--muted); padding: 8px 0; }
.main-nav a.active, .main-nav a:hover { color: var(--ink); }
.header-search { flex: 1; max-width: 360px; margin-left: auto; }
.header-actions { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 22px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--ink); text-decoration: none; }
.icon-btn:hover { background: #F3F3F3; }
.badge { position: absolute; top: 6px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 600; display: flex; align-items: center; justify-content: center; }
.mobile-nav { display: none; gap: 6px; overflow-x: auto; padding: 0 20px 12px; }
@media (max-width: 860px) {
  .site-header .main-nav, .site-header .header-search { display: none; }
  .header-actions { margin-left: auto; }
  .mobile-nav { display: flex; }
}

/* Search */
.search { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 16px; border-radius: 22px; background: #F3F3F3; }
.search input { flex: 1; min-width: 0; border: 0; background: transparent; outline: none; font-size: 15px; }
.search:focus-within { box-shadow: 0 0 0 2px var(--ink); }

/* Buttons and pills */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 24px; border-radius: 24px; border: 1px solid var(--ink); background: var(--ink); color: #fff; font-size: 15px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover { background: #2A2A2A; color: #fff; }
.btn.secondary { background: #fff; color: var(--ink); border-color: #DDDDDD; }
.btn.secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn.big { height: 52px; font-size: 16px; }
.btn.block { width: 100%; }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.pill { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 18px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; font-weight: 500; text-decoration: none; cursor: pointer; white-space: nowrap; color: var(--ink); }
.pill.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pills { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.tag { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 13px; background: #fff; font-size: 12px; font-weight: 600; white-space: nowrap; }
.tag.proven { color: var(--gold-ink); }
.tag.test { color: var(--ink-2); border: 1px solid #DADADA; }
.fleck { flex-shrink: 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--gold-ink); }

/* Product cards */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 14px; }
@media (min-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px 20px; } }
@media (min-width: 1040px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--ink); }
.card:hover { color: var(--ink); }
.card .art { position: relative; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; }
.card .art > svg { width: 100%; height: 100%; transition: transform 0.4s ease; }
.card:hover .art > svg { transform: scale(1.02); }
.card .art .tag, .art-frame.marked .tag { position: absolute; }
.tag.kind { top: 10px; left: 10px; color: #2A2A2A; padding: 0 9px 0 7px; gap: 5px; font-size: 11px; height: 24px; }
.tag.proven-dot { top: 10px; right: 10px; width: 24px; height: 24px; padding: 0; justify-content: center; }
.card .art .tag.test, .art-frame.marked .tag.test { bottom: 10px; left: 10px; }
.art-frame.marked .tag.kind { top: 14px; left: 14px; font-size: 12px; height: 28px; padding: 0 11px 0 9px; }
.art-frame.marked .tag.proven-dot { top: 14px; right: 14px; width: 28px; height: 28px; }
.card .title { font-size: 15px; font-weight: 500; }
.card .by { font-size: 13px; color: var(--faint); }
.card .price { font-size: 14px; font-weight: 500; }
.rail { display: grid; grid-auto-flow: column; grid-auto-columns: 160px; gap: 14px; overflow-x: auto; padding-bottom: 4px; }
@media (min-width: 720px) { .rail { grid-auto-columns: 200px; } }
.art-frame { border-radius: 6px; overflow: hidden; position: relative; }
.art-frame > svg { width: 100%; height: 100%; }

/* Discover */
.hero-proven { display: grid; gap: 20px; }
@media (min-width: 860px) { .hero-proven { grid-template-columns: 1.4fr 1fr; align-items: end; } }
.hero-proven .art-frame { aspect-ratio: 4 / 3; }
.band { background: var(--soft); }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
select { height: 36px; padding: 0 12px; border-radius: 18px; border: 1px solid var(--line-2); background: #fff; font-size: 14px; }

/* Creator */
.avatar { border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-weight: 500; flex-shrink: 0; }

/* Product page */
.product-layout { display: grid; gap: 28px; padding: 28px 0 48px; }
@media (min-width: 900px) { .product-layout { grid-template-columns: 1.2fr 1fr; gap: 56px; padding-top: 40px; } }
.product-layout .art-frame { aspect-ratio: 1; }
.box { border: 1px solid #E6E6E6; border-radius: var(--radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.line-item { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.line-item .label { font-size: 14px; }
.line-item .note { font-size: 12px; color: var(--faint); }
.line-item .value { font-size: 14px; font-weight: 500; white-space: nowrap; font-variant-numeric: tabular-nums; }
.line-item.total { border-top: 1px solid #E6E6E6; padding-top: 12px; }
.line-item.total .label, .line-item.total .value { font-size: 16px; font-weight: 600; }
.check-list { list-style: none; margin: 0; padding: 0; }
.check-list li { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid #F0F0F0; font-size: 14px; }
.stat-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 560px) { .stat-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--soft); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 2px; }
.stat .num { font-family: var(--display); font-size: 22px; font-weight: 500; font-variant-numeric: tabular-nums; }
.stat .lbl { font-size: 12px; color: var(--faint); }
.meter { height: 8px; border-radius: 4px; background: #ECE4CF; overflow: hidden; }
.meter > div { height: 100%; background: var(--gold); }
.meter.dark { background: #EDEDED; }
.meter.dark > div { background: var(--ink); }

/* Forms */
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 500; }
.field input, .field select, .field textarea { height: 48px; padding: 0 14px; border: 1px solid #DADADA; border-radius: var(--radius); font-size: 15px; font-weight: 400; background: #fff; min-width: 0; }
.field textarea { height: auto; padding: 12px 14px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--ink); outline-offset: -1px; }
.field .err { color: #A3261B; font-size: 12px; font-weight: 500; }
.field input[aria-invalid="true"] { border-color: #A3261B; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.narrow { max-width: 560px; }

/* Bag */
.bag-line { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.bag-line .art-frame { width: 72px; height: 72px; flex-shrink: 0; }
.link-btn { border: 0; background: none; padding: 8px 0; font-size: 13px; text-decoration: underline; cursor: pointer; color: var(--muted); }

/* Promise and awards */
.promise-num { font-family: var(--display); font-size: 15px; font-weight: 500; color: var(--gold-ink); }
.split-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; }
.key { width: 12px; height: 12px; border-radius: 3px; margin-top: 4px; flex-shrink: 0; }
.gate { display: flex; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid #F0F0F0; }
.gate-dot { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid #CFCFCF; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.gate-dot.on { background: var(--gold); border-color: var(--gold); }
.fund { background: var(--gold-soft); border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.fund .big { font-family: var(--display); font-size: clamp(44px, 6vw, 64px); font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.chip { height: 28px; padding: 0 12px; border-radius: 14px; border: 1px solid #D9D2BF; color: var(--muted); font-size: 12px; font-weight: 500; display: inline-flex; align-items: center; }
.chip.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.two-col { display: grid; gap: 32px; }
@media (min-width: 900px) { .two-col { grid-template-columns: 1fr 1fr; gap: 56px; } }
.list-row { display: flex; justify-content: space-between; align-items: baseline; padding: 14px 0; border-bottom: 1px solid #F0F0F0; font-size: 15px; gap: 12px; }
.rules { font-size: 13px; line-height: 1.65; color: var(--ink-2); }

/* Tables and charts */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
th, td { text-align: right; padding: 10px 12px; border-bottom: 1px solid #F0F0F0; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; white-space: normal; padding-left: 0; }
th { font-size: 12px; font-weight: 600; color: var(--faint); }
tfoot td { font-weight: 600; border-top: 1px solid var(--ink); }
.bars { display: flex; align-items: flex-end; gap: 4px; height: 140px; }
.bars > div { flex: 1; background: var(--ink); border-radius: 3px 3px 0 0; min-height: 2px; }
.bars > div.hi { background: var(--gold); }

/* Dashboard */
.dash-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .dash-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.panel { border: 1px solid #E6E6E6; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; gap: 12px; }

/* Empty, toast, footer */
.empty { padding: 48px 0; text-align: center; color: var(--muted); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 24px; font-size: 14px; opacity: 0; transition: opacity 0.2s, transform 0.2s; pointer-events: none; z-index: 50; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.site-footer { border-top: 1px solid var(--line); margin-top: 40px; padding: 32px 0 48px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; }

/* Add a piece */
.kind-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 720px) { .kind-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .kind-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); } }
.kind-pick { display: flex; flex-direction: column; gap: 8px; padding: 8px; border: 1.5px solid var(--line-2); border-radius: 10px; background: #fff; cursor: pointer; text-align: left; }
.kind-pick:hover { border-color: #BDBDBD; }
.kind-pick.on { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.kind-pick-art { display: block; aspect-ratio: 4 / 5; border-radius: 6px; overflow: hidden; }
.kind-pick-art svg { width: 100%; height: 100%; }
.kind-pick-label { font-size: 13px; font-weight: 600; padding: 0 2px 2px; }
.file-drop { position: relative; display: flex; align-items: center; height: 56px; padding: 0 16px; border: 1.5px dashed #CFCFCF; border-radius: var(--radius); font-weight: 400; color: var(--muted); cursor: pointer; }
.file-drop:hover { border-color: var(--ink); color: var(--ink); }
.file-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
@media (min-width: 900px) { .sticky-preview { position: sticky; top: 88px; align-self: start; } }

/* Join the co-op */
.join-btn { height: 36px; padding: 0 16px; font-size: 14px; margin-right: 4px; }
.member-chip { height: 32px; padding: 0 12px; border-radius: 16px; background: var(--gold-soft); color: var(--gold-ink); font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; text-decoration: none; margin-right: 4px; white-space: nowrap; }
.steps { list-style: none; margin: 8px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--faint); padding-right: 12px; }
.steps li span { width: 24px; height: 24px; border-radius: 12px; border: 1.5px solid #CFCFCF; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.steps li.on { color: var(--ink); font-weight: 600; }
.steps li.on span { background: var(--ink); border-color: var(--ink); color: #fff; }
.steps li.done span { background: var(--gold); border-color: var(--gold); color: #fff; }
.handle-field { display: flex; align-items: center; gap: 2px; height: 48px; padding: 0 14px; border: 1px solid #DADADA; border-radius: var(--radius); font-weight: 400; font-size: 15px; }
.handle-field input { flex: 1; min-width: 0; border: 0; height: 44px; padding: 0; outline: none; font-size: 15px; }
.handle-field:focus-within { outline: 2px solid var(--ink); outline-offset: -1px; }
.rules-list { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 14px; }
.rules-list li { padding-left: 4px; }
.rules-list strong { display: block; font-weight: 600; }
.rules-list span { color: var(--muted); font-size: 14px; }
.member-card { background: #1C1C1C; color: #fff; border-radius: 16px; padding: 24px; display: flex; flex-direction: column; gap: 28px; aspect-ratio: 1.6; max-width: 420px; justify-content: space-between; }
@media (max-width: 420px) { .member-card { aspect-ratio: auto; } }
.member-meta { display: flex; flex-wrap: wrap; gap: 4px 20px; opacity: 0.85; }

/* Library */
.lib-list { display: flex; flex-direction: column; }
.lib-row { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.lib-row .art-frame { width: 72px; height: 90px; flex-shrink: 0; }
.lib-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
@media (max-width: 560px) { .lib-row { flex-wrap: wrap; } .lib-actions { flex-direction: row; align-items: center; gap: 16px; width: 100%; padding-left: 88px; } }
.follow-block { padding: 20px 0 28px; border-bottom: 1px solid var(--line); }
@media print { .site-header, .proto-bar, .site-footer, .btn, .toast { display: none !important; } }

/* Judging and curating */
.judge-layout { display: grid; gap: 24px; }
@media (min-width: 960px) { .judge-layout { grid-template-columns: 1fr 340px; align-items: start; } .judge-board { position: sticky; top: 88px; } }
.judge-card { display: flex; gap: 16px; padding: 16px; border: 1px solid #E6E6E6; border-radius: 12px; }
.judge-card .art-frame { width: 96px; height: 120px; flex-shrink: 0; }
.judge-card.recused { opacity: 0.55; }
@media (max-width: 560px) { .judge-card { flex-direction: column; } .judge-card .art-frame { width: 100%; height: auto; aspect-ratio: 4 / 3; } }
.judge-total { font-family: var(--display); font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.score-row { display: grid; grid-template-columns: 130px 1fr 32px; align-items: center; gap: 10px; font-size: 14px; }
.score-row input { width: 100%; accent-color: var(--ink); }
.score-row output { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.rank { width: 22px; height: 22px; border-radius: 11px; background: #F0F0F0; font-size: 12px; font-weight: 600; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.rank.top { background: var(--gold); color: #fff; }
.spot-slots { display: grid; gap: 12px; }
@media (min-width: 760px) { .spot-slots { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.spot-slot { min-height: 96px; border: 1.5px dashed #CFCFCF; border-radius: 12px; display: flex; align-items: center; justify-content: center; padding: 12px; gap: 12px; }
.spot-slot.filled { border-style: solid; border-color: var(--ink); justify-content: flex-start; }
.spot-slot .art-frame { width: 56px; height: 70px; flex-shrink: 0; }

/* ---------- sign in ---------- */
.auth-btn { color: var(--ink); text-decoration: none; font-size: 14px; padding: 8px 4px; min-height: 44px; }
.auth-btn:hover { text-decoration: underline; }
.auth-sheet { position: fixed; inset: 0; background: rgba(17, 17, 17, 0.35); display: flex; align-items: center; justify-content: center; padding: 16px; z-index: 60; }
.auth-card { width: 100%; max-width: 400px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.auth-card input { height: 44px; font-size: 16px; padding: 0 12px; border: 1px solid #D8D8D4; border-radius: 10px; }
.auth-card [data-msg]:empty { display: none; }

/* ---------- loading ---------- */
.boot { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; }
.boot .logo { font-size: 24px; }
.boot-bar { width: 96px; height: 2px; background: #E6E4DF; border-radius: 2px; position: relative; overflow: hidden; }
.boot-bar::after { content: ""; position: absolute; inset: 0; width: 40%; background: #C9971F; border-radius: 2px; animation: boot 1.1s ease-in-out infinite; }
@keyframes boot { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { .boot-bar::after { animation: none; width: 100%; opacity: 0.5; } }
