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

.frame {
  position: relative;
  overflow: hidden;
  box-sizing: border-box;
  width: min(420px, 94vw);
  height: min(260px, 84vh);
  border: 1px solid rgba(255, 247, 230, 0.16);
  border-radius: 16px;
  background: rgba(255, 247, 230, 0.04);
  color: #fff7e6;
  font-family: -apple-system, "Segoe UI", "Noto Sans KR", sans-serif;
  font-size: 12px;
  line-height: 1.35;
}

.frame, .frame * {
  box-sizing: border-box;
}

.page {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
}

.brand {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: 1px solid rgba(255, 247, 230, 0.16);
  border-radius: 12px;
  background: transparent;
  color: #fff7e6;
  cursor: pointer;
}

.bell:focus-visible {
  outline: 2px solid #ffd23f;
  outline-offset: 2px;
}

.badge {
  position: absolute;
  top: -4px;
  right: -4px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ffd23f;
  color: #17141a;
}

.badge span {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
}

.badge[data-n="3"] .n3,
.badge[data-n="2"] .n2,
.badge[data-n="1"] .n1 {
  opacity: 1;
}

.frame.is-clear .badge {
  opacity: 0;
  transform: scale(0);
}

.body {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 0 12px 12px;
}

.skeleton {
  height: 10px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 247, 230, 0.1);
}

.skeleton--short {
  width: 62%;
}

.panel {
  position: absolute;
  top: 52px;
  right: 12px;
  width: min(240px, 84vw);
  padding: 8px;
  border-radius: 16px;
  background: #fff7e6;
  color: #17141a;
  box-shadow: 0 14px 24px rgba(23, 20, 26, 0.32);
  opacity: 0;
  transform: translateY(-6px);
  pointer-events: none;
  transition: opacity 220ms cubic-bezier(0.2, 0.8, 0.2, 1), transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.frame.is-open .panel {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.phead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 4px;
}

.ptitle {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.3;
}

.allbtn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: rgba(23, 20, 26, 0.55);
  font-family: inherit;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.3;
  text-decoration: underline;
  cursor: pointer;
}

.allbtn:focus-visible {
  outline: 2px solid #ffd23f;
  outline-offset: 2px;
}

