/* The J's mobile UI. Served at /assets/next.css with a content-hash ?v=. */
/* ------------------------------------------------------------------
   The J's — mobile-first prototype.

   Static: every number here is mocked. Nothing calls the API yet. The
   point is to judge the design on a real phone before wiring it to
   /session, /public-state, /wallet and friends.

   Dark-first and thumb-first by default. The desktop view deliberately
   stays a centred column rather than growing a sidebar — this is a
   phone product that happens to be viewable on a laptop, and pretending
   otherwise is how the last design ended up desktop-shaped.
   ------------------------------------------------------------------ */

:root {
  --bg: #08070c;
  --bg-lift: #0f0d16;
  --surface: rgba(255, 255, 255, 0.045);
  --surface-2: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.1);
  --line-soft: rgba(255, 255, 255, 0.06);

  --ink: #f6f3ff;
  --muted: #9c95b0;
  --faint: #6b6480;

  --violet: #7c4dff;
  --pink: #ff3dc8;
  --lime: #c8ff2f;
  --teal: #00e5c0;
  --good: #3ddc84;
  --warn: #ff4d6a;
  --amber: #ffb020;

  --grad: linear-gradient(135deg, #7c4dff 0%, #ff3dc8 100%);
  --grad-soft: linear-gradient(135deg, rgba(124, 77, 255, 0.22), rgba(255, 61, 200, 0.16));

  /* Spacing scale — 4px base, no in-between values. */
  --s1: 4px;
  --s2: 8px;
  --s3: 12px;
  --s4: 16px;
  --s5: 24px;
  --s6: 32px;
  --s7: 48px;

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;

  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --shell: 460px;

  --f-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, system-ui, sans-serif;
  --f-display: ui-serif, Georgia, "Times New Roman", serif;

  --nav-h: 68px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overscroll-behavior-y: none;
}

body {
  /* Ambient wash — keeps the near-black from reading as dead flat. */
  background-image:
    radial-gradient(90% 55% at 12% -8%, rgba(124, 77, 255, 0.2), transparent 62%),
    radial-gradient(70% 45% at 98% 4%, rgba(255, 61, 200, 0.13), transparent 60%);
  background-attachment: fixed;
}

button { font: inherit; color: inherit; border: 0; background: none; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------------- shell ---------------- */

.shell {
  max-width: var(--shell);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  padding-bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + var(--s6));
}

@media (min-width: 520px) {
  .shell {
    border-left: 1px solid var(--line-soft);
    border-right: 1px solid var(--line-soft);
  }
}

.view { display: none; animation: rise 0.34s var(--ease) both; }
.view.is-active { display: block; }

@keyframes rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  .view { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ---------------- top bar ---------------- */

.top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: var(--s3);
  padding: calc(env(safe-area-inset-top) + var(--s4)) var(--s4) var(--s3);
  background: linear-gradient(to bottom, rgba(8, 7, 12, 0.94), rgba(8, 7, 12, 0.72) 70%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.wordmark {
  font-family: var(--f-display);
  font-size: 26px;
  letter-spacing: -0.02em;
  font-weight: 600;
}

.top-title {
  font-size: 21px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.top-spacer { flex: 1; }

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  position: relative;
  transition: transform 0.18s var(--ease), background 0.18s var(--ease);
}
.icon-btn:active { transform: scale(0.9); background: var(--surface-2); }

.dot {
  position: absolute;
  top: 7px;
  right: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--pink);
  border: 2px solid var(--bg);
}

.avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--surface-2);
}
.avatar.ring { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--violet); }

/* ---------------- primitives ---------------- */

.pad { padding-inline: var(--s4); }

.stack > * + * { margin-top: var(--s4); }

.sec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--s3);
  padding: var(--s5) var(--s4) var(--s3);
}
.sec-head h2 {
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.sec-more { font-size: 13px; font-weight: 600; color: var(--violet); }

.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--faint);
}

.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: var(--s4);
}

.muted { color: var(--muted); }
.tiny { font-size: 12px; }
.small { font-size: 13px; }

