/* ── Reset & Base ─────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cookie:   #C08040;
  --teal:     #4DC4B8;
  --neon:     #6ECC4A;
  --olive:    #B5B975;
  --brown:    #7B4A2D;
  --dark:     #141A0A;
  --dark2:    #1C2412;
  --text:     #F0F5E8;
  --muted:    #9EAA80;
  --radius:   18px;
  --font-game: 'Kavoon', cursive;
  --font-body: 'Montserrat', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--dark);
  color: var(--text);
  font-family: var(--font-body);
  overflow-x: hidden;
}

/* ── Floating crumbs ──────────────────────────────── */
.crumbs { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }

.crumb {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  animation: float linear infinite;
}

.c1 { width: 28px; height: 28px; background: var(--teal);   left:  8%; top: 10%; animation-duration: 18s; animation-delay:   0s; }
.c2 { width: 14px; height: 14px; background: var(--neon);   left: 22%; top: 80%; animation-duration: 22s; animation-delay:  -4s; }
.c3 { width: 40px; height: 40px; background: var(--cookie); left: 60%; top:  5%; animation-duration: 26s; animation-delay:  -8s; }
.c4 { width: 18px; height: 18px; background: var(--teal);   left: 75%; top: 55%; animation-duration: 20s; animation-delay:  -2s; }
.c5 { width: 32px; height: 32px; background: var(--olive);  left: 45%; top: 70%; animation-duration: 24s; animation-delay:  -6s; }
.c6 { width: 10px; height: 10px; background: var(--neon);   left: 88%; top: 20%; animation-duration: 16s; animation-delay:  -3s; }
.c7 { width: 22px; height: 22px; background: var(--cookie); left: 15%; top: 45%; animation-duration: 28s; animation-delay: -10s; }
.c8 { width: 36px; height: 36px; background: var(--teal);   left: 92%; top: 80%; animation-duration: 30s; animation-delay: -14s; }

@keyframes float {
  0%   { transform: translateY(0)     rotate(0deg);   }
  50%  { transform: translateY(-60px) rotate(180deg); }
  100% { transform: translateY(0)     rotate(360deg); }
}

/* ── Shared layout ────────────────────────────────── */
.section-inner {
  position: relative; z-index: 1;
  max-width: 980px;
  margin: 0 auto;
  padding: 0 24px;
}

.section-title {
  font-family: var(--font-game);
  font-size: clamp(1.8rem, 4vw, 2.8rem);
  color: var(--neon);
  text-align: center;
  margin-bottom: 2.4rem;
  text-shadow: 3px 3px 0 rgba(0,0,0,0.5);
}

/* ── Buttons ──────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-game);
  font-size: 1rem;
  border-radius: 50px;
  padding: 0.7em 2em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
  border: none;
}
.btn:hover  { transform: translateY(-3px) scale(1.03); }
.btn:active { transform: translateY(1px)  scale(0.98); }

.btn-primary {
  background: var(--neon);
  color: #0f1a06;
  box-shadow: 0 6px 0 #3a7520, 0 0 24px rgba(110,204,74,0.4);
}
.btn-primary:hover { box-shadow: 0 8px 0 #3a7520, 0 0 36px rgba(110,204,74,0.65); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid rgba(255,255,255,0.3);
}
.btn-ghost:hover { border-color: var(--teal); color: var(--teal); }

.btn-secondary {
  background: var(--teal);
  color: #0a1a18;
  box-shadow: 0 6px 0 #277a74;
}
.btn-secondary:hover { box-shadow: 0 8px 0 #277a74, 0 0 28px rgba(77,196,184,0.5); }

.btn-big { font-size: 1.15rem; padding: 0.85em 2.4em; }

.cta-group {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 2rem;
}

/* ── Hero ─────────────────────────────────────────── */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 60px 24px 80px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 80% 60% at 50% 90%, rgba(77,196,184,0.14) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(139,155,90,0.12) 0%, transparent 60%),
    var(--dark);
}

/* Teal-stripe window accent — mimics the game's diagonal-stripe windows */
.hero::after {
  content: '';
  position: absolute;
  top: 0; right: 0;
  width: 220px; height: 220px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(77,196,184,0.08) 0px,
    rgba(77,196,184,0.08) 14px,
    transparent 14px,
    transparent 28px
  );
  border-radius: 0 0 0 100%;
  pointer-events: none;
}


.hero-inner {
  position: relative; z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 1rem;
}

