﻿:root {
  --bg: #0b1220;
  --bg-2: #0b1220;
  --surface: #13233d;
  --surface-2: #13233d;
  --text: #e6f1ff;
  --muted: #8da4c2;
  --primary: #4da3ff;
  --primary-2: #74dbff;
  --danger: #ff4655;
  --success: #43d9c2;
  --warning: #ffce44;
  --win: #16e5b4;
  --draw: #ffce44;
  --loss: #ff4655;
  --chat: #3b6ee6;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.24);
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --match-overlay-a: rgba(11, 18, 32, 0.9);
  --match-overlay-b: rgba(11, 18, 32, 0.3);
}

:root[data-theme="DARK"] {
  --bg: #000000;
  --bg-2: #000000;
  --surface: #121212;
  --surface-2: #121212;
  --text: #ffffff;
  --muted: #b0b0b0;
  --primary: #ff4655;
  --primary-2: #ffffff;
  --danger: #ff4655;
  --success: #16e5b4;
  --warning: #ffce44;
  --chat: #1f1f1f;
  --border: rgba(255, 255, 255, 0.1);
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.6);
  --match-overlay-a: rgba(0, 0, 0, 0.9);
  --match-overlay-b: rgba(0, 0, 0, 0.3);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  width: 100%;
  min-height: 100%;
  font-family: "Roboto", "Segoe UI", "SF Pro Text", system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
}

body {
  padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom);
}

html.modal-open,
body.modal-open {
  overflow: hidden;
  overscroll-behavior: none;
}

#app {
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}

.app-shell {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  height: 64px;
  padding: 0 16px;
  background: var(--surface);
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
}

.topbar-side {
  display: flex;
  align-items: center;
  height: 64px;
}

.topbar-side.right {
  justify-content: flex-end;
}

.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 0;
}

.topbar-logo {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
}

.topbar-logo.missing {
  display: none;
}

.topbar-appname {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text);
  white-space: nowrap;
}

.topbar-appname.settings {
  font-size: 20px;
  letter-spacing: 0.2px;
}

main.app-main {
  flex: 1;
  padding: 12px 12px calc(80px + 18px + env(safe-area-inset-bottom));
}

.bottom-nav {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(860px, 100vw);
  height: calc(80px + env(safe-area-inset-bottom));
  padding: 0 6px env(safe-area-inset-bottom);
  border-top: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: var(--surface);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.28);
}

.nav-btn {
  position: relative;
  border: 0;
  background: transparent;
  color: var(--muted);
  border-radius: 16px;
  padding: 0 4px 10px;
  height: 80px;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.nav-btn.active {
  color: var(--primary);
}

.nav-indicator {
  position: absolute;
  top: 10px;
  width: 64px;
  height: 32px;
  border-radius: 16px;
  background: var(--bg);
  opacity: 0;
  transition: opacity 120ms ease;
}

.nav-btn.active .nav-indicator {
  opacity: 1;
}

.nav-icon,
.nav-label {
  position: relative;
  z-index: 1;
}

.material-icons.nav-icon {
  font-size: 24px;
  line-height: 24px;
}

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px;
}

.grid {
  display: grid;
  gap: 12px;
}

.grid.two {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 92%, transparent);
  padding: 5px 10px;
  font-size: 12px;
  color: var(--muted);
}

.badge.success {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 40%, var(--border));
}

.badge.danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 40%, var(--border));
}

.btn {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--text);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.btn.primary {
  background: linear-gradient(180deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 70%, black) 100%);
  color: #fff;
  border-color: color-mix(in srgb, var(--primary) 30%, transparent);
}

.btn.ghost {
  background: transparent;
}

.btn.danger {
  background: color-mix(in srgb, var(--danger) 20%, transparent);
  border-color: color-mix(in srgb, var(--danger) 35%, var(--border));
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn.logout-btn {
  width: 100%;
  height: 52px;
  margin-top: 0;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  color: var(--primary);
  font-weight: 800;
  letter-spacing: 0.6px;
}

.logout-footer {
  padding: 8px 16px calc(114px + env(safe-area-inset-bottom));
}

.input,
.select,
.textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  color: var(--text);
  padding: 10px 12px;
  font-size: 14px;
}

.textarea {
  min-height: 92px;
  resize: vertical;
}

.label {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 6px;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.space {
  flex: 1;
}

.title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.list-item {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.list-item img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.08);
}

.auth-screen {
  min-height: 100dvh;
  padding: 24px;
}

.auth-inner {
  width: min(460px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.auth-inner.login {
  min-height: calc(100dvh - 48px);
  justify-content: center;
}

.auth-inner.register {
  min-height: 100dvh;
  padding-top: max(12px, env(safe-area-inset-top));
}

.auth-top-row {
  width: 100%;
  display: flex;
  justify-content: flex-start;
}

.auth-head {
  width: 100%;
  text-align: center;
}

.auth-brand {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
}

.auth-sub {
  margin-top: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--muted);
  margin-bottom: 48px;
}

.auth-h1 {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text);
  margin-top: 18px;
}

.auth-h2 {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--primary);
  margin-bottom: 32px;
}

.auth-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auth-fields {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.outlined-field {
  position: relative;
  height: 56px;
  width: 100%;
  border-radius: 8px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  transition: border-color 120ms ease;
}

.outlined-field.filled {
  background: var(--surface);
  border: 1px solid var(--surface);
}

.outlined-field.line {
  background: transparent;
  border: 1px solid color-mix(in srgb, var(--muted) 50%, transparent);
}

.outlined-field:focus-within {
  border-color: var(--primary);
}

.field-icon {
  color: var(--muted);
  margin-right: 10px;
  font-size: 22px;
}

.outlined-field:focus-within .field-icon {
  color: var(--primary);
}

.field-input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
  font-size: 16px;
  padding: 16px 0 4px;
  margin: 0;
  line-height: 1.2;
}

.field-label {
  position: absolute;
  left: 44px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 14px;
  padding: 0 4px;
  pointer-events: none;
  transition: transform 120ms ease, top 120ms ease, color 120ms ease;
}

.outlined-field.filled .field-label {
  background: var(--surface);
}

.outlined-field.line .field-label {
  background: var(--bg);
}

.field-input:focus + .field-label,
.field-input:not(:placeholder-shown) + .field-label,
.outlined-field.has-value .field-label {
  top: 7px;
  transform: translateY(0) scale(0.85);
  color: var(--primary);
}

.field-trailing {
  border: 0;
  background: transparent;
  color: var(--muted);
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.field-trailing:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.auth-message {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
  padding: 0 4px;
}

.auth-message.error {
  color: var(--primary);
}

.auth-message.success {
  color: var(--success);
}

.auth-spacer {
  height: 32px;
}

.auth-btn {
  width: 100%;
  height: 56px;
  border: 0;
  border-radius: 8px;
  background: var(--primary);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.8px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.auth-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  font-weight: 400;
  cursor: pointer;
  padding: 10px 0 0;
}

.auth-terms {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
}

.auth-checkbox {
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.auth-terms-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.auth-terms-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.auth-link-inline {
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.auth-terms-sep {
  color: var(--muted);
  font-weight: 700;
}

.spinner {
  width: 24px;
  height: 24px;
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 999px;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.notice {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
}

.notice.error {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 36%, var(--border));
}

.notice.success {
  color: var(--success);
  border-color: color-mix(in srgb, var(--success) 36%, var(--border));
}

.loading {
  padding: 14px;
  text-align: center;
  color: var(--muted);
}

.theme-chip {
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  color: var(--muted);
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 700;
}

.empty {
  text-align: center;
  color: var(--muted);
  padding: 14px;
  border: 1px dashed var(--border);
  border-radius: 12px;
}

hr.sep {
  border: 0;
  border-top: 1px solid var(--border);
  margin: 10px 0;
}

@media (max-width: 420px) {
  .bottom-nav {
    padding: 0 2px env(safe-area-inset-bottom);
  }

  .nav-btn {
    font-size: 10px;
    padding: 0 2px 10px;
  }

  .nav-indicator {
    width: 58px;
  }

  .topbar-appname {
    font-size: 20px;
  }

  .topbar-appname.settings {
    font-size: 18px;
  }
}

.panel {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 14px;
}

.gap-12 {
  gap: 12px;
}

.wrap {
  flex-wrap: wrap;
}

.subtabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.subtab {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
  border-radius: 12px;
  padding: 10px 10px;
  font-weight: 800;
  font-size: 12px;
  cursor: pointer;
}

.subtab.active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  background: color-mix(in srgb, var(--primary) 18%, transparent);
}

.settings-screen .settings-title {
  font-size: 12px;
  letter-spacing: 1px;
  font-weight: 900;
  color: var(--primary);
}

.radio-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  color: var(--text);
  border-radius: 12px;
  padding: 12px;
  font-weight: 800;
  cursor: pointer;
}

.radio-row .radio-dot {
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 2px solid var(--muted);
  background: transparent;
  box-shadow: inset 0 0 0 2px transparent;
}

.radio-row.active {
  border-color: color-mix(in srgb, var(--primary) 45%, var(--border));
  background: color-mix(in srgb, var(--primary) 16%, transparent);
}

.radio-row.active .radio-dot {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--surface) 85%, transparent);
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 0;
}

.checkbox-row input[type="checkbox"] {
  margin-top: 2px;
  width: 18px;
  height: 18px;
  accent-color: var(--primary);
}

.checkbox-text {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.link-btn {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 900;
  cursor: pointer;
  padding: 0 2px;
}


.overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  display: grid;
  place-items: center;
  padding: 18px 12px;
  z-index: 60;
  overscroll-behavior: contain;
}

