@charset "utf-8";
/* CSS Document */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&family=Teko:wght@300..700&display=swap');

body {
  font-family: "Teko", sans-serif;
  line-height: 1.2;
  font-size: 15px;
  color: #fff;
  background: #2d1100 url("/event/assets/images/fifa-claw/bg.png")no-repeat center;
  background-size: cover;
}

a {
  text-decoration: none;
  cursor: pointer;
  -webkit-transition: all 0.3s;
  -moz-transition: all 0.3s;
  -o-transition: all 0.3s;
  transition: all 0.3s;
}

a:hover,
a:focus,
button:focus,
button:hover {
  text-decoration: none;
  outline: none;
}

img {
  max-width: 100%;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="url"],
input[type="password"],
input[type="number"],
textarea,
select {
  color: #666;
  width: 100%;
}

button {
  background: none;
  border: none;
  padding: 0;
}

#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 999;
}

.t-body {
  position: relative;
  z-index: 1;
  overflow: hidden;
  padding: 1rem 0;
}

.deco {
  position: absolute;
}

.max-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
}

.machine-wrapper {
  position: relative;
  max-width: 435px;
  margin: 0 auto;
}

.machine-base {
  position: relative;
  z-index: 2;
  pointer-events: none;
}

.window-wrap {
  position: absolute;
  height: 523px;
  background: url("/event/assets/images/fifa-claw/clawmachine/bg.png")no-repeat top center;
  background-size: cover;
  overflow: hidden;
  left: 0;
  right: 0;
  top: 20%;
  z-index: 0;
}

.crane-wrap {
  position: absolute;
  left: 19%;
  top: -65%;
  width: 13%;
}

.crane {
  background: url("/event/assets/images/fifa-claw/clawmachine/crane.png")repeat;
  background-size: 100%;
  height: 380px;
  width: 15%;
  margin: 0 auto;
}

.claw {
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  transform-origin: top center;
}

.claw-center {
  position: relative;
  z-index: 1;
  max-width: 100%;
}

/* Only the center image grows; the container & claw arms stay in place */
@media (min-width: 768px) {
  .claw-center img {
    width: 165%;
    max-width: none;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
}

.claw-part {
  position: absolute;
  max-width: 100%;
}

.claw-part.left {
  left: -51%;
  top: 45%;
}

.claw-part.right {
  right: -51%;
  top: 45%;
}

.crane-wrap.top-16 .claw-part.left {
  transform-origin: top right;
  transform: rotate(-32deg);
}

.crane-wrap.top-16 .claw-part.right {
  transform-origin: top left;
  transform: rotate(32deg);
}

@keyframes swingClaw1 {

  from,
  to {
    transform: rotate(0deg);
  }

  25% {
    transform: rotate(10deg);
  }

  75% {
    transform: rotate(-10deg);
  }
}

@keyframes swingClaw2 {

  from,
  20%,
  30%,
  50%,
  to {
    transform: rotate(0deg);
  }

  5%,
  35% {
    transform: rotate(5deg);
  }

  15%,
  45% {
    transform: rotate(-5deg);
  }
}

.bg-item {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 15%;
  z-index: 1;
}

.display-item {
  position: absolute;
  max-width: 19%;
  z-index: 2;
}

.center-item {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0%;
  z-index: 3;
  pointer-events: none;
}

.front-item {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -12%;
  z-index: 4;
  pointer-events: none;
}

.display-item.gift-1 {
  left: 15%;
  bottom: -4%;
  transform: rotate(-22deg);
}

.display-item.gift-2 {
  right: 19%;
  bottom: -4%;
  transform: rotate(22deg);
}

.display-item.gift-3 {
  left: 0;
  right: 0;
  margin: 0 auto;
  bottom: -2%;
  transform: rotate(9deg);
}


/** Reward Item Grabing **/
.crane-wrap.active-1 .prize-toy,
.crane-wrap.active-2 .prize-toy,
.crane-wrap.active-3 .prize-toy,
.crane-wrap.active-4 .prize-toy {
  background-size: 100%;
  background-repeat: no-repeat;
  background-position: top center;
  width: 300px;
  height: 0;
  padding-bottom: 450px;
  margin: 0 auto;
  position: absolute;
  left: 50%;
  transform: translateX(-50%) scale(0.4);
  right: auto;
  top: 110%;
  transform-origin: top center;
}

.crane-wrap.active-1 .prize-toy {
  background: url(/event/assets/images/fifa-claw/clawmachine/item-1.png) no-repeat top center;
}

.crane-wrap.active-2 .prize-toy {
  background: url(/event/assets/images/fifa-claw/clawmachine/item-2.png) no-repeat top center;
}

.crane-wrap.active-3 .prize-toy {
  background: url(/event/assets/images/fifa-claw/clawmachine/item-3.png) no-repeat top center;
}

.crane-wrap.active-4 .prize-toy {
  background: url(/event/assets/images/fifa-claw/clawmachine/item-1.png) no-repeat top center;
}

.control-btn {
  position: absolute;
  z-index: 3;
  left: 0;
  right: 0;
  bottom: 8%;
  text-align: center;
  filter: drop-shadow(0px 5px 5px rgb(0, 0, 0, 0.8));
}

button.ctrl-btn {
  max-width: 23%;
  margin: 0 3%;
}

button.drop-btn {
  max-width: 25%;
  margin: 0 3%;
}

button.ctrl-btn:active,
button.drop-btn:active {
  transform: scale(0.97);
  transform-origin: bottom center;
}

.modal-backdrop.show {
  opacity: 0.8;
}

.modal-content.reward {
  background: none;
  border: none;
  max-width: 200px;
  text-align: center;
  margin: 0 auto;
}

.reward-box {
  position: relative;
  cursor: pointer;
}

.prize-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  font-size: 36px;
  font-weight: 700;
  color: #000;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
  transform: scale(0.2);
}

