:root {
  --bg-deep: #081c27;
  --bg-mid: #12384b;
  --bg-fog: #1c657d;
  --frame-bg: rgba(213, 249, 244, 0.18);
  --frame-bg-strong: rgba(197, 241, 234, 0.26);
  --frame-border: rgba(227, 255, 250, 0.46);
  --ink: #e9fbff;
  --ink-soft: #d2eef3;
  --ink-dark: #173f4a;
  --accent: #20b29b;
  --accent-strong: #1d7fb3;
  --ring: rgba(31, 181, 154, 0.3);
  --shadow-pixel: 0 4px 0 rgba(3, 26, 35, 0.35), 0 14px 34px rgba(2, 18, 26, 0.52);
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  font-family: "Manrope", "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(rgba(7, 22, 33, 0.38), rgba(7, 22, 33, 0.42)),
    url("./assets/minecraft-panorama-0.png"),
    radial-gradient(1200px 700px at 10% 5%, rgba(95, 199, 180, 0.18), transparent 60%),
    radial-gradient(1200px 800px at 90% 95%, rgba(78, 162, 212, 0.18), transparent 58%),
    linear-gradient(150deg, var(--bg-deep) 0%, var(--bg-mid) 55%, var(--bg-fog) 100%);
  background-size: cover, cover, auto, auto, auto;
  background-position: center, center, center, center, center;
  background-attachment: fixed;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), transparent 30%),
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, 0.06), transparent 36%);
}

.bg-glow {
  position: fixed;
  width: 38vw;
  height: 38vw;
  border-radius: 50%;
  filter: blur(56px);
  opacity: 0.18;
  pointer-events: none;
}

.bg-glow--left {
  left: -14vw;
  top: -14vw;
  background: #53cda4;
}

.bg-glow--right {
  right: -12vw;
  bottom: -14vw;
  background: #4fa7df;
}

.hero {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 22px;
}

.layout {
  width: min(1040px, 100%);
  display: grid;
  gap: 14px;
  transform: translateY(-26px);
  animation: card-in 420ms cubic-bezier(.2,.8,.2,1) forwards;
}

.pixel-frame {
  position: relative;
  border-radius: 4px;
  border: 2px solid var(--frame-border);
  background: linear-gradient(160deg, var(--frame-bg-strong), var(--frame-bg));
  box-shadow: var(--shadow-pixel);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  overflow: hidden;
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

.pixel-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(125deg, rgba(255, 255, 255, 0.22), transparent 32%, transparent 68%, rgba(255, 255, 255, 0.12));
}

.pixel-frame::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(234, 255, 252, 0.28);
  pointer-events: none;
}

.title-frame {
  width: fit-content;
  max-width: 100%;
  justify-self: center;
  padding: 14px 20px;
  border-color: rgba(221, 255, 250, 0.7);
  background: linear-gradient(155deg, rgba(224, 255, 249, 0.34), rgba(171, 229, 223, 0.2));
  box-shadow:
    0 5px 0 rgba(7, 50, 66, 0.45),
    0 16px 32px rgba(2, 22, 31, 0.5);
}

.title-frame:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 6px 0 rgba(7, 50, 66, 0.48),
    0 18px 36px rgba(2, 25, 36, 0.55),
    0 0 0 4px rgba(160, 244, 226, 0.18);
}

h1 {
  margin: 0;
  font-family: "Sora", "Manrope", sans-serif;
  font-weight: 800;
  line-height: 1.2;
  font-size: clamp(1.35rem, 1.02rem + 1.3vw, 2.15rem);
  text-align: center;
  text-wrap: balance;
  text-shadow: 0 2px 12px rgba(6, 44, 57, 0.32);
}

.subtitle {
  margin: 0;
  text-align: center;
  color: #e4f8fc;
  font-size: clamp(0.96rem, 0.9rem + 0.22vw, 1.06rem);
  line-height: 1.55;
  text-shadow: 0 1px 10px rgba(10, 34, 44, 0.35);
}

