:root {
  --bg: #05090d;
  --panel: rgba(10, 18, 25, .90);
  --panel-soft: rgba(14, 25, 34, .80);
  --line: rgba(255, 255, 255, .10);
  --text: #f2f5f7;
  --muted: #82909d;
  --blue: #2d9cff;
  --blue-dark: #123b5d;
  --orange: #ff8a1f;
  --green: #66d13f;
  --red: #ff5b47;
  --yellow: #f2bc31;
  --radius: 14px;
  --shadow: 0 18px 55px rgba(0, 0, 0, .40);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 12% 20%, rgba(38, 128, 198, .20), transparent 28%),
    radial-gradient(circle at 88% 55%, rgba(255, 113, 22, .18), transparent 30%),
    linear-gradient(135deg, #05090d 0%, #08121a 48%, #0c0c0e 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

body::before {
  background-image: linear-gradient(rgba(255, 255, 255, .016) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .016) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, #000, transparent 82%);
}

body::after {
  background: linear-gradient(90deg, rgba(0, 119, 255, .09), transparent 25%, transparent 75%, rgba(255, 107, 0, .08));
}

a {
  color: inherit;
}

button,
input {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
}

.app {
  width: min(1600px, calc(100% - 36px));
  margin: 0 auto;
  padding: 22px 0 0;
}

.topbar {
  min-height: 72px;
  display: flex;
  align-items: center;
  gap: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 20px;
  background: rgba(5, 12, 17, .82);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow);
  position: sticky;
  top: 12px;
  z-index: 30;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 170px;
  text-decoration: none;
}

.brand-mark {
  font-size: 25px;
  font-weight: 950;
  letter-spacing: -1.6px;
  font-style: italic;
}

.brand-mark span {
  color: var(--orange);
}

.brand small {
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 9px;
}

.stepper {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  max-width: 720px;
  margin: auto;
}

.step {
  position: relative;
  text-align: center;
  color: #586470;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-weight: 800;
  padding-top: 20px;
}

.step::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%);
  border-radius: 50%;
  border: 2px solid #586470;
  background: #091016;
  z-index: 2;
}

.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 55%;
  right: -45%;
  top: 8px;
  height: 2px;
  background: #26323c;
}

.step.active {
  color: var(--text);
}

.step.active::before {
  border-color: var(--orange);
  background: var(--orange);
  box-shadow: 0 0 18px rgba(255, 138, 31, .8);
}

.step.done {
  color: #a9b3bc;
}

.step.done::before {
  border-color: var(--blue);
  background: var(--blue);
  box-shadow: 0 0 12px rgba(45, 156, 255, .55);
}

.user-area {
  min-width: 190px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.user-avatar {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid var(--orange);
}

.user-name {
  font-weight: 800;
  font-size: 12px;
}

.user-status {
  color: var(--green);
  font-size: 10px;
}

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

.icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #0a1218;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}

.hero {
  margin: 18px 0;
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 18px;
}

.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(15, 27, 37, .93), rgba(8, 15, 21, .93));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.lobby-summary {
  padding: 26px;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
}

.lobby-summary.complete {
  background: linear-gradient(145deg, rgba(17, 54, 27, .95), rgba(7, 28, 16, .95));
  border-color: rgba(102, 209, 63, .35);
}

.eyebrow {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1.4px;
  margin-bottom: 7px;
}

.lobby-summary.complete .eyebrow {
  color: var(--green);
}

.lobby-summary h1 {
  margin: 0;
  font-size: 27px;
  letter-spacing: -.6px;
}

.lobby-summary p {
  color: var(--muted);
  max-width: 280px;
  font-size: 13px;
  line-height: 1.6;
}

