:root{--ink:#182f3b;--deep:#173f3b;--muted:#728389;--teal:#187c71;--teal-dark:#12695e;--teal-soft:#e5f4ed;--orange:#ed9b48;--pale:#f7f6f0;--edge:#e8e8df;--white:#fff;--yellow:#ffeecb;--radius:22px;--shadow:0 16px 35px rgba(28,65,57,.055)}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;background:var(--pale);color:var(--ink);font-family:system-ui,-apple-system,Segoe UI,sans-serif;line-height:1.4;overscroll-behavior-y:contain}button{font:inherit;cursor:pointer}button:focus-visible,[role=button]:focus-visible{outline:3px solid #46bfb5;outline-offset:3px}button:disabled{cursor:not-allowed;opacity:.48}p,h1,h2,h3{margin:0}h1,h2,h3{font-family:system-ui,-apple-system,Segoe UI,sans-serif}button,div{-webkit-tap-highlight-color:transparent}.app-shell{max-width:1180px;margin:auto;padding:0 30px 20px}.topbar{height:86px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e9e7de}.brand{display:flex;align-items:center;gap:10px;white-space:nowrap}.brand-icon{height:41px;width:41px;background:#e0f0e8;border-radius:14px;display:grid;place-items:center;box-shadow:inset 0 -3px 0 #c8e2d5}.brand-icon span{font-size:23px}.brand-name{display:flex;align-items:baseline;gap:3px;font-family:system-ui,-apple-system,Segoe UI,sans-serif;letter-spacing:-.8px;font-size:22px}.brand-name span{font-weight:700;color:#305c50}.brand-name strong{font-weight:900;color:#173f3b}.brand-edition{font-size:9px;font-weight:800;letter-spacing:1.1px;color:var(--teal);padding:6px 8px;background:#e3f1eb;border:1px solid #cae4d8;border-radius:5px;margin-left:5px}.topbar-right{display:flex;align-items:center;gap:9px}.resource-pill{height:38px;display:flex;align-items:center;gap:7px;background:white;border:1px solid var(--edge);border-radius:11px;padding:5px 9px;box-shadow:0 2px 4px rgba(42,52,51,.02);font-size:13px}.resource-pill strong{font-variant-numeric:tabular-nums;font-weight:800}.resource-icon{width:23px;height:23px;display:grid;place-items:center;border-radius:50%;font-size:13px}.coin-icon{background:#ffda77;color:#89590a;border:2px solid #eab94b}.energy-icon{background:#e7f6d8;color:#5d9d45}.plus-round{border:0;border-radius:6px;background:#eaf5ef;color:#207b67;font-size:19px;font-weight:800;height:23px;line-height:20px;width:24px}.icon-btn{border:1px solid var(--edge);border-radius:10px;height:38px;width:38px;background:white;color:#41625b;font-size:18px;font-weight:800}.help-btn{font-family:Nunito;font-size:15px}.intro{display:flex;justify-content:space-between;gap:25px;align-items:end;padding:38px 0 30px}.eyebrow,.section-eyebrow{font-weight:800;letter-spacing:1.5px;font-size:10px;color:var(--teal);text-transform:uppercase}.eyebrow{display:flex;align-items:center;gap:7px}.pulse-dot{display:inline-block;height:7px;width:7px;background:#f2aa61;border-radius:50%;box-shadow:0 0 0 4px #fdebd4}.intro h1{font-family:system-ui,-apple-system,Segoe UI,sans-serif;font-weight:900;font-size:clamp(33px,4vw,54px);letter-spacing:-1.7px;line-height:1.09;margin-top:13px}.intro h1 em{font-style:normal;color:#e69b4f}.intro p{color:var(--muted);font-size:14px;margin-top:12px;max-width:480px}.level-panel{background:white;border:1px solid var(--edge);border-radius:16px;box-shadow:var(--shadow);padding:15px 17px;display:flex;align-items:center;gap:12px;min-width:275px;margin-bottom:3px}.level-icon{display:grid;place-items:center;width:47px;height:47px;border-radius:12px;background:#fbebc5;font-size:25px}.level-stats{flex:1}.level-heading{display:flex;align-items:center;justify-content:space-between;gap:13px;margin-bottom:9px}.level-heading span{font-size:10px;letter-spacing:1.2px;font-weight:800;color:#49665f}.level-heading strong{font-size:12px;font-weight:800;color:#e29c40}.xp-rail{height:8px;background:#e6eee8;border-radius:20px;overflow:hidden}.xp-fill{height:100%;width:0;border-radius:20px;background:linear-gradient(90deg,#57c7a6,#188876);transition:width .4s}.level-stats small{display:block;font-size:10px;color:#8b9896;margin-top:6px}.view-tabs{display:flex;gap:9px;margin-bottom:18px}.tab{border:1px solid var(--edge);border-radius:11px;background:white;padding:11px 20px;color:#72817b;font-size:13px;font-weight:800;display:flex;gap:9px;align-items:center;transition:all .2s}.tab.active{background:#206f65;border-color:#206f65;color:white;box-shadow:0 6px 12px #206f6525}.tab:hover:not(.active){background:#f0f6f2}.tab-badge{border-radius:10px;background:#e9f2ee;color:#57746a;font-size:10px;padding:2px 6px}.tab.active .tab-badge{background:#ffffff29;color:white}.view{display:none}.view.active{display:block}.play-layout{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(345px,.95fr);align-items:start;gap:20px}.panel{background:white;border:1px solid var(--edge);border-radius:var(--radius);box-shadow:var(--shadow)}.board-card{padding:22px}.panel-header{display:flex;justify-content:space-between;align-items:start;gap:12px;margin-bottom:20px}.panel-header h2{font-size:21px;letter-spacing:-.55px;margin:5px 0 4px}.panel-header p{color:var(--muted);font-size:12px;line-height:1.5}.pill{border-radius:20px;padding:8px 11px;font-size:10px;font-weight:800;white-space:nowrap}.pill-cream{background:#f6f2e8;color:#958061}.board-frame{position:relative;background:linear-gradient(140deg,#e7f1d9,#d7ebd1 85%);border:1px solid #cce1bf;border-radius:19px;padding:14px;overflow:hidden}.board-decor{position:absolute;border-radius:50%;background:#ffffff30;pointer-events:none}.board-decor-one{width:200px;height:200px;left:-150px;top:-95px}.board-decor-two{width:160px;height:160px;right:-100px;bottom:-70px}.board{position:relative;z-index:1;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px;touch-action:pan-y;user-select:none}.cell{aspect-ratio:1;min-width:0;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#fff9;border:2px dashed #bad4b3;border-radius:12px;transition:transform .16s,border-color .14s,background-color .14s;touch-action:none;user-select:none}.cell.empty:hover{background:#fffe;border-color:#89bba6}.cell.occupied{background:linear-gradient(160deg,#fffef8,#f9f7e9);border:2px solid #ffffff;box-shadow:0 4px 0 #9fc49469,0 6px 14px #3a683819}.cell.occupied:hover{transform:translateY(-2px)}.cell.selected{border:3px solid #e6a543;background:#fff5da;box-shadow:0 0 0 3px #fff5c0,0 8px 10px #77652b30;transform:scale(1.04);z-index:2}.cell.valid-merge{border-color:#56b5a2}.cell.recent-merge{animation:pop .42s ease}.cell-icon{font-size:clamp(20px,3.3vw,40px);line-height:1.1;filter:drop-shadow(0 3px 2px #644a2721)}.cell-name{font-size:clamp(7px,.9vw,10px);line-height:1.15;font-weight:800;text-align:center;color:#627269;max-width:96%;margin-top:4px}.tier-star{position:absolute;right:5px;top:4px;display:grid;place-items:center;border-radius:7px;background:#e1f1e6;color:#39876e;font-size:9px;font-weight:900;min-width:17px;height:16px}.cell[data-tier="4"],.cell[data-tier="5"]{background:linear-gradient(145deg,#fffcee,#fff0d6)}.cell[data-tier="6"],.cell[data-tier="7"]{background:linear-gradient(145deg,#fff6d9,#f8dffe)}.board-status{min-height:46px;display:flex;align-items:center;gap:9px;font-size:12px;color:#688077}.status-star{color:#d9a54b;font-size:17px}.action-row{display:flex;gap:10px}.btn{border:0;border-radius:12px;display:inline-flex;align-items:center;justify-content:center;gap:10px;font-weight:800;transition:transform .15s,box-shadow .15s,background-color .15s;min-height:45px}.btn:active:not(:disabled){transform:translateY(2px)}.btn-primary{background:#208577;color:#fff;box-shadow:0 4px 0 #16685d}.btn-primary:hover:not(:disabled){background:#197b6e}.btn-outline{background:#f6f7f3;border:1px solid #e4e8df;color:#436c60}.btn-outline:hover:not(:disabled){background:#e9f3e9}.spawn-btn{flex:1;justify-content:start;text-align:left;padding:8px 15px}.spawn-btn .btn-spark{background:#ffffff30;border-radius:10px;display:grid;place-items:center;width:33px;height:33px;font-size:20px}.spawn-btn span:nth-child(2){display:flex;flex-direction:column}.spawn-btn strong{font-size:13px;line-height:1.2}.spawn-btn small{font-size:10px;color:#ddf5e8;font-weight:500;margin-top:3px}.btn-arrow{margin-left:auto;font-size:20px}.small-action{min-width:125px;padding:8px 10px;font-size:23px}.small-action span:nth-child(2){display:flex;flex-direction:column;text-align:left}.small-action strong{font-size:12px}.small-action small{color:#8ca09a;font-size:10px;margin-top:3px}.side-stack{display:grid;gap:16px}.orders-card{padding:23px 22px 20px}.order-header{margin-bottom:13px}.orders-illustration{background:#fff2e7;border-radius:16px;width:55px;height:53px;display:grid;place-items:center;font-size:28px}.orders-list{display:grid;gap:10px}.order-row{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid #f0eee9;border-radius:13px;background:#fcfcf9;min-height:87px}.order-item{width:56px;height:56px;flex:0 0 56px;display:grid;place-items:center;position:relative;font-size:28px;background:#f3f3df;border-radius:13px}.order-item .order-count{position:absolute;bottom:-3px;right:-3px;font-size:10px;background:#305e4a;color:white;border:2px solid white;border-radius:7px;padding:3px 6px}.order-details{flex:1;min-width:0}.order-details h3{font-size:14px;letter-spacing:-.3px}.order-details p{font-size:10px;color:#86918b;margin-top:3px}.order-reward{font-size:11px;font-weight:800;color:#ac7d2b;margin-top:6px}.fill-order{font-size:11px;padding:9px 12px;border:0;border-radius:9px;background:#e8f3e9;color:#217662;font-weight:800;white-space:nowrap}.fill-order.ready{background:#238779;color:white;box-shadow:0 3px 0 #196d5f}.fill-order:disabled{background:#f0f2ee;color:#a3ada3;opacity:1}.tips-row{display:flex;align-items:center;gap:10px;padding-top:14px;margin-top:13px;border-top:1px solid #f0f0e9;color:#87988e;font-size:11px}.tips-row span{background:#fff1cf;border-radius:8px;padding:7px}.next-unlock-card{padding:17px;display:flex;align-items:center;gap:13px}.unlock-icon{height:54px;flex:0 0 54px;border-radius:13px;background:#fef0d7;display:grid;place-items:center;font-size:29px}.unlock-info{flex:1}.unlock-info h3{font-size:15px;margin-top:5px}.unlock-info p{font-size:10px;color:#8a9690;margin-top:4px;line-height:1.4}.btn-mini{background:#e8f2e9;color:#257566;border-radius:9px;padding:10px 10px;font-size:11px;white-space:nowrap}.page-footer{display:flex;justify-content:space-between;gap:12px;padding:25px 1px 6px;color:#a4aaa0;font-size:9px;font-weight:800;letter-spacing:1px}.page-footer i{color:#e3a961;font-style:normal}.page-footer span:last-child{font-size:10px;font-weight:500;letter-spacing:.1px}.town-header{display:flex;justify-content:space-between;align-items:center;padding:25px;gap:15px}.town-header h2{font-size:26px;margin:7px 0}.town-header p{font-size:13px;color:var(--muted);max-width:540px;line-height:1.6}.town-art{font-size:65px;filter:drop-shadow(0 5px 7px #8b776626)}.town-grid{margin-top:18px;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.town-shop{padding:22px;position:relative;overflow:hidden;display:flex;gap:15px;align-items:center;min-height:152px}.town-shop.open{background:#f6fbf8;border-color:#bedfd2}.shop-icon{height:86px;width:86px;flex:0 0 86px;display:grid;place-items:center;border-radius:17px;background:#fff5e1;font-size:49px}.town-shop.open .shop-icon{background:#d9f2e3}.shop-copy{flex:1}.shop-copy h3{font-size:19px;margin:5px 0}.shop-copy p{font-size:12px;color:var(--muted);line-height:1.5}.shop-price{display:flex;align-items:center;gap:10px;margin-top:12px}.shop-price button{padding:9px 12px;border-radius:8px;background:#278b78;color:white;border:0;font-size:11px;font-weight:800}.shop-price span{font-size:11px;font-weight:800;color:#b17e31}.shop-open-chip{font-size:11px;font-weight:800;color:#2b8c72;margin-top:13px}.town-footer{margin-top:16px;padding:18px 22px;display:flex;align-items:center;gap:15px;font-size:12px}.town-footer span{color:var(--muted)}.rewards-layout{display:grid;grid-template-columns:1fr 1.15fr;gap:17px}.daily-card{text-align:center;padding:30px 24px}.daily-art{height:112px;display:grid;place-items:center;position:relative;font-size:79px}.daily-art span{position:absolute;top:0;right:32%;font-size:28px;color:#edbd5a}.daily-card h2{font-size:25px;margin:10px 0}.daily-card p{font-size:13px;color:var(--muted)}.daily-loot{display:flex;justify-content:center;gap:10px;margin:22px 0}.daily-loot span{background:#faf4e3;color:#9d792f;border:1px solid #f7eacc;padding:11px 15px;border-radius:11px;font-size:13px;font-weight:800}.daily-card .btn{padding:13px 24px}.daily-card small{font-size:11px;color:#8c9b94;display:block;margin-top:16px}.stats-card{padding:26px}.stats-card h2{font-size:25px;margin:6px 0 18px}.stats-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.stat{background:#f6f8f4;border-radius:12px;padding:15px}.stat span{display:block;font-size:9px;font-weight:800;color:#899b90;letter-spacing:.7px}.stat strong{display:block;font-family:Nunito;font-size:26px;margin-top:6px}.recent-wrap{margin-top:21px}.recent-wrap h3{font-size:15px;margin-bottom:10px}.recent-list{display:grid;gap:8px}.recent-row{display:flex;align-items:center;justify-content:space-between;font-size:12px;color:#647870;border-bottom:1px solid #f3f3ec;padding:5px 0 10px}.recent-row small{color:#9da9a1}.share-btn{width:100%;margin-top:20px}.dialog-overlay{position:fixed;z-index:30;inset:0;display:grid;place-items:center;padding:18px}.dialog-overlay.hidden{display:none}.dialog-backdrop{position:absolute;inset:0;background:#1b352fc2;backdrop-filter:blur(5px)}.dialog{width:min(460px,100%);max-height:min(86vh,800px);overflow:auto;position:relative;padding:28px;z-index:1;box-shadow:0 35px 70px #13281b58}.dialog-close{position:absolute;right:13px;top:10px;background:#f1f3ed;border:0;border-radius:10px;width:31px;height:31px;font-size:25px;color:#647b70;line-height:1}.dialog-hero{text-align:center;font-size:60px;margin:12px 0 5px}.dialog h2{text-align:center;font-size:25px;margin-bottom:9px}.dialog-intro{text-align:center;font-size:13px;color:var(--muted);line-height:1.6}.steps{display:grid;gap:10px;margin:20px 0}.step{display:flex;align-items:center;gap:13px;padding:10px;background:#f7f9f5;border-radius:13px}.step-icon{flex:0 0 43px;height:43px;border-radius:10px;background:#e0f1e6;display:grid;place-items:center;font-size:22px}.step strong{font-size:12px}.step p{font-size:11px;color:var(--muted);margin-top:3px}.dialog-bottom{width:100%;min-height:47px;padding:12px}.shop-items{margin-top:20px;display:grid;gap:9px}.shop-item{display:flex;align-items:center;gap:13px;padding:13px;border:1px solid #edf0e8;border-radius:12px}.shop-item-icon{height:44px;width:44px;display:grid;place-items:center;border-radius:11px;background:#fff3d7;font-size:24px}.shop-item-main{flex:1}.shop-item-main strong{font-size:13px}.shop-item-main p{font-size:11px;color:var(--muted);margin-top:3px}.shop-item button{border:0;background:#e3f3e8;color:#277660;border-radius:9px;padding:9px 11px;font-size:11px;font-weight:800}.shop-item button:disabled{background:#f0f0f0;color:#9ba7a1}.locked-shop{padding:17px;border:1px dashed #e3e7de;background:#f8f9f6;border-radius:12px;margin-top:14px}.locked-shop h3{font-size:14px}.locked-shop p{font-size:11px;color:var(--muted);margin-top:6px}.locked-shop .tag{background:#e8ece7;padding:5px 8px;border-radius:8px;font-size:9px;font-weight:800;color:#8a9a92;display:inline-block;margin-top:10px}.toast{position:fixed;bottom:24px;left:50%;transform:translate(-50%,20px);padding:12px 17px;border-radius:12px;background:#173f37;color:white;font-size:13px;font-weight:700;box-shadow:0 8px 30px #1b352d40;z-index:40;opacity:0;pointer-events:none;transition:opacity .18s,transform .18s;text-align:center;max-width:calc(100% - 24px)}.toast.show{opacity:1;transform:translate(-50%,0)}.confetti-layer{position:fixed;inset:0;pointer-events:none;z-index:25;overflow:hidden}.confetti{position:absolute;top:-30px;width:10px;height:13px;border-radius:2px;animation:confetti 1.6s ease-in forwards}.pop-number{position:fixed;font-size:19px;font-weight:900;color:#cc8e31;z-index:16;pointer-events:none;animation:floater 1s ease-out forwards;text-shadow:0 1px white}.muted{color:var(--muted)}
@keyframes pop{0%{transform:scale(.85)}55%{transform:scale(1.12)}100%{transform:scale(1)}}@keyframes confetti{0%{transform:translateY(-30px) rotate(0);opacity:1}100%{transform:translateY(105vh) rotate(650deg);opacity:0}}@keyframes floater{0%{transform:translateY(0);opacity:0}20%{opacity:1}100%{transform:translateY(-65px);opacity:0}}
@media (max-width:950px){.app-shell{padding:0 20px 20px}.play-layout{grid-template-columns:minmax(0,1fr) minmax(330px,.9fr);gap:14px}.board-card{padding:15px}.orders-card{padding:16px}.order-row{padding:9px;gap:8px}.order-item{height:45px;width:45px;flex-basis:45px}.order-details h3{font-size:12px}.fill-order{padding:7px 8px}.cell-name{font-size:8px}.board{gap:6px}.town-shop{padding:15px}.town-grid{gap:10px}}
@media (max-width:760px){.app-shell{padding:0 14px 13px}.topbar{height:68px}.brand-icon{height:35px;width:35px;border-radius:11px}.brand-icon span{font-size:20px}.brand-name{font-size:19px}.brand-edition{display:none}.topbar-right{gap:6px}.resource-pill{padding:5px 7px;gap:4px;height:33px;font-size:12px}.resource-icon{height:21px;width:21px}.icon-btn{height:33px;width:33px}.topbar-right #soundButton{display:none}.intro{padding:24px 0 18px;align-items:start;flex-direction:column;gap:18px}.intro h1{font-size:39px;margin-top:10px}.intro p{font-size:12px;line-height:1.5;margin-top:9px}.level-panel{width:100%;max-width:none;margin:0;padding:10px 12px;min-width:0}.level-icon{height:38px;width:38px;font-size:20px}.level-heading{margin-bottom:6px}.view-tabs{margin-bottom:13px;gap:6px;justify-content:space-between}.tab{flex:1;justify-content:center;padding:10px 6px;border-radius:10px;font-size:12px;gap:6px}.tab-badge{display:none}.play-layout{grid-template-columns:minmax(0,1fr);gap:14px}.board-card{padding:13px}.board-frame{padding:10px}.board{gap:6px}.cell{border-radius:9px}.cell-icon{font-size:clamp(23px,6.3vw,35px)}.cell-name{font-size:8px;margin-top:2px}.tier-star{font-size:8px;min-width:14px;height:14px;top:3px;right:3px}.panel-header{margin-bottom:14px}.panel-header h2{font-size:19px}.side-stack{gap:13px}.orders-card{padding:16px}.order-header{margin-bottom:11px}.order-row{padding:12px}.order-item{height:52px;width:52px;flex-basis:52px}.order-details h3{font-size:13px}.fill-order{padding:10px}.town-grid{grid-template-columns:minmax(0,1fr)}.town-header{padding:18px}.town-header h2{font-size:22px}.town-art{font-size:45px}.rewards-layout{grid-template-columns:1fr;gap:12px}.page-footer{flex-direction:column;align-items:center;gap:3px;text-align:center;padding:25px 0 10px}.next-unlock-card{flex-wrap:wrap}.next-unlock-card .btn-mini{margin-left:auto}.town-shop{min-height:120px}.shop-icon{width:75px;height:75px;flex-basis:75px;font-size:42px}}
@media (max-width:390px){.app-shell{padding:0 9px 10px}.brand-name{font-size:17px}.brand{gap:6px}.brand-icon{width:31px;height:31px}.topbar-right{gap:4px}.resource-pill{font-size:11px;padding:4px}.resource-icon{width:18px;height:18px;font-size:11px}.icon-btn{width:29px;height:31px}.intro h1{font-size:34px}.board{gap:5px}.board-frame{padding:7px}.cell-icon{font-size:23px}.board-card{padding:10px}.cell-name{font-size:7px}.spawn-btn{padding:7px 10px}.small-action{min-width:103px}.board-status{font-size:11px}.panel-header h2{font-size:18px}.daily-card{padding:19px}}
@media (prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
