/* White Colour fork: the White declaration button, break status and credits. */

/* Sits on top of the Hit button in the same column, same width. */
.whiteButton {
  position: relative;
  z-index: 1;
  width: 120px;
  height: 34px;
  margin-bottom: 4px;
  box-sizing: border-box;
  padding: 0;
  border: 3px solid #a1a1aa;
  border-radius: 10px;
  background: #f4f4f5;
  color: #18181b;
  font-family: var(--font-family-primary);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0.04em;
  box-shadow: 1px 1px 0 rgb(0 0 0 / 40%);
  cursor: pointer;
  user-select: none;
}

.whiteButton:not(:disabled):hover {
  background: #fff;
}

.whiteButton:active {
  transform: scale(0.97);
}

.whiteButton:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Unavailable: still visible so the player learns where it lives. */
.whiteButton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Declared for this shot. */
.whiteButton.is-declared,
.whiteButton[aria-pressed="true"] {
  background: #fff;
  border-color: #facc15;
  box-shadow:
    0 0 0 2px #facc15,
    0 0 12px 2px rgb(250 204 21 / 70%);
}

/* Two lines: the break, then the table (total and visit). */
.wcStatus {
  font-size: 22px;
  line-height: 1.25;
  color: #fff;
  white-space: pre;
  text-align: right;
}

/* New rack, next to the status lines. */
.wcNewRack {
  padding: 4px 10px;
  border: 2px solid #a1a1aa;
  border-radius: 8px;
  background: #f4f4f5;
  color: #18181b;
  font-family: var(--font-family-primary);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  filter: none;
}

.wcNewRack:not(:disabled):hover {
  background: #fff;
}

.wcNewRack:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

.wcNewRack:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.wcNewRackIcon {
  display: none;
}

/* Position from the site (?position=): heading, question, Full table link,
   right above the status lines. */
.wcPosition {
  max-width: 360px;
  margin: 0 0 6px auto;
  font-family: var(--font-family-primary);
  color: #fff;
  text-align: right;
  filter: drop-shadow(0.08em 0.08em black);
}

.wcPositionTitle {
  font-size: 20px;
  font-weight: 600;
  line-height: 1.2;
}

.wcPositionQuestion {
  font-size: 13px;
  line-height: 1.3;
  color: rgb(255 255 255 / 85%);
}

.wcFullTable {
  display: inline-block;
  margin-top: 2px;
  font-size: 13px;
  color: #facc15;
}

.wcFullTable:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 2px;
}

/* Invert mouse aim, in the menu: lit while on. */
.menuButton.wcInvert {
  font-size: 18px;
  line-height: 1;
}

.menuButton.wcInvert[aria-pressed="true"] {
  box-shadow: inset 0 0 0 2px #facc15;
}

.wcCredits {
  position: fixed;
  top: 4px;
  left: 6px;
  z-index: 30;
  margin: 0;
  max-width: calc(100% - 12px);
  font-family: var(--font-family-primary);
  font-size: 11px;
  line-height: 1.3;
  color: rgb(255 255 255 / 70%);
  pointer-events: none;
}

.wcCredits a {
  color: rgb(255 255 255 / 85%);
  pointer-events: auto;
}

@media (orientation: portrait) {
  /* The bottom-right corner belongs to the spin ball and menu here; keep the
     status at the top, under the credits line. */
  #snookerScoreOverlay {
    top: 40px;
    right: 8px;
    bottom: auto;
  }

  .wcStatus {
    font-size: 16px;
  }

  /* Status lines and the New rack icon share one row above the table. */
  #snookerScore {
    flex-wrap: nowrap;
    gap: 8px;
  }

  .wcNewRack {
    font-size: 20px;
    line-height: 1;
    padding: 4px 8px;
  }

  .wcNewRackIcon {
    display: inline;
  }

  .wcNewRackText {
    display: none;
  }

  .wcCredits {
    font-size: 10px;
  }

  .wcPosition {
    max-width: 70vw;
  }

  .wcPositionTitle {
    font-size: 16px;
  }

  .wcPositionQuestion,
  .wcFullTable {
    font-size: 12px;
  }
}
