/* ============ Palette ============ */
:root {
  --blush: #ffc8dd;
  --rose: #ff8fb8;
  --rose-deep: #f06fa0;
  --blush-light: #fff0f6;
  --blush-dark: #f0a0c0;
  --ink: #5b4750;
}

[hidden] {
  display: none !important;
}

/* ============ Typography & Cursor ============ */
body {
  font-family: "Quicksand", sans-serif !important;
  -webkit-user-select: none;
  user-select: none;
  /* Apply the cursor ONCE to the body */
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 100 100'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='central' text-anchor='middle' font-size='80'%3E%F0%9F%8C%B9%3C/text%3E%3C/svg%3E") 16 16, auto !important;
}

/* Only apply to specific clickable elements */
button, .btn, label, .env, a, .date-pill, .pill, #settingsToggle, .dim-btn {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 100 100'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='central' text-anchor='middle' font-size='80'%3E%F0%9F%8C%B9%3C/text%3E%3C/svg%3E") 16 16, pointer !important;
}

input, textarea {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 100 100'%3E%3Ctext x='50%25' y='50%25' dominant-baseline='central' text-anchor='middle' font-size='80'%3E%F0%9F%8C%B9%3C/text%3E%3C/svg%3E") 16 16, text !important;
  -webkit-user-select: text;
  user-select: text;
}

/* ============ Animations ============ */
.f {
  position: absolute;
  bottom: -40px;
  opacity: 0;
  animation: rise linear infinite;
}
@keyframes rise {
  0% {
    translate: 0 0;
    rotate: 0deg;
    scale: var(--global-scale, 1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  95% {
    opacity: 1;
  }
  100% {
    translate: var(--sway) -115vh;
    rotate: var(--end-rotate, 25deg);
    scale: var(--global-scale, 1);
    opacity: 0;
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes bounce-slow {
  0%,
  100% {
    transform: translateY(-15px);
    animation-timing-function: cubic-bezier(0.8, 0, 1, 1);
  }
  50% {
    transform: translateY(0);
    animation-timing-function: cubic-bezier(0, 0, 0.2, 1);
  }
}
.animate-bounce-slow {
  animation: bounce-slow 2.5s infinite;
}

.burst {
  position: fixed;
  left: 50%;
  top: 55%;
  z-index: 60;
  pointer-events: none;
  animation: burst 1.4s ease-out forwards;
}
@keyframes burst {
  from {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }
  to {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))
      rotate(var(--r)) scale(1);
    opacity: 0;
  }
}

/* ============ Cards & Mascots ============ */
.card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 430px;
  background: #fffdf8;
  border-radius: 36px;
  padding: 26px 22px 30px;
  text-align: center;
  box-shadow:
    0 0 0 4px var(--blush),
    0 18px 40px rgba(255, 143, 184, 0.28);
}
.card.entering {
  animation: pop 0.45s cubic-bezier(0.3, 1.4, 0.5, 1);
}
.card.leaving {
  animation: out 0.32s ease-in forwards;
}
@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.93);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes out {
  to {
    opacity: 0;
    transform: translateY(-14px) scale(0.92);
  }
}

.mascot {
  width: 78px;
  height: 78px;
  animation: bob 2.6s ease-in-out infinite;
}
.mascot.big {
  width: 96px;
  height: 96px;
  animation-delay: 0.35s;
}
.mascot:last-child {
  animation-delay: 0.7s;
}

/* ============ Buttons ============ */
.btn {
  font: inherit;
  font-weight: 800;
  font-size: 1.1rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75em 1.7em;
  min-width: 112px;
  min-height: 50px;
  transition:
    transform 0.2s ease,
    box-shadow 0.2s ease;
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
}
.btn:active {
  transform: translateY(3px);
}
.btn-sm {
  font-size: 0.95rem;
  padding: 0.6em 1.3em;
  min-height: 44px;
}
.btn-pink {
  background: var(--rose);
  color: #fff;
  box-shadow: 0 5px 0 var(--rose-deep);
}
.btn-blush {
  background: var(--blush);
  color: var(--ink);
  box-shadow: 0 5px 0 var(--blush-dark);
}

:is(.btn, .field, .env, .date-pill, .pill, .dim-btn):focus-visible {
  outline: 4px solid var(--ink);
  outline-offset: 3px;
}

/* Yes & No Buttons */
.yes {
  transition:
    transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1),
    scale 0.2s,
    translate 0.2s,
    box-shadow 0.25s;
}
.yes:hover {
  animation: yesWiggle 0.7s ease-in-out infinite;
  box-shadow:
    0 5px 0 var(--rose-deep),
    0 0 0 6px rgba(255, 143, 184, 0.3),
    0 0 26px rgba(255, 143, 184, 0.85);
}
@keyframes yesWiggle {
  0%,
  100% {
    rotate: 0deg;
    scale: 1.08;
  }
  25% {
    rotate: -4deg;
    scale: 1.13;
  }
  75% {
    rotate: 4deg;
    scale: 1.13;
  }
}
.yes:active {
  animation: none;
  scale: 0.9;
  translate: 0 4px;
  box-shadow: 0 1px 0 var(--rose-deep);
}
.yes.pop {
  animation: yesPop 0.5s cubic-bezier(0.3, 1.6, 0.5, 1);
}
@keyframes yesPop {
  0% {
    scale: 0.9;
  }
  50% {
    scale: 1.3;
  }
  100% {
    scale: 1;
  }
}

