/* Baseplate. Dark, flat, hairline borders, 8px spacing scale. */
:root {
  --page: #0d0e10;
  --surface: #141518;
  --raised: #1b1d21;
  --hover: #22252a;
  --border: rgba(255, 255, 255, .08);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #ededef;
  --muted: #9b9ca3;
  --subtle: #6c6e76;
  --accent: #3b82f6;
  --accent-hover: #5594f8;
  --accent-soft: rgba(59, 130, 246, .14);
  --link: #78a9fa;
  --amber: #f5b301;
  --danger: #f2706a;
  --r-sm: 6px;
  --r: 8px;
  --r-lg: 10px;
  --s1: 8px; --s2: 16px; --s3: 24px; --s4: 32px; --s5: 40px; --s6: 48px; --s8: 64px; --s10: 80px;
  --max: 1200px;
  --sans: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--page); -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font: 400 15px/1.6 var(--sans);
  color: var(--text);
  background: var(--page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
img { height: auto; }
[hidden] { display: none !important; }
a { color: var(--link); text-decoration: none; }
a:hover { color: #a3c4fc; text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 2px; }
::selection { background: rgba(59, 130, 246, .35); }

h1, h2, h3 { font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h1 { font-size: 36px; line-height: 1.15; letter-spacing: -0.025em; }
h2 { font-size: 20px; line-height: 1.3; letter-spacing: -0.015em; }
h3 { font-size: 15px; line-height: 1.4; }
p { margin: 0 0 var(--s2); }
p:last-child { margin-bottom: 0; }
ul, ol { margin: 0; padding: 0; }
.money { font-family: var(--mono); font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.meta { color: var(--muted); font-size: 14px; margin: 0; }
code { font-family: var(--mono); font-size: .9em; }

.bar, main { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--s4); padding-right: var(--s4); }
main { padding-top: var(--s6); padding-bottom: var(--s10); }
main > * + * { margin-top: var(--s8); }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(13, 14, 16, .96);
  border-bottom: 1px solid var(--border);
}
.site-header .bar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; }
.brand:hover { color: var(--text); text-decoration: none; }
.site-header nav { display: flex; align-items: center; gap: 4px; }
.nav-link, .account {
  color: var(--muted); font-size: 14px; font-weight: 500;
  display: inline-flex; align-items: center; gap: var(--s1);
  height: 36px; padding: 0 12px; border-radius: var(--r-sm);
}
.nav-link:hover, .account:hover { color: var(--text); background: var(--raised); text-decoration: none; }
.site-header nav .button { margin-left: var(--s1); }
.account img, .account-initial { border-radius: 50%; width: 24px; height: 24px; flex: none; }
.account-initial { display: grid; place-items: center; background: var(--accent-soft); color: #cfe0ff; font-size: 12px; font-weight: 600; }

/* Buttons and inputs */
.button, button {
  font: 500 14px/1 var(--sans);
  height: 40px; padding: 0 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-strong);
  background: var(--raised); color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s1);
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background-color .12s ease, border-color .12s ease, color .12s ease;
}
.button:hover, button:hover { background: var(--hover); color: var(--text); text-decoration: none; }
.button.small { height: 34px; padding: 0 12px; font-size: 13px; }
.button.primary, button.primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.button.primary:hover, button.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: #fff; }
.button.block { width: 100%; height: 44px; font-size: 15px; }

input[type="text"], input:not([type]), input[inputmode] {
  font: 500 16px var(--mono);
  height: 44px; width: 7.5rem; padding: 0 12px;
  border-radius: var(--r-sm); border: 1px solid var(--border-strong);
  background: var(--page); color: var(--text);
}
input[type="checkbox"] { width: 16px; height: 16px; margin: 3px 0 0; accent-color: var(--accent); flex: none; }

/* Shared */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); }
.cover-blank {
  display: grid; place-items: center; background: var(--surface);
  background-image: radial-gradient(circle, rgba(255, 255, 255, .05) 1.5px, transparent 2px);
  background-size: 16px 16px;
}
.logo-mark { border-radius: 6px; flex: none; }
.notice .logo-mark { border-radius: 10px; }
.cover-blank .logo-mark { opacity: .45; filter: saturate(.6); border-radius: 8px; }
.error { border: 1px solid rgba(242, 112, 106, .5); background: rgba(242, 112, 106, .08); color: #ffb3ae; border-radius: var(--r); padding: 12px var(--s2); margin-bottom: var(--s2); }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: var(--s3); }
.section-head a { font-size: 14px; font-weight: 500; }
.page-head { max-width: 720px; }
.page-head h1 { margin-bottom: var(--s1); }
.page-head p { color: var(--muted); font-size: 16px; }
.empty {
  border: 1px dashed var(--border-strong); border-radius: var(--r-lg);
  padding: var(--s6) var(--s3); text-align: center; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: var(--s1);
}
.empty p { margin: 0; }
.empty .empty-title { color: var(--text); font-weight: 600; font-size: 16px; }
.empty .button { margin-top: var(--s2); }

/* Intro */
.intro { max-width: 680px; }
.intro h1 { margin-bottom: var(--s2); }
.intro p { color: var(--muted); font-size: 17px; line-height: 1.55; }
main > .intro + .contribute { margin-top: var(--s5); }

/* Goal hero */
.goal { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: var(--s3); align-items: start; }
.goal-media { display: block; position: relative; aspect-ratio: 16 / 10; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); }
.goal-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .15s ease; }
.goal-media:hover .goal-cover { filter: brightness(1.06); }
.goal-card { padding: var(--s3); }
.goal-card h2 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 6px; }
.goal-card h2 a { color: var(--text); }
.goal-summary { color: var(--muted); margin: 12px 0 0; }
.goal-panel { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--border); }

