@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800;900&family=Noto+Sans+SC:wght@400;500;600;700;800;900&display=swap');
:root{--orange:#ff782e;--orange2:#ff9a4c;--ink:#252629;--muted:#777b82;--cream:#fff8ef;--line:#eee9e2;--blue:#229ce6;--shadow:0 18px 45px rgba(46,33,19,.10)}
*{box-sizing:border-box}html,body{margin:0}body{font-family:Nunito,"Noto Sans SC",sans-serif;color:var(--ink);background:#e8e5df}button,input{font:inherit}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid #1f91e1;outline-offset:3px}a{text-decoration:none;color:inherit}
.stage{min-height:100dvh;display:flex;align-items:center;justify-content:center;padding:24px;background:radial-gradient(circle at 12% 10%,#fff 0,#e9e6df 45%,#ddd9d1 100%)}
.phone{position:relative;width:min(100%,440px);height:min(956px,calc(100dvh - 48px));min-height:660px;background:#fff;overflow:hidden;border:8px solid #252525;border-radius:54px;box-shadow:0 35px 90px rgba(26,25,22,.23)}
.screen{height:100%;overflow:auto;scrollbar-width:none;padding-bottom:104px;background:var(--cream)}.screen::-webkit-scrollbar{display:none}
.status{position:sticky;top:0;z-index:30;height:42px;display:flex;justify-content:space-between;align-items:center;padding:8px 28px 0;font-size:13px;font-weight:900;letter-spacing:.2px;background:inherit}.island{position:absolute;left:50%;top:12px;transform:translateX(-50%);width:96px;height:25px;background:#151515;border-radius:20px}.signals{font-size:13px;letter-spacing:1px}
.home-header,.create-header{display:flex;align-items:center;justify-content:space-between;padding:12px 24px 7px}.brand{font-weight:900;font-size:23px;letter-spacing:-1.3px;color:var(--orange)}.brand span{font-size:13px;color:var(--ink);letter-spacing:1px;margin-left:4px}.icon-btn{width:42px;height:42px;border:0;border-radius:15px;background:#fff;box-shadow:0 7px 18px rgba(0,0,0,.05);font-size:20px}.greeting{font-size:12px;color:var(--muted);font-weight:800}.eyebrow{font-size:11px;text-transform:uppercase;letter-spacing:2px;font-weight:900;color:var(--orange)}
.hero{position:relative;margin:8px 18px 0;border-radius:34px;overflow:hidden;min-height:445px}.hero-copy{position:relative;z-index:2;padding:27px 26px 0}.hero h1{font-size:32px;line-height:1.17;letter-spacing:-1.1px;margin:8px 0 10px;font-weight:900}.hero p{font-size:13px;line-height:1.65;margin:0;max-width:270px;color:#666}.hero-photo{position:absolute;overflow:hidden;background:#fff}.hero-photo img,.robot-shot img{position:absolute;display:block;width:215%;height:auto;max-width:none;left:-6%;top:-4%}.hero .hero-photo{width:87%;height:300px;bottom:12px;left:7%;border-radius:30px}.hero .hero-photo img{width:176%;left:2%;top:-1%}.hero-actions{position:absolute;z-index:3;bottom:18px;left:24px;right:24px;display:flex;justify-content:space-between;align-items:end}.pill{border:0;border-radius:100px;padding:12px 17px;font-weight:900;background:var(--ink);color:#fff}.pill.light{background:#fff;color:var(--ink)}.hero-dots{display:flex;gap:5px}.hero-dots i{width:6px;height:6px;border-radius:99px;background:#cfcac3}.hero-dots i:first-child{width:20px;background:var(--orange)}
.section-title{display:flex;justify-content:space-between;align-items:end;padding:28px 24px 13px}.section-title h2{margin:0;font-size:20px;letter-spacing:-.5px}.section-title small{color:var(--muted);font-weight:800}.feature-list{padding:0 18px;display:grid;gap:11px}.feature{position:relative;display:flex;align-items:center;gap:13px;text-align:left;border:0;border-radius:23px;padding:17px;background:#fff;min-height:93px;box-shadow:0 7px 22px rgba(36,31,23,.045)}.feature strong{display:block;font-size:16px}.feature small{display:block;color:var(--muted);margin-top:3px;font-size:11px;line-height:1.4}.feature .emoji{display:grid;place-items:center;flex:none;width:53px;height:53px;border-radius:18px;background:#fff0e6;font-size:25px}.feature .arrow{margin-left:auto;color:#b5b5b5;font-size:19px}.feature.primary{background:var(--orange);color:#fff}.feature.primary small,.feature.primary .arrow{color:#fff9}.feature.primary .emoji{background:#ffffff31}
.feature-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;padding:0 18px}.feature-grid .feature{min-height:154px;display:block;padding:17px}.feature-grid .feature .emoji{margin-bottom:14px}.feature-grid .feature .arrow{position:absolute;right:16px;top:18px}
.bottom-nav{position:absolute;bottom:0;left:0;right:0;z-index:20;height:82px;background:#fff;border-top:1px solid #f1ede7;display:flex;align-items:center;justify-content:space-around;padding:3px 10px 15px}.bottom-nav button{width:25%;border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:4px;font-size:10px;font-weight:800;color:#9b9b9b}.bottom-nav button b{font-size:22px;font-weight:400}.bottom-nav button.active{color:var(--orange)}
.sheet-wrap{display:none;position:absolute;inset:0;z-index:50;background:#18181872;align-items:end}.sheet-wrap.open{display:flex}.sheet{width:100%;border-radius:29px 29px 0 0;background:#fff;padding:13px 22px 35px;box-shadow:0 -12px 35px #0002}.sheet-handle{width:40px;height:5px;border-radius:10px;background:#ddd;margin:0 auto 20px}.sheet h2{font-size:25px;margin:0 0 5px}.sheet p{color:var(--muted);font-size:13px;margin:0 0 18px}.sheet .row{width:100%;border:1px solid #eee9e3;border-radius:17px;background:#fff;padding:15px;margin:5px 0;text-align:left;font-weight:800;display:flex;justify-content:space-between}.sheet .row span{color:var(--orange)}.sheet .close{border:0;background:#f5f3ef;color:#666;padding:12px;width:100%;border-radius:15px;margin-top:13px}
.toast{position:absolute;z-index:80;bottom:100px;left:50%;transform:translateX(-50%);white-space:nowrap;background:#262626;color:#fff;border-radius:99px;padding:11px 16px;font-size:12px;opacity:0;transition:opacity .25s;pointer-events:none}.toast.show{opacity:1}
.create-header{padding-top:10px}.step{padding:7px 24px 0}.step-top{display:flex;justify-content:space-between;font-size:11px;font-weight:900;color:var(--muted);letter-spacing:.4px}.progress{display:flex;gap:5px;margin-top:9px}.progress i{height:5px;flex:1;background:#eae4dc;border-radius:5px}.progress i:first-child{background:var(--orange)}.create-intro{padding:19px 24px 16px}.create-intro h1{font-size:29px;line-height:1.2;letter-spacing:-1px;margin:6px 0}.create-intro p{font-size:13px;line-height:1.5;color:var(--muted);margin:0}.mode-tabs{display:flex;gap:8px;margin:0 18px 15px;padding:5px;background:#f1eee9;border-radius:18px}.mode-tabs button{border:0;background:none;flex:1;border-radius:14px;padding:11px 6px;font-size:13px;font-weight:900;color:#777}.mode-tabs button.active{background:#fff;color:var(--orange);box-shadow:0 3px 11px #0001}
.mode-panel{display:none}.mode-panel.active{display:block}.canvas-card{margin:0 18px;background:#fff;border:1px solid #f1ebe5;border-radius:26px;padding:12px;box-shadow:0 8px 25px #3e281009}.canvas-head{display:flex;justify-content:space-between;align-items:center;padding:4px 5px 12px}.canvas-head strong{font-size:14px}.canvas-head small{font-size:11px;color:var(--muted)}.canvas-shell{position:relative;height:325px;background:#fffaf3;border:2px dashed #f2d4bd;border-radius:21px;overflow:hidden}.draw-canvas{width:100%;height:100%;touch-action:none;display:block}.canvas-hint{position:absolute;left:0;right:0;top:47%;text-align:center;color:#d9c8b8;font-size:14px;pointer-events:none}.draw-tools{display:flex;align-items:center;gap:8px;margin-top:13px}.swatch{width:31px;height:31px;border:3px solid #fff;border-radius:50%;box-shadow:0 0 0 1px #ddd}.swatch.active{box-shadow:0 0 0 2px var(--orange)}.tool{border:0;background:#f5f3ef;border-radius:11px;height:34px;min-width:34px;font-size:15px}.tool-sep{flex:1}
.library{padding:0 18px}.library .lead{display:flex;align-items:center;justify-content:space-between;margin:0 3px 11px;font-size:13px;color:var(--muted)}.character-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.character{position:relative;min-height:185px;border:2px solid transparent;border-radius:22px;background:#fff;text-align:left;padding:12px;overflow:hidden}.character.selected{border-color:var(--orange)}.character .badge{position:absolute;right:11px;top:10px;background:#fff1e7;color:var(--orange);font-size:10px;font-weight:900;border-radius:99px;padding:5px 8px}.character .robot-shot{height:115px;width:100%;background:#fff;position:relative;overflow:hidden;border-radius:15px}.character .robot-shot img{width:215%;top:-5%;left:-8%}.character .animal{display:grid;place-items:center;height:115px;font-size:60px}.character strong{display:block;font-size:13px;margin-top:5px}.character small{font-size:10px;color:var(--muted)}.character[disabled]{opacity:.65}.character[disabled] .badge{background:#f3f3f3;color:#777}
.name-box{margin:17px 18px 120px;background:#fff;border-radius:21px;padding:15px;border:1px solid #f1ece6}.name-box label{display:block;font-size:13px;font-weight:900;margin-bottom:8px}.name-box input{width:100%;border:1px solid #eae5de;border-radius:12px;padding:11px 13px;outline:0;background:#fffaf6}.name-box input:focus{border-color:var(--orange)}.name-tips{display:flex;gap:7px;margin-top:10px}.name-tips button{border:0;border-radius:99px;background:#fff1e8;color:#bc5a1c;padding:5px 10px;font-size:11px;font-weight:800}
.action-dock{position:absolute;left:0;right:0;bottom:0;z-index:20;background:linear-gradient(transparent,#fff 18%);padding:25px 20px 22px}.primary-btn{width:100%;background:var(--orange);color:#fff;border:0;border-radius:18px;min-height:53px;font-size:15px;font-weight:900;box-shadow:0 9px 19px #ff782e43}.dock-note{text-align:center;font-size:10px;color:#929292;margin-top:7px}
.v2 .screen{background:#faf5ec}.v2 .hero{background:#272727;color:#fff;min-height:495px;margin:4px 14px 0}.v2 .hero h1{font-size:34px}.v2 .hero p{color:#d8d5d1}.v2 .hero .hero-photo{left:6%;width:88%;bottom:16px;height:318px;border-radius:50% 50% 28px 28px;background:#fff}.v2 .hero-actions .pill{background:var(--orange)}.v2 .feature-list .feature{box-shadow:none;border:1px solid #ece4d7}.v2 .create-intro{background:#292929;color:#fff;margin:0 14px 16px;padding:26px 20px 32px;border-radius:28px}.v2 .create-intro p{color:#cfcfcf}.v2 .mode-tabs{background:#e6e0d7}.v2 .canvas-shell{background:#fff}.v2 .character{box-shadow:0 6px 18px #0000000c}
.v3 .screen{background:#fff}.v3 .home-header{background:#fff}.v3 .hero{background:#fff7ef;min-height:488px;margin:7px 13px 0;border:1px solid #f8e9d8}.v3 .hero h1{font-size:35px}.v3 .hero .hero-photo{height:295px;width:90%;left:5%;bottom:22px;border-radius:180px 180px 26px 26px}.v3 .hero-actions .pill{background:var(--orange)}.v3 .feature-grid .feature{box-shadow:0 7px 20px #0000000c}.v3 .create-intro{text-align:center}.v3 .mode-tabs{background:#fff4eb}.v3 .canvas-card{border:2px solid #ffd7bb}.v3 .canvas-shell{background:#fff}.v3 .name-box{background:#fff9f3}
@media(max-width:600px){.stage{padding:0;background:#fff}.phone{width:100%;height:100dvh;min-height:0;border:0;border-radius:0;box-shadow:none}.screen{padding-bottom:calc(104px + env(safe-area-inset-bottom))}.bottom-nav{height:calc(82px + env(safe-area-inset-bottom));padding-bottom:calc(15px + env(safe-area-inset-bottom))}.action-dock{padding-bottom:calc(22px + env(safe-area-inset-bottom))}}
@media(min-width:601px){.phone{aspect-ratio:440/956}.stage::before{content:"LEIKI · iPhone 17 Pro Max UI Prototype";position:fixed;top:12px;left:18px;color:#777;font:700 11px Nunito,sans-serif;letter-spacing:1px}}
@media(max-height:760px) and (max-width:600px){.hero{min-height:415px}.hero .hero-photo{height:265px}.canvas-shell{height:260px}}

/* Final visual tuning after portrait render review */
.canvas-shell{height:250px}
.v3 .mode-tabs{background:none;padding:0;gap:10px}
.v3 .mode-tabs button{min-height:70px;background:#fff4eb;border:1px solid #ffd9bf;border-radius:20px;font-size:15px}
.v3 .mode-tabs button.active{background:var(--orange);color:#fff;box-shadow:0 9px 20px #ff782e31}
.v3 .feature-grid .feature.primary{grid-column:span 2;min-height:104px;display:flex}
.v3 .feature-grid .feature.primary .emoji{margin-bottom:0}
@media(max-height:760px) and (max-width:600px){.canvas-shell{height:215px}}

/* Selected clear-studio creation flow: one screen, expanded canvas, no naming yet. */
.selected-create .screen{display:flex;flex-direction:column;height:calc(100% - 108px);min-height:0;overflow:hidden;padding-bottom:0}
.selected-create .status,.selected-create .create-header,.selected-create .step,.selected-create .create-intro,.selected-create .mode-tabs{flex:none}
.selected-create .create-intro{padding-top:14px;padding-bottom:13px}
.selected-create .create-intro h1{font-size:clamp(22px,5.9vw,28px);white-space:nowrap;letter-spacing:-1.25px;line-height:1.15;margin:7px 0 7px}
.selected-create .mode-tabs{margin-bottom:12px}
.selected-create .mode-panel.active{display:flex;flex-direction:column;flex:1;min-height:0}
.selected-create .canvas-card{display:flex;flex-direction:column;flex:1;min-height:0;margin-bottom:0}
.selected-create .canvas-head,.selected-create .draw-tools{flex:none}
.selected-create .canvas-shell{flex:1;min-height:0;height:auto}
.selected-create .mode-panel[data-panel="draw"]>p{flex:none;margin:9px 0 10px!important}
.selected-create .library{flex:1;min-height:0;overflow:hidden}
.selected-create .character{min-height:145px}
.selected-create .character .robot-shot,.selected-create .character .animal{height:78px}
.selected-create .character-grid>div:last-child{min-height:145px!important}
@media(max-width:600px){.selected-create .screen{height:calc(100% - 108px - env(safe-area-inset-bottom))}}


/* Home concept 1: sparse product overview inspired by the supplied fitness layout. */
.home-ref .screen{background:linear-gradient(180deg,#fff 0%,#fff 29%,#fff5ed 54%,#fdf9f5 80%,#fcfaf8 100%)}
.home-ref .status{background:#fff;z-index:32}
.overview-header{position:sticky;top:42px;z-index:31;height:67px;padding:10px 25px 0;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;background:#fff}
.overview-header h1{font-size:36px;font-weight:500;letter-spacing:-2.3px;line-height:1;margin:0;color:#202124}
.overview-header>span{font-size:10px;font-weight:900;letter-spacing:2px;color:#c1c6ca}
.overview-add{justify-self:end;display:grid;place-items:center;width:42px;height:42px;border:0;border-radius:50%;background:transparent;color:#252629;padding:0}.overview-add svg{display:block}
.product-stage{position:relative;height:clamp(245px,31vh,295px);display:grid;place-items:center;overflow:hidden}
.product-glow{position:absolute;inset:6% 0 0;background:radial-gradient(ellipse at 50% 57%,#fff 0%,#fff 27%,#fff1e577 56%,transparent 75%)}
.product-stage>img{position:relative;z-index:2;display:block;width:100%;height:100%;object-fit:contain;padding:2px 65px 12px;filter:drop-shadow(0 18px 14px rgba(34,48,56,.11))}
.product-reflection{position:absolute;left:30%;right:30%;bottom:8px;height:24px;border-radius:50%;background:#e8aa823b;filter:blur(17px)}
.overview-card{position:relative;margin:0 16px;background:#fff;border-radius:27px;padding:23px 18px 0;box-shadow:0 8px 35px #c38b6910}
.overview-facts{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding-bottom:19px}
.overview-fact{min-width:0}
.fact-label{display:flex;align-items:center;gap:4px;white-space:nowrap;font-size:12px;font-weight:800;color:#303238}
.fact-icon{font-size:19px;line-height:1}
.overview-fact strong{display:block;font-size:32px;font-weight:700;line-height:1.1;letter-spacing:-1px;margin:14px 0 5px}
.overview-fact small{display:block;white-space:nowrap;font-size:10px;color:#a2a7ad}
.overview-action{border:0;border-top:1px solid #eef0f1;width:100%;height:59px;background:transparent;display:flex;align-items:center;gap:9px;text-align:left;font-size:14px;font-weight:800;color:#292d31;padding:0 1px}
.action-spark{font-size:20px;color:var(--orange)}
.action-chevron{margin-left:auto;font-size:25px;font-weight:400;color:#cbd0d4}
.overview-tiles{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin:13px 16px 0}
.overview-tile{position:relative;min-width:0;min-height:225px;border:0;border-radius:27px;background:#fff;padding:18px 17px 14px;text-align:left;overflow:hidden;box-shadow:0 8px 35px #c38b690b}
.tile-icon{display:grid;place-items:center;width:40px;height:40px;border-radius:50%;color:#fff;font-size:21px}
.tile-icon.purple{background:#9180f6}.tile-icon.coral{background:#ff6865}
.overview-tile strong{display:block;font-size:17px;line-height:1.2;margin-top:14px}
.tile-subtitle{display:block;font-size:11px;color:#a1a6ac;margin-top:6px;white-space:nowrap}
.tile-illustration{position:absolute;left:17px;right:17px;bottom:41px;height:42px}
.robot-illustration{display:flex;align-items:center;gap:5px}
.robot-illustration i{display:block;width:32%;height:16px;border-radius:8px;background:#ddd7ff}.robot-illustration i:nth-child(2){background:#bdb2ff}.robot-illustration i:nth-child(3){background:#9686f6}
.play-illustration{display:flex;align-items:end;justify-content:space-between;gap:3px;color:#ff8682;font-style:normal}
.play-illustration i{font-style:normal;font-size:15px}.play-illustration i:nth-child(2){font-size:27px;line-height:.8}.play-illustration i:nth-child(3){font-size:24px}.play-illustration i:nth-child(4){font-size:13px}.play-illustration i:nth-child(5){font-size:19px}
.tile-foot{position:absolute;bottom:16px;left:17px;right:17px;display:flex;align-items:center;justify-content:space-between;font-size:10px;color:#9da4a9}
.tile-foot b{font-size:20px;font-weight:400;color:#cbd0d4}
.home-ref .bottom-nav{border-top-color:#edf0f2}
.home-ref .bottom-nav button.active{color:var(--orange)}
@media(max-height:760px){.product-stage{height:235px}.overview-tile{min-height:205px}}
@media(max-width:380px){.product-stage>img{padding-inline:50px}.overview-card{padding-inline:14px}.overview-fact strong{font-size:29px}.fact-label{font-size:11px}.overview-tile{padding-inline:12px}.tile-illustration,.tile-foot{left:12px;right:12px}}


/* Keep the product floating in open space and anchor tile content at the top. */
.home-ref .product-stage>img{height:82%;align-self:start;padding:0 72px}
.home-ref .product-reflection{bottom:47px;opacity:.55}
.home-ref .overview-tile{display:flex;flex-direction:column;align-items:flex-start}


/* Animal library: the page stays fixed while the role list scrolls. */
.selected-create .mode-panel[data-panel="library"]{min-height:0;min-width:0}
.selected-create .library{width:100%;min-width:0;overflow-y:auto;overscroll-behavior:contain;padding-bottom:12px;scrollbar-width:thin;scrollbar-color:#efc9ad transparent}
.selected-create .library .lead{position:sticky;top:0;z-index:2;background:#fffaf7;padding:7px 2px 12px;margin:0 0 3px;font-size:12px}
.selected-create .character-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.selected-create .animal-card{min-width:0;min-height:151px;padding:9px 9px 11px;background:#fff;display:flex;flex-direction:column;align-items:stretch;cursor:pointer}
.selected-create .animal-card .animal-art{height:105px;width:100%;display:grid;place-items:center;border-radius:14px;background:#e8eef0;overflow:hidden}
.selected-create .animal-card .animal-art img{display:block;width:auto;height:96px;max-width:94%;object-fit:contain}
.selected-create .animal-card strong{font-size:12px;margin:7px 2px 0;line-height:1.2}
.selected-create .animal-card .badge{display:none;position:absolute;right:13px;top:13px;z-index:1;box-shadow:0 2px 9px #00000016}
.selected-create .animal-card.selected .badge{display:block}
.selected-create .animal-card:focus-visible{outline:3px solid #ed843e;outline-offset:2px}

/* Real phone viewport: use the device's own status area instead of the mock one. */
@media (max-width:600px){.phone .status{display:none!important}}
@media (max-width:600px){.overview-header{top:0}}


/* Selected creation page: centered step title and a lower single action. */
.selected-create .create-header{display:grid;grid-template-columns:42px 1fr 42px;align-items:center}
.selected-create .create-header .brand{justify-self:center;font-size:18px;letter-spacing:0;color:var(--ink)}
.selected-create .step>.eyebrow{display:block;line-height:1;margin:0 0 9px}
.selected-create .step .progress{margin-top:0}
.selected-create .create-intro h1{margin-top:0}
.selected-create .action-dock{padding:18px 20px 16px}
.selected-create .screen{height:calc(100% - 87px)}
@media(max-width:600px){.selected-create .action-dock{padding-bottom:calc(16px + env(safe-area-inset-bottom))}.selected-create .screen{height:calc(100% - 87px - env(safe-area-inset-bottom))}}

/* Shared type hierarchy; values match the existing rendered sizes. */
:root{--font-ui:Nunito,"Noto Sans SC",sans-serif}
body,button,input,h1,h2,h3{font-family:var(--font-ui)}
.canvas-head h2{margin:0;font-size:14px;font-weight:900}

/* Customization navigation icons stay black in Safari and other mobile browsers. */
.icon-btn.nav-icon-btn{-webkit-appearance:none;appearance:none;display:grid;place-items:center;padding:0;color:#000!important;-webkit-text-fill-color:#000!important}
.icon-btn.nav-icon-btn img{display:block;width:24px;height:24px;object-fit:contain;filter:brightness(0)}
.icon-btn.nav-icon-btn img[src$="goback.svg"]{width:25px;height:25px}