.no.floating {
  position: fixed;
  z-index: 50;
  margin: 0;
  transition:
    left 0.3s cubic-bezier(0.3, 1.5, 0.5, 1),
    top 0.3s cubic-bezier(0.3, 1.5, 0.5, 1),
    transform 0.3s;
}
.ph {
  display: inline-block;
}

/* ============ Inputs ============ */
.field {
  width: 100%;
  font: inherit;
  font-size: 1.05rem;
  color: var(--ink);
  color-scheme: light;
  padding: 0.8em 1em;
  border-radius: 20px;
  border: 3px solid var(--blush);
  background: var(--blush-light);
  text-align: center;
}
.field[aria-invalid="true"] {
  border-color: var(--rose);
  background: #ffe3ef;
}
.err.shake {
  animation: shake 0.4s;
}
@keyframes shake {
  25% {
    transform: translateX(-6px);
  }
  75% {
    transform: translateX(6px);
  }
}

.time-select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23ff8fb8'%3E%3Cpath d='M7 10l5 5 5-5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  background-size: 1.5em;
  padding-right: 2.5rem;
  font-weight: 700;
}
.time-select:invalid {
  color: #999;
}

/* ============ Floaters (Playable) ============ */
.f-wrapper {
  position: absolute;
  bottom: -100px;
  opacity: 0;
  animation: rise linear infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  pointer-events: auto;
  transition: scale 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.f-wrapper img {
  object-fit: contain;
  filter: drop-shadow(0 2px 3px rgba(255, 143, 184, 0.25));
  transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
  will-change: transform;
  transform-origin: center bottom;
}
.f-wrapper:hover img {
  scale: 1.15;
  rotate: 5deg;
}
.boss-wrapper {
  z-index: 10;
  filter: drop-shadow(0 0 6px rgba(255, 143, 184, 0.55));
}
.boss-label {
  position: absolute;
  top: -24px;
  background: var(--rose);
  color: white;
  font-weight: 900;
  font-size: 0.9rem;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  box-shadow: 0 4px 0 var(--rose-deep);
  animation: bob 2s ease-in-out infinite;
  pointer-events: none;
}
.boss-label::after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--rose) transparent transparent transparent;
}
.rolling-img {
  position: fixed;
  bottom: 20px;
  left: -150px;
  width: 50px;
  height: 50px;
  object-fit: contain;
  z-index: 5;
  pointer-events: none;
  animation: rollAcross linear forwards;
}
@keyframes rollAcross {
  from {
    left: -150px;
    transform: rotate(0deg);
  }
  to {
    left: 110vw;
    transform: rotate(1080deg);
  }
}

/* ============ Flatpickr Theme ============ */
.flatpickr-calendar.static {
  position: relative !important;
  top: 0 !important;
  margin: 0 auto 15px auto !important;
  width: 100% !important;
  max-width: 340px;
}
.flatpickr-calendar {
  background: #fffdf8 !important;
  border: 3px solid var(--blush) !important;
  border-radius: 20px !important;
  box-shadow: 0 10px 30px rgba(255, 143, 184, 0.3) !important;
  font-family: inherit !important;
}
.flatpickr-months .flatpickr-month {
  color: var(--ink) !important;
  fill: var(--ink) !important;
  font-weight: 800;
}
.flatpickr-day {
  position: relative;
  color: var(--ink) !important;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected.inRange,
.flatpickr-day.selected:focus,
.flatpickr-day.selected:hover,
.flatpickr-day.selected.prevMonthDay,
.flatpickr-day.selected.nextMonthDay {
  background: var(--rose) !important;
  border-color: var(--rose) !important;
  color: #fff !important;
  font-weight: 800;
  box-shadow: 0 3px 0 var(--rose-deep);
}
.flatpickr-day:hover,
.flatpickr-day:focus {
  background: var(--blush-light) !important;
  border-color: var(--blush-light) !important;
}
.flatpickr-day.today {
  border-color: var(--blush) !important;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay {
  visibility: hidden !important;
}
.flatpickr-day.flatpickr-disabled {
  color: var(--blush) !important;
  background: transparent !important;
  opacity: 0.5 !important;
  cursor: not-allowed !important;
}
.fp-pepero {
  background-color: #ffe3ef !important;
  border-color: #ff8fb8 !important;
  color: #d14477 !important;
  font-weight: 900 !important;
}
.fp-pepero::after {
  content: "🍫";
  position: absolute;
  bottom: -2px;
  right: 0;
  font-size: 0.7rem;
}
.fp-birthday {
  background-color: transparent !important;
  color: #d14477 !important;
  font-weight: 900 !important;
  z-index: 1;
}
.fp-birthday::before {
  content: "";
  position: absolute;
  top: -4px;
  left: -4px;
  width: calc(100% + 8px);
  height: calc(100% + 8px);
  background-image: url("../asset/chiikawa.png");
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0.45;
  z-index: -1;
  pointer-events: none;
}
.fp-birthday:hover::before {
  opacity: 0.7;
}
.flatpickr-day.fp-birthday.selected {
  background: var(--rose) !important;
  color: white !important;
}
.flatpickr-day.fp-birthday.selected::before {
  filter: brightness(0) invert(1);
  opacity: 0.5;
}

/* ============ Theme Park Ticket ============ */
.ticket-container {
  display: flex;
  background: #fffdf8;
  border: 3px solid var(--rose);
  border-radius: 20px;
  position: relative;
  text-align: left;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
  animation: float-ticket 4s ease-in-out infinite;
  box-shadow:
    0 15px 35px rgba(255, 143, 184, 0.25),
    0 0 40px rgba(255, 143, 184, 0.15);
}
@keyframes float-ticket {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-8px) rotate(1deg);
    box-shadow:
      0 20px 40px rgba(255, 143, 184, 0.35),
      0 0 50px rgba(255, 143, 184, 0.25);
  }
}
.ticket-container::before,
.ticket-container::after {
  content: "";
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: #fffdf8;
  border-radius: 50%;
  border: 3px solid var(--rose);
  z-index: 2;
}
.ticket-container::before {
  left: -15px;
}
.ticket-container::after {
  right: -15px;
}
.ticket-left {
  width: 38%;
  background: var(--blush-light);
  border-right: 3px dashed var(--rose);
  border-top-left-radius: 16px;
  border-bottom-left-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 15px;
  position: relative;
}
.ticket-img {
  width: 100%;
  max-width: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 6px rgba(255, 143, 184, 0.3));
}
.ticket-right {
  width: 62%;
  padding: 20px 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.ticket-header {
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--rose-deep);
  letter-spacing: 3px;
  margin-bottom: 4px;
  text-transform: uppercase;
}
.ticket-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.ticket-label {
  font-size: 0.75rem;
  font-weight: 900;
  color: var(--rose-deep);
  width: 42px;
  text-transform: uppercase;
}
.ticket-val {
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--ink);
  line-height: 1.2;
}
.countdown-container {
  background: #fff;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  border: 2px solid var(--blush);
  color: var(--ink);
  white-space: nowrap;
}
.countdown-label {
  opacity: 0.6;
}
.countdown-timer {
  color: var(--rose-deep);
  font-weight: 900;
  letter-spacing: 0.5px;
}
#toCalendar,
#shareTicket {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
}
#shareTicket {
  transition: transform 0.2s;
}
#shareTicket:hover {
  transform: scale(1.05) rotate(2deg);
}