.light-prize {
  position: absolute;
  top: 0%;
  left: 0;
  right: 0;
  opacity: 0;
  visibility: hidden;
  transition: 0.2s;
}

.light-prize img {
  animation: spinning 6s linear infinite;
  transform-origin: center;
  display: block;
  width: 100%;
}

@keyframes spinning {
  0% {
    transform: rotate(0deg);
  }

  100% {
    transform: rotate(360deg);
  }
}

.reward-box.active .prize-text {
  visibility: visible;
  opacity: 1;
  transform: scale(1);
  transition: 0.2s;
  transition-delay: 0.3s;
}

.reward-box.active .light-prize {
  visibility: visible;
  opacity: 1;
  transition: 0.2s;
}

button.claim-btn {
  background: #ffbf00;
  color: #000;
  font-size: 22px;
  font-weight: 700;
  border-radius: 10px;
  text-transform: uppercase;
  min-width: 150px;
  height: 42px;
  margin: 10px auto;
  display: none;
}

.note-open {
  color: #fff;
  font-weight: 700;
  font-size: 22px;
  line-height: 1.1;
  text-transform: uppercase;
  margin-top: 10px;
}

.reward-box.active~button.claim-btn {
  display: block;
}

.reward-box.active~.note-open {
  display: none;
}


/* Mobile: scale window & crane proportionally to machine width (max 400px) */
@media (max-width: 767px) {
  .window-wrap {
    height: min(521px, 130vw);
  }

  .crane {
    height: min(380px, 95vw);
  }
}

@media (max-width: 400px) {
  .window-wrap {
    height: 121vw;
  }

  .crane {
    height: 95vw;
  }
}

/* ADDED SECTION */
/* Intro + T&C: intro full-width; T&C anchored right (all breakpoints) */
.title-desc {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  padding: 0 clamp(8px, 2vw, 28px);
}

.title-desc-intro {
  width: 100%;
  display: block;
  min-width: 0;
}

.title-desc .intro-img {
  width: 100%;
  height: auto;
  display: block;
}

.tnc-btn {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  z-index: 2;
}

.tnc-btn img {
  width: auto;
  max-height: clamp(44px, 50%, 92px);
  max-width: clamp(72px, 22vw, 180px);
  height: auto;
  display: block;
  object-fit: contain;
  object-position: center center;
  transform-origin: 75% 85%;
  animation: tnc-hand-point 2.2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .tnc-btn img {
    animation: none;
  }
}

@keyframes tnc-hand-point {

  0%,
  100% {
    transform: rotate(0deg) translateY(0);
  }

  25% {
    transform: rotate(-6deg) translateY(-2px);
  }

  50% {
    transform: rotate(4deg) translateY(1px);
  }

  75% {
    transform: rotate(-3deg) translateY(-1px);
  }
}

