body[data-screen=draw]{overscroll-behavior:none;height:100dvh;overflow:hidden}body[data-screen=name]{overflow-x:hidden}#app{min-height:100dvh}.screen[hidden]{display:none}.name-screen{min-height:100dvh;padding:max(22px, env(safe-area-inset-top)) max(18px, env(safe-area-inset-right)) max(22px, env(safe-area-inset-bottom)) max(18px, env(safe-area-inset-left));place-items:center;display:grid;position:relative}.name-wrap{z-index:1;text-align:center;flex-direction:column;align-items:center;gap:16px;width:min(520px,100%);display:flex;position:relative}.wordmark{width:min(330px,76vw);height:auto;display:block}.name-title{letter-spacing:.01em;text-shadow:0 3px #00000052;margin:0;font-size:clamp(44px,10vw,58px);line-height:1}.name-pitch{max-width:42ch;color:var(--muted);font-size:var(--t-body);text-shadow:0 2px 6px #0e151ae6,0 0 14px #0e151ab3;margin:0;line-height:1.3}.name-form{text-align:left;flex-direction:column;gap:10px;width:100%;margin-top:4px;padding:14px;display:flex}.name-label{color:var(--muted);font-size:var(--t-label)}.name-form .field{min-height:56px;font-size:28px}.name-start{width:100%}.form-error{color:var(--copper);font-size:var(--t-small);margin:-2px 0 0}.quiet-link{appearance:none;color:var(--muted);font-size:var(--t-small);text-underline-offset:3px;cursor:pointer;background:0 0;border:0;padding:4px 8px;text-decoration:underline}.quiet-link:hover{color:var(--white)}.name-back:focus-visible{outline:2px solid var(--gold-hi);outline-offset:2px}.sample{filter:drop-shadow(0 22px 30px #00000059);width:312px;margin:0;display:none;transform:rotate(-3.5deg)}.sample .card-frame{width:100%}.sample .card-art img{object-fit:cover;width:100%;height:100%;display:block}.sample-credit{color:var(--muted);letter-spacing:.02em;text-align:center;padding:6px 2px 0;font-size:14px}@media (width>=1150px){.name-screen{grid-template-columns:minmax(0,540px) 312px;justify-content:center;align-items:center;gap:72px}.sample{display:block}}.studio{height:100dvh;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right);flex-direction:column;display:flex;overflow:hidden}.studio-bar{padding:max(5px, env(safe-area-inset-top)) 10px 0;flex:none;align-items:center;gap:5px;display:flex}.bar-logo{flex:none;width:118px;height:auto;display:none}.identity{appearance:none;min-width:0;color:var(--muted);text-align:left;white-space:nowrap;text-overflow:ellipsis;cursor:pointer;text-shadow:0 1px 3px #0e151ad9;background:0 0;border:0;flex:1;padding:4px 0;font-size:16px;overflow:hidden}.identity:hover .identity-change{color:var(--gold-hi)}.identity .who{color:var(--white);font-weight:400}.identity-change{color:var(--gold);text-underline-offset:2px;text-decoration:underline}.bar-tools{flex:none;align-items:center;gap:4px;display:flex}.icon-btn{appearance:none;border-radius:var(--r-chip);background:var(--panel-d);width:36px;height:34px;color:var(--muted);box-shadow:0 4px 0 var(--panel-dd);cursor:pointer;transition:transform 90ms var(--ease-out), box-shadow 90ms var(--ease-out), background .12s, color .12s;border:0;justify-content:center;align-items:center;margin:0 0 4px;display:inline-flex}.icon-btn:hover{background:var(--panel);color:var(--white)}.icon-btn:active{box-shadow:0 1px 0 var(--panel-dd);transform:translateY(3px)}.chip-btn{appearance:none;border-radius:var(--r-chip);background:var(--panel-d);min-height:34px;color:var(--copper);box-shadow:0 4px 0 var(--panel-dd);cursor:pointer;transition:transform 90ms var(--ease-out), box-shadow 90ms var(--ease-out), background .12s, color .12s;border:0;margin:0 0 4px;padding:0 8px;font-size:15px}.chip-btn:hover{background:var(--panel);color:var(--copper)}.chip-btn:active{box-shadow:0 1px 0 var(--panel-dd);transform:translateY(3px)}.monsters-chip{appearance:none;border-radius:var(--r-chip);background:var(--panel-d);min-height:34px;color:var(--muted);box-shadow:0 4px 0 var(--panel-dd);cursor:pointer;transition:transform 90ms var(--ease-out), box-shadow 90ms var(--ease-out), background .12s, color .12s;border:0;align-items:center;gap:4px;margin:0 0 4px;padding:0 6px;font-size:15px;line-height:1;display:inline-flex}.monsters-chip[hidden]{display:none}.monsters-chip:hover{background:var(--panel);color:var(--white)}.monsters-chip:active{box-shadow:0 1px 0 var(--panel-dd);transform:translateY(3px)}.monsters-chip .pixel-icon{width:auto;height:16px;display:block}.monsters-count{color:var(--white);font-size:17px}@media (width<=719px){.identity-lead{display:none}}.icon-btn:focus-visible,.chip-btn:focus-visible,.monsters-chip:focus-visible,.tool:focus-visible,.colour-btn:focus-visible,.swatch:focus-visible,.recent:focus-visible,.identity:focus-visible{outline:2px solid var(--gold-hi);outline-offset:2px}.studio-body{flex-direction:column;flex:1;gap:8px;min-height:0;padding-bottom:0;display:flex}.stage{touch-action:none;overscroll-behavior:contain;background:linear-gradient(#1a242c,#121a20);border-top:1px solid #3e52608c;border-bottom:1px solid #3e52608c;flex:1;min-height:0;position:relative;overflow:hidden}.stage-canvas{touch-action:none;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;cursor:crosshair;width:100%;height:100%;display:block;position:absolute;inset:0}.stage-canvas:focus{outline:none}.stage-canvas:focus-visible{outline:2px solid var(--gold-hi);outline-offset:-2px}.zoom-hint{z-index:2;border:1px solid var(--edge);border-radius:var(--r-chip);background:var(--panel-dd);max-width:calc(100% - 16px);color:var(--muted);white-space:nowrap;pointer-events:none;-webkit-user-select:none;user-select:none;opacity:0;transition:opacity .2s var(--ease-out), transform .2s var(--ease-out);align-items:center;padding:3px 10px;font-size:18px;line-height:1.05;display:flex;position:absolute;bottom:4px;left:50%;transform:translate(-50%,6px);box-shadow:0 2px #0000008c}.zoom-hint.show{opacity:1;transform:translate(-50%)}.zoom-hint.compact{padding:1px 8px;font-size:16px}@media (prefers-reduced-motion:reduce){.zoom-hint{transition:opacity .2s linear;transform:translate(-50%);transition-duration:.2s!important}}.card-frame{background:var(--card);border:2px solid var(--card-edge);width:360px;max-width:100%;box-shadow:0 6px 0 var(--card-lip), 0 18px 40px #00000061;border-radius:16px;padding:10px}.card-art{aspect-ratio:5/4;border:3px solid var(--card-art-rule);background:var(--white);border-radius:7px;width:100%;position:relative;overflow:hidden}.console{width:100%;max-width:620px;padding:0 10px calc(6px + env(safe-area-inset-bottom));flex-direction:column;flex:none;gap:6px;min-height:0;margin:0 auto;display:flex}.console-body{flex-direction:column;gap:6px;width:100%;min-height:0;display:flex}.console-scroll{display:contents}.sheet-handle,.sheet-compact{display:none}.sheet-grip{background:var(--edge);display:block}.sheet-compact .sheet-tool{flex-direction:row;flex:none;gap:4px;min-height:38px;padding:3px 6px;font-size:14px}.sheet-compact .sheet-tool .pixel-icon{height:16px}.sheet-compact .sheet-tool .tool-label{font-size:14px}@media (width<=369px){.studio.sheet-stacked .sheet-compact .sheet-tool .tool-label{display:none}}.sheet-colour{appearance:none;border-radius:var(--r-chip);background:var(--panel);width:34px;height:34px;box-shadow:0 3px 0 var(--panel-dd);cursor:pointer;border:0;flex:none;justify-content:center;align-items:center;padding:0;display:inline-flex}.sheet-colour .swatch{background:var(--ink);border:1px solid #ffffff9e;border-radius:4px;width:22px;height:22px;box-shadow:inset 0 0 0 1px #0000004d}.sheet-handle:focus-visible{outline:2px solid var(--gold-hi);outline-offset:-2px}.studio.sheet-stacked .console{padding:0 10px calc(4px + env(safe-area-inset-bottom));background:var(--ink);border-top:1px solid #3e52608c;border-radius:16px 16px 0 0;gap:0;overflow:hidden;box-shadow:0 -10px 28px #00000059}.studio.sheet-stacked .console-body{padding-top:4px}.studio.sheet-stacked .sheet-handle{width:100%;height:26px;color:inherit;touch-action:none;cursor:grab;background:0 0;border:0;flex:none;justify-content:center;align-items:center;margin:0;padding:0;display:flex}.studio.sheet-stacked .console.sheet-dragging .sheet-handle,.studio.sheet-wide .console.sheet-dragging .sheet-handle{cursor:grabbing}.studio.sheet-stacked .sheet-grip{border-radius:2px;width:42px;height:4px}.studio.sheet-stacked .sheet-compact{touch-action:none;flex:none;justify-content:center;align-items:center;gap:4px;padding:0 0 2px;display:none}.studio.sheet-stacked .console.sheet-compact-visible .sheet-compact,.studio.sheet-stacked .console.sheet-collapsed .sheet-compact{display:flex}.studio.sheet-stacked .console.sheet-collapsed .console-body{display:none}@media (width>=1000px),(width>=560px) and (orientation:landscape){.studio.sheet-wide .console{scrollbar-width:none;background:#0e151ad1;border:1px solid #3e52608c;border-radius:18px;flex-direction:row;align-self:stretch;gap:0;width:312px;height:100%;max-height:100%;padding:0;overflow:hidden}.studio.sheet-wide .console.sheet-collapsed{width:76px}.studio.sheet-wide .sheet-handle{width:32px;color:inherit;touch-action:none;cursor:grab;background:0 0;border:0;flex:none;justify-content:center;align-self:stretch;align-items:center;margin:0;padding:0;display:flex}.studio.sheet-wide .sheet-grip{border-radius:2px;width:4px;height:42px}.studio.sheet-wide .sheet-compact{touch-action:none;border-left:1px solid #3e526059;flex-direction:column;flex:none;align-items:center;gap:4px;width:44px;padding:8px 0;display:none;overflow:hidden}.studio.sheet-wide .console.sheet-compact-visible .sheet-compact,.studio.sheet-wide .console.sheet-collapsed .sheet-compact{display:flex}.studio.sheet-wide .sheet-compact .sheet-tool{flex-direction:column;gap:0;width:36px;min-height:36px;padding:0}.studio.sheet-wide .sheet-compact .sheet-tool .tool-label{display:none}.studio.sheet-wide .sheet-compact .sheet-colour{width:34px;height:34px}.studio.sheet-wide .console-body{scrollbar-width:none;flex:auto;gap:6px;min-width:0;height:100%;min-height:0;padding:10px;overflow:hidden}.studio.sheet-wide .console-scroll{scrollbar-width:none;flex-direction:column;flex:auto;gap:6px;min-height:0;display:flex;overflow:hidden auto}.studio.sheet-wide .console-scroll::-webkit-scrollbar{display:none}.studio.sheet-wide .console.sheet-collapsed .console-body{visibility:hidden}.studio.sheet-wide .console.sheet-dragging .console-body{visibility:visible}}.name-row{flex:none;align-items:center;gap:6px;display:flex}.name-field-wrap{flex:auto;min-width:0;display:flex;position:relative}.monster-field{flex:auto;width:100%;min-width:0;min-height:36px;padding:2px 36px 2px 10px;font-size:21px}.name-edit{appearance:none;width:28px;height:28px;color:var(--dim);cursor:pointer;background:0 0;border:0;border-radius:6px;justify-content:center;align-items:center;padding:0;display:inline-flex;position:absolute;top:50%;right:2px;transform:translateY(-50%)}.name-edit:hover{background:var(--panel);color:var(--white)}.name-edit:active{color:var(--gold-hi)}.name-edit:focus-visible{outline:2px solid var(--gold-hi);outline-offset:1px}.name-edit .pixel-icon{width:auto;height:16px;display:block}.name-roll{width:36px;min-height:36px;color:var(--muted);flex:none;justify-content:center;align-items:center;margin:0;padding:0;display:inline-flex}.name-roll .pixel-icon{width:auto;height:18px;display:block}.controls{background:var(--panel-d);border:2px solid var(--edge);border-radius:var(--r-panel);box-shadow:0 5px 0 var(--panel-dd);flex-direction:column;gap:5px;padding:5px;display:flex}.tools{align-items:stretch;gap:4px;display:flex}.tool{appearance:none;border-radius:var(--r-chip);background:var(--panel);min-width:0;min-height:42px;color:var(--muted);box-shadow:0 3px 0 var(--panel-dd);letter-spacing:.01em;cursor:pointer;transition:transform 90ms var(--ease-out), box-shadow 90ms var(--ease-out), background .12s, color .12s;border:0;flex-direction:column;flex:1 1 0;justify-content:center;align-items:center;gap:1px;padding:2px 1px;font-size:14px;display:flex}.tool .pixel-icon{width:auto;height:16px;display:block}.tool:hover{color:var(--white)}.tool:active{box-shadow:0 1px 0 var(--panel-dd);transform:translateY(2px)}.tool[aria-pressed=true]{background:var(--gold);color:var(--gold-t);box-shadow:0 3px 0 var(--gold-d)}.tool[aria-pressed=true]:active{box-shadow:0 1px 0 var(--gold-d)}.tool-sep{background:var(--edge);flex:none;width:1px;margin:3px 1px}.tool-label{white-space:nowrap;line-height:1}.sliders{grid-template-columns:1fr 1fr;align-items:center;gap:10px;display:grid}.slider{flex-direction:row;align-items:center;gap:6px;min-width:0;height:24px;display:flex}.slider-head{color:var(--muted);flex:none;align-items:baseline;gap:3px;font-size:14px;display:flex}.slider-head output{color:var(--white);font-size:16px}.slider input[type=range]{appearance:none;cursor:pointer;background:0 0;flex:auto;width:100%;min-width:34px;height:24px;margin:0}.slider input[type=range]::-webkit-slider-runnable-track{background:var(--panel-dd);border-radius:3px;height:6px;box-shadow:inset 0 1px #00000073,0 0 0 1px #3e526073}.slider input[type=range]::-webkit-slider-thumb{appearance:none;border:2px solid var(--gold-d);background:var(--gold);border-radius:6px;width:20px;height:20px;margin-top:-7px;box-shadow:0 2px #00000059}.slider input[type=range]::-moz-range-track{background:var(--panel-dd);border-radius:3px;height:6px;box-shadow:0 0 0 1px #3e526073}.slider input[type=range]::-moz-range-thumb{border:2px solid var(--gold-d);background:var(--gold);border-radius:5px;width:16px;height:16px}.colour-row{align-items:center;gap:8px;min-height:30px;display:flex}.colour-btn{appearance:none;border-radius:var(--r-chip);background:var(--panel);min-height:30px;color:var(--white);box-shadow:0 3px 0 var(--panel-dd);cursor:pointer;border:0;flex:none;align-items:center;gap:6px;padding:3px 8px 3px 4px;font-size:14px;display:flex}.colour-btn:hover{background:var(--edge)}.colour-btn:active{box-shadow:0 1px 0 var(--panel-dd);transform:translateY(2px)}.colour-btn .swatch{background:var(--ink);border:1px solid #ffffff9e;border-radius:4px;width:20px;height:20px;box-shadow:inset 0 0 0 1px #0000004d}.recents{flex:1;align-items:center;gap:5px;min-width:0;display:flex}.recent{appearance:none;cursor:pointer;border:1px solid #ffffff40;border-radius:50%;flex:none;width:19px;height:19px;padding:0}.recent[aria-pressed=true]{outline:2px solid var(--white);outline-offset:1px}.status{font-size:var(--t-small);color:var(--copper);margin:0;padding:0 4px;line-height:1.2}.status[data-tone=notice]{color:var(--muted)}.send-btn{flex:none;width:100%}.send-btn.sending{animation:1.1s ease-in-out infinite sending-pulse}@keyframes sending-pulse{50%{filter:brightness(1.12)}}.monsters{width:min(520px,100vw - 24px)}.monsters-grid{scrollbar-width:none;grid-template-columns:repeat(auto-fill,minmax(88px,1fr));gap:8px;max-height:min(58dvh,460px);padding:4px 14px 14px;display:grid;overflow-y:auto}.monsters-grid::-webkit-scrollbar{display:none}.monsters-empty{color:var(--muted);font-size:var(--t-small);margin:0;padding:4px 14px 18px}.monsters-empty[hidden]{display:none}@media (width>=1000px),(width>=560px) and (orientation:landscape){.studio{width:100%;max-width:1600px;margin:0 auto}.studio-bar{gap:12px;padding:14px 24px 0}.bar-logo{display:block}.identity{flex:none;margin-right:auto}.studio-body{flex-direction:row;gap:24px;padding:10px 24px 20px}.stage{border:1px solid #3e526059;border-radius:18px;flex:1;padding:0}.console{scrollbar-width:none;background:#0e151ad1;border:1px solid #3e52608c;border-radius:18px;justify-content:flex-start;align-self:center;width:312px;max-width:none;height:auto;max-height:100%;margin:0;padding:12px;overflow-y:auto}.console::-webkit-scrollbar{display:none}}@media (height<=540px) and (width>=560px){.studio-bar{padding-top:8px}.studio-body{padding-top:6px;padding-bottom:10px}}@media (height<=620px) and (width<=999px){.studio-bar{padding-top:max(3px, env(safe-area-inset-top))}}dialog{border:2px solid var(--edge);background:var(--panel);color:var(--white);box-shadow:0 8px 0 var(--panel-dd), 0 30px 70px #0000008c;border-radius:16px;max-width:calc(100vw - 24px);max-height:calc(100dvh - 24px);padding:0;font-family:inherit}dialog::backdrop{background:#070c10ad}dialog[open]{animation:dialog-in .17s var(--ease-out)}@keyframes dialog-in{0%{opacity:0;transform:translateY(8px)scale(.97)}to{opacity:1;transform:none}}.sheet{width:min(440px,100vw - 24px)}@media (width<=620px){.sheet{width:100%;max-width:none;max-height:calc(100dvh - 16px);padding-bottom:env(safe-area-inset-bottom);animation:sheet-in .19s var(--ease-out);border-bottom:0;border-radius:18px 18px 0 0;margin:0;position:fixed;inset:auto 0 0}@keyframes sheet-in{0%{transform:translateY(100%)}to{transform:translateY(0)}}}.sheet-head{justify-content:space-between;align-items:center;padding:12px 14px 6px;display:flex}.sheet-head h2{font-size:var(--t-title);margin:0;font-weight:400}.sheet-head .icon-btn{margin:0}.sheet-label{color:var(--dim);letter-spacing:.06em;text-transform:uppercase;padding:4px 14px;font-size:14px}.swatch-grid{grid-template-columns:repeat(8,1fr);gap:7px;padding:2px 14px 12px;display:grid}.recent-grid{padding-bottom:8px}.swatch{appearance:none;aspect-ratio:1;cursor:pointer;border:1px solid #ffffff2e;border-radius:6px;width:100%;padding:0;box-shadow:inset 0 -3px #0000002e}.swatch[aria-pressed=true]{outline:2px solid var(--white);outline-offset:2px}.custom-row{border-top:1px solid var(--edge);justify-content:space-between;align-items:center;gap:10px;margin-top:2px;padding:10px 14px 14px;display:flex}.custom-label{color:var(--muted);font-size:var(--t-small);cursor:pointer;align-items:center;gap:9px;display:flex;position:relative}.custom-face{border:1px solid var(--edge);background:var(--gold);border-radius:6px;width:30px;height:30px;box-shadow:inset 0 -3px #0000002e}.custom-label input{opacity:0;cursor:pointer;width:100%;height:100%;position:absolute;inset:0}.hex-label{color:var(--dim);font-size:var(--t-small);letter-spacing:.03em}.confirm{width:min(460px,100vw - 24px)}.confirm-card{text-align:center;padding:20px}.confirm h2{margin:0 0 6px;font-size:38px;font-weight:400;line-height:1}.confirm p{color:var(--muted);font-size:var(--t-body);margin:0 0 18px}.confirm-actions{grid-template-columns:1fr 1fr;gap:10px;display:grid}.confirm-actions .btn{--lip-h:var(--lip-button);min-height:56px;font-size:var(--t-button);white-space:nowrap;padding:0 10px}.confirm .btn:not(.copper){--face:var(--edge)}@media (width<=470px){.confirm-actions{grid-template-columns:1fr}}.celebrate{border-color:var(--card-edge);width:min(384px,100vw - 28px)}.celebrate-card{text-align:center;padding:16px 16px 18px}.celebrate-shot{position:relative}.celebrate-shot img{aspect-ratio:5/4;object-fit:cover;border:3px solid var(--card-art-rule);background:var(--white);width:100%;animation:thumb-pop .42s var(--spring) both;border-radius:9px;display:block}.celebrate-star{color:var(--gold);filter:drop-shadow(0 2px 0 var(--gold-d)) drop-shadow(0 0 1px #0e151ae6);animation:star-pop .52s var(--spring) .15s both;position:absolute;top:-8px;right:-6px}.celebrate h2{text-shadow:0 3px #00000052;margin:14px 0 2px;font-size:44px;font-weight:400;line-height:1}.celebrate-copy{color:var(--muted);font-size:var(--t-body);margin:0 0 14px}.celebrate .btn{width:100%}@keyframes thumb-pop{0%{opacity:0;transform:scale(.86)rotate(-2.5deg)}to{opacity:1;transform:none}}@keyframes star-pop{0%{opacity:0;transform:scale(0)rotate(-30deg)}to{opacity:1;transform:none}}.toast{left:50%;bottom:calc(18px + env(safe-area-inset-bottom));z-index:60;border:2px solid var(--edge);border-radius:var(--r-panel);background:var(--panel-d);max-width:min(90vw,440px);box-shadow:0 4px 0 var(--panel-dd);color:var(--white);font-size:var(--t-small);text-align:center;opacity:0;pointer-events:none;transition:opacity .16s var(--ease-out), transform .16s var(--ease-out);padding:8px 14px;position:fixed;transform:translate(-50%,10px)}.toast.show{opacity:1;transform:translate(-50%)}@media (prefers-reduced-motion:reduce){dialog[open],.celebrate-shot img,.celebrate-star,.toast,.send-btn.sending{transition:none!important;animation:none!important}}.sent-viewer{border-color:var(--card-edge);width:min(520px,100vw - 24px)}.sent-viewer [hidden]{display:none!important}.sent-viewer-card{text-align:center;padding:16px 16px 18px}.sent-viewer-art{aspect-ratio:5/4;object-fit:contain;border:3px solid var(--card-art-rule);background:var(--white);border-radius:9px;width:100%;display:block}.sent-viewer h2{overflow-wrap:anywhere;margin:14px 0 2px;font-size:38px;font-weight:400;line-height:1}.sent-viewer-meta{color:var(--dim);font-size:var(--t-small);margin:0 0 14px}.sent-viewer-status{color:var(--muted);font-size:var(--t-body);margin:-4px 0 14px}.sent-viewer-status.error{color:var(--copper)}.sent-viewer .confirm-actions{grid-template-columns:none;grid-auto-columns:1fr;grid-auto-flow:column}.sent-viewer .btn:not(.copper){--face:var(--edge)}.sent-open{cursor:pointer;width:100%;transition:transform 90ms var(--ease-out);background:0 0;border:0;border-radius:6px;flex:none;padding:0}.sent-open:hover{transform:translateY(-1px)}.sent-open:active{transform:translateY(1px)}.sent-open:focus-visible{outline:2px solid var(--gold-hi);outline-offset:2px}.sent-open .sent-thumb{aspect-ratio:5/4;object-fit:cover;border:1px solid var(--edge);background:var(--panel-dd);width:100%;height:auto;box-shadow:0 2px 0 var(--panel-dd);border-radius:5px;display:block}