.details-frame {
  margin-top: 24px;
  padding: 16px;
  border-color: rgba(197, 246, 237, 0.62);
  background: linear-gradient(160deg, rgba(176, 233, 236, 0.28), rgba(143, 204, 217, 0.2));
  box-shadow:
    0 5px 0 rgba(7, 48, 63, 0.44),
    0 18px 36px rgba(3, 22, 32, 0.52);
}

.details-frame:hover {
  transform: translateY(-3px) scale(1.012);
  box-shadow:
    0 6px 0 rgba(7, 48, 63, 0.48),
    0 22px 42px rgba(3, 26, 38, 0.58),
    0 0 0 4px rgba(151, 227, 239, 0.18);
}

.details-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
}

.details-grid section {
  position: relative;
  z-index: 1;
  padding: 2px;
}

.details-grid section + section {
  border-left: 1px solid rgba(222, 255, 249, 0.32);
  padding-left: 16px;
}

h2 {
  margin: 0 0 10px;
  font-size: 1.04rem;
  font-weight: 700;
  color: var(--ink-dark);
  position: relative;
  width: fit-content;
  padding-bottom: 4px;
}

h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, rgba(41, 124, 150, 0.85), rgba(91, 211, 185, 0.75));
  border-radius: 2px;
}

.details-grid p {
  margin: 0;
  color: #e7fbff;
  font-size: clamp(0.95rem, 0.9rem + 0.2vw, 1.03rem);
  line-height: 1.66;
  text-shadow: 0 1px 8px rgba(6, 37, 47, 0.35);
}

.details-grid h2 {
  color: #eefcff;
  text-shadow: 0 1px 8px rgba(5, 36, 47, 0.35);
}

.details-grid section p + p {
  margin-top: 10px;
}

.connect-block {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 0;
  padding-top: 2px;
}

.connect-block h2 {
  color: var(--ink);
}

.connect-block h2::after {
  display: none;
}

.ip-chip {
  margin-top: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: min(100%, 420px);
  max-width: 100%;
  border: 2px solid rgba(231, 255, 250, 0.6);
  border-radius: 4px;
  padding: 17px 22px;
  font: 700 clamp(1.03rem, 0.86rem + 0.5vw, 1.24rem) "Manrope", sans-serif;
  color: #fff;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-strong) 100%);
  box-shadow:
    0 4px 0 rgba(11, 67, 83, 0.6),
    0 10px 26px rgba(17, 95, 119, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
  cursor: pointer;
  transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
  text-wrap: balance;
}

.ip-chip:hover {
  transform: translateY(-1px) scale(1.012);
  box-shadow:
    0 5px 0 rgba(11, 67, 83, 0.62),
    0 14px 30px rgba(18, 103, 128, 0.4),
    0 0 0 6px var(--ring),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.ip-chip:focus-visible {
  outline: 0;
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.86),
    0 0 0 7px rgba(31, 157, 132, 0.78);
}

.ip-chip:active,
.ip-chip.is-tapped {
  transform: translateY(2px);
  box-shadow:
    0 2px 0 rgba(11, 67, 83, 0.62),
    0 7px 16px rgba(18, 103, 128, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.hint {
  margin: 10px 0 0;
  color: var(--ink-soft);
  font-size: 0.92rem;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%) translateY(12px);
  background: rgba(9, 20, 28, 0.94);
  color: #e8f9ff;
  border-radius: 999px;
  padding: 10px 16px;
  font: 600 0.9rem "Manrope", sans-serif;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  border: 1px solid rgba(255, 255, 255, 0.18);
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 860px) {
  .details-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .details-grid section + section {
    border-left: 0;
    border-top: 1px solid rgba(222, 255, 249, 0.32);
    padding-left: 2px;
    padding-top: 14px;
  }

  .details-frame {
    margin-top: 18px;
  }
}

@media (max-width: 700px) {
  .hero {
    padding: 14px;
  }

  .layout {
    transform: translateY(-12px);
  }

  .title-frame {
    width: 100%;
  }

  .ip-chip {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
