.gift-locked-form {
  display: none !important;
}

.gift-game {
  max-width: 480px;
  margin: 0 auto 30px;
  padding: 24px 18px;
  border: 1px solid rgba(122, 122, 122, 0.5);
  border-radius: 10px;
  background: #fff;
  text-align: center;
}

.gift-game__headline {
  margin: 0 0 8px;
  color: #16a34a;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.25;
}

.gift-game__instruction {
  display: block;
  margin-bottom: 2px;
  color: #333;
  font-size: 16px;
  line-height: 1.4;
}

.gift-game__arrow {
  display: block;
  margin-bottom: 12px;
  color: #16a34a;
  font-size: 24px;
  line-height: 1;
}

.gift-game__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.gift-game__box {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #f3f4f6;
  cursor: pointer;
  user-select: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.gift-game__box:hover:not(:disabled) {
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

.gift-game__box:focus-visible {
  outline: 3px solid rgba(22, 163, 74, 0.35);
  outline-offset: 2px;
}

.gift-game__box:disabled {
  cursor: default;
}

.gift-game__box > img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  pointer-events: none;
}

.gift-game__box-result {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #e5e5e5;
  color: #666;
  font-size: 27px;
  font-weight: 900;
  line-height: 1;
}

.gift-game__box-result::before {
  position: absolute;
  top: -10px;
  left: 10%;
  width: 80%;
  height: 18px;
  border-radius: 4px;
  background: #cfcfcf;
  content: "";
  transform: rotate(-18deg);
}

.gift-game__box-result--win {
  color: #16a34a;
  font-size: 34px;
}

.gift-game__loading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  background: #fff7ed;
  color: #7c2d12;
  font-size: 13px;
  font-weight: 700;
}

.gift-game__spinner {
  width: 34px;
  height: 34px;
  border: 4px solid #f3c37a;
  border-top-color: #e11d48;
  border-radius: 50%;
  animation: gift-spin 0.8s linear infinite;
}

.gift-game__popup {
  position: fixed;
  z-index: 10000;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.55);
}

.gift-game__popup.is-active {
  display: flex;
}

.gift-game__popup-inner {
  width: min(100%, 320px);
  padding: 28px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
  text-align: center;
}

.gift-game__popup-title {
  margin: 0 0 10px;
  color: #111;
  font-size: 24px;
  line-height: 1.25;
}

.gift-game__popup-text {
  margin: 0 0 18px;
  color: #444;
  font-size: 16px;
  line-height: 1.45;
}

.gift-game__popup-button {
  min-width: 150px;
  padding: 14px 28px;
  border: 0;
  border-radius: 50px;
  background: #16a34a;
  color: #fff;
  font-size: 17px;
  font-weight: 700;
  cursor: pointer;
}

.gift-game__popup-button:hover {
  background: #15803d;
}

@keyframes gift-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (min-width: 992px) {
  .left .gift-game {
    padding: 22px 16px;
  }

  .left .gift-game__headline {
    font-size: 22px;
  }
}

@media (max-width: 420px) {
  .gift-game {
    padding: 20px 12px;
  }

  .gift-game__headline {
    font-size: 21px;
  }

  .gift-game__grid {
    gap: 7px;
  }

  .gift-game__box-result {
    font-size: 22px;
  }

  .gift-game__box-result--win {
    font-size: 29px;
  }
}
