@font-face {
  font-family: "BN Route 22";
  src: url("Public/BNRoute22-web.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --wing-red: #ed1c24;
  --wing-yellow: #fff200;
  --wing-orange: #f7941d;
  --wing-black: #231f20;
  --wing-white: #ffffff;
  --shadow: rgba(35, 31, 32, 0.22);
  --content-width: 940px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  position: relative;
  min-height: 100svh;
  margin: 0;
  color: var(--wing-black);
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
  background:
    radial-gradient(
      circle at 50% 58%,
      rgba(255, 255, 255, 0.22),
      rgba(255, 242, 0, 0.12) 22%,
      transparent 48%
    ),
    linear-gradient(135deg, rgba(255, 242, 0, 0.92), rgba(247, 148, 29, 0.9)),
    var(--wing-yellow);
}

/* Subtle brand watermark. Lower opacity or swap the logo URL if needed. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url("Public/Logos/WSWideW.png");
  background-repeat: no-repeat;
  background-position: center 58%;
  background-size: min(82vw, 980px) auto;
  mix-blend-mode: soft-light;
  opacity: 0.08;
}

body.modal-open {
  overflow: hidden;
}

button,
a {
  font: inherit;
  touch-action: manipulation;
}

.page-shell {
  position: relative;
  z-index: 1;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  padding: 0 clamp(10px, 2vw, 20px);
}

.site-footer {
  flex: 0 0 auto;
  text-align: center;
}

.main-content {
  flex: 0 0 auto;
  display: grid;
  place-items: stretch center;
  min-height: 100svh;
  padding: 0;
}

.hero {
  position: relative;
  width: min(100%, var(--content-width));
  min-height: 100svh;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: clamp(2px, 0.55vh, 6px);
  justify-items: center;
  align-content: start;
  text-align: center;
  /* Top breathing room for the headline. */
  padding-top: clamp(18px, 3vh, 42px);
}

.hero::before {
  content: "";
  position: absolute;
  top: 58%;
  left: 50%;
  width: min(92vw, 940px);
  height: min(72vh, 640px);
  pointer-events: none;
  background: radial-gradient(
    circle,
    rgba(237, 28, 36, 0.12),
    rgba(255, 242, 0, 0.08) 36%,
    transparent 70%
  );
  filter: blur(12px);
  transform: translate(-50%, -50%);
}

.hero > * {
  position: relative;
  z-index: 1;
}

h1,
h2,
p {
  margin: 0;
}

.headline {
  color: var(--wing-black);
  display: flex;
  flex-wrap: wrap;
  gap: 0.13em;
  justify-content: center;
  align-items: baseline;
  font-family: "BN Route 22", Impact, sans-serif;
  font-size: clamp(3.4rem, 9.6vh, 7rem);
  line-height: 0.76;
  text-transform: uppercase;
}

.headline-word {
  display: inline-block;
}

.rules {
  max-width: min(100%, 440px);
  padding: clamp(4px, 0.65vh, 7px) 10px;
  color: var(--wing-white);
  background: var(--wing-black);
  border: 3px solid var(--wing-red);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--shadow);
}

.rules h2 {
  margin-bottom: 1px;
  color: var(--wing-yellow);
  font-family: "BN Route 22", Impact, sans-serif;
  font-size: clamp(0.92rem, 2vh, 1.18rem);
  line-height: 1;
  text-transform: uppercase;
}

.rules-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: clamp(0.7rem, 1.32vh, 0.8rem);
  font-weight: 800;
  line-height: 1.18;
}

.rules-list strong {
  color: var(--wing-yellow);
}