.chip-row {
  display: flex;
  gap: var(--s2);
  overflow-x: auto;
  padding: 0 var(--s4) var(--s2);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.chip-row::-webkit-scrollbar { display: none; }

.chip {
  flex: 0 0 auto;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
  transition: transform 0.16s var(--ease);
}
.chip:active { transform: scale(0.94); }
.chip.is-on {
  background: var(--grad);
  border-color: transparent;
  color: #fff;
}

.rail {
  display: flex;
  gap: var(--s3);
  overflow-x: auto;
  padding: 0 var(--s4) var(--s2);
  scroll-snap-type: x mandatory;
  /* Without this, snapping aligns the first card to the scrollport edge
     and eats the left padding, so the rail sits flush against the bezel. */
  scroll-padding-left: var(--s4);
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.rail::-webkit-scrollbar { display: none; }
.rail > * { scroll-snap-align: start; flex: 0 0 auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s2);
  padding: 14px 22px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
  background: var(--grad);
  color: #fff;
  transition: transform 0.16s var(--ease);
}
.btn:active { transform: scale(0.96); }
.btn.ghost {
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}
.btn.block { display: flex; width: 100%; }

.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}
.badge.up { color: var(--good); background: rgba(61, 220, 132, 0.12); border-color: rgba(61, 220, 132, 0.22); }
.badge.hot { color: #fff; background: var(--grad); border-color: transparent; }
.badge.live { color: var(--warn); background: rgba(255, 77, 106, 0.14); border-color: rgba(255, 77, 106, 0.26); }

/* Numerals want to be big, tight and tabular — money is the hero. */
.figure {
  font-size: 44px;
  font-weight: 800;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.figure.sm { font-size: 26px; letter-spacing: -0.03em; }

.display {
  font-family: var(--f-display);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.02;
}

.thumb {
  border-radius: var(--r-md);
  object-fit: cover;
  background: var(--surface-2);
}

/* Placeholder art — no external images in a static prototype. */
.art {
  background-size: cover;
  background-position: center;
  position: relative;
  overflow: hidden;
}
/* These gradients stand in for photography. The scrim runs the full
   height, not just the bottom, so they read as moody art rather than
   flat neon — and so overlaid text keeps its contrast. */
.art::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(8, 7, 12, 0.95) 2%, rgba(8, 7, 12, 0.62) 42%, rgba(8, 7, 12, 0.34) 100%);
}
.art > * { position: relative; z-index: 1; }

/* The scrim exists to keep overlaid text legible. A product photo has
   no text on it, so scrimming it just makes the product hard to see. */
.art.photo::after { content: none; }

