/* HUD controls share the shop's glass treatment. */
.final-toolbar #mapButton,.final-toolbar #mapButton.map-return{
 background:linear-gradient(180deg,#fffffff0,#ffffffb8)!important;
 border:1px solid #ffffff80!important;
 box-shadow:inset 0 1px 1px #ffffffb3,0 2px 5px #0003!important;
 backdrop-filter:blur(5px) saturate(120%);-webkit-backdrop-filter:blur(5px) saturate(120%);
}
.final-toolbar #mapButton:hover:not(:disabled),.final-toolbar #mapButton:focus-visible{
 background:linear-gradient(180deg,#fffffffa,#ffffffd6)!important;
 box-shadow:inset 0 1px 1px #ffffffc9,0 2px 7px #0003!important;filter:brightness(1.06);
}
.final-toolbar #gearButton,.final-toolbar .empty-tackle-cell{
 background:linear-gradient(180deg,#fffffff0,#ffffffb8)!important;
 border:1px solid #ffffff80!important;border-radius:12px!important;
 box-shadow:inset 0 1px 1px #ffffffb3,0 2px 5px #0003!important;
 backdrop-filter:blur(5px) saturate(120%);-webkit-backdrop-filter:blur(5px) saturate(120%);
}
.final-toolbar #gearButton:hover:not(:disabled),.final-toolbar .empty-tackle-cell:hover{
 background:linear-gradient(180deg,#fffffffa,#ffffffd6)!important;
 box-shadow:inset 0 1px 1px #ffffffc9,0 2px 7px #0003!important;
}
:is(#historyDialog,#dailyRewardsDialog,#panel.settings-mode){
 border:1px solid #ffffff59!important;border-radius:20px!important;
 background-color:#29402c!important;
 background-image:linear-gradient(#163024ba,#10261ed9),url('shop-fishing-doodles-fixed-lossless.webp')!important;
 background-size:100% 100%,480px auto!important;
 color:#fff8df!important;font-family:ReferenceArial,Arial,sans-serif!important;
 box-shadow:0 12px 40px #0006!important;
}
:is(#historyDialog,#dailyRewardsDialog,#panel.settings-mode)::backdrop{
 background:#0b242b99!important;backdrop-filter:blur(5px)!important;-webkit-backdrop-filter:blur(5px)!important;
}
:is(#historyDialog,#dailyRewardsDialog) header{border-bottom:1px solid #ffffff38;padding-bottom:16px;margin-bottom:16px;gap:20px}
:is(#historyDialog,#dailyRewardsDialog) :is(h2,h3,footer,.daily-reward-status){color:#fff8df!important}
#historyDialog nav{background:#142e2299!important;border:1px solid #ffffff38;border-radius:10px;overflow:hidden}
#historyDialog nav button{color:#fff8df!important;background:transparent!important}
#historyDialog nav::before{background:#ffffff25!important;border-color:#ffffff45!important;box-shadow:inset 0 1px 0 #ffffff50!important}
#historyDialog .history-paper{border:1px solid #ffffff38!important;border-radius:12px;background:#ffffff12!important;color:#fff8df!important}
#historyDialog :is(textarea,.history-log,.history-log p,.history-log time,.history-log small,.history-empty){background:transparent!important;color:#fff8df!important;font:16px/1.5 ReferenceArial,Arial,sans-serif!important}
#historyDialog textarea{border:0!important;padding:18px;resize:none;outline-offset:-3px}
#historyDialog textarea::placeholder{color:#d2ddce}
#historyDialog .history-log article{border-color:#ffffff26!important}
#historyDialog .history-save,#dailyRewardsDialog .daily-reward-confirm{
 border:1px solid #ffffff59!important;border-radius:8px!important;
 background:linear-gradient(145deg,#ffffff20,#ffffff06),#203a28b3!important;
 color:#fff8df!important;box-shadow:inset 0 1px 0 #ffffff55,0 3px 9px #0003!important;
}
#dailyRewardsDialog .daily-reward-grid>section,#dailyRewardsDialog .daily-news-cell{
 border:1px solid #ffffff38!important;border-radius:12px!important;background:#ffffff12!important;color:#fff8df!important;
 box-shadow:inset 0 1px 0 #ffffff25!important;
}
#dailyRewardsDialog .daily-reward-grid :is(strong,span){color:#fff8df!important}
#dailyRewardsDialog .community-news-status,#dailyRewardsDialog time{color:#d2ddce!important}
#dailyRewardsDialog a{color:#c9e6a6!important}
#panel.settings-mode.game-screen-menu{
 position:fixed!important;inset:auto!important;margin:0!important;
 left:var(--menu-left,0px)!important;top:var(--menu-top,0px)!important;
 width:var(--menu-width,100vw)!important;height:var(--menu-height,100dvh)!important;
 min-width:0!important;min-height:0!important;max-width:none!important;max-height:none!important;
 padding:28px!important;overflow:auto!important;box-sizing:border-box!important;
}
#panel.settings-mode>.window-title{background:transparent!important;color:#fff8df!important;border-bottom:1px solid #ffffff38!important;padding:0 0 20px!important;font-size:28px;min-height:68px;gap:20px}
#panel.settings-mode>.window-body{padding:24px 0!important;font-size:18px;color:#fff8df!important}
#panel.settings-mode #settingsPanel{max-width:1000px;margin:auto}
#panel.settings-mode :is(label,p,h2,h3,legend){color:#fff8df!important}
#panel.settings-mode input{accent-color:#9ac97c}
@media(max-width:600px){#panel.settings-mode.game-screen-menu{padding:16px!important}#panel.settings-mode>.window-title{font-size:23px}}

/* Exact palette and backdrop used by My Trophies. */
:is(#historyDialog,#dailyRewardsDialog){background-color:#18200f!important;background-image:linear-gradient(#23341077,#17230d88),url('shop-fishing-doodles-fixed-lossless.webp')!important;background-size:auto,cover!important;background-position:center!important;background-repeat:no-repeat!important;color:#eee8d8!important}
:is(#historyDialog,#dailyRewardsDialog) :is(h2,h3,footer,.daily-reward-status){color:#eee8d8!important}
#historyDialog .history-paper,#dailyRewardsDialog .daily-reward-grid>section,#dailyRewardsDialog .daily-news-cell{background:linear-gradient(145deg,#ffffff1f,#ffffff05 52%,#ffffff0d),linear-gradient(180deg,#46582d57,#23351b38)!important;border-color:#ffffff59!important;box-shadow:inset 0 1px 0 #ffffff70,inset 0 -1px 0 #10200a66,0 5px 16px #00000026!important;backdrop-filter:blur(2px) saturate(135%);-webkit-backdrop-filter:blur(2px) saturate(135%)}
#historyDialog nav{background:linear-gradient(180deg,#556543,#2b3b22)!important}
#historyDialog nav::before{background:linear-gradient(145deg,#77894d73,#4b632e59)!important}

/* A single wallpaper layer; the writing surface must not magnify/blur it. */
#historyDialog{background-size:100% 100%,480px auto!important;background-repeat:no-repeat,repeat!important;background-position:center,center top!important}
#historyDialog .history-paper{
 background:rgba(31,49,30,.78)!important;
 backdrop-filter:none!important;-webkit-backdrop-filter:none!important;
}
#rodDialog::backdrop{background:transparent!important;opacity:0!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;transition:none!important}
#worldDialog:is(.atlas-zooming,.river-focus,.river-presented) .world-close{display:none!important}
#worldDialog .atlas-back{display:inline-flex;align-items:center;gap:10px}
#worldDialog .atlas-back svg{display:block;width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}

#worldDialog.menu-opening{opacity:0}
