.pls-root {
  --pls-phone-w: min(100%, 300px);
  --pls-radius-outer: 42px;
  --pls-radius-inner: 34px;
  --pls-black: #000000;
  --pls-surface: #050505;
  --pls-red: #e60012;
  --pls-red-soft: rgba(230, 0, 18, 0.45);
  --pls-white: #ffffff;
  --pls-text: #fafafa;
  --pls-muted: rgba(255, 255, 255, 0.52);
  --pls-glass: rgba(255, 255, 255, 0.045);
  --pls-glass-border: rgba(255, 255, 255, 0.1);
  --pls-font: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-family: var(--pls-font);
  box-sizing: border-box;
  background: transparent;
  color: var(--pls-text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.pls-root *,
.pls-root *::before,
.pls-root *::after {
  box-sizing: inherit;
}

.pls-phone {
  width: var(--pls-phone-w);
  margin: 0 auto;
  padding: 9px;
  border-radius: var(--pls-radius-outer);
  background: linear-gradient(160deg, #0c0c0c 0%, #000000 40%, #080808 100%);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.06),
    0 32px 64px rgba(0, 0, 0, 0.75),
    0 0 80px rgba(230, 0, 18, 0.07),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.pls-screen {
  position: relative;
  border-radius: var(--pls-radius-inner);
  min-height: 580px;
  overflow: hidden;
  background-color: var(--pls-black);
  background-image:
    repeating-radial-gradient(
      circle at 78% 42%,
      transparent 0,
      transparent 28px,
      rgba(255, 255, 255, 0.018) 28px,
      rgba(255, 255, 255, 0.018) 29px,
      transparent 29px,
      transparent 56px
    ),
    radial-gradient(ellipse 90% 70% at 82% 38%, rgba(230, 0, 18, 0.09) 0%, transparent 55%),
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.04) 0%, transparent 45%);
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.04),
    inset 0 0 48px rgba(0, 0, 0, 0.5);
}

.pls-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.03) 0%, transparent 22%);
  opacity: 0.7;
}

.pls-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background: radial-gradient(
    ellipse 100% 65% at 50% 12%,
    rgba(230, 0, 18, 0.06) 0%,
    transparent 50%
  );
}

.pls-island-wrap {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  padding-top: 13px;
  padding-bottom: 6px;
}

.pls-dynamic-island {
  width: 112px;
  height: 32px;
  border-radius: 18px;
  background: #0a0a0a;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.07),
    0 4px 12px rgba(0, 0, 0, 0.65),
    0 0 24px rgba(230, 0, 18, 0.08);
}

.pls-content {
  position: relative;
  z-index: 1;
  padding: 6px 20px 56px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 520px;
}

.pls-clock {
  margin-top: 10px;
  font-size: clamp(3rem, 11vw, 3.85rem);
  font-weight: 300;
  letter-spacing: -0.045em;
  color: var(--pls-white);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.06);
}

.pls-date {
  margin-top: 10px;
  font-size: 0.6875rem;
  font-weight: 500;
  color: var(--pls-muted);
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.pls-notifications {
  width: 100%;
  margin-top: 32px;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.pls-notifications-stack {
  position: relative;
  width: 100%;
  min-height: 280px;
  perspective: 1000px;
  perspective-origin: 50% 0%;
}

.pls-notification-card {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 15px 15px 14px;
  border-radius: 14px;
  background: var(--pls-glass);
  border: 1px solid var(--pls-glass-border);
  backdrop-filter: blur(40px) saturate(1.35);
  -webkit-backdrop-filter: blur(40px) saturate(1.35);
  box-shadow:
    0 12px 40px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 0 1px rgba(0, 0, 0, 0.35) inset;
  transform-origin: top center;
  transition:
    transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
    box-shadow 0.35s ease;
}

.pls-notification-card.pls-stack-0 {
  transform: translate3d(0, 0, 0) scale(1);
  opacity: 1;
  z-index: 30;
}

.pls-notification-card.pls-stack-1 {
  transform: translate3d(0, 54px, -10px) scale(0.965) rotateX(1.5deg);
  opacity: 0.72;
  z-index: 20;
}

.pls-notification-card.pls-stack-2 {
  transform: translate3d(0, 104px, -22px) scale(0.93) rotateX(3deg);
  opacity: 0.42;
  z-index: 10;
}

.pls-notification-card.pls-entering {
  transform: translate3d(0, 64px, 0) scale(0.96);
  opacity: 0;
  z-index: 40;
}

.pls-notification-card.pls-exit {
  transform: translate3d(0, 96px, -32px) scale(0.86) rotateX(5deg) !important;
  opacity: 0 !important;
  z-index: 5;
  pointer-events: none;
  transition:
    transform 0.45s cubic-bezier(0.4, 0, 1, 1),
    opacity 0.4s cubic-bezier(0.4, 0, 1, 1);
}

.pls-notification-icon {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  position: relative;
}

.pls-notification-icon::after {
  content: "";
  position: absolute;
  top: 7px;
  left: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pls-red);
  box-shadow: 0 0 10px var(--pls-red-soft);
}

.pls-notification-body {
  min-width: 0;
  flex: 1;
}

.pls-notification-title {
  margin: 0 0 5px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--pls-white);
  letter-spacing: -0.02em;
}

.pls-notification-text {
  margin: 0;
  font-size: 0.75rem;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.62);
  letter-spacing: 0.01em;
}

.pls-sound-wrap {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 13px;
  z-index: 4;
  display: flex;
  justify-content: center;
  pointer-events: auto;
}

.pls-sound-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    background 0.25s ease,
    border-color 0.25s ease,
    color 0.25s ease,
    box-shadow 0.25s ease;
}

.pls-sound-toggle:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.16);
  color: var(--pls-white);
}

.pls-sound-toggle:focus-visible {
  outline: 2px solid var(--pls-red);
  outline-offset: 2px;
}

.pls-sound-toggle[aria-pressed="true"] {
  background: var(--pls-red);
  border-color: var(--pls-red);
  color: var(--pls-white);
  box-shadow: 0 4px 24px rgba(230, 0, 18, 0.35);
}

.pls-sound-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