.g1 { background-image: linear-gradient(135deg, #6a2cff, #ff3dc8); }
.g2 { background-image: linear-gradient(135deg, #ff7a18, #ff3d6e); }
.g3 { background-image: linear-gradient(135deg, #00c2a8, #2b6cff); }
.g4 { background-image: linear-gradient(135deg, #ffb020, #ff4d6a); }
.g5 { background-image: linear-gradient(135deg, #3a1c71, #d76d77); }
.g6 { background-image: linear-gradient(135deg, #0f2027, #2c5364); }
.g7 { background-image: linear-gradient(135deg, #c8ff2f, #00e5c0); }
.g8 { background-image: linear-gradient(135deg, #ff3dc8, #7c4dff); }

/* ---------------- bottom nav ---------------- */

.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  width: 100%;
  max-width: var(--shell);
  z-index: 60;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  align-items: center;
  height: calc(var(--nav-h) + env(safe-area-inset-bottom));
  padding-bottom: env(safe-area-inset-bottom);
  background: rgba(12, 10, 18, 0.82);
  backdrop-filter: blur(24px) saturate(1.4);
  -webkit-backdrop-filter: blur(24px) saturate(1.4);
  border-top: 1px solid var(--line-soft);
}

.nav-item {
  display: grid;
  justify-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: var(--faint);
  padding-top: 4px;
  transition: color 0.18s var(--ease);
}
.nav-item svg { width: 23px; height: 23px; }
.nav-item.is-on { color: var(--ink); }
.nav-item.is-on svg { filter: drop-shadow(0 0 10px rgba(124, 77, 255, 0.8)); }

.fab {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: var(--grad);
  display: grid;
  place-items: center;
  justify-self: center;
  margin-top: -18px;
  box-shadow: 0 10px 26px rgba(124, 77, 255, 0.46);
  transition: transform 0.2s var(--ease);
}
.fab:active { transform: scale(0.9) rotate(45deg); }

/* ---------------- create sheet ---------------- */

.scrim {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(4, 3, 8, 0.66);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.26s var(--ease);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }

.sheet {
  position: fixed;
  left: 50%;
  transform: translate(-50%, 102%);
  bottom: 0;
  width: 100%;
  max-width: var(--shell);
  z-index: 80;
  background: var(--bg-lift);
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  padding: var(--s3) var(--s4) calc(env(safe-area-inset-bottom) + var(--s5));
  transition: transform 0.36s var(--ease);
}
.sheet.is-open { transform: translate(-50%, 0); }

.grabber {
  width: 40px;
  height: 4px;
  border-radius: 999px;
  background: var(--line);
  margin: 0 auto var(--s4);
}


/* ---------------- home ---------------- */

.greet { padding: var(--s2) var(--s4) 0; }
.greet h1 {
  margin: 0;
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.035em;
}

.hero-earn {
  margin: var(--s4) var(--s4) 0;
  border-radius: var(--r-xl);
  padding: var(--s5) var(--s4);
  background: var(--grad-soft);
  border: 1px solid rgba(124, 77, 255, 0.3);
  position: relative;
  overflow: hidden;
}
.hero-earn::before {
  content: "";
  position: absolute;
  width: 190px;
  height: 190px;
  right: -60px;
  top: -80px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 61, 200, 0.5), transparent 68%);
}

.earn-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: var(--s4);
  padding-top: var(--s4);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
}
.earn-split div { text-align: center; }
.earn-split strong { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }

.shortcut-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s2);
  padding: var(--s4) var(--s4) 0;
}
.shortcut {
  display: grid;
  gap: 6px;
  padding: var(--s3);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: transform 0.16s var(--ease);
}
.shortcut:active { transform: scale(0.95); }
.shortcut span:first-child { font-size: 19px; }
.shortcut b { font-size: 13px; font-weight: 700; }

.feed-item {
  display: grid;
  grid-template-columns: 42px 1fr auto;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line-soft);
}
.feed-item:last-child { border-bottom: 0; }
.feed-ico {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 18px;
}
.feed-item h3 { margin: 0 0 2px; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }

/* ---------------- universe ---------------- */

.story {
  width: 68px;
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
}
.story-ring {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--grad);
}
.story-ring > div {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid var(--bg);
  background-size: cover;
  background-position: center;
}
.story.seen .story-ring { background: var(--line); }

.spotlight {
  margin: 0 var(--s4);
  height: 380px;
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s5);
}
.spotlight h2 {
  margin: var(--s2) 0 var(--s1);
  font-size: 40px;
  line-height: 0.98;
}

.comm-card {
  width: 158px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.comm-card .art { height: 100px; display: flex; align-items: flex-end; padding: var(--s2); }
.comm-card .body { padding: var(--s3); }
.comm-card h3 { margin: 0 0 3px; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--good);
  display: inline-block;
  margin-right: 5px;
  box-shadow: 0 0 8px var(--good);
}

/* ---------------- market ---------------- */

.search {
  display: flex;
  align-items: center;
  gap: var(--s2);
  margin: 0 var(--s4);
  padding: 13px var(--s4);
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 15px;
}

.prod-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s3);
  padding: 0 var(--s4);
}
.prod {
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
  transition: transform 0.16s var(--ease);
}
.prod:active { transform: scale(0.97); }
.prod .art { height: 132px; }
.prod .body { padding: var(--s3); }
.prod h3 { margin: 0; font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.prod .price { font-size: 17px; font-weight: 800; letter-spacing: -0.02em; margin-top: 6px; }
.comm {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--lime);
}

.sell-cta {
  margin: var(--s5) var(--s4) 0;
  border-radius: var(--r-xl);
  padding: var(--s5);
  min-height: 190px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

/* ---------------- coseller ---------------- */

.stat-quad {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s2);
  padding: 0 var(--s4);
}
.stat {
  padding: var(--s4);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.stat b { display: block; font-size: 23px; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }

.link-row {
  display: grid;
  gap: 7px;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line-soft);
}
.link-row:last-child { border-bottom: 0; }
.link-top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.link-top code { font-size: 13px; font-weight: 600; font-family: var(--f-sans); }
.meter { height: 5px; border-radius: 999px; background: var(--surface-2); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 999px; background: var(--grad); }

.cat-row {
  display: grid;
  grid-template-columns: 78px 1fr 62px;
  align-items: center;
  gap: var(--s3);
  padding: 9px 0;
  font-size: 13px;
}
.cat-row b { text-align: right; font-variant-numeric: tabular-nums; font-weight: 700; }

/* Level progress — the one bit of gamification worth keeping. */
.level {
  display: grid;
  gap: var(--s2);
  padding: var(--s4);
  border-radius: var(--r-md);
  background: var(--grad-soft);
  border: 1px solid rgba(124, 77, 255, 0.28);
}
.pips { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.pips i { height: 6px; border-radius: 999px; background: var(--surface-2); }
.pips i.on { background: var(--grad); }

/* ---------------- studio ---------------- */

.proj {
  width: 232px;
  border-radius: var(--r-md);
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--line-soft);
}
.proj .art { height: 118px; display: flex; align-items: flex-start; padding: var(--s3); }
.proj .body { padding: var(--s3); display: grid; gap: 7px; }
.proj h3 { margin: 0; font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }

.piece-row {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s3);
  width: 100%; text-align: left; margin-bottom: var(--s2);
  padding: var(--s3) var(--s4); border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.piece-row b { display: block; font-size: 15px; font-weight: 700; }
.piece-row .tiny { display: block; margin-top: 2px; }
.steps { display: flex; gap: 6px; margin-bottom: var(--s4); }
.steps span {
  flex: 1; text-align: center; padding: 7px 0; border-radius: 999px;
  background: var(--surface-2); font-size: 12px; font-weight: 700; color: var(--muted);
}
.steps span.on { background: var(--grad); color: #fff; }
.steps span.done { color: var(--good); }
.note-block {
  margin-top: var(--s3); padding: var(--s3) var(--s4); border-radius: var(--r-sm);
  background: var(--surface); border-left: 3px solid var(--violet);
}
.note-block.warn { border-left-color: var(--warn); }
.note-block p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; }
.save-state { font-size: 12px; font-weight: 700; color: var(--muted); }
.save-state.is-error { color: var(--warn); }
.seg { display: flex; gap: 4px; padding: 4px; margin: var(--s4) var(--s4) 0; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-soft); }
.seg button { flex: 1; padding: 9px 0; border-radius: 999px; font-size: 14px; font-weight: 700; color: var(--muted); }
.seg button.is-on { background: var(--grad); color: #fff; }
.feed-row { display: flex; gap: var(--s3); align-items: center; padding: var(--s3); margin-bottom: var(--s2); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-soft); }
.feed-row .thumb { width: 64px; height: 64px; flex: none; border-radius: var(--r-sm); object-fit: cover; background: var(--surface-2); }
.feed-row .grow { flex: 1; min-width: 0; }
.feed-row b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.field select { appearance: none; }
.review-copy { margin-top: var(--s3); font-size: 15px; line-height: 1.6; white-space: pre-wrap; overflow-wrap: anywhere; }
.money-warn { margin-top: var(--s3); padding: var(--s3); border-radius: var(--r-sm); background: rgba(255, 176, 32, 0.1); color: var(--amber); font-size: 13px; line-height: 1.45; }
.consent { display: flex; gap: var(--s2); align-items: flex-start; margin-top: var(--s3); font-size: 13px; line-height: 1.45; }
.consent input { margin-top: 3px; width: 18px; height: 18px; flex: none; }
.portrait { width: 132px; height: 132px; border-radius: 50%; object-fit: cover; display: block; margin: 0 auto; border: 3px solid var(--line); }
.portrait.placeholder { display: grid; place-items: center; font-size: 40px; font-weight: 800; color: #fff; }
.portrait-row { display: flex; gap: var(--s4); justify-content: center; align-items: flex-end; }
.portrait-row figure { margin: 0; text-align: center; }
.portrait-row figcaption { margin-top: 6px; font-size: 12px; font-weight: 700; color: var(--muted); }
.piece-img { width: 100%; max-height: 220px; object-fit: cover; border-radius: var(--r-sm); margin-top: var(--s2); }
.count-grid { margin-top: var(--s3);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s2);
  padding: 0 var(--s4);
}
.count {
  padding: var(--s3) var(--s2);
  border-radius: var(--r-sm);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  text-align: center;
}
.count b { display: block; font-size: 21px; font-weight: 800; letter-spacing: -0.02em; }
.count span { font-size: 10px; font-weight: 600; color: var(--muted); }

/* ---------------- stage ---------------- */

.feature {
  margin: 0 var(--s4);
  height: 430px;
  border-radius: var(--r-xl);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--s5);
}
.feature h2 { margin: var(--s2) 0 var(--s3); font-size: 42px; line-height: 0.98; }

.mic {
  margin: var(--s4) var(--s4) 0;
  padding: var(--s5) var(--s4);
  border-radius: var(--r-xl);
  background: var(--grad-soft);
  border: 1px solid rgba(124, 77, 255, 0.28);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: var(--s3);
}
.mic-face {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  padding: 3px;
  background: var(--grad);
}
.mic-face > div { width: 100%; height: 100%; border-radius: 50%; border: 3px solid var(--bg-lift); }

.topic { width: 76px; display: grid; justify-items: center; gap: 7px; font-size: 11px; font-weight: 600; text-align: center; }
.topic-orb {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 21px;
  font-weight: 800;
}

.story-row {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: var(--s3);
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line-soft);
}
.story-row:last-child { border-bottom: 0; }
.story-row .art { height: 82px; border-radius: var(--r-sm); }
.story-row h3 { margin: 0 0 5px; font-size: 15px; font-weight: 700; line-height: 1.25; letter-spacing: -0.01em; }
.meta { display: flex; gap: var(--s3); font-size: 11px; color: var(--faint); font-weight: 600; }

.member { width: 200px; border-radius: var(--r-md); overflow: hidden; background: var(--surface); border: 1px solid var(--line-soft); flex: 0 0 auto; }
.member img { width: 100%; height: 200px; object-fit: cover; display: block; }
.member .body { padding: var(--s3); }
.member h3 { margin: 2px 0 4px; font-size: 16px; font-weight: 800; }
.member .eyebrow { margin: 0; }
.member p { margin: 0; line-height: 1.45; }
.universe-spot { background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.75)), url(/files/local/the_js_we_are_cover.jpg) center / cover; }
.stack { display: grid; gap: var(--s3); }
.stack .card h3 { margin: 4px 0 6px; font-size: 16px; font-weight: 800; }
.stack .card p { margin: 0 0 var(--s2); line-height: 1.5; }
.stack .card .btn { margin-top: var(--s2); }
.faq { border-bottom: 1px solid var(--line-soft); padding: var(--s3) 0; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15px; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--muted); }
.faq[open] summary::after { content: "–"; }
.faq p { margin: var(--s2) 0 0; line-height: 1.5; }
img.cover { object-fit: cover; }
/* ---------------- media ---------------- */