/* ============ Calendar Overlay ============ */
.cal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(255, 253, 248, 0.85);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cal-overlay.active {
  opacity: 1;
}
.cal-card {
  background: #fffdf8;
  border: 4px solid var(--blush);
  border-radius: 30px;
  padding: 30px 20px;
  text-align: center;
  box-shadow: 0 20px 50px rgba(255, 143, 184, 0.3);
  transform: translateY(20px) scale(0.9);
  transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
  max-width: 340px;
  width: 90%;
}
.cal-overlay.active .cal-card {
  transform: translateY(0) scale(1);
}
.cal-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: var(--rose-deep);
  margin-bottom: 5px;
}
.cal-month {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink);
  text-transform: uppercase;
  letter-spacing: 2px;
  margin-bottom: 15px;
}
.cal-week-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding: 0 10px;
}
.cal-day {
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-weight: 700;
  color: var(--ink);
  opacity: 0.4;
}
.cal-day.highlight {
  background: var(--rose);
  color: #fff;
  opacity: 1;
  font-size: 1.1rem;
  font-weight: 900;
  position: relative;
  box-shadow: 0 0 0 4px var(--blush-light);
  animation: popDate 0.5s cubic-bezier(0.3, 1.5, 0.5, 1) forwards;
  animation-delay: 0.3s;
  transform: scale(0);
}
@keyframes popDate {
  to {
    transform: scale(1);
  }
}
.cal-chiikawa {
  position: absolute;
  bottom: -15px;
  right: -15px;
  width: 40px;
  height: 40px;
  object-fit: contain;
  animation: jumpChiikawa 1.5s ease-in-out infinite;
}
@keyframes jumpChiikawa {
  0%,
  100% {
    transform: translateY(0) rotate(10deg);
  }
  50% {
    transform: translateY(-5px) rotate(15deg);
  }
}
.typewriter-text {
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 700;
  color: var(--ink);
  min-height: 70px;
  text-align: left;
  padding: 0 10px;
}
.typewriter-text::after {
  content: "|";
  color: var(--rose);
  animation: blink 1s step-end infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}

/* ============ Password Gate & Zoom Transition ============ */
#transition-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
#transition-overlay img {
  width: 100px;
  height: 100px;
  object-fit: contain;
  transform: scale(0);
  opacity: 0;
}
#transition-overlay.zoom-in img {
  animation: zoomIn 1.5s ease-in-out forwards;
}
@keyframes zoomIn {
  0% {
    transform: scale(1);
    opacity: 0;
  }
  10% {
    opacity: 1;
  }
  100% {
    transform: scale(10);
    opacity: 1;
  }
}

.keypad-grid {
  display: grid;
  grid-template-columns: repeat(3, 60px);
  gap: 10px;
  justify-content: center;
  margin: 0 auto;
}

