*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #ffffff;
  background: #050608;
}

body {
  display: flex;
  justify-content: center;
  align-items: stretch;
}

.landing-frame {
  position: relative;
  width: 100%;
  max-width: 1920px;
  min-height: 100vh;
  padding: 32px 24px 24px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  background: #050608 url("1 back.jpg") center/cover no-repeat;
  overflow: hidden;
}

.landing-frame::before {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 24px;
  border: 2px solid rgba(255, 137, 0, 0.75);
  box-shadow:
    0 0 24px rgba(255, 137, 0, 0.6),
    0 0 120px rgba(255, 137, 0, 0.35);
  pointer-events: none;
}

.landing-header {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  text-align: center;
  margin-top: -20px;
}

.logo-wrapper {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 26px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 137, 0, 0.8);
  box-shadow:
    0 0 18px rgba(255, 138, 0, 0.7),
    0 12px 24px rgba(0, 0, 0, 0.9);
  align-self: flex-start;
}

.logo-image {
  display: block;
  height: 42px;
}

.subtitle {
  margin: 0;
  font-size: 26px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #ffe9c7;
  text-shadow:
    0 0 18px rgba(0, 0, 0, 0.9),
    0 0 26px rgba(255, 137, 0, 0.8);
  margin-top: 2px;
}

.landing-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: stretch;
  gap: 24px;
  margin-top: 16px;
}

.cards-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  margin-top: -20px;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  width: min(700px, 100%);
  margin: 0 auto;
  justify-items: center;
}

.card {
  position: relative;
  aspect-ratio: 4 / 3;
  background: transparent;
  border: none;
  width: 260px;
  padding: 0;
  cursor: pointer;
  perspective: 1200px;
}

.card:disabled {
  cursor: default;
}

.card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 18px;
  overflow: visible;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  box-shadow:
    0 18px 32px rgba(0, 0, 0, 0.95),
    0 0 26px rgba(255, 137, 0, 0.55);
}

.card:hover .card-inner:not(.revealed),
.card:focus-visible .card-inner:not(.revealed) {
  box-shadow:
    0 0 24px rgba(255, 137, 0, 0.75),
    0 0 80px rgba(255, 90, 0, 0.6);
}

.card.revealed .card-inner {
  transform: rotateY(180deg);
}

.card-back,
.card-front {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  backface-visibility: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-back {
  background: transparent;
  border: 2px solid rgba(255, 137, 0, 0.95);
  box-shadow:
    0 0 26px rgba(255, 137, 0, 0.9),
    0 18px 32px rgba(0, 0, 0, 0.95);
  position: relative;
}

.card-back::before {
  content: none;
}

.card-back img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.card-gif {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 18px;
  pointer-events: none;
}

.card-front {
  background: #050608;
  border: 2px solid rgba(255, 137, 0, 0.8);
  transform: rotateY(180deg);
  padding: 10px;
  text-align: center;
  flex-direction: column;
  gap: 4px;
}

.card-front .label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #ffb46a;
}

.card-front .value {
  font-size: 18px;
  font-weight: 700;
  color: #ffffff;
}

.card-front--bonus {
  background: radial-gradient(circle at top left, #ff8a00, #ff4800 50%, #050608 100%);
}

.card-front--respin {
  background: radial-gradient(circle at top right, #2b2d33, #050608 65%);
}

.card-front--respin .value {
  color: #ff6060;
}

.hint-text {
  font-size: 13px;
  color: #f2d3a7;
  text-align: center;
  max-width: 640px;
  line-height: 1.5;
}

.banner {
  position: relative;
  width: min(720px, 100%);
  margin: 0 auto;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(10, 10, 12, 0.96), rgba(12, 9, 6, 0.96));
  border: 1px solid rgba(255, 137, 0, 0.6);
  box-shadow:
    0 0 30px rgba(0, 0, 0, 0.95),
    0 0 60px rgba(255, 137, 0, 0.25);
}

.banner-content {
  display: flex;
  align-items: center;
  gap: 16px;
}

.banner-media {
  flex: 0 0 120px;
  aspect-ratio: 1;
  border-radius: 16px;
  background: radial-gradient(circle at top left, #ff8a00, #ff4800 55%, #050608 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.box-3d {
  width: 80%;
  height: 80%;
  border-radius: 16%;
  background:
    linear-gradient(145deg, #ffb066, #ff6a00),
    radial-gradient(circle at top, #ffe8c4, transparent 65%);
  box-shadow:
    0 10px 20px rgba(0, 0, 0, 0.85),
    0 0 26px rgba(255, 173, 82, 0.9);
  position: relative;
}

.box-3d::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  border: 2px solid rgba(141, 62, 0, 0.35);
}

.banner-text h2 {
  margin: 0 0 4px;
  font-size: 20px;
}

.banner-text p {
  margin: 0;
  font-size: 14px;
  color: #f5d7b0;
}

.landing-footer {
  position: relative;
  z-index: 1;
  margin-top: 16px;
  text-align: center;
  font-size: 11px;
  color: #a19a90;
}

.disclaimer {
  margin: 0;
}

/* RESULT MODAL (TEXT POPUP) */

.result-modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 20;
}

.result-modal.visible {
  display: flex;
}

.result-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.9));
}

