@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+JP:wght@400;700&display=swap');

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

body {
  font-family: 'Noto Sans JP', sans-serif;
  background: #f5f5dc;
  overflow: hidden;
  touch-action: manipulation;
}

#game {
  width: 100vw;
  height: 100vh;
  position: relative;
}

#timer, #score {
  position: absolute;
  top: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 10px 20px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 16px;
  z-index: 100;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

#timer {
  left: 10px;
}

#score {
  right: 10px;
}

#forest {
  width: 100%;
  height: 100%;
  position: relative;
  background: linear-gradient(180deg, #87CEEB 0%, #90EE90 100%);
  cursor: pointer;
}

.tree {
  position: absolute;
  width: 120px;
  height: 150px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
}

.bird {
  position: absolute;
  width: 40px;
  height: 40px;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  cursor: pointer;
  transition: transform 0.1s;
}

.bird:active {
  transform: scale(0.95);
}

.bird.found {
  opacity: 0.3;
  pointer-events: none;
}

#result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  padding: 40px;
  border-radius: 16px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.2);
  z-index: 200;
}

#result.hidden {
  display: none;
}

#result h2 {
  margin-bottom: 20px;
  font-size: 24px;
}

#restart {
  background: #4CAF50;
  color: white;
  border: none;
  padding: 12px 30px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  font-family: 'Noto Sans JP', sans-serif;
  font-weight: 700;
}

#restart:active {
  transform: scale(0.98);
}