:root {
  --line: #2f3b34;
  --text: #2f3b34;
  --bar: #3b4a42;
  --bar-grid: #4e6152;
  --bar-text: #fff3cf;
  --body: #d4e7cb;
  --alt: #abcf9b;
  --panel: #ecf5e7;
  --muted: #455745;
  --ground: #c3d4ba;
  --cloud-fill: #ecf5e7;
  --stripes: repeating-linear-gradient(
    -45deg,
    #9cc58a 0 10px,
    #cfe5c2 10px 20px
  );
  --font: "Fredoka", "Nunito", system-ui, sans-serif;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
}
body {
  min-height: 100vh;
  overflow-x: hidden;
  font-family: var(--font);
  color: var(--text);
  background-color: var(--ground);
  transition: background-color 0.8s var(--ease);
}
a {
  color: inherit;
  text-decoration: none;
}
button {
  font-family: inherit;
  color: inherit;
  cursor: pointer;
}
[hidden] {
  display: none !important;
}
.km {
  font-family: "Kantumruy Pro", "Fredoka", sans-serif;
}

/* ---------- scenery ---------- */
.scene,
.critters,
.milk-layer {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}
.scene > * {
  position: absolute;
  inset: 0;
}
.patterns > div {
  position: absolute;
  inset: 0;
  opacity: 0.2;
}
.pattern-in {
  animation: xIn 0.8s var(--ease) both;
}
.pattern-out {
  animation: xOut 0.8s var(--ease) both;
}
.sky-tint,
.sky-dim {
  transition:
    background-color 1.2s ease,
    opacity 1.2s ease;
}
.sky-dim {
  background-color: #141b2e;
}
.star {
  position: absolute;
  animation: twinkle ease-in-out infinite;
  transition: opacity 1.2s ease;
}

