body.instagram-mode {
  width: 1080px;
  height: 1350px;
  min-height: 1350px;
  overflow: hidden;
  background: #080608;
}

.instagram-download {
  position: fixed;
  right: 26px;
  bottom: 26px;
  z-index: 1000;
  border: 1px solid rgba(255, 255, 255, .2);
  border-radius: 8px;
  padding: 15px 20px;
  background: linear-gradient(135deg, #e23b78, #9d174d);
  color: #fff;
  box-shadow: 0 16px 45px rgba(0, 0, 0, .45);
  cursor: pointer;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.instagram-download::after {
  content: "";
}

body.exporting-instagram .instagram-download::after {
  content: " ...";
}

.instagram-download:hover {
  filter: brightness(1.08);
}

body.exporting-instagram .instagram-download {
  display: none;
}

body.instagram-mode .overlay {
  position: relative;
  width: 1080px;
  height: 1350px;
  inset: auto;
  overflow: hidden;
  background:
    radial-gradient(circle at 78% 8%, rgba(226, 59, 120, .26), transparent 28%),
    radial-gradient(circle at 8% 88%, rgba(226, 59, 120, .16), transparent 26%),
    linear-gradient(145deg, #070608 0%, #130910 50%, #070507 100%);
}

body.instagram-mode .scene {
  width: 1080px;
  height: 1350px;
  padding: 58px 62px 52px;
  transform: none;
}

body.instagram-mode .scene.active {
  transform: none;
}

body.instagram-mode .scene::before {
  width: 12px;
}

body.instagram-mode .scene-header {
  height: 126px;
  align-items: center;
}

body.instagram-mode .kicker {
  margin-bottom: 10px;
  font-size: 18px;
  letter-spacing: .28em;
}

body.instagram-mode .scene-header h2 {
  font-size: 67px;
  line-height: .9;
}

body.instagram-mode .round-badge {
  width: 152px;
  height: 86px;
}

body.instagram-mode .round-badge b {
  font-size: 42px;
}

body.instagram-mode .scene-footer {
  left: 62px;
  right: 62px;
  bottom: 36px;
  font-size: 12px;
}

body.instagram-mode .ranking-columns {
  grid-template-columns: 1fr;
  gap: 0;
  margin-top: 28px;
}

body.instagram-mode .ranking-block {
  border-color: rgba(226, 59, 120, .32);
  background: rgba(5, 4, 6, .42);
}

body.instagram-mode .ranking-block + .ranking-block {
  margin-top: 0;
  border-top: 0;
}

body.instagram-mode .ranking-head {
  grid-template-columns: 92px minmax(0, 1fr) 76px 76px 92px;
  height: 42px;
  padding: 0 16px;
  font-size: 12px;
}

body.instagram-mode .ranking-block + .ranking-block .ranking-head {
  display: none;
}

body.instagram-mode .ranking-list {
  grid-template-rows: repeat(6, 83px);
}

body.instagram-mode .ranking-list .rank-row {
  grid-template-columns: 92px minmax(0, 1fr) 76px 76px 92px;
  min-height: 83px;
  padding: 0 16px;
  box-shadow: inset 4px 0 rgba(226, 59, 120, .34);
}

body.instagram-mode .ranking-list .rank-pos {
  font-size: 43px;
}

body.instagram-mode .ranking-list .team-cell {
  gap: 16px;
}

body.instagram-mode .ranking-list .logo-shell {
  width: 66px;
  height: 66px;
  max-width: 66px;
  max-height: 66px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body.instagram-mode .ranking-list .logo-shell img {
  width: 96%;
  height: 96%;
  filter: none !important;
}

body.instagram-mode .mvp-card .logo-shell img,
body.instagram-mode .podium-logo img {
  filter: none !important;
}

body.instagram-mode .ranking-list .rank-row[data-team="go"] .logo-shell img,
body.instagram-mode .mvp-card[data-team="go"] .logo-shell img,
body.instagram-mode .podium-card[data-team="go"] .podium-logo img {
  filter: none !important;
}

body.instagram-mode .ranking-list .team-text b {
  font-size: 25px;
}

body.instagram-mode .team-flag {
  width: 32px;
  height: 22px;
}

body.instagram-mode .rank-trend {
  width: 28px;
  margin-right: 8px;
  font-size: 20px;
}

body.instagram-mode .ranking-list .rank-stat {
  height: 56px;
  font-size: 32px;
}

body.instagram-mode .ranking-list .rank-stat.points {
  color: #ff5d9a;
  font-size: 42px;
}

body.instagram-mode .mvp-scene .scene-header {
  margin-bottom: 34px;
}

body.instagram-mode .mvp-grid {
  height: auto;
  margin-top: 0;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: none;
  gap: 17px;
}

body.instagram-mode .mvp-card,
body.instagram-mode .mvp-card:first-child {
  min-height: 190px;
  grid-row: auto;
  flex-direction: row;
  justify-content: flex-start;
  text-align: left;
  padding: 28px 32px;
  gap: 28px;
  background: linear-gradient(100deg, rgba(226, 59, 120, .18), rgba(255, 255, 255, .035));
}

body.instagram-mode .mvp-card:first-child {
  min-height: 238px;
  background: radial-gradient(circle at 18% 50%, rgba(226, 59, 120, .34), rgba(255, 255, 255, .04) 60%);
  border-color: rgba(226, 59, 120, .58);
}

body.instagram-mode .mvp-card .place,
body.instagram-mode .mvp-card:first-child .place {
  position: static;
  flex: 0 0 92px;
  color: #ff5d9a;
  font-size: 72px;
  line-height: 1;
  opacity: 1;
}

body.instagram-mode .mvp-card:first-child .place {
  flex-basis: 120px;
  font-size: 108px;
}

body.instagram-mode .mvp-card .logo-shell,
body.instagram-mode .mvp-card:first-child .logo-shell {
  width: 126px;
  height: 126px;
  border-radius: 18px;
}

body.instagram-mode .mvp-card:first-child .logo-shell {
  width: 176px;
  height: 176px;
}

body.instagram-mode .mvp-copy h3,
body.instagram-mode .mvp-card:first-child h3 {
  max-width: 548px;
  margin: 0 0 16px;
  font-size: 43px;
  line-height: 1;
}

body.instagram-mode .mvp-card:first-child h3 {
  font-size: 58px;
}

body.instagram-mode .mvp-flag {
  width: 48px;
  height: 32px;
  margin-right: 16px;
}

body.instagram-mode .mvp-numbers b {
  font-size: 56px;
}

body.instagram-mode .champion-scene {
  justify-content: flex-start;
  padding: 56px 54px 42px;
}

body.instagram-mode .champion-copy {
  position: relative;
  top: auto;
  margin-bottom: 28px;
}

body.instagram-mode .champion-copy h2 {
  font-size: 116px;
  line-height: .82;
}

body.instagram-mode .champion-copy p {
  font-size: 15px;
}

body.instagram-mode .champion-podium {
  width: 100%;
  height: 1010px;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1.25fr 1fr 1fr;
  gap: 18px;
  align-items: stretch;
}

body.instagram-mode .podium-card {
  width: 100%;
  min-height: 0;
  padding: 24px 34px;
  display: grid;
  grid-template-columns: 126px 260px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 28px;
  align-items: center;
  text-align: left;
}

body.instagram-mode .podium-card.place-1 {
  order: -1;
  transform: none;
  grid-template-columns: 154px 340px minmax(0, 1fr);
}

body.instagram-mode .podium-rank {
  grid-row: 1 / 4;
  align-self: stretch;
  width: auto;
  height: auto;
}

body.instagram-mode .podium-rank b {
  font-size: 74px;
}

body.instagram-mode .place-1 .podium-rank b {
  font-size: 104px;
}

body.instagram-mode .podium-logo,
body.instagram-mode .place-1 .podium-logo {
  grid-row: 1 / 4;
  width: 252px;
  height: 252px;
}

body.instagram-mode .place-1 .podium-logo {
  width: 332px;
  height: 332px;
}

body.instagram-mode .podium-label {
  font-size: 13px;
}

body.instagram-mode .podium-card h3 {
  margin: 8px 0 18px;
  font-size: 58px;
  white-space: normal;
}

body.instagram-mode .place-1 h3 {
  font-size: 74px;
}

body.instagram-mode .podium-stats {
  align-self: end;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

body.instagram-mode .podium-stats span {
  font-size: 12px;
}

body.instagram-mode .podium-stats b,
body.instagram-mode .place-1 .podium-stats b {
  font-size: 44px;
}

body.instagram-mode .champion-line {
  bottom: 24px;
}
