.studio-header {
  position: relative;
  z-index: 1;
  background: #121621;
  border-bottom: 1px solid #414656;
  color: #f6f1e8;
}

.studio-header__inner {
  min-height: 77px;
  display: grid;
  grid-template-columns: minmax(max-content, 1fr) auto minmax(max-content, 1fr);
  align-items: center;
  gap: clamp(16px, 4vw, 64px);
}

.studio-header :focus-visible {
  outline-color: #ffc783;
  outline-offset: 3px;
}

.studio-wordmark,
.studio-launch,
.studio-feedback {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 44px;
  white-space: nowrap;
}

.studio-wordmark {
  gap: 0.66rem;
  font-size: clamp(1.15rem, 1.75vw, 1.55rem);
  font-weight: 700;
  letter-spacing: -0.065em;
}

.studio-wordmark__last {
  color: #ffc783;
}

.studio-wordmark__mark {
  display: flex;
  flex: 0 0 auto;
  align-items: end;
  justify-content: center;
  gap: 3px;
  width: 36px;
  height: 36px;
  padding-bottom: 8px;
  background: #ffc783;
  border-radius: 8px 8px 8px 2px;
}

.studio-wordmark__mark i {
  width: 4px;
  height: 8px;
  transform: skew(-13deg);
  border-radius: 1px 1px 0 0;
  background: #171923;
}

.studio-wordmark__mark i:nth-child(2) {
  height: 13px;
}

.studio-wordmark__mark i:nth-child(3) {
  height: 19px;
}

.studio-launches {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px;
  border: 1px solid #414756;
  border-radius: 11px;
  background: #1a1f2b;
}

.studio-launch {
  justify-content: center;
  gap: 0.58rem;
  min-height: 42px;
  padding: 0.5rem 1rem;
  border: 1px solid #554438;
  border-radius: 7px;
  background: #282429;
  color: #ffce9d;
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.22;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}

.studio-launch--riftline-defense {
  color: #c3daff;
  background: #242d41;
  border-color: #3d4e6d;
}

.studio-launch--velvet-room {
  color: #cce6c8;
  background: #222f2a;
  border-color: #405850;
}

.studio-launch--off-grid-harbors {
  color: #addfd3;
  background: #203439;
  border-color: #3b5c60;
}

.studio-launch__short {
  display: none;
}

.studio-launch:hover {
  background: #ffce9d;
  border-color: #ffce9d;
  color: #1b1922;
}

.studio-launch--riftline-defense:hover {
  background: #c3daff;
  border-color: #c3daff;
}

.studio-launch--velvet-room:hover {
  color: #17251b;
  background: #cce6c8;
  border-color: #cce6c8;
}

.studio-launch--off-grid-harbors:hover {
  color: #132d2b;
  background: #addfd3;
  border-color: #addfd3;
}

.studio-launch__icon {
  flex-shrink: 0;
  width: 0.56rem;
  height: 0.62rem;
  background: currentColor;
  clip-path: polygon(0 0, 100% 50%, 0 100%);
}

.studio-feedback {
  justify-self: end;
  gap: 0.6rem;
  color: #e4ded6;
  font-size: 0.875rem;
  font-weight: 700;
}

.studio-feedback__arrow {
  color: #ffc783;
  font-size: 1rem;
}

.studio-feedback:hover,
.studio-feedback[aria-current] {
  color: #ffc783;
}

@media (max-width: 1099px) {
  .studio-header__inner {
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "brand feedback" "launch launch";
    gap: 0.35rem 0.75rem;
    padding-block: 0.55rem 0.7rem;
  }

  .studio-wordmark {
    grid-area: brand;
  }

  .studio-wordmark__mark {
    width: 30px;
    height: 30px;
    padding-bottom: 5px;
  }

  .studio-launches {
    grid-area: launch;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .studio-launch {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding-inline: 0.35rem;
  }

  .studio-launch__name { display: none; }
  .studio-launch__short { display: inline; }

  .studio-feedback {
    grid-area: feedback;
  }
}

@media (max-width: 540px) {
  .studio-launches {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 380px) {
  .studio-launch {
    font-size: .78rem;
    padding-inline: .2rem;
  }

  .studio-launch__icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .studio-launch {
    transition: none;
  }
}