.modal {
  width: min(860px, 100%);
  max-height: min(88vh, 900px);
  overflow: hidden;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.modal-full {
  max-height: min(92vh, 1000px);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-weight: 900;
  letter-spacing: 0.2px;
}

.modal-body {
  padding: 12px;
  overflow: auto;
  overscroll-behavior: contain;
}

.modal-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 10px;
}

.icon-btn {
  margin-left: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  border-radius: 999px;
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.icon-btn:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}

.icon-btn:active {
  background: color-mix(in srgb, var(--text) 14%, transparent);
}

.modal-header .icon-btn {
  margin-left: auto;
}

.db-modal-header .modal-title {
  flex: 1 1 auto;
  min-width: 0;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.legal-text {
  white-space: pre-wrap;
  color: var(--text);
  font-size: 13px;
  line-height: 1.45;
}


.lfg-card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.lfg-username {
  font-weight: 900;
  font-size: 15px;
}

.rank-badge {
  color: #ffce44;
}

.lfg-meta {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.lfg-roles {
  color: var(--primary);
  font-weight: 900;
  font-size: 12px;
}

.lfg-range {
  font-size: 12px;
  font-weight: 900;
}

.lfg-range.ok {
  color: var(--success);
}

.lfg-range.bad {
  color: var(--danger);
}

.lfg-text {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  border-radius: 10px;
  padding: 10px;
  color: var(--muted);
  font-style: italic;
  line-height: 1.35;
}

.chat-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
}

.chat-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  flex: 1;
}

.chat-name {
  font-weight: 900;
}

.chat-last {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-last.unread {
  color: var(--text);
}

.chat-unread {
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  background: var(--danger);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 900;
  padding: 0 6px;
}

.friend-row {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.friend-name {
  font-weight: 900;
}

.friend-status {
  font-size: 12px;
  color: var(--muted);
}

.friend-status.online {
  color: var(--success);
}

.friend-status.offline {
  color: var(--muted);
}

.request-card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.check-item {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 10px 12px;
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  color: var(--muted);
  cursor: pointer;
}

.check-item.active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 40%, var(--border));
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.check-item input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
}


.chat-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
}

.chat-title {
  font-weight: 900;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-body {
  padding: 12px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.msg {
  display: flex;
}

.msg.me {
  justify-content: flex-end;
}

.bubble {
  max-width: 78%;
  border-radius: 14px;
  padding: 10px 10px 8px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  overflow: hidden;
}

.msg.me .bubble {
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
}

.msg-user {
  font-size: 11px;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 4px;
}

.msg-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.msg-time {
  text-align: right;
  color: var(--muted);
  font-size: 11px;
  margin-top: 6px;
}

.reply {
  border-left: 2px solid var(--primary);
  padding-left: 8px;
  margin-bottom: 6px;
}

.reply-user {
  font-size: 11px;
  font-weight: 900;
  color: var(--primary);
}

.reply-text {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-footer {
  padding: 12px;
  border-top: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
}

.reply-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px 10px;
  margin-bottom: 10px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
}

.chat-form {
  display: flex;
  gap: 10px;
}

.chat-form .input {
  flex: 1;
}

.social-chat-panel {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: clamp(420px, 72dvh, 780px);
}

.social-chat-panel .chat-body {
  flex: 1;
  min-height: 0;
}

@media (max-width: 520px) {
  .subtabs {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 420px) {
  .match-row-content {
    grid-template-columns: 42px minmax(0, 1fr) minmax(62px, auto) minmax(72px, auto);
    column-gap: 8px;
    padding: 0 10px;
  }

  .match-agent {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
  }

  .match-score {
    font-size: 18px;
  }
}



.subtabs.two {
  grid-template-columns: repeat(2, 1fr);
}

.chip-row {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 2px;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.chip-row::-webkit-scrollbar {
  display: none;
}



.chip {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--muted);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
}

.chip.active {
  color: var(--text);
  border-color: color-mix(in srgb, var(--primary) 55%, var(--border));
  background: color-mix(in srgb, var(--primary) 16%, var(--surface));
}

.rank-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  overflow: hidden;
}

.rank-panel::before {
  content: "";
  position: absolute;
  inset: -40% -20%;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--rank-a) 55%, transparent) 0%, transparent 65%),
    radial-gradient(closest-side, color-mix(in srgb, var(--rank-b) 45%, transparent) 0%, transparent 70%);
  opacity: 0.35;
  pointer-events: none;
}

.rank-panel-left,
.rank-panel-right {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
}

.rank-panel-right {
  text-align: right;
  justify-content: flex-end;
  flex-direction: column;
  align-items: flex-end;
  gap: 2px;
}

.avatar {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: rgba(255, 255, 255, 0.06);
}

.rank-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
  opacity: 0.95;
}

.rank-name {
  font-weight: 950;
  font-size: 16px;
  line-height: 1.1;
}

.rank-tag {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.rank-tier {
  font-weight: 950;
}

.rank-rr,
.rank-peak {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
}

.wallet-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.wallet-item {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border-radius: 14px;
  padding: 12px;
  display: grid;
  place-items: center;
  gap: 4px;
}

.wallet-item img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.wallet-value {
  font-weight: 950;
  font-size: 18px;
}

.wallet-label {
  color: var(--muted);
  font-weight: 900;
  font-size: 11px;
}

.mission-item {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border-radius: 14px;
  padding: 12px;
}

.mission-title {
  font-weight: 950;
  font-size: 14px;
}

.mission-xp {
  color: var(--warning);
  font-weight: 950;
  font-size: 12px;
}

.progress {
  height: 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  overflow: hidden;
  margin-top: 8px;
}

.progress span {
  display: block;
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--primary-2) 100%);
}

.mission-meta {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  margin-top: 6px;
}

.match-row {
  width: 100%;
  height: 80px;
  border: 0;
  background: transparent;
  border-radius: 10px;
  padding: 0;
  color: var(--text);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  text-align: left;
  appearance: none;
  -webkit-appearance: none;
}

.match-row::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: var(--map-url);
  background-size: cover;
  background-position: center;
  opacity: 0.5;
  filter: saturate(0.9) contrast(1.05);
  pointer-events: none;
}

.match-row::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, var(--match-overlay-a) 0%, var(--match-overlay-b) 100%);
  pointer-events: none;
}

.match-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: var(--accent, var(--loss));
  z-index: 2;
}

.match-row-content {
  position: relative;
  z-index: 3;
  height: 100%;
  padding: 0 12px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) minmax(74px, auto) minmax(84px, auto);
  align-items: center;
  column-gap: 10px;
}

.match-agent {
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
}

.match-agent.placeholder {
  border-radius: 999px;
  background: color-mix(in srgb, var(--text) 10%, transparent);
}