.keypad-btn {
  background-color: var(--blush-light);
  border: 2px solid var(--blush);
  color: var(--ink);
  border-radius: 50%;
  width: 60px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1.3rem;
  font-weight: 800;
  position: relative;
  overflow: hidden;
  transition:
    transform 0.1s,
    background 0.2s,
    box-shadow 0.2s;
  cursor: pointer;
  background-image:
    linear-gradient(rgba(255, 240, 246, 0.85), rgba(255, 240, 246, 0.85)),
    url("../asset/K1_chiikawa.png");
  background-size: 50px;
  background-position: center;
  background-repeat: no-repeat;
  box-shadow: 0 4px 0 var(--blush);
}
.keypad-btn:active {
  transform: translateY(4px);
  box-shadow: 0 0 0 var(--blush);
  background-color: var(--blush);
}
.code-heart {
  width: 24px;
  height: 24px;
  background-color: var(--blush-light);
  border: 2px solid var(--blush);
  border-radius: 50%;
  transition: all 0.2s cubic-bezier(0.3, 1.5, 0.5, 1);
  position: relative;
}
.code-heart.filled {
  background-color: var(--rose);
  border-color: var(--rose-deep);
  transform: scale(1.15);
}
.code-heart.filled::after {
  content: "🌹";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 14px;
}

/* ============ Interactive Sakura & Hearts ============ */
.sakura-bubble {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(10px);
  background: #fffdf8;
  border: 3px solid #5b4750;
  color: #5b4750;
  font-weight: 800;
  font-size: 1.1rem;
  padding: 6px 16px;
  border-radius: 20px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition:
    opacity 0.2s ease,
    transform 0.2s cubic-bezier(0.3, 1.5, 0.5, 1);
  z-index: 20;
}
.sakura-bubble::before {
  content: "";
  position: absolute;
  bottom: -13px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 13px 13px 0;
  border-style: solid;
  border-color: #5b4750 transparent transparent transparent;
}
.sakura-bubble::after {
  content: "";
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  border-width: 9px 9px 0;
  border-style: solid;
  border-color: #fffdf8 transparent transparent transparent;
}
.sakura-bubble.show {
  opacity: 1;
  transform: translateX(-50%) translateY(-15px);
}

.flat-heart {
  position: absolute;
  width: 12px;
  height: 12px;
  transform: rotate(-45deg);
  pointer-events: none;
  z-index: 99;
  animation: floatUp 1.2s ease-out forwards;
}
.flat-heart::before,
.flat-heart::after {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: inherit;
}
.flat-heart::before {
  top: -6px;
  left: 0;
}
.flat-heart::after {
  top: 0;
  left: 6px;
}
.flat-heart.white {
  background-color: #ffffff;
  border: 1.5px solid #5b4750;
}
.flat-heart.red {
  background-color: #ff6b6b;
}
@keyframes floatUp {
  0% {
    transform: translate(0, 0) rotate(-45deg) scale(0.5);
    opacity: 1;
  }
  20% {
    transform: translate(calc(var(--drift) * 0.2), -10px) rotate(-30deg)
      scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(var(--drift), -70px) rotate(-60deg) scale(0.8);
    opacity: 0;
  }
}

/* ============ Secret Item Tooltip ============ */
.secret-tooltip {
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(5px);
  background: #fffdf8;
  border: 2px solid var(--rose);
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 12px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.3, 1.5, 0.5, 1);
  box-shadow: 0 4px 10px rgba(255, 143, 184, 0.3);
  z-index: 50;
}
.secret-tooltip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: var(--rose) transparent transparent transparent;
}
.secret-tooltip::before {
  content: "";
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(-2px);
  border-width: 6px 6px 0;
  border-style: solid;
  border-color: #fffdf8 transparent transparent transparent;
  z-index: 1;
}
.group:hover .secret-tooltip {
  opacity: 1;
  transform: translateX(-50%) translateY(-5px);
}

