:root {
  --bg: #f4f0e8;
  --surface: rgba(255, 252, 246, 0.8);
  --surface-strong: #fffaf0;
  --text: #133127;
  --muted: #5f7568;
  --line: rgba(19, 49, 39, 0.12);
  --accent: #1f7a4f;
  --accent-deep: #0d5a38;
  --accent-soft: #d7f1df;
  --gold: #d59d37;
  --shadow: 0 24px 60px rgba(20, 42, 34, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 16%, rgba(240, 194, 91, 0.34), transparent 30%),
    radial-gradient(circle at 88% 14%, rgba(31, 122, 79, 0.3), transparent 32%),
    radial-gradient(circle at 30% 82%, rgba(127, 227, 140, 0.2), transparent 24%),
    linear-gradient(145deg, #fff6dc 0%, #f4efe3 34%, #e8f5ec 70%, #ddf0e4 100%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: linear-gradient(rgba(19, 49, 39, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 49, 39, 0.04) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(circle at center, black 55%, transparent 90%);
}

.cursor-orb,
.cursor-trail {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 90;
  border-radius: 50%;
  pointer-events: none;
  opacity: 0;
  transform: translate3d(-50%, -50%, 0);
  transition: opacity 180ms ease;
}

.cursor-orb {
  width: 18px;
  height: 18px;
  background: radial-gradient(circle, rgba(255, 248, 209, 0.95) 0%, rgba(127, 227, 140, 0.72) 52%, rgba(127, 227, 140, 0) 100%);
  box-shadow: 0 0 18px rgba(127, 227, 140, 0.42);
}

.cursor-trail {
  width: 54px;
  height: 54px;
  background: radial-gradient(circle, rgba(240, 194, 91, 0.22) 0%, rgba(127, 227, 140, 0.12) 48%, rgba(127, 227, 140, 0) 76%);
  filter: blur(1px);
}

.cursor-trail.cursor-trail-far {
  width: 86px;
  height: 86px;
  background: radial-gradient(circle, rgba(127, 227, 140, 0.12) 0%, rgba(127, 227, 140, 0.05) 48%, rgba(127, 227, 140, 0) 76%);
}

body.cursor-effect-active .cursor-orb,
body.cursor-effect-active .cursor-trail {
  opacity: 1;
}

.page-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 24px 0 56px;
}

.toast {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 60;
  max-width: min(360px, calc(100vw - 32px));
  padding: 14px 18px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 18px;
  background: rgba(13, 90, 56, 0.94);
  color: #fffdf3;
  box-shadow: 0 18px 40px rgba(13, 90, 56, 0.28);
  backdrop-filter: blur(16px);
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 180ms ease, transform 180ms ease, background 220ms ease, border-color 220ms ease;
}

.toast[data-tone="error"] {
  background: rgba(150, 43, 43, 0.95);
  border-color: rgba(255, 214, 214, 0.42);
  box-shadow: 0 18px 40px rgba(150, 43, 43, 0.24);
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 80;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -24px;
  width: 12px;
  height: 20px;
  border-radius: 4px;
  opacity: 0.95;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 1;
  }

  100% {
    transform: translate3d(var(--drift-x), 110vh, 0) rotate(var(--spin));
    opacity: 0;
  }
}

.volume-dock {
  position: fixed;
  left: 20px;
  bottom: 20px;
  z-index: 60;
  opacity: 0;
  pointer-events: none;
  transform: translateY(16px);
  transition: opacity 220ms ease, transform 220ms ease;
}

