/* ---- Seitenleiste ---- */
.left-menu {
  background-color: #1c1d21;
  border-right: 1px solid #33343a;
  color: #fff;
  display: flex;
  flex-direction: column;
  height: 100vh;
  left: 0;
  position: fixed;
  top: 0;
  width: 260px;
  z-index: 8000;
  transition: transform 0.3s ease;
}

/* ---- Logo-Bereich ---- */
.left-menu-logo {
  border-bottom: 1px solid #33343a;
  height: 75px;
  line-height: 70px;
  text-align: center;
  flex-shrink: 0;
}

.left-menu-logo a {
  display: flex;
  align-items: center;
  margin-left: 24px;
  height: 100%;
  text-decoration: none;
  color: #fff;
  gap: 0;
}

.left-menu-logo .logo-img {
  width: 45px;
  height: auto;
  vertical-align: middle;
}

.left-menu-logo .logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: rgb(230, 230, 230);
  margin-left: -10px;
}

/* ---- Scrollbarer Inhaltsbereich ---- */
.left-menu-content-wrapper {
  background-color: #1c1d21;
  height: 100%;
  max-height: 100%;
  max-width: 100%;
  overflow: hidden auto;
  padding-bottom: 65px;
  scrollbar-color: #2c2d33 #36373d;
  scrollbar-width: thin;
}

.left-menu-content-wrapper::-webkit-scrollbar {
  width: 6px;
}

.left-menu-content-wrapper::-webkit-scrollbar-track {
  background-color: #2c2d33;
}

.left-menu-content-wrapper::-webkit-scrollbar-thumb {
  background-color: #36373d;
  border-radius: 0;
}

/* ---- Login-Bereich (unten in der Sidebar) ---- */
.left-menu-footer {
  border-top: 1px solid #33343a;
  flex-shrink: 0;
  padding: 12px 16px;
  margin-top: auto;
}