.progress-ring {
  --p: 0;
  width: 158px;
  aspect-ratio: 1;
  margin: 20px auto;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: conic-gradient(var(--blue) calc(var(--p)*1%), #17242e 0);
  box-shadow: 0 0 35px rgba(45, 156, 255, .25);
  position: relative;
}

.progress-ring::before {
  content: "";
  width: 126px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: #0a1218;
  position: absolute;
}

.progress-ring .progress-value {
  position: relative;
  font-size: 36px;
  font-weight: 950;
  letter-spacing: -2px;
}

.progress-ring .progress-label {
  position: relative;
  display: block;
  color: var(--muted);
  text-transform: uppercase;
  font-size: 9px;
  letter-spacing: 1px;
}

.btn {
  border: 0;
  border-radius: 8px;
  padding: 12px 18px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .5px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .22s ease;
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.08);
}

.btn-primary {
  background: linear-gradient(180deg, #7ae34c, #4fae28);
  color: #061006;
  box-shadow: 0 8px 25px rgba(86, 191, 44, .25);
}

.btn-steam {
  background: linear-gradient(180deg, #268cda, #1666a3);
  color: #fff;
}

.btn-secondary {
  background: linear-gradient(180deg, #2c8edb, #1765a4);
  color: white;
}

.btn-warm {
  background: linear-gradient(180deg, #f4c13a, #c58a0d);
  color: #1b1200;
}

.btn-danger-ghost {
  background: transparent;
  color: #7f8b95;
  padding: 9px 12px;
  font-size: 11px;
}

.btn:disabled {
  opacity: .35;
  cursor: not-allowed;
  transform: none;
}

.lobby-panel {
  padding: 14px;
  min-height: 360px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 8px 4px 16px;
}

.section-title {
  margin: 0;
  font-size: 18px;
  letter-spacing: -.3px;
}

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

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

.player-card {
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(22, 34, 44, .95), rgba(10, 17, 23, .95));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 13px 8px;
  text-align: center;
  transition: .2s ease;
}

.player-card:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 156, 255, .45);
}

.player-card.me {
  border-color: rgba(242, 188, 49, .55);
  box-shadow: inset 0 0 25px rgba(242, 188, 49, .05);
}

.player-card.empty {
  opacity: .55;
  border-style: dashed;
}

.player-card img,
.empty-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #425260;
  background: #18232d;
}

.empty-avatar {
  display: grid;
  place-items: center;
  color: #63717c;
  font-size: 24px;
}

.player-card strong {
  margin-top: 9px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
}

.player-card small {
  color: var(--green);
  margin-top: 3px;
  font-size: 9px;
}

.player-card .me-label {
  color: var(--yellow);
}

.tipbar {
  margin-top: 12px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 9px;
  display: flex;
  gap: 12px;
  color: var(--muted);
  font-size: 11px;
  background: rgba(4, 10, 14, .55);
}

.tipbar b {
  color: var(--blue);
  text-transform: uppercase;
}

.match-stage {
  display: none;
  margin-bottom: 18px;
}

.phase-banner {
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  background: linear-gradient(90deg, rgba(18, 55, 83, .95), rgba(18, 29, 38, .9), rgba(79, 39, 11, .88));
  border-bottom: 1px solid var(--line);
}

.phase-main {
  display: flex;
  align-items: center;
  gap: 13px;
}

.phase-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: rgba(45, 156, 255, .18);
  border: 1px solid rgba(45, 156, 255, .35);
  font-size: 22px;
}

.phase-banner h2 {
  margin: 0;
  font-size: 20px;
}

.phase-banner p {
  margin: 4px 0 0;
  color: #a8b4bd;
  font-size: 12px;
}

.vote-counter {
  padding: 10px 14px;
  border: 1px solid rgba(255, 138, 31, .35);
  background: rgba(83, 39, 8, .65);
  border-radius: 9px;
  text-align: center;
  min-width: 115px;
}

.vote-counter strong {
  color: var(--orange);
  font-size: 20px;
}

.teams-wrap {
  padding: 18px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: stretch;
  gap: 16px;
}

.team-card {
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--line);
}

.team-card.ct {
  background: linear-gradient(135deg, rgba(8, 49, 79, .9), rgba(8, 20, 30, .95));
  border-color: rgba(45, 156, 255, .28);
}

