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

      body {
        font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
        background: linear-gradient(
          135deg,
          #1e3c72 0%,
          #2a5298 50%,
          #7e57c2 100%
        );
        min-height: 100vh;
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 20px;
        position: relative;
        overflow-x: hidden;
      }

      .cloud {
        position: absolute;
        background: rgba(255, 255, 255, 0.8);
        border-radius: 100px;
        animation: float 20s infinite ease-in-out;
      }

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

      .score-badge {
        position: absolute;
        top: 30px;
        left: 30px;
        background: rgba(0, 0, 0, 0.8);
        color: white;
        padding: 15px 25px;
        border-radius: 50px;
        font-size: 24px;
        font-weight: bold;
        z-index: 10;
      }

      .container {
        max-width: 900px;
        width: 100%;
        text-align: center;
        position: relative;
        z-index: 1;
      }

      h1 {
        color: white;
        font-size: 48px;
        margin-bottom: 20px;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
      }

      .subtitle {
        background: white;
        color: black;
        padding: 15px 40px;
        border-radius: 50px;
        font-size: 24px;
        font-weight: bold;
        margin-bottom: 30px;
        display: inline-block;
      }

      .game-board {
        background: rgba(255, 255, 255, 0.95);
        padding: 30px;
        border-radius: 30px;
        box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
        margin-bottom: 30px;
      }

      .cards-grid {
        display: grid;
        grid-template-columns: repeat(6, 1fr);
        gap: 15px;
        margin-bottom: 20px;
      }

      .card {
        aspect-ratio: 1;
        background: #f39c12;
        border-radius: 15px;
        cursor: pointer;
        position: relative;
        transform-style: preserve-3d;
        transition: transform 0.6s;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
      }

      .card:hover {
        transform: scale(1.05);
      }

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

      .card.matched {
        opacity: 0.6;
        cursor: default;
      }

      .card-face {
        position: absolute;
        width: 100%;
        height: 100%;
        backface-visibility: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        border-radius: 15px;
        font-size: 40px;
      }

      .card-front {
        background: #f39c12;
        color: white;
        font-weight: bold;
      }

      .card-back {
        background: white;
        transform: rotateY(180deg);
        font-size: 50px;
      }

      .instructions {
        color: white;
        font-size: 16px;
        line-height: 1.8;
        text-align: right;
        max-width: 800px;
        margin: 0 auto;
      }

      .instructions li {
        margin-bottom: 10px;
      }

      .reset-btn {
        background: #e74c3c;
        color: white;
        border: none;
        padding: 15px 40px;
        border-radius: 50px;
        font-size: 18px;
        font-weight: bold;
        cursor: pointer;
        margin-top: 20px;
        transition: all 0.3s;
      }

      .reset-btn:hover {
        background: #c0392b;
        transform: scale(1.05);
      }

      .win-message {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%) scale(0);
        background: white;
        padding: 40px;
        border-radius: 20px;
        box-shadow: 0 10px 50px rgba(0, 0, 0, 0.5);
        z-index: 100;
        text-align: center;
        transition: transform 0.3s;
      }

      .win-message.show {
        transform: translate(-50%, -50%) scale(1);
      }

      .win-message h2 {
        color: #27ae60;
        font-size: 36px;
        margin-bottom: 20px;
      }

      @media (max-width: 768px) {
        .cards-grid {
          grid-template-columns: repeat(4, 1fr);
          gap: 10px;
        }

        h1 {
          font-size: 32px;
        }

        .subtitle {
          font-size: 18px;
          padding: 10px 30px;
        }

        .score-badge {
          top: 15px;
          left: 15px;
          padding: 10px 20px;
          font-size: 18px;
        }
      }