.left-menu-login {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-button,
.login-button-signin,
.login-button-logout {
  align-items: center;
  background-color: #7a5af8a1;
  border: none;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 8px;
  padding: 10px 16px;
  transition: background-color 0.2s ease, transform 0.1s ease;
  width: 100%;
  justify-content: center;
}

.login-button:hover {
  background-color: #8b6cf9;
  transform: translateY(-1px);
}

.login-button i {
  font-size: 14px;
}

.login-button-logout {
  background-color: rgba(255, 94, 91, 0.2);
  color: #ff6b6b;
}

.login-button-logout:hover {
  background-color: rgba(255, 94, 91, 0.3);
}

.login-user-info {
  align-items: center;
  display: flex;
  gap: 8px;
  padding: 4px 0;
  cursor: pointer;
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  width: 100%;
  text-align: left;
}

.login-user-info:hover {
  opacity: 0.9;
}

.login-user-points {
  margin-left: auto;
  font-size: 12px;
  font-weight: 600;
  color: #7a5af8a1;
}

.login-avatar {
  border-radius: 50%;
  flex-shrink: 0;
}

.login-user-email {
  color: hsla(0, 0%, 100%, 0.85);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-user-supporter-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #d4af37, #f4d03f);
  color: #1a1a1a;
  border-radius: 4px;
}

.login-user-content-creator-badge {
  background: rgba(239, 68, 68, 0.25);
  color: #ef4444;
}

.login-button-skeleton {
  background: linear-gradient(
    90deg,
    #2c2d33 25%,
    #36373d 50%,
    #2c2d33 75%
  );
  background-size: 200% 100%;
  animation: login-skeleton 1.5s ease-in-out infinite;
  border-radius: 6px;
  height: 42px;
}

@keyframes login-skeleton {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ---- Auth Modal ---- */
.auth-modal-overlay {
  background-color: rgba(0, 0, 0, 0.6);
  inset: 0;
  position: fixed;
  z-index: 10000;
}

.auth-modal-content {
  background-color: #1c1d21;
  border: 1px solid #33343a;
  border-radius: 2px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  left: 50%;
  max-width: 400px;
  padding: 0;
  position: fixed;
  top: 50%;
  transform: translate(-50%, -50%);
  width: calc(100% - 32px);
  z-index: 10001;
}

.auth-modal-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 20px 20px 0;
}

.auth-modal-title {
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  margin: 0;
}

.auth-modal-close {
  background: none;
  border: none;
  color: hsla(0, 0%, 100%, 0.7);
  cursor: pointer;
  font-size: 28px;
  line-height: 1;
  padding: 0 4px;
  transition: color 0.2s;
}

.auth-modal-close:hover {
  color: #fff;
}

.auth-modal-tabs {
  display: flex;
  gap: 0;
  margin-top: 20px;
  padding: 0 20px;
}

.auth-modal-tab {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: hsla(0, 0%, 100%, 0.6);
  cursor: pointer;
  font-size: 14px;
  padding: 10px 16px;
  transition: color 0.2s, border-color 0.2s;
}

.auth-modal-tab:hover {
  color: hsla(0, 0%, 100%, 0.9);
}

.auth-modal-tab.active {
  border-bottom-color: #7a5af8a1;
  color: #fff;
}

.auth-modal-form {
  padding: 20px;
}

.auth-modal-error {
  background-color: rgba(255, 94, 91, 0.15);
  border-radius: 2px;
  color: #ff6b6b;
  font-size: 13px;
  margin-bottom: 16px;
  padding: 10px 12px;
}

.auth-modal-label {
  color: hsla(0, 0%, 100%, 0.85);
  display: block;
  font-size: 13px;
  margin-top: 14px;
  margin-bottom: 6px;
}

.auth-modal-label:first-of-type {
  margin-top: 0;
}

.auth-modal-input {
  background-color: #2c2d33;
  border: 1px solid #33343a;
  border-radius: 2px;
  color: #fff;
  display: block;
  font-size: 14px;
  margin-bottom: 16px;
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
}

.auth-modal-input::placeholder {
  color: hsla(0, 0%, 100%, 0.4);
}

.auth-modal-input:focus {
  border-color: #7a5af8a1;
  outline: none;
}

.auth-modal-submit {
  background-color: #7a5af8a1;
  border: none;
  border-radius: 2px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  padding: 12px 20px;
  width: 100%;
  transition: background-color 0.2s;
}

.auth-modal-submit:hover:not(:disabled) {
  background-color: #8b6cf9;
}

.auth-modal-submit:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.auth-modal-divider {
  align-items: center;
  display: flex;
  padding: 0 20px;
  margin: 20px 0;
}

.auth-modal-divider::before,
.auth-modal-divider::after {
  background-color: #33343a;
  content: "";
  flex: 1;
  height: 1px;
}

.auth-modal-divider span {
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 12px;
  padding: 0 16px;
}

.auth-modal-oauth-buttons {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 20px 20px;
}

.auth-modal-oauth {
  flex: 1;
  min-width: 140px;
}

.auth-modal-oauth {
  align-items: center;
  border: 1px solid #33343a;
  border-radius: 2px;
  cursor: pointer;
  display: flex;
  font-size: 14px;
  gap: 10px;
  justify-content: center;
  padding: 12px 20px;
  transition: background-color 0.2s;
}

.auth-modal-google {
  background-color: #fff;
  color: #333;
}

.auth-modal-google:hover:not(:disabled) {
  background-color: #f5f5f5;
}

.auth-modal-discord {
  background-color: #5865f2;
  color: #fff;
}

.auth-modal-discord:hover:not(:disabled) {
  background-color: #4752c4;
}

.auth-modal-oauth:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* ---- Profile Setup Modal ---- */
.auth-modal-content-wide {
  max-width: 380px;
}

.profile-setup-form {
  padding-top: 8px;
}

.profile-avatar-upload {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

.profile-avatar-preview {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 2px dashed #33343a;
  background: #2c2d33;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s, background 0.2s;
}

.profile-avatar-preview:hover {
  border-color: #7a5af8a1;
  background: #36373d;
}

.profile-avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-avatar-placeholder {
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
}

.profile-avatar-placeholder i {
  font-size: 24px;
}

.profile-avatar-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}

/* ---- Profile Modal (Profil-Seite) ---- */
.profile-modal-content {
  max-width: 480px;
}

.profile-modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 20px;
  border-bottom: 1px solid #33343a;
}

.profile-modal-tab {
  padding: 10px 16px;
  background: transparent;
  border: none;
  color: hsla(0, 0%, 100%, 0.6);
  cursor: pointer;
  font-size: 14px;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.2s, border-color 0.2s;
}

.profile-modal-tab:hover {
  color: hsla(0, 0%, 100%, 0.9);
}

