/* Direction: Sunshine Departures — postcard sky, coral boarding pass, chunky rounded playfulness */
/* Completed by the platform from the short form: both modes, every
   palette token, each text-on-ground pair at its floor. To restyle, write the
   short form again (the decisions in one :root) and it is completed again. */

:root {
  --canvas: #f1fbff;
  --surface: #ffffff;
  --surface-2: #e3f3fe;
  --border: #c7e5f8;
  --border-strong: #b3b3b4;
  --ink: #0f3049;
  --muted: #4a7191;
  --accent: #f4552a;
  --accent-hover: #cf4824;
  --accent-ink: #220c06;
  --accent-text: #c03b0e;
  --accent-strong: #ad3509;
  --accent-soft: #ffe6dc;
  --accent-border: #f2b09f;
  --success: #138a5a;
  --success-ink: #ffffff;
  --success-soft: #d6edeb;
  --success-strong: #10754c;
  --warning: #b07000;
  --warning-ink: #ffffff;
  --warning-soft: #e9eae0;
  --warning-strong: #895700;
  --danger: #cc3838;
  --danger-ink: #ffffff;
  --danger-soft: #ede4e7;
  --danger-strong: #bc3434;
  --chart-1: #f4552a;
  --chart-2: #a38b1e;
  --chart-3: #1b9157;
  --chart-4: #029cb7;
  --chart-5: #5b63eb;
  --chart-6: #e05dc8;

  --font-display: "Baloo 2", "Trebuchet MS", sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --display-weight: 800;
  --display-tracking: -0.01em;
  --radius-card: 28px;
  --radius-btn: 999px;
  --radius-input: 999px;
  --card-pad: 1.75rem;
  --shadow-card: 0 18px 44px -18px rgba(15, 48, 73, 0.38);
  --x-sky: #2d9fe8;
  --x-sun: #ffc83d;
  --x-coral: #f4552a;
  --x-mint: #2fc3ad;
  --x-grape: #7b6bf0;
  --x-on-photo: #ffffff;
  --gradient-sky: linear-gradient(180deg, #8ed8ff 0%, #d9f1ff 48%, #fff6e6 100%);
  --gradient-sunset: linear-gradient(120deg, #ff9a52 0%, #f4552a 55%, #e63f78 100%);
  --font-mono: "JetBrains Mono Variable", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --font-sans: "Nunito", system-ui, sans-serif;
  --eyebrow-tracking: 0.08em;
}

html[data-theme="dark"] {
  --canvas: #120703;
  --surface: #2a201c;
  --surface-2: #1e1310;
  --border: #332a26;
  --border-strong: #59514f;
  --ink: #f1fbff;
  --muted: #98999a;
  --accent: #f4552a;
  --accent-hover: #f66f4a;
  --accent-ink: #220c06;
  --accent-text: #f4552a;
  --accent-strong: #f5633b;
  --accent-soft: #44180c;
  --accent-border: #782a15;
  --success: #138a5a;
  --success-ink: #ffffff;
  --success-soft: #122416;
  --success-strong: #379c73;
  --warning: #b07000;
  --warning-ink: #ffffff;
  --warning-soft: #351e02;
  --warning-strong: #bc8627;
  --danger: #cc3838;
  --danger-ink: #ffffff;
  --danger-soft: #3b120f;
  --danger-strong: #d76464;
  --chart-1: #f4552a;
  --chart-2: #caac24;
  --chart-3: #099959;
  --chart-4: #24bad8;
  --chart-5: #636cf6;
  --chart-6: #f571db;
}

/* ---------- sky backdrop ---------- */
.sky-bg {
  background: var(--gradient-sky);
}
.sunset-band {
  background: var(--gradient-sunset);
}

.drift-a {
  animation: drift 78s linear infinite;
}
.drift-b {
  animation: drift 108s linear infinite;
  animation-delay: -34s;
}
.drift-c {
  animation: drift 92s linear infinite;
  animation-delay: -64s;
}
@keyframes drift {
  from {
    transform: translateX(-32vw);
  }
  to {
    transform: translateX(122vw);
  }
}

.bob {
  animation: bob 5.5s ease-in-out infinite;
}
.bob-slow {
  animation: bob 8.5s ease-in-out infinite;
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0) rotate(-2deg);
  }
  50% {
    transform: translateY(-14px) rotate(2deg);
  }
}

.spin-slow {
  animation: spin-slow 28s linear infinite;
}
@keyframes spin-slow {
  to {
    transform: rotate(360deg);
  }
}

.fly {
  animation: fly 9s ease-in-out infinite;
}
@keyframes fly {
  0% {
    transform: translate(-6%, 8px) rotate(-5deg);
  }
  50% {
    transform: translate(6%, -18px) rotate(5deg);
  }
  100% {
    transform: translate(-6%, 8px) rotate(-5deg);
  }
}

/* ---------- screen transitions ---------- */
.screen-in {
  animation: screen-in 0.5s cubic-bezier(0.2, 0.85, 0.3, 1.1) both;
}
@keyframes screen-in {
  from {
    transform: translateY(24px) scale(0.975);
  }
  to {
    transform: none;
  }
}

.pop {
  animation: pop 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.4) both;
}
@keyframes pop {
  0% {
    transform: scale(0.84) rotate(-3deg);
  }
  60% {
    transform: scale(1.05) rotate(1.5deg);
  }
  100% {
    transform: none;
  }
}

/* ---------- the runaway button ---------- */
.runzone {
  touch-action: manipulation;
}
.runaway {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
  transition: transform 0.26s cubic-bezier(0.2, 0.9, 0.25, 1.35);
  cursor: not-allowed;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: var(--shadow-card);
}

/* ---------- confetti ---------- */
.confetti-piece {
  position: absolute;
  top: -10vh;
  width: 10px;
  height: 10px;
  border-radius: 3px;
  animation-name: confetti-fall;
  animation-timing-function: linear;
  animation-fill-mode: forwards;
}
@keyframes confetti-fall {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  100% {
    transform: translateY(122vh) rotate(780deg);
  }
}

/* ---------- boarding-pass notches ---------- */
.ticket-notch {
  background-image: radial-gradient(circle at 0 50%, transparent 11px, var(--surface) 12px),
    radial-gradient(circle at 100% 50%, transparent 11px, var(--surface) 12px);
  background-size: 51% 100%;
  background-position: left center, right center;
  background-repeat: no-repeat;
}

html.reduced-motion .drift-a,
html.reduced-motion .drift-b,
html.reduced-motion .drift-c,
html.reduced-motion .bob,
html.reduced-motion .bob-slow,
html.reduced-motion .spin-slow,
html.reduced-motion .fly,
html.reduced-motion .screen-in,
html.reduced-motion .pop,
html.reduced-motion .confetti-piece {
  animation: none;
}
html.reduced-motion .runaway {
  transition: none;
}
