


      @keyframes backgroundShift {
        0%,
        100% {
          background: linear-gradient(
            135deg,
            #667eea 0%,
            #764ba2 50%,
            #f093fb 100%
          );
        }
        33% {
          background: linear-gradient(
            135deg,
            #ffecd2 0%,
            #fcb69f 50%,
            #667eea 100%
          );
        }
        66% {
          background: linear-gradient(
            135deg,
            #a8edea 0%,
            #fed6e3 50%,
            #764ba2 100%
          );
        }
      }

      /* Particle Animation Background */
      .particles {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        pointer-events: none;
        z-index: 0;
      }

      .particle {
        position: absolute;
        background: rgba(255, 255, 255, 0.3);
        border-radius: 50%;
        animation: float 20s infinite linear;
      }

      @keyframes float {
        0% {
          transform: translateY(100vh) rotate(0deg);
          opacity: 0;
        }
        10% {
          opacity: 1;
        }
        90% {
          opacity: 1;
        }
        100% {
          transform: translateY(-100vh) rotate(360deg);
          opacity: 0;
        }
      }

      /* Header */
      .game-header {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        padding: 1rem 0;
        box-shadow: var(--card-shadow);
        position: sticky;
        top: 0;
        z-index: 1000;
        border-bottom: 3px solid var(--primary-color);
      }

      .header-content {
        max-width: 1400px;
        margin: 0 auto;
        padding: 0 1rem;
        display: flex;
        justify-content: space-between;
        align-items: center;
      }

      .game-title {
        font-family: "Comic Neue", sans-serif;
        font-size: 2rem;
        font-weight: 700;
        background: linear-gradient(135deg, #ff6b9d, #4ecdc4, #45b7d1, #96ceb4);
        -webkit-background-clip: text;
        background-clip: text;
        background-clip: text;
        background-clip: text;
        background-clip: text;
        background-clip: text;
        background-clip: text;
        background-clip: text;
        background-clip: text;
        background-clip: text;
        background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        animation: titleBounce 2s ease-in-out infinite;
        text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
      }

      @keyframes titleBounce {
        0%,
        20%,
        50%,
        80%,
        100% {
          transform: translateY(0);
        }
        40% {
          transform: translateY(-5px);
        }
        60% {
          transform: translateY(-3px);
        }
      }

      .game-controls {
        display: flex;
        gap: 0.75rem;
        align-items: center;
      }






      /* Setup Screen */
      .setup-screen {
        flex: 1;
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 2rem;
        position: relative;
        z-index: 1;
      }

      .setup-container {
        background: rgba(255, 255, 255, 0.95);
        backdrop-filter: blur(15px);
        border-radius: 25px;
        padding: 2.5rem;
        box-shadow: var(--card-hover-shadow);
        max-width: 900px;
        width: 100%;
        border: 3px solid var(--primary-color);
        position: relative;
        overflow: hidden;
      }

      .setup-container::before {
        content: "";
        position: absolute;
        top: -50%;
        left: -50%;
        width: 200%;
        height: 200%;
        background: conic-gradient(
          from 0deg,
          transparent,
          var(--primary-color),
          transparent 30%
        );
        animation: rotate 20s linear infinite;
        opacity: 0.1;
      }

      @keyframes rotate {
        100% {
          transform: rotate(360deg);
        }
      }

      .setup-title {
        text-align: center;
        font-size: 2.5rem;
        font-weight: 700;
        background: linear-gradient(
          135deg,
          var(--primary-color),
          var(--accent-color)
        );
        -webkit-background-clip: text;
        background-clip: text;
        -webkit-text-fill-color: transparent;
        margin-bottom: 2rem;
        position: relative;
        z-index: 1;
      }

      .setup-section {
        margin-bottom: 2.5rem;
        position: relative;
        z-index: 1;
      }

      .setup-section h3 {
        font-size: 1.4rem;
        font-weight: 700;
        margin-bottom: 1.5rem;
        color: var(--text-primary);
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
      }

      .board-selection {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
        gap: 1.5rem;
      }

      .board-option {
        aspect-ratio: 1;
        border: 4px solid transparent;
        border-radius: 20px;
        overflow: hidden;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        position: relative;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-direction: column;
        gap: 0.5rem;
        padding: 1rem;
      }

      .board-option:hover {
        transform: scale(1.08) rotate(2deg);
        box-shadow: var(--card-hover-shadow);
      }

      .board-option.selected {
        border-color: var(--primary-color);
        box-shadow: 0 0 0 4px rgba(255, 107, 157, 0.3);
        transform: scale(1.05);
      }

      .board-preview {
        width: 100%;
        height: 70%;
        border-radius: 10px;
        position: relative;
        overflow: hidden;
        display: grid;
        grid-template-columns: repeat(5, 1fr);
        grid-template-rows: repeat(5, 1fr);
        gap: 2px;
        padding: 8px;
      }

      .board-preview-cell {
        background: rgba(255, 255, 255, 0.8);
        border-radius: 3px;
      }

      .board-label {
        font-weight: 700;
        text-align: center;
        color: var(--text-primary);
        font-size: 1.1rem;
      }

      .board-option[data-board="classic"] .board-preview {
        background: linear-gradient(135deg, #e0f7fa 0%, #b3e5fc 100%);
      }

      .board-option[data-board="jungle"] .board-preview {
        background: linear-gradient(135deg, #c8e6c9 0%, #81c784 100%);
      }

      .board-option[data-board="ocean"] .board-preview {
        background: linear-gradient(135deg, #90caf9 0%, #42a5f5 100%);
      }

      .board-option[data-board="space"] .board-preview {
        background: linear-gradient(135deg, #5c6bc0 0%, #3949ab 100%);
      }

      .player-selection {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
        gap: 1.5rem;
      }

      .player-option {
        aspect-ratio: 1;
        border: 4px solid transparent;
        border-radius: 50%;
        cursor: pointer;
        transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 3.5rem;
        background: var(--bg-primary);
        box-shadow: var(--card-shadow);
        position: relative;
        overflow: hidden;
      }

      .player-option::before {
        content: "";
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        background: radial-gradient(circle, var(--primary-color), transparent);
        transition: all 0.3s ease;
        transform: translate(-50%, -50%);
        opacity: 0.2;
      }

      .player-option:hover::before {
        width: 100%;
        height: 100%;
      }

      .player-option:hover {
        transform: scale(1.15) rotate(5deg);
        box-shadow: var(--card-hover-shadow);
      }

      .player-option.selected {
        border-color: var(--secondary-color);
        box-shadow: 0 0 0 4px rgba(78, 205, 196, 0.4);
        transform: scale(1.1);
        animation: playerSelected 0.6s ease-out;
      }
