
/* TIMEFALL V41 — premium 2D visual system. All actions remain routed through the original engine. */
:root{--gold:#f3d795;--gold2:#c5954f;--line:#9b774b9c;--panel:#081628f2;--panel2:#071326f8;--bg:#041020;--txt:#fbf1de}
html,body{background:#041020}
.app{background:radial-gradient(ellipse at 75% -10%,#17365a 0,transparent 40%),#041020}
.header{height:76px;min-height:76px;padding:6px 20px;background:linear-gradient(180deg,#071728,#041020);border-bottom:1px solid #d3a559;box-shadow:0 6px 24px #000b}
.header .brand .logo{font-size:clamp(20px,2.3vw,31px);color:#ffdfaa;text-shadow:0 0 24px #ffbf5b44}
.resource{border-color:#8c724e88;background:linear-gradient(180deg,#0b1d30,#071324);box-shadow:inset 0 0 8px #0009;min-width:85px}
.resource strong{color:#f7f0dd}
.tf41-resico{width:27px;height:27px;object-fit:cover;border-radius:6px;filter:drop-shadow(0 2px 5px #0009)}
.hud{display:block;min-height:calc(100vh - 76px)}
.rail{position:fixed!important;z-index:45!important;left:0!important;right:0!important;bottom:0!important;top:auto!important;height:79px!important;display:flex!important;flex-direction:row!important;align-items:stretch!important;justify-content:space-evenly!important;gap:2px!important;padding:6px 10px max(7px,env(safe-area-inset-bottom))!important;overflow-x:auto!important;overflow-y:hidden!important;background:linear-gradient(180deg,#10243bfa,#030b19f9)!important;border:0!important;border-top:2px solid #bd914f!important;box-shadow:0 -7px 25px #000b!important;scrollbar-width:thin}
.rail-btn{flex:1 0 76px;min-height:59px;min-width:76px;border:1px solid #94734b4d;border-radius:9px;background:linear-gradient(180deg,#112740a8,#081528b8);color:#d3dbea;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:4px 8px;transition:background .2s,transform .2s}
.rail-btn span{font-size:22px;line-height:1}.rail-btn small{font-size:11px;white-space:nowrap}
.rail-btn.active{color:#ffdf9c!important;background:linear-gradient(150deg,#5b4124f2,#1a2d45)!important;border-color:#ffd787!important;box-shadow:inset 0 0 15px #c99d5a4c,0 0 17px #efc47039}
.main{position:relative;margin:0!important;width:100%!important;min-width:0;padding:0 0 91px!important;overflow:visible!important}
.tf41-page{min-height:calc(100vh - 160px);position:relative}
.tf41-hero{position:relative;min-height:236px;margin:12px 15px 16px;border:1px solid #d7b372;border-radius:17px;overflow:hidden;isolation:isolate;box-shadow:0 13px 40px #000a,inset 0 0 18px #e6b86522;background:#0b1f33}
.tf41-hero:before{content:'';position:absolute;inset:0;z-index:-2;background-image:linear-gradient(90deg,#031021f9 0%,#031021ed 26%,#03102198 46%,#0612221a 88%),var(--tf41-scene);background-size:cover;background-position:center 45%;filter:saturate(1.08)}
.tf41-hero:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(0deg,#030d1bd9,transparent 36%);pointer-events:none}
.tf41-hero-content{padding:clamp(16px,2vw,30px);position:relative;max-width:740px;display:flex;flex-direction:column;gap:8px;justify-content:center;min-height:236px}
.tf41-eyebrow{font-size:10px;letter-spacing:.21em;color:#f4c67d;font-weight:800}
.tf41-hero h1{font-family:Georgia,'Times New Roman',serif;color:#ffdda1;text-shadow:0 3px 12px #000;font-size:clamp(26px,3.4vw,43px);font-weight:700;line-height:1.12;margin:0}
.tf41-hero p{font-size:clamp(12px,1.05vw,15px);color:#e0e7ec;line-height:1.55;margin:1px 0 8px;max-width:580px;text-shadow:0 2px 5px #000}
.tf41-hero-nav{display:flex;gap:8px;flex-wrap:wrap}
.tf41-link{border:1px solid #e6bc75;border-radius:9px;background:linear-gradient(140deg,#58391fe8,#121d31f1);color:#ffe5ae;font-weight:700;padding:9px 13px;font-size:12px;box-shadow:inset 0 1px #fff3;transition:transform .15s,filter .15s}
.tf41-link:hover,.tf41-link:focus-visible{transform:translateY(-2px);filter:brightness(1.2)}.tf41-link span{font-size:17px;margin-left:4px}
.tf41-hero.compact{min-height:116px;margin:8px 12px 10px}.tf41-hero.compact .tf41-hero-content{min-height:116px;padding:12px 20px;gap:3px;max-width:100%}.tf41-hero.compact h1{font-size:23px}.tf41-hero.compact p{font-size:11px;margin:0 0 4px}.tf41-hero.compact .tf41-link{font-size:10px;padding:4px 9px}
.tf41-page .board,.tf41-page .sidepanel,.tf41-page .sx-card,.tf41-page .kc-side{background:linear-gradient(145deg,#0c2135f8,#061428fa)!important;border:1px solid #987b5199!important;border-radius:13px!important;box-shadow:0 8px 20px #0006,inset 0 1px #fff1}
.tf41-page .board h2,.tf41-page .panel-title,.tf41-page .sx-head h1{color:#f9dda4!important;font-family:Georgia,serif}
.tf41-page .card,.tf41-page .research-item,.tf41-page .cosmetic-item,.tf41-page .time-choice{border:1px solid #9279578c!important;border-radius:13px;background:linear-gradient(160deg,#132a40ee,#061326f9)!important;box-shadow:inset 0 1px #fff1,0 5px 15px #0005}
.tf41-page .research-era{position:relative;padding:12px;border-radius:15px;background:linear-gradient(90deg,#07192de8,#0d2542a6);border:1px solid #846d4b6f;margin-bottom:17px}
.tf41-page .research-era-title{font-family:Georgia,serif;font-size:20px!important;text-shadow:0 2px 4px #000;border-bottom:1px solid var(--era-accent);padding:8px 0 13px}
.tf41-page .research-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.tf41-page .research-item{padding:14px;min-height:255px;display:flex;flex-direction:column;align-items:stretch;position:relative;overflow:hidden}
.tf41-page .research-item:before{content:'';position:absolute;inset:0;background:radial-gradient(ellipse at 25% 15%,#8fc9ff18,transparent 60%);pointer-events:none}
.tf41-page .research-icon{width:78px;height:78px;display:grid;place-items:center;overflow:hidden;background:#08172b;border:2px solid #d9ae6c;border-radius:50%;box-shadow:0 0 18px #2ec0ff2e;margin:0 0 10px}
.tf41-page .research-icon img{display:block;width:100%;height:100%;object-fit:contain}
.tf41-page .research-item h4{font-family:Georgia,serif;font-size:17px;color:#ffdc9d;margin:0 0 8px}
.tf41-page .research-item p{color:#d3e2f0;line-height:1.45;font-size:12px}
.tf41-page .research-item>.stat{margin-top:auto}
.tf41-page .research-item .btn{margin-top:12px;border:1px solid #e1c289;background:linear-gradient(95deg,#8f662e,#ead098,#ad7b3b);color:#221405;font-weight:850}
.tf41-page .cosmetic-art{position:relative;overflow:hidden;border-radius:12px 12px 0 0}
.tf41-page .cosmetic-art img{height:180px;width:100%;object-fit:cover;transition:transform .3s}
.tf41-page .cosmetic-item:hover .cosmetic-art img{transform:scale(1.055)}
.tf41-page .cosmetic-details h3{font-family:Georgia,serif;color:#f4d394}
.tf41-page .cosmetic-grid{gap:14px}
.tf41-page .overlay-shell{position:relative!important;top:auto!important;bottom:auto!important;left:auto!important;right:auto!important;margin:0 15px 20px!important;padding:0!important;max-height:none!important;overflow:visible!important}
.tf41-page .stage.noncity{min-height:0!important;height:auto!important;overflow:visible!important;padding-bottom:15px}
.tf41-page .stage.noncity .stage-art{display:none!important}
.tf41-page .stage.noncity .mobile-scene{display:none!important}
.tf41-page .stage.noncity>.stage-title{display:none!important}
.tf41-page .kc{padding-bottom:15px!important}
.tf41-page .kc-grid{padding:0 12px}
.tf41-page .kc-map{border:2px solid #d1a561;border-radius:17px;box-shadow:0 15px 40px #0009,0 0 0 1px #ffdc963c}
.tf41-page .kc-chip{border-color:#a98c5f;color:#f5e8d0}
.tf41-page .kc-side{max-height:unset!important}
.tf41-page .kc .era-bar{position:relative!important;transform:none!important;left:auto!important;bottom:auto!important;display:flex;margin:13px auto 5px;width:max-content;max-width:95%}
.tf41-page .kc-top{padding:5px 16px 12px}
.tf41-page.tf41-city .stage.city:not(.kc) .stage-art{background-blend-mode:normal}
.tf41-page.tf41-openworld .ow-stage{position:relative}
.tf41-page .btn.primary{border-color:#ffdca1;background:linear-gradient(120deg,#956b2d,#f0d697 48%,#ab7937);font-weight:800}
.tf41-page .btn.ghost{border-color:#a58c66;color:#f2dfb6}
@media (min-width:901px){.tf41-page .stage.noncity .overlay-shell{display:grid!important;grid-template-columns:minmax(0,1.55fr) minmax(320px,1fr);align-items:start;gap:14px}.tf41-page .stage.noncity .overlay-shell>.board{min-width:0}.tf41-page .tf41-research .overlay-shell{grid-template-columns:minmax(0,1.7fr) minmax(320px,.75fr)}}
@media (max-width:1000px){.tf41-page .research-cards{grid-template-columns:repeat(2,minmax(0,1fr))}.tf41-hero{min-height:210px}.tf41-hero-content{min-height:210px}.tf41-page .stage.noncity .overlay-shell{display:block!important}.tf41-page .stage.noncity .overlay-shell>.board{margin-bottom:12px}.tf41-page .kc-side{overflow:visible}}
@media (max-width:600px){.header{height:76px;min-height:76px;padding:5px 10px;gap:7px}.brand{min-width:0}.header .brand .logo{font-size:19px}.resource{min-width:73px;padding:4px 6px}.resource strong{font-size:11px}.tf41-resico{width:22px;height:22px}.rail{height:75px!important;justify-content:flex-start!important;padding-left:4px!important;padding-right:4px!important}.rail-btn{flex:0 0 63px;min-width:63px;min-height:55px}.rail-btn span{font-size:19px}.rail-btn small{font-size:9px}.tf41-hero{min-height:220px;margin:9px 8px 11px}.tf41-hero-content{min-height:220px;padding:15px;gap:6px}.tf41-hero h1{font-size:26px}.tf41-hero p{font-size:12px}.tf41-link{padding:7px 8px;font-size:10px}.tf41-hero.compact{min-height:121px;margin:8px}.tf41-hero.compact .tf41-hero-content{min-height:121px;padding:9px 12px}.tf41-hero.compact .tf41-eyebrow{font-size:8px}.tf41-hero.compact h1{font-size:21px}.tf41-hero.compact p{display:none}.tf41-hero.compact .tf41-link{font-size:9px;padding:5px 7px}.tf41-page .stage.noncity .overlay-shell{margin:0 8px 16px!important}.tf41-page .research-cards{grid-template-columns:1fr}.tf41-page .research-icon{width:68px;height:68px}.tf41-page .research-item{min-height:210px}.tf41-page .kc-grid{padding:0 6px}.tf41-page .kc-map{border-radius:11px}}
@media(prefers-reduced-motion:reduce){.tf41-page .cosmetic-art img,.tf41-link,.rail-btn{transition:none}}
/* v8.45 birleştirme: şehir ekranında üst başlık tekrarını kaldır, rehberi hizala */
.tf41-page .kc .kc-top .stage-title{display:none}
.tf41-page .kc .kc-top{display:flex;justify-content:flex-end}
.tf41-page .kc-coach{margin:0 12px 10px}
@media(max-width:900px){.tf41-page .kc .kc-top{justify-content:flex-start}}
.tf41-page.tf41-openworld .tf41-hero{display:none}

.tf-ann{margin:10px 15px 0;padding:10px 14px;border-radius:10px;font-size:13px;color:#eaf4ff;background:linear-gradient(90deg,#0d3150,#0a1c30);border:1px solid #3f8fd0}.tf-ann.warn{background:linear-gradient(90deg,#4a2a0c,#1d1408);border-color:#d39a3f;color:#ffe9c4}.tf-ann.event{background:linear-gradient(90deg,#3a1756,#140b26);border-color:#b07cf0;color:#f1e4ff}

/* v8.72 – Yapılacaklar şeridi */
.todo-bar{display:flex;gap:8px;align-items:center;overflow-x:auto;padding:7px 14px;margin:0 auto;max-width:1600px;scrollbar-width:none}
.todo-bar::-webkit-scrollbar{display:none}
.todo-title{font:700 11px/1 var(--font-ui,inherit);letter-spacing:.14em;text-transform:uppercase;color:#c9a96a;white-space:nowrap}
.todo-chip{white-space:nowrap;border:1px solid rgba(214,174,92,.45);background:linear-gradient(180deg,rgba(60,44,18,.85),rgba(28,22,12,.9));color:#f3e3b8;border-radius:999px;padding:6px 12px;font-family:inherit;font-weight:600;font-size:12px;line-height:1;cursor:pointer}
.todo-chip:hover{border-color:#e8c36a;box-shadow:0 0 12px rgba(232,195,106,.35)}
@media(max-width:700px){.todo-bar{padding:6px 10px}.todo-chip{padding:7px 11px}}

/* v8.73 – Zaman Zinciri */
.zc{margin-bottom:6px}
.zc-flow{display:flex;align-items:center;justify-content:center;gap:12px;margin:6px 0 10px}
.zc-node{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:88px;padding:10px 14px;border-radius:14px;border:1px solid rgba(214,174,92,.4);background:rgba(20,22,30,.7)}
.zc-node span{font-size:26px}.zc-node b{font-size:12px;letter-spacing:.1em;text-transform:uppercase;color:#f3e3b8}
.zc-node.past{border-color:rgba(214,160,80,.6)}.zc-node.present{border-color:rgba(120,190,255,.6)}.zc-node.future{border-color:rgba(180,140,255,.6)}
.zc-arrow{font-size:22px;color:#e8c36a}
.zc-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:12px;margin-top:10px}
.zc-link{border:1px solid rgba(214,174,92,.3);border-radius:14px;padding:12px 14px;background:rgba(14,16,24,.65)}
.zc-link header{display:flex;justify-content:space-between;align-items:baseline;gap:8px}.zc-link h3{margin:0;font-size:16px}
.zc-dir{font-size:11px;letter-spacing:.08em;color:#c9a96a;white-space:nowrap}
.zc-eff{margin-top:10px}.zc-row{display:flex;justify-content:space-between;font-size:13px}
.zc-bar{height:6px;border-radius:99px;background:rgba(255,255,255,.1);margin:5px 0;overflow:hidden}.zc-bar i{display:block;height:100%;background:linear-gradient(90deg,#c9a14a,#f3d98a)}
.zc-src{border:0;background:none;color:#9fc3ff;font-family:inherit;font-weight:600;font-size:12px;line-height:1.3;cursor:pointer;padding:0;text-align:left}.zc-src:hover{text-decoration:underline}
@media(max-width:700px){.zc-node{min-width:70px;padding:8px 10px}.zc-flow{gap:6px}}

.zc-note{margin:8px 0;padding:6px 10px;border-radius:10px;border:1px solid rgba(214,174,92,.35);background:rgba(60,44,18,.45);font-size:12px;color:#f3e3b8}.zc-note small{color:#c9a96a}
