/* Random chat: a quiet violet surface, clear consent and opt-in video. */
.guest-entry{padding:15px 16px;border-radius:17px;background:linear-gradient(120deg,#a18aff13,#6479be08);margin:0 0 17px;border-color:#a99af52e;position:relative}.guest-entry-heading{display:flex;align-items:center;gap:12px}.guest-entry-icon{width:39px;height:39px;border:1px solid #b4a3f52b;border-radius:13px;background:#a18aff12;display:grid;place-items:center;color:#c4b7ff;flex:none}.guest-entry-icon svg{width:21px;height:21px}.guest-entry .guest-eyebrow{font-size:8px;letter-spacing:.13em}.guest-entry h3{font-size:16px;margin:3px 0 4px;letter-spacing:-.3px}.guest-entry p{font-size:10px;margin:0;line-height:1.45;color:#a4abc1}.guest-entry>button{margin:12px 0 0!important;min-height:40px!important;padding:10px 13px;border-radius:11px;background:linear-gradient(110deg,#b7a6ff,#9480e1);font-size:12px;box-shadow:inset 0 1px #ffffff38}.guest-entry small{font-size:9px;margin-top:9px;opacity:.6}.auth-divider{font-size:9px;margin-bottom:20px;gap:14px}.auth-card .auth-form input{transition:border-color .2s,background .2s,box-shadow .2s}.auth-card .auth-form input:focus{box-shadow:0 0 0 3px #a69aee0e}.auth-card .auth-form button{transition:filter .2s,transform .2s}.auth-card .auth-form button:active{transform:translateY(1px)}
#randomView{background:radial-gradient(ellipse at 80% 0,#6d54ac13,transparent 52%),#10121c}#randomView>.topbar{background:#131623c9!important;border-bottom:1px solid #ffffff08;gap:14px;padding:18px}#randomView>.topbar h1{font-size:19px;letter-spacing:-.6px}#randomView>.topbar .icon-btn{border-radius:13px;width:39px;height:39px;border-color:#ffffff10;background:#ffffff04}.random-body{padding:16px;gap:0}.random-card{width:100%;max-width:440px;border:1px solid #aca2d21b;border-top-color:#c8bcf934;background:linear-gradient(155deg,#26233a88,#171b2844);border-radius:28px;padding:30px 24px;box-shadow:0 20px 60px #00000020;gap:16px}.random-card h2{font-size:27px;line-height:1.15;letter-spacing:-.9px;font-weight:600}.random-card>p{font-size:13px;line-height:1.75;color:#a4acc4;max-width:340px}.random-eyebrow{font-size:8px;letter-spacing:.18em;font-weight:600;color:#b9abed}.random-hero-mark{width:66px;height:66px;display:grid;place-items:center;border-radius:23px;background:linear-gradient(145deg,#a18bf12d,#5b6cbd13);border:1px solid #b4a3f533;color:#cfc2ff;box-shadow:inset 0 1px #ffffff10,0 10px 35px #8d6bd00c;margin:0 0 6px}.random-hero-mark svg{width:28px;height:28px}.random-consent{margin:7px 0;font-size:11px;color:#c3c8d9;line-height:1.7;background:#ffffff03;padding:13px;border:1px solid #ffffff0b;border-radius:13px;width:100%;gap:10px}.random-consent input{width:17px;height:17px}.random-card>.btn-primary{width:100%;min-height:49px;display:flex;align-items:center;justify-content:center;gap:10px;border-radius:14px;font-size:13px;background:linear-gradient(110deg,#b5a1ff,#8e78e3);color:#171329;border:1px solid #d1c3ff45;box-shadow:inset 0 1px #ffffff28}.random-card button svg{width:18px;height:18px}.random-safety{width:100%;border-top:1px solid #ffffff0a;padding-top:16px;text-align:left;margin-top:4px}.random-safety summary{display:flex;align-items:center;gap:9px;cursor:pointer;font-size:11px;color:#9ba4bf;list-style:none;min-height:32px}.random-safety summary::-webkit-details-marker{display:none}.random-safety summary svg{width:15px;height:15px}.safety-plus{margin-left:auto;font-size:18px}.random-safety[open] .safety-plus{transform:rotate(45deg)}.random-safety .random-note{font-size:10px!important;line-height:1.85;color:#929cb6;padding:12px 0 0}.random-card:focus-within{border-color:#c8bcf934}
/* Search orbits use CSS transforms only. No fictional online count. */
#randomSearchPane .random-card{border:0;background:none;box-shadow:none;padding:28px 18px}#randomSearchPane h2{font-size:25px;max-width:290px}.random-orbit{width:190px;height:190px;position:relative;margin:0 0 26px;display:grid;place-items:center}.random-orbit i{position:absolute;border:1px solid #aa94ee21;border-radius:50%;inset:0;animation:rnd-breathe 3.5s ease-in-out infinite}.random-orbit i:nth-child(2){inset:24px;animation-delay:.4s}.random-orbit i:nth-child(3){inset:48px;background:#a18aff04;animation-delay:.8s}.random-orbit>div{display:grid;place-items:center;width:61px;height:61px;border-radius:22px;background:linear-gradient(145deg,#574381,#302940);border:1px solid #c9b8ff3b;box-shadow:0 0 55px #9b7de320;transform:rotate(-8deg)}.random-orbit svg{width:26px;height:26px;color:#ded3ff}.random-orbit b{position:absolute;inset:0;border-radius:50%;animation:rnd-orbit 12s linear infinite}.random-orbit b:after{content:'';position:absolute;width:9px;height:9px;left:50%;top:-4px;background:#bcaff5;border-radius:50%;box-shadow:0 0 15px #b4a0ee50}.random-orbit b:last-child{inset:25px;animation-direction:reverse;animation-duration:9s}.random-orbit b:last-child:after{width:6px;height:6px;background:#778ac1}.random-search-time{font:11px ui-monospace,monospace;color:#a5aec6;border:1px solid #ffffff10;background:#ffffff04;border-radius:30px;padding:7px 13px;letter-spacing:.08em}#randomCancel{margin-top:4px;min-width:135px;border-color:#ffffff13;color:#bcc3d7;background:#ffffff04;font-size:12px}
.random-chat-head{padding:0 0 13px;gap:11px;border:0}.random-stranger-icon{display:grid;place-items:center;width:38px;height:38px;border-radius:14px;background:#a58bed16;border:1px solid #b7a3ef20;color:#c8b7f5}.random-stranger-icon svg{width:19px;height:19px}.random-chat-head b{font-size:13px;font-weight:600}.random-chat-head small{display:block;font-size:10px;color:#818da9;margin-top:4px}.random-session-badge{margin-left:auto;font-size:9px;letter-spacing:.09em;color:#9b92bd;border:1px solid #a799c822;border-radius:7px;padding:6px 8px}.random-video{padding:13px;border:1px solid #b3a4dc19;border-radius:19px;background:linear-gradient(130deg,#a58be70a,#536c9e06)}.random-video-bar{gap:12px}.random-video-bar #randomVideoStart{display:flex;align-items:center;gap:7px;min-height:40px;padding:10px 13px;background:#ae94fa1a;border-color:#b9a0fc2b;color:#d3c3ff;border-radius:12px;font-size:11px}.random-video-bar svg{width:16px;height:16px}.random-video-bar span[role=status]{font-size:10px;line-height:1.6;color:#929cb4}.random-video-bar span[data-connected=true]{color:#9bc9b5}.random-video-bar span[data-connected=true]:before{content:'';display:inline-block;background:#80c4a6;width:5px;height:5px;border-radius:50%;margin-right:6px}.random-video-stage{height:clamp(230px,38dvh,440px);margin-top:12px;border-radius:14px;position:relative;background:radial-gradient(ellipse at 30% 25%,#242137,#0b0e17 65%);border:1px solid #c6b5ef15;isolation:isolate}.random-video-stage #randomRemoteVideo{position:absolute;inset:0;object-fit:contain;width:100%;height:100%}.random-video-stage #randomLocalVideo{width:82px;height:108px;right:10px;bottom:10px;border:1px solid #ffffff45;border-radius:12px;z-index:3;box-shadow:0 4px 20px #0005;background:#171a29}.random-video-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;color:#818ba6;pointer-events:none;z-index:1}.random-video-placeholder svg{width:30px;height:30px;opacity:.6;margin-bottom:5px}.random-video-placeholder b{font-size:12px;font-weight:500}.random-video-placeholder span{font-size:10px;color:#636f8a}.random-remote-label{position:absolute;left:12px;top:12px;padding:6px 9px;background:#131523a6;border:1px solid #ffffff13;color:#c2c9dd;font-size:9px;border-radius:7px;z-index:2;backdrop-filter:blur(12px)}.random-self-label{position:absolute;right:19px;bottom:17px;font-size:8px;z-index:4;color:#fff;text-shadow:0 1px 4px #000}.random-expand{position:absolute;right:10px;top:10px;z-index:4;width:31px;height:31px;display:grid;place-items:center;background:#10131da6;color:#d9d6e6;border:1px solid #ffffff1a;border-radius:9px}.random-expand svg{width:16px;height:16px}.random-video-controls{padding:11px 0 0;gap:7px}.random-video-controls button{display:flex;align-items:center;justify-content:center;gap:6px;font-size:10px;min-height:38px;border-radius:11px;padding:8px 11px;background:#ffffff05;border-color:#ffffff0e}.random-video-controls svg{width:15px;height:15px;flex:none}#randomVideoStop,#randomEnd{color:#e0a1ae;background:#d8778910;border-color:#dc82951c}
.random-text-empty{margin:auto;padding:28px 14px 10px;text-align:center;display:flex;align-items:center;flex-direction:column;gap:10px;flex:none}.random-text-empty>span{width:31px;height:31px;display:grid;place-items:center;border-radius:11px;background:#8c7ba00c;color:#6f6a8d}.random-text-empty svg{width:15px;height:15px}.random-text-empty b{font-size:12px;font-weight:500;color:#a0a8bf}.random-text-empty p{font-size:10px;color:#67748e;line-height:1.7}.random-msgs{gap:9px;padding:18px 1px 12px}.rnd-msg{font-size:12px;line-height:1.6;padding:10px 13px;border-radius:16px;max-width:85%;box-shadow:0 1px 2px #0001}.rnd-msg.me{background:linear-gradient(130deg,#8063ce,#6b56af);border-bottom-right-radius:5px}.rnd-msg.them{background:#202636;border:1px solid #363e532e;border-bottom-left-radius:5px}.random-composer{padding:8px;border:1px solid #8d96b825;background:#191e2c;border-radius:18px;gap:6px;flex:none}.random-composer input{border:0;background:none;padding:5px 8px;font-size:12px;min-height:35px;outline:none}.random-composer #randomSend{border-radius:12px;min-height:36px;padding:8px 15px;font-size:12px;background:#ab93f2;color:#1d1530}.random-actions{gap:7px;padding-top:10px;flex:none}.random-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;font-size:9px!important;min-height:48px;padding:7px 4px!important;border-radius:12px;border-color:#ffffff0a;background:#ffffff03;color:#929db7}.random-actions button svg{width:16px;height:16px}#randomNext{background:#ac93ed12;border-color:#b4a0ee20;color:#c5b5ed}.random-finish #randomEndedText{font-size:20px;letter-spacing:-.5px;color:#d5d9e7}.random-finish #randomDone{font-size:11px;border:0;background:none;color:#8b94ae}
/* Immersive mode keeps essential chat-safety buttons above the video. */
#randomView.video-expanded .random-video-stage{position:fixed;inset:0;margin:0;width:100%;height:100%;border:0;border-radius:0;z-index:31;background:#080a10}#randomView.video-expanded .random-video-controls{position:fixed;bottom:80px;left:12px;right:12px;z-index:34}#randomView.video-expanded .random-video-controls button{background:#171c2de0;backdrop-filter:blur(12px);border-color:#ffffff22;min-height:44px}#randomView.video-expanded .random-actions{position:fixed;bottom:15px;left:12px;right:12px;z-index:34}#randomView.video-expanded .random-actions button{background:#171c2de0;backdrop-filter:blur(12px);border-color:#ffffff1b}#randomView.video-expanded #randomLocalVideo{bottom:155px;right:16px;width:96px;height:128px}#randomView.video-expanded .random-self-label{bottom:162px;right:26px}#randomView.video-expanded .random-video-placeholder{padding:0 20px 70px;text-align:center}#randomView.video-expanded .random-expand{top:18px;right:18px;width:39px;height:39px}#randomView.video-expanded .random-remote-label{top:20px;left:18px}
@keyframes rnd-orbit{to{transform:rotate(360deg)}}@keyframes rnd-breathe{0%,100%{opacity:.4;transform:scale(.98)}50%{opacity:1;transform:scale(1.02)}}@keyframes rnd-arrive{from{opacity:0;transform:translateY(5px)}to{opacity:1;transform:none}}#randomView .random-pane:not(.hidden){animation:rnd-arrive .24s ease-out}#randomView button{transition:background .18s,border-color .18s,transform .18s}#randomView button:active{transform:scale(.97)}#randomView button:focus-visible{outline:2px solid #bdadf2;outline-offset:3px}
@media(max-width:899px){.guest-entry{padding:13px 14px}.guest-entry p{font-size:10px}.guest-entry small{margin-top:8px}.auth-card .brand{height:202px;min-height:202px}.auth-card .auth-dialogue-art{width:140px;height:140px;right:calc(50% - 70px);top:51px}.auth-intro{margin:12px 0 23px}.auth-intro h2{font-size:31px}.auth-intro p{font-size:7px;margin-bottom:9px}}
@media(min-width:900px){.auth-card .auth-form{margin-top:22px}.auth-card .guest-entry{align-self:end;margin-bottom:10px}.auth-card .auth-divider{margin:4px 0 0}.random-body{padding:22px}.random-video-stage{height:clamp(240px,40dvh,440px)}#randomView.video-expanded .random-actions{left:calc(50% - 220px);right:calc(50% - 220px)}#randomView.video-expanded .random-video-controls{left:calc(50% - 220px);right:calc(50% - 220px)}}
@media(max-height:700px) and (max-width:899px){.auth-card .brand{height:135px;min-height:135px}.auth-card .auth-dialogue-art{width:92px;height:92px;top:34px;right:calc(50% - 46px)}.auth-intro h2{font-size:26px}.auth-intro{margin:8px 0 18px}.random-body{padding:12px}.random-card{padding:22px 18px;border-radius:22px}.random-video-stage{height:clamp(130px,28dvh,200px)}.random-text-empty{padding:15px 5px 0}.random-video{padding:10px}.random-chat-head{padding-bottom:9px}.random-video-controls button{padding:7px 8px}.random-orbit{width:146px;height:146px;margin-bottom:18px}}
@media(prefers-reduced-motion:reduce){.random-orbit *,.random-pane{animation:none!important}#randomView button{transition:none!important}}

.random-preferences{display:grid;grid-template-columns:1fr 1fr;gap:10px;width:100%;text-align:left;margin:5px 0 0}.random-preferences label{font-size:10px;line-height:1.5;color:#a8b1c9}.random-preferences select{display:block;width:100%;min-width:0;min-height:43px;padding:10px 9px;margin-top:7px;border-radius:11px;border:1px solid #b1a0e12b;background:#1e2333;color:#dedff0;font:11px Inter,sans-serif;outline-color:#b4a1f0}.random-preference-note{font-size:10px!important;line-height:1.7!important;color:#939db6!important}.random-filter-summary{font-size:11px!important;border:1px solid #aa9bc92b;background:#ad91e30a;border-radius:12px;padding:10px 14px;color:#c0b4df!important}.random-wait-note{font-size:10px!important;line-height:1.8!important;color:#7f8ba7!important}#randomChangePreferences{font-size:11px;background:#ac93ed14;border-color:#ab96e32b;color:#bfb0e8;padding:10px 16px}#randomSearchPane .random-orbit{width:148px;height:148px;margin-bottom:10px}#randomSearchPane .random-card{gap:12px;padding-top:15px;padding-bottom:15px}@media(max-height:700px){#randomSearchPane .random-orbit{width:110px;height:110px;margin-bottom:2px}#randomSearchPane .random-card{gap:9px}#randomSearchPane h2{font-size:22px}}

html[data-random-enabled=false] .guest-entry,html[data-random-enabled=false] .auth-divider,html[data-random-enabled=false] #randomBtn{display:none!important}