.volume-dock.is-visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.volume-dock-title {
  margin: 0 0 8px;
  padding-left: 4px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.volume-slider {
  width: 170px;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 999px;
  background: rgba(255, 250, 240, 0.9);
  box-shadow: 0 18px 40px rgba(20, 42, 34, 0.14);
  backdrop-filter: blur(16px);
  accent-color: var(--accent);
  cursor: pointer;
}

.streak-banner {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 26px;
  margin-bottom: 22px;
  padding: 24px 28px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 30px;
  background:
    radial-gradient(circle at left center, rgba(240, 194, 91, 0.2), transparent 24%),
    linear-gradient(135deg, rgba(13, 90, 56, 0.96), rgba(31, 122, 79, 0.92));
  color: #f7f7ef;
  box-shadow: 0 20px 40px rgba(13, 90, 56, 0.22);
  backdrop-filter: blur(18px);
  transform-origin: top center;
  transition: padding 180ms ease, transform 180ms ease, border-radius 180ms ease, box-shadow 180ms ease;
}

.streak-banner.is-condensed {
  padding: 18px 24px;
  border-radius: 24px;
  transform: scale(0.965);
  box-shadow: 0 16px 32px rgba(13, 90, 56, 0.2);
}

.streak-banner .eyebrow,
.streak-scale,
.streak-meta {
  color: rgba(247, 247, 239, 0.8);
}

.streak-banner-copy {
  display: grid;
  gap: 6px;
}

.streak-switcher {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

#streakBannerLabel {
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #fffdf3;
}

.streak-arrow {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fffdf3;
  font-size: 1.15rem;
  box-shadow: none;
}

.streak-arrow:hover {
  background: rgba(255, 255, 255, 0.18);
}

.streak-headline {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}

.streak-headline strong {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(3.5rem, 8vw, 6.6rem);
  line-height: 0.82;
  letter-spacing: -0.04em;
  color: #fffdf3;
  text-shadow: 0 10px 24px rgba(0, 0, 0, 0.16);
}

#streakBannerValue {
  background: linear-gradient(180deg, #fff7cc 0%, #f0c25b 55%, #fffef7 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.streak-meta {
  font-size: 1.1rem;
  font-weight: 700;
}

.streak-banner-progress {
  width: min(460px, 100%);
  display: grid;
  gap: 12px;
}

.streak-progress-track {
  overflow: hidden;
  height: 24px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.streak-progress-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0c25b 0%, #f7e18d 30%, #7fe38c 100%);
  box-shadow: 0 0 24px rgba(240, 194, 91, 0.34);
  transition: width 240ms ease;
}

.streak-scale {
  margin: 0;
  text-align: right;
  font-size: 1rem;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 32px;
  background: rgba(255, 250, 240, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero::after {
  content: "";
  position: absolute;
  width: 280px;
  height: 280px;
  right: -60px;
  top: -70px;
  border-radius: 50%;
  background: rgba(31, 122, 79, 0.13);
}

.topbar,
.hero-grid,
.stats-strip,
.content-grid,
.panel-head,
.list-head,
.reminder-main,
.reminder-actions,
.hero-actions,
.brand {
  display: flex;
}

.topbar,
.panel-head,
.list-head {
  align-items: center;
  justify-content: space-between;
}

.brand {
  align-items: center;
  gap: 14px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent) 0%, #5fbd73 100%);
  color: white;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.35rem;
  font-weight: 700;
}

.eyebrow,
.mini-label,
.tag,
.preset-frequency,
.reminder-frequency {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.74rem;
  color: var(--muted);
}

.brand h1,
.hero-copy h2,
.panel h3,
.stats-strip strong,
.hero-card strong,
.preset-card h4,
.reminder-card h4 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
}

.brand h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
}

.hero-grid {
  position: relative;
  z-index: 1;
  gap: 28px;
  margin-top: 48px;
  align-items: stretch;
}

.hero-copy {
  flex: 1.2;
}

.tag {
  margin: 0 0 14px;
  color: var(--accent-deep);
}

.hero-copy h2 {
  max-width: 12ch;
  font-size: clamp(2.8rem, 5vw, 5.2rem);
  line-height: 0.95;
  transition: opacity 220ms ease, transform 220ms ease;
}

.hero-tip-changing {
  opacity: 0.35;
  transform: translateY(6px);
}

.hero-text {
  max-width: 62ch;
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--muted);
}