/* Progress: one heat bar everywhere. Colour from src/lib/heat.ts (gold once funded), set inline. */
.num { font-variant-numeric: tabular-nums; }
.plate-amount { display: flex; align-items: baseline; gap: 10px; margin: 0 0 14px; }
.plate-raised { font-size: 44px; line-height: 1; font-weight: 600; letter-spacing: -0.045em; font-variant-numeric: tabular-nums; color: var(--text); }
.plate-of { font-size: 16px; font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.hbar-pct { margin-left: auto; font-size: 15px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.hbar {
  position: relative; display: block; width: 100%; overflow: hidden; border-radius: 999px;
  background: #1d1e22; border: 1px solid rgba(255, 255, 255, .08);
}
.hbar-lg { height: 14px; }
.hbar-sm { height: 8px; }
.hbar-fill {
  position: absolute; inset: 0 auto 0 0; border-radius: 999px; min-width: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  animation: hbar-in .6s cubic-bezier(.2, .8, .2, 1) both; transform-origin: left center;
}
.hbar-sm .hbar-fill { min-width: 6px; }
@keyframes hbar-in { from { transform: scaleX(0); } }
@media (prefers-reduced-motion: reduce) { .hbar-fill { animation: none; } }
.plate-meta { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.plate.is-funded .plate-raised { color: #ffd56b; }

/* Donate form */
.donate { margin-top: 28px; }
.amounts { min-width: 0; }
.amounts-label { display: block; font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 8px; }
.amount-field {
  display: flex; align-items: center; height: 60px; padding: 0 16px; gap: 6px;
  border: 1px solid var(--border-strong); border-radius: var(--r); background: var(--page);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.amount-field:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(59, 130, 246, .25); }
.amount-field.is-invalid { border-color: var(--danger); }
.amount-dollar { font-size: 26px; font-weight: 600; color: var(--muted); line-height: 1; }
.amount-field input {
  flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; padding: 0; background: transparent; outline: none;
  font: 600 28px var(--sans); letter-spacing: -0.02em; color: var(--text); font-variant-numeric: tabular-nums;
}
.amount-unit { font: 500 12px var(--mono); color: var(--subtle); letter-spacing: .04em; }
.amount-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-top: 8px; }
.preset {
  height: 40px; padding: 0; border-radius: var(--r-sm); cursor: pointer;
  border: 1px solid var(--border-strong); background: var(--surface); color: var(--muted);
  font: 600 14px var(--sans); font-variant-numeric: tabular-nums;
  transition: background-color .12s ease, color .12s ease, border-color .12s ease;
}
.preset:hover { color: var(--text); background: var(--raised); }
.preset[aria-pressed="true"] { background: var(--accent-soft); color: #fff; border-color: var(--accent); }
.preset:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.opts { margin-top: 18px; border-top: 1px solid var(--border); }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--border); cursor: pointer; }
.opt-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.opt-title { font-size: 14px; font-weight: 500; color: var(--text); }
.opt-sub { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
input.switch {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0; cursor: pointer;
  position: relative; width: 36px; height: 20px; border-radius: 5px;
  background: #2a2d33; box-shadow: inset 0 0 0 1px var(--border-strong);
  transition: background-color .15s ease;
}
input.switch::before {
  content: ''; position: absolute; top: 3px; left: 3px; width: 14px; height: 14px; border-radius: 3px;
  background: #c9cbd1; box-shadow: 0 1px 0 rgba(0, 0, 0, .35);
  transition: transform .15s ease, background-color .15s ease;
}
input.switch:checked { background: var(--accent); box-shadow: none; }
input.switch:checked::before { transform: translateX(16px); background: #fff; }
input.switch:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* The primary action is a brick: a face on a darker base, pressed down on click. */
.brick-button {
  display: flex; width: 100%; height: 50px; margin: 22px 0 4px; padding: 0 18px;
  align-items: center; justify-content: center; gap: .3em;
  font: 600 16px/1 var(--sans); letter-spacing: -0.01em; color: #fff;
  background: var(--accent); border: 0; border-radius: var(--r-sm);
  box-shadow: 0 4px 0 #1f56b8, inset 0 1px 0 rgba(255, 255, 255, .18);
  transition: transform .06s ease, box-shadow .06s ease, background-color .12s ease;
}
.brick-button:hover { background: #4b8ef8; color: #fff; }
.brick-button:active { transform: translateY(3px); box-shadow: 0 1px 0 #1f56b8, inset 0 1px 0 rgba(255, 255, 255, .12); }
.brick-button:focus-visible { outline: 2px solid #9cc0fb; outline-offset: 3px; }
.brick-button .num { font-weight: 600; }
.brick-button[disabled] { background: #2b3445; color: var(--muted); box-shadow: 0 4px 0 #1a2030; cursor: not-allowed; }

.donate-foot { margin-top: 14px; }
.charge-note, .fine { text-wrap: pretty; }
.charge-note { color: var(--text); font-size: 13px; line-height: 1.5; margin: 0 0 6px; font-variant-numeric: tabular-nums; }
.charge-note.is-error { color: var(--danger); }
.fine { color: var(--subtle); font-size: 12.5px; line-height: 1.5; margin: var(--s1) 0 0; }
.donate .fine { margin: 0; }
.side-title { font-size: 15px; margin-bottom: 16px; }

/* Home: how it works + supporters */
.goal-left { display: flex; flex-direction: column; gap: var(--s4); min-width: 0; }
.how h2 { font-size: 17px; margin-bottom: 12px; }
.how-solo { margin-top: var(--s4); }
.steps { list-style: none; border: 1px solid var(--border); border-radius: var(--r-lg); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.steps li { display: flex; flex-direction: column; gap: 12px; padding: var(--s3); }
.steps li + li { border-left: 1px solid var(--border); }
.step-n {
  width: 28px; height: 28px; border-radius: var(--r-sm); display: grid; place-items: center;
  border: 1px solid var(--border-strong); color: var(--text); font-size: 13px;
}
.steps h3 { margin-bottom: 4px; }
.steps p { color: var(--muted); font-size: 14px; }
.supporters { list-style: none; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s1); }
.supporters li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-size: 14px; border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); min-width: 0; }
.supporters .money { margin-left: auto; color: var(--text); }
.supporter-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  flex: none; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center;
  background: var(--raised); border: 1px solid var(--border); font-size: 11px; font-weight: 600; color: var(--muted);
}
.card-empty { border: 1px dashed var(--border-strong); border-radius: var(--r-lg); padding: var(--s3); font-size: 14px; }

/* Storefront grid */
.pack-grid.row3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pack-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s4) var(--s3); }
.pack-card { display: flex; flex-direction: column; gap: 12px; color: var(--text); }
.pack-card:hover { color: var(--text); text-decoration: none; }
.pack-card-media { position: relative; aspect-ratio: 16 / 9; border-radius: var(--r); overflow: hidden; border: 1px solid var(--border); transition: border-color .15s ease; }
.pack-card-img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: filter .15s ease; }
.pack-card:hover .pack-card-media { border-color: var(--border-strong); }
.pack-card:hover .pack-card-img { filter: brightness(1.08); }
.pack-card-body h3 { font-size: 15px; margin-bottom: 2px; }
.pack-card:hover h3 { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--subtle); }
.pack-card .meta { font-size: 13px; }
.pack-card-summary { color: var(--muted); font-size: 14px; margin: 6px 0 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pack-card-foot { margin-top: var(--s1); font-size: 13px; }
.pack-card-foot .money { color: var(--text); }

/* Library */
main > .page-head + * { margin-top: var(--s4); }
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: var(--s2); padding-bottom: var(--s2); border-bottom: 1px solid var(--border); }
.toolbar ~ * { margin-top: var(--s4); }
.filters { display: flex; flex-wrap: wrap; gap: var(--s1); }
.filters a {
  color: var(--muted); font-size: 13px; font-weight: 500; height: 32px; padding: 0 12px;
  display: inline-flex; align-items: center; border: 1px solid var(--border); border-radius: var(--r-sm);
  transition: color .12s ease, border-color .12s ease, background-color .12s ease;
}
.filters a:hover { color: var(--text); border-color: var(--border-strong); text-decoration: none; }
.filters a[aria-current="page"] { color: var(--page); background: var(--text); border-color: var(--text); }
.count { color: var(--subtle); font-size: 13px; margin: 0; white-space: nowrap; }

/* Pack page */
.crumbs { display: flex; align-items: center; gap: var(--s1); font-size: 13px; color: var(--subtle); }
.crumbs a { color: var(--muted); }
main > .crumbs + .pack { margin-top: var(--s2); }
.pack { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: var(--s5); align-items: start; }
.pack-main > * + * { margin-top: var(--s5); }
.pack-main section h2 { font-size: 17px; margin-bottom: 12px; }
.pack-main section p { color: #c9cacf; max-width: 66ch; }
.gallery-main { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--r-lg); border: 1px solid var(--border); background: var(--surface); }
.gallery-thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: var(--s1); margin-top: 12px; }
.gallery-thumbs a { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: var(--r-sm); overflow: hidden; border: 1px solid var(--border); }
.gallery-thumbs a:hover { border-color: var(--border-strong); }
.gallery-thumbs a[aria-current="true"] { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent); }
.gallery-thumbs img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.contents { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--s3); border-top: 1px solid var(--border); }
.contents li { padding: 10px 0 10px 18px; border-bottom: 1px solid var(--border); font-size: 14px; position: relative; }
.contents li::before { content: ''; position: absolute; left: 2px; top: 18px; width: 6px; height: 6px; border-radius: 1px; background: var(--subtle); }
.license-image { max-width: 560px; width: 100%; height: auto; border: 1px solid var(--border); border-radius: var(--r); margin-top: var(--s2); }

