/*
 * site.css — Kritisches Stylesheet für die Next.js-Startseiten (NICHT die statischen Spiele).
 *
 * Generiert aus main.css (Zeilen 1–2364 = _fonts → _notifications), um den
 * render-blockierenden CSS-Pfad zu halbieren. Bewusst NICHT enthalten:
 *   - _auth / _chatbot  → werden via <DeferredStyles> nach dem Erst-Paint nachgeladen
 *   - _news             → wird nur auf der News-Route geladen (/shared/css/_news.css)
 *   - _watch            → auf Startseiten nicht benötigt
 *
 * Pflege: main.css bleibt die Single Source für die Spiele. Nach Änderungen an den
 * kritischen Partials neu generieren:  head -n 2364 main.css > site.css
 * und anschließend die zwei lokalen Anpassungen erneut vornehmen (0xProto-@import
 * entfernt → via <link>; body-Fade ohne 2s-JS-Gate).
 */

/* ============================================================
   _fonts.css
   ============================================================ */
/* 0xProto wird via <link> im Root-Layout geladen (vermeidet @import-Waterfall). */

@font-face {
  font-family: 'Comic Sans MS';
  src: url('../../assets/fonts/comic-sans.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Montserrat';
  src: url('../../assets/fonts/Montserrat-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

@font-face {
  font-family: 'Pacifico';
  src: url('../../assets/fonts/Pacifico-Regular.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
}

/* ============================================================
   _variables.css
   ============================================================ */
:root {
    --primary: rgb(162, 76, 255);
    --primary-border: rgb(0, 0, 0);
    --secondary: rgb(255, 125, 0);
    --akzent: rgb(162, 76, 255);

    /* Default Theme (Dark) */
    --body-bg-color: #0B1020;
    --body-bg-image:
        radial-gradient(at 0% 0%, hsla(253, 60%, 25%, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(280, 70%, 30%, 0.5) 0px, transparent 50%);
    --text-color: white;
    --text-grey: #a0a0a0;
    --header-bg: rgba(255, 255, 255, 0.08);
    --header-border: none;
    --card-bg: rgba(30, 35, 55, 0.4);
    --card-border: 1px solid rgba(255, 255, 255, 0.2);

    /* --- Liquid Glass --- */
    --lg-bg:     transparent;
    --lg-blur:   blur(16px) saturate(200%);
    --lg-border: none;
    --lg-shadow:
        inset 1px 1px 0px rgba(255, 255, 255, 0.45),
        inset 0 0 0px 1px rgba(255, 255, 255, 0.14);
}

html[data-theme='light-glass'] {
    --primary: rgb(162, 76, 255);
    --primary-border: rgba(0, 0, 0, 0.1);
    --secondary: rgb(255, 125, 0);
    --akzent: rgb(162, 76, 255);
    --body-bg-color: #f0f2f5;
    --body-bg-image:
        radial-gradient(at 0% 0%, hsla(253, 60%, 85%, 0.8) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(280, 70%, 90%, 0.8) 0px, transparent 50%);
    --text-color: #1a1a2e;
    --text-grey: #6c757d;
    --header-bg: rgba(255, 255, 255, 0.5);
    --header-border: 1px solid rgba(255, 255, 255, 0.8);
    --card-bg: rgba(255, 255, 255, 0.7);
    --card-border: 1px solid rgba(255, 255, 255, 1);
}

html[data-theme='cyberpunk'] {
    --primary: #ff00ff;
    --primary-border: #00ffff;
    --secondary: #00ffff;
    --akzent: #fcee0a;
    --body-bg-color: #0b0213;
    --body-bg-image:
        radial-gradient(at 10% 10%, hsla(300, 100%, 25%, 0.6) 0px, transparent 50%),
        radial-gradient(at 90% 90%, hsla(180, 100%, 20%, 0.6) 0px, transparent 50%);
    --text-color: #e0e0e0;
    --text-grey: #a1a1aa;
    --header-bg: rgba(11, 2, 19, 0.8);
    --header-border: 1px solid rgba(255, 0, 255, 0.4);
    --card-bg: rgba(20, 5, 30, 0.8);
    --card-border: 1px solid rgba(0, 255, 255, 0.3);
}

html[data-theme='deep-space'] {
    --primary: #ffffff;
    --primary-border: #4a4a8a;
    --secondary: #aaaaaa;
    --akzent: #ffffff;
    --body-bg-color: #000000;
    --body-bg-image: none;
    --text-color: #ffffff;
    --text-grey: #cccccc;
    --header-bg: rgba(0, 0, 0, 0.5);
    --header-border: 1px solid rgba(255, 255, 255, 0.1);
    --card-bg: rgba(10, 10, 15, 0.7);
    --card-border: 1px solid rgba(255, 255, 255, 0.2);
}

html[data-theme='christmas'] {
    --primary: #d42426;
    --secondary: #165b33;
    --akzent: #f8b229;
    --body-bg-color: #030e00;
    --body-bg-image:
        radial-gradient(at 20% 20%, hsla(359, 70%, 25%, 0.5) 0px, transparent 50%),
        radial-gradient(at 80% 80%, hsla(145, 80%, 20%, 0.5) 0px, transparent 50%);
    --text-color: #f8f9fa;
    --text-grey: #d0d0d0;
    --header-bg: rgba(255, 255, 255, 0.08);
    --header-border: none;
    --card-bg: rgba(50, 15, 15, 0.7);
    --card-border: 1px solid rgba(248, 178, 41, 0.4);
}

html[data-theme='winter'] {
    --primary: #00d2ff;
    --secondary: #0077b6;
    --akzent: #ffffff;
    --body-bg-color: #0f1520;
    --body-bg-image:
        radial-gradient(at 0% 0%, hsla(195, 60%, 35%, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(210, 70%, 40%, 0.5) 0px, transparent 50%);
    --text-color: #e0f7ff;
    --text-grey: #b0d8e8;
    --header-bg: rgba(255, 255, 255, 0.08);
    --header-border: none;
    --card-bg: rgba(15, 30, 50, 0.6);
    --card-border: 1px solid rgba(160, 224, 255, 0.4);
}

html[data-theme='winter-wonderland'] {
    --primary: #7ec8ff;
    --primary-border: rgba(200, 240, 255, 0.4);
    --secondary: #4a90d9;
    --akzent: #ffffff;
    --body-bg-color: #0a2740;
    --body-bg-image:
        radial-gradient(at 50% 0%, hsla(200, 80%, 55%, 0.45) 0px, transparent 55%),
        radial-gradient(at 80% 100%, hsla(190, 70%, 60%, 0.35) 0px, transparent 55%);
    --text-color: #f0fbff;
    --text-grey: #c2e2f2;
    --header-bg: rgba(255, 255, 255, 0.10);
    --header-border: 1px solid rgba(200, 240, 255, 0.35);
    --card-bg: rgba(30, 60, 90, 0.55);
    --card-border: 1px solid rgba(200, 240, 255, 0.45);
}

/* html[data-theme='spring'] {
    --primary: #ff85a2;
    --secondary: #84dcc6;
    --akzent: #f6f078;
    --body-bg-color: #1a1525;
    --body-bg-image:
        radial-gradient(at 0% 0%, hsla(330, 60%, 25%, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(160, 50%, 25%, 0.4) 0px, transparent 50%);
    --text-color: #fce4ec;
    --text-grey: #dcb3c3;
    --header-bg: rgba(255, 133, 162, 0.15);
    --header-border: 1px solid rgba(255, 133, 162, 0.4);
    --card-bg: rgba(30, 25, 40, 0.6);
    --card-border: 1px solid rgba(132, 220, 198, 0.4);
}

html[data-theme='summer'] {
    --primary: #ffd166;
    --secondary: #06d6a0;
    --akzent: #ef476f;
    --body-bg-color: #1c1914;
    --body-bg-image:
        radial-gradient(at 0% 0%, hsla(42, 80%, 30%, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(164, 70%, 25%, 0.4) 0px, transparent 50%);
    --text-color: #fff9e6;
    --text-grey: #cfc7a9;
    --header-bg: rgba(255, 209, 102, 0.15);
    --header-border: 1px solid rgba(255, 209, 102, 0.4);
    --card-bg: rgba(40, 35, 25, 0.6);
    --card-border: 1px solid rgba(6, 214, 160, 0.4);
}

html[data-theme='autumn'] {
    --primary: #d65a31;
    --secondary: #8c271e;
    --akzent: #e3b04b;
    --body-bg-color: #1a1311;
    --body-bg-image:
        radial-gradient(at 0% 0%, hsla(15, 70%, 25%, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(40, 60%, 20%, 0.4) 0px, transparent 50%);
    --text-color: #ffecd2;
    --text-grey: #c7b198;
    --header-bg: rgba(214, 90, 49, 0.15);
    --header-border: 1px solid rgba(214, 90, 49, 0.4);
    --card-bg: rgba(35, 25, 20, 0.7);
    --card-border: 1px solid rgba(227, 176, 75, 0.4);
} */

html[data-theme='halloween'] {
    --primary: #ff6a00; /* Pumpkin Orange */
    --secondary: #6a0572; /* Spooky Purple */
    --akzent: #a4b0be; /* Ghostly Grey */
    --body-bg-color: #0d0912;
    --body-bg-image:
        radial-gradient(at 0% 0%, hsla(280, 80%, 20%, 0.4) 0px, transparent 50%),
        radial-gradient(at 100% 100%, hsla(25, 100%, 30%, 0.4) 0px, transparent 50%);
    --text-color: #f5f6fa;
    --text-grey: #b2bec3;
    --header-bg: rgba(255, 255, 255, 0.08);
    --header-border: none;
    --card-bg: rgba(15, 10, 20, 0.8);
    --card-border: 1px solid rgba(106, 5, 114, 0.5);
}

/* ============================================================
   _base.css
   ============================================================ */
* {
  font-family: '0xProto', 'Inter', 'Montserrat', Helvetica, sans-serif;
  color: var(--text-color);
  box-sizing: border-box;
}

h1 {
  font-size: 3rem;
  font-weight: 800;
}

h2 {
  font-size: 2rem;
  font-weight: 700;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: '0xProto', 'Inter', 'Montserrat', Helvetica, sans-serif;
  color: var(--text-color);
}

body {
  background-color: var(--body-bg-color);
  margin: 0;
  padding: 0;
}

body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -9999;
  background-image: var(--body-bg-image);
  background-color: var(--body-bg-color);
  pointer-events: none;
}

.text-white {
  color: var(--text-color) !important;
}

img {
  max-width: 100%;
  height: auto;
}

.bg-primary {
  background-color: var(--primary) !important;
}

.text-primary {
  color: var(--primary) !important;
}

.nav-link {
  color: var(--primary) !important;
  font-weight: bold;
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
  color: white !important;
  background-color: var(--primary);
}

.text-secondary {
  color: var(--secondary) !important;
}

.text-grey {
  color: var(--text-grey);
}

.bg-secondary {
  background-color: var(--secondary);
}

.bg-dark {
  background-color: rgb(40, 40, 40) !important;
}

.footer-link {
  color: var(--text-color) !important;
  text-decoration: none;
}

@media (max-width: 767px) {
  body {
    font-size: 16px;
  }

  h1 {
    font-size: 1.8rem !important;
  }

  h2 {
    font-size: 1.8rem !important;
  }
}

:focus-visible {
  outline: 2px solid var(--primary, var(--primary)) !important;
  outline-offset: 2px;
}

a:focus-visible,
input:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--primary, var(--primary)) !important;
  outline-offset: 2px;
  border-radius: 4px;
}

@media (max-width: 575px) {
  body {
    font-size: 15px;
  }

  .container {
    padding: 0 0.5rem;
  }
}

/* ============================================================
   _layout.css
   ============================================================ */
body {
  background-color: var(--body-bg-color);
  margin: 0;
  padding: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

main {
  width: 90%;
  margin: 0 auto;
  padding: 3rem 1rem;
  margin-top: 4rem !important;
  flex: 1;
}

body.no-nav main {
  margin-top: 0 !important;
}

.horizontal-center {
  position: absolute;
  left: 50%;
  -ms-transform: translateY(-50%);
  transform: translateY(-50%);
}

.v-center {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

@media (max-width: 767px) {
  h1 {
    font-size: 2.5rem !important;
  }

  h2 {
    font-size: 2rem !important;
  }

  main {
    margin-top: 2rem !important;
  }

  body.no-nav main {
    margin-top: 0 !important;
  }

  .btn,
  .rainbow-button {
    padding: 1rem 1.5rem !important;
    font-size: 1.2rem !important;
  }

  .nav-link {
    padding: 0.75rem 1rem !important;
    font-size: 1.1rem !important;
  }
}

@media (min-width: 768px) {
  main {
    width: 80%;
    padding: 3rem;
    margin-top: 6rem !important;
  }
}

@media (min-width: 1200px) {
  main {
    width: 70%;
  }
}

@media only screen and (max-width: 600px) {
  main {
    width: 100%;
    padding: 1.5rem 0.5rem;
  }

  h1 {
    font-size: 2rem !important;
  }

  h2 {
    font-size: 1.75rem !important;
  }

  .btn,
  .rainbow-button {
    padding: 0.8rem 1.2rem !important;
    font-size: 1rem !important;
    min-height: 2.5rem;
  }

  .px-4 {
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
  }

  .img-fluid {
    max-height: 200px;
    object-fit: cover;
  }

  .form-select,
  input[type="text"] {
    padding: 0.75rem !important;
    font-size: 1rem !important;
  }
}

@media only screen and (min-width: 600px) {
  .btn,
  .rainbow-button {
    padding: 0.9rem 1.4rem !important;
    font-size: 1.1rem !important;
  }
}

@media only screen and (min-width: 768px) {
  .btn,
  .rainbow-button {
    padding: 1rem 1.5rem !important;
    font-size: 1.1rem !important;
  }
}

@media only screen and (min-width: 992px) {
  .btn,
  .rainbow-button {
    padding: 1rem 1.5rem !important;
    font-size: 1.2rem !important;
  }
}

button,
.btn,
.rainbow-button,
a,
select,
textarea,
input:not([type="checkbox"]):not([type="radio"]) {
  min-height: 44px;
  min-width: 44px;
}

footer .btn,
footer .rainbow-button {
  padding: 0.3rem 0.5rem !important;
  font-size: 0.8rem !important;
  border-radius: 0.5rem !important;
  min-height: 0 !important;
  min-width: 0 !important;
}

#footer-container {
  view-transition-name: footer;
}

@media (max-width: 575px) {
  .game-card-wrapper {
    padding: 0.5rem !important;
  }

  .game-card {
    margin-bottom: 1rem;
  }

  .gameImg {
    height: 150px;
    object-fit: cover;
  }
}

@media (max-width: 767px) {
  .game-card-wrapper {
    padding: 0.75rem !important;
  }

  .gameImg {
    height: 180px;
    object-fit: cover;
  }

  .game-title {
    font-size: 1.1rem;
    margin-top: 0.5rem;
  }
}

@media (max-width: 767px) {
  .view-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 0.75rem;
  }

  .search-bar,
  .category-filter {
    width: 100%;
  }
}

@media (max-width: 767px) {
  .z,
  .page-title-animate,
  #hero-section {
    padding-bottom: 0.5rem !important;
    margin-bottom: 1rem !important;
    margin-top: 0 !important;
  }

  .display-5,
  .display-4 {
    font-size: 1.85rem !important;
  }
}

/* ============================================================
   _header.css
   ============================================================ */

/* Apps page: navbar is in-flow (not fixed), so no body offset needed */
@media (min-width: 768px) {
  body.apps-page {
    padding-top: 0;
  }
  body.apps-page #desktop-header {
    position: relative;
    top: auto;
    left: auto;
    transform: none;
    margin: 16px auto 0;
  }
}

/* Mobile: extra bottom padding to clear the bottom nav */
@media (max-width: 767px) {
  main {
    padding-bottom: 90px !important;
  }
}

/* ---- Desktop floating glass pill ---- */
#desktop-header {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  border-radius: 50px;
  width: fit-content;
  min-width: clamp(420px, 52vw, 740px);
  backdrop-filter: blur(24px) saturate(100%);
  -webkit-backdrop-filter: blur(24px) saturate(100%);
  background: rgba(13, 10, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 24px rgba(0, 0, 0, 0.35);
  z-index: 1000;
  white-space: nowrap;
  view-transition-name: navbar;
  transition:
    top 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    left 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    transform 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    min-width 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    border-radius 0.3s cubic-bezier(0.4, 0, 0.2, 1),
    padding 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Docked: flush with top of screen, flat top corners — same width as pill */
@media (min-width: 768px) {
  #desktop-header.scrolled {
    top: 0;
    border-radius: 0 0 20px 20px;
  }
}

@media (max-width: 767px) {
  #desktop-header {
    display: none !important;
  }
}

