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


:root {
  --mc-green: #00aa00;
  --mc-light-green: #55ff55;
  --mc-dark-green: #005500;
  --mc-blue: #5555ff;
  --mc-light-blue: #aaaaff;
  --mc-gray: #555555;
  --mc-light-gray: #aaaaaa;
  --mc-dark-gray: #222222;
  --mc-white: #ffffff;
  --mc-black: #000000;
  --mc-brown: #8b4513;
  --mc-gold: #ffaa00;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  display: flex;
  flex-direction: column;
  font-family: 'Segoe UI', sans-serif;
  background: url('images/462770783_8452326388179513_3124537065495590798_n.jpg') no-repeat center center fixed;
  background-size: cover;
  color: var(--text-color);
  line-height: 1.7;
  padding: 0 1rem;
}

.logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 2.5rem;
  color: var(--mc-light-green);
  text-shadow: 
    3px 3px 0px var(--mc-dark-green),
    6px 6px 10px rgba(0, 0, 0, 0.8);
  margin-bottom: 1rem;
  animation: logoGlow 2s ease-in-out infinite;
}

@keyframes logoGlow {
  0%, 100% { 
    color: var(--mc-light-green);
    text-shadow: 
      3px 3px 0px var(--mc-dark-green),
      6px 6px 10px rgba(0, 0, 0, 0.8),
      0 0 20px rgba(85, 255, 85, 0.3);
  }
  50% { 
    color: var(--mc-green);
    text-shadow: 
      3px 3px 0px var(--mc-dark-green),
      6px 6px 10px rgba(0, 0, 0, 0.8),
      0 0 30px rgba(85, 255, 85, 0.6);
  }
}

/* Menu navigation visible */
.nav-menu {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(60, 60, 60, 0.95);
  border-bottom: 4px solid var(--mc-gray);
  border-style: solid;
  border-bottom-color: var(--mc-dark-gray);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

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

.nav-logo {
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  color: var(--mc-light-green);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  text-decoration: none;
  transition: all 0.3s ease;
  white-space: nowrap;
}

.nav-logo:hover {
  color: var(--mc-gold);
  transform: scale(1.05);
}

/* Menu burger pour mobile */
.nav-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
  padding: 0.5rem;
  gap: 4px;
  background: none;
  border: none;
  z-index: 1001;
}

.nav-toggle span {
  width: 25px;
  height: 3px;
  background: var(--mc-white);
  transition: all 0.3s ease;
  border-radius: 2px;
}

.nav-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.nav-toggle.active span:nth-child(2) {
  opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

.nav-links {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  transition: all 0.3s ease;
}

.nav-link {
  display: inline-block;
  padding: 0.7rem 1.2rem;
  color: var(--mc-white);
  text-decoration: none;
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  border-radius: 4px;
  position: relative;
  background: rgba(85, 85, 85, 0.3);
  border-top-color: var(--mc-light-gray);
  border-left-color: var(--mc-light-gray);
  border-right-color: var(--mc-dark-gray);
  border-bottom-color: var(--mc-dark-gray);
  white-space: nowrap;
}

.nav-link:hover {
  background: var(--mc-green);
  color: var(--mc-white);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  border-top-color: var(--mc-light-green);
  border-left-color: var(--mc-light-green);
  border-right-color: var(--mc-dark-green);
  border-bottom-color: var(--mc-dark-green);
}

.nav-link.active {
  background: var(--mc-gold);
  color: var(--mc-black);
  border-top-color: #ffcc33;
  border-left-color: #ffcc33;
  border-right-color: #cc8800;
  border-bottom-color: #cc8800;
}

.nav-link:active {
  transform: translateY(1px);
}

/* Ajustement du container principal pour compenser le menu fixe */
body {
  padding-top: 80px;
}

/* Responsive */
@media (max-width: 992px) {
  .nav-container {
    padding: 1rem 1.5rem;
  }
  
  .nav-links {
    gap: 0.3rem;
  }
  
  .nav-link {
    padding: 0.6rem 1rem;
    font-size: 0.65rem;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  
  .nav-container {
    padding: 0.8rem 1rem;
  }
  
  .nav-logo {
    font-size: 0.9rem;
  }
  
  .nav-toggle {
    display: flex;
  }
  
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: rgba(60, 60, 60, 0.98);
    flex-direction: column;
    gap: 0;
    padding: 1rem 0;
    border-bottom: 4px solid var(--mc-dark-gray);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.5);
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: all 0.3s ease;
    z-index: 999;
  }
  
  .nav-links.show {
    max-height: 300px;
    opacity: 1;
  }
  
  .nav-link {
    width: 90%;
    max-width: 300px;
    margin: 0 auto;
    text-align: center;
    padding: 1rem;
    font-size: 0.7rem;
    border-bottom: 1px solid rgba(85, 85, 85, 0.3);
    display: block;
  }
  
  .nav-link:last-child {
    border-bottom: none;
  }
  
  .nav-link:hover {
    transform: scale(1.02);
  }
}

