/* css/style.css */
@font-face {
  font-family: "Titan One";
  src: url("./titanone-YVHVKVFC.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Press Start 2P";
  src: url("./pressstart2p-3MRUXUAM.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
:root {
  --sky-top: #4fb9ff;
  --sky-mid: #93dcff;
  --sky-low: #ffd0ee;
  --ink: #3b1a6b;
  --ink-2: #6a2fb5;
  --pink: #ff6fc2;
  --pink-2: #ff9ad9;
  --yellow: #ffd93d;
  --mint: #7fe3c1;
  --white: #ffffff;
  --shadow-drop: 0 10px 0 var(--ink);
  --radius: 28px;
  --frame: 6px;
}
* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  margin: 0;
}
body {
  font-family:
    "Titan One",
    "Arial Rounded MT Bold",
    "Helvetica Neue",
    Arial,
    sans-serif;
  color: var(--ink);
  background: var(--sky-top);
  overflow-x: hidden;
  min-height: 100vh;
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
img {
  display: block;
  user-select: none;
  -webkit-user-drag: none;
}
.hidden {
  display: none !important;
}
.pixel {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  line-height: 1.8;
  letter-spacing: 0.5px;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--ink);
  text-transform: uppercase;
}
.sky {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(
      180deg,
      var(--sky-top) 0%,
      var(--sky-mid) 55%,
      var(--sky-low) 100%);
  overflow: hidden;
}
.sun {
  position: absolute;
  top: 5vh;
  right: 8vw;
  width: 150px;
  height: 150px;
  pointer-events: auto;
  cursor: pointer;
  transform: translateZ(0);
}
.sun-core {
  position: absolute;
  inset: 28px;
  border-radius: 50%;
  background:
    radial-gradient(
      circle at 40% 35%,
      #fff6a8,
      var(--yellow) 60%,
      #ffb347);
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.45), 0 0 40px 10px rgba(255, 217, 61, 0.55);
}
.sun-rays {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    repeating-conic-gradient(
      from 0deg,
      rgba(255, 240, 150, 0.85) 0deg 12deg,
      rgba(255, 240, 150, 0) 12deg 30deg);
  -webkit-mask:
    radial-gradient(
      circle,
      transparent 36%,
      #000 37%);
  mask:
    radial-gradient(
      circle,
      transparent 36%,
      #000 37%);
  animation: sun-spin 40s linear infinite;
}
.sun.spinning .sun-rays {
  animation: sun-spin 0.9s linear infinite;
}
.sun.spinning .sun-core {
  animation: wobble 0.5s ease-in-out 2;
}
@keyframes sun-spin {
  to {
    transform: rotate(360deg);
  }
}
.clouds,
.twinkles {
  position: absolute;
  inset: 0;
}
.cloud {
  position: absolute;
  width: var(--w, 180px);
  left: -30vw;
  top: var(--y, 20%);
  opacity: 0.95;
  pointer-events: auto;
  cursor: pointer;
  animation: cloud-drift var(--dur, 60s) linear infinite;
  animation-delay: var(--delay, 0s);
  will-change: transform;
}
.cloud img {
  width: 100%;
  height: auto;
}
.cloud.bounce {
  animation-play-state: running;
}
.cloud.bounce img {
  animation: cloud-bounce 0.6s ease-out;
}
@keyframes cloud-drift {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(160vw);
  }
}
@keyframes cloud-bounce {
  0% {
    transform: scale(1);
  }
  30% {
    transform: scale(1.25, 0.8);
  }
  60% {
    transform: scale(0.9, 1.15);
  }
  100% {
    transform: scale(1);
  }
}
.twinkle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: var(--white);
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: twinkle var(--dur, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  opacity: 0;
}
@keyframes twinkle {
  0%, 100% {
    opacity: 0;
    transform: scale(0.4) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.2) rotate(45deg);
  }
}
.hills {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 42vh;
  z-index: 1;
  pointer-events: none;
}
.hills-layer {
  position: absolute;
  left: -4vw;
  bottom: 0;
  display: flex;
  align-items: flex-end;
  will-change: transform;
}
.hills-layer img {
  height: 100%;
  width: auto;
  flex: none;
}
.hills-layer img:nth-child(even) {
  transform: scaleX(-1);
}
.hills-layer.back {
  height: 34vh;
  bottom: 9vh;
  opacity: 0.9;
  transform: translateX(calc(var(--mx, 0) * -12px));
}
.hills-layer.front {
  height: 26vh;
  transform: translateX(calc(var(--mx, 0) * -30px));
}
.pickups {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.pickup {
  position: absolute;
  left: 0;
  top: 0;
  width: var(--size, 72px);
  pointer-events: auto;
  cursor: pointer;
  transform: translate(var(--x, 0px), var(--y, 0px));
  transition: transform var(--drift, 14s) ease-in-out;
  filter: drop-shadow(0 6px 0 rgba(59, 26, 107, 0.25));
}
.pickup img {
  width: 100%;
  height: auto;
  animation: bob var(--bob, 3s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transition: transform 0.15s ease;
}
.pickup:hover img {
  transform: scale(1.12) rotate(-6deg);
}
.pickup.popped {
  pointer-events: none;
}
.pickup.popped img {
  animation: pop-out 0.25s ease-in forwards;
}
.pickup.spawn img {
  animation: pop-in 0.5s cubic-bezier(.3, 1.6, .5, 1) forwards, bob var(--bob, 3s) ease-in-out 0.5s infinite;
}
@keyframes bob {
  0%, 100% {
    transform: translateY(0) rotate(-3deg);
  }
  50% {
    transform: translateY(-14px) rotate(3deg);
  }
}
@keyframes pop-out {
  to {
    transform: scale(0);
    opacity: 0;
  }
}
@keyframes pop-in {
  from {
    transform: scale(0);
  }
  to {
    transform: scale(1);
  }
}
.page {
  position: relative;
  z-index: 3;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(16px, 4vh, 40px) 20px 30vh;
  gap: clamp(14px, 3vh, 34px);
}
.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}
.logo {
  background: none;
  border: 0;
  padding: 0;
  width: min(72vw, 440px);
  filter: drop-shadow(0 12px 0 rgba(59, 26, 107, 0.28));
  animation: logo-in 0.9s cubic-bezier(.25, 1.5, .45, 1) both, logo-float 4s ease-in-out 0.9s infinite;
  transform-origin: 50% 60%;
}
.logo img {
  width: 100%;
  height: auto;
}
.logo:hover {
  animation-play-state: paused, paused;
}
.logo.wobble {
  animation: jelly 0.7s ease-out both;
}
.logo.spin {
  animation: spin 0.8s cubic-bezier(.5, 0, .3, 1) both;
}
@keyframes logo-in {
  0% {
    transform: translateY(-120vh) scale(0.6);
  }
  70% {
    transform: translateY(20px) scale(1.06, 0.92);
  }
  100% {
    transform: none;
  }
}
@keyframes logo-float {
  0%, 100% {
    transform: translateY(0) rotate(-1deg);
  }
  50% {
    transform: translateY(-10px) rotate(1deg);
  }
}
@keyframes jelly {
  0% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.18, 0.82);
  }
  40% {
    transform: scale(0.88, 1.14);
  }
  60% {
    transform: scale(1.08, 0.94);
  }
  80% {
    transform: scale(0.97, 1.03);
  }
  100% {
    transform: scale(1);
  }
}
@keyframes spin {
  to {
    transform: rotate(360deg) scale(1);
  }
}
@keyframes wobble {
  0%, 100% {
    transform: rotate(0);
  }
  25% {
    transform: rotate(-8deg);
  }
  75% {
    transform: rotate(8deg);
  }
}
.tagline {
  margin: 0;
  font-size: clamp(11px, 2.2vw, 16px);
  animation: fade-up 0.6s 0.5s ease both;
}
.tagline .arrow {
  display: inline-block;
  animation: blink 1s steps(1) infinite;
}
@keyframes blink {
  50% {
    opacity: 0;
  }
}
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(16px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.games {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: clamp(20px, 4vw, 48px);
  width: 100%;
  max-width: 1100px;
}
.card {
  --rx: 0deg;
  --ry: 0deg;
  --px: 0;
  --py: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: min(100%, 480px);
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
  text-decoration: none;
  animation: card-in 0.8s cubic-bezier(.25, 1.4, .45, 1) both;
  perspective: 1000px;
}
.card.soccer {
  animation-delay: 0.25s;
}
.card.taxi {
  animation-delay: 0.4s;
}
@keyframes card-in {
  from {
    opacity: 0;
    transform: translateY(60px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.card-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: var(--radius);
  border: var(--frame) solid var(--ink);
  background: var(--ink);
  box-shadow: inset 0 0 0 5px var(--white), var(--shadow-drop);
  overflow: hidden;
  transform: rotateX(var(--rx)) rotateY(var(--ry));
  transform-style: preserve-3d;
  transition: transform 0.25s ease, box-shadow 0.2s ease;
  will-change: transform;
}
.card-art {
  position: absolute;
  inset: 5px;
  border-radius: calc(var(--radius) - var(--frame) - 2px);
  overflow: hidden;
  background: var(--sky-mid);
}
.card-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: translate(calc(var(--px) * -16px), calc(var(--py) * -12px)) scale(1.08);
  transition: transform 0.25s ease, filter 0.3s ease;
}
.card-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.cakes .cake {
  position: absolute;
  width: 16%;
  filter: drop-shadow(0 6px 0 rgba(59, 26, 107, 0.35));
  opacity: 0;
  transform: translate(calc(var(--px) * 34px), calc(var(--py) * 26px)) scale(0.6);
  transition: transform 0.3s cubic-bezier(.3, 1.5, .5, 1), opacity 0.25s ease;
}
.cakes .c1 {
  left: 6%;
  top: 8%;
}
.cakes .c2 {
  right: 8%;
  top: 18%;
  --spin: -14deg;
}
.cakes .c3 {
  left: 22%;
  bottom: 6%;
  --spin: 10deg;
}
.cakes .spark {
  position: absolute;
  color: var(--white);
  font-size: 28px;
  text-shadow: 0 0 10px #fff, 2px 2px 0 var(--ink);
  opacity: 0;
  transform: translate(calc(var(--px) * 44px), calc(var(--py) * 36px)) scale(0);
  transition: transform 0.35s cubic-bezier(.3, 1.5, .5, 1), opacity 0.2s ease;
}
.cakes .s1 {
  left: 42%;
  top: 12%;
}
.cakes .s2 {
  right: 20%;
  bottom: 24%;
}
.cakes .s3 {
  left: 12%;
  bottom: 30%;
}
.cakes .s4 {
  right: 34%;
  top: 40%;
}
.card-shine {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      circle at calc(50% + var(--px) * 50%) calc(50% + var(--py) * 50%),
      rgba(255, 255, 255, 0.35),
      rgba(255, 255, 255, 0) 45%);
  opacity: 0;
  transition: opacity 0.25s ease;
}
.card-play {
  position: absolute;
  left: 50%;
  bottom: 12%;
  transform: translate(-50%, 30px) scale(0.8);
  padding: 12px 22px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--ink);
  text-shadow: none;
  border: 4px solid var(--ink);
  box-shadow: 0 6px 0 var(--ink), inset 0 0 0 3px var(--white);
  font-size: 14px;
  opacity: 0;
  transition: transform 0.3s cubic-bezier(.3, 1.6, .5, 1), opacity 0.2s ease;
  white-space: nowrap;
}
.card-title {
  text-align: center;
}
.card-title h2 {
  margin: 0;
  font-size: clamp(24px, 4.2vw, 36px);
  color: var(--white);
  -webkit-text-stroke: 0;
  text-shadow:
    3px 3px 0 var(--ink),
    -2px -2px 0 var(--ink),
    2px -2px 0 var(--ink),
    -2px 2px 0 var(--ink),
    0 6px 0 var(--ink-2);
  letter-spacing: 0.5px;
  transition: transform 0.2s ease;
}
.card-title .sub {
  margin: 4px 0 0;
  font-size: 10px;
  opacity: 0.95;
}
@media (hover: hover) {
  .card:hover .card-frame,
  .card:focus-visible .card-frame {
    box-shadow:
      inset 0 0 0 5px var(--white),
      0 18px 0 var(--ink),
      0 30px 40px rgba(59, 26, 107, 0.25);
  }
  .card.soccer:hover .card-frame {
    transform: translateY(-8px) rotateX(var(--rx)) rotateY(var(--ry));
  }
  .card:hover .card-shine {
    opacity: 1;
  }
  .card:hover .cakes .cake {
    opacity: 1;
    transform: translate(calc(var(--px) * 34px), calc(var(--py) * 26px)) scale(1) rotate(var(--spin, 0deg));
  }
  .card:hover .cakes .spark {
    opacity: 1;
    transform: translate(calc(var(--px) * 44px), calc(var(--py) * 36px)) scale(1);
  }
  .card:hover .cakes .spark {
    animation: spark-pulse 0.9s ease-in-out infinite alternate;
  }
  .card:hover .card-play {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
  }
  .card:hover .card-title h2 {
    transform: scale(1.05);
  }
  .card.taxi:hover .card-frame {
    transform: translateY(-4px) rotateX(var(--rx)) rotateY(var(--ry));
  }
}
@keyframes spark-pulse {
  from {
    scale: 0.8;
  }
  to {
    scale: 1.3;
  }
}
.card:active .card-frame {
  transform: translateY(6px) !important;
  box-shadow: inset 0 0 0 5px var(--white), 0 4px 0 var(--ink) !important;
}
.card:focus-visible {
  outline: 4px dashed var(--yellow);
  outline-offset: 8px;
  border-radius: var(--radius);
}
.foot {
  font-size: 9px;
  text-align: center;
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(59, 26, 107, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.5);
  animation: fade-up 0.6s 0.9s ease both;
}
.heart {
  background: none;
  border: 0;
  padding: 0;
  width: 18px;
  height: 18px;
  display: inline-grid;
  place-items: center;
  animation: heartbeat 1.2s ease-in-out infinite;
}
.heart svg {
  width: 16px;
  height: 16px;
  display: block;
  filter: drop-shadow(1px 1px 0 var(--ink));
}
@keyframes heartbeat {
  0%, 100% {
    transform: scale(1);
  }
  15% {
    transform: scale(1.3);
  }
  30% {
    transform: scale(1);
  }
  45% {
    transform: scale(1.2);
  }
}
.lumi {
  position: fixed;
  left: 4vw;
  bottom: -2vh;
  z-index: 4;
  width: clamp(90px, 12vw, 170px);
  background: none;
  border: 0;
  padding: 0;
  filter: drop-shadow(0 8px 0 rgba(59, 26, 107, 0.3));
  animation: lumi-up 1s 1.1s cubic-bezier(.25, 1.4, .45, 1) both;
  transform-origin: 50% 100%;
}
.lumi img {
  width: 100%;
  height: auto;
  animation: lumi-bob 3s ease-in-out 2s infinite;
  transform-origin: 50% 100%;
}
.lumi.cheer img {
  animation: jelly 0.6s ease-out both;
}
.lumi:hover img {
  animation: wobble 0.6s ease-in-out infinite;
}
@keyframes lumi-up {
  from {
    transform: translateY(110%);
  }
  to {
    transform: none;
  }
}
@keyframes lumi-bob {
  0%, 100% {
    transform: scaleY(1);
  }
  50% {
    transform: scaleY(0.97) translateY(2px);
  }
}
.ball {
  position: fixed;
  bottom: 2vh;
  left: 0;
  z-index: 4;
  width: 56px;
  height: 56px;
  background: none;
  border: 0;
  padding: 0;
  filter: drop-shadow(0 6px 0 rgba(59, 26, 107, 0.3));
  animation: ball-roll 22s linear infinite;
}
.ball svg {
  width: 100%;
  height: 100%;
  animation: ball-spin 1.4s linear infinite;
}
.ball.kicked {
  animation: none;
}
@keyframes ball-roll {
  from {
    transform: translateX(-80px);
  }
  to {
    transform: translateX(calc(100vw + 80px));
  }
}
@keyframes ball-spin {
  to {
    transform: rotate(360deg);
  }
}
.hud {
  position: fixed;
  top: 14px;
  left: 14px;
  z-index: 6;
  padding: 10px 14px;
  background: var(--ink);
  border-radius: 12px;
  border: 3px solid var(--white);
  box-shadow: 0 4px 0 var(--ink-2);
  font-size: 13px;
  color: var(--yellow);
  animation: pop-in 0.4s cubic-bezier(.3, 1.6, .5, 1) both;
}
.hud.bump {
  animation: jelly 0.4s ease-out;
}
.controls {
  position: fixed;
  top: 14px;
  right: 14px;
  z-index: 6;
  display: flex;
  gap: 8px;
}
.ctl {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: var(--white);
  border: 4px solid var(--ink);
  box-shadow: 0 5px 0 var(--ink);
  font-size: 20px;
  line-height: 1;
  transition: transform 0.1s ease, box-shadow 0.1s ease;
}
.ctl:hover {
  transform: translateY(-2px);
  box-shadow: 0 7px 0 var(--ink);
}
.ctl:active {
  transform: translateY(3px);
  box-shadow: 0 2px 0 var(--ink);
}
.ctl[aria-pressed=true] {
  background: var(--yellow);
}
.ctl.off {
  background: #ddd;
  opacity: 0.8;
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 26vh;
  z-index: 7;
  transform: translate(-50%, 20px);
  padding: 12px 18px;
  background: var(--ink);
  color: var(--white);
  border: 3px solid var(--white);
  border-radius: 14px;
  box-shadow: 0 6px 0 var(--ink-2);
  font-size: 11px;
  text-align: center;
  max-width: 90vw;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.3s cubic-bezier(.3, 1.5, .5, 1);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.crt {
  position: fixed;
  inset: 0;
  z-index: 9;
  pointer-events: none;
  background:
    repeating-linear-gradient(
      0deg,
      rgba(0, 0, 0, 0.18) 0 2px,
      transparent 2px 4px),
    radial-gradient(
      ellipse at center,
      transparent 55%,
      rgba(20, 0, 40, 0.55) 100%);
  mix-blend-mode: multiply;
  animation: crt-flicker 3s steps(2) infinite;
}
@keyframes crt-flicker {
  50% {
    opacity: 0.92;
  }
}
body.crt-on .page,
body.crt-on .lumi {
  filter: contrast(1.1) saturate(1.2);
}
.fx {
  position: fixed;
  inset: 0;
  z-index: 8;
  pointer-events: none;
  overflow: hidden;
}
.particle {
  position: absolute;
  left: 0;
  top: 0;
  will-change: transform, opacity;
}
.particle img {
  width: 100%;
  height: auto;
}
.particle.confetti {
  width: 12px;
  height: 18px;
  border-radius: 3px;
}
.particle.text {
  font-family: "Press Start 2P", monospace;
  font-size: 12px;
  color: var(--white);
  text-shadow: 2px 2px 0 var(--ink);
  white-space: nowrap;
}
@media (max-width: 720px) {
  .page {
    padding-top: 76px;
    padding-bottom: 34vh;
  }
  .logo {
    width: 66vw;
  }
  .sun {
    width: 90px;
    height: 90px;
    right: 2vw;
    top: 9vh;
  }
  .sun-core {
    inset: 16px;
  }
  .lumi {
    width: 84px;
    left: 2vw;
    z-index: 2;
  }
  .ball {
    display: none;
  }
  .games {
    gap: 26px;
  }
  .card {
    width: 100%;
  }
  .card-title h2 {
    font-size: 26px;
  }
  .hud {
    font-size: 11px;
    padding: 8px 10px;
  }
  .ctl {
    width: 40px;
    height: 40px;
    font-size: 17px;
  }
  .foot {
    font-size: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .cloud {
    left: var(--x0, 20vw);
  }
  .card-frame {
    transform: none !important;
  }
  .card-art img {
    transform: scale(1.02) !important;
  }
  .ball {
    left: 40vw;
  }
}
