*{box-sizing:border-box}html{font-family:Malgun Gothic,Apple SD Gothic Neo,system-ui,sans-serif;color:#203047;background:#eaf0f7;font-size:18px}body{margin:0;min-height:100dvh;overscroll-behavior:none}button,input,textarea{font:inherit}button{cursor:pointer;-webkit-tap-highlight-color:transparent}button:disabled{cursor:default;opacity:.5}button:focus-visible,input:focus-visible,textarea:focus-visible,[tabindex]:focus-visible{outline:3px solid #285acb;outline-offset:3px}button{border:0}h1,h2,h3,p{margin-top:0}h2{font-size:28px;line-height:1.4;letter-spacing:-1px}p{line-height:1.65}h3{font-size:21px}.phone{width:100%;max-width:480px;height:100dvh;height:var(--viewport-height, 100dvh);min-height:340px;margin:auto;position:relative;background:#f5faff;overflow:hidden;isolation:isolate}.screen{height:100%;display:flex;flex-direction:column;background:#f5faff;overflow:auto;padding-bottom:env(safe-area-inset-bottom)}.primary,.secondary{width:100%;min-height:60px;flex-shrink:0;padding:15px 19px;border-radius:20px;font-size:19px;font-weight:750;display:flex;align-items:center;justify-content:center;gap:10px;line-height:1.45;letter-spacing:-.5px}.primary{background:#3578f6;color:#fff;box-shadow:0 7px 18px #3578f62b}.primary:hover{background:#2767df}.secondary{background:#fff;color:#234c92;border:1px solid #dbe8fa;box-shadow:0 6px 20px #3d6b9f0a}.secondary:hover{background:#f4f8ff}.text-button{min-height:48px;padding:10px;background:transparent;color:#4f6482;font-size:16px;text-decoration:underline;text-underline-offset:4px}.icon-button{min-width:48px;min-height:48px;border-radius:16px;background:#ffffffb8;color:#294668;font-size:23px;display:grid;place-items:center}.app-header{padding:calc(14px + env(safe-area-inset-top)) 18px 12px;display:flex;align-items:center;gap:12px;flex-shrink:0;background:#f5faffed;border-bottom:1px solid #e4edf8;z-index:2}.app-header strong{font-size:19px}.app-header small{display:block;font-size:14px;color:#546c89;margin-top:5px}.header-star{margin-left:auto;color:#e7b23a;font-size:25px}.home{height:100%;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;overflow:hidden;padding:0 28px max(27px,env(safe-area-inset-bottom));background:radial-gradient(ellipse at 50% 25%,#fff9ed80,transparent 50%),linear-gradient(#ddecff,#edf7ff 65%,#f9fcff)}.home-sky{position:absolute;inset:0;overflow:hidden;pointer-events:none}.home-content{position:relative;width:100%;z-index:1;margin-bottom:35px;text-align:center}.eyebrow{font-size:14px;letter-spacing:1.1px;font-weight:700;color:#527195;margin-bottom:13px}.home h1{font-size:67px;line-height:1.12;letter-spacing:-5px;color:#203d68;position:relative;display:inline-block;margin-bottom:8px;text-shadow:0 3px 0 #fff}.home h1 span{color:#3578f6}.home h1 i{font-style:normal;font-size:28px;position:absolute;right:-25px;top:-13px;color:#f0b53c}.title-underline{width:43px;height:5px;border-radius:9px;background:#ffbd73;margin:15px auto 36px}.home-actions{display:grid;gap:14px}.home-actions button{min-height:66px;justify-content:flex-start;border-radius:22px;font-size:20px}.home-actions b{margin-left:auto;font-size:21px;font-weight:400}.home-actions button span{font-size:24px}.home footer{position:relative;color:#536e8e;font-size:14px;z-index:1;text-align:center}.decor-balloon{position:absolute;filter:drop-shadow(0 12px 10px #466e9b10);animation:float 5s ease-in-out infinite alternate}.decor-balloon svg{display:block;width:100%}.balloon-0{width:128px;left:4%;top:13%;transform:rotate(-12deg)}.balloon-1{width:106px;right:0%;top:7%;animation-delay:-2s;transform:rotate(15deg)}.balloon-2{width:139px;left:34%;top:3%;animation-delay:-1s}.balloon-3{width:81px;left:-4%;top:36%;animation-delay:-3s}.balloon-4{width:94px;right:2%;top:32%;animation-delay:-4s}.sky-cloud{position:absolute;width:145px;height:42px;border-radius:50%;background:#ffffff90;filter:blur(1px);pointer-events:none}.sky-cloud:before,.sky-cloud:after{content:"";position:absolute;bottom:9px;border-radius:50%;background:inherit;width:63px;height:60px;left:24px}.sky-cloud:after{left:65px;width:49px;height:50px}.cloud-one{left:-35px;top:33%}.cloud-two{right:-40px;top:18%;transform:scale(.75)}.sky-star{position:absolute;color:#eab449;font-size:22px}.star-one{left:27%;top:8%}.star-two{right:29%;top:30%;font-size:15px}.name-content{padding:30px 28px;flex:1}.ai-avatar{width:33px;height:33px;flex-shrink:0;display:grid;place-items:center;color:#fff;background:linear-gradient(140deg,#77a5ff,#4c74e4);border-radius:12px;font-size:23px;box-shadow:0 4px 9px #3578f623}.ai-avatar.large{width:68px;height:68px;font-size:45px;border-radius:25px;margin:0 0 27px}.name-content h2{font-size:31px}.name-content>p{color:#536781}.name-content .eyebrow{margin-top:5px}.name-content form{margin-top:28px}.name-content label{font-size:15px;display:block;margin-bottom:10px;font-weight:700}.name-content input{width:100%;padding:16px 18px;border:1px solid #d8e3f0;border-radius:17px;background:#fff;color:#203047;min-height:60px;font-size:20px}.input-note{font-size:13px;color:#687b95;margin:8px 0 25px}.small-footer{text-align:center;font-size:13px;color:#526a86;padding:14px}.center-card{padding:32px 28px;margin:auto 0;text-align:center}.center-card .large{margin:0 auto 24px}.center-card .primary,.center-card .secondary{margin-top:13px}.center-card p{color:#566b86}.date-label{font-size:14px;color:#61748c}.step-dots{display:flex;align-items:center;padding:16px 28px;flex-shrink:0;background:#f5faff}.step-dots button{width:36px;height:36px;min-width:36px;border-radius:50%;border:5px solid #f5faff;background:#dce6f5;color:#4b6285;font-size:14px;font-weight:800;box-sizing:content-box}.step-dots button[aria-current=step]{background:#3578f6;color:#fff;box-shadow:0 0 0 1px #bbd3ff}.step-dots i{height:2px;background:#dce6f5;flex:1}.builder{overflow:hidden}.chat-messages{flex:1;overflow-y:auto;overflow-x:hidden;min-height:70px;padding:10px 18px 24px;scroll-behavior:smooth;overscroll-behavior:contain}.message{display:flex;gap:9px;margin:16px 0;align-items:flex-start}.bubble{padding:15px 17px;border-radius:0 19px 19px;background:#fff;border:1px solid #e1eaf5;font-size:17px;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere;max-width:calc(100% - 42px)}.message.user{justify-content:flex-end}.user .bubble{border-radius:19px 0 19px 19px;background:#e7efff;border-color:#d5e3ff;max-width:88%}.prompt-suggestion{margin:0 0 15px 42px;padding:14px;text-align:left;font-size:16px;line-height:1.7;color:#355888;background:#eef4ff;border:1px dashed #a5bee4;border-radius:16px;width:calc(100% - 42px)}.composer-wrap{flex-shrink:0;padding:12px 18px max(14px,env(safe-area-inset-bottom));border-top:1px solid #e0eaf7;background:#fff;box-shadow:0 -10px 24px #264c7605}.example-row{display:flex;justify-content:space-between;align-items:center;margin-bottom:9px;gap:8px}.example-row>span{font-size:12px;color:#5f7591;white-space:nowrap}.example-button{min-height:48px;padding:8px 12px;font-size:15px;font-weight:700;color:#38639e;background:#eef4ff;border-radius:12px}.composer-wrap form{display:grid;grid-template-columns:1fr 92px;gap:8px}.example-row{grid-column:1/-1}.composer-wrap textarea{resize:none;width:100%;max-height:140px;min-height:64px;padding:12px;border:1px solid #d6e3f4;border-radius:17px;background:#f8fbff;font-size:18px;line-height:1.5;color:#203047}.send{min-height:64px;height:100%;border-radius:17px;font-size:17px;padding:10px;align-self:end}.step-actions:empty{display:none}.step-actions{margin-top:10px}.typing-panel{border:1px solid #d9e5f4;border-radius:18px;overflow:hidden;background:#fff;margin:20px 0}.typing-panel h3{padding:16px;margin:0;font-size:17px}.code-top{background:#203049;color:#b9cbe4;display:flex;justify-content:space-between;padding:11px 14px;font:11px monospace}.code-top>span:first-child{color:#ffba80;letter-spacing:3px}.code-scroll{height:190px;overflow:auto;background:#17263c;scroll-behavior:auto}.code-scroll pre{margin:0;padding:14px 12px;font:12px/1.85 Consolas,monospace;color:#c7d7ee;tab-size:2;min-width:max-content}.code-line{min-height:22px}.code-line:before{content:attr(data-line);display:inline-block;width:26px;color:#8198b8;text-align:right;margin-right:15px}.syntax-keyword{color:#cdaaff}.syntax-string{color:#a8e3c0}.syntax-comment{color:#90a5c1}.code-progress{padding:14px 16px;background:#fff}.code-progress progress{width:100%;height:8px;accent-color:#3578f6;display:block}.code-progress>div{display:flex;justify-content:space-between;font-size:13px;margin-top:8px}.code-progress span{color:#5a6e87}.mini-preview{height:180px;position:relative;border-radius:23px;border:1px solid #dbe7f6;display:flex;align-items:center;justify-content:center;gap:10px;overflow:hidden;padding-bottom:20px;background:linear-gradient(#d8ecff,#f4faff)}.mini-preview>div{animation:float 3s ease-in-out infinite alternate;animation-delay:var(--delay)}.mini-preview svg{display:block;width:100%}.mini-preview>span{position:absolute;bottom:12px;font-size:12px;color:#365578;background:#ffffffd9;padding:5px 12px;border-radius:10px}.theme-sky{background:linear-gradient(#d9ecff,#f4faff)}.theme-pastel{background:linear-gradient(#efe3ff,#fff0f4)}.theme-sunset{background:linear-gradient(#ffc5b5,#fff1cc)}.theme-night{background:radial-gradient(circle at 30% 20%,#fff 0 1px,transparent 2px),radial-gradient(circle at 75% 38%,#fff 0 1px,transparent 2px),linear-gradient(#172b52,#415888);background-size:109px 163px,191px 137px,100% 100%}.theme-plain{background:#f5faff}.complete-content{padding:26px 25px 20px;text-align:center;overflow:auto}.complete-content>h2{margin-bottom:7px}.complete-content>p{color:#526b8a}.complete .mini-preview{margin:22px 0}.complete h3{margin-bottom:5px}.config-summary{font-size:15px;white-space:pre-line;line-height:1.85!important;background:#fff;border:1px solid #e0e9f5;padding:16px;border-radius:18px;text-align:left}.complete-actions{display:grid;gap:11px}.complete-actions p{font-size:14px;line-height:1.6;margin:0}.game-screen{height:100%;display:flex;flex-direction:column;overflow:hidden;position:relative}.game-header{display:flex;gap:7px;align-items:center;padding:calc(8px + env(safe-area-inset-top)) 12px 8px;color:#2a456a;background:#f5faffd9;z-index:2}.game-header>span{font-size:18px;font-weight:800;flex:1;margin-left:3px}.hud{display:grid;grid-template-columns:.85fr 1.25fr 1.25fr 1fr;gap:5px;padding:10px 15px 13px;background:#f5faffd9;z-index:2}.hud>div{font-size:12px;color:#556d8c;white-space:nowrap}.hud strong{display:block;font-size:25px;color:#203e69;margin-top:5px;letter-spacing:-1px}.hud small{font-size:13px;color:#567297;letter-spacing:0}.level-track{height:5px;background:#b9d5f16e;z-index:2}.level-track i{display:block;height:100%;width:0;background:#4e91fa;transition:width .2s}.arena{flex:1;position:relative;overflow:hidden;touch-action:none;min-height:100px;user-select:none;-webkit-user-select:none}.arena-hint{position:absolute;left:0;right:0;top:22px;text-align:center;font-size:15px;color:#3b6089;background:#ffffffa8;width:max-content;max-width:95%;padding:8px 16px;border-radius:20px;margin:auto;pointer-events:none}.balloon{position:absolute;left:0;top:0;padding:0;background:none;border:0;will-change:transform;touch-action:none;min-width:48px;min-height:48px;filter:drop-shadow(0 5px 7px #32466315);z-index:1}.balloon svg{width:100%;height:100%;overflow:visible;pointer-events:none}.balloon:focus-visible{outline:3px solid #2b54b0}.game-footer{padding:12px 10px max(12px,env(safe-area-inset-bottom));font-size:12px;text-align:center;background:#f5faffc7;color:#4f6a8b}.floating-score{position:absolute;font-size:22px;font-weight:900;color:#294d81;z-index:3;text-shadow:0 1px 2px #fff;pointer-events:none;animation:score-rise .75s ease-out forwards}.modal-slot:empty{display:none}.modal-backdrop{position:absolute;inset:0;background:#203e685c;backdrop-filter:blur(5px);z-index:10;display:flex;align-items:center;justify-content:center;padding:18px}.result-card{background:#fafdff;max-height:100%;overflow:auto;width:100%;padding:24px;border-radius:28px;text-align:center;box-shadow:0 20px 65px #1228492e}.result-card h2{font-size:26px;margin-bottom:9px}.result-icon{font-size:54px;display:block;margin-bottom:12px}.result-card p{font-size:16px;color:#516a8b}.result-card .eyebrow{font-size:13px;margin-bottom:7px}.big-score{font-size:44px;font-weight:850;letter-spacing:-2px;color:#2c65cd;margin:14px 0}.big-score small{font-size:19px;letter-spacing:0;margin-left:5px}.stats{background:#edf4fd;border-radius:18px;padding:11px 15px;margin:17px 0;font-size:14px}.stats>div{display:flex;justify-content:space-between;padding:6px 0;gap:12px}.stats dt{color:#4e6788}.stats dd{margin:0;font-weight:800}.result-card button{margin-top:10px}.particles{position:absolute;inset:0;z-index:20;pointer-events:none;overflow:hidden}.particles i{position:absolute;width:8px;height:8px;display:block;color:#e6ac30;font-style:normal;border-radius:2px;animation:particle-out 1s ease-out forwards}.particles .spark{border-radius:50%;width:5px;height:5px}.particles i:not(:empty){background:transparent!important;font-size:20px}.sr-only{position:absolute;width:1px;height:1px;clip:rect(0,0,0,0);overflow:hidden}.standalone .home-content{margin-bottom:40px}.creator{font-size:18px;margin:20px 0 30px;color:#486889}.standalone footer{font-size:12px}#notice{position:fixed;bottom:12px;left:50%;transform:translate(-50%);width:min(92%,430px);padding:12px 18px;background:#213957;color:#fff;border-radius:16px;font-size:14px;z-index:100;box-shadow:0 5px 20px #0002}#notice:empty{display:none}@keyframes float{to{translate:0 -16px;rotate:3deg}}@keyframes particle-out{to{transform:translate(var(--dx),var(--dy)) rotate(var(--rot));opacity:0}}@keyframes score-rise{to{transform:translateY(-55px);opacity:0}}@media(min-width:600px){body{display:grid;place-items:center;padding:22px}.phone{height:min(900px,calc(100dvh - 44px));border-radius:34px;box-shadow:0 20px 90px #233f6725;border:7px solid #fff}.home-content{margin-bottom:42px}}@media(max-height:700px){.home{padding:0 24px 20px}.home-content{margin-bottom:24px}.home h1{font-size:56px}.home .eyebrow{font-size:12px;margin-bottom:10px}.title-underline{margin:9px auto 22px}.home-actions{gap:12px}.home-actions button{min-height:58px;font-size:18px}.balloon-0{width:100px;top:7%}.balloon-1{width:80px;top:2%}.balloon-2{width:105px;top:-3%}.balloon-3{width:66px;top:30%}.balloon-4{width:69px;top:29%}.name-content{padding:20px 24px}.name-content .large{margin-bottom:15px}.name-content h2{font-size:27px;margin-bottom:13px}.name-content form{margin-top:18px}.name-content p{font-size:16px}.input-note{margin-bottom:17px}.step-dots{padding:7px 20px}.app-header{padding-top:8px;padding-bottom:7px}.composer-wrap{padding:8px 12px 10px}.example-button{min-height:48px}.code-scroll{height:145px}.result-card{padding:18px}.result-icon{font-size:37px;margin-bottom:5px}.result-card h2{font-size:23px}.big-score{font-size:36px;margin:8px 0}.stats{margin:12px 0;padding:8px 12px}.stats>div{padding:4px 0}.result-card .primary{min-height:54px}.game-header{padding-top:6px}.hud{padding-top:5px;padding-bottom:9px}.hud strong{font-size:23px}.complete-content{padding-top:20px}.mini-preview{height:140px}}@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important}.decor-balloon,.mini-preview>div{animation:none}.floating-score{animation-duration:.2s}.level-track i{transition:none}}.result-card h2{animation:celebrate-title .5s ease-out}@keyframes celebrate-title{0%{transform:scale(.94)}60%{transform:scale(1.04)}to{transform:scale(1)}}@media(prefers-reduced-motion:reduce){.result-card h2{animation:none}}.syntax-number{color:#ffc985}.step-dots button{width:38px;height:38px;min-width:38px}.builder .chat-messages{min-height:0}html[data-compact=true] .builder .step-dots{display:none}html[data-compact=true] .builder .composer-wrap textarea{min-height:48px;max-height:80px}html[data-compact=true] .builder .send{min-height:48px}html[data-compact=true] .builder .example-row{margin-bottom:0}.phone{min-height:min(340px,var(--viewport-height, 100dvh))}html[data-compact=true] .builder .composer-wrap textarea{height:52px!important;min-height:52px;max-height:52px}html[data-compact=true] .builder .step-actions .primary{min-height:48px;padding:10px}
