/* 1.22.1 */
.in-lobby .lobby-player-grid .lobby-player-avatar,.in-lobby .lobby-player-grid .lobby-guest-avatar{width:25.6px;height:25.6px;flex-basis:25.6px}
.in-lobby .lobby-player-grid .lobby-guest-avatar{border-width:1px}
.player-stat-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}
.player-stat-heading strong{color:var(--acid)}
.player-stat-heading>span{color:var(--muted);white-space:nowrap}
@media(max-width:360px){.room-browser{--facts-width:120px!important}}
.lobby-guest-avatar{width:32px;height:32px;flex:0 0 32px;border:2px solid #81909a;border-radius:50%;background:transparent}
.player-stat-tooltip{position:fixed;z-index:1400;width:min(290px,calc(100vw - 16px));padding:14px 16px;background:#18242c;border:1px solid var(--line);border-radius:12px;box-shadow:0 6px 24px #0008;font-size:13px;pointer-events:none}
.player-stat-tooltip dl{margin:8px 0 0}.player-stat-tooltip dl>div{display:flex;justify-content:space-between;gap:12px;margin-top:5px}
.player-stat-tooltip dt{color:var(--muted)}.player-stat-tooltip dd{margin:0;color:var(--acid)}
.adblock-dialog{position:fixed;width:min(440px,calc(100vw - 32px));max-height:calc(100dvh - 32px);padding:36px 26px 22px;border:1px solid var(--line);border-radius:16px;background:var(--panel);color:var(--text);box-shadow:0 12px 60px #0008}
.adblock-dialog::backdrop{background:#0009}.adblock-dialog h2{font-size:30px;margin:6px 0 18px}.adblock-dialog p{line-height:1.6;margin:0}
.adblock-close{position:absolute;right:8px;top:8px;width:32px;height:32px;padding:0;font-size:25px;line-height:1;background:transparent;border:0}
.adblock-close:focus:not(:focus-visible){outline:none}
.nickname-save-row{display:flex;gap:10px;align-items:stretch}
.nickname-save-row input{flex:1;min-width:0}
.nickname-save-row #save-profile{flex:0 0 48px;padding:8px;font-size:22px}
.profile-level .level-details{justify-content:flex-end}
@keyframes gentle-level-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.06)}}
.profile-level-pulse{display:inline-block;transform-origin:left center;animation:gentle-level-pulse 4s ease-in-out infinite}
@media(max-width:700px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){
 #xp-reward[data-mode=single]:not(.xp-locked) .xp-earned{animation:gentle-level-pulse 4s ease-in-out infinite;transform-origin:right center}
 .single-matrix-shell.has-more .matrix-more{color:#fff}
 .single-matrix-shell .matrix-more>span{position:absolute;top:var(--summary-divider,66%);right:0;line-height:1;translate:0 -50%}
}
@media(prefers-reduced-motion:reduce){.profile-level-pulse,#xp-reward .xp-earned{animation:none!important}}
.room-column-icons img{width:26px;height:26px;object-fit:contain;justify-self:center;align-self:center}
.profile-panel{display:flex;flex-direction:column;gap:20px}
.profile-panel .profile-picture{width:122.4px;height:122.4px}
.profile-panel .profile-identity{margin:0}
.profile-panel .profile-progress{display:flex;flex-direction:column;gap:20px}
.profile-progress .profile-level,.profile-progress .profile-statistics{border:0;background:transparent;padding:0;margin:0}
.profile-progress .profile-statistics dt{text-align:left}
.profile-panel #profile-status:empty{display:none}
.profile-panel #save-profile{background:#25343e;border-color:var(--line);color:var(--text)}
.profile-panel #save-profile:hover:not(:disabled){background:#354953}
.in-lobby .lobby-player-grid .lobby-player-tile{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-width:0}
.lobby-player-heading{display:flex;align-items:center;gap:8px;min-width:0}
.lobby-player-avatar{width:32px;height:32px;border-radius:50%;object-fit:cover;flex:0 0 32px}
.lobby-player-heading .player-name{min-width:0;flex:1}
.lobby-player-footer{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:20px}
.lobby-ready-dot{display:block;width:11px;height:11px;flex:0 0 11px;border-radius:50%;background:#81909a}
.lobby-ready-dot.ready{background:#42d77d}
#directory-message{text-align:center}
/* Recaps use the same outer and inner vertical spacing. */
.in-results #app:has(.final-map){display:flex;flex-direction:column;gap:20px;padding-top:20px}
.in-results #app:has(.final-map)>:is(.result-top,.results-scores,.recap-card,#xp-reward,.multi-recap-grid){margin:0}
.in-results #app:has(.final-map)>.result-controls[hidden]{display:none}
#xp-reward.xp-locked .xp-unlock{position:static;inset:auto;background:none;padding:14px 0 0}
#xp-reward.xp-locked .xp-unlock button{white-space:normal}
#xp-reward.xp-locked .xp-match-summary{min-height:0}
.xp-login-mobile{display:none}
@media(max-width:700px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){
 html,body{overscroll-behavior-y:none}
}
#xp-reward .match-level-details{justify-content:flex-end;text-align:right}
.single-round-matrix .single-summary-heading{text-align:left;font-size:16px;font-weight:700;color:var(--text);text-transform:none;letter-spacing:normal}
.game-player-level{font-size:.85em;color:#c5cdd3;font-weight:400;text-shadow:none}
.in-results #app:has(.single-round-matrix){display:flex;flex-direction:column;gap:20px}
.in-results #app:has(.single-round-matrix)>.result-top{margin:0;display:flex;flex-direction:column;gap:16px}
.in-results #app:has(.single-round-matrix)>.result-top>.result-score{margin:0}
.in-results #app:has(.single-round-matrix) #xp-reward{margin:0}
.in-results #app:has(.single-round-matrix)>.results-scores,.in-results #app:has(.single-round-matrix)>.recap-card{margin:0}
.in-results #app:has(.single-round-matrix)>.result-controls[hidden]{display:none}
.sign-in-prompt{position:relative;display:inline-flex;justify-content:flex-end}
.sign-in-hint{position:absolute;right:0;top:calc(100% + 12px);width:max-content;max-width:220px;padding:10px 14px;border-radius:10px;background:#fff;color:#10191f;font-size:14px;line-height:1.3;box-shadow:0 3px 12px #0003;pointer-events:none}
.sign-in-hint::before{content:'';position:absolute;right:24px;bottom:100%;border:7px solid transparent;border-bottom-color:#fff}
#xp-reward{position:relative}
.xp-match-summary{display:grid;grid-template-columns:minmax(130px,1fr) minmax(0,3fr);gap:24px;align-items:center;min-height:130px}
.xp-match-score{align-self:stretch;display:flex;flex-direction:column;justify-content:center;align-items:center;border-right:1px solid var(--line);padding-right:24px}
.xp-match-score strong{font-size:46px;line-height:1.1;color:var(--acid)}.xp-match-score>span{font-size:18px;color:var(--text)}
.xp-match-progress{min-width:0}.xp-match-progress .level-progress{margin-top:0}
.in-lobby .lobby-player-level{color:#c5cdd3;font-weight:400;font-size:.9em;text-shadow:none}
#game-hud:has(#setup-avatar){gap:12px;justify-content:flex-end}
@media(min-width:701px){
 #xp-reward.xp-card{padding:12px 20px;margin-top:12px;margin-bottom:18px}
 #xp-reward .xp-match-summary{min-height:88px}
 #xp-reward .xp-match-score strong{font-size:38px}
 #xp-reward .xp-level-up{margin:6px 0 0;font-size:13px}
 #xp-reward .level-progress progress{margin:9px 0}
 #xp-reward .xp-unlock{flex-direction:row;gap:18px}
 #xp-reward .xp-unlock p{margin:0}
}
.level-heading .xp-earned{color:var(--acid);font-size:26px;font-weight:800;white-space:nowrap}.xp-earned small{font-size:13px;font-weight:400;color:var(--muted)}
.result-top:has(#xp-reward)>.result-score{display:none}
.xp-locked-preview{filter:grayscale(1);opacity:.24;pointer-events:none}
.xp-unlock{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:14px;text-align:center;border-radius:inherit;background:rgb(16 25 31 / 35%)}
.xp-unlock p{font-weight:600;text-shadow:0 1px 5px #000}
.xp-card{border:1px solid var(--line);background:var(--panel);border-radius:14px;padding:20px;margin:18px 0 24px;text-align:left;width:100%;min-width:0}
.profile-level{margin:0 0 24px;background:var(--bg)}
.xp-earned{font-size:30px;font-weight:800;color:var(--acid);line-height:1.2}.xp-earned span{font-size:16px;color:var(--text);font-weight:500}
.xp-card p{margin:10px 0 16px}.xp-card .xp-level-up{color:var(--acid);font-weight:700}
.level-progress{margin-top:16px}.profile-level .level-progress{margin-top:0}
.level-heading,.level-details{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}
.level-heading strong{font-size:24px;color:var(--acid)}.level-heading span,.level-details{font-size:13px;color:var(--muted)}
.level-progress progress{display:block;width:100%;height:12px;margin:12px 0;border:0;border-radius:20px;overflow:hidden;background:var(--bg);accent-color:var(--acid)}
.level-progress progress::-webkit-progress-bar{background:#293740;border-radius:20px}.level-progress progress::-webkit-progress-value{background:var(--acid);border-radius:20px}.level-progress progress::-moz-progress-bar{background:var(--acid);border-radius:20px}
.xp-card .xp-error{color:#ff7373}.result-top:has(#xp-reward){display:block}
#sign-in.primary{background:var(--bg);border-color:var(--acid);color:var(--acid)}
#sign-in.primary:hover:not(:disabled){background:var(--acid);border-color:var(--acid);color:var(--bg)}
#game-hud:has(#account-avatar),#game-hud:has(#profile-back){width:auto;margin-left:auto;justify-content:flex-end}
.account-avatar{display:block;border:0;border-radius:50%;padding:0;width:48px;height:48px;overflow:hidden;background:#3676c8}
.account-avatar img{display:block;width:100%;height:100%;object-fit:cover}
.profile-title{font-family:'Bebas Neue','Arial Narrow',sans-serif}
#game-hud #profile-back.profile-close{width:52px;height:52px;min-height:52px;padding:0;display:grid;place-items:center;font-size:28px;line-height:1;background:transparent;border:1px solid var(--line);color:var(--text)}
.profile-panel{width:min(100%,520px);margin:0 auto;text-align:center}
.profile-panel .field{text-align:left}.profile-panel #logout{margin-top:12px}
.profile-picture{display:block;position:relative;width:144px;height:144px;border-radius:50%;padding:0;margin:0 auto 18px;overflow:hidden;border:2px solid var(--line)}
.profile-picture img{width:100%;height:100%;display:block}
.profile-picture span{position:absolute;inset:0;display:grid;place-items:center;background:#0009;color:#fff;font-size:15px;opacity:0;transition:opacity .18s}
.profile-picture:is(:hover,:focus-visible) span{opacity:1}
.profile-email{color:var(--muted);overflow-wrap:anywhere;font-size:14px}
.avatar-options{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin:0 0 22px}
.avatar-options[hidden]{display:none}.avatar-options button{padding:0;border:2px solid transparent;border-radius:50%;aspect-ratio:1;overflow:hidden}
.avatar-options button[aria-pressed=true]{border-color:var(--acid)}.avatar-options img{width:100%;height:100%;display:block}
.account-dialog{position:fixed;width:min(420px,calc(100vw - 32px));padding:32px 24px 22px;border:1px solid var(--line);border-radius:14px;color:var(--text);background:var(--panel)}
.account-dialog::backdrop{background:#000a}.account-dialog h2{font-size:36px}.account-dialog .dialog-close{position:absolute;right:10px;top:10px;border:0;padding:0;width:32px;height:32px;display:grid;place-items:center;font-size:26px;background:transparent}
.login-providers{display:flex;flex-direction:column;gap:12px}.login-providers button{display:flex;align-items:center;gap:14px;text-align:left;background:var(--bg)}
.provider-icon{display:grid;place-items:center;width:26px;font-size:24px;font-weight:800}.provider-google{color:#76b7ec}.provider-facebook{color:#1877f2}
.account-error{color:var(--red);font-size:14px;margin:16px 0 0}.account-error:empty{display:none}
.emoji-picker-toggle{display:none}
#profile-nickname[aria-invalid=true]{color:#ff7373;border-color:#ff7373;background:#3b2027;box-shadow:none}
#profile-status.profile-error{color:#ff7373}
.account-dialog:focus{outline:none}.account-dialog .dialog-close:focus:not(:focus-visible){outline:none;box-shadow:none}
.game-social-rail .players-overlay .player.has-guess{background:#205D3B}
@media(max-width:700px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){
 body{--chat-bar-height:calc(64px + env(safe-area-inset-bottom,0px));--chat-keyboard:0px}
 .single-round-matrix table tr>:not(:first-child){color:var(--acid)}
 #xp-reward .xp-unlock{justify-content:flex-end}
 #xp-reward .xp-unlock>p,.xp-login-desktop{display:none}
 .xp-login-mobile{display:inline}
 .game-player-level{display:none}
 .in-results #app:has(.single-round-matrix){gap:16px}
 #game-hud .desktop-profile-avatar{display:none}
 #xp-reward .level-heading{display:grid;grid-template-columns:auto minmax(0,1fr);gap:8px;align-items:center}
 #xp-reward .level-heading>.xp-earned{justify-self:end;font-size:22px;color:var(--acid);font-weight:800;text-align:right;white-space:normal}
 #xp-reward .xp-earned small{font-size:12px;color:var(--muted);font-weight:400}
 #xp-reward .xp-match-summary{min-height:0}
 #xp-reward.xp-card{padding:10px 16px}
 #xp-reward .level-progress progress{margin:8px 0}
 #xp-reward.xp-locked .xp-match-summary{min-height:140px}
 #xp-reward .xp-unlock{flex-direction:column;gap:0}
 #xp-reward .xp-unlock p{margin:10px 0 16px}
 #game-hud #leave.exit-action{transition:none!important}
 .sign-in-hint{font-size:12px;max-width:180px;padding:9px 11px}
 .xp-match-summary{grid-template-columns:1fr;gap:14px;min-height:140px}
 .xp-match-score{border-right:0;border-bottom:1px solid var(--line);padding:0 0 12px;flex-direction:row;gap:8px;align-items:baseline}
 .xp-match-score strong{font-size:32px}
 #xp-reward[data-mode=single]:not(.xp-locked) .xp-match-score{display:none}
 .result-top:has(#xp-reward:not(.xp-locked))>.result-score{display:block}
 .level-heading .xp-earned{font-size:22px}
 .xp-card{padding:16px}.xp-card .primary{width:100%;white-space:normal}.xp-earned{font-size:26px}.level-details{gap:4px}
 body:has(.profile-panel) header .brand-name{display:none}
 .in-game main.playing-layout{grid-template-rows:minmax(0,2fr) minmax(0,1fr)}
 .in-game main.playing-layout[data-active-pane=map]{grid-template-rows:minmax(0,1fr) minmax(0,2fr)}
 .in-game .playing-layout .panorama-wrap{grid-row:1}
 .in-game .playing-layout .map-overlay,.in-game .playing-layout .map-overlay:hover,.in-game .playing-layout .map-overlay.expanded,.in-game .playing-layout .map-overlay:has(:focus-visible){grid-row:2;border-bottom:0;border-top:2px solid var(--line)}
 .in-game .playing-layout[data-active-pane=map] .map-overlay{border-bottom:0;border-top:3px solid var(--acid)}
 .in-game .mobile-social-tools,.in-lobby .mobile-social-tools,.in-results .mobile-social-tools,#mobile-chat-backdrop{display:none!important}
 #app:has(#chat-form):not(.playing-layout){padding-bottom:calc(var(--chat-bar-height) + 24px)}
 .in-game main.playing-layout:has(#game-chat-panel){bottom:calc(var(--chat-bar-height) + var(--chat-keyboard));padding-bottom:0}
 .in-lobby #app #chat-popup,.in-results #app #chat-popup,.in-game #app .game-chat-dock{
  position:fixed;top:auto;left:0;right:0;bottom:var(--chat-keyboard);width:100%;max-width:none;min-width:0;height:var(--chat-bar-height);min-height:0;max-height:none;
  margin:0;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));border:0;border-top:1px solid #ffffff30;border-radius:0;background:#18242c;box-shadow:none;
  display:block;opacity:1;visibility:visible;transform:none;transition:none;overflow:visible;pointer-events:auto;z-index:1100;
 }
 .in-lobby #app #chat-popup::before,.in-results #app #chat-popup::before,.in-game #app .game-chat-dock::before{content:'';position:absolute;left:0;right:0;bottom:100%;height:40px;background:linear-gradient(to bottom,transparent,#18242c);pointer-events:none}
 .in-game #app .game-chat-dock .game-chat{position:static;display:block;width:100%;height:auto;min-height:0;margin:0;padding:0;border:0;border-radius:0;background:transparent;box-shadow:none;visibility:visible;overflow:visible}
 #app #chat-popup>h3,#app #chat-popup .chat-messages,#app #chat-form .chat-label{display:none}
 #app #chat-form{margin:0;padding:0;width:100%}
 #app #chat-form .chat-compose{display:flex;flex-wrap:nowrap;align-items:center;gap:8px;width:100%;margin:0}
 #app #chat-form #chat-input{flex:1 1 0%;width:0;min-width:0;height:44px;min-height:44px;font-size:16px;padding:10px;border-radius:8px;background:#131f26;color:var(--text);border:1px solid var(--line)}
 #app #chat-form #chat-send{flex:0 0 auto;width:auto;height:44px;min-height:44px;padding:10px 12px;font-size:14px;margin:0;background:#25343e;color:var(--text);border:1px solid var(--line)}
 #app #chat-form .emoji-picker-toggle{display:grid;place-items:center;flex:0 0 44px;width:44px;height:44px;padding:0;font-size:24px;background:#25343e}
 #app #emoji-picker{position:absolute;bottom:calc(100% + 8px);right:12px;left:auto;top:auto;width:min(320px,calc(100vw - 24px));height:auto;margin:0;padding:10px;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);grid-template-columns:none;gap:6px;border:1px solid #ffffff50;border-radius:12px;background:#18242cf5;box-shadow:0 4px 18px #0005;opacity:0;visibility:hidden;pointer-events:none;transform:translateY(8px);transition:opacity .15s,transform .15s,visibility .15s}
 #app.emoji-picker-open #emoji-picker{opacity:1;visibility:visible;pointer-events:auto;transform:translateY(0)}
 #app #emoji-picker button{width:100%;min-width:0;height:44px;padding:0;font-size:25px;background:#25343e}
 .in-lobby #app .social-notices,.in-results #app .social-notices{bottom:calc(var(--chat-bar-height) + var(--chat-keyboard) + 4px);width:calc(100vw - 32px);z-index:1101}
 .in-game #app .game-chat-dock::before{height:20px;background:linear-gradient(to bottom,transparent,#18242c66)}
 .in-lobby .lobby-side>section:first-child{display:flex;flex-direction:column}
 .in-lobby .lobby-side>section:first-child>#ready{order:-5;margin:0}
 .in-lobby .lobby-side>section:first-child>#ready-help{order:-4;margin:14px 0;text-align:center}
 .in-lobby .lobby-side>section:first-child>.divider{order:-3;width:100%;margin:0 0 18px}
 .in-lobby .lobby-side>section:first-child>.section-label{order:-2}
 .in-lobby .lobby-side>section:first-child>#players{order:-1}
 .social-notices .joined-notice{display:block;width:fit-content;height:auto;min-height:34px;padding:6px 10px;border:1px solid #ffffff30;border-radius:17px;background:#111b23eb;color:var(--text);font-size:13px;line-height:20px;overflow-wrap:anywhere}
 .social-notices .joined-notice::after{display:none}
 .social-notices .joined-notice-name,.social-notices .joined-notice-text{display:inline;max-width:none;padding:0;background:transparent;white-space:normal;font-size:inherit;line-height:inherit}
 .social-notices .joined-notice-name{margin-right:6px}
 .social-notices .joined-notice-text{color:var(--text)}
 .profile-title{font-size:23px}.account-avatar{width:44px;height:44px}
 #profile-back{max-width:96px;padding:8px;font-size:12px}
 #game-hud #profile-back.profile-close{position:absolute;right:16px;top:calc(50% + env(safe-area-inset-top,0px)/2);transform:translateY(-50%);width:44px;height:44px;min-height:44px;font-size:24px}
 #game-hud #leave.exit-action{background:transparent;border-color:var(--line);color:var(--text)}
 .profile-picture span{inset:auto 0 0;height:42px;opacity:1;font-size:12px}
}

@media(max-width:700px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){
 .in-results #app:has(.final-map),.in-results #app:has(.result-score){display:flex;flex-direction:column;gap:16px;padding-top:16px}
 .in-results #app:has(.result-score)>:is(.result-top,.recap-card,.result-controls){margin:0}
 .in-results #app:has(.result-score)>.result-top{display:flex;flex-direction:column;gap:16px}
 .in-results #app:has(.result-score)>.result-top>*{margin:0}
 .in-results #app:has(.result-score)>.result-top>.result-score{display:block}
 #xp-reward.xp-locked .xp-match-summary{min-height:0}
 #xp-reward.xp-locked .xp-unlock{position:static;padding:14px 0 0;display:block}
 #xp-reward.xp-locked .xp-unlock button{width:100%}
 body:has(.single-settings)::after,body.in-results:has(.single-round-matrix)::after{content:'';position:fixed;left:0;right:0;bottom:0;height:calc(40px + env(safe-area-inset-bottom,0px));background:linear-gradient(to bottom,transparent,var(--bg));pointer-events:none;z-index:999}
 .single-matrix-shell.has-more .matrix-more{width:32px;background:linear-gradient(90deg,transparent,rgba(24,36,44,.85));font-weight:400}
 .single-round-matrix{overflow-x:auto}
}

/* Shared alignment for directory headings, facts and join buttons. */
.room-browser{--facts-width:260px;--entry-width:46px}
.room-card,.room-card.is-playing{grid-template-columns:minmax(0,1fr) var(--entry-width) var(--facts-width)}
.room-card .room-entry-actions{grid-column:2;padding-left:0}
.room-card .room-facts{grid-column:3}
.room-card .room-facts,.room-column-icons{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:0;text-align:center}
.room-card .room-facts>span{white-space:nowrap}
.room-section-heading{display:grid;grid-template-columns:minmax(0,1fr) var(--entry-width) var(--facts-width);gap:8px;align-items:center;padding:0 4px 0 14px;margin:0 0 16px}
.room-section-heading h2{font-family:inherit;font-size:20px;letter-spacing:normal;text-transform:none;line-height:1.3;margin:0}
.room-section-heading #create-room{grid-column:3;width:100%;font-size:16px;white-space:normal;line-height:1.2}
.room-column-icons{grid-column:3;padding:0 12px;font-size:26px;color:var(--muted)}
.profile-statistics{border:1px solid var(--line);border-radius:12px;padding:18px;margin:0 0 20px;background:var(--bg)}
.profile-statistics dl{margin:0}.profile-statistics dl>div{display:flex;justify-content:space-between;gap:16px;padding:8px 0}
.profile-statistics dt{color:var(--muted)}.profile-statistics dd{margin:0;color:var(--acid);font-weight:700;white-space:nowrap}
.typing-indicator{font-size:13px;color:var(--muted);padding:5px 0;min-height:28px}
.typing-indicator[hidden]{display:none}
.typing-indicator .guessing-dots>span:nth-child(2){animation-delay:.15s}
.typing-indicator .guessing-dots>span:nth-child(3){animation-delay:.3s}
@media(min-width:1001px){
 .lobby-grid.host-lobby{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
}
@media(min-width:701px){
 .in-results #app:has(.final-map)>.result-top{gap:20px}
}
@media(max-width:700px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){
 .room-browser{--facts-width:150px;--entry-width:46px}
 .room-section-heading{gap:5px;padding-left:8px}
 .room-section-heading h2{font-size:15px}
 .room-section-heading #create-room{font-size:13px;padding:0 8px}
 .room-column-icons{font-size:22px;padding:0 8px}
 .room-card .room-facts{gap:0;padding:0 8px}
 .in-lobby #app #chat-popup .typing-indicator,.in-results #app #chat-popup .typing-indicator{position:absolute;left:12px;right:12px;bottom:100%;padding:6px 10px;border-radius:8px 8px 0 0;background:var(--panel);color:var(--muted);z-index:2}
 .in-results #app:has(.single-round-matrix)>.result-top>.result-score{display:block}
 #xp-reward[data-mode=single] .xp-match-score{display:none}
}
/* In singleplayer the score remains readable outside the locked XP preview. */
.in-results #app:has(.single-round-matrix)>.result-top:has(.xp-locked)>.result-score{display:block}
.in-results #app:has(.single-round-matrix) #xp-reward.xp-locked .xp-match-score{display:none}
.in-results #app:has(.single-round-matrix) #xp-reward.xp-locked .xp-match-summary{grid-template-columns:1fr}

@media(min-width:701px) and (min-height:501px), (min-width:1001px){
 .in-results #app:has(.single-round-matrix)>.result-top:has(.xp-locked)>.result-score{display:none}
 .in-results #app:has(.single-round-matrix) #xp-reward.xp-locked .xp-match-score{display:flex}
 .in-results #app:has(.single-round-matrix) #xp-reward.xp-locked .xp-match-summary{grid-template-columns:minmax(0,1fr) minmax(0,3fr)}
 #xp-reward[data-mode=single] .xp-locked-preview{filter:none;opacity:1}
 #xp-reward[data-mode=single] .xp-locked-preview .xp-match-progress{filter:grayscale(1);opacity:.24}
 #xp-reward[data-mode=single] .xp-match-score strong{font-size:clamp(22px,2.5vw,34px);overflow-wrap:anywhere}
}

.xp-progress-track{position:relative;margin:10px 0 0}
.level-progress .xp-progress-track progress,#xp-reward .level-progress .xp-progress-track progress{height:26px;margin:0}
.xp-progress-label{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:12px;font-weight:700;color:#fff;text-shadow:0 1px 2px #000,0 0 3px #000;pointer-events:none}
.profile-progress .profile-statistics{border-top:0;padding-top:0}
.lobby-ready-image{display:block;width:11px;height:11px;object-fit:contain;visibility:visible}
.lobby-ready-dot{background:none}
.lobby-ready-dot.has-image{background:none}
.lobby-ready-dot.has-image .lobby-ready-image{visibility:visible}
.room-card,.room-card.is-playing,.room-section-heading{grid-template-columns:minmax(0,1fr) var(--facts-width)}
.room-card .room-facts,.room-section-heading #create-room,.room-column-icons{grid-column:2}
.room-card .room-entry-actions{position:absolute;inset:0;grid-area:auto;display:block;padding:0;border:0;border-radius:inherit;z-index:2}
.room-card .room-entry-actions .room-enter{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:inherit;background:transparent;color:#15200b;opacity:1;display:grid;place-items:center;transform:none}
.room-card .room-enter>span{display:grid;place-items:center;width:var(--room-inner-height);height:var(--room-inner-height);border-radius:8px;background:var(--acid);font-size:24px;opacity:0;transition:opacity .18s}
.room-card>h3,.room-card>.room-facts{transition:opacity .18s}
.room-browser .room-section-heading #create-room{height:var(--room-inner-height);min-height:var(--room-inner-height)}
.room-list-caption{margin-top:24px}
@media(hover:hover) and (min-width:701px){
 .room-card:has(.room-enter:not(:disabled)):is(:hover,:focus-within)>h3,.room-card:has(.room-enter:not(:disabled)):is(:hover,:focus-within)>.room-facts{opacity:.2}
 .room-card:is(:hover,:focus-within) .room-enter:not(:disabled)>span{opacity:1}
}
@media(max-width:700px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){
 #game-hud #sign-in{height:40px;min-height:40px;padding-top:0;padding-bottom:0}
 #game-hud #leave.exit-action,.in-game #game-hud #leave.exit-action,#game-hud #profile-back.profile-close{height:40px;min-height:40px;width:40px}
 .preset-heading h2{grid-column:1;grid-row:1;white-space:nowrap;font-size:15px}
 .preset-heading .room-column-icons{grid-column:2;grid-row:1}
 .room-card .room-enter>span{display:none}
}
.room-card .room-entry-actions .room-enter:is(:hover,:active,:focus){background:transparent;border:0;transform:none}
.room-card .room-enter>span{pointer-events:none}
.in-lobby .lobby-player-grid .lobby-player-tile:has(.kick-player){padding-right:15px}
.lobby-player-tile:has(.kick-player) .lobby-player-heading{padding-right:15px}
.lobby-player-tile .kick-player{transition:none}
.lobby-player-tile .lobby-ready-dot{position:static;right:auto;bottom:auto}
.lobby-player-tile .lobby-player-footer{padding-right:0;align-items:center}

/* 1.22.1 — Prague Spotting landing page and shared typography. */
header .brand{gap:7px}
header .brand .brand-name{font-family:'neulis-sans','Neulis Sans',Arial,sans-serif;font-size:22px;font-weight:500;line-height:21px;letter-spacing:0;gap:0;align-self:center;justify-content:center;position:relative;top:-2px}
h1,h2{font-weight:400}
.room-section-heading h2{font-weight:700}
.room-card h3{font-weight:400}
#game-hud .lobby-title{font-family:'Bebas Neue','Arial Narrow',sans-serif;font-weight:400}
.home-visual{display:none;background:transparent;min-width:0;overflow:hidden;position:relative}
.home-visual img{display:block;position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center;padding:0;background:transparent;transform-origin:center}
.home-visual .home-visual-background{z-index:0}
.home-visual .home-visual-mode{z-index:1}
.home-visual .home-visual-mode[hidden]{display:none}
.home-visual .home-visual-foreground{z-index:2;pointer-events:none}
@keyframes home-continue-pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.025)}}
#app>.home-grid #join:not(:disabled){animation:home-continue-pulse 2.8s ease-in-out infinite}
@media(prefers-reduced-motion:reduce){#app>.home-grid #join{animation:none!important}}
.home-tagline{margin:0 0 22px;color:var(--acid);font-size:17px;font-weight:500}
.account-sign-in-style{background:var(--bg);border-color:var(--acid);color:var(--acid);font-weight:600}
.account-sign-in-style:hover:not(:disabled){background:var(--acid);border-color:var(--acid);color:var(--bg)}
#xp-sign-in-desktop{display:block;width:100%;margin:-8px 0 20px;padding:12px 20px}

@media(min-width:701px) and (min-height:501px),(min-width:1001px){
 #app:has(>.home-grid){padding-top:62px}
 .lobby-grid.host-lobby{grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
 @media(max-width:950px){.lobby-grid.host-lobby{gap:18px}}
 @media(max-width:900px){.lobby-grid.host-lobby{gap:12px}}
 .host-lobby .lobby-side{display:contents}
 .host-lobby .lobby-side>.panel,.host-lobby .lobby-side>#chat-popup{border:1px solid var(--line);border-radius:12px;background:var(--panel);height:100%;padding:18px}
 #app:has(.single-settings){padding-top:62px}
 #app>.single-settings{width:min(1100px,100%);margin:0 auto}
 .single-settings .settings-panel{min-height:494px;border-radius:16px}
 .single-settings .settings-panel #settings-form{min-height:492px}
 .single-settings .settings-panel>.section-label{left:calc(50% + 25px)}
 .single-settings .settings-fields{grid-column:2;grid-row:1}
 .single-settings .settings-map{grid-column:1;grid-row:1;min-height:0}
 .host-lobby>.settings-panel{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:auto 1fr;column-gap:9px}
 .host-lobby>.settings-panel>.section-label{grid-column:2;grid-row:1;width:100%;margin-left:0}
 .host-lobby .settings-panel #settings-form{display:contents}
 .host-lobby .settings-panel .settings-fields{grid-column:2;grid-row:2;width:100%;margin-left:0}
 .host-lobby .settings-panel #settings-form .settings-map{grid-column:1;grid-row:1 / 3;position:relative;inset:auto;width:100%;height:100%;margin:0;min-height:320px}
 #game-hud .lobby-title:not(.profile-title){font-size:40px}
 .in-game #game-hud .game-status{left:50%;width:96px;transform:translateX(-50%);display:block}
 .in-game #game-hud .game-status .timer{width:96px;min-width:96px}
 .in-game #game-hud .game-status .counter{position:absolute;right:calc(100% + 22px);top:50%;transform:translateY(-50%);white-space:nowrap}
 #app>.home-grid #join-form:has(#nickname-field:not([hidden])){display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;height:50px;align-items:start}
 #app>.home-grid #nickname-field:not([hidden]){position:relative;height:50px;margin:0;min-width:0}
 #app>.home-grid #nickname-field:not([hidden]) input{height:50px;min-width:0}
 #app>.home-grid #nickname-field:not([hidden]) label{position:absolute;left:0;top:calc(100% + 5px);margin:0;font-size:12px}
 #app>.home-grid #join-form:has(#nickname-field:not([hidden])) #join{width:auto}
 #app>.home-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:stretch;width:min(1100px,100%);max-width:none;min-height:494px;margin:0 auto;padding:0;gap:0;overflow:hidden;background:var(--panel);border:1px solid var(--line);border-radius:16px}
 #app>.home-grid .home-visual{display:block}
 #app>.home-grid .home-controls{display:flex;flex-direction:column;justify-content:center;width:auto;min-width:0;padding:43px 41px 43px 34px}
 #app>.home-grid h1{font-size:82px;line-height:1.025;letter-spacing:-.8px;margin:0 0 4px}
 #app>.home-grid .home-tagline{font-size:20px;line-height:26px;margin:0 0 24px;font-weight:500}
 #app>.home-grid .modes{margin:0 0 24px}
 #app>.home-grid .mode{height:92px;padding:15px;background:#344955;border-color:#465d6b}
 #app>.home-grid .mode[aria-pressed=true]{background:#364b32;border-color:var(--acid)}
 #app>.home-grid .mode:hover{filter:brightness(1.08)}
 #app>.home-grid .mode strong{font-size:17px}
 #app>.home-grid .mode span{font-size:13px}
 #app>.home-grid #join{height:50px;padding:0 16px;font-weight:500}
 #app>.home-grid #mode-note:empty{display:none}
 body:has(#app>.home-grid)>header #sign-in{height:39px;padding:0 12px;font-size:14px}
 .room-card .room-enter>span{width:auto;min-width:116px;padding:0 18px;font-family:'neulis-sans','Neulis Sans',Arial,sans-serif;font-size:14px;font-weight:600;white-space:nowrap}
}
@media(min-width:701px) and (max-width:1100px){
 #app>.home-grid .home-controls{padding:36px 24px}
 #app>.home-grid h1{font-size:82px}
 #app>.home-grid .home-tagline{font-size:17px}
 #app>.home-grid .mode{padding:10px}
}
@media(max-width:700px),(max-width:1000px) and (max-height:500px) and (pointer:coarse){
 #app>.home-grid{max-width:480px}
 #app>.home-grid .home-controls{width:100%}
 .home-tagline{font-size:15px;margin-bottom:20px}
 #xp-sign-in-desktop{display:none}
}
@media(min-width:701px) and (min-height:501px),(min-width:1001px){
 #app:has(.room-browser){padding-top:60px}
 .room-browser{position:relative}
 #directory-message:not(:empty){position:absolute;left:0;right:0;top:-60px;min-height:60px;display:flex;align-items:center;justify-content:center;margin:0;font-size:13px}
 .in-lobby .lobby-player-grid .lobby-player-tile,.in-lobby .lobby-player-grid .lobby-player-tile:has(.kick-player){padding:12px}
 .lobby-ready-dot,.lobby-ready-image{width:14.3px;height:14.3px;flex-basis:14.3px}
}