.match-row-left {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.match-map {
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-mode {
  color: var(--muted);
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.match-row-center {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 74px;
  text-align: right;
}

.match-score {
  font-weight: 900;
  font-size: clamp(16px, 4.2vw, 24px);
  color: var(--accent, var(--text));
  line-height: 0.95;
  white-space: nowrap;
}

.match-rr {
  color: var(--accent, var(--text));
  font-weight: 700;
  font-size: 10px;
  margin-top: 2px;
}

.match-row-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  min-width: 84px;
  text-align: right;
}

.match-kda {
  font-size: 12px;
  font-weight: 600;
}

.match-hs {
  color: var(--draw);
  font-weight: 700;
  font-size: 10px;
  margin-top: 2px;
}

.kd-chart {
  width: 100%;
  height: 220px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 78%, transparent);
}

.kd-line {
  fill: none;
  stroke: var(--primary);
  stroke-width: 3;
}

.kd-point {
  fill: var(--primary-2);
  stroke: color-mix(in srgb, var(--primary) 70%, #fff);
  stroke-width: 1.5;
}

.kd-text {
  fill: color-mix(in srgb, var(--muted) 85%, var(--text));
  font-weight: 900;
  font-size: 10px;
  text-anchor: middle;
}



.weapon-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.weapon-grid .weapon-card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border-radius: 16px;
  padding: 12px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  overflow: hidden;
}

.weapon-grid .weapon-card img {
  width: 100%;
  height: 84px;
  object-fit: contain;
  margin-top: 4px;
  opacity: 0.95;
}

.weapon-title {
  font-size: 11px;
  font-weight: 950;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.weapon-skin {
  font-size: 13px;
  font-weight: 950;
}

.set-card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.set-main {
  min-width: 0;
  flex: 1 1 auto;
}

.set-name {
  font-weight: 950;
  line-height: 1.15;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.identity-card-preview {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border-radius: 16px;
  height: 160px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.identity-card-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.identity-wheel {
  position: relative;
  width: min(340px, 100%);
  aspect-ratio: 1;
  margin: 8px auto 0;
}

.identity-wheel::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--border) 75%, transparent);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.identity-wheel::after {
  content: "";
  position: absolute;
  inset: 34%;
  border-radius: 999px;
  border: 2px solid color-mix(in srgb, var(--border) 75%, transparent);
}

.spray-slot {
  position: absolute;
  width: 78px;
  height: 78px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--muted);
  font-weight: 950;
}

.spray-slot img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.identity-wheel .spray-slot:nth-child(1) {
  left: 50%;
  top: 0;
  transform: translateX(-50%);
}

.identity-wheel .spray-slot:nth-child(2) {
  right: 0;
  top: 50%;
  transform: translateY(-50%);
}

.identity-wheel .spray-slot:nth-child(3) {
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
}

.identity-wheel .spray-slot:nth-child(4) {
  left: 0;
  top: 50%;
  transform: translateY(-50%);
}

.overlay.sheet {
  place-items: end center;
  padding: 0 12px 12px;
}

.sheet-modal {
  border-radius: 18px 18px 16px 16px;
}

.weapon-modal-hero {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  border-radius: 16px;
  padding: 12px;
  display: grid;
  place-items: center;
}

.weapon-modal-hero img {
  width: 100%;
  height: 190px;
  object-fit: contain;
}

.buddy-row {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  padding: 10px 12px;
  cursor: pointer;
  color: var(--text);
}

.buddy-row:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.buddy-icon {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.buddy-empty {
  display: flex;
  align-items: center;
  gap: 12px;
}

.buddy-plus {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px dashed color-mix(in srgb, var(--border) 85%, transparent);
  display: grid;
  place-items: center;
  font-size: 20px;
  color: var(--muted);
}

.buddy-label {
  color: var(--muted);
  font-weight: 950;
  font-size: 10px;
}

.buddy-name {
  font-weight: 950;
}

.chroma-row {
  display: flex;
  gap: 10px;
  overflow: auto;
  padding: 2px 0;
}

.chroma-swatch {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  padding: 6px;
  cursor: pointer;
}

.chroma-swatch img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.chroma-swatch.active {
  border-color: color-mix(in srgb, var(--primary) 70%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

.level-dots {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.level-dot {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  color: var(--text);
  font-weight: 950;
  cursor: pointer;
}

.level-dot.active {
  background: color-mix(in srgb, var(--primary) 20%, var(--surface));
  border-color: color-mix(in srgb, var(--primary) 70%, var(--border));
}

.skin-strip {
  display: flex;
  gap: 8px;
  overflow: auto;
  padding-bottom: 2px;
}

.skin-pill {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  border-radius: 14px;
  padding: 8px 10px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 220px;
  text-align: left;
}

.skin-pill img {
  width: 54px;
  height: 30px;
  object-fit: contain;
}

.skin-pill.active {
  border-color: color-mix(in srgb, var(--primary) 70%, var(--border));
  background: color-mix(in srgb, var(--primary) 14%, var(--surface));
}

.buddy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 10px;
}

.buddy-card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border-radius: 14px;
  padding: 8px;
  display: grid;
  place-items: center;
  gap: 6px;
  cursor: pointer;
}

.buddy-card img {
  width: 52px;
  height: 52px;
  object-fit: contain;
}

.buddy-count {
  font-weight: 950;
  font-size: 11px;
}

.buddy-card.ok .buddy-count {
  color: var(--success);
}

.buddy-card.bad .buddy-count {
  color: var(--danger);
}

.buddy-card.active {
  border-color: color-mix(in srgb, var(--primary) 75%, var(--border));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 22%, transparent);
}

.set-weapon-row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 10px !important;
  background: rgba(255, 255, 255, 0.03) !important;
  border: 1px solid rgba(255, 255, 255, 0.05) !important;
  border-radius: 12px !important;
  padding: 8px 12px !important;
  margin-bottom: 8px !important;
  height: 72px !important;
  width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}

.set-weapon-row img {
  width: 60px !important;
  height: 30px !important;
  min-width: 60px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  margin: 0 !important;
}

.set-weapon-main {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  overflow: hidden !important;
}

.set-weapon-name {
  font-size: 12px !important;
  font-weight: 900 !important;
  color: white !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.set-weapon-row .subtitle {
  font-size: 10px !important;
  color: #8da4c2 !important;
  margin: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

.set-weapon-row button.btn.ghost {
  all: unset !important;
  box-sizing: border-box !important;
  flex-shrink: 0 !important;
  height: 34px !important;
  padding: 0 10px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 8px !important;
  color: white !important;
  font-size: 10px !important;
  font-weight: 900 !important;
  text-align: center !important;
  cursor: pointer !important;
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.identity-item {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border-radius: 16px;
  padding: 10px;
  display: grid;
  place-items: center;
  gap: 8px;
  cursor: pointer;
  color: var(--text);
}

.identity-item img {
  width: 88px;
  height: 88px;
  object-fit: contain;
}

.identity-name {
  font-size: 11px;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.title-pick {
  width: 100%;
  text-align: left;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border-radius: 12px;
  padding: 12px 14px;
  color: var(--text);
  font-weight: 950;
  cursor: pointer;
}



.bundle-hero {
  border: 1px solid var(--border);
  border-radius: 18px;
  overflow: hidden;
  background: #000;
  min-height: 170px;
  background-image: var(--bundle-bg);
  background-size: cover;
  background-position: center;
  position: relative;
}

.bundle-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(closest-side, rgba(0, 0, 0, 0.1) 0%, rgba(0, 0, 0, 0.85) 70%);
}

.bundle-overlay {
  position: relative;
  z-index: 1;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bundle-name {
  font-weight: 950;
  font-size: 16px;
}

.bundle-meta {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.store-grid.accessories-grid {
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.store-item {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border-radius: 18px;
  padding: 12px;
  color: var(--text);
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
  overflow: hidden;
}

.store-item:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.store-item-top {
  position: relative;
  border-radius: 14px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: color-mix(in srgb, var(--surface-2) 70%, transparent);
  padding: 10px;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.store-item-top img {
  width: 100%;
  height: 92px;
  object-fit: contain;
  position: relative;
  z-index: 1;
}

.owned-badge,
.discount-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 950;
  font-size: 11px;
  border: 1px solid color-mix(in srgb, var(--border) 60%, transparent);
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(8px);
  z-index: 2;
}

.store-item.rarity-card {
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--rarity-a) 58%, var(--surface) 42%) 0%,
    color-mix(in srgb, var(--rarity-b) 58%, var(--surface-2) 42%) 100%
  );
  border-color: color-mix(in srgb, var(--rarity-a) 55%, var(--border));
}

.store-item.rarity-card .store-item-top {
  background: linear-gradient(
    145deg,
    color-mix(in srgb, var(--rarity-a) 72%, rgba(0, 0, 0, 0.12)) 0%,
    color-mix(in srgb, var(--rarity-b) 72%, rgba(0, 0, 0, 0.12)) 100%
  );
  border-color: color-mix(in srgb, var(--rarity-a) 42%, rgba(255, 255, 255, 0.12));
}

.store-item.rarity-card .store-item-top::before {
  content: "";
  position: absolute;
  top: -28px;
  left: -28px;
  width: 140px;
  height: 140px;
  background-image: var(--rarity-icon);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.12;
  transform: rotate(-18deg);
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.05) contrast(1.05);
}

.store-item.rarity-card .store-item-top::after {
  content: "";
  position: absolute;
  top: 10px;
  left: 10px;
  width: 20px;
  height: 20px;
  background-image: var(--rarity-icon);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.92;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.owned-badge {
  color: var(--success);
}

.discount-badge {
  color: var(--warning);
}

.store-item-name {
  font-weight: 950;
  font-size: 13px;
  line-height: 1.2;
}

.store-item-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  color: var(--primary-2);
  font-weight: 950;
  font-size: 13px;
}

.store-item-price img,
.store-old-price img {
  width: 14px;
  height: 14px;
  object-fit: contain;
  flex: 0 0 14px;
}

.store-old-price {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
}

.night-card-back {
  border: 1px dashed color-mix(in srgb, var(--border) 85%, transparent);
  background: color-mix(in srgb, var(--surface) 72%, transparent);
  border-radius: 18px;
  padding: 16px;
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  gap: 6px;
}

.night-card-back span {
  font-size: 42px;
  font-weight: 950;
  color: var(--muted);
}



.db-grid {
  display: grid;
  gap: 12px;
}

.agents-grid,
.weapons-grid,
.skins-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.maps-grid {
  grid-template-columns: 1fr;
}

.skinhub-grid {
  grid-template-columns: repeat(2, 1fr);
}

.db-card {
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border-radius: 18px;
  padding: 12px;
  color: var(--text);
  cursor: pointer;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.db-card.skin-card.rarity-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    color-mix(in srgb, var(--rarity-a) 58%, var(--surface) 42%) 0%,
    color-mix(in srgb, var(--rarity-b) 58%, var(--surface-2) 42%) 100%
  );
  border-color: color-mix(in srgb, var(--rarity-a) 55%, var(--border));
}

.db-card.skin-card.rarity-card::before {
  content: "";
  position: absolute;
  top: -40px;
  left: -40px;
  width: 190px;
  height: 190px;
  background-image: var(--rarity-icon);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.1;
  transform: rotate(-18deg);
  pointer-events: none;
  z-index: 0;
  filter: saturate(1.05) contrast(1.05);
}

.db-card.skin-card.rarity-card::after {
  content: "";
  position: absolute;
  top: 12px;
  left: 12px;
  width: 20px;
  height: 20px;
  background-image: var(--rarity-icon);
  background-repeat: no-repeat;
  background-size: contain;
  opacity: 0.92;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 6px 14px rgba(0, 0, 0, 0.45));
}

.db-card.skin-card.rarity-card > * {
  position: relative;
  z-index: 1;
}

.db-card.skin-card.rarity-card img {
  filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.35));
}

.db-card img {
  width: 100%;
  height: 120px;
  object-fit: contain;
}

.db-card.map-card img {
  height: 140px;
  object-fit: cover;
  border-radius: 14px;
}

.db-name {
  font-weight: 950;
  font-size: 13px;
}

.db-meta {
  color: var(--primary-2);
  font-weight: 950;
  font-size: 12px;
}

.db-details {
  max-width: 860px;
  margin: 0 auto;
}

.db-hero {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 74%, transparent);
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 10px;
}