.result-modal-content {
  position: relative;
  max-width: min(640px, 90vw);
  padding: 32px 38px 30px;
  border-radius: 24px;
  background: linear-gradient(135deg, #050608, #111318);
  border: 1px solid rgba(255, 137, 0, 0.7);
  color: #ffffff;
  box-shadow:
    0 24px 40px rgba(0, 0, 0, 0.95),
    0 0 40px rgba(255, 137, 0, 0.85);
  text-align: center;
}

.result-modal-content h2 {
  margin: 0 0 8px;
  font-size: 28px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.result-modal-content p {
  margin: 0;
  font-size: 18px;
  color: #f5d7b0;
}

.result-modal-close {
  position: absolute;
  top: 6px;
  right: 8px;
  border: none;
  background: transparent;
  color: #ffffff;
  font-size: 26px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  cursor: pointer;
}

.result-modal-actions {
  margin-top: 18px;
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.result-modal-cta,
.result-modal-secondary,
.result-modal-continue {
  padding: 10px 24px;
  border-radius: 999px;
  border: none;
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
}

.result-modal-cta {
  background: linear-gradient(135deg, #ffb347, #ff7a00);
  color: #1b0900;
  font-weight: 700;
  box-shadow:
    0 0 24px rgba(255, 180, 0, 0.95),
    0 12px 26px rgba(0, 0, 0, 0.95);
}

.result-modal-cta:hover {
  filter: brightness(1.05);
}

.result-modal-secondary {
  background: linear-gradient(135deg, #ffb347, #ff7a00);
  color: #1b0900;
  font-weight: 700;
  box-shadow:
    0 0 24px rgba(255, 180, 0, 0.95),
    0 12px 26px rgba(0, 0, 0, 0.95);
}

.result-modal-continue {
  background: linear-gradient(135deg, #ffb347, #ff7a00);
  color: #1b0900;
  font-weight: 700;
  box-shadow:
    0 0 24px rgba(255, 180, 0, 0.95),
    0 12px 26px rgba(0, 0, 0, 0.95);
}

@media (max-width: 768px) {
  .result-modal-content {
    max-width: min(420px, 90vw);
    padding: 22px 22px 20px;
    border-radius: 20px;
  }

  .result-modal-content h2 {
    font-size: 22px;
  }

  .result-modal-content p {
    font-size: 15px;
  }

  .result-modal-close {
    font-size: 22px;
    padding: 4px 8px;
  }

  .result-modal-cta {
    font-size: 13px;
    padding-inline: 22px;
  }
}

/* RESPONSIVE */

@media (max-width: 768px) {
  .landing-frame {
    padding: 16px 10px 14px;
  }

  .landing-frame::before {
    inset: 8px;
    border-radius: 18px;
  }

  .logo-wrapper {
    padding-inline: 18px;
    margin-top: 12px;
  }

  .logo-text {
    font-size: 18px;
  }

  .subtitle {
    font-size: 22px;
    letter-spacing: 0.14em;
    margin-top: 30px;
  }

  .landing-main {
    gap: 10px;
    margin-top: -40px;
  }

  .logo-image {
    height: 34px;
  }

  .cards-grid {
    gap: 12px;
    width: 100%;
  }

  .card-inner {
    border-radius: 14px;
  }

  .card {
    width: 46vw;
    max-width: 190px;
  }

  .banner {
    padding: 12px 12px;
  }

  .banner-content {
    gap: 12px;
  }

  .banner-media {
    flex: 0 0 90px;
  }

  .banner-text h2 {
    font-size: 16px;
  }

  .banner-text p {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .cards-grid {
    width: 100%;
    gap: 10px;
  }

  .hint-text {
    font-size: 12px;
  }

  .landing-footer {
    font-size: 10px;
  }
}

