/* Dedicated home and room surfaces; gameplay remains in styles.css. */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap}i[data-icon]{display:inline-flex;align-items:center;justify-content:center;flex:none;font-style:normal}i[data-icon] svg,.feature-dialog svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
body:not(.is-playing){background:radial-gradient(ellipse at top,#306fb0,#102a56 85%)}body:not(.is-playing) .app-shell{max-width:1560px;padding:0 28px 24px}body:not(.is-playing) .topbar{height:88px;border-bottom:0;padding:0 4px}body:not(.is-playing) .map-heading{display:none}body:not(.is-playing) .topbar .brand{font-size:29px}body:not(.is-playing) .brand-mark{background:linear-gradient(#a6fff1,#36dfd4);box-shadow:0 4px 0 #087b91,0 6px 12px #001b4866}body:not(.is-playing) .connection-badge{display:inline-block;color:#cfedff}body:not(.is-playing) .icon-button{background:linear-gradient(#447eb6,#285b93);border-color:#8acfffa8;box-shadow:0 3px 0 #143668}body:not(.is-playing) main>.match-bar,body:not(.is-playing) #terrain-strip,body:not(.is-playing) #showcase-hint,body:not(.is-playing) .player-strip,body:not(.is-playing) .control-bar,body:not(.is-playing) .touch-controls{display:none}
.home-screen{position:relative;isolation:isolate;overflow:hidden;border:3px solid #9dddff;border-radius:30px;background:#89d8e5 url('../assets/island-lobby-v9.png') center center/cover no-repeat;height:calc(100vh - 122px);min-height:640px;max-height:880px;box-shadow:0 8px 0 #081f4280,0 25px 70px #03193866;color:#153d63}.home-screen:after{content:'';position:absolute;z-index:-1;inset:0;background:linear-gradient(180deg,#15466822,transparent 27%,transparent 70%,#163f5170);pointer-events:none}.home-profile{position:absolute;top:24px;left:24px;display:flex;align-items:center;gap:10px;padding:6px 12px 6px 6px;border:1px solid #fff9;border-radius:17px;background:#f3fbf3ee;box-shadow:0 5px 18px #24597825}.profile-portrait{width:49px;height:49px;overflow:hidden;border-radius:12px;background:linear-gradient(#ffdfa0,#ffac59);border:2px solid #fff}.profile-portrait img{width:100%;height:140%;object-fit:contain;object-position:top}.home-profile strong{display:block;font-weight:900;font-size:14px;max-width:170px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.home-profile small{display:block;font-size:8px;letter-spacing:1px;color:#456b7c;font-weight:900;margin-top:3px}.home-profile button{background:transparent;color:#497182;padding:5px}.home-profile button svg{width:17px;height:17px}.home-heading{position:absolute;top:124px;left:36px;text-shadow:0 2px 0 #ffffff91}.home-heading>span{font-size:9px;letter-spacing:2.1px;font-weight:900;color:#0d5173}.home-heading h1{font:800 clamp(32px,3.2vw,50px)/.97 'Baloo 2',sans-serif;letter-spacing:-1.5px;margin:11px 0;color:#143b60}.home-stage{position:absolute;inset:0 40% 0 0;pointer-events:none}#home-character{position:absolute;left:23%;bottom:21%;width:36%;height:47%;border:0;background:transparent;pointer-events:auto;filter:drop-shadow(0 14px 6px #80563b2b);padding:0}#home-character>img{height:85%;width:100%;object-fit:contain;object-position:bottom;transition:transform .2s}#home-character:hover>img{transform:translateY(-5px) rotate(-2deg)}.avatar-label{position:absolute;left:50%;bottom:-18px;transform:translateX(-50%);width:max-content;text-align:center;padding:6px 22px;background:linear-gradient(#f4fffa,#d3f5ed);border:2px solid #fff;border-radius:13px;box-shadow:0 4px 0 #3b9eac,0 6px 18px #23575e40;min-width:145px}.avatar-label b{display:block;font:800 25px/1 'Baloo 2',sans-serif;color:#205073}.avatar-label small{display:flex;align-items:center;justify-content:center;gap:4px;font-size:7px;font-weight:900;letter-spacing:1.1px;color:#398296;margin-top:3px}.avatar-label small svg{width:12px;height:12px}.invite-plinth{position:absolute;left:66%;bottom:28%;width:29%;height:180px;background:transparent;color:#fff;pointer-events:auto;text-shadow:0 2px 5px #084853,0 1px 0 #287e97}.invite-plinth>span{display:grid;place-items:center;width:57px;height:57px;margin:0 auto 9px;border:3px solid #d8fffbbb;border-radius:50%;background:#2ea4b78a;font-size:47px;font-weight:700;line-height:1;box-shadow:0 5px 16px #33798b4d}.invite-plinth strong{display:block;font-size:16px}.invite-plinth small{display:block;font-size:9px;margin-top:5px}
.home-modes{position:absolute;right:28px;top:17%;bottom:25%;width:36.5%;display:grid;grid-template-columns:1.07fr 1fr;grid-template-rows:1fr 105px;gap:14px}.mode-card{position:relative;isolation:isolate;overflow:hidden;text-align:left;border:3px solid #fff8;border-radius:26px;box-shadow:0 6px 0 #164a7466,0 10px 24px #073b6855;color:#fff;transition:transform .2s,filter .2s}.mode-card:hover{transform:translateY(-4px)}.casual-card{background:linear-gradient(150deg,#98f7ff,#299ada 65%,#1365a9);transform:rotate(-2deg)}.ranked-card{background:linear-gradient(150deg,#fff2af,#ffba40 57%,#d18524);transform:rotate(2deg)}.mode-ribbon{position:absolute;z-index:2;top:15px;left:50%;transform:translateX(-50%);border:1px solid #fff7;border-radius:30px;padding:5px 9px;background:#164785a1;color:white;white-space:nowrap;font-size:8px;font-weight:900;letter-spacing:.8px}.ranked-card .mode-ribbon{background:#845415b8}.mode-art{position:absolute;inset:17% 0 23%}.mode-art>img{position:absolute;width:62%;height:85%;object-fit:contain;left:-2%;bottom:7%;transform:rotate(-13deg);filter:drop-shadow(0 9px 3px #14529e45)}.mode-art>img+img{left:39%;bottom:0;transform:rotate(12deg)}.water-orb{position:absolute;width:37px;height:44px;right:12%;top:0;background:radial-gradient(circle at 30% 22%,#f8ffff 0%,#d5ffff 7%,#7deafc 16%,#27b0ec 58%,#1470c5 87%);border-radius:50% 50% 43% 43%;box-shadow:inset 0 -3px 4px #19519766,0 6px 9px #185ead40;transform:rotate(15deg)}.mode-title{position:absolute;bottom:0;left:0;right:0;min-height:88px;background:linear-gradient(transparent,#10508abf 23%);padding:18px 14px 13px;text-shadow:0 3px 0 #164a8180}.mode-title small,.mode-card>span>small{font-size:8px;font-weight:900;letter-spacing:.8px;display:block;margin-bottom:5px}.mode-title strong{display:block;font:800 clamp(22px,2.5vw,36px)/.94 'Baloo 2',sans-serif;letter-spacing:-1px;max-width:85%}.mode-title>i{position:absolute;right:13px;bottom:20px}.mode-title>i svg{width:20px;height:20px}.ranked-card .mode-title{background:linear-gradient(transparent,#a9651aae 23%)}.trophy-art{position:absolute;inset:24% 9% 26%;display:grid;place-items:center;color:#fff7b3;filter:drop-shadow(0 7px 0 #b96e31)}.trophy-art svg{width:100%;height:100%;stroke-width:1.5;fill:#ffd249;stroke:#fff6be}.trophy-art b{position:absolute;top:18%;color:#fff;font-size:29px;text-shadow:0 2px 0 #d49832}.practice-card,.adventure-card{display:flex;align-items:center;gap:7px;border-radius:21px;padding:13px 10px}.practice-card{background:linear-gradient(135deg,#79daf4,#3493d3)}.adventure-card{background:linear-gradient(135deg,#bd9af3,#806bd2)}.mini-card-art{width:54px;height:76px;flex:none;display:grid;place-items:center}.mini-card-art img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 1px #275bba55)}.mini-card-art i svg{width:43px;height:43px;stroke-width:1.6}.practice-card strong,.adventure-card strong{font:800 22px/.95 'Baloo 2',sans-serif;letter-spacing:-.5px}.practice-card>i,.adventure-card>i{margin-left:auto}.practice-card>i svg,.adventure-card>i svg{width:15px;height:15px}.adventure-card .mini-card-art{width:35px}
.home-bottom{position:absolute;left:25px;right:25px;bottom:22px;display:flex;align-items:end;justify-content:space-between;gap:20px}#home-chat{display:flex;align-items:center;gap:11px;text-align:left;color:white;background:#153f6cdd;border:1px solid #9fd3eca3;border-radius:15px;padding:15px;box-shadow:0 4px 0 #1334566b;max-width:380px;min-height:70px}.chat-channel{font-size:8px;color:#ace8eb;font-weight:900;display:flex;flex-direction:column;align-items:center;gap:5px;border-right:1px solid #72a6b35e;padding-right:12px;letter-spacing:1px}#home-chat strong{font-size:12px;display:block}#home-chat small{font-size:9px;color:#bedde5;display:block;margin-top:5px}#home-chat>i svg{width:16px;height:16px}.home-nav{display:flex;gap:8px;align-items:end}.home-nav button{position:relative;background:linear-gradient(#f9fff6,#d4ecdf);border:2px solid #fff;border-radius:17px;min-width:74px;padding:10px 7px 8px;box-shadow:0 5px 0 #29768a,0 8px 15px #194f5340;color:#265376}.home-nav i{color:#2f9da7;margin-bottom:4px;filter:drop-shadow(0 2px 0 #7ec6b849)}.home-nav button:nth-child(1) i{color:#d09525}.home-nav button:nth-child(2) i{color:#458ed3}.home-nav button:nth-child(3) i{color:#e08574}.home-nav button:nth-child(5) i{color:#b283cf}.home-nav i svg{width:32px;height:32px;stroke-width:1.8}.home-nav span{display:block;font-size:9px;font-weight:900}.home-nav small{position:absolute;top:-8px;right:-3px;background:#fae19a;color:#77572b;border:1px solid #fff;border-radius:6px;font-size:6px;font-weight:900;padding:2px 4px;letter-spacing:.3px}
.room-screen{border:3px solid #99dcff;border-radius:27px;background:linear-gradient(155deg,#287fd5,#1558b2 60%,#1852a3);padding:22px;box-shadow:0 8px 0 #082965,0 22px 55px #051b4d50;max-width:1400px;margin:auto;min-height:690px;color:#eefaff}.room-heading{display:flex;align-items:center;gap:22px;margin-bottom:20px}.room-kicker{font-size:9px;font-weight:900;letter-spacing:2px;color:#c4eaff}.room-heading h1{font:800 34px/1 'Baloo 2',sans-serif;margin:6px 0 0;letter-spacing:-.7px;text-shadow:0 3px 0 #174a9990}.room-code-badge{display:flex;align-items:center;gap:12px;margin-left:auto;border:1px solid #77baf6;border-radius:13px;padding:9px 13px;background:#174f9d}.room-code-badge small{font-size:8px;line-height:1.4;font-weight:900;max-width:34px;letter-spacing:1px;color:#bddffd}.room-code-badge strong{font:800 25px/1 'Baloo 2';letter-spacing:4px;color:#fff3ab;margin:0}.room-code-badge button{background:#3b7bbe;color:#dbf6ff;border:1px solid #79b0e4;border-radius:8px;padding:5px;display:flex}.room-code-badge svg{width:16px;height:16px}.room-back{background:#19478888;border:1px solid #6da5df;color:#d9efff;padding:11px 12px;border-radius:10px;display:flex;gap:8px;align-items:center;font-size:10px;font-weight:900}.room-back i{transform:rotate(180deg)}.room-back svg{width:16px;height:16px}.room-body{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:18px}.room-left{display:grid;grid-template-rows:auto minmax(210px,1fr);gap:17px;min-width:0}.crew-panel,.chat-panel,.character-panel,.room-map-panel{border:2px solid #8ecdfa;border-radius:17px;background:#d9efff;box-shadow:0 4px 0 #123c8c60;overflow:hidden;color:#1b4270}.panel-heading{display:flex;justify-content:space-between;align-items:center;padding:11px 15px;background:linear-gradient(#66b3f3,#3c91e1);color:#fff;border-bottom:2px solid #2b79c5}.panel-heading h2{font:800 18px/1 'Baloo 2';margin:0;display:flex;align-items:center;gap:8px;text-shadow:0 1px 0 #145cb59c}.panel-heading span{font-size:8px;font-weight:900;letter-spacing:.9px;color:#e0f6ff}.panel-heading svg{width:17px;height:17px}.room-roster{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0;padding:14px 13px;background:linear-gradient(#abd9fd,#c4e5fb)}.room-slot{position:relative;border:2px solid #7fb1d8;border-radius:13px;min-width:0;height:278px;display:flex;flex-direction:column;align-items:center;background:linear-gradient(155deg,#f9fffa 15%,#d6f4fd 67%,#9bcced);overflow:hidden;box-shadow:0 3px 0 #80adcf}.room-slot.you{border-color:#ffdf80;box-shadow:0 0 0 2px #fff5b4,0 4px 0 #80adcf}.slot-header{width:100%;display:flex;align-items:center;justify-content:space-between;padding:8px;color:#32577e}.slot-header>b{display:grid;place-items:center;width:24px;height:25px;border-radius:7px;background:var(--seat-color);border:1px solid #fff9;color:#234264;font:800 18px 'Baloo 2';box-shadow:0 2px 0 #5b8cb04d}.slot-header span{font-size:8px;font-weight:900;letter-spacing:.5px}.slot-character{width:88%;height:180px;object-fit:contain;filter:drop-shadow(0 9px 3px #6994b145);margin-top:0}.room-slot strong{font-size:12px;font-weight:900;text-align:center;max-width:95%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:auto;padding:5px 2px 0;color:#244f77}.room-slot>small{font-size:8px;font-weight:800;color:#5385a5;padding:5px 3px 12px;text-align:center}.room-slot.empty{background:repeating-linear-gradient(135deg,#c8e6fc 0 16px,#c5e3f9 16px 32px);border-style:dashed;box-shadow:none;color:#5184b0}.empty-seat{margin:auto 0 0;width:68px;height:80px;border-radius:40px 40px 26px 26px;background:#9fc6e955;border:2px dashed #8eb9df;display:grid;place-items:center;font:700 48px 'Baloo 2';color:#81aed4}.room-slot.empty strong{margin-top:auto;font-size:10px;color:#5c87ac}.room-slot.empty>small{color:#779dbb}.crew-bottom{display:flex;justify-content:space-between;align-items:center;padding:9px 14px;background:#ebf7ff;gap:10px}.crew-bottom>span{font-size:9px;font-weight:800;color:#5480a0}.crew-bottom .live-dot{width:5px;height:5px;background:#4cc5ac;margin-right:4px}.crew-bottom button{display:flex;align-items:center;gap:6px;background:#347ad0;border:1px solid #75b2f4;border-radius:8px;color:white;padding:6px 10px;font-size:9px;font-weight:900}.crew-bottom svg{width:15px;height:15px}.chat-panel{display:flex;flex-direction:column;min-height:235px}.room-chat-log{flex:1;min-height:105px;height:130px;overflow-y:auto;padding:12px 15px;background:linear-gradient(#f3faff,#e5f3ff);scrollbar-width:thin;scrollbar-color:#a8cbe4 #eaf5fc}.chat-welcome{font-size:11px;color:#749ab7;padding:10px 0;line-height:1.7;margin:0;max-width:420px}.chat-message{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:baseline;gap:8px;font-size:11px;line-height:1.4;padding:5px 0;margin:0}.chat-message strong{font-weight:900;color:#3477b7;max-width:120px;overflow-wrap:anywhere}.chat-message span{color:#385d7c;overflow-wrap:anywhere;white-space:pre-wrap}.chat-message time{font-size:8px;color:#86a4bd}#room-chat-form{display:flex;gap:8px;padding:10px 12px;border-top:1px solid #bed8ef;background:#c6e3f7}#room-chat-input{background:#faffff;border:1px solid #9cc3e2;color:#315774;padding:10px 12px;font-size:11px;border-radius:8px}#room-chat-input::placeholder{color:#8baabe}#room-chat-form button{display:grid;place-items:center;width:43px;flex:none;background:linear-gradient(#6dadf0,#4083d7);border:1px solid #3074c3;color:white;border-radius:8px;box-shadow:0 2px 0 #23579f}#room-chat-form button svg{width:18px;height:18px}#room-chat-status{margin:0;font-size:10px;color:#a55242;padding:0 13px;background:#c6e3f7}#room-chat-status:not(:empty){padding-bottom:7px}.room-right{display:flex;flex-direction:column;gap:14px;min-width:0}.selected-character{height:121px;padding:16px;display:flex;align-items:center;justify-content:space-between;background:radial-gradient(ellipse at 80% 50%,#edf7ff,#a6d4ff 65%);overflow:hidden}.selected-character small{font-size:8px;font-weight:900;letter-spacing:1.4px;color:#4675a5}.selected-character h2{font:800 35px/1 'Baloo 2';margin:5px 0 0;color:#255a9d}.selected-character p{font-size:9px;color:#587fa7;margin:6px 0 0}.selected-character>img{height:122px;width:102px;object-fit:contain;filter:drop-shadow(0 7px 2px #3672a838);transform:rotate(4deg)}#room-character-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;padding:9px;background:#cfe8fc}#room-character-grid button,.home-character-grid button{position:relative;min-width:0;background:linear-gradient(#f8fdff,#c9e4f5);border:1px solid #92b9db;border-radius:10px;padding:5px 2px;color:#4c78a0}#room-character-grid button img{height:49px;width:100%;object-fit:contain}#room-character-grid button span{display:block;font-size:8px;font-weight:900}#room-character-grid button[aria-pressed=true],.home-character-grid button[aria-pressed=true]{border:2px solid #e5ab38;background:linear-gradient(#fffbea,#ffe6a5);box-shadow:0 0 0 1px #fff7c4}#room-character-grid button[aria-pressed=true]:after{content:'✓';position:absolute;right:2px;top:0;color:#a57a1d;font-size:10px;font-weight:900}.room-team-status{padding:8px 11px;border-top:1px solid #91badb;display:flex;gap:7px;align-items:center;background:#bddcf4}.room-team-status>b{font-size:8px;letter-spacing:.3px;margin-right:auto;color:#366b9c}.room-team-status>span{display:grid;place-items:center;width:19px;height:19px;border-radius:5px;border:1px solid #fff9;font-size:10px;font-weight:900;color:#2a4f76}.room-map-copy{display:flex;align-items:center;gap:11px;padding:12px}.room-map-copy canvas{width:106px;height:84px;border:2px solid #74a5c9;border-radius:7px;image-rendering:pixelated;flex:none}.room-map-copy strong{display:block;font:800 17px/1.1 'Baloo 2';color:#255887}.room-map-copy small{display:block;font-size:8px;color:#597f9d;line-height:1.4;margin-top:5px}#room-map-select{display:block;width:calc(100% - 24px);margin:0 12px;padding:8px 9px;background:#f8fdff;border:1px solid #9bc0df;border-radius:7px;color:#356891;font-size:11px;font-weight:800;cursor:pointer;min-height:35px}#room-map-select:disabled{opacity:1;cursor:default;background:#d5e8f7;color:#647f99}.room-reveal-rule{text-align:center;font-size:8px;color:#6e90a9;margin:9px 6px 11px}.room-start{margin-top:auto}.room-start #room-hint{margin:0 3px 10px;min-height:28px;font-size:10px;color:#deedff;line-height:1.4;text-align:center}.start-battle{width:100%;padding:13px 18px;min-height:57px;display:flex;justify-content:center;align-items:center;gap:17px;border:2px solid #fff0a4;border-radius:16px;background:linear-gradient(#ffdc70,#ffa73d);color:#673c1f;box-shadow:0 5px 0 #ab6826,0 7px 18px #153a9355;font:800 27px/1 'Baloo 2';text-shadow:0 1px 0 #ffeeb3}.start-battle:disabled{opacity:1;background:linear-gradient(#b9cdea,#8eadd8);color:#4c689d;border-color:#b6d4f3;box-shadow:0 4px 0 #36538d;text-shadow:none}.start-battle svg{width:24px;height:24px}#room-status{color:#fff0ac;font-size:10px;line-height:1.4;margin:9px 3px 0;text-align:center}
.arcade-dialog{background:linear-gradient(150deg,#f8fdff,#e2f3ff);border:3px solid #93cdff;color:#264f79;border-radius:25px;max-height:92vh;overflow-y:auto;box-shadow:0 7px 0 #123f80,0 20px 80px #001634a6;width:min(480px,calc(100vw - 26px));padding:29px}.arcade-dialog .eyebrow{color:#538bb3;font-size:8px;letter-spacing:1.8px;margin-right:15px}.arcade-dialog h2{font:800 34px/1 'Baloo 2';color:#235890;letter-spacing:-.7px;margin:11px 0 9px}.arcade-dialog>p{color:#6789a4;font-size:11px;line-height:1.6;margin:10px 0 18px}.arcade-dialog .dialog-close{color:#6791b4;top:9px;right:15px}.arcade-dialog label,.arcade-dialog .mode-picker legend{font-size:10px;font-weight:900;display:block;color:#577994;margin-bottom:6px}.arcade-dialog input{background:#fff;border:1px solid #abcce3;color:#345d80}.arcade-dialog .mode-picker{display:flex;margin:15px 0}.arcade-dialog .mode-picker legend{display:block}.arcade-dialog .mode-picker span{background:#dae9f7;border:1px solid #a4c8e4;color:#6f8da8;font-size:11px;padding:10px}.arcade-dialog .mode-picker input:checked+span{background:#397ed1;border-color:#185cac;color:#fff;box-shadow:0 2px 0 #1b518d}.arcade-dialog .primary-button{background:linear-gradient(#ffda79,#ffb54b);border:1px solid #e7a952;color:#754922;box-shadow:0 4px 0 #c68135;border-radius:12px;font-size:13px}.arcade-dialog .primary-button svg{width:20px;height:20px}.arcade-dialog .secondary-button{background:linear-gradient(#5895e4,#3777c6);border:1px solid #2560a7;box-shadow:0 3px 0 #21578f;font-size:11px;white-space:nowrap}.arcade-dialog .or{color:#86a3b9;margin:19px 0 5px}.arcade-dialog .or span{background:#c4dae9}.arcade-dialog .join-row{margin-top:10px}.arcade-dialog .lobby-status{color:#a06828}.entry-map{width:100%;display:flex;align-items:center;gap:10px;text-align:left;background:#d4eafa;border:1px solid #afcfe5;border-radius:9px;color:#4c7fa5;padding:10px;margin-bottom:18px}.entry-map small{font-size:7px;letter-spacing:1px;display:block;margin-bottom:3px}.entry-map strong{font-size:11px}.entry-map>i:last-child{margin-left:auto}.maps-dialog{width:min(840px,calc(100vw - 26px))}.maps-dialog .map-selection{display:block!important;border-bottom:0;margin-bottom:18px}.maps-dialog .map-selection summary{display:none}.maps-dialog .map-choices{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.maps-dialog .map-choice{display:flex;flex-direction:column;align-items:stretch;padding:9px;background:#e5f3fb;border:2px solid #b4d6ee;border-radius:13px;color:#376b91;gap:8px}.maps-dialog .map-choice canvas{width:100%;height:auto;aspect-ratio:114/90;border:1px solid #93b5cc;border-radius:7px}.maps-dialog .map-choice strong{font-size:12px;line-height:1.2;color:#35678f}.maps-dialog .map-choice small{font-size:9px;color:#6b92b0}.maps-dialog .map-choice.selected{border-color:#e1ae41;background:#fff4d2;box-shadow:0 0 0 1px #fff4b9}.maps-dialog .layout-tools>span{color:#7b9cb5;font-size:10px}.maps-dialog .map-error{font-size:11px}.home-character-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px}.home-character-grid img{width:100%;height:110px;object-fit:contain}.home-character-grid span{display:block;font-size:10px;font-weight:900;padding:5px 0}.feature-dialog{text-align:center}.feature-dialog #feature-icon{display:grid;place-items:center;background:linear-gradient(#fcefb3,#fbd472);border:3px solid #fff;border-radius:23px;width:78px;height:78px;color:#b58227;margin:3px auto 22px;box-shadow:0 4px 0 #d9b358}.feature-dialog #feature-icon svg{width:44px;height:44px}.feature-dialog .eyebrow{margin:0}.arcade-dialog:focus{outline:none}
.trophy-art>i{width:100%;height:100%}.trophy-art>i svg{width:100%;height:100%;max-width:135px}.trophy-art b{top:20%;font-size:38px}
@media(min-width:1500px){.home-modes{width:35%;right:40px}.room-body{grid-template-columns:minmax(0,1fr) 335px}.room-slot{height:315px}.slot-character{height:210px}.room-screen{padding:27px}.chat-panel{min-height:260px}}
@media(max-width:1100px){body:not(.is-playing) .app-shell{padding:0 18px 20px}.home-screen{min-height:620px}.home-heading{top:115px;left:25px}.home-heading h1{font-size:33px}.home-modes{right:20px;width:39%;top:18%;bottom:24%;gap:10px;grid-template-rows:1fr 100px}.mode-card{border-radius:22px}.mode-title strong{font-size:27px}.mode-ribbon{font-size:6px}.practice-card strong,.adventure-card strong{font-size:18px}.mini-card-art{width:40px}.home-bottom{left:20px;right:20px;gap:10px}.home-nav{gap:6px}.home-nav button{min-width:62px}.home-nav i svg{width:28px;height:28px}#home-chat{padding:11px;gap:8px}#home-chat strong{font-size:10px}#home-chat small{font-size:8px}.home-stage{right:39%}#home-character{left:18%;width:44%;bottom:20%}.invite-plinth{left:63%;bottom:26%}.room-body{grid-template-columns:minmax(0,1fr) 280px;gap:12px}.room-screen{padding:17px}.room-roster{gap:7px;padding:11px 9px}.room-slot{height:258px}.slot-character{height:165px}.room-slot strong{font-size:10px}.crew-bottom>span{font-size:8px}.room-heading h1{font-size:28px}.room-code-badge{gap:8px;padding:8px}.room-code-badge strong{font-size:22px}.room-heading{gap:12px}.room-back{font-size:9px;padding:10px}.room-map-copy{gap:8px;padding:10px}.room-map-copy canvas{width:91px;height:73px}.room-map-copy strong{font-size:16px}.room-roster .empty strong{white-space:normal;padding-left:5px;padding-right:5px;line-height:1.3}.chat-message{font-size:10px}}
@media(max-width:760px){body:not(.is-playing) .app-shell{padding:0 12px 18px}body:not(.is-playing) .topbar{height:72px}body:not(.is-playing) .topbar .brand{font-size:24px}body:not(.is-playing) .connection-badge{display:none}.home-screen{height:auto;min-height:890px;border-radius:24px;background-position:32% top;background-size:auto 640px;background-color:#abe0eb}.home-screen:after{background:linear-gradient(180deg,transparent 45%,#b7e9e7 65%,#428aa4 100%)}.home-profile{top:16px;left:16px;padding:5px 8px 5px 5px}.profile-portrait{width:38px;height:38px}.home-profile strong{font-size:12px}.home-profile small{font-size:6px}.home-profile button svg{width:14px}.home-heading{top:92px;left:20px}.home-heading>span{font-size:7px;letter-spacing:1.5px}.home-heading h1{font-size:34px}.home-stage{inset:130px 0 auto 0;height:290px}#home-character{left:11%;bottom:10%;width:39%;height:96%}.avatar-label{bottom:-10px;min-width:118px;padding:6px 13px}.avatar-label b{font-size:23px}.avatar-label small{font-size:6px}.invite-plinth{left:57%;bottom:0;width:38%;height:140px}.invite-plinth>span{width:46px;height:46px;font-size:35px}.invite-plinth strong{font-size:13px}.invite-plinth small{font-size:8px}.home-modes{top:452px;left:16px;right:16px;bottom:auto;width:auto;grid-template-rows:210px 77px;gap:10px}.mode-card{border-width:2px;border-radius:20px}.casual-card,.ranked-card{transform:none}.mode-art{inset:15% 6% 20%}.mode-title{min-height:65px;padding:12px}.mode-title strong{font-size:27px}.mode-title small{font-size:6px}.mode-ribbon{font-size:6px;top:11px}.trophy-art{inset:24% 14% 25%}.trophy-art b{font-size:24px}.practice-card,.adventure-card{padding:9px}.mini-card-art{height:66px;width:39px}.adventure-card .mini-card-art{width:31px}.mini-card-art i svg{width:31px;height:31px}.mode-card>span>small{font-size:6px;margin-bottom:3px}.practice-card strong,.adventure-card strong{font-size:18px}.home-bottom{position:relative;inset:auto;margin:780px 16px 17px;flex-direction:column;align-items:stretch;gap:16px}#home-chat{max-width:none;min-height:59px;padding:9px 12px}#home-chat strong{font-size:11px}#home-chat small{font-size:9px}.home-nav{justify-content:space-between;gap:5px}.home-nav button{min-width:0;flex:1;border-radius:13px;padding:9px 2px 6px}.home-nav i svg{width:27px;height:27px}.home-nav span{font-size:8px}.home-nav small{font-size:5px;right:-1px}.room-screen{border-radius:21px;padding:12px;min-height:0}.room-heading{flex-wrap:wrap;gap:12px;margin-bottom:14px}.room-heading>div:first-child{flex:1}.room-kicker{font-size:7px;letter-spacing:1.5px}.room-heading h1{font-size:25px}.room-code-badge{order:3;width:100%;justify-content:center}.room-code-badge strong{font-size:24px}.room-code-badge small{max-width:none;font-size:8px}.room-back{padding:8px;font-size:8px;border-radius:8px}.room-back i svg{width:12px;height:12px}.room-body{grid-template-columns:1fr;gap:14px}.room-left{gap:13px;grid-template-rows:auto auto}.room-roster{gap:6px;padding:10px 8px;grid-template-columns:repeat(4,minmax(0,1fr))}.room-slot{height:195px;border-radius:10px}.slot-header{padding:5px}.slot-header b{width:18px;height:20px;font-size:13px;border-radius:5px}.slot-header span{font-size:5px;letter-spacing:0}.slot-character{height:117px;width:94%}.room-slot strong{font-size:8px}.room-slot>small{font-size:6px;padding-bottom:8px}.room-slot.empty strong{font-size:7px}.empty-seat{width:42px;height:58px;font-size:32px}.crew-bottom{padding:8px;gap:5px}.crew-bottom>span{font-size:7px;line-height:1.4;max-width:145px}.crew-bottom button{font-size:8px;padding:6px;gap:4px}.crew-bottom svg{width:12px;height:12px}.panel-heading{padding:10px 11px}.panel-heading h2{font-size:17px}.panel-heading span{font-size:7px}.chat-panel{min-height:215px}.room-chat-log{height:105px;padding:9px 11px}.chat-message{font-size:10px;gap:6px}.chat-message strong{max-width:80px}.chat-message time{font-size:6px}#room-chat-form{padding:8px}#room-chat-input{font-size:10px}.room-right{display:grid;grid-template-columns:1fr 1fr;gap:10px}.character-panel{grid-column:1/-1;display:grid;grid-template-columns:1fr 1.1fr}.selected-character{height:122px;padding:12px}.selected-character small{font-size:6px;letter-spacing:.7px}.selected-character h2{font-size:29px}.selected-character p{font-size:7px;max-width:74px}.selected-character>img{height:102px;width:67px}.room-team-status{grid-column:1/-1}#room-character-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:4px;padding:7px}#room-character-grid button{display:flex;align-items:center;gap:3px;padding:3px}#room-character-grid button img{height:39px;width:32px}#room-character-grid button span{font-size:6px}.room-map-panel{grid-column:1/-1}.room-map-copy{padding:12px;gap:13px}.room-map-copy canvas{width:109px;height:86px}.room-map-copy strong{font-size:19px}.room-map-copy small{font-size:9px}.room-start{grid-column:1/-1;padding:4px 0 8px}.room-start #room-hint{font-size:11px;min-height:0;margin:0 8px 13px}.start-battle{min-height:58px}.arcade-dialog{padding:26px 21px}.arcade-dialog h2{font-size:31px}.maps-dialog .map-choices{gap:8px;grid-template-columns:repeat(2,minmax(0,1fr))}.maps-dialog .map-choice{padding:7px}.home-character-grid{gap:6px}.home-character-grid img{height:87px}.home-character-grid span{font-size:9px}}
@media(max-height:520px) and (min-width:650px){body:not(.is-playing) .app-shell{padding:0 12px 12px}body:not(.is-playing) .topbar{height:53px}body:not(.is-playing) .topbar .brand{font-size:22px}.home-screen{height:calc(100vh - 67px);min-height:310px;border-radius:20px;background-size:cover;background-position:center}.home-profile{top:11px;left:12px;padding:3px 6px 3px 3px;gap:6px;border-radius:11px}.profile-portrait{width:30px;height:30px;border-radius:8px}.home-profile strong{font-size:9px}.home-profile small{font-size:5px}.home-profile button svg{width:11px;height:11px}.home-heading{left:16px;top:64px}.home-heading>span{font-size:5px;letter-spacing:1px}.home-heading h1{font-size:23px;margin:6px 0}.home-stage{inset:0 42% 0 0;height:auto}#home-character{left:24%;bottom:20%;height:64%;width:36%}.avatar-label{bottom:-9px;padding:4px 11px;min-width:94px;border-radius:10px}.avatar-label b{font-size:16px}.avatar-label small{font-size:4px;letter-spacing:.6px;margin-top:1px}.avatar-label small svg{width:8px;height:8px}.invite-plinth{left:65%;bottom:29%;width:30%;height:90px}.invite-plinth>span{height:34px;width:34px;font-size:25px;border-width:2px;margin-bottom:4px}.invite-plinth strong{font-size:10px}.invite-plinth small{font-size:6px}.home-modes{top:20px;bottom:72px;left:auto;right:14px;width:39%;grid-template-rows:1fr 57px;gap:7px}.mode-card{border-radius:15px;border-width:2px}.mode-ribbon{font-size:5px;padding:3px 7px;top:7px}.mode-title{min-height:49px;padding:11px 9px 8px}.mode-title small{font-size:5px;margin-bottom:2px}.mode-title strong{font-size:21px}.mode-title>i{right:8px;bottom:10px}.mode-title>i svg{width:13px;height:13px}.mode-art{inset:13% 6% 21%}.water-orb{width:19px;height:24px}.trophy-art b{font-size:18px;top:8%}.practice-card,.adventure-card{padding:5px 7px;gap:6px}.mini-card-art{width:29px;height:48px}.adventure-card .mini-card-art{width:24px}.mini-card-art i svg{width:25px;height:25px}.practice-card strong,.adventure-card strong{font-size:15px}.mode-card>span>small{font-size:5px;margin-bottom:2px}.practice-card>i svg,.adventure-card>i svg{width:11px}.home-bottom{position:absolute;left:12px;right:12px;bottom:10px;margin:0;flex-direction:row;gap:8px}.home-nav{gap:5px}.home-nav button{min-width:49px;padding:5px 5px 4px;border-radius:11px}.home-nav i{margin:0}.home-nav i svg{width:22px;height:22px}.home-nav span{font-size:6px}.home-nav small{font-size:4px;top:-6px}#home-chat{max-width:310px;min-height:44px;padding:7px 9px;border-radius:10px;gap:8px}#home-chat strong{font-size:8px}#home-chat small{font-size:6px;margin-top:3px}.chat-channel{font-size:5px;gap:3px;padding-right:7px}.chat-channel svg{width:15px;height:15px}#home-chat>i svg{width:12px}.room-screen{padding:13px;min-height:0}.room-heading h1{font-size:24px}.room-kicker{font-size:7px}.room-heading{margin-bottom:13px}.room-body{grid-template-columns:minmax(0,1fr) 245px}.room-slot{height:230px}.slot-character{height:138px}.room-roster{padding:8px;gap:6px}.room-left{grid-template-rows:auto auto}.room-map-copy canvas{width:82px;height:65px}.room-map-copy strong{font-size:14px}.selected-character{height:104px}.selected-character>img{height:109px;width:88px}.selected-character h2{font-size:30px}.room-back{font-size:8px}.room-code-badge strong{font-size:21px}.room-code-badge small{font-size:6px}.room-chat-log{height:95px}.chat-panel{min-height:203px}.start-battle{font-size:25px;min-height:53px}.room-slot strong{font-size:9px}.room-slot>small{font-size:6px}.slot-header span{font-size:6px}.room-slot.empty strong{font-size:8px}.room-start #room-hint{font-size:9px}.room-map-copy small{font-size:7px}.room-reveal-rule{font-size:7px}.room-team-status>b{font-size:7px}.arcade-dialog{max-height:92vh}}
/* Both avatar feet and the invite marker share the backdrop's projected pedestal coordinates. */
.home-stage{inset:0;height:auto;pointer-events:none}#home-character{left:calc(var(--hero-x) - var(--hero-width)/2);top:calc(var(--hero-y) - var(--hero-height));bottom:auto;width:var(--hero-width);height:var(--hero-height);filter:drop-shadow(0 7px 3px #65482635)}#home-character>img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center bottom;display:block}#home-character:hover>img{transform:none}.avatar-label{bottom:-45px}.invite-plinth{left:calc(var(--invite-x) - 78px);top:calc(var(--invite-y) - 115px);bottom:auto;width:156px;height:112px}.invite-plinth strong{font-size:14px}.invite-plinth small{font-size:8px}
@media(max-width:760px) and (min-height:521px){.home-screen{max-height:none}.home-heading{display:none}.avatar-label{bottom:-41px}.invite-plinth{left:calc(var(--invite-x) - 55px);top:calc(var(--invite-y) - 98px);width:110px;height:96px}.invite-plinth strong{font-size:11px}.invite-plinth small{font-size:6px}.invite-plinth>span{width:43px;height:43px;font-size:31px}.adventure-card>i{display:none}.home-modes{top:410px}.home-bottom{margin-top:738px}}
@media(max-height:520px) and (min-width:650px){.avatar-label{bottom:-30px}.invite-plinth{left:calc(var(--invite-x) - 54px);top:calc(var(--invite-y) - 76px);width:108px;height:73px}.invite-plinth strong{font-size:9px}.invite-plinth small{font-size:5px}.invite-plinth>span{width:30px;height:30px;font-size:21px}.trophy-art b{font-size:22px;top:18%}}
@media(prefers-reduced-motion:reduce){#home-character>img,.mode-card{transition:none}.mode-card:hover{transform:none}}
/* Review pass: preserve readable room instructions at actual phone sizes. */
.room-slot strong{font-size:13px}.room-slot>small{font-size:10px;color:#416c8d;line-height:1.4}.slot-header span{font-size:9px}.room-slot.empty strong{font-size:12px;color:#507494}.room-slot.empty>small{color:#537b9d}.crew-bottom>span{font-size:11px;line-height:1.4;color:#476e8b}.crew-bottom button{font-size:11px}.chat-welcome{font-size:12px;color:#557c9d}.chat-message{font-size:13px;line-height:1.5}.chat-message strong{color:#2c699f}.chat-message time{font-size:10px;color:#5d809c}#room-chat-input{font-size:13px}#room-chat-input::placeholder{color:#64869f}.selected-character p{font:11px/1.4 'Nunito Sans',sans-serif;color:#4b739c}.room-map-copy small{font-size:10px;color:#456d8f;line-height:1.5}.room-map-copy strong{font-size:18px}.room-reveal-rule{font-size:10px;color:#4b7598;line-height:1.4}.room-team-status>b{font-size:10px}.room-start #room-hint{font-size:12px;min-height:34px;line-height:1.5}#room-map-select{font-size:12px;min-height:38px}.panel-heading span{font-size:9px}.room-start #room-status{font-size:12px}.room-map-copy canvas{width:100px;height:79px}
.avatar-label{top:calc(100% + 8px);bottom:auto!important}.home-heading h1{font-size:38px;line-height:1.05}
@media(max-height:520px) and (min-width:650px){.home-heading h1{font-size:22px}.home-bottom #home-chat{height:38px;min-height:38px;padding:6px 9px;gap:6px}.home-bottom #home-chat>span:nth-child(2){display:none}.home-bottom .chat-channel{flex-direction:row;gap:5px;font-size:8px;padding:0;border:0}.home-bottom .chat-channel svg{width:15px;height:15px}.home-bottom #home-chat .chat-channel small{display:inline;font-size:6px;margin:0}}
@media(max-width:760px) and (min-height:521px){.room-slot{height:229px}.room-slot strong{font-size:11px;white-space:normal;line-height:1.3;overflow-wrap:anywhere;max-height:34px;padding:4px 2px 0}.room-slot>small{font-size:9px;line-height:1.35;padding:4px 2px 9px}.room-slot.empty strong{font-size:10px}.slot-header span{font-size:7px}.slot-character{height:130px}.crew-bottom>span{font-size:11px;max-width:160px}.crew-bottom button{font-size:10px}.chat-message{font-size:12px;gap:6px}.chat-message strong{max-width:73px}.chat-message time{font-size:9px}.chat-welcome{font-size:12px}.room-chat-log{height:140px;min-height:140px}#room-chat-input{font-size:12px;min-height:40px}.selected-character p{font-size:10px;max-width:87px}.selected-character small{font-size:8px}.selected-character>img{width:56px}.selected-character h2{font-size:27px}#room-character-grid button span{font-size:9px}#room-character-grid button img{width:26px}.room-map-copy small{font-size:11px}.room-map-copy canvas{width:109px;height:86px}.room-reveal-rule{font-size:11px}.room-team-status>b{font-size:10px}.room-start #room-hint{font-size:12px}.home-nav span{font-size:9px}.mode-ribbon{font-size:8px}.mode-title small,.mode-card>span>small{font-size:8px}.practice-card strong,.adventure-card strong{font-size:18px}}
@media(max-height:520px) and (min-width:650px){.room-slot{height:265px}.slot-character{height:153px}.room-slot strong{font-size:12px}.room-slot>small{font-size:10px}.room-slot.empty strong{font-size:11px}.slot-header span{font-size:8px}.room-map-copy{align-items:flex-start}.room-map-copy small{font-size:10px}.room-map-copy strong{font-size:17px}.room-map-copy canvas{width:72px;height:57px}.room-reveal-rule{font-size:11px}.room-start #room-hint{font-size:12px}.chat-message{font-size:12px}.chat-welcome{font-size:12px}.crew-bottom>span{font-size:11px}.crew-bottom button{font-size:10px}.room-chat-log{height:120px}.room-left{grid-template-rows:auto minmax(235px,1fr)}.selected-character p{font-size:10px}.room-team-status>b{font-size:9px}.panel-heading span{font-size:9px}.room-heading{flex-wrap:wrap}.home-nav span{font-size:7px}}
.room-browser-dialog{width:min(850px,calc(100vw - 26px));padding:28px}.room-browser-dialog>p{margin:9px 0 20px;font-size:12px}.browser-heading{display:flex;align-items:center;justify-content:space-between;background:linear-gradient(#5499e7,#3478c8);padding:12px 14px;border:1px solid #1e66b4;border-radius:13px 13px 0 0;color:#fff}.browser-heading h3{font:800 19px/1 'Baloo 2';margin:0;display:flex;gap:12px;align-items:center}.browser-heading h3 span{font:900 8px 'Nunito Sans';background:#b1edd2;color:#236a64;border-radius:6px;padding:4px 6px;letter-spacing:.7px}.browser-heading button{display:flex;align-items:center;gap:6px;padding:5px 8px;border:1px solid #a4d3fd;border-radius:7px;background:#518eda;color:white;font-size:11px;font-weight:800}.browser-heading svg{width:14px;height:14px}.rooms-columns,.available-room{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,1.3fr) .75fr 48px 63px;gap:11px;align-items:center}.rooms-columns{background:#c6e2f7;color:#527ea3;padding:9px 13px;font-size:9px;font-weight:900;letter-spacing:.8px;border-left:1px solid #aacce7;border-right:1px solid #aacce7}#available-rooms{min-height:146px;max-height:245px;overflow:auto;border:1px solid #a4c8e3;border-top:0;border-radius:0 0 12px 12px;background:#f8fdff;scrollbar-width:thin;scrollbar-color:#97bfdf #ecf7ff}.rooms-empty{display:grid;place-items:center;min-height:141px;margin:0!important;padding:18px;text-align:center;color:#698daa!important;font:12px/1.6 'Nunito Sans'!important}.available-room{padding:12px 13px;border-bottom:1px solid #d3e5f3}.available-room:last-child{border-bottom:0}.available-room:nth-child(even){background:#edf6fd}.available-identity{min-width:0}.available-identity strong{display:block;font:800 19px/1 'Baloo 2';letter-spacing:2px;color:#2b6cac}.available-identity>span{display:block;font-size:11px;color:#5f85a5;line-height:1.3;margin-top:5px;overflow-wrap:anywhere}.available-map{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;color:#466f93;min-width:0;line-height:1.3}.available-map canvas{width:45px;height:36px;border:1px solid #8db1cf;border-radius:5px;flex:none;image-rendering:pixelated}.available-mode{font-size:10px;color:#678aa9}.available-count{font-size:12px;font-weight:900;color:#337e7b;background:#d8f4ea;border:1px solid #aedbd2;border-radius:7px;text-align:center;padding:5px 2px}.available-room>button{padding:8px;border:1px solid #3478bd;border-radius:9px;background:linear-gradient(#7ab1f1,#4b8ad6);color:white;font-size:12px;font-weight:900;box-shadow:0 2px 0 #2d68aa}#room-browser-status{font-size:11px;margin:10px 2px 15px;color:#6086a5;line-height:1.5}.browser-settings{display:grid;grid-template-columns:1.1fr 1.2fr 1fr;align-items:end;gap:14px;padding:16px 0;border-top:1px solid #bdd7eb}.browser-settings .browser-name{min-width:0}.browser-settings input{padding:10px;font-size:12px}.browser-settings .mode-picker{margin:0;min-width:0}.browser-settings .mode-picker legend{font-size:10px;margin-bottom:6px}.browser-settings .mode-picker span{padding:10px 5px;font-size:10px}.browser-settings .mode-picker label{margin:0}.browser-settings .entry-map{margin:0;min-height:44px;padding:8px;gap:7px}.browser-settings .entry-map>i svg{width:18px;height:18px}.browser-settings .entry-map small{font-size:7px}.browser-settings .entry-map strong{font-size:11px}.browser-footer{display:flex;align-items:center;gap:15px;border-top:1px solid #bdd7eb;padding:16px 0 5px;background:#e4f3ff}.browser-footer .join-row{flex:1;margin:0}.browser-footer .primary-button{width:190px;min-height:45px}.browser-footer .join-row input{font-size:12px;letter-spacing:1px;padding:12px}.browser-footer .secondary-button{font-size:12px;padding:11px 17px}.room-browser-dialog .lobby-status{margin:11px 0 0;color:#a5682e}
@media(max-width:600px){.room-browser-dialog{padding:23px 17px;max-height:94vh}.room-browser-dialog h2{font-size:30px}.room-browser-dialog>p{font-size:11px;margin-bottom:15px}.browser-heading{padding:10px}.browser-heading h3{font-size:17px;gap:6px}.browser-heading h3 span{font-size:6px}.browser-heading button{font-size:10px;padding:5px 6px}.rooms-columns{display:none}#available-rooms{max-height:225px;min-height:125px}.available-room{grid-template-columns:minmax(0,1fr) minmax(0,1fr) 46px;gap:7px 9px;padding:12px 10px}.available-identity{grid-column:1}.available-identity strong{font-size:17px}.available-identity>span{font-size:10px}.available-map{grid-column:2;grid-row:1;flex-direction:column;align-items:start;gap:3px;font-size:10px}.available-map canvas{width:43px;height:34px}.available-mode{grid-column:1;grid-row:2;font-size:10px}.available-count{grid-column:3;grid-row:1;font-size:11px}.available-room>button{grid-column:3;grid-row:2;font-size:11px;padding:7px}.rooms-empty{min-height:122px;font-size:11px!important}#room-browser-status{font-size:10px;margin-bottom:11px}.browser-settings{grid-template-columns:1fr 1fr;gap:11px;padding:12px 0}.browser-name{grid-column:1/-1}.browser-settings .mode-picker{grid-column:1}.browser-settings .mode-picker span{font-size:9px;padding:10px 4px}.browser-settings .entry-map{grid-column:2}.browser-settings .entry-map small{font-size:6px}.browser-settings .entry-map strong{font-size:10px}.browser-footer{flex-direction:column;gap:12px;padding-top:12px}.browser-footer .join-row,.browser-footer .primary-button{width:100%}.browser-footer .join-row input{padding:11px 9px;font-size:10px}.browser-footer .secondary-button{padding:10px 13px;font-size:11px}.browser-footer .primary-button{min-height:44px}}
@media(max-height:520px) and (min-width:650px){.room-browser-dialog{padding:20px 25px}.room-browser-dialog>p{margin-bottom:12px}#available-rooms{max-height:145px;min-height:110px}.rooms-empty{min-height:107px}.browser-settings{padding:13px 0}.browser-footer{padding-top:12px}.room-browser-dialog h2{font-size:29px}}
.entry-map strong{color:#315f89}.room-browser-dialog[open]{display:flex;flex-direction:column;overflow:hidden;max-height:94vh}.browser-scroll{overflow-y:auto;min-height:0;padding-right:3px;scrollbar-width:thin;scrollbar-color:#9abedb #e4f3ff}.browser-scroll>p{color:#6789a4;font-size:12px;line-height:1.5;margin:10px 0 18px}.browser-footer{flex:none}.room-browser-dialog .lobby-status{flex:none}.room-browser-dialog .lobby-status:empty{display:none}.room-browser-dialog .dialog-close{z-index:2;background:#eef9ff;border-radius:50%;width:30px;height:30px;display:grid;place-items:center;line-height:1}
@media(max-height:520px) and (min-width:650px){.room-browser-dialog[open]{height:calc(100vh - 28px);padding:17px 23px}.browser-footer .primary-button{min-height:40px}.browser-footer .join-row input{padding:9px 10px}.browser-footer .secondary-button{padding:9px 14px}.browser-footer{padding-top:10px}.browser-scroll h2{margin:9px 0 6px}.browser-scroll>p{font-size:11px;margin:6px 0 13px}}

/* Leave the avatar clear of decorative copy on taller tablet layouts. */
@media(min-width:761px) and (max-width:1200px) and (min-height:521px){.home-heading{display:none}}

/* Detailed arena photos retain their aspect ratio at every viewport. */
.maps-dialog .map-choice .map-picture{display:block;width:100%;height:auto;aspect-ratio:1100/760;object-fit:cover;border:1px solid #93b5cc;border-radius:7px;image-rendering:auto}
