* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Poppins", sans-serif;
  }
  
  :root {
    --primary: #003399;
    --primary-light: #0055cc;
    --primary-dark: #002277;
    --accent: #ffcc00;
    --accent-light: #ffdd33;
    --accent-dark: #e6b800;
    --text: #333333;
    --text-light: #666666;
    --upgrade-bg: #ffffff;
    --background: #f5f7fa;
    --card-bg: #ffffff;
    --border: #e0e0e0;
    --success: #4caf50;
    --danger: #f44336;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.1);
    --transition: all 0.3s ease;
  }
  
  #ban-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-color: rgba(244, 67, 54, 0.95); 
    color: white;
    font-size: 2.2rem;
    font-weight: bold;
    text-align: center;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 2rem;
    gap: 1rem;
    backdrop-filter: blur(4px);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    display: flex;
  }
  
  #ban-overlay #ban-reason {
    font-size: 1.2rem;
    font-weight: 500;
    color: white;
    margin-top: 0.5rem;
  }
  

  body.dark-theme {
    --primary: #4169e1;
    --primary-light: #6495ed;
    --primary-dark: #0000cd;
    --accent: #ffd700;
    --accent-light: #ffdf33;
    --accent-dark: #e6c200;
    --text:rgb(255, 255, 255);
    --text-light:rgb(255, 255, 255);
    --background: #121212;
    --card-bg: #1e1e1e;
    --upgrade-bg: #222222;
    --border: #333333;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 15px rgba(0, 0, 0, 0.3);
  }
  
  body {
    background-color: var(--background);
    color: var(--text);
    line-height: 1.6;
  }
  
  .game-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background-color: var(--card-bg);
    min-height: 100vh;
    box-shadow: var(--shadow-lg);
    position: relative;
    overflow: hidden;
  }
  
  /* ei vittu sun kans */
  .background-elements {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
    overflow: hidden;
  }
  
  .floating-euro {
    position: absolute;
    color: var(--accent);
    opacity: 0.1;
    font-size: 5rem;
    font-weight: bold;
    animation: float 20s infinite linear;
  }
  
  .e1 {
    top: 10%;
    left: 5%;
    animation-duration: 30s;
    font-size: 8rem;
  }
  
  .e2 {
    top: 30%;
    right: 10%;
    animation-duration: 25s;
    animation-delay: 5s;
    font-size: 6rem;
  }
  
  .e3 {
    bottom: 20%;
    left: 15%;
    animation-duration: 35s;
    animation-delay: 2s;
    font-size: 7rem;
  }
  
  .e4 {
    bottom: 40%;
    right: 20%;
    animation-duration: 28s;
    animation-delay: 8s;
    font-size: 5rem;
  }
  
  .e5 {
    top: 60%;
    left: 30%;
    animation-duration: 32s;
    animation-delay: 4s;
    font-size: 9rem;
  }
  
  @keyframes float {
    0% {
      transform: translateY(0) rotate(0deg);
    }
    50% {
      transform: translateY(-100px) rotate(180deg);
    }
    100% {
      transform: translateY(0) rotate(360deg);
    }
  }
  
  
  .header-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-right: 20px;
  }
  
  /* edellee? */
  .language-switcher {
    display: flex;
    background-color: var(--background);
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
  }
  
  .lang-btn {
    background: none;
    border: none;
    padding: 8px 12px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-light);
  }
  
  .lang-btn:hover {
    background-color: rgba(0, 51, 153, 0.05);
  }
  
  .lang-btn.active {
    background-color: var(--primary);
    color: white;
  }
  .theme-toggle {
    background-color: var(--background);
    border: 1px solid var(--border);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
  }
  
  .theme-toggle:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
  }
  
  .theme-toggle-icon {
    position: absolute;
    font-size: 1.2rem;
    transition: var(--transition);
  }
  
  .theme-toggle-icon.light {
    opacity: 1;
    transform: translateY(0);
  }
  
  .theme-toggle-icon.dark {
    opacity: 0;
    transform: translateY(20px);
  }
  
  body.dark-theme .theme-toggle-icon.light {
    opacity: 0;
    transform: translateY(-20px);
  }
  
  body.dark-theme .theme-toggle-icon.dark {
    opacity: 1;
    transform: translateY(0);
  }
  

  header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--border);
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
  }
  

  .audio-controls {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
    background-color: var(--background);
    padding: 10px 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    position: relative;
    z-index: 1;
  }
  
  .audio-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 12px;
    cursor: pointer;
    transition: var(--transition);
    color: var(--text);
  }
  
  .audio-btn:hover {
    background-color: var(--primary-light);
    color: white;
  }
  
  .audio-btn.muted {
    background-color: var(--text-light);
    color: var(--card-bg);
  }
  
  .audio-btn.muted .audio-icon {
    opacity: 0.7;
  }
  
  .audio-icon {
    font-size: 1.2rem;
  }
  
  .volume-control {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
  }
  
  .volume-control span {
    font-size: 0.9rem;
    color: var(--text);
  }
  
  input[type="range"] {
    -webkit-appearance: none;
    width: 100px;
    height: 6px;
    background: var(--border);
    border-radius: 3px;
    outline: none;
  }
  
  input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
  }
  
  input[type="range"]::-moz-range-thumb {
    width: 16px;
    height: 16px;
    background: var(--primary);
    border-radius: 50%;
    cursor: pointer;
    border: none;
  }
  
  /* viimene varotus */
  .logo {
    display: flex;
    align-items: center;
    gap: 15px;
  }
  
  .logo-icon {
    background-color: var(--primary);
    color: var(--accent);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.5rem;
    box-shadow: var(--shadow);
  }
  
  h1 {
    color: var(--primary);
    font-size: 1.8rem;
    font-family: "Montserrat", sans-serif;
    font-weight: 700;
  }
  
  .currency-display {
    font-size: 1.5rem;
    font-weight: bold;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    padding: 12px 20px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    animation: pulse 2s infinite;
  }
  
  @keyframes pulse {
    0% {
      box-shadow: 0 0 0 0 rgba(0, 51, 153, 0.4);
    }
    70% {
      box-shadow: 0 0 0 10px rgba(0, 51, 153, 0);
    }
    100% {
      box-shadow: 0 0 0 0 rgba(0, 51, 153, 0);
    }
  }
  
  #currency-icon {
    color: var(--accent);
    font-size: 1.8rem;
  }
  
  .stats-bar {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
    position: relative;
    z-index: 1;
  }
  
  .stat {
    background-color: var(--card-bg);
    border-radius: 10px;
    padding: 15px;
    display: flex;
    align-items: center;
    gap: 15px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
  }
  
  .stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  
  .stat-icon {
    font-size: 1.8rem;
    background-color: rgba(0, 51, 153, 0.1);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .stat-info {
    flex: 1;
  }
  
  .stat-label {
    font-size: 0.9rem;
    color: var(--text-light);
  }
  
  .stat-value {
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary);
  }
  

  main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 30px;
    position: relative;
    z-index: 1;
  }
  
  @media (min-width: 992px) {
    main {
      grid-template-columns: 1fr 1fr;
    }
  }
  
  /* thats it */
  .clicker-section {
    display: flex;
    flex-direction: column;
    gap: 30px;
  }
  
  .clicker-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 40px 0;
  }
  
  .passive-indicator {
    position: absolute;
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 204, 0, 0.2) 0%, rgba(255, 204, 0, 0) 70%);
    animation: pulse-passive 2s infinite;
    opacity: 0;
    transition: opacity 0.5s ease;
  }
  
  @keyframes pulse-passive {
    0% {
      transform: scale(1);
      opacity: 0.5;
    }
    100% {
      transform: scale(1.5);
      opacity: 0;
    }
  }
  
  .euro-coin {
    width: 180px;
    height: 180px;
    background: linear-gradient(135deg, var(--accent), var(--accent-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
    transition: transform 0.1s, box-shadow 0.1s;
    user-select: none;
    position: relative;
    z-index: 2;
  }
  
  .coin-inner {
    width: 160px;
    height: 160px;
    background: radial-gradient(circle, var(--accent-light) 0%, var(--accent) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 4px solid var(--accent-light);
  }
  
  .euro-coin:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.4);
  }
  
  .euro-coin:active {
    transform: scale(0.95);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  }
  
  .euro-symbol {
    font-size: 100px;
    color: var(--primary);
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
  }
  
  /* NEEKERI */
  .achievements-section {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
  }
  
  .achievements-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    text-align: center;
    position: relative;
  }
  
  .achievements-section h2:after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
  }
  
  .achievements-container {
    display: grid;
    grid-template-columns: 1fr;
    gap: 15px;
  }
  
  .achievement {
    background-color: #f9f9f9;
    padding: 15px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: var(--transition);
    border: 1px solid var(--border);
    opacity: 0.7;
  }
  
  .achievement.unlocked {
    background-color: rgba(76, 175, 80, 0.1);
    border-color: var(--success);
    opacity: 1;
  }
  
  .achievement-icon {
    font-size: 1.8rem;
    background-color: #f0f0f0;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .achievement.unlocked .achievement-icon {
    background-color: rgba(76, 175, 80, 0.2);
  }
  
  .achievement-info {
    flex: 1;
  }
  
  .achievement h3 {
    font-size: 1rem;
    margin-bottom: 5px;
    color: var(--text);
  }
  
  .achievement p {
    font-size: 0.9rem;
    color: var(--text-light);
    margin-bottom: 8px;
  }
  
  .achievement-progress {
    height: 6px;
    background-color: #1e1e1e;
    border-radius: 3px;
    overflow: hidden;
  }
  
  .progress-bar {
    height: 100%;
    background-color: var(--primary);
    width: 0%;
    transition: width 0.5s ease;
  }
  
  .achievement.unlocked .progress-bar {
    background-color: var(--success);
    width: 100%;
  }
  
  /* ei enää pls */
  .upgrades-section {
    background-color: var(--card-bg);
    border-radius: 15px;
    padding: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
  }
  
  .upgrades-section h2 {
    color: var(--primary);
    margin-bottom: 20px;
    font-family: "Montserrat", sans-serif;
    font-weight: 600;
    text-align: center;
    position: relative;
  }
  
  .upgrades-section h2:after {
    content: "";
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background-color: var(--accent);
    border-radius: 3px;
  }
  
  .upgrades-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }
  
  .upgrade {
    background-color:rgb(--upgrade);
    padding: 20px;
    border-radius: 12px;
    box-shadow: var(--shadow);
    transition: var(--transition);
    border: 1px solid var(--border);
    display: flex;
    flex-direction: column;
  }
  
  .upgrade:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
  }
  
  .upgrade-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
  }
  
  .upgrade-icon {
    font-size: 1.5rem;
    background-color: rgba(0, 51, 153, 0.1);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  
  .upgrade h3 {
    color: var(--primary);
    margin-bottom: 5px;
    font-size: 1.1rem;
  }
  
  .upgrade-level {
    font-size: 0.8rem;
    color: var(--text-light);
  }
  
  .level-value {
    font-weight: 600;
    color: var(--primary);
  }
  
  .upgrade-description {
    font-size: 0.9rem;
    color: var(--text);
    margin-bottom: 15px;
  }
  
  .upgrade-effect {
    background-color: rgba(0, 51, 153, 0.05);
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 0.9rem;
    margin-bottom: 15px;
  }
  
  .effect-label {
    font-weight: 500;
    color: var(--primary);
    margin-right: 5px;
  }
  
  .upgrade-footer {
    margin-top: auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
  }
  
  .cost {
    font-weight: 500;
    color: var(--text);
  }
  
  .upgrade-cost {
    color: var(--primary);
    font-weight: 600;
  }
  
  .buy-btn {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
  }
  
  .buy-btn:hover {
    background: linear-gradient(135deg, var(--primary-light), var(--primary));
    transform: translateY(-2px);
  }
  
  .buy-btn:active {
    transform: translateY(0);
  }
  
  .buy-btn:disabled {
    background: linear-gradient(135deg, #cccccc, #999999);
    cursor: not-allowed;
    transform: none;
  }
  
  /* Rupee harmittaa :( */
  footer {
    margin-top: 40px;
    padding-top: 20px;
    border-top: 2px solid var(--border);
    display: flex;
    flex-direction: column;
    gap: 15px;
    position: relative;
    z-index: 1;
  }
  
  @media (min-width: 768px) {
    footer {
      flex-direction: row;
      justify-content: space-between;
      align-items: center;
    }
  }
  
  .settings {
    display: flex;
    gap: 10px;
  }
  
  .danger-btn {
    background-color: var(--danger);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
  }
  
  .danger-btn:hover {
    background-color: #d32f2f;
  }
  
  .primary-btn {
    background-color: var(--primary);
    color: white;
    border: none;
    padding: 10px 15px;
    border-radius: 6px;
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
  }
  
  .primary-btn:hover {
    background-color: var(--primary-light);
  }
  
  .game-info {
    text-align: right;
    color: var(--text-light);
    font-size: 0.9rem;
  }
  
  .last-saved {
    font-size: 0.8rem;
    margin-top: 5px;
  }
  
  .notification-container {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    gap: 10px;
  }
  
  .notification {
    background-color: var(--card-bg);
    color: var(--text);
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slide-in 0.3s ease;
    max-width: 300px;
  }
  
  .notification.success {
    border-left: 4px solid var(--success);
  }
  
  .notification.info {
    border-left: 4px solid var(--primary);
  }
  
  .notification.achievement {
    border-left: 4px solid var(--accent);
  }
  
  @keyframes slide-in {
    from {
      transform: translateX(100%);
      opacity: 0;
    }
    to {
      transform: translateX(0);
      opacity: 1;
    }
  }
  
  @keyframes slide-out {
    from {
      transform: translateX(0);
      opacity: 1;
    }
    to {
      transform: translateX(100%);
      opacity: 0;
    }
  }
  
  /* älä näit kato näkyy admin paneelin salasana */
  @keyframes float-up {
    0% {
      transform: translateY(0);
      opacity: 1;
    }
    100% {
      transform: translateY(-50px);
      opacity: 0;
    }
  }
  
  .floating-number {
    position: absolute;
    pointer-events: none;
    animation: float-up 1s ease-out forwards;
    font-weight: bold;
    z-index: 100;
  }
  
  @media (max-width: 768px) {
    .stats-bar {
      grid-template-columns: repeat(2, 1fr);
    }
  
    .upgrades-container {
      grid-template-columns: 1fr;
    }
  
    .euro-coin {
      width: 150px;
      height: 150px;
    }
  
    .coin-inner {
      width: 130px;
      height: 130px;
    }
  
    .euro-symbol {
      font-size: 80px;
    }
  
    header {
      flex-wrap: wrap;
      gap: 15px;
    }
  
    .header-controls {
      order: 2;
      margin-right: 0;
      width: 100%;
      justify-content: center;
    }
  
    .currency-display {
      order: 1;
    }
  
    .logo {
      order: 0;
    }
  
    .audio-controls {
      flex-direction: column;
      align-items: stretch;
    }
  
    .volume-control {
      margin-left: 0;
      justify-content: space-between;
    }
  }
  /* salasana : Neekeri aukee f5 */
  