:root {
  color-scheme: dark;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  color: #f7f5fa;
  background: #09090b;
  font-synthesis: none;
  letter-spacing: 0;
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    #09090b;
  background-size: 48px 48px;
}

a {
  color: inherit;
  text-decoration: none;
}

.portal {
  display: grid;
  grid-template-rows: auto 1fr auto;
  width: min(100% - 48px, 1440px);
  min-height: 100svh;
  margin: 0 auto;
  padding: 24px 0 18px;
}

.portal-header,
.portal-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.portal-header {
  min-height: 54px;
}

.portal-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: #121116;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.035),
    0 10px 24px rgba(0, 0, 0, 0.32);
  isolation: isolate;
}

.brand-mark::before,
.brand-mark::after {
  position: absolute;
  width: 13px;
  height: 13px;
  content: "";
  pointer-events: none;
}

.brand-mark::before {
  top: 4px;
  left: 4px;
  border-top: 2px solid #72d7e2;
  border-left: 2px solid #72d7e2;
  border-radius: 3px 0 0;
}

.brand-mark::after {
  right: 4px;
  bottom: 4px;
  border-right: 2px solid #d77af0;
  border-bottom: 2px solid #d77af0;
  border-radius: 0 0 3px;
}

.brand-mark > span {
  position: relative;
  z-index: 1;
  font-family: "Arial Black", sans-serif;
  font-size: 15px;
  line-height: 1;
}

.brand-mark > span:first-child {
  color: #f3e9ba;
}

.brand-mark > span:last-child {
  color: #dca0ef;
}

.portal-brand > span:last-child {
  display: grid;
}

.portal-brand strong {
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 18px;
}

.portal-brand small {
  color: #827d8b;
  font-size: 8px;
  font-weight: 750;
}

.network-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #aaa5b0;
  font-size: 11px;
  font-weight: 650;
}

.network-status i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #55d899;
  box-shadow: 0 0 14px rgba(85, 216, 153, 0.72);
}

.project-section {
  display: grid;
  align-content: center;
  padding: 36px 0 42px;
}

.section-heading {
  margin-bottom: 24px;
}

.section-heading p {
  margin: 0 0 6px;
  color: #8b8592;
  font-size: 10px;
  font-weight: 800;
}

.section-heading h1 {
  margin: 0;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 38px;
  line-height: 44px;
}

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

.project-card {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 430px;
  overflow: hidden;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 8px;
  background: #121116;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.25);
  isolation: isolate;
  transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.project-card::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  content: "";
  opacity: 0.72;
  transition: opacity 180ms ease, transform 220ms ease;
}

.project-card:hover,
.project-card:focus-visible {
  transform: translateY(-4px);
  outline: none;
}

.project-card:hover::before,
.project-card:focus-visible::before {
  opacity: 1;
  transform: scale(1.035);
}

.project-sylvanas::before {
  background:
    linear-gradient(145deg, rgba(103, 188, 206, 0.18), transparent 45%),
    linear-gradient(325deg, rgba(216, 187, 110, 0.13), transparent 42%);
}

.project-sylvanas:hover,
.project-sylvanas:focus-visible {
  border-color: rgba(114, 207, 226, 0.48);
}

.project-syndra::before {
  background:
    linear-gradient(150deg, rgba(184, 74, 232, 0.25), transparent 46%),
    linear-gradient(320deg, rgba(91, 60, 172, 0.2), transparent 45%);
}

.project-syndra:hover,
.project-syndra:focus-visible {
  border-color: rgba(198, 100, 243, 0.55);
}

.project-sombra::before {
  background:
    linear-gradient(150deg, rgba(65, 210, 214, 0.19), transparent 43%),
    linear-gradient(325deg, rgba(238, 58, 143, 0.17), transparent 46%);
}

.project-sombra:hover,
.project-sombra:focus-visible {
  border-color: rgba(71, 214, 217, 0.5);
}

.project-number {
  position: absolute;
  top: 23px;
  left: 22px;
  color: rgba(255, 255, 255, 0.25);
  font-family: "Arial Black", sans-serif;
  font-size: 11px;
}

.project-status {
  position: absolute;
  top: 18px;
  right: 18px;
  padding: 5px 8px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 800;
}

.project-status.online {
  color: #72e2ad;
  background: rgba(32, 134, 88, 0.13);
}

.project-status.preparing {
  color: #a6dfe3;
  background: rgba(55, 145, 150, 0.13);
}

.project-visual {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.project-visual > img {
  width: min(58%, 220px);
  max-height: 220px;
  object-fit: contain;
  filter: drop-shadow(0 22px 34px rgba(0, 0, 0, 0.44));
  transition: transform 220ms ease;
}

.project-card:hover .project-visual > img,
.project-card:focus-visible .project-visual > img {
  transform: scale(1.035);
}

.project-copy {
  display: grid;
  align-self: end;
  min-width: 0;
}

.project-copy small {
  color: #8f8996;
  font-size: 9px;
  font-weight: 800;
}

.project-title {
  display: flex;
  align-items: center;
  min-width: 0;
  margin-top: 4px;
  gap: 9px;
}

.game-icon {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  object-fit: contain;
  filter: drop-shadow(0 5px 10px rgba(0, 0, 0, 0.34));
}

.project-copy strong {
  min-width: 0;
  margin-top: 0;
  overflow-wrap: anywhere;
  font-family: "Arial Black", "Segoe UI", sans-serif;
  font-size: 31px;
  line-height: 36px;
}

.project-copy > span {
  margin-top: 4px;
  color: #b2adb8;
  font-size: 12px;
  font-weight: 650;
}

.project-arrow {
  position: absolute;
  right: 20px;
  bottom: 22px;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 6px;
  color: #ded9e3;
  background: rgba(0, 0, 0, 0.2);
  font-size: 18px;
}

.portal-footer {
  min-height: 28px;
  color: #5f5a64;
  font-size: 9px;
  font-weight: 750;
}

@media (max-width: 820px) {
  .portal {
    width: min(100% - 28px, 680px);
  }

  .project-section {
    align-content: start;
    padding: 42px 0;
  }

  .project-grid {
    grid-template-columns: 1fr;
  }

  .project-card {
    grid-template-columns: 132px minmax(0, 1fr);
    grid-template-rows: 1fr;
    align-items: center;
    min-height: 190px;
    padding: 20px;
  }

  .project-visual {
    width: 132px;
    height: 100%;
  }

  .project-visual > img {
    width: 112px;
    max-height: 132px;
  }

  .project-copy {
    align-self: center;
    padding-right: 44px;
  }

  .project-copy strong {
    font-size: 26px;
    line-height: 31px;
  }

  .project-number {
    display: none;
  }
}

@media (max-width: 430px) {
  .portal-header {
    min-height: 48px;
  }

  .network-status {
    font-size: 0;
  }

  .section-heading h1 {
    font-size: 32px;
    line-height: 38px;
  }

  .project-card {
    grid-template-columns: 92px minmax(0, 1fr);
    min-height: 164px;
    padding: 16px;
  }

  .project-visual {
    width: 92px;
  }

  .project-visual > img {
    width: 82px;
    max-height: 102px;
  }

  .project-status {
    top: 12px;
    right: 12px;
  }

  .project-copy strong {
    font-size: 22px;
    line-height: 27px;
  }

  .project-copy {
    padding-right: 0;
  }

  .project-title {
    gap: 7px;
  }

  .game-icon {
    width: 20px;
    height: 20px;
  }

  .project-arrow {
    right: 14px;
    bottom: 14px;
    width: 34px;
    height: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
