/* feed.css — Feed screen + the money-moment sheets (auth/deposit/betslip/market).
   Owned by the Feed agent. AIR + POSTER per brand.md. */

/* ============================================================ FEED HOST */
#screen-root.feed-host { overflow: hidden; }

.feed-scroll {
  position: absolute;
  inset: 0;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.feed-scroll::-webkit-scrollbar { display: none; }

/* Landing scroll hint: two soft downward peeks + spring-back. Pure transform —
   leaves scrollTop untouched so scroll-snap is never engaged or fought. */
.feed-scroll.is-hinting {
  animation: feed-peek 1.4s cubic-bezier(.22, 1, .36, 1) both;
}
@keyframes feed-peek {
  0%   { transform: translateY(0); }
  18%  { transform: translateY(-36px); }
  36%  { transform: translateY(0); }
  54%  { transform: translateY(-28px); }
  72%  { transform: translateY(0); }
  100% { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .feed-scroll.is-hinting { animation: none; }
}

/* Each card fills the feed viewport exactly. #screen-root already excludes the
   tab bar (flex layout in app.css), so 100% of the scroll container = one screen. */
.feed-card {
  position: relative;
  height: 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  overflow: hidden;
  background: var(--bezel);
}

/* ============================================================ TOP ROW (FIXED)
   Single fixed row: logo chip at the left, category chips scrolling to its
   right. Pinned over the feed — does not scroll with cards. */
.feed-top {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 10px);
  left: 0;
  right: 0;
  z-index: 21;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-left: calc(env(safe-area-inset-left, 0px) + 14px);
  /* keep clear of the balance chip on the right */
  padding-right: calc(env(safe-area-inset-right, 0px) + 86px);
}

.feed-logo {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: rgba(244, 241, 234, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid var(--hairline);
}
.feed-logo img { width: 32px; height: 32px; display: block; }

/* Non-scrolling clip wrapper owns the edge-fade masks. The mask must NOT sit
   on the scroller itself — masks on scroll containers travel with the content
   in some engines, which left a hard mid-chip clip with no visible fade.
   JS (feed.js) toggles has-more-right / has-more-left so the fade only shows
   when there is actually more to scroll on that side — works at all viewport
   widths and in both auth states. */
.feed-chips-clip {
  flex: 1 1 auto;
  min-width: 0;
}
.feed-chips-clip.has-more-right {
  -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent);
}
.feed-chips-clip.has-more-left {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px);
  mask-image: linear-gradient(90deg, transparent, #000 32px);
}
.feed-chips-clip.has-more-left.has-more-right {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 32px, #000 calc(100% - 32px), transparent);
}

.feed-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  /* horizontal scroller: pad (not margin) so chip borders/shadows aren't
     clipped vertically; right gutter lets the last chip scroll fully clear
     of the wrapper's fade zone. */
  padding: 4px 32px 4px 0;
  overflow-x: auto;
  overflow-y: visible;
  scrollbar-width: none;
}
.feed-chips::-webkit-scrollbar { display: none; }

.feed-chip {
  flex: 0 0 auto;
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(244, 241, 234, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 26, 28, .25);
  border-radius: 999px;
  padding: 6px 12px 5px;
  transition: background .15s ease, color .15s ease;
}
.feed-chip.is-active {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

/* ============================================================ CARD IMAGE + SCRIM */
.card-img-wrap { position: absolute; inset: 0; }
.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: var(--bezel);
}
.card-scrim {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg,
    rgba(244, 241, 234, 0) 40%,
    rgba(244, 241, 234, .32) 62%,
    rgba(244, 241, 234, .86) 88%,
    rgba(244, 241, 234, .97) 100%);
}

/* double-tap heart pop */
.card-heartpop {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%) scale(.4);
  opacity: 0;
  pointer-events: none;
}
.card-heartpop svg { width: 100%; height: 100%; fill: var(--sunrise); }
.card-heartpop.is-pop { animation: heartpop .7s ease forwards; }
@keyframes heartpop {
  0%   { transform: translate(-50%, -50%) scale(.4); opacity: 0; }
  25%  { transform: translate(-50%, -50%) scale(1.15); opacity: 1; }
  60%  { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -52%) scale(1); opacity: 0; }
}

