/*
 * Texteractive 2026 Event Theme
 * Built to match the marquee-style Gameshow artwork:
 * burgundy, gold, orange, and warm ivory surfaces.
 *
 * All rules use !important to override Bootstrap and base theme styles.
 */

:root {
  --gameshow-burgundy: #9c1828;
  --gameshow-burgundy-dark: #77111c;
  --gameshow-red: #C62828;
  --gameshow-gold: #F5C518;
  --gameshow-green: #2E7D32;
  --gameshow-blue: #1565C0;
  --gameshow-purple: #6A1FA0;
  --gameshow-gold-bright: #FFD700;
  --gameshow-orange: #f56b1f;
  --gameshow-ivory: #fff9ef;
  --gameshow-cream: rgba(255, 249, 239, 0.94);
  --gameshow-outline: #e7c86a;
  --gameshow-text: #0b0808;
  --gameshow-text-soft: #7c5a3f;
  --gameshow-success: #3c8f4a;
  --gameshow-curtain-image: url("../../img/event-themes/Texteractive2026/GameBackground.jpg");
}

/* ── Page background ─────────────────────────────────────────────────────── */
html {
  background:
    radial-gradient(circle at top, rgba(255, 216, 74, 0.2), transparent 34%),
    linear-gradient(180deg, #fffdf7 0%, #fff5df 100%) !important;
}

.gtranslate_wrapper {
  display: none !important;
}

#survey_content,
#survey_questions_carousel,
#survey_questions_carousel .carousel-inner,
#survey_questions_carousel .carousel-item {
  background:
    linear-gradient(180deg, rgba(39, 0, 0, 0.28), rgba(39, 0, 0, 0.28)),
    var(--gameshow-curtain-image) center center / cover no-repeat !important;
}

/* ── Body / text ─────────────────────────────────────────────────────────── */
body {
  color: var(--gameshow-text) !important;
  background:
    linear-gradient(180deg, rgba(39, 0, 0, 0.2), rgba(39, 0, 0, 0.34)),
    var(--gameshow-curtain-image) center top / cover no-repeat fixed !important;
}

.participant-page-content {
  margin-top: 0 !important;
}

@media only screen and (max-width: 768px) {
  html,
  body,
  #survey_content,
  #survey_questions_carousel,
  #survey_questions_carousel .carousel-inner,
  #survey_questions_carousel .carousel-item,
  #opt-in-form,
  #participant-answer {
    background-color: var(--gameshow-burgundy-dark) !important;
    background-image:
      linear-gradient(180deg, rgba(39, 0, 0, 0.22), rgba(39, 0, 0, 0.38)),
      var(--gameshow-curtain-image) !important;
    background-position: center top, center top !important;
    background-repeat: no-repeat, repeat-y !important;
    background-size: auto, auto 150vh !important;
    background-attachment: scroll, scroll !important;
  }
}

#survey_questions_carousel,
#survey_questions_carousel h1,
#survey_questions_carousel h2,
#survey_questions_carousel h3,
#survey_questions_carousel h4,
#survey_questions_carousel h5,
#survey_questions_carousel p,
#survey_questions_carousel .small,
#survey_questions_carousel .font-weight-bold,
#survey_questions_carousel .font-weight-bolder {
  color: var(--gameshow-ivory) !important;
}

a,
.nav-link,
.navbar-dark .navbar-nav .nav-link {
  color: var(--gameshow-ivory) !important;
}

/* ── Screen shell / server-rendered fragments ───────────────────────────── */
#screen,
#screen-minimal,
#screen-content,
#screen-polling,
#bg-access-code-wrapper .access-code-screen,
#brand-logo-wrapper,
.powered-by {
  color: var(--gameshow-ivory) !important;
}

/* Screen pages inherit .text-dark/.text-light from outer layout wrappers.
   Override that inheritance at the screen container level. */
.row.h-100.justify-content-center.align-items-center.text-dark,
.row.h-100.justify-content-center.align-items-center.text-light,
#screen.text-dark,
#screen.text-light,
#screen-minimal.text-dark,
#screen-minimal.text-light,
#screen .text-dark,
#screen .text-light,
#screen-minimal .text-dark,
#screen-minimal .text-light,
#bg-access-code-wrapper .text-dark,
#bg-access-code-wrapper .text-light {
  color: var(--gameshow-ivory) !important;
}

#screen h1,
#screen h2,
#screen h3,
#screen h4,
#screen h5,
#screen h6,
#screen p,
#screen span,
#screen-minimal h1,
#screen-minimal h2,
#screen-minimal h3,
#screen-minimal h4,
#screen-minimal h5,
#screen-minimal h6,
#screen-minimal p,
#screen-minimal span,
#bg-access-code-wrapper h1,
#bg-access-code-wrapper h2,
#bg-access-code-wrapper h3,
#bg-access-code-wrapper h4,
#bg-access-code-wrapper h5,
#bg-access-code-wrapper h6,
#bg-access-code-wrapper p,
#bg-access-code-wrapper span,
.screen-text,
.screen-question-text,
.screen-status-text,
.screen-free-form-text {
  color: var(--gameshow-ivory) !important;
  text-shadow:
    0 3px 0 rgba(70, 0, 0, 0.45),
    0 10px 22px rgba(0, 0, 0, 0.35) !important;
}

/* Target the exact screen text nodes rendered by the templates.
   Base theme rules like #screen-minimal .question-text are intentionally strong. */
#screen #message_text.screen-status-text,
#screen-minimal #message_text.screen-status-text,
#screen .screen-question-text,
#screen-minimal .screen-question-text,
#screen .screen-content-text.screen-content-question-text,
#screen-minimal .question-text.screen-primary-question-text,
#screen-minimal .free-form.screen-free-form-text {
  color: var(--gameshow-ivory) !important;
  text-shadow:
    0 3px 0 rgba(70, 0, 0, 0.45),
    0 10px 22px rgba(0, 0, 0, 0.35) !important;
}

#screen #message_text.screen-status-text,
#screen .screen-primary-question-text,
#screen .screen-card-question-text,
#screen .screen-content-text.screen-content-question-text,
#screen-minimal .question-text.screen-primary-question-text,
#screen-minimal .free-form.screen-free-form-text {
  background:
    linear-gradient(180deg, rgba(156, 24, 40, 0.92), rgba(119, 17, 28, 0.92)) !important;
  border: 3px solid var(--gameshow-gold) !important;
  border-radius: 24px !important;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 236, 170, 0.28) !important;
}

#screen #message_text.screen-status-text,
#screen .screen-primary-question-text,
#screen .screen-card-question-text,
#screen .screen-content-text.screen-content-question-text {
  display: inline-block !important;
  padding: 0.6rem 1rem !important;
}

#screen-minimal .question-text.screen-primary-question-text {
  padding: 0.8rem 1rem !important;
}

#screen-minimal .free-form.screen-free-form-text {
  padding: 1rem !important;
}

.screen-status-text,
.screen-primary-question-text,
.screen-card-question-text,
#bg-access-code-wrapper .access-code-screen,
.powered-by {
  text-align: center !important;
}

#bg-access-code-wrapper .access-code-screen {
  background: linear-gradient(180deg, rgba(156, 24, 40, 0.92), rgba(119, 17, 28, 0.92)) !important;
  border: 3px solid var(--gameshow-gold) !important;
  border-radius: 24px !important;
  box-shadow:
    0 16px 30px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 236, 170, 0.28) !important;
  padding: 1rem 1.1rem !important;
}

#bg-access-code-wrapper .access-code-screen img {
  border-radius: 18px !important;
  background: var(--gameshow-ivory) !important;
  padding: 0.5rem !important;
}

/* ── Navbar ──────────────────────────────────────────────────────────────── */
.navbar-dark {
  background:
    linear-gradient(135deg, var(--gameshow-burgundy-dark), var(--gameshow-burgundy)) !important;
  border-bottom: 4px solid var(--gameshow-gold) !important;
  box-shadow: 0 8px 24px rgba(119, 17, 28, 0.25) !important;
}

/* ── Primary buttons ─────────────────────────────────────────────────────── */
.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.action-bar .submit-button-col {
  background:
    linear-gradient(180deg, var(--gameshow-red), var(--gameshow-burgundy)) !important;
  border-color: var(--gameshow-gold) !important;
  color: #fffdf8 !important;
  box-shadow: 0 6px 18px rgba(156, 24, 40, 0.28) !important;
}

#participant-answer {
  padding-bottom: 12rem !important;
}

#participant-answer .action-bar {
  bottom: 5.5rem !important;
  background: transparent !important;
  box-shadow: none !important;
  border: 0 !important;
  padding: 0 1rem !important;
  row-gap: 0.65rem !important;
  justify-content: center !important;
}

#participant-answer .action-bar .submit-button-col,
#participant-answer .action-bar .skip-button-col {
  flex: 0 0 100% !important;
  max-width: 100% !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

#participant-answer .action-bar .submit-button-col {
  order: 1 !important;
}

#participant-answer .action-bar .skip-button-col {
  order: 2 !important;
}

#participant-answer .action-bar .submit-button {
  width: min(100%, 26rem) !important;
  height: auto !important;
  min-height: 3.5rem !important;
  margin: 0 auto !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-shadow: none !important;
}

#participant-answer .text-dark {
  color: var(--gameshow-ivory) !important;
}

#participant-answer h1,
#participant-answer h2,
#participant-answer h3,
#participant-answer h4,
#participant-answer h5,
#participant-answer p,
#participant-answer span,
#participant-answer #message_text,
#previous-question-text-wrapper,
#previous-question-text-wrapper h1,
#previous-question-text {
  color: var(--gameshow-ivory) !important;
}

#participant-answer h1,
#participant-answer h2,
#participant-answer h3,
#participant-answer h4,
#participant-answer h5,
#participant-answer #message_text,
#previous-question-text-wrapper,
#previous-question-text-wrapper h1,
#previous-question-text {
  text-align: center !important;
}

#participant-answer .action-bar .submit-button.btn-primary,
#participant-answer .action-bar .submit-button.btn-primary:hover,
#participant-answer .action-bar .submit-button.btn-primary:focus,
#participant-answer .action-bar .submit-button.btn-primary:active {
  background: linear-gradient(180deg, #ff9440 0%, #f56b1f 100%) !important;
  border: 0 !important;
  color: #fffdf8 !important;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.28),
    inset 0 3px 8px rgba(255, 255, 255, 0.22),
    inset 0 -3px 8px rgba(0, 0, 0, 0.18) !important;
}

#participant-answer .action-bar .skip-button.btn-link {
  width: auto !important;
  height: auto !important;
  padding: 0.1rem 0 !important;
  color: var(--gameshow-ivory) !important;
  font-weight: 700 !important;
  text-decoration: none !important;
  text-transform: uppercase !important;
  box-shadow: none !important;
  background: transparent !important;
  border: 0 !important;
}

