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

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 50%, #7e8ba3 100%);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.game-container {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  padding: 45px;
}

#result-wrap {
  text-align: center !important;
  color: rgba(255, 255, 255, 0.95);
  font-size: 22px;
  font-weight: 500;
  margin-bottom: 28px;
  letter-spacing: 1px;
}

canvas {
  display: block;
  margin: 0 auto 28px auto;
  border-radius: 12px;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.btn-wrap {
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 16px;
}

.btn-wrap div {
  margin: 0;
}

.btn-wrap div > span {
  display: inline-block;
  padding: 11px 26px;
  color: rgba(255, 255, 255, 0.9);
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 400;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
}

.btn-wrap div > span:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  transform: translateY(-1px);
}

.btn-wrap div > span:active {
  transform: translateY(0);
}

div.unable > span {
  background: rgba(255, 255, 255, 0.04) !important;
  color: rgba(255, 255, 255, 0.35) !important;
  cursor: not-allowed !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

div.unable > span:hover {
  transform: none !important;
  background: rgba(255, 255, 255, 0.04) !important;
}

@keyframes pulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.05);
    opacity: 0.8;
  }
}

@keyframes glow {
  0%, 100% {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  }
  50% {
    box-shadow: 0 4px 30px rgba(78, 205, 196, 0.4), 0 0 20px rgba(78, 205, 196, 0.2);
  }
}

canvas {
  transition: transform 0.3s ease;
}

canvas:hover {
  animation: glow 2s ease-in-out infinite;
}
