:root {
  --primary: #0a192f;
  --accent: #64ffda;
  --secondary: #1e4d8b;
  --error: #ff5252;
  --background: #020c1b;
  --card-bg: #172a45;
  --text: #ccd6f6;
}

body {
  margin: 0;
  font-family: 'Fira Code', monospace;
  background: var(--background);
  color: var(--text);
  min-height: 100vh;
  display: grid;
  place-items: center;
}

.container {
  width: 100%;
  max-width: 800px;
  padding: 2rem;
}

.title {
  text-align: center;
  font-size: 2rem;
  color: var(--accent);
  text-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
  position: fixed; /* Changed from absolute to fixed */
  top: 10px; /* Reduced from previous value */
  left: 0;
  right: 0;
  z-index: 100;
  margin: 0;
  padding: 10px 0;
  background-color: var(--background);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.mode-selector {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.mode-btn {
  background: var(--card-bg);
  border: 1px solid var(--secondary);
  padding: 1rem;
  border-radius: 8px;
  color: var(--text);
  cursor: pointer;
  transition: all 0.2s ease;
}

.mode-btn.active {
  background: var(--secondary);
  border-color: var(--accent);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.2);
}

.game-container {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 2rem;
  min-height: 400px;
  position: relative;
  border: 1px solid var(--secondary);
}

.game-mode {
  display: none;
}

.game-mode.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Math Mode Styles */
.math-header {
  text-align: center;
  margin-bottom: 2rem;
}

.math-problem {
  font-size: 3rem;
  margin: 1rem 0;
  color: var(--accent);
}

.math-input {
  font-size: 2rem;
  width: 200px;
  padding: 0.5rem;
  background: transparent;
  border: 2px solid var(--secondary);
  color: var(--text);
  border-radius: 8px;
  text-align: center;
}

.math-operations {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.op-btn {
  background: rgba(30, 77, 139, 0.3);
  border: 1px solid var(--secondary);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
}

.op-btn.active {
  background: var(--secondary);
}

/* Memory Game Styles */
.memory-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.memory-tile {
  width: 80px;
  height: 80px;
  background: var(--background);
  border: 2px solid var(--secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  
}
.memory-mode.active .memory-tile {
  pointer-events: auto; /* Enable clicks only when active */
}


/* Sequence Game Styles */
.sequence-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.sequence-tile {
  width: 60px;
  height: 60px;
  background: var(--background);
  border: 2px solid var(--secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.sequence-tile.active {
  background: var(--accent);
}

/* Reaction Test Styles */
.reaction-box {
  width: 300px;
  height: 300px;
  background: var(--background);
  border: 2px solid var(--secondary);
  border-radius: 12px;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 1.5rem;
  color: var(--text);
}

.reaction-box.ready {
  background: var(--secondary);
  border-color: var(--accent);
  color: var(--accent);
}

.reaction-box.waiting {
  background: var(--error);
  border-color: var(--error);
  color: var(--text);
}

.stats {
  font-size: 1.2rem;
  color: var(--accent);
}

.score-board {
  display: flex;
  justify-content: space-between;
  margin-top: 2rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 8px;
}

#rank {
  font-weight: bold;
  color: var(--accent);
  text-shadow: 0 0 10px rgba(100, 255, 218, 0.7);
  font-size: 1.5rem;
}

.stats {
display: flex;
flex-direction: column;
align-items: center;
gap: 0.5rem;
padding: 1rem;
background: var(--background);
border: 2px solid var(--accent);
border-radius: 12px;
box-shadow: 0 4px 15px rgba(100, 255, 218, 0.2);
text-align: center;
}

.stats p {
margin: 0;
font-size: 1.2rem;
color: var(--accent);
text-shadow: 0 0 10px rgba(100, 255, 218, 0.3);
}

.stats span {
font-weight: bold;
color: var(--text);
}
.percentile-graph {
margin-top: 2rem;
padding: 1rem;
background: var(--card-bg);
border-radius: 8px;
}

canvas {
max-height: 300px;
}

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

.progress-bubble {
  width: 15px;
  height: 15px;
  background: var(--secondary);
  border-radius: 50%;
  transition: all 0.3s ease;
}

.progress-bubble.completed {
  background: #4caf50;

}
/* Time Bar */
.time-bar {
width: 100%;
height: 10px;
background-color: #444;
border-radius: 5px;
overflow: hidden;
margin-bottom: 20px;
}

.time-left {
height: 100%;
width: 100%;
background-color: #4caf50;
transform: scaleX(1);
transform-origin: left;
transition: transform 0.1s linear;
}

/* Start Button */
.start-button {
padding: 10px 20px;
font-size: 16px;
background-color: #4caf50; /* Green button */
color: white;
border: none;
border-radius: 5px;
cursor: pointer;
margin-bottom: 20px;
transition: background-color 0.3s ease;
}

.start-button:hover {
background-color: #45a049; /* Darker green on hover */
}

/* Click Box */
.click-box {
padding: 20px;
background-color: #333; /* Dark background for the box */
color: white;
border: 2px solid #4caf50; /* Green border */
border-radius: 10px;
cursor: pointer;
text-align: center;
font-size: 18px;
transition: background-color 0.3s ease;
}

.click-box:hover {
background-color: #444; /* Slightly lighter on hover */
}

/* Clicks Display */
#clicks {
font-size: 24px;
color: white;
margin-top: 10px;
}

/* Prevent text selection */
.click-box {
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Click Test Time Bar */
.time-bar-container {
  width: 100%;
  height: 8px;
  background: var(--card-bg);
  border-radius: 4px;
  overflow: hidden;
  margin: 1rem 0;
}

.time-bar-progress {
  width: 100%;
  height: 100%;
  background: #4caf50 !important;
  transform-origin: left center;
  
  transition: transform 0.05s linear;
}

/* Click Test Modal */
.click-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.9);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.shake {
  animation: shake 0.5s;
}
.click-modal-content {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--accent);
  text-align: center;
  max-width: 300px;
  animation: modalSlide 0.3s ease-out;
}

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


@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}
.game-mode:not(.active) #click-mode {
  display: none !important;
}
.visual-tile.correct-pattern {
  background: #4CAF50 !important;
  transform: scale(0.9);
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
}
/* Modal close button fix */
.click-modal-content button {
  background: var(--secondary) !important;
  transition: all 0.2s ease;
}

