.game-page{position:fixed;inset:0;display:grid;grid-template-rows:54px minmax(0,1fr);overflow:hidden;background:linear-gradient(272deg,#616161,#656565)}.resource-bar{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:18px;padding:0 18px;color:#f2e4cd;background:linear-gradient(180deg,#241d1a,#171615);border-bottom:1px solid rgba(213,154,76,.42);box-shadow:0 8px 28px #0000004d}.resource-bar__brand{color:#f0c46f;font-size:20px;font-weight:900}.resource-bar__items{display:flex;justify-content:flex-end;gap:18px;min-width:0;font-size:15px;font-weight:800;color:#e9d4b9}.resource-bar__button{height:36px;padding:0 16px;border:2px solid #9b9b9b;border-radius:6px;color:#f1f1f1;font-weight:900;background:linear-gradient(180deg,#4d4d4d,#303030);box-shadow:0 8px 22px #00000057;cursor:pointer}.game-page__body{position:relative;display:grid;min-height:0;overflow:hidden}.game-page__play{position:relative;display:grid;place-items:center;min-height:0}.game-page__client{position:relative;overflow:hidden;background:#2f2f2f;box-shadow:0 18px 70px #0000005c}.game-page__content{position:absolute;inset:0;visibility:visible;cursor:default;transform-origin:0 0}.game-page__stage{position:absolute;inset:0;visibility:hidden}.game-page__stage--visible{visibility:visible}.game-page__loader{position:absolute;inset:0;z-index:2;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:14px;background:#292929}.game-page__loader-title{color:#d7a176;font-size:30px;font-weight:800}.game-page__error{position:absolute;z-index:3;left:0;right:0;top:calc(50% + 60px);display:flex;justify-content:center}.game-page__error button{min-height:42px;padding:0 22px;border:2px solid #d69a4d;border-radius:7px;color:#fff5ce;font-weight:800;background:linear-gradient(#5bb729,#3d8d1c)}.editor-page{display:grid;grid-template-rows:58px minmax(0,1fr);height:100vh;overflow:hidden;color:#ededed;background:linear-gradient(272deg,#616161,#656565)}.editor-page__top{display:flex;align-items:center;gap:12px;padding:10px 14px;box-sizing:border-box;background:#242424;border-bottom:1px solid rgba(255,255,255,.18)}.editor-page__actions{display:flex;align-items:center;gap:12px;margin-left:auto}.editor-page__group{display:flex;align-items:center}.editor-page select,.editor-page input,.editor-page textarea,.editor-page button,.editor-page a{box-sizing:border-box;border:1px solid #7a7a7a;border-radius:6px;color:#f2f2f2;background:#343434;font:800 14px Arial}.editor-page select,.editor-page input,.editor-page button,.editor-page a{height:36px;padding:0 12px}.editor-page button,.editor-page a{cursor:pointer;text-decoration:none;display:inline-flex;align-items:center}.editor-page__workspace{display:grid;grid-template-columns:minmax(0,1fr) 330px;gap:14px;min-height:0;padding:14px;box-sizing:border-box}.editor-page__canvas-wrap{min-width:0;min-height:0;overflow:auto;padding:14px;background:#252525;box-shadow:inset 0 0 0 1px #ffffff14}.editor-page__canvas{display:block;max-width:100%;height:auto;margin:0 auto;cursor:default}.editor-page__canvas--interactive{cursor:pointer}.editor-page__panel{display:grid;grid-template-rows:minmax(0,40%) minmax(0,60%);gap:14px;min-width:0;min-height:0;overflow:hidden}.editor-page__panel-block{display:grid;grid-template-rows:auto minmax(0,1fr);min-width:0;min-height:0;padding:10px;background:#2d2d2d;border:1px solid rgba(255,255,255,.18);border-radius:8px;box-sizing:border-box}.editor-page__panel-block h2{margin:0 0 8px;font-size:18px}.editor-page__form{display:grid;align-content:start;gap:5px;min-width:0;overflow:hidden}.editor-page__form input{width:100%;min-width:0;height:30px;padding:0 10px;font-size:13px}.editor-page__grid{display:grid;grid-template-columns:repeat(2,1fr);gap:6px}.editor-page__grid label{display:grid;gap:3px;min-width:0;font-size:13px;line-height:15px}.editor-page__animation{display:grid;gap:8px;margin-top:10px;padding-top:10px;border-top:1px solid rgba(255,255,255,.16)}.editor-page__animation label{display:grid;gap:4px;min-width:0;font-size:13px;line-height:15px}.editor-page__animation button{justify-content:center}.editor-page textarea{width:100%;min-width:0;max-width:100%;height:100%;padding:10px;resize:none;overflow:auto;font:13px Consolas,monospace;box-sizing:border-box}.hero-editor{display:grid;grid-template-rows:58px minmax(0,1fr) auto;height:100vh;overflow:hidden;color:#ededed;background:#202020}.hero-editor *{scrollbar-width:thin;scrollbar-color:#8a6235 #1d1d1d}.hero-editor *::-webkit-scrollbar{width:6px;height:6px}.hero-editor *::-webkit-scrollbar-track{background:#1d1d1d}.hero-editor *::-webkit-scrollbar-thumb{border-radius:3px;background:#8a6235}.hero-editor *::-webkit-scrollbar-thumb:hover{background:#d39a4b}.hero-editor *::-webkit-scrollbar-corner{background:#1d1d1d}.hero-editor__top{display:flex;align-items:center;gap:10px;padding:10px 14px;box-sizing:border-box;background:#242424;border-bottom:1px solid #565656}.hero-editor select,.hero-editor input,.hero-editor textarea,.hero-editor button,.hero-editor a{box-sizing:border-box;border:1px solid #737373;border-radius:6px;color:#f2f2f2;background:#343434;font:700 14px Arial;letter-spacing:0}.hero-editor select,.hero-editor input,.hero-editor button,.hero-editor a{height:36px;padding:0 11px}.hero-editor button,.hero-editor a{display:inline-flex;align-items:center;justify-content:center;cursor:pointer;text-decoration:none}.hero-editor button:disabled{cursor:default;opacity:.45}.hero-editor__button--active{border-color:#c665ff!important;color:#efc7ff!important}.hero-editor__status{color:#d7b46f;font:700 13px Arial}.hero-editor__actions{display:flex;align-items:center;gap:10px;margin-left:auto}.hero-editor__bones-toggle{display:inline-flex;align-items:center;gap:7px;height:36px;padding:0 10px;border:1px solid #737373;border-radius:6px;background:#343434;font:700 14px Arial}.hero-editor__bones-toggle input{width:16px;height:16px;margin:0;padding:0}.hero-editor__workspace{display:grid;grid-template-columns:240px minmax(0,1fr) 350px;gap:12px;min-width:0;min-height:0;padding:12px;overflow-x:hidden;box-sizing:border-box}.hero-editor__parts,.hero-editor__panel{min-width:0;min-height:0;background:#2b2b2b;border:1px solid #505050}.hero-editor__parts{display:grid;grid-template-rows:auto minmax(0,1fr);padding:10px;overflow:hidden}.hero-editor h2{margin:0 0 8px;font-size:17px}.hero-editor__parts-list{min-height:0;overflow:auto}.hero-editor__mode{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;margin-bottom:9px}.hero-editor__mode button{width:100%}.hero-editor__mode-button--active{border-color:#d39a4b!important;color:#ffd891!important;background:#4a3822!important}.hero-editor__tree-item{display:grid!important;grid-template-columns:minmax(0,1fr);justify-content:stretch;justify-items:start;width:100%;height:42px!important;padding:0 8px!important;border:0!important;border-bottom:1px solid #444!important;border-radius:0!important;background:transparent!important;text-align:left}.hero-editor__tree-item span{width:100%;text-align:left;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hero-editor__tree-item small{color:#8dbeb7;font-size:10px}.hero-editor__tree-item--selected{color:#ffd891!important;background:#4a3822!important;box-shadow:inset 3px 0 #d39a4b}.hero-editor__part{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:5px;min-height:34px;border-bottom:1px solid #444}.hero-editor__part button{justify-content:flex-start;width:100%;height:30px;overflow:hidden;padding:0 8px;border:0;background:transparent;text-overflow:ellipsis;white-space:nowrap}.hero-editor__part input{width:16px;height:16px;margin:0 auto;padding:0}.hero-editor__part--selected{background:#4a3822;box-shadow:inset 3px 0 #d39a4b}.hero-editor__slot-row{display:grid;grid-template-columns:minmax(0,1fr) 30px;align-items:center;gap:5px;min-height:46px;border-bottom:1px solid #444}.hero-editor__slot-row>button{display:grid;grid-template-columns:minmax(0,1fr);justify-content:stretch;justify-items:start;text-align:left;width:100%;height:44px;overflow:hidden;padding:5px 8px;border:0;background:transparent}.hero-editor__slot-row>button span,.hero-editor__slot-row>button small{width:100%;text-align:left;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.hero-editor__slot-row>button small{color:#8dbeb7;font-size:10px}.hero-editor__slot-row>input{width:16px;height:16px;margin:0 auto;padding:0}.hero-editor__canvas-wrap{display:flex;align-items:center;justify-content:center;min-width:0;min-height:0;overflow:hidden;padding:8px;background:#181818}.hero-editor__canvas{display:block;width:auto;max-width:100%;max-height:100%;height:auto;margin:0 auto;cursor:default}.hero-editor__panel{display:grid;grid-template-rows:minmax(180px,42%) minmax(0,29%) minmax(0,29%);overflow:hidden}.hero-editor__inspector,.hero-editor__json{min-width:0;min-height:0;padding:10px;box-sizing:border-box}.hero-editor__inspector{overflow:auto;border-bottom:1px solid #505050}.hero-editor__json--skeleton{border-bottom:1px solid #505050}.hero-editor__form{display:grid;gap:9px}.hero-editor__form label{display:grid;gap:4px;min-width:0;font-size:13px}.hero-editor__form input{width:100%;min-width:0;height:31px;padding:0 8px}.hero-editor__form select{width:100%;min-width:0}.hero-editor__grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}.hero-editor__visible{grid-template-columns:18px 1fr!important;align-items:center}.hero-editor__visible input{width:16px;height:16px;padding:0}.hero-editor__layer{display:grid;grid-template-columns:minmax(0,1fr) 36px 36px;align-items:center;gap:6px;padding-top:8px;border-top:1px solid #484848}.hero-editor__layer button{width:36px;padding:0;font-size:19px}.hero-editor__json{display:grid;grid-template-rows:auto minmax(0,1fr)}.hero-editor__json-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:8px}.hero-editor__json-head h2{margin:0}.hero-editor__json-head button{height:30px}.hero-editor__json textarea{width:100%;min-width:0;max-width:100%;height:100%;padding:9px;resize:none;overflow:auto;font:12px Consolas,monospace}.hero-editor__timeline{display:block;padding:10px 14px;box-sizing:border-box;border-top:1px solid #565656;background:#242424;overflow:hidden}.hero-editor__timeline--animate{display:grid;grid-template-rows:auto 36px minmax(0,1fr);gap:8px;width:100%;height:min(290px,42vh)}.hero-editor__timeline-toolbar{display:flex;align-items:center;gap:8px;min-width:0;flex-wrap:wrap}.hero-editor__phase{display:grid;grid-template-columns:repeat(2,90px);gap:4px}.hero-editor__timeline button{padding:0 8px}.hero-editor__timeline-current{color:#e7bd71;font:700 12px Arial;white-space:nowrap}.hero-editor__timeline-field,.hero-editor__timeline-check{display:inline-flex;align-items:center;gap:5px;color:#bdbdbd;font:12px Arial}.hero-editor__timeline-field input{width:68px}.hero-editor__key-editor{display:flex;align-items:center;gap:10px;min-width:0;min-height:36px;color:#8f8f8f;font:12px Arial}.hero-editor__key-editor strong{color:#e2c27d}.hero-editor__dopesheet{display:grid;align-content:start;overflow-x:hidden;overflow-y:auto;border:1px solid #3d3d3d;background:#1d1d1d}.hero-editor__track{display:grid;grid-template-columns:minmax(140px,220px) minmax(0,1fr);align-items:center;min-height:28px;border-bottom:1px solid #333}.hero-editor__track>span,.hero-editor__track>strong{padding:0 8px;overflow:hidden;color:#bdbdbd;font:12px Arial;text-overflow:ellipsis;white-space:nowrap}.hero-editor__track--overview{min-height:46px}.hero-editor__track-line,.hero-editor__scrubber-wrap{position:relative;min-width:0}.hero-editor__scrubber-wrap{height:46px;overflow:hidden}.hero-editor__track-line{height:100%;overflow:hidden;border-left:1px solid #444;background:repeating-linear-gradient(90deg,transparent 0,transparent calc(25% - 1px),#2f2f2f 25%)}.hero-editor__scrubber{position:absolute;top:16px;left:0;z-index:4;width:100%!important;height:28px!important;padding:0!important;border:0!important;border-radius:0;outline:none;appearance:none;cursor:ew-resize;background:transparent!important}.hero-editor__scrubber::-webkit-slider-runnable-track{height:4px;border-radius:0;background:#555}.hero-editor__scrubber::-webkit-slider-thumb{width:14px;height:20px;margin-top:-8px;appearance:none;border:2px solid #d7f6f2;border-radius:2px;background:#50cdbd}.hero-editor__scrubber::-moz-range-track{height:4px;background:#555}.hero-editor__scrubber::-moz-range-thumb{width:12px;height:18px;border:2px solid #d7f6f2;border-radius:2px;background:#50cdbd}.hero-editor__ruler-mark{position:absolute;top:2px;z-index:1;transform:translate(-50%);color:#858585;font:10px Arial;pointer-events:none}.hero-editor__ruler-mark:first-child{transform:none}.hero-editor__ruler-mark:nth-child(5){transform:translate(-100%)}.hero-editor__playhead{position:absolute;top:0;bottom:0;z-index:3;width:1px;background:#58d5c5;box-shadow:0 0 4px #58d5c5b3;pointer-events:none}.hero-editor__key{position:absolute;top:31px;z-index:2;width:8px;height:8px;margin-left:-4px;transform:rotate(45deg);border:1px solid #5f3b13;background:#f0b14e;pointer-events:none}.hero-editor__track-key{position:absolute;top:50%;width:10px;height:10px!important;min-height:10px;padding:0!important;transform:translate(-50%,-50%) rotate(45deg);border:1px solid #6a4519;background:#d99d49}.hero-editor__track-key--active{border-color:#fff1c7;background:#fff1c7}.hero-editor__timeline-empty{padding:12px;color:#8f8f8f;font:12px Arial}@media(max-width:900px){.hero-editor{grid-template-rows:auto minmax(0,1fr) auto}.hero-editor__top{flex-wrap:wrap}.hero-editor__actions{width:100%;margin-left:0}.hero-editor__workspace{grid-template-columns:1fr;overflow-x:hidden;overflow-y:auto}.hero-editor__canvas-wrap{min-height:60vh}.hero-editor__timeline{overflow-x:hidden}.hero-editor__timeline--animate{height:min(290px,50vh)}.hero-editor__track{grid-template-columns:130px minmax(0,1fr)}.hero-editor__phase{grid-template-columns:repeat(2,minmax(0,1fr))}}:root{--color-page: #d7e8f5;--color-panel: #fff0cf;--color-panel-strong: #7e4f28;--color-border: #9f733d;--color-text: #2f241a;--color-muted: #735f4a;--color-gold: #c58b25;--color-red: #b13c32;--color-blue: #2d74b6;--color-green: #477f42;--shadow-panel: 0 18px 40px rgba(77, 54, 31, .25);--radius-panel: 8px}*{box-sizing:border-box}html,body,#app{min-height:100%;margin:0}body{background:linear-gradient(272deg,#616161,#656565);color:var(--color-text);font-family:Arial,sans-serif}button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}
