/* Earth landing v20260720-earth8 — stacked join + copyable release version. */

:root {
  --bg: #070b12;
  --ink: #f2f4f8;
  --muted: #9aa8bc;
  --line: rgba(242, 244, 248, 0.16);
  --accent: #5ec8ff;
  --panel: rgba(12, 20, 34, 0.88);
  --font-display: "Press Start 2P", ui-monospace, monospace;
  --font-ui: "IBM Plex Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  font-family: var(--font-ui);
  color: var(--ink);
  background: var(--bg);
}

.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 90% 55% at 50% -5%, rgba(50, 110, 160, 0.32), transparent 55%),
    linear-gradient(180deg, #05080f 0%, #0a1220 55%, #070b12 100%);
}

.page {
  position: relative;
  z-index: 1;
  max-width: 34rem;
  margin: 0 auto;
  padding: clamp(1.75rem, 5vw, 3rem) clamp(1.1rem, 4vw, 1.75rem) 3rem;
}

.head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin: 0 0 1.5rem;
}

.head__icon {
  flex: 0 0 auto;
  width: 72px;
  height: 72px;
  image-rendering: pixelated;
  border: 1px solid var(--line);
  background: var(--panel);
}

.head__title {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(0.7rem, 2.1vw, 0.88rem);
  line-height: 1.55;
  font-weight: 400;
  color: #fff;
}

.head__tag {
  margin: 0.65rem 0 0;
  font-size: 0.95rem;
  line-height: 1.4;
  font-weight: 600;
}

.tag-sep {
  color: #555;
  margin: 0 0.15em;
}

.tag--earth { color: #5555ff; }
.tag--pvp { color: #ff5555; }
.tag--nations { color: #ffaa00; }
.tag--anti { color: #55ff55; }

.join {
  margin: 0;
  padding: 0.25rem 0 0.35rem;
  background: var(--panel);
  border: 1px solid var(--line);
}

.join__heading {
  margin: 0;
  padding: 0.85rem 1.15rem 0.7rem;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.field {
  padding: 1rem 1.15rem 1.1rem;
  border-bottom: 1px solid var(--line);
}

.field:last-child {
  border-bottom: 0;
}

.field__label {
  margin: 0 0 0.45rem;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}

.field__edition,
.copy-ip__text {
  font-size: clamp(1.05rem, 3vw, 1.25rem);
  line-height: 1.35;
}

.field__edition {
  margin: 0 0 0.35rem;
  font-weight: 400;
  color: var(--ink);
}

.copy-ip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  width: 100%;
  margin: 0;
  padding: 0.1rem 0;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.copy-ip:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.copy-ip__text {
  flex: 1 1 auto;
  min-width: 0;
  font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
  font-weight: 400;
  color: var(--accent);
  word-break: break-all;
}

.copy-ip__icon {
  position: relative;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  color: var(--muted);
}

.copy-ip__clip,
.copy-ip__check {
  position: absolute;
  inset: 0;
  display: block;
  transition: opacity 0.18s ease, transform 0.22s ease;
}

.copy-ip__clip {
  opacity: 1;
  transform: scale(1);
}

.copy-ip__check {
  opacity: 0;
  transform: scale(0.55);
  color: var(--accent);
}

.copy-ip:hover .copy-ip__icon {
  color: var(--ink);
}

.copy-ip.is-copied .copy-ip__clip {
  opacity: 0;
  transform: scale(0.55);
}

.copy-ip.is-copied .copy-ip__check {
  opacity: 1;
  transform: scale(1);
  animation: copy-pop 0.35s ease;
}

@keyframes copy-pop {
  0% {
    transform: scale(0.55);
  }
  55% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

.map-btn {
  display: block;
  margin: 1.15rem 0 0;
  padding: 1rem 1.15rem;
  text-align: center;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--bg);
  background: var(--accent);
  text-decoration: none;
  border: 1px solid transparent;
}

.map-btn:hover {
  filter: brightness(1.08);
  color: var(--bg);
}
