/* Penguins portal — dizayn tizimi (Claude Design canvas'idagi "tungi muz" ko'rinishi) */
:root {
  --bg: #0b111c;
  --bg-2: #0d1522;
  --surface: #111a28;
  --surface-2: #172235;
  --line: #1e2c44;
  --line-2: #2a3b57;
  --text: #e8eef7;
  --text-2: #a9b8ce;
  --muted: #93a4bd;
  --dim: #566781;
  --accent: #4fd1e8;
  --accent-ink: #06222a;
  --t: #f5a524;
  --ct: #6c8cff;
  --ok: #3dd68c;
  --bad: #ff6464;
  --warn: #f5c24b;
  --display: 'Space Grotesk', 'Inter', system-ui, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 14px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.55 Inter, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--accent); }
a:hover { color: #8be6f2; }
img { max-width: 100%; }
.mono { font-family: var(--mono); }
.muted { color: var(--muted); }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }

/* navigatsiya */
.pnav { border-bottom: 1px solid #1b2840; }
.pnav .wrap { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font: 700 20px var(--display); }
.logo:hover { color: var(--text); }
.pnav .links { display: flex; gap: 22px; flex-wrap: wrap; }
.pnav .links a { color: var(--muted); text-decoration: none; padding: 6px 0; }
.pnav .links a.on, .pnav .links a:hover { color: var(--text); font-weight: 600; }
.pnav .grow { flex: 1 1 0; }
.lang { display: flex; gap: 2px; font-size: 13px; }
.lang a { color: var(--muted); text-decoration: none; padding: 8px 6px; border-radius: 8px; }
.lang a.on { color: var(--text); background: var(--surface-2); }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: #22314a; border: 2px solid var(--accent); object-fit: cover; flex: none; }

/* tugmalar */
.b { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 10px 16px; border-radius: 12px; border: 1px solid var(--line-2); background: transparent; color: var(--text); font: 600 15px Inter, system-ui, sans-serif; text-decoration: none; cursor: pointer; }
.b:hover { color: var(--text); border-color: #3a4f72; }
.b.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 700; }
.b.primary:hover { color: var(--accent-ink); background: #6fdcef; }
.b.light { background: var(--text); border-color: var(--text); color: var(--bg); font-weight: 700; }
.b.light:hover { color: var(--bg); background: #fff; }
.b.sm { min-height: 40px; padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.b.lg { padding: 14px 20px; font-size: 16px; }
.b.danger { background: var(--bad); border-color: var(--bad); color: #1a0606; font-weight: 700; }

/* kartalar va bo'limlar */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); }
.section { display: flex; flex-direction: column; gap: 16px; }
.section-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
h1, h2, h3 { font-family: var(--display); margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 28px; }
.pill { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.pill.live { background: rgba(61, 214, 140, 0.12); color: var(--ok); }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--dim); flex: none; display: inline-block; }
.dot.on { background: var(--ok); }
.dot.bad { background: var(--bad); }
.tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font-size: 12px; font-weight: 700; }
.tag.win { background: rgba(61, 214, 140, 0.14); color: var(--ok); }
.tag.loss { background: rgba(255, 100, 100, 0.12); color: #ff8a8a; }
.tag.draw { background: var(--surface-2); color: var(--muted); }
.t { color: var(--t); }
.ct { color: var(--ct); }
.err { padding: 12px 16px; border-radius: 12px; background: rgba(255, 100, 100, 0.1); border: 1px solid rgba(255, 100, 100, 0.45); color: #f2b8b8; }

/* mehmon bosh sahifasi */
.hero { display: flex; flex-wrap: wrap; gap: 40px; align-items: stretch; padding-top: 48px; }
.hero .copy { flex: 1 1 440px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.hero h1 { font-size: 56px; line-height: 1.02; letter-spacing: -0.02em; }
.hero p { margin: 0; color: var(--text-2); font-size: 18px; max-width: 520px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.servers { flex: 1 1 460px; display: flex; flex-direction: column; gap: 10px; }
.srv { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.srv .tag-g { width: 44px; height: 44px; flex: none; border-radius: 10px; background: var(--surface-2); display: flex; align-items: center; justify-content: center; font: 700 12px var(--mono); color: var(--muted); }
.srv .body { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.srv .name { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.srv .sub { color: var(--muted); font-size: 13px; }
.bar { height: 4px; border-radius: 2px; background: #1b2840; overflow: hidden; display: block; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.srv .count { font: 700 15px var(--mono); min-width: 52px; text-align: right; }
.grid-clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.empty { padding: 28px; text-align: center; color: var(--muted); }
.cols { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.cols > .main { flex: 2 1 560px; min-width: 0; }
.cols > .side { flex: 1 1 320px; min-width: 0; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; padding: 12px 8px; }
.tbl td { padding: 12px 8px; border-top: 1px solid #1b2840; }
.tbl th:first-child, .tbl td:first-child { padding-left: 16px; }
.tbl th:last-child, .tbl td:last-child { padding-right: 16px; }
.tbl .num { text-align: right; font-family: var(--mono); }
.scroll-x { overflow-x: auto; }
.steps { display: flex; flex-direction: column; gap: 14px; padding: 24px; }
.step { display: flex; gap: 14px; align-items: flex-start; }
.step .n { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 1px solid var(--line-2); display: flex; align-items: center; justify-content: center; font: 13px var(--mono); color: var(--accent); }
.step b { display: block; }
.step span { color: var(--muted); font-size: 14px; }
.pfoot { border-top: 1px solid #1b2840; margin-top: 64px; }
.pfoot .wrap { display: flex; gap: 20px; flex-wrap: wrap; padding: 24px 40px; color: var(--muted); font-size: 13px; }
.pfoot a { color: var(--muted); text-decoration: none; }

/* o'yinchi sahifasi */
.hello { font-size: 40px; padding-top: 36px; }
.last { display: flex; flex-direction: column; gap: 18px; padding: 24px; color: var(--text); text-decoration: none; }
.last:hover { color: var(--text); border-color: var(--line-2); }
.score { font: 700 34px var(--mono); }
.stats4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.stat { display: flex; flex-direction: column; gap: 2px; padding: 12px; border-radius: 10px; background: var(--surface-2); }
.stat small { color: var(--muted); font-size: 12px; }
.stat b { font: 700 22px var(--mono); }
.kv { display: flex; justify-content: space-between; align-items: baseline; padding: 8px 0; border-bottom: 1px solid #1b2840; }
.kv b { font-family: var(--mono); }
.matchrow { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-top: 1px solid #1b2840; color: var(--text); text-decoration: none; }
.matchrow:first-child { border-top: 0; }
.matchrow:hover { color: var(--text); background: var(--surface-2); }
.matchrow .map { font-weight: 700; min-width: 90px; }
.matchrow .sc { font: 700 15px var(--mono); }
.matchrow .kda { margin-left: auto; font-family: var(--mono); color: var(--text-2); }

@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .pnav .wrap { gap: 12px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 38px; }
  .stats4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pfoot .wrap { padding: 20px 16px; }
  .matchrow .kda { display: none; }
}

/* momentlar va videolar */
.grid-moments { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.moment { display: flex; flex-direction: column; gap: 10px; padding: 18px; }
.tag.mt-ace { background: #ff6464; color: #1a0606; }
.tag.mt-4k { background: #ff8a5b; color: #1f0c04; }
.tag.mt-3k { background: var(--t); color: #1f1402; }
.tag.mt-clutch { background: #b79cff; color: #140a2a; }
.tag.mt-special, .tag.mt-opening { background: var(--text); color: var(--bg); }
.tag.mt-trade { background: var(--surface-2); color: var(--text-2); }
.grid-videos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.video { display: flex; flex-direction: column; gap: 8px; }
.video .thumb { display: block; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.video .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video .thumb.pending { display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 13px; text-decoration: none; text-align: center; padding: 8px; }

/* "O'yinlarim" sahifasi */
.games-page { display: flex; flex-direction: column; gap: 24px; padding-top: 36px; }
.games-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.games-head h1 { font-size: 40px; }
.games-head p { margin: 6px 0 0; }
.seg { display: inline-flex; gap: 2px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.seg a { padding: 8px 14px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.seg a:hover { color: var(--text); }
.seg a.on { background: var(--surface-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-2); }
.card.empty { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.card.empty p { margin: 0; }
.tiles8 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.tiles8 .stat { background: var(--surface); border: 1px solid var(--line); padding: 16px; gap: 4px; border-radius: var(--r); }
.tiles8 .stat b { font-size: 26px; }
.tiles8 .stat > span { color: var(--muted); font-size: 12px; }
.tiles8 .stat .bar { margin-top: 6px; }
.good { color: var(--ok); }
.bad { color: #ff8a8a; }
.chart-card { padding: 20px 20px 16px; display: flex; flex-direction: column; gap: 10px; }
.section-head h2 { font-size: 22px; }
svg.trend { width: 100%; height: auto; display: block; }
svg.trend .base { stroke: var(--line-2); stroke-dasharray: 4 5; }
svg.trend .line { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linejoin: round; stroke-linecap: round; }
svg.trend .pt { stroke: var(--bg); stroke-width: 2; cursor: pointer; }
svg.trend .pt.win { fill: var(--ok); } svg.trend .pt.loss { fill: var(--bad); } svg.trend .pt.draw { fill: var(--muted); }
svg.trend a:hover .pt, svg.trend a:focus .pt { r: 7; }
.form-row { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.form-row > .muted { margin-right: 4px; }
.fchip { width: 24px; height: 24px; border-radius: 6px; display: inline-flex; align-items: center; justify-content: center; font: 700 11px var(--mono); }
.fchip.win { background: rgba(61, 214, 140, 0.16); color: var(--ok); }
.fchip.loss { background: rgba(255, 100, 100, 0.14); color: #ff8a8a; }
.fchip.draw { background: var(--surface-2); color: var(--muted); }
.form-row .legend { margin-left: auto; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.form-row .legend .ln { width: 18px; border-top: 2px dashed var(--line-2); }
.list-head { padding: 18px 16px 6px; }
.gamerow { display: grid; grid-template-columns: 118px minmax(110px, 1.3fr) 64px 118px 52px 52px 60px minmax(90px, 1fr); align-items: center; gap: 10px;
  padding: 11px 16px; border-top: 1px solid #1b2840; color: var(--text); text-decoration: none; font-size: 14px; }
.gamerow:hover { background: var(--surface-2); color: var(--text); }
.gamerow.head { color: var(--muted); font-size: 12px; font-weight: 600; border-top: 0; padding-top: 6px; padding-bottom: 8px; }
.gamerow.head:hover { background: none; }
.gamerow .map { display: flex; flex-direction: column; min-width: 0; }
.gamerow .map small { font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gamerow .when { text-align: right; font-size: 13px; }
.gamerow.head span:last-child { text-align: right; }
.gamerow .rating { font-weight: 700; }
.mk { font-style: normal; font: 700 10px var(--mono); color: var(--t); margin-left: 4px; }
.pager { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 16px; border-top: 1px solid #1b2840; }
.best { display: flex; flex-direction: column; gap: 12px; padding: 20px; text-decoration: none; color: var(--text); border-color: rgba(79, 209, 232, 0.35);
  background: linear-gradient(160deg, rgba(79, 209, 232, 0.09), var(--surface) 55%); }
.best:hover { color: var(--text); border-color: var(--accent); }
.best-main { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.best-main .map { font: 700 24px var(--display); text-transform: capitalize; }
.best-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.best-stats span { display: flex; flex-direction: column; padding: 10px; border-radius: 10px; background: var(--surface-2); }
.best-stats b { font: 700 18px var(--mono); }
.best-stats small { color: var(--muted); font-size: 11px; }
.maps-card { padding: 20px 8px 10px; }
.maps-card .section-head { padding: 0 12px 8px; }
.maprow { display: grid; grid-template-columns: minmax(0, 1fr) 70px 40px 44px; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: var(--text); text-decoration: none; }
.maprow:hover { background: var(--surface-2); color: var(--text); }
.maprow.on { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--accent); }
.maprow.all { display: block; color: var(--accent); font-size: 14px; }
.maprow .mname { display: flex; flex-direction: column; min-width: 0; text-transform: capitalize; }
.maprow .mname small { font-size: 12px; text-transform: none; }
.mbar { height: 6px; border-radius: 3px; background: #1b2840; overflow: hidden; display: block; }
.mbar > span { display: block; height: 100%; background: var(--ok); }
.maprow .mwin, .maprow .mrt { text-align: right; font-size: 13px; }
.gamerow .map b { text-transform: capitalize; }
@media (max-width: 960px) { .tiles8 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
  .games-page { padding-top: 24px; gap: 18px; }
  .games-head h1 { font-size: 30px; }
  .seg { width: 100%; } .seg a { flex: 1; text-align: center; padding: 8px 6px; }
  .tiles8 .stat b { font-size: 22px; }
  .form-row .legend { display: none; }
}
/* o'yinlar ro'yxati kartaning o'z kengligiga moslashadi (yon ustun bilan yonma-yon turganda ham sig'sin) */
#list { container-type: inline-size; }
@container (max-width: 760px) {
  .gamerow { grid-template-columns: 104px minmax(0, 1fr) 54px 112px 52px; gap: 8px; padding: 10px 14px; }
  .gamerow .opt { display: none; }
}
@container (max-width: 440px) {
  .gamerow { grid-template-columns: 96px minmax(0, 1fr) 52px 48px; }
  .gamerow > span:nth-child(4) { display: none; }
}
