:root {
  color-scheme: dark;
  font-family: "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
  background: #0d0a07;
  color: #fff4cf;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  overflow: hidden;
  overscroll-behavior: none;
}

body {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 10%, rgba(59, 134, 255, 0.22), transparent 37%),
    radial-gradient(circle at 20% 80%, rgba(214, 89, 24, 0.16), transparent 34%),
    #0b0d10;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

#gameShell {
  position: relative;
  width: min(100vw, calc(100vh * 1672 / 941));
  max-height: 100vh;
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  background: #17110c;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.72);
  isolation: isolate;
}

#gameCanvas {
  position: absolute;
  z-index: 1;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

#gameShell.doorsActive #gameCanvas {
  z-index: 7;
}

.mediaDecoder {
  position: absolute;
  z-index: -1;
  left: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.rockFeatureCanvas {
  position: absolute;
  z-index: 8;
  right: 6.5%;
  bottom: 14%;
  width: 29%;
  aspect-ratio: 1;
  pointer-events: none;
  opacity: 0;
  filter:
    drop-shadow(0 12px 10px rgba(0, 0, 0, 0.72))
    drop-shadow(0 0 20px rgba(255, 195, 33, 0.34));
  transform: none;
  transition: opacity 180ms ease-out, filter 180ms ease-out;
}

.rockFeatureCanvas.active {
  opacity: 1;
}

.rockFeatureCanvas.leaving {
  opacity: 0;
  transform: none;
  transition-duration: 520ms;
  transition-timing-function: ease-in;
}

.srOnly {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* Loader and intro */

.preloader,
.presentationOverlay {
  position: absolute;
  z-index: 30;
  inset: 0;
}

.preloader {
  display: grid;
  grid-template-columns: minmax(0, 680px);
  place-content: center;
  justify-items: center;
  padding: 8%;
  text-align: center;
  background:
    linear-gradient(rgba(4, 9, 16, 0.5), rgba(20, 10, 2, 0.82)),
    url("../assets/chicken/background.png") center / cover;
  transition: opacity 450ms ease, visibility 0s linear 450ms;
}

.preloader::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 52%, transparent 0 20%, rgba(0, 0, 0, 0.78) 72%);
  pointer-events: none;
}

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

.preloader.done {
  visibility: hidden;
  opacity: 0;
}

.loaderEmblem {
  display: grid;
  width: clamp(74px, 8vw, 126px);
  aspect-ratio: 1;
  place-items: center;
  border: clamp(3px, 0.35vw, 6px) solid #f8bf28;
  border-radius: 50%;
  color: #fff2b2;
  background: radial-gradient(circle, #b72518, #5e0c08 68%);
  box-shadow:
    inset 0 0 0 6px rgba(30, 12, 4, 0.65),
    0 0 34px rgba(255, 181, 31, 0.55);
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(30px, 4vw, 62px);
  letter-spacing: 0.04em;
  transform: rotate(-4deg);
}

.preloader h1 {
  margin: 0.13em 0 0;
  color: #ffd334;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(46px, 7vw, 108px);
  font-weight: 900;
  letter-spacing: 0.025em;
  line-height: 0.95;
  text-transform: uppercase;
  -webkit-text-stroke: clamp(1px, 0.15vw, 3px) #4d1706;
  text-shadow: 0 7px 0 #761108, 0 12px 24px #000;
}

.preloader p {
  margin: 18px 0 12px;
  color: #fff3c3;
  font-size: clamp(13px, 1.35vw, 21px);
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.preloaderTrack {
  width: min(560px, 70vw);
  height: clamp(14px, 1.7vw, 24px);
  overflow: hidden;
  border: 2px solid #d9911b;
  border-radius: 999px;
  background: #120d09;
  box-shadow: inset 0 3px 10px #000, 0 0 22px rgba(255, 178, 20, 0.28);
}

#preloaderBar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #e42d1c, #ffb51d 55%, #fff07a);
  box-shadow: 0 0 16px #ffba22;
  transition: width 180ms ease-out;
}

#preloaderPercent {
  margin-top: 10px;
  color: #ffe98b;
  font-size: clamp(17px, 1.8vw, 28px);
  font-variant-numeric: tabular-nums;
}

.presentationFallback > span {
  color: #ffc936;
  font-size: clamp(11px, 1.15vw, 17px);
  font-weight: 950;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.presentationOverlay button,
.popover button,
.testMenuPanel button,
.dialogFrame button {
  border: 1px solid rgba(255, 224, 139, 0.5);
  color: #fff6d4;
  background: linear-gradient(#c94b20, #7d160d);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.2), 0 3px 8px rgba(0, 0, 0, 0.42);
  cursor: pointer;
}

/* Native-art HUD and hit zones */

.hud,
.controls {
  position: absolute;
  z-index: 4;
  inset: 0;
  pointer-events: none;
}

.meter {
  position: absolute;
  display: grid;
  place-items: center;
  height: 7.5%;
  pointer-events: none;
}

.meter span {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.meter strong {
  color: #fff0a5;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(13px, 1.8vw, 31px);
  font-weight: 900;
  letter-spacing: 0.045em;
  line-height: 1;
  text-shadow: 0 3px 2px #000, 0 0 8px rgba(255, 193, 47, 0.35);
  font-variant-numeric: tabular-nums;
}

.balanceMeter {
  left: 11.9%;
  top: 88.3%;
  width: 13.8%;
}

#gameShell.bonusScene .balanceMeter {
  left: 12.15%;
}

.betMeter {
  left: 30.7%;
  top: 88.3%;
  width: 7.4%;
}

.winMeter {
  left: 70.1%;
  top: 88.3%;
  width: 15.6%;
}

.phaseBadge {
  display: none !important;
  position: absolute;
  top: 1.8%;
  left: 1.5%;
  max-width: 23%;
  padding: 0.55em 0.9em;
  border: 1px solid rgba(255, 213, 106, 0.68);
  border-radius: 999px;
  color: #ffe697;
  background: rgba(29, 17, 8, 0.78);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
  font-size: clamp(8px, 0.9vw, 14px);
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* Illustrated payline selectors: two 15-row rails sit directly beside the
   reel window. Each marker selects one cell from the 6 x 15 state atlas. */
.paylineBadges {
  position: absolute;
  z-index: 5;
  inset: 0;
  pointer-events: none;
}

.paylineRail {
  position: absolute;
  top: 19.55%;
  width: 3.23%;
  height: 57.39%;
  display: grid;
  grid-template-rows: repeat(15, minmax(0, 1fr));
  pointer-events: none;
}

.paylineRail.left {
  left: 16.51%;
}

.paylineRail.right {
  left: 80.44%;
}

#gameShell.bonusScene .paylineRail {
  top: 19.77%;
}

#gameShell.bonusScene .paylineRail.left {
  left: 17.4%;
}

#gameShell.bonusScene .paylineRail.right {
  left: 78.53%;
}

.paylineMarker {
  width: 100%;
  min-width: 0;
  height: 100%;
  min-height: 0;
  margin: 0;
  padding: 0;
  appearance: none;
  border: 0;
  border-radius: 0;
  outline: 0;
  color: transparent;
  background-color: transparent;
  /* The visible atlas cells are painted on the game canvas so the animated
     doors can naturally pass over them. These buttons remain as hit targets. */
  background-image: none;
  background-repeat: no-repeat;
  background-size: 600% 1500%;
  background-position-x: 0%;
  background-position-y: var(--badge-y, 0%);
  font-size: 0;
  cursor: pointer;
  pointer-events: auto;
}

.paylineMarker[data-side="right"] {
  background-position-x: 60%;
}

.paylineMarker[data-side="left"]:hover,
.paylineMarker[data-side="left"]:focus-visible,
.paylineMarker[data-side="left"].preview {
  background-position-x: 20%;
}

.paylineMarker[data-side="right"]:hover,
.paylineMarker[data-side="right"]:focus-visible,
.paylineMarker[data-side="right"].preview {
  background-position-x: 80%;
}

.paylineMarker[data-side="left"].has-win,
.paylineMarker[data-side="left"].current-win {
  background-position-x: 40%;
}

.paylineMarker[data-side="right"].has-win,
.paylineMarker[data-side="right"].current-win {
  background-position-x: 100%;
}

