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

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

.fw {
  box-sizing: border-box;
  position: relative;
  width: 288px;
  max-width: 100%;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  background: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.fw__head {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 28px;
  padding: 0 12px;
}

.fw__dots {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex: 0 0 auto;
}

.fw__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.fw__dot--1 {
  background: #c2361a;
}

.fw__dot--2 {
  background: #ffd23f;
}

.fw__dot--3 {
  background: #4cd4a6;
}

.fw__title {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  color: rgba(255, 247, 230, 0.7);
}

.fw__icon {
  display: inline-flex;
  flex: 0 0 auto;
}

.fw__icon svg {
  display: block;
}

.fw__filenameSlot {
  position: relative;
  display: inline-block;
  min-width: 0;
}

.fw__filename,
.fw__filenameDemo {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.fw__filenameDemo {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.fw.is-demo .fw__filename {
  opacity: 0;
}

.fw__tabs {
  position: relative;
  display: flex;
  align-items: flex-end;
  gap: 4px;
  padding: 0 12px;
  background: rgba(0, 0, 0, 0.22);
}

.fw__ptr {
  position: absolute;
  left: 44px;
  top: 4px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #17141a;
  border: 2px solid #fff7e6;
  box-shadow: 0 6px 12px rgba(23, 20, 26, 0.32);
  pointer-events: none;
  opacity: 0;
  transform: translate(0, 0) scale(1);
}

.fw__tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 24px;
  padding: 0 12px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 247, 230, 0);
  color: rgba(255, 247, 230, 0.5);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transform: translateY(0);
}

.fw__tab:focus-visible {
  outline: 2px solid #2f6df6;
  outline-offset: -2px;
}

.fw__tab[aria-selected=true] {
  background: rgba(255, 247, 230, 0.14);
  color: #fff7e6;
  transform: translateY(-2px);
}

.fw__body {
  position: relative;
  height: 114px;
  overflow: hidden;
}

.fw__panel {
  position: absolute;
  inset: 0;
  box-sizing: border-box;
  margin: 0;
  padding: 12px;
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 11px;
  line-height: 18px;
  color: #fff7e6;
  white-space: pre;
  opacity: 0;
  visibility: hidden;
}

.fw__panel.is-active {
  opacity: 1;
  visibility: visible;
}

.fw__panel .k {
  color: #ff4d1f;
}

.fw__panel .s {
  color: #ffd23f;
}

.fw__panel .n {
  color: #6ec8ff;
}

.fw__panel .c {
  color: rgba(255, 247, 230, 0.72);
}

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

.fw.is-demo .fw__tab--1 {
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(1, end);
  animation-name: fw-tab1;
}

.fw.is-demo .fw__tab--2 {
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(1, end);
  animation-name: fw-tab2;
}

.fw.is-demo .fw__panel--1 {
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(1, end);
  animation-name: fw-panel1;
}

.fw.is-demo .fw__panel--2 {
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(1, end);
  animation-name: fw-panel2;
}

.fw.is-demo .fw__filenameDemo--1 {
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(1, end);
  animation-name: fw-filename1;
}

.fw.is-demo .fw__filenameDemo--2 {
  animation-duration: 2s;
  animation-iteration-count: infinite;
  animation-timing-function: steps(1, end);
  animation-name: fw-filename2;
}

.fw.is-demo .fw__dot--1 {
  animation-duration: 140ms;
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-fill-mode: backwards;
  animation-delay: 360ms;
  animation-name: fw-dot-pop;
}

.fw.is-demo .fw__dot--2 {
  animation-duration: 140ms;
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-fill-mode: backwards;
  animation-delay: 430ms;
  animation-name: fw-dot-pop;
}

.fw.is-demo .fw__dot--3 {
  animation-duration: 140ms;
  animation-iteration-count: 1;
  animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  animation-fill-mode: backwards;
  animation-delay: 500ms;
  animation-name: fw-dot-pop;
}

@keyframes fw-ptr {
  0% {
    transform: translate(0, 0) scale(1);
  }
  16% {
    transform: translate(170px, 0) scale(1);
    animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  }
  18% {
    transform: translate(170px, 0) scale(0.86);
    animation-timing-function: cubic-bezier(0.2, 1.4, 0.4, 1);
  }
  22% {
    transform: translate(170px, 0) scale(1);
  }
  34% {
    transform: translate(170px, 0) scale(1);
    animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  }
  66% {
    transform: translate(0, 0) scale(1);
  }
  100% {
    transform: translate(0, 0) scale(1);
  }
}
@keyframes fw-tab1 {
  0% {
    background: rgba(255, 247, 230, 0.14);
    color: #fff7e6;
    transform: translateY(-2px);
  }
  18% {
    background: rgba(255, 247, 230, 0);
    color: rgba(255, 247, 230, 0.5);
    transform: translateY(0);
  }
  84% {
    background: rgba(255, 247, 230, 0.14);
    color: #fff7e6;
    transform: translateY(-2px);
  }
  100% {
    background: rgba(255, 247, 230, 0.14);
    color: #fff7e6;
    transform: translateY(-2px);
  }
}
@keyframes fw-tab2 {
  0% {
    background: rgba(255, 247, 230, 0);
    color: rgba(255, 247, 230, 0.5);
    transform: translateY(0);
  }
  18% {
    background: rgba(255, 247, 230, 0.14);
    color: #fff7e6;
    transform: translateY(-2px);
  }
  84% {
    background: rgba(255, 247, 230, 0);
    color: rgba(255, 247, 230, 0.5);
    transform: translateY(0);
  }
  100% {
    background: rgba(255, 247, 230, 0);
    color: rgba(255, 247, 230, 0.5);
    transform: translateY(0);
  }
}
@keyframes fw-panel1 {
  0% {
    opacity: 1;
    visibility: visible;
  }
  18% {
    opacity: 0;
    visibility: hidden;
  }
  84% {
    opacity: 1;
    visibility: visible;
  }
  100% {
    opacity: 1;
    visibility: visible;
  }
}
@keyframes fw-panel2 {
  0% {
    opacity: 0;
    visibility: hidden;
  }
  18% {
    opacity: 1;
    visibility: visible;
  }
  84% {
    opacity: 0;
    visibility: hidden;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}
@keyframes fw-filename1 {
  0% {
    opacity: 1;
  }
  18% {
    opacity: 0;
  }
  84% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fw-filename2 {
  0% {
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  84% {
    opacity: 0;
  }
  100% {
    opacity: 0;
  }
}
@keyframes fw-dot-pop {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 340px) {
  .fw__body {
    height: 96px;
  }
  .fw__panel {
    font-size: 10px;
    line-height: 16px;
    padding: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fw.is-demo .fw__ptr,
  .fw.is-demo .fw__tab--1,
  .fw.is-demo .fw__tab--2,
  .fw.is-demo .fw__panel--1,
  .fw.is-demo .fw__panel--2,
  .fw.is-demo .fw__filenameDemo--1,
  .fw.is-demo .fw__filenameDemo--2,
  .fw.is-demo .fw__dot--1,
  .fw.is-demo .fw__dot--2,
  .fw.is-demo .fw__dot--3 {
    animation: none !important;
  }
  .fw.is-demo .fw__ptr {
    opacity: 0;
  }
  .fw.is-demo .fw__tab--1 {
    background: rgba(255, 247, 230, 0);
    color: rgba(255, 247, 230, 0.5);
    transform: translateY(0);
  }
  .fw.is-demo .fw__tab--2 {
    background: rgba(255, 247, 230, 0.14);
    color: #fff7e6;
    transform: translateY(-2px);
  }
  .fw.is-demo .fw__panel--1 {
    opacity: 0;
    visibility: hidden;
  }
  .fw.is-demo .fw__panel--2 {
    opacity: 1;
    visibility: visible;
  }
  .fw.is-demo .fw__filenameDemo--1 {
    opacity: 0;
  }
  .fw.is-demo .fw__filenameDemo--2 {
    opacity: 1;
  }
}