@media (max-width: 767px) {
  .tnc-btn {
    top: auto;
    bottom: auto;
    right: -8px;
    top: 50%;
    transform: translateY(-30%);
  }
}

@media (max-width: 400px) {
  .title-desc {
    padding: 0 6px;
  }
}

@media (min-width: 768px) {
  .title-desc-intro {
    width: 80%;
    margin: 0 auto;
  }

  .tnc-btn {
    right: calc(clamp(6px, 1.5vw, 28px) + 5%);
  }

  .tnc-btn img {
    max-height: clamp(68px, 78%, 144px);
    max-width: clamp(113px, 34vw, 281px);
  }
}

.top-sec {
  margin-top: 20px;
}

.point-token {
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  width: 304px;
  height: 109px;
  max-width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
}

/* Glow follows PNG alpha via drop-shadow on the art layer */
.point-token-bg {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  z-index: 0;
  pointer-events: none;
  animation: point-token-neon 3s linear infinite;
}

/* Running neon: cycles through green → cyan → yellow-green → white-hot → back */
@keyframes point-token-neon {
  0% {
    filter:
      drop-shadow(0 0 3px rgba(60, 255, 120, 0.9))
      drop-shadow(0 0 10px rgba(60, 255, 120, 0.7))
      drop-shadow(0 0 22px rgba(60, 255, 120, 0.4));
  }
  15% {
    filter:
      drop-shadow(0 0 2px rgba(200, 255, 200, 0.5))
      drop-shadow(0 0 6px rgba(60, 255, 120, 0.2))
      drop-shadow(0 0 10px rgba(60, 255, 120, 0.1));
  }
  30% {
    filter:
      drop-shadow(0 0 4px rgba(0, 230, 255, 0.9))
      drop-shadow(0 0 14px rgba(0, 200, 255, 0.65))
      drop-shadow(0 0 28px rgba(0, 160, 220, 0.38));
  }
  45% {
    filter:
      drop-shadow(0 0 2px rgba(200, 255, 240, 0.5))
      drop-shadow(0 0 6px rgba(0, 200, 255, 0.2))
      drop-shadow(0 0 10px rgba(0, 180, 230, 0.1));
  }
  60% {
    filter:
      drop-shadow(0 0 5px rgba(180, 255, 80, 0.95))
      drop-shadow(0 0 16px rgba(150, 255, 50, 0.65))
      drop-shadow(0 0 30px rgba(120, 200, 30, 0.38));
  }
  75% {
    filter:
      drop-shadow(0 0 2px rgba(240, 255, 220, 0.5))
      drop-shadow(0 0 6px rgba(160, 255, 80, 0.2))
      drop-shadow(0 0 10px rgba(130, 210, 40, 0.1));
  }
  88% {
    filter:
      drop-shadow(0 0 6px rgba(255, 255, 255, 0.95))
      drop-shadow(0 0 18px rgba(80, 255, 160, 0.8))
      drop-shadow(0 0 36px rgba(40, 200, 120, 0.5));
  }
  100% {
    filter:
      drop-shadow(0 0 3px rgba(60, 255, 120, 0.9))
      drop-shadow(0 0 10px rgba(60, 255, 120, 0.7))
      drop-shadow(0 0 22px rgba(60, 255, 120, 0.4));
  }
}

@media (prefers-reduced-motion: reduce) {
  .point-token-bg {
    animation: none;
    filter:
      drop-shadow(0 0 6px rgba(60, 255, 120, 0.7))
      drop-shadow(0 0 18px rgba(40, 200, 95, 0.45));
  }
}

.point-token .point-text,
.point-token .token-text {
  position: relative;
  z-index: 1;
}

.point-text {
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.token-text {
  font-size: 17px;
  color: #fff;
  line-height: 1;
  margin-bottom: 5px;
}
#tnc-modal .modal-dialog{
  max-width: 700px;
}
#tnc-modal .modal-content {
  background: none;
  border: none;
  max-width: 100%;
  text-align: center;
  margin: 0 auto;
}
@media (max-width: 767px) {
  .tnc-btn{
    top: -45%;
  }
}