.hero-actions {
  gap: 14px;
  margin: 28px 0;
  flex-wrap: wrap;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.hero-points li,
.stats-strip article,
.preset-card,
.reminder-card,
.hero-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(10px);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.hero-points li {
  padding: 14px 16px;
  border-radius: 18px;
}

.hero-card {
  width: min(360px, 100%);
  padding: 24px;
  border-radius: 28px;
  align-self: center;
}

.focus-list {
  display: grid;
  gap: 14px;
  margin: 18px 0 24px;
}

.focus-list article {
  display: grid;
  gap: 6px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.focus-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.focus-list span,
.supporting,
label,
.pill,
.impact-badge,
.cooldown-note,
.delete-button,
.complete-button,
.notify-note {
  color: var(--muted);
}

.notify-note {
  max-width: 62ch;
  margin: 0 0 24px;
  line-height: 1.6;
}

.card-meter {
  padding: 18px;
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(31, 122, 79, 0.12), rgba(213, 157, 55, 0.18));
}

.stats-strip {
  gap: 16px;
  margin: 24px 0;
  flex-wrap: wrap;
}

.stats-strip article {
  flex: 1 1 180px;
  padding: 20px;
  border-radius: 24px;
}

.stats-strip p {
  margin: 0 0 8px;
  color: var(--muted);
}

.content-grid {
  gap: 24px;
  align-items: start;
}

.pet-companion {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 55;
  width: 220px;
  max-width: calc(100vw - 24px);
  display: grid;
  justify-items: center;
  gap: 10px;
  pointer-events: none;
  will-change: transform;
}

.pet-mood-bubble {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 24px;
  background: rgba(255, 253, 247, 0.86);
  box-shadow: 0 20px 40px rgba(20, 42, 34, 0.16);
  backdrop-filter: blur(16px);
}

.pet-stage-chip {
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  margin-bottom: 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(240, 194, 91, 0.24), rgba(127, 227, 140, 0.24));
  color: var(--accent-deep);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.pet-mood {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1rem;
  line-height: 1.15;
}

.pet-growth-mini {
  overflow: hidden;
  height: 10px;
  margin: 12px 0 8px;
  border-radius: 999px;
  background: rgba(19, 49, 39, 0.08);
}

.pet-growth-mini-fill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #f0c25b 0%, #84db79 42%, #46b2d6 100%);
  transition: width 220ms ease;
}

.pet-growth-text,
.pet-hint {
  margin: 0;
  color: var(--muted);
  font-size: 0.84rem;
  line-height: 1.45;
}

.pet-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 150px;
  height: 150px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  pointer-events: auto;
}

.pet-button:hover .pet-avatar,
.pet-button:focus-visible .pet-avatar,
.pet-button.is-excited .pet-avatar {
  transform: translateY(-8px) scale(calc(var(--pet-scale, 1.02) * 1.06));
}

.pet-button:focus-visible {
  outline: none;
}

.pet-button:focus-visible .pet-aura {
  box-shadow: 0 0 0 4px rgba(31, 122, 79, 0.18);
}

.pet-aura {
  display: block;
  position: absolute;
  width: 172px;
  height: 172px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(127, 227, 140, 0.44), rgba(127, 227, 140, 0) 62%),
    radial-gradient(circle, rgba(240, 194, 91, 0.22), rgba(240, 194, 91, 0) 70%);
  filter: blur(4px);
  opacity: 0.95;
  animation: petPulse 2.6s ease-in-out infinite;
}

.pet-spark {
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 248, 200, 0.95), rgba(255, 248, 200, 0));
  opacity: 0.55;
  animation: petTwinkle 2.2s ease-in-out infinite;
}

.pet-spark-1 {
  top: 16px;
  right: 16px;
}

.pet-spark-2 {
  left: 10px;
  top: 44px;
  animation-delay: 0.6s;
}

.pet-spark-3 {
  right: 22px;
  bottom: 18px;
  animation-delay: 1.1s;
}

.pet-companion.is-bursting .pet-spark {
  animation: petBurst 700ms ease-out;
}

