@charset "UTF-8";
@property --w {
  syntax: "<length>";
  inherits: false;
  initial-value: 300px;
}
@property --h {
  syntax: "<length>";
  inherits: false;
  initial-value: 104px;
}
@property --wn {
  syntax: "<integer>";
  inherits: true;
  initial-value: 300;
}
@property --hn {
  syntax: "<integer>";
  inherits: true;
  initial-value: 104;
}
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);
}

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

.wc__win {
  position: relative;
  box-sizing: border-box;
  width: clamp(200px, var(--w), 100%);
  height: clamp(88px, var(--h), 132px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  overflow: hidden;
  background: #17141a;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
}

.wc__bar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 4px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
}

.wc__dots {
  display: inline-flex;
  gap: 4px;
  flex: 0 0 auto;
}

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

.wc__dot--x {
  background: #c2361a;
}

.wc__dot--m {
  background: #ffd23f;
}

.wc__dot--z {
  background: #2b9d74;
}

.wc__tabs {
  display: inline-flex;
  gap: 4px;
  min-width: 0;
}

.wc__tab {
  box-sizing: border-box;
  padding: 0 8px;
  border: 0;
  border-radius: 4px;
  background: none;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font-family: inherit;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 10px);
  line-height: 1.4;
}

.wc__tab[aria-selected=true] {
  background: rgba(255, 255, 255, 0.12);
  color: #fff7e6;
}

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

.wc__body {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 8px;
}

.wc__ln {
  margin: 0;
  color: #fff7e6;
  font-weight: 500;
  font-size: clamp(9px, 2.6vw, 11px);
  line-height: 1.5;
  white-space: nowrap;
  overflow: hidden;
}

.wc__ln--cmd {
  color: #ffd23f;
  font-weight: 700;
}

.wc__size {
  color: #2b9d74;
  font-variant-numeric: tabular-nums;
}

.wc__size::after {
  counter-reset: w var(--wn) h var(--hn);
  content: counter(w) " × " counter(h);
}

.wc__grip {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  cursor: nwse-resize;
  touch-action: none;
}

.wc__grip span {
  position: absolute;
  right: 3px;
  bottom: 3px;
  width: 10px;
  height: 10px;
  border-right: 2px solid rgba(255, 255, 255, 0.62);
  border-bottom: 2px solid rgba(255, 255, 255, 0.62);
  transform: scale(1);
  transform-origin: 100% 100%;
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.wc__grip:hover span, .wc__grip:focus-visible span {
  border-right-color: #2b9d74;
  border-bottom-color: #2b9d74;
  transform: scale(1.2);
}

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

.wc__hint {
  margin: 0;
  color: #17141a;
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Consolas, "Liberation Mono", monospace;
  font-weight: 700;
  font-size: clamp(9px, 2.4vw, 10px);
  line-height: 1.3;
}

.wc.is-demo .wc__win {
  animation-name: wcSize;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@keyframes wcSize {
  0%, 8% {
    --w: 300px;
    --h: 104px;
    --wn: 300;
    --hn: 104;
  }
  44%, 64% {
    --w: 380px;
    --h: 132px;
    --wn: 380;
    --hn: 132;
  }
  88%, 100% {
    --w: 300px;
    --h: 104px;
    --wn: 300;
    --hn: 104;
  }
}
.wc.is-demo .wc__grip span {
  animation-name: wcGrip;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
  animation-fill-mode: backwards;
}

@keyframes wcGrip {
  0%, 8% {
    transform: scale(1);
    border-right-color: rgba(255, 255, 255, 0.62);
    border-bottom-color: rgba(255, 255, 255, 0.62);
  }
  20%, 70% {
    transform: scale(1.2);
    border-right-color: #2b9d74;
    border-bottom-color: #2b9d74;
  }
  88%, 100% {
    transform: scale(1);
    border-right-color: rgba(255, 255, 255, 0.62);
    border-bottom-color: rgba(255, 255, 255, 0.62);
  }
}
@media (max-width: 340px) {
  .wc__bar {
    gap: 8px;
  }
  .wc__body {
    padding: 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wc.is-demo .wc__win,
  .wc.is-demo .wc__grip span {
    animation: none !important;
  }
  .wc__grip span {
    transition: none !important;
  }
}