.logo-row {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.game-icon {
  width: 80px;
  height: 80px;
  border-radius: 20px;
  box-shadow: 0 0 30px rgba(77,196,184,0.5);
  animation: icon-pulse 3s ease-in-out infinite;
}

@keyframes icon-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(77,196,184,0.45); }
  50%       { box-shadow: 0 0 45px rgba(77,196,184,0.85); }
}

.game-title {
  font-family: var(--font-game);
  font-size: clamp(3rem, 8vw, 5.5rem);
  line-height: 0.9;
  color: var(--text);
  text-shadow:
    4px 4px 0 var(--brown),
    8px 8px 0 rgba(0,0,0,0.45);
  letter-spacing: 0.02em;
}

.punch-word {
  color: var(--neon);
  text-shadow:
    4px 4px 0 #3a7520,
    8px 8px 0 rgba(0,0,0,0.45);
}

.tagline {
  font-family: var(--font-game);
  font-size: clamp(1rem, 2.5vw, 1.4rem);
  color: var(--teal);
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-top: 0.2rem;
}

/* Hero cookie + fist */
.cookie-wrap {
  position: relative;
  width: min(340px, 78vw);
  height: min(340px, 78vw);
  margin: 1.5rem auto;
}

.hero-cookie {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 0 40px rgba(192,128,64,0.5));
  user-select: none;
  -webkit-user-drag: none;
}

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

.hero-fist {
  position: absolute;
  width: 48%;
  bottom: -4%;
  right: -8%;
  filter: drop-shadow(4px 4px 0 rgba(0,0,0,0.5));
  animation: fist-bounce 1.8s ease-in-out infinite;
  transform-origin: bottom right;
}

@keyframes fist-bounce {
  0%, 100% { transform: rotate(-15deg) translateY(0);    }
  50%       { transform: rotate(5deg)  translateY(-12px); }
}

/* ── About ────────────────────────────────────────── */
.about {
  padding: 80px 0;
  background: var(--dark2);
  position: relative;
  z-index: 1;
}

.about::before {
  content: '';
  position: absolute;
  top: -1px; left: 0; right: 0;
  height: 60px;
  background: var(--dark);
  clip-path: polygon(0 0, 100% 0, 100% 40%, 0 100%);
}

.about .section-inner {
  max-width: 1400px;
}

.about-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1.4rem;
  align-items: stretch;
}

.about-card {
  background: rgba(77,196,184,0.04);
  border: 1px solid rgba(77,196,184,0.12);
  border-radius: var(--radius);
  padding: 2rem 1.4rem;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.about-card:hover {
  transform: translateY(-6px);
  border-color: var(--teal);
  box-shadow: 0 8px 32px rgba(77,196,184,0.15);
}

.card-icon-wrap {
  height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.card-icon {
  width: auto;
  height: 100%;
  max-width: 140px;
  max-height: 120px;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.5));
}

.about-card h3 {
  font-family: var(--font-game);
  font-size: 1.2rem;
  color: var(--neon);
  margin-bottom: 0.6rem;
}

.about-card p {
  font-size: 0.9rem;
  color: var(--muted);
  line-height: 1.65;
}

/* ── Screenshots ──────────────────────────────────── */
.screenshots {
  padding: 80px 0;
  position: relative;
  z-index: 1;
  background: var(--dark);
}

/* 2×2 grid */
.shot-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
}

@media (max-width: 560px) {
  .shot-grid { grid-template-columns: 1fr; }
}

.shot-frame {
  border-radius: var(--radius);
  overflow: hidden;
  border: 2px solid rgba(77,196,184,0.15);
  aspect-ratio: 16 / 9;
  position: relative;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.shot-frame:hover {
  transform: scale(1.02);
  border-color: var(--neon);
  box-shadow: 0 0 28px rgba(110,204,74,0.3);
}

.shot-frame img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}

/* Caption overlay on hover */
.shot-frame .shot-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(20,26,10,0.88));
  padding: 1.2rem 1rem 0.7rem;
  transform: translateY(100%);
  transition: transform 0.25s;
}
.shot-frame:hover .shot-caption { transform: translateY(0); }

.shot-caption span {
  font-family: var(--font-game);
  font-size: 0.9rem;
  color: var(--neon);
}

/* ── Play section ─────────────────────────────────── */
.play-section {
  padding: 80px 0;
  background: var(--dark2);
  position: relative;
  overflow: hidden;
  z-index: 1;
}

.play-section::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 80% 50%, rgba(77,196,184,0.10) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 10% 50%, rgba(110,204,74,0.08) 0%, transparent 60%);
  pointer-events: none;
}

