/* Sage of Vice: Vice City / synthwave theme. Mobile-first. */
:root {
  --bg: #0c0616;
  --bg-2: #150a26;
  --card: #1c0f33;
  --card-2: #26144a;
  --line: rgba(255, 255, 255, 0.09);
  --text: #f6eefc;
  --muted: #b9a7cf;
  --pink: #ff2e88;
  --orange: #ffa83d;
  --purple: #b53cff;
  --cyan: #2de2e6;
  --grad: linear-gradient(180deg, #ffb347 0%, #ff4f7e 52%, #c23cff 100%);
  --grad-x: linear-gradient(90deg, #ffa83d, #ff2e88 50%, #b53cff);
  --display: "Anton", Impact, "Haettenschweiler", "Arial Narrow Bold", sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --radius: 14px;
  --wrap: 1080px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  background-image:
    radial-gradient(120% 60% at 50% -10%, rgba(181, 60, 255, 0.22), transparent 60%),
    radial-gradient(80% 40% at 100% 100%, rgba(255, 46, 136, 0.12), transparent 60%);
  background-attachment: fixed;
  color: var(--text);
  font: 16px/1.55 var(--body);
}
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
a { color: var(--cyan); }
a:hover { color: #fff; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 18px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 12px; top: 12px; z-index: 99; background: #000; color: #fff; padding: 8px 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 6, 22, 0.86);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; gap: 12px; height: 58px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex-shrink: 0; }
.brand img { width: 34px; height: 34px; border-radius: 8px; }
.brand span { font-family: var(--display); font-size: 20px; letter-spacing: 0.5px; text-transform: uppercase; }
.brand span b { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 400; }
.nav { margin-left: auto; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 8px 10px; border-radius: 999px; white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.08); }
@media (max-width: 380px) { .brand span { display: none; } }

/* ---------- Block lettering ---------- */
.stars { display: flex; justify-content: center; gap: 4px; color: #fff; font-size: 22px; line-height: 1;
  text-shadow: 0 0 0 #000, 2px 2px 0 #000, -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000; }
.stars.small { font-size: 14px; gap: 2px; justify-content: flex-start; }
.logo-type { font-family: var(--display); text-transform: uppercase; line-height: 0.92; margin: 0; letter-spacing: 1px; }
.logo-type .l1 { display: block; color: #fff; font-size: clamp(64px, 22vw, 132px);
  text-shadow: 3px 3px 0 #000, -2px -2px 0 #000, 2px -2px 0 #000, -2px 2px 0 #000, 6px 7px 0 rgba(0,0,0,.65); }
.logo-type .l2 { display: inline-block; font-size: clamp(40px, 13vw, 80px);
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(3px 3px 0 #000) drop-shadow(-1px -1px 0 #000); }

.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
h1, h2, h3 { line-height: 1.15; }
.section-title { font-family: var(--display); text-transform: uppercase; font-weight: 400; letter-spacing: 0.5px;
  font-size: clamp(30px, 8vw, 44px); margin: 0 0 6px; }
.section-sub { color: var(--muted); margin: 0 0 20px; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; text-align: center; padding: 34px 0 30px; border-bottom: 1px solid var(--line); }
.hero::before {
  content: ""; position: absolute; inset: -30px; z-index: -1;
  background: url("../assets/img/banner-1280.webp") center / cover no-repeat;
  filter: blur(7px) saturate(1.3) brightness(0.42);
}
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, rgba(12,6,22,.15), rgba(12,6,22,.55) 70%, var(--bg));
}
.hero .tagline { font-family: var(--display); text-transform: uppercase; letter-spacing: 1.5px; font-size: clamp(16px, 4.6vw, 22px);
  margin: 14px 0 0; color: #fff; text-shadow: 2px 2px 0 #000; }
.hero .lede { max-width: 520px; margin: 10px auto 0; color: #e7dcf3; }
.hero-logo { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 16px; box-shadow: 0 0 0 2px rgba(255,255,255,.15), 0 10px 40px rgba(255, 46, 136, .35); }

/* ---------- Buttons ---------- */
.btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 20px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px;
  font-weight: 800; text-decoration: none; color: #fff; font-size: 15px;
  border: 0; cursor: pointer; transition: transform .12s ease, filter .12s ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.1); color: #fff; }
.btn svg { width: 20px; height: 20px; fill: currentColor; flex-shrink: 0; }
.btn-yt { background: #ff0033; }
.btn-ig { background: linear-gradient(45deg, #f9a03f, #e1306c 45%, #833ab4); }
.btn-ghost { background: rgba(255,255,255,.08); box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 14px; }
@media (max-width: 420px) { .hero .btns .btn, .follow .btns .btn { flex: 1 1 100%; } }

/* ---------- Countdown ---------- */
.countdown-box {
  margin: 26px auto 0; max-width: 520px; padding: 16px 14px 18px;
  background: rgba(20, 8, 38, 0.72); border: 1px solid rgba(255, 46, 136, 0.35); border-radius: var(--radius);
  box-shadow: 0 0 30px rgba(255, 46, 136, .15);
}
.countdown-label { margin: 0 0 10px; font-weight: 700; font-size: 13px; letter-spacing: 2px; text-transform: uppercase; color: var(--orange); }
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.countdown div { background: rgba(0,0,0,.35); border-radius: 10px; padding: 8px 2px; }
.countdown b { display: block; font-family: var(--display); font-weight: 400; font-size: clamp(30px, 9vw, 44px); line-height: 1.05;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.countdown small { color: var(--muted); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.countdown-note { margin: 10px 0 0; font-size: 12px; color: var(--muted); }
.launched { font-family: var(--display); text-transform: uppercase; font-size: clamp(34px, 11vw, 56px); line-height: 1; margin: 4px 0; }

/* ---------- Sections ---------- */
section.block { padding: 38px 0; }
section.block + section.block { border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.section-head .section-sub { margin: 0; }
.more-link { font-weight: 700; text-decoration: none; white-space: nowrap; }

/* ---------- Video cards ---------- */
.grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid.three { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
}
.thumb { position: relative; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb.placeholder {
  display: grid; place-items: center; text-align: center;
  background:
    linear-gradient(180deg, transparent 55%, rgba(255, 46, 136, .35)),
    repeating-linear-gradient(0deg, transparent 0 22px, rgba(45, 226, 230, .08) 22px 23px),
    linear-gradient(180deg, #2a0f4d, #12061f);
}
.thumb.placeholder .ph-title { font-family: var(--display); text-transform: uppercase; font-size: 26px; letter-spacing: 1px; padding: 0 16px; line-height: 1.05;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(2px 2px 0 #000); }
.tag {
  position: absolute; top: 10px; left: 10px; font-size: 11px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 9px; border-radius: 999px; background: var(--pink); color: #fff;
}
.tag.news { background: var(--cyan); color: #04121a; }
.tag.guide { background: var(--orange); color: #1b0a00; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card h3 { margin: 0; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.card .btns { justify-content: flex-start; margin-top: auto; padding-top: 6px; gap: 8px; }
.card .btn { flex: 1 1 auto; }
.soon { font-size: 13px; color: var(--muted); align-self: center; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.chip {
  border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text);
  font: 700 14px var(--body); padding: 9px 14px; border-radius: 999px; cursor: pointer; min-height: 40px;
}
.chip[aria-pressed="true"] { background: var(--grad-x); border-color: transparent; }

/* ---------- Facts ---------- */
.facts { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
@media (min-width: 640px) { .facts.cols { grid-template-columns: repeat(2, 1fr); } }
.fact {
  background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--pink);
  border-radius: var(--radius); padding: 14px 16px;
}
.fact[data-status="confirmed"] { border-left-color: #3ddc84; }
.fact[data-status="reported"] { border-left-color: var(--orange); }
.fact[data-status="rumor"] { border-left-color: var(--purple); }
.fact-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 4px; }
.fact h3 { margin: 0 0 4px; font-size: 18px; }
.fact p { margin: 0; color: var(--muted); font-size: 15px; }
.cat { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 1px; font-weight: 700; }
.badge { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 3px 8px; border-radius: 999px; }
.badge.confirmed { background: rgba(61, 220, 132, .16); color: #6ff0a6; }
.badge.reported { background: rgba(255, 168, 61, .16); color: #ffc278; }
.badge.rumor { background: rgba(181, 60, 255, .2); color: #d9a0ff; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin: 0 0 18px; padding: 0; list-style: none; }
.legend li { display: flex; gap: 6px; align-items: center; }
.updated { font-size: 13px; color: var(--muted); margin: 14px 0 0; }

/* ---------- Tool cards ---------- */
.tool {
  position: relative; display: block; text-decoration: none; color: var(--text);
  background: linear-gradient(135deg, rgba(255, 46, 136, .18), rgba(181, 60, 255, .14)), var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 18px;
}
.tool:hover { border-color: rgba(255, 46, 136, .5); color: var(--text); }
.tool .ico { font-size: 30px; line-height: 1; }
.tool h3 { margin: 10px 0 6px; font-size: 19px; }
.tool p { margin: 0; color: var(--muted); font-size: 15px; }
.pill { display: inline-block; margin-top: 12px; font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 999px; background: rgba(45, 226, 230, .14); color: var(--cyan); }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-top: 34px; padding-bottom: 6px; }
.page-head h1 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: clamp(38px, 11vw, 64px); margin: 8px 0 8px; letter-spacing: .5px; }
.page-head p { color: var(--muted); max-width: 640px; margin: 0; }

/* ---------- Follow CTA ---------- */
.follow { text-align: center; }
.follow .section-sub { max-width: 460px; margin-left: auto; margin-right: auto; }

/* ---------- Stub pages ---------- */
.stub { background: var(--card); border: 1px dashed rgba(255,255,255,.22); border-radius: var(--radius); padding: 20px; }
.stub h2 { margin-top: 0; font-size: 20px; }
.stub ul { padding-left: 20px; color: var(--muted); }
.stub li { margin: 6px 0; }
.mock { display: grid; gap: 10px; margin-top: 14px; opacity: .55; pointer-events: none; }
.mock .row { height: 44px; border-radius: 10px; background: rgba(255,255,255,.06); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; margin-top: 10px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: grid; gap: 14px; }
.foot-links { display: flex; gap: 10px; flex-wrap: wrap; }
.foot-links a { display: inline-flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-weight: 700;
  padding: 8px 12px; border-radius: 999px; background: rgba(255,255,255,.06); min-height: 40px; }
.foot-links a svg { width: 18px; height: 18px; fill: currentColor; }
.disclaimer { margin: 0; font-size: 13px; }
.disclaimer strong { color: var(--text); }

.noscript { background: var(--card); padding: 14px; border-radius: var(--radius); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* =====================================================================
   Shared bits for Vice Talk
   ===================================================================== */
.muted { color: var(--muted); }
.small { font-size: 13px; }
.btns.left { justify-content: flex-start; }
.btn-main { background: var(--grad-x); }
.btn-discord { background: #5865f2; }
.btn-google { background: #fff; color: #1f1f1f; }
.btn-google:hover { color: #1f1f1f; }
.linkish { background: none; border: 0; color: var(--cyan); font: inherit; font-weight: 700; cursor: pointer; padding: 6px 6px; min-height: 34px; }
.linkish:hover { color: #fff; }
.linkish.danger { color: #ff7b7b; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.panel-title { margin: 0 0 12px; font-size: 17px; }
.plain { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.hot-list li { display: flex; flex-direction: column; gap: 2px; font-size: 14px; }
.hot-list li a { font-weight: 700; color: var(--text); text-decoration: none; font-size: 15px; }
.hot-list li a:hover { color: var(--cyan); }
.hot-list + .btns { margin-top: 14px; }
.empty { text-align: center; padding: 30px 10px; color: var(--muted); }

/* Header theme switch */
.theme-btn { flex-shrink: 0; width: 38px; height: 38px; border-radius: 999px; border: 1px solid var(--line);
  background: rgba(255,255,255,.06); font-size: 17px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.theme-btn:hover { border-color: var(--pink); }
@media (max-width: 400px) { .site-header .wrap { gap: 6px; } .nav a { padding: 8px 7px; } }

/* Polls */
.poll-q { font-weight: 800; margin: 0 0 10px; font-size: 16px; }
.poll-opts { display: grid; gap: 8px; }
.poll-opt { position: relative; overflow: hidden; display: flex; justify-content: space-between; align-items: center; gap: 8px; width: 100%;
  min-height: 46px; padding: 10px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.05);
  color: var(--text); font: 700 15px var(--body); cursor: pointer; text-align: left; }
.poll-opt:hover { border-color: var(--pink); }
.poll-opt .bar { position: absolute; inset: 0 auto 0 0; background: linear-gradient(90deg, rgba(255,46,136,.38), rgba(181,60,255,.3)); transition: width .5s ease; }
.poll-opt .lbl, .poll-opt .pct { position: relative; }
.poll-opt.mine { border-color: var(--cyan); }
.poll-opt.mine .lbl::after { content: " \2713"; color: var(--cyan); }
.poll-meta { font-size: 13px; color: var(--muted); margin: 10px 0 0; }

/* Community layout */
section.block.talk { padding-top: 14px; }
.demo-banner { background: rgba(255,168,61,.12); border: 1px solid rgba(255,168,61,.4); color: #ffd7a3; border-radius: var(--radius);
  padding: 8px 14px; font-size: 14px; margin: 0 0 12px; }
.authbar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: space-between; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 8px 8px 14px; margin-bottom: 16px; font-size: 14px; }
.authbar > span { margin-right: auto; }
.talk-layout { display: grid; gap: 16px; grid-template-areas: "trend" "feed" "side"; }
.trend-panel { grid-area: trend; }
.feed-col { grid-area: feed; min-width: 0; }
.side { grid-area: side; display: grid; gap: 16px; align-content: start; }
@media (min-width: 900px) {
  .talk-layout { grid-template-columns: minmax(0, 1fr) 320px; grid-template-areas: "feed trend" "feed side"; align-items: start; }
}
.trends { display: flex; flex-wrap: wrap; gap: 8px; }
.trend { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; border-radius: 999px; background: rgba(255,255,255,.06);
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; }
.trend:hover { background: rgba(255,46,136,.2); color: #fff; }
.trend span { color: var(--orange); font-size: 12px; }
.sortbar { display: flex; gap: 6px; margin-bottom: 12px; }
.sortbar button { flex: 1; min-height: 42px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04);
  color: var(--muted); font: 800 14px var(--body); cursor: pointer; }
.sortbar button[aria-pressed="true"] { color: #fff; background: var(--card-2); border-color: var(--pink); }
.sortbar.small button { flex: 0 0 auto; padding: 0 14px; min-height: 36px; }
.talk .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; margin-bottom: 12px; }
.talk .filters::-webkit-scrollbar { display: none; }
.chip { white-space: nowrap; }
.active-tag { margin: 0 0 10px; font-size: 14px; }

/* Thread rows */
.feed { display: grid; gap: 10px; }
.thread-row { display: flex; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px 12px 6px; }
.thread-row:hover { border-color: rgba(255,46,136,.45); }
.thread-main { min-width: 0; flex: 1; }
.thread-row h3 { margin: 2px 0 4px; font-size: 17px; line-height: 1.3; }
.thread-row h3 a { color: var(--text); text-decoration: none; }
.thread-row h3 a:hover { color: var(--cyan); }
.preview { margin: 0 0 6px; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.preview.blurred { filter: blur(5px); user-select: none; }
.thread-meta { font-size: 13px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.thread-meta a { color: var(--muted); text-decoration: none; }
.thread-flags { display: flex; gap: 8px; flex-wrap: wrap; }
.flag { font-size: 11px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; color: var(--muted); }
.flag.pin { color: var(--orange); }
.flag.spoil { color: #ff7b7b; }
.flag.cat { color: var(--cyan); }
.tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.tagchip { font-size: 12px; font-weight: 700; color: var(--cyan); text-decoration: none; background: rgba(45,226,230,.1); padding: 3px 9px; border-radius: 999px; }
.is-hidden { opacity: .5; }

/* Votes + names */
.vote { display: flex; flex-direction: column; align-items: center; min-width: 38px; }
.vote button { background: none; border: 0; color: var(--muted); font-size: 15px; cursor: pointer; width: 36px; height: 30px; border-radius: 8px; }
.vote button:hover { background: rgba(255,255,255,.08); color: #fff; }
.vote .up.on { color: var(--orange); }
.vote .down.on { color: var(--purple); }
.vote b { font-size: 14px; }
.who { font-weight: 700; color: var(--text); }
.who.muted { color: var(--muted); }
.team, .mod-badge { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px;
  padding: 2px 7px; border-radius: 999px; margin-left: 6px; vertical-align: 1px; }
.team.jason { background: rgba(45,226,230,.16); color: var(--cyan); }
.team.lucia { background: rgba(255,46,136,.2); color: #ff8cbf; }
.mod-badge { background: var(--orange); color: #1b0a00; }
.spoiler { background: #000; color: transparent; border-radius: 4px; padding: 0 4px; cursor: pointer; }
.spoiler.open { background: rgba(255,255,255,.1); color: inherit; cursor: auto; }

/* Thread page */
.thread-wrap { padding-top: 18px; padding-bottom: 30px; max-width: 820px; }
.back { display: inline-block; margin-bottom: 12px; font-weight: 700; text-decoration: none; }
.post { display: flex; gap: 8px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 14px 12px 6px; }
.post-main { flex: 1; min-width: 0; }
.post h1 { font-size: clamp(22px, 6vw, 30px); margin: 4px 0 6px; }
.post-body { margin-top: 12px; overflow-wrap: anywhere; }
.post-body p { margin: 0 0 10px; }
.spoiler-gate:not(.open) .pb { filter: blur(7px); user-select: none; }
.spoiler-gate .reveal { margin-top: 10px; }
.post .btns { margin-top: 12px; }
.actions { display: flex; gap: 4px; flex-wrap: wrap; margin-top: 12px; border-top: 1px solid var(--line); padding-top: 6px; }
.discussion { margin-top: 22px; }
.discussion-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.discussion-head h2 { font-size: 20px; margin: 0; }
.composer { display: grid; gap: 8px; margin: 12px 0; }
.composer textarea, .dlg input, .dlg select, .dlg textarea {
  width: 100%; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 10px; color: var(--text); font: 16px var(--body); padding: 10px 12px; }
.composer textarea:focus, .dlg input:focus, .dlg select:focus, .dlg textarea:focus { outline: none; border-color: var(--pink); }
.composer-row { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.composer-row .muted { margin-right: auto; }
.composer.signed-out { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--card);
  border: 1px dashed rgba(255,255,255,.2); border-radius: var(--radius); padding: 12px 14px; }
.comments { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 10px; }
.comment { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.replies { list-style: none; margin: 8px 0 0; padding: 0 0 0 12px; border-left: 2px solid rgba(255,46,136,.3); display: grid; gap: 8px; }
.replies .comment { background: transparent; border: 0; padding: 4px 0 4px 2px; }
.c-head { font-size: 13px; }
.c-body { margin: 6px 0 2px; overflow-wrap: anywhere; font-size: 15px; }
.c-actions { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.c-actions .vote { flex-direction: row; min-width: 0; }
.c-actions .vote button { width: 30px; }
.c-actions .linkish { font-size: 13px; }

/* Dialogs + toast */
.dlg { border: 0; padding: 0; background: transparent; color: var(--text); width: min(520px, calc(100% - 24px)); max-height: calc(100% - 24px); }
.dlg::backdrop { background: rgba(5,0,15,.72); backdrop-filter: blur(3px); }
.dlg-body { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 22px 18px 18px; display: grid; gap: 12px; }
.dlg h2 { margin: 0; font-size: 22px; padding-right: 30px; }
.dlg p { margin: 0; }
.dlg label { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.dlg label.check { display: flex; align-items: center; gap: 8px; }
.dlg label.check input, .teams input { width: auto; }
.x { position: absolute; top: 8px; right: 8px; background: none; border: 0; color: var(--muted); font-size: 26px; cursor: pointer; width: 40px; height: 40px; }
.stack { display: grid; gap: 8px; }
.err { color: #ff8a8a; font-size: 14px; }
.err:empty { display: none; }
.ok { color: #6ff0a6; }
.fine { font-size: 12px; color: var(--muted); }
.teams { border: 0; padding: 0; margin: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.teams legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; padding: 0; }
.teams label { display: flex; align-items: center; gap: 6px; font-weight: 600; background: rgba(255,255,255,.05); padding: 8px 10px; border-radius: 10px; cursor: pointer; }
.teams .team { margin-left: 0; }
.rules { padding-left: 20px; margin: 0; color: var(--muted); font-size: 14px; display: grid; gap: 6px; }
.mod-panel { border-color: var(--orange); }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 40px); opacity: 0; background: #111; color: #fff; border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px; font-weight: 700; z-index: 100; transition: .25s ease; pointer-events: none; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.bad { background: #5a0f1e; }

/* =====================================================================
   RETRO THEME: 1980s Vice City (sunset, neon script, aqua + hot pink)
   Switched on by the palm-tree button; stored as data-theme="retro" on <html>.
   ===================================================================== */
[data-theme="retro"] {
  --bg: #16123a;
  --bg-2: #1e1850;
  --card: #221b57;
  --card-2: #2c2268;
  --line: rgba(79, 240, 224, 0.2);
  --text: #fff4fb;
  --muted: #c5bde8;
  --pink: #ff5fb8;
  --orange: #ffbe5c;
  --purple: #a77bff;
  --cyan: #4ff0e0;
  --grad: linear-gradient(180deg, #ffe27a 0%, #ff8a5c 40%, #ff5fb8 75%, #b06bff 100%);
  --grad-x: linear-gradient(90deg, #ff5fb8, #ff8a5c);
  --display: "Righteous", "Trebuchet MS", sans-serif;
  --radius: 6px;
}
[data-theme="retro"] body {
  background-color: var(--bg);
  background-image:
    linear-gradient(180deg, rgba(255, 95, 184, .16) 0%, transparent 35%),
    repeating-linear-gradient(90deg, rgba(79, 240, 224, .035) 0 1px, transparent 1px 48px),
    repeating-linear-gradient(0deg, rgba(79, 240, 224, .035) 0 1px, transparent 1px 48px);
}
[data-theme="retro"] .site-header { background: rgba(22, 18, 58, .9); border-bottom: 2px solid var(--pink); box-shadow: 0 2px 18px rgba(255, 95, 184, .35); }
[data-theme="retro"] .brand span { font-family: "Righteous", sans-serif; }
[data-theme="retro"] .brand span b { background: none; color: var(--pink); font-family: "Yellowtail", cursive; text-transform: none; font-size: 24px;
  text-shadow: 0 0 8px rgba(255, 95, 184, .8); }
/* Neon script for every highlighted word */
[data-theme="retro"] .grad-text {
  background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--pink);
  font-family: "Yellowtail", cursive; text-transform: none; letter-spacing: 0; font-weight: 400;
  text-shadow: 0 0 6px rgba(255, 95, 184, .9), 0 0 22px rgba(255, 95, 184, .55);
  padding: 0 .08em; display: inline-block; transform: rotate(-4deg);
}
[data-theme="retro"] .section-title, [data-theme="retro"] .page-head h1 { letter-spacing: 1px; color: var(--cyan);
  text-shadow: 0 0 10px rgba(79, 240, 224, .45); }
[data-theme="retro"] .stars { color: var(--pink); text-shadow: 0 0 8px rgba(255, 95, 184, .9); }
/* Hero: striped sunset sky + neon grid floor instead of the blurred banner */
[data-theme="retro"] .hero { border-bottom: 2px solid var(--cyan); }
[data-theme="retro"] .hero::before {
  inset: 0; filter: none;
  background: linear-gradient(180deg, #1a1450 0%, #4a1f78 38%, #c2397f 64%, #ff8a5c 76%, #16123a 76.2%);
}
[data-theme="retro"] .hero::after {
  inset: auto 0 0 0; height: 24%;
  background:
    linear-gradient(180deg, var(--bg) 0%, transparent 30%),
    repeating-linear-gradient(90deg, rgba(79, 240, 224, .55) 0 2px, transparent 2px 60px),
    repeating-linear-gradient(0deg, rgba(79, 240, 224, .55) 0 2px, transparent 2px 26px), #16123a;
  transform: perspective(240px) rotateX(55deg); transform-origin: top;
}
[data-theme="retro"] .hero .wrap { position: relative; }
[data-theme="retro"] .hero .wrap::before {
  content: ""; position: absolute; z-index: -1; left: 50%; top: 40px; width: min(340px, 78vw); aspect-ratio: 1; transform: translateX(-50%);
  border-radius: 50%; background: linear-gradient(180deg, #ffe27a 0%, #ff8a5c 50%, #ff5fb8 100%);
  -webkit-mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px); mask: repeating-linear-gradient(180deg, #000 0 14px, transparent 14px 20px);
  opacity: .55; filter: drop-shadow(0 0 30px rgba(255, 95, 184, .8));
}
[data-theme="retro"] .logo-type .l1 { font-family: "Righteous", sans-serif; color: transparent; -webkit-text-stroke: 3px var(--cyan); letter-spacing: 4px;
  text-shadow: 0 0 18px rgba(79, 240, 224, .7); font-size: clamp(58px, 19vw, 120px); }
[data-theme="retro"] .logo-type .l2 { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--pink); filter: none;
  font-family: "Yellowtail", cursive; text-transform: none; font-size: clamp(56px, 17vw, 104px); transform: rotate(-6deg); margin-top: -.18em;
  text-shadow: 0 0 6px #fff, 0 0 14px var(--pink), 0 0 34px var(--pink); }
[data-theme="retro"] .hero .tagline { font-family: "Righteous", sans-serif; color: #fff; text-shadow: 0 0 10px rgba(255, 95, 184, .9); }
[data-theme="retro"] .countdown-box { background: rgba(22, 18, 58, .85); border: 2px solid var(--cyan); box-shadow: 0 0 22px rgba(79, 240, 224, .35), inset 0 0 22px rgba(79, 240, 224, .12); }
[data-theme="retro"] .countdown-label { color: var(--pink); }
[data-theme="retro"] .countdown b { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: var(--cyan);
  font-family: "Righteous", sans-serif; text-shadow: 0 0 10px rgba(79, 240, 224, .8); }
[data-theme="retro"] .countdown div { border: 1px solid rgba(79, 240, 224, .25); }
[data-theme="retro"] .launched { color: var(--pink); }
/* Art-deco cards: square corners, double neon edge */
[data-theme="retro"] .card, [data-theme="retro"] .panel, [data-theme="retro"] .tool, [data-theme="retro"] .thread-row,
[data-theme="retro"] .post, [data-theme="retro"] .comments > .comment, [data-theme="retro"] .authbar, [data-theme="retro"] .fact {
  border-color: rgba(79, 240, 224, .35); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px rgba(255, 95, 184, .35);
}
[data-theme="retro"] .fact[data-status="confirmed"] { border-left-color: #3ddc84; }
[data-theme="retro"] .fact[data-status="reported"] { border-left-color: var(--orange); }
[data-theme="retro"] .fact[data-status="rumor"] { border-left-color: var(--purple); }
[data-theme="retro"] .thumb.placeholder { background: linear-gradient(180deg, #4a1f78, #c2397f 70%, #ff8a5c); }
[data-theme="retro"] .thumb.placeholder .ph-title { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #fff;
  font-family: "Righteous", sans-serif; text-shadow: 0 0 10px rgba(255, 95, 184, 1); filter: none; }
[data-theme="retro"] .tag { border-radius: 3px; }
[data-theme="retro"] .btn { border-radius: 4px; text-transform: uppercase; letter-spacing: 1px; font-family: "Righteous", sans-serif; font-weight: 400; }
[data-theme="retro"] .btn-main { background: var(--pink); box-shadow: 0 0 16px rgba(255, 95, 184, .6); }
[data-theme="retro"] .chip[aria-pressed="true"], [data-theme="retro"] .sortbar button[aria-pressed="true"] { background: var(--pink); border-color: var(--pink); color: #fff; }
[data-theme="retro"] .chip, [data-theme="retro"] .sortbar button, [data-theme="retro"] .poll-opt, [data-theme="retro"] .trend { border-radius: 4px; }
[data-theme="retro"] .poll-opt .bar { background: linear-gradient(90deg, rgba(79, 240, 224, .35), rgba(255, 95, 184, .35)); }
[data-theme="retro"] .site-footer { border-top: 2px solid var(--pink); }
[data-theme="retro"] .theme-btn { border-color: var(--cyan); box-shadow: 0 0 10px rgba(79, 240, 224, .4); }
@media (max-width: 899px) { .trends { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; } .trends::-webkit-scrollbar { display: none; } .trend { white-space: nowrap; } }

/* =====================================================================
   Vice Talk app shell (community.html): tabs, social post cards
   ===================================================================== */
body { overflow-x: clip; }
.vt-top { padding-top: 16px; }
.vt-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.vt-title h1 { font-family: var(--display); text-transform: uppercase; font-weight: 400; font-size: clamp(34px, 9vw, 46px); margin: 0; letter-spacing: .5px; }
.vt-me .avatar { width: 40px; height: 40px; }
.me-link { display: block; border-radius: 50%; }
.vt-body { max-width: 680px; padding-bottom: 104px; }
.vt-h { font-size: 18px; margin: 24px 0 10px; }
.vt-view > .vt-h:first-child { margin-top: 6px; }

/* Bottom tab bar (phones) */
.vt-tabs {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: end;
  background: rgba(12, 6, 22, .94); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); padding: 4px 4px calc(6px + env(safe-area-inset-bottom));
}
.vt-tabs a { display: flex; flex-direction: column; align-items: center; gap: 2px; min-height: 52px; justify-content: center;
  color: var(--muted); text-decoration: none; font-size: 11px; border-radius: 12px; position: relative; }
.vt-tabs a span { font-size: 21px; line-height: 1; filter: grayscale(.6); }
.vt-tabs a b { font-weight: 700; }
.vt-tabs a[aria-current] { color: #fff; }
.vt-tabs a[aria-current] span { filter: none; }
.vt-tabs a[aria-current]::before { content: ""; position: absolute; top: -5px; width: 26px; height: 3px; border-radius: 3px; background: var(--grad-x); }
.vt-post-btn { justify-self: center; width: 54px; height: 54px; margin: -20px 0 2px; border-radius: 50%; border: 3px solid var(--bg);
  background: var(--grad-x); color: #fff; font-size: 28px; font-weight: 800; cursor: pointer; box-shadow: 0 6px 22px rgba(255, 46, 136, .5); }
.vt-post-btn:hover { filter: brightness(1.1); }
body:has(.vt-tabs) .site-footer { padding-bottom: 110px; }
/* Tabs move to a sticky top bar on bigger screens */
@media (min-width: 900px) {
  .vt-tabs { position: sticky; top: 58px; bottom: auto; display: flex; justify-content: center; gap: 6px;
    border-top: 0; border-bottom: 1px solid var(--line); padding: 8px; }
  .vt-tabs a { flex-direction: row; gap: 8px; min-height: 42px; padding: 0 18px; font-size: 15px; border-radius: 999px; }
  .vt-tabs a span { font-size: 18px; }
  .vt-tabs a[aria-current] { background: rgba(255, 255, 255, .08); }
  .vt-tabs a[aria-current]::before { display: none; }
  .vt-post-btn { order: 9; width: auto; height: 42px; margin: 0 0 0 8px; padding: 0 20px; border-radius: 999px; border: 0; font-size: 15px; box-shadow: none; }
  .vt-post-btn span::after { content: " New post"; }
  .vt-body { padding-bottom: 40px; padding-top: 10px; }
  body:has(.vt-tabs) .site-footer { padding-bottom: 40px; }
}

/* "What's your theory?" prompt */
.vt-composer-prompt { display: flex; align-items: center; gap: 12px; width: 100%; margin: 6px 0 14px; padding: 10px 12px; cursor: pointer;
  background: var(--card); border: 1px solid var(--line); border-radius: 999px; color: var(--muted); font: 15px var(--body); text-align: left; }
.vt-composer-prompt:hover { border-color: var(--pink); color: var(--text); }
.sortbar.pills button { border-radius: 999px; min-height: 38px; }
.vt-view .filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -18px 12px; padding: 0 18px 2px; }
.vt-view .filters::-webkit-scrollbar { display: none; }

/* Avatars */
.avatar { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; overflow: hidden;
  color: #fff; font-weight: 800; font-size: 17px; background: linear-gradient(135deg, var(--purple), var(--orange)); }
.avatar.t-jason { background: linear-gradient(135deg, #2de2e6, #3a6bff); }
.avatar.t-lucia { background: linear-gradient(135deg, #ff2e88, #b53cff); }
.avatar.sage { background: #000; box-shadow: 0 0 0 2px var(--pink); }
.avatar.sage img { width: 100%; height: 100%; object-fit: cover; }
.avatar.big { width: 64px; height: 64px; font-size: 28px; }

/* Social post card */
.post-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 14px 14px 6px; }
.post-card:hover { border-color: rgba(255, 46, 136, .35); }
.pc-head { display: flex; align-items: center; gap: 10px; }
.pc-who { flex: 1; min-width: 0; font-size: 15px; line-height: 1.3; }
.pc-sub { font-size: 13px; color: var(--muted); }
.pc-flags { display: flex; gap: 6px; }
.pc-link { display: block; color: var(--text); text-decoration: none; }
.pc-link:hover { color: var(--text); }
.pc-link h3 { margin: 10px 0 4px; font-size: 18px; line-height: 1.3; }
.pc-text { margin: 0; color: var(--muted); font-size: 15px; overflow-wrap: anywhere; }
.pc-text.blurred { filter: blur(5px); user-select: none; }
.pc-text .more { color: var(--cyan); font-weight: 700; }
.post-card .tags { margin-top: 10px; }
.pc-actions { display: flex; align-items: center; gap: 2px; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 4px; }
.vote.row { flex-direction: row; min-width: 0; }
.vote.row button { width: 32px; height: 36px; }
.vote.row b { min-width: 18px; text-align: center; }
.pc-btn { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; color: var(--muted); font: 700 14px var(--body);
  padding: 8px 12px; border-radius: 999px; min-height: 38px; text-decoration: none; cursor: pointer; }
.pc-btn:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.post-card.compact .pc-link h3 { font-size: 16px; }

/* Trending list */
.trend-list { list-style: none; margin: 0; padding: 0; background: var(--card); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.trend-list li + li { border-top: 1px solid var(--line); }
.trend-list li.muted { padding: 14px; }
.trend-link { display: flex; align-items: center; gap: 14px; padding: 12px 16px; color: var(--text); text-decoration: none; }
.trend-link:hover { background: rgba(255, 255, 255, .05); color: var(--text); }
.trend-link .rank { font-family: var(--display); font-size: 22px; width: 26px; text-align: center; color: var(--orange); }
.trend-link .t { display: flex; flex-direction: column; }
.trend-link small { color: var(--muted); }
.trend-link .go { margin-left: auto; color: var(--muted); font-size: 22px; }
.feed.compact { gap: 8px; }
.poll-stack { display: grid; gap: 14px; }

/* Profile */
.profile-row { display: flex; align-items: center; gap: 14px; }
.profile-name { font-size: 19px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); text-align: center; margin: 16px 0 12px; padding: 12px 0; border-block: 1px solid var(--line); }
.stats b { display: block; font-family: var(--display); font-weight: 400; font-size: 26px; }
.stats small { color: var(--muted); }
.profile-empty { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 10px 0; }
.profile-empty h2 { margin: 6px 0 0; }
.profile-empty p { margin: 0 0 6px; }
.vt-view .panel + .panel, .vt-view .feed + .panel { margin-top: 16px; }

/* Composer as a bottom sheet on phones */
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 640px) {
  .dlg.sheet { margin: auto 0 0; width: 100%; max-width: 100%; max-height: 92%; }
  .dlg.sheet .dlg-body { border-radius: 22px 22px 0 0; padding-bottom: calc(18px + env(safe-area-inset-bottom)); }
}

/* Thread page: avatars in the post and comments */
.c-head { display: flex; align-items: center; gap: 8px; }
.c-head .avatar { width: 28px; height: 28px; font-size: 13px; }
.discussion { scroll-margin-top: 70px; }

/* Retro theme for the app shell */
[data-theme="retro"] .vt-tabs { background: rgba(22, 18, 58, .95); border-top: 2px solid var(--pink); }
[data-theme="retro"] .vt-post-btn { background: var(--pink); border-radius: 8px; box-shadow: 0 0 18px rgba(255, 95, 184, .8); }
[data-theme="retro"] .post-card, [data-theme="retro"] .trend-list, [data-theme="retro"] .vt-composer-prompt {
  border-radius: 6px; border-color: rgba(79, 240, 224, .35); box-shadow: 0 0 0 3px var(--bg), 0 0 0 4px rgba(255, 95, 184, .35); }
[data-theme="retro"] .vt-title h1 { color: var(--cyan); text-shadow: 0 0 10px rgba(79, 240, 224, .45); }
[data-theme="retro"] .trend-link .rank { color: var(--pink); text-shadow: 0 0 8px rgba(255, 95, 184, .8); }
@media (min-width: 900px) { [data-theme="retro"] .vt-tabs { border-top: 0; border-bottom: 2px solid var(--pink); } [data-theme="retro"] .vt-post-btn { border-radius: 4px; } }

/* =====================================================================
   v1.1: in-site player, swipe row, countdown actions, install button
   ===================================================================== */
/* Thumbnails that play the Short in the site */
a.thumb { display: block; color: #fff; }
.thumb .play { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; border-radius: 50%;
  background: rgba(0, 0, 0, .55); border: 2px solid rgba(255, 255, 255, .85); backdrop-filter: blur(4px);
  transition: transform .15s ease, background .15s ease; }
.thumb .play::after { content: ""; position: absolute; left: 22px; top: 17px; border-style: solid;
  border-width: 11px 0 11px 18px; border-color: transparent transparent transparent #fff; }
a.thumb:hover .play, a.thumb:focus-visible .play { transform: scale(1.08); background: var(--pink); border-color: var(--pink); }

/* Player dialog: a phone-shaped 9:16 frame */
.dlg.player { width: min(400px, calc(100% - 20px)); }
.player-body { position: relative; background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 44px 12px 14px; }
.player-body .x { top: 4px; right: 4px; }
.player-frame { aspect-ratio: 9 / 16; max-height: 68vh; margin: 0 auto; border-radius: 12px; overflow: hidden; background: #000; }
.player-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.player-title { margin: 12px 4px 0; font-size: 17px; line-height: 1.3; }
.player-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.player-actions .btn { flex: 1 1 auto; }

/* Home "Hot theories": swipe sideways on phones, like stories */
@media (max-width: 639px) {
  .grid.three[data-videos="featured"] {
    grid-auto-flow: column; grid-template-columns: none; grid-auto-columns: 84%;
    overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -18px; padding: 2px 18px 6px; scroll-padding: 0 18px;
  }
  .grid.three[data-videos="featured"]::-webkit-scrollbar { display: none; }
  .grid.three[data-videos="featured"] > .card { scroll-snap-align: start; }
  .grid.three[data-videos="featured"] .card p { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
}
.swipe-hint { display: none; margin: 8px 0 0; font-size: 13px; color: var(--muted); text-align: center; }
@media (max-width: 639px) { .swipe-hint { display: block; } }

/* Countdown buttons */
.countdown-actions { display: flex; gap: 8px; margin-top: 14px; }
.countdown-actions .btn { flex: 1 1 0; padding-inline: 8px; white-space: nowrap; }

/* "Get the app" shows only when the browser says the site can be installed */
html:not(.can-install) [data-install] { display: none !important; }
.foot-install { display: inline-flex; align-items: center; gap: 6px; color: var(--text); font: 700 15px var(--body); cursor: pointer;
  background: var(--grad-x); border: 0; border-radius: 999px; padding: 8px 14px; }

/* Retro theme versions */
[data-theme="retro"] .thumb .play { border-radius: 6px; border-color: var(--cyan); box-shadow: 0 0 14px rgba(79, 240, 224, .6); }
[data-theme="retro"] a.thumb:hover .play { background: var(--pink); }
[data-theme="retro"] .player-body { border: 2px solid var(--cyan); border-radius: 6px; box-shadow: 0 0 24px rgba(79, 240, 224, .3); }
[data-theme="retro"] .foot-install { background: var(--pink); border-radius: 6px; }

/* =====================================================================
   Icon set (js/app.js sprite) + design polish pass
   ===================================================================== */
.i { width: 1.15em; height: 1.15em; flex-shrink: 0; vertical-align: -.2em; fill: none; stroke: currentColor;
  stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn .i, .pc-btn .i, .sortbar .i { width: 18px; height: 18px; }
.vt-h, .panel-title { display: flex; align-items: center; gap: 8px; }
.vt-h .i, .panel-title .i { color: var(--pink); width: 20px; height: 20px; }

/* Header theme button */
.theme-btn { display: grid; place-items: center; color: var(--text); }
.theme-btn .i { width: 20px; height: 20px; }

/* Tab bar: crisp icons, pink when active */
.vt-tabs a .i { width: 24px; height: 24px; }
.vt-tabs a[aria-current] .i { color: var(--pink); }
.vt-post-btn span { display: inline-flex; align-items: center; gap: 6px; }
.vt-post-btn .i { width: 26px; height: 26px; stroke-width: 2.6; }
@media (min-width: 900px) { .vt-post-btn .i { width: 18px; height: 18px; } .vt-tabs a .i { width: 19px; height: 19px; } }

/* Sort pills: icon + label on one line */
.sortbar button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* Votes */
.vote button { display: grid; place-items: center; }
.vote button .i { width: 18px; height: 18px; stroke-width: 2.4; }
.vote .up.on { color: var(--pink); }
.vote .down.on { color: var(--cyan); }
.flag.pin .i { width: 14px; height: 14px; }

/* Anonymous avatar shows a person icon instead of "?" */
.avatar.anon { background: rgba(255, 255, 255, .1); color: var(--muted); }
.avatar.anon .i { width: 55%; height: 55%; }

/* Poll: the check is now an icon */
.poll-opt.mine .lbl::after { content: none; }
.poll-opt .lbl { display: inline-flex; align-items: center; gap: 6px; }
.poll-opt.mine .lbl .i { color: var(--cyan); stroke-width: 3; }

/* Tool cards: neon icon tiles instead of emoji */
.tool .ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; color: #fff;
  background: var(--grad-x); box-shadow: 0 6px 20px rgba(255, 46, 136, .3); }
.tool .ico .i { width: 28px; height: 28px; }

/* Instagram-only video poster */
a.thumb.placeholder { text-decoration: none; }
.thumb.placeholder { display: grid; place-items: center; align-content: center; gap: 10px; }
.thumb.placeholder .ph-logo { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 3px rgba(255, 255, 255, .15), 0 8px 28px rgba(0, 0, 0, .5); }
.thumb.placeholder .ph-cta { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; font-size: 14px; color: #fff;
  padding: 6px 12px; border-radius: 999px; background: linear-gradient(45deg, #f9a03f, #e1306c 45%, #833ab4); }
.thumb.placeholder .ph-cta svg { width: 16px; height: 16px; fill: currentColor; }
a.thumb.placeholder:hover .ph-cta { filter: brightness(1.1); }

/* Comment counts and inline icons in lists */
.hot-list .muted .i, .pc-sub .i { width: 14px; height: 14px; }

/* Retro theme */
[data-theme="retro"] .tool .ico { background: var(--pink); border-radius: 6px; box-shadow: 0 0 16px rgba(255, 95, 184, .6); }
[data-theme="retro"] .vt-h .i, [data-theme="retro"] .panel-title .i { color: var(--cyan); }
[data-theme="retro"] .vt-tabs a[aria-current] .i { color: var(--cyan); filter: drop-shadow(0 0 6px rgba(79, 240, 224, .7)); }
[data-theme="retro"] .thumb.placeholder .ph-logo { border-radius: 8px; }

/* Toasts sit above the bottom tab bar, on one line where they fit */
#toast { width: max-content; max-width: calc(100% - 32px); text-align: center; }
@media (max-width: 899px) { body:has(.vt-tabs) #toast { bottom: calc(92px + env(safe-area-inset-bottom)); } }
/* Watch buttons on a video post sit side by side */
.post .btns .btn { flex: 1 1 auto; }

/* =====================================================================
   Styled pickers and pop-ups (no browser dropdowns or alert boxes)
   ===================================================================== */
/* Chip picker: radio buttons that look like the filter chips */
.pick-field { border: 0; margin: 0; padding: 0; min-width: 0; }
.pick-field legend { font-weight: 700; font-size: 14px; padding: 0; margin-bottom: 8px; }
.chip-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-pick .chip { position: relative; cursor: pointer; }
.chip-pick .chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip-pick .chip:has(input:checked) { background: var(--grad-x); border-color: transparent; color: #fff; }
.chip-pick .chip:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.dlg label.chip { display: inline-flex; font-weight: 700; font-size: 14px; }

/* Pop-up buttons and fields */
.modal-btns { display: flex; gap: 10px; margin-top: 4px; }
.modal-btns .btn { flex: 1 1 0; }
.btn-danger { background: #e0244d; }
.field { width: 100%; background: rgba(0,0,0,.3); border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  font: 15px var(--body); padding: 11px 12px; min-height: 44px; }
.field:focus { outline: none; border-color: var(--pink); }
.sov-modal .dlg-body { gap: 14px; }

[data-theme="retro"] .chip-pick .chip:has(input:checked) { background: var(--pink); }
[data-theme="retro"] .btn-danger { border-radius: 4px; }
/* Team picker colours */
.team-pick .chip.t-jason:has(input:checked) { background: linear-gradient(135deg, #2de2e6, #3a6bff); color: #04121a; }
.team-pick .chip.t-lucia:has(input:checked) { background: linear-gradient(135deg, #ff2e88, #b53cff); }
/* Checkboxes become on/off switches */
input[type="checkbox"] { appearance: none; -webkit-appearance: none; flex-shrink: 0; position: relative; cursor: pointer;
  width: 44px !important; height: 26px; padding: 0 !important; margin: 0; border-radius: 999px !important;
  background: rgba(255, 255, 255, .14) !important; border: 1px solid var(--line) !important; transition: background .2s ease; }
input[type="checkbox"]::before { content: ""; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; transition: transform .2s ease; }
input[type="checkbox"]:checked { background: var(--grad-x) !important; border-color: transparent !important; }
input[type="checkbox"]:checked::before { transform: translateX(18px); }
input[type="checkbox"]:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
.dlg label.check { gap: 12px; font-weight: 700; cursor: pointer; }
[data-theme="retro"] input[type="checkbox"]:checked { background: var(--pink) !important; }
/* Character counters sit at the right end of the field name */
.dlg label:has(> [data-counter]) { grid-template-columns: 1fr auto; align-items: baseline; }
.dlg label:has(> [data-counter]) > input, .dlg label:has(> [data-counter]) > textarea { grid-column: 1 / -1; }
[data-counter] { font-weight: 500; }
