/* Touch controls grow within their existing slots; board geometry stays fixed. */
:root{--control-height:clamp(44px,6dvh,56px);--control-type:clamp(16px,4.2vw,20px)}
button{touch-action:manipulation;overflow-wrap:break-word}
.primary,.secondary{min-height:var(--control-height);font-size:var(--control-type);line-height:1.15;white-space:normal}
.text-button{min-height:38px;line-height:1.3}
.modal-card{width:min(100%,460px);padding:clamp(12px,3.5vw,20px);gap:12px}
.modal-card h2{font-size:clamp(25px,7vw,32px)}
.modal-card input:not([type=checkbox]):not([type=range]),.modal-card select{min-height:44px;font-size:16px}
.modal-card button:focus-visible{outline:3px solid #7524ad;outline-offset:3px}
#homeScreen .top-actions .round{width:clamp(36px,9.6vw,44px);height:clamp(36px,9.6vw,44px);flex:none}
#appInfoBtn{position:relative;color:#fff8df;border:2px solid #fff7c6;background:radial-gradient(circle at 35% 15%,#dba3ff,#a35bd0 55%,#733297);box-shadow:inset 0 2px 2px #ffffff70,inset 0 -3px 0 #50266b66,0 3px 0 #8e4676,0 4px 8px #4b255833}
#appInfoBtn::before{content:"";position:absolute;top:4px;left:8px;right:8px;height:5px;border-radius:50%;background:#ffffff5c;pointer-events:none}
#appInfoBtn svg{width:25px;height:25px;stroke-width:2.4;filter:drop-shadow(0 1px 1px #512276)}
#homeScreen .community-dock button{min-height:clamp(50px,7.8dvh,70px);padding:4px 2px;font-size:clamp(10px,2.8vw,13px)}
#homeScreen .community-dock button span{font-size:inherit;line-height:1.15}
#homeScreen .community-dock img{width:clamp(29px,9vw,43px);height:clamp(27px,4.6dvh,40px)}
.bottom-nav button{min-width:0}.bottom-nav button span{font-size:clamp(10px,2.8vw,13px);line-height:1.15}
.community-card{gap:8px;width:min(100%,460px);padding:14px 12px}
.hub-heading h2{font-size:clamp(24px,6.8vw,31px)}
.hub-close,.account-close{width:40px;height:40px;min-width:40px;flex:none}
.hub-tabs{gap:5px;padding:4px 0}
.hub-tabs button{min-height:clamp(40px,5.5dvh,48px);font-size:clamp(12px,3.5vw,16px);line-height:1.15;padding:8px 3px;border:1px solid #fff7f4;border-radius:14px}
.hub-sync{font-size:11px!important;line-height:1.3!important;min-height:14px;color:#96718d;margin:0}.hub-sync:empty{display:none}.hub-sync.sync-error{color:#a5416c}
.hub-sync .text-button{font-size:12px;padding:3px 7px;min-height:32px;background:#f5dfef;border-radius:9px}
.hub-body h3{margin:7px 0 0;line-height:1.2}
.wallet-visibility{border:2px solid #fff;border-radius:15px;padding:11px;background:linear-gradient(120deg,#e9fff3,#f7edf9)}
.wallet-visibility span{font-size:14px}.wallet-visibility small{font-size:11px;line-height:1.3}.wallet-visibility input{width:24px;height:24px;accent-color:#37aa85}
.wallet-hero{padding:12px;gap:3px}.wallet-hero img{width:45px;height:45px}.wallet-hero small{font-size:12px}.wallet-hero strong{font-size:clamp(31px,9vw,43px)}
.hub-body .wallet-friends{display:grid;grid-template-columns:43px minmax(0,1fr) 20px;gap:9px;align-items:center;min-height:68px;padding:9px 12px;text-align:left;background:linear-gradient(#d9f6ff,#88c9ee);border:2px solid white;box-shadow:inset 0 -3px #3b8db040,0 3px 0 #83b3d0;color:#335a89}
.wallet-friends img{width:43px;height:43px;object-fit:contain}.wallet-friends span{min-width:0}.wallet-friends b{display:block;font-size:18px;line-height:1.15}.wallet-friends small{display:block;font:800 12px/1.3 Nunito,sans-serif;margin-top:3px}.wallet-friends>span:last-child{font-size:31px;text-align:center}
.gift-fields{grid-template-columns:minmax(0,1fr) minmax(74px,27%);gap:8px}.gift-fields label{min-width:0}.gift-fields select{min-width:0;width:100%;text-overflow:ellipsis}
.credit-boosters{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px}.credit-boosters button{min-width:0;padding:9px 3px;border-radius:17px;min-height:104px}.credit-boosters img{width:43px;height:44px}.credit-boosters b{font-size:clamp(12px,3.5vw,15px)}.credit-boosters small{font-size:clamp(10px,2.8vw,12px);line-height:1.25}
.credit-packs{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.credit-packs .credit-pack{position:relative;overflow:hidden;gap:3px;min-height:208px;padding:10px 6px;border:2px solid #fff4c7;border-radius:22px;background:radial-gradient(ellipse at 50% 32%,#fff6c8,#fff1e3 58%,#f8d5eb);box-shadow:inset 0 0 0 1px #f5c49e,0 3px 0 #cf95ac40}
.credit-packs .credit-pack:disabled{opacity:1;cursor:default}
.credit-packs .tier-3,.credit-packs .tier-4{background:radial-gradient(ellipse at 50% 30%,#fff2c5,#ffdfec 60%,#e2d6fb)}
.credit-packs .tier-5,.credit-packs .tier-6{border-color:#ffe29b;background:radial-gradient(ellipse at 50% 30%,#fbe8ff,#eac6f3 60%,#d7c5fa);box-shadow:inset 0 0 0 1px #ce92d9,0 3px 0 #ad75ca40}
.pack-title{font:900 clamp(11px,3.2vw,14px)/1.2 Nunito,sans-serif;color:#7d3c72;text-align:center;min-height:17px}
/* One clean money illustration forms six increasingly substantial packs. */
.credit-pack-art{position:relative;display:block;width:110px;max-width:100%;height:88px;background:none;filter:none;isolation:isolate}
.credit-packs .credit-pack-art .pack-cash{position:absolute;display:block;width:64px;height:46px;max-width:none;object-fit:contain;filter:drop-shadow(0 2px 1px #194c3620)}
.bundle-tier-1 .cash-1{width:91px!important;height:66px!important;left:calc(50% - 45.5px);bottom:8px}
.bundle-tier-2 .cash-1{left:1px;bottom:7px;z-index:2}.bundle-tier-2 .cash-2{right:1px;bottom:25px;z-index:1}
.bundle-tier-3 .cash-1,.bundle-tier-4 .cash-1,.bundle-tier-5 .cash-1,.bundle-tier-6 .cash-1{left:0;bottom:1px;z-index:6}
.bundle-tier-3 .cash-2,.bundle-tier-4 .cash-2,.bundle-tier-5 .cash-2,.bundle-tier-6 .cash-2{right:0;bottom:1px;z-index:5}
.bundle-tier-3 .cash-3{left:calc(50% - 32px);bottom:27px;z-index:2}
.bundle-tier-4 .cash-3{left:0;bottom:27px;z-index:2}.bundle-tier-4 .cash-4{right:0;bottom:27px;z-index:1}
.bundle-tier-5 .cash-3,.bundle-tier-6 .cash-3{left:calc(50% - 32px);bottom:14px;z-index:4}
.bundle-tier-5 .cash-4,.bundle-tier-6 .cash-4{left:0;bottom:34px;z-index:2}.bundle-tier-5 .cash-5,.bundle-tier-6 .cash-5{right:0;bottom:34px;z-index:1}
.bundle-tier-6 .cash-6{left:calc(50% - 32px);bottom:47px;z-index:0}

.credit-packs strong{font-size:clamp(23px,6.2vw,29px);color:#935127}.credit-packs .pack-label{font-size:12px;line-height:1}.credit-packs .pack-price{font-size:20px;line-height:1.15;color:#823c77}.credit-packs .pack-state{font-size:10px;line-height:1.2;color:#775874;border-radius:9px;background:#ffffffa3;padding:3px 6px;margin-top:3px}
#gameScreen .game-stats{flex:none;width:clamp(94px,26vw,113px);height:40px;min-width:0;padding:3px 5px;border:2px solid #fff6dc;border-radius:14px;display:grid;align-content:center;gap:2px;background:linear-gradient(#fff9e8,#ffe2ee);box-shadow:0 2px 0 #99618340;color:#75406b}
#gameScreen .game-stats .game-score{display:flex;justify-content:space-between;align-items:center;gap:3px;border:0;border-radius:0;background:none;min-width:0;max-width:none;padding:0;font:900 10px/1.1 Nunito,sans-serif;overflow:visible}
#gameScreen .game-stats .game-score b{display:inline;font:900 14px/1.1 Nunito,sans-serif}
.game-credit-line{display:flex;align-items:center;justify-content:space-between;gap:2px;font:900 9px/1.1 Nunito,sans-serif;white-space:nowrap;min-width:0}.game-credit-line img{width:14px;height:14px;object-fit:contain}.game-credit-line b{font:1000 13px/1.1 Nunito,sans-serif;color:#a46a25;min-width:0}.large-balance .game-credit-line b{font-size:11px}
.large-balance .game-credit-line>span{display:none}
#gameScreen .game-topbar .game-level-copy{flex:1;min-width:0}.game-level-copy b{white-space:nowrap}#gameScreen .game-topbar>.game-brand{flex-basis:40px}.game-brand img{width:40px;height:30px}
#gameScreen .round.mini{width:34px;height:34px;min-width:34px;flex:none}#gameScreen .game-topbar>.home-return{width:34px;min-width:34px}
.provider-section{display:grid;gap:8px}.provider-heading{font:900 18px/1.2 'Baloo 2',sans-serif;color:#874576;text-align:left;margin:4px 0 0}
.recovery-sign-in{display:grid;grid-template-columns:30px minmax(0,1fr) 16px;align-items:center;gap:9px;text-align:left;width:100%;padding:10px 12px;border-radius:18px;min-height:62px;color:#fff;box-shadow:inset 0 2px #ffffff60,inset 0 -3px #08755250,0 3px 0 #26876455;background:linear-gradient(#57c5ad,#209c88);border:2px solid #e6fff3}
.recovery-sign-in svg{width:28px;height:28px;stroke:currentColor;stroke-width:1.8;fill:none}.recovery-sign-in b{display:block;font:900 18px/1.2 'Baloo 2',sans-serif}.recovery-sign-in small{display:block;font:800 11px/1.35 Nunito,sans-serif;margin-top:2px}
.account-providers{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.account-providers .provider-button{display:grid;justify-items:center;align-content:center;gap:5px;min-width:0;min-height:93px;padding:10px 5px;border:2px solid #fff;border-radius:18px;background:linear-gradient(#fffefa,#f6eef8);color:#51404e;box-shadow:inset 0 -2px #bfb0c22a,0 2px 4px #68396718;opacity:1;font-size:13px;line-height:1.15}
.provider-icon{width:27px;height:27px;display:grid;place-items:center;color:#a55098}.provider-icon svg{width:27px;height:27px;display:block}.provider-name{font-weight:900;text-align:center;font-size:clamp(12px,3.3vw,15px)}.provider-status{background:#eee2f1;color:#815678;border-radius:8px;padding:3px 7px;font:800 10px/1.15 Nunito,sans-serif}.provider-button:not(:disabled) .provider-status{background:#ddf8e8;color:#277a5b}.provider-button:not(:disabled){border-color:#aadbb9}
.account-providers .provider-button:disabled{opacity:1}
.account-card .auth-note{font-size:12px;line-height:1.4;padding:8px 10px;background:#f9eef6;border-radius:12px;margin:0;color:#895a7e}.account-tabs button{min-height:44px;font-size:17px}.account-return{gap:5px}.account-return img{width:72px;height:66px}.account-return b{font-size:21px}.account-return p{font-size:14px}.account-card .friend-form{gap:9px}.account-card .recovery-actions{gap:7px}
@media(max-width:360px){.credit-packs{gap:8px}.credit-packs .credit-pack{min-height:196px}.wallet-friends b{font-size:16px}.wallet-friends small{font-size:11px}.hub-body{gap:9px}}
@media(max-height:600px){#gameScreen .game-stats{height:34px;padding:2px 5px;gap:1px}#gameScreen .round.mini{height:32px;width:32px;min-width:32px}#gameScreen .game-stats .game-score b{font-size:12px}.game-credit-line b{font-size:12px}#homeScreen .community-dock button{min-height:49px}#homeScreen{gap:3px}#homeScreen .home-logo{height:52px}#homeScreen .home-mascot{height:64px}#homeScreen .play-button{min-height:44px}.primary,.secondary{min-height:44px}}
@media(orientation:landscape) and (max-height:600px){#gameScreen .game-topbar{gap:3px}#gameScreen .game-stats{width:89px}#gameScreen .round.mini,#gameScreen .game-topbar>.home-return{width:28px;min-width:28px;height:30px}#gameScreen .game-level-copy b{font-size:11px}}

.hub-body .wallet-friends{color:#284e70;text-shadow:none;-webkit-text-stroke:0}
.hub-body .wallet-friends b{font:900 18px/1.3 Nunito,sans-serif;letter-spacing:0;text-shadow:none;filter:none;-webkit-text-stroke:0}
.hub-body .wallet-friends small{font:800 12px/1.4 Nunito,sans-serif;color:#3f6483;text-shadow:none;filter:none;-webkit-text-stroke:0}
.wallet-hero img{width:68px;height:45px;object-fit:contain;filter:none}
#homeScreen .community-dock [data-hub=wallet] img{width:clamp(36px,11vw,49px);object-fit:contain}
.credit-packs .credit-pack{background:radial-gradient(ellipse at 50% 28%,#f4f8d9,#f8f0e2 57%,#f3dfe9)}
.credit-packs .tier-3,.credit-packs .tier-4{background:radial-gradient(ellipse at 50% 28%,#e6f4d6,#efe8e2 60%,#e7d6f0)}
.credit-packs .tier-5,.credit-packs .tier-6{background:radial-gradient(ellipse at 50% 25%,#dcf0dc,#e9d8f1 60%,#d5c5e7);border-color:#e8c980}
@media(max-width:360px){.hub-body .wallet-friends b{font-size:16px}.hub-body .wallet-friends small{font-size:11px}}
