/* Core palette */
:root {
  --bg-gradient: linear-gradient(135deg, #351857, #8d54ff 40%, #f0a7ff 120%);
  --frame-gradient: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.82),
    rgba(241, 205, 255, 0.9)
  );
  --text-primary: #2a1149;
  --text-secondary: #f3ecff;
  --accent-pink: rgba(255, 153, 255, 0.95);
  --accent-violet: rgba(130, 92, 255, 0.85);
  --note-yellow: rgba(255, 240, 156, 0.58);
  --note-pink: rgba(255, 183, 244, 0.58);
  --note-blue: rgba(195, 225, 255, 0.58);
  --note-purple: rgba(206, 187, 255, 0.58);
  --shadow-soft: 0 28px 70px rgba(44, 8, 73, 0.38);
  --frame-shadow: 0 35px 90px rgba(31, 7, 52, 0.55);
}

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

html {
  min-height: 100%;
  background: var(--bg-gradient);
}

body {
  font-family: "Manrope", system-ui, sans-serif;
  background: var(--bg-gradient);
  color: var(--text-secondary);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  padding: 3.5rem 1.5rem;
}

body.schedule-modal-open {
  overflow: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
}

body::before {
  width: 460px;
  height: 460px;
  background: radial-gradient(
    circle,
    rgba(255, 185, 255, 0.9),
    rgba(90, 8, 163, 0)
  );
  top: -160px;
  left: -80px;
}

body::after {
  width: 520px;
  height: 520px;
  background: radial-gradient(
    circle,
    rgba(128, 104, 255, 0.85),
    rgba(36, 9, 89, 0)
  );
  bottom: -200px;
  right: -120px;
}

.bucket-list {
  width: min(940px, 100%);
  position: relative;
  z-index: 2;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bucket-header {
  text-align: center;
  margin-bottom: 2.5rem;
  text-shadow: 0 10px 25px rgba(28, 4, 51, 0.6);
}

.bucket-header h1 {
  font-family: "Kalam", cursive;
  font-size: clamp(3.1rem, 8vw, 5.6rem);
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #fff6ff;
  transform: rotate(-1deg);
}

.tagline {
  margin-top: 1rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.86);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.bucket-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  gap: clamp(1.2rem, 2.4vw, 1.8rem);
}

.bucket-frame {
  width: min(820px, 100%);
  padding: clamp(2.6rem, 5vw, 4rem);
  border-radius: 36px;
  background: var(--frame-gradient);
  color: var(--text-primary);
  box-shadow: var(--frame-shadow);
  position: relative;
  overflow: hidden;
  border: 3px solid rgba(255, 255, 255, 0.55);
  margin: 0 auto;
}

.bucket-frame::before,
.bucket-frame::after {
  content: "";
  position: absolute;
  width: 200px;
  height: 200px;
  background: rgba(255, 255, 255, 0.36);
  border-radius: 26% 74% 48% 52% / 42% 36% 64% 58%;
  filter: blur(0.5px);
  transform: rotate(12deg);
}

.bucket-frame::before {
  top: -70px;
  right: -60px;
}

.bucket-frame::after {
  bottom: -70px;
  left: -60px;
}

.bucket-frame .frame-glow {
  position: absolute;
  inset: 18px;
  border-radius: 28px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.65),
    rgba(250, 220, 255, 0.1)
  );
  mix-blend-mode: screen;
  pointer-events: none;
  opacity: 0.5;
  z-index: 0;
}

.bucket-add-form {
  width: 100%;
  display: flex;
  gap: clamp(0.7rem, 1.6vw, 1rem);
  align-items: stretch;
  margin-bottom: clamp(1.4rem, 2.8vw, 2.1rem);
  z-index: 2;
  position: relative;
}

.bucket-add-input {
  flex: 1;
  border: 0;
  border-radius: 20px;
  padding: clamp(0.9rem, 2.4vw, 1.15rem) clamp(1.1rem, 2.6vw, 1.6rem);
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  font-family: "Kalam", cursive;
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 16px 36px rgba(79, 24, 128, 0.22);
}

