@font-face {
  font-family: "Cherry Bomb One";
  src: url("https://fonts.gstatic.com/s/cherrybombone/v2/4uGgYrGTM5coGqQ9cGt8fTJj-1L5ZV06Y.woff2")
    format("woff2");
}

/* Password Screen Styles */
.password-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, var(--cream), #fff9f9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.password-screen.hidden {
  display: none;
}

.password-card {
  background: linear-gradient(135deg, var(--cream), #fff5f9);
  border: 3px solid var(--lav);
  border-radius: 24px;
  padding: 48px 32px;
  box-shadow: 0 8px 0 #e9d5ff, 0 4px 16px rgba(255, 182, 205, 0.2);
  max-width: 400px;
  width: 100%;
  text-align: center;
}

.password-header {
  margin-bottom: 32px;
}

.password-mochi {
  font-size: 64px;
  margin-bottom: 12px;
  animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

.password-title {
  font-family: "Cherry Bomb One", cursive;
  font-size: 32px;
  color: #ff9ec5;
  margin: 0 0 8px 0;
  text-shadow: 0 2px 3px rgba(255, 182, 205, 0.3);
}

.password-subtitle {
  color: #9b8ba7;
  font-size: 16px;
  margin: 0;
}

.password-input-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 16px;
}

.password-input {
  padding: 16px 20px;
  border: 2px solid #ffd0df;
  border-radius: 16px;
  background: #fff5f9;
  font-size: 18px;
  font-weight: 600;
  color: #8b6fa5;
  transition: all 0.3s ease;
  text-align: center;
}

.password-input:focus {
  border-color: #ffa8c8;
  outline: none;
  box-shadow: 0 0 0 4px rgba(255, 182, 205, 0.2);
}

.password-btn {
  padding: 16px 32px;
  border: 2px solid var(--peach);
  background: linear-gradient(135deg, var(--mint), #d4fadd);
  border-radius: 16px;
  font-size: 18px;
  font-weight: 700;
  color: #6b8f7e;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 0 rgba(155, 218, 170, 0.5);
}

.password-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 0 rgba(155, 218, 170, 0.5),
    0 3px 8px rgba(155, 218, 170, 0.3);
}

.password-btn:active {
  transform: translateY(1px);
  box-shadow: 0 3px 0 rgba(155, 218, 170, 0.5);
}

.password-error {
  color: #ff6b9d;
  font-weight: 600;
  font-size: 16px;
  animation: shake 0.4s ease;
}

.password-error.hidden {
  display: none;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-10px);
  }
  75% {
    transform: translateX(10px);
  }
}

.hidden {
  display: none !important;
}

:root {
  --pink: #ffe0f0;
  --lav: #f4e8ff;
  --mint: #e8ffe8;
  --cream: #fff9f5;
  --gray: #c4b5d8;
  --ink: #6b5b7e;
  --peach: #ffdae8;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: Inter, system-ui, Arial;
  background: linear-gradient(180deg, var(--cream), #fff9f9);
  color: var(--ink);
}
.container {
  max-width: 720px;
  margin: 0 auto;
  padding: 24px;
}
.header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
}
.mochi {
  width: 64px;
  height: 64px;
  image-rendering: pixelated;
  animation: breath 2.5s ease-in-out infinite alternate;
  filter: drop-shadow(0 4px 8px rgba(255, 182, 205, 0.4));
}
@keyframes breath {
  from {
    transform: translateY(0) scale(1) rotate(-2deg);
  }
  to {
    transform: translateY(-5px) scale(1.08) rotate(2deg);
  }
}
.brand {
  font-family: "Cherry Bomb One", cursive;
  font-weight: 400;
  margin: 0;
  text-transform: lowercase;
  color: #ff9ec5;
  font-size: 40px;
  letter-spacing: 1px;
  text-shadow: 0 2px 3px rgba(255, 182, 205, 0.3);
  position: relative;
  display: inline-block;
}

.timer-card {
  background: linear-gradient(135deg, var(--cream), #fff5f9);
  border: 2px solid var(--lav);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 6px 0 #e9d5ff, 0 3px 12px rgba(255, 182, 205, 0.15);
}
.mode {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}
.chip {
  border: 2px solid var(--peach);
  background: linear-gradient(135deg, #fff, #fff5f5);
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 600;
  transition: all 0.3s ease;
}
.chip:hover {
  transform: translateY(-2px);
  box-shadow: 0 3px 8px rgba(255, 182, 205, 0.3);
}
.chip.active {
  background: linear-gradient(135deg, var(--pink), #ffd6e8);
  border-color: #ffc0d8;
  color: #c4587a;
  box-shadow: 0 2px 6px rgba(255, 182, 205, 0.4);
}
.countdown {
  font-size: 64px;
  text-align: center;
  font-weight: 800;
  letter-spacing: 2px;
  padding: 8px 0;
  color: #ffa8c8;
  text-shadow: 0 2px 4px rgba(255, 182, 205, 0.2);
}
.controls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 12px 0 4px;
}
.btn {
  border: 2px solid var(--peach);
  background: linear-gradient(135deg, var(--mint), #d4fadd);
  padding: 12px 20px;
  border-radius: 14px;
  cursor: pointer;
  font-weight: 700;
  color: #6b8f7e;
  transition: all 0.3s ease;
  box-shadow: 0 3px 0 rgba(155, 218, 170, 0.5);
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 0 rgba(155, 218, 170, 0.5),
    0 3px 8px rgba(155, 218, 170, 0.3);
}
.btn:active {
  transform: translateY(1px);
  box-shadow: 0 2px 0 rgba(155, 218, 170, 0.5);
}
.btn-secondary {
  background: linear-gradient(135deg, #fff, #fff5f5);
  border-color: #ffd0df;
  color: #b98da0;
}
.btn.small {
  padding: 8px 14px;
  font-weight: 600;
}
.btn-ghost {
  background: #fff5f5;
  border-color: #ffd0df;
}
.progress {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 8px;
}
.hearts {
  display: flex;
  gap: 6px;
}
.heart {
  width: 22px;
  height: 22px;
  background-image: url("assets/heart.png");
  image-rendering: pixelated;
  background-size: contain;
  filter: grayscale(1);
}
.heart.filled {
  filter: none;
}
.plant span {
  font-size: 28px;
  transition: transform 0.3s ease;
}
.plant span:hover {
  transform: scale(1.15) rotate(-5deg);
}
.settings-card {
  margin-top: 16px;
  background: linear-gradient(135deg, #fff, #fff5f9);
  border: 2px solid var(--mint);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 0 rgba(215, 245, 232, 0.8),
    0 3px 12px rgba(215, 245, 232, 0.2);
}
.settings-card h2 {
  margin: 0 0 12px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 10px;
}
label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  font-weight: 600;
  color: #7b6b8d;
}
input[type="number"] {
  padding: 10px;
  border: 2px solid #ffd0df;
  border-radius: 12px;
  background: #fff5f9;
  font-weight: 600;
  color: #8b6fa5;
  transition: all 0.3s ease;
}
input[type="number"]:focus {
  border-color: #ffa8c8;
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 182, 205, 0.2);
}
.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
}
.checkbox input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #ffa8c8;
}
.footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
  color: #9b8ba7;
  font-weight: 500;
}
@media (max-width: 560px) {
  .grid {
    grid-template-columns: 1fr;
  }
  .countdown {
    font-size: 56px;
  }
}