.album-hero {
  height: 340px;
  display: flex;
  align-items: flex-end;
  padding: var(--s5) var(--s4);
  margin-bottom: var(--s4);
}
.cover {
  width: 116px;
  height: 116px;
  border-radius: var(--r-md);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.6);
  flex: 0 0 auto;
}

.stat-strip {
  display: flex;
  overflow-x: auto;
  gap: var(--s5);
  padding: var(--s4);
  margin: 0 var(--s4);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  scrollbar-width: none;
}
.stat-strip::-webkit-scrollbar { display: none; }
.stat-strip div { flex: 0 0 auto; text-align: center; }
.stat-strip b { display: block; font-size: 19px; font-weight: 800; letter-spacing: -0.02em; }

.track {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  gap: var(--s3);
  align-items: center;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
}
.track:last-child { border-bottom: 0; }
.track span:first-child { color: var(--faint); font-size: 13px; font-variant-numeric: tabular-nums; }
.track b { font-weight: 600; }

.dsp {
  width: 62px;
  display: grid;
  justify-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}
.dsp-tile {
  width: 52px;
  height: 52px;
  border-radius: var(--r-sm);
  display: grid;
  place-items: center;
  font-size: 20px;
  background: var(--surface-2);
  border: 1px solid var(--line-soft);
}


