/* VTubePad — shared look. Dark stage, creator colours on top. */
:root {
  --bg: #0a0912; --bg2: #110f1d; --card: #161427; --line: #2a2644; --line2: #3a3560;
  --fg: #f3f0ff; --dim: #a39fc0; --dim2: #6f6a90;
  --accent: #8b5cff; --accent2: #ff4fb0; --mint: #2bf0b4; --live: #ff3b5c; --gold: #ffd36b;
  --display: 'Unbounded', 'Arial Black', system-ui, sans-serif;
  --body: 'Manrope', system-ui, 'Segoe UI', sans-serif;
  --r: 16px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 500 15px/1.5 var(--body); }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* top bar */
.nav { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 18px; padding: 12px 22px;
  background: rgba(10, 9, 18, .72); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255, 255, 255, .06); }
.logo { display: flex; align-items: center; gap: 9px; font: 800 18px var(--display); letter-spacing: .01em; }
.logo i { width: 28px; height: 28px; border-radius: 9px; background: conic-gradient(from 200deg, var(--accent), var(--accent2), var(--mint), var(--accent)); display: grid; place-items: center; font-style: normal; font-size: 14px; }
.nav .links { display: flex; gap: 4px; margin-left: 8px; }
.nav .links a { padding: 7px 12px; border-radius: 10px; color: var(--dim); font-weight: 700; font-size: 14px; }
.nav .links a:hover, .nav .links a.on { color: var(--fg); background: rgba(255, 255, 255, .06); }
.nav .links a .soon { font-size: 10px; color: var(--dim2); margin-left: 4px; }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.xlink { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); color: var(--fg); flex: none; }
.xlink:hover { border-color: #5a5390; }
.ca-pill { font-family: ui-monospace, monospace; letter-spacing: .02em; }
span.ca-pill { color: var(--dim); cursor: default; }
.btn { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; padding: 10px 18px; border-radius: 12px; border: 1px solid var(--line2); background: rgba(255, 255, 255, .04); font-weight: 800; }
.btn:hover { border-color: #5a5390; }
.btn.primary { background: linear-gradient(135deg, var(--accent), var(--accent2)); border: 0; color: #fff; box-shadow: 0 8px 28px rgba(139, 92, 255, .35); }
.btn.small { padding: 7px 12px; font-size: 13px; border-radius: 10px; }
.pill { white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font: 800 11px var(--body); letter-spacing: .06em; text-transform: uppercase; }
.pill.live { background: var(--live); color: #fff; }
.pill.demo { background: rgba(255, 255, 255, .12); color: #e9e5ff; }
.pill.live::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: blip 1.2s infinite; }
@keyframes blip { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
@media (max-width: 760px) {
  .nav { padding: 10px 14px; gap: 10px; }
  .nav .links { display: none; }
  .nav .right .btn:not(.primary) { display: none; }
  .logo { font-size: 16px; }
}

/* creator cards (home, discover) */
.cgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.ccard { display: flex; flex-direction: column; border-radius: 18px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: transform .15s, border-color .15s; }
.ccard:hover { transform: translateY(-3px); border-color: var(--line2); }
.ccard.is-live { border-color: rgba(255, 59, 92, .55); }
.ccard .thumb { position: relative; aspect-ratio: 1; background: var(--bg2); }
.ccard .thumb img { position: relative; width: 100%; height: 100%; object-fit: cover; display: block; }
.ccard .thumb .ini { position: absolute; inset: 0; display: grid; place-items: center; font: 800 64px var(--display); color: rgba(255, 255, 255, .85); background: linear-gradient(140deg, #2a2050, #4a2350); text-transform: uppercase; }
.ccard .thumb .pill { position: absolute; left: 10px; top: 10px; }
.ccard .thumb .vw { position: absolute; left: 10px; bottom: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(0, 0, 0, .6); font-size: 12px; font-weight: 800; }
.ccard .thumb .tk { white-space: nowrap; position: absolute; right: 10px; top: 10px; padding: 3px 8px; border-radius: 999px; background: rgba(10, 9, 18, .72); color: var(--mint); font-size: 11px; font-weight: 800; }
.ccard .cmeta { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ccard .cmeta b { font: 800 16px var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ccard .cmeta span { color: var(--dim); font-size: 12.5px; font-weight: 700; }
.ccard .cmeta p { margin: 4px 0 0; color: #d6d1ee; font-size: 13px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; min-height: 2.6em; }
.ccard .cmeta small { color: var(--dim2); font-size: 11.5px; margin-top: 2px; }
.empty-note { padding: 20px 22px; border-radius: 16px; border: 1px dashed var(--line2); color: var(--dim); grid-column: 1 / -1; }
.logo .mark { width: 30px; height: 30px; border-radius: 9px; display: block; box-shadow: 0 0 14px rgba(160, 90, 255, .35); }
.logo.small .mark { width: 22px; height: 22px; border-radius: 7px; }