@media (max-width: 480px) {
  body {
    padding-top: 65px;
  }
  
  .nav-container {
    padding: 0.6rem 1rem;
  }
  
  .nav-logo {
    font-size: 0.7rem;
  }
  
  .nav-links.show {
    max-height: 280px;
  }
  
  .nav-link {
    padding: 0.8rem;
    font-size: 0.6rem;
    width: 95%;
  }
  
  .nav-toggle {
    padding: 0.3rem;
  }
  
  .nav-toggle span {
    width: 20px;
    height: 2px;
  }
}

@media (max-width: 360px) {
  body {
    padding-top: 60px;
  }
  
  .nav-container {
    padding: 0.5rem 0.8rem;
  }
  
  .nav-logo {
    font-size: 0.6rem;
  }
  
  .nav-links.show {
    max-height: 250px;
    padding: 0.5rem 0;
  }
  
  .nav-link {
    padding: 0.7rem;
    font-size: 0.55rem;
  }
}


/* Container principal */
.container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 2rem;
}


/* Header Minecraft style */
.header {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

/* Bannière de personnages */
.banner-image {
  width: 100%;
  max-height: 250px;
  overflow: hidden;
}

.banner-image img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

/* Carte principale style Minecraft UI */
.main-card {
  background: rgba(60, 60, 60, 0.95);
  border: 4px solid var(--mc-gray);
  border-style: solid;
  border-top-color: var(--mc-light-gray);
  border-left-color: var(--mc-light-gray);
  border-right-color: var(--mc-dark-gray);
  border-bottom-color: var(--mc-dark-gray);
  padding: 2.5rem;
  position: relative;
  animation: cardSlideIn 1s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

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

/* Titre principal */
.main-title {
  font-size: 1.8rem;
  color: var(--mc-gold);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--mc-green);
}

/* Contenu texte */
.content-text {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--mc-white);
  margin-bottom: 1.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
}

.content-text strong {
  color: var(--mc-light-green);
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.8);
}

/* Timeline style Minecraft crafting */
.timeline {
  margin: 2.5rem 0;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 1rem;
}

.timeline-item {
  background: var(--mc-brown);
  border: 3px solid;
  border-top-color: #cd853f;
  border-left-color: #cd853f;
  border-right-color: #5d4e37;
  border-bottom-color: #5d4e37;
  padding: 1rem;
  text-align: center;
  min-width: 120px;
  position: relative;
  animation: itemBounce 2s ease-in-out infinite;
  transition: transform 0.3s ease;
}

.timeline-item:hover {
  transform: scale(1.1);
}

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