/* Diagonal stripe accent — bottom-left corner like the windows */
.play-section::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 200px; height: 200px;
  background: repeating-linear-gradient(
    -45deg,
    rgba(77,196,184,0.07) 0px,
    rgba(77,196,184,0.07) 14px,
    transparent 14px,
    transparent 28px
  );
  border-radius: 0 100% 0 0;
  pointer-events: none;
}

.play-inner {
  display: flex;
  align-items: center;
  gap: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}

.play-text {
  flex: 1 1 320px;
  max-width: 500px;
  position: relative; z-index: 1;
}

.play-text .section-title { text-align: left; }

.play-text p {
  color: var(--muted);
  line-height: 1.7;
  font-size: 1rem;
}

.play-text .cta-group { justify-content: flex-start; }

.play-art {
  flex: 0 0 auto;
  position: relative; z-index: 1;
}

.play-fist {
  width: min(240px, 50vw);
  filter: drop-shadow(0 0 40px rgba(77,196,184,0.55));
  animation: fist-pump 2s ease-in-out infinite;
}

@keyframes fist-pump {
  0%, 100% { transform: translateY(0)    rotate(-10deg); }
  40%       { transform: translateY(-20px) rotate(8deg); }
}

/* ── Footer ───────────────────────────────────────── */
.footer {
  padding: 40px 24px;
  text-align: center;
  border-top: 1px solid rgba(77,196,184,0.10);
  background: var(--dark);
  position: relative; z-index: 1;
}

.footer-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  margin-bottom: 0.8rem;
  opacity: 0.9;
}

.footer-title {
  font-family: var(--font-game);
  font-size: 1.3rem;
  color: var(--neon);
  margin-bottom: 0.4rem;
}

.footer-copy {
  font-size: 0.82rem;
  color: var(--muted);
}

/* Bottom stripe removed */
.footer::after { display: none; }

/* ── Custom fist cursor ───────────────────────────── */
* { cursor: none !important; }

#fist-cursor {
  position: fixed;
  top: 0; left: 0;
  width: 52px;
  height: 52px;
  pointer-events: none;
  z-index: 99999;
  transform: translate(-28%, -18%);
  transition: opacity 0.15s;
}

#fist-cursor img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(2px 3px 5px rgba(0,0,0,0.6));
}

#fist-cursor.punching {
  animation: cursor-punch 0.18s ease-out forwards;
}

@keyframes cursor-punch {
  0%   { transform: translate(-28%, -18%) scale(1)    rotate(0deg); }
  35%  { transform: translate(-14%,  -8%) scale(1.25) rotate(20deg); }
  100% { transform: translate(-28%, -18%) scale(1)    rotate(0deg); }
}

/* ── Cookie punch scale-pop ───────────────────────── */
.hero-cookie.punched {
  animation: cookie-punch 0.18s ease-out forwards;
}

@keyframes cookie-punch {
  0%   { transform: scale(1); }
  35%  { transform: scale(1.14); }
  100% { transform: scale(1); }
}

/* ── +1 floating text ─────────────────────────────── */
.plus-one {
  position: absolute;
  font-family: var(--font-game);
  font-size: 1.6rem;
  color: #ffffff;
  text-shadow: 2px 2px 0 rgba(0,0,0,0.5), 0 0 14px rgba(255,255,255,0.65);
  pointer-events: none;
  z-index: 10;
  white-space: nowrap;
  transform: translate(-50%, -100%);
  animation: plus-float 0.85s ease-out forwards;
}

@keyframes plus-float {
  0%   { opacity: 1; transform: translate(-50%, -100%) scale(1.2); }
  20%  { opacity: 1; transform: translate(-50%, -130%) scale(1);   }
  100% { opacity: 0; transform: translate(-50%, -220%) scale(0.85); }
}

/* ── Cookie counter ───────────────────────────────── */
#cookie-counter {
  font-family: var(--font-game);
  font-size: 1.25rem;
  color: var(--cookie);
  text-shadow: 2px 2px 0 rgba(0,0,0,0.45);
  text-align: center;
  letter-spacing: 0.04em;
  min-height: 1.6em;
}

/* ── Responsive ───────────────────────────────────── */
@media (max-width: 900px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 600px) {
  .logo-row { flex-direction: column; gap: 0.6rem; }
  .game-title { font-size: 3rem; }
  .play-text .section-title { text-align: center; }
  .play-text .cta-group { justify-content: center; }
  .about-grid { grid-template-columns: 1fr; }
}
