
body {
  margin: 0;
  background: #f5f5f5;
  font-family: 'Segoe UI', sans-serif;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
}

#game {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  background-color: #f9f5ef;
  background-image: url('assets/background.png');
  background-repeat: repeat;
  background-size: contain;
  border: 6px solid #000;
  border-radius: 16px;
  padding-top: 40px;
  position: relative;
  width: 500px;
  height: 750px;
  box-sizing: border-box;
  overflow: hidden;
}

canvas {
  display: block;
  width: 500px;
  height: 750px;
  background-color: transparent;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

#scoreCounter {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  color: #000;
  font-size: 20px;
  font-weight: bold;
  z-index: 10;
}

#menu, #gameOver {
  text-align: center;
}

.button-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

button {
  background-color: #222;
  color: #fff;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 220px;
}

button:hover {
  background-color: #444;
}

.modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 100;
}

.modal-content {
  background: #fff;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  width: 300px;
}

.modal-content input {
  width: 100%;
  padding: 10px;
  font-size: 16px;
  margin-bottom: 20px;
  border: 1px solid #ccc;
  border-radius: 6px;
  box-sizing: border-box;
}

table {
  border-collapse: collapse;
  margin: 20px auto;
  width: 80%;
}

table, th, td {
  border: 1px solid #aaa;
}

th, td {
  padding: 8px 12px;
}
