/* Server archive/detail/submit interaction polish. */

.server-page--figma {
  max-width: 1440px;
  margin: 0 auto;
}

.server-hero-fg {
  position: relative;
  min-height: 680px;
  display: grid;
  place-items: center;
  padding: 72px 20px 0;
  background: #2a641c;
}

.server-hero-fg__logo {
  position: absolute;
  top: 72px;
  left: 50%;
  width: 139px;
  height: 98px;
  object-fit: contain;
  transform: translateX(-50%);
  image-rendering: pixelated;
}

.server-hero-fg__play {
  position: absolute;
  top: 214px;
  left: 50%;
  width: 60px;
  height: 60px;
  display: grid;
  place-items: center;
  transform: translateX(-50%);
  background: #f3bf56;
  color: #0b0a09;
  font-size: 22px;
  box-shadow: 0 4px 0 rgba(0, 0, 0, 0.42);
}

.server-hero-fg__card {
  width: min(600px, 100%);
  min-height: 436px;
  margin-top: 172px;
  padding: 88px 32px 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  background: #050404;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.5);
  text-align: center;
}

.server-hero-fg__meta,
.server-hero-fg__badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.server-hero-fg__meta span,
.server-hero-fg__badges span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.server-hero-fg__badges span {
  min-height: 30px;
  padding: 0 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-transform: none;
}

.server-hero-fg__status .server-status-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  inline-size: 10px;
  block-size: 10px;
  display: block;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #f35656;
  box-shadow: 0 0 0 3px rgba(243, 86, 86, 0.16);
}

.server-hero-fg__status.is-online .server-status-dot {
  background: #57d365;
  box-shadow: 0 0 0 3px rgba(87, 211, 101, 0.16);
}

.server-hero-fg__card h1 {
  max-width: 100%;
  color: #fff;
  font-family: "Minecraft", "Minecraft Ten v2", monospace;
  font-size: clamp(42px, 6vw, 64px);
  line-height: 1;
  overflow-wrap: anywhere;
}

.server-hero-fg__ip {
  box-shadow: 0 3px 0 #262423;
}

.server-owner-notice {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  padding: 16px 18px;
  background: #172616;
  color: #dff7d9;
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.32);
}

.server-owner-notice strong {
  color: #fff;
  font-size: 18px;
  line-height: 1.25;
}

.server-owner-notice span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.55;
}

.server-ip-wrap {
  display: inline-flex;
  max-width: 100%;
  align-items: stretch;
  gap: 0;
}

.server-ip-copy {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-ip-copy__value {
  overflow: hidden;
  text-overflow: ellipsis;
}

.server-ip-copy__icon {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.server-ip-copy.is-copied {
  background: #57d365;
  box-shadow: 0 3px 0 #2f7c21;
  color: #081407;
}

.server-ip-copy.is-copy-error {
  background: #f35656;
  box-shadow: 0 3px 0 #912f2f;
}

.server-ip-status {
  position: fixed;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.server-ip-status:not(:empty) {
  position: static;
  width: auto;
  height: auto;
  clip: auto;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 10px;
  background: rgba(87, 211, 101, 0.16);
  color: #a5ffa1;
  font-size: 11px;
  line-height: 1;
  text-transform: none;
}

.server-hero-fg__actions {
  position: absolute;
  right: 24px;
  bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  width: auto;
}

.server-mini-action {
  position: relative;
}

.server-mini-action > summary {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-size: 11px;
  line-height: 1;
  text-transform: none;
  list-style: none;
  box-shadow: inset 0 -3px 0 rgba(0, 0, 0, 0.28);
}

.server-mini-action > summary::-webkit-details-marker {
  display: none;
}

.server-mini-action__panel {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  z-index: 12;
  width: min(320px, 86vw);
  padding: 12px;
  transform: translateX(-50%);
  background: #151312;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 0 rgba(0, 0, 0, 0.42);
  text-align: left;
}

.server-mini-action__panel p,
.server-mini-action__panel code {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  line-height: 1.5;
}

.server-mini-action__panel form {
  display: grid;
  gap: 8px;
}

.server-mini-action__panel p + form {
  margin-top: 8px;
}

.server-mini-action__panel select,
.server-mini-action__panel textarea {
  width: 100%;
  border: 1px solid #45403f;
  background: #0f0e0d;
  color: #fff;
  font-size: 12px;
  line-height: 1.35;
  padding: 9px 10px;
}

.server-mini-action__panel button {
  min-height: 34px;
  padding: 0 12px;
  background: #f3bf56;
  color: #171615;
  font-size: 10px;
  line-height: 1;
  text-transform: none;
  box-shadow: 0 3px 0 #ba7d00;
}

.server-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.server-status-pill::before {
  width: 7px;
  height: 7px;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.08);
  content: "";
}

.server-trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.server-trust-strip span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  line-height: 1;
  text-transform: none;
}

.server-page--figma .server-team-card {
  min-height: 230px;
  justify-content: flex-end;
}

.server-page--figma .server-team-card img {
  width: 132px;
  height: 176px;
  object-fit: contain;
  image-rendering: pixelated;
}

.server-submit-progress {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 18px;
}

.server-submit-progress span {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: #1a1817;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  line-height: 1;
  text-align: center;
}

.server-submit-progress span.is-complete {
  border-color: rgba(243, 191, 86, 0.54);
  background: #27221a;
  color: #fff;
}

.server-submit-gallery-status,
.server-submit-form-status {
  min-height: 18px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  line-height: 1.4;
}

.server-submit-form-status {
  margin: 10px 0 0;
}

.server-submit-form-status.is-error,
.server-submit-gallery-status.is-error {
  color: #ff9595;
}

@media (max-width: 720px) {
  .server-hero-fg {
    min-height: 580px;
    padding-top: 54px;
  }

  .server-hero-fg__logo {
    top: 42px;
  }

  .server-hero-fg__play {
    top: 166px;
  }

  .server-hero-fg__card {
    min-height: 360px;
    margin-top: 130px;
    padding: 76px 20px 34px;
  }

  .server-hero-fg__meta span {
    font-size: 15px;
  }

  .server-hero-fg__actions {
    position: static;
    width: 100%;
  }

  .server-mini-action__panel {
    left: 0;
    transform: none;
  }

  .server-ip-wrap {
    display: flex;
  }

  .server-ip-copy {
    flex: 1 1 auto;
    min-width: 0;
  }

  .server-submit-progress {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 460px) {
  .server-submit-progress {
    grid-template-columns: 1fr;
  }
}