/* ============ Clickable Flower Stamps ============ */
.spawned-flower {
  position: absolute;
  width:  calc(45px * var(--inv-zoom, 1));
  height: calc(68px * var(--inv-zoom, 1));
  pointer-events: auto;
  cursor: pointer;
  transform-origin: bottom center;
  animation: popIn 0.4s cubic-bezier(0.3, 1.5, 0.5, 1) forwards;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
  transition:
    transform 0.2s ease,
    filter 0.2s ease;
}
.spawned-flower:hover {
  transform: scale(1.15) rotate(5deg) !important;
  filter: drop-shadow(0 6px 10px rgba(255, 143, 184, 0.5));
}
@keyframes popIn {
  from {
    opacity: 0;
    transform: scale(0) translateY(20px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

/* ============ Minimalist Settings Menu & Tooltips ============ */
#settings-container:hover #settings-items,
#settings-container.open #settings-items {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}
#settingsToggle {
  transition: transform 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}
#settings-container.open #settingsToggle {
  transform: rotate(90deg);
}

.dim-btn {
  width: 48px !important;
  height: 48px !important;
  padding: 0;
  border: 0;
  border-radius: 50%;
  font-size: 1.2rem;
  background: #fffdf8;
  box-shadow:
    0 0 0 3px var(--blush),
    0 6px 14px rgba(255, 143, 184, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s;
  position: relative !important;
  bottom: auto !important;
  right: auto !important;
}
.dim-btn:hover {
  transform: scale(1.1);
}

.dim-btn::after {
  content: attr(data-label);
  position: absolute;
  right: 130%;
  top: 50%;
  transform: translateY(-50%) scale(0.9);
  background: #fffdf8;
  color: var(--ink);
  padding: 6px 12px;
  border-radius: 12px;
  border: 2px solid var(--blush);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: all 0.2s cubic-bezier(0.3, 1.5, 0.5, 1);
  box-shadow: 0 4px 10px rgba(255, 143, 184, 0.2);
}
.dim-btn:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

/* ============ The Book Overlay ============ */
.book-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background-image:
  linear-gradient(rgba(255, 253, 248, 0.6), rgba(255, 253, 248, 0.6));
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.4s ease;
  padding: 20px;
  overflow-y: auto;
  overflow-x: hidden;
}
/* ============================================================
   BOOK OVERLAY + CARD  (fixed height, never shrinks on flip)
   ============================================================ */

.book-overlay.hidden {
  display: none !important;
}

.book-overlay.active {
  opacity: 1;
}

/* --- Outer card (fixed height + flex column) --- */
.book-wrapper {
  position: relative;
  width: 100%;
  max-width: 650px;
  height: clamp(560px, 80vh, 700px); /* 📏 locks the book size */
  background: #fdf4d8;
  border: 4px solid #5b4750;
  border-radius: 12px 24px 24px 12px;
  box-shadow:
    10px 10px 0 rgba(91, 71, 80, 0.15),
    inset 15px 0 0 rgba(91, 71, 80, 0.05);
  padding: 40px 30px;
  transform: translateY(20px) scale(0.95);
  transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
  overflow: hidden;
  margin: auto;

  display: flex; /* 👈 lets .book-text fill the rest */
  flex-direction: column;
}

.book-overlay.active .book-wrapper {
  transform: translateY(0) scale(1);
}

/* --- Decorative spine --- */
.book-spine {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 15px;
  background: #e8d4a2;
  border-right: 2px solid #5b4750;
}

/* --- Title (stays fixed at top) --- */
.book-title {
  font-size: 1.8rem;
  font-weight: 900;
  color: #5b4750;
  text-align: center;
  margin-bottom: 20px;
  border-bottom: 2px dashed #e8d4a2;
  padding-bottom: 10px;
  flex-shrink: 0; /* 👈 never squish the title */
}

/* --- Text container (fills remaining space, scrolls internally) --- */
.book-text {
  flex: 1;
  min-height: 0; /* 👈 REQUIRED for overflow to work in flex */
  overflow-y: auto;
  padding-right: 6px; /* room for scrollbar */
  font-family: "Quicksand", sans-serif;
  font-size: 1.05rem;
  line-height: 1.6;
  color: #5b4750;
  text-align: left;
}

/* --- Page layers (each one fills the text area) --- */
.book-page {
  position: relative;
  z-index: 2;
  height: 100%;
}

/* Visible paragraph spacing inside the book */
#book-text-content .book-page p {
  margin: 0 0 0.85em;
}
#book-text-content .book-page p:last-child {
  margin-bottom: 0;
}

/* --- Corner mascots --- */
.book-char-left {
  position: absolute;
  bottom: -20px;
  left: -20px;
  width: 100px;
  opacity: 0.9;
}

.book-char-right {
  position: absolute;
  bottom: -10px;
  right: -10px;
  width: 80px;
  opacity: 0.9;
}

/* ============ Swipe to Confirm ============ */
.swipe-container {
  position: relative;
  width: 100%;
  max-width: 300px;
  height: 64px;
  margin: 0 auto;
  background: var(--blush-light);
  border: 3px solid var(--blush);
  border-radius: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: inset 0 4px 10px rgba(255, 143, 184, 0.2);
  user-select: none;
}
.swipe-arrows {
  position: absolute;
  left: 56px;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--rose-deep);
  font-size: 1.2rem;
  font-weight: 900;
  opacity: 0.5;
  pointer-events: none;
}
.swipe-arrows span {
  animation: pulseArrow 1.5s infinite;
  opacity: 0.2;
}
.swipe-arrows span:nth-child(2) {
  animation-delay: 0.2s;
}
.swipe-arrows span:nth-child(3) {
  animation-delay: 0.4s;
}
@keyframes pulseArrow {
  0%,
  100% {
    opacity: 0.2;
    transform: translateX(0);
  }
  50% {
    opacity: 1;
    transform: translateX(5px);
  }
}
.swipe-handle {
  position: absolute;
  left: 4px;
  top: 4px;
  bottom: 4px;
  width: 52px;
  background: #fffdf8;
  border-radius: 26px;
  box-shadow: 0 2px 8px rgba(255, 143, 184, 0.4);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  touch-action: none;
}
.swipe-handle:active {
  cursor: grabbing;
}
.swipe-handle.dragging {
  transition: none;
}
.swipe-handle:not(.dragging) {
  transition: left 0.3s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.swipe-handle.nudge {
  animation: nudgeRight 2.5s ease-in-out infinite;
}
@keyframes nudgeRight {
  0%,
  100% {
    left: 4px;
  }
  10%,
  30% {
    left: 20px;
  }
  20%,
  40% {
    left: 4px;
  }
}

/* ============ Mobile Tweaks ============ */
@media (max-width: 768px) {
  .card {
    padding: 20px 15px 25px;
    max-width: 92%;
  }
  .ticket-container {
    flex-direction: column;
    max-width: 100%;
    border-radius: 20px;
  }
  .ticket-left {
    width: 100%;
    border-right: none;
    border-bottom: 3px dashed var(--rose);
    border-radius: 16px 16px 0 0;
    padding: 15px;
  }
  .ticket-right {
    width: 100%;
    text-align: center;
    align-items: center;
  }
  .ticket-container::before {
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
  }
  .ticket-container::after {
    bottom: -15px;
    top: auto;
    left: 50%;
    transform: translateX(-50%);
  }
  .countdown-container {
    align-self: center;
    margin-top: 5px;
  }
  #toCalendar,
  #shareTicket {
    font-size: 0.8rem;
    padding: 0 10px;
  }

  #sakura-container {
    top: 25%;
    left: 10%;
  }
  #secret-container {
    top: 60%;
    left: 15%;
  }
}

