/* Source: Figma 5:2, 12:244 and 17:323. Desktop geometry follows the 1440px frames. */
@font-face{font-family:'Space Grotesk';font-weight:700;src:url('/assets/space-700.ttf');font-display:swap}
.design-screen .connection{display:none}
.badge{height:56px;flex-shrink:0;justify-content:center;line-height:28px;overflow:hidden}
.landing .badge{width:130px;gap:8px;padding:8px 14px 8px 8px;align-self:center}
.brand-name{display:block;width:60px;line-height:28px;text-align:center;flex-shrink:0}
.badge .mark{flex:0 0 40px;line-height:28px;padding-bottom:3px;text-align:center;letter-spacing:-1.12px}
.landing{padding-top:clamp(90px,17.578125vh,180px);padding-bottom:60px}
.landing::before{width:max(2000px,100vw);height:clamp(600px,71.2890625vh,730px);min-height:0;border-radius:0 0 1000px 1000px}
.landing h1{width:774px;max-width:100%;font-size:56px;line-height:70.4px;letter-spacing:-2.24px}
.landing .intro{line-height:26px}
.landing-cards{gap:24px;margin-top:60px}
.game-card{width:350px;height:250px;padding:24px;border-radius:40px;gap:24px;flex-shrink:0;box-shadow:none}
.game-card strong{font-size:32px;font-weight:700;line-height:41px;letter-spacing:-1.28px}
.host-ring{display:block;padding:2px;border:2px solid var(--purple);border-radius:26px;box-shadow:none;background:transparent}
.host-ring-inner{display:block;padding:2px;border:2px solid var(--gold);border-radius:24px}
.create .host-ring{border-color:white;box-shadow:none}
.create .host-ring-inner{border-color:#bcb0db}
.host-pill{height:56px;min-width:127px;padding:8px 14px 8px 8px;border:0;border-radius:20px;gap:14px;background:white;line-height:24px;font-size:24px}
.host-pill .avatar{border:1.5px solid var(--purple)}
.host-pill.avatar-group{min-width:140px;width:140px;padding:8px 22px 8px 8px;background:var(--line);gap:0}
.host-pill.avatar-group .avatar{border:1px solid white;margin-right:-14px}
.returning-player{position:absolute;top:calc(100% + 24px);display:flex;justify-content:center;gap:12px;flex-wrap:wrap;font-size:14px}
.returning-player .text-button{color:white}
.profile-screen{padding:0 24px;display:grid;place-items:center}
.profile-screen .form-wrap h2{margin-bottom:40px}
.profile-screen .form-wrap .back{top:3.5px}
.profile-body{display:flex;flex-direction:column;gap:50px}
.profile-fields{display:flex;flex-direction:column;gap:40px}
.profile-fields .field{line-height:26px}
.profile-fields input{height:64px;line-height:28px}
.profile-body .primary{margin-top:0;height:64px;flex-shrink:0}
.profile-body .error{margin-bottom:-26px}
.avatar-grid{gap:24px 10px;margin-top:14px;grid-template-columns:repeat(5,60px)}
.avatar-button{width:60px;height:60px;position:relative;transition:none;animation:none;outline:0}
.avatar-button.selected{outline:none}
.avatar-button.selected::after{content:'';position:absolute;inset:0;border:4px solid var(--purple);border-radius:50%;pointer-events:none}
.avatar-button:focus-visible{outline:2px solid var(--ink);outline-offset:5px}
.generated-avatar{background-image:url('/assets/brag-avatars.webp');background-size:500% 200%;background-repeat:no-repeat;background-position:var(--avatar-x) var(--avatar-y);background-color:white}
.setup-screen{padding-top:max(48px,calc((100svh - 734px)/2));padding-bottom:60px}
.setup{width:880px;max-width:100%}
.setup .back{left:60px;top:4px}
.setup-header{gap:24px}
.setup-header .badge{width:130px;gap:8px;padding:8px 14px 8px 8px}
.host-profile{border:0;color:var(--ink)}
.setup-screen{animation:none}
.setup-header .badge>span:last-child{width:60px;text-align:center}
.segmented{width:412px;height:68px;padding:4px;border-radius:22px;flex-shrink:0}
.segmented button{height:56px;padding:10px;line-height:26px;border-radius:18px;width:200px;flex:0 1 200px}
.setup-grid{grid-template-columns:510px 346px;gap:24px;margin:60px 0}
.setup-grid .panel{padding:22px;border-radius:24px;min-width:0;height:308px}
.setup-grid .panel-label{line-height:26px;margin-bottom:14px}
.category-list{display:grid;grid-template-columns:200px 248px;gap:14px;justify-content:start}
.category-list .chip{height:64px;min-height:64px;min-width:0;justify-self:start;width:200px;padding:4px 20px;line-height:28px;white-space:nowrap}
.category-list .chip:nth-child(2){width:200px}
.category-list .chip:nth-child(4){width:248px}
.category-list .chip:nth-child(6){width:119px}
.category-list .chip.selected{padding:2px 18px}
.counter{gap:24px;justify-content:flex-start;margin-bottom:40px;height:64px;width:205px}
.counter .chip{flex:0 0 64px;width:64px;height:64px;padding:0;font-size:28px;color:var(--ink);line-height:1}
.counter input{font-size:48px;line-height:48px;letter-spacing:-1.92px;text-align:center;color:var(--purple);width:29px;flex:0 0 29px;height:64px;min-height:0;padding:0;border:0;border-radius:6px;background:transparent;appearance:textfield;box-sizing:content-box}
.counter input::-webkit-inner-spin-button,.counter input::-webkit-outer-spin-button{appearance:none;margin:0}
.counter input[value="10"]{width:52px;flex-basis:52px;font-size:48px;letter-spacing:-1.92px}
.counter:has(input[value="10"]){gap:12.5px}
.counter input:focus{outline:2px solid var(--purple);outline-offset:4px}
.rounds{gap:8px;width:280px}
.rounds .chip{flex:0 0 64px;height:64px;min-height:64px;padding:4px;font-size:22px;line-height:28px;display:grid;place-items:center}
.setup-actions .primary{height:64px;line-height:28px;padding:4px 20px}
@media(min-width:1441px){.screen.setup-screen{padding-top:max(48px,calc((100svh - 734px)/2))}.screen.profile-screen{padding-top:0}.landing::before{min-height:0}}
@media(max-width:950px){
 .setup-screen{padding-top:64px}.setup{width:720px}.setup .back{left:0}.setup-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr);gap:16px}
 .setup-grid .panel{height:auto;min-height:308px;padding:20px}.category-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.category-list .chip:nth-child(n){width:100%;font-size:17px;padding:4px 8px;white-space:normal}
 .category-list .chip.selected{padding:2px 6px}.rounds{width:100%;gap:6px}.rounds .chip{flex:1 1 0;width:auto;min-width:0;height:56px;min-height:56px}
 .counter{gap:18px;width:100%}.counter .chip{width:56px;height:56px;flex-basis:56px}.counter input{font-size:44px}
 .landing-cards .game-card{width:320px}
}
@media(max-width:640px){
 .landing{padding:64px 20px 80px}.landing::before{width:210%;height:520px;border-radius:0 0 1000px 1000px}.landing .badge{font-size:28px}.landing h1{font-size:38px;line-height:1.18;letter-spacing:-1.5px;width:100%;margin-top:24px}.landing .intro{font-size:17px;line-height:1.4;max-width:340px;margin-top:20px}
 .landing-cards{gap:14px;width:100%;margin-top:36px}.landing-cards .game-card{width:calc((100% - 14px)/2);min-width:0;height:200px;border-radius:30px;padding:12px 3px;gap:24px}.game-card strong{font-size:clamp(17px,4.8vw,23px);letter-spacing:-.7px;line-height:1.25;gap:4px}.game-card strong img{width:18px;height:18px}
 .landing .host-ring{padding:2px;border-radius:22px}.landing .host-ring-inner{padding:2px;border-radius:20px}.landing .host-pill{font-size:18px;min-width:0;height:44px;padding:6px;gap:6px;border-radius:16px}.landing .host-pill>.avatar{height:30px;width:30px}.landing .host-pill>.avatar img{width:30px;height:30px}.landing .host-pill.avatar-group{width:110px;padding:6px 14px 6px 6px;gap:0}.landing .avatar-group .avatar{width:30px;height:30px;margin-right:-10px}
 .returning-player{top:calc(100% + 20px)}.profile-screen{display:flex;align-items:center;padding:40px 20px;min-height:100svh}.profile-screen .form-wrap .back{position:static;margin-bottom:24px}.profile-screen .form-wrap h2{margin-bottom:36px}.profile-fields{gap:32px}.profile-body{gap:40px}.profile-fields .field{font-size:18px;line-height:24px}.avatar-grid{grid-template-columns:repeat(5,minmax(0,60px));gap:24px 12px}.avatar-button{width:min(60px,100%);height:auto;aspect-ratio:1}.avatar-grid .avatar{width:100%;height:100%}
 .setup-screen{padding:40px 20px 60px}.setup .back{position:static;margin-bottom:24px}.setup-header{gap:24px}.setup-header .badge{font-size:28px}.setup-header h2{font-size:36px}.segmented{width:100%;max-width:412px;height:64px}.segmented button{height:52px;font-size:18px}
 .setup-grid{grid-template-columns:1fr;margin:36px 0;gap:20px}.setup-grid .panel{padding:22px;min-height:0;height:auto}.category-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}.category-list .chip:nth-child(n){font-size:clamp(15px,4.3vw,18px);height:60px;min-height:60px;padding:4px 6px;flex:initial}.category-list .chip:nth-child(6){width:auto;min-width:95px}.category-list .chip.selected{padding:2px 4px}
 .settings-panel .counter{margin-bottom:32px;width:205px;gap:24px}.counter .chip{width:64px;height:64px;flex-basis:64px}.counter input{font-size:48px}.rounds{width:280px;max-width:100%;gap:8px}.rounds .chip{width:64px;height:64px;min-height:64px;flex:1 1 0}.setup-actions .primary{height:64px;font-size:22px}
}
@media(max-width:360px){.landing{padding-left:16px;padding-right:16px}.landing-cards{gap:10px}.landing-cards .game-card{width:calc((100% - 10px)/2)}.landing .host-pill.avatar-group{width:98px}.landing .avatar-group .avatar{width:27px;height:27px}.landing .avatar-group .avatar img{width:27px;height:27px}.avatar-grid{gap:24px 10px}.setup-grid .panel{padding:18px}.category-list{gap:10px}.category-list .chip:nth-child(n){font-size:15px}}

