/* Pokémon Union's social layer: where the Pixel Social UI kit's components
   (social-ui.css, used as it is) sit over the game. Only placement, layering
   and the few things the kit leaves to the host live here: the font file,
   the Trade and Guild channel colours, guild tags and recruiting posts, trainer faces cropped from the
   source's trainer pictures, the resize edges, the phone sheet's heights and
   the pixel pads' place on the screen. Everything is scoped under .pxui.

   Layers (the game's own in style.css): party cards 15, the bar 16, the Social
   panel 17 (all under the game's windows 20, the battle 25 and the menu screens
   34), the pads 35, menus / invites / toasts 46-47. The social layer is an
   overlay: it never moves or resizes the game picture. */

/* Pixelify Sans (SIL Open Font License, /fonts/OFL.txt), served by the game
   itself: players never load it from Google. */
@font-face{font-family:"Pixelify Sans";src:url(/fonts/pixelify-sans-latin.woff2) format("woff2");font-weight:400 700;font-display:swap}
/* Numbers in the game's own Pokémon font (the owner's call, 2026-10-04): at
   the windows' sizes Pixelify's 5 reads as S or 8 and its 2 as 8 (₽150,000
   looked like ₽180,000). Only the digits and ₽ come from it (unicode-range),
   a size up to sit with the letters; the words stay Pixelify (--font). */
@font-face{font-family:"UI Digits";src:url(/assets/fonts/pokemon.ttf) format("truetype");unicode-range:U+0030-0039,U+20BD;size-adjust:125%;font-display:swap}
/* Its "fi" ligature is a single glyph that reads as "A" ("first" -> "Arst"):
   no ligatures anywhere. On every element, not only inherited from html: a
   `font:` shorthand (e.g. .pxui) resets font-variant-ligatures to normal. */
*,*::before,*::after{font-variant-ligatures:none!important}

:root{--bar-bottom:68px}

/* The root spans the screen but only its surfaces take the pointer. It has
   no z-index, so each surface stacks with the game's own layers. */
#social.pxui{position:absolute;inset:0;pointer-events:none;overflow:hidden}
#social.pxui>*,#social .jo-stack>*{pointer-events:auto}
#social .jo-stack,#social .jo-urgent{pointer-events:none}
#social .jo-urgent>*{pointer-events:auto}

