/* Group B on the page (public/groupb.js): training bubbles, reconnect bar, name / link / delete pop-ups, banners. */
#bToast { position: fixed; z-index: 80; left: 50%; bottom: 18px; transform: translate(-50%, 30px); opacity: 0; pointer-events: none;
  background: rgba(16,19,25,.96); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; font-weight: 700; font-size: 14px;
  max-width: min(520px, 92%); text-align: center; transition: opacity .2s, transform .2s; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
#bToast.show { opacity: 1; transform: translate(-50%, 0); }
#bToast.bad { border-color: rgba(229,72,77,.7); color: #ffb4ae; }
/* sim run 28 Nov 2026: on the result screen the toast ("Mission done: ...") sat over SHARE / MENU: show it at the top there */
body:has(#result:not([hidden])) #bToast { bottom: auto; top: 12px; transform: translate(-50%, -30px); }
body:has(#result:not([hidden])) #bToast.show { transform: translate(-50%, 0); }

.bpanel { width: min(460px, 100%); display: flex; flex-direction: column; gap: 8px; }
.bpanel h2 { margin: 0 0 2px; }
.bpanel h2.bad { color: #ff8a80; }
.brule { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
.brule a { color: #8ab8ff; }
.bnote { color: var(--muted); font-size: 12px; line-height: 1.35; display: block; margin-top: 4px; }
.gold { color: var(--gold); }
.start.danger, button.start.danger { background: var(--red); }
.start:disabled { opacity: .45; }
.bset { gap: 6px; }
a.blink { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; color: inherit; min-height: 40px; }
.bnamerow { display: flex; align-items: center; gap: 10px; padding: 6px 0; }
.bnamerow b { font-size: 16px; }
.bnamerow .grow { flex: 1; min-width: 0; }
.bnamerow button { flex: none; width: auto; padding: 0 14px; min-height: 40px; }
.blinks { display: flex; flex-direction: column; gap: 4px; margin: 6px 0; }
.blinks .prow .start.sm { min-height: 34px; padding: 0 12px; }
.bloginrow { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 2px; }
.bloginrow button { font-size: 12px; }
.gbtn { display: flex; justify-content: center; min-height: 44px; }
.fbbtn { background: #1877f2; }

/* reconnecting bar (online match, connection lost) */
#recon { position: fixed; z-index: 70; left: 50%; top: 12px; transform: translateX(-50%); background: rgba(245,184,61,.95); color: #1a1200;
  font-weight: 900; letter-spacing: .04em; padding: 8px 16px; border-radius: 10px; box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.pcard.away { opacity: .55; }
.pcard.away .pname::after { content: ' · reconnecting…'; color: var(--gold); font-weight: 700; }

/* quick match: bot countdown in the room lobby; ranked practice note on the HUD */
#botWait { color: var(--gold); font-size: 12px; font-weight: 700; min-height: 14px; }
#rankWait { position: fixed; z-index: 25; left: 50%; top: calc(max(8px, env(safe-area-inset-top)) + 58px); transform: translateX(-50%);
  background: rgba(90,40,160,.9); border-radius: 9px; padding: 4px 12px; font-size: 12px; font-weight: 800; pointer-events: none; }
#btnPractice { width: 100%; margin-top: 6px; font-size: 12px; }

/* pause: the leaver rule */
#leaveRule { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; max-width: 320px; }

/* menu banner: link the account (reminder / required) */
#linkBan { display: flex; align-items: center; gap: 10px; margin: -4px 0 8px; padding: 8px 10px; border-radius: 10px; font-size: 13px;
  background: rgba(59,130,246,.18); border: 1px solid rgba(59,130,246,.5); }
#linkBan.block { background: rgba(229,72,77,.18); border-color: rgba(229,72,77,.6); }
#linkBan[hidden] { display: none; }
#linkBan .grow { flex: 1; }

/* loading screen: privacy + terms */
#bootLegal { position: absolute; z-index: 5; left: 12px; bottom: 8px; font-size: 11px; color: rgba(255,255,255,.75); }
#bootLegal a { color: inherit; }

/* training */
#tutBub { position: fixed; z-index: 60; width: min(320px, calc(100% - 24px)); background: #fffbe8; color: #1b1606; border-radius: 14px;
  padding: 10px 12px; box-shadow: 0 8px 30px rgba(0,0,0,.55); border: 3px solid var(--gold); }
#tutBub p { margin: 0 0 8px; font-size: 14px; font-weight: 700; line-height: 1.35; }
#tutBub .tutbtns { display: flex; justify-content: space-between; gap: 8px; }
#tutBub .ghost { color: #6b5a20; border-color: rgba(0,0,0,.2); background: rgba(0,0,0,.05); font-size: 11px; min-height: 34px; }
#tutBub .start.sm { min-height: 34px; }
#tutBub.down::after, #tutBub.up::before { content: ''; position: absolute; left: calc(var(--ax, 50%) - 10px); border: 10px solid transparent; }
#tutBub.down::after { top: 100%; border-top-color: var(--gold); }
#tutBub.up::before { bottom: 100%; border-bottom-color: var(--gold); }
.tut-hl { animation: tutGlow 1s ease-in-out infinite; border-radius: 10px; }
@keyframes tutGlow { 0%, 100% { box-shadow: 0 0 0 3px rgba(245,184,61,.95), 0 0 16px 4px rgba(245,184,61,.7); } 50% { box-shadow: 0 0 0 6px rgba(245,184,61,.5), 0 0 26px 10px rgba(245,184,61,.35); } }

/* security.js: recovery code shown once, account-safety notes */
.codebig { display: block; margin: 10px auto; padding: 10px 14px; border-radius: 12px; background: #0d1018; border: 2px dashed #ffd84f;
  color: #ffd84f; font: 800 26px/1.2 ui-monospace, Menlo, Consolas, monospace; letter-spacing: .12em; text-align: center; user-select: all; }
#secNote { position: fixed; z-index: 79; left: 50%; top: 10px; transform: translateX(-50%); width: min(560px, calc(100vw - 32px)); box-sizing: border-box;
  padding: 10px 12px; border-radius: 12px; background: #2a1013; border: 2px solid #e5484d; color: #ffe1df; box-shadow: 0 8px 24px rgba(0,0,0,.5);
  display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
#secNote[hidden] { display: none; }
#secNote b { color: #ff8a8d; letter-spacing: .06em; }
#secNote p { flex: 1 1 100%; margin: 0; font-size: 13px; white-space: pre-line; }
#secNote button { margin-left: auto; min-height: 44px; min-width: 64px; }
/* pop-ups opened from the profile / settings must sit above them (profile 28, shop 30, admin 35) */
#nameOv, #linkOv, #delOv, #codeOv, #codeAsk { z-index: 40; }
/* the bubble beside its control (audit 26 Nov 2026: it covered the open BAG tray): arrow on the near edge */
#tutBub.lft::after, #tutBub.rgt::before { content: ''; position: absolute; top: calc(var(--ay, 50%) - 10px); border: 10px solid transparent; }
#tutBub.lft::after { left: 100%; border-left-color: var(--gold); }
#tutBub.rgt::before { right: 100%; border-right-color: var(--gold); }
