/* =========================================================
   Šešėlių Imperija – šiuolaikinis tamsus dizainas
   ========================================================= */
:root {
  --bg: #090a10;
  --glass: rgba(24, 25, 36, .72);
  --glass2: rgba(34, 35, 50, .72);
  --glass3: rgba(48, 50, 70, .6);
  --line: rgba(255, 255, 255, .07);
  --line2: rgba(255, 255, 255, .12);
  --text: #eceef6;
  --muted: #9195ab;
  --primary1: #ff3d5a;
  --primary2: #c1124f;
  --gold1: #ffd76a;
  --gold2: #f5a524;
  --cash: #3ee08f;
  --credits: #ffcf5a;
  --health: #ff4d6d;
  --energy: #ffc53d;
  --stamina: #4fc3ff;
  --exp: #a78bfa;
  --violet: #7c5cff;
  --r: 16px;
  --r-sm: 10px;
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --font: 'Inter', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  color: var(--text); font: 14px/1.5 var(--font); min-height: 100vh; background: var(--bg);
  background-image:
    radial-gradient(900px 600px at 8% -10%, rgba(255, 61, 90, .16), transparent 60%),
    radial-gradient(900px 700px at 105% 10%, rgba(124, 92, 255, .16), transparent 60%),
    radial-gradient(800px 600px at 50% 120%, rgba(245, 165, 36, .08), transparent 60%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
::selection { background: rgba(255, 61, 90, .4); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .12); border-radius: 10px; border: 2px solid transparent; background-clip: padding-box; }
a { color: #ff8fa3; text-decoration: none; transition: color .15s; }
a:hover { color: #fff; }
h1, h2, h3 { margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 22px; font-weight: 800; color: #fff; display: flex; align-items: center; gap: .5rem; }
h2 .crumb { color: var(--muted); font-weight: 600; font-size: 15px; }
h3 { font-size: 15px; font-weight: 700; color: #fff; }
p { margin: 0 0 .7em; }
small, .muted { color: var(--muted); }
.ico { vertical-align: -3px; flex-shrink: 0; }
code { background: rgba(255, 255, 255, .08); padding: 0 .3em; border-radius: 4px; }

/* ---------- Mygtukai ir laukai ---------- */
button, .btn {
  font: 700 13px var(--font); cursor: pointer; color: #fff; padding: .6em 1.15em; border-radius: 999px; white-space: nowrap; border: 0;
  background: linear-gradient(135deg, var(--primary1), var(--primary2));
  box-shadow: 0 6px 18px rgba(255, 61, 90, .28), inset 0 1px 0 rgba(255, 255, 255, .25);
  transition: transform .12s, box-shadow .2s, filter .2s; display: inline-flex; align-items: center; gap: .4em; justify-content: center;
}
button:hover, .btn:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(255, 61, 90, .38), inset 0 1px 0 rgba(255, 255, 255, .25); color: #fff; filter: brightness(1.06); }
button:active, .btn:active { transform: translateY(1px) scale(.98); }
button:disabled { opacity: .38; cursor: not-allowed; transform: none; box-shadow: none; filter: grayscale(.5); }
button.secondary, .btn.secondary { background: var(--glass3); box-shadow: inset 0 0 0 1px var(--line2); color: var(--text); }
button.secondary:hover, .btn.secondary:hover { background: rgba(70, 72, 98, .7); }
button.gold, .btn.gold { background: linear-gradient(135deg, var(--gold1), var(--gold2)); color: #2a1800; box-shadow: 0 6px 18px rgba(245, 165, 36, .3), inset 0 1px 0 rgba(255, 255, 255, .5); }
button.danger { background: linear-gradient(135deg, #5a1424, #3a0c18); box-shadow: inset 0 0 0 1px rgba(255, 77, 109, .4); }
button.small { padding: .35em .8em; font-size: 12px; }
input, select, textarea {
  font: 14px var(--font); color: var(--text); background: rgba(0, 0, 0, .35); border: 1px solid var(--line2); border-radius: var(--r-sm);
  padding: .6em .8em; width: 100%; transition: border-color .15s, box-shadow .15s;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary1); box-shadow: 0 0 0 3px rgba(255, 61, 90, .2); }
input[type=checkbox] { width: 18px; height: 18px; accent-color: var(--primary1); flex-shrink: 0; }
label { display: block; margin-bottom: .8em; color: var(--muted); font-size: 12.5px; font-weight: 600; }
label > input, label > textarea, label > select { margin-top: .35em; }
label.check { display: flex; gap: .55em; align-items: flex-start; color: var(--text); font-weight: 400; }

/* ---------- Pagrindiniai blokai ---------- */
.panel, .card, .rp-card, .lmenu, .center, .citymap, .rpanel > div {
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
}
.panel { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.15rem; margin-bottom: 1rem; box-shadow: var(--shadow); }
.grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.row { display: flex; gap: .55rem; align-items: center; flex-wrap: wrap; }
.spread { display: flex; justify-content: space-between; align-items: center; gap: .7rem; flex-wrap: wrap; }
.card {
  background: linear-gradient(180deg, rgba(40, 42, 60, .75), rgba(24, 25, 36, .75)); border: 1px solid var(--line); border-radius: var(--r);
  padding: .8rem; display: flex; flex-direction: column; gap: .45rem; box-shadow: var(--shadow); transition: transform .18s, box-shadow .18s, border-color .18s;
}
.card:hover { transform: translateY(-3px); border-color: rgba(255, 61, 90, .35); box-shadow: 0 16px 40px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 61, 90, .15); }
.card h3 { margin: 0; }
.card .foot { margin-top: auto; display: flex; gap: .5rem; align-items: center; justify-content: space-between; flex-wrap: wrap; padding-top: .3rem; }
.card.locked { opacity: .5; filter: saturate(.4); }
.tag { display: inline-flex; align-items: center; gap: .25em; font-size: 11px; font-weight: 700; padding: .12em .6em; border-radius: 999px; background: rgba(255, 255, 255, .08); color: var(--muted); vertical-align: 1px; }
.tag.gold { color: #2a1800; background: linear-gradient(135deg, var(--gold1), var(--gold2)); }
.tag.vip { color: #2a1800; background: linear-gradient(135deg, #fff0b0, var(--gold2)); box-shadow: 0 0 12px rgba(245, 165, 36, .45); }
.tag.red { background: rgba(255, 77, 109, .18); color: #ff8fa3; }
.tag.green { background: rgba(62, 224, 143, .15); color: var(--cash); }
.tag.admin { background: rgba(79, 195, 255, .15); color: var(--stamina); }
.stat-chip { display: inline-flex; align-items: center; gap: .3em; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 999px; padding: .1em .6em; font-weight: 700; font-size: 12.5px; }
.stat-chip.energy { color: var(--energy); }
.cash { color: var(--cash); font-weight: 700; }
.credits { color: var(--credits); font-weight: 700; }
table { width: 100%; border-collapse: separate; border-spacing: 0; }
th, td { text-align: left; padding: .55em .6em; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-weight: 700; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
tr:last-child td { border-bottom: 0; }
tbody tr, table tr { transition: background .15s; }
tr:hover td { background: rgba(255, 255, 255, .03); }
.rank td:first-child { color: var(--muted); text-align: right; width: 40px; font-weight: 700; }
.rank tr:nth-child(2) td:first-child { color: var(--gold1); }
.rank tr:nth-child(3) td:first-child { color: #d9dde8; }
.rank tr:nth-child(4) td:first-child { color: #e0a070; }
.rank tr.me td { background: rgba(255, 61, 90, .12); }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: rgba(0, 0, 0, .45); border-radius: 999px; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--gold2), var(--gold1)); transition: width .5s cubic-bezier(.2, .8, .2, 1); }
.bar.health > i { background: linear-gradient(90deg, #c1124f, var(--health)); }
.bar.energy > i { background: linear-gradient(90deg, var(--gold2), var(--energy)); }
.bar.exp > i { background: linear-gradient(90deg, var(--violet), var(--exp)); }
.avatar { display: inline-block; border-radius: 12px; overflow: hidden; vertical-align: middle; flex-shrink: 0; line-height: 0; box-shadow: 0 0 0 2px rgba(255, 255, 255, .08); }
.player-link { display: inline-flex; align-items: center; gap: .45em; font-weight: 600; }
.empty { color: var(--muted); padding: 1.2rem; text-align: center; }
.error { color: #ff8fa3; }

/* ---------- Karkasas ---------- */
.wrap { position: relative; z-index: 1; max-width: 1320px; margin: 0 auto; padding: 0 16px 40px; }
.hdr { display: grid; grid-template-columns: 230px 160px 1fr 230px; gap: 14px; align-items: stretch; padding: 16px 0; }
.logo { display: flex; flex-direction: column; justify-content: center; line-height: 1; text-decoration: none !important; }
.logo .l1 { font-size: 13px; font-weight: 800; letter-spacing: .5em; color: var(--muted); text-transform: uppercase; }
.logo .l2 { font-size: 36px; font-weight: 900; letter-spacing: -.02em; text-transform: uppercase; background: linear-gradient(135deg, #fff 10%, #ff8fa3 45%, var(--primary1) 70%, var(--gold2)); -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 18px rgba(255, 61, 90, .35)); }
.logo small { line-height: 1.35; color: var(--muted); font-size: 10.5px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; margin-top: 6px; }
.hdr-info { font-size: 12.5px; display: flex; flex-direction: column; justify-content: center; gap: 2px; color: var(--muted); padding: 10px 14px; background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); }
.hdr-info b { color: var(--cash); display: inline-flex; align-items: center; gap: .4em; }
.hdr-info b::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--cash); box-shadow: 0 0 10px var(--cash); animation: pulse 2s infinite; }
@keyframes pulse { 50% { opacity: .35; } }
.hdr-shouts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shout { display: flex; align-items: center; gap: 10px; font-size: 12.5px; line-height: 1.35; overflow: hidden; background: var(--glass); border: 1px solid var(--line); padding: 10px; border-radius: var(--r); color: var(--text); transition: border-color .15s, transform .15s; }
.shout:hover { border-color: var(--line2); transform: translateY(-1px); }
.shout .who { color: #fff; font-weight: 700; display: block; }
.shout .txt { color: var(--muted); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
.vipbox {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 74px 1fr; gap: 6px; align-items: center; text-decoration: none !important; padding: 10px 14px; border-radius: var(--r);
  background: linear-gradient(135deg, #2a1d06, #5a3c08 50%, #2a1d06); box-shadow: inset 0 0 0 1px rgba(255, 215, 106, .35), 0 10px 30px rgba(245, 165, 36, .18);
}
.vipbox::after { content: ''; position: absolute; inset: 0; background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, .18) 50%, transparent 70%); transform: translateX(-100%); animation: shine 4s infinite; }
@keyframes shine { 60%, 100% { transform: translateX(100%); } }
.vipbox .coins { position: relative; height: 62px; }
.vipbox .coins svg { width: 74px; height: auto; }
.vipbox .coins .cnt { position: absolute; left: 0; right: 0; bottom: -2px; background: rgba(0, 0, 0, .55); border-radius: 999px; color: var(--gold1); font-weight: 900; font-size: 15px; text-align: center; }
.vipbox .links { text-align: right; font-size: 12px; font-weight: 700; line-height: 1.5; color: #ffe6a8; }
.vipbox .links .v { font-size: 22px; font-weight: 900; color: var(--gold1); letter-spacing: .05em; }

.cols { display: grid; grid-template-columns: 220px minmax(0, 1fr) 270px; gap: 16px; align-items: start; }
.center { min-width: 0; background: rgba(16, 17, 26, .55); border: 1px solid var(--line); border-radius: 22px; padding: 20px 22px 0; min-height: 640px; display: flex; flex-direction: column; box-shadow: var(--shadow); }
#main { flex: 1; }
#main.fade { animation: fadeIn .28s ease-out; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Kairysis meniu */
.lmenu { display: flex; flex-direction: column; gap: 3px; background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 10px; box-shadow: var(--shadow); position: sticky; top: 12px; }
.lmenu a {
  position: relative; display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 12px; color: #c9cbe0; font-weight: 600; font-size: 13.5px;
  transition: background .15s, color .15s, transform .15s;
}
.lmenu a .mi { width: 32px; height: 32px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255, 255, 255, .05); color: #a7aac4; transition: all .15s; }
.lmenu a:hover { background: rgba(255, 255, 255, .05); color: #fff; transform: translateX(2px); }
.lmenu a:hover .mi { color: #fff; background: rgba(255, 255, 255, .1); }
.lmenu a.active { background: linear-gradient(135deg, rgba(255, 61, 90, .25), rgba(193, 18, 79, .12)); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 61, 90, .35); }
.lmenu a.active .mi { background: linear-gradient(135deg, var(--primary1), var(--primary2)); color: #fff; box-shadow: 0 4px 14px rgba(255, 61, 90, .45); }
.lmenu a.locked { opacity: .4; pointer-events: none; }
.lmenu .badge { margin-left: auto; order: 3; background: var(--primary1); color: #fff; font-size: 10.5px; font-weight: 800; padding: 0 7px; border-radius: 999px; line-height: 18px; }
.lmenu .sub a { font-size: 12.5px; padding: 6px 10px; color: var(--muted); }
.lmenu .sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* Dešinysis skydelis */
.rpanel { display: flex; flex-direction: column; gap: 12px; position: sticky; top: 12px; }
.rp-card { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 14px; box-shadow: var(--shadow); }
.rp-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.rp-av { position: relative; }
.rp-av .avatar { border-radius: 16px; box-shadow: 0 0 0 2px rgba(255, 61, 90, .6), 0 8px 20px rgba(0, 0, 0, .5); }
.lvl-badge { position: absolute; right: -8px; bottom: -6px; min-width: 26px; height: 26px; padding: 0 6px; border-radius: 999px; background: linear-gradient(135deg, var(--gold1), var(--gold2)); color: #2a1800; font-weight: 900; font-size: 13px; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 3px #15161f; }
.rp-who { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; min-width: 0; }
.rp-who b { font-size: 16px; color: #fff; overflow: hidden; text-overflow: ellipsis; max-width: 150px; }
.st { color: var(--cash); font-size: 12px; font-weight: 600; }
.st.bad { color: var(--health); }
.meters { display: flex; flex-direction: column; gap: 9px; }
.meter { display: flex; align-items: center; gap: 10px; }
.mico { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.mbody { flex: 1; min-width: 0; }
.mlabel { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); font-weight: 600; }
.mlabel b { color: #fff; font-variant-numeric: tabular-nums; }
.mtube { height: 7px; background: rgba(0, 0, 0, .45); border-radius: 999px; overflow: hidden; margin: 3px 0 1px; }
.mtube i { display: block; height: 100%; border-radius: 999px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.meter small { font-size: 10.5px; display: block; height: 13px; }
.m-h .mico { background: rgba(255, 77, 109, .15); color: var(--health); } .m-h .mtube i { background: linear-gradient(90deg, #c1124f, var(--health)); box-shadow: 0 0 10px rgba(255, 77, 109, .6); }
.m-e .mico { background: rgba(255, 197, 61, .15); color: var(--energy); } .m-e .mtube i { background: linear-gradient(90deg, var(--gold2), var(--energy)); box-shadow: 0 0 10px rgba(255, 197, 61, .5); }
.m-s .mico { background: rgba(79, 195, 255, .15); color: var(--stamina); } .m-s .mtube i { background: linear-gradient(90deg, #1f7fd1, var(--stamina)); box-shadow: 0 0 10px rgba(79, 195, 255, .5); }
.m-x .mico { background: rgba(167, 139, 250, .15); color: var(--exp); } .m-x .mtube i { background: linear-gradient(90deg, var(--violet), var(--exp)); box-shadow: 0 0 10px rgba(167, 139, 250, .5); }
.mini-btn { width: 30px; height: 30px; border-radius: 10px; display: flex; align-items: center; justify-content: center; background: rgba(255, 197, 61, .12); color: var(--energy); flex-shrink: 0; transition: transform .15s, background .15s; }
.mini-btn:hover { transform: scale(1.08); background: rgba(255, 197, 61, .25); color: #fff; }
.rp-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 14px 0 12px; }
.rp-stats > * { display: flex; align-items: center; gap: 6px; white-space: nowrap; overflow: hidden; background: rgba(0, 0, 0, .25); border-radius: 10px; padding: 6px 8px; font-weight: 700; font-size: 12.5px; }
.rp-stats .ico { color: var(--muted); }
.slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.slot { aspect-ratio: 1; background: rgba(0, 0, 0, .3); border: 1px dashed var(--line2); border-radius: 12px; display: flex; align-items: center; justify-content: center; color: #555a72; position: relative; overflow: hidden; transition: transform .15s; }
.slot:hover { transform: translateY(-2px); }
.slot.on { border-style: solid; border-color: var(--line2); color: #fff; }
.slot.glow { border-color: var(--gold2); color: var(--gold1); box-shadow: 0 0 16px rgba(245, 165, 36, .4); animation: pulse 2s infinite; }
.slot.on::after { content: attr(data-n); position: absolute; right: 4px; bottom: 2px; font-size: 10px; font-weight: 800; color: var(--gold1); }
.slot .art { width: 100%; height: 100%; object-fit: cover; }
.rp-links { padding: 8px !important; }
.rp-links a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; color: #c9cbe0; font-weight: 600; font-size: 13px; border-radius: 10px; transition: background .15s; }
.rp-links a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.rp-links a .ico { color: var(--primary1); }
.rp-links .badge { margin-left: auto; background: var(--primary1); color: #fff; font-size: 10.5px; font-weight: 800; padding: 0 7px; border-radius: 999px; line-height: 18px; }

/* Įvykių juosta ir poraštė */
.feed { margin: 22px -22px 0; border-top: 1px solid var(--line); background: rgba(0, 0, 0, .2); padding: 12px 22px; font-size: 12.5px; display: grid; grid-template-columns: 34px 1fr; gap: 10px; }
.feed .ficon { color: var(--muted); text-align: center; }
.feed .ficon b { display: block; font-size: 12px; color: #fff; }
.feed .e { padding: 2px 0; color: #c9cbe0; }
.feed .e.new::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--primary1); margin-right: 6px; box-shadow: 0 0 8px var(--primary1); }
.foot-links { margin: 0 -22px; padding: 12px 22px; font-size: 12px; display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); border-top: 1px solid var(--line); border-radius: 0 0 22px 22px; }
.foot-links a { color: var(--muted); }
.foot-links a:hover { color: #fff; }

/* Skirtukai (segmentai) */
.tabs { display: inline-flex; gap: 4px; margin-bottom: 1rem; flex-wrap: wrap; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.tabs button { background: transparent; box-shadow: none; border-radius: 10px; color: var(--muted); font-weight: 700; font-size: 12.5px; padding: .5em .95em; }
.tabs button:hover { color: #fff; background: rgba(255, 255, 255, .06); transform: none; box-shadow: none; }
.tabs button.active { background: linear-gradient(135deg, var(--primary1), var(--primary2)); color: #fff; box-shadow: 0 4px 14px rgba(255, 61, 90, .35); }
.pager { display: flex; gap: 6px; align-items: center; justify-content: center; margin: 1rem 0; flex-wrap: wrap; }
.pager button { min-width: 34px; padding: .4em .6em; background: var(--glass3); box-shadow: none; font-weight: 700; }
.pager button.active { background: linear-gradient(135deg, var(--gold1), var(--gold2)); color: #2a1800; }

.status-box, .hint-box { border-radius: var(--r); padding: .8rem 1rem; margin-bottom: 1rem; display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.status-box { background: linear-gradient(135deg, rgba(255, 77, 109, .18), rgba(255, 77, 109, .06)); border: 1px solid rgba(255, 77, 109, .3); }
.status-box.jail { background: linear-gradient(135deg, rgba(79, 195, 255, .16), rgba(79, 195, 255, .05)); border-color: rgba(79, 195, 255, .3); }
.hint-box { background: linear-gradient(135deg, rgba(255, 197, 61, .16), rgba(255, 197, 61, .04)); border: 1px solid rgba(255, 197, 61, .3); color: #ffe6a8; }
.hint-box .ico { color: var(--energy); }
.toast-wrap { position: fixed; bottom: 1.2rem; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: .5rem; align-items: center; pointer-events: none; }
.toast { background: rgba(30, 31, 45, .95); backdrop-filter: blur(10px); border: 1px solid var(--line2); color: var(--text); padding: .75rem 1.2rem; border-radius: 14px; box-shadow: 0 12px 40px rgba(0, 0, 0, .6); max-width: 92vw; animation: pop .25s cubic-bezier(.2, 1.4, .4, 1); font-weight: 600; }
.toast.err { border-color: rgba(255, 77, 109, .5); box-shadow: 0 12px 40px rgba(255, 77, 109, .2); }
@keyframes pop { from { transform: translateY(14px) scale(.96); opacity: 0; } to { transform: none; opacity: 1; } }
.result { padding: .75rem 1rem; border-radius: var(--r); background: linear-gradient(135deg, rgba(62, 224, 143, .16), rgba(62, 224, 143, .04)); border: 1px solid rgba(62, 224, 143, .3); margin-bottom: 1rem; animation: pop .3s cubic-bezier(.2, 1.4, .4, 1); }
.result.bad { background: linear-gradient(135deg, rgba(255, 77, 109, .18), rgba(255, 77, 109, .05)); border-color: rgba(255, 77, 109, .35); }
.avatar-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: .6rem; }
.avatar-pick button { background: rgba(0, 0, 0, .3); box-shadow: inset 0 0 0 2px var(--line); border-radius: 14px; padding: 6px; flex-direction: column; gap: 4px; font-size: 10.5px; color: var(--muted); }
.avatar-pick button.sel { box-shadow: inset 0 0 0 2px var(--gold2), 0 0 16px rgba(245, 165, 36, .35); }
.profile-head { display: flex; gap: 1rem; align-items: center; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: .3rem 1.2rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
.help { display: flex; gap: 10px; font-size: 13px; color: #b9bcd2; background: rgba(124, 92, 255, .08); border: 1px solid rgba(124, 92, 255, .2); border-radius: var(--r); padding: 12px 14px; margin-top: 1rem; }
.help .ico { color: var(--exp); margin-top: 2px; }

/* Pokalbiai */
.chat .msgs { height: 480px; overflow-y: auto; display: flex; flex-direction: column; gap: .55rem; padding: .7rem; background: rgba(0, 0, 0, .25); border-radius: 14px; }
.chat .msg { line-height: 1.4; word-wrap: break-word; display: flex; gap: 8px; align-items: flex-start; background: rgba(255, 255, 255, .03); padding: 6px 8px; border-radius: 12px; }
.chat .msg .who { color: #ff8fa3; font-weight: 700; }
.chat .msg .time { color: var(--muted); font-size: 11px; }
.chat form { display: flex; gap: .5rem; margin-top: .7rem; }

/* Rajono žemėlapis */
.citymap { position: relative; background: #12141a; border-radius: 20px; overflow: hidden; box-shadow: 0 0 0 1px var(--line), 0 20px 50px rgba(0, 0, 0, .55); margin-bottom: 1rem; }
.citymap > svg { display: block; width: 100%; height: auto; }
.citymap svg text { pointer-events: none; }
.citymap .lot { cursor: pointer; transition: filter .15s; }
.citymap .lot:hover { filter: brightness(1.25) drop-shadow(0 0 6px rgba(255, 215, 106, .5)); }
.citymap .lot.sel .pad { stroke: var(--gold1); stroke-width: 3; }
.citymap .info { position: absolute; left: 14px; top: 14px; background: rgba(10, 11, 18, .75); backdrop-filter: blur(10px); border: 1px solid var(--line2); border-radius: 14px; padding: 10px 14px; font-size: 12.5px; line-height: 1.55; }
.citymap .info b { color: #fff; font-size: 14px; }

/* Paveikslėliai */
.art-box { background: #0d0e14; border-radius: 12px; overflow: hidden; line-height: 0; box-shadow: inset 0 0 0 1px var(--line); }
.art-box .art { width: 100%; height: auto; display: block; transition: transform .3s; }
.card:hover .art-box .art { transform: scale(1.05); }
.art-box svg.art { aspect-ratio: 3 / 2; }
.buyrow { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; width: 100%; }
.buyrow .qty { width: 62px; padding: .5em .5em; text-align: center; border-radius: 999px; }
.buyrow button { flex: 1; padding: .5em .7em; font-size: 12.5px; }

/* Kavos aparatas */
.coffee-hero { display: grid; grid-template-columns: 190px 1fr; gap: 1.4rem; align-items: center; background: linear-gradient(135deg, rgba(255, 140, 60, .12), rgba(124, 92, 255, .08)); border: 1px solid var(--line); border-radius: 22px; padding: 1.2rem 1.4rem; margin-bottom: 1.2rem; }
.coffee-machine { filter: drop-shadow(0 18px 30px rgba(0, 0, 0, .6)); animation: float 4s ease-in-out infinite; }
.coffee-machine .art { width: 100%; height: auto; }
@keyframes float { 50% { transform: translateY(-6px); } }
.steam { animation: steam 2.4s ease-in-out infinite; }
@keyframes steam { 0% { opacity: 0; transform: translateY(4px); } 50% { opacity: 1; } 100% { opacity: 0; transform: translateY(-6px); } }
.hero-stat { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; margin-top: .6rem; font-weight: 600; }
.hero-stat .bar { flex-basis: 100%; height: 10px; }
.hero-stat .ico { color: var(--energy); }
.drink .art-box svg.art { aspect-ratio: 4 / 3; }

/* Animacijos: skraidantys skaičiai, naujas lygis */
.floater { position: fixed; z-index: 300; transform: translateX(-50%); font-weight: 900; font-size: 18px; pointer-events: none; animation: floatUp 1.6s ease-out forwards; text-shadow: 0 2px 10px rgba(0, 0, 0, .8); }
.floater.cash { color: var(--cash); } .floater.cred { color: var(--gold1); } .floater.neg { color: var(--health); }
@keyframes floatUp { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.1); } 100% { opacity: 0; transform: translate(-50%, -70px) scale(1); } }
.modal-wrap { position: fixed; inset: 0; z-index: 250; background: rgba(5, 6, 10, .7); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; animation: fadeIn .2s; padding: 1rem; }
.modal { position: relative; background: linear-gradient(180deg, rgba(48, 40, 70, .95), rgba(24, 25, 36, .95)); border: 1px solid var(--line2); border-radius: 24px; padding: 2rem 2rem 1.5rem; max-width: 380px; text-align: center; box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(124, 92, 255, .25); animation: pop .4s cubic-bezier(.2, 1.4, .4, 1); }
.levelup .big { width: 96px; height: 96px; margin: 0 auto .8rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 42px; font-weight: 900; color: #2a1800; background: radial-gradient(circle at 35% 30%, #fff6c8, var(--gold1) 40%, var(--gold2)); box-shadow: 0 0 0 6px rgba(255, 215, 106, .2), 0 0 50px rgba(245, 165, 36, .6); }
.levelup h3 { font-size: 22px; }
.burst { position: absolute; left: 50%; top: 80px; width: 0; height: 0; }
.confetti { position: absolute; width: 8px; height: 14px; border-radius: 2px; animation: confetti 1.4s cubic-bezier(.2, .7, .3, 1) forwards; }
@keyframes confetti { from { transform: translate(0, 0) rotate(0); opacity: 1; } to { transform: translate(var(--x), var(--y)) rotate(var(--r)); opacity: 0; } }

/* Pradinis puslapis */
.landing-grid { display: grid; grid-template-columns: 1fr 340px; gap: 16px; }
.landing-grid .rpanel { position: static; }
.landing-grid aside .rpanel, .landing-grid aside > .rpanel { background: var(--glass); border: 1px solid var(--line); border-radius: 20px; padding: 16px; box-shadow: var(--shadow); }
.stats-strip { display: flex; gap: 1.6rem; flex-wrap: wrap; margin: .6rem 0 1rem; }
.stats-strip div { font-size: 11.5px; color: var(--muted); text-transform: uppercase; font-weight: 700; letter-spacing: .06em; }
.stats-strip b { display: block; color: #fff; font-size: 28px; font-weight: 900; letter-spacing: -.02em; }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .8rem; }
.feature { background: var(--glass); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; display: flex; gap: .8rem; transition: transform .18s, border-color .18s; }
.feature:hover { transform: translateY(-3px); border-color: rgba(255, 61, 90, .35); }
.feature .ico { color: var(--primary1); background: rgba(255, 61, 90, .12); border-radius: 12px; padding: 6px; width: 40px; height: 40px; }
.feature b { color: #fff; display: block; margin-bottom: .2em; }
.age { display: inline-flex; align-items: center; justify-content: center; border: 2px solid var(--health); color: var(--health); border-radius: 50%; width: 2.6em; height: 2.6em; font-weight: 900; }
.doc { max-width: 820px; margin: 2rem auto; padding: 2rem; position: relative; z-index: 1; background: var(--glass); border: 1px solid var(--line); border-radius: 22px; }
.menu-toggle { display: none; }

/* ---------- Telefonai ir planšetės ---------- */
@media (max-width: 1150px) {
  .hdr { grid-template-columns: 1fr auto; }
  .hdr-shouts, .hdr-info { display: none; }
  .cols { grid-template-columns: 1fr; }
  .rpanel { position: static; order: -1; display: grid; grid-template-columns: 1fr; }
  .rp-links { display: none; }
  .menu-toggle { display: flex; width: 100%; margin-bottom: 8px; }
  .lmenu { display: none; position: static; }
  .lmenu.open { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
  .landing-grid { grid-template-columns: 1fr; }
  .citymap { overflow-x: auto; }
  .citymap > svg { min-width: 680px; }
  .citymap .info { position: sticky; left: 0; display: inline-block; margin: 8px; }
  .center { padding: 16px 14px 0; border-radius: 18px; }
  .feed, .foot-links { margin-left: -14px; margin-right: -14px; padding-left: 14px; padding-right: 14px; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 10px 30px; }
  .logo .l2 { font-size: 28px; }
  .vipbox { grid-template-columns: 54px 1fr; padding: 8px 10px; }
  .vipbox .coins svg { width: 54px; }
  .grid { grid-template-columns: 1fr 1fr; gap: .6rem; }
  .coffee-hero { grid-template-columns: 1fr; text-align: center; }
  .coffee-machine { max-width: 150px; margin: 0 auto; }
  h2 { font-size: 19px; }
  .rp-stats, .slots { display: none; }
  .rp-card { padding: 12px; }
  .rp-head { margin-bottom: 8px; }
}
@media (max-width: 400px) { .grid { grid-template-columns: 1fr; } }

/* Rizika ir policija */
.stars { color: #ff5a5a; letter-spacing: 1px; text-shadow: 0 0 8px rgba(255, 77, 109, .6); }
.stars i { font-style: normal; color: rgba(255, 255, 255, .15); text-shadow: none; }
a.meter { color: inherit; text-decoration: none; border-radius: 12px; }
a.meter:hover { background: rgba(255, 255, 255, .04); }
.m-r .mico { background: rgba(255, 90, 90, .15); color: #ff5a5a; } .m-r .mtube i { background: linear-gradient(90deg, #ff9a3d, #ff3d3d); box-shadow: 0 0 10px rgba(255, 61, 61, .6); }
.m-p .mico { background: rgba(79, 140, 255, .18); color: #6fa8ff; } .m-p .mtube i { background: linear-gradient(90deg, #2a5bd7, #6fa8ff); box-shadow: 0 0 10px rgba(79, 140, 255, .6); }
.heat-box { display: flex; align-items: center; gap: .8rem; flex-wrap: wrap; border-radius: var(--r); padding: .7rem 1rem; margin-bottom: 1rem; background: linear-gradient(135deg, rgba(255, 154, 61, .14), rgba(255, 61, 61, .05)); border: 1px solid rgba(255, 154, 61, .3); }
.heat-box > div { flex: 1; min-width: 200px; }
.heat-box .ico { color: #ff9a3d; }
.heat-box.hot { border-color: rgba(255, 61, 61, .5); animation: siren 1.6s infinite; }
@keyframes siren { 0%, 100% { box-shadow: 0 0 0 rgba(255, 61, 61, 0); } 25% { box-shadow: -8px 0 24px rgba(255, 61, 61, .35); } 75% { box-shadow: 8px 0 24px rgba(79, 140, 255, .35); } }
.police-head { display: flex; align-items: center; gap: 1.2rem; flex-wrap: wrap; padding: 1rem 1.2rem; border-radius: var(--r); margin-bottom: 1rem; background: linear-gradient(135deg, rgba(42, 91, 215, .22), rgba(79, 140, 255, .06)); border: 1px solid rgba(79, 140, 255, .3); }
.police-head b { display: block; font-size: 20px; color: #fff; }
.bar.stamina > i { background: linear-gradient(90deg, #2a5bd7, #6fa8ff); }
.police-card { border-color: rgba(79, 140, 255, .2); }
.police-card h3 .ico { color: #6fa8ff; }
.police-hero { display: flex; gap: 1.2rem; align-items: flex-start; padding: 1.2rem; border-radius: 22px; margin-bottom: 1rem; background: linear-gradient(135deg, rgba(255, 61, 61, .12), rgba(79, 140, 255, .1)); border: 1px solid var(--line); }
.police-hero > div:last-child { flex: 1; }
.police-hero .big-ico { width: 84px; height: 84px; border-radius: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; color: #fff; background: linear-gradient(135deg, #ff3d3d, #2a5bd7); box-shadow: 0 10px 30px rgba(42, 91, 215, .4); animation: siren 1.6s infinite; }
.ranks { display: flex; gap: .35rem; flex-wrap: wrap; }
@media (max-width: 560px) { .police-hero { flex-direction: column; } }

/* Lentelės (tooltip) */
.tip { position: fixed; z-index: 400; display: none; pointer-events: none; min-width: 200px; max-width: 280px; background: rgba(18, 19, 28, .97); border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; font-size: 12.5px; line-height: 1.5; box-shadow: 0 14px 40px rgba(0, 0, 0, .65); backdrop-filter: blur(10px); animation: fadeIn .12s; }
.tip > b:first-child { display: block; color: #fff; font-size: 13.5px; margin-bottom: 4px; }
.tip-row { display: flex; justify-content: space-between; gap: 12px; color: var(--muted); }
.tip-row b { color: #fff; font-variant-numeric: tabular-nums; }
.tip small { display: block; margin-top: 4px; color: var(--muted); }
.good { color: var(--cash) !important; }
.stat-chip.good { color: var(--cash); }
[data-tip] { cursor: help; }
a[data-tip] { cursor: pointer; }
.rp-stats > a { color: var(--text); }
.rp-stats .pts { margin-left: auto; font-size: 10.5px; color: var(--muted); background: rgba(255, 255, 255, .06); padding: 0 6px; border-radius: 999px; }
.rp-stats .pts.full { color: var(--cash); }

/* Sporto salė */
.gym-hero { display: flex; gap: 1.4rem; align-items: center; padding: 1.2rem 1.4rem; border-radius: 22px; margin-bottom: 1.2rem; background: linear-gradient(135deg, rgba(62, 224, 143, .12), rgba(79, 195, 255, .08)); border: 1px solid var(--line); }
.gym-ring { --p: 0; width: 110px; height: 110px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: baseline; justify-content: center; padding-top: 34px;
  background: radial-gradient(closest-side, #171825 78%, transparent 80% 100%), conic-gradient(var(--cash) calc(var(--p) * 1%), rgba(255, 255, 255, .08) 0); box-shadow: 0 0 30px rgba(62, 224, 143, .25); }
.gym-ring b { font-size: 32px; font-weight: 900; } .gym-ring small { color: var(--muted); font-weight: 700; }
.gym-card { text-align: center; align-items: center; }
.gym-card .foot { justify-content: center; width: 100%; }
.gym-ico { width: 64px; height: 64px; border-radius: 20px; display: flex; align-items: center; justify-content: center; color: #fff; margin-bottom: .2rem; }
.g-str .gym-ico { background: linear-gradient(135deg, #ff3d5a, #c1124f); box-shadow: 0 8px 24px rgba(255, 61, 90, .35); }
.g-tough .gym-ico { background: linear-gradient(135deg, #4fc3ff, #2a5bd7); box-shadow: 0 8px 24px rgba(79, 140, 255, .35); }
.g-cond .gym-ico { background: linear-gradient(135deg, #3ee08f, #12935a); box-shadow: 0 8px 24px rgba(62, 224, 143, .35); }
.gym-val { font-size: 30px; font-weight: 900; letter-spacing: -.02em; }
.admin-grid { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 0 1rem; }
@media (max-width: 560px) { .gym-hero { flex-direction: column; text-align: center; } }

/* ---------- Pasaulio žemėlapis ---------- */
.citymap .clickable { cursor: pointer; }
.citymap .clickable:hover { filter: brightness(1.3) drop-shadow(0 0 6px rgba(255, 215, 106, .7)); }
.citymap .bob { animation: bob 1.4s ease-in-out infinite; transform-box: fill-box; }
@keyframes bob { 50% { transform: translateY(-4px); } }
.mapnav { position: absolute; width: 38px; height: 38px; padding: 0; border-radius: 12px; background: rgba(10, 11, 18, .7); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line2); font-size: 14px; }
.mapnav:hover { background: linear-gradient(135deg, var(--primary1), var(--primary2)); }
.mapnav.n { top: 10px; left: 50%; margin-left: -19px; } .mapnav.s { bottom: 10px; left: 50%; margin-left: -19px; }
.mapnav.w { left: 10px; top: 50%; margin-top: -19px; } .mapnav.e { right: 10px; top: 50%; margin-top: -19px; }
.coords { position: absolute; right: 14px; bottom: 14px; background: rgba(10, 11, 18, .75); backdrop-filter: blur(8px); border: 1px solid var(--line2); border-radius: 12px; padding: 6px 10px; font-size: 12px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.fight-pts { position: absolute; right: 14px; top: 14px; display: flex; align-items: center; gap: 6px; background: rgba(10, 11, 18, .75); backdrop-filter: blur(8px); border: 1px solid rgba(255, 61, 90, .4); border-radius: 12px; padding: 6px 10px; font-size: 13px; }
.fight-pts .ico { color: var(--primary1); }
.fight-pts b { font-size: 16px; color: #fff; background: var(--primary1); border-radius: 6px; padding: 0 6px; }
.fight-pts small { color: var(--muted); font-size: 11px; }
.fight-pts button { padding: .2em .55em; }
.owner-box { min-width: 230px; }
.map-popup { position: absolute; left: 50%; top: 64px; transform: translateX(-50%); min-width: 280px; max-width: 92%; background: rgba(18, 19, 28, .95); backdrop-filter: blur(12px); border: 1px solid var(--line2); border-radius: 16px; padding: 12px 14px; box-shadow: 0 20px 50px rgba(0, 0, 0, .7); animation: pop .2s; z-index: 5; }
.map-popup table td { padding: .35em .4em; }
.mini-btn.rage { background: rgba(255, 61, 90, .2); color: var(--primary1); font-weight: 900; font-size: 11px; }

/* ---------- Kovos langas ---------- */
.fight-modal { max-width: 560px; width: 100%; padding: 1.4rem; }
.fight-modal.won { box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(62, 224, 143, .25); }
.fight-modal.lost { box-shadow: 0 30px 80px rgba(0, 0, 0, .7), 0 0 60px rgba(255, 61, 90, .3); }
.fm-top { display: grid; grid-template-columns: 1fr auto 1fr; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.fm-side { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.fm-side .avatar { border-radius: 18px; }
.fm-side.me .avatar { box-shadow: 0 0 0 3px var(--cash); } .fm-side.them .avatar { box-shadow: 0 0 0 3px var(--primary1); }
.fm-side .bar { width: 100%; margin-top: 4px; }
.fm-stats { display: flex; gap: .6rem; font-weight: 700; font-size: 13px; }
.fm-mid { text-align: center; }
.fm-badge { font-weight: 900; font-size: 15px; padding: .45em .8em; border-radius: 12px; letter-spacing: .04em; }
.won .fm-badge { background: linear-gradient(135deg, #3ee08f, #12935a); color: #042014; }
.lost .fm-badge { background: linear-gradient(135deg, var(--primary1), var(--primary2)); color: #fff; }
.vs { font-size: 30px; font-weight: 900; color: var(--muted); margin-top: .4rem; }
.fm-row { display: grid; grid-template-columns: 1fr 80px 1fr; align-items: center; gap: .5rem; padding: .35rem 0; border-top: 1px solid var(--line); }
.fm-item { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; text-align: center; }
.fm-item .art { border-radius: 8px; }
.fm-label { text-align: center; color: var(--muted); font-size: 12px; font-weight: 700; }
.fm-rewards { display: flex; gap: .7rem; flex-wrap: wrap; justify-content: center; margin: .9rem 0 .4rem; font-weight: 700; }

/* ---------- Inventorius ---------- */
.inv-layout { display: grid; grid-template-columns: 280px 1fr; gap: 1.2rem; align-items: start; }
.eq-panel { position: relative; height: 380px; background: radial-gradient(circle at 50% 40%, rgba(124, 92, 255, .15), transparent 70%), rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.silhouette { position: absolute; left: 50%; bottom: 0; width: 200px; transform: translateX(-50%); opacity: .9; }
.eq-slot { position: absolute; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px; border-radius: 14px; background: rgba(10, 11, 18, .75); border: 1px dashed var(--line2); color: var(--muted); font-size: 11px; text-align: center; }
.eq-slot.on { border-style: solid; border-color: rgba(255, 215, 106, .35); color: #fff; }
.eq-slot .art { border-radius: 8px; }
.s-weapon { left: 10px; top: 120px; } .s-armor { right: 10px; top: 60px; } .s-car { right: 10px; top: 200px; }
.eq-stats { position: absolute; left: 10px; right: 10px; bottom: 10px; display: flex; justify-content: center; gap: .5rem; }
.eq-stats span { background: rgba(10, 11, 18, .8); border: 1px solid var(--line); border-radius: 999px; padding: .2em .7em; font-weight: 700; font-size: 12.5px; }
.inv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 6px; }
.inv-cell { position: relative; aspect-ratio: 1; border-radius: 12px; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center; overflow: hidden; transition: transform .15s, border-color .15s; }
.inv-cell:not(.empty):hover { transform: translateY(-2px); border-color: rgba(255, 215, 106, .4); }
.inv-cell .art { width: 100%; height: 100%; object-fit: cover; }
.inv-cell .qty, .inv-card .qty { position: absolute; right: 5px; top: 4px; background: rgba(0, 0, 0, .7); color: #fff; font-weight: 800; font-size: 11px; padding: 0 6px; border-radius: 999px; }
.card-art { position: relative; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #fff; flex-shrink: 0;
  background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .35), transparent 50%), linear-gradient(160deg, var(--c), #12131c 130%); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25), 0 6px 18px rgba(0, 0, 0, .5); }
.card-art i { position: absolute; bottom: 4px; left: 0; right: 0; text-align: center; font-style: normal; font-weight: 900; font-size: 11px; text-shadow: 0 1px 3px #000; }
.cards-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.inv-card { position: relative; align-items: center; text-align: center; }
.inv-card.none { opacity: .7; }
.inv-card .foot { width: 100%; justify-content: center; }
@media (max-width: 760px) { .inv-layout { grid-template-columns: 1fr; } .eq-panel { max-width: 320px; margin: 0 auto; width: 100%; } .fm-row { grid-template-columns: 1fr 60px 1fr; } }

/* Juodoji rinka */
.bm-layout { display: grid; grid-template-columns: 190px 1fr; gap: 1rem; align-items: start; }
.bm-cats { display: flex; flex-direction: column; gap: 3px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 16px; padding: 8px; }
.bm-cats a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; color: #c9cbe0; font-weight: 600; font-size: 13px; }
.bm-cats a:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.bm-cats a.active { background: linear-gradient(135deg, rgba(255, 61, 90, .25), rgba(193, 18, 79, .1)); color: #fff; }
.bm-row { cursor: pointer; }
.bm-row:hover td { background: rgba(255, 61, 90, .06); }
.bm-art { width: 60px; }
.bm-art .art { border-radius: 8px; display: block; }
.mat-ico { width: 40px; height: 32px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: rgba(62, 224, 143, .12); color: var(--cash); }
.mat-row { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin-bottom: .8rem; }
.mat { display: flex; align-items: center; gap: .4rem; background: rgba(0, 0, 0, .3); border: 1px solid var(--line); border-radius: 12px; padding: .35rem .7rem; }
.mat .ico { color: var(--cash); } .mat small { color: var(--muted); }
.mat.low { border-color: rgba(255, 77, 109, .6); } .mat.low .ico { color: var(--health); }
.s-dog { left: 10px; top: 250px; }
@media (max-width: 760px) { .bm-layout { grid-template-columns: 1fr; } .bm-cats { flex-direction: row; flex-wrap: wrap; } }

/* Įgūdžiai, misijos */
.perks { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .6rem; margin: .6rem 0; }
.perk { display: flex; align-items: center; gap: .8rem; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); border-radius: 14px; padding: .6rem .8rem; }
.perk.locked { opacity: .45; }
.perk .bar { margin-top: 4px; }
.perk-lv { width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: baseline; justify-content: center; padding-top: 10px; font-weight: 900; font-size: 18px; background: linear-gradient(135deg, rgba(124, 92, 255, .35), rgba(124, 92, 255, .1)); flex-shrink: 0; }
.perk-lv small { font-size: 10px; color: var(--muted); }
.missions { display: flex; flex-direction: column; gap: .5rem; }
.mission { display: flex; align-items: center; gap: 1rem; padding: .7rem .9rem; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid var(--line); }
.mission .bar { margin: 5px 0 2px; }
.mission.done { border-color: rgba(255, 215, 106, .5); box-shadow: 0 0 18px rgba(245, 165, 36, .15); }
.mission.claimed { opacity: .55; }
.mission-rw { min-width: 170px; }
.daytype { color: var(--gold1); font-weight: 700; cursor: help; }
@media (max-width: 560px) { .mission { flex-wrap: wrap; } .mission-rw { min-width: 0; } }

/* Žemėlapio valdymas */
.citymap > svg { cursor: grab; touch-action: none; user-select: none; }
.citymap > svg.dragging { cursor: grabbing; }
.map-zoom { position: absolute; left: 14px; bottom: 14px; display: flex; flex-direction: column; gap: 4px; }
.map-zoom button { width: 34px; height: 34px; padding: 0; border-radius: 10px; background: rgba(10, 11, 18, .75); backdrop-filter: blur(8px); box-shadow: inset 0 0 0 1px var(--line2); font-size: 16px; }
.map-zoom button:hover { background: linear-gradient(135deg, var(--primary1), var(--primary2)); }
.map-daynight { position: absolute; left: 56px; bottom: 14px; background: rgba(10, 11, 18, .75); backdrop-filter: blur(8px); border: 1px solid var(--line2); border-radius: 10px; padding: 6px 10px; font-size: 12px; font-weight: 700; }
.citymap:fullscreen { border-radius: 0; display: flex; align-items: center; justify-content: center; background: #05060a; }
.citymap:fullscreen > svg { width: 100%; height: 100%; max-height: 100vh; }
.night .lot .top { filter: brightness(.8); }

.map-popup.anchored { top: auto; animation: popIn .18s ease-out; }
@keyframes popIn { from { opacity: 0; } to { opacity: 1; } }
.citymap .npc .nametag { opacity: 0; transition: opacity .15s; }
.citymap .npc:hover .nametag, .citymap .npc.sel .nametag { opacity: 1; }
.citymap .npc .ring { transition: opacity .15s; }
.citymap .npc:hover .ring { opacity: .55; }
.citymap .npc:hover .bob { filter: drop-shadow(0 0 4px rgba(255, 215, 106, .9)); }
.citymap .walk { animation: sway 1.6s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom center; }
@keyframes sway { 50% { transform: rotate(2deg) translateY(-.6px); } }

/* Paprastesnis meniu */
.lmenu { gap: 2px; }
.nav-group { display: flex; flex-direction: column; }
.nav-head { background: transparent; box-shadow: none; color: var(--muted); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; justify-content: space-between; padding: 10px 10px 4px; border-radius: 8px; }
.nav-head:hover { color: #fff; transform: none; box-shadow: none; background: transparent; }
.nav-head .chev { transition: transform .2s; margin-left: auto; }
.nav-head .badge { margin-left: 6px; }
.nav-group:not(.open) .chev { transform: rotate(-90deg); }
.nav-group .nav-items { display: flex; flex-direction: column; gap: 2px; }
.nav-group:not(.open) .nav-items { display: none; }
.lmenu a { padding: 6px 10px; font-size: 13.5px; }
.lmenu a .mi { width: 30px; height: 30px; }
.lmenu a .badge { margin-left: auto; }
/* Ką daryti dabar */
.todo { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .7rem; margin-bottom: 1rem; }
.todo-item { display: flex; align-items: center; gap: .8rem; text-align: left; padding: .9rem 1rem; border-radius: 16px; color: var(--text); background: linear-gradient(135deg, rgba(255, 61, 90, .14), rgba(124, 92, 255, .08)); border: 1px solid var(--line2); box-shadow: none; font-weight: 400; white-space: normal; justify-content: flex-start; }
.todo-item:hover { color: #fff; border-color: rgba(255, 61, 90, .5); transform: translateY(-2px); box-shadow: 0 10px 24px rgba(0, 0, 0, .4); }
.todo-item b { display: block; font-size: 14.5px; color: #fff; }
.todo-item small { color: var(--muted); font-size: 12.5px; }
.todo-ic { width: 44px; height: 44px; border-radius: 14px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: #fff; background: linear-gradient(135deg, var(--primary1), var(--primary2)); box-shadow: 0 6px 16px rgba(255, 61, 90, .35); }
