/* Illustrated glass cards: native labels retain localization and sharpness. */
#game .nav .nav-card{padding:0;border:0;border-radius:0;background-color:transparent;background-image:url('/assets/menu-glass-v14.png');background-size:200% 200%;background-repeat:no-repeat;box-shadow:none;overflow:visible;isolation:isolate;gap:0;aspect-ratio:1/1;height:auto;min-height:0;transform:none;filter:none}
#game .nav .nav-card:before,#game .nav .nav-card:after,#game .nav .nav-card>.icon{display:none}
#game .nav .nav-card[data-panel=airdrop]{background-position:0 0}#game .nav .nav-card[data-panel=friends]{background-position:100% 0}#game .nav .nav-card[data-panel=fish]{background-position:0 100%}#game .nav .nav-card[data-panel=tasks]{background-position:100% 100%}
#game .nav .nav-card>b{position:absolute;bottom:9%;left:3%;right:3%;font:800 clamp(9px,2.6vw,13px)/1.2 Arial,sans-serif;text-shadow:0 1px 2px #00264e,0 0 3px #003b68;color:#f4ffff;white-space:nowrap;text-align:center}
#game .nav .nav-card:active{transform:translateY(2px);filter:brightness(.95)}#game .nav .nav-card:focus-visible{outline:2px solid white!important;outline-offset:2px!important;border-radius:17px}
.ocean-avatar{display:inline-block;flex:0 0 auto;width:52px;height:52px;background:url('/assets/profile-avatars-v14.png') var(--ax) var(--ay)/300% 300% no-repeat;border-radius:50%;vertical-align:middle}
.profile>.ocean-avatar{width:70px;height:70px}.avatar-customize{margin:18px 0 22px}.avatar-customize h3{margin-bottom:4px}.avatar-customize>p{font-size:12px;margin:0 0 12px;color:#b5e4f4}.avatar-choices{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.avatar-choice{position:relative;display:flex;flex-direction:column;align-items:center;gap:3px;border:1px solid #64c7eb60;border-radius:14px;padding:7px 3px;background:linear-gradient(145deg,#0a6995,#034174);color:#d8f7ff}.avatar-choice .ocean-avatar{width:64px;height:64px}.avatar-choice small{font-size:10px;line-height:1.2}.avatar-choice.selected{border:2px solid #92f5ff;background:linear-gradient(#128ba8,#075785);padding:6px 2px;box-shadow:inset 0 0 14px #64ebff27}.avatar-choice i{position:absolute;right:4px;top:4px;background:#12b880;border:1px solid #c5ffe7;color:white;border-radius:50%;width:18px;height:18px;font:700 12px/17px Arial}
#sheet.ocean-leader-dialog{width:min(calc(100% - 18px),580px);max-height:94dvh;background:linear-gradient(#005c9c33,#002552c9),url('/assets/aquarium-background-v3.jpg') center/cover;border:1px solid #7fefff;border-radius:25px;box-shadow:inset 0 0 8px #52c9ff70,0 15px 55px #00142fbd}
.ocean-leader-dialog .sheet-head{padding:10px 38px 0;background:linear-gradient(#048cd49c,#0064a146);border:0}.ocean-leader-dialog .sheet-head .popup-logo{width:min(80%,310px);height:auto;max-height:100px;object-fit:contain;margin:auto}.ocean-leader-dialog #sheetTitle{font-size:clamp(23px,6vw,32px);font-weight:850;color:#e2fcff;text-shadow:0 2px #0167aa,0 4px 3px #002a67;margin:3px 0 0}.ocean-leader-dialog #sheetTitle:before{content:'🏆';margin-right:7px}.ocean-leader-dialog #closeSheet{top:11px;right:11px;width:33px;height:33px;background:#056090c9;border:1px solid #8ae6fa;color:white;box-shadow:none}.ocean-leader-dialog #sheetBody{padding:0 10px 12px;background:transparent}.ocean-rank-intro{text-align:center}.ocean-rank-intro h3{margin:4px 0;font-size:18px;color:#e5fcff}.ocean-rank-intro p{font-size:11px;line-height:1.4;color:#c2e5f4;margin:4px 0 0}
.ocean-podium{display:grid;grid-template-columns:1fr 1.13fr 1fr;gap:6px;align-items:end;margin:42px 3px 12px;padding-bottom:3px}.podium-place{position:relative;min-width:0;display:flex;align-items:center;flex-direction:column;justify-content:flex-end;min-height:173px;border-radius:18px;padding:19px 3px 12px;background:linear-gradient(155deg,#185986dd,#04356de9 60%,#002d51f0);border:1.5px solid #a5eaff;box-shadow:inset 0 1px 7px #83dcff8a,0 3px 9px #001f55a8}.podium-place.place-1{min-height:200px;border:2px solid #ffd66e;background:linear-gradient(145deg,#7a5c29eb,#133c60ed 53%,#002b4ef7);box-shadow:inset 0 0 12px #ffd65266,0 0 9px #ffe052a8}.podium-place.place-3{border-color:#e8ac88;background:linear-gradient(135deg,#80462ed9,#093a66ed 60%,#002c4deb);box-shadow:inset 0 0 10px #e6a07455}
.podium-crown{position:absolute;top:-31px;left:50%;transform:translateX(-50%);width:54px;height:50px;color:#bedef7;filter:drop-shadow(0 2px 2px #001e46)}.podium-crown svg{width:100%;height:100%}.podium-crown b{position:absolute;inset:13px 0 0;text-align:center;font-size:24px;color:white;text-shadow:0 2px 2px #385b7f}.place-1 .podium-crown{color:#ffc52c;width:63px;height:57px;top:-38px}.place-3 .podium-crown{color:#ce885e}.place-1 .podium-crown b{font-size:28px;top:15px}.podium-player{display:flex;flex-direction:column;align-items:center;max-width:100%;padding:0;background:none;color:#eafcff;border:0;gap:3px}.podium-player .ocean-avatar{width:70px;height:70px}.place-1 .ocean-avatar{width:83px;height:83px;border:2px solid #ffe183;box-shadow:0 0 9px #e9bb47a3}.place-2 .ocean-avatar{border:1px solid #def8ff}.place-3 .ocean-avatar{border:1px solid #e4b394}.podium-player strong{font-size:14px;overflow:hidden;text-overflow:ellipsis;max-width:100%;white-space:nowrap}.podium-coins{font-size:clamp(13px,3.6vw,21px);margin-top:4px;color:#f3e2c6;letter-spacing:-.5px;white-space:nowrap}.place-1 .podium-coins{color:#ffe48a}.podium-place>small{font-size:10px;color:#b8dded;margin-top:3px}
.ocean-rank-list{border:1px solid #82e1ff;border-radius:23px;padding:12px 10px 14px;background:linear-gradient(145deg,#05619fc9,#002753f0);box-shadow:inset 0 1px 7px #6edfff4a}.ocean-list-head{display:grid;grid-template-columns:30px 1fr 100px;gap:7px;align-items:center;font-size:11px;color:#b2d7eb;margin:0 4px 9px}.ocean-list-head span:last-child{text-align:right}.ocean-rank-row{display:grid;grid-template-columns:27px minmax(0,1fr) auto;align-items:center;gap:6px;border:1px solid #247bbb68;border-radius:14px;background:linear-gradient(100deg,#07578d9c,#003167bb);padding:4px 9px;margin-bottom:5px;min-height:43px}.ocean-rank-row>b{font-size:16px;color:#bbf5ff;text-align:center}.rank-player{display:flex;min-width:0;align-items:center;gap:6px;color:#cdf6ff;background:none;padding:0;text-align:left;border:0}.rank-player .ocean-avatar{width:37px;height:37px}.rank-player strong{font-size:11px;text-overflow:ellipsis;overflow:hidden;white-space:nowrap}.ocean-rank-row>span{display:flex;flex-direction:column;text-align:right;gap:3px}.ocean-rank-row>span b{font-size:12px;white-space:nowrap}.ocean-rank-row>span small{font-size:9px;color:#b2d7eb}.ocean-rank-row.own-rank{border-color:#7bd9eb;background:linear-gradient(110deg,#06677b,#064173);grid-template-columns:48px minmax(0,1fr) auto;margin:12px 0 0}.own-rank>b{font-size:10px;color:#ffeaaa}
@media(min-width:700px){#game .nav .nav-card>b{font-size:12px}.podium-player .ocean-avatar{width:90px;height:90px}.place-1 .ocean-avatar{width:108px;height:108px}.podium-place{min-height:199px}.podium-place.place-1{min-height:230px}.rank-player strong{font-size:13px}.ocean-rank-row>span b{font-size:14px}}
@media(max-width:360px){.ocean-podium{gap:4px}.podium-player .ocean-avatar{width:57px;height:57px}.place-1 .ocean-avatar{width:70px;height:70px}.podium-place{min-height:151px}.podium-place.place-1{min-height:174px}.podium-player strong{font-size:12px}.podium-coins{font-size:12px}.rank-player .ocean-avatar{width:30px;height:30px}.rank-player strong{font-size:10px}.ocean-rank-row{padding-inline:5px;gap:3px}.ocean-rank-row>span b{font-size:11px}}
/* Correct unequal artwork padding in the illustrated atlas. */
#game .nav .nav-card[data-panel=fish]{background-position:0 88%}
#game .nav .nav-card[data-panel=tasks]{background-position:100% 88%}
.ocean-avatar{position:relative;overflow:hidden;clip-path:circle(49% at 50% 50%);background-size:330% 330%;background-repeat:no-repeat;isolation:isolate;min-width:0}
#sheet.ocean-leader-dialog{height:min(90dvh,920px);max-height:90dvh}
#sheet.ocean-leader-dialog .sheet-head{padding:10px 38px 9px;flex:0 0 auto}
#sheet.ocean-leader-dialog .sheet-head .popup-logo{width:min(78%,260px);max-height:75px}
#sheet.ocean-leader-dialog #sheetBody{min-height:0;max-height:none;flex:1 1 0;overflow-y:auto;overscroll-behavior:contain;padding:0 10px 14px}
#sheet.ocean-leader-dialog .ocean-podium{margin-top:43px}
@media(max-height:700px){#sheet.ocean-leader-dialog .sheet-head .popup-logo{max-height:53px}#sheet.ocean-leader-dialog #sheetTitle{font-size:22px}}
/* Each button samples only its own rectangle, never a neighbouring sprite. */
:root{--ocean-nav-height:clamp(59px,calc((100vw - 40px)*.228),130px)}
#game .nav{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px;width:min(calc(100% - 20px),580px);height:var(--ocean-nav-height);left:50%;right:auto;transform:translateX(-50%);bottom:calc(12px + var(--safe));align-items:stretch}
#game .nav .nav-card{width:100%;height:100%;min-width:0;flex:none;aspect-ratio:auto;overflow:hidden;box-sizing:border-box;background-size:217.708333% 238.857143%;background-repeat:no-repeat;background-position:var(--crop-x) 10.288066%;border-radius:14px}
#game .nav .nav-card[data-panel=airdrop]{--crop-x:7.374631%;background-position:var(--crop-x) 10.288066%}
#game .nav .nav-card[data-panel=friends]{--crop-x:92.920354%;background-position:var(--crop-x) 10.288066%}
#game .nav .nav-card[data-panel=fish]{--crop-x:7.374631%;background-size:217.708333% 235.272045%;background-position:var(--crop-x) 86.68516%}
#game .nav .nav-card[data-panel=tasks]{--crop-x:92.920354%;background-size:217.708333% 235.272045%;background-position:var(--crop-x) 86.68516%}
#game .nav .nav-card>b{left:4%;right:4%;bottom:4%;height:24%;display:flex;align-items:center;justify-content:center;font-size:clamp(10px,2.8vw,16px);line-height:1.1;z-index:1}
#game .collection{bottom:calc(var(--ocean-nav-height) + 31px + var(--safe))}