.bucket-add-input::placeholder {
  color: rgba(58, 25, 92, 0.45);
}

.bucket-add-input:focus {
  outline: 3px solid rgba(255, 227, 255, 0.7);
  outline-offset: 2px;
}

.bucket-add-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  line-height: 1;
  border: 0;
  border-radius: 18px;
  padding: clamp(0.9rem, 2.2vw, 1.1rem) clamp(1.1rem, 2.6vw, 1.6rem);
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-family: "Kalam", cursive;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    rgba(255, 183, 255, 0.95),
    rgba(138, 96, 255, 0.9)
  );
  color: #fff;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 18px 32px rgba(81, 26, 132, 0.32);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.bucket-add-button:hover,
.bucket-add-button:focus-visible {
  transform: translateY(-3px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 22px 40px rgba(58, 18, 100, 0.38);
}

.bucket-add-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 3px;
}

.bucket-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 2;
}

.bucket-filter-button {
  border: 0;
  border-radius: 999px;
  padding: 0.55rem 1.2rem;
  font-family: "Kalam", cursive;
  font-size: 0.95rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: rgba(255, 255, 255, 0.65);
  color: rgba(58, 25, 92, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 8px 20px rgba(68, 19, 114, 0.18);
  cursor: pointer;
  transition: background 0.25s ease, color 0.25s ease,
    box-shadow 0.25s ease, transform 0.25s ease;
}

.bucket-filter-button:hover,
.bucket-filter-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9),
    0 14px 30px rgba(68, 19, 114, 0.26);
}

.bucket-filter-button:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.6);
  outline-offset: 2px;
}

.bucket-filter-button.is-active {
  background: linear-gradient(
    135deg,
    rgba(255, 198, 255, 0.95),
    rgba(149, 108, 255, 0.92)
  );
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 18px 36px rgba(69, 12, 124, 0.35);
}

.bucket-feedback {
  min-height: 1.2rem;
  font-size: 0.95rem;
  letter-spacing: 0.04em;
  font-family: "Kalam", cursive;
  color: rgba(86, 42, 150, 0.92);
  text-shadow: 0 8px 18px rgba(36, 9, 72, 0.28);
  margin-bottom: 0.8rem;
  text-align: center;
}

.bucket-side-note {
  margin: clamp(1rem, 2.2vw, 1.6rem) auto 0;
  padding: 0.85rem 1.2rem;
  max-width: clamp(16rem, 68%, 28rem);
  text-align: center;
  font-family: "Kalam", cursive;
  font-size: clamp(0.96rem, 1.9vw, 1.18rem);
  color: rgba(58, 25, 92, 0.78);
  background: rgba(255, 255, 255, 0.78);
  border-radius: 18px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 18px 32px rgba(72, 24, 121, 0.24);
}

.bucket-feedback[data-tone="error"] {
  color: rgba(235, 96, 164, 0.94);
}

.bucket-feedback[data-tone="success"] {
  color: rgba(212, 142, 255, 0.98);
}

.bucket-items {
  list-style: none;
  display: grid;
  gap: 1.55rem;
  font-size: clamp(1.2rem, 2.4vw, 1.72rem);
  position: relative;
  z-index: 1;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
  border-radius: 24px;
  padding: clamp(1rem, 2.4vw, 1.6rem);
  overflow: visible;
  padding-right: 0;
  padding-left: 0;
  padding-bottom: 0;
}

.bucket-items::-webkit-scrollbar {
  width: 8px;
}

.bucket-items::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 999px;
}

.bucket-items::-webkit-scrollbar-thumb {
  background: rgba(154, 118, 222, 0.55);
  border-radius: 999px;
}

.bucket-items {
  scrollbar-color: rgba(154, 118, 222, 0.55) rgba(255, 255, 255, 0.1);
  scrollbar-width: thin;
}

