/* Functional block defaults also survive a theme change. */
.cube-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 15px 28px;
  background: var(--cube-red, #e50138);
  color: #fff;
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 999px;
  font-family: var(--wp--preset--font-family--ui, sans-serif);
  font-size: 16px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  line-height: 1.2;
}
.cube-button:hover {
  color: white;
  filter: brightness(1.15);
}
.cube-film {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  border-radius: 30px;
  min-height: 650px;
  display: flex;
  align-items: flex-end;
  background: #0e1016;
  color: #fbfdfd;
}
.cube-film-poster,
.cube-film-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -3;
}
.cube-film-video {
  z-index: -2;
}
.cube-film-scrim {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(6, 7, 10, 0.95),
    rgba(6, 7, 10, 0.35) 65%,
    rgba(6, 7, 10, 0.15)
  );
  z-index: -1;
}
.cube-film-content {
  width: 100%;
  padding: clamp(24px, 5vw, 64px);
}
.cube-film-content > :first-child {
  margin-top: 0;
}
.cube-film-toggle {
  position: absolute;
  top: 18px;
  right: 18px;
  border: 1px solid #bcc1cc;
  border-radius: 999px;
  background: #06070abf;
  color: #fff;
  min-height: 44px;
  padding: 10px 16px;
  font-size: 14px;
}
.cube-live-banner {
  padding: 16px 24px;
  border: 1px solid #e50138;
  border-radius: 22px;
  margin: 0 auto 14px !important;
  max-width: 1160px;
  background: #0e1016;
}
.cube-live-link {
  color: #fff;
  text-decoration: none;
}
.cube-venue-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}
.cube-venue-info h3 {
  font-size: 24px;
}
.cube-venue-info p {
  white-space: normal;
  font-size: 17px;
}
.cube-venue-info a {
  overflow-wrap: anywhere;
}
.cube-jackpot {
  background: #0e1016;
  border: 1px solid #3a4150;
  border-radius: 22px;
  padding: 28px;
}
.cube-score {
  font-family: var(--wp--preset--font-family--cube, sans-serif);
  font-size: clamp(2rem, 5vw, 4.5rem);
  line-height: 1.2;
  color: #fdd314 !important;
  margin: 18px 0;
}
.cube-game-rail {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: clamp(155px, 18vw, 245px);
  gap: 14px;
  overflow: auto;
  padding: 10px 0 22px;
}
.cube-game-card {
  border-radius: 22px;
  overflow: hidden;
  background: #0e1016;
}
.cube-game-card > button {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  color: white;
  text-align: left;
  width: 100%;
  cursor: pointer;
}
.cube-game-card img {
  width: 100%;
  aspect-ratio: 9/16;
  object-fit: cover;
  display: block;
}
.cube-game-card button span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 45px 18px 18px;
  background: linear-gradient(transparent, #06070a);
  font-family: var(--wp--preset--font-family--judge, sans-serif);
  font-size: 24px;
  text-transform: uppercase;
}
.cube-game-description {
  padding: 12px;
}
.cube-games-enhanced .cube-game-description {
  display: none;
}
.cube-game-tools {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.cube-game-tools button,
.cube-game-dialog > button {
  border: 1px solid #626978;
  border-radius: 999px;
  background: #0e1016;
  color: #fff;
  padding: 12px 20px;
  min-height: 44px;
}
.cube-game-dialog {
  width: min(820px, calc(100% - 32px));
  max-height: 90svh;
  overflow: auto;
  padding: 24px;
  background: #0e1016;
  color: #fbfdfd;
  border: 1px solid #626978;
  border-radius: 24px;
}
.cube-game-dialog::backdrop {
  background: #000c;
}
.cube-game-dialog > button {
  display: block;
  margin-left: auto;
}
.cube-game-dialog img,
.cube-game-dialog video {
  width: 100%;
  max-height: 40vh;
  object-fit: contain;
  border-radius: 16px;
}
.cube-game-dialog h2 {
  font-size: clamp(1.8rem, 4vw, 3rem);
}
.cube-game-dialog .cube-game-tools {
  margin-top: 20px;
}
/* Block editor: a server-rendered block keeps something to click while its preview loads (the header's
   booking link sits in a row of buttons, so it keeps its own height). */
.cube-editor-block:not(.cube-editor-booking-link) {
  min-height: 50px;
}
.cube-enquiry {
  max-width: 100%;
}
@media (max-width: 760px) {
  .cube-venue-info {
    grid-template-columns: 1fr;
  }
  .cube-film-content {
    padding: 28px 24px;
  }
  .cube-film {
    min-height: 600px;
  }
  .cube-game-rail {
    grid-auto-columns: 65vw;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cube-film-video {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  .cube-film-manual .cube-film-video {
    display: block;
  }
}

@media (min-width: 900px) {
  .cube-film-portrait-only {
    min-height: 650px;
    align-items: center;
  }
  .cube-film-portrait-only .cube-film-video,
  .cube-film-portrait-only .cube-film-poster {
    left: auto;
    right: 24px;
    top: 24px;
    bottom: 24px;
    width: calc(38% - 24px);
    height: calc(100% - 48px);
    object-fit: contain;
    border-radius: 22px;
  }
  .cube-film-portrait-only .cube-film-content {
    width: 62%;
  }
  .cube-film-portrait-only .cube-film-scrim {
    background: radial-gradient(
      ellipse at 100% 50%,
      #5a082544,
      transparent 75%
    );
  }
}

.cube-film-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