.nav-brand {
  padding: 6px 14px;
  font-size: 0.85rem;
  font-family: 'Pacifico', cursive;
  opacity: 0.65;
  color: var(--text-color);
  text-decoration: none;
  letter-spacing: 0.04em;
  min-height: unset;
  min-width: unset;
  transition: opacity 0.18s;
}

.nav-brand:hover {
  opacity: 1;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  justify-content: center;
}

/* Center the nav in the middle column */
#desktop-header > nav {
  display: flex;
  justify-content: center;
}

/* Override _base.css color + _layout.css padding via higher specificity */
#desktop-header .header-link {
  padding: 7px 15px !important;
  border-radius: 50px;
  font-size: 0.88rem !important;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.72) !important;
  text-decoration: none;
  min-height: unset;
  min-width: unset;
  transition: background 0.18s, color 0.18s;
}

#desktop-header .header-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff !important;
}

#desktop-header .header-link.active {
  background: rgba(162, 76, 255, 0.18);
  color: var(--primary) !important;
}

/* Account container — pushed to the right column end */
#nav-account-container {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-right: 4px;
}

.nav-account-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: 50px;
  font-size: 0.88rem;
  background: rgba(162, 76, 255, 0.14);
  border: 1px solid rgba(162, 76, 255, 0.28);
  color: var(--primary);
  cursor: pointer;
  min-height: unset;
  min-width: unset;
  transition: background 0.18s;
}