.bucket-item {
  display: flex;
  align-items: flex-start;
  gap: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  background: rgba(255, 255, 255, 0.7);
  padding: clamp(1.2rem, 2.9vw, 1.75rem) clamp(1.4rem, 3vw, 2.25rem);
  border-radius: 26px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.55),
    0 15px 30px rgba(77, 29, 130, 0.28);
  backdrop-filter: blur(7px);
  transform: translateZ(0);
  padding-right: clamp(1.5rem, 3.2vw, 2.5rem);
  transition: transform 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
  position: relative;
}

.bucket-item.bucket-item-highlight {
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-primary);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 26px 52px rgba(138, 59, 210, 0.35);
  border: 2px solid rgba(255, 217, 255, 0.85);
  padding: clamp(1.4rem, 3vw, 2rem) clamp(1.7rem, 3.5vw, 2.6rem);
}

.bucket-item.list-pop {
  animation: listPop 1.4s forwards ease var(--delay, 0s);
}

.bucket-drag-handle {
  border: 0;
  border-radius: 14px;
  width: 46px;
  height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 10px 22px rgba(75, 22, 122, 0.25);
  color: rgba(61, 23, 102, 0.8);
  cursor: grab;
  flex-shrink: 0;
  margin-top: 0;
  align-self: flex-start;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

.bucket-drag-handle:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.7);
  outline-offset: 3px;
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85),
    0 16px 28px rgba(61, 14, 105, 0.3);
}

.bucket-drag-handle:active {
  cursor: grabbing;
  transform: translateY(1px);
}

.bucket-drag-icon {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    0 6px 0 currentColor,
    0 12px 0 currentColor,
    6px 0 0 currentColor,
    6px 6px 0 currentColor,
    6px 12px 0 currentColor;
  opacity: 0.9;
  pointer-events: none;
}

.bucket-item.is-dragging {
  opacity: 0.85;
  transform: translateY(-6px) scale(1.01);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 30px 56px rgba(61, 14, 105, 0.35);
}

.bucket-item.is-drop-target::after {
  content: "";
  position: absolute;
  left: 1.5rem;
  right: 1.5rem;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(
    135deg,
    rgba(255, 196, 255, 0.95),
    rgba(149, 108, 255, 0.85)
  );
  box-shadow: 0 6px 16px rgba(69, 12, 124, 0.35);
}

.bucket-item.is-drop-target.drop-before::after {
  top: -10px;
}

.bucket-item.is-drop-target.drop-after::after {
  bottom: -10px;
}

.bucket-items.is-refreshing .bucket-item,
.bucket-items.is-refreshing .checkmark {
  transition: none !important;
}

.bucket-item:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 32px 48px rgba(61, 14, 105, 0.32);
}

@media (hover: none), (any-hover: none) {
  .bucket-item.is-touch-pressed {
    transform: translateY(-6px) scale(1.02);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7),
      0 26px 44px rgba(61, 14, 105, 0.3);
  }

  .bucket-item.is-touch-pressed .checkmark {
    transform: rotate(0deg) scale(1.04);
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75),
      0 28px 42px rgba(61, 14, 105, 0.32);
  }
}

.checkmark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(249, 235, 255, 0.9);
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 8px 22px rgba(88, 28, 138, 0.38);
  flex-shrink: 0;
  transform: rotate(-2deg);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
  border: 0;
  padding: 0;
  cursor: pointer;
  color: inherit;
  font: inherit;
  line-height: 1;
  appearance: none;
  background-clip: padding-box;
}

.checkmark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  border: 2px dashed rgba(158, 99, 226, 0.6);
  opacity: 0.6;
  transform: rotate(2deg);
}

.checkmark-icon {
  width: 36px;
  height: 36px;
  display: block;
  color: #5f1d9d;
}

.bucket-item.bucket-item-highlight .checkmark {
  background: rgba(255, 245, 255, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 219, 255, 0.8),
    0 14px 26px rgba(149, 63, 204, 0.45);
  width: 52px;
  height: 52px;
}