#participant-answer .action-bar .skip-button.btn-link:hover,
#participant-answer .action-bar .skip-button.btn-link:focus {
  color: #ffd8ae !important;
}

/* ── Answer / poll bars ──────────────────────────────────────────────────── */
.screen-bar {
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.96), rgba(255, 242, 216, 0.96)) !important;
  border: 2px solid var(--gameshow-outline) !important;
  color: var(--gameshow-text) !important;
  overflow: hidden !important;
}

.my-choice .screen-bar {
  background:
    linear-gradient(180deg, rgba(255, 249, 239, 0.96), rgba(255, 242, 216, 0.96)) !important;
  border-color: var(--gameshow-outline) !important;
  box-shadow: none !important;
}

#participant-answer .screen-bar {
  position: relative !important;
  min-height: 3.25rem !important;
}

#participant-answer .my-choice .screen-bar::before {
  content: "" !important;
  position: absolute !important;
  top: 50% !important;
  left: 0.45rem !important;
  transform: translateY(-50%) !important;
  width: 0 !important;
  height: 0 !important;
  border-top: 0.5rem solid transparent !important;
  border-bottom: 0.5rem solid transparent !important;
  border-left: 0 !important;
  border-right: 0.7rem solid rgba(255, 215, 0, 0.98) !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  pointer-events: none !important;
  z-index: 3 !important;
}

#participant-answer .my-choice .screen-bar-meta {
  padding-left: 1.65rem !important;
}

#participant-answer .my-choice .screen-bar::after {
  content: none !important;
}

#participant-answer .correct-shown.my-choice:not(.correct) {
  opacity: 0.56 !important;
}

#participant-answer .correct-shown.my-choice .screen-bar {
  box-shadow: none !important;
}

#participant-answer .correct-shown.my-choice .screen-bar::before {
  border-right-color: rgba(255, 215, 0, 1) !important;
  opacity: 1 !important;
}

#participant-answer .correct-shown.my-choice .screen-bar-label,
#participant-answer .correct-shown.my-choice .screen-bar-percentage {
  text-shadow:
    0 0 4px rgba(255, 245, 186, 0.22),
    -1px -1px 0 rgba(0, 0, 0, 0.88),
    1px -1px 0 rgba(0, 0, 0, 0.88),
    -1px 1px 0 rgba(0, 0, 0, 0.88),
    1px 1px 0 rgba(0, 0, 0, 0.88),
    -2px 0 0 rgba(0, 0, 0, 0.66),
    2px 0 0 rgba(0, 0, 0, 0.66),
    0 -2px 0 rgba(0, 0, 0, 0.66),
    0 2px 0 rgba(0, 0, 0, 0.66),
    0 0 10px rgba(0, 0, 0, 0.52) !important;
}

#participant-answer .screen-bar-label {
  color: var(--gameshow-ivory) !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  pointer-events: none !important;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.82) !important;
  text-shadow:
        0 2px 0 rgba(0, 0, 0, 0.62),
    0 0 10px rgba(0, 0, 0, 0.5) !important;
}

#participant-answer .screen-bar-meta {
  position: absolute !important;
  inset: 0 !important;
  z-index: 2 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding: 0 1rem !important;
  pointer-events: none !important;
}

#participant-answer .screen-bar-percentage {
  flex: 0 0 auto !important;
  color: var(--gameshow-ivory) !important;
  white-space: nowrap !important;
  text-align: right !important;
  -webkit-text-stroke: 1px rgba(0, 0, 0, 0.88) !important;
  text-shadow:
    -1px -1px 0 rgba(0, 0, 0, 0.88),
    1px -1px 0 rgba(0, 0, 0, 0.88),
    -1px 1px 0 rgba(0, 0, 0, 0.88),
    1px 1px 0 rgba(0, 0, 0, 0.88),
    -2px 0 0 rgba(0, 0, 0, 0.66),
    2px 0 0 rgba(0, 0, 0, 0.66),
    0 -2px 0 rgba(0, 0, 0, 0.66),
    0 2px 0 rgba(0, 0, 0, 0.66),
    0 0 10px rgba(0, 0, 0, 0.52) !important;
}

#participant-answer .screen-bar-label {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}


#participant-answer .screen-bar.active {
  position: absolute !important;
  inset: 0 auto 0 0 !important;
  min-height: 0 !important;
  height: 100% !important;
  border-width: 0 !important;
  box-shadow: none !important;
  z-index: 1 !important;
}

.screen-bar.active {
  background:
    linear-gradient(180deg, var(--gameshow-red), var(--gameshow-burgundy)) !important;
  border-color: var(--gameshow-gold) !important;
  color: #fffdf8 !important;
}
.screen-bar.active.highlight {
  background:
    linear-gradient(180deg, var(--gameshow-gold-bright), var(--gameshow-gold)) !important;
  color: var(--gameshow-burgundy-dark) !important;
}
.correct .screen-bar.active {
  background-color: var(--gameshow-success) !important;
  border-color: #9ed49f !important;
}

/* ── Timer bars ──────────────────────────────────────────────────────────── */
#timer-bar,
#team-rep-timer-bar {
  background:
    linear-gradient(90deg, var(--gameshow-orange), var(--gameshow-gold)) !important;
}

/* ── Progress / points ───────────────────────────────────────────────────── */
.progress-line,
.progress-amount {
  background:
    linear-gradient(180deg, var(--gameshow-orange), #dc4e11) !important;
}

/* ── Slider thumb ────────────────────────────────────────────────────────── */
.slider::-webkit-slider-thumb {
  background-color: var(--gameshow-burgundy) !important;
  border: 2px solid var(--gameshow-gold) !important;
}

/* ── Alias / team bar ────────────────────────────────────────────────────── */
#user-info {
  margin-top: 0 !important;
  margin-bottom: 0.15rem !important;
  padding-top: 0 !important;
}

.alias-bar {
  background: transparent !important;
  color: var(--gameshow-ivory) !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0.7rem 1rem !important;
  align-items: center !important;
  border-radius: 2.2rem !important;
  margin-top: 0 !important;
}

.alias-bar__summary-wrap {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex: 0 0 100% !important;
  max-width: 100% !important;
  width: 100% !important;
}

.alias-bar__summary {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: none !important;
  gap: 0.2rem !important;
}

.alias-bar__name-row {
  text-align: center !important;
}

.alias-bar__name {
  display: inline-block !important;
  font-size: clamp(1.15rem, 2.8vw, 1.7rem) !important;
  line-height: 1.1 !important;
}

.alias-bar__team-line {
  text-align: center !important;
  min-height: 1.2rem !important;
}

.alias-bar__team-name {
  font-size: clamp(0.84rem, 1.8vw, 1rem) !important;
  font-weight: 700 !important;
  line-height: 1.1 !important;
}

.alias-bar__stats-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
  align-items: center !important;
  gap: 0.6rem !important;
  width: 100% !important;
}

.alias-bar__stat {
  min-width: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 0.12rem !important;
}

.alias-bar__stats-row--mock {
  margin-top: 0.15rem !important;
}

.alias-bar__stat--left {
  align-items: flex-start !important;
  text-align: left !important;
  justify-self: start !important;
}

.alias-bar__stat--center {
  align-items: center !important;
  text-align: center !important;
  justify-self: center !important;
}

.alias-bar__stat--right {
  align-items: flex-end !important;
  text-align: right !important;
  justify-self: end !important;
}

.alias-bar__panel-title {
  font-size: clamp(1rem, 2vw, 1.18rem) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  margin-bottom: 0.1rem !important;
}

.alias-bar__stat-label {
  font-size: 0.72rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em !important;
  opacity: 0.82 !important;
  text-transform: uppercase !important;
}

.alias-bar__stat-line {
  font-size: clamp(0.78rem, 1.7vw, 0.98rem) !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  white-space: nowrap !important;
}

.alias-bar__stat-value,
.alias-bar__stat-subvalue {
  line-height: 1.1 !important;
}

.alias-bar__stat-value {
  font-size: clamp(0.92rem, 2vw, 1.12rem) !important;
  font-weight: 800 !important;
}

.alias-bar__stat-subvalue {
  font-size: 0.82rem !important;
  font-weight: 700 !important;
  opacity: 0.92 !important;
}

.alias-bar__balance {
  font-size: 0.92rem !important;
  white-space: nowrap !important;
  background: linear-gradient(180deg, #f58a3c, #db5f16) !important;
  color: #fff7ef !important;
  border: 0 !important;
  border-radius: 14px !important;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.22),
    inset 0 1px 0 rgba(255, 220, 180, 0.35) !important;
  padding: 0.55rem 0.85rem !important;
}

.alias-bar__balance .f-700 {
  color: inherit !important;
}

/* ── Points store / purchase flow ───────────────────────────────────────── */
#points-purchase-active-content,
#points-purchase-checkout-active-content {
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.97), rgba(247, 236, 210, 0.97)) !important;
  border: 3px solid rgba(231, 200, 106, 0.9) !important;
  border-radius: 28px !important;
  box-shadow:
    0 18px 34px rgba(0, 0, 0, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.82) !important;
  color: var(--gameshow-text) !important;
  overflow: hidden !important;
}

#points-purchase-active-content h2,
#points-purchase-active-content p,
#points-purchase-checkout-active-content h2,
#points-purchase-checkout-active-content p {
  color: var(--gameshow-text) !important;
}

#points-purchase-active-content hr,
#points-purchase-checkout-active-content hr {
  border-color: rgba(122, 62, 16, 0.16) !important;
}

#points-purchase-active-content .fa-stack,
#points-purchase-checkout-active-content .fa-stack {
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.28)) !important;
}

#points-purchase-active-content .fa-circle,
#points-purchase-checkout-active-content .fa-circle {
  color: var(--gameshow-gold) !important;
}

#points-purchase-active-content .fa-store,
#points-purchase-checkout-active-content .fa-cash-register {
  color: var(--gameshow-burgundy-dark) !important;
}

#points-purchase-active-content .btn,
#points-purchase-checkout-active-content .btn {
  min-width: min(100%, 15rem) !important;
  margin: 0.25rem 0.35rem !important;
}

