/* Magius Casino — custom brand styling (buttons, focus states, in-page anchors) */

.mgcx-main-button,
.mgcx-registr-btn,
.mgcx-login-btn {
  position: relative;
  overflow: hidden;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, filter 0.25s ease;
}

.mgcx-main-button,
.mgcx-registr-btn {
  border: 1px solid rgba(228, 170, 64, 0.65);
  box-shadow:
    0 10px 26px rgba(100, 27, 78, 0.45),
    0 0 0 1px rgba(228, 170, 64, 0.15) inset,
    0 1px 0 rgba(255, 255, 255, 0.25) inset;
}

.mgcx-main-button::before,
.mgcx-registr-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.35) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-20deg);
  pointer-events: none;
}

@media only screen and (min-width: 1025px) {
  .mgcx-main-button:hover,
  .mgcx-registr-btn:hover {
    transform: translateY(-2px) scale(1.02);
    box-shadow:
      0 14px 32px rgba(100, 27, 78, 0.55),
      0 0 0 1px rgba(228, 170, 64, 0.3) inset,
      0 1px 0 rgba(255, 255, 255, 0.3) inset;
    filter: brightness(1.06);
  }

  .mgcx-main-button:hover::before,
  .mgcx-registr-btn:hover::before {
    animation: magius-shine 0.9s ease forwards;
  }

  .mgcx-main-button:active,
  .mgcx-registr-btn:active {
    transform: translateY(0) scale(0.99);
  }
}

@keyframes magius-shine {
  from {
    left: -60%;
  }
  to {
    left: 130%;
  }
}

.mgcx-login-btn {
  background: transparent;
  border: 1px solid rgba(228, 170, 64, 0.55);
  color: var(--text-color);
  font-weight: 600;
}

@media only screen and (min-width: 1025px) {
  .mgcx-login-btn:hover {
    background: rgba(228, 170, 64, 0.12);
    border-color: rgba(228, 170, 64, 0.9);
    opacity: 1;
    transform: translateY(-1px);
  }
}

.mgcx-main-button:focus-visible,
.mgcx-registr-btn:focus-visible,
.mgcx-login-btn:focus-visible {
  outline: 2px solid rgba(228, 170, 64, 0.9);
  outline-offset: 2px;
}

/* Inline illustrative images placed inside content sections */
.mgcx-inline-promo-img {
  display: block;
  max-width: 100%;
  height: auto;
  margin: 20px auto;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

.mgcx-inline-promo-img--narrow {
  max-width: 320px;
}

/* Smooth scroll for in-page section navigation */
html {
  scroll-behavior: smooth;
}

.mgcx-main-nav__list a,
.mgcx-footer-nav__list a {
  scroll-margin-top: 90px;
}

[id] {
  scroll-margin-top: 90px;
}
