[hidden] { display: none !important; }
:root {
  --bg: #0f0f11; --panel: #17171a; --panel2: #1e1e22; --line: #2a2a30; --text: #e8e8ea; --muted: #a0a0a8;
  --accent: #e8743b; --accent2: #e8743b; --accent-hover: #f08a55; --accent-dark: #c85f2a; --accent-tint: rgba(232, 116, 59, .14); --on-accent: #160c06;
  --twitch: #e8743b; --steam: #1b2838;
  --r-lg: 4px; --r-md: 3px; --r-sm: 2px;
  --strong: #2ecc71; --decent: #a3d943; --long: #f0b429; --none: #eb3b3b; --ghost: #6b6b7b; --whale: #4aa8ff;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.5 system-ui, -apple-system, Segoe UI, Roboto, sans-serif; }
a { color: var(--accent); }
.muted { color: var(--muted); } .small { font-size: 13px; } .nowrap { white-space: nowrap; }
.ok-text { color: var(--strong); } .err-text { color: var(--none); }
.spacer { flex: 1; }

/* header */
header.top { display: flex; align-items: center; gap: 16px; padding: 10px 24px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap; }
.brand { font-weight: 600; font-size: 18px; display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 4px; flex: 1; justify-content: center; }
.tab { white-space: nowrap; background: none; border: 0; color: var(--muted); padding: 8px 14px; border-radius: var(--r-md); cursor: pointer; font: inherit; font-weight: 600; }
.tab:hover { color: var(--text); background: var(--panel2); }
.tab.active { color: var(--on-accent); background: var(--accent2); }
.who { display: flex; align-items: center; gap: 8px; font-weight: 600; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--panel2); }
main { padding: 20px 24px 60px; max-width: 1280px; margin: 0 auto; }
.banner { background: var(--panel2); border-bottom: 1px solid var(--line); padding: 10px 24px; }
.pill { display: inline-block; padding: 2px 8px; border-radius: var(--r-sm); font-size: 11px; font-weight: 600; letter-spacing: .03em; }
.pill.demo, .pill.free { background: #f0b42922; color: var(--long); border: 1px solid #f0b42955; }
.pill.pro { background: #2ecc7122; color: var(--strong); border: 1px solid #2ecc7155; }

/* controls */
input, select, button { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 12px; }
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent2); outline-offset: 1px; }
button { cursor: pointer; font-weight: 600; }
button:hover { border-color: var(--accent); }
button.primary, .btn { background: var(--accent2); border-color: var(--accent2); color: var(--on-accent); }
button.primary:hover, .btn.primary:hover, .btn:not(.twitch):not(.steam):not(.ghost):not(.danger):not(.follow):not(.google-btn):hover { background: var(--accent-hover); border-color: var(--accent-hover); }
button.danger { color: var(--none); }
button:disabled { opacity: .5; cursor: default; }
button.big, .btn.big { padding: 14px 26px; font-size: 17px; }
.btn { display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px; border-radius: var(--r-md); font-weight: 600; text-decoration: none; border: 1px solid transparent; }
.btn.twitch { background: var(--twitch); border-color: var(--twitch); color: #fff; } .btn.twitch:hover { filter: brightness(1.12); }
.btn.steam { background: var(--steam); color: #fff; border-color: #3d5a7a; } .btn.steam:hover { filter: brightness(1.3); }
.linkbtn { background: none; border: 0; color: var(--muted); padding: 4px 6px; font-weight: 500; font-size: 13px; }
.linkbtn:hover { color: var(--text); }
.row-btns { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pill-btn { background: var(--panel2); border: 1px solid var(--accent2); border-radius: var(--r-sm); padding: 2px 12px; font-weight: 600; color: var(--accent); }

/* switches */
label.switch { display: inline-flex !important; flex-direction: row !important; align-items: center; gap: 10px; cursor: pointer; color: var(--text) !important; font-size: 14px !important; font-weight: 500 !important; user-select: none; }
.switch input { display: none; }
.switch span { width: 38px; height: 22px; background: var(--line); border-radius: 99px; position: relative; transition: .2s; flex: none; }
.switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .2s; }
.switch input:checked + span { background: var(--accent2); }
.switch input:checked + span::after { left: 19px; }

/* picks */
.viewerline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; font-size: 15px; }
.moods { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.mood { display: inline-flex; align-items: center; gap: 6px; border-radius: var(--r-md); padding: 8px 14px; background: var(--panel); }
.mood span { font-size: 17px; }
.mood.on { background: var(--accent2); border-color: var(--accent2); color: var(--on-accent); }
.toggles { display: flex; gap: 22px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.controls { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; align-items: end; background: var(--panel); padding: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); margin-bottom: 14px; }
.controls label, .settings label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--muted); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 14px; }
.card { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; }
.card:hover { border-color: #444457; }
.card.big { grid-template-columns: 108px 1fr auto; padding: 20px; margin-bottom: 14px; background: var(--panel); }
.card.big .art { width: 108px; height: 144px; }
.card.big h4 { font-size: 22px; }
.demo-title { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 2px; }
.art { width: 72px; height: 96px; border-radius: var(--r-lg); object-fit: cover; background: var(--panel2); display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 600; color: #ffffff55; flex: none; }
.card h4 { margin: 0 0 6px; font-size: 16px; line-height: 1.25; }
.card h4 a { color: var(--text); text-decoration: none; } .card h4 a:hover { color: var(--accent); }
.card-body { min-width: 0; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 4px; }
.tag { font-size: 11px; color: var(--muted); background: var(--panel2); border-radius: var(--r-sm); padding: 1px 7px; }
.tag.own { color: #8fd3ff; background: #0e2a3d; }
.reason { font-size: 13px; color: var(--muted); margin-top: 4px; }
.scorebox { text-align: center; }
.score { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 18px; border: 4px solid; margin: 0 auto; }
.card.big .score { width: 72px; height: 72px; font-size: 24px; }
.verdict { font-size: 11px; font-weight: 600; margin-top: 4px; white-space: nowrap; }
.v-strong { color: var(--strong); border-color: var(--strong); } .v-decent { color: var(--decent); border-color: var(--decent); }
.v-long { color: var(--long); border-color: var(--long); } .v-none { color: var(--none); border-color: var(--none); }
.v-ghost { color: var(--ghost); border-color: var(--ghost); } .v-whale { color: var(--whale); border-color: var(--whale); }
.badge { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: var(--r-sm); border: 1px solid; }
.t-top { color: var(--strong); } .t-first { color: var(--decent); } .t-scroll { color: var(--long); } .t-buried { color: var(--none); }
.empty { text-align: center; padding: 50px 20px; color: var(--muted); background: var(--panel); border-radius: var(--r-lg); border: 1px dashed var(--line); grid-column: 1 / -1; }
.upsell { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 14px; padding: 18px 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); }
.spin { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--muted); border-top-color: transparent; border-radius: 50%; animation: spin 1s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* library */
.lib-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.card-box { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; min-width: 280px; }
.card-box h3 { margin: 0 0 4px; font-size: 16px; } .card-box p { margin: 0 0 10px; }
.grow { flex: 1; }
.add-row { display: flex; gap: 8px; flex-wrap: wrap; }
.search-wrap { position: relative; flex: 1; min-width: 200px; } .search-wrap input { width: 100%; }
.dropdown { position: absolute; top: 100%; left: 0; right: 0; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-md); margin-top: 4px; max-height: 300px; overflow: auto; z-index: 10; }
.dropdown div { padding: 8px 10px; cursor: pointer; display: flex; gap: 8px; align-items: center; }
.dropdown div:hover { background: var(--accent2); color: var(--on-accent); }
.dropdown img { width: 26px; height: 35px; border-radius: var(--r-sm); }
.lib-filter { display: flex; gap: 18px; align-items: center; margin: 4px 0 10px; flex-wrap: wrap; }
.table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); }
table.lib { width: 100%; border-collapse: collapse; background: var(--panel); }
.lib th, .lib td { text-align: left; padding: 8px 12px; border-bottom: 1px solid var(--line); }
.lib th { font-size: 12px; color: var(--muted); background: var(--panel2); white-space: nowrap; }
.lib td .art { width: 30px; height: 40px; font-size: 11px; border-radius: var(--r-md); }
.lib tr.hidden td { opacity: .45; }
.empty-row { text-align: center; padding: 36px !important; color: var(--muted); }

/* settings */
.settings { max-width: 640px; display: flex; flex-direction: column; gap: 16px; margin-bottom: 16px; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--panel); margin: 0; }
fieldset p { margin: 0; }
legend { font-weight: 600; padding: 0 6px; }
input[type=range] { padding: 0; accent-color: var(--accent2); }

/* onboarding */
.modal { position: fixed; inset: 0; background: #000b; display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; width: 100%; max-width: 500px; text-align: center; max-height: calc(100vh - 32px); overflow-y: auto; }
.modal-card h2 { margin: 6px 0 8px; }
.dots { display: flex; gap: 6px; justify-content: center; }
.dots span { width: 28px; height: 4px; border-radius: var(--r-sm); background: var(--line); }
.dots span.on { background: var(--accent2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0; }
.chips button { border-radius: var(--r-md); padding: 10px 18px; }
.chips button:hover { background: var(--accent2); color: var(--on-accent); }

.toast { position: fixed; bottom: 20px; right: 20px; background: var(--panel2); border: 1px solid var(--line); padding: 12px 16px; border-radius: var(--r-lg); max-width: 440px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); z-index: 60; }
.toast.err { border-color: var(--none); }

/* landing */
.landing header.top { justify-content: space-between; }
.hero { max-width: 820px; margin: 0 auto; padding: 70px 24px 40px; text-align: center; }
.hero h1 { font-size: clamp(36px, 7vw, 64px); line-height: 1.05; margin: 0 0 18px; letter-spacing: -.02em; }
.hl { color: inherit; }
.sub { font-size: 19px; color: var(--muted); max-width: 640px; margin: 0 auto 26px; }
.hero .demo-card { display: grid; grid-template-columns: 72px 1fr auto; gap: 16px; text-align: left; margin: 44px auto 0; max-width: 560px; padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); }
.demo-card h3 { margin: 0 0 6px; }
.how { max-width: 1000px; margin: 0 auto; padding: 40px 24px; text-align: center; }
.how h2, .pricing h2 { font-size: 30px; margin: 0 0 10px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 24px; text-align: left; }
.steps > div { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.steps h3 { margin: 6px 0; } .steps p { color: var(--muted); margin: 0; }
.num { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--panel2); color: var(--muted); font-weight: 600; }
.pricing { max-width: 760px; margin: 0 auto; padding: 40px 24px; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 20px; text-align: left; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.plan.pro { border-color: var(--accent2); }
.plan h3 { margin: 0; color: var(--muted); }
.price { font-size: 40px; font-weight: 600; margin: 6px 0 10px; } .price small { font-size: 16px; color: var(--muted); font-weight: 500; }
.plan ul { padding-left: 18px; color: var(--muted); margin: 0 0 18px; } .plan li { margin: 4px 0; }
.faq { max-width: 720px; text-align: left; } .faq h2 { text-align: center; }
/* landing: varied rhythm instead of identical card walls */
.lp-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 40px; text-align: left; align-items: start; }
.lp-split .sub { margin: 0; }
.lp-list { margin: 0; padding: 0; list-style: none; counter-reset: lp; }
.lp-list li { padding: 14px 0; border-top: 1px solid var(--line); color: var(--muted); }
.lp-list li:first-child { border-top: 0; padding-top: 4px; }
.lp-list b { color: var(--text); }
.lp-traps h2, .lp-grow h2 { text-align: left; } .lp-grow > .sub { text-align: left; margin-left: 0; }
.lp-rows { margin: 18px 0 0; text-align: left; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.lp-rows > div { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); }
.lp-rows > div:first-child { border-top: 0; }
.lp-rows dt { font-weight: 600; } .lp-rows dd { margin: 0; color: var(--muted); }
.lp-feature { text-align: left; margin-top: 22px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); }
.lp-feature h3 { margin: 0 0 6px; font-size: 20px; } .lp-feature p { margin: 0; color: var(--muted); max-width: 680px; }
.lp-pairs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin-top: 8px; text-align: left; }
.lp-pairs > div { padding: 16px 0; border-bottom: 1px solid var(--line); }
.lp-pairs h3 { margin: 0 0 4px; font-size: 16px; } .lp-pairs p { margin: 0; color: var(--muted); }
@media (max-width: 760px) {
  .lp-split { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .lp-rows > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .lp-pairs { grid-template-columns: minmax(0, 1fr); }
}
details { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 18px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; } details p { color: var(--muted); margin: 10px 0 0; }
.legal { text-align: left; max-width: 720px; } .legal li { margin: 6px 0; }
.foot { text-align: center; padding: 40px 24px; }

@media (max-width: 760px) {
  main, header.top { padding-left: 16px; padding-right: 16px; }
  nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; }
  .who #displayName { display: none; }
  .grid { grid-template-columns: 1fr; }
  .card, .card.big { grid-template-columns: 60px 1fr; }
  .card .art, .card.big .art { width: 60px; height: 80px; }
  .card .scorebox { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; text-align: left; }
  .card .score, .card.big .score { width: 44px; height: 44px; font-size: 15px; margin: 0; }
  .hero { padding-top: 40px; }
  .hero .demo-card { grid-template-columns: 56px 1fr; }
  .hero .demo-card .art { width: 56px; height: 75px; }
  .hero .demo-card > div:last-child { grid-column: 1 / -1; display: flex; align-items: center; gap: 10px; }
  .hero .demo-card .score { margin: 0; }
}

.notmood { margin-top: 6px; padding-left: 0; font-size: 12px; }
.toast-action { color: var(--accent); font-weight: 600; text-decoration: underline; }

.card-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.btn.small { padding: 5px 11px; font-size: 13px; border-radius: var(--r-md); gap: 6px; }
.btn.ghost { background: var(--panel2); border-color: var(--line); color: var(--text); }
.btn.ghost:hover { border-color: var(--accent); }
.launch-mini { font-family: inherit; line-height: 1; display: inline-grid; place-items: center; width: 22px; height: 22px; margin-left: 6px; border-radius: var(--r-lg); background: var(--steam); border: 1px solid #3d5a7a; color: #fff; text-decoration: none; font-size: 10px; vertical-align: 1px; }
.launch-mini:hover { filter: brightness(1.3); }
/* steam:// links only work on a computer with Steam installed */
@media (pointer: coarse) { .launch { display: none !important; } }

.tip { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 12px 16px; margin-bottom: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); }
.small-btn { padding: 6px 12px; font-size: 13px; }
button.launch-mini { padding: 0; cursor: pointer; }
fieldset .row-btns { margin-top: 6px; }

