/* GIF PRELOADER */
.preloader {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh; 
  min-height: 100vh;
  min-height: 100dvh;
  background: #0f0f0f;
  z-index: 10001;
  display: flex !important;
  justify-content: center;
  align-items: center;
  opacity: 1;
  visibility: visible;
  transition: all 0.8s ease-in-out;
  overscroll-behavior: none;
  touch-action: none;
  -webkit-overflow-scrolling: auto;
}

body.loaded .preloader {
  display: none;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader.fade-out {
  opacity: 0;
  visibility: hidden;
}

.preloader-content {
  text-align: center;
}

.preloader-gif {
  max-width: 90vw;
  max-height: 90vh;
  width: auto;
  height: auto;
  max-width: 300px;
  max-height: 300px;
}

@media (max-width: 768px) {
  .preloader-gif {
    max-width: 250px;
    max-height: 250px;
  }
}

@media (max-width: 480px) {
  .preloader-gif {
    max-width: 200px;
    max-height: 200px;
  }
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --desktop-min-width: 1200px;
  --desktop-scale-factor: calc(100vw / 1920);
}

body {
  font-family: 'Arial', sans-serif;
  background-color: #0f0f0f;
  color: white;
  overflow-x: hidden;
  overflow-y: auto;
  background: url('assets/BG_Checkers.webp') center top no-repeat;
  background-size: cover;
  background-attachment: scroll;
  min-height: 100vh;
  margin: 0;
  padding: 0;
  position: relative; 
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative;
}

@media (min-width: 769px) and (max-width: 1199px) and (orientation: portrait) {
  body {
    background-attachment: fixed;
    background-size: 220%;
    background-position: center top;
  }
}

@media (min-width: 769px) and (max-width: 1199px) and (orientation: landscape) {
  body {
    background-attachment: fixed;
    background-size: 130%;
    background-position: center top;
  }
}

body.bloob-page {
  background: url('assets/BG_Checkers.webp') center top no-repeat;
  background-size: cover;
  background-attachment: scroll;
  min-height: 100vh;
}

@media (min-width: 769px) and (max-width: 1199px) and (orientation: landscape) {
  body.bloob-page {
    background-attachment: scroll;
    background-size: 130%;
    background-position: center top;
  }
}

body.newsletter-page, body.contact-page, body.vip-page, body.socials-page, body.dynamic-background{
  background: url('assets/Background.webp') center top no-repeat;
  background-size: cover;
  background-attachment: scroll; 
  min-height: 100vh; 
}

@media (min-width: 769px) and (max-width: 1199px) and (orientation: landscape) {
  body.newsletter-page, body.contact-page, body.vip-page, body.socials-page, body.dynamic-background{
    background-attachment: scroll;
    background-size: 130%;
    background-position: center top;
  }
}

@media (min-width: 1200px) {
  body.newsletter-page, body.contact-page, body.vip-page, body.socials-page, body.dynamic-background{
    background-attachment: scroll;
    background-size: 100%;
    background-position: center top;
  }
}

body.socials-page.dynamic-background.bg-1 {
  background-image: url('assets/Background.webp');
}

body.socials-page.dynamic-background.bg-2 {
  background-image: url('assets/bg_colored.webp');
}

body.socials-page.dynamic-background.bg-3 {
  background-image: url('assets/bg_bloobsys.webp');
}

body.socials-page.dynamic-background.bg-4 {
  background-image: url('assets/bg_checkersfull.webp');
}

body.dynamic-background {
  background-image: url('assets/Background.webp'), 
                    url('assets/bg_colored.webp'), 
                    url('assets/bg_bloobsys.webp'), 
                    url('assets/bg_checkersfull.webp');
  background-repeat: no-repeat;
  background-attachment: scroll;
  background-position: center top;
  background-size: cover;
}

@media (min-width: 769px) and (max-width: 1199px) and (orientation: landscape) {
  body.dynamic-background {
    background-size: 125%;
  }
}

@media (min-width: 768px) and (max-width: 1024px) and (orientation: portrait) {
  body.dynamic-background {
    background-size: 125% !important;
    background-position: center top !important;
  }
}

@media (min-width: 1200px) {
  body.dynamic-background {
    background-size: 125% !important;
    background-position: center top !important;
  }
}

@media (min-width: 350px) {
  body.dynamic-background {
    background-size: 125% !important;
    background-position: center top !important;
  }
}

@media (min-width: 1200px) {
  body.socials-page.dynamic-background {
    background-size: 100% !important;
    background-position: center top !important;
  }
}

/* GIF Noise */
.noise-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  opacity: 0.11;
  z-index: 11111;
  pointer-events: none;
  background: url('assets/noise.gif') repeat;
  background-size: 1000px 800px;
  animation: noiseFlicker 3s infinite;
  animation-timing-function: steps(3);
}