/* Two more channels than the kit: Trade and Guild. */
.pxui{--ch-trade:#1e7a3c;--ch-guild:#6b3fa0}
.pxui .px-log[data-channel=trade] .px-who:not(.me){color:var(--ch-trade)}
.pxui .px-log[data-channel=guild] .px-who:not(.me){color:var(--ch-guild)}
.pxui .px-switch[data-channel=trade]{border-color:#5aa56c;background:#e2f3e5;color:var(--ch-trade)}
.pxui .px-switch[data-channel=guild]{border-color:#9b7cc8;background:#efe7f8;color:var(--ch-guild)}
/* The guild's own lines (joins, ranks, level-ups) on its channel. */
.pxui .px-log li.system.jo-guildline{color:var(--ch-guild)}
/* A guild tag in its colour (the chat's posts, the Players list, the player
   menu): "[AZR]". */
.pxui .jo-gtag{font-weight:700;letter-spacing:.02em;white-space:nowrap}
.pxui .px-slot-name .jo-gtag{margin-left:2px;font-size:15px}
.pxui .px-menu-head .jo-gtag{font-size:15px}
.pxui .px-item .jo-gtag{margin-left:auto;font-size:14px}
/* A greyed menu item's reason, under its label ("Rin is in Night Owls."). */
.pxui .px-item.jo-has-why{align-items:flex-start;height:auto;min-height:36px;padding-top:4px;padding-bottom:4px}
.pxui .jo-item-text{display:flex;flex-direction:column;min-width:0}
.pxui .jo-why{max-width:220px;margin-top:1px;color:var(--ink-3);font-size:13px;line-height:1.25;white-space:normal}
/* A guild's recruiting post in Global (chat.js postLine): the guild's colour
   down its side and a wash of its light tone; the banner and the words are
   one button that opens the guild on the Guild Board. */
.pxui .px-log li.jo-gpost{margin:3px 0;padding-top:3px;padding-bottom:3px;border-left:4px solid var(--gp,#3f7fd0);border-radius:4px;background:color-mix(in srgb,var(--gp-light,#74a8ec) 22%,#fff)}
.pxui .jo-gpost-open{display:flex;align-items:center;gap:8px;width:100%;min-height:44px;margin:2px 0 0;padding:2px 6px 2px 2px;border:0;border-radius:4px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.pxui .jo-gpost-open:hover,.pxui .jo-gpost-open:focus-visible{background:color-mix(in srgb,var(--gp-light,#74a8ec) 30%,#fff);outline:2px solid var(--gp,#3f7fd0);outline-offset:-2px}
.pxui .jo-gpost-bn{flex:none;width:36px;height:37px;image-rendering:pixelated}
.pxui .jo-gpost-text{min-width:0;overflow-wrap:anywhere}
/* The Guild channel's stickers (Phase 2, chat.js; previews e7, e7b): the
   button between the channel switch and the box, a computer's popover of the
   12 above it (6 x 2), a phone's tray under the composer (56 px buttons); a
   sticker message is the name with the sticker under it at x2, crisp (a
   phone's sheet: beside it). An event's reminder in the channel: a tinted line. */
.pxui .jo-sticker{display:block;flex:none;image-rendering:pixelated}
.pxui .jo-skb{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:38px;padding:0;border:3px solid var(--blue);border-radius:8px;background:var(--sky)}
.pxui .jo-skb.on,.pxui .jo-skb[aria-expanded=true]{border-color:var(--sel-line);background:var(--sel)}
.pxui .jo-skb[hidden],.pxui .jo-skpop[hidden],.pxui .jo-sktray[hidden]{display:none}
.pxui.touch .jo-skb{height:44px;min-height:44px}
.pxui .jo-skpop{position:absolute;z-index:5;left:10px;bottom:calc(100% - 4px);width:min(430px,calc(100% - 20px));padding:8px 10px 10px}
.pxui .jo-skhead{display:flex;align-items:center;gap:8px;margin:0 0 6px;padding:0 2px 6px;border-bottom:2px dashed var(--rule);font-size:15px}
.pxui .jo-skkick{margin-left:auto;color:var(--ink-3);font-size:12px;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.pxui .jo-sklvl{flex:none;padding:0 6px;border:2px solid var(--sel-line);border-radius:6px;background:var(--sel);font-size:12px;font-weight:700;white-space:nowrap}
.pxui .jo-skgrid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:5px}
.pxui .jo-skgrid button{display:flex;align-items:center;justify-content:center;min-width:0;height:58px;padding:0;border:2px solid var(--rule);border-radius:8px;background:#fff}
.pxui .jo-skgrid button:focus-visible{border-color:var(--sel-line)}
@media(hover:hover){.pxui .jo-skgrid button:hover,.pxui .jo-skb:hover{border-color:var(--sel-line)}}
.pxui .jo-skrules{margin:7px 2px 0;color:var(--ink-3);font-size:12.5px;line-height:1.35}
.pxui .jo-sktray{flex:none;padding:8px 8px 10px;border-top:2px dashed var(--rule);background:#eef5fc}
.pxui .jo-sktray .jo-skhead{display:block;margin:0 2px 6px;padding:0;border:0;color:var(--ink-2);font-size:13px}
.pxui .jo-sktray .jo-skhead b{color:var(--ink);font-size:14px}
.pxui .jo-sktray .jo-skgrid{gap:4px}
.pxui .jo-sktray .jo-skgrid button{height:56px}
.pxui .jo-sktray .jo-skrules{margin-top:6px;font-size:12px}
.pxui .px-log li.jo-skline{display:flex;align-items:flex-start;padding-left:0;text-indent:0}
.pxui .px-log li.jo-skline .px-at{flex:none}
.pxui .jo-skw{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0}
.pxui .jo-skw .jo-sticker{margin:1px 0 2px}
.soc-sheet .jo-skw{flex-direction:row;align-items:center;gap:8px}
.pxui .px-log li.jo-evline{margin:3px 0;padding:4px 6px 4px 50px;border-radius:6px;background:#efe7f8;color:#4a2a80}
.soc-minlines li.jo-evline{color:#4a2a80}
/* the folded strip keeps a sticker line one line tall (the sticker at ×1 beside the name) */
.soc-minlines .jo-skw{display:inline-flex;flex-direction:row;align-items:center;gap:6px;vertical-align:middle}
.soc-minlines .jo-sticker{width:24px;height:24px}
/* The time column can be switched off (Friends settings). */
.pxui .px-log.jo-notime li{padding-left:0;text-indent:0}
.pxui .px-log.jo-notime .px-at{display:none}
.pxui .px-log.jo-notime li.announce{padding-left:8px}
.pxui .px-log li.jo-empty{color:var(--ink-3)}

/* The game's global .row (style.css) must not reach the kit's pad row. */
.pxui .px-face-keys .row,.pxui .px-face-keys .row:hover{padding:0;border:0;border-radius:0;background:none;cursor:auto}

/* ------------------------------------------------------------ faces */
/* A trainer face: the head cropped from the 64x64 trainer front picture. */
.pxui .jo-crop{position:absolute;inset:0;overflow:hidden}
.pxui .jo-crop>img{position:absolute;left:-50%;top:-8%;width:200%;height:200%;max-width:none;image-rendering:pixelated}
/* The lead Pokémon on a party card: the kit's 26px stat box, its icon inside. */
.pxui .jo-mon{width:26px;height:26px;border-width:2px}
.pxui .jo-mon>i{position:absolute;left:50%;top:50%;width:32px;height:32px;margin:-17px 0 0 -16px;background-repeat:no-repeat;background-size:32px 64px;image-rendering:pixelated}
.pxui .px-slot.sel .jo-mon{background:var(--sel)}

/* ------------------------------------------------------------ the bar */
/* The game bar (client/js/social/bar.js; previews v2 h1, p1, p6): 60 px tall
   (58 slim). The left side is text; then the Ranked chip while you search,
   and four 44 px icons: Social, Hub, You and Menu, with their counts. */
.jo-bar{position:absolute;left:calc(8px + env(safe-area-inset-left,0px));right:calc(8px + env(safe-area-inset-right,0px));top:calc(8px + env(safe-area-inset-top,0px));z-index:16;min-height:60px;padding:0 8px 0 14px}
.jo-bar.slim{left:calc(6px + env(safe-area-inset-left,0px));right:calc(6px + env(safe-area-inset-right,0px));top:calc(6px + env(safe-area-inset-top,0px));min-height:58px;gap:6px;padding:0 5px 0 10px}
/* the icons: the kit's button made square, a pixel icon inside */
.jo-bar .jo-ic{flex:none;width:44px;height:44px;padding:0;box-shadow:inset 0 -3px 0 #b8d4ee}
.jo-bar .jo-ic[aria-pressed=true],.jo-bar .jo-ic[aria-expanded=true]{border-color:var(--sel-line);background:var(--sel);box-shadow:inset 0 -3px 0 #f0bc78}
.jo-bar .jo-pix,.jo-bar .jo-pix svg{display:block}
.jo-bar .jo-ic-you{background:#fff;box-shadow:none}
.jo-bar .jo-ic-you[aria-expanded=true]{background:var(--sel)}
.jo-bar .jo-face-box{display:contents}
.jo-bar .jo-ic-you .px-face{width:36px;height:36px;border-width:2px;border-radius:5px}
.jo-bar.slim .jo-ic .px-badge.float{top:-8px;right:-7px}
/* Hidden: a small eye on your face */
.jo-bar .jo-eye{position:absolute;right:-10px;bottom:-9px;display:flex;align-items:center;justify-content:center;width:22px;height:17px;border:2px solid var(--frame);border-radius:5px;background:#fff}
/* The hover names (a computer: on hover and on keyboard focus, never on touch):
   the trainer card's tooltip (card.css .tc-tip), under the icon. --dx moves
   one back onto the page, its arrow staying over the icon (bar.js fitTip). */
.jo-bar .jo-tip{position:absolute;z-index:12;left:50%;top:calc(100% + 13px);transform:translateX(calc(-50% + var(--dx,0px)));display:flex;flex-direction:column;gap:1px;padding:6px 11px 7px;background:var(--cream);border:3px solid var(--frame);border-radius:8px;box-shadow:inset 0 0 0 2px var(--ring),0 8px 18px #0000004d;white-space:nowrap;text-align:left;text-transform:none;letter-spacing:0;pointer-events:none}
.jo-bar .jo-tip::after{content:"";position:absolute;left:50%;bottom:100%;margin-left:calc(-8px - var(--dx,0px));border:8px solid transparent;border-bottom-color:var(--frame)}
.jo-bar .jo-tip b{color:var(--ink);font-size:15px;font-weight:700;line-height:1.2}
.jo-bar .jo-tip small{color:var(--ink-2);font-size:13px;font-weight:400;line-height:1.25}
.jo-bar .jo-tip.r{left:auto;right:-9px;transform:translateX(var(--dx,0px))}
.jo-bar .jo-tip.r::after{left:auto;right:calc(21px + var(--dx,0px));margin-left:0}
.pxui.touch .jo-bar .jo-tip{display:none}
/* The Ranked search chip: open (small swords and the time searched: Hub on
   PLAY) and stop (✕), side by side in the Ranked tile's orange. Under a slim
   bar it sits just below it (.rk-under), and --bar-bottom counts it. */
.jo-bar .rk-barchip-group{flex:none;display:inline-flex;align-items:stretch;gap:0;margin-right:6px}
.jo-bar .rk-barchip{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 11px 0 9px;border:3px solid var(--sel-line);border-radius:8px 0 0 8px;background:var(--sel);box-shadow:inset 0 -3px 0 #f0bc78;color:var(--ink);font-size:17px;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.jo-bar .rk-stop{display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;margin-left:-3px;padding:0;border:3px solid var(--sel-line);border-radius:0 8px 8px 0;background:#fff;color:var(--danger);font-size:18px;font-weight:700}
@media(hover:hover){.jo-bar .rk-barchip:hover,.jo-bar .rk-stop:hover{border-color:var(--red-edge)}}
.jo-bar .rk-under{position:absolute;left:-4px;top:calc(100% + 10px);margin:0}
.jo-bar .px-place{flex:0 1 auto}
.jo-bar .jo-swarm{flex:0 1 auto;border-color:#c98a2a;background:var(--announce);color:var(--ch-global)}
.jo-bar .jo-swarm b{color:var(--busy)}
/* the Alpha swarm chip (client/js/ui/swarm.js) is a button that opens the swarm's window;
   before the swarm (showing its start time) its edge is dashed. The slim bar has a small
   pill on the place block's second line instead, before the time ("α 41m", "α 18:00"),
   and while it shows a transparent button covers the whole place block (the bar's
   height), the block's own text (and its connection line) staying outside the button. */
.jo-bar .jo-swarm{cursor:pointer;font-family:inherit}
.jo-bar .jo-swarm:not(.on),.jo-bar .jo-swarm-pill:not(.on){border-style:dashed}
.jo-bar .jo-swarm-pill{flex:none;display:inline-flex;align-items:center;gap:3px;padding:0 4px;border:2px solid #c98a2a;border-radius:5px;background:var(--announce);color:var(--busy);font-size:12px;font-weight:700;line-height:14px;white-space:nowrap}
.px-bar.slim .px-where{position:relative}
.px-bar.slim .px-where.jo-tap{align-self:stretch;justify-content:center;min-height:44px}
.jo-bar .jo-where-tap{position:absolute;inset:0;width:100%;height:100%;margin:0;padding:0;border:0;border-radius:6px;background:transparent;-webkit-tap-highlight-color:transparent}
.jo-chip-alpha{color:var(--busy);font-size:16px;line-height:1}
.jo-bar .jo-swarm-short,.jo-bar.fit-swarm .jo-swarm-long{display:none}
.jo-bar.fit-swarm .jo-swarm-short{display:inline}
.jo-bar.fit-swarm-off .jo-swarm{display:none}
/* a touch screen's full bar (a tablet): the chip is a 44px target like the kit's buttons */
.pxui.touch .jo-bar .jo-swarm{min-height:44px}
@media(hover:hover){.jo-bar .jo-swarm:hover{border-color:var(--sel-line)}}
.jo-bar .px-btn .label{pointer-events:none}
/* A narrow window: the brand goes first, then the swarm chip's name (above), then the time. */
.jo-bar.fit-brand .px-bar-brand,.jo-bar.fit-time .jo-time,.jo-bar.fit-save .jo-save-text{display:none}
/* the slim bar on a 320 px phone (bar.js SLIM_FIT): the light alone, its word
   hidden to the eye only (still read out: the line is a live status) and the
   light's title; then an Alpha swarm pill's α alone (its words are the place
   block's label and title) */
.jo-bar.slim.fit-word .jo-save-text{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.jo-bar.slim.fit-pill .jo-swarm-pill>span{display:none}
/* A phone on its side: the chip in the corner; tapped, the slim bar drops down. */
.jo-chip{position:absolute;right:calc(8px + env(safe-area-inset-right,0px));top:calc(8px + env(safe-area-inset-top,0px));z-index:16;cursor:pointer}
.jo-bar.dropped{top:calc(60px + env(safe-area-inset-top,0px));left:auto;right:calc(8px + env(safe-area-inset-right,0px));width:min(420px,calc(100% - 16px - env(safe-area-inset-left,0px) - env(safe-area-inset-right,0px)))}

/* ------------------------------------------------------------ party cards */
.jo-party.px-party{position:absolute;left:calc(8px + env(safe-area-inset-left,0px));top:calc(var(--bar-bottom) + 8px);z-index:15;max-height:calc(100% - var(--bar-bottom) - 16px);overflow:auto;overscroll-behavior:contain;touch-action:pan-y}
.jo-party.px-party.row{left:calc(6px + env(safe-area-inset-left,0px));right:calc(6px + env(safe-area-inset-right,0px));touch-action:pan-x}
.jo-party .jo-slot-btn{display:flex;align-items:center;gap:inherit;flex:1;min-width:0;padding:0;border:0;background:none;text-align:left;color:inherit}
.jo-party.row .jo-slot-btn{flex-direction:column;justify-content:center;gap:2px;width:100%}
.jo-party .px-slot-name>b{min-width:0}
/* (the fold's words white on its blue, as h2-h5 draw them: the kit's
   .pxui button colour would make them ink) */
.pxui .px-party-title{color:#fff}
/* The lead Pokémon's HP (Cards show: HP bars, a computer's card; Social →
   PARTY's rows): a bar (green over half, yellow over a fifth, red under:
   util.js hpClass, as the game's) and "88/96". On a card it sits under the
   name and where they are (.jo-hpslot); the card's lines are a little
   tighter then, in whole pixels, so three members still fit above the
   panel on a laptop (1366 x 657). */
.pxui .jo-hp{display:flex;align-items:center;gap:5px;min-width:0}
.pxui .jo-hpbar{flex:1;min-width:24px;height:8px;border:2px solid var(--frame);border-radius:3px;background:#fff;overflow:hidden}
.pxui .jo-hpbar i{display:block;height:100%;background:#48c060}
.pxui .jo-hpbar.mid i{background:#e8b43a}
.pxui .jo-hpbar.low i{background:#e0503c}
.pxui .jo-hpn{flex:none;color:var(--ink-2);font-size:11px;line-height:1;font-variant-numeric:tabular-nums;white-space:nowrap}
.jo-party .jo-hpslot .px-slot-name{align-items:center;height:19px;line-height:19px}
.jo-party .jo-hpslot .px-slot-sub{line-height:16px}
.jo-party .jo-hpslot .jo-hp{margin-top:2px}

/* ------------------------------------------------------------ the Social panel */
/* Social (client/js/social/panel.js; previews v2 h2-h5, p2, p3): the people,
   on screen while you play. A computer's is a floating window (.soc): its
   head is the tabs (dragged by, with them) and ?, – and ✕; the tab under a
   dashed rule; the eight resize edges (.jo-rs) and the grip in the corner.
   "–" folds it (.soc.min) to the head and the channel's last 3 lines
   (.soc-minlines, a press restores it). A touch screen's is the bottom sheet
   (.soc-sheet): ?, the grab and ✕, the tabs as a 44 px strip, the tab; its
   peek is the fold. */
.soc.px-win{position:absolute;z-index:17;display:flex;flex-direction:column;min-width:0;max-width:none;overflow:hidden}
.soc-head{flex:none;display:flex;align-items:center;gap:6px;min-width:0;padding:10px 10px 8px 11px;touch-action:none;-webkit-user-select:none;user-select:none;cursor:move}
.soc-head button{cursor:pointer}
.soc-tabs{display:flex;align-items:center;gap:6px;min-width:0;overflow-x:auto;scrollbar-width:none}
.soc-tabs::-webkit-scrollbar{display:none}
/* the tabs shrink before they're cut: the name ellipsised, the count kept;
   a narrow window (.narrow, under 440 px) packs them tighter */
.soc .soc-tabs .px-pocket{flex:0 1 auto;min-width:0;height:38px;padding:0 11px;font-size:15px}
.soc-tab-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.soc .soc-tabs .px-badge{flex:none;font-size:12px}
.soc-n{flex:none;color:var(--ink-3);font-size:13px;letter-spacing:0}
.soc.narrow .soc-head{gap:4px;padding-left:8px;padding-right:8px}
.soc.narrow .soc-tabs{gap:4px}
.soc.narrow .soc-tabs .px-pocket{gap:4px;padding:0 7px;font-size:13px;letter-spacing:0}
.soc.narrow .soc-x{width:32px;height:32px}
.soc .px-pocket[aria-selected=true] .soc-n{color:var(--ink-2)}
/* The tabs when they don't fit their room (four with counts like 99+, a
   narrow window, a phone: panel.js fitTabs), measured each at its whole
   width (.tabs-measure): first the counts go to the tabs' corners
   (.tabs-tight: the strip makes room above for them), then on a computer
   the tabs get a row of their own under ?, – and ✕ (.tabs-row), sharing it. */
.soc.tabs-measure .soc-tabs .px-pocket{flex:none!important}
.soc.tabs-tight .soc-tabs{margin-top:-9px;padding-top:9px;padding-right:8px}
.soc.tabs-tight .soc-tabs .px-badge,.soc.tabs-tight .soc-tabs .soc-n{position:absolute;top:-9px;right:-8px;min-width:18px;height:18px;border:2px solid var(--cream)}
.soc.tabs-tight .soc-tabs .soc-n{display:inline-flex;align-items:center;justify-content:center;padding:0 4px;border-radius:9px;background:#dfe5ee;color:var(--ink-2);font-size:11px;font-weight:600;line-height:1}
.soc.tabs-row .soc-head{flex-wrap:wrap;row-gap:6px}
.soc.tabs-row .soc-tabs{order:2;flex:1 0 100%}
.soc.tabs-row .soc-tabs .px-pocket{flex:1 1 auto;justify-content:center}
.soc-grow{flex:1}
.soc-x{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:3px solid var(--frame);border-radius:8px;background:#fff;color:var(--ink);font-size:18px;font-weight:700;line-height:1}
@media(hover:hover){.soc-x:hover{border-color:var(--sel-line)}}
.soc-rule{flex:none;height:0;margin:0 10px;border-top:2px dashed var(--rule)}
.soc-body{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;padding-top:4px}
.soc-body>.px-chat-body{flex:1}
/* (the log keeps the kit's top line: the channel tabs or Whispers' friends above it) */
.soc .px-log{margin-bottom:0}
/* the grip: the bottom right corner's resize, drawn (a pointer screen's) */
.soc-grip{position:absolute;right:2px;bottom:1px;z-index:7;display:flex;padding:1px;opacity:.8;cursor:nwse-resize;touch-action:none}
.soc-grip .hub-pix,.soc-grip svg{display:block;pointer-events:none}
@media(pointer:coarse){.soc-grip{display:none}}
/* folded: the head and the last lines, one each */
.soc.min .jo-rs,.soc.min .soc-grip{display:none}
.soc-minlines{flex:none;margin:0;padding:6px 12px 9px;list-style:none;overflow:hidden;font-size:15px;line-height:1.35;cursor:pointer}
.soc-minlines li{overflow:hidden;padding:1px 4px 1px 44px;border-radius:4px;text-indent:-44px;text-overflow:ellipsis;white-space:nowrap}
@media(hover:hover){.soc-minlines li:hover{background:var(--slot)}}
.soc-minlines li.system{color:var(--ch-system)}
.soc-minlines li.jo-guildline{color:var(--ch-guild)}
.soc-minlines li.announce{color:var(--ch-global);font-weight:700}
/* (a name, or a guild's recruiting post, is only the line here: a press restores) */
.soc-minlines .px-who,.soc-minlines .jo-gpost-open{pointer-events:none}
.soc-minlines[data-channel=party] .px-who{color:var(--ch-party)}
.soc-minlines[data-channel=global] .px-who{color:var(--ch-global)}
.soc-minlines[data-channel=whispers] .px-who{color:var(--ch-whisper)}
.soc-minlines[data-channel=trade] .px-who:not(.me){color:var(--ch-trade)}
.soc-minlines[data-channel=guild] .px-who:not(.me){color:var(--ch-guild)}
.soc-minlines .px-who.me{color:var(--blue-dk)}
.soc-minlines.jo-notime li{padding-left:4px;text-indent:0}
.soc-minlines.jo-notime .px-at{display:none}
/* Social → CHAT (client/js/social/chat.js; previews v2 h2, p2). The channel
   tabs: the kit's small tabs, each with its channel's colour, a red count on
   its corner; a strip that scrolls sideways when they don't fit (the edge
   with more to see fades: .jo-more-l / .jo-more-r), the one showing
   scrolled into view. Whispers: "Friends online" (a 3-column grid of
   buttons on a computer, 2 in a narrow window, two rows before it scrolls;
   a strip on a phone), then "Other whispers" and + New, then the log. */
.pxui .jo-chtabs{position:relative;flex:none;display:flex;align-items:center;gap:5px;min-width:0;padding:9px 10px 6px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x}
.pxui .jo-chtabs::-webkit-scrollbar{display:none}
.pxui .jo-chtab{position:relative;flex:none;gap:5px;height:32px;padding:0 9px 0 8px;font-size:14px;letter-spacing:0;text-transform:none}
.pxui .jo-chtab::before{content:"";flex:none;width:8px;height:8px;background:var(--c,var(--ch-nearby))}
.pxui .jo-chtab[data-ch=local]{--c:var(--ch-nearby)}
.pxui .jo-chtab[data-ch=global]{--c:var(--ch-global)}
.pxui .jo-chtab[data-ch=trade]{--c:var(--ch-trade)}
.pxui .jo-chtab[data-ch=party]{--c:var(--ch-party)}
.pxui .jo-chtab[data-ch=guild]{--c:var(--ch-guild)}
.pxui .jo-chtab[data-ch=whispers]{--c:var(--ch-whisper)}
.pxui .jo-chtab[aria-selected=true][data-ch=local]::before{background:#fff}
.pxui .jo-chtab .px-badge{position:absolute;top:-9px;right:-8px;min-width:18px;height:18px;border:2px solid var(--cream)}
.pxui .jo-chtab-name{white-space:nowrap}
@media(hover:hover){.pxui .jo-chtab[aria-selected=false]:hover{border-color:var(--sel-line)}}
.pxui .jo-more-r{-webkit-mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,#000 calc(100% - 28px),transparent)}
.pxui .jo-more-l{-webkit-mask-image:linear-gradient(90deg,transparent,#000 28px);mask-image:linear-gradient(90deg,transparent,#000 28px)}
.pxui .jo-more-l.jo-more-r{-webkit-mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent);mask-image:linear-gradient(90deg,transparent,#000 28px,#000 calc(100% - 28px),transparent)}
.pxui .jo-whispers{flex:0 1 auto;display:flex;flex-direction:column;min-height:0;max-height:50%;padding:0 10px 6px}
.pxui .jo-wgroup{flex:none;display:flex;align-items:center;gap:8px;min-width:0;margin:2px 0 0;color:var(--ink-3);font-size:13px;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap}
.pxui .jo-wgroup b{flex:none;color:var(--ink-2);font-weight:600}
.pxui .jo-wcount{overflow:hidden;letter-spacing:0;text-overflow:ellipsis;text-transform:none}
.pxui .jo-wrule{flex:1;min-width:12px;height:0;border-top:2px dashed var(--rule)}
.pxui .jo-wgrid{flex:0 1 auto;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;min-height:0;max-height:114px;margin:0 -7px 0 -4px;padding:8px 7px 4px 4px;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--ring) transparent}
.soc.narrow .jo-wgrid{grid-template-columns:repeat(2,minmax(0,1fr))}
.pxui .jo-wf{position:relative;display:flex;align-items:center;gap:8px;min-width:0;height:48px;padding:0 8px 0 5px;border:3px solid var(--blue);border-radius:10px;background:var(--slot);color:var(--ink);text-align:left}
.pxui .jo-wf-text{display:flex;flex-direction:column;min-width:0;line-height:1.2}
.pxui .jo-wf-name{overflow:hidden;font-size:15px;font-weight:700;text-overflow:ellipsis;white-space:nowrap}
.pxui .jo-wf-where{display:flex;align-items:center;gap:5px;min-width:0;color:var(--ink-2);font-size:12px;white-space:nowrap}
.pxui .jo-wf-place{overflow:hidden;text-overflow:ellipsis}
.pxui .jo-wf .px-pres{width:8px;height:8px}
.pxui .jo-wf[aria-pressed=true]{border-color:var(--ch-whisper);background:var(--ch-whisper);color:#fff}
.pxui .jo-wf[aria-pressed=true] .jo-wf-where{color:#fbe3f3}
.pxui .jo-wf[aria-pressed=true] .px-pres{box-shadow:0 0 0 1px #fff}
.pxui .jo-wf .px-badge{position:absolute;top:-8px;right:-7px;min-width:20px;height:20px;border:2px solid var(--cream)}
@media(hover:hover){.pxui .jo-wf:hover{border-color:var(--sel-line)}}
.pxui .jo-wnone{grid-column:1/-1;margin:0;padding:2px 2px 4px;color:var(--ink-3);font-size:14px;line-height:1.3;white-space:normal}
.pxui .jo-wother{flex:none;display:flex;align-items:center;gap:6px;margin:0 -10px;padding:2px 10px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;touch-action:pan-x}
.pxui .jo-wother::-webkit-scrollbar{display:none}
.pxui .jo-wkick{flex:none;margin-right:2px;color:var(--ink-3);font-size:12px;letter-spacing:.07em;text-transform:uppercase}
.pxui .jo-whispers .px-chip{height:30px}
.pxui .jo-wsep{flex:none;align-self:stretch;width:0;margin:8px 2px;border-left:2px dashed var(--rule)}
/* a short chat (under 360 px tall: a laptop with a party, a phone on its
   side; chat.js fitWhispers): one sideways strip, no heading, the others and
   + New at its end, the strips a little tighter. A tiny one (.jo-tiny too,
   under 210 px) leaves Whispers' top out while a conversation shows. */
.pxui .jo-short .jo-chtabs{padding-top:9px;padding-bottom:4px}
.pxui .jo-short .jo-whispers{padding-bottom:0}
.pxui .jo-short .jo-wgroup{display:none}
.pxui .jo-short .jo-wgrid{display:flex;align-items:center;max-height:none;padding-top:8px;padding-bottom:3px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x}
.pxui .jo-short .jo-wgrid::-webkit-scrollbar{display:none}
.pxui .jo-short .jo-wf{flex:none;width:150px}
.pxui .jo-short .jo-wnone{flex:none;max-width:280px}
.pxui .jo-short .jo-whispers .px-chip{flex:none}
.jo-rs{position:absolute;z-index:6;touch-action:none}
.jo-rs[data-e=n]{top:0;left:12px;right:12px;height:7px;cursor:ns-resize}
.jo-rs[data-e=s]{bottom:0;left:12px;right:12px;height:7px;cursor:ns-resize}
.jo-rs[data-e=w]{left:0;top:12px;bottom:12px;width:7px;cursor:ew-resize}
.jo-rs[data-e=e]{right:0;top:12px;bottom:12px;width:7px;cursor:ew-resize}
.jo-rs[data-e=nw]{left:0;top:0;width:12px;height:12px;cursor:nwse-resize}
.jo-rs[data-e=ne]{right:0;top:0;width:12px;height:12px;cursor:nesw-resize}
.jo-rs[data-e=sw]{left:0;bottom:0;width:12px;height:12px;cursor:nesw-resize}
.jo-rs[data-e=se]{right:0;bottom:0;width:12px;height:12px;cursor:nwse-resize}

/* Social → FRIENDS and PLAYERS (client/js/social/friends.js, players.js;
   previews v2 h3 and p3, h5): a tab's body under the panel's dashed rule. A
   group's heading is its name, its count, a dashed rule and a word on the
   right ("online first"). */
.soc-tab-body{flex:1;display:flex;flex-direction:column;min-height:0;padding:6px 10px 8px}
.soc-grp{display:flex;align-items:center;gap:8px;margin:2px 4px 5px;color:var(--ink-3);font-size:13px;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap}
.soc-grp b{flex:none;color:var(--ink-2);font-weight:600}
.soc-grp-n,.soc-grp-r{overflow:hidden;letter-spacing:0;text-overflow:ellipsis;text-transform:none}
.soc-grp-rule{flex:1;min-width:12px;height:0;border-top:2px dashed var(--rule)}
/* FRIENDS: the requests, the search and Add friend by name, the groups, Sent;
   one list that scrolls, the footer under it */
.soc-fscroll,.soc-pscroll{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;margin:0 -6px;padding:2px 6px 4px;scrollbar-width:thin;scrollbar-color:var(--ring) transparent}
.soc-reqlist,.soc-flist,.soc-sentlist{display:flex;flex-direction:column;gap:6px;margin:0 0 8px;padding:0;list-style:none}
.soc-req{padding:5px 8px 5px 6px;border:3px solid var(--blue);border-radius:12px;background:var(--slot)}
.soc-req-row{display:flex;flex-wrap:wrap;align-items:center;gap:6px 9px;min-height:42px}
.soc-req .px-face{width:42px;height:42px}
.soc-req-t{flex:1;display:flex;flex-direction:column;min-width:0;line-height:1.25}
/* (the name stays whole: "wants to be friends" gives way; the name is cut
   only when it alone is wider than the line) */
.soc-req-m{display:flex;min-width:0;font-size:16px;white-space:nowrap}
.soc-req-name{flex:none;max-width:100%;min-width:0;overflow:hidden;text-overflow:ellipsis}
.soc-req-verb{flex:0 1000 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:pre}
/* (a raid invite's line, "Kai invited you to a ★★★★ Tyranitar raid on Route 42.", wraps) */
.soc-rinv .soc-req-m{white-space:normal}
.soc-req-what{min-width:0;overflow-wrap:break-word}
.soc-req-s{display:flex;align-items:center;gap:6px;min-width:0;color:var(--ink-2);font-size:13px;white-space:nowrap}
.soc-req-where{overflow:hidden;text-overflow:ellipsis}
.soc-req-left{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:2px;color:var(--ink-2);font-size:13px;line-height:1.15;white-space:nowrap}
.soc-req-left b{color:var(--ink)}
.soc-req-acts{flex:none;display:flex;gap:5px}
.soc-req-acts .px-btn{height:36px;padding:0 10px;font-size:14px}
.soc-req .px-btn[aria-disabled=true]{opacity:.5;cursor:default}
.soc-why{margin:4px 2px 0;color:var(--ink-3);font-size:13px;line-height:1.3}
.soc-tools{display:flex;align-items:center;gap:8px;margin:2px 0 8px}
.soc-tools .px-search{flex:0 1 178px;min-width:120px;margin:0}
.soc-tools .px-field,.soc-ptools .px-field{height:36px;font-size:14px}
.soc-addf{flex:1;display:flex;align-items:center;gap:6px;min-width:0;padding:3px 3px 3px 10px;border:3px solid var(--blue);border-radius:10px;background:var(--sky)}
.soc-kick{flex:none;color:var(--ink);font-size:12px;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap}
.soc-addf .px-field{flex:1;width:0;min-width:0;height:32px}
.soc-addf .px-btn{height:32px;padding:0 10px;font-size:14px}
.soc-friend,.soc-sentrow{display:flex;align-items:center;gap:10px;min-height:58px;padding:4px 6px;border:3px solid var(--blue);border-radius:12px;background:var(--slot)}
.soc-friend.off{border-color:var(--plain-line);background:var(--plain);color:var(--ink-2)}
.soc-face-box{display:contents}
.soc-friend .px-face{width:40px;height:40px}
.soc-f-t{flex:1;display:flex;flex-direction:column;min-width:0;line-height:1.25}
.soc-f-n{display:flex;align-items:baseline;gap:8px;min-width:0;font-size:16px;white-space:nowrap}
.soc-f-name{overflow:hidden;font-weight:600;text-overflow:ellipsis}
.soc-f-n .jo-gtag{font-size:13px}
.soc-f-sub{display:flex;align-items:center;gap:6px;min-width:0;color:var(--ink-2);font-size:13px;white-space:nowrap}
.soc-f-where{overflow:hidden;text-overflow:ellipsis}
.soc-f-note{overflow:hidden;color:var(--ink-3);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.soc-sq,.soc-more{flex:none;display:inline-flex;align-items:center;justify-content:center;width:36px;height:36px;padding:0;border:3px solid var(--blue);border-radius:8px;background:var(--sky);color:var(--blue-dk);font-size:15px;font-weight:700;line-height:1}
.soc-friend.off .soc-sq{border-color:var(--plain-line);background:#f7f7f0}
@media(hover:hover){.soc-sq:hover,.soc-more:hover,.soc-tog:hover{border-color:var(--sel-line)}}
.soc-sentrow{min-height:48px;border-style:dashed;border-color:var(--plain-line);background:var(--plain);color:var(--ink-2)}
.soc-sentrow .px-face{width:32px;height:32px}
.soc-foot,.soc-pfoot{flex:none;display:flex;align-items:center;gap:8px;min-height:30px;padding-top:6px;border-top:2px dashed var(--rule);color:var(--ink-2);font-size:13px}
.soc-foot b{color:var(--ink)}
.soc-foot>span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
/* PLAYERS (h5): the search and the toggles; TRAINER · WHERE · TIER; a row
   each (near you: tinted, NEAR YOU); "Nearest first · 14 of 214 online" and
   More */
.soc-ptools{display:flex;align-items:center;gap:6px;margin:2px 0 8px}
.soc-ptools .px-search{flex:1;min-width:0;margin:0}
.soc-togs{flex:none;display:flex;gap:6px}
.soc-tog{height:36px;padding:0 9px;font-size:13px;text-transform:none}
.soc-cols,.soc-player{display:grid;grid-template-columns:28px minmax(0,150px) minmax(0,1fr) 26px 30px;align-items:center;gap:9px}
.soc-cols{padding:0 8px 3px;color:var(--ink-3);font-size:11px;letter-spacing:.07em;text-transform:uppercase}
.soc-plist{display:flex;flex-direction:column;gap:4px;margin:0;padding:0;list-style:none}
.soc-player{min-height:36px;padding:2px 5px 2px 6px;border:2px solid var(--rule);border-radius:8px;background:#fff;font-size:15px}
.soc-player.near{border-color:#a8d4a0;background:#f3fbef}
.soc-player.you{border-color:var(--blue);background:var(--slot)}
.soc-player .px-face{width:28px;height:28px;border-radius:5px}
.soc-p-nm{display:flex;align-items:center;gap:6px;min-width:0;white-space:nowrap}
.soc-p-name{overflow:hidden;font-weight:700;text-overflow:ellipsis}
.soc-p-nm .jo-gtag{font-size:13px}
.soc-fr{flex:none;display:inline-block;width:7px;height:7px;background:var(--online)}
.soc-p-where{display:flex;align-items:center;gap:6px;min-width:0;overflow:hidden;font-size:14px;white-space:nowrap}
.soc-p-place{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.soc-p-act{flex:0 2 auto;min-width:0;overflow:hidden;color:var(--ink-3);text-overflow:ellipsis}
.soc-nearc{flex:none;display:inline-flex;align-items:center;height:18px;padding:0 5px;border:2px solid #3d7a32;border-radius:4px;background:#e4f4dc;color:#2a5a26;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase}
.soc-p-tier{display:flex;justify-content:center;color:var(--ink-3)}
.soc-ball{display:block;width:24px;height:24px;image-rendering:pixelated}
.soc-player .soc-more{width:30px;height:26px;border-width:2px;border-radius:5px;color:var(--ink);font-size:13px}
.soc-pfoot{color:var(--ink-3)}
.soc-pmore{height:30px;font-size:13px}
/* Social → PARTY (client/js/social/party-tab.js; preview v2 h4 and its
   no-party inset): one list that scrolls. The party invites atop it are
   FRIENDS' request rows in the urgent card's red, with the "Party invite"
   chip, "ends in 0:48" and the bar draining, and under the row either
   Accept's reason (greyed) or what accepting does. "Your party": a row per
   member (face, crown, YOU, where; the lead Pokémon's box: its icon, name,
   Lv, HP bar and "88/96"; ⋯), the invites out dashed, the free places
   dashed; Invite by name and Leave party; the options in a blue box (the
   row in use orange, as a game's Options menu). No party: your slot and
   three "?", Start a party, Invite by name. */
.soc-kchip{flex:none;display:inline-flex;align-items:center;align-self:center;height:18px;margin-right:6px;padding:0 5px;border:2px solid currentColor;border-radius:4px;background:#fff;color:var(--danger);font-size:11px;font-weight:600;letter-spacing:.06em;text-transform:uppercase}
.soc-req.soc-pinv{border-color:var(--red-edge);background:#fdf1ee;box-shadow:inset 0 0 0 2px #f6d3cc}
.soc-meter{display:block;width:62px;height:8px;border:2px solid var(--frame);border-radius:3px;background:#fff;overflow:hidden}
.soc-meter i{display:block;height:100%;background:#48c060;transition:width 1s linear}
.soc-pinv .soc-req-left{gap:4px}
.soc-pnote{margin:4px 2px 0 50px;padding-top:4px;border-top:2px dashed #f0c4bb;color:var(--red-dk);font-size:13px;line-height:1.3}
.soc-pinv .soc-why{margin-left:50px}
.soc-psect{display:flex;align-items:baseline;gap:8px;min-width:0;margin:4px 4px 6px;white-space:nowrap}
.soc-psect h3{flex:none;margin:0;color:var(--ink);font-size:15px;letter-spacing:.06em;text-transform:uppercase}
.soc-psect-n,.soc-psect-r{color:var(--ink-3);font-size:13px;letter-spacing:.07em;text-transform:uppercase}
.soc-psect-n{flex:none}
.soc-psect-r{min-width:0;overflow:hidden;text-overflow:ellipsis}
.soc-pmlist{display:flex;flex-direction:column;gap:6px;margin:0 0 6px;padding:0;list-style:none}
.soc-pm{display:flex;align-items:center;gap:10px;min-height:58px;padding:4px 8px 4px 6px;border:3px solid var(--blue);border-radius:12px;background:var(--slot)}
.soc-pm.sel{border-color:var(--sel-line);background:var(--sel)}
.soc-pm.off{border-color:var(--plain-line);background:var(--plain);color:var(--ink-2)}
.soc-pm.pending{min-height:48px;border-style:dashed;border-color:var(--plain-line);background:var(--plain);color:var(--ink-2)}
.soc-pm .px-face{width:44px;height:44px}
.soc-pm.pending .px-face{width:32px;height:32px}
.soc-pm-t{flex:0 1 176px;display:flex;flex-direction:column;min-width:0;line-height:1.25}
/* (an invite out has no lead box: its words take the row) */
.soc-pm.pending .soc-pm-t{flex:1 1 auto}
.soc-pm-n{display:flex;align-items:center;gap:5px;min-width:0;font-size:16px;white-space:nowrap}
.soc-pm-name{min-width:0;overflow:hidden;font-weight:700;text-overflow:ellipsis}
.soc-pm-n .px-crown,.soc-pm-n .px-you{flex:none}
.soc-pm-sub{display:flex;align-items:center;gap:6px;min-width:0;color:var(--ink-2);font-size:13px;white-space:nowrap}
.soc-pm-where{min-width:0;overflow:hidden;text-overflow:ellipsis}
.soc-pm-lead{flex:1;display:flex;align-items:center;gap:7px;min-width:0;height:40px;padding:0 8px 0 4px;border:2px solid var(--rule);border-radius:8px;background:#fff;font-size:14px;white-space:nowrap}
.soc-pm.sel .soc-pm-lead{background:#fff8ec}
.soc-pm-lead .jo-mon{flex:none;width:30px;height:30px}
.soc-pm-mon{flex:0 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis}
.soc-pm-lv{flex:none;color:var(--ink-3)}
.soc-pm-lead .jo-hp{flex:1 1 90px}
.soc-pm-lead .jo-hpbar{height:10px}
.soc-pm-lead .jo-hpn{font-size:13px}
.soc-pm .soc-more,.soc-pm .soc-cancel{flex:none;margin-left:auto}
.soc-pfree{display:flex;align-items:center;justify-content:center;gap:8px;min-height:42px;margin:0 0 8px;padding:4px 10px;border:3px dashed var(--plain-line);border-radius:12px;background:var(--plain);color:var(--ink-3);font-size:14px;line-height:1.3;text-align:center}
.soc-pacts{display:flex;align-items:center;gap:6px;margin:2px 0 6px}
.soc-pinvf{flex:1;display:flex;gap:6px;min-width:0;margin:0}
.soc-pinvf .px-field{flex:1;width:0;min-width:0;height:36px;font-size:14px}
.soc-pacts .px-btn,.soc-pnone .soc-pinvf .px-btn{height:36px;padding:0 12px;font-size:14px}
.soc-pinv-go[aria-disabled=true],.soc-promote[aria-disabled=true]{opacity:.5;cursor:default}
.soc-leave{flex:none;border-color:var(--danger);background:#fdf1ee;color:var(--danger)}
.soc-pinv-why{margin:0 4px 8px}
.soc-popts{display:flex;flex-direction:column;gap:2px;margin-top:4px;padding:4px 6px 6px;border:3px solid var(--blue);border-radius:12px;background:#eef5fc}
.soc-orow{position:relative;display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0;min-height:40px;padding:2px 4px 2px 15px;border-radius:8px}
/* (the ▶ in a column of its own: a press that focuses a control moves
   nothing, so its click lands where it was pressed) */
.soc-orow:focus-within{background:var(--sel);box-shadow:inset 0 0 0 3px var(--sel-line)}
.soc-orow:focus-within::before{content:"▶";position:absolute;left:4px;top:50%;transform:translateY(-50%);font-size:11px;line-height:1}
.soc-orow-l{display:flex;flex-direction:column;min-width:0;line-height:1.25}
.soc-orow-l b{font-size:14px;font-weight:600;letter-spacing:.02em;text-transform:uppercase}
.soc-orow-l small{color:var(--ink-3);font-size:13px}
.soc-otwo{display:flex;flex-wrap:wrap;gap:2px 6px}
.soc-otwo>.soc-orow{flex:1 1 auto}
.soc-otwo .soc-orow-l b{white-space:nowrap}
.soc-seg{flex:none;display:inline-flex;border:3px solid var(--blue);border-radius:8px;background:var(--sky);overflow:hidden}
.soc-segb{height:28px;padding:0 8px;border:0;border-radius:0;background:none;color:var(--ink);font-size:12px;font-weight:600;letter-spacing:.02em;text-transform:uppercase;white-space:nowrap}
.soc-segb+.soc-segb{border-left:3px solid var(--blue)}
.soc-segb[aria-pressed=true]{background:var(--ink);color:#fff}
.soc-segb[aria-disabled=true]{background:var(--plain);color:#8a92a0;cursor:default}
.soc-segb[aria-pressed=true][aria-disabled=true]{background:#8a92a0;color:#fff}
.soc-seg .soc-segb:focus-visible{outline:3px solid var(--sel-line);outline-offset:-4px}
@media(hover:hover){.soc-segb:not([aria-disabled=true]):not([aria-pressed=true]):hover{background:var(--sel)}}
.soc-sw{flex:none;display:inline-flex;align-items:center;justify-content:center;width:66px;height:32px;padding:0;border:3px solid var(--plain-line);border-radius:6px;background:var(--plain);color:var(--ink-3);font-size:15px;font-weight:600}
.soc-sw[aria-checked=true]{border-color:var(--frame);background:var(--blue);color:#fff}
.soc-obtns{display:flex;gap:6px;padding:4px 2px 0}
.soc-obtns .px-btn{flex:1;height:34px;font-size:13px}
.soc-lead-why{margin:4px 6px 0}
.soc-pnone{display:flex;flex-direction:column;gap:8px;padding:6px 2px 4px}
.soc-pnone-top{display:flex;align-items:center;gap:10px}
.soc-pnone-top b{font-size:17px}
.soc-pslots{display:flex;gap:5px}
.soc-pslots>span{flex:1;display:flex;align-items:center;justify-content:center;height:40px;border:3px dashed var(--plain-line);border-radius:8px;background:var(--plain);color:var(--ink-3);font-size:18px}
.soc-pslots>span.mine{border:3px solid var(--sel-line);background:var(--sel)}
.soc-pslots .px-face{width:32px;height:32px}
.soc-pstart{height:40px}
.soc-pnone-hint{font-size:13px}

/* The tabs by their own width (a phone upright, p3; a narrow window: under
   470 px): FRIENDS' Accept and Decline under the request, the search and
   Add friend by name stacked; PLAYERS in one column, where under the name,
   the toggles under the search; PARTY's invites the same, a member's lead
   Pokémon under their name, Invite by name over Leave party, the options in
   one column. A phone on its side keeps the wide rows. */
.soc-friends,.soc-players,.soc-party{container:soc-tab/inline-size}
@container soc-tab (max-width:470px){
.soc-req-acts{flex:1 0 100%;display:flex;gap:6px}
.soc-req-acts .px-btn{flex:1}
.soc-tools{flex-direction:column;align-items:stretch;gap:6px}
.soc-tools .px-search{flex:none}
.soc-addf{gap:6px;padding:0;border:0;background:none}
.soc-kick{display:none}
.soc-cols{display:none}
.soc-player{grid-template-columns:28px minmax(0,1fr) 26px auto;grid-template-rows:auto auto;row-gap:0;padding:3px 5px 3px 6px}
.soc-player .px-face{grid-row:1/3}
.soc-p-where{grid-column:2;grid-row:2;font-size:13px}
.soc-p-tier{grid-column:3;grid-row:1/3}
.soc-player .soc-more{grid-column:4;grid-row:1/3}
.soc-ptools{flex-wrap:wrap}
.soc-ptools .px-search{flex:1 0 100%}
.soc-togs{flex:1}
.soc-tog{flex:1}
.soc-psect-r{display:none}
.soc-pm{flex-wrap:wrap;row-gap:6px}
.soc-pm-t{flex:1 1 0}
.soc-pm-lead{order:3;flex:1 0 100%}
.soc-pnote{margin-left:2px}
.soc-pinv .soc-why{margin-left:2px}
.soc-kchip{display:none}
.soc-pinv .soc-req-s,.soc-pinv .soc-req-where{white-space:normal}
.soc-pacts{flex-wrap:wrap}
.soc-pinvf{flex:1 0 100%}
.soc-leave{flex:1}
.soc-otwo>.soc-orow{flex-basis:100%}
}
/* (narrower still, a 320 px window: what they're doing goes, the place and
   NEAR YOU stay; PARTY's "2 · each ends in 60 seconds" wraps whole, and
   "Who invites" wraps beside its pair instead of running into it) */
@container soc-tab (max-width:360px){
.soc-p-act{display:none}
.soc-pinvs .soc-grp{white-space:normal}
.soc-pinvs .soc-grp-n{overflow:visible}
.soc-pinvs .soc-grp-rule{display:none}
.soc-otwo .soc-orow-l b{white-space:normal}
}

/* ------------------------------------------------------------ the phone sheet */
.soc.soc-sheet{left:6px;right:6px;top:auto;bottom:var(--sheet-bottom,0px);height:var(--sheet-h,190px);touch-action:manipulation}
.soc-sheet .soc-head{flex-direction:column;align-items:stretch;gap:0;padding:0;cursor:default}
.soc-top{display:flex;align-items:center;gap:8px;padding:4px 8px 2px}
.soc-top .px-grab{flex:1;height:44px}
.soc-sheet .soc-tabs{gap:4px;padding:2px 8px 8px}
.soc-sheet .soc-tabs .px-pocket{flex:1 0 auto;justify-content:center;gap:4px;padding:0 8px;font-size:13px;letter-spacing:0}
.soc-sheet .soc-rule{margin:0 8px}
.soc-sheet .soc-minlines{padding:5px 10px 8px}
.soc-sheet .px-log{margin:0 6px;padding:2px 4px;border-top-width:2px}
/* (p2) the channel tabs and the friends: strips a finger scrolls sideways;
   a friend is a tile, their face over the square and their name; the other
   conversations and + New at the strip's end */
.soc-sheet .jo-chtabs{gap:4px;padding:6px 8px 8px}
.pxui.touch .jo-chtab{min-height:44px;height:44px;padding:0 10px;font-size:15px}
.pxui.touch .jo-chtab .px-badge{top:-5px;right:-5px}
.soc-sheet .jo-whispers{padding:0 8px 4px}
.soc-sheet .jo-wgroup{font-size:12px}
.soc-sheet .jo-wgrid{display:flex;align-items:center;gap:6px;max-height:none;margin:0 -8px;padding:6px 8px;overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;touch-action:pan-x}
.soc-sheet .jo-wgrid::-webkit-scrollbar{display:none}
.soc-sheet .jo-wf{flex:none;flex-direction:column;justify-content:center;gap:2px;width:62px;height:66px;padding:0 3px}
.soc-sheet .jo-wf-text{flex-direction:row-reverse;align-items:center;gap:4px;max-width:100%}
.soc-sheet .jo-wf-name{font-size:13px;font-weight:600}
.soc-sheet .jo-wf-place{display:none}
.soc-sheet .jo-wf .px-pres{width:7px;height:7px}
.soc-sheet .jo-wf .px-badge{top:-4px;right:-4px;min-width:18px;height:18px}
.soc-sheet .jo-wnone{flex:none;max-width:250px}
.soc-sheet .jo-whispers .px-chip{flex:none}
/* (a short sheet: a phone on its side, or half up: compact tiles, the face
   beside the name) */
.soc-sheet .jo-short .jo-chtabs{padding-top:6px;padding-bottom:4px}
.soc-sheet .jo-short .jo-wgrid{padding-top:6px;padding-bottom:2px}
.soc-sheet .jo-short .jo-wf{flex-direction:row;justify-content:flex-start;gap:6px;width:auto;max-width:150px;height:44px;padding:0 10px 0 4px}
.soc-sheet .jo-short .jo-wf .px-face{width:32px;height:32px}
.soc-sheet .jo-short .jo-wf .px-badge{top:-6px;right:-6px}
.soc-sheet .px-composer{padding:4px 8px 6px}
.soc-sheet .px-switch{text-transform:none;font-size:15px}
/* touch: the tabs and ?, ✕ are 44 px targets */
.pxui.touch .soc .px-pocket,.pxui.touch .soc-x{min-height:44px;height:44px}
.pxui.touch .soc-x{width:44px}
/* touch: FRIENDS' and PLAYERS' buttons, the toggles and ⋯ are 44 px targets */
.pxui.touch .soc-sq,.pxui.touch .soc-more,.pxui.touch .soc-tog,.pxui.touch .soc-req .px-btn,.pxui.touch .soc-cancel,.pxui.touch .soc-pmore{min-height:44px;height:44px}
.pxui.touch .soc-sq,.pxui.touch .soc-more{width:44px}
.pxui.touch .soc-tools .px-field,.pxui.touch .soc-ptools .px-field{height:44px}
.pxui.touch .soc-player{min-height:48px}
/* touch: PARTY's switch and pairs (the rest are the kit's buttons and field) */
.pxui.touch .soc-sw,.pxui.touch .soc-segb{min-height:44px;height:44px}
.pxui.touch .soc-sw{width:72px}
/* (wide rows on a touch screen, a phone on its side: the 44 px ⋯ its own column) */
@container soc-tab (min-width:471px){
.pxui.touch .soc-cols,.pxui.touch .soc-player{grid-template-columns:28px minmax(0,150px) minmax(0,1fr) 26px 44px}
}

/* ------------------------------------------------------------ pixel pads */
/* The kit's pads in the bottom corners on touch screens (input.js wires
   them: the D-pad follows the finger, A, B, L, R, SELECT and START fire and
   are held in input.heldKeys). They stay over everything of the game's
   (field 0, battle 25, evolution 33, menu screens 34) and the game pictures
   are laid out in the room they leave (viewport.js); the DOM windows and the
   message box keep out of their way through --free-* (ui/layout.js). The
   SOCIAL key sits on top of the D-pad so the middle stays free: a phone on
   its side fits a 480 x 320 picture between the pads. Inside the safe area;
   faded out while a text field has the keyboard.
   Hub → Settings → Game → Phone controls (input.js padLook; preview g4):
   the keys' size (--pad the D-pad's keys, --fk the face keys' plate, --rb B,
   A 6 px more): Small 40, Normal 46 (as before), Large 56 where it fits:
   a phone under ~370 px across gets the largest keys that fit between
   Normal's and Large's (--pad-x: the room past Normal's 304 px of plates and
   gap; each 50 px of it is all of Large), never smaller than Normal; see-through
   (--pad-alpha on the plates: faded, they still take every tap);
   left-handed (.pad-left: the sides mirrored, the D-pad and SOCIAL over it
   on the right, A the outer key on the left). */
#touch.jo-pads{--pad:46px;--fk:140px;--rb:52px;--dpad:calc(3 * var(--pad) + 20px);--pad-l:max(8px,env(safe-area-inset-left,0px));--pad-r:max(8px,env(safe-area-inset-right,0px));--pad-b:calc(10px + env(safe-area-inset-bottom,0px));position:absolute;left:0;right:0;bottom:0;top:auto;height:auto;z-index:35;display:flex;justify-content:space-between;align-items:flex-end;gap:6px;padding:0 var(--pad-r) var(--pad-b) var(--pad-l);pointer-events:none;background:none;transition:opacity .15s;-webkit-user-select:none;user-select:none;-webkit-touch-callout:none;-webkit-tap-highlight-color:transparent}
#touch.jo-pads>.px-dpad,#touch.jo-pads>.px-face-keys{pointer-events:auto;touch-action:none}
#touch.jo-pads .px-face-keys{width:var(--fk)}
#touch.jo-pads .px-key.round{width:var(--rb);height:var(--rb)}
#touch.jo-pads .px-key.A{width:calc(var(--rb) + 6px);height:calc(var(--rb) + 6px)}
#touch.jo-pads.pad-small{--pad:40px;--fk:130px;--rb:46px}
#touch.jo-pads.pad-large{--pad-x:calc(100vw - var(--pad-l) - var(--pad-r) - 304px);--pad:clamp(46px,calc(46px + var(--pad-x) / 5),56px);--fk:clamp(140px,calc(140px + var(--pad-x) * .4),160px);--rb:clamp(52px,calc(52px + var(--pad-x) * .16),60px)}
#touch.jo-pads>.px-dpad,#touch.jo-pads>.px-face-keys,#touch.jo-pads .jo-lane{opacity:var(--pad-alpha,1)}
#touch.jo-pads.pad-left{flex-direction:row-reverse}
#touch.jo-pads.pad-left .jo-lane{left:auto;right:var(--pad-r)}
#touch.jo-pads.pad-left .px-face-keys .ab{flex-direction:row-reverse}
#touch.jo-pads .px-key{-webkit-tap-highlight-color:transparent}
#touch.jo-pads .jo-lane{position:absolute;left:var(--pad-l);bottom:calc(var(--pad-b) + var(--dpad) + 6px);width:var(--dpad);display:flex;justify-content:center;pointer-events:none}
#touch.jo-pads .jo-lane>*{pointer-events:auto}
#touch.jo-pads .jo-lane .px-key{height:44px;min-width:96px;padding:0 14px;font-size:13px;border-radius:6px;touch-action:manipulation}
#touch.jo-pads .jo-lane .social{position:relative;border-color:#e08a3a;background:#fcd9a0;box-shadow:none;font-weight:600}
#touch.jo-pads .jo-lane .social[aria-pressed=true]{border-color:var(--frame)}
#touch.jo-pads.typing{opacity:0}
#touch.jo-pads.typing *{pointer-events:none!important}
/* A tablet: bigger keys (Small and Large scaled from its Normal). */
@media (min-width:900px) and (min-height:640px){#touch.jo-pads{--pad:54px;--fk:156px}#touch.jo-pads.pad-small{--pad:46px;--fk:144px;--rb:50px}#touch.jo-pads.pad-large{--pad:64px;--fk:176px;--rb:62px}}

/* ------------------------------------------------------------ menus, invites, toasts */
.jo-pop{position:absolute;z-index:46}
.jo-pop.px-menu{max-height:calc(100% - 16px);overflow-y:auto}
.jo-pop .px-menu-head .jo-head-text{display:flex;flex-direction:column;min-width:0}
.jo-pop .px-item:disabled{opacity:.5;cursor:default}
/* A dashed rule between a menu's groups (menu.js { sep: true }); a radio
   item's ✓ (menuitemradio, checked). */
.jo-pop .jo-sep{height:0;margin:4px 6px;border-top:2px dashed var(--rule)}
.jo-pop .px-item .jo-ck{margin-left:auto;color:var(--blue-dk);font-weight:700}
/* A greyed item (menu.js: aria-disabled, still focusable, pressing it does
   nothing) in h5's grey, its reason under its label. The one player menu
   (menu.js openPlayerMenu; previews v2 h5): 300 px; Battle and Trade greyed
   as a pair on a light box with one reason under both; beside the window it
   came from, a pointer at the row (.jo-beside-r / -l, --ay: its height);
   44 px items on touch, the pair's too (plan note 30). */
.jo-pop .px-item[aria-disabled=true]{color:#8a92a0;cursor:default}
.jo-pop.jo-pmenu{width:min(300px,calc(100% - 16px))}
.jo-pop.jo-pmenu .jo-why{max-width:none}
.jo-pop .jo-pair{margin:2px 0;padding:3px 0 5px;border-radius:8px;background:#f1f1e8;box-shadow:inset 0 0 0 2px #dcdcd0}
.jo-pop .jo-pair .px-item{min-height:28px}
.jo-pop .jo-pair .jo-why{margin:0;padding:0 8px 0 26px}
.jo-pop.px-menu.jo-beside-r,.jo-pop.px-menu.jo-beside-l{overflow:visible}
.jo-pop.jo-beside-r::before,.jo-pop.jo-beside-l::before{content:"";position:absolute;top:calc(var(--ay,28px) - 9px);border:9px solid transparent}
.jo-pop.jo-beside-r::before{left:-15px;border-right-color:var(--frame);border-left-width:0}
.jo-pop.jo-beside-l::before{right:-15px;border-left-color:var(--frame);border-right-width:0}
.pxui.touch .jo-pop .px-item{min-height:44px}
/* The You menu (social/you.js; previews v2 h1, p1): your face, name, guild
   tag and how friends see you; Status (Online, Away, Busy, Hidden: the one
   ticked in the kit's selected look), My trainer card, Log out. Its items
   are 44 px on touch like every menu's (social-ui.css .pxui.touch .px-item). */
.jo-pop.jo-you{width:min(330px,calc(100% - 16px))}
.jo-you .px-item{min-height:38px}
.jo-you .px-item[aria-checked=true]{background:var(--sel);box-shadow:inset 0 0 0 2px var(--sel-line)}
.jo-you .jo-you-st{display:flex;align-items:center;gap:8px;flex:1;min-width:0}
.jo-you .jo-you-st .jo-pix{margin-left:-2px}
.jo-you .jo-you-sub{margin-left:auto;padding-left:8px;color:var(--ink-3);font-size:13px;white-space:nowrap}
.jo-you .jo-you-name{display:flex;align-items:center;gap:6px;min-width:0}
.jo-you .jo-you-name>span:first-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.jo-you .jo-you-line{display:flex;align-items:center;gap:6px;min-width:0}
.jo-you .jo-you-line .px-state{overflow:hidden;text-overflow:ellipsis}
.jo-you .gd-tag{height:18px;padding:0 4px;font-size:11px}
/* its guild tag in the guild's colour (guild.css's tokens) */
.jo-you .c-red{--c:#e0523f;--o:#7c2216;--l:#f38775}
.jo-you .c-orange{--c:#f08a2c;--o:#7a3a08;--l:#f7b268}
.jo-you .c-yellow{--c:#e8c23a;--o:#6e5608;--l:#f5dc78}
.jo-you .c-green{--c:#4caf50;--o:#22602a;--l:#80d080}
.jo-you .c-teal{--c:#2ba8a0;--o:#0f4e4a;--l:#62cbc3}
.jo-you .c-blue{--c:#3f7fd0;--o:#1e467e;--l:#74a8ec}
.jo-you .c-purple{--c:#8a5cc7;--o:#452a70;--l:#ad89e2}
.jo-you .c-pink{--c:#e0609a;--o:#7a1f4a;--l:#f08fbb}
.jo-prompt{width:min(340px,calc(100% - 16px));padding:10px}
.jo-prompt form{display:flex;gap:6px}
.jo-prompt .px-field{flex:1}
.jo-prompt .px-hint{margin-top:6px}
/* The toast stack (menu.js toast) and, first in it, the urgent cards
   (social/alerts.js): top centre under the bar, in the room between the pads
   (--free-*: ui/layout.js), over Hub (#windows 20, its card's scrim too), a
   battle (25-26) and the game's message box (30). On a phone alerts.js puts
   it under the party row (p5), under the Social sheet's tabs when the sheet
   is up over the cards, and under a phone Hub's tabs while Hub is open (a
   message never covers them). Plain toasts stay 400 px wide. */
.jo-stack{position:absolute;left:calc(var(--free-l,0px) + (100% - var(--free-l,0px) - var(--free-r,0px)) / 2);top:calc(var(--bar-bottom) + 8px);transform:translateX(-50%);z-index:46;display:flex;flex-direction:column;align-items:center;gap:8px;width:min(600px,calc(100% - var(--free-l,0px) - var(--free-r,0px) - 16px))}
.jo-stack .px-toast{max-width:min(100%,400px);text-align:center}
/* "A new version is ready" (client/js/update.js): in the stack, after the urgent cards; wraps on a phone */
.jo-update{display:flex;align-items:center;gap:10px;width:100%;max-width:560px;padding:8px 10px 8px 14px;box-sizing:border-box}
.jo-update[hidden]{display:none}
.jo-update-words{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px;text-align:left}
.jo-update-line{font-size:15px;font-weight:700;line-height:1.25}
.jo-update-sub{font-size:13px;line-height:1.3;opacity:.8}
.jo-update .px-btn{flex:none;min-height:40px}
@media (max-width:440px){.jo-update{flex-wrap:wrap}.jo-update-words{flex-basis:100%}}
/* The urgent cards (social/alerts.js; previews v2 h10, p5; hub2.css .inv2): a
   party invite, a trade, a battle. The kit's alert window (its red ring):
   the face, the kicker and time, the title, where it also waits, a greyed
   Accept's reason or what accepting does, Accept (red) and Decline, the 60 s
   bar at the foot. Newest on top, up to 3. The stack ends in the free room
   (alerts.js: its max-height): the cards give way to the messages under
   them, down to the newest card whole (min-height), and scroll. In a narrow
   room (under 480 px: a phone) Accept and Decline go under the words, full
   width (p5). */
.jo-urgent{flex:0 1 auto;min-height:0;display:flex;flex-direction:column;gap:8px;width:100%;overflow-y:auto;overscroll-behavior:contain;container-type:inline-size;scrollbar-width:thin}
.jo-stack>:not(.jo-urgent){flex:none}
.jo-urgent:empty{display:none}
.jo-ucard{position:relative;flex:none;display:flex;align-items:center;gap:10px;width:100%;padding:10px 12px 18px;text-align:left}
.jo-ucard:focus{outline:none}
.jo-ucard:focus-visible{outline:3px solid var(--sel-line);outline-offset:1px}
.jo-uface{flex:none;display:flex}
.jo-uface .px-face{width:44px;height:44px}
.jo-ut{flex:1;min-width:0;display:flex;flex-direction:column;line-height:1.3}
.jo-ukick{color:var(--danger);font-size:13px;font-weight:600;letter-spacing:.04em;font-variant-numeric:tabular-nums}
.jo-utitle{font-size:16px;overflow-wrap:anywhere}
.jo-utitle .jo-gtag{font-size:14px}
.jo-usub{color:var(--ink-2);font-size:13px}
/* the time a screen reader hears once (the ticking one is aria-hidden) */
.jo-usr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.jo-uwhy{margin:2px 0 0;color:var(--red-dk);font-size:13px;line-height:1.3}
.jo-unote{margin:4px 0 0;padding-top:4px;border-top:2px dashed #f0c4bb;color:var(--red-dk);font-size:13px;line-height:1.3}
.jo-uacts{flex:none;display:flex;gap:6px}
.jo-ucard .px-btn{height:40px;padding:0 12px}
.jo-ucard .px-btn[aria-disabled=true]{border-color:var(--plain-line);background:var(--plain);color:#8a92a0;box-shadow:none;cursor:default}
.jo-utrack{position:absolute;left:14px;right:14px;bottom:7px;height:5px;overflow:hidden;border-radius:2px;background:#dfe3da}
.jo-utrack i{display:block;height:100%;background:#48c060;transition:width 1s linear}
@container (max-width:480px){
.jo-ucard{flex-wrap:wrap}
.jo-uacts{flex:1 0 100%}
.jo-uacts .px-btn{flex:1;height:44px}
}
.pxui.touch .jo-ucard .px-btn{min-height:44px}
/* The Social sheet up on a phone (alerts.js place: .jo-compact): one row
   over the chat's log, clear of its channel tabs and composer (Task 12's
   review, Minor 3): a smaller face, the kicker and the title on a line each,
   no place line, Accept and Decline beside them (44 px); a greyed reason
   still shows. */
.jo-stack.jo-compact .jo-ucard{flex-wrap:nowrap;gap:8px;padding:6px 8px 12px}
.jo-stack.jo-compact .jo-uface .px-face{width:32px;height:32px}
.jo-stack.jo-compact .jo-ukick{font-size:12px}
.jo-stack.jo-compact .jo-utitle{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.jo-stack.jo-compact .jo-usub{display:none}
.jo-stack.jo-compact .jo-uacts{flex:none}
.jo-stack.jo-compact .jo-uacts .px-btn{flex:none;height:44px;padding:0 9px}
.jo-stack.jo-compact .jo-utrack{bottom:4px;height:4px}
/* A tappable message (menu.js toast with open; previews v2 h10, p5): the
   face (or a guild's banner), the words, "tap to open ▶" after a dashed
   rule; 44 px tall, as wide as its words need (the room on a phone). */
.jo-stack .jo-toast-open{max-width:100%}
.jo-toast-open{display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 12px 4px 6px;border-radius:10px;font-size:15px;text-align:left;cursor:pointer}
.jo-toast-face{flex:none;display:flex}
.jo-toast-face:empty{display:none}
.jo-toast-face .px-face{width:32px;height:32px}
.jo-toast-face canvas{display:block;width:auto;height:32px;image-rendering:pixelated}
/* a guild event's reminder (e6b): the bell, then the guild's banner */
.jo-evface{display:flex;align-items:center;gap:4px}
.jo-bell{position:relative;flex:none;display:inline-block;width:18px;height:18px}
.jo-bell::before{content:"";position:absolute;left:2px;top:1px;width:14px;height:13px;box-sizing:border-box;border:2px solid #8a5a00;border-bottom-width:3px;border-radius:7px 7px 1px 1px;background:#f0cc50}
.jo-bell::after{content:"";position:absolute;left:7px;top:14px;width:4px;height:3px;border-radius:0 0 2px 2px;background:#8a5a00}
.jo-toast-text{flex:1;min-width:0}
.jo-toast-go{flex:none;margin-left:4px;padding-left:10px;border-left:2px dashed var(--rule);color:var(--blue-dk);font-weight:600;white-space:nowrap}
@media(hover:hover){.jo-toast-open:hover{border-color:var(--sel-line)}}
/* an Alpha note (client/js/ui/swarm.js): the α before its text */
.jo-toast-alpha{color:#c8342a;font-weight:700}
/* While the bar measures what fits, nothing in it shrinks. */
.jo-bar.jo-measure .px-where,.jo-bar.jo-measure .px-place,.jo-bar.jo-measure .px-meta,.jo-bar.jo-measure .px-save{flex-shrink:0}
/* A phone on its side: the party row hangs under the dropped bar, at the
   right of the room between the pads (--free-*: ui/layout.js). */
.jo-party.px-party.row.jo-under-chip{left:auto;right:calc(var(--free-r,0px) + 8px);max-width:calc(100% - var(--free-l,0px) - var(--free-r,0px) - 16px)}
/* Touch: the slots' own buttons are 44px targets too, and so are the kit's
   smaller controls. */
.pxui.touch .jo-slot-btn{min-height:44px}
.pxui.touch .px-jump{min-height:44px;padding:0 16px}
.pxui.touch .px-toggle{height:44px}
.pxui.touch .px-party-title{min-height:44px}
/* Panels that scroll pan with a finger (the game surface around them doesn't
   pan or zoom); the log keeps its text selectable. */
.pxui .px-log,.pxui .soc-fscroll,.pxui .soc-pscroll,.jo-pop.px-menu,.pxui .px-channels,.pxui .jo-wgrid{touch-action:pan-y;overscroll-behavior:contain}
.pxui .px-threads,.jo-party.px-party.row .px-list,.soc-sheet .soc-tabs,.soc-sheet .jo-wgrid{touch-action:pan-x}
.pxui .px-log{-webkit-user-select:text;-webkit-touch-callout:default}
.pxui input,.pxui select{-webkit-user-select:text;user-select:text;-webkit-touch-callout:default}

/* ------------------------------------------------------------ the Alpha swarm card's additions */
/* (client/js/ui/swarm.js; the card itself is in ranked.css .aw): the schedule's
   "Your time" line on a device outside Singapore time, and the full-width
   "Show Route 29 on the map" button. */
.aw .aw-schedule{flex-direction:column;align-items:center;gap:2px;text-align:center}
.aw .aw-local{color:var(--ink-3)}
.aw .aw-map{width:100%;min-height:44px;height:auto;padding:6px 12px;white-space:normal;text-align:center}
/* a phone on its side: the schedule box a little shorter, so the second line fits */
@media(max-height:520px){.aw .aw-schedule{gap:0;padding-top:4px;padding-bottom:4px}}
