:root {
  --elo-bg: #171719;
  --elo-surface: #211f21;
  --elo-raised: #292629;
  --elo-control: #322e31;
  --elo-text: #fff5ee;
  --elo-muted: #c1b5b1;
  --elo-card: linear-gradient(145deg, #2a2527, #211f22);
}

body {
  background: radial-gradient(ellipse at 60% 0%, #3b2423, transparent 66%), #171719;
  background-attachment: fixed;
}
.launcher-shell { width: 100%; max-width: 1780px; margin-inline: auto; }
body .launcher-shell .app { min-width: 0; margin: 0; }
body .app > main { padding: 12px var(--launcher-gutter, 16px) 0; }
body .app > .topbar {
  padding-inline: var(--launcher-gutter, 16px);
  background: #1d1a1be8;
  gap: 12px;
}
.launcher-brand {
  display: inline-flex;
  align-items: center;
  flex: none;
  gap: 7px;
  font: 800 20px/1 Manrope, system-ui, sans-serif;
  letter-spacing: -.055em;
  color: #fff4ed;
}
.launcher-brand img { width: 33px; height: 33px; }
.launcher-brand b { color: #ff796a; }
.launcher-shell .quick-search { min-width: 95px; max-width: 365px; }
.launcher-shell .quick-search input { height: 34px; }
.launcher-shell .quick-search button { padding-block: 5px; }
.launcher-shell .header-launch { display: none; }

body .launcher-shell .play-first-row { gap: 10px; margin-bottom: 10px; }
body .play-first-row .recovery-slider {
  height: auto;
  min-height: 292px;
  border-radius: 13px;
}
.launcher-shell #slides { position: absolute; inset: 0; }
body .launcher-shell .play-first-row .slide-copy {
  padding: 18px 18px 43px;
}
body .launcher-shell .play-first-row .slide-copy h2 {
  font-size: clamp(27px, 3.4vw, 47px);
  margin-block: 7px;
}
body .launcher-shell .play-first-row .slide-copy p { max-width: 46ch; font-size: 13px; line-height: 1.45; }
.launcher-shell .arcade-hero-actions { margin-top: 11px; }
.launcher-shell .slider-controls { bottom: 9px; }
body .launcher-shell .compact-servers {
  border-radius: 13px;
  padding: 10px 11px;
  background: var(--elo-card);
}
.launcher-shell .compact-servers .section-title { margin-bottom: 7px; }
.launcher-shell .compact-servers .server-grid { gap: 4px; }
body .launcher-shell .compact-servers .server-card { padding: 5px 7px; }
.launcher-shell .compact-servers .server-caption { margin-top: 5px; }

body .launcher-shell .promo-match-row { gap: 10px; margin: 0 0 14px; align-items: start; }
body .launcher-shell .frag-promo {
  padding: 0;
  min-width: 0;
  border-radius: 13px;
  background: linear-gradient(120deg, #652e2a, #372325);
}
.launcher-promo-summary {
  display: grid;
  align-items: center;
  grid-template-columns: 57px minmax(0, 1fr) auto;
  gap: 10px;
  padding: 11px;
  cursor: pointer;
  list-style: none;
}
.launcher-promo-summary::-webkit-details-marker { display: none; }
.launcher-promo-summary:hover { background: #ffffff09; }
.launcher-promo-summary img { width: 57px; height: 37px; object-fit: contain; }
.launcher-promo-summary strong { display: block; font-size: 16px; line-height: 1.2; }
.launcher-promo-summary small { display: block; margin-top: 3px; color: #f3c5b9; font-size: 11px; }
.launcher-promo-chevron { font-size: 18px; }
.frag-promo[open] .launcher-promo-chevron { transform: rotate(180deg); }
.launcher-shell .frag-promo-main { padding: 0 11px 11px; }
body .launcher-shell .home-match { padding: 9px 11px; border-radius: 13px; background: var(--elo-card); }
.launcher-shell .home-match > header { margin-bottom: 6px; }
.launcher-shell .home-match-meta { margin-bottom: 5px; }
.launcher-shell .home-match .mt-team { padding-block: 5px; }
.launcher-shell #new-games { margin-block: 12px 16px; }
.launcher-shell #new-games .new-game-card { min-height: 91px; }
.launcher-shell .quests-top { margin-bottom: 10px; }

.launcher-community-head {
  display: flex;
  align-items: center;
  flex: none;
  gap: 4px;
  padding: 6px;
  background: #222327;
  border-bottom: 1px solid #ffffff12;
}
.launcher-community-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  flex: 1;
  gap: 4px;
}
.launcher-community-tabs button {
  min-height: 32px;
  padding: 4px;
  border-radius: 6px;
  color: #c9c2c0;
  font-size: 12px;
  font-weight: 800;
}
.launcher-community-tabs button[aria-selected="true"] {
  background: #42302f;
  box-shadow: inset 0 -2px #ff796a;
  color: #fff2ec;
}
.launcher-community-tabs button:hover { color: white; }
.launcher-chat-view { display: flex; flex: 1; flex-direction: column; min-height: 0; position: relative; }
body .launcher-rail .chat-messages { min-height: 0; padding: 7px 6px 0; }
body .launcher-rail .chat-panel .message { margin-bottom: 4px; padding: 6px; gap: 7px; }
body .launcher-rail .chat-panel .message-avatar { width: 25px; height: 25px; }
body .launcher-rail .chat-panel .message-body { font-size: 12px; }
.launcher-rail .chat-login-block { padding: 6px; }
.launcher-rail .chat-input-area { padding: 6px; }
.launcher-rail .chat-login-block:has(button:not([hidden])) p { margin-bottom: 4px; }
.launcher-rail .roulette[hidden], .launcher-chat-view[hidden] { display: none !important; }
.launcher-rail .roulette { overflow-y: auto; }

@media (min-width: 651px) {
  .launcher-shell {
    --launcher-gutter: clamp(14px, 2vw, 29px);
    display: grid;
    grid-template-columns: clamp(125px, 13vw, 200px) minmax(0, 1fr) clamp(175px, 21vw, 310px);
    align-items: start;
  }
  body .launcher-shell .app > .topbar { height: 58px; }
  .launcher-rail {
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 0;
    height: 100dvh;
    min-width: 0;
    min-height: 0;
    background: #201d1e;
    border-left: 1px solid #ffffff14;
    overflow: auto;
  }
  body .launcher-shell .sidebar {
    position: sticky;
    inset: 0 auto auto;
    z-index: auto;
    width: auto;
    height: 100dvh;
    overflow: auto;
    background: #201d1e;
    border: 0;
    border-right: 1px solid #ffffff14;
    padding: 13px 7px 8px;
  }
  .launcher-nav-title {
    margin: 0 8px 7px;
    font-size: 14px;
    font-weight: 800;
    color: #f5e3d8;
  }
  body .launcher-shell .sidebar nav { display: grid; gap: 2px; }
  body .launcher-shell .sidebar .nav:not(.mobile-chat-nav) {
    display: flex;
    width: 100%;
    flex-direction: row;
    justify-content: start;
    align-items: center;
    gap: 9px;
    min-height: 33px;
    padding: 6px 9px;
    margin: 0;
    text-align: left;
    border-radius: 6px;
  }
  body .launcher-shell .sidebar .nav span { display: inline; font-size: 13px; }
  body .launcher-shell .sidebar .nav .nav-features-short { display: none; }
  body .launcher-shell .sidebar .nav small { display: inline-block; margin-left: auto; }
  body .launcher-shell .sidebar .nav svg { width: 15px; height: 15px; }
  body .launcher-shell .sidebar .mobile-chat-nav { display: none; }
  body .launcher-shell .sidebar-bottom { display: grid; gap: 4px; margin-top: auto; padding-top: 12px; }
  body .launcher-shell .sidebar-bottom .nav:not(.mobile-chat-nav) { width: auto; flex: 1; min-height: 27px; }
  body .launcher-shell .sidebar-bottom .nav span { font-size: 11px; }
  body .launcher-rail .chat-panel {
    position: relative;
    inset: auto;
    z-index: auto;
    width: auto;
    height: auto;
    min-height: 220px;
    flex: 1 1 auto;
    margin: 0;
    box-shadow: none;
    border: 0;
    border-top: 1px solid #ffffff12;
    overflow: hidden;
  }
  body .launcher-rail #close-chat { display: none !important; }
}
@media (min-width: 651px) and (max-width: 900px) {
  .launcher-shell .launcher-brand span { display: none; }
  .launcher-shell .topbar .site-online { display: none; }
  body .launcher-shell .sidebar .nav { gap: 5px; }
  body .launcher-shell .sidebar .nav span { font-size: 11px; }
  body .launcher-shell .sidebar .nav small { display: none; }
}
@media (min-width: 1020px) {
  body .launcher-shell .play-first-row { grid-template-columns: minmax(0, 1.55fr) minmax(255px, 1fr); }
  body .launcher-shell .promo-match-row:not(.promo-only) {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr);
  }
}
@media (max-width: 650px) {
  .launcher-nav-title, .launcher-wide-label { display: none !important; }
  .launcher-shell .launcher-brand { font-size: 17px; }
  .launcher-shell .launcher-brand img { width: 28px; height: 28px; }
  .launcher-shell .quick-search { max-width: none; }
  .launcher-shell .launcher-community-head { padding-top: max(6px, env(safe-area-inset-top)); }
  body .launcher-shell .play-first-row .recovery-slider { min-height: 264px; }
}

.launcher-shell #new-games .section-title { margin-bottom: 8px; }
.launcher-shell .games-intro { margin-bottom: 8px; }
.launcher-shell #new-games .new-game-card { min-height: 96px; padding: 9px 12px; }
.launcher-shell .new-game-card h3 { font-size: 20px; margin: 0 0 3px; }
.launcher-shell .new-game-card p { font-size: 11px; margin-bottom: 3px; }
.launcher-shell .new-game-card > img { width: 152px; }
.launcher-shell .new-game-card .games-soon { display: none; }
.launcher-shell .new-game-card .game-more { font-size: 11px; }
.launcher-rail .chat-login-block:not([hidden]) + .chat-input-area { display: none; }
.launcher-rail .chat-login-block .vk-login { padding-block: 8px; }

@media (min-width: 980px) {
  .launcher-shell .promo-match-row:not(.promo-only) .frag-promo:not([open]) { align-self: stretch; }
  .launcher-shell .frag-promo:not([open]) .launcher-promo-summary { min-height: 100%; }
}

body .launcher-shell .sidebar .pass-nav-icon { width: 15px; text-align: center; color: #ff8e75; }
.pass-panel {
  margin-bottom: 10px;
  padding: 13px;
  border: 1px solid #ffffff18;
  border-radius: 13px;
  background: radial-gradient(ellipse at 100% 0%, #622f2852, transparent 62%), var(--elo-card);
}
.pass-panel[hidden] { display: none; }
.pass-head, .pass-progress > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pass-head { margin-bottom: 10px; }
.pass-head h2 { font: 800 22px/1.12 Manrope, system-ui, sans-serif; margin-top: 3px; }
.pass-season { color: #dfc1b6; font-size: 11px; }
.pass-season span {
  display: inline-block;
  border: 1px solid #ff9c855a;
  border-radius: 4px;
  margin-left: 4px;
  padding: 1px 4px;
  color: #ffd0c2;
}
.pass-open, .pass-return { color: #ffb4a3; font-weight: 800; font-size: 12px; text-align: right; }
.pass-open:hover, .pass-return:hover { color: #fff4ed; }
.pass-overview { display: grid; grid-template-columns: minmax(0, 2fr) auto auto; gap: 7px; }
.pass-progress, .pass-stat {
  padding: 7px 9px;
  border: 1px solid #ffffff13;
  border-radius: 8px;
  background: #14131664;
  font-size: 12px;
}
.pass-progress span, .pass-stat span { color: #d2bdb5; font-size: 11px; }
.pass-stat { min-width: 90px; }
.pass-stat span, .pass-stat strong { display: block; }
.pass-progress progress {
  display: block;
  appearance: none;
  width: 100%;
  height: 6px;
  margin-top: 7px;
  border: 0;
  border-radius: 999px;
  background: #413638;
  color: #ff7462;
}
.pass-progress progress::-webkit-progress-bar { border-radius: 999px; background: #413638; }
.pass-progress progress::-webkit-progress-value { border-radius: 999px; background: linear-gradient(90deg, #e8544a, #ff9774); }
.pass-progress progress::-moz-progress-bar { border-radius: 999px; background: #ff7462; }
.pass-panel h3 { margin: 11px 0 6px; font-size: 13px; }
.pass-missions, .pass-rewards { margin: 0; padding: 0; list-style: none; }
.pass-missions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.pass-missions li {
  display: grid;
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2px 6px;
  padding: 6px 8px;
  border-radius: 6px;
  background: #ffffff07;
}
.pass-missions li div { grid-row: span 2; min-width: 0; }
.pass-missions strong { display: block; color: #fff0e7; font-size: 12px; }
.pass-missions span { color: #c7b6b0; font-size: 10px; }
.pass-missions b { color: #ffab98; font-size: 10px; text-align: right; }
.pass-missions .pass-mission-done { color: #a3deb9; }
.pass-panel:not(.pass-expanded) :is(.pass-full, .pass-return),
.pass-panel.pass-expanded .pass-open { display: none; }
.pass-rewards { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px, 1fr)); gap: 7px; }
.pass-rewards li {
  display: grid;
  gap: 4px;
  padding: 8px;
  border: 1px solid #ffffff18;
  border-radius: 8px;
  background: #161416;
}
.pass-rewards .pass-next { border-color: #fa795f; }
.pass-rewards li > :is(small, span:last-child) { color: #cdb7af; font-size: 10px; }
.pass-rewards strong { font-size: 12px; }
.pass-reward-art {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 3px auto 6px;
  border: 2px solid currentColor;
  border-radius: 50%;
  color: #ffa088;
  font: 800 22px/1 Manrope, system-ui, sans-serif;
}
.pass-skin { color: #a9d5c4; }
.pass-expanded .pass-missions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pass-note { margin-top: 10px; color: #c7b6b0; font-size: 12px; }
@media (max-width: 820px) {
  .pass-missions { grid-template-columns: 1fr; }
  .pass-stat { min-width: 0; }
}
@media (max-width: 650px) {
  .pass-overview { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pass-progress { grid-column: 1 / -1; }
  body .launcher-shell .sidebar .nav { flex: 1 1 0; min-width: 0; }
  body .launcher-shell .sidebar .pass-nav-icon { display: block; font-size: 16px; line-height: 18px; }
}
