/* Mac-inspired styling for Orbital Bounce game */
:root {
  --mac-blue: #0071e3;
  --mac-light-gray: #f5f5f7;
  --mac-dark-gray: #333333;
  --mac-medium-gray: #86868b;
  --mac-black: #1d1d1f;
  --mac-white: #ffffff;
  --mac-success: #28cd41;
  --mac-warning: #ff9f0a;
  --mac-danger: #ff3b30;
  --mac-radius: 8px;
  --mac-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

body {
  font-family: 'SF Pro Display', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  background: var(--mac-light-gray);
  color: var(--mac-black);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  line-height: 1.5;
}

.game-container {
  position: relative;
  width: 800px;
  height: 600px;
  background: var(--mac-white);
  border-radius: var(--mac-radius);
  box-shadow: var(--mac-shadow);
  overflow: hidden;
}

#game-canvas {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, #1a1a2e, #16213e);
  display: none;
}

.screen {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--mac-white);
  padding: 2rem;
  text-align: center;
  z-index: 10;
}

.hidden {
  display: none;
}

h1 {
  font-size: 3rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--mac-black);
}

h2 {
  font-size: 2rem;
  font-weight: 500;
  margin-bottom: 1rem;
  color: var(--mac-black);
}

p {
  font-size: 1.1rem;
  color: var(--mac-medium-gray);
  margin-bottom: 1.5rem;
}

.instructions {
  margin-top: 2rem;
  padding: 1.5rem;
  background: var(--mac-light-gray);
  border-radius: var(--mac-radius);
  max-width: 80%;
}

.instructions h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
}

.instructions p {
  margin-bottom: 0.5rem;
}

.mac-button {
  background: var(--mac-blue);
  color: white;
  border: none;
  border-radius: 20px;
  padding: 0.8rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  margin: 0.5rem;
  outline: none;
}

.mac-button:hover {
  transform: scale(1.05);
  background: #0077ed;
}

.mac-button:active {
  transform: scale(0.98);
}

.mac-button.secondary {
  background: var(--mac-light-gray);
  color: var(--mac-black);
  border: 1px solid var(--mac-medium-gray);
}

.mac-button.small {
  padding: 0.4rem 1rem;
  font-size: 0.9rem;
}

#game-ui {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  padding: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--mac-white);
  font-size: 1.2rem;
  z-index: 5;
  display: none;
}

.score-container, .lives-container {
  background: rgba(0, 0, 0, 0.3);
  padding: 0.5rem 1rem;
  border-radius: var(--mac-radius);
  backdrop-filter: blur(5px);
}

@media (max-width: 820px) {
  .game-container {
    width: 95%;
    height: 80vh;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  .instructions {
    max-width: 90%;
  }
}

@media (max-width: 480px) {
  h1 {
    font-size: 2rem;
  }
  
  h2 {
    font-size: 1.5rem;
  }
  
  p {
    font-size: 1rem;
  }
  
  .mac-button {
    padding: 0.7rem 1.5rem;
  }
}