.rows {
  display: grid;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.row {
  display: grid;
  grid-template-columns: 8px 1fr;
  column-gap: 8px;
  align-items: start;
  width: 100%;
  margin: 0;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  font-family: inherit;
  text-align: left;
  cursor: pointer;
}

.row:hover {
  background: rgba(23, 20, 26, 0.06);
}

.row:focus-visible {
  outline: 2px solid #ffd23f;
  outline-offset: 2px;
}

.dot {
  grid-column: 1;
  grid-row: 1;
  width: 8px;
  height: 8px;
  margin-top: 4px;
  border-radius: 50%;
  background: #ffd23f;
}

.rt {
  grid-column: 2;
  grid-row: 1;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.3;
}

.rtime {
  grid-column: 2;
  grid-row: 2;
  font-size: 10px;
  line-height: 1.3;
  color: rgba(23, 20, 26, 0.5);
}

.row.is-read {
  opacity: 0.5;
}

.row.is-read .dot {
  opacity: 0;
  transform: scale(0);
}

.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: 0;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

@keyframes nbf-press {
  0%, 4% {
    transform: translateY(0);
  }
  6% {
    transform: translateY(2px);
  }
  8%, 100% {
    transform: translateY(0);
  }
}
@keyframes nbf-panel-cut {
  0%, 8.3% {
    opacity: 0;
  }
  8.4%, 100% {
    opacity: 1;
  }
}
@keyframes nbf-panel-rise {
  0%, 8.3% {
    transform: translateY(0);
    clip-path: inset(0 0 100% 0);
  }
  8.4%, 84% {
    transform: translateY(0);
    clip-path: inset(0 0 0 0);
  }
  90%, 100% {
    transform: translateY(0);
    clip-path: inset(100% 0 0 0);
  }
}
@keyframes nbf-dim1 {
  0%, 34% {
    opacity: 1;
  }
  34.1%, 100% {
    opacity: 0.5;
  }
}
@keyframes nbf-dim2 {
  0%, 48% {
    opacity: 1;
  }
  48.1%, 100% {
    opacity: 0.5;
  }
}
@keyframes nbf-dim3 {
  0%, 62% {
    opacity: 1;
  }
  62.1%, 100% {
    opacity: 0.5;
  }
}
@keyframes nbf-dot1 {
  0%, 34% {
    opacity: 1;
    transform: scale(1);
  }
  34.1%, 100% {
    opacity: 0;
    transform: scale(0);
  }
}
@keyframes nbf-dot2 {
  0%, 48% {
    opacity: 1;
    transform: scale(1);
  }
  48.1%, 100% {
    opacity: 0;
    transform: scale(0);
  }
}
@keyframes nbf-dot3 {
  0%, 62% {
    opacity: 1;
    transform: scale(1);
  }
  62.1%, 100% {
    opacity: 0;
    transform: scale(0);
  }
}
@keyframes nbf-n3 {
  0%, 34% {
    opacity: 1;
  }
  34.1%, 100% {
    opacity: 0;
  }
}
@keyframes nbf-n2 {
  0%, 34% {
    opacity: 0;
  }
  34.1%, 48% {
    opacity: 1;
  }
  48.1%, 100% {
    opacity: 0;
  }
}
@keyframes nbf-n1 {
  0%, 48% {
    opacity: 0;
  }
  48.1%, 62% {
    opacity: 1;
  }
  62.1%, 100% {
    opacity: 0;
  }
}
@keyframes nbf-badge {
  0%, 62% {
    opacity: 1;
    transform: scale(1);
  }
  62.1%, 100% {
    opacity: 0;
    transform: scale(0);
  }
}
.frame.is-demo .bell {
  animation-name: nbf-press;
  animation-duration: 2s;
  animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite;
}
.frame.is-demo .panel {
  animation-name: nbf-panel-cut, nbf-panel-rise;
  animation-duration: 2s, 2s;
  animation-timing-function: steps(1, end), cubic-bezier(0.2, 0.8, 0.2, 1);
  animation-iteration-count: infinite, infinite;
}
.frame.is-demo .badge {
  animation-name: nbf-badge;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.frame.is-demo .badge .n3 {
  animation-name: nbf-n3;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.frame.is-demo .badge .n2 {
  animation-name: nbf-n2;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.frame.is-demo .badge .n1 {
  animation-name: nbf-n1;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.frame.is-demo .rows li:nth-child(1) .row {
  animation-name: nbf-dim1;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.frame.is-demo .rows li:nth-child(1) .dot {
  animation-name: nbf-dot1;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.frame.is-demo .rows li:nth-child(2) .row {
  animation-name: nbf-dim2;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.frame.is-demo .rows li:nth-child(2) .dot {
  animation-name: nbf-dot2;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.frame.is-demo .rows li:nth-child(3) .row {
  animation-name: nbf-dim3;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}
.frame.is-demo .rows li:nth-child(3) .dot {
  animation-name: nbf-dot3;
  animation-duration: 2s;
  animation-timing-function: steps(1, end);
  animation-iteration-count: infinite;
}

@media (max-width: 340px) {
  .bar {
    padding: 4px 8px;
  }
  .brand {
    font-size: 13px;
  }
  .panel {
    top: 44px;
    width: min(216px, 84vw);
    padding: 4px;
  }
  .phead {
    margin-bottom: 0;
  }
  .ptitle {
    font-size: 11px;
  }
  .row {
    padding: 0;
    column-gap: 4px;
  }
  .rt {
    font-size: 11px;
    line-height: 1.25;
  }
  .rtime {
    font-size: 10px;
    line-height: 1.2;
  }
  .body {
    gap: 4px;
    padding: 0 8px 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .frame.is-demo .bell,
  .frame.is-demo .panel,
  .frame.is-demo .badge,
  .frame.is-demo .badge .n3,
  .frame.is-demo .badge .n2,
  .frame.is-demo .badge .n1,
  .frame.is-demo .rows li .row,
  .frame.is-demo .rows li .dot {
    animation: none !important;
  }
  .frame.is-demo .panel {
    opacity: 1 !important;
    transform: none !important;
  }
}