/* ---------- community ---------- */
.count { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--none); color: #fff; font-size: 11px; font-weight: 600; margin-left: 4px; }
.pill.points { background: #2ecc7118; color: var(--strong); border: 1px solid #2ecc7144; }
.join-card { max-width: 760px; margin: 10px auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.join-card h2 { margin: 0 0 8px; font-size: 26px; }
.sub-text { color: var(--muted); font-size: 16px; margin: 0 0 18px; }
.rules { display: grid; gap: 10px; margin-bottom: 20px; }
.rules > div { display: flex; flex-direction: column; gap: 2px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; }
.rules span { color: var(--muted); font-size: 14px; }
.join-form { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.join-form label:not(.switch) { display: flex; flex-direction: column; gap: 4px; width: 100%; max-width: 420px; font-size: 13px; font-weight: 600; color: var(--muted); }
.points-card { display: flex; gap: 18px 28px; align-items: center; flex-wrap: wrap; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 18px; margin-bottom: 14px; }
.pts { display: flex; flex-direction: column; }
.big-num { font-size: 32px; font-weight: 600; color: var(--strong); line-height: 1; }
.earn { display: flex; gap: 6px 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.earn b { color: var(--text); font-weight: 600; }
.warn { color: var(--long); } .warn-text { color: var(--long); }
.subnav { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.subnav button { background: none; border: 1px solid transparent; border-radius: var(--r-md); padding: 7px 14px; color: var(--muted); }
.subnav button:hover { color: var(--text); background: var(--panel2); }
.subnav button.on { background: var(--panel2); border-color: var(--accent2); color: var(--text); }
.sub-intro { color: var(--muted); margin-bottom: 14px; line-height: 1.6; }
.sub-intro > .linkbtn, .sub-intro > .switch, .sub-intro > .small { margin-left: 8px; }
.sub-intro b { color: var(--text); }
.squad-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.squad-head h2 { margin: 0 0 4px; }
.code { letter-spacing: .12em; color: var(--accent); }
.members { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; margin-bottom: 16px; }
.member { display: flex; gap: 12px; align-items: center; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 12px; }
.member.is-live { border-color: #e5534b66; }
.m-name a { color: var(--text); font-weight: 600; text-decoration: none; } .m-name a:hover { color: var(--accent); }
.m-body { min-width: 0; }
.av { border-radius: 50%; flex: none; object-fit: cover; background: var(--panel2); display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; color: #ffffffaa; vertical-align: middle; }
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--none); box-shadow: 0 0 0 3px #e5534b33; vertical-align: 1px; margin-right: 2px; }
.two-col { display: grid; grid-template-columns: 1.3fr 1fr; gap: 14px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 14px; }
.feed { display: flex; flex-direction: column; gap: 8px; max-height: 420px; overflow: auto; }
.feed > div { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 6px; font-size: 14px; }
.feed > div > .muted { white-space: nowrap; }
.code-row { display: flex; gap: 8px; margin-top: 12px; justify-content: center; flex-wrap: wrap; }
.card-box .code-row { justify-content: flex-start; }
.code-row input { flex: 1; min-width: 160px; }
.card.radar, .card.collab { grid-template-columns: 56px 1fr auto; }
.ellipsis { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.small-moods .mood { padding: 5px 11px; font-size: 13px; }
.req { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.req:last-child { border-bottom: 0; }
select.mini { padding: 4px 8px; font-size: 13px; max-width: 170px; }
.inline-switch { font-size: 13px !important; }
.card-box + .card-box, .card-box + .sub-intro, .card-box + .grid { margin-top: 14px; }
.train-head { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 10px; }
.train-head h3 { margin: 0; }
.slots { display: flex; gap: 6px; align-items: stretch; overflow-x: auto; padding-bottom: 4px; }
.slot { min-width: 140px; max-width: 170px; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.slot.mine { border-color: var(--accent2); }
.slot.done { border-color: #2ecc7188; } .slot.missed { opacity: .6; }
.slot-user { display: flex; align-items: center; gap: 6px; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arrow { align-self: center; color: var(--muted); }
.train-form { margin: 8px 0 0; background: none; border: 0; padding: 0; }
label.stack { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 10px; }
textarea { font: inherit; color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 10px; resize: vertical; }
.review { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 10px; }
.review p { margin: 6px 0; font-size: 14px; }
.fb-req { margin: 8px 0; }
.fb-focus { color: var(--muted); font-weight: 400; margin: 4px 0 0; }
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
@media (max-width: 760px) {
  .card.radar, .card.collab { grid-template-columns: 48px 1fr; }
  .subnav { flex-wrap: nowrap; overflow-x: auto; }
  .subnav button { flex: none; }
  .squad-head { flex-direction: column; }
}

/* ---------- public pages nav ---------- */
.pub-nav { display: flex; gap: 16px; align-items: center; }
.pub-nav > a:not(.btn) { color: var(--muted); text-decoration: none; font-weight: 600; }
.pub-nav > a:not(.btn):hover { color: var(--text); }

/* ---------- card editor ---------- */
.card-status { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.stack-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: 12px 0 6px; }
.chips-wrap { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border-radius: var(--r-md); padding: 5px 12px; font-size: 13px; font-weight: 500; background: var(--panel2); }
.chip.on { background: var(--accent2); border-color: var(--accent2); color: var(--on-accent); }
.sched-row { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; flex-wrap: wrap; }
.sched-row input[type=time] { padding: 6px 8px; }
.swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.swatch { width: 34px; height: 34px; border-radius: 50%; padding: 0; border: 2px solid transparent; }
.swatch.on { border-color: #fff; box-shadow: 0 0 0 2px var(--accent2); }
.banners .swatch { width: 64px; height: 36px; border-radius: var(--r-lg); font-size: 11px; }
.banner-aurora { background: #2e2650 !important; }
.banner-sunset { background: #6b3044 !important; }
.banner-forest { background: #1f4a35 !important; }
.banner-ocean { background: #164466 !important; }
.banner-neon { background: #24172e !important; }
.banner-grid { background: linear-gradient(#ffffff1a 1px, transparent 1px) 0 0 / 8px 8px, linear-gradient(90deg, #ffffff1a 1px, transparent 1px) 0 0 / 8px 8px, #17171a !important; }
.twitch-banner { background: var(--twitch) !important; color: #fff; font-weight: 600; }
.save-bar { position: sticky; bottom: 12px; display: flex; gap: 12px; align-items: center; padding: 10px 14px; margin-top: 14px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); width: fit-content; }
.card-badges { display: flex; flex-wrap: wrap; gap: 8px; }
.card-badges span { background: #2ecc7114; border: 1px solid #2ecc7144; color: var(--text); border-radius: var(--r-sm); padding: 4px 12px; font-size: 13px; font-weight: 600; }

/* ---------- public Streamer Card ---------- */
.card-page { --accent-card: var(--accent); max-width: 920px; margin: 0 auto 40px; padding: 0 16px; }
.card-banner { height: 220px; background-position: center !important; border-radius: 0 0 var(--r-lg) var(--r-lg); margin: 0 -16px; }
.card-main { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 0 24px 22px; margin-top: -60px; position: relative; }
.card-id { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; }
.card-id h1 { margin: 0 0 4px; font-size: 30px; }
.card-id > div { flex: 1; min-width: 200px; padding-bottom: 6px; }
.card-avatar { width: 112px; height: 112px; border-radius: 50%; border: 5px solid var(--panel); margin-top: -40px; background: var(--panel2); object-fit: cover; box-shadow: 0 0 0 3px var(--accent-card); }
.card-avatar.fallback { display: grid; place-items: center; font-size: 36px; font-weight: 600; color: #ffffffaa; }
.card-sub { color: var(--muted); font-size: 14px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.card-sub a { color: var(--accent-card); }
.live-pill { background: #e5534b22; border: 1px solid #e5534b66; color: #ffb3ad !important; border-radius: var(--r-sm); padding: 2px 10px; text-decoration: none; font-weight: 600; }
.btn.follow { background: var(--accent-card); color: #111; margin-bottom: 8px; }
.card-bio { font-size: 17px; margin: 18px 0 12px; white-space: pre-line; }
.card-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.card-tags span { border: 1px solid var(--accent-card); color: var(--accent-card); border-radius: var(--r-sm); padding: 3px 12px; font-size: 13px; font-weight: 600; }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; margin: 16px 0 12px; }
.card-grid .card-box { min-width: 0; }
.card-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.card-stats div { display: flex; flex-direction: column; }
.card-stats b { font-size: 24px; color: var(--accent-card); }
.card-stats span { font-size: 12px; color: var(--muted); }
.card-looking { display: flex; flex-direction: column; gap: 6px; }
.card-schedule div { display: flex; gap: 10px; padding: 3px 0; }
.card-schedule b { width: 40px; color: var(--accent-card); }
.card-clip { margin-bottom: 12px; }
.clip-frame { position: relative; padding-top: 56.25%; border-radius: var(--r-lg); overflow: hidden; background: #000; }
.clip-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.card-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 12px; }
.card-games div { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.card-games img, .card-games .art { width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: var(--r-lg); object-fit: cover; }
.card-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
.card-cta { text-align: center; margin: 28px auto 0; padding: 26px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); max-width: 720px; }
.card-cta h2 { margin: 0 0 6px; }
.card-cta p { color: var(--muted); margin: 0 0 16px; }

/* ---------- blog ---------- */
.blog { max-width: 760px; margin: 0 auto; padding: 40px 20px; }
.blog h1 { font-size: clamp(30px, 5vw, 42px); line-height: 1.15; margin: 8px 0; }
.blog .sub { margin: 0 0 24px; text-align: left; }
.post-list { display: flex; flex-direction: column; gap: 14px; }
.post-card { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; text-decoration: none; color: var(--text); }
.post-card:hover { border-color: var(--accent2); }
.post-card h2 { margin: 0 0 6px; font-size: 21px; }
.post-card p { margin: 0 0 8px; color: var(--muted); }
.post article { font-size: 17px; line-height: 1.7; }
.post article h2 { margin-top: 32px; font-size: 25px; }
.post article h3 { margin-top: 24px; }
.post article img { max-width: 100%; border-radius: var(--r-lg); }
.post article blockquote { border-left: 3px solid var(--accent2); margin: 16px 0; padding: 4px 16px; color: var(--muted); }
.post article pre { background: var(--panel2); padding: 14px; border-radius: var(--r-lg); overflow-x: auto; }
.post article code { background: var(--panel2); padding: 1px 5px; border-radius: var(--r-sm); }
.post .card-cta { margin-top: 40px; }

@media (max-width: 640px) {
  .card-main { padding: 0 16px 18px; }
  .card-id { align-items: flex-start; }
  .card-avatar { width: 92px; height: 92px; }
  .pub-nav > a:not(.btn) { display: none; }
}

/* ---------- discover + prices ---------- */
.tab-title { margin: 0 0 12px; font-size: 20px; }
.ftc { background: #f0b42912; border: 1px solid #f0b42940; color: var(--text); border-radius: var(--r-lg); padding: 8px 12px; font-size: 13px; margin-bottom: 14px; }
.ftc a { color: var(--long); }
.toggles label:not(.switch) { display: inline-flex; gap: 8px; align-items: center; font-size: 14px; }
.price-line { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-top: 6px; }
.price-now { font-size: 18px; font-weight: 600; }
.price-was { text-decoration: line-through; color: var(--muted); font-size: 13px; }
.cut { background: #2ecc7122; color: var(--strong); font-weight: 600; border-radius: var(--r-lg); padding: 1px 6px; font-size: 12px; }
.low-tag { background: #ff6bd51f; color: #ff9be3; border-radius: var(--r-sm); padding: 1px 7px; font-size: 12px; font-weight: 600; }
.watched { margin-bottom: 14px; }
.watch-row { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.watch-item { display: flex; gap: 10px; align-items: center; text-align: left; min-width: 230px; font-weight: 400; }
.watch-item .art { width: 40px; height: 54px; font-size: 12px; }
.price-card { max-width: 560px; text-align: left; position: relative; }
.price-card .close { position: absolute; top: 12px; right: 12px; font-size: 16px; }
.stores { display: flex; flex-direction: column; gap: 6px; margin: 12px 0; }
.store-row { display: grid; grid-template-columns: 1fr auto auto; gap: 12px; align-items: center; background: var(--panel2); border-radius: var(--r-lg); padding: 8px 12px; }
.aff-tag { font-size: 10px; font-weight: 600; color: var(--long); border: 1px solid #f0b42966; border-radius: var(--r-sm); padding: 0 4px; margin-left: 4px; }
.price-chart { width: 100%; height: auto; background: var(--panel2); border-radius: var(--r-lg); }
.chart-legend { display: flex; justify-content: space-between; margin: 4px 0 12px; }

/* ---------- notification bell ---------- */
.bell-wrap { position: relative; }
.bell { background: none; border: 0; font-size: 18px; padding: 4px 6px; position: relative; }
.bell .count { position: absolute; top: -4px; right: -6px; }
.bell-panel { position: absolute; right: 0; top: 40px; width: 340px; max-height: 420px; overflow: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); z-index: 30; }
.bell-head { padding: 10px 14px; border-bottom: 1px solid var(--line); }
.bell-item { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; font-weight: 400; }
.bell-item.unread { background: rgba(232, 116, 59, 0.08); }
.bell-item:hover { background: var(--panel2); }
.pad { padding: 14px; }
@media (max-width: 760px) { .bell-panel { position: fixed; left: 8px; right: 8px; width: auto; top: 56px; } .store-row { grid-template-columns: 1fr auto; } .store-row .btn { grid-column: 1 / -1; } }

/* ---------- hover cards ---------- */
[data-hc] { cursor: pointer; }
a[data-hc] { color: inherit; text-decoration: none; border-bottom: 1px dotted #ffffff44; }
a[data-hc]:hover { color: var(--accent); border-bottom-color: var(--accent); }
.hovercard { position: absolute; z-index: 80; width: 300px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); overflow: hidden; }
.hc-banner { height: 64px; }
.hc-body { --hc: var(--accent); padding: 0 14px 12px; display: flex; flex-direction: column; gap: 6px; }
.hc-body.muted { padding: 14px; }
.hc-av { width: 56px; height: 56px; border-radius: 50%; margin-top: -28px; border: 3px solid var(--panel); box-shadow: 0 0 0 2px var(--hc); object-fit: cover; background: var(--panel2); display: grid; place-items: center; }
.hc-name { font-weight: 600; font-size: 16px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.hc-live { font-size: 11px; font-weight: 600; color: #ffb3ad; background: #e5534b22; border-radius: var(--r-lg); padding: 1px 8px; }
.hc-bio { margin: 2px 0; font-size: 13px; }
.hc-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.hc-tags span { border: 1px solid var(--hc); color: var(--hc); border-radius: var(--r-sm); padding: 0 8px; font-size: 11px; font-weight: 600; }
.hc-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.hc-badges span { background: #2ecc7114; border: 1px solid #2ecc7144; border-radius: var(--r-sm); padding: 0 8px; font-size: 11px; font-weight: 600; }
.hc-foot { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid var(--line); padding-top: 8px; margin-top: 2px; }
.hc-foot a { color: var(--hc); font-weight: 600; font-size: 13px; }
.vis-pick { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 6px; }
.vis-pick label { display: flex !important; flex-direction: row !important; gap: 8px; align-items: flex-start; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 8px 12px; cursor: pointer; flex: 1; min-width: 180px; color: var(--text) !important; font-weight: 500 !important; }
.vis-pick label:has(input:checked) { border-color: var(--accent2); background: rgba(232, 116, 59, 0.1); }
.vis-pick input { margin-top: 3px; accent-color: var(--accent2); }

/* ---------- engagement ---------- */
.cotd { display: flex; gap: 10px 14px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); }
.cotd-label { font-size: 12px; font-weight: 600; color: var(--strong); }
.heat-card { max-width: 760px; text-align: left; position: relative; }
.heat-card .close { position: absolute; top: 12px; right: 12px; font-size: 16px; }
.heat { display: grid; grid-template-columns: 40px repeat(24, 1fr); gap: 3px; margin: 12px 0; overflow-x: auto; }
.heat-h { font-size: 10px; color: var(--muted); white-space: nowrap; }
.heat-d { font-size: 12px; color: var(--muted); align-self: center; }
.heat-c { aspect-ratio: 1; border-radius: var(--r-sm); min-width: 12px; }
.heat-legend { display: flex; gap: 14px; flex-wrap: wrap; }
.heat-legend i { display: inline-block; width: 12px; height: 12px; border-radius: var(--r-sm); vertical-align: -2px; margin-right: 4px; }
.event-head { display: flex; gap: 14px; align-items: center; }
.event-head h2 { margin: 0; }
.event-badge { font-size: 40px; }
.event-progress { height: 10px; background: var(--panel2); border-radius: 99px; overflow: hidden; margin: 8px 0; }
.event-progress div { height: 100%; background: var(--accent2); }
.finishers { display: flex; flex-direction: column; gap: 6px; }
.finishers a { display: flex; align-items: center; gap: 8px; border: 0; }
.spotlight .spot-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 18px; }
.spot { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 150px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 10px; color: var(--text); text-decoration: none; }
.spot img, .spot .av { border-radius: 50%; }
.spot:hover { border-color: #3a3a42; }
@media (max-width: 760px) { .heat { grid-template-columns: 30px repeat(24, minmax(10px, 1fr)); } }

/* ---------- indie ---------- */
.indie .art { object-fit: cover; }
.key-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.key-row code { background: var(--panel2); padding: 4px 8px; border-radius: var(--r-lg); font-size: 14px; }
.react { border-radius: var(--r-md); padding: 4px 12px; }
.react.on { border-color: var(--accent2); background: rgba(232, 116, 59, 0.13); }
.post-img { max-width: 100%; border-radius: var(--r-lg); margin: 8px 0; display: block; }
.indie-card-modal { max-width: 560px; text-align: left; position: relative; }
.indie-card-modal .close { position: absolute; top: 12px; right: 12px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin: 8px 0; }
.thumb { position: relative; width: 120px; height: 68px; border-radius: var(--r-lg); overflow: hidden; background: var(--panel2); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .linkbtn { position: absolute; top: 2px; right: 2px; background: #000a; border-radius: var(--r-md); color: #fff; }
.beta { background: #4aa8ff14; border: 1px solid #4aa8ff44; border-radius: var(--r-sm); padding: 8px 12px; margin-bottom: 14px; font-size: 14px; }
.dev-layout { display: grid; grid-template-columns: 280px 1fr; gap: 16px; align-items: start; }
.dev-side { display: flex; flex-direction: column; gap: 14px; }
.dev-game { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; margin-bottom: 8px; font-weight: 400; }
.dev-game.on { border-color: var(--accent2); background: rgba(232, 116, 59, 0.1); }
.dev-game img, .dev-game .art { width: 44px; height: 44px; border-radius: var(--r-lg); object-fit: cover; font-size: 18px; }
.ap-approved { color: var(--strong); } .ap-pending { color: var(--long); } .ap-rejected { color: var(--none); } .ap-draft { color: var(--muted); }
.pane-head { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.pane-head h2, .pane-head h3 { margin: 0; }
.radio-row { display: flex !important; flex-direction: row !important; gap: 8px; align-items: flex-start; padding: 4px 0; color: var(--text) !important; font-weight: 400 !important; font-size: 14px !important; }
.gQ { width: 100%; margin-bottom: 6px; }
.dev-signin { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin: 10px 0; }
.btn.google-btn { background: #fff; color: #222; }
.game-page { max-width: 900px; margin: 0 auto; padding: 30px 20px; display: flex; flex-direction: column; gap: 14px; }
.game-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
.game-head h1 { margin: 6px 0; font-size: clamp(30px, 5vw, 44px); }
.sub.left { text-align: left; margin: 0 0 10px; }
.game-cta { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-box { border-radius: var(--r-lg); padding: 12px 16px; font-size: 15px; }
.ai-none { background: #2ecc7112; border: 1px solid #2ecc7144; }
.ai-used { background: #f0b42912; border: 1px solid #f0b42955; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.gallery img { width: 100%; border-radius: var(--r-lg); aspect-ratio: 16 / 9; object-fit: cover; }
.devpost img { max-width: 100%; border-radius: var(--r-lg); margin: 8px 0; }
.indie-card { display: flex; gap: 14px; }
.indie-card img { width: 160px; height: 90px; object-fit: cover; border-radius: var(--r-lg); flex: none; }
@media (max-width: 860px) { .dev-layout { grid-template-columns: 1fr; } .key-row { grid-template-columns: 1fr auto; } .indie-card img { width: 100px; height: 56px; } }
.plan.soon { opacity: .8; border-style: dashed; }
.btn.disabled { pointer-events: none; opacity: .6; }
.plans { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.pricing { max-width: 1100px; }
.game-page .card-box h2 { margin-top: 0; }

/* ---------- card page: back link + "link up" sidebar ---------- */
html { background: var(--bg); }
.back-link { display: inline-block; margin: 14px 0 10px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.back-link:hover { color: var(--text); }
.card-page.has-side { max-width: 1240px; }
.card-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; }
.has-side .card-layout { grid-template-columns: minmax(0, 1fr) 320px; }
.has-side .card-banner { margin: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.card-col { min-width: 0; }
.card-side { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 76px; }
.card-side .card-box h3 { margin: 0 0 8px; font-size: 16px; }
.side-person { display: flex; gap: 10px; align-items: center; padding: 8px; margin: 0 -8px; border-radius: var(--r-lg); color: var(--text); text-decoration: none; border: 0 !important; }
.side-person:hover { background: var(--panel2); }
.side-person img, .side-person .av { border-radius: 50%; flex: none; object-fit: cover; }
.sp-body { display: flex; flex-direction: column; min-width: 0; }
.sp-games { color: var(--accent-card, var(--accent)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.link-up { border-color: var(--accent-card, var(--accent2)); }
.link-up .row-btns { margin-top: 10px; }
.pub-me { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; overflow: hidden; background: var(--panel2); color: var(--text); text-decoration: none; font-weight: 600; font-size: 12px; }
.pub-me img { width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 960px) {
  .has-side .card-layout { grid-template-columns: minmax(0, 1fr); }
  .card-side { position: static; }
}
.sp-name { display: flex; gap: 6px; align-items: center; }

.shine { margin: 14px 0 4px; border-color: #f0b42955; background: var(--panel); }
.shine-head { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.shine-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 4px 14px; margin: 8px 0 12px; font-size: 13px; color: var(--muted); }
.shine-list .ok { color: var(--text); }

/* ---------- game hover popup ---------- */
[data-gc] { cursor: help; }
.hovercard.game { width: 320px; }
.gc { display: flex; gap: 12px; padding: 12px 14px 4px; }
.gc-art { width: 64px; height: 86px; border-radius: var(--r-lg); object-fit: cover; flex: none; display: grid; place-items: center; }
.gc-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.gc-name { font-size: 16px; line-height: 1.2; }
.gc-stats { padding-top: 8px; }
.gc-row { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; }
.gc-row span:first-child { color: var(--muted); white-space: nowrap; }
.gc-row b { text-align: right; }

/* ---------- card editor: steps + game picker ---------- */
.editor-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.editor-steps .step.wide { grid-column: 1 / -1; }
.step h3 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.step-n { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); font-size: 13px; font-weight: 600; flex: none; }
.big-chips .chip { font-size: 15px; padding: 8px 16px; }
#cGameFilter { width: 100%; max-width: 360px; margin: 10px 0; }
.picked-row, .game-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
.picked-row { padding-bottom: 12px; border-bottom: 1px solid var(--line); min-height: 40px; }
.game-tile { position: relative; display: flex; flex-direction: column; gap: 4px; padding: 0; background: none; border: 2px solid transparent; border-radius: var(--r-lg); text-align: left; font-weight: 500; }
.game-tile img, .game-tile .art { width: 100%; height: auto; aspect-ratio: 3 / 4; border-radius: var(--r-lg); object-fit: cover; }
.game-tile:hover { border-color: var(--line); }
.game-tile.on { border-color: var(--accent2); background: rgba(232, 116, 59, 0.1); }
.gt-name { font-size: 12px; line-height: 1.25; padding: 0 4px 4px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.gt-hours { position: absolute; top: 6px; left: 6px; background: #000b; color: #fff; font-size: 10px; border-radius: var(--r-sm); padding: 0 4px; }
.gt-check { position: absolute; top: 6px; right: 6px; background: var(--accent2); color: var(--on-accent); width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; font-size: 13px; }
.twitch-banner-img { width: 64px; height: 36px; border-radius: var(--r-lg); background-size: cover !important; background-position: center !important; }
.card-box.placeholder { border-style: dashed; }
/* sidebar people with their banner */
.side-person.with-banner { flex-wrap: wrap; position: relative; padding-top: 0; overflow: hidden; background: var(--panel2); margin: 0 0 10px; border-radius: var(--r-lg); }
.side-person.with-banner:hover { background: #26262f; }
.sp-banner { display: block; width: calc(100% + 16px); height: 54px; margin: 0 -8px 0; flex-basis: 100%; }
.side-person.with-banner img, .side-person.with-banner .av { margin-top: -22px; border: 3px solid var(--panel2); box-shadow: 0 0 0 2px var(--sp-accent, var(--accent)); width: 44px; height: 44px; }
.side-person.with-banner .sp-body { padding: 4px 0 6px; }
@media (max-width: 860px) { .editor-steps { grid-template-columns: 1fr; } }

/* ---------- indie storefront ---------- */
.storefront { max-width: 1240px; margin: 0 auto; padding: 24px 20px 40px; }
.storefront.in-app { padding: 0; }
.sf-intro h1 { margin: 0 0 4px; font-size: clamp(28px, 4vw, 40px); }
.sf-hero { display: grid; grid-template-columns: 1.6fr 1fr; gap: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; margin: 18px 0; position: relative; }
.sf-hero-img { display: block; aspect-ratio: 16 / 9; background: var(--panel2); }
.sf-hero-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.sf-hero-body { padding: 22px; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.sf-hero-body h2 { margin: 0; font-size: 28px; line-height: 1.15; }
.sf-hero-body h2 a { color: var(--text); text-decoration: none; }
.sf-hero-body p { margin: 0; color: var(--muted); font-size: 16px; }
.sf-label { font-size: 12px; font-weight: 600; color: var(--long); }
.sf-shots { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; background: var(--line); }
.sf-shots img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.sf-toolbar { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; margin: 6px 0 14px; position: sticky; top: 58px; z-index: 4; background: var(--bg); padding: 8px 0; }
.sf-filters { display: flex; gap: 6px; flex-wrap: wrap; }
.sf-filters .mood { padding: 6px 12px; font-size: 13px; }
.sf-right { display: flex; gap: 8px; }
.sf-search { width: 200px; }
.sf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.capsule { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; transition: transform .15s, border-color .15s; }
.capsule:hover { border-color: #4a4a5c; }
.capsule.is-hidden { opacity: .6; }
.cap-img { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--panel2); }
.cap-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cap-ph { display: grid; place-items: center; height: 100%; font-size: 34px; font-weight: 600; color: #ffffff44; }
.cap-status { position: absolute; top: 8px; left: 8px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-lg); background: #000c; color: #fff; }
.st-demo { color: #8fd3ff; } .st-early_access { color: var(--long); } .st-released { color: var(--strong); } .st-coming_soon { color: #ff9be3; }
.cap-keys { position: absolute; bottom: 8px; right: 8px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-lg); background: var(--accent); color: var(--on-accent); }
.cap-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; flex: 1; }
.cap-title { font-weight: 600; font-size: 17px; color: var(--text); text-decoration: none; }
.cap-title:hover { color: var(--accent); }
.cap-foot { margin-top: auto; padding-top: 8px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.cap-actions { display: flex; gap: 4px; }
.follow-btn { border-radius: var(--r-md); padding: 5px 12px; font-size: 13px; }
.follow-btn.on { background: #f0b4291f; border-color: #f0b42977; color: var(--long); }
.hide-btn { border-radius: var(--r-md); padding: 5px 10px; font-size: 13px; color: var(--muted); }
.hide-btn.unhide { color: var(--text); }
@media (max-width: 860px) { .sf-hero { grid-template-columns: 1fr; } .sf-search { width: 140px; } .sf-toolbar { top: 0; } }

/* logged in public pages use the app's tab bar */
.app-nav { display: flex; gap: 4px; flex: 1; justify-content: center; flex-wrap: wrap; }
.app-nav .tab { text-decoration: none; }
.landing header.top .who { margin-left: auto; }
@media (max-width: 760px) { .app-nav { order: 3; flex-basis: 100%; flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; } }

/* Pricing always visible in the nav */
.tab-pricing { color: var(--long) !important; border: 1px solid #f0b42955 !important; text-decoration: none; }
.tab-pricing:hover, .tab-pricing.active { background: #f0b4291f !important; color: var(--long) !important; }
.nav-pricing { color: var(--long) !important; font-weight: 600 !important; border: 1px solid #f0b42966; border-radius: var(--r-md); padding: 6px 12px; text-decoration: none; }
.nav-pricing:hover, .nav-pricing.active { background: #f0b4291f; }
.card-id h1 .pill { vertical-align: middle; font-size: 11px; }

/* devlog feed as a compact grid */
#iFeed { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; }
#iFeed .devpost-card { margin: 0; }
#iFeed .devpost-card h3 { margin: 4px 0; font-size: 16px; }
#iFeed .devpost-card p { font-size: 14px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.devpost-card .post-img { width: 100%; max-height: 170px; object-fit: cover; }
.cap-foot { flex-wrap: wrap; }

/* ---------- landing hero background (video or animated) ---------- */
.hero.has-media { position: relative; isolation: isolate; max-width: none; padding-left: 24px; padding-right: 24px; overflow: hidden; }
.hero.has-media > *:not(.hero-bg):not(.hero-credit) { max-width: 820px; margin-left: auto; margin-right: auto; position: relative; }
.hero.has-media > .demo-card { max-width: 560px; }
.hero-bg { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-video { width: 100%; height: 100%; object-fit: cover; opacity: .35; filter: saturate(1.2); }
.hero-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at center, #0f0f1155 0%, #0f0f11cc 60%, var(--bg) 100%), linear-gradient(transparent 60%, var(--bg)); }
.hero-credit { position: absolute; right: 14px; bottom: 10px; font-size: 11px; color: var(--muted); text-decoration: none; opacity: .8; }
.hero-credit:hover { color: var(--text); }
@media (prefers-reduced-motion: reduce) { .hero-video { display: none; } }

/* ---------- game page modal ---------- */
.game-modal { max-width: 620px; text-align: left; position: relative; }
.game-modal .close { position: absolute; top: 12px; right: 12px; font-size: 16px; }
.gm-head { display: flex; gap: 16px; margin-bottom: 12px; }
.gm-head h2 { margin: 0 0 4px; }
.gm-art { width: 96px; height: 128px; border-radius: var(--r-lg); object-fit: cover; flex: none; }
.gm-rank { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r-lg); border: 1px solid var(--vc); background: var(--panel2); }
.gm-rank b { display: block; font-size: 22px; color: var(--vc); }
.gm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 12px 0; }
.gm-stats div { background: var(--panel2); border-radius: var(--r-lg); padding: 8px 10px; display: flex; flex-direction: column; }
.gm-stats b { font-size: 18px; } .gm-stats span { font-size: 12px; color: var(--muted); }
.gm-actions { margin: 12px 0; }
@media (max-width: 600px) { .gm-stats { grid-template-columns: repeat(2, 1fr); } }
.gc-actions { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--line); }
.gc-actions .btn.small { padding: 5px 9px; font-size: 12px; }
td a[data-gc], h4 a[data-gc] { color: inherit; text-decoration: none; } td a[data-gc]:hover, h4 a[data-gc]:hover { color: var(--accent); text-decoration: underline; }
.watch-wrap { position: relative; display: flex; }
.watch-wrap .watch-item { padding-right: 34px; }
.watch-x { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; padding: 0; border-radius: 50%; font-size: 12px; line-height: 1; background: transparent; border: 1px solid var(--line); color: var(--muted); }
.watch-x:hover { color: #fff; background: #e5534b; border-color: #e5534b; }
.hc-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 12px; color: var(--muted); margin: 6px 0 2px; }
.hc-stats b { color: var(--text, #fff); }

.people-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin: 12px 0; }
.person { background: var(--panel); border: 1px solid var(--line); border-top: 3px solid var(--pc, var(--accent)); border-radius: var(--r-lg); padding: 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.person-head { display: flex; gap: 12px; align-items: center; }
.person-name { font-size: 16px; }
.person-bio { margin: 0; font-size: 13px; color: var(--muted); }
.person-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.person-tags span { font-size: 11px; padding: 2px 8px; border-radius: var(--r-sm); border: 1px solid var(--line); color: var(--muted); }
.person-tags span.same { border-color: #2ecc71; color: #2ecc71; }
.person-tags span.close { border-color: #a3d943aa; color: #a3d943; }
.person-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; background: #ffffff08; border-radius: var(--r-lg); padding: 8px 4px; }
.person-stats b { display: block; font-size: 15px; }
.person-stats span { font-size: 11px; color: var(--muted); }
.shead { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; }
.shead h3 { margin: 0; }

/* ---------- rich text ---------- */
.rich p { margin: 0 0 10px; } .rich p:last-child { margin-bottom: 0; }
.rich h3 { font-size: 17px; margin: 14px 0 6px; }
.rich ul, .rich ol { margin: 6px 0 10px; padding-left: 22px; }
.rich blockquote { margin: 8px 0; padding: 6px 12px; border-left: 3px solid var(--accent); background: #ffffff08; border-radius: 0 var(--r-lg) var(--r-lg) 0; color: var(--muted); }
.rich mark { background: #f0b42955; color: inherit; padding: 0 3px; border-radius: var(--r-sm); }
.rich code { background: #ffffff14; padding: 1px 5px; border-radius: var(--r-sm); font-size: .92em; }
.rich a { color: var(--accent); }
.spoiler { background: #3a3a48; color: transparent; border-radius: var(--r-sm); padding: 0 4px; cursor: pointer; transition: color .15s; }
.spoiler:hover, .spoiler:focus { color: inherit; background: #ffffff14; }
.rt-bar { display: flex; flex-wrap: nowrap; gap: 3px; align-items: center; padding: 4px; border: 1px solid var(--line); border-bottom: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; background: #ffffff06; min-width: 0; }
.rt-tools { display: flex; flex-wrap: nowrap; gap: 3px; align-items: center; flex: 1 1 auto; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.rt-tools::-webkit-scrollbar { display: none; }
.rt-aa { display: none; }
.rt-prev { margin-left: auto; flex: none; }
.rt-btn svg { vertical-align: -3px; }
.rt-btn mark { background: #f5d76e; color: #111; padding: 0 2px; border-radius: var(--r-sm); }
@media (max-width: 760px) {
  .rt-aa { display: inline-flex; align-items: center; justify-content: center; flex: none; }
  .rt-bar .rt-tools { display: none; }
  .rt-bar.rt-open .rt-tools { display: flex; }
  .rt-btn { min-width: 36px; height: 34px; flex: none; }
}
.rt-bar + textarea { border-top-left-radius: 0; border-top-right-radius: 0; }
.rt-btn { min-width: 30px; height: 28px; padding: 0 7px; font-size: 13px; border-radius: var(--r-md); background: transparent; border: 1px solid transparent; color: var(--text, #eee); }
.rt-btn:hover, .rt-btn.on { background: #ffffff14; border-color: var(--line); }
.rt-sep { width: 1px; height: 18px; background: var(--line); margin: 0 4px; }
.rt-grow { flex: 1; }
.rt-preview { border: 1px solid var(--line); border-radius: 0 0 var(--r-lg) var(--r-lg); padding: 10px 12px; min-height: 120px; background: #ffffff05; }
/* ---------- studios and developer profiles ---------- */
.studio-page { max-width: 1100px; margin: 0 auto; padding: 18px 16px 60px; }
.sp-hero { margin: 12px 0 18px; border-radius: var(--r-lg); overflow: hidden; background: var(--banner, var(--panel2)) center/cover; min-height: 170px; display: flex; align-items: flex-end; }
.sp-hero-inner { display: flex; gap: 16px; align-items: center; width: 100%; padding: 16px 18px; background: linear-gradient(transparent, #000c); flex-wrap: wrap; }
.sp-hero h1 { margin: 0; font-size: 30px; }
.sp-logo { width: 84px; height: 84px; border-radius: var(--r-lg); object-fit: cover; border: 3px solid #fff2; display: grid; place-items: center; font-size: 26px; flex: none; }
.sp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 18px; align-items: start; }
.sp-side { position: sticky; top: 76px; }
.sp-member { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: var(--r-lg); color: inherit; text-decoration: none; }
.sp-member:hover { background: #ffffff0a; }
.sp-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 13px; }
.sp-cav { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; display: inline-grid; place-items: center; font-size: 11px; }
.sp-post { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px; margin-bottom: 14px; scroll-margin-top: 80px; }
.sp-post:target { border-color: var(--accent); }
.sp-post h3 { margin: 10px 0 6px; }
.sp-post-head { display: flex; gap: 10px; align-items: center; }
.sp-post-head > div { flex: 1; min-width: 0; }
.sp-tools { display: flex; gap: 8px; }
.sp-img { max-width: 100%; border-radius: var(--r-lg); margin: 8px 0; display: block; }
.sp-reacts { margin-top: 8px; }
.sp-comments { border-top: 1px solid var(--line); margin-top: 10px; padding-top: 8px; display: flex; flex-direction: column; gap: 8px; }
.sp-comment { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; }
.sp-comment > div { flex: 1; min-width: 0; }
.sp-comment.dev { background: #ffffff08; border-radius: var(--r-lg); padding: 6px 8px; }
.sp-devtag { font-size: 11px; color: var(--text); background: var(--panel2); border-radius: var(--r-sm); padding: 1px 7px; }
.sp-cform { display: flex; gap: 6px; }
.sp-cform input { flex: 1; min-width: 0; }
.sp-compose { display: flex; flex-direction: column; gap: 8px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; margin-bottom: 16px; }
.sp-compose-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sp-compose-row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.sp-compose-row input[name=video_url] { flex: 1; min-width: 200px; }
.sp-compose textarea { width: 100%; }
.sp-compose > .btn.primary { align-self: flex-start; }
.file-btn { cursor: pointer; }
.dev-hero { display: flex; gap: 18px; align-items: flex-start; margin: 12px 0 18px; }
.dev-hero h1 { margin: 0 0 4px; }
.dev-av { width: 110px; height: 110px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; font-size: 34px; }
.dev-role { color: var(--muted); margin-bottom: 8px; }
.studio-link { text-decoration: none; }
.studio-link:hover { text-decoration: underline; }
a.tag.studio-link { color: inherit; }
/* developer portal */
.dev-views { align-items: center; margin-bottom: 14px; }
.dev-views .btn { margin-left: auto; }
.member-row { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.member-row .grow { flex: 1; min-width: 120px; }
.img-pick { display: flex; gap: 18px; flex-wrap: wrap; margin: 8px 0 12px; }
.img-pick > div { display: flex; flex-direction: column; gap: 6px; }
.st-logo { width: 72px; height: 72px; border-radius: var(--r-lg); object-fit: cover; display: grid; place-items: center; }
.st-logo.round { border-radius: 50%; }
.st-banner { width: 220px; height: 72px; border-radius: var(--r-lg); object-fit: cover; display: block; background: #ffffff0a; }
.ok-box { border-color: #2ecc71aa; }
.invite { letter-spacing: 2px; color: var(--accent); }
.dev-post .pane-head { gap: 8px; }
.dev-comments { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
/* moderation */
.team-list { display: flex; flex-direction: column; gap: 6px; margin: 8px 0 12px; }
.team-row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.report blockquote { margin: 6px 0; padding: 6px 10px; border-left: 3px solid #e5534b; background: #ffffff06; white-space: pre-wrap; }
.mod-log { max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 4px; }
.tag.danger { border-color: #e5534b; color: #ff8a84; }
.suspended-bar { background: #5c1d1d; color: #ffd4d1; text-align: center; padding: 10px 16px; font-weight: 600; }
@media (max-width: 820px) {
  .sp-layout { grid-template-columns: 1fr; }
  .sp-side { position: static; order: -1; }
  .dev-hero { flex-direction: column; align-items: center; text-align: center; }
  .dev-hero .row-btns { justify-content: center; }
  .sp-hero h1 { font-size: 24px; }
}

/* ---------- growth loop ---------- */
.golive-btn { margin-right: 8px; white-space: nowrap; }
.golive-modal { max-width: 820px; text-align: left; position: relative; }
.golive-modal h3 { margin: 16px 0 8px; font-size: 15px; }
.gl-picks { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.gl-pick { display: flex; gap: 10px; text-align: left; align-items: center; padding: 8px; border-radius: var(--r-md); border: 1px solid var(--line); background: #ffffff05; font-weight: 400; }
.gl-pick.on { border-color: var(--accent); background: rgba(232, 116, 59, 0.1); }
.gl-pick img, .gl-pick .art { width: 46px; height: 62px; border-radius: var(--r-md); object-fit: cover; flex: none; display: grid; place-items: center; }
.score-mini { font-size: 12px; font-weight: 600; }
.gl-titles { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.chip { font-size: 12px; padding: 5px 10px; border-radius: var(--r-md); border: 1px solid var(--line); background: #ffffff08; font-weight: 400; text-align: left; }
.chip:hover { border-color: var(--accent); }
#glTitle { width: 100%; }
.gl-side { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
.gl-side h4 { margin: 0 0 6px; }
.goal-mini { display: grid; grid-template-columns: 1fr 90px auto; gap: 8px; align-items: center; font-size: 13px; margin: 4px 0; }
.recap-modal { max-width: 620px; text-align: left; position: relative; }
.growth-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.growth-stats { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); margin: 10px 0 16px; }
.goal { margin: 10px 0; }
.goal-top { display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; margin-bottom: 4px; }
.goal-top b { flex: 1; }
.goal-add { margin-top: 12px; flex-wrap: wrap; }
.goal-add select { flex: 1; min-width: 200px; }
.milestone { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.ms-icon { font-size: 26px; line-height: 1; }
.recap-old { border-bottom: 1px solid var(--line); padding: 6px 0; }
.recap-old summary { cursor: pointer; }
.buddy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 6px 0; }
.buddy .grow { flex: 1; min-width: 150px; }
.buddy-box { margin-bottom: 14px; }
.card.improved .rank { font-size: 22px; font-weight: 600; color: var(--text); align-self: center; min-width: 36px; }
.cal-day { margin-bottom: 14px; }
.cal-day h3 { margin: 6px 0; font-size: 15px; }
.cal-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-lg); margin-bottom: 6px; background: var(--panel); flex-wrap: wrap; }
.cal-item.you { border-color: rgba(232, 116, 59, 0.4); }
.cal-item.playtest { border-color: #2ec4b666; }
.cal-item .grow { flex: 1; min-width: 160px; }
.cal-time { font-weight: 600; min-width: 74px; }
.pt-list { display: grid; gap: 10px; margin-bottom: 18px; }
.pt-card { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 0; }
.pt-card img { width: 110px; height: 62px; object-fit: cover; border-radius: var(--r-lg); }
.pt-card .grow { flex: 1; min-width: 200px; }
.playtests .pt-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.playtests .pt-row .grow { flex: 1; min-width: 200px; }
.push-groups { display: flex; flex-direction: column; gap: 4px; margin: 10px 0; }
.sp-post.pinned { border-color: #f0b42999; }
.pin-tag { font-size: 12px; font-weight: 600; color: #f0b429; margin-bottom: 8px; }
.share-page { max-width: 720px; margin: 0 auto; padding: 30px 16px 60px; text-align: center; }
.share-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 34px 20px; margin-bottom: 26px; }
.share-icon { font-size: 64px; }
.share-av { width: 72px; height: 72px; border-radius: 50%; margin: 8px auto; display: block; }
.share-card h1 { margin: 8px 0; }
.row-btns.center { justify-content: center; }
@media (max-width: 820px) { .golive-btn { padding: 6px 8px; font-size: 12px; } .goal-mini { grid-template-columns: 1fr 70px; } .goal-mini .muted { display: none; } }
/* Header fits one line on laptops even with the Go live button */
@media (max-width: 1500px) and (min-width: 761px) { header.top { gap: 10px; padding-left: 16px; padding-right: 16px; } .tab { padding: 8px 10px; } .who #pointsPill { display: none; } }
@media (max-width: 1460px) and (min-width: 761px) { .who #displayName { display: none; } .tab { padding: 8px 9px; } }
@media (max-width: 1280px) and (min-width: 761px) { .who #displayName, .who #planBadge { display: none; } .tab { padding: 7px 8px; font-size: 14px; } .brand { font-size: 16px; } }
@media (max-width: 1180px) and (min-width: 761px) { nav { order: 3; flex-basis: 100%; justify-content: flex-start; overflow-x: auto; } }

/* ---------- group posts ---------- */
.group-box { margin: 14px 0; }
.group-compose textarea { width: 100%; }
.group-compose .row-btns { align-items: center; margin-top: 6px; }
.group-posts { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.gpost { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px; background: #ffffff04; }
.gpost-head { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.gpost-head .grow { flex: 1; }
.gpost-actions { display: flex; gap: 6px; margin-top: 8px; }
.gcomments { border-top: 1px solid var(--line); margin-top: 8px; padding-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.gcomment { font-size: 14px; }
.gcomment .rich { display: inline; }
.share-cardlet { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 10px; margin-top: 8px; color: inherit; text-decoration: none; background: #ffffff06; }
a.share-cardlet:hover { border-color: var(--accent); }
.share-cardlet img { width: 64px; height: 40px; object-fit: cover; border-radius: var(--r-lg); flex: none; }
.sc-icon { font-size: 26px; width: 40px; text-align: center; flex: none; }

/* ---------- feedback & help ---------- */
.fb-float { position: fixed; left: 16px; bottom: 16px; z-index: 40; border-radius: var(--r-lg); padding: 9px 14px; font-size: 13px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.fb-float:hover { border-color: var(--accent); }
.fb-modal { max-width: 680px; text-align: left; position: relative; }
.fb-pane { margin-top: 12px; max-height: 60vh; overflow: auto; }
.fb-kinds { flex-wrap: wrap; }
.idea { display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.idea .grow { flex: 1; min-width: 0; }
.vote { display: flex; flex-direction: column; align-items: center; min-width: 48px; padding: 6px; border-radius: var(--r-md); border: 1px solid var(--line); background: #ffffff06; font-size: 12px; }
.vote.on { border-color: var(--accent); color: var(--accent); background: rgba(232, 116, 59, 0.1); }
.vote b { font-size: 15px; }
.fb-reply { background: #ffffff08; border-left: 3px solid var(--line); padding: 6px 10px; border-radius: 0 var(--r-lg) var(--r-lg) 0; margin: 6px 0; }
.faq { border-bottom: 1px solid var(--line); padding: 8px 0; }
.faq summary { cursor: pointer; font-weight: 600; }
.fb-item h3 { margin: 6px 0; }
@media (max-width: 760px) { .fb-float { bottom: 12px; left: 12px; padding: 8px 12px; } }

/* ---------- share window ---------- */
.share-modal { max-width: 520px; text-align: left; position: relative; }
.share-modal h2 { margin: 0 0 12px; }
.share-cardlet.static { margin: 0 0 12px; }
.share-modal textarea { width: 100%; }
.share-where { display: flex; flex-direction: column; gap: 8px; margin: 12px 0 16px; }
.check-row { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); cursor: pointer; }
.check-row:has(input:checked) { border-color: var(--accent); background: rgba(232, 116, 59, 0.07); }
.check-row input { width: 18px; height: 18px; accent-color: var(--accent); }
.pshares { display: flex; flex-direction: column; gap: 10px; }
.pshare p { margin: 0 0 4px; }

/* =================== Phone layout (dedicated mobile version) =================== */
.mobile-nav { display: none; }
.mobile-sheet .sheet-grip { width: 40px; height: 4px; border-radius: var(--r-sm); background: var(--line); margin: 0 auto 12px; }
.sheet-item { display: block; width: 100%; text-align: left; padding: 14px 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; font-weight: 600; border-radius: 0; }
.sheet-item:last-child { border-bottom: 0; }
.sheet-item.primary-item { color: var(--on-accent); background: var(--accent2); border-radius: var(--r-lg); margin-bottom: 6px; border: 0; }
.sheet-item.pricing { color: #f0b429; }
.sheet-item.muted { color: var(--muted); text-align: center; }

@media (max-width: 760px) {
  body { padding-bottom: calc(68px + env(safe-area-inset-bottom)); -webkit-tap-highlight-color: transparent; }
  /* One slim top bar: logo left, Go live + bell + avatar right. Tabs move to the bottom bar. */
  header.top { flex-wrap: nowrap; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; }
  header.top nav:not(.pub-nav) { display: none !important; }
  header.top .brand { font-size: 16px; gap: 6px; min-width: 0; white-space: nowrap; }
  header.top .brand img { width: 24px; height: 24px; }
  .who { margin-left: auto; gap: 6px; }
  .who #displayName, .who #planBadge, .who #pointsPill { display: none !important; }
  .golive-btn { padding: 6px 10px; font-size: 13px; margin-right: 2px; }
  .pub-nav { gap: 10px; font-size: 14px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .pub-nav .btn { padding: 6px 10px; font-size: 13px; white-space: nowrap; }

  /* Bottom tab bar */
  .mobile-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: color-mix(in srgb, var(--panel) 94%, transparent);
    backdrop-filter: blur(10px); border-top: 1px solid var(--line); padding: 4px 4px calc(4px + env(safe-area-inset-bottom)); }
  .mobile-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 0; background: none; border: 0; border-radius: var(--r-md);
    color: var(--muted); font: 600 11px/1.2 system-ui, -apple-system, sans-serif; min-height: 48px; }
  .mobile-nav button.on { color: var(--text); }
  .mobile-nav button.on svg { color: var(--accent); }
  .fb-float { display: none !important; }
  .toast { left: 12px; right: 12px; max-width: none; bottom: calc(76px + env(safe-area-inset-bottom)); }

  /* Pop-ups slide up as bottom sheets */
  .modal { padding: 0; place-items: end stretch; align-items: end; }
  .modal-card { width: 100%; max-width: none !important; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 92vh; overflow-y: auto;
    padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); animation: sheet-up .18s ease-out; }
  @keyframes sheet-up { from { transform: translateY(24px); opacity: .6; } to { transform: none; opacity: 1; } }
  .modal-card .close { top: 10px; right: 10px; }

  /* Nothing wider than the screen */
  main { padding-left: 14px; padding-right: 14px; }
  .card-box, .col, .two-col > *, .grid > *, .people-grid > * { min-width: 0; }
  input, select, textarea { max-width: 100%; font-size: 16px; } /* 16px stops iPhone from zooming into fields */
  .code-row, .row-btns, .goal-top, .goal-add, .growth-head, .controls, .card-actions { flex-wrap: wrap; }
  .goal-add select, .goal-add input { flex: 1 1 100%; }
  table.lib { display: block; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
  .subnav { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
  .subnav::-webkit-scrollbar, .pub-nav::-webkit-scrollbar { display: none; }
  .subnav button { flex: none; }
  .tab-title, main h2 { font-size: 20px; }
  .two-col { grid-template-columns: 1fr; }
  .growth-stats { grid-template-columns: 1fr 1fr; }
  .gm-stats { grid-template-columns: 1fr 1fr; }
  .people-grid { grid-template-columns: 1fr; }
  .gl-picks { grid-template-columns: 1fr; }
  .cal-time { min-width: 60px; }
  .buddy input.mini { flex: 1 1 100%; }
  .squad-head { flex-wrap: wrap; gap: 6px; }
  .members { grid-template-columns: 1fr; }
  .share-modal .check-row { padding: 12px; }

  /* Streamer Card header: avatar above the name */
  .card-id { flex-direction: column; align-items: flex-start; gap: 6px; }
  .card-avatar { width: 88px; height: 88px; margin-top: -44px; }
  .card-id h1 { font-size: 26px; line-height: 1.15; word-break: break-word; }
  .card-layout { grid-template-columns: 1fr; }
  .card-grid { grid-template-columns: 1fr; }

  /* Studio, developer and game pages */
  .sp-hero-inner { gap: 10px; }
  .sp-logo { width: 64px; height: 64px; }
  .game-head { flex-direction: column; }
  .game-head h1 { font-size: 28px; }
  .game-cta { flex-wrap: wrap; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .sf-toolbar { flex-wrap: wrap; }
  .sf-toolbar > * { min-width: 0; }
  .sf-hero { grid-template-columns: 1fr; }

  /* Developer portal */
  .dev-layout { grid-template-columns: 1fr; }
  .dev-views { flex-wrap: nowrap; overflow-x: auto; }
  .dev-views .btn { margin-left: 0; flex: none; }
}
@media (max-width: 760px) {
  header.top .pub-nav { order: 0; flex: none; flex-basis: auto; margin-left: auto; overflow: visible; gap: 8px; }
  header.top .pub-nav > a:not(.btn):not(.nav-pricing) { display: none; }
  header.top .pub-nav .nav-pricing { padding: 5px 9px; font-size: 13px; }
  header.top .brand .pill { display: none; }
  #devWho > span { display: none; }
  #devWho { gap: 8px; font-size: 13px; }
  header.top .spacer { display: none; }
}
@media (max-width: 380px) { header.top .brand { font-size: 0; } header.top .brand img { width: 28px; height: 28px; } }
@media (max-width: 760px) {
  header.top .pub-nav .btn.twitch { font-size: 0; padding: 7px 12px; }
  header.top .pub-nav .btn.twitch::after { content: 'Log in'; font-size: 13px; }
}
@media (max-width: 760px) {
  header.top .pub-nav > a.nav-pricing { display: inline-block; }
  .dev-layout { grid-template-columns: minmax(0, 1fr); }
  .dev-side, .dev-pane, #devMain > * { min-width: 0; }
}
@media (max-width: 760px) {
  .lib-actions { flex-direction: column; display: flex; }
  .lib-actions > *, .add-row > * { min-width: 0; }
  .search-wrap { min-width: 0; flex: 1 1 100%; }
  .add-row select { flex: 1; }
  .lib-filter { flex-wrap: wrap; }
}
@media (max-width: 760px) {
  .sp-layout { grid-template-columns: minmax(0, 1fr); }
  .sp-main, .sp-side { min-width: 0; }
  .rich, .sp-post, .gpost, .card-bio { overflow-wrap: anywhere; }
}

/* ---------- Community hub ---------- */
.community-back { display: flex; gap: 8px; align-items: center; margin: 4px 0 14px; }
.hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin: 14px 0; }
.hub-tile { display: flex; gap: 14px; align-items: center; text-align: left; padding: 16px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--panel); color: var(--text); font: inherit; cursor: pointer; transition: border-color .15s, transform .15s; min-width: 0; }
.hub-tile:hover { border-color: #3a3a42; }
.hub-tile.alert { border-color: #f0b42999; }
.hub-icon { width: 46px; height: 46px; border-radius: var(--r-md); display: grid; place-items: center; background: var(--panel2); color: var(--muted); flex: none; }
.hub-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.hub-text b { font-size: 16px; }
.hub-num { font-size: 22px; font-weight: 600; color: var(--text); }
.hub-tile.alert .hub-num { color: #f0b429; }
/* ---------- Squad themes (banners) ---------- */
.sq-theme-violet { background: #33285a; }
.sq-theme-teal { background: #134e4a; }
.sq-theme-sunset { background: #6b3044; }
.sq-theme-forest { background: #1f4a35; }
.sq-theme-ocean { background: #164466; }
.sq-theme-rose { background: #5e1f40; }
.sq-theme-gold { background: #5a400f; }
.sq-theme-slate { background: #2c3040; }
/* ---------- Squad marketplace ---------- */
.sq-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.sq-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 12px 0 22px; }
.sq-cap { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.sq-cap:hover { border-color: rgba(232, 116, 59, 0.53); }
.sq-cap-top { position: relative; height: 110px; display: flex; align-items: flex-end; justify-content: space-between; padding: 10px 12px; text-decoration: none; color: #fff; }
.sq-logo { width: 54px; height: 54px; border-radius: var(--r-lg); background: #0006; border: 2px solid #fff3; display: grid; place-items: center; font-weight: 600; font-size: 18px; }
.sq-faces { display: flex; }
.sq-faces img, .sq-faces span { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--panel); margin-left: -8px; object-fit: cover; background: #0007; display: grid; place-items: center; font-size: 11px; }
.sq-badge { position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-sm); background: #000a; }
.sq-badge.inline { position: static; }
.sq-badge.open { color: #7ee2a8; } .sq-badge.ask { color: #f0c46b; } .sq-badge.invite { color: #b9a6ff; } .sq-badge.private { color: #aaa; }
.sq-live { position: absolute; top: 10px; right: 10px; font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-lg); background: #000a; }
.sq-cap-body { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sq-name { font-weight: 600; font-size: 16px; color: var(--text); text-decoration: none; }
.sq-name:hover { text-decoration: underline; }
.sq-stats { display: flex; flex-wrap: wrap; gap: 4px 12px; color: var(--muted); }
.sq-stats b { color: var(--text); }
.sq-foot { margin-top: auto; padding-top: 6px; display: flex; gap: 6px; align-items: center; }
/* ---------- Squad page ---------- */
#sub-squadpage .sp-hero { background-size: cover; }
.sq-tagline { color: #e6e1ff; margin: 2px 0 4px; }
.sq-member, .sq-req { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); }
.sq-member:last-of-type { border-bottom: 0; }
.sq-member .grow, .sq-req .grow { flex: 1; min-width: 0; }
.sq-code { margin-top: 10px; }
.sq-modal { max-width: 560px; text-align: left; position: relative; }
.sq-modal textarea, .sq-modal input:not([type=radio]):not([type=checkbox]) { width: 100%; }
.sq-priv { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 12px; }
.sq-themes { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 12px; }
.sq-swatch { width: 38px; height: 38px; border-radius: var(--r-lg); cursor: pointer; border: 2px solid transparent; position: relative; }
.sq-swatch input { position: absolute; opacity: 0; }
.sq-swatch:has(input:checked) { border-color: #fff; }
.sheet-list { display: flex; flex-direction: column; margin-top: 8px; }
.danger-text { color: #ff8a84 !important; }
@media (max-width: 760px) {
  .hub-grid { grid-template-columns: 1fr; gap: 8px; }
  .hub-tile { padding: 12px; }
  .sq-grid { grid-template-columns: 1fr; }
  .sq-head .row-btns { width: 100%; }
}
.sq-title { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }

/* ---------- profile menu + bell tabs ---------- */
.me-btn { display: flex; align-items: center; gap: 8px; background: none; border: 1px solid transparent; border-radius: var(--r-md); padding: 2px 10px 2px 2px; color: var(--text); font: inherit; font-weight: 600; cursor: pointer; }
.me-btn:hover { border-color: var(--line); background: var(--panel2); }
.me-menu { position: absolute; z-index: 90; min-width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.me-menu a { display: block; padding: 9px 12px; border-radius: var(--r-md); color: var(--text); text-decoration: none; font-weight: 600; font-size: 14px; }
.me-menu a:hover { background: var(--panel2); }
.me-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.me-name { display: flex; flex-direction: column; padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.bell-tabs { display: flex; gap: 4px; padding: 0 10px 8px; border-bottom: 1px solid var(--line); }
.bell-tabs button { flex: 1; background: none; border: 1px solid transparent; border-radius: var(--r-md); padding: 6px; color: var(--muted); font: inherit; font-weight: 600; font-size: 13px; cursor: pointer; }
.bell-tabs button.on { color: var(--text); border-color: var(--line); background: var(--panel2); }
.bell-tabs .count { position: static; display: inline-block; margin-left: 4px; }
@media (max-width: 760px) { .me-btn { padding: 0; } .me-menu { left: 12px; right: 12px !important; } }

/* Chip rows turn into a dropdown on phones (built by public/mobile.js) */
.chip-select { display: none; }
@media (max-width: 760px) {
  .chip-select { display: block; width: 100%; margin: 0 0 14px; padding: 11px 40px 11px 14px; font: inherit; font-size: 15px; color: var(--text, #eee);
    background: var(--panel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23aaa' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center;
    border: 1px solid var(--line, #333); border-radius: var(--r-sm); appearance: none; -webkit-appearance: none; }
  .sf-toolbar .chip-select { margin: 0; flex: 1 1 100%; }
  .moods[data-chip-sel], .sf-filters[data-chip-sel] { display: none !important; }
}

/* Squad size: "No limit" checkbox next to the number */
.sq-size { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.sq-size .check-row { display: inline-flex; flex-direction: row; align-items: center; gap: 8px; width: auto; padding: 10px 14px; margin: 0; }
.sq-size label:last-child { display: inline-flex; align-items: center; gap: 8px; flex-direction: row; }
.sq-size input[type=number] { width: 90px !important; flex: none !important; }
.sq-size label { white-space: nowrap; }
.sq-size input:disabled { opacity: .4; }

/* ===== Reddit style community (public/forum.js) ===== */
.forum-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; margin-top: 26px; align-items: start; }
.forum-main, .forum-side { min-width: 0; }
.forum-h { margin: 0 0 12px; font-size: 20px; }
.fbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 14px 0 12px; }
.fsort { display: inline-flex; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 3px; }
.fsort button { background: none; border: 0; color: var(--muted); padding: 6px 14px; border-radius: var(--r-md); font-weight: 600; cursor: pointer; }
.fsort button.on { background: var(--accent2); color: var(--on-accent); }
.fsel { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 7px 10px; font: inherit; font-size: 14px; }
.fscope { margin-left: auto; display: flex; gap: 10px; }
.fscope .on { color: var(--text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; }
.fposts { display: flex; flex-direction: column; gap: 10px; }
.fpost { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px 10px 8px; transition: border-color .15s; }
.fpost:hover { border-color: #3b3b4a; }
.fpost.full { padding: 16px 18px 12px 10px; }
.fbody { min-width: 0; }
.fvote { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fvote.small { flex-direction: row; gap: 4px; }
.fv { background: none; border: 0; color: var(--muted); padding: 3px; border-radius: var(--r-lg); cursor: pointer; line-height: 0; }
.fv:hover:not(:disabled) { background: var(--panel2); color: var(--text); }
.fv:disabled { opacity: .35; cursor: default; }
.fv.up.on { color: #ff8b3d; }
.fv.down.on { color: #7c93ff; }
.fv-score { font-size: 14px; min-width: 18px; text-align: center; }
.fvote.small .fv-score { font-size: 13px; }
.fmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin-bottom: 4px; }
.fsq { font-weight: 600; color: var(--text); display: inline-flex; align-items: center; gap: 6px; }
.fsq-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.fsuggest { margin-left: 6px; font-size: 11px; padding: 2px 8px; border-radius: var(--r-lg); background: var(--panel2); color: var(--muted); }
.ftitle { display: block; color: var(--text); font-size: 17px; font-weight: 600; line-height: 1.35; margin: 2px 0 6px; overflow-wrap: anywhere; }
.ftitle:hover { text-decoration: none; color: #fff; }
.ftitle-big { font-size: 22px; line-height: 1.3; margin: 4px 0 10px; overflow-wrap: anywhere; }
.fexcerpt { display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; color: var(--text); opacity: .88; overflow-wrap: anywhere; }
.fexcerpt:hover { text-decoration: none; }
.fflair { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: var(--r-sm); margin-right: 8px; vertical-align: 2px; background: #2d2d3a; color: #d8d8e4; }
.fflair[data-flair="Question"] { background: #233451; color: #9cc4ff; }
.fflair[data-flair="Tips"] { background: #1f3b2c; color: #8fe0ad; }
.fflair[data-flair="Win"] { background: #4a3a14; color: #ffd36b; }
.fflair[data-flair="Raid train"] { background: #3d2350; color: #d6a6ff; }
.fflair[data-flair="Collab"] { background: #183c40; color: #7fe3e8; }
.fflair[data-flair="Game rec"] { background: #4a2626; color: #ffa4a4; }
.fflair[data-flair="Feedback"] { background: #3c2f1d; color: #f0c08a; }
.factions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; }
.factions .react { text-decoration: none; }
.fmore { display: block; margin: 14px auto 0; }
.fcompose { padding: 12px; }
.fcompose-open { display: flex; align-items: center; gap: 10px; width: 100%; background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 8px 12px; color: var(--muted); cursor: text; font: inherit; text-align: left; }
.fcompose-form { display: flex; flex-direction: column; gap: 10px; }
.fc-title { font-size: 16px; font-weight: 600; }
.fc-flairs { display: flex; flex-wrap: wrap; gap: 6px; }
.fflair-pick input { position: absolute; opacity: 0; pointer-events: none; }
.fflair-pick .fflair { cursor: pointer; opacity: .55; margin: 0; }
.fflair-pick input:checked + .fflair { opacity: 1; outline: 2px solid currentColor; }
.fc-sort { margin: 12px 0 6px; display: flex; gap: 8px; align-items: center; }
.fc-sort .on { color: var(--text); font-weight: 600; }
.fcomments { display: flex; flex-direction: column; gap: 4px; }
.fcomment { padding: 8px 0 2px; min-width: 0; }
.fc-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fc-text { margin: 4px 0 2px 30px; overflow-wrap: anywhere; }
.fc-actions { display: flex; align-items: center; gap: 10px; margin-left: 24px; }
.fc-reply { margin: 6px 0 6px 30px; }
.fc-kids { margin-left: 11px; padding-left: 14px; border-left: 2px solid var(--line); }
.fc-top { margin-bottom: 4px; }
.frel { display: flex; flex-direction: column; gap: 2px; padding: 9px 0; border-top: 1px solid var(--line); color: var(--text); }
.frel:first-of-type { border-top: 0; }
.frel:hover { text-decoration: none; }
.frel:hover b { text-decoration: underline; }
.fsq-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.fsq-row:first-of-type { border-top: 0; }
.fsq-row .grow { min-width: 0; }
.fsq-logo { width: 38px; height: 38px; border-radius: var(--r-lg); display: grid; place-items: center; font-weight: 600; color: #fff; flex: none; font-size: 13px; }
.fsq-logo:hover { text-decoration: none; }
.fsq-box { padding-top: 0; overflow: hidden; }
.fsq-banner { height: 44px; margin: 0 -16px 10px; }
.sq-posts h2 { margin: 18px 0 8px; }
@media (max-width: 760px) {
  .forum-wrap { grid-template-columns: minmax(0, 1fr); }
  .fpost { grid-template-columns: 32px minmax(0, 1fr); gap: 6px; padding: 10px 10px 8px 4px; }
  .ftitle { font-size: 16px; }
  .ftitle-big { font-size: 19px; }
  .fscope { margin-left: 0; width: 100%; }
  .fc-kids { margin-left: 6px; padding-left: 8px; }
  .fc-text, .fc-reply { margin-left: 0; }
  .fc-actions { margin-left: 0; }
}
.fpost a, .fpage a, .forum-side a, .fsq-row a { text-decoration: none; }
.ftitle:hover, .fsq:hover, .fmeta a:hover, .fsq-row a:hover b, .fsq-box h3 a:hover { text-decoration: underline; }
.community-back a { text-decoration: none; }

/* Tag finder (public/tags.js) */
.tag-card { max-width: 620px; text-align: left; }
.tag-summary { font-size: 15px; line-height: 1.5; }
.tag-card h3 { margin: 18px 0 8px; }
.tag-row { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 12px; margin-bottom: 8px; background: var(--panel2); }
.tag-row.best { border-color: #2e6b47; }
.tag-row.open { border-color: #6a5a1f; }
.tag-row.crowded { opacity: .8; }
.tag-row-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; flex-wrap: wrap; }
.tag-chip { display: inline-block; background: #2d2d3a; color: #fff; border-radius: var(--r-sm); padding: 3px 12px; font-weight: 600; font-size: 14px; }
.tag-chip.blur { filter: blur(5px); user-select: none; }
.tag-spot { font-size: 12px; font-weight: 600; color: #8fe0ad; }
.tag-row.crowded .tag-spot { color: #f0a0a0; }
.tag-row-top .linkbtn { margin-left: auto; }
.tag-lock { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.tag-foot { margin-top: 14px; }
.backup-list { width: 100%; border-collapse: collapse; margin: 6px 0 12px; }
.backup-list td { padding: 6px 4px; border-top: 1px solid var(--line); }
.backup-list td:last-child { text-align: right; }
.warn-text { color: var(--long); }
.err-text { color: var(--none); }

/* Growth stats (public/stats.js) */
.gs-head { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.gs-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.gs-tile { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; min-width: 0; }
.gs-val { font-size: 28px; font-weight: 600; margin: 2px 0 4px; }
.gs-say { margin-top: 6px; }
.gs-box h3 { margin: 20px 0 8px; }
.gs-chart { position: relative; }
.gs-chart svg { width: 100%; height: 140px; display: block; }
.gs-bar path { fill: var(--accent); }
.gs-bar:hover path { fill: #b593ff; }
.gs-axis { stroke: var(--line); stroke-width: 1; }
.gs-x { display: flex; justify-content: space-between; margin-top: 4px; }
.gs-tip { position: absolute; top: -6px; background: #000c; color: #fff; font-size: 12px; padding: 4px 8px; border-radius: var(--r-lg); pointer-events: none; white-space: nowrap; }
.gs-funnel { display: flex; flex-direction: column; gap: 8px; }
.gs-frow { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) 48px; gap: 10px; align-items: center; }
.gs-fbar { height: 12px; background: var(--panel2); border-radius: var(--r-lg); overflow: hidden; }
.gs-fbar i { display: block; height: 100%; background: var(--accent); border-radius: 0 var(--r-lg) var(--r-lg) 0; }
.gs-frow b { text-align: right; }
.gs-table-wrap { overflow-x: auto; }
.gs-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gs-table th, .gs-table td { text-align: left; padding: 7px 8px; border-top: 1px solid var(--line); white-space: nowrap; }
.gs-table th { color: var(--muted); font-weight: 600; border-top: 0; }
@media (max-width: 760px) { .gs-frow { grid-template-columns: minmax(0, 1fr) 40px; } .gs-fbar { grid-column: 1 / -1; grid-row: 2; } }

/* ===== Watch page (src/watch.js, public/watch.js) ===== */
main.watch { max-width: 1280px; margin: 0 auto; padding: 24px 20px 40px; }
.watch-hero h1 { margin: 0 0 6px; font-size: 32px; }
.wsearch { display: flex; gap: 10px; margin: 16px 0 12px; }
.wsearch input { flex: 1; min-width: 0; font-size: 16px; padding: 12px 14px; }
.wvibes { margin-bottom: 10px; }
.vchip.on { background: var(--accent2); color: var(--on-accent); }
.wfilters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.wfilters select { width: auto; }
main.watch h2 { font-size: 20px; margin: 18px 0 10px; }
.wgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 14px; }
.wgrid.loading, #wResults.loading { opacity: .5; }
.wcard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--text); text-decoration: none; transition: border-color .15s, transform .15s; min-width: 0; }
.wcard:hover { border-color: #3a3a42; text-decoration: none; }
.wcard.member { border-color: #3a2f5c; }
.wthumb { position: relative; aspect-ratio: 16 / 9; width: 100%; flex: none; background: var(--panel2); display: block; overflow: hidden; }
.wthumb.noimg img { visibility: hidden; }
.wthumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wlive { position: absolute; left: 8px; bottom: 8px; background: #000b; color: #fff; font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-lg); display: inline-flex; align-items: center; gap: 5px; }
.wbody { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; min-width: 0; }
.wbody b, .wgame, .wtitle { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wmeta { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }
.wmeta.big { margin: 10px 0; gap: 8px; }
.wvibe, .wbadge { font-size: 12px; padding: 2px 8px; border-radius: var(--r-sm); background: #2a2440; color: #e3d9ff; white-space: nowrap; }
.wbadge { background: #1f3b2c; color: #b7f0cb; }
.wmeta.big .wvibe, .wmeta.big .wbadge { font-size: 13px; padding: 4px 10px; }
.wwhy { margin-top: 2px; }
.wplayer-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 12px; margin: 10px 0 16px; }
.wplayer { aspect-ratio: 16 / 9; min-height: 300px; background: #000; border-radius: var(--r-lg); overflow: hidden; }
.wplayer iframe, .wchat iframe { width: 100%; height: 100%; border: 0; display: block; }
.wchat { min-height: 300px; background: var(--panel); border-radius: var(--r-lg); overflow: hidden; }
.wabout-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.wabout-head h1 { margin: 0; font-size: 24px; }
.wabout-head .grow { min-width: 0; }
.wprog { height: 8px; background: var(--panel2); border-radius: var(--r-sm); overflow: hidden; max-width: 320px; }
.wprog i { display: block; height: 100%; background: var(--accent); }
.walert { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.card-vibes { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }
.feat-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 10px 12px; background: var(--panel2); border-radius: var(--r-lg); margin-top: 10px; }
@media (max-width: 900px) { .wplayer-wrap { grid-template-columns: minmax(0, 1fr); } .wchat { height: 420px; } .wplayer { min-height: 0; } }
@media (max-width: 760px) { .watch-hero h1 { font-size: 24px; } .wsearch { flex-direction: column; } main.watch { padding: 16px 16px 90px; } }

/* Watch: preferences and presets */
.wlabel { margin: 6px 0 4px; font-size: 11px; }
.mchip.on, .wpreset.on { background: var(--accent2); color: var(--on-accent); }
.wme { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 4px 0; }
.wpresets { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; min-width: 0; }
.wpreset { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-md); padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.wpreset:hover { border-color: var(--accent); }
.wme-right { display: flex; gap: 10px; align-items: center; }
.wforyou { display: inline-flex; gap: 6px; align-items: center; font-weight: 600; font-size: 14px; }
.wsummary { margin: 2px 0 10px; }
.wpreset-form { display: flex; gap: 8px; flex-wrap: wrap; margin: -6px 0 16px; }
.wpreset-form input { flex: 1; min-width: 0; max-width: 320px; }
.wprefs-card { max-width: 640px; text-align: left; }
.wprefs-card h3 { margin: 16px 0 8px; }
.whidden { display: flex; flex-wrap: wrap; gap: 6px; }
@media (max-width: 760px) { .wme-right { width: 100%; justify-content: space-between; } }

/* Growth → Found on Undercard (public/searchstats.js) */
.ss-box { margin: 14px 0; }
.ss-box h4 { margin: 18px 0 8px; }
.ss-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ss-head h3 { margin: 0; }
.ss-big { font-size: 34px; font-weight: 600; }
.ss-bars { display: grid; grid-template-columns: repeat(14, minmax(0, 1fr)); gap: 2px; height: 90px; align-items: end; }
.ss-bar { height: 100%; display: flex; align-items: flex-end; }
.ss-bar i { display: block; width: 100%; background: var(--accent); border-radius: var(--r-md) var(--r-md) 0 0; }
.ss-bar:hover i { background: #b593ff; }
.ss-terms td:last-child { text-align: right; width: 60px; }
.ss-tips { display: flex; flex-direction: column; gap: 8px; }
.ss-tip { display: flex; gap: 10px; align-items: flex-start; background: var(--panel2); border-radius: var(--r-md); padding: 10px 12px; }

/* Onboarding: what brings you here */
.ob-roles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 10px; margin: 14px 0; }
.ob-role { display: flex; flex-direction: column; gap: 6px; text-align: left; background: var(--panel2); border: 2px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; color: var(--text); font: inherit; cursor: pointer; }
.ob-role span { color: var(--muted); font-size: 14px; line-height: 1.45; }
.ob-role b { font-size: 17px; }
.ob-role.on { border-color: var(--accent); background: #241d3a; }
.ob-role.on b::before { content: '✓ '; color: var(--accent); }
.settings-roles { margin-top: 16px; max-width: 640px; }
.settings-roles h3 { margin-top: 0; }
/* Landing: the other doors */
.doors { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; max-width: 900px; margin: 22px auto 0; text-align: left; }
.door { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; color: var(--text); text-decoration: none; }
.door:hover { border-color: #3a3a42; text-decoration: none; }
.door b { display: block; margin-bottom: 4px; }
.door span { color: var(--muted); font-size: 14px; }
.no-trade { margin-top: 12px; color: var(--muted); }

/* ===== Watch sidebar (public/watch.js) ===== */
.wlayout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 0; align-items: start; }
.wlayout.collapsed { grid-template-columns: 64px minmax(0, 1fr); }
.wlayout > main.watch { min-width: 0; margin: 0; max-width: none; }
.wside { position: sticky; top: 62px; height: calc(100vh - 62px); overflow-y: auto; padding: 10px 8px 30px; border-right: 1px solid var(--line); scrollbar-width: thin; }
.wside-top { display: flex; justify-content: flex-end; padding: 0 4px 6px; }
.wside-toggle { background: none; border: 0; color: var(--muted); font-size: 18px; cursor: pointer; padding: 4px 8px; border-radius: var(--r-md); }
.wside-toggle:hover { background: var(--panel2); color: var(--text); }
.wside-sec { padding: 6px 0 10px; border-bottom: 1px solid var(--line); }
.wside-sec:last-child { border-bottom: 0; }
.wside-h { font-size: 12px; color: var(--muted); padding: 6px 10px 4px; }
.wside-h:empty { display: none; }
.wside-link { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: var(--r-md); color: var(--text); text-decoration: none; min-width: 0; }
.wside-link:hover, .wside-link.on { background: var(--panel2); text-decoration: none; }
.wside-ic { width: 26px; height: 26px; flex: none; display: grid; place-items: center; font-size: 16px; }
.wside-ic img, .wside-av { width: 26px; height: 26px; border-radius: 50%; object-fit: cover; display: grid; place-items: center; background: var(--panel2); font-size: 12px; font-weight: 600; }
.wside-t { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: 14px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.wside-t .small { overflow: hidden; text-overflow: ellipsis; }
.wside-empty { padding: 4px 10px; white-space: normal; }
.wlayout.collapsed .wside-t, .wlayout.collapsed .wside-h, .wlayout.collapsed .wside-empty, .wlayout.collapsed .wside-link .live-dot { display: none; }
.wlayout.collapsed .wside-link { justify-content: center; padding: 8px 0; }
.wlayout.collapsed .wside-toggle { transform: rotate(180deg); }
.wlayout.collapsed .wside-top { justify-content: center; }
.wside-open { display: none; margin-bottom: 10px; }
@media (max-width: 900px) {
  .wlayout, .wlayout.collapsed { grid-template-columns: minmax(0, 1fr); }
  .wside { display: none; }
  .wside-open { display: inline-flex; }
  .wlayout.drawer { position: relative; }
  .wlayout.drawer .wside { display: block; position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); height: 100vh; top: 0; z-index: 60; background: var(--bg); box-shadow: 0 0 0 100vmax #0009; padding-top: 16px; }
  .wlayout.drawer .wside-t, .wlayout.drawer .wside-h, .wlayout.drawer .wside-empty { display: flex; }
  .wlayout.drawer .wside-h, .wlayout.drawer .wside-empty { display: block; }
}
/* Watch party page */
.wparty-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 8px; }
.wparty-head h1 { margin: 0 0 4px; font-size: 26px; }
.wparty-head .grow { min-width: 0; }
.wpchat { display: flex; flex-direction: column; padding: 0; min-height: 300px; overflow: hidden; min-width: 0; }
.wpchat-tabs { display: flex; border-bottom: 1px solid var(--line); }
.wpchat-tabs button { flex: 1; background: none; border: 0; color: var(--muted); padding: 10px; font: inherit; font-weight: 600; cursor: pointer; }
.wpchat-tabs button.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.wpchat-party { display: flex; flex-direction: column; flex: 1; min-height: 0; padding: 8px 10px 10px; }
.wpchat-twitch { flex: 1; min-height: 360px; }
.wpchat-twitch iframe { width: 100%; height: 100%; border: 0; display: block; }
.wphere { padding: 2px 0 6px; }
.wpmsgs { flex: 1; overflow-y: auto; min-height: 220px; max-height: 420px; display: flex; flex-direction: column; gap: 6px; padding: 4px 0; }
.wpmsg { font-size: 14px; overflow-wrap: anywhere; }
.wpform { display: flex; gap: 6px; margin-top: 6px; }
.wpform input { flex: 1; min-width: 0; }
/* Hangouts (public/hangouts.js) */
.hg-intro { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; flex-wrap: wrap; }
.hg-intro h2 { margin: 0 0 4px; }
.hg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 14px; margin-bottom: 18px; }
.hg-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.hg-top { height: 72px; position: relative; display: flex; align-items: center; padding: 0 14px; text-decoration: none; }
.hg-icon { font-size: 34px; }
.hg-top .sq-live { position: absolute; right: 10px; top: 10px; }
.hg-body { padding: 10px 14px 14px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hg-body a { color: var(--text); }
.hg-body p { margin: 0; }
.hg-logo { font-size: 34px; display: grid; place-items: center; }
.hg-sec-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.hg-sec-head h2 { margin: 0; }
.hg-parties { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.hg-party { display: grid; grid-template-columns: 120px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel2); color: var(--text); text-decoration: none; }
.hg-party:hover { border-color: var(--accent); text-decoration: none; }
.hg-party.live { border-color: #5a2a2a; }
.hg-party-when { grid-row: 1 / 3; font-size: 13px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.hg-icons { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.hg-icons label { cursor: pointer; }
.hg-icons input { position: absolute; opacity: 0; pointer-events: none; }
.hg-icons span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--r-md); background: var(--panel2); font-size: 20px; border: 2px solid transparent; }
.hg-icons input:checked + span { border-color: var(--accent); }
@media (max-width: 760px) { .hg-party { grid-template-columns: minmax(0, 1fr); } .hg-party-when { grid-row: auto; } }

/* Link tabs (Watch, Pricing) look like the button tabs */
a.tab { text-decoration: none; }

/* Watch: viewer range, did you mean, picks, requests; Raid Radar filters */
.wrange { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 8px 0 10px; }
.wrange input[type=range] { width: 140px; accent-color: var(--accent); }
.wrange-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0 14px; }
.wrange-form select { width: auto; }
.wdid { background: var(--panel2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 14px; margin: 6px 0 10px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.wpicks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.wpick { display: flex; flex-direction: column; gap: 3px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 12px 14px; color: var(--text); text-decoration: none; }
.wpick:hover { border-color: var(--accent); text-decoration: none; }
.wreq-search { flex-direction: column; position: relative; }
.wreq-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.wreq-opt { background: var(--panel); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-md); padding: 6px 12px; font: inherit; font-size: 14px; cursor: pointer; }
.wreq-opt:hover { border-color: var(--accent); }
.wreq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.wreq { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 10px 14px; min-width: 0; }
.wreq.own { border-color: #2e6b47; }
.wreq img, .wreq-box { width: 52px; height: 72px; border-radius: var(--r-lg); object-fit: cover; background: var(--panel2); flex: none; display: block; }
.wreq .grow { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.tag.req { background: #3d2350; color: #e3c9ff; text-decoration: none; }
.radar-filters { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
@media (max-width: 760px) { .wrange input[type=range] { width: 42%; } }
@media (max-width: 1120px) and (min-width: 761px) { .tab { padding: 6px 6px; font-size: 13px; } header.top { gap: 6px; } .brand { font-size: 0; gap: 0; } .brand img { width: 26px; height: 26px; } .brand .demo-pill, .brand .pill { display: none; } }
@media (max-width: 1120px) and (min-width: 761px) { header.top { flex-wrap: nowrap; } header.top nav { min-width: 0; overflow-x: auto; justify-content: flex-start; scrollbar-width: none; } header.top nav::-webkit-scrollbar { display: none; } }

/* ===== Sidebar v2: toolkit rail + panel (public/sidebar.js) ===== */
.wlayout { grid-template-columns: 292px minmax(0, 1fr); }
.wlayout.collapsed { grid-template-columns: 72px minmax(0, 1fr); }
.wlayout > main { min-width: 0; width: 100%; }
.wside { display: flex; padding: 0; overflow: hidden; }
.wrail { width: 72px; flex: none; display: flex; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 6px; border-right: 1px solid var(--line); overflow-y: auto; scrollbar-width: none; }
.wrail-btn { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); padding: 9px 2px; border-radius: var(--r-md); font: inherit; font-size: 11px; font-weight: 600; cursor: pointer; }
.wrail-btn:hover { background: var(--panel2); color: var(--text); }
.wrail-btn.on { background: var(--panel2); color: var(--text); box-shadow: inset 3px 0 0 var(--accent); }
.wrail .wside-toggle { margin-top: auto; font-size: 16px; }
.wpanel { width: 220px; flex: none; overflow-y: auto; padding: 12px 10px 40px; scrollbar-width: thin; }
.wpanel-title { font-weight: 600; font-size: 16px; padding: 4px 10px 8px; }
.wlayout.collapsed .wpanel { display: none; }
.wside .wside-link { padding: 6px 10px; gap: 8px; font-size: 14px; }
.wside .wside-link.on { background: var(--panel2); font-weight: 600; }
.wside .wside-h { font-size: 11px; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--text); opacity: .75; padding: 10px 10px 4px; }
.wside .wside-sec { border-bottom: 0; padding: 2px 0 8px; }
.wlayout.collapsed .wside-t, .wlayout.collapsed .wside-h { display: initial; }
@media (max-width: 900px) {
  .wlayout, .wlayout.collapsed { grid-template-columns: minmax(0, 1fr); }
  .wside { display: none; } /* phones use the bottom bar; Watch pages open it as a drawer */
  .wlayout.drawer .wside { display: flex; width: min(300px, 92vw); }
  .wlayout.drawer .wpanel { display: block; width: auto; flex: 1; }
}

/* ===== Sleeker category chips (all pages) ===== */
.mood { background: var(--panel2); border: 1px solid transparent; padding: 6px 14px; font-size: 14px; font-weight: 600; color: var(--text); gap: 0; transition: background .15s, color .15s; }
.mood:hover { background: #2b2b36; }
.mood.on, .vchip.on, .mchip.on, .wpreset.on { background: var(--text); color: var(--bg); }
.mood span:empty { display: none; }
.moods { gap: 8px; }
.small-moods .mood, .sf-filters .mood { padding: 5px 12px; font-size: 13px; }
.wfrow { display: flex; align-items: flex-start; gap: 12px; margin: 6px 0; }
.wfrow .wlabel { width: 70px; flex: none; padding-top: 7px; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: none; letter-spacing: 0; }
.wfrow .moods { margin: 0; flex: 1; min-width: 0; }
.wtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 4px 0 14px; }
.wtabs button { background: none; border: 0; color: var(--muted); padding: 10px 16px; font: inherit; font-weight: 600; cursor: pointer; box-shadow: inset 0 -2px 0 transparent; }
.wtabs button.on { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.wvibe, .wbadge { background: var(--panel2); color: var(--text); border: 1px solid var(--line); }
.wbadge { color: #b7f0cb; }
/* Games and consoles grids */
.ggrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; }
.gcard { display: flex; flex-direction: column; color: var(--text); text-decoration: none; min-width: 0; }
.gcard:hover { text-decoration: none; }
.gcard:hover .gcard-art { outline: 2px solid var(--accent); }
.gcard-art { aspect-ratio: 3 / 4; border-radius: var(--r-lg); overflow: hidden; background: var(--panel2); display: grid; place-items: center; }
.gcard-art img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gcard-ph { font-size: 26px; font-weight: 600; color: var(--muted); }
.gcard-body { display: flex; flex-direction: column; gap: 2px; padding: 8px 2px 0; min-width: 0; }
.gcard-body b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.ccard { display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; color: var(--text); text-decoration: none; }
.ccard:hover { border-color: var(--accent); text-decoration: none; }
.ccard-top { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 26px 12px 18px; background: var(--panel2); min-height: 140px; text-align: center; }
.ccard-name { font-size: 19px; font-weight: 600; letter-spacing: -.01em; }
.ccard-stats { display: flex; justify-content: space-between; padding: 10px 14px; }
.console-hero { display: flex; gap: 16px; align-items: center; }
.console-hero-icon { width: 84px; height: 84px; border-radius: var(--r-md); background: var(--panel2); display: grid; place-items: center; flex: none; }
.wgame-strip { display: flex; gap: 10px; overflow-x: auto; padding: 4px 0 12px; scrollbar-width: thin; }
.wgame-strip .gcard { width: 120px; flex: none; }

/* Console icons and empty consoles */
.ccard .cicon { color: var(--text); opacity: .9; }
.ccard:hover .cicon { color: var(--accent); opacity: 1; }
.ccard.cnone { opacity: .55; }
.console-hero-icon .cicon { color: var(--text); }

/* ===== Slim top bar: one item per area, Pricing stands out (the sidebar holds every tool) ===== */
.tab .tab-full { display: none; }
@media (min-width: 761px) {
  header.top nav .tab:not([data-top]) { display: none !important; }
  header.top nav .tab[data-top="watch"] { order: 1; }
  header.top nav .tab[data-top="stream"] { order: 2; }
  header.top nav .tab[data-top="community"] { order: 3; }
  header.top nav .tab[data-top="indie"] { order: 4; }
  header.top nav .tab[data-top="pricing"] { order: 5; margin-left: 10px; }
  header.top nav .tab.top-on { background: var(--panel2); color: var(--text); }
}
@media (max-width: 760px) { .tab .tab-top { display: none; } .tab .tab-full { display: inline; } }
.tab-pricing, .nav-pricing { background: #f2c14e !important; color: #1a1205 !important; border: 0 !important; font-weight: 600 !important; border-radius: var(--r-md) !important; padding-left: 16px !important; padding-right: 16px !important; }
.tab-pricing:hover, .tab-pricing.active, .nav-pricing:hover, .nav-pricing.active { filter: brightness(1.08); color: #1a1205 !important; }

/* ===== Friends toolkit + party invites ===== */
.wrail-btn { position: relative; }
.wrail-count { position: absolute; top: 4px; right: 8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: var(--r-lg); background: #22c55e; color: #04130a; font-size: 10px; line-height: 17px; font-weight: 600; }
.wf-strip { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0 0 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel2); color: var(--text); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-align: left; }
.wf-strip:hover { border-color: #22c55e; }
.wf-row { display: flex; align-items: center; gap: 6px; padding: 3px 4px 3px 0; min-width: 0; }
.wf-who { display: flex; align-items: center; gap: 8px; flex: 1; min-width: 0; padding: 4px 6px; border-radius: var(--r-lg); color: var(--text); text-decoration: none; }
.wf-who:hover { background: var(--panel2); text-decoration: none; }
.wf-av { position: relative; flex: none; display: inline-grid; }
.wf-dot { position: absolute; right: -1px; bottom: -1px; width: 10px; height: 10px; border-radius: 50%; border: 2px solid var(--bg); background: #6b7280; }
.wf-online .wf-dot, .wf-dot.wf-online { background: #22c55e; }
.wf-party .wf-dot, .wf-dot.wf-party { background: #e8743b; }
.wf-live .wf-dot, .wf-dot.wf-live { background: #ef4444; }
.wf-offline .wf-who { opacity: .6; }
.wf-join { flex: none; padding: 3px 10px !important; font-size: 12px !important; }
.wf-off summary { cursor: pointer; list-style: none; }
.wf-off summary::-webkit-details-marker { display: none; }
.wf-vis { display: flex; gap: 8px; align-items: center; padding: 4px 10px; color: var(--muted); }
.wpi-link { display: flex; gap: 6px; }
.wpi-link input { flex: 1; min-width: 0; }
.wpi-all { width: 100%; margin: 6px 0 10px; }
.wpi-list { max-height: 300px; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; margin-bottom: 10px; }
.wpi-row { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--r-lg); cursor: pointer; min-width: 0; }
.wpi-row:hover { background: var(--panel2); }
.wpi-row .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wpi-list, .wpi-row, #wpInviteBox .modal-card { text-align: left; }
.wpi-row .grow { flex: 1; }
#wpInviteBox h2 { text-align: left; }

/* ===== Watch spotlight: Featured Good Neighbors + 3 hidden gems in one slim row; results stay above the fold ===== */
.whub-hero h1 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 4px; }
.whub-hero .sub { margin: 0 0 12px; font-size: 15px; }
.wspot { display: flex; gap: 16px; margin: 6px 0 18px; overflow-x: auto; scrollbar-width: thin; padding-bottom: 4px; min-width: 0; }
.wspot-group { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 0 0 auto; }
.wspot-h { font-size: 13px; font-weight: 600; white-space: nowrap; }
.wspot-h .muted { font-weight: 500; font-size: 12px; margin-left: 4px; }
.wspot-list { display: flex; gap: 10px; }
.wspot-card { display: flex; gap: 10px; width: 300px; flex: none; padding: 8px; border-radius: var(--r-lg); background: var(--panel); border: 1px solid var(--line); color: var(--text); text-decoration: none; align-items: center; transition: transform .12s, border-color .12s; }
.wspot-card:hover { border-color: #3a3a42; text-decoration: none; }
.wspot-thumb { position: relative; width: 124px; aspect-ratio: 16 / 9; flex: none; border-radius: var(--r-lg); overflow: hidden; background: var(--panel2); }
.wspot-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wspot-thumb .wlive { position: absolute; left: 5px; bottom: 5px; font-size: 11px; padding: 1px 6px; }
.wspot-body { display: flex; flex-direction: column; min-width: 0; gap: 1px; }
.wspot-body b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 15px; }
.wspot-game { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wspot-tag { font-size: 10px; font-weight: 600; }
.wspot-vibes { display: flex; gap: 4px; margin-top: 3px; overflow: hidden; }
.wspot-vibes .wvibe { font-size: 11px; padding: 1px 7px; white-space: nowrap; }
/* Featured: premium look (gold edge, soft glow) */
.wspot-card.feat { border: 1px solid #f0b42966; background: var(--panel); }
.wspot-card.feat .wspot-tag { color: #f7c948; }
.wspot-card.feat:hover { border-color: #f0b429; }
/* Hidden gems: teal accent */
.wspot-card.gem { border-color: #2dd4bf55; background: var(--panel); }
.wspot-card.gem .wspot-tag { color: #2dd4bf; }
.wspot-card.gem:hover { border-color: #2dd4bf; }
@media (max-width: 760px) {
  .wspot-card { width: 260px; }
  .wspot-thumb { width: 104px; }
}

/* ===== Compact Watch hub top (results above the fold on a 1366x768 laptop) ===== */
.whub-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.whub-title { min-width: 0; }
.whub-hero h1 { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 2px; }
.whub-hero .sub { margin: 0; font-size: 14px; }
.whub-top .wtabs { margin: 0; border-bottom: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); padding: 3px; }
.whub-top .wtabs button { padding: 7px 14px; border-radius: var(--r-md); box-shadow: none; }
.whub-top .wtabs button.on { background: var(--panel2); box-shadow: none; }
.whub-hero .wsearch { margin: 12px 0 8px; }
.whub-hero .wsearch input { padding: 10px 14px; }
.whub-hero .wfrow { margin: 4px 0; align-items: center; }
.whub-hero .wfrow .wlabel { padding-top: 0; }
.whub-hero .wfrow .moods { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); padding-right: 24px; }
.whub-hero .wfrow .moods::-webkit-scrollbar { display: none; }
.whub-hero .wfrow .mood { flex: none; padding: 6px 13px; font-size: 13.5px; }
.whub-hero .wfilters { margin: 8px 0 10px; }
.whub-hero .wfilters select { padding-top: 7px; padding-bottom: 7px; }
.whub-hero .wsummary { margin: 0 0 4px; }
.whub-hero .wme { margin: 0 0 2px; }
#wCount { margin: 4px 0 10px; font-size: 20px; }
.wspot { margin: 2px 0 12px; }
@media (max-width: 760px) { .whub-top .wtabs { width: 100%; } .whub-top .wtabs button { flex: 1; } }

.wspot-thumb.noimg img { visibility: hidden; }
/* Phones: results first. Compact filters (2 per row), small Surprise button, spotlight after the results. */
@media (max-width: 760px) {
  .whub-hero .sub { display: none; }
  .whub-hero h1 { font-size: 22px; }
  .whub-top { gap: 8px; }
  .whub-top .wtabs button { padding: 6px 8px; font-size: 14px; }
  .whub-hero .wsearch { flex-direction: row; margin: 8px 0 6px; }
  .whub-hero .wsearch #wSurprise { flex: none; width: auto; padding: 8px 12px; font-size: 14px; }
  .whub-hero #wPaneStreamers { display: flex; flex-wrap: wrap; gap: 0 8px; }
  .whub-hero #wPaneStreamers > * { flex: 1 1 100%; min-width: 0; }
  .whub-hero #wPaneStreamers > .wfrow { flex: 1 1 calc(50% - 4px); margin: 2px 0; }
  .whub-hero .wfrow .wlabel { display: none; }
  .whub-hero .wfilters { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; margin: 6px 0 8px; }
  .whub-hero .wfilters select { width: 100%; min-width: 0; font-size: 14px; }
  .whub-hero .wfilters .linkbtn { grid-column: 1 / -1; font-size: 13px; }
  .whub-hero .wsummary { font-size: 12px; }
  #wStreamerRows { display: flex; flex-direction: column; }
  #wStreamerRows > #wSpot { order: 1; }
  #wStreamerRows > #wPicks, #wStreamerRows > #wRising { order: 2; }
  #wCount { font-size: 17px; }
}

/* ===== My stream data (Growth tab) ===== */
.sd-box h3 { display: flex; align-items: center; gap: 8px; }
.sd-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.sd-head h3 { margin: 0; }
.sd-rec { display: inline-flex; align-items: center; gap: 6px; }
.sd-list { margin: 8px 0 12px; padding-left: 18px; display: grid; gap: 4px; }
.sd-sub { margin: 18px 0 8px; font-size: 15px; }
.sd-sub .muted { font-weight: 400; }
.sd-stats { margin: 6px 0 10px; }
.sd-tips { display: grid; gap: 6px; margin: 10px 0 4px; }
.sd-tip-row { margin: 0; padding: 9px 12px; border-radius: var(--r-lg); background: var(--panel2); border-left: 3px solid var(--accent); font-size: 14px; }
.sd-curve { position: relative; margin: 8px 0 4px; }
.sd-curve svg { width: 100%; height: auto; display: block; touch-action: pan-y; }
.sd-grid { stroke: var(--line); stroke-width: 1; }
.sd-axis { fill: var(--muted); font-size: 11px; }
.sd-label { fill: var(--text); font-size: 11px; font-weight: 600; }
.sd-line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.sd-area { fill: var(--accent); opacity: .12; }
.sd-switch { stroke: var(--muted); stroke-width: 1; stroke-dasharray: 3 3; }
.sd-cross { stroke: var(--muted); stroke-width: 1; }
.sd-dot { fill: var(--accent); stroke: var(--bg); stroke-width: 2; }
.sd-hit { fill: transparent; cursor: crosshair; }
.sd-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px 9px; font-size: 12px; display: flex; flex-direction: column; pointer-events: none; white-space: nowrap; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.sd-tip span { color: var(--muted); }
.sd-person { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.sd-person .grow { min-width: 0; flex: 1; }
.sd-person:last-of-type { border-bottom: 0; }
.sd-effect, .sd-compare, .sd-match { padding: 9px 12px; border-radius: var(--r-lg); background: var(--panel2); }
.sd-match { margin-top: 12px; font-size: 14px; }
.sd-lurk { margin-top: 8px; }
#sdThank textarea { width: 100%; min-height: 96px; }
.tag.chatty { background: #2dd4bf1f; color: #5eead4; border: 1px solid #2dd4bf44; }

/* ===== Clip Angel, dev offers, duo ===== */
.clip-progress { display: flex; align-items: center; gap: 10px; margin: 8px 0 4px; flex-wrap: wrap; }
.clip-progress .event-progress { flex: 1; min-width: 120px; }
.clip-row, .offer-row, .offer-cand { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; min-width: 0; }
.clip-row .grow, .offer-row .grow, .offer-cand .grow { flex: 1; min-width: 0; }
.clip-row .row-btns, .offer-row .row-btns { flex-wrap: wrap; }
.clip-th { width: 96px; aspect-ratio: 16 / 9; border-radius: var(--r-lg); object-fit: cover; flex: none; background: var(--panel2); display: grid; place-items: center; color: var(--muted); }
.offer-genres { margin: 6px 0 2px; }
.ftc-note { padding: 6px 10px; border-radius: var(--r-lg); background: var(--panel2); margin: 6px 0 0; }
.duo-add { margin-top: 8px; flex-wrap: wrap; }
.duo-pick { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.duo-pick img { width: 52px; border-radius: var(--r-md); flex: none; }
.duo-list { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.duo-stats { margin: 10px 0; }
.modal-card.wide { max-width: 760px; }
#duoModal .modal-card, #duoModal h2, #offerModal .modal-card { text-align: left; }
.duo-pick > div { min-width: 0; }

/* Legal pages */
.legal-draft { padding: 10px 14px; border-radius: var(--r-lg); background: #f0b4291a; border: 1px solid #f0b42955; }
.ob-legal { margin-top: 10px; }

/* ===== Twitter style post card: one look for every post (community, squads, hangouts, Indie tab, studio + game pages) ===== */
.tw-list { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel); }
.tw-list > .tw-post { border-bottom: 1px solid var(--line); border-radius: 0; margin: 0; }
.tw-list > .tw-post:last-child { border-bottom: 0; }
.tw-post { padding: 12px 16px 6px; background: var(--panel); transition: background .12s; min-width: 0; }
section > .tw-post, #posts > .tw-post, #devlog > .tw-post { border: 1px solid var(--line); border-radius: var(--r-lg); margin: 0 0 12px; }
.tw-post:hover { background: color-mix(in srgb, var(--panel) 92%, var(--text) 8%); }
.tw-post.full:hover { background: var(--panel); }
.tw-ctx { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); margin: 0 0 4px 30px; }
.tw-ctx svg { width: 15px; height: 15px; }
.tw-ctx a { color: var(--muted); }
.tw-row { display: flex; gap: 12px; min-width: 0; }
.tw-av { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; flex: none; }
.tw-av-ph { display: grid; place-items: center; background: var(--panel2); font-weight: 600; font-size: 14px; color: var(--muted); }
.tw-main { flex: 1; min-width: 0; }
.tw-head { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 14.5px; min-width: 0; }
.tw-name { font-weight: 600; color: var(--text); text-decoration: none; }
.tw-name:hover { text-decoration: underline; }
.tw-sub, .tw-dot, .tw-time { color: var(--muted); }
.tw-time { text-decoration: none; }
.tw-time:hover { text-decoration: underline; }
.tw-devtag { font-size: 11px; font-weight: 600; padding: 1px 7px; border-radius: var(--r-sm); background: var(--panel2); color: var(--muted); }
.tw-where { margin-left: auto; font-size: 12.5px; color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 45%; }
.tw-where:hover { color: var(--text); }
.tw-title { display: block; font-weight: 600; font-size: 16px; margin: 4px 0 2px; color: var(--text); text-decoration: none; }
.tw-post.full .tw-title { font-size: 20px; }
.tw-text { font-size: 15px; line-height: 1.45; margin: 2px 0 6px; overflow-wrap: anywhere; }
.tw-post.full .tw-text { font-size: 17px; }
.tw-media { display: grid; gap: 4px; border-radius: var(--r-lg); overflow: hidden; margin: 8px 0; border: 1px solid var(--line); }
.tw-media.n2, .tw-media.n4 { grid-template-columns: 1fr 1fr; }
.tw-media.n3 { grid-template-columns: 2fr 1fr; }
.tw-media img { width: 100%; height: 100%; max-height: 420px; object-fit: cover; display: block; }
.tw-media.n1 img { max-height: 520px; }
.tw-quote { margin: 8px 0; border-radius: var(--r-lg); }
.tw-more-link { display: inline-block; margin: 2px 0 4px; }
.tw-actions { display: flex; align-items: center; gap: 4px; margin: 2px -8px 0; max-width: 520px; }
.tw-act { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font: inherit; font-size: 13px; padding: 6px 8px; border-radius: var(--r-md); cursor: pointer; text-decoration: none; flex: 1 1 0; justify-content: flex-start; min-width: 0; }
.tw-act:hover { text-decoration: none; }
.tw-act:disabled { opacity: .5; cursor: default; }
.tw-reply:hover { color: #60a5fa; background: #60a5fa18; }
.tw-repost:hover, .tw-repost.on { color: #22c55e; }
.tw-repost:hover { background: #22c55e18; }
.tw-like:hover, .tw-like.on { color: #f43f5e; }
.tw-like:hover { background: #f43f5e18; }
.tw-like.on svg { fill: currentColor; }
.tw-bookmark:hover, .tw-bookmark.on { color: #60a5fa; }
.tw-bookmark:hover { background: #60a5fa18; }
.tw-bookmark.on svg { fill: currentColor; }
.tw-share:hover { color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.tw-spacer { flex: 1 1 0; }
.tw-more { flex: none; opacity: .75; }
.tw-replies { margin: 8px 0 4px; border-top: 1px solid var(--line); }
.tw-reply-row { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.tw-reply-row .tw-av { width: 28px; height: 28px; }
.tw-reply-row .grow { min-width: 0; flex: 1; }
.tw-replybox { display: flex; gap: 8px; align-items: center; padding: 10px 0 4px; }
.tw-replybox input { flex: 1; min-width: 0; }
.tw-thread { padding: 0; overflow: hidden; }
.tw-thread .tw-post { padding: 16px; }
.tw-thread .tw-replybox { padding: 10px 16px 14px; border-top: 1px solid var(--line); }
/* composer + tabs */
.tw-compose textarea { width: 100%; border: 0; background: transparent; font-size: 17px; resize: vertical; min-height: 54px; padding: 8px 0; color: var(--text); }
.tw-compose textarea:focus { outline: none; }
.tw-compose-bar { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 8px; flex-wrap: wrap; }
.tw-postbtn { border-radius: var(--r-md); padding: 8px 18px; }
.tw-bar { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.tw-tabs { display: flex; border-bottom: 1px solid var(--line); }
.tw-tabs button { flex: 1; background: none; border: 0; color: var(--muted); font: inherit; font-weight: 600; padding: 12px 8px; cursor: pointer; box-shadow: inset 0 -3px 0 transparent; }
.tw-tabs button.on { color: var(--text); box-shadow: inset 0 -3px 0 var(--accent); }
.tw-tabs button:hover { background: var(--panel2); }
.fcomment .fc-actions .tw-act { flex: none; }
@media (max-width: 760px) {
  .tw-post { padding: 10px 12px 4px; }
  .tw-where { max-width: 100%; margin-left: 0; flex-basis: 100%; }
  .tw-av { width: 36px; height: 36px; }
  .tw-actions { margin: 2px -6px 0; }
  .tw-act { padding: 6px; }
}
#iFeed { display: block; max-width: 720px; }
.fbar.tw-bar { display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap; }
.fbar.tw-bar .fsort { align-self: flex-start; }
.tw-tabs { width: 100%; }

/* ===== Sidebar v2 (Nov 2026): the only navigation. No top tabs; Pricing first; pins, recent, search; ☰ collapses ===== */
body.has-snav header.top > nav:not(.pub-nav) { display: none !important; }
body.has-snav header.top .who { margin-left: auto; }
.nav-burger { display: grid; place-items: center; width: 38px; height: 38px; flex: none; margin-left: -8px; background: none; border: 0; border-radius: var(--r-md); color: var(--text); cursor: pointer; }
.nav-burger:hover { background: var(--panel2); }
.wlayout { grid-template-columns: 252px minmax(0, 1fr); }
.wlayout.collapsed { grid-template-columns: 64px minmax(0, 1fr); }
.wside.snav { display: flex; flex-direction: column; gap: 4px; padding: 12px 10px 14px; overflow-x: hidden; overflow-y: auto; }
.snav-top { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.snav-pricing { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: var(--r-md); background: #f2c14e; color: #1a1205; font-weight: 600; text-decoration: none; }
.snav-pricing:hover { filter: brightness(1.07); text-decoration: none; }
.snav-pricing .snav-pro { margin-left: auto; font-size: 11px; font-weight: 600; background: #1a120522; padding: 2px 8px; border-radius: var(--r-md); }
.snav-search { display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--panel); color: var(--muted); }
.snav-search:focus-within { border-color: var(--accent); }
.snav-search input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); padding: 8px 0; font: inherit; font-size: 14px; }
.snav-quick { padding: 2px 0 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.snav-hint { padding: 4px 10px 8px; margin: 0; }
.snav-results { display: flex; flex-direction: column; }
.snav-results .wside-t .small { font-size: 11px; }
.snav-item { position: relative; }
.snav-item .wside-link { padding-right: 30px; }
.snav-pin { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: var(--r-md); background: none; color: var(--muted); cursor: pointer; opacity: 0; }
.snav-item:hover .snav-pin, .snav-pin:focus-visible { opacity: 1; }
.snav-pin:hover { color: var(--long); background: var(--panel2); }
.snav-pin.on { opacity: 1; color: var(--long); }
.snav-pin.on svg { fill: currentColor; }
.snav-quick .snav-pin { opacity: 0; } .snav-quick .snav-item:hover .snav-pin { opacity: 1; }
.snav-secs { display: flex; flex-direction: column; gap: 2px; }
.wside .snav-head { flex-direction: row; justify-content: flex-start; gap: 10px; width: 100%; padding: 9px 10px; font-size: 14px; font-weight: 600; color: var(--text); text-align: left; }
.wside .snav-head:hover { background: var(--panel2); }
.wside .snav-sec.here > .snav-head { box-shadow: inset 3px 0 0 var(--accent); background: var(--panel2); }
.snav-head .snav-label { flex: 1; }
.snav-head .wrail-count { position: static; }
.snav-chev { display: grid; color: var(--muted); transition: transform .15s; }
.snav-sec.open .snav-chev { transform: rotate(90deg); }
.snav-body { display: none; padding: 0 0 6px 8px; }
.snav-sec.open .snav-body { display: block; }
.snav-body .wside-h { padding-left: 10px; }
.wside .snav-collapse { margin-top: auto; align-self: flex-start; font-size: 13px; padding: 8px 10px; }
/* collapsed: a rail of icons; Pricing stays (gold star) */
.wlayout.collapsed .snav { padding: 12px 8px; align-items: center; }
.wlayout.collapsed .snav-label, .wlayout.collapsed .snav-pro, .wlayout.collapsed .snav-search, .wlayout.collapsed .snav-quick, .wlayout.collapsed .snav-hint,
.wlayout.collapsed .snav-body, .wlayout.collapsed .snav-chev, .wlayout.collapsed .snav-results { display: none !important; }
.wlayout.collapsed .snav-top { border: 0; }
.wlayout.collapsed .snav-pricing { padding: 9px; justify-content: center; }
.wlayout.collapsed .snav-head { justify-content: center; padding: 10px 0; position: relative; }
.wlayout.collapsed .snav-head .wrail-count { position: absolute; top: 2px; right: 2px; }
.wlayout.collapsed .snav-collapse { align-self: center; }
@media (max-width: 900px) {
  .wlayout, .wlayout.collapsed { grid-template-columns: minmax(0, 1fr); }
  .wside.snav { display: none; }
  .wlayout.drawer .wside.snav { display: flex; position: fixed; inset: 0 auto 0 0; top: 0; width: min(300px, 86vw); height: 100vh; z-index: 60; background: var(--bg); box-shadow: 0 0 0 100vmax #0009; padding-top: calc(14px + env(safe-area-inset-top)); }
  .wlayout.drawer .snav-pin { opacity: 1; }
  .wside-open { display: none !important; }
}
.wside.snav { padding-bottom: 72px; }
/* Profile page feed (public/profile.js) */
.pf { padding-bottom: 6px; }
.pf-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pf-head h3 { margin: 0; }
.pf-policy select { margin-left: 6px; }
.pf-tabs { margin: 8px -16px 0; width: auto; }
.pf-compose { padding: 12px 0; border-bottom: 1px solid var(--line); }
.pf-compose textarea { width: 100%; resize: vertical; min-height: 56px; font: inherit; }
.pf-compose-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 6px; }
.pf-why { padding: 10px 0; margin: 0; border-bottom: 1px solid var(--line); }
.pf-list .tw-post { border-left: 0; border-right: 0; border-radius: 0; }
.pf-empty { padding: 16px 0; }
.pf-more { margin: 10px auto 0; display: block; }
.pf-replies { margin-top: 8px; border-top: 1px solid var(--line); }
.pf-reply { display: flex; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pf-reply .grow { min-width: 0; flex: 1; }
.pf-reply .rich { overflow-wrap: anywhere; }
.pf-ract { display: flex; align-items: center; gap: 10px; margin-top: 2px; }
.pf-like { display: inline-flex; align-items: center; gap: 4px; background: none; border: 0; color: var(--muted); cursor: pointer; padding: 2px 4px; border-radius: var(--r-lg); font: inherit; font-size: 13px; }
.pf-like:hover { color: #f91880; }
.pf-like.on { color: #f91880; } .pf-like.on svg { fill: currentColor; }
.pf-flash { animation: pfFlash 2.2s ease-out; }
@keyframes pfFlash { from { background: rgba(232, 116, 59, 0.2); } to { background: transparent; } }
/* Collapsed rail polish: centered square icons, no stray purple rings/bars */
.nav-burger:focus { outline: none; }
.nav-burger:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.snav button:focus { outline: none; }
.snav button:focus-visible, .snav a:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.wlayout.collapsed .wside.snav { padding: 12px 0; align-items: stretch; }
.wlayout.collapsed .snav-top, .wlayout.collapsed .snav-secs { align-items: center; width: 100%; }
.wlayout.collapsed .snav-pricing, .wlayout.collapsed .wside .snav-head { width: 44px; height: 44px; padding: 0; margin: 0 auto; justify-content: center; border-radius: var(--r-md); }
.wlayout.collapsed .wside .snav-sec.here > .snav-head { box-shadow: none; background: rgba(232, 116, 59, 0.15); color: var(--accent); }
.wlayout.collapsed .snav-collapse { margin: auto auto 0; }

.wtw-ok { display: inline-flex; align-items: center; padding: 6px 10px; font-size: 13px; font-weight: 600; color: var(--strong); }
.wtw-connect { align-self: center; }

/* Hint pointing at the Twitch player's own Follow button (top left) after "Add friend" */
.wplayer { position: relative; }
.wtw-hint { position: absolute; top: 64px; left: 14px; z-index: 3; display: flex; align-items: flex-start; gap: 8px; max-width: 300px; padding: 10px 12px; border-radius: var(--r-lg); background: #9146ff; color: #fff; font-size: 13px; line-height: 1.35; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); pointer-events: auto; animation: wtwIn .25s ease-out; }
.wtw-hint .wtw-arrow { font-size: 20px; line-height: 1; margin-top: -2px; }
.wtw-hint .linkbtn { color: #fff; margin-left: auto; padding: 0 2px; }
@keyframes wtwIn { from { opacity: 0; transform: translate(-6px, -6px); } to { opacity: 1; transform: none; } }

/* Server rendered layout box: everything that isn't the sidebar sits in the content column */
.wlayout[data-ssr] > :not(.wside) { grid-column: 2; min-width: 0; }
.wlayout[data-ssr] > .wside { grid-column: 1; grid-row: 1 / span 20; }
.wlayout[data-ssr] > aside.wside:empty { display: none; }
@media (max-width: 900px) { .wlayout[data-ssr] > :not(.wside) { grid-column: 1; } }

.snav-follows summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 6px; }
.snav-follows summary::-webkit-details-marker { display: none; }
.snav-follows summary::after { content: '›'; margin-left: auto; color: var(--muted); transition: transform .15s; }
.snav-follows[open] summary::after { transform: rotate(90deg); }
.snav-live { color: #22c55e; font-weight: 600; }
.snav-more { margin: 2px 10px 0; }

/* Twitch embed rules: nothing on top of the player, and the player is at least 400x300 (public/watch.js fitPlayers) */
.wtw-hint { position: static; display: flex; width: fit-content; max-width: 100%; margin: 6px 0 8px; top: auto; left: auto; }
@media (max-width: 900px) { .wplayer { aspect-ratio: auto; min-height: 0; height: max(300px, calc((100vw - 32px) * 0.5625)); } }

/* Prices page search */
.prices-search { position: relative; max-width: 520px; margin: 10px 0 16px; }
.prices-search input { width: 100%; }
.prices-search .dd-item { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 8px 10px; cursor: pointer; font: inherit; }
.prices-search .dd-item:hover { background: var(--panel2); }
.prices-search .dd-item .art, .prices-search .dd-item img { width: 26px; height: 36px; flex: none; border-radius: var(--r-md); object-fit: cover; font-size: 10px; }

/* Prices page: Steam deals */
#pSpecials .card-box { margin-top: 14px; }
.deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; margin-top: 10px; }
.deal-card { display: flex; flex-direction: column; min-width: 0; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--panel2); }
.deal-img { width: 100%; aspect-ratio: 460 / 215; object-fit: cover; display: grid; place-items: center; font-weight: 600; font-size: 22px; color: var(--muted); background: var(--panel2); }
.deal-body { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px 12px; min-width: 0; }
.deal-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.deal-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }

/* Category of the Day: a slim line under your best move, not another banner */
.cotd.slim { padding: 6px 12px; margin: -4px 0 14px; border: 0; border-left: 3px solid #2ecc71; border-radius: var(--r-lg); background: var(--panel); font-size: 14px; }
.cotd.slim .cotd-label { font-size: 11px; }
.community-tabs { margin: 0 0 14px; }

/* Home widgets */
.home-bar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.home-bar .tab-title { margin: 0; }
.home-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; margin-bottom: 12px; border: 1px dashed var(--line); border-radius: var(--r-lg); }
.home-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; align-items: start; }
.hw { grid-column: span 3; min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px 16px; }
.hw-s { grid-column: span 2; } .hw-m { grid-column: span 3; } .hw-l { grid-column: span 6; }
.hw-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.hw-head h3 { margin: 0; font-size: 16px; flex: 1; min-width: 0; }
.hw-tools { display: flex; gap: 4px; flex-wrap: wrap; }
.hw-tool { background: var(--panel2); border: 1px solid var(--line); color: var(--text); border-radius: var(--r-lg); padding: 2px 7px; font: inherit; font-size: 12px; cursor: pointer; }
.hw-tool.on { border-color: var(--accent); color: var(--accent); }
.hw-tool.danger:hover { color: var(--none); }
.home-grid.editing .hw { cursor: grab; border-style: dashed; }
.hw.dragging { opacity: .5; }
.hw-row { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.hw-row:last-of-type { border-bottom: 0; }
.hw-row .grow { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.hw-av { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--panel2); font-size: 11px; font-weight: 600; }
.hw-sub { font-size: 12px; font-weight: 600; color: var(--muted); margin: 6px 0 2px; }
.hw-when { width: 104px; flex: none; color: var(--muted); }
.hw-more { display: inline-block; margin-top: 8px; }
.hw-empty { margin: 4px 0; }
.hw-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(90px, 1fr)); gap: 8px; margin-bottom: 8px; }
.hw-stats div { background: var(--panel2); border-radius: var(--r-lg); padding: 8px 10px; }
.hw-stats b { display: block; font-size: 20px; }
.hw-stats span { font-size: 12px; color: var(--muted); }
.hw-best .card { margin: 0; }
.hw-feed .tw-post { border-left: 0; border-right: 0; border-radius: 0; }
@media (max-width: 1100px) { .hw-s, .hw-m { grid-column: span 3; } }
@media (max-width: 760px) { .home-grid { grid-template-columns: minmax(0, 1fr); } .hw, .hw-s, .hw-m, .hw-l { grid-column: 1; } }
/* Sidebar: Home link above the sections */
.snav-homelink { border-bottom: 1px solid var(--line); }
.snav-hl { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.wlayout.collapsed .snav-homelink { display: block !important; }
.wlayout.collapsed .snav-homelink .wside-link { justify-content: center; }
.wlayout.collapsed .snav-homelink .snav-hl { font-size: 0; }
/* Settings tabs */
.settings-tabs { margin-bottom: 14px; }
.stab-off { display: none !important; }
/* Settings / community tab strips never make the page wider than the screen: they scroll sideways on their own */
.settings-tabs, .community-tabs { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.settings-tabs::-webkit-scrollbar, .community-tabs::-webkit-scrollbar { display: none; }
@media (max-width: 760px) { .settings-tabs button, .community-tabs button { flex: none; padding: 10px 12px; } }

/* Calendar (month / week grid; agenda on phones) */
.cal-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.cal-bar h3 { margin: 0; min-width: 160px; text-align: center; }
.cal-bar .seg { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; }
.cal-bar .seg button { background: none; border: 0; color: var(--muted); padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; }
.cal-bar .seg button.on { background: var(--panel2); color: var(--text); font-weight: 600; }
.cal-legend { display: flex; gap: 6px 12px; flex-wrap: wrap; align-items: center; margin-bottom: 10px; }
.cal-dot { display: inline-block; width: 10px; height: 10px; border-radius: var(--r-sm); margin-right: 2px; vertical-align: -1px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; background: var(--line); gap: 1px; }
.cal-dow { background: var(--panel); padding: 6px 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.cal-cell { background: var(--bg); min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-grid.week .cal-cell { min-height: 200px; }
.cal-cell.other { opacity: .45; }
.cal-cell.today { background: color-mix(in srgb, var(--accent) 10%, var(--bg)); }
.cal-cell.today .cal-num { background: var(--accent); color: var(--on-accent); border-radius: 999px; padding: 0 7px; }
.cal-num { font-size: 12px; font-weight: 600; align-self: flex-start; margin-bottom: 2px; }
.cal-chip { display: block; font-size: 12px; line-height: 1.3; padding: 3px 6px; border-radius: var(--r-md); text-decoration: none; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--accent); background: var(--panel2); }
.cal-chip:hover { filter: brightness(1.2); text-decoration: none; }
.cal-chip .cal-t { color: var(--muted); margin-right: 4px; }
.cal-chip.you, .cal-dot.you { border-left-color: #22c55e; } .cal-dot.you { background: #22c55e; }
.cal-chip.stream, .cal-dot.stream { border-left-color: var(--accent); } .cal-dot.stream { background: var(--accent); }
.cal-chip.party, .cal-dot.party { border-left-color: #f0b429; } .cal-dot.party { background: #f0b429; }
.cal-chip.playtest, .cal-dot.playtest { border-left-color: #4aa8ff; } .cal-dot.playtest { background: #4aa8ff; }
.cal-chip.event, .cal-dot.event { border-left-color: #f472b6; } .cal-dot.event { background: #f472b6; }
.cal-agenda { display: none; }
.cal-ag-day { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hw-cal .cal-cell { min-height: 90px; }
@media (max-width: 760px) { .cal-grid { display: none; } .cal-agenda { display: block; } .cal-bar h3 { min-width: 0; } }

/* Neighborhoods + size bands (public/neighborhoods.js) and the waiting list page (src/waitlist.js) */
.nb-hero { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.nb-hero h1 { margin: 2px 0 4px; }
.nb-hero .grow { min-width: 0; flex: 1 1 260px; }
.nb-band { padding: 10px 14px; border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.nb-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 320px); gap: 16px; margin-top: 16px; align-items: start; }
.nb-grid aside { display: grid; gap: 12px; min-width: 0; }
.nb-members { display: grid; gap: 2px; }
.nb-member { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.nb-member .grow { min-width: 0; }
.nb-member.is-live b a { color: var(--text); }
.nb-ladder { display: grid; gap: 4px; margin: 8px 0; }
.nb-ladder div { padding: 6px 10px; border-radius: var(--r-lg); border: 1px solid var(--line); font-size: 13px; }
.nb-ladder div.on { border-color: var(--accent); }
.nb-bands { display: flex; flex-wrap: wrap; gap: 6px; }
.on-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3fb950; vertical-align: 1px; margin-right: 2px; }
.board-split { grid-column: 1 / -1; margin: 10px 0 0; font-size: 15px; }
.inv-row { display: flex; gap: 8px; align-items: center; padding: 6px 0; min-width: 0; }
.inv-row input { min-width: 0; }
.wl-page { max-width: 560px; margin: 40px auto; padding: 0 16px; }
.wl-card h1 { margin-top: 0; }
.wl-card h2 { font-size: 16px; margin-top: 22px; }
.wl-pos { font-size: 18px; }
.wl-pos b { font-size: 34px; }
.wl-out { margin-top: 16px; }
@media (max-width: 760px) { .nb-grid { grid-template-columns: minmax(0, 1fr); } }

/* One game mode (public/onegame.js) */
.og-head { display: flex; gap: 10px; align-items: center; min-width: 0; margin-bottom: 6px; }
.og-head .grow { min-width: 0; }
.og-art { width: 46px; height: 64px; border-radius: var(--r-lg); object-fit: cover; flex: none; }
.og-now { margin: 6px 0 2px; }
.ob-ranges { flex-wrap: wrap; }
#setGames select { width: 100%; max-width: 100%; min-width: 0; }
#tab-settings fieldset { min-width: 0; }
.chips button.on { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }

/* My games helpers (public/libextras.js) */
#libStreamed { margin: 12px 0; }
.ls-head { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; }
.ls-head .grow { min-width: 0; flex: 1 1 240px; }
.ls-head h3 { margin: 0 0 4px; }
.ls-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 8px; margin-top: 10px; }
.ls-row { display: flex; gap: 10px; align-items: center; padding: 8px; border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 0; }
.ls-row .grow { min-width: 0; }
.ls-row img, .ls-ph { width: 32px; height: 44px; border-radius: var(--r-md); object-fit: cover; flex: none; background: #ffffff10; }
.lib-bulk { margin-top: 10px; }
.lib-bulk summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.lib-bulk textarea { width: 100%; margin: 6px 0; }
.bulk-res { margin: 6px 0 0; padding-left: 18px; max-height: 220px; overflow: auto; }
.hub-hood { display: flex; align-items: center; gap: 12px; padding: 12px 16px; margin: 0 0 14px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--panel); color: var(--text); text-decoration: none; min-width: 0; }
.hub-hood .grow { display: flex; flex-direction: column; min-width: 0; }
.hub-hood b { font-size: 17px; }
.snav-homelink .snav-hl { width: 100%; }
.snav-homelink .snav-hl .wrail-count { position: static; margin-left: auto; display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: var(--r-md); font-size: 11px; line-height: 1; }
.wlayout.collapsed .snav-homelink .snav-hl .wrail-count { position: absolute; top: 2px; right: 2px; font-size: 10px; min-width: 17px; height: 17px; }

/* Prices page v2 (public/discover.js): preferences, presets, watch icon, deal hover card */
.pp-bar { display: grid; gap: 10px; }
.pp-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; min-width: 0; }
.pp-f { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); min-width: 0; }
.pp-f select { max-width: 100%; }
.pp-check { display: flex; gap: 6px; align-items: center; font-size: 13px; padding-bottom: 6px; }
.pp-presets { align-items: center; }
.pp-chip { display: inline-flex; align-items: center; }
.pp-del { background: none; border: 0; color: var(--muted); padding: 0 4px; cursor: pointer; }
.deal-card { position: relative; }
.deal-watch { position: absolute; top: 8px; right: 8px; width: 32px; height: 32px; border-radius: 50%; border: 1px solid #ffffff33; background: #000a; color: #fff; display: grid; place-items: center; cursor: pointer; }
.deal-watch.on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.deal-owned { position: absolute; top: 8px; left: 8px; font-size: 11px; padding: 2px 8px; border-radius: var(--r-lg); background: #000b; color: #fff; }
.deal-pop { position: absolute; z-index: 60; width: 320px; max-width: calc(100vw - 16px); background: var(--card, #1d1d25); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); overflow: hidden; }
.deal-pop img { width: 100%; display: block; aspect-ratio: 460 / 215; object-fit: cover; }
.dp-body { padding: 12px 14px; display: grid; gap: 6px; }
.dp-body .meta { display: flex; flex-wrap: wrap; gap: 4px; }

/* Pricing page (src/pricingpage.js) */
.pr-page { max-width: 1040px; margin: 0 auto; padding: 24px 16px 60px; display: grid; gap: 36px; min-width: 0; }
.pr-hero { text-align: center; max-width: 720px; margin: 10px auto 0; }
.pr-hero h1 { font-size: clamp(28px, 5vw, 44px); margin: 8px 0; line-height: 1.1; }
.pr-kicker { display: none; }
.pr-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; max-width: 760px; margin: 0 auto; width: 100%; }
.pr-plan, .pr-card { position: relative; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pr-plan h2, .pr-card h3 { margin: 0; }
.pr-pro { border-color: var(--accent2); }
.pr-badge { position: absolute; top: -12px; right: 18px; background: var(--panel2); color: var(--text); border: 1px solid var(--line); font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-sm); }
.pr-price { font-size: 40px; font-weight: 600; } .pr-price small { font-size: 15px; color: var(--muted); font-weight: 600; }
.pr-price.sm { font-size: 26px; }
.pr-list { list-style: none; padding: 0; margin: 4px 0 8px; display: grid; gap: 7px; }
.pr-list li { padding-left: 24px; position: relative; font-size: 14px; }
.pr-list li::before { content: ''; position: absolute; left: 2px; top: 5px; width: 12px; height: 7px; border-left: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); }
.pr-plan .btn, .pr-card .btn { margin-top: auto; text-align: center; }
.pr-who h2, .pr-compare h2, .pr-faq h2, .pr-end h2 { text-align: center; }
.pr-two, .pr-others { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 18px; }
.pr-ic { width: 46px; height: 46px; border-radius: var(--r-lg); display: grid; place-items: center; background: var(--panel2); color: var(--muted); }
.pr-feats h2 { margin: 0 0 6px; }
.pr-flist { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; margin: 0; }
.pr-feat { padding: 12px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.pr-feat dt { font-weight: 600; } .pr-feat dd { margin: 2px 0 0; font-size: 14px; }
@media (max-width: 760px) { .pr-flist { grid-template-columns: minmax(0, 1fr); } }
.pr-table { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.pr-tr { display: grid; grid-template-columns: minmax(0, 1fr) 110px 110px; gap: 8px; padding: 11px 16px; border-top: 1px solid var(--line); align-items: center; font-size: 14px; }
.pr-tr span:not(:first-child) { text-align: center; }
.pr-th { border-top: 0; font-weight: 600; background: #ffffff08; }
.pr-yes { color: #3fb950; } .pr-no { color: var(--muted); }
.pr-soon { opacity: .8; }
.pr-faq { max-width: 760px; margin: 0 auto; width: 100%; }
.pr-end { text-align: center; display: grid; gap: 12px; justify-items: center; }
@media (max-width: 560px) { .pr-tr { grid-template-columns: minmax(0, 1fr) 70px 70px; padding: 10px 10px; font-size: 13px; } }

/* Developer portal inside the site layout */
.dev-shell { min-width: 0; padding: 14px 16px 40px; }
.dev-bar { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; min-width: 0; }
.dev-bar .spacer { flex: 1; }
.dev-bar .who { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }

/* Stream command center (public/streamcenter.js) */
.sc-hero { display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; background: var(--panel); }
.sc-hero .grow { min-width: 0; flex: 1 1 320px; }
.sc-hero h1 { margin: 4px 0 6px; font-size: 28px; }
.sc-status { font-size: 16px; margin: 0 0 4px; }
.sc-actions { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; }
.sc-grid { margin-top: 16px; }
.fs-group { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; min-width: 0; }
.fs-group:last-of-type { border-bottom: 0; }
.fs-group .grow { display: flex; flex-direction: column; min-width: 0; }
.fs-group b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fs-group .fsq-logo { width: 34px; height: 34px; flex: none; font-size: 12px; }

/* Share window: chips + search picker (public/share.js) */
.share-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; min-height: 30px; align-items: center; }
.share-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 6px 5px 12px; border-radius: var(--r-md); background: rgba(232, 116, 59, 0.17); border: 1px solid var(--accent2, #e8743b); font-size: 13px; font-weight: 600; }
.share-chip button { background: none; border: 0; color: inherit; cursor: pointer; padding: 0 4px; opacity: .8; }
.share-pick { position: relative; }
.share-pick input { width: 100%; }
.share-dd { position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 5; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-lg); max-height: 220px; overflow: auto; box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.share-opt { display: block; width: 100%; text-align: left; padding: 9px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); cursor: pointer; }
.share-opt:hover { background: #ffffff0d; }

/* Indie game page v2 (src/indie.js gamePage) */
.gp { max-width: none; padding: 0; }
.gp-hero { position: relative; background: #0d0c14; overflow: hidden; border-bottom: 1px solid var(--line); }
.gp-hero::before { content: ''; position: absolute; inset: 0; background: var(--gp-bg, var(--panel2)) center / cover; filter: blur(18px) brightness(.45); transform: scale(1.15); }
.gp-hero-in { position: relative; max-width: 1160px; margin: 0 auto; padding: 18px 20px 26px; }
.gp-back { color: #ffffffb0; }
.gp-head { display: flex; gap: 24px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-top: 18px; }
.gp-title { min-width: 0; flex: 1 1 380px; }
.gp-title h1 { font-size: clamp(30px, 5vw, 48px); margin: 8px 0 6px; line-height: 1.05; }
.gp-tagline { font-size: 18px; margin: 0 0 8px; color: #ffffffd9; }
.gp-by { color: #ffffffb0; font-size: 14px; } .gp-by a { color: #fff; }
.gp-status { display: inline-block; font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: var(--r-lg); background: #ffffff1f; border: 1px solid #ffffff33; }
.gp-buy { display: grid; gap: 8px; min-width: 0; width: 320px; max-width: 100%; background: #14131cdd; backdrop-filter: blur(6px); }
.gp-buy .btn { text-align: center; }
.gp-buy-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.gp-layout { max-width: 1160px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 300px); gap: 20px; align-items: start; }
.gp-main, .gp-side { display: grid; gap: 16px; min-width: 0; }
.gp-media { display: grid; gap: 8px; min-width: 0; }
.gp-stage img { width: 100%; border-radius: var(--r-lg); display: block; aspect-ratio: 16 / 9; object-fit: cover; background: #000; }
.gp-thumbs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; }
.gp-thumb { flex: none; width: 120px; border-radius: var(--r-lg); overflow: hidden; border: 2px solid transparent; opacity: .7; }
.gp-thumb.on, .gp-thumb:hover { border-color: var(--accent2, #e8743b); opacity: 1; }
.gp-thumb img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.gp-facts dl { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; margin: 0; font-size: 14px; }
.gp-facts dt { color: var(--muted); } .gp-facts dd { margin: 0; min-width: 0; }
.gp-ai.ai-none { border-color: #2ea04366; } .gp-ai.ai-used { border-color: #d2992266; }
.gp-review { padding: 12px 0; border-top: 1px solid var(--line); } .gp-review:first-of-type { border-top: 0; }
.gp-rv-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.gp-rv-tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: var(--r-sm); }
.gp-rv-tag.yes { background: #2ea04333; color: #3fb950; } .gp-rv-tag.no { background: #ffffff14; color: var(--muted); }
.gp-review p { margin: 6px 0 0; }
@media (max-width: 860px) { .gp-layout { grid-template-columns: minmax(0, 1fr); } .gp-buy { width: 100%; } }

/* Neighborhood page v2 (public/neighborhoods.js) */
.nb-hero2 { position: relative; border-radius: var(--r-lg); overflow: hidden; color: #fff; min-width: 0; }
.nb-sky { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 90px; color: #0000003d; pointer-events: none; }
.nb-hero2-in { position: relative; display: flex; gap: 18px; align-items: flex-end; flex-wrap: wrap; padding: 22px 22px 26px; }
.nb-hero2 .grow { min-width: 0; flex: 1 1 380px; }
.nb-kicker { font-size: 12px; opacity: .8; font-weight: 600; }
.nb-hero2 h1 { font-size: clamp(28px, 5vw, 42px); margin: 4px 0 10px; }
.nb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.nb-chips span { background: #0000003a; border: 1px solid #ffffff2a; border-radius: var(--r-md); padding: 4px 10px; font-size: 13px; }
.nb-faces { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.nb-face { position: relative; display: inline-block; border-radius: 50%; box-shadow: 0 0 0 2px #e5534b; }
.nb-face .live-dot { position: absolute; right: -2px; bottom: -2px; }
.nb-quiet { opacity: .85; margin-top: 12px; }
.nb-hero-actions { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.nb-hero-actions .btn.ghost { background: #0000004d; border-color: #ffffff40; color: #fff; }
.nb-tabs { display: flex; gap: 4px; overflow-x: auto; margin: 14px 0; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.nb-tabs::-webkit-scrollbar { display: none; }
.nb-tabs button { flex: none; background: none; border: 0; border-bottom: 3px solid transparent; color: var(--muted); padding: 10px 14px; font-weight: 600; cursor: pointer; }
.nb-tabs button.on { color: var(--text); border-bottom-color: var(--accent2, #e8743b); }
.nb-count { background: #e5534b; color: #fff; border-radius: 999px; padding: 1px 7px; font-size: 11px; margin-left: 4px; }
.nb-live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 12px; }
.nb-live-card .nb-member { border-bottom: 0; }
.nb-two { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.nb-col { display: grid; gap: 12px; min-width: 0; }
.nb-row-head { display: flex; align-items: center; gap: 10px; justify-content: space-between; flex-wrap: wrap; }
.nb-row-head h3 { margin: 0; }
.nb-find { max-width: 220px; }
.nb-members-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 0 16px; margin-top: 8px; }
.nb-mem-btns { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.nb-chat-list { height: 380px; overflow-y: auto; display: grid; align-content: start; gap: 2px; padding-right: 4px; }
.nb-msg { display: flex; gap: 10px; padding: 7px 4px; border-radius: var(--r-lg); min-width: 0; }
.nb-msg:hover { background: #ffffff08; }
.nb-msg .grow { min-width: 0; } .nb-msg-body { word-break: break-word; }
.nb-msg-x { display: flex; gap: 6px; opacity: 0; } .nb-msg:hover .nb-msg-x { opacity: 1; }
.nb-chat-form { display: flex; gap: 8px; margin-top: 10px; } .nb-chat-form input { flex: 1; min-width: 0; }
.nb-fb, .nb-event { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); min-width: 0; }
.nb-fb .grow, .nb-event .grow { min-width: 0; } .nb-fb p, .nb-event p { margin: 4px 0 0; }
.nb-date { flex: none; width: 48px; text-align: center; border-radius: var(--r-lg); background: var(--panel2); padding: 6px 0; display: flex; flex-direction: column; }
.nb-date b { font-size: 20px; line-height: 1; } .nb-date span { font-size: 11px; color: var(--muted); }
.nb-empty { text-align: center; padding: 30px; }
#nbFbFocus { width: 100%; margin: 6px 0; }
@media (max-width: 860px) { .nb-two { grid-template-columns: minmax(0, 1fr); } .nb-hero-actions { flex-direction: row; flex-wrap: wrap; } }
/* Home (feed) side column */
.fs-hood { display: flex; flex-direction: column; gap: 4px; color: #fff; text-decoration: none; border: 0; }
.fs-hood b { font-size: 18px; } .fs-hood .btn { align-self: flex-start; margin-top: 6px; }
.fs-faces { display: flex; gap: 4px; margin-top: 4px; }
.fs-friend { display: flex; align-items: center; gap: 8px; padding: 5px 0; min-width: 0; }
.fs-friend a { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Messages (public/dms.js) */
.dm-wrap { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 1fr); gap: 14px; min-width: 0; }
.dm-list { padding: 12px; display: flex; flex-direction: column; min-height: 520px; max-height: calc(100vh - 140px); overflow: hidden; }
.dm-list-head { display: grid; gap: 8px; margin-bottom: 8px; } .dm-list-head h2 { margin: 0; }
#dmConvos { overflow-y: auto; }
.dm-convo { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 9px 8px; border: 0; background: none; color: var(--text); border-radius: var(--r-lg); cursor: pointer; min-width: 0; }
.dm-convo:hover, .dm-convo.on { background: #ffffff0f; }
.dm-convo .grow { display: flex; flex-direction: column; min-width: 0; }
.dm-convo .grow span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dm-convo.unread b { color: #fff; }
.dm-meta { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; }
.dm-badge, .dm-side-badge { background: var(--accent2, #e8743b); color: var(--on-accent); border-radius: 999px; font-size: 11px; padding: 1px 7px; }
.dm-sub { margin: 12px 4px 4px; }
.dm-thread { display: flex; flex-direction: column; min-height: 520px; max-height: calc(100vh - 140px); padding: 0; overflow: hidden; }
.dm-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.dm-back { display: none; font-size: 20px; }
.dm-actions { display: flex; gap: 10px; }
.dm-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.dm-msg { display: flex; flex-direction: column; align-items: flex-start; max-width: 78%; }
.dm-msg.mine { align-self: flex-end; align-items: flex-end; }
.dm-bubble { background: #ffffff12; border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-lg); padding: 9px 13px; word-break: break-word; line-height: 1.4; }
.dm-msg.mine .dm-bubble { background: #2c2c33; color: var(--text); border-radius: var(--r-lg) var(--r-lg) var(--r-lg) var(--r-lg); }
.dm-time { margin-top: 3px; }
.dm-form { display: flex; gap: 8px; padding: 10px 12px 4px; border-top: 1px solid var(--line); }
.dm-form textarea { flex: 1; min-width: 0; resize: none; max-height: 140px; }
.dm-note, .dm-cant { padding: 0 14px 10px; margin: 0; }
.dm-cant { padding-top: 12px; border-top: 1px solid var(--line); }
.dm-empty { margin: auto; text-align: center; padding: 30px; max-width: 420px; }
.dm-first, .dm-none { text-align: center; margin: auto; }
@media (max-width: 760px) {
  .dm-wrap { grid-template-columns: minmax(0, 1fr); }
  .dm-wrap .dm-thread { display: none; } .dm-wrap.dm-open .dm-list { display: none; } .dm-wrap.dm-open .dm-thread { display: flex; }
  .dm-back { display: inline-block; }
  .dm-list, .dm-thread { min-height: 70vh; }
}

/* Neighborhood: roomy member rows + feedback forum */
.nb-members-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 0 24px; margin-top: 8px; }
.nb-members-list .nb-member { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; }
.nb-members-list .nb-member .muted.small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nb-members-list .nb-member b a { white-space: nowrap; }
.nb-mem-btns { flex-wrap: nowrap; }
@media (max-width: 560px) { .nb-members-list .nb-member { grid-template-columns: auto minmax(0, 1fr); } .nb-mem-btns { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; } }
.fbf-ask textarea { width: 100%; margin: 6px 0; }
.fbf-ask .spacer { flex: 1; }
.fbf-list { display: grid; gap: 12px; margin-top: 12px; }
.fbf-head { display: flex; gap: 10px; align-items: center; }
.fbf-body { margin: 10px 0; font-size: 15px; }
.fbf-comments { border-top: 1px solid var(--line); padding-top: 6px; display: grid; gap: 2px; }
.fbf-c { display: flex; gap: 10px; padding: 8px; border-radius: var(--r-lg); min-width: 0; }
.fbf-c .grow { min-width: 0; } .fbf-cbody { margin-top: 2px; word-break: break-word; }
.fbf-c.good { background: #2ea04314; }
.fbf-tag { font-size: 11px; font-weight: 600; padding: 1px 8px; border-radius: var(--r-sm); margin-left: 4px; }
.fbf-tag.yes { background: #2ea04333; color: #3fb950; } .fbf-tag.no { background: #ffffff14; color: var(--muted); }
.fbf-mark { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.fbf-reply { display: flex; gap: 8px; margin-top: 8px; } .fbf-reply input { flex: 1; min-width: 0; }
/* Post destination picker */
.fc-dest-wrap { position: relative; }
.fc-dest { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px; border-radius: var(--r-md); border: 1px solid var(--accent2, #e8743b); background: rgba(232, 116, 59, 0.12); color: var(--text); font-weight: 600; cursor: pointer; max-width: 260px; }
.fc-dest-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-dest-caret { opacity: .7; font-size: 11px; }
.fc-destmenu { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; width: 290px; max-width: 80vw; max-height: 340px; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: 0 8px 24px rgba(0, 0, 0, .35); padding: 6px; }
.fc-opt { display: flex; gap: 10px; align-items: center; width: 100%; text-align: left; padding: 9px 10px; border: 0; border-radius: var(--r-md); background: none; color: var(--text); cursor: pointer; }
.fc-opt span { display: flex; flex-direction: column; min-width: 0; } .fc-opt b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fc-opt:hover { background: #ffffff0d; } .fc-opt.on { background: rgba(232, 116, 59, 0.15); }
.fc-opt-h { font-size: 11px; color: var(--muted); padding: 8px 10px 4px; }
.hw-rank { width: 22px; height: 22px; border-radius: 50%; background: var(--panel2); display: inline-grid; place-items: center; font-size: 12px; font-weight: 600; flex: none; }
/* Collapsed rail: the quick links (Home, Command Center, neighborhood, Groups) are centered squares like the section icons */
.wlayout.collapsed .snav-homelink { display: flex !important; flex-direction: column; align-items: center; gap: 4px; width: 100%; padding: 6px 0 10px; margin-bottom: 6px; }
.wlayout.collapsed .snav-homelink .wside-link { width: 44px; height: 44px; padding: 0; margin: 0 auto; justify-content: center; border-radius: var(--r-md); position: relative; }
.wlayout.collapsed .snav-homelink .snav-hl { width: auto; justify-content: center; gap: 0; }
.wlayout.collapsed .snav-homelink .wside-link.on, .wlayout.collapsed .snav-homelink .wside-link[aria-current] { background: rgba(232, 116, 59, 0.15); color: var(--accent); }
a.brand { color: inherit; text-decoration: none; }

/* Command Center tabs */
.cc-nav { margin: 0 0 16px; }
.cc-title { font-weight: 600; font-size: 13px; color: var(--muted); margin: 2px 0 6px; }
.cc-nav .community-tabs { margin: 0; }
#tab-home .home-bar { margin-top: 18px; }
.lib-actions > .card-box + .card-box { margin-top: 0; }
/* Feedback button sits bottom right so it never covers the sidebar */
.fb-float { left: auto; right: 16px; }
@media (max-width: 760px) { .fb-float { left: auto; right: 12px; } }

body:has(.wlayout) .fb-float { display: none !important; }

/* Landing hero: "row 1, not row 40". Our own drawing of a category directory (not Twitch's UI): a crowded game where
   you sit far down in row 40 next to a quieter game where you are in row 1. Static, flat, decorative (aria-hidden). */
.hero.has-media > .hero-split:not(.hero-bg):not(.hero-credit) { max-width: 1240px; }
.hero-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 44px; align-items: center; text-align: left; }
.hero-split .hero-copy h1 { font-size: clamp(36px, 4.4vw, 54px); }
.hero-split .hero-copy .sub { font-size: 18px; }
.hero-split .hero-copy .sub { margin-left: 0; margin-right: 0; }
.hero-split .hero-copy .btn.big { margin-bottom: 4px; }
.hero-fig { margin: 0; min-width: 0; }
.hero-dir { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
.hd-panel { min-width: 0; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 12px; }
.hd-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.hd-head b { font-size: 13px; } .hd-head span { font-size: 11px; color: var(--muted); white-space: nowrap; }
.hd-row { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: start; margin-top: 10px; }
.hd-n { font-size: 11px; color: var(--muted); padding-top: 2px; font-variant-numeric: tabular-nums; }
.hd-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; min-width: 0; }
.hd-c { display: block; min-width: 0; }
.hd-th { display: block; aspect-ratio: 16 / 9; border-radius: 3px; background: #26262b; position: relative; }
.hd-th.s2 { background: #2c2c31; } .hd-th.s3 { background: #222226; }
.hd-meta { display: flex; gap: 5px; align-items: flex-start; margin-top: 5px; min-width: 0; }
.hd-av { flex: none; width: 12px; height: 12px; border-radius: 50%; background: #34343a; }
.hd-ln { flex: 1; min-width: 0; display: grid; gap: 3px; padding-top: 1px; }
.hd-ln span { display: block; height: 4px; border-radius: 2px; background: #2f2f35; }
.hd-ln span + span { width: 60%; background: #28282d; }
.hd-gap { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; align-items: center; margin-top: 10px; }
.hd-gap .hd-n { line-height: 1.2; }
.hd-dots { display: block; height: 34px; border-left: 2px dotted var(--line); margin-left: 50%; }
.hd-far { opacity: .45; }
.hd-txt { flex: 1; min-width: 0; display: grid; line-height: 1.15; }
.hd-txt b { font-size: 11px; color: var(--text); }
.hd-txt span { font-size: 11px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hd-you .hd-th { background: var(--accent-tint); outline: 1px solid var(--accent); outline-offset: -1px; }
.hd-tag { position: absolute; left: 4px; top: 4px; font-size: 10px; font-weight: 700; line-height: 1; padding: 3px 5px; border-radius: 3px; background: var(--accent); color: var(--on-accent); }
.hd-you .hd-av { background: var(--accent); }
.hd-far .hd-you .hd-th { background: #2a2a30; outline-color: var(--muted); }
.hd-far .hd-you .hd-tag { background: var(--muted); }
.hd-far .hd-you .hd-av { background: var(--muted); }
.hd-end { margin: 14px 0 0; font-size: 12px; color: var(--muted); }
.hero-cap { margin: 12px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
@media (max-width: 980px) {
  .hero-split { grid-template-columns: minmax(0, 1fr); gap: 28px; text-align: center; }
  .hero-split .hero-copy .sub { margin-left: auto; margin-right: auto; }
  .hero-fig { max-width: 640px; width: 100%; margin: 0 auto; }
}
@media (max-width: 520px) {
  .hero-dir { gap: 8px; }
  .hd-panel { padding: 8px; }
  .hd-head { flex-direction: column; gap: 2px; align-items: flex-start; margin-bottom: 4px; padding-bottom: 6px; }
  .hd-row, .hd-gap { grid-template-columns: minmax(0, 1fr); gap: 3px; margin-top: 8px; text-align: left; }
  .hd-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .hd-cards > .hd-c:nth-child(3) { display: none; }
  .hd-dots { height: 18px; margin-left: 50%; }
  .hd-tag { left: 3px; top: 3px; padding: 2px 4px; }
  .hd-txt span { font-size: 10px; }
  .hd-end { font-size: 11px; text-align: left; }
}
