/* Big Water community UI · home, feed, posts, polls, comments. */

/* ---------- Today ---------- */
.home-today {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  align-items: center;
  gap: 40px 72px;
  padding: clamp(40px, 6vw, 92px) 0 clamp(36px, 4vw, 60px);
}
.today-date { margin-bottom: 16px; color: var(--accent); font-size: 14px; font-weight: 600; letter-spacing: -.005em; }
.home-today h1 { font-size: clamp(42px, 6vw, 78px); line-height: 1.02; letter-spacing: -.044em; }
.home-today h1 span { color: color-mix(in srgb, var(--accent) 55%, var(--label-3)); }
.today-copy > p:not(.today-date) { max-width: 520px; margin-top: 22px; color: var(--label-2); font-size: clamp(17px, 1.6vw, 21px); line-height: 1.45; letter-spacing: -.012em; }
.today-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.today-object { position: relative; padding: 0 0 54px; }

/* Deep-water card — the one saturated object in the first screen. */
.water-level-card, .water-id, .release-current, .raffle-celebration, .result-symbol {
  --material: var(--deep-water);
  --material-ink: #ffffff;
  --material-sub: rgba(236, 248, 255, .88);
  --material-rim: rgba(255, 255, 255, .38);
}
.water-level-card {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  aspect-ratio: 1.586;
  padding: 24px 26px 20px;
  border-radius: var(--r-lg); corner-shape: squircle;
  background: var(--material);
  color: var(--material-ink);
  box-shadow: inset 0 1px 0 var(--material-rim), inset 0 -1px 0 rgba(0, 0, 0, .16), 0 1px 2px rgba(10, 40, 70, .1), 0 30px 60px -22px rgba(6, 35, 58, .45);
  text-decoration: none !important;
  overflow: hidden;
  transform: rotate(-2.5deg);
  transition: transform .6s var(--spring), box-shadow .6s var(--spring);
}
.water-level-card::after {
  content: "";
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(105deg, transparent 30%, rgba(255, 255, 255, .45) 46%, transparent 60%);
  transform: translateX(-30%);
  transition: transform 1.1s var(--spring);
  mix-blend-mode: soft-light;
}
.water-level-card:hover { transform: rotate(0) translateY(-4px); }
.water-level-card:hover::after { transform: translateX(30%); }
.wl-top { display: flex; align-items: center; justify-content: space-between; color: var(--material-sub); font-size: 13px; font-weight: 600; }
.wl-top .wi { width: 22px; height: 22px; }
.wl-value { margin-top: auto; font: 600 clamp(52px, 5.4vw, 70px)/1 var(--font-display); letter-spacing: -.045em; font-variant-numeric: tabular-nums; }
.wl-value small { margin-left: 6px; font-size: 18px; font-weight: 500; letter-spacing: -.01em; color: var(--material-sub); }
.wl-meta { margin-top: 8px; color: var(--material-sub); font-size: 13px; line-height: 1.45; }
.wl-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; padding-top: 12px; border-top: .5px solid color-mix(in srgb, var(--material-ink) 18%, transparent); color: var(--material-sub); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.wl-foot > span:first-child { letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; }

/* Liquid glass + mirror (液态玻璃 + 镜面, components/community/WaterLevelArt.vue): the balance card as a thick block of
   clear liquid glass with a mirror-polished deep-water inlay sunk inside it. Real depth, in a perspective pose: a
   side wall built from stacked glass rings (.wl-edge), the mirror deep inside, the content floating in front, a
   glare on top and a shadow cast far behind, so any tilt shows parallax and the glass's thickness. The card sways
   slowly on its own (desktop) and follows the pointer: --rx/--ry/--mx/--my/--angle are set on the card. */
@property --fx { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
@property --fy { syntax: '<angle>'; inherits: true; initial-value: 0deg; }
.water-level-card {
  --rx: 0deg; --ry: 0deg; --fx: 0deg; --fy: 0deg; --mx: 28%; --my: 16%; --angle: 210deg;
  --pose-x: 12deg; --pose-y: -22deg; --pose-z: 2deg;
  --glass-r: var(--r-lg);
  overflow: visible;
  padding: 30px 32px 26px;
  border-radius: var(--glass-r); corner-shape: squircle;
  background: linear-gradient(150deg, rgba(235, 248, 255, .36), rgba(170, 215, 245, .16) 50%, rgba(120, 180, 225, .28));
  -webkit-backdrop-filter: blur(16px) saturate(1.8) brightness(1.04);
  backdrop-filter: blur(16px) saturate(1.8) brightness(1.04);
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, .95),
    inset 1.5px 0 0 rgba(255, 255, 255, .6),
    inset 0 -1.5px 0 rgba(255, 255, 255, .45),
    inset -1px 0 0 rgba(255, 255, 255, .3),
    inset -3px -4px 8px rgba(0, 60, 110, .22),
    inset 3px 4px 10px rgba(255, 255, 255, .45),
    0 1px 2px rgba(4, 30, 60, .2);
  transform-style: preserve-3d;
  transform: perspective(900px) rotateX(calc(var(--pose-x) + var(--rx) + var(--fx))) rotateY(calc(var(--pose-y) + var(--ry) + var(--fy))) rotateZ(var(--pose-z));
  transition: transform .9s var(--spring);
}
.water-level-card::after { content: none; }
.water-level-card:hover { --pose-x: 6deg; --pose-y: -10deg; --pose-z: 0deg; }
.water-level-card.is-tracking { transition: transform .2s ease-out; }
.water-level-card > :not(.wl-art) { position: relative; z-index: 2; transform: translateZ(44px); }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .water-level-card { animation: wl-float 8s ease-in-out infinite; }
  .water-level-card:hover { animation-play-state: paused; }
}
@keyframes wl-float { 0%, 100% { --fx: 0deg; --fy: 0deg; } 35% { --fx: 2deg; --fy: -2.5deg; } 70% { --fx: -1.2deg; --fy: 1.8deg; } }

