body[data-view=draw]{overflow:hidden;background:#fffcf3}body[data-view=draw] .game-toolbar,body[data-view=draw] .workshop-title,body[data-view=draw] .saved-section,body[data-view=draw] .creation-history{display:none!important}body[data-view=draw] main,body[data-view=draw] .workshop{padding:0;margin:0;max-width:none;display:block}body[data-view=draw] .editor{position:fixed;inset:0;width:100%;height:100dvh;border:0;border-radius:0;margin:0;padding:0;box-shadow:none;background:#fffcf3;overflow:hidden}body[data-view=draw] .editor> :is(.editor-heading,.tabs,.tools,.paper-actions,.editor-bottom,.generation-panel){display:none!important}body[data-view=draw] #draw-panel,body[data-view=draw] #upload-panel{position:absolute;inset:0}body[data-view=draw] #draw-panel[hidden],body[data-view=draw] #upload-panel[hidden]{display:none!important}body[data-view=draw] .paper{width:100%;height:100%;aspect-ratio:auto;border:0;border-radius:0;background:transparent}body[data-view=draw] #drawing{display:block;width:100%;height:100%;touch-action:none}body[data-view=draw] #paper-hint{pointer-events:none;color:#a8a093}body[data-view=draw] #photo-preview{height:100%;padding:100px 80px 150px}body[data-view=draw] #photo-preview img{height:100%;width:100%;object-fit:contain}body[data-view=draw] .drop-zone{height:100%;margin:0;border:0;border-radius:0}body[data-view=draw] .upload-tip{display:none}
.studio-top,.studio-side,.studio-palette,.studio-sources,.studio-done{display:none}body[data-view=draw] :is(.studio-top,.studio-side,.studio-palette,.studio-sources,.studio-done){display:flex;position:absolute;z-index:5} .studio-top{top:max(18px,env(safe-area-inset-top));left:20px;right:20px;justify-content:space-between;pointer-events:none}.studio-top>*{pointer-events:auto}.studio-tools,.studio-side,.studio-palette,.studio-sources{gap:7px;align-items:center;padding:8px;background:#fffef9;border:1px solid #e7dec9;border-radius:24px;box-shadow:0 5px 0 #e4ddcc,0 10px 22px #67584413}.studio-top button,.studio-side button,.studio-sources button,.studio-color{min-width:46px;min-height:46px;border:0;border-radius:16px;background:#f3eee4;color:#514267;font:700 15px inherit;cursor:pointer}.studio-back{display:flex;align-items:center;gap:8px;padding:0 15px!important;background:#fffef9!important;box-shadow:0 4px 0 #d9d1c2}.studio-tools [data-tool]{font-size:27px}.studio-tools [aria-pressed=true]{background:#e9e0ff;box-shadow:inset 0 0 0 2px #8660d7}.studio-tools #clear{padding:0 10px}.studio-color{display:grid;place-items:center;overflow:hidden}.studio-color input{width:38px;height:38px;border:0;padding:0;background:transparent;cursor:pointer}.studio-side{left:18px;top:40%;flex-direction:column}.studio-side .size-label{display:flex;flex-direction:column;font-size:11px;gap:12px;padding:8px 0}.studio-side input{writing-mode:vertical-lr;direction:rtl;width:28px;height:120px;accent-color:#7b55cc}.studio-side #undo{font-size:0}.studio-side #undo:after{content:'↶';font-size:25px}.studio-side #redo{font-size:25px}.studio-palette{bottom:26px;left:20px}.studio-palette .swatch{width:28px;height:28px}.studio-sources{top:90px;right:20px}.studio-sources button{padding:0 12px;font-size:12px}.studio-done{bottom:max(24px,env(safe-area-inset-bottom));right:24px;padding:17px 40px;border:0;border-radius:24px;background:#7954cf;color:white;font-size:20px;font-weight:800;box-shadow:0 6px 0 #553a95;cursor:pointer}.studio-done:disabled{background:#d5cbe9;box-shadow:0 5px 0 #c1b7d5;cursor:default}.studio-top button:focus-visible,.studio-done:focus-visible{outline:3px solid #ad83ed;outline-offset:4px}
.awakening-dialog{border:0;border-radius:30px;padding:30px;width:min(680px,94vw);max-height:92dvh;background:#fffdf5;color:#514267;box-shadow:0 16px 0 #50436326;overflow:auto}.awakening-dialog::backdrop{background:#25373988;backdrop-filter:blur(5px)}.awakening-close{float:right;width:44px;height:44px;border:0;border-radius:50%;font-size:28px;background:#efe8fa;color:#60477f;cursor:pointer}.awakening-dialog h2{font-size:26px;margin:15px 45px 24px 0}.awakening-character{display:flex;align-items:center;gap:22px;background:#f3eee5;border-radius:22px;padding:14px}.awakening-character img{width:150px;height:150px;object-fit:contain;background:white;border-radius:16px}.awakening-character strong{font-size:24px}.awakening-character p{font-size:14px;line-height:1.6}.awakening-plans{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.awakening-plan{display:flex;flex-direction:column;align-items:center;gap:12px;border:2px solid #ddd1f2;border-radius:20px;padding:20px 8px;background:#fffdf9;color:#594079;cursor:pointer;min-height:140px}.awakening-plan span{font-size:24px;font-weight:800}.awakening-plan small{font-size:11px}.awakening-plan:hover{background:#efe6ff;border-color:#8860ca}.awakening-notice{font-size:13px;color:#736b7b;line-height:1.5}.studio-permission{border:0;border-radius:28px;max-width:460px;width:92vw;padding:28px;background:#fffdf7}.studio-permission::backdrop{background:#25373988;backdrop-filter:blur(5px)}.studio-permission label{display:flex;gap:12px;line-height:1.6;margin:20px 0}.studio-permission input{width:22px;height:22px;flex:none}.studio-permission button{margin-top:12px}
@media(max-width:600px){.studio-top{left:12px;right:12px;top:12px}.studio-top button,.studio-color{min-width:42px;min-height:44px}.studio-back span{display:none}.studio-tools{gap:3px;padding:5px}.studio-tools #clear{font-size:11px}.studio-sources{top:82px;right:12px;gap:3px;padding:5px}.studio-sources button{font-size:10px;padding:0 8px;min-width:42px;min-height:40px}.studio-side{left:10px;top:32%;padding:5px}.studio-palette{left:12px;bottom:95px;gap:8px;padding:8px}.studio-palette .swatch{width:27px;height:27px}.studio-done{bottom:22px;right:18px;padding:15px 36px}body[data-view=draw] #photo-preview{padding:145px 25px 155px}.awakening-dialog{padding:22px}.awakening-dialog h2{font-size:22px}.awakening-character{gap:12px}.awakening-character img{width:100px;height:115px}.awakening-character strong{font-size:20px}.awakening-plans{grid-template-columns:repeat(2,1fr)}.awakening-plan{min-height:115px;padding:14px 8px}}
@media(prefers-reduced-motion:reduce){.studio-done{transition:none}}
body[data-view=draw] .editor>.card-heading,body[data-view=draw] #draw-panel>.tools,body[data-view=draw] #draw-panel>.paper-actions{display:none!important}body[data-view=draw] .paper{max-height:none}.studio-tools{display:flex;flex-wrap:nowrap}.studio-back{height:48px;align-self:flex-start}.studio-side .size-label{margin:0}.studio-side{width:60px}.studio-side #undo,.studio-side #redo{padding:0;width:44px}.studio-tools #clear{font-size:12px}.studio-tools button{flex:none}.studio-top button{font-family:inherit}.studio-tools .studio-color{flex:none}body[data-view=draw] .creation-history{display:none!important}
body[data-view=draw] .generation-dialog{width:min(760px,96vw);max-height:96dvh;padding:30px 40px;background:#fffdf6}body[data-view=draw] .generation-dialog[data-state^=image_] .creation-card img{height:min(43dvh,400px);object-fit:contain}body[data-view=draw] .generation-dialog .result-intro{margin-bottom:12px}body[data-view=draw] .generation-dialog .creation-card{padding:0;border:0;box-shadow:none;background:transparent}body[data-view=draw] .generation-dialog[data-state=image_ready] .creation-card-title,body[data-view=draw] .generation-dialog[data-state=image_ready] .creation-card-state{display:none}body[data-view=draw] .generation-dialog h2{font-size:30px}body[data-view=draw] .generation-dialog[data-state=image_pending],body[data-view=draw] .generation-dialog[data-state=image_running],body[data-view=draw] .generation-dialog[data-state=image_submitting]{padding:80px 36px;text-align:center}body[data-view=draw] .generation-dialog .result-name-field{margin:15px 0}body[data-view=draw] .generation-dialog .generation-new{margin:8px auto 0;display:block}
@media(max-width:600px){body[data-view=draw] .generation-dialog{padding:26px 22px}body[data-view=draw] .generation-dialog h2{font-size:24px}body[data-view=draw] .generation-dialog[data-state=image_ready] .creation-card img{height:34dvh}body[data-view=draw] .generation-dialog .result-intro{font-size:13px}}
body[data-view=draw] main>section.creation-history{display:none!important}
@media(max-width:360px){.studio-tools{gap:2px}.studio-top .studio-tools button,.studio-color{min-width:37px}.studio-tools #clear{font-size:10px;padding:0 5px}.studio-top{left:9px;right:9px}.studio-back{padding:0 10px!important}.studio-palette .swatch{width:25px;height:25px}}
body[data-view=draw] .editor.card{padding:0;border:0;border-radius:0;box-shadow:none;background:#fffcf3}body[data-view=draw] .studio-side .size-label{font-size:11px;gap:12px;margin:0}body[data-view=draw] .studio-side .size-label input{width:28px;height:120px;min-height:0}body[data-view=draw] .studio-sources button{font-size:12px;min-height:44px}.actor-name.egg-action{max-width:220px;min-height:44px;padding:10px 18px;border:2px solid #e7dcfa;background:#fffaf5;color:#7350b1;box-shadow:0 4px 0 #81649d55;font-size:13px}.actor-name.egg-action:hover{background:#eee2ff}.actor-name.egg-action:focus-visible{outline:3px solid #9c70e2;outline-offset:3px}@media(max-width:600px){body[data-view=draw] .studio-sources button{font-size:10px;min-height:40px}.actor-name.egg-action{font-size:12px;padding:9px 14px;max-width:190px}}

/* Clear, touch-friendly drawing controls. */
.studio-tool-icon{display:block;width:32px;height:32px;margin:auto;pointer-events:none}
body[data-view=draw] .studio-top .studio-back{background:linear-gradient(180deg,#9271e8,#7752ce)!important;color:#fff;box-shadow:0 5px 0 #563898,0 8px 18px #6e50a02b;border:2px solid #fff;min-height:52px;font-size:16px;font-weight:750;padding:0 18px!important;gap:10px;border-radius:19px}
.studio-back:hover{filter:brightness(1.06)}.studio-back:active{translate:0 3px;box-shadow:0 2px 0 #563898}
body[data-view=draw] .studio-side{width:70px}body[data-view=draw] .studio-side .size-label input{appearance:none;-webkit-appearance:none;writing-mode:vertical-lr;direction:rtl;width:44px;height:155px;background:transparent;cursor:pointer;touch-action:none;padding:0;border:0}
.studio-side input[type=range]::-webkit-slider-runnable-track{width:14px;height:100%;border-radius:999px;background:linear-gradient(to top,#865bd4 0 var(--brush-fill),#e5ddee var(--brush-fill) 100%);box-shadow:inset 0 0 0 1px #80629c25}
.studio-side input[type=range]::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:30px;height:30px;margin-left:-8px;border:3px solid #fff;border-radius:50%;background:#8053d0;box-shadow:0 2px 6px #5c398955}
.studio-side input[type=range]::-moz-range-track{width:14px;height:100%;border-radius:999px;background:#e5ddee}.studio-side input[type=range]::-moz-range-progress{width:14px;border-radius:999px;background:#865bd4}.studio-side input[type=range]::-moz-range-thumb{width:24px;height:24px;border:3px solid #fff;border-radius:50%;background:#8053d0;box-shadow:0 2px 6px #5c398955}
body[data-view=draw] .studio-side .size-label input:focus-visible{outline:3px solid #ac8ce4;outline-offset:4px;border-radius:16px}
.studio-color input{border-radius:12px;overflow:hidden;appearance:none;-webkit-appearance:none;padding:4px}.studio-color input::-webkit-color-swatch-wrapper{padding:0}.studio-color input::-webkit-color-swatch{border:0;border-radius:9px;box-shadow:inset 0 0 0 1px #00000012}.studio-color input::-moz-color-swatch{border:0;border-radius:9px}
@media(max-width:600px){body[data-view=draw] .studio-top .studio-back{min-width:48px;min-height:48px;padding:0 12px!important;font-size:22px;border-radius:17px}.studio-side{left:10px}body[data-view=draw] .studio-side{width:64px}.studio-tool-icon{width:29px;height:29px}}

.studio-done{flex-direction:column;align-items:center;gap:4px}.studio-done small{font-size:10px;font-weight:500;opacity:.85;line-height:1.2}

.actor-name.egg-preparing{pointer-events:none;min-width:150px;max-width:220px;padding:12px 15px 13px;background:#fffdf5;border:2px solid #e4d4f6;border-radius:19px;box-shadow:0 5px 0 #80619b55,0 8px 20px #5f408320;overflow:visible;white-space:nowrap;color:#60467e;text-align:center}.egg-preparing strong{display:block;overflow:hidden;text-overflow:ellipsis;font-size:14px;line-height:1.3;margin-bottom:8px}.egg-preparing:after{content:'';position:absolute;left:calc(50% - 7px);bottom:-8px;width:12px;height:12px;background:#fffdf5;border-right:2px solid #e4d4f6;border-bottom:2px solid #e4d4f6;rotate:45deg}.egg-loading-track{display:block;height:10px;border-radius:99px;background:#eee5f6;overflow:hidden;border:1px solid #d5c2e9}.egg-loading-fill{display:block;width:100%;height:100%;border-radius:99px;transform-origin:left;background:repeating-linear-gradient(120deg,#9369df 0 9px,#c1a1ed 9px 16px);background-size:37px 100%;animation:egg-loading-stripes 1.4s linear infinite;will-change:transform}@keyframes egg-loading-stripes{to{background-position:37px 0}}@media(prefers-reduced-motion:reduce){.egg-loading-fill{animation:none}}@media(max-width:600px){.actor-name.egg-preparing{min-width:132px;padding:10px 12px}.egg-preparing strong{font-size:13px}}
.studio-sources{gap:8px;padding:8px;background:#fffdf9;border:2px solid white;box-shadow:0 5px 0 #d7c8df,0 9px 24px #70587f18}.studio-sources button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:54px;padding:8px 13px;border:1px solid #dfcbee;border-radius:16px;background:linear-gradient(145deg,#faf5ff,#f0e5fb);box-shadow:0 3px 0 #d0bade;color:#71518f;font-size:12px;font-weight:750}.studio-sources button>svg{width:32px;height:32px;flex:none}.studio-sources .studio-source-draw[aria-pressed=true]{background:linear-gradient(145deg,#aa83e0,#855bc4);border-color:#c7a6ef;box-shadow:0 3px 0 #64448f;color:#fff}.studio-sources button:active{transform:translateY(2px);box-shadow:0 1px 0 #c3add5}.studio-sources #take-photo{background:linear-gradient(145deg,#f8efff,#ead9fa)}.studio-sources #pick-gallery{background:linear-gradient(145deg,#fff8e5,#ffecc5);border-color:#ebd6a9;box-shadow:0 3px 0 #d7bf8f;color:#8d6c3a}.studio-sources button:focus-visible{outline:3px solid #c295e8;outline-offset:4px}
@media(max-width:600px){.studio-sources{left:10px;right:10px;gap:6px;padding:7px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}.studio-sources button{flex-direction:column;gap:3px;padding:6px 4px;min-width:0;min-height:65px;font-size:10px;line-height:1.2}.studio-sources button>svg{width:29px;height:29px}.studio-sources button span{white-space:nowrap}.studio-palette{bottom:115px}}

@media(max-width:600px){body[data-view=draw] .studio-sources{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}}

.studio-tools #clear{display:grid;place-items:center;padding:0;min-width:46px;width:46px;min-height:46px}.studio-tools #clear .studio-tool-icon{width:30px;height:30px}
@media(max-width:360px){.studio-tools #clear{min-width:37px;width:37px}}
.studio-tool-cursor{position:fixed;left:0;top:0;z-index:40;pointer-events:none;border:1.5px solid #594576;border-radius:50%;box-shadow:0 0 0 1.5px #fff;box-sizing:border-box;background:color-mix(in srgb,var(--preview-color) 15%,transparent)}.studio-tool-cursor[data-tool=eraser]{border-color:#9b6486;background:#fff5fa45;box-shadow:0 0 0 1.5px white,inset 0 0 0 1px #b9779740}.studio-tool-cursor[hidden]{display:none}.tool-size-caption{display:block;font-size:10px;line-height:1.4;text-align:center;white-space:nowrap;color:#8a6ea3}
body[data-view=draw] .studio-palette{display:grid;grid-template-columns:repeat(12,44px);gap:6px;padding:9px 10px;border:2px solid white;border-radius:24px;background:#fffdf9;box-shadow:0 4px 0 #d9c8df,0 9px 22px #67584413}body[data-view=draw] .studio-palette .swatch{width:44px;height:44px;min-width:44px;min-height:44px;margin:0;padding:0;border:4px solid white;box-shadow:inset 0 0 0 1px #624d6d25,0 2px 0 #d7c6dd;border-radius:50%}body[data-view=draw] .studio-palette .swatch[aria-pressed=true]{outline:3px solid #a27ac5;outline-offset:1px}body[data-view=draw] .studio-palette .swatch:focus-visible{outline:3px solid #9360d0;outline-offset:2px}
@media(max-width:950px){body[data-view=draw] .studio-palette{grid-template-columns:repeat(6,44px);bottom:112px;left:12px;gap:5px;padding:8px}}
@media(max-width:600px){body[data-view=draw] .studio-palette{left:10px;right:10px;bottom:115px;grid-template-columns:repeat(6,44px);justify-content:space-between;gap:6px 0;padding:8px 10px}.tool-size-caption{font-size:9px}}
@media(max-width:360px){body[data-view=draw] .studio-palette{padding:7px 6px;gap:5px 3px;justify-content:center}}
@media(max-height:780px) and (max-width:600px){body[data-view=draw] .studio-side{top:185px}body[data-view=draw] .studio-side .size-label input{height:120px}}
@media(max-height:600px) and (min-width:601px){body[data-view=draw] .studio-side{top:110px}body[data-view=draw] .studio-side .size-label input{height:90px}body[data-view=draw] .studio-palette{bottom:20px;left:100px;grid-template-columns:repeat(6,44px);padding:6px;gap:4px}}

body[data-view=draw] #palette.studio-palette{display:grid}


body[data-view=draw] #palette.studio-palette{gap:6px}@media(max-width:600px){body[data-view=draw] #palette.studio-palette{gap:6px 0;padding:8px 10px}}@media(max-width:360px){body[data-view=draw] #palette.studio-palette{gap:5px 3px;padding:7px 6px}}

/* Keep pixels and undo history independent of the viewport. */
body[data-view=draw] #drawing{position:absolute;left:50%;top:50%;transform:translate(-50%,-50%)}
.studio-drafts{display:none}body[data-view=draw] .studio-drafts{display:block;position:absolute;z-index:6;left:18px;bottom:24px;min-height:48px;padding:10px 14px;border:2px solid white;border-radius:17px;background:#fff0bc;color:#62467f;font:700 14px inherit;box-shadow:0 4px 0 #d4b970;cursor:pointer}
.drafts-dialog{width:min(850px,94vw);max-height:90dvh;overflow:auto;border:0;border-radius:26px;padding:22px;background:#fffdf5;color:#62467f}.drafts-dialog::backdrop{background:#25373988}.drafts-dialog .saved-section,body[data-view=draw] .drafts-dialog .saved-section{display:block!important;opacity:1;transform:none}.drafts-dialog>#save{display:block;width:100%;margin:18px 0;min-height:48px}.drafts-dialog #saved-list{display:grid;grid-template-columns:repeat(auto-fit,minmax(130px,1fr));gap:12px}.drafts-dialog .saved-item img{max-width:100%;height:130px;object-fit:contain}
@media(max-width:950px){body[data-view=draw] .studio-drafts{bottom:22px;left:10px;max-width:110px}body[data-view=draw] .studio-done{right:10px;padding:14px 25px;max-width:180px}}
@media(max-height:700px) and (max-width:600px){body[data-view=draw] .studio-side{top:170px;left:10px;right:10px;width:auto;flex-direction:row;justify-content:center;padding:6px;gap:8px}body[data-view=draw] .studio-side .size-label{flex-direction:row;align-items:center;gap:6px;padding:0}body[data-view=draw] .studio-side .size-label input{writing-mode:horizontal-tb;direction:ltr;width:105px;height:44px}.studio-side input[type=range]::-webkit-slider-runnable-track{height:14px;width:100%;background:linear-gradient(to right,#865bd4 0 var(--brush-fill),#e5ddee var(--brush-fill) 100%)}.studio-side input[type=range]::-webkit-slider-thumb{margin-left:0;margin-top:-8px}.studio-side input[type=range]::-moz-range-track{height:14px;width:100%}.studio-side input[type=range]::-moz-range-progress{height:14px}}
@media(max-height:500px) and (min-width:601px){body[data-view=draw] .studio-drafts{left:12px;bottom:20px;max-width:82px;padding:8px;font-size:11px}body[data-view=draw] .studio-side{top:165px;left:12px;width:auto;flex-direction:row}body[data-view=draw] .studio-side .size-label{flex-direction:row;align-items:center}body[data-view=draw] .studio-side .size-label input{writing-mode:horizontal-tb;direction:ltr;width:100px;height:44px}.studio-side input[type=range]::-webkit-slider-runnable-track{height:14px;width:100%}.studio-side input[type=range]::-webkit-slider-thumb{margin: -8px 0 0}}