@keyframes noiseFlicker {
  0%, 85% { 
    opacity: 0.11; 
  }
  86%, 88% { 
    opacity: 0.31; 
  }
  89%, 91% { 
    opacity: 0.21; 
  }
  92%, 100% { 
    opacity: 0.11; 
  }
}

@media (max-width: 767px) {
  .noise-overlay {
    background-size: 300px 240px;
    opacity: 0.08;
  }
  
  @keyframes noiseFlicker {
    0%, 90% { 
      opacity: 0.08; 
    }
    91%, 100% { 
      opacity: 0.18; 
    }
  }
}

@media (max-width: 480px) {
  .noise-overlay {
    background-size: 250px 200px;
    opacity: 0.06;
  }
}

@media (prefers-reduced-motion: reduce) {
  .noise-overlay {
    animation: none;
    opacity: 0.06;
  }
}

@media (prefers-reduced-motion: reduce), 
       (update: slow) {
  .noise-overlay {
    animation-duration: 6s;
    animation-iteration-count: finite;
    animation-fill-mode: forwards;
  }
}

html, body {
  overflow-x: hidden !important;
  max-width: 100vw !important;
  position: relative;
}

@media (max-width: 1024px) {
  html, body {
    overflow-x: hidden !important;
    width: 100vw !important;
    max-width: 100vw !important;
  }
  
  * {
    max-width: 100vw !important;
  }

@media (pointer: coarse) {
  html {
    touch-action: pan-y !important; 
    -ms-touch-action: pan-y !important;
  }
  
  body {
    touch-action: pan-y !important;
    -ms-touch-action: pan-y !important;
  }
}
}

@media (max-width: 768px) {
  .preloader-logo-img {
    height: 60px;
  }
}

/* Header Navigation */
.site-header {
  position: fixed;
  width: 100%;
  top: 0;
  left: 0;
  z-index: 11;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent);
  padding: 20px 0;
  transition: background 0.3s ease;
}

.site-header.scrolled {
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
}

.main-nav ul {
  list-style: none;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
}

.main-nav li a {
  display: flex;
  align-items: center;
  color: white;
  text-decoration: none;
  font-weight: bold;
  position: relative;
  padding: 8px 16px; 
}

.main-nav li:not(.logo-center) a::before,
.main-nav li:not(.logo-center) a::after {
  content: '';
  position: absolute;
  width: calc(100% - 20px);
  height: 32px;
  opacity: 0;
  z-index: -1;
}

.main-nav li:not(.logo-center) a::before {
  background: #920c34;
  transform: translate(2px, 2px);
}

.main-nav li:not(.logo-center) a::after {
  background: rgb(224, 21, 89);
  transform: translate(0, 0);
}

.main-nav li:not(.logo-center) a:hover::before,
.main-nav li:not(.logo-center) a:hover::after {
  opacity: 1;
}

.main-nav li a:hover {
  transform: scale(1.05);
  color: #b6ff00;
  text-shadow: 2px 2px 6px #000;
}

.main-nav img {
  height: 60px;
}

.main-nav li.logo-center img {
  height: 80px;
}

.main-nav li:not(.logo-center) a:hover::before {
  transform: translate(6px, 6px) scale(1.02);
}

.main-nav li:not(.logo-center) a:hover::after {
  transform: translate(0, 0) scale(1);
}

.main-nav li a:hover {
  transform: scale(1.05);
  color: #b6ff00;
  text-shadow: 2px 2px 6px #000;
}

.main-nav img {
  height: 60px;
}

.main-nav li.logo-center img {
  height: 80px;
}

