body {
  margin: 0;
  font-family: 'Fredoka', 'Arial', sans-serif;
  background: #3a5a7a;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  height: 100vh;
  position: absolute;
  top: 0;
  left: 0;
  background: #3a5a7a url('../images/gameplay-background.jpg');
  background-size: cover;
}

#start-screen {
  background: #3a5a7a url('../images/main-background.jpg');
  background-size: auto 100%;
  background-position: center;
  background-repeat: no-repeat;
  min-height: 100vh;
}

.hidden {
  display: none !important;
}

.title {
  font-family: 'Fredoka One', 'Arial', sans-serif;
  font-size: 3rem;
  color: #ffe066;
  text-shadow: 2px 2px 0 #222, 4px 4px 0 #000;
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.title .nose {
  font-size: 3.5rem;
  margin: 0 0.5rem;
}

#start-btn {
  font-family: 'Fredoka', 'Arial', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 1rem;
  border: none;
  background: #ffe066;
  color: #222;
  cursor: pointer;
  box-shadow: 2px 2px 0 #222;
  transition: background 0.2s;
}
#start-btn:hover {
  background: #ffd700;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, 100px);
  grid-template-rows: repeat(3, 100px);
  gap: 18px;
  margin-bottom: 2rem;
}

.hole {
  width: 100px;
  height: 100px;
  background: #222c3a;
  border-radius: 50%;
  box-shadow: 0 4px 0 #111, 0 0 0 6px #3a5a7a;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.dog {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  width: 90px;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  transition: filter 0.1s, transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}
.dog:active {
  filter: brightness(0.8);
}
.dog-up {
  transform: translateX(-50%) translateY(0);
}
.dog-down {
  transform: translateX(-50%) translateY(60px);
}

.bomb {
  position: absolute;
  left: 50%;
  transform: translateX(-50%) translateY(60px);
  width: 90px;
  height: 90px;
  object-fit: cover;
  cursor: pointer;
  transition: filter 0.1s, transform 0.15s cubic-bezier(0.4, 0, 0.2, 1);
}

.bomb-up {
  transform: translateX(-50%) translateY(0);
}

.bomb-down {
  transform: translateX(-50%) translateY(60px);
}

.poof {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 50%;
  pointer-events: none;
  animation: poof 0.5s ease-out forwards;
  filter: blur(2px);
}

@keyframes poof {
  0% {
    transform: scale(0) rotate(0deg);
    opacity: 0.8;
  }
  50% {
    transform: scale(1.2) rotate(180deg);
    opacity: 0.6;
  }
  100% {
    transform: scale(2) rotate(360deg);
    opacity: 0;
  }
}

#score {
  font-family: 'Fredoka', 'Arial', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffe066;
  text-shadow: 2px 2px 0 #222, 4px 4px 0 #000;
  margin-bottom: 1rem;
  letter-spacing: 2px;
}

.powered-by {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  background: #222c3a;
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: 1rem;
  font-family: 'Fredoka', 'Arial', sans-serif;
  font-size: 1rem;
  font-weight: 600;
  margin-top: 1rem;
  box-shadow: 2px 2px 0 #111;
}

#lives {
  font-family: 'Fredoka', 'Arial', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffe066;
  text-shadow: 2px 2px 0 #222, 4px 4px 0 #000;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

#gameover-screen .title {
  font-family: 'Fredoka One', 'Arial', sans-serif;
  font-size: 3rem;
  color: #ffe066;
  text-shadow: 2px 2px 0 #222, 4px 4px 0 #000;
  margin-bottom: 2rem;
}

#final-score {
  font-family: 'Fredoka', 'Arial', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #ffe066;
  text-shadow: 2px 2px 0 #222, 4px 4px 0 #000;
  margin-bottom: 2rem;
}

#play-again-btn {
  font-family: 'Fredoka', 'Arial', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 1rem;
  border: none;
  background: #ffe066;
  color: #222;
  cursor: pointer;
  box-shadow: 2px 2px 0 #222;
  transition: background 0.2s;
}
#play-again-btn:hover {
  background: #ffd700;
}

#timer {
  font-family: 'Fredoka', 'Arial', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffe066;
  text-shadow: 2px 2px 0 #222, 4px 4px 0 #000;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

#level {
  font-family: 'Fredoka', 'Arial', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: #ffe066;
  text-shadow: 2px 2px 0 #222, 4px 4px 0 #000;
  margin-bottom: 0.5rem;
  letter-spacing: 2px;
}

.level-up-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  animation: fadeIn 0.3s ease-in;
}

.level-up-text {
  font-family: 'Fredoka One', 'Arial', sans-serif;
  font-size: 4rem;
  color: #ffe066;
  text-shadow: 2px 2px 0 #222, 4px 4px 0 #000;
  margin-bottom: 1rem;
  animation: levelUpBounce 0.6s ease-out;
}

.level-number {
  font-family: 'Fredoka', 'Arial', sans-serif;
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  text-shadow: 2px 2px 0 #222;
  animation: levelUpSlide 0.8s ease-out 0.3s both;
}

.celebration-particle {
  position: absolute;
  width: 10px;
  height: 10px;
  background: #ffe066;
  border-radius: 50%;
  pointer-events: none;
  animation: celebrate 1s ease-out forwards;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes levelUpBounce {
  0% {
    transform: scale(0) rotate(-180deg);
    opacity: 0;
  }
  50% {
    transform: scale(1.2) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: scale(1) rotate(0deg);
    opacity: 1;
  }
}

@keyframes levelUpSlide {
  from {
    transform: translateY(50px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes celebrate {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
  100% {
    transform: translateY(-200px) scale(0);
    opacity: 0;
  }
}

.game-over-buttons {
  display: flex;
  gap: 1rem;
  flex-direction: column;
  align-items: center;
}

#twitter-share-btn {
  font-family: 'Fredoka', 'Arial', sans-serif;
  font-size: 1.5rem;
  font-weight: 600;
  padding: 0.75rem 2rem;
  border-radius: 1rem;
  border: none;
  background: #1da1f2;
  color: #fff;
  cursor: pointer;
  box-shadow: 2px 2px 0 #0d8bd9;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

#twitter-share-btn:hover {
  background: #0d8bd9;
}

#twitter-share-btn span {
  font-size: 1.2rem;
} 