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

* {
  margin: 0;
}

html,
body {
  min-height: 100%;
}

body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

input,
button,
textarea,
select {
  font: inherit;
}

p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

button {
  border: 0;
  background: none;
  cursor: pointer;
}

/* Custom CSS */
:root {
  --color-gold: #ffcf57;
  --color-gold-dark: #a76006;
  --color-violet-deep: #220728;
  --color-violet-mid: #4f1d7f;
  --color-violet-soft: #7c47bf;
  --color-green-light: #7bea4a;
  --color-green-mid: #167000;
  --color-green-dark: #083b00;
  --color-wood-dark: #5d2107;
  --color-wood-mid: #7c320a;
  --color-wood-light: #9f561e;
  --color-white: #ffffff;
  --shadow-panel: 0 0.5rem 1.4rem rgba(0, 0, 0, 0.45);
  --shadow-text:
    0 0.15rem 0 rgba(67, 18, 0, 0.9), 0 0.3rem 0.7rem rgba(0, 0, 0, 0.5);
  --shadow-glow: 0 0 1.4rem rgba(255, 203, 104, 0.55);
}

body {
  font-family: "inter-variable", sans-serif;
  color: var(--color-white);
  background:
    linear-gradient(rgba(13, 4, 21, 0.18), rgba(8, 2, 15, 0.64)),
    url("../img/bg.jpg") center / cover no-repeat,
    radial-gradient(circle at top, #6533a8 0%, #120311 72%);
}

.offer-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: clamp(1rem, 3vw, 2rem);
}

.offer-page__shell {
  width: min(100%, 86rem);
}

.offer-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1.2rem, 2.3vw, 2.2rem);
  padding: clamp(1rem, 2vw, 1.6rem);
}

.offer-card__header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.8rem, 1.8vw, 1.4rem);
  width: min(100%, 56rem);
}

.offer-card__logo {
  width: min(100%, 24rem);
  height: auto;
  object-fit: contain;
}

.offer-card__banner {
  width: min(100%, 850px);
  padding: 0;
  text-align: center;
  border: 8px solid transparent;
  border-radius: 1.3rem;
  background: linear-gradient(
    180deg,
    rgba(105, 41, 159, 0.94) 0%,
    rgba(62, 18, 102, 0.96) 100%
  );
  box-shadow:
    inset 0 0 0 0.15rem rgba(255, 235, 180, 0.35),
    0 0 0 0.2rem rgba(74, 18, 96, 0.5),
    var(--shadow-panel);
  position: relative;
}

