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

.nc {
  box-sizing: border-box;
  width: min(304px, 92vw);
  padding: 12px;
  border: 1px solid #17141a;
  border-radius: 16px;
  background: #ffd23f;
  color: #17141a;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  line-height: 1.3;
}

.nc__h {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
}

.nc__bellw {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nc__bell {
  display: inline-flex;
  width: 15px;
  height: 15px;
  color: #17141a;
}

.nc__badge {
  padding: 0 8px;
  border-radius: 999px;
  background: rgb(100%, 93.6705882353%, 75.7882352941%);
  color: #17141a;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.7;
  white-space: nowrap;
}

.nc__all {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0 0 0 auto;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: #17141a;
  color: #ffd23f;
  font-family: inherit;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.7;
  cursor: pointer;
}

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

.nc__all:active {
  transform: scale(0.94);
}

.nc__ck {
  display: inline-flex;
  width: 11px;
  height: 11px;
}

.nc__list {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.nc__it {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 4px 8px;
  border: 1px solid rgba(23, 20, 26, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: #17141a;
  font-family: inherit;
  font-size: 12px;
  line-height: 1.3;
  text-align: left;
  cursor: pointer;
}

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

.nc__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2f6df6;
}

.nc__msg {
  font-weight: 700;
}

.nc__meta {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: rgba(23, 20, 26, 0.72);
  font-size: 10px;
  white-space: nowrap;
}

.nc__read {
  display: none;
  color: #4cd4a6;
  width: 11px;
  height: 11px;
}

.nc__row.is-read .nc__it {
  border-color: transparent;
  background: rgba(23, 20, 26, 0.08);
}

.nc__row.is-read .nc__dot {
  display: none;
}

.nc__row.is-read .nc__msg {
  color: rgba(23, 20, 26, 0.72);
  font-weight: 400;
}

.nc__row.is-read .nc__read {
  display: inline-flex;
}

@keyframes nc-read-1 {
  0%, 14% {
    border-color: rgba(23, 20, 26, 0.18);
    background: #ffffff;
  }
  15%, 87% {
    border-color: transparent;
    background: rgba(23, 20, 26, 0.08);
  }
  88%, 100% {
    border-color: rgba(23, 20, 26, 0.18);
    background: #ffffff;
  }
}
@keyframes nc-read-2 {
  0%, 42% {
    border-color: rgba(23, 20, 26, 0.18);
    background: #ffffff;
  }
  43%, 87% {
    border-color: transparent;
    background: rgba(23, 20, 26, 0.08);
  }
  88%, 100% {
    border-color: rgba(23, 20, 26, 0.18);
    background: #ffffff;
  }
}
@keyframes nc-read-3 {
  0%, 69% {
    border-color: rgba(23, 20, 26, 0.18);
    background: #ffffff;
  }
  70%, 87% {
    border-color: transparent;
    background: rgba(23, 20, 26, 0.08);
  }
  88%, 100% {
    border-color: rgba(23, 20, 26, 0.18);
    background: #ffffff;
  }
}
@keyframes nc-dot-cut-1 {
  0%, 14% {
    opacity: 1;
  }
  15%, 100% {
    opacity: 0;
  }
}
@keyframes nc-dot-cut-2 {
  0%, 42% {
    opacity: 1;
  }
  43%, 100% {
    opacity: 0;
  }
}
@keyframes nc-dot-cut-3 {
  0%, 69% {
    opacity: 1;
  }
  70%, 100% {
    opacity: 0;
  }
}
@keyframes nc-dot-pulse {
  0%, 100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.5);
  }
}
@keyframes nc-msg-dim-1 {
  0%, 14% {
    color: #17141a;
  }
  15%, 87% {
    color: rgba(23, 20, 26, 0.72);
  }
  88%, 100% {
    color: #17141a;
  }
}
@keyframes nc-msg-dim-2 {
  0%, 42% {
    color: #17141a;
  }
  43%, 87% {
    color: rgba(23, 20, 26, 0.72);
  }
  88%, 100% {
    color: #17141a;
  }
}
@keyframes nc-msg-dim-3 {
  0%, 69% {
    color: #17141a;
  }
  70%, 87% {
    color: rgba(23, 20, 26, 0.72);
  }
  88%, 100% {
    color: #17141a;
  }
}
@keyframes nc-chk-in-1 {
  0%, 14% {
    visibility: hidden;
  }
  15% {
    visibility: visible;
    transform: translateX(6px);
  }
  21%, 87% {
    visibility: visible;
    transform: translateX(0);
  }
  88%, 100% {
    visibility: hidden;
    transform: translateX(6px);
  }
}
@keyframes nc-chk-in-2 {
  0%, 42% {
    visibility: hidden;
  }
  43% {
    visibility: visible;
    transform: translateX(6px);
  }
  49%, 87% {
    visibility: visible;
    transform: translateX(0);
  }
  88%, 100% {
    visibility: hidden;
    transform: translateX(6px);
  }
}
@keyframes nc-chk-in-3 {
  0%, 69% {
    visibility: hidden;
  }
  70% {
    visibility: visible;
    transform: translateX(6px);
  }
  76%, 87% {
    visibility: visible;
    transform: translateX(0);
  }
  88%, 100% {
    visibility: hidden;
    transform: translateX(6px);
  }
}
@keyframes nc-all-press {
  0%, 68% {
    transform: scale(1);
  }
  70% {
    transform: scale(0.9);
  }
  74%, 87% {
    transform: scale(1);
  }
  88%, 100% {
    transform: scale(1);
  }
}
@keyframes nc-badge-shrink {
  0%, 14% {
    transform: scale(1);
  }
  15%, 42% {
    transform: scale(0.92);
  }
  43%, 69% {
    transform: scale(0.84);
  }
  70%, 87% {
    transform: scale(0.76);
  }
  88%, 100% {
    transform: scale(1);
  }
}
.nc.is-demo .nc__row[data-row="1"] .nc__it {
  animation-name: nc-read-1;
}
.nc.is-demo .nc__row[data-row="2"] .nc__it {
  animation-name: nc-read-2;
}
.nc.is-demo .nc__row[data-row="3"] .nc__it {
  animation-name: nc-read-3;
}
.nc.is-demo .nc__it {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.nc.is-demo .nc__row[data-row="1"] .nc__dot {
  animation-name: nc-dot-cut-1, nc-dot-pulse;
}
.nc.is-demo .nc__row[data-row="2"] .nc__dot {
  animation-name: nc-dot-cut-2, nc-dot-pulse;
}
.nc.is-demo .nc__row[data-row="3"] .nc__dot {
  animation-name: nc-dot-cut-3, nc-dot-pulse;
}
.nc.is-demo .nc__dot {
  animation-duration: 2s, 700ms;
  animation-timing-function: steps(1, end), ease-in-out;
  animation-iteration-count: infinite, infinite;
}
.nc.is-demo .nc__row[data-row="1"] .nc__msg {
  animation-name: nc-msg-dim-1;
}
.nc.is-demo .nc__row[data-row="2"] .nc__msg {
  animation-name: nc-msg-dim-2;
}
.nc.is-demo .nc__row[data-row="3"] .nc__msg {
  animation-name: nc-msg-dim-3;
}
.nc.is-demo .nc__msg {
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.nc.is-demo .nc__row[data-row="1"] .nc__read {
  animation-name: nc-chk-in-1;
}
.nc.is-demo .nc__row[data-row="2"] .nc__read {
  animation-name: nc-chk-in-2;
}
.nc.is-demo .nc__row[data-row="3"] .nc__read {
  animation-name: nc-chk-in-3;
}
.nc.is-demo .nc__read {
  display: inline-flex;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.nc.is-demo .nc__all {
  animation-name: nc-all-press;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.nc.is-demo .nc__badge {
  animation-name: nc-badge-shrink;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .nc {
    padding: 8px;
    font-size: 11px;
  }
  .nc__h {
    margin-bottom: 4px;
  }
  .nc__it {
    padding: 0 8px;
    font-size: 11px;
  }
  .nc__msg {
    font-size: 11px;
  }
  .nc__row--old {
    display: none;
  }
  .nc__badge {
    font-size: 9px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .nc__all:active {
    transform: none;
  }
  .nc.is-demo .nc__it,
  .nc.is-demo .nc__dot,
  .nc.is-demo .nc__msg,
  .nc.is-demo .nc__read,
  .nc.is-demo .nc__all,
  .nc.is-demo .nc__badge {
    animation: none !important;
    transform: none !important;
  }
  .nc.is-demo .nc__row[data-row="1"] .nc__it,
  .nc.is-demo .nc__row[data-row="2"] .nc__it,
  .nc.is-demo .nc__row[data-row="3"] .nc__it {
    background: rgba(23, 20, 26, 0.08) !important;
    border-color: transparent !important;
  }
  .nc.is-demo .nc__row[data-row="1"] .nc__dot,
  .nc.is-demo .nc__row[data-row="2"] .nc__dot,
  .nc.is-demo .nc__row[data-row="3"] .nc__dot {
    opacity: 0 !important;
  }
  .nc.is-demo .nc__row[data-row="1"] .nc__msg,
  .nc.is-demo .nc__row[data-row="2"] .nc__msg,
  .nc.is-demo .nc__row[data-row="3"] .nc__msg {
    color: rgba(23, 20, 26, 0.72) !important;
  }
  .nc.is-demo .nc__row[data-row="1"] .nc__read,
  .nc.is-demo .nc__row[data-row="2"] .nc__read,
  .nc.is-demo .nc__row[data-row="3"] .nc__read {
    display: inline-flex !important;
    transform: none !important;
  }
}
