@font-face{font-family:Jua;src:url('assets/fonts/Jua-Regular.woff2')}@font-face{font-family:Gaegu;src:url('assets/fonts/Gaegu-Regular.woff2')}@font-face{font-family:'Gowun Dodum';src:url('assets/fonts/GowunDodum-Regular.woff2')}@font-face{font-family:'Black Han Sans';src:url('assets/fonts/BlackHanSans-Regular.woff2')}@font-face{font-family:'Nanum Pen Script';src:url('assets/fonts/NanumPenScript-Regular.woff2')}
:root{--ink:#274b3a;--muted:#788274;--paper:#fffdf6;--cream:#f6f5ec;--line:#e2e5d9;--green:#285b43;--pink:#e9b8ab;--sans:'Gowun Dodum',sans-serif}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{font-family:var(--sans);color:var(--ink);background:var(--cream)}button,input,select,textarea{font:inherit;color:inherit}button{cursor:pointer;border:0;background:none}button:disabled{opacity:.35;cursor:default}button,input,select,textarea{outline-offset:4px}button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:2px solid var(--green)}button{touch-action:manipulation}button:hover:not(:disabled){filter:brightness(.97)}[hidden]{display:none!important}.screen{width:100%;height:100dvh;min-height:0}img{display:block;max-width:100%}h1,h2,h3,p{margin:0}h1{font-family:Jua,sans-serif;font-weight:400}h2{font-size:16px;font-weight:600}h3{font-size:14px;font-weight:500}em{font-style:normal;color:#c97b65}.eyebrow{font-size:12px;letter-spacing:.15em;color:#71816c}.primary,.secondary{border-radius:12px;padding:12px 20px;font-weight:600;white-space:nowrap}.primary{background:var(--green);color:var(--paper);box-shadow:0 3px 0 #153a29}.primary span{margin-left:16px}.secondary{background:var(--paper);border:1px solid #ccd3c3}.large{padding:17px 27px;font-size:16px}.text-button{font-size:13px;padding:10px 0;text-align:left}.tiny{font-size:11px;line-height:1.9;color:var(--muted)}.muted{font-size:12px;line-height:1.7;color:var(--muted)}.icon-button{width:36px;height:36px;display:inline-grid;place-items:center;border-radius:8px;font-size:23px}.icon-button:hover{background:#e9eddf}.subtle-button{font-size:12px;padding:8px 10px;border-radius:7px;color:var(--ink);background:rgba(255,255,255,.5)}
.title-screen{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;padding:7vh max(7vw,32px);background:radial-gradient(circle at 74% 43%,#f8ecd4 0,#eff1e5 48%)}.title-brand{position:absolute;top:30px;left:max(7vw,32px);display:flex;gap:10px;align-items:center;font-size:11px;letter-spacing:.14em}.title-brand img{width:32px;height:32px}.title-copy{z-index:2;padding-top:34px}.title-copy h1{font-size:clamp(40px,4.7vw,72px);line-height:1.24;letter-spacing:-.035em;margin:20px 0 24px}.intro{font-size:16px;line-height:1.8;color:#62745f}.title-actions{display:flex;flex-direction:column;align-items:flex-start;gap:12px;margin:30px 0 20px}.title-art{position:relative;display:grid;place-items:center;height:min(76vh,690px)}.orbit{position:absolute;width:min(40vw,520px);aspect-ratio:1;border:1px dashed #acb698;border-radius:50%;transform:rotate(-18deg);opacity:.6}.hero-card{position:relative;height:75%;aspect-ratio:3/4;transform:rotate(8deg);border-radius:22px;box-shadow:12px 20px 35px #39512e21,0 2px 4px #28372015;background:var(--paper)}.hero-card canvas{height:100%;width:100%;border-radius:22px}.paper-tab{position:absolute;top:-16px;left:calc(50% - 84px);padding:8px 15px;background:#eac4a9d9;color:#8c634c;font-size:8px;letter-spacing:.13em;transform:rotate(-7deg);width:168px;text-align:center}.floating{position:absolute;width:94px;filter:drop-shadow(3px 6px 4px #344a2920)}.f1{left:3%;top:18%;transform:rotate(-18deg)}.f2{right:0;top:4%;width:72px;transform:rotate(15deg)}.f3{right:0;bottom:10%;width:70px;transform:rotate(-13deg)}.hand-note{position:absolute;left:-6%;bottom:8%;font:28px/1.25 Gaegu;transform:rotate(-10deg)}.title-bottom{position:absolute;bottom:30px;left:max(7vw,32px);font-size:11px;color:var(--muted);display:flex;align-items:center;gap:15px}.title-bottom i{height:3px;width:3px;background:#a7b59b;border-radius:50%}
.editor-screen{display:grid;grid-template-columns:74px 286px minmax(250px,1fr) 266px;grid-template-rows:68px minmax(0,1fr);background:#f2f3e9}.editor-bar{grid-column:1/-1;border-bottom:1px solid var(--line);background:var(--paper);display:flex;align-items:center;justify-content:space-between;padding:0 22px;gap:18px}.brand-button{display:flex;align-items:center;font:19px Jua;gap:8px;white-space:nowrap}.brand-button img{width:31px;height:31px}.workspace-label{font-size:11px;color:var(--muted);flex:1;text-align:center}.bar-actions{display:flex;align-items:center;gap:7px}.bar-actions .primary{font-size:13px;margin-left:10px;padding:11px 17px}.tool-tabs{display:flex;flex-direction:column;gap:12px;padding:24px 8px;background:var(--paper);border-right:1px solid var(--line)}.tool-tabs button{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:11px;color:#83907d;border-radius:12px;padding:11px 4px}.tool-tabs button>span{font:25px Jua;height:28px}.tool-tabs button.active{background:#e5eddc;color:var(--green)}.materials{background:var(--paper);border-right:1px solid var(--line);display:flex;flex-direction:column;min-height:0}#material-header{padding:24px 18px 14px}.material-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:6px}.count{font-size:11px;color:var(--muted)}.segments{display:flex;gap:4px;padding:4px;border-radius:10px;background:#f2f3ea;margin-top:17px}.segments button{flex:1;border-radius:7px;padding:8px 5px;font-size:12px}.segments button.active{background:var(--paper);box-shadow:0 1px 5px #1f442415;color:var(--green)}.character-filter{display:flex;justify-content:space-between;gap:5px;margin-top:10px}.character-filter button{font-size:12px;padding:6px 11px;border:1px solid var(--line);border-radius:20px;flex:1}.character-filter button.active{background:var(--green);border-color:var(--green);color:white}.material-grid{padding:0 14px 20px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px;align-content:start;overflow:auto;min-height:0;scrollbar-width:thin;scrollbar-color:#d6decd transparent}.asset-button{display:flex;flex-direction:column;align-items:center;gap:6px;padding:8px 4px 9px;min-width:0;border:1px solid var(--line);border-radius:12px;background:#fafaf3}.asset-button img{height:67px;width:67px;object-fit:contain}.asset-button span{font-size:10px;white-space:normal;line-height:1.4}.asset-button:hover{border-color:#9fb69b;background:#f0f4e7}.asset-button.active{border-color:var(--green);box-shadow:0 0 0 1px var(--green)}.background-thumbnail{width:64px;height:86px;border-radius:7px;overflow:hidden}.background-thumbnail canvas{width:100%;height:100%}.background-controls{padding:12px 0 0}.material-grid.text-materials{display:flex;flex-direction:column;padding:4px 18px 18px;gap:12px}.text-preset{border:1px solid var(--line);border-radius:12px;padding:16px 9px;font:24px Jua;text-align:center;background:#f9faf3}.text-preset:nth-child(2){font:28px Gaegu;color:#bd7b62}.text-preset:nth-child(3){font:26px 'Nanum Pen Script';color:#547c8c}
.stage{position:relative;min-width:0;min-height:0;display:grid;grid-template-rows:46px minmax(0,1fr) 42px;padding:10px 25px 0;background-color:#edf0e4;background-image:radial-gradient(#b4bfaa55 .7px,transparent .8px);background-size:12px 12px}.stage-top,.stage-bottom{display:flex;justify-content:space-between;align-items:center;gap:12px}.size-chip{font-size:8px;letter-spacing:.08em;color:#87947e}.size-chip b{display:block;color:#62735b;font-size:10px;letter-spacing:0;font-weight:400;margin-top:4px}.safe-toggle{font-size:10px;display:flex;align-items:center;gap:4px;color:#788572}.safe-toggle input{accent-color:var(--green);height:12px;width:12px}.canvas-wrap{position:relative;min-height:0;min-width:0;display:flex;justify-content:center;align-items:center;padding:14px}#card{display:block;max-width:100%;max-height:100%;aspect-ratio:3/4;box-shadow:0 8px 24px #45543225,0 1px 3px #4b5a2422;border-radius:18px;touch-action:none;cursor:grab}#card:active{cursor:grabbing}.stage-bottom{font-size:10px;color:var(--muted)}.stage-bottom .subtle-button{font-size:10px}.mobile-selection{display:none}
.inspector{background:var(--paper);border-left:1px solid var(--line);display:flex;flex-direction:column;min-height:0}.inspector-top{display:flex;align-items:center;justify-content:space-between;padding:23px 18px 15px}.inspector-top h2{font-size:14px}#close-inspector{display:none}#inspector-body{overflow:auto;min-height:0;padding:0 18px 24px;scrollbar-width:thin}.empty-inspector{text-align:center;padding:70px 12px 0;font-size:12px;color:#8a967e;line-height:1.9}.empty-inspector .empty-symbol{display:block;font:48px Gaegu;color:#9eae8d;margin-bottom:14px}.selection-label{font-size:12px;color:#7b896e;margin-bottom:18px}.field{display:flex;flex-direction:column;gap:7px;margin:14px 0;font-size:11px}.field>span,.range-label{display:flex;justify-content:space-between;align-items:center}.field output{font-size:10px;color:var(--muted)}select,textarea{width:100%;border:1px solid #dce2d2;border-radius:8px;padding:9px;background:#fffef9;font-size:13px}textarea{resize:vertical;min-height:70px;max-height:170px;line-height:1.6}input[type=range]{width:100%;height:18px;accent-color:var(--green);cursor:pointer}input[type=color]{width:30px;height:30px;padding:1px;border:1px solid #d9dfcf;border-radius:50%;background:none;cursor:pointer}input[type=color]::-webkit-color-swatch-wrapper{padding:2px}input[type=color]::-webkit-color-swatch{border:0;border-radius:50%}.color-row{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:11px;margin:9px 0}.swatches{display:flex;gap:6px;flex-wrap:wrap;margin:9px 0}.swatch{height:20px;width:20px;border-radius:50%;border:1px solid #00000014}.swatch:hover{outline:2px solid #78916b;outline-offset:2px}.divider{height:1px;background:var(--line);margin:18px 0}.effects-title{font-size:12px;margin:18px 0 9px}.effect{padding:7px 0;border-top:1px solid #e6e9de}.effect-switch{display:flex;justify-content:space-between;align-items:center;gap:8px;font-size:12px;cursor:pointer;padding:6px 0}.effect-switch input{accent-color:var(--green);height:16px;width:16px}.effect-controls{padding:0 8px 5px;background:#f6f7ef;border-radius:8px}.effect-controls .field{margin:7px 0}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px;margin:15px 0}.action-grid button{font-size:11px;padding:9px 4px;border:1px solid var(--line);border-radius:7px}.action-grid .danger{color:#b15b52}.shape-picker{display:flex;gap:5px;margin:12px 0}.shape-picker button{flex:1;border:1px solid var(--line);border-radius:7px;padding:9px 2px;font-size:11px}.shape-picker button.active{background:var(--green);color:white;border-color:var(--green)}.note{font-size:10px;line-height:1.7;color:#8b927e;margin:8px 0}
.result-screen{position:relative;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:5vw;padding:8vh 12vw;background:radial-gradient(circle at 35% 50%,#f8e8cd,#edf0e2 65%)}.result-back{position:absolute;top:28px;left:6vw}.result-art{height:75vh;display:flex;align-items:center;justify-content:center}.result-card{height:min(66vh,630px);aspect-ratio:3/4;transform:rotate(-4deg);filter:drop-shadow(10px 18px 16px #3b4c3425)}.result-card img{height:100%;width:100%;border-radius:15px}.result-copy h1{font-size:68px;line-height:1.15;margin:18px 0 24px}.result-copy>p:not(.eyebrow):not(.tiny){font-size:15px;line-height:1.9;color:#72816b;margin-bottom:28px}.result-copy button{display:block;margin:14px 0;width:100%;max-width:300px}.result-copy .tiny{margin-top:25px}.result-copy .eyebrow{font-size:10px}
dialog{border:1px solid var(--line);border-radius:18px;padding:24px;width:min(380px,90vw);max-height:75dvh;background:var(--paper);color:var(--ink)}dialog::backdrop{background:#21352566;backdrop-filter:blur(3px)}.dialog-head{display:flex;justify-content:space-between;align-items:center}.layer-row{display:flex;align-items:center;gap:10px;border:1px solid var(--line);border-radius:10px;padding:7px 10px;margin-top:9px;width:100%;font-size:12px;text-align:left}.layer-row img{height:40px;width:40px;object-fit:contain}.layer-row .text-icon{font:24px Jua;padding:5px 8px}.layer-row.active{border-color:var(--green);background:#eff4e8}.layer-row span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}#toast{position:fixed;bottom:26px;left:50%;transform:translate(-50%,12px);background:#234d3cef;color:white;border-radius:12px;padding:12px 20px;font-size:12px;z-index:50;opacity:0;pointer-events:none;transition:.2s;max-width:90vw;text-align:center}#toast.show{opacity:1;transform:translate(-50%,0)}.busy{position:fixed;inset:0;z-index:60;background:#eff1e5d9;backdrop-filter:blur(6px);display:flex;align-items:center;justify-content:center;gap:12px;font-size:14px}.spinner{border:2px solid #bfcbb6;border-top-color:var(--green);border-radius:50%;width:22px;height:22px;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#print-sheet{display:none}
@media(min-width:1500px){.editor-screen{grid-template-columns:80px 320px minmax(250px,1fr) 292px}.material-grid{gap:12px;padding-inline:20px}.asset-button img{width:78px;height:78px}.stage{padding-inline:50px}}
@media(max-width:1100px) and (min-width:761px){.editor-screen{grid-template-columns:62px 230px minmax(200px,1fr) 224px}.stage{padding-inline:12px}.material-grid{gap:5px;padding-inline:10px}.asset-button img{width:55px;height:55px}#material-header{padding-inline:12px}.workspace-label{display:none}.editor-bar{padding-inline:12px}.inspector-top{padding-inline:13px}#inspector-body{padding-inline:13px}}
@media(max-width:760px){
 .title-screen{display:flex;flex-direction:column;align-items:stretch;padding:23px 26px 20px}.title-brand{position:static;font-size:9px;gap:6px}.title-brand img{height:27px;width:27px}.title-copy{padding:0;z-index:2}.title-copy .eyebrow{font-size:10px;margin-top:24px}.title-copy h1{font-size:37px;line-height:1.2;margin:12px 0 0}.title-copy h1 br{display:none}.title-copy h1 em{display:block}.intro{font-size:12px;line-height:1.7;position:absolute;top:112px;right:25px;width:123px}.title-art{flex:1;height:auto;min-height:0;margin:-8px 0 95px}.hero-card{height:88%;max-height:375px;border-radius:14px}.hero-card canvas{border-radius:14px}.orbit{width:78vw;max-height:34vh}.floating{width:65px}.f1{left:2%;top:25%}.f2{right:1%;top:4%;width:54px}.f3{right:4%;bottom:7%;width:50px}.hand-note{font-size:22px;left:0;bottom:0}.title-actions{position:absolute;bottom:47px;left:26px;right:26px;align-items:stretch;margin:0;gap:6px}.title-actions .primary{font-size:14px;padding:13px 20px}.title-actions .text-button{text-align:center;padding:6px;font-size:11px}.title-copy>.tiny{display:none}.title-bottom{left:0;bottom:18px;width:100%;justify-content:center;gap:9px;font-size:9px}.paper-tab{font-size:6px;width:120px;left:calc(50% - 60px);padding:6px 9px;top:-11px}
 .editor-screen{grid-template-columns:1fr;grid-template-rows:56px minmax(160px,1fr) 255px 66px}.editor-bar{grid-row:1;grid-column:1;padding:0 12px;gap:4px}.brand-button{font-size:16px;gap:4px}.brand-button img{height:26px;width:26px}.workspace-label{display:none}.bar-actions{gap:1px}.bar-actions .icon-button{width:30px;height:32px;font-size:23px}.bar-actions .primary{font-size:11px;padding:9px 12px;margin-left:5px;border-radius:9px}.bar-actions .primary span{margin-left:5px}.tool-tabs{grid-row:4;grid-column:1;flex-direction:row;gap:0;padding:5px 8px calc(5px + env(safe-area-inset-bottom));border:0;border-top:1px solid var(--line);justify-content:space-around}.tool-tabs button{gap:1px;padding:3px 5px;width:56px;font-size:10px;border-radius:10px}.tool-tabs button>span{font-size:24px;height:25px}.materials{grid-row:3;grid-column:1;border:0;border-top:1px solid var(--line);overflow:hidden}.stage{grid-row:2;grid-column:1;grid-template-rows:29px minmax(0,1fr) 32px;padding:0 13px}.stage-top{padding:0 2px}.size-chip{font-size:7px}.size-chip b{display:inline;font-size:9px;margin:0 0 0 5px}.safe-toggle{font-size:9px}.canvas-wrap{padding:8px 30px 5px}#card{border-radius:11px}.stage-bottom{display:none}.mobile-selection{display:flex;justify-content:space-between;align-items:center;font-size:10px}.mobile-selection .subtle-button{font-size:10px;padding:5px 8px}.inspector{grid-row:3;grid-column:1;display:none;border:0;border-top:1px solid var(--line)}body.inspect-mobile .inspector{display:flex}body.inspect-mobile .materials{display:none}.inspector-top{padding:7px 16px 4px}.inspector-top h2{font-size:12px}#close-inspector{display:inline-grid;height:24px;width:24px;font-size:16px}#inspector-body{padding:0 16px 12px}.selection-label{display:none}#material-header{padding:11px 15px 9px}.material-heading{margin:0}.material-heading h2{font-size:13px}#material-header>.muted{display:none}.segments{margin:9px 0 0;padding:3px}.segments button{padding:5px;font-size:11px}.character-filter{margin:7px 0 0}.character-filter button{font-size:10px;padding:4px}.material-grid{padding:0 14px 13px;grid-template-columns:repeat(5,minmax(0,1fr));gap:7px}.material-grid.characters{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.asset-button{padding:5px 3px;gap:3px;border-radius:9px}.asset-button img{width:49px;height:49px}.characters .asset-button img{height:58px;width:58px}.asset-button span{font-size:9px}.background-thumbnail{height:60px;width:39px}.background-controls{padding-top:4px;display:flex;gap:20px;align-items:center}.background-controls .color-row{margin:3px 0;font-size:10px;gap:10px}.background-controls .field{margin:0;flex:1}.background-controls input[type=color]{width:24px;height:24px}.background-controls .field input{height:14px}.material-grid.text-materials{padding:5px 15px 12px;display:grid;grid-template-columns:1fr 1fr;gap:8px}.text-materials .primary{grid-column:1/-1;padding:10px}.text-preset{font-size:19px;padding:10px}.text-preset:nth-child(2){font-size:24px}.text-preset:nth-child(3){font-size:23px}.text-materials .note{grid-column:1/-1;margin:0}.inspector .field{margin:8px 0}.inspector .divider{margin:10px 0}.inspector .action-grid{margin:8px 0}.inspector .effects-title{margin:11px 0 5px}.inspector .shape-picker{margin:8px 0}.inspector textarea{min-height:56px}.result-screen{display:flex;flex-direction:column;gap:0;padding:54px 28px 20px}.result-back{top:14px;left:22px;font-size:11px}.result-art{height:auto;flex:1;width:100%;min-height:0}.result-card{height:95%;max-height:350px;border-radius:12px}.result-copy{width:100%;text-align:center}.result-copy .eyebrow{display:none}.result-copy h1{font-size:34px;margin:12px 0}.result-copy h1 br{display:none}.result-copy>p:not(.tiny):not(.eyebrow){font-size:11px;line-height:1.7;margin-bottom:14px}.result-copy button{max-width:none;font-size:13px;padding:12px;margin:9px 0}.result-copy .tiny{font-size:9px;line-height:1.6;margin:12px 0 0}#toast{bottom:77px;font-size:11px;padding:10px 16px}.empty-inspector{padding:25px}
}
@media(max-height:700px) and (max-width:760px){.editor-screen{grid-template-rows:51px minmax(140px,1fr) 220px 59px}.tool-tabs{padding:3px 5px}.tool-tabs button{gap:0}.title-copy h1{font-size:30px}.title-copy .eyebrow{margin-top:12px}.title-art{margin-bottom:90px;margin-top:4px}.intro{top:95px;font-size:10px}.hand-note{font-size:18px}.hero-card{height:85%}.material-grid{gap:5px}.characters .asset-button img{height:45px;width:45px}}
@media(prefers-reduced-motion:reduce){*{animation:none!important;transition:none!important}}
.mobile-selection>span{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 8px}.mobile-selection>button{flex-shrink:0}
.original-colors{display:flex;align-items:center;gap:7px;font-size:11px;margin:10px 0 4px;color:var(--green)}.original-colors input{accent-color:var(--green)}.load-error{border-color:#cf636d}