.pet-avatar {
  --pet-scale: 1;
  display: block;
  position: relative;
  width: 122px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 38% 34%, rgba(141, 230, 164, 0.9), rgba(141, 230, 164, 0) 18%),
    linear-gradient(180deg, #7fd7ff 0%, #4cb66d 54%, #185f76 100%);
  box-shadow:
    inset -12px -18px 28px rgba(8, 58, 74, 0.36),
    0 22px 36px rgba(17, 72, 50, 0.18);
  transition: transform 180ms ease, filter 220ms ease, box-shadow 220ms ease;
  transform: scale(var(--pet-scale));
}

.pet-avatar::before,
.pet-avatar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  background: rgba(36, 131, 73, 0.95);
}

.pet-avatar::before {
  width: 58px;
  height: 36px;
  left: 24px;
  top: 42px;
  transform: rotate(-18deg);
}

.pet-avatar::after {
  width: 46px;
  height: 28px;
  right: 22px;
  bottom: 34px;
  transform: rotate(22deg);
}

.pet-face {
  display: block;
  position: absolute;
  inset: 0;
}

.pet-eye,
.pet-mouth {
  position: absolute;
  background: #103229;
}

.pet-eye {
  top: 58px;
  width: 14px;
  height: 18px;
  border-radius: 50%;
}

.pet-eye-left {
  left: 46px;
}

.pet-eye-right {
  right: 46px;
}

.pet-mouth {
  left: 50%;
  bottom: 44px;
  width: 32px;
  height: 16px;
  border-radius: 0 0 18px 18px;
  transform: translateX(-50%);
  clip-path: inset(45% 0 0 0);
}

.pet-leaf,
.pet-orbit {
  position: absolute;
  opacity: 0;
  transition: opacity 220ms ease, transform 220ms ease;
}

