/* Explicit geometry avoids Safari's native button padding and flex shrink. */
.icon-button,.collection-sound{padding:0;min-width:44px;min-height:44px;flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;line-height:1;appearance:none;-webkit-appearance:none}
.icon-button>.icon,.collection-sound>.icon{display:block;flex:none;width:24px;height:24px;margin:0}
.nav-actions{flex-shrink:0}

/* Reserve real rows for the home actions and footer at tablet sizes. */
@media(min-width:701px) and (min-height:621px){
 #home-screen{display:grid;grid-template-columns:minmax(300px,.85fr) minmax(0,1.3fr);grid-template-rows:minmax(0,1fr) auto;column-gap:4%;row-gap:24px;padding:calc(96px + var(--safe-top)) 7% calc(54px + var(--safe-bottom))}
 #home-screen .home-copy{position:static;grid-column:1;grid-row:1;align-self:center;width:100%;max-width:390px;text-align:left}
 #home-screen .wordmark{width:clamp(220px,28vh,320px);max-width:100%;margin:0 0 18px}
 #home-screen .home-copy h2{font-size:clamp(29px,3vw,38px);margin-bottom:10px}
 #home-screen .home-copy>p{font-size:17px}
 #home-screen .home-buttons{position:static;transform:none;display:grid;grid-template-columns:1fr 1fr;gap:10px;left:auto;bottom:auto;width:100%;margin-top:20px}
 #home-screen .home-buttons>.primary-button,#home-screen .home-buttons>.secondary-button{min-width:0;padding:12px 10px;font-size:18px;gap:7px}
 #home-screen .home-world-button{grid-column:1/-1;min-height:44px;margin:0;padding:8px 12px;background:#064c6cdd;border-radius:12px;text-shadow:none;justify-content:flex-start}
 #home-screen .selected-label{position:static;margin-top:10px;font-size:13px}
 #home-screen .home-shark{position:static;grid-column:2;grid-row:1;align-self:center;width:100%;height:100%;max-height:540px;min-height:0}
 #home-screen .home-away{position:static;grid-column:1/-1;grid-row:2;width:min(490px,calc(100% - 245px));max-width:490px;padding:14px 18px;gap:12px}
 #home-screen .home-away strong{font-size:16px}
 #home-screen .home-away p{font-size:13px}
 .home-offline{right:7%;bottom:calc(54px + var(--safe-bottom));max-width:225px}
}
@media(min-width:701px) and (min-height:621px) and (max-height:800px){
 #home-screen{padding-top:calc(88px + var(--safe-top));row-gap:18px}
 #home-screen .wordmark{width:240px;margin-bottom:14px}
 #home-screen .home-copy h2{font-size:30px}
 #home-screen .home-buttons{margin-top:14px}
}
@media(max-height:500px) and (orientation:landscape){
 #home-screen .wordmark{width:140px;margin-bottom:8px}
 #home-screen .home-copy h2{font-size:20px}
 #home-screen .home-copy>p{font-size:13px}
 #home-screen .home-buttons{gap:6px;margin-top:10px}
 #home-screen .home-world-button{min-height:44px}
}

/* Coin spending is discoverable without scrolling through the shark roster. */
.collection-customise{display:flex;align-items:center;gap:20px;margin:0 0 28px}
.collection-customise>.secondary-button{width:auto;min-height:48px;padding:11px 18px;font-size:17px;flex:none}
.collection-customise>p{font-size:15px;line-height:1.45;color:#dbf6f4;max-width:38ch}
.shark-trading-card .character-tabs{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px;border:0;margin:0 0 18px;padding:4px;background:#dfece4;border-radius:12px}
.shark-trading-card .character-tabs button{min-width:0;min-height:44px;padding:8px 4px;border:0;border-radius:8px;font-size:14px;color:#275b66}
.shark-trading-card .character-tabs button[aria-pressed="true"]{border:0;background:#0e7184;color:#fff9e7;box-shadow:0 2px 5px #134a5a30}
.shark-trading-card .detail-intro{font-size:14px;line-height:1.45;margin:8px 0 20px;color:#4c6d76}
.shark-trading-card .cosmetic-option{min-height:48px}
@media(max-width:700px){.collection-customise{align-items:flex-start;flex-direction:column;gap:10px;margin-bottom:24px}.collection-customise>p{font-size:14px;max-width:32ch}}
@media(max-width:719px){#shop-root>.collection-header{position:sticky;top:0;z-index:4}}
