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

.nb {
  position: relative;
  width: 308px;
  height: 204px;
  overflow: hidden;
  user-select: none;
  -webkit-user-select: none;
}

.nb__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 300px;
  height: 196px;
  padding: 0 16px;
  background: #fff;
  border: 3px solid #17141a;
  border-radius: 16px;
  box-shadow: 8px 8px 0 #17141a;
  color: #17141a;
}

.nb__head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.nb__avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6ec8ff, #2f6df6);
  border: 3px solid #17141a;
  color: #17141a;
  font-size: 17px;
  line-height: 21px;
  font-weight: 800;
}

.nb__who {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.nb__name {
  margin: 0;
  font-size: 20px;
  line-height: 24px;
  font-weight: 800;
}

.nb__role {
  margin: 0;
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  background: #2f6df6;
  border-radius: 999px;
  color: #fff;
  font-size: 11px;
  line-height: 13px;
  font-weight: 700;
}

.nb__stats {
  display: flex;
  gap: 8px;
}

.nb__stat {
  display: flex;
  align-items: baseline;
  gap: 4px;
  padding: 4px 8px;
  background: #ffd23f;
  border: 3px solid #17141a;
  border-radius: 8px;
}

.nb__num {
  font-size: 17px;
  line-height: 20px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.nb__lab {
  font-size: 11px;
  line-height: 13px;
  font-weight: 700;
}

.nb__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 16px;
  background: #17141a;
  border: 3px solid #17141a;
  border-radius: 12px;
  box-shadow: 4px 4px 0 #17141a;
  color: #fff;
  font-size: 13px;
  line-height: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 220ms ease-out, box-shadow 220ms ease-out, background 220ms ease-out;
}

.nb__btn svg {
  display: block;
}

.nb__btn svg[hidden] {
  display: none;
}

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

.nb__btn[aria-pressed=true] {
  background: #2f6df6;
}

.nb__card:active {
  transform: translate(8px, 8px);
  box-shadow: 0 0 0 #17141a;
}

.nb__btn:active {
  transform: translate(4px, 4px);
  box-shadow: 0 0 0 #17141a;
}

.nb.is-demo .nb__card {
  animation: nb-press 2s ease-out infinite;
}

@keyframes nb-press {
  0%, 100% {
    transform: translate(0, 0);
    box-shadow: 8px 8px 0 #17141a;
  }
  9% {
    transform: translate(8px, 8px);
    box-shadow: 0 0 0 #17141a;
  }
  20% {
    transform: translate(0, 0);
    box-shadow: 8px 8px 0 #17141a;
  }
  46% {
    transform: translate(0, 0);
    box-shadow: 8px 8px 0 #17141a;
  }
  55% {
    transform: translate(8px, 8px);
    box-shadow: 0 0 0 #17141a;
  }
  68% {
    transform: translate(0, 0);
    box-shadow: 8px 8px 0 #17141a;
  }
}
@media (max-width: 340px) {
  .nb {
    width: 280px;
    height: 158px;
  }
  .nb__card {
    width: 272px;
    height: 150px;
    gap: 4px;
    padding: 0 12px;
  }
  .nb__head {
    gap: 8px;
  }
  .nb__avatar {
    width: 44px;
    height: 44px;
    font-size: 14px;
    line-height: 17px;
  }
  .nb__who {
    gap: 0;
  }
  .nb__name {
    font-size: 14px;
    line-height: 18px;
  }
  .nb__stats {
    gap: 4px;
  }
  .nb__stat {
    gap: 0;
    padding: 4px;
  }
  .nb__num {
    font-size: 13px;
    line-height: 16px;
  }
  .nb__lab {
    font-size: 11px;
    line-height: 13px;
  }
  .nb__btn {
    height: 32px;
    padding: 0 12px;
    font-size: 12px;
    line-height: 14px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nb.is-demo .nb__card {
    animation: none !important;
  }
  .nb__card, .nb__btn {
    transition: none;
  }
}
