:root {
  --bg: #070a12;
  --panel: rgba(12, 17, 30, 0.72);
  --line: rgba(140, 170, 255, 0.14);
  --text: #e8eeff;
  --mute: #8b97b8;
  --accent: #5ee6c8;
  --shield: #6dff8a; /* feast */
  --speed: #ffd23f;
  --giant: #ff5ad1;
  --magnet: #ff8a3d;
  font-family: "Segoe UI", system-ui, -apple-system, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text); user-select: none; -webkit-user-select: none; touch-action: none; }
canvas#game { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; cursor: crosshair; }
.hidden { display: none !important; }

#hud > * { position: fixed; pointer-events: none; }
#stats { left: 18px; bottom: 18px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 16px 12px; backdrop-filter: blur(6px); }
#stats .lbl { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
#stats .big { font-size: 36px; font-weight: 800; line-height: 1.05; font-variant-numeric: tabular-nums; }
#stats .sub { font-size: 13px; color: var(--mute); }

#lb { right: 16px; top: 16px; width: 220px; background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; backdrop-filter: blur(6px); }
#lb h3 { margin: 0 0 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); font-weight: 600; }
#lb ol { margin: 0; padding: 0; list-style: none; font-size: 13px; }
#lb li { display: flex; gap: 6px; padding: 2px 4px; border-radius: 6px; font-variant-numeric: tabular-nums; }
#lb li .n { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#lb li .r { color: var(--mute); width: 20px; }
#lb li.me { background: rgba(94, 230, 200, .16); color: #fff; font-weight: 700; }
#lb li .bot, .tagbot { font-size: 9px; font-weight: 700; color: #9aa6c6; border: 1px solid #47507099; border-radius: 4px; padding: 0 3px; margin-left: 4px; vertical-align: 1px; }
#lbMeta { margin-top: 6px; font-size: 11px; color: var(--mute); line-height: 1.35; }

#field { right: 16px; bottom: 214px; width: 180px; font-size: 11px; color: var(--mute); background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 10px; }
#field .row { display: flex; justify-content: space-between; margin-bottom: 5px; }
#field .row span:last-child { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }
#field .bar { position: relative; height: 6px; border-radius: 3px; background: rgba(255,255,255,.08); overflow: visible; }
#fpBar { height: 100%; border-radius: 3px; background: linear-gradient(90deg, #ff7a59, #ffd23f 40%, #5ee6c8); transition: width .3s; }
#field .mark { position: absolute; left: 30%; top: -3px; width: 2px; height: 12px; background: #fff; opacity: .7; border-radius: 1px; }
#field .hint { margin-top: 4px; font-size: 10px; opacity: .8; }

#mmWrap { right: 16px; bottom: 16px; width: 180px; height: 180px; border-radius: 50%; background: rgba(10, 14, 26, .7); border: 1px solid var(--line); overflow: hidden; }
#minimap { width: 180px; height: 180px; display: block; }

#feed { left: 16px; top: 16px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; max-width: 46vw; }
#feed div { background: var(--panel); border: 1px solid var(--line); padding: 4px 10px; border-radius: 8px; animation: feedIn .25s ease-out; transition: opacity .6s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#feed b { color: #fff; }
#feed .you { border-color: rgba(94, 230, 200, .5); }
@keyframes feedIn { from { transform: translateX(-12px); opacity: 0; } }

#pus { left: 50%; bottom: 18px; transform: translateX(-50%); display: flex; gap: 10px; }
#pus .p { width: 120px; background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
#pus .p .t { display: flex; justify-content: space-between; margin-bottom: 4px; }
#pus .p .bar { height: 4px; background: rgba(255,255,255,.1); border-radius: 2px; overflow: hidden; }
#pus .p .bar i { display: block; height: 100%; }
#pus .p.ending { animation: blink .35s steps(2) infinite; }
@keyframes blink { 50% { opacity: .35; } }

#toast { left: 50%; top: 72px; transform: translateX(-50%); font-size: 18px; font-weight: 700; padding: 8px 18px; border-radius: 999px; background: rgba(12, 17, 30, .85); border: 1px solid var(--line); opacity: 0; transition: opacity .3s, transform .3s; white-space: nowrap; }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(4px); }