.wl-art { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; transform-style: preserve-3d; }
/* The glass block's side wall: thin rings stacked behind the face read as solid glass in any tilt. */
.wl-edge {
  position: absolute; inset: 0; border-radius: inherit; corner-shape: squircle;
  border: 1.5px solid;
  background: rgba(150, 205, 240, .03);
}
.wl-edge:nth-child(1) { transform: translateZ(-2.5px); border-color: rgba(200, 236, 255, 0.5); }
.wl-edge:nth-child(2) { transform: translateZ(-5px); border-color: rgba(189, 228, 250, 0.52); }
.wl-edge:nth-child(3) { transform: translateZ(-7.5px); border-color: rgba(179, 219, 244, 0.53); }
.wl-edge:nth-child(4) { transform: translateZ(-10px); border-color: rgba(168, 211, 239, 0.55); }
.wl-edge:nth-child(5) { transform: translateZ(-12.5px); border-color: rgba(157, 202, 234, 0.57); }
.wl-edge:nth-child(6) { transform: translateZ(-15px); border-color: rgba(147, 194, 228, 0.58); }
.wl-edge:nth-child(7) { transform: translateZ(-17.5px); border-color: rgba(136, 186, 223, 0.6); }
.wl-edge:nth-child(8) { transform: translateZ(-20px); border-color: rgba(125, 177, 218, 0.62); }
.wl-edge:nth-child(9) { transform: translateZ(-22.5px); border-color: rgba(115, 169, 212, 0.63); }
.wl-edge:nth-child(10) { transform: translateZ(-25px); border-color: rgba(104, 160, 207, 0.65); }
.wl-edge:nth-child(11) { transform: translateZ(-27.5px); border-color: rgba(93, 152, 202, 0.67); }
.wl-edge:nth-child(12) { transform: translateZ(-30px); border-color: rgba(83, 144, 196, 0.68); }
.wl-edge:nth-child(13) { transform: translateZ(-32.5px); border-color: rgba(72, 135, 191, 0.7); }
.wl-edge:nth-child(14) { transform: translateZ(-35px); border-color: rgba(61, 127, 186, 0.72); }
.wl-edge:nth-child(15) { transform: translateZ(-37.5px); border-color: rgba(51, 118, 180, 0.73); }
.wl-edge:nth-child(16) { transform: translateZ(-40px); border-color: rgba(40, 110, 175, 0.75); background: rgba(40, 110, 175, .22); }
/* A shadow cast far behind the block: it shifts as the card turns, as if the card floats over the page. */
.wl-cast {
  position: absolute; inset: 10% 6% 0; border-radius: inherit;
  background: radial-gradient(closest-side, rgba(0, 40, 90, .7), rgba(0, 40, 90, .25) 70%, transparent);
  filter: blur(24px);
  transform: translateZ(-150px) translate(-14px, 56px);
}
/* The mirror inlay, sunk into the glass: deep water polished to a mirror, reflecting a soft sky. */
.wl-mirror {
  position: absolute; inset: 11px; border-radius: calc(var(--glass-r) - 9px); corner-shape: squircle; overflow: hidden;
  background:
    radial-gradient(130% 60% at 30% -10%, rgba(255, 255, 255, .42), rgba(210, 238, 255, .16) 45%, transparent 70%),
    radial-gradient(90% 70% at 85% 115%, rgba(110, 215, 255, .38), transparent 60%),
    linear-gradient(170deg, #1683c9 0%, #0c5f9f 30%, #08477e 58%, #052a4d 100%);
  background-size: 140% 140%, 100% 100%, 100% 100%;
  background-position: calc(var(--mx) * .4) calc(var(--my) * .4), 0 0, 0 0;
  box-shadow:
    inset 0 3px 7px rgba(0, 12, 30, .5),
    inset 0 -1px 0 rgba(255, 255, 255, .25),
    inset 0 -18px 30px rgba(0, 14, 34, .35),
    0 0 0 1px rgba(255, 255, 255, .32);
  transform: translateZ(-14px);
}
/* Liquid chrome: a soft second reflection drifts slowly across the mirror. */
.wl-mirror::after {
  content: ""; position: absolute; inset: -30%;
  background: linear-gradient(105deg, transparent 38%, rgba(190, 235, 255, .16) 45%, rgba(255, 255, 255, .26) 48%, rgba(190, 235, 255, .12) 51%, transparent 58%);
  mix-blend-mode: screen;
  animation: wl-liquid 9s cubic-bezier(.45, 0, .55, 1) infinite alternate;
}
@keyframes wl-liquid { from { transform: translateX(-22%) rotate(0.001deg); } to { transform: translateX(22%) rotate(0.001deg); } }
/* Gloss on the outer glass: a glancing reflection and a light that follows the pointer, in front of everything. */
.wl-glare {
  position: absolute; inset: 0; border-radius: inherit; overflow: hidden;
  background:
    radial-gradient(55% 70% at var(--mx) var(--my), rgba(255, 255, 255, .45), rgba(255, 255, 255, .08) 45%, transparent 70%),
    linear-gradient(118deg, transparent 22%, rgba(255, 255, 255, .22) 30%, rgba(255, 255, 255, .04) 40%, transparent 41%);
  mix-blend-mode: soft-light;
  transform: translateZ(52px);
}
.wl-rim {
  position: absolute; inset: 0; padding: 1px; border-radius: inherit; corner-shape: squircle;
  background: conic-gradient(from var(--angle), rgba(255, 255, 255, .9), rgba(150, 225, 255, .4), rgba(215, 185, 255, .35), rgba(255, 255, 255, .12) 45%, rgba(140, 255, 230, .4), rgba(255, 240, 210, .35), rgba(255, 255, 255, .9));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  transform: translateZ(1px);
}

/* Type floating above the mirror: the figure in polished chrome, small type lifted off the surface. */
.wl-top, .wl-meta, .wl-foot { text-shadow: 0 1px 2px rgba(0, 20, 45, .5), 0 6px 14px rgba(0, 20, 45, .35); }
.wl-value { font-variant-numeric: normal; }
.wl-value-num {
  background: linear-gradient(180deg, #ffffff 0%, #f1f9ff 40%, #8fcff5 49%, #e9f7ff 56%, #ffffff 78%, #cbe9fb 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 1px 0 rgba(0, 25, 55, .55)) drop-shadow(0 14px 18px rgba(0, 18, 40, .5));
}
.wl-foot { border-top-color: rgba(255, 255, 255, .22); }

@media (hover: none) { .water-level-card:hover { --pose-x: 12deg; --pose-y: -22deg; --pose-z: 2deg; } }
@media (prefers-reduced-motion: reduce) {
  .wl-mirror::after { animation: none; }
  .water-level-card, .water-level-card.is-tracking { transition: none; }
}
@media (forced-colors: active) { .wl-art { display: none; } .wl-value-num { -webkit-text-fill-color: currentColor; } .water-level-card { background: Canvas; } }


/* Glass over metal: the status chip floats across the card's edge. */
.today-chip {
  position: absolute; z-index: 2; left: -36px; bottom: 0;
  display: flex; align-items: center; gap: 12px;
  max-width: calc(100% + 20px);
  padding: 11px 20px 11px 11px;
  border-radius: 24px; corner-shape: squircle;
  background-color: var(--glass);
  background-image: var(--sheen);
  border: .5px solid var(--glass-edge);
  box-shadow: inset 0 .5px 0 var(--glass-edge), inset 0 -.5px 0 var(--glass-shade), var(--shadow-3);
  -webkit-backdrop-filter: var(--glass-blur);
  backdrop-filter: var(--glass-blur);
  color: var(--label);
  text-decoration: none !important;
  transition: transform .4s var(--spring);
}
.today-chip:hover { transform: translateY(-2px); }
.today-chip-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--solid); color: var(--on-solid); }
.today-chip.is-done .today-chip-icon { background: var(--green-dot); color: #fff; }
.today-chip-icon .wi { width: 20px; height: 20px; }
.today-chip > span:last-child { display: grid; gap: 1px; min-width: 0; }
.today-chip strong { font-size: 15px; font-weight: 600; }
.today-chip small { color: var(--label-2); font-size: 12.5px; line-height: 1.4; }

/* ---------- Stage ---------- */
.stage { display: grid; gap: 16px; }
.tile {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  padding: 24px;
  border-radius: var(--r-lg); corner-shape: squircle;
  background: var(--surface);
  box-shadow: var(--shadow-1), inset 0 0 0 .5px var(--separator);
  color: var(--label);
  text-decoration: none !important;
  transition: transform .45s var(--spring), box-shadow .45s var(--spring);
}
a.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-2), inset 0 0 0 .5px var(--separator); }
.tile > .app-icon { margin-bottom: 10px; }
.tile h3 { font-size: 15px; color: var(--label-2); font-weight: 600; letter-spacing: -.005em; }
.tile h4 { font-size: 21px; letter-spacing: -.02em; }
.tile-meta { color: var(--label-2); font-size: 14px; }
.tile .text-link, .tile-link { margin-top: auto; padding-top: 10px; color: var(--link); font-size: 14px; }
.tile-copy { display: flex; flex-direction: column; gap: 6px; }
.tile-copy strong { font: 600 21px/1.25 var(--font-display); letter-spacing: -.02em; }
.tile-copy small { color: var(--label-2); font-size: 14px; line-height: 1.5; }
.tile-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; }
.tile-eyebrow .wi { width: 16px; height: 16px; }
.cap-reward { align-self: flex-start; padding: 3px 10px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.card-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.card-row .tile { min-height: 200px; }

/* 大水学报 · 首推 strip: first on the stage but one low row (masthead · lead paper · two more), so the banners below
   still show on the first screen. The lead's title is two lines at most, its abstract one. */
.journal-feature {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(220px, 280px); align-items: center; gap: 8px 28px;
  padding: 20px 24px; overflow: hidden;
}
.journal-feature::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 3px; border-radius: 0 3px 3px 0; background: linear-gradient(#536e8f, #1b2c42); }
.jf-mast { display: flex; align-items: center; gap: 12px; }
.jf-mast .app-icon { flex: none; }
.jf-mast > span:last-child { display: grid; gap: 2px; }
.jf-mast small { color: var(--accent); font-size: 12px; font-weight: 600; }
.jf-mast strong { font: 600 17px/1.2 var(--font-display); letter-spacing: -.01em; }
.jf-lead { display: grid; gap: 4px; min-width: 0; }
.jf-meta { display: flex; flex-wrap: wrap; gap: 2px 12px; color: var(--label-3); font-size: 12.5px; }
.jf-meta span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.journal-feature h2 { font: 600 19px/1.35 var(--font-display); letter-spacing: -.015em; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.journal-feature h2 a { color: var(--label); }
.journal-feature h2 a:hover { color: var(--link); }
.jf-abstract { color: var(--label-2); font-size: 13.5px; line-height: 1.55; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 1; overflow: hidden; }
.jf-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; margin-top: 2px; color: var(--label-3); font-size: 13px; }
.jf-stats a { color: var(--label-3); }
.jf-stats b { color: var(--label-2); font-variant-numeric: tabular-nums; }
.jf-stats .jf-read { display: inline-flex; align-items: center; gap: 4px; color: var(--link); font-weight: 500; }
.jf-read .wi { width: 14px; height: 14px; }
.jf-more { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2px; align-self: stretch; align-content: center; padding-left: 20px; border-left: .5px solid var(--separator); min-width: 0; }
.jf-more small { color: var(--label-3); font-size: 12px; margin-bottom: 2px; }
.jf-more a { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 5px 0; color: var(--label); font-size: 13.5px; }
.jf-more a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.jf-more a b { flex: none; padding: 1px 7px; border-radius: var(--pill); background: var(--fill-2); color: var(--label-2); font-size: 11.5px; font-weight: 600; }
.jf-more a:hover span { color: var(--link); }
.jf-more .jf-all { color: var(--link); font-size: 13px; }

/* 月度水王榜 · featured banner, an awards night: a near-black stage lit by a warm amber key light behind the podium,
   ember and copper fill from below, champagne bubbles rising; the cool aqua bottles are the only cold colour on it.
   Left: prize ticket and countdown. Right: the 2 · 1 · 3 podium (water level by bottle count, medal caps) and the
   viewer's meter. */
.lb-feature {
  --gold: #ffc94a; --gold-soft: #ffe0a3; --cream: #ffd9b0; --ink: 255, 240, 226;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, .92fr);
  align-items: center;
  gap: 28px 48px;
  padding: clamp(28px, 4.2vw, 56px);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(30% 46% at 72% 14%, rgba(255, 214, 150, .9), rgba(255, 160, 64, .55) 45%, transparent 100%),
    radial-gradient(58% 90% at 76% 30%, rgba(255, 122, 36, .5), rgba(255, 96, 30, .14) 60%, transparent 85%),
    radial-gradient(42% 60% at 102% 104%, rgba(240, 72, 44, .45), transparent 75%),
    radial-gradient(50% 70% at -4% 112%, rgba(255, 150, 70, .22), transparent 72%),
    linear-gradient(160deg, #1d1715 0%, #100d0c 52%, #070606 100%);
  box-shadow: inset 0 1px 0 rgba(255, 226, 190, .22), inset 0 0 0 .5px rgba(255, 210, 160, .08), 0 30px 60px -30px rgba(60, 24, 6, .55), var(--shadow-2);
}
.lb-feature-copy, .lb-feature-board { position: relative; z-index: 1; }
.lbf-bubbles { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.lbf-bubbles i { position: absolute; bottom: -24px; left: var(--x); width: var(--s); height: var(--s); border-radius: 50%; background: radial-gradient(circle at 40% 38%, #fffaf0, rgba(255, 214, 150, .5) 45%, transparent 72%); box-shadow: 0 0 calc(var(--s) * 1.2) rgba(255, 186, 96, .55); opacity: 0; animation: lbf-rise var(--d) linear var(--delay) infinite; }
.lbf-bubbles i:nth-child(1) { --x: 5%; --s: 5px; --d: 12s; --delay: 0s; }
.lbf-bubbles i:nth-child(2) { --x: 14%; --s: 3px; --d: 9s; --delay: 3s; }
.lbf-bubbles i:nth-child(3) { --x: 27%; --s: 6px; --d: 14s; --delay: 6s; }
.lbf-bubbles i:nth-child(4) { --x: 39%; --s: 3px; --d: 10s; --delay: 1.5s; }
.lbf-bubbles i:nth-child(5) { --x: 48%; --s: 5px; --d: 13s; --delay: 8s; }
.lbf-bubbles i:nth-child(6) { --x: 61%; --s: 3px; --d: 8s; --delay: 4.5s; }
.lbf-bubbles i:nth-child(7) { --x: 73%; --s: 4px; --d: 11s; --delay: 2s; }
.lbf-bubbles i:nth-child(8) { --x: 86%; --s: 6px; --d: 15s; --delay: 7s; }
.lbf-bubbles i:nth-child(9) { --x: 95%; --s: 3px; --d: 10s; --delay: 5s; }
@keyframes lbf-rise { 0% { transform: translate(0, 0); opacity: 0; } 10% { opacity: .8; } 50% { transform: translate(12px, -280px); } 85% { opacity: .5; } 100% { transform: translate(-8px, -600px); opacity: 0; } }

.lbf-eyebrow { display: inline-flex; align-items: center; gap: 6px; padding: 6px 13px 6px 10px; border-radius: var(--pill); background: rgba(255, 201, 74, .14); box-shadow: inset 0 0 0 .5px rgba(255, 214, 107, .5); color: var(--gold-soft); font-size: 13px; font-weight: 600; }
.lbf-eyebrow .wi { width: 16px; height: 16px; }
.lb-feature-copy h2 { margin: 18px 0 12px; color: #fff; font-size: clamp(32px, 3.6vw, 50px); letter-spacing: -.034em; line-height: 1.08; }
.lbf-headline-glow { background: linear-gradient(92deg, #fff 0%, var(--gold-soft) 30%, #ffad66 62%, #fff 100%) 0 0 / 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: lbf-sheen 7s ease-in-out infinite alternate; }
@keyframes lbf-sheen { to { background-position: 100% 0; } }
.lbf-rule { color: rgba(var(--ink), .84); font-size: 16px; }

.lbf-stakes { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 20px; }
.lbf-ticket {
  position: relative; display: flex; align-items: center; gap: 12px; min-width: 0; max-width: 100%;
  padding: 11px 22px 11px 14px; overflow: hidden; border-radius: 14px;
  background: linear-gradient(135deg, rgba(255, 220, 120, .3), rgba(255, 180, 60, .1));
  box-shadow: inset 0 0 0 .5px rgba(255, 220, 130, .6);
  -webkit-mask: radial-gradient(circle 7px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
  mask: radial-gradient(circle 7px at 0 50%, #0000 97%, #000) left / 51% 100% no-repeat, radial-gradient(circle 7px at 100% 50%, #0000 97%, #000) right / 51% 100% no-repeat;
}
.lbf-ticket::after, .lb-feature .lbf-cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(105deg, transparent, rgba(255, 255, 255, .45), transparent); transform: skewX(-18deg); animation: lbf-glint 5s ease-in-out 1.2s infinite; pointer-events: none; }
@keyframes lbf-glint { 0%, 55% { left: -60%; } 100% { left: 130%; } }
.lbf-ticket-icon { display: grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 12px; background: linear-gradient(145deg, #ffe08a, #f5a623); color: #5a3300; box-shadow: 0 6px 14px -6px rgba(245, 166, 35, .9), inset 0 1px 0 rgba(255, 255, 255, .6); }
.lbf-ticket-icon .wi { width: 22px; height: 22px; }
.lbf-ticket.has-photo { padding: 10px 24px 10px 12px; }
/* Photos are centre-cropped to fill their frame (object-fit: cover), never stretched or letterboxed; the frame clips them. */
.lbf-ticket.has-photo .lbf-ticket-icon { width: 72px; height: 72px; overflow: hidden; border: 4px solid #fff; border-radius: 16px; background: #fff; box-shadow: 0 0 0 2px rgba(255, 214, 107, .9), 0 12px 24px -10px rgba(255, 160, 50, .95); }
.lbf-ticket-icon img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: center; transition: transform .5s var(--spring); }
.lbf-ticket.has-photo:hover .lbf-ticket-icon img { transform: scale(1.08) rotate(-3deg); }
.lbf-ticket > span:last-child { display: grid; gap: 3px; min-width: 0; }
.lbf-ticket small { color: rgba(255, 236, 190, .85); font-size: 12px; font-weight: 600; }
.lbf-ticket strong { overflow: hidden; color: #fff; font: 600 17px/1.2 var(--font-display); text-overflow: ellipsis; white-space: nowrap; }
.lbf-ticket strong.is-pending { color: var(--gold-soft); }
.lbf-ticket strong::first-letter { text-transform: uppercase; }
.lbf-clock { display: grid; align-content: center; gap: 6px; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .18); }
.lbf-clock > small { display: inline-flex; align-items: center; gap: 5px; color: rgba(var(--ink), .7); font-size: 12px; font-weight: 600; }
.lbf-clock > small .wi { width: 13px; height: 13px; }
.lbf-clock time { display: flex; gap: 8px; }
.lbf-clock time > span { display: inline-flex; align-items: baseline; gap: 3px; }
.lbf-clock b { min-width: 1.6em; padding: 4px 5px; border-radius: 8px; background: rgba(20, 8, 2, .45); box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .08); font: 650 20px/1 var(--font-display); font-variant-numeric: tabular-nums; letter-spacing: -.02em; text-align: center; }
.lbf-clock time small { color: rgba(var(--ink), .66); font-size: 12px; }
.lbf-clock strong { font: 600 18px/1.3 var(--font-display); }
.lbf-bonus { display: flex; align-items: center; gap: 6px; margin-top: 14px; color: rgba(var(--ink), .72); font-size: 13.5px; }
.lbf-bonus .wi { flex: none; width: 15px; height: 15px; color: var(--gold-soft); }
.lbf-bonus span { display: inline-block; }
.lbf-bonus span::first-letter { text-transform: uppercase; }
.lb-feature .tile-actions { margin-top: 24px; }
.lb-feature .btn.primary { overflow: hidden; background: #fff; color: #1d130c; box-shadow: 0 12px 30px -12px rgba(255, 170, 80, .9); }
.lb-feature .btn.primary .wi { width: 18px; height: 18px; color: #1a9be0; }
.lb-feature .btn.primary:hover { background: #fff4e8; }
.lb-feature .text-link { color: var(--cream); }

.lb-feature-board {
  display: grid; gap: 12px; padding: 18px 18px 16px; overflow: hidden;
  border-radius: var(--r-lg); corner-shape: squircle;
  background: linear-gradient(180deg, rgba(255, 244, 232, .1), rgba(30, 12, 4, .16));
  box-shadow: inset 0 .5px 0 rgba(255, 255, 255, .4), inset 0 0 0 .5px rgba(255, 255, 255, .18), 0 28px 60px -26px rgba(20, 6, 0, .75);
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  color: #fff; text-decoration: none !important;
  transition: transform .5s var(--spring);
}
.lb-feature-board:hover { transform: translateY(-3px); }
.lb-feature-board-title { color: rgba(var(--ink), .75); font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }

.lbf-stage { position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 8px; padding-top: 4px; }
.lbf-rays { position: absolute; left: 50%; top: -60px; width: 340px; height: 340px; margin-left: -170px; border-radius: 50%; background: repeating-conic-gradient(rgba(255, 232, 190, .16) 0 7deg, transparent 7deg 20deg); -webkit-mask: radial-gradient(closest-side, #000 10%, transparent); mask: radial-gradient(closest-side, #000 10%, transparent); animation: lbf-spin 48s linear infinite; pointer-events: none; }
@keyframes lbf-spin { to { transform: rotate(1turn); } }
.lbf-slot { --medal: #cfd9e4; --step: 66px; position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; }
.lbf-slot.place-1 { --medal: #ffc94a; --step: 90px; }
.lbf-slot.place-3 { --medal: #e3a06b; --step: 50px; }
.lbf-slot.is-open { --medal: rgba(255, 255, 255, .22); }
.lbf-crown { width: 28px; height: 28px; margin-bottom: 2px; color: var(--gold); filter: drop-shadow(0 2px 8px rgba(255, 200, 80, .9)); animation: lbf-bob 3.2s ease-in-out infinite; }
@keyframes lbf-bob { 50% { transform: translateY(-4px) rotate(-7deg); } }
.lbf-face { display: grid; padding: 3px; border-radius: 50%; background: conic-gradient(from 210deg, var(--medal), #fff 30%, var(--medal) 60%, #fff 85%, var(--medal)); box-shadow: 0 6px 20px -6px var(--medal); }
.lbf-face .avatar { display: grid; place-items: center; width: 42px; height: 42px; font-size: 16px; box-shadow: 0 0 0 2px #1c120c; }
.place-1 .lbf-face .avatar { width: 54px; height: 54px; font-size: 21px; }
.is-open .lbf-face { background: none; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .3); }
.lbf-avatar-open { background: rgba(255, 255, 255, .06); color: rgba(var(--ink), .55); font-weight: 600; box-shadow: none !important; }
.lbf-name { max-width: 100%; margin: 6px 0 4px; overflow: hidden; font-size: 13.5px; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.place-1 .lbf-name { font-size: 15px; }
.is-open .lbf-name { color: rgba(var(--ink), .55); font-weight: 500; }
.lbf-bottle { width: 50px; height: auto; overflow: visible; filter: drop-shadow(0 10px 12px rgba(20, 6, 0, .5)); transition: transform .5s var(--spring); }
.place-1 .lbf-bottle { width: 64px; }
.lb-feature-board:hover .lbf-bottle { transform: translateY(-3px) rotate(-2deg); }
.lb-feature-board:hover .place-1 .lbf-bottle { transform: translateY(-5px) rotate(2deg); }
.lbf-glass { fill: rgba(255, 255, 255, .1); stroke: rgba(255, 255, 255, .6); stroke-width: 1.4; }
.is-open .lbf-glass { fill: rgba(255, 255, 255, .03); stroke: rgba(255, 255, 255, .3); stroke-dasharray: 4 4; }
.lbf-water { animation: lbf-fill 1.8s var(--spring) .25s both; }
.place-2 .lbf-water { animation-delay: .4s; }
.place-3 .lbf-water { animation-delay: .55s; }
@keyframes lbf-fill { from { transform: translateY(150px); } }
.lbf-wave { animation: lbf-wave 2.6s linear infinite; }
.lbf-wave path { fill: rgba(90, 200, 250, .88); }
.place-1 .lbf-wave path { fill: rgba(120, 214, 255, .95); }
@keyframes lbf-wave { to { transform: translateX(-32px); } }
.lbf-water circle { fill: rgba(255, 255, 255, .6); animation: lbf-fizz 3.4s ease-in infinite; }
.lbf-water circle:nth-of-type(2) { animation-delay: 1.1s; }
.lbf-water circle:nth-of-type(3) { animation-delay: 2.2s; }
@keyframes lbf-fizz { from { transform: translateY(60px); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(-34px); opacity: 0; } }
.lbf-ridges { fill: none; stroke: rgba(255, 255, 255, .22); stroke-width: 1; }
.lbf-label { fill: rgba(255, 255, 255, .26); }
.lbf-stripe { stroke: var(--medal); stroke-width: 4; }
.is-open .lbf-label, .is-open .lbf-stripe { opacity: .3; }
.lbf-shine { fill: none; stroke: rgba(255, 255, 255, .5); stroke-width: 3; stroke-linecap: round; }
.lbf-cap { fill: var(--medal); }
.lbf-step {
  position: relative; display: grid; justify-items: center; align-content: start;
  width: 100%; height: var(--step); margin-top: -1px; padding-top: 9px; overflow: hidden;
  border-radius: 12px 12px 3px 3px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .17), rgba(255, 255, 255, .03));
  box-shadow: inset 0 2px 0 var(--medal), inset 0 0 0 .5px rgba(255, 255, 255, .14);
}
.place-1 .lbf-step { background: linear-gradient(180deg, rgba(255, 214, 107, .28), rgba(255, 214, 107, .04)); }
.lbf-step b { position: absolute; right: 6px; bottom: -10px; color: rgba(255, 255, 255, .09); font: 800 52px/1 var(--font-display); }
.place-1 .lbf-step b { bottom: -6px; font-size: 64px; color: rgba(255, 214, 107, .16); }
.lbf-count { position: relative; font: 650 19px/1 var(--font-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.place-1 .lbf-count { color: var(--gold-soft); font-size: 25px; }
.lbf-count small { color: rgba(var(--ink), .66); font-size: 12px; font-weight: 500; }
small.lbf-count { color: rgba(var(--ink), .5); font-size: 12.5px; font-weight: 600; }
.lb-feature-empty { display: flex; align-items: center; justify-content: center; gap: 8px; color: rgba(var(--ink), .84); font-size: 13.5px; text-align: center; }
.lb-feature-empty .wi { flex: none; width: 20px; height: 20px; }
.lb-feature-me { display: grid; gap: 8px; padding: 12px 14px; border-radius: 16px; background: rgba(20, 8, 2, .38); box-shadow: inset 0 0 0 .5px rgba(255, 255, 255, .12); color: rgba(var(--ink), .84); font-size: 13.5px; }
.lbf-me-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.lbf-me-head strong { color: #fff; font: 600 20px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.lbf-me-head small { color: rgba(var(--ink), .66); font-size: 12px; font-weight: 500; }
.lbf-meter { position: relative; height: 8px; overflow: hidden; border-radius: var(--pill); background: rgba(255, 255, 255, .12); }
.lbf-meter i { position: absolute; inset: 0 auto 0 0; border-radius: inherit; width: var(--meter, 0%); background: linear-gradient(90deg, #5ac8fa, var(--gold-soft)); box-shadow: 0 0 12px rgba(255, 214, 107, .6); transition: width 1.6s var(--spring) .3s; }
.lb-feature-gap { display: inline-flex; align-items: center; gap: 5px; color: var(--gold-soft); font-size: 12.5px; font-weight: 600; }
.lb-feature-gap .wi { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) {
  .lbf-bubbles, .lbf-water circle { display: none; }
  .lb-feature *, .lb-feature *::after { animation: none !important; }
}
@media (max-width: 520px) {
  .lb-feature-copy h2 { font-size: 30px; }
  .lbf-stakes { display: grid; }
  .lbf-bottle { width: 42px; }
  .place-1 .lbf-bottle { width: 54px; }
  .lbf-slot { --step: 58px; }
  .lbf-slot.place-1 { --step: 78px; }
  .lbf-slot.place-3 { --step: 44px; }
}

/* Deep-water feature banner. */
.tile-raffle {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  align-items: center;
  gap: 24px 40px;
  min-height: 400px;
  padding: clamp(28px, 4.4vw, 60px);
  border-radius: var(--r-xl);
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 440px at 88% 125%, rgba(90, 200, 250, .5), transparent 62%),
    radial-gradient(700px 380px at 8% -25%, rgba(48, 176, 199, .38), transparent 62%),
    linear-gradient(162deg, #0d5585 0%, #083556 46%, #06233a 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), var(--shadow-2);
}
.tile-raffle .tile-eyebrow { color: rgba(214, 240, 255, .78); }
.raffle-feature-copy h2 { margin: 14px 0 14px; color: #fff; font-size: clamp(30px, 3.4vw, 46px); letter-spacing: -.034em; line-height: 1.08; }
.raffle-feature-copy > p { color: rgba(225, 242, 252, .8); font-size: 16px; }
.raffle-feature-facts { margin-top: 8px; color: rgba(225, 242, 252, .56) !important; font-size: 13px !important; }
.tile-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 28px; }
.tile-raffle .btn.primary { background: #fff; color: #06233a; }
.tile-raffle .btn.primary:hover { background: #e6f4fb; }
.tile-raffle .text-link { color: #8fdcff; }
.raffle-feature-art { display: block; }
.raffle-feature-art img { width: 100%; max-height: 300px; object-fit: contain; filter: drop-shadow(0 26px 30px rgba(0, 10, 30, .45)); transition: transform .8s var(--spring); }
.raffle-feature-art:hover img { transform: scale(1.03) rotate(-1deg); }

/* ---------- Pulse strip ---------- */
.pulse-bar {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
  gap: 16px 32px;
  margin-top: 16px !important;
  padding: 14px 16px 14px 22px;
  border-radius: var(--r-xl); corner-shape: squircle;
  background-color: var(--glass);
  background-image: var(--sheen);
  border: .5px solid var(--glass-edge);
  box-shadow: inset 0 .5px 0 var(--glass-edge), var(--shadow-1), inset 0 0 0 .5px var(--separator);
}
.pulse-online { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 16px; min-width: 0; }
.pulse-online > strong { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; white-space: nowrap; }
.pulse-dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--green-dot); }
.pulse-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--green-dot); opacity: 0; animation: pulse-ring 2.4s var(--ease) infinite; }
@keyframes pulse-ring { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.6); opacity: 0; } }
.online-count { display: inline-grid; place-items: center; min-width: 24px; height: 22px; padding: 0 7px; border-radius: var(--pill); background: color-mix(in srgb, var(--green-dot) 16%, transparent); color: var(--green); font: 600 12px/1 var(--font); }
.online-mini-list { display: flex; align-items: center; }
.pulse-bar .online-mini-person { margin-left: -8px; }
.pulse-bar .online-mini-person:first-child { margin-left: 0; }
.pulse-bar .online-mini-person > span:last-child { display: none; }
.pulse-bar .online-avatar-wrap > .avatar { width: 34px; height: 34px; font-size: 13px; box-shadow: 0 0 0 2px var(--surface-solid); }
.pulse-bar .presence-dot { width: 9px; height: 9px; }
.pulse-bar .muted.small { margin: 0; }
.pulse-online .text-link { font-size: 14px; }
.pulse-stats { display: flex; gap: 6px; margin: 0; }
.pulse-stats .stat { display: flex; flex-direction: column-reverse; justify-content: flex-end; min-width: 96px; padding: 4px 16px; border-left: .5px solid var(--separator); }
.pulse-stats dd { margin: 0; font: 600 26px/1.05 var(--font-display); letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.pulse-stats dt { color: var(--label-2); font-size: 12px; }
.online-mini-person { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 60px; color: var(--label-2); font-size: 12px; text-align: center; }
.online-avatar-wrap > .avatar { width: 46px; height: 46px; font-size: 17px; }
.presence-dot { position: absolute; right: 0; bottom: 0; width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface-solid); }
.presence-dot.is-active { background: var(--green-dot); }
.presence-dot.is-idle { background: var(--orange-dot); }

/* ---------- Feed: split view ---------- */
.feed-split { display: grid; grid-template-columns: 250px minmax(0, 720px); justify-content: center; align-items: start; gap: 44px; padding-top: clamp(52px, 6vw, 88px); }
.feed-side { position: sticky; top: calc(var(--bar-h) + 34px); }
.feed-side h2 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.034em; }
.feed-side > p { margin: 8px 0 20px; color: var(--label-2); font-size: 15px; }
.feed-side .feed-tabs {
  position: static; flex-direction: column; width: 100%; margin: 0; padding: 6px;
  border-radius: var(--r-lg); corner-shape: squircle;
  background: var(--surface); box-shadow: var(--shadow-1), inset 0 0 0 .5px var(--separator);
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.feed-side .feed-tabs a { justify-content: flex-start; min-height: 40px; padding: 9px 14px; border-radius: 12px; corner-shape: squircle; font-size: 15px; }
.feed-side .feed-tabs a.active { background: var(--accent-soft); color: var(--accent); box-shadow: none; font-weight: 600; }
:root[data-theme="dark"] .feed-side .feed-tabs a.active { background: var(--accent-soft); }
.feed-side .rail-footnote { margin-top: 16px; text-align: left; }
.feed-column { width: 100%; min-width: 0; }
.feed-column > * + * { margin-top: 14px; }
.rail-footnote { color: var(--label-3); font-size: 12.5px; line-height: 1.6; }

.composer {
  padding: 18px 18px 14px;
  border-radius: var(--r-lg); corner-shape: squircle;
  background: var(--surface);
  box-shadow: var(--shadow-1), inset 0 0 0 .5px var(--separator);
}
.composer-title { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.composer-title strong { font-size: 15px; font-weight: 600; }
.composer-title .avatar { width: 36px; height: 36px; font-size: 14px; }
.composer textarea { min-height: 88px; background: var(--fill-3); }
.composer form { display: grid; gap: 12px; }
.composer-bottom { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.composer-bottom select { width: auto; min-width: 140px; min-height: 36px; padding: 6px 34px 6px 14px; border-radius: var(--pill); font-size: 14px; background-color: var(--fill-2); }
.composer-bottom .char-counter { margin-left: auto; }
.guest-composer-input { display: block; padding: 14px 16px; border-radius: var(--r-sm); corner-shape: squircle; background: var(--fill-3); box-shadow: inset 0 0 0 .5px var(--separator); color: var(--label-2); font-size: 15px; text-decoration: none !important; margin-bottom: 12px; }
.guest-composer-input:hover { background: var(--fill-2); }
.guest-composer .composer-bottom { justify-content: space-between; }

/* Segmented control. */
.feed-tabs, .raffle-tabs, .build-tabs, .wm-tabs, .wd-tabs, .jb-sort {
  position: sticky;
  top: calc(var(--bar-h) + 22px);
  z-index: 20;
  display: flex;
  gap: 2px;
  width: fit-content;
  max-width: 100%;
  margin-left: auto; margin-right: auto;
  padding: 3px;
  border-radius: var(--pill);
  background-color: color-mix(in srgb, var(--fill) 70%, var(--glass));
  background-image: var(--sheen);
  box-shadow: inset 0 .5px 0 var(--glass-edge), inset 0 0 0 .5px var(--separator), 0 6px 20px -8px rgba(0, 0, 0, .12);
  overflow-x: auto;
  scrollbar-width: none;
}
.feed-tabs::-webkit-scrollbar, .raffle-tabs::-webkit-scrollbar, .build-tabs::-webkit-scrollbar, .wm-tabs::-webkit-scrollbar, .wd-tabs::-webkit-scrollbar, .jb-sort::-webkit-scrollbar { display: none; }
.feed-tabs a, .raffle-tabs a, .build-tabs a, .wm-tabs a, .wd-tabs a, .jb-sort a {
  position: relative;
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 6px 16px;
  border-radius: var(--pill);
  color: var(--label-2);
  font-size: 14px; font-weight: 500;
  white-space: nowrap;
  text-decoration: none !important;
  transition: color .2s var(--ease), background-color .2s var(--ease), box-shadow .2s var(--ease);
}
.feed-tabs a:hover, .raffle-tabs a:hover, .build-tabs a:hover, .wm-tabs a:hover, .wd-tabs a:hover, .jb-sort a:hover { color: var(--label); }
.feed-tabs a.active, .raffle-tabs a.active, .build-tabs a.active, .wm-tabs a.active, .wd-tabs a.active, .jb-sort a.active {
  background: var(--surface);
  color: var(--label);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 3px 8px rgba(0, 0, 0, .06), inset 0 0 0 .5px var(--separator);
}
:root[data-theme="dark"] .feed-tabs a.active, :root[data-theme="dark"] .raffle-tabs a.active, :root[data-theme="dark"] .build-tabs a.active, :root[data-theme="dark"] .wm-tabs a.active, :root[data-theme="dark"] .wd-tabs a.active, :root[data-theme="dark"] .jb-sort a.active { background: #2a3a48; }

/* ---------- Post card ---------- */
.post-card { padding: 20px 22px 12px; }
.post-card + .post-card { margin-top: 12px; }
.post-head { display: flex; align-items: center; gap: 12px; }
.post-author { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.post-author strong { display: flex; align-items: center; gap: 6px; font-size: 15px; font-weight: 600; }
.post-author strong .tag { min-height: 20px; padding: 1px 8px; font-size: 11px; }
.post-author time { color: var(--label-3); font-size: 13px; }
.content-edited { color: var(--label-3); font-size: 12px; }
.post-head > .tag { align-self: flex-start; }
.post-body { margin: 14px 0 4px; color: var(--label); font-size: 16px; line-height: 1.62; overflow-wrap: anywhere; }
.post-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; margin: 10px -8px 0; padding-top: 6px; border-top: .5px solid var(--separator); }
.post-actions form { margin: 0; }
.post-actions .text-button { color: var(--label-2); }
.post-actions .delete-post { margin-left: auto; }
.text-button.liked { color: #ff2d55; }
.text-button.liked .wi { fill: currentColor; }
.post-translation { margin-top: 12px; padding: 14px 16px; border-radius: var(--r-md); corner-shape: squircle; background: var(--fill-3); }
.post-translation h3 { font-size: 14px; }
.post-translation small { display: block; margin-top: 2px; color: var(--label-3); font-size: 12px; }
.post-translation p { margin: 8px 0 4px; line-height: 1.6; }
.post-card.card-error { box-shadow: var(--shadow-1), inset 0 0 0 1px var(--red); }

/* Images. */
.community-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 6px; margin: 12px 0 4px; }
.community-images a { display: block; aspect-ratio: 1; border-radius: var(--r-sm); corner-shape: squircle; overflow: hidden; background: var(--fill-2); }
.community-images img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--spring); }
.community-images a:hover img { transform: scale(1.03); }
.community-images:has(> a:only-child) { grid-template-columns: minmax(0, 420px); }
.community-images:has(> a:only-child) a { aspect-ratio: auto; max-height: 460px; }
/* A photo the queue is still compressing: a quiet tile of the same size (a lone photo keeps its proportions). */
.community-images .community-image-pending { display: grid; place-items: center; aspect-ratio: 1; border-radius: var(--r-sm); corner-shape: squircle; background: var(--fill-2); color: var(--label-3); font-size: 13px; }
.community-images:has(> .community-image-pending:only-child) { grid-template-columns: minmax(0, 420px); }
.community-images .community-image-pending:only-child { max-height: 460px; }
.community-image-failed { margin: 6px 0 0; }
.community-image-picker { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.image-pick-label { position: relative; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; padding: 6px 14px; border-radius: var(--pill); background: var(--fill-2); color: var(--label); font-size: 13.5px; font-weight: 500; cursor: pointer; overflow: hidden; }
.image-pick-label:hover { background: var(--fill); }
.image-pick-label input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.community-image-picker > .small { color: var(--label-3); font-size: 12px; }
.image-pick-previews { display: flex; flex-wrap: wrap; gap: 8px; width: 100%; }
.image-pick-previews:empty { display: none; }
.image-pick-item { position: relative; width: 76px; height: 76px; border-radius: 14px; corner-shape: squircle; overflow: hidden; background: var(--fill-2); }
.image-pick-item img { width: 100%; height: 100%; object-fit: cover; }
.image-pick-item button { position: absolute; top: 4px; right: 4px; display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .55); color: #fff; font-size: 14px; line-height: 1; -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.image-pick-error { width: 100%; color: var(--red); font-size: 13px; }
.community-image-dialog { width: min(1100px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: var(--r-lg); background: transparent; overflow: visible; }
.community-image-dialog::backdrop { background: rgba(0, 0, 0, .82); }
.community-image-dialog img { max-width: 100%; max-height: calc(100dvh - 120px); margin: 0 auto; border-radius: var(--r-md); object-fit: contain; }
.community-image-dialog a { display: block; margin-top: 12px; color: rgba(255, 255, 255, .85); font-size: 14px; text-align: center; }
.image-view-close { position: fixed; top: 16px; right: 16px; display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.image-view-status { color: rgba(255, 255, 255, .7); font-size: 13px; text-align: center; }
.edit-existing-images > div { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }
.edit-existing-images label { display: grid; gap: 6px; width: 110px; font-size: 13px; font-weight: 400; color: var(--label-2); }
.edit-existing-images img { width: 110px; height: 110px; border-radius: 14px; object-fit: cover; }
.edit-existing-images span { display: flex; align-items: center; gap: 6px; }

/* ---------- Polls ---------- */
.poll-composer { border-radius: var(--r-md); corner-shape: squircle; background: var(--fill-3); box-shadow: inset 0 0 0 .5px var(--separator); }
.poll-composer > summary { display: flex; align-items: center; gap: 8px; padding: 11px 14px; color: var(--label); font-size: 14px; font-weight: 500; cursor: pointer; list-style: none; }
.poll-composer > summary::-webkit-details-marker { display: none; }
.poll-composer > summary::after { content: "›"; margin-left: auto; color: var(--label-3); font-size: 18px; line-height: 1; transition: transform .2s var(--ease); }
.poll-composer[open] > summary::after { transform: rotate(90deg); }
.poll-composer > summary .wi { width: 18px; height: 18px; color: var(--label-2); }
.poll-composer > summary small { color: var(--label-2); font-size: 12px; }
.poll-composer > :not(summary) { margin: 0 14px 12px; }
[data-poll-fields] { display: grid; gap: 12px; }
[data-poll-fields] > label { display: grid; gap: 6px; font-size: 13.5px; font-weight: 500; }
[data-poll-fields] small { color: var(--label-3); font-weight: 400; }
.poll-option-editor { display: grid; gap: 8px; }
.poll-option-editor label { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--label-2); }
.poll-option-editor label > span { display: flex; align-items: center; gap: 6px; }
.poll-option-editor .text-button { width: 34px; justify-content: center; font-size: 18px; }

.post-poll { margin: 14px 0 4px; padding: 16px; border-radius: var(--r-md); corner-shape: squircle; background: var(--fill-3); box-shadow: inset 0 0 0 .5px var(--separator); }
.poll-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; color: var(--label-2); font-size: 12.5px; }
.post-poll h3 { margin: 10px 0 12px; font-size: 17px; }
.poll-results { display: grid; gap: 10px; }
.poll-result > div { display: flex; justify-content: space-between; gap: 10px; margin-bottom: 5px; font-size: 14px; }
.poll-result > div span { color: var(--label-2); font-variant-numeric: tabular-nums; }
.poll-result.is-mine strong { color: var(--accent); }
.poll-meter { width: 100%; height: 8px; border-radius: 4px; overflow: hidden; }
.poll-track { fill: var(--fill); }
.poll-fill { fill: var(--label-2); }
.poll-result.is-mine .poll-fill { fill: var(--accent); }
.poll-vote-form fieldset, .global-ballot-form fieldset { display: grid; gap: 8px; }
.poll-choice { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-sm); corner-shape: squircle; background: var(--surface); box-shadow: inset 0 0 0 .5px var(--separator-strong); font-size: 15px; cursor: pointer; transition: box-shadow .2s var(--ease), background-color .2s var(--ease); }
.poll-choice:hover { background: var(--surface-2); }
.poll-choice:has(input:checked) { box-shadow: inset 0 0 0 1.5px var(--accent); background: var(--accent-soft); }
.poll-vote-form .btn { margin-top: 12px; }
.poll-footnote { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; margin-top: 12px; color: var(--label-3); font-size: 12px; }
.post-poll > .muted { margin-bottom: 10px; font-size: 14px; }

/* ---------- Comments & post page ---------- */
#comments { padding: 22px; }
#comments .section-title h2 { font-size: 21px; }
/* Replies opened under a post in the feed (InlineComments.vue). */
.post-comments-inline { margin-top: 8px; padding-top: 4px; border-top: .5px solid var(--separator); }
.post-comments-inline > .muted:first-child { padding-top: 12px; }
.post-comments-status { padding: 14px 0 4px; font-size: 14px; }
.post-actions .comments-open { color: var(--accent); }
.comment { display: flex; gap: 12px; padding: 14px 0; border-top: .5px solid var(--separator); }
.comment:first-of-type { border-top: 0; }
.comment > .avatar { width: 34px; height: 34px; font-size: 13px; }
.comment > div { flex: 1; min-width: 0; }
.comment strong { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 8px; font-size: 14px; font-weight: 600; }
.comment time { color: var(--label-3); font-size: 12px; font-weight: 400; }
.comment p { margin-top: 4px; font-size: 15px; line-height: 1.6; overflow-wrap: anywhere; }
.comment-recipient { display: inline-block; margin-top: 2px; color: var(--label-3); font-size: 12.5px; }
.comment-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 0; margin: 4px -10px 0; }
.comment-controls form { margin: 0; }
.comment-controls .text-button { font-size: 13px; min-height: 28px; }
.comment-controls .wi { width: 15px; height: 15px; }
.comment-withdrawn p { color: var(--label-3); font-style: italic; }
.comment-withdrawn > .avatar { opacity: .45; }
.comment-form { margin-top: 18px; padding-top: 18px; border-top: .5px solid var(--separator); }
.comment-form > label { font-size: 14px; }
.comment-form .btn { justify-self: start; }
.reply-context { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 8px 14px; border-radius: var(--pill); background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 500; }
.guest-comment-prompt { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 16px; padding: 16px 18px; border-radius: var(--r-md); background: var(--fill-3); }
.guest-comment-prompt p { color: var(--label-2); font-size: 14px; }

.content-editor { max-width: 760px; margin: 24px auto 0; padding: 28px; }
.content-editor h1 { margin: 12px 0 8px; font-size: clamp(28px, 3vw, 36px); }
.content-editor > .muted { margin-bottom: 22px; }

/* ---------- Global ballot ---------- */
.global-gate-page { display: grid; place-items: center; min-height: 60vh; padding: 24px 0; }
.global-ballot { width: 100%; max-width: 480px; padding: 32px 28px 24px; border-radius: var(--r-xl); corner-shape: squircle; background: var(--surface); box-shadow: var(--shadow-2), inset 0 0 0 .5px var(--separator); text-align: center; }
.global-poll-dialog .global-ballot { padding: 0; background: transparent; box-shadow: none; }
.global-ballot > .overline { display: none; }
.global-ballot-symbol { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 16px; corner-shape: squircle; background: var(--material); color: var(--material-ink); box-shadow: inset 0 .5px 0 var(--material-rim), var(--shadow-1); }
.global-ballot-symbol .wi { width: 26px; height: 26px; }
.global-ballot-label { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--label-2); font-size: 13px; font-weight: 600; }
.global-ballot h2 { margin: 10px 0 8px; font-size: 24px; }
.global-ballot-description { color: var(--label-2); font-size: 15px; margin-bottom: 8px; }
.global-ballot > .muted { margin-bottom: 18px; }
.global-ballot-form { display: grid; gap: 12px; text-align: left; }
.global-ballot-form .btn { margin-top: 6px; }
.global-decline { justify-self: center; }
.global-answer-error { color: var(--red); font-size: 13px; text-align: center; }
.global-deadline { margin-top: 16px; color: var(--label-2); font-size: 13px; }
.global-ballot-exit { display: flex; justify-content: center; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: .5px solid var(--separator); }
.global-ballot-exit form { margin: 0; }

/* ---------- Development notice ---------- */
.feature-development { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r-md); corner-shape: squircle; background: var(--fill-2); }
.feature-development-icon { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--surface); color: var(--label-2); box-shadow: inset 0 0 0 .5px var(--separator); }
.feature-development-icon .wi { width: 18px; height: 18px; }
.feature-development > div { flex: 1; min-width: 0; }
.feature-development strong { font-size: 14px; }
.feature-development p { color: var(--label-2); font-size: 13px; }
.development-dialog-symbol { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 6px; border-radius: 16px; corner-shape: squircle; background: var(--fill); color: var(--label-2); }
.development-dialog-symbol .wi { width: 26px; height: 26px; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .home-today { grid-template-columns: minmax(0, 1fr) minmax(300px, .9fr); gap: 32px 48px; }
  .feed-split { grid-template-columns: 220px minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 960px) {
  .feed-tabs, .raffle-tabs, .build-tabs, .wm-tabs, .wd-tabs, .jb-sort { top: calc(var(--bar-h) + 14px); }
  .feed-split { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .feed-side { position: static; }
  .feed-side > p { margin-bottom: 14px; }
  .feed-side .feed-tabs {
    position: sticky; top: calc(var(--bar-h) + 14px); z-index: 20;
    flex-direction: row; width: fit-content; max-width: 100%; padding: 3px;
    border-radius: var(--pill);
    background-color: color-mix(in srgb, var(--fill) 70%, var(--glass)); background-image: var(--sheen);
    box-shadow: inset 0 .5px 0 var(--glass-edge), inset 0 0 0 .5px var(--separator), 0 6px 20px -8px rgba(10, 40, 70, .14);
    -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  }
  .feed-side .feed-tabs a { min-height: 32px; padding: 6px 16px; border-radius: var(--pill); font-size: 14px; }
  .feed-side .feed-tabs a.active { background: var(--surface); color: var(--label); box-shadow: 0 1px 2px rgba(0, 0, 0, .08), 0 3px 8px rgba(0, 0, 0, .06), inset 0 0 0 .5px var(--separator); }
  .feed-side .rail-footnote { display: none; }
  .tile-raffle { grid-template-columns: 1fr; min-height: 0; padding: 30px 26px 24px; }
  .lb-feature {
    grid-template-columns: 1fr; padding: 30px 22px 22px;
    /* Stacked: the key light moves down onto the podium. */
    background:
      radial-gradient(60% 22% at 50% 64%, rgba(255, 214, 150, .85), rgba(255, 160, 64, .5) 45%, transparent 100%),
      radial-gradient(110% 40% at 50% 70%, rgba(255, 122, 36, .45), rgba(255, 96, 30, .12) 60%, transparent 85%),
      radial-gradient(70% 20% at 100% 100%, rgba(240, 72, 44, .4), transparent 75%),
      radial-gradient(80% 25% at 0% 0%, rgba(255, 150, 70, .2), transparent 72%),
      linear-gradient(180deg, #1d1715 0%, #100d0c 40%, #070606 100%);
  }
  .raffle-feature-art img { max-height: 220px; }
}
@media (max-width: 860px) {
  .home-today { grid-template-columns: 1fr; gap: 28px; padding-top: 22px; }
  .today-object { max-width: 440px; width: 100%; margin: 8px auto 0; padding-bottom: 56px; }
  .water-level-card { --pose-x: 6deg; --pose-y: -8deg; --pose-z: 1deg; }
  .today-chip { left: 12px; }
  .card-row {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: min(78%, 320px);
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 10px;
    scroll-padding: 0 var(--gutter);
  }
  .card-row::-webkit-scrollbar { display: none; }
  .card-row .tile { scroll-snap-align: start; min-height: 200px; }
  .journal-feature { grid-template-columns: minmax(0, 1fr); gap: 10px; padding: 18px 18px 16px 20px; }
  .jf-abstract, .jf-more a:not(.jf-all), .jf-more small { display: none; }
  .jf-more { padding: 0; border: 0; }
  .journal-feature h2 { font-size: 17px; }
  .pulse-bar { flex-direction: column; align-items: stretch; gap: 14px; padding: 16px 18px; }
  .pulse-stats .stat { flex: 1; min-width: 0; padding: 2px 12px; }
  .pulse-stats .stat:first-child { border-left: 0; padding-left: 0; }
}
@media (max-width: 760px) {
  .feed-tabs, .raffle-tabs, .build-tabs, .wm-tabs, .wd-tabs, .jb-sort { margin-left: 0; }
  .post-card { padding: 18px 16px 10px; }
  .post-actions .delete-post { margin-left: 0; }
  .composer-bottom select { flex: 1; }
  .content-editor { padding: 22px 18px; }
}
