/* Cartel Mafia — qoramtir, sokin va zamonaviy uslub.
   Rang tanlovi: deyarli qora fon, qizg'ish urg'u (mafiya kayfiyati),
   matn uchun yumshoq oq. Hamma joyda bir xil oraliq va radius ishlatiladi. */
:root {
  --bg: #0a0a0c;
  --bg-2: #101015;
  --card: #131319;
  --line: #22222c;
  --text: #ecebf0;
  --muted: #8f8fa3;
  --accent: #e4443c;
  --accent-2: #f0a03c;
  --radius: 18px;
  --max: 1120px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font: 16px/1.65 Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
.muted { color: var(--muted); }

/* ── Tugmalar ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; border: 1px solid transparent;
  background: linear-gradient(135deg, var(--accent), #b8322b);
  color: #fff; font-weight: 600; font-size: 15px;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  box-shadow: 0 8px 24px rgba(228, 68, 60, .22);
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(228, 68, 60, .3); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 9px 16px; font-size: 14px; }
.btn-lg { padding: 15px 28px; font-size: 16px; }
.btn-ghost {
  background: transparent; border-color: var(--line); color: var(--text); box-shadow: none;
}
.btn-ghost:hover { background: var(--bg-2); box-shadow: none; }

/* ── Yuqori panel ── */
.nav {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 24px;
  max-width: var(--max); margin: 0 auto; padding: 14px 20px;
  background: rgba(10, 10, 12, .8); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-brand { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 500; }
.nav-brand img { border-radius: 9px; }
.nav-brand b { font-weight: 800; }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--muted); }
.nav-links a:hover { color: var(--text); }

/* ── Hero ── */
.hero { position: relative; padding: 90px 20px 70px; overflow: hidden; }
.hero-glow {
  position: absolute; inset: -30% 20% auto; height: 620px;
  background: radial-gradient(60% 50% at 50% 30%, rgba(228, 68, 60, .26), transparent 70%);
  filter: blur(20px); pointer-events: none;
}
.hero-inner { position: relative; max-width: 820px; margin: 0 auto; text-align: center; }
.pill {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--bg-2);
  font-size: 13px; color: var(--muted); margin-bottom: 22px;
}
h1 { font-size: clamp(32px, 6vw, 56px); line-height: 1.12; font-weight: 800; letter-spacing: -.02em; }
.grad {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { margin: 20px auto 0; max-width: 620px; color: var(--muted); font-size: 17px; }
.hero-btns { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 32px; }

.stats {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 52px;
}
.stat {
  min-width: 150px; padding: 18px 22px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
}
.stat b { display: block; font-size: 26px; font-weight: 800; letter-spacing: -.02em; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ── Bo'limlar ── */
.section { max-width: var(--max); margin: 0 auto; padding: 72px 20px; }
.section h2 { font-size: clamp(24px, 4vw, 34px); font-weight: 800; letter-spacing: -.02em; }
.section .sub { color: var(--muted); margin-top: 10px; }

.grid-3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; margin-top: 28px; }
.card {
  padding: 24px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--line);
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: #33333f; transform: translateY(-3px); }
.card .ico { font-size: 26px; margin-bottom: 12px; }
.card h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

/* ── Qadamlar ── */
.steps { counter-reset: s; margin-top: 28px; display: grid; gap: 12px; list-style: none; }
.steps li {
  counter-increment: s; position: relative; padding: 18px 22px 18px 62px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  color: var(--muted);
}
.steps li b { color: var(--text); font-weight: 600; }
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 17px;
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), #b8322b);
  color: #fff; font-size: 13px; font-weight: 700;
  display: grid; place-items: center;
}

/* ── Rollar ── */
.filters { display: flex; gap: 9px; flex-wrap: wrap; margin: 24px 0 26px; }
.chip {
  padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: var(--bg-2); border: 1px solid var(--line); color: var(--muted);
  font: inherit; font-size: 14px; transition: .15s;
}
.chip:hover { color: var(--text); }
.chip.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }

.roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
.role {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s ease, border-color .2s ease;
}
.role:hover { transform: translateY(-4px); border-color: #33333f; }
.role-img { aspect-ratio: 1 / 1; width: 100%; object-fit: cover; background: var(--bg-2); }
.role-img.placeholder { display: grid; place-items: center; font-size: 46px; }
.role-body { padding: 16px 18px 20px; }
.role-top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.role-name { font-weight: 600; font-size: 16px; }
.role-team {
  font-size: 11px; padding: 3px 9px; border-radius: 999px; margin-left: auto;
  border: 1px solid var(--line); color: var(--muted); white-space: nowrap;
}
.role-team.mafia { color: #ff8a80; border-color: rgba(255, 138, 128, .3); }
.role-team.tinch { color: #7fd8a0; border-color: rgba(127, 216, 160, .3); }
.role-team.yakka { color: #c9a0ff; border-color: rgba(201, 160, 255, .3); }
.role-desc { color: var(--muted); font-size: 14px; }
.loading { color: var(--muted); padding: 40px 0; grid-column: 1 / -1; text-align: center; }

/* ── Chaqiruv ── */
.cta { padding: 20px; }
.cta-inner {
  max-width: var(--max); margin: 0 auto; padding: 60px 24px; text-align: center;
  border-radius: 28px; border: 1px solid var(--line);
  background:
    radial-gradient(70% 120% at 50% 0%, rgba(228, 68, 60, .18), transparent 60%),
    var(--card);
}
.cta-inner h2 { font-size: clamp(24px, 4vw, 32px); font-weight: 800; }
.cta-inner p { color: var(--muted); margin: 12px auto 26px; max-width: 480px; }

/* ── Pastki qism ── */
.foot { border-top: 1px solid var(--line); margin-top: 40px; }
.foot-in {
  max-width: var(--max); margin: 0 auto; padding: 34px 20px;
  display: flex; gap: 24px; flex-wrap: wrap; justify-content: space-between; align-items: center;
}
.foot-links { display: flex; gap: 20px; flex-wrap: wrap; color: var(--muted); font-size: 15px; }
.foot-links a:hover { color: var(--text); }

@media (max-width: 720px) {
  .nav-links { display: none; }
  .hero { padding: 60px 20px 50px; }
  .section { padding: 56px 20px; }
  .roles { grid-template-columns: repeat(auto-fill, minmax(155px, 1fr)); gap: 12px; }
  .role-body { padding: 13px 14px 16px; }
  .role-desc { font-size: 13px; }
}

/* cartelmafia.uz bosh sahifasi uchun qo'shimchalar (asosiy uslub — webapp_sayt/style.css) */
.row-btns { margin-top: 24px; }

/* ── Botlar va kanallar ── */
.links { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; margin-top: 28px; }
.link {
  display: flex; align-items: center; gap: 16px; padding: 18px 20px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color .2s ease, transform .2s ease;
}
.link:hover { border-color: #3a3a48; transform: translateY(-3px); }
.link-ico {
  flex: none; width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; background: var(--bg-2); border: 1px solid var(--line);
}
.link-body { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.link-top { display: flex; align-items: center; gap: 8px; }
.link-top b { font-weight: 600; }
.link-top i {
  font-style: normal; font-size: 11px; padding: 2px 8px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--muted);
}
.link-desc { color: var(--muted); font-size: 14px; }
.link-user { color: var(--accent-2); font-size: 13.5px; margin-top: 2px; }
.link-go { color: var(--muted); font-size: 20px; transition: transform .2s ease, color .2s ease; }
.link:hover .link-go { color: var(--text); transform: translateX(3px); }

/* ── Mini o'yinlar ── */
.games { display: grid; grid-template-columns: 2fr 1fr; gap: 16px; margin-top: 28px; }
.game {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
}
.game-cover { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--bg-2); overflow: hidden; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.game-cover:hover img { transform: scale(1.03); }
.game-tag {
  position: absolute; top: 14px; left: 14px; padding: 4px 11px; border-radius: 999px;
  background: rgba(10, 10, 12, .75); border: 1px solid rgba(255, 255, 255, .15); font-size: 12.5px; font-weight: 600;
}
.game-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; flex: 1; }
.game-body h3 { font-size: 20px; font-weight: 800; }
.game-body p { color: var(--muted); font-size: 15px; }
.game-meta { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: 13.5px; }
.game-body .btn { margin-top: auto; }
.game.soon { border-style: dashed; background: transparent; }
.game.soon .game-body { justify-content: center; }

@media (max-width: 820px) {
  .games { grid-template-columns: 1fr; }
  .links { grid-template-columns: 1fr; }
}