.slot-machine {
  position: relative;
  align-self: end;
  width: min(100%, 890px);
  /* Slot machine scale: adjust this height clamp to tune cabinet proportions. */
  height: clamp(500px, 78vh, 900px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: clamp(10px, 1.8vh, 22px);
  padding: clamp(14px, 2.4vh, 34px) clamp(16px, 4vw, 44px);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), transparent 38%),
    var(--wing-black);
  border: clamp(8px, 1.4vw, 14px) solid var(--wing-red);
  border-radius: 28px;
  box-shadow:
    0 0 0 6px rgba(35, 31, 32, 0.72),
    0 20px 48px rgba(35, 31, 32, 0.34),
    0 0 36px rgba(237, 28, 36, 0.38);
}

.slot-machine::before {
  content: "";
  position: absolute;
  inset: 12px;
  pointer-events: none;
  border: 2px solid rgba(255, 242, 0, 0.35);
  border-radius: 18px;
}

.reel-window {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(12px, 2.2vh, 24px);
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  padding: clamp(10px, 2.2vh, 24px);
  background:
    linear-gradient(180deg, #111111, #050505),
    var(--wing-black);
  border: clamp(5px, 1vw, 9px) solid var(--wing-orange);
  border-radius: 18px;
  box-shadow:
    inset 0 8px 18px rgba(0, 0, 0, 0.8),
    inset 0 -5px 0 rgba(255, 255, 255, 0.06),
    0 8px 0 rgba(237, 28, 36, 0.8);
}

.machine-logo-display {
  width: min(68%, 430px);
  min-height: clamp(44px, 8vh, 78px);
  display: grid;
  place-items: center;
  justify-self: center;
  padding: clamp(6px, 1.2vh, 12px) clamp(16px, 3vw, 28px);
  background: rgba(5, 5, 5, 0.52);
  border: 2px solid rgba(255, 255, 255, 0.74);
  box-shadow:
    inset 0 0 16px rgba(255, 255, 255, 0.06),
    0 8px 18px rgba(0, 0, 0, 0.22);
}

.machine-logo {
  /* Top marquee logo size: tune width/max-height here. */
  display: block;
  width: min(100%, 350px);
  max-height: clamp(30px, 5.8vh, 58px);
  height: auto;
  object-fit: contain;
}

.reels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: clamp(10px, 2vw, 20px);
  min-width: 0;
}