.profile-modal-tab.active {
  color: #7a5af8a1;
  border-bottom-color: #7a5af8a1;
}

.profile-modal-form {
  padding-top: 8px;
}

.profile-modal-body {
  padding-top: 8px;
}

.profile-modal-body .achievements-points {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.profile-modal-body .achievements-points-label {
  color: hsla(0, 0%, 100%, 0.7);
  font-size: 14px;
}

.profile-modal-body .achievements-points-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #7a5af8a1;
}

.profile-modal-body .achievements-points-hint {
  font-size: 12px;
  color: hsla(0, 0%, 100%, 0.5);
  margin: 0 0 20px;
}

.profile-modal-body .achievements-section-title {
  font-size: 1rem;
  color: #fff;
  margin: 0 0 12px;
}

.profile-title-select {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 16px;
}

.profile-title-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  background: #23242a;
  border: 1px solid #33343a;
  border-radius: 2px;
}

.profile-title-option.equipped {
  border-color: #7a5af8a1;
  background: rgba(122, 90, 248, 0.1);
}

.profile-no-titles {
  font-size: 13px;
  color: hsla(0, 0%, 100%, 0.5);
  margin: 0;
}

.profile-account-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-account-section-title {
  font-size: 1.1rem;
  color: #fff;
  margin: 0;
}

.profile-account-email-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background-color: #23242a;
  border: 1px solid #33343a;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.profile-account-provider-icon {
  font-size: 18px;
  color: #7a5af8a1;
  flex-shrink: 0;
}

.profile-account-email-wrap {
  flex: 1;
  min-width: 0;
}

.profile-account-email-wrap .auth-modal-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsla(0, 0%, 100%, 0.5);
  margin-bottom: 2px;
}

.profile-account-email {
  font-size: 14px;
  color: hsla(0, 0%, 100%, 0.95);
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-account-linked-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: hsla(0, 0%, 100%, 0.5);
  margin-bottom: 4px;
}

.profile-linked-accounts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.profile-linked-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  background-color: #23242a;
  border: 1px solid #33343a;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-linked-card:hover {
  border-color: #3d3d45;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}

.profile-linked-card.linked {
  border-color: rgba(34, 197, 94, 0.4);
  background: linear-gradient(135deg, #23242a 0%, rgba(34, 197, 94, 0.06) 100%);
}

.profile-linked-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-linked-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: 18px;
}

.profile-linked-icon.google {
  background: rgba(234, 67, 53, 0.15);
  color: #ea4335;
}

.profile-linked-icon.discord {
  background: rgba(88, 101, 242, 0.15);
  color: #5865f2;
}

.profile-linked-label {
  font-size: 15px;
  font-weight: 500;
  color: hsla(0, 0%, 100%, 0.95);
}

.profile-linked-added {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #22c55e;
}

.profile-linked-added i {
  font-size: 14px;
}

.profile-link-provider-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(135deg, #7a5af8, #a78bfa);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(122, 90, 248, 0.3);
}

.profile-link-provider-btn:hover {
  opacity: 0.95;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(122, 90, 248, 0.4);
}

.profile-discord-role-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  margin-top: 8px;
  background: linear-gradient(135deg, #23242a 0%, rgba(88, 101, 242, 0.08) 100%);
  border: 1px solid rgba(88, 101, 242, 0.4);
  border-radius: 10px;
}

.profile-discord-role-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.profile-discord-role-icon {
  font-size: 24px;
  color: #5865f2;
}

.profile-discord-role-title {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  display: block;
}

.profile-discord-role-desc {
  font-size: 12px;
  color: hsla(0, 0%, 100%, 0.6);
  margin: 2px 0 0;
}

.profile-abo-tier {
  font-size: 1.1rem;
  color: #fff;
  margin: 0 0 8px;
}

.profile-abo-desc {
  font-size: 13px;
  color: hsla(0, 0%, 100%, 0.6);
  margin: 0 0 16px;
}

.profile-abo-features {
  margin: 0;
  padding-left: 20px;
  color: hsla(0, 0%, 100%, 0.85);
  font-size: 14px;
  line-height: 1.8;
}

