:root{color-scheme:dark;--hud-bg:rgba(7,10,16,.72);--hud-line:rgba(127,188,255,.28);--hud-text:#e8f2ff;--health:#ff5d73;--shield:#64f3ff;--energy:#ffd76a;--accent:#9b7cff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Arial,sans-serif}*{box-sizing:border-box}html,body{width:100%;height:100%;margin:0;overflow:hidden;background:#050811;color:var(--hud-text)}#viewport{position:fixed;inset:0;width:100%;height:100%;display:block;outline:none;touch-action:none}.hud{position:fixed;left:16px;right:16px;top:14px;z-index:5;pointer-events:none;display:grid;grid-template-columns:minmax(260px,390px) 1fr minmax(220px,320px);gap:12px}.hudCard{background:var(--hud-bg);border:1px solid var(--hud-line);border-radius:18px;box-shadow:0 18px 48px rgba(0,0,0,.42);backdrop-filter:blur(12px);padding:12px}.hudTitle{font-weight:900;letter-spacing:.08em;text-transform:uppercase;font-size:12px;color:#c9ddff;margin-bottom:8px}.barRow{display:grid;grid-template-columns:58px 1fr 68px;align-items:center;gap:8px;margin:7px 0;font-size:12px;font-weight:800}.barShell{height:11px;border:1px solid rgba(255,255,255,.18);background:rgba(0,0,0,.35);border-radius:999px;overflow:hidden}.barFill{height:100%;width:100%;border-radius:999px}.health{background:linear-gradient(90deg,var(--health),#ff9cac)}.shield{background:linear-gradient(90deg,var(--shield),#b2fbff)}.energy{background:linear-gradient(90deg,var(--energy),#fff0a6)}.centerReadout{justify-self:center;text-align:center;min-width:260px}.reticle{width:30px;height:30px;margin:8px auto;border:1px solid rgba(100,243,255,.75);border-radius:50%;position:relative}.reticle:before,.reticle:after{content:"";position:absolute;background:rgba(100,243,255,.8)}.reticle:before{left:50%;top:4px;bottom:4px;width:1px}.reticle:after{top:50%;left:4px;right:4px;height:1px}.log{font-size:12px;color:#cce2ff;line-height:1.35;min-height:48px;white-space:pre-line}.statLine{font-size:12px;color:#cce2ff;display:flex;justify-content:space-between;gap:8px}.help{position:fixed;left:16px;bottom:14px;z-index:5;pointer-events:none;background:var(--hud-bg);border:1px solid var(--hud-line);border-radius:999px;padding:9px 13px;font-size:12px;color:#cfe2ff;box-shadow:0 14px 38px rgba(0,0,0,.35)}.kbd{border:1px solid rgba(160,190,238,.38);border-bottom-width:2px;border-radius:5px;padding:1px 5px;background:#101a2a;color:#fff;font-weight:800}body[data-hud-preset="minimal"] .hud{grid-template-columns:300px 1fr 220px}body[data-hud-preset="minimal"] .hudCard{border-radius:8px;background:rgba(0,0,0,.42);box-shadow:none}body[data-hud-preset="fantasy"]{--hud-bg:rgba(25,18,10,.78);--hud-line:rgba(255,215,106,.38);--accent:#ffd76a}body[data-hud-preset="tactical"]{--hud-bg:rgba(3,18,15,.76);--hud-line:rgba(84,255,159,.32);--accent:#54ff9f}body[data-hud-preset="classic"]{--hud-bg:rgba(13,20,35,.78);--hud-line:rgba(155,124,255,.34);--accent:#9b7cff}@media(max-width:820px){.hud{left:8px;right:8px;top:8px;grid-template-columns:1fr}.centerReadout,.rightHud{display:none}.help{left:8px;right:8px;bottom:8px;border-radius:14px}}


.skillBar{position:fixed;left:50%;bottom:76px;transform:translateX(-50%);z-index:6;display:flex;gap:8px;pointer-events:auto;background:rgba(8,12,22,.68);border:1px solid rgba(132,170,230,.24);border-radius:16px;padding:8px;box-shadow:var(--shadow);backdrop-filter:blur(12px)}
.skillSlot{min-width:78px;max-width:112px;border:1px solid rgba(132,170,230,.24);border-radius:12px;background:#0a1323;padding:6px 8px;font-size:11px;color:#cfe2ff;cursor:pointer}
.skillSlot.active{border-color:rgba(100,243,255,.85);background:#102640}.skillSlot .key{font-weight:900;color:var(--accent);margin-right:4px}.skillSlot .cost{display:block;color:var(--muted);font-size:10px}
.inventoryPanel{position:fixed;right:28px;top:96px;width:min(380px,calc(100vw - 56px));max-height:70vh;overflow:auto;z-index:8;pointer-events:auto;background:linear-gradient(180deg,rgba(16,23,38,.96),rgba(8,12,22,.96));border:1px solid rgba(132,170,230,.34);border-radius:18px;box-shadow:var(--shadow);padding:12px;backdrop-filter:blur(14px)}
.inventoryPanel.hidden{display:none}.inventoryHeader{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid rgba(132,170,230,.18);padding-bottom:8px;margin-bottom:8px;text-transform:uppercase;letter-spacing:.08em;font-size:12px;color:#d8e7ff}.equipmentText{font-size:12px;color:#cfe2ff;line-height:1.45;background:rgba(100,243,255,.045);border:1px solid rgba(100,243,255,.16);border-radius:12px;padding:8px;margin-bottom:8px;white-space:pre-wrap}.inventoryGrid{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.inventorySlot{min-height:64px;border:1px solid rgba(132,170,230,.22);border-radius:12px;background:#081221;padding:7px;font-size:11px;color:#cfe2ff;cursor:pointer;display:flex;flex-direction:column;justify-content:space-between}.inventorySlot.empty{opacity:.45;cursor:default}.inventorySlot:hover:not(.empty){border-color:rgba(100,243,255,.62);filter:brightness(1.1)}.inventorySlot .qty{color:var(--warn);font-weight:900}.inventoryHint{font-size:11px;color:var(--muted);line-height:1.35;margin-top:8px}.runtimeHud .statLine.activeSkill{color:var(--accent)}
@media(max-width:760px){.skillBar{left:8px;right:8px;bottom:8px;transform:none;overflow:auto;justify-content:flex-start}.inventoryPanel{left:8px;right:8px;top:8px;width:auto}.inventoryGrid{grid-template-columns:repeat(3,1fr)}}


/* v0.4.13 equipment-slot and attack/spell-effect infrastructure UI */
.equipmentSummary{font-size:12px;color:#d9f7ff;margin-bottom:8px;line-height:1.35}.equipmentSlotLine{display:grid;grid-template-columns:120px 1fr;gap:8px;align-items:center;border-top:1px solid rgba(132,170,230,.12);padding:4px 0;font-size:11px}.equipmentSlotLine span{color:#9db4d5;text-transform:uppercase;letter-spacing:.06em;font-weight:800}.equipmentSlotLine strong{color:#eef6ff;font-weight:900;text-align:right;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.inventorySlot span{line-height:1.2}


/* v0.4.13 separate equipment panel, skills panel, level HUD, save/load controls */
.xp{background:linear-gradient(90deg,#9b7cff,#d9c7ff)}
.equipmentPanel{position:fixed;left:28px;top:96px;width:min(360px,calc(100vw - 56px));max-height:70vh;overflow:auto;z-index:8;pointer-events:auto;background:linear-gradient(180deg,rgba(16,23,38,.96),rgba(8,12,22,.96));border:1px solid rgba(132,170,230,.34);border-radius:18px;box-shadow:var(--shadow,0 18px 48px rgba(0,0,0,.42));padding:12px;backdrop-filter:blur(14px)}
.equipmentPanel.hidden,.skillPanel.hidden{display:none}.skillPanel{position:fixed;left:28px;bottom:96px;width:min(420px,calc(100vw - 56px));max-height:42vh;overflow:auto;z-index:8;pointer-events:auto;background:linear-gradient(180deg,rgba(16,23,38,.96),rgba(8,12,22,.96));border:1px solid rgba(132,170,230,.34);border-radius:18px;box-shadow:var(--shadow,0 18px 48px rgba(0,0,0,.42));padding:12px;backdrop-filter:blur(14px)}
.skillPanelBody{display:grid;gap:7px}.skillPanelRow{border:1px solid rgba(132,170,230,.22);border-radius:12px;background:#081221;color:#cfe2ff;padding:8px;text-align:left;display:grid;gap:3px;cursor:pointer}.skillPanelRow.active{border-color:rgba(100,243,255,.8);background:#102640}.skillPanelRow.locked,.skillSlot.locked{opacity:.48;filter:saturate(.6)}.skillPanelRow span,.skillPanelRow em{font-size:11px;color:#9db4d5}.skillPanelRow em{font-style:normal;color:#ffd76a}.inventoryPanel{right:28px}.inventoryPanel .equipmentText{display:none}
@media(max-width:760px){.equipmentPanel,.skillPanel{left:8px;right:8px;width:auto}.skillPanel{bottom:76px}.equipmentPanel{top:8px}}



/* TitanForge v0.4.13 project menu / UI customization foundation */
.tfContextMenu{position:fixed;z-index:50;min-width:210px;display:grid;gap:4px;padding:8px;background:linear-gradient(180deg,rgba(16,23,38,.98),rgba(7,10,18,.98));border:1px solid rgba(100,243,255,.36);border-radius:14px;box-shadow:0 20px 60px rgba(0,0,0,.55);backdrop-filter:blur(14px);pointer-events:auto}.tfContextMenu.hidden{display:none}.tfContextMenu button{border:1px solid rgba(132,170,230,.24);background:#0b1728;color:#eaf5ff;border-radius:9px;padding:8px 10px;text-align:left;font-weight:800;cursor:pointer}.tfContextMenu button:hover{border-color:rgba(100,243,255,.75);filter:brightness(1.1)}.tfModalBackdrop{position:fixed;inset:0;z-index:45;display:flex;align-items:center;justify-content:center;background:rgba(1,5,12,.58);backdrop-filter:blur(8px);pointer-events:auto}.tfModalBackdrop.hidden{display:none}.tfModal{width:min(760px,calc(100vw - 32px));max-height:min(78vh,720px);overflow:auto;background:linear-gradient(180deg,rgba(16,23,38,.98),rgba(6,10,18,.98));border:1px solid rgba(100,243,255,.32);border-radius:20px;box-shadow:0 28px 80px rgba(0,0,0,.62);padding:14px;color:#eaf5ff}.tfModalHeader{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid rgba(132,170,230,.20);padding-bottom:10px;margin-bottom:12px}.tfModalHeader strong{display:block;text-transform:uppercase;letter-spacing:.08em;font-size:14px}.tfModalHeader span,.tfModalFooter,.tfMenuTile span,.tfSaveList span{display:block;color:#9fb7d8;font-size:12px;line-height:1.35}.tfIconBtn{width:32px;height:32px;border-radius:999px;border:1px solid rgba(132,170,230,.28);background:#111d31;color:#fff;font-size:20px;line-height:1;cursor:pointer}.tfModalGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.tfMenuTile,.tfSaveList button{border:1px solid rgba(132,170,230,.24);border-radius:14px;background:#0b1728;color:#eaf5ff;padding:10px;text-align:left;cursor:pointer}.tfMenuTile:hover,.tfSaveList button:hover{border-color:rgba(100,243,255,.72);filter:brightness(1.08)}.tfMenuTile strong,.tfSaveList strong{display:block;margin-bottom:3px}.tfModalSection{margin-top:12px;padding-top:10px;border-top:1px solid rgba(132,170,230,.18)}.tfSectionTitle{text-transform:uppercase;letter-spacing:.08em;font-size:12px;font-weight:900;color:#cfe2ff;margin-bottom:8px}.tfSaveList{display:grid;gap:7px}.tfModalFooter{margin-top:12px;border-top:1px solid rgba(132,170,230,.16);padding-top:10px}.uiSkinNote{font-size:11px;color:#9fb7d8}@media(max-width:700px){.tfModalGrid{grid-template-columns:1fr}.tfModal{max-height:84vh}.tfContextMenu{max-width:calc(100vw - 24px)}}

/* v0.4.13: runtime menu pause state hook for future HUD/menu skins. */
body.tfPaused { cursor: default; }


/* v0.4.14 character attributes, alignment, THEL, affix visibility */
.attributePanel{border:1px solid rgba(100,243,255,.18);background:rgba(100,243,255,.045);border-radius:14px;padding:9px;margin:8px 0;display:grid;gap:6px}.attributeHeader{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid rgba(132,170,230,.15);padding-bottom:6px;margin-bottom:2px}.attributeHeader strong,.equipmentSectionTitle{text-transform:uppercase;letter-spacing:.08em;font-size:11px;color:#d8e7ff}.attributeHeader span{font-size:10px;color:#ffd76a}.attributeLine{display:grid;grid-template-columns:1fr auto 28px;gap:7px;align-items:center;font-size:11px}.attributeLine span{color:#9db4d5;font-weight:800}.attributeLine strong{color:#eef6ff;text-align:right}.attributeLine em{font-style:normal;color:#82ffb4;font-size:10px}.attributeLine button{width:26px;height:24px;border-radius:8px;border:1px solid rgba(100,243,255,.32);background:#0b1728;color:#eaf5ff;font-weight:900;cursor:pointer}.attributeLine button:disabled{opacity:.35;cursor:not-allowed}.derivedStatsGrid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;margin:5px 0}.derivedStatsGrid div{border:1px solid rgba(132,170,230,.16);border-radius:10px;background:rgba(6,11,20,.46);padding:6px;text-align:center}.derivedStatsGrid span{display:block;color:#9fb7d8;font-size:9px;text-transform:uppercase;letter-spacing:.06em}.derivedStatsGrid strong{display:block;color:#fff;font-size:12px;margin-top:2px}.alignmentCard{display:grid;gap:3px;border:1px solid rgba(255,215,106,.2);background:rgba(255,215,106,.045);border-radius:12px;padding:7px}.alignmentCard strong{color:#ffd76a}.alignmentCard span,.affixHint{color:#9fb7d8;font-size:10px;line-height:1.35}.equipmentSectionTitle{margin-top:7px;color:#9fefff}.equipmentSlotLine strong small,.equipmentSlotLine strong em{display:block;font-style:normal;font-size:10px;color:#83f5ff;white-space:normal;line-height:1.25;margin-top:2px}


/* v0.4.18 inventory equipment UX, quality colors, tooltips, drag/drop delete modal */
.inventorySlot{position:relative}.inventorySlot.equipped{box-shadow:inset 0 0 0 1px rgba(255,215,106,.55);background:linear-gradient(180deg,#101d31,#081221)}.inventorySlot[draggable="true"],.equipmentDropSlot[draggable="true"]{cursor:grab}.inventorySlot[draggable="true"]:active,.equipmentDropSlot[draggable="true"]:active{cursor:grabbing}.quality-normal strong{color:#fff}.quality-magical strong{color:#5dff7a}.quality-rare strong{color:#58a6ff}.quality-epic strong{color:#c77dff}.quality-mythical strong{color:#ff4b5f}.quality-unique strong{color:#ffd76a}.equipmentDropSlot{border:1px solid rgba(132,170,230,.14);border-radius:10px;padding:5px 6px;margin:3px 0;background:rgba(6,11,20,.22)}.equipmentDropSlot.empty{opacity:.8}.equipmentDropSlot:hover{border-color:rgba(100,243,255,.48)}body.draggingItem .inventoryPanel,body.draggingItem .equipmentPanel{outline:1px dashed rgba(255,215,106,.48);outline-offset:4px}.itemTooltip{position:fixed;z-index:80;width:min(520px,calc(100vw - 32px));pointer-events:none;background:linear-gradient(180deg,rgba(12,18,32,.98),rgba(5,8,15,.98));border:1px solid rgba(100,243,255,.34);border-radius:14px;box-shadow:0 20px 70px rgba(0,0,0,.62);padding:10px;color:#eaf5ff;font-size:12px}.itemTooltip.hidden{display:none}.tooltipItemCard{display:grid;gap:3px;padding-bottom:7px;margin-bottom:7px;border-bottom:1px solid rgba(132,170,230,.18)}.tooltipItemCard strong{font-size:14px}.tooltipItemCard span,.tooltipItemCard em,.tooltipItemCard small,.tooltipHint{font-style:normal;color:#9fb7d8;font-size:11px;line-height:1.35}.tooltipCompare{display:grid;grid-template-columns:1fr 1fr;gap:5px}.tooltipCompare.single{grid-template-columns:1fr}.tooltipCompare>strong,.tooltipCompare div strong{display:block;text-transform:uppercase;letter-spacing:.07em;color:#cfe2ff;font-size:10px}.tooltipCompare div em{display:block;color:#9fb7d8;font-style:normal;font-size:10px;margin-bottom:3px}.tooltipCompare span{display:flex;justify-content:space-between;gap:8px;border:1px solid rgba(132,170,230,.13);border-radius:8px;padding:4px 6px;background:rgba(255,255,255,.025);font-size:11px}.tooltipCompare span b{font-weight:800;color:#cfe2ff}.diff-pos{color:#5dff7a}.diff-neg{color:#ff5d73}.diff-same{color:#ffffff}.tooltipHint{margin-top:8px;border-top:1px solid rgba(132,170,230,.15);padding-top:6px}.discardItemDialog p{line-height:1.45;color:#d9e9ff}.tfModalActions{display:flex;gap:8px;justify-content:flex-end;margin-top:12px}.tfModalActions button{border:1px solid rgba(132,170,230,.28);background:#0b1728;color:#eaf5ff;border-radius:10px;padding:8px 12px;font-weight:900;cursor:pointer}.tfModalActions button:hover{border-color:rgba(100,243,255,.72)}


/* v0.4.18 embedded SVG equipment icons */
.inventorySlot{min-height:78px;align-items:stretch;text-align:left;gap:4px}.inventorySlot strong{display:block;line-height:1.15;min-height:1.25em}.inventorySlot .itemSlotMeta{font-size:10px;color:#9fb7d8;text-transform:uppercase;letter-spacing:.055em}.itemIcon{width:34px;height:34px;display:inline-grid;place-items:center;align-self:center;margin:0 auto 2px;border-radius:11px;background:rgba(255,255,255,.06);border:1px solid var(--item-quality-color,#fff);box-shadow:0 0 14px rgba(255,255,255,.08),inset 0 0 12px rgba(255,255,255,.045);color:var(--item-quality-color,#fff);flex:0 0 auto}.itemIcon svg{width:27px;height:27px;display:block;fill:currentColor;stroke:#06101d;stroke-width:1.75;stroke-linejoin:round}.itemIcon .i-hi{fill:rgba(255,255,255,.68);stroke:rgba(255,255,255,.35);stroke-width:.75}.tooltipItemCard{grid-template-columns:auto 1fr;align-items:center}.tooltipItemCard .tooltipIcon{grid-row:1 / span 4}.tooltipIcon{width:46px;height:46px;display:inline-grid;place-items:center;border-radius:14px;background:rgba(255,255,255,.07);border:1px solid var(--item-quality-color,#fff);color:var(--item-quality-color,#fff);box-shadow:0 0 18px rgba(255,255,255,.08),inset 0 0 14px rgba(255,255,255,.05)}.tooltipIcon svg{width:35px;height:35px;fill:currentColor;stroke:#06101d;stroke-width:1.6;stroke-linejoin:round}.tooltipIcon .i-hi{fill:rgba(255,255,255,.7);stroke:rgba(255,255,255,.38);stroke-width:.75}.equipmentSlotLine strong{display:flex;align-items:center;justify-content:flex-end;gap:7px}.equipmentSlotLine .slotItemText{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.equipmentSlotIcon{width:28px;height:28px;display:inline-grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.05);border:1px solid var(--item-quality-color,#fff);color:var(--item-quality-color,#fff);box-shadow:inset 0 0 10px rgba(255,255,255,.04);flex:0 0 28px}.equipmentSlotIcon svg{width:22px;height:22px;fill:currentColor;stroke:#06101d;stroke-width:1.7;stroke-linejoin:round}.equipmentSlotIcon .i-hi{fill:rgba(255,255,255,.68);stroke:rgba(255,255,255,.35);stroke-width:.75}.equipmentSlotLine.empty strong{opacity:.7}.equipmentSlotLine.empty .slotItemText{color:#9fb7d8}.iconSystemNote{font-size:10px;color:#9fb7d8;line-height:1.35;border-top:1px solid rgba(132,170,230,.12);padding-top:6px;margin-top:6px}


/* v0.4.20 viewport-safe character equipment / attributes / paperdoll dock (superseded by v0.4.21 cascade overrides below) */
.equipmentPanel{left:18px;top:86px;width:min(900px,calc(100vw - 36px));max-height:calc(100vh - 156px);overflow:hidden;display:flex;flex-direction:column;gap:8px}.equipmentPanel.hidden{display:none}.equipmentPanel .inventoryHeader{flex:0 0 auto}.equipmentText{min-height:0;overflow:auto;padding-right:2px}.characterPanelDock{display:grid;grid-template-columns:minmax(230px,.9fr) minmax(220px,.78fr) minmax(260px,1fr);gap:10px;align-items:start}.characterSubPanel{min-width:0;border:1px solid rgba(132,170,230,.18);border-radius:16px;background:rgba(6,11,20,.48);padding:10px;box-shadow:inset 0 0 24px rgba(100,243,255,.025)}.characterSubHeader{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid rgba(132,170,230,.16);padding-bottom:7px;margin-bottom:8px}.characterSubHeader strong{text-transform:uppercase;letter-spacing:.08em;font-size:11px;color:#d8e7ff}.characterSubHeader span{font-size:10px;color:#9fb7d8}.panelMiniBtn,.panelWideBtn{border:1px solid rgba(100,243,255,.28);background:#0b1728;color:#eaf5ff;border-radius:9px;padding:5px 8px;font-size:10px;font-weight:900;cursor:pointer}.panelWideBtn{width:100%;margin-top:8px;padding:8px}.panelMiniBtn:hover,.panelWideBtn:hover{border-color:rgba(100,243,255,.78);filter:brightness(1.08)}.equipmentSummary.compact{font-size:10px;margin:0 0 8px;line-height:1.35}.equipmentSlotGrid{display:grid;gap:5px}.equipmentSlotLine{grid-template-columns:86px minmax(0,1fr);min-height:40px}.equipmentSlotLine strong em,.equipmentSlotLine strong small{display:none}.equipmentSlotLine .slotItemText{font-size:11px}.emptyIcon{color:#6d7f9b;border-color:rgba(132,170,230,.2)}.attributesCompact{display:grid;gap:5px}.attributePointBadge{font-size:10px;color:#ffd76a;margin-bottom:3px}.attributeLine.compact{grid-template-columns:minmax(85px,1fr) auto 28px;border:1px solid rgba(132,170,230,.11);border-radius:10px;background:rgba(255,255,255,.02);padding:4px 5px}.attributeDetailsPanel{max-height:calc(100vh - 210px);overflow:auto}.attrDetailHeader,.attrDetailRow{display:grid;grid-template-columns:minmax(88px,1fr) 44px 48px 48px;gap:6px;align-items:center}.attrDetailHeader{font-size:9px;color:#9fb7d8;text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid rgba(132,170,230,.14);padding-bottom:5px;margin-bottom:4px}.attrDetailRow{font-size:11px;border:1px solid rgba(132,170,230,.10);border-radius:9px;padding:4px 5px;background:rgba(255,255,255,.018);margin-bottom:4px}.attrDetailRow span,.derivedDetailRow span{color:#9fb7d8;font-weight:800}.attrDetailRow b,.attrDetailRow strong{text-align:right;color:#eef6ff}.attrDetailRow em{text-align:right;font-style:normal}.detailsDivider{height:1px;background:rgba(132,170,230,.16);margin:8px 0}.derivedDetailRow{display:grid;grid-template-columns:minmax(110px,1fr) auto;gap:4px 8px;border:1px solid rgba(132,170,230,.10);border-radius:9px;padding:5px 6px;margin-bottom:4px;background:rgba(100,243,255,.025)}.derivedDetailRow strong{color:#fff}.derivedDetailRow small{grid-column:1/-1;color:#8fa7c7;font-size:10px;line-height:1.25}.gearSummaryList{display:grid;gap:3px}.gearSummaryList div{display:grid;grid-template-columns:94px minmax(0,1fr);gap:6px;font-size:10px;border-bottom:1px solid rgba(132,170,230,.08);padding:3px 0}.gearSummaryList span{color:#8fa7c7}.gearSummaryList strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.paperdollPanel{grid-column:3;}.paperdollStage{height:176px;border:1px solid rgba(100,243,255,.18);border-radius:16px;background:radial-gradient(circle at 50% 72%,rgba(100,243,255,.14),transparent 38%),linear-gradient(180deg,rgba(255,255,255,.04),rgba(0,0,0,.18));position:relative;display:grid;place-items:center;overflow:hidden}.paperdollShadow{position:absolute;bottom:24px;width:98px;height:22px;border-radius:50%;background:rgba(0,0,0,.34);filter:blur(2px)}.paperdollFigure{position:relative;width:86px;height:128px;filter:drop-shadow(0 12px 18px rgba(0,0,0,.48))}.paperdollFigure span{position:absolute;display:block;background:linear-gradient(180deg,#64f3ff,#226a84);border:1px solid rgba(255,255,255,.25);box-shadow:inset 0 0 12px rgba(255,255,255,.16)}.pdHead{left:28px;top:2px;width:30px;height:30px;border-radius:50%}.pdBody{left:20px;top:34px;width:46px;height:58px;border-radius:22px 22px 16px 16px}.pdArm{top:42px;width:16px;height:52px;border-radius:12px}.pdArm.left{left:4px;transform:rotate(12deg)}.pdArm.right{right:4px;transform:rotate(-12deg)}.pdLeg{top:88px;width:18px;height:42px;border-radius:12px}.pdLeg.left{left:22px}.pdLeg.right{right:22px}.paperdollMeta{display:grid;gap:3px;margin-top:8px;text-align:center}.paperdollMeta strong{color:#dff8ff}.paperdollMeta span{font-size:10px;color:#9fb7d8;line-height:1.35}.itemTooltip{max-width:min(520px,calc(100vw - 28px));}.inventoryPanel .itemTooltip{left:auto}@media(max-width:1180px){.equipmentPanel{width:min(760px,calc(100vw - 24px));left:12px}.characterPanelDock{grid-template-columns:minmax(220px,1fr) minmax(220px,1fr)}.attributeDetailsPanel,.paperdollPanel{grid-column:auto}.paperdollPanel{grid-column:1/-1}.paperdollStage{height:138px}}@media(max-width:760px){.equipmentPanel{left:8px;right:8px;top:8px;width:auto;max-height:calc(100vh - 92px)}.characterPanelDock{grid-template-columns:1fr}.attributeDetailsPanel{max-height:none}.itemTooltip{width:calc(100vw - 24px)!important;left:12px!important;right:12px!important}.equipmentSlotLine{grid-template-columns:78px minmax(0,1fr)}}


/* v0.4.21 modal cascade character windows: Equipped Gear anchors, panels expand left-to-right inside viewport */
.equipmentPanel{left:12px!important;right:12px!important;top:72px!important;width:auto!important;max-width:calc(100vw - 24px)!important;max-height:calc(100vh - 118px)!important;overflow:hidden!important;background:transparent!important;border:0!important;box-shadow:none!important;padding:0!important;backdrop-filter:none!important;pointer-events:none;z-index:18}.equipmentPanel.hidden{display:none!important}.equipmentPanel .inventoryHeader{display:none}.equipmentText{background:transparent!important;border:0!important;border-radius:0!important;margin:0!important;padding:0!important;white-space:normal!important;overflow:hidden!important;pointer-events:auto;max-height:calc(100vh - 118px)}.characterPanelDock.characterModalCascade{display:flex!important;flex-direction:row;align-items:flex-start;gap:10px;max-width:100%;max-height:calc(100vh - 136px);overflow:hidden;padding:4px 2px 10px 2px;isolation:isolate}.characterModalWindow{position:relative;min-width:0;max-height:calc(100vh - 148px);overflow:auto;border:1px solid rgba(132,170,230,.34)!important;border-radius:18px!important;background:linear-gradient(180deg,rgba(16,23,38,.97),rgba(7,11,21,.97))!important;box-shadow:0 18px 48px rgba(0,0,0,.48),inset 0 0 28px rgba(100,243,255,.035)!important;padding:11px!important;backdrop-filter:blur(14px);scrollbar-width:thin}.primaryCharacterWindow{flex:1.05 1 270px;max-width:318px;z-index:4}.attributesCompact{flex:0.92 1 232px;max-width:286px;z-index:3}.attributeDetailsPanel{flex:1.18 1 316px;max-width:390px;z-index:2}.paperdollPanel{flex:.86 1 224px;max-width:290px;z-index:1;grid-column:auto!important}.cascadeWindow{animation:tfCascadeIn .14s ease-out both}.cascadeWindow::before{content:"";position:absolute;left:-10px;top:28px;width:10px;height:2px;background:linear-gradient(90deg,rgba(100,243,255,.2),rgba(100,243,255,.65));box-shadow:0 0 10px rgba(100,243,255,.35)}@keyframes tfCascadeIn{from{opacity:.25;transform:translateX(-12px) scale(.985)}to{opacity:1;transform:translateX(0) scale(1)}}.characterModalTitle{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid rgba(132,170,230,.18);padding-bottom:7px;margin-bottom:8px;position:sticky;top:-11px;background:linear-gradient(180deg,rgba(16,23,38,.99),rgba(16,23,38,.93));z-index:5}.characterModalTitle strong{text-transform:uppercase;letter-spacing:.08em;font-size:11px;color:#d8e7ff}.characterModalTitle span{font-size:10px;color:#9fb7d8}.characterWindowActions,.characterWindowToolbar{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.characterWindowToolbar{margin:7px 0 8px}.characterWindowToolbar .panelMiniBtn{flex:1 1 110px}.characterModalWindow .equipmentSlotGrid{max-height:none}.characterModalWindow .equipmentSlotLine{grid-template-columns:82px minmax(0,1fr)}.characterModalWindow .equipmentSummary.compact{border:1px solid rgba(100,243,255,.12);border-radius:11px;padding:6px 7px;background:rgba(100,243,255,.035);color:#cfe2ff}.characterModalWindow .attributeLine.compact{grid-template-columns:minmax(72px,1fr) auto 28px}.iconSystemNote{pointer-events:auto;width:min(780px,calc(100vw - 28px));margin:2px 0 0 4px;border:1px solid rgba(132,170,230,.18);border-radius:12px;background:rgba(5,9,17,.76);padding:7px 9px}.paperdollStage{height:156px}.attributeDetailsPanel .derivedDetailRow{grid-template-columns:minmax(96px,1fr) auto}.attributeDetailsPanel .gearSummaryList div{grid-template-columns:82px minmax(0,1fr)}@media(max-width:1120px){.characterPanelDock.characterModalCascade{overflow:auto;max-height:calc(100vh - 132px);padding-bottom:14px}.primaryCharacterWindow{flex-basis:260px}.attributesCompact{flex-basis:220px}.attributeDetailsPanel{flex-basis:300px}.paperdollPanel{flex-basis:220px}.characterModalWindow{max-height:calc(100vh - 158px)}}@media(max-width:760px){.equipmentPanel{left:8px!important;right:8px!important;top:8px!important;max-width:calc(100vw - 16px)!important;max-height:calc(100vh - 74px)!important}.equipmentText{max-height:calc(100vh - 74px);overflow:hidden!important}.characterPanelDock.characterModalCascade{flex-direction:column;max-height:calc(100vh - 94px);overflow:auto;gap:8px}.characterModalWindow{width:100%;max-width:none!important;max-height:none;flex:0 0 auto}.cascadeWindow::before{display:none}.iconSystemNote{width:auto;margin-right:0}.paperdollStage{height:126px}.characterModalWindow .equipmentSlotLine{grid-template-columns:78px minmax(0,1fr)}}


/* Phase 4.22 currency wallet / New Game support */
.currencyWallet{display:grid;grid-template-columns:repeat(5,max-content);align-items:center;gap:6px 8px;margin:6px 8px 8px;padding:7px 9px;border:1px solid rgba(132,170,230,.2);border-radius:12px;background:rgba(5,9,17,.78);font-size:11px;color:#dbeafe}.currencyWallet strong{text-transform:uppercase;letter-spacing:.08em;color:#d8e7ff}.currencyWallet .coin{border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:3px 7px;background:rgba(255,255,255,.04);white-space:nowrap}.currencyWallet .platinum{color:#dff7ff}.currencyWallet .gold{color:#ffd76a}.currencyWallet .silver{color:#d9e6f2}.currencyWallet .copper{color:#d89a62}@media(max-width:760px){.currencyWallet{grid-template-columns:1fr 1fr;}.currencyWallet strong{grid-column:1/-1}}


/* v0.4.23 Bag + Character Sheet Co-Interaction Hotfix
   Keeps inventory fully interactive while the C character cascade is open.
   The character shell no longer catches clicks over empty space; only its modal windows do. */
body.tfBagOpen.tfCharacterOpen .inventoryPanel,
.inventoryPanel{z-index:32!important;pointer-events:auto!important;}
body.tfBagOpen.tfCharacterOpen .equipmentPanel{z-index:24!important;pointer-events:none!important;}
body.tfBagOpen.tfCharacterOpen .equipmentText,
body.tfBagOpen.tfCharacterOpen .characterPanelDock.characterModalCascade,
.equipmentPanel .equipmentText,
.characterPanelDock.characterModalCascade{pointer-events:none!important;}
body.tfBagOpen.tfCharacterOpen .characterModalWindow,
body.tfBagOpen.tfCharacterOpen .characterModalWindow *,
body.tfBagOpen.tfCharacterOpen .iconSystemNote,
.characterModalWindow,
.characterModalWindow *,
.iconSystemNote{pointer-events:auto;}
body.tfBagOpen.tfCharacterOpen .inventoryPanel .inventorySlot,
body.tfBagOpen.tfCharacterOpen .inventoryPanel .inventorySlot *,
body.tfBagOpen.tfCharacterOpen .inventoryPanel button{pointer-events:auto!important;}
.itemTooltip{z-index:90!important;}
.tfContextMenu{z-index:95!important;}
.tfModalBackdrop{z-index:120!important;}
@media(max-width:760px){body.tfBagOpen.tfCharacterOpen .inventoryPanel{z-index:36!important;max-height:calc(100vh - 74px)!important;}}


/* TitanForge v0.4.30 Mouse Navigation / Camera Occlusion HUD */
.flightPanel{position:fixed;right:16px;bottom:72px;z-index:18;width:min(310px,calc(100vw - 32px));pointer-events:auto;background:linear-gradient(180deg,rgba(18,25,42,.94),rgba(6,10,18,.94));border:1px solid rgba(255,215,106,.34);border-radius:16px;box-shadow:0 18px 48px rgba(0,0,0,.46);backdrop-filter:blur(14px);padding:10px;color:#eaf5ff;font-size:12px}.flightTitle{text-transform:uppercase;letter-spacing:.09em;font-size:11px;font-weight:900;color:#ffd76a}.flightStatus{margin:5px 0 8px;color:#dcecff}.flightActions{display:flex;gap:6px;flex-wrap:wrap}.flightActions button{border:1px solid rgba(132,170,230,.28);background:#0b1728;color:#eaf5ff;border-radius:10px;padding:7px 9px;font-weight:900;font-size:11px;cursor:pointer}.flightActions button:hover:not(:disabled){border-color:rgba(100,243,255,.76);filter:brightness(1.08)}.flightActions button:disabled{opacity:.48;cursor:not-allowed}.flightHint{margin-top:7px;color:#9fb7d8;font-size:10px;line-height:1.3}body.tfFlying .flightPanel{border-color:rgba(100,243,255,.72);box-shadow:0 18px 58px rgba(100,243,255,.12)}body.tfFalling .flightPanel{border-color:rgba(255,93,115,.72);box-shadow:0 18px 58px rgba(255,93,115,.12)}.inventorySlot[data-item-id="legendary_skybound_whistle"]{border-color:rgba(255,215,106,.76);box-shadow:inset 0 0 0 1px rgba(255,215,106,.36),0 0 22px rgba(255,215,106,.10)}@media(max-width:760px){.flightPanel{left:8px;right:8px;bottom:86px;width:auto}.flightActions button{flex:1 1 92px}}


/* Phase 5 — exported runtime loading screen and self-check panel */
.tfLoadingScreen{position:fixed;inset:0;z-index:400;display:grid;place-items:center;background:radial-gradient(circle at 50% 35%,rgba(100,243,255,.16),transparent 38%),linear-gradient(180deg,rgba(5,9,17,.98),rgba(8,16,29,.98));color:#eaf5ff}.tfLoadingScreen.hidden{display:none}.tfLoadingCard{width:min(440px,calc(100vw - 32px));border:1px solid rgba(100,243,255,.35);border-radius:20px;background:rgba(11,18,32,.94);box-shadow:0 24px 80px rgba(0,0,0,.55);padding:18px;display:grid;gap:8px;text-align:center}.tfLoadingCard strong{text-transform:uppercase;letter-spacing:.1em;color:#64f3ff}.tfLoadingCard span{color:#dbeafe}.tfLoadingCard small{color:#9fb7d8;line-height:1.4}.tfExportCheckToggle{position:fixed;right:14px;top:14px;z-index:80;border:1px solid rgba(132,170,230,.32);background:rgba(11,18,32,.88);color:#eaf5ff;border-radius:12px;padding:8px 10px;font-weight:900;font-size:11px;cursor:pointer}.tfExportCheckPanel{position:fixed;right:14px;top:54px;z-index:90;width:min(420px,calc(100vw - 28px));max-height:calc(100vh - 76px);overflow:auto;border:1px solid rgba(132,170,230,.34);border-radius:16px;background:linear-gradient(180deg,rgba(16,23,38,.97),rgba(7,11,21,.97));box-shadow:0 18px 48px rgba(0,0,0,.52);color:#eaf5ff;padding:10px;font-size:12px}.tfExportCheckPanel.hidden{display:none}.tfExportCheckPanel header{display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid rgba(132,170,230,.18);padding-bottom:7px;margin-bottom:8px}.tfExportCheckPanel header strong{text-transform:uppercase;letter-spacing:.09em;color:#d8e7ff}.tfExportCheckPanel button{border:1px solid rgba(132,170,230,.25);background:#0b1728;color:#eaf5ff;border-radius:10px;padding:4px 8px;cursor:pointer}.tfExportCheckRow{border-top:1px solid rgba(132,170,230,.14);padding:6px 0;display:grid;gap:2px}.tfExportCheckRow b{color:#a7f3d0}.tfExportCheckRow.warn b{color:#ffd76a}.tfExportCheckRow span{color:#dbeafe}.tfExportCheckRow small{color:#9fb7d8}.tfExportCheckMeta{color:#9fb7d8;line-height:1.4;margin:4px 0 8px}@media(max-width:760px){.tfExportCheckToggle{top:auto;bottom:12px;right:12px}.tfExportCheckPanel{left:8px;right:8px;top:8px;width:auto;max-height:calc(100vh - 16px)}}

/* Phase 6 runtime compatibility: exported worlds preserve terrain patches, roads/path primitives, groups, hierarchy, and prefab metadata inside data/world.json. */


/* RuntimeHotfix3 compact inventory: more items visible without hiding bag/equipment function. */
.inventoryPanel{right:16px!important;top:72px!important;width:min(520px,calc(100vw - 32px))!important;max-height:calc(100vh - 92px)!important;padding:10px!important}
.inventoryHeader{padding-bottom:6px!important;margin-bottom:6px!important;font-size:11px!important}
.currencyWallet{margin:4px 0 6px!important;padding:5px 7px!important;gap:4px 6px!important;font-size:10px!important;grid-template-columns:repeat(5,max-content)!important}
.currencyWallet .coin{padding:2px 6px!important}.inventoryGrid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:5px!important}
.inventorySlot{min-height:56px!important;padding:5px!important;border-radius:10px!important;font-size:10px!important;gap:2px!important}
.inventorySlot strong{font-size:10px!important;line-height:1.05!important;min-height:0!important;max-height:2.15em!important;overflow:hidden!important;text-overflow:ellipsis!important}
.inventorySlot .itemSlotMeta{font-size:8.5px!important;line-height:1.08!important;letter-spacing:.035em!important;max-height:2.2em!important;overflow:hidden!important}
.inventorySlot .qty{font-size:9px!important;line-height:1.05!important}.inventoryHint{font-size:10px!important;margin-top:6px!important}
.itemIcon{width:22px!important;height:22px!important;border-radius:8px!important;margin:0 auto 1px!important}.itemIcon svg{width:17px!important;height:17px!important;stroke-width:1.45!important}
@media(max-width:980px){.inventoryGrid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.inventoryPanel{width:min(430px,calc(100vw - 24px))!important;right:12px!important;top:64px!important}}
@media(max-width:620px){.inventoryPanel{left:8px!important;right:8px!important;width:auto!important;top:8px!important;max-height:calc(100vh - 76px)!important}.inventoryGrid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.currencyWallet{grid-template-columns:1fr 1fr!important}.currencyWallet strong{grid-column:1/-1!important}}


/* RuntimeHotfix4: compact 96-slot bag so starter whistles/high-tier kit fit without covering the whole viewport. */
.inventoryPanel{width:min(620px,calc(100vw - 28px))!important;max-height:calc(100vh - 84px)!important;padding:8px!important;overflow:hidden!important;}
.inventoryGrid{grid-template-columns:repeat(8,minmax(0,1fr))!important;gap:4px!important;overflow:auto!important;padding-right:2px!important;}
.inventorySlot{min-height:42px!important;padding:4px!important;border-radius:9px!important;font-size:9px!important;gap:1px!important;}
.inventorySlot svg,.itemIcon svg{width:18px!important;height:18px!important;}
.inventorySlot strong{font-size:9px!important;line-height:1.02!important;max-height:2.05em!important;overflow:hidden!important;}
.inventorySlot .itemSlotMeta{font-size:7.5px!important;line-height:1.02!important;max-height:2.05em!important;overflow:hidden!important;}
.inventorySlot .qty{font-size:8px!important;}
.currencyWallet{gap:4px!important;margin-bottom:5px!important;}
.currencyWallet .coin{padding:2px 5px!important;font-size:9px!important;}
.inventoryHint{font-size:9px!important;line-height:1.25!important;margin-top:5px!important;}
@media(max-width:980px){.inventoryGrid{grid-template-columns:repeat(6,minmax(0,1fr))!important}.inventoryPanel{width:min(520px,calc(100vw - 22px))!important;}}
@media(max-width:620px){.inventoryPanel{left:8px!important;right:8px!important;width:auto!important;top:8px!important;}.inventoryGrid{grid-template-columns:repeat(4,minmax(0,1fr))!important}.inventorySlot{min-height:40px!important}.currencyWallet{grid-template-columns:1fr 1fr!important}.currencyWallet strong{grid-column:1/-1!important}}