.team-card.tr {
  background: linear-gradient(135deg, rgba(74, 35, 9, .9), rgba(27, 17, 10, .95));
  border-color: rgba(255, 138, 31, .28);
}

.team-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 16px;
  font-weight: 950;
  text-transform: uppercase;
}

.team-card.ct .team-title {
  color: #4eb0ff;
}

.team-card.tr .team-title {
  color: #ffa24d;
}

.team-list {
  display: grid;
  gap: 8px;
}

.team-player {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, .07);
  background: rgba(0, 0, 0, .18);
  border-radius: 8px;
}

.team-player img {
  width: 32px;
  height: 32px;
  object-fit: cover;
  border-radius: 50%;
}

.team-player span {
  font-size: 12px;
  font-weight: 800;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.vs {
  align-self: center;
  font-size: 30px;
  font-weight: 950;
  color: #c7cfd5;
  opacity: .8;
}

.maps-section {
  padding: 0 18px 18px;
}

.maps-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 10px;
}

.map-btn {
  position: relative;
  min-height: 205px;
  padding: 0;
  overflow: hidden;
  border-radius: 11px;
  border: 1px solid var(--line);
  background: #101820;
  color: white;
  cursor: pointer;
  text-align: left;
  transition: .22s ease;
}

.map-btn:hover:not(:disabled) {
  transform: translateY(-4px);
  border-color: var(--blue);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
}

.map-btn img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 25%, rgba(3, 7, 10, .55) 58%, rgba(3, 7, 10, .97));
}

.map-copy {
  position: absolute;
  z-index: 2;
  left: 10px;
  right: 10px;
  bottom: 10px;
  text-align: center;
}

.map-copy strong {
  display: block;
  font-size: 15px;
  text-transform: uppercase;
  text-shadow: 0 2px 8px #000;
}

.map-status {
  display: block;
  color: #95a3ae;
  font-size: 9px;
  margin: 5px 0;
  min-height: 12px;
}

.map-votes {
  display: block;
  border-radius: 5px;
  background: linear-gradient(180deg, #317fb9, #155581);
  padding: 6px 7px;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
}

.map-btn:disabled {
  cursor: not-allowed;
}

.map-btn.banned_ct img,
.map-btn.banned_tr img {
  filter: grayscale(1) brightness(.35);
}

.map-btn.banned_ct::before,
.map-btn.banned_tr::before {
  content: "×";
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255, 70, 53, .88);
  font-size: 25px;
  font-weight: 900;
}

.map-btn.picked {
  border-color: var(--green);
  box-shadow: 0 0 0 2px rgba(102, 209, 63, .22), 0 0 35px rgba(102, 209, 63, .26);
}

.map-btn.picked::before {
  content: "✓";
  position: absolute;
  z-index: 3;
  top: 9px;
  right: 10px;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--green);
  color: #071105;
  font-weight: 950;
}

