:root {
  --body: #0b0f19;
  --black: #000;
  --white: #fff;
  --theme: #6366f1;
}

.glass {
  background-color: var(--body);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

body {
  background-color: var(--body);
  color: white;
  letter-spacing: 1.5px;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: transparent;
}
::-webkit-scrollbar-thumb {
  background: #334155;
  border-radius: 4px;
}
::-webkit-scrollbar-thumb:hover {
  background: #475569;
}

/* Gallery scrollbar styling */
.gallery-scroll::-webkit-scrollbar {
  height: 10px;
}
.gallery-scroll::-webkit-scrollbar-track {
  background: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  margin: 10px 0;
}
.gallery-scroll::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #6366f1 0%, #a855f7 100%);
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.4);
  transition: all 0.3s ease;
}
.gallery-scroll::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(180deg, #818cf8 0%, #c084fc 100%);
  box-shadow: 0 0 20px rgba(99, 102, 241, 0.6);
}

/* Firefox scrollbar */
.gallery-scroll {
  scrollbar-color: #6366f1 rgba(255, 255, 255, 0.05);
  scrollbar-width: thin;
}

/* Related Games Sidebar Scrollbar */
#related-games {
  max-height: 500px;
  overflow-y: auto;
}

.no-scrollbar::-webkit-scrollbar {
  display: none;
}
.no-scrollbar {
  -ms-overflow-style: none;
  scrollbar-width: none;
}

/* Game wrapper scrollbar hide */
#game-wrapper {
  overflow: hidden;
}

#game-wrapper::-webkit-scrollbar {
  display: none;
}

#game-wrapper iframe {
  border: none;
}

/* Smooth fade in animation for loaded games */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: scale(0.95) translateY(10px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.game-card {
  animation: fadeIn 0.5s ease-out forwards;
}

.mouse-cursor {
  position: fixed;
  left: 0;
  top: 0;
  pointer-events: none;
  border-radius: 50%;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  visibility: hidden;
}

.cursor-inner {
  width: 6px;
  height: 6px;
  z-index: 10000001;
  background-color: var(--theme);
  -webkit-transition:
    width 0.3s ease-in-out,
    height 0.3s ease-in-out,
    margin 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
  -o-transition:
    width 0.3s ease-in-out,
    height 0.3s ease-in-out,
    margin 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
  transition:
    width 0.3s ease-in-out,
    height 0.3s ease-in-out,
    margin 0.3s ease-in-out,
    opacity 0.3s ease-in-out;
}

.cursor-inner.cursor-hover {
  margin-left: -35px;
  margin-top: -35px;
  width: 70px;
  height: 70px;
  background-color: var(--theme);
  opacity: 0.3;
}

.cursor-outer {
  margin-left: -12px;
  margin-top: -12px;
  width: 30px;
  height: 30px;
  border: 1px solid var(--theme);
  -webkit-box-sizing: border-box;
  box-sizing: border-box;
  z-index: 10000000;
  opacity: 0.5;
  -webkit-transition: all 0.08s ease-out;
  -o-transition: all 0.08s ease-out;
  transition: all 0.08s ease-out;
}

.cursor-outer.cursor-hover {
  opacity: 0;
}

/* Game Distribution */
#game-wrapper {
  position: relative;
  width: 100%;
  background: #000;
  border-radius: 1.25rem;
  overflow: hidden;
}
#game-wrapper::before {
  content: "";
  display: block;
  padding-top: 56.25%; /* 16:9 */
}
#game-frame {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}
#game-wrapper.fullscreen-mode {
  position: fixed;
  inset: 0;
  z-index: 9999;
  border-radius: 0;
  padding-top: 0;
  width: 100vw;
  height: 100vh;
}
#game-wrapper.fullscreen-mode::before {
  display: none;
}
#game-wrapper.fullscreen-mode #game-frame {
  position: relative;
  height: 100vh;
}

.related-card:hover .related-overlay {
  opacity: 1;
}
.tag-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}