@media screen and (min-width: 800px) and (max-width: 1199px) and (pointer: fine) {
  .main-nav ul {
    justify-content: center !important;
  }
  
  .main-nav li {
    display: flex !important;
  }
  
  .main-nav li:last-child img {
    content: initial !important;
    height: 60px !important;
    width: auto !important;
  }
}

@media (max-width: 768px) {
  .site-header {
    padding: 15px 20px;
    z-index: 11;
  }
  
  .main-nav ul {
    justify-content: space-between;
    align-items: center;
    position: relative;
    width: 100%;
    gap: 0;
  }
  
  .main-nav li {
    display: none;
  }
  
.main-nav li:not(.logo-center):not(:last-child) {
  display: none !important;
}

  .main-nav li.logo-center {
    display: flex;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
  }
  
  .main-nav li:last-child {
    display: flex;
    margin-left: auto;
  }
  
  .main-nav li.logo-center img {
    height: 40px;
    transition: transform 0.2s ease;
  }
  
  .main-nav li.logo-center a:active img,
  .main-nav li.logo-center a.clicked img {
    transform: scale(1.2);
  }
  
  .main-nav li.logo-center a:hover {
    transform: none;
    color: white;
    text-shadow: none;
  }
  
  .main-nav li:last-child a {
    background: none;
    padding: 0;
    font-size: 0;
  }
  
  .main-nav li:last-child img {
    content: url('assets/plus.webp');
    height: 40px;
    width: 40px;
  }
}

@media (max-width: 480px) {
  .site-header {
    padding: 10px 15px;
  }
  
  .main-nav li.logo-center img {
    height: 50px;
  }
  
  .main-nav li:last-child img {
    height: 45px;
    width: 45px;
  }
}

/* Dropdown Menu */
.dropdown-menu {
  display: none;
  position: absolute;
  background-color: rgba(0, 0, 0, 0.8);
  padding: 10px;
  top: 100%;
  left: 50%;
  min-width: 250px;
  border-radius: 5px;
  z-index: 1100;
}

.dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu li {
  margin: 5px 0;
}

.dropdown-menu li a {
  color: white;
  text-decoration: none;
}

@media (min-width: 769px) and (max-width: 1199px) and (orientation: portrait) {
.main-nav li:not(.logo-center):not(:last-child) {
  display: none !important;
}

.main-nav li.logo-center {
  display: flex !important;
  position: absolute !important;
  left: 50% !important;
  top: 50% !important;
  transform: translate(-50%, -50%) !important;
}

.main-nav li:last-child {
  display: flex !important;
  margin-left: auto !important;
}

.main-nav ul {
  justify-content: space-between !important;
  align-items: center !important;
  position: relative !important;
  width: 100% !important;
  gap: 0 !important;
}

.main-nav li:last-child img {
  height: 65px !important;
  width: 65px !important;
}

.main-nav li:last-child a {
  background: none !important;
  right: 30px;
  padding: 0 !important;
  font-size: 0 !important;
}

.main-nav li:last-child img {
  content: url('assets/plus.webp') !important;
  height: 85px !important;
  width: 85px !important;
}
}

.more-panel {
  position: fixed;
  top: 0;
  right: 0; 
  width: 600px;
  height: 100vh;
  background: rgb(224, 21, 89);
  z-index: 100;
  transform: translateX(100%);
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  padding: 20px;
  display: flex;
  flex-direction: column;
}

.more-panel.active {
  transform: translateX(0);
}

.more-panel-shadow {
  position: fixed;
  top: 8px;
  right: 0;
  width: 600px;
  height: 100vh;
  background: #920c34;
  z-index: 99;
  transform: translateX(calc(100% + 12px));
  transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.more-panel-shadow.active {
  transform: translateX(-12px);
}

@media (max-width: 768px) {
  .more-panel {
    width: 100vw;
    padding: 15px;
  }
  
  .more-panel-shadow {
    width: 100vw;
    transform: translateX(calc(100% + 8px));
  }
  
  .more-panel-shadow.active {
    transform: translateX(-8px); 
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .more-panel {
    width: 500px; 
  }
  
  .more-panel-shadow {
    width: 500px;
    transform: translateX(calc(100% + 10px));
  }
  
  .more-panel-shadow.active {
    transform: translateX(-10px);
  }
}

  body.more-panel-open {
    overflow: hidden !important;
    position: fixed !important;
    width: 100vw !important;
    height: 100vh !important;
    touch-action: none !important;
  }
  
.some-class img {
  width: 50px;
  height: auto;
  object-fit: contain; 
}

img {
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.more-panel img,
.social-icons img {
  width: auto;
  height: 40px; 
  object-fit: contain;
}

.more-panel-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6);
  z-index: 98;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
}

.more-panel-overlay.active {
  opacity: 1;
  visibility: visible;
}

.more-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 15px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
}

