/* r189c: bare flat bell + dropdown from the bell. Transform + opacity only. 12px+ text. */
:root{--ap-top:0px;--ap-ox:100%;--ap-ease:cubic-bezier(.16,1,.3,1)}
/* White solid bell, no tile / square / label. 44px hit area. Thin holo outline traces the bell and the badge. */
html header a.navbell,html[data-theme] header a.navbell,html[data-vibe] header a.navbell{touch-action:manipulation;box-sizing:border-box;position:relative;overflow:visible;width:50px;height:50px;min-width:50px;padding:0;margin-left:auto;display:grid;place-items:center;background:none!important;border:0!important;border-radius:0!important;box-shadow:none!important;color:#fff!important;text-decoration:none;line-height:0;-webkit-tap-highlight-color:transparent;transition:transform .12s cubic-bezier(.3,1.6,.5,1)}
html header a.navbell::after{content:"";position:absolute;inset:-6px}
html header a.navbell .pxbell,html header a.navbell .b-idle,html header a.navbell .b-ring,html[data-theme] header a.navbell .pxbell{width:50px;height:50px;display:block;overflow:visible;color:#fff!important;filter:none;image-rendering:auto}
html header a.navbell.ap-press,html header a.navbell:active{transform:scale(.88);transition-duration:.06s}
html header a.navbell.ap-on{transform:none}
@property --bh{syntax:"<angle>";inherits:false;initial-value:0deg}
html header a.navbell .pxbell .bell-body,html[data-theme] header a.navbell .pxbell .bell-body{fill:#fff!important;color:#fff!important;stroke:none!important}
html header a.navbell .pxbell .bell-holo,html[data-theme] header a.navbell .pxbell .bell-holo,html header a.navbell .pxbell .bell-holo-ink,html[data-theme] header a.navbell .pxbell .bell-holo-ink{fill:none!important}
html header a.navbell .nbadge:not(#_),html:not([data-vibe]) header a.navbell .nbadge:not(#_),html[data-theme] header a.navbell .nbadge:not(#_),html[data-vibe] header a.navbell .nbadge:not(#_){position:absolute;top:-2px;right:-2px;z-index:3;display:inline-grid;place-items:center;min-width:20px;height:20px;padding:0 5px;box-sizing:border-box;border-radius:99px;border:2px solid transparent;background:linear-gradient(#e5243b,#e5243b) padding-box,conic-gradient(from var(--bh,0deg),#ff5fa2,#ffb347,#f5d76e,#7ee081,#5fd3ff,#9b7fe0,#ff5fa2) border-box!important;color:#fff!important;font:700 12px/1 system-ui,sans-serif!important;letter-spacing:0;box-shadow:0 0 0 1px #0b102080!important;will-change:transform,--bh;animation:ap-holo-spin 6s linear infinite}
html header a.navbell.ringing .nbadge:not(#_){box-shadow:0 0 0 1px #0b102080,0 0 8px #e5243bcc!important}
@keyframes ap-holo-spin{to{--bh:360deg}}
html header a.navbell .pxbell .bell-holo{animation:ap-bell-holo 8s linear infinite;transform-box:fill-box}
@keyframes ap-bell-holo{to{filter:hue-rotate(360deg)}}
.navbell .nbadge.ap-pop{animation:ap-pop .24s cubic-bezier(.3,1.5,.5,1) both}
.navbell .nbadge.ap-out{animation:ap-out .18s ease-in both}
@keyframes ap-pop{from{transform:scale(.4);opacity:0}to{transform:none;opacity:1}}
@keyframes ap-out{to{transform:scale(.5);opacity:0}}
html header a.navbell.ap-ding .pxbell{animation:ap-ding .48s ease-out both!important;transform-origin:50% 15%}
@keyframes ap-ding{0%{transform:rotate(0)}18%{transform:rotate(-14deg)}36%{transform:rotate(12deg)}54%{transform:rotate(-8deg)}72%{transform:rotate(5deg)}100%{transform:rotate(0)}}
/* dropdown hangs under the header, grows down from the bell */
.ap-scrim{position:fixed;left:0;right:0;bottom:0;top:var(--ap-top);z-index:89;background:#05071699;opacity:0;visibility:hidden;pointer-events:none;transition:opacity .2s ease,visibility 0s .2s;-webkit-tap-highlight-color:transparent}
.ap-scrim.in{opacity:1;visibility:visible;pointer-events:auto;transition:opacity .2s ease}
.ap-scrim.out{visibility:visible;pointer-events:auto}
.ap-sheet{position:fixed;z-index:90;top:var(--ap-top);left:8px;right:8px;bottom:auto;margin:0 auto;max-width:520px;height:auto;max-height:calc(100dvh - var(--ap-top) - 24px - env(safe-area-inset-bottom,0px));min-height:0;box-sizing:border-box;display:flex;flex-direction:column;
  border-radius:18px;overflow:hidden;background:none;box-shadow:0 16px 40px #000a,0 0 0 1px #ffffff22;
  transform-origin:var(--ap-ox) 0;transform:translate3d(0,-12px,0) scale(.86);opacity:0;visibility:hidden;pointer-events:none;overscroll-behavior:contain;outline:none;-webkit-tap-highlight-color:transparent;
  will-change:transform,opacity;transition:transform .16s ease,opacity .14s ease,visibility 0s .16s}
.ap-sheet.in{transform:none;opacity:1;visibility:visible;pointer-events:auto;transition:transform .22s var(--ap-ease),opacity .18s ease}
.ap-sheet.out{transform:translate3d(0,-10px,0) scale(.9);opacity:0;visibility:visible;pointer-events:auto;transition:transform .16s ease,opacity .14s ease}
.ap-x{position:absolute;top:6px;right:8px;z-index:2;width:44px;height:44px;border:0;border-radius:22px;background:none;color:inherit;font:700 18px/1 system-ui,sans-serif;opacity:.7;cursor:pointer;touch-action:manipulation;-webkit-tap-highlight-color:transparent;transition:transform .1s ease-out,opacity .1s}
.ap-x:active{transform:scale(.88);opacity:1}
.ap-body{display:flex;flex-direction:column;flex:1 1 auto;min-height:0;max-height:calc(100dvh - var(--ap-top) - 24px - env(safe-area-inset-bottom,0px) - 8px);overflow-y:auto;overflow-x:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior:contain;touch-action:pan-y;border-radius:18px}
.ap-body[data-stale] .ta-item button,.ap-body[data-stale] .ta-item .btn,.ap-body[data-stale] .ta-item [role=button]{pointer-events:none}
.ap-body .card.ta{margin:0;box-shadow:none;border-radius:18px;flex:0 1 auto;padding-top:16px;padding-bottom:calc(16px + env(safe-area-inset-bottom,0px))}
.ap-body .card.ta .ta-h{padding-right:44px;display:flex;align-items:center;gap:10px}
.ap-body .ta-h .pxbell,.ta-h svg.pxbell{width:28px!important;height:28px!important;flex:none;image-rendering:auto;color:currentColor;fill:currentColor;filter:none}
.ap-body .xp-rev>*,.ap-body .xp-rev-1,.ap-body .xp-rev-2,.ap-body .xp-rev-3,.ap-body .ta-list>.ta-item,.ap-body .xp-fast>*{animation:none!important}
html.ap-open body{overflow:hidden}
@media (prefers-reduced-motion:reduce){.ap-sheet,.ap-sheet.in,.ap-sheet.out,.ap-scrim{transition-duration:.01s!important}.navbell,.navbell .nbadge,.navbell .pxbell,.navbell .pxbell .bell-holo,html header a.navbell.ap-ding .pxbell,html header a.navbell .nbadge:not(#_){animation:none!important;transition:none!important}}
@media (min-width:900px) and (hover:hover){.ap-sheet{max-width:420px;left:auto;right:12px;--ap-ox:100%}}
.ap-body .xp-skel-ln,.ap-body .xp-skel-art{background:rgba(128,136,170,.24);animation:none}

/* r189g: no caption row, no header bike. Icons share one flex midline.
   Right cluster is bell + Me + Menu; the bell (first in flex order) takes margin-left:auto so they sit together on the right. */
header.hcap-on{padding-bottom:0}
header .hcap,header .hrider,.hrider-hint{display:none!important}
html header,html[data-theme] header{align-items:center}
html header a.navbell,html header:has(.acct.w5) a.navbell,html[data-theme] header a.navbell{margin-left:auto!important}
html header .acct,html header .acct.w5,html[data-theme] header .acct.w5{margin-left:6px}
html header:not(:has(.navbell)) .acct,html header:not(:has(.navbell)) .acct.w5{margin-left:auto}

/* r189i (Will, 10:54 AM Nov 28 2026): icons match the XP logo and span the full header width.
   --hud-ico is 52px at 320, 64px at 390, 72px at 768 so the bar stays a reasonable height. */
html:not(.lp5-only) header,html[data-theme]:not(.lp5-only) header{
  --hud-pad:12px;--hud-ico:48px;--hud-bell:45px;
  display:flex;align-items:center;justify-content:flex-start;gap:8px;
  padding-left:var(--hud-pad)!important;padding-right:var(--hud-pad)!important;
  padding-top:8px!important;padding-bottom:8px!important;
  box-sizing:border-box;overflow:visible;min-width:0
}
@media (max-width:359px){
  html:not(.lp5-only) header,html[data-theme]:not(.lp5-only) header{--hud-pad:10px;--hud-ico:39px;--hud-bell:36px}
}
@media (min-width:360px) and (max-width:389px){
  html:not(.lp5-only) header,html[data-theme]:not(.lp5-only) header{--hud-pad:10px;--hud-ico:44px;--hud-bell:41px}
}
@media (min-width:600px){
  html:not(.lp5-only) header,html[data-theme]:not(.lp5-only) header{--hud-pad:16px;--hud-ico:54px;--hud-bell:50px}
}
/* r204t2 (Will): flag + logo grouped on the left; bell, Me and Menu grouped on the right. Equal --hud-ico sizes stay. */
html:not(.lp5-only) header a.navbell,html:not(.lp5-only) header:has(.acct.w5) a.navbell,html[data-theme]:not(.lp5-only) header a.navbell{
  margin-left:auto!important;margin-right:0!important
}
html:not(.lp5-only) header:not(:has(.navbell)) .acct,html:not(.lp5-only) header:not(:has(.navbell)) .acct.w5,
html[data-theme]:not(.lp5-only) header:not(:has(.navbell)) .acct.w5{
  margin-left:auto!important;margin-right:0!important
}
html:not(.lp5-only) header:not(:has(.navbell)):not(:has(.acct)) .navmenu,
html:not(.lp5-only) header:not(:has(.navbell)):not(:has(.acct)) .gmenu-btn,
html.xp-games:not(.lp5-only) body>header:not(:has(.navbell)):not(:has(.acct)) .gmenu-btn{
  margin-left:auto!important;margin-right:0!important
}
html:not(.lp5-only) header .acct,html:not(.lp5-only) header .acct.w5,html[data-theme]:not(.lp5-only) header .acct.w5,
html:not(.lp5-only) header .navmenu,html:not(.lp5-only) header .gmenu-btn,html.xp-games:not(.lp5-only) body>header .gmenu-btn{
  margin-right:0!important
}
html:not(.lp5-only) header .logo .wm,html:not(.lp5-only) header .logo .wm-1l,html:not(.lp5-only) header .logo .wm-2l,
html:not(.lp5-only) header .logo .wm-2l img,html:not(.lp5-only) header:has(.acct.w5) .logo .wm-2l,
html:not(.lp5-only) header:has(.acct.w5) .logo .wm-2l img,
html[data-theme=pikachu]:not(.lp5-only) header:has(.acct.w5) .logo .wm-2l .wm-light,
html[data-theme=pikachu]:not(.lp5-only) header:has(.acct.w5) .logo .wm-2l .wm-dark{display:none!important}
html:not(.lp5-only) header .logo{flex:none;gap:0!important;margin:0!important;min-width:var(--hud-ico);overflow:visible!important}
html:not(.lp5-only) header .logo .logo-icon,html:not(.lp5-only) header .logo .logo-icon.xp-holo,
html[data-theme]:not(.lp5-only) header .logo .logo-icon,body:has(.home) html:not(.lp5-only) header .logo-icon,
html.xp-games:not(.lp5-only) body>header .logo-icon,html.xp-games:not(.lp5-only) body>header .logo:not(.gh-locked) .logo-icon,
html.xp-games:not(.lp5-only) body>header .logo:not(.gh-locked) .logo-icon{
  display:block!important;width:var(--hud-ico)!important;height:var(--hud-ico)!important;margin:0!important;flex:none;
  border-radius:0!important;box-shadow:none!important;background:none!important;overflow:visible!important;position:relative
}
/* r204t2: do not pin the inner sprite to 100% — xp-holo.js sizes it so the rings can spill a few px past the box and stay unclipped. */
html:not(.lp5-only) header .logo .xp-holo>i,html.xp-games:not(.lp5-only) body>header .logo .xp-holo>i{
  display:block;position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);pointer-events:none
}
html:not(.lp5-only) header .hflag,html:not(.lp5-only) body>header .hflag{
  width:var(--hud-ico)!important;height:var(--hud-ico)!important;margin:0!important;flex:none
}
html:not(.lp5-only) header .hflag img,html:not(.lp5-only) body>header .hflag img{
  width:auto!important;height:62%!important;max-width:88%!important
}
html:not(.lp5-only) header a.navbell,html[data-theme]:not(.lp5-only) header a.navbell,html[data-vibe]:not(.lp5-only) header a.navbell{
  width:var(--hud-bell,var(--hud-ico))!important;height:var(--hud-bell,var(--hud-ico))!important;min-width:var(--hud-bell,var(--hud-ico))!important
}
html:not(.lp5-only) header a.navbell .pxbell,html[data-theme]:not(.lp5-only) header a.navbell .pxbell,
html:not(.lp5-only) header a.navbell .pxbell svg{
  width:var(--hud-bell,var(--hud-ico))!important;height:var(--hud-bell,var(--hud-ico))!important
}
html:not(.lp5-only) header a.navbell .nbadge:not(#_),html[data-theme]:not(.lp5-only) header a.navbell .nbadge:not(#_){
  top:0;right:0;min-width:20px;height:20px;font:700 12px/1 system-ui,sans-serif!important
}
html:not(.lp5-only) header .acct,html:not(.lp5-only) header .acct.w5{
  width:var(--hud-ico);height:var(--hud-ico);flex:none;margin-right:0!important;position:relative
}
html:not(.lp5-only) header .w5-b,html:not(.lp5-only) header .w5 .w5-st,html:not(.lp5-only) header .w5 .w5-st.more{
  width:var(--hud-ico)!important;height:var(--hud-ico)!important;padding:0!important
}
html:not(.lp5-only) header .w5-me,html:not(.lp5-only) header .acct.w5 .w5-me{
  width:var(--hud-ico)!important;height:var(--hud-ico)!important;right:0;top:0
}
html:not(.lp5-only) header .w5-nm,html:not(.lp5-only) header .acct-nm{display:none!important}
html:not(.lp5-only) header .navmenu{width:var(--hud-ico);height:var(--hud-ico);flex:none;margin-right:0!important}
html:not(.lp5-only) header .navmenu summary,html:not(.lp5-only) header .navmenu>summary{
  width:var(--hud-ico)!important;height:var(--hud-ico)!important;min-width:var(--hud-ico)!important;
  font-size:calc(var(--hud-ico) * .48)!important;box-sizing:border-box
}
html.xp-games:not(.lp5-only) body>header .gmenu-btn{
  width:var(--hud-ico)!important;height:var(--hud-ico)!important;margin-right:0!important;flex:none;
  border-radius:16px;gap:calc(var(--hud-ico) * .1)
}
html.xp-games:not(.lp5-only) body>header .gmenu-btn span{
  width:calc(var(--hud-ico) * .42)!important;height:3px
}

/* r205header3: drop gold/yellow pinstripe dividers under the header and the pill row. Leave diagonal page stripes alone. */
html header,html[data-theme] header,html[data-vibe] header,
html[data-theme=pikachu] header,html[data-theme=team-rocket] header,
html[data-theme=team-rocket] body:has(.home) header,
html[data-theme=team-rocket]:not([data-vibe]) header,
html[data-theme=team-rocket]:not([data-vibe]) body:has(.home) header,
html[data-vibe] body:has(.home) header{
  border-bottom:0!important
}
html[data-theme] header,html[data-theme=pikachu] header,html[data-theme=team-rocket] header,
html[data-theme=team-rocket]:not([data-vibe]) header,
html[data-theme=team-rocket]:not([data-vibe]) body:has(.home) header{
  box-shadow:none
}
html #theme-bar,html[data-theme] #theme-bar,html[data-vibe] #theme-bar,
html[data-theme=pikachu] #theme-bar,html[data-theme=team-rocket] #theme-bar{
  border-bottom:0!important
}
/* r205header4: YOUR BALL is the Poké Ball icon only; no hard ring, soft glow behind the ball. Same 44px control. */
html #theme-bar .tb-look,html[data-theme] #theme-bar .tb-look,html[data-vibe] #theme-bar .tb-look,
html[data-theme=pikachu]:not([data-vibe]) #theme-bar .tb-look,
html[data-theme=team-rocket] #theme-bar .tb-look{
  width:44px;height:44px;min-width:44px;min-height:44px;padding:0!important;gap:0;
  display:inline-grid;place-items:center;box-sizing:border-box;border-radius:999px;
  position:relative;overflow:visible;
  border:0!important;background:transparent!important;box-shadow:none!important
}
html #theme-bar .tb-look::before{
  content:"";position:absolute;inset:1px;border-radius:50%;pointer-events:none;z-index:0;
  background:radial-gradient(circle,rgba(255,220,130,.55) 0%,rgba(255,200,80,.2) 42%,transparent 70%)
}
html[data-theme=team-rocket] #theme-bar .tb-look::before,
html[data-vibe] #theme-bar .tb-look::before{
  background:radial-gradient(circle,rgba(255,255,255,.5) 0%,rgba(255,245,220,.2) 46%,transparent 72%)
}
html[data-theme=pikachu]:not([data-vibe]) #theme-bar .tb-look::before{
  background:radial-gradient(circle,rgba(255,255,255,.7) 0%,rgba(255,255,255,.28) 42%,transparent 72%)
}
html #theme-bar .tb-look>span{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);clip-path:inset(50%);white-space:nowrap;border:0;padding:0;margin:-1px}
html #theme-bar .tb-look :is(img,canvas){width:28px!important;height:28px!important;margin:0;position:relative;z-index:1}