.paylineMarker:disabled {
  opacity: 1;
}

.paylineMarker.current-win {
  animation: paylineMarkerWin 720ms ease-in-out infinite alternate;
}

.paylineBadges.locked .paylineMarker {
  cursor: default;
  pointer-events: none;
}

@keyframes paylineMarkerWin {
  from {
    filter: brightness(1);
  }

  to {
    filter: brightness(1.28);
  }
}

.artHit {
  position: absolute;
  border: 0;
  border-radius: 50%;
  outline: 0;
  background: transparent;
  overflow: visible;
  pointer-events: auto;
  cursor: pointer;
}

.artHit::before {
  content: "";
  position: absolute;
  left: var(--state-left, 0);
  top: var(--state-top, 0);
  width: var(--state-width, 100%);
  height: var(--state-height, 100%);
  opacity: 0;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  pointer-events: none;
  transition: opacity 70ms ease;
}

.artHit:hover::before,
.artHit:focus-visible::before {
  opacity: 1;
}

.artHit:active::before {
  opacity: 1;
}

.artHit:disabled {
  cursor: default;
}

.artHit:disabled::before {
  display: none;
}

.menuButton {
  left: 2.27%;
  top: 81.83%;
  width: 9.45%;
  height: 16.79%;
  --state-left: 25.3%;
  --state-top: 23.1%;
  --state-width: 47.5%;
  --state-height: 47.5%;
}

.menuButton::before {
  background-image: url("../assets/chicken/ui/controls/menu-over.png?v=6");
}

.menuButton:active::before {
  background-image: url("../assets/chicken/ui/controls/menu-press.png?v=6");
}

.betDownButton,
.betUpButton {
  top: 87.78%;
  width: 4.8%;
  height: 8.15%;
  --state-top: -17%;
  --state-width: 87.3%;
  --state-height: 91.3%;
}

.betDownButton {
  left: 26.2%;
  --state-left: -0.0797%;
  --state-top: -26.0913%;
  --state-width: 98.435%;
  --state-height: 110.8337%;
}

.betDownButton::before {
  background-image: url("../assets/chicken/ui/controls/bet-down-over-alpha.png?v=7");
  transition: none;
}

.betDownButton:active::before {
  background-image: url("../assets/chicken/ui/controls/bet-down-press-alpha.png?v=7");
}

.betUpButton {
  left: 38.2%;
  --state-left: 2.8608%;
  --state-top: -16.9638%;
  --state-width: 87.2209%;
  --state-height: 91.2748%;
}

.betUpButton::before {
  background-image: url("../assets/chicken/ui/controls/bet-up-over-alpha.png?v=7");
  transition: none;
}

.betUpButton:active::before {
  background-image: url("../assets/chicken/ui/controls/bet-up-press-alpha.png?v=7");
}

.spinButton {
  left: 42.82%;
  top: 74.28%;
  width: 14.36%;
  height: 25.5%;
  --state-left: 9.184%;
  --state-top: 9.596%;
  --state-width: 79.55%;
  --state-height: 79.598%;
}

.spinButton::before {
  background-image: url("../assets/chicken/ui/controls/spin-over.png?v=6");
  transition: none;
}

.spinButton:active::before {
  background-image: url("../assets/chicken/ui/controls/spin-press.png?v=6");
}

#gameShell.bonusScene .spinButton {
  --state-left: 6.95%;
  --state-top: 7.8%;
}

.spinButton.spinning::before {
  opacity: 1;
  background-image: url("../assets/chicken/ui/controls/stop-over.png?v=6");
  transform: translateY(1px);
}

.spinButton.spinning {
  --state-left: 12.099%;
  --state-top: 12.51%;
  --state-width: 73.72%;
  --state-height: 77.098%;
}

#gameShell.bonusScene .spinButton.spinning {
  --state-left: 9.87%;
  --state-top: 10.72%;
}

.spinButton.spinning:hover::before,
.spinButton.spinning:focus-visible::before {
  background-image: url("../assets/chicken/ui/controls/stop-over.png?v=6");
}

.spinButton.spinning:active::before {
  background-image: url("../assets/chicken/ui/controls/stop-press.png?v=6");
}

.spinButton.autoplayRunning::after {
  content: attr(data-autoplay-count);
  position: absolute;
  z-index: 3;
  left: calc(50.2% - 2px);
  top: calc(52.4% - 7px);
  width: 36%;
  transform: translate(-50%, -50%);
  color: #151c20;
  font-family: Arial, Helvetica, sans-serif;
  font-size: clamp(22px, 2.85vw, 44px);
  font-weight: 900;
  line-height: 1;
  text-align: center;
  text-shadow:
    0 1px 0 rgba(255, 249, 205, 0.92),
    0 0 6px rgba(255, 239, 160, 0.82),
    0 3px 6px rgba(255, 210, 92, 0.5);
  pointer-events: none;
}

.spinButton.autoplayLargeCount::after {
  width: 42%;
  font-size: clamp(18px, 2.3vw, 36px);
}

.maxBetButton {
  left: 59.45%;
  top: 81.93%;
  width: 10.45%;
  height: 16.37%;
  border-radius: 18%;
  --state-left: 5.1487%;
  --state-top: 3.271%;
  --state-width: 93.8623%;
  --state-height: 90.2353%;
}

.maxBetButton::before {
  background-image: url("../assets/chicken/ui/controls/max-bet-over-alpha.png?v=7");
  transition: none;
}

.maxBetButton:active::before {
  background-image: url("../assets/chicken/ui/controls/max-bet-press-alpha.png?v=7");
}

.autoButton {
  left: 86.6%;
  top: 81%;
  width: 10.55%;
  height: 18.1%;
  --state-left: 17.6%;
  --state-top: 16.32%;
  --state-width: 62.36%;
  --state-height: 64.58%;
}

.autoButton::before {
  border-radius: 50%;
  background-image: url("../assets/chicken/ui/controls/autoplay-face-over.png?v=11");
}

.autoButton:active::before {
  background-image: url("../assets/chicken/ui/controls/autoplay-face-press.png?v=11");
}

.autoButton.active::before,
.autoButton.active:hover::before,
.autoButton.active:focus-visible::before {
  opacity: 1;
  background-image: url("../assets/chicken/ui/controls/autoplay-face-active.png?v=11");
}

.autoButton.active:active::before {
  background-image: url("../assets/chicken/ui/controls/autoplay-face-press.png?v=11");
}

.messageBar {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 16.4%;
  max-width: 52%;
  padding: 0.42em 1.15em;
  transform: translateX(-50%);
  overflow: hidden;
  border: 1px solid rgba(255, 213, 96, 0.5);
  border-radius: 999px;
  color: #ffeaa8;
  background: rgba(13, 13, 14, 0.75);
  box-shadow: 0 3px 16px rgba(0, 0, 0, 0.46);
  font-size: clamp(8px, 0.88vw, 14px);
  font-weight: 900;
  letter-spacing: 0.035em;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
  pointer-events: none;
}

/* Menus */

.popover {
  position: absolute;
  z-index: 15;
  aspect-ratio: 1086 / 1448;
  padding: 0;
  border: 0;
  background: transparent;
  filter: drop-shadow(0 15px 18px rgba(0, 0, 0, 0.72));
  opacity: 0;
  pointer-events: none;
  transform: translateY(118%) scale(0.94);
  transform-origin: 50% 100%;
  transition:
    transform 340ms cubic-bezier(0.18, 0.84, 0.26, 1),
    opacity 150ms ease;
}

.popover.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.popover button {
  border: 1px solid rgba(255, 209, 91, 0.62);
  border-radius: 9px;
  color: #fff2bd;
  background:
    linear-gradient(180deg, rgba(64, 81, 87, 0.84), rgba(18, 25, 29, 0.94)),
    #172025;
  box-shadow:
    inset 0 1px rgba(255, 255, 255, 0.18),
    inset 0 -2px rgba(0, 0, 0, 0.42),
    0 3px 6px rgba(0, 0, 0, 0.36);
  font-weight: 900;
  cursor: pointer;
  transition: filter 110ms ease, transform 110ms ease, border-color 110ms ease;
}

.popover button:hover,
.popover button:focus-visible,
.testMenuPanel button:hover,
.dialogFrame button:hover {
  filter: brightness(1.18) saturate(1.08);
}

