@font-face{font-family:Nunito;src:url('../assets/fonts/nunito.ttf') format('truetype');font-weight:200 1000;font-display:swap}@font-face{font-family:Lilita;src:url('../assets/fonts/lilita-one.ttf') format('truetype');font-weight:400;font-display:swap}
:root{--navy:#082338;--cream:#fcf8ef;--sky:#82d3fa;--blue:#159afb;--muted:#304f67;--line:#e9e5dd;--orange:#ff842c;--yellow:#ffdc66;--pink:#ffa6aa;--green:#21b38b;color:var(--navy);font-family:Nunito,ui-rounded,system-ui,sans-serif;font-synthesis:none;background:#8cd1ed}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit;color:inherit}button,a,input,select{-webkit-tap-highlight-color:transparent}button{border:0;cursor:pointer;background:none;padding:0}button:disabled{opacity:.35;cursor:default}a{color:inherit}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #008de9;outline-offset:3px}button:active:not(:disabled){transform:translateY(1px)}img{display:block;max-width:100%;object-fit:cover}h1,h2,h3,p{margin:0}h1{font-weight:900;font-size:34px;letter-spacing:-1.15px;line-height:1.15}h2{font-size:23px;font-weight:900;letter-spacing:-.7px;line-height:1.25}h3{font-size:18px;font-weight:900;line-height:1.2}p{font-size:15px;line-height:1.5}.icon{display:inline-block;width:26px;height:26px;flex-shrink:0;vertical-align:middle}.icon.filled{stroke-width:1.5}#app{width:100%;max-width:430px;min-height:100dvh;position:relative;margin:auto;background:var(--cream);overflow:hidden}.screen{padding:calc(32px + env(safe-area-inset-top)) 20px calc(95px + env(safe-area-inset-bottom));min-height:100dvh;position:relative}.icon-button{display:flex;align-items:center;justify-content:center;width:36px;height:40px;flex-shrink:0}.topbar{display:flex;align-items:center;justify-content:space-between;gap:8px;height:48px;margin-bottom:20px}.topbar>h1{text-align:center;font-size:21px;font-weight:900;letter-spacing:-.7px;flex:1}.topbar>.icon-button{margin-left:-8px}.topbar .balance{font-size:17px}.header-tools{display:flex;gap:16px;align-items:center}.balance{display:inline-flex;align-items:center;gap:8px;font-size:18px;white-space:nowrap}.coin{display:inline-flex;width:25px;height:25px;border-radius:50%;border:3px solid #ffe38b;background:#ffbb32;box-shadow:inset 0 0 0 2px #ffc953,0 0 0 1px #fff0ba;align-items:center;justify-content:center;transform:rotate(18deg);flex-shrink:0}.coin i{width:12px;height:16px;border-radius:50%;border-left:2px solid #fff0aa;border-top:2px solid #fff0aa}.bottom-nav{position:fixed;z-index:10;bottom:0;left:50%;transform:translateX(-50%);width:min(100%,430px);padding:10px 12px calc(10px + env(safe-area-inset-bottom));height:calc(79px + env(safe-area-inset-bottom));display:flex;justify-content:space-around;border-radius:29px 29px 0 0;background:#fffaf1f5;backdrop-filter:blur(15px);border-top:1px solid #ebe6dd}.bottom-nav button{min-width:60px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;font-size:12px;font-weight:700}.bottom-nav button .icon{width:28px;height:28px;color:#92999d}.bottom-nav button.active{font-weight:900}.bottom-nav button.active .icon{color:var(--navy)}.bottom-nav .active{background:#eeece65c;border-radius:27px}.primary,.secondary,.small-primary{display:flex;align-items:center;justify-content:center;background:var(--navy);color:white;border-radius:40px;font-size:20px;font-weight:800;width:100%;min-height:64px;text-decoration:none;padding:12px 22px}.primary.with-arrow{position:relative}.primary.with-arrow>.icon{position:absolute;right:25px;width:28px}.secondary{background:transparent;border:1px solid var(--line);color:var(--navy);font-size:16px;min-height:48px}.small-primary{min-height:36px;font-size:15px;padding:5px 15px;margin-top:7px}.text-button{text-align:left}.text-link{color:var(--blue);font-weight:800;font-size:14px}.text-link>.icon{width:14px}.stars{color:#ffc52f;display:inline-flex;gap:3px;align-items:center}.stars .icon{width:18px;height:18px;stroke:#efa81d;stroke-width:.5}.stars.disabled{color:#d6d7d3}.stars.disabled .icon{stroke:none}.pills{display:flex;gap:8px;margin:12px -1px 17px;overflow-x:auto;scrollbar-width:none;padding:2px 0}.pills::-webkit-scrollbar{display:none}.pills button{flex-shrink:0;border:1px solid var(--line);border-radius:24px;padding:10px 16px;font-size:12px;font-weight:800;white-space:nowrap;min-height:39px}.pills button.selected,.difficulty button.selected,.week button.selected{background:var(--navy);color:#fff;border-color:var(--navy)}.subheading{font-size:16px;margin-top:4px;margin-bottom:14px}.puzzle-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:15px 14px}.puzzle-card{min-width:0;background:#fffcf56e;border:1px solid #eee9df8c;border-radius:16px;overflow:hidden}.puzzle-card>img,.art-button img{width:100%;aspect-ratio:.95;object-fit:cover;border-radius:13px}.art-button{position:relative;display:block;width:100%}.card-text{padding:7px 6px 8px}.card-title{font-size:15px;font-weight:900;line-height:1.15;letter-spacing:-.4px}.card-text p{font-size:14px;line-height:1.5;color:var(--muted)}.card-text .stars{margin-top:4px}.lock-badge{position:absolute;right:6px;bottom:6px;width:36px;height:36px;display:grid;place-items:center;background:var(--cream);border-radius:50%}.lock-badge .icon{width:19px;height:19px}.locked-row{display:flex;align-items:center;justify-content:space-between;margin-top:1px}.lock-button{width:49px;height:49px;border-radius:50%;border:1px solid var(--line);color:#7b8b99;background:#f1eee8}.lock-button .icon{width:22px}.progress-row{display:flex;gap:13px;align-items:center;font-size:12px;color:#27587d;margin-top:5px}.progress-track{height:8px;background:#e4e6e3;border-radius:9px;flex:1;overflow:hidden}.progress-track i{display:block;height:100%;background:var(--blue);border-radius:9px}.progress-row.complete{color:#00a079}.complete .progress-track i{background:#00a079}.no-progress{height:14px}.empty-state{text-align:center;padding:60px 12px}.empty-state>.icon{width:50px;height:50px;color:#a0bdc6;margin-bottom:20px}.empty-state p{margin:12px 0 25px}
.welcome{position:relative;min-height:100dvh;background:#93c1e7 url('../assets/art/kitchenprint2.webp') center 150px/126% auto repeat-y;overflow:hidden}.welcome-wordmark{position:absolute;top:14%;width:100%;text-align:center;color:white}.welcome-wordmark h1{font-family:Lilita,ui-rounded,sans-serif;font-size:clamp(62px,19vw,83px);font-weight:400;line-height:.86;letter-spacing:1px}.welcome-wordmark>span{display:block;font-size:21px;font-weight:1000;letter-spacing:9px;padding-left:9px;margin-top:15px}.welcome-motto{position:absolute;right:10%;top:40%;font-family:Nunito,sans-serif;font-size:22px;line-height:1.17;transform:rotate(-6deg);color:#164663}.get-started{position:absolute;bottom:5.5%;left:10%;width:80%;height:76px;border-radius:50px;background:var(--cream);display:flex;align-items:center;justify-content:space-between;padding:10px 27px 10px 38px;font-size:25px;font-weight:1000}.get-started>span{display:grid;place-items:center;border-radius:50%;height:53px;width:53px;background:var(--navy);color:white}.get-started .icon{width:30px;height:30px}
.home{background:linear-gradient(165deg,#74c9f6,#aee6fc 58%,#dbf2fc);padding:50px 19px 111px}.home-header{display:flex;align-items:center;justify-content:space-between;height:45px;margin-bottom:23px}.brand{font-family:Lilita,sans-serif;font-size:25px;letter-spacing:.3px;line-height:1}.brand span{display:block;font-family:Nunito,sans-serif;font-size:13px;font-weight:1000;letter-spacing:4px;margin-top:4px}.home-header .header-tools{gap:13px}.home-header .icon-button{width:25px}.home-header .icon{width:24px;height:24px}.feature{display:block;position:relative;width:100%;height:330px;overflow:hidden;border-radius:21px;text-align:left;color:white}.feature>img{height:100%;width:100%;object-position:center 52%}.feature-shade{position:absolute;inset:0;background:linear-gradient(transparent 45%,#032234ef 100%)}.feature-content{position:absolute;left:21px;bottom:22px;display:flex;flex-direction:column}.feature-content>small{font-size:15px;font-weight:800}.feature-content>strong{font-size:36px;font-weight:900;letter-spacing:-1px;line-height:.97;margin:5px 0 6px}.feature-content>span{font-size:14px;font-weight:800}.feature-progress{width:175px;height:4px;background:#e0f5ff33;border-radius:10px;margin-top:4px;display:block;overflow:hidden}.feature-progress i{display:block;background:white;height:100%;border-radius:10px}.feature-play{position:absolute;right:20px;bottom:26px;border-radius:50%;width:73px;height:73px;display:grid;place-items:center;background:#fffefa;color:var(--navy)}.feature-play>.icon{width:31px;height:31px;margin-left:1px}.dashboard-tiles{display:grid;grid-template-columns:1fr 1fr;gap:11px;margin-top:12px}.tile{text-align:left;height:109px;padding:18px 23px 13px;border-radius:23px;display:flex;flex-direction:column;justify-content:flex-end}.tile>.icon{width:31px;height:31px;margin-bottom:8px}.tile b{font-size:14px;font-weight:900;line-height:1.2}.tile>span{font-size:13px;line-height:1.1}.tile.orange{background:var(--orange);color:white}.tile.yellow{background:var(--yellow)}.tile.pink{background:var(--pink)}.tile.green{background:var(--green);color:white}.route-home .bottom-nav{bottom:19px;width:min(calc(100% - 38px),392px);border-radius:33px;height:79px;padding:9px 9px}.info{padding-top:38px;padding-bottom:25px}.info .topbar{margin-bottom:22px}.detail-art{width:100%;aspect-ratio:1/1.02;border-radius:16px;object-position:center}.detail-title{display:flex;justify-content:space-between;align-items:center;margin:20px 0 12px}.detail-title p{font-size:16px;color:var(--muted)}.detail-title .stars{gap:3px}.detail-title .stars>.icon{width:22px;height:22px}.description{font-size:16px;line-height:1.55;color:var(--muted);min-height:53px}.difficulty{display:flex;gap:11px;margin:29px 0 27px}.difficulty>button{flex:1;border:1.5px solid var(--line);border-radius:24px;min-height:60px;font-size:18px;font-weight:900}.favorite-button{display:flex;align-items:center;justify-content:center;gap:8px;width:100%;font-size:13px;margin-top:15px;color:#5d7280}.favorite-button>.icon{width:18px;height:18px;color:#edb328}
.collection{padding-top:35px}.collection-top{display:flex;justify-content:space-between;align-items:center;margin-bottom:8px;height:38px}.collection-top>.icon-button{margin-left:-8px}.collection-top select{background:#f5f0e8;border:1px solid var(--line);border-radius:24px;padding:7px 10px;font-size:12px;font-weight:800;max-width:145px}.collection .subheading{margin-bottom:14px}.collection .pills{justify-content:space-between;gap:7px;margin-bottom:15px}.collection .pills button{padding:10px 14px;font-size:11.5px}.collection-card .art-button img{aspect-ratio:1.08}.collection-card .card-text{padding-top:6px}.collection-card{border-radius:14px}.themes{background:linear-gradient(120deg,#8dd9fc,#c4edfe);padding:35px 18px 95px}.themes .topbar{margin-bottom:0;height:38px}.themes h1{text-align:center;margin-top:9px;position:relative;z-index:1}.theme-sub{text-align:center;font-size:14px;margin-top:3px;margin-bottom:16px}.themes .pills{margin-bottom:13px}.themes .pills button{background:#e8f8ff91;border:0;min-height:38px;padding:10px 19px}.themes .pills .selected{background:var(--navy)}.theme-decor{position:absolute;top:22px;right:1px;left:0;height:130px;pointer-events:none;overflow:hidden}.theme-decor .icon{position:absolute;color:#ffe299;width:53px;height:53px;transform:rotate(14deg);right:91px;top:4px;filter:drop-shadow(0 5px 3px #20789720)}.theme-decor .icon:nth-child(2){color:#64c1ef;right:22px;top:10px;width:65px;height:65px;transform:rotate(-7deg)}.theme-decor .icon:nth-child(3){color:var(--pink);left:-22px;top:68px;transform:rotate(19deg)}.theme-list{display:grid;gap:12px}.theme-card{border-radius:19px;overflow:hidden;height:77px;display:flex;background:#f8fdffb8;align-items:center;text-align:left;width:100%}.theme-card>img,.theme-empty-art{width:39%;height:100%;flex-shrink:0}.theme-empty-art{background:#b3d9e4;display:grid;place-items:center;color:#fff9}.theme-card>span:not(.theme-empty-art){display:flex;flex-direction:column;padding-left:19px;gap:3px;flex:1}.theme-card b{font-size:18px;font-weight:900}.theme-card small{font-size:14px;color:var(--muted)}.theme-card>.icon{width:20px;height:20px;margin-right:14px}
.daily{padding-top:51px;background:radial-gradient(ellipse at top left,#d7f1fd,transparent 47%),var(--cream)}.daily-header{display:flex;justify-content:space-between;align-items:center}.daily-header h1{font-size:33px}.daily-header p{font-size:14px;color:var(--muted);margin-top:3px}.calendar-button{height:43px;width:43px;border-radius:14px;background:#073b5c;color:white}.calendar-button>.icon{width:24px;height:24px}.week{display:flex;gap:5px;margin:18px 0 15px}.week button{position:relative;flex:1;height:58px;border:1px solid var(--line);border-radius:13px;background:#fffcf5;display:flex;align-items:center;justify-content:center;flex-direction:column}.week small{font-size:10px}.week b{font-size:17px}.week i{position:absolute;bottom:4px;width:6px;height:6px;background:#0b829f;border-radius:50%}.daily-art{position:relative;border-radius:15px;overflow:hidden}.daily-art>img{width:100%;aspect-ratio:1.46;object-position:center}.today-badge{display:flex;gap:7px;align-items:center;position:absolute;top:10px;right:9px;font-size:13px;font-weight:1000;background:var(--yellow);border-radius:30px;padding:10px 13px}.today-badge .icon{width:17px;height:17px}.daily h2{font-size:21px;margin-top:9px}.daily>p{font-size:14px;margin-top:3px}.dot{padding:0 9px;color:#778898}.daily>.primary{min-height:47px;font-size:20px;margin-top:8px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin:27px 0 12px}.section-heading h3{font-size:18px}.past-puzzles{display:flex;gap:7px}.past-card{position:relative;flex:1;min-width:0;border-radius:13px;overflow:hidden}.past-card>img{height:96px;width:100%}.past-card>span{position:absolute;top:6px;right:5px;border-radius:50%;height:25px;width:25px;background:var(--cream);display:grid;place-items:center}.past-card .icon{width:18px;height:18px}
.profile{padding-top:54px}.profile-header{display:flex;align-items:center;justify-content:space-between}.profile-header>.icon-button{margin-right:-3px}.identity{text-align:center;margin-top:-1px}.avatar{width:118px;height:118px;position:relative;margin:auto}.avatar>img{width:100%;height:100%;border-radius:50%;object-position:50% 40%;border:1px solid #ffffff}.edit-avatar{position:absolute;bottom:0;right:-3px;width:44px;height:44px;border:1px solid #d4d3cc;background:var(--cream);border-radius:50%;display:grid;place-items:center;box-shadow:0 2px 1px #1232}.edit-avatar .icon{width:19px;height:19px}.name-button{font-weight:1000;font-size:27px;letter-spacing:-.9px;margin-top:10px}.identity>p{font-weight:800;color:var(--blue);font-size:16px}.stat-card{border:1px solid #e1dfd7;border-radius:22px;display:flex;padding:14px 7px;margin:19px 0 11px;background:#fffdf7b3}.stat-card>div{display:flex;flex-direction:column;align-items:center;flex:1;position:relative}.stat-card>div+div:before{content:'';position:absolute;left:0;top:4px;height:58px;width:1px;background:var(--line)}.stat-card .icon{color:var(--blue);width:26px;height:26px;margin-bottom:4px}.stat-card>div:nth-child(2) .icon{color:#ffc329}.stat-card>div:nth-child(3) .icon{color:#ff613a}.stat-card b{font-size:18px;line-height:1.15;font-weight:1000}.stat-card span{font-size:12px}.menu-list{border:1px solid var(--line);border-radius:20px;margin-bottom:8px;overflow:hidden}.menu-row{min-height:41px;display:flex;align-items:center;width:100%;padding:9px 20px;gap:19px;text-align:left;background:#fffdf62e}.menu-row+.menu-row{border-top:1px solid var(--line)}.menu-row>span{flex:1;font-size:14px}.menu-row>.icon{width:19px;height:19px}.menu-row>.icon:last-child{width:18px}.guest-label{font-size:11px;color:#889199;text-align:center;margin-top:16px}.settings-list{margin-top:25px}.setting-row{display:flex;align-items:center;gap:12px;padding:19px 16px;position:relative}.setting-row+.setting-row{border-top:1px solid var(--line)}.setting-row>span:first-child{flex:1}.setting-row small{display:block;font-size:11px;color:#627785;margin-top:3px}.setting-row input[role=switch]{position:absolute;right:15px;width:46px;height:28px;opacity:0;z-index:1;cursor:pointer}.switch{width:46px;height:28px;background:#cbd2d4;border-radius:20px;position:relative}.switch:before{content:'';position:absolute;left:3px;top:3px;width:22px;height:22px;border-radius:50%;background:white;transition:transform .2s}.setting-row input:checked+.switch{background:var(--green)}.setting-row input:checked+.switch:before{transform:translateX(18px)}.setting-row input:focus-visible+.switch{outline:3px solid var(--blue)}.danger{color:#b43b35}.primary.danger{color:white;background:#b43b35}.settings>.secondary{margin-top:22px}.settings-note{font-size:13px;color:#6a7c85;line-height:1.6;margin:20px 7px}.stats-list{margin-top:25px}.stats-list .menu-row{min-height:63px}.earned .icon{color:#edb225}.shop .subheading{margin-bottom:22px}.shop h1{font-size:32px}.shop .card-text h3{font-size:15px}.prints-heading{margin-top:26px;margin-bottom:7px}.shop>p:not(.subheading){font-size:13px;color:#6a7c85;margin-bottom:17px}.print-grid>article>img{aspect-ratio:.71;object-fit:contain}
.gameplay{height:100dvh;min-height:600px;padding:calc(30px + env(safe-area-inset-top)) 0 calc(12px + env(safe-area-inset-bottom));background:linear-gradient(135deg,#71cdf6,#91ddfb);display:flex;flex-direction:column;overflow:hidden}.gameplay .topbar{padding:0 15px;margin-bottom:7px;height:43px;flex-shrink:0;gap:4px}.gameplay .topbar>h1{font-size:19px;letter-spacing:-.7px;text-align:left;padding-left:8px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.game-header-tools{display:flex;align-items:center;gap:10px}.game-header-tools .balance{font-size:16px;gap:6px}.game-header-tools .coin{height:23px;width:23px}.game-header-tools>.icon-button{width:28px}.game-stage{position:relative;flex:1;min-height:0;border-radius:25px 25px 0 0;background:#6bcaf0aa;overflow:hidden}.game-stage canvas{display:block;touch-action:none;user-select:none;-webkit-user-select:none}.game-controls{display:flex;align-items:center;justify-content:space-evenly;padding-top:10px;background:#b5e9fc85;border-radius:26px 26px 0 0;flex-shrink:0;height:88px}.game-control>span{display:grid;place-items:center;position:relative;width:60px;height:60px;border-radius:50%;background:var(--cream)}.game-control small{font-size:12px;font-weight:900}.game-control .icon{width:26px;height:26px}.game-control b{position:absolute;right:0;top:-2px;background:var(--yellow);border:1px solid var(--cream);border-radius:50%;width:21px;height:21px;font-size:12px;display:grid;place-items:center}.game-control.selected>span{background:var(--navy);color:white}.tray-pager{height:25px;display:flex;align-items:center;justify-content:center;gap:25px;flex-shrink:0;font-size:11px;color:#265976}.tray-pager .icon-button{height:25px;width:30px}.tray-pager .icon{width:16px;height:16px}
#modal{color:var(--navy);background:var(--cream);border:0;border-radius:28px;padding:24px;max-width:360px;width:calc(100% - 36px);max-height:85dvh;box-shadow:0 15px 70px #00345355}#modal::backdrop{background:#052b4270;backdrop-filter:blur(6px)}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}.modal-head h2{font-size:25px}.modal-head .icon-button{width:26px;height:30px}.modal-actions{display:grid;gap:9px;margin-top:20px}.modal-actions:empty{display:none}.modal-actions .primary{min-height:50px;font-size:17px}.modal-balance{margin-top:16px}.completion-art{width:100%;height:260px;object-fit:cover;border-radius:16px;margin-bottom:15px}.reward{display:flex;align-items:center;justify-content:center;gap:9px;font-size:22px;font-weight:900;margin:20px 0}.original-art{max-height:58dvh;margin:auto;object-fit:contain}.date-label,#profile-form label{display:block;font-size:14px;font-weight:800;margin-bottom:15px}input:not([type=checkbox]),#profile-form select{width:100%;border:1px solid #d6dcd9;padding:12px;border-radius:12px;background:white;margin-top:8px}.date-label>input{display:block}#profile-form .primary{min-height:50px;font-size:18px}#toast{position:fixed;z-index:99;left:50%;bottom:100px;transform:translate(-50%,15px);width:max-content;max-width:min(350px,90%);background:var(--navy);color:white;border-radius:16px;padding:12px 18px;font-size:14px;text-align:center;pointer-events:none;opacity:0;transition:.2s}#toast.visible{opacity:1;transform:translate(-50%,0)}
@media(min-width:600px){body{background:radial-gradient(ellipse at 50% 40%,#beeaff,#80c7e9 75%);padding:22px 0}#app{min-height:844px;max-width:390px;border-radius:36px;box-shadow:0 18px 65px #14577d38}.screen{min-height:844px}.welcome{min-height:844px}.bottom-nav{width:390px}.route-home .bottom-nav{width:352px;bottom:19px}.bottom-nav{position:absolute}.screen:not(.home){padding-bottom:100px}.gameplay{height:844px!important;padding-bottom:12px!important}.welcome-wordmark h1{font-size:79px}.home{padding-top:48px;padding-bottom:115px}.feature{height:330px}.tile{height:110px}.route-home .bottom-nav{bottom:19px}.browse,.collection,.themes,.app-themes,.daily,.profile,.settings,.shop{height:844px;overflow-y:auto;scrollbar-width:none}.screen .bottom-nav{position:fixed;bottom:22px;border-radius:27px 27px 36px 36px}.route-home .bottom-nav{position:absolute;bottom:19px;border-radius:33px}.gameplay .game-controls{padding-bottom:0}.gameplay .topbar{padding-top:0}.screen:has(.bottom-nav){padding-bottom:105px}}
@media(max-width:360px){.screen{padding-left:15px;padding-right:15px}.gameplay{padding-left:0;padding-right:0}.home-header .header-tools{gap:5px}.brand{font-size:22px}.feature{height:300px}.tile{padding:15px 19px}.pills{gap:5px}.collection .pills button{padding:9px 10px}.detail-title .stars>.icon{width:17px}.profile-header h1,.daily-header h1{font-size:30px}.gameplay .topbar>h1{font-size:16px}.game-header-tools{gap:5px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;transition:none!important}}

.upload-help{display:block;font-size:11px;line-height:1.5;color:#647986;font-weight:500;margin-top:7px}.photo-preview{width:76px;height:76px;border-radius:50%;object-fit:cover;margin:0 auto 17px}#profile-photo{font-size:12px;padding:10px}

@media(min-width:600px){#app>.bottom-nav{width:352px;bottom:19px;border-radius:33px}}

.app-theme-heading{font-size:19px;margin:2px 0 3px}.app-theme-description{font-size:13px;color:var(--muted);margin-bottom:12px}.app-theme-options{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin-bottom:23px}.app-theme-option{min-height:82px;border:1px solid var(--line);border-radius:15px;background:var(--cream);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:6px;font-size:12px;font-weight:900}.app-theme-option.selected{outline:2px solid var(--blue);border-color:var(--blue)}.app-theme-swatch{width:39px;height:27px;border-radius:9px;border:1px solid #0002;background:linear-gradient(90deg,#fcf8ef 50%,#082338 50%)}.app-theme-swatch.dark{background:linear-gradient(90deg,#142331 50%,#eaf5fc 50%)}.app-theme-swatch.pink{background:linear-gradient(90deg,#fff3f7 50%,#8d3159 50%)}.app-theme-swatch.blue{background:linear-gradient(90deg,#eff8ff 50%,#103252 50%)}
:root[data-app-theme="pink"]{--navy:#59253f;--cream:#fff5f8;--sky:#f4b9ce;--blue:#c34878;--muted:#795366;--line:#efd8e1;--orange:#dd7d74;--yellow:#f3d282;--pink:#f1a6c0;--green:#579b85;background:#f8d9e5;color:var(--navy)}
:root[data-app-theme="pink"] .home{background:linear-gradient(165deg,#e797b6,#f6c6d5 58%,#fff0f4)}
:root[data-app-theme="pink"] .themes{background:linear-gradient(120deg,#f3bfd2,#ffe6ed)}
:root[data-app-theme="blue"]{--navy:#103252;--cream:#f2f9ff;--sky:#8ecbf2;--blue:#2479c2;--muted:#42647e;--line:#d4e5f1;--orange:#438ac3;--yellow:#f0cd72;--pink:#a9c8ef;--green:#42a899;background:#d9edfb;color:var(--navy)}
:root[data-app-theme="blue"] .home{background:linear-gradient(165deg,#69afe0,#a9d9f4 58%,#e1f3fd)}
:root[data-app-theme="blue"] .themes{background:linear-gradient(120deg,#90c9ed,#d7efff)}
:root[data-app-theme="dark"]{--navy:#f5f5f5;--cream:#080808;--sky:#101010;--blue:#8bc8ff;--muted:#d0d0d0;--line:#3b3b3b;--orange:#a95b30;--yellow:#a9832e;--pink:#984562;--green:#207d68;background:#000;color:var(--navy);color-scheme:dark}
:root[data-app-theme="dark"] body{background:#000}
:root[data-app-theme="dark"] #app{background:var(--cream)}
:root[data-app-theme="dark"] .home{background:linear-gradient(165deg,#111,#050505 58%,#000)}
:root[data-app-theme="dark"] .themes{background:linear-gradient(120deg,#111,#000)}
:root[data-app-theme="dark"] .bottom-nav{background:#090909ed;border-color:#3b3b3b}
:root[data-app-theme="dark"] .bottom-nav .active{background:#292929}
:root[data-app-theme="dark"] .bottom-nav button.active .icon{color:#fff}
:root[data-app-theme="dark"] .puzzle-card,:root[data-app-theme="dark"] .theme-card,:root[data-app-theme="dark"] .stat-card,:root[data-app-theme="dark"] .week button{background:#111;border-color:#3b3b3b}
:root[data-app-theme="dark"] .primary{background:#f2f2f2;color:#080808}
:root[data-app-theme="dark"] .secondary{color:var(--navy);border-color:var(--line)}
:root[data-app-theme="dark"] .pills button.selected,:root[data-app-theme="dark"] .difficulty button.selected,:root[data-app-theme="dark"] .week button.selected,:root[data-app-theme="dark"] .themes .pills .selected{background:#f2f2f2;border-color:#f2f2f2;color:#080808}
:root[data-app-theme="dark"] .game-control.selected>span{background:#f2f2f2;color:#080808}
:root[data-app-theme="dark"] .gameplay .game-controls{background:#000}
:root[data-app-theme="dark"] .gameplay .game-control>span{background:#f2f2f2;color:#080808}
:root[data-app-theme="dark"] .gameplay .game-control small{color:#f5f5f5}
:root[data-app-theme="dark"] .gameplay .game-control b{background:#ffdc66;color:#080808;border-color:#111}
:root[data-app-theme="dark"] .gameplay .tray-pager{color:#d0d0d0}
:root[data-app-theme="dark"] .gameplay .tray-pager .icon-button{color:#f5f5f5}
:root[data-app-theme="dark"] .collection-top select,:root[data-app-theme="dark"] input:not([type=checkbox]),:root[data-app-theme="dark"] #profile-form select{background:#111;color:#f5f5f5;border-color:#555}
:root[data-app-theme="dark"] #modal{background:#080808;color:#f5f5f5;border:1px solid #3b3b3b}
:root[data-app-theme="dark"] #modal p,:root[data-app-theme="dark"] #modal label,:root[data-app-theme="dark"] #modal small{color:#e0e0e0}
:root[data-app-theme="dark"] #modal .secondary{background:#171717;color:#f5f5f5;border-color:#666}
:root[data-app-theme="dark"] #modal .primary:not(.danger),:root[data-app-theme="dark"] #modal a.primary{background:#f2f2f2;color:#080808}
:root[data-app-theme="dark"] #modal .danger{background:#b43b35;color:#fff}
:root[data-app-theme="dark"] #modal .icon-button{color:#f5f5f5}
:root[data-app-theme="dark"] #modal .setting-row{background:#111}
:root[data-app-theme="dark"] #modal input[type="date"],:root[data-app-theme="dark"] #modal input:not([type=checkbox]),:root[data-app-theme="dark"] #modal select{background:#111;color:#f5f5f5;border-color:#555;color-scheme:dark}
:root[data-app-theme="dark"] #toast{background:#f2f2f2;color:#080808;border:1px solid #777}
:root[data-app-theme="dark"] .gameplay{background:linear-gradient(135deg,#050505,#111)}
:root[data-app-theme="dark"] .game-stage{background:#090909}
:root[data-app-theme="dark"] .game-controls{background:#080808}
:root[data-app-theme="dark"] .game-control>span{background:#f2f2f2;color:#080808}
:root[data-app-theme="dark"] .theme-card small,:root[data-app-theme="dark"] .settings-note,:root[data-app-theme="dark"] .settings-list small,:root[data-app-theme="dark"] .card-text p,:root[data-app-theme="dark"] .description,:root[data-app-theme="dark"] .identity>p{color:#d0d0d0}
:root[data-app-theme="dark"] .tile.orange,:root[data-app-theme="dark"] .tile.green{color:#fff}
:root[data-app-theme="dark"] .tile.yellow,:root[data-app-theme="dark"] .today-badge{color:#080808}
:root[data-app-theme="dark"] .feature-play{background:#f2f2f2;color:#080808}
:root[data-app-theme="dark"] .badges-intro,:root[data-app-theme="dark"] .badges-note{color:#d0d0d0}
:root[data-app-theme="dark"] .badge-card{background:#111;border-color:#444;color:#f5f5f5}
:root[data-app-theme="dark"] .badge-card small{color:#d0d0d0}
:root[data-app-theme="dark"] .badge-card.current{background:#171717;border-color:#8bc8ff}
:root[data-app-theme="dark"] .badge-card .badge-status{color:#d0d0d0}
:root[data-app-theme="dark"] .badge-card.current .badge-status{color:#8bc8ff}
:root[data-app-theme="dark"] .browse .pills button{background:#111;color:#f5f5f5;border-color:#555}
:root[data-app-theme="dark"] .browse .pills button.selected{background:#f2f2f2;color:#080808;border-color:#f2f2f2}
:root[data-app-theme="dark"] .browse .puzzle-card{background:#111;border-color:#444}
:root[data-app-theme="dark"] .browse .card-title{color:#fff}
:root[data-app-theme="dark"] .browse .card-text p{color:#d0d0d0}
:root[data-app-theme="dark"] .browse .small-primary{background:#f2f2f2;color:#080808}
:root[data-app-theme="dark"] .browse .lock-button{background:#222;color:#fff;border-color:#666}
:root[data-app-theme="dark"] .browse .lock-badge{background:#111;color:#fff;border:1px solid #555}
:root[data-app-theme="dark"] .browse .stars.disabled{color:#aaa}
:root[data-app-theme="dark"] .browse .progress-track{background:#3b3b3b}
:root[data-app-theme="dark"] .browse .progress-row{color:#c7e6ff}
:root[data-app-theme="dark"] .badges .bottom-nav button.active .icon{color:#fff}
:root[data-app-theme="dark"] .shop h1,:root[data-app-theme="dark"] .shop h2,:root[data-app-theme="dark"] .shop h3{color:#fff}
:root[data-app-theme="dark"] .shop .subheading,:root[data-app-theme="dark"] .shop>p:not(.subheading){color:#d0d0d0}
:root[data-app-theme="dark"] .shop .puzzle-card{background:#111;border-color:#444}
:root[data-app-theme="dark"] .shop .card-text{color:#f5f5f5}
:root[data-app-theme="dark"] .shop .small-primary{background:#f2f2f2;color:#080808}
:root[data-app-theme="dark"] .theme-card small,:root[data-app-theme="dark"] .settings-note,:root[data-app-theme="dark"] .settings-list small{color:var(--muted)}
:root[data-app-theme="dark"] .tile.orange,:root[data-app-theme="dark"] .tile.green{color:#fff}
:root[data-app-theme="dark"] .app-theme-swatch.light{background:linear-gradient(90deg,#fcf8ef 50%,#082338 50%)}
:root[data-app-theme="dark"] .app-theme-swatch.dark{background:linear-gradient(90deg,#142331 50%,#eaf5fc 50%)}
:root[data-app-theme="dark"] .app-theme-swatch.pink{background:linear-gradient(90deg,#fff3f7 50%,#8d3159 50%)}
:root[data-app-theme="dark"] .app-theme-swatch.blue{background:linear-gradient(90deg,#eff8ff 50%,#103252 50%)}
.profile-rank{margin-top:2px;display:flex;align-items:center;justify-content:center;gap:6px}.profile-rank img{width:25px;height:25px;object-fit:contain}.badges-intro{color:var(--muted);margin:0 2px 18px}.badge-list{display:grid;gap:10px}.badge-card{display:flex;align-items:center;gap:12px;min-height:70px;padding:12px 14px;border:1px solid var(--line);border-radius:16px;background:#fffcf5;color:var(--navy)}.badge-image{width:48px;height:48px;flex-shrink:0;object-fit:contain}.badge-copy{display:flex;flex-direction:column;gap:3px;flex:1}.badge-copy b{font-size:15px;font-weight:900}.badge-copy small{font-size:12px;color:var(--muted)}.badge-status{font-size:11px;font-weight:900;color:var(--muted)}.badge-card.current{border:2px solid var(--blue);background:#f4faff}.badge-card.current .badge-status{color:var(--blue)}.badges-note{margin:17px 2px;color:var(--muted);font-size:13px;line-height:1.5}
