/* Star Breaker 游戏样式 - 保持原有全屏体验 */

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Inter", "Segoe UI", Arial, sans-serif;
  color: #fff;
}

body {
  background: 
    linear-gradient(135deg, #0f0f23 0%, #1a0f2e 25%, #2d1b69 50%, #1a0f2e 75%, #0f0f23 100%),
    radial-gradient(circle at 30% 30%, rgba(255, 0, 150, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(150, 0, 255, 0.12) 0%, transparent 60%),
    url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" width="60" height="60" viewBox="0 0 60 60"><defs><pattern id="grid" width="60" height="60" patternUnits="userSpaceOnUse"><path d="M 60 0 L 0 0 0 60" fill="none" stroke="rgba(255,0,150,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
  background-size: 100% 100%, 100% 100%, 100% 100%, 60px 60px;
  display: flex;
  flex-direction: column;
  min-height: calc(var(--vh, 1vh) * 100);
}

header {
  text-align: center;
  padding: 0.5rem;
  flex-shrink: 0;
}

header h1 {
  margin: 0;
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 700;
  background: linear-gradient(135deg, #ff0096, #9600ff, #00bfff);
  background-size: 200% 200%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: gradient-shift 3s ease infinite;
  text-shadow: 0 0 20px rgba(255, 0, 150, 0.5);
  letter-spacing: 1px;
}

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

header p {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin: 0.3rem 0 0 0;
  text-shadow: 0 0 10px rgba(255, 0, 150, 0.3);
}

main {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 0;
  padding: 0.5rem;
  box-sizing: border-box;
}

canvas {
  display: block;
  width: 100%;
  height: 100%;
  background: 
    linear-gradient(135deg, #0f0f23 0%, #1a0f2e 25%, #2d1b69 50%, #1a0f2e 75%, #0f0f23 100%),
    radial-gradient(circle at 30% 30%, rgba(255, 0, 150, 0.15) 0%, transparent 50%),
    radial-gradient(circle at 70% 70%, rgba(150, 0, 255, 0.12) 0%, transparent 60%);
  border: 2px solid rgba(255, 0, 150, 0.4);
  border-radius: 12px;
  box-shadow: 
    0 0 30px rgba(0, 0, 0, 0.7),
    inset 0 0 50px rgba(255, 0, 150, 0.05);
  animation: star-pulse 4s ease-in-out infinite;
  box-sizing: border-box;
}

@keyframes star-pulse {
  0%, 100% { 
    box-shadow: 
      0 0 30px rgba(0, 0, 0, 0.7),
      inset 0 0 50px rgba(255, 0, 150, 0.05);
  }
  50% { 
    box-shadow: 
      0 0 50px rgba(255, 0, 150, 0.4),
      inset 0 0 50px rgba(150, 0, 255, 0.1);
  }
}

footer {
  text-align: center;
  padding: 0.5rem;
  flex-shrink: 0;
}

.play-btn {
  display: inline-block;
  padding: 0.6rem 1.2rem;
  background: linear-gradient(135deg, #ff6b00, #ff9800, #ffc107);
  border-radius: 50px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
  letter-spacing: 1px;
  transition: all 0.3s ease;
  box-shadow: 
    0 4px 15px rgba(255, 107, 0, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.play-btn:hover {
  background: linear-gradient(135deg, #e65100, #f57c00, #ff8f00);
  transform: translateY(-2px) scale(1.05);
  box-shadow: 
    0 8px 25px rgba(255, 107, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

/* 移动端优化 */
@media (max-width: 768px) {
  header {
    padding: 0.3rem;
  }
  
  header h1 {
    font-size: 1.5rem;
  }
  
  header p {
    font-size: 0.8rem;
  }
  
  main {
    padding: 0.3rem;
  }
  
  footer {
    padding: 0.3rem;
  }
  
  .play-btn {
    padding: 0.5rem 1rem;
    font-size: 0.7rem;
  }
}

footer {
  text-align: center;
  padding: 1rem;
}