/* The Radar Pokémon panel (Work-ID 20261019-radar-panel-0dee; zenux, mockup 21-radar-pokemon: "build exactly like the image"): ONE red-framed panel over the top-left of the world that holds
   "< RADAR POKÉMON" with a minimise and a close box, the route's name under a small pin tile, the wild Pokémon as a 4 x 2 grid of framed species icons, the world's time of day as a row with a chevron
   (a click opens the forecast, as before) and the GM's Repel row. At 1x the panel is 304 px wide (the mockup's 1836 x 857 reference) and the shared factor --ui-s of ui_scale.js zooms the whole panel, so it
   keeps its proportion to the HUD at every window size. A route with more than eight species scrolls inside the grid box. The nodes radar.js adds for this layout (`radar-kicker`, `radar-close`) carry
   `hidden` and are shown here. The species' names stay on hover / focus / tap, as a small label on the grid box's lower edge (it takes no room). Desktop only: the phone keeps its own stack (ui/mobile/mobile.css).
   AGENTS.md "Absolute UI hover geometry": every slot and row keeps its authored box in idle, hover, focus and pressed; a state only repaints a colour or an inset shadow. */
@media screen and (min-width:901px){
 /* ---- the panel: the stack's frame ------------------------------------------------------------------------------------------------------------------------------------------------------------------ */
 body:not(.mobile-web) #game .premium-viewport .viewport-top-left{
  zoom:var(--ui-s,1);box-sizing:border-box;left:10px;top:10px;width:304px;max-width:none;padding:8px 10px;gap:8px;align-items:stretch;pointer-events:auto;
  border-radius:3px;background:var(--sg-gems),linear-gradient(180deg,#121826f2,#0f1420f5);box-shadow:var(--sg-frame),0 10px 26px #0d111cbb}
 body:not(.mobile-web) #game .premium-viewport .viewport-top-left>*{box-sizing:border-box;width:100%;max-width:none;min-width:0;margin:0!important}
 /* each part drops the old PNG frame and is painted by the panel */
 body:not(.mobile-web) #game #area-radar,body:not(.mobile-web) #game #sky-widget,body:not(.mobile-web) #game #gm-repel-toggle,body:not(.mobile-web) #game #repel-hud{
  border:0!important;border-image:none!important;border-radius:0!important;background-image:none!important;font-family:Arial,sans-serif!important;color:var(--sg-text)!important;text-shadow:none!important}
 /* ---- the radar: header, route, grid ---------------------------------------------------------------------------------------------------------------------------------------------------------------- */
 body:not(.mobile-web) #game #area-radar{position:relative;display:flex;flex-direction:column;gap:8px;padding:0!important;width:100%!important;background:transparent!important;box-shadow:none!important}
 body:not(.mobile-web) #game #area-radar.hidden{display:none!important}
 body:not(.mobile-web) #game #area-radar .radar-head{display:grid;grid-template-columns:minmax(0,1fr) 22px 22px;grid-template-rows:26px 22px;align-items:center;min-height:0;gap:0 6px}
 body:not(.mobile-web) #game #area-radar .radar-kicker{display:flex!important;grid-column:1;grid-row:1;align-items:center;gap:12px;min-width:0}
 body:not(.mobile-web) #game #area-radar .radar-back{display:block;flex:0 0 14px;width:14px;height:22px;
  background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='22' viewBox='0 0 14 22'%3E%3Cpath d='M11 2L3 11l8 9' fill='none' stroke='%23f3c96b' stroke-width='4' stroke-linecap='square'/%3E%3C/svg%3E") center/14px 22px no-repeat}
 body:not(.mobile-web) #game #area-radar .radar-kicker>b{color:var(--sg-gold)!important;font:700 14px/22px Arial,sans-serif;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body:not(.mobile-web) #game #area-radar .radar-title{display:flex;align-items:center;gap:10px;grid-column:1 / 4;grid-row:2;flex:none;min-width:0;color:#fff!important;font:700 12.5px/22px Arial,sans-serif!important;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body:not(.mobile-web) #game #area-radar .radar-title::before{content:"";flex:0 0 19px;width:19px;height:17px;border-radius:2px;
  background:radial-gradient(circle at 50% 50%,#f3c96b 0 1.5px,#2a2a14 2px 3px,transparent 3.5px),linear-gradient(180deg,#171f31,#111724);box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #2e3a55}
 /* the minimise and the close box: a dark square in a red line, a white bar or cross drawn with gradients (no transform), the same box in every state */
 body:not(.mobile-web) #game #area-radar :is(.radar-toggle,.radar-close){position:relative;display:block!important;width:22px!important;height:22px!important;min-width:22px!important;min-height:22px!important;margin:0!important;padding:0!important;
  border:0!important;border-image:none!important;border-radius:2px!important;background:#141a2a!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #60383c!important;color:transparent!important;font-size:0!important;line-height:0!important;overflow:hidden}
 body:not(.mobile-web) #game #area-radar .radar-toggle{grid-column:2;grid-row:1}
 body:not(.mobile-web) #game #area-radar .radar-close{grid-column:3;grid-row:1}
 body:not(.mobile-web) #game #area-radar .radar-toggle::before{content:"";position:absolute;left:6px;top:10px;width:10px;height:2px;background:#fff}
 body:not(.mobile-web) #game #area-radar.collapsed .radar-toggle::after{content:"";position:absolute;left:10px;top:6px;width:2px;height:10px;background:#fff}
 body:not(.mobile-web) #game #area-radar .radar-close::before{content:"";position:absolute;left:6px;top:6px;width:10px;height:10px;
  background:linear-gradient(45deg,transparent 41%,#fff 41% 59%,transparent 59%),linear-gradient(-45deg,transparent 41%,#fff 41% 59%,transparent 59%)}
 body:not(.mobile-web) #game #area-radar :is(.radar-toggle,.radar-close):is(:hover,:focus-visible){background:#1b2439!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #cf7666,inset 0 0 8px #c44c4588!important;outline:none}
 body:not(.mobile-web) #game #area-radar :is(.radar-toggle,.radar-close):active{background:#202b44!important}
 /* the grid box: a dark well with a teal top edge, the slots in it */
 body:not(.mobile-web) #game #area-radar .radar-grid{box-sizing:border-box;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:7px 8px;align-content:start;max-height:118px;padding:8px 8px 7px;overflow-x:hidden;overflow-y:auto;border-radius:3px;background:linear-gradient(90deg,#3f8c96,#965858 50%,#3f8c96) top/100% 2px no-repeat,linear-gradient(180deg,#121826,#101522);
  box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #273453,inset 0 0 14px #0d111c}
 body:not(.mobile-web) #game #area-radar .radar-slot{box-sizing:border-box;width:100%;height:48px;min-width:0;padding:0;border:1px solid #5d3c45!important;border-image:none!important;border-radius:4px!important;
  background:linear-gradient(180deg,#151c2d,#111725)!important;box-shadow:inset 0 0 0 1px #0d111c!important;display:grid;place-items:center}
 body:not(.mobile-web) #game #area-radar .radar-slot:is(:hover,:focus-visible){border-color:var(--sg-gold)!important;background:linear-gradient(180deg,#182032,#121827)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 10px #f3c96b44!important;outline:none}
 body:not(.mobile-web) #game #area-radar .radar-slot:active{background:#1c253b!important}
 body:not(.mobile-web) #game #area-radar .radar-slot.legend{border-color:var(--sg-gold)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 8px #f3c96b55!important}
 body:not(.mobile-web) #game #area-radar .radar-icon{position:relative;top:-2px;width:46px;height:46px;background-size:200% 100%;background-position:0 0;image-rendering:pixelated}
 body:not(.mobile-web) #game #area-radar .radar-legend{margin:0;color:var(--sg-gold);font:700 12px/16px Arial,sans-serif}
 /* the species' name: a label on the grid box's lower edge; absolute, so it takes no room (the box and the rows below never move) */
 body:not(.mobile-web) #game #area-radar .radar-name{position:absolute;left:0;right:0;width:max-content;margin:-9px auto 0;min-height:0;padding:0 8px;max-width:90%;z-index:3;pointer-events:none;
  border-radius:3px;background:#111724;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #5c3639;color:var(--sg-gold-hi);font:700 11px/18px Arial,sans-serif;letter-spacing:.03em;text-transform:uppercase;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
 body:not(.mobile-web) #game #area-radar .radar-name:empty{display:none}
 /* ---- the time-of-day row ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------- */
 body:not(.mobile-web) #game #sky-widget:not([hidden]){display:flex;align-items:center;gap:10px;height:34px;min-height:34px;padding:0 10px!important;border-radius:3px!important;background:linear-gradient(180deg,#121927,#101522)!important;
  box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #28324a,inset 0 0 12px #673c401e!important;white-space:nowrap;text-align:left}
 body:not(.mobile-web) #game #sky-widget:is(:hover,:focus-visible){background:linear-gradient(180deg,#171f31,#121826)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #c44a43,inset 0 0 12px #c44c4555!important;outline:none}
 body:not(.mobile-web) #game #sky-widget .sky-widget-icon{display:grid!important;place-items:center;flex:0 0 22px;width:22px!important;height:22px;color:var(--sg-gold)!important;font-size:0!important}
 body:not(.mobile-web) #game #sky-widget i.fa-solid.sky-widget-icon::before{display:block;width:22px;height:22px;background-size:22px 22px!important;background-repeat:no-repeat;background-position:center!important}
 body:not(.mobile-web) #game #sky-widget .sky-widget-time{flex:0 0 auto;color:#f3f0ea!important;font:700 14px/20px Arial,sans-serif!important;letter-spacing:.02em}
 body:not(.mobile-web) #game #sky-widget .sky-widget-period{flex:0 0 auto;color:var(--sg-gold)!important;font:700 14px/20px Arial,sans-serif!important;letter-spacing:.04em;text-transform:uppercase}
 body:not(.mobile-web) #game #sky-widget .sky-widget-weather{flex:0 1 auto;min-width:0;padding-left:10px!important;border-left:1px solid #28324a!important;color:#9fc4ee!important;font:700 12px/16px Arial,sans-serif!important}
 body:not(.mobile-web) #game #sky-widget .sky-widget-more{flex:0 0 auto;margin-left:0!important;color:#d6d3ce!important;font-size:12px!important}
 /* ---- the Repel rows (the GM's switch and the Repel's step counter) ------------------------------------------------------------------------------------------------------- */
 body:not(.mobile-web) #game #gm-repel-toggle:not(.hidden),body:not(.mobile-web) #game #repel-hud:not(.hidden){display:flex;align-items:center;gap:8px;height:29px;min-height:29px;padding:0 10px!important;border-radius:3px!important;
  background:linear-gradient(180deg,#121927,#101522)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #28324a!important;color:#f3f0ea!important;font:700 13px/17px Arial,sans-serif!important;letter-spacing:.02em;text-align:left;text-transform:uppercase;white-space:nowrap}
 body:not(.mobile-web) #game #gm-repel-toggle:not(.hidden):is(:hover,:focus-visible){background:linear-gradient(180deg,#171f31,#121826)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #c44a43,inset 0 0 12px #c44c4555!important;outline:none}
 body:not(.mobile-web) #game #gm-repel-toggle.active:not(.hidden){box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #9a6a1c,inset 0 2px 0 2px #f3c96b55!important;color:#fff!important}
 body:not(.mobile-web) #game #repel-hud.low:not(.hidden){box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #744448!important}
 body:not(.mobile-web) #game #repel-hud .bag-icon{flex:0 0 22px;width:22px;height:22px}
 body:not(.mobile-web) #game #repel-hud .repel-hud-name{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
 body:not(.mobile-web) #game #repel-hud .repel-hud-steps{flex:0 0 auto;color:var(--sg-gold)!important;font:700 13px/17px Arial,sans-serif}
}

/* feature:repel-shortcut (zenux, 2026-10-23): the desktop paint of the player's Repel row (a button under the GM Repel line; its base rules are in styles.css, the phone keeps its own stack).
   AGENTS.md hover geometry: hover / focus / pressed repaint only (colour, inset shadow); the box, border, padding and font never change. */
@media screen and (min-width:901px){
 body:not(.mobile-web) #game #repel-hud:not(.hidden):is(:hover,:focus-visible){background:linear-gradient(180deg,#171f31,#121826)!important;box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #c9a24a,inset 0 0 12px #c9a24a44!important;outline:none}
 body:not(.mobile-web) #game #repel-hud.low:not(.hidden):is(:hover,:focus-visible){box-shadow:inset 0 0 0 1px #0d111c,inset 0 0 0 2px #c44a43,inset 0 0 12px #c44c4555!important}
 body:not(.mobile-web) #game #repel-hud:not(.hidden):active{background:linear-gradient(180deg,#0f1520,#0d121c)!important}
 body:not(.mobile-web) #game #repel-hud.none:not(.hidden) .repel-hud-steps{color:#9fc4ee!important}
}