.popover button:hover,
.popover button:focus-visible {
  border-color: #ffe58a;
  transform: translateX(-2px);
}

.popover button:active {
  filter: brightness(0.88);
  transform: translateY(1px) scale(0.985);
}

.popoverHeading {
  position: absolute;
  top: 16.5%;
  right: 14%;
  left: 14%;
  display: grid;
  place-content: center;
  height: 14%;
  margin: 0;
  text-align: center;
  text-transform: uppercase;
}

.popoverHeading span {
  color: #f5b72f;
  font-size: clamp(7px, 0.68vw, 11px);
  font-weight: 950;
  letter-spacing: 0.16em;
  line-height: 1;
}

.popoverHeading strong {
  margin-top: 0.18em;
  color: #fff0b4;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(15px, 1.55vw, 25px);
  letter-spacing: 0.045em;
  line-height: 1;
  text-shadow: 0 2px 0 #70180b, 0 3px 6px #000;
}

.autoSpinChoice {
  right: 0.45%;
  bottom: 15.2%;
  width: 18.8%;
  text-align: center;
}

.autoSpinOptions {
  position: absolute;
  top: 32%;
  right: 15%;
  bottom: 15%;
  left: 15%;
  display: grid;
  grid-template-rows: repeat(4, minmax(0, 1fr));
  gap: 3.2%;
}

.autoSpinOptions button {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-width: 0;
  padding: 0.18em 14%;
  text-align: left;
}

.autoSpinOptions button strong {
  color: #fff0ae;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(17px, 1.8vw, 29px);
  letter-spacing: 0.04em;
  line-height: 1;
  text-shadow: 0 2px 0 #64160b;
}

.autoSpinOptions button small {
  color: #e7c88f;
  font-size: clamp(7px, 0.64vw, 10px);
  font-weight: 950;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.gameMenuPanel {
  left: 0.4%;
  bottom: 15.2%;
  width: 18.8%;
}

.menuOptions {
  position: absolute;
  top: 32%;
  right: 15%;
  bottom: 15%;
  left: 15%;
  display: grid;
  grid-template-rows: repeat(3, minmax(0, 1fr));
  gap: 4.2%;
}

.menuOptions button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 7%;
  min-width: 0;
  padding: 0.3em 8%;
  text-align: left;
}

.menuIcon {
  display: grid;
  width: clamp(20px, 2.15vw, 34px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 211, 93, 0.54);
  border-radius: 50%;
  color: #ffd75a;
  background: radial-gradient(circle, #365b68, #142128 72%);
  font-size: clamp(11px, 1.12vw, 18px);
  text-align: center;
}

.menuCopy {
  display: grid;
  min-width: 0;
}

.menuCopy strong {
  overflow: hidden;
  color: #fff0b8;
  font-size: clamp(9px, 0.92vw, 15px);
  letter-spacing: 0.035em;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menuCopy small {
  overflow: hidden;
  margin-top: 0.15em;
  color: #c9aa78;
  font-size: clamp(6px, 0.55vw, 9px);
  font-weight: 800;
  letter-spacing: 0.02em;
  line-height: 1.08;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.menuOptions button > i:not(.menuSwitch) {
  color: #f6bf42;
  font-size: clamp(16px, 1.5vw, 24px);
  font-style: normal;
}

.menuSwitch {
  position: relative;
  width: clamp(25px, 2.25vw, 36px);
  height: clamp(13px, 1.15vw, 19px);
  border: 1px solid #856634;
  border-radius: 999px;
  background: #211713;
  box-shadow: inset 0 2px 4px #000;
}

.menuSwitch::after {
  content: "";
  position: absolute;
  top: 12%;
  left: 7%;
  height: 76%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(#f7c548, #a95d13);
  box-shadow: 0 1px 3px #000;
  transition: left 140ms ease;
}

.menuOptions button[aria-pressed="true"] .menuSwitch {
  border-color: #d8b34a;
  background: #285f23;
  box-shadow: inset 0 0 7px rgba(124, 255, 91, 0.32), 0 0 7px rgba(104, 234, 74, 0.2);
}

.menuOptions button[aria-pressed="true"] .menuSwitch::after {
  left: 54%;
  background: linear-gradient(#fff2a6, #d8a82a);
}

/* Purpose-built Chicken War panels. The permanent frame, bays and switches
   are painted into one raster atlas; HTML remains only as accessible hit
   targets and live labels. */
.popover {
  width: 25%;
  aspect-ratio: 836 / 941;
  background-image: url("../assets/chicken/ui/popup-panels-atlas-clean.png?v=78");
  background-size: 200% 100%;
  background-repeat: no-repeat;
  filter: drop-shadow(0 18px 18px rgba(0, 0, 0, 0.78));
  transform: translateY(112%) scale(0.96);
}

.popover.open {
  transform: translateY(0) scale(1);
}

.autoSpinChoice {
  right: -1.05%;
  bottom: 12.05%;
  width: 25%;
  background-position: left top;
}

.gameMenuPanel {
  left: -1.05%;
  bottom: 12.05%;
  width: 25%;
  background-position: right top;
}

.popoverHeading {
  display: none;
}

.popover button {
  border: 0;
  border-radius: 7px;
  outline: 0;
  color: #fff0b6;
  background: transparent;
  box-shadow: none;
  text-shadow: 0 2px 0 #581508, 0 3px 5px #000;
  transition: filter 90ms ease, box-shadow 90ms ease, transform 90ms ease;
}

.popover button:hover,
.popover button:focus-visible {
  border-color: transparent;
  filter: brightness(1.18) saturate(1.12);
  transform: none;
  box-shadow: inset 0 0 18px rgba(255, 200, 58, 0.2);
}

.popover button:focus-visible {
  outline: 2px solid rgba(255, 232, 132, 0.92);
  outline-offset: -4px;
}

.popover button:active {
  filter: brightness(0.82) saturate(0.94);
  transform: translateY(1px) scale(0.99);
}

.autoSpinOptions {
  top: 25.61%;
  right: 17.22%;
  bottom: 14.77%;
  left: 25.24%;
  gap: 1.2%;
}

.autoSpinOptions button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.52em;
  padding: 0;
  text-align: center;
}

.autoSpinOptions button strong {
  color: #fff0a8;
  font-size: clamp(17px, 2vw, 32px);
  -webkit-text-stroke: 1px rgba(79, 24, 5, 0.72);
}

.autoSpinOptions button small {
  color: #eecb7b;
  font-size: clamp(7px, 0.72vw, 12px);
}

.menuOptions {
  position: absolute;
  inset: 0;
  display: block;
}

.menuOptions button {
  position: absolute;
  left: 16.03%;
  width: 58.73%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 6%;
  padding: 0 6%;
}

.menuOptions button:nth-child(1) {
  top: 26.99%;
  height: 17.43%;
}

.menuOptions button:nth-child(2) {
  top: 48.67%;
  height: 15.09%;
  padding-right: clamp(38px, 5.15vw, 86px);
}

.menuOptions button:nth-child(3) {
  top: 67.8%;
  height: 15.73%;
  padding-right: clamp(38px, 5.15vw, 86px);
}

.menuIcon {
  width: clamp(24px, 2.6vw, 42px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border: 0;
  border-radius: 0;
  background-color: transparent;
  background-position: center;
  background-repeat: no-repeat;
  background-size: contain;
  filter: drop-shadow(0 2px 0 rgba(67, 20, 4, 0.88)) drop-shadow(0 0 5px rgba(255, 187, 42, 0.28));
}

.menuOptions button:nth-child(1) .menuIcon {
  background-image: url("../assets/chicken/ui/menu-icon-paytable.png?v=78");
}

.menuOptions button:nth-child(2) .menuIcon {
  background-image: url("../assets/chicken/ui/menu-icon-sound.png?v=78");
}

.menuOptions button:nth-child(3) .menuIcon {
  background-image: url("../assets/chicken/ui/menu-icon-turbo.png?v=78");
}

.menuCopy strong {
  color: #fff0aa;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(10px, 1.08vw, 18px);
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.menuCopy small {
  color: #d9b66d;
  font-size: clamp(6px, 0.58vw, 10px);
}

.menuOptions button > i:not(.menuSwitch) {
  color: #ffd760;
  font-size: clamp(18px, 1.6vw, 27px);
  text-shadow: 0 2px 0 #4f1308;
}

.menuSwitch {
  display: none;
}

.menuOptions button:nth-child(n + 2)::after {
  content: "";
  position: absolute;
  left: 64.9%;
  top: 50%;
  width: 31%;
  aspect-ratio: 753 / 318;
  opacity: 1;
  background-image: url("../assets/chicken/ui/menu-toggle-off.png?v=11");
  background-position: center;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.62));
  transform: translateY(-50%);
  transition: filter 120ms ease;
  pointer-events: none;
}

.menuOptions button[aria-pressed="true"]::after {
  background-image: url("../assets/chicken/ui/menu-toggle-on.png?v=11");
}

.menuOptions button:nth-child(n + 2):hover::after,
.menuOptions button:nth-child(n + 2):focus-visible::after {
  filter: brightness(1.12) drop-shadow(0 2px 3px rgba(0, 0, 0, 0.72));
}

/* Static video fallbacks and feature cards */

.presentationOverlay {
  display: grid;
  place-items: center;
  padding: 7%;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 169, 34, 0.12), transparent 40%),
    rgba(3, 5, 8, 0.72);
  backdrop-filter: blur(3px);
}

.presentationOverlay.flash {
  animation: overlayFlash 420ms ease-out;
}

@keyframes overlayFlash {
  from { background-color: rgba(255, 230, 145, 0.45); }
  to { background-color: rgba(3, 5, 8, 0.72); }
}

#presentationVideo {
  position: absolute;
  z-index: 1;
  inset: 5%;
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.presentationFallback {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  width: min(690px, 66%);
  padding: clamp(20px, 2.6vw, 40px);
  overflow: hidden;
  border: clamp(3px, 0.35vw, 6px) solid #e7a629;
  border-radius: 24px;
  text-align: center;
  background:
    radial-gradient(circle at 50% 15%, rgba(213, 73, 27, 0.28), transparent 40%),
    linear-gradient(145deg, rgba(70, 30, 10, 0.98), rgba(12, 13, 15, 0.98));
  box-shadow:
    inset 0 0 0 3px rgba(255, 233, 161, 0.16),
    0 20px 80px rgba(0, 0, 0, 0.8),
    0 0 60px rgba(255, 171, 31, 0.18);
}

#presentationSymbol {
  width: clamp(110px, 16vw, 240px);
  height: clamp(110px, 16vw, 240px);
  margin-bottom: -1.5%;
  object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0, 0, 0, 0.7));
}

