:root {
  --sky-top: #7ec8ff;
  --sky-bot: #c8e9ff;
  --sea: #1f8fc7;
  --sea-deep: #0d5f8c;
  --foam: #f3fcff;
  --sand: #efd3a0;
  --sand-deep: #d9b46f;
  --sun: #ffcf4a;
  --ink: #2a1d0e;
  --brand: #fff8e7;
  --umbrella: #e85d4c;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  background: var(--sand-deep);
  color: var(--brand);
  font-family: "Press Start 2P", monospace;
  image-rendering: pixelated;
  overflow: hidden;
}

.stage {
  position: relative;
  min-height: 100dvh;
  display: grid;
  place-items: end center;
  overflow: hidden;
  background: linear-gradient(
    180deg,
    var(--sky-top) 0%,
    var(--sky-bot) 34%,
    var(--sea) 34%,
    var(--sea-deep) 58%,
    var(--sand) 58%,
    var(--sand-deep) 100%
  );
}

.sky {
  position: absolute;
  inset: 0 0 66% 0;
  pointer-events: none;
}

.sun {
  position: absolute;
  top: 10%;
  left: 12%;
  width: 56px;
  height: 56px;
  background: var(--sun);
  box-shadow:
    0 0 0 8px #ffe79a,
    0 0 0 16px rgba(255, 207, 74, 0.28);
  animation: sun-pulse 3.4s ease-in-out infinite;
}

.cloud {
  position: absolute;
  height: 20px;
  background: #fff;
  box-shadow:
    14px 0 0 #fff,
    28px 0 0 #fff,
    8px -10px 0 #fff,
    22px -10px 0 #fff;
  opacity: 0.9;
  animation: cloud-drift 32s linear infinite;
}
.c1 { top: 18%; left: -12%; width: 22px; animation-duration: 36s; }
.c2 { top: 28%; left: -22%; width: 22px; animation-duration: 48s; animation-delay: -14s; opacity: 0.75; }
.c3 { top: 14%; left: -30%; width: 18px; animation-duration: 42s; animation-delay: -22s; opacity: 0.65; }

.horizon {
  position: absolute;
  left: 0;
  right: 0;
  top: 34%;
  height: 8px;
  background: rgba(255, 248, 231, 0.35);
  pointer-events: none;
}

.ocean {
  position: absolute;
  left: 0;
  right: 0;
  top: 34%;
  height: 24%;
  overflow: hidden;
  pointer-events: none;
}

.wave {
  position: absolute;
  left: -40%;
  width: 180%;
  height: 42px;
  border-top: 10px solid var(--foam);
  background-image: repeating-linear-gradient(
    90deg,
    var(--foam) 0 10px,
    transparent 10px 20px
  );
  background-size: 40px 10px;
  opacity: 0.55;
  animation: wave-scroll 7.5s linear infinite;
}
.w1 { bottom: 48%; background-color: #3aa6d6; animation-duration: 9s; }
.w2 { bottom: 22%; background-color: #1f8fc7; animation-duration: 6.8s; animation-direction: reverse; }
.w3 { bottom: 0; height: 54px; background-color: var(--sea-deep); opacity: 0.8; animation-duration: 11s; }

.pixel-surfer {
  position: absolute;
  left: 42%;
  bottom: 28%;
  width: 48px;
  height: 40px;
  animation: ride 2.6s ease-in-out infinite;
  z-index: 2;
}
.pixel-surfer .board {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 8px;
  background: #ff8a3d;
  box-shadow: inset 0 -2px 0 #c45a12;
}
.pixel-surfer .body {
  position: absolute;
  left: 18px;
  bottom: 8px;
  width: 12px;
  height: 16px;
  background: #2f6fed;
}
.pixel-surfer .head {
  position: absolute;
  left: 18px;
  bottom: 24px;
  width: 12px;
  height: 12px;
  background: #ffcc99;
  box-shadow: 0 -4px 0 #1b1b1b;
}
.spray {
  position: absolute;
  bottom: 2px;
  width: 4px;
  height: 4px;
  background: var(--foam);
  animation: spray 2.6s ease-in-out infinite;
}
.s1 { left: -6px; }
.s2 { left: -12px; bottom: 8px; animation-delay: 0.2s; }
.s3 { left: 50px; animation-delay: 0.35s; }

.beach {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42%;
  pointer-events: none;
}

.dune {
  position: absolute;
  left: -8%;
  bottom: 18%;
  width: 46%;
  height: 70px;
  background: var(--sand);
  box-shadow: 28px 18px 0 var(--sand-deep);
  border-radius: 50% 50% 0 0 / 70% 70% 0 0;
  opacity: 0.85;
}

.umbrella {
  position: absolute;
  right: 16%;
  bottom: 26%;
  width: 8px;
  height: 54px;
  background: #6b4a2a;
  animation: shade-sway 4.8s ease-in-out infinite;
  transform-origin: bottom center;
}
.umbrella::before {
  content: "";
  position: absolute;
  left: -28px;
  top: -8px;
  width: 64px;
  height: 20px;
  background: var(--umbrella);
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  box-shadow: inset 0 -4px 0 #b53d30;
}

.towel {
  position: absolute;
  right: 12%;
  bottom: 18%;
  width: 56px;
  height: 28px;
  background: #4ec4ff;
  box-shadow:
    inset 0 8px 0 #fff8e7,
    inset 0 16px 0 #4ec4ff,
    4px 4px 0 rgba(42, 29, 14, 0.2);
}

.brand {
  position: relative;
  z-index: 3;
  width: min(920px, 92vw);
  padding: 0 1rem 10vh;
  text-align: center;
  text-shadow: 3px 3px 0 rgba(42, 29, 14, 0.55);
}

.brand h1 {
  font-size: clamp(1.05rem, 3.5vw, 2.3rem);
  line-height: 1.35;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin-bottom: 0.85rem;
  animation: title-glow 2.8s ease-in-out infinite;
}

.brand p {
  font-size: clamp(0.55rem, 1.5vw, 0.75rem);
  color: #fff1d2;
  line-height: 1.7;
}

@keyframes ride {
  0%, 100% { transform: translate(0, 0) rotate(-4deg); }
  50% { transform: translate(18px, -14px) rotate(5deg); }
}

@keyframes spray {
  0%, 100% { opacity: 0.2; transform: translateY(0); }
  50% { opacity: 1; transform: translateY(-10px); }
}

@keyframes wave-scroll {
  from { background-position: 0 0; transform: translateX(0); }
  to { background-position: 80px 0; transform: translateX(3%); }
}

@keyframes cloud-drift {
  from { transform: translateX(0); }
  to { transform: translateX(140vw); }
}

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

@keyframes shade-sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(4deg); }
}

@keyframes title-glow {
  0%, 100% { filter: drop-shadow(0 0 0 transparent); }
  50% { filter: drop-shadow(0 0 10px rgba(255, 248, 231, 0.35)); }
}

@media (max-width: 640px) {
  .umbrella { right: 10%; transform: scale(0.9); }
  .brand { padding-bottom: 14vh; }
}