.db-hero img {
  width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.weapon-hero img {
  max-height: 220px;
}

.skin-hero img {
  max-height: 260px;
}

.db-text {
  color: color-mix(in srgb, var(--muted) 72%, var(--text));
  font-size: 13px;
  line-height: 1.55;
}

.db-section-title {
  margin-top: 8px;
  font-weight: 950;
  color: var(--muted);
  font-size: 12px;
  letter-spacing: 0.6px;
}

.stats-grid {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  padding: 12px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 10px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.stat-k {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
}

.stat-v {
  font-weight: 950;
  font-size: 12px;
}

.damage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.damage-card {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  padding: 12px;
}

.damage-range {
  font-weight: 950;
  color: var(--muted);
  margin-bottom: 8px;
}

.damage-row {
  display: flex;
  justify-content: space-between;
  font-weight: 900;
  margin-top: 6px;
}

.video-box {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(0, 0, 0, 0.35);
  overflow: hidden;
}

.skin-video {
  width: 100%;
  height: 260px;
  background: #000;
}

.level-row {
  width: 100%;
  border: 1px solid var(--border);
  background: color-mix(in srgb, var(--surface) 76%, transparent);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--text);
  cursor: pointer;
  display: flex;
  gap: 10px;
  align-items: center;
}

.level-row.disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.level-row.active {
  border-color: color-mix(in srgb, var(--primary) 70%, var(--border));
  background: color-mix(in srgb, var(--primary) 12%, var(--surface));
}

.level-title {
  font-weight: 950;
  font-size: 13px;
}

.ability-item img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}



.match-modal {
  padding: 0;
}

.match-hero {
  height: 220px;
  position: relative;
  background-image: var(--bg);
  background-size: cover;
  background-position: center;
  display: grid;
  place-items: end center;
  padding: 16px;
}

.match-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 0.72) 70%, rgba(0, 0, 0, 0.9) 100%);
}

.match-back {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
  background: rgba(0, 0, 0, 0.35);
  color: var(--text);
  font-weight: 950;
  cursor: pointer;
  z-index: 1;
}

.match-hero-center {
  position: relative;
  z-index: 1;
  text-align: center;
}

.match-title {
  font-weight: 950;
  font-size: 16px;
}

.match-hero .match-score {
  font-weight: 950;
  font-size: 48px;
  line-height: 1.05;
}

.match-hero .match-rr {
  font-weight: 950;
  font-size: 14px;
  margin-top: 4px;
}

.match-duration {
  color: var(--muted);
  font-weight: 900;
  font-size: 12px;
  margin-top: 6px;
}

.match-body {
  padding-top: 16px;
}

.match-vs {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 12px 0;
}

.match-vs span {
  height: 1px;
  background: color-mix(in srgb, var(--border) 70%, transparent);
}

.match-vs b {
  color: color-mix(in srgb, var(--muted) 70%, var(--text));
  letter-spacing: 1px;
}

.team-title {
  font-weight: 950;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
}

.team-head {
  display: grid;
  grid-template-columns: 44px 1fr 70px 44px 44px;
  gap: 10px;
  color: var(--muted);
  font-weight: 900;
  font-size: 10px;
  margin-bottom: 8px;
}

.player-row {
  display: grid;
  grid-template-columns: 44px 1fr 70px 44px 44px;
  gap: 10px;
  align-items: center;
  padding: 8px 8px;
  border-radius: 12px;
}

.player-row.me {
  background: color-mix(in srgb, var(--primary) 10%, transparent);
}

.agent-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}