/* ============ Reduced Motion ============ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  #floaters .f {
    display: none;
  }
}

/* ============ Small Secret Note ============ */
.note-overlay {
  position: fixed;
  inset: 0;
  z-index: 1050; /* Higher than book overlay */
  background: rgba(255, 253, 248, 0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.note-overlay.active {
  opacity: 1;
}
.note-overlay.hidden {
  display: none !important;
}

.note-wrapper {
  position: relative;
  background: #fffdf8;
  border: 3px dashed var(--rose);
  border-radius: 20px;
  padding: 35px 30px;
  max-width: 400px;
  width: 90%;
  text-align: center;
  box-shadow: 0 10px 30px rgba(255, 143, 184, 0.4);
  transform: translateY(20px) rotate(-2deg);
  transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1);
}
.note-overlay.active .note-wrapper {
  transform: translateY(0) rotate(-2deg);
}

.note-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 35px;
  height: 35px;
  background: var(--rose);
  color: white;
  border: 3px solid #fffdf8;
  border-radius: 50%;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(255, 143, 184, 0.4);
  transition: transform 0.2s;
}
.note-close:hover {
  transform: scale(1.1) rotate(90deg);
}

.note-text {
  font-family: "Quicksand", sans-serif;
  font-size: 1.15rem;
  line-height: 1.6;
  color: var(--ink);
  font-weight: 700;
}

.note-text strong {
  color: var(--rose-deep);
  font-size: 1.25rem;
  font-weight: 900;
}

/* Pulsing glow to hint it's clickable */
@keyframes pulseGlow {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(255, 143, 184, 0.4);
  }
  50% {
    box-shadow: 0 0 15px 5px rgba(255, 143, 184, 0.6);
  }
}
.pin-glow {
  animation: pulseGlow 2s infinite;
}

/* The pop animation when clicked */
@keyframes popAndTilt {
  0% {
    transform: scale(1) rotate(0deg);
  }
  50% {
    transform: scale(1.05) rotate(-2deg);
  }
  100% {
    transform: scale(1) rotate(0deg);
  }
}
.pin-unlocked {
  animation: popAndTilt 0.4s cubic-bezier(0.3, 1.5, 0.5, 1) forwards;
}

/* ============ Two-page book — slide + fade (robust) ============ */
#book-text-content.book-pages {
  position: relative;
  overflow: hidden; /* clips sliding pages at the book edges */
  min-height: 24rem; /* fallback; page 1 sets the real height */
}

#book-text-content .book-page {
  position: relative;
  transition:
    transform 0.6s cubic-bezier(0.4, 0.05, 0.25, 1),
    opacity 0.35s ease;
  will-change: transform, opacity;
}

#book-text-content .book-page:first-child {
  z-index: 2;
}

/* page 1 slides out to the left, fades out */
#book-text-content .book-page.is-turned {
  transform: translateX(-100%);
  opacity: 0;
  pointer-events: none;
}

/* page 2 waits just off the right edge */
#book-text-content .book-page:nth-child(2) {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow-y: auto; /* letter scrolls if it's taller than page 1 */
  transform: translateX(100%);
  opacity: 0;
  pointer-events: none;
}

/* page 2 slides in */
#book-text-content .book-page:nth-child(2).is-active {
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.gawon-flower {
  position: absolute;
  transform-origin: center;
  animation: flowerBloom 0.7s cubic-bezier(0.3, 1.5, 0.5, 1) both;
  filter: drop-shadow(0 2px 3px rgba(240, 160, 192, 0.5));
  will-change: transform, opacity;
}

.gawon-flower.fading-out {
  animation: flowerFadeOut 0.8s ease-out forwards;
}

