:root {
  --bg: #0E1B39; --card: #172649; --line: #2A3B63; --text: #FCF3DD; --muted: #A3ACC2;
  --accent: #E2602C; --accent-text: #fff; --radius: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: inherit; }
button, input, textarea { font: inherit; color: inherit; }
.top { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top)); background: rgba(14,27,57,.92);
  backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.brand { text-decoration: none; display: flex; align-items: center; }
.brand { gap: 10px; }
.brand img { display: block; width: auto; }
.brand .badge { height: 38px; }
.brand .wordmark { height: 24px; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--accent); }
nav { display: flex; gap: 14px; font-size: 15px; }
nav a { text-decoration: none; color: var(--muted); }
nav a.on { color: var(--text); }
main { max-width: 560px; margin: 0 auto; padding: 16px 16px 64px; }
.muted { color: var(--muted); }
.center { text-align: center; }
.small { font-size: 13px; }
.err { color: #ff8f7a; }
h1 { font-size: 28px; letter-spacing: -.5px; margin: 24px 0 8px; }
h2 { font-size: 18px; margin: 24px 0 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 0; border-radius: 999px;
  padding: 10px 18px; background: var(--accent); color: var(--accent-text); font-weight: 600; cursor: pointer; text-decoration: none; }
.btn.ghost { background: transparent; border: 1px solid var(--line); color: var(--text); }
.btn:disabled { opacity: .5; }
input[type=text], textarea { width: 100%; background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 10px 12px; outline: none; }
input[type=text]:focus, textarea:focus { border-color: var(--accent); }
.row { display: flex; gap: 8px; align-items: center; }
.row > input { flex: 1; min-width: 0; }

.card { background: var(--card); border-radius: var(--radius); overflow: hidden; margin-bottom: 18px; border: 1px solid var(--line); }
.card .who { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #333; display: grid; place-items: center;
  font-weight: 700; font-size: 14px; flex: none; }
.who .place { font-weight: 650; }
.who .meta { font-size: 13px; color: var(--muted); }
.poster { position: relative; display: block; aspect-ratio: 3 / 4; background: #000; }
.poster img { width: 100%; height: 100%; object-fit: cover; display: block; }
.poster .play { position: absolute; left: 12px; bottom: 12px; background: rgba(0,0,0,.55); border-radius: 999px;
  padding: 4px 10px; font-size: 13px; font-weight: 600; }
.card .body { padding: 10px 14px 14px; }
.actions { display: flex; gap: 16px; align-items: center; }
.like { background: none; border: 0; padding: 0; cursor: pointer; display: flex; align-items: center; gap: 6px; }
.like svg { width: 24px; height: 24px; }
.like.on svg path { fill: var(--accent); stroke: var(--accent); }
.caption { margin: 8px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }

.stage { position: relative; aspect-ratio: 3 / 4; max-height: 78vh; width: 100%; background: #000; border-radius: var(--radius); overflow: hidden; }
.stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: grab; }
.stage video { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.stage .hint { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-size: 12px; color: rgba(255,255,255,.75);
  pointer-events: none; text-shadow: 0 1px 3px #000; }
.stage .sound { position: absolute; right: 10px; top: 10px; background: rgba(0,0,0,.55); border: 0; border-radius: 999px;
  padding: 6px 12px; font-size: 13px; cursor: pointer; }
.stage .status { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); }

.comments { list-style: none; padding: 0; margin: 12px 0; }
.comments li { padding: 8px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.comments .by { font-weight: 650; margin-right: 6px; }
.comments .x { background: none; border: 0; color: var(--muted); cursor: pointer; float: right; }
.people { list-style: none; padding: 0; }
.people li { padding: 10px 0; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 8px; }
.linkbox { background: var(--card); border: 1px dashed var(--accent); border-radius: 10px; padding: 12px; overflow-wrap: anywhere; margin-top: 12px; }
