:root {
      --bg-primary: #23272a;
      --bg-secondary: #2c2f34;
      --text-primary: #fff;
      --text-secondary: #bbb;
      --accent-color: #ffb300;
      --popup-bg: rgba(35,39,42,0.72);
    }
    [data-theme="vilagos"] {
      --bg-primary: #f5f5f5;
      --bg-secondary: #ffffff;
      --text-primary: #333;
      --text-secondary: #666;
      --accent-color: #2ecc71;
      --popup-bg: rgba(0,0,0,0.4);
    }
    html, body {
      height: 100%;
      margin: 0;
      padding: 0;
    }
    body {
      min-height: 100vh;
      min-width: 100vw;
      background: var(--bg-primary);
      color: var(--text-primary);
      font-family: 'Segoe UI', Arial, sans-serif;
      margin: 0;
      display: flex;
      align-items: center;
      justify-content: center;
      position: relative;
      transition: background 0.3s, color 0.3s;
    }
    .overlay {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: linear-gradient(135deg, var(--bg-primary) 60%, var(--bg-secondary) 100%);
      z-index: -1;
      transition: background 0.3s;
    }
    .profile-card {
      background: var(--bg-secondary);
      border-radius: 20px;
      box-shadow: 0 8px 32px 0 rgba(0,0,0,0.37);
      max-width: 410px;
      padding: 32px 28px 22px 28px;
      text-align: center;
      position: relative;
      z-index: 2;
      transition: background 0.3s;
    }
    .profile-header {
      display: flex;
      align-items: center;
      margin-bottom: 22px;
    }
    .profile-pic {
      width: 70px;
      height: 70px;
      border-radius: 50%;
      border: 3px solid var(--accent-color);
      margin-right: 20px;
      object-fit: cover;
      transition: border-color 0.3s;
    }
    .profile-info {
      text-align: left;
    }
    .profile-name {
      font-size: 1.5em;
      font-weight: bold;
      color: var(--accent-color);
      margin-bottom: 4px;
      transition: color 0.3s;
    }
    .profile-desc {
      font-size: 1.05em;
      color: var(--text-secondary);
      font-style: italic;
      transition: color 0.3s;
    }
    .button-row {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-bottom: 18px;
      flex-wrap: wrap;
    }
    .profile-btn {
      background: var(--bg-primary);
      color: var(--text-primary);
      border: none;
      border-radius: 7px;
      padding: 10px 18px;
      font-size: 1em;
      font-weight: 500;
      cursor: pointer;
      transition: background 0.18s, color 0.18s;
      margin-bottom: 6px;
      text-decoration: none;
      display: flex;
      align-items: center;
      gap: 7px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.08);
    }
    .profile-btn:hover {
      background: var(--accent-color);
      color: var(--bg-primary);
    }
    .profile-btn.linkedin { background: #0077b5; }
    .profile-btn.linkedin:hover { background: var(--accent-color); color: var(--bg-primary); }
    .profile-btn.contact { background: #6ab04c; }
    .profile-btn.contact:hover { background: var(--accent-color); color: var(--bg-primary); }
    .profile-btn.donate { background: #e74c3c; }
    .profile-btn.donate:hover { background: var(--accent-color); color: var(--bg-primary); }
    .profile-btn.szamlalo { background: var(--accent-color); color: var(--bg-primary); }
    .profile-btn.szamlalo:hover { background: var(--bg-primary); color: var(--accent-color); }
    .profile-btn.steam img {
      width: 20px;
      height: 20px;
      vertical-align: middle;
      margin-right: 5px;
      filter: brightness(1.5);
    }
    .bottom-row {
      display: flex;
      justify-content: center;
      gap: 12px;
      margin-top: 12px;
      flex-wrap: wrap;
    }
    .server-btn {
      position: fixed;
      bottom: 30px;
      right: 30px;
      background: var(--accent-color);
      color: var(--bg-primary);
      border: none;
      border-radius: 8px;
      padding: 13px 30px;
      font-size: 1.1em;
      font-weight: bold;
      box-shadow: 0 2px 10px rgba(0,0,0,0.15);
      cursor: pointer;
      z-index: 1000;
      text-decoration: none;
      transition: background 0.18s, color 0.18s;
      opacity: 0.93;
    }
    .server-btn:hover {
      background: #e74c3c;
      color: #fff;
    }
    .theme-toggle {
      position: fixed;
      bottom: 30px;
      left: 30px;
      background: var(--accent-color);
      color: var(--bg-primary);
      border: none;
      border-radius: 8px;
      padding: 13px 30px;
      font-size: 1.1em;
      font-weight: bold;
      cursor: pointer;
      z-index: 1000;
      transition: background 0.18s, color 0.18s;
    }
    .achievements-btn {
      position: fixed;
      bottom: 90px;
      left: 30px;
      background: var(--accent-color);
      color: var(--bg-primary);
      border: none;
      border-radius: 8px;
      padding: 13px 30px;
      font-size: 1.1em;
      font-weight: bold;
      cursor: pointer;
      z-index: 1001;
      display: none;
      transition: background 0.18s, color 0.18s;
    }
    .counter-popup {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: var(--popup-bg);
      display: flex;
      align-items: center;
      justify-content: center;
      z-index: 2000;
      transition: background 0.3s;
    }
    .counter-box {
      background: var(--bg-primary);
      border-radius: 16px;
      padding: 36px 34px 28px 34px;
      box-shadow: 0 4px 32px 0 rgba(0,0,0,0.45);
      position: relative;
      min-width: 280px;
      max-width: 92vw;
      text-align: center;
      transition: background 0.3s;
    }
    .counter-title {
      font-size: 1.2em;
      font-weight: bold;
      margin-bottom: 18px;
      color: var(--accent-color);
      transition: color 0.3s;
    }
    .counter-days {
      font-size: 2.2em;
      font-weight: bold;
      color: var(--text-primary);
      margin-bottom: 7px;
      transition: color 0.3s;
    }
    .counter-time {
      font-size: 1.4em;
      color: var(--accent-color);
      margin: 10px 0;
      transition: color 0.3s;
    }
    .counter-close {
      position: absolute;
      top: 10px; right: 14px;
      background: none;
      border: none;
      color: var(--text-primary);
      font-size: 2em;
      cursor: pointer;
      transition: color 0.18s;
    }
    .counter-close:hover {
      color: #e74c3c;
    }
    .achievement-popup {
      position: fixed;
      bottom: 20px;
      right: 20px;
      background: var(--bg-secondary);
      color: var(--text-primary);
      padding: 15px;
      border-radius: 10px;
      box-shadow: 0 4px 6px rgba(0,0,0,0.1);
      animation: slideIn 0.5s ease-out;
      border: 2px solid var(--accent-color);
      max-width: 300px;
      z-index: 2000;
      transition: background 0.3s, color 0.3s, border-color 0.3s;
    }
    .achievement-badge {
      font-size: 2em;
      float: left;
      margin-right: 10px;
    }
    @keyframes slideIn {
      from { transform: translateX(100%); }
      to { transform: translateX(0); }
    }
    #achievementsPopup {
      position: fixed;
      top: 0; left: 0; right: 0; bottom: 0;
      background: var(--popup-bg);
      display: none;
      align-items: center;
      justify-content: center;
      z-index: 3000;
      transition: background 0.3s;
    }
    .achievements-content {
      background: var(--bg-secondary);
      color: var(--text-primary);
      padding: 30px 20px 20px 20px;
      border-radius: 12px;
      min-width: 300px;
      max-width: 90vw;
      box-shadow: 0 6px 24px rgba(0,0,0,0.3);
      position: relative;
      transition: background 0.3s, color 0.3s;
    }
    .achievements-title {
      font-size: 1.3em;
      font-weight: bold;
      margin-bottom: 15px;
      text-align: center;
    }
    .achievement-item {
      padding: 10px;
      margin: 8px 0;
      background: var(--bg-primary);
      border-radius: 8px;
      border-left: 4px solid var(--accent-color);
      transition: background 0.3s, border-color 0.3s;
    }
    .close-achievements {
      position: absolute;
      top: 10px;
      right: 16px;
      background: none;
      color: var(--accent-color);
      border: none;
      font-size: 1.6em;
      cursor: pointer;
      transition: color 0.3s;
    }
    .hide {
      display: none !important;
    }
    @media (max-width: 600px) {
      .profile-card {
        max-width: 99vw;
        padding: 10vw 2vw 6vw 2vw;
      }
      .server-btn, .theme-toggle, .achievements-btn {
        right: 10px;
        bottom: 10px;
      }
      .theme-toggle {
        left: 10px;
        bottom: 10px;
      }
      .achievements-btn {
        left: 10px;
        bottom: 70px;
      }
    }

.blackjack-container {
  background: #222;
  color: #fff;
  padding: 1.5em;
  border-radius: 12px;
  max-width: 450px;
  margin: 2em auto;
  box-shadow: 0 2px 16px #0005;
  font-family: 'Segoe UI', sans-serif;
}
.bj-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 1em;
}
.bj-cards {
  min-height: 38px;
  margin-bottom: 0.5em;
}
.bj-card {
  display: inline-block;
  background: #fff;
  color: #222;
  border-radius: 6px;
  padding: 4px 8px;
  margin-right: 4px;
  font-weight: bold;
  font-size: 1.1em;
  box-shadow: 0 1px 3px #0003;
}
.bj-message {
  min-height: 2em;
  font-size: 1.15em;
  text-align: center;
  margin-bottom: 1em;
}
.bj-buttons button {
  background: #444;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.6em 1.2em;
  margin: 0 0.2em;
  font-size: 1em;
  cursor: pointer;
  transition: background 0.2s;
}
.bj-buttons button:hover {
  background: #666;
}
.bj-scoreboard {
  text-align: center;
  margin-top: 1em;
  font-size: 1.1em;
}