.offer-card__banner::after {
  position: absolute;
  content: "";
  background: linear-gradient(to top, #c78300, #e59f19, #7f5008, #c78300);
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
  border-radius: 13px;
  margin: -4px;
}

.offer-card__banner:before {
  position: absolute;
  content: "";
  background: linear-gradient(
    to top,
    #ffc30a,
    #f9eac1,
    #b87b1e,
    #fffd9b,
    #fec326
  );
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  margin: -8px;
  z-index: 0;
  border-radius: 15px;
}

.offer-card__banner--holder {
  position: relative;
  z-index: 1;
  background: #4a1869;
  box-shadow: inset 0 0 30px 5px #000;
  width: 100%;
  height: 100%;
  border-radius: 10px;
  padding: 20px 20px;
}

.offer-card__eyebrow {
  margin-bottom: 0.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: clamp(0.9rem, 2vw, 2rem);
  font-weight: 800;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  text-shadow: 0 0.12rem 0 rgba(18, 2, 38, 0.9);
}

.offer-card__eyebrow-icon {
  width: 0.85em;
  height: auto;
  flex: 0 0 auto;
}

.offer-card__title {
  font-size: clamp(1.9rem, 5vw, 52px);
  font-weight: 900;
  line-height: 0.98;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  color: #fff6d8;
  background: linear-gradient(
    180deg,
    #fffef8 0%,
    #fffef8 50%,
    #ffb726 50%,
    #ffb726 100%
  );
  filter: drop-shadow(0 4px 0 #d56f00);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  /* text-shadow:
    0 0.08rem 0 rgba(255, 249, 222, 0.95),
    0 0.16rem 0 #ffca46,
    0 0.26rem 0 #f39c10,
    0 0.38rem 0 #d56f00,
    0 0.5rem 0 #8b3000,
    0 0.78rem 0.95rem rgba(43, 8, 70, 0.72); */
  margin-top: 20px;
}

.offer-card__choices {
  width: min(100%, 62rem);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.875rem;
  align-items: start;
  justify-content: center;
  margin-inline: auto;
}

.choice-tile {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(0.9rem, 1.5vw, 1.2rem);
}

.choice-tile__frame {
  position: relative;
  width: min(100%, 21.5rem);
  aspect-ratio: 313 / 285;
  display: grid;
  place-items: center;
  padding: 1.2rem 1.1rem 1rem;
  background: url("../img/tile-bg.png") center / 100% 100% no-repeat;
  filter: drop-shadow(0 0.6rem 1rem rgba(0, 0, 0, 0.3));
}

.choice-tile__image {
  width: min(74%, 15rem);
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 0 0.65rem rgba(255, 244, 189, 0.55))
    drop-shadow(0 0 1rem rgba(255, 164, 66, 0.35));
  transform-origin: center;
  transform: scale(1);
}

.choice-tile--barrel .choice-tile__image {
  animation: tile-pulse-first 3.6s steps(1, end) infinite;
}

.choice-tile--shovel .choice-tile__image {
  animation: tile-pulse-second 3.6s steps(1, end) infinite;
}

.choice-tile--gold-bag .choice-tile__image {
  animation: tile-pulse-third 3.6s steps(1, end) infinite;
}

.choice-tile__button {
  min-width: min(100%, 11.5rem);
  padding: 0.9rem 1.3rem;
  border: 0.18rem solid var(--color-gold);
  border-radius: 0.45rem;
  background: linear-gradient(180deg, #2eb924 0%, #106208 52%, #0b4204 100%);
  box-shadow:
    inset 0 0 0 2px #000,
    inset 0 0.12rem 0 rgba(190, 255, 156, 0.55),
    inset 0 -0.22rem 0 rgba(0, 0, 0, 0.25),
    0 0.28rem 0 rgba(2, 28, 0, 1),
    0 0.8rem 1rem rgba(0, 0, 0, 1);
  font-family: "inter-variable";
  font-size: clamp(1.55rem, 2.6vw, 2.25rem);
  font-weight: 800;
  line-height: 1;
  text-transform: uppercase;
  color: #f6ffea;
  text-shadow: 0 0.15rem 0 rgba(5, 42, 1, 0.85);
  transition:
    transform 180ms ease,
    filter 180ms ease;
  margin-top: 40px;
  margin-bottom: 40px;
  text-align: center;
  text-decoration: none;
}

.choice-tile__button:hover,
.choice-tile__button:focus-visible {
  transform: translateY(-0.12rem) scale(1.02);
  filter: brightness(1.08);
}

.choice-tile__button:focus-visible {
  outline: 0.18rem solid #fff8c3;
  outline-offset: 0.15rem;
}

.offer-card__footer {
  text-align: center;
  font-size: clamp(1.65rem, 4vw, 3rem);
  font-weight: 900;
  line-height: 1.02;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-shadow:
    0 0.2rem 0 rgba(17, 4, 28, 0.95),
    0 0.6rem 1rem rgba(0, 0, 0, 0.4);
}

@keyframes tile-pulse-first {
  0%,
  32.99% {
    transform: scale(1.5);
  }

  33%,
  100% {
    transform: scale(1);
  }
}

@keyframes tile-pulse-second {
  0%,
  33% {
    transform: scale(1);
  }

  33.01%,
  65.99% {
    transform: scale(1.5);
  }

  66%,
  100% {
    transform: scale(1);
  }
}

@keyframes tile-pulse-third {
  0%,
  66% {
    transform: scale(1);
  }

  66.01%,
  99.99% {
    transform: scale(1.5);
  }

  100% {
    transform: scale(1);
  }
}

@media (max-width: 1024px) {
  .offer-card__logo {
    width: min(100%, 20rem);
  }

  .offer-card__choices {
    width: min(100%, 51rem);
    gap: 0.75rem;
  }

  .choice-tile__frame {
    width: min(100%, 16rem);
  }

  .choice-tile__image {
    width: min(74%, 11.25rem);
  }
}

@media (max-width: 820px) {
  .offer-card__header {
    gap: 0.9rem;
  }

  .offer-card__logo {
    width: min(100%, 16rem);
  }

  .offer-card__choices {
    width: min(100%, 41rem);
    gap: 0.625rem;
  }

  .choice-tile__frame {
    width: min(100%, 12.75rem);
  }

  .choice-tile__image {
    width: min(72%, 8.9rem);
  }

  .choice-tile__button {
    min-width: min(100%, 9rem);
    margin-top: 1.25rem;
    margin-bottom: 1.5rem;
  }
}

@media (max-width: 720px) {
  .offer-page {
    padding: 1rem 0.75rem 1.6rem;
    min-height: 100vh;
    min-height: 100svh;
  }

  .offer-card__header {
    width: 100%;
    gap: 0.75rem;
  }

  .offer-card__logo {
    width: min(100%, 10rem);
  }

  .offer-card__choices {
    width: min(100%, 24rem);
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.45rem;
    margin-inline: auto;
  }

  .choice-tile__frame {
    width: min(100%, 7.25rem);
    padding: 0.55rem 0.5rem 0.45rem;
  }

  .choice-tile__image {
    width: min(74%, 5.2rem);
  }

  .choice-tile__button {
    min-width: 0;
    width: 100%;
    margin-top: 0.6rem;
    margin-bottom: 0.8rem;
    padding: 0.6rem 0.35rem;
    font-size: clamp(1rem, 4.8vw, 1.45rem);
  }
  .offer-card {
    padding: 0;
  }
  .offer-card__title {
    font-size: clamp(5vw, 5vw, 52px);
  }
  .offer-card__title {
    filter: drop-shadow(0 2px 0 #d56f00);
  }
  .offer-card__footer {
    font-size: clamp(3.4vw, 4.5vw, 5vw);
  }
}

@media (prefers-reduced-motion: reduce) {
  .choice-tile__image,
  .choice-tile__button {
    animation: none;
    transition: none;
  }
}