/* ============================================================ CATEGORY CHIP */
.card-cat {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 62px);
  left: 14px;
  z-index: 6;
}
/* desktop-width windows still on the mobile layout (<1024px): give the chip
   real clearance below the fixed top row instead of sitting jammed under it */
@media (min-width: 768px) {
  .card-cat { top: calc(env(safe-area-inset-top, 0px) + 74px); }
}
/* shared chip look (used in card + market sheet) */
.chip.card-cat,
.chip.ms-cat {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--ink);
  border-radius: 4px;
  padding: 5px 9px 4px;
}
/* on the card the chip sits over busy imagery — back it like the pill family */
.chip.card-cat {
  background: rgba(244, 241, 234, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border-color: rgba(26, 26, 28, .25);
}

/* ============================================================ SIDE RAIL
   Self-contained capsules. Items with a count (like, comment) are vertical
   46×64 capsules carrying icon + mono count INSIDE — no overhanging labels,
   the capsule's own padding owns the layout. Share/save are 46px circles.
   Vertically centred against the lower third of the card, clear of the
   question block + buttons at any viewport height (tested 667px / 844px). */
.card-rail {
  position: absolute;
  right: 10px;
  top: 66.666%;
  transform: translateY(-50%);
  z-index: 7;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

/* shared surface for every rail item — borderless: the bone blur + soft
   shadow do the lifting, and each pill carries a whisper of its own colour */
.rail-btn {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 23px;
  background: rgba(244, 241, 234, .25);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: none;
  box-shadow: 0 2px 12px rgba(26, 26, 28, .10);
  color: var(--ink);
  transition: transform .12s ease, background .18s ease, box-shadow .18s ease;
}

/* count-carrying capsules: icon over count, stacked inside, 3px gap */
.rail-capsule {
  flex-direction: column;
  height: 64px;
  gap: 3px;
  padding: 9px 0 8px;
}
.rail-btn:active { transform: scale(.92); }

.rail-icon { display: flex; align-items: center; justify-content: center; }
.rail-btn svg { width: 22px; height: 22px; display: block; }

/* ---- per-pill identity: own icon colour + a whisper of tint over the bone
   blur (tint layered as a gradient so the blurred bone base stays intact) */
.card-like { background: linear-gradient(rgba(224, 72, 78, .09), rgba(224, 72, 78, .09)), rgba(244, 241, 234, .25); }
.card-like svg { color: var(--no); }

.card-comment { background: linear-gradient(rgba(74, 156, 201, .10), rgba(74, 156, 201, .10)), rgba(244, 241, 234, .25); }
.card-comment svg { color: #4A9CC9; }

.card-share { background: linear-gradient(rgba(31, 164, 91, .09), rgba(31, 164, 91, .09)), rgba(244, 241, 234, .25); }
.card-share svg { color: var(--yes); }

.card-save { background: linear-gradient(rgba(226, 166, 61, .10), rgba(226, 166, 61, .10)), rgba(244, 241, 234, .25); }
.card-save svg { color: var(--sunrise); }

/* the bookmark + collapses into a filled gold bookmark when on */
.card-save .bm-plus { transition: opacity .15s ease; }
.card-save.is-on { background: linear-gradient(rgba(226, 166, 61, .18), rgba(226, 166, 61, .18)), rgba(244, 241, 234, .25); }
.card-save.is-on .bm-shape { fill: var(--sunrise); }
.card-save.is-on .bm-plus { opacity: 0; }

/* count text inside the capsule — stays ink */
.rail-count {
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
  letter-spacing: .01em;
}

/* ---- LIKE ON: solid red heart, red-family tint, red count ---- */
.card-like.is-on { background: linear-gradient(rgba(224, 72, 78, .16), rgba(224, 72, 78, .16)), rgba(244, 241, 234, .25); }
.card-like.is-on svg { fill: var(--no); color: var(--no); }
.card-like.is-on .rail-count { color: var(--no); }

/* ============================================================ RAIL FEEDBACK */
/* Like pop: scale + ~8deg wobble, springy ~360ms. Count rise+fade in. */
.card-like.is-likepop { animation: rail-likepop 360ms cubic-bezier(.34, 1.56, .64, 1); }
@keyframes rail-likepop {
  0%   { transform: scale(1) rotate(0deg); }
  30%  { transform: scale(1.3) rotate(-8deg); }
  55%  { transform: scale(1.12) rotate(6deg); }
  75%  { transform: scale(1.18) rotate(-3deg); }
  100% { transform: scale(1) rotate(0deg); }
}
.rail-count.is-tick { animation: rail-counttick 320ms ease-out; }
@keyframes rail-counttick {
  0%   { transform: translateY(6px); opacity: 0; }
  100% { transform: translateY(0); opacity: 1; }
}

/* Generic press pop (save / comment / share): scale 1 → 1.15 → 1 */
.rail-btn.is-presspop { animation: rail-presspop 240ms cubic-bezier(.34, 1.4, .64, 1); }
@keyframes rail-presspop {
  0%   { transform: scale(1); }
  45%  { transform: scale(1.15); }
  100% { transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .card-like.is-likepop,
  .rail-btn.is-presspop,
  .rail-count.is-tick { animation: none; }
  .rail-btn:active { transform: none; }
}

/* ============================================================ CARD FRAME */
.card-frame {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 5;
  padding: 0 16px calc(18px + env(safe-area-inset-bottom, 0px));
}
.card-q {
  font-size: clamp(40px, 11.5vw, 44px);
  color: var(--ink);
  margin: 0 0 8px;
  max-width: 86%;
  cursor: pointer;
}
.card-meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  margin: 0 0 12px;
  padding: 6px 12px;
  font-size: 10px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(244, 241, 234, .55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(26, 26, 28, .25);
  border-radius: 999px;
  transition: border-color .15s ease, background .15s ease;
}
.card-meta-i { width: 14px; height: 14px; flex: 0 0 auto; }
.card-meta-chev { font-size: 13px; line-height: 1; margin-left: 1px; }
.card-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.card-bet {
  flex-direction: column;
  gap: 2px;
  padding: 11px 14px;
}
.card-bet-label {
  font-size: 9.5px;
  letter-spacing: .2em;
  font-weight: 500;
  opacity: .85;
}
.card-bet .price { font-size: 18px; }
.card-payline {
  margin: 10px 0 0;
  font-size: 10px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey);
  text-align: center;
}

/* ============================================================ FEED EMPTY */
.feed-empty {
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-align: center;
}
.feed-empty .display { font-size: 48px; }
.feed-empty .mono { color: var(--grey); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }

/* ============================================================ SHARED: CHIPS (sheets) */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 14px;
  color: var(--ink);
  background: var(--bone);
  border: 1px solid rgba(26, 26, 28, .25);
  border-radius: 8px;
  padding: 10px 14px;
  transition: background .14s ease, color .14s ease, border-color .14s ease;
}
.chip.is-active {
  background: var(--ink);
  color: var(--bone);
  border-color: var(--ink);
}

/* ============================================================ AUTH SHEET */
.auth { padding: 6px 0 4px; }
.auth-title { font-size: 34px; margin: 0 0 18px; }
.auth-form { display: flex; flex-direction: column; gap: 14px; }
.fl { display: flex; flex-direction: column; gap: 6px; }
.fl-label { font-size: 10px; letter-spacing: .14em; color: var(--grey); }
.auth-error { color: var(--sunrise); font-size: 12px; margin: 0; }
.auth-submit { margin-top: 4px; }
.auth-fine { color: var(--grey); font-size: 11px; line-height: 1.5; margin: 6px 0 0; }

.auth-checking { padding: 40px 0; text-align: center; }
.auth-checking-label { font-size: 12px; letter-spacing: .12em; color: var(--ink); margin: 0 0 16px; }
.auth-bar, .dep-bar {
  height: 4px;
  border-radius: 999px;
  background: var(--hairline);
  overflow: hidden;
}
.auth-bar-fill, .dep-bar-fill {
  display: block;
  height: 100%;
  width: 30%;
  background: var(--sunrise);
  border-radius: 999px;
  animation: barsweep 1.1s ease-in-out infinite;
}
@keyframes barsweep {
  0% { margin-left: -30%; }
  100% { margin-left: 100%; }
}

.auth-reject { padding: 30px 0; text-align: center; }
.auth-reject-title { font-size: 52px; color: var(--ink); margin: 0 0 6px; }
.auth-reject-sub { color: var(--grey); font-size: 14px; margin: 0 0 22px; }

/* ============================================================ DEPOSIT SHEET */
.dep { padding: 6px 0 4px; }
.dep-title { font-size: 34px; margin: 0 0 18px; }
.dep-custom, .slip-custom {
  display: flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(26, 26, 28, .25);
  border-radius: 8px;
  padding: 0 12px;
  min-width: 110px;
  flex: 1 1 110px;
}
.dep-custom-prefix, .slip-custom-prefix { color: var(--grey); }
.dep-input, .slip-input {
  border: none;
  background: transparent;
  padding: 10px 0;
  width: 100%;
}
.dep-input:focus, .slip-input:focus { outline: none; }

.dep-section-label, .slip .slip-section-label {
  font-size: 10px;
  letter-spacing: .14em;
  color: var(--grey);
  margin: 0 0 6px;
}
.dep-limit { margin-top: 20px; }
.dep-limit-q { font-size: 15px; margin: 0 0 10px; }
.dep-error, .slip-error { color: var(--sunrise); font-size: 12px; margin: 14px 0 0; }

.dep-pay { display: flex; flex-direction: column; gap: 10px; margin-top: 20px; }
.dep-apple {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  background: #000;
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 18px;
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 16px;
}
.dep-apple-mark {
  width: 15px; height: 15px;
  background: #fff;
  -webkit-mask: radial-gradient(circle at 70% 30%, transparent 32%, #000 33%) ;
  mask: radial-gradient(circle at 70% 30%, transparent 32%, #000 33%);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
}
.dep-apple-text::before { content: ''; }
.dep-amt-line { text-align: center; color: var(--grey); font-size: 12px; margin: 12px 0 0; }
.dep-amt { color: var(--ink); font-weight: 600; }

.dep-processing { padding: 30px 0 10px; text-align: center; }
.dep-processing-label { font-size: 12px; letter-spacing: .12em; margin: 0 0 16px; }

.dep-done { padding: 24px 0 6px; text-align: center; }
.dep-done-title { font-size: 40px; margin: 0 0 18px; color: var(--ink); }
.dep-done-close { width: 100%; }

/* ============================================================ BET SLIP */
.slip { padding: 6px 0 4px; }
.slip-q { font-size: 22px; margin: 0 0 14px; color: var(--ink); }
.slip-banner {
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  letter-spacing: .04em;
}
.slip-banner span { font-weight: 600; }
.slip-banner--yes { background: rgba(31, 164, 91, .12); color: var(--yes); }
.slip-banner--no { background: rgba(224, 72, 78, .12); color: var(--no); }

.slip-math { font-size: 13px; color: var(--ink); margin: 16px 0 4px; }
.slip-balance { font-size: 12px; color: var(--grey); letter-spacing: .04em; margin: 0 0 4px; }
.slip-addfunds {
  background: none;
  border: none;
  color: var(--sunrise);
  font-family: var(--font-ui);
  font-weight: 600;
  font-size: 12px;
  text-decoration: underline;
  padding: 0;
  margin-left: 6px;
}
.slip-review { width: 100%; margin-top: 18px; }
.slip-review:disabled { opacity: .45; pointer-events: none; }

.slip-recap {
  margin: 4px 0 20px;
  border-top: 1px solid var(--hairline);
}
.slip-recap > div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
}
.slip-recap dt { color: var(--grey); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; }
.slip-recap dd { margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.slip-recap-side--yes { color: var(--yes); }
.slip-recap-side--no { color: var(--no); }
.slip-confirm { width: 100%; margin-bottom: 10px; }
.slip-back { width: 100%; }

.slip-done { padding: 20px 0 6px; text-align: center; }
.slip-done-title { font-size: 52px; margin: 0 0 14px; color: var(--ink); }
.slip-done-summary { font-size: 13px; color: var(--grey); margin: 0 0 22px; }
.slip-done-bets { width: 100%; margin-bottom: 10px; }
.slip-done-keep { width: 100%; }

/* ============================================================ MARKET SHEET
   Hierarchy: question header → CROWD → [rule] → PAYOUT (centrepiece) → BACK
   → quiet pot/settles footer → [rule] → comment teaser.
   Consistent mono section labels; 28px between sections, 12px label→content. */
.ms { padding: 6px 0 4px; }

/* consistent mono section label — same treatment every time */
.ms-label {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0 0 12px;
}

/* 28px rhythm between major sections */
.ms-section { margin: 0 0 28px; }

/* hairline divider only between major groups */
.ms-rule {
  height: 1px;
  background: rgba(26, 26, 28, .08);
  margin: 0 0 28px;
}

/* 1. QUESTION */
.ms-head { margin: 0 0 20px; }
.ms-q { font-size: clamp(30px, 8vw, 30px); color: var(--ink); margin: 0 0 6px; line-height: .98; }
.ms-cat-line {
  font-size: 10px;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--grey);
  margin: 0;
}

/* 2. THE CROWD — labels sit immediately above the bar ends, 10px tall bar */
.ms-split-ends {
  display: flex;
  justify-content: space-between;
  margin: 0 0 6px;
  font-size: 13px;
  font-weight: 600;
}
.ms-split-end-yes { color: var(--yes); }
.ms-split-end-no { color: var(--no); }
.ms-split-bar {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  background: var(--no);
}
.ms-split-yes { background: var(--yes); height: 100%; }
.ms-split-no { background: var(--no); height: 100%; }
.ms-split-plain {
  font-size: 12px;
  color: var(--grey);
  margin: 8px 0 0;
  letter-spacing: .01em;
}

/* 3. WHAT YOU'D MAKE — the visual heavyweight */
.ms-stakes { margin: 0 0 10px; }
.ms-stake { flex: 1 1 0; text-align: center; padding: 11px 0; }

.ms-side-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  padding: 4px;
  background: rgba(26, 26, 28, .05);
  border-radius: 10px;
  margin: 0 0 18px;
}
.ms-side {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: .12em;
  color: var(--grey);
  background: transparent;
  border: none;
  border-radius: 7px;
  padding: 9px 0;
  transition: background .14s ease, color .14s ease;
}
.ms-side-yes.is-active { background: var(--yes); color: #fff; }
.ms-side-no.is-active { background: var(--no); color: #fff; }

/* PAYS sentence on one line; figures big mono 600 ~30px */
.ms-pays {
  font-size: clamp(24px, 7.2vw, 30px);
  color: var(--ink);
  margin: 0 0 6px;
  line-height: 1.05;
  white-space: nowrap;
}
.ms-pays .ms-pays-stake,
.ms-pays .ms-pays-fig {
  font-family: var(--font-mono);
  font-weight: 600;
  text-transform: none;
  letter-spacing: -.01em;
}
.ms-pays .ms-pays-fig { color: var(--sunrise); }
/* profit sub-line directly under, 12px grey */
.ms-pays-sub {
  font-size: 12px;
  line-height: 1.5;
  color: var(--grey);
  margin: 0;
}

/* 4. BACK BUTTON — full width, 52px tall, immediately after payout */
.ms-back-btn {
  width: 100%;
  height: 52px;
  font-size: 16px;
  margin: 0 0 28px;
}

/* 5. QUIET FOOTER: pot + settles, one block */
.ms-foot {
  display: flex;
  flex-direction: column;
  font-size: 11px;
  line-height: 1.7;
  color: var(--grey);
  margin: 0 0 22px;
}

/* 6. TOP COMMENT TEASER */
.ms-comment-teaser {
  border-top: 1px solid rgba(26, 26, 28, .08);
  padding: 18px 0 0;
}
.ms-comment-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 4px;
}
.ms-comment-user { font-size: 12px; font-weight: 500; color: var(--ink); }
.ms-comment-stamp { font-size: 11px; color: var(--grey); }
.ms-comment-text {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0 0 14px;
}
.ms-comment-all { width: 100%; }

/* ============================================================ COMMENTS SHEET */
.cm { display: flex; flex-direction: column; min-height: 0; }
.cm-title {
  font-size: 12px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
  flex: 0 0 auto;
}
.cm-list {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1 1 auto;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  max-height: 70vh;
}
.cm-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--hairline);
}
.cm-row.is-mine .cm-user { color: var(--sunrise); }
.cm-body { flex: 1 1 auto; min-width: 0; }
.cm-head { display: flex; align-items: baseline; gap: 10px; margin: 0 0 3px; }
.cm-user { font-size: 12px; font-weight: 500; color: var(--ink); }
.cm-stamp { font-size: 11px; color: var(--grey); }
.cm-text {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink);
  margin: 0;
  overflow-wrap: anywhere;
}
.cm-like {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  background: none;
  border: none;
  padding: 2px 0;
  color: var(--grey);
}
.cm-like svg { width: 18px; height: 18px; fill: none; stroke: var(--grey); stroke-width: 1.6px; }
.cm-like.is-on svg { fill: var(--sunrise); stroke: var(--sunrise); }
.cm-like.is-on .cm-like-n { color: var(--sunrise); }
.cm-like-n { font-size: 10px; font-weight: 500; }

