/* One landscape game surface. Lists turn pages; the document never scrolls. */
html,body{width:100%;height:100%;margin:0;overflow:hidden;overscroll-behavior:none}
.menu-icon{display:block;flex-shrink:0;width:25px;height:25px}.game-tools button{display:grid!important;place-items:center}.game-tools button[aria-pressed=false]{background:#d5e3e5!important;color:#637e87;border-color:#b5ccd1!important}.mode-card i .menu-icon{width:17px;height:17px;stroke-width:3}.game-tools .icon-settings{width:23px;height:23px}
body{background:#0b4664}.sr-only{position:absolute!important;width:1px!important;height:1px!important;padding:0!important;margin:-1px!important;overflow:hidden!important;clip:rect(0,0,0,0)!important;white-space:nowrap!important;border:0!important}
#multi{width:100%;height:100dvh;min-height:0;overflow:hidden;background-attachment:scroll}
#screen{width:100%;max-width:1440px;height:100%;margin:auto;padding:max(8px,env(safe-area-inset-top)) max(12px,env(safe-area-inset-right)) max(10px,env(safe-area-inset-bottom)) max(12px,env(safe-area-inset-left));display:grid;grid-template-rows:48px minmax(0,1fr);gap:10px;overflow:hidden}
#screen>*{min-width:0;min-height:0}.game-topbar{display:grid;grid-template-columns:48px minmax(0,1fr) 100px;align-items:center;gap:12px;height:48px;margin:0;padding:0;background:none;box-shadow:none}
.game-topbar .back{width:44px;height:44px;min-height:44px;display:grid;place-items:center;padding:0;border:2px solid #fff;border-radius:16px;box-shadow:0 4px 0 #0b486baa;font-size:23px;background:#fff7da}
.game-topbar nav{display:flex;align-items:center;justify-content:center;gap:10px;width:auto;padding:0;margin:0;border:0;background:none;box-shadow:none;min-width:0}
.game-topbar nav button{position:relative;display:flex;align-items:center;justify-content:center;gap:7px;min-height:44px;height:44px;width:clamp(100px,15vw,180px);min-width:0;padding:4px 12px;border:2px solid #ffffffb0;border-radius:15px;background:#0b6696e8;color:#fff;font-size:18px;box-shadow:0 4px 0 #124761;transform:skew(-4deg)}
.game-topbar nav button span{font-size:15px;transform:skew(4deg)}.game-topbar nav button small{font-size:10px;background:#ffffff24;border-radius:7px;padding:2px 5px}
.game-topbar nav button[aria-current=page]{background:linear-gradient(#fff15f,#ffd32b);border-color:#fff1a2;color:#173a50;box-shadow:0 4px 0 #ab721d,0 0 14px #ffed6670}
.game-tools{display:flex;gap:8px;justify-content:flex-end}.game-tools button{width:44px;height:44px;min-height:44px;padding:0;border:2px solid white;border-radius:15px;background:#fff7dc;font-size:24px;box-shadow:0 4px 0 #0b486baa}.room-title{text-align:center;font-size:24px;font-weight:950;color:#fff;text-shadow:0 3px #075d84}
.lounge{height:100%;display:grid;grid-template-columns:clamp(140px,19vw,240px) minmax(0,1fr);gap:12px}.my-buddy{align-self:stretch;display:flex;gap:4px;min-height:0;height:100%;padding:0 12px 10px;border-radius:21px}.pilot-label{flex:0 0 auto;width:calc(100% + 24px);padding:7px 12px;font-size:8px;line-height:12px}.pilot-label i{font-size:11px}.pilot-portrait{flex:1 1 0;min-height:40px;width:100%;height:auto;margin:2px 0 0;background:radial-gradient(ellipse,#acf1f8,transparent 68%)}.pilot-portrait .buddy{width:100%;height:100%;max-width:180px;max-height:200px}.pilot-orbit{right:7%;top:10%;font-size:25px}.my-buddy>.eyebrow,.my-buddy>p,.pass-code{display:none}.my-buddy h2{font-size:clamp(17px,2.2vw,27px);line-height:1.2;flex:0 0 auto;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.my-buddy .stats{flex:0 0 auto;margin:3px 0;padding:7px 0;gap:0;width:100%;line-height:1.2}.stats b{font-size:clamp(17px,2vw,25px)}.stats small{font-size:9px}.my-buddy>button{flex:0 0 auto;min-height:44px;height:44px;padding:5px;font-size:12px;width:100%}
.lounge-main{display:grid;grid-template-rows:minmax(0,1fr) 44px;gap:10px;min-height:0}.section-heading{display:none}.mode-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:12px;min-height:0}.mode-card{width:100%;height:100%;min-height:0;padding:0;border-radius:20px;border-width:2px;box-shadow:0 4px 0 #095277aa;overflow:hidden}.mode-card .mode-tag{position:absolute;top:9px;left:12px;padding:3px 6px;font-size:7px;letter-spacing:1px}.mode-card .mode-number{font-size:36px;right:8px;top:1px}.mode-card .scene-art{right:4px;top:2%;width:47%;height:90%;max-height:none;object-fit:contain}.mode-card .mode-copy{left:13px;right:32px;bottom:15px}.mode-card strong{font-size:clamp(16px,2.3vw,30px);line-height:1.2;letter-spacing:-.6px;margin:0 0 5px}.mode-card small{font-size:clamp(9px,1.2vw,12px);max-width:78%;white-space:nowrap}.mode-card i{width:24px;height:24px;font-size:18px;right:8px;bottom:11px}.lounge-footer{display:flex;align-items:center;gap:15px;justify-content:space-between;min-height:0}.room-list-button{height:42px;min-height:42px;padding:5px 18px;border:2px solid #fff;border-radius:14px;background:#064f7bc9;color:white;box-shadow:0 3px 0 #073e60;font-size:13px}.room-list-button b{background:#ffdf45;color:#174158;border-radius:8px;padding:2px 7px;margin-left:8px}.lounge-footer>span{font-size:11px;color:#fff;text-shadow:0 1px #085572}
.panel{height:100%;min-height:0;border-radius:21px;padding:15px 18px;overflow:hidden}.panel h2{font-size:21px;margin:0;line-height:1.25}.panel h3{font-size:16px;margin:0}.panel-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.panel-heading button{min-height:44px;padding:5px 14px;font-size:12px}.panel-heading small{font-size:12px}.rooms-page{display:flex;flex-direction:column;gap:8px;width:100%;max-width:none;margin:0}.empty-rooms{flex:1;min-height:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px}.empty-rooms .scene-art{height:55%;max-height:230px;min-height:0}.empty-rooms h3{font-size:18px}.empty-rooms p{font-size:12px}.room-row{height:100%;min-height:0;padding:3px 8px;gap:10px;font-size:12px;display:flex}.room-row>span{font-size:11px}.room-row button{min-height:44px;padding:5px 16px;font-size:12px;flex-shrink:0}
.paged-list{flex:1;min-height:0;display:flex;flex-direction:column;gap:6px}.page-items{min-height:0;flex:1;display:grid;grid-auto-rows:minmax(0,1fr);gap:6px;align-content:start}.page-controls{height:40px;min-height:40px;display:flex;justify-content:center;align-items:center;gap:15px;flex-shrink:0}.page-controls button{height:38px;min-height:38px;min-width:52px;padding:0 10px;font-size:24px;box-shadow:0 2px 0 #446c7b;border-color:#8dadb7;border-radius:12px}.page-controls>span{font-size:11px;font-weight:800;color:#507a87;min-width:45px;text-align:center}.empty-copy{font-size:13px;color:#5c7c88;align-self:center;line-height:1.6;margin:auto 0}
.friend-layout{height:100%;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:12px}.friend-layout .panel{align-self:stretch}.friend-search-panel{display:flex;flex-direction:column;gap:8px}.friend-heading{flex:1;min-height:0;margin:0;gap:12px}.friend-heading .scene-art{width:38%;height:100%;max-height:190px;min-height:0}.friend-heading h2{font-size:clamp(18px,2.4vw,27px);margin:0 0 5px}.friend-heading p{font-size:11px}.qr-actions{display:flex;flex:0 0 44px;gap:10px;margin:0}.qr-actions button{min-height:44px;height:44px;padding:4px 10px;font-size:13px}.friend-search-panel .inline{flex:0 0 44px;margin:0;gap:7px}.friend-search-panel input{height:44px;min-height:44px;padding:5px 10px;font-size:12px}.friend-search-panel .inline button{min-height:44px;padding:5px 15px;font-size:13px}.friend-search-panel>small{padding:5px 8px;margin:0;font-size:10px;flex:0 0 auto;align-self:flex-start}.friends-list{display:flex;flex-direction:column;gap:8px}.friend-tabs{display:flex;gap:8px;flex:0 0 42px}.friend-tabs button{flex:1;min-height:40px;height:40px;padding:4px 8px;font-size:12px;border-radius:12px;box-shadow:0 3px #6593a1;border-color:#8ab7c0;background:#e7f6f5}.friends-list h2{font-size:15px}.friends-list h2 small{font-size:11px}.person{min-height:0;height:100%;padding:5px 4px;gap:8px}.person>.buddy{width:clamp(40px,6vw,70px);height:clamp(40px,6vw,70px);max-height:100%;flex-basis:clamp(40px,6vw,70px);min-height:0}.person b{font-size:13px;display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}.person small{font-size:9px;margin-top:3px}.person button{min-height:40px;padding:5px 8px;font-size:11px;flex-shrink:0}.person>span:not(.buddy){font-size:10px;white-space:nowrap}
.career-layout{height:100%;grid-template-columns:minmax(0,.8fr) minmax(0,1.4fr);gap:12px}.career-records{display:flex;flex-direction:column;gap:8px;align-self:stretch}.career-records h2{font-size:19px}.career-row{min-height:0;height:100%;gap:6px;padding:4px}.career-row .buddy{width:clamp(40px,6vw,70px);height:clamp(40px,6vw,70px);max-height:100%;min-height:0}.career-row b{font-size:13px}.career-row small{font-size:9px;margin-top:4px}.career-row>div{min-width:0}.career-row button{font-size:11px;min-height:40px;padding:4px 8px}.roster-panel{display:flex;flex-direction:column;gap:7px}.roster-preview{margin:0;padding:0;gap:10px;border:0;height:45px;min-height:45px;flex:0 0 45px}.roster-preview>.buddy{width:45px;height:45px;border-radius:12px}.roster-preview h2{font-size:21px;margin:0 0 2px}.roster-preview p{font-size:10px}.roster-preview>span{margin-left:auto;font-size:8px;letter-spacing:1px;color:#688d97}.roster-panel .page-items{grid-template-columns:repeat(4,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:7px}.roster-panel .page-items button{min-width:0;min-height:0;height:100%;padding:2px;border-radius:12px;background:#e2f4f2;border:2px solid #a6ccd1;box-shadow:0 2px #7ba6b3;display:flex;flex-direction:column;align-items:center;overflow:hidden}.roster-panel .page-items button[aria-pressed=true]{border-color:#bc8c0e}.roster-panel .page-items .buddy{flex:1;min-height:0;width:100%;height:auto}.roster-panel .page-items small{font-size:9px;line-height:13px;flex:0 0 13px}.roster-panel .page-controls{min-height:36px;height:36px}.roster-panel .page-controls button{min-height:34px;height:34px}#career-form{flex:0 0 44px;margin:0}#career-form .inline{height:44px;margin:0;gap:7px}#career-form input{min-height:44px;height:44px;font-size:12px;padding:5px 10px}#career-form button{min-height:44px;height:44px;font-size:12px;padding:5px 12px}
.setup{display:grid;width:100%;max-width:none;margin:0;grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr) 44px;gap:10px;padding:14px 20px}.setup.with-friends{grid-template-columns:minmax(0,1.5fr) minmax(0,1fr)}.setup-main{min-height:0;min-width:0;display:flex;flex-direction:column;gap:8px}.setup-heading{text-align:left;flex:0 0 auto}.setup-heading .eyebrow{display:none}.setup-heading h2{font-size:22px;margin:0}.setup .choice-row{flex:1;min-height:0;margin:0;gap:12px;flex-wrap:nowrap}.setup .choice-row button{height:100%;min-height:0;padding:0;border-radius:18px}.setup .choice-row .scene-art{height:88%;width:60%;top:1%;right:5px}.setup .choice-copy{left:15px;bottom:14px;gap:3px}.choice-copy strong{font-size:clamp(20px,3vw,35px)}.choice-copy small{font-size:8px}.choice-copy>span{font-size:10px}.setup .choice-check{left:auto;right:8px;top:8px;width:24px;height:24px;font-size:16px}.setup .mode-tip{margin:0;padding:7px 11px;flex:0 0 auto;font-size:11px;line-height:1.5}.setup .mode-tip b{display:none}.setup .stage-select{display:flex;margin:0;gap:10px;flex:0 0 40px;font-size:11px;align-items:center}.stage-select select{min-height:40px;height:40px;padding:4px 10px;margin:0;font-size:12px;width:0;flex:1}.setup .actions{grid-column:1/-1;position:static;height:44px;margin:0;padding:0;background:none;display:flex;justify-content:center;gap:12px;flex-wrap:nowrap}.setup .actions button{min-height:44px;height:44px;padding:5px 20px;font-size:14px;min-width:160px}.setup .actions .primary{min-width:230px}.friend-selection{min-height:0;min-width:0;margin:0;border:0;border-left:1px dashed #a7cbd1;padding-left:17px;display:flex;flex-direction:column;gap:7px}.friend-selection h3{font-size:16px;margin:0}.friend-selection h3 small{display:block;float:none;margin-top:4px;font-size:10px}.friend-selection p{font-size:10px;margin:0;line-height:1.4}.friend-picks{flex:1;min-height:0;display:flex;flex-direction:column;margin:0;gap:0}.friend-picks .paged-list{height:100%;width:100%}.friend-picks button[data-action=pick-friend]{height:100%;min-height:0;padding:5px 8px;gap:8px;font-size:12px;box-shadow:0 2px #7bafba;overflow:hidden}.friend-picks .buddy{width:40px;height:40px;max-height:100%;min-height:0}.friend-picks button>span:not(.buddy){min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.friend-picks small{font-size:9px}.team-intro{flex:1;min-height:0;margin:0;gap:20px}.team-intro .scene-art{height:100%;max-height:none;width:48%;min-height:0}.team-intro h3{font-size:22px;margin:10px 0}.team-intro p{font-size:12px}
.waiting{height:100%;width:100%;max-width:none;display:grid;grid-template-rows:24px 28px 18px minmax(0,1fr) 18px 44px;gap:6px;padding:0 4px;min-height:0}.waiting>.pill{justify-self:center;padding:3px 12px;font-size:10px;height:24px;line-height:16px}.waiting h2{font-size:23px;line-height:28px;margin:0}.waiting>p{font-size:10px;line-height:18px;margin:0}.waiting .team-slots{height:100%;min-height:0;margin:0;gap:16px;flex-wrap:nowrap;align-items:stretch}.waiting .player-slot{height:100%;min-height:0;width:clamp(130px,22vw,250px);padding:0 10px 8px;gap:3px;border-radius:18px;display:flex;flex-direction:column}.waiting .slot-label{width:calc(100% + 20px);padding:5px;font-size:8px;line-height:12px;flex:0 0 22px}.waiting .player-slot .buddy{width:100%;height:auto;max-height:none;min-height:20px;margin:0;flex:1}.waiting .player-slot h3{font-size:13px;line-height:18px;margin:0;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex-shrink:0}.waiting .player-slot>b{display:none}.waiting .ready-label{font-size:9px;line-height:14px;padding:3px 10px;margin:0;min-width:0;flex-shrink:0}.waiting-balloon{width:50px;min-height:25px;height:auto;max-height:85px;flex:1;margin:6px 0;font-size:28px}.empty small{display:none}.waiting .actions{margin:0;height:44px;gap:12px;flex-wrap:nowrap}.waiting .actions button{min-height:44px;height:44px;padding:5px 20px;font-size:14px;min-width:150px}.waiting .actions .primary{min-width:240px}
.results{width:100%;height:100%;max-width:none;margin:0;padding:12px 22px;display:grid;grid-template-columns:1fr 1fr;grid-template-rows:18px 34px minmax(0,1fr) 26px 44px;column-gap:20px;row-gap:5px;min-height:0}.results>.eyebrow{grid-column:1/-1;margin:0;font-size:9px;line-height:18px}.results h2{grid-column:1/-1;font-size:28px;line-height:34px;margin:0}.results .result-medal{position:absolute;left:22px;top:16px;width:48px;height:48px;font-size:30px;border-width:4px}.results .confetti{left:auto;right:15px;top:16px;font-size:20px;letter-spacing:10px}.results .podium{grid-column:1;grid-row:3/5;margin:0;min-height:0;gap:10px;align-items:stretch}.podium>div{display:flex;flex-direction:column;align-items:center;min-height:0;min-width:0;padding:2px 15px 8px;width:40%;max-width:190px}.podium .buddy{height:auto;width:100%;flex:1;min-height:0}.podium b{font-size:12px;line-height:17px;flex-shrink:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.results .final-score{grid-column:2;grid-row:3;align-self:center;display:flex;flex-direction:column;justify-content:center;gap:4px;font-size:22px;padding:10px;margin:0;max-width:none;min-height:0}.results .individual-scores{grid-column:2;grid-row:4;margin:0;gap:10px;font-size:10px;align-items:center;flex-wrap:nowrap}.results>p{grid-column:1;grid-row:5;font-size:10px;align-self:center;line-height:1.4}.results .actions{grid-column:2;grid-row:5;display:flex;flex-wrap:nowrap;margin:0;gap:10px;height:44px}.results .actions button,.results .actions .primary{flex:1;min-width:0;min-height:44px;height:44px;padding:4px 10px;font-size:12px}
#screen[data-view=login]{grid-template-rows:minmax(0,1fr)}.login-card{height:100%;max-height:100%;width:min(850px,100%);max-width:none;margin:0 auto;align-self:center;padding:18px 28px;overflow:hidden}.login-card .back{position:absolute;right:15px;top:12px;padding:8px 14px;font-size:12px}.login-card>.eyebrow{margin:0 0 10px;font-size:8px}.login-card h1{font-size:clamp(27px,5.5vh,48px);margin:8px 0}.login-card>p{font-size:12px;margin:7px 0}.login-art{position:absolute;right:15px;top:14%;height:78%;width:44%;margin:0}.login-card #dev-login{margin:10px 0 0;padding:8px;max-width:52%}.login-card #dev-login label{font-size:10px;margin:0}.login-card #dev-login .inline{margin:5px 0}.login-card #dev-login input{min-height:38px;height:38px;font-size:11px;padding:4px 8px}.login-card #dev-login button{min-height:38px;height:38px;font-size:11px;padding:4px 8px}.login-card #dev-login small{display:none}
dialog{max-height:calc(100dvh - 20px);max-width:calc(100vw - 28px);overflow:hidden;margin:auto}.settings-modal{width:440px;text-align:center}.settings-modal p{font-size:13px;margin:18px 0}.settings-modal .actions button{min-height:44px}.friend-invite-modal{width:600px;height:min(330px,calc(100dvh - 22px));padding:20px 24px 16px 250px;display:flex;flex-direction:column;justify-content:center}.friend-invite-modal .invite-art{position:absolute;left:16px;top:15%;height:65%;width:220px;margin:0}.friend-invite-modal .eyebrow{font-size:9px;margin:4px 0}.friend-invite-modal h2{font-size:22px;margin:6px 0;overflow-wrap:anywhere}.friend-invite-modal p{font-size:11px;margin:7px 0 14px}.friend-invite-modal .join-invite{min-height:46px;height:46px;font-size:20px}.friend-invite-modal .actions{margin-top:10px;gap:10px;flex-wrap:nowrap}.friend-invite-modal .actions button{min-width:0;flex:1;min-height:40px;height:40px;padding:4px;font-size:12px}.friend-qr-modal{height:min(340px,calc(100dvh - 20px));width:680px;padding:16px 22px;overflow:hidden;display:grid;grid-template-rows:28px minmax(0,1fr) 42px;gap:8px}.friend-qr-modal h2{font-size:22px;line-height:28px;margin:0}.friend-qr-modal .qr-close{justify-self:center;margin:0;min-height:42px;height:42px;padding:4px 24px}.qr-content{min-height:0}.qr-show .qr-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:1fr auto 1fr;gap:8px 20px;align-items:center}.qr-show .qr-picture{grid-column:1;grid-row:1/4;height:100%;width:auto;aspect-ratio:1;max-width:none;padding:2px;margin:auto;min-height:0}.qr-picture svg{width:100%;height:100%}.qr-show .qr-content strong{grid-column:2;align-self:end;font-size:22px}.qr-show .qr-code{grid-column:2;font-size:14px;margin:0;letter-spacing:1px}.qr-show .qr-content p:last-child{grid-column:2;align-self:start;font-size:12px;margin:0;line-height:1.5}.qr-scan .qr-content{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);grid-template-rows:32px 44px minmax(44px,1fr) 26px;gap:7px 14px}.qr-scan .qr-video{grid-column:1;grid-row:1/5;min-height:0;height:100%;max-width:none;width:100%;margin:0}.qr-scan .qr-content>p:first-child{display:none}.qr-scan .qr-status{grid-column:2;grid-row:1;font-size:10px;min-height:0;margin:0;line-height:1.4}.qr-scan .qr-start{grid-column:2;grid-row:2;height:44px;min-height:44px;padding:4px;font-size:14px}.qr-scan .qr-upload{grid-column:2;grid-row:3;font-size:10px;margin:0;min-height:0}.qr-scan .qr-upload input{font-size:10px;padding:4px;min-height:32px;margin-top:3px}.qr-scan .qr-content>small{grid-column:2;grid-row:4;font-size:8px;margin:0;line-height:1.3}#message{bottom:8px;padding:8px 15px;font-size:12px;max-width:75vw;pointer-events:none}
@media(max-height:380px){#screen{grid-template-rows:44px minmax(0,1fr);gap:8px;padding-top:6px;padding-bottom:8px}.game-topbar{height:44px}.lounge-main{grid-template-rows:minmax(0,1fr) 40px;gap:8px}.lounge-footer button{height:38px;min-height:38px}.mode-card strong{font-size:18px}.mode-card .mode-tag{font-size:6px;top:7px}.mode-card .mode-copy{bottom:11px}.mode-card small{font-size:9px}.my-buddy .stats{padding:5px 0}.panel{padding:10px 13px}.page-controls{height:36px;min-height:36px}.page-controls button{height:34px;min-height:34px}.setup{padding:10px 14px;gap:8px}.setup-main{gap:6px}.setup-heading h2{font-size:18px}.setup .mode-tip{font-size:10px;padding:5px 8px}.setup .choice-copy{left:10px;bottom:10px}.setup .choice-copy strong{font-size:21px}.setup .choice-copy>span{font-size:9px}.setup .choice-copy small{display:none}.setup .choice-row .scene-art{width:54%;height:90%}.friend-selection{padding-left:12px}.friend-selection h3{font-size:14px}.friend-selection p{font-size:9px}.roster-panel{gap:5px}.roster-preview{height:36px;min-height:36px;flex-basis:36px}.roster-preview>.buddy{height:36px;width:36px}.roster-preview h2{font-size:18px}.roster-preview p{font-size:9px}.roster-panel .paged-list{gap:4px}.roster-panel .page-controls{height:32px;min-height:32px}.roster-panel .page-controls button{height:30px;min-height:30px}.friend-heading .scene-art{max-height:100px}.friend-heading h2{font-size:19px}.friend-heading p{font-size:10px}.friend-search-panel{gap:6px}.friend-tabs{flex-basis:38px}.friend-tabs button{height:36px;min-height:36px}.friends-list{gap:6px}.person>.buddy{width:38px;height:38px;flex-basis:38px}.person b{font-size:12px}.person small{font-size:8px}.career-row .buddy{width:38px;height:38px}.career-row b{font-size:12px}.career-row small{font-size:8px}.waiting{grid-template-rows:22px 24px 16px minmax(0,1fr) 16px 44px;gap:4px}.waiting h2{font-size:21px;line-height:24px}.waiting>.pill{height:22px;padding:2px 10px}.waiting>p{font-size:9px;line-height:16px}.waiting .slot-label{padding:3px;flex-basis:18px;line-height:12px}.waiting .player-slot{padding-bottom:5px;gap:2px}.waiting .player-slot h3{font-size:12px;line-height:16px}.waiting .ready-label{padding:2px 8px;font-size:8px;line-height:12px}.results{padding:8px 18px;grid-template-rows:15px 28px minmax(0,1fr) 22px 44px;gap:4px 18px}.results h2{font-size:24px;line-height:28px}.results .final-score{font-size:18px;padding:6px}.results .individual-scores{font-size:9px}.results>p{font-size:9px}.results .result-medal{width:40px;height:40px;left:18px;top:13px;font-size:26px}.login-card{padding:12px 22px}.login-card h1{font-size:28px}.login-card>.eyebrow{margin-bottom:6px}.login-card #dev-login{padding:6px;margin-top:6px}}
@media(max-width:730px){.game-topbar{grid-template-columns:44px minmax(0,1fr) 94px;gap:8px}.game-topbar nav{gap:7px}.game-topbar nav button{width:100px;font-size:17px;padding:3px 6px}.game-topbar nav button span{font-size:13px}.lounge{grid-template-columns:130px minmax(0,1fr);gap:10px}.mode-grid{gap:10px}.mode-card strong{font-size:16px}.mode-card .mode-copy{left:10px}.mode-card small{font-size:8px}.mode-card .scene-art{width:48%;right:0}.lounge-footer>span{display:none}.friend-layout{grid-template-columns:minmax(0,.8fr) minmax(0,1.2fr)}.friend-heading h2{font-size:17px}.friend-heading .scene-art{width:34%}.person button{font-size:10px;padding:4px 6px}.person small{max-width:115px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.career-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.3fr)}.career-row{gap:4px}.career-row button{font-size:10px;padding:3px 5px}.roster-preview>span{display:none}#career-form button{font-size:11px;padding:4px 8px}#career-form input{font-size:11px;padding:4px 7px}.setup.with-friends{grid-template-columns:minmax(0,1.4fr) minmax(0,1fr)}.setup .choice-row{gap:8px}.setup.with-friends .choice-copy>span{display:none}.setup.with-friends .choice-row .scene-art{width:90%;height:70%;right:4%;top:0}.setup.with-friends .choice-copy strong{font-size:19px}.friend-selection h3 small{font-size:9px}.friend-picks button[data-action=pick-friend]{font-size:11px}.friend-picks .buddy{width:32px;height:32px}.waiting .team-slots{gap:10px}.waiting .player-slot{width:23%;border-width:2px}.results .individual-scores{gap:6px;font-size:8px}.results .actions button,.results .actions .primary{font-size:11px}.friend-invite-modal{padding-left:210px;width:570px}.friend-invite-modal .invite-art{width:180px}.friend-qr-modal{width:610px}.team-intro{gap:12px}.team-intro h3{font-size:18px}.team-intro p{font-size:10px}}
.paged-list:not([data-page-list=characters]) .page-items{grid-auto-rows:minmax(0,76px)}.setup.with-friends .choice-copy strong{font-size:22px}.setup.with-friends .choice-copy small,.setup.with-friends .choice-copy>span{display:none}.setup.with-friends .choice-row .scene-art{width:44%;height:85%;right:3px;top:3%}.game-topbar nav button span{white-space:nowrap}
@media(max-height:350px){.paged-list:not([data-page-list=characters]) .page-items{grid-auto-rows:minmax(0,62px)}.setup.with-friends .choice-copy strong{font-size:19px}.setup.with-friends .mode-tip{font-size:9px}.friend-selection>p{display:none}}
@media(orientation:portrait){#multi:after{content:'↻  휴대폰을 가로로 돌려 주세요';position:fixed;inset:0;z-index:100;background:#0a4565f5;color:#fff;display:grid;place-items:center;text-align:center;padding:25px;font-size:22px;font-weight:900}#screen,#arena{visibility:hidden}}

/* Name the destination so this is distinct from the room back button. */
.friend-share-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;flex-shrink:0}.friend-share-actions button{min-width:0;min-height:44px;padding:5px 6px;font-size:12px;white-space:nowrap}.friend-share-actions .kakao-share{background:#fee500;color:#191919;border-color:#d1b900;box-shadow:0 3px 0 #a48c16}.friend-share-modal{width:min(520px,calc(100vw - 28px));padding:20px;text-align:center;overflow:auto}.friend-share-modal h2{font-size:21px;margin:0 0 10px}.friend-share-modal p{font-size:13px;line-height:1.6;margin:8px 0 12px}.friend-share-modal label{display:block;text-align:left;font-size:12px}.friend-share-modal input{width:100%;margin:6px 0 14px;font-size:12px;min-height:44px}.friend-share-modal button{min-width:120px;min-height:44px}
@media(max-width:730px){.friend-share-actions{gap:6px}.friend-share-actions button{font-size:11px;padding:5px 3px}}
.game-topbar:has(.title-link){grid-template-columns:110px minmax(0,1fr) 100px}.game-topbar .title-link{width:110px;display:flex;justify-content:center;gap:5px}.title-link span{font-size:12px;font-weight:900;white-space:nowrap}.title-link .menu-icon{width:20px;height:20px}
@media(max-width:730px){.game-topbar:has(.title-link){grid-template-columns:106px minmax(0,1fr) 94px}.game-topbar .title-link{width:106px}.game-topbar:has(.title-link) nav button{width:90px}}
