/* A quiet illustrated farm surrounds the central entry controls. */
body.in-lobby>header,body.in-lobby>#world,body.in-lobby>.vignette,body.in-lobby>.panel,body.in-lobby>#modeHud,body.in-lobby>.bottomHint{visibility:hidden}
#lobby{z-index:20;display:block;overflow:auto;background:#f4edce;backdrop-filter:none;color:#5b563b;color-scheme:light;scrollbar-color:#b6bb81 #f4edce;isolation:isolate}
#lobby:before{content:"";position:fixed;inset:0;z-index:-2;background:url('/assets/brand/nibbleland-farm-v1.webp') center/cover no-repeat;opacity:.62;pointer-events:none}
#lobby:after{content:"";position:fixed;inset:0;z-index:-1;background:radial-gradient(ellipse at 50% 31%,#fff9e9e6 0%,#fff9e970 32%,#fff9e92a 70%);pointer-events:none}
#notice{z-index:40}.lobby-shell{width:min(1180px,calc(100% - 64px));margin:auto;padding:24px 0}
.lobby-masthead{display:flex;justify-content:space-between;gap:20px;color:#6d754d;font-size:11px;font-weight:750;letter-spacing:1.6px}.lobby-masthead>span:last-child{font-weight:500;letter-spacing:.2px}
.lobby-masthead{align-items:center;flex-wrap:wrap;gap:10px 16px}.lobby-masthead>[data-i18n]{margin-inline-end:auto;font-weight:500;letter-spacing:.2px}.language-picker{display:flex;align-items:center;gap:7px;letter-spacing:0;font-weight:600;direction:ltr}.language-picker>span{max-width:110px;line-height:1.4}.language-picker select{min-height:34px;max-width:178px;width:auto;border:1px solid #b9be94;border-radius:9px;background:#fffcf0;color:#52683f;padding:5px 24px 5px 8px;font:inherit;letter-spacing:0;cursor:pointer}
.lobby-hero{position:relative;min-height:530px;display:flex;justify-content:center;align-items:center;padding:15px 0 34px}
.lobby-copy{position:relative;z-index:2;text-align:center;width:min(450px,100%)}.lobby-copy h1{margin:0;line-height:0}
.brand-logo{display:block;width:100%;height:295px;object-fit:contain;margin:auto;filter:drop-shadow(0 8px 6px #74643e13)}
.lobby-tagline{color:#6f704c;font-size:15px;margin:2px 0 18px;font-weight:650;text-shadow:0 1px #fff7df}
.lobby-copy .entry{display:flex;flex-direction:column;width:min(318px,100%);margin:auto;gap:11px}.nickname-field{display:block;position:relative;text-align:left}
.nickname-field span{position:absolute;left:17px;top:9px;color:#8a886d;font-size:10px;font-weight:600;pointer-events:none}
#nickname{width:100%;height:59px;padding:24px 17px 9px;background:#fffcf2ed;border:1px solid #c9bf9f;border-radius:13px;color:#4c4e39;font-size:17px;font-weight:650;box-shadow:0 2px 8px #7869440b;outline:none}
#nickname:focus{border-color:#69934e;box-shadow:0 0 0 3px #91aa5733}
.lobby-copy #play{width:100%;height:67px;flex:0 0 67px;display:block;border:1px solid #537c32;border-radius:16px;background:linear-gradient(#91b95c,#719f42);box-shadow:0 5px 0 #547630,0 9px 18px #71884426;color:#fffcee;font-size:29px;letter-spacing:3px;font-weight:900;text-shadow:0 2px #4e702e;transition:transform .14s,box-shadow .14s,filter .14s}
.lobby-copy #play span{font-size:16px;vertical-align:3px;margin-left:14px;opacity:.85}.lobby-copy #play:hover{filter:brightness(1.06);transform:translateY(-1px);box-shadow:0 6px 0 #547630,0 9px 18px #71884426}.lobby-copy #play:active{transform:translateY(3px);box-shadow:0 2px 0 #547630}.lobby-copy #play:disabled{opacity:.6;cursor:wait}
.lobby-copy #play[data-pending="true"]{font-size:17px;letter-spacing:.2px;line-height:1.4;padding:5px 12px;white-space:normal}
#runtimeStatus{color:#9a493b;font-size:13px;line-height:1.6;margin:15px auto 0;max-width:350px;background:#fff8e9e0;border-radius:12px;padding:8px}
.lobby-controls{display:flex;justify-content:center;flex-wrap:wrap;gap:13px;color:#6f7353;margin:22px 0 13px;font-size:11px}.lobby-controls>span{display:flex;align-items:center;gap:5px;white-space:nowrap}.lobby-controls kbd{background:#fffcf3b3;border:1px solid #bdb89b;border-bottom-width:2px;border-radius:5px;padding:3px 5px;font-size:10px;color:#5c6549}
#lobby .lobby-growth{display:flex;justify-content:center;gap:14px;margin:0;color:#6e7850;font-size:10px}#lobby .lobby-growth span{padding:0;background:none;border:0;color:#6e7850}#lobby .lobby-growth b{color:#638840;margin-right:3px}
.lobby-stage{position:absolute;width:300px;height:300px;left:-10px;top:160px;z-index:1}#lobbyPreview{width:100%;height:100%;display:block;cursor:grab;touch-action:pan-y;outline:none}#lobbyPreview:active{cursor:grabbing}#lobbyPreview:focus-visible{outline:2px solid #819f59;border-radius:24px}
.preview-mode{position:absolute;bottom:6px;left:50%;transform:translateX(-50%);display:flex;align-items:center;gap:7px;padding:6px 10px;border-radius:20px;background:#f8f1d6c7;color:#707857;font-size:10px;white-space:nowrap;pointer-events:none}.preview-mode i{width:5px;height:5px;border-radius:50%;background:#87a757}.preview-mode[data-mode="artillery"] i{background:#c48b46}.preview-mode>span{font-size:9px;border-left:1px solid #aeb58a;padding-left:6px}
#vehicleNote{font-size:10px;line-height:1.5;color:#78815e;text-align:center;position:absolute;top:100%;width:100%;margin:5px 0}
.lobby-lessons{display:grid;grid-template-columns:1fr 1fr;gap:18px;max-width:920px;margin:auto}.lesson{min-width:0;overflow:hidden;border:1px solid #f8f5e0d9;background:#faf7e8d9;border-radius:22px;box-shadow:0 7px 28px #76673c0b}
.lesson-heading{display:flex;align-items:center;gap:10px;padding:16px 20px 0}.lesson-number{display:flex;align-items:center;justify-content:center;width:24px;height:24px;border-radius:8px;background:#e7edcf;color:#7f9258;font-size:10px;font-weight:700}.lesson h2{font-size:16px;margin:0;color:#586544;font-weight:750;letter-spacing:-.4px}.lesson-key{margin-left:auto;display:flex;align-items:center;gap:6px;font-size:10px;color:#7f8566}.lesson-key svg{width:17px;height:22px;overflow:visible}
.lesson-heading{flex-wrap:wrap;row-gap:7px}.lesson h2{overflow-wrap:anywhere;flex:1;min-width:0}.lesson-key{flex-shrink:0;max-width:100%}.lesson-key strong{overflow-wrap:anywhere}.lesson-caption{flex-wrap:wrap}.lesson-art{direction:ltr}.lobby-growth>span{white-space:normal}.lobby-growth{flex-wrap:wrap}.lesson-footer{gap:14px;flex-wrap:wrap}.lesson-footer button{flex-shrink:0}.lobby-tagline,#vehicleNote,#runtimeStatus{overflow-wrap:anywhere}.bottomHint{max-width:calc(100% - 20px);white-space:normal;text-align:center;line-height:1.6}#helpDialog p{overflow-wrap:anywhere}#lobby[dir="rtl"] .nickname-field{text-align:right}#lobby[dir="rtl"] .nickname-field>span{left:auto;right:17px}#lobby[dir="rtl"] .lesson-key{margin-left:0;margin-right:auto}#helpDialog[dir="rtl"]{text-align:right}
.lesson-art{display:block;width:100%;height:auto;max-height:184px}.lesson-art text{font-family:"Segoe UI","Malgun Gothic",sans-serif;fill:#6e7859;font-weight:650}.lesson-caption{display:flex;justify-content:center;gap:9px;margin:0 12px 15px;color:#7e846b;font-size:10px;line-height:1.5;text-align:center}.lesson-caption b{color:#61734c;font-weight:650}.lesson-caption i{font-style:normal}
.lesson-footer{display:flex;align-items:center;justify-content:space-between;max-width:900px;margin:17px auto 0;color:#8b8e71;font-size:10px}.lesson-footer button{padding:5px;background:none;color:#78865a;border:0;font-size:11px}.lesson-footer button:hover{background:#ffffff60;color:#506c39}.lesson-footer svg{height:13px;width:13px;vertical-align:-2px}
.lobby-symbols{position:absolute;width:0;height:0;overflow:hidden;pointer-events:none}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.mode-flow{stroke-dasharray:8 8;animation:mode-flow 1.4s linear infinite}.paint-demo-stroke{stroke-dasharray:280;animation:paint-demo 5.8s ease-in-out infinite}@keyframes mode-flow{to{stroke-dashoffset:-32}}@keyframes paint-demo{0%,12%{stroke-dashoffset:280}62%,100%{stroke-dashoffset:0}}
@media(min-width:1500px) and (min-height:950px){.lobby-hero{min-height:590px}.brand-logo{height:335px}.lobby-stage{width:350px;height:350px;top:150px;left:-30px}.lesson-art{max-height:210px}}
@media(max-width:1050px){.lobby-stage{width:230px;height:230px;left:-20px;top:185px}.lobby-copy{width:390px}.brand-logo{height:275px}}
@media(max-height:780px) and (min-width:761px){.lobby-shell{padding-top:16px}.lobby-hero{min-height:435px;padding-bottom:24px}.brand-logo{height:210px}.lobby-tagline{margin-bottom:13px}.lobby-controls{margin-top:19px}.lobby-stage{top:100px}.lesson-art{max-height:130px}.lesson-caption{margin-bottom:10px}.lesson-heading{padding-top:12px}.lesson-footer{margin-top:12px}}
@media(max-width:900px){.lobby-shell{width:calc(100% - 32px);padding-top:18px}.lobby-masthead{font-size:9px;letter-spacing:.8px}.lobby-masthead>span:last-child{font-size:10px}.lobby-hero{min-height:0;display:flex;flex-direction:column;padding:15px 0 28px}.lobby-copy{width:min(410px,100%)}.brand-logo{height:255px}.lobby-stage{position:relative;left:auto;top:auto;width:260px;height:235px;margin:18px auto 14px}.lobby-lessons{grid-template-columns:1fr;max-width:500px;gap:14px}.lesson-art{max-height:185px}.lobby-tagline{font-size:13px}.lobby-controls{gap:10px}.lesson-footer>span{font-size:9px}.lesson h2{font-size:15px}}
@media(prefers-reduced-motion:reduce){.mode-flow,.paint-demo-stroke{animation:none}#lobby button{transition:none}}
