/* MOSABAQTAK_IG_V6_CSS */
/* MOSABAQTAK_INSTAGRAM_CUBE_V3 — isolated footer-only cube; style based on approved V61 cube. */
#mq-social-cubes-v1 {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: clamp(6px, 1vw, 10px);
  direction: ltr;
  width: 100%;
  max-width: 100%;
  margin: 4px auto 2px;
  padding: 0;
  box-sizing: border-box;
}
#mq-social-cubes-v1 .mq-social-cube {
  --mq-cube-size: clamp(30px, 2.8vw, 38px);
  display: inline-grid;
  place-items: center;
  position: relative;
  flex: 0 0 auto;
  width: var(--mq-cube-size);
  height: var(--mq-cube-size);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  box-sizing: border-box;
}
#mq-social-cubes-v1 .mq-social-cube__perspective {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  perspective: 900px;
}
#mq-social-cubes-v1 .mq-social-cube__mesh {
  position: relative;
  width: var(--mq-cube-size);
  height: var(--mq-cube-size);
  transform-style: preserve-3d;
  will-change: transform;
}
#mq-social-cubes-v1 .mq-social-cube__face {
  position: absolute;
  inset: 0;
  display: block;
  background: transparent url('/assets/game/backgrounds/lsdkvgnworiv402krwgb.webp') center center / 100% 100% no-repeat;
  border: none;
  outline: none;
  box-shadow: none;
  box-sizing: border-box;
  backface-visibility: hidden;
}
#mq-social-cubes-v1 .mq-social-cube__face.f1 { transform: rotateY(0deg)   translateZ(calc(var(--mq-cube-size) / 2)); }
#mq-social-cubes-v1 .mq-social-cube__face.f2 { transform: rotateY(90deg)  translateZ(calc(var(--mq-cube-size) / 2)); }
#mq-social-cubes-v1 .mq-social-cube__face.f3 { transform: rotateY(180deg) translateZ(calc(var(--mq-cube-size) / 2)); }
#mq-social-cubes-v1 .mq-social-cube__face.f4 { transform: rotateY(270deg) translateZ(calc(var(--mq-cube-size) / 2)); }
#mq-social-cubes-v1 .mq-social-cube__face.f5 { transform: rotateX(90deg)  translateZ(calc(var(--mq-cube-size) / 2)); }
#mq-social-cubes-v1 .mq-social-cube__face.f6 { transform: rotateX(-90deg) translateZ(calc(var(--mq-cube-size) / 2)); }
#mq-social-cubes-v1 .mq-social-cube:focus-visible {
  outline: none;
}
@media (min-width: 600px) and (max-width: 1023px) {
  #mq-social-cubes-v1 .mq-social-cube { --mq-cube-size: clamp(28px, 3.4vw, 34px); }
}
@media (max-width: 599px) {
  #mq-social-cubes-v1 { margin: 4px auto 2px; gap: 6px; }
  #mq-social-cubes-v1 .mq-social-cube { --mq-cube-size: clamp(24px, 7vw, 30px); }
}


/* MQ_IG_WHATSAPP_MOTION_V4_START */
/* WhatsApp's gentle lift, isolated on the Instagram anchor.
   The existing inner 3D mesh keeps its requestAnimationFrame rotation. */
#mq-social-cubes-v1 .mq-social-cube {
  transition: transform 0.2s ease;
}
@media (hover: hover) and (pointer: fine) {
  #mq-social-cubes-v1 .mq-social-cube:hover {
    transform: translateY(-2px);
  }
}
#mq-social-cubes-v1 .mq-social-cube:focus-visible,
#mq-social-cubes-v1 .mq-social-cube:active {
  transform: translateY(-2px);
}
/* MQ_IG_WHATSAPP_MOTION_V4_END */

/* MOSABAQTAK_IG_V6_CSS: CSS fallback used only if JavaScript is not animating the mesh. */
@keyframes mqig-v6-fallback {
  0%   { transform: rotateX(-19deg) rotateY(0deg) rotateZ(0deg); }
  25%  { transform: rotateX(-4deg) rotateY(90deg) rotateZ(5deg); }
  50%  { transform: rotateX(-19deg) rotateY(180deg) rotateZ(-3deg); }
  75%  { transform: rotateX(-33deg) rotateY(270deg) rotateZ(5deg); }
  100% { transform: rotateX(-19deg) rotateY(360deg) rotateZ(0deg); }
}
#mq-social-cubes-v1 .mq-social-cube__mesh:not([data-mqig-v6-js="1"]) {
  animation: mqig-v6-fallback 9s linear infinite !important;
}
#mq-social-cubes-v1 .mq-social-cube__mesh[data-mqig-v6-js="1"] {
  animation: none !important;
}
