/* Emerald Web Cams: dark room, hot pink actions, gold tokens, neon logo. */
@font-face { font-family: 'Figtree'; font-weight: 400; font-display: swap; src: url('/fonts/figtree-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 500; font-display: swap; src: url('/fonts/figtree-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 600; font-display: swap; src: url('/fonts/figtree-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 700; font-display: swap; src: url('/fonts/figtree-latin-700-normal.woff2') format('woff2'); }
@font-face { font-family: 'Figtree'; font-weight: 800; font-display: swap; src: url('/fonts/figtree-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'Yellowtail'; font-weight: 400; font-display: swap; src: url('/fonts/yellowtail-latin-400-normal.woff2') format('woff2'); }

:root {
  --bg: #0D0B10;
  --bar: #141117;
  --surface: #17141C;
  --card: #1A1620;
  --raise: #1C1822;
  --chip: #241F2B;
  --chip2: #2A2232;
  --line: #2A2431;
  --line2: #3A3342;
  --text: #F5F2F7;
  --soft: #C9C1D1;
  --muted: #A79FB0;
  --pink: #E5195B;
  --pink-hi: #FF6F9C;
  --pink-soft: #FF9EBD;
  --pink-tint: rgba(229, 25, 91, .18);
  --gold: #FFC83D;
  --gold-ink: #2A1D00;
  --purple: #7C3AED;
  --green: #2BE38A;
  --green-ink: #06291A;
  --red: #FF3B3B;
  --neon: #6BFFC8;
  --radius: 12px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { min-height: 100vh; font-family: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 14px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
a { color: var(--pink-hi); text-decoration: none; }
a:hover { color: var(--pink-soft); }
h1, h2, h3 { margin: 0 0 .6em; line-height: 1.2; font-weight: 800; }
h1 { font-size: 1.6rem; } h2 { font-size: 1.2rem; } h3 { font-size: 1rem; }
p { margin: 0 0 .8em; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 2px solid var(--pink-hi); outline-offset: 2px; }
.muted { color: var(--muted); }
.soft { color: var(--soft); }
.small { font-size: .86rem; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grow { flex: 1; }
.spacer { height: 16px; }
.wrap { max-width: 1440px; margin: 0 auto; padding: 18px; }
.narrow { max-width: 460px; }
.mid { max-width: 980px; }
.gold-t { color: var(--gold); }
.tok { display: inline-block; width: 13px; height: 13px; flex: none; background: linear-gradient(135deg, #FFE59A 0 50%, var(--gold) 50%); clip-path: polygon(50% 0, 100% 50%, 50% 100%, 0 50%); vertical-align: -1px; }
.tok.lg { width: 18px; height: 18px; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; background: var(--red); }
.dot.green { background: var(--green); } .dot.grey { background: #8E8696; } .dot.white { background: #fff; }

/* ---------- header ---------- */
.top { position: sticky; top: 0; z-index: 50; background: var(--bar); border-bottom: 1px solid var(--line); }
.top .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 8px 16px; min-height: 60px; }
.logo { display: flex; align-items: baseline; gap: 6px; color: var(--text); white-space: nowrap; }
.logo:hover { color: var(--text); }
.logo .neon { font-family: 'Yellowtail', cursive; font-size: 34px; line-height: 1; color: var(--neon); text-shadow: 0 0 6px rgba(52, 245, 168, .9), 0 0 20px rgba(52, 245, 168, .5); }
.logo b { font-weight: 800; font-size: 14px; }
.mainnav { display: flex; align-items: center; gap: 4px; }
.mainnav a { display: flex; align-items: center; height: 40px; padding: 0 12px; border-radius: 8px; color: var(--soft); font-weight: 700; white-space: nowrap; }
.mainnav a:hover { background: var(--chip); color: var(--text); }
.mainnav a[aria-current] { background: var(--chip); color: var(--text); font-weight: 800; }
.search { flex: 1 1 240px; max-width: 560px; display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; background: var(--raise); border: 1px solid #2E2836; border-radius: 8px; }
.search:focus-within { border-color: var(--pink-hi); }
.search input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--text); outline: none; padding: 0; height: 40px; }
.search svg { flex: none; color: var(--muted); }
.top .right { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.iconbtn { position: relative; width: 44px; height: 44px; flex: none; display: inline-flex; align-items: center; justify-content: center; border-radius: 8px; border: 0; background: transparent; color: var(--text); cursor: pointer; }
.iconbtn:hover { background: var(--chip); color: var(--text); }
.iconbtn.round { border-radius: 50%; background: var(--chip); width: 42px; height: 42px; }
.iconbtn.round:hover { background: var(--chip2); }
.iconbtn .badge { position: absolute; top: 3px; right: 1px; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--pink); color: #fff; font-size: 11px; font-weight: 800; }
.tokpill { display: inline-flex; align-items: center; gap: 7px; height: 40px; padding: 0 14px; border-radius: 999px; background: var(--raise); color: var(--text); font-weight: 800; white-space: nowrap; }
.tokpill:hover { background: var(--chip); color: var(--text); }
.me-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #3A2440; color: var(--text); font-weight: 800; cursor: pointer; }
.rel { position: relative; }
.dropdown { position: absolute; right: 0; top: calc(100% + 6px); width: 320px; max-height: 440px; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 14px 40px rgba(0, 0, 0, .55); z-index: 60; }
.dropdown .item { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .9rem; }
.dropdown .item:last-child { border-bottom: 0; }
.dropdown .item.unread { background: rgba(229, 25, 91, .08); }
.dropdown.menu { width: 220px; padding: 6px; }
.dropdown.menu a, .dropdown.menu button { display: flex; width: 100%; align-items: center; min-height: 40px; padding: 0 10px; border-radius: 8px; color: var(--text); background: none; border: 0; cursor: pointer; text-align: left; font-weight: 600; }
.dropdown.menu a:hover, .dropdown.menu button:hover { background: var(--chip); }
.dropdown.menu .who { padding: 8px 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }

/* ---------- buttons and forms ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 16px; border-radius: 8px; border: 1px solid var(--line2); background: var(--raise); color: var(--text); font-weight: 800; cursor: pointer; white-space: nowrap; text-align: center; }
.btn:hover { background: var(--chip); color: var(--text); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--pink); border-color: var(--pink); color: #fff; }
.btn.primary:hover { background: #F02A6C; }
.btn.gold { background: var(--gold); border-color: var(--gold); color: var(--gold-ink); }
.btn.gold:hover { background: #FFD666; }
.btn.purple { background: var(--purple); border-color: var(--purple); color: #fff; }
.btn.purple:hover { background: #8B4CF5; }
.btn.outline { background: transparent; border: 2px solid var(--pink); color: var(--pink-hi); }
.btn.outline:hover { background: var(--pink-tint); }
.btn.danger { background: transparent; border-color: #8A2234; color: #FF8C9E; }
.btn.danger:hover { background: rgba(255, 59, 59, .12); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--chip); }
.btn.pill { border-radius: 999px; }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: .86rem; border-radius: 7px; }
.btn.lg { min-height: 48px; padding: 0 22px; font-size: 1rem; }
.btn.block { width: 100%; }
label { display: block; font-size: .88rem; color: var(--muted); margin: 12px 0 5px; font-weight: 600; }
input, select, textarea { width: 100%; background: var(--raise); color: var(--text); border: 1px solid #2E2836; border-radius: 8px; padding: 0 12px; height: 42px; font-size: .95rem; }
textarea { min-height: 96px; padding: 10px 12px; resize: vertical; height: auto; line-height: 1.45; }
input[type=file] { height: auto; padding: 9px 12px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--pink-hi); }
input[type=checkbox], input[type=radio] { width: auto; height: auto; accent-color: var(--pink); }
input[type=range] { height: auto; padding: 0; border: 0; background: transparent; accent-color: var(--pink); }
.check { display: flex; gap: 9px; align-items: flex-start; color: var(--text); font-weight: 500; font-size: .92rem; margin: 10px 0; }
.check input { margin-top: 3px; }
.hint { color: var(--muted); font-size: .84rem; margin: 6px 0 0; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.card + .card { margin-top: 14px; }
.card h2 { font-size: 1.1rem; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }

.notice { border: 1px solid rgba(43, 227, 138, .35); background: rgba(43, 227, 138, .08); color: #9FF5CB; padding: 10px 12px; border-radius: 8px; font-size: .92rem; }
.notice.warn { border-color: rgba(255, 200, 61, .4); background: rgba(255, 200, 61, .08); color: var(--gold); }
.notice.bad { border-color: rgba(255, 59, 59, .4); background: rgba(255, 59, 59, .08); color: #FF9AA5; }
.notice.info { border-color: var(--line2); background: var(--raise); color: var(--soft); }

table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { text-align: left; padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { color: var(--muted); font-weight: 700; font-size: .84rem; }
td.num, th.num { text-align: right; }
.tablebox { overflow-x: auto; }
.pos { color: var(--green); font-weight: 700; } .neg { color: #FF9AA5; }

/* tabs */
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: none; color: var(--muted); height: 46px; padding: 0 12px; cursor: pointer; font-weight: 700; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); font-weight: 800; border-color: var(--pink); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: #1F1A25; border: 0; color: #E4DEE9; cursor: pointer; font-size: .86rem; }
.chip:hover { background: var(--chip); color: var(--text); }
.chip.on { background: var(--pink-tint); color: var(--pink-soft); font-weight: 700; }
.chip .x { font-weight: 800; color: var(--muted); }

/* status labels */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 5px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.pill.live { background: var(--pink); color: #fff; }
.pill.live::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #fff; }
.pill.private { background: var(--purple); color: #fff; }
.pill.ticket { background: var(--gold); color: var(--gold-ink); }
.pill.offline { background: #3A3442; color: #E4DEE9; }
.pill.new { background: var(--pink); color: #fff; }
.pill.dark { background: rgba(0, 0, 0, .6); color: #fff; }
.pill.ok { background: rgba(43, 227, 138, .16); color: var(--green); }
.pill.wait { background: rgba(255, 200, 61, .14); color: var(--gold); }
.pill.no { background: rgba(255, 59, 59, .14); color: #FF9AA5; }

/* ---------- lobby ---------- */
.lobby { display: flex; flex-wrap: wrap; align-items: stretch; min-height: calc(100vh - 61px); }
.filters { flex: 0 0 232px; padding: 14px 10px 30px; background: var(--bar); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.filters .group { display: flex; flex-direction: column; gap: 1px; }
.filters .group > span, .filters h2 { padding: 0 10px 6px; margin: 0; color: var(--text); font-weight: 800; font-size: 14px; }
.filters a.f { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; border-radius: 6px; color: #E4DEE9; font-weight: 600; }
.filters a.f:hover { background: var(--chip); color: var(--text); }
.filters a.f .n { color: var(--muted); font-size: 13px; font-weight: 600; }
.filters a.f.on { background: var(--pink-tint); color: var(--pink-soft); font-weight: 800; }
.filters a.f.on .n { color: var(--pink-soft); }
.filters .chips { padding: 0 6px; }
.filters-head { display: none; align-items: center; justify-content: space-between; padding: 0 0 0 10px; font-size: 17px; }
.lobby-main { flex: 999 1 560px; min-width: 0; padding: 12px 16px 0; display: flex; flex-direction: column; }
.lobby.collapsed .filters { display: none; }
.lobby-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 12px; }
.lobby-head h1 { margin: 0; font-size: 22px; }
.lobby-head .online { display: flex; align-items: center; gap: 6px; color: var(--soft); }
.sortbar { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.sortbar button { height: 36px; padding: 0 12px; border-radius: 6px; border: 0; background: var(--raise); color: #E4DEE9; font-weight: 700; cursor: pointer; }
.sortbar button.on { background: var(--text); color: var(--bg); font-weight: 800; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 12px; }
.guest-note { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px; padding: 10px 16px; background: #24101E; color: #FFD3E1; font-weight: 600; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 6px; }
.tiles.big { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.tile { position: relative; display: block; aspect-ratio: 4 / 3; border-radius: 6px; overflow: hidden; background: linear-gradient(135deg, #2A1230, #141327); color: #fff; }
.tile:hover { color: #fff; }
.tile:hover .pic img { transform: scale(1.04); }
.tile .pic { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; font-weight: 800; color: rgba(255, 255, 255, .25); }
.tile .pic img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s; }
.tile video.prev { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; background: #000; }
.tile .tl { position: absolute; top: 6px; left: 6px; display: flex; gap: 4px; z-index: 2; }
.tile .tl .pill { padding: 2px 7px; font-size: 11px; border-radius: 4px; box-shadow: 0 1px 4px rgba(0, 0, 0, .45); }
.tile .tl .pill.live::before { display: none; }
.tile .hd { padding: 2px 5px; border-radius: 4px; background: rgba(0, 0, 0, .6); font-size: 10px; font-weight: 800; }
.tile .ph { display: flex; align-items: center; justify-content: center; width: 22px; height: 20px; border-radius: 4px; background: rgba(0, 0, 0, .6); }
.tile .star { position: absolute; top: 6px; right: 6px; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: var(--green); display: flex; align-items: center; justify-content: center; }
.tile .rank { position: absolute; top: 6px; right: 6px; z-index: 2; min-width: 28px; height: 24px; padding: 0 7px; border-radius: 6px; background: var(--gold); color: var(--gold-ink); font-weight: 800; font-size: 13px; display: flex; align-items: center; justify-content: center; }
.tile .previewing { position: absolute; top: 6px; right: 6px; z-index: 3; }
.tile .cap { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 18px 8px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.tile .cap .nm { font-weight: 800; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .cap .as { margin-left: auto; font-size: 13px; font-weight: 700; color: #E4DEE9; white-space: nowrap; }
.tile.off .pic img { filter: grayscale(.85) brightness(.75); }
.tile.off .cap .dot { background: #8E8696; }
.tile.preview-on { outline: 2px solid var(--pink); outline-offset: 2px; }
.lobby-more { display: flex; justify-content: center; margin: 20px 0 8px; }
.lobby-section { margin-top: 26px; }
.lobby-section h2 { font-size: 18px; margin-bottom: 10px; }
.empty { padding: 40px 20px; text-align: center; color: var(--soft); background: var(--surface); border-radius: 10px; }
.empty h2 { margin-bottom: 6px; }

/* ---------- footer ---------- */
.footer { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 20px; margin: 30px 16px 0; padding: 18px 0 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.footer a { color: var(--soft); }
.footer .legal { margin-left: auto; }

/* ---------- room ---------- */
.room-page { padding: 14px 16px 30px; }
.room { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; }
.room-main { flex: 999 1 640px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; background: #000; }
.stage video#video, .stage video#preview { width: 100%; height: 100%; object-fit: contain; background: #000; display: block; }
.stage .overlay { position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: radial-gradient(circle at 50% 40%, rgba(124, 58, 237, .25), rgba(0, 0, 0, .94) 70%); }
.stage .overlay h2 { margin: 0; font-size: 1.5rem; }
.stage .overlay p { margin: 0; color: var(--soft); max-width: 460px; }
.stage-top { position: absolute; top: 12px; left: 12px; z-index: 4; display: flex; gap: 6px; align-items: center; }
.chip-dark { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: 13px; font-weight: 700; }
.chip-dark:empty { display: none; }
.stage-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 4; display: flex; flex-wrap: wrap; align-items: center; gap: 14px; padding: 28px 14px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); }
.stage-bottom .goal { flex: 1 1 300px; display: flex; flex-direction: column; gap: 5px; }
.goal-row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; font-weight: 700; }
.goal-row span { color: var(--gold); }
.goal .bar { height: 8px; border-radius: 999px; background: rgba(255, 255, 255, .2); overflow: hidden; }
.goal .fill { height: 100%; width: 0; background: var(--gold); transition: width .6s; }
.player { margin-left: auto; display: flex; align-items: center; gap: 2px; }
.player .iconbtn { color: #fff; }
.player .iconbtn:hover { background: rgba(255, 255, 255, .12); }
.player input[type=range] { width: 86px; }
.unmute { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 6; }
.selfcam { position: absolute; z-index: 4; right: 12px; bottom: 60px; width: 22%; min-width: 120px; border-radius: 8px; border: 2px solid var(--pink); background: #000; }
.tipfx { position: absolute; z-index: 6; left: 50%; top: 34%; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 4px; pointer-events: none; animation: tipfx 2.6s ease-out forwards; white-space: nowrap; }
.tipfx .amt { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 64px; line-height: 1; color: var(--gold); text-shadow: 0 0 24px rgba(255, 200, 61, .75), 0 2px 0 #7A4A00; }
.tipfx .who { padding: 5px 14px; border-radius: 999px; background: rgba(0, 0, 0, .7); font-weight: 800; font-size: 15px; }
@keyframes tipfx { 0% { opacity: 0; transform: translate(-50%, -30%) scale(.6); } 12% { opacity: 1; transform: translate(-50%, -50%) scale(1.08); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -80%) scale(1); } }
.vibe { position: absolute; z-index: 6; right: 14px; top: 14px; padding: 6px 12px; border-radius: 999px; background: var(--pink); color: #fff; font-weight: 800; font-size: 13px; animation: vibe .4s linear infinite alternate; }
@keyframes vibe { from { transform: translateX(-1px); } to { transform: translateX(1px); } }
.room.theater .chatcol { display: none; }
.stage:fullscreen { border-radius: 0; aspect-ratio: auto; }

.private-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(124, 58, 237, .16); border: 1px solid rgba(124, 58, 237, .5); }
.modelbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; padding: 10px 14px; border-radius: 10px; background: var(--surface); }
.avatar { width: 48px; height: 48px; border-radius: 50%; flex: none; display: flex; align-items: center; justify-content: center; overflow: hidden; background: #6A2448; color: #fff; font-weight: 800; font-size: 19px; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.avatar.ring { outline: 2px solid var(--pink); outline-offset: 2px; }
.avatar.big { width: 112px; height: 112px; font-size: 42px; }
.modelbar .who { display: flex; flex-direction: column; min-width: 0; }
.nameline { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.nameline h1 { margin: 0; font-size: 22px; line-height: 1.1; }
.cc { padding: 0 5px; border-radius: 3px; background: rgba(255, 255, 255, .14); font-size: 12px; font-weight: 700; }
.modelbar .cta { margin-left: auto; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.modelbar .cta .btn { min-height: 46px; border-radius: 999px; font-size: 15px; }
.c2c { display: flex; align-items: center; gap: 6px; color: var(--soft); font-size: .86rem; margin: 0; font-weight: 600; }
.panel { border-radius: 10px; background: var(--surface); padding: 0 14px 14px; }
.panel .tabs { margin-bottom: 12px; border-color: #2B2532; }
.menu-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.menu-btn { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 46px; padding: 0 12px; border-radius: 8px; border: 0; background: #221D29; color: var(--text); font-weight: 600; cursor: pointer; text-align: left; }
.menu-btn:hover { background: var(--chip2); }
.menu-btn .price { display: flex; align-items: center; gap: 5px; color: var(--gold); font-weight: 800; }
.vibe-table td, .vibe-table th { padding: 8px; }
.levelbar { display: inline-block; height: 8px; border-radius: 4px; background: var(--pink); vertical-align: middle; }

.chatcol { flex: 1 1 340px; max-width: 420px; min-width: 0; height: min(86vh, 880px); position: sticky; top: 75px; display: flex; flex-direction: column; background: var(--surface); border-radius: 10px; overflow: hidden; }
.chat-tabs { display: flex; margin: 0; border-bottom: 1px solid #2B2532; }
.chat-tabs button { flex: 1; height: 48px; }
.chatlog { flex: 1; min-height: 0; overflow-y: auto; padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.chatlog .m { word-wrap: break-word; padding: 2px 0; }
.chatlog .m .u { font-weight: 800; color: #CFC6D8; cursor: pointer; }
.chatlog .m .u.role-performer { color: var(--pink-hi); }
.chatlog .m .u.role-moderator { color: #7DB4FF; }
.chatlog .m.tip { padding: 7px 10px; border-radius: 8px; background: rgba(255, 200, 61, .16); }
.chatlog .m.tip .u { color: var(--text); }
.chatlog .m.tip .amt { color: var(--gold); font-weight: 800; }
.chatlog .m.sys { color: var(--muted); font-size: .86rem; }
.chatlog .m.vib { color: var(--pink-soft); font-size: .86rem; font-weight: 700; }
.chatlog .m.deleted { opacity: .45; font-style: italic; }
.userlist { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 12px; display: flex; flex-direction: column; gap: 4px; }
.userlist .urow { display: flex; align-items: center; gap: 6px; min-height: 32px; }
.lvl { display: inline-block; padding: 0 5px; border-radius: 4px; margin-right: 5px; font-size: 11px; font-weight: 800; vertical-align: 1px; }
.lvl.Grey { background: #4A4552; color: #ECE8F0; } .lvl.Bronze { background: #9A5523; color: #FFEBD9; } .lvl.Silver { background: #6B7480; color: #F3F5F7; } .lvl.Gold { background: var(--gold); color: var(--gold-ink); } .lvl.Diamond { background: #5BD8EE; color: #03262D; }
.fanstar { color: var(--pink-hi); margin-right: 3px; }
.quicktips { display: flex; gap: 6px; padding: 8px 12px 0; }
.quicktips button { flex: 1; height: 34px; border-radius: 999px; border: 0; background: var(--chip2); color: var(--gold); font-weight: 800; cursor: pointer; }
.quicktips button:hover { background: #352A3F; }
.chatin { display: flex; gap: 6px; padding: 8px 12px 12px; }
.chatin input { border-radius: 999px; border: 0; background: var(--chip); height: 44px; }
.chatin .btn { border-radius: 999px; min-height: 44px; }
.toptips { padding: 10px 14px 14px; border-top: 1px solid #2B2532; font-size: .88rem; }
.toptips h3 { font-size: .9rem; margin: 0 0 6px; }
.toptips ol { margin: 0; padding-left: 1.3em; }
.toptips li { margin: 2px 0; }
.toptips li b { color: var(--gold); }
.mobile-bar { display: none; }

/* tip dialog */
.tipdlg .head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tipdlg .head h2 { margin: 0; font-size: 22px; }
.amounts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.amounts button { height: 58px; border-radius: 12px; border: 2px solid transparent; background: var(--chip); color: var(--text); font-weight: 800; font-size: 22px; cursor: pointer; }
.amounts button[aria-pressed=true] { border-color: var(--gold); background: rgba(255, 200, 61, .16); color: var(--gold); }
.pickmenu { display: flex; flex-direction: column; gap: 6px; }
.pickmenu button { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 14px; border-radius: 10px; border: 2px solid transparent; background: var(--chip); color: var(--text); font-weight: 600; cursor: pointer; }
.pickmenu button[aria-pressed=true] { border-color: var(--gold); }
.pickmenu b { color: var(--gold); }
.tipsend { margin-top: 18px; width: 100%; min-height: 56px; border-radius: 999px; font-size: 18px; }

@media (max-width: 760px) {
  .room-page { padding: 0 0 80px; }
  .room { display: flex; flex-direction: column; gap: 0; }
  .room-main { display: contents; }
  .stage { order: 1; width: 100%; border-radius: 0; position: sticky; top: 0; z-index: 20; }
  .private-bar { order: 2; border-radius: 0; }
  .modelbar { order: 3; border-radius: 0; padding: 8px 12px; }
  .modelbar .avatar { width: 40px; height: 40px; }
  .nameline h1 { font-size: 18px; }
  .modelbar .cta { margin-left: 0; width: 100%; }
  #tipOpen { display: none !important; }
  .chatcol { order: 4; max-width: none; width: 100%; height: 56vh; position: static; border-radius: 0; flex: 0 0 auto; }
  .chatcol .quicktips, .chatcol .chatin, .chatcol .toptips { display: none; }
  .panel { order: 5; border-radius: 0; }
  .more-live { order: 6; padding: 0 12px; }
  .player input[type=range], #theaterBtn { display: none; }
  .stage-bottom { padding: 18px 10px 6px; }
  .mobile-bar { display: flex; position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; gap: 6px; padding: 8px 10px calc(10px + env(safe-area-inset-bottom)); background: var(--surface); border-top: 1px solid var(--line); }
  .mobile-bar input { flex: 1; min-width: 0; border-radius: 999px; border: 0; background: var(--chip); }
  .mobile-bar .iconbtn { width: 44px; height: 44px; border-radius: 50%; background: var(--purple); color: #fff; }
  .mobile-bar .btn { border-radius: 999px; min-height: 44px; }
  .room-page + .footer { display: none; }
}

/* ---------- popups ---------- */
.toastbox { position: fixed; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 8px; z-index: 999; }
.toast { background: var(--card); border: 1px solid var(--line2); border-left: 4px solid var(--green); padding: 10px 14px; border-radius: 10px; max-width: 360px; box-shadow: 0 8px 28px rgba(0, 0, 0, .55); font-size: .92rem; }
.toast.bad { border-left-color: var(--red); }
.modal-bg { position: fixed; inset: 0; background: rgba(5, 4, 8, .78); z-index: 900; display: flex; align-items: center; justify-content: center; padding: 16px; }
.modal { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 22px; width: 100%; max-width: 480px; max-height: 92vh; overflow: auto; }
.modal.wide { max-width: 900px; }
.modal .x { position: absolute; top: 12px; right: 12px; }
.modal .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; margin-top: 16px; }
.agegate { position: fixed; inset: 0; z-index: 1000; background: radial-gradient(circle at 50% 25%, #2A1230, #07060A 70%); display: flex; align-items: center; justify-content: center; padding: 20px; }
.agegate .box { max-width: 540px; text-align: center; }
.agegate .logo { justify-content: center; margin-bottom: 20px; }
.agegate .logo .neon { font-size: 54px; }
.agegate h1 { font-size: 2rem; }
.agegate p { color: var(--soft); }

/* ---------- studio ---------- */
.studio { display: flex; flex-wrap: wrap; align-items: stretch; min-height: calc(100vh - 61px); }
.side { flex: 0 0 240px; padding: 14px 10px 30px; background: var(--bar); border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.side .group { display: flex; flex-direction: column; gap: 1px; }
.side .group > span { padding: 0 12px 4px; color: var(--muted); font-weight: 700; font-size: 13px; }
.side button, .side a.item { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 0; background: transparent; color: #E4DEE9; font-weight: 600; cursor: pointer; text-align: left; }
.side button:hover, .side a.item:hover { background: var(--chip); color: var(--text); }
.side button.on { background: var(--pink-tint); color: var(--pink-soft); font-weight: 800; }
.side button svg, .side a.item svg { flex: none; }
.side .label { flex: 1; }
.side .badge { background: var(--chip); color: var(--soft); }
.side .badge.ok { background: rgba(43, 227, 138, .16); color: var(--green); }
.side .badge.hot { background: var(--pink); color: #fff; }
.studio-main { flex: 999 1 560px; min-width: 0; padding: 20px 24px 40px; }
.studio-main > [data-pane] { display: flex; flex-direction: column; gap: 16px; }
.pane-head { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px 16px; }
.pane-head h1 { margin: 0; font-size: 26px; }
.pane-head p { margin: 0; color: var(--soft); flex-basis: 100%; }
.pane-head .right { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.ready { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 18px 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.ready .left { flex: 1 1 420px; display: flex; flex-direction: column; gap: 10px; }
.ready h2 { margin: 0; font-size: 18px; }
.checks { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.checks li { display: flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 6px; background: var(--chip); font-weight: 600; }
.checks li.todo { color: var(--gold); }
.checks li a { color: inherit; }
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); }
.kpi h2 { margin: 0; color: var(--muted); font-size: 13px; font-weight: 700; }
.kpi .v { font-size: 28px; font-weight: 800; line-height: 1.15; }
.kpi .s { color: var(--soft); font-size: 13px; }
.kpi a, .kpi button.link { margin-top: 4px; font-weight: 700; font-size: 13px; }
.kpi.ring { flex-direction: row; align-items: center; gap: 14px; }
.ringbox { position: relative; width: 72px; height: 72px; flex: none; }
.ringbox span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 16px; }
.duo { display: flex; flex-wrap: wrap; gap: 14px; }
.duo > .card:first-child { flex: 2 1 480px; min-width: 0; }
.duo > .card:last-child { flex: 1 1 280px; min-width: 0; }
.duo > .card + .card { margin-top: 0; }
.bars { display: flex; align-items: flex-end; gap: 12px; height: 200px; padding-top: 8px; border-bottom: 1px solid var(--line); }
.bars .col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 6px; height: 100%; }
.bars .col span { font-size: 12px; font-weight: 700; color: var(--soft); }
.bars .col i { display: block; width: 100%; max-width: 56px; border-radius: 4px 4px 0 0; background: var(--pink); min-height: 2px; }
.bars-x { display: flex; gap: 12px; margin-top: 6px; }
.bars-x span { flex: 1; text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.src { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.src .line1 { display: flex; justify-content: space-between; gap: 8px; }
.src .line1 b { font-weight: 800; }
.src .track { height: 6px; border-radius: 3px; background: var(--line); }
.src .track i { display: block; height: 100%; border-radius: 3px; background: var(--pink); }
.studio .room { margin: 0; }
.studio .chatcol { top: 75px; }
.req { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px; border: 1px solid rgba(124, 58, 237, .6); background: rgba(124, 58, 237, .14); border-radius: 10px; margin-bottom: 8px; }
.formcard { max-width: 760px; }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.radio-cards label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 12px; border-radius: 10px; background: var(--raise); border: 2px solid transparent; color: var(--text); cursor: pointer; font-weight: 700; }
.radio-cards label:has(input:checked) { border-color: var(--pink); background: var(--pink-tint); }
.country-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 4px 10px; max-height: 380px; overflow: auto; padding: 4px; }
.country-grid .check { margin: 4px 0; }
.levels-edit .lv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 44px; gap: 8px; align-items: end; margin-bottom: 8px; }
.levels-edit label { margin-top: 0; }
.qrbox { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.qrbox img { width: 220px; height: 220px; border-radius: 10px; background: #fff; padding: 8px; }

/* gallery */
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.gitem { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: var(--raise); border: 0; padding: 0; color: var(--text); cursor: pointer; display: block; }
.gitem.vid { aspect-ratio: 16 / 10; }
.gitem img, .gitem video { width: 100%; height: 100%; object-fit: cover; display: block; }
.gitem .lock { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 10px; text-align: center; background: rgba(13, 11, 16, .72); font-weight: 800; }
.gitem.locked-pic { background: linear-gradient(135deg, #2A1230, #1A1030); }
.gitem .meta { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 6px; padding: 16px 8px 6px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); font-size: 13px; font-weight: 700; }
.gitem .meta .r { margin-left: auto; }
.gitem .tag { position: absolute; top: 6px; left: 6px; }
.gitem .play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 46px; height: 46px; border-radius: 50%; background: rgba(0, 0, 0, .6); display: flex; align-items: center; justify-content: center; }
.mine .gitem { cursor: default; }
.mine .tools { position: absolute; top: 6px; right: 6px; display: flex; gap: 4px; }
.mine .tools button { width: 32px; height: 32px; border-radius: 8px; border: 0; background: rgba(0, 0, 0, .65); color: #fff; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.lightbox img, .lightbox video { width: 100%; max-height: 78vh; object-fit: contain; border-radius: 8px; background: #000; display: block; }

/* profile */
.prof-head { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; padding: 20px; border-radius: 12px; background: var(--surface); }
.prof-head .info { flex: 1 1 320px; display: flex; flex-direction: column; gap: 8px; }
.prof-head h1 { margin: 0; font-size: 28px; }
.prof-head .stats { display: flex; flex-wrap: wrap; gap: 14px; color: var(--soft); }
.prof-head .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.teaser { border-radius: 12px; overflow: hidden; background: #000; }
.teaser video { width: 100%; max-height: 460px; display: block; }

/* messages */
.msgs { display: grid; grid-template-columns: 300px 1fr; gap: 14px; min-height: 70vh; }
@media (max-width: 760px) { .msgs { grid-template-columns: minmax(0, 1fr); } }
.convo { padding: 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.convo.on, .convo:hover { background: var(--raise); }
.thread { display: flex; flex-direction: column; gap: 8px; padding: 10px; overflow-y: auto; max-height: 60vh; }
.bubble { max-width: 75%; padding: 9px 13px; border-radius: 14px; background: var(--chip); }
.bubble.mine { align-self: flex-end; background: var(--pink); color: #fff; }
.bubble .t { font-size: .74rem; color: var(--muted); }
.bubble.mine .t { color: #FFD3E1; }

/* account packages */
.packs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.pack { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 20px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); text-align: center; }
.pack .n { display: flex; align-items: center; gap: 8px; font-size: 2rem; font-weight: 800; color: var(--gold); }
.pack .price { font-size: 1.15rem; font-weight: 700; margin: 6px 0 10px; }

.authbox { max-width: 460px; margin: 40px auto; }
.authbox .card { padding: 26px; }
.authbox h1 { font-size: 26px; }
.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 10px; background: var(--raise); margin-bottom: 8px; }
.seg button { height: 40px; border: 0; border-radius: 8px; background: transparent; color: var(--soft); font-weight: 700; cursor: pointer; }
.seg button.on { background: var(--pink); color: #fff; font-weight: 800; }

.kycimg { max-width: 100%; max-height: 360px; border-radius: 8px; border: 1px solid var(--line); background: #000; }
.legal-page { max-width: 820px; margin: 0 auto; padding: 24px 18px; }
.legal-page h1 { font-size: 28px; }

@media (max-width: 1000px) and (min-width: 761px) {
  .chatcol { max-width: none; flex-basis: 100%; height: 60vh; position: static; }
}
@media (max-width: 760px) {
  body { font-size: 15px; }
  .wrap { padding: 12px; }
  .top { position: static; }
  .top .bar { gap: 6px 8px; padding: 6px 10px; }
  .logo .neon { font-size: 27px; }
  .logo b { font-size: 12px; }
  .tokpill { padding: 0 10px; height: 36px; }
  .top .right { gap: 4px; }
  .top .right .btn { padding: 0 12px; }
  .filters-head { display: flex; }
  .lobby.open .lobby-main { opacity: .35; pointer-events: none; }
  .mainnav { order: 5; width: 100%; overflow-x: auto; }
  .search { order: 6; flex-basis: 100%; max-width: none; }
  .hide-sm { display: none !important; }
  .filters { position: fixed; z-index: 70; top: 0; left: 0; bottom: 0; width: 280px; overflow-y: auto; box-shadow: 0 0 60px rgba(0, 0, 0, .7); }
  .lobby:not(.open) .filters { display: none; }
  .lobby.collapsed.open .filters { display: flex; }
  .lobby-main { padding: 10px 8px 0; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .sortbar { margin-left: 0; }
  .side { flex-basis: 100%; flex-direction: row; overflow-x: auto; padding: 8px; gap: 4px; border-right: 0; border-bottom: 1px solid var(--line); }
  .side .group { flex-direction: row; }
  .side .group > span { display: none; }
  .side button, .side a.item { width: auto; white-space: nowrap; }
  .studio-main { padding: 14px 12px 30px; }
  .footer .legal { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* ---------- effects ---------- */
canvas.fxc { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 7; pointer-events: none; }
.react-layer { position: absolute; inset: 0; z-index: 6; pointer-events: none; overflow: hidden; }
.float-react { position: absolute; bottom: 10%; font-size: 30px; animation: floatUp 2.6s ease-out forwards; will-change: transform, opacity; }
@keyframes floatUp { 0% { transform: translate(0, 0) scale(.6); opacity: 0; } 15% { opacity: 1; transform: translate(0, -20px) scale(1.1); } 100% { transform: translate(var(--drift, 0), -70vh) scale(1); opacity: 0; } }
.reactbar { display: flex; gap: 4px; padding: 8px 12px 0; }
.reactbar button { flex: 1; height: 36px; border-radius: 999px; border: 0; background: var(--chip); font-size: 18px; cursor: pointer; }
.reactbar button:hover { background: var(--chip2); transform: scale(1.08); }
.emoji-pop { display: grid; grid-template-columns: repeat(10, 1fr); gap: 2px; padding: 6px 12px; }
.emoji-pop button { height: 34px; border: 0; background: transparent; font-size: 20px; cursor: pointer; border-radius: 6px; }
.emoji-pop button:hover { background: var(--chip); }
.stage-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 4; width: 44px; height: 64px; border-radius: 8px; background: rgba(0, 0, 0, .35); color: #fff; opacity: 0; transition: opacity .2s; }
.stage-nav.prev { left: 8px; } .stage-nav.next { right: 8px; }
.stage:hover .stage-nav, .stage-nav:focus-visible { opacity: 1; }
.fs-chat { display: none; position: absolute; left: 16px; bottom: 90px; z-index: 6; max-width: 46%; pointer-events: none; font-size: 15px; text-shadow: 0 1px 3px #000; }
.fs-chat div { padding: 3px 0; background: rgba(0, 0, 0, .35); padding: 4px 10px; border-radius: 8px; margin-top: 4px; width: fit-content; max-width: 100%; }
.fs-chat .tipline { color: var(--gold); font-weight: 800; }
.stage:fullscreen .fs-chat { display: block; }
.stage:fullscreen .stage-nav { opacity: .6; }
.tr { color: var(--neon); font-style: italic; }
#translateBtn { margin-left: auto; flex: none; width: 44px; }
#translateBtn.on { color: var(--neon); }
.ubadge { display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; border-radius: 4px; margin-right: 4px; vertical-align: -2px; }
.ubadge.streak { background: rgba(255, 122, 45, .25); color: #FF9A4D; }
.ubadge.top1 { background: var(--gold); color: var(--gold-ink); } .ubadge.top2 { background: #C9CCD6; color: #1A1520; } .ubadge.top3 { background: #C9865A; color: #1A1520; }
.chatlog .m.wheel { background: rgba(124, 58, 237, .2); }
.pill.soon { background: rgba(107, 255, 200, .18); color: var(--neon); gap: 4px; }
.gold-pill { background: var(--gold); color: var(--gold-ink); }
.next-show { color: var(--soft); }
.next-show b { color: var(--neon); }

/* auction */
.auction-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 10px; background: rgba(255, 200, 61, .1); border: 1px solid rgba(255, 200, 61, .45); }

/* wheel */
.wheel-wrap { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
.wheel-wrap canvas { width: 320px; height: 320px; max-width: 100%; border-radius: 50%; box-shadow: 0 0 0 6px var(--chip), 0 0 40px rgba(124, 58, 237, .4); }
.wheel-list { columns: 2; margin: 8px 0 14px; padding-left: 1.2em; }
.wheel-list li { break-inside: avoid; padding: 2px 0; }

/* leaderboard */
.lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.lb-list li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--raise); }
.lb-list .rank { min-width: 34px; font-weight: 800; color: var(--muted); }
.lb-list .rank.r1 { color: var(--gold); } .lb-list .rank.r2 { color: #C9CCD6; } .lb-list .rank.r3 { color: #C9865A; }
.lb-list li.me { outline: 2px solid var(--pink); }
.prize-row { display: flex; gap: 10px; flex-wrap: wrap; }
.prize { flex: 1 1 140px; padding: 14px; border-radius: 12px; text-align: center; background: var(--card); border: 1px solid var(--line); }
.prize .n { font-size: 26px; font-weight: 800; color: var(--gold); }

/* themes: the model picks the room's accent */
body[data-theme="rose"] { --pink: #FF4F8B; --pink-hi: #FF8DB0; --neon: #FFB3C7; }
body[data-theme="ocean"] { --pink: #2F7BFF; --pink-hi: #7DB4FF; --pink-soft: #A9CBFF; --pink-tint: rgba(47, 123, 255, .18); --neon: #5BE0FF; --purple: #2560C9; }
body[data-theme="gold"] { --pink: #D99A1B; --pink-hi: #FFC83D; --pink-soft: #FFE59A; --pink-tint: rgba(255, 200, 61, .16); --neon: #FFE59A; --purple: #8A5A00; }
body[data-theme="midnight"] { --pink: #7C3AED; --pink-hi: #B08BFF; --pink-soft: #CDB5FF; --pink-tint: rgba(124, 58, 237, .2); --neon: #B08BFF; --purple: #4B2AA3; }
body[data-theme="ember"] { --pink: #FF5A1F; --pink-hi: #FF8C5A; --pink-soft: #FFB899; --pink-tint: rgba(255, 90, 31, .18); --neon: #FFC46B; --purple: #B3261E; }
.theme-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.theme-pick label { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px; border-radius: 10px; border: 2px solid transparent; background: var(--raise); color: var(--text); cursor: pointer; font-weight: 700; }
.theme-pick label:has(input:checked) { border-color: var(--pink-hi); }
.theme-pick i { width: 18px; height: 18px; border-radius: 50%; display: inline-block; }

/* neon logo breathes; tiles shimmer while loading */
.logo .neon { animation: neonBreath 3.4s ease-in-out infinite; }
@keyframes neonBreath { 0%, 100% { text-shadow: 0 0 6px rgba(52, 245, 168, .9), 0 0 20px rgba(52, 245, 168, .5); } 50% { text-shadow: 0 0 10px rgba(52, 245, 168, 1), 0 0 34px rgba(52, 245, 168, .75), 0 0 60px rgba(52, 245, 168, .3); } }
.tile.skel { background: linear-gradient(100deg, #17141C 30%, #241F2B 50%, #17141C 70%); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
.tile.hot::after { content: ''; position: absolute; inset: 0; border-radius: 6px; box-shadow: inset 0 0 0 2px var(--pink); pointer-events: none; animation: hotPulse 1.6s ease-in-out infinite; }
@keyframes hotPulse { 50% { box-shadow: inset 0 0 0 2px transparent; } }

/* multi-cam */
.multi { display: grid; grid-template-columns: 1fr 300px; gap: 12px; padding: 12px 16px 30px; min-height: calc(100vh - 61px); }
.multi-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; align-content: start; }
.multi-grid.one { grid-template-columns: 1fr; }
.multi-grid.three, .multi-grid.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mcell { position: relative; aspect-ratio: 16 / 9; background: #000; border-radius: 10px; overflow: hidden; outline: 2px solid transparent; }
.mcell.focus { outline-color: var(--pink); }
.mcell video { width: 100%; height: 100%; object-fit: contain; display: block; }
.mcell .mcap { position: absolute; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 8px; padding: 18px 10px 8px; background: linear-gradient(transparent, rgba(0, 0, 0, .85)); font-weight: 800; }
.mcell .mcap .btn { margin-left: auto; }
.mcell .mtop { position: absolute; top: 8px; left: 8px; right: 8px; display: flex; gap: 6px; align-items: center; z-index: 2; }
.mcell .mtop .iconbtn { margin-left: auto; background: rgba(0, 0, 0, .5); width: 36px; height: 36px; }
.mcell .mnote { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--soft); background: rgba(13, 11, 16, .8); text-align: center; padding: 16px; }
.multi-side { display: flex; flex-direction: column; gap: 8px; }
.multi-side .pickers { display: flex; flex-direction: column; gap: 6px; max-height: 70vh; overflow: auto; }
.pickrow { display: flex; align-items: center; gap: 10px; padding: 6px; border-radius: 8px; background: var(--raise); border: 0; color: var(--text); cursor: pointer; text-align: left; width: 100%; }
.pickrow img { width: 64px; height: 44px; object-fit: cover; border-radius: 6px; }
.pickrow.on { outline: 2px solid var(--pink); }
.multi .chatcol { height: calc(100vh - 90px); }
@media (max-width: 900px) { .multi { grid-template-columns: 1fr; } .multi-grid.three, .multi-grid.four, .multi-grid { grid-template-columns: 1fr; } }

/* studio: go-live extras, camera flip */
.flipbtn { position: absolute; top: 12px; right: 12px; z-index: 4; background: rgba(0, 0, 0, .5); color: #fff; }
.sched-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.sched-list li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; background: var(--raise); }
.won-box { padding: 12px 14px; border-radius: 10px; background: rgba(255, 200, 61, .1); border: 1px solid rgba(255, 200, 61, .45); display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ai-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.ai-row button { text-align: left; white-space: normal; }

/* ---------- world-class pass 3: VIP, XP, battles, co-host, VR, requests, i18n ---------- */
.vipb { display: inline-block; padding: 1px 7px; border-radius: 6px; background: linear-gradient(135deg, #FFC83D, #FF8A3D); color: #1a1205; font-size: .68rem; font-weight: 900; letter-spacing: .04em; vertical-align: middle; }
.vipb.lg { font-size: 1rem; padding: 4px 12px; border-radius: 8px; }
.vip-card { background: linear-gradient(160deg, rgba(255, 200, 61, .12), var(--card) 60%); border-color: rgba(255, 200, 61, .4); margin-bottom: 14px; }
.vip-head { display: flex; align-items: center; gap: 12px; }
.vip-head h2 { margin: 0; }
.perks { margin: 10px 0 0; padding-left: 1.2em; color: var(--soft); }
.perks li { margin: 4px 0; }
.u .vipb { margin-right: 4px; }
.xp-pop { position: fixed; right: 18px; bottom: 90px; z-index: 90; padding: 6px 12px; border-radius: 999px; background: rgba(255, 200, 61, .95); color: #1a1205; font-weight: 900; animation: xpfloat 1.8s ease-out forwards; pointer-events: none; }
@keyframes xpfloat { 0% { transform: translateY(10px); opacity: 0; } 15% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
.ach-pop { position: fixed; left: 50%; top: 70px; transform: translateX(-50%); z-index: 95; display: flex; gap: 12px; align-items: center; padding: 12px 18px; border-radius: 14px; background: var(--card); border: 1px solid var(--gold); box-shadow: 0 10px 40px rgba(0, 0, 0, .6); animation: achin .4s ease-out; max-width: 92vw; }
.ach-pop.out { transition: opacity .6s; opacity: 0; }
.ach-ic { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 200, 61, .18); color: var(--gold); flex: 0 0 auto; }
@keyframes achin { from { transform: translate(-50%, -20px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
.ach-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ach { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 10px; background: var(--raise); border: 1px solid var(--line); opacity: .55; }
.ach.on { opacity: 1; border-color: rgba(255, 200, 61, .5); }
.ach .ach-ic { width: 36px; height: 36px; }
.creq { padding: 12px 0; border-bottom: 1px solid var(--line); }
.creq:last-child { border-bottom: 0; }
.creq p { margin: 6px 0 8px; }
.langrow { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; font-size: .85rem; color: var(--soft); }
.langrow select, .footlang { width: auto; min-height: 30px; padding: 2px 6px; font-size: .85rem; }
.footlang { margin-left: 6px; }
/* battle bar on the stage */
.battle-bar { position: absolute; left: 12px; right: 12px; top: 48px; z-index: 5; padding: 8px 12px; border-radius: 10px; background: rgba(13, 11, 16, .78); backdrop-filter: blur(6px); border: 1px solid rgba(229, 25, 91, .5); }
.battle-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: .9rem; }
.battle-row .vs { font-size: .7rem; letter-spacing: .08em; color: var(--gold); font-weight: 900; }
.battle-row .them a { color: var(--soft); }
.battle-track { height: 8px; margin-top: 6px; border-radius: 999px; background: #4A2A66; overflow: hidden; }
.battle-fill { height: 100%; background: linear-gradient(90deg, var(--pink), #FF7AA8); transition: width .5s; }
/* co-host picture-in-picture */
.cohost-cam { position: absolute; right: 12px; bottom: 70px; width: 30%; max-width: 280px; min-width: 140px; aspect-ratio: 16 / 9; z-index: 6; border-radius: 10px; overflow: hidden; border: 2px solid rgba(255, 255, 255, .25); background: #000; box-shadow: 0 6px 24px rgba(0, 0, 0, .6); }
.cohost-cam video { width: 100%; height: 100%; object-fit: cover; }
.cohost-cam .chip-dark { position: absolute; left: 6px; bottom: 6px; }
/* VR */
.vr-btn { min-height: 32px; padding: 0 10px; font-size: .8rem; border-color: var(--gold); color: var(--gold); }
.vr-btn.on { background: var(--gold); color: #1a1205; }
.vr-wrap { position: absolute; inset: 0; z-index: 8; background: #000; display: flex; flex-direction: column; }
.vr-wrap canvas { flex: 1; width: 100% !important; height: auto !important; min-height: 0; touch-action: none; cursor: grab; }
.vr-bar { display: flex; align-items: center; gap: 10px; padding: 6px 10px; font-size: .85rem; color: var(--soft); background: rgba(13, 11, 16, .9); }
.vr-bar span { flex: 1; }
.dm-pic { display: block; max-width: 260px; max-height: 260px; border-radius: 8px; margin-bottom: 6px; }
.stage-row input:first-child { flex: 1; }
@media (max-width: 700px) { .cohost-cam { bottom: 60px; width: 36%; } .battle-bar { top: 44px; padding: 6px 8px; } .ach-grid { grid-template-columns: 1fr 1fr; } }
.bars .bar-col { flex: 1; display: flex; align-items: flex-end; height: 100%; min-width: 0; }
.bars .bar-col .bar-v { width: 100%; border-radius: 3px 3px 0 0; background: var(--pink); min-height: 2px; }
.bars-x span { min-width: 0; overflow: hidden; }
/* Progress bars (XP, uploads). Not .bar: the site header uses that class. */
.progress { height: 8px; border-radius: 999px; background: var(--raise); overflow: hidden; }
.progress .fill { height: 100%; background: linear-gradient(90deg, var(--pink), var(--gold)); transition: width .4s; }

/* ---------- Android app: download page and in-site bars ---------- */
.app-page { max-width: 860px; }
.app-hero { display: flex; gap: 28px; align-items: center; padding: 34px 0 26px; }
.app-hero-icon { flex: 0 0 auto; width: 132px; height: 132px; border-radius: 30px; box-shadow: 0 0 0 1px rgba(107, 255, 200, .18), 0 18px 50px rgba(52, 245, 168, .18); }
.app-hero h1 { font-size: 2rem; margin-bottom: .35em; }
.app-hero .lede { color: var(--soft); font-size: 1.05rem; max-width: 52ch; margin: 0 0 16px; }
.app-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.app-cta .btn.lg { min-height: 52px; padding: 0 26px; font-size: 1.05rem; }
.app-hero .notice { margin-bottom: 14px; max-width: 52ch; }
.app-steps, .app-ios { border-top: 1px solid var(--line); padding: 24px 0; }
.app-steps ol { margin: 14px 0 10px; padding: 0; list-style: none; counter-reset: step; display: grid; gap: 12px; }
.app-steps li { counter-increment: step; position: relative; padding: 14px 16px 14px 58px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); line-height: 1.5; }
.app-steps li::before { content: counter(step); position: absolute; left: 16px; top: 13px; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--pink); color: #fff; font-weight: 800; font-size: .9rem; }
.app-ios p { max-width: 64ch; line-height: 1.55; }
.app-sum { word-break: break-all; padding-bottom: 20px; }
.appbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 80; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 12px; border-radius: 14px; background: rgba(26, 22, 32, .97); border: 1px solid var(--line2); box-shadow: 0 12px 40px rgba(0, 0, 0, .6); max-width: 560px; margin: 0 auto; animation: appbarIn .35s ease-out; }
.appbar img { border-radius: 10px; flex: 0 0 auto; }
.appbar-t { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.appbar-t span { color: var(--soft); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.appbar .btn.sm { flex: 0 0 auto; }
@keyframes appbarIn { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .appbar { animation: none; } }
@media (max-width: 600px) { .app-hero { flex-direction: column; align-items: flex-start; gap: 18px; padding-top: 20px; } .app-hero-icon { width: 96px; height: 96px; border-radius: 22px; } .app-hero h1 { font-size: 1.6rem; } }
body.has-appbar { padding-bottom: 86px; }
