:root {
  --bg: #0b0d12;
  --bg2: #13161d;
  --panel: #171a22;
  --line: #262a35;
  --text: #f2f3f5;
  --muted: #9599a8;
  --accent: #c8f53a;       /* VEWD lime */
  --accent-soft: #e4ff8f;
  --accent-ink: #0b0d12;
  --purple: #7b5cff;
  --red: #ff5d5d;
  --green: #5fd68b;
  --dim: #343846;
  --radius: 14px;
  --serif: "Plus Jakarta Sans", "Inter", system-ui, sans-serif; /* display font (kept var name) */
  --sans: "Inter", system-ui, -apple-system, Segoe UI, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 var(--sans); max-width: 100%; overflow-x: hidden; }
@supports (overflow-x: clip) { html, body { overflow-x: clip; } } /* clip keeps the sticky header working */
main, .page, .panel, .card, .card-body, .who, .who > div { min-width: 0; overflow-wrap: anywhere; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
img { display: block; max-width: 100%; }
code { background: var(--bg2); padding: 1px 5px; border-radius: 4px; font-size: .9em; }
.muted { color: var(--muted); }
.small { font-size: 12.5px; }
.ok { color: var(--green); }
.center { min-height: 70vh; display: grid; place-items: center; padding: 16px; }
[hidden] { display: none !important; }

/* ---------- top & bottom nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  padding: 10px 24px; background: rgba(15,17,21,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; line-height: 0; flex: none; }
.brand svg { height: 26px; width: auto; display: block; }
.brand.big svg { height: 54px; }
.nav { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav a { white-space: nowrap; }
@media (max-width: 960px) { .topbar { gap: 12px; } .topbar-right .ghost.small { padding: 5px 9px; } }
.nav a { padding: 6px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.nav a.active { color: var(--text); background: var(--panel); }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.bell { position: relative; font-size: 18px; padding: 4px 6px; line-height: 1; }
.bell-badge { position: absolute; top: -4px; right: -6px; background: var(--red); color: #fff; font: 700 10px var(--sans); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; display: grid; place-items: center; }
.notif-head { display: flex; align-items: center; justify-content: space-between; }
.notif { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; }
.notif.unread { border-color: var(--accent); }
.notif .t { color: var(--accent); }
.avatar-btn { border: 0; background: none; padding: 0; cursor: pointer; }

.bottomnav { display: none; }

@media (max-width: 720px) {
  .topbar { padding: 10px 16px; gap: 12px; }
  .brand svg { height: 22px; }
  .nav { display: none; }
  .bottomnav {
    display: grid; grid-template-columns: repeat(4, 1fr);
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 20;
    background: rgba(22,25,33,.96); backdrop-filter: blur(10px); border-top: 1px solid var(--line);
    padding-bottom: env(safe-area-inset-bottom);
  }
  .bottomnav a { display: flex; flex-direction: column; align-items: center; padding: 8px 0; font-size: 11px; color: var(--muted); }
  .bottomnav a span { font-size: 18px; }
  .bottomnav a.active { color: var(--accent); }
  body { padding-bottom: 70px; }
}

/* ---------- buttons & inputs ---------- */
.btn {
  border: 1px solid var(--line); background: var(--panel); color: var(--text);
  padding: 9px 16px; border-radius: 999px; font: 600 14px var(--sans); cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.ghost, .ghost { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.ghost.small { padding: 5px 12px; border-radius: 999px; font-size: 13px; }
.btn.small { padding: 6px 12px; font-size: 13px; }
.btn:disabled { opacity: .45; cursor: default; }
.linkish { background: none; border: 0; color: var(--muted); cursor: pointer; text-decoration: underline; padding: 0 4px; }

input, select, textarea {
  width: 100%; background: var(--bg2); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 9px 12px; font: 14px var(--sans);
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
input[type=file] { padding: 10px; }
.field { display: block; margin: 12px 0; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; text-transform: uppercase; letter-spacing: .06em; }
.check { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--muted); margin: 6px 0 10px; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.row2 > * { min-width: 0; }
input[type=date] { min-width: 0; -webkit-appearance: none; appearance: none; min-height: 40px; }
.row-actions { display: flex; gap: 8px; margin-top: 14px; }
.inline-form { display: flex; gap: 8px; }

.search-input { font-size: 18px; padding: 14px 18px; border-radius: 999px; margin-bottom: 8px; }

/* ---------- layout ---------- */
.page { max-width: 1100px; margin: 0 auto; padding: 24px; }
@media (max-width: 720px) { .page { padding: 16px; } }
.page-title { font-family: var(--serif); font-weight: 800; font-size: 30px; margin: 4px 0 18px; letter-spacing: -.01em; }
.section-title { font-family: var(--serif); font-weight: 800; font-size: 20px; margin: 28px 0 12px; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; }
.panel h3 { margin: 0 0 8px; font-family: var(--serif); }
.panel.narrow { max-width: 420px; width: 100%; text-align: center; }
.panel.empty { text-align: center; color: var(--muted); }
.panel.empty a { color: var(--accent); }
.hero-signin .btn { margin-top: 14px; }

/* ---------- avatars ---------- */
.av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; flex: none; }
.av.sm { width: 24px; height: 24px; font-size: 11px; }
.av.xl { width: 84px; height: 84px; font-size: 32px; }
.av-fallback { display: inline-grid; place-items: center; background: var(--dim); color: var(--text); font-weight: 600; }

/* ---------- poster grid ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); gap: 18px 14px; }
.grid > * { min-width: 0; }
@media (max-width: 720px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px 10px; } }
.tile-img { position: relative; aspect-ratio: 2/3; border-radius: 8px; overflow: hidden; background: var(--bg2); box-shadow: 0 6px 18px rgba(0,0,0,.35); transition: transform .15s; }
.tile:hover .tile-img { transform: translateY(-3px); }
.tile-img img { width: 100%; height: 100%; object-fit: cover; }
.noimg { width: 100%; height: 100%; display: grid; place-items: center; padding: 8px; text-align: center; color: var(--muted); font-size: 12px; background: var(--bg2); }
.badge { position: absolute; top: 6px; right: 6px; background: rgba(0,0,0,.75); color: var(--accent); font-size: 11px; padding: 2px 7px; border-radius: 999px; font-weight: 600; }
.tile-title { margin-top: 7px; font-weight: 600; font-size: 13.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tile-sub { color: var(--muted); font-size: 12px; }

/* ---------- feed cards ---------- */
.feed { display: flex; flex-direction: column; gap: 12px; max-width: 720px; }
.card { display: flex; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card-poster { flex: none; width: 72px; }
.card-poster img { width: 72px; border-radius: 6px; aspect-ratio: 2/3; object-fit: cover; }
.card-body { flex: 1; min-width: 0; }
.who { display: flex; gap: 10px; align-items: flex-start; }
.who .t { font-weight: 600; color: var(--accent); }
.stars { color: var(--accent); font-size: 17px; letter-spacing: 1px; margin: 6px 0 2px; }
.review { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.review.spoiler { filter: blur(6px); cursor: pointer; user-select: none; }
.chips, .genres { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.chip { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--bg2); border: 1px solid var(--line); color: var(--muted); }
.chip.ghosty { background: transparent; }
.actions { display: flex; gap: 6px; margin-top: 4px; }
.act { background: none; border: 1px solid transparent; color: var(--muted); padding: 4px 10px; border-radius: 999px; cursor: pointer; font-size: 14px; }
.act:hover { border-color: var(--line); }
.act.on { color: var(--red); }
.comments { margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.comment { display: flex; gap: 8px; margin-bottom: 8px; font-size: 14px; }
.comment-form { display: flex; gap: 8px; margin-top: 6px; }

/* ---------- title page ---------- */
.title-hero { position: relative; background: var(--bg2); overflow: hidden; }
.title-hero::before {
  content: ""; position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center top;
  opacity: .32; filter: blur(2px); transform: scale(1.03);
}
.title-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(15,17,21,.2), var(--bg) 96%); }
.title-hero-inner { position: relative; z-index: 1; display: flex; gap: 28px; align-items: flex-end; padding-top: 48px; }
.title-poster { width: 200px; border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.6); flex: none; }
.title-info h1 { font-family: var(--serif); font-weight: 800; font-size: 42px; line-height: 1.05; margin: 0 0 8px; letter-spacing: -.02em; }
.tagline { font-style: italic; color: var(--muted); margin: 8px 0; }
.scores { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 4px; }
.score { padding: 4px 11px; border-radius: 8px; background: rgba(0,0,0,.45); border: 1px solid var(--line); font-size: 13px; }
.score b { margin-left: 3px; }
.score.imdb b { color: #f5c518; }
.score.rt b { color: #fa6141; }
.score.mc b { color: #66cc33; }
.score.tmdb b { color: #01b4e4; }
.title-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.title-grid > * { min-width: 0; }
.title-info { min-width: 0; }
.cast { max-width: 100%; }
.title-grid aside { position: sticky; top: 72px; }
.overview { font-size: 16px; line-height: 1.6; margin-top: 0; }
.prov { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.prov .muted { width: 52px; }
.prov img { width: 38px; height: 38px; border-radius: 9px; }
.friends-avg { margin: 0 0 8px; }
.friends-avg b { color: var(--accent); }
.cast { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 8px; }
.castm { flex: none; width: 92px; font-size: 12.5px; display: flex; flex-direction: column; gap: 2px; }
.castm img, .castm .noimg { width: 92px; height: 120px; object-fit: cover; border-radius: 8px; }
@media (max-width: 860px) {
  .title-grid { grid-template-columns: minmax(0, 1fr); }
  .title-grid aside { position: static; order: -1; }
  .title-hero-inner { gap: 16px; padding-top: 28px; }
  .title-poster { width: 110px; }
  .title-info h1 { font-size: 28px; }
}

/* segmented control & stars */
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; background: var(--bg2); border-radius: 999px; padding: 3px; border: 1px solid var(--line); }
.seg button { border: 0; background: none; color: var(--muted); padding: 8px 6px; border-radius: 999px; font: 600 13px var(--sans); cursor: pointer; }
.seg button.on { background: var(--accent); color: var(--accent-ink); }
.prog-row { display: flex; align-items: center; gap: 8px; }
.prog-row select { width: auto; flex: none; }
.prog-row input { width: 70px; flex: none; }
.prog-row .btn { margin-left: auto; white-space: nowrap; }
.star-input { display: flex; align-items: center; gap: 2px; user-select: none; }
.star-input .s { font-size: 30px; line-height: 1; cursor: pointer; color: var(--dim); }
.star-input .s.full { color: var(--accent); }
.star-input .s.half { background: linear-gradient(90deg, var(--accent) 50%, var(--dim) 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.star-input .clear { margin-left: 8px; }

/* ---------- profile ---------- */
.profile-head { display: flex; gap: 18px; align-items: center; margin-bottom: 18px; }
.profile-head .page-title { margin: 0 0 4px; }
.stats { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); }
.stats b { color: var(--text); }
.stats .match b { color: var(--accent); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); padding: 10px 14px; font: 600 14px var(--sans); cursor: pointer; }
.tabs button.on { color: var(--text); border-color: var(--accent); }

/* ---------- discover ---------- */
.matches { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.matchrow { display: grid; grid-template-columns: auto minmax(0, 1fr) 100px auto auto; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 14px; }
.bar { height: 6px; background: var(--bg2); border-radius: 999px; overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); }
@media (max-width: 560px) { .matchrow { grid-template-columns: auto 1fr auto; } .matchrow .bar, .matchrow .small { display: none; } }

/* ---------- import ---------- */
.steps { margin: 0 0 14px; padding-left: 20px; }
.steps li { margin-bottom: 4px; }
.import-bar { position: sticky; top: 58px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 10px; background: var(--bg); padding: 10px 0; }
.import-bar > span { margin-right: auto; color: var(--muted); }
.import-bar b { color: var(--text); }
.import-list { display: flex; flex-direction: column; gap: 6px; }
.irow { display: grid; grid-template-columns: auto 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; }
.irow.imported { opacity: .55; }
.irow .ithumb img { width: 40px; border-radius: 4px; }
.irow .pick { margin: 4px 0; padding: 5px 8px; font-size: 13px; max-width: 420px; }
.irow .star-input .s { font-size: 22px; }
.irow .star-input .clear { display: none; }
@media (max-width: 640px) { .irow { grid-template-columns: auto 40px minmax(0, 1fr); } .irow .istars { grid-column: 3; } }

/* ---------- invites ---------- */
.invrow { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.invrow:last-child { border: 0; }
.invrow span:first-child { flex: 1; }

/* ---------- misc ---------- */
.toast { position: fixed; left: 50%; bottom: 90px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 10px 18px; border-radius: 999px; font-weight: 600; z-index: 50; box-shadow: 0 8px 24px rgba(0,0,0,.4); }
.credits { max-width: 1100px; margin: 40px auto 20px; padding: 0 24px; color: var(--muted); font-size: 11.5px; display: flex; gap: 10px; align-items: center; }
@media (max-width: 720px) { .credits { margin-bottom: 90px; flex-wrap: wrap; } }

/* =================== social layer =================== */

.grow { flex: 1; min-width: 0; }
.hide-sm { }
.show-sm { display: none; }
@media (max-width: 720px) {
  .hide-sm { display: none !important; }
  .show-sm { display: inline; }
  .show-sm a { color: var(--accent); }
}

/* avatars with online dot */
.av-wrap { position: relative; display: inline-block; flex: none; line-height: 0; }
.av-wrap .dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--panel); }
.av-stack { display: inline-flex; vertical-align: middle; margin-left: 4px; }
.av-stack > * { margin-left: -6px; border: 2px solid var(--panel); }
.av-stack > *:first-child { margin-left: 0; }

/* watching now stories */
.now-strip:empty { display: none; }
.strip-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 8px; }
.stories { display: flex; gap: 14px; overflow-x: auto; padding-bottom: 10px; margin-bottom: 8px; scrollbar-width: none; }
.story { flex: none; width: 76px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.story-ring { position: relative; width: 66px; height: 66px; border-radius: 50%; padding: 3px;
  background: conic-gradient(var(--accent), var(--purple), var(--accent)); }
.story-ring img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; border: 2px solid var(--bg); }
.story-av { position: absolute; right: -4px; bottom: -4px; }
.story-av .av { border: 2px solid var(--bg); }
.story-name { font-size: 12px; font-weight: 600; margin-top: 6px; }
.story-title { font-size: 11px; color: var(--muted); line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* composer */
.composer { max-width: 720px; }
.composer-top { display: flex; gap: 12px; align-items: flex-start; }
.composer textarea { resize: vertical; min-height: 48px; }
.composer-actions { display: flex; gap: 8px; align-items: center; margin-top: 10px; }
.composer-actions .btn { margin-left: auto; }
.chipbtn { background: var(--bg2); border: 1px solid var(--line); color: var(--text); border-radius: 999px; padding: 6px 12px; font: 500 13px var(--sans); cursor: pointer; }
.chipbtn:hover { border-color: var(--accent); }
.tag-chip { display: inline-flex; align-items: center; gap: 8px; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 5px 8px; margin: 8px 8px 0 0; font-size: 13px; max-width: 100%; }
.tag-chip img { width: 24px; border-radius: 3px; }
.poll-build { margin-top: 8px; }

/* title picker */
.picker { margin-top: 10px; position: relative; }
.picker-results { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.picker-results button { display: flex; gap: 10px; align-items: center; text-align: left; background: var(--bg2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; color: var(--text); cursor: pointer; font: 14px var(--sans); }
.picker-results button:hover { border-color: var(--accent); }
.picker-results img, .picker-results .noimg { width: 30px; height: 45px; object-fit: cover; border-radius: 4px; flex: none; }

/* mentions */
.mention-host { position: relative; flex: 1; min-width: 0; }
.mention { color: var(--accent); font-weight: 600; }
.mention-box { position: absolute; left: 0; right: 0; top: 100%; z-index: 30; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; margin-top: 4px; box-shadow: 0 10px 30px rgba(0,0,0,.4); overflow: hidden; }
.mention-box button { display: flex; align-items: center; gap: 8px; width: 100%; background: none; border: 0; color: var(--text); padding: 8px 10px; cursor: pointer; font: 14px var(--sans); text-align: left; }
.mention-box button:hover { background: var(--bg2); }

/* feed head, highlights, pill, pull */
.feed-head { max-width: 720px; margin: 6px 0 12px; }
.tabs.slim { margin-bottom: 0; }
.highlights { display: flex; flex-direction: column; gap: 10px; max-width: 720px; margin-bottom: 12px; }
.highlights:empty { display: none; }
.highlight { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(200,245,58,.14), rgba(123,92,255,.08)); border: 1px solid rgba(200,245,58,.35); }
.highlight img { width: 44px; border-radius: 5px; flex: none; }
.hl-tag { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--accent); font-weight: 600; margin-bottom: 2px; }
.stars-inline { color: var(--accent); letter-spacing: 1px; }
.new-pill { position: sticky; top: 66px; z-index: 15; display: block; margin: 0 auto 10px; background: var(--accent); color: var(--accent-ink); border: 0; border-radius: 999px; padding: 7px 16px; font: 600 13px var(--sans); cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.pull-hint { text-align: center; color: var(--muted); font-size: 13px; padding: 6px 0 10px; }

/* cards: posts */
.post-text { margin: 6px 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.tag-row { display: flex; gap: 10px; align-items: center; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 8px; margin: 8px 0; }
.tag-row img { width: 36px; border-radius: 4px; }
.card.kind-rec { border-color: rgba(200,245,58,.4); }
.card.kind-party { border-color: rgba(123,92,255,.45); background: linear-gradient(160deg, rgba(123,92,255,.08), var(--panel) 60%); }
.party-when { font-weight: 600; margin: 8px 0 4px; }
.party-people { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 6px 0; }
.seg.rsvp { max-width: 300px; margin: 8px 0; }
.ok-chip { color: var(--green); border-color: rgba(95,196,139,.4); }
.act.subtle { margin-left: auto; opacity: .55; }
.act.subtle:hover { opacity: 1; }
.single { margin-top: 12px; }

/* polls */
.poll { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 6px; }
.poll-opt { position: relative; overflow: hidden; display: flex; align-items: center; gap: 10px; text-align: left; background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px 6px 6px; color: var(--text); cursor: pointer; font: 14px var(--sans); }
.poll-opt:hover { border-color: var(--accent); }
.poll-opt.mine { border-color: var(--accent); }
.poll-fill { position: absolute; inset: 0 auto 0 0; background: rgba(200,245,58,.16); transition: width .3s; }
.poll-opt.lead .poll-fill { background: rgba(200,245,58,.28); }
.poll-opt img { position: relative; width: 28px; height: 42px; object-fit: cover; border-radius: 4px; }
.poll-label { position: relative; flex: 1; min-width: 0; }
.poll-pct { position: relative; font-weight: 700; }

/* reactions */
.react-wrap { position: relative; }
.react-picker { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 25; display: flex; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px; box-shadow: 0 10px 30px rgba(0,0,0,.45); }
.react-picker button { background: none; border: 0; font-size: 22px; padding: 2px 4px; cursor: pointer; border-radius: 999px; transition: transform .12s; }
.react-picker button:hover { transform: scale(1.25); }
.react-picker button.on { background: var(--bg2); }
.react-summary { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--muted); margin-right: 4px; }
.act.on { color: var(--text); border-color: var(--line); background: var(--bg2); }

/* comments threads */
.comment.reply { margin-left: 32px; }
.replying { font-size: 12.5px; color: var(--muted); margin: 4px 0; }

/* title page actions */
.title-actions { position: relative; z-index: 2; display: flex; flex-wrap: wrap; gap: 8px; padding-top: 14px; padding-bottom: 0; }
.title-actions .btn.on { color: var(--accent); border-color: var(--accent); }

/* modal */
.modal-wrap { position: fixed; inset: 0; z-index: 60; background: rgba(0,0,0,.6); display: grid; place-items: center; padding: 16px; }
.modal { width: 100%; max-width: 440px; max-height: 90vh; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px; box-shadow: 0 20px 60px rgba(0,0,0,.6); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 6px; }
.modal-head h3 { margin: 0; font-family: var(--serif); }
.modal .close { font-size: 18px; text-decoration: none; }
.friend-pick { display: flex; flex-direction: column; gap: 4px; max-height: 240px; overflow: auto; }
.friend-pick .check { color: var(--text); }

/* profiles */
.profile-banner { height: 180px; background: var(--bg2); position: relative; overflow: hidden; }
.profile-banner::before { content: ""; position: absolute; inset: 0; background-image: var(--bg); background-size: cover; background-position: center 30%; opacity: .55; }
.profile-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 30%, var(--bg)); }
.profile-page { margin-top: -70px; position: relative; }
.profile-head { align-items: flex-end; }
.profile-head .av.xl { border: 4px solid var(--bg); }
.profile-name-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.bio { margin: 4px 0 6px; max-width: 600px; }
.now-line { margin: 2px 0 6px; color: var(--muted); }
.now-line b { color: var(--accent); }
.badges { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 8px; }
.badge-pill { font-size: 13px; padding: 5px 12px; border-radius: 999px; background: rgba(200,245,58,.1); border: 1px solid rgba(200,245,58,.35); }
.top4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; max-width: 640px; margin-bottom: 8px; }
.add-tile .noimg { border: 1px dashed var(--line); font-size: 12px; line-height: 1.4; }
@media (max-width: 720px) {
  .profile-banner { height: 130px; }
  .profile-page { margin-top: -50px; }
  .profile-head { flex-direction: column; align-items: flex-start; gap: 10px; }
  .stats { gap: 10px 14px; font-size: 14px; }
}

/* leaderboard */
.leaderboard { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.lb h3 { font-size: 16px; margin-bottom: 10px; }
.lb-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.medal { font-size: 18px; width: 22px; }

/* notifications */
.notif-icon { font-size: 26px; width: 34px; text-align: center; flex: none; }


/* =================== VEWD brand =================== */
body { background:
  radial-gradient(900px 500px at 85% -10%, rgba(123,92,255,.10), transparent 60%),
  radial-gradient(700px 400px at -10% 10%, rgba(200,245,58,.06), transparent 60%),
  var(--bg); background-attachment: fixed; }
h1, h2, h3, .panel h3 { font-family: var(--serif); font-weight: 800; letter-spacing: -.02em; }
.btn { border-radius: 999px; }
.btn.primary { box-shadow: 0 6px 22px rgba(200,245,58,.25); }
.btn.primary:hover { filter: brightness(1.05); box-shadow: 0 8px 28px rgba(200,245,58,.35); }
.nav a.active { color: var(--accent-ink); background: var(--accent); }
.nav a { font-weight: 600; }
.tabs button.on { color: var(--accent); }
.bell { display: inline-flex; color: var(--text); }
.ico { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.bottomnav a span { display: grid; place-items: center; height: 24px; }
.bottomnav a.active .ico { stroke: var(--accent); }
.stars, .star-input .s.full, .stars-inline { text-shadow: 0 0 12px rgba(200,245,58,.25); }
.card.kind-party { border-color: rgba(123,92,255,.5); }
.story-ring { box-shadow: 0 0 18px rgba(200,245,58,.25); }

/* sign-in hero */
.signin { min-height: 82vh; display: grid; grid-template-columns: minmax(0,1.1fr) minmax(0,1fr); gap: 40px; align-items: center; max-width: 1100px; margin: 0 auto; padding: 32px 24px; }
.signin h1 { font-size: clamp(38px, 6vw, 64px); line-height: 1.02; margin: 18px 0 14px; }
.signin h1 em { font-style: normal; color: var(--accent); }
.signin p { color: var(--muted); font-size: 17px; max-width: 460px; }
.signin .btn.primary { font-size: 16px; padding: 13px 26px; margin-top: 10px; }
.signin-art { position: relative; aspect-ratio: 1/1; max-width: 440px; justify-self: center; width: 100%; }
.signin-art .tri { position: absolute; inset: 12% 8% 12% 18%; clip-path: polygon(0 0, 100% 50%, 0 100%); border-radius: 30px;
  background: linear-gradient(135deg, var(--accent) 0%, rgba(200,245,58,.25) 55%, rgba(123,92,255,.55) 100%); filter: drop-shadow(0 0 40px rgba(200,245,58,.35)); }
.signin-art .tri.ghost { inset: 4% 20% 30% 0; opacity: .25; background: linear-gradient(135deg, var(--purple), transparent); filter: none; }
.signin-feats { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; max-width: 1100px; margin: 0 auto 40px; padding: 0 24px; }
.signin-feats div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; text-align: center; font-size: 13px; color: var(--muted); }
.signin-feats .ico { width: 30px; height: 30px; stroke: var(--accent); margin: 0 auto 8px; display: block; }
.signin-feats b { display: block; color: var(--text); font-size: 15px; margin-bottom: 4px; }
@media (max-width: 760px) {
  .signin { grid-template-columns: 1fr; text-align: left; padding-top: 24px; gap: 10px; }
  .signin-art { display: none; }
  .signin-feats { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