.click-modal-content button:hover {
  background: var(--accent) !important;
  color: var(--primary) !important;
}
/* Add chimp correction style */
.chimp-tile.correct-pattern {
  background: #4CAF50 !important;
  color: var(--primary) !important;
  transform: scale(0.95);
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.5);
  animation: pulse 1s infinite;
}
/* Memory Game Improvements */
.memory-tile.correct {
  background: var(--accent) !important;
  transform: scale(0.95);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
  transition: all 0.3s ease;
  pointer-events: none;
}
.memory-tile.correct-pattern {
  background: #4CAF50 !important;
  opacity: 0.6;
  box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
}
.memory-tile.active {
  background: var(--accent) !important;
  opacity: 1 !important;
  transform: scale(0.95);
  box-shadow: 0 0 20px rgba(100, 255, 218, 0.5);
  transition: all 0.3s ease;
}

.memory-tile.incorrect {
  background: var(--error) !important;
  transform: scale(0.95);
  box-shadow: 0 0 15px rgba(255, 82, 82, 0.5);
  animation: shake 0.5s;
}


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

/* Memory Stats Modal */
.memory-stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  margin: 1.5rem 0;
  font-size: 1.1rem;
}

.memory-stats-grid div:nth-child(odd) {
  color: var(--accent);
  text-align: right;
}

.memory-stats-grid div:nth-child(even) {
  font-weight: bold;
  color: var(--text);
}

#memory-stats-modal button {
  background: var(--secondary) !important;
  width: 100%;
  padding: 12px;
  font-size: 1.1rem;
  margin-top: 1rem;
}