.nav-account-btn:hover {
  background: rgba(162, 76, 255, 0.24);
}

.nav-account-btn:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(162, 76, 255, 0.3);
}

.nav-account-btn i {
  font-size: 1.1rem;
  color: var(--primary);
}

/* ---- Mobile floating glass pill at bottom ---- */
#mobile-nav {
  display: none;
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  align-items: center;
  gap: 0;
  padding: 8px 10px;
  border-radius: 50px;
  backdrop-filter: blur(24px) saturate(100%);
  -webkit-backdrop-filter: blur(24px) saturate(100%);
  background: rgba(13, 10, 28, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 4px 24px rgba(0, 0, 0, 0.35);
  z-index: 1000;
}

@media (max-width: 767px) {
  #mobile-nav {
    display: flex;
  }
}

.mobile-nav-link {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 8px 22px;
  border-radius: 50px;
  font-size: 1.3rem;
  color: rgba(255, 255, 255, 0.6);
  text-decoration: none;
  cursor: pointer;
  background: none;
  border: none;
  min-height: unset;
  min-width: unset;
  transition: background 0.18s, color 0.18s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: rgba(162, 76, 255, 0.2);
  color: var(--primary) !important;
}

/* ============================================================
   _cards.css
   ============================================================ */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card:focus-visible {
    transform: translateY(-8px);
    box-shadow: 0 0 0 3px var(--primary, var(--primary)), 0 10px 30px rgba(0, 0, 0, 0.2);
    outline: none;
}

.game-card {
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none;
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    position: relative;
}

/* Pseudo-element for hardware-accelerated shadow */
.game-card::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: inherit;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: -1;
    pointer-events: none;
}

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

.game-card:hover::after {
    opacity: 1;
}

.game-card:focus-visible {
    transform: translateY(-8px);
    outline: none;
}

.game-card:focus-visible::after {
    opacity: 1;
    box-shadow: 0 0 0 3px var(--primary, var(--primary)), 0 10px 30px rgba(0, 0, 0, 0.2);
}

.card,
.glass-card {
    background: var(--lg-bg);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
    border: var(--lg-border);
    border-radius: 16px;
    box-shadow: var(--lg-shadow);
}

.container-glass,
.glass-panel {
    background: var(--lg-bg);
    border-radius: 20px;
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
    border: var(--lg-border);
    box-shadow: var(--lg-shadow);
}

@media (max-width: 575px) {
    .game-card {
        margin-bottom: 1rem;
    }

    .gameImg {
        width: 100%;
        height: 150px;
        object-fit: cover;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }

    .game-details {
        padding: 0.75rem;
        flex: 1;
    }

    .game-title {
        font-size: 1rem;
        margin-bottom: 0.5rem;
    }

    .game-attributes {
        font-size: 0.8rem;
    }

    .game-attributes span {
        display: block;
        margin-bottom: 0.25rem;
    }
}