.btn-primary[data-toggle="modal"][data-target="#participant-boost-purchase-modal"],
.btn-primary[data-toggle="modal"][data-target="#participant-boost-purchase-modal"]:hover,
.btn-primary[data-toggle="modal"][data-target="#participant-boost-purchase-modal"]:focus,
.btn-primary[data-toggle="modal"][data-target="#participant-boost-purchase-modal"]:active {
  background: linear-gradient(180deg, #48f08b 0%, #1fc756 46%, #12823a 100%) !important;
  border: 0 !important;
  color: #fffdf8 !important;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.28),
    inset 0 3px 8px rgba(255, 255, 255, 0.2),
    inset 0 -3px 8px rgba(0, 0, 0, 0.18) !important;
}

.btn-sabotage,
.btn-sabotage:hover,
.btn-sabotage:focus,
.btn-sabotage:active {
  background: linear-gradient(180deg, #ff6d63 0%, #ff2020 46%, #b00808 100%) !important;
  border: 0 !important;
  color: #fffdf8 !important;
  box-shadow:
    0 10px 22px rgba(0, 0, 0, 0.28),
    inset 0 3px 8px rgba(255, 255, 255, 0.2),
    inset 0 -3px 8px rgba(0, 0, 0, 0.18) !important;
}

#participant-boost-purchase-modal .modal-content,
#participant-sabotage-purchase-modal .modal-content,
#participant-points-purchase-confirm-modal .modal-content {
  background:
    linear-gradient(180deg, rgba(255, 251, 242, 0.99), rgba(255, 244, 220, 0.98)) !important;
  border: 4px solid var(--gameshow-gold) !important;
  border-radius: 28px !important;
  box-shadow:
    0 24px 46px rgba(0, 0, 0, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.72) !important;
  overflow: hidden !important;
}

#participant-boost-purchase-modal .modal-header,
#participant-sabotage-purchase-modal .modal-header,
#participant-points-purchase-confirm-modal .modal-header {
  background:
    linear-gradient(135deg, var(--gameshow-burgundy-dark), var(--gameshow-burgundy)) !important;
  border-bottom: 3px solid var(--gameshow-gold) !important;
  color: var(--gameshow-ivory) !important;
}

#participant-boost-purchase-modal .modal-header {
  background: linear-gradient(135deg, #14753a, #1fc756) !important;
  border-bottom-color: #93ef8f !important;
}

#participant-sabotage-purchase-modal .modal-header {
  background:
    linear-gradient(135deg, #7e0d14, #b00808) !important;
}

#participant-boost-purchase-modal .modal-title,
#participant-sabotage-purchase-modal .modal-title,
#participant-points-purchase-confirm-modal .modal-title {
  color: var(--gameshow-ivory) !important;
  font-weight: 900 !important;
  letter-spacing: 0.02em !important;
  text-transform: uppercase !important;
}

#participant-points-purchase-confirm-modal .close,
#participant-points-purchase-confirm-modal .close:hover,
#participant-points-purchase-confirm-modal .close:focus {
  color: var(--gameshow-ivory) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#participant-boost-purchase-modal .modal-body,
#participant-sabotage-purchase-modal .modal-body,
#participant-points-purchase-confirm-modal .modal-body,
#participant-boost-purchase-modal .modal-footer,
#participant-sabotage-purchase-modal .modal-footer,
#participant-points-purchase-confirm-modal .modal-footer {
  color: var(--gameshow-text) !important;
}

#participant-boost-purchase-modal .modal-body hr,
#participant-sabotage-purchase-modal .modal-body hr {
  border-color: rgba(122, 62, 16, 0.18) !important;
}

#participant-boost-purchase-modal label,
#participant-sabotage-purchase-modal label {
  color: var(--gameshow-burgundy-dark) !important;
  font-weight: 900 !important;
  letter-spacing: 0.01em !important;
  text-transform: uppercase !important;
}

#participant-boost-purchase-modal .points-purchase-quick-add .btn,
#participant-sabotage-purchase-modal .points-purchase-quick-add .btn,
#participant-boost-purchase-modal .points-purchase-summary .btn,
#participant-sabotage-purchase-modal .points-purchase-summary .btn,
#participant-points-purchase-confirm-modal .btn {
  border-radius: 999px !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
}

#participant-boost-purchase-modal .points-purchase-quick-add .btn,
#participant-sabotage-purchase-modal .points-purchase-quick-add .btn,
#participant-boost-purchase-modal .points-purchase-summary .btn,
#participant-sabotage-purchase-modal .points-purchase-summary .btn {
  border-width: 2px !important;
  box-shadow: none !important;
}

#participant-boost-purchase-modal .points-purchase-quick-add .btn,
#participant-boost-purchase-modal .points-purchase-summary .btn {
  color: #14753a !important;
  border-color: rgba(31, 199, 86, 0.42) !important;
  background: rgba(255, 255, 255, 0.7) !important;
}

#participant-sabotage-purchase-modal .points-purchase-quick-add .btn,
#participant-sabotage-purchase-modal .points-purchase-summary .btn {
  color: #7e0d14 !important;
  border-color: rgba(176, 8, 8, 0.38) !important;
  background: rgba(255, 255, 255, 0.72) !important;
}

#participant-boost-purchase-modal .points-purchase-quick-add .btn.active,
#participant-boost-purchase-modal .points-purchase-quick-add .btn.active:hover,
#participant-boost-purchase-modal .points-purchase-quick-add .btn.active:focus {
  background: linear-gradient(180deg, #48f08b 0%, #1fc756 46%, #12823a 100%) !important;
  border-color: #93ef8f !important;
  color: #fffdf8 !important;
}

#participant-sabotage-purchase-modal .points-purchase-quick-add .btn.active,
#participant-sabotage-purchase-modal .points-purchase-quick-add .btn.active:hover,
#participant-sabotage-purchase-modal .points-purchase-quick-add .btn.active:focus {
  background:
    linear-gradient(180deg, #ff6d63 0%, #ff2020 46%, #b00808 100%) !important;
  border-color: #ffb14f !important;
  color: #fffdf8 !important;
}

#participant-boost-purchase-modal .input-group-text,
#participant-sabotage-purchase-modal .input-group-text {
  background:
    linear-gradient(180deg, rgba(156, 24, 40, 0.92), rgba(119, 17, 28, 0.92)) !important;
  color: var(--gameshow-ivory) !important;
  border-color: var(--gameshow-gold) !important;
  font-weight: 900 !important;
}

#participant-boost-purchase-modal .input-group-text {
  background: linear-gradient(180deg, #1a8f47, #14753a) !important;
  border-color: #93ef8f !important;
}

#participant-boost-purchase-modal .form-control,
#participant-boost-purchase-modal input.form-control,
#participant-boost-purchase-modal select.form-control,
#participant-sabotage-purchase-modal .form-control,
#participant-sabotage-purchase-modal input.form-control,
#participant-sabotage-purchase-modal select.form-control,
#points-purchase-sabotage-team-select {
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--gameshow-text) !important;
  border: 2px solid rgba(177, 110, 28, 0.36) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.48) !important;
}

#participant-boost-purchase-modal .form-control:focus,
#participant-sabotage-purchase-modal .form-control:focus,
#points-purchase-sabotage-team-select:focus {
  border-color: var(--gameshow-orange) !important;
  box-shadow: 0 0 0 0.2rem rgba(245, 107, 31, 0.18) !important;
}

#participant-boost-purchase-modal .form-control:focus {
  border-color: #1fc756 !important;
  box-shadow: 0 0 0 0.2rem rgba(31, 199, 86, 0.18) !important;
}

#participant-boost-purchase-modal .points-purchase-summary,
#participant-sabotage-purchase-modal .points-purchase-summary {
  background:
    linear-gradient(180deg, rgba(255, 248, 233, 0.98), rgba(255, 238, 204, 0.98)) !important;
  border: 2px solid rgba(231, 200, 106, 0.72) !important;
  border-radius: 22px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65) !important;
}

#participant-boost-purchase-modal .points-purchase-summary,
#participant-boost-purchase-modal #participant-boost-purchase-modal-user-info {
  background:
    linear-gradient(180deg, rgba(241, 255, 244, 0.98), rgba(222, 248, 228, 0.98)) !important;
  border-color: rgba(69, 191, 108, 0.55) !important;
}

#participant-boost-purchase-modal .points-purchase-summary-copy p,
#participant-sabotage-purchase-modal .points-purchase-summary-copy p {
  color: var(--gameshow-burgundy-dark) !important;
  font-weight: 800 !important;
}

#participant-boost-purchase-modal .points-purchase-summary-copy p,
#participant-boost-purchase-modal .modal-body h1,
#points-purchase-boost-total-cost,
#participant-boost-purchase-modal #user-purchase-balance-modal {
  color: #14753a !important;
}

#participant-boost-purchase-modal .points-purchase-summary .form-text,
#participant-sabotage-purchase-modal .points-purchase-summary .form-text,
#participant-boost-purchase-modal small.form-text,
#participant-sabotage-purchase-modal small.form-text {
  color: #6f5639 !important;
}

#participant-boost-purchase-total-cost,
#participant-sabotage-total-cost {
  color: var(--gameshow-burgundy-dark) !important;
}

#points-purchase-boost-total-cost,
#points-purchase-sabotage-total-cost {
  color: var(--gameshow-burgundy-dark) !important;
  font-weight: 900 !important;
}

#participant-boost-purchase-modal .modal-body h1,
#participant-sabotage-purchase-modal .modal-body h1 {
  color: var(--gameshow-burgundy-dark) !important;
  font-weight: 900 !important;
}

#participant-boost-purchase-modal #participant-boost-purchase-modal-user-info,
#participant-sabotage-purchase-modal #participant-sabotage-purchase-modal-user-info {
  background:
    linear-gradient(180deg, rgba(255, 248, 233, 0.98), rgba(255, 238, 204, 0.98)) !important;
  border: 2px solid rgba(231, 200, 106, 0.72) !important;
  border-radius: 22px !important;
  padding: 0.85rem 1rem !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.64) !important;
}

#participant-sabotage-purchase-modal #user-purchase-balance-modal {
  color: var(--gameshow-red) !important;
  font-weight: 900 !important;
}

#participant-boost-purchase-form-error-msg,
#participant-sabotage-purchase-form-error-msg {
  background: rgba(198, 40, 40, 0.08) !important;
  border: 1px solid rgba(198, 40, 40, 0.28) !important;
  border-radius: 16px !important;
  color: #8c1818 !important;
  font-weight: 700 !important;
  margin-top: 0.75rem !important;
  padding: 0.75rem 0.9rem !important;
}

#participant-points-purchase-confirm-message {
  color: var(--gameshow-burgundy-dark) !important;
  font-weight: 700 !important;
  line-height: 1.45 !important;
}

#participant-points-purchase-confirm-modal .btn-secondary,
#participant-points-purchase-confirm-modal .btn-secondary:hover,
#participant-points-purchase-confirm-modal .btn-secondary:focus {
  background: rgba(255, 255, 255, 0.78) !important;
  border: 2px solid rgba(156, 24, 40, 0.22) !important;
  color: var(--gameshow-burgundy-dark) !important;
}