.sky-body {
  inset: auto;
  width: 100px;
  height: 100px;
  transition:
    top 1.2s ease,
    left 1.2s ease;
}
.sky-body svg {
  width: 100px;
  height: 100px;
  display: block;
}
.sun {
  stroke: var(--sun, #f2d27a);
  fill: var(--sun, #f2d27a);
}
.rays {
  animation: spin 60s linear infinite;
  transform-origin: 50px 50px;
}
.bob {
  animation: bob 6s ease-in-out infinite;
}

.cloud {
  position: absolute;
  left: -300px;
  fill: var(--cloud-fill);
  animation: drift linear infinite;
  transition: opacity 1.2s ease;
}
.cloud path {
  transition: fill 1.2s ease;
}

.flower {
  position: absolute;
  top: -80px;
  animation: fallOnly linear infinite;
}
.flower > span {
  display: block;
  width: 100%;
  height: 100%;
  animation: spinOnly linear infinite;
}
.flower img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0.9;
  transition: opacity 0.4s var(--ease);
}
.flower img.swap {
  opacity: 0;
}

.drop {
  position: absolute;
  top: 0;
  width: 2px;
  border-radius: 2px;
  background-color: #4a7fc0;
  opacity: 0.55;
  animation: rainfall linear infinite;
}
.flash {
  position: absolute;
  inset: 0;
  background-color: #fffbea;
  animation: flash 9s linear infinite;
}

.tiny-pearl {
  position: absolute;
  top: -30px;
  border-radius: 50%;
  background-color: #2b1d17;
  animation: fallDown linear infinite;
}
.fill-up {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: calc(100vh + 200px);
  animation: fillUp 20s cubic-bezier(0.45, 0, 0.7, 1) forwards;
}
.fill-up .swell {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  animation: swell 5s ease-in-out infinite;
}
.fill-up .swell + .swell {
  top: 60px;
  animation-delay: -2.5s;
}
.wave {
  position: absolute;
  left: 0;
  top: 0;
  width: 3360px;
  height: 64px;
}
.wave + div {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  bottom: 0;
}

/* ---------- critters ---------- */
.critter {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform;
}
.critter img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.hop {
  animation: hop 0.45s ease-in-out infinite alternate;
}
.flap {
  animation: flap 1.2s ease-in-out infinite alternate;
}

/* ---------- page layout ---------- */
.page {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 12px 32px 6px;
}
.top {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  grid-template-areas: "theme center surprise";
  align-items: start;
  gap: 16px;
}
.theme-col {
  grid-area: theme;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
  padding-top: 6px;
}
.center-col {
  grid-area: center;
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.surprise-col {
  grid-area: surprise;
  justify-self: end;
  padding-top: 10px;
}
main {
  width: 100%;
  max-width: 800px;
}

/* ---------- shared pieces ---------- */
.panel,
.window,
.pill,
.tile,
.bubble,
.avatar,
.status,
.seg,
.bar {
  transition:
    background-color 0.8s var(--ease),
    border-color 0.8s var(--ease),
    color 0.8s var(--ease);
}
.panel {
  background-color: var(--panel);
  border: 1.5px solid var(--line);
  box-shadow: 2px 2px 0 var(--line);
}
.btn:focus-visible,
.tile:focus-visible,
.credits a:focus-visible,
input:focus-visible {
  outline: 3px solid #4a7fc0;
  outline-offset: 3px;
}
.pill {
  margin-left: 12px;
  font-size: 14px;
  font-weight: 500;
  padding: 2px 12px;
  background-color: var(--panel);
  border: 1.5px solid var(--line);
  border-radius: 999px;
}
.window {
  border: 1.5px solid var(--line);
  border-radius: 9px;
  box-shadow: 3px 3px 0 var(--line);
  overflow: hidden;
  background-color: var(--body);
}
.titlebar {
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1.5px solid var(--line);
  background-color: var(--bar);
  background-image:
    linear-gradient(var(--bar-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--bar-grid) 1px, transparent 1px);
  background-size: 6px 6px;
  transition: background-color 0.8s var(--ease);
}
.titlebar.small {
  height: 26px;
  padding: 0 10px;
}
.titlebar-text {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.3px;
  color: var(--bar-text);
  background-color: var(--bar);
  padding: 0 8px;
  transition: background-color 0.8s var(--ease);
}
.titlebar.small .titlebar-text {
  font-size: 13px;
}
.titlebar-meta {
  font-size: 13px;
  padding: 0 6px;
}
.dots {
  display: flex;
  gap: 6px;
  width: 48px;
}
.dots i {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 1px solid #2f3b34;
  background-color: #5fc35a;
}
.dots i:nth-child(2) {
  background-color: #f5c04a;
}
.dots i:nth-child(3) {
  background-color: #f0675c;
}
.titlebar.small .dots {
  gap: 5px;
  width: 40px;
}
.titlebar.small .dots i {
  width: 10px;
  height: 10px;
}
.spacer {
  width: 40px;
}

/* ---------- theme picker ---------- */
.theme-panel {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 8px 6px;
  border-radius: 14px;
}
.panel-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
  padding-left: 10px;
}
.swatches {
  display: grid;
  grid-template-columns: repeat(6, 44px);
}
.swatch {
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.swatch span {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  transition: box-shadow 0.2s ease;
}
.swatch[aria-pressed="true"] span {
  box-shadow:
    0 0 0 3px var(--panel),
    0 0 0 5px var(--line);
}

/* ---------- city + clock ---------- */
.segmented {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
}
.seg {
  height: 44px;
  padding: 0 18px 0 12px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  background-color: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 500;
}
.seg[aria-pressed="true"] {
  background-color: var(--bar);
  color: var(--bar-text);
  border-color: var(--line);
}

.clock-window {
  width: 470px;
  max-width: 100%;
}
.clock-body {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px 14px;
}
.clock-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.clock-time {
  font-size: 42px;
  font-weight: 600;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.clock-date {
  font-size: 16px;
  font-weight: 500;
}
.clock-sun {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted);
}
.weather {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 14px 8px 10px;
  background-color: #fff;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  flex-shrink: 0;
}
.wx {
  width: 46px;
  height: 46px;
}
.weather-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.temp {
  font-size: 32px;
  font-weight: 600;
  line-height: 1;
}
.cond {
  font-size: 14px;
  font-weight: 500;
}

/* ---------- surprise ---------- */
.surprise {
  height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 20px 0 7px;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 500;
}
.surprise[aria-pressed="true"] {
  background-color: var(--bar);
  color: var(--bar-text);
}
.surprise-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: #e0574b;
  border: 1.5px solid #2f3b34;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- apps ---------- */
.apps-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 14px 24px 18px;
}
.intro {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.avatar {
  width: 56px;
  height: 56px;
  flex-shrink: 0;
  border-radius: 50%;
  background-color: var(--alt);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
}
.intro-name {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
h1 {
  margin: 0;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.05;
}
.role {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--muted);
}
.bubble {
  margin-left: auto;
  padding: 10px 16px;
  font-size: 17px;
  font-weight: 500;
  background-color: var(--alt);
  border: 1.5px solid var(--line);
  border-radius: 7px;
  box-shadow: 2px 2px 0 var(--line);
}
.apps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.tile {
  position: relative;
  height: 100%;
  min-height: 172px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px;
  background-color: #fff;
  border: 1.5px solid var(--line);
  border-radius: 7px;
  box-shadow: 2px 2px 0 var(--line);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease;
}
.tile:hover,
.tile:focus-visible {
  transform: translate(-2px, -2px);
  box-shadow: 5px 5px 0 var(--line);
}
.tile-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.app-icon {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  background-color: var(--ic-bg);
  border: 1.5px solid #2f3b34;
  display: flex;
  align-items: center;
  justify-content: center;
}
.app-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: var(--ic-fg);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.status {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 4px 10px;
  border-radius: 999px;
  background-color: var(--alt);
  border: 1.5px solid var(--line);
}
.app-name {
  font-size: 20px;
  font-weight: 600;
  margin-top: 2px;
  line-height: 1.15;
}
.app-desc {
  font-size: 15px;
  line-height: 1.3;
  color: var(--muted);
}
.open {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
}
.open svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.burst-wrap {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 3;
}
.burst-wrap > span {
  position: absolute;
  display: block;
}
.burst-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.burst-wrap .pearl {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 1.5px solid #2f3b34;
  background-color: #2b1d17;
}

/* ---------- player ---------- */
.player {
  width: 760px;
  max-width: 100%;
}
.player-body {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 10px 16px;
}
.eq-box {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 6px;
  background-color: var(--alt);
  border: 1.5px solid var(--line);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  padding-bottom: 8px;
}
.eq {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background-color: var(--text);
  animation: eq 0.9s ease-in-out infinite;
  transform-origin: bottom;
}
.eq:nth-child(2) {
  animation-delay: -0.3s;
}
.eq:nth-child(3) {
  animation-delay: -0.6s;
}
.eq:nth-child(4) {
  animation-delay: -0.15s;
}
.track {
  width: 170px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  overflow: hidden;
}
.track,
.track:hover {
  color: inherit;
  text-decoration: none;
}
.track[href]:hover .track-title {
  text-decoration: underline;
}
.is-paused .eq,
.is-paused .stripes {
  animation-play-state: paused;
}
.track-title {
  font-size: 16px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.track-artist {
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.progress {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
}
.bar {
  flex-grow: 1;
  height: 10px;
  border-radius: 999px;
  border: 1.5px solid var(--line);
  background-color: var(--panel);
  overflow: hidden;
}
.bar-fill {
  height: 100%;
  width: 0;
  background: var(--stripes);
  background-size: 28px 100%;
  border-right: 1.5px solid var(--line);
  transition: width 1s linear;
}
.stripes {
  animation: stripes 0.8s linear infinite;
}
.volume {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.volume input {
  width: 84px;
  accent-color: #3b4a42;
}

/* ---------- credits ---------- */
.credits {
  margin-top: auto;
  padding-top: 4px;
  font-size: 11px;
  color: var(--muted);
}
.credits a {
  padding: 1px 8px;
  border-radius: 999px;
  background-color: var(--panel);
  text-decoration: underline;
  text-underline-offset: 2px;
  transition: background-color 0.8s var(--ease);
}

/* ---------- milk pour ---------- */
.milk-layer {
  z-index: 50;
}
.milk {
  position: absolute;
  left: 0;
  right: 0;
  top: 60px;
  bottom: 0;
  background-color: #fbf3e6;
  animation: milkRise 3.4s ease-in-out both;
}
.milk .wave {
  top: -60px;
  animation: slosh 1.6s linear infinite;
}
.milk-pearl {
  position: absolute;
  bottom: -50px;
  border-radius: 50%;
  background-color: #2b1d17;
  animation-timing-function: ease-in-out;
  animation-fill-mode: both;
}

/* ---------- keyframes ---------- */
@keyframes xIn {
  from {
    opacity: 0;
  }
}
@keyframes xOut {
  to {
    opacity: 0;
  }
}
@keyframes drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(calc(100vw + 500px));
  }
}
@keyframes twinkle {
  0%,
  100% {
    opacity: 0.25;
  }
  50% {
    opacity: 1;
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@keyframes bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes eq {
  0%,
  100% {
    transform: scaleY(0.3);
  }
  50% {
    transform: scaleY(1);
  }
}
@keyframes hop {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-7px);
  }
}
@keyframes flap {
  from {
    transform: translateY(-6px) rotate(-4deg);
  }
  to {
    transform: translateY(8px) rotate(4deg);
  }
}
@keyframes stripes {
  from {
    background-position: 0 0;
  }
  to {
    background-position: 28px 0;
  }
}
@keyframes rainfall {
  from {
    transform: translate(0, -120px) rotate(14deg);
  }
  to {
    transform: translate(-60px, 110vh) rotate(14deg);
  }
}
@keyframes flash {
  0%,
  93%,
  100% {
    opacity: 0;
  }
  94% {
    opacity: 0.55;
  }
  95% {
    opacity: 0.1;
  }
  96.5% {
    opacity: 0.45;
  }
}
@keyframes fallDown {
  0% {
    transform: translate(0, 0) rotate(0deg);
  }
  25% {
    transform: translate(22px, 28vh) rotate(90deg);
  }
  50% {
    transform: translate(-14px, 56vh) rotate(180deg);
  }
  75% {
    transform: translate(18px, 84vh) rotate(270deg);
  }
  100% {
    transform: translate(0, 112vh) rotate(360deg);
  }
}
@keyframes fallOnly {
  0% {
    transform: translate(0, 0);
  }
  25% {
    transform: translate(22px, 28vh);
  }
  50% {
    transform: translate(-14px, 56vh);
  }
  75% {
    transform: translate(18px, 84vh);
  }
  100% {
    transform: translate(0, calc(112vh + 80px));
  }
}
@keyframes spinOnly {
  to {
    transform: rotate(360deg);
  }
}
@keyframes swell {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@keyframes fillUp {
  from {
    transform: translateY(77vh);
  }
  to {
    transform: translateY(-70px);
  }
}
@keyframes slosh {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-480px);
  }
}
@keyframes milkRise {
  0% {
    transform: translateY(105%);
  }
  45%,
  55% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(105%);
  }
}
@keyframes pearlA {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  45% {
    transform: translate(34px, -37vh) scale(1);
  }
  78% {
    opacity: 1;
  }
  100% {
    transform: translate(-26px, -71vh) scale(0.15);
    opacity: 0;
  }
}
@keyframes pearlB {
  0% {
    transform: translate(0, 0) scale(0.5);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  45% {
    transform: translate(-30px, -33vh) scale(1);
  }
  78% {
    opacity: 1;
  }
  100% {
    transform: translate(22px, -67vh) scale(0.15);
    opacity: 0;
  }
}
@keyframes burst0 {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(80px, 0) scale(1) rotate(-120deg);
    opacity: 0;
  }
}
@keyframes burst1 {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(74px, 80px) scale(1) rotate(-47deg);
    opacity: 0;
  }
}
@keyframes burst2 {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(24px, 85px) scale(1) rotate(26deg);
    opacity: 0;
  }
}
@keyframes burst3 {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(-22px, 115px) scale(1) rotate(99deg);
    opacity: 0;
  }
}
@keyframes burst4 {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(-59px, 76px) scale(1) rotate(-68deg);
    opacity: 0;
  }
}
@keyframes burst5 {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(-113px, 53px) scale(1) rotate(5deg);
    opacity: 0;
  }
}
@keyframes burst6 {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(-104px, -4px) scale(1) rotate(78deg);
    opacity: 0;
  }
}
@keyframes burst7 {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(-54px, -63px) scale(1) rotate(-89deg);
    opacity: 0;
  }
}
@keyframes burst8 {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(-27px, -109px) scale(1) rotate(-16deg);
    opacity: 0;
  }
}
@keyframes burst9 {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(20px, -89px) scale(1) rotate(57deg);
    opacity: 0;
  }
}
@keyframes burst10 {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(77px, -92px) scale(1) rotate(-110deg);
    opacity: 0;
  }
}
@keyframes burst11 {
  0% {
    transform: scale(0.2);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  100% {
    transform: translate(91px, -39px) scale(1) rotate(-37deg);
    opacity: 0;
  }
}

/* ---------- smaller screens ---------- */
@media (max-width: 1080px) {
  .top {
    grid-template-columns: auto auto;
    grid-template-areas: "center center" "theme surprise";
    justify-content: center;
    column-gap: 24px;
  }
  .surprise-col {
    justify-self: start;
  }
}
@media (max-width: 820px) {
  .page {
    padding: 14px 16px 10px;
  }
  .apps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .bubble {
    margin-left: 0;
  }
}
@media (max-width: 600px) {
  .top {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "center" "theme" "surprise";
    justify-items: center;
  }
  .center-col {
    width: 100%;
  }
  .theme-col {
    align-items: center;
  }
  .pill {
    margin-left: 0;
  }
  .surprise-col {
    justify-self: center;
    padding-top: 0;
  }
  .clock-body {
    flex-wrap: wrap;
    padding: 12px 16px 14px;
  }
  .apps-body {
    padding: 14px 14px 16px;
  }
  .apps {
    grid-template-columns: 1fr;
  }
  .tile {
    min-height: 0;
  }
  .player-body {
    flex-wrap: wrap;
  }
  .track {
    flex: 1 1 0;
    width: auto;
  }
  .progress {
    flex-basis: 100%;
    order: 3;
  }
  .volume {
    display: none;
  }
}
@media (max-width: 360px) {
  .swatches {
    grid-template-columns: repeat(4, 44px);
  }
}

@media (prefers-reduced-motion: reduce) {
  .cloud,
  .star,
  .rays,
  .bob,
  .eq,
  .flower,
  .flower > span,
  .hop,
  .flap,
  .stripes,
  .drop,
  .flash,
  .tiny-pearl,
  .swell,
  .wave {
    animation: none !important;
  }
  .critters,
  .burst-wrap,
  .milk-layer,
  .fill-up,
  .flowers {
    display: none !important;
  }
  .tile,
  .bar-fill {
    transition: none;
  }
}
