/* Łowcy Tornad — interfejs. Skala: 1rem rośnie z rozmiarem okna (od małych okien po 4K), --ui = ustawienie gracza. */
:root {
  --ui: 1;
  --glass: rgba(12, 16, 22, 0.64);
  --glass-2: rgba(12, 16, 22, 0.86);
  --panel: #151c24;
  --panel-2: #1a232d;
  --line: rgba(255, 255, 255, 0.09);
  --line-2: rgba(255, 255, 255, 0.16);
  --txt: #e9eef4;
  --dim: #8f9cab;
  --faint: #5e6a78;
  --acc: #ff8a1f;
  --acc-2: #ffb347;
  --gold: #ffcf3a;
  --good: #3ddc84;
  --warn: #ffb020;
  --bad: #ff4b4b;
  --cyan: #4fd8ff;
  --ef0: #62d0ff; --ef1: #3ddc84; --ef2: #ffe14d; --ef3: #ff9a1a; --ef4: #ff4b4b; --ef5: #d34dff;
  --r: 0.75rem;
  --shadow: 0 0.5rem 1.8rem rgba(0, 0, 0, 0.38);
  font-family: 'Rajdhani', 'Segoe UI', Arial, sans-serif;
  font-weight: 500;
}
html { font-size: calc(var(--ui) * clamp(11px, calc(5px + min(0.72vw, 1.28vh)), 32px)); }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #0b0e11; color: var(--txt); user-select: none; -webkit-font-smoothing: antialiased; }
body { font-size: 1rem; line-height: 1.3; }
#game, #game canvas { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
.hidden { display: none !important; }
button { font-family: inherit; cursor: pointer; color: inherit; }
b { font-weight: 700; }
.ic { width: 1em; height: 1em; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.14em; }
.ic.fill { fill: currentColor; stroke: none; }
.glass { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); backdrop-filter: blur(8px) saturate(1.15); box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05); }
kbd { display: inline-block; min-width: 1.5em; padding: 0.05em 0.4em; margin: 0 0.08em; text-align: center; font-family: inherit; font-weight: 700; font-size: 0.82em; line-height: 1.35; color: #fff;
  background: linear-gradient(180deg, #333c47, #242b33); border: 1px solid #4a5563; border-bottom-width: 0.18em; border-radius: 0.3em; }
.bad { color: var(--bad); }
.ok, .good { color: var(--good); }
.warn { color: var(--warn); }
.gold { color: var(--gold); }
.dim { color: var(--dim); }
.num { font-variant-numeric: tabular-nums; }
@keyframes fadein { from { opacity: 0; } }
@keyframes popin { from { opacity: 0; transform: scale(0.96) translateY(0.6rem); } }
@keyframes slidein { from { opacity: 0; transform: translateX(-1.5rem); } }
@keyframes pulse { 50% { opacity: 0.55; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; z-index: 5; }
#hud-left { position: absolute; top: 1rem; left: 1rem; width: 19.5rem; display: flex; flex-direction: column; gap: 0.55rem; }
#hud-tl { padding: 0.7rem 0.9rem 0.65rem; }
.pl-top { display: flex; gap: 0.75rem; align-items: center; }
.lvl-badge { position: relative; width: 3.2rem; height: 3.2rem; flex: none; }
.lvl-badge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.lb-track { fill: rgba(0, 0, 0, 0.35); stroke: rgba(255, 255, 255, 0.1); stroke-width: 3; }
.lb-fill { fill: none; stroke: var(--gold); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.6s; filter: drop-shadow(0 0 2px rgba(255, 207, 58, 0.6)); }
.lvl-badge b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.5rem; color: var(--gold); line-height: 1; }
.pl-id { flex: 1; min-width: 0; }
.pl-name { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; }
#hud-name { font-weight: 700; font-size: 1.22rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.net { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em; padding: 0.08rem 0.5rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.07); color: var(--dim); white-space: nowrap; }
.net::before { content: ''; display: inline-block; width: 0.42rem; height: 0.42rem; border-radius: 50%; background: currentColor; margin-right: 0.35rem; vertical-align: 0.08rem; }
.net.on { background: rgba(61, 220, 132, 0.14); color: var(--good); }
.xpbar { height: 0.42rem; margin-top: 0.3rem; background: rgba(255, 255, 255, 0.09); border-radius: 1rem; overflow: hidden; }
#hud-xp { height: 100%; width: 0; background: linear-gradient(90deg, #ffb020, #ffe26a); border-radius: 1rem; transition: width 0.5s; box-shadow: 0 0 0.5rem rgba(255, 207, 58, 0.5); }
.xptext { font-size: 0.78rem; color: var(--dim); margin-top: 0.12rem; }
.money-row { display: flex; align-items: baseline; gap: 0.6rem; margin-top: 0.3rem; padding-top: 0.35rem; border-top: 1px solid var(--line); }
#hud-money { font-size: 1.85rem; font-weight: 700; color: var(--good); letter-spacing: 0.01em; font-variant-numeric: tabular-nums; }
#hud-money-delta { font-weight: 700; font-size: 1.05rem; color: var(--good); opacity: 0; }
#hud-money-delta.neg { color: var(--bad); }
#hud-money-delta.go { animation: delta 2.6s ease-out; }
@keyframes delta { 0% { opacity: 0; transform: translateY(0.4rem); } 10% { opacity: 1; transform: none; } 75% { opacity: 1; } 100% { opacity: 0; transform: translateY(-0.4rem); } }

/* radio */
#radio { padding: 0.55rem 0.8rem 0.65rem; border-left: 3px solid var(--gold); animation: slidein 0.3s; }
#radio.out { opacity: 0; transition: opacity 0.8s; }
.radio-head { display: flex; align-items: center; gap: 0.45rem; font-size: 0.78rem; letter-spacing: 0.12em; color: var(--gold); }
.radio-head .ic { font-size: 1.05rem; }
.radio-head b { flex: 1; }
.sig { display: flex; gap: 2px; align-items: flex-end; height: 0.8rem; }
.sig i { width: 3px; background: var(--gold); border-radius: 1px; animation: sig 1s infinite; }
.sig i:nth-child(1) { height: 30%; } .sig i:nth-child(2) { height: 55%; animation-delay: 0.15s; } .sig i:nth-child(3) { height: 78%; animation-delay: 0.3s; } .sig i:nth-child(4) { height: 100%; animation-delay: 0.45s; }
@keyframes sig { 50% { opacity: 0.3; } }
#radio-text { margin-top: 0.25rem; font-size: 1.02rem; line-height: 1.3; }
#radio-text .cur { display: inline-block; width: 0.5em; height: 0.9em; background: var(--gold); vertical-align: -0.1em; animation: pulse 0.6s infinite; margin-left: 1px; }

/* powiadomienia */
#notify { display: flex; flex-direction: column; gap: 0.45rem; }
.toast { position: relative; display: flex; gap: 0.65rem; align-items: flex-start; padding: 0.55rem 0.8rem 0.6rem 0.7rem; background: var(--glass-2); border: 1px solid var(--line); border-radius: 0.6rem;
  box-shadow: var(--shadow); font-size: 1rem; line-height: 1.28; overflow: hidden; animation: slidein 0.3s cubic-bezier(0.2, 0.9, 0.3, 1.15); transition: opacity 0.5s, transform 0.5s; }
.toast > .ic { font-size: 1.3rem; margin-top: 0.05rem; color: var(--acc); }
.toast .tb { flex: 1; min-width: 0; }
.toast::after { content: ''; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: currentColor; opacity: 0.35; transform-origin: left; animation: life var(--life, 5.5s) linear forwards; }
@keyframes life { to { transform: scaleX(0); } }
.toast.money { color: var(--good); } .toast.money > .ic { color: var(--good); }
.toast.good { color: var(--cyan); } .toast.good > .ic { color: var(--cyan); }
.toast.bad { color: var(--bad); } .toast.bad > .ic { color: var(--bad); }
.toast.radio { color: var(--gold); } .toast.radio > .ic { color: var(--gold); }
.toast.info { color: var(--acc); }
.toast .tb { color: var(--txt); }
.toast.out { opacity: 0; transform: translateX(-1.5rem); }
.toast .plus { color: var(--good); }
.toast .xp { color: var(--gold); }
.toast .rw { display: flex; gap: 0.6rem; align-items: baseline; }
.toast .rw .plus { font-size: 1.35rem; }
.toast .rw .xp { font-size: 1rem; }
.toast .rt { color: var(--txt); }
.toast .bd { display: flex; flex-wrap: wrap; gap: 0.25rem; margin-top: 0.3rem; }
.toast .bd span { font-size: 0.78rem; padding: 0.05rem 0.4rem; border-radius: 0.3rem; background: rgba(255, 255, 255, 0.07); color: var(--dim); white-space: nowrap; }
.toast .bd span b { color: var(--txt); }

/* kompas */
#compass { position: absolute; top: 0.8rem; left: 50%; transform: translateX(-50%); width: 34rem; height: 4.4rem; }
.cstrip { position: absolute; left: 0; right: 0; top: 0; height: 3.5rem; overflow: hidden; background: linear-gradient(180deg, rgba(10, 14, 19, 0.62), rgba(10, 14, 19, 0.3));
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); mask-image: linear-gradient(90deg, transparent, #000 13%, #000 87%, transparent); }
#compass-tape { position: absolute; left: 50%; top: 0; height: 1.9rem; will-change: transform; }
.ct { position: absolute; top: 0; width: 1px; height: 0.4rem; background: rgba(255, 255, 255, 0.3); }
.ct.m { height: 0.65rem; background: rgba(255, 255, 255, 0.55); }
.ct-l { position: absolute; top: 0.55rem; transform: translateX(-50%); font-weight: 700; font-size: 1.05rem; color: #e5ebf1; line-height: 1; }
.ct-l.card { font-size: 1.25rem; top: 0.45rem; color: #fff; }
.ct-l.n { color: var(--acc); }
.ct-d { position: absolute; top: 0.72rem; transform: translateX(-50%); font-size: 0.7rem; color: #a3afbd; font-weight: 600; line-height: 1; }
#compass-inner { position: absolute; inset: 0; }
.cm { position: absolute; bottom: 0.15rem; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; line-height: 1; white-space: nowrap; font-weight: 700; }
.cm .ic { font-size: 1.05rem; }
.cm small { font-size: 0.72rem; margin-top: 0.1rem; }
.cm.tor { color: #ff5050; filter: drop-shadow(0 0 3px rgba(255, 0, 0, 0.8)); }
.cm.tor .ic { stroke-width: 2.6; }
.cm.base { color: var(--gold); }
.cm.veh { color: var(--cyan); }
.cm.ply small { color: var(--txt); }
.cm.ply i { width: 0.6rem; height: 0.6rem; border-radius: 50%; border: 1.5px solid #000; margin-bottom: 0.15rem; }
.cm.edge { opacity: 0.75; }
.compass-center { position: absolute; left: 50%; top: -0.1rem; width: 0; height: 0; transform: translateX(-50%); border-left: 0.4rem solid transparent; border-right: 0.4rem solid transparent; border-top: 0.5rem solid var(--acc); filter: drop-shadow(0 0 3px rgba(255, 138, 31, 0.8)); }
#compass-hdg { position: absolute; left: 50%; top: 3.55rem; transform: translateX(-50%); font-size: 0.85rem; font-weight: 700; letter-spacing: 0.06em; padding: 0 0.5rem; border-radius: 0.3rem; background: var(--glass-2); border: 1px solid var(--line); font-variant-numeric: tabular-nums; }

#banner { position: absolute; top: 5.9rem; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 0.7rem; max-width: calc(100vw - 2rem);
  padding: 0.4rem 1.1rem 0.4rem 0.6rem; border-radius: 0.6rem; background: linear-gradient(180deg, rgba(190, 18, 18, 0.9), rgba(130, 8, 8, 0.9)); border: 1px solid #ff6b6b;
  box-shadow: 0 0 1.6rem rgba(255, 30, 30, 0.45); font-weight: 700; font-size: 1.08rem; letter-spacing: 0.03em; white-space: nowrap; animation: warnpulse 1.2s infinite; z-index: 2; }
#banner .ic { font-size: 1.5rem; }
#banner .bn-t { display: flex; flex-direction: column; line-height: 1.1; }
#banner small { font-size: 0.8rem; font-weight: 600; opacity: 0.85; letter-spacing: 0.08em; }
#banner .ef { padding: 0.05rem 0.45rem; border-radius: 0.3rem; background: rgba(0, 0, 0, 0.35); }
@keyframes warnpulse { 50% { box-shadow: 0 0 2.6rem rgba(255, 40, 40, 0.8); background: linear-gradient(180deg, rgba(225, 30, 30, 0.95), rgba(150, 10, 10, 0.95)); } }

/* minimapa */
#minimap-wrap { position: absolute; top: 1rem; right: 1rem; width: 13.5rem; }
.mm-ring { position: relative; width: 13.5rem; height: 13.5rem; border-radius: 50%; padding: 0.3rem; background: conic-gradient(from 0deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.16));
  box-shadow: var(--shadow), 0 0 0 1px rgba(0, 0, 0, 0.5); }
#minimap { display: block; width: 100%; height: 100%; border-radius: 50%; }
.mm-zoom { position: absolute; top: 9.6rem; right: -0.2rem; display: flex; flex-direction: column; gap: 0.25rem; pointer-events: auto; }
.mm-zoom button, .map-tools button { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; background: var(--glass-2); border: 1px solid var(--line-2); border-radius: 50%; color: var(--txt); font-size: 0.95rem; }
.mm-zoom button:hover, .map-tools button:hover { background: rgba(255, 138, 31, 0.25); border-color: var(--acc); }
#minimap-info { display: flex; justify-content: center; gap: 0.6rem; width: max-content; margin: 0.35rem auto 0; padding: 0.05rem 0.6rem; border-radius: 1rem; background: var(--glass-2); border: 1px solid var(--line); font-size: 0.78rem; color: var(--dim); font-variant-numeric: tabular-nums; }
#minimap-info b { color: var(--txt); }

/* deska rozdzielcza */
#hud-bottom { position: absolute; bottom: 1rem; left: 50%; transform: translateX(-50%); display: flex; align-items: flex-end; gap: 0.7rem; }
.dial { position: relative; width: 8.8rem; height: 8.8rem; border-radius: 50%; background: radial-gradient(circle, rgba(12, 16, 22, 0.78) 55%, rgba(12, 16, 22, 0.55)); border: 1px solid var(--line);
  box-shadow: var(--shadow), inset 0 0 1.5rem rgba(0, 0, 0, 0.4); backdrop-filter: blur(6px); }
.dial svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.dial .trk { fill: none; stroke: rgba(255, 255, 255, 0.09); stroke-width: 6; stroke-linecap: round; }
.dial .zone { fill: none; stroke-width: 6; opacity: 0.28; }
.dial .val { fill: none; stroke-width: 6; stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; transition: stroke-dashoffset 0.12s linear, stroke 0.3s; }
.dial .tick { stroke: rgba(255, 255, 255, 0.35); stroke-width: 1.1; }
.dial .tick.m { stroke: rgba(255, 255, 255, 0.7); stroke-width: 1.6; }
.dial .tn { fill: var(--dim); font-size: 7px; font-weight: 700; text-anchor: middle; dominant-baseline: middle; font-family: Rajdhani, Arial, sans-serif; }
.dial .lim { stroke: #fff; stroke-width: 2.4; stroke-linecap: round; filter: drop-shadow(0 0 2px #000); transition: transform 0.4s; }
.dial .limt { fill: #fff; font-size: 6px; font-weight: 700; text-anchor: middle; font-family: Rajdhani, Arial, sans-serif; letter-spacing: 0.5px; }
.dial .dv { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.dial .dv b { font-size: 2.35rem; font-variant-numeric: tabular-nums; letter-spacing: -0.01em; }
.dial .dv small { color: var(--dim); font-size: 0.7rem; letter-spacing: 0.12em; margin-top: 0.1rem; }
.dial .dl { position: absolute; bottom: 0.45rem; left: 0; right: 0; text-align: center; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.14em; color: var(--dim); }
.dial .gear { position: absolute; top: 1.35rem; left: 0; right: 0; text-align: center; font-size: 0.85rem; font-weight: 700; color: var(--dim); letter-spacing: 0.1em; }
.dial .gear em { font-style: normal; color: var(--txt); padding: 0 0.15rem; }
.dial .gear em.r { color: var(--warn); }
.dial .warr { position: absolute; left: 50%; top: 1.15rem; width: 1.4rem; height: 1.4rem; margin-left: -0.7rem; color: var(--cyan); transition: transform 0.25s; }
.dial .warr .ic { width: 100%; height: 100%; stroke-width: 2.6; }
.dial .ef { position: absolute; bottom: 1.45rem; left: 0; right: 0; text-align: center; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; }
#dial-wind .dv { padding-top: 0.9rem; }
#dial-wind .dv b { font-size: 2rem; }

.veh-panel { width: 19rem; padding: 0.6rem 0.85rem 0.55rem; margin-bottom: 0.2rem; }
.vp-head { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.3rem; }
#g-veh-name { font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#g-veh-name.bad { color: var(--bad); }
.lamps { display: flex; gap: 0.3rem; }
.lamps i { display: grid; place-items: center; width: 1.45rem; height: 1.2rem; border-radius: 0.3rem; font-style: normal; font-weight: 700; font-size: 0.8rem; color: var(--faint); background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.lamps i.on { color: #1a1206; background: var(--gold); border-color: var(--gold); box-shadow: 0 0 0.5rem rgba(255, 207, 58, 0.6); }
#lamp-hb.on { background: var(--bad); border-color: var(--bad); color: #fff; box-shadow: 0 0 0.5rem rgba(255, 75, 75, 0.7); }
#lamp-cam.on { background: var(--cyan); border-color: var(--cyan); box-shadow: 0 0 0.5rem rgba(79, 216, 255, 0.5); }
.vp-row { display: flex; align-items: center; gap: 0.5rem; margin: 0.28rem 0; }
.vp-row > .ic { font-size: 1rem; color: var(--dim); }
.vp-val { min-width: 6.2rem; text-align: right; font-size: 0.84rem; font-weight: 700; letter-spacing: 0.04em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.bar { position: relative; flex: 1; height: 0.62rem; background: rgba(255, 255, 255, 0.08); border-radius: 0.2rem; overflow: hidden; }
.bar > div { height: 100%; width: 100%; background: var(--good); transition: width 0.3s, background 0.3s; }
.bar.thin { height: 0.4rem; }
.bar.segd::after { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(90deg, transparent 0 calc(10% - 2px), rgba(12, 16, 22, 0.95) calc(10% - 2px) 10%); }
#g-anchor-bar { width: 0; background: var(--cyan); }
#g-anchor-row.busy #g-anchor-bar { background: repeating-linear-gradient(45deg, var(--warn) 0 0.4rem, #d98a10 0.4rem 0.8rem); background-size: 1.13rem 100%; animation: stripes 0.6s linear infinite; }
@keyframes stripes { to { background-position: 1.13rem 0; } }
#g-stam { background: linear-gradient(90deg, #4fd8ff, #7fe9ff); }
#g-stam.low { background: var(--warn); }
.vp-items { display: flex; align-items: center; gap: 0.9rem; margin-top: 0.35rem; padding-top: 0.35rem; border-top: 1px solid var(--line); font-size: 0.95rem; }
.vp-items .item { display: flex; align-items: center; gap: 0.3rem; color: var(--dim); }
.vp-items .item b { color: var(--txt); font-size: 1.05rem; }
.vp-items .item.zero b { color: var(--bad); }
.vp-items kbd { font-size: 0.68rem; }
.vp-items .wet { margin-left: auto; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.08em; color: var(--dim); }
.vp-items .wet.slip { color: var(--cyan); }

/* podpowiedzi klawiszy */
#prompt { position: absolute; bottom: 11rem; left: 50%; transform: translateX(-50%); display: flex; gap: 0.5rem; flex-wrap: wrap; justify-content: center; max-width: calc(100vw - 2rem); }
#prompt .pr { display: flex; align-items: center; gap: 0.5rem; padding: 0.35rem 0.8rem 0.35rem 0.4rem; background: var(--glass-2); border: 1px solid var(--line); border-radius: 0.5rem; font-size: 1.05rem; box-shadow: var(--shadow); white-space: nowrap; animation: fadein 0.2s; }
#prompt .pr kbd { font-size: 0.95rem; color: #1a1206; background: linear-gradient(180deg, #ffd166, #ffb020); border-color: #ffe08a; border-bottom-color: #b87a00; }
#prompt .pr.mouse { color: var(--gold); }

/* komunikaty na środku */
#center-msg { position: absolute; top: 23%; left: 50%; transform: translateX(-50%); text-align: center; width: max-content; max-width: calc(100vw - 2rem); }
#center-msg .t { font-size: 3.5rem; font-weight: 700; letter-spacing: 0.08em; line-height: 1; text-shadow: 0 0.2rem 1.4rem rgba(0, 0, 0, 0.9), 0 0 2rem currentColor; }
#center-msg .s { display: inline-block; margin-top: 0.5rem; padding: 0.25rem 1rem; font-size: 1.3rem; font-weight: 600; background: var(--glass-2); border-radius: 0.4rem; border: 1px solid var(--line); }
#center-msg .s:empty { display: none; }
#center-msg .ln { height: 2px; margin: 0.6rem auto 0; width: 60%; background: linear-gradient(90deg, transparent, currentColor, transparent); }
#center-msg.show { animation: cmsg 3.8s forwards; }
@keyframes cmsg { 0% { opacity: 0; transform: translateX(-50%) scale(1.25); } 7% { opacity: 1; transform: translateX(-50%) scale(1); } 85% { opacity: 1; } 100% { opacity: 0; } }

/* intercept */
/* dron VORTEX */
#drone-hud { position: absolute; left: 1rem; bottom: 2.8rem; width: 19.5rem; padding: 0.6rem 0.85rem 0.7rem; display: flex; flex-direction: column; gap: 0.45rem; border-left: 3px solid var(--cyan); }
.dh-title { display: flex; align-items: center; gap: 0.45rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; color: var(--cyan); }
#dh-state { margin-left: auto; color: var(--bad); animation: pulse 0.8s infinite; }
.dh-row { display: flex; align-items: center; gap: 0.55rem; }
.dh-bar { flex: 1; height: 0.45rem; background: rgba(255, 255, 255, 0.09); border-radius: 1rem; overflow: hidden; }
#dh-bat { height: 100%; width: 100%; background: var(--good); border-radius: 1rem; transition: width 0.4s; }
#dh-bat.warn { background: var(--warn); }
#dh-bat.bad { background: var(--bad); animation: pulse 0.6s infinite; }
.dh-grid { display: flex; justify-content: space-between; font-size: 1.05rem; font-variant-numeric: tabular-nums; }
#drone-hud .k { color: var(--dim); font-size: 0.72rem; letter-spacing: 0.1em; margin-right: 0.3rem; }
#dh-sig.bad { color: var(--bad); }
.dh-keys { display: flex; flex-wrap: wrap; gap: 0.25rem 0.7rem; font-size: 0.78rem; color: var(--dim); }
#intercept { position: absolute; top: 12.5%; left: 50%; transform: translateX(-50%); text-align: center; }
.ic-title { display: flex; align-items: center; justify-content: center; gap: 0.6rem; font-size: 3.2rem; font-weight: 700; letter-spacing: 0.14em; color: #ff3b3b; text-shadow: 0 0 1.4rem #f00, 0 0.2rem 0.4rem #000; animation: shake 0.15s infinite; }
.ic-title .ic { stroke-width: 2.6; }
#intercept-info { display: inline-flex; gap: 1rem; align-items: center; margin-top: 0.3rem; padding: 0.35rem 1rem; background: var(--glass-2); border: 1px solid rgba(255, 75, 75, 0.5); border-radius: 0.5rem; font-size: 1.1rem; white-space: nowrap; }
#intercept-info .k { color: var(--dim); font-size: 0.8rem; letter-spacing: 0.1em; margin-right: 0.3rem; }
@keyframes shake { 25% { transform: translate(2px, -1px); } 75% { transform: translate(-2px, 1px); } }

/* awans */
#levelup { position: absolute; top: 18%; left: 50%; transform: translateX(-50%); pointer-events: auto; cursor: pointer; }
.lu-card { position: relative; width: 26rem; max-width: calc(100vw - 2rem); padding: 1.3rem 1.5rem 1.2rem; text-align: center; background: linear-gradient(180deg, rgba(40, 32, 12, 0.94), rgba(16, 14, 10, 0.94));
  border: 1px solid rgba(255, 207, 58, 0.55); border-radius: 1rem; box-shadow: 0 0 3rem rgba(255, 207, 58, 0.25), var(--shadow); animation: lupop 0.5s cubic-bezier(0.2, 1.4, 0.4, 1); overflow: hidden; }
.lu-card::before { content: ''; position: absolute; left: 50%; top: 2.8rem; width: 40rem; height: 40rem; margin: -20rem 0 0 -20rem; background: repeating-conic-gradient(rgba(255, 207, 58, 0.09) 0 8deg, transparent 8deg 20deg); animation: spin 18s linear infinite; pointer-events: none; }
.lu-card > * { position: relative; }
.lu-card.out { opacity: 0; transform: translateY(-1rem); transition: 0.5s; }
@keyframes lupop { from { opacity: 0; transform: scale(0.6); } }
.lu-k { font-size: 0.9rem; letter-spacing: 0.35em; color: var(--gold); font-weight: 700; }
.lu-l { font-size: 4rem; font-weight: 700; line-height: 1; color: #fff; text-shadow: 0 0 1.5rem rgba(255, 207, 58, 0.8); }
.lu-l span { color: var(--gold); }
.lu-bonus { display: inline-block; margin: 0.4rem 0 0.2rem; padding: 0.15rem 0.7rem; border-radius: 1rem; background: rgba(61, 220, 132, 0.15); color: var(--good); font-weight: 700; }
.lu-list { display: flex; flex-direction: column; gap: 0.35rem; margin-top: 0.7rem; text-align: left; }
.lu-list div { display: flex; align-items: center; gap: 0.6rem; padding: 0.4rem 0.6rem; background: rgba(0, 0, 0, 0.3); border-radius: 0.45rem; border: 1px solid rgba(255, 207, 58, 0.15); }
.lu-list .ic { color: var(--gold); font-size: 1.2rem; }
.lu-list small { color: var(--dim); margin-left: auto; }
.lu-hint { margin-top: 0.7rem; font-size: 0.8rem; color: var(--dim); }

/* wynik zdjęcia */
#photo-result { position: absolute; right: 1.2rem; bottom: 1.2rem; width: 17rem; z-index: 3; animation: phin 0.45s cubic-bezier(0.2, 1.2, 0.4, 1); }
#photo-result.out { opacity: 0; transform: translateY(1rem) rotate(2deg); transition: 0.5s; }
@keyframes phin { from { opacity: 0; transform: translateY(3rem) rotate(-6deg); } }
.polaroid { padding: 0.55rem 0.55rem 0.6rem; background: #f4f1ea; color: #1b1f24; border-radius: 0.35rem; box-shadow: 0 1rem 2.5rem rgba(0, 0, 0, 0.55); transform: rotate(-1.5deg); }
.polaroid img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #222; }
.polaroid .stars { margin-top: 0.4rem; color: #f0a500; font-size: 1.2rem; letter-spacing: 0.1em; }
.polaroid .stars .off { color: #c9c3b6; }
.polaroid .pt { font-weight: 600; font-size: 0.95rem; line-height: 1.2; }
.polaroid .pm { display: flex; gap: 0.7rem; font-weight: 700; margin-top: 0.15rem; }
.polaroid .pm .plus { color: #13914f; }
.polaroid .pm .xp { color: #b57b00; }

#help-hint { position: absolute; left: 1rem; bottom: 0.8rem; color: var(--dim); font-size: 0.85rem; display: flex; gap: 0.4rem; align-items: center; }
#help-hint kbd:nth-of-type(2) { margin-left: 0.6rem; }

/* czat */
#chat { position: absolute; left: 1rem; bottom: 2.6rem; width: 25rem; max-width: calc(100vw - 2rem); pointer-events: auto; }
#chat-log { display: flex; flex-direction: column; gap: 0.2rem; align-items: flex-start; }
#chat-log div { max-width: 100%; background: rgba(8, 11, 15, 0.62); padding: 0.18rem 0.6rem; border-radius: 0.4rem; font-size: 1rem; transition: opacity 2s; animation: slidein 0.25s; overflow-wrap: anywhere; }
#chat-log div.old { opacity: 0; }
#chat-log div.sys { color: var(--dim); font-style: italic; }
#hud.chat-open #chat-log div.old { opacity: 1; }
#chat-box { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.4rem; padding: 0.3rem 0.4rem 0.3rem 0.7rem; background: var(--glass-2); border: 1px solid var(--acc); border-radius: 0.5rem; box-shadow: 0 0 1rem rgba(255, 138, 31, 0.25); }
#chat-box .ic { color: var(--acc); }
#chat-input { flex: 1; min-width: 0; background: transparent; border: 0; color: #fff; padding: 0.3rem 0; font-family: inherit; font-size: 1.02rem; outline: none; }
#chat-input::placeholder { color: var(--faint); }

/* lista graczy */
#players { position: absolute; top: 22%; left: 50%; transform: translateX(-50%); width: 34rem; max-width: calc(100vw - 2rem); padding: 0.9rem 1rem 1rem; animation: popin 0.15s; }
#players h3 { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.6rem; font-size: 1.3rem; }
#players h3 small { margin-left: auto; color: var(--dim); font-size: 0.85rem; font-weight: 600; }
#players table { width: 100%; border-collapse: collapse; font-size: 1rem; }
#players th { text-align: left; font-size: 0.75rem; letter-spacing: 0.1em; color: var(--dim); font-weight: 700; padding: 0.2rem 0.5rem; border-bottom: 1px solid var(--line); }
#players td { padding: 0.4rem 0.5rem; border-bottom: 1px solid rgba(255, 255, 255, 0.04); white-space: nowrap; }
#players tr.me td { background: rgba(255, 138, 31, 0.08); }
#players .dot { display: inline-block; width: 0.7rem; height: 0.7rem; border-radius: 50%; margin-right: 0.45rem; vertical-align: -0.05rem; box-shadow: 0 0 0 1.5px rgba(0, 0, 0, 0.6); }
#players .tag { font-size: 0.72rem; font-weight: 700; padding: 0.05rem 0.4rem; border-radius: 0.3rem; margin-left: 0.3rem; background: rgba(255, 255, 255, 0.08); color: var(--dim); }
#players .tag.host { background: rgba(79, 216, 255, 0.15); color: var(--cyan); }

body.research #minimap-wrap, body.research #hud-bottom, body.research #compass, body.research #prompt, body.research #help-hint, body.research #banner { display: none; }
body.research #hud-left { width: 17.5rem; }

/* ---------- aparat ---------- */
body.photo #hud-bottom, body.photo #prompt, body.photo #hud-tl, body.photo #radio, body.photo #help-hint, body.photo #minimap-wrap, body.photo #chat, body.photo #banner, body.photo #compass { display: none; }
#photo-ui { position: fixed; inset: 0; pointer-events: none; z-index: 4; }
.vf { position: absolute; width: 4rem; height: 4rem; border: 0.2rem solid rgba(255, 255, 255, 0.85); filter: drop-shadow(0 0 2px rgba(0, 0, 0, 0.6)); }
.vf.tl { top: 7%; left: 6%; border-right: none; border-bottom: none; }
.vf.tr { top: 7%; right: 6%; border-left: none; border-bottom: none; }
.vf.bl { bottom: 7%; left: 6%; border-right: none; border-top: none; }
.vf.br { bottom: 7%; right: 6%; border-left: none; border-top: none; }
.thirds { position: absolute; inset: 7% 6%; background:
  linear-gradient(90deg, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.18) calc(33.33% - 0.5px) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px) calc(66.66% - 0.5px), rgba(255, 255, 255, 0.18) calc(66.66% - 0.5px) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)),
  linear-gradient(0deg, transparent calc(33.33% - 0.5px), rgba(255, 255, 255, 0.18) calc(33.33% - 0.5px) calc(33.33% + 0.5px), transparent calc(33.33% + 0.5px) calc(66.66% - 0.5px), rgba(255, 255, 255, 0.18) calc(66.66% - 0.5px) calc(66.66% + 0.5px), transparent calc(66.66% + 0.5px)); }
.focus { position: absolute; left: 50%; top: 50%; width: 3rem; height: 3rem; margin: -1.5rem 0 0 -1.5rem; border: 2px solid rgba(255, 255, 255, 0.75); border-radius: 50%; }
.focus i { position: absolute; left: 50%; top: 50%; width: 0.3rem; height: 0.3rem; margin: -0.15rem 0 0 -0.15rem; border-radius: 50%; background: #ff3b3b; }
.focus::before, .focus::after { content: ''; position: absolute; background: rgba(255, 255, 255, 0.75); }
.focus::before { left: 50%; top: -0.9rem; width: 2px; height: 4.8rem; margin-left: -1px; -webkit-mask: linear-gradient(transparent 0.9rem, #000 0.9rem, #000 1.3rem, transparent 1.3rem, transparent 3.5rem, #000 3.5rem, #000 3.9rem, transparent 3.9rem); mask: linear-gradient(transparent 0.9rem, #000 0.9rem, #000 1.3rem, transparent 1.3rem, transparent 3.5rem, #000 3.5rem, #000 3.9rem, transparent 3.9rem); }
.ph-top { position: absolute; top: 8.5%; left: 50%; transform: translateX(-50%); display: flex; gap: 1.2rem; align-items: center; font-weight: 700; font-size: 1.15rem; text-shadow: 0 1px 4px #000; }
.ph-top .rec { color: #ff3b3b; animation: pulse 1s infinite; }
#photo-count { color: var(--dim); font-size: 0.95rem; }
.ph-zoombar { position: absolute; right: 3.2%; top: 30%; bottom: 30%; width: 0.35rem; background: rgba(255, 255, 255, 0.2); border-radius: 1rem; }
#photo-zoombar { position: absolute; left: -0.35rem; width: 1.05rem; height: 0.3rem; margin-top: -0.15rem; background: var(--gold); border-radius: 0.2rem; top: 100%; transition: top 0.1s; box-shadow: 0 0 0.4rem rgba(0, 0, 0, 0.6); }
#photo-help { position: absolute; bottom: 8.5%; left: 50%; transform: translateX(-50%); display: flex; gap: 1.2rem; font-size: 1rem; text-shadow: 0 1px 4px #000; white-space: nowrap; }
#flash { position: fixed; inset: 0; background: #fff; opacity: 0; pointer-events: none; z-index: 30; }
#flash.go { animation: flash 0.5s; }
@keyframes flash { 0% { opacity: 0.9; } 100% { opacity: 0; } }
#damage-vignette { position: fixed; inset: 0; pointer-events: none; opacity: 0; background: radial-gradient(ellipse at center, transparent 50%, rgba(200, 0, 0, 0.7)); z-index: 3; }

/* ---------- okna (overlay / modal) ---------- */
.overlay { position: fixed; inset: 0; z-index: 20; display: flex; align-items: center; justify-content: center; padding: 1rem; background: radial-gradient(ellipse at center, rgba(8, 11, 15, 0.5), rgba(4, 6, 9, 0.82)); backdrop-filter: blur(5px); animation: fadein 0.18s; }
.modal { position: relative; display: flex; flex-direction: column; width: 100%; max-height: calc(100vh - 2rem); overflow: hidden; background: linear-gradient(180deg, rgba(24, 31, 40, 0.98), rgba(14, 19, 25, 0.98));
  border: 1px solid var(--line-2); border-radius: 1rem; box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.06); animation: popin 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.15); }
.modal-sm { max-width: 30rem; } .modal-md { max-width: 46rem; } .modal-lg { max-width: 62rem; } .modal-xl { max-width: 86rem; height: min(52rem, calc(100vh - 2rem)); } .modal-map { max-width: 100rem; height: calc(100vh - 2rem); }
.m-head { display: flex; align-items: center; gap: 0.9rem; padding: 0.9rem 1.2rem; border-bottom: 1px solid var(--line); flex: none; }
.m-head .ic.hi { width: 2.4rem; height: 2.4rem; padding: 0.5rem; border-radius: 0.65rem; background: rgba(255, 138, 31, 0.14); color: var(--acc); }
.m-title { flex: 1; min-width: 0; }
.m-title h2 { margin: 0; font-size: 1.65rem; line-height: 1.1; letter-spacing: 0.02em; }
.m-title small { display: block; color: var(--dim); font-size: 0.92rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.close { width: 2.4rem; height: 2.4rem; flex: none; display: grid; place-items: center; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); border-radius: 0.6rem; font-size: 1.1rem; transition: 0.15s; }
.close:hover { background: rgba(255, 75, 75, 0.2); border-color: rgba(255, 75, 75, 0.55); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem; padding: 0.55rem 1rem; font: inherit; font-weight: 700; font-size: 1rem; letter-spacing: 0.03em; color: var(--txt);
  background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line-2); border-radius: 0.55rem; transition: background 0.15s, border-color 0.15s, transform 0.1s, filter 0.15s; white-space: nowrap; }
.btn:hover:not(:disabled) { background: rgba(255, 255, 255, 0.11); border-color: rgba(255, 255, 255, 0.28); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { color: #1a1206; background: linear-gradient(180deg, #ffb347, #ff7a1a); border-color: #ffc27a; box-shadow: 0 0.35rem 1.2rem rgba(255, 122, 26, 0.3); }
.btn.primary:hover:not(:disabled) { background: linear-gradient(180deg, #ffc060, #ff8a2a); filter: brightness(1.05); }
.btn.good { color: #062012; background: linear-gradient(180deg, #5ef0a0, #28b868); border-color: #7af5b5; }
.btn.big { width: 100%; padding: 0.8rem 1.2rem; font-size: 1.3rem; letter-spacing: 0.08em; }
.btn.small { padding: 0.28rem 0.65rem; font-size: 0.88rem; }
.btn.danger { color: #ffa3a3; border-color: rgba(255, 75, 75, 0.35); }
.btn.danger:hover:not(:disabled) { background: rgba(255, 75, 75, 0.15); border-color: rgba(255, 75, 75, 0.6); }
.btn.ghost { background: transparent; }
.btn:disabled { opacity: 0.42; cursor: default; }
.btn .ic { font-size: 1.1em; }
.tabs { display: flex; gap: 0.2rem; padding: 0 1rem; border-bottom: 1px solid var(--line); overflow-x: auto; flex: none; scrollbar-width: none; }
.tabs button { display: flex; align-items: center; gap: 0.45rem; background: none; border: 0; border-bottom: 2px solid transparent; color: var(--dim); font-size: 1.05rem; font-weight: 700; padding: 0.7rem 0.9rem 0.6rem; white-space: nowrap; transition: color 0.15s; }
.tabs button:hover { color: var(--txt); }
.tabs button.active { color: #fff; border-color: var(--acc); }
.tabs button.active .ic { color: var(--acc); }
.scroll { overflow: auto; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, 0.2) transparent; }
::-webkit-scrollbar { width: 0.55rem; height: 0.55rem; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, 0.18); border-radius: 1rem; }
::-webkit-scrollbar-track { background: transparent; }
h4 { display: flex; align-items: center; gap: 0.45rem; margin: 1rem 0 0.5rem; font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--dim); }
h4:first-child { margin-top: 0; }
h4 .ic { color: var(--acc); font-size: 1.05rem; }

/* pomoc */
.help-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 1.6rem; padding: 1.1rem 1.3rem 1.3rem; overflow: auto; }
.keyrow { display: grid; grid-template-columns: 7.5rem 1fr; gap: 0.6rem; align-items: center; padding: 0.22rem 0; font-size: 1rem; }
.keyrow > span { white-space: nowrap; }
.earn { display: flex; gap: 0.75rem; align-items: flex-start; padding: 0.55rem 0.7rem; margin-bottom: 0.45rem; background: rgba(255, 255, 255, 0.035); border: 1px solid var(--line); border-radius: 0.6rem; font-size: 1rem; }
.earn > .ic { font-size: 1.6rem; color: var(--acc); margin-top: 0.1rem; }
.tips { margin: 0; padding-left: 1.1rem; color: #cdd5de; }
.tips li { margin: 0.3rem 0; }

/* sklep / garaż */
#shop-money { display: flex; gap: 0.8rem; align-items: center; font-weight: 700; }
#shop-money .m { font-size: 1.5rem; color: var(--good); }
#shop-money .l { padding: 0.15rem 0.6rem; border-radius: 1rem; background: rgba(255, 207, 58, 0.12); color: var(--gold); font-size: 0.95rem; }
#shop-content { flex: 1; min-height: 0; padding: 1rem 1.2rem 1.2rem; overflow: auto; scrollbar-width: thin; }
.garage { display: grid; grid-template-columns: minmax(0, 1fr) 25rem; gap: 1.1rem; align-items: start; }
.vcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.8rem; }
.vcard { position: relative; background: var(--panel-2); border: 1px solid var(--line); border-radius: 0.8rem; overflow: hidden; cursor: pointer; transition: transform 0.15s, border-color 0.15s, box-shadow 0.15s; text-align: left; padding: 0; font-size: 1rem; }
.vcard:hover { transform: translateY(-2px); border-color: var(--line-2); box-shadow: 0 0.6rem 1.4rem rgba(0, 0, 0, 0.35); }
.vcard.sel { border-color: var(--acc); box-shadow: 0 0 0 1px var(--acc), 0 0.8rem 2rem rgba(255, 138, 31, 0.18); }
.vcard img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; background: #1f2831; }
.vcard.locked img { filter: grayscale(0.85) brightness(0.55); }
.vc-body { padding: 0.55rem 0.75rem 0.7rem; }
.vc-body h3 { margin: 0; font-size: 1.15rem; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vc-cls { color: var(--dim); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.vc-mini { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0.35rem; margin-top: 0.45rem; }
.vc-mini div { font-size: 0.7rem; color: var(--dim); letter-spacing: 0.05em; }
.vc-mini i { display: block; height: 0.25rem; margin-top: 0.15rem; background: rgba(255, 255, 255, 0.08); border-radius: 1rem; overflow: hidden; }
.vc-mini i::after { content: ''; display: block; height: 100%; width: var(--w); background: linear-gradient(90deg, var(--acc), var(--gold)); }
.badge { position: absolute; top: 0.5rem; right: 0.5rem; display: inline-flex; gap: 0.3rem; align-items: center; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.04em; padding: 0.15rem 0.55rem; border-radius: 1rem; background: rgba(10, 14, 19, 0.85); border: 1px solid var(--line-2); }
.badge.active { color: #1a1206; background: var(--acc); border-color: var(--acc); }
.badge.owned { color: var(--good); border-color: rgba(61, 220, 132, 0.45); }
.badge.lock { color: #ffb4b4; border-color: rgba(255, 75, 75, 0.4); }
.badge.price { color: var(--gold); }
.badge.poor { color: var(--dim); }
.vdetail { background: var(--panel); border: 1px solid var(--line); border-radius: 0.9rem; padding: 0.8rem 0.9rem 0.9rem; position: sticky; top: 0; max-height: calc(min(52rem, 100vh - 2rem) - 10.5rem); overflow: auto; scrollbar-width: thin; }
.vdetail img { display: block; width: 100%; aspect-ratio: 2/1; object-fit: cover; border-radius: 0.6rem; background: #1f2831; }
.vdetail h3 { margin: 0; font-size: 1.5rem; line-height: 1.1; }
.vdetail p { margin: 0.25rem 0 0.5rem; color: var(--dim); font-size: 0.95rem; line-height: 1.25; }
.cmp-note { font-size: 0.8rem; color: var(--dim); margin-bottom: 0.3rem; display: flex; gap: 0.8rem; }
.cmp-note i { display: inline-block; width: 0.8rem; height: 0.35rem; border-radius: 1rem; margin-right: 0.3rem; vertical-align: 0.1rem; }
.statrow { display: grid; grid-template-columns: 8.3rem 1fr 5.3rem; align-items: center; gap: 0.6rem; font-size: 0.93rem; margin: 0.32rem 0; }
.statrow > span { color: var(--dim); white-space: nowrap; }
.statrow em { font-style: normal; text-align: right; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.statrow em small { font-size: 0.78rem; margin-left: 0.25rem; }
.sbar { position: relative; height: 0.5rem; background: rgba(255, 255, 255, 0.08); border-radius: 1rem; overflow: hidden; }
.sbar .v { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 1rem; background: linear-gradient(90deg, var(--acc), var(--gold)); }
.sbar .c { position: absolute; top: 0; bottom: 0; width: 2px; background: #fff; box-shadow: 0 0 3px #000; }
.up { color: var(--good); } .dn { color: var(--bad); }
.feats { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0.6rem 0 0.8rem; }
.feat { display: inline-flex; align-items: center; gap: 0.35rem; font-size: 0.85rem; font-weight: 600; padding: 0.2rem 0.55rem; border-radius: 0.4rem; background: rgba(255, 255, 255, 0.06); border: 1px solid var(--line); }
.feat .ic { color: var(--acc); }
.feat.no { color: var(--faint); }
.feat.no .ic { color: var(--faint); }
.lockmsg { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.7rem; margin-bottom: 0.5rem; border-radius: 0.5rem; background: rgba(255, 75, 75, 0.1); border: 1px solid rgba(255, 75, 75, 0.3); color: #ffb4b4; font-size: 0.95rem; }
.lockmsg.money { background: rgba(255, 207, 58, 0.08); border-color: rgba(255, 207, 58, 0.3); color: var(--gold); }
.lockmsg .bar { height: 0.35rem; margin-left: auto; flex: 0 0 6rem; }
.lockmsg .bar > div { background: var(--gold); }

.upg-top { display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: stretch; margin-bottom: 1rem; }
.vchips { display: flex; flex-wrap: wrap; gap: 0.4rem; align-items: center; flex: 1; }
.vchip { display: flex; align-items: center; gap: 0.5rem; padding: 0.25rem 0.7rem 0.25rem 0.25rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 2rem; font-weight: 700; font-size: 0.95rem; transition: 0.15s; }
.vchip img { width: 3.2rem; height: 1.8rem; object-fit: cover; border-radius: 1rem; }
.vchip:hover { border-color: var(--line-2); }
.vchip.on { border-color: var(--acc); background: rgba(255, 138, 31, 0.12); }
.repair { display: flex; align-items: center; gap: 0.8rem; padding: 0.6rem 0.8rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 0.7rem; min-width: 22rem; }
.repair > .ic { font-size: 1.6rem; color: var(--acc); }
.repair .rp { flex: 1; }
.repair .rp small { color: var(--dim); display: block; }
.repair .bar { margin-top: 0.3rem; height: 0.45rem; }
.ubranch { margin-bottom: 1rem; }
.ubranch-h { display: flex; align-items: center; gap: 0.5rem; margin: 0 0 0.5rem; font-size: 0.82rem; letter-spacing: 0.16em; color: var(--dim); font-weight: 700; }
.ubranch-h::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.unodes { display: grid; grid-template-columns: repeat(auto-fill, minmax(27rem, 1fr)); gap: 0.7rem; }
.unode { display: grid; grid-template-columns: 2.8rem 1fr auto; gap: 0.35rem 0.8rem; align-items: center; padding: 0.75rem 0.85rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 0.8rem; }
.unode.maxed { border-color: rgba(61, 220, 132, 0.35); }
.u-ic { width: 2.8rem; height: 2.8rem; padding: 0.6rem; border-radius: 0.65rem; background: rgba(255, 138, 31, 0.12); color: var(--acc); grid-row: span 2; }
.unode.maxed .u-ic { background: rgba(61, 220, 132, 0.12); color: var(--good); }
.u-name { font-weight: 700; font-size: 1.12rem; line-height: 1.15; }
.u-br { display: block; font-size: 0.7rem; letter-spacing: 0.16em; color: var(--dim); text-transform: uppercase; }
.u-name small { color: var(--dim); font-weight: 600; font-size: 0.85rem; margin-left: 0.4rem; }
.u-eff { font-size: 0.92rem; color: var(--dim); }
.u-eff b { color: var(--txt); }
.u-eff .to { color: var(--good); }
.unode .btn { grid-row: span 2; min-width: 7.5rem; }
.u-steps { grid-column: 1 / -1; display: flex; align-items: center; margin-top: 0.35rem; }
.u-step { width: 1.55rem; height: 1.55rem; flex: none; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.16); display: grid; place-items: center; font-size: 0.78rem; font-weight: 700; color: var(--faint); background: #10161d; }
.u-step.done { background: var(--acc); border-color: var(--acc); color: #1a1206; }
.u-step.next { border-color: var(--gold); color: var(--gold); box-shadow: 0 0 0 3px rgba(255, 207, 58, 0.15); }
.u-link { flex: 1; height: 2px; background: rgba(255, 255, 255, 0.1); }
.u-link.done { background: var(--acc); }
.icards { display: grid; grid-template-columns: repeat(auto-fill, minmax(24rem, 1fr)); gap: 0.8rem; }
.icard { display: grid; grid-template-columns: 4rem 1fr; gap: 0.3rem 1rem; padding: 0.9rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 0.8rem; }
.icard .i-ic { width: 4rem; height: 4rem; padding: 0.8rem; border-radius: 0.8rem; background: rgba(255, 138, 31, 0.12); color: var(--acc); grid-row: span 3; }
.icard h3 { margin: 0; font-size: 1.2rem; display: flex; align-items: center; gap: 0.5rem; }
.icard h3 .cnt { margin-left: auto; font-size: 1rem; padding: 0.05rem 0.55rem; border-radius: 1rem; background: rgba(255, 207, 58, 0.12); color: var(--gold); }
.icard p { margin: 0; color: var(--dim); font-size: 0.95rem; }
.icard .btns { display: flex; gap: 0.4rem; margin-top: 0.3rem; }
.icard .btns .btn { flex: 1; }
.tip { color: var(--dim); font-size: 1rem; }
.tipbox { display: flex; gap: 0.6rem; align-items: center; margin-top: 1rem; padding: 0.7rem 0.9rem; border-radius: 0.6rem; background: rgba(79, 216, 255, 0.06); border: 1px solid rgba(79, 216, 255, 0.2); color: #cfeaf3; }
.tipbox > .ic { color: var(--cyan); font-size: 1.3rem; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(15rem, 1fr)); gap: 0.8rem; }
.gallery figure { position: relative; margin: 0; cursor: pointer; background: var(--panel-2); border: 1px solid var(--line); border-radius: 0.7rem; overflow: hidden; transition: transform 0.15s, border-color 0.15s; }
.gallery figure:hover { transform: translateY(-2px); border-color: var(--line-2); }
.gallery img { display: block; width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.gallery figcaption { display: flex; justify-content: space-between; align-items: center; padding: 0.35rem 0.6rem; font-size: 0.9rem; }
.gallery figcaption .m { color: var(--good); font-weight: 700; }
.gallery .stars { position: absolute; top: 0.4rem; left: 0.4rem; padding: 0.05rem 0.4rem; border-radius: 0.35rem; background: rgba(0, 0, 0, 0.6); }
.stars { color: var(--gold); letter-spacing: 0.08em; white-space: nowrap; }
.stars .off { color: rgba(255, 255, 255, 0.22); }
.gal-sum { display: flex; gap: 1.2rem; flex-wrap: wrap; margin-bottom: 0.9rem; color: var(--dim); }
.gal-sum b { color: var(--txt); }
.empty { display: flex; flex-direction: column; align-items: center; gap: 0.6rem; padding: 3rem 1rem; color: var(--dim); text-align: center; }
.empty > .ic { font-size: 3rem; color: var(--faint); }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(13rem, 1fr)); gap: 0.7rem; }
.tile { display: flex; gap: 0.8rem; align-items: center; padding: 0.8rem 0.9rem; background: var(--panel-2); border: 1px solid var(--line); border-radius: 0.8rem; }
.tile > .ic { font-size: 1.8rem; color: var(--acc); }
.tile b { display: block; font-size: 1.45rem; line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile small { color: var(--dim); font-size: 0.85rem; }
.rlog { display: flex; flex-direction: column; gap: 0.3rem; }
.rlog div { display: grid; grid-template-columns: 4rem 1fr 6rem 5rem; gap: 0.7rem; padding: 0.35rem 0.6rem; background: rgba(255, 255, 255, 0.03); border-radius: 0.4rem; font-size: 0.95rem; }
.rlog .t { color: var(--faint); font-variant-numeric: tabular-nums; }
.rlog .m { color: var(--good); text-align: right; font-weight: 700; }
.rlog .x { color: var(--gold); text-align: right; }

/* przeglądarka zdjęć */
#viewer { z-index: 25; }
.viewer-box { position: relative; display: flex; align-items: center; gap: 1rem; max-width: calc(100vw - 2rem); }
.viewer-box figure { margin: 0; background: #f4f1ea; color: #1b1f24; padding: 0.7rem 0.7rem 0.9rem; border-radius: 0.4rem; box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.7); animation: popin 0.2s; }
.viewer-box img { display: block; width: min(64rem, calc(100vw - 10rem)); max-height: calc(100vh - 12rem); object-fit: contain; background: #111; }
#viewer-cap { display: flex; flex-wrap: wrap; gap: 0.3rem 1.2rem; align-items: center; margin-top: 0.6rem; font-size: 1.05rem; font-weight: 600; }
#viewer-cap .stars { color: #f0a500; font-size: 1.3rem; }
#viewer-cap .stars .off { color: #c9c3b6; }
#viewer-cap .m { color: #13914f; font-weight: 700; }
#viewer-cap .d { color: #6b6f75; margin-left: auto; }
.vw-nav { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 50%; background: var(--glass-2); border: 1px solid var(--line-2); font-size: 1.4rem; flex: none; }
.vw-nav:hover { background: rgba(255, 138, 31, 0.25); border-color: var(--acc); }
.vw-close { position: absolute; top: -1rem; right: 3rem; background: var(--glass-2); }

/* wrak */
.wreck { padding: 1.6rem 1.6rem 1.4rem; text-align: center; border-color: rgba(255, 75, 75, 0.45); box-shadow: 0 0 3rem rgba(255, 40, 40, 0.18), 0 2rem 5rem rgba(0, 0, 0, 0.6); }
.wreck-icon { width: 4.2rem; height: 4.2rem; margin: 0 auto 0.6rem; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 75, 75, 0.14); color: var(--bad); font-size: 2.2rem; animation: warnpulse 1.4s infinite; }
.wreck h2 { margin: 0; font-size: 1.9rem; color: #ff7070; }
.wreck p { color: #cdd5de; font-size: 1.1rem; margin: 0.6rem 0 1.1rem; }
.wreck p b { color: var(--gold); }

/* pauza i ustawienia */
.pause-grid { display: grid; grid-template-columns: 17rem minmax(0, 1fr); min-height: 0; overflow: auto; }
.pause-nav { display: flex; flex-direction: column; gap: 0.5rem; padding: 1.1rem; border-right: 1px solid var(--line); }
.pause-nav .btn { justify-content: flex-start; }
.pause-nav .btn.big { justify-content: center; }
.pause-nav #btn-reset { margin-top: auto; font-size: 0.85rem; }
.session { margin-top: 0.5rem; padding: 0.7rem; border-radius: 0.6rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-size: 0.92rem; }
.session .sh { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--dim); font-weight: 700; margin-bottom: 0.3rem; }
.session div { display: flex; justify-content: space-between; }
.session b { font-variant-numeric: tabular-nums; }
.net-info { font-size: 0.9rem; color: var(--dim); line-height: 1.35; }
.net-info b { color: var(--txt); }
.settings { padding: 1.1rem 1.3rem 1.3rem; }
.set-row { display: grid; grid-template-columns: 13rem minmax(0, 1fr) 3.6rem; align-items: center; gap: 0.9rem; padding: 0.5rem 0; border-bottom: 1px solid rgba(255, 255, 255, 0.05); font-size: 1.02rem; }
.set-row em { font-style: normal; text-align: right; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.set-row > .seg, .set-row > .switch { grid-column: 2 / 4; justify-self: start; }
.set-note { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem; margin: 0.4rem 0 0.2rem; padding: 0.5rem 0.7rem; border-radius: 0.5rem; background: rgba(255, 176, 32, 0.1); border: 1px solid rgba(255, 176, 32, 0.35); color: #ffd690; font-size: 0.95rem; }
.seg { display: inline-flex; padding: 0.2rem; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 0.6rem; gap: 0.15rem; }
.seg button { padding: 0.35rem 0.8rem; background: transparent; border: 0; border-radius: 0.45rem; color: var(--dim); font-weight: 700; font-size: 0.95rem; }
.seg button:hover { color: var(--txt); }
.seg button.on { background: var(--acc); color: #1a1206; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 1.4rem; background: transparent; cursor: pointer; }
input[type=range]::-webkit-slider-runnable-track { height: 0.35rem; border-radius: 1rem; background: linear-gradient(90deg, var(--acc) var(--p, 50%), rgba(255, 255, 255, 0.12) var(--p, 50%)); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 1.1rem; height: 1.1rem; margin-top: -0.375rem; border-radius: 50%; background: #fff; border: 3px solid var(--acc); box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.2); }
input[type=range]::-moz-range-track { height: 0.35rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.12); }
input[type=range]::-moz-range-progress { height: 0.35rem; border-radius: 1rem; background: var(--acc); }
input[type=range]::-moz-range-thumb { width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #fff; border: 3px solid var(--acc); }
.switch { position: relative; display: inline-block; width: 2.8rem; height: 1.5rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch i { position: absolute; inset: 0; border-radius: 1rem; background: rgba(255, 255, 255, 0.12); border: 1px solid var(--line-2); transition: 0.2s; }
.switch i::after { content: ''; position: absolute; top: 0.15rem; left: 0.15rem; width: 1.05rem; height: 1.05rem; border-radius: 50%; background: #fff; transition: 0.2s; }
.switch input:checked + i { background: var(--acc); border-color: var(--acc); }
.switch input:checked + i::after { transform: translateX(1.3rem); }

/* mapa */
.map-body { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 19rem; gap: 1rem; padding: 1rem 1.2rem 1.1rem; }
.map-view { position: relative; min-height: 0; min-width: 0; container-type: size; }
#bigmap-canvas { position: absolute; left: 50%; top: 50%; width: min(100cqw, 100cqh); height: min(100cqw, 100cqh); transform: translate(-50%, -50%); border-radius: 0.7rem; border: 1px solid var(--line-2); cursor: grab; background: #182016; }
#bigmap-canvas.drag { cursor: grabbing; }
.map-tools { position: absolute; top: 0.6rem; right: calc(50% - min(50cqw, 50cqh) + 0.6rem); display: flex; flex-direction: column; gap: 0.3rem; }
.map-tools button { width: 2.3rem; height: 2.3rem; border-radius: 0.5rem; font-size: 1.1rem; }
.map-tools button.on { border-color: var(--acc); color: var(--acc); }
.map-readout { position: absolute; left: calc(50% - min(50cqw, 50cqh) + 0.6rem); top: 0.6rem; padding: 0.4rem 0.6rem; background: var(--glass-2); border: 1px solid var(--line); border-radius: 0.5rem; font-size: 0.88rem; line-height: 1.35; pointer-events: none; font-variant-numeric: tabular-nums; }
.map-readout b { color: var(--gold); }
.map-scale { position: absolute; left: calc(50% - min(50cqw, 50cqh) + 0.6rem); bottom: 0.6rem; padding: 0.2rem 0.5rem; background: var(--glass-2); border-radius: 0.4rem; font-size: 0.85rem; pointer-events: none; }
.map-scale i { display: block; height: 0.3rem; border: 2px solid #fff; border-top: 0; margin-top: 0.15rem; }
.map-side { overflow: auto; min-height: 0; padding-right: 0.3rem; }
.lyr { display: flex; align-items: center; gap: 0.6rem; padding: 0.35rem 0.5rem; margin-bottom: 0.25rem; border-radius: 0.45rem; cursor: pointer; font-size: 1rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); transition: 0.15s; }
.lyr:hover { border-color: var(--line-2); }
.lyr .ic { color: var(--dim); }
.lyr.on .ic { color: var(--acc); }
.lyr .sw { margin-left: auto; width: 2rem; height: 1.1rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.12); position: relative; transition: 0.2s; }
.lyr .sw::after { content: ''; position: absolute; top: 0.15rem; left: 0.15rem; width: 0.8rem; height: 0.8rem; border-radius: 50%; background: #fff; transition: 0.2s; }
.lyr.on .sw { background: var(--acc); }
.lyr.on .sw::after { transform: translateX(0.9rem); }
.dbz-bar { display: flex; height: 0.7rem; border-radius: 0.3rem; overflow: hidden; }
.dbz-bar i { flex: 1; }
.dbz-lab { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--dim); margin-top: 0.15rem; }
.legend { display: grid; grid-template-columns: 1fr 1fr; gap: 0.3rem 0.6rem; margin-top: 0.7rem; font-size: 0.92rem; color: #cdd5de; }
.legend span { display: flex; align-items: center; gap: 0.45rem; }
.legend i { display: inline-block; width: 0.9rem; height: 0.9rem; flex: none; border-radius: 0.2rem; }
.legend .lg-tor { width: 0; height: 0; border-left: 0.45rem solid transparent; border-right: 0.45rem solid transparent; border-top: 0.8rem solid #ff2a2a; border-radius: 0; }
.legend .lg-warn { border: 2px solid #ff2a2a; background: rgba(255, 42, 42, 0.12); }
.legend .lg-base { background: var(--gold); }
.legend .lg-town { background: rgba(200, 200, 200, 0.45); }
.legend .lg-city { background: rgba(225, 220, 210, 0.6); border: 1px solid rgba(240, 220, 170, 0.8); }
.legend .lg-dow { border: 2px solid var(--cyan); border-radius: 50%; }
.legend .lg-probe { background: #ff9a1a; border-radius: 50%; width: 0.6rem; height: 0.6rem; }
.legend .lg-dor { background: #ff4fd8; border-radius: 50%; width: 0.6rem; height: 0.6rem; }
.legend .lg-me { width: 0; height: 0; border-left: 0.4rem solid transparent; border-right: 0.4rem solid transparent; border-bottom: 0.9rem solid var(--acc); border-radius: 0; }
.map-tors { display: flex; flex-direction: column; gap: 0.35rem; }
.map-tors .mt { display: grid; grid-template-columns: 3rem 1fr auto; gap: 0.5rem; align-items: center; padding: 0.4rem 0.55rem; border-radius: 0.45rem; background: rgba(255, 75, 75, 0.07); border: 1px solid rgba(255, 75, 75, 0.25); cursor: pointer; font-size: 0.95rem; }
.map-tors .mt:hover { border-color: rgba(255, 75, 75, 0.6); }
.efb { display: inline-block; text-align: center; font-weight: 700; padding: 0.05rem 0.3rem; border-radius: 0.3rem; color: #111; background: #999; font-size: 0.85rem; }
.efb.e0 { background: var(--ef0); } .efb.e1 { background: var(--ef1); } .efb.e2 { background: var(--ef2); } .efb.e3 { background: var(--ef3); } .efb.e4 { background: var(--ef4); color: #fff; } .efb.e5 { background: var(--ef5); color: #fff; }
.efb.eq { background: #555; color: #ddd; }

/* ---------- konsola radaru DOW ---------- */
#console { position: fixed; top: 1rem; right: 1rem; bottom: 1rem; width: min(84rem, calc(100vw - 20rem)); z-index: 10; display: flex; }
.rc { flex: 1; min-width: 0; display: flex; flex-direction: column; min-height: 0; overflow: hidden; color: #a6ffcb; border-radius: 0.9rem;
  background: linear-gradient(180deg, rgba(6, 15, 12, 0.95), rgba(3, 9, 7, 0.95)); border: 1px solid rgba(110, 255, 170, 0.24);
  box-shadow: 0 0 3rem rgba(40, 255, 140, 0.08), 0 1.5rem 4rem rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(160, 255, 200, 0.08); animation: popin 0.25s; }
.rc kbd { color: #d8ffe8; background: #0f2a1d; border-color: #2b6a48; }
.rc-head { display: flex; align-items: center; gap: 0.9rem; padding: 0.55rem 0.8rem; border-bottom: 1px solid rgba(110, 255, 170, 0.15); background: rgba(110, 255, 170, 0.04); flex: none; }
.rc-title { display: flex; align-items: center; gap: 0.55rem; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; }
.rc-title .ic { font-size: 1.4rem; color: #6dffa8; }
.rc-title b { color: #fff; font-size: 1.3rem; letter-spacing: 0.08em; }
.rc-title span { color: rgba(166, 255, 203, 0.65); font-size: 0.9rem; letter-spacing: 0.12em; overflow: hidden; text-overflow: ellipsis; }
#con-status { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.stp { display: inline-flex; align-items: center; gap: 0.3rem; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; padding: 0.12rem 0.55rem; border-radius: 1rem; border: 1px solid currentColor; white-space: nowrap; }
.stp::before { content: ''; width: 0.45rem; height: 0.45rem; border-radius: 50%; background: currentColor; }
.stp.ok { color: #5dff9d; } .stp.bad { color: #ff6b6b; } .stp.warn { color: var(--warn); } .stp.idle { color: rgba(166, 255, 203, 0.5); }
.stp.live::before { animation: pulse 0.8s infinite; }
.rc-clock { font-family: Consolas, 'Courier New', monospace; font-size: 0.95rem; color: #6dffa8; letter-spacing: 0.05em; }
#con-exit { display: flex; align-items: center; gap: 0.4rem; padding: 0.35rem 0.7rem; background: rgba(255, 75, 75, 0.1); border: 1px solid rgba(255, 75, 75, 0.4); border-radius: 0.45rem; color: #ffb4b4; font-weight: 700; font-size: 0.92rem; }
#con-exit:hover { background: rgba(255, 75, 75, 0.25); }
.rc-tabs { display: flex; align-items: flex-end; gap: 0.25rem; padding: 0.45rem 0.8rem 0; border-bottom: 1px solid rgba(110, 255, 170, 0.15); flex: none; }
.rc-tabs button { background: transparent; border: 1px solid transparent; border-bottom: 0; color: rgba(166, 255, 203, 0.6); padding: 0.35rem 0.85rem 0.3rem; border-radius: 0.5rem 0.5rem 0 0; font-weight: 700; font-size: 1rem; margin-bottom: -1px; }
.rc-tabs button small { font-weight: 600; font-size: 0.78rem; opacity: 0.75; margin-left: 0.2rem; }
.rc-tabs button:hover { color: #d8ffe8; }
.rc-tabs button.on { background: rgba(110, 255, 170, 0.09); border-color: rgba(110, 255, 170, 0.28); color: #eafff2; }
.rc-kbd { margin-left: auto; font-size: 0.8rem; color: rgba(166, 255, 203, 0.5); padding-bottom: 0.35rem; white-space: nowrap; }
.rc-main { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 17rem; gap: 0.8rem; padding: 0.7rem 0.8rem; }
.scopes { position: relative; min-height: 0; min-width: 0; display: flex; gap: 0.8rem; align-items: center; justify-content: center; container-type: size; }
.scope { position: relative; display: flex; gap: 0.35rem; align-items: stretch; }
.scope canvas { display: block; width: min(calc(100cqw - 3.6rem), 100cqh); height: min(calc(100cqw - 3.6rem), 100cqh); cursor: crosshair; border-radius: 50%; }
.scopes.dual .scope canvas { width: min(calc(50cqw - 4rem), 100cqh); height: min(calc(50cqw - 4rem), 100cqh); }
.scopes.ref .scope[data-prod=vel], .scopes.vel .scope[data-prod=ref] { display: none; }
.scale-v { position: relative; width: 2.8rem; display: flex; flex-direction: column; }
.scale-v .sv-bar { position: relative; flex: 1; width: 0.6rem; border-radius: 0.2rem; border: 1px solid rgba(110, 255, 170, 0.25); }
.scale-v .sv-t { position: absolute; left: 0.85rem; transform: translateY(-50%); font-size: 0.7rem; font-family: Consolas, monospace; color: rgba(166, 255, 203, 0.8); white-space: nowrap; }
.scale-v .sv-u { font-size: 0.68rem; letter-spacing: 0.06em; color: rgba(166, 255, 203, 0.55); margin-bottom: 0.3rem; white-space: nowrap; }
.rc-side { display: flex; flex-direction: column; gap: 0.6rem; min-height: 0; }
.rc-box { padding: 0.5rem 0.65rem; border-radius: 0.55rem; background: rgba(110, 255, 170, 0.035); border: 1px solid rgba(110, 255, 170, 0.14); }
.rc-box.grow { flex: 1; min-height: 5rem; display: flex; flex-direction: column; overflow: hidden; }
.rc-box h5 { margin: 0 0 0.3rem; font-size: 0.72rem; letter-spacing: 0.18em; color: rgba(166, 255, 203, 0.55); text-transform: uppercase; }
.readout { font-family: Consolas, 'Courier New', monospace; font-size: 0.86rem; line-height: 1.5; }
.readout div { display: flex; justify-content: space-between; gap: 0.5rem; }
.readout span { color: rgba(166, 255, 203, 0.55); }
.readout b { color: #eafff2; font-weight: 700; }
.readout .red { color: #ff6b6b; } .readout .grn { color: #5dff9d; } .readout .yel { color: var(--gold); }
#con-log { flex: 1; overflow: auto; font-family: Consolas, monospace; font-size: 0.8rem; line-height: 1.45; display: flex; flex-direction: column-reverse; scrollbar-width: thin; }
#con-log div { animation: fadein 0.3s; }
#con-log i { font-style: normal; color: rgba(166, 255, 203, 0.4); margin-right: 0.4rem; }
#con-log .ok { color: #5dff9d; } #con-log .bad { color: #ff6b6b; } #con-log .gold { color: var(--gold); }
.rc-bar { display: flex; align-items: center; gap: 0.8rem; padding: 0.55rem 0.8rem; border-top: 1px solid rgba(110, 255, 170, 0.15); flex: none; flex-wrap: wrap; }
#con-scan { display: flex; align-items: center; gap: 0.5rem; min-width: 11rem; justify-content: center; padding: 0.55rem 1rem; background: #0c2618; border: 1px solid rgba(110, 255, 170, 0.45); border-radius: 0.5rem; color: #a6ffcb; font-weight: 700; font-size: 1.05rem; letter-spacing: 0.06em; }
#con-scan:hover { background: #10331f; }
#con-scan.on { background: #6dffa8; color: #03140a; border-color: #b9ffd6; box-shadow: 0 0 1.2rem rgba(109, 255, 168, 0.4); }
.rc-range { display: flex; align-items: center; gap: 0.2rem; padding: 0.18rem; border-radius: 0.5rem; border: 1px solid rgba(110, 255, 170, 0.2); background: rgba(0, 0, 0, 0.3); }
.rc-range span { font-size: 0.75rem; letter-spacing: 0.1em; color: rgba(166, 255, 203, 0.55); padding: 0 0.4rem; }
.rc-range button { background: transparent; border: 0; border-radius: 0.35rem; padding: 0.3rem 0.6rem; color: rgba(166, 255, 203, 0.7); font-weight: 700; font-size: 0.92rem; font-family: Consolas, monospace; }
.rc-range button.on { background: rgba(110, 255, 170, 0.18); color: #eafff2; }
#con-data { margin-left: auto; font-size: 0.98rem; }
#con-data b { color: #eafff2; }
#con-data .gold { color: var(--gold); }
.console-tip { padding: 0 0.8rem 0.6rem; font-size: 0.92rem; color: rgba(200, 240, 215, 0.75); flex: none; }
.c-red { color: #ff5050; } .c-green { color: #3dff6a; }

/* ---------- ekran startowy ---------- */
.screen { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; }
#start { background: radial-gradient(ellipse at 68% 115%, #4b3d27 0%, #1d1f21 45%, #090b0e 100%); overflow: hidden; }
.start-bg { position: absolute; inset: 0; overflow: hidden; }
.start-bg .clouds { position: absolute; left: -20%; right: -20%; top: -25%; height: 62%;
  background: radial-gradient(ellipse at 30% 90%, rgba(60, 68, 76, 0.9) 0%, transparent 45%), radial-gradient(ellipse at 65% 95%, rgba(48, 55, 62, 0.95) 0%, transparent 50%), radial-gradient(ellipse at 85% 70%, rgba(40, 46, 52, 0.9) 0%, transparent 45%), radial-gradient(ellipse at 50% 60%, #15191d 0%, transparent 75%);
  filter: blur(6px); animation: drift 30s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translateX(4%); } }
.start-bg .funnel { position: absolute; left: 72%; top: 24%; width: 16rem; height: 64%; transform: translateX(-50%);
  background: linear-gradient(90deg, transparent, rgba(120, 125, 130, 0.5) 28%, rgba(165, 170, 175, 0.72) 50%, rgba(120, 125, 130, 0.5) 72%, transparent);
  clip-path: polygon(0 0, 100% 0, 62% 58%, 57% 100%, 43% 100%, 38% 58%); filter: blur(3px); animation: sway 6s ease-in-out infinite alternate; opacity: 0.75; }
@keyframes sway { from { transform: translateX(-50%) skewX(-6deg); } to { transform: translateX(-46%) skewX(6deg); } }
.start-bg .rainfx { position: absolute; inset: 0; opacity: 0.18; background: repeating-linear-gradient(105deg, transparent 0 14px, rgba(200, 215, 230, 0.6) 14px 15px); animation: rain 0.5s linear infinite; }
@keyframes rain { to { background-position: -40px 120px; } }
.start-bg .ground { position: absolute; left: 0; right: 0; bottom: 0; height: 14%; background: linear-gradient(180deg, #2a2618, #12110c); clip-path: polygon(0 40%, 12% 30%, 26% 38%, 40% 28%, 58% 36%, 72% 26%, 88% 34%, 100% 28%, 100% 100%, 0 100%); }
.start-bg .bolt { position: absolute; inset: 0; background: radial-gradient(ellipse at 25% 10%, rgba(200, 220, 255, 0.35), transparent 60%); opacity: 0; animation: bolt 9s infinite; }
@keyframes bolt { 0%, 90%, 100% { opacity: 0; } 91% { opacity: 1; } 92% { opacity: 0.2; } 93% { opacity: 0.9; } 95% { opacity: 0; } }
.start-wrap { position: relative; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 27rem); gap: 3rem; align-items: center; width: min(78rem, calc(100vw - 3rem)); max-height: 100vh; overflow: auto; padding: 1rem 0; }
.logo { font-size: 5.4rem; font-weight: 700; line-height: 0.88; letter-spacing: 0.06em; color: #fff; text-shadow: 0 0.3rem 1.6rem rgba(0, 0, 0, 0.6); }
.logo span { display: block; color: var(--acc); font-size: 1.22em; text-shadow: 0 0 2rem rgba(255, 138, 31, 0.35), 0 0.3rem 1.6rem rgba(0, 0, 0, 0.6); }
.logo.small { font-size: 2.6rem; text-align: center; }
.sub { color: #b9c3cd; margin: 0.8rem 0 1.4rem; font-size: 1.3rem; letter-spacing: 0.04em; }
.features { list-style: none; margin: 0; padding: 0; }
.features li { display: flex; gap: 0.8rem; align-items: center; color: #d5dce3; font-size: 1.15rem; margin: 0.55rem 0; }
.features .ic { font-size: 1.5rem; padding: 0.3rem; box-sizing: content-box; border-radius: 0.5rem; background: rgba(255, 138, 31, 0.14); color: var(--acc); }
.start-box { padding: 1.5rem 1.5rem 1.3rem; background: rgba(12, 16, 22, 0.82); border-radius: 1rem; }
.start-save { display: flex; gap: 0.8rem; align-items: center; margin-bottom: 0.9rem; padding: 0.6rem 0.8rem; border-radius: 0.6rem; background: rgba(61, 220, 132, 0.08); border: 1px solid rgba(61, 220, 132, 0.25); font-size: 0.98rem; }
.start-save .ic { font-size: 1.4rem; color: var(--good); }
.start-save b { color: var(--good); }
.fld, .fld-label { display: block; margin: 0.8rem 0 0.35rem; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--dim); }
.start-box input, .start-box select { display: block; width: 100%; margin-top: 0.35rem; padding: 0.6rem 0.8rem; background: #0c1116; border: 1px solid #2d3743; color: #fff; border-radius: 0.55rem; font-family: inherit; font-size: 1.15rem; font-weight: 600; letter-spacing: normal; text-transform: none; outline: none; transition: border-color 0.15s; }
.start-box input:focus, .start-box select:focus { border-color: var(--acc); box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.15); }
.swatches { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.swatches button { width: 2.3rem; height: 2.3rem; border-radius: 50%; border: 3px solid transparent; box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.5) inset; transition: transform 0.12s; }
.swatches button:hover { transform: scale(1.1); }
.swatches button.sel { border-color: #fff; box-shadow: 0 0 0 2px #000 inset, 0 0 0.8rem rgba(255, 255, 255, 0.3); }
.map-cards { display: grid; gap: 0.45rem; }
.map-attrib { margin: 0.5rem 0 0.8rem; font-size: 0.78rem; line-height: 1.3; color: var(--faint); }
.map-card { display: grid; grid-template-columns: 1fr auto; gap: 0.1rem 0.6rem; width: 100%; padding: 0.55rem 0.8rem; text-align: left; background: #0c1116; border: 1px solid #2d3743; border-radius: 0.6rem; color: var(--txt); font-family: inherit; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.map-card:hover { border-color: var(--line-2); }
.map-card.sel { border-color: var(--acc); background: rgba(255, 138, 31, 0.08); box-shadow: 0 0 0 3px rgba(255, 138, 31, 0.12); }
.map-card .mc-name { font-size: 1.15rem; font-weight: 700; }
.map-card .mc-size { font-size: 0.85rem; color: var(--dim); align-self: center; white-space: nowrap; }
.map-card .mc-sub { grid-column: 1 / -1; font-size: 0.88rem; color: var(--dim); line-height: 1.25; }
.map-card .mc-players { grid-column: 1 / -1; font-size: 0.85rem; color: var(--good); }
.btn.play { margin-top: 1.3rem; font-size: 1.6rem; letter-spacing: 0.2em; }
.start-box .net-info { margin-top: 0.9rem; }
.start-foot { position: absolute; bottom: 0.8rem; left: 0; right: 0; text-align: center; color: var(--faint); font-size: 0.85rem; letter-spacing: 0.2em; text-transform: uppercase; }
#loading { background: radial-gradient(ellipse at 50% 120%, #2e2718, #0b0d10 60%); }
.load-box { width: min(26rem, calc(100vw - 3rem)); text-align: center; }
.load-bar { height: 0.35rem; margin: 1.6rem 0 0.7rem; border-radius: 1rem; background: rgba(255, 255, 255, 0.08); overflow: hidden; }
#loading-bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--acc), var(--gold)); border-radius: 1rem; transition: width 0.4s; box-shadow: 0 0 0.8rem rgba(255, 138, 31, 0.6); }
#loading-text { color: #cdd5de; font-size: 1.15rem; min-height: 1.5em; }
.spinner { width: 2rem; height: 2rem; margin: 1rem auto 0; border: 3px solid rgba(255, 255, 255, 0.12); border-top-color: var(--acc); border-radius: 50%; animation: spin 0.9s linear infinite; }

/* niska jakość grafiki: bez rozmycia tła pod panelami (oszczędza kartę graficzną) */
body.q-low .glass, body.q-low .dial, body.q-low .overlay { backdrop-filter: none; }
body.q-low .glass { background: rgba(12, 16, 22, 0.82); }

/* ---------- małe okna ---------- */
@media (max-width: 1100px) {
  #compass { width: 28rem; }
  .garage { grid-template-columns: minmax(0, 1fr) 21rem; }
}
@media (max-width: 860px) {
  #compass { width: 24rem; }
  .garage { grid-template-columns: 1fr; }
  .vdetail { position: static; order: -1; max-height: none; overflow: visible; }
  .vdetail img { aspect-ratio: 2.4/1; }
  .help-grid { grid-template-columns: 1fr; }
  .pause-grid { grid-template-columns: 1fr; }
  .pause-nav { border-right: 0; border-bottom: 1px solid var(--line); }
  .pause-nav #btn-reset { margin-top: 0.5rem; }
  .map-body { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .map-side { max-height: 12rem; }
  #console { width: calc(100vw - 1rem); top: 0.5rem; right: 0.5rem; bottom: 0.5rem; }
  body.research #hud-left { display: none; }
  .rc-main { grid-template-columns: 1fr; grid-template-rows: minmax(0, 1fr) auto; }
  .rc-side { flex-direction: row; overflow-x: auto; }
  .rc-side .rc-box { min-width: 13rem; }
  .rc-box.grow { max-height: 7rem; }
  .rc-title span { display: none; }
  .start-wrap { grid-template-columns: 1fr; gap: 1rem; width: min(30rem, calc(100vw - 2rem)); }
  .features { display: none; }
  .logo { font-size: 3.6rem; }
  .sub { margin-bottom: 0; }
  .set-row { grid-template-columns: 10rem minmax(0, 1fr) 3.2rem; }
  .unodes { grid-template-columns: 1fr; }
  .repair { min-width: 0; flex: 1 1 100%; }
}
@media (max-width: 700px) {
  #compass { width: calc(100vw - 1.4rem); top: 0.5rem; }
  #hud-left { top: 5.4rem; left: 0.6rem; width: 15.5rem; }
  #hud-tl { padding: 0.5rem 0.65rem; }
  #hud-money { font-size: 1.5rem; }
  #minimap-wrap { top: 5.4rem; right: 0.6rem; width: 9.5rem; }
  .mm-ring { width: 9.5rem; height: 9.5rem; }
  .mm-zoom { top: 6.6rem; right: 0; }
  #banner { top: 5rem; white-space: normal; }
  #notify .toast:nth-last-child(n+4) { display: none; }
  #hud-bottom { bottom: 0.5rem; gap: 0.4rem; }
  .dial { width: 6.8rem; height: 6.8rem; }
  .dial .dv b { font-size: 1.8rem; }
  #dial-wind .dv b { font-size: 1.55rem; }
  .dial .gear { top: 0.9rem; font-size: 0.72rem; }
  .dial .warr { top: 0.75rem; width: 1.1rem; height: 1.1rem; margin-left: -0.55rem; }
  .dial .ef { bottom: 1.1rem; font-size: 0.68rem; }
  .dial .dl { bottom: 0.25rem; font-size: 0.62rem; }
  .veh-panel { width: 15rem; padding: 0.45rem 0.6rem; }
  .vp-val { min-width: 4.6rem; font-size: 0.76rem; }
  #prompt { bottom: 8.6rem; }
  #chat { bottom: 9.4rem; width: calc(100vw - 1.2rem); left: 0.6rem; }
  #help-hint { display: none; }
  #center-msg { top: 19%; }
  #center-msg .t { font-size: 2.3rem; }
  .ic-title { font-size: 2.2rem; }
  #intercept { top: 37%; }
  #intercept-info { flex-wrap: wrap; justify-content: center; white-space: normal; max-width: calc(100vw - 2rem); gap: 0.3rem 0.9rem; }
  .rc-tabs button small, .rc-kbd { display: none; }
  .scopes.dual { flex-direction: column; }
  .scopes.dual .scope canvas { width: min(calc(100cqw - 3.6rem), calc(50cqh - 0.4rem)); height: min(calc(100cqw - 3.6rem), calc(50cqh - 0.4rem)); }
  .statrow { grid-template-columns: 7rem 1fr 4.8rem; }
  .keyrow { grid-template-columns: 6rem 1fr; }
  .set-row { grid-template-columns: 1fr 2.8rem; }
  .set-row > span { grid-column: 1 / -1; }
  .set-row > .seg, .set-row > .switch { grid-column: 1 / -1; }
  .vw-nav { display: none; }
  .viewer-box img { width: calc(100vw - 3rem); }
}
@media (max-height: 560px) {
  #radio, #notify .toast:nth-child(n+3) { display: none; }
  #hud-left { width: 17rem; }
}
/* ---------- konto, pokoje (ekran startowy) ---------- */
.start-wrap { grid-template-columns: minmax(0, 1.1fr) minmax(0, 30rem); }
.start-box { max-height: calc(100vh - 2rem); overflow-y: auto; scrollbar-width: thin; }
.start-box input, .start-box select, .pause-acc input { user-select: text; }
#v-wait .spinner { margin: 3rem auto; }
.auth-tabs { display: flex; gap: 0.3rem; padding: 0.25rem; margin-bottom: 0.4rem; background: rgba(0, 0, 0, 0.3); border: 1px solid var(--line); border-radius: 0.7rem; }
.auth-tabs button { flex: 1; padding: 0.55rem; background: none; border: 0; border-radius: 0.5rem; color: var(--dim); font-size: 1.1rem; font-weight: 700; }
.auth-tabs button:hover { color: var(--txt); }
.auth-tabs button.active { background: var(--acc); color: #1a1206; }
.af-hint { margin-top: 0.3rem; font-size: 0.85rem; color: var(--faint); line-height: 1.3; }
.af-links { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 0.5rem; margin-top: 0.8rem; }
.link { padding: 0; background: none; border: 0; color: var(--acc-2); font-size: 0.95rem; font-weight: 600; text-decoration: underline; text-underline-offset: 0.18em; }
.link:hover { color: #fff; }
.af-msg { margin-top: 0.9rem; padding: 0.6rem 0.8rem; border-radius: 0.6rem; font-size: 0.98rem; line-height: 1.35; background: rgba(79, 216, 255, 0.08); border: 1px solid rgba(79, 216, 255, 0.3); color: #cdefff; }
.af-msg.bad { background: rgba(255, 75, 75, 0.1); border-color: rgba(255, 75, 75, 0.4); color: #ffc2c2; }
.af-msg.good { background: rgba(61, 220, 132, 0.08); border-color: rgba(61, 220, 132, 0.35); color: #c9f5dc; }
.fld.err input { border-color: var(--bad); }
.acc-bar { display: flex; align-items: center; gap: 0.6rem; margin-bottom: 0.8rem; padding: 0.5rem 0.7rem; border-radius: 0.6rem; background: rgba(255, 255, 255, 0.04); border: 1px solid var(--line); }
.acc-bar > .ic { font-size: 1.4rem; color: var(--acc); }
.acc-bar .who { flex: 1; min-width: 0; line-height: 1.2; }
.acc-bar .who b { font-size: 1.15rem; }
.acc-bar .who small { display: block; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.role { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.1em; padding: 0.05rem 0.4rem; border-radius: 0.3rem; margin-left: 0.35rem; background: rgba(255, 207, 58, 0.15); color: var(--gold); vertical-align: 0.15em; }
.import-box { margin-bottom: 0.9rem; padding: 0.7rem 0.8rem; border-radius: 0.6rem; background: rgba(255, 176, 32, 0.08); border: 1px solid rgba(255, 176, 32, 0.35); font-size: 0.98rem; line-height: 1.35; }
.import-box .btns { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.55rem; }
.rooms-head { display: flex; align-items: center; justify-content: space-between; }
.icon-btn { display: inline-flex; padding: 0.3rem; background: none; border: 1px solid transparent; border-radius: 0.4rem; color: var(--dim); font-size: 1rem; }
.icon-btn:hover { color: var(--txt); border-color: var(--line-2); }
.rooms { display: grid; gap: 0.35rem; max-height: 14.5rem; overflow-y: auto; scrollbar-width: thin; }
.room { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 0.1rem 0.6rem; padding: 0.45rem 0.6rem 0.45rem 0.75rem; background: #0c1116; border: 1px solid #2d3743; border-radius: 0.6rem; }
.room.full { opacity: 0.55; }
.room .r-name { font-size: 1.05rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.room .r-name .ic { color: var(--gold); margin-right: 0.25rem; }
.room .r-sub { grid-column: 1; font-size: 0.85rem; color: var(--dim); }
.room .r-sub b { color: var(--good); }
.room .btn { grid-row: 1 / span 2; grid-column: 2; }
.room .r-pass { grid-column: 1 / -1; display: flex; gap: 0.4rem; margin-top: 0.35rem; }
.room .r-pass input { margin: 0; padding: 0.4rem 0.6rem; font-size: 1rem; }
.rooms .empty { padding: 0.5rem; color: var(--faint); font-size: 0.92rem; }
.btn.wide { width: 100%; margin-top: 0.45rem; }
.create { margin-top: 0.5rem; padding: 0.3rem 0.8rem 0.8rem; border-radius: 0.6rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); }
.create-row { display: flex; align-items: center; justify-content: space-between; gap: 0.6rem; margin-top: 0.7rem; }
.create-row .seg button { display: inline-flex; align-items: center; gap: 0.3rem; }
.create .mini { display: flex; align-items: center; gap: 0.4rem; color: var(--dim); font-size: 0.9rem; font-weight: 700; }
.create .mini select { width: auto; margin: 0; padding: 0.3rem 0.5rem; font-size: 1rem; }
.create-btns { display: flex; gap: 0.5rem; margin-top: 0.8rem; }
.create-btns .btn.primary { flex: 1; }

/* ---------- pauza: pokój i konto ---------- */
.pause-room, .pause-acc { padding: 0.7rem; border-radius: 0.6rem; background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line); font-size: 0.92rem; }
.pause-room:empty { display: none; }
.pause-room .sh, .pause-acc .sh { font-size: 0.75rem; letter-spacing: 0.14em; color: var(--dim); font-weight: 700; margin-bottom: 0.35rem; }
.pause-room .pr-name { font-size: 1.05rem; font-weight: 700; }
.pause-room ul { list-style: none; margin: 0.4rem 0 0; padding: 0; max-height: 9rem; overflow-y: auto; }
.pause-room li { display: flex; align-items: center; gap: 0.4rem; padding: 0.15rem 0; }
.pause-room li .dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; flex: none; }
.pause-room li span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pause-room .pr-btns, .pause-acc .pa-btns { display: flex; flex-wrap: wrap; gap: 0.35rem; margin-top: 0.5rem; }
.pause-nav .pause-room .btn, .pause-nav .pause-acc .btn { justify-content: center; }
.pause-acc input { display: block; width: 100%; margin-top: 0.3rem; padding: 0.4rem 0.6rem; background: #0c1116; border: 1px solid #2d3743; color: #fff; border-radius: 0.45rem; font: inherit; font-size: 1rem; }
.pause-acc .pa-msg { margin-top: 0.35rem; font-size: 0.88rem; }
.pause-acc .pa-msg.bad { color: #ffb0b0; }
.pause-acc .pa-msg.good { color: var(--good); }

/* okno z komunikatem (wyrzucenie z pokoju, konflikt zapisu) */
.msgbox { position: fixed; inset: 0; z-index: 90; display: flex; align-items: center; justify-content: center; background: rgba(4, 6, 9, 0.72); }
.msgbox .box { width: min(28rem, calc(100vw - 2rem)); padding: 1.4rem 1.5rem; border-radius: 1rem; background: var(--glass-2); border: 1px solid var(--line-2); text-align: center; }
.msgbox h3 { margin: 0 0 0.6rem; font-size: 1.4rem; }
.msgbox p { margin: 0 0 1.1rem; color: #d5dce3; line-height: 1.4; }
@media (max-width: 860px) {
  .start-wrap { grid-template-columns: 1fr; }
  .start-box { max-height: none; overflow: visible; }
}
.msgbox .btns { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; }
.pause-room li .btn { padding: 0.1rem 0.5rem; font-size: 0.8rem; }