.presentationFallback h2 {
  margin: 0.1em 0;
  color: #ffd137;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(34px, 5vw, 78px);
  font-weight: 900;
  letter-spacing: 0.02em;
  line-height: 0.95;
  text-transform: uppercase;
  -webkit-text-stroke: 1px #421307;
  text-shadow: 0 5px 0 #8f160e, 0 10px 20px #000;
}

.presentationFallback p {
  margin: 0.65em auto 0;
  max-width: 540px;
  color: #f9e6c6;
  font-size: clamp(12px, 1.4vw, 21px);
  font-weight: 800;
  line-height: 1.35;
}

.presentationOverlay.epicIntro {
  padding: 0;
  overflow: hidden;
  background: rgba(2, 4, 8, 0.82);
  backdrop-filter: blur(5px) saturate(0.78);
}

.presentationOverlay.epicIntro::before {
  position: absolute;
  z-index: 0;
  width: 130%;
  aspect-ratio: 1;
  content: "";
  background: repeating-conic-gradient(
    from 0deg,
    rgba(255, 220, 91, 0.4) 0deg 7deg,
    rgba(255, 132, 20, 0.07) 7deg 15deg,
    transparent 15deg 23deg
  );
  filter: blur(2px);
  opacity: 0.88;
  animation: epicSpinRays 12s linear infinite;
}

.presentationOverlay.epicIntro::after {
  position: absolute;
  z-index: 1;
  inset: 0;
  content: "";
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 245, 173, 0.48), rgba(255, 160, 20, 0.17) 23%, transparent 55%),
    radial-gradient(circle at 20% 20%, rgba(75, 177, 255, 0.2), transparent 28%),
    radial-gradient(circle at 80% 78%, rgba(255, 52, 19, 0.2), transparent 31%);
  animation: epicLightPulse 900ms ease-in-out infinite alternate;
}

@keyframes epicSpinRays {
  to { transform: rotate(360deg); }
}

@keyframes epicLightPulse {
  from { opacity: 0.64; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1.05); }
}

.presentationFallback.epicIntro {
  z-index: 2;
  display: block;
  width: min(1120px, 88%);
  aspect-ratio: 1264 / 720;
  box-sizing: border-box;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: url("../assets/chicken/ui/epic-spin-popup.png") center / contain no-repeat;
  box-shadow: none;
  filter: drop-shadow(0 26px 24px rgba(0, 0, 0, 0.72)) drop-shadow(0 0 42px rgba(255, 190, 38, 0.48));
  animation: epicPopupEnter 680ms cubic-bezier(0.18, 1.25, 0.28, 1) both;
}

.presentationFallback.epicIntro.epicVideoReady {
  background: none;
}

.epicSpinPopupCanvas {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.epicSpinPopupCanvas[hidden] {
  display: none;
}

.epicSpinTitleCanvas {
  position: absolute;
  z-index: 2;
  top: 34.5%;
  left: 50%;
  width: 57%;
  height: auto;
  pointer-events: none;
  filter: drop-shadow(0 5px 0 rgba(92, 18, 5, 0.88)) drop-shadow(0 0 18px rgba(255, 211, 73, 0.46));
  transform: translateX(-50%);
}

.epicSpinTitleCanvas[hidden] {
  display: none;
}

@keyframes epicPopupEnter {
  from { opacity: 0; transform: scale(0.45) rotate(-3deg); }
  70% { opacity: 1; transform: scale(1.045) rotate(0.7deg); }
  to { opacity: 1; transform: scale(1) rotate(0); }
}

.presentationFallback.epicIntro #presentationSymbol {
  display: none;
}

.presentationFallback.epicIntro > span {
  position: absolute;
  z-index: 1;
  top: 36%;
  left: 50%;
  display: block;
  width: 48%;
  max-width: none;
  margin: 0;
  color: #ffdf74;
  font-size: clamp(11px, 1.1vw, 18px);
  letter-spacing: 0.16em;
  line-height: 1.1;
  text-wrap: balance;
  text-shadow: 0 2px 0 #641507, 0 0 14px rgba(255, 211, 74, 0.65);
  transform: translateX(-50%);
}

.presentationFallback.epicIntro > span:empty,
.presentationFallback.epicIntro p:empty {
  display: none;
}

.presentationFallback.epicIntro h2 {
  position: absolute;
  z-index: 1;
  top: 42%;
  left: 50%;
  width: 52%;
  max-width: none;
  margin: 0;
  font-size: clamp(42px, 5.7vw, 86px);
  letter-spacing: 0.028em;
  line-height: 0.94;
  white-space: nowrap;
  -webkit-text-stroke: clamp(1px, 0.15vw, 3px) #521307;
  text-shadow: 0 5px 0 #9d170d, 0 10px 0 #4e0d08, 0 0 30px rgba(255, 222, 94, 0.72);
  transform: translateX(-50%);
  visibility: hidden;
}

.presentationFallback.epicIntro p {
  position: absolute;
  z-index: 1;
  top: 54%;
  left: 50%;
  width: 47%;
  max-width: none;
  margin: 0;
  font-size: clamp(12px, 1.18vw, 19px);
  line-height: 1.25;
  text-wrap: balance;
  transform: translateX(-50%);
}

.presentationFallback.epicIntro #presentationValue {
  position: absolute;
  z-index: 1;
  top: 57%;
  left: 50%;
  width: 48%;
  max-width: none;
  margin: 0;
  font-size: clamp(28px, 4vw, 60px);
  line-height: 1;
  white-space: nowrap;
  transform: translateX(-50%);
  visibility: hidden;
}

#presentationValue {
  margin-top: 0.25em;
  color: #fff09a;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(26px, 4vw, 62px);
  letter-spacing: 0.05em;
  text-shadow: 0 4px 0 #6e140b, 0 0 18px rgba(255, 208, 51, 0.5);
}