.map-btn.picked .map-votes {
  background: linear-gradient(180deg, #74d84c, #4ca42b);
  color: #071105;
}

.result-card {
  display: none;
  margin-bottom: 18px;
  padding: 18px;
}

.result-grid {
  display: grid;
  grid-template-columns: 280px 1fr 320px;
  gap: 14px;
}

.result-box {
  min-height: 230px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 22px;
  background: rgba(7, 14, 19, .78);
}

.result-map {
  background: linear-gradient(145deg, rgba(17, 56, 27, .9), rgba(7, 25, 14, .94));
  border-color: rgba(102, 209, 63, .28);
}

.result-map h2 {
  color: var(--green);
  margin: 0 0 24px;
  font-size: 18px;
}

.result-map-name {
  font-size: 30px;
  font-weight: 950;
  text-transform: uppercase;
}

.connect-box {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
}

.connect-box h3,
.ready-box h3 {
  margin: 0 0 8px;
  text-transform: uppercase;
  font-size: 15px;
}

.connect-box p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.command {
  display: block;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #10171d;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.connect-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 12px;
}

.ready-box {
  text-align: center;
  border-color: rgba(255, 91, 71, .35);
  background: linear-gradient(145deg, rgba(62, 20, 15, .86), rgba(27, 10, 8, .92));
}

.ready-box h3 {
  color: var(--red);
}

.ready-box p {
  color: #ffc3bb;
  line-height: 1.5;
  font-size: 12px;
}

.ready-code {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 950;
  margin: 8px 0;
}

.rcon-status {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.about {
  margin-bottom: 18px;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 140px 1fr auto;
  align-items: center;
  gap: 18px;
}

.about-title {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 950;
  text-transform: uppercase;
}

.about p {
  margin: 0;
  color: #93a0aa;
  font-size: 11px;
  line-height: 1.5;
}

.stack {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.tech {
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: #a7b2bb;
  font-size: 9px;
  background: rgba(0, 0, 0, .18);
}

.footer {
  padding: 16px 0 24px;
  color: #77838d;
  display: flex;
  justify-content: space-between;
  font-size: 10px;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  padding: 13px 17px;
  border-radius: 9px;
  background: #142219;
  border: 1px solid rgba(102, 209, 63, .35);
  color: #c8ffb6;
  box-shadow: var(--shadow);
  transform: translateY(30px);
  opacity: 0;
  pointer-events: none;
  transition: .25s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

.hidden {
  display: none !important;
}

@media (max-width:1200px) {
  .maps-grid {
    grid-template-columns: repeat(4, 1fr)
  }

  .result-grid {
    grid-template-columns: 1fr 1fr
  }

  .ready-box {
    grid-column: 1/-1
  }

  .stepper {
    max-width: 560px
  }

  .user-area {
    min-width: auto
  }

  .user-name-wrap {
    display: none
  }
}

@media (max-width:850px) {
  .app {
    width: min(100% - 20px, 1600px)
  }

  .topbar {
    position: relative;
    top: 0;
    flex-wrap: wrap
  }

  .brand {
    min-width: auto
  }

  .stepper {
    order: 3;
    width: 100%;
    max-width: none
  }

  .hero {
    grid-template-columns: 1fr
  }

  .players-grid {
    grid-template-columns: repeat(3, 1fr)
  }

  .teams-wrap {
    grid-template-columns: 1fr
  }

  .vs {
    text-align: center
  }

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

  .result-grid {
    grid-template-columns: 1fr
  }

  .ready-box {
    grid-column: auto
  }

  .about {
    grid-template-columns: 1fr
  }

  .stack {
    justify-content: flex-start
  }

  .footer {
    flex-direction: column;
    gap: 7px
  }
}

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

  .step {
    font-size: 8px
  }

  .step:nth-child(4),
  .step:nth-child(5) {
    display: none
  }

  .stepper {
    grid-template-columns: repeat(3, 1fr)
  }

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

  .connect-actions {
    grid-template-columns: 1fr
  }

  .phase-banner {
    align-items: flex-start;
    flex-direction: column
  }

  .user-area {
    margin-left: auto
  }

  .lobby-summary {
    min-height: 300px
  }

  .player-card {
    min-height: 128px
  }
}

/* =========================================================
   PREPARAÇÃO DO SERVIDOR
   ========================================================= */

.server-loading {
  display: none;
  position: relative;
  overflow: hidden;
  margin-top: 24px;
  border: 1px solid rgba(50, 204, 110, 0.28);
  background:
    radial-gradient(circle at 20% 50%,
      rgba(50, 204, 110, 0.14),
      transparent 38%),
    linear-gradient(135deg,
      rgba(7, 20, 17, 0.98),
      rgba(7, 14, 23, 0.98));
}

.server-loading.visible {
  display: block;
  animation: serverLoadingEnter 0.45s ease both;
}

.server-loading::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.32;
  background:
    linear-gradient(90deg,
      transparent,
      rgba(50, 204, 110, 0.08),
      transparent);
  transform: translateX(-100%);
  animation: serverLoadingShine 3s linear infinite;
}

.server-loading-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  align-items: center;
  gap: 38px;
  padding: 42px;
}

.server-loader {
  position: relative;
  width: 150px;
  height: 150px;
  margin: 0 auto;
  display: grid;
  place-items: center;
}

.server-loader-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 5px solid rgba(255, 255, 255, 0.07);
  border-top-color: #32cc6e;
  border-right-color: rgba(50, 204, 110, 0.42);
  box-shadow:
    0 0 28px rgba(50, 204, 110, 0.24),
    inset 0 0 25px rgba(50, 204, 110, 0.08);
  animation: serverLoaderSpin 1.1s linear infinite;
}

