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);
}

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

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

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

.fs__ground {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 8px;
  height: 40%;
  background: linear-gradient(180deg, rgba(23, 20, 26, 0), rgba(23, 20, 26, 0.22));
  border-radius: 8px;
}

.fs__sun {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #fff7e6;
  box-shadow: 0 0 8px rgba(255, 247, 230, 0.8);
  transform: translate3d(calc(-50% + var(--sx, 0px)), calc(-50% + var(--sy, 0px)), 0);
}

.fs__cube3d {
  position: relative;
  width: 88px;
  height: 88px;
  transform-style: preserve-3d;
  transform-origin: center center;
}

.fs__face {
  position: absolute;
  top: 0;
  left: 0;
  backface-visibility: hidden;
  border: 1px solid rgba(23, 20, 26, 0.28);
  background: #6ec8ff;
}

.fs__readout {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
}

.fs__stat {
  font-weight: 600;
  font-size: clamp(9px, 2.2vw, 11px);
  color: rgba(23, 20, 26, 0.82);
  font-variant-numeric: tabular-nums;
}

.fs__stat b {
  font-weight: 800;
  color: #17141a;
}

@media (max-width: 340px) {
  .fs {
    gap: 4px;
  }
  .fs__field {
    width: 156px;
    height: 118px;
  }
  .fs__hint {
    font-size: 8px;
  }
  .fs__stat {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fs.is-still .fs__cube3d {
    transition: none;
  }
}