.pet-leaf {
  width: 34px;
  height: 54px;
  border-radius: 100% 0;
  background: linear-gradient(180deg, #9cf08f, #2a9f4b);
  box-shadow: inset -4px -6px 10px rgba(10, 84, 44, 0.22);
}

.pet-leaf-left {
  top: -12px;
  left: 26px;
  transform: rotate(-28deg) scale(0.8);
}

.pet-leaf-right {
  top: -20px;
  right: 22px;
  transform: rotate(18deg) scale(0.8);
}

.pet-orbit {
  inset: -16px;
  border: 2px dashed rgba(240, 194, 91, 0.7);
  border-radius: 50%;
  animation: petOrbit 8s linear infinite;
}

.pet-avatar.pet-stage-0 {
  --pet-scale: 0.58;
  border-radius: 58% 42% 60% 40%;
  background: linear-gradient(180deg, #8ec56c 0%, #54853b 100%);
  box-shadow:
    inset -8px -12px 18px rgba(37, 76, 28, 0.28),
    0 14px 24px rgba(34, 74, 28, 0.16);
  filter: saturate(0.95);
}

.pet-avatar.pet-stage-0::before {
  width: 22px;
  height: 28px;
  left: 34px;
  top: 18px;
  background: linear-gradient(180deg, #a7e58a, #6ead4f);
  transform: rotate(-18deg);
}

.pet-avatar.pet-stage-0::after {
  width: 0;
  height: 0;
  opacity: 0;
}

.pet-avatar.pet-stage-0 .pet-eye-left {
  left: 50%;
  top: 46px;
  width: 18px;
  height: 22px;
  transform: translateX(-50%);
}

.pet-avatar.pet-stage-0 .pet-eye-right,
.pet-avatar.pet-stage-0 .pet-mouth,
.pet-avatar.pet-stage-0 .pet-leaf,
.pet-avatar.pet-stage-0 .pet-orbit {
  opacity: 0;
}

.pet-avatar.pet-stage-1 {
  --pet-scale: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 28% 28%, rgba(255, 255, 255, 0.88), rgba(255, 255, 255, 0) 22%),
    radial-gradient(circle at 38% 34%, rgba(141, 230, 164, 0.9), rgba(141, 230, 164, 0) 18%),
    linear-gradient(180deg, #7fd7ff 0%, #4cb66d 54%, #185f76 100%);
  box-shadow:
    inset -12px -18px 28px rgba(8, 58, 74, 0.36),
    0 22px 36px rgba(17, 72, 50, 0.18);
  filter: none;
}

.pet-avatar.pet-stage-1::before,
.pet-avatar.pet-stage-1::after {
  background: rgba(36, 131, 73, 0.95);
}

.pet-avatar.pet-stage-1::before {
  width: 58px;
  height: 36px;
  left: 24px;
  top: 42px;
  transform: rotate(-18deg);
  opacity: 1;
}

.pet-avatar.pet-stage-1::after {
  width: 46px;
  height: 28px;
  right: 22px;
  bottom: 34px;
  transform: rotate(22deg);
  opacity: 1;
}

.pet-avatar.pet-stage-1 .pet-eye-right,
.pet-avatar.pet-stage-1 .pet-mouth {
  opacity: 1;
}

.pet-avatar.pet-stage-1 .pet-leaf-left {
  opacity: 1;
}

.pet-avatar.pet-stage-2 {
  --pet-scale: 1.08;
  background:
    radial-gradient(circle at 35% 32%, rgba(255, 247, 203, 0.92), rgba(255, 247, 203, 0) 24%),
    radial-gradient(circle at center, #fff0aa 0%, #f6c14f 44%, #ef8f2f 72%, #d95e1d 100%);
  box-shadow:
    inset -12px -12px 22px rgba(176, 80, 18, 0.26),
    0 0 40px rgba(248, 191, 74, 0.42);
  filter: saturate(1.08);
}

.pet-avatar.pet-stage-2::before,
.pet-avatar.pet-stage-2::after,
.pet-avatar.pet-stage-2 .pet-face {
  opacity: 0;
}

.pet-avatar.pet-stage-2 .pet-orbit {
  opacity: 1;
  inset: -24px;
  border: 6px dashed rgba(255, 209, 95, 0.5);
  animation-duration: 12s;
}

.pet-avatar.pet-stage-2 .pet-leaf {
  opacity: 0.72;
  background: linear-gradient(180deg, #ffe7a1, #ffb843);
}

.pet-avatar.pet-stage-3 {
  --pet-scale: 1.12;
  background:
    radial-gradient(circle at center, #05060b 0%, #0f1320 28%, #140f29 48%, #000000 64%),
    radial-gradient(circle at center, rgba(132, 95, 255, 0.12), rgba(132, 95, 255, 0) 70%);
  box-shadow:
    0 0 0 10px rgba(126, 87, 255, 0.14),
    0 0 36px rgba(74, 50, 123, 0.34);
}

.pet-avatar.pet-stage-3::before {
  width: 138px;
  height: 54px;
  left: 50%;
  top: 34px;
  border: 8px solid rgba(245, 186, 86, 0.72);
  background: transparent;
  box-shadow: 0 0 18px rgba(245, 186, 86, 0.28);
  transform: translateX(-50%) rotate(-18deg);
}

.pet-avatar.pet-stage-3::after {
  width: 118px;
  height: 40px;
  left: 50%;
  top: 42px;
  border: 6px solid rgba(121, 189, 255, 0.38);
  background: transparent;
  transform: translateX(-50%) rotate(-18deg);
}

.pet-avatar.pet-stage-3 .pet-face,
.pet-avatar.pet-stage-3 .pet-leaf {
  opacity: 0;
}

.pet-avatar.pet-stage-3 .pet-orbit {
  opacity: 1;
  inset: -26px;
  border: 2px solid rgba(151, 123, 255, 0.24);
  animation-duration: 10s;
}

.pet-avatar.pet-stage-4 {
  --pet-scale: 1.28;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.95) 0%, rgba(255, 255, 255, 0.18) 10%, rgba(41, 58, 112, 0) 18%),
    radial-gradient(circle at 38% 38%, rgba(144, 198, 255, 0.32), rgba(144, 198, 255, 0) 30%),
    radial-gradient(circle at 62% 60%, rgba(255, 195, 232, 0.28), rgba(255, 195, 232, 0) 32%),
    radial-gradient(circle at center, #21184d 0%, #1b3a83 34%, #5b4fc7 56%, #f06cb7 78%, rgba(255, 233, 175, 0.92) 100%);
  box-shadow:
    0 0 44px rgba(108, 116, 255, 0.28),
    0 0 84px rgba(255, 160, 210, 0.18);
  filter: saturate(1.18) brightness(1.04);
}

.pet-avatar.pet-stage-4::before {
  width: 146px;
  height: 44px;
  left: 50%;
  top: 38px;
  background: linear-gradient(90deg, rgba(255, 219, 128, 0), rgba(255, 219, 128, 0.84), rgba(255, 219, 128, 0));
  box-shadow: 0 0 24px rgba(255, 219, 128, 0.4);
  transform: translateX(-50%) rotate(26deg);
}

.pet-avatar.pet-stage-4::after {
  width: 136px;
  height: 36px;
  left: 50%;
  top: 46px;
  background: linear-gradient(90deg, rgba(133, 194, 255, 0), rgba(133, 194, 255, 0.72), rgba(133, 194, 255, 0));
  transform: translateX(-50%) rotate(-18deg);
}

.pet-avatar.pet-stage-4 .pet-face,
.pet-avatar.pet-stage-4 .pet-leaf {
  opacity: 0;
}

.pet-avatar.pet-stage-4 .pet-orbit {
  opacity: 1;
  inset: -32px;
  border: 2px dashed rgba(255, 230, 168, 0.34);
  animation-duration: 16s;
}

@keyframes petPulse {
  0%,
  100% {
    transform: scale(0.96);
    opacity: 0.7;
  }

  50% {
    transform: scale(1.06);
    opacity: 1;
  }
}

@keyframes petTwinkle {
  0%,
  100% {
    transform: scale(0.6);
    opacity: 0.35;
  }

  50% {
    transform: scale(1.35);
    opacity: 1;
  }
}

@keyframes petBurst {
  0% {
    transform: scale(0.5);
    opacity: 0.3;
  }

  65% {
    transform: scale(2.1);
    opacity: 1;
  }

  100% {
    transform: scale(2.8);
    opacity: 0;
  }
}

@keyframes petOrbit {
  from {
    transform: rotate(0deg);
  }

  to {
    transform: rotate(360deg);
  }
}

.planner-panel {
  flex: 1.15;
}

.library-panel {
  flex: 0.85;
}

.panel {
  padding: 24px;
  border-radius: 28px;
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.55);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.reminder-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) auto;
  gap: 14px;
  margin: 22px 0 32px;
}

label {
  display: grid;
  gap: 8px;
  font-size: 0.95rem;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
}

select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 48px;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--accent-deep) 50%),
    linear-gradient(135deg, var(--accent-deep) 50%, transparent 50%),
    linear-gradient(180deg, rgba(31, 122, 79, 0.1), rgba(31, 122, 79, 0.04));
  background-position:
    calc(100% - 24px) calc(50% - 3px),
    calc(100% - 18px) calc(50% - 3px),
    100% 0;
  background-size:
    6px 6px,
    6px 6px,
    44px 100%;
  background-repeat: no-repeat;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
  cursor: pointer;
}

