
/*
 * THE BET GENERATOR
 * Results Betting Level Switcher
 * Version 4.0
 *
 * GOLD   = Internal RED
 * SILVER = Internal GREEN
 * BRONZE = Internal YELLOW
 *
 * Metallic buttons with boxed prices.
 */

@import url('https://fonts.googleapis.com/css2?family=Anton&display=swap');

.tbg-results-switcher {
  width: 100%;
  max-width: 760px;
  margin: 22px auto 24px;
  box-sizing: border-box;
}

.tbg-results-switcher-heading {
  margin: 0 0 6px !important;
  text-align: center;
  font-size: 25px !important;
  line-height: 1.25 !important;
  font-weight: 800 !important;
  color: #171717;
}

.tbg-results-switcher-description {
  margin: 0 0 16px !important;
  text-align: center;
  font-size: 15px !important;
  line-height: 1.4 !important;
  color: #555;
}

.tbg-results-switcher-buttons {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* SHARED METALLIC BUTTON */

.tbg-results-switcher-button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  width: 100%;
  min-width: 0;
  min-height: 125px;
  padding: 15px 10px;

  overflow: hidden;
  border: 2px solid rgba(255,255,255,.65);
  border-radius: 13px;

  color: #fff;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;

  box-shadow:
    inset 0 2px 3px rgba(255,255,255,.65),
    inset 0 -3px 5px rgba(0,0,0,.18),
    0 4px 9px rgba(0,0,0,.20);

  transition:
    transform .15s ease,
    box-shadow .15s ease,
    filter .15s ease;
}

/* GLOSSY REFLECTION */

.tbg-results-switcher-button::before {
  content: "";
  position: absolute;
  top: 3px;
  left: 5%;
  width: 90%;
  height: 38%;
  border-radius: 50% 50% 35% 35%;
  background: linear-gradient(
    to bottom,
    rgba(255,255,255,.38),
    rgba(255,255,255,0)
  );
  pointer-events: none;
}

/* GOLD — INTERNAL RED */

.tbg-results-switcher-red {
  background: linear-gradient(
    135deg,
    #ffe568 0%,
    #e8ac00 45%,
    #bb7800 100%
  );
  border-color: #f8dc78;
}

/* SILVER — INTERNAL GREEN */

.tbg-results-switcher-green {
  background: linear-gradient(
    135deg,
    #e2e8ec 0%,
    #a3b0bb 48%,
    #6d8090 100%
  );
  border-color: #e5e9ed;
}

/* BRONZE — INTERNAL YELLOW */

.tbg-results-switcher-yellow {
  background: linear-gradient(
    135deg,
    #f6b16d 0%,
    #cf782e 48%,
    #96501d 100%
  );
  border-color: #efba87;
}

/* BUTTON INTERACTIONS */

.tbg-results-switcher-button:hover {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 2px 3px rgba(255,255,255,.65),
    0 6px 14px rgba(0,0,0,.25);
}

.tbg-results-switcher-button:active {
  transform: translateY(0);
}

.tbg-results-switcher-button:focus-visible {
  outline: 3px solid #1479d1;
  outline-offset: 3px;
}

/* SHARED TEXT */

.tbg-results-switcher-name,
.tbg-results-switcher-price,
.tbg-results-switcher-detail,
.tbg-results-switcher-indicator {
  position: relative;
  z-index: 1;
  display: block;
  color: #fff;
  text-shadow: 0 1px 2px rgba(0,0,0,.65);
}

/* LEVEL NAME */

.tbg-results-switcher-name {
  font-family: Anton, Impact, "Arial Narrow", sans-serif;
  font-size: 25px;
  font-weight: 400;
  line-height: 1.15;
  letter-spacing: .5px;
  text-transform: uppercase;
}

/* BLACK PRICE BOX WITH GOLD BORDER */

.tbg-results-switcher-button
.tbg-results-switcher-price {
  display: inline-block;
  width: auto;
  margin-top: 9px;
  padding: 5px 12px;

  background: #111111;
  color: #ffffff !important;

  border: 2px solid #d5ad56;
  border-radius: 9px;

  font-size: 25px;
  font-weight: 800;
  line-height: 1.1;
  text-shadow: none;

  box-shadow:
    inset 0 1px 2px rgba(255,255,255,.18),
    0 2px 4px rgba(0,0,0,.25);
}

/* SUPPORTING TEXT */

.tbg-results-switcher-detail {
  margin-top: 7px;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.tbg-results-switcher-indicator {
  margin-top: 4px;
  font-size: 24px;
  line-height: 1;
}

/* DARK LEVEL NAMES */

.tbg-results-switcher-red
.tbg-results-switcher-name,
.tbg-results-switcher-green
.tbg-results-switcher-name,
.tbg-results-switcher-yellow
.tbg-results-switcher-name {
  color: #242424;
  text-shadow: 0 1px 1px rgba(255,255,255,.45);
}

/* HOVER TEXT COLORS */

.tbg-results-switcher-button:hover
.tbg-results-switcher-price {
  color: #ffffff !important;
}

.tbg-results-switcher-button:hover
.tbg-results-switcher-detail,
.tbg-results-switcher-button:hover
.tbg-results-switcher-indicator {
  color: #ffffff;
}

.tbg-results-switcher-button:hover
.tbg-results-switcher-name {
  color: #242424;
}

/* CURRENT LEVEL LABEL */

.tbg-results-switcher-current {
  margin: 14px 0 0 !important;
  text-align: center;
  font-size: 14px !important;
  font-weight: 700;
  color: #444;
}

/* MOBILE PHONES */

@media (max-width: 600px) {

  .tbg-results-switcher {
    margin-top: 18px;
    margin-bottom: 20px;
  }

  .tbg-results-switcher-heading {
    font-size: 22px !important;
  }

  .tbg-results-switcher-description {
    font-size: 14px !important;
    margin-bottom: 13px !important;
  }

  .tbg-results-switcher-buttons {
    gap: 9px;
  }

  .tbg-results-switcher-button {
    min-height: 115px;
    padding: 12px 7px;
    border-radius: 11px;
  }

  .tbg-results-switcher-name {
    font-size: 22px;
  }

  .tbg-results-switcher-button
  .tbg-results-switcher-price {
    font-size: 23px;
    padding: 5px 10px;
  }

  .tbg-results-switcher-detail {
    font-size: 12px;
  }

  .tbg-results-switcher-indicator {
    font-size: 21px;
  }

  .tbg-results-switcher-current {
    font-size: 13px !important;
  }
}

/* EXTRA-SMALL PHONES */

@media (max-width: 360px) {

  .tbg-results-switcher-name {
    font-size: 19px;
  }

  .tbg-results-switcher-button
  .tbg-results-switcher-price {
    font-size: 21px;
    padding: 4px 9px;
  }

  .tbg-results-switcher-detail {
    font-size: 11px;
  }
}

/* REDUCED MOTION */

@media (prefers-reduced-motion: reduce) {

  .tbg-results-switcher-button {
    transition: none;
  }

  .tbg-results-switcher-button:hover {
    transform: none;
  }
}
