/* MR City (MR-20261029-MRCITY) - interfejs gry (gierki/mrcraft/miasto.php, wdrożenie: docs/deployments/2026-10-29-mrcity.md) */
:root {
  --bg: #0f1419;
  --card: #16202a;
  --line: rgba(255, 255, 255, .12);
  --text: #e7e9ea;
  --muted: #8b98a5;
  --accent: #1d9bf0;
  --hp: #3fbf6f;
  --danger: #f4212e;
  --gold: #f2c230;
}
* { box-sizing: border-box; }
/* poziom przy nicku w czacie (MR-20261102-CITYCHATLV) */
.chat-log b .clv { display: inline-block; margin-left: 5px; padding: 0 5px; border-radius: 9999px; background: rgba(242, 194, 48, .2);
  color: #f2c230; font-size: 10px; font-weight: 900; line-height: 15px; vertical-align: 1px; }
.chat-log b .clv::before { content: 'lvl '; font-weight: 700; opacity: .8; }
/* zakładki czatu (MR-20261102-CITYNPCCHAT): Czat do wszystkich i rozmowa z NPC; kropka - nowa wiadomość w drugiej zakładce */
.chat-tabs { display: flex; gap: 4px; }
.chat-tabs button { position: relative; height: 22px; max-width: 180px; padding: 0 10px; border: 1px solid var(--line); border-radius: 9999px;
  background: rgba(15, 20, 25, .62); color: var(--muted); font: inherit; font-size: 12px; font-weight: 800; cursor: pointer;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-tabs button.on { background: rgba(15, 20, 25, .88); color: var(--text); border-color: var(--accent); }
.chat-tabs #tabNpc.on { color: #f2c230; border-color: #f2c230; }
.chat-tabs button.new::after { content: ''; position: absolute; top: 3px; right: 4px; width: 6px; height: 6px; border-radius: 50%; background: #f4212e; }
.chat-log[hidden] { display: none; }
.chat-form.npc input { border-color: #f2c230; }
/* kaucja w celi (MR-20261102-CITYBAIL): przycisk pod paskiem celi, na środku u góry */
.bail-btn { position: absolute; left: 50%; transform: translateX(-50%); z-index: 6; display: none; font-weight: 900; pointer-events: auto; }
/* paski przewijania (MR-20261031-CITYSCROLL, prośba właściciela z 31.10.2026: „popraw te brzydkie scrolle”): cienkie, ciemne,
   półprzezroczyste, bez strzałek - w oknach, czacie i panelu ekwipunku zamiast jasnych systemowych. Chrome i Safari - własny
   pasek (::-webkit-scrollbar, bez scrollbar-width/color, które w Chrome przywracają systemowy pasek ze strzałkami), Firefox -
   scrollbar-width/color */
@supports (-moz-appearance: none) { * { scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .22) transparent; } }
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-button { display: none; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .2); border: 2px solid transparent; border-radius: 9999px; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: rgba(255, 255, 255, .34); }
html, body { margin: 0; height: 100%; overflow: hidden; background: var(--bg); color: var(--text);
  font: 14px/1.35 system-ui, -apple-system, "Segoe UI", Roboto, Inter, sans-serif; -webkit-user-select: none; user-select: none;
  touch-action: none; overscroll-behavior: none; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; }
.city { position: fixed; inset: 0; }
#cityCanvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; }

/* HUD */
.hud { position: absolute; inset: 0; pointer-events: none; padding: max(10px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left)); }
.hud a, .hud button, .hud input, .hud form { pointer-events: auto; }
.hud-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.hud-left { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-width: 0; }
.hud-right { display: flex; flex-direction: column; gap: 6px; align-items: flex-end; }
.hud-row { display: flex; gap: 6px; align-items: center; }
.hbtn, .pill { display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 12px; border-radius: 9999px;
  background: rgba(15, 20, 25, .72); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 600; font-size: 13px; cursor: pointer; }
.hbtn:hover { background: rgba(39, 51, 64, .9); }
.pill { cursor: default; color: var(--muted); }
.mini { width: 150px; height: 150px; border-radius: 12px; border: 1px solid var(--line); background: #2d6c9c; box-shadow: 0 4px 18px rgba(0, 0, 0, .35); }

.feed { display: flex; flex-direction: column; gap: 4px; max-width: 60vw; }
.feed div { padding: 4px 10px; border-radius: 8px; background: rgba(15, 20, 25, .72); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: opacity .4s; }
.feed div.old { opacity: 0; }
.feed b { font-weight: 700; }
.feed .me { color: var(--gold); }
.feed em { font-style: normal; color: var(--muted); margin: 0 6px; }

.status { position: absolute; top: max(14px, env(safe-area-inset-top)); left: 50%; transform: translateX(-50%); max-width: min(560px, 70vw); text-align: center;
  padding: 8px 14px; border-radius: 12px; background: rgba(15, 20, 25, .85); border: 1px solid var(--line); font-weight: 600; display: none; }
.status.on { display: block; }
.hint { position: absolute; left: 50%; bottom: 120px; transform: translateX(-50%); padding: 7px 14px; border-radius: 9999px; background: rgba(15, 20, 25, .8);
  font-weight: 700; display: none; white-space: nowrap; }
.hint.on { display: block; }
.toast { position: absolute; left: 50%; top: 30%; transform: translate(-50%, -50%); padding: 10px 18px; border-radius: 14px; background: rgba(15, 20, 25, .85);
  font-weight: 800; font-size: 16px; opacity: 0; transition: opacity .25s; white-space: nowrap; }
.toast.on { opacity: 1; }

.hud-bottom { position: absolute; left: max(12px, env(safe-area-inset-left)); right: max(12px, env(safe-area-inset-right)); bottom: max(10px, env(safe-area-inset-bottom));
  display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.vitals { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-radius: 14px; background: rgba(15, 20, 25, .72); border: 1px solid var(--line); min-width: 230px; }
.hp { position: relative; height: 18px; border-radius: 9999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.hp i { position: absolute; inset: 0 auto 0 0; width: 100%; background: var(--hp); border-radius: 9999px; transition: width .15s, background .15s; }
.hp i.low { background: var(--danger); }
.hp b { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; text-shadow: 0 1px 2px #000; }
.kd { display: flex; gap: 14px; color: var(--muted); font-size: 12px; }
.kd b { color: var(--text); }

.chat { width: min(340px, 40vw); display: flex; flex-direction: column; gap: 6px; }
.chat-log { display: flex; flex-direction: column; gap: 3px; }
.chat-log div { padding: 3px 9px; border-radius: 8px; background: rgba(15, 20, 25, .62); font-size: 13px; overflow-wrap: anywhere; transition: opacity .6s; }
.chat-log div.old { opacity: 0; }
.chat-log b { color: var(--accent); margin-right: 5px; }
/* rozmowa z NPC (MR-20261031-CITYTALK): moje słowa przyciszone, odpowiedź NPC złota, słowa kluczowe do kliknięcia */
.chat-log div.npc-me { opacity: .78; }
.chat-log div.npc-me b { color: var(--muted); }
.chat-log div.npc { background: rgba(40, 32, 8, .75); }
.chat-log div.npc b { color: #f2c230; }
.chat-log .kw { display: inline; padding: 0 2px; border: 0; background: none; color: #6bc4ff; font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.chat-log .kw:hover { color: #9fd8ff; }
.house-row.done b { color: #3fbf6f; }
/* księga czarów (MR-20261031-CITYSPELL): czary do nauki przygaszone, wybór klawisza F1-F8 */
.house-row.locked { opacity: .6; }
/* czary w sklepie nauczyciela (MR-20261031-CITYSPELLSHOP) */
.shop-sub { margin: 12px 2px 4px; font-weight: 800; font-size: 13px; color: #ff9f43; }
.shop-row.spell canvas { background: rgba(255, 159, 67, .12); border-radius: 10px; }
.house-row .hk-sel { flex: none; height: 34px; padding: 0 8px; border-radius: 9999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08);
  color: var(--text); font: inherit; font-size: 13px; }
.chat-form input { width: 100%; height: 34px; padding: 0 12px; border-radius: 9999px; border: 1px solid var(--line); background: rgba(15, 20, 25, .75);
  color: var(--text); font: inherit; outline: none; -webkit-user-select: text; user-select: text; }
.chat-form input:focus { border-color: var(--accent); }

.hurt { position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .35s;
  background: radial-gradient(ellipse at center, transparent 55%, rgba(244, 33, 46, .55) 100%); }
.hurt.on { opacity: 1; transition: none; }
.death { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); display: none; flex-direction: column; align-items: center; gap: 6px;
  padding: 18px 28px; border-radius: 16px; background: rgba(15, 20, 25, .82); border: 1px solid var(--line); pointer-events: none; text-align: center; }
.death.on { display: flex; }
.death b { font-size: 28px; color: var(--danger); }
.death em { font-style: normal; color: var(--muted); }

/* strefa walki i status PK (MR-20261101-CITYPK) */
.pvp { position: absolute; left: 50%; top: calc(max(10px, env(safe-area-inset-top)) + 46px); transform: translateX(-50%); display: none; padding: 4px 12px;
  border-radius: 9999px; font-size: 12px; font-weight: 800; background: rgba(15, 20, 25, .78); border: 1px solid var(--line); white-space: nowrap; }
.pvp.on { display: block; }
.pvp.safe { color: #3fbf6f; border-color: rgba(63, 191, 111, .6); }
.pvp.street { color: #f2c230; border-color: rgba(242, 194, 48, .5); }
.pvp.red { color: #f4212e; border-color: rgba(244, 33, 46, .6); }
.st { font-size: 12px; }
.rev { display: none; font-size: 12px; font-weight: 700; color: #ff9f43; }
.rev.on { display: block; }
.is-touch .pvp { top: auto; bottom: calc(max(10px, env(safe-area-inset-bottom)) + 62px); }

/* pasek szybkiego dostępu (MR-20261031-CITYGEAR) */
.hotbar { position: absolute; left: 50%; bottom: max(10px, env(safe-area-inset-bottom)); transform: translateX(-50%); display: flex; gap: 6px;
  padding: 6px; border-radius: 14px; background: rgba(15, 20, 25, .75); border: 1px solid var(--line); pointer-events: auto; }
.hotbar button { position: relative; width: 54px; height: 54px; padding: 0; border-radius: 10px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); cursor: pointer; overflow: hidden; }
.hotbar button canvas { display: block; width: 40px; height: 40px; margin: 3px auto 0; }
.hotbar button em { position: absolute; left: 4px; top: 2px; font-style: normal; font-size: 11px; font-weight: 800; color: var(--muted); }
.hotbar button small { position: absolute; right: 4px; bottom: 3px; font-size: 11px; font-weight: 800; text-shadow: 0 1px 2px #000, 0 0 3px #000; }
.hotbar button i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--gold); }
.hotbar button.on { border-color: var(--accent); background: rgba(29, 155, 240, .22); box-shadow: inset 0 0 0 1px var(--accent); }
.hotbar button.off { opacity: .35; }
/* 15 miejsc, przeciąganie: puste miejsce, przeciągana rzecz, miejsce docelowe, rzecz pod palcem / kursorem (MR-20261031-CITYHOTDROP) */
.hotbar button { touch-action: none; }
.hotbar button.empty { background: rgba(255, 255, 255, .02); border-style: dashed; cursor: default; }
.hotbar button.drag { opacity: .35; }
.hotbar button.tgt { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.hot-ghost { position: fixed; z-index: 60; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 10px; border: 1px solid var(--accent);
  background: rgba(15, 20, 25, .88); pointer-events: none; display: none; }
.hot-ghost.on { display: block; }
.hot-ghost canvas { display: block; width: 38px; height: 38px; margin: 5px auto 0; }
.hot-ghost b { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 5px; padding: 2px 8px; border-radius: 9999px;
  background: rgba(244, 33, 46, .92); font-size: 11px; font-weight: 800; white-space: nowrap; display: none; }
.hot-ghost.out { border-color: #f4212e; }
.hot-ghost.out b { display: block; }

/* okno ekwipunku */
.card.inv-card { width: min(820px, 100%); }
.inv { display: flex; gap: 18px; align-items: flex-start; }
.doll { display: flex; align-items: center; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--line);
  background: radial-gradient(circle at 50% 45%, rgba(29, 155, 240, .2), rgba(0, 0, 0, .3) 70%); }
.doll canvas { width: 180px; height: 180px; }
.doll-col { display: flex; flex-direction: column; gap: 10px; }
.slot { position: relative; width: 56px; height: 56px; padding: 0; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .35); cursor: pointer; }
.slot canvas { display: block; width: 46px; height: 46px; margin: auto; }
.slot.empty::after { content: attr(data-label); position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 10px; font-weight: 600; color: var(--muted); }
.slot.sel { box-shadow: 0 0 0 2px #fff; }
.inv-side { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.inv-stats { display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; }
.inv-stats b { font-size: 18px; }
.bag-head { display: flex; justify-content: space-between; align-items: baseline; }
.bag { display: grid; grid-template-columns: repeat(6, 56px); gap: 6px; }
.item-info { min-height: 118px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); }
.item-info h3 { margin: 0 0 4px; font-size: 15px; }
.item-info p { margin: 2px 0; font-size: 13px; }
.item-info .up { color: #3fbf6f; font-weight: 700; }
.item-info .down { color: #f4212e; font-weight: 700; }
.item-info .acts { display: flex; gap: 6px; margin-top: 8px; }
.item-info .acts button { height: 30px; padding: 0 14px; border-radius: 9999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08);
  font-weight: 700; cursor: pointer; }
.item-info .acts button.main { background: var(--text); color: #0f1419; border-color: transparent; }
.item-info .acts button.warn { color: #f4212e; }

/* nakładki */
.overlay { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; padding: 16px; background: rgba(0, 0, 0, .5); z-index: 5; }
.overlay.visible { display: flex; }
.card { position: relative; width: min(460px, 100%); max-height: 100%; overflow: auto; padding: 22px; border-radius: 18px; background: var(--card);
  border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(0, 0, 0, .5); }
.card h2 { margin: 0 0 12px; font-size: 20px; }
.card .x { position: absolute; top: 10px; right: 12px; width: 32px; height: 32px; border-radius: 9999px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--muted); }
.card .x:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.muted { color: var(--muted); font-size: 13px; }
.keys { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 6px; }
.keys b { color: var(--text); }
.score-table { width: 100%; border-collapse: collapse; }
.score-table th, .score-table td { padding: 7px 6px; border-bottom: 1px solid var(--line); text-align: left; }
.score-table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.score-table td:nth-child(n+3), .score-table th:nth-child(n+3) { text-align: right; width: 70px; }
.score-table tr.me td { color: var(--gold); font-weight: 700; }

.start-card { text-align: center; }
.logo { font-size: 34px; font-weight: 900; letter-spacing: 2px; }
.logo b { color: var(--gold); }
.lead { margin: 4px 0 16px; color: var(--muted); }
/* kreator postaci (MR-20261101-CITYCREATOR): podgląd z obracaniem po lewej, zakładki z kafelkami po prawej, stopka z GRAJ */
.start-card { width: min(560px, 100%); }
.card.cr-card { width: min(1060px, 100%); display: flex; flex-direction: column; overflow: hidden; padding: 18px 20px 14px; }
.cr-card .logo { font-size: 26px; }
.cr-card .lead { margin: 0 0 12px; font-size: 13px; }
.cr-card #startBody { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.cr { display: grid; grid-template-columns: 268px minmax(0, 1fr); gap: 20px; min-height: 0; flex: 1; text-align: left; }
.cr-stage { display: flex; flex-direction: column; gap: 9px; min-height: 0; overflow: auto; }
.cr-view { position: relative; flex: 0 0 auto; border-radius: 18px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(120% 85% at 50% 22%, #3d556e 0%, #1f2f3e 58%, #121a22 100%); }
.cr-view canvas { display: block; width: 100%; aspect-ratio: 1; cursor: grab; touch-action: none; }
.cr-view canvas:active { cursor: grabbing; }
/* strzałki obracania po bokach podglądu, nazwa widoku u góry */
.cr-turn { position: absolute; inset: 0; pointer-events: none; }
.cr-turn button { position: absolute; top: calc(50% - 18px); pointer-events: auto; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: rgba(15, 20, 25, .72); font-size: 17px; cursor: pointer; }
.cr-turn button:hover { background: rgba(39, 51, 64, .95); }
.cr-turn button:first-child { left: 8px; }
.cr-turn button:last-child { right: 8px; }
.cr-turn span { position: absolute; top: 10px; left: 50%; transform: translateX(-50%); min-width: 82px; padding: 4px 10px; border-radius: 9999px; background: rgba(15, 20, 25, .6); color: var(--muted); font-size: 12px; font-weight: 700; text-align: center; }
.cr-opts { display: flex; gap: 6px; flex: 0 0 auto; }
.cr-opts button { flex: 1; height: 30px; padding: 0 6px; border-radius: 9999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04);
  color: var(--muted); font-size: 12px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.cr-opts button[aria-pressed="true"] { color: var(--text); background: rgba(29, 155, 240, .18); border-color: rgba(29, 155, 240, .6); }
.cr-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; flex: 0 0 auto; }
.cr-acts button { height: 36px; border-radius: 11px; border: 1px solid var(--line); background: rgba(255, 255, 255, .07); font-weight: 800; cursor: pointer; }
.cr-acts button:hover:not(:disabled) { background: rgba(255, 255, 255, .13); }
.cr-acts button:disabled { opacity: .4; cursor: default; }
.cr-h { display: flex; align-items: baseline; justify-content: space-between; margin-top: 2px; font-size: 13px; }
.cr-h small { color: var(--muted); font-size: 11px; }
.cr-pre { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.cr-pre button { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 3px 2px 5px; border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .04); cursor: pointer; }
.cr-pre button:hover { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .28); }
.cr-pre canvas { width: 44px; height: 44px; }
.cr-pre em { font-style: normal; font-size: 11px; font-weight: 700; }
.cr-panel { display: flex; flex-direction: column; min-height: 0; }
.cr-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 4px; border-radius: 14px; background: rgba(255, 255, 255, .05); flex: 0 0 auto; }
.cr-tabs button { display: flex; align-items: center; justify-content: center; gap: 7px; height: 42px; border: 0; border-radius: 10px; background: transparent;
  color: var(--muted); font-weight: 800; font-size: 14px; cursor: pointer; }
.cr-tabs button i { font-style: normal; font-size: 17px; }
.cr-tabs button:hover { color: var(--text); background: rgba(255, 255, 255, .06); }
.cr-tabs button.on { color: var(--text); background: rgba(29, 155, 240, .22); box-shadow: inset 0 0 0 1px rgba(29, 155, 240, .55); }
.cr-secs { min-height: 0; overflow: auto; padding: 4px 6px 4px 2px; margin-top: 6px; }
.cr-sec { padding: 12px 0 14px; border-top: 1px solid var(--line); }
.cr-sec:first-child { border-top: 0; }
.cr-sec h4 { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; font-size: 14px; }
.cr-sec h4 b { color: var(--muted); font-weight: 600; font-size: 13px; }
.cr-sec h4 b:not(:empty)::before { content: '· '; }
.cr-mini { height: 26px; padding: 0 10px; border-radius: 9999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .05); font-size: 12px;
  font-weight: 700; cursor: pointer; }
.cr-sec h4 .cr-mini:first-of-type { margin-left: auto; }
.cr-mini:hover { background: rgba(255, 255, 255, .12); }
.cr-note { margin: -4px 0 9px; color: var(--gold); font-size: 12px; }
.cr-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
.cr-tile { position: relative; display: flex; flex-direction: column; align-items: center; gap: 5px; padding: 7px 4px 8px; border-radius: 13px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .035); cursor: pointer; }
.cr-tile canvas { width: 62px; height: 62px; border-radius: 10px; background: radial-gradient(circle at 50% 38%, #3a5068, #1c2833 78%); }
.cr-tile em { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.15; }
.cr-tile:hover { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .26); }
.cr-tile.on { border-color: var(--accent); background: rgba(29, 155, 240, .15); box-shadow: inset 0 0 0 1px var(--accent); }
.cr-tile.on em { color: var(--text); }
.cr-tile.on::after { content: '✓'; position: absolute; top: 4px; right: 5px; width: 17px; height: 17px; border-radius: 50%; background: var(--accent); color: #fff;
  font-size: 10px; font-weight: 900; line-height: 17px; text-align: center; }
.cr-sw { display: flex; flex-wrap: wrap; gap: 9px; }
.cr-sw button { position: relative; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), 0 0 0 1px rgba(255, 255, 255, .16); transition: transform .1s; }
.cr-sw button:hover { transform: scale(1.12); }
.cr-sw button.on { box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .35), 0 0 0 2px var(--card), 0 0 0 4px var(--accent); }
.cr-sw button.on::after { content: '✓'; position: absolute; inset: 0; color: #fff; font-size: 14px; font-weight: 900; line-height: 32px; text-align: center;
  text-shadow: 0 0 3px #000, 0 0 2px #000; }
.cr-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); flex: 0 0 auto; }
.cr-foot .player { margin: 0; }
.cr-foot .play { min-width: 190px; }
.cr-card small { margin-top: 8px; text-align: center; }
.player { margin-bottom: 14px; color: var(--muted); }
.player b { color: var(--text); }
.play { display: inline-flex; align-items: center; justify-content: center; min-width: 200px; height: 46px; padding: 0 24px; border-radius: 9999px; border: 0;
  background: var(--text); color: #0f1419; font-weight: 900; font-size: 17px; letter-spacing: 1px; cursor: pointer; text-decoration: none; }
.play:hover { background: #fff; }
.play-2 { display: block; margin-top: 10px; color: var(--accent); text-decoration: none; font-weight: 600; }
.start-card small { display: block; margin-top: 14px; color: var(--muted); font-size: 12px; }

/* dotyk */
.touch { position: absolute; inset: 0; display: none; touch-action: none; }
.tbtns { display: none; }
.is-touch .touch { display: block; }
.is-touch #cityCanvas { cursor: default; }
.stick { position: absolute; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%; background: rgba(255, 255, 255, .08);
  border: 2px solid rgba(255, 255, 255, .18); pointer-events: none; opacity: .55; }
.stick.on { opacity: 1; }
.stick i { position: absolute; left: 50%; top: 50%; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; background: rgba(255, 255, 255, .35); }
.stick-r { border-color: rgba(244, 33, 46, .4); }
.is-touch .tbtns { position: absolute; right: max(14px, env(safe-area-inset-right)); bottom: calc(max(10px, env(safe-area-inset-bottom)) + 160px);
  display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.tbtn { pointer-events: auto; min-width: 52px; height: 44px; padding: 0 12px; border-radius: 9999px; border: 1px solid var(--line); background: rgba(15, 20, 25, .75);
  font-weight: 800; font-size: 14px; }
.tbtn:active { background: rgba(29, 155, 240, .35); }
.tcar { display: none; background: rgba(242, 194, 48, .9); color: #111; border-color: transparent; }
.tcar.on { display: block; }
.is-touch .hotbar { gap: 4px; padding: 4px; }
.is-touch .hotbar button { width: 46px; height: 46px; }
.is-touch .hotbar button canvas { width: 34px; height: 34px; }
.is-touch .hotbar button em { display: none; }
.is-touch .chat-form { display: none; }
.is-touch .chat-form.on { display: block; }
/* na dotyku dół ekranu zostaje dla palców: zdrowie, broń i czat u góry po lewej, wpisy o zabójstwach pod minimapą */
.is-touch .hud-bottom { top: calc(max(10px, env(safe-area-inset-top)) + 40px); bottom: auto; right: auto; flex-direction: column; align-items: flex-start; gap: 6px; }
.is-touch .vitals { width: min(190px, 50vw); min-width: 0; padding: 7px; gap: 5px; }
.is-touch #hudOnline { display: none; }
.is-touch .chat { width: min(240px, 56vw); }
.is-touch .hud-right { flex-direction: row-reverse; align-items: flex-start; }
.is-touch .hud-row { flex-direction: column; }
.is-touch .feed { position: absolute; right: max(12px, env(safe-area-inset-right)); top: calc(max(10px, env(safe-area-inset-top)) + 215px); align-items: flex-end; max-width: 46vw; }
.is-touch .hint { display: none !important; }
.is-touch .start-card small { display: none; }

@media (max-width: 720px), (max-height: 500px) {
  .mini { width: 96px; height: 96px; border-radius: 10px; }
  .vitals { min-width: 0; width: min(230px, 52vw); padding: 7px; }
  .kd { gap: 8px; font-size: 11px; }
  .hbtn, .pill { height: 28px; padding: 0 9px; font-size: 12px; }
  .chat-log div { font-size: 12px; }
  .feed div { font-size: 12px; }
  /* kreator na wąskim ekranie: podgląd na całą szerokość (niższy), style przewijane w bok, całe okno przewijane, GRAJ przyklejone */
  .card.cr-card { overflow: auto; padding: 14px 14px 0; }
  .cr-card #startBody { display: block; }
  .cr { grid-template-columns: minmax(0, 1fr); gap: 12px; min-height: auto; }
  .cr-stage { overflow: visible; }
  .cr-view canvas { width: auto; height: 210px; margin: 0 auto; }
  .cr-turn button { width: 30px; height: 30px; top: calc(50% - 15px); font-size: 15px; }
  .cr-opts button { font-size: 11.5px; }
  .cr-pre { display: flex; flex: 0 0 auto; overflow-x: auto; padding-bottom: 2px; }
  .cr-pre button { flex: 0 0 74px; }
  .cr-pre canvas { width: 40px; height: 40px; }
  .cr-secs { overflow: visible; }
  .cr-tabs button { gap: 4px; height: 38px; font-size: 12px; }
  .cr-tabs button i { font-size: 15px; }
  .cr-tiles { grid-template-columns: repeat(auto-fill, minmax(66px, 1fr)); }
  .cr-tile canvas { width: 52px; height: 52px; }
  .cr-foot { position: sticky; bottom: 0; z-index: 2; background: var(--card); padding-bottom: 12px; }
  .cr-foot .play { min-width: 0; flex: 1; }
  .logo { font-size: 28px; }
}
@media (max-width: 1100px) {
  .hotbar button { width: 46px; height: 46px; }
  .hotbar button canvas { width: 34px; height: 34px; }
}
/* 15 miejsc: do 1660 px szerokości dwa rzędy po 8 (między zdrowiem a czatem), podpowiedź nad paskiem; wąski ekran - mniejsze
   miejsca; telefon poziomo - jeden rząd, żeby pasek nie zabierał wysokości */
@media (max-width: 1660px) {
  .hotbar { display: grid; grid-template-columns: repeat(8, auto); }
  .hint { bottom: 150px; }
}
@media (max-width: 860px) {
  .hotbar button, .is-touch .hotbar button { width: min(46px, calc((100vw - 62px) / 8)); height: min(46px, calc((100vw - 62px) / 8)); }
  .hotbar button canvas, .is-touch .hotbar button canvas { width: 74%; height: 74%; margin: 6% auto 0; }
  .is-touch .pvp { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 112px); }
}
@media (max-height: 500px) and (orientation: landscape) {
  .is-touch .hotbar { display: flex; }
  .is-touch .hotbar button { width: min(42px, calc((100vw - 60px) / 15)); height: min(42px, calc((100vw - 60px) / 15)); }
  .is-touch .pvp { bottom: calc(max(10px, env(safe-area-inset-bottom)) + 62px); }
}
@media (max-width: 760px) {
  .inv { flex-direction: column; align-items: center; }
  .inv-side { width: 100%; }
  .bag { grid-template-columns: repeat(6, minmax(40px, 1fr)); }
  .bag .slot { width: auto; height: auto; aspect-ratio: 1; }
  .doll canvas { width: 130px; height: 130px; }
  .slot { width: 48px; height: 48px; }
  .slot canvas { width: 38px; height: 38px; }
}
@media (max-height: 500px) {
  .is-touch .tbtns { bottom: calc(max(8px, env(safe-area-inset-bottom)) + 130px); flex-direction: row; }
  .card { padding: 14px; }
  .lead { margin-bottom: 8px; }
}

/* przedmiot na ziemi - karta pod prawym przyciskiem (MR-20261031-CITYLOOK) */
.pk-card { position: fixed; z-index: 4; width: 260px; padding: 12px 14px; border-radius: 14px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .5); color: var(--text); font-size: 13px; line-height: 1.45; opacity: 0; transform: translateY(4px);
  transition: opacity .12s, transform .12s; pointer-events: none; }
.pk-card.on { opacity: 1; transform: none; }
.pk-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.pk-head canvas { width: 44px; height: 44px; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.pk-head b { font-size: 15px; }
.pk-card p { margin: 2px 0; }
.pk-card .muted { color: var(--muted); margin-top: 6px; }

/* poziom, kasa, energia i stamina (MR-20261031-CITYHUNT) */
.lvl { display: flex; align-items: center; gap: 8px; font-size: 12px; }
.lvl b { color: #9be15d; white-space: nowrap; }
.xpb { flex: 1 1 auto; height: 6px; border-radius: 9999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.xpb i { display: block; height: 100%; width: 0; background: #9be15d; border-radius: 9999px; transition: width .2s; }
.lvl em { font-style: normal; color: #f2c230; font-weight: 800; white-space: nowrap; }
.body { display: grid; grid-template-columns: auto 1fr auto 1fr; align-items: center; gap: 4px 6px; color: var(--muted); font-size: 11px; }
.body .bar { height: 6px; border-radius: 9999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.body .bar i { display: block; height: 100%; width: 100%; border-radius: 9999px; transition: width .2s; }
.body .en i { background: #f2a33a; }
.body .en i.low { background: var(--danger); }
.body .sta i { background: #4ea5d9; }

/* sklep (MR-20261031-CITYSHOP) */
.card.shop-card { width: min(520px, 100%); }
.shop-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.shop-row { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.shop-row.rare { border-color: rgba(242, 194, 48, .55); background: rgba(242, 194, 48, .08); }
.shop-row canvas { flex: none; width: 44px; height: 44px; border-radius: 10px; background: rgba(0, 0, 0, .25); }
.shop-row div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.shop-row b { font-size: 14px; }
.shop-row span { color: var(--muted); font-size: 12px; }
.shop-row .buy { flex: none; min-width: 72px; height: 36px; border: 0; border-radius: 9999px; background: #f2c230; color: #1b1b1b; font-weight: 800; font-size: 14px; cursor: pointer; }
.shop-row .buy:hover:not(:disabled) { filter: brightness(1.08); }
.shop-row .buy:disabled { background: rgba(255, 255, 255, .12); color: var(--muted); cursor: default; }
.shop-cash b { color: #f2c230; }
/* dom na własność (MR-20261031-CITYHOME) */
.card.house-card { width: min(560px, 100%); }
.house-body { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.house-row { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.house-row > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.house-row b { font-size: 14px; }
.house-row span { color: var(--muted); font-size: 12px; }
.house-body .hbtn { flex: none; min-width: 84px; height: 34px; padding: 0 14px; border: 0; border-radius: 9999px; background: rgba(255, 255, 255, .14);
  color: var(--text); font-weight: 800; font-size: 13px; cursor: pointer; }
.house-body .hbtn:hover:not(:disabled) { background: rgba(255, 255, 255, .22); }
.house-body .hbtn.gold { background: #f2c230; color: #1b1b1b; }
.house-body .hbtn.gold:hover:not(:disabled) { background: #f2c230; filter: brightness(1.08); }
.house-body .hbtn.red { background: rgba(244, 33, 46, .18); color: #ff6b74; }
.house-body .hbtn.red:hover:not(:disabled) { background: rgba(244, 33, 46, .28); }
.house-body .hbtn:disabled { background: rgba(255, 255, 255, .08); color: var(--muted); cursor: default; }
.house-note { margin: 2px 2px 4px; }
.house-bag { margin-bottom: 4px; }
.house-bag .slot:disabled { cursor: default; }
/* depozyt (MR-20261031-CITYDEPOT): broń i rzeczy z paska w skrytce i przy sobie */
.dp-hot { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 6px; }
.dp-hot button { display: inline-flex; align-items: center; gap: 6px; padding: 3px 12px 3px 4px; border-radius: 9999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .05); color: var(--text); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.dp-hot button:hover { background: rgba(255, 255, 255, .12); }
.dp-hot canvas { width: 28px; height: 28px; }
.dp-hot .muted { margin: 0; font-size: 12px; color: var(--muted); }
@media (max-width: 760px) {
  .house-row { flex-wrap: wrap; }
  .house-row > div { flex-basis: 100%; }
}
/* duża mapa (MR-20261031-CITYMAP2) */
.mini { cursor: pointer; pointer-events: auto; }
/* minimapa z uchwytem do rozciągania (MR-20261101-CITYMINISIZE) */
.mini-wrap { position: relative; display: inline-block; align-self: flex-start; pointer-events: auto; line-height: 0; }
.mini-grip { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 6px; cursor: nwse-resize; pointer-events: auto;
  background: rgba(16, 18, 22, .78) linear-gradient(135deg, transparent 0 46%, #cfd4d8 46% 54%, transparent 54% 64%, #cfd4d8 64% 72%, transparent 72%);
  border: 1px solid var(--line); opacity: .7; transition: opacity .15s; }
.mini-wrap:hover .mini-grip, .mini-grip.on { opacity: 1; }
/* większa minimapa nie wchodzi pod przyciski u góry - przyciski w razie potrzeby przechodzą do drugiego rzędu */
body:not(.is-touch) .hud-left { flex-shrink: 0; }
body:not(.is-touch) .hud-right { min-width: 0; }
body:not(.is-touch) .hud-row { flex-wrap: wrap; justify-content: flex-end; }
.map-overlay { padding: 12px; }
.map-card { position: relative; display: flex; flex-direction: column; width: min(1180px, 100%); height: min(860px, 100%); border-radius: 18px;
  background: var(--card); border: 1px solid var(--line); overflow: hidden; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.map-head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 16px; border-bottom: 1px solid var(--line); }
.map-head b { font-size: 17px; }
.map-hint { flex: 1 1 auto; min-width: 0; font-size: 12px; }
.map-btns { display: flex; gap: 6px; align-items: center; }
.map-btns .hbtn { min-width: 34px; justify-content: center; font-weight: 800; }
.map-btns .x { width: 32px; height: 32px; border-radius: 9999px; border: 0; background: transparent; font-size: 22px; cursor: pointer; color: var(--muted); }
.map-btns .x:hover { background: rgba(255, 255, 255, .08); color: var(--text); }
.map-canvas { flex: 1 1 auto; width: 100%; min-height: 0; display: block; touch-action: none; cursor: crosshair; background: #2d6c9c; }
@media (max-width: 760px) {
  .map-overlay { padding: 0; }
  .map-card { width: 100%; height: 100%; border-radius: 0; }
  .map-hint { display: none; }
}

/* panel ekwipunku na komputerze, przeciąganie, wymiana (MR-20261031-CITYTRADE) */
.eq-dock { position: absolute; right: max(12px, env(safe-area-inset-right)); top: 236px; width: 236px; display: none; pointer-events: auto;
  padding: 8px 10px 10px; border-radius: 14px; background: rgba(15, 20, 25, .82); border: 1px solid var(--line); box-shadow: 0 6px 22px rgba(0, 0, 0, .35); }
.eq-dock.on { display: block; }
.eq-dock.min .dock-body { display: none; }
.dock-head, .dock-sub, .dock-foot { display: flex; align-items: center; gap: 8px; }
.dock-head b { font-size: 14px; }
.dock-head .muted, .dock-sub .muted { font-size: 11px; color: var(--muted); }
.dock-head .muted { flex: 1; }
.dock-min { width: 24px; height: 24px; border: 0; border-radius: 9999px; background: rgba(255, 255, 255, .08); color: var(--text); font-weight: 800; cursor: pointer; }
.eq-dock.min .dock-min { transform: rotate(90deg); }
.dock-eq { display: grid; grid-template-columns: repeat(3, 44px); grid-auto-rows: 44px; gap: 5px; justify-content: center; margin: 8px 0 6px; }
.dock-sub { justify-content: space-between; margin: 4px 0; font-size: 12px; }
.dock-bag { display: grid; grid-template-columns: repeat(6, 33px); gap: 3px; }
.eq-dock .slot { width: 44px; height: 44px; border-radius: 8px; touch-action: none; }
.eq-dock .slot canvas { width: 36px; height: 36px; }
.eq-dock .dock-bag .slot { width: 33px; height: 33px; border-width: 1px; border-radius: 6px; }
.eq-dock .dock-bag .slot canvas { width: 28px; height: 28px; }
.eq-dock .slot.empty::after { font-size: 9px; }
.eq-dock .slot.drag { opacity: .35; }
/* pojemniki (MR-20261031-CITYBAGS): okna otwartych plecaków i worków pod plecakiem, otwarty pojemnik w plecaku */
.dock-cont { margin-top: 8px; padding-top: 6px; border-top: 1px solid var(--line); }
.dock-cont .cont-head { justify-content: flex-start; gap: 6px; }
.dock-cont .cont-head canvas { width: 22px; height: 22px; }
.dock-cont .cont-head .muted { margin-left: auto; }
.cont-x { width: 22px; height: 22px; border: 0; border-radius: 9999px; background: rgba(255, 255, 255, .08); color: var(--text); font-weight: 800; cursor: pointer; line-height: 1; }
.cont-x:hover { background: rgba(255, 255, 255, .16); }
.eq-dock .dock-bag .slot.open { box-shadow: 0 0 0 2px var(--gold); }
.cont-bag { margin: 6px 0 8px; }
.dock-foot { justify-content: space-between; margin-top: 8px; }
.dock-foot b { color: var(--gold); }
.dock-foot .hbtn { height: 28px; padding: 0 12px; }
.drag-ghost.lab b { display: block; }
.drag-ghost.bad { border-color: #f4212e; }
.pk-card.act { pointer-events: auto; }
.pk-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.pk-acts button { height: 30px; padding: 0 12px; border-radius: 9999px; border: 1px solid var(--accent); background: rgba(29, 155, 240, .18);
  color: var(--text); font-weight: 700; cursor: pointer; }
#invTrade { align-self: flex-start; }
.card.trade-card { width: min(680px, 100%); }
.trade-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 10px; }
.trade-side { padding: 10px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); min-width: 0; }
.trade-side h3 { margin: 0 0 6px; font-size: 14px; }
.trade-side h3 em { font-style: normal; color: #3fbf6f; font-size: 12px; margin-left: 4px; }
.trade-items { display: flex; flex-wrap: wrap; gap: 5px; min-height: 44px; align-items: center; }
.trade-items canvas { width: 40px; height: 40px; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .12); background: rgba(0, 0, 0, .35); }
.trade-items .tr-st, .trade-items .tr-cash { display: inline-flex; align-items: center; gap: 3px; font-weight: 800; font-size: 13px; }
.trade-items .tr-st canvas { width: 30px; height: 30px; }
.trade-items .tr-cash { color: var(--gold); }
.trade-items .muted { margin: 0; color: var(--muted); font-size: 12px; }
.trade-cash { display: flex; align-items: center; gap: 4px; margin-top: 8px; font-size: 13px; }
.trade-cash input { width: 110px; height: 30px; padding: 0 10px; border-radius: 9999px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--text); }
.trade-bag { grid-template-columns: repeat(8, 48px); gap: 5px; margin: 6px 0; }
.trade-bag .slot { width: 48px; height: 48px; }
.trade-bag .slot canvas { width: 40px; height: 40px; }
.trade-stacks { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0; }
.trade-stacks span { display: inline-flex; align-items: center; gap: 4px; padding: 3px 6px; border-radius: 9999px; background: rgba(255, 255, 255, .05); font-size: 13px; }
.trade-stacks canvas { width: 28px; height: 28px; }
.trade-stacks button { width: 26px; height: 26px; border-radius: 9999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: var(--text); font-weight: 800; cursor: pointer; }
.trade-acts { display: flex; gap: 8px; }
.trade-acts .play { width: auto; padding: 0 22px; }
.trade-acts .play:disabled { opacity: .6; cursor: default; }
.tr-req { position: absolute; left: 50%; top: 90px; transform: translateX(-50%); z-index: 6; display: none; align-items: center; gap: 8px; padding: 8px 10px 8px 14px;
  border-radius: 9999px; background: rgba(15, 20, 25, .92); border: 1px solid var(--accent); box-shadow: 0 8px 24px rgba(0, 0, 0, .45); font-weight: 700; font-size: 13px; }
.tr-req.on { display: flex; }
.tr-req button { height: 30px; padding: 0 12px; border-radius: 9999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: var(--text); font-weight: 700; cursor: pointer; }
.tr-req button:first-of-type { border-color: #3fbf6f; background: rgba(63, 191, 111, .2); }
@media (max-width: 700px) {
  .trade-cols { grid-template-columns: 1fr; }
  .trade-bag { grid-template-columns: repeat(6, 44px); }
  .trade-bag .slot { width: 44px; height: 44px; }
}

/* mana (MR-20261031-CITYRUNE) */
.hp.mp { height: 12px; margin-top: -2px; }
.hp.mp i { background: #3d7bff; }
.hp.mp b { font-size: 10px; }

/* pięść / otwarta dłoń (MR-20261031-CITYSKULL) */
.fist { margin-left: auto; height: 24px; padding: 0 9px; border-radius: 9999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08);
  color: var(--text); font-size: 12px; font-weight: 800; cursor: pointer; pointer-events: auto; }
.fist.on { border-color: #f4212e; background: rgba(244, 33, 46, .22); }

/* umiejętności (MR-20261031-CITYSKILL) */
.eq-dock { top: 206px; }
.dock-sk { display: grid; grid-template-columns: 1fr auto; gap: 1px 8px; margin-bottom: 6px; font-size: 11.5px; }
.dock-sk span { color: var(--muted); white-space: nowrap; }
.dock-sk b { text-align: right; font-size: 12px; }
.dock-sk i { grid-column: 1 / -1; display: block; height: 3px; border-radius: 9999px; background: rgba(255, 255, 255, .1); overflow: hidden; margin-bottom: 2px; }
.dock-sk i em { display: block; height: 100%; background: #3fbf6f; }
.dock-sk.inv-sk { grid-template-columns: 9em 2.5em 1fr; gap: 4px 10px; align-items: center; font-size: 12.5px; }
.dock-sk.inv-sk i { grid-column: auto; height: 6px; margin: 0; }

/* profesje (MR-20261031-CITYVOC) */
.card.voc-card { width: min(720px, 100%); }
.voc-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.voc-item { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); }
.voc-item.on { border-color: #3fbf6f; background: rgba(63, 191, 111, .1); }
.voc-item h3 { margin: 0; font-size: 16px; }
.voc-item p { margin: 0; font-size: 13px; color: var(--muted); }
.voc-item ul { margin: 0; padding-left: 18px; font-size: 12.5px; }
.voc-item button { align-self: flex-start; height: 32px; padding: 0 16px; border-radius: 9999px; border: 1px solid var(--accent); background: rgba(29, 155, 240, .2);
  color: var(--text); font-weight: 800; cursor: pointer; }
.voc-item button:disabled { opacity: .55; cursor: default; }
@media (max-width: 600px) { .voc-list { grid-template-columns: 1fr; } }

/* czat: 30 wiadomości z przewijaniem (MR-20261031-CITYCHAT) */
.chat-log { max-height: 196px; overflow-y: auto; overscroll-behavior: contain; padding-right: 2px; }
.chat-log div.old { opacity: 1; }
@media (hover: hover) and (pointer: fine) { .chat-log { pointer-events: auto; } }
/* panel ekwipunku w układzie z obrazka właściciela (MR-20261031-CITYCHAT): szyja, głowa, plecak / broń, tułów, rękawice /
   druga ręka, nogi, amunicja / obrona, stopy, atak; z boku pięść/dłoń, czaszka, Stop; paski zdrowia i many */
.eq-dock { width: 248px; }
.dock-body { max-height: calc(100vh - 262px); overflow-y: auto; }
/* panel po prawej zajmuje róg - czat przechodzi na lewo, nad statystyki */
body.dock-on .chat { position: absolute; left: 0; bottom: calc(100% + 10px); width: min(340px, 30vw); }
.dock-top { display: flex; gap: 6px; align-items: flex-start; justify-content: center; margin: 8px 0 6px; }
.eq-dock .dock-eq { grid-template-columns: repeat(3, 40px); grid-auto-rows: 40px; gap: 4px; margin: 0; }
.eq-dock .dock-eq .slot { width: 40px; height: 40px; }
.eq-dock .dock-eq .slot canvas { width: 32px; height: 32px; }
.dock-cell { position: relative; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 2px solid rgba(255, 255, 255, .12);
  background: rgba(0, 0, 0, .35); color: var(--text); }
.dock-cell small { position: absolute; left: 0; right: 0; top: 1px; font-size: 8px; font-weight: 700; color: var(--muted); text-align: center; }
.dock-cell b { font-size: 11px; font-weight: 800; margin-top: 8px; }
.dock-cell.stat { flex-direction: column; border-style: dashed; background: rgba(255, 255, 255, .03); }
.dock-cell.ammo { flex-direction: column; }
#dockItem small { top: auto; bottom: 1px; font-size: 9px; color: var(--text); text-shadow: 0 1px 2px #000; }
.dock-cell.pack { cursor: pointer; padding: 0; }
.dock-cell.pack span { font-size: 22px; line-height: 1; }
.dock-cell.pack.shut { opacity: .55; }
.dock-ctl { display: flex; flex-direction: column; gap: 4px; }
.dock-cb { width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border-radius: 8px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06); color: var(--text); font-size: 16px; }
button.dock-cb { cursor: pointer; }
button.dock-cb.on { border-color: #f4212e; background: rgba(244, 33, 46, .22); }
.dock-cb.skull { color: rgba(255, 255, 255, .18); font-size: 18px; }
.dock-cb.skull.on { color: #ffffff; border-color: #ffffff; background: rgba(255, 255, 255, .12); }
.dock-stop { width: 32px; height: 26px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: rgba(255, 255, 255, .08); color: var(--text);
  font-size: 10px; font-weight: 800; cursor: pointer; }
.dock-bars { display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; }
.dbar { display: grid; grid-template-columns: 14px 1fr 34px; align-items: center; gap: 5px; font-size: 11px; }
.dbar span { text-align: center; font-size: 11px; }
.dbar.hp span { color: #f4212e; }
.dbar.mp span { color: #6fa0ff; }
.dbar i { display: block; height: 8px; border-radius: 9999px; background: rgba(255, 255, 255, .1); overflow: hidden; }
.dbar em { display: block; height: 100%; width: 100%; }
.dbar.hp em { background: #e0262f; }
.dbar.mp em { background: #3d7bff; }
.dbar b { text-align: right; font-weight: 800; }
.dock-fold { width: 100%; padding: 0; border: 0; background: none; color: var(--text); font: inherit; cursor: pointer; }
.dock-fold.shut + .dock-sk { display: none; }
.dock-fold.shut .muted { display: inline-block; transform: rotate(-90deg); }
.dock-bag.shut { display: none; }
/* salon samochodowy MR Motors (MR-20261101-CITYSALON): moje auto, kolory, karty aut z podglądem i parametrami */
.card.salon-card { width: min(760px, 100%); max-height: calc(100% - 8px); overflow-y: auto; }
.salon-mine { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 12px; background: rgba(78, 165, 255, .1); border: 1px solid rgba(78, 165, 255, .45); }
.salon-mine canvas { flex: none; width: 112px; height: 60px; border-radius: 10px; background: #3a3e45; }
.salon-mine > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.salon-mine b { font-size: 14px; }
.salon-mine span { color: var(--muted); font-size: 12px; }
.salon-sw { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--muted); font-size: 13px; font-weight: 700; }
.salon-sw .sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); cursor: pointer; padding: 0; }
.salon-sw .sw.on { border-color: #f2c230; box-shadow: 0 0 0 2px rgba(242, 194, 48, .45); }
.salon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 8px; }
.salon-car { display: flex; flex-direction: column; gap: 5px; padding: 8px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); }
.salon-car.own { border-color: rgba(78, 165, 255, .6); }
.salon-car canvas { width: 100%; height: auto; aspect-ratio: 160 / 84; border-radius: 10px; background: #3a3e45; }
.salon-car b { font-size: 14px; }
.salon-stats { display: flex; flex-direction: column; gap: 3px; }
.salon-stats span { position: relative; display: block; font-size: 11px; color: var(--muted); padding-bottom: 5px; }
.salon-stats i { position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 2px; background: #4ea5ff; }
.salon-car .hbtn { width: 100%; }
/* schronisko i psy (MR-20261101-CITYDOGS): pole imienia psa, opis rasy */
.dog-name { width: 150px; max-width: 100%; padding: 6px 9px; border-radius: 9px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); color: var(--text); font: inherit; font-size: 13px; }
.dog-note { color: var(--muted); font-size: 11px; line-height: 1.3; }
/* wylogowanie (MR-20261101-CITYLOGOUT): w walce przycisk odlicza czas na czerwono */
#btnLogout.fight { color: #ffb4a8; border-color: rgba(224, 38, 47, .6); background: rgba(224, 38, 47, .14); }
@media (max-width: 760px) {
  .salon-mine { flex-wrap: wrap; }
  .salon-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* materiały (MR-20261101-CITYMATS): w ekwipunku i w skupie */
.inv-mats { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.inv-mats .mat { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px 3px 4px; border-radius: 9999px; background: rgba(255, 255, 255, .06);
  border: 1px solid var(--line); font-size: 12px; font-weight: 700; }
.inv-mats .mat canvas { width: 22px; height: 22px; }
.shop-row.mat .buy, .shop-row.craft .buy { min-width: 64px; }
.shop-row.craft { border-color: rgba(210, 176, 122, .45); background: rgba(210, 176, 122, .07); }
/* garaż MR Tuning (MR-20261101-CITYGARAGE): podgląd auta z tuningiem, sekcje części, tablica */
.gar-top { display: flex; gap: 12px; align-items: stretch; }
.gar-top canvas { flex: none; width: 260px; height: 130px; border-radius: 12px; background: #2b2f36; }
.gar-top > div { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.gar-top b { font-size: 15px; }
.gar-top span { color: var(--muted); font-size: 12px; }
.gar-top .gar-sum { color: #f2c230; font-weight: 800; font-size: 14px; margin-top: auto; }
.gar-btns { display: flex; gap: 8px; }
.gar-sec { display: flex; flex-direction: column; gap: 5px; }
.gar-h { font-size: 13px; font-weight: 800; color: var(--text); }
.gar-h span { margin-left: 6px; color: var(--muted); font-weight: 700; }
.gar-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.gar-opts .sw { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .25); cursor: pointer; padding: 0; }
.gar-opts .sw.on { border-color: #f2c230; box-shadow: 0 0 0 2px rgba(242, 194, 48, .45); }
.gar-opts .pill { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 9999px; border: 1px solid var(--line);
  background: rgba(255, 255, 255, .06); color: var(--text); font-size: 12px; font-weight: 700; cursor: pointer; }
.gar-opts .pill:hover { background: rgba(255, 255, 255, .12); }
.gar-opts .pill.on { border-color: #f2c230; background: rgba(242, 194, 48, .16); }
.gar-opts .pill i { width: 12px; height: 12px; border-radius: 50%; box-shadow: 0 0 6px currentColor; }
.gar-plate { width: 150px; height: 32px; padding: 0 10px; border-radius: 8px; border: 2px solid #2b2e33; background: #f4f4f2; color: #16171a; font-weight: 900;
  font-size: 15px; letter-spacing: 1px; text-transform: uppercase; }
@media (max-width: 760px) {
  .gar-top { flex-direction: column; }
  .gar-top canvas { width: 100%; height: auto; aspect-ratio: 2 / 1; }
}
/* panel dźwięku pod 🔊 (MR-20261101-CITYMUSIC): muzyka, efekty, wyciszenie */
.hud-row { position: relative; }
.snd-panel { position: absolute; top: 38px; right: 0; z-index: 6; display: none; flex-direction: column; gap: 8px; width: 240px; padding: 12px 14px;
  border-radius: 14px; background: rgba(15, 20, 25, .94); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(0, 0, 0, .45); pointer-events: auto; }
.snd-panel.on { display: flex; }
.snd-panel b { font-size: 14px; }
.snd-panel label { display: grid; grid-template-columns: 82px 1fr 38px; align-items: center; gap: 6px; font-size: 12px; color: var(--text); }
.snd-panel input[type=range] { width: 100%; accent-color: #f2c230; }
.snd-panel em { font-style: normal; color: var(--muted); text-align: right; font-size: 11px; }
.snd-panel .hbtn { justify-content: center; }
.snd-panel small { font-size: 11px; }
/* firmy (MR-20261101-CITYBIZ): ramka „Firma” w oknie sprzedawcy, salonu i garażu */
.biz-box { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; padding: 10px 12px; margin: 4px 0 8px; border-radius: 12px;
  background: rgba(127, 211, 107, .07); border: 1px solid rgba(127, 211, 107, .35); }
.biz-box.taken { background: rgba(255, 255, 255, .04); border-color: var(--line); }
.biz-box.mine { background: rgba(242, 194, 48, .08); border-color: rgba(242, 194, 48, .55); }
.biz-box > div { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.biz-box b { font-size: 14px; }
.biz-box span { color: var(--muted); font-size: 12px; }
.biz-box .hbtn { height: 32px; padding: 0 14px; border: 0; border-radius: 9999px; font-weight: 800; font-size: 13px; cursor: pointer; background: rgba(255, 255, 255, .14); color: var(--text); }
.biz-box .hbtn.gold { background: #f2c230; color: #1b1b1b; }
.biz-box .hbtn.red { background: rgba(244, 33, 46, .18); color: #ff6b74; }
.biz-box .hbtn:disabled { background: rgba(255, 255, 255, .08); color: var(--muted); cursor: default; }
/* okno logowania (MR-20261101-CITYNAME): postać, nazwa, @nick, GRAJ, zmiana wyglądu i nazwy */
.card.lg-card { width: min(640px, 100%); }
.lg { display: flex; align-items: center; gap: 18px; margin: 6px 0 10px; }
.lg-view { flex: none; width: 230px; height: 230px; border-radius: 18px; background: radial-gradient(circle at 50% 70%, rgba(242, 194, 48, .16), rgba(255, 255, 255, .03) 70%); border: 1px solid var(--line); }
.lg-view canvas { width: 100%; height: 100%; }
.lg-info { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lg-name { font-size: 30px; font-weight: 900; line-height: 1.1; color: #f2c230; overflow-wrap: anywhere; }
.lg-user { margin-top: -6px; font-size: 13px; color: var(--muted); opacity: .7; }
.lg-info .play { margin-top: 6px; }
.lg-acts { display: flex; flex-wrap: wrap; gap: 6px; }
.lg-acts button { height: 32px; padding: 0 12px; border-radius: 9999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .06); color: var(--text); font-weight: 700; font-size: 13px; cursor: pointer; }
.lg-acts button:hover { background: rgba(255, 255, 255, .12); }
.lg-form { display: none; gap: 6px; }
.lg-form.on { display: flex; }
.lg-form input { flex: 1 1 auto; min-width: 0; height: 34px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(0, 0, 0, .3); color: var(--text); font-size: 14px; }
.lg-card small { display: block; text-align: center; margin-top: 4px; }
@media (max-width: 560px) {
  .lg { flex-direction: column; align-items: stretch; }
  .lg-view { width: 180px; height: 180px; margin: 0 auto; }
  .lg-name { text-align: center; }
  .lg-user { text-align: center; }
}

/* MR Coinsy w plecaku (MR-20261101-CITYDMG) */
.slot.coin { cursor: default; border-color: rgba(242, 194, 48, .5); }
.slot.coin.p { border-color: rgba(214, 224, 235, .55); }
.slot.coin.d { border-color: rgba(56, 168, 255, .7); box-shadow: inset 0 0 10px rgba(56, 168, 255, .25); }
.slot.coin.zero { opacity: .45; }
.slot.coin b { position: absolute; right: 4px; bottom: 2px; font-size: 12px; font-weight: 800; color: #fff; line-height: 1;
  text-shadow: 0 1px 2px #000, 0 0 3px #000; pointer-events: none; }
.eq-dock .dock-bag .slot.coin b { right: 2px; bottom: 1px; font-size: 9px; }
/* broń w plecaku (MR-20261101-CITYPACKWEAP): broń w ręce - zielona ramka; wybrana runa albo granat (MR-20261101-CITYPACKRUNE) też */
.slot.stack.weap { cursor: pointer; }
.slot.stack.on { border-color: #3fbf6f; box-shadow: inset 0 0 8px rgba(63, 191, 111, .35); }

/* okienko „ile wyrzucić” (MR-20261101-CITYCOINS) */
.cnt-ov { z-index: 40; }
.cnt-card { width: min(380px, 100%); display: flex; flex-direction: column; gap: 12px; }
.cnt-head { display: flex; align-items: center; gap: 12px; }
.cnt-head canvas { width: 46px; height: 46px; flex: none; border-radius: 10px; background: rgba(255, 255, 255, .06); }
.cnt-head div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cnt-head b { font-size: 16px; }
.cnt-head span { font-size: 12px; }
.cnt-row { display: flex; align-items: center; gap: 10px; }
.cnt-row input[type=range] { flex: 1; min-width: 0; accent-color: var(--gold); }
.cnt-row input[type=number] { width: 96px; padding: 7px 9px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .35); color: #fff; font: inherit; font-weight: 700; text-align: right; }
.cnt-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.cnt-quick .hbtn { padding: 5px 11px; font-size: 13px; }
.cnt-sum { min-height: 18px; color: var(--gold); font-weight: 800; }
.cnt-sum:empty { display: none; }
.cnt-acts { display: flex; justify-content: flex-end; gap: 8px; }
.inv-mats .mat[role=button] { cursor: pointer; }
.inv-mats .mat[role=button]:hover { background: rgba(255, 255, 255, .12); }

/* Bank MR (MR-20261101-CITYBANK) */
.bank-card { width: min(420px, 100%); }
.bank-card h2 { margin: 0 0 6px; }
.bank-card p { margin: 0 0 14px; font-size: 13px; line-height: 1.45; }
.bank-sums { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.bank-sum { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.bank-sum span { font-size: 12px; color: var(--muted, #9aa3ad); }
.bank-sum b { font-size: 20px; font-weight: 800; }
.bank-sum.acc { background: rgba(56, 168, 255, .12); box-shadow: inset 0 0 0 1px rgba(56, 168, 255, .35); }
.bank-sum.acc b { color: #7fc4ff; }
.bank-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }

/* lista VIP pod mapą i wiadomości prywatne (MR-20261101-CITYVIP) */
.vip { width: 150px; display: flex; flex-direction: column; gap: 4px; padding: 6px; border-radius: 12px; background: rgba(15, 20, 25, .72);
  border: 1px solid var(--line); pointer-events: auto; }
.vip-top { display: flex; gap: 4px; align-items: center; }
.vip-head { flex: 1; min-width: 0; display: flex; align-items: baseline; gap: 6px; padding: 2px 4px; border: 0; background: none; color: var(--text);
  font: inherit; cursor: pointer; text-align: left; }
.vip-head b { font-size: 13px; color: var(--gold); }
.vip-head .muted { font-size: 11px; white-space: nowrap; }
.vip-head.unread b::after { content: ''; display: inline-block; width: 7px; height: 7px; margin-left: 4px; border-radius: 9999px; background: #c77dff; vertical-align: 2px; }
.vip-add { width: 24px; height: 24px; flex: none; border: 0; border-radius: 9999px; background: rgba(255, 255, 255, .1); color: var(--text); font-weight: 800; cursor: pointer; }
.vip-add:hover { background: rgba(255, 255, 255, .18); }
.vip-form { display: none; }
.vip-form.on { display: block; }
.vip-form input { width: 100%; height: 28px; padding: 0 8px; border-radius: 8px; border: 1px solid var(--line); background: rgba(0, 0, 0, .35); color: var(--text); font: inherit; font-size: 12px; outline: none; }
.vip-form input:focus { border-color: var(--accent); }
.vip-list { display: flex; flex-direction: column; gap: 1px; max-height: 210px; overflow-y: auto; }
.vip.shut .vip-list, .vip.shut .vip-form { display: none; }
.vip-row { display: flex; align-items: center; border-radius: 7px; }
.vip-row:hover, .vip-row.sel { background: rgba(255, 255, 255, .07); }
.vip-name { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; padding: 3px 4px; border: 0; background: none; color: var(--muted); font: inherit;
  font-size: 12.5px; cursor: pointer; text-align: left; }
.vip-name span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vip-name i { width: 7px; height: 7px; flex: none; border-radius: 9999px; background: rgba(255, 255, 255, .22); }
.vip-row.on .vip-name { color: var(--text); font-weight: 700; }
.vip-row.on .vip-name i { background: #2fd36b; box-shadow: 0 0 6px rgba(47, 211, 107, .7); }
.vip-name em { margin-left: auto; min-width: 16px; padding: 0 5px; border-radius: 9999px; background: #9b4dff; color: #fff; font-style: normal; font-size: 10px; font-weight: 800; text-align: center; }
.vip-del { flex: none; height: 20px; padding: 0 6px; border: 0; border-radius: 6px; background: none; color: var(--muted); font-size: 13px; cursor: pointer; opacity: 0; }
.vip-row:hover .vip-del, .vip-del.ask { opacity: 1; }
.vip-del.ask { background: rgba(244, 33, 46, .25); color: #fff; font-size: 10.5px; font-weight: 800; }
.vip-empty { padding: 2px 4px 4px; color: var(--muted); font-size: 11px; line-height: 1.35; }
@media (hover: none) { .vip-del { opacity: 1; } }
.chat-log div.pm { background: rgba(70, 30, 110, .78); cursor: pointer; }
.chat-log div.pm b { color: #d6a8ff; }
.pm-chip { display: none; align-self: flex-start; height: 24px; margin-bottom: 4px; padding: 0 10px; border: 0; border-radius: 9999px; background: #6b2fb3;
  color: #fff; font: inherit; font-size: 12px; font-weight: 800; cursor: pointer; pointer-events: auto; }
.pm-chip.on { display: inline-flex; align-items: center; }
.chat-form.pm input { border-color: #9b4dff; }
.chat-form { display: flex; flex-direction: column; }

/* układ na komputerze (MR-20261101-CITYUI, prośba właściciela z 01.11.2026: „eq daj do samej góry, hp i mana na samą górę,
   mapę po lewej stronie daj, usuń »<- Gierki«, a pasek (ile osób online, mapa, ekwipunek, postać itp.) przesuń na górę… popraw
   hp i manę przy eq, usuń te hp po lewej i manę, a resztę statystyk przenieś do EQ, żeby obok itemków to było widoczne, nad
   umiejętnościami”): panel ekwipunku od samej góry po prawej, na górze paski zdrowia i many, obok przedmiotów statystyki
   (paski na dole po lewej znikają), mapa i lista VIP w lewym górnym rogu, pasek przycisków na samej górze przed panelem,
   czat w lewym dolnym rogu */
body.dock-on .eq-dock { top: max(10px, env(safe-area-inset-top)); width: 312px; }
body.dock-on .dock-body { max-height: calc(100vh - 58px); }
body.dock-on .hud-top { padding-right: 326px; }
body.dock-on .hud-bottom { justify-content: flex-start; }
body.dock-on .chat { position: static; width: min(380px, 32vw); }
.dock-vit { display: none; }
body.dock-on .dock-vit { display: block; flex: 1; min-width: 0; }
.eq-dock .vitals { min-width: 0; padding: 0 0 0 2px; gap: 5px; background: none; border: 0; border-radius: 0; }
.eq-dock .vitals .hp, .eq-dock .vitals .kd-da, .eq-dock .vitals .fist { display: none; }
.eq-dock .vitals .lvl { flex-wrap: wrap; gap: 3px 6px; }
.eq-dock .vitals .lvl b { font-size: 12.5px; }
.eq-dock .vitals .lvl em { display: none; }
.eq-dock .vitals .xpb { flex-basis: 100%; height: 5px; }
.eq-dock .vitals .body { display: grid; grid-template-columns: 1fr; gap: 2px; font-size: 10.5px; }
.eq-dock .vitals .body .bar { height: 5px; margin-bottom: 2px; }
.eq-dock .vitals .kd { flex-wrap: wrap; gap: 2px 8px; font-size: 11px; }
.eq-dock .vitals .rev { font-size: 11px; }
.eq-dock .dock-top { justify-content: flex-start; }
.eq-dock .dock-bars { gap: 4px; margin: 6px 0 2px; }
.eq-dock .dbar { grid-template-columns: 14px 1fr; }
.eq-dock .dbar i { position: relative; height: 15px; background: rgba(255, 255, 255, .1); }
.eq-dock .dbar em { border-radius: 9999px; transition: width .15s; }
.eq-dock .dbar.hp em { background: linear-gradient(#ff5a63, #c81e28); }
.eq-dock .dbar.mp em { background: linear-gradient(#6d9bff, #2a5fe0); }
.eq-dock .dbar b { position: absolute; right: 0; left: 19px; text-align: center; margin-top: 0; font-size: 11px; line-height: 15px; text-shadow: 0 1px 2px #000; pointer-events: none; }
.eq-dock .dbar { position: relative; }
/* telefon: bez „← Gierki” panel zdrowia od samej góry, lista VIP pod czatem */
.is-touch .hud-bottom { top: max(10px, env(safe-area-inset-top)); }
.is-touch .vip { width: min(190px, 50vw); }

/* graffiti - okno T (MR-20261101-CITYTAG) */
.tag-card { width: min(520px, 100%); display: flex; flex-direction: column; gap: 10px; }
.tag-card h2 { margin: 0; }
.tag-prev { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line); }
.tag-row { display: flex; align-items: center; gap: 10px; }
.tag-row > span { width: 58px; flex: none; font-size: 12px; color: var(--muted); }
.tag-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.tag-opts .hbtn { height: 30px; padding: 0 12px; font-size: 13px; }
.tag-sw { width: 26px; height: 26px; border-radius: 9999px; border: 2px solid rgba(255, 255, 255, .25); cursor: pointer; padding: 0; }
.tag-sw.on { border-color: #fff; box-shadow: 0 0 0 2px var(--gold); }
.tag-info { margin: 0; font-size: 12px; }
.tag-opts .hbtn.gold { border-color: var(--gold); color: var(--gold); background: rgba(242, 194, 48, .12); }

/* drużyna (MR-20261101-CITYPARTY) */
.vip.pt .vip-head b { color: #7dff9a; }
.pt-row { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1px 4px; padding: 3px 4px; border-radius: 7px; font-size: 12px; }
.pt-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.pt-row.me span { color: var(--gold); }
.pt-row.dead { opacity: .5; }
.pt-row i { grid-column: 1; display: block; height: 4px; border-radius: 9999px; background: rgba(255, 255, 255, .12); overflow: hidden; }
.pt-row i em { display: block; height: 100%; background: #2fd36b; transition: width .3s; }
.pt-row i em.low { background: #f4212e; }
.pt-row .vip-del { grid-column: 2; grid-row: 1 / span 2; opacity: .7; }
.pt-leave { margin-top: 2px; height: 24px; border: 0; border-radius: 8px; background: rgba(244, 33, 46, .18); color: #ffb3b8; font: inherit; font-size: 11.5px; font-weight: 700; cursor: pointer; }
.pt-invite { position: absolute; left: 50%; top: 84px; transform: translateX(-50%); display: none; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  background: rgba(15, 20, 25, .92); border: 1px solid #2fd36b; box-shadow: 0 8px 24px rgba(0, 0, 0, .45); pointer-events: auto; z-index: 30; font-size: 13px; }
.pt-invite.on { display: flex; }
.pt-invite .hbtn { height: 30px; padding: 0 14px; }
.chat-log div.ptc { background: rgba(20, 70, 40, .8); cursor: pointer; }
.chat-log div.ptc b { color: #7dff9a; }
.pm-chip.party { background: #1f7a3a; }
.vip-head .muted { overflow: hidden; text-overflow: ellipsis; }

/* okna panelu (MR-20261101-CITYWINS): kolumna okien po prawej - życie i mana, ekwipunek z energią i staminą, poziom
   z umiejętnościami, plecak; każde okno przesuwasz za nagłówek w dowolne miejsce, – zwija, × zamyka; większe kratki z rzeczami */
body.dock-on .eq-dock.on { display: flex; flex-direction: column; gap: 8px; width: 316px; padding: 0; background: none; border: 0; box-shadow: none;
  max-height: calc(100vh - 20px); overflow-x: hidden; overflow-y: auto; pointer-events: none; }
.dwin { flex: none; pointer-events: auto; padding: 8px 10px 10px; border-radius: 14px; background: rgba(15, 20, 25, .88); border: 1px solid var(--line);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .35); }
.dwin.shut { display: none; }
.dwin.min .dwin-body { display: none; }
.dwin.float { position: fixed; z-index: 8; width: 316px; }
.dwin.moving { opacity: .94; box-shadow: 0 14px 36px rgba(0, 0, 0, .55); }
.dwin-head { display: flex; align-items: center; gap: 6px; min-height: 26px; cursor: grab; user-select: none; touch-action: none; }
.dwin.moving .dwin-head { cursor: grabbing; }
.dwin-head b { font-size: 14px; white-space: nowrap; }
.dwin-head .muted { flex: 1; min-width: 0; font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dwin-min, .dwin-x { flex: none; width: 22px; height: 22px; padding: 0; border: 0; border-radius: 9999px; background: rgba(255, 255, 255, .08); color: var(--text);
  font-weight: 800; line-height: 1; cursor: pointer; }
.dwin-min:hover, .dwin-x:hover { background: rgba(255, 255, 255, .18); }
.dwin-body { margin-top: 6px; }
.dwin .dock-bars { margin: 2px 0 0; }
.dwin .dock-top { justify-content: center; gap: 10px; margin: 2px 0 0; }
.eq-dock .dwin .dock-eq { grid-template-columns: repeat(3, 58px); grid-auto-rows: 58px; gap: 6px; }
.eq-dock .dwin .dock-eq .slot { width: 58px; height: 58px; border-radius: 10px; }
.eq-dock .dwin .dock-eq .slot canvas { width: 50px; height: 50px; }
.dwin .dock-cell small { font-size: 9px; }
.dwin .dock-cell b { font-size: 13px; }
.dwin .dock-cell.pack span { font-size: 30px; }
.dwin .dock-ctl { gap: 6px; }
.dwin .dock-cb { width: 42px; height: 42px; font-size: 20px; border-radius: 10px; }
.dwin .dock-stop { width: 42px; height: 30px; font-size: 11px; }
.dock-energy .body { grid-template-columns: 62px 1fr; gap: 6px 8px; margin-top: 10px; font-size: 11.5px; }
.dock-energy .body .bar { height: 8px; }
.dwin .dock-vit { display: block; }
.dwin .vitals .kd { font-size: 11.5px; }
.eq-dock .dwin .dock-bag { grid-template-columns: repeat(6, 46px); gap: 4px; justify-content: center; }
.eq-dock .dwin .dock-bag .slot { width: 46px; height: 46px; border-width: 2px; border-radius: 9px; }
.eq-dock .dwin .dock-bag .slot canvas { width: 40px; height: 40px; }
.eq-dock .dwin .dock-bag .slot.coin b { right: 3px; bottom: 2px; font-size: 11px; }
.dwin .dock-cont .cont-head canvas { width: 26px; height: 26px; }
/* menu „Panele” u góry */
.win-menu { width: 230px; }
.win-opt { height: 32px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: var(--muted);
  font: inherit; font-size: 13px; font-weight: 700; text-align: left; cursor: pointer; }
.win-opt.on { color: var(--text); border-color: rgba(63, 191, 111, .6); background: rgba(63, 191, 111, .12); }
.win-opt.on::before { content: '✓ '; color: #3fbf6f; }
.win-opt.reset { color: var(--text); font-weight: 600; }