/* Start Button for Reaction Test */
#start-reaction-test {
  padding: 10px 20px;
  font-size: 16px;
  background-color: var(--secondary);
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin-bottom: 20px;
  transition: background-color 0.3s ease;
}

#start-reaction-test:hover {
  background-color: var(--accent);
  color: var(--primary);
}

#start-reaction-test:active {
  transform: scale(0.95);
}

.reaction-box[style*="pointer-events: none"] {
  opacity: 0.6;
  cursor: not-allowed;
}

/* Ensure the modal styles are consistent */
#reactionResultModal {
  display: none; /* Hidden by default */
}

/* Optional: Add specific styles for the reaction results modal */
#reactionResultModal .click-modal-content {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 12px;
  border: 2px solid var(--accent);
  text-align: center;
  max-width: 300px;
  animation: modalSlide 0.3s ease-out;
}

#reactionResultModal h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}

#reactionResultModal p {
  font-size: 1.2rem;
  color: var(--text);
  margin-bottom: 1.5rem;
}

#reactionResultModal button {
  background: var(--secondary);
  color: var(--text);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.3s ease;
}

#reactionResultModal button:hover {
  background: var(--accent);
  color: var(--primary);
}

.current-results-box {
  background: var(--card-bg);
  border: 2px solid var(--secondary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.current-results-box h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.current-results-box p {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0.5rem 0;
}

.current-results-box span {
  font-weight: bold;
  color: var(--accent);
}

.current-progress-box {
  background: var(--card-bg);
  border: 2px solid var(--secondary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 1.5rem;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.current-progress-box h3 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.5rem;
}

.current-progress-box p {
  font-size: 1.1rem;
  color: var(--text);
  margin: 0.5rem 0;
}

.current-progress-box span {
  font-weight: bold;
  color: var(--accent);
}
.click-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

.click-modal-content {
  background-color: var(--bg);
  padding: 20px;
  border-radius: 10px;
  max-width: 80%;
  text-align: center;
}

.click-modal button {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: var(--accent);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.math-input {
  padding: 8px;
  font-size: 16px;
  width: 100px;
  text-align: center;
}
.time-bar-container {
  width: 100%;
  height: 10px;
  background: #444;
  border-radius: 5px;
  margin-bottom: 10px;
  overflow: hidden;
}
.time-bar-progress {
  width: 100%;
  height: 100%;
  background: #4caf50;
  transform-origin: left center;
  transform: scaleX(0);
}
.click-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}
.click-modal-content {
  background-color: var(--bg);
  padding: 20px;
  border-radius: 10px;
  max-width: 80%;
  text-align: center;
}
.click-modal button {
  margin-top: 15px;
  padding: 8px 16px;
  background-color: var(--accent);
  border: none;
  border-radius: 5px;
  cursor: pointer;
}
.math-input {
  padding: 8px;
  font-size: 16px;
  width: 100px;
  text-align: center;
}
.math-input:focus {
  outline: 2px solid var(--accent);
  border-color: transparent;
}
/* styles.css */
/* Chimp Test */
.chimp-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  padding: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.chimp-number {
  position: absolute;
  width: 50px;
  height: 50px;
  background: var(--accent);
  color: var(--primary);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: bold;
  cursor: pointer;
  transition: transform 0.2s ease;
}

.chimp-number.active {
  transform: scale(1.1);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.5);
}

/* Visual Memory */
.visual-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}

.visual-tile {
  width: 60px;
  height: 60px;
  background: var(--background);
  border: 2px solid var(--secondary);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.visual-tile.active {
  transform: scale(0.9);
  background: var(--accent);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.3)
}
.chimp-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  max-width: 500px;
  margin: 0 auto;
}
.chimp-tile {
  width: 100%;
  aspect-ratio: 1;
  height: 80px;
  background: var(--background);
  border: 2px solid var(--secondary);
  border-radius: 8px;
  display: grid;
  place-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--accent);
  cursor: pointer;
  transition: all 0.3s ease;
}
.chimp-tile.active {
  background: var(--accent);
  color: var(--primary);
  transform: scale(0.95);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
  animation: pulse 1s infinite;
}
.chimp-tile.incorrect,
.visual-tile.incorrect {
  animation: shake 0.5s;
  background: var(--error);
}
.chimp-tile.correct {
  background: var(--accent);
  transform: scale(0.95);
  box-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
}
.visual-tile.correct {
  background: var(--accent);
  transform: scale(0.9);
  pointer-events: none;
}