@media (max-width: 767px) {
    .game-card {
        margin-bottom: 1rem;
    }

    .gameImg {
        width: 100%;
        height: 180px;
        object-fit: cover;
        border-top-left-radius: 16px;
        border-top-right-radius: 16px;
    }

    .game-details {
        padding: 1rem;
    }

    .game-title {
        font-size: 1.1rem;
        margin-bottom: 0.5rem;
    }

    .game-attributes {
        font-size: 0.85rem;
    }
}

.rainbow-button {
  position: relative;
  background-color: #f0f0f0;
  color: #333;
  padding: 12px 24px;
  font-size: 18px;
  border-radius: 12px;
  cursor: pointer;
  font-family: sans-serif;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  transition: transform 0.3s ease;
  z-index: 1;
  font-weight: 700;
  text-decoration: none;
}

.rainbow-button:hover {
  transform: translateY(-5px) scale(1.08);
}

.rainbow-button:focus-visible {
  outline: 2px solid var(--primary, #a24cff) !important;
  outline-offset: 2px;
  border-radius: 12px;
}

.rainbow-button.no-hover-transform:hover {
  transform: none;
}

.rainbow-button::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 14px;
  background: linear-gradient(135deg,
      red, orange, yellow, green, cyan, blue, violet, red);
  background-size: 300% 300%;
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: -1;
  /* Mask only the border */
  mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  -webkit-mask:
    linear-gradient(#fff 0 0) content-box,
    linear-gradient(#fff 0 0);
  mask-composite: exclude;
  -webkit-mask-composite: destination-out;
  padding: 2px;
}

.rainbow-button:hover::before {
  animation: rainbowBorder 3s linear infinite;
  opacity: 1;
}

/* Add smooth transition to all buttons */
.btn {
  transition: transform 0.3s ease;
}

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

.btn:focus-visible {
  outline: 2px solid var(--primary, #a24cff) !important;
  outline-offset: 2px;
  border-radius: 4px;
}

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

.btn-secondary {
  background-color: var(--secondary);
  border-color: #333;
  color: white !important;
}

.btn-secondary:hover {
  background-color: var(--secondary);
  border-color: #333;
}

/* Modern glass buttons for regular content pages.
   Scoped to .general-page main so app/game controls keep their local styling. */
.general-page main .btn:not(.btn-close),
.general-page main .rainbow-button,
.general-page main .type-toggle-btn {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.58rem 1rem;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  background: rgba(255, 255, 255, 0.055) !important;
  color: rgba(255, 255, 255, 0.82) !important;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1.1;
  text-decoration: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.general-page main .btn-primary:not(.btn-close),
.general-page main .btn-outline-primary:not(.btn-close),
.general-page main .suggest-submit-btn,
.general-page main .type-toggle-btn.active {
  background: rgba(162, 76, 255, 0.18) !important;
  border-color: rgba(162, 76, 255, 0.38) !important;
  color: var(--primary) !important;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 10px 24px rgba(162, 76, 255, 0.14);
}

.general-page main .btn-secondary:not(.btn-close),
.general-page main .btn-outline-secondary:not(.btn-close) {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.78) !important;
}

.general-page main .btn:hover:not(:disabled):not(.btn-close),
.general-page main .rainbow-button:hover:not(:disabled),
.general-page main .type-toggle-btn:hover:not(:disabled) {
  background: rgba(162, 76, 255, 0.24) !important;
  border-color: rgba(162, 76, 255, 0.48) !important;
  color: #fff !important;
  transform: translateY(-1px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 14px 32px rgba(162, 76, 255, 0.2);
}

.general-page main .btn:focus-visible:not(.btn-close),
.general-page main .rainbow-button:focus-visible,
.general-page main .type-toggle-btn:focus-visible {
  outline: 3px solid rgba(255, 255, 255, 0.34) !important;
  outline-offset: 2px;
}

.general-page main .btn:disabled,
.general-page main .type-toggle-btn:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none;
}

/* Button Shine Effect */
.btn,
.rainbow-button {
  position: relative;
  overflow: hidden;
}

.btn::before,
.rainbow-button::after {
  /* Use ::after for rainbow-button to avoid conflict with its border */
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 60%;
  height: 100%;
  z-index: 1;
  /* Renders on top of the button content */
  background: linear-gradient(100deg,
      rgba(255, 255, 255, 0) 20%,
      rgba(255, 255, 255, 0.25) 50%,
      rgba(255, 255, 255, 0) 80%);
  transform: translateX(-160%) skewX(-25deg);
  transition: transform 0.85s cubic-bezier(0.23, 1, 0.32, 1);
  pointer-events: none;
  /* Ensure the shine layer doesn't block clicks */
}

.btn:hover::before,
.rainbow-button:hover::after {
  transform: translateX(270%) skewX(-25deg);
}

/* ===========================================
   SNOW ON BUTTONS - Winter/Christmas Themes
   =========================================== */

/* Wrapper for snow effect */
html[data-theme='winter'] .btn,
html[data-theme='christmas'] .btn,
html[data-theme='winter'] .rainbow-button,
html[data-theme='christmas'] .rainbow-button,
html[data-theme='winter'] .footer-nav-link,
html[data-theme='christmas'] .footer-nav-link,
html[data-theme='winter'] .footer-settings-btn,
html[data-theme='christmas'] .footer-settings-btn,
html[data-theme='winter'] .game-card,
html[data-theme='christmas'] .game-card {
  position: relative;
}

/* Snow wrapper - handles transform for both element and snow */
.snow-wrapper {
  position: relative;
  display: inline-block;
  transition: transform 0.3s ease;
}

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

/* Stronger hover for game cards */
.snow-wrapper:has(.game-card):hover {
  transform: translateY(-8px);
}

/* Remove transform from wrapped elements to avoid double transform */
.snow-wrapped {
  transform: none !important;
}

.snow-wrapped:hover {
  transform: none !important;
}

/* Remove top border-radius on game cards with snow */
.game-card.snow-wrapped {
  border-radius: 0 0 16px 16px !important;
}

/* The snow cap layer - positioned in wrapper above button */
.snow-cap {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 14px;
  z-index: 20;
  border-radius: 8px 8px 4px 4px;
  pointer-events: none;
  background: #ffffff;
  box-shadow:
    0 2px 3px rgba(0, 0, 0, 0.08),
    inset 0 2px 4px rgba(255, 255, 255, 1),
    inset 0 -2px 6px rgba(220, 235, 255, 0.5);
}

/* Position snow higher on game cards and adjust corners */
.snow-wrapper:has(.game-card) .snow-cap {
  top: -6px;
  border-radius: 16px 16px 0 0;
  /* Match game card's border-radius */
  left: 0;
  right: 0;
}

/* Snow bumps on top - multiple hills */
.snow-cap::before {
  content: '';
  position: absolute;
  top: -6px;
  left: 5%;
  width: 100%;
  height: 16px;
  background:
    /* Multiple overlapping snow hills */
    radial-gradient(ellipse 24px 14px at 8% 100%, #fff 70%, transparent 71%),
    radial-gradient(ellipse 32px 16px at 25% 100%, #fff 70%, transparent 71%),
    radial-gradient(ellipse 28px 15px at 45% 100%, #fff 70%, transparent 71%),
    radial-gradient(ellipse 36px 18px at 65% 100%, #fff 70%, transparent 71%),
    radial-gradient(ellipse 26px 14px at 85% 100%, #fff 70%, transparent 71%);
  pointer-events: none;
}

.snow-cap::after {
  content: '';
  position: absolute;
  top: -4px;
  left: 0;
  right: 0;
  height: 12px;
  background:
    /* Additional smaller hills for texture */
    radial-gradient(ellipse 18px 10px at 15% 100%, #fff 70%, transparent 71%),
    radial-gradient(ellipse 20px 11px at 35% 100%, #fff 70%, transparent 71%),
    radial-gradient(ellipse 16px 9px at 55% 100%, #fff 70%, transparent 71%),
    radial-gradient(ellipse 22px 12px at 75% 100%, #fff 70%, transparent 71%),
    radial-gradient(ellipse 14px 8px at 92% 100%, #fff 70%, transparent 71%);
  pointer-events: none;
}

/* Icicle drips - smaller, subtle drips */
.snow-drip {
  position: absolute;
  top: 10px;
  background: linear-gradient(to bottom, #ffffff 0%, #e8f4fc 60%, #d4e9f7 100%);
  z-index: 19;
  pointer-events: none;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.08),
    inset 1px 0 1px rgba(255, 255, 255, 0.8);
}

/* Varied icicle shapes - smaller sizes */
.snow-drip-1 {
  left: 5%;
  width: 3px;
  height: 8px;
  border-radius: 2px 2px 50% 50%;
}

.snow-drip-2 {
  left: 18%;
  width: 5px;
  height: 12px;
  border-radius: 2px 2px 50% 50%;
}

.snow-drip-3 {
  left: 32%;
  width: 3px;
  height: 6px;
  border-radius: 2px 2px 50% 50%;
}

.snow-drip-4 {
  left: 48%;
  width: 6px;
  height: 10px;
  border-radius: 3px 3px 50% 50%;
}

.snow-drip-5 {
  left: 62%;
  width: 4px;
  height: 8px;
  border-radius: 2px 2px 50% 50%;
}

.snow-drip-6 {
  left: 78%;
  width: 5px;
  height: 11px;
  border-radius: 2px 2px 50% 50%;
}

.snow-drip-7 {
  right: 5%;
  width: 3px;
  height: 5px;
  border-radius: 2px 2px 50% 50%;
}

/* ============================================================
   _animations.css
   ============================================================ */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

main {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes rainbowBorder {
  0%   { background-position: 100% 100%; }
  100% { background-position: 0% 0%; }
}

body {
    opacity: 0;
    /* Fade läuft sofort beim Laden und ist unabhängig von JS nach 0.5s sichtbar.
       (vorher: 2s-Timeout-Gate, das den Inhalt bis zur JS-Ausführung versteckte) */
    animation: body-fallback-fadein 0.5s ease-in-out forwards;
}

/* Avatar image masks */
.profile-avatar-large,
.profile-avatar-container,
.user-dropdown .user-avatar,
.friend-avatar {
    overflow: hidden;
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.nav-user-avatar {
    border-radius: 50%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-clip: padding-box;
}

.user-avatar-img,
.profile-avatar-large img,
.friend-avatar img,
.user-avatar img,
.nav-user-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    display: block;
}

.profile-avatar-container:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.85);
    outline-offset: 4px;
}

.profile-avatar-overlay {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(13, 10, 28, 0.65);
    color: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.22rem;
    padding: 0.5rem;
    text-align: center;
    opacity: 0;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    z-index: 2;
    pointer-events: none;
}

.profile-avatar-overlay i {
    font-size: 1.25rem;
    line-height: 1;
}

.profile-avatar-overlay span {
    max-width: 100%;
    color: #fff;
    font-size: 0.62rem;
    font-weight: 700;
    line-height: 1.05;
}

.profile-avatar-container:hover .profile-avatar-overlay,
.profile-avatar-container:focus-visible .profile-avatar-overlay {
    opacity: 1;
}
body.loaded {
    opacity: 1;
    animation: none;
}

@keyframes body-fallback-fadein {
    to { opacity: 1; }
}

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

.anim-float {
  animation: float 4s ease-in-out infinite;
}

.nav-pills .nav-link {
    transition: transform 0.3s ease, color 0.3s ease, background-color 0.3s ease;
    border-radius: 8px;
}

.nav-pills .nav-link:not(.active):hover {
    transform: translateY(-3px);
    color: var(--akzent) !important;
}

.page-title-animate .char {
    display: inline-block;
    opacity: 0;
    transform: translateY(30px) skewY(10deg) scale(0.8);
    animation: revealChar 0.8s cubic-bezier(0.77, 0, 0.18, 1) forwards;
}

@keyframes revealChar {
    to {
        opacity: 1;
        transform: translateY(0) skewY(0) scale(1);
    }
}

@keyframes charExit {
    from { opacity: 1; transform: translateY(0) skewY(0) scale(1); filter: blur(0); }
    to   { opacity: 0; transform: translateY(-20px) skewY(-8deg) scale(0.8); filter: blur(3px); }
}

.page-title-animate .char.char-exit {
    animation: charExit 0.18s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes cardFlyOutLeft {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to   { opacity: 0; transform: translateX(-90px) scale(0.92); }
}
@keyframes cardFlyOutRight {
    from { opacity: 1; transform: translateX(0) scale(1); }
    to   { opacity: 0; transform: translateX(90px) scale(0.92); }
}
@keyframes cardFlyInLeft {
    from { opacity: 0; transform: translateX(-70px) scale(0.92); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}
@keyframes cardFlyInRight {
    from { opacity: 0; transform: translateX(70px) scale(0.92); }
    to   { opacity: 1; transform: translateX(0) scale(1); }
}

.game-card-wrapper.card-fly-out-left,
#suggest-promo-wrapper.card-fly-out-left  { animation: cardFlyOutLeft  0.22s cubic-bezier(0.4, 0, 1, 1) forwards; }
.game-card-wrapper.card-fly-out-right,
#suggest-promo-wrapper.card-fly-out-right { animation: cardFlyOutRight 0.22s cubic-bezier(0.4, 0, 1, 1) forwards; }
.game-card-wrapper.card-fly-in-left,
#suggest-promo-wrapper.card-fly-in-left   { animation: cardFlyInLeft   0.3s  cubic-bezier(0, 0, 0.2, 1) forwards; }
.game-card-wrapper.card-fly-in-right,
#suggest-promo-wrapper.card-fly-in-right  { animation: cardFlyInRight  0.3s  cubic-bezier(0, 0, 0.2, 1) forwards; }

.scroll-fade-in {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
}

.scroll-fade-in.is-visible {
    opacity: 1;
    transform: translateY(0);
}

.icon-interact {
    transition: transform 0.5s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.icon-interact:hover {
    transform: scale(1.2) rotate(-15deg);
}

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

.bounce-anim {
  animation: bounce 1.5s ease 2;
}

@view-transition {
  navigation: auto;
}

/* Slide animations only on non-Firefox browsers. Firefox's View Transitions
   implementation can leave a stale full-page snapshot on some navigations. */
@supports not (-moz-appearance: none) {
  ::view-transition-old(root) {
    animation: 0.4s cubic-bezier(0.4, 0, 0.2, 1) both fadeOut,
               0.4s cubic-bezier(0.4, 0, 0.2, 1) both slideOutLeft;
  }

  ::view-transition-new(root) {
    animation: 0.4s cubic-bezier(0.4, 0, 0.2, 1) both fadeIn,
               0.4s cubic-bezier(0.4, 0, 0.2, 1) both slideInRight;
  }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to   { opacity: 0; }
}

@keyframes slideOutLeft {
  from { transform: translateX(0); }
  to   { transform: translateX(-20px); }
}

@keyframes slideInRight {
  from { transform: translateX(20px); }
  to   { transform: translateX(0); }
}

::view-transition-group(navbar),
::view-transition-group(footer) {
  z-index: 100;
}

/* Respect user's motion preference */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  body {
    opacity: 1 !important;
    transition: none !important;
  }

  .page-title-animate .char {
    opacity: 1 !important;
    transform: none !important;
    animation: none !important;
  }

  .scroll-fade-in {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* User-toggled animations off */
html.no-animations *,
html.no-animations *::before,
html.no-animations *::after {
  animation-duration: 0.01ms !important;
  animation-iteration-count: 1 !important;
  transition-duration: 0.01ms !important;
}

html.no-animations body {
  opacity: 1 !important;
  transition: none !important;
}

html.no-animations .page-title-animate .char {
  opacity: 1 !important;
  transform: none !important;
  animation: none !important;
}

html.no-animations .scroll-fade-in {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

/* ============================================================
   _effects.css
   ============================================================ */
#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

html[data-theme='deep-space'] #star-canvas {
  background: radial-gradient(circle at 50% 50%, #000010 0%, #000000 100%);
  opacity: 1;
}

.star {
  position: absolute;
  background-color: gold;
  border-radius: 50%;
  animation-name: twinkle;
  animation-timing-function: linear;
  animation-iteration-count: infinite;
  box-shadow: 0 0 6px gold;
}

@keyframes twinkle {
  0%, 100% { opacity: 0.3; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.2); }
}

#cursor-shine {
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 300px;
  height: 300px;
  transform: translate(-50%, -50%);
  z-index: 9999;
  opacity: 0.15;
  transition: opacity 0.3s ease;
  background: radial-gradient(circle at center,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(255, 255, 255, 0) 65%);
}

html[data-theme='dark'] #cursor-shine {
  opacity: 0.15;
  background: radial-gradient(circle at center,
      rgba(162, 76, 255, 0.6) 0%,
      rgba(162, 76, 255, 0) 65%);
}

/* Neon rainbow cursor */
html[data-cursor-shine='neon'] #cursor-shine {
  opacity: 0.3 !important;
  animation: neonRainbow 3s linear infinite;
}

@keyframes neonRainbow {
  0% { background: radial-gradient(circle at center, rgba(255, 0, 0, 0.6) 0%, rgba(255, 0, 0, 0) 65%); }
  20% { background: radial-gradient(circle at center, rgba(255, 165, 0, 0.6) 0%, rgba(255, 165, 0, 0) 65%); }
  40% { background: radial-gradient(circle at center, rgba(255, 255, 0, 0.6) 0%, rgba(255, 255, 0, 0) 65%); }
  60% { background: radial-gradient(circle at center, rgba(0, 255, 0, 0.6) 0%, rgba(0, 255, 0, 0) 65%); }
  80% { background: radial-gradient(circle at center, rgba(0, 0, 255, 0.6) 0%, rgba(0, 0, 255, 0) 65%); }
  100% { background: radial-gradient(circle at center, rgba(238, 130, 238, 0.6) 0%, rgba(238, 130, 238, 0) 65%); }
}

/* Retro particles hide the default div */
html[data-cursor-shine='retro'] #cursor-shine,
html[data-cursor-shine='off'] #cursor-shine {
  display: none !important;
}

html[data-theme='light'] #cursor-shine {
  opacity: 0.15;
  background: radial-gradient(circle at center,
      rgba(162, 76, 255, 0.2) 0%,
      rgba(162, 76, 255, 0) 65%);
}

/* Theme-specific cursor shine adjustments */
html[data-theme='christmas'] #cursor-shine {
  background: radial-gradient(circle at center, rgba(212, 36, 38, 0.6) 0%, rgba(212, 36, 38, 0) 65%);
}

html[data-theme='winter'] #cursor-shine {
  background: radial-gradient(circle at center, rgba(0, 210, 255, 0.6) 0%, rgba(0, 210, 255, 0) 65%);
}

html[data-theme='spring'] #cursor-shine {
  background: radial-gradient(circle at center, rgba(255, 133, 162, 0.6) 0%, rgba(255, 133, 162, 0) 65%);
}

html[data-theme='summer'] #cursor-shine {
  background: radial-gradient(circle at center, rgba(255, 209, 102, 0.6) 0%, rgba(255, 209, 102, 0) 65%);
}

html[data-theme='autumn'] #cursor-shine {
  background: radial-gradient(circle at center, rgba(214, 90, 49, 0.6) 0%, rgba(214, 90, 49, 0) 65%);
}

html[data-theme='halloween'] #cursor-shine {
  background: radial-gradient(circle at center, rgba(255, 106, 0, 0.6) 0%, rgba(255, 106, 0, 0) 65%);
}

/* --- Special Seasonal Effects --- */

/* Summer Sunbeams / Glow */
/* html[data-theme='summer'] .game-card:hover {
  box-shadow: 0 0 25px rgba(255, 209, 102, 0.5);
  border-color: var(--primary);
}

html[data-theme='summer'] .hero-badge-container {
    animation: sunGlow 3s infinite alternate ease-in-out;
}

@keyframes sunGlow {
    from { box-shadow: 0 0 10px rgba(255, 209, 102, 0.3); }
    to { box-shadow: 0 0 25px rgba(255, 209, 102, 0.7); }
} */

/* Halloween Spooky Flicker */
/* html[data-theme='halloween'] .btn:not(.btn-close), 
html[data-theme='halloween'] .game-card {
    animation: spookyFlicker 8s infinite step-end;
}

@keyframes spookyFlicker {
    0%, 95%, 100% { opacity: 1; filter: none; }
    96% { opacity: 0.8; filter: grayscale(0.5) contrast(1.2); }
    97% { opacity: 1; filter: none; }
    98% { opacity: 0.9; filter: sepia(0.5); }
    99% { opacity: 1; filter: none; }
} */


@media (hover: none) and (pointer: coarse) {
  #cursor-shine {
    display: none;
  }
}

#star-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -2;
  pointer-events: none;
}

#snow-canvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
  display: none;
}

#swishCanvas {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

.hover-scale {
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.05);
}

/* ============================================================
   _components.css
   ============================================================ */
input[type=range]::-webkit-slider-thumb {
    background: var(--primary);
    width: 2rem;
    height: 1rem;
}

.form-check-input {
    width: 1.15rem !important;
    height: 1.15rem !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin-top: 0.2rem !important;
    cursor: pointer;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    background-color: rgba(255, 255, 255, 0.05);
}

.form-check-input:checked {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.form-switch .form-check-input {
    width: 2.2rem !important;
    height: 1.15rem !important;
    min-width: 0 !important;
    margin-left: -2.8rem !important;
    border-radius: 2rem !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='-4 -4 8 8'%3e%3ccircle r='3' fill='white'/%3e%3c/svg%3e") !important;
}

.form-switch .form-check-input:focus {
    box-shadow: 0 0 0 0.25rem rgba(162, 76, 255, 0.25) !important;
    border-color: var(--primary) !important;
}

/* Custom Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 26px;
    flex-shrink: 0;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
    position: absolute;
    pointer-events: none;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border-radius: 50%;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

input:checked + .slider {
    background-color: var(--primary);
    border-color: var(--primary);
}

input:checked + .slider:before {
    transform: translateX(22px);
}

input:focus + .slider {
    box-shadow: 0 0 0 3px rgba(162, 76, 255, 0.3);
}

@media (max-width: 767px) {
    .toggle-switch {
        width: 52px;
        height: 28px;
    }

    .slider:before {
        height: 20px;
        width: 20px;
        left: 3px;
        bottom: 3px;
    }

    input:checked + .slider:before {
        transform: translateX(24px);
    }
}

/* ============================================================
   PageHero + Glass-Card (gemeinsames Fundament der Startseiten)
   ============================================================ */
.page-hero {
    padding: 3.5rem 1rem 2rem;
    margin-bottom: 1.5rem;
}

.page-hero-kicker {
    margin: 0 0 0.5rem;
    color: var(--primary);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-size: 0.8rem;
}

.page-hero-title {
    margin: 0;
    font-weight: 800;
    line-height: 1.1;
    font-size: clamp(2.1rem, 5.5vw, 3.25rem);
}

.page-hero-subtitle {
    max-width: 40rem;
    margin: 1rem auto 0;
    color: var(--text-grey);
    font-size: 1.05rem;
}

.page-hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1.75rem;
}

.glass-card {
    background: var(--card-bg);
    border: var(--card-border);
    border-radius: 18px;
    padding: 2rem;
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
}

.updates-promo {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    align-items: center;
    gap: 2rem;
}

.updates-promo h2 {
    font-size: clamp(1.6rem, 3vw, 2.4rem);
    color: var(--text-color);
}

.updates-promo-media {
    display: block;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.3s ease;
}

.updates-promo-media:hover {
    transform: scale(1.03);
}

.updates-promo-media img {
    display: block;
    width: 100%;
    height: auto;
}

@media (max-width: 767px) {
    .updates-promo {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        text-align: center;
    }
}

/* --- Link-Liste (Links-Seite) --- */
.link-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.link-row {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.25rem;
    border: var(--card-border);
    border-radius: 14px;
    background: var(--card-bg);
    backdrop-filter: var(--lg-blur);
    -webkit-backdrop-filter: var(--lg-blur);
    color: var(--text-color);
    text-decoration: none;
    transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.link-row:hover {
    transform: translateY(-2px);
    border-color: var(--primary);
    background: rgba(255, 255, 255, 0.07);
    color: var(--text-color);
}

.link-row-icon {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border-radius: 12px;
    background: rgba(162, 76, 255, 0.15);
    color: var(--primary);
    font-size: 1.3rem;
}

.link-row-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.link-row-title {
    font-weight: 700;
    line-height: 1.2;
}

.link-row-subtitle {
    font-size: 0.82rem;
    color: var(--text-grey);
}

.link-row-arrow {
    flex: 0 0 auto;
    color: var(--text-grey);
    transition: transform 0.2s ease, color 0.2s ease;
}

.link-row:hover .link-row-arrow {
    color: var(--primary);
    transform: translate(2px, -2px);
}

@media (max-width: 575px) {
    .page-hero {
        padding: 2.5rem 0.5rem 1.5rem;
    }

    .glass-card {
        padding: 1.5rem 1.25rem;
        border-radius: 14px;
    }
}

.faq-hero {
    padding: 4rem 1rem 2rem;
    margin-bottom: 1rem;
}

.faq-hero-copy {
    max-width: 38rem;
    margin: 0 auto 1.75rem;
    color: var(--text-grey);
    font-size: 1.05rem;
}

.faq-hero-actions {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.faq-section {
    width: min(100% - 2rem, 980px);
    margin: 0 auto 4rem;
    padding: 1.25rem;
}

.faq-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
    align-items: end;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.faq-kicker {
    margin: 0 0 0.25rem;
    color: var(--primary);
    font-weight: 700;
    letter-spacing: 0;
    text-transform: uppercase;
    font-size: 0.8rem;
}

.faq-toolbar h2 {
    margin: 0;
    color: white;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

.faq-search {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-height: 3.25rem;
    padding: 0 1rem;
    border: var(--card-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-grey);
}

.faq-search:focus-within {
    border-color: rgba(162, 76, 255, 0.75);
    box-shadow: 0 0 0 0.25rem rgba(162, 76, 255, 0.18);
}

.faq-search input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: white;
}

.faq-search input::placeholder {
    color: rgba(255, 255, 255, 0.55);
}

.faq-list {
    display: grid;
    gap: 0.75rem;
}

.faq-item {
    border: var(--card-border);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.045);
    overflow: hidden;
    transition: background-color 0.25s ease, border-color 0.25s ease, transform 0.25s ease;
}

.faq-question {
    cursor: pointer;
    display: flex;
    width: 100%;
    gap: 1rem;
    justify-content: flex-start;
    align-items: center;
    padding: 1rem 1.15rem;
    border: 0;
    background: transparent;
    color: white;
    text-align: left;
    transition: background-color 0.25s ease;
}

.faq-question:hover {
    background-color: rgba(255, 255, 255, 0.05);
}

.faq-question:focus-visible {
    outline: 3px solid rgba(162, 76, 255, 0.7);
    outline-offset: -3px;
}

.faq-number {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.08);
    color: var(--primary);
    font-weight: 800;
    font-size: 0.8rem;
}

.faq-question h3 {
    flex: 1 1 auto;
    margin: 0;
    font-size: 1.08rem !important;
    line-height: 1.35;
}

.faq-question::after {
    content: '+';
    flex: 0 0 auto;
    font-size: 2rem;
    font-family: 'Montserrat', sans-serif;
    font-weight: 300;
    line-height: 1;
    transition: transform 0.25s ease-out, color 0.25s ease;
    margin-left: auto;
}

.faq-item.active .faq-question::after {
    transform: rotate(45deg);
    color: var(--primary);
}

.faq-answer {
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.35s ease-out, opacity 0.25s ease-out, padding 0.35s ease-out;
    padding: 0 1.25rem 0 4.5rem;
    color: var(--text-grey);
}

.faq-answer p {
    margin: 0;
    line-height: 1.7;
}

.faq-item.active .faq-answer {
    max-height: 260px;
    opacity: 1;
    padding: 0 1.25rem 1.25rem 4.5rem;
}

.faq-item.active {
    background: var(--card-bg);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-color: rgba(255, 255, 255, 0.18);
}

.faq-item[hidden] {
    display: none;
}

.faq-empty {
    margin: 1rem 0 0;
    padding: 1rem;
    border: var(--card-border);
    border-radius: 8px;
    color: var(--text-grey);
    text-align: center;
    background: rgba(255, 255, 255, 0.045);
}

.faq-ask {
    width: min(100% - 2rem, 980px);
    margin: 0 auto 4rem;
    padding: 1.25rem;
}

.faq-ask h2 {
    margin: 0;
    color: white;
    font-size: clamp(1.55rem, 2.5vw, 2.15rem);
}

@media (max-width: 767px) {
    .faq-hero {
        padding: 2.5rem 1rem 1rem;
    }

    .faq-hero-actions {
        display: grid;
    }

    .faq-hero-actions .btn {
        width: 100%;
    }

    .faq-section {
        width: min(100% - 1rem, 980px);
        padding: 0.5rem;
    }

    .faq-toolbar {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .faq-question {
        gap: 0.75rem;
        padding: 0.9rem;
    }

    .faq-number {
        width: 2rem;
        height: 2rem;
    }

    .faq-question h3 {
        font-size: 1rem !important;
    }

    .faq-answer,
    .faq-item.active .faq-answer {
        padding-left: 0.9rem;
        padding-right: 0.9rem;
    }
}

.form-select option {
    background-color: #1e2337;
    color: white;
}

/* ============================================================
   _footer.css
   ============================================================ */

#site-footer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex-wrap: wrap;
    width: fit-content;
    margin: 60px auto 40px;
    padding: 10px 20px;
    border-radius: 50px;
    font-size: 0.82rem;
    backdrop-filter: blur(24px) saturate(160%);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    background: rgba(13, 10, 28, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 4px 24px rgba(0, 0, 0, 0.35);
}

.footer-copy {
    opacity: 0.5;
    white-space: nowrap;
    color: var(--text-color);
}

.footer-sep {
    opacity: 0.22;
    color: var(--text-color);
    user-select: none;
}

.footer-nav {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Override _base.css .footer-link via higher specificity */
#site-footer .footer-link {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 50px;
    color: rgba(255, 255, 255, 0.65) !important;
    text-decoration: none;
    font-size: 0.82rem;
    min-height: unset;
    min-width: unset;
    transition: background 0.18s, color 0.18s;
}

#site-footer .footer-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff !important;
}

.footer-settings-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: none;
    padding: 5px 8px;
    border-radius: 50px;
    opacity: 0.5;
    cursor: pointer;
    color: var(--text-color);
    min-height: unset;
    min-width: unset;
    transition: background 0.18s, opacity 0.18s;
}

