/* Horse Tech -- the game's ANIMAL RESEARCH CENTER (Menu_GLMountTech_UGUI) on the research page.
   Stage in game units (4600 x 888), --s = px per unit. The detail panel uses castle-facilities.css.
   Square cuts only (no rounded corners). */
.inv-htech{display:none;position:relative;container-type:inline-size;--s:.6;background:#0d0b09 url(../images/horse-tech/room.webp) center/cover no-repeat;color:#e8eef6;font-family:Inter,system-ui,sans-serif;overflow:clip}
.inv-research[data-rtab="horse"] .inv-htech{display:block}
.inv-research[data-rtab="horse"] .inv-research-main,
.inv-research[data-rtab="horse"] .inv-research-stats,
.inv-research[data-rtab="horse"] .inv-rtabs__tools,
.inv-research[data-rtab="horse"] .inv-tree-detail,
.inv-research[data-rtab="horse"] .inv-tree-detail__backdrop{display:none!important}
.inv-htech::before{content:"";position:absolute;inset:0;background:radial-gradient(ellipse at 50% 50%,rgba(0,0,0,.05),rgba(0,0,0,.55));pointer-events:none}

.inv-htech__top{position:absolute;z-index:3;top:8px;right:10px}

.inv-htech__view{position:relative;z-index:1;-webkit-mask-image:linear-gradient(to right,transparent 0,#000 14%,#000 86%,transparent 100%),linear-gradient(to bottom,transparent 0,#000 10%,#000 78%,transparent 100%);-webkit-mask-composite:source-in;mask-image:linear-gradient(to right,transparent 0,#000 14%,#000 86%,transparent 100%),linear-gradient(to bottom,transparent 0,#000 10%,#000 78%,transparent 100%);mask-composite:intersect;overflow-x:auto;overflow-y:hidden;overscroll-behavior-x:contain;scrollbar-width:none;cursor:grab;padding:70px 0 90px;-webkit-user-select:none;user-select:none}
.inv-htech__view::-webkit-scrollbar{display:none}
.inv-htech__view.is-drag{cursor:grabbing}
.inv-htech__stage{position:relative;width:calc(4600px * var(--s));height:calc(888px * var(--s))}
.inv-htech__msg{position:sticky;left:0;width:100cqw;padding-top:80px;text-align:center;color:#cfd8e6}

/* Column arc lines (icon_mounttech_line*, 200 x 888 in the prefab) */
.inv-htech__line{position:absolute;top:0;left:calc(var(--x) * var(--s) * 1px);width:calc(200px * var(--s));height:100%;object-fit:fill;pointer-events:none;opacity:.9}

/* Node: Pan_GLMountTech_UGUI -- 128 frame, 76 icon, 160 select ring, x/max plate 57 below */
.inv-htech__node{position:absolute;left:calc(var(--x) * var(--s) * 1px);top:calc(var(--y) * var(--s) * 1px);width:calc(128px * var(--s));height:calc(128px * var(--s));transform:translate(-50%,-50%);padding:0;margin:0;border:0;background:none;cursor:pointer;color:inherit}
.inv-htech__node > img{position:absolute;pointer-events:none}
.inv-htech__bg{inset:0;width:100%;height:100%}
.inv-htech__ic{left:50%;top:50%;width:calc(76px * var(--s));height:calc(76px * var(--s));transform:translate(-50%,-50%)}
.inv-htech__lock{display:none;left:calc(63px * var(--s));top:calc(1px * var(--s));width:calc(56px * var(--s));height:calc(56px * var(--s))}
.inv-htech__ic{opacity:.5}
.inv-htech__node.is-max .inv-htech__ic{opacity:1}
.inv-htech__node.is-locked .inv-htech__lock{display:block}
.inv-htech__node.is-locked .inv-htech__ic{filter:grayscale(1) brightness(.6)}
.inv-htech__ring{position:absolute;left:50%;top:50%;width:calc(160px * var(--s));height:calc(160px * var(--s));transform:translate(-50%,-50%);background:url(../images/horse-tech/pic_mount_23.webp) center/contain no-repeat;opacity:0;pointer-events:none}
.inv-htech__node.is-sel .inv-htech__ring{opacity:1}
.inv-htech__node.is-sel::before{content:"";position:absolute;left:50%;top:50%;width:calc(260px * var(--s));height:calc(260px * var(--s));transform:translate(-50%,-50%);background:url(../images/horse-tech/pic_mount_24.webp) center/contain no-repeat;pointer-events:none}
.inv-htech__num{position:absolute;left:50%;top:calc(100% + 1px);transform:translateX(-50%);min-width:calc(132px * var(--s));padding:1px 6px;background:linear-gradient(90deg,transparent,rgba(10,12,16,.85) 22%,rgba(10,12,16,.85) 78%,transparent);text-shadow:0 1px 2px #000;font:500 calc(26px * var(--s))/1.25 Inter,sans-serif;color:#e8eef6;white-space:nowrap;text-align:center}
.inv-htech__num em{font-style:normal;color:#f0cf7c}
.inv-htech__node.is-locked .inv-htech__num em{color:#e8eef6}
.inv-htech__node:hover .inv-htech__bg{filter:brightness(1.25)}

/* Pan_Bg strips + pic_mount_25 (prefab: strips 2316 x 620 in a 2 x 2 around the centre, ring 868 at y -3) */
.inv-htech__fx{position:absolute;left:calc(var(--x) * var(--s) * 1px);top:50%;width:calc(4632px * var(--s));height:calc(1240px * var(--s));transform:translate(-50%,-50%);display:grid;grid-template-columns:1fr 1fr;pointer-events:none}
.inv-htech__fx img{width:100%;height:100%;object-fit:fill;display:block}
.inv-htech__ring25{position:absolute;left:calc(var(--x) * var(--s) * 1px);top:calc(50% + 3px * var(--s));width:calc(868px * var(--s));height:calc(868px * var(--s));transform:translate(-50%,-50%);pointer-events:none}

/* Pan_Mount at y -21: emblem 256, gold horse fill 200 x 172 at (1, +29) relative (dump shows absolute +8), % plate 132 below */
.inv-htech__mid{position:absolute;left:calc(var(--x) * var(--s) * 1px);top:calc(50% + 21px * var(--s));width:calc(300px * var(--s));height:calc(300px * var(--s));transform:translate(-50%,-50%);pointer-events:none}
.inv-htech__emb{position:absolute;left:50%;top:50%;width:calc(256px * var(--s));height:calc(256px * var(--s));transform:translate(-50%,-50%)}
.inv-htech__fill{position:absolute;left:calc(50% + 1px * var(--s));top:calc(50% - 29px * var(--s));width:calc(200px * var(--s));height:calc(172px * var(--s));transform:translate(-50%,-50%);background:linear-gradient(to top,#ecc66e var(--p),transparent var(--p));-webkit-mask:url(../images/horse-tech/pic_mount_27.webp) center/contain no-repeat;mask:url(../images/horse-tech/pic_mount_27.webp) center/contain no-repeat}
.inv-htech__pct{position:absolute;left:50%;top:calc(50% + 132px * var(--s));transform:translate(-50%,-50%);min-width:calc(220px * var(--s));padding:calc(4px * var(--s)) calc(24px * var(--s));background:linear-gradient(90deg,transparent,rgba(16,20,24,.9) 18%,rgba(16,20,24,.9) 82%,transparent);text-align:center;font:600 calc(44px * var(--s))/1.1 Georgia,'Times New Roman',serif;color:#f0cf7c;text-shadow:0 2px 4px #000;white-space:nowrap}

/* The game fades the whole scroller -- nodes too -- into the room at the screen edges (user 11-19) */
/* Left / Right (m_PanArrow: frame_mount_20 plate) -- outside the scroller, sticky at the screen foot */
.inv-htech__pan{position:absolute;z-index:3;bottom:18px;display:flex;align-items:center;gap:8px;height:52px;min-width:150px;padding:0 18px;border:0;cursor:pointer;background:url(../images/horse-tech/frame_mount_20.webp) center/100% 100% no-repeat;color:#e8eef6;font:600 1.05rem Georgia,'Times New Roman',serif}
.inv-htech__pan.is-l{left:16px}
.inv-htech__pan.is-r{right:16px;justify-content:flex-end}
.inv-htech__pan span{width:12px;height:12px;border:solid #e8eef6;border-width:3px 3px 0 0;transform:rotate(-135deg)}
.inv-htech__pan.is-r span{transform:rotate(45deg)}
.inv-htech__pan:hover{filter:brightness(1.25)}

@container (max-width:759.98px){
	.inv-htech__top{top:6px;right:6px}
	.inv-htech__view{padding:50px 0 76px}
	.inv-htech__pan{height:42px;min-width:110px;font-size:.9rem;bottom:12px}
	.inv-htech__pan.is-l{left:8px}
	.inv-htech__pan.is-r{right:8px}
	.inv-htech .inv-cfac__cur{padding:2px 6px 2px 2px;gap:4px}
	.inv-htech .inv-cfac__cur img{width:32px;height:32px}
	.inv-htech .inv-cfac__cur b{font-size:1rem}
	.inv-htech .inv-cfac__pop{z-index:1000;background:rgba(8,12,20,.55)}
	.inv-htech .inv-cfac__card{width:100%;left:0}
	.inv-htech .inv-cfac__scrollc{padding:16px 12px 14px}
	.inv-htech .inv-cfac__hd h3{font-size:1.4rem}
	.inv-htech .inv-cfac__row,.inv-htech .inv-cfac__req{padding:10px 2px;font-size:.95rem}
	.inv-htech .inv-cfac__pcb img{width:48px;height:48px}
	.inv-htech .inv-cfac__step:not(.is-max){width:54px}
	.inv-htech .inv-cfac__bar{padding-right:0}
}
