/* One proportional painted town, with usable building controls on every screen. */
.castle184:has(.city190){grid-template-rows:62px minmax(0,1fr) 54px}.castle184:has(.city190) .castle184-header{padding:8px 24px}.castle184:has(.city190) .castle184-bottom button{font-size:11px}.castle184:has(.city190) .castle184-bottom button>span{font-size:24px}
.city190-home{display:block;background:#d7dfc6}.city190-home>:not(.city190):not(.town192){display:none!important}.city190{height:100%;width:100%;display:grid;grid-template-rows:auto minmax(0,1fr) auto;color:#223c43;background:linear-gradient(140deg,#eff0d7,#d8e4d1);overflow:hidden}.city190 button{font:inherit;cursor:pointer}.city190 button:disabled{cursor:default;opacity:.55}.city190-hud{display:flex;align-items:center;gap:18px;padding:10px 24px;background:#fff8e8ed;border-bottom:1px solid #b8ad8b88}.city190-hud>div:first-child{margin-right:auto}.city190-hud small{display:block;font-size:8px;letter-spacing:1.3px;color:#6c786b}.city190-hud h1{font:normal 23px Georgia,serif;margin:4px 0 0}.city190-hud h1>span{display:inline-block;font:11px Georgia;color:#fff1ca;background:#456568;border:1px solid #b8a361;border-radius:4px;padding:4px 6px;vertical-align:middle;margin-left:5px}.city190-resources{display:flex;gap:16px}.city190-resources>span{display:grid;grid-template-columns:18px auto;column-gap:4px}.city190-resources i{font-style:normal;grid-row:span 2;color:#af853d;align-self:center;font-size:20px}.city190-resources b{font-size:17px}.city190-resources small{font-size:7px;letter-spacing:0}.city190-hud>button{border:1px solid #baa568;border-radius:7px;background:#f3e6c5;color:#344b47;min-height:39px;padding:8px 12px;font-size:11px}
.city190-body{min-height:0;display:grid;grid-template-columns:minmax(0,1fr) 248px;gap:0}.city190-map{position:relative;min-width:0;min-height:0;display:grid;place-items:center;overflow:hidden;background:#d3dfbd}.city190-plane{position:relative;flex:none;aspect-ratio:1.75;width:100%;max-width:100%;max-height:100%;isolation:isolate}.city190-art{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;display:block}.city190-built{position:absolute;object-fit:contain;pointer-events:none;transform-origin:50% 100%;z-index:1}.city190-tower{left:12.5%;bottom:27%;width:15%;height:35%;transform:scale(calc(1 + (var(--level) - 1) * .04))}.city190-well{left:73%;bottom:27%;width:14%;height:22%;transform:scale(calc(1 + (var(--level) - 1) * .04))}.city190-hotspot{position:absolute;z-index:2;transform:translate(-50%,-15%);min-height:44px;padding:0 10px 5px;min-width:75px;border:0;background:none;color:#fff4d6!important;text-shadow:0 1px 3px #142e30;display:flex;align-items:center;flex-direction:column;gap:3px}.city190-hotspot i{font:700 13px Georgia;background:linear-gradient(#526b70,#263e4a);border:1px solid #f1d093;border-radius:50%;box-shadow:0 2px 5px #152d3b80;width:30px;height:30px;display:grid;place-items:center}.city190-hotspot span{font-size:10px;white-space:nowrap;padding:4px 8px;background:#183a43e8;border:1px solid #dbc58c80;border-radius:5px}.city190-hotspot:hover{filter:brightness(1.2)}
.city190-buildings{padding:14px 14px 10px;background:linear-gradient(#ecf0df,#d8e3d1);border-left:1px solid #afbea799;overflow:auto;display:flex;flex-direction:column;gap:7px}.city190-summary small{font-size:8px;letter-spacing:2px;color:#71826b}.city190-summary h2{font:normal 24px Georgia;margin:6px 0}.city190-summary p{font-size:10px;line-height:1.65;margin:6px 0 12px;color:#5e756b}.city190-buildings>button{display:flex;align-items:center;gap:10px;border:1px solid #c4ba99;border-radius:8px;min-height:51px;padding:7px 10px;background:#fff9eae8;color:#29464b;text-align:left}.city190-buildings>button>i{font:23px Georgia;color:#7c944f;width:28px;text-align:center;font-style:normal}.city190-buildings strong{display:block;font-size:12px}.city190-buildings small{display:block;font-size:9px;color:#77836e;margin-top:3px}.city190-buildings>button>b{margin-left:auto;color:#ad874a}.city190-buildings>button:hover{background:#fffdf4;border-color:#8a9d71}
.city190-dock{display:flex;justify-content:center;align-items:center;gap:13px;padding:11px 20px;background:#fff8e8;border-top:1px solid #bdb39188}.city190-dock button{background:#e3eddd;border:1px solid #a7bba6;color:#35574f;border-radius:8px;padding:8px 15px;min-height:47px;min-width:165px}.city190-dock strong{display:block;font-size:11px}.city190-dock small{display:block;font-size:8px;color:#697e71;margin-top:5px}.city190-dock>:is(a,[data-city-arena191]){height:48px;min-width:260px;padding:10px 28px;display:flex;align-items:center;justify-content:center;gap:25px;color:#243d40;background:linear-gradient(#fae7a5,#d1aa59);border:1px solid #ad883f;border-radius:9px;box-shadow:0 3px 0 #a07c40;font-size:19px;font-weight:850;letter-spacing:1px}.castle184[data-city-test190=true] .city190-hud{background:#fff0c7;border-bottom:2px dashed #b88b3f}.castle184[data-city-test190=true] .city190-hud>div:first-child>small{color:#9a6730;font-weight:700}
.city190-dialog{width:min(900px,94vw);max-height:90dvh;padding:0;border:1px solid #b7a56d;border-radius:14px;background:#fff8e8;color:#29464b;box-shadow:0 25px 100px #051c3380;overflow:auto;font-family:system-ui}.city190-dialog::backdrop{background:#102835a8;backdrop-filter:blur(3px)}.city190-dialog>header{position:sticky;top:0;z-index:3;display:flex;justify-content:space-between;align-items:center;padding:16px 24px;background:#f9f0d8;border-bottom:1px solid #d2c6a6}.city190-dialog>header small{display:block;font-size:8px;letter-spacing:2px;color:#82906e}.city190-dialog h2{font:normal 28px Georgia;margin:5px 0 0}.city190-dialog [data-close190]{min-width:42px;min-height:42px;font-size:27px;padding:0;border-radius:50%;border:1px solid #bcae8c;background:#fff8e8;color:#47635b}.city190-dialog-body{padding:20px 24px}.city190-dialog p{font-size:12px;line-height:1.75;color:#657b6f}.city190-dialog h3{font:normal 21px Georgia;margin:10px 0}.city190-dialog button,.city190-magic-links a{font:600 12px system-ui;min-height:43px;padding:10px 15px;color:#28484a;background:linear-gradient(#f8e5a8,#ddc384);border:1px solid #b49d64;border-radius:7px;cursor:pointer}.city190-dialog button:disabled{opacity:.5;cursor:default}.city190-dialog .city190-secondary{background:#e1ebdf;border-color:#a7bfae;margin-top:10px}.city190-dialog label{display:block;font-size:11px;margin-bottom:7px;color:#627769}.city190-dialog select{width:100%;border:1px solid #b7bd9b;background:#fffdf4;color:#38584e;border-radius:6px;min-height:42px;font-size:13px;padding:7px 10px}.city190-upgrade{display:flex;align-items:center;gap:24px;padding:17px 18px;background:#e8eedc;border:1px solid #becaaa;border-radius:10px;margin-top:20px}.city190-upgrade>div{flex:1}.city190-upgrade p{font-size:11px;margin:6px 0 0}.city190-upgrade>button{max-width:45%;flex:none}.city190-welcome,.city190-lab,.city190-construction{display:flex;gap:25px;align-items:center}.city190-welcome>img{width:42%;border-radius:10px;aspect-ratio:1.4;object-fit:cover}.city190-welcome>div{flex:1}.city190-note{background:#f4ebd2;padding:12px 15px;border-radius:7px}.city190-courtyard{display:flex;justify-content:center;align-items:end;gap:16px;padding:22px 10px 12px;background:linear-gradient(#e0e8d3,#b9b99d);border:1px solid #c7c49b;border-radius:10px}.city190-courtyard img{width:16%;height:160px;object-fit:contain;filter:drop-shadow(0 5px 3px #53675355)}.city190-hero-preview{width:30%;flex:none;text-align:center}.city190-hero-preview img{height:230px;width:100%;object-fit:contain}.city190-hero-preview>span{display:block;font-size:10px;color:#728363;margin-top:8px}.city190-lab>div:last-child{flex:1}.city190-lab button{display:block;width:100%;margin-top:12px}.city190-practice{margin-top:18px;background:#203c46;border:1px solid #a9bdad;border-radius:10px;padding:12px}.city190-practice[hidden]{display:none}.city190-practice canvas{width:100%;height:auto;aspect-ratio:600/380;display:block;max-height:360px;object-fit:contain}.city190-practice p{color:#d8e8d9;font-size:11px}.city190-dialog details{margin-top:20px;padding:12px 0;font-size:12px;border-top:1px solid #c7cfb4}.city190-dialog summary{cursor:pointer;color:#577766}.city190-magic-links{display:flex;gap:9px;flex-wrap:wrap;margin-top:14px}.city190-magic-links a{display:block;text-decoration:none;background:#e2edde}.city190-offers{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.city190-offers article{padding:17px 14px;background:#edf1e1;border:1px solid #c4cbac;border-radius:10px}.city190-offers article>span{font-size:30px;color:#9b8050}.city190-offers h3{font-size:18px;min-height:42px}.city190-offers button{width:100%;font-size:10px}.city190-offers p{font-size:10px}.city190-construction>img{width:38%;height:230px;object-fit:contain}.city190-construction>div{flex:1}.city190-feedback{min-height:22px;margin:14px 0 0;font-size:11px!important;color:#7c692c!important}
@media(max-width:900px){.city190-body{grid-template-columns:minmax(0,1fr) 190px}.city190-hud{padding:9px 14px;gap:10px}.city190-resources{gap:9px}.city190-hud h1{font-size:20px}.city190-hud>button{font-size:9px}.city190-buildings{padding:10px;gap:6px}.city190-buildings strong{font-size:10px}.city190-summary h2{font-size:20px}.city190-dock>:is(a,[data-city-arena191]){min-width:220px}.city190-dock button{min-width:140px}}
@media(max-width:620px){.castle184:has(.city190){grid-template-rows:56px minmax(0,1fr) calc(54px + env(safe-area-inset-bottom,0px))}.castle184:has(.city190) .castle184-header{padding:6px 10px}.castle184-header-actions [data-story184]{display:none}.castle184-header-actions [data-city-fullscreen190]{width:29px;min-width:29px;height:29px;font-size:20px}.city190{overflow-y:auto;grid-template-rows:auto auto auto}.city190-hud{display:grid;grid-template-columns:1fr auto;padding:9px 12px;gap:8px}.city190-hud>div:first-child{margin:0}.city190-hud h1{font-size:21px;margin-top:3px}.city190-hud small{font-size:6px}.city190-hud>button{grid-row:1;grid-column:2;min-height:35px;font-size:9px;padding:7px 9px}.city190-resources{grid-row:2;grid-column:1/-1;justify-content:space-between;gap:10px}.city190-resources>span{grid-template-columns:17px auto}.city190-resources b{font-size:15px}.city190-resources small{font-size:7px}.city190-body{display:flex;flex-direction:column;min-height:0}.city190-map{flex:none;aspect-ratio:1.75;min-height:0;width:100%}.city190-plane{max-height:none}.city190-hotspot{min-height:39px;min-width:45px;padding:0 5px;gap:0}.city190-hotspot i{height:23px;width:23px;font-size:10px}.city190-hotspot span{font-size:6px;padding:3px 5px}.city190-buildings{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:9px 10px;background:#e6edda;overflow:visible;border:0}.city190-summary{display:none}.city190-buildings>button{display:block;text-align:center;padding:6px 3px;min-height:56px}.city190-buildings>button>i{display:none}.city190-buildings>button>b{display:none}.city190-buildings strong{font-size:10px}.city190-buildings small{font-size:7px;margin-top:4px}.city190-dock{gap:8px;padding:11px 10px;flex-wrap:wrap}.city190-dock>:is(a,[data-city-arena191]){order:-1;flex-basis:100%;min-width:0;height:44px;font-size:19px}.city190-dock button{min-width:0;width:calc(50% - 4px);min-height:43px;padding:7px 5px}.city190-dock strong{font-size:9px}.city190-dock small{font-size:7px}.city190-dialog{width:calc(100vw - 20px);max-height:92dvh;border-radius:11px}.city190-dialog>header{padding:12px 15px}.city190-dialog h2{font-size:24px}.city190-dialog-body{padding:16px 15px}.city190-dialog h3{font-size:20px}.city190-dialog p{font-size:11px}.city190-welcome{display:block}.city190-welcome>img{width:100%;max-height:150px;aspect-ratio:1.9;object-fit:cover}.city190-upgrade{display:block;padding:13px}.city190-upgrade>button{max-width:none;width:100%;margin-top:12px;font-size:11px}.city190-courtyard{gap:6px;padding:15px 5px 10px}.city190-courtyard img{height:100px;width:18%}.city190-lab{gap:12px;align-items:flex-start}.city190-hero-preview{width:27%}.city190-hero-preview img{height:165px}.city190-hero-preview>span{font-size:8px}.city190-lab h3{font-size:21px}.city190-lab p{font-size:10px}.city190-lab button{font-size:10px;padding:9px;min-height:42px}.city190-lab select{font-size:12px}.city190-offers{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.city190-offers article{padding:13px 10px}.city190-offers h3{font-size:16px}.city190-offers button{font-size:9px;padding:8px 5px}.city190-construction{gap:12px}.city190-construction>img{height:165px;width:33%}.city190-construction h3{font-size:20px}.city190-practice{padding:7px}}
@media(max-height:650px) and (min-width:621px){.city190-summary{display:none}.city190-hud{padding-top:7px;padding-bottom:7px}.city190-buildings>button{min-height:42px}.city190-buildings{gap:5px;padding:9px}.city190-dock{padding:7px 16px}}
@media(prefers-reduced-motion:reduce){.city190-hotspot,.city190-built{transition:none}}