.profile-subscription-tiers {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-tier-card {
  padding: 18px 20px;
  background-color: #23242a;
  border-radius: 10px;
  border: 1px solid #33343a;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.profile-tier-card:hover {
  border-color: #3d3d45;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.profile-tier-supporter {
  border-color: #7a5af8a1;
  background: linear-gradient(135deg, #23242a 0%, rgba(122, 90, 248, 0.08) 100%);
  position: relative;
  overflow: hidden;
}

.profile-tier-supporter::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, #7a5af8, #a78bfa);
  opacity: 0.8;
}

.profile-tier-supporter:hover {
  border-color: #7a5af8cc;
  box-shadow: 0 4px 16px rgba(122, 90, 248, 0.15);
}

.profile-abo-price {
  font-size: 14px;
  font-weight: 600;
  color: #a78bfa;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
}

.profile-tier-subscribe-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
  padding: 10px 22px;
  background: linear-gradient(135deg, #7a5af8, #a78bfa);
  color: #fff;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s, box-shadow 0.2s;
  box-shadow: 0 2px 8px rgba(122, 90, 248, 0.3);
}

.profile-tier-subscribe-btn:hover {
  opacity: 1;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(122, 90, 248, 0.4);
}

.profile-tier-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.profile-tier-buttons .profile-tier-subscribe-btn {
  margin-top: 0;
}

.profile-tier-subscribe-btn-yearly {
  background: linear-gradient(135deg, #059669, #10b981) !important;
  box-shadow: 0 2px 8px rgba(5, 150, 105, 0.3) !important;
}

.profile-tier-subscribe-btn-yearly:hover {
  box-shadow: 0 4px 14px rgba(5, 150, 105, 0.4) !important;
}

.profile-tier-badge {
  display: inline-block;
  margin-top: 12px;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 6px;
}

.profile-tier-badge-active {
  background: rgba(122, 90, 248, 0.25);
  color: #a78bfa;
}

.profile-modal-body .achievements-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.profile-modal-body .achievement-item {
  display: flex;
  flex-direction: column;
  padding: 12px 14px;
  background-color: #23242a;
  border-radius: 2px;
  border: 1px solid #33343a;
}

.profile-modal-body .achievement-item.unlocked {
  border-color: #7a5af8a1;
}

.profile-modal-body .achievement-item.locked {
  opacity: 0.6;
}

.profile-modal-body .achievement-title {
  font-weight: 500;
  color: #fff;
}

.achievement-item-header {
  display: flex;
  align-items: center;
  gap: 8px;
}

.achievement-badge {
  font-size: 11px;
  padding: 2px 8px;
  background: #7a5af8a1;
  border-radius: 4px;
  color: #fff;
}

.achievement-unlock-condition {
  font-size: 12px;
  color: hsla(0, 0%, 100%, 0.6);
  margin: 8px 0 0;
  line-height: 1.4;
}

/* ---- Spiel-Auswahl ---- */
.game-switcher {
  align-items: center;
  background-color: #23242a;
  border-bottom: 1px solid #33343a;
  display: flex;
  height: 60px;
  justify-content: space-between;
  margin-bottom: 10px;
  opacity: 0.85;
  padding: 10px 30px;
  transition: 0.5s;
  position: relative;
}

.game-switcher:hover {
  cursor: pointer;
  opacity: 1;
  transition: 0.5s;
}

.game-switcher .game-name {
  font-size: 18px;
  font-weight: 500;
  color: #fff;
  flex: 1;
}

.game-switcher .switcher-icon {
  font-size: 16px;
  color: hsla(0, 0%, 100%, 0.75);
  transition: transform 0.3s ease;
}

.game-switcher.active .switcher-icon {
  transform: rotate(180deg);
}

/* Spiel-Auswahl nur auf Mobilgeräten sichtbar */
.game-switcher-mobile-only {
  display: none;
}
@media (max-width: 1080px) {
  .game-switcher-mobile-only {
    display: flex;
  }
}

/* ---- Spiel-Dropdown ---- */
.game-dropdown {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background-color: #1c1d21;
  border-bottom: 1px solid #33343a;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.3s ease, opacity 0.3s ease;
  z-index: 10001;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.game-switcher.active .game-dropdown {
  max-height: 300px;
  opacity: 1;
}

.game-dropdown .game-option {
  display: block;
  padding: 12px 30px;
  color: hsla(0, 0%, 100%, 0.75);
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
  border-bottom: 1px solid #2c2d33;
}

.game-dropdown .game-option:last-child {
  border-bottom: none;
}

.game-dropdown .game-option:hover {
  background-color: #2c2d33;
  color: #fff;
  padding-left: 35px;
}

.game-dropdown .game-option.active {
  background-color: #2c2d33;
  color: #fff;
}

.game-dropdown .game-option .game-option-name {
  font-size: 16px;
  font-weight: 400;
}

/* ---- Navigationslinks ---- */
.left-menu-nav {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.left-menu-nav hr {
  background-color: #33343a;
  display: block;
  margin: 10px 0;
  opacity: 1;
  width: 100%;
  border: none;
  height: 1px;
}

.left-menu-nav .nav-link-item {
  color: hsla(0, 0%, 100%, 0.75);
  display: inline-block;
  font-size: 16px;
  padding: 15px 30px;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
  transition: background-color 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}

.left-menu-nav .nav-link-item:hover {
  background-color: #2c2d33;
  color: #fff;
  padding-left: 35px;
}

.left-menu-nav .nav-link-item.active,
.left-menu-nav .nav-link-item[aria-current="page"] {
  background-color: #2c2d33;
  color: #fff;
}

.left-menu-nav .nav-link-item .nav-link {
  display: flex;
  align-items: center;
  gap: 0;
  color: inherit;
  padding: 0;
}

.left-menu-nav .nav-link-item .nav-link i {
  margin-right: 10px;
  width: 24px;
  text-align: center;
  font-size: 16px;
  flex-shrink: 0;
}

.left-menu-nav .nav-link-item .nav-link span {
  padding: 0;
}

/* Navigation ausblenden, wenn Spiel-Auswahl geöffnet ist */
.left-menu.game-switcher-open .left-menu-nav .nav-link-item,
.left-menu.game-switcher-open .left-menu-nav hr {
  pointer-events: none !important;
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}

/* ---- obere Navigationsleiste ---- */
.top-nav {
  background-color: #1c1d21;
  height: 75px;
  left: 260px;
  position: fixed;
  right: 0;
  top: 0;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Seitennavigation: Logo und Links auf Desktop */
.top-nav-logo {
  display: none;
  align-items: center;
  text-decoration: none;
  color: #fff;
  gap: 0;
}

.top-nav-logo-img {
  width: 40px;
  height: auto;
}

.top-nav-logo-text {
  font-size: 1.5rem;
  font-weight: bold;
  color: rgb(230, 230, 230);
  margin-left: -8px;
}

.top-nav-links {
  display: none;
  align-items: center;
  gap: 24px;
}

.top-nav-link {
  color: hsla(0, 0%, 100%, 0.85);
  text-decoration: none;
  font-size: 0.95rem;
  transition: color 0.2s;
}

.top-nav-link:hover {
  color: #fff;
}

.top-nav-login-btn {
  color: hsla(0, 0%, 100%, 0.9);
  background: rgba(122, 90, 248, 0.25);
  border: 1px solid rgba(122, 90, 248, 0.55);
  border-radius: 6px;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.top-nav-login-btn:hover {
  color: #fff;
  background: rgba(122, 90, 248, 0.45);
  border-color: rgba(122, 90, 248, 0.9);
}

.top-nav-login-btn:focus-visible {
  outline: 2px solid #8f77ff;
  outline-offset: 2px;
}

body.login-modal-open {
  overflow: hidden;
}

.login-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 10, 16, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 12000;
}

.login-modal-overlay[hidden] {
  display: none !important;
}

.login-modal-dialog {
  width: 100%;
  max-width: 420px;
  background: #1c1d21;
  border: 1px solid #33343a;
  border-radius: 12px;
  padding: 22px;
  position: relative;
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.45);
}

.login-modal-title {
  margin: 0 0 10px;
  color: #fff;
  font-size: 1.35rem;
  font-weight: 700;
}

.login-modal-dialog p {
  margin: 0 0 18px;
  color: hsla(0, 0%, 100%, 0.78);
  line-height: 1.45;
}

.login-modal-close {
  position: absolute;
  right: 10px;
  top: 8px;
  background: transparent;
  border: none;
  color: hsla(0, 0%, 100%, 0.65);
  font-size: 16px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 6px;
  transition: background-color 0.15s ease, color 0.15s ease;
  line-height: 1;
}

.login-modal-close:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.1);
}

.login-modal-close:focus-visible {
  outline: 2px solid #8f77ff;
  outline-offset: 2px;
}

/* ---- Modal Tabs ---- */
.login-modal-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 18px;
  background: #16181f;
  border-radius: 8px;
  padding: 4px;
}

.login-modal-tab {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: hsla(0,0%,100%,.55);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 600;
  padding: 7px 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.login-modal-tab.active {
  background: rgba(122, 90, 248, 0.3);
  color: #fff;
}

.login-modal-tab:hover:not(.active) {
  color: hsla(0,0%,100%,.8);
}

/* ---- Modal Panels ---- */
.login-modal-panel[hidden] {
  display: none !important;
}

.login-modal-panel-hint {
  color: hsla(0,0%,100%,.6);
  font-size: 0.85rem;
  margin: 0 0 14px;
}

/* ---- Email Mode Toggle ---- */
.login-modal-email-toggle {
  display: flex;
  gap: 4px;
  margin-bottom: 14px;
  background: #16181f;
  border-radius: 8px;
  padding: 4px;
}

.login-email-mode-btn {
  flex: 1;
  background: transparent;
  border: none;
  border-radius: 6px;
  color: hsla(0,0%,100%,.55);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 6px 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.login-email-mode-btn.active {
  background: rgba(122, 90, 248, 0.3);
  color: #fff;
}

/* ---- Email Form ---- */
.login-modal-email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.login-form-group {
  display: flex;
  flex-direction: column;
}

.login-form-input {
  background: #16181f;
  border: 1px solid #33343a;
  border-radius: 8px;
  color: #fff;
  font-size: 0.92rem;
  padding: 10px 13px;
  transition: border-color 0.2s;
  width: 100%;
  box-sizing: border-box;
}

.login-form-input:focus {
  outline: none;
  border-color: rgba(122, 90, 248, 0.7);
}

.login-form-input::placeholder {
  color: hsla(0,0%,100%,.3);
}

.login-form-error {
  color: #f87171;
  font-size: 0.82rem;
  min-height: 18px;
}

.login-modal-actions {
  display: grid;
  gap: 10px;
}

.login-provider-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  border-radius: 8px;
  padding: 11px 14px;
  font-weight: 600;
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.login-provider-btn:hover {
  transform: translateY(-1px);
  opacity: 0.96;
}

.login-provider-google {
  background: #ffffff;
  color: #1f1f1f;
}

.login-provider-discord {
  background: #5865f2;
  color: #ffffff;
}

/* Spiel-Navigation: AD Free, Support me, Discord – einheitlicher Abstand */
.top-nav-inside {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  height: 100%;
  gap: 12px;
  margin-left: auto;
}

.top-nav-inside > * {
  margin: 0;
}

/* Site-Navigation: Links und AdFreeButton rechts */
.top-nav-right {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-left: auto;
}

.header-kofi-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgb(255, 94, 91);
  text-decoration: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  border: none;
  box-shadow: 0 2px 8px rgba(255, 94, 91, 0.2);
}

.header-kofi-btn:hover {
  background: #f75058;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(255, 94, 91, 0.3);
}

.header-kofi-btn .kofi-text {
  color: #ffffff;
  font-weight: 500;
}

.header-discord-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: rgba(122, 90, 248, 0.63);
  color: #ffffff;
  text-decoration: none;
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(122, 90, 248, 0.3);
}

.header-discord-btn:hover {
  background: rgba(122, 90, 248, 0.8);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(88, 101, 242, 0.4);
}

.header-discord-btn i {
  font-size: 16px;
}

.header-discord-btn .discord-text {
  color: #ffffff;
  font-weight: 500;
}

/* No Ads Button */
.no-ads-btn {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 500;
  color: rgb(45, 45, 50);
  background-color: #d4af37;
  border: 1px solid #b8962e;
  border-radius: 2px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(212, 175, 55, 0.25);
}

.no-ads-btn:hover {
  background-color: #e5c04a;
  border-color: #d4af37;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(212, 175, 55, 0.35);
}

/* No Ads Button ausblenden, wenn User Supporter ist */
html.ty-supporter-mode .no-ads-btn {
  display: none !important;
}

/* Seitenlayout: Keine Sidebar auf Desktop, nur obere Leiste mit Logo und Links */
@media (min-width: 1081px) {
  body.site-navbar-layout .left-menu {
    transform: translateX(-100%);
  }

  body.site-navbar-layout .top-nav {
    left: 0;
  }

  body.site-navbar-layout .top-nav-logo {
    display: flex;
  }

  body.site-navbar-layout .top-nav-right {
    display: flex;
  }

  body.site-navbar-layout .top-nav-right .top-nav-links {
    display: flex;
  }

  body.site-navbar-layout .content-container {
    margin-left: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }
}


/* ---- Menü-Button für Mobilgeräte ---- */
button.hamburger,
.hamburger {
  display: none !important;
  position: fixed;
  top: 30px; /* Zentriert in der 60px Top-Nav auf Mobile */
  right: 20px;
  transform: translateY(-50%);
  z-index: 10001 !important; /* Über der oberen Navigationsleiste */
  background: none;
  border: none;
  color: rgb(230, 230, 230);
  font-size: 24px;
  cursor: pointer;
}

/* ---- Sternen-Dekoration ---- */
.stars::after {
  content: "";
  position: absolute;
  width: 1px;
  height: 1px;
  background: white;
  box-shadow: 8vw 12vh 2px white, 16vw 18vh 1px white, 24vw 25vh 2px white,
    33vw 15vh 1px white, 41vw 28vh 2px white, 49vw 35vh 1px white,
    57vw 22vh 2px white, 65vw 42vh 1px white, 73vw 28vh 2px white,
    81vw 48vh 1px white, 89vw 32vh 2px white, 97vw 45vh 1px white,
    3vw 68vh 2px white, 11vw 75vh 1px white, 19vw 82vh 2px white,
    27vw 88vh 1px white, 35vw 72vh 2px white, 43vw 85vh 1px white,
    51vw 92vh 2px white, 59vw 78vh 1px white;
  animation: twinkle 6s infinite linear reverse;
}

/* ---- Responsive Verhalten ---- */

/* Tablet und Mobil: Sidebar als Overlay, Menü-Button, volle Breite wenn geöffnet */
@media (max-width: 1080px) {
  .left-menu {
    transform: translateX(-100%);
    width: 100%;
  }

  .left-menu.active {
    transform: translateX(0);
  }

  button.hamburger,
  .hamburger {
    display: block !important;
  }

  .top-nav {
    left: 0;
    height: 60px;
    padding-right: 50px; /* Abstand für Hamburger-Menü */
  }

  /* Ko-fi und Discord links ausrichten, Elemente verkleinern */
  .top-nav-inside {
    justify-content: flex-start;
    margin-left: 0;
    gap: 8px;
  }

  .top-nav-inside .header-kofi-btn,
  .top-nav-inside .header-discord-btn {
    padding: 6px 10px;
    font-size: 12px;
  }

  .top-nav-inside .header-kofi-btn .kofi-text,
  .top-nav-inside .header-discord-btn .discord-text {
    font-size: 12px;
  }

  .top-nav-inside .header-discord-btn i {
    font-size: 14px;
  }

  .top-nav-inside .no-ads-btn,
  .top-nav-right .no-ads-btn {
    padding: 5px 8px;
    font-size: 10px;
  }

  body.site-navbar-layout .top-nav-links {
    display: none;
  }

  body.site-navbar-layout .top-nav-logo {
    display: flex;
  }
}

/* Kleinere Mobilgeräte */
@media (max-width: 768px) {
  button.hamburger,
  .hamburger {
    display: block !important;
  }

  .top-nav {
    left: 0;
    height: 60px;
    padding-right: 50px; /* Abstand für Hamburger-Menü */
  }

  /* Ko-fi und Discord noch kleiner auf kleinen Handys */
  .top-nav-inside {
    gap: 6px;
  }

  .top-nav-inside .header-kofi-btn,
  .top-nav-inside .header-discord-btn {
    padding: 5px 8px;
    font-size: 11px;
  }

  .top-nav-inside .header-kofi-btn .kofi-text,
  .top-nav-inside .header-discord-btn .discord-text {
    font-size: 11px;
  }

  .top-nav-inside .header-discord-btn i {
    font-size: 12px;
  }

  .top-nav-inside .no-ads-btn,
  .top-nav-right .no-ads-btn {
    padding: 4px 6px;
    font-size: 9px;
    line-height: 1.2;
  }

  .login-modal-dialog {
    max-width: 360px;
    padding: 18px;
  }
}