select:hover {
  border-color: rgba(31, 122, 79, 0.28);
}

input:focus,
select:focus {
  outline: none;
  border-color: rgba(31, 122, 79, 0.5);
  box-shadow:
    0 0 0 4px rgba(31, 122, 79, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

button,
.ghost-button,
.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

button:hover,
.ghost-button:hover,
.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-1px);
}

.primary-button {
  padding: 14px 22px;
  border: 0;
  color: white;
  background: linear-gradient(135deg, var(--accent-deep), var(--accent));
  box-shadow: 0 12px 24px rgba(31, 122, 79, 0.24);
  cursor: pointer;
}

.secondary-button,
.ghost-button,
.complete-button,
.delete-button {
  padding: 12px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.76);
}

.ghost-button {
  color: var(--text);
}

.notify-button {
  position: relative;
  gap: 10px;
  border: 1px solid rgba(168, 54, 54, 0.55);
  background: linear-gradient(180deg, rgba(255, 245, 245, 0.92), rgba(255, 255, 255, 0.82));
  box-shadow: 0 10px 24px rgba(168, 54, 54, 0.12);
  transition:
    transform 180ms ease,
    box-shadow 220ms ease,
    background 220ms ease,
    border-color 220ms ease,
    color 220ms ease;
}

.notify-button::after {
  content: "";
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(216, 82, 82, 0.18), rgba(168, 54, 54, 0));
  opacity: 0.9;
  pointer-events: none;
}