.player-name {
  font-weight: 950;
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-tag {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.rank-mini {
  width: 14px;
  height: 14px;
  object-fit: contain;
}

.mvp {
  font-weight: 950;
  font-size: 10px;
}

.mvp.match {
  color: var(--warning);
}

.mvp.team {
  color: color-mix(in srgb, var(--primary-2) 80%, var(--text));
}

.player-stat {
  text-align: right;
  font-weight: 900;
  font-size: 12px;
}

.match-sharebar {
  justify-content: space-between;
}

@media (max-width: 520px) {
  .team-head,
  .player-row {
    grid-template-columns: 38px 1fr 64px 42px 42px;
  }
  .agent-icon {
    width: 38px;
    height: 38px;
  }
  .match-hero .match-score {
    font-size: 40px;
  }
}



:root {
  --app-max: 100%;
  --bg: #050608;
  --bg-2: #050608;
  --surface: #101318;
  --surface-2: #151923;
  --text: #f3f5f8;
  --muted: #8f95a1;
  --primary: #ff4655;
  --primary-2: #ff6f7c;
  --danger: #ff4655;
  --success: #16e5b4;
  --warning: #ffce44;
  --border: rgba(255, 255, 255, 0.11);
  --nav-bg: #3a171d;
  --panel: #0e1117;
  --field: #090c12;
  --topbar-bg: #090b10;
  --subtab-text: #b8bec8;
  --chip-bg: #141922;
  --chip-text: #b6bcc6;
  --chip-border: #364254;
  --role-chip-bg: #171c24;
  --role-chip-border: #313949;
  --tile-bg: #1a202c;
  --tile-bg-soft: #0f1218;
  --tile-border: rgba(255, 255, 255, 0.16);
  --match-overlay-a: rgba(0, 0, 0, 0.82);
  --match-overlay-b: rgba(0, 0, 0, 0.28);
}

:root[data-theme="BLUE"] {
  --bg: #070f1d;
  --bg-2: #070f1d;
  --surface: #10213a;
  --surface-2: #132b4d;
  --text: #f3f5f8;
  --muted: #9cb4d8;
  --primary: #4da3ff;
  --primary-2: #74dbff;
  --danger: #ff5b6a;
  --success: #16e5b4;
  --warning: #ffce44;
  --border: rgba(120, 162, 224, 0.28);
  --nav-bg: #0f1f38;
  --panel: #0f1a2d;
  --field: #0b1526;
  --topbar-bg: #091426;
  --subtab-text: #c3d5f0;
  --chip-bg: #1b3150;
  --chip-text: #d3e1f6;
  --chip-border: #3d6290;
  --role-chip-bg: #213a5e;
  --role-chip-border: #4a74aa;
  --tile-bg: #1d3557;
  --tile-bg-soft: #152841;
  --tile-border: rgba(120, 162, 224, 0.36);
}

:root[data-theme="DARK"] {
  --bg: #050608;
  --bg-2: #050608;
  --surface: #101318;
  --surface-2: #151923;
  --text: #f3f5f8;
  --muted: #8f95a1;
  --primary: #ff4655;
  --primary-2: #ff6f7c;
  --danger: #ff4655;
  --success: #16e5b4;
  --warning: #ffce44;
  --border: rgba(255, 255, 255, 0.11);
  --nav-bg: #3a171d;
  --panel: #0e1117;
  --field: #090c12;
  --topbar-bg: #090b10;
  --subtab-text: #c0c6cf;
  --chip-bg: #141921;
  --chip-text: #c2c8d1;
  --chip-border: #3a4350;
  --role-chip-bg: #1a2029;
  --role-chip-border: #3a4350;
  --tile-bg: #1a202c;
  --tile-bg-soft: #0f131a;
  --tile-border: rgba(255, 255, 255, 0.16);
}

html,
body,
.app-shell {
  background: var(--bg);
}

#app {
  width: 100%;
  max-width: none;
}

.topbar {
  height: 86px;
  padding: 0 14px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  grid-template-columns: 52px 1fr 52px;
}

.topbar-side {
  height: 86px;
}

.topbar-logo {
  width: 28px;
  height: 28px;
}

.topbar-appname {
  font-size: 26px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: 0.3px;
}

.topbar-appname.settings {
  font-size: 24px;
}

.topbar .material-icons {
  font-size: 34px;
  line-height: 1;
}

.icon-btn {
  width: 46px;
  height: 46px;
}

main.app-main {
  padding: 12px 16px calc(118px + env(safe-area-inset-bottom));
}

.app-shell.tab-store main.app-main,
.app-shell.tab-inventory main.app-main,
.app-shell.tab-social main.app-main,
.app-shell.tab-database main.app-main {
  padding-top: 0;
}

.app-shell.tab-store main.app-main {
  padding-bottom: calc(220px + env(safe-area-inset-bottom));
}

.main-tab-title {
  margin: 10px 0 4px;
  text-align: center;
  font-size: 30px;
  font-weight: 800;
  color: #ffffff;
}

.bottom-nav {
  left: 0;
  transform: none;
  width: 100%;
  max-width: none;
  background: var(--nav-bg);
  border-top: 0;
  height: calc(102px + env(safe-area-inset-bottom));
  padding: 2px 6px calc(12px + env(safe-area-inset-bottom));
  box-shadow: none;
  z-index: 18;
}

.nav-btn {
  height: 88px;
  border-radius: 22px;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #c1c5ce;
  justify-content: flex-start;
  padding: 6px 4px 8px;
}

.nav-btn.active {
  color: var(--primary);
}

.nav-indicator {
  top: 7px;
  width: 76px;
  height: 36px;
  border-radius: 22px;
  background: #000;
  pointer-events: none;
}

.material-icons.nav-icon {
  font-size: 28px;
  margin-top: 2px;
}

.nav-label {
  font-size: 12px;
  font-weight: 700;
  line-height: 1.05;
  margin-top: 8px;
}

.subtabs {
  margin: 0 -16px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: stretch;
  gap: 0;
}

.store-screen > .subtabs,
.inventory-screen > .subtabs,
.social-screen > .subtabs,
.database-screen > .subtabs {
  position: sticky;
  top: 86px;
  z-index: 17;
  background: var(--topbar-bg);
}

.subtab {
  flex: 1 1 0;
  min-width: 0;
  border: 0;
  border-bottom: 4px solid transparent;
  border-radius: 0;
  background: transparent;
  color: var(--subtab-text);
  font-size: 14px;
  font-weight: 800;
  height: 66px;
  padding: 0 4px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1.08;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.subtab.active {
  border-bottom-color: var(--primary);
  color: #fff;
  background: transparent;
}

.social-screen .subtab.active {
  color: var(--primary);
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: none;
  padding: 14px;
}

.settings-screen {
  gap: 14px;
}

.settings-card {
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.08);
  padding: 16px;
}

.settings-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-card-head .material-icons {
  font-size: 18px;
  color: var(--primary);
}

.settings-screen .settings-title {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #f1f4f9;
}

.settings-hint {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.settings-theme-list {
  display: flex;
  flex-direction: column;
  margin-top: 2px;
}

.settings-theme-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-size: 14px;
  padding: 0;
  cursor: pointer;
  text-align: left;
}

.settings-theme-row.active {
  color: #fff;
}

.settings-radio {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #6b7380;
  position: relative;
}

.settings-radio::after {
  content: "";
  position: absolute;
  inset: 3px;
  border-radius: 999px;
  background: transparent;
}

.settings-theme-row.active .settings-radio {
  border-color: var(--primary);
}

.settings-theme-row.active .settings-radio::after {
  background: var(--primary);
}

.settings-about {
  color: #f1f4f9;
  font-size: 14px;
  line-height: 1.45;
}

.settings-links {
  display: flex;
  flex-direction: column;
}

.settings-link-row {
  border: 0;
  background: transparent;
  color: #f1f4f9;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 0;
  font-size: 14px;
  cursor: pointer;
  text-align: left;
}

.settings-link-row .material-icons {
  color: var(--muted);
  font-size: 18px;
}

.settings-legal-btn {
  width: 100%;
  height: 48px;
  border: 0;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-transform: none;
}

.settings-version {
  color: #fff;
  font-size: 15px;
  font-weight: 800;
}

.settings-version-note {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.input {
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
  background: var(--field);
  color: var(--text);
  height: 56px;
  padding: 0 14px;
  font-size: 14px;
}

.btn {
  height: 52px;
  border-radius: 14px;
  border: 1px solid #3b4351;
  background: #2b313d;
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0 14px;
}

.btn.primary {
  border: 0;
  background: var(--primary);
  color: #fff;
}

.btn.ghost {
  border: 1px solid #3b4351;
  background: #232932;
  color: #ffffff;
}

.btn.danger {
  border: 1px solid color-mix(in srgb, var(--primary) 65%, transparent);
  background: transparent;
  color: var(--primary);
}

.notice {
  background: #151a22;
}

.profile-screen .rank-panel {
  min-height: 154px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--rank-a) 62%, #151515 38%) 0%,
    color-mix(in srgb, var(--rank-b) 40%, #090a0d 60%) 100%
  );
  padding: 18px 16px;
}

.profile-screen .rank-panel::before {
  display: none;
}

.avatar {
  width: 86px;
  height: 86px;
  border-radius: 999px;
  border: 3px solid var(--primary);
  background: rgba(0, 0, 0, 0.2);
}

.rank-icon {
  width: 74px;
  height: 74px;
}

.rank-name {
  font-size: 16px;
}

.rank-tag {
  font-size: 13px;
}

.rank-tier {
  text-transform: uppercase;
  font-size: 12px;
}

.rank-rr,
.rank-peak {
  color: #d9dde5;
  font-size: 11px;
}

.wallet-grid {
  gap: 10px;
}

.wallet-item {
  border: 0;
  border-radius: 16px;
  background: var(--tile-bg-soft);
  min-height: 98px;
}

.wallet-value {
  font-size: 16px;
}

.wallet-label {
  font-size: 10px;
}

.profile-screen .mission-item {
  border: 1px solid var(--border);
  border-radius: 18px;
  background: var(--tile-bg-soft);
  padding: 14px;
}

.profile-riot-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.riot-unlink-btn {
  width: 100%;
  height: 52px;
  border: 0;
  border-radius: 10px;
  background: var(--surface);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0.3px;
  text-transform: uppercase;
}

.riot-unlink-btn:disabled {
  opacity: 0.5;
  color: #9399a4;
}

.profile-riot-expired {
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-align: center;
  text-transform: uppercase;
}

.profile-logout-actions {
  padding-top: 4px;
  padding-bottom: 8px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-logout-btn {
  width: 100%;
}

.profile-riot-btn-bottom {
  width: 100%;
}

.mission-title {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-xp {
  color: var(--success);
  font-size: 15px;
}

.progress {
  position: relative;
  height: 12px;
  border: 0;
  border-radius: 10px;
  background: #05070b;
  margin-top: 10px;
}

.progress::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  transform: translateY(-50%);
  background: var(--success);
}

.progress span {
  background: linear-gradient(90deg, #0fc8a5 0%, #16e5b4 100%);
}

.mission-meta {
  text-align: right;
  font-size: 11px;
}

.chip-row {
  gap: 10px;
}

.chip {
  border: 1px solid var(--chip-border);
  border-radius: 12px;
  background: var(--chip-bg);
  color: var(--chip-text);
  padding: 11px 14px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.chip.active {
  background: var(--primary);
  color: #fff;
  border-color: transparent;
}

.chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.role-row .chip {
  min-width: 116px;
  color: var(--chip-text);
  border: 1px solid var(--role-chip-border);
  background: var(--role-chip-bg);
}

.role-row .chip.active {
  border-color: transparent;
  background: var(--primary);
  color: #fff;
}

.match-row {
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.match-map {
  font-size: 15px;
}

.match-kda {
  color: #f6f7fb;
}

.profile-screen .kd-chart {
  display: block;
}

.inventory-screen > .panel,
.database-screen > .panel {
  border: 0;
  background: transparent;
  padding: 0;
}

.inventory-screen .weapon-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.weapon-grid .weapon-card {
  background: var(--tile-bg-soft);
  border: 1px solid color-mix(in srgb, var(--tile-border) 72%, transparent);
  border-radius: 16px;
  padding: 12px 10px;
  text-align: center;
  min-height: 164px;
}

.weapon-grid .weapon-card img {
  height: 82px;
  margin-top: 8px;
}

.weapon-title {
  color: #9aa0aa;
  font-size: 11px;
  text-align: center;
}

.weapon-skin {
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.sets-screen .sets-title {
  margin: 2px 0 4px;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.set-card {
  background: var(--tile-bg);
  border: 1px solid color-mix(in srgb, var(--tile-border) 80%, transparent);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}



.set-name {
  font-size: 16px;
  line-height: 1.15;
  overflow: hidden;
  overflow-wrap: anywhere;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.set-main {
  min-width: 0;
  flex: 1 1 220px;
}

.set-icon-btn {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #cfd3dc;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.set-icon-btn .material-icons {
  font-size: 24px;
}

.set-icon-btn.danger {
  color: var(--primary);
}

.set-apply-btn {
  height: 46px;
  border: 0;
  border-radius: 24px;
  padding: 0 18px;
  flex: 0 0 auto;
  background: #25dfbc;
  color: #062018;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
}

.set-create-btn {
  width: 100%;
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.identity-card-preview {
  height: 170px;
  border-radius: 20px;
  border: 0;
  position: relative;
}

.identity-card-preview::after {
  content: "ИЗМЕНИТЬ КАРТОЧКУ";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 24px;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.7);
}

.identity-wheel {
  width: min(350px, 100%);
  background: conic-gradient(
      from -45deg,
      transparent 0deg 89deg,
      rgba(255, 255, 255, 0.12) 89deg 91deg,
      transparent 91deg 179deg,
      rgba(255, 255, 255, 0.12) 179deg 181deg,
      transparent 181deg 269deg,
      rgba(255, 255, 255, 0.12) 269deg 271deg,
      transparent 271deg 359deg,
      rgba(255, 255, 255, 0.12) 359deg 360deg
    );
  border-radius: 999px;
}

.identity-wheel::before {
  border-color: rgba(255, 255, 255, 0.14);
}

.identity-wheel::after {
  border-color: rgba(255, 255, 255, 0.14);
}

.spray-slot {
  border: 0;
  background: transparent;
}

.store-screen .bundle-hero {
  margin: 0 -16px;
  width: calc(100% + 32px);
  border: 0;
  border-radius: 0;
  min-height: 270px;
}

.bundle-hero::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.08) 35%, rgba(0, 0, 0, 0.8) 100%);
}

.bundle-overlay {
  min-height: 270px;
  justify-content: flex-end;
  padding: 14px 16px 12px;
}

.bundle-name {
  font-size: 18px;
  line-height: 1.15;
}

.bundle-meta {
  color: #fff;
  font-size: 14px;
}

.bundle-price-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary);
  font-size: 16px;
  font-weight: 900;
}

.bundle-price-row img {
  width: 20px;
  height: 20px;
}

.bundle-dots {
  margin-top: 8px;
  display: flex;
  justify-content: center;
  gap: 8px;
}

.bundle-dot {
  width: 38px;
  height: 6px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
}

.bundle-dot.active {
  background: var(--primary);
}

.store-screen .label {
  text-transform: uppercase;
  font-size: 14px;
  font-weight: 900;
  color: #cfd4de;
}

.store-daily-head {
  align-items: center;
}

.store-daily-timer {
  color: var(--primary);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.store-timer {
  color: var(--primary);
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-size: 12px;
  font-weight: 900;
  margin-top: 8px;
}

.store-timer.violet {
  color: #a285ff;
}

.store-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.store-grid.accessories-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.store-item {
  border-radius: 14px;
  border: 1px solid var(--tile-border);
  padding: 10px;
  background: var(--tile-bg);
}

.store-grid.accessories-grid .store-item,
.store-item.accessory {
  background: var(--tile-bg-soft);
  border-color: color-mix(in srgb, var(--tile-border) 82%, transparent);
}

.store-item-top {
  border: 0;
  border-radius: 10px;
  min-height: 132px;
  background: transparent;
}

.store-item-top img {
  height: 102px;
}

.store-item-name {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

.store-item-price {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #f0f2f6;
  font-size: 14px;
  font-weight: 900;
}

.discount-badge {
  left: 8px;
  right: auto;
  color: #fff;
  background: var(--primary);
  border: 0;
}

.store-item.rarity-card .store-item-top::after {
  left: auto;
  right: 10px;
  top: 10px;
}

.store-share-card {
  position: fixed;
  left: 0;
  transform: none;
  width: 100%;
  max-width: none;
  bottom: calc(102px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  background: var(--nav-bg);
  margin: 0;
  padding: 12px 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  z-index: 17;
}

.store-share-title {
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.4px;
}

.store-share-sub {
  color: #c4c9d1;
  font-size: 13px;
}

.store-share-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.store-buy-vp-btn {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 26px;
  background: rgba(17, 24, 32, 0.92);
  color: #ece8e1;
  min-width: 132px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 900;
  letter-spacing: 0.2px;
  cursor: pointer;
}

.store-share-btn {
  border: 0;
  border-radius: 26px;
  background: #181b27;
  color: #fff;
  min-width: 160px;
  height: 52px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}

.social-screen .panel {
  background: #0d1117;
}

.social-screen .title {
  text-transform: uppercase;
}

.lfg-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.lfg-actions .btn {
  width: 100%;
  height: 56px;
  border-radius: 22px;
  font-size: 20px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.2px;
}

.lfg-edit-btn {
  border: 2px solid #3a3d46;
  background: #2b2e36;
  color: #f3f5f8;
}

.lfg-toggle-btn {
  border: 0;
}

.lfg-toggle-btn.primary {
  background: var(--primary);
  color: #fff;
}

.lfg-toggle-btn.danger {
  background: var(--primary);
  border: 0;
  color: #fff;
}

.lfg-card {
  border-radius: 16px;
  border: 1px solid var(--border);
  background: #0f1218;
}

.rank-badge {
  background: #4f4940;
  border: 0;
  border-radius: 8px;
  padding: 3px 8px;
  color: #ffce44;
  font-size: 11px;
}

.lfg-roles {
  color: var(--primary);
  font-size: 16px;
}

.lfg-range.bad {
  color: var(--primary);
}

.lfg-text {
  background: #080b11;
  border: 0;
  color: #f2f4f8;
  font-style: italic;
}

.chat-item {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 12px 0;
  position: relative;
}

.chat-item::before {
  content: "";
  width: 64px;
  height: 64px;
  border-radius: 999px;
  background: #c8c8c8;
  flex: 0 0 64px;
}

.friend-row {
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 10px 0;
  min-height: 72px;
}

.friend-name {
  font-size: 18px;
}

.friend-status {
  font-size: 14px;
}

.friend-status.offline {
  color: #9da3ad;
}

.friend-action {
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.friend-action.chat {
  color: #f0f2f6;
}

.friend-action.remove {
  color: var(--primary);
}

.friend-action .material-icons {
  font-size: 30px;
}

.database-screen .db-grid {
  gap: 12px;
}

.database-screen .agents-grid,
.database-screen .skins-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.database-screen .maps-grid,
.database-screen .weapons-grid {
  grid-template-columns: 1fr;
}

.db-card {
  border: 0;
  border-radius: 16px;
  background: #0f1218;
  padding: 0;
  overflow: hidden;
}

.db-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}

.weapon-card img,
.skin-card img {
  height: 122px;
  object-fit: contain;
  padding: 8px 12px 0;
}

.map-card img {
  height: 110px;
}

.db-name {
  padding: 0 10px 14px;
  font-size: 14px;
  text-transform: uppercase;
}

.db-meta {
  padding: 0 10px 14px;
  margin-top: -8px;
  color: var(--primary);
  font-size: 14px;
}

.share-sheet-modal {
  width: min(520px, 100%);
}

.msg {
  min-width: 0;
}

.msg .bubble {
  min-width: 0;
  max-width: min(78%, 440px);
  overflow-wrap: anywhere;
  word-break: break-word;
}

.share-sheet-body {
  display: grid;
  gap: 10px;
}

.share-sheet-body .btn {
  width: 100%;
  justify-content: center;
  min-height: 52px;
}

@media (max-width: 390px) {
  .topbar-appname {
    font-size: 24px;
  }
  .subtab {
    font-size: 13px;
  }
  .bundle-name {
    font-size: 16px;
  }
  .store-buy-vp-btn {
    min-width: 118px;
    font-size: 13px;
  }
  .store-share-btn {
    min-width: 132px;
  }

  .set-card {
    padding: 14px;
  }

  .set-actions {
    width: 100%;
    justify-content: end;
  }
}

.set-actions {
  margin-left: auto !important;
  flex: 0 0 auto !important;
  display: flex !important;
  flex-wrap: wrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px !important;
}

.pro-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--success) 45%, var(--border));
  background: color-mix(in srgb, var(--success) 20%, transparent);
  color: var(--success);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.5px;
  vertical-align: middle;
}

.pro-diamond {
  display: inline-block;
  margin-left: 6px;
  font-size: 16px;
  line-height: 1;
  vertical-align: middle;
}

.pro-until {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.settings-btn-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.settings-logout-btn {
  background: #2a313d;
}

.settings-accent-btn {
  background: linear-gradient(180deg, var(--primary) 0%, color-mix(in srgb, var(--primary) 70%, black) 100%);
  color: #fff;
}

.settings-danger-soft {
  border: 1px solid color-mix(in srgb, var(--danger) 50%, var(--border));
  background: color-mix(in srgb, var(--danger) 14%, transparent);
  color: var(--danger);
}

.settings-riot-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 80%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, var(--surface) 75%, transparent);
  padding: 10px 12px;
}

.settings-riot-row.active {
  border-color: color-mix(in srgb, var(--success) 42%, var(--border));
}

.settings-riot-main {
  min-width: 0;
  flex: 1;
}

.settings-riot-id {
  font-weight: 800;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.settings-riot-status {
  margin-top: 3px;
  color: var(--success);
  font-size: 11px;
  font-weight: 800;
}

.settings-riot-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.settings-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 85%, transparent);
  background: color-mix(in srgb, var(--surface) 85%, transparent);
  color: var(--text);
}

.settings-icon-btn .material-icons {
  font-size: 19px;
}

.settings-icon-btn.danger {
  color: var(--danger);
  border-color: color-mix(in srgb, var(--danger) 45%, var(--border));
}

.settings-riot-ok {
  color: var(--success);
  font-size: 22px;
}

.settings-pro-card {
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
}

.settings-pro-card.active {
  border-color: color-mix(in srgb, var(--success) 35%, var(--border));
}

.settings-pro-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.settings-pro-outline {
  border: 1px solid color-mix(in srgb, var(--primary) 55%, var(--border));
  background: color-mix(in srgb, var(--primary) 18%, transparent);
  color: var(--text);
}

.settings-tg-code {
  border: 1px dashed color-mix(in srgb, var(--primary) 55%, var(--border));
  background: color-mix(in srgb, var(--primary) 10%, transparent);
  border-radius: 12px;
  padding: 12px;
  text-align: center;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: 1.5px;
}

.settings-hint.tg-ok {
  color: var(--success);
}

.settings-payment-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-plan {
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: color-mix(in srgb, var(--surface) 78%, transparent);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.settings-plan.active {
  border-color: color-mix(in srgb, var(--primary) 60%, var(--border));
  background: color-mix(in srgb, var(--primary) 14%, transparent);
}

.settings-plan-month {
  font-size: 12px;
  color: var(--muted);
  font-weight: 700;
}

.settings-plan-old {
  font-size: 12px;
  color: color-mix(in srgb, var(--muted) 85%, transparent);
  text-decoration: line-through;
  min-height: 16px;
}

.settings-plan-price {
  font-size: 18px;
  font-weight: 900;
}

.emoji-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  max-height: min(54vh, 380px);
  overflow: auto;
  padding-right: 2px;
}

.emoji-grid.premium {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.emoji-btn {
  height: 44px;
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--border) 88%, transparent);
  background: color-mix(in srgb, var(--surface) 80%, transparent);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.emoji-btn.premium img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.chat-emoji-open {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  border: 1px solid color-mix(in srgb, var(--border) 92%, transparent);
  background: var(--field);
  color: var(--muted);
  flex: 0 0 auto;
}

.chat-emoji-open .material-icons {
  font-size: 22px;
}

.chat-form {
  align-items: center;
}

.msg-text .chat-premium-emoji {
  width: 22px;
  height: 22px;
  object-fit: contain;
  vertical-align: text-bottom;
}

@media (max-width: 520px) {
  .settings-payment-grid {
    grid-template-columns: 1fr;
  }

  .emoji-grid {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .emoji-grid.premium {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}



.map-analytics-grid {
  display: flex !important;
  flex-direction: row !important;
  gap: 12px !important;
  width: 100% !important;
  margin-top: 8px !important;
}


.mapstat-card {
  flex: 1 !important;
  position: relative !important;
  height: 115px !important;
  border-radius: 10px !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  background-color: #0b1220 !important; 
  overflow: hidden !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}


.mapstat-bg-img {
  position: absolute !important;
  inset: 0 !important;
  background-size: cover !important;
  background-position: center !important;
  opacity: 0.4 !important;
  z-index: 1 !important;
}


.mapstat-overlay {
  position: absolute !important;
  inset: 0 !important;
  background: linear-gradient(180deg, rgba(11, 18, 32, 0.7) 0%, rgba(11, 18, 32, 0.4) 100%) !important;
  z-index: 2 !important;
}


.mapstat-content {
  position: relative !important;
  z-index: 3 !important;
  height: 100% !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  padding: 10px 12px !important;
}

.mapstat-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
}

.mapstat-title-row {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
}

.mapstat-main-icon {
  font-size: 14px !important;
  color: var(--mapstat-accent) !important;
}

.mapstat-label {
  font-size: 9px !important;
  font-weight: 900 !important;
  color: var(--mapstat-accent) !important;
}

.mapstat-wins {
  font-size: 9px !important;
  color: rgba(255, 255, 255, 0.7) !important;
}

.mapstat-map-name {
  font-size: 15px !important;
  font-weight: 950 !important;
  color: #ffffff !important;
  margin: 4px 0 !important;
}

.mapstat-footer {
  display: flex !important;
  justify-content: space-between !important;
  align-items: flex-end !important;
}

.mapstat-kda-main {
  font-size: 12px !important;
  font-weight: 800 !important;
  color: #fff !important;
}

.mapstat-kda-sub {
  font-size: 9px !important;
  color: #8da4c2 !important; 
}


.mapstat-agent-circle {
  width: 26px !important;
  height: 26px !important;
  min-width: 26px !important;
  border-radius: 50% !important;
  background-color: rgba(0, 0, 0, 0.5) !important;
  object-fit: cover !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

.store-stats-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 20px;
}

.store-stat-card {
  display: flex;
  align-items: center;
  background: var(--nav-bg);
  border: 1px solid rgba(255,255,255,0.05);
  border-radius: 12px;
  padding: 10px 15px;
  gap: 12px;
  cursor: pointer;
  transition: transform 0.1s;
}

.store-stat-card:active {
  transform: scale(0.98);
}

.stat-rank-num {
  font-size: 18px;
  font-weight: 900;
  color: rgba(255,255,255,0.15);
  font-family: 'DINNextW1G-Bold', sans-serif;
  min-width: 35px;
}

.stat-img-box {
  width: 90px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.stat-img-box img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.stat-info {
  flex: 1;
}

.stat-name {
  font-size: 12px;
  font-weight: 800;
  color: #ece8e1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}

.stat-count {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,0.4);
  margin-top: 2px;
}

.stat-count span {
  color: #16e5b4; 
  font-weight: 900;
  font-size: 13px;
}

.stat-arrow .material-icons {
  color: rgba(255,255,255,0.1);
}


.store-stats-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 16px 24px 16px;
  width: 100%;
  box-sizing: border-box;
}


.store-stats-grid .store-item {
  width: 100% !important;
  margin: 0 !important;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
}


.store-stats-grid .rarity-card::before {
  content: "";
  position: absolute;
  top: 50% !important;
  left: 50% !important;
  transform: translate(-50%, -50%) !important; 
  width: 150px !important;
  height: 150px !important;
  background-image: var(--rarity-icon);
  background-size: contain !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  opacity: 0.12 !important;
  z-index: 1;
}


.stat-text-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  z-index: 3;
  width: 100%;
}

.stat-name-line {
  color: white;
  font-weight: 900;
  font-size: 11px;
  line-height: 14px;
  text-align: left;
  text-transform: uppercase;
  max-width: 90%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stat-count-line {
  color: #16e5b4;
  font-weight: 900;
  font-size: 15px;
  margin-top: 4px;
}


.bp-tabrow {
  display: flex;
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border-radius: 12px;
  padding: 4px;
  margin: 8px 0 16px 0;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.bp-tab {
  flex: 1;
  background: transparent;
  border: none;
  color: #8f95a1;
  font-size: 12px;
  font-weight: 900;
  padding: 12px 0;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  text-transform: uppercase;
  outline: none;
  -webkit-tap-highlight-color: transparent;
}


.bp-tab.active {
  background: #1c212e;
  color: #ffffff;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}


.bp-progress-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 12px;
}

.bp-icon-container {
  width: 70px;
  height: 70px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-icon-container img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bp-max-badge {
  width: 100%;
  height: 100%;
  background: var(--bg);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--success);
  font-weight: 900;
}

.bp-info-container {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.bp-level-text {
  color: white;
  font-weight: 900;
  font-size: 18px;
  margin-bottom: 4px;
}

.bp-progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg);
  border-radius: 4px;
  overflow: hidden;
}

.bp-progress-fill {
  height: 100%;
  background: var(--success); 
  border-radius: 4px;
}

.bp-next-item-text {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 800;
  font-size: 10px;
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.bp-view-btn {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  background: rgba(77, 163, 255, 0.1); 
  border: 1px solid rgba(77, 163, 255, 0.3);
  color: var(--primary-2); 
  font-weight: 900;
  font-size: 12px;
  letter-spacing: 1px;
  cursor: pointer;
  text-transform: uppercase;
}


.bp-details-modal {
  background: var(--bg) !important;
}

.bp-details-body {
  padding: 16px !important;
}

.bp-chapter-block {
  margin-bottom: 24px;
}

.bp-chapter-title {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  margin-left: 8px;
  margin-bottom: 8px;
}

.bp-rewards-list {
  background: var(--tile-bg); 
  border-radius: 16px;
  overflow: hidden;
}

.bp-reward-item {
  display: flex;
  align-items: center;
  padding: 12px 16px;
}

.bp-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.05);
  margin: 0 16px;
}

.bp-reward-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  overflow: hidden;
  margin-right: 16px;
}

