/* game3.css

/* ----------------------------------------
   1. VARIABLES & RESET
---------------------------------------- */
:root {
  /* Colors */
  --bg-sky:          #87CEEB;
  --bg-info:         #E1F5FE;
  --accent:          #FF9800;
  --text-dark:       #333;
  --text-light:      #fff;

  /* Typography */
  --font-playful:    'Comic Neue', 'Comic Sans MS', cursive, sans-serif;

  /* Shadows & transitions */
  --shadow-light:    0 2px 6px rgba(0, 0, 0, 0.1);
  --shadow-medium:   0 4px 10px rgba(0, 0, 0, 0.15);
  --transition:      0.3s ease-in-out;
}

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

body {
  background: var(--bg-sky);
  color: var(--text-dark);
  font-family: var(--font-playful);
  user-select: none;
  line-height: 1.4;
}

/* Utility: visually hidden for screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

/* ----------------------------------------
   2. HEADER & NAVIGATION
---------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem 2rem;
  background: var(--bg-info);
  box-shadow: var(--shadow-medium);
  z-index: 100;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  color: var(--text-dark);
}

.site-nav .nav-list {
  display: flex;
  list-style: none;
}

.site-nav a {
  margin-left: 1rem;
  padding: 0.4rem 0.8rem;
  color: var(--text-dark);
  text-decoration: none;
  border-radius: 0.4rem;
  transition: background var(--transition), transform var(--transition);
}

.site-nav a:hover,
.site-nav a:focus {
  background: rgba(255, 152, 0, 0.2);
  transform: translateY(-2px);
  outline: none;
}

/* ----------------------------------------
   3. INFO SECTION
---------------------------------------- */
.game-info {
  text-align: center;
  padding: 1.5rem 1rem;
  margin-bottom: 1rem;
}

.game-info .score {
  font-size: 2.2rem;
  font-weight: bold;
  margin-bottom: 0.5rem;
}

.game-info .score-value {
  display: inline-block;
  min-width: 2ch;
  text-align: right;
  color: var(--accent);
}

.game-info .instructions {
  font-size: 1.2rem;
}

/* ----------------------------------------
   4. GAME CANVAS CONTAINER
---------------------------------------- */
.game-container {
  max-width: 90vw;
  width: 800px;
  margin: 2rem auto;
  border: 4px solid var(--accent);
  border-radius: 0.8rem;
  background: var(--text-light);
  box-shadow: var(--shadow-medium);
  overflow: hidden;
}

#gameCanvas {
  display: block;
  width: 100%;
  height: auto;
}

/* ----------------------------------------
   5. FOOTER
---------------------------------------- */
footer {
  text-align: center;
  padding: 1rem 2rem;
  background: var(--bg-info);
  color: var(--text-dark);
  font-size: 0.9rem;
  box-shadow: inset 0 1px 3px rgba(0,0,0,0.1);
}

/* ----------------------------------------
   6. RESPONSIVE TWEAKS
---------------------------------------- */
@media (max-width: 600px) {
  .site-header {
    flex-direction: column;
    padding: 1rem;
  }

  .site-nav .nav-list {
    flex-direction: column;
    margin-top: 0.5rem;
  }

  .site-nav a {
    margin: 0.5rem 0 0;
  }

  .game-info .score {
    font-size: 1.8rem;
  }

  .game-info .instructions {
    font-size: 1rem;
  }

  .game-container {
    width: 100%;
  }
}