.presentationOverlay.bigWin {
  padding: 0;
  background: rgba(2, 3, 5, 0.76);
  backdrop-filter: blur(5px) saturate(0.78);
}

.bigWinCanvas {
  position: absolute;
  z-index: 2;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bigWinCanvas[hidden] {
  display: none;
}

.presentationOverlay.bigWin .presentationFallback {
  display: none;
}

.presentationFallback.bigWin {
  display: block;
  width: min(1260px, 78%);
  aspect-ratio: 3 / 2;
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: url("../assets/chicken/ui/big-win-character-popup-alpha.png") center / contain no-repeat;
  box-shadow: none;
  mix-blend-mode: normal;
  animation: bigWinPanelEnter 620ms cubic-bezier(0.18, 1.25, 0.3, 1) both;
}

@keyframes bigWinPanelEnter {
  0% { opacity: 0; transform: scale(0.34) rotate(-2deg); filter: brightness(2.3); }
  58% { opacity: 1; transform: scale(1.07) rotate(0.6deg); filter: brightness(1.32); }
  78% { transform: scale(0.98) rotate(-0.2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0deg); filter: brightness(1); }
}

.presentationFallback.bigWin #presentationSymbol {
  display: none;
}

.presentationFallback.bigWin > span,
.presentationFallback.bigWin h2,
.presentationFallback.bigWin p,
.presentationFallback.bigWin #presentationValue {
  position: absolute;
  left: 27%;
  width: 46%;
  margin: 0;
  text-align: center;
}

.presentationFallback.bigWin > span {
  top: 33%;
  color: #ffeaa0;
  font-size: clamp(10px, 1.05vw, 17px);
  letter-spacing: 0.14em;
  text-shadow: 0 2px 0 #5b1808, 0 0 12px #ffbb2f;
}

.presentationFallback.bigWin h2 {
  top: 38%;
  font-size: clamp(48px, 6.4vw, 104px);
  line-height: 0.92;
  white-space: nowrap;
}

.presentationFallback.bigWin #presentationValue {
  top: 51%;
  color: #fff4af;
  font-size: clamp(44px, 5.7vw, 92px);
  line-height: 1;
  letter-spacing: 0.035em;
  white-space: nowrap;
}

.presentationFallback.bigWin p {
  top: 63%;
  max-width: none;
  color: #ffd971;
  font-size: clamp(12px, 1.25vw, 20px);
  letter-spacing: 0.11em;
  text-shadow: 0 2px 0 #4f1307, 0 0 10px rgba(255, 197, 51, 0.7);
}

#skipPresentationButton {
  position: absolute;
  z-index: 4;
  right: 2.2%;
  bottom: 3.2%;
  padding: 0.45em 0.9em;
  border-radius: 999px;
  color: rgba(255, 245, 215, 0.86);
  background: rgba(20, 15, 12, 0.72);
  font-size: clamp(9px, 0.9vw, 14px);
}

/* QA controls */

.testControls {
  position: absolute;
  z-index: 17;
  top: 1.5%;
  right: 1.2%;
}

.testMenuButton {
  display: grid;
  width: clamp(25px, 2.4vw, 39px);
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 231, 163, 0.35);
  border-radius: 50%;
  color: rgba(255, 242, 201, 0.7);
  background: rgba(17, 13, 10, 0.5);
  cursor: pointer;
  opacity: 0.45;
}

.testMenuButton:hover,
.testMenuButton:focus-visible {
  opacity: 1;
}

.testMenuPanel {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(68px, 1fr));
  width: clamp(170px, 16vw, 260px);
  gap: 5px;
  padding: 9px;
  border: 1px solid #c58a2b;
  border-radius: 10px;
  background: rgba(25, 16, 10, 0.97);
  box-shadow: 0 10px 30px #000;
}

.testMenuPanel strong {
  grid-column: 1 / -1;
  color: #ffd66e;
  font-size: clamp(9px, 0.82vw, 13px);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.testMenuPanel button {
  padding: 0.4em;
  border-radius: 5px;
  font-size: clamp(8px, 0.75vw, 12px);
  font-weight: 900;
}

.testMenuPanel .testEpicHeading {
  margin-top: 4px;
  padding-top: 7px;
  border-top: 1px solid rgba(255, 214, 110, 0.24);
  color: #9dff62;
}

.testMenuPanel .testEpicButton {
  border-color: rgba(104, 255, 72, 0.6);
  color: #efffce;
  background: linear-gradient(180deg, rgba(56, 126, 28, 0.96), rgba(22, 68, 17, 0.98));
  box-shadow: inset 0 0 12px rgba(129, 255, 70, 0.16);
}

.testMenuPanel .testEpicButton:hover,
.testMenuPanel .testEpicButton:focus-visible {
  border-color: #d7ff75;
  box-shadow: 0 0 12px rgba(91, 255, 50, 0.55), inset 0 0 12px rgba(129, 255, 70, 0.24);
}

/* Paytable */

#paytableDialog {
  width: min(1280px, 94vw);
  height: min(850px, 92vh);
  max-width: none;
  max-height: none;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  color: #fff1ce;
  background: transparent;
  user-select: text;
}

#paytableDialog::backdrop {
  background: rgba(2, 4, 7, 0.78);
  backdrop-filter: blur(5px);
}

.dialogFrame {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  width: 100%;
  height: 100%;
  overflow: hidden;
  border: 5px solid #bd7921;
  border-radius: 22px;
  background:
    radial-gradient(circle at 50% 0, rgba(150, 59, 19, 0.28), transparent 35%),
    linear-gradient(145deg, #321c0e, #0f1114 65%);
  box-shadow: inset 0 0 0 3px #62330f, 0 24px 80px rgba(0, 0, 0, 0.85);
}

.dialogFrame > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: clamp(14px, 1.5vw, 24px) clamp(18px, 2vw, 32px) 10px;
}

.dialogFrame header span {
  color: #e9a630;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.dialogFrame h2 {
  margin: 0;
  color: #ffe185;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(25px, 3vw, 46px);
  letter-spacing: 0.035em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 3px #64180c;
}

#closeDialogButton {
  flex: none;
  width: clamp(38px, 3.6vw, 54px);
  aspect-ratio: 1;
  border: 2px solid #e6aa39;
  border-radius: 50%;
  font-size: clamp(22px, 2.2vw, 34px);
  line-height: 1;
}

#paytableTabs {
  display: flex;
  gap: 6px;
  padding: 7px clamp(18px, 2vw, 32px) 12px;
  overflow-x: auto;
  scrollbar-width: thin;
}

#paytableTabs button {
  flex: 1 0 auto;
  min-width: 110px;
  padding: 0.65em 1em;
  border-radius: 999px;
  background: linear-gradient(#63300f, #2c180d);
  font-size: clamp(10px, 1vw, 15px);
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

#paytableTabs button.active {
  color: #361706;
  background: linear-gradient(#ffe27c, #e39b28);
  box-shadow: 0 0 16px rgba(255, 190, 42, 0.38);
}

.paytableContent {
  min-height: 0;
  padding: 5px clamp(18px, 2.1vw, 34px) 32px;
  overflow: auto;
  scrollbar-color: #c28128 #1a120d;
}

.paytableSection h3 {
  margin: 12px 0 4px;
  color: #ffd362;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(23px, 2.4vw, 38px);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.sectionLead {
  margin: 0 0 16px;
  color: #d9c9b1;
  font-size: clamp(11px, 1.1vw, 16px);
  line-height: 1.45;
}

.symbolGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(8px, 1vw, 16px);
}

.symbolCard,
.ruleCard,
.lineCard,
.statCard {
  border: 1px solid rgba(225, 161, 54, 0.46);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(77, 39, 15, 0.65), rgba(19, 18, 17, 0.86));
  box-shadow: inset 0 1px rgba(255, 238, 180, 0.08);
}

.symbolCard {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-height: 225px;
  padding: 8px;
  text-align: center;
}

.symbolCard canvas {
  align-self: center;
  width: min(100%, 145px);
  aspect-ratio: 1;
  justify-self: center;
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.58));
}

