/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

* {
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
}

/* Home Page */
.home-container, .new-game-container, .game-container {
  text-align: center;
  background: white;
  padding: 3rem;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
}

.home-container {
  min-width: 280px;
  width: 100%;
  max-width: 1000px;
}

h1 {
  color: #333;
  margin-bottom: 2rem;
  font-size: 2.5rem;
}

.play-button {
  display: inline-block;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
}

.play-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
}

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

.play-button.secondary {
  background: #6c757d;
  margin-left: 1rem;
}

/* Player Form */
.player-form {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.form-group label {
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: #333;
}

.form-group input {
  padding: 0.75rem 1rem;
  border: 2px solid #ddd;
  border-radius: 0.5rem;
  font-size: 1rem;
  transition: border-color 0.2s;
}

.form-group input:focus {
  outline: none;
  border-color: #667eea;
}

/* VS Computer Option */
.vs-computer-option {
  flex-direction: row !important;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  margin-top: 0.5rem;
}

.vs-computer-option input[type="checkbox"] {
  width: 20px;
  height: 20px;
  cursor: pointer;
  accent-color: #667eea;
}

.vs-computer-option label {
  margin-bottom: 0;
  cursor: pointer;
  font-weight: 500;
}

/* Game Wrapper and Scoreboard */
.game-wrapper {
  position: relative;
}

.scoreboard {
  position: absolute;
  top: 0;
  right: -220px;
  background: white;
  padding: 1.5rem;
  border-radius: 0.75rem;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
  min-width: 180px;
}

.score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid #eee;
}

.score-item:last-child {
  border-bottom: none;
}

.score-label {
  font-weight: 600;
  color: #333;
  font-size: 0.95rem;
}

.score-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
}

.result-buttons {
  display: flex;
  justify-content: center;
  gap: 1rem;
}

.result-buttons .play-button.secondary {
  margin-left: 0;
}

/* Leaderboard */
.leaderboard {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 1rem 1.5rem;
  margin: 1.5rem auto;
  max-width: 320px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.leaderboard-title {
  font-size: 1.2rem;
  margin: 0 0 1rem 0;
  text-align: center;
  color: #333;
}

.leaderboard-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.leaderboard-entry {
  display: flex;
  align-items: center;
  padding: 0.5rem 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  gap: 0.75rem;
}

.leaderboard-entry:last-child {
  border-bottom: none;
}

.leaderboard-entry.rank-1 {
  font-weight: bold;
  font-size: 1.1rem;
}

.leaderboard-rank {
  min-width: 2rem;
  text-align: center;
}

.leaderboard-name {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.leaderboard-score {
  font-weight: bold;
  color: #667eea;
}

.leaderboard-empty {
  text-align: center;
  color: #666;
  font-style: italic;
  margin: 0;
  padding: 0.5rem 0;
}

.leaderboard-new {
  animation: leaderboard-highlight 1s ease-out;
}

@keyframes leaderboard-highlight {
  0% { background: rgba(102, 126, 234, 0.3); }
  100% { background: transparent; }
}

/* Game Board */
.game-status {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: #333;
}

.game-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(70px, 100px));
  grid-template-rows: repeat(3, minmax(70px, 100px));
  gap: 10px;
  justify-content: center;
  margin-bottom: 2rem;
}

.cell {
  width: 100%;
  aspect-ratio: 1;
  background: #f8f9fa;
  border: 2px solid #dee2e6;
  border-radius: 0.5rem;
  font-size: clamp(2rem, 8vw, 3rem);
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.cell:hover:not(.x):not(.o) {
  background: #e9ecef;
  transform: scale(1.05);
}

.cell.x {
  color: #667eea;
}

.cell.o {
  color: #e74c3c;
}

/* Game Result */
.game-result {
  padding-top: 1rem;
}

.game-result p {
  font-size: 1.8rem;
  font-weight: bold;
  color: #333;
  margin-bottom: 1.5rem;
}

.hidden {
  display: none;
}

/* Responsive - move scoreboard above on smaller screens */
@media (max-width: 900px) {
  .game-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .scoreboard {
    position: static;
    margin-bottom: 1.5rem;
    display: flex;
    gap: 2rem;
  }

  .score-item {
    flex-direction: column;
    border-bottom: none;
    padding: 0;
  }

  .score-label {
    font-size: 0.85rem;
  }
}

/* Background Options */
.background-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}

.background-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.background-option input[type="radio"] {
  display: none;
}

.background-preview {
  width: 60px;
  height: 60px;
  border-radius: 0.5rem;
  border: 3px solid transparent;
  transition: border-color 0.2s, transform 0.2s;
}

.background-option input[type="radio"]:checked + .background-preview {
  border-color: #667eea;
  transform: scale(1.1);
}

.background-option:hover .background-preview {
  transform: scale(1.05);
}

.background-name {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #666;
}

