:root {
      --primary: #0d8a5a;
      --primary-light: #00a6b8;
      --secondary: #00e28a;
      --dark: #002c22;
      --darker: #001a14;
      --light: #f0faf6;
      --light-gray: #d1e7dd;
      --success: #80ed99;
      --danger: #ff6b6b;
      --warning: #ffd166;
      --info: #4cc9f0;
      --card-bg: rgba(13, 138, 90, 0.15);
      --glass-effect: rgba(0, 255, 153, 0.1);
      --animation-speed: 0.3s;
      --border-radius: 12px;
      --box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
    }

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

    body {
      background: linear-gradient(135deg, var(--darker), var(--dark));
      color: var(--light);
      font-family: 'Poppins', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
      line-height: 1.6;
      min-height: 100vh;
      padding: 1rem;
    }

    .container {
      max-width: 1200px;
      margin: 1rem auto;
      background: var(--card-bg);
      border-radius: var(--border-radius);
      padding: 2rem;
      border: 1px solid var(--glass-effect);
      backdrop-filter: blur(10px);
      box-shadow: var(--box-shadow);
    }

    header {
      display: flex;
      flex-direction: column;
      align-items: center;
      margin-bottom: 2rem;
      text-align: center;
    }

    header .logo {
      font-size: 2.5rem;
      font-weight: 700;
      color: var(--primary-light);
      margin-bottom: 1rem;
      text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
      position: relative;
      display: inline-block;
      color: rgb(62, 213, 255);
    }

    header .logo::after {
      content: '';
      position: absolute;
      bottom: -5px;
      left: 0;
      width: 100%;
      height: 3px;
      background: linear-gradient(90deg, transparent, var(--primary-light), transparent);
      border-radius: 3px;
    }

    header .subtitle {
      color: var(--light-gray);
      font-weight: 300;
      max-width: 600px;
    }

    .card {
      background: var(--card-bg);
      border: 1px solid var(--glass-effect);
      border-radius: var(--border-radius);
      padding: 1.5rem;
      margin-bottom: 1.5rem;
      box-shadow: var(--box-shadow);
      transition: transform var(--animation-speed) ease;
    }

    .card:hover {
      transform: translateY(-5px);
    }

    .card-title {
      font-size: 1.5rem;
      margin-bottom: 1rem;
      color: var(--secondary);
      display: flex;
      align-items: center;
      gap: 0.5rem;
    }

    .balance-value {
      font-size: 2.5rem;
      font-weight: 600;
      color: var(--light);
      margin: 0.5rem 0;
    }

    .balance-controls {
      display: flex;
      flex-wrap: wrap;
      gap: 0.8rem;
      margin-top: 1.5rem;
    }

    .input-group {
      display: flex;
      flex: 1;
      min-width: 250px;
    }

    input, button {
      border: none;
      border-radius: var(--border-radius);
      padding: 0.8rem 1.2rem;
      font-size: 1rem;
      font-family: inherit;
      transition: all var(--animation-speed);
    }

    input[type="number"] {
      background: rgba(255, 255, 255, 0.1);
      color: white;
      flex: 1;
      border: 1px solid var(--glass-effect);
    }

    input[type="number"]:focus {
      outline: none;
      border-color: var(--primary-light);
      box-shadow: 0 0 0 2px rgba(0, 184, 100, 0.3);
    }

    button {
      background-color: var(--primary);
      color: white;
      cursor: pointer;
      font-weight: 500;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.5rem;
    }

    button:hover {
      background-color: var(--primary-light);
      transform: translateY(-2px);
    }

    button:active {
      transform: translateY(0);
    }

    .btn-primary {
      background-color: var(--primary);
    }

    .btn-success {
      background-color: var(--success);
      color: #1a3e23;
    }

    .btn-warning {
      background-color: var(--warning);
      color: #5c4a1a;
    }

    .btn-danger {
      background-color: var(--danger);
    }

    .btn-sm {
      padding: 0.5rem 1rem;
      font-size: 0.9rem;
    }

    .quick-actions {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
      gap: 0.8rem;
      margin-top: 1rem;
    }

    .transaction-log {
      max-height: 300px;
      overflow-y: auto;
      padding-right: 0.5rem;
    }

    .transaction-log::-webkit-scrollbar {
      width: 6px;
    }

    .transaction-log::-webkit-scrollbar-track {
      background: rgba(255, 255, 255, 0.05);
    }

    .transaction-log::-webkit-scrollbar-thumb {
      background: var(--primary);
      border-radius: 3px;
    }

    .transaction-item {
      padding: 0.8rem;
      margin-bottom: 0.5rem;
      background: rgba(0, 0, 0, 0.2);
      border-radius: 8px;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .transaction-positive {
      border-left: 4px solid var(--success);
    }

    .transaction-negative {
      border-left: 4px solid var(--danger);
    }

    .transaction-neutral {
      border-left: 4px solid var(--warning);
    }

    .stats-grid {
      display: grid;
      grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
      gap: 1rem;
      margin-bottom: 2rem;
    }

    .stat-card {
      text-align: center;
      padding: 1.5rem;
    }

    .stat-value {
      font-size: 2rem;
      font-weight: 600;
      margin: 0.5rem 0;
      color: var(--secondary);
    }

    .stat-label {
      color: var(--light-gray);
      font-size: 0.9rem;
    }

    .games-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
      gap: 1.5rem;
    }

    .game-image {
      height: 180px;
      background-size: cover;
      background-position: center;
      border-radius: var(--border-radius);
      margin-bottom: 1rem;
      position: relative;
      overflow: hidden;
    }

    .game-image::after {
      content: '';
      position: absolute;
      top: 0;
      left: 0;
      right: 0;
      bottom: 0;
      background: linear-gradient(to top, rgba(0, 30, 18, 0.7), transparent);
    }

    .game-title {
      font-size: 1.3rem;
      font-weight: 500;
      margin-bottom: 0.5rem;
    }

    .game-description {
      color: var(--light-gray);
      font-size: 0.9rem;
      margin-bottom: 1rem;
      min-height: 60px;
    }

    .game-card .btn {
      width: 100%;
    }

    .notification {
      position: fixed;
      top: 20px;
      right: 20px;
      padding: 1rem;
      background: var(--primary);
      color: white;
      border-radius: var(--border-radius);
      box-shadow: var(--box-shadow);
      transform: translateX(150%);
      transition: transform 0.3s ease;
      z-index: 1000;
      max-width: 300px;
    }

    .notification.show {
      transform: translateX(0);
    }

    footer {
      text-align: center;
      margin-top: 3rem;
      padding-top: 1.5rem;
      border-top: 1px solid var(--glass-effect);
      color: var(--light-gray);
      font-size: 0.9rem;
    }

    @media (max-width: 768px) {
      .container {
        padding: 1rem;
      }

      header .logo {
        font-size: 2rem;
      }

      .balance-value {
        font-size: 2rem;
      }

      .input-group {
        min-width: 100%;
      }

      .games-grid {
        grid-template-columns: 1fr;
      }
    }

    /* Animations */
    @keyframes fadeIn {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    .fade-in {
      animation: fadeIn 0.5s ease-in;
    }
    input[type="number"]::-webkit-outer-spin-button,
input[type="number"]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
/* Zielony scrollbar – Chrome, Edge, Opera */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track {
  background: #1e1e1e;
  border-radius: 10px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #00ff99, #00cc66);
  border-radius: 10px;
  border: 2px solid #1e1e1e;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #66ffcc, #00e676);
}

/* Firefox */
* {
  scrollbar-width: thin;
  scrollbar-color: #006a35 #1e1e1e;
}
/* Dodaj do swojego pliku slots.css */
#soundButton {
  margin-right: 10px;
  padding: 5px 10px;
  background-color: #444;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.3s;
}

#soundButton.sound-on {
  background-color: #4CAF50;
}

#soundButton.sound-off {
  background-color: #f44336;
}

/* Ukryj domyślnie elementy audio */
audio {
  display: none;
}@media (max-width: 768px) {
  .container {
    padding: 1rem;
  }
  header .logo {
    font-size: 2rem;
  }
  .balance-value {
    font-size: 2rem;
  }
  .input-group {
    min-width: 0; /* zmiana z 100% na 0 */
    flex-direction: column;
    gap: 0.5rem;
  }
  .input-group input,
  .input-group button {
    width: 100%;
    min-width: 0;
  }
  .games-grid {
    grid-template-columns: 1fr;
  }
}