@keyframes flowerBloom {
  0% {
    transform: scale(0) rotate(-90deg);
    opacity: 0;
  }
  60% {
    transform: scale(1.15) rotate(10deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes flowerFadeOut {
  from {
    transform: scale(1) translateY(0) rotate(0deg);
    opacity: 1;
  }
  to {
    transform: scale(0.3) translateY(-60px) rotate(180deg);
    opacity: 0;
  }
}

/* ---- Secret flower: falling flower rain ---- */
.gawon-fall-layer {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  transition: opacity 6s ease-in; /* Must match scene.js fade duration */
}

.gawon-fall-flower {
  position: absolute;
  top: -150px;
  opacity: 1;
  transition: opacity 2.8s ease-out;
  filter: drop-shadow(0 2px 4px rgba(240, 160, 192, 0.35));
  will-change: top, transform, opacity;
  animation: flowerFall var(--fall-dur, 3s) var(--fall-delay, 0s)
    cubic-bezier(0.3, 0.5, 0.45, 1) forwards;
}

/* A little back-and-forth sway while falling, like leaves */
@keyframes flowerFall {
  0% {
    top: -150px;
    transform: translateX(0) rotate(0deg);
  }
  25% {
    transform: translateX(calc(var(--sway, 0px) * 0.6))
      rotate(calc(var(--end-rot, 0deg) * 0.2));
  }
  50% {
    transform: translateX(calc(var(--sway, 0px) * 0.2))
      rotate(calc(var(--end-rot, 0deg) * 0.45));
  }
  75% {
    transform: translateX(calc(var(--sway, 0px) * 0.8))
      rotate(calc(var(--end-rot, 0deg) * 0.7));
  }
  100% {
    top: var(--land-y, 80vh);
    transform: translateX(var(--sway, 0px)) rotate(var(--end-rot, 0deg));
  }
}

.gawon-fall-flower.fade {
  opacity: 0;
}

/* ============ Day / Night Toggle ============ */
 /* Clouds fade out normally */
.clouds-layer {
  transition: opacity 1s ease, visibility 1s ease;
}
/* Stars wait 1.5s after night mode starts, then fade in slowly over 4s */
.stars-layer {
  transition: opacity 4s ease 1.5s, visibility 4s ease 1.5s;
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
}
/* When stars are hidden (daytime), fade out instantly (0s delay) */
.stars-layer.hidden-layer {
  transition: opacity 1s ease 0s, visibility 1s ease 0s;
}
/* Hidden state */
.hidden-layer {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
}

/* --- Clouds (day) --- */
.cloud {
  position: absolute;
  top: var(--cloud-top, 15%);
  left: 0;
  width: var(--cloud-size, 120px);
  height: auto;
  opacity: 0.9;
  filter: drop-shadow(0 6px 12px rgba(255, 255, 255, 0.35));
  animation: cloudDrift var(--cloud-dur, 55s) linear var(--cloud-delay, 0s)
    infinite;
  user-select: none;
  -webkit-user-drag: none;
}
@keyframes cloudDrift {
  from {
    transform: translateX(-40vw);
  }
  to {
    transform: translateX(120vw);
  }
}

/* --- Stars (night) --- */
.star {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--sz, 2px);
  height: var(--sz, 2px);
  border-radius: 50%;
  background: #fff;
  box-shadow:
    0 0 4px #fff,
    0 0 10px rgba(255, 255, 200, 0.6);
  animation: starTwinkle var(--d, 3s) ease-in-out var(--dl, 0s) infinite;
}

@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.7);
  }
  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

/* --- Reduced motion --- */
@media (prefers-reduced-motion: reduce) {
  .cloud {
    animation: none;
    transform: translateX(20vw);
  }
  .cloud:nth-child(2) {
    transform: translateX(60vw);
  }
  .star {
    animation: none;
    opacity: 0.85;
  }
}

/* ============ Pretty Footer ============ */
.footer-note {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 6px 18px;
  font-family: "Quicksand", sans-serif;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  position: relative;
}

/* the "Made for" words — lighter, dimmed, quieter */
.footer-label {
  color: var(--rose); /* #ff8fb8 — much lighter */
  opacity: 0.75; /* ← your 75% lives HERE now */
  font-weight: 700;
}

/* her name — bright, bold, glowing */
.footer-note em {
  font-style: normal;
  font-weight: 900;
  font-size: 1rem; /* slightly bigger than the label */
  text-transform: none;
  letter-spacing: 0.5px;
  padding: 0 6px;
  color: #ff4d94; /* hot pink — pops against the pale label */
  text-shadow:
    0 0 10px rgba(255, 143, 184, 0.6),
    /* soft pink glow */ 0 1px 2px rgba(240, 111, 160, 0.3); /* gentle depth */
  position: relative;
}

/* swoosh underline under the name */
.footer-note em::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  bottom: -3px;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--rose), transparent);
  border-radius: 2px;
}

/* sparkles */
.sparkle {
  color: var(--blush-dark, #f0a0c0);
  font-size: 0.9rem;
  animation: sparklePulse 2s ease-in-out infinite;
}
.sparkle:last-child {
  animation-delay: 1s;
}
@keyframes sparklePulse {
  0%,
  100% {
    opacity: 0.4;
    transform: scale(0.8);
  }
  50% {
    opacity: 1;
    transform: scale(1.2);
  }
}

/* ---------- butterflies ---------- */
.butterfly-layer {
  position: absolute;
  inset: 0;
  z-index: 2; /* below mascots, above the bg image */
  overflow: hidden;
  pointer-events: none; /* only the butterflies catch clicks */
}

.butterfly {
  position: absolute;
  left: 0;
  top: 0;
  pointer-events: auto;
  cursor: pointer;
  will-change: transform;
  transform-origin: 50% 50%;
  -webkit-tap-highlight-color: transparent;
}
.butterfly svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* wings pivot around the body centre (viewBox is 0 0 100 100) */
.bfly-wing {
  transform-box: view-box;
  transform-origin: 50px 50px;
  animation: bfly-flap var(--flap, 0.2s) ease-in-out infinite alternate;
}
@keyframes bfly-flap {
  from {
    transform: scaleX(1);
  }
  to {
    transform: scaleX(0.32);
  }
}

@media (prefers-reduced-motion: reduce) {
  .butterfly {
    display: none;
  }
}

/* ============ Petal Burst (Air) ============ */
.petal-burst {
  position: fixed;
  pointer-events: none;
  z-index: 60;
  transform-origin: center;
  /* 👇 Stronger shadow to make them pop against the background */
  filter: drop-shadow(0 4px 6px rgba(240, 160, 192, 0.6));
  animation: petalBurst 1.6s cubic-bezier(.2, .7, .4, 1) forwards;
}

@keyframes petalBurst {
  0% {
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy)))
               scale(1) rotate(var(--rot));
    opacity: 0;
  }
}

