/* ==========================================================
   PROJECT LANTERN — BAXTERGATE MIDWAY
   Scoped replacement for the existing Bingo card only.
   ========================================================== */

.baxter-midway {
  position: relative;
  grid-column: 1 / -1;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
  isolation: isolate;

  padding: clamp(28px, 4vw, 56px);
  margin: 10px 0 8px;

  border: 2px solid rgba(239, 193, 78, 0.92);
  border-radius: 28px;

  background:
    radial-gradient(
      circle at 50% -18%,
      rgba(255, 205, 83, 0.24),
      transparent 34%
    ),
    radial-gradient(
      circle at 8% 20%,
      rgba(177, 20, 35, 0.36),
      transparent 31%
    ),
    radial-gradient(
      circle at 92% 25%,
      rgba(28, 69, 135, 0.32),
      transparent 30%
    ),
    linear-gradient(
      145deg,
      #170408 0%,
      #31070e 46%,
      #120308 100%
    );

  box-shadow:
    0 26px 70px rgba(0, 0, 0, 0.46),
    inset 0 0 0 5px rgba(255, 255, 255, 0.025),
    inset 0 0 42px rgba(242, 184, 51, 0.08);
}

.baxter-midway::before,
.baxter-midway::after {
  content: "";
  position: absolute;
  pointer-events: none;
  z-index: -1;
}

.baxter-midway::before {
  inset: 10px;
  border-radius: 20px;

  background:
    radial-gradient(
      circle,
      #ffd96e 0 3px,
      transparent 4px
    )
    top left / 28px 12px repeat-x;

  opacity: 0.92;
  filter: drop-shadow(0 0 7px rgba(255, 198, 64, 0.75));
}

.baxter-midway::after {
  inset: 0;

  background:
    repeating-linear-gradient(
      115deg,
      transparent 0 78px,
      rgba(255, 255, 255, 0.022) 78px 80px
    );

  opacity: 0.7;
}

.baxter-midway-head {
  position: relative;
  max-width: 980px;
  margin: 0 auto clamp(30px, 4vw, 46px);
  text-align: center;
}

.baxter-midway-kicker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  margin: 0 0 12px;
  padding: 8px 18px;

  border: 1px solid rgba(245, 199, 88, 0.74);
  border-radius: 999px;

  background: rgba(8, 3, 4, 0.68);

  color: #f6cf6a;
  font-family: Montserrat, sans-serif;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.19em;
  text-transform: uppercase;
}

.baxter-midway-kicker::before,
.baxter-midway-kicker::after {
  content: "★";
  color: #e63b3b;
  font-size: 0.8em;
}

.baxter-midway-title {
  margin: 0;

  color: #fff8e5;

  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2.9rem, 7vw, 6.6rem);
  font-weight: 700;
  line-height: 0.88;
  letter-spacing: -0.035em;
  text-transform: uppercase;

  text-shadow:
    0 3px 0 #7f0e18,
    0 6px 0 rgba(0, 0, 0, 0.7),
    0 0 26px rgba(239, 185, 55, 0.2);
}

.baxter-midway-title span {
  display: block;

  color: #eebc43;

  font-size: 0.53em;
  letter-spacing: 0.075em;
}

.baxter-midway-subtitle {
  max-width: 720px;
  margin: 20px auto 0;

  color: rgba(255, 247, 229, 0.78);

  font-family: Montserrat, sans-serif;
  font-size: clamp(0.92rem, 1.5vw, 1.08rem);
  line-height: 1.7;
}

.baxter-midway-ticket {
  display: inline-block;

  margin-top: 20px;
  padding: 9px 16px;

  border-top: 1px dashed rgba(255, 225, 152, 0.48);
  border-bottom: 1px dashed rgba(255, 225, 152, 0.48);

  color: #fff0c8;

  font-family: Montserrat, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.baxter-midway-games {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(18px, 2.3vw, 30px);

  align-items: stretch;
}

.baxter-midway-game {
  position: relative;
  display: flex;
  flex-direction: column;

  min-width: 0;
  overflow: hidden;

  border: 1px solid rgba(238, 193, 83, 0.68);
  border-radius: 18px;

  background:
    linear-gradient(
      180deg,
      rgba(26, 8, 12, 0.98),
      rgba(7, 3, 5, 0.98)
    );

  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.42),
    inset 0 0 0 3px rgba(255, 255, 255, 0.025);

  transition:
    transform 220ms ease,
    border-color 220ms ease,
    box-shadow 220ms ease;
}

.baxter-midway-game:nth-child(1) {
  transform: rotate(-0.65deg);
}

.baxter-midway-game:nth-child(2) {
  transform: translateY(-7px);
}

.baxter-midway-game:nth-child(3) {
  transform: rotate(0.65deg);
}

.baxter-midway-game:hover {
  transform: translateY(-8px) rotate(0);
  border-color: rgba(255, 216, 111, 0.98);

  box-shadow:
    0 24px 58px rgba(0, 0, 0, 0.52),
    0 0 22px rgba(237, 182, 49, 0.12);
}