.back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
}

/* Prototype marker. Every number on this page is invented, and the page
   sits on a public origin with no login — so say so, plainly, above the
   fold. Dismissible because it should not fight the design during a
   review, and it comes back on the next load. */

/* Per-surface marker for the views still running on invented data, now
   that Market/Coseller/Home/Stage read the real game state. */
.mock-note {
  margin: var(--s3) var(--s4) 0;
  padding: 10px var(--s3);
  border-radius: var(--r-sm);
  background: rgba(255, 176, 32, 0.1);
  border: 1px solid rgba(255, 176, 32, 0.28);
  color: #ffd07a;
  font-size: 12px;
  font-weight: 600;
}

.empty {
  padding: var(--s5) var(--s4);
  text-align: center;
  color: var(--faint);
  font-size: 14px;
}

.seat-row {
  display: flex;
  align-items: center;
  gap: var(--s3);
  width: 100%;
  padding: var(--s3);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  margin-bottom: var(--s2);
  text-align: left;
}
.seat-row b { font-size: 15px; }

/* ---------------- buying ---------------- */

a.prod { display: block; color: inherit; }

.icon-btn { position: relative; }
.count-badge {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 17px;
  text-align: center;
}
.count-badge:empty { display: none; }

.gallery {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  gap: var(--s2);
  padding: 0 var(--s4);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery > * {
  flex: 0 0 100%;
  scroll-snap-align: center;
  height: 320px;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--surface);
}
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery.single > * { flex-basis: 100%; }