@media only screen and (max-width: 768px) {
  #points-purchase-active-content,
  #points-purchase-checkout-active-content {
    padding: 1.2rem 1rem !important;
    border-radius: 24px !important;
  }

  #points-purchase-active-content .btn,
  #points-purchase-checkout-active-content .btn {
    width: min(100%, 20rem) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .alias-bar {
    padding: 0.85rem 1rem !important;
  }

  .alias-bar__stats-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 0.45rem !important;
  }

  .alias-bar__summary {
    width: 100% !important;
  }

  .alias-bar__panel-title {
    font-size: 0.98rem !important;
  }

  .alias-bar__stat-line {
    font-size: 0.78rem !important;
    white-space: nowrap !important;
  }

  .alias-bar__balance {
    font-size: 0.84rem !important;
    padding: 0.48rem 0.72rem !important;
  }

  #participant-boost-purchase-modal .modal-content,
  #participant-sabotage-purchase-modal .modal-content,
  #participant-points-purchase-confirm-modal .modal-content {
    border-radius: 24px !important;
  }
}

@media only screen and (max-width: 520px) {
  #participant-answer {
    padding-bottom: 7rem !important;
  }

  #participant-answer .answer-grid {
    gap: 0.8rem !important;
  }

  #participant-answer .answer-grid > .checkbox_label,
  #participant-answer .answer-grid > .radio_label,
  #participant-answer .btn-group-toggle > .checkbox_label,
  #participant-answer .btn-group-toggle > .radio_label,
  #pollOptions .btn-group-toggle > .checkbox_label,
  #pollOptions .btn-group-toggle > .radio_label,
  .checkbox_label,
  .radio_label {
    width: min(100%, 24rem) !important;
    max-width: 24rem !important;
    min-height: 3.45rem !important;
    font-size: 1rem !important;
    padding: 0.8rem 1rem !important;
  }

  #participant-answer .action-bar {
    bottom: 2.5rem !important;
    padding: 0 0.75rem !important;
    row-gap: 0.45rem !important;
  }

  #participant-answer .action-bar .submit-button {
    min-height: 3.1rem !important;
    width: min(100%, 22rem) !important;
    font-size: 1rem !important;
  }

  #participant-answer .action-bar .skip-button.btn-link {
    font-size: 0.84rem !important;
  }

  .alias-bar {
    padding: 0.75rem 0.8rem !important;
  }

  .alias-bar__stats-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 0.3rem !important;
    align-items: center !important;
  }

  .alias-bar__stat--left,
  .alias-bar__stat--right {
    justify-self: stretch !important;
  }

  .alias-bar__stat--left {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .alias-bar__stat--right {
    align-items: flex-end !important;
    text-align: right !important;
  }

  .alias-bar__name {
    font-size: 1.35rem !important;
  }

  .alias-bar__team-name {
    font-size: 0.88rem !important;
  }

  .alias-bar__panel-title {
    font-size: 0.92rem !important;
  }

  .alias-bar__stat-line {
    font-size: 0.72rem !important;
  }

  .alias-bar__balance {
    font-size: 0.78rem !important;
    padding: 0.32rem 0.5rem !important;
  }

  #points-purchase-active-content,
  #points-purchase-checkout-active-content {
    padding: 1rem 0.85rem !important;
  }

  #points-purchase-active-content h2,
  #points-purchase-checkout-active-content h2 {
    font-size: 1.4rem !important;
  }

  #points-purchase-active-content p,
  #points-purchase-checkout-active-content p {
    font-size: 0.94rem !important;
  }

  #participant-boost-purchase-modal .modal-header,
  #participant-sabotage-purchase-modal .modal-header,
  #participant-points-purchase-confirm-modal .modal-header {
    padding: 0.85rem 1rem !important;
  }

  #participant-boost-purchase-modal .modal-body,
  #participant-sabotage-purchase-modal .modal-body,
  #participant-points-purchase-confirm-modal .modal-body,
  #participant-boost-purchase-modal .modal-footer,
  #participant-sabotage-purchase-modal .modal-footer,
  #participant-points-purchase-confirm-modal .modal-footer {
    padding-left: 0.9rem !important;
    padding-right: 0.9rem !important;
  }
}

@media only screen and (max-width: 380px) {
  #participant-answer {
    padding-bottom: 6rem !important;
  }

  #participant-answer .answer-grid {
    gap: 0.7rem !important;
  }

  #participant-answer .answer-grid > .checkbox_label,
  #participant-answer .answer-grid > .radio_label,
  #participant-answer .btn-group-toggle > .checkbox_label,
  #participant-answer .btn-group-toggle > .radio_label,
  #pollOptions .btn-group-toggle > .checkbox_label,
  #pollOptions .btn-group-toggle > .radio_label,
  .checkbox_label,
  .radio_label {
    width: min(100%, 21rem) !important;
    max-width: 21rem !important;
    min-height: 3.1rem !important;
    font-size: 0.96rem !important;
    padding: 0.72rem 0.88rem !important;
  }

  #participant-answer .action-bar {
    bottom: 2rem !important;
    padding: 0 0.65rem !important;
  }

  #participant-answer .action-bar .submit-button {
    min-height: 2.95rem !important;
    width: min(100%, 20rem) !important;
    font-size: 0.96rem !important;
  }

  #participant-answer .action-bar .skip-button.btn-link {
    font-size: 0.76rem !important;
  }

  #user-info {
    margin-top: -0.85rem !important;
    margin-bottom: 0.1rem !important;
  }

  .alias-bar {
    padding: 0.35rem 0.25rem !important;
  }

  .alias-bar__summary {
    gap: 0.1rem !important;
  }

  .alias-bar__name {
    font-size: 1.18rem !important;
  }

  .alias-bar__team-name {
    font-size: 0.78rem !important;
  }

  .alias-bar__stats-row {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    gap: 0.2rem !important;
    align-items: center !important;
  }

  .alias-bar__stat--left,
  .alias-bar__stat--right {
    justify-self: stretch !important;
  }

  .alias-bar__stat--left {
    align-items: flex-start !important;
    text-align: left !important;
  }

  .alias-bar__stat--right {
    align-items: flex-end !important;
    text-align: right !important;
  }

  .alias-bar__panel-title {
    font-size: 0.84rem !important;
    margin-bottom: 0 !important;
  }

  .alias-bar__stat-line {
    font-size: 0.68rem !important;
    white-space: normal !important;
  }

  .alias-bar__balance {
    font-size: 0.72rem !important;
    padding: 0.25rem 0.4rem !important;
  }
}

@media only screen and (max-width: 430px), only screen and (max-height: 760px) {
  #participant-answer {
    padding-bottom: 2rem !important;
  }

  #participant-answer .action-bar {
    position: static !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: auto !important;
    margin-top: 0.9rem !important;
    padding: 0 0.75rem 0.5rem !important;
  }

  #participant-answer .action-bar.fixed-bottom {
    position: static !important;
  }
}

@media only screen and (max-width: 380px) and (max-height: 700px) {
  #participant-answer {
    padding-top: 0 !important;
    padding-bottom: 1.5rem !important;
  }

  #participant-answer .action-bar {
    position: static !important;
    bottom: auto !important;
    padding: 0 0.65rem 0.4rem !important;
    row-gap: 0.35rem !important;
  }

  #participant-answer .action-bar .submit-button {
    min-height: 2.9rem !important;
    font-size: 1rem !important;
    width: min(100%, 22rem) !important;
  }

  #participant-answer .action-bar .skip-button.btn-link {
    font-size: 0.78rem !important;
    padding: 0 !important;
  }

  #participant-answer label,
  .checkbox_label,
  .radio_label,
  .btn-answer {
    min-height: 3.15rem !important;
    font-size: 1rem !important;
    padding: 0.75rem 0.9rem !important;
  }
}

/* ── Bootstrap card ──────────────────────────────────────────────────────── */
.card {
  background-color: var(--gameshow-cream) !important;
  border: 2px solid var(--gameshow-outline) !important;
  box-shadow: 0 14px 32px rgba(119, 17, 28, 0.12) !important;
}

#screen .card.bg-transparent,
#screen-minimal .card.bg-transparent,
#participant-answer .card.bg-transparent {
  background-color: transparent !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

#screen .card.bg-transparent > .card-body,
#screen-minimal .card.bg-transparent > .card-body,
#participant-answer .card.bg-transparent > .card-body {
  background-color: transparent !important;
}

.card-header {
  background:
    linear-gradient(180deg, rgba(156, 24, 40, 0.96), rgba(119, 17, 28, 0.96)) !important;
  color: var(--gameshow-ivory) !important;
  border-bottom: 2px solid var(--gameshow-gold) !important;
}

/* ── Bootstrap badges ────────────────────────────────────────────────────── */
.badge-primary {
  background-color: var(--gameshow-orange) !important;
  color: #fffdf8 !important;
}

/* ── Form inputs & text fields ───────────────────────────────────────────── */
/* Mirror base_theme.css specificity: element.class selectors */
input.form-control,
input.form-control:focus,
textarea.form-control,
textarea.form-control:focus,
select.form-control,
select.form-control:focus,
.form-control {
  background-color: rgba(255, 253, 248, 0.98) !important;
  color: var(--gameshow-text) !important;
  border: 2px solid var(--gameshow-outline) !important;
  box-shadow: 0 4px 14px rgba(156, 24, 40, 0.1) !important;
}
input.form-control:focus,
textarea.form-control:focus,
select.form-control:focus,
.form-control:focus {
  border-color: var(--gameshow-orange) !important;
  box-shadow: 0 0 0 0.2rem rgba(245, 107, 31, 0.18) !important;
}
input.form-control::placeholder,
textarea.form-control::placeholder,
.form-control::placeholder {
  color: var(--gameshow-text-soft) !important;
}

/* ── Form groups & labels ────────────────────────────────────────────────── */
.form-group label {
  color: var(--gameshow-burgundy-dark) !important;
  font-weight: 700 !important;
}
.form-group .form-text {
  color: var(--gameshow-text-soft) !important;
}

/* ── Opt-in form ─────────────────────────────────────────────────────────── */
#opt-in-form .form-control {
  background-color: rgba(255, 253, 248, 0.98) !important;
  color: var(--gameshow-text) !important;
  border-color: var(--gameshow-outline) !important;
}
#opt-in-form label {
  color: var(--gameshow-ivory) !important;
  text-shadow: -1px -1px 0 var(--gameshow-text), 1px -1px 0 var(--gameshow-text), -1px 1px 0 var(--gameshow-text);
}

#opt-in-form .form-check-label,
#opt-in-form .form-check-label a {
  color: var(--gameshow-ivory) !important;
}

/* ── Checkboxes & radios (polling answer options) ────────────────────────── */
#pollOptions {
  display: flex !important;
  flex-direction: column !important;
  gap: 0.85rem !important;
  align-items: stretch !important;
}

#participant-answer {
  background: transparent !important;
  padding-top: 0 !important;
}

#participant-answer .answer-grid {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: 1fr !important;
  gap: 1rem !important;
}

#participant-answer .answer-grid > .checkbox_label,
#participant-answer .answer-grid > .radio_label {
  width: min(100%, 27rem) !important;
  max-width: 27rem !important;
  margin: 0 auto !important;
}

#participant-answer .btn-group-toggle,
#pollOptions .btn-group-toggle {
  display: block !important;
  width: 100% !important;
}