.baxter-midway-number {
  position: absolute;
  z-index: 4;
  top: 14px;
  left: 14px;

  display: grid;
  place-items: center;

  width: 40px;
  height: 40px;

  border: 1px solid #f0c258;
  border-radius: 50%;

  background: rgba(14, 4, 6, 0.9);

  color: #f6cf6d;

  font-family: Montserrat, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.08em;

  box-shadow: 0 0 16px rgba(239, 190, 68, 0.18);
}

.baxter-midway-image-frame {
  position: relative;
  overflow: hidden;

  margin: 10px 10px 0;

  border: 2px solid rgba(238, 188, 67, 0.72);
  border-radius: 12px;

  background: #070304;
}

.baxter-midway-image {
  display: block;
  width: 100%;
  height: auto;

  aspect-ratio: 4 / 5;
  object-fit: contain;

  background: #070304;
}

.baxter-midway-game-copy {
  display: flex;
  flex: 1;
  flex-direction: column;

  padding: 22px 22px 24px;
}

.baxter-midway-game-label {
  margin: 0 0 8px;

  color: #dc3a3a;

  font-family: Montserrat, sans-serif;
  font-size: 0.69rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.baxter-midway-game h3 {
  margin: 0;

  color: #fff8e8;

  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 2.4vw, 2.35rem);
  line-height: 1;
}

.baxter-midway-game p {
  margin: 13px 0 0;

  color: rgba(255, 247, 231, 0.7);

  font-family: Montserrat, sans-serif;
  font-size: 0.86rem;
  line-height: 1.62;
}

.baxter-midway-coming {
  display: grid;
  place-items: center;

  min-height: 100%;
  aspect-ratio: 4 / 5;
  padding: 30px;

  box-sizing: border-box;
  text-align: center;

  background:
    radial-gradient(
      circle at center,
      rgba(237, 187, 56, 0.16),
      transparent 40%
    ),
    repeating-linear-gradient(
      135deg,
      rgba(169, 21, 31, 0.17) 0 22px,
      rgba(10, 28, 60, 0.16) 22px 44px
    ),
    #090406;
}

.baxter-midway-coming-inner {
  width: min(100%, 300px);

  padding: clamp(24px, 4vw, 42px) 20px;

  border: 1px dashed rgba(246, 206, 105, 0.58);
  border-radius: 16px;
}

.baxter-midway-coming-star {
  display: block;

  margin-bottom: 16px;

  color: #efbf49;

  font-size: clamp(2.2rem, 5vw, 4rem);
  line-height: 1;

  text-shadow: 0 0 20px rgba(239, 191, 73, 0.35);
}

.baxter-midway-coming strong {
  display: block;

  color: #fff7df;

  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4vw, 3.5rem);
  line-height: 0.92;
  text-transform: uppercase;
}

.baxter-midway-coming small {
  display: block;

  margin-top: 16px;

  color: rgba(255, 239, 201, 0.66);

  font-family: Montserrat, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.6;
  text-transform: uppercase;
}

.baxter-midway-footer {
  display: flex;
  justify-content: center;

  margin-top: clamp(26px, 4vw, 42px);
}

.baxter-midway-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;

  padding: 13px 21px;

  border: 1px solid rgba(239, 192, 77, 0.72);
  border-radius: 999px;

  background: rgba(7, 3, 5, 0.62);

  color: #f5cf72;
  text-decoration: none;

  font-family: Montserrat, sans-serif;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;

  transition:
    background 180ms ease,
    color 180ms ease,
    transform 180ms ease;
}

.baxter-midway-link:hover {
  transform: translateY(-2px);
  background: #edbd4a;
  color: #150508;
}

@media (max-width: 980px) {
  .baxter-midway {
    padding:
      clamp(28px, 7vw, 44px)
      clamp(16px, 5vw, 30px);
  }

  .baxter-midway-games {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin-inline: auto;
  }

  .baxter-midway-game:nth-child(1),
  .baxter-midway-game:nth-child(2),
  .baxter-midway-game:nth-child(3) {
    transform: none;
  }

  .baxter-midway-game:hover {
    transform: translateY(-4px);
  }

  .baxter-midway-image {
    aspect-ratio: auto;
    max-height: none;
  }
}

@media (max-width: 560px) {
  .baxter-midway {
    border-radius: 20px;
  }

  .baxter-midway-title {
    font-size: clamp(2.6rem, 14vw, 4.2rem);
  }

  .baxter-midway-kicker {
    padding-inline: 12px;
    font-size: 0.64rem;
    letter-spacing: 0.12em;
  }

  .baxter-midway-game-copy {
    padding: 19px 18px 21px;
  }

  .baxter-midway-number {
    width: 36px;
    height: 36px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .baxter-midway-game,
  .baxter-midway-link {
    transition: none;
  }
}