.server-loader-ring::before {
  content: "";
  position: absolute;
  inset: 13px;
  border-radius: inherit;
  border: 2px solid rgba(30, 144, 255, 0.14);
  border-bottom-color: #1e90ff;
  animation: serverLoaderSpinReverse 1.8s linear infinite;
}

.server-loader-core {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 1px;
  background:
    radial-gradient(circle at 35% 30%,
      rgba(50, 204, 110, 0.28),
      rgba(4, 14, 19, 0.96) 65%);
  border: 1px solid rgba(50, 204, 110, 0.36);
  box-shadow: inset 0 0 25px rgba(50, 204, 110, 0.1);
}

.server-loading-copy h2 {
  margin: 5px 0 10px;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.1;
}

.server-loading-copy>p {
  max-width: 760px;
  margin: 0;
  color: var(--muted, #9aa6b2);
  line-height: 1.65;
}

.loading-progress {
  position: relative;
  height: 6px;
  margin: 25px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.loading-progress-bar {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg,
      transparent,
      #32cc6e,
      #7df2a7,
      transparent);
  animation: serverProgress 1.8s ease-in-out infinite;
}

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

.loading-step {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 74px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.025);
  opacity: 0.52;
  transition:
    opacity 0.25s ease,
    border-color 0.25s ease,
    background 0.25s ease;
}

.loading-step.active {
  opacity: 1;
  border-color: rgba(50, 204, 110, 0.34);
  background: rgba(50, 204, 110, 0.07);
}

.loading-step.completed {
  opacity: 0.85;
  border-color: rgba(50, 204, 110, 0.22);
}

.loading-step-icon {
  flex: 0 0 auto;
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #32cc6e;
  font-size: 13px;
  font-weight: 900;
  border: 2px solid currentColor;
}

.loading-step.active .loading-step-icon:empty {
  border-right-color: transparent;
  animation: serverLoaderSpin 0.8s linear infinite;
}

.loading-step strong,
.loading-step small {
  display: block;
}

.loading-step strong {
  margin-bottom: 4px;
  color: #fff;
  font-size: 13px;
}

.loading-step small {
  color: var(--muted, #9aa6b2);
  font-size: 11px;
  line-height: 1.35;
}

.loading-tip {
  margin-top: 18px;
  padding: 13px 15px;
  color: #aab6c2;
  font-size: 12px;
  line-height: 1.55;
  border-left: 3px solid #32cc6e;
  background: rgba(50, 204, 110, 0.05);
}

.loading-tip strong {
  color: #fff;
}

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

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

@keyframes serverProgress {
  0% {
    left: -45%;
  }

  100% {
    left: 105%;
  }
}

@keyframes serverLoadingShine {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

@keyframes serverLoadingEnter {
  from {
    opacity: 0;
    transform: translateY(15px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 820px) {
  .server-loading-content {
    grid-template-columns: 1fr;
    gap: 25px;
    padding: 28px 20px;
    text-align: center;
  }

  .loading-steps {
    grid-template-columns: 1fr;
    text-align: left;
  }

  .loading-tip {
    text-align: left;
  }

  .server-loader {
    width: 120px;
    height: 120px;
  }

  .server-loader-core {
    width: 70px;
    height: 70px;
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {

  .server-loader-ring,
  .server-loader-ring::before,
  .loading-progress-bar,
  .server-loading::before {
    animation-duration: 4s;
  }
}