.cm-compose {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 0 0;
  border-top: 1px solid var(--hairline);
  background: var(--bone);
}
.cm-input { flex: 1 1 auto; }
.cm-post { flex: 0 0 auto; padding: 12px 18px; }

/* ============================================================ DESKTOP HOVER */
@media (hover: hover) {
  .btn-yes:hover { box-shadow: 0 8px 30px rgba(31, 164, 91, .45); }
  .btn-no:hover { box-shadow: 0 8px 30px rgba(224, 72, 78, .45); }
  /* lift + deeper shadow only — backgrounds stay per-pill tinted */
  .rail-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(26, 26, 28, .16);
  }
  .card-meta:hover { border-color: rgba(26, 26, 28, .55); background: rgba(244, 241, 234, .7); }
  .chip:hover { border-color: var(--ink); }
  .feed-chip:hover { background: rgba(244, 241, 234, .8); }
}

/* ============================================================ DESKTOP FEED (≥1024px)
   Real desktop: text off the image. Each market is a full-viewport section
   (vertical scroll-snap stays). Image is a tall 9:16 panel centred in the
   left of the available space; the question/pill/buttons/payline column sits
   to its right; the social rail runs vertical just right of the image edge. */
@media (min-width: 1024px) {
  /* category chips float at the top of the main area, subtle */
  .feed-top {
    top: 16px;
    left: 24px;
    right: 24px;
    padding: 0;
  }
  /* sidebar owns the brand; hide the in-feed logo chip on desktop */
  .feed-logo { display: none; }
  /* wrapper shrinks to fit when chips don't overflow (no needless fade);
     min-width: 0 still lets it shrink + scroll on narrow desktop windows */
  .feed-chips-clip { flex: 0 1 auto; }

  .feed-card {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 48px;
    padding: 0 64px;
    background: transparent;
  }

  /* image becomes a centred tall panel — text is no longer on it */
  .card-img-wrap {
    position: relative;
    inset: auto;
    flex: 0 0 auto;
    height: calc(100vh - 48px);
    aspect-ratio: 9 / 16;
    max-width: 46vw;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 24px 70px rgba(26, 26, 28, .22);
  }
  /* no bone scrim on desktop — text isn't over the image */
  .card-scrim { display: none; }

  /* category owned by the top chips row */
  .card-cat { display: none; }

  /* social rail runs vertical just right of the image edge */
  .card-rail {
    position: relative;
    inset: auto;
    top: auto;
    right: auto;
    transform: none;
    flex: 0 0 auto;
    align-self: center;
  }

  /* text column to the right of the image, vertically centred */
  .card-frame {
    position: relative;
    inset: auto;
    left: auto;
    right: auto;
    bottom: auto;
    flex: 1 1 auto;
    max-width: 400px;
    padding: 0;
    align-self: center;
  }
  .card-q {
    font-size: clamp(36px, 3.4vw, 44px);
    max-width: 100%;
    margin: 0 0 16px;
  }
  .card-meta { margin: 0 0 18px; }
  .card-payline { text-align: left; }
}