/* Background Preview Colors */
.background-preview.purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.background-preview.winter {
  background: linear-gradient(135deg, #e0f7fa 0%, #80deea 50%, #4dd0e1 100%);
}

.background-preview.night {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.background-preview.sunset {
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
}

.background-preview.forest {
  background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

/* Game Page Full Background */
.game-page {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.game-page.bg-purple {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.game-page.bg-winter {
  background: linear-gradient(135deg, #e0f7fa 0%, #80deea 50%, #4dd0e1 100%);
}

.game-page.bg-night {
  background: linear-gradient(135deg, #0f0c29 0%, #302b63 50%, #24243e 100%);
}

.game-page.bg-sunset {
  background: linear-gradient(135deg, #ff6b6b 0%, #feca57 50%, #ff9ff3 100%);
}

.game-page.bg-forest {
  background: linear-gradient(135deg, #134e5e 0%, #71b280 100%);
}

/* Santa Animation */
.santa-container {
  position: fixed;
  top: 15%;
  left: -450px;
  z-index: 1000;
  pointer-events: none;
}

.santa-container.animate {
  animation: flySanta 4s ease-in-out forwards;
}

@keyframes flySanta {
  0% {
    left: -450px;
    top: 15%;
  }
  30% {
    top: 8%;
  }
  50% {
    top: 25%;
  }
  70% {
    top: 10%;
  }
  100% {
    left: 110%;
    top: 18%;
  }
}

/* Moon Animation */
.moon-container {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  z-index: 1000;
  pointer-events: none;
}

.moon-container.animate {
  animation: showMoon 3s ease-in-out forwards;
}

@keyframes showMoon {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
  20% {
    transform: translate(-50%, -50%) scale(1.2);
    opacity: 1;
  }
  30% {
    transform: translate(-50%, -50%) scale(1);
  }
  80% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
  }
}

.moon {
  filter: drop-shadow(0 0 30px rgba(255, 250, 205, 0.8));
}

/* Home Page Game Selection */
.home-subtitle {
  color: #666;
  margin-bottom: 2rem;
  font-size: 1.1rem;
}

.game-subtitle {
  color: #666;
  margin-bottom: 1.5rem;
}

.game-selection {
  display: flex;
  gap: 2rem;
  justify-content: center;
  flex-wrap: wrap;
}

.game-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  background: #f8f9fa;
  border-radius: 1rem;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  width: 200px;
}

.game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

.game-card h2 {
  color: #333;
  font-size: 1.2rem;
  margin: 1rem 0 0.5rem;
}

.game-card p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.game-icon {
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.tictactoe-icon {
  gap: 0.5rem;
}

.tictactoe-icon span {
  font-size: 2rem;
  font-weight: bold;
  color: white;
}

.pool-icon {
  position: relative;
  background: linear-gradient(135deg, #0a5c36 0%, #1a8c56 100%);
}

.pool-ball {
  width: 30px;
  height: 30px;
  background: #FFD700;
  border-radius: 50%;
  border: 2px solid #333;
}

.pool-cue {
  position: absolute;
  width: 4px;
  height: 50px;
  background: linear-gradient(to bottom, #F5DEB3 10%, #8B4513 10%);
  transform: rotate(-45deg);
  top: 10px;
  right: 10px;
  border-radius: 2px;
}

/* Pool Game Styles */
.pool-container {
  padding: 2rem;
}

.pool-table-wrapper {
  position: relative;
  display: inline-block;
  margin: 1rem 0;
}

#poolTable {
  border: 8px solid #4a2c0a;
  border-radius: 8px;
  cursor: crosshair;
}

.power-meter {
  position: absolute;
  right: -40px;
  top: 0;
  width: 20px;
  height: 100%;
  background: #333;
  border-radius: 10px;
  overflow: hidden;
  display: none;
}

.power-fill {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(to top, #00ff00, #ffff00, #ff0000);
  transition: height 0.1s;
}

.pool-instructions {
  color: #666;
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.pool-scoreboard {
  min-width: 200px;
}

.pool-scoreboard .score-sublabel {
  font-size: 0.75rem;
  color: #888;
  display: block;
}

/* Responsive adjustments for pool */
@media (max-width: 900px) {
  .pool-container {
    padding: 1rem;
  }

  .pool-table-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
  }

  #poolTable {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .power-meter {
    display: none; /* Hide on mobile - power shown via drag distance */
  }
}

@media (max-width: 500px) {
  .pool-container h1 {
    font-size: 1.5rem;
  }
  
  .pool-instructions {
    font-size: 0.85rem;
    padding: 0.5rem;
  }
}

/* Hangman Icon */
.hangman-icon {
  background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
  font-size: 2.5rem;
}

.hangman-figure {
  color: white;
  font-weight: bold;
  letter-spacing: 3px;
}

/* Hangman Game Styles */
.hangman-container {
  padding: 2rem;
  min-width: auto;
  width: 100%;
  max-width: 600px;
}

.hangman-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.hangman-drawing {
  background: #f8f9fa;
  border-radius: 1rem;
  padding: 1rem;
}

.hangman-part {
  display: none;
}

.word-display {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
  flex-wrap: wrap;
  margin: 1rem 0;
}

.letter {
  font-size: 2.5rem;
  font-weight: bold;
  width: 50px;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-bottom: 4px solid #333;
  color: #333;
}

.letter.revealed {
  color: #667eea;
  animation: revealLetter 0.3s ease;
}

@keyframes revealLetter {
  0% {
    transform: scale(1.5);
    opacity: 0;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}

.wrong-letters {
  color: #666;
  font-size: 1rem;
  min-height: 1.5rem;
}

.wrong-letters span:last-child {
  color: #e74c3c;
  font-weight: bold;
  letter-spacing: 2px;
}

.keyboard {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  max-width: 500px;
}

.key {
  width: 45px;
  height: 45px;
  border: 2px solid #ddd;
  border-radius: 0.5rem;
  background: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.2s;
}

.key:hover:not(:disabled) {
  background: #667eea;
  color: white;
  border-color: #667eea;
  transform: scale(1.1);
}

.key:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.key.correct {
  background: #27ae60;
  color: white;
  border-color: #27ae60;
}

.key.wrong {
  background: #e74c3c;
  color: white;
  border-color: #e74c3c;
}

.reveal-word {
  font-size: 1.3rem;
  color: #e74c3c;
  font-weight: bold;
  margin-top: 0.5rem;
}

/* Responsive adjustments for hangman */
@media (max-width: 600px) {
  .hangman-container {
    min-width: auto;
    padding: 1rem;
  }

  .letter {
    font-size: 1.8rem;
    width: 35px;
    height: 45px;
  }

  .key {
    width: 35px;
    height: 35px;
    font-size: 1rem;
  }

  .keyboard {
    gap: 0.3rem;
  }
}

/* Wordle Icon */
.wordle-icon {
  background: linear-gradient(135deg, #538d4e 0%, #3a3a3c 100%);
}

.wordle-tiles {
  display: flex;
  gap: 4px;
}

.wordle-tile {
  width: 22px;
  height: 22px;
  background: #3a3a3c;
  color: white;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
}

.wordle-tile.green {
  background: #538d4e;
}

.wordle-tile.yellow {
  background: #b59f3b;
}

/* Wordle Game Styles */
.wordle-container {
  padding: 2rem;
  min-width: auto;
  width: 100%;
  max-width: 600px;
}

.wordle-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

.wordle-board {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.wordle-row {
  display: flex;
  gap: 8px;
}

.wordle-cell {
  width: 62px;
  height: 62px;
  border: 2px solid #d3d6da;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: bold;
  text-transform: uppercase;
  background: white;
  transition: transform 0.1s;
}

.wordle-cell.filled {
  border-color: #878a8c;
  animation: pop 0.1s ease;
}

@keyframes pop {
  50% {
    transform: scale(1.1);
  }
}

.wordle-cell.flip {
  animation: flip 0.5s ease;
}

@keyframes flip {
  0% {
    transform: rotateX(0);
  }
  50% {
    transform: rotateX(90deg);
  }
  100% {
    transform: rotateX(0);
  }
}

.wordle-cell.correct {
  background: #538d4e;
  border-color: #538d4e;
  color: white;
}

.wordle-cell.present {
  background: #b59f3b;
  border-color: #b59f3b;
  color: white;
}

.wordle-cell.absent {
  background: #787c7e;
  border-color: #787c7e;
  color: white;
}

.wordle-message {
  position: absolute;
  top: 100px;
  background: #333;
  color: white;
  padding: 1rem 1.5rem;
  border-radius: 0.5rem;
  font-weight: bold;
  animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.wordle-keyboard {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 1rem;
}

.keyboard-row {
  display: flex;
  justify-content: center;
  gap: 6px;
}

.wordle-key {
  min-width: 43px;
  height: 58px;
  border: none;
  border-radius: 4px;
  background: #d3d6da;
  font-size: 0.85rem;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.1s;
  text-transform: uppercase;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.wordle-key.wide {
  min-width: 65px;
  font-size: 0.75rem;
}

.wordle-key:hover {
  background: #c0c3c6;
}

.wordle-key.correct {
  background: #538d4e;
  color: white;
}

.wordle-key.present {
  background: #b59f3b;
  color: white;
}

.wordle-key.absent {
  background: #787c7e;
  color: white;
}

/* Responsive adjustments for wordle */
@media (max-width: 500px) {
  .wordle-container {
    min-width: auto;
    padding: 1rem;
  }

  .wordle-cell {
    width: 50px;
    height: 50px;
    font-size: 1.5rem;
  }

  .wordle-row {
    gap: 5px;
  }

  .wordle-board {
    gap: 5px;
  }

  .wordle-key {
    min-width: 32px;
    height: 50px;
    font-size: 0.75rem;
  }

  .wordle-key.wide {
    min-width: 50px;
    font-size: 0.65rem;
  }

  .keyboard-row {
    gap: 4px;
  }
}

/* Tetris Game Styles */
.tetris-container {
  padding: 2rem;
  position: relative;
}

.tetris-game {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.tetris-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.tetris-board {
  display: grid;
  grid-template-columns: repeat(10, 28px);
  grid-template-rows: repeat(20, 28px);
  gap: 1px;
  background: #111;
  padding: 4px;
  border-radius: 4px;
  border: 3px solid #333;
}

.tetris-cell {
  width: 28px;
  height: 28px;
  background: #1a1a2e;
  border-radius: 2px;
}

.tetris-cell.tetris-locked {
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Tetromino colors */
/* Falling piece colors - slightly transparent with glow effect */
.tetris-cyan {
  background: linear-gradient(135deg, rgba(0, 245, 255, 0.7) 0%, rgba(0, 188, 212, 0.7) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4), 0 0 8px rgba(0, 245, 255, 0.5);
}

.tetris-yellow {
  background: linear-gradient(135deg, rgba(255, 235, 59, 0.7) 0%, rgba(255, 193, 7, 0.7) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4), 0 0 8px rgba(255, 235, 59, 0.5);
}

.tetris-purple {
  background: linear-gradient(135deg, rgba(156, 39, 176, 0.7) 0%, rgba(123, 31, 162, 0.7) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4), 0 0 8px rgba(156, 39, 176, 0.5);
}

.tetris-green {
  background: linear-gradient(135deg, rgba(76, 175, 80, 0.7) 0%, rgba(56, 142, 60, 0.7) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4), 0 0 8px rgba(76, 175, 80, 0.5);
}

.tetris-red {
  background: linear-gradient(135deg, rgba(244, 67, 54, 0.7) 0%, rgba(211, 47, 47, 0.7) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4), 0 0 8px rgba(244, 67, 54, 0.5);
}

.tetris-blue {
  background: linear-gradient(135deg, rgba(33, 150, 243, 0.7) 0%, rgba(25, 118, 210, 0.7) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4), 0 0 8px rgba(33, 150, 243, 0.5);
}

.tetris-orange {
  background: linear-gradient(135deg, rgba(255, 152, 0, 0.7) 0%, rgba(245, 124, 0, 0.7) 100%);
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.4), 0 0 8px rgba(255, 152, 0, 0.5);
}

/* Locked piece colors - solid and bold */
.tetris-cell.tetris-locked.tetris-cyan {
  background: linear-gradient(135deg, #00f5ff 0%, #00bcd4 100%);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.tetris-cell.tetris-locked.tetris-yellow {
  background: linear-gradient(135deg, #ffeb3b 0%, #ffc107 100%);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.tetris-cell.tetris-locked.tetris-purple {
  background: linear-gradient(135deg, #9c27b0 0%, #7b1fa2 100%);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.tetris-cell.tetris-locked.tetris-green {
  background: linear-gradient(135deg, #4caf50 0%, #388e3c 100%);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.tetris-cell.tetris-locked.tetris-red {
  background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.tetris-cell.tetris-locked.tetris-blue {
  background: linear-gradient(135deg, #2196f3 0%, #1976d2 100%);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.tetris-cell.tetris-locked.tetris-orange {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  box-shadow: inset 0 0 6px rgba(255, 255, 255, 0.3), inset 0 -2px 4px rgba(0, 0, 0, 0.2);
}

.tetris-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.tetris-next {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
}

.tetris-next h3 {
  margin: 0 0 0.75rem 0;
  color: #333;
  font-size: 1rem;
}

.tetris-next-display {
  display: grid;
  grid-template-columns: repeat(4, 24px);
  grid-template-rows: repeat(4, 24px);
  gap: 1px;
  background: #111;
  padding: 4px;
  border-radius: 4px;
}

.tetris-next-cell {
  width: 24px;
  height: 24px;
  background: #1a1a2e;
  border-radius: 2px;
}

.tetris-controls {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
}

.tetris-controls h3 {
  margin: 0 0 0.75rem 0;
  color: #333;
  font-size: 1rem;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: #555;
}

.control-item:last-child {
  margin-bottom: 0;
}

.key-icon {
  background: #333;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  min-width: 50px;
  text-align: center;
}

.tetris-start {
  width: 100%;
}

.tetris-start.hidden {
  display: none;
}

.tetris-scoreboard {
  min-width: 150px;
}

.tetris-paused {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  padding: 2rem 3rem;
  border-radius: 1rem;
  text-align: center;
  z-index: 100;
}

.tetris-paused p {
  color: white;
  font-size: 2rem;
  font-weight: bold;
  margin: 0;
}

.tetris-paused .pause-hint {
  font-size: 1rem;
  color: #aaa;
  margin-top: 0.5rem;
}

/* Tetris Icon for home page */
.tetris-icon {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  display: flex;
  flex-wrap: wrap;
  padding: 10px;
  gap: 3px;
  justify-content: center;
  align-content: center;
}

.tetris-block {
  width: 14px;
  height: 14px;
  border-radius: 2px;
}

.tetris-block.cyan { background: #00f5ff; }
.tetris-block.yellow { background: #ffeb3b; }
.tetris-block.purple { background: #9c27b0; }
.tetris-block.red { background: #f44336; }

/* Responsive adjustments for tetris */
@media (max-width: 700px) {
  .tetris-game {
    flex-direction: column;
    align-items: center;
  }

  .tetris-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  .tetris-board {
    grid-template-columns: repeat(10, 24px);
    grid-template-rows: repeat(20, 24px);
  }

  .tetris-cell {
    width: 24px;
    height: 24px;
  }
}

/* Penalty Kick Game Styles */
.penalty-container {
  padding: 1.5rem;
  position: relative;
}

.penalty-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.penalty-field {
  position: relative;
  width: 500px;
  height: 350px;
  background: linear-gradient(to bottom, #87ceeb 0%, #87ceeb 30%, #228b22 30%, #228b22 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Goal Frame */
.goal-frame {
  position: absolute;
  top: 30px;
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  height: 120px;
}

.goal-net {
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.3) 10px,
    rgba(255, 255, 255, 0.3) 12px
  ),
  repeating-linear-gradient(
    0deg,
    transparent,
    transparent 10px,
    rgba(255, 255, 255, 0.3) 10px,
    rgba(255, 255, 255, 0.3) 12px
  );
  background-color: rgba(200, 200, 200, 0.3);
  border-radius: 0 0 4px 4px;
}

.goal-post {
  position: absolute;
  width: 8px;
  height: 100%;
  background: linear-gradient(to right, #fff, #ddd);
  border-radius: 4px;
}

.goal-post.left {
  left: -4px;
}

.goal-post.right {
  right: -4px;
}

.goal-crossbar {
  position: absolute;
  top: -8px;
  left: -4px;
  right: -4px;
  height: 8px;
  background: linear-gradient(to bottom, #fff, #ddd);
  border-radius: 4px;
}

/* Goalie */
.goalie {
  position: absolute;
  top: 80px;
  left: 50%;
  transform: translateX(-50%);
  transition: all 0.4s ease-out;
  z-index: 10;
}

.goalie-body {
  position: relative;
  width: 60px;
  height: 80px;
}

.goalie-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 24px;
  background: #ffdab9;
  border-radius: 50%;
  border: 2px solid #333;
}

.goalie-torso {
  position: absolute;
  top: 24px;
  left: 50%;
  transform: translateX(-50%);
  width: 30px;
  height: 30px;
  background: #ff6b00;
  border-radius: 4px;
}

.goalie-arm {
  position: absolute;
  top: 26px;
  width: 10px;
  height: 28px;
  background: #ff6b00;
  border-radius: 5px;
  transition: transform 0.3s ease;
}

.goalie-arm.left {
  left: 5px;
  transform-origin: top center;
}

.goalie-arm.right {
  right: 5px;
  transform-origin: top center;
}

.goalie-leg {
  position: absolute;
  top: 54px;
  width: 12px;
  height: 26px;
  background: #333;
  border-radius: 4px;
}

.goalie-leg.left {
  left: 15px;
}

.goalie-leg.right {
  right: 15px;
}

/* Goalie dive animations */
.goalie.dive-left {
  transform: translateX(-120px) rotate(-30deg);
}

.goalie.dive-left .goalie-arm.left {
  transform: rotate(-60deg);
}

.goalie.dive-left .goalie-arm.right {
  transform: rotate(-80deg);
}

.goalie.dive-right {
  transform: translateX(60px) rotate(30deg);
}

.goalie.dive-right .goalie-arm.left {
  transform: rotate(80deg);
}

.goalie.dive-right .goalie-arm.right {
  transform: rotate(60deg);
}

.goalie.dive-center .goalie-arm.left {
  transform: rotate(-45deg);
}

.goalie.dive-center .goalie-arm.right {
  transform: rotate(45deg);
}

/* Soccer Ball */
.soccer-ball {
  position: absolute;
  width: 40px;
  height: 40px;
  left: 50%;
  top: 85%;
  transform: translate(-50%, -50%);
  z-index: 20;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4));
}

/* Aim Line */
.aim-line {
  position: absolute;
  bottom: 60px;
  left: 50%;
  width: 4px;
  height: 150px;
  background: linear-gradient(to top, rgba(255, 255, 0, 0.8), rgba(255, 255, 0, 0));
  transform-origin: bottom center;
  transform: rotate(0deg);
  pointer-events: none;
  z-index: 5;
}

/* Power Bar */
.power-bar-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.power-bar {
  position: relative;
  width: 300px;
  height: 30px;
  background: #333;
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid #555;
}

.power-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #f44336;
  transition: background 0.1s;
}

.power-optimal-zone {
  position: absolute;
  left: 60%;
  width: 20%;
  height: 100%;
  background: rgba(76, 175, 80, 0.3);
  border-left: 2px dashed rgba(76, 175, 80, 0.8);
  border-right: 2px dashed rgba(76, 175, 80, 0.8);
}

.power-indicator {
  position: absolute;
  top: -5px;
  left: 0%;
  width: 4px;
  height: 40px;
  background: white;
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.power-label {
  font-size: 0.9rem;
  color: #666;
}

/* Shot Result Overlay */
.shot-result {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  padding: 1rem 2rem;
  border-radius: 10px;
  font-size: 2rem;
  font-weight: bold;
  z-index: 100;
  animation: popIn 0.3s ease;
}

.shot-result.goal {
  background: rgba(76, 175, 80, 0.95);
  color: white;
}

.shot-result.miss {
  background: rgba(244, 67, 54, 0.95);
  color: white;
}

@keyframes popIn {
  0% {
    transform: translate(-50%, -50%) scale(0);
  }
  70% {
    transform: translate(-50%, -50%) scale(1.2);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.penalty-controls {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

.penalty-scoreboard {
  min-width: 150px;
}

/* Penalty Kick Icon for home page */
.penalty-icon {
  background: linear-gradient(135deg, #228b22 0%, #1a6b1a 100%);
  position: relative;
}

.penalty-goal {
  width: 50px;
  height: 30px;
  border: 4px solid white;
  border-bottom: none;
  border-radius: 4px 4px 0 0;
  position: relative;
}

.penalty-ball {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: white;
  border-radius: 50%;
  border: 2px solid #333;
}

/* Responsive adjustments for penalty kick */
@media (max-width: 600px) {
  .penalty-field {
    width: 100%;
    max-width: 400px;
    height: 280px;
  }

  .goal-frame {
    width: 240px;
    height: 100px;
  }

  .power-bar {
    width: 250px;
  }

  .penalty-controls {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* Field Goal Game Styles */
.fieldgoal-container {
  padding: 1.5rem;
  position: relative;
}

.fieldgoal-game {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.football-field {
  position: relative;
  width: 500px;
  height: 350px;
  background: linear-gradient(to bottom, #87ceeb 0%, #87ceeb 25%, #228b22 25%, #228b22 100%);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

/* Crowd */
.crowd {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 25%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(to bottom, #4a4a4a, #333);
  overflow: hidden;
}

.crowd-row {
  display: flex;
  gap: 10px;
  font-size: 1.5rem;
}

.fan {
  animation: fanWave 2s ease-in-out infinite;
}

.fan:nth-child(odd) {
  animation-delay: 0.5s;
}

@keyframes fanWave {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.crowd.throwing-tomatoes::after {
  content: "🍅🍅🍅";
  position: absolute;
  font-size: 2rem;
  animation: throwTomatoes 1s ease-out forwards;
}

@keyframes throwTomatoes {
  0% { top: 0; opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

/* Goal Post */
.goalpost {
  position: absolute;
  top: 50px;
  left: 50%;
  transform: translateX(-50%);
  width: 160px;
  height: 120px;
}

.goalpost-crossbar {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 8px;
  background: linear-gradient(to bottom, #ffeb3b, #ffc107);
  border-radius: 4px;
}

.goalpost-upright {
  position: absolute;
  bottom: 0;
  width: 8px;
  height: 120px;
  background: linear-gradient(to right, #ffeb3b, #ffc107);
  border-radius: 4px 4px 0 0;
}

.goalpost-upright.left {
  left: 0;
}

.goalpost-upright.right {
  right: 0;
}

.goalpost-base {
  position: absolute;
  bottom: -30px;
  left: 50%;
  transform: translateX(-50%);
  width: 10px;
  height: 40px;
  background: linear-gradient(to right, #ffeb3b, #ffc107);
}

/* Wind Indicator */
.wind-indicator {
  position: absolute;
  top: 30%;
  right: 10px;
  background: rgba(255, 255, 255, 0.9);
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 0.8rem;
  display: flex;
  gap: 5px;
  align-items: center;
}

.wind-arrow {
  font-weight: bold;
  font-size: 1.2rem;
}

.wind-indicator.wind-changed {
  background: #4caf50;
  color: white;
  animation: pulse 0.3s ease;
}

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

/* Football */
.football {
  position: absolute;
  width: 45px;
  height: 28px;
  left: 50%;
  top: 82%;
  transform: translate(-50%, -50%);
  z-index: 20;
  filter: drop-shadow(2px 2px 3px rgba(0, 0, 0, 0.4));
}

.football.on-fire {
  filter: drop-shadow(0 0 10px #ff6600) drop-shadow(0 0 20px #ff3300);
  animation: fireGlow 0.2s ease infinite alternate;
}

@keyframes fireGlow {
  0% { filter: drop-shadow(0 0 10px #ff6600) drop-shadow(0 0 20px #ff3300); }
  100% { filter: drop-shadow(0 0 15px #ffcc00) drop-shadow(0 0 25px #ff6600); }
}

.football.crazy-spin {
  animation: crazySpin 0.7s linear;
}

@keyframes crazySpin {
  0% { transform: translate(-50%, -50%) rotate(0deg); }
  100% { transform: translate(-50%, -50%) rotate(1080deg); }
}

.football.doink-animation {
  animation: doink 0.5s ease-out;
}

@keyframes doink {
  0% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.2); }
  100% { transform: translate(-50%, -50%) scale(0.5) rotate(45deg); }
}

/* Kicker */
.kicker {
  position: absolute;
  bottom: 30px;
  left: 35%;
  z-index: 15;
}

.kicker-body {
  position: relative;
  width: 40px;
  height: 70px;
}

.kicker-head {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 20px;
  background: #ffdab9;
  border-radius: 50%;
  border: 2px solid #333;
}

.kicker-torso {
  position: absolute;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  width: 25px;
  height: 25px;
  background: #1e90ff;
  border-radius: 4px;
}

.kicker-arm {
  position: absolute;
  top: 22px;
  right: 5px;
  width: 8px;
  height: 20px;
  background: #1e90ff;
  border-radius: 4px;
  transform: rotate(-20deg);
}

.kicker-leg {
  position: absolute;
  top: 45px;
  width: 10px;
  height: 25px;
  background: #333;
  border-radius: 4px;
}

.kicker-leg.standing {
  left: 8px;
}

.kicker-leg.kicking {
  left: 22px;
  transform-origin: top center;
}

.kicker.kicking .kicker-leg.kicking {
  animation: kickLeg 0.3s ease-out;
}

@keyframes kickLeg {
  0% { transform: rotate(0deg); }
  50% { transform: rotate(60deg); }
  100% { transform: rotate(30deg); }
}

.kicker.tired {
  animation: tired 0.5s ease infinite;
}

@keyframes tired {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(3px) rotate(-2deg); }
}

/* Aim Line */
.fg-aim-line {
  position: absolute;
  bottom: 70px;
  left: 50%;
  width: 4px;
  height: 140px;
  background: linear-gradient(to top, rgba(255, 255, 0, 0.9), rgba(255, 255, 0, 0));
  transform-origin: bottom center;
  pointer-events: none;
  z-index: 5;
}

/* Flying Objects */
.flying-object {
  position: absolute;
  font-size: 3rem;
  z-index: 50;
}

.flying-object.flying.bird {
  animation: flyBird 1s ease-in-out forwards;
}

.flying-object.flying.ufo {
  animation: flyUFO 1s ease-in-out forwards;
}

@keyframes flyBird {
  0% { left: -10%; top: 35%; }
  100% { left: 110%; top: 25%; }
}

@keyframes flyUFO {
  0% { left: 50%; top: 60%; opacity: 1; }
  50% { left: 50%; top: 30%; }
  100% { left: 50%; top: -20%; opacity: 0; }
}

/* Confetti */
.confetti-container {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  width: 10px;
  height: 10px;
  top: -10px;
  animation: confettiFall 3s ease-out forwards;
}

@keyframes confettiFall {
  0% { top: -10px; transform: rotate(0deg); opacity: 1; }
  100% { top: 100%; transform: rotate(720deg); opacity: 0; }
}

/* Power Bar */
.fg-power-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.fg-power-bar {
  position: relative;
  width: 300px;
  height: 30px;
  background: #333;
  border-radius: 15px;
  overflow: hidden;
  border: 3px solid #555;
}

.fg-power-fill {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  width: 0%;
  background: #f44336;
  transition: background 0.1s;
  box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.2);
}

/* Animate power bar when filling */
.fg-power-fill:not([style*="width: 0"]) {
  animation: powerPulse 0.15s ease-in-out infinite alternate;
}

@keyframes powerPulse {
  from { opacity: 0.9; }
  to { opacity: 1; }
}

.fg-power-optimal {
  position: absolute;
  left: 65%;
  width: 20%;
  height: 100%;
  background: rgba(76, 175, 80, 0.3);
  border-left: 2px dashed rgba(76, 175, 80, 0.8);
  border-right: 2px dashed rgba(76, 175, 80, 0.8);
}

.fg-power-indicator {
  position: absolute;
  top: -5px;
  left: 0%;
  width: 4px;
  height: 40px;
  background: white;
  border-radius: 2px;
  transform: translateX(-50%);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
}

.fg-power-label {
  font-size: 0.9rem;
  color: #666;
}

/* Kick Result */
.fg-result {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.75rem 1.5rem;
  border-radius: 10px;
  text-align: center;
  z-index: 100;
  animation: slideDown 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

.fg-result.good {
  background: rgba(76, 175, 80, 0.95);
  color: white;
}

.fg-result.miss {
  background: rgba(244, 67, 54, 0.95);
  color: white;
}

.fg-result span {
  display: block;
}

.fg-result span:first-child {
  font-size: 1.5rem;
  font-weight: bold;
}

.fg-result-sub {
  font-size: 0.9rem;
  margin-top: 0.25rem;
  opacity: 0.9;
}

/* Mobile - even more compact */
@media (max-width: 600px) {
  .fg-result {
    padding: 0.5rem 1rem;
    top: 2%;
  }
  
  .fg-result span:first-child {
    font-size: 1.2rem;
  }
  
  .fg-result-sub {
    font-size: 0.8rem;
  }
}

.fg-controls {
  display: flex;
  gap: 2rem;
  margin-top: 0.5rem;
}

.fieldgoal-scoreboard {
  min-width: 150px;
}

.easter-egg-message {
  font-size: 1rem;
  color: #666;
  margin-top: 0.5rem;
}

/* Rainbow Ball (Konami Code) */
.football.rainbow-ball {
  animation: rainbowGlow 0.5s linear infinite;
}

@keyframes rainbowGlow {
  0% { filter: drop-shadow(0 0 10px red) hue-rotate(0deg); }
  25% { filter: drop-shadow(0 0 10px yellow) hue-rotate(90deg); }
  50% { filter: drop-shadow(0 0 10px lime) hue-rotate(180deg); }
  75% { filter: drop-shadow(0 0 10px cyan) hue-rotate(270deg); }
  100% { filter: drop-shadow(0 0 10px red) hue-rotate(360deg); }
}

.fieldgoal-game.konami-flash {
  animation: konamiFlash 0.5s ease;
}

@keyframes konamiFlash {
  0%, 100% { background: inherit; }
  25% { background: rgba(255, 0, 0, 0.2); }
  50% { background: rgba(0, 255, 0, 0.2); }
  75% { background: rgba(0, 0, 255, 0.2); }
}

/* Night Mode */
.fieldgoal-game.night-mode .football-field {
  background: linear-gradient(to bottom, #0a0a2e 0%, #0a0a2e 25%, #1a3a1a 25%, #1a3a1a 100%);
}

.fieldgoal-game.night-mode .football-field::before {
  content: "✨⭐✨⭐✨⭐✨";
  position: absolute;
  top: 5%;
  left: 0;
  right: 0;
  text-align: center;
  font-size: 1rem;
  animation: twinkle 1s ease infinite;
  z-index: 1;
}

@keyframes twinkle {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

.fieldgoal-game.night-mode .crowd {
  background: linear-gradient(to bottom, #1a1a1a, #0a0a0a);
}

/* Disco Mode */
.fieldgoal-game.disco-mode .football-field {
  animation: discoField 0.3s ease infinite;
}

@keyframes discoField {
  0% { filter: hue-rotate(0deg) saturate(1.5); }
  25% { filter: hue-rotate(90deg) saturate(1.5); }
  50% { filter: hue-rotate(180deg) saturate(1.5); }
  75% { filter: hue-rotate(270deg) saturate(1.5); }
  100% { filter: hue-rotate(360deg) saturate(1.5); }
}

.fieldgoal-game.disco-mode .goalpost {
  animation: discoGlow 0.5s ease infinite alternate;
}

@keyframes discoGlow {
  0% { filter: drop-shadow(0 0 10px magenta); }
  100% { filter: drop-shadow(0 0 20px cyan); }
}

/* Moonshot Animation */
.football.moonshot-animation {
  animation: moonshot 1s ease-in forwards;
}

@keyframes moonshot {
  0% {
    transform: translate(-50%, -50%) scale(1);
    filter: none;
  }
  50% {
    transform: translate(-50%, -200%) scale(0.5);
    filter: drop-shadow(0 0 20px #ffff00);
  }
  100% {
    transform: translate(-50%, -500%) scale(0.1);
    filter: drop-shadow(0 0 30px white);
  }
}

/* Backwards Kick Animation */
.football.backwards-animation {
  animation: backwards 0.6s ease-out forwards;
}

@keyframes backwards {
  0% { transform: translate(-50%, -50%) scale(1) rotate(0deg); }
  50% { transform: translate(-50%, 0%) scale(0.9) rotate(-180deg); }
  100% { transform: translate(-50%, 50%) scale(0.8) rotate(-360deg); }
}

/* Banana Kick Animation */
.football.banana-animation {
  animation: bananaKick 0.8s ease-out forwards;
}

@keyframes bananaKick {
  0% {
    transform: translate(-50%, -50%) scale(1);
    filter: none;
  }
  25% {
    transform: translate(-100%, -100%) scale(0.8) rotate(45deg);
    filter: drop-shadow(0 0 5px #FFD700);
  }
  75% {
    transform: translate(0%, -200%) scale(0.5) rotate(-45deg);
    filter: drop-shadow(0 0 10px #FFD700);
  }
  100% {
    transform: translate(-50%, -300%) scale(0.4) rotate(0deg);
    filter: drop-shadow(0 0 5px #FFD700);
  }
}

/* Flying Cow */
.flying-object.flying.cow {
  animation: flyCow 1.2s ease-in-out forwards;
}

@keyframes flyCow {
  0% { left: 50%; top: 90%; transform: scale(0.5); }
  50% { left: 50%; top: 40%; transform: scale(1.5) rotate(20deg); }
  100% { left: 120%; top: 20%; transform: scale(1) rotate(45deg); }
}

/* Flying Superhero */
.flying-object.flying.superhero {
  animation: flySuperhero 1s ease-out forwards;
}

@keyframes flySuperhero {
  0% { right: -10%; left: auto; top: 80%; transform: scale(1); }
  30% { right: 40%; top: 40%; transform: scale(1.5); }
  100% { right: 120%; top: -10%; transform: scale(2) rotate(-15deg); }
}

/* Field Goal Icon for home page */
.fieldgoal-icon {
  background: linear-gradient(135deg, #228b22 0%, #1a6b1a 100%);
  position: relative;
}

.fieldgoal-post {
  width: 50px;
  height: 40px;
  position: relative;
}

.fieldgoal-post::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 20px;
  background: #ffeb3b;
}

.fieldgoal-post::after {
  content: "";
  position: absolute;
  top: 0;
  left: 5px;
  right: 5px;
  height: 4px;
  background: #ffeb3b;
  box-shadow: -18px -20px 0 0 #ffeb3b, 18px -20px 0 0 #ffeb3b;
}

.fieldgoal-ball {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 16px;
  height: 10px;
  background: #8B4513;
  border-radius: 50%;
  border: 1px solid #5D3A1A;
}

/* Responsive adjustments for field goal */
@media (max-width: 600px) {
  .football-field {
    width: 100%;
    max-width: 400px;
    height: 280px;
  }

  .goalpost {
    width: 130px;
    height: 100px;
  }

  .fg-power-bar {
    width: 250px;
  }

  .fg-controls {
    flex-direction: column;
    gap: 0.5rem;
  }
}

/* ==================== Breakout Game Styles ==================== */

.breakout-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.breakout-game {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  justify-content: center;
}

.breakout-main {
  position: relative;
}

#breakoutCanvas {
  border: 3px solid rgba(255, 255, 255, 0.3);
  border-radius: 8px;
  background: linear-gradient(180deg, #1a1a2e 0%, #16213e 100%);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

.breakout-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 150px;
}

.breakout-controls {
  background: rgba(255, 255, 255, 0.1);
  padding: 1rem;
  border-radius: 8px;
}

.breakout-controls h3 {
  margin: 0 0 0.75rem 0;
  font-size: 1rem;
  color: #fff;
  text-align: center;
}

.breakout-controls .control-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.9);
}

.breakout-controls .key-icon {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  min-width: 60px;
  text-align: center;
}

.breakout-start {
  width: 100%;
}

.breakout-scoreboard {
  position: absolute;
  top: 1rem;
  right: 1rem;
}

.breakout-paused {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.85);
  padding: 2rem 3rem;
  border-radius: 12px;
  text-align: center;
  z-index: 10;
}

.breakout-paused p {
  margin: 0;
  font-size: 2rem;
  font-weight: bold;
  color: #fff;
}

.breakout-paused .pause-hint {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 0.5rem;
}

/* Breakout Icon for home page */
.breakout-icon {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 100%);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.breakout-bricks {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  width: 50px;
}

.breakout-brick {
  width: 10px;
  height: 6px;
  border-radius: 1px;
}

.breakout-brick.red { background: #e74c3c; }
.breakout-brick.orange { background: #e67e22; }
.breakout-brick.yellow { background: #f1c40f; }
.breakout-brick.green { background: #2ecc71; }

.breakout-ball {
  width: 8px;
  height: 8px;
  background: #fff;
  border-radius: 50%;
  margin-top: 8px;
}

.breakout-paddle {
  width: 24px;
  height: 6px;
  background: linear-gradient(180deg, #9b59b6 0%, #8e44ad 100%);
  border-radius: 3px;
  margin-top: 4px;
}

/* Responsive adjustments for breakout */
@media (max-width: 900px) {
  .breakout-game {
    flex-direction: column;
    align-items: center;
  }

  .breakout-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    min-width: auto;
  }

  .breakout-scoreboard {
    position: static;
    margin-bottom: 1rem;
  }
}

@media (max-width: 600px) {
  .breakout-container {
    padding: 1rem;
  }
  
  .breakout-container h1 {
    font-size: 1.5rem;
  }

  #breakoutCanvas {
    width: 100%;
    max-width: 100%;
    height: auto;
  }

  .breakout-controls {
    padding: 0.75rem;
  }

  .breakout-controls .control-item {
    font-size: 0.75rem;
  }
  
  .breakout-paused {
    padding: 1.5rem 2rem;
  }
  
  .breakout-paused p {
    font-size: 1.5rem;
  }
}

/* Matchy Moo Icon */
.matchy-moo-icon {
  background: linear-gradient(135deg, #1a5f2a 0%, #0d3d18 100%);
  position: relative;
}

.matchy-cards-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.matchy-card-mini {
  width: 24px;
  height: 30px;
  background: linear-gradient(135deg, #1a5f2a 0%, #0d3d18 100%);
  border: 2px solid #c41e3a;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: bold;
  color: #ffd700;
}

.matchy-card-mini.flipped-mini {
  background: linear-gradient(135deg, #fff5f5 0%, #ffe8e8 100%);
  color: #c41e3a;
}

/* ==================== Responsive Visibility Classes ==================== */

/* Mobile-only: hidden on desktop, shown on touch devices */
.mobile-only {
  display: none !important;
}

/* Desktop-only: shown on desktop, hidden on touch devices */
.desktop-only {
  /* Use initial display value - don't override with flex */
}

@media (hover: none) and (pointer: coarse) {
  /* Touch devices */
  .mobile-only {
    display: flex !important;
  }
  
  .mobile-only.tetris-inline-score {
    display: flex !important;
  }

  .desktop-only {
    display: none !important;
  }
}

/* ==================== Tetris Touch Controls ==================== */

.tetris-touch-controls {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
}

.tetris-touch-controls .touch-row {
  display: flex;
  gap: 0.5rem;
  justify-content: center;
}

.tetris-touch-controls .touch-btn {
  width: 60px;
  height: 50px;
  border: none;
  border-radius: 8px;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.tetris-touch-controls .touch-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

.tetris-touch-controls .drop-btn {
  width: 130px;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
}

@media (hover: none) and (pointer: coarse) {
  .tetris-touch-controls {
    display: flex;
  }
}

/* Mobile start button for Tetris */
.tetris-start-mobile {
  display: none;
  width: 100%;
  padding: 1.2rem 2rem;
  font-size: 1.3rem;
  margin-bottom: 1rem;
  background: linear-gradient(135deg, #e74c3c 0%, #c0392b 100%);
  animation: pulse 2s infinite;
}

.tetris-start-mobile.hidden {
  display: none !important;
}

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

@media (hover: none) and (pointer: coarse) {
  .tetris-start-mobile {
    display: block;
  }
}

/* ==================== Kick Game Touch Controls ==================== */

.kick-touch-controls {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
}

.kick-touch-controls .touch-row {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  width: 100%;
}

.kick-touch-controls .touch-btn {
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: bold;
  color: white;
  cursor: pointer;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  -webkit-appearance: none;
}

.kick-touch-controls .aim-btn {
  flex: 1;
  max-width: 150px;
  padding: 0.8rem 1rem;
}

.kick-touch-controls .kick-btn {
  width: 100%;
  max-width: 310px;
  padding: 1.2rem 2rem;
  font-size: 1.3rem;
  background: linear-gradient(135deg, #27ae60 0%, #1e8449 100%);
  transition: transform 0.1s, box-shadow 0.1s, background 0.1s;
}

.kick-touch-controls .touch-btn:active {
  transform: scale(0.95);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
}

/* Visual feedback when holding kick button */
.kick-touch-controls .kick-btn:active {
  transform: scale(0.97);
  background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
  box-shadow: 0 2px 10px rgba(39, 174, 96, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
  animation: holdPulse 0.3s ease-in-out infinite alternate;
}

@keyframes holdPulse {
  from {
    box-shadow: 0 2px 10px rgba(39, 174, 96, 0.5), inset 0 0 20px rgba(255, 255, 255, 0.1);
  }
  to {
    box-shadow: 0 4px 20px rgba(39, 174, 96, 0.7), inset 0 0 30px rgba(255, 255, 255, 0.2);
  }
}

@media (hover: none) and (pointer: coarse) {
  .kick-touch-controls {
    display: flex;
  }
}

/* ==================== Matchy Moo Card Game ==================== */

/* Card count selector in setup */
.card-count-options {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.card-count-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 0.5rem;
  border-radius: 12px;
  transition: transform 0.2s, background 0.2s;
}

.card-count-option:hover {
  transform: scale(1.05);
  background: rgba(255, 255, 255, 0.1);
}

.card-count-option input[type="radio"] {
  display: none;
}

.card-count-preview {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1a5f2a 0%, #0d3d18 100%);
  border: 3px solid #c41e3a;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #ffd700;
  margin-bottom: 0.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card-count-option input[type="radio"]:checked + .card-count-preview {
  border-color: #ffd700;
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.5);
}

.card-count-label {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
}

/* Matchy Moo container */
.matchy-moo-container {
  max-width: 1200px;
}

.matchy-moo-scoreboard {
  min-width: 150px;
}

/* Card board grid */
.matchy-moo-board {
  display: grid;
  gap: 10px;
  padding: 16px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 12px;
  justify-content: center;
  margin: 0.5rem auto;
}

/* 12 cards: 4 columns x 3 rows */
.matchy-moo-board.cards-12 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 420px;
}

/* 24 cards: 6 columns x 4 rows */
.matchy-moo-board.cards-24 {
  grid-template-columns: repeat(6, 1fr);
  max-width: 620px;
}

/* 36 cards: 6 columns x 6 rows */
.matchy-moo-board.cards-36 {
  grid-template-columns: repeat(6, 1fr);
  max-width: 620px;
}

/* Individual card */
.matchy-card {
  width: 90px;
  height: 112px;
  perspective: 1000px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.5s;
  -webkit-transform-style: preserve-3d;
  transform-style: preserve-3d;
}

.matchy-card.flipped .card-inner {
  transform: rotateY(180deg);
}

.matchy-card.flipped .card-front {
  visibility: hidden;
}

.card-front,
.card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Card front - Harvoli themed back design */
.card-front {
  background: linear-gradient(135deg, #1a5f2a 0%, #0d3d18 100%);
  border: 3px solid #c41e3a;
  flex-direction: column;
  overflow: hidden;
}

.card-front::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 215, 0, 0.1) 0%, transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(255, 215, 0, 0.1) 0%, transparent 30%),
    repeating-linear-gradient(
      45deg,
      transparent,
      transparent 10px,
      rgba(255, 255, 255, 0.03) 10px,
      rgba(255, 255, 255, 0.03) 20px
    );
  pointer-events: none;
}

.harvoli-logo {
  display: flex;
  flex-direction: column;
  align-items: center;
  z-index: 1;
}

.harvoli-h {
  font-size: 2.2rem;
  font-weight: bold;
  color: #ffd700;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1;
}

.harvoli-text {
  font-size: 0.7rem;
  color: #ffd700;
  text-transform: uppercase;
  letter-spacing: 2px;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

/* Card back - Christmas emoji display (plain white, no Harvoli design) */
.card-back {
  background: #ffffff;
  border: 3px solid #e0e0e0;
  -webkit-transform: rotateY(180deg);
  transform: rotateY(180deg);
  z-index: 2;
}

.card-emoji {
  font-size: 2.8rem;
}

/* Matched cards */
.matchy-card.matched .card-inner {
  transform: rotateY(180deg);
}

.matchy-card.matched .card-back {
  background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
  border-color: #28a745;
  box-shadow: 0 0 20px rgba(40, 167, 69, 0.4);
}

.matchy-card.matched {
  cursor: default;
  animation: matchPop 0.3s ease;
}

@keyframes matchPop {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

/* Instructions */
.matchy-moo-instructions {
  text-align: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Tablet responsiveness */
@media (max-width: 900px) {
  .matchy-card {
    width: 80px;
    height: 100px;
  }

  .harvoli-h {
    font-size: 2rem;
  }

  .harvoli-text {
    font-size: 0.6rem;
    letter-spacing: 2px;
  }

  .card-emoji {
    font-size: 2.5rem;
  }

  .matchy-moo-board {
    gap: 8px;
    padding: 12px;
  }

  .matchy-moo-board.cards-12 {
    max-width: 370px;
  }

  .matchy-moo-board.cards-24 {
    max-width: 550px;
  }

  .matchy-moo-board.cards-36 {
    max-width: 550px;
  }
}

/* Mobile responsiveness */
@media (max-width: 600px) {
  .matchy-moo-board {
    gap: 6px;
    padding: 8px;
  }

  .matchy-card {
    width: 60px;
    height: 75px;
  }

  .harvoli-h {
    font-size: 1.5rem;
  }

  .harvoli-text {
    font-size: 0.45rem;
    letter-spacing: 1px;
  }

  .card-emoji {
    font-size: 1.8rem;
  }

  /* 12 cards: 4 columns */
  .matchy-moo-board.cards-12 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 280px;
  }

  /* 24 cards: 4 columns */
  .matchy-moo-board.cards-24 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 280px;
  }

  /* 36 cards: 4 columns */
  .matchy-moo-board.cards-36 {
    grid-template-columns: repeat(4, 1fr);
    max-width: 280px;
  }

  .card-count-preview {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }
}

@media (max-width: 400px) {
  .matchy-card {
    width: 50px;
    height: 62px;
  }

  .harvoli-h {
    font-size: 1.2rem;
  }

  .harvoli-text {
    font-size: 0.35rem;
  }

  .card-emoji {
    font-size: 1.5rem;
  }

  .matchy-moo-board.cards-12 {
    max-width: 240px;
  }

  .matchy-moo-board.cards-24 {
    max-width: 240px;
  }

  .matchy-moo-board.cards-36 {
    max-width: 240px;
  }
}

/* ======================= */
/* SNAKE GAME STYLES       */
/* ======================= */

/* Home page snake icon */
.snake-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snake-preview {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
  gap: 4px;
}

.snake-segment {
  width: 20px;
  height: 20px;
  background: #22c55e;
  border-radius: 4px;
}

.snake-segment.head {
  background: transparent;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snake-food {
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Speed options */
.speed-options {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

.speed-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.speed-option:hover {
  background: #e9ecef;
}

.speed-option:has(input:checked) {
  background: #e7e3ff;
  border-color: #667eea;
}

.speed-option input[type="radio"] {
  accent-color: #667eea;
}

.speed-name {
  font-weight: 500;
}

/* Snake game container */
.snake-container {
  max-width: none;
  width: auto;
}

.snake-game {
  display: flex;
  gap: 2rem;
  justify-content: center;
  align-items: flex-start;
}

.snake-main {
  display: flex;
  flex-direction: column;
  align-items: center;
}

#snakeCanvas {
  border: 3px solid #333;
  border-radius: 8px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.snake-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  min-width: 180px;
}

.snake-controls, .snake-tips {
  background: #f8f9fa;
  padding: 1rem;
  border-radius: 0.5rem;
  text-align: left;
}

.snake-controls h3, .snake-tips h3 {
  font-size: 1rem;
  margin: 0 0 0.75rem 0;
  color: #333;
}

.control-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.control-item .key {
  background: #333;
  color: white;
  padding: 0.25rem 0.5rem;
  border-radius: 4px;
  font-family: monospace;
  font-size: 0.8rem;
}

.snake-tips ul {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 0.85rem;
}

.snake-tips li {
  margin-bottom: 0.5rem;
}

/* Snake mobile controls */
.snake-mobile-controls {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-top: 1rem;
}

.snake-control-row {
  display: flex;
  gap: 0.25rem;
}

.snake-control-btn {
  width: 60px;
  height: 60px;
  font-size: 1.5rem;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  border-radius: 12px;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.snake-control-btn:active {
  transform: scale(0.95);
  opacity: 0.9;
}

/* Game buttons */
.game-button {
  display: block;
  width: 100%;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  border: none;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.2s;
  touch-action: manipulation;
}

.game-button.start-button {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
}

.game-button.start-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 20px rgba(34, 197, 94, 0.4);
}

.game-button.back-button {
  background: #6c757d;
  color: white;
}

.game-button.back-button:hover {
  background: #5a6268;
}

/* Game result modal */
.game-result {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
}

.game-result.hidden {
  display: none;
}

.result-content {
  background: white;
  padding: 2rem;
  border-radius: 1rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
}

.result-content h2 {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.result-content p {
  color: #666;
  margin-bottom: 1.5rem;
}

.result-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-bottom: 1.5rem;
}

.stat {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.stat-value {
  font-size: 2rem;
  font-weight: bold;
  color: #667eea;
}

/* Paused overlay */
.paused-overlay {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: rgba(0, 0, 0, 0.9);
  padding: 2rem 3rem;
  border-radius: 1rem;
  z-index: 50;
}

.paused-overlay.hidden {
  display: none;
}

.paused-content {
  text-align: center;
  color: white;
}

.paused-content h2 {
  color: white;
  margin-bottom: 0.5rem;
}

.paused-content p {
  color: rgba(255, 255, 255, 0.7);
}

/* Snake leaderboard */
.snake-leaderboard {
  margin: 1rem 0;
}

.snake-leaderboard .leaderboard {
  background: rgba(255, 255, 255, 0.95);
  max-width: 280px;
}

.snake-leaderboard-msg {
  background: linear-gradient(135deg, #22c55e 0%, #16a34a 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  margin: 0.5rem 0;
  animation: leaderboard-celebrate 0.5s ease-out;
}

/* Snake scoreboard positioning */
.snake-scoreboard {
  position: static;
  margin-bottom: 1rem;
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.snake-scoreboard .score-item {
  border-bottom: none;
  flex-direction: column;
  gap: 0.25rem;
}

/* Snake responsive */
@media (max-width: 900px) {
  .snake-game {
    flex-direction: column;
    align-items: center;
  }

  .snake-sidebar {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
    max-width: 420px;
  }

  .snake-controls, .snake-tips {
    flex: 1;
    min-width: 150px;
  }

  .snake-sidebar .game-button {
    width: auto;
    flex: 1;
  }
}

@media (max-width: 500px) {
  #snakeCanvas {
    width: 300px;
    height: 300px;
  }

  .snake-mobile-controls {
    display: flex;
  }

  .snake-control-btn {
    width: 50px;
    height: 50px;
    font-size: 1.2rem;
  }

  .snake-controls {
    display: none;
  }

  .snake-scoreboard {
    gap: 1rem;
  }

  .score-label {
    font-size: 0.8rem;
  }

  .score-value {
    font-size: 1.2rem;
  }
}

/* ======================= */
/* PLAYER NAME PERSISTENCE */
/* ======================= */

.player-input-wrapper {
  position: relative;
}

.saved-player-notice {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
  padding: 0.75rem 1rem;
  background: linear-gradient(135deg, #e7f3e7 0%, #d4edda 100%);
  border-radius: 0.5rem;
  border: 1px solid #28a745;
  font-size: 0.9rem;
}

.saved-player-notice.hidden {
  display: none;
}

.welcome-back {
  color: #155724;
}

.welcome-back strong {
  color: #0d4f1c;
}

.not-me-link {
  color: #667eea;
  text-decoration: none;
  font-size: 0.85rem;
  margin-left: auto;
}

.not-me-link:hover {
  text-decoration: underline;
}

/* ======================= */
/* NAVIGATION              */
/* ======================= */

.main-nav {
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.75rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo:hover {
  color: #764ba2;
}

.nav-links {
  display: flex;
  gap: 0.5rem;
}

.nav-link {
  padding: 0.5rem 1rem;
  color: #333;
  text-decoration: none;
  border-radius: 0.5rem;
  font-weight: 500;
  transition: all 0.2s;
}

.nav-link:hover {
  background: #f0f0f0;
  color: #667eea;
}

.nav-link.active {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
}

.main-content {
  padding-top: 70px;
  padding-bottom: 2rem;
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Hamburger button - hidden on desktop */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  padding: 4px;
  background: none;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 3px;
  background: #333;
  border-radius: 2px;
  transition: all 0.3s ease;
}

.nav-hamburger.open .hamburger-line:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-hamburger.open .hamburger-line:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open .hamburger-line:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* Mobile nav */
@media (max-width: 600px) {
  .nav-hamburger {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    flex-direction: column;
    padding: 0;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
  }
  
  .nav-links.open {
    max-height: 300px;
    padding: 0.5rem 0;
  }
  
  .nav-link {
    padding: 1rem 1.5rem;
    border-radius: 0;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .nav-link.active {
    border-radius: 0;
  }
}

/* ======================= */
/* ABOUT PAGE              */
/* ======================= */

.about-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.about-container h1 {
  text-align: center;
  color: #333;
  margin-bottom: 2rem;
}

.about-section {
  margin-bottom: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid #eee;
}

.about-section:last-of-type {
  border-bottom: none;
}

.about-section h2 {
  color: #667eea;
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.about-section p {
  color: #555;
  line-height: 1.8;
  font-size: 1.1rem;
  margin-bottom: 1rem;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.team-member {
  text-align: center;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 1rem;
  transition: transform 0.2s;
}

.team-member:hover {
  transform: translateY(-5px);
}

.team-emoji {
  font-size: 3rem;
  margin-bottom: 0.5rem;
}

.team-member h3 {
  color: #333;
  margin-bottom: 0.5rem;
}

.team-member p {
  color: #666;
  font-size: 0.9rem;
  margin: 0;
}

.about-cta {
  text-align: center;
  margin-top: 2rem;
}

/* ======================= */
/* CHANGELOG PAGE          */
/* ======================= */

.changelog-container {
  max-width: 800px;
  margin: 2rem auto;
  padding: 2rem;
  background: white;
  border-radius: 1rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
}

.changelog-container h1 {
  text-align: center;
  color: #333;
  margin-bottom: 1rem;
}

.changelog-intro {
  text-align: center;
  color: #666;
  font-size: 1.1rem;
  margin-bottom: 2rem;
}

.changelog-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.changelog-entry {
  display: flex;
  gap: 1.5rem;
  padding: 1.5rem;
  background: #f8f9fa;
  border-radius: 1rem;
  border-left: 4px solid #667eea;
}

.changelog-date {
  flex-shrink: 0;
  text-align: center;
  padding: 0.5rem;
  min-width: 70px;
}

.changelog-date .date-day {
  display: block;
  font-size: 1.1rem;
  font-weight: bold;
  color: #667eea;
}

.changelog-date .date-year {
  display: block;
  font-size: 0.85rem;
  color: #999;
}

.changelog-content h3 {
  color: #333;
  margin-bottom: 0.75rem;
  font-size: 1.2rem;
}

.changelog-content p {
  color: #555;
  line-height: 1.7;
  margin-bottom: 1rem;
}

.changelog-tag {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  border-radius: 1rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.changelog-tag.new-game {
  background: #d4edda;
  color: #155724;
}

.changelog-tag.improvement {
  background: #cce5ff;
  color: #004085;
}

.changelog-tag.announcement {
  background: #fff3cd;
  color: #856404;
}

.changelog-tag.fix {
  background: #f8d7da;
  color: #721c24;
}

/* Mobile changelog */
@media (max-width: 500px) {
  .changelog-entry {
    flex-direction: column;
    gap: 0.75rem;
  }
  
  .changelog-date {
    text-align: left;
    display: flex;
    gap: 0.5rem;
    align-items: baseline;
  }
}

/* ======================= */
/* BACK TO GAMES BUTTON    */
/* ======================= */

.back-to-games {
  margin-bottom: 1rem;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: #667eea;
  text-decoration: none;
  font-weight: 500;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  transition: all 0.2s;
}

.back-link:hover {
  background: #f0f0f0;
  color: #764ba2;
}

/* Position nicely in game containers */
.new-game-container .back-to-games,
.game-container .back-to-games {
  text-align: left;
  margin-bottom: 1.5rem;
}

/* ======================= */
/* BONKERS BONK GAME       */
/* ======================= */

.bonkers-sound-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: rgba(76, 175, 80, 0.3);
  border: 2px solid rgba(76, 175, 80, 0.8);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.bonkers-sound-toggle:hover {
  transform: scale(1.1);
}

.bonkers-sound-toggle:active {
  transform: scale(0.95);
}

.bonkers-bonk-container {
  max-width: 500px;
}

.bonkers-bonk-scoreboard {
  gap: 2rem;
}

.bonkers-bonk-board {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  padding: 1.5rem;
  background: linear-gradient(180deg, #8B4513 0%, #654321 100%);
  border-radius: 1rem;
  margin: 1.5rem auto;
  max-width: 400px;
}

.mole-hole {
  position: relative;
  aspect-ratio: 1;
  cursor: pointer;
  overflow: hidden;
  border-radius: 50%;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.hole-dirt {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 50%;
  background: linear-gradient(180deg, #5D4037 0%, #3E2723 100%);
  border-radius: 50%;
  z-index: 2;
}

.mole {
  position: absolute;
  bottom: -100%;
  left: 50%;
  transform: translateX(-50%);
  width: 70%;
  height: 80%;
  background: linear-gradient(180deg, #A1887F 0%, #795548 100%);
  border-radius: 50% 50% 40% 40%;
  transition: bottom 0.15s ease-out;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mole-up {
  bottom: 20%;
}

.mole-bonked {
  bottom: 0% !important;
}

.mole-face {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 15%;
}

.mole-eyes {
  display: flex;
  gap: 20%;
  margin-bottom: 5%;
}

.mole-eye {
  width: 12px;
  height: 12px;
  background: #333;
  border-radius: 50%;
  position: relative;
}

.mole-eye::after {
  content: '';
  position: absolute;
  top: 2px;
  left: 2px;
  width: 4px;
  height: 4px;
  background: white;
  border-radius: 50%;
}

.mole-nose {
  width: 15px;
  height: 12px;
  background: #FF6B6B;
  border-radius: 50%;
}

.mole-emoji {
  font-size: 2rem;
  margin-top: -10%;
}

.bonk-effect {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%) scale(0);
  font-size: 2.5rem;
  z-index: 10;
  opacity: 0;
  transition: all 0.15s ease-out;
  pointer-events: none;
}

.bonk-effect.show {
  transform: translateX(-50%) scale(1.2);
  opacity: 1;
}

.mole-hole.miss {
  animation: shake 0.2s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.bonkers-bonk-instructions {
  color: #666;
  font-size: 0.9rem;
  margin-top: 1rem;
}

/* Timer warning states */
.timer-warning {
  color: #f0ad4e !important;
  animation: pulse 1s infinite;
}

.timer-critical {
  color: #d9534f !important;
  animation: pulse 0.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}

/* Result stats */
.result-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 1.5rem 0;
  flex-wrap: wrap;
}

.stat-item {
  text-align: center;
}

.stat-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
  color: #667eea;
}

/* Start button in game */
.start-button {
  margin-bottom: 1rem;
}

.start-button.hidden {
  display: none;
}

/* Home page icon for Bonkers Bonk */
.bonkers-bonk-icon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
}

.bonkers-holes-preview {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 4px;
  width: 50px;
}

.bonkers-hole-mini {
  width: 14px;
  height: 14px;
  background: #8B4513;
  border-radius: 50%;
  position: relative;
}

.bonkers-hole-mini.has-mole::after {
  content: '🐹';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
}

.bonkers-hammer {
  font-size: 1.5rem;
}

/* Mobile responsiveness for Bonkers Bonk */
@media (max-width: 500px) {
  .bonkers-bonk-container {
    padding: 1.5rem 1rem;
  }
  
  .bonkers-bonk-board {
    gap: 0.75rem;
    padding: 1rem;
    max-width: 280px;
  }
  
  .mole-eye {
    width: 8px;
    height: 8px;
  }
  
  .mole-eye::after {
    width: 3px;
    height: 3px;
  }
  
  .mole-nose {
    width: 10px;
    height: 8px;
  }
  
  .mole-emoji {
    font-size: 1.5rem;
  }
  
  .bonk-effect {
    font-size: 2rem;
  }
  
  /* Result popup mobile fixes */
  .bonkers-bonk-container .game-result {
    padding: 1rem;
    margin: 1rem -0.5rem;
  }
  
  .bonkers-bonk-container .game-result h2 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
  }
  
  .bonkers-bonk-container .game-result p {
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
  }
  
  .bonkers-bonk-container .result-stats {
    gap: 0.75rem;
    margin: 1rem 0;
  }
  
  .bonkers-bonk-container .stat-item {
    min-width: 70px;
  }
  
  .bonkers-bonk-container .stat-label {
    font-size: 0.75rem;
  }
  
  .bonkers-bonk-container .stat-value {
    font-size: 1.1rem;
  }
  
  .bonkers-bonk-container .result-buttons {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
  }
  
  .bonkers-bonk-container .result-buttons .play-button {
    margin-left: 0;
    padding: 0.75rem 1rem;
    font-size: 1rem;
  }
}

/* ======================= */
/* FOOTER                  */
/* ======================= */

.main-footer {
  background: linear-gradient(135deg, #5a67d8 0%, #6b46c1 100%);
  padding: 2rem 1.5rem;
  margin-top: auto;
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
}

.footer-content {
  text-align: center;
}

.footer-tagline {
  font-size: 1.1rem;
  color: white;
  margin-bottom: 1rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.footer-links {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: white;
  text-decoration: underline;
}

.footer-divider {
  color: rgba(255, 255, 255, 0.5);
}

.footer-copyright {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  margin: 0;
}

/* ======================= */
/* RANDOM GAME BUTTON      */
/* ======================= */

.random-game-section {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 2px dashed #e9ecef;
}

.random-game-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
  color: white;
  padding: 1rem 2rem;
  border: none;
  border-radius: 2rem;
  font-size: 1.1rem;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: wiggle 3s ease-in-out infinite;
}

.random-game-button:hover {
  transform: scale(1.05);
  box-shadow: 0 5px 25px rgba(245, 87, 108, 0.4);
  animation: none;
}

@keyframes wiggle {
  0%, 100% { transform: rotate(0deg); }
  25% { transform: rotate(-2deg); }
  75% { transform: rotate(2deg); }
}

@keyframes spin {
  0% { transform: rotate(0deg) scale(1); }
  50% { transform: rotate(180deg) scale(1.1); }
  100% { transform: rotate(360deg) scale(1); }
}

/* ======================= */
/* GAME INSTRUCTIONS       */
/* ======================= */

.game-instructions {
  background: #f8f9fa;
  border-radius: 0.75rem;
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  text-align: left;
}

.game-instructions h3 {
  color: #667eea;
  font-size: 1rem;
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.game-instructions p {
  color: #555;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0;
}

/* ======================= */
/* SHARE SCORE             */
/* ======================= */

.share-section {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid #e9ecef;
}

.share-section p {
  font-size: 0.9rem !important;
  color: #666 !important;
  margin-bottom: 0.75rem !important;
}

.share-buttons {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.share-button {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 2rem;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
}

.share-button:hover {
  transform: scale(1.05);
  opacity: 0.9;
}

.share-button.copy-link {
  background: #667eea;
  color: white;
}

.share-button.twitter {
  background: #1DA1F2;
  color: white;
}

.share-button.whatsapp {
  background: #25D366;
  color: white;
}

.share-button.copied {
  background: #28a745;
}

@media (max-width: 500px) {
  .share-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .share-button {
    width: 100%;
    max-width: 200px;
    justify-content: center;
  }
}

/* ======================= */
/* MOBILE-FIRST IMPROVEMENTS */
/* ======================= */

/* Global mobile improvements */
@media (max-width: 600px) {
  /* Reduce padding on containers */
  .home-container, .new-game-container, .game-container {
    padding: 1.5rem 1rem;
    margin: 0.5rem;
    border-radius: 0.75rem;
  }
  
  /* Smaller headings */
  h1 {
    font-size: 1.75rem;
    margin-bottom: 1rem;
  }
  
  /* Improve button sizes for touch */
  .play-button {
    padding: 0.875rem 1.5rem;
    font-size: 1rem;
    min-height: 48px; /* Touch target size */
  }
  
  .play-button.secondary {
    margin-left: 0;
    margin-top: 0.5rem;
  }
  
  /* Stack result buttons on mobile */
  .result-buttons {
    flex-direction: column;
    gap: 0.5rem;
  }
  
  /* Game status smaller */
  .game-status {
    font-size: 1.1rem;
    margin-bottom: 1rem;
  }
  
  /* Scoreboard horizontal on mobile */
  .scoreboard {
    position: static;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 1rem;
    padding: 1rem;
    min-width: auto;
  }
  
  .score-item {
    flex-direction: column;
    border-bottom: none;
    padding: 0.25rem;
    min-width: 60px;
    text-align: center;
  }
  
  .score-label {
    font-size: 0.8rem;
  }
  
  .score-value {
    font-size: 1.25rem;
  }
}

/* Very small screens (320px) */
@media (max-width: 360px) {
  .home-container, .new-game-container, .game-container {
    padding: 1rem 0.75rem;
  }
  
  h1 {
    font-size: 1.5rem;
  }
  
  .game-card {
    width: 140px;
    padding: 1rem;
  }
  
  .game-card h2 {
    font-size: 1rem;
  }
  
  .game-icon {
    width: 60px;
    height: 60px;
  }
  
  /* Tic-Tac-Toe even smaller on tiny screens */
  .game-board {
    grid-template-columns: repeat(3, minmax(60px, 80px));
    grid-template-rows: repeat(3, minmax(60px, 80px));
    gap: 6px;
  }
}

/* Home page game cards - responsive grid */
@media (max-width: 768px) {
  .game-selection {
    gap: 1rem;
    justify-content: center;
  }
  
  .game-card {
    width: 160px;
    padding: 1.25rem;
  }
  
  .game-card h2 {
    font-size: 1rem;
    margin: 0.75rem 0 0.25rem;
  }
  
  .game-card p {
    font-size: 0.8rem;
  }
}

/* Improve touch targets across games */
.key, .wordle-key, .touch-btn, .matchy-card, .mole-hole {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
  -webkit-user-select: none;
  user-select: none;
}

/* Prevent zoom on input focus (iOS) */
input, select, textarea {
  font-size: 16px;
}

/* Prevent text selection during gameplay */
.game-page {
  -webkit-user-select: none;
  user-select: none;
}

/* Ensure canvas games don't overflow */
canvas {
  max-width: 100%;
  height: auto;
  touch-action: none;
}

/* ==================== TETRIS MOBILE-FIRST OVERHAUL ==================== */

/* Inline mobile score for Tetris */
.tetris-inline-score {
  display: none;
  justify-content: center;
  gap: 1rem;
  font-size: 0.85rem;
  color: #666;
  background: rgba(255, 255, 255, 0.9);
  padding: 0.4rem 1rem;
  border-radius: 20px;
  margin-bottom: 0.5rem;
}

.tetris-inline-score strong {
  color: #667eea;
  font-size: 1rem;
}

@media (hover: none) and (pointer: coarse), (max-width: 500px) {
  .tetris-inline-score {
    display: flex;
  }
}

/* Mobile Tetris - fit everything on screen without scrolling */
@media (max-width: 500px) {
  /* Remove padding to maximize space */
  .tetris-container {
    padding: 0.5rem;
  }
  
  /* Hide title on mobile during active play - takes too much space */
  .tetris-container h1 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }
  
  /* Compact status text */
  .tetris-container .game-status {
    font-size: 1rem;
    margin-bottom: 0.5rem;
  }
  
  /* Stack everything vertically and center */
  .tetris-game {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }
  
  /* Dynamic cell sizing based on viewport */
  .tetris-board {
    /* Calculate: (viewport width - padding) / 10 columns, max 20px */
    --cell-size: min(calc((100vw - 40px) / 10), 20px);
    grid-template-columns: repeat(10, var(--cell-size));
    grid-template-rows: repeat(20, var(--cell-size));
    padding: 2px;
    border-width: 2px;
  }
  
  .tetris-cell {
    width: var(--cell-size);
    height: var(--cell-size);
  }
  
  /* Sidebar becomes a compact row */
  .tetris-sidebar {
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    width: 100%;
  }
  
  /* Compact "Next" preview */
  .tetris-next {
    padding: 0.5rem;
  }
  
  .tetris-next h3 {
    font-size: 0.8rem;
    margin-bottom: 0.25rem;
  }
  
  .tetris-next-display {
    grid-template-columns: repeat(4, 12px);
    gap: 1px;
  }
  
  .tetris-next-cell {
    width: 12px;
    height: 12px;
  }
  
  /* Hide desktop controls section on mobile */
  .tetris-sidebar .tetris-controls {
    display: none !important;
  }
  
  /* Hide sidebar start button on mobile (using the top one) */
  .tetris-sidebar .tetris-start {
    display: none;
  }
  
  /* Compact touch controls */
  .tetris-touch-controls {
    margin-top: 0.5rem;
    padding: 0.5rem;
    gap: 0.25rem;
  }
  
  .tetris-touch-controls .touch-row {
    gap: 0.25rem;
  }
  
  .tetris-touch-controls .touch-btn {
    width: 50px;
    height: 44px;
    font-size: 1rem;
  }
  
  .tetris-touch-controls .drop-btn {
    width: 110px;
  }
  
  /* Mobile start button more compact */
  .tetris-start-mobile {
    padding: 0.8rem 1.5rem;
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  /* Compact scoreboard for tetris */
  .tetris-scoreboard {
    padding: 0.5rem;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
  }
  
  .tetris-scoreboard .score-item {
    min-width: 50px;
    padding: 0.1rem;
  }
  
  .tetris-scoreboard .score-label {
    font-size: 0.65rem;
  }
  
  .tetris-scoreboard .score-value {
    font-size: 1rem;
  }
}

/* Even smaller screens (iPhone SE, older phones) */
@media (max-width: 375px) {
  .tetris-container h1 {
    font-size: 1rem;
  }
  
  .tetris-container .game-status {
    font-size: 0.9rem;
  }
  
  .tetris-board {
    --cell-size: min(calc((100vw - 30px) / 10), 18px);
  }
  
  .tetris-next-display {
    grid-template-columns: repeat(4, 10px);
  }
  
  .tetris-next-cell {
    width: 10px;
    height: 10px;
  }
  
  .tetris-touch-controls .touch-btn {
    width: 44px;
    height: 40px;
    font-size: 0.9rem;
  }
  
  .tetris-touch-controls .drop-btn {
    width: 96px;
  }
  
  .tetris-scoreboard .score-item {
    min-width: 40px;
  }
  
  .tetris-scoreboard .score-label {
    font-size: 0.6rem;
  }
  
  .tetris-scoreboard .score-value {
    font-size: 0.9rem;
  }
}

/* Landscape mobile - use height constraint */
@media (max-height: 600px) and (orientation: landscape) {
  .tetris-container {
    padding: 0.25rem;
  }
  
  .tetris-container h1 {
    display: none;
  }
  
  .tetris-container .game-status {
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
  }
  
  .tetris-game {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .tetris-board {
    --cell-size: min(calc((100vh - 80px) / 20), 20px);
  }
  
  .tetris-touch-controls {
    flex-direction: row;
    gap: 0.5rem;
  }
  
  .tetris-touch-controls .touch-row {
    flex-direction: column;
  }
}

/* =============================================
   FLOPPY OLIVE GAME STYLES
   ============================================= */

.floppy-olive-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-overflow-scrolling: none;
  overscroll-behavior: none;
}

.floppy-olive-page.bg-sky {
  background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 70%, #98D4E8 100%);
}

.floppy-olive-page.bg-sunset {
  background: linear-gradient(180deg, #FF6B6B 0%, #FFA07A 40%, #FFD93D 80%, #6BCB77 100%);
}

.floppy-olive-page.bg-night {
  background: linear-gradient(180deg, #0D1B2A 0%, #1B263B 50%, #415A77 100%);
}

.floppy-olive-page.bg-forest {
  background: linear-gradient(180deg, #87CEEB 0%, #90EE90 60%, #228B22 100%);
}

.floppy-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0;
}

.floppy-container {
  position: relative;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  max-width: 500px;
  width: 100%;
  height: calc(100vh - 100px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.floppy-canvas {
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  touch-action: none;
  cursor: pointer;
}

/* Score display - top center */
.floppy-score-display {
  position: fixed;
  top: 15px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 100;
}

.floppy-current-score {
  font-size: 3rem;
  font-weight: bold;
  color: white;
  text-shadow: 
    2px 2px 0 #333,
    -2px -2px 0 #333,
    2px -2px 0 #333,
    -2px 2px 0 #333,
    0 4px 8px rgba(0, 0, 0, 0.3);
}

/* High score - top right */
.floppy-high-score {
  position: fixed;
  top: 15px;
  right: 15px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 100;
}

/* Overlays */
.floppy-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 8px;
  z-index: 50;
}

.floppy-overlay.hidden {
  display: none;
}

.floppy-overlay-content {
  text-align: center;
  padding: 2rem;
}

.floppy-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 3px 3px 0 #333;
  margin-bottom: 1rem;
}

.floppy-player-name {
  font-size: 1.5rem;
  color: #FFD700;
  font-weight: 600;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.floppy-instructions {
  font-size: 1.2rem;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.floppy-start-btn {
  font-size: 1.3rem;
  padding: 1rem 2.5rem;
  animation: pulse 1.5s ease-in-out infinite;
}

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

/* Game over styles */
.floppy-game-over-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #FF6B6B;
  text-shadow: 3px 3px 0 #333;
  margin-bottom: 1rem;
}

.floppy-final-score {
  font-size: 2rem;
  color: white;
  font-weight: bold;
  margin-bottom: 0.5rem;
  text-shadow: 2px 2px 0 #333;
}

.floppy-best-score {
  font-size: 1.2rem;
  color: #FFD700;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.floppy-medal {
  margin-bottom: 1rem;
  min-height: 3rem;
}

.floppy-buttons {
  flex-wrap: wrap;
  gap: 0.75rem;
}

.floppy-buttons .play-button {
  margin: 0;
}

.floppy-buttons .play-button.secondary {
  margin-left: 0;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
}

/* Difficulty options styling */
.difficulty-options {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.difficulty-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: #f8f9fa;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: background 0.2s;
}

.difficulty-option:hover {
  background: #e9ecef;
}

.difficulty-option input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: #667eea;
}

.difficulty-name {
  font-weight: 600;
  min-width: 80px;
}

.difficulty-desc {
  font-size: 0.85rem;
  color: #666;
}

/* Floppy Olive icon for home page */
.floppy-olive-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 3rem;
}

.floppy-olive-icon .olive-char {
  animation: float-olive 1.5s ease-in-out infinite;
}

@keyframes float-olive {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}

.floppy-olive-icon .pipe-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-left: 8px;
  gap: 12px;
}

.floppy-olive-icon .pipe-top,
.floppy-olive-icon .pipe-bottom {
  width: 16px;
  background: linear-gradient(90deg, #3d8b3d 0%, #5cb85c 40%, #4cae4c 60%, #3d8b3d 100%);
  border-radius: 2px;
}

.floppy-olive-icon .pipe-top {
  height: 20px;
}

.floppy-olive-icon .pipe-bottom {
  height: 20px;
}

/* Simon Sez icon on home page */
.simon-sez-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.simon-preview {
  width: 70px;
  height: 70px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 3px;
  border-radius: 50%;
  overflow: hidden;
  background: #1a1a2e;
  padding: 4px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.simon-quad {
  transition: all 0.3s ease;
}

.simon-quad.green {
  background: #22c55e;
  border-radius: 100% 0 0 0;
}

.simon-quad.red {
  background: #ef4444;
  border-radius: 0 100% 0 0;
}

.simon-quad.yellow {
  background: #eab308;
  border-radius: 0 0 0 100%;
}

.simon-quad.blue {
  background: #3b82f6;
  border-radius: 0 0 100% 0;
}

.game-card:hover .simon-quad {
  filter: brightness(1.2);
}

/* Slap Shot icon on home page */
.slap-shot-icon {
  width: 100px;
  height: 100px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.slap-shot-preview {
  width: 80px;
  height: 60px;
  background: linear-gradient(180deg, #e8f4fc 0%, #a0d0ed 100%);
  border-radius: 8px;
  position: relative;
  overflow: hidden;
}

.slap-shot-preview .preview-goal {
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 15px;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 4px,
    rgba(200, 200, 200, 0.8) 4px,
    rgba(200, 200, 200, 0.8) 5px
  );
  border: 2px solid #cc0000;
  border-bottom: none;
  border-radius: 3px 3px 0 0;
}

.slap-shot-preview .preview-goalie {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 1.2rem;
}

.slap-shot-preview .preview-puck {
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8rem;
}

.game-card:hover .slap-shot-preview {
  background: linear-gradient(180deg, #d0e8f7 0%, #80c0e8 100%);
}

/* Mobile responsiveness for Floppy Olive */
@media (max-width: 480px) {
  .floppy-current-score {
    font-size: 2.5rem;
  }
  
  .floppy-high-score {
    font-size: 0.9rem;
  }
  
  .floppy-title {
    font-size: 2rem;
  }
  
  .floppy-game-over-title {
    font-size: 2rem;
  }
  
  .floppy-final-score {
    font-size: 1.5rem;
  }
  
  .floppy-overlay-content {
    padding: 1.5rem;
  }
  
  .floppy-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .floppy-buttons .play-button {
    width: 100%;
    max-width: 200px;
  }
}

@media (max-width: 375px) {
  .floppy-current-score {
    font-size: 2rem;
  }
  
  .floppy-title {
    font-size: 1.7rem;
  }
  
  .floppy-instructions {
    font-size: 1rem;
  }
}

/* Prevent pull-to-refresh on mobile */
.floppy-olive-page {
  position: fixed;
  overflow: hidden;
}

/* Ensure no scrollbars */
.floppy-olive-page::-webkit-scrollbar {
  display: none;
}

.floppy-olive-page {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* =============================================
   SLAP SHOT GAME STYLES
   ============================================= */

.slap-shot-page {
  background: linear-gradient(135deg, #1e3a5f 0%, #0d1b2a 100%);
  min-height: 100vh;
}

.slap-shot-wrapper {
  padding-top: 0.5rem;
}

.slap-shot-container {
  max-width: 500px;
}

.slap-shot-container h1 {
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.slap-shot-scoreboard {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 0.5rem 1rem;
}

.slap-shot-scoreboard .score-item {
  color: white;
}

.slap-shot-scoreboard .score-value {
  color: #60a5fa;
}

.slap-shot-game {
  margin-top: 1rem;
}

/* Ice Rink */
.hockey-rink {
  position: relative;
  width: 100%;
  aspect-ratio: 4/3;
  max-height: 350px;
  background: linear-gradient(180deg, 
    #e8f4fc 0%, 
    #d0e8f7 30%, 
    #b8dcf2 60%, 
    #a0d0ed 100%
  );
  border-radius: 10px;
  overflow: hidden;
  box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.1);
}

/* Ice markings */
.hockey-rink::before {
  content: '';
  position: absolute;
  top: 65%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  border: 3px solid rgba(200, 30, 30, 0.5);
  border-radius: 50%;
}

.hockey-rink::after {
  content: '';
  position: absolute;
  top: 20%;
  left: 0;
  right: 0;
  height: 3px;
  background: rgba(200, 30, 30, 0.4);
}

/* Hockey Goal */
.hockey-goal {
  position: absolute;
  top: 5%;
  left: 50%;
  transform: translateX(-50%);
  width: 65%;
  height: 22%;
}

.goal-net-hockey {
  position: absolute;
  width: 100%;
  height: 100%;
  background: repeating-linear-gradient(
    90deg,
    transparent,
    transparent 8px,
    rgba(200, 200, 200, 0.6) 8px,
    rgba(200, 200, 200, 0.6) 10px
  ),
  repeating-linear-gradient(
    0deg,
    transparent,
    transparent 8px,
    rgba(200, 200, 200, 0.6) 8px,
    rgba(200, 200, 200, 0.6) 10px
  );
  background-color: rgba(255, 255, 255, 0.3);
  border-radius: 5px 5px 0 0;
}

.goal-post-hockey {
  position: absolute;
  width: 6px;
  height: 100%;
  background: linear-gradient(90deg, #cc0000 0%, #990000 100%);
  border-radius: 3px;
}

.goal-post-hockey.left {
  left: 0;
}

.goal-post-hockey.right {
  right: 0;
}

.goal-crossbar-hockey {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: linear-gradient(180deg, #cc0000 0%, #990000 100%);
  border-radius: 3px;
}

/* Hockey Goalie */
.hockey-goalie {
  position: absolute;
  top: 22%;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 90px;
  transition: left 0.3s ease-out, transform 0.3s ease-out;
}

.goalie-body-hockey {
  position: relative;
  width: 100%;
  height: 100%;
}

.goalie-mask {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 28px;
  height: 32px;
  background: linear-gradient(180deg, #f5f5f5 0%, #ddd 100%);
  border-radius: 50% 50% 45% 45%;
  border: 2px solid #333;
}

.goalie-mask::before {
  content: '';
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 10px;
  background: repeating-linear-gradient(
    90deg,
    #333 0px,
    #333 2px,
    transparent 2px,
    transparent 4px
  );
}

.goalie-chest {
  position: absolute;
  top: 28px;
  left: 50%;
  transform: translateX(-50%);
  width: 55px;
  height: 35px;
  background: linear-gradient(180deg, #1a365d 0%, #0d1b2a 100%);
  border-radius: 8px;
}

.goalie-blocker {
  position: absolute;
  top: 35px;
  right: 5px;
  width: 20px;
  height: 28px;
  background: linear-gradient(90deg, #cc0000 0%, #990000 100%);
  border-radius: 3px;
  transform: rotate(10deg);
}

.goalie-glove {
  position: absolute;
  top: 32px;
  left: 0;
  width: 25px;
  height: 22px;
  background: linear-gradient(90deg, #cc0000 0%, #990000 100%);
  border-radius: 5px 15px 15px 5px;
  transform: rotate(-10deg);
}

.goalie-pads {
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 50px;
  height: 35px;
  background: linear-gradient(180deg, #f5f5f5 0%, #ddd 100%);
  border-radius: 5px;
  border: 2px solid #1a365d;
}

/* Goalie dive animations */
.hockey-goalie.dive-left {
  left: 30%;
  transform: translateX(-50%) rotate(-25deg);
}

.hockey-goalie.dive-right {
  left: 70%;
  transform: translateX(-50%) rotate(25deg);
}

.hockey-goalie.dive-center {
  transform: translateX(-50%) scaleY(0.8);
}

/* Hockey Puck */
.hockey-puck {
  position: absolute;
  left: 50%;
  bottom: 8%;
  width: 30px;
  height: 30px;
  transform: translate(-50%, 0);
  z-index: 10;
}

.puck-inner {
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, #444 0%, #111 70%, #000 100%);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.5);
}

/* Aim Line */
.aim-line-hockey {
  position: absolute;
  bottom: 12%;
  left: 50%;
  width: 4px;
  height: 100px;
  background: linear-gradient(to top, 
    rgba(255, 50, 50, 0.8) 0%, 
    rgba(255, 50, 50, 0.4) 50%,
    transparent 100%
  );
  transform-origin: bottom center;
  pointer-events: none;
  z-index: 5;
}

/* Shot Result */
.shot-result-hockey {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 2rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
  z-index: 20;
  animation: result-pop 0.3s ease-out;
}

.shot-result-hockey.goal {
  color: #22c55e;
  font-size: 2.5rem;
}

@keyframes result-pop {
  0% { transform: translate(-50%, -50%) scale(0.5); opacity: 0; }
  100% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

/* Power bar hockey style */
.hockey-power {
  margin-top: 1rem;
}

.power-fill-hockey {
  position: absolute;
  left: 0;
  top: 0;
  height: 100%;
  background: #22c55e;
  border-radius: 10px;
  transition: width 0.02s linear;
}

.power-optimal-zone-hockey {
  position: absolute;
  left: 65%;
  width: 20%;
  height: 100%;
  background: rgba(34, 197, 94, 0.3);
  border-left: 2px dashed rgba(34, 197, 94, 0.6);
  border-right: 2px dashed rgba(34, 197, 94, 0.6);
}

/* Hockey controls */
.hockey-controls {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 1rem;
  color: rgba(255, 255, 255, 0.8);
}

.hockey-touch-controls {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 1rem;
}

.hockey-touch-controls .touch-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
}

.hockey-touch-controls .touch-btn {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  font-weight: bold;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hockey-touch-controls .aim-btn {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
}

.hockey-touch-controls .shoot-btn {
  background: linear-gradient(135deg, #ef4444 0%, #b91c1c 100%);
  color: white;
  padding: 1rem 2rem;
  font-size: 1.2rem;
}

/* Sound toggle */
.slap-shot-sound-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: rgba(76, 175, 80, 0.3);
  border: 2px solid rgba(76, 175, 80, 0.8);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  touch-action: manipulation;
}

/* Game result */
.slap-shot-page .game-result {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  padding: 1.5rem;
  margin-top: 1rem;
}

.slap-shot-final-stats {
  margin: 1rem 0;
}

.slap-shot-final-stats .stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #3b82f6;
}

.slap-shot-leaderboard-msg {
  background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  margin: 0.5rem 0;
  animation: leaderboard-celebrate 0.5s ease-out;
}

.slap-shot-leaderboard {
  margin: 1rem 0;
}

.slap-shot-leaderboard .leaderboard {
  background: rgba(240, 240, 240, 0.9);
  max-width: 280px;
}

.slap-shot-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

/* Responsive */
@media (max-width: 480px) {
  .hockey-rink {
    max-height: 280px;
  }
  
  .hockey-goalie {
    width: 60px;
    height: 70px;
  }
  
  .goalie-mask {
    width: 22px;
    height: 26px;
  }
  
  .goalie-chest {
    width: 45px;
    height: 28px;
    top: 22px;
  }
  
  .goalie-pads {
    width: 40px;
    height: 28px;
  }
  
  .hockey-puck {
    width: 24px;
    height: 24px;
  }
}

/* =============================================
   SIMON SEZ GAME STYLES
   ============================================= */

.simon-sez-page {
  background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
}

.simon-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 500px;
}

.simon-header {
  text-align: center;
  margin-bottom: 1rem;
}

.simon-header h1 {
  color: white;
  font-size: 2rem;
  margin: 0 0 0.5rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.simon-stats {
  display: flex;
  justify-content: center;
  gap: 2rem;
}

.simon-stat {
  text-align: center;
}

.simon-stat .stat-label {
  display: block;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.85rem;
  margin-bottom: 0.25rem;
}

.simon-stat .stat-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: white;
}

.simon-status {
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  text-align: center;
  min-height: 1.5rem;
}

.simon-board {
  position: relative;
  width: min(90vw, 320px);
  height: min(90vw, 320px);
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 8px;
  padding: 8px;
  background: #1a1a2e;
  border-radius: 50%;
  box-shadow: 
    0 0 30px rgba(0, 0, 0, 0.5),
    inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.simon-btn {
  border: none;
  cursor: pointer;
  transition: all 0.1s ease;
  opacity: 0.7;
}

.simon-btn:active, .simon-btn.pressed {
  opacity: 1;
  transform: scale(0.98);
}

.simon-btn.lit {
  opacity: 1;
  filter: brightness(1.3);
  box-shadow: 0 0 30px currentColor;
}

.simon-btn.wrong {
  background: #ef4444 !important;
  opacity: 1;
}

.simon-green {
  background: #22c55e;
  border-radius: 100% 0 0 0;
  color: #22c55e;
}

.simon-green.lit, .simon-green:active {
  background: #4ade80;
}

.simon-red {
  background: #ef4444;
  border-radius: 0 100% 0 0;
  color: #ef4444;
}

.simon-red.lit, .simon-red:active {
  background: #f87171;
}

.simon-yellow {
  background: #eab308;
  border-radius: 0 0 0 100%;
  color: #eab308;
}

.simon-yellow.lit, .simon-yellow:active {
  background: #facc15;
}

.simon-blue {
  background: #3b82f6;
  border-radius: 0 0 100% 0;
  color: #3b82f6;
}

.simon-blue.lit, .simon-blue:active {
  background: #60a5fa;
}

.simon-center {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 80px;
  height: 80px;
  background: #1a1a2e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

.simon-start-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  font-weight: bold;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

.simon-start-btn:hover:not(:disabled) {
  transform: scale(1.05);
}

.simon-start-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.simon-instructions {
  margin-top: 1.5rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.simon-instructions p {
  margin: 0.25rem 0;
}

/* Sound toggle */
.simon-sound-toggle {
  position: fixed;
  top: 15px;
  right: 15px;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: rgba(76, 175, 80, 0.3);
  border: 2px solid rgba(76, 175, 80, 0.8);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Game over overlay */
.simon-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1rem;
}

.simon-overlay.hidden {
  display: none;
}

.simon-overlay-content {
  background: white;
  border-radius: 20px;
  padding: 2rem;
  text-align: center;
  max-width: 360px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
}

.simon-overlay-content h2 {
  font-size: 1.8rem;
  margin: 0 0 0.5rem 0;
  color: #333;
}

.simon-overlay-content > p {
  color: #666;
  margin-bottom: 1rem;
}

.simon-final-stats {
  margin-bottom: 1rem;
}

.simon-final-stat .stat-label {
  display: block;
  font-size: 0.9rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.simon-final-stat .stat-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: #667eea;
}

.simon-leaderboard-msg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  margin: 0.5rem 0;
  animation: leaderboard-celebrate 0.5s ease-out;
}

.simon-leaderboard {
  margin: 1rem 0;
}

.simon-leaderboard .leaderboard {
  background: rgba(240, 240, 240, 0.8);
  max-width: 280px;
}

.simon-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.simon-buttons .play-button {
  margin: 0;
  flex: 0 0 auto;
}

/* Responsive */
@media (max-width: 400px) {
  .simon-board {
    width: 280px;
    height: 280px;
  }
  
  .simon-center {
    width: 70px;
    height: 70px;
  }
  
  .simon-start-btn {
    width: 50px;
    height: 50px;
    font-size: 0.8rem;
  }
}

/* =============================================
   HOPPY HARVEY GAME STYLES
   ============================================= */

.hoppy-harvey-page {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  touch-action: manipulation;
  -webkit-overflow-scrolling: none;
  overscroll-behavior: none;
  background: linear-gradient(180deg, #87CEEB 0%, #E0F6FF 50%, #90EE90 100%);
}

.hoppy-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  padding: 0;
}

.hoppy-container {
  position: relative;
  background: transparent;
  box-shadow: none;
  padding: 0;
  border-radius: 0;
  max-width: 500px;
  width: 100%;
  height: calc(100vh - 80px);
  display: flex;
  justify-content: center;
  align-items: center;
}

.hoppy-canvas {
  display: block;
  border-radius: 8px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  touch-action: none;
  cursor: pointer;
}

/* Score display - top left */
.hoppy-score-display {
  position: fixed;
  top: 15px;
  left: 15px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.hoppy-current-score {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.hoppy-current-score .score-label {
  font-size: 0.7rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.8);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  letter-spacing: 1px;
}

.hoppy-current-score .score-value {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 
    2px 2px 0 #333,
    -2px -2px 0 #333,
    2px -2px 0 #333,
    -2px 2px 0 #333,
    0 4px 8px rgba(0, 0, 0, 0.3);
  line-height: 1;
}

.hoppy-coins {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 1.2rem;
  font-weight: bold;
  color: #FFD700;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hoppy-coins .coin-icon {
  font-size: 1.3rem;
}

/* High score - top right */
.hoppy-high-score {
  position: fixed;
  top: 15px;
  right: 15px;
  font-size: 1rem;
  font-weight: 600;
  color: white;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  z-index: 100;
  background: rgba(0, 0, 0, 0.3);
  padding: 0.4rem 0.8rem;
  border-radius: 20px;
}

/* Sound toggle button */
.hoppy-harvey-page .sound-toggle {
  position: fixed;
  top: 55px;
  right: 15px;
  z-index: 100;
  width: 44px;
  height: 44px;
  background: rgba(0, 0, 0, 0.4);
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

.hoppy-harvey-page .sound-toggle:hover {
  background: rgba(0, 0, 0, 0.5);
  transform: scale(1.1);
}

.hoppy-harvey-page .sound-toggle:active {
  transform: scale(0.95);
}

/* Touch hint overlay */
.hoppy-touch-hint {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.hoppy-touch-hint.visible {
  opacity: 1;
}

.swipe-arrows {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.swipe-arrow {
  background: rgba(0, 0, 0, 0.6);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 1rem;
  font-weight: 600;
}

.swipe-arrow.up {
  animation: bounce-up 0.8s ease-in-out infinite;
}

@keyframes bounce-up {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}

.swipe-arrows .horizontal {
  display: flex;
  gap: 2rem;
}

/* Overlays */
.hoppy-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(0, 0, 0, 0.6);
  border-radius: 8px;
  z-index: 50;
}

.hoppy-overlay.hidden {
  display: none;
}

.hoppy-overlay-content {
  text-align: center;
  padding: 2rem;
  max-width: 90%;
}

.hoppy-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: white;
  text-shadow: 3px 3px 0 #333;
  margin-bottom: 1rem;
}

.hoppy-player-name {
  font-size: 1.5rem;
  color: #4CAF50;
  font-weight: 600;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hoppy-instructions {
  font-size: 1rem;
  color: white;
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  line-height: 1.6;
}

.hoppy-instructions p {
  margin: 0.5rem 0;
}

.hoppy-start-btn {
  font-size: 1.3rem;
  padding: 1rem 2.5rem;
  animation: pulse 1.5s ease-in-out infinite;
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.hoppy-start-btn:hover {
  background: linear-gradient(135deg, #45a049 0%, #388e3c 100%);
}

/* Game over styles */
.hoppy-game-over-title {
  font-size: 2.5rem;
  font-weight: bold;
  color: #FF6B6B;
  text-shadow: 3px 3px 0 #333;
  margin-bottom: 0.5rem;
}

.hoppy-death-reason {
  font-size: 1.1rem;
  color: #ffa726;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hoppy-final-score {
  font-size: 2rem;
  color: white;
  font-weight: bold;
  margin-bottom: 0.25rem;
  text-shadow: 2px 2px 0 #333;
}

.hoppy-final-coins {
  font-size: 1.2rem;
  color: #FFD700;
  margin-bottom: 0.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hoppy-best-score {
  font-size: 1.2rem;
  color: #81c784;
  margin-bottom: 1rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.hoppy-medal {
  margin-bottom: 1rem;
  min-height: 3rem;
}

/* Share section spacing in Hoppy Harvey */
.hoppy-overlay-content .share-section {
  margin-bottom: 1rem;
}

/* Leaderboard in Hoppy Harvey */
.hoppy-leaderboard {
  margin: 1rem 0;
}

.hoppy-leaderboard .leaderboard {
  background: rgba(255, 255, 255, 0.9);
  max-width: 280px;
}

.hoppy-leaderboard-msg {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-weight: bold;
  margin: 0.5rem 0;
  animation: leaderboard-celebrate 0.5s ease-out;
}

@keyframes leaderboard-celebrate {
  0% { transform: scale(0.8); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.hoppy-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
}

.hoppy-buttons .play-button {
  margin: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  min-width: 120px;
}

.hoppy-buttons .play-button:first-child {
  background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
}

.hoppy-buttons .play-button.secondary {
  margin-left: 0;
  background: rgba(255, 255, 255, 0.2);
  font-size: 0.95rem;
  padding: 0.75rem 1.25rem;
}

/* Character selection options */
.character-options {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
}

.character-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem;
  background: #f8f9fa;
  border-radius: 0.75rem;
  cursor: pointer;
  transition: all 0.2s;
  border: 2px solid transparent;
}

.character-option:hover {
  background: #e9ecef;
  transform: translateY(-2px);
}

.character-option:has(input:checked) {
  background: #e8f5e9;
  border-color: #4CAF50;
}

.character-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.character-preview {
  font-size: 3rem;
  line-height: 1;
}

.character-name {
  font-weight: 600;
  font-size: 0.9rem;
  color: #333;
}

/* Hoppy Harvey icon for home page */
.hoppy-harvey-icon {
  display: flex;
  justify-content: center;
  align-items: center;
  position: relative;
}

.hoppy-harvey-icon .hoppy-char {
  font-size: 3rem;
  animation: hoppy-bounce 0.6s ease-in-out infinite;
  position: relative;
  z-index: 2;
}

@keyframes hoppy-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.hoppy-harvey-icon .hoppy-lanes {
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 60px;
  z-index: 1;
}

.hoppy-harvey-icon .hoppy-lane {
  height: 8px;
  border-radius: 2px;
}

.hoppy-harvey-icon .hoppy-lane.grass {
  background: #4CAF50;
}

.hoppy-harvey-icon .hoppy-lane.road {
  background: #424242;
}

.hoppy-harvey-icon .hoppy-lane.water {
  background: #2196F3;
}

/* Mobile responsiveness for Hoppy Harvey */
@media (max-width: 480px) {
  .hoppy-current-score .score-value {
    font-size: 2rem;
  }
  
  .hoppy-high-score {
    font-size: 0.85rem;
  }
  
  .hoppy-title {
    font-size: 2rem;
  }
  
  .hoppy-game-over-title {
    font-size: 2rem;
  }
  
  .hoppy-final-score {
    font-size: 1.5rem;
  }
  
  .hoppy-overlay-content {
    padding: 1.5rem;
  }
  
  .hoppy-buttons {
    flex-direction: column;
    align-items: center;
  }
  
  .hoppy-buttons .play-button {
    width: 100%;
    max-width: 200px;
  }
  
  .character-options {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  
  .character-preview {
    font-size: 2.5rem;
  }
  
  .character-name {
    font-size: 0.8rem;
  }
}

@media (max-width: 375px) {
  .hoppy-current-score .score-value {
    font-size: 1.8rem;
  }
  
  .hoppy-title {
    font-size: 1.7rem;
  }
  
  .hoppy-instructions {
    font-size: 0.9rem;
  }
}

/* Prevent pull-to-refresh on mobile */
.hoppy-harvey-page {
  position: fixed;
  overflow: hidden;
}

/* Ensure no scrollbars */
.hoppy-harvey-page::-webkit-scrollbar {
  display: none;
}

.hoppy-harvey-page {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* NEW Badge Styles */
.new-badge {
  position: absolute;
  top: -8px;
  right: -8px;
  background: linear-gradient(135deg, #ff6b6b, #feca57);
  color: white;
  font-size: 0.7rem;
  font-weight: bold;
  padding: 4px 8px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(255, 107, 107, 0.4);
  animation: badge-pulse 2s ease-in-out infinite;
  z-index: 10;
}

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

/* Theme Selection Styles */
.theme-options {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
  justify-content: center;
}

.theme-option {
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
  padding: 0.75rem;
  border-radius: 0.75rem;
  border: 3px solid transparent;
  background: #f8f9fa;
  transition: all 0.2s ease;
  min-width: 90px;
}

.theme-option:hover {
  transform: scale(1.05);
  background: #f0f0f0;
}

.theme-option input[type="radio"] {
  display: none;
}

.theme-option input[type="radio"]:checked + .theme-icon {
  transform: scale(1.15);
}

.theme-option:has(input[type="radio"]:checked) {
  border-color: #667eea;
  background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.theme-icon {
  font-size: 2rem;
  transition: transform 0.2s ease;
}

.theme-name {
  margin-top: 0.5rem;
  font-size: 0.85rem;
  color: #333;
  font-weight: 500;
}

/* =============================================
   CONNECT FOUR GAME STYLES
   ============================================= */

/* Home icon */
.connect-four-icon {
  width: 60px;
  height: 52px;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  justify-content: center;
  align-items: center;
  padding: 4px;
  background: #2563eb;
  border-radius: 4px;
}

.connect-four-icon .c4-slot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #1e40af;
}

.connect-four-icon .c4-slot.red {
  background: #ef4444;
}

.connect-four-icon .c4-slot.yellow {
  background: #eab308;
}

/* Game container */
.connect-four-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 1rem;
  padding-top: 0.5rem;
}

.connect-four-header {
  text-align: center;
  margin-bottom: 0.75rem;
}

.connect-four-header h1 {
  color: white;
  font-size: 1.75rem;
  margin: 0 0 0.5rem 0;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.player-turn {
  background: rgba(255, 255, 255, 0.2);
  padding: 0.5rem 1.25rem;
  border-radius: 25px;
  font-size: 1.1rem;
  font-weight: bold;
  color: white;
  display: inline-block;
  transition: all 0.3s ease;
}

.player-turn.red {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.player-turn.yellow {
  background: linear-gradient(135deg, #eab308 0%, #ca8a04 100%);
}

/* Board */
.connect-four-board-wrapper {
  perspective: 1000px;
}

.connect-four-board {
  display: flex;
  gap: 4px;
  background: linear-gradient(180deg, #2563eb 0%, #1d4ed8 100%);
  padding: 12px;
  border-radius: 12px;
  box-shadow: 
    0 8px 32px rgba(0, 0, 0, 0.3),
    inset 0 2px 4px rgba(255, 255, 255, 0.1);
}

.connect-four-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
  transition: transform 0.1s ease;
}

.connect-four-column:hover {
  transform: translateY(-2px);
}

.connect-four-column:active {
  transform: translateY(0);
}

.connect-four-cell {
  width: 44px;
  height: 44px;
  background: #1e40af;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 3px 8px rgba(0, 0, 0, 0.4);
}

.connect-four-disc {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: transparent;
  transition: all 0.3s ease;
}

.connect-four-disc.red {
  background: linear-gradient(135deg, #f87171 0%, #ef4444 50%, #dc2626 100%);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2),
    inset 0 3px 6px rgba(255, 255, 255, 0.3);
}

.connect-four-disc.yellow {
  background: linear-gradient(135deg, #fde047 0%, #eab308 50%, #ca8a04 100%);
  box-shadow: 
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 -3px 6px rgba(0, 0, 0, 0.2),
    inset 0 3px 6px rgba(255, 255, 255, 0.3);
}

.connect-four-disc.dropping {
  animation: drop-disc 0.3s ease-out;
}

@keyframes drop-disc {
  0% {
    transform: translateY(-200px);
    opacity: 0;
  }
  60% {
    opacity: 1;
  }
  80% {
    transform: translateY(5px);
  }
  100% {
    transform: translateY(0);
  }
}

.connect-four-disc.winning {
  animation: winning-pulse 0.6s ease-in-out infinite;
}

@keyframes winning-pulse {
  0%, 100% {
    transform: scale(1);
    filter: brightness(1);
  }
  50% {
    transform: scale(1.1);
    filter: brightness(1.3);
  }
}

/* Status */
.connect-four-status {
  min-height: 40px;
  margin: 0.75rem 0;
  font-size: 1.25rem;
  font-weight: bold;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.connect-four-status.winner {
  animation: winner-bounce 0.5s ease;
}

@keyframes winner-bounce {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.2); }
}

/* Controls */
.connect-four-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
  margin-bottom: 0.75rem;
}

.connect-four-controls .control-btn {
  padding: 0.5rem 1rem;
  border: none;
  border-radius: 25px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
}

.connect-four-controls .sound-btn {
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: white;
}

.connect-four-controls .sound-btn.sound-off {
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.connect-four-controls .restart-btn {
  background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
  color: white;
}

.connect-four-controls .home-btn {
  background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
  color: white;
}

.connect-four-controls .control-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.connect-four-controls .control-btn:active {
  transform: scale(0.95);
}

/* Scoreboard */
.connect-four-scoreboard {
  display: flex;
  gap: 1rem;
  background: rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1.5rem;
  border-radius: 12px;
  backdrop-filter: blur(10px);
}

.connect-four-scoreboard .score-item {
  text-align: center;
  color: white;
}

.connect-four-scoreboard .score-label {
  display: block;
  font-size: 0.8rem;
  opacity: 0.9;
  margin-bottom: 0.25rem;
}

.connect-four-scoreboard .score-value {
  display: block;
  font-size: 1.5rem;
  font-weight: bold;
}

.connect-four-scoreboard .score-item.red .score-value {
  color: #f87171;
}

.connect-four-scoreboard .score-item.yellow .score-value {
  color: #fde047;
}

/* Mobile responsive */
@media (max-width: 400px) {
  .connect-four-cell {
    width: 38px;
    height: 38px;
  }
  
  .connect-four-disc {
    width: 30px;
    height: 30px;
  }
  
  .connect-four-board {
    padding: 8px;
    gap: 3px;
  }
  
  .connect-four-column {
    gap: 3px;
  }
  
  .connect-four-header h1 {
    font-size: 1.5rem;
  }
  
  .connect-four-scoreboard {
    gap: 0.75rem;
    padding: 0.5rem 1rem;
  }
  
  .connect-four-scoreboard .score-label {
    font-size: 0.7rem;
  }
  
  .connect-four-scoreboard .score-value {
    font-size: 1.25rem;
  }
}

/* Even smaller screens */
@media (max-width: 340px) {
  .connect-four-cell {
    width: 34px;
    height: 34px;
  }
  
  .connect-four-disc {
    width: 26px;
    height: 26px;
  }
}