.timeline-item h4 {
  color: var(--mc-white);
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.timeline-item p {
  color: var(--mc-light-gray);
  font-size: 0.8rem;
}

/* Boutons style Minecraft */
.buttons-container {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin-top: 2.5rem;
  flex-wrap: wrap;
}

.mc-button {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 1rem 2rem;
  font-size: 1rem;
  font-weight: bold;
  text-decoration: none;
  border: 3px solid;
  position: relative;
  transition: all 0.2s ease;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  min-width: 160px;
  justify-content: center;
}

.discord-btn {
  background: var(--mc-blue);
  color: var(--mc-white);
  border-top-color: var(--mc-light-blue);
  border-left-color: var(--mc-light-blue);
  border-right-color: #333399;
  border-bottom-color: #333399;
}

.discord-btn:hover {
  background: var(--mc-light-blue);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.facebook-btn {
  background: #1877f2;
  color: var(--mc-white);
  border-top-color: #42a5f5;
  border-left-color: #42a5f5;
  border-right-color: #1565c0;
  border-bottom-color: #1565c0;
}

.facebook-btn:hover {
  background: #42a5f5;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.green-btn {
  background: var(--mc-green);
  color: var(--mc-white);
  border-top-color: var(--mc-light-green);
  border-left-color: var(--mc-light-green);
  border-right-color: var(--mc-dark-green);
  border-bottom-color: var(--mc-dark-green);
}

.green-btn:hover {
  background: var(--mc-light-green);
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.mc-button:active {
  transform: translateY(1px);
  border-top-color: #333;
  border-left-color: #333;
  border-right-color: #ccc;
  border-bottom-color: #ccc;
}

/* Inventaire style */
.inventory-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
  gap: 0.5rem;
  margin: 2rem 0;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--mc-gray);
}

.inventory-slot {
  aspect-ratio: 1;
  background: rgba(85, 85, 85, 0.8);
  border: 2px solid;
  border-top-color: #aaa;
  border-left-color: #aaa;
  border-right-color: #333;
  border-bottom-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  transition: all 0.3s ease;
}

.inventory-slot:hover {
  background: rgba(85, 85, 85, 1);
  transform: scale(1.1);
}

/* Footer */
.footer {
  text-align: center;
  margin-top: 3rem;
  padding: 1.5rem;
  background: rgba(0, 0, 0, 0.4);
  border-top: 2px solid var(--mc-green);
  color: var(--mc-light-gray);
}

/* Configuration du joueur */
.player-setup {
  background: rgba(60, 60, 60, 0.95);
  border: 4px solid var(--mc-gray);
  border-style: solid;
  border-top-color: var(--mc-light-gray);
  border-left-color: var(--mc-light-gray);
  border-right-color: var(--mc-dark-gray);
  border-bottom-color: var(--mc-dark-gray);
  padding: 2.5rem;
  position: relative;
  animation: cardSlideIn 1s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  text-align: center;
  margin-bottom: 2rem;
}

.player-input {
  width: 300px;
  max-width: 90%;
  padding: 1rem;
  border: 3px solid var(--mc-gray);
  border-style: solid;
  border-top-color: var(--mc-dark-gray);
  border-left-color: var(--mc-dark-gray);
  border-right-color: var(--mc-light-gray);
  border-bottom-color: var(--mc-light-gray);
  background: var(--mc-white);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  margin: 1rem;
  text-align: center;
  color: var(--mc-black);
  border-radius: 4px;
}

/* Jeu principal */
.game-container {
  background: rgba(60, 60, 60, 0.95);
  border: 4px solid var(--mc-gray);
  border-style: solid;
  border-top-color: var(--mc-light-gray);
  border-left-color: var(--mc-light-gray);
  border-right-color: var(--mc-dark-gray);
  border-bottom-color: var(--mc-dark-gray);
  padding: 2.5rem;
  position: relative;
  animation: cardSlideIn 1s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  margin-bottom: 2rem;
}

.game-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.8rem;
  color: var(--mc-gold);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--mc-green);
}

.game-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--mc-gray);
}

.info-item {
  font-family: 'Press Start 2P', monospace;
  font-size: 0.8rem;
  color: var(--mc-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.score-container {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1rem;
  gap: 1rem;
}

.score-box {
  background: var(--mc-brown);
  border: 3px solid;
  border-top-color: #cd853f;
  border-left-color: #cd853f;
  border-right-color: #5d4e37;
  border-bottom-color: #5d4e37;
  padding: 1rem;
  text-align: center;
  flex: 1;
  color: var(--mc-white);
  border-radius: 4px;
}

.score-label {
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  color: var(--mc-light-gray);
}

.score-value {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--mc-gold);
}

.player-info {
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--mc-gray);
  padding: 1rem;
  margin-bottom: 1rem;
  text-align: center;
  border-radius: 4px;
}