.pdp-body { padding: var(--s4); }
.pdp-body h1 { margin: 0 0 var(--s1); font-size: 24px; line-height: 1.15; letter-spacing: -0.02em; }
.pdp-price { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; margin: var(--s3) 0 var(--s1); }
.pdp-desc { color: var(--muted); font-size: 14px; line-height: 1.5; margin: var(--s3) 0 0; }

.buy-bar {
  display: flex;
  gap: var(--s3);
  align-items: center;
  padding: var(--s4);
}
.buy-bar .btn { flex: 1; }

.stepper {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.stepper button { width: 42px; height: 46px; font-size: 20px; font-weight: 700; }
.stepper b { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; }

.line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: var(--s3);
  align-items: center;
  padding: var(--s3) 0;
  border-bottom: 1px solid var(--line-soft);
}
.line:last-child { border-bottom: 0; }
.line .art, .line img { width: 56px; height: 56px; border-radius: var(--r-sm); object-fit: cover; }
.line h3 { margin: 0 0 2px; font-size: 14px; font-weight: 700; line-height: 1.25; }
.line .amt { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.line .rm { display: block; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--faint); }

.sum-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  font-size: 14px;
  color: var(--muted);
}
.sum-row.total { color: var(--ink); font-size: 17px; font-weight: 800; padding-top: var(--s3); }

