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

.panel {
  width: 100%;
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}

.hint {
  margin: 0;
  color: rgba(255, 247, 230, 0.72);
  font-weight: 400;
  font-size: 10px;
  line-height: 1.35;
}

.tabsWrap {
  position: relative;
  width: 100%;
}

.tabs {
  position: relative;
  display: flex;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 247, 230, 0.16);
}

.tab {
  flex: 0 0 auto;
  appearance: none;
  border: 0;
  background: transparent;
  padding: 4px 4px;
  color: rgba(255, 247, 230, 0.72);
  font-weight: 600;
  font-size: 12px;
  cursor: pointer;
}
.tab[aria-selected=true] {
  color: #fff7e6;
}
.tab:focus-visible {
  outline: 2px solid #5b8cf8;
  outline-offset: 2px;
}

.underline {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 2px;
  width: 1px;
  background: #5b8cf8;
  transform: translateX(0) scaleX(1);
  transition: transform 300ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.countRow {
  margin: 0;
  display: flex;
  align-items: baseline;
  gap: 4px;
}

.countNum {
  color: #fff7e6;
  font-weight: 700;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
}

.countLabel {
  color: rgba(255, 247, 230, 0.72);
  font-weight: 500;
  font-size: 11px;
}

@media (max-width: 340px) {
  .panel {
    max-width: 300px;
    gap: 8px;
  }
  .tabs {
    gap: 8px;
  }
  .tab {
    font-size: 10px;
  }
  .countNum {
    font-size: 18px;
  }
  .countLabel {
    font-size: 9px;
  }
  .hint {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .underline {
    transition: none;
  }
}
