    :root {
      /* Base Light Theme */
      --primary-color: #46178F;
      --secondary-color: #8A4FFF;
      --accent-color: #FF3355;
      --success-color: #26890C;
      --text-color: #333333;
      --bg-color: #F2F2F2;
      --card-bg: #FFFFFF;
      --card-border: #EEEEEE;
      --input-bg: #FFFFFF;
      --input-border: #DDDDDD;
      --header-gradient-from: #46178F;
      --header-gradient-to: #8A4FFF;
    }
    
    /* Dark Mode Colors */
    [data-theme="dark"] {
      --primary-color: #8A4FFF;
      --secondary-color: #46178F;
      --accent-color: #FF4F6E;
      --success-color: #2EAD0E;
      --text-color: #E0E0E0;
      --bg-color: #121212;
      --card-bg: #1E1E1E;
      --card-border: #333333;
      --input-bg: #2A2A2A;
      --input-border: #444444;
      --header-gradient-from: #2E1166;
      --header-gradient-to: #6E3ECC;
    }
    
    /* Pink Theme Colors */
    [data-theme="pink"] {
      --primary-color: #E91E63;
      --secondary-color: #FF4081;
      --accent-color: #7B1FA2;
      --success-color: #00BFA5;
      --text-color: var(--dark-mode-active, #333333, #E0E0E0);
      --bg-color: var(--dark-mode-active, #FFF0F5, #1A121A);
      --card-bg: var(--dark-mode-active, #FFFFFF, #2A1F2A);
      --card-border: var(--dark-mode-active, #FFD0E0, #4A2A4A);
      --input-bg: var(--dark-mode-active, #FFFFFF, #2A1F2A);
      --input-border: var(--dark-mode-active, #FFB0C0, #5A3A5A);
      --header-gradient-from: #D81B60;
      --header-gradient-to: #FF4081;
    }
    
    /* Green Theme Colors */
    [data-theme="green"] {
      --primary-color: #2E7D32;
      --secondary-color: #4CAF50;
      --accent-color: #FF9800;
      --success-color: #00C853;
      --text-color: var(--dark-mode-active, #333333, #E0E0E0);
      --bg-color: var(--dark-mode-active, #F0F7F0, #0A1A0A);
      --card-bg: var(--dark-mode-active, #FFFFFF, #1A2A1A);
      --card-border: var(--dark-mode-active, #CCEBCC, #2A3A2A);
      --input-bg: var(--dark-mode-active, #FFFFFF, #1A2A1A);
      --input-border: var(--dark-mode-active, #B0DEB0, #3A4A3A);
      --header-gradient-from: #2E7D32;
      --header-gradient-to: #4CAF50;
    }
    
    /* Orange Theme Colors */
    [data-theme="orange"] {
      --primary-color: #EF6C00;
      --secondary-color: #FF9800;
      --accent-color: #3F51B5;
      --success-color: #00BFA5;
      --text-color: var(--dark-mode-active, #333333, #E0E0E0);
      --bg-color: var(--dark-mode-active, #FFF8F0, #1A140A);
      --card-bg: var(--dark-mode-active, #FFFFFF, #2A221A);
      --card-border: var(--dark-mode-active, #FFE0C0, #4A3A2A);
      --input-bg: var(--dark-mode-active, #FFFFFF, #2A221A);
      --input-border: var(--dark-mode-active, #FFCC99, #5A4A3A);
      --header-gradient-from: #EF6C00;
      --header-gradient-to: #FF9800;
    }

    body {
      font-family: 'Nunito', sans-serif;
      background-color: var(--bg-color);
      color: var(--text-color);
      margin: 0;
      padding: 0;
      padding-bottom: 80px; /* Add padding to ensure content isn't hidden behind footer */
      transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .imnoah-container {
      max-width: 1600px;
      margin: 0 auto;
      padding: 0 20px;
    }
    
    .imnoah-card {
      background: var(--card-bg);
      border-radius: 12px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.12);
      overflow: hidden;
      transition: all 0.3s ease;
      border: 1px solid var(--card-border);
    }
    
    .imnoah-header {
      background: linear-gradient(90deg, var(--header-gradient-from) 0%, var(--header-gradient-to) 100%);
      color: white;
      padding: 20px;
      font-weight: bold;
      font-family: 'Montserrat', sans-serif;
    }
    
    .imnoah-btn {
      display: inline-block;
      padding: 12px 24px;
      border-radius: 100px;
      font-weight: bold;
      text-align: center;
      transition: all 0.2s ease;
      font-family: 'Montserrat', sans-serif;
      border: none;
      outline: none;
      cursor: pointer;
    }
    
    .imnoah-btn-primary {
      background-color: var(--primary-color);
      color: white;
    }
    
    .imnoah-btn-primary:hover {
      background-color: var(--secondary-color);
      transform: translateY(-2px);
    }
    
    .imnoah-btn-secondary {
      background-color: var(--accent-color);
      color: white;
    }
    
    .imnoah-btn-secondary:hover {
      background-color: var(--accent-color);
      filter: brightness(90%);
      transform: translateY(-2px);
    }
    
    .imnoah-btn-success {
      background-color: var(--success-color);
      color: white;
    }
    
    .imnoah-btn-success:hover {
      background-color: var(--success-color);
      filter: brightness(90%);
      transform: translateY(-2px);
    }
    
    .imnoah-input {
      display: block;
      width: 100%;
      padding: 12px 16px;
      font-size: 16px;
      border: 2px solid var(--input-border);
      border-radius: 8px;
      background: var(--input-bg);
      color: var(--text-color);
      transition: border 0.3s ease, background 0.3s ease, color 0.3s ease;
    }
    
    .imnoah-input:focus {
      border-color: var(--primary-color);
      outline: none;
    }
    
    .imnoah-select {
      display: block;
      width: 100%;
      padding: 12px 16px;
      font-size: 16px;
      border: 2px solid var(--input-border);
      border-radius: 8px;
      background: var(--input-bg);
      color: var(--text-color);
      transition: border 0.3s ease, background 0.3s ease, color 0.3s ease;
    }
    
    .imnoah-label {
      display: block;
      margin-bottom: 8px;
      font-weight: bold;
      color: var(--text-color);
    }
    
    .notification-item {
      padding: 12px;
      margin-bottom: 8px;
      border-radius: 8px;
      background-color: var(--bg-color);
      border-left: 4px solid var(--primary-color);
      animation: fadeIn 0.5s;
      color: var(--text-color);
    }
    
    @keyframes fadeIn {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }
    
    .timer-display {
      position: relative;
      display: flex;
      align-items: center;
      justify-content: center;
      width: 120px;
      height: 120px;
      border-radius: 50%;
      background-color: rgba(255, 255, 255, 0.9);
      box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
      font-size: 2rem;
      font-weight: bold;
      color: var(--imnoah-blue);
      overflow: hidden;
      word-break: break-word;
      text-align: center;
      transition: all 0.3s ease;
      margin: 0 auto;
    }
    
    /* Add smaller font size for "Waiting..." text */
    .timer-display-small {
      font-size: 1.2rem !important;
      line-height: 1.2 !important;
      padding: 0.5rem !important;
      letter-spacing: -0.5px !important;
    }
    
    .timer-display:hover {
      background: radial-gradient(circle, rgba(255,255,255,1) 0%, rgba(240,249,255,1) 100%);
      transform: scale(1.02);
    }
    
    @keyframes timer-pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }
    
    .timer-pulse {
      animation: timer-pulse 1s infinite;
    }
    
    @keyframes timer-warning {
      0% { transform: translateX(0); }
      25% { transform: translateX(5px); }
      50% { transform: translateX(-5px); }
      75% { transform: translateX(5px); }
      100% { transform: translateX(0); }
    }
    
    .timer-warning {
      animation: timer-warning 0.5s;
      color: var(--imnoah-red);
    }
    
    .round-indicator {
      font-size: 1.5rem;
      font-weight: bold;
      color: var(--primary-color);
      text-align: center;
      margin-bottom: 16px;
    }
    
    .join-code {
      font-size: 2.5rem;
      font-weight: bold;
      letter-spacing: 4px;
      text-align: center;
      background: var(--input-bg);
      padding: 16px;
      border-radius: 8px;
      color: var(--text-color);
      font-family: 'Montserrat', sans-serif;
    }
    
    .participant-item {
      padding: 12px 16px;
      margin-bottom: 8px;
      border-radius: 8px;
      background-color: var(--card-bg);
      border: 1px solid var(--card-border);
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: all 0.2s ease;
      color: var(--text-color);
    }
    
    .participant-item:hover {
      transform: translateX(5px);
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    /* Animation for when answers come in */
    @keyframes pulse {
      0% { transform: scale(1); }
      50% { transform: scale(1.05); }
      100% { transform: scale(1); }
    }
    
    .pulse-animation {
      animation: pulse 0.5s;
    }

    /* Dark mode toggle styling */
    #darkModeToggle input:checked + .dark-mode-thumb {
      transform: translateX(1.5rem);
      background-color: #FFDE5C;
    }
    
    #darkModeToggle .fa-sun {
      color: #FFDE5C;
    }
    
    #darkModeToggle .fa-moon {
      color: #BBBBBB;
    }
    
    [data-dark="true"] #darkModeToggle .fa-sun {
      color: #BBBBBB;
    }
    
    [data-dark="true"] #darkModeToggle .fa-moon {
      color: #FFDE5C;
    }
    
    /* Footer dark mode styles */
    [data-dark="true"] footer {
      background: var(--card-bg);
      border-top: 1px solid var(--card-border);
    }
    
    [data-dark="true"] footer p,
    [data-dark="true"] footer a {
      color: var(--text-color);
    }
    
    /* Enhanced notification styling based on theme */
    [data-theme="pink"] .notification-item {
      border-left: 4px solid var(--accent-color);
    }
    
    [data-theme="green"] .notification-item {
      border-left: 4px solid var(--success-color);
    }
    
    [data-theme="orange"] .notification-item {
      border-left: 4px solid var(--accent-color);
    }
    
    /* Chart and answers list styling */
    .chart-container {
      position: relative;
      min-height: 350px;
      height: 100%;
      width: 100%;
      display: flex;
      align-items: center;
      justify-content: center;
    }
    
    .answers-list {
      max-height: 300px;
      overflow-y: auto;
      border: 1px solid var(--card-border);
      border-radius: 0.5rem;
      background-color: var(--card-bg);
    }
    
    .answer-item {
      padding: 0.75rem;
      border-bottom: 1px solid var(--card-border);
      transition: background-color 0.2s;
      cursor: pointer;
      display: flex;
      align-items: center;
      color: var(--text-color);
    }
    
    .answer-item:last-child {
      border-bottom: none;
    }
    
    .answer-item:hover {
      background-color: rgba(0, 0, 0, 0.05);
    }
    
    [data-dark="true"] .answer-item:hover {
      background-color: rgba(255, 255, 255, 0.05);
    }
    
    .answer-color {
      display: inline-block;
      width: 1rem;
      height: 1rem;
      border-radius: 50%;
      margin-right: 0.75rem;
      flex-shrink: 0;
    }
    
    .answer-text {
      flex-grow: 1;
    }
    
    .answer-count {
      margin-left: 0.5rem;
      padding: 0.125rem 0.5rem;
      border-radius: 1rem;
      font-size: 0.75rem;
      font-weight: 600;
      background-color: var(--input-bg);
      color: var(--text-color);
    }
    
    .answer-highlight {
      background-color: rgba(0, 0, 0, 0.075);
    }
    
    [data-dark="true"] .answer-highlight {
      background-color: rgba(255, 255, 255, 0.075);
    }
    
    @media (max-width: 768px) {
      .chart-container {
        min-height: 220px;
      }
      
      .answers-list {
        max-height: 220px;
      }
    }
    
    @media (min-width: 1536px) {
      .chart-container {
        min-height: 500px;
      }
      
      #roundResultsChart {
        padding: 1.75rem;
      }
      
      .answers-list {
        max-height: 600px;
      }
    }
    
    @media (min-width: 1920px) {
      .chart-container {
        min-height: 600px;
      }
      
      canvas#resultsPieChart {
        max-height: 700px !important;
      }
      
      #roundResultsChart {
        padding: 2rem;
      }
    }
    
    /* Leaderboard styling */
    .player-card {
      transition: all 0.3s ease;
    }
    
    .player-card:hover {
      transform: translateX(5px);
      box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    }
    
    .rank-badge {
      transition: transform 0.2s ease;
    }
    
    .player-card:hover .rank-badge {
      transform: scale(1.1);
    }
    
    .score-highlight {
      animation: scoreHighlight 1.5s ease;
    }
    
    @keyframes scoreHighlight {
      0% { color: var(--success-color); transform: scale(1); }
      50% { color: var(--success-color); transform: scale(1.3); }
      100% { color: var(--primary-color); transform: scale(1); }
    }

    /* Additional Animation Keyframes */
    @keyframes floatUp {
      0% { opacity: 0; transform: translateY(20px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    @keyframes floatIn {
      0% { opacity: 0; transform: translateX(-20px); }
      100% { opacity: 1; transform: translateX(0); }
    }

    @keyframes floatDown {
      0% { opacity: 0; transform: translateY(-20px); }
      100% { opacity: 1; transform: translateY(0); }
    }

    @keyframes zoomIn {
      0% { opacity: 0; transform: scale(0.8); }
      100% { opacity: 1; transform: scale(1); }
    }

    @keyframes shimmer {
      0% { background-position: -1000px 0; }
      100% { background-position: 1000px 0; }
    }

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

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

    @keyframes jello {
      0%, 11.1%, 100% { transform: skewX(0deg) skewY(0deg); }
      22.2% { transform: skewX(-12.5deg) skewY(-12.5deg); }
      33.3% { transform: skewX(6.25deg) skewY(6.25deg); }
      44.4% { transform: skewX(-3.125deg) skewY(-3.125deg); }
      55.5% { transform: skewX(1.5625deg) skewY(1.5625deg); }
      66.6% { transform: skewX(-0.78125deg) skewY(-0.78125deg); }
      77.7% { transform: skewX(0.390625deg) skewY(0.390625deg); }
      88.8% { transform: skewX(-0.1953125deg) skewY(-0.1953125deg); }
    }

    @keyframes heartbeat {
      0% { transform: scale(1); }
      14% { transform: scale(1.3); }
      28% { transform: scale(1); }
      42% { transform: scale(1.3); }
      70% { transform: scale(1); }
    }
    
    @keyframes shake {
      0%, 100% { transform: translateX(0); }
      10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
      20%, 40%, 60%, 80% { transform: translateX(5px); }
    }

    @keyframes slideInFromBottom {
      0% { transform: translateY(100%); opacity: 0; }
      100% { transform: translateY(0); opacity: 1; }
    }

    @keyframes slideOutToBottom {
      0% { transform: translateY(0); opacity: 1; }
      100% { transform: translateY(100%); opacity: 0; }
    }

    /* Animation Utility Classes */
    .animate-float-up {
      animation: floatUp 0.5s ease-out;
    }

    .animate-float-in {
      animation: floatIn 0.5s ease-out;
    }

    .animate-float-down {
      animation: floatDown 0.5s ease-out;
    }

    .animate-zoom-in {
      animation: zoomIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .animate-shimmer {
      background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
      background-size: 1000px 100%;
      animation: shimmer 2s infinite linear;
    }

    .animate-spin {
      animation: spin 1s linear infinite;
    }

    .animate-bounce {
      animation: bounce 1s ease infinite;
    }

    .animate-jello {
      animation: jello 1s both;
    }

    .animate-heartbeat {
      animation: heartbeat 1.5s ease infinite;
    }

    .animate-shake {
      animation: shake 0.5s ease-in-out;
    }

    .animate-slide-in {
      animation: slideInFromBottom 0.5s ease-out;
    }

    .animate-slide-out {
      animation: slideOutToBottom 0.5s ease-in forwards;
    }

    /* Enhanced button animations */
    .imnoah-btn {
      display: inline-block;
      padding: 12px 24px;
      border-radius: 100px;
      font-weight: bold;
      text-align: center;
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      font-family: 'Montserrat', sans-serif;
      border: none;
      outline: none;
      cursor: pointer;
      position: relative;
      overflow: hidden;
    }
    
    .imnoah-btn:before {
      content: '';
      position: absolute;
      top: 50%;
      left: 50%;
      width: 0;
      height: 0;
      background: rgba(255, 255, 255, 0.2);
      border-radius: 50%;
      transform: translate(-50%, -50%);
      transition: width 0.6s ease, height 0.6s ease;
    }
    
    .imnoah-btn:hover:before {
      width: 300%;
      height: 300%;
    }
    
    .imnoah-btn:active {
      transform: scale(0.95);
    }

    /* Enhanced form input animations */
    .imnoah-input {
      display: block;
      width: 100%;
      padding: 12px 16px;
      font-size: 16px;
      border: 2px solid var(--input-border);
      border-radius: 8px;
      background: var(--input-bg);
      color: var(--text-color);
      transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }
    
    .imnoah-input:focus {
      border-color: var(--primary-color);
      outline: none;
      box-shadow: 0 0 0 3px rgba(70, 23, 143, 0.2);
      transform: translateY(-2px);
    }

    /* Enhanced card animations */
    .imnoah-card {
      background: var(--card-bg);
      border-radius: 12px;
      box-shadow: 0 8px 30px rgba(0,0,0,0.12);
      overflow: hidden;
      transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
      border: 1px solid var(--card-border);
    }
    
    .imnoah-card:hover {
      box-shadow: 0 15px 35px rgba(0,0,0,0.18);
      transform: translateY(-5px);
    }

    /* Page transition animations */
    .page-enter {
      opacity: 0;
      transform: translateY(20px);
    }
    
    .page-enter-active {
      opacity: 1;
      transform: translateY(0);
      transition: opacity 0.5s, transform 0.5s;
    }
    
    .page-exit {
      opacity: 1;
      transform: translateY(0);
    }
    
    .page-exit-active {
      opacity: 0;
      transform: translateY(-20px);
      transition: opacity 0.5s, transform 0.5s;
    }

    /* Card and Interactive Elements */
    .card {
      /* This is where existing card styles would go */
    }

    /* Leaderboard Styles */
    .player-card {
      margin-bottom: 0.5rem;
      transition: all 0.2s ease;
    }

    .player-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    }

    .rank-badge {
      transition: transform 0.3s ease;
    }

    .player-card:hover .rank-badge {
      transform: scale(1.1) rotate(10deg);
    }

    #leaderboard {
      max-height: 350px;
      overflow-y: auto;
      padding-right: 0.5rem;
      margin-bottom: 1rem;
      scrollbar-width: thin;
      scrollbar-color: rgba(59, 130, 246, 0.5) transparent;
    }

    #finalLeaderboard {
      max-height: 450px;
      overflow-y: auto;
      padding-right: 0.5rem;
      scrollbar-width: thin;
      scrollbar-color: rgba(59, 130, 246, 0.5) transparent;
    }

    #leaderboard::-webkit-scrollbar {
      width: 6px;
    }

    #leaderboard::-webkit-scrollbar-track {
      background: transparent;
    }

    #leaderboard::-webkit-scrollbar-thumb {
      background-color: rgba(59, 130, 246, 0.5);
      border-radius: 20px;
    }

    #finalLeaderboard::-webkit-scrollbar {
      width: 6px;
    }

    #finalLeaderboard::-webkit-scrollbar-track {
      background: transparent;
    }

    #finalLeaderboard::-webkit-scrollbar-thumb {
      background-color: rgba(59, 130, 246, 0.5);
      border-radius: 20px;
    }

    /* Timer and UI Elements */
    /* This is where existing timer styles would go */

    /* Button Enhancements */
    .participant-submit-btn {
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      transition: all 0.3s ease;
    }
    
    .participant-submit-btn:hover {
      box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
      transform: translateY(-3px);
    }
    
    .participant-submit-btn:active {
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      transform: translateY(0);
    }
    
    .participant-submit-btn:disabled {
      opacity: 0.7;
      cursor: not-allowed;
      transform: none;
      box-shadow: none;
    }

    /* Modal styling for color picker */
    .color-picker-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      justify-content: center;
      align-items: center;
    }
    
    .color-picker-content {
      background-color: var(--card-bg);
      border-radius: 12px;
      padding: 20px;
      width: 90%;
      max-width: 400px;
      box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
      position: relative;
    }

    .color-wheel-container {
      width: 100%;
      padding-bottom: 20px;
      display: flex;
      flex-direction: column;
      align-items: center;
    }

    .color-wheel {
      width: 200px;
      height: 200px;
      border-radius: 50%;
      margin: 20px auto;
      position: relative;
      background: conic-gradient(
        red, orange, yellow, lime, cyan, blue, magenta, red
      );
      cursor: pointer;
      border: 3px solid white;
      box-shadow: 0 0 10px rgba(0, 0, 0, 0.2);
    }

    .color-wheel-selector {
      position: absolute;
      width: 15px;
      height: 15px;
      border: 2px solid white;
      border-radius: 50%;
      transform: translate(-50%, -50%);
      pointer-events: none;
      box-shadow: 0 0 5px rgba(0, 0, 0, 0.5);
      transition: all 0.05s ease-out;
    }

    @media (min-width: 768px) {
      .color-wheel-selector {
        width: 18px;
        height: 18px;
        border: 3px solid white;
      }
    }

    .theme-preview {
      display: flex;
      justify-content: space-between;
      margin: 10px 0;
    }

    .theme-color-preview {
      width: 60px;
      height: 30px;
      border-radius: 6px;
      border: 1px solid #ccc;
    }

    @media (min-width: 768px) {
      .theme-color-preview {
        width: 80px;
        height: 40px;
      }
    }

    .theme-buttons {
      display: flex;
      justify-content: flex-end;
      gap: 10px;
      margin-top: 10px;
    }
    
    .modal-button {
      padding: 8px 16px;
      border-radius: 6px;
      border: none;
      cursor: pointer;
      font-weight: medium;
      transition: all 0.2s;
    }
    
    .apply-button {
      background-color: var(--primary-color);
      color: white;
    }
    
    .cancel-button {
      background-color: #e0e0e0;
      color: #333;
    }

    /* Modal styling for theme selection and color picker */
    .theme-modal {
      display: none;
      position: fixed;
      top: 0;
      left: 0;
      width: 100%;
      height: 100%;
      background-color: rgba(0, 0, 0, 0.5);
      z-index: 1000;
      justify-content: center;
      align-items: center;
    }
    
    .theme-modal-content {
      background-color: var(--card-bg, #FFFFFF);
      border-radius: 12px;
      padding: 20px;
      width: 90%;
      max-width: 500px;
      box-shadow: 0 10px 25px rgba(0, 0, 0, 0.3);
      max-height: 90vh;
      overflow-y: auto;
      position: relative;
    }
    
    .theme-close-btn {
      position: absolute;
      top: 15px;
      right: 15px;
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background-color: rgba(0, 0, 0, 0.05);
      display: flex;
      align-items: center;
      justify-content: center;
      cursor: pointer;
      transition: all 0.2s ease;
      border: none;
      font-size: 18px;
      color: #666;
      z-index: 10;
    }
    
    .theme-close-btn:hover {
      background-color: rgba(0, 0, 0, 0.1);
      transform: scale(1.1);
    }
    
    .theme-close-btn:active {
      transform: scale(0.95);
    }

    .theme-presets-grid {
      display: grid;
      grid-template-columns: repeat(2, 1fr);
      gap: 12px;
      margin-bottom: 20px;
    }

    .theme-preset-card {
      border-radius: 8px;
      overflow: hidden;
      cursor: pointer;
      transition: all 0.2s;
      border: 2px solid transparent;
      box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }

    .theme-preset-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    }

    .theme-preset-card.active {
      border-color: var(--primary-color);
    }

    .theme-preset-header {
      height: 40px;
      display: flex;
      align-items: center;
      justify-content: center;
      color: white;
      font-weight: bold;
    }

    .theme-preset-body {
      padding: 10px;
      background-color: white;
    }

    .theme-preset-title {
      font-weight: 600;
      margin-bottom: 5px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .theme-preset-colors {
      display: flex;
      gap: 5px;
    }

    .theme-color-dot {
      width: 15px;
      height: 15px;
      border-radius: 50%;
      border: 1px solid rgba(0, 0, 0, 0.1);
    }

    .custom-theme-section {
      margin-top: 20px;
      padding-top: 20px;
      border-top: 1px solid rgba(0, 0, 0, 0.1);
    }

    .section-title {
      font-weight: bold;
      margin-bottom: 15px;
      display: flex;
      align-items: center;
      gap: 8px;
    }

    .theme-section-icon {
      width: 20px;
      height: 20px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      border-radius: 4px;
      background-color: var(--primary-color);
      color: white;
      font-size: 14px;
    }

    /* Add adaptive styling for larger screens */
    @media (min-width: 768px) {
      .theme-modal-content {
        max-width: 700px;
        padding: 30px;
      }
      
      .theme-presets-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 16px;
      }
      
      .color-wheel {
        width: 250px;
        height: 250px;
      }
    }

    @media (min-width: 1200px) {
      .theme-modal-content {
        max-width: 900px;
      }
      
      .theme-presets-grid {
        grid-template-columns: repeat(4, 1fr);
      }
      
      .theme-preset-card {
        transition: all 0.3s ease;
      }
      
      .theme-preset-card:hover {
        transform: translateY(-5px) scale(1.02);
      }
    }

    @media (min-width: 768px) {
      .custom-theme-section {
        margin-top: 30px;
        padding-top: 30px;
      }
      
      .theme-preview {
        gap: 20px;
      }
    }

    @media (min-width: 1200px) {
      .custom-theme-section .color-wheel-container {
        display: flex;
        flex-direction: row;
        align-items: center;
        gap: 30px;
      }
      
      .custom-theme-section .color-wheel {
        margin: 0;
      }
      
      .custom-theme-section .theme-preview {
        flex-direction: column;
        min-width: 120px;
      }
    }
    
    /* Winner and loser highlighting */
    .winner-highlight {
      color: #22c55e !important; /* Green text */
      font-weight: bold;
      animation: winner-pulse 1.5s infinite;
      transition: all 0.3s ease;
      text-shadow: 0 0 5px rgba(34, 197, 94, 0.3);
    }
    
    .loser-highlight {
      color: #ef4444 !important; /* Red text */
      font-weight: bold;
      animation: loser-pulse 1.5s infinite;
      transition: all 0.3s ease;
      text-shadow: 0 0 5px rgba(239, 68, 68, 0.3);
    }
    
    /* Letter count hint styling */
    .letter-count-hint {
      font-family: monospace;
      letter-spacing: 4px;
      text-align: center;
      font-size: 1.2rem;
    }
    
    .letter-count-hint::placeholder {
      letter-spacing: 8px;
      font-weight: bold;
      opacity: 0.7;
    }
    
    @keyframes winner-pulse {
      0% { opacity: 0.8; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.05); text-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
      100% { opacity: 0.8; transform: scale(1); }
    }
    
    @keyframes loser-pulse {
      0% { opacity: 0.8; transform: scale(1); }
      50% { opacity: 1; transform: scale(1.05); text-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
      100% { opacity: 0.8; transform: scale(1); }
    }
    
    .player-card.winner {
      background-color: rgba(34, 197, 94, 0.1);
      border-color: rgba(34, 197, 94, 0.3);
      transition: all 0.5s ease;
      box-shadow: 0 0 10px rgba(34, 197, 94, 0.2);
      animation: winner-card-glow 2s infinite;
    }
    
    .player-card.loser {
      background-color: rgba(239, 68, 68, 0.1);
      border-color: rgba(239, 68, 68, 0.3);
      transition: all 0.5s ease;
      box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
      animation: loser-card-glow 2s infinite;
    }
    
    @keyframes winner-card-glow {
      0% { box-shadow: 0 0 5px rgba(34, 197, 94, 0.2); }
      50% { box-shadow: 0 0 15px rgba(34, 197, 94, 0.4); }
      100% { box-shadow: 0 0 5px rgba(34, 197, 94, 0.2); }
    }
    
    @keyframes loser-card-glow {
      0% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.2); }
      50% { box-shadow: 0 0 15px rgba(239, 68, 68, 0.4); }
      100% { box-shadow: 0 0 5px rgba(239, 68, 68, 0.2); }
    }

    /* Add styles for the hint notification */
    .hint-notification {
      position: fixed;
      top: 20px;
      right: 20px;
      background-color: var(--accent-color);
      color: white;
      padding: 16px 20px;
      border-radius: 8px;
      box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
      z-index: 1000;
      max-width: 350px;
      font-weight: 600;
      font-size: 1.1rem;
      display: flex;
      align-items: center;
      border-left: 6px solid var(--primary-color);
      animation: hint-notification-appear 0.5s ease-out, hint-notification-pulse 2s infinite 0.5s;
    }

    .hint-notification i {
      font-size: 1.5rem;
      margin-right: 12px;
      color: #FFDE5C;
    }

    .animate-float-out {
      animation: float-out 0.5s ease-in-out forwards;
    }

    @keyframes float-out {
      0% {
        opacity: 1;
        transform: translateY(0);
      }
      100% {
        opacity: 0;
        transform: translateY(-20px);
      }
    }

    @keyframes hint-notification-appear {
      0% {
        opacity: 0;
        transform: translateY(-30px) scale(0.9);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }

    @keyframes hint-notification-pulse {
      0% {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
      }
      50% {
        box-shadow: 0 6px 25px rgba(255, 51, 85, 0.5);
      }
      100% {
        box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
      }
    }