.pack-side { position: sticky; top: 84px; }
.pack-card-info { padding: var(--s3); }
.pack-head h1 { font-size: 26px; line-height: 1.2; letter-spacing: -0.02em; margin-bottom: 6px; }
.pack-summary { color: var(--muted); margin: 12px 0 0; }
.pack-card-info > * + * { margin-top: var(--s3); padding-top: var(--s3); border-top: 1px solid var(--border); }
.side-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: 12px; }
.side-row h2 { font-size: 15px; }
.side-row .meta { font-size: 13px; }
.side-goal .goal-panel { margin-top: 0; padding-top: 0; border-top: 0; }
.files { list-style: none; border: 1px solid var(--border); border-radius: var(--r); margin-bottom: 12px; }
.files li { display: flex; justify-content: space-between; align-items: center; gap: var(--s2); padding: 10px 12px; font-size: 14px; }
.files li + li { border-top: 1px solid var(--border); }
.files .file-name { word-break: break-all; font-weight: 500; }
.files .money { font-size: 13px; flex: none; }
.downloads .fine { text-align: center; }
.status { margin: 0; padding: 12px var(--s2); border-radius: var(--r); border: 1px solid var(--border); background: var(--raised); font-size: 14px; }
.status-funded { border-color: rgba(245, 179, 1, .35); color: #ffd56b; }

/* Notice */
.notice { max-width: 440px; margin: var(--s6) auto 0; text-align: center; display: flex; flex-direction: column; align-items: center; }
.notice .logo-mark { margin-bottom: var(--s3); }
.notice h1 { font-size: 28px; margin-bottom: 12px; }
.notice p { color: var(--muted); }
.notice .notice-action { margin-top: var(--s3); }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: var(--s5) 0 var(--s6); color: var(--muted); font-size: 13px; }
.site-footer .bar { display: flex; justify-content: space-between; gap: var(--s4); }
.footer-brand { max-width: 360px; }
.footer-brand .brand { font-size: 15px; margin-bottom: 12px; }
.footer-links { display: flex; gap: var(--s3); }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--text); }
.fine-print { margin-top: var(--s4); flex-direction: column; gap: 6px !important; color: var(--subtle); font-size: 12.5px; }
.fine-print p { max-width: 760px; margin: 0; }

