html,body{-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent;height:100%;margin:0;font-family:Segoe UI,system-ui,sans-serif;overflow:hidden}#app{width:100%;height:100dvh;position:relative}#app canvas{touch-action:none;display:block}.overlay{pointer-events:none;position:absolute;inset:0}.overlay>*,.overlay .panel{pointer-events:auto}.panel{background:#ffffffd9;border-radius:28px;align-items:center;gap:10px;padding:10px;display:flex;position:absolute;box-shadow:0 6px #0000001f}.floor-panel{flex-direction:column;top:50%;left:24px;transform:translateY(-50%)}.room-panel{transform:translateY(-50%)}.big-button{cursor:pointer;background:linear-gradient(#fff,#ffe0ea);border:none;border-radius:50%;width:64px;height:64px;font-size:32px;line-height:1;transition:transform 80ms;box-shadow:0 5px #e4a3b8,inset 0 -4px 6px #0000000f}.big-button:hover:not(:disabled){transform:scale(1.08)}.big-button:active:not(:disabled){transform:translateY(4px);box-shadow:0 1px #e4a3b8}.big-button:disabled{opacity:.3;cursor:default}.counter{flex-direction:column;align-items:center;font-weight:900;display:flex}.counter-icon{font-size:40px}.counter-value{color:#6b4f3a;font-size:40px}.room-dots{text-align:center;word-break:break-all;width:120px;font-size:22px;line-height:1.2}.done-button{background:linear-gradient(#e9ffe0,#a8e68f);width:96px;height:96px;font-size:52px;position:absolute;bottom:28px;right:28px;box-shadow:0 6px #5fb043}.size-panel{gap:18px;padding:14px 26px;bottom:24px;left:50%;transform:translate(-50%)}.size-panel[hidden]{display:none}.size-icon.small{font-size:26px}.size-icon.big{font-size:52px}.big-slider{appearance:none;cursor:pointer;background:linear-gradient(90deg,#ffe0ea,#ff9ebd);border-radius:11px;width:360px;height:22px}.big-slider::-webkit-slider-thumb{appearance:none;background:radial-gradient(circle at 35% 30%,#fff,#ffb800 60%,#e09a00);border-radius:50%;width:52px;height:52px;box-shadow:0 4px #c78600}.room-edit-panel{flex-direction:column;align-items:stretch;gap:14px;width:270px;padding:14px;top:16px;right:16px}.room-edit-panel[hidden]{display:none}.type-grid{grid-template-columns:repeat(3,64px);justify-content:center;gap:10px;display:grid}.big-button.chosen{background:linear-gradient(#fff7d1,#ffd34d);outline:4px solid #ffb800;box-shadow:0 5px #c78600}.swatch-row{align-items:center;gap:8px;display:flex}.swatch-label{flex:none}.swatches{grid-template-columns:repeat(4,38px);gap:8px;display:grid}.swatch{cursor:pointer;border:3px solid #fff;border-radius:50%;width:38px;height:38px;box-shadow:0 3px #0000002e}.swatch:hover{transform:scale(1.1)}.swatch.chosen{outline-offset:1px;outline:4px solid #ffb800}.size-row{align-items:center;gap:8px;display:flex}.size-row[hidden]{display:none}.size-row .big-slider{flex:1;width:auto;min-width:0}.catalogue{pointer-events:auto;background:#ffffffe6;border-radius:28px;align-items:center;gap:16px;height:124px;padding:0 14px;display:flex;position:absolute;bottom:12px;left:16px;right:16px;box-shadow:0 6px #0000001f}.catalogue-tabs{border-right:3px dashed #f0c9d6;gap:8px;padding-right:14px;display:flex}.catalogue-tabs .big-button{width:56px;height:56px;font-size:28px}.catalogue-strip{overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x;align-items:flex-end;gap:14px;height:104px;padding-bottom:6px;display:flex;overflow-x:auto}.catalogue-item{cursor:grab;touch-action:pan-x;background:#fff7fa;border-radius:18px;flex:none;justify-content:center;align-items:flex-end;width:110px;height:96px;display:flex}.catalogue-item:hover{background:#ffe0ea}.catalogue-item img{pointer-events:none;max-width:96px;max-height:86px;margin-bottom:4px}.catalogue-bin{border-radius:28px;flex:1;justify-content:center;align-items:center;height:100%;font-size:64px;transition:transform .1s,background .1s;display:none}.catalogue.bin-mode .catalogue-tabs,.catalogue.bin-mode .catalogue-strip{display:none}.catalogue.bin-mode .catalogue-bin{display:flex}.catalogue.bin-hot{background:#ffd6d6}.catalogue.bin-hot .catalogue-bin{transform:scale(1.25)}.drag-ghost{pointer-events:none;z-index:100;filter:drop-shadow(0 8px 6px #00000040);position:fixed;transform:translate(-50%,-50%)}.drag-ghost img{display:block}.drag-ghost .drag-ghost-extra{position:absolute}.drag-ghost.nowhere{opacity:.5}.menu-overlay{background:#ffffff40}.menu-panel{gap:40px;padding:30px 40px;top:50%;left:50%;transform:translate(-50%,-50%)}.menu-button.continue-button{background:linear-gradient(#e9ffe0,#a8e68f);width:160px;height:160px;font-size:90px;box-shadow:0 8px #5fb043}.menu-button.restart-button{width:100px;height:100px;font-size:54px}.modal-backdrop{pointer-events:auto;z-index:10;background:#281e3c73;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.modal{background:#fff;border-radius:36px;flex-direction:column;align-items:center;gap:24px;padding:30px 44px;display:flex;box-shadow:0 10px #00000026}.modal-picture{font-size:80px}.modal-buttons{gap:50px;display:flex}.modal-buttons .big-button{width:100px;height:100px;font-size:54px}.yes-button{background:linear-gradient(#e9ffe0,#a8e68f);box-shadow:0 6px #5fb043}.no-button{background:linear-gradient(#ffe6e6,#ff9e9e);box-shadow:0 6px #d65c5c}.gallery{background:#fff3c4;padding:0 24px 24px;position:absolute;inset:0;overflow:auto}.gallery-section h2{color:#6b4f3a}.gallery-list{flex-wrap:wrap;align-items:flex-end;gap:24px;display:flex}.gallery-card{background:#fff;border-radius:20px;padding:16px;box-shadow:0 5px #0000001a}.gallery-row{align-items:flex-end;gap:16px;display:flex}.gallery-name{text-align:center;color:#6b4f3a;margin-top:8px;font-weight:700}.fullscreen{box-sizing:border-box;-webkit-overflow-scrolling:touch;background:linear-gradient(#8fd3ff 0%,#c9ecff 70%,#7ccf5a 70%,#6cc04a 100%);flex-direction:column;justify-content:safe center;align-items:safe center;gap:28px;padding:90px 16px 130px;display:flex;position:absolute;inset:0;overflow:auto}.fullscreen>.corner-button,.fullscreen>.done-button,.fullscreen>.parent-key-button,.fullscreen>.delete-corner{z-index:5;position:fixed}@media (height<=820px),(width<=900px){.fullscreen{gap:18px;padding:84px 12px 120px}.screen-title{font-size:56px!important}.menu-grid{grid-template-columns:repeat(3,minmax(120px,160px))!important;gap:16px!important}.menu-tile{height:130px!important}.menu-tile-icon{font-size:62px!important}.profile-card{width:140px!important}.profile-avatar{width:88px!important;height:88px!important;font-size:56px!important}.create-step{gap:14px!important;padding:16px 20px!important}.step-hint{font-size:46px!important}.avatar-grid,.password-grid{grid-template-columns:repeat(6,64px)!important;gap:10px!important}.password-grid.digits{grid-template-columns:repeat(5,64px)!important}.avatar-key,.password-key{width:64px!important;height:64px!important;font-size:36px!important}.password-slot{width:70px!important;height:70px!important;font-size:44px!important}.name-input{width:min(420px,80vw)!important;font-size:38px!important}.character-card-box,.gender-choice .character-card-img{height:140px!important}.character-card{min-height:180px!important}}@media (width<=1000px){.character-editor{flex-direction:column!important;gap:16px!important}.character-preview{height:min(34vh,300px)!important}.editor-right{box-sizing:border-box;width:min(470px,94vw)!important}}.screen-title{filter:drop-shadow(0 6px #0000001f);font-size:80px}.profile-list{flex-wrap:wrap;justify-content:center;gap:28px;max-width:900px;display:flex}.profile-card{cursor:pointer;background:#ffffffeb;border:none;border-radius:32px;flex-direction:column;align-items:center;gap:8px;width:170px;padding:18px 10px;font-family:inherit;transition:transform 80ms;display:flex;box-shadow:0 7px #0000001f}.profile-card:hover{transform:scale(1.06)}.profile-avatar{background:radial-gradient(circle at 35% 30%,#fff,#ffe0ea 70%);border-radius:50%;justify-content:center;align-items:center;width:110px;height:110px;font-size:70px;display:flex}.profile-add .profile-avatar{background:radial-gradient(circle at 35% 30%,#fff,#d9f5d0 70%)}.profile-name{color:#6b4f3a;min-height:34px;font-size:28px;font-weight:800}.login-who{background:#ffffffeb;border-radius:80px;align-items:center;gap:18px;padding:10px 28px 10px 12px;display:flex;box-shadow:0 6px #0000001f}.profile-avatar.small{width:70px;height:70px;font-size:44px}.menu-grid{grid-template-columns:repeat(3,200px);gap:26px;display:grid}.menu-tile{cursor:pointer;background:linear-gradient(#fff,#fff0f5);border:none;border-radius:36px;flex-direction:column;justify-content:center;align-items:center;gap:6px;height:170px;font-family:inherit;transition:transform 80ms;display:flex;box-shadow:0 8px #e4a3b8}.menu-tile:hover{transform:scale(1.05)}.menu-tile:active{transform:translateY(5px);box-shadow:0 3px #e4a3b8}.menu-tile-icon{font-size:84px;line-height:1}.menu-tile-label{color:#9a7a66;font-size:18px;font-weight:700}.menu-tile.locked{filter:grayscale();opacity:.5}.menu-tile.wobble{animation:.4s shake}.menu-bubble{pointer-events:none;background:#fff;border-radius:24px;padding:8px 16px;font-size:48px;transition:transform .15s;position:absolute;transform:translate(-50%,-100%)scale(0);box-shadow:0 5px #0000001f}.menu-bubble.show{transform:translate(-50%,-100%)scale(1)}.finish-button{cursor:pointer;background:linear-gradient(#e9ffe0,#a8e68f);border:none;border-radius:40px;align-items:center;gap:14px;padding:14px 34px;font-family:inherit;transition:transform 80ms;animation:1.6s ease-in-out infinite finish-pulse;display:flex;box-shadow:0 8px #5fb043}.finish-button .menu-tile-label{color:#3f7a2c;font-size:22px}.finish-icon{font-size:64px;line-height:1}.finish-button:active{transform:translateY(5px);box-shadow:0 3px #5fb043}.menu-tile.unlocked{animation:.7s ease-out unlock-pop}@keyframes finish-pulse{0%,to{transform:scale(1)}50%{transform:scale(1.06)}}@keyframes unlock-pop{0%{filter:grayscale();transform:scale(.6)}60%{transform:scale(1.2)}to{transform:scale(1)}}@media (height<=820px),(width<=900px){.finish-icon{font-size:44px}.finish-button{padding:8px 24px}}.parent-key-button{opacity:.8;width:56px;height:56px;font-size:28px;position:absolute;top:24px;right:24px}.parent-title{font-size:70px}.password-grid.digits{grid-template-columns:repeat(5,80px)}.password-grid.digits .password-key{color:#6b4f3a;font-size:40px;font-weight:900}.parent-list{flex-direction:column;gap:14px;display:flex}.parent-row{background:#ffffffeb;border-radius:40px;align-items:center;gap:16px;padding:10px 18px;display:flex;box-shadow:0 6px #0000001f}.parent-row .profile-name{width:220px}.big-button.danger{background:linear-gradient(#ffe6e6,#ff9e9e);box-shadow:0 5px #d65c5c}.parent-code-button{width:72px;height:72px}.character-list{flex-wrap:wrap;justify-content:center;align-items:flex-end;gap:22px;max-width:1100px;display:flex}.character-card{cursor:pointer;background:#ffffffeb;border:none;border-radius:32px;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;min-width:150px;min-height:230px;padding:14px 12px;font-family:inherit;transition:transform 80ms;display:flex;box-shadow:0 7px #0000001f}.character-card:hover{transform:scale(1.05)}.character-card-img{height:180px}.character-card-box{justify-content:center;align-items:flex-end;height:180px;display:flex}.character-card-box .character-card-img{height:100%}.screen-title.small{font-size:48px}.pet-card{min-height:170px}.pet-card-box{justify-content:center;align-items:flex-end;width:130px;height:120px;display:flex}.pet-card-img{object-fit:contain;max-width:100%;min-height:60%;max-height:100%}.pet-preview .character-preview-img{object-fit:contain;width:auto;max-width:min(40vw,420px);height:auto;min-height:55%;max-height:100%}.pet-choice{align-items:center;width:100px;height:100px}.pet-choice-img{object-fit:contain;min-width:50px;max-width:88px;max-height:88px}.species-choice{grid-template-columns:repeat(4,100px);gap:14px;display:grid}.age-control{background:#ffffffd9;border-radius:28px;flex-direction:column;align-items:stretch;gap:6px;width:320px;padding:10px 14px;display:flex;box-shadow:0 5px #0000001a}.age-slider{width:100%}.age-marks{justify-content:space-between;display:flex}.age-mark{width:50px;height:50px;font-size:28px}.character-plus{margin-bottom:40px;font-size:70px}.gender-choice{flex-direction:row;gap:40px}.gender-choice .character-card-img{height:240px}.character-editor{flex-direction:row;gap:40px}.editor-left{flex-direction:column;align-items:center;gap:16px;display:flex}.character-preview{justify-content:center;align-items:flex-end;height:min(50vh,480px);display:flex}.character-preview-img{filter:drop-shadow(0 12px 8px #0000002e);height:100%}.name-input.small{width:300px;padding:8px 16px;font-size:36px}.editor-right{flex-direction:column;align-items:stretch;gap:16px;width:470px;padding:18px;position:static}.editor-tabs{grid-template-columns:repeat(5,64px);justify-content:center;gap:10px;display:grid}.editor-options{border-top:3px dashed #f0c9d6;flex-wrap:wrap;place-content:flex-start center;gap:12px;min-height:250px;padding-top:12px;display:flex}.look-choice{cursor:pointer;background:#fff7fa;border:none;border-radius:20px;justify-content:center;align-items:flex-end;width:96px;height:140px;padding:4px;display:flex;overflow:hidden}.look-choice.head{align-items:flex-start;height:96px}.look-choice-img{height:130px}.look-choice.head .look-choice-img{height:190px}.look-choice:hover{background:#ffe0ea}.look-choice.chosen{background:#fff7d1;outline:4px solid #ffb800}.swatch.big{width:56px;height:56px}.accessory-key{width:84px;height:84px;font-size:44px}.delete-corner{position:absolute;bottom:24px;left:24px}.step-dots{gap:14px;display:flex}.step-dot{background:#fff9;border-radius:50%;width:22px;height:22px;box-shadow:inset 0 2px #0000001a}.step-dot.on{background:#ffb800}.create-body{justify-content:center;display:flex}.create-step{background:#ffffffeb;border-radius:36px;flex-direction:column;align-items:center;gap:20px;padding:26px 36px;display:flex;box-shadow:0 8px #0000001f}.step-hint{font-size:64px}.name-input{color:#6b4f3a;text-align:center;border:4px solid #ffb3c7;border-radius:24px;outline:none;width:420px;padding:14px 22px;font-family:inherit;font-size:48px;font-weight:800}.name-input:focus{border-color:#ffb800}.avatar-grid,.password-grid{grid-template-columns:repeat(6,80px);gap:14px;display:grid}.avatar-key,.password-key{width:80px;height:80px;font-size:46px}.password-pad{flex-direction:column;align-items:center;gap:18px;display:flex}.password-top{align-items:center;gap:18px;display:flex}.password-slots{gap:14px;display:flex}.password-slot{background:#fff7fa;border:4px dashed #ffb3c7;border-radius:24px;justify-content:center;align-items:center;width:90px;height:90px;font-size:56px;display:flex}.password-slot.filled{border-style:solid;border-color:#ffb800}.password-slot.hint{opacity:.35}.password-key.hint{outline:4px solid #ffb800;animation:1s ease-in-out infinite pulse}@keyframes pulse{0%,to{transform:scale(1)}50%{transform:scale(1.15)}}.password-slots.shake{animation:.4s shake}@keyframes shake{0%,to{transform:translate(0)}20%{transform:translate(-14px)}40%{transform:translate(14px)}60%{transform:translate(-10px)}80%{transform:translate(10px)}}.corner-button{position:absolute;top:24px;left:24px}
