/* Improving and refining the visual style for a more modern, vivid, game-feel */
body {
  margin: 0;
  background: linear-gradient(to bottom, #97f5fc 0%, #e6f3fc 100%);
  font-family: 'Nunito', 'Comic Sans MS', 'Comic Sans', cursive, sans-serif;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  min-height: 100vh;
  user-select: none;
  touch-action: manipulation;
}
#game-container {
  margin-top: 40px;
  background: #fffcd2;
  border-radius: 22px;
  box-shadow: 0 8px 36px #91e2fa99, 0 2px 12px #b6aa5967;
  padding: 28px 38px 26px 38px;
  display: inline-block;
  position: relative;
  border: 2.8px solid #9bdbff80;
}
#game-svg {
  border-radius: 18px;
  background: linear-gradient(#fdffbf 82%, #97e8bd 100%);
  box-shadow: 0 0 20px #e2f6ff77;
  display: block;
  margin-bottom: 14px;
  border: 2px solid #b1ecee85;
  transition: filter 0.18s;
}
#ui {
  display: flex;
  align-items: center;
  background: #9bf9e888;
  border-radius: 12px;
  padding: 11px 20px 10px 18px;
  box-shadow: 0 2px 8px #63a9b977;
  font-size: 1.07em;
  min-width: 320px;
}
#score-label, #hi-label {
  font-weight: bold;
  color: #0067ae;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 2px #fff8;
  margin-right: 2px;
}
#score, #hiscore {
  min-width: 44px;
  display: inline-block;
  text-align: right;
  font-size: 1.25em;
  color: #251843;
  margin-right: 28px;
}
#hiscore {
  color: #2280d7;
  text-shadow: 0 1px 0 #caf1fa;
  font-weight: 600;
}
#restart-btn {
  background: linear-gradient(90deg, #baf6c2 0%, #7defff 100%);
  border: none;
  border-radius: 7px;
  font-size: 1.13em;
  box-shadow: 0 2px 6px #61b7be54;
  color: #155650;
  font-weight: 700;
  padding: 11px 26px;
  margin-left: 32px;
  cursor: pointer;
  letter-spacing: 1px;
  transition: background 0.18s, color 0.17s;
  outline: none;
}
#restart-btn:focus {
  outline: 3px solid #3fdfffaa;
}
#restart-btn:hover {
  background: linear-gradient(90deg, #c6f9bb 0%, #c9e7ef 100%);
  color: #086244;
}
#tutorial-message {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  background: #e3f4fbcc;
  padding: 15px 26px 13px 26px;
  border-radius: 16px;
  color: #1a4770;
  font-size: 1.25em;
  font-family: inherit;
  font-weight: 600;
  box-shadow: 0 2px 10px #82e2fa66;
  letter-spacing: 0.3px;
  pointer-events: none;
  opacity: 0;
  animation: tutmsg-enter 1.1s ease forwards;
  border: 2.3px solid #81ccfc61;
  z-index: 100;
}
@keyframes tutmsg-enter {
  0% {opacity: 0; transform: translateX(-50%) scale(0.88);}
  60% {opacity: 1;}
  100% {opacity:1; transform: translateX(-50%) scale(1);}
}
#game-svg.paused {
  filter: blur(2.2px) brightness(0.98) saturate(0.97);
}
@media (max-width: 850px) {
  #game-container { padding: 2vw 3vw;}
  #game-svg { width: 98vw !important; height:270px; }
  #ui { min-width: unset; }
}