/* game2.css

/* ----------------------------------------
   1. VARIABLES & RESET
---------------------------------------- */
:root {
  --bg-color:       #0B3D91;
  --primary:        #1E88E5;
  --accent:         #FF9800;
  --text-color:     #fff;
  --font-family:    'Comic Neue', 'Comic Sans MS', cursive, sans-serif;
  --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-color);
  color: var(--text-color);
  font-family: var(--font-family);
  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(--primary);
  box-shadow: var(--shadow-medium);
  z-index: 100;
}

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

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

.site-nav a {
  margin-left: 1rem;
  padding: 0.4rem 0.8rem;
  color: var(--text-color);
  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, 255, 255, 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 CONTAINER
---------------------------------------- */
.game-container {
  max-width: 90vw;
  width: 800px;
  margin: 2rem auto;
  border: 4px solid var(--accent);
  border-radius: 0.8rem;
  background: var(--primary);
  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(--primary);
  color: var(--text-color);
  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%;
  }
}
