/* KJPTV — Community page furniture (.cm-*). Linked by Community.html only.
   Hero avatar wall, spotlighted-suggestion stage, vote & pledge board, the
   watch-party film reel, fan-theory threads, weekly poll, #KJPTV wall, the
   leaderboard, house rules and the floating suggestion box.
   Shared pieces (buttons, chips, faq, dt-field, gold-check) stay in site.css. */

/* ============================================================================
   HERO — drifting wall of members behind the headline
   ========================================================================== */
.cm-hero { position: relative; overflow: hidden; padding: calc(var(--nav-height) + 92px) 0 74px; }
.cm-hero-wall { position: absolute; inset: -10% -6%; z-index: 0; }
.cm-hero-wall > * {
  position: absolute;
  animation: cmDrift var(--dur, 26s) var(--ease-out) infinite alternate;
  animation-delay: var(--delay, 0s);
}
@keyframes cmDrift {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(var(--dx, 14px), var(--dy, -18px), 0); }
}
.cm-hero-face { border-radius: 50%; overflow: hidden; background: var(--color-surface-3);
  display: flex; align-items: center; justify-content: center;
  font-size: calc(var(--size-body) * 1.0714); font-weight: 800; color: var(--gold-honey);
  box-shadow: inset 0 2px 6px rgba(0,0,0,0.7); filter: saturate(0.6); }
.cm-hero-face img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
/* Reaction fragments — a real line a member posted, drifting past */
.cm-hero-frag { max-width: 292px; padding: 9px 15px; border-radius: 999px;
  font-size: calc(var(--size-small) * 1.0417); line-height: 1.45; color: var(--text-body);
  background: rgba(17,17,17,0.86); border: 1px solid var(--border-bevel-strong); }
.cm-hero-frag b { color: var(--gold-mustard); font-weight: 700; }
.cm-hero-scrim { position: absolute; inset: 0; z-index: 1;
  background:
    radial-gradient(78% 70% at 8% 34%, rgba(6,6,6,0.97) 0%, rgba(6,6,6,0.86) 46%, rgba(6,6,6,0.42) 100%),
    linear-gradient(180deg, rgba(6,6,6,0.88) 0%, rgba(6,6,6,0.34) 34%, rgba(6,6,6,0.9) 100%); }
.cm-hero .container { position: relative; z-index: 2; }
.cm-hero h1 { max-width: 15ch; font-size: clamp(calc(var(--size-display) * 0.6333), 7.4vw, calc(var(--size-display) * 1.1333)); font-weight: 900; line-height: 0.94; letter-spacing: -0.042em; }
.cm-hero-lede { margin-top: 20px; max-width: 540px; font-size: calc(var(--size-body) * 1.1786); line-height: 1.6; color: var(--text-body); }
.cm-hero-acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.cm-live { display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
  padding: 6px 14px 6px 11px; border-radius: 999px; font-size: calc(var(--size-meta) * 1.0455); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-heading);
  background: rgba(17,17,17,0.8); border: 1px solid var(--border-bevel-strong); }
.cm-live b { color: var(--gold-mustard); }

/* ============================================================================
   SPOTLIGHTED SUGGESTIONS — scattered scene tiles, the focused one plays
   ========================================================================== */
.cm-spot { position: relative; overflow: hidden; }
/* the set itself behind the section, under a two-layer protection scrim so it
   fades to onyx at every edge and the copy stays on black */
.cm-spot-bg { position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(122% 92% at 61% 36%, rgba(6,6,6,0.62) 0%, rgba(6,6,6,0.9) 58%, #060606 100%),
    linear-gradient(180deg, #060606 0%, rgba(6,6,6,0.34) 24%, rgba(6,6,6,0.52) 68%, #060606 100%),
    url('assets/bg-crew-set-3.jpg?v=2e9b3324') center 40% / cover no-repeat; }
.cm-spot > .container { position: relative; z-index: 1; }
.cm-stage { position: relative; margin: 8px 0 0; aspect-ratio: 16 / 8.2; min-height: 480px; }
/* big ghost numeral, like a reel slate behind the scatter */
.cm-ghost { position: absolute; z-index: 0; right: 3%; top: 44%; margin: 0;
  font-size: clamp(calc(var(--size-display) * 3), 24vw, calc(var(--size-display) * 5.5)); font-weight: 900; line-height: 0.8;
  letter-spacing: -0.06em; color: transparent; font-variant-numeric: tabular-nums;
  -webkit-text-stroke: 1px rgba(214,157,56,0.22); pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out); }

.cm-tile { position: absolute; z-index: 1; padding: 0; border: 0; background: none; cursor: pointer;
  transform-origin: center center;
  transition: transform 420ms var(--ease-out), opacity 420ms var(--ease-out); }
.cm-tile-well { display: block; position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: #000 center / cover no-repeat; box-shadow: var(--shadow-matte-lg), inset 0 0 0 1px rgba(255,255,255,0.07); }
.cm-tile-well video, .cm-tile-well img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cm-tile-well video { z-index: 1; }
.cm-tile-well::after { content: ''; position: absolute; inset: 0; z-index: 2;
  background: linear-gradient(180deg, rgba(6,6,6,0.34) 0%, rgba(6,6,6,0) 34%, rgba(6,6,6,0.82) 100%); }
/* Unfocused tiles sit back. Opacity, not filter: a filter over a playing video
   forces a render surface per tile and stalls the page. */
.cm-tile { opacity: 0.46; }
.cm-tile.is-focus { z-index: 4; opacity: 1; transform: scale(1.08); }
.cm-tile:hover { opacity: 0.78; }
.cm-tile.is-focus:hover { opacity: 1; }
.cm-tile.is-focus .cm-tile-well { box-shadow: var(--shadow-matte-lg), var(--gold-glow-strong), inset 0 0 0 1px rgba(255,210,107,0.4); }

/* the avatar pill that floats over the scene */
.cm-pill { position: absolute; z-index: 3; top: -15px; left: 14px;
  display: inline-flex; align-items: center; gap: 9px; max-width: calc(100% - 28px);
  padding: 5px 14px 5px 5px; border-radius: 999px;
  background: rgba(14,14,14,0.96); border: 1px solid var(--border-bevel-strong);
  box-shadow: var(--shadow-matte), var(--bevel-highlight); }
.cm-pill-face { position: relative; flex: none; width: 30px; height: 30px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: var(--size-meta); font-weight: 800; color: var(--gold-mustard);
  background: var(--color-surface-3); box-shadow: var(--well-inset); }
.cm-pill-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0%; }
.cm-pill-at { font-size: var(--size-small); font-weight: 700; color: var(--gold-mustard); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-tile.is-focus .cm-pill { border-color: var(--border-gold); }

/* scene label along the bottom of the tile */
.cm-tile-cap { position: absolute; z-index: 3; left: 0; right: 0; bottom: 0; padding: 12px 14px; text-align: left; }
.cm-tile-scene { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  font-size: calc(var(--size-body) * 0.9643); line-height: 1.28; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
.cm-tile-meta { display: block; margin-top: 3px; font-size: calc(var(--size-meta) * 0.9545); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.62); }
.cm-tile-onair { position: absolute; z-index: 3; top: 12px; right: 12px;
  padding: 4px 10px; border-radius: 999px; font-size: calc(var(--size-meta) * 0.8636); font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: #2a1e08;
  background: var(--gold-metallic-135); box-shadow: var(--bevel-highlight); }

/* the read-out under the stage: what was sent, what it became */
.cm-read { display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: start;
  margin-top: 34px; padding: 38px 44px 40px; border-radius: 18px;
  background: var(--color-surface-1); border: 1px solid var(--border-bevel-strong);
  box-shadow: var(--bevel-highlight), var(--shadow-matte); }
.cm-read-q { margin: 0; font-size: calc(var(--size-subhead) * 1.1111); line-height: 1.42; font-weight: 600; color: var(--text-heading); text-wrap: pretty; }
.cm-read-q::before { content: '\201C'; color: var(--gold-honey); }
.cm-read-q::after { content: '\201D'; color: var(--gold-honey); }
.cm-read-who { display: flex; align-items: center; gap: 11px; margin-top: 18px; }
.cm-read-who .cm-pill-face { width: 34px; height: 34px; font-size: var(--size-small); }
.cm-read-name { font-size: calc(var(--size-body) * 0.9643); font-weight: 700; color: var(--text-heading); }
.cm-read-name span { display: block; margin-top: 2px; font-size: calc(var(--size-meta) * 1.0455); font-weight: 600; color: var(--text-muted); }
.cm-read-note { font-size: calc(var(--size-body) * 1.0357); line-height: 1.62; color: var(--text-body); }
.cm-read-h { display: block; margin-bottom: 9px; font-size: calc(var(--size-meta) * 0.9545); font-weight: 700;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-muted); }
.cm-read-acts { display: flex; flex-wrap: wrap; gap: 10px 18px; align-items: center; margin-top: 20px; }

/* ============================================================================
   VOTE & PLEDGE BOARD
   ========================================================================== */
.cm-vote-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px;
  padding: 14px 16px; border-radius: var(--radius-card); background: var(--color-surface-2);
  border: 1px solid var(--border-bevel); box-shadow: var(--bevel-highlight); }