.bucket-item:hover .checkmark,
.checkmark:focus-visible {
  transform: rotate(1deg) scale(1.06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 32px 48px rgba(61, 14, 105, 0.32);
}

.bucket-item.bucket-item-highlight .checkmark::after {
  border-color: rgba(206, 110, 243, 0.65);
}

.bucket-item.bucket-item-highlight .checkmark-icon {
  width: 40px;
  height: 40px;
}

.bucket-item.is-dreaming .checkmark {
  background: rgba(246, 233, 255, 0.55);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 8px 16px rgba(75, 19, 126, 0.35);
}

.bucket-item.is-dreaming .checkmark-icon {
  opacity: 0;
}

.bucket-item.is-dreaming .checkmark::after {
  border-style: solid;
  border-color: rgba(150, 120, 209, 0.55);
}

.checkmark:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.65);
  outline-offset: 3px;
}

.item-text {
  flex: 1;
  margin-top: 0;
  display: flex;
  align-items: center;
  font-family: "Kalam", cursive;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-primary);
  cursor: text;
  border-radius: 14px;
  line-height: 1.25;
  min-height: clamp(2.6rem, 4vw, 3.2rem);
  padding: 0.2rem 0;
  transition: background 0.2s ease, box-shadow 0.2s ease, outline 0.2s ease,
    color 0.2s ease;
  word-break: break-word;
}

.item-text:not([contenteditable="true"]) {
  cursor: pointer;
}

.item-text.is-inline-editing,
.item-text[contenteditable="true"]:focus {
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: inset 0 0 0 1px rgba(209, 156, 255, 0.5),
    0 18px 32px rgba(78, 26, 131, 0.22);
  outline: 3px solid rgba(209, 156, 255, 0.6);
  outline-offset: 4px;
  padding: 0.35rem 0.55rem;
}

.item-text[contenteditable="true"]::selection {
  background: rgba(209, 156, 255, 0.35);
  color: inherit;
}

.bucket-item.bucket-item-highlight .item-text {
  font-size: clamp(1.35rem, 2.8vw, 1.9rem);
}

.bucket-item.is-dreaming .item-text {
  opacity: 0.88;
}

.item-content {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: clamp(0.6rem, 1.6vw, 0.85rem);
}

.item-schedule-row {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.item-schedule-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  background: rgba(103, 61, 163, 0.15);
  color: rgba(62, 29, 105, 0.9);
  font-size: clamp(0.88rem, 1.8vw, 1rem);
  letter-spacing: 0.03em;
}

.item-schedule-button,
.item-schedule-clear {
  border: 0;
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
  font-size: clamp(0.82rem, 1.8vw, 0.96rem);
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.item-schedule-button {
  background: linear-gradient(
    135deg,
    rgba(255, 205, 255, 0.95),
    rgba(150, 118, 240, 0.9)
  );
  color: rgba(42, 17, 73, 0.95);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.6),
    0 14px 26px rgba(75, 23, 126, 0.24);
}

.item-schedule-button:hover,
.item-schedule-button:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 18px 32px rgba(61, 14, 105, 0.28);
  outline: none;
}

.item-schedule-clear {
  background: rgba(255, 255, 255, 0.6);
  color: rgba(70, 32, 112, 0.85);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 8px 18px rgba(66, 21, 108, 0.2);
}

.item-schedule-clear:hover,
.item-schedule-clear:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85),
    0 12px 26px rgba(61, 14, 105, 0.26);
  outline: none;
}

.item-schedule-button:disabled,
.item-schedule-clear:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.5),
    0 8px 16px rgba(61, 14, 105, 0.16);
}

.bucket-item.has-schedule .item-text {
  color: rgba(36, 16, 64, 0.92);
}

.bucket-item.is-editing {
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85),
    0 28px 52px rgba(83, 29, 137, 0.28);
}

.bucket-empty {
  text-align: center;
  padding: clamp(1.6rem, 3vw, 2.2rem);
  color: rgba(47, 18, 82, 0.72);
  font-family: "Kalam", cursive;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 24px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.8),
    0 22px 44px rgba(71, 18, 116, 0.22);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}
