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

.fs {
  position: relative;
  box-sizing: border-box;
  width: min(300px, 72vw);
  margin: 0;
  transform: scale(1);
  transform-origin: center center;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fs__screen {
  position: relative;
  height: clamp(88px, 26vw, 124px);
  border-radius: 16px;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(47, 109, 246, 0.34), rgba(23, 20, 26, 0.92));
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  transition: border-radius 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fs.is-full {
  transform: scale(1.3);
}

.fs.is-full .fs__screen {
  border-radius: 0;
}

.fs__stripes {
  position: absolute;
  inset: 0 -72px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.13) 0 12px, transparent 12px 32px);
  animation-name: fs-pan;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes fs-pan {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-64px);
  }
}
.fs__world {
  position: absolute;
  inset: 0;
}

.fs__sun {
  position: absolute;
  right: 20%;
  top: 16%;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 210, 63, 0.95);
  box-shadow: 0 0 0 8px rgba(255, 210, 63, 0.22);
}

.fs__hill {
  position: absolute;
  bottom: -46%;
  height: 80%;
  border-radius: 50%;
}

.fs__hill--a {
  left: -12%;
  width: 70%;
  background: rgba(255, 255, 255, 0.16);
}

.fs__hill--b {
  right: -16%;
  width: 60%;
  background: rgba(255, 255, 255, 0.1);
}

.fs__clock,
.fs__badge {
  position: absolute;
  top: 8px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(23, 20, 26, 0.62);
  color: #fff;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
}

.fs__clock {
  left: 8px;
}

.fs__badge {
  right: 8px;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 600;
}

.fs__hint {
  position: absolute;
  left: 50%;
  top: 8px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(47, 109, 246, 0.92);
  color: #fff;
  font-size: 10px;
  line-height: 14px;
  font-weight: 700;
  white-space: nowrap;
  opacity: 0;
  transform: translateX(-50%);
}

.fs.is-full .fs__hint {
  opacity: 1;
}

.fs__bar {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 8px 12px;
}

.fs__time {
  color: #fff7e6;
  font-family: ui-monospace, "Cascadia Mono", Menlo, Consolas, monospace;
  font-size: 10px;
  line-height: 14px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(23, 20, 26, 0.7);
}

.fs__time b {
  font-weight: 700;
}

.fsb {
  position: relative;
  box-sizing: border-box;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  cursor: pointer;
  transition: background 300ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.fsb:hover {
  background: rgba(255, 255, 255, 0.3);
}

.fsb:active {
  transform: scale(0.92);
}

.fsb:focus-visible {
  outline: 2px solid #ffd23f;
  outline-offset: 2px;
}

.fsb__ic {
  position: absolute;
  inset: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fsb__ic--in {
  opacity: 0;
}

.fs.is-full .fsb__ic--out {
  opacity: 0;
}

.fs.is-full .fsb__ic--in {
  opacity: 1;
}

.fs__fillwrap {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: rgba(255, 255, 255, 0.26);
}

.fs__fill {
  display: block;
  height: 100%;
  background: #2f6df6;
  transform-origin: left center;
  transform: scaleX(0.26);
}

.fs.is-demo {
  animation-name: fs-zoom;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes fs-zoom {
  0%, 16% {
    transform: scale(1);
  }
  38%, 64% {
    transform: scale(1.3);
  }
  86%, 100% {
    transform: scale(1);
  }
}
.fs.is-demo .fs__screen {
  animation-name: fs-round;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}

@keyframes fs-round {
  0%, 16% {
    border-radius: 16px;
  }
  38%, 64% {
    border-radius: 0;
  }
  86%, 100% {
    border-radius: 16px;
  }
}
.fs.is-demo .fsb__ic--out,
.fs.is-demo .fsb__ic--in,
.fs.is-demo .fs__hint {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

.fs.is-demo .fsb__ic--out {
  animation-name: fs-ic-out;
}

.fs.is-demo .fsb__ic--in {
  animation-name: fs-ic-in;
}

.fs.is-demo .fs__hint {
  animation-name: fs-hint;
}

@keyframes fs-ic-out {
  0%, 26% {
    opacity: 1;
  }
  27%, 74% {
    opacity: 0;
  }
  75%, 100% {
    opacity: 1;
  }
}
@keyframes fs-ic-in {
  0%, 26% {
    opacity: 0;
  }
  27%, 74% {
    opacity: 1;
  }
  75%, 100% {
    opacity: 0;
  }
}
@keyframes fs-hint {
  0%, 26% {
    opacity: 0;
  }
  27%, 74% {
    opacity: 1;
  }
  75%, 100% {
    opacity: 0;
  }
}
.fs.is-demo .fs__fill {
  animation-name: fs-fill;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes fs-fill {
  0% {
    transform: scaleX(0.26);
  }
  86%, 100% {
    transform: scaleX(0.62);
  }
}
@media (max-width: 340px) {
  .fs__bar {
    padding: 0 4px 8px;
  }
  .fs__clock, .fs__badge {
    padding: 0 4px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fs.is-demo, .fs.is-demo .fs__screen, .fs.is-demo .fsb__ic--out, .fs.is-demo .fsb__ic--in,
  .fs.is-demo .fs__hint, .fs.is-demo .fs__fill, .fs__stripes {
    animation: none !important;
  }
  .fs, .fs__screen, .fsb {
    transition: none;
  }
}
