@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Fredoka:wght@400;500;600;700&display=swap');
:root{--ink:#43263f;--pink:#ed508e;--paper:#fff9f3}*{box-sizing:border-box}body{margin:0;background:var(--paper);color:var(--ink);font-family:'DM Sans',sans-serif}.masthead{max-width:1320px;margin:auto;padding:24px 42px;display:flex;align-items:center;justify-content:space-between}.wordmark{display:flex;align-items:center;gap:10px;color:var(--ink);text-decoration:none;font-family:Fredoka,'Trebuchet MS',sans-serif;font-size:27px;font-weight:600;letter-spacing:-1px}.mark{display:grid;place-items:center;width:33px;height:33px;border-radius:10px;background:var(--pink);color:white;font-size:26px;transform:rotate(-8deg)}.edition{margin-left:18px;font:600 9px 'DM Sans',sans-serif;letter-spacing:1.7px;border-left:1px solid #decfce;padding-left:22px}.tools{display:flex;gap:10px}button{font:inherit;cursor:pointer;color:inherit;touch-action:manipulation}button:focus-visible,a:focus-visible{outline:3px solid #773fec;outline-offset:4px}.tools button{border:1px solid #e8d9d6;border-radius:50%;background:transparent;min-width:36px;height:36px;font-size:22px}.tools #sound{border-radius:25px;padding:0 13px;display:flex;align-items:center;gap:8px}.tools span{font-size:11px;font-weight:600}main{max-width:1320px;margin:auto;padding:0 42px}.chapter{display:flex;justify-content:space-between;font-size:10px;letter-spacing:1.6px;font-weight:700;padding:18px 2px}.chapter i{display:inline-block;width:7px;height:7px;background:var(--pink);border-radius:50%;margin-right:8px}.chapter b{color:#d2bcbc;margin:0 9px}.chapter #best{color:#917785;letter-spacing:1px}#game{height:min(69vh,710px);min-height:430px;position:relative;border:2px solid #583147;border-radius:23px;overflow:hidden;background:#ffc3dc;box-shadow:0 7px 0 #e9d7cd;isolation:isolate}canvas{width:100%;height:100%;display:block;touch-action:none}.hud{position:absolute;top:25px;left:27px;right:27px;display:flex;justify-content:space-between;pointer-events:none}.stat{background:#fffaf5;min-width:79px;border-radius:16px;padding:12px 18px;box-shadow:0 3px 0 #dba9bd;display:flex;flex-direction:column;align-items:center}.stat span{font-size:9px;letter-spacing:1.5px;font-weight:700}.stat strong{font-family:Fredoka,sans-serif;font-size:32px;font-weight:600;color:#f26a60;line-height:1.1}.score strong{color:#9262dc}.right-hud{display:flex;gap:12px;align-items:start}#pause{pointer-events:auto;width:44px;height:44px;border-radius:50%;border:1px solid #e0aa2f;background:#ffda57;box-shadow:0 3px 0 #dda333;font-size:22px;font-weight:bold}#lives{position:absolute;right:86px;top:112px;letter-spacing:4px;color:#e94080;font-size:22px}.objective{position:absolute;bottom:25px;left:50%;transform:translateX(-50%);width:240px;max-width:70%;pointer-events:none}.objective>div:first-child{display:flex;align-items:center;justify-content:space-between;gap:15px;font-size:8px;font-weight:700;letter-spacing:.7px;margin-bottom:8px}.objective b{font-size:11px;white-space:nowrap}.track{height:10px;border-radius:12px;background:#fff8e9;border:2px solid #fff8e9;box-shadow:0 2px 0 #78b34f;overflow:hidden}#progress{height:100%;width:0;background:#ed508e;border-radius:10px;transition:width .3s}.overlay{position:absolute;inset:0;display:grid;place-items:center;background:#ffc3dc35;backdrop-filter:blur(2px);z-index:3}.overlay.hidden{display:none}.menu{text-align:center;max-width:460px;padding:28px 30px 25px;border:1px solid #fff5ecb0;border-radius:27px;background:#fff9f0ee;box-shadow:0 10px 0 #ad587418,0 25px 70px #8b4b6e18;margin:20px}.kicker{font-size:9px;letter-spacing:2.4px;font-weight:700;color:#be647e}h1{font-family:Fredoka,'Trebuchet MS',sans-serif;font-weight:600;font-size:clamp(35px,4.4vw,57px);line-height:1.04;letter-spacing:-1.8px;margin:16px 0}h1 em{font-style:normal;color:var(--pink)}.menu p{font-size:13px;line-height:1.8;color:#8d6c7b;margin:0 0 22px}.primary{display:block;border:1px solid #ba3367;border-radius:13px;padding:14px 24px;background:var(--pink);color:white;box-shadow:0 4px 0 #b83769;font-weight:700;font-size:16px;width:100%;transition:transform .15s}.primary:hover{transform:translateY(-2px)}.primary:active{transform:translateY(3px);box-shadow:0 1px 0 #b83769}.primary span{margin-left:50px}.secondary{border:0;background:none;font-size:12px;font-weight:600;padding:17px 20px 10px;color:#9b6479}.menu-hint{font-size:8px;letter-spacing:1.7px;color:#b1969c;margin-top:13px}#announcement{position:absolute;top:33%;width:100%;text-align:center;font-family:Fredoka,sans-serif;font-size:30px;font-weight:600;pointer-events:none;color:#fffaf0;text-shadow:0 3px #b6547f;transition:opacity .15s}footer{display:flex;align-items:center;justify-content:space-between;padding:24px 2px;color:#947780;font-size:11px}.key{display:inline-block;border:1px solid #d9c7c3;border-bottom-width:2px;border-radius:5px;padding:3px 6px;font-size:8px;margin-right:5px}.divider{margin:0 12px;color:#d1b9bd}footer em{font-family:Georgia,serif;color:#c86b8b;font-size:15px}.spark{color:#eb6d97;font-size:20px;margin-left:10px}#game:fullscreen{height:100vh;width:100vw;border:0;border-radius:0}.hidden{display:none!important}@media(max-width:650px){.masthead{padding:19px 18px}.wordmark{font-size:23px}.edition{display:none}main{padding:0 12px}.chapter{font-size:8px;letter-spacing:1px;padding:12px 3px}.chapter #best{font-size:8px}#game{height:calc(100svh - 174px);min-height:400px;border-radius:18px}.hud{top:17px;left:17px;right:17px}.stat{min-width:60px;padding:10px 12px}.stat strong{font-size:27px}#pause{width:38px;height:38px}#lives{right:65px;top:98px;font-size:19px}.menu{padding:25px 22px;max-width:340px}h1{font-size:43px}.objective{bottom:21px}footer{font-size:9px;padding:20px 3px}footer>span:last-child{font-size:0}footer em{font-size:13px}.divider{margin:0 5px}.tools span{display:none}.tools #sound{width:36px;padding:0;justify-content:center}}
.tools .village-button{border-radius:22px;padding:0 12px;gap:6px;display:flex;align-items:center;font-size:21px;background:#fff0f4;border-color:#e7b6c9}.village-button b{display:grid;place-items:center;min-width:19px;height:19px;font:600 10px 'DM Sans',sans-serif;background:#ed508e;color:white;border-radius:50%}.delivery-badge{position:absolute;left:50%;top:104px;transform:translateX(-50%);padding:8px 13px;border-radius:15px;background:#fff1bc;border:1px solid #dfbc63;font-size:9px;letter-spacing:1px;font-weight:700;white-space:nowrap}.delivery-menu{max-width:435px}.delivery-menu h1{font-size:47px}.choice{width:100%;border:1px solid #ddc9cb;background:#fffaf3;border-radius:14px;text-align:left;padding:14px;display:flex;gap:13px;align-items:center;margin-top:10px;transition:transform .15s,box-shadow .15s}.choice:hover{transform:translateY(-2px);box-shadow:0 4px 0 #e9d4cc}.choice.special{background:#fff0b9;border-color:#d3ad56}.choice-icon{font-size:24px;color:#bb7f32;min-width:28px;text-align:center}.choice strong{display:block;font-family:Fredoka,sans-serif;font-size:19px;font-weight:500}.choice small{display:block;font-size:10px;line-height:1.6;color:#94727d;margin-top:4px}.choice b{margin-left:auto}.village{position:absolute;inset:0;background:#fff9f0;z-index:5;overflow:auto;padding:27px 32px 22px;display:flex;flex-direction:column;gap:18px}.village-heading{display:flex;align-items:flex-start;justify-content:space-between}.village h1{font-size:43px;margin:8px 0}.village-heading p{font-size:12px;color:#977380;margin:0}.close-button{border:1px solid #dfc9c7;border-radius:50%;width:34px;height:34px;background:#fff8f0;font-size:15px;flex-shrink:0}.skyline{display:flex;gap:16px;overflow-x:auto;flex-shrink:0;padding:8px 3px 14px;min-height:232px;scrollbar-color:#ed94b4 #f5e6df;scrollbar-width:thin}.home-card{position:relative;flex:0 0 205px;border:1px solid #e9cfd2;border-radius:18px;padding:12px;background:#ffe7ef;text-align:center}.home-card:nth-child(3n+2){background:#e8f0dc}.home-card:nth-child(3n){background:#eee6f9}.house-number{position:absolute;top:12px;left:13px;font-size:9px;letter-spacing:1px;color:#a7778d}.home-picture{height:143px;position:relative;display:flex;align-items:flex-end;justify-content:center;padding-bottom:14px}.mini-tower{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center}.mini-block{height:19px;border:1.5px solid #874e72;border-radius:5px;position:relative;box-shadow:inset 0 3px #ffffff55}.mini-face{display:block;font-size:12px;line-height:15px;font-weight:700;color:#43263f}.cloud-base{width:135px;height:22px;background:#fffaf5;position:absolute;bottom:1px;border-radius:50%;box-shadow:-16px -3px 0 -4px #fffaf5,20px -4px 0 -3px #fffaf5}.star-roof{height:22px;font-size:23px;color:#dc9a23;line-height:21px;filter:drop-shadow(0 1px 0 #fff)}.home-card h2{font:500 18px Fredoka,sans-serif;margin:9px 0 4px}.home-owner{font-size:10px;color:#967184;margin:0 0 7px}.home-detail{font-size:9px;color:#a16d80}.empty-village{width:100%;border:1px dashed #e0b9c8;border-radius:18px;text-align:center;padding:20px;background:linear-gradient(180deg,#ffe8f1,#fff5ea);display:flex;flex-direction:column;align-items:center;justify-content:center}.empty-icon{font-size:46px;color:#df80a3}.empty-village strong{font:500 24px Fredoka,sans-serif}.empty-village p{font-size:12px;color:#977380;max-width:300px}.residents-label{font-size:9px;font-weight:700;letter-spacing:1.5px;margin-bottom:10px}.residents-label>span{float:right;font-size:9px;letter-spacing:0;font-weight:400;color:#9a7c86}.resident-list{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.resident-card{border:1px solid #e8d4cf;border-radius:13px;padding:12px;display:flex;gap:10px;align-items:flex-start;background:#fffcf7}.resident-icon{width:34px;height:34px;display:grid;place-items:center;flex-shrink:0;border-radius:10px;color:white;font-size:24px}.resident-card strong{font-family:Fredoka,sans-serif;font-size:17px;font-weight:500;display:block}.resident-card small{font-size:9px;color:#ac7a8e}.resident-card p{font-size:10px;line-height:1.5;color:#927d85;margin:6px 0 0}.resident-status{font-size:8px;color:#bb6f8a;white-space:nowrap;margin-left:auto}.resident-card.locked{background:#f6efe8}.resident-card.locked .resident-icon{filter:grayscale(.7);opacity:.55}.village-bottom{margin-top:auto;display:flex;gap:15px;align-items:center;justify-content:space-between}.village-bottom>span{font-size:10px;color:#a07d87}.village-bottom .primary{width:auto;padding:12px 19px;font-size:13px;white-space:nowrap}.objective{background:#f9ffebdb;padding:10px 13px;border-radius:14px;width:270px}.objective .track{box-shadow:none}.objective>div:first-child{font-size:7px}@media(max-width:650px){.tools{gap:6px}.tools .village-button{padding:0 9px;min-width:52px}.tools .village-button span{display:none}.wordmark{gap:7px;font-size:21px}.mark{width:29px;height:29px}.masthead{padding:18px 13px}.delivery-menu{padding:23px 17px;margin:14px}.delivery-menu h1{font-size:40px}.delivery-menu p{font-size:12px;margin-bottom:16px}.choice{padding:12px 10px;gap:9px}.choice strong{font-size:18px}.choice small{font-size:9px}.delivery-badge{top:114px;font-size:7px;padding:7px 10px}.village{padding:22px 17px;gap:17px}.village .kicker{font-size:7px;letter-spacing:1.4px}.village h1{font-size:35px}.village-heading p{font-size:10px;line-height:1.7}.home-card{flex-basis:185px}.resident-list{grid-template-columns:1fr;gap:7px}.resident-card{padding:10px}.resident-card p{margin-top:3px}.residents-label>span{display:block;float:none;margin-top:6px}.village-bottom{align-items:stretch;flex-direction:column;padding-bottom:3px;gap:12px}.village-bottom>span{font-size:9px}.village-bottom .primary{width:100%}.skyline{min-height:222px}.objective{max-width:77%;bottom:16px}}
.rescue-status{font-size:10px;color:#b36b86;margin-top:14px;line-height:1.5}.rescue-heart{display:grid;place-items:center;width:52px;height:52px;background:#ffe0eb;border:1px solid #f5bbd1;border-radius:18px;color:#ed508e;font-size:33px;margin:0 auto 17px;transform:rotate(-7deg);box-shadow:0 4px 0 #f4c0d2}.rescue-menu{max-width:425px}.rescue-menu h1{font-size:48px}.rescue-menu .menu-hint{line-height:1.8;font-size:7px;letter-spacing:1.2px}.rescue-menu p{font-size:12px;max-width:320px}.rescue-countdown{position:absolute;inset:0;z-index:4;background:#ffc3dc80;backdrop-filter:blur(2px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;pointer-events:none;color:#633348}.rescue-countdown>span:first-child{font-size:9px;font-weight:700;letter-spacing:2px}.rescue-countdown strong{font-family:Fredoka,sans-serif;font-size:105px;color:#fff9f0;text-shadow:0 5px #ce6895;line-height:1.15}.rescue-countdown>span:last-child{font-size:13px}.revived-label{position:absolute;top:143px;right:86px;font-size:8px;letter-spacing:1px;font-weight:700;color:#a54470;background:#fff5e9cc;border-radius:10px;padding:5px 8px;pointer-events:none}button:disabled{cursor:default;opacity:.55}@media(max-width:650px){.rescue-menu{padding:24px 21px}.rescue-menu h1{font-size:41px}.rescue-menu p{font-size:12px;line-height:1.7}.rescue-menu .kicker{font-size:8px;letter-spacing:1.6px}.revived-label{right:61px;top:126px;font-size:7px}.rescue-status{font-size:9px}}
.event-strip{width:100%;display:flex;align-items:center;gap:12px;border:1px solid #d9c78f;border-radius:13px;background:#fff0bc;padding:10px 16px;margin:0 0 15px;text-align:left;color:#45554a;box-shadow:0 3px 0 #f0e0b6}.event-flag{font:600 11px 'DM Sans',sans-serif;display:grid;place-items:center;background:#23795e;color:#fff8dd;border-radius:7px;width:32px;height:30px;border-bottom:4px solid #f1bd44}.event-strip strong{font:500 19px Fredoka,sans-serif;display:block;line-height:1}.event-strip small{font-size:10px;color:#8b835e;display:block;margin-top:4px}#event-status{margin-left:auto;font-size:9px;font-weight:700;letter-spacing:1px}.event-strip>b{font-size:20px;margin-left:6px}.event-strip:hover{background:#ffebb1}.taxi-menu{max-width:430px}.event-taxi{width:180px;height:78px;display:block;margin:9px auto 4px}.taxi-menu h1{font-size:43px;margin:8px 0 13px}.taxi-menu h1 em{color:#268269}.taxi-menu .kicker{color:#6a8a6d;font-size:8px;letter-spacing:1.7px}.taxi-menu p{font-size:12px;line-height:1.7;margin-bottom:12px}.taxi-menu .primary{background:#287d65;border-color:#1b5e4b;box-shadow:0 4px 0 #1b5e4b;font-size:14px}.route-details{font-size:10px;background:#ecf0dc;border-radius:9px;padding:9px;margin-bottom:15px;color:#5f7863}.taxi-menu .menu-hint{font-size:7px;line-height:1.8;letter-spacing:1px}.taxi-menu .secondary{color:#6d896c}#event-info{background:#b1d9c74d}.taxi-mode .objective{background:#fff6d9eb}.taxi-mode #progress{background:#287d65}.taxi-mode .stat strong{color:#b58425}.taxi-mode .score strong{color:#287d65}.taxi-mode .menu h1 em{color:#287d65}.taxi-mode .menu .primary{background:#287d65;border-color:#1b5e4b;box-shadow:0 4px 0 #1b5e4b}.taxi-mode .overlay{background:#c7dcb52b}.upgrade-home{display:block;width:100%;margin:10px 0 0;padding:7px 5px;font-size:9px;color:#8a5372;border:1px solid #dcb7ca;border-radius:8px;background:#fff8ed}.upgrade-home:hover{background:#fff}.home-decoration{font-size:8px;color:#8a5372;margin:3px 0 0}.home-maxed{display:block;font-size:8px;color:#8e7d68;margin-top:12px}.home-card{flex-basis:220px}.home-detail{display:block}.mini-block .mini-face{position:absolute;inset:0;display:grid;place-items:center;font-size:9px;line-height:1}.rank-reward{display:flex;align-items:center;gap:13px;padding:13px 16px;border:1px dashed #c9cbb4;border-radius:14px;background:#f1efde;flex-shrink:0}.rank-reward.earned{border:1px solid #a7c7ac;background:#e5f0df}.rank-taxi{width:86px;height:40px;flex-shrink:0;opacity:.5}.rank-reward.earned .rank-taxi{opacity:1}.rank-reward strong{font:500 17px Fredoka,sans-serif}.rank-reward p{font-size:10px;color:#7a886e;line-height:1.5;margin:4px 0 0}.rank-play{margin-left:auto;flex-shrink:0;border:1px solid #a5b79a;border-radius:8px;background:#fff7df;padding:8px;font-size:10px;color:#587a5e}.village .skyline{min-height:250px}.village{gap:15px}.home-picture{height:139px}.residents{flex-shrink:0}.village-bottom{flex-shrink:0}.taxi-mode #announcement{text-shadow:0 3px #648f76}.taxi-mode .menu .kicker{color:#748f6c}.taxi-mode .menu .secondary{color:#6d896c}#game{height:min(65vh,710px)}@media(max-width:650px){.event-strip{padding:9px 10px;gap:9px;margin-bottom:12px}.event-strip strong{font-size:17px}.event-strip small{font-size:8px}#event-status{font-size:7px;letter-spacing:.5px;max-width:100px;line-height:1.6}.event-strip>b{margin-left:0;font-size:17px}.event-flag{width:28px;height:29px;font-size:10px}#game{height:calc(100svh - 238px);min-height:420px}.taxi-menu{padding:21px 20px}.taxi-menu h1{font-size:37px}.event-taxi{width:147px;height:65px;margin:8px auto 2px}.taxi-menu p{font-size:11px}.taxi-menu .kicker{font-size:7px;letter-spacing:1px}.route-details{font-size:9px;padding:8px;margin-bottom:12px}.taxi-menu .primary{font-size:13px;padding:12px 16px}.taxi-menu .secondary{padding:13px 10px 5px}.taxi-menu .menu-hint{font-size:6px}.home-card{flex-basis:205px}.rank-reward{flex-wrap:wrap;gap:9px;padding:11px}.rank-taxi{width:70px}.rank-reward>div{flex:1}.rank-reward strong{font-size:15px}.rank-reward p{font-size:9px}.rank-play{margin-left:79px;padding:7px;font-size:9px}.home-picture{height:139px}.village .skyline{min-height:250px}}
.roof-scene{display:block;width:64px;height:24px;object-fit:contain}.home-picture{height:153px;padding-bottom:8px}.village-bottom{position:sticky;bottom:-22px;padding-top:12px;padding-bottom:10px;background:#fff9f0;border-top:1px solid #eee0d8;z-index:2}.village .home-card{min-height:270px}.village .skyline{min-height:286px}@media(max-width:650px){.village-bottom{bottom:-22px}.home-picture{height:153px}}
.taxi-menu{max-height:calc(100% - 24px);overflow-y:auto;margin:12px}
.rank-picker{text-align:left;margin:10px 0 12px}.rank-picker label{display:block;font-size:8px;font-weight:700;letter-spacing:1.4px;color:#6a8569;margin-bottom:7px}.rank-picker select{width:100%;font:500 13px 'DM Sans',sans-serif;color:#355c4a;background:#fffdf2;border:1px solid #bdcbb4;border-radius:9px;padding:10px 12px;cursor:pointer}.rank-picker select:focus-visible{outline:3px solid #68a087;outline-offset:2px}.rank-picker #rank-description{font-size:10px;line-height:1.5;color:#7b8b74;margin:6px 0 0}.taxi-menu .event-taxi{height:53px;width:135px;margin:6px auto}.taxi-menu h1{font-size:36px;margin:5px 0 10px}.taxi-menu>p{font-size:11px;line-height:1.6;margin-bottom:10px}.taxi-menu .route-details{margin-bottom:12px}.rank-reward,.rank-reward.earned{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:0;background:none;padding:0;gap:9px}.rank-collection-title{grid-column:1/-1;font-size:9px;font-weight:700;letter-spacing:1.4px;color:#7b796c}.rank-card{display:flex;align-items:center;gap:10px;border:1px dashed #c9cbb4;border-radius:12px;padding:11px;background:#f1efde}.rank-card.earned{border:1px solid #a7c7ac;background:#e5f0df}.rank-card .rank-taxi{width:64px;height:32px;opacity:.5}.rank-card.earned .rank-taxi{opacity:1}.rank-card strong{font-size:15px}.rank-card p{font-size:9px}.rank-card .rank-play{font-size:9px;padding:7px;margin-left:auto}.rank-card>div{flex:1}@media(max-width:650px){.rank-picker{margin:8px 0 10px}.rank-picker label{font-size:7px;margin-bottom:5px}.rank-picker select{font-size:12px;padding:8px 10px}.rank-picker #rank-description{font-size:9px}.taxi-menu .event-taxi{height:43px;width:110px}.taxi-menu h1{font-size:31px;margin:4px 0 8px}.taxi-menu>p{font-size:10px;margin-bottom:8px}.rank-reward,.rank-reward.earned{grid-template-columns:1fr}.rank-card{display:grid;grid-template-columns:64px 1fr;gap:6px 10px}.rank-card .rank-play{grid-column:2;margin:0;justify-self:start}.rank-card strong{font-size:14px}.rank-card .rank-taxi{grid-row:1/3}.rank-card p{font-size:9px}}
.event-taxi,.rank-taxi{image-rendering:auto}