#hint { left: 50%; bottom: 70px; transform: translateX(-50%); font-size: 13px; color: var(--mute); background: var(--panel); padding: 6px 14px; border-radius: 999px; border: 1px solid var(--line); transition: opacity 1s; white-space: nowrap; }
#hint.fade { opacity: 0; }

#boostBtn { display: none; right: 24px; bottom: 230px; width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 210, 63, .18); border: 2px solid rgba(255, 210, 63, .6); color: #ffd23f; font-weight: 800; font-size: 13px; align-items: center; justify-content: center; pointer-events: auto !important; }
#boostBtn.on { background: rgba(255, 210, 63, .45); }
body.touch #boostBtn { display: flex; }
#fireBtn { display: none; right: 118px; bottom: 200px; width: 84px; height: 84px; border-radius: 50%; background: rgba(255, 80, 120, .18); border: 2px solid rgba(255, 80, 120, .7); color: #ff6b8b; font-weight: 800; font-size: 13px; align-items: center; justify-content: center; pointer-events: auto !important; }
#fireBtn.on { background: rgba(255, 80, 120, .45); }
body.touch.bm #fireBtn { display: flex; }
body.touch #hint { display: none; }

#muteBtn { position: fixed; left: 18px; bottom: 122px; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--panel); color: var(--text); font-size: 15px; cursor: pointer; z-index: 6; }
#muteBtn.off { color: #59627c; text-decoration: line-through; }
#net { position: fixed; left: 50%; top: 14px; transform: translateX(-50%); font-size: 12px; color: var(--mute); background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; z-index: 6; display: flex; align-items: center; gap: 7px; white-space: nowrap; }
#net i { width: 8px; height: 8px; border-radius: 50%; background: #888; }
#net.on i { background: #4ade80; box-shadow: 0 0 8px #4ade80; }
#net.off i { background: #ffd23f; }
#net.bad i { background: #ff5a5a; }

