html, body {
  margin: 0;
  overflow: hidden;
}

.stage {
  box-sizing: border-box;
  min-height: 100vh;
  display: grid;
  place-items: center;
  margin: 0;
  background: #ffffff;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  padding: clamp(8px, 4vw, 24px);
}

.cb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 420px;
}

.cb__hint {
  margin: 0;
  font-weight: 700;
  font-size: clamp(10px, 2.6vw, 12px);
  line-height: 1.35;
  color: #17141a;
  text-align: center;
}

.cb__field {
  position: relative;
  width: clamp(180px, 42vw, 220px);
  height: clamp(140px, 34vw, 168px);
  display: grid;
  place-items: center;
}

.cb__world {
  position: relative;
  transform-style: preserve-3d;
  width: 1px;
  height: 1px;
}

.cb__bld {
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: var(--h);
  transform: translate3d(var(--tx), var(--ty), 0) translate(-50%, 0) translateY(calc(var(--h) * -1));
  background: #2f6df6;
  border: 1px solid rgba(23, 20, 26, 0.3);
  border-radius: 4px 4px 0 0;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.cb__roof {
  position: absolute;
  left: 50%;
  top: 0;
  width: 26px;
  height: 10px;
  transform: translate3d(-50%, -70%, 0);
  background: #c93000;
  border-radius: 4px;
}

.cb__win {
  position: absolute;
  left: 50%;
  width: 9px;
  height: 9px;
  transform: translateX(-50%);
  background: #17141a;
  border-radius: 4px;
  animation: cbTwinkle 3s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

@keyframes cbTwinkle {
  0%, 100% {
    background: #17141a;
    box-shadow: none;
  }
  50% {
    background: #ffd23f;
    box-shadow: 0 0 9px rgba(255, 210, 63, 0.9);
  }
}
.cb__meta {
  margin: 0;
  font-size: clamp(9px, 2.4vw, 11px);
  color: rgba(23, 20, 26, 0.78);
}

.cb__meta b {
  font-weight: 800;
  color: #2f6df6;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 340px) {
  .cb {
    gap: 4px;
  }
  .cb__field {
    width: 156px;
    height: 112px;
  }
  .cb__hint {
    font-size: 8px;
  }
  .cb__meta {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cb__win {
    animation: none;
    background: #ffd23f;
  }
}
