@font-face {
  font-family: Cinzel;
  src: url("../fonts/Cinzel-Regular.ttf") format("truetype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

html {
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  position: relative;
  overflow-x: hidden;
  max-width: 100%;
  background-color: #07060c;
}

.mb-logo {
  display: none;
}

.enter-site-btn {
  position: fixed;
  top: 1rem;
  right: 1.25rem;
  z-index: 21;
  display: block;
  width: clamp(5.5rem, 12vw, 7.75rem);
  line-height: 0;
}

.enter-site-btn img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.page-bg {
  position: absolute;
  z-index: -2;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
}

.page-bg::before {
  content: "";
  position: absolute;
  left: 0;
  top: -25vh;
  width: 100%;
  height: calc(100% + 60vh);
  background: url("../images/main-bg.jpg") no-repeat center top;
  background-size: cover;
  transform: translate3d(0, var(--parallax-y, 0px), 0);
  will-change: transform;
}

@media (max-width: 600px) {
  .page-bg::before {
    top: 0;
    height: 100%;
    background-image: url("../images/mobile-main-bg.jpg");
    transform: none;
    will-change: auto;
  }

  .hero-section,
  .event-section,
  .btn-play-now-section,
  footer {
    padding-inline: 0.85rem;
  }

  .play-section {
    padding-inline: 0;
  }

  .mb-logo {
    position: fixed;
    top: 10px;
    left: 10px;
    z-index: 21;
    display: block;
    width: 100px;
    height: auto;
  }

  .enter-site-btn {
    top: 10px;
    right: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 44px;
    min-height: 48px;
    padding: 6px;
  }

  .enter-site-btn img {
    width: 100px;
    height: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .page-bg::before {
    top: 0;
    height: 100%;
    transform: none;
    will-change: auto;
  }
}

.countdown {
  gap: clamp(1.25rem, 4vw, 2.5rem);
  margin-top: 1.5rem;
  color: #EAD4AB;
  font-weight: 700;
}

.countdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 0;
}

.countdown-number {
  font-family: Cinzel, serif;
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.countdown-label {
  font-family: Cinzel, serif;
  font-size: clamp(2rem, 2vw, 1rem);
  line-height: 1.2;
  text-transform: uppercase;
  font-weight: 400;
}

@media (max-width: 600px) {
  .countdown {
    gap: 1.75rem;
    margin-top: 1.5rem;
  }

  .countdown-number {
    font-size: 40px;
  }

  .countdown-label {
    font-size: 18px;
  }
}

.hero-section {
  position: relative;
  overflow: visible;
}

.hero-char {
  position: absolute;
  z-index: -1;
  width: auto;
  height: auto;
  max-width: none;
  max-height: none;
  pointer-events: none;
  opacity: 0;
  --px: 0px;
  --py: 0px;
  will-change: transform;
}

.hero-char-left {
  left: -7rem;
  --hero-x: 0rem;
  --hero-y: 0rem;
  animation: hero-char-in-left 1.2s ease-out forwards;
  filter: drop-shadow(2px 4px 6px black);
}

.hero-char-right {
  right: -20rem;
  --hero-x: 0rem;
  --hero-y: 0rem;
  animation: hero-char-in-right 1.25s ease-out 0.15s forwards;
  filter: drop-shadow(2px 4px 6px black);
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.hero-gem-logo,
.hero-byron-logo {
  --px: 0px;
  --py: 0px;
  transform: translate3d(var(--px), var(--py), 0);
  will-change: transform;
}

.hero-gem-logo {
  filter: drop-shadow(2px 4px 6px black);
}

@media (max-width: 600px) {
  .hero-gem-logo {
    width: 200px;
  }

  .hero-scroll-hint svg {
    display: none;
  }

  .hero-scroll-hint .hero-scroll-mouse {
    display: block;
  }
}

.hero-byron-logo {
  width: 100%;
}

.hero-byron-logo img {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
}

.hero-scroll-hint {
  display: flex;
  justify-content: center;
  margin-top: 1.5rem;
  padding: 0.5rem;
  color: #D61E1E;
  text-decoration: none;
  cursor: pointer;
}

.hero-scroll-hint svg,
.hero-scroll-hint .hero-scroll-mouse {
  width: clamp(2.5rem, 4.5vw, 3.5rem);
  height: auto;
  animation: hero-scroll-bounce 1.6s ease-in-out infinite;
}

.hero-scroll-hint svg {
  display: block;
}

.hero-scroll-hint .hero-scroll-mouse {
  display: none;
  width: 1.75rem;
}

@keyframes hero-scroll-bounce {
  0%,
  100% {
    transform: translateY(0);
    opacity: 0.55;
  }

  50% {
    transform: translateY(0.65rem);
    opacity: 1;
  }
}

@keyframes hero-char-in-left {
  from {
    opacity: 0;
    transform: translate(
      calc(var(--hero-x) + var(--px) - 3.5rem),
      calc(var(--hero-y) + var(--py))
    );
  }

  to {
    opacity: 1;
    transform: translate(
      calc(var(--hero-x) + var(--px)),
      calc(var(--hero-y) + var(--py))
    );
  }
}

@keyframes hero-char-in-right {
  from {
    opacity: 0;
    transform: translate(
      calc(var(--hero-x) + var(--px) + 3.5rem),
      calc(var(--hero-y) + var(--py))
    );
  }

  to {
    opacity: 1;
    transform: translate(
      calc(var(--hero-x) + var(--px)),
      calc(var(--hero-y) + var(--py))
    );
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-char-left,
  .hero-char-right {
    opacity: 1;
    animation: none;
    transform: translate(var(--hero-x), var(--hero-y));
    will-change: auto;
  }

  .hero-gem-logo,
  .hero-byron-logo {
    transform: none;
    will-change: auto;
  }

  .hero-scroll-hint svg,
  .hero-scroll-hint .hero-scroll-mouse {
    animation: none;
    opacity: 1;
  }
}

@media (max-width: 1024px) {
  .hero-char {
    display: none;
  }
}

.event-section {
  margin-top: clamp(3rem, 8.33vw, 10rem);
}

.play-section {
  margin-top: clamp(4rem, 16.67vw, 20rem);
  overflow: visible;
  --play-scale: clamp(0.22, calc(100vw / 1920px), 1);
}

.play-section .container {
  position: relative;
  overflow: visible;
  --play-side-space: max(0px, calc((100vw - 100%) / 2));
  --play-inset: max(
    calc(-18rem * var(--play-scale)),
    calc(4px - var(--play-side-space))
  );
}

.play-top-left,
.play-top-right,
.play-bottom-left,
.play-bottom-right {
  position: absolute;
  z-index: 2;
  display: grid;
  opacity: 0;
  transform: scale(var(--play-scale));
}

.play-section.is-inview .play-top-left,
.play-section.is-inview .play-top-right,
.play-section.is-inview .play-bottom-left,
.play-section.is-inview .play-bottom-right {
  animation: play-crystal-in 1.1s ease-out forwards;
  animation-delay: var(--play-crystal-delay, 0s);
}

.play-top-left,
.play-top-right {
  top: var(--play-inset);
}

.play-top-left,
.play-bottom-left {
  left: var(--play-inset);
}

.play-top-right,
.play-bottom-right {
  right: var(--play-inset);
}

.play-bottom-left,
.play-bottom-right {
  bottom: var(--play-inset);
}

.play-top-left {
  transform-origin: top left;
  --play-crystal-delay: 0.1s;
}

.play-top-right {
  transform-origin: top right;
  --play-crystal-delay: 0.28s;
}

.play-bottom-left {
  transform-origin: bottom left;
  --play-crystal-delay: 0.46s;
  bottom: calc(var(--play-inset) + 8rem);
}

.play-bottom-right {
  transform-origin: bottom right;
  --play-crystal-delay: 0.64s;
  bottom: calc(var(--play-inset) + 8rem);
}

@keyframes play-crystal-in {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

@keyframes play-crystal-drift {
  0%,
  100% {
    transform: translate(var(--play-base-x, 0px), var(--play-base-y, 0px));
  }

  30% {
    transform: translate(var(--play-base-x, 0px), var(--play-base-y, 0px))
      translate(calc(var(--play-drift-x) * 0.4), calc(var(--play-drift-y) * 0.2));
  }

  55% {
    transform: translate(var(--play-base-x, 0px), var(--play-base-y, 0px))
      translate(var(--play-drift-x), var(--play-drift-y));
  }

  78% {
    transform: translate(var(--play-base-x, 0px), var(--play-base-y, 0px))
      translate(calc(var(--play-drift-x) * 0.18), calc(var(--play-drift-y) * 0.72));
  }
}

@media (prefers-reduced-motion: reduce) {
  .play-top-left,
  .play-top-right,
  .play-bottom-left,
  .play-bottom-right {
    opacity: 1;
    animation: none;
    transform: scale(var(--play-scale));
  }

  .play-top-left .play-crystal-hotspot,
  .play-top-left > img,
  .play-crystal-hotspot {
    animation: none;
  }

  .play-top-left > img {
    transform: translate(30%, 1%);
  }
}

.play-crystal-hotspot,
.play-top-left > img {
  grid-area: 1 / 1;
  position: relative;
}

.play-crystal-hotspot {
  z-index: 2;
  --play-base-x: 0px;
  --play-base-y: 0px;
  --play-drift-x: 16px;
  --play-drift-y: 12px;
  --play-drift-duration: 5s;
  --play-drift-delay: 0s;
}

.play-section.is-inview .play-crystal-hotspot {
  animation: play-crystal-drift var(--play-drift-duration) var(--play-drift-delay) ease-in-out infinite;
}

.play-top-left .play-crystal-hotspot {
  --play-drift-x: 18px;
  --play-drift-y: 14px;
  --play-drift-duration: 4.5s;
}

.play-top-left > img {
  z-index: 1;
  --play-base-x: 30%;
  --play-base-y: 1%;
  --play-drift-x: 24px;
  --play-drift-y: 20px;
  --play-drift-duration: 6.4s;
  --play-drift-delay: 0.7s;
}

.play-section.is-inview .play-top-left > img {
  animation: play-crystal-drift var(--play-drift-duration) var(--play-drift-delay) ease-in-out infinite;
}

.play-top-right .play-crystal-hotspot {
  --play-drift-x: -18px;
  --play-drift-y: 14px;
  --play-drift-duration: 5.3s;
  --play-drift-delay: 0.4s;
}

.play-bottom-left .play-crystal-hotspot {
  --play-drift-x: 18px;
  --play-drift-y: -14px;
  --play-drift-duration: 5.9s;
  --play-drift-delay: 1.1s;
}

.play-bottom-right .play-crystal-hotspot {
  --play-drift-x: -18px;
  --play-drift-y: -14px;
  --play-drift-duration: 4.8s;
  --play-drift-delay: 1.8s;
}

.play-top-left img,
.play-top-right img,
.play-bottom-left img,
.play-bottom-right img {
  display: block;
  width: auto;
  max-width: none;
  height: auto;
}

.play-crystal-hotspot > img:not(.play-hover-label) {
  transition: filter 0.25s ease, transform 0.25s ease;
}

.play-hover-label {
  position: absolute;
  left: 50%;
  top: 70%;
  z-index: 3;
  transform: translate(-50%, -50%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease, visibility 0.2s ease, transform 0.25s ease;
}

.play-crystal-hotspot:hover .play-hover-label {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, -58%);
}

.play-crystal-hotspot:hover > img:not(.play-hover-label) {
  transform: scale(1.06);
  filter: brightness(1.18) drop-shadow(0 0 18px rgba(234, 212, 171, 0.55));
}

@media (max-width: 600px) {
  .play-top-left,
  .play-top-right,
  .play-bottom-left,
  .play-bottom-right {
    display: none;
    animation: none;
  }
}

.play-img {
  position: relative;
  width: 100%;
  filter: drop-shadow(2px 4px 6px black);
}

.play-video {
  overflow: hidden;
  pointer-events: none;
}

.play-video iframe {
  border: 0;
  transform: scale(1.12);
  transform-origin: center center;
}

.play-video-fx {
  display: none;
  pointer-events: none;
}

@media (max-width: 600px) {
  .play-section {
    padding-inline: 0;
  }

  .play-section .container {
    max-width: none !important;
    width: 100%;
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .play-section .row {
    --bs-gutter-x: 0;
    margin-left: 0;
    margin-right: 0;
  }

  .play-section .col-12 {
    padding-left: 0;
    padding-right: 0;
  }

  .play-img {
    left: 50%;
    width: 100vw;
    max-width: 100vw;
    margin: 0;
    transform: translateX(-50%);
    filter: none;
    isolation: isolate;
    overflow: visible;
  }

  .play-video {
    width: 100vw;
    max-width: 100vw;
    border-radius: 0;
  }

  .play-video iframe {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: none;
  }

  .play-video-fx {
    display: block;
    position: absolute;
    z-index: 2;
    width: auto;
    max-width: none;
    height: auto;
    mix-blend-mode: screen;
  }

  .play-video-fx-tl {
    top: -189px;
    left: -290px;
  }

  .play-video-fx-br {
    right: -129px;
    bottom: -99px;
  }

  .play-cta {
    padding-inline: 0.85rem;
  }
}

.play-cta {
  position: relative;
  z-index: 5;
  margin-top: 3rem;
  padding-inline: clamp(0.75rem, 10vw, 5rem);
  max-width: 100%;
}

.play-available {
  margin: 0;
  font-family: Cinzel, serif;
  font-weight: 400;
  font-style: normal;
  font-size: clamp(0.8rem, 2.4vw, 1.875rem);
  line-height: 1.25;
  text-align: center;
  max-width: 100%;
  overflow-wrap: anywhere;
  color: #ffffff;
  background-image: linear-gradient(
    105deg,
    #ffffff 0%,
    #ffffff 38%,
    #ffe7a8 47%,
    #ffffff 52%,
    #ffd36a 57%,
    #ffffff 66%,
    #ffffff 100%
  );
  background-size: 220% 100%;
  background-position: 120% 0;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 4px #563600);
  animation: play-available-shine 5.5s ease-in-out infinite;
}

@keyframes play-available-shine {
  0%,
  55% {
    background-position: 120% 0;
  }

  100% {
    background-position: -20% 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .play-available {
    animation: none;
    background-image: none;
    -webkit-text-fill-color: #ffffff;
    color: #ffffff;
    filter: none;
    text-shadow: 0 4px 4px #563600;
  }
}

.play-mobile-rewards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 0.5rem;
  align-items: center;
  justify-items: center;
  margin-top: 1.25rem;
  width: 100%;
}

.play-mobile-rewards a {
  display: block;
  min-width: 0;
  max-width: 100%;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.play-mobile-rewards img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.play-learn-more {
  display: block;
  margin: 0.85rem 0 0;
  font-family: Trajan, "Trajan Pro", Cinzel, serif;
  font-weight: 400;
  font-style: normal;
  font-size: 1.6533rem;
  text-decoration: none;
  background-image: linear-gradient(180deg, #ffffff 0%, #ff960c 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 4px #563600);
  transition: filter 0.25s ease, transform 0.25s ease;
}

.play-now-btn {
  display: block;
  width: fit-content;
  margin-inline: auto;
  transition: transform 0.25s ease, filter 0.25s ease;
}

.play-now-btn img {
  display: block;
  transition: transform 0.25s ease, filter 0.25s ease;
}

@media (hover: hover) and (pointer: fine) {
  .hero-scroll-hint:hover {
    color: #ff3a3a;
  }

  .enter-site-btn:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
  }

  .play-mobile-rewards a:hover img {
    transform: scale(1.05);
    filter: brightness(1.15) drop-shadow(0 4px 10px rgba(234, 212, 171, 0.4));
  }

  .play-now-btn:hover img {
    transform: scale(1.06);
    filter: brightness(1.12) drop-shadow(0 8px 18px rgba(255, 150, 12, 0.45));
  }

  .play-learn-more:hover {
    transform: translateY(-2px);
    filter: drop-shadow(0 4px 4px #563600) brightness(1.2);
  }

  .back-to-top:hover {
    color: #ff3a3a;
    border-color: rgba(234, 212, 171, 0.7);
  }
}

.btn-play-now-section {
  margin-top: clamp(3rem, 8.33vw, 10rem);
}

footer .container {
  margin-top: clamp(10rem, 8.33vw, 10rem);
}

.footer-copy {
  font-size: 0.75rem;
  margin-top: 15px;
}

.back-to-top {
  position: fixed;
  right: 1.25rem;
  bottom: 1.25rem;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  color: #D61E1E;
  background: rgba(7, 6, 12, 0.72);
  border: 1px solid rgba(234, 212, 171, 0.4);
  border-radius: 50%;
  text-decoration: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(0.5rem);
  transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, color 0.2s ease;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.back-to-top svg {
  display: block;
  width: 1.35rem;
  height: auto;
}
