/* V1.78 — WOTD native aspect, consolidated preferences, tester sidebar, compact Pet Battles picker. */
/* Website settings: the existing buttons retain their behavior inside this single menu. */
.top-right .v178-settings-wrap{position:relative;display:inline-flex;align-items:center;flex:0 0 auto;z-index:50}
.top-right .v178-settings-button{display:inline-flex;align-items:center;gap:7px;padding:7px 11px;min-width:0;white-space:nowrap}
.top-right .v178-settings-button img{width:19px;height:19px;image-rendering:pixelated;object-fit:contain;filter:brightness(0) invert(.92) sepia(.20) saturate(2.2) hue-rotate(170deg)}
.top-right .v178-settings-button[aria-expanded="true"]{border-color:rgba(157,230,255,.83);background:rgba(77,157,205,.33)}
.v178-settings-menu{position:fixed;z-index:10015;border:1px solid rgba(168,220,255,.57);border-radius:18px;padding:14px;background:linear-gradient(142deg,rgba(41,87,137,.97),rgba(9,32,70,.985));box-shadow:inset 0 2px 2px rgba(255,255,255,.20),0 18px 55px rgba(0,10,32,.58);backdrop-filter:blur(21px) saturate(145%);max-height:calc(100dvh - 72px);overflow:auto}
.v178-settings-menu[hidden]{display:none!important}
.v178-settings-caption{font-size:10px;font-weight:900;letter-spacing:.13em;color:#9ccceb;margin:0 4px 12px}
.v178-settings-menu .v84-preferences{display:contents!important}
.v178-settings-menu .v84-top-btn{display:flex!important;align-items:center;justify-content:space-between;gap:12px;width:100%;margin:0 0 8px!important;min-height:43px;padding:10px 13px!important;text-align:left;border:1px solid rgba(154,216,248,.30)!important;border-radius:11px!important;background:linear-gradient(139deg,rgba(131,196,235,.13),rgba(10,47,88,.22))!important;color:#dceeff!important;font-size:12px!important}
.v178-settings-menu .v84-top-btn:hover{background:rgba(116,194,241,.27)!important;border-color:rgba(185,231,255,.73)!important}
.v178-settings-menu .time-mode-switch[hidden]{display:none!important}
.v178-settings-menu .gt-version-top{display:block!important;position:static!important;width:max-content;max-width:100%;height:auto!important;padding:7px 14px!important;margin:12px 0 0 auto;border:1px solid rgba(154,219,255,.37)!important;border-radius:999px;background:rgba(22,61,110,.47);color:#d7efff;text-align:center;font-weight:850}
/* WOTD: render full original world image, not a 5:3 fixed-height crop; remove blank tail. */
#content .h162-primary{align-items:start!important}
#content .h162-primary .h162-wotd{grid-row:auto!important;min-height:0!important;height:auto!important;align-self:start!important}
#content .h162-wotd .h162-world-photo{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;aspect-ratio:auto!important;max-height:none!important;min-height:0!important;overflow:visible!important;border-radius:14px!important}
#content .h162-wotd .h162-world-photo img{display:block!important;width:100%!important;max-width:100%!important;height:auto!important;max-height:none!important;object-fit:contain!important;object-position:center!important}
#content .h162-wotd .h162-world-foot{display:flex;flex-wrap:wrap;align-items:center;gap:9px 16px;min-width:0}
#content .h162-wotd .h162-world-foot strong{min-width:0;overflow-wrap:anywhere}
/* Tester: approved sections must not remain display:none due to public/admin styles. */
body[data-tester-session="true"] #v44-nav-stack{display:block!important;visibility:visible!important}
body[data-tester-session="true"] .v48-sidebar-group[data-gtt-allowed="true"]{display:block!important;visibility:visible!important}
body[data-tester-session="true"] .v48-sidebar-group[data-gtt-allowed="true"] .v48-section-shell{display:block!important;height:auto!important;max-height:none!important;overflow:visible!important;opacity:1!important;visibility:visible!important}
body[data-tester-session="true"] .v48-sidebar-group[data-gtt-allowed="true"] .nav-item:not([hidden]){display:flex!important;visibility:visible!important}
body[data-tester-session="true"] .v48-sidebar-group[data-gtt-allowed="false"],
body[data-tester-session="true"] .v48-sidebar-group[data-gtt-allowed="true"] .nav-item[hidden],
body[data-tester-session="true"] .h162-home-nav[hidden]{display:none!important}
/* Pet battle page: only styling/hover changed, not combat mechanics. */
#content #gtpet150 .gp175-teamglyph img{width:31px;height:31px;object-fit:contain;image-rendering:pixelated;background:transparent;border:0;box-shadow:none}
#content #gtpet150 #gp150-tip{display:none!important}
#content #gtpet150 .gp150-battlefoot{justify-content:flex-start}
#content #gtpet150 .gp173-element-toggles{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;min-width:0!important}
#content #gtpet150 .gp173-element-choice{min-width:0!important;width:100%!important;max-width:100%!important;box-sizing:border-box!important;overflow:hidden!important;white-space:nowrap!important;justify-content:flex-start!important}
#content #gtpet150 .gp173-element-choice span{min-width:0;max-width:100%;overflow:hidden;gap:5px}
#content #gtpet150 .gp175-opponent-controls{display:grid!important;grid-template-columns:1fr!important;gap:10px!important;min-width:0!important}
#content #gtpet150 .gp175-opponent-controls .gp173-element-allow{min-width:0!important;width:100%!important;padding:5px 0 2px!important}
/* Intentional compact dialog, not V1.76's fullscreen overlay. Prior V1.76 rules have !important. */
#content #gtpet150 .gp174-picker-backdrop{position:fixed!important;inset:0!important;padding:clamp(14px,4vh,38px)!important;z-index:100000!important;display:flex!important;align-items:center!important;justify-content:center!important;overflow:hidden!important}
#content #gtpet150 .gp174-picker{width:min(970px,calc(100vw - 44px))!important;max-width:970px!important;height:min(730px,calc(100dvh - 64px))!important;max-height:calc(100dvh - 64px)!important;min-height:0!important;border-radius:22px!important;display:flex!important;flex-direction:column!important;overflow:hidden!important}
#content #gtpet150 .gp174-picker header{padding:15px 20px 11px!important}
#content #gtpet150 .gp174-picker-filters{display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:8px!important;margin:0 20px 10px!important;min-width:0!important;flex:none!important}
#content #gtpet150 .v178-filter-group{display:grid!important;grid-template-columns:78px minmax(0,1fr)!important;gap:9px;align-items:center;min-width:0!important}
#content #gtpet150 .v178-filter-group>span{font-size:11px;font-weight:800;color:#b0d5ef;white-space:nowrap}
#content #gtpet150 .v178-filter-group .gp150-filter,#content #gtpet150 .v178-filter-group .gp173-powerfilters{display:flex!important;align-items:center!important;gap:5px!important;flex-wrap:wrap!important;min-width:0!important}
#content #gtpet150 .v178-filter-group button{white-space:nowrap!important;min-width:0!important;margin:0!important;padding:6px 9px!important}
#content #gtpet150 .gp174-picker #gp150-pool{padding:6px 17px 15px!important;min-height:0!important;overflow-y:auto!important;max-height:none!important;flex:1 1 auto!important}
#content #gtpet150 .gp174-picker #gp150-pool .gp150-pool{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:9px!important;max-height:none!important;width:100%!important}
#content #gtpet150 .gp174-picker .gp150-poolitem{min-height:73px!important}
@media(max-width:760px){#content #gtpet150 .gp174-picker #gp150-pool .gp150-pool{grid-template-columns:repeat(2,minmax(0,1fr))!important}#content #gtpet150 .v178-filter-group{grid-template-columns:1fr!important;gap:4px!important}}
@media(max-width:520px){.v178-settings-button span{display:none!important}#content #gtpet150 .gp174-picker{height:calc(100dvh - 32px)!important;max-height:calc(100dvh - 32px)!important;width:calc(100vw - 22px)!important}#content #gtpet150 .gp174-picker-backdrop{padding:10px!important}#content #gtpet150 .gp174-picker #gp150-pool .gp150-pool{grid-template-columns:1fr!important}}