#participant-answer .btn-group-toggle > .checkbox_label,
#participant-answer .btn-group-toggle > .radio_label,
#pollOptions .btn-group-toggle > .checkbox_label,
#pollOptions .btn-group-toggle > .radio_label {
  display: flex !important;
  float: none !important;
  clear: both !important;
  width: min(100%, 27rem) !important;
  max-width: 27rem !important;
  margin: 0 auto 1rem auto !important;
}

.checkbox_label,
.radio_label {
  display: flex !important;
  width: min(100%, 27rem) !important;
  flex: 0 0 100% !important;
  max-width: 27rem !important;
  align-items: center !important;
  justify-content: center !important;
  color: #fffdf8 !important;
  background: linear-gradient(180deg, #6fb8ff 0%, #2858ff 46%, #1435c8 100%) !important;
  border: 4px solid var(--gameshow-gold) !important;
  box-shadow:
    0 14px 26px rgba(0, 0, 0, 0.32),
    inset 0 4px 10px rgba(255, 255, 255, 0.28),
    inset 0 -6px 12px rgba(0, 0, 0, 0.32) !important;
}

.checkbox_label:nth-of-type(4n + 1),
.radio_label:nth-of-type(4n + 1) {
  background: linear-gradient(180deg, #6fb8ff 0%, #2858ff 46%, #1435c8 100%) !important;
}

.checkbox_label:nth-of-type(4n + 2),
.radio_label:nth-of-type(4n + 2) {
  background: linear-gradient(180deg, #48f08b 0%, #1fc756 46%, #12823a 100%) !important;
}

.checkbox_label:nth-of-type(4n + 3),
.radio_label:nth-of-type(4n + 3) {
  background: linear-gradient(180deg, #ff6d63 0%, #ff2020 46%, #b00808 100%) !important;
}

.checkbox_label:nth-of-type(4n),
.radio_label:nth-of-type(4n) {
  background: linear-gradient(180deg, #d474ff 0%, #9c2eff 46%, #6715c6 100%) !important;
}

.checkbox_label.active,
.radio_label.active {
  background: linear-gradient(135deg, var(--gameshow-orange), var(--gameshow-red)) !important;
  border-color: var(--gameshow-gold-bright) !important;
  color: #fffdf8 !important;
}
.form-check-label {
  color: var(--gameshow-text) !important;
}

/* ── Answer buttons ──────────────────────────────────────────────────────── */
.btn-answer {
  display: flex !important;
  width: min(100%, 27rem) !important;
  max-width: 27rem !important;
  margin: 0 auto !important;
  padding: 1rem 1.8rem !important;
  border-radius: 50px;           /* full pill shape */
  border: 7px solid var(--gameshow-gold) !important;     /* gold outer ring */
  outline: 5px solid rgba(0,0,0,0.3) !important; /* subtle dark outer edge */
  box-shadow: 
    inset 0 -4px 8px rgba(0,0,0,0.4),   /* bottom inner shadow = depth */
    inset 0 4px 8px rgba(255,255,255,0.2), /* top inner highlight */
    0 4px 12px rgba(0,0,0,0.5);           /* drop shadow */
  
  font-family: 'Arial Black', sans-serif;
  font-size: 1.4rem;
  font-weight: 900;
  color: white;
  text-shadow: 1px 2px 4px rgba(0,0,0,0.6);
  cursor: pointer;
  transition: transform 0.1s, box-shadow 0.1s;
  align-items: center !important;
  justify-content: center !important;
  white-space: normal !important;
  line-height: 1.15 !important;
}

.btn-answer.active {
 transform: translateY(2px) !important;
  box-shadow: inset 0 -2px 4px rgba(0,0,0,0.4),
    0 2px 6px rgba(0,0,0,0.5) !important;
}
.btn-answer.selected {
  border-color: #FFFFFF;
  outline: 3px solid #FFD700;
  transform: scale(1.03);
}


/* ── Input groups ────────────────────────────────────────────────────────── */
.input-group-text {
  background-color: var(--gameshow-burgundy) !important;
  color: var(--gameshow-ivory) !important;
  border-color: var(--gameshow-gold) !important;
}

/* ── Character counter ───────────────────────────────────────────────────── */
.character-counter {
  color: var(--gameshow-text-soft) !important;
}

/* ── Rounded marquee treatment ───────────────────────────────────────────── */
.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.action-bar .submit-button-col,
.btn-answer,
.btn-answer.active,
.badge-primary,
.input-group-text,
.checkbox_label,
.radio_label,
.alias-bar {
  border-radius: 999px !important;
}

.card,
.form-control,
input.form-control,
textarea.form-control,
select.form-control {
  border-radius: 22px !important;
}

.card-header {
  border-top-left-radius: 20px !important;
  border-top-right-radius: 20px !important;
}

.screen-bar {
  border-radius: 18px !important;
}

.checkbox_label,
.radio_label,
.btn-answer {
  padding: 1rem 1.25rem !important;
  min-height: 4rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.02em !important;
  text-align: center !important;
}

.btn-primary,
.action-bar .submit-button-col,
.badge-primary,
.input-group-text {
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

.btn-primary,
.btn-primary:hover,
.btn-primary:active,
.btn-primary:focus,
.action-bar .submit-button-col,
.btn-answer.active,
.alias-bar {
  box-shadow: 0 8px 22px rgba(119, 17, 28, 0.24), inset 0 1px 0 rgba(255, 216, 74, 0.28) !important;
}

.alias-bar {
  border-radius: 2.2rem !important;
  box-shadow: none !important;
}

.checkbox_label.active,
.radio_label.active,
.screen-bar.active.highlight {
  box-shadow: 0 8px 20px rgba(242, 179, 26, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

/* ── Marquee Light Effect ────────────────────────────────────────────────── */
.marquee {
  --corner-radius: 28px;
  --small-stroke: 8px;
  --large-stroke: 14px;
  --small-color-dim: #77111c;
  --small-color-bright: #ff9a9a;
  --large-color-dim: #b88c24;
  --large-color-bright: #ffef99;
  --small-glow-soft: rgba(255, 77, 77, 0.45);
  --small-glow-strong: rgba(255, 77, 77, 0.9);
  --small-glow-dim-soft: rgba(255, 77, 77, 0.12);
  --small-glow-dim-strong: rgba(255, 77, 77, 0.25);
  --large-glow-soft: rgba(255, 209, 102, 0.5);
  --large-glow-strong: rgba(255, 209, 102, 0.95);
  --large-glow-dim-soft: rgba(255, 209, 102, 0.18);
  --large-glow-dim-strong: rgba(255, 209, 102, 0.35);
  --target-light-spacing: 80px;
  position: relative;
  overflow: hidden;
}

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

.smalllight {
  fill: transparent;
  rx: var(--corner-radius);
  stroke-linecap: round;
}

.largelight {
  fill: transparent;
  rx: var(--corner-radius);
  stroke-linecap: round;
}

.smalllight {
  width: calc(100% - var(--small-stroke));
  height: calc(100% - var(--small-stroke));
  x: calc(var(--small-stroke) / 2);
  y: calc(var(--small-stroke) / 2);
  stroke: var(--small-color-bright);
  stroke-width: var(--small-stroke);
  filter: drop-shadow(0 0 4px var(--small-glow-strong))
    drop-shadow(0 0 10px var(--small-glow-soft));
}

.largelight {
  width: calc(100% - var(--large-stroke));
  height: calc(100% - var(--large-stroke));
  x: calc(var(--large-stroke) / 2);
  y: calc(var(--large-stroke) / 2);
  stroke: var(--large-color-bright);
  stroke-width: var(--large-stroke);
  filter: drop-shadow(0 0 6px var(--large-glow-strong))
    drop-shadow(0 0 14px var(--large-glow-soft));
}

.smalllight,
.largelight {
  animation-duration: 900ms, 900ms;
  animation-iteration-count: infinite, infinite;
}

.smalllight {
  animation-name: chase-small, pulse-small;
  animation-timing-function: linear, steps(2, end);
}

.largelight {
  animation-name: chase-large, pulse-large;
  animation-timing-function: linear, steps(2, end);
}

@keyframes chase-large {
  from { stroke-dashoffset: 0; }
  to { stroke-dashoffset: calc(var(--large-step) * -1); }
}

@keyframes chase-small {
  from { stroke-dashoffset: calc(var(--large-step) / 2); }
  to { stroke-dashoffset: calc((var(--large-step) / 2) - var(--small-step)); }
}

@keyframes pulse-large {
  0%, 100% {
    stroke: var(--large-color-dim);
    filter: drop-shadow(0 0 2px var(--large-glow-dim-strong))
      drop-shadow(0 0 6px var(--large-glow-dim-soft));
  }
  50% {
    stroke: var(--large-color-bright);
    filter: drop-shadow(0 0 8px var(--large-glow-strong))
      drop-shadow(0 0 18px var(--large-glow-soft));
  }
}

@keyframes pulse-small {
  0%, 100% {
    stroke: var(--small-color-bright);
    filter: drop-shadow(0 0 6px var(--small-glow-strong))
      drop-shadow(0 0 14px var(--small-glow-soft));
  }
  50% {
    stroke: var(--small-color-dim);
    filter: drop-shadow(0 0 1px var(--small-glow-dim-strong))
      drop-shadow(0 0 4px var(--small-glow-dim-soft));
  }
}

/* ── Leaderboards ────────────────────────────────────────────────────────── */
#leaderboard,
#individual-leaderboard-content,
#team-leaderboard-content,
#administration-event-individual-leaderboard,
#administration-event-team-leaderboard {
  color: var(--gameshow-text) !important;
  background: transparent !important;
}

#leaderboard {
  width: min(96vw, 1760px) !important;
  max-width: 1760px !important;
  height: min(96vh, 54vw) !important;
  aspect-ratio: 16 / 9 !important;
  margin: 0 auto !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
}

#leaderboard > .row {
  margin-left: -0.4rem !important;
  margin-right: -0.4rem !important;
  align-items: stretch !important;
  flex: 1 1 auto !important;
  min-height: 0 !important;
}

#leaderboard > .row > [id$="-leaderboard-content"] {
  padding-left: 0.4rem !important;
  padding-right: 0.4rem !important;
  display: flex !important;
  flex-direction: column !important;
}

#leaderboard > h1,
#leaderboard > h3 {
  color: var(--gameshow-ivory) !important;
  text-align: center !important;
  margin-bottom: clamp(0.75rem, 1.4vh, 1.25rem) !important;
  text-transform: uppercase !important;
  letter-spacing: 0.04em !important;
  font-size: clamp(2rem, 3vw, 3.6rem) !important;
  line-height: 1.05 !important;
}

#leaderboard h3,
#leaderboard h5,
#individual-leaderboard-content h3,
#individual-leaderboard-content h5,
#team-leaderboard-content h3,
#team-leaderboard-content h5,
#administration-event-individual-leaderboard h3,
#administration-event-individual-leaderboard h5,
#administration-event-team-leaderboard h3,
#administration-event-team-leaderboard h5 {
  display: block !important;
  margin: 0 0 1rem !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  color: var(--gameshow-ivory) !important;
  box-shadow: none !important;
  text-align: center !important;
  font-size: clamp(2.15rem, 3.2vw, 3.8rem) !important;
  line-height: 1.05 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  text-shadow: 0 4px 0 rgba(70, 0, 0, 0.45), 0 10px 22px rgba(0, 0, 0, 0.35) !important;
}

#leaderboard .event-leaderboard-team,
#leaderboard .event-leaderboard-ind,
#individual-leaderboard-content,
#team-leaderboard-content,
#administration-event-individual-leaderboard,
#administration-event-team-leaderboard {
  background: linear-gradient(180deg, rgba(21, 3, 5, 0.72), rgba(10, 1, 2, 0.82)) !important;
  border: 1px solid rgba(255, 214, 110, 0.3) !important;
  border-radius: 28px !important;
  box-shadow: 0 16px 30px rgba(0, 0, 0, 0.22) !important;
  padding: clamp(1.4rem, 1.8vw, 2rem) clamp(1rem, 1.4vw, 1.5rem) 1rem !important;
  min-height: fit-content !important;
  height: 100% !important;
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  z-index: 0 !important;
}

#leaderboard .event-leaderboard-team > *:not(svg.marquee-lights),
#leaderboard .event-leaderboard-ind > *:not(svg.marquee-lights),
#individual-leaderboard-content > *:not(svg.marquee-lights),
#team-leaderboard-content > *:not(svg.marquee-lights),
#administration-event-individual-leaderboard > *:not(svg.marquee-lights),
#administration-event-team-leaderboard > *:not(svg.marquee-lights) {
  position: relative !important;
  z-index: 1 !important;
}