.background-notes {
  position: fixed;
  inset: 0;
  pointer-events: auto;
  overflow: hidden;
  z-index: 1;
}

.background-notes .note,
.background-notes .music-note {
  pointer-events: auto;
  cursor: pointer;
}

.note {
  position: absolute;
  width: 220px;
  height: 220px;
  border-radius: 16px;
  box-shadow: 0 25px 45px rgba(18, 5, 33, 0.35);
  backdrop-filter: blur(2px);
  opacity: 0;
  z-index: 1;
  animation: fadeInNote 1.35s ease 0s forwards,
    floaty var(--floaty-duration, 12s) ease-in-out var(--floaty-delay, 0s)
      infinite alternate;
  border: 2px dashed rgba(255, 255, 255, 0.2);
  --note-shift-x: 0px;
  --note-shift-y: 0px;
  --note-tilt: 0deg;
  transform-origin: center;
  transform: translate3d(var(--note-shift-x, 0px), var(--note-shift-y, 0px), 0)
    rotate(calc(var(--note-rotation, 0deg) + var(--note-tilt, 0deg)));
}

.note::before,
.note::after {
  content: "";
  position: absolute;
  left: 18px;
  right: 18px;
  height: 3px;
  border-radius: 999px;
  background: rgba(96, 42, 124, 0.3);
}

.note::before {
  top: 60px;
}

.note::after {
  top: 100px;
}

.note-one {
  background: rgba(255, 240, 156, 0.75);
  top: 8%;
  left: 10%;
  --note-rotation: -8deg;
  --floaty-delay: 0s;
}

.note-two {
  background: rgba(255, 183, 244, 0.75);
  top: 20%;
  right: 14%;
  --note-rotation: 12deg;
  --floaty-delay: 1.5s;
}

.note-three {
  background: rgba(195, 225, 255, 0.75);
  bottom: 12%;
  left: 18%;
  --note-rotation: -15deg;
  --floaty-delay: 2.8s;
}

.note-four {
  background: rgba(206, 187, 255, 0.75);
  bottom: 8%;
  right: 12%;
  --note-rotation: 9deg;
  --floaty-delay: 3.6s;
}

.note-five {
  background: rgba(255, 215, 220, 0.78);
  top: 55%;
  right: 24%;
  width: 180px;
  height: 180px;
  --note-rotation: -6deg;
  --floaty-delay: 1.9s;
}

.note-six {
  background: rgba(214, 242, 255, 0.78);
  top: 14%;
  left: 55%;
  width: 160px;
  height: 160px;
  --note-rotation: 5deg;
  --floaty-delay: 2.4s;
}

.melody-notes {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.music-note {
  position: absolute;
  font-family: "Kalam", cursive;
  font-size: clamp(1.6rem, 3.8vw, 3.2rem);
  color: rgba(255, 237, 255, 0.88);
  text-shadow: 0 10px 25px rgba(33, 8, 58, 0.4),
    0 0 12px rgba(255, 255, 255, 0.6);
  opacity: 0.55;
  z-index: 3;
  transform: translate3d(0, 20px, 0) scale(0.95);
  mix-blend-mode: screen;
}

.music-note-one {
  top: 12%;
  left: 22%;
  --note-drift-duration: 16s;
}

.music-note-two {
  top: 18%;
  right: 18%;
  font-size: clamp(1.8rem, 4vw, 3.5rem);
  --note-drift-duration: 12s;
}

.music-note-three {
  top: 42%;
  left: 8%;
  --note-drift-duration: 18s;
}

.music-note-four {
  bottom: 32%;
  right: 10%;
  --note-drift-duration: 15s;
}

.music-note-five {
  bottom: 18%;
  left: 22%;
  --note-drift-duration: 13s;
}

.music-note-six {
  bottom: 12%;
  right: 28%;
  --note-drift-duration: 17s;
}

.music-note-seven {
  top: 6%;
  right: 32%;
  --note-drift-duration: 19s;
}

.music-note-eight {
  top: 48%;
  right: 6%;
  --note-drift-duration: 14s;
}

.music-note-nine {
  bottom: 26%;
  left: 8%;
  --note-drift-duration: 20s;
}

.music-note-ten {
  top: 34%;
  left: 42%;
  --note-drift-duration: 16s;
}

.schedule-overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: clamp(1.1rem, 4vw, 2.2rem);
  background: rgba(28, 7, 55, 0.55);
  transition: opacity 0.22s ease;
  opacity: 0;
}

