:root { color-scheme: light; --bg:#f5f6fa; --card:#fff; --ink:#151820; --muted:#687080; --line:#dfe3ea; --brand:#ec174c; --brand-dark:#b90e37; --soft:#fff0f4; }
:root[data-theme="dark"] { color-scheme:dark; --bg:#0d1421; --card:#172235; --ink:#f2f5fa; --muted:#aab5c7; --line:#30405a; --soft:#311a29; }
* { box-sizing:border-box; }
[hidden] { display:none !important; }
body { margin:0; background:var(--bg); color:var(--ink); font:15px/1.45 Arial, sans-serif; }
button,input,textarea,select { font:inherit; }
button { cursor:pointer; }
.party-header { height:62px; padding:0 clamp(16px,4vw,48px); display:flex; align-items:center; justify-content:space-between; background:var(--card); border-bottom:1px solid var(--line); position:sticky; top:0; z-index:50; }
.party-brand { border:1px solid var(--line); color:var(--ink); background:var(--card); padding:8px 12px; border-radius:9px; text-decoration:none; }
.party-header nav { display:flex; align-items:center; gap:10px; }.party-header nav a,.party-header button,.subtle { border:1px solid var(--line); color:var(--ink); background:var(--card); padding:8px 12px; border-radius:9px; text-decoration:none; }
main { max-width:1500px; margin:0 auto; padding:10px clamp(12px,3vw,40px) 50px; }
.lobby-card { max-width:560px; margin:5vh auto; border:1px solid var(--line); border-radius:24px; overflow:hidden; background:var(--card); box-shadow:0 24px 70px rgba(15,25,45,.13); }
.lobby-copy { padding:clamp(30px,5vw,64px); display:flex; flex-direction:column; justify-content:center; }.lobby-copy h1 { margin:4px 0 14px; font-size:clamp(32px,4vw,50px); line-height:1.05; }.lobby-copy>p:not(.eyebrow) { color:var(--muted); font-size:17px; }
.eyebrow { margin:0; color:var(--brand); text-transform:uppercase; letter-spacing:.12em; font-size:12px; font-weight:800; }
label { display:grid; gap:6px; font-weight:700; margin:16px 0; }input,textarea,select { width:100%; border:1px solid var(--line); background:var(--card); color:var(--ink); border-radius:10px; padding:12px; }input:focus,textarea:focus,select:focus { outline:3px solid rgba(236,23,76,.17); border-color:var(--brand); }
.optional { display:inline; color:var(--muted); font-size:12px; font-weight:400; }
.lobby-actions { display:flex; gap:10px; margin-top:18px; }.lobby-actions button,.primary { border:0; border-radius:10px; padding:11px 16px; font-weight:700; }.lobby-actions button:not(.primary) { border:1px solid var(--line); background:var(--card); color:var(--ink); }.primary { background:var(--brand); color:#fff; }.primary:hover { background:var(--brand-dark); }.status { min-height:22px; color:var(--muted); }.status.error { color:#c91c36; }
.connection { color:var(--muted); font-size:12px; }.connection.online { color:#168149; }
.switch { display:flex; grid-auto-flow:column; align-items:center; gap:8px; margin:0; font-weight:600; }.switch input { width:18px; height:18px; margin:0; }
.party-grid { display:grid; grid-template-columns:minmax(0,1fr) 350px; gap:18px; align-items:start; }.screen-column,.social-column { min-width:0; }.social-column { display:flex; flex-direction:column; gap:14px; position:sticky; top:72px; height:calc(100vh - 84px); min-height:0; overflow:hidden; padding-right:2px; }.social-column>.people-card { flex:0 0 auto; }.social-column .chat-card { flex:1 1 0; height:0; min-height:0; overflow:hidden; }.social-column .chat-list { flex:1 1 0; min-height:0; overflow-y:auto; }
.theater { position:relative; width:100%; aspect-ratio:16/9; overflow:hidden; border-radius:16px 16px 0 0; background:#000; box-shadow:0 16px 42px rgba(0,0,0,.25); }.theater video { width:100%; height:100%; display:block; background:#000; }.overlay-stage { position:absolute; inset:0; overflow:hidden; pointer-events:none; }.seat-layer { position:absolute; left:0; right:0; bottom:0; width:100%; height:auto; z-index:1; }.speech-bubble { --seat-x:50%; --seat-y:73%; --tail-x:50%; position:absolute; left:var(--seat-x); top:var(--seat-y); z-index:4; transform:translate(-50%,-100%); width:180px; max-width:42vw; padding:8px 11px; border-radius:13px; background:#fff; color:#111; border:2px solid #171717; box-shadow:0 4px 12px rgba(0,0,0,.3); font-weight:700; font-size:clamp(10px,1.1vw,14px); line-height:1.25; text-align:center; overflow-wrap:anywhere; animation:bubble-in .18s ease-out; }.speech-bubble::before,.speech-bubble::after { content:""; position:absolute; left:var(--tail-x); transform:translateX(-50%); width:0; height:0; }.speech-bubble::before { bottom:-13px; border-left:10px solid transparent; border-right:10px solid transparent; border-top:13px solid #171717; }.speech-bubble::after { bottom:-9px; border-left:8px solid transparent; border-right:8px solid transparent; border-top:11px solid #fff; }
/* Coordinates are measured from the character in the matching numbered overlay. */
.speech-bubble[data-seat="1"]{--seat-x:6.4%;--seat-y:78%;--tail-x:15%;transform:translate(-15%,-100%)}
.speech-bubble[data-seat="2"]{--seat-x:19.5%;--seat-y:72.5%}
.speech-bubble[data-seat="3"]{--seat-x:31.8%;--seat-y:80%}
.speech-bubble[data-seat="4"]{--seat-x:44.8%;--seat-y:78%}
.speech-bubble[data-seat="5"]{--seat-x:56.5%;--seat-y:82%}
.speech-bubble[data-seat="6"]{--seat-x:68.6%;--seat-y:76%}
.speech-bubble[data-seat="7"]{--seat-x:81.8%;--seat-y:79%}
.speech-bubble[data-seat="8"]{--seat-x:93.1%;--seat-y:80%;--tail-x:85%;transform:translate(-85%,-100%)}
.seat-name { --seat-x:50%; position:absolute; left:var(--seat-x); bottom:2.2%; z-index:3; transform:translateX(-50%); max-width:12%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; padding:3px 7px; border:1px solid rgba(255,255,255,.8); border-radius:999px; background:rgba(8,12,22,.82); color:#fff; box-shadow:0 2px 7px rgba(0,0,0,.45); font-size:clamp(8px,1vw,13px); font-weight:800; text-align:center; }
.seat-name[data-seat="1"]{--seat-x:6.4%}.seat-name[data-seat="2"]{--seat-x:19.5%}.seat-name[data-seat="3"]{--seat-x:31.8%}.seat-name[data-seat="4"]{--seat-x:44.8%}.seat-name[data-seat="5"]{--seat-x:56.5%}.seat-name[data-seat="6"]{--seat-x:68.6%}.seat-name[data-seat="7"]{--seat-x:81.8%}.seat-name[data-seat="8"]{--seat-x:93.1%}
.external-controls { display:grid; grid-template-columns:auto auto minmax(80px,1fr) auto auto minmax(60px,100px); gap:9px; align-items:center; padding:9px 12px; border-radius:0 0 13px 13px; background:#111722; color:#fff; box-shadow:0 10px 24px rgba(0,0,0,.2); }.external-controls button { width:34px; height:30px; border:0; border-radius:7px; background:#2c3545; color:#fff; }.external-controls input { margin:0; padding:0; accent-color:var(--brand); }.external-controls span { min-width:38px; font-size:12px; font-variant-numeric:tabular-nums; text-align:center; }.external-controls :disabled { opacity:.45; cursor:not-allowed; }
.player-tools { display:flex; justify-content:flex-end; padding:8px 2px 0; }.player-tools button { padding:7px 11px; }
@keyframes bubble-in { from { opacity:0; transform:translate(-50%,-85%) scale(.8); } }
.resync-btn { position:absolute; inset:50% auto auto 50%; transform:translate(-50%,-50%); border:0; background:var(--brand); color:#fff; padding:12px 18px; border-radius:999px; font-weight:700; z-index:20; }
.now-playing { display:flex; justify-content:space-between; align-items:center; gap:16px; padding:12px 2px 8px; }.now-playing>div:first-child>span { color:var(--brand); font-size:11px; font-weight:800; letter-spacing:.1em; }.now-playing h2 { margin:3px 0; font-size:20px; }.playback-options,.media-actions { display:flex; align-items:center; gap:9px; flex-wrap:wrap; justify-content:flex-end; }
.queue-card,.people-card,.poll-card,.chat-card,.dev-tools-card { background:var(--card); border:1px solid var(--line); border-radius:14px; overflow:hidden; }.queue-card { margin-top:10px; }.section-title { padding:12px 14px; display:flex; justify-content:space-between; align-items:center; gap:10px; border-bottom:1px solid var(--line); }.section-title h2 { margin:0; font-size:16px; }.section-title span { color:var(--muted); font-size:13px; }.queue-header-actions { display:flex; align-items:center; justify-content:flex-end; gap:7px; flex-wrap:wrap; }.queue-header-actions .subtle { padding:5px 9px; font-size:12px; }
.queue-list { display:grid; }.queue-item { display:grid; grid-template-columns:72px minmax(0,1fr) auto; gap:11px; align-items:center; padding:10px 13px; border-bottom:1px solid var(--line); }.queue-item:last-child { border-bottom:0; }.queue-item.active { background:var(--soft); }.queue-item.dragging { opacity:.45; }.queue-item[draggable="true"] { cursor:grab; }.queue-item img { width:72px; aspect-ratio:16/9; object-fit:cover; border-radius:6px; }.queue-item strong { display:block; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }.queue-item small { color:var(--muted); }.queue-controls { display:flex; align-items:center; }.queue-item button { width:27px; height:30px; padding:0; border:0; background:transparent; color:var(--muted); font-size:18px; }.queue-item button:disabled { opacity:.25; cursor:default; }
.people-list { padding:8px; display:flex; flex-wrap:wrap; gap:7px; }.person { display:flex; align-items:center; gap:6px; padding:6px 9px; border-radius:999px; background:var(--bg); }.seat-dot { width:21px; height:21px; display:grid; place-items:center; border-radius:50%; color:#fff; background:var(--brand); font-size:11px; font-weight:800; }.host-badge { color:var(--brand); font-size:10px; font-weight:800; }.muted-badge { color:#a45b00; font-size:10px; font-weight:800; }.manage-person { width:21px; height:21px; display:grid; place-items:center; margin-left:1px; padding:0; border:0; border-radius:50%; background:#dce1e9; color:#343a46; font-weight:900; line-height:1; }
.fake-badge { color:var(--muted); font-size:10px; font-weight:800; }.dev-tools-card { border-color:#8b5cf6; }.dev-tools-card .section-title { background:rgba(139,92,246,.1); }.dev-form,.dev-message-form { display:grid; gap:7px; padding:10px 12px 0; }.dev-form { grid-template-columns:1fr 1fr; }.dev-form button { grid-column:1/-1; }.dev-message-form { grid-template-columns:1fr; }.dev-form input,.dev-form select,.dev-message-form input,.dev-message-form select { margin:0; padding:9px; }.dev-form button,.dev-message-form button { border:0; border-radius:8px; background:#7251c9; color:#fff; font-weight:700; padding:8px 12px; }.dev-remove { margin:9px 12px 12px; border:1px solid var(--line); background:var(--card); color:var(--ink); border-radius:8px; padding:7px 10px; }
.chat-card { position:relative; display:flex; flex-direction:column; min-height:330px; }.chat-list { flex:0 0 clamp(180px,28vh,320px); overflow:auto; padding:12px; }.chat-message { margin:0 0 10px; }.chat-message strong { color:var(--brand); margin-right:5px; }.chat-message time { color:var(--muted); font-size:11px; }.chat-message p { margin:2px 0; overflow-wrap:anywhere; }.chat-message.system { padding:8px 10px; border-radius:8px; background:var(--soft); }.chat-form { flex:0 0 auto; display:grid; grid-template-columns:minmax(0,1fr) auto auto; gap:7px; padding:10px; border-top:1px solid var(--line); }.chat-form input { min-width:0; height:38px; margin:0; padding:9px; }.chat-form button { height:38px; border:0; border-radius:8px; background:var(--brand); color:white; font-weight:700; padding:0 13px; }.chat-form .reaction-button { width:38px; padding:0; background:var(--card); color:var(--ink); border:1px solid var(--line); font-size:20px; }.inline-emoji { display:inline-block; width:1.55em; height:1.55em; margin:0 .08em; object-fit:contain; vertical-align:-.4em; }.chat-sticker { display:block; width:min(170px,70%); max-height:170px; object-fit:contain; object-position:left center; }.speech-bubble .inline-emoji { width:2em; height:2em; }.sticker-bubble { width:auto; padding:5px; background:rgba(255,255,255,.94); }.sticker-bubble img { display:block; width:clamp(70px,10vw,145px); max-height:145px; object-fit:contain; }.reaction-picker { position:absolute; right:10px; bottom:59px; z-index:20; width:min(320px,calc(100% - 20px)); max-height:350px; overflow:hidden; border:1px solid var(--line); border-radius:12px; background:var(--card); box-shadow:0 12px 35px rgba(0,0,0,.35); }.reaction-tabs { display:grid; grid-template-columns:1fr 1fr; padding:7px; gap:6px; border-bottom:1px solid var(--line); }.reaction-tabs button { border:1px solid var(--line); border-radius:8px; padding:7px; background:var(--card); color:var(--ink); }.reaction-tabs button.active { background:var(--brand); border-color:var(--brand); color:#fff; }.reaction-grid { display:grid; grid-template-columns:repeat(6,1fr); gap:4px; max-height:294px; overflow-y:auto; padding:8px; }.reaction-grid button { display:grid; place-items:center; min-width:0; aspect-ratio:1; padding:3px; border:0; border-radius:7px; background:transparent; }.reaction-grid button:hover { background:var(--soft); }.reaction-grid img { width:100%; height:100%; object-fit:contain; }.sticker-grid { grid-template-columns:repeat(3,1fr); }.sticker-grid button { aspect-ratio:1.15; }
.poll-card { margin:-12px -12px 12px; padding-bottom:12px; border:0; border-radius:0; border-bottom:1px solid var(--line); overflow:visible; }.poll-card>p,.poll-card>#pollOptions,.poll-card>#closePollBtn { margin-left:13px; margin-right:13px; }.poll-option { width:100%; text-align:left; display:grid; grid-template-columns:1fr auto; gap:8px; position:relative; overflow:hidden; border:1px solid var(--line); color:var(--ink); background:var(--card); border-radius:8px; padding:9px; margin:7px 0; }.poll-option::before { content:""; position:absolute; inset:0 auto 0 0; width:var(--poll-pct); background:rgba(236,23,76,.13); }.poll-option>* { position:relative; }.poll-option.selected { border-color:var(--brand); }
.empty { color:var(--muted); padding:14px; margin:0; }.modal { position:fixed; inset:0; z-index:100; display:grid; place-items:center; padding:18px; background:rgba(5,8,15,.75); }.dialog { width:min(850px,100%); max-height:88vh; overflow:auto; border-radius:16px; background:var(--card); border:1px solid var(--line); box-shadow:0 25px 80px rgba(0,0,0,.4); }.dialog-head { display:flex; justify-content:space-between; align-items:center; padding:14px 18px; position:sticky; top:0; z-index:3; background:var(--card); border-bottom:1px solid var(--line); }.dialog-head h2 { margin:0; }.dialog-head button { border:0; background:transparent; color:var(--ink); font-size:28px; }.wide-input { margin:14px; width:calc(100% - 28px); }.video-picker,.playlist-picker { padding:0 14px 16px; display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; }.video-choice,.playlist-choice { display:grid; grid-template-columns:105px minmax(0,1fr) auto; gap:10px; align-items:center; text-align:left; border:1px solid var(--line); color:var(--ink); background:var(--card); padding:7px; border-radius:10px; }.video-choice:hover,.playlist-choice:hover { background:var(--soft); }.video-choice img { width:105px; aspect-ratio:16/9; object-fit:cover; border-radius:6px; }.video-choice strong,.playlist-choice strong { display:block; font-size:13px; }.video-choice small,.playlist-choice small { display:block; color:var(--muted); }.video-choice b,.playlist-choice b { color:var(--brand); font-size:20px; }.playlist-thumbs { width:105px; display:grid !important; grid-template-columns:1fr 1fr; gap:2px; }.playlist-thumbs img { width:100%; aspect-ratio:16/9; object-fit:cover; }.playlist-thumbs img:first-child { border-radius:6px 0 0 0; }.playlist-thumbs img:nth-child(2) { border-radius:0 6px 0 0; }.playlist-thumbs img:nth-last-child(2) { border-radius:0 0 0 6px; }.playlist-thumbs img:last-child { border-radius:0 0 6px 0; }.poll-dialog { width:min(500px,100%); }.poll-dialog form { padding:5px 18px 20px; }
.moderation-dialog { width:min(430px,100%); }.moderation-dialog>p { margin:16px 18px 5px; font-size:17px; font-weight:700; }.moderation-actions { display:grid; grid-template-columns:1fr 1fr; gap:9px; padding:12px 18px 20px; }.moderation-actions button { border:1px solid var(--line); border-radius:9px; padding:10px; background:var(--card); color:var(--ink); }.moderation-actions button:hover { background:var(--soft); }.moderation-actions .danger { color:#c51f3d; border-color:#e7a8b5; }.moderation-actions button:disabled { opacity:.45; cursor:not-allowed; }
:root[data-theme="dark"] .party-header,:root[data-theme="dark"] .dialog { box-shadow:none; }
@media (max-width:980px) { main { padding-left:0; padding-right:0; padding-top:0; }.party-grid { display:block; }.theater { border-radius:0; }.external-controls { border-radius:0; }.screen-column { width:100%; }.now-playing,.queue-card { margin-left:12px; margin-right:12px; }.social-column { position:static; height:auto; overflow:visible; padding:14px 12px; }.chat-card { min-height:520px; }.lobby-card { margin:10px 12px; }.video-picker,.playlist-picker { grid-template-columns:1fr; } }
@media (max-width:560px) { .party-header nav a { display:none; }.room-heading { align-items:start; flex-direction:column; }.room-actions { justify-content:flex-start; }.lobby-copy { padding:28px 22px; }.lobby-actions { flex-direction:column; }.speech-bubble { width:140px; max-width:42vw; padding:6px; }.seat-name { max-width:17%; }.external-controls { grid-template-columns:auto auto minmax(60px,1fr) auto auto; gap:5px; padding:7px 6px; }.external-controls #volumeControl { display:none; }.video-choice { grid-template-columns:84px 1fr auto; }.video-choice img { width:84px; } }
