/* ---- Главный экран: чистая шапка (образец — конкурент) ---- */
.home-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 4px calc(var(--sar) + 12px) 0 calc(var(--sal) + 12px); flex: none; }
.hh-left { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.hh-player { display: flex; align-items: center; gap: 8px; background: rgba(0, 0, 0, .35); border: 1px solid rgba(150, 195, 255, .25); border-radius: 14px; padding: 4px 12px 4px 4px; color: var(--text); cursor: pointer; text-align: left; font-family: inherit; touch-action: manipulation; }
.hh-modes { display: flex; gap: 8px; }
.hm-mode { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 62px; padding: 5px 6px 3px; border-radius: 14px; background: rgba(10, 30, 66, .72); border: 1px solid rgba(150, 195, 255, .35); color: #dbe8ff; cursor: pointer; font-family: inherit; touch-action: manipulation; }
.hm-mode:active { transform: scale(.94); }
.hm-ico { font-size: 22px; line-height: 1.1; }
.hm-lbl { font-size: 9.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0; }
.tb:not(.active):not(.center) .tb-lbl { display: none; }
/* Друзья и вызовы */
.hm-mode { position: relative; }
.hm-badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #ff3b30; color: #fff; font-size: 11px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px rgba(0, 0, 0, .35); }
.fr-code { font-size: 30px; font-weight: 900; letter-spacing: 2px; margin: 4px 0 10px; color: #ffe08a; user-select: all; -webkit-user-select: all; }
.fr-row { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; color: var(--text); font-family: inherit; text-align: left; }
.card h3 + .fr-row { border-top: 0; }
.fr-t { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.fr-t b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fr-t small { font-size: 12px; opacity: .75; }
.fr-row .btn.small { flex: none; min-height: 38px; padding: 0 12px; }
.fr-res.win b { color: var(--accent); }
.fr-res.lose b { color: #ff7a6b; }
.fr-input { text-transform: uppercase; }
/* Приглашения и промокоды (referral.js) */
.ref-rules { background: rgba(255, 224, 138, .08); border: 1px solid rgba(255, 224, 138, .25); border-radius: 12px; padding: 8px 12px; }
.ref-rules p { margin: 3px 0; font-size: 14px; }
.ref-code { text-align: center; margin: 2px 0 8px; }
.ref-prog { margin-top: 12px; }
.ref-prog-t { font-size: 13px; margin-bottom: 6px; }
.ref-bar { position: relative; height: 22px; border-radius: 11px; background: rgba(255, 255, 255, .08); border: 1px solid var(--line); overflow: hidden; }
.ref-bar i { position: absolute; left: 0; top: 0; bottom: 0; background: linear-gradient(90deg, #4a90e2, #b36bff); border-radius: 11px; transition: width .4s; }
.ref-bar span { position: relative; display: block; text-align: center; font-size: 12px; font-weight: 800; line-height: 22px; }
.modal .fr-input { width: 100%; box-sizing: border-box; }
.promo-err { min-height: 18px; margin-top: 6px; font-size: 13px; color: #ff7a6b; }

/* Раскладка под руку: правша — кнопки прицела слева */
body.hud-left .hud-zoom { right: auto; left: calc(env(safe-area-inset-left, 0px) + 8px); }
body.hud-left .hud-xray, body.hud-left .hud-leadbtn { right: auto; left: calc(env(safe-area-inset-left, 0px) + 74px); }
body.hud-left .hud-wind { right: auto; left: calc(env(safe-area-inset-left, 0px) + 10px); }