.reel {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  min-width: 0;
  color: var(--wing-black);
  font-size: clamp(3.9rem, 11vw, 8.8rem);
  background:
    radial-gradient(circle at 50% 28%, var(--wing-white), #f0f0f0 68%),
    var(--wing-white);
  border: clamp(5px, 1vw, 9px) solid #050505;
  border-radius: 16px;
  box-shadow:
    inset 0 10px 18px rgba(0, 0, 0, 0.22),
    inset 0 -10px 16px rgba(35, 31, 32, 0.18);
  will-change: transform, filter;
}

.control-panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: clamp(8px, 1.4vh, 14px);
  padding: clamp(12px, 2.2vh, 22px);
  background: linear-gradient(180deg, var(--wing-red), #a90e15);
  border: 5px solid #050505;
  border-radius: 18px;
  box-shadow:
    inset 0 5px 0 rgba(255, 255, 255, 0.18),
    inset 0 -8px 0 rgba(35, 31, 32, 0.28);
}

.spin-button {
  min-height: clamp(58px, 7.4vh, 82px);
  width: min(100%, 400px);
  padding: 0 28px;
  color: var(--wing-black);
  font-weight: 900;
  font-size: clamp(1.15rem, 2.7vw, 1.95rem);
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--wing-yellow), #f7b51f);
  border: 5px solid var(--wing-black);
  border-radius: 999px;
  box-shadow:
    0 10px 0 #7e090d,
    0 16px 22px rgba(0, 0, 0, 0.34),
    inset 0 5px 0 rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.spin-button:hover {
  filter: brightness(1.04);
  transform: translateY(-3px);
  box-shadow:
    0 13px 0 #7e090d,
    0 20px 26px rgba(0, 0, 0, 0.38),
    inset 0 5px 0 rgba(255, 255, 255, 0.5);
}

.spin-button:active {
  transform: translateY(7px);
  box-shadow:
    0 3px 0 #7e090d,
    0 8px 14px rgba(0, 0, 0, 0.32),
    inset 0 4px 0 rgba(255, 255, 255, 0.35);
}

.spin-button:disabled {
  cursor: not-allowed;
  filter: grayscale(0.5) brightness(0.86);
  transform: none;
  box-shadow:
    0 4px 0 #7e090d,
    0 8px 14px rgba(0, 0, 0, 0.24),
    inset 0 4px 0 rgba(255, 255, 255, 0.28);
}

.result-message {
  min-height: 2.55em;
  width: min(100%, 560px);
  color: var(--wing-white);
  font-weight: 900;
  font-size: clamp(0.92rem, 1.8vw, 1.18rem);
  line-height: 1.35;
  text-align: center;
}

.result-message.is-whammy {
  color: var(--wing-white);
}

.reel.is-spinning {
  animation: reel-spin-jitter 90ms linear infinite;
  filter: blur(1.5px) saturate(1.25);
}

.reel.is-stopping {
  animation: reel-snap 260ms cubic-bezier(0.18, 0.9, 0.22, 1.35);
}

@keyframes reel-spin-jitter {
  0%,
  100% {
    transform: translateY(-5px) scaleY(1.04);
  }

  50% {
    transform: translateY(6px) scaleY(0.96);
  }
}

@keyframes reel-snap {
  0% {
    transform: translateY(-12px) scale(0.96);
    filter: blur(1px);
  }

  62% {
    transform: translateY(5px) scale(1.05);
    filter: blur(0);
  }

  100% {
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

.machine-handle {
  position: absolute;
  top: 20%;
  right: clamp(-52px, -5vw, -34px);
  width: clamp(46px, 6vw, 68px);
  height: clamp(190px, 30vh, 290px);
  display: grid;
  justify-items: center;
  pointer-events: none;
  transform-origin: top center;
}

.machine-handle.is-pulling {
  animation: handle-pull 680ms cubic-bezier(0.2, 0.72, 0.25, 1);
}

.handle-bar {
  width: clamp(13px, 1.4vw, 18px);
  height: 100%;
  background: linear-gradient(90deg, #7b7b7b, var(--wing-white), #4d4d4d);
  border: 4px solid var(--wing-black);
  border-radius: 999px;
  box-shadow: 8px 0 12px rgba(0, 0, 0, 0.3);
}

.handle-knob {
  position: absolute;
  top: -14px;
  width: clamp(46px, 6vw, 68px);
  aspect-ratio: 1;
  background:
    radial-gradient(circle at 35% 28%, #ff777b, var(--wing-red) 58%, #8c090f);
  border: 5px solid var(--wing-black);
  border-radius: 50%;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.32),
    inset 0 5px 0 rgba(255, 255, 255, 0.28);
}

@keyframes handle-pull {
  0%,
  100% {
    transform: rotate(0deg);
  }

  45% {
    transform: rotate(18deg) translateY(24px);
  }
}

.spin-button:focus-visible,
.site-footer a:focus-visible,
.modal-close-button:focus-visible,
.copy-code-button:focus-visible,
.order-now-button:focus-visible {
  outline: 4px solid var(--wing-white);
  outline-offset: 4px;
}

.site-footer a {
  color: var(--wing-black);
  font-size: clamp(0.76rem, 1.6vh, 0.9rem);
  font-weight: 800;
  text-decoration-color: var(--wing-red);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

.winner-modal[hidden] {
  display: none;
}

.winner-modal {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: 20px;
  background: rgba(35, 31, 32, 0.76);
}

.winner-card {
  position: relative;
  z-index: 2;
  width: min(100%, 520px);
  max-height: calc(100svh - 40px);
  overflow-y: auto;
  padding: clamp(24px, 5vw, 42px);
  color: var(--wing-white);
  text-align: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.1), transparent 40%),
    var(--wing-black);
  border: 6px solid var(--wing-red);
  border-radius: 18px;
  box-shadow:
    0 24px 70px rgba(0, 0, 0, 0.42),
    0 0 38px rgba(255, 242, 0, 0.24);
}

.modal-close-button {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  color: var(--wing-white);
  font-weight: 900;
  background: #050505;
  border: 3px solid var(--wing-red);
  border-radius: 50%;
  cursor: pointer;
}

.winner-kicker {
  color: var(--wing-yellow);
  font-weight: 900;
  text-transform: uppercase;
}

.winner-title {
  margin-top: 8px;
  color: var(--wing-yellow);
  font-family: "BN Route 22", Impact, sans-serif;
  font-size: clamp(3rem, 10vw, 5rem);
  line-height: 0.9;
  text-transform: uppercase;
}

.winner-instructions {
  margin-top: 16px;
  font-weight: 800;
}

.promo-code {
  margin: 14px auto 0;
  width: min(100%, 280px);
  padding: 12px 16px;
  color: var(--wing-black);
  font-size: clamp(2rem, 8vw, 3.6rem);
  font-weight: 900;
  letter-spacing: 0.08em;
  background: var(--wing-yellow);
  border: 5px solid var(--wing-red);
  border-radius: 10px;
}

.winner-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.copy-code-button,
.order-now-button {
  min-height: 54px;
  display: grid;
  place-items: center;
  padding: 0 16px;
  color: var(--wing-black);
  font-weight: 900;
  text-decoration: none;
  background: linear-gradient(180deg, var(--wing-yellow), #f7b51f);
  border: 4px solid #050505;
  border-radius: 999px;
  box-shadow: 0 6px 0 #7e090d;
  cursor: pointer;
}

.copy-code-button:active,
.order-now-button:active {
  transform: translateY(4px);
  box-shadow: 0 2px 0 #7e090d;
}

.confetti-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -18px;
  width: 10px;
  height: 16px;
  opacity: 0;
  animation: confetti-fall 1500ms ease-out forwards;
}

@keyframes confetti-fall {
  0% {
    opacity: 1;
    transform: translate3d(0, -10px, 0) rotate(0deg);
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--confetti-drift), 105vh, 0)
      rotate(var(--confetti-rotation));
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 0 10px;
  }

  .main-content {
    padding: 0;
  }

  .hero {
    gap: 4px;
    padding-top: clamp(12px, 2.4vh, 24px);
  }

  .headline {
    font-size: clamp(3.1rem, 16vw, 5.2rem);
  }

  .rules {
    max-width: 100%;
    padding: 8px 10px;
  }

  .rules h2 {
    font-size: 1.2rem;
  }

  .rules-list {
    gap: 2px 8px;
    font-size: 0.76rem;
  }

  .slot-machine {
    width: min(100%, 430px);
    height: clamp(420px, 68vh, 650px);
    padding: 14px 12px 12px;
    border-radius: 22px;
  }

  .reels {
    gap: 8px;
  }

  .reel-window {
    padding: 10px;
    gap: 10px;
  }

  .machine-logo-display {
    width: min(80%, 300px);
    min-height: 40px;
    padding: 5px 12px;
  }

  .machine-logo {
    width: min(100%, 250px);
    max-height: 34px;
  }

  .reel {
    border-width: 4px;
    border-radius: 12px;
    font-size: clamp(3rem, 19vw, 5.2rem);
  }

  .spin-button {
    width: min(100%, 300px);
    min-height: 62px;
  }

  .result-message {
    min-height: 3.7em;
    font-size: 0.92rem;
  }

  .machine-handle {
    top: 26%;
    right: -26px;
    width: 38px;
    height: 150px;
  }

  .handle-bar {
    width: 12px;
    border-width: 3px;
  }

  .handle-knob {
    width: 42px;
    border-width: 4px;
  }

  .winner-modal {
    padding: 14px;
  }

  .winner-card {
    max-height: calc(100svh - 28px);
    padding: 24px 16px;
  }

  .winner-actions {
    grid-template-columns: 1fr;
  }
}