.bp-reward-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.bp-reward-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.bp-reward-name {
  color: white;
  font-size: 14px;
  font-weight: 500;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bp-reward-free {
  color: var(--success); 
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.bp-claimed-circle {
  width: 24px;
  height: 24px;
  border: 2px solid var(--primary); 
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.bp-claimed-circle .material-icons {
  font-size: 16px;
  color: white;
}

.bp-locked-icon {
  color: var(--muted);
  font-size: 20px;
}


.profile-section-label {
  color: var(--danger);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  margin-top: 10px;
}


.android-wallet-row {
  display: flex;
  gap: 8px;
  height: 64px;
}
.wallet-tile {
  flex: 1;
  background: var(--surface);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}
.wallet-tile img { width: 22px; height: 22px; object-fit: contain; }
.wallet-tile span { font-size: 15px; font-weight: 900; }


.android-tabs {
  display: flex;
  width: 100%;
  border-bottom: 0;
  margin-top: 8px;
}
.android-tab-btn {
  flex: 1;
  background: transparent;
  border: 0;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  padding: 12px 0;
  cursor: pointer;
}
.android-tab-btn.active {
  color: white;
  border-bottom-color: var(--danger);
}


.android-mission-card {
  background: var(--surface);
  border-radius: 8px;
  padding: 12px;
}
.mission-title { font-size: 11px; font-weight: 900; color: white; }
.mission-xp { color: var(--success); font-weight: 900; font-size: 12px; }
.mission-counter { text-align: right; font-size: 10px; color: var(--muted); margin-top: 4px; }


.android-progress-bar {
  height: 8px;
  background: #000;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.android-progress-bar .fill {
  height: 100%;
  background: var(--success);
  border-radius: 4px;
}


.bp-container .bp-season-title { font-size: 16px; font-weight: 900; color: white; }
.bp-status-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 12px;
  padding: 16px;
}
.bp-reward-icon { width: 70px; height: 70px; margin-right: 16px; flex-shrink: 0; }
.bp-reward-icon img { width: 100%; height: 100%; object-fit: contain; }
.bp-level-num { font-size: 18px; font-weight: 900; color: white; }
.bp-next-name { font-size: 10px; color: rgba(255,255,255,0.5); font-weight: 800; margin-top: 4px; }

.btn-bp-view {
  width: 100%;
  height: 48px;
  border-radius: 8px;
  background: rgba(77, 163, 255, 0.1);
  border: 1px solid rgba(77, 163, 255, 0.3);
  color: #4da3ff;
  font-weight: 900;
  font-size: 12px;
  cursor: pointer;
  text-transform: uppercase;
}


.android-bp-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}

.android-bp-card {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 8px;
  position: relative;
  overflow: hidden;
}

.android-bp-icon-box {
  width: 70px !important;
  height: 70px !important;
  min-width: 70px;
  margin-right: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.android-bp-icon-box img {
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: contain !important;
}

.android-bp-max {
  color: #16e5b4;
  font-weight: 900;
  font-size: 20px;
}

.android-bp-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.android-bp-level {
  color: white;
  font-weight: 950;
  font-size: 20px;
  margin-bottom: 6px;
  line-height: 1;
}

.android-bp-next-name {
  color: rgba(255, 255, 255, 0.5);
  font-weight: 800;
  font-size: 10px;
  margin-top: 6px;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}


.android-bp-view-btn {
  width: 100%;
  height: 52px;
  border-radius: 10px;
  background: rgba(77, 163, 255, 0.1);
  border: 1px solid rgba(77, 163, 255, 0.3);
  color: #4da3ff;
  font-weight: 950;
  font-size: 13px;
  letter-spacing: 0.5px;
  cursor: pointer;
  text-transform: uppercase;
  transition: background 0.2s;
}

.android-bp-view-btn:active {
  background: rgba(77, 163, 255, 0.2);
}




.inventory-calc-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(77, 163, 255, 0.2); 
  border-radius: 16px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 16px;
}

.calc-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(77, 163, 255, 0.1);
  color: #74dbff; 
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 900;
  flex-shrink: 0;
}