.schedule-overlay.is-open {
  opacity: 1;
}

.schedule-overlay:not(.is-open) {
  pointer-events: none;
}

.schedule-drawer {
  width: min(520px, 100%);
  background: linear-gradient(
    135deg,
    rgba(255, 255, 255, 0.96),
    rgba(247, 227, 255, 0.96)
  );
  border-radius: 28px 28px 18px 18px;
  box-shadow: 0 40px 80px rgba(31, 7, 52, 0.42);
  padding: clamp(1.8rem, 4vw, 2.4rem);
  transform: translateY(16px);
  transition: transform 0.24s ease;
  outline: none;
}

.schedule-overlay.is-open .schedule-drawer {
  transform: translateY(0);
}

.schedule-close {
  align-self: flex-end;
  background: none;
  border: 0;
  color: rgba(54, 23, 94, 0.85);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
}

.schedule-title {
  font-family: "Kalam", cursive;
  font-size: clamp(1.6rem, 4vw, 2.2rem);
  color: rgba(42, 17, 73, 0.95);
  margin-bottom: 0.6rem;
}

.schedule-subtitle {
  color: rgba(62, 29, 105, 0.82);
  font-size: clamp(1.02rem, 2.4vw, 1.2rem);
  margin-bottom: 1.4rem;
}

.schedule-form {
  display: flex;
  flex-direction: column;
  gap: 1.4rem;
}

.schedule-label {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-weight: 600;
  color: rgba(62, 29, 105, 0.85);
}

.schedule-input {
  border: 0;
  border-radius: 16px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: inset 0 0 0 1px rgba(210, 170, 255, 0.6),
    0 18px 32px rgba(82, 32, 131, 0.18);
  color: rgba(48, 22, 82, 0.95);
}

.schedule-input:focus {
  outline: 3px solid rgba(210, 170, 255, 0.85);
  outline-offset: 3px;
}

.schedule-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.schedule-save {
  border: 0;
  border-radius: 18px;
  padding: 0.6rem 1.4rem;
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(
    135deg,
    rgba(255, 183, 255, 0.95),
    rgba(138, 96, 255, 0.92)
  );
  color: rgba(42, 17, 73, 0.96);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.65),
    0 18px 34px rgba(79, 24, 128, 0.26);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.schedule-save:hover,
.schedule-save:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.75),
    0 24px 40px rgba(61, 14, 105, 0.32);
}

.schedule-remove {
  border: 0;
  border-radius: 18px;
  padding: 0.5rem 1.2rem;
  font-size: 0.95rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.8);
  color: rgba(66, 26, 108, 0.9);
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.7),
    0 14px 26px rgba(70, 21, 111, 0.22);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.schedule-remove:hover,
.schedule-remove:focus-visible {
  transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.85),
    0 18px 30px rgba(61, 14, 105, 0.28);
}

.schedule-remove[hidden] {
  display: none;
}

@keyframes floaty {
  0%,
  100% {
    transform: translate3d(
        var(--note-shift-x, 0px),
        calc(var(--note-shift-y, 0px) + 0px),
        0
      )
      scale(1) rotate(calc(var(--note-rotation, 0deg) + var(--note-tilt, 0deg)));
  }
  50% {
    transform: translate3d(
        var(--note-shift-x, 0px),
        calc(var(--note-shift-y, 0px) - 18px),
        0
      )
      scale(1.03)
      rotate(calc(var(--note-rotation, 0deg) + var(--note-tilt, 0deg)));
  }
}

