@font-face{font-family:CitySerif;src:local('Palatino Linotype'),local('Palatino'),local('Book Antiqua');font-display:swap}
:root{color-scheme:dark;--navy:#122037;--deep:#0b1526;--gold:#d6b675;--gold-light:#f9e7b6;--cream:#f3e4c4;--muted:#b6b7c5;--border:#bb9555;--shadow:0 5px 24px #06102166;font-family:'Trebuchet MS',Arial,sans-serif;color:var(--cream);background:#101b2c}
*{box-sizing:border-box}body{margin:0;overflow:hidden;width:100%;height:100svh}button,input,select{font:inherit}button,select{cursor:pointer}button{color:inherit}button:focus-visible,select:focus-visible,a:focus-visible,[role=button]:focus-visible{outline:2px solid #fff1b8;outline-offset:5px}button:disabled{cursor:wait;opacity:.6}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round;flex-shrink:0}button{border:0;background:none}.icon-library{position:absolute;width:0;height:0;overflow:hidden}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.ornate{border:1px solid var(--border);background:linear-gradient(135deg,#263750ed,#101c30f5 70%);box-shadow:inset 0 0 0 3px #15233a,inset 0 0 0 4px #d7b87944,var(--shadow)}
.city-scroll{position:absolute;inset:0;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior:none;touch-action:pan-x}.city-scroll::-webkit-scrollbar{display:none}.scene-world{position:relative;width:max(100vw,177.684svh);height:max(100svh,56.28vw);top:50%;transform:translateY(-50%);isolation:isolate}.scene-art{position:absolute;width:100%;height:100%;inset:0;user-select:none;pointer-events:none}.scene-light{position:absolute;inset:0;background:linear-gradient(130deg,#fff6c606,transparent 48%,#5e2d9308);pointer-events:none}.edge-shade{position:fixed;inset:0;background:linear-gradient(180deg,#07102255,transparent 16%,transparent 80%,#061023a3);pointer-events:none}
#atmosphere{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.building-map{position:absolute;inset:0;width:100%;height:100%;overflow:visible;stroke-width:0;pointer-events:none}.building{pointer-events:visiblePainted;cursor:pointer;outline:none!important}.building path{fill:#ffd17a00;stroke:#ffe7a400;stroke-width:2.3;stroke-linejoin:round;transition:fill .25s,stroke .25s;vector-effect:non-scaling-stroke}.building:hover path,.building:focus-visible path,.building.is-selected path{fill:#ffc55818;stroke:#ffe5a1;filter:url(#gold-glow)}.building:active path{fill:#ffcc5c30}
.portal-aura{position:absolute;left:40.15%;top:23.4%;width:8.2%;height:14.5%;border-radius:50%;background:radial-gradient(ellipse,#c7b9ff22,transparent 68%);mix-blend-mode:screen;pointer-events:none;animation:breathe 4s ease-in-out infinite}.portal-aura i{position:absolute;inset:0;border:2px solid #b0baff86;border-radius:50%;box-shadow:0 0 15px #a5aaff, inset 0 0 15px #ae9cff;animation:portal-ring 6s ease-in-out infinite}.portal-aura i:nth-child(2){inset:12%;animation-delay:-2s;transform:rotate(-20deg)}.portal-aura i:nth-child(3){inset:26%;opacity:.4;animation-delay:-4s}.forge-aura{position:absolute;left:89%;top:59%;width:10%;height:14%;background:radial-gradient(ellipse,#ffc25777,#ff7f211a 45%,transparent 72%);mix-blend-mode:screen;animation:firelight 2.4s ease-in-out infinite;pointer-events:none}.water-shimmer{position:absolute;left:4%;top:87%;width:35%;height:11%;background:repeating-linear-gradient(172deg,transparent 0 14px,#c2f7ff22 15px,transparent 17px 28px);mask-image:radial-gradient(ellipse,#000,transparent 70%);animation:shimmer 7s linear infinite;mix-blend-mode:screen;pointer-events:none}
.topbar{position:fixed;left:110px;right:24px;top:22px;display:flex;align-items:center;gap:18px;pointer-events:none;z-index:5}.topbar>*{pointer-events:auto}.player-card{position:relative;width:285px;height:77px;display:flex;align-items:center;text-align:left;padding:10px 20px 10px 64px;border-radius:4px 17px 4px 17px;flex-shrink:0}.player-card:hover{border-color:var(--gold-light)}.avatar{position:absolute;left:-23px;top:-6px;width:84px;height:84px;border-radius:50%;border:2px solid var(--gold-light);background:#17233b url('/art/portrait-reference.webp') -4px -3px / 1180px auto;box-shadow:0 0 0 4px #142037,0 0 0 5px var(--border),0 4px 12px #09182b77}.avatar-level{position:absolute;bottom:-7px;left:26px;padding:2px 7px;border-radius:5px;border:1px solid var(--gold);background:#17243b;font-family:Georgia,serif;font-size:13px}.player-info{display:flex;flex-direction:column;gap:5px;flex:1}.player-name{font-family:CitySerif,Georgia,serif;font-size:24px;line-height:1;color:#f7e7c2;text-shadow:0 2px #0008;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:170px}.player-caption{font-size:9px;letter-spacing:1.8px;color:#d5bf94}.xp-track{height:5px;background:#080f1f;box-shadow:0 0 0 1px #977f5066;border-radius:3px;overflow:hidden;margin-top:2px}.xp-track i{display:block;height:100%;background:linear-gradient(90deg,#c89842,#f4df9e)}.player-chevron{font-family:Georgia,serif;font-size:24px;margin-left:10px;color:var(--gold)}
.resources{display:flex;gap:10px;margin-left:auto;align-self:flex-start;margin-top:6px}.currency{display:flex;align-items:center;gap:10px;border-radius:24px;height:38px;min-width:110px;padding:4px 15px 4px 5px;font-family:Georgia,serif;font-weight:bold;font-size:19px;white-space:nowrap;text-shadow:0 2px 3px #000}.currency small{font-size:14px;color:#cacbd2}.coin{display:grid;place-items:center;width:29px;height:29px;border-radius:50%;border:2px solid #f4d98c;background:linear-gradient(120deg,#d99832,#f6d77d);color:#946020;box-shadow:inset 0 0 0 2px #c88c2e,0 0 12px #f4c65933;font-size:19px}.gem{font-size:36px;line-height:24px;color:#d3a2ff;text-shadow:0 0 7px #ac62ff,1px 1px #fff}.bolt{font-size:41px;line-height:24px;color:#8ae3ff;text-shadow:0 0 8px #58c6f5}.utilities{display:flex;gap:9px;align-self:flex-start;margin-top:3px;align-items:center}.round-button{display:grid;place-items:center;width:42px;height:42px;border-radius:50%;border:1px solid var(--border);color:var(--gold-light);background:linear-gradient(135deg,#31435a,#111e34);box-shadow:inset 0 0 0 3px #11203999,0 3px 12px #07102466;transition:background .2s,transform .2s}.round-button:hover{background:linear-gradient(135deg,#485369,#1c2d47);transform:translateY(-1px)}.round-button svg{width:22px;height:22px}.music-button.is-on{box-shadow:0 0 15px #dbb77740,inset 0 0 0 3px #11203999;color:#fff0b7}.language-select select{color:var(--gold-light);background:#16243ae8;border:1px solid #ba9c6666;border-radius:5px;padding:8px 4px;font-size:11px;letter-spacing:1px;height:32px}.language-select option{background:#17243b}
.sidebar{position:fixed;left:17px;top:139px;width:77px;padding:10px 0 13px;border-radius:10px 10px 33px 33px;z-index:6}.nav-item{position:relative;width:100%;height:88px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#e7d1a2;transition:color .2s,background .2s}.nav-item svg{width:29px;height:29px;stroke-width:1.35}.nav-item span{font-family:Georgia,serif;font-size:10px;text-transform:uppercase;letter-spacing:.5px}.nav-item:not(:last-of-type):after{content:'◆';position:absolute;bottom:-4px;font-size:6px;color:#bfa36e;left:12px;right:12px;text-align:center;background:linear-gradient(90deg,transparent,#9e855f88,transparent) center/100% 1px no-repeat}.nav-item:hover{color:#fff5cf;background:#c7a66312}.nav-item.is-active{color:#ffedaf;background:radial-gradient(ellipse,#d8ba6d22,transparent 75%)}.nav-item.is-active:before{content:'';position:absolute;left:-1px;top:12px;bottom:12px;width:2px;background:#fce5a1;box-shadow:0 0 12px #ffd270}.nav-end{display:block;text-align:center;font-size:13px;color:var(--gold);margin-top:10px}
.daily-panel{position:fixed;right:25px;top:109px;width:274px;padding:14px 15px 12px;border-radius:3px 12px 3px 12px;z-index:4}.daily-panel h2{font-family:Georgia,serif;font-size:17px;font-weight:normal;text-transform:uppercase;display:flex;align-items:center;gap:9px;color:var(--gold-light);margin:0 0 7px;padding-bottom:9px;border-bottom:1px solid #c3a77555}.daily-panel h2 svg{width:25px;height:25px}.daily-note{font-size:10px;color:#c0bdc6;margin:0 0 10px;line-height:1.5}.daily-row{display:flex;align-items:center;gap:9px;padding:9px 0;color:#e5dfd4}.daily-row>svg{width:22px;height:22px;color:#ccb283}.daily-row>div{flex:1;min-width:0}.daily-row span{font-size:11px;line-height:1.4;display:block}.daily-row small{font-size:10px;color:#c8c4ba;white-space:nowrap;align-self:flex-end;margin-bottom:1px}.task-progress{height:4px;border:1px solid #6d6c7777;background:#091322;border-radius:4px;margin-top:7px}.task-progress i{display:block;width:0;height:100%}.preview-tag{display:flex;align-items:center;justify-content:center;gap:5px;letter-spacing:1.8px;font-size:8px;color:#baa782;border-top:1px solid #ccb17a22;padding-top:10px;margin-top:5px}.preview-tag i{width:4px;height:4px;border-radius:50%;background:#dbba77}
.city-footer{position:fixed;bottom:25px;left:120px;right:25px;display:flex;align-items:flex-end;pointer-events:none;gap:15px;z-index:3}.realm-label{position:relative;text-shadow:0 2px 10px #07162b,0 2px 3px #07162b99}.realm-rule{display:block;width:37px;height:1px;background:var(--gold);margin-bottom:12px;box-shadow:0 0 7px #ffdfa755}.realm-eyebrow{font-size:8px;letter-spacing:3px;color:#f0d59e}.realm-label h1{font-family:CitySerif,Georgia,serif;font-size:31px;font-weight:normal;margin:7px 0 6px;letter-spacing:.5px;color:#fff0d0}.realm-label p{font-size:11px;color:#f0e5d1;margin:0;letter-spacing:.2px}.daytime{display:flex;align-items:center;gap:7px;font-size:10px;color:#f0e6d3;position:absolute;right:53px;bottom:10px;text-shadow:0 1px 5px #12203c}.daytime svg{width:17px;height:17px;color:var(--gold-light)}.fullscreen-button{width:37px;height:37px;display:grid;place-items:center;border:1px solid #e0c48b66;border-radius:4px;color:#fce6b5;background:#10203a77;pointer-events:auto;margin-left:auto}.fullscreen-button svg{width:19px;height:19px}.mobile-hint{display:none}
.game-dialog{color:var(--cream);padding:0;width:min(510px,calc(100vw - 28px));max-height:calc(100svh - 30px);overflow-y:auto;border-radius:4px 22px 4px 22px;outline:none;scrollbar-width:thin;scrollbar-color:#a58a5d #15233b}.game-dialog::backdrop{background:#0711259c;backdrop-filter:blur(5px)}.game-dialog[open]{animation:dialog-in .22s ease-out}.dialog-close{position:absolute;right:13px;top:13px;z-index:3;width:33px;height:33px}.dialog-close svg{width:17px;height:17px}.dialog-art{height:177px;background-image:linear-gradient(0deg,#142138,transparent 65%),url('/art/city.webp');background-size:cover,1050px auto;border-radius:3px 20px 0 0;position:relative;overflow:hidden}.dialog-art:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#101a2c22,transparent 40%,#16243a)}.art-tavern{background-position:center,0 43%}.art-portal{background-position:center,48% 19%}.art-quests{background-position:center,49% 65%}.art-training{background-position:center,92% 35%}.art-arena{background-position:center,87% 2%}.art-forge{background-position:center,100% 67%}.panel-inner{padding:8px 35px 30px}.panel-inner.no-art{padding-top:35px}.panel-emblem{display:grid;place-items:center;width:52px;height:52px;border:1px solid #a98a50;border-radius:50%;margin:-40px 0 17px;background:#19283f;position:relative;box-shadow:0 0 0 5px #17243b}.panel-emblem svg{width:25px;height:25px;color:var(--gold-light)}.panel-eyebrow{font-size:8px;letter-spacing:1.8px;color:#c8ad77;line-height:1.8;margin:0 20px 8px 0}.panel-inner h2{font:normal 29px CitySerif,Georgia,serif;color:#f9e9c2;margin:4px 0 15px}.panel-description{font-size:13px;line-height:1.9;color:#d1d2da;margin-bottom:25px}.panel-divider{height:1px;background:linear-gradient(90deg,#a98a5077,transparent);margin:24px 0 18px}.soon-badge{font-size:10px;color:#e0c48b;display:inline-flex;align-items:center;gap:6px;background:#c7a86a0c;border:1px solid #c7a86a44;padding:7px 10px;border-radius:3px}.soon-badge:before{content:'✦';font-size:11px}.panel-note{font-size:11px;line-height:1.7;color:#aeb2c3}.gold-button{display:flex;justify-content:center;align-items:center;gap:9px;padding:11px 18px;width:100%;color:#1c2332;border:1px solid #e4ca95;background:linear-gradient(120deg,#d2b173,#f5dfac 50%,#ccb079);box-shadow:inset 0 0 0 3px #f7e6c144,0 4px 13px #0002;border-radius:3px;font-family:Georgia,serif;font-size:13px;margin-top:24px;min-height:42px}.gold-button:hover{filter:brightness(1.09)}.gold-button svg{width:16px;height:16px}.text-button{color:#e3c994;font-size:12px;padding:10px 0;text-decoration:underline;text-underline-offset:4px}.settings-row{display:flex;justify-content:space-between;align-items:center;gap:20px;padding:17px 0;border-bottom:1px solid #c2ad7d22}.settings-row label,.settings-name{font-size:13px;color:#f3e4c4}.settings-row p{font-size:11px;line-height:1.6;color:#aeb2c3;margin:5px 0 0}.switch{position:relative;width:42px;height:24px;border-radius:20px;border:1px solid #736b5d;background:#0d1728;flex-shrink:0;transition:background .2s}.switch:before{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;background:#acafba;border-radius:50%;transition:transform .2s}.switch[aria-checked=true]{background:#bb9854;border-color:#e3c58d}.switch[aria-checked=true]:before{transform:translateX(17px);background:#fff0cc}.volume-input{width:140px;accent-color:#dec28a;cursor:pointer;height:25px}.volume-value{font-size:10px;color:#cfbb94;min-width:28px}.settings-row select{background:#0e1a2d;color:#eeddb9;border:1px solid #8f7955;padding:7px;border-radius:4px;font-size:12px}.volume-wrap{display:flex;align-items:center;gap:8px}.track-name{display:flex;align-items:center;gap:6px;color:#c4ab7c!important;font-style:italic}.track-name svg{width:12px;height:12px}.auth-tabs{display:flex;gap:24px;margin:10px 0 22px;border-bottom:1px solid #b79a602f}.auth-tab{font-size:13px;padding:9px 0;color:#aeb2c3;border-bottom:2px solid transparent}.auth-tab.active{color:var(--gold-light);border-color:var(--gold)}.field{display:flex;flex-direction:column;gap:7px;margin:14px 0;font-size:12px;color:#e3d4b5}.field input{border:1px solid #8c775055;color:#f8eed8;background:#0e192cee;border-radius:4px;padding:11px;font-size:14px;min-width:0;outline:none}.field input:focus{border-color:#e5c789;box-shadow:0 0 0 2px #d5b47915}.field-hint{font-size:10px;line-height:1.6;color:#adafc0;margin-top:3px}.form-error{color:#ffbdba;font-size:12px;line-height:1.7;min-height:0;margin:0}.form-error:not(:empty){padding:10px;border:1px solid #ffb0a033;border-radius:4px;background:#ff785b0a}.auth-player{display:flex;align-items:center;gap:15px;margin:10px 0 24px;padding:16px;background:#0b17294d;border:1px solid #b59b6133}.auth-player-icon{width:45px;height:45px;color:var(--gold)}.auth-player-name{font:22px Georgia,serif;color:var(--gold-light)}.auth-player-caption{color:#adafc0;font-size:11px;margin-top:6px}.toast{position:fixed;bottom:30px;left:50%;transform:translate(-50%,15px);padding:12px 24px;z-index:20;font-size:12px;border-radius:5px;opacity:0;pointer-events:none;transition:opacity .2s,transform .2s;text-align:center;max-width:90vw}.toast.visible{opacity:1;transform:translate(-50%,0)}.noscript{position:fixed;top:40%;left:10%;right:10%;padding:30px;background:#111f35;z-index:99;text-align:center}
.effects-off .effect{animation:none!important;opacity:0}.effects-off #atmosphere{visibility:hidden}.tab-hidden .effect{animation-play-state:paused!important}
@keyframes breathe{0%,100%{opacity:.6;filter:brightness(1)}50%{opacity:1;filter:brightness(1.25)}}@keyframes portal-ring{0%,100%{transform:rotate(0) scale(.98);opacity:.3}50%{transform:rotate(12deg) scale(1.04);opacity:.7}}@keyframes firelight{0%,100%{opacity:.7;transform:scale(.96)}25%{opacity:1;transform:scale(1.04)}50%{opacity:.75}75%{opacity:.9}}@keyframes shimmer{to{background-position:100px 35px}}@keyframes dialog-in{from{opacity:0;transform:translateY(9px) scale(.985)}to{opacity:1;transform:translateY(0) scale(1)}}
@media(min-width:1700px){.topbar{left:125px;right:35px;top:28px}.sidebar{left:24px;top:160px;width:86px}.nav-item{height:98px}.nav-item span{font-size:11px}.daily-panel{right:35px;top:126px;width:300px;padding:17px 20px}.daily-row{padding:12px 0}.daily-row span{font-size:12px}.daily-panel h2{font-size:18px}.city-footer{left:135px;bottom:30px;right:35px}.player-card{width:307px;height:81px}.avatar{width:88px;height:88px}.player-name{font-size:25px;max-width:190px}.resources{gap:13px}.currency{min-width:123px}}
@media(max-height:780px) and (min-width:901px){.sidebar{top:120px}.nav-item{height:70px}.nav-item svg{width:25px;height:25px}.nav-item span{font-size:9px}.topbar{top:16px}.daily-panel{top:102px}.city-footer{bottom:20px}.realm-label h1{font-size:26px}}
@media(max-width:1150px){.topbar{gap:12px;left:102px;right:16px}.player-card{width:227px;padding-right:10px}.player-name{font-size:21px;max-width:135px}.avatar{width:75px;height:75px;top:0;background-size:1080px auto}.currency{min-width:88px;padding-right:10px;gap:6px;font-size:16px}.currency small{font-size:11px}.resources{gap:6px}.utilities{gap:6px}.round-button{width:36px;height:36px}.round-button svg{width:19px;height:19px}.daily-panel{right:16px;width:246px}.daily-row span{font-size:10px}.daily-panel h2{font-size:15px}}
@media(max-width:900px){.topbar{left:40px;right:15px;top:16px;flex-wrap:wrap;gap:12px}.player-card{width:218px;height:68px}.avatar{width:72px;height:72px;top:-4px;left:-25px;background-size:1040px auto}.player-name{font-size:20px}.player-caption{font-size:8px}.utilities{margin-left:auto;gap:7px}.resources{position:fixed;left:106px;top:99px;gap:7px;margin:0}.currency{height:31px;min-width:85px;font-size:14px;gap:6px}.coin{width:23px;height:23px;font-size:15px}.gem{font-size:28px}.bolt{font-size:32px}.currency small{font-size:10px}.sidebar{left:13px;top:108px;width:66px}.nav-item{height:79px}.nav-item span{font-size:8px}.nav-item svg{width:26px;height:26px}.daily-panel{top:150px;width:223px;padding:12px;right:15px}.daily-panel h2{font-size:14px}.daily-note{font-size:9px}.daily-row{gap:6px;padding:8px 0}.daily-row>svg{width:18px;height:18px}.city-footer{left:100px;bottom:25px;right:15px}.realm-label h1{font-size:26px}.realm-label p{font-size:10px}.realm-eyebrow{font-size:7px}}
@media(max-width:600px){.topbar{left:32px;right:12px;top:15px;gap:6px;align-items:flex-start}.player-card{width:191px;height:61px;padding-left:52px}.avatar{left:-22px;width:65px;height:65px;background-size:950px auto}.avatar-level{font-size:10px;left:20px;bottom:-6px}.player-name{font-size:18px;max-width:110px}.player-caption{font-size:7px;letter-spacing:1.3px}.player-chevron{font-size:20px;margin-left:3px}.utilities{gap:5px;margin-top:0;flex-wrap:wrap;justify-content:flex-end;max-width:132px}.round-button{width:32px;height:32px}.round-button svg{width:17px;height:17px}.utilities>button[data-panel=mail]{display:none}.language-select select{height:29px;font-size:10px;padding:5px 2px}.resources{top:91px;left:83px;right:12px;justify-content:flex-end;gap:6px}.currency{height:29px;min-width:76px;font-size:13px;padding-right:9px}.coin{width:21px;height:21px;font-size:13px}.gem{font-size:25px}.bolt{font-size:29px}.currency small{font-size:9px}.sidebar{left:10px;top:104px;width:57px;padding-top:4px;padding-bottom:9px;border-radius:6px 6px 26px 26px}.nav-item{height:73px;gap:7px}.nav-item svg{width:25px;height:25px}.nav-item span{font-size:7px;letter-spacing:0}.nav-end{font-size:10px;margin-top:8px}.daily-panel{display:none}.city-footer{left:83px;right:12px;bottom:22px;align-items:center}.realm-rule{width:25px;margin-bottom:9px}.realm-eyebrow{font-size:6px;letter-spacing:2px}.realm-label h1{font-size:23px;margin:7px 0 5px;max-width:230px}.realm-label p{display:none}.daytime{display:none}.fullscreen-button{width:31px;height:31px;align-self:flex-end}.mobile-hint{display:block;position:absolute;top:-28px;left:0;font-size:9px;color:#ffefd3;text-shadow:0 1px 5px #08182e}.game-dialog{max-height:calc(100svh - 24px)}.panel-inner{padding:8px 25px 24px}.panel-inner.no-art{padding-top:30px}.panel-inner h2{font-size:26px}.dialog-art{height:150px}.panel-description{font-size:12px}.settings-row{gap:10px}.volume-input{width:115px}.toast{bottom:100px}.edge-shade{background:linear-gradient(180deg,#07102277,transparent 25%,transparent 75%,#061023a3)}}
@media(max-height:650px) and (max-width:900px){.nav-item{height:56px}.nav-item svg{width:21px;height:21px}.nav-item span{font-size:7px}.nav-item{gap:5px}.realm-label{display:none}.mobile-hint{display:none}.daily-panel{display:none}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important;animation:none!important}.effect{opacity:.35}}
[hidden]{display:none!important}
