*{box-sizing:border-box}html{background:#102b33}body{margin:0;color:#f0fff7;font:16px -apple-system,BlinkMacSystemFont,system-ui,sans-serif;background:#102b33;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);-webkit-tap-highlight-color:transparent}main{width:min(100%,480px);margin:auto;padding:12px 14px}header{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:12px}.logo{font-size:19px;font-weight:900;letter-spacing:.3px}select{font:inherit;font-size:13px;padding:9px 7px;border-radius:10px;color:#eafff1;background:#20414b;border:1px solid #47717a;max-width:135px}button{font:inherit;font-size:14px;font-weight:750;cursor:pointer;border:1px solid #3c7373;background:#20464d;color:#eafff1;border-radius:12px;min-height:48px;padding:10px 12px;touch-action:manipulation}button:disabled{opacity:.4}button:focus-visible,select:focus-visible{outline:3px solid #ffc779;outline-offset:2px}.primary{background:#a9f0b4;color:#12312e;border-color:#a9f0b4}.scores{display:flex;align-items:center;justify-content:space-between;margin:0 4px 12px}.scores span{display:block;font-size:12px;color:#a4c6c6}.scores strong{font-size:26px;font-variant-numeric:tabular-nums}#combo{color:#ffc779;font-size:14px;font-weight:800}.challenge{max-width:420px;margin:0 auto 12px;font-size:12px;display:flex;justify-content:space-between;flex-wrap:wrap;color:#b7dccb;gap:6px}.challenge>div{width:100%;height:5px;background:#30595e;border-radius:4px;overflow:hidden}.challenge i{display:block;height:5px;background:#a9f0b4;width:0;transition:width .2s}.stage{position:relative;width:min(100%,420px,calc((100vh - 270px)*.714));width:min(100%,420px,calc((100svh - 270px)*.714));min-width:220px;max-width:100%;margin:auto;border:2px solid #548481;border-radius:20px;overflow:hidden;background:#183d44}canvas{width:100%;height:auto;aspect-ratio:5/7;display:block;touch-action:none;-webkit-user-select:none;user-select:none}.cover{position:absolute;inset:0;background:#16393cf2;display:grid;place-items:center;text-align:center;padding:20px}.cover>div{max-width:300px}.cover .fruit{font-size:50px}.cover h1{font-size:28px;line-height:1.15;margin:12px 0}.cover p{font-size:14px;color:#c3ded7;line-height:1.55;margin:12px 0 18px}.cover .primary{font-size:16px;padding:14px 28px}#warning{position:absolute;top:11%;left:0;width:100%;pointer-events:none;text-align:center;color:#ffb6b8;font-size:12px;font-weight:750}.buttons{display:flex;justify-content:center;gap:8px;margin-top:12px}.buttons button{flex:1;max-width:150px;min-width:0;padding:8px;font-size:13px}#hint{font-size:13px;color:#b3cfc9;line-height:1.5;text-align:center;margin:10px 0}details{font-size:13px;line-height:1.6;color:#a6c3be;margin-top:12px}summary{cursor:pointer}html[dir=rtl] canvas{direction:ltr}.hidden{display:none!important}@media(min-width:600px){main{padding-top:24px}.stage{width:360px;max-width:100%}.cover h1{font-size:32px}}@media(max-height:680px){main{padding-top:8px}header{margin-bottom:8px}.scores{margin-bottom:8px}.scores strong{font-size:22px}.challenge{margin-bottom:8px}.stage{width:min(100%,calc((100vh - 225px)*.714));width:min(100%,calc((100svh - 225px)*.714))}.cover .fruit{font-size:35px}.cover h1{font-size:23px}.cover p{font-size:12px}.cover .primary{padding:10px 20px}.buttons{margin-top:8px}}

.objective{max-width:420px;margin:0 auto 9px;display:flex;justify-content:space-between;align-items:center;font-size:16px;font-weight:800;color:#e0f6c5}.objective>span:last-child{font-size:24px}.challenge{font-size:11px;opacity:.7;margin-bottom:8px}.challenge>div{height:3px}.challenge i{height:3px}.stage{width:min(100%,420px,calc((100vh - 300px)*.714));width:min(100%,420px,calc((100svh - 300px)*.714))}@media(max-height:680px){.objective{margin-bottom:5px;font-size:14px}.stage{width:min(100%,calc((100vh - 252px)*.714));width:min(100%,calc((100svh - 252px)*.714))}}@media(min-width:600px){.stage{width:360px}}

.buttons button{font-size:12px;padding:8px 5px}#auto{border-color:#a9f0b4}
body{background:radial-gradient(ellipse at top,#254e49,#10262d 65%)}header{flex-wrap:wrap}.logo{color:#f4d99a;font-size:17px}#hubButton{min-height:40px;width:42px;padding:4px}#rewardbar{border:1px solid #7b8459;border-radius:18px;padding:14px 16px;margin-bottom:12px;background:linear-gradient(115deg,#355649,#3a4440);display:flex;justify-content:space-between;flex-wrap:wrap;gap:8px}#rewardbar small{display:block;color:#efdb9b;font-size:10px;letter-spacing:1px}#rewardbar strong{display:block;font-size:28px;color:#ffe5a8;font-variant-numeric:tabular-nums}#rewardbar em{font-size:12px;font-style:normal}#rewardbar button{min-height:38px;align-self:center;color:#ffe5a8}#rewardbar p{margin:0;width:100%;font-size:11px;color:#c7d3c6}#rewardnav{display:flex;gap:8px;margin:18px 0}#rewardnav button{flex:1;font-size:18px;background:#193b3e}#rewardnav span{display:block;font-size:10px;margin-top:4px}.stage{width:min(100%,360px);min-width:0}dialog{color:#e9f3ec;background:linear-gradient(145deg,#20383d,#13282e);border:1px solid #57716b;border-radius:24px;padding:20px;width:min(94vw,470px);max-height:88dvh;overflow-y:auto;overscroll-behavior:contain;box-shadow:0 24px 100px #0009}dialog::backdrop{background:#031219b8;backdrop-filter:blur(6px)}.dialog-head{display:flex;align-items:center;gap:10px;margin-bottom:18px}.dialog-head h2{font-size:21px;flex:1;margin:0}.dialog-head button{border-radius:50%;min-height:38px;width:38px;padding:0;font-size:23px}.reward-card{background:linear-gradient(115deg,#29463f,#1b3438);border:1px solid #526b59;padding:16px;border-radius:16px;margin:12px 0}.reward-card h3{font-size:14px;color:#ead39b;margin:0 0 10px}.hero-balance{font-size:34px;color:#ffe5a8}.hero-balance small{font-size:13px}.demo-note{font-size:12px;color:#bdceca;line-height:1.6;border-left:3px solid #ddb975;padding:8px 10px;background:#102b3055}.menu-row{width:100%;display:flex;align-items:center;text-align:start;gap:14px;padding:14px;margin:9px 0;background:linear-gradient(110deg,#2b4941,#1b3339)}.menu-row i{font-style:normal;color:#f3d28a;background:#49604a66;width:40px;height:40px;display:grid;place-items:center;border-radius:12px;font-size:22px}.menu-row span{flex:1}.menu-row small,.fruit-row small{display:block;font-weight:400;color:#adc4bf;font-size:11px;margin-top:5px}.fruit-row{display:flex;justify-content:space-between;align-items:center;padding:12px 4px;border-bottom:1px solid #395356;font-size:14px}.fruit-row>span:first-child{font-size:24px}.fruit-row b{font-size:14px;color:#f0d697}.fruit-row>span:last-child{text-align:end}#rewardContent p{font-size:13px;line-height:1.6}#rewardContent input{width:100%;border:1px solid #567871;background:#10282e;border-radius:10px;padding:14px;color:#eff8f1;font:inherit;min-width:0;margin:8px 0}#rewardContent label{display:block;font-size:13px;color:#c1d4cb}.wide{width:100%;margin-top:8px}.amount-row{display:flex;align-items:center;gap:8px}#rewardToast{position:fixed;bottom:calc(28px + env(safe-area-inset-bottom));left:50%;transform:translateX(-50%) translateY(15px);opacity:0;pointer-events:none;background:#eee0b8;color:#163735;border-radius:30px;padding:12px 20px;font-size:13px;font-weight:700;z-index:20;transition:.2s;white-space:nowrap}#rewardToast.visible{opacity:1;transform:translateX(-50%)}.empty{text-align:center;padding:28px 0}button:disabled{cursor:default}@media(max-width:360px){main{padding:10px}.logo{font-size:15px}header select{max-width:110px}dialog{padding:15px}.buttons{flex-wrap:wrap}.buttons button{flex-basis:40%}}
.sound-row{display:flex;align-items:center;justify-content:space-between;margin:10px 0}.sound-row button{min-width:72px;border-radius:24px;color:#f7df9d}#rewardContent input[type=range]{padding:0;accent-color:#e7bf70;min-height:30px;border:0;background:transparent}#rewardContent .reward-card small{font-size:11px;color:#acbfb6}.reward-card input{font-size:14px!important}.reward-card input:focus{outline:2px solid #e7bf70}
.submission-success{text-align:center;font-size:20px!important;font-weight:800;color:#adf1bf;background:#284c3a;padding:16px;border:1px solid #6da477;border-radius:14px}#requestWallet{max-width:100%;width:100%;margin-top:10px}#selectedWalletAddress{overflow-wrap:anywhere}
/* Compact mobile game layout; preserve canvas proportions and touch mapping. */
main{padding:10px 12px}header{flex-wrap:nowrap;gap:8px;margin-bottom:8px}header select{min-width:0;max-width:120px}.logo{white-space:nowrap}#rewardbar{padding:10px 12px;gap:4px;margin-bottom:8px;border-radius:14px}#rewardbar strong{font-size:24px}#rewardbar p{font-size:10px}.scores{margin:0 3px 6px}.scores strong{font-size:22px}.scores span{font-size:10px}.objective{margin-bottom:5px;font-size:14px}.objective>span:last-child{font-size:21px}.challenge{margin-bottom:6px;gap:4px}.stage{width:min(100%,300px);border-radius:16px}.cover{padding:14px}.cover .fruit{font-size:36px}.cover h1{font-size:24px;margin:8px 0}.cover p{font-size:13px;margin:8px 0 12px}.cover .primary{min-height:44px;padding:10px 22px}.buttons{margin-top:8px;gap:6px;flex-wrap:nowrap}.buttons button{flex:1;flex-basis:auto;min-height:44px;padding:7px 4px;font-size:11px}#hint{font-size:12px;line-height:1.4;margin:6px 0}main>details{margin-top:6px;font-size:12px}#rewardnav{gap:6px;margin:10px 0 4px}#rewardnav button{padding:6px;min-height:44px;font-size:16px}#rewardnav span{margin-top:2px}@media(max-height:700px){.stage{width:min(100%,260px)}.cover h1{font-size:22px}.cover .fruit{font-size:30px}}@media(max-width:360px){header select{max-width:100px}.logo{font-size:14px}main{padding:8px 10px}}
/* Home controls are consolidated in the top-right menu. */
main>.objective,main>.challenge,main>details,#rewardnav{display:none}.stage{width:min(100%,360px)}@media(max-height:700px){.stage{width:min(100%,320px)}}
/* A compact balance card with a clear numeric hierarchy. */
#rewardbar{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;background:linear-gradient(120deg,#325448,#253f3b);border:1px solid #728661;padding:11px 14px;column-gap:12px;row-gap:5px;border-radius:16px;box-shadow:0 5px 18px #051d2326}#rewardbar small{font-size:11px;letter-spacing:.2px;color:#d7ddc1}#rewardbar strong{font-size:30px;line-height:1.15;letter-spacing:-.6px;color:#ffe6aa}#rewardbar em{font-size:15px;font-weight:700;margin-left:3px}#rewardbar button{min-height:44px;padding:8px 14px;border-radius:12px;background:#1c4448;border-color:#537e75;font-size:13px;white-space:nowrap}#rewardbar p{grid-column:1/-1;font-size:11px;line-height:1.4;color:#bcd2c5}#rewardbar p b{color:#e8d49e}.scores{padding:2px 5px;margin-bottom:7px}.scores>div:last-child{text-align:end}.scores span{font-size:10px}.scores strong{font-size:21px;line-height:1.15}.scores #combo{font-size:12px}@media(max-width:360px){#rewardbar{padding:9px 11px}#rewardbar strong{font-size:27px}#rewardbar button{padding:8px 11px}}
main>.scores{display:none}#rewardbar{grid-template-columns:minmax(0,1.1fr) minmax(0,1.2fr) auto;column-gap:9px}#rewardbar .card-scores{display:grid;grid-template-columns:1fr 1fr;gap:9px;border-left:1px solid #91ad8a45;padding-left:10px;min-width:0}#rewardbar .card-scores span{display:block;color:#bcd2c5;font-size:10px;line-height:1.4}#rewardbar .card-scores b{display:block;color:#f0f5dc;font-size:17px;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}#rewardbar strong{font-size:27px}#rewardbar button{padding:8px 10px}#rewardbar p{grid-column:1/-1}@media(max-width:360px){#rewardbar{padding:9px;column-gap:6px}#rewardbar strong{font-size:24px}#rewardbar .card-scores{padding-left:7px;gap:6px}#rewardbar .card-scores b{font-size:15px}#rewardbar button{font-size:12px;padding:7px;min-height:44px}}
html,body{overflow-x:hidden;overscroll-behavior-x:none}html.game-locked{height:100%;overflow:hidden;overscroll-behavior:none}html.game-locked body{position:fixed;inset:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none;touch-action:none}html.game-locked main{height:100%;height:var(--play-height,100svh);padding-top:8px;padding-bottom:calc(8px + env(safe-area-inset-bottom));overflow:hidden}html.game-locked .stage{width:min(100%,360px,calc((var(--play-height,100svh) - 210px - env(safe-area-inset-top) - env(safe-area-inset-bottom))* .7142857));min-width:0}html.game-locked #rewardDialog{touch-action:pan-y;overscroll-behavior:contain;-webkit-overflow-scrolling:touch}html.game-locked #rewardContent input[type=range]{touch-action:pan-x}html.game-locked header,html.game-locked .buttons{flex-shrink:0}html.game-locked #hint{font-size:11px}
html.game-locked .stage{width:min(100%,var(--board-width,320px));max-width:440px}html.game-locked main{max-width:500px} @media(orientation:landscape) and (max-height:500px){html.game-locked main{max-width:760px;display:grid;grid-template-columns:minmax(0,1fr) minmax(140px,1fr);gap:6px 16px;align-content:start}html.game-locked header{grid-column:1;margin-bottom:0}html.game-locked #rewardbar{grid-column:1;margin-bottom:0}html.game-locked .stage{grid-column:2;grid-row:1/5;width:min(100%,calc((var(--play-height,100svh) - 24px - env(safe-area-inset-top) - env(safe-area-inset-bottom))* .7142857));justify-self:center}html.game-locked .buttons{grid-column:1;margin-top:0}html.game-locked #hint{grid-column:1;margin:0}}
/* Wider iPhone playfield, with an independently fitted canvas height. */
@media(orientation:portrait){main,html.game-locked main{width:100%;max-width:500px;padding-left:max(5px,env(safe-area-inset-left));padding-right:max(5px,env(safe-area-inset-right))}.stage,html.game-locked .stage{width:100%;max-width:500px;border-radius:14px}header{padding:0 4px;margin-bottom:5px}#rewardbar{margin-bottom:5px;padding-top:8px;padding-bottom:8px}#rewardbar p{line-height:1.2}.buttons{margin-top:5px}#hint{margin:4px 0}}
@media(min-height:501px){main,html.game-locked main{width:min(100%,500px);padding-left:5px;padding-right:5px}.stage,html.game-locked .stage{width:100%;max-width:500px}}