.calc-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.calc-label {
  color: #74dbff;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}

.calc-value {
  color: white;
  font-size: 26px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 2px;
}

.calc-value.locked {
  filter: blur(4px); 
  opacity: 0.7;
  user-select: none;
}

.calc-value img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.calc-unlock-btn {
  background: var(--danger); 
  color: white;
  border: none;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 11px;
  font-weight: 900;
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  text-transform: uppercase;
}

.calc-unlock-btn .material-icons {
  font-size: 14px;
}

.calc-pro-badge {
  background: var(--danger);
  color: white;
  padding: 4px 8px;
  border-radius: 6px;
  font-size: 10px;
  font-weight: 900;
}


.db-skin-price {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  margin-top: 2px;
  padding-bottom: 10px;
  color: #78ffe6; 
  font-size: 13px;
  font-weight: 900;
}

.db-skin-price img {
  width: 12px !important;
  height: 12px !important;
  object-fit: contain;
  margin: 0 !important;
  padding: 0 !important;
  filter: none !important;
}

.db-skin-free {
  margin-top: 2px;
  padding-bottom: 10px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.fav-btn {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important; 
    left: auto !important;
    z-index: 15 !important; 
    background: rgba(0, 0, 0, 0.5) !important;
    border-radius: 50%;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: rgba(255, 255, 255, 0.7);
    cursor: pointer;
}

.fav-btn.is-favorite {
    color: #ffce44;
    background: rgba(0,0,0,0.5);
}

.fav-btn:active {
    transform: scale(1.2);
}

.fav-indicator {
    position: absolute !important;
    top: 10px !important;
    right: 10px !important; 
    left: auto !important;
    color: #ffce44 !important;
    z-index: 10;
    filter: drop-shadow(0 0 4px rgba(0,0,0,0.9));
}

.wishlist-promo-card {
    background: var(--panel-bg);
    border: 1px solid rgba(255, 70, 85, 0.4);
    border-radius: 12px;
    padding: 20px;
    margin: 0 16px;
}
.promo-header { font-size: 18px; font-weight: 900; color: #fff; }
.promo-divider { height: 1px; background: rgba(255,255,255,0.1); margin: 8px 0; }
.promo-body { font-size: 13px; color: var(--gray); line-height: 1.5; font-weight: 700; }
.promo-links { margin-top: 20px; display: flex; flex-direction: column; gap: 8px; }
.promo-link-btn { 
    background: none; border: none; padding: 4px 0;
    color: #fff; text-align: left; font-weight: 900; 
    text-decoration: underline; cursor: pointer;
}
.store-star-toggle { margin-left: 8px; color: var(--gray); }
.store-star-toggle.active { color: #ffce44; }
.store-header-row { display: flex; align-items: center; background: var(--panel-bg); padding: 4px 0; }

.inventory-stats-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1.5px solid rgba(22, 229, 180, 0.2);
    border-radius: 16px;
    padding: 16px;
    margin-top: 16px;
}
.stats-row { display: flex; justify-content: space-between; align-items: center; }
.stat-group { display: flex; align-items: center; }
.stat-icon { font-size: 24px; color: #16E5B4; margin-right: 12px; }
.stat-label { font-size: 10px; font-weight: 900; letter-spacing: 1px; color: #8da4c2; }
.stat-label.cyan { color: #16E5B4; }
.stat-label.red { color: #ff4655; }
.stat-value { font-size: 22px; font-weight: 900; color: #fff; }
.stat-value.small { font-size: 14px; text-align: right; }
.stat-group-right { display: flex; align-items: center; gap: 12px; }
.stat-divider { width: 1.5px; height: 24px; background: rgba(255,255,255,0.1); }

.match-agent-box { position: relative; width: 52px; height: 52px; }
.match-position-badge {
    position: absolute;
    bottom: -4px;
    right: -4px;
    background: rgba(15, 25, 35, 0.9);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    padding: 1px 4px;
    font-size: 9px;
    font-weight: 950;
    color: #fff;
}
.match-position-badge.gold { background: #FFCE44; color: #000; border-color: #FFCE44; }

.match-mode-row { display: flex; align-items: center; gap: 6px; }
.rank-mini-icon { width: 16px; height: 16px; object-fit: contain; }

.weapon-skins-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 8px;
    padding-bottom: 4px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.weapon-stats-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.weapon-stat-item {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.stat-small-label {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.stat-small-label.cyan { color: #16E5B4; }
.stat-small-label.red { color: #ff4655; }

.stat-small-value {
    font-size: 14px;
    font-weight: 900;
    color: #fff;
    line-height: 1.2;
}

.weapon-stat-divider {
    width: 1px;
    height: 18px;
    background: rgba(255, 255, 255, 0.1);
}

.skin-strip-container {
    margin: 0 -16px;
    padding: 0 16px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.skin-strip-container::-webkit-scrollbar { display: none; }

.chat-date-separator {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 16px 0;
    width: 100%;
}
.chat-date-separator span {
    background: rgba(255, 255, 255, 0.05);
    color: var(--gray);
    font-size: 10px;
    font-weight: 900;
    padding: 4px 12px;
    border-radius: 20px;
    letter-spacing: 1px;
}

.weapon-card { position: relative; }
.weapon-card-value {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.6);
    padding: 2px 6px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 4px;
    border: 1px solid rgba(120, 255, 230, 0.2);
}
.weapon-card-value img { width: 10px !important; height: 10px !important; margin: 0 !important; }
.weapon-card-value span { color: #78FFE6; font-size: 10px; font-weight: 900; }

.bp-reward-item.clickable { cursor: pointer; }
.bp-reward-item.clickable:active { opacity: 0.7; }
.bp-view-icon { font-size: 18px !important; color: var(--primary); opacity: 0.5; }

.weapon-modal-stats-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.03);
    padding: 10px 14px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.05);
    margin: 8px 0;
}

.weapon-modal-stat-item {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.stat-small-label {
    font-size: 8px;
    font-weight: 900;
    letter-spacing: 0.5px;
}

.stat-small-label.cyan { color: #78FFE6; }
.stat-small-label.red { color: #FF4655; }

.stat-small-value-row {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 900;
    color: #fff;
}

.stat-small-value-row img {
    width: 12px;
    height: 12px;
}

.weapon-modal-divider {
    width: 1px;
    height: 24px;
    background: rgba(255, 255, 255, 0.1);
}

.history-modes-row {
    overflow-x: auto !important;
    padding-bottom: 8px !important;
    scrollbar-width: thin !important;
    scrollbar-color: var(--primary) transparent !important;
}

.history-modes-row::-webkit-scrollbar {
    height: 4px !important;
    display: block !important;
}

.history-modes-row::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.history-modes-row::-webkit-scrollbar-thumb {
    background: var(--primary);
    border-radius: 10px;
}

@media (hover: hover) {
    .history-modes-row::-webkit-scrollbar-thumb {
        background: transparent;
    }
    .history-modes-row:hover::-webkit-scrollbar-thumb {
        background: var(--primary);
    }
}

.sub-segmented-control {
    display: flex;
    background: rgba(255,255,255,0.05);
    padding: 4px;
    border-radius: 8px;
    margin: 0 16px;
}
.sub-segmented-control button {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--gray);
    font-weight: 900;
    font-size: 11px;
    padding: 8px;
    border-radius: 6px;
    cursor: pointer;
}
.sub-segmented-control button.active {
    background: var(--primary);
    color: white;
}

.inventory-stats-card.v5 {
    background: var(--panel-bg);
    border-radius: 12px;
    padding: 16px;
    margin: 0 16px;
    border: 1px solid var(--border);
}
.stats-main-row {
    display: flex;
    justify-content: space-around;
    align-items: center;
}
.stat-block { text-align: center; }
.stat-divider { width: 1px; height: 30px; background: rgba(255,255,255,0.1); }

.inventory-stats-card-v5 {
    background: color-mix(in srgb, var(--surface) 50%, transparent);
    border: 1px solid color-mix(in srgb, var(--primary-2) 20%, transparent);
    border-radius: 16px;
    padding: 16px;
    display: flex;
    flex-direction: column;
}

.stats-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-total-block {
    display: flex;
    align-items: center;
    gap: 12px;
}

.stats-icon-circle {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary-2) 10%, transparent);
    color: var(--primary-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
}

.stats-total-texts {
    display: flex;
    flex-direction: column;
}

.stats-label-cyan {
    color: var(--primary-2);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.stats-value-large {
    color: #fff;
    font-size: 22px;
    font-weight: 900;
}

.stats-breakdown-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}

.stats-breakdown-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.stats-label-cyan-small { color: var(--primary-2); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.stats-label-red-small { color: var(--danger); font-size: 8px; font-weight: 900; text-transform: uppercase; }
.stats-label-gold-small { color: var(--warning); font-size: 8px; font-weight: 900; text-transform: uppercase; }

.stats-value-small {
    color: #fff;
    font-size: 12px;
    font-weight: 700;
}

.stats-divider {
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
    margin: 12px 0;
    width: 100%;
}

.stats-bottom-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-calc-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.stats-approx {
    color: var(--muted);
    font-size: 20px;
    font-weight: 900;
}

.stats-label-gray {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

.stats-calc-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.calc-value-text {
    color: #fff;
    font-size: 18px;
    font-weight: 900;
}

.calc-vp-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

.calc-lock-btn {
    background: color-mix(in srgb, var(--danger) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--danger) 50%, transparent);
    color: var(--danger);
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 900;
    display: flex;
    align-items: center;
    cursor: pointer;
}

.crosshair-banner {
    width: 100%;
    height: 120px;
    background-image: url('./crosshair_bg.jpg');
    background-size: cover;
    background-position: center;
    border-radius: 14px;
    margin-bottom: 16px;
    position: relative;
    border: 1px solid var(--border);
    display: flex;
    align-items: flex-end;
    padding: 16px;
    overflow: hidden;
}

.crosshair-banner::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, transparent 100%);
    z-index: 1;
}

.crosshair-banner-text {
    position: relative;
    z-index: 2;
    color: white;
    font-weight: 900;
    font-size: 18px;
    letter-spacing: 1px;
    text-transform: uppercase;
}