.footer-settings-btn:hover {
    background: rgba(255, 255, 255, 0.1);
    opacity: 1;
}

.footer-settings-btn svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
}

/* Settings Modal */
.settings-modal .modal-content {
    backdrop-filter: blur(24px) saturate(180%);
    -webkit-backdrop-filter: blur(24px) saturate(180%);
    background: rgba(16, 16, 28, 0.92) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 20px;
}

.settings-modal .modal-header {
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.settings-modal .modal-footer {
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.settings-modal .text-muted {
    color: rgba(255, 255, 255, 0.55) !important;
    font-size: 0.9rem !important;
}

.settings-modal .form-check-label {
    color: #fff !important;
    font-size: 1.15rem !important;
    font-weight: 700 !important;
}

/* Mobile: clear fixed bottom nav */
@media (max-width: 767px) {
    #site-footer {
        margin-bottom: 96px;
        max-width: 90vw;
        text-align: center;
    }
}

/* ============================================================
   _notifications.css
   ============================================================ */
.new-game-popup {
    position: fixed;
    bottom: 30px;
    right: 30px;
    background: var(--card-bg, rgba(30, 30, 40, 0.95));
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--akzent, #bc8cf2);
    border-radius: 20px;
    padding: 20px;
    width: 320px;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.5), 0 0 20px rgba(188, 140, 242, 0.2);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 15px;
    animation: slideInRight 0.5s cubic-bezier(0.18, 0.89, 0.32, 1.28);
    pointer-events: auto;
}

