.bxlr-ui-layer {
  position: absolute;
  inset: 0;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: auto;
  padding: clamp(7px, 1vw, 16px);
  background: rgba(4, 17, 20, 0.94);
  color: #edf1ec;
  font-family: Arial, Helvetica, sans-serif;
  pointer-events: auto;
  touch-action: manipulation;
}

.bxlr-ui-layer * {
  box-sizing: border-box;
}

.bxlr-ui-layer button,
.bxlr-ui-layer input,
.bxlr-ui-layer textarea {
  font: inherit;
}

.bxlr-ui-layer button {
  cursor: pointer;
}

.bxlr-panel {
  width: min(100%, 1450px);
  max-height: 100%;
  overflow: auto;
  border: 2px solid rgba(237, 241, 236, 0.2);
  border-radius: clamp(12px, 1.4vw, 22px);
  background:
    linear-gradient(135deg, rgba(0, 169, 232, 0.08), transparent 34%),
    #091d21;
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.52);
}

.bxlr-results-layer .bxlr-panel {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
}

.bxlr-results-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex: 0 0 auto;
  padding: clamp(10px, 1.2vw, 18px) clamp(14px, 1.7vw, 26px);
  border-bottom: 1px solid rgba(237, 241, 236, 0.15);
}

.bxlr-kicker,
.bxlr-label {
  margin: 0 0 5px;
  color: #b8f20f;
  font-size: clamp(9px, 0.86vw, 13px);
  font-weight: 900;
  letter-spacing: 0.17em;
  text-transform: uppercase;
}

.bxlr-results-head h2,
.bxlr-menu-card h2,
.bxlr-form-card h2 {
  margin: 0;
  color: #fff;
  font-size: clamp(24px, 3vw, 48px);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.bxlr-final-time {
  flex: 0 0 auto;
  color: #fff;
  font-size: clamp(22px, 2.8vw, 44px);
  font-weight: 900;
  text-align: right;
}

.bxlr-final-time small {
  display: block;
  margin-bottom: 2px;
  color: #a9b8b4;
  font-size: clamp(8px, 0.72vw, 11px);
  letter-spacing: 0.16em;
}

.bxlr-results-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(330px, 0.92fr);
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
}

.bxlr-board-side,
.bxlr-actions-side {
  overflow: auto;
  padding: clamp(10px, 1.2vw, 18px);
}

.bxlr-board-side {
  border-right: 1px solid rgba(237, 241, 236, 0.14);
}

.bxlr-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 13px;
}

.bxlr-tab,
.bxlr-secondary,
.bxlr-ghost {
  min-height: 42px;
  border: 1px solid rgba(237, 241, 236, 0.25);
  border-radius: 8px;
  background: #102d32;
  color: #edf1ec;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.bxlr-tab.is-active {
  border-color: #00a9e8;
  background: #00a9e8;
  color: #06171b;
}

.bxlr-board-head,
.bxlr-score-row {
  display: grid;
  grid-template-columns: 46px minmax(100px, 1fr) 110px;
  align-items: center;
  gap: 10px;
}

.bxlr-board-head {
  padding: 5px 12px 8px;
  color: #758b87;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.13em;
}

.bxlr-score-list {
  display: grid;
  gap: 5px;
}

.bxlr-score-row {
  min-height: 36px;
  padding: 6px 12px;
  border: 1px solid rgba(237, 241, 236, 0.08);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.035);
  font-size: clamp(11px, 1vw, 15px);
  font-weight: 900;
}

.bxlr-score-row.is-current {
  border-color: #b8f20f;
  background: rgba(184, 242, 15, 0.13);
  color: #fff;
}

.bxlr-score-row .rank {
  color: #00a9e8;
}

.bxlr-score-row .time {
  text-align: right;
}

.bxlr-empty-board {
  display: grid;
  min-height: 255px;
  place-items: center;
  border: 1px dashed rgba(237, 241, 236, 0.18);
  border-radius: 8px;
  color: #93a6a2;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.bxlr-submit-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 8px;
}

.bxlr-name-input,
.bxlr-field input,
.bxlr-field textarea {
  width: 100%;
  border: 2px solid rgba(237, 241, 236, 0.28);
  border-radius: 8px;
  outline: none;
  background: #061417;
  color: #fff;
}