/* Hamburger Menu Styles */
.hamburger-menu {
  position: fixed;
  top: 20px;
  left: 20px;
  z-index: 1000;
}

#menu-toggle {
  opacity: 0;
  position: absolute;
}

#menu-toggle:checked ~ .menu-btn > span {
  transform: rotate(45deg);
}
#menu-toggle:checked ~ .menu-btn > span::before {
  top: 0;
  transform: rotate(0);
}
#menu-toggle:checked ~ .menu-btn > span::after {
  top: 0;
  transform: rotate(90deg);
}
#menu-toggle:checked ~ .menu-box {
  visibility: visible;
  left: 0;
}

.menu-btn {
  display: flex;
  align-items: center;
  position: fixed;
  top: 20px;
  left: 20px;
  width: 26px;
  height: 26px;
  cursor: pointer;
  z-index: 1001;
}

.menu-btn > span,
.menu-btn > span::before,
.menu-btn > span::after {
  display: block;
  position: absolute;
  width: 100%;
  height: 2px;
  background-color: var(--accent);
  transition-duration: .25s;
}
.menu-btn > span::before {
  content: '';
  top: -8px;
}
.menu-btn > span::after {
  content: '';
  top: 8px;
}

.menu-box {
  display: block;
  position: fixed;
  visibility: hidden;
  top: 0;
  left: -100%;
  width: 300px;
  height: 100%;
  margin: 0;
  padding: 80px 0;
  list-style: none;
  background-color: var(--card-bg);
  box-shadow: 1px 0px 6px rgba(0, 0, 0, .2);
  transition-duration: .25s;
  z-index: 1000;
}

.menu-item {
  display: block;
  padding: 12px 24px;
  color: var(--text);
  font-size: 20px;
  font-weight: 600;
  text-decoration: none;
  transition-duration: .25s;
  position: relative;
  cursor: pointer;
}

.menu-item:hover {
  background-color: var(--secondary);
}

.menu-item > span::after {
  content: "▼";
  font-size: 12px;
  margin-left: 10px;
}

.submenu {
  display: none;
  padding-left: 20px;
  background-color: rgba(0, 0, 0, 0.2);
}

.menu-item:hover .submenu {
  display: block;
}

.submenu li {
  padding: 10px 20px;
  font-size: 16px;
  font-weight: normal;
  cursor: pointer;
}

.submenu li:hover {
  background-color: var(--secondary);
  color: var(--accent);
}

/* Hide the original mode selector on smaller screens */
@media (max-width: 768px) {
  .mode-selector {
    display: none;
  }
  
  .container {
    padding-top: 80px;
  }
}

/* Home Screen Styles */
.home-screen {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 2rem;
  padding-top: 80px; /* Added to account for title */
  width: 100%;
}

.home-screen.active {
  display: flex;
}

.categories-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
  width: 100%;
  max-width: 1000px;
  margin-top: 1rem;
}