.overlay { position: fixed; inset: 0; display: flex; align-items: center; justify-content: center; background: radial-gradient(ellipse at center, rgba(7,10,18,.35), rgba(7,10,18,.85)); z-index: 5; animation: fadeIn .3s; }
@keyframes fadeIn { from { opacity: 0; } }
.card { width: min(440px, 94vw); background: rgba(12, 17, 30, .9); border: 1px solid var(--line); border-radius: 20px; padding: 28px 28px 22px; text-align: center; box-shadow: 0 30px 80px rgba(0,0,0,.5); backdrop-filter: blur(10px); }
h1 { margin: 0; font-size: 44px; letter-spacing: .06em; font-weight: 900; line-height: 1; }
h1 { color: var(--accent); text-shadow: 0 0 24px rgba(94,230,200,.45); letter-spacing: .12em; }
.by { margin-top: 6px; font-size: 13px; letter-spacing: .3em; text-transform: uppercase; color: var(--mute); }
.by span { color: var(--text); font-weight: 700; }
.tag { margin: 14px 0 20px; color: var(--mute); }
h2 { margin: 0 0 18px; font-size: 26px; }
input { width: 100%; font: inherit; font-size: 18px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); outline: none; text-align: center; user-select: text; -webkit-user-select: text; }
input:focus { border-color: var(--accent); }
#skins { display: flex; flex-wrap: nowrap; justify-content: center; gap: 5px; margin: 14px 0 18px; }
#skins button { flex: 0 1 26px; min-width: 0; aspect-ratio: 1; width: 26px; height: auto; border-radius: 50%; border: 2px solid transparent; cursor: pointer; padding: 0; }
#skins button.sel { border-color: #fff; transform: scale(1.18); }
button.primary { width: 100%; font: inherit; font-size: 20px; font-weight: 800; padding: 13px; border-radius: 12px; border: 0; cursor: pointer; background: linear-gradient(180deg, #6ff2d4, #36c3a5); color: #04211b; box-shadow: 0 8px 24px rgba(54,195,165,.35); }
button.primary:hover { filter: brightness(1.08); }
button.primary small { font-size: 11px; opacity: .6; margin-left: 6px; font-weight: 600; }
button.ghost { margin-top: 10px; width: 100%; font: inherit; padding: 9px; border-radius: 10px; background: transparent; border: 1px solid var(--line); color: var(--mute); cursor: pointer; }
#menuStatus { margin-top: 12px; font-size: 13px; color: var(--mute); min-height: 18px; }
.help { margin-top: 16px; font-size: 13px; color: var(--mute); display: flex; flex-direction: column; gap: 6px; text-align: center; }
.help .or { opacity: .6; margin: 0 2px; }
kbd { font-family: inherit; font-size: 11px; padding: 1px 6px; border-radius: 5px; border: 1px solid #3a4462; background: #151c30; color: var(--text); margin: 0 1px; }
.pu-legend { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 12px; }
.pi { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 4px; vertical-align: 0; }
.pi.s { background: var(--shield); box-shadow: 0 0 6px var(--shield); }
.pi.v { background: var(--speed); box-shadow: 0 0 6px var(--speed); }
.pi.g { background: var(--giant); box-shadow: 0 0 6px var(--giant); }
.pi.m { background: var(--magnet); box-shadow: 0 0 6px var(--magnet); }
.rules { font-size: 12px; opacity: .75; margin-top: 4px; line-height: 1.4; }
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 18px; }
.grid div { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; }
.grid b { font-size: 26px; font-variant-numeric: tabular-nums; }
.grid span { font-size: 12px; color: var(--mute); }

@media (max-width: 700px) {
  #lb { width: 160px; font-size: 12px; padding: 8px; }
  #lb li:nth-child(n+6) { display: none; }
  #field { display: none; }
  #mmWrap, #minimap { width: 120px; height: 120px; }
  #stats .big { font-size: 26px; }
  #pus .p { width: 80px; padding: 5px 7px; font-size: 11px; }
  #feed { font-size: 11px; }
}

/* ---- menus, accounts, shop ---- */
.overlay { overflow-y: auto; padding: 16px 0; }
.card { margin: auto; }
[data-nav]:focus-visible, button:focus-visible, input:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.acct { margin: 10px 0 12px; font-size: 13px; color: var(--mute); min-height: 18px; }
.acct b { color: var(--text); }
.acct .code { font-family: ui-monospace, Consolas, monospace; letter-spacing: .2em; color: var(--accent); font-weight: 700; }
.namerow { display: flex; gap: 8px; }
.namerow input { flex: 1; }
button.icon { width: 52px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.05); font-size: 22px; cursor: pointer; color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 8px 0 2px; }
.chips button { font: inherit; font-size: 12px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text); cursor: pointer; }
.chips button:hover { border-color: var(--accent); }
.msg { min-height: 18px; font-size: 13px; color: #ff8a8a; margin: 4px 0; }
.msg.ok { color: var(--accent); }
.hint { font-size: 11px; color: var(--mute); margin: 4px 0 10px; }
#skins { margin: 8px 0 4px; }
.lbl { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 8px 0 4px; text-align: left; }
.swrow { display: flex; flex-wrap: nowrap; gap: 2px; justify-content: center; padding: 3px 0; } /* every colour on one line */
.swrow button { flex: 0 1 18px; min-width: 0; aspect-ratio: 1; width: 18px; height: auto; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; }
.swrow button.sel { border-color: #fff; transform: scale(1.2); }
#shopBtn { margin: 6px 0 12px; }
.row2 { display: flex; gap: 8px; margin-top: 10px; }
.row2 button { flex: 1; margin-top: 0; }
.row2 button.hidden { display: none; }
button.ghost.small, button.primary.small { width: auto; padding: 8px 14px; font-size: 14px; margin: 0; }
.earned { margin: -4px 0 14px; font-size: 15px; color: var(--accent); font-weight: 700; }
.earned span { color: var(--mute); font-weight: 400; }

.shopcard { width: min(920px, 96vw); text-align: left; }
.shophead { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.shophead h2 { margin: 0; flex: 1; }
.pts { font-weight: 800; color: var(--accent); }
.tabs { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.tab { font: inherit; font-size: 13px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: transparent; color: var(--mute); cursor: pointer; }
.tab.sel { color: var(--text); border-color: var(--accent); background: rgba(94,230,200,.12); }
#shopGrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; padding: 4px; }
.mcard { font: inherit; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 4px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); cursor: pointer; }
.mcard canvas { width: 64px; height: 64px; }
.mcard .mn { font-size: 11px; line-height: 1.2; text-align: center; min-height: 26px; }
.mcard .mp { font-size: 11px; font-weight: 700; color: var(--speed); }
.mcard.owned .mp { color: var(--accent); }
.mcard.locked { opacity: .55; }
.mcard.cur { border-color: var(--accent); background: rgba(94,230,200,.12); }
.mcard.hidden { display: none; }
#shopDetail { display: flex; align-items: center; gap: 14px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
#shopPrev { width: 84px; height: 84px; }
.sdtext { flex: 1; }
#sdName { font-weight: 800; font-size: 18px; }
#sdInfo { font-size: 13px; color: var(--mute); }
#sdAction:disabled { filter: grayscale(1); opacity: .5; cursor: default; }

#codeSlots { display: flex; gap: 8px; justify-content: center; margin: 8px 0 6px; }
.slot { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.slot .ch { width: 46px; height: 58px; display: flex; align-items: center; justify-content: center; font: 800 30px ui-monospace, Consolas, monospace; border: 2px solid var(--line); border-radius: 10px; background: rgba(255,255,255,.04); }
.slot.cur .ch { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(94,230,200,.2); }
.slot button { font-size: 12px; width: 46px; padding: 2px 0; border: 0; background: transparent; color: var(--mute); cursor: pointer; }
#codeOv .ghost, #dlg .ghost { margin-top: 8px; }
.bigcode { font: 800 40px ui-monospace, Consolas, monospace; letter-spacing: .25em; color: var(--accent); margin: 10px 0; user-select: text; -webkit-user-select: text; }
#dlgBody { color: var(--mute); font-size: 14px; line-height: 1.45; margin-bottom: 16px; }
#dlgBtns { display: flex; flex-direction: column; gap: 8px; }
#dlgBtns button { margin: 0; }

.vbtns { display: flex; gap: 8px; }
.vbtns button { flex: 1; font: inherit; font-weight: 700; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; }
.vbtns button.mine { border-color: var(--accent); background: rgba(94,230,200,.18); }

/* ---- kiosk: idle countdown, admin, vote hint ---- */
.vhint { margin-top: 6px; font-size: 11px; color: var(--mute); }
.vbtns button.pick { outline: 3px solid var(--accent); outline-offset: 2px; }
#idle { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; background: rgba(4,6,12,.82); animation: fadeIn .2s; }
#idle.hidden { display: none; }
.idlenum { font: 900 96px ui-monospace, Consolas, monospace; color: var(--accent); line-height: 1; margin: 6px 0 12px; }
.idletxt { color: var(--mute); line-height: 1.5; }
.idletxt b { color: var(--text); }
#codeGo.cur, #codeCancel.cur { outline: 3px solid var(--accent); outline-offset: 2px; }
.admincard { width: min(560px, 96vw); text-align: left; }
.admincard h2 { text-align: center; }
#adminPw { margin-bottom: 6px; }
.asec { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin: 14px 0 6px; }
.arow { width: 100%; display: flex; justify-content: space-between; align-items: center; font: inherit; font-size: 14px; padding: 8px 12px; margin: 3px 0; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.03); color: var(--text); cursor: pointer; text-align: left; }
.arow .v { font-weight: 800; color: var(--accent); white-space: nowrap; }
.arow .v i { font-style: normal; color: var(--mute); padding: 0 6px; }
.arow.danger { border-color: rgba(255,90,90,.45); color: #ffb3b3; }
.astats { font-size: 12px; color: var(--mute); margin-top: 8px; }
#adminClose { margin-top: 12px; }
body.nocursor, body.nocursor * { cursor: none !important; }

/* ---- Mamba No. 5 ---- */
h1 .no5 { font-size: .62em; letter-spacing: .06em; vertical-align: .18em; color: var(--text); text-shadow: none; }
.pi.r { background: #b45cff; box-shadow: 0 0 6px #b45cff; }
.pi.b { background: #ff3b3b; box-shadow: 0 0 6px #ff3b3b; }
.pu-legend .bad { color: #ffb3b3; }

#sdAction.na { filter: grayscale(1); opacity: .6; }
.tabs.cats .tab { font-size: 15px; padding: 7px 16px; }
.tabs.cats .tab.sel { background: rgba(94,230,200,.22); }
#dlg { z-index: 12; } /* confirmations always sit above every other panel, including the admin menu (but below the walk-away countdown) */

/* Jim, the floating shopkeeper: small, outside the shop panel to its left, bobbing over a speech bubble */
#shop { gap: 18px; }
.shopcard { width: min(920px, calc(96vw - 200px)); }
#shop .shopcard { margin-left: 0; margin-right: auto; } /* Jim + panel centred together */
.dexside { margin-left: auto; width: 172px; flex: none; display: flex; flex-direction: column; align-items: center; align-self: flex-start; margin-top: 9vh; }
#dexImg { height: 64px; filter: drop-shadow(0 12px 8px rgba(0,0,0,.5)); animation: dexFloat 3.2s ease-in-out infinite; transform-origin: 50% 80%; }
@keyframes dexFloat { 0%, 100% { transform: translateY(0) rotate(-3deg); } 50% { transform: translateY(-10px) rotate(3deg); } }
.dexsay { position: relative; margin-top: 16px; background: #f4f7ff; color: #182033; border-radius: 12px; padding: 8px 11px; font-size: 13px; line-height: 1.35; text-align: left; box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.dexsay::before { content: ''; position: absolute; top: -8px; left: 50%; margin-left: -8px; border: 8px solid transparent; border-bottom-color: #f4f7ff; border-top: 0; }
.dexsay b { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #6a3fd1; margin-bottom: 2px; }
@media (prefers-reduced-motion: reduce) { #dexImg { animation: none; } }
@media (max-width: 760px) { /* small screens: Jim hovers above the panel instead of beside it */
  #shop { flex-direction: column; } .shopcard { width: 96vw; } #shop .shopcard { margin: 0 auto; }
  .dexside { flex-direction: row; width: 94vw; margin: 0 auto; align-self: center; gap: 12px; } .dexsay { margin-top: 0; flex: 1; }
  .dexsay::before { top: 50%; left: -8px; margin: -8px 0 0; border: 8px solid transparent; border-right-color: #f4f7ff; border-left: 0; }
}

/* current map and time until the next one, under the pellet meter */
.maprow { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; padding-top: 6px; border-top: 1px solid rgba(255,255,255,.08); font-size: 12px; color: #28e8ff; }
#mapLeft { color: rgba(220,230,255,.75); font-variant-numeric: tabular-nums; white-space: nowrap; }
#mapName { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#mapLeft.soon { color: #ffd23f; font-weight: 700; }

/* ---- 2v2 Capture the Banana ---- */
.bmonly { display: none; }
body.bm .bmonly { display: flex; }
body.bm #field { display: none; }
#bmBar { left: 50%; top: 50px; transform: translateX(-50%); align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 8px 14px 26px; position: fixed; backdrop-filter: blur(6px); }
#bmBar .tm { display: flex; align-items: center; gap: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 15px; min-width: 104px; }
#bmBar .t0 { color: #ff3bd4; justify-content: flex-end; } #bmBar .t1 { color: #2fd8ff; }
#bmBar .w { font-size: 34px; color: #fff; font-variant-numeric: tabular-nums; text-shadow: 0 0 12px currentColor; }
#bmBar .t0 .w { text-shadow: 0 0 14px #ff3bd4; } #bmBar .t1 .w { text-shadow: 0 0 14px #2fd8ff; }
#bmBar .mid { text-align: center; min-width: 120px; }
#bmClock { font-size: 26px; font-weight: 800; font-variant-numeric: tabular-nums; }
#bmClock.ot { color: #ffd23f; animation: blink .5s steps(2) infinite; }
#bmRound { font-size: 11px; color: var(--mute); letter-spacing: .06em; }
#bmBar .bans { position: absolute; left: 0; right: 0; bottom: 6px; display: flex; justify-content: space-between; padding: 0 12px; font-size: 11px; font-weight: 700; }
#bmB0 { color: #ff8be6; } #bmB1 { color: #8eeaff; }
#bmB0.warn, #bmB1.warn { color: #ffd23f; animation: blink .6s steps(2) infinite; }
#bmWeap { left: 18px; bottom: 162px; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; position: fixed; min-width: 210px; }
#bmWeap .wn { font-weight: 800; font-size: 15px; } #bmWeap .am { font-size: 12px; color: var(--mute); }
#bmWeap.carry { border-color: #ffe14a; box-shadow: 0 0 18px rgba(255,225,74,.35); }
#bmWeap.carry .am { color: #ffe14a; font-weight: 700; }
#bmBanner { left: 50%; top: 34%; transform: translate(-50%, -50%); flex-direction: column; align-items: center; text-align: center; position: fixed; pointer-events: none; }
#bmBanner .t { font-size: 56px; font-weight: 900; letter-spacing: .04em; text-shadow: 0 0 24px rgba(0,0,0,.8), 0 0 18px currentColor; }
#bmBanner .s { font-size: 20px; font-weight: 700; color: #e8eeff; text-shadow: 0 0 12px rgba(0,0,0,.9); margin-top: 4px; }
#bmBanner:empty, #bmBanner.off { display: none; }
#lb .team { margin: 6px 0 2px; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
#lb .team.t0 { color: #ff3bd4; } #lb .team.t1 { color: #2fd8ff; }
#lb li .kd { color: var(--mute); font-size: 11px; }
#lb li .ban { color: #ffe14a; }
@media (max-width: 760px) { #bmBar .tm { min-width: 70px; font-size: 12px; } #bmBanner .t { font-size: 38px; } }
body.bm #toast { top: 150px; }
/* hidden admin corner: 20 taps in a row in the top-left corner open the admin menu (for touch screens with no Esc key) */
#adminTap { position: fixed; left: 0; top: 0; width: 72px; height: 72px; z-index: 25; background: transparent; -webkit-tap-highlight-color: transparent; touch-action: none; user-select: none; }

/* Retirement Simulator & Arcade Nirvana */
.rtonly { display: none; }
body.rt .rtonly { display: flex; }
body.rt #field, body.rt #lb, body.rt #pus { display: none; }
#rtBar { position: fixed; left: 50%; top: 46px; transform: translateX(-50%); gap: 22px; background: rgba(30, 22, 8, .78); border: 1px solid rgba(255, 214, 120, .35); border-radius: 16px; padding: 8px 18px; backdrop-filter: blur(6px); }
#rtBar div { display: flex; flex-direction: column; align-items: center; min-width: 86px; }
#rtBar b { font-size: 24px; font-weight: 800; color: #ffe7a8; font-variant-numeric: tabular-nums; text-shadow: 0 0 10px rgba(255, 200, 80, .5); }
#rtBar span { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: #c9b58a; }
#rtCost.up { color: #ff7b6b; animation: blink .6s steps(2) infinite; }
body.rt #toast { top: 118px; }
button.retire { font: inherit; font-weight: 800; border: 0; border-radius: 10px; cursor: pointer; padding: 8px 14px; background: linear-gradient(180deg, #ffe08a, #f5a73b); color: #3a2200; box-shadow: 0 6px 18px rgba(245, 167, 59, .35); margin-left: auto; margin-right: 8px; }
button.retire:focus { outline: 3px solid #fff; outline-offset: 2px; }
.retcard { background: linear-gradient(180deg, rgba(60, 34, 10, .92), rgba(20, 12, 30, .92)); border-color: rgba(255, 214, 120, .4); }
.retcard .rtsun { font-size: 54px; line-height: 1; margin-bottom: 6px; }
.retcard .grid.one { grid-template-columns: 1fr; }
.retcard button.primary { background: linear-gradient(180deg, #ffe08a, #f5a73b); color: #3a2200; box-shadow: 0 8px 24px rgba(245, 167, 59, .35); }
#pong { position: fixed; inset: 0; z-index: 8; background: #000; cursor: none; touch-action: none; }
#pong canvas { width: 100%; height: 100%; display: block; }
#fade { position: fixed; inset: 0; z-index: 9; pointer-events: none; opacity: 0; }
