/* src/styles/games/matchGame.css */
.match-grid {
    display: grid;
    gap: 8px;
    padding: 8px;
    margin-top: 12px;
    background: #f8f9fa;
    border-radius: 4px;
  }
  
  .match-tile {
    aspect-ratio: 1;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    padding: 0;
    position: relative;
    width: 100%;
    height: 100%;
    background: transparent;
    perspective: 1000px;
  }
  
  .match-tile:disabled {
    cursor: not-allowed;
  }
  
  .tile-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.5s cubic-bezier(0.4, 0.0, 0.2, 1);
    transform-style: preserve-3d;
  }
  
  .match-tile.revealed .tile-inner {
    transform: rotateY(180deg);
  }
  
  .tile-front,
  .tile-back {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
  }
  
  .tile-front {
    background: #3b82f6;
    color: white;
    font-size: 24px;
    z-index: 2;
  }
  
  .tile-back {
    background: #dbeafe;
    color: #1e40af;
    transform: rotateY(180deg);
    font-size: 42px;  /* Increased from 28px */
    z-index: 1;
  }
  
  .match-tile.rare .tile-back {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: white;  /* Better contrast for gold background */
  }
  
  .match-tile.matched .tile-back {
    background: #4ade80;
  }
  
  .match-tile.matched.rare .tile-back {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
  }
  
  .tile-content {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    font-size: inherit;
  }

  .stat-value {
    text-align: center;
    width: 100%;
  }
  
  /* Animation for matching */
  @keyframes matchPulse {
    0% { transform: scale(1) rotateY(180deg); }
    50% { transform: scale(1.1) rotateY(180deg); }
    100% { transform: scale(1) rotateY(180deg); }
  }
  
  .match-tile.matched .tile-inner {
    animation: matchPulse 0.3s ease-in-out;
  }