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

.tre {
  width: 100%;
  max-width: 260px;
  border-collapse: collapse;
  font: 400 12px/1.3 -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  color: #fff7e6;
}

.tre__row {
  cursor: pointer;
}

.tre__row:not(:first-child) .tre__cell {
  border-top: 1px solid rgba(255, 247, 230, 0.14);
}

.tre__cell {
  padding: 8px 12px;
  background: rgba(255, 247, 230, 0.06);
  transition: background 220ms ease-out;
}

.tre__row--open .tre__cell {
  background: rgba(91, 140, 248, 0.22);
}

.tre__cell--num {
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.tre__detail-row td {
  padding: 0;
}

.tre__detail {
  overflow: hidden;
  height: 0;
  box-sizing: border-box;
  padding: 0 12px;
  background: rgba(23, 20, 26, 0.5);
  color: #9a93a6;
  font-size: 11px;
  display: flex;
  align-items: center;
}

@media (max-width: 340px) {
  .tre {
    max-width: 220px;
    font-size: 11px;
  }
  .tre__cell {
    padding: 4px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tre__cell {
    transition: none;
  }
}
