:root{--bg:#061021;--panel:#091729ed;--panel2:#0c1a30f5;--line:#3953769c;--gold:#eec780;--gold2:#b88b4c;--blue:#46c3ff;--future:#bb84ff;--txt:#f3f0e9;--muted:#afbacb;--green:#5be0a4;--red:#f66f79;--shadow:0 20px 60px #0009;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--txt)}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:var(--bg)}button,input{font:inherit}button{cursor:pointer}button:disabled{opacity:.4;cursor:not-allowed}button:focus-visible,input:focus-visible{outline:2px solid var(--blue);outline-offset:2px}.small{font-size:12px}.tiny{font-size:10px}.muted{color:var(--muted)}.gold{color:var(--gold)}.blue{color:var(--blue)}.green{color:var(--green)}.red{color:var(--red)}.future{color:var(--future)}.badge{border:1px solid #46617c;border-radius:6px;font-size:10px;text-transform:uppercase;padding:4px 7px;letter-spacing:.08em;color:var(--gold);background:#081628e9}.glow{box-shadow:0 0 18px #009dff57}.logo{font-family:Georgia,'Times New Roman',serif;letter-spacing:.105em;font-weight:800;color:#f5e4c4;text-shadow:0 2px 1px #542f14,0 0 20px #297ee484;font-size:25px;white-space:nowrap}.logo .aura{color:#b2e7ff;text-shadow:0 0 19px #35baff}.logo.big{font-size:clamp(36px,7vw,90px)}.loading{display:flex;min-height:100vh;justify-content:center;align-items:center;flex-direction:column;background:linear-gradient(#0009,#020915d9),url('/static/assets/hero.webp') center/cover}.loading p{color:var(--gold)}.welcome{min-height:100vh;display:grid;place-items:center;position:relative;background:linear-gradient(90deg,#020916e5 0%,#020916b5 50%,#02091662),url('/static/assets/hero.webp') center/cover;padding:20px}.welcome-box{width:min(100%,570px);border:1px solid #dfb87696;background:linear-gradient(165deg,#09162ae8,#030c19f7);box-shadow:var(--shadow);padding:clamp(24px,5vw,44px);border-radius:16px}.welcome-box h1{font-family:Georgia,serif;font-size:30px;line-height:1.15;font-weight:500}.welcome-box p{color:#c6cfda;line-height:1.7}.input{width:100%;padding:13px;background:#0a1729;color:#fff;border:1px solid #5c6e82;border-radius:7px;outline:none}.label{font-size:12px;color:var(--gold);letter-spacing:.1em;text-transform:uppercase;display:block;margin-bottom:9px}.btn{border-radius:7px;border:1px solid #547091;padding:11px 16px;background:#17304ce3;color:#e6f4ff;font-size:13px;font-weight:700;transition:.2s}.btn:hover:not(:disabled){filter:brightness(1.2);transform:translateY(-1px)}.btn.primary{background:linear-gradient(120deg,#b08345,#f0d69a 50%,#b88b48);color:#251509;border-color:#f3cf89;box-shadow:0 0 15px #efb65d25}.btn.blue-btn{background:linear-gradient(120deg,#14507c,#1791c3);border-color:#56c5ff}.btn.ghost{background:#0b1b2bbd}.btn.block{width:100%}.btn.danger{border-color:#b85162;color:#f5adad}.btn.sm{padding:6px 10px;font-size:11px}.app{display:flex;flex-direction:column;min-height:100vh;background:#061021}.header{height:69px;min-height:69px;display:flex;align-items:center;justify-content:space-between;padding:0 18px;gap:16px;background:linear-gradient(180deg,#081221,#061222fa);border-bottom:1px solid #b38c4f66;position:relative;z-index:20;box-shadow:0 7px 24px #0007}.head-left{display:flex;align-items:center;gap:12px;min-width:0}.head-left .avatar{width:42px;height:42px;display:grid;place-items:center;border:1px solid var(--gold2);border-radius:8px;background:linear-gradient(130deg,#4b3724,#102444);font-size:25px}.head-left .name{font-size:12px;font-weight:700;max-width:155px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.head-left .level{font-size:11px;color:var(--gold)}.brand{min-width:190px;text-align:center}.brand .tagline{font-family:Georgia,serif;font-size:8px;letter-spacing:.12em;color:#b4c4d4}.resources{display:flex;gap:6px;align-items:center;overflow-x:auto;scrollbar-width:none}.resources::-webkit-scrollbar{display:none}.resource{flex:0 0 auto;min-width:78px;padding:5px 8px;border:1px solid #304966;border-radius:6px;background:#0d1d33;display:flex;gap:6px;align-items:center}.resource .emoji{font-size:18px}.resource strong{display:block;font-size:12px;color:#fff;font-variant-numeric:tabular-nums}.resource small{display:block;color:var(--green);font-size:9px}.hud{display:grid;grid-template-columns:67px minmax(0,1fr);min-height:calc(100vh - 69px)}.rail{background:linear-gradient(180deg,#091c32,#06101f);border-right:1px solid #476079;display:flex;flex-direction:column;gap:7px;padding:15px 7px;align-items:stretch;z-index:3}.rail-btn{border:1px solid transparent;background:#071626af;color:#b9cfe1;border-radius:8px;min-height:62px;padding:8px 3px;display:grid;align-content:center;justify-items:center;gap:6px}.rail-btn span{font-size:21px}.rail-btn small{font-size:9px}.rail-btn.active{color:#f8d593;border-color:#d6b2767f;background:linear-gradient(180deg,#533921,#19243a);box-shadow:inset 0 0 20px #d79e4226}.rail-btn:hover{background:#213750}.main{position:relative;min-width:0;overflow:hidden;background:#061222}.stage{position:relative;min-height:min(740px,calc(100vh - 139px));background:#0b1b32;overflow:hidden}.stage-art{position:absolute;inset:0;background-position:center;background-size:cover;transition:background-image .25s;filter:saturate(1.04) contrast(1.04)}.stage:before{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#06102070 0%,transparent 22%,transparent 65%,#020918d9 100%),linear-gradient(90deg,#04101bb8 0%,transparent 21%,transparent 73%,#04101bb6 100%);pointer-events:none;z-index:1}.stage-title{position:absolute;z-index:2;top:17px;left:24px;pointer-events:none}.stage-title h1{font-family:Georgia,serif;font-size:27px;font-weight:500;text-transform:uppercase;letter-spacing:.06em;margin:0;text-shadow:0 3px 14px #001}.stage-title p{font-size:12px;color:#d4d7e1;text-shadow:0 2px 7px #000;margin:5px 0}.sidepanel{position:absolute;z-index:5;top:86px;bottom:115px;overflow-y:auto;scrollbar-width:thin;background:linear-gradient(160deg,#081729ee,#08152bf3);border:1px solid #61758a9a;box-shadow:var(--shadow);padding:15px 13px;border-radius:10px}.sidepanel.left{left:19px;width:278px}.sidepanel.right{right:19px;width:305px}.panel-title{font-family:Georgia,serif;font-size:17px;color:var(--gold);margin:0 0 12px;letter-spacing:.035em}.line{height:1px;background:linear-gradient(90deg,transparent,#b3935b,transparent);margin:12px 0}.mission{padding:9px 2px;display:flex;align-items:center;gap:9px;border-bottom:1px solid #34465b9b;font-size:12px}.mission .mission-label{flex:1}.mission .mission-label.complete{color:#bde9d8}.mission .check{color:var(--green);font-size:17px}.mission .uncheck{color:#718293;font-size:17px}.card{border:1px solid #506681;background:linear-gradient(140deg,#0c2135ee,#0a1729f5);border-radius:9px;padding:13px}.card h3{margin:0 0 6px;font-family:Georgia,serif;color:#f3dfbb;font-weight:500;font-size:18px}.card p{margin:6px 0;color:#bec9d6;line-height:1.5;font-size:12px}.row{display:flex;align-items:center;justify-content:space-between;gap:10px}.stack{display:grid;gap:9px}.progress-track{height:7px;border-radius:10px;background:#1a354e;overflow:hidden;border:1px solid #3b5266}.progress-track i{height:100%;background:linear-gradient(90deg,#b2864d,#f1d995);display:block;transition:width .5s}.stat{font-size:12px;display:flex;justify-content:space-between;margin:7px 0;color:#bfc7d3}.stat strong{color:#eaf7ff}.feature{display:grid;grid-template-columns:42px 1fr;gap:9px;align-items:center;padding:9px;border:1px solid #405470;border-radius:7px;background:#091b31}.feature .symbol{font-size:26px;text-align:center}.feature h4{margin:0 0 5px;font-size:13px;color:var(--gold)}.feature p{margin:0;font-size:11px;line-height:1.5;color:#b7c8d5}.era-bar{position:absolute;left:50%;transform:translateX(-50%);bottom:20px;display:flex;gap:8px;z-index:6;padding:7px;border:1px solid #8f794fb0;background:#061223eb;box-shadow:0 8px 35px #000a;border-radius:9px}.era-tab{display:flex;align-items:center;gap:10px;border:1px solid #465c72;background:#0d2439;color:#cbd7e4;border-radius:6px;padding:10px 18px;font-family:Georgia,serif;font-size:14px;white-space:nowrap;text-transform:uppercase;min-width:140px;justify-content:center}.era-tab.active.past{color:#ffe6b2;border-color:#e7ae57;box-shadow:inset 0 0 19px #dba75662,0 0 12px #b68a4d64}.era-tab.active.present{color:#b6f2ff;border-color:#55d1ff;box-shadow:inset 0 0 19px #4ccaff53,0 0 12px #13aaff5a}.era-tab.active.future{color:#eccfff;border-color:#bd83ff;box-shadow:inset 0 0 19px #a15afb5a,0 0 12px #a268fa72}.era-tab .symbol{font-size:22px}.hotspot{position:absolute;z-index:3;border:1px solid #d3b57a;background:#07172bdd;color:#fff;border-radius:7px;transform:translate(-50%,-50%);display:flex;align-items:center;gap:6px;padding:7px 9px;font-size:11px;white-space:nowrap;text-shadow:0 2px 4px #000;box-shadow:0 2px 14px #000b}.hotspot:hover,.hotspot.active{z-index:4;border-color:#f9de9b;background:#24415c;box-shadow:0 0 20px #e5c37e76}.hotspot .up{color:#74e8a7}.empty{color:#a5b4c5;font-size:12px}.timeline{margin:10px 0 4px;display:flex;align-items:center;justify-content:space-between;gap:4px}.timeline .time-dot{width:40px;height:40px;border:2px solid #d4a76a;border-radius:50%;display:grid;place-items:center;background:#272038;font-size:23px;box-shadow:0 0 22px #efad5070}.timeline .time-dot:nth-of-type(2){border-color:#35baff;box-shadow:0 0 22px #229de78a}.timeline .time-dot:last-child{border-color:#bd80ff;box-shadow:0 0 22px #8845ff91}.time-line{flex:1;height:3px;background:linear-gradient(90deg,#deaa55,#298ce6,#b278f5)}.full-overlay{position:relative;z-index:3;margin:92px auto 132px;max-width:1100px;padding:0 20px;display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.screen-image{border-radius:9px;border:1px solid #8798a655;width:100%;aspect-ratio:16/9;object-fit:cover}.overlay-shell{position:absolute;z-index:3;top:90px;bottom:125px;left:22px;right:22px;overflow-y:auto;display:grid;grid-template-columns:1fr 310px;gap:18px}.overlay-shell .board{background:#061325da;border:1px solid #536984a8;border-radius:9px;padding:18px;box-shadow:var(--shadow)}.overlay-shell .board h2{font-family:Georgia,serif;font-size:22px;font-weight:500;color:var(--gold);margin:0 0 12px}.news{font-size:12px;color:#c7d4df;padding:9px 0;border-bottom:1px solid #40506d}.news small{display:block;color:#889eb0;margin-top:4px}.tech-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.tech-card{border:1px solid #536682;background:linear-gradient(180deg,#112b44eb,#09192cf5);border-radius:9px;padding:13px}.tech-card h3{margin:7px 0;color:#f3e0c4;font-size:16px}.tech-card p{font-size:12px;color:#aebfd0;line-height:1.5;min-height:53px}.tech-card .circle{font-size:26px;display:grid;place-items:center;height:60px;width:60px;border:2px solid #d3ad72;border-radius:50%;margin:auto;background:#102d4a;box-shadow:0 0 15px #d5b17837}.count{font-size:11px;color:var(--gold)}.store-image{width:100%;max-height:140px;object-fit:cover;border-radius:5px}.info-box{font-size:12px;line-height:1.6;border-left:3px solid var(--gold);padding:10px;background:#0d2431e9;margin:12px 0}.notice{background:#0a2034;border:1px solid #537ca1;border-radius:8px;padding:10px 12px;font-size:12px;color:#c5d9e7}.chat{min-height:125px;max-height:215px;overflow-y:auto;background:#041221b8;border:1px solid #344f69;padding:8px;border-radius:6px}.chat-line{padding:6px 0;border-bottom:1px solid #24394a;font-size:12px;line-height:1.4}.chat-line b{color:var(--gold)}.inline-form{display:flex;gap:7px}.inline-form .input{min-width:0;flex:1}.toast-wrap{position:fixed;top:75px;right:17px;z-index:99;pointer-events:none;display:grid;gap:8px}.toast{padding:12px 18px;max-width:340px;background:#132b45ee;border:1px solid #52b3e3;border-radius:8px;color:#fff;box-shadow:var(--shadow);font-size:13px}.toast.bad{border-color:#ed6875}.modal-wrap{position:fixed;inset:0;z-index:60;background:#000c;display:grid;place-items:center;padding:20px}.modal{background:#07182b;border:1px solid #cca773;border-radius:12px;box-shadow:var(--shadow);padding:22px;width:min(100%,480px);max-height:85vh;overflow:auto}.modal h2{color:var(--gold);font-family:Georgia,serif;font-size:23px;font-weight:500}.modal-head{display:flex;align-items:center;justify-content:space-between}.modal .close{background:transparent;color:#fff;border:0;font-size:28px}.footer-note{position:absolute;bottom:96px;left:25px;z-index:3;font-size:10px;color:#a4b6c7;text-shadow:0 1px 3px #000}.meter{display:flex;align-items:center;gap:9px;font-size:12px;color:#b0c8da}.meter .progress-track{flex:1}.right-bottom{margin-top:12px}.hidden{display:none!important}.chip{display:inline-block;padding:5px 9px;border-radius:5px;background:#132b42;border:1px solid #3d5671;font-size:11px;color:#c7deef}.chip.selected{border-color:#e2bb73;color:#fce0a4}.divider{border:0;border-top:1px solid #49617a;margin:12px 0}.cols{display:grid;grid-template-columns:1fr 1fr;gap:10px}.sticky-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:10px}.top-actions{display:flex;align-items:center;gap:6px}.icon-button{display:grid;place-items:center;border:1px solid #52697b;border-radius:6px;background:#142a40;color:#e8ebf3;width:35px;height:35px;font-size:19px}.rank-row{display:flex;justify-content:space-between;padding:11px 6px;border-bottom:1px solid #3e536a;color:#e3e4e8;font-size:12px}.event-banner{font-family:Georgia,serif;color:var(--gold);font-size:18px}.portrait{width:48px;height:48px;display:grid;place-items:center;font-size:30px;background:#102b4b;border-radius:50%;border:1px solid #c19a60}.mobile-drawer{display:none}
@media(max-width:1250px){.brand{min-width:150px}.brand .logo{font-size:20px}.brand .tagline{font-size:7px}.resources{max-width:57vw}.sidepanel.left{width:240px;left:12px}.sidepanel.right{width:263px;right:12px}.sidepanel{padding:12px}.hotspot{font-size:10px}}
@media(max-width:900px){.header{height:98px;min-height:98px;align-items:flex-start;padding:7px 10px;flex-wrap:wrap;gap:3px}.head-left{order:1;width:calc(50% - 9px)}.head-left .name{max-width:125px}.head-left .avatar{width:32px;height:32px;font-size:18px}.brand{order:2;text-align:right;min-width:0;width:calc(50% - 9px)}.brand .logo{font-size:21px}.brand .tagline{font-size:6px}.resources{order:3;width:100%;max-width:100%;min-height:39px}.resource{min-width:69px;padding:4px 5px}.resource .emoji{font-size:15px}.resource strong{font-size:11px}.resource small{font-size:8px}.hud{display:block;min-height:calc(100vh - 98px)}.rail{position:fixed;bottom:0;left:0;right:0;z-index:30;height:76px;display:flex;flex-direction:row;padding:6px 5px max(6px,env(safe-area-inset-bottom));border-right:0;border-top:1px solid #8e754d;justify-content:space-around;background:#051226f6;gap:1px;overflow-x:auto}.rail-btn{min-width:52px;min-height:56px;padding:3px 5px;gap:2px}.rail-btn span{font-size:20px}.rail-btn small{font-size:9px}.main{padding-bottom:78px;overflow:visible}.stage{min-height:0;height:auto;overflow:visible;padding-bottom:1px}.stage-art{height:410px;inset:0 0 auto 0;background-position:center;background-size:cover}.stage:before{height:410px;bottom:auto}.stage-title{top:16px;left:15px}.stage-title h1{font-size:21px}.stage-title p{font-size:10px}.hotspot{padding:5px 7px;font-size:9px}.mobile-scene{position:relative;height:410px}.sidepanel{position:relative;top:auto;left:auto!important;right:auto!important;bottom:auto;width:auto!important;max-height:none;overflow:visible;margin:10px 10px 0;border-radius:9px}.sidepanel.left{order:2}.sidepanel.right{order:1}.mobile-panels{display:flex;flex-direction:column}.era-bar{position:absolute;top:344px;bottom:auto;width:calc(100% - 15px);justify-content:space-between;padding:5px;gap:3px}.era-tab{min-width:0;flex:1;padding:9px 5px;font-size:11px;gap:3px}.era-tab .symbol{font-size:15px}.footer-note{position:relative;left:auto;bottom:auto;margin:15px}.overlay-shell{position:relative;left:auto;right:auto;top:auto;bottom:auto;display:block;padding:0 10px;margin-top:68px;overflow:visible}.overlay-shell .board{margin-bottom:10px}.full-overlay{margin:0 10px 10px;padding:0;display:block}.full-overlay .card{margin:10px 0}.tech-grid{grid-template-columns:1fr}.stage.noncity .stage-art{height:300px}.stage.noncity:before{height:300px}.stage.noncity .mobile-scene{height:45px}.stage.noncity .era-bar{display:none}.stage.noncity .overlay-shell{margin-top:65px}.stage.noncity .footer-note{display:none}.screen-image{aspect-ratio:16/10}.cols{grid-template-columns:1fr}.toast-wrap{top:105px;right:10px}.toast{max-width:290px}.panel-title{font-size:16px}}
@media(min-width:901px) and (max-height:700px){.stage{min-height:580px}.sidepanel{bottom:95px}.era-bar{bottom:12px}}
@media(max-width:375px){.rail-btn{min-width:44px}.rail-btn small{font-size:8px}.head-left .name{max-width:90px}.era-tab{font-size:9px}.hotspot{font-size:8px}.brand .logo{font-size:18px}}


.welcome-box.premium{width:min(100%,980px);padding:clamp(22px,3vw,34px);background:linear-gradient(165deg,#081628ee,#06101bf7);backdrop-filter:blur(6px)}
.welcome-grid{display:grid;grid-template-columns:1.2fr .9fr;gap:22px;align-items:start}.welcome-left .eyebrow{display:inline-block;font-size:12px;letter-spacing:.18em;color:var(--gold);text-transform:uppercase;margin-bottom:12px}.welcome-left h1{font-size:clamp(32px,4.6vw,56px);margin:0 0 12px}.welcome-left .lead{font-size:15px;line-height:1.75;color:#d6deea;margin:0 0 16px}.hero-chips{display:flex;flex-wrap:wrap;gap:8px;margin:14px 0 18px}.hero-chip{padding:8px 12px;border-radius:999px;border:1px solid #5d7390;background:#0b1b2ecf;font-size:12px;color:#deebf7}.era-preview{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:18px}.era-card{min-height:120px;border:1px solid #587192;border-radius:12px;padding:14px;display:flex;flex-direction:column;justify-content:space-between;background:linear-gradient(180deg,#0b1b31d5,#081322f6);box-shadow:inset 0 0 18px #0003}.era-card h3{margin:0;font-family:Georgia,serif;font-size:17px}.era-card p{margin:6px 0 0;font-size:12px;line-height:1.5;color:#b8c8d7}.era-card.past{border-color:#d0a1588c}.era-card.present{border-color:#55c6ff7c}.era-card.future{border-color:#af7dff87}.welcome-right .panel-title{margin-bottom:10px}.cta-panel{border:1px solid #6b7d92;background:linear-gradient(160deg,#0b1a2ff0,#081322f2);padding:18px;border-radius:14px;box-shadow:var(--shadow)}.cta-note{margin-top:12px;font-size:12px;color:#b0c0d0;line-height:1.6}.quick-list{display:grid;gap:10px;margin-top:14px}.quick-row{display:grid;grid-template-columns:38px 1fr;gap:10px;align-items:center;border:1px solid #3f5670;border-radius:10px;padding:10px;background:#0b1a2ec7}.quick-row .ico{font-size:22px;text-align:center}.quick-row b{display:block;color:#f0dfb9;font-size:13px;margin-bottom:4px}.quick-row span{font-size:11px;color:#b9c6d6;line-height:1.45}.welcome-legal{margin-top:16px;padding-top:12px;border-top:1px solid #35506d}.screen-image{width:100%;display:block;border-radius:10px;border:1px solid #435d79;background:#081322;box-shadow:0 12px 30px #0007}.board h2{margin:0 0 10px;font-family:Georgia,serif;font-size:22px;font-weight:500;color:#f1ddb6}.news{padding:10px 0;border-bottom:1px solid #34485c;color:#d2dbe7;font-size:13px;line-height:1.6}.news:last-child{border-bottom:none}.hero-strip{display:flex;gap:10px;flex-wrap:wrap}.hero-strip .chip{background:#0a1a2e;border:1px solid #4a627f}.visual-note{margin-top:10px;font-size:12px;color:#aeb8c6}.footer-note{position:absolute;right:20px;bottom:88px;z-index:4;padding:7px 12px;border-radius:999px;background:#071321cc;border:1px solid #50647a;color:#d0d9e6;font-size:11px;backdrop-filter:blur(4px)}
@media (max-width:900px){.welcome-grid{grid-template-columns:1fr}.era-preview{grid-template-columns:1fr}.footer-note{right:10px;left:10px;bottom:86px;text-align:center}}

/* TIMEFALL v3: interactive building silhouettes, territory warfare and actual cosmetics */
.v3city .stage-art{animation:city-arrival .8s ease-out both}
@keyframes city-arrival{from{opacity:.72;transform:scale(1.025)}to{opacity:1;transform:scale(1)}}
.city-activity{position:absolute;z-index:4;left:24px;top:70px;color:#e7ddc5;font-size:11px;border:1px solid #e7c58055;background:#08182ddd;box-shadow:0 5px 20px #0009;border-radius:20px;padding:7px 12px}
.structure-hit{position:absolute;z-index:3;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:flex-end;width:132px;height:116px;background:transparent;border:0;padding:0;color:#fff;filter:drop-shadow(0 7px 8px #050b18);transition:filter .2s,transform .22s;touch-action:manipulation}
.structure-hit:hover,.structure-hit.chosen{transform:translate(-50%,-53%) scale(1.08);z-index:4;filter:drop-shadow(0 0 12px #ead7a4)}
.structure-hit:focus-visible{outline:2px solid #ffd98f;border-radius:12px}
.building-illustration{height:85px;width:110px;overflow:visible;filter:drop-shadow(1px 3px 1px #04101b);pointer-events:none}
.structure-hit.tier-2 .building-illustration{filter:drop-shadow(0 0 7px #eebd7380)}
.structure-hit.tier-3 .building-illustration{filter:drop-shadow(0 0 10px #78c6ff80)}
.structure-hit.tier-4 .building-illustration{filter:drop-shadow(0 0 17px #b49cffca)}
.structure-label{max-width:134px;display:flex;align-items:center;gap:4px;border:1px solid #bca477a6;background:linear-gradient(110deg,#08182ae9,#142f4bf5);box-shadow:0 4px 13px #000d;border-radius:6px;color:#f8f3e9;text-shadow:0 2px 4px black;padding:5px 7px;font-size:10px;white-space:nowrap;line-height:1.2}
.structure-label b{font-size:9px;color:#70e6b2}
.structure-hit.chosen .structure-label{border-color:#f4dc98;background:linear-gradient(110deg,#3e2b1aee,#223c54f5)}
.under-construction:after{content:' ';position:absolute;inset:4px 18px 20px;border:2px dashed #f6dc8d91;animation:scaffold 1.8s linear infinite;pointer-events:none;border-radius:9px}
@keyframes scaffold{50%{opacity:.3}}
.build-progress{position:absolute;top:-10px;background:#b18845;color:#160b08;border:1px solid #f6dfa9;font-weight:800;font-size:10px;padding:2px 6px;border-radius:5px}
.inspector-model{background:radial-gradient(circle at center,#233c56,#0a1526);border:1px solid #607c91;border-radius:10px;width:110px;height:95px;display:grid;place-items:center}
.inspector-model .building-illustration{width:98px;height:80px}
.skin-royal .structure-hit.chosen .structure-label{border-color:#ff9874;box-shadow:0 0 20px #fc665c9a}
.skin-royal .stage-art{filter:saturate(1.16) sepia(.10)}
.skin-steel .stage-art{filter:saturate(1.15) hue-rotate(7deg)}
.skin-steel .structure-hit.chosen .structure-label{box-shadow:0 0 24px #32c8ffbb}
.skin-nebula .stage-art{filter:saturate(1.26) hue-rotate(12deg)}
.skin-nebula .structure-hit.chosen .structure-label{box-shadow:0 0 22px #c079ffdd}
.world-stage .stage-art{filter:saturate(1.1)}
.map-arena{position:relative;height:clamp(300px,35vw,490px);background:linear-gradient(180deg,#06102329,#040b174f),url('/static/assets/world.webp') center/cover;border-radius:12px;border:1px solid #7b8fa7;overflow:hidden;box-shadow:0 12px 36px #0009}
.map-arena[data-era="past"]{background-position:center 14%}
.map-arena[data-era="present"]{background-position:center 51%}
.map-arena[data-era="future"]{background-position:center 88%}
.map-compass{position:absolute;right:14px;top:13px;background:#07172bcc;border:1px solid #516e94;border-radius:6px;color:#e9debc;padding:7px 12px;font-family:Georgia,serif}
.world-pin{position:absolute;display:flex;flex-direction:column;align-items:center;gap:4px;min-width:82px;transform:translate(-50%,-50%);background:transparent;border:0;color:#fff;text-shadow:0 2px 6px #000;cursor:pointer;transition:transform .2s;z-index:3}
.world-pin:hover,.world-pin.selected{transform:translate(-50%,-55%) scale(1.1);z-index:5}
.pin-emblem{width:42px;height:42px;display:grid;place-items:center;font-size:20px;background:radial-gradient(circle,#1d4252,#061422);border:2px solid #efd194;border-radius:50%;box-shadow:0 0 0 4px #071b3060,0 0 22px #eab96f80}
.world-pin.own .pin-emblem{border-color:#5be0a4;box-shadow:0 0 16px #39eaa9a6}
.world-pin.enemy .pin-emblem{border-color:#ef747c;box-shadow:0 0 16px #f3476aa6}
.world-pin.selected .pin-emblem{outline:2px solid white;outline-offset:5px}
.pin-text{background:#061829ed;padding:5px 7px;border:1px solid #4a6585;border-radius:6px;font-size:10px;font-weight:750;white-space:nowrap;display:grid;text-align:center}
.pin-text small{font-weight:400;color:#bcd5e6;font-size:9px}
.legend{display:flex;gap:12px;flex-wrap:wrap;color:#cfdeee;font-size:11px;margin:10px 0}
.territory-reports{margin-top:14px}
.territory-hero{position:relative;height:150px;overflow:hidden;border:1px solid #597393;border-radius:9px;margin:10px 0 14px}
.territory-hero img{width:100%;height:100%;object-fit:cover}
.territory-command .btn{margin-top:10px}
.territory-command .sticky-actions .btn{margin-top:0}
.time-choice-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:12px}
.time-choice{min-width:0;display:flex;flex-direction:column;border:1px solid #56718b;border-radius:11px;padding:14px;background:linear-gradient(160deg,#1a2b45e8,#09172bf5)}
.time-choice h3{font-family:Georgia,serif;font-size:17px;color:#eed39d;margin:6px 0}
.time-choice p{font-size:12px;color:#bfc9d5;line-height:1.55;flex:1;min-height:70px}
.time-choice .btn{margin-top:13px;font-size:11px}
.choice-illustration{height:95px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:8px;font-size:46px;background:radial-gradient(circle at 50% 70%,#254d75,#10162e 70%);border-radius:8px;border:1px solid #446787;box-shadow:inset 0 0 32px #8ca7ff26}
.choice-illustration span{font-size:11px;letter-spacing:.1em;color:#f6db99}
.causal-path{display:flex;align-items:center;gap:5px;justify-content:space-between;margin:14px 0;color:#c8a7f9}
.causal-node{display:grid;text-align:center;gap:6px;color:#e4cfaa;font-size:26px}
.causal-node b{font-size:12px}
.causal-node small{font-size:10px;color:#b1c6d7}
.research-era{margin-bottom:22px}.research-era-title{font-family:Georgia,serif;color:var(--era-accent);font-size:20px;font-weight:500;border-bottom:1px solid var(--era-accent);padding-bottom:7px}
.research-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.research-item{border:1px solid #4c6881;border-radius:9px;background:linear-gradient(#122a42ee,#09182af2);padding:12px;min-width:0;display:flex;flex-direction:column;gap:8px}
.research-item.researched{border-color:#4a9c86}
.research-icon{font-size:32px;display:grid;place-items:center;border-radius:50%;width:66px;height:66px;background:#133554;border:1px solid #9cbbd5;box-shadow:0 0 15px #548fee5b}
.research-item h4{color:#f3dfbb;font-size:15px;margin:0}
.research-item p{color:#b6c9d7;font-size:12px;line-height:1.5;flex:1;min-height:55px;margin:0}
.research-item .stat{margin:0;align-items:center;gap:8px}.research-item .stat b{white-space:nowrap;color:#e4d8b1}
.cosmetic-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cosmetic-item{border:1px solid #526d89;border-radius:10px;background:#091b30eb;overflow:hidden}
.cosmetic-art{position:relative;height:160px}
.cosmetic-art img{width:100%;height:100%;object-fit:cover}
.cosmetic-icon{position:absolute;bottom:6px;left:7px;font-size:28px;background:#071320ce;border:1px solid #dfa75b;border-radius:8px;padding:5px 12px}
.cosmetic-details{padding:12px}.cosmetic-details h3{font-family:Georgia,serif;color:#edcc93;font-size:17px;margin:0}.cosmetic-details p{color:#b8c9da;font-size:12px;min-height:44px}.cosmetic-details .btn{margin-top:12px}
@media (max-width:1250px){.structure-hit{width:103px;height:104px}.building-illustration{width:90px;height:72px}.structure-label{font-size:8px;max-width:112px}}
@media (max-width:1000px){.time-choice-grid,.research-cards{grid-template-columns:1fr}}
@media (max-width:900px){.city-activity{left:12px;top:57px;font-size:9px;max-width:70%;white-space:nowrap;overflow:hidden}.structure-hit{width:78px;height:88px}.building-illustration{height:60px;width:75px}.structure-label{font-size:8px;padding:3px 4px;max-width:95px}.structure-label b{font-size:7px}.world-stage .overlay-shell{margin-top:65px}.map-arena{height:360px}.world-pin{min-width:52px}.pin-emblem{width:34px;height:34px;font-size:16px}.pin-text{font-size:8px;max-width:77px;white-space:normal}.pin-text small{display:none}.cosmetic-grid{grid-template-columns:1fr}.research-cards{grid-template-columns:1fr}.time-choice-grid{grid-template-columns:1fr}.time-choice p{min-height:0}}
@media (prefers-reduced-motion: reduce){.v3city .stage-art,.under-construction:after{animation:none}.structure-hit{transition:none}}
.portal-active .era-bar{border-color:#ae8eff;box-shadow:0 0 27px #926aff8f, inset 0 0 25px #6338c355}
.portal-active .era-tab.active:before{content:'◉';color:#bba6ff;font-size:12px;filter:drop-shadow(0 0 6px #db89ff)}

/* TIMEFALL v4: interactive Chronicle Operations */
.operation-stage .stage-art{background-position:center 38%;filter:saturate(.9) brightness(.58)}
.operation-hero{height:230px;position:relative;overflow:hidden;border-radius:12px;border:1px solid #a58a5b;box-shadow:0 20px 35px #000a;margin:12px 0 18px}
.operation-hero img{width:100%;height:100%;object-fit:cover;object-position:center 50%}
.operation-hero:after{content:"";position:absolute;inset:0;background:linear-gradient(0deg,#020816f5 0%,transparent 60%)}
.operation-hero-title{position:absolute;z-index:1;left:18px;bottom:18px;display:grid;gap:7px;text-shadow:0 2px 6px #000}
.operation-hero-title b{font-family:Georgia,serif;color:#ffdc95;font-size:23px;letter-spacing:.08em}
.operation-hero-title span{font-size:12px;color:#eef3f7}
.chapter-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.chapter-step{min-width:0;border:1px solid #4a647f;border-radius:11px;overflow:hidden;background:linear-gradient(#0c2037,#081423);opacity:.7}
.chapter-step.current{border-color:var(--card-accent);opacity:1;box-shadow:0 0 20px #557ed544}
.chapter-step.complete{border-color:#5cbd98;opacity:.93}
.chapter-photo{height:94px;background-position:center;background-size:cover}
.chapter-meta{padding:11px}.chapter-meta h3{font-family:Georgia,serif;color:#f1dfbc;font-size:16px;margin:10px 0 4px}.chapter-meta p{font-size:11px;line-height:1.5;min-height:65px;color:#b8cadd;margin:6px 0}
.campaign-line{display:flex;justify-content:space-between;gap:8px;margin:14px 0;flex-wrap:wrap;color:#c8d6df;font-size:12px}
.tactics-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:10px 0}
.tactic-choice{min-width:0;display:flex;flex-direction:column;gap:6px;text-align:left;color:#e0eaf2;border-radius:8px;border:1px solid #4f6b83;padding:11px 9px;background:#0c2439;min-height:92px}
.tactic-choice.selected{border-color:#f4cf89;background:linear-gradient(135deg,#43341e,#152e46);box-shadow:0 0 18px #e4bd6c27}
.tactic-choice b{font-family:Georgia,serif;font-size:15px;color:#f1d49d}.tactic-choice span{font-size:11px;line-height:1.4;color:#bcd0de}
.battle-forecast{border:1px solid #537191;border-radius:9px;background:linear-gradient(125deg,#142c43ee,#0a1d30f0);padding:13px;margin:12px 0 15px;font-size:12px;color:#eaf1f6}
.battle-forecast.predicted-win{border-color:#468b77}.battle-forecast.predicted-loss{border-color:#ba7263}
.forecast-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-top:11px}.forecast-stats span{font-size:10px;color:#bdcfda;border-top:1px solid #435b70;padding-top:8px}.forecast-stats b{display:block;margin-top:4px;font-size:14px;color:#f0dfba}
.mission-launch{margin:12px 0}
.supply-banner{display:flex;gap:13px;align-items:center;border:1px solid #c3a56b;background:linear-gradient(110deg,#42301770,#0a2132);padding:16px 13px;border-radius:11px;margin:12px 0}.supply-banner strong{display:block;font-size:21px;font-family:Georgia,serif;color:#f2d99d;margin:5px 0}.supply-banner p{margin:0}
.supply-emblem{font-size:36px;filter:drop-shadow(0 0 16px #e0b05b88)}.reward-list{display:flex;flex-wrap:wrap;gap:8px;margin:13px 0}.reward-chip{display:inline-flex;gap:6px;padding:8px 10px;font-size:11px;background:#101f35;border:1px solid #516a85;border-radius:8px;color:#f2dcc0}
.scoreboard{display:grid;gap:4px}.score-entry{padding:9px 10px;border-radius:6px;display:flex;justify-content:space-between;gap:9px;border:1px solid #314d65;background:#0b1c2e;color:#d4e0ec;font-size:12px}.score-entry.self{border-color:#b89c63;background:#2b2b2e}.score-entry strong{color:#f3d193;font-variant-numeric:tabular-nums}
@media(max-width:1100px){.chapter-grid{grid-template-columns:1fr}.chapter-step{display:grid;grid-template-columns:115px 1fr}.chapter-photo{height:100%;min-height:116px}.chapter-meta p{min-height:0}}
@media(max-width:600px){.operation-hero{height:180px}.operation-hero-title b{font-size:18px}.tactics-grid{grid-template-columns:1fr}.tactic-choice{min-height:0}.forecast-stats{grid-template-columns:1fr 1fr}.campaign-line{display:grid}.chapter-step{grid-template-columns:90px 1fr}.chapter-meta h3{font-size:14px}}

.battle-report-overlay{position:fixed;inset:0;z-index:100;display:grid;place-items:center;background:#000c;backdrop-filter:blur(9px);padding:16px;animation:modal-appear .18s ease-out}
@keyframes modal-appear{from{opacity:0;transform:scale(.98)}to{opacity:1;transform:scale(1)}}
.battle-report-dialog{position:relative;width:min(100%,530px);border:1px solid #b8955c;border-radius:16px;box-shadow:0 30px 100px #000e,0 0 48px #daa34e20;background:linear-gradient(#11253b,#081323);overflow:hidden}
.battle-report-visual{height:195px;position:relative;overflow:hidden}.battle-report-visual img{width:100%;height:100%;object-fit:cover;filter:saturate(.95)}.battle-report-visual:after{position:absolute;inset:0;content:"";background:linear-gradient(0deg,#081323,transparent 65%)}
.report-result{position:absolute;z-index:1;left:22px;bottom:10px;font-size:37px;font-family:Georgia,serif;font-weight:bold;text-shadow:0 3px 14px #000;letter-spacing:.06em}
.report-result.success{color:#ffe0a3}.report-result.defeat{color:#f5a3a6}
.report-close{position:absolute;right:12px;top:12px;z-index:3;background:#030b1bcc;color:#fff;border:1px solid #8191a7;border-radius:9px;width:40px;height:40px;font-size:22px}
.report-body{padding:18px 22px 22px}.report-body h2{margin:5px 0 10px;font-family:Georgia,serif;font-weight:500;color:#f9e5bf;font-size:28px}.report-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin:19px 0}.report-stats>div{display:grid;gap:9px;padding:10px;border:1px solid #49627a;border-radius:8px;background:#0b1b30;text-align:center}.report-stats span{font-size:11px;color:#a9bbca}.report-stats b{font-size:19px}
@media(max-width:600px){.battle-report-visual{height:145px}.report-result{font-size:29px}.report-stats{gap:5px}.report-body{padding:15px}.report-stats>div{padding:7px 3px}.report-stats span{font-size:9px}}
@media(max-width:900px){.operation-stage .stage-title{left:15px;right:12px}.operation-stage .stage-title h1{font-size:19px;max-width:100%;white-space:normal;overflow-wrap:break-word;line-height:1.18}.operation-stage .stage-title p{font-size:11px;max-width:275px;line-height:1.3}}

/* V4 scenic building selectors: the art stays unobstructed; the selection markers remain interactive. */
.v3city .structure-hit{width:120px;height:67px;justify-content:center;gap:3px;filter:drop-shadow(0 5px 5px #000b)}
.v3city .structure-beacon{width:33px;height:33px;border:2px solid #e0bb73;background:radial-gradient(circle at 40% 30%,#325978,#081626);box-shadow:0 0 16px #eed3a370,0 0 0 3px #02091575;border-radius:50%;display:grid;place-items:center;font-size:17px;transition:transform .2s,box-shadow .2s}
.v3city .structure-hit:hover .structure-beacon,.v3city .structure-hit.chosen .structure-beacon{transform:scale(1.12);box-shadow:0 0 27px #dabc68ba,0 0 0 5px #061422a6}
.v3city .structure-hit.tier-2 .structure-beacon{border-color:#8cdcf2;box-shadow:0 0 20px #54c8ff7f}
.v3city .structure-hit.tier-3 .structure-beacon{border-color:#c5a0fc;box-shadow:0 0 22px #af75ff91}
.v3city .structure-hit.tier-4 .structure-beacon{border-color:#f8dc9c;box-shadow:0 0 27px #f3e0a5b4}
.v3city .structure-label{font-size:9px;padding:4px 6px;max-width:120px}
.v3city .under-construction:after{inset:-3px 32px 20px;border-radius:50%;border-style:dashed}
.v3city .build-progress{top:-24px}
.inspector-photo{height:145px;overflow:hidden;position:relative;border:1px solid #7094aa;border-radius:9px;background:#081828;box-shadow:0 8px 20px #0008;margin-bottom:5px}
.inspector-photo img{width:100%;height:100%;display:block;object-fit:cover}
.inspector-photo:after{content:'';position:absolute;inset:0;background:linear-gradient(0deg,#061422e8,transparent 49%)}
.inspector-photo-caption{position:absolute;bottom:9px;left:10px;z-index:1;color:#ffdea1;text-shadow:0 2px 7px #000;font-size:10px;letter-spacing:.06em}
@media(max-width:900px){.v3city .structure-hit{width:92px;height:62px}.v3city .structure-beacon{width:28px;height:28px;font-size:14px}.v3city .structure-label{font-size:8px;max-width:98px}}


/* --- Advanced troop animations --- */
.troop-layer{position:absolute;inset:0;pointer-events:none;z-index:2;overflow:hidden}
.troop-layer.city{z-index:2}.troop-layer.battle{z-index:1;inset:8px 10px 10px;border-radius:16px}
.troop{position:absolute;width:36px;height:36px;transform-origin:center center;filter:drop-shadow(0 10px 14px rgba(0,0,0,.35))}
.troop .troop-shadow{position:absolute;left:8px;right:8px;bottom:2px;height:8px;border-radius:50%;background:rgba(0,0,0,.36);filter:blur(2px);animation:shadowPulse 1.8s ease-in-out infinite}
.troop .troop-core{position:absolute;inset:0;border-radius:12px;border:1px solid rgba(255,255,255,.28);background:radial-gradient(circle at 40% 35%,rgba(255,255,255,.92),rgba(255,255,255,.18) 30%,transparent 31%),linear-gradient(180deg,rgba(255,255,255,.22),rgba(0,0,0,.18));box-shadow:0 0 16px rgba(255,201,107,.22)}
.troop .troop-trail{position:absolute;left:50%;bottom:-4px;width:2px;height:18px;border-radius:999px;opacity:.7;transform:translateX(-50%)}
.troop-layer.past .troop.inf .troop-core,.troop-layer.past .troop.archer .troop-core,.troop-layer.past .troop.cav .troop-core{background-color:#a44d31}
.troop-layer.present .troop.inf .troop-core{background-color:#2d7db0}.troop-layer.present .troop.tank .troop-core{background-color:#646f7a}.troop-layer.present .troop.medic .troop-core{background-color:#3ea17e}
.troop-layer.future .troop.drone .troop-core{background-color:#7e63ff}.troop-layer.future .troop.mech .troop-core{background-color:#4ac5ff}.troop-layer.future .troop.blade .troop-core{background-color:#d05fff}
.troop.inf .troop-core::before,.troop.archer .troop-core::before,.troop.cav .troop-core::before,.troop.tank .troop-core::before,.troop.drone .troop-core::before,.troop.mech .troop-core::before,.troop.blade .troop-core::before,.troop.medic .troop-core::before{content:'';position:absolute;left:50%;top:7px;transform:translateX(-50%);width:10px;height:10px;border-radius:50%;background:rgba(255,244,229,.95)}
.troop.inf .troop-core::after,.troop.archer .troop-core::after,.troop.cav .troop-core::after,.troop.medic .troop-core::after,.troop.blade .troop-core::after{content:'';position:absolute;left:50%;top:16px;transform:translateX(-50%);width:16px;height:12px;border-radius:8px 8px 10px 10px;background:rgba(255,234,205,.8)}
.troop.archer .troop-trail{background:linear-gradient(180deg,rgba(255,199,99,.9),transparent)}
.troop.cav .troop-core{clip-path:polygon(20% 18%,80% 18%,100% 52%,83% 100%,17% 100%,0 52%)}
.troop.tank .troop-core{border-radius:8px}.troop.tank .troop-core::after{content:'';position:absolute;left:6px;right:6px;bottom:7px;height:6px;border-radius:6px;background:#202933}.troop.tank .troop-trail{background:linear-gradient(180deg,rgba(87,200,255,.85),transparent)}
.troop.drone .troop-core{border-radius:50%;box-shadow:0 0 22px rgba(128,97,255,.4)}.troop.drone .troop-core::after{content:'';position:absolute;left:-5px;right:-5px;top:16px;height:3px;background:linear-gradient(90deg,transparent,#d7d1ff,transparent)}
.troop.mech .troop-core::after{content:'';position:absolute;left:7px;right:7px;bottom:6px;height:8px;background:#d4e7ff;border-radius:5px}.troop.mech .troop-trail{background:linear-gradient(180deg,rgba(74,197,255,.9),transparent)}
.troop.blade .troop-trail{background:linear-gradient(180deg,rgba(208,95,255,.88),transparent)}
.troop.medic .troop-core::after{content:'+';position:absolute;left:50%;top:14px;transform:translateX(-50%);font-weight:800;font-size:12px;color:#0a2330}
.troop.pos-1{left:12%;top:62%;animation:marchA 7s linear infinite}.troop.pos-2{left:27%;top:70%;animation:marchB 8s linear infinite}.troop.pos-3{left:72%;top:58%;animation:marchC 7.5s linear infinite}
.troop.scope-city.pos-1{animation-duration:10s}.troop.scope-city.pos-2{animation-duration:11s}.troop.scope-city.pos-3{animation-duration:9s}
.troop.scope-battle.pos-1{left:18%;top:64%}.troop.scope-battle.pos-2{left:48%;top:55%}.troop.scope-battle.pos-3{left:76%;top:63%}
.battle-sim{position:relative;height:220px;margin:14px 0 16px;border-radius:16px;overflow:hidden;border:1px solid rgba(117,146,172,.42);background:linear-gradient(180deg,rgba(3,12,25,.7),rgba(7,20,38,.95));box-shadow:inset 0 0 40px rgba(0,0,0,.35)}
.battle-sim .battle-backdrop{position:absolute;inset:0;background:radial-gradient(circle at 20% 20%,rgba(255,190,100,.13),transparent 32%),radial-gradient(circle at 75% 30%,rgba(89,180,255,.16),transparent 30%),linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,0) 35%),linear-gradient(180deg,#13253b 0%,#0c182a 55%,#08111e 100%)}
.battle-sim.past .battle-backdrop{background:radial-gradient(circle at 20% 22%,rgba(255,175,97,.18),transparent 34%),linear-gradient(180deg,#56402d 0%,#2c1f16 45%,#0e121c 100%)}
.battle-sim.present .battle-backdrop{background:radial-gradient(circle at 72% 20%,rgba(100,198,255,.18),transparent 30%),linear-gradient(180deg,#33475e 0%,#172536 48%,#0b121a 100%)}
.battle-sim.future .battle-backdrop{background:radial-gradient(circle at 70% 18%,rgba(172,129,255,.25),transparent 34%),linear-gradient(180deg,#2c2348 0%,#171930 52%,#0a0f18 100%)}
.battle-overlay-text{position:absolute;left:18px;right:18px;bottom:14px;display:flex;justify-content:space-between;gap:18px;align-items:flex-end;z-index:3}.battle-overlay-text b{font-size:15px;color:#f2ddb7;letter-spacing:.05em}.battle-overlay-text span{font-size:12px;color:#b8cad9;text-align:right;max-width:280px}
.battle-fx .slash,.battle-fx .projectile,.battle-fx .impact{position:absolute;pointer-events:none}
.battle-fx .slash{width:58px;height:4px;background:linear-gradient(90deg,transparent,#fff4cf,transparent);opacity:.7;filter:blur(1px)}
.battle-fx .slash.one{left:42%;top:47%;transform:rotate(-23deg);animation:slashFlash 1.8s ease-in-out infinite}
.battle-fx .slash.two{left:56%;top:53%;transform:rotate(18deg);animation:slashFlash 1.8s ease-in-out .5s infinite}
.battle-fx .projectile{width:88px;height:2px;background:linear-gradient(90deg,rgba(255,216,146,.05),rgba(255,216,146,.9),rgba(255,216,146,.05));top:34%}
.battle-fx .projectile.one{left:18%;animation:projectileFly 2.4s linear infinite}
.battle-fx .projectile.two{left:58%;top:40%;animation:projectileFlyBack 2.8s linear infinite}
.battle-fx .impact{width:40px;height:40px;border-radius:50%;left:50%;top:45%;transform:translate(-50%,-50%);border:2px solid rgba(255,226,165,.9);box-shadow:0 0 24px rgba(255,210,129,.4);animation:impactPulse 1.8s ease-out infinite}
.march-route{position:absolute;left:8%;right:8%;bottom:10%;height:70px;z-index:2;pointer-events:none}.route-line{position:absolute;left:9%;right:12%;top:50%;height:2px;background:linear-gradient(90deg,rgba(255,235,179,.1),rgba(255,235,179,.85),rgba(124,194,255,.85),rgba(124,194,255,.08));box-shadow:0 0 14px rgba(106,184,255,.22)}
.route-node{position:absolute;top:50%;width:14px;height:14px;border-radius:50%;transform:translateY(-50%);background:#f7d18d;box-shadow:0 0 14px rgba(255,216,151,.45)}.route-node.end{right:10%;background:#6dc6ff;box-shadow:0 0 14px rgba(109,198,255,.45)}.route-node.start{left:7%}
.route-scout{position:absolute;top:50%;width:18px;height:18px;border-radius:50%;transform:translate(-50%,-50%);background:radial-gradient(circle at 35% 35%,#fff,#f1cb81 42%,#7ebdff 75%,transparent 76%);filter:drop-shadow(0 0 10px rgba(255,218,154,.35))}
.route-scout.one{left:18%;animation:routeMove 4.8s linear infinite}.route-scout.two{left:18%;animation:routeMove 4.8s linear 2.1s infinite}
.route-label{position:absolute;right:0;top:-4px;padding:6px 10px;border-radius:999px;background:rgba(5,16,31,.82);border:1px solid rgba(98,123,149,.55);font-size:11px;color:#d9e4ee}
@keyframes marchA{0%{transform:translate(0,0)}25%{transform:translate(18px,-6px)}50%{transform:translate(35px,4px)}75%{transform:translate(16px,10px)}100%{transform:translate(0,0)}}
@keyframes marchB{0%{transform:translate(0,0)}33%{transform:translate(16px,-10px)}66%{transform:translate(8px,7px)}100%{transform:translate(0,0)}}
@keyframes marchC{0%{transform:translate(0,0)}30%{transform:translate(-14px,6px)}60%{transform:translate(-30px,-4px)}100%{transform:translate(0,0)}}
@keyframes shadowPulse{0%,100%{transform:scale(1);opacity:.35}50%{transform:scale(.82);opacity:.2}}
@keyframes slashFlash{0%,100%{opacity:0;transform:scaleX(.3) rotate(-23deg)}35%,65%{opacity:.92;transform:scaleX(1) rotate(-23deg)}}
@keyframes projectileFly{0%{transform:translateX(0) rotate(10deg);opacity:0}18%{opacity:1}100%{transform:translateX(340px) rotate(10deg);opacity:0}}
@keyframes projectileFlyBack{0%{transform:translateX(0) rotate(-8deg);opacity:0}18%{opacity:1}100%{transform:translateX(-250px) rotate(-8deg);opacity:0}}
@keyframes impactPulse{0%{transform:translate(-50%,-50%) scale(.2);opacity:.8}75%{transform:translate(-50%,-50%) scale(1.4);opacity:0}100%{opacity:0}}
@keyframes routeMove{0%{left:18%;opacity:0}10%{opacity:1}90%{opacity:1}100%{left:85%;opacity:0}}
@media (max-width:900px){.battle-sim{height:190px}.battle-overlay-text{flex-direction:column;align-items:flex-start}.battle-overlay-text span{text-align:left;max-width:none}.route-label{max-width:160px;line-height:1.35}}


/* --- Full battle scene and hero animations --- */
.hero-showcase{margin-top:14px;border:1px solid rgba(84,108,132,.55);border-radius:16px;padding:14px;background:linear-gradient(180deg,rgba(7,18,31,.86),rgba(6,12,22,.96))}
.hero-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:10px}.hero-card{border:1px solid rgba(80,103,127,.45);border-radius:14px;padding:10px;background:linear-gradient(180deg,rgba(10,25,43,.95),rgba(5,12,23,.98));display:grid;grid-template-columns:90px 1fr;gap:12px;align-items:center}.hero-card.selected{border-color:rgba(236,194,124,.7);box-shadow:0 0 0 1px rgba(236,194,124,.2),0 10px 26px rgba(0,0,0,.24)}
.hero-portrait{position:relative;height:96px;border-radius:14px;overflow:hidden;background:radial-gradient(circle at 50% 35%,rgba(255,255,255,.28),transparent 36%),linear-gradient(180deg,#20324a,#0a1424);display:flex;align-items:center;justify-content:center}
.hero-portrait::before{content:'';position:absolute;inset:auto 12px 8px;height:26px;border-radius:50%;background:rgba(0,0,0,.28);filter:blur(6px)}
.hero-crown{position:relative;z-index:2;font-size:38px;animation:heroFloat 3.2s ease-in-out infinite}.hero-glow{position:absolute;inset:15px;border-radius:50%;background:radial-gradient(circle,rgba(255,230,173,.45),transparent 64%);animation:glowPulse 2.4s ease-in-out infinite}.hero-aura{position:absolute;inset:-20%;background:conic-gradient(from 0deg,rgba(255,205,124,.15),transparent 18%,rgba(116,192,255,.15),transparent 42%,rgba(195,112,255,.16),transparent 67%,rgba(255,205,124,.15));animation:spin 8s linear infinite}
.hero-portrait.arslan{background:radial-gradient(circle at 50% 35%,rgba(255,211,145,.25),transparent 40%),linear-gradient(180deg,#4b2f23,#1c1412)}.hero-portrait.selene{background:radial-gradient(circle at 50% 35%,rgba(237,200,140,.22),transparent 38%),linear-gradient(180deg,#284250,#121d2d)}.hero-portrait.vektor{background:radial-gradient(circle at 50% 35%,rgba(108,197,255,.22),transparent 38%),linear-gradient(180deg,#23384e,#121a26)}.hero-portrait.mira{background:radial-gradient(circle at 50% 35%,rgba(86,244,193,.2),transparent 38%),linear-gradient(180deg,#214445,#101d22)}.hero-portrait.nyx{background:radial-gradient(circle at 50% 35%,rgba(196,125,255,.25),transparent 39%),linear-gradient(180deg,#36234c,#140f25)}.hero-portrait.aion{background:radial-gradient(circle at 50% 35%,rgba(107,201,255,.23),transparent 39%),linear-gradient(180deg,#233f50,#121824)}
.hero-meta{display:flex;flex-direction:column;gap:6px}.hero-meta b{color:#f4ddb3}.hero-meta small{color:#b4c2d3}.hero-ability-panel{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-top:12px;padding-top:12px;border-top:1px solid rgba(78,99,122,.35)}.hero-ability-panel span{display:block;color:#aebfd0;font-size:12px}.hero-chip{display:flex;align-items:center;gap:8px;padding:8px 10px;border:1px solid rgba(78,102,126,.45);border-radius:999px;background:#0a1524;color:#dce5ef}.hero-chip.active{border-color:#e4bb78;box-shadow:0 0 0 1px rgba(228,187,120,.2)}.hero-chip-icon{font-size:20px}
.battle-scene-overlay{position:fixed;inset:0;z-index:60;background:rgba(3,7,13,.85);backdrop-filter:blur(6px);padding:20px;display:grid;place-items:center}.battle-scene-dialog{width:min(96vw,1480px);height:min(92vh,920px);display:grid;grid-template-columns:1.65fr .9fr;gap:16px;background:linear-gradient(180deg,#08111d,#050b14);border:1px solid rgba(102,126,154,.55);border-radius:24px;box-shadow:0 30px 90px rgba(0,0,0,.6);overflow:hidden;position:relative}
.battle-scene-stage{position:relative;overflow:hidden;background:linear-gradient(180deg,#1b2a40,#0b1520 68%,#091019)}.battle-scene-sky{position:absolute;inset:0;background:radial-gradient(circle at 20% 18%,rgba(255,200,122,.22),transparent 22%),radial-gradient(circle at 78% 20%,rgba(90,177,255,.18),transparent 28%),linear-gradient(180deg,rgba(255,255,255,.08),transparent 32%)}.battle-scene-dialog.future .battle-scene-sky{background:radial-gradient(circle at 18% 18%,rgba(163,103,255,.26),transparent 24%),radial-gradient(circle at 82% 22%,rgba(87,213,255,.18),transparent 28%),linear-gradient(180deg,rgba(255,255,255,.08),transparent 32%)}
.battle-scene-ground{position:absolute;left:0;right:0;bottom:0;height:34%;background:linear-gradient(180deg,#203024 0%,#17231b 30%,#0d1410 100%)}.battle-scene-dialog.present .battle-scene-ground{background:linear-gradient(180deg,#353c41 0%,#1c2125 36%,#0e1116 100%)}.battle-scene-dialog.future .battle-scene-ground{background:linear-gradient(180deg,#2b2540 0%,#151925 34%,#0b0e15 100%)}
.fortress-wall{position:absolute;left:55%;right:4%;bottom:28%;height:33%;border-radius:16px 16px 0 0;background:linear-gradient(180deg,#8f8170,#5f574a 45%,#473f34);box-shadow:0 -12px 24px rgba(0,0,0,.18)}.battle-scene-dialog.present .fortress-wall{background:linear-gradient(180deg,#7f8d98,#4d5760 45%,#353d43)}.battle-scene-dialog.future .fortress-wall{background:linear-gradient(180deg,#6258a1,#3b3767 45%,#252748)}
.fortress-wall::before{content:'';position:absolute;left:0;right:0;top:0;height:18px;background:repeating-linear-gradient(90deg,rgba(255,255,255,.18) 0 24px,transparent 24px 32px)}
.wall-gate{position:absolute;left:26%;bottom:0;width:24%;height:48%;border-radius:18px 18px 0 0;background:linear-gradient(180deg,#2e1c14,#140b09);box-shadow:inset 0 0 0 3px rgba(0,0,0,.22)}.battle-scene-dialog.future .wall-gate{background:linear-gradient(180deg,#1f254e,#0f1432)}
.wall-crack{position:absolute;left:34%;top:36%;width:8px;height:58px;background:linear-gradient(180deg,transparent,#ffdb93,#ff7a4b,transparent);opacity:0;filter:blur(1px)}
.banner{position:absolute;top:14%;width:18px;height:52px;background:linear-gradient(180deg,#c63434,#741818);clip-path:polygon(0 0,100% 0,88% 76%,100% 100%,0 88%)}.banner.left{left:10%}.banner.right{right:10%}.battle-scene-dialog.future .banner{background:linear-gradient(180deg,#8967ff,#5028a7)}
.siege-engine{position:absolute;left:20%;bottom:21%;width:120px;height:72px;opacity:.95}.siege-engine.ram::before{content:'';position:absolute;inset:18px 8px 12px;background:linear-gradient(180deg,#83582a,#462b11);border-radius:22px;transform-origin:left center}.siege-engine.ram::after{content:'';position:absolute;left:70px;top:28px;width:58px;height:14px;background:linear-gradient(180deg,#7a5332,#311b0d);border-radius:8px}.siege-engine.tower{left:34%;width:90px;height:150px;bottom:22%}.siege-engine.tower::before{content:'';position:absolute;left:18px;right:18px;bottom:0;top:20px;background:linear-gradient(180deg,#735d3f,#3f3123);border:2px solid rgba(243,208,147,.35)}.siege-engine.tower::after{content:'';position:absolute;left:10px;right:10px;top:0;height:32px;background:linear-gradient(180deg,#4d3525,#27180d);clip-path:polygon(0 100%,50% 0,100% 100%)}
.battle-scene-dialog.present .siege-engine.ram::before,.battle-scene-dialog.present .siege-engine.tower::before{background:linear-gradient(180deg,#6f7982,#394047)}.battle-scene-dialog.future .siege-engine.ram::before,.battle-scene-dialog.future .siege-engine.tower::before{background:linear-gradient(180deg,#756eff,#2d2d5e)}
.battle-scene-dialog.phase-skirmish .troop-layer.battle .troop{animation-duration:4s}.battle-scene-dialog.phase-siege .siege-engine.ram{animation:ramAdvance 2.8s ease-in-out infinite}.battle-scene-dialog.phase-siege .siege-engine.tower{animation:towerAdvance 5s ease-in-out infinite}.battle-scene-dialog.phase-breach .wall-crack{opacity:1;animation:crackBlink 1.1s ease-in-out infinite}.battle-scene-dialog.phase-breach .wall-gate{animation:gateShake .8s ease-in-out infinite}.battle-scene-dialog.phase-retreat .retreat-arrows span{opacity:1;animation:retreatBlink 1s linear infinite}.battle-scene-dialog.phase-retreat .troop-layer.battle .troop{animation-name:retreatA !important;animation-duration:2.4s !important}
.death-markers{position:absolute;left:8%;right:45%;bottom:18%;height:90px;pointer-events:none}.death-markers .marker{position:absolute;width:18px;height:18px;border-radius:50%;background:radial-gradient(circle,#ff8d8d,#ff3737 60%,transparent 62%);opacity:0;animation:deathPulse 2.6s ease-out infinite}.death-markers .one{left:20%;top:32%}.death-markers .two{left:44%;top:52%;animation-delay:.6s}.death-markers .three{left:63%;top:18%;animation-delay:1.1s}
.crit-flashes{position:absolute;left:10%;right:10%;top:18%;bottom:24%;pointer-events:none}.crit-flashes span{position:absolute;width:88px;height:88px;border-radius:50%;background:radial-gradient(circle,rgba(255,236,182,.8),rgba(255,180,77,.1) 55%,transparent 65%);opacity:0;mix-blend-mode:screen;animation:critFlash 2.7s ease-in-out infinite}.crit-flashes span:first-child{left:38%;top:26%}.crit-flashes span:last-child{left:58%;top:46%;animation-delay:1.2s}
.retreat-arrows{position:absolute;left:10%;bottom:22%;display:flex;gap:10px;opacity:0}.retreat-arrows span{width:26px;height:14px;background:linear-gradient(90deg,#82b6ff,#e0f0ff);clip-path:polygon(0 50%,70% 50%,70% 0,100% 50%,70% 100%,70% 50%,0 50%);opacity:0}
.hero-avatar{position:absolute;left:14%;bottom:18%;width:120px;height:160px;border-radius:24px 24px 18px 18px;background:radial-gradient(circle at 50% 25%,rgba(255,255,255,.26),transparent 38%),linear-gradient(180deg,#453220,#1f1714);z-index:4;display:flex;align-items:center;justify-content:center;overflow:hidden;box-shadow:0 16px 30px rgba(0,0,0,.35)}.battle-scene-dialog.present .hero-avatar{background:radial-gradient(circle at 50% 25%,rgba(107,190,255,.2),transparent 38%),linear-gradient(180deg,#27455c,#131b25)}.battle-scene-dialog.future .hero-avatar{background:radial-gradient(circle at 50% 25%,rgba(174,121,255,.24),transparent 38%),linear-gradient(180deg,#2f2951,#151529)}
.hero-avatar-icon{position:relative;z-index:3;font-size:56px;animation:heroFloat 3s ease-in-out infinite}.hero-avatar-aura{position:absolute;inset:-20%;background:conic-gradient(from 0deg,rgba(255,203,115,.22),transparent 20%,rgba(115,194,255,.2),transparent 45%,rgba(193,111,255,.24),transparent 70%,rgba(255,203,115,.22));animation:spin 6s linear infinite}.hero-avatar-ring{position:absolute;inset:18px;border-radius:18px;border:1px solid rgba(255,255,255,.25);box-shadow:inset 0 0 26px rgba(255,255,255,.05)}
.hero-cast-label{position:absolute;left:15%;bottom:10%;z-index:4;padding:10px 14px;border-radius:14px;background:rgba(4,13,24,.76);border:1px solid rgba(98,124,150,.4)}.hero-cast-label b{display:block;color:#f4ddb3}.hero-cast-label span{display:block;color:#b8c8d8;font-size:12px}
.battle-scene-dialog.cast-arslan .wall-gate,.battle-scene-dialog.cast-vektor .wall-gate,.battle-scene-dialog.cast-aion .wall-gate{animation:gateSmash .55s ease-in-out 2}.battle-scene-dialog.cast-selene .crit-flashes span,.battle-scene-dialog.cast-nyx .crit-flashes span{animation-duration:.9s}.battle-scene-dialog.cast-mira .retreat-arrows,.battle-scene-dialog.cast-mira .retreat-arrows span{opacity:1}
.cinematic-hud{position:absolute;left:18px;right:18px;display:flex;gap:8px;flex-wrap:wrap;z-index:5}.cinematic-hud.top{top:16px}.cinematic-hud.bottom{bottom:16px}.hud-chip{padding:7px 10px;border-radius:999px;border:1px solid rgba(104,128,154,.45);background:rgba(3,13,25,.76);color:#d5e2ef;font-size:12px}.hud-chip.gold{color:#f2d9ad;border-color:rgba(226,185,120,.5)}.hud-chip.red{color:#ffb2a7;border-color:rgba(255,120,93,.5)}
.battle-scene-panel{padding:18px 18px 18px 0;overflow:auto}.phase-switches{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0}.hero-ability-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:14px}
.gold-btn{background:linear-gradient(180deg,#c89a42,#8f6422);color:#140d06;border-color:#ebcc8e}
@keyframes heroFloat{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
@keyframes glowPulse{0%,100%{transform:scale(.95);opacity:.55}50%{transform:scale(1.08);opacity:.85}}
@keyframes spin{from{transform:rotate(0)}to{transform:rotate(360deg)}}
@keyframes ramAdvance{0%,100%{transform:translateX(0)}50%{transform:translateX(72px)}}
@keyframes towerAdvance{0%,100%{transform:translateX(0)}50%{transform:translateX(42px)}}
@keyframes crackBlink{0%,100%{opacity:.22}50%{opacity:1}}
@keyframes gateShake{0%,100%{transform:translateX(0)}25%{transform:translateX(-2px)}75%{transform:translateX(3px)}}
@keyframes deathPulse{0%{transform:scale(.2);opacity:0}20%{opacity:1}100%{transform:scale(1.8);opacity:0}}
@keyframes critFlash{0%,100%{transform:scale(.2);opacity:0}15%,55%{transform:scale(1);opacity:.9}}
@keyframes retreatBlink{0%,100%{opacity:0}50%{opacity:1}}
@keyframes retreatA{0%{transform:translate(0,0)}100%{transform:translate(-120px,18px)}}
@keyframes gateSmash{0%,100%{transform:translateX(0)}25%{transform:translateX(-8px)}50%{transform:translateX(8px)}75%{transform:translateX(-6px)}}
@media (max-width:1100px){.battle-scene-dialog{grid-template-columns:1fr;height:auto;max-height:94vh}.battle-scene-stage{min-height:360px}.battle-scene-panel{padding:14px 16px 18px}.hero-grid{grid-template-columns:1fr}.phase-switches{grid-template-columns:1fr 1fr}}
@media (max-width:700px){.battle-scene-overlay{padding:10px}.battle-scene-dialog{width:100%;border-radius:18px}.battle-scene-stage{min-height:300px}.hero-avatar{width:82px;height:110px;left:8%;bottom:16%}.hero-avatar-icon{font-size:42px}.hero-cast-label{left:8%;bottom:8%}.fortress-wall{left:44%;right:2%}.siege-engine.ram{left:8%;bottom:18%;width:86px;height:54px}.siege-engine.tower{left:24%;width:64px;height:100px}.cinematic-hud.bottom{display:none}.battle-scene-panel{padding:12px}.hero-ability-panel{flex-direction:column;align-items:stretch}}

.stage-thumb{width:100%;height:100%;object-fit:cover;border-radius:50%;display:block}
.inspector-photo{height:190px}
.v3city .structure-beacon:has(.stage-thumb){width:62px;height:62px;border-radius:12px;overflow:hidden;border-width:2px}
.v3city .structure-beacon .stage-thumb{border-radius:0}

.research-icon{display:grid;place-items:center;width:84px;height:84px;font-size:0;background:none!important;border:0!important;box-shadow:none!important}
.research-icon img{width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 4px 8px #000a)}
.research-item.researched .research-icon img{filter:drop-shadow(0 0 10px #5be0a4aa)}

/* v18: daha gerçekçi/profesyonel görünüm */
.ri{width:1.25em;height:1.25em;vertical-align:-.25em;object-fit:contain;display:inline-block;filter:drop-shadow(0 1px 2px #000a)}
.resource .emoji{display:grid;place-items:center;width:30px;height:30px;font-size:0}.resource .emoji .ri{width:26px;height:26px;vertical-align:baseline}
.rail-svg{width:26px;height:26px;color:#d9c18a;transition:color .2s,transform .2s}.rail-btn:hover .rail-svg{color:#fff3cf;transform:translateY(-1px)}.rail-btn.active .rail-svg{color:#ffe08a;filter:drop-shadow(0 0 6px #ffcf5a88)}
.rail-btn>span{display:grid;place-items:center;font-size:0}
@media(min-width:901px){.stage:not(.kc){min-height:calc(100vh - 69px)}.noncity .overlay-shell{bottom:18px}}
.resources{gap:5px}.resource{padding:5px 7px;gap:5px;min-width:0}.resource .emoji{width:26px;height:26px}.resource .emoji .ri{width:23px;height:23px}
@media(max-width:1500px){.resource strong{font-size:12px}.resource small{font-size:8px}.head-left .name{max-width:90px}}
