* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  background: #2980ff;
  overflow: hidden;
  color: #fff;
}

.gate {
  position: relative;
  display: flex;
  min-height: 100vh;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  overflow: hidden;
}

.clouds {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.cloud {
  position: absolute;
  display: block;
  line-height: 0;
  will-change: transform;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}

.cloud img {
  display: block;
  width: 100%;
  height: auto;
}

.cloud--1 img {
  transform: rotate(-9deg);
}

.cloud--3 img {
  transform: rotate(7deg);
}

.cloud--5 img {
  transform: rotate(-14deg);
}

.cloud--6 img {
  transform: rotate(11deg);
}

.cloud--8 img {
  transform: rotate(-6deg);
}

.cloud--1 {
  width: 4.4rem;
  top: 8%;
  left: 5%;
  opacity: 0.16;
  animation: cloud-a 18s infinite;
}

.cloud--2 {
  width: 15rem;
  top: 10%;
  right: 4%;
  opacity: 0.1;
  animation: cloud-b 32s infinite;
}

.cloud--3 {
  width: 7.2rem;
  top: 40%;
  left: 7%;
  opacity: 0.14;
  animation: cloud-c 24s infinite;
}

.cloud--4 {
  width: 24rem;
  bottom: 4%;
  left: -3%;
  opacity: 0.08;
  animation: cloud-b 40s infinite reverse;
}

.cloud--5 {
  width: 10.5rem;
  bottom: 20%;
  right: 6%;
  opacity: 0.13;
  animation: cloud-a 22s infinite 2s;
}

.cloud--6 {
  width: 3.4rem;
  top: 56%;
  right: 20%;
  opacity: 0.2;
  animation: cloud-c 16s infinite;
}

.cloud--7 {
  width: 12.2rem;
  top: 3%;
  left: 26%;
  opacity: 0.09;
  animation: cloud-a 28s infinite reverse;
}

.cloud--8 {
  width: 6rem;
  bottom: 9%;
  right: 30%;
  opacity: 0.15;
  animation: cloud-c 20s infinite 1.5s;
}

.cloud--9 {
  width: 19.5rem;
  top: 70%;
  left: 50%;
  opacity: 0.07;
  animation: cloud-b 36s infinite 4s;
}

@keyframes cloud-a {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(28px, -18px, 0);
  }
}

@keyframes cloud-b {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(-36px, 16px, 0) scale(1.04);
  }
}

@keyframes cloud-c {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  33% {
    transform: translate3d(16px, 14px, 0);
  }
  66% {
    transform: translate3d(-12px, -10px, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud {
    animation: none;
  }
}

.panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
  max-width: 28rem;
  width: 100%;
}

.emblem {
  display: block;
  width: min(18rem, 62vw);
  height: auto;
}

.panel--home .emblem {
  width: min(32rem, 78vw);
}

.code {
  margin: 0;
  font-size: clamp(3.5rem, 12vw, 5.5rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  opacity: 0.95;
}

.message {
  margin: 0;
  font-size: clamp(1.05rem, 2.8vw, 1.35rem);
  font-weight: 600;
  line-height: 1.35;
  text-wrap: balance;
}

.hint {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 500;
  line-height: 1.45;
  opacity: 0.85;
  text-wrap: balance;
}

.home {
  margin-top: 0.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.75rem;
  padding: 0 1.35rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: background 0.15s ease;
}

.home:hover {
  background: rgba(255, 255, 255, 0.28);
}