.sheet.tall {
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.sheet h2.sheet-title { margin: 0 0 var(--s1); font-size: 20px; font-weight: 800; letter-spacing: -.02em; }

.field { display: block; margin-top: var(--s3); }
.field > span { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
.field input, .field select {
  width: 100%;
  padding: 13px 14px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font: inherit;
  font-size: 16px; /* 16px stops iOS zooming into the field */
}
.field input:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.field textarea {
  width: 100%; min-height: 220px; resize: vertical;
  padding: 13px 14px; border-radius: var(--r-sm);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.55;
}
.field textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.field input:disabled, .field textarea:disabled { opacity: .6; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.form-sec { margin-top: var(--s5); }
.form-sec h3 { margin: 0; font-size: 15px; font-weight: 800; }
.hint { font-size: 12px; color: var(--faint); margin: 6px 0 0; line-height: 1.4; }

.btn[disabled] { opacity: 0.45; pointer-events: none; }

#pay-mount { margin-top: var(--s4); border-radius: var(--r-md); overflow: hidden; background: #fff; }
#pay-mount:empty { display: none; }

.order {
  padding: var(--s4);
  border-radius: var(--r-md);
  background: var(--surface);
  border: 1px solid var(--line-soft);
  margin-bottom: var(--s3);
}
.order-head { display: flex; justify-content: space-between; align-items: flex-start; gap: var(--s3); }
.status {
  display: inline-block;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  background: var(--surface-2);
  color: var(--muted);
}
.status.ok { background: rgba(61, 220, 132, 0.14); color: var(--good); }
.status.wait { background: rgba(255, 176, 32, 0.14); color: var(--amber); }
.status.bad { background: rgba(255, 77, 106, 0.14); color: var(--warn); }

.hero-earn[data-go] { cursor: pointer; }
.hero-earn .hero-more { position: relative; margin: var(--s3) 0 0; font-size: 13px; font-weight: 700; color: var(--violet); }
.wallet-figs { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.wallet-figs div { padding: var(--s4); border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line-soft); }
.wallet-figs strong { display: block; font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; }
.amount-row { display: flex; gap: var(--s2); align-items: flex-end; }
.amount-row .field { flex: 1; }
.amount-row .btn { flex: none; }

.toast {
  position: fixed;
  left: 50%;
  top: calc(env(safe-area-inset-top) + 12px);
  transform: translate(-50%, -140%);
  width: calc(100% - var(--s4) * 2);
  max-width: calc(var(--shell) - var(--s4) * 2);
  z-index: 100;
  padding: 12px 14px;
  border-radius: var(--r-md);
  background: rgba(22, 18, 32, 0.96);
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.5);
  font-size: 14px;
  font-weight: 600;
  transition: transform 0.3s var(--ease);
}
.toast.is-on { transform: translate(-50%, 0); }
.toast.is-error { border-color: rgba(255, 77, 106, 0.5); color: #ffc2cc; }
.toast-act {
  float: right;
  margin-left: var(--s3);
  padding: 0;
  border: 0;
  background: none;
  color: var(--pink);
  font: inherit;
  text-decoration: underline;
  cursor: pointer;
}

.menu-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 14px var(--s1);
  border-bottom: 1px solid var(--line-soft);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
}
.menu-row:last-child { border-bottom: 0; }
.seat-row.is-on { border-color: var(--violet); background: var(--grad-soft); }

/* ---------------- stage post ---------------- */

a.story-row, a.feature { color: inherit; }
.story-row .art.photo img, .feature img.bg {
  width: 100%; height: 100%; object-fit: cover;
}
.feature img.bg { position: absolute; inset: 0; z-index: 0; opacity: .55; }
.post-media { margin: 0 var(--s4); border-radius: var(--r-lg); overflow: hidden; background: var(--surface); }
.post-media img, .post-media video { display: block; width: 100%; max-height: 420px; object-fit: cover; }
.post-body { padding: var(--s4); }
.post-body h1 { margin: 0 0 var(--s2); font-size: 26px; line-height: 1.12; letter-spacing: -0.02em; }
.post-text { margin: var(--s4) 0 0; font-size: 15px; line-height: 1.6; color: #ddd8ea; white-space: pre-wrap; overflow-wrap: anywhere; }
.engage { display: flex; gap: var(--s2); padding: 0 var(--s4) var(--s2); }
.vote-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 16px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
  font-weight: 800; font-size: 14px;
}
.vote-btn.is-on { background: var(--grad); border-color: transparent; color: #fff; }
.comment { padding: var(--s3) 0; border-bottom: 1px solid var(--line-soft); }
.comment:last-child { border-bottom: 0; }
.comment.d1 { margin-left: 18px; } .comment.d2 { margin-left: 36px; } .comment.d3 { margin-left: 54px; }
.comment-meta { display: flex; gap: var(--s2); align-items: baseline; font-size: 12px; color: var(--faint); }
.comment-meta b { color: var(--ink); font-size: 13px; }
.comment p { margin: 4px 0 0; font-size: 14px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-link { font-size: 12px; font-weight: 700; color: var(--violet); margin-left: auto; }
.composer textarea {
  width: 100%; min-height: 84px; resize: vertical;
  padding: 12px 14px; border-radius: var(--r-md);
  border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font: inherit; font-size: 16px; line-height: 1.4;
}
.composer textarea:focus { outline: 2px solid var(--violet); outline-offset: 1px; }
.composer-row { display: flex; align-items: center; gap: var(--s3); margin-top: var(--s2); }
.composer-row .btn { padding: 11px 20px; margin-left: auto; }