#leaderboard .table,
#individual-leaderboard-content .table,
#team-leaderboard-content .table,
#administration-event-individual-leaderboard .table,
#administration-event-team-leaderboard .table {
  margin-bottom: 0 !important;
  background: transparent !important;
  color: var(--gameshow-ivory) !important;
  border-collapse: separate !important;
  border-spacing: 0 0.58rem !important;
  font-size: 1rem !important;
  table-layout: fixed !important;
  width: 98% !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

@keyframes marquee-chase {
  0%, 100% {
    opacity: 1;
    filter: drop-shadow(0 0 14px rgba(255, 255, 210, 1))
      drop-shadow(0 0 30px rgba(255, 225, 80, 0.95))
      drop-shadow(0 0 56px rgba(255, 195, 45, 0.5));
  }
  50% {
    opacity: 0.12;
    filter: drop-shadow(0 0 1px rgba(200, 155, 30, 0.15));
  }
}

#leaderboard .table th,
#individual-leaderboard-content .table th,
#team-leaderboard-content .table th,
#administration-event-individual-leaderboard .table th,
#administration-event-team-leaderboard .table th {
  border-top: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  color: rgba(255, 249, 239, 0.98) !important;
  font-weight: 900 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.02em !important;
  font-size: clamp(1.2rem, 1.55vw, 1.75rem) !important;
  height: 3rem !important;
  line-height: 1.1 !important;
  vertical-align: middle !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#leaderboard .table th:empty::before,
#individual-leaderboard-content .table th:empty::before,
#team-leaderboard-content .table th:empty::before,
#administration-event-individual-leaderboard .table th:empty::before,
#administration-event-team-leaderboard .table th:empty::before {
  content: "\00a0" !important;
}

#leaderboard .table td,
#leaderboard .table th,
#individual-leaderboard-content .table td,
#individual-leaderboard-content .table th,
#team-leaderboard-content .table td,
#team-leaderboard-content .table th,
#administration-event-individual-leaderboard .table td,
#administration-event-individual-leaderboard .table th,
#administration-event-team-leaderboard .table td,
#administration-event-team-leaderboard .table th {
  padding: 0.42rem 0.75rem !important;
}

#leaderboard .table tbody tr,
#leaderboard .table tr:not(:first-child),
#individual-leaderboard-content .table tbody tr,
#individual-leaderboard-content .table tr:not(:first-child),
#team-leaderboard-content .table tbody tr,
#team-leaderboard-content .table tr:not(:first-child),
#administration-event-individual-leaderboard .table tbody tr,
#administration-event-individual-leaderboard .table tr:not(:first-child),
#administration-event-team-leaderboard .table tbody tr,
#administration-event-team-leaderboard .table tr:not(:first-child) {
  background: transparent !important;
}

#leaderboard .table tbody tr td,
#individual-leaderboard-content .table tbody tr td,
#team-leaderboard-content .table tbody tr td,
#administration-event-individual-leaderboard .table tbody tr td,
#administration-event-team-leaderboard .table tbody tr td {
  background: rgba(36, 3, 5, 0.88) !important;
  border-top: 5px solid #f5c648 !important;
  border-bottom: 5px solid #f5c648 !important;
  border-left: 0 !important;
  border-right: 0 !important;
  color: rgba(255, 255, 255, 0.68) !important;
  vertical-align: middle !important;
  font-size: clamp(1.35rem, 1.75vw, 2.05rem) !important;
  font-weight: 900 !important;
  line-height: 1.1 !important;
  box-shadow: none !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}

#leaderboard .table tbody tr td:first-child,
#leaderboard .table th:first-child,
#individual-leaderboard-content .table tbody tr td:first-child,
#individual-leaderboard-content .table th:first-child,
#team-leaderboard-content .table tbody tr td:first-child,
#team-leaderboard-content .table th:first-child,
#administration-event-individual-leaderboard .table tbody tr td:first-child,
#administration-event-individual-leaderboard .table th:first-child,
#administration-event-team-leaderboard .table tbody tr td:first-child,
#administration-event-team-leaderboard .table th:first-child {
  border-left: 5px solid #f5c648 !important;
  border-top-left-radius: 999px !important;
  border-bottom-left-radius: 999px !important;
  font-weight: 900 !important;
  color: rgba(255, 255, 255, 0.72) !important;
  width: 5rem !important;
  min-width: 4rem !important;
  text-align: left !important;
}

#leaderboard .table tbody tr td:nth-child(2),
#individual-leaderboard-content .table tbody tr td:nth-child(2),
#team-leaderboard-content .table tbody tr td:nth-child(2),
#administration-event-individual-leaderboard .table tbody tr td:nth-child(2),
#administration-event-team-leaderboard .table tbody tr td:nth-child(2) {
  width: auto !important;
}

#administration-event-team-leaderboard .table tbody tr td:nth-child(3),
#administration-event-team-leaderboard .table th:nth-child(3) {
  width: 5.5rem !important;
  min-width: 5.5rem !important;
}

#administration-event-team-leaderboard .table tbody tr td:nth-child(4),
#administration-event-team-leaderboard .table th:nth-child(4),
#administration-event-team-leaderboard .table tbody tr td:nth-child(5),
#administration-event-team-leaderboard .table th:nth-child(5),
#administration-event-team-leaderboard .table tbody tr td:nth-child(6),
#administration-event-team-leaderboard .table th:nth-child(6),
#administration-event-team-leaderboard .table tbody tr td:nth-child(7),
#administration-event-team-leaderboard .table th:nth-child(7),
#administration-event-team-leaderboard .table tbody tr td:nth-child(8),
#administration-event-team-leaderboard .table th:nth-child(8) {
  width: 7.75rem !important;
  min-width: 7.75rem !important;
}

#leaderboard .table tbody tr td:nth-child(3),
#leaderboard .table th:nth-child(3),
#individual-leaderboard-content .table tbody tr td:nth-child(3),
#individual-leaderboard-content .table th:nth-child(3),
#team-leaderboard-content .table tbody tr td:nth-child(3),
#team-leaderboard-content .table th:nth-child(3) {
  width: 9.75rem !important;
  min-width: 9.75rem !important;
}

#leaderboard .table tbody tr td:last-child,
#leaderboard .table th:last-child,
#individual-leaderboard-content .table tbody tr td:last-child,
#individual-leaderboard-content .table th:last-child,
#team-leaderboard-content .table tbody tr td:last-child,
#team-leaderboard-content .table th:last-child,
#administration-event-individual-leaderboard .table tbody tr td:last-child,
#administration-event-individual-leaderboard .table th:last-child,
#administration-event-team-leaderboard .table tbody tr td:last-child,
#administration-event-team-leaderboard .table th:last-child {
  border-right: 5px solid #f5c648 !important;
  border-top-right-radius: 999px !important;
  border-bottom-right-radius: 999px !important;
  font-weight: 800 !important;
  width: 8.5rem !important;
  min-width: 8.5rem !important;
}

#leaderboard .table tbody tr td.text-right,
#individual-leaderboard-content .table tbody tr td.text-right,
#team-leaderboard-content .table tbody tr td.text-right,
#administration-event-individual-leaderboard .table tbody tr td.text-right,
#administration-event-team-leaderboard .table tbody tr td.text-right {
  padding-left: 0.45rem !important;
  padding-right: 0.95rem !important;
  font-variant-numeric: tabular-nums !important;
}

#leaderboard .table tbody tr td:not(:first-child):not(:last-child),
#individual-leaderboard-content .table tbody tr td:not(:first-child):not(:last-child),
#team-leaderboard-content .table tbody tr td:not(:first-child):not(:last-child),
#administration-event-individual-leaderboard .table tbody tr td:not(:first-child):not(:last-child),
#administration-event-team-leaderboard .table tbody tr td:not(:first-child):not(:last-child) {
  border-left-color: transparent !important;
  border-right-color: transparent !important;
}

#leaderboard .table tbody tr:nth-child(1) td,
#individual-leaderboard-content .table tbody tr:nth-child(1) td,
#team-leaderboard-content .table tbody tr:nth-child(1) td,
#administration-event-individual-leaderboard .table tbody tr:nth-child(1) td,
#administration-event-team-leaderboard .table tbody tr:nth-child(1) td {
  background: #d99b00 !important;
  border-color: #ffd86e !important;
  color: #1f1f1f !important;
  box-shadow: none !important;
}

#leaderboard .table tbody tr:nth-child(2) td,
#individual-leaderboard-content .table tbody tr:nth-child(2) td,
#team-leaderboard-content .table tbody tr:nth-child(2) td,
#administration-event-individual-leaderboard .table tbody tr:nth-child(2) td,
#administration-event-team-leaderboard .table tbody tr:nth-child(2) td {
  background: #bdbdbd !important;
  border-color: #f5d06e !important;
  color: #1f1f1f !important;
  box-shadow: none !important;
}

