:root{font-family:Arial,Helvetica,sans-serif;color:#f6f2ff;background:#211936;color-scheme:dark;--panel:#2c2244;--edge:#7a6094;--muted:#cbbde2;--accent:#8aedd8;--paper:#171020}*{box-sizing:border-box}body{margin:0}main{max-width:1320px;margin:auto;padding:12px 16px 24px}.rooms-header,.tools,.metrics,.room-actions,.dialog-actions{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.rooms-header{justify-content:space-between;margin-bottom:6px}h1{display:flex;align-items:center;gap:7px;color:var(--accent);font-size:22px;margin:0;font-weight:600}h1 img{height:24px;width:24px}h2{font-size:21px;margin:0 0 8px}h3{font-size:15px;margin:0 0 8px}p{line-height:1.4}button,input,select{font:inherit;border:1px solid var(--edge);border-radius:6px;padding:7px 10px}button{cursor:pointer;background:#51366e;color:#fff;font-size:13px}button:hover{filter:brightness(1.12)}button:disabled{opacity:.5;cursor:default}input,select{max-width:100%;min-width:0}input[type=checkbox]{accent-color:#35bba3}input[type=password]{width:100%}button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,.panel-handle:focus-visible{outline:2px solid var(--accent);outline-offset:2px}#status{font-size:13px;min-height:19px;margin:5px 0 9px;color:var(--accent)}#directory{padding:18px;border:1px solid var(--edge);border-radius:10px;background:var(--panel)}#directory>p{font-size:14px;color:var(--muted)}.settings-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 22px}.settings-grid>label{display:grid;align-content:start;gap:5px;font-size:13px}.settings-grid small{font-size:11px;line-height:1.4;color:var(--muted)}.settings-grid>button{align-self:end;background:#9beed9;color:#123c34;min-height:34px;font-weight:600}.rules-option{display:flex;align-items:center;gap:8px;font-size:13px}.rules{position:relative;display:inline-block}.rules summary{display:grid;place-content:center;border:1px solid #8edccc;color:#aef5e5;border-radius:50%;width:20px;height:20px;cursor:pointer;font-size:12px;list-style:none}.rules summary::-webkit-details-marker{display:none}.rules p{position:absolute;top:18px;left:0;z-index:200;background:#fffdf5;color:#25354a;border:1px solid #b7a38d;box-shadow:0 8px 22px #0006;border-radius:8px;padding:12px;font-size:13px;font-weight:400;width:min(360px,75vw);line-height:1.5}.room-card{display:flex;align-items:center;gap:13px;padding:13px 0;border-top:1px solid var(--edge)}.room-card-info{flex:1;min-width:0}.room-card-info p{margin:4px 0;font-size:14px}.room-card-info small{color:var(--muted);font-size:12px}.category-image,.category-fallback{width:66px;height:50px;object-fit:cover;border-radius:7px;flex:0 0 66px}.category-fallback{display:grid;place-content:center;background:#614878;color:#c2ffef;font-size:27px}#workspace{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:10px;align-items:start}.panel{min-width:0;border:1px solid var(--edge);border-radius:8px;background:var(--panel);overflow:visible}.panel-handle{background:#493359;color:#e8def8;font-size:11px;line-height:20px;padding:0 8px;border-radius:7px 7px 0 0}.panel-body{padding:10px;min-width:0}[data-panel=summary]{grid-column:1/-1}.summary-body{display:grid;grid-template-columns:minmax(0,520px) minmax(0,1fr);gap:6px 15px}.summary-body h2{font-size:21px}.summary-body p{margin:5px 0}#category-name{color:var(--muted);font-size:12px}.metrics{margin:6px 0}#progress{color:#ffda77;font-size:17px}#clock{display:inline-block;white-space:nowrap;border:1px solid #4ddac3;border-radius:20px;padding:4px 14px;font-size:15px;font-weight:600;background:#063d3a;color:#83ffeb}#clock.minute-warning{background-image:linear-gradient(to right,#b51f314f var(--red-fill),transparent var(--red-fill))}#progress-bar{height:5px;width:100%;max-width:420px;display:block;accent-color:#75e8d0}#last-answer{align-self:center;justify-self:start;max-width:100%;display:flex;align-items:center;gap:8px;flex-wrap:wrap;border:1px solid #a585cc;border-radius:8px;padding:8px 11px;background:#302841}#last-answer>small:first-child{font-size:10px;letter-spacing:.5px;color:#d9c4fa}#last-answer strong{color:#ffe083}#last-answer small{font-size:11px}#result{font-size:14px}#result strong{display:block;color:#ffe083}#result small{display:block;color:var(--muted)}.rating-change{display:inline-block;margin:5px 12px 5px 0;color:#a4f6e4;font-size:12px}.room-actions{grid-column:1/-1}.room-actions #start{background:#99eed8;color:#163c35;font-weight:600}#start[disabled]{background:#766b84;color:#ddd}#leave{margin-left:auto}[data-panel=answers]{grid-column:1;grid-row:2/4}[data-panel=scores]{grid-column:2;grid-row:2}[data-panel=recent]{grid-column:2;grid-row:3}[data-panel=guess]{grid-column:1;grid-row:4}#remaining-label{display:flex;align-items:center;gap:5px;font-size:12px;font-weight:600;margin:0 0 8px}#ranges{display:flex;gap:7px;overflow-x:auto;padding:4px 3px 8px;scrollbar-width:thin}#ranges button{white-space:nowrap;min-width:max-content;padding:6px 14px;flex:0 0 auto;background:#50356a}#ranges button[aria-pressed=true]{background:#a6f1df;color:#143c34;outline:2px solid #fff;outline-offset:1px}#answers{display:grid;grid-template-rows:repeat(20,auto);grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:6px 16px;background:var(--paper);padding:10px 7px;font-size:13px;min-height:40px}.answer-row{min-width:0;overflow-wrap:anywhere;line-height:1.5}.answer-rank{color:var(--muted)}.solved{background:#fff1a9;color:#321953;padding:0 2px}.missed{background:#ffd5d2;color:#732c32;margin-left:7px;padding:1px 4px;border-radius:3px}.author{display:inline-block;vertical-align:middle;font-size:10px;line-height:1.4;padding:0 4px;margin-left:4px;color:#073b32;border-radius:4px}#scores{padding:0 0 0 24px;margin:5px 0;font-size:13px}#scores li{padding:5px 0;overflow-wrap:anywhere}#scores small{font-size:10px;color:var(--muted)}.rating{display:inline-block;font-size:11px;color:#9cebd9;border:1px solid #7d6a96;border-radius:4px;padding:0 4px;margin-left:6px}.departed{opacity:.65}#rating-note{font-size:11px;color:var(--muted);line-height:1.5}#recent{margin:3px 0;padding-left:20px;font-size:12px}#recent li{margin:5px 0}#guess-form{display:flex;gap:8px}#guess{flex:1;min-width:0;background:#fff;color:#222;border:2px solid #ff681f;font-size:20px;height:47px}#submit{background:#9beed9;color:#123c34;font-weight:600}#guess-feedback{font-size:12px;min-height:16px;margin:5px 0 0;color:var(--accent)}#waiting-hint{font-size:13px;color:var(--muted);margin:10px 0 0}#image-area{text-align:center}#image{display:block;width:100%;height:clamp(180px,40vh,420px);object-fit:contain}#image-position{font-size:14px;color:var(--accent)}#image-answer{font-size:19px;color:#ffdf82;min-height:24px}#saved-answer{font-size:12px;color:var(--muted)}#review-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.review-item{display:flex;gap:10px;padding:10px;border:1px solid var(--edge);border-radius:8px;background:var(--paper);font-size:13px;overflow-wrap:anywhere}.review-item img{width:75px;height:70px;object-fit:contain;flex:0 0 75px}.review-item p{font-size:12px;margin:5px 0}.review-item strong{color:#ffdf82}dialog{background:var(--panel);color:inherit;border:1px solid var(--edge);border-radius:10px;max-width:min(850px,94vw);max-height:90dvh;padding:20px;overflow:auto}dialog::backdrop{background:#110820aa}dialog input[type=password]{margin-top:5px}.dialog-actions{justify-content:flex-end;margin-top:18px}#settings-error,#join-error{font-size:13px;color:#ffb9b4}.sr-only{position:absolute;width:1px;height:1px;clip-path:inset(50%);overflow:hidden}[hidden]{display:none!important}.mobile-players{display:none}
/* The desktop lobby stays inside the existing Rooms window. */
body.room-desktop main{height:var(--rooms-vh,100dvh);max-width:none;display:flex;flex-direction:column;padding:7px;overflow:hidden}body.room-desktop #match{flex:1;min-height:0}body.room-desktop #workspace{height:100%;position:relative;display:block;overflow:hidden}body.room-desktop .panel{position:absolute;min-width:0;min-height:0;resize:both;overflow:auto}body.room-desktop .panel-handle{cursor:grab;touch-action:none;position:sticky;top:0;z-index:2}body.room-desktop .panel-body{padding:6px}body.room-desktop .summary-body h2{font-size:19px;margin:0}body.room-desktop .summary-body{gap:3px 13px}body.room-desktop #category-name{margin:2px 0;font-size:11px}body.room-desktop .metrics{margin:3px 0}body.room-desktop #progress{font-size:15px}body.room-desktop #clock{font-size:14px;padding:3px 13px}body.room-desktop .room-actions button{padding:3px 8px;font-size:11px}body.room-desktop #answers{font-size:12px;gap:4px 10px}body.room-desktop #directory{overflow:auto}body.room-desktop .panel[data-panel=summary]{z-index:10}body.room-desktop .rules p{position:fixed;top:90px;left:min(42vw,420px)}
.light{color:#293b4d;background:#fffef7;color-scheme:light;--panel:#fffefb;--edge:#d4c6b4;--muted:#536274;--accent:#007c76;--paper:#faf7ef}.light button{background:#e9e0f1;color:#332440}.light h1{color:#007d77}.light .panel-handle{background:#ece6f2;color:#4b3d61}.light #clock{background-color:#e4f5ec;color:#00695f;border-color:#86b8a8}.light #progress{color:#375b7a}.light #last-answer{background:#faf7ee;border-color:#cbbbcd}.light #last-answer strong,.light #result strong,.light .review-item strong,.light #image-answer{color:#754500}.light #last-answer>small:first-child{color:#6b4e7f}.light .rating,.light .rating-change{color:#00685c}.light .rules summary{color:#165c67;border-color:#668a99}.light #ranges button{background:#ede4f4;color:#352841}.light #ranges button[aria-pressed=true]{background:#b7e8d6;outline-color:#5b476d}.light #settings-error,.light #join-error{color:#9d2629}
@keyframes room-pop{0%{transform:translateY(5px) scale(.92);opacity:.5}65%{transform:scale(1.04)}100%{transform:none;opacity:1}}.answer-pop{animation:room-pop .32s ease-out}@keyframes room-timer-drop{0%,40%,80%{outline:2px solid #ff8c55;box-shadow:0 0 12px #ff6f5070}20%,60%,100%{outline-color:transparent;box-shadow:none}}.timer-drop{animation:room-timer-drop 2s ease-out}@media(prefers-reduced-motion:reduce){.answer-pop,.timer-drop{animation:none}}
@media(max-width:767px){main{padding:9px 9px 90px}.settings-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.room-card{gap:8px}.category-image,.category-fallback{width:48px;height:43px;flex-basis:48px}.room-card-info small{font-size:11px}.room-card button{padding:7px 8px}#workspace{grid-template-columns:minmax(0,1fr)}[data-panel=summary],[data-panel=answers],[data-panel=scores],[data-panel=recent],[data-panel=guess]{grid-column:1;grid-row:auto}.summary-body{grid-template-columns:minmax(0,1fr)}.summary-body h2{font-size:20px}#last-answer{font-size:13px}#answers{grid-template-rows:repeat(25,auto);font-size:12px;gap:5px 9px}#review-list{grid-template-columns:1fr}[data-panel=guess]{position:fixed;bottom:0;left:0;right:0;z-index:30;border-radius:0;padding-bottom:env(safe-area-inset-bottom);background:var(--panel)}[data-panel=guess] .panel-handle{display:none}#guess{height:43px;font-size:18px}.tools{gap:5px}.tools button{font-size:11px;padding:5px 7px}h1{font-size:19px}.rules p{left:auto;right:0}.room-actions button{font-size:12px;padding:5px 7px}body.room-mobile main{height:var(--rooms-vh,100dvh);display:flex;flex-direction:column;padding:5px 5px 80px;overflow:hidden}body.room-mobile #status{margin:3px 0;font-size:11px;min-height:15px}body.room-mobile #match{flex:1;min-height:0}body.room-mobile #workspace{display:flex;flex-direction:column;height:100%;gap:5px}body.room-mobile .panel-handle{display:none}body.room-mobile .panel-body{padding:5px}body.room-mobile [data-panel=summary]{flex:0 0 auto}body.room-mobile .summary-body{gap:3px}body.room-mobile #title{font-size:18px;margin:0}body.room-mobile #category-name{font-size:10px;margin:1px 0}body.room-mobile .metrics{margin:2px 0}body.room-mobile #progress{font-size:14px}body.room-mobile #clock{font-size:13px;padding:3px 12px}body.room-mobile #last-answer{font-size:12px;padding:4px 8px}body.room-mobile [data-panel=answers]{flex:1;min-height:0;overflow:auto}body.room-mobile [data-panel=scores],body.room-mobile [data-panel=recent]{display:none}body.room-mobile.show-players [data-panel=answers]{display:none}body.room-mobile.show-players [data-panel=scores]{display:block;flex:1;min-height:0;overflow:auto}body.room-mobile .mobile-players{display:inline-block}body.room-mobile #directory{overflow:auto}body.room-mobile #guess-feedback{font-size:11px;margin:3px 0 0}body.room-mobile #image{height:30vh}}
.creator-avatar{width:30px;height:30px;object-fit:cover;border-radius:50%;vertical-align:middle;margin-right:8px}.rooms-header h1 img{object-fit:cover;border-radius:4px}#create[hidden]{display:none!important}@media(max-width:767px){.rules p{position:fixed;top:85px;left:10px;right:10px;width:auto}.creator-avatar{width:25px;height:25px}}
#host-announcement{background:#386759;color:#f0fff8;border:1px solid #78c1a8;border-radius:7px;padding:9px 12px;font-size:14px;line-height:1.4;margin:0 0 8px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:110px;overflow:auto;flex:0 0 auto}#host-announcement strong{color:#fff4bd}#message-dialog textarea{display:block;width:min(540px,80vw);margin-top:8px;resize:vertical;border:1px solid var(--edge);border-radius:6px;padding:8px;font:inherit}.light #host-announcement{background:#e7f6ed;color:#24463d;border-color:#9ac7b1}.light #host-announcement strong{color:#365047}.category-image[role=button]{cursor:pointer}
@media(max-width:767px){#clock{white-space:normal;max-width:100%;line-height:1.35}}@media(max-width:450px){.settings-grid{grid-template-columns:minmax(0,1fr)}}

.room-chat{display:flex;flex-direction:column;min-height:220px;max-height:440px;height:100%;gap:8px}.room-chat[hidden]{display:none}.chat-log{flex:1;min-height:120px;overflow:auto;overflow-wrap:anywhere;font-size:13px;line-height:1.5;padding:6px;background:#ffffff08;border-radius:5px}.chat-line{white-space:pre-wrap;padding:3px 0}.chat-line strong{color:#9cecdc}#chat-form{display:flex;gap:6px}#chat-text{min-width:0;flex:1;padding:8px;border-radius:5px;border:1px solid var(--edge);font:inherit}#chat-feedback{font-size:12px;margin:0;min-height:16px}.chat-mute{font-size:10px;padding:2px 5px;margin-left:8px}.mobile-chat{display:none}.light .chat-line strong{color:#075d60}.light .chat-log{background:#f6f1e9}.room-desktop .room-chat{max-height:none;min-height:0}.room-desktop .chat-log{min-height:0}#chat-review-toggle{margin-top:6px}
@media(max-width:767px){#chat-text{font-size:16px}body.room-mobile .room-chat{min-height:0;max-height:none}body.room-mobile .mobile-chat{display:inline-block}body.room-mobile.show-chat [data-panel=answers],body.room-mobile.show-chat [data-panel=scores]{display:none}body.room-mobile.show-chat [data-panel=recent]{display:flex;flex-direction:column;flex:1;min-height:0}body.room-mobile.show-chat [data-panel=recent] .panel-body{flex:1;min-height:0;display:flex;flex-direction:column}body.room-mobile.show-chat .chat-log{min-height:0}}

body.room-desktop .chat-active .panel-body{height:calc(100% - 20px);box-sizing:border-box;display:flex;flex-direction:column}body.room-desktop .chat-active .room-chat{flex:1;min-height:0}body.room-desktop .chat-active #chat-review-toggle{flex:0 0 auto}
/* Hosted fan lobbies. Hidden in ordinary Rooms. */
.influencer-welcome{grid-column:1/-1;border:1px solid #8dbbc5;background:#30405c66;border-radius:8px;padding:10px 12px;line-height:1.4}.influencer-welcome>strong{color:#9ef0dd;font-size:17px}.influencer-welcome>p{font-size:13px;margin:4px 0}.influencer-welcome a{color:#c1eaff}.influencer-ready,.influencer-reactions,.influencer-host-actions{display:flex;align-items:center;flex-wrap:wrap;gap:6px;grid-column:1/-1;font-size:12px}.influencer-ready button{background:#a3efda;color:#173a35}.influencer-reactions button{font-size:17px;min-width:34px;padding:2px 7px}.influencer-reactions>span{color:#e8fff5;font-size:17px;min-height:24px}.influencer-session{border-top:1px solid var(--edge);padding-top:10px;margin-top:10px;font-size:12px}.influencer-session summary{cursor:pointer;color:#a7f4de;font-weight:600}.influencer-session ol{padding-left:0;list-style:none;max-height:220px;overflow:auto}.influencer-session li{margin:4px 0}.influencer-goals>div{margin:8px 0}.influencer-goals span{display:block;font-size:12px}.influencer-goals progress{display:block;width:100%;height:8px;accent-color:#82ead3}.influencer-recognition p{padding:6px;border-left:3px solid #f4c968;background:#ffffff08;font-size:12px}.influencer-poll{grid-column:1/-1;border:1px solid #a184bd;background:#49306270;padding:8px;border-radius:7px}.influencer-poll>small{margin-left:8px}.influencer-poll>div{display:flex;gap:6px;flex-wrap:wrap;margin-top:6px}.influencer-poll button{font-size:12px}.influencer-share{margin-top:5px;font-size:12px}.influencer-share summary{cursor:pointer}.influencer-share input{max-width:350px;width:65%;font-size:12px;margin:5px 5px 0 0}.influencer-brand-fields{grid-column:1/-1;border:1px solid var(--edge);border-radius:6px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.influencer-brand-fields label{font-size:12px}.influencer-moderation select{max-width:130px;font-size:10px;padding:2px;margin-left:5px}.influencer-host-actions label{display:flex;gap:4px;align-items:center;font-size:11px}.influencer-host-actions>details{flex-basis:100%}.influencer-host-actions>details p{margin:4px 0}.light .influencer-welcome{background:#f1f8f5;color:#243c49;border-color:#9cbfb7}.light .influencer-welcome>strong,.light .influencer-session summary{color:#09675f}.light .influencer-welcome a{color:#075f99}.light .influencer-poll{background:#f4eff9;color:#293951}.light .influencer-reactions>span{color:#245d50}.light .influencer-recognition p{background:#fff8e7}
body.influencer-stream-view main{height:100dvh;max-width:none;display:flex;flex-direction:column;overflow:hidden}body.influencer-stream-view #match{flex:1;min-height:0}body.influencer-stream-view #workspace{height:100%;display:flex!important;flex-direction:column;gap:8px}body.influencer-stream-view .panel{position:static!important;width:auto!important;height:auto!important;resize:none!important;min-height:0}body.influencer-stream-view [data-panel=summary]{flex:0 0 auto}body.influencer-stream-view [data-panel=answers]{flex:1;overflow:auto}body.influencer-stream-view [data-panel=scores],body.influencer-stream-view [data-panel=recent],body.influencer-stream-view [data-panel=guess]{display:none!important}body.influencer-stream-view.influencer-stream-chat [data-panel=recent]{display:block!important;flex:0 0 180px;overflow:auto}body.influencer-stream-view .room-actions,body.influencer-stream-view .influencer-host-actions{display:none}body.influencer-stream-view #answers{font-size:16px;gap:8px 18px}body.influencer-stream-view #image{height:min(60vh,650px)}body.influencer-stream-view .influencer-welcome{padding:5px 9px}body.influencer-stream-view .influencer-welcome>p{margin:2px 0}@media(max-width:767px){.influencer-brand-fields{grid-template-columns:1fr}.influencer-welcome{padding:6px 8px}.influencer-welcome>strong{font-size:15px}.influencer-welcome>p,.influencer-ready{font-size:11px}.influencer-moderation select{max-width:110px}.influencer-stream-toggle{display:none}.influencer-share input{font-size:16px}.influencer-session ol{max-height:180px}}@media(prefers-reduced-motion:reduce){.influencer-reactions>span{animation:none}}

.influencer-welcome-avatar{width:38px;height:38px;object-fit:cover;border-radius:7px;float:left;margin:0 9px 4px 0}

body.influencer-stream-view .tools button:not(.influencer-stream-toggle):not(#theme):not(#leave-window){display:none}@media(max-width:767px){.influencer-welcome>p{max-height:65px;overflow:auto}.influencer-poll>div{max-height:105px;overflow:auto}}

.hql-matchmaking{padding:15px 17px;margin:0 0 16px;border:1px solid #81d5c5;border-radius:10px;background:linear-gradient(125deg,#283e5266,#46305c66)}.hql-matchmaking h2{color:#a6f1df;margin:0 0 7px}.hql-matchmaking form{display:flex;gap:8px;flex-wrap:wrap;align-items:end}.hql-matchmaking label{display:flex;flex-direction:column;gap:4px;font-size:12px}.hql-matchmaking select{min-width:230px;max-width:100%}.hql-matchmaking button[type=submit]{background:#a3efda;color:#173a35;font-weight:600}.hql-match-rating{font-size:12px;color:#ffdf8d;align-self:center}.hql-match-counts{font-size:12px;color:#ace3f5}.hql-matchmaking>small{font-size:11px;color:var(--muted)}.light .hql-matchmaking{background:#f1f8f5;border-color:#8fbfb4}.light .hql-matchmaking h2{color:#076d64}.light .hql-match-rating{color:#77560c}.light .hql-match-counts{color:#195b75}@media(max-width:767px){.hql-matchmaking{padding:10px}.hql-matchmaking select{min-width:0;width:100%}.hql-matchmaking label{flex-basis:100%}.hql-matchmaking form{gap:7px}}

#create-open,#create-cancel{margin-bottom:14px}#directory>#rooms{margin-top:8px}.hql-elo-help{display:block;margin-top:10px;font-size:12px;padding:5px 9px}

/* Compact, explicit-join ranked room tiles. */
.hql-ranked-directory>h2{margin-bottom:5px}.hql-ranked-browse{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:14px 0 10px}.hql-ranked-browse .hql-match-counts{margin:0}.hql-ranked-directory .hql-ranked-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:8px 0 14px}.hql-ranked-tile{display:flex;flex-direction:column;gap:9px;min-width:0;margin:0;padding:12px;border:1px solid var(--edge);border-radius:10px;background:linear-gradient(125deg,#68407966,#4c2d6766)}.hql-ranked-tile h3{font-size:14px;line-height:1.35;margin:0;overflow-wrap:anywhere;color:var(--text)}.hql-ranked-person{display:flex;align-items:center;gap:8px;min-width:0}.hql-ranked-avatar,.hql-ranked-avatar-fallback{flex:0 0 40px;width:40px;height:40px;border-radius:50%;object-fit:cover;background:#77608f;color:#fff;display:grid;place-items:center;font-size:14px}.hql-ranked-person-info{min-width:0;flex:1}.hql-ranked-name{display:flex;align-items:center;gap:4px;min-width:0}.hql-ranked-name strong{font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hql-ranked-rating{display:block;color:#ffdf8d;font-weight:600;font-size:12px;margin-top:3px}.hql-ranked-premium{display:inline-block!important;height:10px!important;width:auto!important;max-width:14px!important;object-fit:contain;vertical-align:middle;margin:0 3px;flex-shrink:0}.hql-ranked-tile>small{font-size:11px;color:var(--muted);margin-top:auto}.hql-ranked-tile>button{width:100%;font-size:13px;font-weight:600;background:#a3efda;color:#173a35;padding:7px 8px}.hql-ranked-tile-closed{background:#ffffff08;opacity:.8}.hql-ranked-tile-closed>button{background:#ffffff12;color:var(--muted)}.hql-ranked-empty{grid-column:1/-1;font-size:13px;color:var(--muted)}.hql-ranked-directory>h3{font-size:14px;margin:12px 0 6px}.hql-ranked-outcome{background:#386759;border:1px solid #78c1a8;color:#f0fff8;padding:8px 10px;border-radius:7px;font-size:13px;line-height:1.4}.hql-ranked-giveup{border-color:#e89797;background:#64334b;color:#fff}.light .hql-ranked-tile{background:#faf7ff}.light .hql-ranked-tile h3{color:#293951}.light .hql-ranked-rating{color:#77560c}.light .hql-ranked-outcome{background:#e7f6ed;color:#24463d}.light .hql-ranked-giveup{background:#fbe8e8;color:#792f3c}
@media(max-width:1000px){.hql-ranked-directory .hql-ranked-grid{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:767px){.hql-ranked-directory .hql-ranked-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.hql-ranked-tile{padding:10px}.hql-ranked-tile h3{font-size:13px}.hql-ranked-avatar,.hql-ranked-avatar-fallback{width:34px;height:34px;flex-basis:34px}}
@media(max-width:430px){.hql-ranked-directory .hql-ranked-grid{grid-template-columns:minmax(0,1fr)}}

.hql-ranked-directory label .hql-match-rating{display:block;align-self:flex-start;margin-top:3px;line-height:1.35;max-width:360px;white-space:normal}.hql-ranked-ready{padding:9px 12px;border:1px solid #b4daf6;border-radius:7px;background:#304668;color:#effaff;font-size:14px;font-weight:600;line-height:1.4}.light .hql-ranked-ready{background:#eaf3ff;color:#204568;border-color:#91b5de}.room-actions button:disabled,#leave-window:disabled{opacity:.4;cursor:not-allowed;filter:grayscale(1)}

/* Match the ranked action buttons to the select, not the Elo caption below it. */
.hql-ranked-directory form { align-items: flex-start; }
.hql-ranked-directory form > label { line-height: 16px; gap: 4px; }
.hql-ranked-directory form > label > select { height: 36px; box-sizing: border-box; }
.hql-ranked-directory form > button { height: 36px; box-sizing: border-box; margin-top: 20px; }
@media (max-width: 767px) {
    .hql-ranked-directory form > button { margin-top: 0; }
}

/* Compact desktop room layout; mobile keeps its fixed bottom guess box. */
@media(min-width:768px){
 #workspace [data-panel=answers]{grid-row:2/5}
 #workspace [data-panel=guess]{grid-column:2;grid-row:3}
 #workspace [data-panel=recent]{grid-column:2;grid-row:4}
}
@media(min-width:1200px){
 .hql-ranked-directory .hql-ranked-grid{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px}
 .hql-ranked-tile{padding:9px;gap:7px}
 .hql-ranked-person{gap:6px}
 .hql-ranked-avatar,.hql-ranked-avatar-fallback{width:30px;height:30px;flex-basis:30px}
 .hql-ranked-tile h3{font-size:13px}
 .hql-ranked-name strong{font-size:12px}
}
/* Ranked experience 2.8: scoped to competitive screens. */
.hql-ranked-directory{background:radial-gradient(ellipse at top right,#57358255,transparent 65%),var(--panel);padding:14px!important}.rx-tabs{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.rx-tabs button{font-weight:700;padding:9px 16px;border-radius:9px}.rx-tabs button[aria-pressed=true]{background:#8aedd8;color:#153c37;border-color:#c6fff2;box-shadow:0 0 15px #77edcf30}.rx-hero{display:flex;justify-content:space-between;gap:18px;align-items:center;border:1px solid #966ec4;border-radius:13px;padding:19px 22px;background:linear-gradient(120deg,#432861,#242041);box-shadow:inset 0 1px #ffffff18,0 8px 28px #0002}.rx-hero>div:first-child{min-width:0;flex:1}.rx-hero h2{font-size:26px;margin:5px 0 12px;color:#fff}.rx-hero small{display:block;color:#d9c8f5;font-size:11px;letter-spacing:.5px}.rx-hero strong{font-size:25px;color:#ffda7c;margin-right:12px}.rx-tier{display:inline-block;padding:4px 10px;border-radius:20px;background:#79509877;color:#fff;border:1px solid #b68ddd;font-size:13px}.rx-hero progress{display:block;width:min(100%,430px);height:13px;margin:12px 0 7px;accent-color:#f6cb61}.rx-hero-side{display:grid;gap:10px;font-size:11px;font-weight:700;color:#a5f2df}.rx-filters{display:flex;gap:8px;flex-wrap:wrap;margin:10px 0}.rx-muted{font-size:12px;color:var(--muted)}.rx-podium{display:flex;justify-content:center;align-items:flex-end;gap:10px;padding:10px 0 18px}.rx-podium-card{display:flex;flex-direction:column;align-items:center;gap:7px;flex:1;max-width:240px;min-width:0;padding:15px 8px;background:linear-gradient(150deg,#795496,#393354);border:1px solid #a18abb;border-radius:14px;overflow-wrap:anywhere;text-align:center}.rx-podium-card>strong{font-size:28px}.rx-podium-card b{color:#ffe39b}.rx-podium-card small{font-size:11px}.rx-place-1{padding-top:27px;border-color:#ffdc79;background:linear-gradient(150deg,#84641c,#433549);box-shadow:0 0 22px #f3ca6625}.rx-avatar{width:42px;height:42px;flex:0 0 42px;display:inline-grid;place-content:center;object-fit:cover;border-radius:50%;background:#6c4e8b;border:2px solid #b59ad3;color:#fff;font-size:14px;font-weight:700}.rx-table{overflow:auto;border:1px solid var(--edge);border-radius:9px;max-height:420px}.rx-table table{width:100%;border-collapse:collapse;font-size:13px;white-space:nowrap}.rx-table th,.rx-table td{text-align:left;padding:10px 12px;border-bottom:1px solid #a589bb33}.rx-table th{position:sticky;top:0;background:#493359;color:#ffe7a3;z-index:1}.rx-table tr:hover{background:#ffffff09}.rx-you{background:#75dfc51a!important;box-shadow:inset 3px 0 #85ead4}.rx-personal{display:flex;gap:10px;flex-wrap:wrap;justify-content:space-between;background:#77dec518;border:1px solid #7ce6ce;border-radius:9px;margin:12px 0;padding:12px;font-size:13px}.rx-personal:empty,.rx-rivals:empty{display:none}.rx-rivals{margin-top:15px}.rx-rival{display:inline-flex;align-items:center;gap:8px;padding:9px 12px;border:1px solid var(--edge);border-radius:10px;margin:0 8px 8px 0;font-size:12px;background:#ffffff08}.rx-rival .rx-avatar{width:28px;height:28px;flex-basis:28px}.rx-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:10px;margin:14px 0}.rx-metric{padding:14px 10px;background:#ffffff08;border:1px solid var(--edge);border-radius:10px;min-width:0;text-align:center}.rx-metric strong{display:block;font-size:23px;color:#95f1dc;overflow-wrap:anywhere}.rx-metric small{display:block;margin-top:7px;color:var(--muted);font-size:12px}.rx-results{position:relative;overflow:hidden;background:radial-gradient(ellipse at top,#3c6b6755,transparent 75%),#291e41;border:1px solid #86e2cc;border-radius:14px;padding:20px;margin:14px 0;text-align:center}.rx-results>*:not(.rx-confetti){position:relative;z-index:1}.rx-results h2{font-size:30px;color:#ffe08c;margin:9px 0 16px}.rx-results>small{color:#cab8e1}.rx-duel{display:flex;gap:20px;justify-content:center}.rx-duel>div{flex:1;max-width:300px;display:flex;align-items:center;gap:10px;justify-content:center;padding:12px;border:1px solid #9e81c2;border-radius:10px;background:#ffffff08;flex-wrap:wrap}.rx-duel strong{font-size:32px;color:#a2f3e1}.rx-elo-change{display:inline-block;font-size:28px;margin:16px 10px 8px;color:#ffe399}.rx-delta{display:inline-block;border-radius:20px;background:#704a87;padding:6px 12px;color:#fff;font-weight:700}.rx-promotion{border:1px solid #ffdb7d;background:#8b682b44;border-radius:9px;padding:12px;font-size:19px;color:#ffe7a8;animation:rx-glow 1s ease-in-out 2}.rx-results>button{background:#9becd9;color:#193e36;font-weight:700;padding:10px 18px}.rx-loss{border-color:#b79bcf;background:#30223f}.rx-draw{border-color:#cbb5f2}.rx-confetti{position:absolute;inset:0;pointer-events:none;overflow:hidden}.rx-confetti i{position:absolute;top:-20px;width:7px;height:14px;background:var(--color);animation:rx-fall 2.5s var(--delay) ease-in forwards}.rx-stats>h3{font-size:20px;color:#ffda7c}.rx-stats>p{color:var(--muted);font-size:13px}.rx-play .hql-ranked-tile{transition:transform .16s,box-shadow .16s,border-color .16s}.rx-play .hql-ranked-tile:has(>button:not(:disabled)):hover{transform:translateY(-3px);border-color:#8aedd8;box-shadow:0 5px 18px #78e6ce22}.rx-play form>button[type=submit]{background:linear-gradient(110deg,#a6f6db,#5bd6c9);color:#153e37;font-weight:700;box-shadow:0 3px 12px #5edbc22a}.rx-play>h2{font-size:19px}.rx-play>p{font-size:13px;color:var(--muted)}
.light .rx-hero{background:linear-gradient(110deg,#f4ecff,#e8faf3);border-color:#c5b4d9}.light .rx-hero h2{color:#332848}.light .rx-hero small,.light .rx-hero-side{color:#475568}.light .rx-hero strong{color:#81540a}.light .rx-tier{background:#eee2f8;color:#50336b}.light .rx-podium-card{background:#f4eafa;color:#302243}.light .rx-place-1{background:linear-gradient(150deg,#fff0bd,#fcf6e7)}.light .rx-podium-card b{color:#805417}.light .rx-table th{background:#ece4f4;color:#4a365e}.light .rx-metric{background:#fffdf6}.light .rx-metric strong{color:#08766e}.light .rx-results{background:linear-gradient(120deg,#fff9e6,#eaf9f3);color:#293951}.light .rx-results h2,.light .rx-elo-change{color:#855808}.light .rx-duel strong{color:#087c73}.light .rx-results>small{color:#554368}.light .rx-promotion{background:#fff0c4;color:#735014}.light .rx-stats>h3{color:#805417}.light .rx-duel>div{background:#ffffff88}.light .rx-personal{background:#e7f8f2;color:#254b43}
@keyframes rx-fall{to{transform:translateY(650px) rotate(500deg);opacity:0}}@keyframes rx-glow{50%{box-shadow:0 0 22px #ffda7755}}
@media(max-width:767px){.rx-hero{padding:14px;gap:8px}.rx-hero h2{font-size:22px}.rx-hero-side{display:none}.rx-tabs button{padding:8px 10px;font-size:12px}.rx-podium{gap:5px}.rx-podium-card{padding:12px 5px;font-size:12px}.rx-place-1{padding-top:22px}.rx-duel{gap:6px}.rx-duel>div{padding:9px 5px;font-size:12px}.rx-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.rx-results{padding:14px}.rx-results h2{font-size:25px}.rx-table th,.rx-table td{padding:8px}.rx-filters select{max-width:100%}}
@media(prefers-reduced-motion:reduce){.rx-confetti{display:none}.rx-promotion{animation:none}.rx-play .hql-ranked-tile{transition:none}}
.rx-play[hidden],.rx-leaders[hidden],.rx-stats[hidden],.rx-results[hidden]{display:none!important}
.rx-results{position:fixed;z-index:500;top:7vh;left:50%;transform:translateX(-50%);width:min(760px,94vw);max-height:86vh;overflow-y:auto;box-shadow:0 18px 80px #0009;margin:0}.rx-results .rx-dismiss{display:block;margin:0 0 8px auto;font-size:12px;padding:5px 9px;background:#51366e;color:#fff}.light .rx-results .rx-dismiss{background:#f3eafa;color:#49345a}
/* Original vector artwork: arena backdrop, metallic rank shields and navigation icons. */
.rx-hero{position:relative;isolation:isolate;background:#231c3c url('images/ranked/arena.svg') center/cover no-repeat;border-color:#9a75ce;box-shadow:inset 0 1px #ffffff25,0 10px 32px #08071735;min-height:175px;padding:22px;overflow:hidden}.rx-hero:after{content:'';position:absolute;inset:-100% -70%;z-index:-1;pointer-events:none;background:linear-gradient(115deg,transparent 44%,#ffffff09 48%,transparent 52%);animation:rx-arena-sheen 14s linear infinite}.rx-rank-art{display:inline-block;width:34px;height:34px;object-fit:contain;vertical-align:middle;flex-shrink:0;filter:drop-shadow(0 2px 3px #0004)}.rx-icon-art{display:inline-block;width:27px;height:27px;object-fit:contain;vertical-align:middle;flex-shrink:0}.rx-hero .rx-hero-crest{width:116px;height:116px;filter:drop-shadow(0 0 15px #8fdbea40);animation:rx-crest-enter .7s ease-out both}.rx-hero-side>span{display:flex;align-items:center;gap:8px;letter-spacing:.6px}.rx-hero-side .rx-icon-art{width:30px;height:30px}.rx-tabs{border-bottom:1px solid #a084bf55;padding-bottom:12px;gap:9px}.rx-tabs button{display:inline-flex;align-items:center;gap:8px;background:linear-gradient(120deg,#4b345f,#332642);border-color:#9672b7;padding:8px 18px;box-shadow:inset 0 1px #ffffff16;transition:transform .15s,box-shadow .2s}.rx-tabs button[aria-pressed=true]{background:linear-gradient(115deg,#b6ffe7,#57d4ca);border-color:#baffe9;box-shadow:0 4px 18px #6ce9c330}.rx-tabs button[aria-pressed=true] .rx-icon-art{filter:brightness(.34) saturate(1.5)}.rx-tabs button:hover{transform:translateY(-1px)}.hql-ranked-tile{position:relative;isolation:isolate;overflow:hidden;border-top:3px solid var(--room-color,#9d83ec);background:linear-gradient(150deg,#49315e,#29213b)}.hql-ranked-tile:before{content:'';position:absolute;right:-24px;top:-30px;width:100px;height:100px;border:14px solid var(--room-color,#9d83ec);opacity:.06;border-radius:25px;transform:rotate(30deg);z-index:-1;pointer-events:none}.hql-ranked-tile[data-main-category=geography]{--room-color:#68dfc7}.hql-ranked-tile[data-main-category=sports]{--room-color:#ffb65e}.hql-ranked-tile[data-main-category=music]{--room-color:#cf91ff}.hql-ranked-tile[data-main-category=movies]{--room-color:#ff839d}.hql-ranked-tile[data-main-category=tv]{--room-color:#7dbdff}.hql-ranked-tile[data-main-category=words]{--room-color:#d9de77}.hql-ranked-tile[data-main-category=society]{--room-color:#e2a8db}.hql-ranked-tile .hql-ranked-tier{margin-left:2px!important;line-height:1}.hql-ranked-tile .rx-rank-art{width:31px;height:31px;vertical-align:middle}.hql-ranked-rating{display:flex;align-items:center;min-height:29px}.hql-ranked-tile-closed{border-top-color:#7f718f}.rx-podium{gap:14px;min-height:240px}.rx-podium-card{position:relative;border-radius:15px 15px 8px 8px;background:linear-gradient(150deg,#6c557e,#2d253d);box-shadow:inset 0 1px #ffffff40,0 9px 20px #0002;padding:13px 10px 17px;gap:5px}.rx-podium-card>.rx-rank-art{height:76px;width:76px;filter:drop-shadow(0 2px 12px #ab8aff55)}.rx-podium-card>.rx-avatar{width:36px;height:36px;flex-basis:36px}.rx-podium-card .rx-podium-number{position:absolute;left:10px;top:10px;font-size:20px;color:#dfc9ff}.rx-podium-card.rx-place-1{padding-top:23px;padding-bottom:23px;border-color:#ffe69f;background:linear-gradient(145deg,#7c623c,#3e2a4e);box-shadow:inset 0 1px #fff3be66,0 0 28px #ffcc6d18}.rx-place-1>.rx-rank-art{width:96px;height:96px}.rx-place-1 .rx-podium-number{color:#ffe397}.rx-place-2{border-color:#bdcde3}.rx-place-3{border-color:#ddac83}.rx-table td:nth-child(3){white-space:nowrap}.rx-table td .rx-rank-art{width:29px;height:29px;margin-right:5px}.rx-rival .rx-rank-art{height:30px;width:30px}.rx-result-trophy{width:72px;height:72px;filter:drop-shadow(0 0 18px #8aedd855)}.rx-promotion{display:flex;align-items:center;justify-content:center;gap:10px}.rx-promotion .rx-rank-art{width:65px;height:65px}.rx-metric{background:linear-gradient(130deg,#ffffff0d,#bda4ff06);box-shadow:inset 0 1px #ffffff12}.rx-tabs button:focus-visible{outline:2px solid #a0ffde;outline-offset:3px}
.light .rx-hero{background:linear-gradient(105deg,#fffaf2e8,#eef8f1e8),url('images/ranked/arena.svg') center/cover}.light .rx-tabs button{background:linear-gradient(120deg,#f9f3ff,#eee6f3);color:#44314f;border-color:#c2add1}.light .rx-tabs button[aria-pressed=true]{background:linear-gradient(115deg,#d3f8e8,#a4e8d9);color:#194a3f}.light .rx-tabs button .rx-icon-art{filter:brightness(.5)}.light .hql-ranked-tile{background:linear-gradient(140deg,#ffffff,#f4edf9)}.light .rx-podium-card{background:linear-gradient(150deg,#f6efff,#ebe4f3)}.light .rx-podium-card.rx-place-1{background:linear-gradient(145deg,#fff3cd,#fcf7e8)}.light .rx-podium-number{color:#604178}.light .rx-place-1 .rx-podium-number{color:#865c15}.light .rx-metric{background:linear-gradient(130deg,#fffef9,#f4f1fa)}
@keyframes rx-crest-enter{from{opacity:0;transform:scale(.85) translateY(8px)}to{opacity:1;transform:scale(1) translateY(0)}}@keyframes rx-arena-sheen{from{transform:translateX(-25%)}to{transform:translateX(25%)}}
@media(max-width:767px){.rx-hero{min-height:145px;padding:14px;gap:10px}.rx-hero .rx-hero-crest{width:76px;height:76px}.rx-hero h2{font-size:20px}.rx-hero strong{font-size:22px}.rx-tabs{gap:5px}.rx-tabs button{padding:7px 9px;gap:4px}.rx-tabs .rx-icon-art{width:23px;height:23px}.rx-podium{gap:6px;min-height:210px}.rx-podium-card>.rx-rank-art{width:55px;height:55px}.rx-place-1>.rx-rank-art{width:70px;height:70px}.rx-podium-card .rx-podium-number{font-size:14px;left:6px;top:6px}}
@media(max-width:420px){.rx-hero .rx-hero-crest{width:58px;height:70px}.rx-hero .rx-tier{font-size:11px;margin-top:4px}.rx-tabs button{font-size:11px;padding:7px}.rx-podium-card{padding-left:4px;padding-right:4px}}
@media(prefers-reduced-motion:reduce){.rx-hero:after,.rx-hero .rx-hero-crest{animation:none}.rx-tabs button{transition:none}.rx-tabs button:hover{transform:none}}
/* Mobile View must fill the cross axis, independent of desktop panel geometry. */
@media(max-width:767px){
 body.room-mobile #match{width:100%;min-width:0}
 body.room-mobile #workspace{width:100%;min-width:0;align-items:stretch}
 body.room-mobile #workspace>.panel{width:100%;max-width:100%;min-width:0;align-self:stretch;box-sizing:border-box}
 body.room-mobile #workspace>[data-panel=answers]{position:relative;left:auto;top:auto;height:auto;grid-column:1/-1;grid-row:auto;resize:none}
 body.room-mobile #workspace>[data-panel=answers]>.panel-body{width:100%;min-width:0;box-sizing:border-box}
 body.room-mobile #answers{width:100%;max-width:100%;box-sizing:border-box}
}
.hql-how-ranked{position:relative;display:inline-block;margin:8px 8px 10px 0;font-size:13px}.hql-how-ranked>summary{cursor:pointer;list-style:none;display:inline-block;padding:7px 12px;border:1px solid #9d80bc;border-radius:7px;background:#4b345f;color:#f5eaff;font-weight:600}.hql-how-ranked>summary::-webkit-details-marker{display:none}.hql-how-ranked-copy{position:absolute;top:100%;left:0;width:min(480px,80vw);max-height:65vh;overflow:auto;background:#fffdf5;color:#26354a;border:1px solid #b6a18b;border-radius:10px;padding:10px 16px;box-shadow:0 10px 35px #0005;z-index:100}.hql-how-ranked-copy p{font-size:13px;line-height:1.5;margin:10px 0}.light .hql-how-ranked>summary{background:#f4edf8;color:#44314f;border-color:#b9a6ca}

/* Forged crest artwork: allow enough room for bevels and rank ornament. */
.hql-ranked-tile .rx-rank-art{width:40px;height:37px}.rx-table td .rx-rank-art{width:36px;height:34px}.rx-rival .rx-rank-art{width:38px;height:35px}.rx-hero .rx-hero-crest{width:130px;height:124px}.rx-podium-card>.rx-rank-art{width:96px;height:90px}.rx-place-1>.rx-rank-art{width:112px;height:104px}.rx-promotion .rx-rank-art{width:78px;height:72px}
@media(max-width:767px){.rx-hero .rx-hero-crest{width:86px;height:82px}.rx-podium-card>.rx-rank-art{width:65px;height:60px}.rx-place-1>.rx-rank-art{width:80px;height:74px}}
@media(max-width:420px){.rx-hero .rx-hero-crest{width:68px;height:68px}}
/* Optional account country flags and the first-visit profile picker. */
.hql-country-flag{display:inline-block!important;width:18px!important;height:14px!important;min-width:18px;object-fit:contain;vertical-align:middle;margin:0 4px;flex:0 0 18px;border-radius:2px;box-shadow:0 0 0 1px #a4a4b244}.hql-ranked-name .hql-country-flag{margin:0 1px}.hql-profile-dialog{box-sizing:border-box;max-width:min(440px,94vw);width:440px;max-height:85vh;overflow:auto;border:1px solid #a081c0;border-radius:15px;padding:22px;background:#2c2244;color:#f6f2ff;box-shadow:0 18px 60px #0006}.hql-profile-dialog::backdrop{background:#100b2380;backdrop-filter:blur(3px)}.hql-profile-dialog h2{font-size:23px;color:#9af2db}.hql-profile-dialog p{font-size:13px;line-height:1.5}.hql-profile-dialog form{display:flex;flex-direction:column;gap:13px}.hql-profile-dialog label{display:flex;flex-direction:column;gap:6px;font-size:13px}.hql-profile-dialog input,.hql-profile-dialog select{width:100%;font-size:16px;min-height:40px}.hql-profile-preview{display:flex;align-items:center;justify-content:center;gap:12px;min-height:60px;border:1px solid #b3a0c333;border-radius:10px;background:#ffffff08}.hql-profile-preview .hql-country-flag{width:40px!important;height:30px!important;flex-basis:40px}.hql-profile-actions{display:flex;gap:8px;flex-wrap:wrap}.hql-profile-actions>button:first-child{background:#9aedd8;color:#173b34;font-weight:700}.hql-profile-dialog[open]{z-index:1000}.light .hql-profile-dialog{background:#fffdf6;color:#293951;border-color:#b9a1cc}.light .hql-profile-dialog h2{color:#087970}.light .hql-profile-preview{background:#f4f0f8;border-color:#d4c8dd}.light .hql-profile-dialog input,.light .hql-profile-dialog select{background:white;color:#293951}

.rooms-header h1 img.hql-full-logo{height:28px!important;width:auto!important;max-width:none!important;max-height:none!important;flex:0 0 auto;object-fit:contain}
@media(max-width:767px){.rooms-header h1 img.hql-full-logo{height:20px!important}}

/* Display the full wordmark at its natural image dimensions. */
body .hql .hql-live-brand img.hql-brand-logo.hql-full-logo,
body.hql-desktop-lobby .hql .hql-live-brand img.hql-brand-logo.hql-full-logo,
body .rooms-header h1 img.hql-full-logo,
body .stats-brand img.hql-full-logo,
body .brand img.hql-full-logo {
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    flex: 0 0 auto !important;
}

/* Follow the visible viewport so the mobile keyboard cannot cover guesses. */
@media(max-width:767px){
 body:not(.room-desktop) [data-panel=guess]{bottom:var(--rooms-keyboard-inset,0px)}
 body:not(.room-desktop) #guess{font-size:16px}
}

/* Final-minute urgency, with a single short pulse and a steady readable fill. */
#clock.minute-warning{background-color:#352039;background-image:linear-gradient(to right,rgba(157,20,43,.78) var(--red-fill,0%),transparent var(--red-fill,0%));color:#fff2e8;border-color:#ff8e70}
#clock.minute-pulse{animation:room-final-minute-pulse 1.8s ease-in-out}
@keyframes room-final-minute-pulse{0%,100%{box-shadow:0 0 0 0 #ff9b4733;outline-color:transparent}20%,60%{box-shadow:0 0 0 5px #ff8a4933,0 0 19px #f8597899;outline:2px solid #ffd273}40%,80%{box-shadow:0 0 0 2px #be69ff44,0 0 15px #c470ff77;outline:2px solid #ff8da8}}
.light #clock.minute-warning{background-color:#fff1e9;background-image:linear-gradient(to right,rgba(213,74,63,.28) var(--red-fill,0%),transparent var(--red-fill,0%));color:#79232c;border-color:#d2624e}
.room-quiz-progress{display:flex;align-items:center;gap:8px;width:100%;max-width:470px;margin:5px 0}
.room-quiz-progress #progress-bar{flex:1;min-width:0;width:auto;max-width:none;height:11px;margin:0;border:0;border-radius:8px;overflow:hidden;background:#ffffff21;appearance:none;-webkit-appearance:none;accent-color:#75e8d0}
#progress-bar::-webkit-progress-bar{background:#ffffff21;border-radius:8px}
#progress-bar::-webkit-progress-value{background:linear-gradient(90deg,#36c2b5,#9bf5cf);border-radius:8px}
#progress-bar::-moz-progress-bar{background:#75e8d0;border-radius:8px}
#progress-percent{flex:0 0 auto;min-width:34px;text-align:right;font-size:12px;font-weight:700;color:#a9f6e0;font-variant-numeric:tabular-nums}
.light #progress-percent{color:#176c60}
.light #progress-bar::-webkit-progress-bar{background:#dfe6de}
.light #progress-bar::-moz-progress-bar{background:#2b9d88}
@media(prefers-reduced-motion:reduce){#clock.minute-pulse{animation:none}}

.settings-grid .hql-room-map-options{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:8px;min-width:0}.settings-grid .hql-room-map-options>label{display:flex;flex-direction:row;align-items:center;justify-content:flex-start;gap:6px;margin:0;font-size:12px;line-height:1.4}.settings-grid .hql-room-map-options input[type=checkbox]{flex:0 0 auto;width:14px;height:14px;min-width:14px;margin:0}.hql-room-map-options[hidden]{display:none!important}

.hql-password-field{position:relative;display:block;width:100%;min-width:0}.hql-password-field>input{box-sizing:border-box;width:100%;padding-right:39px!important}button.hql-password-toggle{position:absolute;right:3px;top:50%;transform:translateY(-50%);display:inline-flex;align-items:center;justify-content:center;width:32px;height:30px;min-height:0;margin:0;padding:4px;border:0;border-radius:4px;background:transparent;color:inherit;cursor:pointer;line-height:1}button.hql-password-toggle svg{fill:none;stroke:currentColor;stroke-width:1.8}button.hql-password-toggle:hover,button.hql-password-toggle[aria-pressed=true]{background:#9aefdc26}button.hql-password-toggle:focus-visible{outline:2px solid #69ded1;outline-offset:1px}

.hql-ranked-tile.hql-ranked-finished-result{opacity:1}
.hql-ranked-result-caption{display:block;font-size:11px;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--text,#fff)}
.hql-ranked-result-pair{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:7px;margin:7px 0}
.hql-ranked-result-side{min-width:0;padding:5px;border-radius:7px;background:#ffffff08}
.hql-ranked-result-side>small{font-size:10px;color:var(--muted)}
.hql-ranked-result-side:first-child{box-shadow:inset 0 2px #88e5bd}
.hql-ranked-result-side .hql-ranked-person{display:flex;flex-direction:column;align-items:flex-start;gap:3px;margin:4px 0;min-width:0}
.hql-ranked-result-side .hql-ranked-avatar,.hql-ranked-result-side .hql-ranked-avatar-fallback{width:25px;height:25px;min-width:25px;flex-basis:25px;font-size:10px}
.hql-ranked-result-side .hql-ranked-person-info{min-width:0;width:100%}
.hql-ranked-result-side .hql-ranked-name{display:flex;align-items:center;gap:2px;font-size:10px;min-width:0}
.hql-ranked-result-side .hql-ranked-name strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.hql-ranked-result-side .hql-ranked-rating{font-size:10px;min-height:23px;flex-wrap:wrap}
.hql-ranked-result-side .rx-rank-art{width:22px;height:22px}
.hql-ranked-result-side .hql-ranked-premium{max-width:12px;max-height:12px}
.hql-ranked-result-quiz{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.light .hql-ranked-result-side{background:#33205007}

.hql-ranked-result-side{position:relative}
.hql-ranked-winner-trophy{position:absolute;top:4px;right:4px;font-size:13px;line-height:1;pointer-events:none}

/* Public/private group room quiz finder and creator tools. */
.hql-quiz-finder{grid-column:1/-1;min-width:0;border:1px solid var(--edge);border-radius:12px;padding:12px;background:linear-gradient(135deg,#ffffff08,#8ee6d008)}
.hql-quiz-finder legend{font-weight:700;padding:0 6px;color:var(--mint,#9ce8df)}
.hql-quiz-finder-filters{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.hql-quiz-finder label,.hql-group-management label{display:flex;flex-direction:column;gap:5px;min-width:0;font-size:12px}
.hql-quiz-finder select,.hql-quiz-finder input{width:100%;box-sizing:border-box;min-width:0}
.hql-quiz-finder-selection{margin-top:10px}.hql-quiz-finder-count{display:block;font-size:11px;color:var(--muted);margin-top:5px}
.hql-room-title-field input{width:100%;box-sizing:border-box}.hql-room-tile-title{display:block;margin:4px 0;color:var(--mint,#9ce8df);font-size:11px;overflow-wrap:anywhere}
.hql-group-room-summary{display:flex;flex-direction:column;gap:3px;margin:8px 0;padding:8px 10px;border:1px solid var(--edge);border-radius:8px;background:#ffffff06;font-size:12px}
.hql-group-room-summary[hidden],.hql-group-management[hidden]{display:none!important}.hql-group-room-summary>strong{color:var(--mint,#9ce8df);font-size:14px}
.hql-group-management{margin-top:12px;border-top:1px solid var(--edge);padding-top:8px}.hql-group-management>summary{cursor:pointer;font-weight:700;color:var(--mint,#9ce8df)}
.hql-group-management-row{display:flex;align-items:flex-end;gap:5px;margin:8px 0}.hql-group-management-row>label{flex:1;min-width:0}.hql-group-management-row input,.hql-group-management-row select{width:100%;box-sizing:border-box}.hql-group-management-row button{font-size:11px;padding:6px 8px}.hql-group-management>small{display:block;color:var(--muted);font-size:10px}
.light .hql-quiz-finder legend,.light .hql-group-management>summary,.light .hql-room-tile-title,.light .hql-group-room-summary>strong{color:#176963}
@media(max-width:550px){.hql-quiz-finder-filters{grid-template-columns:1fr}.hql-quiz-finder{padding:9px}}

/* Integrated quiz search and instant results, 2.13.1. */
.hql-quiz-combobox{grid-column:1/-1;min-width:0}.hql-quiz-combobox>label{display:block}.hql-quiz-search-results{max-height:240px;overflow-y:auto;border:1px solid var(--edge);border-top:0;border-radius:0 0 8px 8px;background:var(--panel);padding:4px;box-shadow:0 5px 14px #0003}.hql-quiz-search-results[hidden],.hql-quiz-finder-selection[hidden]{display:none!important}.hql-quiz-search-option{display:block;width:100%;text-align:left;white-space:normal;border:0;border-radius:4px;padding:9px 10px;background:transparent;color:inherit;font:inherit;cursor:pointer}.hql-quiz-search-option:hover,.hql-quiz-search-option.hql-quiz-search-active{background:#6e47a3;color:#fff}.hql-quiz-search-option[aria-selected=true]{box-shadow:inset 3px 0 #8cf0dc}.hql-quiz-search-selected{display:block;margin-top:5px;color:var(--muted);font-size:12px}.hql-quiz-search-empty{padding:8px 10px;font-size:12px;color:var(--muted)}

/* Compact, full-width public/private room setup. */
.hql-inline-room-setup{width:100%;max-width:none;min-width:0;grid-column:1/-1;padding:10px 12px;margin:8px 0;border:1px solid var(--edge);border-radius:10px;background:var(--panel)}
.hql-inline-room-setup>h3{margin:0 0 4px}.hql-inline-room-setup>p{font-size:12px;margin:4px 0 7px}.hql-inline-room-setup>details{font-size:12px;margin:4px 0 8px}
.hql-inline-room-setup #settings-form{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px 12px;width:100%;max-width:none;margin:0}
.hql-inline-room-setup #settings-form>h2{display:none}.hql-inline-room-setup .settings-grid{display:contents!important}
.hql-inline-room-setup label{display:flex;flex-direction:column;gap:3px;min-width:0;font-size:12px;margin:0}
.hql-inline-room-setup select,.hql-inline-room-setup input:not([type=checkbox]){width:100%;min-width:0;padding:6px 8px}
.hql-inline-room-setup .hql-quiz-finder{grid-column:1/-1;padding:7px 9px;margin:0}
.hql-inline-room-setup .hql-quiz-finder-filters{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 10px}
.hql-inline-room-setup .hql-quiz-combobox{grid-column:span 2}
.hql-inline-room-setup .hql-room-map-options,.hql-inline-room-setup .dialog-actions,.hql-inline-room-setup #settings-error,.hql-inline-room-setup .hql-room-round-controls{grid-column:1/-1;margin:0}
.hql-inline-room-setup .dialog-actions{justify-content:flex-end}.hql-inline-room-setup .hql-room-map-options label{flex-direction:row;align-items:flex-start}
.hql-inline-room-setup .hql-room-round-controls{padding:6px 9px;border:1px solid var(--edge);border-radius:8px}
.hql-inline-room-setup .hql-room-round-controls>div{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.hql-inline-room-setup .hql-room-round-controls>label{flex-direction:row;align-items:center}
.hql-quiz-type-description{font-size:12px;line-height:1.4;margin:4px 0;color:var(--muted)}
.hql-capacity-help{font-size:10px;font-weight:normal;color:var(--muted);display:block;line-height:1.25;margin-top:2px}
.hql-inline-room-setup [hidden]{display:none!important}
@media(max-width:650px){.hql-inline-room-setup #settings-form,.hql-inline-room-setup .hql-quiz-finder-filters{grid-template-columns:repeat(2,minmax(0,1fr))}.hql-inline-room-setup .hql-room-round-controls>div{grid-template-columns:1fr}.hql-inline-room-setup .hql-quiz-combobox{grid-column:1/-1}}