.game-board {
  background: var(--mc-dark-gray);
  border: 4px solid var(--mc-gray);
  padding: 15px;
  display: grid;
  gap: 0.5rem;
  margin: 1rem auto;
  border-radius: 8px;
  position: relative;
  width: 100%;
  max-width: 480px;
}

/* Memory Game - 6 colonnes pour 30 cartes */
.game-container .game-board {
  grid-template-columns: repeat(6, 1fr);
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border: 2px solid var(--mc-gray);
}

/* 2048 Game - 4 colonnes pour 16 tuiles */
.game-container.main-card .game-board {
  grid-template-columns: repeat(4, 1fr);
  grid-template-rows: repeat(4, 1fr);
  aspect-ratio: 1;
  padding: 15px;
  background: var(--mc-dark-gray);
  border: 4px solid var(--mc-gray);
}

.tile {
  width: 100%;
  height: 100%;
  background: rgba(85, 85, 85, 0.3);
  border: 2px solid;
  border-top-color: #aaa;
  border-left-color: #aaa;
  border-right-color: #333;
  border-bottom-color: #333;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s ease;
  border-radius: 4px;
  min-height: 100px;
  aspect-ratio: 1;
}

.tile.filled {
  background: rgba(85, 85, 85, 0.8);
  border-top-color: #ccc;
  border-left-color: #ccc;
  border-right-color: #222;
  border-bottom-color: #222;
}

.tile img {
  width: 80px;
  height: 80px;
  image-rendering: pixelated;
  image-rendering: -moz-crisp-edges;
  image-rendering: crisp-edges;
  object-fit: contain;
}

.tile-content {
  position: relative;
  width: 80px;
  height: 80px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.tile-value {
  position: absolute;
  bottom: 2px;
  right: 2px;
  background: rgba(0, 0, 0, 0.8);
  color: var(--mc-gold);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.6rem;
  padding: 2px 4px;
  border-radius: 2px;
  border: 1px solid var(--mc-gold);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.8);
  z-index: 10;
}

.tile .number {
  font-size: 1.5rem;
  font-weight: bold;
  color: var(--mc-white);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.game-over {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--mc-white);
  font-size: 1.5rem;
  text-align: center;
  border-radius: 8px;
}

.game-won {
  background: rgba(0, 170, 0, 0.9);
}

.controls {
  text-align: center;
  margin: 1rem 0;
  color: var(--mc-light-gray);
  font-size: 0.9rem;
}

/* Memory Cards */
.memory-card {
  aspect-ratio: 1;
  border: 3px solid;
  border-top-color: var(--mc-light-gray);
  border-left-color: var(--mc-light-gray);
  border-right-color: var(--mc-dark-gray);
  border-bottom-color: var(--mc-dark-gray);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Press Start 2P', monospace;
  font-size: 1rem;
  transition: all 0.3s ease;
  position: relative;
  background: var(--mc-gray);
  user-select: none;
}

.memory-card:hover:not(.matched):not(.flipped) {
  transform: scale(1.05);
  border-top-color: var(--mc-white);
  border-left-color: var(--mc-white);
}

.memory-card.flipped {
  border-top-color: var(--mc-dark-gray);
  border-left-color: var(--mc-dark-gray);
  border-right-color: var(--mc-light-gray);
  border-bottom-color: var(--mc-light-gray);
}

.memory-card.matched {
  opacity: 0.8;
  border: 3px solid var(--mc-green);
  cursor: default;
  animation: matchGlow 1s ease-in-out;
}

@keyframes matchGlow {
  0%, 100% { box-shadow: 0 0 10px rgba(0, 170, 0, 0.5); }
  50% { box-shadow: 0 0 20px rgba(0, 170, 0, 0.8); }
}