.notify-button:hover {
  color: #fff7f7;
  border-color: rgba(168, 54, 54, 0.95);
  background: linear-gradient(135deg, #d85252, #a83636);
  box-shadow: 0 16px 34px rgba(168, 54, 54, 0.24);
}

.notify-button:hover::after {
  opacity: 0;
  transition: opacity 220ms ease;
}

.notify-button span {
  position: relative;
  z-index: 1;
}

.notify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
}

.notify-icon-bell {
  position: relative;
  width: 12px;
  height: 10px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
}

.notify-icon-bell::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -5px;
  width: 10px;
  height: 2px;
  background: currentColor;
  border-radius: 999px;
  transform: translateX(-50%);
}

.notify-icon-bell::after {
  content: "";
  position: absolute;
  left: 50%;
  top: -4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}

.pill,
.impact-badge {
  display: inline-flex;
  align-items: center;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.6);
}

.preset-list,
.reminder-list {
  display: grid;
  gap: 16px;
}

.completion-count {
  margin: 0;
  color: var(--muted);
  font-size: 0.95rem;
}

.preset-card,
.reminder-card {
  padding: 18px;
  border-radius: 22px;
}

.preset-card,
.reminder-main,
.reminder-actions {
  align-items: center;
  justify-content: space-between;
}

.reminder-card {
  display: grid;
  gap: 16px;
}

.impact-badge {
  background: var(--accent-soft);
  color: var(--accent-deep);
}

.cooldown-note {
  min-width: 148px;
  font-size: 0.9rem;
  font-weight: 700;
}

.complete-button {
  color: var(--accent-deep);
}

.complete-button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  background: rgba(215, 241, 223, 0.9);
}

.delete-button {
  color: #8b5a42;
}

.empty-state {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 20px;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 960px) {
  .streak-banner,
  .hero-grid,
  .content-grid,
  .topbar,
  .panel-head,
  .list-head,
  .reminder-main,
  .reminder-actions,
  .preset-card {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-copy h2 {
    max-width: none;
  }

  .streak-scale {
    text-align: left;
  }

  .hero-card {
    width: 100%;
  }

  .reminder-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .page-shell {
    width: min(100% - 20px, 1180px);
  }

  .toast {
    right: 10px;
    bottom: 10px;
  }

  .volume-dock {
    left: 10px;
    bottom: 10px;
  }

  .streak-banner {
    top: 8px;
    padding: 18px;
    border-radius: 24px;
  }

  .streak-switcher {
    justify-content: space-between;
  }

  .streak-arrow {
    width: 38px;
    height: 38px;
  }

  .hero,
  .panel {
    padding: 18px;
    border-radius: 24px;
  }

  .hero-points {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: clamp(2.4rem, 12vw, 3.7rem);
  }

  .pet-companion {
    width: 170px;
  }

  .pet-mood-bubble {
    padding: 12px;
  }

  .pet-button {
    width: 124px;
    height: 124px;
  }

  .pet-avatar {
    width: 96px;
  }
}
