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

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

.he-grid {
  width: min(320px, 88vw);
  aspect-ratio: 340/190;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 8px;
}

.he-tile {
  border-radius: 8px;
  padding: 12px;
  box-sizing: border-box;
  color: #fff7e6;
  background: rgba(23, 20, 26, 0.55);
  font: 600 12px/1 -apple-system, "Segoe UI", sans-serif;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  position: relative;
  transform-origin: top left;
}

.he-focal {
  background: #17141a;
}

.he-tile__tag {
  opacity: 0.8;
}

.he-tile__num {
  font-size: 24px;
  font-weight: 700;
  margin-top: 4px;
}

.he-focal {
  transition: transform 600ms cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 600ms cubic-bezier(0.2, 0.8, 0.2, 1);
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
}

.he-focal:hover {
  transform: scale(1.35);
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  z-index: 5;
}

@keyframes he-expand {
  0%, 100% {
    transform: scale(1);
    box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
    z-index: 1;
  }
  50% {
    transform: scale(1.35);
    box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
    z-index: 5;
  }
}
.he-grid.is-demo .he-focal {
  animation: he-expand 600ms cubic-bezier(0.2, 0.8, 0.2, 1) infinite;
}

@media (prefers-reduced-motion: reduce) {
  .he-focal:hover,
  .he-grid.is-demo .he-focal {
    animation: none !important;
    transform: none !important;
    box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32) !important;
    z-index: 1 !important;
  }
}