.bxlr-name-input {
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  font-size: clamp(18px, 1.7vw, 26px);
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.bxlr-name-input:focus,
.bxlr-field input:focus,
.bxlr-field textarea:focus {
  border-color: #00a9e8;
  box-shadow: 0 0 0 3px rgba(0, 169, 232, 0.14);
}

.bxlr-submit,
.bxlr-primary,
.bxlr-claim {
  border: 0;
  border-radius: 8px;
  color: #071316;
  font-weight: 900;
  letter-spacing: 0.055em;
  text-transform: uppercase;
}

.bxlr-submit {
  min-width: 138px;
  padding: 0 16px;
  background: #00a9e8;
}

.bxlr-submit:disabled {
  cursor: default;
  opacity: 0.7;
}

.bxlr-helper,
.bxlr-status,
.bxlr-form-note {
  color: #91a39f;
  font-size: clamp(9px, 0.78vw, 12px);
  line-height: 1.35;
}

.bxlr-status {
  min-height: 13px;
  margin: 2px 0 6px;
  color: #ffbc47;
  font-weight: 800;
}

.bxlr-breakdown {
  margin: 7px 0;
  padding: 6px 11px;
  border: 1px solid rgba(237, 241, 236, 0.11);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.bxlr-breakdown-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 2px 0;
  color: #bcc9c6;
  font-size: clamp(10px, 0.9vw, 14px);
}

.bxlr-breakdown-row strong {
  color: #fff;
}

.bxlr-breakdown-row.is-bonus strong {
  color: #b8f20f;
}

.bxlr-breakdown-row.is-total {
  margin-top: 5px;
  padding-top: 9px;
  border-top: 1px solid rgba(237, 241, 236, 0.17);
  font-weight: 900;
}

.bxlr-action-stack {
  display: grid;
  gap: 6px;
}

.bxlr-claim,
.bxlr-primary {
  min-height: 48px;
  padding: 10px 18px;
  background: #b8f20f;
  box-shadow: 0 7px 24px rgba(184, 242, 15, 0.2);
}

.bxlr-secondary {
  min-height: 42px;
  border-color: rgba(0, 169, 232, 0.65);
  background: #0b5968;
}

.bxlr-ghost {
  min-height: 30px;
  background: transparent;
  color: #a9b8b4;
  font-size: 11px;
}

.bxlr-menu-card,
.bxlr-form-card {
  width: min(900px, 100%);
  padding: clamp(22px, 3vw, 48px);
  border: 2px solid rgba(237, 241, 236, 0.18);
  border-radius: 22px;
  background: #091d21;
  box-shadow: 0 30px 90px rgba(0, 0, 0, 0.58);
  text-align: center;
}

.bxlr-menu-card > p,
.bxlr-form-card > p {
  max-width: 680px;
  margin: 14px auto 22px;
  color: #a9b8b4;
  line-height: 1.5;
}

.bxlr-mode-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.bxlr-mode-button {
  min-height: 150px;
  border: 2px solid rgba(237, 241, 236, 0.18);
  border-radius: 14px;
  background: #102d32;
  color: #fff;
  font-size: clamp(22px, 2.2vw, 34px);
  font-weight: 900;
}

.bxlr-mode-button:first-child {
  border-color: #b8f20f;
}

.bxlr-mode-button:last-child {
  border-color: #00a9e8;
}

.bxlr-mode-button small {
  display: block;
  margin-top: 8px;
  color: #9fb0ac;
  font-size: 11px;
  letter-spacing: 0.08em;
}

.bxlr-mode-button em {
  display: block;
  margin-top: 5px;
  color: #fff;
  font-size: 10px;
  font-style: normal;
  letter-spacing: 0.1em;
}

.bxlr-countdown {
  z-index: 140;
  background: rgba(4, 17, 20, 0.4);
  pointer-events: none;
}

.bxlr-ui-layer.bxlr-countdown { align-items:center;justify-content:center;padding:0;overflow:hidden; }
.game-wrap:has(.bxlr-countdown) .mobile-stick-zone { pointer-events:none; }

.bxlr-countdown-value {
  color: #fff;
  font-size: clamp(74px, 13vw, 190px);
  font-weight: 900;
  letter-spacing: -0.07em;
  line-height: 1;
  text-shadow: 0 9px 0 #071316, 0 0 44px rgba(184, 242, 15, 0.65);
  animation: bxlr-count-pop 0.58s both;
}

@keyframes bxlr-count-pop {
  from { opacity: 0; transform: scale(1.45); }
  25% { opacity: 1; }
  to { opacity: 1; transform: scale(1); }
}

.bxlr-live-timer {
  position: absolute;
  z-index: 45;
  top: 119px;
  left: 50%;
  display: none;
  min-width: 170px;
  transform: translateX(-50%);
  border: 2px solid rgba(255, 255, 255, 0.55);
  border-radius: 7px;
  padding: 7px 14px;
  background: rgba(4, 17, 20, 0.88);
  color: #fff;
  font-size: clamp(13px, 1.25vw, 20px);
  font-weight: 900;
  letter-spacing: 0.08em;
  text-align: center;
  pointer-events: none;
}

.bxlr-live-timer.is-visible {
  display: block;
}

.bxlr-kick-popups {
  position: absolute;
  z-index: 110;
  top: 18%;
  right: 3%;
  max-width: 27%;
  display: grid;
  gap: 7px;
  pointer-events: none;
}

.bxlr-kick-popup {
  border: 2px solid #071316;
  border-radius: 7px;
  padding: 8px 18px;
  background: #b8f20f;
  color: #071316;
  font-size: clamp(12px, 1.2vw, 19px);
  font-weight: 900;
  letter-spacing: 0.07em;
  text-align: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
  animation: bxlr-bonus-in 0.36s both;
}

@keyframes bxlr-bonus-in {
  from { opacity: 0; transform: translateY(18px) scale(0.8); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.bxlr-form-card {
  max-height: 100%;
  overflow: auto;
  text-align: left;
}

.bxlr-form-card h2,
.bxlr-form-card > p {
  text-align: center;
}

.bxlr-customer-switch {
  width: 100%;
  min-height: 44px;
  margin-bottom: 16px;
  border-color: #00a9e8;
  background: rgba(0, 169, 232, 0.14);
  color: #dff7ff;
}

.bxlr-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px 14px;
}

.bxlr-field {
  display: grid;
  gap: 5px;
  color: #d8e1de;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.bxlr-field.is-wide {
  grid-column: 1 / -1;
}

.bxlr-field input,
.bxlr-field textarea {
  min-height: 42px;
  padding: 9px 11px;
}

.bxlr-field textarea {
  min-height: 66px;
  resize: vertical;
}

.bxlr-form-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin-top: 14px;
}

.bxlr-demo-notice {
  margin: 12px 0 0;
  border: 1px solid rgba(255, 188, 71, 0.4);
  border-radius: 7px;
  padding: 9px 11px;
  background: rgba(255, 188, 71, 0.08);
  color: #ffcf78;
  font-size: 11px;
  line-height: 1.35;
}

.bxlr-promo-code {
  display: inline-block;
  margin: 4px 0 22px;
  border: 3px dashed #b8f20f;
  border-radius: 10px;
  padding: 10px 24px;
  color: #b8f20f;
  font-size: clamp(30px, 4vw, 62px);
  font-weight: 900;
  letter-spacing: 0.14em;
}

@media (max-width: 850px), (max-height: 610px) {
  .bxlr-ui-layer {
    align-items: flex-start;
    padding: 7px;
  }

  .bxlr-results-grid {
    grid-template-columns: 1fr 1fr;
    min-height: 0;
  }

  .bxlr-results-head {
    padding: 10px 14px;
  }

  .bxlr-board-side,
  .bxlr-actions-side {
    padding: 10px;
  }

  .bxlr-score-row {
    min-height: 29px;
    padding: 3px 8px;
  }

  .bxlr-empty-board {
    min-height: 170px;
  }

  .bxlr-live-timer {
    top: 91px;
  }
}

@media (max-width: 620px) {
  .bxlr-results-grid,
  .bxlr-mode-grid,
  .bxlr-form-grid,
  .bxlr-form-actions {
    grid-template-columns: 1fr;
  }

  .bxlr-board-side {
    border-right: 0;
    border-bottom: 1px solid rgba(237, 241, 236, 0.14);
  }

  .bxlr-field.is-wide {
    grid-column: auto;
  }
}
.bxlr-title-controls {
  position: absolute;
  bottom: 3%;
  left: 50%;
  transform: translateX(-50%);
  width: min(520px, 85%);
  display: grid;
  gap: 8px;
}
.bxlr-title-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; animation: bxlr-title-modes-in 3s linear both; }
@keyframes bxlr-title-modes-in { from { opacity: 0; } to { opacity: 1; } }
/* Keyboard users should never have to navigate invisible buttons. */
.bxlr-title-modes:focus-within { animation: none; opacity: 1; }
.game-wrap[data-bxlr-motion="reduced"] .bxlr-title-modes { animation: none; opacity: 1; }
@media (prefers-reduced-motion: reduce) { .game-wrap:not([data-bxlr-motion="full"]) .bxlr-title-modes { animation: none; opacity: 1; } }
.bxlr-boot { position: fixed; inset: 0; z-index: 9999; display: grid; align-content: center; justify-items: center; gap: 16px; background: #071a1f; color: #edf1ec; font-family: Arial, sans-serif; padding: 25px; text-align: center; }
.bxlr-boot h1 { color: #b8f20f; font-size: clamp(22px,4vw,40px); }
.bxlr-boot progress { width: min(460px,90vw); height: 20px; accent-color: #b8f20f; }
.bxlr-boot button { padding: 14px 30px; border: 0; border-radius: 8px; background: #b8f20f; color: #071a1f; cursor: pointer; }
.bxlr-boot { overflow:auto; }
.bxlr-boot details { width:min(600px,100%);font-size:13px; }
.bxlr-boot summary { cursor:pointer;min-height:44px;padding:12px; }
.bxlr-boot pre { white-space:pre-wrap;overflow-wrap:anywhere;text-align:left;font-size:12px; }
.bxlr-title-modes button { width:100%; min-width:0; min-height:44px; aspect-ratio:351/56; padding:0; border:0; border-radius:0; box-shadow:none; background:var(--title-normal) center/contain no-repeat; }
.bxlr-title-modes [data-title-mode="Easy"] { --title-normal:var(--title-easy); --title-over:var(--title-easyOver); }
.bxlr-title-modes [data-title-mode="Hard"] { --title-normal:var(--title-hard); --title-over:var(--title-hardOver); }
.bxlr-title-modes button:active, .bxlr-title-modes button:focus-visible { background-image:var(--title-over); }
.bxlr-title-modes button:focus-visible { outline:3px solid #fff; outline-offset:4px; }
@media (hover:hover) { .bxlr-title-modes button:hover { background-image:var(--title-over); } }
