/* Custom Modern Glassy Dark Nav Styles */
.custom-nav {
  width: 100%;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 48px;
  background: rgba(30, 32, 38, 0.85);
  backdrop-filter: blur(16px) saturate(180%);
  border-radius: 24px;
  padding: 0.75rem 2rem 0.75rem 2rem;
  margin-bottom: 0;
  border: none;
}
.site-title {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: #e0e7ef;
  margin-right: auto;
  letter-spacing: 1px;
  user-select: none;
}
.custom-nav ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  justify-content: center;
  align-items: center;
}
.custom-nav {
  position: relative;
}
.custom-nav a {
  font-family: 'Inter', 'Segoe UI', Arial, sans-serif;
  font-size: 1.08rem;
  color: #e0e7ef;
  text-decoration: none;
  padding: 0.5rem 1.5rem;
  border-radius: 12px;
  transition: background 0.25s, box-shadow 0.25s, color 0.25s;
  position: relative;
  background: none;
  box-shadow: none;
}
.custom-nav a:hover, .custom-nav a.active {
  background: rgba(60, 65, 80, 0.35);
  color: #fff;
  box-shadow: 0 2px 12px 0 rgba(80, 80, 120, 0.12);
}
body {
  background: #000000;
}
@import url('https://unpkg.com/normalize.css') layer(normalize);

@layer normalize, base, demo, spotlight;

@layer spotlight {
  nav::before,
  nav::after,
  nav ul.lit {
    filter: url('#spotlight');
  }



  ul.lit {
    position: absolute;
    inset: 0;
    z-index: 2;
  }

  [data-active='true'] {
    opacity: 0.8;
  }
}

@layer demo {
  /* Removed empty and invalid nested rules from demo layer */
}

@layer base {
  :root {
    --font-size-min: 16;
    --font-size-max: 20;
    --font-ratio-min: 1.2;
    --font-ratio-max: 1.33;
    --font-width-min: 375;
    --font-width-max: 1500;
  }

  html {
    color-scheme: light dark;
  }

  [data-theme='light'] {
    color-scheme: light only;
  }

  [data-theme='dark'] {
    color-scheme: dark only;
  }

  :where(.fluid) {
    --fluid-min: calc(
      var(--font-size-min) * pow(var(--font-ratio-min), var(--font-level, 0))
    );
    --fluid-max: calc(
      var(--font-size-max) * pow(var(--font-ratio-max), var(--font-level, 0))
    );
    --fluid-preferred: calc(
      (var(--fluid-max) - var(--fluid-min)) /
        (var(--font-width-max) - var(--font-width-min))
    );
    --fluid-type: clamp(
      (var(--fluid-min) / 16) * 1rem,
      ((var(--fluid-min) / 16) * 1rem) -
        (((var(--fluid-preferred) * var(--font-width-min)) / 16) * 1rem) +
        (var(--fluid-preferred) * var(--variable-unit, 100vi)),
      (var(--fluid-max) / 16) * 1rem
    );
    font-size: var(--fluid-type);
  }

  *,
  *:after,
  *:before {
    box-sizing: border-box;
  }

  body {
    background: light-dark(#fff, #000);
    font-family: 'SF Pro Text', 'SF Pro Icons', 'AOS Icons', 'Helvetica Neue',
      Helvetica, Arial, sans-serif, system-ui;
  }

  body::before {
    --size: 45px;
    --line: color-mix(in hsl, canvasText, transparent 70%);
    content: '';
    height: 100vh;
    width: 100vw;
    position: fixed;
    background: linear-gradient(
          90deg,
          var(--line) 1px,
          transparent 1px var(--size)
        )
        50% 50% / var(--size) var(--size),
      linear-gradient(var(--line) 1px, transparent 1px var(--size)) 50% 50% /
        var(--size) var(--size);
    mask: linear-gradient(-20deg, transparent 50%, white);
    top: 0;
    transform-style: flat;
    pointer-events: none;
    z-index: -1;
  }

  .bear-link {
    color: canvasText;
    position: fixed;
    bottom: 1rem;
    left: 1rem;
    width: 48px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    opacity: 0.8;
  }

  .diamond {
    color: canvasText;
    position: fixed;
    top: 1rem;
    left: 1rem;
    width: 48px;
    aspect-ratio: 1;
    display: grid;
    place-items: center;
    opacity: 0.8;
    svg {
      width: 65%;
    }
  }

  :where(.x-link, .bear-link):is(:hover, :focus-visible) {
    opacity: 1;
  }

  .bear-link svg {
    width: 75%;
  }

  /* Utilities */
  .sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
  }
/* Center the games grid and style skinnier cards */
#games-list {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2rem;
  justify-content: center;
  margin: 0 auto;
}
  .game-card {
    background: #18191d;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.10);
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    min-width: 0;
    border: 1px solid #22242a;
    width: 180px;
    height: 240px;
    box-sizing: border-box;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
  }
  .game-card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.18);
    transform: translateY(-4px) scale(1.03);
  }
  .game-card img {
    border-radius: 12px;
    width: 100%;
    height: 140px;
    object-fit: cover;
    box-sizing: border-box;
    flex-shrink: 0;
    margin-bottom: 0.5rem;
  }
  .game-card div {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #e0e7ef;
    font-size: 1.08rem;
    font-weight: 500;
    text-align: center;
    width: 100%;
    padding: 0.5rem 0.25rem 0 0.25rem;
    word-break: break-word;
  }
}

div.tp-dfwv {
  width: 280px;
}

/* Custom Scrollbar Styles */
::-webkit-scrollbar {
  width: 12px;
  height: 12px;
}

::-webkit-scrollbar-track {
  background: #0f1014;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, #18191d, #2a2d35);
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, #2a2d35, #3a3e47);
  border-color: rgba(255, 255, 255, 0.25);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

::-webkit-scrollbar-thumb:active {
  background: linear-gradient(135deg, #ff0057, #ffae00);
  border-color: rgba(255, 255, 255, 0.4);
}

::-webkit-scrollbar-corner {
  background: #0f1014;
}

/* Firefox Scrollbar */
* {
  scrollbar-width: thin;
  scrollbar-color: #18191d #0f1014;
}

html {
  scrollbar-width: thin;
  scrollbar-color: #18191d #0f1014;
}

/* For better compatibility across browsers */
body {
  scrollbar-width: thin;
  scrollbar-color: #18191d #0f1014;
}
