/* TIMEFALL v8.62 — standalone 2D strategy overlay (no imported 3D, no third parties). */
.tf-rts-open{margin-top:9px;display:inline-flex;align-items:center;gap:6px;padding:9px 16px;color:#ffdf9d!important;background:linear-gradient(110deg,#203c4e,#132a45)!important;border:1px solid #cca66a!important;border-radius:8px;box-shadow:0 2px 20px #08162670;font:700 12px system-ui,sans-serif;cursor:pointer;letter-spacing:.35px;transition:transform .15s,filter .15s}
.tf-rts-open:hover{transform:translateY(-2px);filter:brightness(1.2)}
.tf-rts-root{position:fixed;inset:0;z-index:99990;display:flex;align-items:center;justify-content:center;background:#020811dc;backdrop-filter:blur(12px);padding:12px;box-sizing:border-box;color:#d5e9fa;font-family:system-ui,-apple-system,sans-serif}
.tf-rts-root *{box-sizing:border-box}
.tf-rts-shell{width:min(1640px,100%);max-height:calc(100dvh - 20px);height:min(880px,calc(100dvh - 20px));display:flex;flex-direction:column;overflow:hidden;border:1px solid #b591567e;border-radius:14px;background:#0b1b2c;box-shadow:0 24px 90px #000a,0 0 0 1px #547a952a}
.tf-rts-shell>header{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 22px;background:linear-gradient(95deg,#102f41,#172d47 60%,#112239);border-bottom:1px solid #54789160;flex-shrink:0}
.tf-rts-shell>header small{color:#e9c680;letter-spacing:2px;font-size:10px}.tf-rts-shell h2{margin:3px 0 0;font:700 clamp(17px,2.2vw,27px) Georgia,serif;color:#f8e2a6}
.tf-rts-close{padding:11px 13px;border:1px solid #b28a5b;border-radius:9px;background:#1a3146;color:#ffe0a1;cursor:pointer;font-weight:800;white-space:nowrap}
.tf-rts-body{display:grid;grid-template-columns:minmax(0,1fr) 320px;min-height:0;flex:1}.tf-rts-board{display:flex;flex-direction:column;min-width:0;min-height:0;background:radial-gradient(ellipse at 50% 0,#183e57,#071b2c 83%)}
.tf-rts-guide{padding:10px 15px;font-size:12px;color:#9dc6d8;border-bottom:1px solid #24415b;line-height:1.5}.tf-rts-map-scroll{min-height:0;flex:1;overflow:auto;display:flex;align-items:center;justify-content:center;scrollbar-color:#688da1 #10293a}
.tf-rts-canvas{width:100%;height:auto;display:block;max-height:100%;object-fit:contain;touch-action:pan-x pan-y;cursor:crosshair;user-select:none;-webkit-user-select:none}
.tf-rts-notice{min-height:33px;padding:7px 14px;color:#f6d999;background:#132d41;border-top:1px solid #2d5169;font-size:12px}
.tf-rts-hud{padding:15px;overflow:auto;background:linear-gradient(180deg,#132d40,#091927);border-left:1px solid #3b607777;scrollbar-color:#6688a3 #132a39}
.tf-rts-hud h3{font:700 14px Georgia,serif;margin:15px 0 7px;color:#f0d6a0}.tf-rts-hud h3 small{font:400 10px system-ui;color:#8eabbd}
.tf-rts-stat{display:flex;flex-direction:column;gap:3px;border:1px solid #61809655;background:#0c2338;border-radius:10px;padding:12px}.tf-rts-stat strong{font:700 19px Georgia;color:#f7dca3}.tf-rts-stat span{font-size:12px;color:#acd0e3}
.tf-rts-resources{margin-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:5px}.tf-rts-resources span{font-size:11px;border:1px solid #365c6b;background:#162e3d;padding:6px;border-radius:5px}.tf-rts-resources b{color:#e5c887}
.tf-rts-actions{display:grid;grid-template-columns:1fr 1fr;gap:7px}.tf-rts-actions button{border:1px solid #416b83;background:#163b50;color:#e8f4fb;min-height:40px;border-radius:7px;padding:7px 6px;cursor:pointer;text-align:center;font:600 12px system-ui;transition:background .15s,border-color .15s}.tf-rts-actions button small{display:block;font:400 10px system-ui;color:#9dbbc8;margin-top:4px;white-space:normal;overflow-wrap:anywhere}.tf-rts-actions button:hover,.tf-rts-actions button.active{border-color:#eac384;background:#35566b;color:#ffe4ac}
.tf-rts-wave{width:100%;margin:14px 0 4px;padding:12px 8px;background:linear-gradient(130deg,#b68d43,#77612f);color:#111e28;border:1px solid #f2d8a1;border-radius:7px;font-weight:800;cursor:pointer}.tf-rts-wave:disabled{opacity:.5;cursor:not-allowed}
.tf-rts-hint{font-size:11px;color:#a2c0d2;line-height:1.6;margin:7px 0}.tf-rts-logs{border-top:1px solid #355064;margin-top:16px}.tf-rts-logs p{margin:4px 0;border-bottom:1px solid #243e53;padding:5px 0;color:#b8ceda;font-size:11px;line-height:1.4}
@media(max-width:820px){.tf-rts-root{padding:0}.tf-rts-shell{width:100%;height:100dvh;max-height:100dvh;border:0;border-radius:0}.tf-rts-shell>header{padding:10px 12px}.tf-rts-body{display:flex;flex-direction:column}.tf-rts-board{flex:0 0 min(52dvh,470px)}.tf-rts-map-scroll{justify-content:flex-start;align-items:center}.tf-rts-canvas{min-width:735px;max-height:none}.tf-rts-hud{flex:1;border-left:0;border-top:1px solid #486778;padding:10px;overflow:auto}.tf-rts-hud h3{margin:9px 0 6px}.tf-rts-guide{font-size:11px}.tf-rts-shell h2{font-size:18px}.tf-rts-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.tf-rts-resources{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:420px){.tf-rts-body .tf-rts-board{flex-basis:min(48dvh,410px)}.tf-rts-actions button{font-size:11px}.tf-rts-close{font-size:12px}}
@media(prefers-reduced-motion:reduce){.tf-rts-open{transition:none}}
/* TIMEFALL v8.63 — texture and high-density sprite presentation */
.tf-rts-shell{border-color:#d8b878aa;background:#0b1c29;box-shadow:0 28px 100px #000c,0 0 0 1px #d9ac5655,0 0 80px #418fc01a}
.tf-rts-shell>header{background:radial-gradient(ellipse at 4% 20%,#214356,#0f253e 72%);border-bottom-color:#c7a26477;box-shadow:inset 0 -1px #ffe5ae16}
.tf-rts-shell>header h2{letter-spacing:.4px;text-shadow:0 2px 12px #c5ab4f3d}
.tf-rts-hud{background:radial-gradient(ellipse at 100% 0,#1c3a50 0,#0c2034 68%,#0a1828 100%);border-left-color:#c9a36788}
.tf-rts-hud h3{color:#f8dda4;border-bottom:1px solid #c5a46c3e;padding-bottom:5px}
.tf-rts-stat{background:linear-gradient(145deg,#142e42,#0b1a2c);border-color:#b09b6877;box-shadow:inset 0 1px #ffffff0e}
.tf-rts-actions button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;background:linear-gradient(155deg,#1e4256,#102739);border:1px solid #64849599;min-height:87px;padding:6px 5px;box-shadow:inset 0 1px #ffffff10,0 4px 8px #0002}
.tf-rts-actions button:hover,.tf-rts-actions button.active{background:linear-gradient(145deg,#325365,#193a50);border-color:#e9c384;box-shadow:inset 0 0 12px #b5dcff11,0 0 12px #dfbe7230}
.tf-rts-actions button .tf-rts-item-icon{display:block;width:64px;height:49px;object-fit:contain;filter:drop-shadow(0 3px 2px #0008);pointer-events:none}
.tf-rts-actions button span{display:block}
.tf-rts-actions button small{font-size:9.5px;color:#9cbdca}
.tf-rts-map-scroll{background:radial-gradient(ellipse at 45% 30%,#29445c,#10263c 80%);background-size:cover}
.tf-rts-canvas{image-rendering:auto;filter:contrast(1.04) saturate(1.06)}
.tf-rts-guide{background:linear-gradient(90deg,#0b1e31,#19364b);color:#a9ccda}
.tf-rts-wave{box-shadow:0 4px 16px #030b1680,inset 0 1px 1px #ffda9c}
.tf-rts-resources span{background:linear-gradient(155deg,#18364a,#102738);border-color:#59727b70}
@media(max-width:820px){.tf-rts-hud{border-top-color:#bd9b5b}.tf-rts-actions button{min-height:74px;padding:4px}.tf-rts-actions button .tf-rts-item-icon{width:42px;height:36px}}

.tf-rts-stop-icon{font:800 30px Georgia,serif;color:#da948f;line-height:35px;display:block;text-shadow:0 3px 12px #d38d8b66}

/* TIMEFALL v8.88 — Age of Empires tarzı RTS arayüzü: kaynak çubuğu, kamera tuvali, minimap, komut paneli */
body.tf-rts-lock{overflow:hidden}
.tf-rts-head-btns{display:flex;align-items:center;gap:8px}
.tf-rts-head-btns select,.tf-rts-diff{background:#1a3146;color:#ffe0a1;border:1px solid #b28a5b;border-radius:8px;padding:9px 8px;font:700 12px system-ui}
.tf-rts-pause,.tf-rts-new{width:40px;padding:10px 0;border:1px solid #b28a5b;border-radius:9px;background:#1a3146;color:#ffe0a1;cursor:pointer;font-size:15px;line-height:1}
.tf-rts-pause:hover,.tf-rts-new:hover{background:#2a4a63}
.tf-rts-topbar{flex-shrink:0;padding:6px 14px;background:linear-gradient(90deg,#0d2234,#16314b 55%,#0d2234);border-bottom:1px solid #c7a26455}
.tf-rts-topbar-res{display:flex;flex-wrap:wrap;gap:6px 8px;align-items:center}
.tf-rts-res{display:inline-flex;align-items:center;gap:5px;font-size:11.5px;color:#bcd6e6;border:1px solid #4b6d7e88;background:linear-gradient(155deg,#18364a,#102738);padding:4px 9px;border-radius:6px;white-space:nowrap}
.tf-rts-res b{color:#f4dc9a;font-size:13px}.tf-rts-res i{font-style:normal;font-size:13px}.tf-rts-res.full{border-color:#ff8069;animation:tfrtsblink 1s infinite}.tf-rts-res.full b{color:#ff9d88}
@keyframes tfrtsblink{50%{background:#4a2330}}
.r-food{color:#e8714f}.r-wood{color:#6fc28a}.r-gold{color:#f2c94c}.r-stone{color:#b9c3cc}i.lack{color:#ff7d68!important}
.tf-rts-map-scroll{position:relative;display:block!important;overflow:hidden!important;padding:0;min-height:260px}
.tf-rts-canvas{max-height:none!important;height:100%;filter:none!important;touch-action:none!important;cursor:default}
.tf-rts-hint-live{position:absolute;left:50%;top:10px;transform:translateX(-50%);padding:7px 14px;background:#081a2dee;border:1px solid #d8b878;border-radius:20px;color:#ffe0a1;font:700 12px system-ui;pointer-events:none;max-width:90%;text-align:center}
.tf-rts-end{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:#020811c0;backdrop-filter:blur(3px);z-index:3;text-align:center}
.tf-rts-end[hidden]{display:none}.tf-rts-end>div{padding:26px 34px;border:1px solid #d8b878;border-radius:14px;background:linear-gradient(160deg,#16354a,#0b1c2c);box-shadow:0 20px 60px #000b;max-width:92%}
.tf-rts-end h2{margin:0 0 8px;font:700 34px Georgia,serif;letter-spacing:3px;color:#f8e2a6}.tf-rts-end.win h2{color:#8dedb0}.tf-rts-end.lose h2{color:#ff9d88}
.tf-rts-end p{margin:6px 0;color:#b8d0de}.tf-rts-end label{display:inline-flex;align-items:center;gap:8px;margin:10px 10px 0;color:#ffe0a1;font-size:12px}
.tf-rts-end button{margin-top:12px;padding:11px 20px;background:linear-gradient(130deg,#b68d43,#77612f);color:#111e28;border:1px solid #f2d8a1;border-radius:8px;font-weight:800;cursor:pointer}
.tf-rts-hud{display:flex;flex-direction:column;gap:8px}
.tf-rts-minimap{display:block;width:100%;max-width:292px;aspect-ratio:220/122;align-self:center;border:2px solid #c8a76a;border-radius:6px;background:#050d16;cursor:crosshair;box-shadow:0 4px 14px #0008,inset 0 0 12px #0008;flex-shrink:0}
.tf-rts-quick{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.tf-rts-quick button{padding:7px 4px;border:1px solid #64849599;border-radius:7px;background:linear-gradient(155deg,#1e4256,#102739);color:#e8f4fb;font:700 11.5px system-ui;cursor:pointer}
.tf-rts-quick button:hover{border-color:#e9c384;color:#ffe4ac}
.tf-rts-sel{min-height:0}
.tf-rts-info{border:1px solid #b09b6877;background:linear-gradient(145deg,#142e42,#0b1a2c);border-radius:10px;padding:10px 12px;margin:2px 0 8px;box-shadow:inset 0 1px #ffffff0e}
.tf-rts-info h3{margin:0 0 6px!important;border:0!important;padding:0!important}.tf-rts-info.foe{border-color:#c2655a99}
.tf-rts-hpbar{height:7px;background:#0a1837;border-radius:4px;overflow:hidden;border:1px solid #31506a}.tf-rts-hpbar i{display:block;height:100%;background:linear-gradient(90deg,#4fc98a,#8ae9b0)}.tf-rts-hpbar.foe i{background:linear-gradient(90deg,#d65a48,#f0907a)}
.tf-rts-sel .tf-rts-actions{margin-bottom:8px}
.tf-rts-sel .tf-rts-actions button{position:relative;min-height:66px;gap:2px}
.tf-rts-sel .tf-rts-actions button .tf-rts-item-icon{width:46px;height:36px}
.tf-rts-sel .tf-rts-actions button .tf-rts-stop-icon{font-size:22px;line-height:30px}
.tf-rts-actions button.poor{opacity:.62}.tf-rts-actions button.locked{opacity:.38;filter:grayscale(.6)}
.tf-rts-actions button kbd{position:absolute;top:3px;left:5px;font:700 9px system-ui;color:#e9c680;background:#0a1a28cc;border:1px solid #6b5a3a;border-radius:3px;padding:0 4px}
.tf-rts-actions button small i{font-style:normal;margin-right:2px}.tf-rts-actions button small{font-size:9.5px}
.tf-rts-queue{display:flex;flex-direction:column;gap:4px;margin-bottom:8px}
.tf-rts-queue button{position:relative;overflow:hidden;text-align:left;padding:6px 9px;border:1px solid #416b83;border-radius:6px;background:#12303f;color:#dcecf5;font:600 11px system-ui;cursor:pointer}
.tf-rts-queue button i{position:absolute;left:0;bottom:0;height:3px;background:#e9c384}.tf-rts-queue button:hover{border-color:#ff8069}
.tf-rts-hud h3 small.warn{color:#ff9d88}
.tf-rts-logs{margin-top:4px}
@media(max-width:820px){
 .tf-rts-topbar{padding:5px 8px}.tf-rts-res{font-size:10.5px;padding:3px 6px}.tf-rts-res b{font-size:11.5px}.tf-rts-head-btns select{display:none}
 .tf-rts-canvas{min-width:0!important}.tf-rts-board{flex:0 0 min(50dvh,430px)!important}.tf-rts-hud{flex-direction:column}
 .tf-rts-minimap{max-width:200px}.tf-rts-sel .tf-rts-actions{grid-template-columns:repeat(3,minmax(0,1fr))}.tf-rts-sel .tf-rts-actions button{min-height:60px}
 .tf-rts-guide{display:none}
}

.tf-rts-hud>*{flex-shrink:0}
