/* Portrait stage: 1080 x 1920 — legacy WebKit compatible (BrightSign) */
:root {
  --value-white: #ffffff;
  --value-shadow: rgba(0, 0, 0, 0.45);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

body {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: #000;
}

.background-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 0;
}

.background-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
}

.fields-layer {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
}

.jackpot-box {
  position: absolute;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  padding: 8px 16px;
  text-align: center;
  color: #ffffff;
  color: var(--value-white);
  font-family: "Arial Black", "Arial Bold", Arial, Helvetica, sans-serif;
  font-weight: 800;
  font-style: normal;
  letter-spacing: 0.01em;
  line-height: 1;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
  text-shadow: 0 2px 6px var(--value-shadow);
  overflow: hidden;
  word-break: break-word;
}

.stinger-overlay {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 20;
  display: none;
  background: transparent;
  opacity: 0;
  -webkit-transition: opacity 0.25s ease;
  transition: opacity 0.25s ease;
}

.stinger-overlay[hidden] {
  display: none !important;
}

.stinger-overlay.visible {
  display: block;
  background: transparent;
  opacity: 1;
}

.stinger-overlay img,
.stinger-overlay video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: fill;
  object-position: center;
}

.test-flash {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 30;
  display: none;
  background: rgba(0, 0, 0, 0.72);
  color: #ffd700;
  font-size: 3rem;
  font-family: Georgia, serif;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-align: center;
  padding: 2rem;
}

.test-flash[hidden] {
  display: none !important;
}

.test-flash:not([hidden]) {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
}

.pilot-light {
  position: absolute;
  left: 18px;
  bottom: 18px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  z-index: 40;
  box-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.pilot-green { background: #3ddc84; box-shadow: 0 0 10px #3ddc84; }
.pilot-yellow { background: #ffcc00; box-shadow: 0 0 10px #ffcc00; }
.pilot-red { background: #ff4d4f; box-shadow: 0 0 10px #ff4d4f; }

.last-updated {
  position: absolute;
  right: 10px;
  bottom: 8px;
  font-size: 10px;
  color: rgba(255, 255, 255, 0.25);
  font-family: Arial, Helvetica, sans-serif;
  z-index: 5;
  pointer-events: none;
}
