:root {
  color-scheme: only light;
}

html,
body,
#root,
.app-shell,
button,
input,
select,
textarea {
  color-scheme: only light !important;
}

.screen-host {
  width: 100%;
  min-width: 0;
  display: grid;
  place-items: center;
}

.theme-toggle {
  position: fixed;
  z-index: 60;
  top: max(13px, env(safe-area-inset-top));
  right: max(13px, env(safe-area-inset-right));
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(215, 101, 128, .2);
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  color: var(--wine);
  background: rgba(255, 253, 249, .72);
  box-shadow: 0 6px 20px rgba(170, 88, 105, .08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: color 220ms ease, background-color 220ms ease, border-color 220ms ease, transform 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.theme-toggle:hover {
  border-color: rgba(215, 101, 128, .4);
  background: rgba(255, 253, 249, .92);
}

.theme-toggle:active {
  transform: scale(.92);
}

.theme-toggle-icon {
  width: 17px;
  height: 17px;
  display: grid;
  place-items: center;
}

.theme-toggle-icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.experience-card {
  opacity: 0;
  transform: translateY(18px) scale(0.985);
  transition: opacity 300ms cubic-bezier(.4, 0, .2, 1), transform 300ms cubic-bezier(.4, 0, .2, 1);
}

.experience-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.experience-card.no-entry-motion {
  transition: none;
}

.floating-hearts span {
  animation: ambient-heart 5.2s ease-in-out infinite;
}

.floating-hearts.lively span {
  animation-name: ambient-heart-lively;
  animation-duration: 3.8s;
}

.activity-card {
  opacity: 0;
  transform: translateY(10px);
  animation: card-arrival 300ms cubic-bezier(.4, 0, .2, 1) forwards;
  animation-delay: var(--card-delay, 0ms);
}

.activity-card:active,
.primary-button:active,
.schedule-back-button:active {
  transform: scale(.975);
}

.no-button-free {
  transition: left 420ms cubic-bezier(.22, .72, .22, 1), top 420ms cubic-bezier(.22, .72, .22, 1),
    background-color 300ms ease-in-out, box-shadow 300ms ease-in-out;
  will-change: left, top;
}

.secondary-choice-screen {
  max-width: 700px;
}

.secondary-choice-screen .screen-heading {
  display: grid;
  justify-items: center;
  gap: 12px;
}

.secondary-choice-screen .activity-text small {
  display: none;
}

.parent-choice {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--muted);
  background: rgba(255, 255, 255, .55);
  font-size: .68rem;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.secondary-back-button {
  display: block;
}

.surprise-choice-screen {
  max-width: 590px;
  padding-block: clamp(42px, 9vh, 72px);
  text-align: center;
}

.surprise-ok-button {
  width: min(100%, 280px);
  margin-inline: auto;
}

.native-custom-time {
  min-height: 52px;
  margin-top: 10px;
  border: 1px solid var(--hairline);
  border-radius: 15px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 8px 13px 8px 15px;
  color: var(--muted);
  background: rgba(255, 255, 255, .76);
  font-size: .72rem;
}

.native-custom-time.selected {
  border-color: var(--wine);
  box-shadow: inset 0 0 0 1px rgba(215, 101, 128, .08);
}

.native-custom-time input {
  min-height: 34px;
  border: 0;
  border-radius: 10px;
  padding-inline: 10px;
  color: var(--wine);
  background: var(--blush);
  font-weight: 700;
}

.celebration-mark {
  width: 82px;
  height: 82px;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 180ms ease;
}

.celebration-mark::before {
  content: "";
  position: absolute;
  z-index: 0;
  inset: 7px;
  border: 1px solid color-mix(in srgb, var(--wine) 42%, transparent);
  border-radius: 50%;
  box-shadow: inset 0 0 12px color-mix(in srgb, var(--wine) 10%, transparent);
  animation: touch-ring 2.9s cubic-bezier(.36, .07, .19, .97) infinite;
  pointer-events: none;
}

.celebration-mark:hover {
  border-color: color-mix(in srgb, var(--wine) 48%, transparent);
  box-shadow: 0 15px 34px color-mix(in srgb, var(--wine) 24%, transparent);
}

.celebration-mark:active {
  transform: scale(.96);
}

.celebration-mark .single-heart {
  font-size: 3.65rem;
  filter: drop-shadow(0 3px 7px color-mix(in srgb, var(--wine) 24%, transparent));
}

.celebration-heart {
  position: relative;
  z-index: 1;
  animation: final-heartbeat 2.9s cubic-bezier(.36, .07, .19, .97) infinite;
  transform-origin: center;
}

.confirmation-screen .confetti i {
  left: var(--confetti-left);
  background: var(--confetti-color);
  box-shadow: none;
  opacity: 0;
  animation: card-confetti var(--confetti-duration) linear var(--confetti-delay) infinite;
}

.confirmation-screen .confetti i:nth-child(3n) {
  width: 4px;
  height: 4px;
  border-radius: 50%;
}

.confirmation-screen .confetti i:nth-child(4n) {
  width: 3px;
  height: 8px;
}

.confirmation-screen .date-anticipation {
  margin-bottom: 5px;
}

.confirmation-screen > .restart-button {
  margin-top: 0;
}

.confirmation-screen .tiny-love-note {
  margin-top: 15px;
}

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

.firework-burst {
  position: absolute;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.firework-burst i {
  position: absolute;
  left: 0;
  top: 0;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(255, 255, 255, .9)) drop-shadow(0 0 5px currentColor);
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translate(-50%, -50%);
  animation: firework-particle 920ms cubic-bezier(.15, .65, .2, 1) var(--firework-delay) forwards;
}

.firework-ring {
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  border: 3px solid rgba(201, 45, 89, .78);
  border-radius: 50%;
  box-shadow: 0 0 24px rgba(201, 45, 89, .5);
  transform: translate(-50%, -50%) scale(.2);
  animation: firework-ring 620ms ease-out forwards;
}

.summary-card small {
  max-width: 100%;
}

.summary-card strong {
  white-space: normal;
}

@keyframes ambient-heart {
  0%, 100% { transform: translate(0, 8px) rotate(-8deg); opacity: .2; }
  50% { transform: translate(7px, -18px) rotate(9deg); opacity: .42; }
}

@keyframes ambient-heart-lively {
  0%, 100% { transform: translate(0, 10px) rotate(-10deg) scale(.92); opacity: .2; }
  48% { transform: translate(11px, -27px) rotate(10deg) scale(1.1); opacity: .55; }
}

@keyframes card-arrival {
  to { opacity: 1; transform: translateY(0); }
}

@keyframes final-heartbeat {
  0%, 6%, 14%, 100% { transform: scale(1); }
  3% { transform: scale(1.13); }
  10% { transform: scale(1.09); }
}

@keyframes touch-ring {
  0%, 6%, 14%, 100% { opacity: .42; transform: scale(.96); }
  3% { opacity: .82; transform: scale(1); }
  10% { opacity: .66; transform: scale(.985); }
}

@keyframes card-confetti {
  0% { top: -12px; opacity: 0; transform: translate3d(0, 0, 0) rotate(0); }
  12% { opacity: .28; }
  76% { opacity: .18; }
  100% { top: calc(100% + 12px); opacity: 0; transform: translate3d(var(--confetti-drift), 0, 0) rotate(var(--confetti-spin)); }
}

@keyframes firework-particle {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(0); }
  10% { opacity: 1; }
  75% { opacity: 1; }
  100% { opacity: 0; transform: translate(calc(-50% + var(--firework-x)), calc(-50% + var(--firework-y) + 20px)) scale(.65) rotate(var(--firework-rotate)); }
}

@keyframes firework-ring {
  0% { opacity: .95; transform: translate(-50%, -50%) scale(.2); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(4.8); }
}

html[data-theme="dark"] {
  color-scheme: dark;
  --wine: #f06f91;
  --wine-dark: #fb85a3;
  --rose: #ea7893;
  --dusty-rose: #c66f82;
  --coral: #e68f7e;
  --blush: #481c27;
  --cream: #241814;
  --ink: #f3dde2;
  --muted: #c5a7ae;
  --hairline: rgba(242, 118, 148, .22);
  --shadow: 0 28px 90px rgba(0, 0, 0, .36), 0 4px 18px rgba(0, 0, 0, .24);
}

html[data-theme="dark"],
html[data-theme="dark"] body,
html[data-theme="dark"] #root,
html[data-theme="dark"] .app-shell,
html[data-theme="dark"] button,
html[data-theme="dark"] input,
html[data-theme="dark"] select,
html[data-theme="dark"] textarea {
  color-scheme: dark !important;
}

html[data-theme="dark"],
html[data-theme="dark"] body {
  color: var(--ink);
  background: #21100f;
}

html[data-theme="dark"] .app-shell {
  background: radial-gradient(circle at 50% 8%, rgba(112, 31, 50, .34), transparent 38%), linear-gradient(145deg, #21100f, #321313 52%, #170d12);
}

html[data-theme="dark"] .glow-one { background: rgba(150, 28, 61, .34); }
html[data-theme="dark"] .glow-two { background: rgba(173, 62, 36, .24); }

html[data-theme="dark"] .experience-card {
  border-color: rgba(241, 113, 144, .19);
  background: rgba(36, 24, 20, .88);
}

html[data-theme="dark"] .activity-card,
html[data-theme="dark"] .calendar,
html[data-theme="dark"] .time-grid button,
html[data-theme="dark"] .native-custom-time,
html[data-theme="dark"] .schedule-back-button,
html[data-theme="dark"] .summary-card {
  color: var(--ink);
  background: rgba(25, 21, 20, .82);
}

html[data-theme="dark"] .activity-card:hover,
html[data-theme="dark"] .schedule-back-button:hover,
html[data-theme="dark"] .time-grid button:hover {
  border-color: rgba(240, 111, 145, .46);
  background: rgba(70, 28, 39, .86);
}

html[data-theme="dark"] .activity-card.selected,
html[data-theme="dark"] .time-grid button.selected,
html[data-theme="dark"] .calendar-grid button.selected {
  color: #fff;
  background: #a72449;
}

html[data-theme="dark"] .activity-icon,
html[data-theme="dark"] .summary-icon,
html[data-theme="dark"] .parent-choice,
html[data-theme="dark"] .native-custom-time input,
html[data-theme="dark"] .celebration-mark {
  background: #481c27;
}

html[data-theme="dark"] .calendar-grid button { color: #ead5da; }
html[data-theme="dark"] .calendar-grid button:disabled { color: #69565a; }

html[data-theme="dark"] .sunset-time-card {
  background: linear-gradient(145deg, rgba(70, 38, 28, .94), rgba(73, 27, 35, .9));
}

html[data-theme="dark"] .summary-card > div { border-color: rgba(242, 118, 148, .16); }

html[data-theme="dark"] .theme-toggle {
  border-color: rgba(240, 111, 145, .24);
  color: #f3d9b0;
  background: rgba(36, 24, 20, .7);
  box-shadow: 0 6px 22px rgba(0, 0, 0, .18);
}

html[data-theme="dark"] .theme-toggle:hover {
  border-color: rgba(240, 111, 145, .46);
  background: rgba(70, 28, 39, .82);
}

html[data-theme="dark"] .firework-burst i {
  filter: drop-shadow(0 0 4px currentColor) drop-shadow(0 0 10px currentColor);
}

html[data-theme="dark"] .firework-ring {
  border-color: rgba(255, 127, 159, .92);
  box-shadow: 0 0 28px rgba(255, 94, 135, .75);
}

html[data-theme="dark"] .made-with-care,
html[data-theme="dark"] .tiny-love-note {
  color: rgba(234, 196, 205, .52);
}

@media (max-width: 519px) {
  .secondary-choice-screen .activity-grid {
    grid-template-columns: 1fr;
  }

  .secondary-choice-screen h1 {
    font-size: clamp(1.9rem, 9vw, 2.6rem);
  }

  .firework-burst i {
    --mobile-firework-scale: .82;
  }
}

html[data-force-motion="full"] .celebration-heart {
  animation: final-heartbeat 2.9s cubic-bezier(.36, .07, .19, .97) infinite !important;
}

html[data-force-motion="full"] .celebration-mark::before {
  animation: touch-ring 2.9s cubic-bezier(.36, .07, .19, .97) infinite !important;
}

html[data-force-motion="full"] .firework-burst i {
  animation: firework-particle 920ms cubic-bezier(.15, .65, .2, 1) var(--firework-delay) forwards !important;
}

html[data-force-motion="full"] .firework-ring {
  animation: firework-ring 620ms ease-out forwards !important;
}