.more-panel-left {
  display: flex;
  align-items: center;
  gap: 20px;
}

.more-panel-logo {
  height: 60px;
  pointer-events: none;
}

.more-panel-socials {
  display: flex;
  gap: 15px;
}

.more-panel-socials a {
  display: block;
}

.more-panel-socials a:hover {
  transform: scale(1.21);
}

.more-panel-socials img {
  height: 45px;
  width: 45px;
}

.more-panel-close {
  background: url('assets/plus.webp') no-repeat center center;
  background-size: contain;
  border: none;
  color: transparent;
  font-size: 0;
  cursor: pointer;
  padding: 5px;
  width: 60px;
  height: 60px;
  transform: rotate(45deg);
}

.more-panel-close:hover {
  transform: rotate(45deg) scale(1.21);
}

@media (max-width: 768px) {
  .more-panel-header {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 15px;
  }
  
  .more-panel-left {
    gap: 15px;
    justify-content: center;
  }
  
  .more-panel-logo {
    height: 40px;
  }
  
  .more-panel-socials img {
    height: 35px;
    width: 35px;
  }
}

.more-panel li::before {
  content: "";
  width: 24px;
  height: 24px;
  background: url('assets/plus.webp') no-repeat center center;
  background-size: contain;
  transition: none;
  order: -1;
}

.more-panel li:hover::before {
  transform: scale(1.2);
}

.more-panel li a {
  color: rgb(245, 245, 245);
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  transform-origin: left center;
}

.more-panel-content {
  flex: 1;
}

.more-panel ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.more-panel li {
  margin: 30px 0;
  font-size: 24px;
  font-weight: bold;
  display: flex;
  gap: 6px;
  align-items: center;
  position: relative;
  cursor: pointer;
}

.more-panel li a {
  color: rgb(245, 245, 245);
  text-decoration: none;
  display: flex;
  transform-origin: left center;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 1);
  display: flex;
  align-items: center;
  transition: none;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  padding: 15px 10px;
  box-sizing: border-box;
  z-index: 1;
}

.more-panel li:hover {
  background: rgba(255, 6, 81, 0.829);
  color: #b6ff00;
}

.more-panel li a:hover::before {
  transform: scale(1.15);
}

.more-panel li:hover::after {
  transform: scaleX(1);
}

.more-panel li::before {
  width: 50px;
  height: 50px;
  background: url('assets/plus.webp') no-repeat center center;
  background-size: contain;
  flex-shrink: 0; 
  order: -1;
  position: relative;
  z-index: 1;
}

.more-panel li:hover::before {
  transform: scale(1.15);
}

.more-panel li a {
  color: rgb(245, 245, 245);
  text-decoration: none;
  display: inline-block;
  transform-origin: left center;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
}

.more-panel li a:hover {
  color: #b6ff00;
  transform: scale(1.15);
}

.more-footer {
  position: absolute;
  bottom: 20px;
  left: 0;
  width: 100%;
  font-size: 18px;
  font-family: 'Lalezar', cursive;
  text-align: center;
  color: white;
  opacity: 1;
  text-shadow: 2px 2px 2px rgba(0, 0, 0, 1);
}

/* Footer */
.site-footer {
  width: 100%;
  background: transparent;
  color: white;
  text-align: center;
  padding: 40px 20px;
  font-size: 22px;
  font-family: 'Lalezar', cursive;
  position: relative;
  z-index: 10;
}

@media (max-width: 768px) {
  .site-footer {
    padding: 30px 15px;
    font-size: 12px;
    margin-top: 60px;
    overflow: hidden;
  }
}

@media (max-width: 480px) {
  .site-footer {
    padding: 25px 10px;
    font-size: 11px;
    overflow: hidden;
  }
}