@import url('/palette.css');
:root{font-family:'Yu Gothic','Hiragino Kaku Gothic ProN',system-ui,sans-serif;color:#214b38;background:#eef5e9;font-synthesis:none;--green:#1e8054;--deep:#174f3b;--muted:#6d8478}*{box-sizing:border-box}body{margin:0}button,select{font:inherit}button,a,select{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,select:focus-visible{outline:3px solid #f7b83b;outline-offset:3px}button{border:0}button:disabled{opacity:.5;cursor:wait}[hidden]{display:none!important}header{height:83px;padding:0 26px;background:#164e39;color:#fff;display:flex;align-items:center;gap:22px;box-shadow:0 3px 18px #193d2520;position:relative;z-index:3}.brand{font-weight:950;font-size:28px;color:#e0f18a;text-decoration:none;display:flex;align-items:center;gap:8px;letter-spacing:-2px}.brand span{font-size:17px;color:white;letter-spacing:-.5px}.divider{height:30px;border-left:1px solid #ffffff30}h1{font-size:23px;letter-spacing:-1px;margin:0;line-height:1.2}h1 span{color:#e6ee9e}h1 small{display:block;font-size:10px;font-weight:500;letter-spacing:2px;margin-top:6px;opacity:.65}.top-actions{margin-left:auto;display:flex;gap:7px}.top-actions button{background:#ffffff12;color:#fff;border:1px solid #ffffff20;border-radius:12px;padding:9px 12px;min-height:40px;font-size:12px}.top-actions button:hover{background:#ffffff25}main{display:grid;grid-template-columns:276px 1fr;height:calc(100dvh - 83px);min-height:580px}aside{background:#f8faf2;border-right:1px solid #d5e3d5;padding:29px 20px 15px;display:flex;flex-direction:column;overflow:auto;z-index:2}.eyebrow{font-size:10px;letter-spacing:1.4px;font-weight:800;color:#61866c}aside h2{font-size:21px;letter-spacing:-1px;margin:9px 0}#side-description{font-size:11px;color:var(--muted);line-height:1.8;margin:0 0 20px}.identity{background:linear-gradient(140deg,#e7f2d4,#cde8c7);border:1px solid #b9d6b3;border-radius:22px;box-shadow:0 7px 0 #dbe7d4;position:relative;min-height:174px;display:flex;flex-direction:column;align-items:center;padding-bottom:16px;text-align:center;margin-bottom:27px}.identity img{margin-top:-12px;width:118px;height:118px;filter:drop-shadow(0 5px 4px #4b6b2920)}.identity h3{font-size:25px;margin:-3px 0 0;letter-spacing:1px}.identity p{font-size:12px;margin:4px 0 0;font-weight:800;color:#4c7551}#team-label{position:absolute;top:17px;left:15px;font-size:10px;font-weight:700;writing-mode:vertical-rl;letter-spacing:2px}.spark{position:absolute;right:24px;top:20px;color:#a3bd54;font-size:28px}.select-label{display:block;font-weight:800;font-size:11px;margin:14px 0 6px}select{width:100%;border:1px solid #cfddcc;padding:11px 12px;background:#fff;color:#254d38;border-radius:10px;font-size:13px;min-height:43px}.primary,.secondary{display:block;width:100%;padding:13px;border-radius:12px;font-size:13px;font-weight:800;min-height:46px;margin-top:15px;transition:transform .15s,filter .15s}.primary{color:white;background:linear-gradient(#27935f,#1c7850);box-shadow:0 4px 0 #155238}.primary:hover{filter:brightness(1.08);transform:translateY(-1px)}.primary:active{transform:translateY(3px);box-shadow:0 1px 0 #155238}.primary span{float:right}.secondary{border:1px solid #c9dcca;background:#edf4e9;color:#356c4d;box-shadow:0 2px 0 #e0eadb}.mini-note{text-align:center;font-size:10px;color:#85947e;margin-top:17px}.sidebar-foot{margin-top:auto;padding-top:24px;font-size:9px;color:#8d9b87;line-height:1.8}.sidebar-foot button{display:block;background:none;padding:0;color:#789171;text-decoration:underline;font-size:9px;margin-top:6px}.dot{display:inline-block;background:#91b870;width:5px;height:5px;border-radius:100%;margin-right:5px}.stat-row{display:flex;justify-content:space-between;gap:10px;font-size:10px;color:#7b8f7e}.stat-row strong{display:block;font-size:25px;color:#2b6746;margin-top:5px;letter-spacing:-1px}.stat-row small{font-size:12px;color:#7b8f7e}.progress{height:5px;background:#deead7;border-radius:9px;margin:12px 0 20px;overflow:hidden}.progress i{display:block;height:100%;background:#36a26c;transition:width .3s}.selection-status{font-size:11px;min-height:34px;line-height:1.6;color:#729376}.rule-card{border-top:1px solid #e0e8d9;padding-top:16px;margin-top:18px;font-size:11px}.rule-card strong{font-size:12px}.rule-card p{font-size:10px;line-height:1.9;color:#81917c}.text-button{background:none;color:#799279;font-size:10px;text-decoration:underline;padding:12px 0}.map-legend{position:absolute;left:22px;bottom:93px;display:flex;gap:13px;font-size:10px;color:#4f8271;pointer-events:none}.map-legend i{width:7px;height:7px;border-radius:50%;display:inline-block;margin-right:5px}.player{background:#249b60}.enemy{background:#e77560}.neutral{background:#c4d3c4}#arena{position:relative;overflow:hidden;isolation:isolate;background:radial-gradient(ellipse at 40% 35%,#e0f6dc 0,#b6e4d8 55%,#a5d7d0 100%)}#arena:before{content:'';position:absolute;inset:0;background-image:radial-gradient(#ffffff55 1px,transparent 1px);background-size:25px 25px;pointer-events:none;z-index:-1}#canvas-wrap{position:absolute;inset:0;touch-action:none}#map-canvas{width:100%;height:100%;display:block}#labels{position:absolute;inset:0;pointer-events:none;overflow:hidden}.hub{position:absolute;border-radius:50%;width:31px;height:31px;display:flex;align-items:center;justify-content:center;transform:translate(-50%,-50%);background:#a9bda6;color:#fff;border:2px solid #f8fff1e0;box-shadow:0 2px 0 #476c4b50,0 3px 6px #1a4c3c25;font-weight:900;font-size:13px;pointer-events:auto;user-select:none;touch-action:none;padding:0;transition:background .2s}.hub:hover{z-index:8;outline:3px solid #ffe494}.hub.selected{outline:3px solid #ffd56c;z-index:9;box-shadow:0 0 20px #fff1a0}.hub.target{outline:4px solid #fff3b5;z-index:9}.hub .name{position:absolute;bottom:calc(100% + 2px);font-size:9px;white-space:nowrap;background:#fafff0d9;color:#3e684a;border-radius:4px;padding:1px 4px;font-weight:800;pointer-events:none}.hub.home:after{content:'⚑';position:absolute;right:-6px;top:-9px;color:#f6d154;text-shadow:0 1px 2px #647537;font-size:18px}.hub.selection-mode{font-size:11px;width:auto;min-width:29px;padding:3px 5px;height:24px;border-radius:8px;color:#456d4c;background:#f4fae8e8;border:1px solid #b5cfb0;font-weight:800;box-shadow:0 2px 0 #6c9b6425}.hub.selection-mode.selected{background:#26794d;color:#fff;border-color:#fff3bc}#drag-layer{position:absolute;width:100%;height:100%;inset:0;pointer-events:none;overflow:visible;display:none}#drag-path{fill:none;stroke:#fff3a8;stroke-width:6;stroke-linecap:round;stroke-dasharray:11 8;filter:drop-shadow(0 2px 0 #348e57)}#drag-end{fill:#fff5a5;stroke:#279360;stroke-width:3}.map-caption{position:absolute;left:27px;top:24px;pointer-events:none}.map-caption span{font-size:10px;letter-spacing:2px;font-weight:800;color:#578c74}.map-caption p{font-size:18px;font-weight:850;letter-spacing:-.5px;margin:5px 0;color:#396f56}.scoreboard{display:flex;position:absolute;top:19px;left:50%;transform:translateX(-50%);gap:5px;pointer-events:none}.team-pill{border:2px solid #ffffffdb;box-shadow:0 3px 7px #24574215;border-radius:16px;padding:7px 10px 7px 5px;color:white;display:flex;gap:4px;align-items:center;min-width:86px;background:#249b60}.team-pill img{width:34px;height:34px}.team-pill b{font-size:11px;white-space:nowrap}.team-pill strong{display:block;font-size:16px}.team-pill small{font-size:9px;opacity:.75}.map-tools{position:absolute;right:20px;bottom:98px;display:flex;gap:4px}.map-tools button{background:#f7fff1e6;color:#427355;border:1px solid #c4ddc7;border-radius:9px;min-width:36px;height:36px;font-weight:800;font-size:12px}.map-tools button:hover{background:#fff}#notice{position:absolute;top:100px;left:50%;transform:translate(-50%,-10px);opacity:0;background:#fff7d5;color:#6a693d;box-shadow:0 4px 15px #58754920;padding:9px 20px;border-radius:50px;font-size:12px;font-weight:800;pointer-events:none;transition:.2s;white-space:nowrap}#notice.show{transform:translate(-50%,0);opacity:1}.map-bottom{position:absolute;left:50%;bottom:20px;transform:translateX(-50%);background:#f3fbefd9;border:1px solid #ffffffc0;border-radius:18px;box-shadow:0 4px 15px #4b8a6715;padding:9px 23px;display:flex;align-items:center;gap:10px;white-space:nowrap;pointer-events:none}.map-bottom p{font-size:12px;font-weight:800;margin:0;color:#46744d}.map-bottom small{display:block;font-size:8px;color:#799b87;margin-left:10px}.gesture{font-size:25px;color:#3b815a}#loading,#load-error{position:absolute;inset:0;background:#d0ecdf;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;padding:30px;z-index:20}#loading strong{font-size:18px;margin:19px 0 0}#loading p,#load-error p{font-size:12px;color:#698971}.loader{width:34px;height:34px;border:3px solid #a1ceb1;border-top-color:#347e54;border-radius:50%;animation:spin .9s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#load-error .primary{max-width:230px}#load-error a{color:#44784f;font-size:12px;margin-top:20px}dialog{border:1px solid #e0ebd8;border-radius:26px;padding:35px;width:min(440px,calc(100% - 30px));box-shadow:0 25px 100px #174b3d40;color:#315b41;background:#fafff2}dialog::backdrop{background:#174b3d80;backdrop-filter:blur(7px)}dialog h2{font-size:24px;margin:12px 0}dialog p,dialog li{font-size:12px;line-height:1.95;color:#69826c}dialog ul{padding-left:19px}.dialog-close{position:absolute;right:15px;top:12px;background:#eaf2e3;color:#62806c;border-radius:50%;width:31px;height:31px;font-size:23px}dialog a{color:#2d8050}#result-dialog{text-align:center}#result-art img{width:128px;height:128px}#result-title{font-size:31px}#result-description{margin-bottom:20px}.result-stats{display:flex;gap:20px;justify-content:center;font-size:11px;color:#70856a}.result-stats strong{display:block;font-size:22px;color:#3b6f47}#pause-dialog,#confirm-dialog{text-align:center}
@media(min-width:1450px){aside{padding:37px 25px}main{grid-template-columns:305px 1fr}.identity img{width:136px;height:136px}.identity{min-height:196px}.hub{width:34px;height:34px}}
@media(max-width:1000px){main{grid-template-columns:225px 1fr}aside{padding:22px 15px}.map-bottom small{display:none}.team-pill{min-width:68px;padding:5px}.team-pill img{width:26px;height:26px}.team-pill b{font-size:9px}.team-pill strong{font-size:13px}.scoreboard{gap:3px}.map-caption p{font-size:14px}.hub{width:27px;height:27px;font-size:11px}.hub .name{font-size:8px}.map-bottom{padding:8px 15px}}
@media(max-width:680px){header{height:65px;padding:0 13px;gap:11px}.brand{font-size:24px}.brand span{display:none}h1{font-size:18px}h1 small{font-size:8px;letter-spacing:1px}.top-actions{gap:4px}.top-actions button{font-size:10px;min-height:34px;padding:7px 9px}.divider{height:25px}main{display:flex;flex-direction:column;height:calc(100dvh - 65px);min-height:620px}aside{order:2;flex:none;padding:12px 15px;border-top:1px solid #c8dccb;border-right:0;overflow:visible;display:grid;grid-template-columns:100px 1fr;gap:0 12px;position:relative}.eyebrow,aside h2,#side-description,.sidebar-foot{display:none}.identity{grid-column:1;grid-row:1;background:transparent;border:0;box-shadow:none;margin:0;padding:0;min-height:0;justify-content:center}.identity img{width:62px;height:62px;margin:-5px 0}.identity h3{font-size:16px;letter-spacing:0}.identity p{font-size:9px;margin:2px 0}.identity .spark,#team-label{display:none}#selection-controls,#match-controls{grid-column:2;grid-row:1;min-width:0}.select-label{font-size:9px;margin:0 0 3px}#selection-controls{display:grid;grid-template-columns:1fr 88px;gap:6px 8px}#selection-controls label{display:none}select{font-size:12px;padding:6px 7px;min-height:35px;border-radius:8px}.primary,.secondary{min-height:36px;font-size:12px;padding:8px;border-radius:9px;margin-top:0}#start{grid-column:1/3;margin:0 0 3px}#resume{grid-column:1/3;font-size:10px}.mini-note{display:none}#arena{flex:1;min-height:410px}#match-controls{display:grid;grid-template-columns:1fr 1fr;gap:4px 6px}.stat-row{grid-column:1/3;font-size:9px}.stat-row strong{display:inline;font-size:15px;margin:0 0 0 5px}.progress{display:none}#match-controls .select-label,.rule-card,#back-select{display:none}#province-select{min-height:30px;font-size:10px}#province-action{min-height:30px;font-size:10px;padding:6px}#selection-status{grid-column:1/3;font-size:9px;margin:0;min-height:14px}.map-caption{left:15px;top:14px}.map-caption span{font-size:9px}.map-caption p{font-size:12px}.scoreboard{top:12px;gap:3px;width:calc(100% - 24px);justify-content:center}.team-pill{min-width:0;flex:1;max-width:100px;border-radius:12px;gap:1px;padding:4px 3px}.team-pill img{width:25px;height:25px}.team-pill b{font-size:9px}.team-pill strong{font-size:12px}.team-pill small{font-size:8px}.map-bottom{bottom:10px;padding:6px 12px;border-radius:13px;gap:6px;max-width:calc(100% - 20px)}.map-bottom p{font-size:10px;white-space:normal}.gesture{font-size:20px}.map-legend{left:13px;bottom:64px;font-size:8px;gap:8px}.map-tools{right:12px;bottom:61px}.map-tools button{min-width:31px;height:31px;font-size:10px}.hub{width:25px;height:25px;font-size:10px;border-width:1.5px}.hub .name{font-size:7px;padding:0 2px;bottom:calc(100% + 1px)}.hub.selection-mode{font-size:9px;min-width:23px;height:22px;padding:2px 3px}#notice{top:64px;font-size:10px;padding:7px 13px}dialog{padding:28px 24px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:0s!important;transition:none!important}}

/* Compact hubs preserve the shape of small prefectures at the national scale. */
.hub{width:24px;height:24px;font-size:11px}.hub .name{font-size:8px;padding:0 2px}.hub.selection-mode{font-size:9px;padding:2px 3px;min-width:25px;height:22px}.hub.selected{min-width:30px;min-height:27px}.identity{min-height:160px;margin-bottom:20px}.identity img{width:100px;height:100px}#side-description{margin-bottom:15px}.rule-card{margin-top:12px;padding-top:12px}.sidebar-foot{padding-top:15px}@media(max-width:680px){.identity{min-height:0;margin:0}.identity img{width:62px;height:62px}.hub{width:22px;height:22px;font-size:9px}.hub .name{font-size:7px}.hub.selection-mode{font-size:8px;height:20px;min-width:21px}.hub.selected{min-width:25px;min-height:24px}}
/* Decluttered hubs: leader lines tie a moved hub to its prefecture; names appear when zoomed or targeted. */
#labels .leaders{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none}
#labels .leaders path{fill:none;stroke:#3e684a;stroke-opacity:.5;stroke-width:1.2}
#labels .leaders path.dots{fill:#fffdf0;stroke-opacity:.8;stroke-width:1}
.hub.mine{z-index:4}
.hub.target{transform:translate(-50%,-50%) scale(1.3);box-shadow:0 0 0 3px #279360,0 0 18px #fff1a0}
#labels.compact .hub .name{display:none}
#labels.compact .hub:is(.selected,.target,:hover) .name{display:block}
.squad{position:absolute;transform:translate(-50%,-50%);min-width:22px;padding:0 6px;border-radius:10px;color:#fff;font-size:11px;line-height:17px;font-weight:900;text-align:center;border:2px solid #fff;box-shadow:0 2px 5px #1a4c3c40;z-index:6;pointer-events:none}
.float-text{position:absolute;font-size:16px;font-weight:900;text-shadow:0 0 3px #fff,0 0 3px #fff,0 0 8px #fff;pointer-events:none;z-index:11;white-space:nowrap;animation:float-up 1.1s ease-out forwards}
@keyframes float-up{from{opacity:1;transform:translate(-50%,-90%)}to{opacity:0;transform:translate(-50%,-260%)}}
#send-preview{position:absolute;z-index:12;transform:translate(-50%,-100%);background:#fffdf3;border:2px solid #fff;border-radius:12px;padding:4px 10px;box-shadow:0 4px 14px #1d4a3a33;font-size:13px;font-weight:800;color:#3b5f45;white-space:nowrap;pointer-events:none}
#send-preview.below{transform:translate(-50%,0)}
#send-preview{color:#1f7a49;font-size:14px}
#send-preview.short{color:#bf4f3a}
.team-pill strong{white-space:nowrap}
.result-stats em{display:block;font-style:normal;font-size:10px;font-weight:800;color:#d08a1d}
/* Online room: invite box on the selection screen and the waiting lobby. */
.online-box{margin-top:14px;border-top:1px dashed #c9dcca;padding-top:10px}
.online-box summary{cursor:pointer;font-weight:800;font-size:12px;color:#356c4d;list-style:none;padding:6px 0}
.online-box summary::-webkit-details-marker{display:none}
.online-box summary:before{content:'▸ ';color:#27935f}
.online-box[open] summary:before{content:'▾ '}
.online-box .secondary{margin-top:8px}
.join-row{display:flex;gap:6px;margin-top:8px}
.join-row input{flex:1;min-width:0;border:1px solid #c9dcca;border-radius:12px;padding:0 10px;font:inherit;font-weight:800;font-size:15px;letter-spacing:2px;text-transform:uppercase;color:#2f5a40;background:#fff}
.join-row .secondary{margin-top:0;width:auto;flex:none;padding:0 16px}
.lobby-code{display:flex;align-items:baseline;justify-content:space-between;background:#fff;border:1px solid #c9dcca;border-radius:12px;padding:8px 12px;font-size:11px;font-weight:800;color:#5c7d63}
.lobby-code strong{font-size:24px;letter-spacing:4px;color:#23573a}
.lobby-players{list-style:none;padding:0;margin:10px 0 0;display:grid;gap:5px}
.lobby-players li{display:flex;align-items:center;gap:7px;font-size:12px;font-weight:800;color:#3b5f45}
.lobby-players li:before{content:'';width:10px;height:10px;border-radius:50%;background:var(--team);flex:none}
#lobby-start{margin-top:10px}
#lobby-start:disabled{filter:grayscale(.6) opacity(.6);transform:none}
@media(max-width:680px){
.online-box{grid-column:1/-1;margin-top:4px;padding-top:4px}
.online-box summary{font-size:11px;padding:2px 0}
.join-row input{font-size:13px}
#lobby-controls{grid-column:2;grid-row:1;min-width:0}
.lobby-code{padding:4px 8px}.lobby-code strong{font-size:18px}
.lobby-players{grid-template-columns:1fr 1fr;margin-top:6px;gap:2px 8px}
.lobby-players li{font-size:10px}
#lobby-controls .secondary,#lobby-start{margin-top:6px}
}
@media(max-width:680px){#stage-select{grid-column:1/-1}}
/* Start screen floats over the live map; the side panel then shows solo or online controls. */
#title-screen{position:fixed;inset:83px 0 0;z-index:5;display:grid;place-items:center;padding:20px;background:#eef7ecd9;backdrop-filter:blur(3px);overflow:auto}
#title-screen[hidden]{display:none}
.title-card{width:min(440px,100%);background:#fbfff6;border:1px solid #d3e6d3;border-radius:22px;box-shadow:0 18px 40px #1d4a3a26;padding:18px 22px 14px;text-align:center}
.title-art{width:100%;height:auto;border-radius:14px;display:block;margin-bottom:12px}
.title-card h2{margin:4px 0 6px;font-size:30px;letter-spacing:-1px;color:#174f3b}
.title-card h2 span{color:#e0952b}
.title-card p{margin:0 0 6px;font-size:12px;color:var(--muted)}
.title-card .primary{font-size:15px;min-height:52px}
.title-links{display:flex;justify-content:center;gap:18px}
#selection-controls .solo-only,#selection-controls .online-only{display:contents}
#selection-controls.mode-solo .online-only,#selection-controls.mode-online .solo-only{display:none}
.back-menu{padding:0 0 4px;text-align:left}
.online-box .select-label{margin-top:4px}
#room-stage{margin-top:2px}
.matching-note{display:flex;align-items:center;gap:10px;font-weight:800;font-size:13px;color:#356c4d;margin:12px 0 4px}
.loader.small{width:18px;height:18px;border-width:2px;flex:none}
@media(max-width:680px){
#title-screen{inset:65px 0 0;padding:12px}
.title-card{padding:12px 16px 10px}.title-card h2{font-size:24px}.title-art{margin-bottom:6px}
.back-menu{grid-column:1/-1;padding:0}
.mode-online #pref-select,#random-match{grid-column:1/-1}
#matching-controls{grid-column:2;grid-row:1;min-width:0}
}
.visually-hidden{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* Stage and home are chosen on a card centred over the map; the side panel is only used during a match. */
body:not(.playing) main{grid-template-columns:1fr}
body:not(.playing) aside,body:not(.playing) .map-caption,body:not(.playing) .map-bottom,body:not(.playing) .map-legend{display:none}
#setup{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);z-index:30;width:min(440px,calc(100% - 32px));max-height:calc(100% - 28px);overflow:auto;background:#fbfff6f2;border:1px solid #d3e6d3;border-radius:20px;box-shadow:0 16px 36px #1d4a3a2e;padding:16px 18px 12px}
body.playing #setup{display:none}
.setup-pick{display:flex;align-items:center;gap:12px;padding-bottom:10px;border-bottom:1px dashed #d3e6d3;margin-bottom:4px}
#setup-mascot{width:84px;height:84px;flex:none}
.setup-pick span{display:block;font-size:10px;font-weight:800;color:#61866c}
.setup-pick strong{display:block;font-size:22px;color:#174f3b;line-height:1.3}
.setup-pick small{font-size:12px;color:#6d8478;font-weight:700}
.seg{display:flex;gap:4px;background:#e4efe0;border-radius:12px;padding:4px}
.seg button{flex:1;border:0;border-radius:9px;padding:7px 4px;font-weight:800;font-size:14px;color:#356c4d;background:transparent;line-height:1.25;cursor:pointer}
.seg button small{display:block;font-size:9px;font-weight:700;color:#7a917f}
.seg button.active{background:#fff;box-shadow:0 2px 6px #1d4a3a22;color:#1c6b45}
.pick-hint{margin:4px 0 0;font-size:10px;color:#85947e}
@media(max-width:680px){
#setup{top:auto;bottom:10px;transform:translateX(-50%);width:calc(100% - 20px);max-height:calc(100% - 20px);padding:10px 12px 8px}
#setup-mascot{width:56px;height:56px}.setup-pick{padding-bottom:6px}.setup-pick strong{font-size:18px}
#selection-controls>.solo-only>.select-label,#stage-tabs{grid-column:1/-1}
.seg button{font-size:12px;padding:5px 2px}
.pick-hint{display:none}
}
#pref-name.long{font-size:17px;letter-spacing:-.5px}#setup-name.long{font-size:19px}
@media(max-width:680px){#pref-name.long{font-size:13px}#setup-name.long{font-size:16px}}
/* Departure picking: a slim bar over the map; tap a prefecture or city, or use the list. Rooms add the lobby above it. */
.setup-title{margin:2px 0 8px;font-size:20px;color:#174f3b}
#selection-controls.mode-solo .setup-title .online-only,#selection-controls.mode-online .setup-title .solo-only{display:none}
#pick-bar{position:absolute;left:50%;bottom:16px;transform:translateX(-50%);z-index:30;width:min(780px,calc(100% - 24px));background:#fbfff6f2;border:1px solid #d3e6d3;border-radius:18px;box-shadow:0 12px 30px #1d4a3a2e;padding:10px 14px 8px}
.pick-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
#pick-bar .setup-pick{border:0;padding:0;margin:0;flex:1;min-width:170px}
#pick-bar #setup-mascot{width:56px;height:56px}
#pick-bar select{width:auto;max-width:210px;flex:none;margin:0}
#pick-bar .primary{width:auto;margin:0;flex:none;padding:10px 18px;min-height:44px}
#pick-bar .text-button{padding:6px 0}
#pick-bar #lobby-controls{display:flex;flex-wrap:wrap;gap:6px 14px;align-items:center;padding-bottom:8px;margin-bottom:8px;border-bottom:1px dashed #d3e6d3}
#pick-bar #copy-link{width:auto;margin:0;min-height:34px;padding:6px 12px}
#pick-bar .lobby-players{display:flex;gap:6px 14px;margin:0;flex-wrap:wrap}
#pick-bar #lobby-note{margin:0;flex-basis:100%}
#pick-bar .pick-hint{text-align:center;margin:6px 0 0}
.hub.selection-mode.taken{opacity:.55}
@media(max-width:680px){
#pick-bar{bottom:8px;padding:8px 10px 6px;width:calc(100% - 16px)}
#pick-bar .setup-pick{flex:1 1 60%}#pick-bar #setup-mascot{width:44px;height:44px}
#pick-bar select{max-width:none;flex:1 1 40%}
#pick-bar .primary{flex:1 1 100%;min-height:40px;padding:8px}
#pick-bar .pick-hint{display:none}
#pick-bar .lobby-players li{font-size:10px}
}
body[data-screen=pick] .map-tools{bottom:128px}
@media(max-width:680px){body[data-screen=pick] .map-tools{bottom:auto;top:12px}}