.cm-vote-bar .fb-count { margin-left: auto; }
.cm-vote-bar .chip-filters { flex-wrap: wrap; min-width: 0; }
.cm-ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.cm-idea { display: flex; flex-direction: column; gap: 16px; padding: 22px 24px; border-radius: var(--radius-card);
  background: var(--color-surface-1); border: 1px solid var(--border-bevel-strong);
  box-shadow: var(--bevel-highlight);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.cm-idea:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.cm-idea.is-own { border-color: var(--border-gold); box-shadow: var(--bevel-highlight), var(--gold-glow); }
/* Closed: it is in the show already, so the card greys back out of the run —
   done with its own layers, never a blanket opacity (that eats the labels). */
.cm-idea.is-closed { background: #0e0d0d; border-color: var(--border-bevel); box-shadow: var(--bevel-highlight); }
.cm-idea.is-closed:hover { border-color: var(--border-bevel); transform: none; }
.cm-idea.is-closed .cm-idea-txt, .cm-idea.is-closed .cm-meter-n { color: var(--text-body); }
.cm-idea.is-closed .cm-track-fill { background: linear-gradient(180deg, #4b4848 0%, #6f6c6c 48%, #383636 100%); box-shadow: none; }
.cm-idea-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.cm-tag { padding: 4px 11px; border-radius: 999px; font-size: calc(var(--size-meta) * 0.9545); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-body);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-bevel-strong); }
.cm-tag.is-title { color: var(--text-heading); }
/* A proposed show or film, not in the catalog yet. */
.cm-tag.is-title.is-new { display: inline-flex; align-items: center; gap: 6px;
  color: var(--gold-mustard); border-color: var(--border-gold); }
.cm-tag.is-title.is-new svg { width: 12px; height: 12px; }
.cm-st { padding: 4px 11px; border-radius: 999px; font-size: calc(var(--size-meta) * 0.9545); font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; }
.cm-st.open { color: var(--text-muted); background: rgba(255,255,255,0.03); border: 1px solid var(--border-bevel-strong); }
.cm-st.consider { color: var(--gold-mustard); background: rgba(255,210,107,0.08); border: 1px solid var(--border-gold); }
.cm-st.greenlit { color: #2a1e08; background: var(--gold-metallic-135); box-shadow: var(--bevel-highlight); }
.cm-st.closed { color: #0b0b0b; background: #A8A5A5; }
.cm-idea-txt { margin: 0; font-size: calc(var(--size-body) * 1.1071); line-height: 1.56; color: var(--text-heading); text-wrap: pretty; }
.cm-idea-who { display: flex; align-items: center; gap: 10px; }
.cm-idea-who .cm-pill-face { width: 30px; height: 30px; }
.cm-idea-at { font-size: calc(var(--size-small) * 1.0417); font-weight: 700; color: var(--gold-mustard); }
.cm-idea-on { margin-left: auto; font-size: calc(var(--size-meta) * 1.0455); color: var(--text-muted); white-space: nowrap; }
/* pledge meter */
.cm-meter { margin-top: 2px; }
.cm-meter-row { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.cm-meter-n { font-size: var(--size-body); font-weight: 800; color: var(--text-heading); font-variant-numeric: tabular-nums; }
.cm-meter-n span { font-weight: 600; color: var(--text-muted); }
.cm-meter-b { font-size: calc(var(--size-meta) * 1.0455); color: var(--text-muted); white-space: nowrap; }
.cm-track { height: 8px; border-radius: 999px; background: var(--color-well); box-shadow: var(--well-inset); overflow: hidden; }
/* The fill is a <span>, so it needs display:block or width does nothing. */
.cm-track-fill { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--gold-bar);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35); transition: width 900ms var(--ease-out); }
.cm-idea-foot { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 4px; }
.cm-up { display: inline-flex; align-items: center; gap: 8px; padding: 9px 15px; border-radius: 999px;
  font: inherit; font-size: calc(var(--size-small) * 1.0833); font-weight: 700; color: var(--gold-mustard); cursor: pointer;
  background: rgba(255,210,107,0.06); border: 1px solid var(--border-gold); box-shadow: var(--glass-edge);
  transition: background var(--dur-fast) var(--ease-out), color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.cm-up svg { width: 15px; height: 15px; }
.cm-up:hover { background: rgba(255,210,107,0.16); color: #fff; transform: translateY(-2px); }
.cm-up.is-on { color: #2a1e08; background: var(--gold-metallic-135); border-color: transparent; box-shadow: var(--bevel-highlight); }
.cm-up-n { font-variant-numeric: tabular-nums; }
/* a closed idea keeps its final count, as a read-only pill */
.cm-up.is-static, .cm-up.is-static:hover { color: var(--text-body); background: rgba(255,255,255,0.03);
  border-color: var(--border-bevel-strong); box-shadow: none; cursor: default; transform: none; }
body:not(.view-paid) .cm-up.is-static { display: inline-flex; }
.cm-made { display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
  font-size: calc(var(--size-small) * 1.0417); font-weight: 700; color: var(--text-body); }
.cm-made svg { width: 15px; height: 15px; }
.cm-backed + .cm-made { margin-left: 0; }
.cm-back { margin-left: auto; }
/* the inline pledge row that opens under a card */
.cm-pledge { display: none; align-items: center; flex-wrap: wrap; gap: 10px; padding: 14px 16px; border-radius: calc(var(--radius-card) * 0.75);
  background: var(--color-surface-3); box-shadow: var(--well-inset); }
.cm-pledge.is-open { display: flex; }
.cm-pledge-l { font-size: var(--size-meta); font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); }
.cm-amt { padding: 8px 15px; border-radius: 999px; font: inherit; font-size: calc(var(--size-small) * 1.0833); font-weight: 700;
  color: var(--text-body); cursor: pointer; background: var(--glass-sheen), var(--color-surface-2);
  border: 1px solid var(--border-bevel-strong); font-variant-numeric: tabular-nums; }
.cm-amt:hover { color: var(--text-heading); }
.cm-amt.is-on { color: #2a1e08; background: var(--gold-metallic-135); border-color: transparent; box-shadow: var(--bevel-highlight); }
/* the last pill opens a field: any amount, never under the $10 floor */
.cm-amt-own { display: inline-flex; align-items: center; gap: 1px; padding: 0 14px 0 13px; border-radius: 999px;
  background: var(--color-well); border: 1px solid var(--border-gold); box-shadow: var(--well-inset); }
.cm-amt-own[hidden] { display: none; }
.cm-amt-cur { font-size: calc(var(--size-small) * 1.0833); font-weight: 700; color: var(--gold-mustard); }
.cm-amt-in { width: 58px; padding: 8px 0; font: inherit; font-size: calc(var(--size-small) * 1.0833); font-weight: 700;
  color: var(--text-heading); background: none; border: 0; outline: none;
  font-variant-numeric: tabular-nums; -moz-appearance: textfield; appearance: textfield; }
.cm-amt-in::placeholder { color: var(--text-muted); font-weight: 600; }
.cm-amt-in::-webkit-outer-spin-button, .cm-amt-in::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cm-pledge .btn { margin-left: auto; }
.cm-pledge-note { flex: 1 1 100%; font-size: calc(var(--size-meta) * 1.0455); line-height: 1.5; color: var(--text-muted); }
.cm-backed { display: inline-flex; align-items: center; gap: 8px; margin-left: auto;
  font-size: calc(var(--size-small) * 1.0417); font-weight: 700; color: var(--gold-mustard); }
.cm-backed svg { width: 15px; height: 15px; }
/* members-only controls */
body:not(.view-paid) .cm-up, body:not(.view-paid) .cm-back { display: none; }
.cm-guest { display: none; margin-left: auto; font-size: calc(var(--size-small) * 1.0417); font-weight: 600; }
body:not(.view-paid) .cm-guest { display: inline-flex; }

/* deadline line — a target date, so it rides with the funding row rather than
   the status pill. Nothing here shuts the pledge window. */
.cm-dead { display: flex; align-items: center; gap: 8px; margin-top: 11px; }
.cm-dead > svg { flex: none; width: 14px; height: 14px; color: var(--text-muted); }
.cm-dead-d { font-size: calc(var(--size-meta) * 1.0455); color: var(--text-muted); }
.cm-dead-d b { font-weight: 700; color: var(--text-body); }
.cm-dead-n { margin-left: auto; padding: 3px 10px; border-radius: 999px; font-size: calc(var(--size-meta) * 0.9091); font-weight: 800;
  letter-spacing: 0.08em; text-transform: uppercase; white-space: nowrap; color: var(--text-body);
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-bevel-strong); }
.cm-dead-n.is-soon { color: var(--gold-mustard); background: rgba(255,210,107,0.08); border-color: var(--border-gold); }
.cm-dead-n.is-past { color: var(--text-muted); }
/* the one line that says the date is a target */
.cm-dnote { display: flex; align-items: center; gap: 10px; margin: -8px 0 20px; padding: 12px 15px;
  border-radius: 12px; font-size: calc(var(--size-small) * 1.0417); line-height: 1.5; color: var(--text-body);
  background: var(--color-surface-1); border: 1px solid var(--border-bevel); box-shadow: var(--bevel-highlight); }
.cm-dnote svg { flex: none; width: 15px; height: 15px; color: var(--gold-mustard); }
.cm-manage { font-size: var(--size-small); font-weight: 700; color: var(--text-muted); white-space: nowrap; }
.cm-manage:hover { color: var(--gold-mustard); }

/* ============================================================================
   WATCH PARTY REPLAYS — the film reel
   ========================================================================== */
.cm-reel { position: relative; }
.cm-strip { position: relative; overflow: hidden; background: #050505;
  box-shadow: var(--shadow-matte-lg), 0 0 34px rgba(214,157,56,0.14); }
/* full-bleed: the strip runs past the container like film through a gate */
.cm-strip-bleed { position: relative; left: 50%; width: 100vw; transform: translateX(-50%); }
/* gold sprocket edges — crisp gold, never graded into the black.
   The holes pan by TRANSFORM, not background-position: a background-position
   animation repaints the full-bleed strip on every frame. */
.cm-edge { position: relative; height: 34px; overflow: hidden; background: var(--gold-bar); }
.cm-edge::before { content: ''; position: absolute; left: -46px; right: -46px; top: 8px; height: 18px;
  background: repeating-linear-gradient(90deg, #050505 0 20px, transparent 20px 46px);
  animation: cmPerf 5.75s linear infinite; }
.cm-edge::after { content: ''; position: absolute; left: -46px; right: -46px; height: 3px;
  background: repeating-linear-gradient(90deg, rgba(5,5,5,0.72) 0 11px, transparent 11px 20px);
  animation: cmPerfThin 2.5s linear infinite; }
.cm-edge.is-top { box-shadow: inset 0 1px 0 rgba(255,244,207,0.6); }
.cm-edge.is-top::after { bottom: 1px; }
.cm-edge.is-bottom { box-shadow: inset 0 -1px 0 rgba(255,244,207,0.6); }
.cm-edge.is-bottom::after { top: 1px; }
/* Both pan to the RIGHT; each keyframe travels exactly one repeat of its own
   pattern (46px squares, 20px dashes) so neither jumps on loop. */
@keyframes cmPerf { from { transform: translateX(-46px); } to { transform: translateX(0); } }
@keyframes cmPerfThin { from { transform: translateX(-20px); } to { transform: translateX(0); } }
/* The gate is a real scroller: content starts at the content edge, the user can
   drag the strip themselves, and the auto-pan is just scrollLeft. */
.cm-gate { padding: 16px 0; background: #050505; overflow-x: auto; overflow-y: hidden;
  scrollbar-width: none; -ms-overflow-style: none; overscroll-behavior-x: contain; }
.cm-gate::-webkit-scrollbar { display: none; height: 0; }
.cm-track-reel { display: flex; gap: 16px; padding: 0 8px; width: max-content; }
.cm-strip.is-held .cm-edge::before, .cm-strip.is-held .cm-edge::after { animation-play-state: paused; }

.cm-frame { position: relative; flex: none; width: 362px; height: 272px; overflow: hidden;
  border-radius: 8px; background: #000; text-align: left;
  box-shadow: inset 0 0 0 1px rgba(255,210,107,0.28); }
.cm-frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  opacity: 0.5; transition: opacity 420ms var(--ease-out), transform 620ms var(--ease-out); }
.cm-frame:hover > img { opacity: 0.72; transform: scale(1.04); }
.cm-frame::after { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(6,6,6,0.78) 0%, rgba(6,6,6,0.12) 38%, rgba(6,6,6,0.92) 100%); }
.cm-frame-meta { position: absolute; z-index: 2; top: 13px; left: 15px; right: 15px;
  display: flex; align-items: center; gap: 8px; font-size: calc(var(--size-meta) * 0.9091); font-weight: 800;
  letter-spacing: 0.11em; text-transform: uppercase; color: rgba(255,255,255,0.72); }
.cm-frame-meta b { color: var(--gold-mustard); }
.cm-frame-heads { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.cm-frame-heads svg { width: 13px; height: 13px; }
.cm-frame-body { position: absolute; z-index: 2; left: 15px; right: 15px; bottom: 14px; }
.cm-frame-line { margin: 0 0 11px; font-size: calc(var(--size-body) * 1.0357); line-height: 1.45; font-weight: 600; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cm-frame-who { display: flex; align-items: center; gap: 9px; }
.cm-frame-who .cm-pill-face { width: 26px; height: 26px; font-size: calc(var(--size-meta) * 0.9091); }
.cm-frame-at { font-size: calc(var(--size-meta) * 1.0455); font-weight: 700; color: var(--gold-mustard); }
.cm-frame-play { margin-left: auto; display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%; background: var(--gold-knob); color: #2a1e08;
  box-shadow: var(--bevel-highlight), var(--gold-glow-strong);
  transition: transform var(--dur-base) var(--ease-out); }
.cm-frame-play svg { width: 15px; height: 15px; margin-left: 2px; }
.cm-frame:hover .cm-frame-play { transform: scale(1.1); }

/* ============================================================================
   FAN THEORIES — threaded
   ========================================================================== */
.cm-thr-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-bottom: 24px; }
.cm-threads { display: flex; flex-direction: column; gap: 14px; }
.cm-thread { border-radius: var(--radius-card); background: var(--color-surface-1);
  border: 1px solid var(--border-bevel-strong); box-shadow: var(--bevel-highlight); overflow: hidden;
  transition: border-color var(--dur-base) var(--ease-out); }
.cm-thread:hover { border-color: var(--border-bevel-strong); }
.cm-post { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 15px; padding: 20px 24px; }
.cm-post .cm-pill-face { width: 42px; height: 42px; font-size: calc(var(--size-small) * 1.0833); }
.cm-post-head { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; margin-bottom: 8px; }
.cm-post-name { font-size: var(--size-body); font-weight: 800; color: var(--text-heading); }
.cm-post-at { font-size: calc(var(--size-small) * 1.0417); font-weight: 700; color: var(--gold-mustard); }
.cm-post-on { font-size: calc(var(--size-meta) * 1.0455); color: var(--text-muted); }
.cm-post-txt { margin: 0; font-size: calc(var(--size-body) * 1.0714); line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.cm-post-acts { display: flex; align-items: center; gap: 8px; margin-top: 13px; }
.cm-vote-sm { display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 999px;
  font: inherit; font-size: var(--size-small); font-weight: 700; color: var(--text-body); cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-bevel-strong);
  transition: color var(--dur-fast) var(--ease-out), border-color var(--dur-fast) var(--ease-out); }
.cm-vote-sm svg { width: 13px; height: 13px; }
.cm-vote-sm:hover { color: var(--gold-mustard); border-color: var(--border-gold); }
.cm-vote-sm.is-on { color: var(--gold-mustard); border-color: var(--border-gold); background: rgba(255,210,107,0.08); }
.cm-reply-btn { padding: 6px 12px; border-radius: 999px; font: inherit; font-size: var(--size-small); font-weight: 700;
  color: var(--text-muted); background: none; border: 1px solid transparent; cursor: pointer; }
.cm-reply-btn:hover { color: var(--gold-mustard); }
/* replies: a neutral threading rail, no status colour */
.cm-reps { border-top: 1px solid var(--border-bevel); background: rgba(255,255,255,0.012); }
.cm-reps[hidden] { display: none; }
.cm-rep { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 13px;
  padding: 16px 24px 16px 62px; }
.cm-rep .cm-pill-face { width: 34px; height: 34px; font-size: var(--size-meta); }
.cm-rep::before { content: ''; position: absolute; left: 44px; top: 0; bottom: 0; width: 1px; background: var(--border-bevel-strong); }
.cm-rep:last-child::before { bottom: 50%; }
.cm-rep .cm-post-txt { font-size: var(--size-body); }
.cm-thread-foot { display: flex; align-items: center; gap: 12px; padding: 14px 24px;
  border-top: 1px solid var(--border-bevel); }
.cm-more-reps { font: inherit; font-size: calc(var(--size-small) * 1.0417); font-weight: 700; color: var(--gold-mustard);
  background: none; border: 0; padding: 0; cursor: pointer; }
.cm-more-reps:hover { color: var(--gold-catchlight); }
/* the reply composer, members only */
.cm-reply-box { display: none; gap: 10px; padding: 14px 24px 18px 62px; }
body.view-paid .cm-reply-box.is-open { display: flex; }
.cm-reply-box .dt-input { flex: 1; }
.cm-thr-locked { display: none; padding: 14px 24px; font-size: calc(var(--size-small) * 1.0417); color: var(--text-muted); border-top: 1px solid var(--border-bevel); }
body:not(.view-paid) .cm-thr-locked { display: block; }
body:not(.view-paid) .cm-reply-btn { display: none; }
/* spoiler cover — a control sitting over the blurred text, not a sheet across
   it. The wrapper is click-through so the thread's upvote and reply stay live. */
.cm-sp { position: relative; }
.cm-sp.is-hidden .cm-post-txt { filter: blur(7px); opacity: 0.5; user-select: none; }
.cm-sp-flag { position: absolute; z-index: 2; left: 0; right: 0; top: 50%;
  display: flex; align-items: center; justify-content: center;
  transform: translateY(-50%); pointer-events: none; }
.cm-sp.is-open .cm-sp-flag { display: none; }
.cm-sp-btn { flex: none; align-self: center; pointer-events: auto;
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px;
  font: inherit; font-size: var(--size-small); font-weight: 700; color: var(--gold-mustard); cursor: pointer;
  background: rgba(10,10,10,0.92); border: 1px solid var(--border-gold); box-shadow: var(--shadow-matte); }
.cm-sp-btn svg { width: 14px; height: 14px; }
.cm-sp-btn:hover { color: #fff; background: rgba(255,210,107,0.16); }
.cm-sp-tag { padding: 3px 9px; border-radius: 999px; font-size: calc(var(--size-meta) * 0.8636); font-weight: 800;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold-honey);
  background: rgba(214,157,56,0.1); border: 1px solid var(--border-bevel-strong); }

/* ============================================================================
   WEEKLY POLL
   ========================================================================== */
.cm-poll { position: relative; overflow: hidden; padding: 38px 40px; border-radius: 20px;
  background: var(--color-surface-1); border: 1px solid var(--border-gold);
  box-shadow: var(--bevel-highlight), var(--shadow-matte), var(--gold-glow); }
.cm-poll-bg { position: absolute; inset: 0; z-index: 0; opacity: 0.045;
  background: url('assets/brand-pattern.png?v=59e9ff10') center / 260px repeat; }
.cm-poll-in { position: relative; z-index: 1; display: grid; grid-template-columns: 0.95fr 1.25fr; gap: 46px; align-items: start; }
.cm-poll h2 { font-size: clamp(calc(var(--size-heading) * 0.75), 2.6vw, var(--size-heading)); font-weight: 800; line-height: 1.12; }
.cm-poll-note { margin-top: 14px; font-size: calc(var(--size-body) * 0.9643); line-height: 1.6; color: var(--text-muted); }
.cm-poll-total { margin-top: 20px; font-size: var(--size-small); font-weight: 700; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--gold-mustard); font-variant-numeric: tabular-nums; }
.cm-opts { display: flex; flex-direction: column; gap: 10px; }
.cm-opt { position: relative; overflow: hidden; width: 100%; padding: 15px 18px; border-radius: 12px;
  text-align: left; font: inherit; cursor: pointer; background: var(--color-surface-3);
  border: 1px solid var(--border-bevel-strong); box-shadow: var(--bevel-highlight);
  transition: border-color var(--dur-fast) var(--ease-out), transform var(--dur-fast) var(--ease-out); }
.cm-opt:hover { border-color: var(--border-gold); transform: translateY(-1px); }
.cm-opt-bar { position: absolute; inset: 0 auto 0 0; width: 0; z-index: 0;
  background: linear-gradient(90deg, rgba(214,157,56,0.24), rgba(214,157,56,0.07));
  transition: width 820ms var(--ease-out); }
.cm-opt-row { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; }
.cm-opt-t { flex: 1; min-width: 0; font-size: calc(var(--size-body) * 1.0357); font-weight: 600; color: var(--text-heading); }
.cm-opt-pct { font-size: var(--size-body); font-weight: 800; color: var(--gold-mustard); font-variant-numeric: tabular-nums; opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
.cm-poll.is-voted .cm-opt-pct { opacity: 1; }
.cm-poll.is-voted .cm-opt { cursor: default; }
.cm-poll.is-voted .cm-opt:hover { transform: none; border-color: var(--border-bevel-strong); }
.cm-opt.is-mine { border-color: var(--border-gold); }
.cm-opt-mine { display: none; flex: none; padding: 3px 9px; border-radius: 999px; font-size: calc(var(--size-meta) * 0.8636); font-weight: 800;
  letter-spacing: 0.1em; text-transform: uppercase; color: #2a1e08; background: var(--gold-metallic-135); }
.cm-opt.is-mine .cm-opt-mine { display: inline-block; }
.cm-poll-locked { margin-top: 16px; font-size: calc(var(--size-small) * 1.0417); color: var(--text-muted); }
body.view-paid .cm-poll-locked { display: none; }
body:not(.view-paid) .cm-opt { pointer-events: none; opacity: 0.7; }

/* ============================================================================
   #KJPTV WALL — EmbedSocial-shaped widget in brand colours
   ========================================================================== */
.cm-ugc-bar { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; padding: 13px 16px;
  border-radius: 14px; background: var(--color-surface-1);
  border: 1px solid var(--border-bevel-strong); box-shadow: var(--bevel-highlight); }
.cm-ugc-mark { flex: none; width: 44px; height: 44px; border-radius: 50%; overflow: hidden;
  display: flex; align-items: center; justify-content: center; background: var(--color-surface-3);
  box-shadow: var(--well-inset), 0 0 0 2px rgba(214,157,56,0.4); }
.cm-ugc-mark img { width: 30px; height: auto; }
.cm-ugc-id { min-width: 0; }
.cm-ugc-tag { display: block; font-size: calc(var(--size-body) * 1.1429); font-weight: 800; letter-spacing: -0.01em; color: var(--text-heading); }
.cm-ugc-sub { display: block; margin-top: 2px; font-size: var(--size-small); color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cm-ugc-bar .btn { margin-left: auto; }
.cm-ugc-by { display: inline-flex; align-items: center; gap: 7px; font-size: calc(var(--size-meta) * 0.9545); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); white-space: nowrap; }
.cm-ugc-by svg { width: 13px; height: 13px; color: var(--gold-honey); }
/* masonry — explicit columns, not CSS multicol: `columns` with aspect-ratio
   children and break-inside:avoid sends column balancing into a loop that
   never settles. JS packs the shortest column. */
.cm-wall { display: grid; grid-template-columns: repeat(var(--cm-cols, 4), minmax(0, 1fr));
  gap: 14px; align-items: start; }
.cm-wall-col { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.cm-ugc-tile { position: relative; display: block; width: 100%; padding: 0; overflow: hidden;
  border-radius: 14px; background: var(--color-surface-2); cursor: pointer; text-align: left;
  border: 1px solid var(--border-bevel); box-shadow: var(--bevel-highlight);
  transition: border-color var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out); }
.cm-ugc-tile:hover { border-color: var(--border-gold); transform: translateY(-2px); }
.cm-ugc-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 620ms var(--ease-out); }
.cm-ugc-tile:hover img { transform: scale(1.04); }
.cm-ugc-tile.h1 { aspect-ratio: 1 / 1; }
.cm-ugc-tile.h2 { aspect-ratio: 4 / 5; }
.cm-ugc-tile.h3 { aspect-ratio: 2 / 3; }
.cm-ugc-ig { position: absolute; z-index: 3; top: 11px; right: 11px; display: inline-flex;
  color: #fff; opacity: 0.86; filter: drop-shadow(0 2px 5px rgba(0,0,0,0.7)); }
.cm-ugc-ig svg { width: 17px; height: 17px; }
.cm-ugc-vid { position: absolute; z-index: 3; top: 11px; left: 11px; display: inline-flex;
  align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 50%;
  background: rgba(6,6,6,0.66); color: #fff; backdrop-filter: blur(4px); }
.cm-ugc-vid svg { width: 12px; height: 12px; margin-left: 1px; }
.cm-ugc-foot { position: absolute; z-index: 2; inset: auto 0 0 0; padding: 26px 13px 12px;
  background: linear-gradient(180deg, rgba(6,6,6,0) 0%, rgba(6,6,6,0.86) 62%); }
.cm-ugc-at { font-size: var(--size-small); font-weight: 700; color: var(--gold-mustard); }
/* hover overlay: caption + counts, the EmbedSocial pattern */
.cm-ugc-over { position: absolute; inset: 0; z-index: 4; display: flex; flex-direction: column;
  justify-content: flex-end; gap: 12px; padding: 16px; opacity: 0;
  background: rgba(6,6,6,0.9);
  transition: opacity var(--dur-base) var(--ease-out); }
.cm-ugc-tile:hover .cm-ugc-over, .cm-ugc-tile:focus-visible .cm-ugc-over { opacity: 1; }
.cm-ugc-cap { font-size: calc(var(--size-small) * 1.0833); line-height: 1.5; color: #fff;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.cm-ugc-nums { display: flex; align-items: center; gap: 16px; font-size: var(--size-small); font-weight: 700;
  color: rgba(255,255,255,0.86); font-variant-numeric: tabular-nums; }
.cm-ugc-nums span { display: inline-flex; align-items: center; gap: 6px; }
.cm-ugc-nums svg { width: 14px; height: 14px; }

/* lightbox */
.cm-lb { position: fixed; inset: 0; z-index: 205; display: none; align-items: center; justify-content: center; padding: 40px 20px; }
.cm-lb.is-open { display: flex; }
.cm-lb-back { position: absolute; inset: 0; background: rgba(3,3,3,0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.cm-lb-dialog { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) 366px;
  width: 100%; max-width: 1000px; max-height: 84vh; overflow: hidden; border-radius: 18px;
  background: var(--color-surface-1); border: 1px solid var(--border-bevel-strong); box-shadow: var(--shadow-matte-lg); }
.cm-lb-media { position: relative; background: #000; min-height: 380px; }
.cm-lb-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.cm-lb-side { display: flex; flex-direction: column; gap: 16px; padding: 24px; overflow-y: auto; }
.cm-lb-who { display: flex; align-items: center; gap: 12px; }
.cm-lb-who .cm-pill-face { width: 40px; height: 40px; }
.cm-lb-name { font-size: var(--size-body); font-weight: 800; color: var(--text-heading); }
.cm-lb-name span { display: block; margin-top: 2px; font-size: calc(var(--size-small) * 1.0417); font-weight: 700; color: var(--gold-mustard); }
.cm-lb-cap { font-size: calc(var(--size-body) * 1.0357); line-height: 1.6; color: var(--text-body); text-wrap: pretty; }
.cm-lb-meta { display: flex; align-items: center; gap: 18px; font-size: calc(var(--size-small) * 1.0417); font-weight: 700;
  color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cm-lb-meta span { display: inline-flex; align-items: center; gap: 6px; }
.cm-lb-meta svg { width: 14px; height: 14px; }
.cm-lb-side .btn { margin-top: auto; }
.cm-lb-x { position: absolute; z-index: 3; top: 12px; right: 12px; display: inline-flex; align-items: center;
  justify-content: center; width: 34px; height: 34px; border-radius: 50%; color: var(--text-heading);
  background: rgba(6,6,6,0.7); border: 1px solid var(--border-bevel-strong); cursor: pointer; }
.cm-lb-x:hover { color: var(--gold-mustard); border-color: var(--border-gold); }
.cm-lb-nav { position: absolute; z-index: 3; top: 50%; transform: translateY(-50%);
  display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
  border-radius: 50%; color: #fff; background: rgba(6,6,6,0.66); border: 1px solid var(--border-bevel-strong); cursor: pointer; }
.cm-lb-nav:hover { color: var(--gold-mustard); border-color: var(--border-gold); }
.cm-lb-nav svg { width: 18px; height: 18px; }
.cm-lb-nav.is-prev { left: 12px; }
.cm-lb-nav.is-next { left: auto; right: 386px; }

/* ============================================================================
   LEADERBOARD
   ========================================================================== */
.cm-lead-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.cm-lead-col { padding: 24px; border-radius: var(--radius-card); background: var(--color-surface-1);
  border: 1px solid var(--border-bevel-strong); box-shadow: var(--bevel-highlight); }
.cm-lead-head { display: flex; align-items: center; gap: 13px; padding-bottom: 16px;
  margin-bottom: 8px; border-bottom: 1px solid var(--border-bevel); }
.cm-lead-badge { flex: none; width: 46px; height: 46px; object-fit: contain; }
.cm-lead-h { font-size: calc(var(--size-body) * 1.0714); font-weight: 800; color: var(--text-heading); letter-spacing: -0.015em; }
.cm-lead-h span { display: block; margin-top: 3px; font-size: var(--size-meta); font-weight: 700;
  letter-spacing: 0.11em; text-transform: uppercase; color: var(--text-muted); }
.cm-lead-row { display: grid; grid-template-columns: 22px 38px minmax(0, 1fr) auto; gap: 12px;
  align-items: center; padding: 11px 0; border-bottom: 1px solid var(--border-bevel); }
.cm-lead-row:last-child { border-bottom: 0; padding-bottom: 0; }
.cm-lead-rank { font-size: calc(var(--size-small) * 1.0833); font-weight: 800; color: var(--text-muted); font-variant-numeric: tabular-nums; }
.cm-lead-row.is-first .cm-lead-rank { color: var(--gold-mustard); }
.cm-lead-row .cm-pill-face { width: 38px; height: 38px; font-size: var(--size-small); }
.cm-lead-id { min-width: 0; }
.cm-lead-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: calc(var(--size-body) * 0.9643); font-weight: 700; color: var(--text-heading); }
.cm-lead-at { display: block; margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: calc(var(--size-meta) * 1.0455); font-weight: 700; color: var(--gold-mustard); }
.cm-lead-n { font-size: calc(var(--size-body) * 1.0714); font-weight: 800; color: var(--text-heading); font-variant-numeric: tabular-nums; }
.cm-lead-n span { display: block; margin-top: 2px; font-size: calc(var(--size-meta) * 0.8636); font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-muted); text-align: right; }

/* ============================================================================
   HOUSE RULES
   ========================================================================== */
.cm-rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 46px; }
.cm-rule { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 16px;
  padding: 16px 0; border-top: 1px solid var(--border-bevel); }
.cm-rule-n { font-size: var(--size-small); font-weight: 800; color: var(--gold-honey); font-variant-numeric: tabular-nums; padding-top: 3px; }
.cm-rule h4 { font-size: calc(var(--size-body) * 1.0357); font-weight: 800; letter-spacing: -0.01em; }
.cm-rule p { margin-top: 6px; font-size: calc(var(--size-body) * 0.9643); line-height: 1.6; color: var(--text-muted); }

/* ============================================================================
   FLOATING SUGGESTION BOX — bottom right of the viewport
   ========================================================================== */
.cm-fab { position: fixed; z-index: 155; right: 22px; bottom: 22px;
  display: inline-flex; align-items: center; gap: 11px; padding: 13px 22px 13px 15px;
  border-radius: 999px; font: inherit; font-size: var(--size-body); font-weight: 800; letter-spacing: -0.01em;
  color: #2a1e08; cursor: pointer; background: var(--gold-metallic-135);
  box-shadow: var(--shadow-matte-lg), var(--gold-glow-strong), var(--bevel-highlight);
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out); }
.cm-fab svg { width: 18px; height: 18px; }
.cm-fab:hover { transform: translateY(-3px); }
.cm-fab.is-hidden { opacity: 0; transform: translateY(10px) scale(0.96); pointer-events: none; }
.cm-fab-count { padding: 2px 8px; border-radius: 999px; font-size: var(--size-meta); font-weight: 800;
  background: rgba(42,30,8,0.16); font-variant-numeric: tabular-nums; }

.cm-scrim { position: fixed; inset: 0; z-index: 160; background: rgba(6,6,6,0.6);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  opacity: 0; pointer-events: none; transition: opacity var(--dur-base) var(--ease-out); }
.cm-scrim.is-open { opacity: 1; pointer-events: auto; }

.cm-box { position: fixed; z-index: 165; right: 22px; bottom: 22px; width: 428px;
  max-height: min(80vh, 780px); display: flex; flex-direction: column; overflow: hidden;
  border-radius: 20px; background: var(--color-surface-1);
  border: 1px solid var(--border-gold); box-shadow: var(--shadow-matte-lg), var(--gold-glow);
  opacity: 0; transform: translateY(18px) scale(0.97); transform-origin: bottom right; pointer-events: none;
  transition: opacity var(--dur-base) var(--ease-out), transform 300ms var(--ease-out); }
.cm-box.is-open { opacity: 1; transform: none; pointer-events: auto; }
.cm-box-head { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 16px;
  border-bottom: 1px solid var(--border-bevel); }
.cm-box-head h3 { font-size: var(--size-subhead); font-weight: 800; line-height: 1.2; }
.cm-box-head p { margin-top: 6px; font-size: calc(var(--size-small) * 1.0417); line-height: 1.55; color: var(--text-muted); }
.cm-box-x { flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; border-radius: 50%; color: var(--text-body); cursor: pointer;
  background: rgba(255,255,255,0.03); border: 1px solid var(--border-bevel-strong); }
.cm-box-x svg { width: 15px; height: 15px; }
.cm-box-x:hover { color: var(--gold-mustard); border-color: var(--border-gold); }
.cm-box-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 22px; }
/* The shared title type-ahead at form-field width, dressed as a .dt-input */
.cm-form .dir-ac { flex: none; width: 100%; max-width: none; padding: 0 14px; border-radius: 10px;
  background: rgba(255,255,255,0.02); border: 1px solid var(--border-bevel-strong); }
.cm-form .dir-ac-input { padding: 12px 0; font-size: var(--size-body); font-weight: 500; }
.cm-form .dir-ac-input::placeholder { color: var(--text-muted); font-weight: 500; }
.cm-form { display: flex; flex-direction: column; gap: 15px; }
.cm-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.cm-form .dir-ac.is-new::before { content: 'New'; flex: none; padding: 3px 7px; border-radius: 999px;
  font-size: calc(var(--size-meta) * 0.8182); font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase;
  color: #2a1e08; background: var(--gold-mustard); }
.cm-form .dt-field.is-off label { opacity: 0.4; }
.cm-form .dt-input:disabled { opacity: 0.4; cursor: not-allowed; }
.cm-form .dt-input { font-size: calc(var(--size-body) * 0.9643); }
.cm-form textarea.dt-input { min-height: 116px; resize: vertical; line-height: 1.55; }
.cm-count { margin-top: -8px; font-size: var(--size-meta); font-weight: 700; color: var(--text-muted);
  text-align: right; font-variant-numeric: tabular-nums; }
.cm-kinds { display: flex; flex-wrap: wrap; gap: 6px; }
/* drop zone */
.cm-drop { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-radius: 12px;
  border: 1px dashed var(--border-bevel-strong); background: rgba(255,255,255,0.015); cursor: pointer;
  transition: border-color var(--dur-fast) var(--ease-out), background var(--dur-fast) var(--ease-out); }
.cm-drop:hover, .cm-drop.is-over { border-color: var(--border-gold); background: rgba(255,210,107,0.04); }
.cm-drop-ico { flex: none; display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 10px; color: var(--gold-mustard);
  background: var(--color-surface-3); box-shadow: var(--well-inset); }
.cm-drop-ico svg { width: 17px; height: 17px; }
.cm-drop-t { min-width: 0; font-size: calc(var(--size-small) * 1.0833); font-weight: 700; color: var(--text-heading); }
.cm-drop-t span { display: block; margin-top: 3px; font-size: var(--size-meta); font-weight: 600; color: var(--text-muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cm-drop-x { margin-left: auto; flex: none; display: none; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 50%; color: var(--text-muted);
  background: rgba(255,255,255,0.04); border: 0; cursor: pointer; }
.cm-drop-x svg { width: 13px; height: 13px; }
.cm-drop.has-file .cm-drop-x { display: inline-flex; }
.cm-drop.has-file { border-style: solid; border-color: var(--border-gold); }
.cm-credit { display: flex; align-items: center; gap: 12px; cursor: pointer; }
.cm-credit .label { font-size: calc(var(--size-small) * 1.0833); line-height: 1.5; color: var(--text-body); }
.cm-credit .label b { color: var(--gold-mustard); font-weight: 700; }
.cm-box-foot { padding: 16px 22px 20px; border-top: 1px solid var(--border-bevel); background: var(--color-surface-2); }
.cm-box-fine { margin-top: 11px; font-size: var(--size-meta); line-height: 1.5; color: var(--text-muted); }
/* sent + guest states */
.cm-done, .cm-box-gate { display: none; text-align: center; padding: 8px 4px 4px; }
.cm-box.is-done .cm-form, .cm-box.is-done .cm-box-foot { display: none; }
.cm-box.is-done .cm-done { display: block; }
.cm-done-mark { display: inline-flex; align-items: center; justify-content: center; width: 56px; height: 56px;
  margin-bottom: 18px; border-radius: 50%; color: #2a1e08; background: var(--gold-knob);
  box-shadow: var(--bevel-highlight), var(--gold-glow-strong); }
.cm-done-mark svg { width: 26px; height: 26px; }
.cm-done h4 { font-size: calc(var(--size-subhead) * 1.0556); font-weight: 800; }
.cm-done p { margin-top: 10px; font-size: calc(var(--size-body) * 0.9643); line-height: 1.6; color: var(--text-body); }
.cm-done-acts { display: flex; flex-direction: column; gap: 10px; margin-top: 22px; }
body:not(.view-paid) .cm-box .cm-form, body:not(.view-paid) .cm-box .cm-box-foot { display: none; }
body:not(.view-paid) .cm-box-gate { display: block; }
.cm-box-gate h4 { font-size: var(--size-subhead); font-weight: 800; }
.cm-box-gate p { margin-top: 10px; font-size: calc(var(--size-body) * 0.9643); line-height: 1.6; color: var(--text-body); }
.cm-box-gate .cm-done-acts { margin-top: 20px; }

/* ============================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1180px) {
  .cm-lb-dialog { grid-template-columns: minmax(0, 1fr) 320px; }
  .cm-lb-nav.is-next { right: 340px; }
}
@media (max-width: 1024px) {
  .cm-stage { aspect-ratio: auto; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 30px 18px; }
  /* Stacked: the tile stops being absolutely placed, but it MUST stay a
     containing block or every .cm-pill resolves against .cm-stage and the four
     credits pile up in one corner. The left/top/width resets kill the inline
     scatter percentages renderSpots() writes. */
  .cm-tile { position: relative !important; left: auto !important; top: auto !important;
    width: auto !important; transform: none !important; opacity: 1; }
  .cm-tile.is-focus { transform: none !important; }
  .cm-ghost { display: none; }
  .cm-read { grid-template-columns: 1fr; gap: 24px; }
  .cm-ideas { grid-template-columns: 1fr; }
  .cm-poll-in { grid-template-columns: 1fr; gap: 28px; }
  .cm-lead-grid { grid-template-columns: 1fr; }
  .cm-rules { grid-template-columns: 1fr; gap: 0 0; }
}
@media (max-width: 860px) {
  .cm-lb-dialog { grid-template-columns: 1fr; max-height: 88vh; }
  .cm-lb-media { min-height: 260px; aspect-ratio: 1 / 1; }
  .cm-lb-nav { top: auto; bottom: 14px; transform: none; }
  .cm-lb-nav.is-next { right: 14px; }
}
@media (max-width: 760px) {
  .cm-hero { padding: calc(var(--nav-height) + 44px) 0 44px; }
  .cm-hero-lede { font-size: calc(var(--size-body) * 1.0714); }
  .cm-stage { grid-template-columns: 1fr; gap: 28px; }
  .cm-read { padding: 22px; }
  .cm-read-q { font-size: calc(var(--size-subhead) * 0.9444); }
  .cm-poll { padding: 26px 20px; }
  .cm-wall { gap: 10px; }
  .cm-wall-col { gap: 10px; }
  .cm-ugc-bar { flex-wrap: wrap; }
  .cm-ugc-bar .btn { margin-left: 0; flex: 1 1 100%; }
  .cm-ugc-by { flex: 1 1 100%; }
  .cm-frame { width: 288px; height: 216px; }
  .cm-frame-line { font-size: calc(var(--size-body) * 0.9643); }
  .cm-post { grid-template-columns: 36px minmax(0, 1fr); gap: 12px; padding: 17px 18px; }
  .cm-post .cm-pill-face { width: 36px; height: 36px; }
  .cm-rep { padding: 14px 18px 14px 40px; grid-template-columns: 30px minmax(0, 1fr); }
  .cm-rep::before { left: 26px; }
  .cm-rep .cm-pill-face { width: 30px; height: 30px; }
  .cm-reply-box { padding: 12px 18px 16px 40px; flex-wrap: wrap; }
  .cm-thread-foot, .cm-thr-locked { padding: 12px 18px; }
  .cm-two { grid-template-columns: 1fr; }
  .cm-vote-bar { padding: 12px 14px; }
  .cm-vote-bar .sc-select, .cm-vote-bar .dir-ac { flex: 1 1 100%; max-width: none; width: 100%; }
  .cm-vote-bar .fb-count { width: 100%; margin-left: 0; }
  .cm-idea { padding: 18px 18px; }
  .cm-idea-foot { flex-wrap: wrap; }
  .cm-back, .cm-guest, .cm-made { margin-left: 0; }
  /* keep the launcher and the sheet clear of the bottom tab bar */
  .cm-fab { right: 14px; bottom: calc(var(--app-bar-h, 64px) + 14px + env(safe-area-inset-bottom, 0px)); padding: 12px 18px 12px 13px; font-size: calc(var(--size-small) * 1.0833); }
  .cm-box { right: 0; left: 0; bottom: 0; width: auto; max-height: 92vh; border-radius: 20px 20px 0 0;
    transform: translateY(24px); transform-origin: bottom center; }
  .cm-box-body { padding: 18px; }
  .cm-box-head { padding: 18px 18px 14px; }
  .cm-box-foot { padding: 14px 18px calc(18px + env(safe-area-inset-bottom, 0px)); }
}
@media (prefers-reduced-motion: reduce) {
  .cm-hero-wall > *, .cm-edge::before, .cm-edge::after { animation: none !important; }
  .cm-tile, .cm-frame > img { transition: none; }
}