.category-card {
  background: var(--card-bg);
  border-radius: 12px;
  padding: 1.5rem;
  border: 1px solid var(--secondary);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.category-card h2 {
  color: var(--accent);
  margin-bottom: 1rem;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mode-options {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.mode-option {
  padding: 0.8rem 1rem;
  background: rgba(100, 255, 218, 0.1);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  border: 1px solid transparent;
}

.mode-option:hover {
  background: rgba(100, 255, 218, 0.2);
  border-color: var(--accent);
  transform: translateX(5px);
}

/* Adjust the main container to hide when home screen is active */
.home-screen.active ~ .game-container {
  display: none;
}

.container {
  position: relative;
}

.title {
  text-align: center;
  font-size: 2.5rem;
  margin-bottom: 2rem;
  color: var(--accent);
  text-shadow: 0 0 15px rgba(100, 255, 218, 0.3);
  position: absolute;
  top: 20px;
  left: 0;
  right: 0;
  z-index: 10;
}

.home-screen {
  padding-top: 80px; /* Make space for the title */
}

.back-button {
  position: absolute;
  top: 20px;
  left: 20px;
  background: var(--secondary);
  color: var(--text);
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 5px;
  cursor: pointer;
  z-index: 100;
  transition: all 0.2s ease;
}

.back-button:hover {
  background: var(--accent);
  color: var(--primary);
}

.score-distribution {
  margin-top: 2rem;
  padding: 1rem;
  background: var(--card-bg);
  border-radius: 8px;
  border: 1px solid var(--secondary);
}

.score-distribution h3 {
  color: var(--accent);
  text-align: center;
  margin-bottom: 0.5rem;
}

#scoreChart {
  width: 100% !important;
  height: 250px !important;
}

/* Add to your styles.css */
.percentile-display {
  position: absolute;
  top: 20px;
  right: 20px;
  z-index: 10;
}

.percentile-badge {
  background: rgba(10, 25, 47, 0.8);
  border: 1px solid var(--accent);
  border-radius: 20px;
  padding: 8px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.percentile-value {
  color: var(--accent);
  font-size: 1.4rem;
  font-weight: bold;
  line-height: 1;
}

.percentile-label {
  color: var(--text);
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 2px;
}

.score-distribution {
  position: relative; /* Add this if not already present */
}

.percentile-badge {
  background: rgba(10, 25, 47, 0.9);
  border-radius: 20px;
  padding: 8px 15px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid;
  transition: all 0.3s ease;
}

.percentile-badge.beginner {
  border-color: #666;
}

.performance-level {
  font-size: 1.2rem;
  font-weight: bold;
  line-height: 1;
}

.performance-detail {
  font-size: 0.8rem;
  opacity: 0.8;
  margin-top: 2px;
}

/* Color coding for different levels */
.percentile-badge {
  border-color: var(--accent);
  color: var(--accent);
}

/* Beginner state */
.percentile-badge.beginner .performance-level {
  color: #ccc;
}

/* Elite state will use default accent color */
/* Good state */
.percentile-badge.good .performance-level {
  color: #4CAF50;
}

/* Great state */
.percentile-badge.great .performance-level {
  color: #2196F3;
}

.home-score-board span {
  color: var(--accent);
  font-weight: bold;
}

.home-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem;
}

.home-block {
  background: var(--card-bg);
  border-radius: 16px;
  padding: 1.5rem;
  border: 1px solid var(--secondary);
  transition: all 0.3s ease;
  min-height: 200px;
  display: flex;
  flex-direction: column;
}

.home-block:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  border-color: var(--accent);
}

.info-block {
  grid-column: span 2;
  background: linear-gradient(135deg, var(--card-bg) 0%, var(--background) 100%);
  border: 2px solid var(--accent);
}

.stats-panel {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin: 1.5rem 0;
}

.stat-item {
  background: rgba(100, 255, 218, 0.1);
  padding: 1rem;
  border-radius: 8px;
  border-left: 3px solid var(--accent);
}

.stat-label {
  display: block;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.8;
}

.stat-value {
  display: block;
  font-size: 1.4rem;
  color: var(--accent);
  font-weight: bold;
  margin-top: 0.5rem;
}

.game-description {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--text);
  opacity: 0.9;
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid rgba(100, 255, 218, 0.2);
}

/* Adjust category blocks */
.speed-category, .memory-category, .logic-category {
  justify-content: space-between;
}

@media (max-width: 768px) {
  .home-grid {
    grid-template-columns: 1fr;
  }
  
  .info-block {
    grid-column: span 1;
  }
  
  .stats-panel {
    grid-template-columns: 1fr;
  }
}