/* Admin */
.admin-head p { margin-bottom: var(--s1); }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; white-space: nowrap; }
.admin-table th, .admin-table td { text-align: left; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.admin-table th { color: var(--muted); font-weight: 500; background: var(--surface); }
.admin-table tr:last-child td { border-bottom: 0; }
.admin-form, .upload { max-width: 640px; }
.admin-form .field { margin-bottom: var(--s2); }
.admin-form label, .upload label { display: block; font-weight: 500; margin-bottom: 6px; }
.admin-form input, .admin-form select, .admin-form textarea {
  width: 100%; min-height: 44px; padding: 10px 12px; font: 400 15px var(--sans);
  border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--page); color: var(--text);
}
.admin-form textarea { resize: vertical; }
.hint { color: var(--muted); font-size: 13px; margin: 6px 0 0; }
.field-error { color: var(--danger); font-size: 14px; margin: 6px 0 0; }
.upload { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 var(--s2); }
.upload label { flex: 0 0 100%; margin: 0; }
.upload input[type="file"] { max-width: 100%; color: var(--muted); }
.files form { margin: 0; }
main > .admin-head + *, main > section + section { margin-top: var(--s5); }

@media (max-width: 1080px) {
  .goal { grid-template-columns: minmax(0, 1fr) 360px; }
  .pack { grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s4); }
  .supporters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: 1fr; }
  .steps li { flex-direction: row; gap: var(--s2); }
  .steps li + li { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 860px) {
  .goal, .pack { grid-template-columns: minmax(0, 1fr); }
  .goal-left { display: contents; }
  .goal-left .how { order: 3; margin-top: var(--s4); }
  .pack-side { position: static; order: -1; }
  .pack { gap: var(--s4); }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  h1 { font-size: 28px; }
  .bar, main { padding-left: var(--s2); padding-right: var(--s2); }
  main { padding-top: var(--s4); padding-bottom: var(--s8); }
  main > * + * { margin-top: var(--s6); }
  .site-header .bar { height: 56px; }
  .intro p { font-size: 16px; }
  main > .intro + .contribute { margin-top: var(--s3); }
  .goal { gap: var(--s2); }
  .goal-card, .pack-card-info { padding: var(--s2) var(--s2) var(--s3); }
  .goal-card h2, .pack-head h1 { font-size: 22px; }
  .plate-raised { font-size: 38px; }
  .preset { height: 44px; }
  .contents { grid-template-columns: 1fr; }
  .toolbar { flex-direction: column; align-items: flex-start; }
  .toolbar .count { display: none; }
  .filters { flex-wrap: nowrap; overflow-x: auto; width: calc(100% + 32px); margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters a { flex: none; }
  .pack-grid { gap: var(--s3); grid-template-columns: 1fr; }
  .pack-grid.row3 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 0 16px; scrollbar-width: none; }
  .pack-grid.row3 > * { flex: 0 0 78%; scroll-snap-align: start; }
  .supporters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .supporters .avatar { display: none; }
  .site-footer .bar { flex-direction: column; gap: var(--s3); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; }
}

/* Phone nav menu */
.account-name { max-width: 14ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-menu { display: none; position: relative; }
.nav-menu summary {
  list-style: none; cursor: pointer; width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: var(--r-sm); color: var(--text); border: 1px solid var(--border-strong); background: var(--raised);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu[open] summary { background: var(--hover); }
.nav-menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 200px; padding: 6px;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5); display: flex; flex-direction: column;
}
.nav-menu-panel a { color: var(--text); height: 44px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--r-sm); font-size: 15px; }
.nav-menu-panel a:hover { background: var(--raised); text-decoration: none; }
@media (max-width: 640px) {
  .nav-link { display: none; }
  .nav-menu { display: block; }
  .site-header nav { gap: var(--s1); }
  .site-header nav .button { margin-left: 0; }
  .account-name { display: none; }
  .account { padding: 0 10px; }
}

/* Account dropdown */
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu[open] summary { color: var(--text); background: var(--raised); }
.account .chev { color: var(--subtle); flex: none; }
.menu-panel {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px; z-index: 20;
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r);
  box-shadow: 0 12px 32px rgba(0, 0, 0, .5); display: flex; flex-direction: column;
}
.menu-panel a, .menu-item, .nav-menu-panel .menu-item {
  color: var(--text); height: 40px; display: flex; align-items: center; padding: 0 12px; border-radius: var(--r-sm);
  font: 500 14px var(--sans); width: 100%; justify-content: flex-start; text-align: left; background: none; border: 0; cursor: pointer;
}
.menu-panel a:hover, .menu-item:hover { background: var(--raised); color: var(--text); text-decoration: none; }
.menu-panel hr, .nav-menu-panel hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.menu-panel form, .nav-menu-panel form { margin: 0; }
.nav-menu-panel .menu-item { height: 44px; font-size: 15px; font-weight: 400; }
@media (max-width: 640px) {
  .account-menu { display: none; }
}

/* Touch: 44px targets */
@media (pointer: coarse) {
  .menu-panel a, .menu-item { height: 44px; }
  .nav-link, .account, .button.small, .filters a { height: 44px; }
  .button.small { padding: 0 14px; font-size: 14px; }
  .filters a { padding: 0 14px; }
  .crumbs a, .section-head a, .footer-links a { display: inline-flex; align-items: center; min-height: 44px; }
  .files li { padding-top: 0; padding-bottom: 0; }
  .files li > a { flex: 1; min-height: 44px; display: flex; align-items: center; }
  .button { height: 44px; }
  .brand { min-height: 44px; }
  .opt { min-height: 52px; }
}

