:root {
  --font-rounded: 'SF Pro Rounded', ui-rounded, 'Nunito', 'Fredoka', 'Arial Rounded MT Bold', system-ui, -apple-system, sans-serif;
  --train-speed: 1;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  font-family: var(--font-rounded);
  color: #4a3525;
  cursor: pointer;
}

/* --- Dynamic Day / Starry Night Sky --- */
.sky-backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, #74d4ff 0%, #bdeeff 48%, #fff4cc 78%, #9be27a 100%);
  transition: background 1.1s ease;
}

body.night-theme .sky-backdrop {
  background: linear-gradient(180deg, #161f4a 0%, #2b3472 48%, #4b4d8f 76%, #244a42 100%);
}

.stars-field {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 1s ease;
  pointer-events: none;
}

body.night-theme .stars-field {
  opacity: 1;
}

.twinkle-star {
  position: absolute;
  border-radius: 50%;
  background: #fff9c4;
  box-shadow: 0 0 10px 2px rgba(255, 245, 157, 0.8);
  animation: twinkle 2.4s ease-in-out infinite alternate;
}

@keyframes twinkle {
  from { opacity: 0.25; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1.25); }
}

/* Sun / Moon Orb */
.celestial-btn {
  position: fixed;
  top: 72px;
  left: 26px;
  z-index: 5;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 4px solid rgba(255, 255, 255, 0.85);
  background: radial-gradient(circle, #fff3a1 0%, #ffd43b 70%, #ffa94d 100%);
  box-shadow: 0 0 36px rgba(255, 212, 59, 0.7);
  font-size: 46px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.8s ease, box-shadow 0.8s ease;
}

.celestial-btn:hover {
  transform: scale(1.12) rotate(10deg);
}

.orb-moon { display: none; }
body.night-theme .orb-sun { display: none; }
body.night-theme .orb-moon { display: block; }
body.night-theme .celestial-btn {
  background: radial-gradient(circle, #fff9d6 0%, #ffe066 65%, #8b8ce0 100%);
  box-shadow: 0 0 42px rgba(255, 235, 130, 0.78);
}

/* Hot-Air Balloons */
.hot-balloon {
  position: fixed;
  z-index: 4;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 10px 14px rgba(55, 65, 95, 0.18));
  transition: transform 0.25s ease;
}

.hot-balloon:hover {
  transform: scale(1.1);
}

.balloon-1 {
  top: 76px;
  left: 24%;
  width: clamp(68px, 6.8vw, 94px);
  animation: float-balloon-1 14s ease-in-out infinite;
}

.balloon-2 {
  top: 84px;
  right: 22%;
  width: clamp(60px, 6vw, 84px);
  animation: float-balloon-2 17s ease-in-out infinite;
}

.hot-balloon.soar {
  animation: balloon-hop 0.9s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes float-balloon-1 {
  0%, 100% { transform: translate(0, 0) rotate(-3deg); }
  50% { transform: translate(26px, -18px) rotate(4deg); }
}

@keyframes float-balloon-2 {
  0%, 100% { transform: translate(0, 0) rotate(3deg); }
  50% { transform: translate(-28px, -14px) rotate(-4deg); }
}

@keyframes balloon-hop {
  0% { transform: scale(1) translateY(0); }
  40% { transform: scale(1.22) translateY(-48px) rotate(8deg); }
  100% { transform: scale(1) translateY(0); }
}

/* Scrolling Layered Cartoon Hills */
.landscape {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 52vh;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.hills-back {
  position: absolute;
  bottom: 24vh;
  left: 0;
  width: 200%;
  height: 22vh;
  background-repeat: repeat-x;
  background-size: 50% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 220' preserveAspectRatio='none'%3E%3Cpath d='M0 220 V120 Q150 25 320 110 T650 95 T960 118 T1200 120 V220 Z' fill='%2389d97c'/%3E%3C/svg%3E");
  animation: scroll-left 36s linear infinite;
  transition: filter 1s ease;
}

.hills-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 36vh;
  background-repeat: repeat-x;
  background-size: 50% 100%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 280' preserveAspectRatio='none'%3E%3Cpath d='M0 280 V85 Q200 18 420 82 T860 72 T1200 85 V280 Z' fill='%236cc55a'/%3E%3Ccircle cx='140' cy='110' r='8' fill='%23ffe66d'/%3E%3Ccircle cx='490' cy='96' r='8' fill='%23ff85b3'/%3E%3Ccircle cx='780' cy='116' r='7' fill='%23ffffff'/%3E%3Ccircle cx='1060' cy='98' r='8' fill='%23ffe66d'/%3E%3C/svg%3E");
  animation: scroll-left 20s linear infinite;
  transition: filter 1s ease;
}

body.turbo .hills-back { animation-duration: 12s; }
body.turbo .hills-front { animation-duration: 6.5s; }
body.night-theme .hills-back,
body.night-theme .hills-front {
  filter: brightness(0.55) saturate(0.8) hue-rotate(14deg);
}

@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* Interactive Windmill */
.windmill-btn {
  position: fixed;
  right: 5%;
  bottom: 36vh;
  z-index: 4;
  width: clamp(82px, 8.5vw, 118px);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  filter: drop-shadow(0 8px 12px rgba(40, 60, 40, 0.2));
  transition: transform 0.2s ease;
}

.windmill-btn:hover {
  transform: scale(1.08);
}

.windmill-blades {
  transform-origin: 70px 68px;
  animation: spin-blades 7s linear infinite;
}

.windmill-btn.fast .windmill-blades {
  animation-duration: 0.75s;
}

@keyframes spin-blades {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Top Controls Bar */
.top-bar {
  position: fixed;
  top: 12px;
  left: 16px;
  right: 16px;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  pointer-events: none;
}

.top-bar > * {
  pointer-events: auto;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 253, 247, 0.94);
  padding: 9px 18px;
  border-radius: 999px;
  border: 3px solid #ffd43b;
  box-shadow: 0 5px 0 rgba(217, 159, 34, 0.38), 0 10px 20px rgba(74, 53, 37, 0.14);
  font-size: clamp(16px, 1.6vw, 20px);
  font-weight: 900;
  color: #5c3b1e;
  text-decoration: none;
  transition: transform 0.18s ease;
}

.brand-pill:hover {
  transform: scale(1.05);
}

.mode-pills {
  display: flex;
  align-items: center;
  gap: 10px;
}

.pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 3px solid #ffffff;
  font-family: var(--font-rounded);
  font-size: clamp(16px, 1.5vw, 19px);
  font-weight: 900;
  cursor: pointer;
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.pill-btn:hover { transform: translateY(-2px) scale(1.05); }
.pill-btn:active { transform: translateY(3px) scale(0.96); }

.pill-whistle {
  background: linear-gradient(180deg, #ff7b7b 0%, #ee4242 100%);
  color: #ffffff;
  box-shadow: 0 5px 0 #b82525, 0 10px 20px rgba(238, 66, 66, 0.35);
}

.pill-song {
  background: linear-gradient(180deg, #ffdf6b 0%, #ffb703 100%);
  color: #5c3100;
  box-shadow: 0 5px 0 #cc8500, 0 10px 20px rgba(255, 183, 3, 0.35);
}

.pill-night {
  background: linear-gradient(180deg, #8b8ce0 0%, #5c5ec4 100%);
  color: #ffffff;
  box-shadow: 0 5px 0 #3c3e91, 0 10px 20px rgba(92, 94, 196, 0.35);
}

body.night-theme .pill-night {
  background: linear-gradient(180deg, #ffe066 0%, #ffa94d 100%);
  color: #5c3100;
  box-shadow: 0 5px 0 #c97718;
}

.util-pills {
  display: flex;
  gap: 8px;
}

.icon-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: rgba(255, 253, 247, 0.94);
  box-shadow: 0 4px 0 rgba(120, 145, 165, 0.28);
  font-size: 20px;
  cursor: pointer;
  display: grid;
  place-items: center;
}

/* --- Animated Train Stage --- */
.train-stage {
  position: fixed;
  left: 0;
  right: 0;
  bottom: clamp(138px, 21vh, 175px);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  pointer-events: none;
}

.train-wrap {
  width: 100%;
  max-width: 1380px;
  padding: 0 clamp(14px, 2.5vw, 38px);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 1.1vw, 15px);
  pointer-events: none;
  transform: translateY(10px);
}

/* Individual Train Carriage (Locomotive + 5 Wagons) */
.carriage {
  position: relative;
  flex: 1 1 0;
  max-width: 215px;
  min-width: 115px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  pointer-events: auto;
  outline: none;
  animation: chug-bob 0.85s ease-in-out infinite;
  animation-delay: var(--chug-delay, 0s);
  transition: transform 0.2s ease;
}

body.turbo .carriage {
  animation-duration: 0.36s;
}

.carriage:hover {
  z-index: 14;
}

.carriage:hover .carriage-body {
  transform: scale(1.06) translateY(-6px);
}

/* Coupling bar linking wagons */
.carriage:not(:last-child)::after {
  content: '';
  position: absolute;
  right: calc(-1 * clamp(10px, 1.3vw, 18px));
  bottom: 32px;
  width: clamp(12px, 1.4vw, 20px);
  height: 10px;
  background: #5c4033;
  border-radius: 5px;
  border: 2px solid #ffd43b;
  z-index: -1;
}

/* Locomotive Chimney & Animated Steam Puffs */
.chimney {
  position: absolute;
  top: -36px;
  left: 14px;
  width: 34px;
  height: 44px;
  background: linear-gradient(90deg, #d93838 0%, #ff5c5c 50%, #c92a2a 100%);
  border-radius: 8px 8px 4px 4px;
  border: 3.5px solid #ffffff;
  z-index: 1;
}

.chimney::before {
  content: '';
  position: absolute;
  top: -8px;
  left: -7px;
  right: -7px;
  height: 14px;
  background: #ffd43b;
  border-radius: 999px;
  border: 3px solid #ffffff;
}

.steam-puff {
  position: absolute;
  top: -48px;
  left: 18px;
  font-size: 24px;
  pointer-events: none;
  animation: puff-rise 1.9s ease-out forwards;
  z-index: 16;
}

@keyframes puff-rise {
  0% { transform: translate(0, 0) scale(0.4); opacity: 0.95; }
  40% { transform: translate(24px, -46px) scale(1.1); opacity: 0.85; }
  100% { transform: translate(80px, -110px) scale(1.65); opacity: 0; }
}

/* Locomotive Headlight Beam (lights up magically at Night!) */
.headlight {
  position: absolute;
  left: -14px;
  bottom: 42px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff3bf;
  border: 3.5px solid #ffd43b;
  box-shadow: 0 0 12px rgba(255, 224, 102, 0.7);
  z-index: 6;
}

.headlight-beam {
  position: absolute;
  right: 100%;
  bottom: 8px;
  width: 220px;
  height: 110px;
  background: linear-gradient(90deg, rgba(255, 245, 160, 0) 0%, rgba(255, 245, 160, 0.58) 100%);
  clip-path: polygon(0 0, 100% 36%, 100% 64%, 0 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease;
}

body.night-theme .headlight-beam {
  opacity: 1;
}

/* Carriage Body Frame */
.carriage-body {
  position: relative;
  width: 100%;
  padding: 8px 8px 12px;
  border-radius: 26px 26px 18px 18px;
  background: var(--wagon-bg, #ff6b6b);
  border: 4.5px solid #ffffff;
  box-shadow: 0 8px 0 var(--wagon-ledge, #c93838), 0 16px 28px rgba(45, 35, 25, 0.22);
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animal-window {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 20px;
  overflow: hidden;
  border: 4px solid #fffdf5;
  background: #fffdf5;
  box-shadow: inset 0 4px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.animal-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.wagon-label {
  margin-top: 6px;
  font-size: clamp(14px, 1.45vw, 19px);
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
  letter-spacing: 0.2px;
}

/* Spinning Toy Wheels */
.wheels-row {
  width: 82%;
  display: flex;
  justify-content: space-between;
  margin-top: -10px;
  z-index: 4;
}

.wheel {
  width: clamp(32px, 3.4vw, 44px);
  height: clamp(32px, 3.4vw, 44px);
  border-radius: 50%;
  background: radial-gradient(circle, #ffe066 0 28%, #543b24 29% 54%, #ff5c5c 55% 74%, #3d2a1b 75% 100%);
  border: 3.5px solid #ffffff;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.25);
  position: relative;
  animation: spin-wheel 1.4s linear infinite;
}

.wheel::before,
.wheel::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 50%;
  background: #ffe066;
  border-radius: 2px;
}
.wheel::before { width: 72%; height: 3px; transform: translate(-50%, -50%); }
.wheel::after { width: 3px; height: 72%; transform: translate(-50%, -50%); }

body.turbo .wheel {
  animation-duration: 0.42s;
}

@keyframes spin-wheel {
  from { transform: rotate(0deg); }
  to { transform: rotate(-360deg); }
}

@keyframes chug-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

/* Speech Bubble */
.train-bubble {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%) scale(0);
  z-index: 25;
  background: #ffffff;
  color: #e64980;
  font-size: clamp(16px, 1.7vw, 22px);
  font-weight: 900;
  padding: 6px 16px;
  border-radius: 999px;
  border: 3.5px solid #ffd43b;
  box-shadow: 0 8px 18px rgba(45, 35, 25, 0.22);
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
}

.train-bubble.show {
  animation: bubble-pop 1.45s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

@keyframes bubble-pop {
  0% { transform: translateX(-50%) translateY(18px) scale(0.2); opacity: 0; }
  20% { transform: translateX(-50%) translateY(-8px) scale(1.14); opacity: 1; }
  78% { transform: translateX(-50%) translateY(-10px) scale(1); opacity: 1; }
  100% { transform: translateX(-50%) translateY(-26px) scale(0.65); opacity: 0; }
}

/* --- Unique Signature Animal Animations! --- */
.carriage.act-roar .animal-window { animation: act-roar 0.9s ease; }
@keyframes act-roar {
  0%, 100% { transform: scale(1); }
  25% { transform: scale(1.22) rotate(-6deg); }
  55% { transform: scale(1.26) rotate(6deg); }
}

.carriage.act-stretch .animal-window { animation: act-stretch 1.05s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes act-stretch {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  35% { transform: translateY(-48px) scale(0.95, 1.24); }
  65% { transform: translateY(-38px) scale(1.05, 1.15) rotate(5deg); }
}

.carriage.act-flip .animal-window { animation: act-flip 0.95s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes act-flip {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  45% { transform: translateY(-42px) rotate(190deg) scale(1.12); }
  100% { transform: translateY(0) rotate(360deg) scale(1); }
}

.carriage.act-fly .animal-window { animation: act-fly 1.15s ease-in-out; }
@keyframes act-fly {
  0% { transform: translate(0, 0) rotate(0deg); }
  25% { transform: translate(-22px, -54px) rotate(-14deg) scale(1.12); }
  55% { transform: translate(22px, -62px) rotate(14deg) scale(1.14); }
  80% { transform: translate(0, -24px) rotate(-6deg); }
  100% { transform: translate(0, 0) rotate(0deg); }
}

.carriage.act-tumble .animal-window { animation: act-tumble 0.95s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes act-tumble {
  0% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-30px) rotate(-360deg) scale(1.1); }
  100% { transform: translateY(0) rotate(-360deg); }
}

.carriage.act-leap .animal-window { animation: act-leap 0.9s cubic-bezier(0.34, 1.56, 0.64, 1); }
@keyframes act-leap {
  0%, 100% { transform: translateY(0) scale(1); }
  20% { transform: translateY(6px) scale(1.14, 0.86); }
  50% { transform: translateY(-50px) scale(0.96, 1.14) rotate(8deg); }
  75% { transform: translateY(-18px) rotate(-6deg); }
}

/* Quick Xylophone Rhythm Jump */
.carriage.note-hop .carriage-body {
  animation: note-hop 0.34s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes note-hop {
  0%, 100% { transform: translateY(0); }
  45% { transform: translateY(-20px) scale(1.06); }
}

.sing-btn {
  position: absolute;
  top: -12px;
  right: -8px;
  z-index: 18;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 3px solid #ffffff;
  background: linear-gradient(180deg, #ffdf6b 0%, #ff922b 100%);
  color: #ffffff;
  font-size: 19px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 4px 0 #d97316, 0 8px 14px rgba(0, 0, 0, 0.22);
  transition: transform 0.16s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.sing-btn:hover { transform: scale(1.18) rotate(-10deg); }

.carriage.singing .carriage-body {
  box-shadow: 0 8px 0 var(--wagon-ledge), 0 0 0 8px rgba(255, 224, 102, 0.85), 0 20px 40px rgba(255, 107, 157, 0.45);
}

.carriage.singing .sing-btn {
  background: linear-gradient(180deg, #ff85b3 0%, #ff4f8b 100%);
  animation: sing-wiggle 0.48s ease-in-out infinite alternate;
}

@keyframes sing-wiggle {
  from { transform: scale(1) rotate(-10deg); }
  to { transform: scale(1.22) rotate(10deg); }
}

/* Moving Railroad Track */
.railroad {
  width: 100%;
  height: 22px;
  position: relative;
  overflow: hidden;
  margin-top: 2px;
}

.rail-line {
  position: absolute;
  top: 4px;
  left: 0;
  right: 0;
  height: 7px;
  background: linear-gradient(180deg, #d6dce5 0%, #8a95a5 100%);
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

.rail-ties {
  position: absolute;
  top: 10px;
  left: 0;
  width: 200%;
  height: 12px;
  background: repeating-linear-gradient(90deg, #8c5a32 0 22px, transparent 22px 58px);
  animation: scroll-left 3.8s linear infinite;
}

body.turbo .rail-ties {
  animation-duration: 1.1s;
}

/* --- Giant 7-Key Rainbow Xylophone Dock --- */
.xylo-dock {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 12px;
  z-index: 16;
  display: flex;
  justify-content: center;
  padding: 0 18px;
}

.xylo-keys {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: clamp(8px, 1.1vw, 15px);
  width: 100%;
  max-width: 960px;
  background: rgba(255, 250, 236, 0.9);
  padding: 12px 18px 14px;
  border-radius: 30px;
  border: 4px solid #ffffff;
  box-shadow: 0 10px 0 rgba(139, 98, 56, 0.35), 0 18px 34px rgba(45, 35, 25, 0.22);
}

.xylo-key {
  position: relative;
  flex: 1 1 0;
  height: var(--key-h, 88px);
  border-radius: 20px;
  border: 4px solid #ffffff;
  background: var(--key-bg);
  box-shadow: 0 7px 0 var(--key-ledge), 0 8px 16px rgba(0, 0, 0, 0.16);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 9px 4px;
  cursor: pointer;
  color: #ffffff;
  font-family: var(--font-rounded);
  font-size: clamp(16px, 1.6vw, 22px);
  font-weight: 900;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.12s ease;
}

.xylo-screw {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.85);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, 0.18);
}

.xylo-key:hover {
  transform: translateY(-4px) scale(1.04);
}

.xylo-key.pressed {
  transform: translateY(5px) scale(0.95);
  filter: brightness(1.18);
  box-shadow: 0 2px 0 var(--key-ledge), 0 0 24px var(--key-glow);
}

/* Splash Screen */
.splash-screen {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: radial-gradient(circle at 50% 40%, rgba(255, 248, 220, 0.94) 0%, rgba(135, 214, 255, 0.93) 100%);
  backdrop-filter: blur(10px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  cursor: pointer;
  transition: opacity 0.42s ease, transform 0.42s ease;
}

.splash-screen.fade-out {
  opacity: 0;
  transform: scale(1.06);
  pointer-events: none;
}

.splash-card {
  background: #fffdf8;
  border: 6px solid #ffffff;
  border-radius: 44px;
  padding: clamp(24px, 4vw, 44px) clamp(28px, 5vw, 58px);
  text-align: center;
  box-shadow: 0 18px 0 #e5d5bc, 0 32px 70px rgba(74, 53, 37, 0.22);
  max-width: 580px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.splash-icon-wrap {
  position: relative;
  width: clamp(175px, 26vh, 225px);
  height: clamp(175px, 26vh, 225px);
  animation: chug-bob 1.4s ease-in-out infinite;
}

.splash-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 36px;
  border: 6px solid #ffd43b;
  box-shadow: 0 12px 26px rgba(255, 183, 3, 0.35);
}

.splash-tag {
  position: absolute;
  top: -12px;
  right: -20px;
  background: #ff5a5f;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  padding: 7px 16px;
  border-radius: 999px;
  border: 4px solid #ffffff;
  transform: rotate(9deg);
}

.splash-title {
  margin: 4px 0 0;
  font-size: clamp(34px, 4.8vw, 52px);
  font-weight: 900;
  color: #543214;
}

.splash-subtitle {
  margin: 0 0 8px;
  font-size: clamp(18px, 2vw, 23px);
  font-weight: 700;
  color: #7c5c40;
}

.start-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 18px 38px;
  border-radius: 999px;
  border: 5px solid #ffffff;
  background: linear-gradient(180deg, #ff7b7b 0%, #ee4242 100%);
  color: #ffffff;
  font-family: var(--font-rounded);
  font-size: clamp(21px, 2.4vw, 28px);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 9px 0 #b82525, 0 18px 34px rgba(238, 66, 66, 0.4);
  animation: start-pulse 1.7s ease-in-out infinite;
}

@keyframes start-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

.fx-canvas {
  position: fixed;
  inset: 0;
  z-index: 35;
  pointer-events: none;
}

.hidden { display: none !important; }