@keyframes fadeInNote {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

@keyframes listPop {
  0% {
    opacity: 0;
    transform: translateY(30px) scale(0.95);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 1024px) {
  .bucket-frame {
    width: min(680px, 100%);
    padding: clamp(2.2rem, 5vw, 3.4rem);
  }

  .note {
    width: 200px;
    height: 200px;
  }

  .bucket-header h1 {
    font-size: clamp(2.9rem, 7vw, 4.8rem);
  }
}

@media (max-width: 820px) {
  body {
    padding: 2.8rem 1.4rem;
  }

  .bucket-frame {
    width: min(600px, 100%);
    padding: clamp(2rem, 5vw, 3.1rem);
  }

  .bucket-items {
    gap: 1.3rem;
  }

  .note {
    width: 180px;
    height: 180px;
  }

  .music-note-one {
    left: 16%;
  }

  .music-note-two {
    right: 12%;
  }

  .music-note-three {
    left: 4%;
  }

  .music-note-five {
    left: 16%;
  }
}

@media (max-width: 720px) {
  body {
    padding: 2.5rem 1.2rem;
  }

  .bucket-frame {
    border-radius: 24px;
  }

  .note {
    width: 150px;
    height: 150px;
  }

  .music-note {
    font-size: clamp(1.4rem, 4vw, 2.4rem);
  }

  .checkmark {
    width: 42px;
    height: 42px;
  }

  .checkmark-icon {
    width: 30px;
    height: 30px;
  }

  .bucket-item {
    gap: 0.9rem;
  }
}

@media (max-width: 600px) {
  body {
    padding: 2.4rem 1.1rem;
  }

  .bucket-header {
    margin-bottom: 2rem;
  }

  .bucket-header h1 {
    font-size: clamp(2.5rem, 8vw, 3.8rem);
  }

  .tagline {
    font-size: 0.96rem;
    letter-spacing: 0.05em;
  }

  .bucket-frame {
    border-radius: 24px;
    padding: clamp(1.8rem, 5vw, 2.6rem);
  }

  .bucket-item {
    padding: 1rem 1.5rem;
    border-radius: 20px;
  }

  .bucket-item.bucket-item-highlight {
    padding: 1.2rem 1.8rem;
  }

  .bucket-items {
    padding-right: 0.6rem;
    padding-left: 0.6rem;
    padding-bottom: 1rem;
  }

  .checkmark {
    width: 40px;
    height: 40px;
  }

  .checkmark-icon {
    width: 28px;
    height: 28px;
  }

  .note {
    width: 150px;
    height: 150px;
    opacity: 0.9;
  }

  .music-note {
    opacity: 0.7;
  }

  .music-note-seven {
    right: 12%;
  }

  .music-note-eight {
    right: 4%;
    top: 52%;
  }

  .music-note-nine {
    left: 4%;
  }

  .music-note-ten {
    left: 38%;
    top: 46%;
  }
}

@media (max-width: 420px) {
  body {
    padding: 2rem 1rem 2.5rem;
  }

  .bucket-frame {
    padding: 1.6rem 1.4rem;
  }

  .bucket-items {
    gap: 1.1rem;
  }

  .bucket-item {
    padding: 0.95rem 1.2rem;
    gap: 0.75rem;
  }

  .bucket-item.bucket-item-highlight {
    padding: 1.05rem 1.4rem;
  }

  .bucket-items {
    padding-right: 0.4rem;
    padding-left: 0.4rem;
    padding-bottom: 0.9rem;
  }

  .item-text {
    font-size: 1rem;
  }

  .bucket-item.bucket-item-highlight .item-text {
    font-size: 1.2rem;
  }

  .note {
    width: 130px;
    height: 130px;
  }

  .music-note {
    font-size: clamp(1.3rem, 5vw, 2rem);
    opacity: 0.65;
  }
}