/* Page transitions */
@view-transition { navigation: auto; }
.site-header { view-transition-name: site-header; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 150ms; animation-timing-function: ease; }
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Account */
.account-page { display: flex; flex-direction: column; gap: var(--s5); max-width: 760px; margin: 0 auto; }
.account-page h2 { font-size: 20px; margin-bottom: var(--s2); }
.account-page section[id] { scroll-margin-top: 80px; }
.profile { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); }
.profile-avatar { width: 64px; height: 64px; border-radius: 50%; flex: none; }
.profile-initial { display: grid; place-items: center; background: var(--accent-soft); color: #cfe0ff; font-size: 26px; font-weight: 600; }
.profile-body { min-width: 0; }
.profile-body h1 { font-size: 24px; margin: 0 0 6px; overflow-wrap: anywhere; }
.dstatus { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--muted); font-size: 14px; }
.dstatus .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--subtle); flex: none; }
.dstatus-ok { color: var(--text); }
.dstatus-ok .dot { background: #3ecf8e; }
.dstatus-warn .dot { background: var(--amber); }
.dstatus-join { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.badge {
  display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 12px; font-weight: 600; letter-spacing: .02em;
  color: var(--amber); background: rgba(245, 179, 1, .12); border: 1px solid rgba(245, 179, 1, .35);
}
.badge-top { color: #1a1200; background: var(--amber); border-color: var(--amber); }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s2); }
.stat { padding: var(--s2) var(--s3); }
.stat-label { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.stat-value { font-size: 26px; margin: 0; line-height: 1.2; }
.settings-form { padding: var(--s3); display: flex; flex-direction: column; gap: var(--s2); }
.settings-form .field label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.settings-form input[type="text"] {
  width: 100%; min-height: 44px; padding: 10px 12px; font: 400 15px var(--sans);
  border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--page); color: var(--text);
}
.settings-form .hint { margin: 0; }
.settings-form .field .hint { margin-top: 6px; }
.settings-form .button { align-self: flex-start; }
.settings-form .check, .toggle { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.toggle input { margin-top: 3px; }
.toggle span { display: flex; flex-direction: column; gap: 2px; }
.toggle small { color: var(--muted); font-size: 13px; }
.notice-ok {
  border: 1px solid rgba(62, 207, 142, .45); background: rgba(62, 207, 142, .08); color: #8be3b9;
  border-radius: var(--r); padding: 10px var(--s2); margin: 0 0 var(--s2); font-size: 14px;
}
.acct-table .num, .acct-table th.num { text-align: right; }
.pill { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 500; background: var(--raised); color: var(--muted); }
.pill-counted { color: #8be3b9; background: rgba(62, 207, 142, .1); }
.pill-refunded { color: var(--muted); }
.pill-disputed { color: #ffb3ae; background: rgba(242, 112, 106, .1); }
.dl-list { list-style: none; margin: 0; padding: 0; }
.dl-list li { display: flex; align-items: baseline; gap: 6px 16px; padding: 12px var(--s2); border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.dl-list li:last-child { border-bottom: 0; }
.dl-list a { font-weight: 500; }
.dl-file { color: var(--muted); font-family: var(--mono); font-size: 13px; overflow-wrap: anywhere; flex: 1; min-width: 0; }
.dl-list time { font-size: 13px; }
.signout { margin: 0; }
.account-page .empty { padding: var(--s4) var(--s3); }
@media (max-width: 640px) {
  .profile { padding: var(--s2); gap: var(--s2); }
  .profile-avatar { width: 52px; height: 52px; }
  .stats { grid-template-columns: 1fr; gap: 8px; }
  .stat { display: flex; justify-content: space-between; align-items: baseline; padding: 12px var(--s2); }
  .stat-label { margin: 0; }
  .stat-value { font-size: 20px; }
  .settings-form { padding: var(--s2); }
  .account-page { gap: var(--s4); }
}
@media (max-width: 640px) {
  .acct-table { white-space: normal; font-size: 13px; }
  .acct-table th, .acct-table td { padding: 10px 8px; }
  .acct-table td:first-child { white-space: nowrap; }
  .acct-table .pill { font-size: 11px; padding: 2px 6px; }
}

.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.pack-stats { display: flex; gap: 14px; margin: 8px 0 0; color: var(--muted); font-size: 13px; }
.pack-stats span { display: inline-flex; align-items: center; gap: 5px; }
.pack-stats svg { flex: none; }
.gallery-video { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: var(--r-lg); border: 1px solid var(--border); background: #000; margin-bottom: 12px; }

/* Sound browser (pack pages) */
.sounds .side-row { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); margin-bottom: 8px; }
.sounds .side-row h2 { margin: 0; }
.snd-note { font-size: 14px; margin: 0 0 var(--s2); max-width: 66ch; }
.snd-search { display: block; margin-bottom: var(--s2); }
.snd-search input {
  width: 100%; height: 40px; padding: 0 12px; font: 400 14px var(--sans); color: var(--text);
  background: var(--surface); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
}
.snd-search input::placeholder { color: var(--subtle); }
.snd-search input:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.snd-folders { border: 1px solid var(--border); border-radius: var(--r); background: var(--surface); overflow: hidden; }
.snd-folder + .snd-folder { border-top: 1px solid var(--border); }
.snd-folder[hidden] { display: none; }
.snd-folder > summary {
  display: flex; align-items: center; gap: 10px;
  height: 46px; padding: 0 14px; cursor: pointer; list-style: none; font-weight: 500; font-size: 14px;
}
.snd-folder > summary::-webkit-details-marker { display: none; }
.snd-folder > summary::before {
  content: ''; width: 7px; height: 7px; flex: none;
  border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .12s ease;
}
.snd-folder[open] > summary::before { transform: rotate(45deg); }
.snd-folder > summary:hover { background: var(--raised); }
.snd-fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snd-count { color: var(--muted); font-size: 13px; }
.snd-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--border); background: var(--page); max-height: 480px; overflow-y: auto; overscroll-behavior: contain; }
.snd-list:empty { display: none; }
.snd-row {
  display: grid; grid-template-columns: 36px minmax(0, 1fr) 44px auto; align-items: center; column-gap: 12px;
  height: 52px; padding: 0 14px; border-bottom: 1px solid var(--border);
}
.snd-row:last-child { border-bottom: 0; }
.snd-row.is-playing { background: var(--accent-soft); }
.snd-play {
  width: 36px; height: 36px; display: grid; place-items: center; padding: 0; cursor: pointer;
  color: var(--text); background: var(--raised); border: 1px solid var(--border-strong); border-radius: 50%;
}
.snd-play:hover { background: var(--hover); }
.snd-row.is-playing .snd-play { background: var(--accent); border-color: var(--accent); color: #fff; }
.snd-name { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.snd-dur { font-size: 12px; text-align: right; }
.snd-id { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.snd-id code { font-size: 12px; color: var(--muted); }
.snd-copy {
  width: 58px; height: 28px; padding: 0; cursor: pointer; font: 500 12px var(--sans); color: var(--text);
  background: var(--raised); border: 1px solid var(--border-strong); border-radius: var(--r-sm);
}
.snd-copy:hover { background: var(--hover); }
.snd-copy.is-copied { color: #7ee2a8; border-color: rgba(126, 226, 168, .4); }
.snd-empty { margin-top: var(--s2); }
@media (max-width: 560px) {
  .snd-row { grid-template-columns: 36px minmax(0, 1fr) 40px; grid-template-rows: 26px 24px; height: 60px; align-content: center; }
  .snd-play { grid-row: 1 / 3; }
  .snd-id { grid-column: 2 / 4; justify-content: flex-start; }
  .snd-dur { grid-column: 3; grid-row: 1; }
}

/* Goal strip under the header (every page but home and the active goal's own page) */
.goal-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.goal-strip .bar { display: flex; align-items: center; gap: 14px; height: 52px; }
.gs-thumb { width: 32px; height: 32px; flex: none; border-radius: var(--r-sm); object-fit: cover; background: var(--raised); border: 1px solid var(--border); }
.gs-name { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 14px; }
.gs-name strong { color: var(--text); font-weight: 600; }
.gs-name:hover { text-decoration: none; }
.gs-name:hover strong { text-decoration: underline; text-underline-offset: 3px; }
.gs-track { flex: 1 1 120px; min-width: 60px; max-width: 320px; }
.gs-amt { flex: none; font-size: 13px; color: var(--text); white-space: nowrap; }
.gs-cta { flex: none; margin-left: auto; }
@media (max-width: 640px) {
  .goal-strip .bar { gap: 10px; }
  .gs-label, .gs-track, .gs-thumb { display: none; }
  .gs-name { flex: 1 1 auto; }
}

/* Pack page: supporters */
.pack-supporters .side-row h2 { font-size: 20px; }
.pack-supporters .side-row a { font-size: 14px; }
.sup-summary { color: var(--muted); margin-bottom: 14px; }
.sup-summary strong { color: var(--text); font-weight: 600; }
.sup-list { list-style: none; border: 1px solid var(--border); border-radius: var(--r); max-height: 420px; overflow-y: auto; }
.sup-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto 72px; align-items: baseline; gap: 16px; padding: 10px 14px; font-size: 14px; }
.sup-list li + li { border-top: 1px solid var(--border); }
.sup-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sup-list .is-anon .sup-name { color: var(--muted); font-weight: 400; }
.sup-date { color: var(--subtle); font-size: 13px; }
.sup-amt { text-align: right; font-weight: 600; }

/* /supporters leaderboard */
.boards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s3); align-items: start; }
.board { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); }
.board-head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s2); padding: 18px 20px 14px; border-bottom: 1px solid var(--border); }
.board-head h2 { font-size: 18px; }
.board-list { list-style: none; }
.board-list li { display: grid; grid-template-columns: 22px 28px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 11px 20px; }
.board-list li + li { border-top: 1px solid var(--border); }
.board-rank { color: var(--subtle); font-size: 13px; font-weight: 600; text-align: right; }
.board-list .is-first .board-rank { color: var(--amber); }
.board-list .avatar { width: 28px; height: 28px; font-size: 12px; object-fit: cover; }
.board-who { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.board-name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-packs { color: var(--subtle); font-size: 12.5px; }
.board-total { font-weight: 600; font-size: 15px; }
.board-empty { padding: 20px; margin: 0; font-size: 14px; }
.board-foot { margin: 0; padding: 12px 20px; border-top: 1px solid var(--border); color: var(--muted); font-size: 13px; }
.board-foot .num { color: var(--text); }
.boards-note { margin-top: var(--s3); font-size: 14px; }
@media (max-width: 760px) {
  .boards { grid-template-columns: 1fr; }
}

/* VIP (/vip page uses .vx-*; pink #e879f9 is the accent here only) */
:root { --vip: #e879f9; --vip-ink: #1d0621; --vip-soft: rgba(232, 121, 249, .08); --vip-line: rgba(232, 121, 249, .45); }
.badge-vip { color: #fbe4fe; background: rgba(232, 121, 249, .16); border-color: var(--vip-line); }
.vip-cta-title { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 17px; margin: 0; }
.vip-acct { padding: var(--s3); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.vip-acct p { margin: 0; }
.inline-form { margin: 0; }
.faq summary { cursor: pointer; padding: 16px 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--subtle); font: 500 18px/1 var(--mono); }
.faq[open] summary::after { content: '\2212'; }
.faq p { margin: 0; padding: 0 0 16px; color: var(--muted); max-width: 60ch; }

.vx { display: flex; flex-direction: column; gap: 72px; }
.vx > .notice-ok, .vx > .error { margin-bottom: -48px; }
.vx h2 { font-size: 28px; letter-spacing: -0.025em; line-height: 1.15; margin: 0 0 12px; }

.vx-hero { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 56px; align-items: center; padding-top: 16px; }
.vx-eyebrow { font-size: 15px; font-weight: 600; color: var(--vip); margin: 0 0 14px; }
.vx-hero h1 { font-size: clamp(44px, 6vw, 72px); line-height: .98; letter-spacing: -0.045em; margin: 0 0 20px; font-weight: 600; text-wrap: balance; }
.vx-lede { font-size: 18px; line-height: 1.5; color: var(--muted); margin: 0 0 32px; max-width: 34ch; }
.vx-price-row { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.vx-price { margin: 0; display: flex; align-items: baseline; gap: 4px; color: var(--muted); font-size: 15px; }
.vx-price .money { font-family: var(--sans); font-size: 40px; font-weight: 600; letter-spacing: -0.03em; color: var(--text); }
.vx-buy {
  display: inline-flex; align-items: center; justify-content: center; height: 52px; padding: 0 28px;
  border: 0; border-radius: var(--r); background: var(--vip); color: var(--vip-ink);
  font: 600 16px var(--sans); letter-spacing: -0.01em; cursor: pointer; text-decoration: none;
  box-shadow: 0 3px 0 #a33fb5; transition: transform .08s ease, box-shadow .08s ease, background-color .12s ease;
}
.vx-buy:hover { background: #f0a3fb; color: var(--vip-ink); text-decoration: none; }
.vx-buy:active { transform: translateY(2px); box-shadow: 0 1px 0 #a33fb5; }
.vx-buy:focus-visible { outline: 2px solid var(--vip); outline-offset: 3px; }
.vx-buy[disabled] { background: var(--raised); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.vx-buy-sm { height: 44px; padding: 0 20px; font-size: 15px; }
.vx-fine { margin: 16px 0 0; font-size: 13px; color: var(--subtle); }
.vx-owned { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border: 1px solid var(--vip-line); border-radius: var(--r-lg); background: var(--vip-soft); }
.vx-owned p { margin: 0; }
.vx-owned-title { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; }

.vx-hook { display: block; border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); overflow: hidden; color: var(--text); transition: border-color .15s ease; }
.vx-hook:hover { border-color: var(--vip-line); text-decoration: none; }
.vx-hook-media { position: relative; aspect-ratio: 16 / 9; background: var(--raised); }
.vx-hook-media img, .vx-hook-media .cover-blank { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.vx-lock { position: absolute; top: 12px; left: 12px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: var(--r); background: rgba(13, 14, 16, .86); border: 1px solid var(--vip-line); color: var(--vip); }
.vx-hook-body { padding: 16px 20px 18px; border-top: 1px solid var(--border); }
.vx-hook-body p { margin: 0; }
.vx-hook-kicker { font-size: 13px; font-weight: 600; color: var(--vip); }
.vx-hook-name { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; margin: 4px 0 6px !important; }
.vx-hook-when { color: var(--muted); font-size: 14px; }
.vx-hook-when strong { font-family: var(--mono); font-weight: 500; color: var(--text); }

.vx-facts { display: flex; flex-wrap: wrap; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.vx-fact { flex: 1 1 200px; margin: 0; padding: 22px 24px; display: flex; flex-direction: column; gap: 4px; color: var(--text); }
.vx-fact + .vx-fact { border-left: 1px solid var(--border); }
.vx-fact-v { font-family: var(--sans); font-size: 32px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.1; }
.vx-fact-k { font-size: 13.5px; color: var(--muted); }
.vx-fact-goal .vx-fact-v { font-size: 22px; line-height: 1.25; padding-top: 6px; }
a.vx-fact:hover { text-decoration: none; background: var(--surface); }

.vx-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; }
.vx-split > div:first-child { padding-top: 8px; }
.vx-split p { font-size: 16px; line-height: 1.6; max-width: 46ch; }
.vx-dc { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--r-lg); overflow: hidden; border: 1px solid var(--border); font-size: 15px; }
.vx-dc-col { background: #2b2d31; padding: 16px 12px 20px; min-width: 0; }
.vx-dc-col:first-child { background: #232428; }
.vx-dc-head { margin: 14px 8px 6px; font-size: 12px; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: #949ba4; } /* Discord's own style, kept for a faithful preview */
.vx-dc-head:first-child { margin-top: 0; }
.vx-dc-channels { list-style: none; margin: 0; padding: 0; }
.vx-dc-channels li { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: 4px; color: #dbdee1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vx-dc-channels li:first-child { background: #404249; color: #fff; }
.vx-hash { color: #80848e; font-size: 20px; line-height: 1; }
.vx-dc-member { display: flex; align-items: center; gap: 10px; padding: 5px 8px; border-radius: 4px; }
.vx-dc-member img, .vx-dc-av { width: 32px; height: 32px; border-radius: 50%; flex: none; }
.vx-dc-av { display: grid; place-items: center; background: #5865f2; color: #fff; font-weight: 600; font-size: 14px; }
.vx-dc-name { color: var(--vip); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vx-dc-member.is-ghost .vx-dc-av { background: #3f4147; }
.vx-dc-bar { height: 10px; width: 90px; border-radius: 3px; background: #3f4147; }
.vx-dc-bar.short { width: 64px; }

.vx-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.vx-table th, .vx-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.vx-table thead th { font-size: 14px; font-weight: 600; color: var(--muted); }
.vx-table tbody th { font-weight: 500; color: var(--text); }
.vx-table td { color: var(--muted); }
.vx-table .vx-col-vip { background: var(--vip-soft); color: var(--text); }
.vx-table thead .vx-col-vip { color: var(--vip); }
.vx-table .vx-col-vip svg { color: var(--vip); }
.vx-no { display: inline-block; width: 12px; height: 2px; border-radius: 1px; background: var(--subtle); vertical-align: middle; }
.vx-faq { max-width: 760px; }
.vx-faq .faq { border-bottom: 1px solid var(--border); }

.vx-sticky { display: none; }
@media (max-width: 860px) {
  .vx { gap: 56px; }
  .vx-hero, .vx-split { grid-template-columns: 1fr; gap: 32px; }
  .vx-facts { flex-direction: column; }
  .vx-fact { flex: none; padding: 16px 4px; }
  .vx-fact-v { font-size: 28px; }
  .vx-fact + .vx-fact { border-left: 0; border-top: 1px solid var(--border); }
}
@media (max-width: 720px) {
  .vx-sticky:not([hidden]) {
    display: flex; position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; align-items: center; justify-content: space-between; gap: 12px;
    padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); background: rgba(13, 14, 16, .96); border-top: 1px solid var(--border);
  }
  .vx-sticky p { margin: 0; font-size: 14px; }
  .vx-dc { font-size: 14px; grid-template-columns: 1fr; }
  body:has(.vx-sticky:not([hidden])) .site-footer { padding-bottom: 88px; }
  .vx-table th, .vx-table td { padding: 12px 10px; font-size: 14px; }
}

/* Early access */
.tag-early {
  display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 9px; border-radius: 999px;
  font-size: 12px; font-weight: 600; color: #fbe4fe; background: rgba(40, 14, 44, .88);
  border: 1px solid rgba(232, 121, 249, .55); white-space: nowrap;
}
.tag-early-time { font-family: var(--mono); font-weight: 500; color: #f0abfc; }
.pack-card-media .tag-early { position: absolute; top: 8px; left: 8px; }
.pack-head .tag-early { margin-bottom: 10px; }
.early-note {
  margin: 0 0 12px; padding: 10px 12px; border-radius: var(--r); font-size: 13.5px;
  border: 1px solid rgba(232, 121, 249, .4); background: rgba(232, 121, 249, .08); color: var(--text);
}
.early-note strong { font-family: var(--mono); font-weight: 500; color: #f0abfc; }

/* Terms / Privacy */
.legal { max-width: 720px; }
.legal h2 { font-size: 19px; margin: var(--s4) 0 var(--s1); }
.legal p, .legal li { color: var(--muted); }
.legal strong { color: var(--text); font-weight: 600; }
.legal ul, .legal ol { padding-left: 22px; }
.legal li + li { margin-top: 6px; }

.admin-inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.admin-inline input { height: 34px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--page); color: var(--text); font: 400 14px var(--sans); }

.sup-name { display: inline-flex; align-items: center; gap: 10px; min-width: 0; }
.sup-list .avatar { width: 24px; height: 24px; font-size: 11px; flex: none; object-fit: cover; }
.supporters .avatar { object-fit: cover; }

/* Thank-you page */
.ty { max-width: 620px; margin: var(--s4) auto 0; display: flex; flex-direction: column; gap: 20px; }
.ty-mark { display: inline-flex; animation: stud-pop .5s cubic-bezier(.2, .9, .3, 1.35) both; }
.ty-mark .logo-mark { border-radius: 12px; }
@keyframes stud-pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
.ty-kicker { margin: 0; color: #8be3b9; font-weight: 600; font-size: 14px; }
.ty h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.1; letter-spacing: -0.035em; margin: -8px 0 0; text-wrap: balance; }
.ty h1 a { color: inherit; text-decoration: underline; text-decoration-color: var(--border-strong); text-underline-offset: 6px; }
.ty-amt { font-variant-numeric: tabular-nums; }
.ty-goal { padding: 20px 0 4px; }
.ty-facts { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin: 12px 0 0; font-size: 15px; color: var(--muted); }
.ty-facts strong { color: var(--text); font-weight: 600; }
.ty-funded { color: var(--amber); font-weight: 600; }
.ty-card { border: 1px solid var(--border); border-radius: var(--r-lg); background: var(--surface); padding: 18px 20px; }
.ty-card h2 { font-size: 16px; margin: 0 0 6px; }
.ty-card p { margin: 0; }
.ty-claim { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; margin: 0; }
.ty-share { display: flex; gap: 8px; margin-top: 12px; }
.ty-share input { flex: 1; min-width: 0; height: 34px; padding: 0 10px; border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--page); color: var(--muted); font: 400 13px var(--mono); }
.ty-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.ty-pending { align-items: center; text-align: center; }
.ty-pending .ty-mark { animation: stud-pop .5s cubic-bezier(.2, .9, .3, 1.35) both, ty-breathe 1.6s ease-in-out .5s infinite; }
@keyframes ty-breathe { 50% { opacity: .55; } }
/* The goal bar grows from the old total to the new one. */
.hbar-fill.hbar-grow { animation: hbar-grow 1.4s cubic-bezier(.2, .8, .2, 1) .35s both; }
@keyframes hbar-grow { from { width: var(--from); } }
@media (prefers-reduced-motion: reduce) {
  .ty-mark, .ty-pending .ty-mark, .hbar-fill.hbar-grow { animation: none; }
}
@media (max-width: 560px) {
  .ty-actions .button { flex: 1 1 100%; }
}

.split-line { margin: 10px 0 0; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; min-height: 1.5em; }

.via { color: var(--vip, #e879f9); font-size: 12px; font-weight: 500; margin-left: 6px; white-space: nowrap; }
.ty-split { margin: -6px 0 0; color: var(--muted); font-size: 15px; }
.ty-split strong { color: var(--text); }

.tp-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; margin: var(--s3) 0 0; }
.tp-total { margin: 0; padding: 18px 20px; background: var(--surface); display: flex; flex-direction: column; gap: 4px; }
.tp-v { font-family: var(--sans); font-size: 26px; font-weight: 600; letter-spacing: -0.02em; color: var(--text); }
.tp-k { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .tp-totals { grid-template-columns: 1fr 1fr; } }

.svc textarea { width: 100%; padding: 10px 12px; font: 400 15px var(--sans); border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--page); color: var(--text); resize: vertical; }
.svc input[type="url"] { width: 100%; min-height: 44px; padding: 10px 12px; font: 400 15px var(--sans); border-radius: var(--r-sm); border: 1px solid var(--border-strong); background: var(--page); color: var(--text); }
.svc .settings-form { margin-top: var(--s3); }
.svc-history { margin-top: var(--s4); }
