.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) 58px;height:100vh;overflow:hidden;color:#ededed;background:#202020}.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;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) auto;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{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;justify-items:start;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{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{min-width:0;min-height:0;overflow:auto;padding:12px;background:#181818}.hero-editor__canvas{display:block;width:min(100%,1000px);height:auto;aspect-ratio:10 / 9;margin:0 auto;cursor:default}.hero-editor__panel{display:grid;grid-template-rows:minmax(300px,48%) minmax(0,52%);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__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__mesh-editor{display:grid;gap:8px;padding:9px 0;border-top:1px solid #484848;border-bottom:1px solid #484848}.hero-editor__mesh-head{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#8fd5ca;font-size:12px}.hero-editor__mesh-editor h3{margin:0;font-size:13px}.hero-editor__weights{display:grid;gap:5px}.hero-editor__weight-row,.hero-editor__weight-add{display:grid;grid-template-columns:minmax(0,1fr) 76px 32px;align-items:center;gap:5px}.hero-editor__weight-row span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:12px}.hero-editor__weight-row input,.hero-editor__weight-add input,.hero-editor__weight-row button,.hero-editor__weight-add button{height:30px;padding:0 6px}.hero-editor__mesh-empty{color:#aaa;font-size:12px}.hero-editor__timeline{display:grid;grid-template-columns:auto 150px 36px 72px auto minmax(160px,1fr);align-items:center;gap:8px;padding:10px 14px;box-sizing:border-box;border-top:1px solid #565656;background:#242424}.hero-editor__phase{display:grid;grid-template-columns:repeat(2,90px);gap:4px}.hero-editor__timeline>button{padding:0 8px}.hero-editor__time{min-width:82px;color:#d7b46f;font:700 12px Arial;text-align:center}.hero-editor__scrubber{width:100%;height:24px!important;padding:0!important;accent-color:#d39a4b}@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:190px minmax(650px,1fr) 300px;overflow:auto}.hero-editor__timeline{grid-template-columns:auto 130px 36px 72px auto minmax(200px,1fr);min-width:820px;overflow-x:auto}}: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}
