:root {
  --accent: #ffd400; --bg: #0b0f14; --panel: rgba(14, 20, 28, .82); --line: rgba(255, 255, 255, .16);
  --text: #eef2f6; --muted: #9aa7b5; --good: #38e07a; --bad: #ff5a4d;
  --sl: env(safe-area-inset-left, 0px); --sr: env(safe-area-inset-right, 0px); --sb: env(safe-area-inset-bottom, 0px);
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; -webkit-user-select: none; user-select: none; }
html, body { margin: 0; height: 100%; overflow: hidden; background: #000; color: var(--text); font-family: "Segoe UI", Rubik, Arial, sans-serif; touch-action: none; overscroll-behavior: none; }
canvas#c { position: fixed; inset: 0; width: 100%; height: 100%; display: block; outline: none; }
.hidden { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }

/* ---------- HUD ---------- */
#hud { position: fixed; inset: 0; pointer-events: none; direction: ltr; }
#hud > * { pointer-events: none; }
#statPanel { position: absolute; top: 1.6vh; left: calc(1.6vh + var(--sl)); background: var(--panel); border-left: .5vh solid var(--accent); padding: .8vh 1.4vh; min-width: 17vh; font-size: 2.1vh; border-radius: 0 .8vh .8vh 0; }
#statPanel .row { display: flex; justify-content: space-between; gap: 2vh; line-height: 1.5; direction: rtl; }
#statPanel b { color: var(--muted); font-weight: 600; }
#statPanel span { font-weight: 800; font-variant-numeric: tabular-nums; }
#progress { position: absolute; top: 1.6vh; left: 50%; transform: translateX(-50%); width: 34vh; height: 2.4vh; background: rgba(0, 0, 0, .55); border: .2vh solid var(--line); border-radius: 1.2vh; overflow: hidden; }
#progFill { height: 100%; width: 0; background: linear-gradient(90deg, #c99a00, var(--accent)); transition: width .25s; }
#progAcc { position: absolute; top: 0; bottom: 0; width: .25vh; background: var(--good); opacity: 0; }
#progText { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.7vh; font-weight: 800; text-shadow: 0 0 .4vh #000; }
#combo { position: absolute; top: 5.6vh; left: 50%; transform: translateX(-50%); font-size: 3.2vh; font-weight: 900; color: var(--accent); text-shadow: 0 0 1vh #000; }
#btnPause { position: absolute; top: 1.4vh; right: calc(1.6vh + var(--sr)); width: 6vh; height: 6vh; border-radius: 50%; background: var(--panel); border: .2vh solid var(--line); font-size: 2vh; pointer-events: auto; }

#crosshair { position: absolute; left: 50%; top: 50%; width: 0; height: 0; --w: max(2px, .32vh); --l: max(9px, 1.8vh); --g: max(5px, 1vh); }
#crosshair i { position: absolute; background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .75); }
#crosshair .t, #crosshair .b { width: var(--w); height: var(--l); left: calc(var(--w) / -2); }
#crosshair .l, #crosshair .r { height: var(--w); width: var(--l); top: calc(var(--w) / -2); }
#crosshair .t { top: calc(-1 * (var(--g) + var(--l))); } #crosshair .b { top: var(--g); } #crosshair .l { left: calc(-1 * (var(--g) + var(--l))); } #crosshair .r { left: var(--g); }
#crosshair .dot { width: max(3px, .5vh); height: max(3px, .5vh); left: max(-1.5px, -.25vh); top: max(-1.5px, -.25vh); border-radius: 50%; background: var(--accent); }
#crosshair.ads { --g: max(2px, .35vh); --l: max(6px, 1.1vh); }
#crosshair.off { display: none; }
#hitmarker { position: absolute; left: 50%; top: 50%; width: 0; height: 0; opacity: 0; }
#hitmarker i { position: absolute; width: .25vh; height: 1.5vh; background: #fff; left: -.12vh; top: .9vh; transform-origin: .12vh -.9vh; }
#hitmarker i:nth-child(1) { transform: rotate(45deg); } #hitmarker i:nth-child(2) { transform: rotate(135deg); }
#hitmarker i:nth-child(3) { transform: rotate(225deg); } #hitmarker i:nth-child(4) { transform: rotate(315deg); }
#hitmarker.show { animation: hm .22s ease-out; } #hitmarker.kill i { background: var(--bad); width: .35vh; height: 2vh; }
@keyframes hm { 0% { opacity: 1; transform: scale(.7); } 100% { opacity: 0; transform: scale(1.25); } }
#reloadBar { position: absolute; left: 50%; top: calc(50% + 5vh); transform: translateX(-50%); width: 14vh; height: .8vh; background: rgba(0, 0, 0, .6); border-radius: .4vh; overflow: hidden; }
#reloadBar div { height: 100%; width: 0; background: var(--accent); }
#emptyMsg { position: absolute; left: 50%; top: calc(50% + 8vh); transform: translateX(-50%); color: var(--bad); font-weight: 900; font-size: 3vh; text-shadow: 0 0 1vh #000; animation: blink .7s infinite alternate; direction: rtl; white-space: nowrap; }
@keyframes blink { to { opacity: .25; } }
#toast { position: absolute; left: 50%; top: 14vh; transform: translateX(-50%); font-size: 3vh; font-weight: 800; padding: .6vh 2vh; border-radius: 1vh; background: rgba(0, 0, 0, .55); opacity: 0; transition: opacity .2s; direction: rtl; white-space: nowrap; }
#toast.show { opacity: 1; } #toast.warn { color: var(--bad); } #toast.up { color: var(--accent); background: rgba(40, 30, 0, .75); border: .2vh solid var(--accent); } #toast.go { color: var(--good); font-size: 5vh; }
#floats { position: absolute; inset: 0; overflow: hidden; }
.float { position: absolute; font-weight: 900; font-size: 3vh; color: #fff; text-shadow: 0 0 .6vh #000, 0 .2vh .4vh #000; transform: translate(-50%, -50%); animation: fl .9s ease-out forwards; }
.float.kill { color: var(--accent); font-size: 4vh; }
@keyframes fl { to { transform: translate(-50%, -260%); opacity: 0; } }

#weapons { z-index: 3; position: absolute; left: 50%; bottom: calc(1.4vh + var(--sb)); transform: translateX(-50%); display: flex; gap: 1vh; align-items: flex-end; }
.slot { position: relative; min-width: 15vh; padding: .8vh 1.6vh; background: var(--panel); border: .2vh solid var(--line); border-radius: .8vh; display: flex; flex-direction: column; align-items: center; opacity: .6; }
.slot.active { opacity: 1; border-color: var(--accent); background: rgba(40, 32, 0, .82); }
.slot .wn { font-size: 1.6vh; color: var(--muted); }
.slot .ammo b { font-size: 4.4vh; font-weight: 900; font-variant-numeric: tabular-nums; } .slot .ammo small { font-size: 2.2vh; color: var(--muted); }
.slot.low .ammo b { color: var(--bad); }
.slot .cap { font-size: 1.5vh; color: var(--accent); }
#upgradeHint { position: absolute; bottom: 100%; left: 0; right: 0; text-align: center; font-size: 1.6vh; color: var(--accent); margin-bottom: .6vh; text-shadow: 0 0 .5vh #000; direction: rtl; white-space: nowrap; }
body.touch .slot { pointer-events: auto; }

#scope { position: absolute; inset: 0; display: none; background: radial-gradient(circle at 50% 50%, transparent 0, transparent 42vh, #000 42.3vh); }
#scope.on { display: block; }
#scope svg { position: absolute; left: 50%; top: 50%; width: 84.6vh; height: 84.6vh; transform: translate(-50%, -50%); }
#scope::after { content: ""; position: absolute; left: 50%; top: 50%; width: 84.6vh; height: 84.6vh; transform: translate(-50%, -50%); border-radius: 50%; box-shadow: inset 0 0 0 .8vh #151515, inset 0 0 6vh rgba(0, 0, 0, .65); }

/* ---------- touch controls ---------- */
#touchUI { display: none; position: absolute; inset: 0; }
body.touch #touchUI { display: block; }
body.touch #touchUI > * { pointer-events: auto; }
#lookzone { position: absolute; inset: 0; touch-action: none; }
#joy { position: absolute; left: calc(18vh + var(--sl)); bottom: calc(16vh + var(--sb)); width: 22vh; height: 22vh; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .06), rgba(255, 255, 255, .14)); border: .25vh solid rgba(255, 255, 255, .3); touch-action: none; }
#joyKnob { position: absolute; left: 50%; top: 50%; width: 9vh; height: 9vh; margin: -4.5vh 0 0 -4.5vh; border-radius: 50%; background: rgba(255, 255, 255, .5); box-shadow: 0 0 1vh rgba(0, 0, 0, .5); }
.tbtn { position: absolute; border-radius: 50%; border: .25vh solid rgba(255, 255, 255, .45); background: rgba(10, 14, 20, .5); color: #fff; display: grid; place-items: center; padding: 0; touch-action: none; backdrop-filter: blur(2px); }
.tbtn svg { width: 55%; height: 55%; fill: currentColor; pointer-events: none; }
.tbtn.down { background: rgba(255, 212, 0, .55); transform: scale(.94); }
#bFire { width: 22vh; height: 22vh; right: calc(15vh + var(--sr)); bottom: calc(14vh + var(--sb)); } #bFire svg { transform: rotate(45deg); }
#bFireL { width: 14vh; height: 14vh; left: calc(5vh + var(--sl)); bottom: calc(42vh + var(--sb)); } #bFireL svg { transform: rotate(45deg); }
#bAds { width: 12vh; height: 12vh; right: calc(15vh + var(--sr)); bottom: calc(39vh + var(--sb)); }
#bJump { width: 12vh; height: 12vh; right: calc(1.5vh + var(--sr)); bottom: calc(24vh + var(--sb)); }
#bCrouch { width: 12vh; height: 12vh; right: calc(21vh + var(--sr)); bottom: calc(1vh + var(--sb)); }
#bReload { width: 11vh; height: 11vh; right: calc(35vh + var(--sr)); bottom: calc(7vh + var(--sb)); }
#bSwap { width: 11vh; height: 11vh; right: calc(39vh + var(--sr)); bottom: calc(26vh + var(--sb)); }

/* ---------- screens ---------- */
.screen { position: fixed; inset: 0; display: flex; flex-direction: column; padding: 3vh calc(4vh + var(--sr)) 3vh calc(4vh + var(--sl)); background: radial-gradient(120% 100% at 50% 0, #1b2735 0, #0b0f14 70%); overflow: hidden; touch-action: pan-y; }
.screen.overlay { background: rgba(5, 8, 12, .8); align-items: center; justify-content: center; backdrop-filter: blur(4px); }
.screen header { text-align: center; flex: none; }
.screen h1 { margin: 0; font-size: 5vh; letter-spacing: .3vh; font-weight: 900; direction: ltr; } .screen h1 em { color: var(--accent); font-style: normal; }
.screen header p { margin: .6vh 0 1.4vh; color: var(--muted); font-size: 2.2vh; }
.toolbar { display: flex; gap: 1.2vh; align-items: center; justify-content: center; margin-bottom: 1.4vh; flex: none; flex-wrap: wrap; }
#fCount { color: var(--accent); font-weight: 800; font-size: 2.2vh; }
.screen footer { flex: none; display: flex; gap: 2vh; justify-content: center; padding-top: 1.6vh; }
.btn { background: var(--panel); border: .2vh solid var(--line); padding: 1.4vh 3vh; font-size: 2.4vh; font-weight: 800; border-radius: 1vh; display: inline-block; text-align: center; transition: transform .1s, background .15s; }
.btn:active { transform: scale(.96); } .btn:hover { border-color: var(--accent); }
.btn.small { padding: .8vh 1.8vh; font-size: 2vh; } .btn.primary { background: var(--accent); color: #111; border-color: var(--accent); } .btn.danger { color: var(--bad); }
.btn:disabled { opacity: .4; pointer-events: none; }

#friendGrid { flex: 1; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(15vh, 1fr)); gap: 1.6vh; align-content: start; padding: .5vh; touch-action: pan-y; }
.friend { position: relative; background: var(--panel); border: .3vh solid var(--line); border-radius: 1.4vh; padding: 1vh; text-align: center; cursor: pointer; transition: transform .12s, border-color .12s; }
.friend img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 50%; display: block; border: .4vh solid #333; background: #222; }
.friend span.n { display: block; margin-top: .8vh; font-weight: 700; font-size: 2vh; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.friend .chk { position: absolute; top: .6vh; right: .6vh; width: 3.4vh; height: 3.4vh; border-radius: 50%; background: rgba(0, 0, 0, .6); border: .25vh solid var(--line); display: grid; place-items: center; font-size: 2vh; color: transparent; }
.friend .del { position: absolute; top: .6vh; left: .6vh; width: 3.2vh; height: 3.2vh; border-radius: 50%; background: rgba(0, 0, 0, .6); border: 0; color: var(--bad); font-size: 1.8vh; }
.friend.sel { border-color: var(--accent); background: rgba(60, 48, 0, .55); transform: scale(1.03); } .friend.sel img { border-color: var(--accent); }
.friend.sel .chk { background: var(--accent); color: #111; border-color: var(--accent); font-weight: 900; }

#levelGrid { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(24vh, 1fr)); gap: 2vh; align-content: center; overflow-y: auto; touch-action: pan-y; }
.lvl { position: relative; background: var(--panel); border: .3vh solid var(--line); border-radius: 1.6vh; padding: 2vh; cursor: pointer; display: flex; flex-direction: column; gap: .6vh; }
.lvl:hover { border-color: var(--accent); } .lvl .num { font-size: 6vh; font-weight: 900; color: var(--accent); line-height: 1; }
.lvl h3 { margin: 0; font-size: 2.6vh; } .lvl p { margin: 0; color: var(--muted); font-size: 1.9vh; min-height: 5.4vh; } .lvl .meta { font-size: 1.8vh; color: var(--muted); }
.lvl .stars { font-size: 3vh; letter-spacing: .4vh; color: #444; } .lvl .stars .on { color: var(--accent); }
.lvl.locked { opacity: .45; pointer-events: none; } .lvl.locked::after { content: "🔒"; position: absolute; top: 1.4vh; left: 1.6vh; font-size: 3vh; }
.lvl.current { border-color: var(--accent); box-shadow: 0 0 2vh rgba(255, 212, 0, .25); }

.card { background: #121a24; border: .25vh solid var(--line); border-radius: 2vh; padding: 3vh 4vh; width: min(92vw, 78vh); max-height: 94vh; overflow-y: auto; text-align: center; }
.card.narrow { width: min(92vw, 52vh); } .card h2 { margin: 0 0 .8vh; font-size: 4vh; } .card p { margin: 0 0 1.6vh; color: var(--muted); font-size: 2.2vh; }
#eStars { font-size: 6vh; letter-spacing: 1vh; color: #333; margin-bottom: 1.2vh; } #eStars .on { color: var(--accent); text-shadow: 0 0 2vh rgba(255, 212, 0, .5); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2vh; margin-bottom: 1.6vh; }
.stats div { background: rgba(255, 255, 255, .05); border-radius: 1vh; padding: 1vh; } .stats b { display: block; font-size: 3.4vh; } .stats small { color: var(--muted); font-size: 1.7vh; }
.record { color: var(--accent); font-weight: 900; font-size: 2.6vh; margin-bottom: 1.4vh; }
.btnrow { display: flex; gap: 1.4vh; justify-content: center; flex-wrap: wrap; } .btnrow.col { flex-direction: column; margin-top: 1.6vh; }
.field { display: flex; justify-content: space-between; align-items: center; gap: 2vh; padding: 1.2vh 0; font-size: 2.1vh; text-align: right; }
.field input[type=range] { width: 45%; accent-color: var(--accent); } .field input[type=checkbox] { width: 3vh; height: 3vh; accent-color: var(--accent); }

#rotate { display: none; position: fixed; inset: 0; z-index: 99; background: #0b0f14; place-items: center; text-align: center; font-size: 3.4vh; font-weight: 800; }
#rotate div { font-size: 4vh; line-height: 1.8; }
@media (orientation: portrait) and (pointer: coarse) { #rotate { display: grid; } }
#fatal { position: fixed; inset: 0; z-index: 100; background: #200; color: #fcc; padding: 4vh; font-size: 2.4vh; white-space: pre-wrap; direction: ltr; overflow: auto; user-select: text; }

/* ---------- photo upload / face cropper ---------- */
.btn.upload { background: var(--accent); color: #111; border-color: var(--accent); cursor: pointer; }
.friend .edit { position: absolute; top: 4.6vh; left: .6vh; width: 3.2vh; height: 3.2vh; border-radius: 50%; background: rgba(0, 0, 0, .6); border: 0; color: var(--accent); font-size: 1.7vh; }
.card.wide { width: min(96vw, 112vh); }
.cropWrap { display: flex; gap: 2.4vh; align-items: flex-start; justify-content: center; margin-bottom: 1.6vh; }
#cropStage { position: relative; flex: 1 1 auto; min-width: 0; line-height: 0; background: #000; border-radius: 1vh; overflow: hidden; touch-action: none; cursor: grab; display: grid; place-items: center; }
#cropCanvas { display: block; max-width: 100%; max-height: 50vh; width: auto; height: auto; margin: 0 auto; }
#cropBoxes, #cropRing { position: absolute; pointer-events: none; }
#cropBoxes { inset: 0; }
.fbox { position: absolute; border: .3vh solid rgba(255, 255, 255, .75); border-radius: .6vh; pointer-events: auto; cursor: pointer; color: #fff; font: 800 2vh/1 sans-serif; display: grid; place-items: center; text-shadow: 0 0 .5vh #000; }
.fbox.sel { border-color: var(--good); background: rgba(56, 224, 122, .15); }
#cropRing { border: .35vh solid var(--accent); border-radius: 50%; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
.cropSide { flex: none; width: 24vh; display: flex; flex-direction: column; gap: 1vh; align-items: stretch; }
#cropPrev { width: 20vh; height: 20vh; border-radius: 50%; border: .5vh solid var(--accent); align-self: center; background: #222; }
.cropSide small { color: var(--muted); font-size: 1.6vh; text-align: center; }
.cropSide input[type=text] { background: #0d141c; border: .2vh solid var(--line); color: var(--text); border-radius: 1vh; padding: 1vh 1.4vh; font-size: 2vh; text-align: center; -webkit-user-select: text; user-select: text; }
.cropSide .field { flex-direction: column; gap: .4vh; padding: 0; font-size: 1.7vh; } .cropSide .field input { width: 100%; }
#cMsg.warn { color: var(--bad); }
@media (max-width: 700px) { .cropWrap { flex-direction: column; align-items: center; } }

#padStatus { position: fixed; bottom: 1vh; left: 1vh; z-index: 5; font-size: 1.7vh; color: var(--muted); background: var(--panel); padding: .5vh 1.2vh; border-radius: 1vh; pointer-events: none; direction: rtl; }
#padStatus.ok { color: var(--good); } body.playing #padStatus { display: none; }

/* ---------- coins / grenades HUD ---------- */
#statPanel .row.coins span { color: var(--accent); }
.slot.nade { min-width: 11vh; opacity: 1; border-color: rgba(255, 140, 60, .5); } .slot.nade.delayed { border-color: rgba(60, 190, 255, .6); } .slot.nade.empty { opacity: .45; }
.slot.nade .ammo b { font-size: 3.6vh; } .slot.nade .wn { font-weight: 800; letter-spacing: .1vh; }
#bNade { width: 11vh; height: 11vh; left: calc(5vh + var(--sl)); bottom: calc(60vh + var(--sb)); }
#bNadeType { width: 8vh; height: 8vh; left: calc(17vh + var(--sl)); bottom: calc(62vh + var(--sb)); }
#bNade svg { width: 60%; height: 60%; }
#toast.item { color: #ffb066; border: .2vh solid rgba(255, 140, 60, .6); }

/* ---------- home / maps / shop ---------- */
.screen.home { background: radial-gradient(120% 90% at 50% 40%, rgba(0, 0, 0, 0) 20%, rgba(5, 8, 12, .55) 70%, rgba(5, 8, 12, .85) 100%), linear-gradient(180deg, rgba(5, 8, 12, .55), rgba(5, 8, 12, 0) 30%, rgba(5, 8, 12, 0) 55%, rgba(5, 8, 12, .8)); align-items: center; justify-content: center; }
.corner { position: absolute; top: calc(2.4vh); background: rgba(10, 14, 20, .55); border: .2vh solid var(--line); border-radius: 1vh; padding: 1.2vh 2.4vh; font-size: 2.2vh; font-weight: 800; letter-spacing: .15vh; backdrop-filter: blur(4px); transition: transform .15s, border-color .15s, background .15s; direction: ltr; }
.corner:hover { border-color: var(--accent); background: rgba(40, 32, 0, .6); transform: translateY(-.2vh); } .corner:active { transform: scale(.96); }
.corner.left { left: calc(3vh + var(--sl)); } .corner.right { right: calc(3vh + var(--sr)); }
#coinChip { position: absolute; top: 2.6vh; left: 50%; transform: translateX(-50%); font-size: 2.4vh; background: rgba(10, 14, 20, .55); border: .2vh solid rgba(255, 212, 0, .4); border-radius: 3vh; padding: .6vh 2vh; direction: ltr; } #coinChip b { color: var(--accent); }
.logo { margin: 0; text-align: center; font-size: 8vh; letter-spacing: .5vh; text-shadow: 0 .6vh 3vh #000; animation: rise .9s ease-out both; } .logo em { color: var(--accent); font-style: normal; } .logo small { display: block; font-size: 2.4vh; letter-spacing: 1.2vh; color: var(--muted); margin-top: .8vh; }
@keyframes rise { from { opacity: 0; transform: translateY(2vh); } }
.homeBottom { position: absolute; bottom: calc(5vh + var(--sb)); left: 50%; transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; gap: 1.6vh; direction: ltr; }
.btn.play { min-width: 34vh; font-size: 5vh; padding: 1.6vh 6vh; letter-spacing: .8vh; font-weight: 900; background: linear-gradient(180deg, #ffe34a, #ffc400); color: #111; border-color: #ffd400; box-shadow: 0 0 4vh rgba(255, 212, 0, .35), inset 0 -.5vh 0 rgba(0, 0, 0, .18); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 6vh rgba(255, 212, 0, .6), inset 0 -.5vh 0 rgba(0, 0, 0, .18); } }
.btn.shopbtn { min-width: 20vh; font-size: 2.8vh; letter-spacing: .6vh; background: rgba(10, 14, 20, .6); border-color: rgba(255, 212, 0, .6); color: var(--accent); }
#mapGrid { flex: 1; display: grid; grid-template-columns: repeat(auto-fit, minmax(40vh, 1fr)); gap: 3vh; align-content: center; padding: 1vh; overflow-y: auto; }
.mapcard { background: var(--panel); border: .3vh solid var(--line); border-radius: 1.6vh; overflow: hidden; cursor: pointer; transition: transform .15s, border-color .15s; display: flex; flex-direction: column; }
.mapcard:hover { border-color: var(--accent); transform: translateY(-.4vh); } .mapcard img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; background: #111; }
.mapcard .mi { padding: 1.6vh 2vh; direction: ltr; text-align: left; } .mapcard h3 { margin: 0 0 .4vh; font-size: 3vh; letter-spacing: .3vh; } .mapcard p { margin: 0; color: var(--muted); font-size: 1.9vh; direction: rtl; text-align: right; }
.mapcard.sel { border-color: var(--accent); box-shadow: 0 0 2vh rgba(255, 212, 0, .25); }
#shopBody { flex: 1; overflow-y: auto; touch-action: pan-y; padding: .5vh; } #shopBody h3 { margin: 1.4vh 0 1vh; color: var(--accent); font-size: 2.4vh; }
.shopgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(28vh, 1fr)); gap: 1.6vh; }
.item { background: var(--panel); border: .25vh solid var(--line); border-radius: 1.4vh; padding: 1.6vh; display: flex; flex-direction: column; gap: .7vh; }
.item h4 { margin: 0; font-size: 2.4vh; direction: ltr; text-align: left; } .item .sub { color: var(--muted); font-size: 1.8vh; } .item .cap { font-size: 2.6vh; font-weight: 800; direction: ltr; text-align: left; } .item .cap em { color: var(--accent); font-style: normal; }
.item .price { color: var(--accent); font-weight: 800; font-size: 2.4vh; } .item .btn { padding: 1vh 2vh; font-size: 2.2vh; } .item .own { color: var(--good); font-size: 1.8vh; }
.pips { display: flex; gap: .4vh; } .pips i { flex: 1; height: .8vh; border-radius: .4vh; background: #2a3440; } .pips i.on { background: var(--accent); }
.coinTxt b { color: var(--accent); }
