*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
}

:root {
  --bg: #272838;
  --card: #3d3dcc;
  --card-hover: #4848dd;
  --white: #ffffff;
  --white-soft: rgba(255, 255, 255, 0.75);
  --white-dim: rgba(255, 255, 255, 0.5);
  --accent: #7c7cf0;

  --font: 'Nunito', sans-serif;

  --radius: 20px;
  --ease: cubic-bezier(0.25, 1, 0.5, 1);
}

body {
  background: var(--bg);
  color: var(--white);
  font-family: var(--font);
  min-height: 100dvh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

#main {
  width: 100%;
  max-width: 480px;
  padding: clamp(2.5rem, 8vw, 4rem) clamp(1.25rem, 5vw, 2rem) 3rem;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.headline {
  font-size: clamp(2rem, 6vw, 2.75rem);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--white);
  text-align: center;
  margin-bottom: 1.4rem;
}

.sleep-sentence {
  text-align: center;
  font-size: clamp(0.9rem, 2.5vw, 1rem);
  font-weight: 400;
  color: var(--white-dim);
  letter-spacing: 0.01em;
  margin-bottom: 2rem;
  line-height: 1.5;
}

.sleep-sentence strong {
  color: var(--white-soft);
  font-weight: 700;
}

.time-accent {
  color: var(--accent);
  font-weight: 800;
  font-size: 1.05em;
}

.wake-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.wake-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.3rem 1.5rem 1.1rem;
  background: var(--card);
  border-radius: var(--radius);
  cursor: default;
  overflow: hidden;
  transition: background 0.25s var(--ease),
    transform 0.25s var(--ease);
  animation: card-in 0.5s var(--item-delay, 0s) var(--ease) both;
}

.wake-item:hover {
  background: var(--card-hover);
  transform: scale(1.015);
}

.wake-item::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='100'%3E%3Cellipse cx='30' cy='62' rx='18' ry='11' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1.5'/%3E%3Ccircle cx='48' cy='56' r='8' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1.5'/%3E%3Cpolygon points='44,50 41,44 47,48' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1.2'/%3E%3Cpolygon points='52,50 55,44 49,48' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1.2'/%3E%3Cpath d='M12,60 Q4,52 8,44' fill='none' stroke='rgba(255,255,255,0.1)' stroke-width='1.5' stroke-linecap='round'/%3E%3Ctext x='88' y='25' fill='rgba(255,255,255,0.14)' font-size='11' font-family='sans-serif'%3E★%3C/text%3E%3Ctext x='10' y='22' fill='rgba(255,255,255,0.1)' font-size='8' font-family='sans-serif'%3E★%3C/text%3E%3Ctext x='100' y='72' fill='rgba(255,255,255,0.08)' font-size='7' font-family='sans-serif'%3E★%3C/text%3E%3Ctext x='76' y='58' fill='rgba(255,255,255,0.1)' font-size='14' font-family='sans-serif'%3E☾%3C/text%3E%3C/svg%3E") repeat;
  pointer-events: none;
}

.card-left {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  position: relative;
  z-index: 1;
}

.wake-time {
  font-size: clamp(2.4rem, 7vw, 3.1rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--white);
}

.wake-meta {
  font-size: 0.72rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
  letter-spacing: 0.04em;
}

.alarm-icon {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  opacity: 0.65;
  background: none;
  border: none;
  padding: 6px;
  margin: -6px;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.2s var(--ease),
    background 0.2s var(--ease),
    transform 0.2s var(--ease);
}

.alarm-icon:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.12);
  transform: scale(1.1);
}

.alarm-icon:active {
  transform: scale(0.95);
}

.alarm-icon svg {
  width: clamp(28px, 6vw, 38px);
  height: clamp(28px, 6vw, 38px);
  display: block;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

* {
  -webkit-touch-callout: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.alarm-icon,
.alarm-icon * {
  -webkit-user-select: auto;
  user-select: auto;
}

#wake-list,
#wake-list * {
  -webkit-tap-highlight-color: transparent !important;
}