.card-back {
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, var(--mc-gray), var(--mc-dark-gray));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-white);
  font-size: 1.2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.card-front {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--mc-white);
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  border: 2px solid rgba(255, 255, 255, 0.3);
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center;
  image-rendering: pixelated;
}

/* Modal de victoire */
.win-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.win-modal.show {
  display: flex;
}

.win-content {
  background: rgba(60, 60, 60, 0.98);
  border: 4px solid var(--mc-gray);
  border-style: solid;
  border-top-color: var(--mc-light-gray);
  border-left-color: var(--mc-light-gray);
  border-right-color: var(--mc-dark-gray);
  border-bottom-color: var(--mc-dark-gray);
  padding: 2rem;
  text-align: center;
  max-width: 400px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
  border-radius: 10px;
}

.win-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  color: var(--mc-gold);
  margin-bottom: 1rem;
}

/* Classement */
.leaderboard {
  background: rgba(60, 60, 60, 0.95);
  border: 4px solid var(--mc-gray);
  border-style: solid;
  border-top-color: var(--mc-light-gray);
  border-left-color: var(--mc-light-gray);
  border-right-color: var(--mc-dark-gray);
  border-bottom-color: var(--mc-dark-gray);
  padding: 2.5rem;
  position: relative;
  animation: cardSlideIn 1s ease-out;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border-radius: 10px;
}

.leaderboard-title {
  font-family: 'Press Start 2P', monospace;
  font-size: 1.2rem;
  color: var(--mc-gold);
  text-align: center;
  margin-bottom: 2rem;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
  padding-bottom: 1rem;
  border-bottom: 2px solid var(--mc-green);
}

.score-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  margin: 0.5rem 0;
  background: rgba(85, 85, 85, 0.8);
  border: 2px solid;
  border-top-color: var(--mc-light-gray);
  border-left-color: var(--mc-light-gray);
  border-right-color: var(--mc-dark-gray);
  border-bottom-color: var(--mc-dark-gray);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  color: var(--mc-white);
  border-radius: 4px;
}

.no-scores {
  text-align: center;
  color: var(--mc-light-gray);
  font-family: 'Press Start 2P', monospace;
  font-size: 0.7rem;
  padding: 2rem;
}

/* Responsive */
@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  
  .logo {
    font-size: 1.8rem;
  }
  
  .main-card {
    padding: 1.5rem;
  }
  
  .buttons-container {
    gap: 1rem;
  }
  
  .mc-button {
    min-width: 140px;
    padding: 0.8rem 1.5rem;
  }
  
  .timeline {
    flex-direction: column;
    align-items: center;
  }
  
  .timeline-item {
    width: 100%;
    max-width: 200px;
  }

  /* Memory Game responsive */
  .game-container .game-board {
    grid-template-columns: repeat(5, 1fr);
  }
  
  .game-info {
    flex-direction: column;
    gap: 1rem;
  }
}

@media (max-width: 600px) {
  /* 2048 responsive */
  .game-container.main-card .game-board {
    max-width: 350px;
    padding: 10px;
    gap: 8px;
  }
  
  .tile {
    min-height: 70px;
  }
  
  .tile-content {
    max-width: 60px;
    max-height: 60px;
  }
  
  .tile img {
    max-width: 50px;
    max-height: 50px;
  }
  
  .tile-value {
    font-size: 0.5rem;
    padding: 1px 2px;
  }
  
  .game-container {
    padding: 1rem;
  }
}

@media (max-width: 480px) {
  .logo {
    font-size: 1.4rem;
  }
  
  .main-title {
    font-size: 1.4rem;
  }
  
  .buttons-container {
    flex-direction: column;
    align-items: center;
  }

  /* Memory Game responsive */
  .game-container .game-board {
    grid-template-columns: repeat(4, 1fr);
  }

  /* 2048 responsive */
  .game-container.main-card .game-board {
    max-width: 300px;
    padding: 8px;
    gap: 6px;
  }
  
  .tile {
    min-height: 60px;
  }
  
  .tile-content {
    max-width: 50px;
    max-height: 50px;
  }
  
  .tile img {
    max-width: 40px;
    max-height: 40px;
  }
}