#leaderboard .table tbody tr:nth-child(3) td,
#individual-leaderboard-content .table tbody tr:nth-child(3) td,
#team-leaderboard-content .table tbody tr:nth-child(3) td,
#administration-event-individual-leaderboard .table tbody tr:nth-child(3) td,
#administration-event-team-leaderboard .table tbody tr:nth-child(3) td {
  background: #b9650d !important;
  border-color: #f4cb64 !important;
  color: #1f1f1f !important;
  box-shadow: none !important;
}

#leaderboard .table tbody tr:nth-child(-n+3) td,
#individual-leaderboard-content .table tbody tr:nth-child(-n+3) td,
#team-leaderboard-content .table tbody tr:nth-child(-n+3) td,
#administration-event-individual-leaderboard .table tbody tr:nth-child(-n+3) td,
#administration-event-team-leaderboard .table tbody tr:nth-child(-n+3) td {
  -webkit-text-stroke: 1.25px rgba(255, 255, 255, 0.9) !important;
  paint-order: stroke fill !important;
  text-shadow: 0 2px 3px rgba(0, 0, 0, 0.22) !important;
}

#leaderboard .table-striped tbody tr:nth-of-type(odd),
#individual-leaderboard-content .table-striped tbody tr:nth-of-type(odd),
#team-leaderboard-content .table-striped tbody tr:nth-of-type(odd),
#administration-event-individual-leaderboard .table-striped tbody tr:nth-of-type(odd),
#administration-event-team-leaderboard .table-striped tbody tr:nth-of-type(odd) {
  background-color: transparent !important;
}

#leaderboard .table .text-success,
#individual-leaderboard-content .table .text-success,
#team-leaderboard-content .table .text-success,
#administration-event-individual-leaderboard .table .text-success,
#administration-event-team-leaderboard .table .text-success {
  color: var(--gameshow-success) !important;
  font-weight: 900 !important;
  -webkit-text-stroke: 2px rgba(0, 0, 0, 0.9) !important;
  paint-order: stroke fill !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.7) !important;
}

#leaderboard .table .text-danger,
#individual-leaderboard-content .table .text-danger,
#team-leaderboard-content .table .text-danger,
#administration-event-individual-leaderboard .table .text-danger,
#administration-event-team-leaderboard .table .text-danger {
  color: var(--gameshow-red) !important;
  font-weight: 900 !important;
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.8) !important;
  paint-order: stroke fill !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.6) !important;
}

@media (max-width: 991.98px) {
  #leaderboard {
    width: min(96vw, 900px) !important;
    height: auto !important;
    aspect-ratio: auto !important;
  }

  #leaderboard > .row {
    margin-left: -0.25rem !important;
    margin-right: -0.25rem !important;
  }

  #leaderboard > .row > [id$="-leaderboard-content"] {
    padding-left: 0.25rem !important;
    padding-right: 0.25rem !important;
  }

  #leaderboard .event-leaderboard-team,
  #leaderboard .event-leaderboard-ind,
  #individual-leaderboard-content,
  #team-leaderboard-content,
  #administration-event-individual-leaderboard,
  #administration-event-team-leaderboard {
    padding: 1rem 0.75rem 0.7rem !important;
    border-radius: 28px !important;
  }

  #leaderboard .table th,
  #individual-leaderboard-content .table th,
  #team-leaderboard-content .table th,
  #administration-event-individual-leaderboard .table th,
  #administration-event-team-leaderboard .table th {
    font-size: 1.02rem !important;
  }

  #leaderboard .table tbody tr td,
  #individual-leaderboard-content .table tbody tr td,
  #team-leaderboard-content .table tbody tr td,
  #administration-event-individual-leaderboard .table tbody tr td,
  #administration-event-team-leaderboard .table tbody tr td {
    font-size: 1rem !important;
  }

  #leaderboard .table tbody tr td:first-child,
  #leaderboard .table th:first-child,
  #individual-leaderboard-content .table tbody tr td:first-child,
  #individual-leaderboard-content .table th:first-child,
  #team-leaderboard-content .table tbody tr td:first-child,
  #team-leaderboard-content .table th:first-child,
  #administration-event-individual-leaderboard .table tbody tr td:first-child,
  #administration-event-individual-leaderboard .table th:first-child,
  #administration-event-team-leaderboard .table tbody tr td:first-child,
  #administration-event-team-leaderboard .table th:first-child {
    width: 4rem !important;
    min-width: 4rem !important;
  }

  #leaderboard .table tbody tr td:last-child,
  #leaderboard .table th:last-child,
  #individual-leaderboard-content .table tbody tr td:last-child,
  #individual-leaderboard-content .table th:last-child,
  #team-leaderboard-content .table tbody tr td:last-child,
  #team-leaderboard-content .table th:last-child,
  #administration-event-individual-leaderboard .table tbody tr td:last-child,
  #administration-event-individual-leaderboard .table th:last-child,
  #administration-event-team-leaderboard .table tbody tr td:last-child,
  #administration-event-team-leaderboard .table th:last-child {
    width: 6.5rem !important;
    min-width: 6.5rem !important;
  }
}

@media (min-width: 992px) and (max-height: 900px) {
  #leaderboard {
    width: min(96vw, 1700px) !important;
  }

  #leaderboard > h1,
  #leaderboard > h3 {
    font-size: clamp(1.8rem, 2.45vw, 2.8rem) !important;
    margin-bottom: 0.65rem !important;
  }

  #leaderboard h3,
  #leaderboard h5,
  #individual-leaderboard-content h3,
  #individual-leaderboard-content h5,
  #team-leaderboard-content h3,
  #team-leaderboard-content h5,
  #administration-event-individual-leaderboard h3,
  #administration-event-individual-leaderboard h5,
  #administration-event-team-leaderboard h3,
  #administration-event-team-leaderboard h5 {
    font-size: clamp(1.8rem, 2.55vw, 2.9rem) !important;
    margin-bottom: 0.7rem !important;
  }

  #leaderboard .event-leaderboard-team,
  #leaderboard .event-leaderboard-ind,
  #individual-leaderboard-content,
  #team-leaderboard-content,
  #administration-event-individual-leaderboard,
  #administration-event-team-leaderboard {
    padding: 0.9rem 0.75rem 0.65rem !important;
  }

  #leaderboard .table,
  #individual-leaderboard-content .table,
  #team-leaderboard-content .table,
  #administration-event-individual-leaderboard .table,
  #administration-event-team-leaderboard .table {
    border-spacing: 0 0.38rem !important;
  }

  #leaderboard .table th,
  #individual-leaderboard-content .table th,
  #team-leaderboard-content .table th,
  #administration-event-individual-leaderboard .table th,
  #administration-event-team-leaderboard .table th {
    font-size: clamp(0.98rem, 1.15vw, 1.3rem) !important;
  }

  #leaderboard .table tbody tr td,
  #individual-leaderboard-content .table tbody tr td,
  #team-leaderboard-content .table tbody tr td,
  #administration-event-individual-leaderboard .table tbody tr td,
  #administration-event-team-leaderboard .table tbody tr td {
    font-size: clamp(1.08rem, 1.35vw, 1.5rem) !important;
    padding: 0.32rem 0.58rem !important;
    border-top-width: 4px !important;
    border-bottom-width: 4px !important;
  }

  #leaderboard .table tbody tr td:first-child,
  #leaderboard .table th:first-child,
  #individual-leaderboard-content .table tbody tr td:first-child,
  #individual-leaderboard-content .table th:first-child,
  #team-leaderboard-content .table tbody tr td:first-child,
  #team-leaderboard-content .table th:first-child,
  #administration-event-individual-leaderboard .table tbody tr td:first-child,
  #administration-event-individual-leaderboard .table th:first-child,
  #administration-event-team-leaderboard .table tbody tr td:first-child,
  #administration-event-team-leaderboard .table th:first-child {
    width: 4rem !important;
    min-width: 4rem !important;
    border-left-width: 4px !important;
  }

  #leaderboard .table tbody tr td:nth-child(3),
  #leaderboard .table th:nth-child(3),
  #individual-leaderboard-content .table tbody tr td:nth-child(3),
  #individual-leaderboard-content .table th:nth-child(3),
  #team-leaderboard-content .table tbody tr td:nth-child(3),
  #team-leaderboard-content .table th:nth-child(3) {
    width: 7.5rem !important;
    min-width: 7.5rem !important;
  }

  #leaderboard .table tbody tr td:last-child,
  #leaderboard .table th:last-child,
  #individual-leaderboard-content .table tbody tr td:last-child,
  #individual-leaderboard-content .table th:last-child,
  #team-leaderboard-content .table tbody tr td:last-child,
  #team-leaderboard-content .table th:last-child,
  #administration-event-individual-leaderboard .table tbody tr td:last-child,
  #administration-event-individual-leaderboard .table th:last-child,
  #administration-event-team-leaderboard .table tbody tr td:last-child,
  #administration-event-team-leaderboard .table th:last-child {
    width: 5rem !important;
    min-width: 5rem !important;
    border-right-width: 4px !important;
  }

  #team-leaderboard-content .table tbody tr td:nth-child(4),
  #team-leaderboard-content .table th:nth-child(4) {
    width: 6.5rem !important;
    min-width: 6.5rem !important;
  }
}

#leaderboard.screen-standard-leaderboard {
  width: min(92vw, 1500px) !important;
  max-width: 1500px !important;
  height: auto !important;
  aspect-ratio: auto !important;
  display: block !important;
}

#leaderboard.screen-standard-leaderboard h3,
#leaderboard.screen-standard-leaderboard h5 {
  font-size: clamp(1.8rem, 2.6vw, 3.1rem) !important;
}

#leaderboard.screen-standard-leaderboard .event-leaderboard-team,
#leaderboard.screen-standard-leaderboard .event-leaderboard-ind {
  height: auto !important;
  padding: clamp(1.1rem, 1.5vw, 1.6rem) clamp(0.85rem, 1.2vw, 1.2rem) 0.75rem !important;
}

#leaderboard.screen-standard-leaderboard .table {
  border-spacing: 0 0.42rem !important;
  font-size: 14px !important;
  width: 96% !important;
}

#leaderboard.screen-standard-leaderboard .table th {
  font-size: clamp(0.9rem, 1.1vw, 1.1rem) !important;
}

#leaderboard.screen-standard-leaderboard .table td,
#leaderboard.screen-standard-leaderboard .table th {
  padding: 0.32rem 0.55rem !important;
}

#leaderboard.screen-standard-leaderboard .table tbody tr td {
  font-size: clamp(0.82rem, 1.02vw, 1.12rem) !important;
}

#leaderboard.screen-standard-leaderboard .table tbody tr td:last-child,
#leaderboard.screen-standard-leaderboard .table th:last-child {
  width: 8rem !important;
  min-width: 8rem !important;
}

#leaderboard.screen-standard-leaderboard .table tbody tr td:nth-child(3),
#leaderboard.screen-standard-leaderboard .table th:nth-child(3) {
  width: 8rem !important;
  min-width: 8rem !important;
}