/* ============ Petal Burst (Ground Scatter) ============ */
.ground-petal {
  position: fixed;
  pointer-events: none;
  z-index: 60;
  transform-origin: center;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15)); 
  animation: groundPetal 3.8s ease-out forwards;
}

@keyframes groundPetal {
  0% {
    transform: translate(-50%, -50%) scale(0.4) rotate(0deg);
    opacity: 1;
  }
  40% {
    /* Reaches the ground level */
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1) rotate(var(--rot));
    opacity: 1;
  }
  70% {
    /* Flattens out (scaleY) to simulate lying on the grass */
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1, 0.5) rotate(var(--rot));
    opacity: 1;
  }
  100% {
    /* Fades away while resting on the ground */
    transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(1.1, 0.5) rotate(var(--rot));
    opacity: 0;
  }
}

/* ============ Mailbox Envelope Hover ============ */
#mailbox-container .mail-envelope {
  /* Start hidden inside the slot */
  transform: translateY(10px) scale(0.9);
  transform-origin: center center;
  opacity: 0;
  /* Bouncy pop-out transition */
  transition: transform 0.4s cubic-bezier(0.3, 1.5, 0.5, 1), opacity 0.2s ease;
}

#mailbox-container:hover .mail-envelope {
  /* Slide up and slightly scale up */
  transform: translateY(-8px) scale(1.05);
  opacity: 1;
}

/* ============ Kill native image dragging (drag-to-tab) ============ */
img, svg {
  -webkit-user-drag: none;
  -khtml-user-drag: none;
  -moz-user-drag: none;
  -o-user-drag: none;
}

/* ============ House (crossfade — no background bleed) ============ */
.house-sprites {
  position: relative;
  display: inline-block;
}

.house-sprites img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}

.house-sprites .house-day {
  /* stays fully opaque at all times — this is the solid base layer */
  opacity: 1;
}

.house-sprites .house-night {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 2.8s ease;
}

.is-night .house-night {
  opacity: 1;
}

/* ═══════════════════════════════════════════════════════
   Scene anchors — drag with F2 debug, then copy values here
   ═══════════════════════════════════════════════════════ */
#floating-book-icon,
#house-container,
#mailbox-container {
  position: absolute;
  transform-origin: bottom right;
}

#floating-book-icon {
  right:  calc(1175px * var(--inv-zoom, 1));
  bottom: calc(125px * var(--inv-zoom, 1));
  scale:  calc(0.25  * var(--inv-zoom, 1));
}

#house-container {
  right:  calc(80px * var(--inv-zoom, 1));
  bottom: calc(500px * var(--inv-zoom, 1));
  scale:  calc(0.8    * var(--inv-zoom, 1));
}

#mailbox-container {
  right:  calc(504px * var(--inv-zoom, 1));
  bottom: calc(522px * var(--inv-zoom, 1));
  scale:  calc(1  * var(--inv-zoom, 1));
}

/* ═══════════════════════════════════════════════════════
   Debug drag mode (F2)
   ═══════════════════════════════════════════════════════ */
body.debug-drag #floating-book-icon,
body.debug-drag #house-container,
body.debug-drag #mailbox-container,
body.debug-drag #gawon-container,
body.debug-drag #sakura-container,
body.debug-drag #secret-container {
  outline: 2px dashed lime !important;
  outline-offset: 2px;
  cursor: grab;
  z-index: 9000 !important;
  pointer-events: auto !important;
}

body.debug-drag #floating-book-icon *,
body.debug-drag #house-container *,
body.debug-drag #mailbox-container *,
body.debug-drag #gawon-container *,
body.debug-drag #sakura-container *,
body.debug-drag #secret-container * {
  pointer-events: none !important;
}

body.debug-drag .spawned-flower {
  outline: 1px dashed cyan !important;
  outline-offset: 2px;
  cursor: grab;
}

/* ============ Background (crossfade — no bleed) ============ */
.bg-day {
  opacity: 1;
  z-index: 0;
}
.bg-night {
  opacity: 0;
  transition: opacity 4s ease-in-out;
  z-index: 1;
}
#bg-container.is-night .bg-night {
  opacity: 1;
} 

/* Add these to your style.css */
.gate-mascot {
  opacity: 0;
}

.gawon-drag-area {
  touch-action: none;
}

.mailbox-svg {
  filter: drop-shadow(0 4px 6px rgba(255, 143, 184, 0.3));
  overflow: visible;
}

.book-mascot-trigger {
  animation-delay: 1s;
  scale: 1.5;
  bottom: 15px;
  right: 30px;
  position: absolute;
}

.typewriter-text {
  white-space: pre-wrap;
}