html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
/* Phone browsers must not inflate absolutely positioned HUD text independently. */
@media(pointer:coarse) and (max-height:700px){
 .final-toolbar .chat-input{font-size:1.1cqw!important;line-height:1.15!important;min-height:0!important;max-height:22%!important}
 .final-toolbar .original-progress{font-size:1.1cqw!important;line-height:1.15!important;width:50%!important;max-height:22%;overflow:hidden!important;white-space:nowrap}
 .final-toolbar .original-readout{font-size:1.13cqw!important;line-height:1.1;min-height:0!important}
 .final-toolbar .original-rod b,.final-toolbar .rod-hud-health{font-size:.96cqw!important}
 .map-surface{--map-label-font:1.15cqw!important}
 .map-surface .dynamic-location-name,.amur-map-point>.amur-point-name{font-size:var(--map-label-font)!important}
 #locationChat,#catchJournal{font-size:var(--chat-font-size,1.3cqw)!important}
 #storeDialog .store-stage nav{bottom:98px;max-height:none;overflow-y:auto;overscroll-behavior:contain;padding-right:4px}
 #storeDialog .store-stage .store-wallet{bottom:12px}
 #storeDialog .store-stage main{right:12px;bottom:12px}
 #storeDialog .store-stage h1{font-size:24px}
 #storeDialog .store-close{width:40px;height:40px;min-width:0;min-height:0}
 #rodDialog.pdf-rod-dialog{width:min(92vw,780px)!important;max-width:92vw!important;max-height:92dvh!important}
 #rodDialog .rod-layout{min-height:0;max-height:86dvh;overflow:auto}
}
html.game-expanded,html.game-expanded body{width:100%;height:100%;overflow:hidden}
html.game-expanded .game{position:fixed;left:50%;top:50%;transform:translate(-50%,-50%);margin:0;width:min(100vw,160dvh);height:auto;max-height:100dvh;z-index:40}
/* Keep the status inside the toolbar on touch devices, including portrait. */
@media(pointer:coarse){
 .final-toolbar .original-progress{position:absolute!important;left:50%!important;right:0!important;top:0!important;bottom:auto!important;width:50%!important;height:22%!important;min-height:0!important;max-height:22%!important;flex-wrap:nowrap!important;padding:0 5px!important;overflow:hidden!important;box-shadow:none!important;background:#e8e8e8!important;font-size:clamp(8px,1.1cqw,14px)!important;line-height:1!important}
 .final-toolbar .empty-tackle-cell,.final-toolbar .tackle-selected,.final-toolbar .tackle-depths i{appearance:none;-webkit-appearance:none;border:0!important;box-shadow:inset 0 0 0 .5px #b5b5b5!important;outline:none}
 .final-toolbar .empty-tackle-cell{border-radius:4px!important}
 .final-toolbar .tackle-selected{border-radius:3px!important}
 .final-toolbar .tackle-depths i{border-radius:1px!important}
 .final-toolbar .toolbar-art{clip-path:inset(0 0 2px 0)}
 .game{box-shadow:none!important;border-bottom:0!important}
 #baitDialog,#baitDialog .bait-stage{-webkit-text-size-adjust:none;text-size-adjust:none}
 #baitDialog .bait-card>span,#baitDialog .spinning-card>span{font-family:Arial,sans-serif!important;font-size:var(--bait-label-font,18px)!important;line-height:1.15!important;white-space:normal;overflow:hidden;overflow-wrap:normal;max-height:2.6em}
}
html.game-expanded .game{left:0;top:0;transform:none;width:100vw;height:100dvh;max-height:none;aspect-ratio:auto}
@media(pointer:coarse){
 html.fishing-mobile-device #dailyGamePanel{--letter-size:clamp(18px,2.1cqw,24px);--mini-height:calc(var(--letter-size) + 12px);right:88px;top:12px;max-width:calc(100% - 100px);gap:6px}
 html.fishing-mobile-device #dailyGamePanel section{padding:5px;border-width:1px;border-radius:10px;box-shadow:0 1px 4px #0002}
 html.fishing-mobile-device #dailyGamePanel .daily-soup{padding:2px}
 html.fishing-mobile-device #dailyGamePanel .soup-count{font-size:12px}
 html.fishing-mobile-device #dailyGamePanel .daily-sea{gap:5px}
 html.fishing-mobile-device #dailyGamePanel .sea-letters{gap:4px}
 html.fishing-mobile-device #dailyGamePanel .sea-letters span{font-size:14px;border-radius:4px;border-width:1px}
 html.fishing-mobile-device #dailyGamePanel .sea-pending-letter{width:24px;height:24px;font-size:14px;border-radius:4px}
 html.fishing-mobile-device #dailyGamePanel .sea-letter-divider{height:16px}
}

@media(pointer:coarse){
 html.fishing-mobile-device #dailyGamePanel{left:10px;right:auto;top:8px;transform:scale(.5);transform-origin:top left;max-width:calc(200% - 40px)}
}