@media (max-width: 991.98px) {
  #leaderboard.screen-standard-leaderboard .table th {
    font-size: 0.9rem !important;
  }

  #leaderboard.screen-standard-leaderboard .table tbody tr td {
    font-size: 0.76rem !important;
  }

  #leaderboard.screen-standard-leaderboard .table tbody tr td:last-child,
  #leaderboard.screen-standard-leaderboard .table th:last-child {
    width: 6.5rem !important;
    min-width: 6.5rem !important;
  }

  #leaderboard.screen-standard-leaderboard .table tbody tr td:nth-child(3),
  #leaderboard.screen-standard-leaderboard .table th:nth-child(3) {
    width: 6.5rem !important;
    min-width: 6.5rem !important;
  }
}

@media (min-width: 992px) and (max-height: 900px) {
  #leaderboard.screen-standard-leaderboard {
    width: min(92vw, 1360px) !important;
  }

  #leaderboard.screen-standard-leaderboard h3,
  #leaderboard.screen-standard-leaderboard h5 {
    font-size: clamp(1.35rem, 1.8vw, 2rem) !important;
  }

  #leaderboard.screen-standard-leaderboard .table {
    border-spacing: 0 0.32rem !important;
  }

  #leaderboard.screen-standard-leaderboard .table th {
    font-size: 0.84rem !important;
  }

  #leaderboard.screen-standard-leaderboard .table tbody tr td {
    font-size: 0.72rem !important;
    padding: 0.28rem 0.48rem !important;
  }

  #leaderboard.screen-standard-leaderboard .table tbody tr td:first-child,
  #leaderboard.screen-standard-leaderboard .table th:first-child {
    width: 4rem !important;
    min-width: 4rem !important;
  }

  #leaderboard.screen-standard-leaderboard .table tbody tr td:last-child,
  #leaderboard.screen-standard-leaderboard .table th:last-child {
    width: 6.5rem !important;
    min-width: 6.5rem !important;
  }

  #leaderboard.screen-standard-leaderboard .table tbody tr td:nth-child(3),
  #leaderboard.screen-standard-leaderboard .table th:nth-child(3) {
    width: 6.5rem !important;
    min-width: 6.5rem !important;
  }
}

#administration-event-individual-leaderboard,
#administration-event-team-leaderboard {
  height: auto !important;
  padding: clamp(1.1rem, 1.5vw, 1.6rem) clamp(0.85rem, 1.2vw, 1.2rem) 0.75rem !important;
}

#administration-event-individual-leaderboard h3,
#administration-event-individual-leaderboard h5,
#administration-event-team-leaderboard h3,
#administration-event-team-leaderboard h5 {
  font-size: clamp(1.8rem, 2.6vw, 3.1rem) !important;
}

#administration-event-individual-leaderboard .table,
#administration-event-team-leaderboard .table {
  border-spacing: 0 0.42rem !important;
  font-size: 14px !important;
  width: 96% !important;
}

#administration-event-individual-leaderboard .table th,
#administration-event-team-leaderboard .table th {
  font-size: clamp(0.9rem, 1.1vw, 1.1rem) !important;
}

#administration-event-individual-leaderboard .table td,
#administration-event-individual-leaderboard .table th,
#administration-event-team-leaderboard .table td,
#administration-event-team-leaderboard .table th {
  padding: 0.32rem 0.55rem !important;
}

#administration-event-individual-leaderboard .table tbody tr td,
#administration-event-team-leaderboard .table tbody tr td {
  font-size: clamp(0.82rem, 1.02vw, 1.12rem) !important;
}

#administration-event-individual-leaderboard .table tbody tr td:first-child,
#administration-event-team-leaderboard .table tbody tr td:first-child {
  width: 5rem !important;
  min-width: 4rem !important;
}

#administration-event-individual-leaderboard .table tbody tr td:last-child,
#administration-event-team-leaderboard .table tbody tr td:last-child {
  width: 6rem !important;
  min-width: 6rem !important;
}

#leaderboard .event-leaderboard-team .table tbody tr td:nth-child(2),
#team-leaderboard-content .table tbody tr td:nth-child(2),
#administration-event-team-leaderboard .table tbody tr td:nth-child(2) {
  font-size: clamp(1.55rem, 2vw, 2.35rem) !important;
  line-height: 1.05 !important;
  white-space: normal !important;
  overflow: visible !important;
  overflow-wrap: anywhere !important;
  text-overflow: clip !important;
}

#leaderboard .event-leaderboard-team .table tbody tr td:first-child,
#leaderboard .event-leaderboard-team .table th:first-child,
#team-leaderboard-content .table tbody tr td:first-child,
#team-leaderboard-content .table th:first-child {
  width: 4rem !important;
  min-width: 3.5rem !important;
  padding-right: 0.35rem !important;
}

#leaderboard .event-leaderboard-team .table tbody tr td:nth-child(3),
#leaderboard .event-leaderboard-team .table th:nth-child(3),
#team-leaderboard-content .table tbody tr td:nth-child(3),
#team-leaderboard-content .table th:nth-child(3),
#leaderboard .event-leaderboard-team .table tbody tr td:last-child,
#leaderboard .event-leaderboard-team .table th:last-child,
#team-leaderboard-content .table tbody tr td:last-child,
#team-leaderboard-content .table th:last-child {
  width: 10.5rem !important;
  min-width: 10.5rem !important;
}

#leaderboard .event-leaderboard-team .table tbody tr td:nth-child(3),
#team-leaderboard-content .table tbody tr td:nth-child(3),
#leaderboard .event-leaderboard-team .table tbody tr td:last-child,
#team-leaderboard-content .table tbody tr td:last-child {
  font-size: clamp(1.2rem, 1.6vw, 1.95rem) !important;
  overflow: hidden !important;
  padding-left: 0.25rem !important;
  padding-right: 0.7rem !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

#team-leaderboard-content .leaderboard-score-stack {
  display: table-cell !important;
}

#team-leaderboard-content .leaderboard-score-stack .leaderboard-score-value,
#team-leaderboard-content .leaderboard-score-stack .text-success,
#team-leaderboard-content .leaderboard-score-stack .text-danger,
#team-leaderboard-content .leaderboard-score-stack .leaderboard-purchase-delta {
  display: block !important;
  line-height: 1 !important;
}

#team-leaderboard-content .leaderboard-score-stack .text-success,
#team-leaderboard-content .leaderboard-score-stack .text-danger,
#team-leaderboard-content .leaderboard-score-stack .leaderboard-purchase-delta {
  font-size: 0.9em !important;
  margin-top: 0.12rem !important;
}

#leaderboard.screen-standard-leaderboard .event-leaderboard-team .table tbody tr td:nth-child(2) {
  font-size: clamp(0.95rem, 1.28vw, 1.45rem) !important;
}

#leaderboard.screen-standard-leaderboard .event-leaderboard-team .table tbody tr td:nth-child(3),
#leaderboard.screen-standard-leaderboard .event-leaderboard-team .table th:nth-child(3),
#leaderboard.screen-standard-leaderboard .event-leaderboard-team .table tbody tr td:last-child,
#leaderboard.screen-standard-leaderboard .event-leaderboard-team .table th:last-child {
  width: 7.75rem !important;
  min-width: 7.75rem !important;
}

#leaderboard .table tbody tr:nth-child(3) td,
#individual-leaderboard-content .table tbody tr:nth-child(3) td,
#team-leaderboard-content .table tbody tr:nth-child(3) td,
#administration-event-individual-leaderboard .table tbody tr:nth-child(3) td,
#administration-event-team-leaderboard .table tbody tr:nth-child(3) td {
  color: #fff9ef !important;
  -webkit-text-stroke: 0 !important;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.42) !important;
}

#team-leaderboard-content .table tbody tr.leaderboard-team-row td {
  font-size: clamp(1.55rem, 2vw, 2.4rem) !important;
  padding-top: 0.45rem !important;
  padding-bottom: 0.5rem !important;
  vertical-align: middle !important;
}

#team-leaderboard-content .table tbody tr.leaderboard-team-row .leaderboard-team-position {
  font-size: clamp(1.9rem, 2.5vw, 3rem) !important;
  line-height: 1.05 !important;
}

#team-leaderboard-content .table tbody tr.leaderboard-team-row .leaderboard-team-details {
  min-width: 0 !important;
  width: auto !important;
}

#team-leaderboard-content .table tbody tr.leaderboard-team-row .leaderboard-team-name {
  font-size: clamp(2.6rem, 3.55vw, 4.25rem) !important;
  line-height: 0.98 !important;
  margin-bottom: 0.24rem !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

#team-leaderboard-content .leaderboard-team-points-label,
#team-leaderboard-content .leaderboard-team-points-value {
  display: block !important;
}

#team-leaderboard-content .leaderboard-team-points-label {
  font-size: 0.48em !important;
  font-weight: 900 !important;
  letter-spacing: 0.08em !important;
  line-height: 1 !important;
  margin-bottom: 0.12rem !important;
  text-transform: uppercase !important;
}

#team-leaderboard-content .leaderboard-team-points-value {
  font-size: clamp(2.15rem, 2.8vw, 3.45rem) !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}

#team-leaderboard-content .table tbody tr.leaderboard-team-row .leaderboard-team-total {
  width: 15rem !important;
  min-width: 15rem !important;
  white-space: nowrap !important;
}

#individual-leaderboard-content .table tbody tr td {
  font-size: clamp(1.55rem, 2vw, 2.4rem) !important;
  padding-top: 0.62rem !important;
  padding-bottom: 0.62rem !important;
  vertical-align: middle !important;
}

#individual-leaderboard-content .table tbody tr td:first-child {
  font-size: clamp(1.9rem, 2.5vw, 3rem) !important;
  line-height: 1.05 !important;
}

#individual-leaderboard-content .table tbody tr td:nth-child(2) {
  font-size: clamp(2.25rem, 3vw, 3.65rem) !important;
  line-height: 1.02 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

#individual-leaderboard-content .table tbody tr td:last-child {
  width: 16.5rem !important;
  min-width: 16.5rem !important;
  font-size: clamp(2.15rem, 2.8vw, 3.45rem) !important;
  font-weight: 900 !important;
  overflow: visible !important;
  padding-left: 0.4rem !important;
  padding-right: 1.1rem !important;
  text-overflow: clip !important;
  white-space: nowrap !important;
}

#team-leaderboard-content .table tbody tr.leaderboard-team-rank-1 td {
  background: #d99b00 !important;
  border-color: #ffd86e !important;
  color: #1f1f1f !important;
}

#team-leaderboard-content .table tbody tr.leaderboard-team-rank-2 td {
  background: #bdbdbd !important;
  border-color: #f5d06e !important;
  color: #1f1f1f !important;
}

#team-leaderboard-content .table tbody tr.leaderboard-team-rank-3 td {
  background: #b9650d !important;
  border-color: #f4cb64 !important;
  color: #fff9ef !important;
}
