/* Party raids on the page (client/js/ui/raid/battle.js; the preview's boards
   r3–r6 and p1): the strip and the side (the ally cards, the note, the recap
   lines, the throw picker) round the source's 240×160 battle picture, inside
   #battle and outside #battle-stage; the Leave raid confirm; the results and
   fail windows. The layer lays itself out (battle.js raidObstacles: the
   strip's and side's place and size inline) and the battle's picture is
   kept clear of it. The pixel kit's frames and tokens (social-ui.css .pxui
   .px-win). Every button is a 44 px target (.rd-tap), on a phone and off it;
   nothing scrolls sideways. */

/* ------------------------------------------------------------------ the layer */
.rd-layer{position:absolute;inset:0;z-index:2;pointer-events:none;font-variant-ligatures:none}
.rd-layer>*{pointer-events:auto}
.rd-layer :where(p,ol,ul,h2,h3){margin:0}
.rd-tap{min-height:44px;min-width:44px}

/* ------------------------------------------------------------------ the strip */
.rd-strip{position:absolute;display:flex;align-items:center;gap:10px;padding:env(safe-area-inset-top,0px) calc(12px + env(safe-area-inset-right,0px)) 0 calc(12px + env(safe-area-inset-left,0px));overflow:hidden;background:#10182a;border-bottom:3px solid #2a3a55}
.rd-info{flex:1 1 auto;min-width:0;display:flex;align-items:center;gap:8px;overflow:hidden}
.rd-acts{flex:none;display:flex;align-items:center;justify-content:flex-end;gap:8px;min-width:0}
.rd-pill{flex:none;display:inline-flex;align-items:center;gap:6px;height:36px;padding:0 10px;border:3px solid var(--frame);border-radius:8px;background:var(--cream);box-shadow:inset 0 0 0 2px var(--ring);font-size:15px;font-weight:700;line-height:1;white-space:nowrap}
.rd-pill.den{flex:0 1 auto;min-width:0;overflow:hidden;border-color:#6a1240;background:#fde8f2;box-shadow:inset 0 0 0 2px #f7c2dc}
.rd-pill.warn{border-color:#b0362a;background:#fde3de;box-shadow:inset 0 0 0 2px #f6b4a8}
.rd-pill.wait{min-width:0;overflow:hidden;border-color:var(--sel-line);background:var(--sel);box-shadow:inset 0 0 0 2px #f7c080;font-variant-numeric:tabular-nums}
.rd-pill.wait.over{border-color:var(--frame);background:var(--cream);box-shadow:inset 0 0 0 2px var(--ring)}
.rd-layer .rd-leave{height:44px;padding:0 14px;font-size:14px}
.rd-help{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:3px solid var(--blue);border-radius:8px;background:var(--sky);font-size:18px;font-weight:700}
@media (hover:hover){.rd-help:hover{border-color:var(--sel-line)}}
/* a phone: two rows (the den, turn and faints; then the wait, Leave raid and "?") */
.rd-column .rd-strip{flex-direction:column;align-items:stretch;justify-content:center;gap:6px;padding-left:calc(8px + env(safe-area-inset-left,0px));padding-right:calc(8px + env(safe-area-inset-right,0px))}
.rd-column .rd-info{flex:none;gap:5px}
.rd-column .rd-info .rd-pill{height:30px;padding:0 7px;font-size:13px}
.rd-column .rd-acts{gap:6px}
.rd-column .rd-acts .wait{flex:1 1 auto;justify-content:center;height:44px;font-size:14px}
/* a phone on its side: one short row */
.rd-row .rd-strip{gap:6px}
.rd-row .rd-info .rd-pill{height:32px;padding:0 8px;font-size:13px}
.rd-row .rd-acts .wait{height:36px;font-size:13px}

/* ------------------------------------------------------------------ the side: the ally cards */
.rd-side{position:absolute;display:flex;flex-direction:column;gap:8px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:var(--ring) transparent}
.rd-cards{flex:none;display:flex;flex-direction:column;gap:6px;padding:0;list-style:none}
.rd-card{display:flex;align-items:center;gap:8px;min-height:56px;padding:4px 8px 4px 4px;border:3px solid var(--frame);border-radius:10px;background:var(--cream);box-shadow:inset 0 0 0 2px var(--ring)}
.rd-ico{flex:none;width:40px;height:40px;background-repeat:no-repeat;background-size:40px 80px;image-rendering:pixelated}
.rd-who{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:3px;line-height:1.15}
.rd-name{display:flex;align-items:baseline;gap:5px;min-width:0}
.rd-name b{flex:none;max-width:60%;overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
.rd-mon{min-width:0;overflow:hidden;color:var(--ink-3);font-size:12px;text-overflow:ellipsis;white-space:nowrap}
.rd-hp{display:block;align-self:stretch;height:10px;border:2px solid #424242;border-radius:5px;background:#fff;overflow:hidden}
.rd-hp i{display:block;height:100%;background:#18c320}
.rd-hp.y i{background:#fbb200}
.rd-hp.r i{background:#fb5928}
.rd-down{color:#b0281e;font-size:12px;font-weight:700;line-height:1.2}
.rd-mark{flex:none;display:inline-flex;align-items:center;justify-content:center;width:30px;height:30px;border-radius:15px;font-weight:700}
.rd-mark.ok{border:2px solid #2e9a4e;background:#dff3e4;color:#1e7a3c}
.rd-mark.pick{border:2px solid var(--sel-line);background:var(--sel);color:#7a4a00}
/* a trainer who went (Leave raid, a disconnect): greyed, dashed, "Left" in place of the HP bar and the mark */
.rd-card.gone{border-style:dashed;border-color:#8a94a4;background:#eef0f3;box-shadow:none}
.rd-card.gone .rd-ico{filter:grayscale(1);opacity:.5}
.rd-card.gone .rd-name b{color:var(--ink-3)}
.rd-mark.gone{width:auto;padding:0 8px;border:2px solid #8a94a4;border-radius:6px;background:#fff;color:var(--ink-2);font-size:12px}
.rd-card.down{border-color:#6f7f96;background:#dcdfe4;box-shadow:inset 0 0 0 2px #b8bec8}
.rd-card.down .rd-ico{filter:grayscale(1);opacity:.6}
.rd-card.down .rd-name b{color:var(--ink-3)}
/* a phone: the side under the picture, each card 48 px (a 44 px target's room) */
.rd-column .rd-side{gap:6px}
.rd-column .rd-cards{gap:4px}
.rd-column .rd-card{min-height:48px;padding:2px 8px 2px 2px;border-radius:10px}
.rd-column .rd-ico{width:36px;height:36px;background-size:36px 72px}
/* a phone on its side: the cards in a row under the strip */
.rd-row .rd-side{flex-direction:row;align-items:stretch;overflow:hidden}
.rd-row .rd-cards{flex:3 1 0;min-width:0;flex-direction:row;gap:6px}
.rd-row .rd-card{flex:1 1 0;min-width:0;min-height:44px;padding:2px 6px 2px 2px}
.rd-row .rd-ico{width:32px;height:32px;background-size:32px 64px}
.rd-row .rd-recap,.rd-row .rd-note{flex:1 1 0;min-width:0;overflow:hidden}

/* ------------------------------------------------------------------ the note and the recap */
.rd-note{padding:6px 10px;border:3px solid var(--sel-line);border-radius:8px;background:var(--sel);font-size:14px;font-weight:600;line-height:1.3}
.rd-recap{display:flex;flex-direction:column;gap:2px;padding:6px 10px;border:3px solid var(--frame);border-radius:8px;background:#fff;font-size:14px;line-height:1.3;overflow-wrap:anywhere}
.rd-line.lead{font-weight:700}
.rd-column .rd-recap{flex:none;max-height:56px;overflow-y:auto;padding:4px 8px;font-size:13px}
.rd-column .rd-note{padding:4px 8px;font-size:13px}

/* ------------------------------------------------------------------ the throw */
.rd-throw{flex:none;display:flex;flex-direction:column;gap:8px;padding:8px 10px 10px;border:3px solid var(--frame);border-radius:10px;background:var(--cream);box-shadow:inset 0 0 0 2px var(--ring)}
.rd-throw-win{font-size:15px;font-weight:700;line-height:1.3}
.rd-row .rd-throw-win,.rd-compact .rd-throw-win{flex:0 1 auto;min-width:0;overflow:hidden;font-size:13px;text-overflow:ellipsis;white-space:nowrap}
.rd-throw-head{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 8px;font-size:13px;letter-spacing:.06em;text-transform:uppercase}
.rd-throw-left{color:var(--ink-2);letter-spacing:0;text-transform:none;font-variant-numeric:tabular-nums}
.rd-balls{display:flex;flex-wrap:wrap;gap:6px}
.rd-ball{display:inline-flex;align-items:center;gap:6px;min-height:52px;max-width:100%;padding:0 10px 0 6px;border:3px solid #c4d2e4;border-radius:10px;background:#f5f9fd;font-size:14px;line-height:1.15;text-align:left}
.rd-ball small{display:block;color:var(--ink-3);font-size:12px}
.rd-ball.on{border-color:var(--sel-line);background:var(--sel)}
.rd-ballic{flex:none;width:24px;height:24px;image-rendering:pixelated}
.rd-layer .rd-throwbtn{height:48px;font-size:16px}
.rd-throw-out{font-size:15px;font-weight:700}
.rd-column.throwing .rd-cards,.rd-row.throwing .rd-cards{display:none}
/* a phone on its side, and a short phone: the picker in one row (its balls scroll inside it) */
.rd-row .rd-throw,.rd-compact .rd-throw{flex:1 1 auto;min-width:0;flex-direction:row;align-items:center;gap:8px;padding:2px 8px}
.rd-row .rd-throw-head,.rd-compact .rd-throw-head{flex:none;flex-direction:column;gap:0;font-size:12px}
.rd-row .rd-balls,.rd-compact .rd-balls{flex:1 1 auto;min-width:0;flex-wrap:nowrap;overflow-x:auto;overflow-y:hidden}
.rd-row .rd-ball,.rd-compact .rd-ball{flex:none;min-height:44px}
.rd-layer.rd-row .rd-throwbtn,.rd-layer.rd-compact .rd-throwbtn{flex:none;height:44px}

/* ------------------------------------------------------------------ a short phone: the compact side */
/* (battle.js raidObstacles: when the full side would leave the picture
   under 1×) one row of small chips, the icon, the HP bar and ✓ / … (the
   name, the Pokémon and a fainted line are their title, and kept for
   screen readers), and a one-line recap (the note in its place while it
   shows); .rd-norecap: the chips alone */
.rd-compact .rd-cards{flex-direction:row;gap:4px}
.rd-compact .rd-card{position:relative;flex:1 1 0;min-width:0;min-height:48px;gap:6px;padding:2px 6px 2px 2px}
.rd-compact .rd-ico{width:32px;height:32px;background-size:32px 64px}
.rd-compact .rd-who{justify-content:center}
.rd-compact .rd-name,.rd-compact .rd-down{position:absolute;width:1px;height:1px;margin:0;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.rd-compact .rd-mark{width:26px;height:26px}
.rd-compact .rd-mark.gone{width:auto;padding:0 4px;font-size:11px}
.rd-compact .rd-recap,.rd-compact .rd-note{display:block;flex:none;height:24px;max-height:24px;padding:2px 8px;overflow:hidden;font-size:13px;line-height:16px;white-space:nowrap;text-overflow:ellipsis}
.rd-compact .rd-recap p{display:inline}
.rd-compact .rd-recap p+p::before{content:" · "}
.rd-compact .rd-note:not([hidden])+.rd-recap{display:none}
.rd-norecap .rd-recap,.rd-norecap .rd-note{display:none}

/* ------------------------------------------------------------------ Leave raid's confirm */
.rd-ask.px-win{position:absolute;left:50%;top:50%;z-index:3;transform:translate(-50%,-50%);display:flex;flex-direction:column;gap:12px;width:min(420px,calc(100% - 24px));padding:16px 18px}
.rd-ask p{font-size:16px;line-height:1.35}
.rd-ask-acts{display:flex;gap:10px}
.rd-ask-acts .px-btn{flex:1 1 0;min-width:0;height:48px}

/* ------------------------------------------------------------------ the results and fail windows (on the field) */
.pxui.rd-res{width:min(560px,calc(100% - 16px));max-height:calc(100% - 16px);padding:14px 16px;overflow:hidden;font-variant-ligatures:none}
.rd-res :where(h2,h3,p,ol,ul){margin:0}
.rd-res-head{flex:none;display:flex;align-items:flex-start;gap:10px;padding-bottom:10px;border-bottom:2px dashed var(--rule)}
.rd-res-t{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.rd-res h2{font-size:22px;letter-spacing:.05em;line-height:1.15;text-transform:uppercase}
.rd-res.fail h2{color:#8a2418}
.rd-res-sub{color:var(--ink-2);font-size:14px;overflow-wrap:anywhere}
.rd-x{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;padding:0;border:3px solid var(--frame);border-radius:8px;background:#fff;font-size:18px;font-weight:700}
.rd-res-body{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:10px;margin:0 -4px;padding:10px 4px 4px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.window.rd-res h3.rd-sec{display:flex;justify-content:space-between;align-items:baseline;gap:8px;margin:0;font-size:13px;letter-spacing:.07em;text-transform:uppercase}
.rd-sec small{color:var(--ink-3);font-size:12px;letter-spacing:0;text-transform:none;text-align:right}
.rd-mems{display:flex;flex-direction:column;gap:6px;padding:0;list-style:none}
.rd-mem{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:44px;padding:4px 10px;border:2px solid #c4d2e4;border-radius:8px;background:#fff}
.rd-mem.mine{border-color:var(--sel-line);background:var(--sel)}
.rd-mem-n{min-width:0;display:flex;align-items:center;gap:6px;overflow:hidden}
.rd-mem-n b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rd-mem-n small{color:var(--ink-3);font-size:12px}
.rd-st{flex:none;display:inline-flex;align-items:center;height:28px;padding:0 10px;border:2px solid var(--plain-line);border-radius:6px;background:var(--plain);color:var(--ink-2);font-size:14px;font-weight:700;white-space:nowrap}
.rd-st.caught{border-color:#2e9a4e;background:#dff3e4;color:#1e7a3c}
.rd-st.gone{border-style:dashed;border-color:#8a94a4;background:#eef0f3;color:var(--ink-3)}
.rd-rews{display:grid;grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:8px;padding:0;list-style:none}
.rd-rew{display:flex;flex-direction:column;align-items:center;gap:2px;padding:8px 4px 6px;border:2px solid #c4d2e4;border-radius:8px;background:#f5f9fd;font-size:13px;line-height:1.2;text-align:center;overflow-wrap:anywhere}
.rd-rew img{width:32px;height:32px;image-rendering:pixelated}
.rd-rew b{font-size:14px}
.rd-rew small{color:var(--ink-3);font-size:12px}
.rd-coin{display:block;width:28px;height:28px;margin:2px;border:3px solid #8a5a00;border-radius:50%;background:#ffd84a;box-shadow:inset -3px -3px 0 #e8a800}
.rd-bonus{padding:8px 12px;border:3px solid #8a5a00;border-radius:8px;background:#fff1c2;font-size:15px;font-weight:600}
.rd-fail-t{font-size:16px;line-height:1.35}
.rd-chips{display:flex;flex-wrap:wrap;gap:8px}
.rd-chips .rd-pill{height:30px;font-size:13px}
.rd-res .rd-line{color:var(--ink-2);font-size:14px;line-height:1.35}
.rd-res .rd-line.rd-done{color:#8a2418;font-weight:700}
.rd-res .rd-line.rd-atden{color:var(--ink)}
.rd-res-foot{flex:none;display:flex;gap:10px;padding-top:10px}
.rd-res-foot .px-btn{flex:1 1 0;min-width:0;height:52px;font-size:17px}
@media (max-width:600px){
  .pxui.rd-res{width:calc(100% - 16px);padding:12px}
  .rd-res h2{font-size:19px}
}

/* ------------------------------------------------------------------ the den card (client/js/ui/raid/den.js; board r1)
   Its body is the den window's and the World Map place card's den section
   (ui/worldmap/card.js): the boss's front sprite in the den's dark frame,
   its stars, level and suggested level; the trainers line, the rules in
   short, the midnight line, today's wins, the open raids (Join) and Start a
   raid (greyed with why without the badges). */
.rd-den{display:flex;flex-direction:column;gap:8px;min-width:0;font-variant-ligatures:none}
.rd-den :where(p,ul,h4){margin:0}
.rd-dboss{display:flex;align-items:center;gap:10px;min-width:0}
.rd-pic{flex:none;position:relative;width:104px;height:104px;border:3px solid #6a1240;border-radius:10px;background:radial-gradient(circle at 50% 60%,#5a2a48 0,#2a1430 70%);overflow:hidden}
.rd-front{position:absolute;left:1px;top:1px;width:96px;height:96px;background-repeat:no-repeat;background-size:96px 192px;image-rendering:pixelated;filter:drop-shadow(0 0 4px #ff7ac0aa)}
.rd-dt{min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:3px}
.rd-nm{font-size:20px;line-height:1.1;overflow-wrap:anywhere}
.rd-stars{color:#c88a00;font-size:16px;letter-spacing:1px;white-space:nowrap}
.rd-ln{color:var(--ink-2);font-size:13px}
.rd-sugg{display:inline-flex;align-items:center;height:24px;padding:0 8px;border:2px solid var(--sel-line);border-radius:6px;background:var(--sel);color:var(--ink);font-size:13px;font-weight:700;white-space:nowrap}
.rd-dline{color:var(--ink-2);font-size:13px;line-height:1.3}
.rd-wins{color:var(--ink);font-weight:700}
.rd-den .rd-done{margin-top:-6px}
/* done for today (the day's 3 wins): when the dens open again; away from the den: where to start */
.rd-done{color:#8a2418;font-weight:700}
.rd-atden{color:var(--ink)}
/* a boss with two moves a turn (★★★★, ★★★★★): said up front, on the den card and in the lobby */
.rd-twice{color:#8a2418;font-weight:700}
.rd-den h4{margin:0 0 4px;color:var(--ink-3);font-size:12px;letter-spacing:.07em;text-transform:uppercase}
.rd-srules{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:3px 12px;padding:0;list-style:none;font-size:12.5px;line-height:1.25}
.rd-srules li,.rd-lrules li{display:flex;gap:6px;align-items:flex-start}
.rd-srules li::before,.rd-lrules li::before{content:"";flex:none;width:6px;height:6px;margin-top:5px;background:#c0306e}
.rd-olist{display:flex;flex-direction:column;gap:6px;padding:0;list-style:none}
.rd-orow{display:flex;align-items:center;gap:8px;font-size:13px;line-height:1.25}
.rd-ot{flex:1 1 auto;min-width:0;overflow-wrap:anywhere}
.rd-orow .px-btn{flex:none;height:44px;padding:0 14px}
.rd-empty{color:var(--ink-3);font-size:13px;line-height:1.3}
.rd-dacts{display:flex;gap:8px}
.rd-dacts .px-btn{flex:1 1 0;min-width:0;height:44px;font-size:15px}
.rd-den .px-btn.off,.rd-lobby .px-btn.off{opacity:.55}
.rd-why{color:#8a2418;font-size:13px;line-height:1.3}
/* the den window (talking to the den on its route) */
.pxui.rd-denwin{width:min(460px,calc(100% - 16px));max-height:calc(100% - 16px);padding:12px 14px;overflow:hidden}
.rd-dhead{flex:none;display:flex;align-items:flex-start;gap:8px;padding-bottom:8px;border-bottom:2px dashed var(--rule)}
.rd-dh{flex:1;min-width:0}
.rd-dh h2{margin:0;font-size:21px;letter-spacing:.05em;text-transform:uppercase}
.rd-denwin .kick{color:var(--ink-3);font-size:13px;letter-spacing:.07em;text-transform:uppercase;overflow-wrap:anywhere}
.rd-dbody{flex:1 1 auto;min-height:0;padding-top:8px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}

/* ------------------------------------------------------------------ the lobby (client/js/ui/raid/lobby.js; board r2)
   The head; the 4 slots; the invite box and your Pokémon beside the rules
   box; the countdown, Leave and Ready. A phone: one column under the bar. */
.pxui.rd-lobby{width:min(1100px,calc(100% - 16px));max-height:calc(100% - 16px);padding:12px 16px 14px;overflow:hidden;font-variant-ligatures:none}
.rd-lobby :where(h1,h4,p,ol,ul){margin:0}
.rd-lhead{flex:none;display:flex;align-items:center;gap:10px;padding-bottom:8px;border-bottom:2px dashed var(--rule)}
.rd-denmini{flex:none;display:inline-flex;align-items:center;justify-content:center;width:44px;height:44px;border:2px solid #c0306e;border-radius:8px;background:#2a1430}
.rd-lh{min-width:0;display:flex;flex-direction:column;gap:2px}
.rd-lh h1{font-size:22px;letter-spacing:.06em;line-height:1.1;text-transform:uppercase}
.rd-lsub{display:flex;flex-wrap:wrap;align-items:center;gap:4px 8px;color:var(--ink-2);font-size:14px}
.rd-lsub b{color:var(--ink)}
.rd-grow{flex:1 1 auto}
.rd-lbody{flex:1 1 auto;min-height:0;display:flex;flex-direction:column;gap:10px;padding-top:10px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain}
.rd-slots{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;padding:0;list-style:none}
.rd-slot{display:flex;flex-direction:column;align-items:center;gap:4px;min-width:0;padding:8px;border:3px solid var(--blue);border-radius:10px;background:#fff;box-shadow:inset 0 0 0 2px var(--slot)}
.rd-slot.mine{border-color:var(--sel-line);box-shadow:inset 0 0 0 2px #fcd9a0}
.rd-slot.empty{justify-content:center;border-style:dashed;border-color:#8a94a4;background:#f2f4f7;box-shadow:none;color:var(--ink-2);text-align:center}
.rd-slot p{font-size:13px;line-height:1.3}
.rd-slot .rd-who{display:flex;align-items:center;gap:6px;align-self:stretch;min-width:0}
.rd-slot .rd-who .px-face{flex:none;border:2px solid var(--frame);border-radius:6px;background-color:#fff}
.rd-wn{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;line-height:1.15}
.rd-wn b{overflow:hidden;font-size:15px;text-overflow:ellipsis;white-space:nowrap}
.rd-wn small{color:var(--ink-3);font-size:12px}
.rd-crown{flex:none;display:inline-flex}
.rd-smon{flex:none;display:flex;align-items:center;justify-content:center;width:100%;height:72px;border-radius:8px;background:var(--sky)}
.rd-slot.empty .rd-smon{background:#e2e6ec}
.rd-smic{width:64px;height:64px;background-repeat:no-repeat;background-size:64px 128px;image-rendering:pixelated}
.rd-q,.rd-openq{display:inline-flex;align-items:center;justify-content:center;width:52px;height:52px;border:3px solid var(--sel-line);border-radius:50%;color:var(--sel-line);font-size:20px;font-weight:700}
.rd-openq{border-style:dashed;border-color:#8a94a4;color:#8a94a4;font-size:24px}
.rd-smn{max-width:100%;font-size:14px;font-weight:600;text-align:center;overflow-wrap:anywhere}
.rd-smn small{color:var(--ink-3);font-weight:400}
.rd-onote{color:var(--ink-3);font-size:12px}
.rd-st.ready{border-color:#2e9a4e;background:#dff3e4;color:#1e7a3c}
.rd-st.pick{border-color:var(--sel-line);background:var(--sel);color:#7a4a00}
.rd-lrow{display:flex;align-items:stretch;gap:10px;min-width:0}
.rd-lcol{flex:1 1 auto;min-width:0;display:flex;flex-direction:column;gap:10px}
.rd-lbox{min-width:0;padding:8px 12px 10px;border:3px solid var(--frame);border-radius:10px;background:#fff;box-shadow:inset 0 0 0 2px var(--ring)}
.rd-lbox h4{display:flex;align-items:center;gap:8px;margin:0 0 6px;color:var(--ink-3);font-size:13px;letter-spacing:.07em;text-transform:uppercase}
.rd-r{margin-left:auto;font-weight:400;letter-spacing:0;text-align:right;text-transform:none}
.rd-rbox{flex:0 0 300px;border-color:#8a5a00;background:#fff8ee;box-shadow:inset 0 0 0 2px #f7d9a8}
.rd-lrules{display:flex;flex-direction:column;gap:5px;padding:0;list-style:none;font-size:13px;line-height:1.3}
.rd-rbox .rd-twice{margin-top:8px;font-size:13px;line-height:1.3}
.rd-invs{display:flex;flex-wrap:wrap;gap:8px}
.rd-invs .px-btn{height:44px;padding:0 14px;font-size:14px;text-transform:none}
.rd-ib.on{border-color:var(--sel-line);background:var(--sel)}
.rd-toggle{display:inline-flex;align-items:center;gap:8px;height:44px;padding:0 12px 0 6px;border:3px solid var(--blue);border-radius:22px;background:var(--sky);color:var(--ink);font-size:14px;font-weight:600;white-space:nowrap}
.rd-toggle i{position:relative;flex:none;display:inline-block;width:38px;height:22px;border-radius:11px;background:#8a94a4}
.rd-toggle i::after{content:"";position:absolute;left:3px;top:3px;width:16px;height:16px;border-radius:8px;background:#fff}
.rd-toggle.on i{background:var(--blue)}
.rd-toggle.on i::after{left:auto;right:3px}
.rd-toggle.off,.rd-ib.off{opacity:.6}
.rd-inv .rd-why{margin-top:6px}
.rd-ilist{margin-top:8px}
.rd-irows{display:flex;flex-direction:column;gap:6px;padding:0;list-style:none}
.rd-irow{display:flex;align-items:center;gap:8px;min-height:44px}
.rd-irow b{flex:1 1 auto;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rd-irow .px-btn{flex:none;height:44px;padding:0 14px}
.rd-picks{display:flex;flex-wrap:wrap;gap:8px;padding-top:8px}
.rd-pk{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;width:88px;min-height:88px;padding:6px 4px 4px;border:3px solid #c4d2e4;border-radius:10px;background:#f2f7fc;color:var(--ink-2);font-size:12px;line-height:1.15}
.rd-pk.on{border-color:var(--sel-line);background:var(--sel);color:var(--ink);font-weight:700}
.rd-pk.low{opacity:.55}
.rd-pkic{width:48px;height:48px;background-repeat:no-repeat;background-size:48px 96px;image-rendering:pixelated}
.rd-pkn{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.rd-pk small{font-size:11px}
.rd-chosen{position:absolute;top:-11px;left:50%;transform:translateX(-50%);padding:0 6px;border-radius:4px;background:var(--sel-line);color:#fff;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;white-space:nowrap}
@media (hover:hover){.rd-pk:hover,.rd-invs .px-btn:hover,.rd-toggle:hover{border-color:var(--sel-line)}}
.rd-lfoot{flex:none;display:flex;flex-wrap:wrap;align-items:center;gap:10px;padding-top:10px}
.rd-count{min-width:0;display:flex;align-items:center;gap:10px;padding:6px 12px;border:3px solid var(--frame);border-radius:10px;background:#fff;box-shadow:inset 0 0 0 2px var(--ring)}
.rd-big{flex:none;font-size:34px;line-height:1;font-variant-numeric:tabular-nums}
.rd-count small{max-width:300px;color:var(--ink-2);font-size:13px;line-height:1.3}
.rd-lfoot .px-btn{height:52px;min-width:160px;font-size:18px}
.rd-readywhy{max-width:220px;text-align:right}
/* a phone: the sheet under the bar, one column, 44 px targets */
.pxui.rd-lobby.phone{left:0;right:0;top:4px;bottom:0;width:auto;height:auto;max-width:none;max-height:none;transform:none;padding:8px 10px 10px;border-bottom-width:0;border-radius:12px 12px 0 0}
.rd-lobby.phone .rd-lhead{gap:6px}
.rd-lobby.phone .rd-lh{flex:1 1 auto}
.rd-lobby.phone .rd-grow{display:none}
.rd-lobby.phone .rd-lh h1{font-size:18px}
.rd-lobby.phone .rd-lsub{font-size:12px}
.rd-lobby.phone .rd-slots{grid-template-columns:minmax(0,1fr);gap:6px}
.rd-lobby.phone .rd-slot{flex-direction:row;flex-wrap:wrap;align-items:center;gap:4px 8px;padding:6px 8px}
.rd-lobby.phone .rd-who{flex:1 1 160px;align-self:center}
.rd-lobby.phone .rd-smon{width:52px;height:52px}
.rd-lobby.phone .rd-smic{width:48px;height:48px;background-size:48px 96px}
.rd-lobby.phone .rd-q,.rd-lobby.phone .rd-openq{width:40px;height:40px}
.rd-lobby.phone .rd-slot.empty{justify-content:flex-start;text-align:left}
.rd-lobby.phone .rd-lrow{flex-direction:column}
.rd-lobby.phone .rd-rbox{flex:none}
.rd-lobby.phone .rd-pk{width:calc(33.333% - 6px)}
.rd-lobby.phone .rd-lfoot{gap:8px}
.rd-lobby.phone .rd-count{flex:1 1 100%}
.rd-lobby.phone .rd-big{font-size:26px}
.rd-lobby.phone .rd-readywhy{flex:1 1 100%;max-width:none;text-align:left}
.rd-lobby.phone .rd-lfoot .px-btn{flex:1 1 0;min-width:0;height:48px;font-size:16px}
