@media(max-width:700px){.wordmark{white-space:normal;line-height:1.2}.wordmark span{display:block}}:root{font-family:Inter,system-ui,sans-serif;color:#edeade;background:#101914;font-synthesis:none;font-weight:400;--gold:#d2b474;--muted:#a7b1a5;--panel:#1b2820;--line:#ffffff1c}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}button,a,input,select{touch-action:manipulation}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:1px solid #687459;background:#2a392c;color:#f3eee0;border-radius:7px;padding:.75rem 1rem;transition:background .15s}button:hover:not(:disabled){background:#3e5038}button:disabled{opacity:.48;cursor:not-allowed}button.primary{background:linear-gradient(110deg,#d8bf85,#b99a58);color:#172217;border-color:#d8bf85;font-weight:700}button.primary:hover:not(:disabled){background:#e5cf98}.danger{background:#623831;border-color:#9b594a}.quiet{background:transparent;border-color:transparent}a{color:var(--gold);text-decoration:none}a:hover{text-decoration:underline}h1,h2,h3,.wordmark{font-family:Cinzel,Georgia,serif}h1{font-size:clamp(1.7rem,3vw,2.6rem);font-weight:500;margin:.4rem 0 1rem}h2{font-weight:500;font-size:1.4rem;margin:0 0 1rem}h3{font-size:1.1rem}p{line-height:1.65}label{display:grid;gap:.5rem;font-size:.85rem;color:#d9dfd0}input,select{width:100%;min-width:0;border:1px solid #75816a66;border-radius:6px;padding:.8rem;background:#0d1814b3;color:#f4f1e7;outline:none}input:focus,select:focus{border-color:var(--gold);box-shadow:0 0 0 2px #d2b47433}button:focus-visible,a:focus-visible{outline:2px solid var(--gold);outline-offset:4px}form{display:grid;gap:1.1rem}small,.muted{color:var(--muted)}hr{border:0;border-top:1px solid var(--line);margin:1.5rem 0}.sr-only{position:absolute;width:1px;height:1px;padding:0;overflow:hidden;clip:rect(0,0,0,0)}.wordmark{letter-spacing:.15em;font-size:1.3rem;font-weight:600;color:#f4eedb;white-space:nowrap}.wordmark span{color:var(--gold)}.language select{width:auto;padding:.55rem .65rem}.eyebrow{font-size:.7rem;letter-spacing:.25em;color:var(--gold);font-weight:600}.dev-badge{display:inline-block;border:1px solid #cab17455;background:#101b1499;border-radius:30px;padding:.4rem .75rem;color:#d2bd8c;font-size:.65rem;text-transform:uppercase;letter-spacing:.14em}.notice{padding:.8rem 1rem;background:#6c4b2f80;border:1px solid #c19c59;border-radius:7px;margin-bottom:1rem;line-height:1.5}.notice[hidden]{display:none}.auth{min-height:100svh;background:linear-gradient(90deg,#071410b0,#10201338 48%,#07100caf),var(--auth-background) center/cover;display:grid;grid-template-columns:1.15fr 1fr;align-items:center;gap:6vw;padding:100px 8vw;position:relative}.auth-header{position:absolute;top:32px;left:5vw;right:5vw;display:flex;justify-content:space-between;align-items:center}.auth-story{max-width:580px;text-shadow:0 2px 24px #08130d}.auth-story h1{font-size:clamp(2.8rem,5vw,5rem);line-height:1.13;margin:1.4rem 0}.auth-story p{font-size:1.1rem;color:#eeeede;max-width:400px;margin-bottom:2rem}.auth-card{background:#122019eb;border:1px solid #ccb97955;border-radius:16px;box-shadow:0 24px 100px #0007;padding:2.2rem 2.5rem;max-width:440px;width:100%;justify-self:end;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.auth-card h2{text-align:center;font-size:1.9rem;margin-bottom:.6rem}.auth-card>.muted{text-align:center;margin-top:0;font-size:.85rem}.crest{text-align:center;color:var(--gold);font-size:3rem;margin-bottom:.7rem}.auth-card form{margin-top:1.4rem}.auth-card .primary{margin-top:.3rem;padding:1rem}.auth-switch{text-align:center;font-size:.8rem;margin:1.5rem 0 0}.auth-switch a{white-space:nowrap}.setup-message{font-size:.8rem;color:#decfa8;padding:.8rem;border:1px solid #b39d6844;border-radius:6px;line-height:1.5}.auth-footer{position:absolute;bottom:22px;left:5vw;font-size:.65rem;letter-spacing:.15em;color:#f2edcfb3}.game-header{display:flex;align-items:center;gap:1rem;padding:1rem 3vw;border-bottom:1px solid var(--line);background:#122019}.header-right{display:flex;gap:.8rem;align-items:center;margin-left:auto}.resource-bar{display:grid;grid-template-columns:repeat(4,1fr);background:#1c291f;border-bottom:1px solid var(--line);padding:.8rem 4vw;gap:1rem}.resource-bar>div{display:grid;grid-template-columns:1fr auto;gap:.25rem .5rem}.resource-bar span{color:#d6c695;font-size:.8rem}.resource-bar b{font-size:1.15rem}.resource-bar small{font-size:.65rem}.game-main{max-width:1440px;margin:auto;padding:1.8rem 3vw 7rem}.navigation{position:fixed;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:1rem;background:#122019f5;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px);border-top:1px solid var(--line);padding:.7rem;z-index:20}.navigation a{padding:.7rem 1.6rem;color:var(--muted);border-radius:7px}.navigation a[aria-current]{color:var(--gold);background:#d2b47415}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem}.section-heading h1{margin-bottom:.3rem}.section-heading p{margin:.3rem 0}.toolbar{display:flex;gap:1rem;align-items:center}.toolbar label{max-width:110px}.toolbar input{padding:0}.map-viewport{overflow:auto;height:min(55vh,650px);border:1px solid #7c8050;border-radius:10px;scrollbar-color:#697554 #17221b;background:#0b100e}.world-grid{display:grid;grid-template-columns:repeat(var(--size),var(--tile));width:max-content}.tile{width:var(--tile);height:var(--tile);padding:0;border:1px solid #26381f77;border-radius:0;position:relative;font-size:1.4rem;color:#9fca73;background:#0c140f}.tile.plain{background:var(--grass) center/cover}.tile.forest{background:linear-gradient(#1d4b2499,#123817dd),var(--grass) center/cover}.tile.mountain{background:#5f655d;color:#ced0c1}.tile.water{background:repeating-linear-gradient(165deg,#234f63,#234f63 8px,#2a596e 9px 11px);color:#ace2ef}.tile.unknown{background:#0d1711;border-color:#1b271f}.tile.discovered:after{content:"";position:absolute;inset:0;background:#07140e38;pointer-events:none}.tile.current{outline:3px solid #edd18b;outline-offset:-3px;z-index:1}.map-unit,.map-castle{position:relative;z-index:2;display:inline-block;font-size:1.6rem;color:#ffe9ba;filter:drop-shadow(0 2px 2px #000)}.map-unit.own{color:#b8e8fa}.map-controls{display:flex;gap:1rem;align-items:center;justify-content:space-between;margin-top:1rem;flex-wrap:wrap}.directions{display:flex;gap:.4rem}.directions button{padding:.6rem .8rem}.castle-scene{aspect-ratio:1672/941;background:var(--castle) center/contain no-repeat;position:relative;border:1px solid #6a704b;border-radius:12px;overflow:hidden;margin:1.3rem 0}.castle-slot{position:absolute;transform:translate(-50%,-50%);padding:.4rem;background:#142118cc;border-color:#d4bf81aa;min-width:9%;font-size:clamp(.55rem,1vw,.9rem);z-index:2}.castle-slot small{display:block;font-size:.7em;margin-top:.15rem}.castle-slot img{position:absolute;width:125%;max-height:180px;object-fit:contain;bottom:85%;left:-12%;pointer-events:none}.castle-slot.built{background:#304531e8}.castle-slot.keep-slot{background:#112118db}.building-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:.6rem}.building-list button{display:grid;gap:.4rem;text-align:left}.building-list span{font-size:.75rem;color:var(--muted)}.queue-grid{display:grid;grid-template-columns:1fr 1fr;gap:1rem;margin-top:1rem}.panel{padding:1.5rem;border:1px solid var(--line);background:var(--panel);border-radius:10px}.narrow{max-width:600px}.panel progress{width:100%;height:.6rem;accent-color:var(--gold)}.costs{display:inline-flex;gap:.7rem;flex-wrap:wrap;font-size:.85rem}.costs span{color:#b8c3ae}.costs b{color:#f1dda9}.quantity-control{display:flex;gap:.6rem;align-items:end}.quantity-control label{flex:1}.quantity-control button{padding:.8rem}.admin-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1.3rem}.admin-actions button{font-size:.8rem}pre{max-width:100%;overflow:auto;font-size:.75rem;color:#c8d3c1;background:#0c160f;padding:1rem;border-radius:6px}details{margin-top:1rem}dialog{background:#1a2920;color:#eeeade;border:1px solid #b09a64;border-radius:12px;width:min(560px,calc(100vw - 24px));padding:1.7rem;max-height:90svh;box-shadow:0 20px 100px #0009}dialog::backdrop{background:#030a06bb;-webkit-backdrop-filter:blur(4px);backdrop-filter:blur(4px)}.dialog-heading{display:flex;justify-content:space-between;align-items:start;gap:1rem}.dialog-heading h2{margin-top:.5rem}.dialog-heading button{padding:.5rem}.checkbox{display:flex;align-items:start;gap:.7rem;line-height:1.5}.checkbox input{width:18px;margin-top:.2rem}.loading{padding:10vh 10vw}.dialog-error{margin-top:1rem}@media(min-width:1000px){.navigation{inset:140px auto auto 0;width:175px;flex-direction:column;border:0;background:transparent;gap:.4rem;padding:1rem}.navigation a{padding:.9rem 1rem}.game-main{margin-left:175px;padding-bottom:3rem}.game-header{height:78px}.resource-bar{min-height:75px}}@media(max-width:700px){.auth{grid-template-columns:1fr;padding:100px 20px 65px;gap:1.5rem;background-position:56% center}.auth-story{max-width:440px;justify-self:center;width:100%}.auth-story h1{font-size:2.1rem;max-width:350px;margin:.7rem 0}.auth-story p,.auth-story>.dev-badge{display:none}.auth-card{justify-self:center;padding:1.4rem 1.5rem}.auth-header{top:24px}.auth-card h2{font-size:1.55rem}.crest{font-size:2.3rem}.wordmark{font-size:1rem}.game-header{padding:.8rem 1rem;gap:.3rem}.game-header>.dev-badge{display:none}.header-right{gap:.1rem}.header-right button{font-size:.75rem;padding:.5rem}.resource-bar{gap:.7rem;padding:.8rem 1rem;grid-template-columns:1fr 1fr}.resource-bar small{font-size:.58rem}.game-main{padding:1.2rem .8rem 6rem}.navigation{gap:0;justify-content:space-around;padding:.6rem .2rem}.navigation a{font-size:.72rem;padding:.7rem .5rem}.section-heading{align-items:start}.section-heading h1{font-size:1.65rem}.toolbar{gap:.4rem;flex-direction:column}.toolbar button{font-size:.7rem;padding:.5rem}.map-viewport{height:47vh}.map-controls{gap:.7rem}.directions button{font-size:.75rem}.queue-grid{grid-template-columns:1fr}.panel{padding:1.1rem}.castle-slot{padding:.2rem;min-width:10%}.castle-slot img{max-height:70px}.building-list{grid-template-columns:1fr 1fr}.building-list button{font-size:.8rem}.quantity-control{gap:.3rem}.quantity-control button{padding:.6rem}.auth-footer{font-size:.55rem}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}.game-shell{position:relative;isolation:isolate;min-height:100svh;background:#13241a;overflow:hidden}.game-shell:before{content:"";position:absolute;inset:-30px;z-index:-2;background:linear-gradient(#0b171a44,#09140c88),var(--landscape) center/cover;filter:blur(18px);opacity:.7;pointer-events:none}.game-shell:after{content:"";position:absolute;inset:0;z-index:-1;box-shadow:inset 0 0 120px #030b0999;pointer-events:none}.game-shell .game-main{margin:0;max-width:none;min-height:100svh;padding:100px 90px 115px;display:flex;flex-direction:column;justify-content:center}.hud-identity,.hud-account,.hud-map,.hud-more,.queue-dock,.game-shell .resource-bar{position:absolute;z-index:20}.hud-identity{top:16px;left:18px;display:flex;gap:10px;align-items:center;max-width:24%}.hud-identity>div{display:grid;gap:5px;min-width:0}.identity-name{font-family:Georgia,serif;color:#f7e7bd;text-shadow:0 2px 4px #000;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.hud-identity .dev-badge{font-size:8px;padding:3px 7px;justify-self:start}.home-crest,.hud-icon{display:grid;place-items:center;border:1px solid #c5a362;border-radius:50%;background:radial-gradient(circle at 35% 25%,#48604c,#13291f 70%);box-shadow:inset 0 0 0 3px #172b24,inset 0 0 0 4px #b5985c55,0 3px 12px #0008;color:#f2d49a;font-size:25px;flex-shrink:0;width:48px;height:48px}.home-crest{width:54px;height:54px;font-size:34px}.hud-link{display:flex;flex-direction:column;align-items:center;gap:5px;color:#f4e4bd;font-size:11px;text-shadow:0 2px 3px #000}.hud-link:hover{text-decoration:none;color:#fff4ca}.hud-link:hover .hud-icon,.hud-link[aria-current] .hud-icon{border-color:#ffe3a2;box-shadow:0 0 14px #d7ba6b66}.hud-account{right:18px;top:16px;display:flex;gap:15px;align-items:start}.hud-account details,.hud-more details{position:relative}.hud-account summary,.hud-more summary{cursor:pointer;list-style:none;display:flex;flex-direction:column;align-items:center;gap:5px;font-size:11px;color:#f4e4bd}.hud-account summary::-webkit-details-marker,.hud-more summary::-webkit-details-marker{display:none}.hud-popover{position:absolute;right:0;top:calc(100% + 12px);width:225px;max-height:65svh;overflow:auto;padding:16px;background:#13251af5;border:1px solid #b79a5a;border-radius:12px;box-shadow:0 10px 40px #0009;display:grid;gap:10px}.hud-popover .language select{width:100%}.hud-popover .hud-link{flex-direction:row;font-size:14px}.hud-popover .hud-icon{width:32px;height:32px;font-size:18px}.hud-popover button{text-align:left}.hud-popover button small{display:block;font-size:10px;margin-top:4px}.hud-popover button:disabled{opacity:.7}.menu-caption{font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--gold);margin:6px 0 0}.game-shell .resource-bar{top:0;left:50%;transform:translate(-50%);width:46%;max-width:720px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:0;padding:0 12px;background:linear-gradient(#1a2924f5,#10201ce8);border:1px solid #b79a5a;border-top:0;border-radius:0 0 24px 24px;min-height:0;box-shadow:0 4px 18px #0006}.resource-bar details{position:relative;min-width:0}.resource-bar summary{min-height:57px;list-style:none;display:flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;padding:8px 2px}.resource-bar summary::-webkit-details-marker{display:none}.resource-bar .resource-icon{font-size:24px;color:#d6b578}.resource-bar .resource-stone{color:#b5b9af}.resource-bar .resource-iron{color:#93afba}.resource-bar .resource-food{color:#c7d88a}.resource-bar .resource-name{position:absolute;bottom:3px;font-size:9px;color:#cdbf9e}.resource-bar b{font-size:clamp(.75rem,1.2vw,1rem);padding-bottom:5px}.resource-detail{position:absolute;top:65px;left:50%;transform:translate(-50%);width:215px;padding:14px;display:grid;gap:8px;border:1px solid #b79a5a;border-radius:10px;background:#14261bf5;box-shadow:0 8px 25px #0009;font-size:12px}.resource-detail span{font-size:12px;color:#dbe0ce}.hud-map{bottom:20px;left:20px}.hud-map .hud-icon{width:66px;height:66px;font-size:35px}.hud-more{bottom:20px;right:20px}.hud-more .hud-popover{top:auto;bottom:calc(100% + 12px)}.queue-dock{bottom:18px;left:50%;transform:translate(-50%);display:flex;gap:10px;width:min(460px,calc(100% - 240px))}.queue-chip{flex:1;min-width:0;border:1px solid #9b865855;background:#13251ce8;border-radius:10px;padding:10px 14px;color:#c7cab9;display:grid;gap:5px;font-size:12px;box-shadow:0 4px 20px #0005}.queue-chip:hover{text-decoration:none;border-color:var(--gold)}.queue-chip.active{border-color:#c6a665;color:#f3dfb0}.queue-chip small{font-size:10px}.queue-chip progress{width:100%;height:5px;accent-color:var(--gold)}.game-shell .castle-scene{width:min(100%,calc((100svh - 215px)*1672/941));flex-shrink:0;align-self:center;margin:0;border:0;border-radius:4px;box-shadow:0 12px 55px #0005}.game-shell .section-heading{position:absolute;left:100px;top:82px;right:100px;pointer-events:none}.game-shell .section-heading h1{font-size:18px;margin:0;text-shadow:0 2px 4px #000}.game-shell .section-heading .eyebrow{display:none}.game-shell .section-heading p{font-size:11px;color:#e2dfc7;text-shadow:0 2px 4px #000}.game-shell .castle-slot{background:transparent;border:0;border-radius:20%;padding:0;min-width:0;display:flex;align-items:end;justify-content:center}.game-shell .castle-slot:hover:not(:disabled),.game-shell .castle-slot:focus-visible{background:#f4e1a51c;box-shadow:inset 0 0 16px #f4d68a55}.castle-slot>span{border:1px solid #c7a66599;border-radius:12px;background:#132419d9;padding:3px 8px;font-size:clamp(7px,.8vw,12px);box-shadow:0 2px 6px #0005;max-width:100%}.game-shell .castle-slot small{margin:0}.game-shell .castle-slot img{bottom:20%;max-height:none;width:100%;height:150%;left:0}.game-shell .castle-slot:disabled{opacity:.65}.building-overview{position:absolute;top:145px;left:18px;z-index:10;width:60px}.building-overview>summary{list-style:none;cursor:pointer;font-size:11px;text-align:center;color:#edd8aa;overflow-wrap:anywhere;padding:10px 4px;border:1px solid #9c8659;background:#182c21e8;border-radius:9px}.building-overview[open]{width:min(340px,calc(100% - 36px));z-index:21}.building-overview .building-list{margin-top:8px;padding:12px;background:#13251af5;border:1px solid #a98f58;border-radius:10px;grid-template-columns:1fr 1fr;max-height:55svh;overflow:auto}.game-shell .notice{position:absolute;top:115px;left:50%;transform:translate(-50%);width:min(550px,90%);z-index:25;background:#3e3024f5;box-shadow:0 5px 25px #0008}.pending-panel{align-self:center}.view-overlay{position:absolute;z-index:30;top:95px;bottom:110px;left:50%;transform:translate(-50%);width:min(850px,calc(100% - 190px));overflow:auto;background:#12231bf7;border:1px solid #b79a5a;border-radius:14px;padding:26px;box-shadow:0 20px 80px #000a;-webkit-backdrop-filter:blur(12px);backdrop-filter:blur(12px)}.overlay-close{display:block;text-align:right;font-size:12px;margin-bottom:10px}.view-overlay h1{font-size:25px}.view-overlay .narrow{max-width:none}.view-overlay .queue-grid{margin-bottom:16px}.game-shell .map-section{display:flex;flex:1;min-height:0;flex-direction:column}.game-shell.scene-map .game-main{height:100svh;justify-content:start;padding-top:130px}.game-shell .map-section>.muted{font-size:11px;margin:0 0 8px}.game-shell .map-section .section-heading{pointer-events:auto}.game-shell .map-section .toolbar{flex-direction:row}.game-shell .toolbar button{padding:7px 10px;font-size:11px}.game-shell .toolbar label{font-size:10px;gap:3px;width:85px}.game-shell .map-viewport{height:auto;min-height:120px;flex:1;border-radius:6px;box-shadow:0 5px 30px #0006}.game-shell .map-controls{margin-top:8px;gap:8px}.game-shell .map-controls button{font-size:11px;padding:8px}.game-shell [data-cooldown]{font-size:11px}@media(min-width:1600px){.game-shell .game-main{padding-left:100px;padding-right:100px}}@media(max-width:700px){.hud-identity{top:10px;left:10px;max-width:50%}.home-crest{width:40px;height:40px;font-size:26px}.identity-name{font-size:13px}.hud-identity .dev-badge{font-size:7px}.hud-account{top:10px;right:10px;gap:10px}.hud-icon{width:36px;height:36px;font-size:21px}.hud-account .hud-link,.hud-account summary{font-size:9px}.game-shell .resource-bar{top:70px;width:calc(100% - 24px);border-top:1px solid #b79a5a;border-radius:14px;padding:0 8px;max-width:450px}.resource-bar summary{min-height:50px}.resource-bar b{font-size:12px}.resource-bar .resource-icon{font-size:21px}.resource-detail{width:170px;left:0;transform:none;top:58px}.resource-bar details:nth-last-child(-n+2) .resource-detail{left:auto;right:0}.game-shell .game-main{padding:175px 12px 135px}.game-shell .castle-scene{width:min(100%,calc((100svh - 310px)*1672/941))}.game-shell .section-heading{left:16px;right:16px;top:138px}.game-shell .section-heading h1{font-size:15px}.game-shell .section-heading p{font-size:10px}.building-overview{top:auto;bottom:120px;left:14px;width:auto}.building-overview>summary{padding:9px 12px}.building-overview[open]{width:calc(100% - 28px)}.building-overview .building-list{position:absolute;bottom:calc(100% + 8px);width:100%;max-height:45svh}.hud-map{bottom:16px;left:14px}.hud-map .hud-icon{width:51px;height:51px;font-size:28px}.hud-more{bottom:16px;right:14px}.queue-dock{width:calc(100% - 165px);gap:6px;bottom:17px}.queue-chip{padding:8px 7px;font-size:10px}.queue-chip small{font-size:8px}.hud-popover{width:210px}.game-shell .notice{top:175px}.view-overlay{top:134px;bottom:105px;width:calc(100% - 20px);padding:16px;border-radius:14px}.game-shell.scene-map .game-main{padding-top:205px;padding-bottom:125px}.game-shell.scene-map .section-heading{top:135px;align-items:center}.game-shell .map-section>.muted{font-size:10px;line-height:1.4}.game-shell .map-controls{gap:5px}.game-shell .directions{gap:3px}.game-shell .map-controls button{font-size:10px;padding:7px 5px}.game-shell .map-controls .primary{margin-left:auto}.game-shell .toolbar label{width:65px}.game-shell .queue-grid{grid-template-columns:1fr}dialog{max-height:85svh}}@media(max-height:540px)and (min-width:701px){.game-shell .game-main{padding-top:85px;padding-bottom:95px}.game-shell .castle-scene{width:min(100%,calc((100svh - 180px)*1672/941))}.building-overview{top:110px}.game-shell .section-heading{top:65px}.game-shell.scene-map .game-main{padding-top:105px;padding-bottom:95px}}@media(max-width:700px){dialog{margin:auto auto 0;width:100%;border-radius:18px 18px 0 0;padding:20px;max-height:88svh;padding-bottom:max(20px,env(safe-area-inset-bottom))}}summary:focus-visible{outline:2px solid var(--gold);outline-offset:3px}.game-shell details{margin-top:0}.game-shell.scene-castle{height:100dvh;min-height:100dvh}.game-shell.scene-castle:before,.game-shell.scene-castle:after{display:none}.game-shell.scene-castle .game-main{height:100dvh;min-height:100dvh;padding:0;display:block}.castle-viewport{position:absolute;inset:0;overflow:auto;scrollbar-width:none;overscroll-behavior:contain;touch-action:pan-x pan-y}.castle-viewport::-webkit-scrollbar{display:none}.game-shell.scene-castle .castle-scene{width:max(100vw,calc(100dvh * 1672 / 941));height:max(100dvh,calc(100vw * 941 / 1672));max-width:none;aspect-ratio:1672/941;margin:0;border:0;border-radius:0;box-shadow:none;background-size:100% 100%}.scene-castle .section-heading{z-index:5;text-shadow:0 2px 5px #000,0 0 10px #000}.scene-castle .hud-identity,.scene-castle .hud-account{text-shadow:0 2px 4px #000}.game-shell .castle-status{justify-content:flex-end}.game-shell .hud-account,.game-shell .hud-more{z-index:40}.world-grid .tile:not(.unknown){background:var(--terrain) center/100% 100% no-repeat;border:0}.world-grid .tile.unknown{border:0;background:#0d1711}.world-grid .tile:before{content:"";position:absolute;inset:0;pointer-events:none;background-image:var(--edge-n,linear-gradient(transparent,transparent)),var(--edge-e,linear-gradient(transparent,transparent)),var(--edge-s,linear-gradient(transparent,transparent)),var(--edge-w,linear-gradient(transparent,transparent))}.world-grid .tile[data-world-edge~=n]{--edge-n:linear-gradient(to bottom,#0d1916,transparent 55%)}.world-grid .tile[data-world-edge~=e]{--edge-e:linear-gradient(to left,#0d1916,transparent 55%)}.world-grid .tile[data-world-edge~=s]{--edge-s:linear-gradient(to top,#0d1916,transparent 55%)}.world-grid .tile[data-world-edge~=w]{--edge-w:linear-gradient(to right,#0d1916,transparent 55%)}.auth-honeypot{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);pointer-events:none}.map-castle{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;pointer-events:none;filter:drop-shadow(0 1px 2px #0009)}.map-castle img{width:100%;height:100%;object-fit:contain}.map-owner{position:absolute;bottom:90%;left:50%;transform:translate(-50%);max-width:130%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:1px 4px;border:1px solid #a48c56;border-radius:3px;background:#142018ed;color:#fff1ce;font-size:clamp(8px,calc(var(--tile) * .15),13px);line-height:1.3;z-index:3}.map-castle.own .map-owner{border-color:#c9e6ae}.research-summary{display:flex;justify-content:space-between;gap:1.2rem;flex-wrap:wrap}.research-summary p{margin:.5rem 0}.research-root{text-align:center;color:var(--gold);border:1px solid var(--line);border-radius:8px;padding:.9rem;margin:1rem auto;max-width:360px;background:#213529}.research-tree{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:1rem}.research-branch{min-width:0}.research-branch h2{text-align:center;font-size:1.05rem}.research-node{display:flex;flex-direction:column;gap:.5rem;width:100%;min-height:135px;text-align:left;margin-bottom:1.2rem;position:relative}.research-node:not(:last-child):after{content:"";position:absolute;height:1.2rem;width:2px;background:#b09a6477;left:50%;top:100%}.research-node span{font-size:.85rem}.research-node small{color:var(--muted)}.research-node.learned{border-color:#dfbc6b;background:#594b2480}.research-node.available{border-color:#92b988;background:#294632}.research-node.locked{background:#18251e;color:#a6b2a4}.research-node[aria-pressed=true]{outline:2px solid #f1d79b;outline-offset:2px}.research-tabs{display:none}.research-detail{margin-top:.5rem}@media(max-width:650px){.research-tabs{display:flex;gap:.3rem;margin:1rem 0}.research-tabs button{flex:1;padding:.7rem .3rem;min-width:0;font-size:.85rem}.research-tabs button[aria-pressed=true]{border-color:var(--gold);background:#384731}.research-tree{display:block}.research-branch:not(.selected){display:none}.research-node{min-height:110px}}.research-summary{padding:1rem;font-size:.9rem}.research-summary p{margin:.35rem 0}.research-overlay h1{margin-bottom:.8rem}@media(max-width:650px){.research-overlay{padding:1rem}.research-overlay h1{font-size:1.4rem}.research-summary{gap:.7rem;padding:.8rem}.research-summary>div{width:100%}.research-summary>div:last-child{border-top:1px solid var(--line);padding-top:.5rem}.research-summary>div:last-child p{display:inline-block;margin:.3rem .6rem .1rem 0;font-size:.78rem}.research-summary>div:last-child strong{display:block}.research-root{padding:.6rem;margin:.7rem 0}.research-tabs{position:sticky;top:0;z-index:2;background:#14251b;padding:.4rem 0}}
