/* Tower Central HQ theme v2 (rename this file when changing it: /css/* is cached for a year) */
.tcx{display:grid;grid-template-columns:minmax(0,1fr);gap:14px;margin:18px 0 20px;min-width:0;max-width:100%}.tcx>*{min-width:0}
.tcx h2.tcx-h{margin:6px 0 0;font-size:1.35rem;letter-spacing:.02em}
.tcx a{text-decoration:none;color:inherit}
.tcx-jump{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px}
.tcx-jump a{display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:14px;border:1px solid #3a1218;background:linear-gradient(90deg,#2a0b12,#12060a);font-weight:700;transition:transform .15s,border-color .15s}
.tcx-jump a:hover{transform:translateY(-2px);border-color:#ff4658}
.tcx-jump img{width:40px;height:40px;object-fit:contain;flex:none}
.tcx-bento{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:12px}
.tcx-card{position:relative;overflow:hidden;min-height:190px;padding:20px;border-radius:18px;border:1px solid #5b1c25;display:flex;flex-direction:column;justify-content:flex-end;background:#12060a var(--bg) center/cover;transition:transform .15s,border-color .15s}
.tcx-card:before{content:"";position:absolute;inset:0;background:linear-gradient(0deg,rgba(7,2,3,.95),rgba(40,6,14,.3));pointer-events:none}
.tcx-card>*{position:relative}
.tcx-card:hover{transform:translateY(-2px);border-color:#ff4658}
.tcx-card small{font-size:.7rem;letter-spacing:.14em;text-transform:uppercase;color:#ff9aa4}
.tcx-card b{display:block;font-size:1.5rem;line-height:1.1}
.tcx-card p{margin:4px 0 10px;font-size:.9rem;color:#e3d3d5}
.tcx-card.w3{grid-column:span 3}.tcx-card.w2{grid-column:span 2}
.tcx-ic{display:flex;flex-wrap:wrap;gap:6px;align-items:center}
.tcx-ic img{width:34px;height:34px;object-fit:contain;padding:4px;border-radius:10px;background:rgba(7,2,3,.7);border:1px solid #5b1c25}
.tcx-ic img.big{width:48px;height:48px;border:0;background:none;padding:0}
.tcx-row{display:flex;gap:10px;overflow-x:auto;padding:2px 0 6px}
.tcx-row a{flex:0 0 118px;display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 6px;border-radius:14px;border:1px solid #3a1218;background:radial-gradient(circle at 50% 35%,#3a0a14,#12060a 70%);font-size:.85rem;font-weight:700;text-align:center}
.tcx-row img{width:84px;height:84px;object-fit:contain}
.tcx-panel{padding:14px;border-radius:18px;border:1px solid #3a1218;background:radial-gradient(ellipse 80% 60% at 50% 0%,#3a0a14,#10050a 70%)}
#view-home .hero-spin,#view-home .hero-base{filter:drop-shadow(0 0 28px rgba(255,59,78,.55))}
@media(max-width:700px){.tcx-jump{grid-template-columns:repeat(2,minmax(0,1fr))}.tcx-card.w3,.tcx-card.w2{grid-column:span 6}.tcx-card{min-height:150px}}

/* ---- site-wide: page banners ---- */
.page-hero,.news-hero{position:relative;overflow:hidden;border-radius:20px;border:1px solid #5b1c25;background:linear-gradient(90deg,rgba(7,2,3,.88) 6%,rgba(7,2,3,.15) 75%),var(--hb,none) center/cover,#12060a;box-shadow:0 10px 30px rgba(0,0,0,.5),inset 0 0 60px rgba(255,59,78,.08)}
.view-title:not(.page-hero){padding:18px 20px;border-radius:18px;border:1px solid #5b1c25;background:linear-gradient(90deg,rgba(7,2,3,.92),rgba(40,6,14,.6)),url(/img/bgs/hyper-space.webp) center/cover}
.page-hero h2,.view-title h1{text-shadow:0 2px 14px rgba(0,0,0,.8)}
#view-guides .page-hero,#view-guides .news-hero{--hb:url(/img/bgs/volcano.webp)}
#view-tools .page-hero,#view-tools .news-hero{--hb:url(/img/bgs/retrowave.webp)}
#view-creators .page-hero,#view-creators .news-hero{--hb:url(/img/bgs/matrix.webp)}
#view-collection .page-hero,#view-collection .news-hero{--hb:url(/img/bgs/supernova.webp)}
#view-battle .page-hero,#view-battle .news-hero{--hb:url(/img/bgs/cyberpunk.webp)}
#view-giveaways .page-hero,#view-giveaways .news-hero{--hb:url(/img/bgs/party.webp)}
#view-labs .page-hero,#view-labs .news-hero{--hb:url(/img/bgs/event-horizon.webp)}
#view-about .page-hero,#view-about .news-hero{--hb:url(/img/bgs/aurora.webp)}
#view-news .page-hero,#view-news .news-hero{--hb:url(/img/bgs/crimson-horror.webp)}

/* ---- site-wide: cards, tabs, buttons ---- */
.card{border-radius:16px;border-color:#5a1a24;background:linear-gradient(180deg,#2a0b12 0%,#14060a 100%);transition:border-color .15s,box-shadow .15s}
a.card:hover,.card:hover{border-color:#8a2330}
.card h2,.card h3{letter-spacing:.02em}
.btn{border-radius:12px}
.tabbar-inner .tab{border-radius:12px}
.tabbar-inner .tab.active,.tabbar-inner .tab[aria-current="page"]{box-shadow:0 0 18px rgba(255,59,78,.35)}
body{background-image:radial-gradient(ellipse 70% 40% at 50% 0%,rgba(120,16,34,.28),transparent 70%)}
details.faq,.gd-sec{border-radius:14px}
@media(max-width:700px){.page-hero,.news-hero{border-radius:16px}}

/* ---- home: new hero + Today strip ---- */
#view-home .hero,#view-home .td-jump{display:none!important}
.tcx-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:1.05fr .95fr;align-items:center;gap:10px;min-height:340px;padding:34px 36px;border-radius:24px;border:1px solid #5b1c25;background:linear-gradient(90deg,rgba(7,2,3,.9) 10%,rgba(7,2,3,.1) 80%),url(/img/bgs/hyper-space.webp) center/cover,#070203;box-shadow:0 14px 40px rgba(0,0,0,.55)}
.tcx-hero .tcx-kick{display:inline-block;padding:4px 10px;border-radius:999px;border:1px solid #8a2330;background:rgba(7,2,3,.6);font-size:.68rem;letter-spacing:.14em;color:#ff9aa4}
.tcx-hero h2{margin:12px 0 10px;font-size:clamp(2rem,4.6vw,3.5rem);line-height:1.02;text-shadow:0 2px 20px rgba(0,0,0,.7)}
.tcx-hero h2 span{display:block;color:#ff4d5e}
.tcx-hero p{margin:0 0 18px;max-width:430px;color:#e9dadd}
.tcx-btns{display:flex;flex-wrap:wrap;gap:10px}
.tcx-btns a{padding:12px 20px;border-radius:12px;font-weight:700;text-decoration:none;border:1px solid #8a3340;background:rgba(7,2,3,.65);color:#fff}
.tcx-btns a.p{background:#ff4d5e;border-color:#ff4d5e;color:#1a0206}
.tcx-stage{position:relative;justify-self:center;width:min(100%,330px);aspect-ratio:1}
.tcx-stage:before{content:"";position:absolute;inset:6%;border-radius:50%;border:1px solid #8a2330;background:radial-gradient(circle,rgba(255,59,78,.22),transparent 70%);box-shadow:0 0 60px rgba(255,59,78,.3) inset}
.tcx-stage .tw{position:absolute;inset:12% 18%;width:64%;height:76%;object-fit:contain;filter:drop-shadow(0 0 26px rgba(255,59,78,.6))}
.tcx-stage .fr{position:absolute;width:20%;height:20%;object-fit:contain;filter:drop-shadow(0 0 10px #ff3b4e);animation:tcxf 5s ease-in-out infinite}
.tcx-stage .fr:nth-of-type(2){left:2%;top:10%}.tcx-stage .fr:nth-of-type(3){right:0;top:6%;animation-delay:-1.2s}.tcx-stage .fr:nth-of-type(4){left:4%;bottom:6%;animation-delay:-2.4s}.tcx-stage .fr:nth-of-type(5){right:4%;bottom:10%;animation-delay:-3.6s}
@keyframes tcxf{50%{transform:translateY(-8px)}}
@media(prefers-reduced-motion:reduce){.tcx-stage .fr{animation:none}}
#view-home .today{background:none;border:0;padding:0;margin:0}
#view-home .td-row{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
#view-home .td-i{display:block;padding:14px 18px;border-radius:14px;border:1px solid #3a1218;background:#12060a;text-decoration:none;color:inherit}
#view-home .td-i small{display:block;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:#ff9aa4}
#view-home .td-i b{font-size:1.05rem}
@media(max-width:700px){.tcx-hero{grid-template-columns:1fr;text-align:center;padding:24px 16px;background:linear-gradient(180deg,rgba(7,2,3,.5),#070203 95%),url(/img/bgs/hyper-space.webp) center/cover}.tcx-hero p{margin-left:auto;margin-right:auto}.tcx-btns{flex-direction:column}.tcx-stage{order:-1;width:min(70%,240px)}#view-home .td-row{grid-template-columns:1fr}}

#view-home>.tcx-hero{grid-column:1/-1;order:-4}
#view-home>.today{order:-3}
#view-home>.tcx{grid-column:1/-1;order:-2}

/* crop the light strip baked into the right edge of the game background images */
.tcx-hero,.page-hero,.news-hero,.view-title:not(.page-hero){background-size:100% 100%,114% 114%,auto;background-position:0 0,center,0 0}
.tcx-card{background-size:114% 114%;background-position:center}
@media(max-width:700px){.tcx-hero{background-size:100% 100%,114% 114%;background-position:0 0,center}}

/* clickable enemies and bots (js/hero-3d.js) live on the new hero stage */
.tcx-hero{min-height:440px;overflow:hidden}
.tcx-stage.hero-stage{width:min(100%,340px);margin:0!important;transform:none!important;justify-self:center}
.tcx-stage.hero-stage .tw{z-index:2;pointer-events:none}
@media(max-width:700px){.tcx-hero{min-height:0;padding:18px 14px 26px}.tcx-stage.hero-stage{width:min(100%,360px);margin:44px auto 56px!important}}
html.desk #view-home .tcx-hero .hero-stage{grid-column:2;grid-row:1;margin-right:0}
html.desk #view-home .tcx-hero>div:first-child{grid-column:1;grid-row:1}

.tcx h2.tcx-h{display:flex;align-items:baseline;justify-content:space-between;gap:12px}
.tcx-all{font-size:.8rem;font-weight:700;color:#ff4d5e!important;white-space:nowrap}
.tcx-all:hover{text-decoration:underline!important}

#view-home .tcx-ev{display:flex;flex-direction:column;gap:8px}
#view-home .tcx-ev .tcx-evt{display:block;text-decoration:none;color:inherit}
#view-home .tcx-ev .tcx-evt small{display:block;font-size:.68rem;letter-spacing:.14em;text-transform:uppercase;color:#ff9aa4}
#view-home .tcx-ev .tcx-evt b{font-size:1.05rem}
.tcx-evr{display:flex;flex-wrap:wrap;gap:6px}
.tcx-evr a{display:block;border-radius:12px;border:1px solid #5b1c25;background:rgba(7,2,3,.7);padding:3px;transition:transform .15s,border-color .15s,box-shadow .15s}
.tcx-evr a:hover,.tcx-evr a:focus-visible{transform:translateY(-2px);border-color:#ff4658;box-shadow:0 0 14px rgba(255,59,78,.45)}
.tcx-evr img{display:block;width:44px;height:44px;object-fit:contain}

.tcx-evr a{position:relative}
.tcx-evr a[data-n]:hover::after,.tcx-evr a[data-n]:focus-visible::after{content:attr(data-n);position:absolute;left:50%;bottom:calc(100% + 8px);transform:translateX(-50%);white-space:nowrap;background:#12060a;color:#fff;border:1px solid #ff4658;border-radius:8px;padding:5px 9px;font-size:.78rem;font-weight:600;z-index:30;pointer-events:none;box-shadow:0 4px 14px rgba(0,0,0,.6)}
.tcx-evr a.th{border-color:#ff4658;background:rgba(60,8,16,.8)}

/* page banner art */
.page-hero,.news-hero{min-height:120px}
.page-hero::before,.page-hero::after,.news-hero::before,.news-hero::after{content:"";position:absolute;pointer-events:none;background-repeat:no-repeat;background-size:contain;background-position:center}
.page-hero::after,.news-hero::after{right:18px;top:50%;width:104px;height:104px;margin-top:-52px;filter:drop-shadow(0 0 18px rgba(255,59,78,.55))}
.page-hero::before,.news-hero::before{right:132px;top:50%;width:54px;height:54px;margin-top:-27px;opacity:.55;filter:drop-shadow(0 0 10px rgba(255,59,78,.4))}
#view-guides .page-hero::after,#view-guides .news-hero::after{background-image:url(/img/icons/perk.webp)}
#view-guides .page-hero::before,#view-guides .news-hero::before{background-image:url(/img/icons/modules.webp)}
#view-tools .page-hero::after,#view-tools .news-hero::after{background-image:url(/img/icons/lab.webp)}
#view-tools .page-hero::before,#view-tools .news-hero::before{background-image:url(/img/icons/gem.webp)}
#view-creators .page-hero::after,#view-creators .news-hero::after{background-image:url(/img/icons/medal.webp)}
#view-creators .page-hero::before,#view-creators .news-hero::before{background-image:url(/img/icons/coin.webp)}
#view-collection .page-hero::after,#view-collection .news-hero::after{background-image:url(/img/icons/modules.webp)}
#view-collection .page-hero::before,#view-collection .news-hero::before{background-image:url(/img/icons/tier.webp)}
#view-news .page-hero::after,#view-news .news-hero::after{background-image:url(/img/logo-orbit-tower.webp)}
#view-news .page-hero::before,#view-news .news-hero::before{background-image:url(/img/icons/medal.webp)}
#view-battle .page-hero::after,#view-battle .news-hero::after{background-image:url(/img/icons/enemy-boss.webp)}
#view-battle .page-hero::before,#view-battle .news-hero::before{background-image:url(/img/icons/enemy-commander.webp)}
#view-giveaways .page-hero::after,#view-giveaways .news-hero::after{background-image:url(/img/icons/gem.webp)}
#view-giveaways .page-hero::before,#view-giveaways .news-hero::before{background-image:url(/img/icons/coin.webp)}
#view-labs .page-hero::after,#view-labs .news-hero::after{background-image:url(/img/icons/lab.webp)}
#view-labs .page-hero::before,#view-labs .news-hero::before{background-image:url(/img/icons/cells.webp)}
#view-about .page-hero::after,#view-about .news-hero::after{background-image:url(/img/logo-orbit-tower.webp)}
#view-about .page-hero::before,#view-about .news-hero::before{background-image:url(/img/icons/tier.webp)}
@media(max-width:600px){.page-hero::after,.news-hero::after{width:64px;height:64px;margin-top:-32px;right:10px;opacity:.9}.page-hero::before,.news-hero::before{display:none}.page-hero h2,.news-hero h2{padding-right:70px}}

/* mobile + banner fixes: the old news-hero stripe overlay (inset:0) left my art stuck at the left edge */
.page-hero::after,.news-hero::after,.page-hero::before,.news-hero::before{left:auto;bottom:auto;inset-inline-start:auto;z-index:0}
.page-hero .hero-tower,.news-hero .hero-tower{display:none!important}
.news-hero-orb,.news-hero-steam{position:absolute!important}
.news-hero-text{position:relative;z-index:1;flex:1 1 auto;min-width:0}
.page-hero h2,.news-hero h2,.news-hero-text{min-width:0;overflow-wrap:normal;word-break:normal}
@media(max-width:600px){
 .page-hero,.news-hero{padding:16px 84px 16px 16px!important;min-height:96px}
 .page-hero h2,.news-hero h2{padding-right:0!important;font-size:1.45rem;line-height:1.15}
 .news-q,#view-news input[type=search],.view input[type=search]{width:100%!important;max-width:100%;box-sizing:border-box}
 .view{max-width:100%;grid-template-columns:minmax(0,1fr)!important}
 .view>*{min-width:0;max-width:100%}
 .view .card,.view .card h2,.view .card h3{overflow-wrap:anywhere}
 .view .card h2,.view .card h3{white-space:normal!important}
 .view img{max-width:100%;height:auto}
 .view table{max-width:100%}
}

/* live pill in hero */
.tcx-live{display:inline-flex;align-items:center;gap:8px;margin:0 0 12px;padding:6px 12px;border-radius:999px;border:1px solid #ff4658;background:rgba(255,59,78,.14);color:#ffe4e7;font-size:.72rem;font-weight:700;letter-spacing:.08em;text-decoration:none;text-transform:uppercase}
.tcx-live::before{content:"";width:8px;height:8px;border-radius:50%;background:#ff4658;box-shadow:0 0 0 0 rgba(255,70,88,.7);animation:tcxPulse 1.8s infinite}
.tcx-live[hidden]{display:none}
@keyframes tcxPulse{70%{box-shadow:0 0 0 8px rgba(255,70,88,0)}100%{box-shadow:0 0 0 0 rgba(255,70,88,0)}}
@media(prefers-reduced-motion:reduce){.tcx-live::before{animation:none}}
/* small icons on section headings inside pages */
#view-labs .card h3::before,#view-about .card h3::before,#view-giveaways .card h3::before,#view-tools .card h3::before,#view-creators .card h3::before{content:"";display:inline-block;width:20px;height:20px;margin-right:8px;vertical-align:-4px;background-size:contain;background-repeat:no-repeat;background-position:center}
#view-labs .card h3::before{background-image:url(/img/icons/lab.webp)}
#view-about .card h3::before{background-image:url(/img/icons/tier.webp)}
#view-giveaways .card h3::before{background-image:url(/img/icons/gem.webp)}
#view-tools .card h3::before{background-image:url(/img/icons/modules.webp)}
#view-creators .card h3::before{background-image:url(/img/icons/medal.webp)}