.symbolCard h4 {
  margin: 0;
  color: #ffe08a;
  font-size: clamp(10px, 1.05vw, 16px);
  line-height: 1.15;
}

.payouts {
  display: flex;
  justify-content: center;
  gap: 0.5em;
  margin-top: 6px;
  color: #fff4d1;
  font-size: clamp(9px, 0.86vw, 13px);
  font-weight: 900;
  white-space: nowrap;
}

.payouts span {
  color: #e8a92c;
}

.rulesGrid,
.statGrid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ruleCard,
.statCard {
  padding: clamp(13px, 1.5vw, 22px);
}

.ruleCard h4,
.statCard strong {
  margin: 0 0 6px;
  color: #ffcf50;
  font-size: clamp(13px, 1.25vw, 19px);
}

.ruleCard p,
.statCard span {
  margin: 0;
  color: #eadbc6;
  font-size: clamp(10px, 1vw, 15px);
  line-height: 1.45;
}

.lineGrid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 9px;
}

.lineCard {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  padding: 8px;
}

.lineCard > strong {
  color: #ffd669;
  font-size: clamp(9px, 0.85vw, 13px);
}

.paylineMini {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  grid-template-rows: repeat(3, 1fr);
  width: 100%;
  aspect-ratio: 5 / 2.45;
  gap: 2px;
}

.paylineMini i {
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.08);
}

.paylineMini i.active {
  background: #f05a28;
  box-shadow: 0 0 5px rgba(255, 114, 40, 0.8);
}

.statCard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
}

.statCard strong {
  margin: 0;
  color: #fff0b2;
  font-variant-numeric: tabular-nums;
}

.statCard span {
  text-align: right;
}

/* Illustrated paytable field manual */

#paytableDialog {
  width: min(1380px, 97vw);
  height: min(860px, 95vh);
  border-radius: 18px;
}

#paytableDialog .dialogFrame {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  width: 100%;
  height: 100%;
  padding: clamp(8px, 1vw, 14px);
  overflow: hidden;
  border: 2px solid rgba(216, 151, 54, 0.82);
  border-radius: 18px;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 183, 52, 0.18), transparent 38%),
    linear-gradient(180deg, rgba(25, 15, 9, 0.98), rgba(5, 7, 8, 0.99));
  box-shadow:
    inset 0 0 0 3px rgba(57, 28, 10, 0.95),
    inset 0 0 45px rgba(0, 0, 0, 0.85),
    0 24px 80px rgba(0, 0, 0, 0.88);
}

#closeDialogButton {
  position: absolute;
  z-index: 30;
  top: clamp(18px, 3.4%, 30px);
  right: clamp(18px, 3.2%, 34px);
  display: grid;
  place-items: center;
  width: clamp(34px, 3.4vw, 48px);
  height: clamp(34px, 3.4vw, 48px);
  padding: 0 0 3px;
  border: 2px solid #f4c360;
  border-radius: 9px;
  color: #fff1b3;
  background: linear-gradient(180deg, #743412, #271007);
  font-family: Georgia, serif;
  font-size: clamp(22px, 2.4vw, 34px);
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 0 #57150b;
  box-shadow: inset 0 0 0 2px #160905, 0 0 15px rgba(255, 183, 49, 0.35);
}

#closeDialogButton:hover,
#closeDialogButton:focus-visible {
  color: #fffce2;
  border-color: #fff0a5;
  filter: brightness(1.16);
}

.paytableContent {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding: 4px 5px 0;
  overflow: hidden;
}

.paytableStage {
  position: relative;
  flex: none;
  width: min(100%, calc((95vh - 112px) * 1.77683));
  aspect-ratio: 1672 / 941;
  overflow: hidden;
  border-radius: 9px;
  background: #0b0d11 url("../assets/chicken/ui/paytable-field-manual.png?v=104") center / 100% 100% no-repeat;
  box-shadow:
    0 16px 42px rgba(0, 0, 0, 0.7),
    0 0 0 1px rgba(255, 211, 106, 0.24),
    0 0 26px rgba(255, 169, 40, 0.13);
}

.paytablePage {
  --page-accent: #ffc84f;
  --page-accent-rgb: 255, 190, 55;
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.paytablePage::before,
.paytablePage::after {
  content: "";
  position: absolute;
  z-index: 0;
  width: 28%;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--page-accent-rgb), 0.14), transparent 68%);
  filter: blur(2px);
  pointer-events: none;
}

.paytablePage::before {
  left: 3%;
  top: 23%;
}

.paytablePage::after {
  right: 3%;
  bottom: 7%;
}

