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

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

.wt {
  --rowh: clamp(24px, 8.5vw, 32px);
  --headh: clamp(12px, 4vw, 16px);
  box-sizing: border-box;
  width: min(320px, 90vw);
  color: #fff7e6;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
}

.wt__body {
  position: relative;
  display: flex;
  gap: 4px;
}

.wt__side {
  flex: 0 0 auto;
  width: clamp(16px, 5vw, 22px);
  display: flex;
  flex-direction: column;
  text-align: right;
}

.wt__ico {
  height: var(--headh);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  opacity: 0.7;
}

.wt__hr {
  height: var(--rowh);
  font-size: clamp(8px, 2.4vw, 10px);
  font-weight: 600;
  line-height: 1.1;
  opacity: 0.55;
}

.wt__grid {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.wt__r {
  height: var(--rowh);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  position: relative;
}

.wt__r--h {
  height: var(--headh);
}

.wt__h {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: clamp(8px, 2.4vw, 10px);
  font-weight: 700;
  opacity: 0.6;
}

.wt__h.is-today {
  opacity: 1;
  color: #5b8cf8;
}

.wt__c {
  position: relative;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 1px solid rgba(255, 255, 255, 0.06);
}

.wt__c.is-today {
  background: rgba(255, 255, 255, 0.05);
}

.wt__c:focus-visible {
  outline: 2px solid #fff7e6;
  outline-offset: -2px;
}

.wt__ev {
  position: absolute;
  left: 2px;
  right: 2px;
  top: 1px;
  z-index: 2;
  box-sizing: border-box;
  height: calc(var(--rowh) * var(--n) - 2px);
  padding: 0 4px;
  border-radius: 4px;
  background: #0a4fe8;
  color: #fff7e6;
  font-size: clamp(8px, 2.4vw, 10px);
  font-weight: 700;
  line-height: 1.5;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: box-shadow 300ms ease-out;
}

.wt__c:focus-visible .wt__ev {
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.85);
}

.wt__ev--b {
  background: #fff7e6;
  color: #17141a;
}

.wt__ev--l, .wt__ev--r {
  font-size: clamp(7px, 2.1vw, 9px);
}

.wt__ev--l {
  right: 50%;
}

.wt__ev--r {
  left: 50%;
}

.wt__now {
  position: absolute;
  left: 0;
  right: 0;
  top: var(--headh);
  height: 2px;
  z-index: 3;
  background: #fff7e6;
  pointer-events: none;
  opacity: 0;
}

.wt__dot {
  position: absolute;
  left: 0;
  top: -3px;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff7e6;
}

.wt.is-demo .wt__now {
  animation-name: wt-now;
  animation-duration: 2s;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
}

@keyframes wt-now {
  0% {
    transform: translateY(calc(var(--rowh) * 0.4));
    opacity: 0;
  }
  10% {
    opacity: 0;
  }
  22% {
    opacity: 1;
  }
  78% {
    opacity: 1;
  }
  90% {
    opacity: 0;
  }
  100% {
    transform: translateY(calc(var(--rowh) * 4.7));
    opacity: 0;
  }
}
@media (prefers-reduced-motion: reduce) {
  .wt.is-demo .wt__now {
    animation: none !important;
    opacity: 1;
    transform: translateY(calc(var(--rowh) * 2.4));
  }
  .wt__c {
    transition: none;
  }
}