.new-game-popup.fade-out {
    animation: slideOutRight 0.5s forwards cubic-bezier(0.6, -0.28, 0.735, 0.045);
}

.new-game-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.new-game-badge {
    background: var(--akzent);
    color: #000;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.new-game-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    font-size: 1.2rem;
    padding: 0;
    transition: color 0.2s;
}

.new-game-close:hover {
    color: white;
}

.new-game-content {
    display: flex;
    gap: 15px;
    align-items: center;
}

.new-game-img {
    width: 70px;
    height: 70px;
    border-radius: 12px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.new-game-info {
    flex: 1;
}

.new-game-title {
    font-weight: 800;
    font-size: 1.1rem;
    margin-bottom: 4px;
    color: var(--text-color, #fff);
}

.new-game-cat {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.6);
}

.new-game-actions {
    display: flex;
    gap: 10px;
}

.new-game-play-btn {
    flex: 1;
    background: var(--primary, var(--primary));
    color: white;
    border: none;
    padding: 10px;
    border-radius: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    text-align: center;
}

.new-game-play-btn:hover {
    background: var(--akzent, #bc8cf2);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(162, 76, 255, 0.4);
}

@keyframes slideInRight {
    from { transform: translateX(120%); opacity: 0; }
    to   { transform: translateX(0);    opacity: 1; }
}

@keyframes slideOutRight {
    from { transform: translateX(0);    opacity: 1; }
    to   { transform: translateX(120%); opacity: 0; }
}

.hero-badge-container {
    display: inline-flex;
    align-items: center;
    background: rgba(188, 140, 242, 0.1);
    border: 1px solid rgba(188, 140, 242, 0.3);
    padding: 5px 15px 5px 5px;
    border-radius: 30px;
    margin-bottom: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    color: var(--text-color, #fff);
}

.hero-badge-container:hover {
    background: rgba(188, 140, 242, 0.2);
    transform: translateY(-3px);
    border-color: var(--akzent, #bc8cf2);
}

.hero-badge-tag {
    background: var(--akzent, #bc8cf2);
    color: #000;
    padding: 2px 10px;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 900;
    margin-right: 10px;
    text-transform: uppercase;
}

.hero-badge-text {
    font-size: 0.9rem;
    font-weight: 600;
}

@media (max-width: 768px) {
    .new-game-popup {
        bottom: 20px;
        right: 20px;
        left: 20px;
        width: auto;
    }
}