/* Input component 20:412, Join Game 25:287, and host lobby 21:564. */
.field,.profile-fields .field,.join-screen .field{font-size:18px;line-height:24px;gap:16px}
.field input,.profile-fields input,.join-screen .field input{height:64px;min-height:64px;border:2px solid var(--line);border-radius:22px;padding:4px 20px;font-size:20px;line-height:26px;outline:none;box-shadow:none}
.field input:focus,.field input:focus-visible,.profile-fields input:focus,.join-screen .field input:focus{border-color:var(--purple);outline:none;box-shadow:none}
.profile-fields .avatar-grid{margin-top:16px}
.counter input:focus,.counter input:focus-visible{outline:none;box-shadow:none}
.join-screen{display:grid;place-items:center;padding:0 24px;min-height:100svh}
.join-screen .form-wrap>.back{top:3px}
.join-header{display:flex;flex-direction:column;align-items:center;gap:24px}
.join-screen .join-header h2{margin:0;width:412px;max-width:100%;line-height:57.6px}
.join-avatars{width:140px;height:56px;padding:8px 14px 8px 8px;border-radius:20px;background:var(--line);overflow:hidden;flex-shrink:0}
.join-avatar-stack{display:flex;width:118px;height:40px}
.join-avatar-stack .avatar.sm{width:40px;height:40px;margin-right:-14px;border:1px solid white;background:white}
.join-avatar-stack .avatar.sm:last-child{margin-right:0}
.join-avatar-stack .avatar.sm img{width:40px;height:40px;top:calc(50% + .5px)}
.join-avatar-stack .avatar.sm .join-avatar-base{width:65px;height:65px;left:calc(50% - .5px);top:calc(50% - .5px)}
.join-form{display:flex;flex-direction:column;gap:60px;margin-top:40px}
.join-form .primary{height:64px;line-height:28px;padding:4px 20px}
.join-form .error{margin:-36px 0}
.join-form #code{text-transform:uppercase}
.join-form #code::placeholder{text-transform:none}
.lobby-screen{padding-top:100px;animation:none}
.room{width:928px;max-width:100%}
.room>.back{left:84px;top:0}
.room .room-header{width:576px;max-width:100%;margin:0 auto 60px;text-align:center}
.room-header h2{line-height:57.6px;white-space:nowrap}
.room .room-header>p{margin:16px 0 0;font-size:20px;line-height:26px}
.room .room-code{display:flex;align-items:center;justify-content:center;gap:24px;width:fit-content;margin:40px auto 0;padding:14px 14px 14px 20px;border-radius:18px;background:var(--line);min-height:67px}
.room-code-label{font-size:20px;line-height:26px;color:var(--muted);white-space:nowrap}
.room-code-action{display:flex;gap:10px;align-items:center}
.room-code-value{display:block;width:108px;font-size:28px;line-height:38.4px;letter-spacing:-1.12px;color:var(--ink);text-align:center;white-space:nowrap}
.room .room-code .copy-code{display:grid;place-items:center;flex:0 0 27px;width:27px;height:25px;padding:0;border:0;border-radius:0;background:transparent;font-size:0;line-height:0;letter-spacing:0}
.copy-code img{display:block;transform:rotate(180deg)}
.joined-label{display:flex;align-items:center;gap:8px;font-size:20px;line-height:26px;color:var(--muted);margin:0}
.joined-count{color:var(--ink)}
.room .players{grid-template-columns:repeat(3,minmax(0,300px));gap:14px;margin:14px 0 60px}
.room .player-card{min-height:171px;padding:22px;border:2px solid var(--line);border-radius:24px;min-width:0}
.player-card-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;min-width:0}
.room .player-card h3{display:block;min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis;font-size:32px;line-height:38.4px;letter-spacing:-1.28px}
.room .host-tag{flex-shrink:0;background:var(--purple);color:white;font-size:16px;line-height:20px;letter-spacing:0;padding:2px 8px;border-radius:6px}
.room .player-bottom{margin-top:24px;align-items:flex-end;justify-content:space-between;gap:8px}
.player-status{display:flex;align-items:center;gap:8px;white-space:nowrap;font-size:22px;line-height:28px}
.player-status.ready{color:#008e09}
.player-status.not-ready{color:var(--muted)}
.status-dot{display:block;flex:0 0 4px;width:4px;height:4px;background:currentColor;border-radius:50%}
.room>.primary{height:64px;line-height:28px;padding:4px 20px}
@media(min-width:1441px){.screen.join-screen{padding-top:0}.screen.lobby-screen{padding-top:100px}}
@media(max-width:950px){.room>.back{position:absolute;left:0}.room .players{grid-template-columns:repeat(2,minmax(0,1fr))}.room .room-header{margin-bottom:48px}.lobby-screen{padding-top:80px}}
@media(max-width:640px){
 .join-screen{display:flex;align-items:center;padding:40px 20px;min-height:100svh}.join-screen .form-wrap>.back{position:static;margin-bottom:24px}.join-screen .join-header h2{font-size:36px;line-height:43.2px}.join-form{gap:40px;margin-top:36px}.join-form .error{margin:-20px 0}
 .lobby-screen{padding:40px 20px 60px}.room>.back{position:static;margin-bottom:24px}.room .room-header{margin-bottom:36px}.room-header h2{font-size:36px;line-height:43.2px;white-space:normal}.room .room-header>p{font-size:18px;line-height:24px}.room .room-code{margin-top:32px;gap:20px;max-width:100%;padding:14px 14px 14px 20px}.room .players{grid-template-columns:1fr;margin-bottom:40px;gap:14px}.room .player-card{min-height:171px;padding:22px}.room .player-card h3{font-size:32px;line-height:38.4px}.room-code-label{font-size:18px;line-height:24px}.room-code-value{font-size:28px;line-height:38.4px}.player-status{font-size:22px;line-height:28px}
}
@media(max-width:360px){.room .room-code{gap:12px;padding:12px}.room-code-action{gap:8px}.room-code-label{font-size:17px}.room .player-card h3{font-size:28px}.room .player-card{padding:18px}}

/* Updated shared Figma text styles and countdown frame 25:184. */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/space-400.ttf');font-display:swap}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/space-500.ttf');font-display:swap}
:root{font-weight:400}
h1,h2,h3,.badge,.host-pill,.room .host-tag,.counter input,.timer span,.podium-user .name,.podium-rank,.leaderboard header>p{font-weight:500}
.game-card strong{font-weight:700}
.landing .intro{font-size:18px;line-height:23px;font-weight:400}
.field,.field input,.profile-fields .field,.profile-fields input,.chip,.segmented button,.primary,.secondary,.panel-label,.room .room-header>p,.room-code-label,.joined-label,.player-status,.rank-row,.rank-row .name,.rank-row .xp,.podium-user .xp,.answer,.word-tiles span,.word-wrap input,.pairs label,.pairs select,.order-row{font-weight:400}
.answers.boolean .answer{font-weight:500}
#avatar-label{font-size:20px;line-height:26px}
.profile-fields .avatar-grid{margin-top:14px}
.countdown-background{height:100svh;overflow:hidden;pointer-events:none;user-select:none}
.countdown-background .room-header h2{color:var(--purple)}
.game-start-overlay{position:fixed;inset:0;z-index:25;background:rgba(8,8,8,.5);display:grid;place-items:center;animation:none}
.game-start-content{display:flex;flex-direction:column;align-items:center;gap:16px;width:192px;max-width:calc(100vw - 40px);text-align:center}
.countdown-outer{width:96px;height:96px;border:2px solid var(--purple);padding:2px;border-radius:50%;flex-shrink:0}
.countdown-inner{width:88px;height:88px;border:2px solid white;padding:2px;border-radius:50%}
.countdown-disc{width:80px;height:80px;border-radius:50%;background:var(--purple);display:flex;align-items:center;justify-content:center;overflow:hidden}
.countdown-disc span{font-weight:500;font-size:48px;line-height:57.6px;letter-spacing:-1.92px;color:white;text-align:center}
.game-start-content>p{font-size:22px;line-height:28px;font-weight:400;color:white;white-space:nowrap}
.question-screen{animation:none}
.question-screen.enter-question{animation:enter .35s ease both}
.question-top{margin-bottom:82.4px}
.question-top h2{margin-bottom:0}
.timer{color:var(--purple)}
.timer-ring{position:absolute;inset:0;display:block;width:106px;height:106px;overflow:visible}
#timer-progress{transition:stroke-dashoffset .1s linear}
.timer span{position:relative;z-index:1;font-weight:500}
.landmark{border-radius:40px}
.feedback,.feedback *{animation:none;transition:none}
@media(max-width:950px){.question-top{margin-bottom:62.4px}}
@media(max-width:640px){.landing .intro{font-size:18px;line-height:24px}.question-top{margin-bottom:40px}.timer-ring{width:90px;height:90px}.game-start-content>p{font-size:22px;line-height:28px}}
@media(prefers-reduced-motion:reduce){.question-screen.enter-question{animation:none}#timer-progress{transition:none}}
/* Mobile type roles: body 14, inputs 16, controls 16, headings 24–32. */
:root{--type-body:1rem;--type-control:1.375rem;--type-heading:3rem}
.timer,.counter input,.room-code-value,.xp{font-variant-numeric:tabular-nums}
@media (min-width:641px) and (max-width:950px){
 body{font-size:1rem;line-height:1.5}
 h1,.landing h1{font-size:2.75rem;line-height:1.2;letter-spacing:-.04em}
 h2,.setup-header h2,.room-header h2,.join-screen .join-header h2{font-size:2.25rem;line-height:1.25;letter-spacing:-.04em}
 h3,.room .player-card h3{font-size:1.5rem;line-height:1.3}
 .primary,.answer,.chip,.segmented button,.player-status{font-size:1.125rem;line-height:1.4}
 .room .room-header>p,.landing .intro{font-size:1rem;line-height:1.5}
}
@media(max-width:640px){
 :root{--type-body:.875rem;--type-control:1rem;--type-heading:1.75rem}
 body{font-size:var(--type-body);line-height:1.5}
 .screen{padding:28px 20px 40px}.screen>header{margin-bottom:32px}
 h1,.landing h1{font-size:clamp(1.75rem,7.5vw,2rem);line-height:1.2;letter-spacing:-.04em;text-wrap:balance}
 h2,.setup-header h2,.room-header h2,.join-screen .join-header h2{font-size:var(--type-heading);line-height:1.25;letter-spacing:-.035em;text-wrap:balance}
 h3,.question h3{font-size:1.25rem;line-height:1.4;letter-spacing:-.025em;text-wrap:balance}
 .landing{padding:48px 20px 80px}.landing::before{height:480px}
 .landing .intro,.room .room-header>p{font-size:.875rem;line-height:1.5;max-width:32ch;margin-top:16px;margin-inline:auto}
 .landing h1{margin-top:20px}.landing-cards{margin-top:28px;gap:12px}
 .landing-cards .game-card{height:168px;border-radius:24px;padding:12px 6px;gap:20px}
 .game-card strong{font-size:1rem;line-height:1.4;letter-spacing:-.02em;gap:4px}
 .landing .host-pill{font-size:.875rem}.landing .host-pill.avatar-group{width:98px}.landing .avatar-group .avatar{width:27px;height:27px}.landing .avatar-group .avatar img{width:27px;height:27px}
 .primary,.secondary,.answer,.chip,.segmented button,.setup-actions .primary{font-size:var(--type-control);line-height:1.5;min-height:52px;border-radius:18px}
 .primary{padding:12px 18px}.room>.primary,.setup-actions .primary,.join-form .primary,.profile-body .primary{height:52px;line-height:1.5}
 .field,.profile-fields .field,.join-screen .field,#avatar-label,.panel-label,.joined-label{font-size:.875rem;line-height:1.5;gap:10px;letter-spacing:0}
 .field input,.profile-fields input,.join-screen .field input{font-size:1rem;line-height:1.5;height:52px;min-height:52px;border-radius:18px;padding:10px 16px}
 .profile-screen,.join-screen{padding:28px 20px;align-items:center}.profile-screen .form-wrap h2{margin-bottom:28px}.profile-fields{gap:24px}.profile-body{gap:28px}.profile-fields .avatar-grid{margin-top:10px;gap:18px 10px}
 .setup-screen{padding:28px 20px 40px}.setup-header{gap:20px}.setup-grid{gap:16px;margin:28px 0}.setup-grid .panel{padding:18px;border-radius:20px}.setup-grid .panel-label{line-height:1.5;margin-bottom:12px}
 .segmented{height:56px;border-radius:18px}.segmented button{height:44px;min-height:44px;border-radius:12px}
 .category-list{gap:10px}.category-list .chip:nth-child(n){font-size:.875rem;line-height:1.4;height:52px;min-height:52px;border-radius:18px;min-width:0;width:100%;white-space:normal}
 .settings-panel .counter{height:52px;margin-bottom:24px;gap:20px;width:190px}.counter .chip{width:52px;height:52px;min-height:52px;flex-basis:52px;font-size:1.5rem}
 .counter input,.counter input[value="10"]{font-size:2rem;line-height:1.2;height:52px;letter-spacing:-.04em;width:44px;flex-basis:44px}
 .rounds{width:100%;gap:10px}.rounds .chip{height:52px;min-height:52px;font-size:1rem;line-height:1.5}
 .join-header{gap:20px}.join-form{margin-top:28px;gap:32px}.join-screen .join-header h2{line-height:1.25}
 .lobby-screen{padding:28px 20px 40px}.room .room-header{margin-bottom:28px}.room-header h2{white-space:normal}.room .room-code{margin-top:24px;gap:16px;padding:12px 16px;min-height:56px;border-radius:16px}.room-code-label{font-size:.875rem;line-height:1.5}.room-code-value{font-size:1.5rem;line-height:1.4;width:96px;letter-spacing:-.035em}
 .room .players{gap:12px;margin:12px 0 28px}.room .player-card{min-height:128px;padding:16px;border-radius:20px}.room .player-card h3{font-size:1.25rem;line-height:1.4;letter-spacing:-.025em}.room .player-bottom{margin-top:18px}.player-status{font-size:.875rem;line-height:1.5}.room .host-tag{font-size:.75rem;line-height:1.5;padding:2px 6px}.player-bottom .avatar{width:48px;height:48px}
 .room>.primary+.primary{margin-top:12px}
 .question-top{margin-bottom:28px}.timer{margin-bottom:24px;width:80px;height:80px}.timer-ring{width:80px;height:80px}.timer span{width:60px;height:60px;font-size:1.5rem;letter-spacing:-.03em}.question h3{margin-bottom:24px}.answer{font-size:1rem;line-height:1.5;min-height:60px;padding:16px}.answer.selected{padding:14px}.answers{margin-bottom:24px}.answers.boolean{gap:12px}.boolean .answer{height:96px;font-size:1.25rem}
 .word-wrap{margin-bottom:24px}.word-tiles{gap:5px}.word-tiles span{height:52px;border-radius:12px;font-size:1.125rem;flex:1;max-width:52px}.word-wrap.tiled input{height:52px;min-height:52px}.word-wrap input{font-size:1rem;line-height:1.5;min-height:64px}.word-hint{font-size:.75rem;line-height:1.5;max-width:32ch;margin:12px auto 0}
 .waiting,.feedback,.error,.small,.modal p{font-size:.875rem;line-height:1.5}.feedback{padding:16px;border-radius:18px;margin-bottom:20px}.landmark{width:min(100%,320px);border-radius:24px;margin-bottom:24px}
 .leaderboard header{margin-bottom:28px}.leaderboard header p{font-size:1rem;line-height:1.5;margin-top:12px}.rank-row{font-size:1rem;line-height:1.5;padding:16px 12px;gap:10px;border-radius:18px;min-height:72px}.rank-row .xp{font-size:.875rem}.rankings{margin-bottom:28px}
 .countdown-outer{width:80px;height:80px}.countdown-inner{width:72px;height:72px}.countdown-disc{width:64px;height:64px}.countdown-disc span{font-size:2rem;line-height:1.2;letter-spacing:-.04em}.game-start-content>p{font-size:1rem;line-height:1.5}.modal{padding:24px}.modal h3{font-size:1.25rem}.modal .primary{font-size:1rem}
}
@media(max-width:360px){.screen{padding-inline:16px}.landing{padding-inline:16px}.landing-cards{gap:10px}.game-card strong{font-size:.875rem}.word-tiles{gap:4px}.word-tiles span{font-size:1rem;border-radius:10px}.room .room-code{gap:10px;padding:12px}.room .player-card h3{font-size:1.25rem}}
@media(max-width:640px){
 .podium-container{aspect-ratio:1.2;margin-bottom:24px}
 .podium{width:100%;height:100%;left:0;transform:none;gap:0}
 .podium-slot{width:34.4%;min-width:0}.podium-slot.first{height:100%}.podium-slot.second{height:88%;margin-right:-1.6%}.podium-slot.third{height:79%;margin-left:-1.6%}
 .podium-user{height:108px;flex-shrink:0;gap:4px;width:100%}.podium-user .avatar.lg{width:44px;height:44px}.podium-user .name{font-size:1rem;line-height:1.4;letter-spacing:-.02em;max-width:100%}.podium-user .xp{font-size:.875rem;line-height:1.5}
 .podium-top{width:106.5%;height:28px}.podium-top img{width:100%;height:100%}.podium-front{width:100%;padding-top:16px;gap:10px}.podium-stars{height:20px}.podium-stars img{max-height:20px;max-width:60px}.podium-rank{font-size:2rem;line-height:1.2;gap:2px}.podium-rank img{height:30px;width:16px}
}
/* Figma 36:13 solo setup; 36:92 lobby and microphone components. */
.solo-setup .settings-panel{height:auto;min-height:0;align-self:start;padding:24px}
.setup-grid .category-list .chip,.setup-grid .rounds .chip{font-size:18px}
.solo-setup .category-list{grid-template-columns:200px 200px}
.solo-setup .category-list .chip:nth-child(4){width:200px}.solo-setup .category-list .chip:nth-child(6){width:104px}
.solo-setup .setup-grid{grid-template-columns:476px 350px;justify-content:center}
.room .player-card{min-height:0;padding:18px;border-radius:24px}
.player-card-heading{justify-content:flex-start;gap:8px;min-height:40px}
.room .player-card h3{font-size:22px;line-height:1.3;letter-spacing:0;font-weight:500;flex:1}
.player-card-heading .avatar.sm{width:40px;height:40px}
.room .player-bottom{margin-top:24px;align-items:center;min-height:35px}
.player-status{font-size:16px;line-height:1.4;gap:8px}
.mic-control{border:0;background:transparent;padding:0;width:35px;height:35px;display:grid;place-items:center;flex:0 0 35px;border-radius:50%}
.mic-control img{display:block}.mic-control[aria-pressed=true]{background:#f3efff}
.room .host-tag{font-size:16px;line-height:1.25;font-weight:500;padding:2px 8px}
@media(max-width:950px){.solo-setup .setup-grid{grid-template-columns:minmax(0,1.35fr) minmax(0,1fr)}.solo-setup .category-list{grid-template-columns:repeat(2,minmax(0,1fr))}.solo-setup .category-list .chip:nth-child(n){width:100%}}
@media(max-width:640px){.solo-setup .setup-grid{grid-template-columns:1fr}.solo-setup .settings-panel{padding:18px}.setup-grid .category-list .chip{font-size:14px}.setup-grid .rounds .chip{font-size:16px}.room .player-card{padding:16px;border-radius:20px}.room .player-card h3{font-size:16px;line-height:1.5}.player-status{font-size:14px;line-height:1.5}.room .host-tag{font-size:12px;line-height:1.5}.room .player-bottom{margin-top:20px}.player-card-heading .avatar.sm{width:40px;height:40px}}
/* October revisions: current Figma answer field, score rows, and composite podium. */
.answer-field{width:min(500px,100%);margin:0 auto 120px;position:relative}
.answer-field input{position:static;opacity:1;width:100%;height:100px;min-height:100px;border:2px solid var(--line);border-radius:24px;text-align:center;font-size:22px;letter-spacing:0;padding:24px;font-weight:500}
.answer-field input:focus{outline:none;border-color:var(--purple);box-shadow:none}
.image-credit{display:block;font-size:12px;line-height:1.5;color:var(--muted);margin-top:8px}
.sound-control{position:fixed;right:20px;top:20px;z-index:20;border:1px solid var(--line);border-radius:50%;background:#fffffff2;width:40px;height:40px;font-size:22px;display:grid;place-items:center;color:var(--purple)}
.leaderboard{max-width:600px}.leaderboard header>p{font-size:28px;line-height:38.4px;margin-top:16px}.leaderboard .progress{height:8px;width:min(500px,100%);margin:16px auto 0}.rankings{gap:8px}.rank-row{display:flex;align-items:center;gap:20px;padding:24px;border:2px solid var(--line);border-radius:24px;min-height:92px}.rank-row.top-three{border:4px solid var(--purple);padding:22px}.rank-row .name{font-size:22px;font-weight:500;flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.rank-row .round-xp,.rank-row .xp{font-size:20px;font-weight:400;color:var(--muted);white-space:nowrap}.rank-row .round-xp{margin-left:-6px}.rank-row .xp{margin-left:auto}.rank-row .medal{flex-shrink:0}.rank-row .avatar{flex-shrink:0}
.final .leaderboard{width:min(600px,100%);position:relative}.final .leaderboard header{margin-bottom:60px}.podium-composite{width:581px;max-width:100%;aspect-ratio:581/483;position:relative;flex-shrink:0;margin:0 auto 14px}.podium-art{position:absolute;display:block;left:0;bottom:0;width:100%;height:auto;object-fit:contain}.podium-winners{position:absolute;inset:0}.podium-winner{position:absolute;width:24%;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}.podium-winner .avatar{margin-bottom:10px}.podium-winner .name{font-size:28px;line-height:38.4px;letter-spacing:-1.12px;width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-weight:500}.podium-winner .xp{font-size:20px;line-height:26px;color:var(--muted)}.podium-place-2{left:9%;top:8.7%;color:#fcd925}.podium-place-1{left:38%;top:0;color:var(--purple)}.podium-place-3{left:67%;top:17.4%;color:var(--mint)}.final .rankings{margin-bottom:40px}.final .rank-row .name{flex:1}.landmark{display:block;width:auto;max-width:min(100%,360px);height:230px;object-fit:contain;margin:0 auto 32px;border-radius:24px}
@media(max-width:640px){
 .landing-cards .game-card{border-width:2px}
 .room .players{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.room .player-card{padding:14px 12px;min-height:128px;border-radius:20px}.room .player-card-heading{gap:8px;min-width:0}.room .player-card h3{font-size:16px;line-height:21px;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.room .player-card .avatar.sm{width:32px;height:32px}.room .player-bottom{margin-top:18px;gap:4px;align-items:center;flex-wrap:wrap}.room .player-status{font-size:12px;gap:5px}.room .host-tag{font-size:11px;padding:2px 5px;margin-left:auto}.room .mic-control{width:28px;height:28px;flex-shrink:0}.room .mic-control img{width:28px;height:28px}
 .answer-field{margin-bottom:64px}.answer-field input{font-size:16px;height:76px;min-height:76px;padding:18px;border-radius:20px}
 .rank-row{gap:8px;padding:14px 10px;min-height:76px;border-radius:18px}.rank-row.top-three{padding:12px 8px;border-width:3px}.rank-row .rank{font-size:14px}.rank-row .medal{width:16px;height:auto}.rank-row .avatar.sm{width:30px;height:30px}.rank-row .name{font-size:14px}.rank-row .round-xp,.rank-row .xp{font-size:12px}.rank-row .round-xp{margin-left:0}.leaderboard header>p{font-size:20px;line-height:28px}.leaderboard .progress{height:6px}
 .final .leaderboard header{margin-bottom:32px}.podium-winner .avatar.lg{width:48px;height:48px;margin-bottom:2px}.podium-winner .name{font-size:16px;line-height:21px;letter-spacing:-.4px}.podium-winner .xp{font-size:12px;line-height:16px}.podium-winner{gap:2px}.final .rankings{margin-bottom:28px}.landmark{height:180px;max-width:100%;margin-bottom:24px}.sound-control{width:34px;height:34px;font-size:18px;right:12px;top:12px}
 .category-list .chip:nth-child(n){width:auto;min-width:0;flex:1 1 43%;font-size:16px}
}
@media(max-width:360px){.room .player-card{padding:12px 8px}.room .player-card-heading{gap:5px}.room .player-card h3{font-size:14px}.room .player-status{font-size:11px;gap:4px}.room .host-tag{font-size:10px}.podium-winner .avatar.lg{width:40px;height:40px}.podium-winner .name{font-size:14px}.rank-row{gap:6px}.rank-row .round-xp,.rank-row .xp{font-size:11px}}
.setup-grid .category-panel{height:auto;min-height:308px}.room .mic-control{width:35px;height:35px}.room .mic-control img{width:35px;height:35px}
.answer-field input{text-transform:none}.type-answer-screen .question-top{margin-bottom:120px}
@media(max-width:640px){.type-answer-screen .question-top{margin-bottom:28px}}
.podium-place-1 .avatar{margin-bottom:4px}.podium-place-2 .name{line-height:28px}.final{background:linear-gradient(to bottom,#d4cde8 17.94%,#fff 42.67%)}
@media(max-width:640px){.podium-place-1 .avatar{margin-bottom:2px}.podium-place-2 .name{line-height:21px}}
.medal-slot{position:relative;display:inline-block;flex:0 0 16.335px;height:28px}.rank-row .medal-slot .medal{position:absolute;left:-.229px;top:-.784px;width:27.7612px;height:39.8495px;max-width:none}
@media(max-width:640px){.medal-slot{flex-basis:12px;height:21px;transform:scale(.75);transform-origin:left center}}

/* Figma 40:308: podium fades to white at the base. */
.podium-composite::after{content:'';position:absolute;pointer-events:none;left:-1.2909%;bottom:0;width:102.5818%;height:54.4513%;background:linear-gradient(to top,#fff 6.274%,rgba(255,255,255,0) 50.19%)}
/* Route headings keep screen-reader focus without a browser-painted rectangle. */
:is(h1,h2)[tabindex="-1"]:focus{outline:none}
@media(max-width:640px){
 .join-screen{display:block;padding:28px 20px 40px;min-height:100svh}
 .join-screen .form-wrap{margin:0 auto}
 .join-screen .form-wrap>.back{position:static;margin:0 0 24px;width:44px;height:44px}
 .setup-screen .setup>.back{position:static;margin:0 0 24px;width:44px;height:44px}
 .setup-header .host-profile{position:absolute;top:0;left:50%;transform:translateX(-50%);width:auto;min-width:98px;height:44px;padding:6px 12px 6px 6px;gap:7px;border-radius:16px;font-size:18px;line-height:24px;letter-spacing:-.5px}
 .setup-header .host-profile .avatar.sm{width:32px;height:32px}
 .setup-header .host-profile .avatar.sm img{width:32px;height:32px}
 .setup-header .host-profile>span:last-child{width:auto}
}
/* Navigation moves once per view, never on polling, typing or answer feedback. */
.screen,.question-screen.enter-question{animation:none}
@media(prefers-reduced-motion:no-preference){
 .screen.view-enter{animation:brag-view-in 260ms cubic-bezier(.2,0,0,1) both}
 .leaderboard-enter>header{animation:brag-rise 480ms cubic-bezier(.2,.75,.25,1.12) both}
 .leaderboard-enter .podium-composite{animation:brag-rise 650ms cubic-bezier(.2,.8,.25,1.1) 80ms both}
 .leaderboard-enter .rank-row{animation:brag-rise 550ms cubic-bezier(.2,.8,.25,1.1) both}
 .leaderboard-enter .rank-row:nth-child(2){animation-delay:70ms}.leaderboard-enter .rank-row:nth-child(3){animation-delay:140ms}.leaderboard-enter .rank-row:nth-child(n+4){animation-delay:210ms}
 .leaderboard-enter>.primary{animation:brag-view-in 320ms ease-out 240ms both}
}
@keyframes brag-view-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:translateY(0)}}
@keyframes brag-rise{0%{opacity:0;transform:translateY(18px) scale(.985)}72%{opacity:1;transform:translateY(-2px) scale(1.002)}100%{opacity:1;transform:translateY(0) scale(1)}}
@media(prefers-reduced-motion:reduce){.screen.view-enter{animation:brag-fade 120ms linear}.screen *, .leaderboard-enter *{animation:none!important;scroll-behavior:auto!important}}
@keyframes brag-fade{from{opacity:.75}to{opacity:1}}
@media(max-width:640px){
 .profile-screen,.join-screen,.lobby-screen,.setup-screen{display:block;padding:20px 20px 40px;align-items:start}
 .profile-screen .form-wrap,.join-screen .form-wrap,.room,.setup{position:relative;margin:0 auto}
 .profile-screen .form-wrap>.back,.join-screen .form-wrap>.back,.room>.back,.setup-screen .setup>.back{position:absolute;left:0;top:0;width:40px;height:40px;margin:0;z-index:2}
 .profile-screen .form-wrap h2,.join-screen .join-header h2,.setup-header h2,.room-header h2{display:flex;align-items:center;justify-content:center;min-height:40px;font-size:clamp(20px,5.65vw,24px);line-height:1.2;letter-spacing:-.035em;padding:0 52px;margin:0!important;text-wrap:balance}
 .profile-screen .form-wrap h2{margin-bottom:32px!important}
 .join-header{display:flex;gap:24px}.join-header h2{order:-1;width:100%!important}.join-form{margin-top:28px}
 .join-avatars{width:116px;height:48px;padding:4px 8px;border-radius:16px}.join-avatar-stack{transform:scale(.85);transform-origin:left center}
 .room .room-header{width:100%;margin:0 0 28px}.room .room-header>p{margin-top:18px;max-width:30ch}.room .room-code{margin-top:24px}
 .setup-header{padding-top:56px;gap:24px}.setup-header h2{position:absolute;top:0;left:44px;right:86px;padding:0;font-size:clamp(18px,5vw,22px)}
 .setup-header .host-profile{left:auto;right:0;top:0;transform:none;min-width:80px;height:40px;font-size:14px;padding:5px 8px 5px 5px;gap:4px;border-radius:14px}.setup-header .host-profile .avatar.sm{width:28px;height:28px}.setup-header .host-profile .avatar.sm img{width:28px;height:28px}
 .question-screen,.final{padding-top:24px}.question-top{margin-bottom:28px}.final .leaderboard header{margin-bottom:28px}
 .sound-control{right:8px;top:auto;bottom:max(12px,env(safe-area-inset-bottom));width:34px;height:34px;z-index:20}
}