.paytablePage-premium { --page-accent: #ffd05b; --page-accent-rgb: 255, 189, 48; }
.paytablePage-low { --page-accent: #66c9ff; --page-accent-rgb: 69, 169, 255; }
.paytablePage-special { --page-accent: #9bff6c; --page-accent-rgb: 117, 231, 91; }
.paytablePage-features { --page-accent: #ff7755; --page-accent-rgb: 255, 97, 55; }
.paytablePage-free { --page-accent: #82ff58; --page-accent-rgb: 92, 220, 70; }
.paytablePage-epic { --page-accent: #ff5e51; --page-accent-rgb: 255, 68, 51; }
.paytablePage-lines { --page-accent: #ffb63d; --page-accent-rgb: 255, 153, 33; }
.paytablePage-rules { --page-accent: #62d7ff; --page-accent-rgb: 70, 187, 255; }
.paytablePage-info { --page-accent: #ffe183; --page-accent-rgb: 255, 208, 90; }

.paytablePageTitle {
  position: absolute;
  z-index: 4;
  left: 26%;
  top: 18.1%;
  display: grid;
  place-items: center;
  width: 48%;
  height: 11.3%;
  border: 2px solid color-mix(in srgb, var(--page-accent) 80%, #8c4619);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(123, 71, 22, 0.97), rgba(24, 15, 10, 0.98) 34%, rgba(9, 12, 14, 0.98) 67%, rgba(81, 42, 15, 0.96));
  box-shadow:
    inset 0 0 0 3px rgba(7, 6, 5, 0.78),
    inset 0 0 18px rgba(var(--page-accent-rgb), 0.16),
    0 7px 14px rgba(0, 0, 0, 0.55),
    0 0 18px rgba(var(--page-accent-rgb), 0.16);
  text-align: center;
  text-transform: uppercase;
}

.paytablePageTitle span {
  align-self: end;
  color: color-mix(in srgb, var(--page-accent) 88%, white);
  font-size: clamp(7px, 0.72vw, 11px);
  font-weight: 950;
  letter-spacing: 0.19em;
  line-height: 1;
}

.paytablePageTitle strong {
  align-self: start;
  color: #ffd76b;
  background: linear-gradient(#fff0a2 4%, #ffc541 42%, #dc641f 75%, #ffb238 100%);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: Impact, Haettenschweiler, "Arial Narrow Bold", sans-serif;
  font-size: clamp(15px, 2.45vw, 38px);
  letter-spacing: 0.035em;
  line-height: 0.98;
  filter: drop-shadow(0 3px 0 #61170d) drop-shadow(0 0 7px rgba(var(--page-accent-rgb), 0.24));
}

.paytablePageBody {
  position: absolute;
  z-index: 2;
  inset: 31% 8.6% 10.5%;
  min-width: 0;
  min-height: 0;
}

.paytablePageLead {
  height: 7.5%;
  margin: 0 0 0.7%;
  color: #dbcdb9;
  font-size: clamp(7px, 0.89vw, 13px);
  font-weight: 750;
  line-height: 1.15;
  text-align: center;
}

.paytablePayoutCard,
.paytableRuleCard,
.paytableMissionHero,
.paytableMissionCard,
.paytableFlowStep,
.paytableWildHero,
.paytableRuleList article,
.paytableStatCard,
.paytableInfoNotes,
.paytableRibbon,
.paytableLineCard {
  border: 1px solid rgba(var(--page-accent-rgb), 0.56);
  background:
    radial-gradient(circle at 50% 0, rgba(var(--page-accent-rgb), 0.1), transparent 38%),
    linear-gradient(160deg, rgba(48, 30, 15, 0.88), rgba(7, 11, 13, 0.94) 64%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, 0.7),
    inset 0 0 14px rgba(var(--page-accent-rgb), 0.07),
    0 6px 11px rgba(0, 0, 0, 0.4);
}

.paytablePayoutCards {
  display: grid;
  height: 91.8%;
  gap: clamp(4px, 0.65vw, 10px);
}

.paytablePayoutCards.premium {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.paytablePayoutCards.low {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  padding-inline: 3.5%;
}

.paytablePayoutCard {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
  padding: clamp(3px, 0.55vw, 8px);
  overflow: hidden;
  border-radius: 7px;
  text-align: center;
}

.paytablePayoutCard.topAward {
  border-color: rgba(255, 221, 102, 0.9);
  box-shadow:
    inset 0 0 18px rgba(255, 194, 43, 0.18),
    0 0 18px rgba(255, 174, 33, 0.2),
    0 6px 11px rgba(0, 0, 0, 0.4);
}

.paytablePayoutSymbol,
.paytableRuleSymbol,
.paytableFlowArt {
  display: grid;
  place-items: center;
  min-width: 0;
  min-height: 0;
}

.paytableSymbolCanvas {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: contain;
  object-position: center;
  filter:
    drop-shadow(0 5px 5px rgba(0, 0, 0, 0.66))
    drop-shadow(0 0 7px rgba(var(--page-accent-rgb), 0.16));
}

.paytablePayoutSymbol .paytableSymbolCanvas {
  max-width: 94%;
  max-height: 100%;
}

.paytablePayoutCard h3 {
  min-height: 2.2em;
  margin: 0 0 4px;
  color: #ffe28a;
  font-size: clamp(7px, 0.9vw, 13px);
  font-weight: 950;
  line-height: 1.04;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #57190d;
}

.paytablePayoutMatrix {
  display: grid;
  grid-template-columns: repeat(var(--pay-columns), minmax(0, 1fr));
  grid-template-rows: 35% 65%;
  min-height: clamp(42px, 6vw, 82px);
  overflow: hidden;
  border: 1px solid rgba(var(--page-accent-rgb), 0.5);
  border-radius: 5px;
  background: rgba(4, 7, 8, 0.82);
}

.paytablePayoutMatrix > * {
  display: grid;
  place-items: center;
  min-width: 0;
  border-left: 1px solid rgba(var(--page-accent-rgb), 0.35);
}

.paytablePayoutMatrix > *:first-child,
.paytablePayoutMatrix > strong:first-of-type {
  border-left: 0;
}

.paytablePayoutMatrix span {
  border-bottom: 1px solid rgba(var(--page-accent-rgb), 0.38);
  color: #ffd66c;
  background: rgba(117, 62, 19, 0.34);
  font-size: clamp(8px, 1.05vw, 15px);
  font-weight: 950;
}

.paytablePayoutMatrix strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1px;
  color: #fff0b0;
  font-size: clamp(8px, 1.15vw, 17px);
  line-height: 1;
  text-shadow: 0 2px 0 #5b170d, 0 0 8px rgba(var(--page-accent-rgb), 0.28);
  white-space: nowrap;
}

.paytablePayoutCard.topAward .paytablePayoutMatrix strong {
  gap: 0;
  font-size: clamp(6px, 0.82vw, 12px);
  letter-spacing: -0.025em;
}

.paytablePayoutMatrix small {
  display: inline;
  color: var(--page-accent);
  font-size: 0.78em;
}

.paytableSpecialGrid,
.paytableFeatureGrid {
  display: grid;
  gap: clamp(4px, 0.7vw, 11px);
}

.paytableSpecialGrid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  height: 88%;
}

.paytableFeatureGrid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: 91.5%;
}

.paytableRuleCard {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 7px;
}

.paytableSpecialGrid .paytableRuleCard {
  display: grid;
  grid-template-rows: 45% minmax(0, 1fr);
  padding: 5px;
  text-align: center;
}

.paytableFeatureGrid .paytableRuleCard {
  display: grid;
  grid-template-columns: 29% minmax(0, 1fr);
  align-items: center;
  padding: clamp(4px, 0.55vw, 8px);
}

.paytableRuleSymbol {
  overflow: hidden;
}

.paytableRuleCopy {
  min-width: 0;
  min-height: 0;
  padding: 2px clamp(3px, 0.5vw, 8px);
}

.paytableRuleCopy > span,
.paytableMissionHero span,
.paytableMissionCard span {
  color: var(--page-accent);
  font-size: clamp(6px, 0.68vw, 10px);
  font-weight: 950;
  letter-spacing: 0.11em;
  line-height: 1;
  text-transform: uppercase;
}

.paytableRuleCopy h3 {
  margin: 2px 0 4px;
  color: #ffe38b;
  font-size: clamp(8px, 1.08vw, 16px);
  line-height: 1.02;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #51160d;
}

.paytableRuleCopy p,
.paytableMissionHero p,
.paytableMissionCard p,
.paytableFlowStep p,
.paytableRuleList p,
.paytableInfoNotes p {
  margin: 0;
  color: #e5d7c1;
  font-size: clamp(6px, 0.73vw, 11px);
  line-height: 1.24;
}

.paytableRibbon {
  display: grid;
  place-items: center;
  height: 9.5%;
  margin: 0.7% auto 0;
  padding: 0 2%;
  border-radius: 6px;
  color: #fff0b4;
  font-size: clamp(6px, 0.75vw, 11px);
  font-weight: 900;
  line-height: 1.1;
  text-align: center;
}

.eggRibbon { width: 94%; }

.paytableFreeGrid {
  display: grid;
  grid-template-columns: 1.25fr 0.66fr 1.25fr;
  height: 88%;
  gap: clamp(4px, 0.75vw, 12px);
}

.paytableMissionHero,
.paytableMissionCard {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px;
}

.paytableMissionHero {
  display: grid;
  grid-template-rows: 52% minmax(0, 1fr);
  padding: clamp(5px, 0.7vw, 10px);
  text-align: center;
}

.paytableMissionHero .paytableSymbolCanvas {
  width: 100%;
  height: 100%;
}

.paytableMissionHero strong,
.paytableMissionCard strong {
  display: block;
  margin: 3px 0 5px;
  color: #ffe387;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(11px, 1.55vw, 23px);
  letter-spacing: 0.025em;
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #59180d, 0 0 9px rgba(var(--page-accent-rgb), 0.25);
}

.paytableMissionCard {
  display: grid;
  align-content: center;
  padding: 9%;
  text-align: center;
}

.paytableMissionCard strong {
  font-size: clamp(21px, 3.6vw, 54px);
}

.paytableEpicFlow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  height: 88%;
  gap: clamp(4px, 0.72vw, 11px);
}

.paytableEpicFlow::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: 9%;
  right: 9%;
  top: 42%;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(var(--page-accent-rgb), 0.68), transparent);
  box-shadow: 0 0 10px rgba(var(--page-accent-rgb), 0.45);
}

.paytableFlowStep {
  position: relative;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
  padding: clamp(4px, 0.62vw, 9px);
  overflow: hidden;
  border-radius: 8px;
  text-align: center;
}

.paytableFlowStep > span {
  position: absolute;
  z-index: 3;
  top: 6px;
  left: 6px;
  display: grid;
  place-items: center;
  width: clamp(18px, 2.1vw, 30px);
  aspect-ratio: 1;
  border: 1px solid #ffd16a;
  border-radius: 50%;
  color: #261007;
  background: linear-gradient(#fff0a0, #e78d22);
  font-size: clamp(8px, 0.9vw, 13px);
  font-weight: 950;
  box-shadow: 0 0 8px rgba(var(--page-accent-rgb), 0.45);
}

.paytableFlowArt {
  overflow: hidden;
}

.paytableFlowArt img {
  width: 94%;
  height: 94%;
  object-fit: contain;
  filter: drop-shadow(0 6px 5px rgba(0, 0, 0, 0.65));
}

.hatchArt,
.featureArt {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.hatchArt .paytableSymbolCanvas:first-child,
.featureArt .paytableSymbolCanvas:first-child {
  transform: translateX(12%) scale(0.92);
}

.hatchArt .paytableSymbolCanvas:last-child,
.featureArt .paytableSymbolCanvas:last-child {
  transform: translateX(-12%) scale(0.92);
}

.paytableFlowStep > strong {
  margin: 0 0 4px;
  color: #ffe18a;
  font-size: clamp(8px, 1vw, 15px);
  line-height: 1;
  text-transform: uppercase;
  text-shadow: 0 2px 0 #57170c;
}

.paytableLineGrid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: repeat(5, minmax(0, 1fr));
  height: 91.5%;
  gap: clamp(2px, 0.42vw, 6px);
}

.paytableLineCard {
  display: grid;
  grid-template-columns: 18% minmax(0, 1fr);
  align-items: center;
  min-width: 0;
  min-height: 0;
  padding: clamp(2px, 0.34vw, 5px);
  border-radius: 5px;
}

.paytableLineCard > strong {
  color: #ffd46d;
  font-size: clamp(6px, 0.72vw, 10px);
  text-align: center;
}

.paytableLineCard .paylineMini {
  gap: 1px;
  aspect-ratio: 5 / 2.35;
}

.paytableLineCard .paylineMini i {
  border: 1px solid rgba(255, 255, 255, 0.025);
  border-radius: 1px;
  background: rgba(255, 255, 255, 0.06);
}

.paytableLineCard .paylineMini i.active {
  background: var(--page-accent);
  box-shadow: 0 0 4px rgba(var(--page-accent-rgb), 0.78);
}

.paytableRulesLayout {
  display: grid;
  grid-template-columns: 28% minmax(0, 1fr);
  height: 88%;
  gap: clamp(5px, 0.8vw, 12px);
}

.paytableWildHero {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  min-width: 0;
  min-height: 0;
  padding: 5%;
  overflow: hidden;
  border-radius: 8px;
  text-align: center;
}

.paytableWildHero strong {
  color: #ffe38d;
  font-size: clamp(9px, 1.25vw, 18px);
  line-height: 1;
  text-transform: uppercase;
}

.paytableWildHero span {
  color: var(--page-accent);
  font-size: clamp(6px, 0.75vw, 11px);
  font-weight: 900;
  text-transform: uppercase;
}

.paytableRuleList {
  display: grid;
  grid-template-rows: repeat(5, minmax(0, 1fr));
  gap: clamp(2px, 0.4vw, 6px);
  min-height: 0;
}

.paytableRuleList article {
  display: grid;
  grid-template-columns: clamp(20px, 2.5vw, 36px) minmax(0, 1fr);
  align-items: center;
  min-height: 0;
  padding: 2px clamp(6px, 0.8vw, 12px) 2px 4px;
  border-radius: 6px;
}

.paytableRuleList b {
  display: grid;
  place-items: center;
  width: clamp(17px, 2vw, 28px);
  aspect-ratio: 1;
  border-radius: 50%;
  color: #251006;
  background: linear-gradient(#fff1a1, #df8d23);
  font-size: clamp(7px, 0.8vw, 12px);
}

.paytableStatsGrid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  height: 67%;
  gap: clamp(4px, 0.65vw, 10px);
}

.paytableStatCard {
  display: grid;
  place-items: center;
  align-content: center;
  min-width: 0;
  min-height: 0;
  padding: 5%;
  border-radius: 7px;
  text-align: center;
}

.paytableStatCard strong {
  color: #ffe187;
  font-family: Impact, Haettenschweiler, sans-serif;
  font-size: clamp(12px, 2.2vw, 34px);
  letter-spacing: 0.025em;
  line-height: 1;
  text-shadow: 0 2px 0 #57170d, 0 0 8px rgba(var(--page-accent-rgb), 0.28);
}

.paytableStatCard span {
  margin-top: 4px;
  color: #e7d7bb;
  font-size: clamp(6px, 0.75vw, 11px);
  font-weight: 850;
  line-height: 1.1;
  text-transform: uppercase;
}

.paytableInfoNotes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  height: 29%;
  margin-top: 1%;
  overflow: hidden;
  border-radius: 7px;
}

.paytableInfoNotes p {
  padding: clamp(4px, 0.65vw, 10px);
  border-left: 1px solid rgba(var(--page-accent-rgb), 0.3);
}

.paytableInfoNotes p:first-child {
  border-left: 0;
}

.paytableInfoNotes strong {
  color: #ffe18a;
}

#paytableTabs.paytableControls {
  display: grid;
  grid-template-columns: clamp(36px, 4vw, 48px) minmax(0, 1fr) clamp(36px, 4vw, 48px);
  align-items: center;
  gap: clamp(7px, 1vw, 14px);
  justify-self: center;
  width: min(720px, 88%);
  margin: 5px auto 3px;
  padding: 5px clamp(8px, 1vw, 14px);
  overflow: visible;
  border: 1px solid rgba(255, 207, 90, 0.28);
  border-radius: 9px;
  background: rgba(5, 7, 8, 0.8);
  box-shadow: inset 0 1px rgba(255, 237, 171, 0.1), 0 7px 16px rgba(0, 0, 0, 0.38);
}

#paytableTabs button {
  flex: none;
  min-width: 0;
  padding: 0;
  border-radius: 0;
  font-size: inherit;
  letter-spacing: 0;
  text-transform: none;
}

#paytableTabs .paytableNavButton {
  width: 100%;
  height: clamp(28px, 3.2vw, 38px);
  border: 1px solid rgba(255, 224, 139, 0.5);
  border-radius: 7px;
  color: #fff0b1;
  background: linear-gradient(180deg, #753819, #2b1209);
  font-family: Georgia, serif;
  font-size: clamp(20px, 2.5vw, 32px);
  font-weight: 950;
  line-height: 0.75;
  text-shadow: 0 2px 0 #56150c;
  box-shadow: inset 0 1px rgba(255, 239, 179, 0.16);
}

#paytableTabs .paytableNavButton:hover,
#paytableTabs .paytableNavButton:focus-visible {
  border-color: #ffe18a;
  color: #fffbd9;
  filter: brightness(1.18);
}

.paytablePager {
  display: grid;
  justify-items: center;
  gap: 3px;
  min-width: 0;
}

.paytableCurrentPage {
  color: #e8d4ad;
  font-size: clamp(7px, 0.78vw, 11px);
  font-weight: 900;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.paytableDots {
  display: flex;
  gap: clamp(4px, 0.65vw, 9px);
}

#paytableTabs .paytableDot {
  width: clamp(8px, 0.95vw, 13px);
  height: clamp(8px, 0.95vw, 13px);
  border: 1px solid rgba(255, 224, 143, 0.48);
  border-radius: 50%;
  background: #24140c;
  box-shadow: inset 0 0 0 2px rgba(0, 0, 0, 0.34);
}

#paytableTabs .paytableDot.active {
  border-color: #fff0aa;
  background: radial-gradient(circle, #fff7c2 0 24%, #ffb52f 43%, #7b3515 100%);
  box-shadow: 0 0 9px rgba(255, 184, 47, 0.7);
}

@media (max-height: 560px) {
  #paytableDialog .dialogFrame {
    padding: 5px 8px;
  }

  .paytableStage {
    width: min(100%, calc((95vh - 82px) * 1.77683));
  }

  #paytableTabs.paytableControls {
    margin-block: 2px;
    padding-block: 3px;
  }
}

@media (orientation: portrait) and (max-width: 700px) {
  #paytableDialog {
    width: 98vw;
    height: 90vh;
  }

  #paytableDialog .dialogFrame {
    align-content: center;
  }

  .paytableContent {
    align-items: center;
  }

  .paytableStage {
    width: 100%;
  }

  #closeDialogButton {
    top: 12px;
    right: 12px;
  }
}

.orientationHint {
  position: absolute;
  z-index: 50;
  inset: auto 5% 3%;
  padding: 0.7em 1em;
  border: 1px solid #d99b2f;
  border-radius: 999px;
  color: #ffe7a1;
  background: rgba(23, 15, 10, 0.9);
  font-size: 12px;
  font-weight: 900;
  text-align: center;
}

@media (max-width: 760px) {
  .phaseBadge {
    max-width: 30%;
  }

  .symbolGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .lineGrid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .rulesGrid,
  .statGrid {
    grid-template-columns: 1fr;
  }
}

@media (orientation: portrait) and (max-width: 700px) {
  #gameShell {
    width: 100vw;
    height: auto;
  }

  .messageBar {
    max-width: 62%;
  }

  #paytableDialog {
    width: 96vw;
    height: 88vh;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
