:root {
  color-scheme: light;
  --red: #c9282d;
  --blue: #0800d8;
  --ink: #171a1f;
  --muted: #667085;
  --line: #d8dde6;
  --paper: #f6f7f9;
  --good: #157347;
  --warn: #a15c00;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

button,
input,
select {
  font: inherit;
}

.topbar {
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 0 20px;
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
}

.nav {
  display: flex;
  gap: 8px;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 6px;
  background: #ffffff;
}

.shell {
  width: min(1180px, calc(100vw - 32px));
  margin: 20px auto;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.panel {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
}

.panel h2,
.panel h3 {
  margin: 0 0 12px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
}

.field label {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.field input {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 6px;
  padding: 12px 16px;
  cursor: pointer;
  font-weight: 800;
}

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.btn-red {
  background: var(--red);
  border-color: var(--red);
  color: #ffffff;
}

.btn-blue {
  background: var(--blue);
  border-color: var(--blue);
  color: #ffffff;
}

.btn-green {
  background: var(--good);
  border-color: var(--good);
  color: #ffffff;
}

.btn-warn {
  background: #fff5e6;
  border-color: #ffd599;
  color: var(--warn);
}

.stat {
  display: grid;
  gap: 4px;
}

.stat span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

.stat strong {
  font-size: 34px;
}

.message {
  margin-top: 12px;
  color: var(--muted);
  min-height: 22px;
}

.message.error {
  color: #b42318;
}

.ticket {
  margin-top: 16px;
  border: 1px dashed #98a2b3;
  padding: 16px;
  background: #ffffff;
  max-width: 360px;
}

.ticket h3 {
  margin: 0 0 12px;
  text-align: center;
}

.ticket-row {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid #eef0f4;
  padding: 8px 0;
}

.table {
  width: 100%;
  border-collapse: collapse;
}

.table th,
.table td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

.dashboard {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 250px 1fr auto;
  overflow: hidden;
  background: #ffffff;
  color: #050505;
}

.dash-head {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  padding: 28px 32px 10px;
}

.dash-brand {
  font-size: 64px;
  line-height: 1;
  font-weight: 900;
}

.dash-fight {
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #050505;
  font-size: 76px;
  line-height: 1;
  font-weight: 900;
}

.dash-status {
  box-sizing: border-box;
  width: 330px;
  padding: 10px 38px 12px;
  background: #147d14;
  color: #ffffff;
  font-size: 44px;
  line-height: 1.05;
  font-weight: 900;
  text-align: center;
}

.scoreboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px minmax(0, 1fr);
  align-items: center;
  gap: 0;
  padding: 0 42px 140px;
}

.side {
  display: grid;
  align-content: start;
  gap: 6px;
  width: 520px;
  max-width: 42vw;
  min-width: 0;
  padding: 0;
  background: transparent;
}

.side.red {
  grid-column: 1;
  justify-self: end;
  justify-items: stretch;
}

.side.blue {
  grid-column: 3;
  justify-self: start;
  justify-items: stretch;
}

.side-label {
  width: 100%;
  color: #050505;
  font-size: 82px;
  line-height: 0.9;
  font-weight: 900;
  text-align: center;
}

.side-stack {
  width: 100%;
}

.side-total {
  box-sizing: border-box;
  width: 100%;
  min-height: 118px;
  display: grid;
  place-items: center;
  padding: 12px 24px;
  color: #ffffff;
  font-size: 78px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
}

.side-payout {
  box-sizing: border-box;
  width: 100%;
  min-height: 72px;
  display: grid;
  place-items: center;
  padding: 6px 24px;
  background: #050505;
  color: #ffffff;
  font-size: 0;
  line-height: 1;
  font-weight: 800;
}

.side-payout span {
  font-size: 50px;
  font-weight: 900;
  white-space: nowrap;
}

.side.red .side-total {
  background: var(--red);
}

.side.blue .side-total {
  background: var(--blue);
}

.scoreboard[hidden],
.result-board[hidden] {
  display: none;
}

.result-board {
  display: grid;
  align-content: start;
  justify-content: center;
  gap: 28px;
  min-height: 100%;
  padding: 38px 64px 64px;
  text-align: center;
  background: #ffffff;
  color: #111318;
}

.result-label {
  color: #111318;
  font-size: 44px;
  font-weight: 900;
}

.result-winner {
  font-size: 118px;
  line-height: 0.95;
  font-weight: 900;
}

.result-payout {
  font-size: 58px;
  font-weight: 900;
}

.result-meron .result-winner,
.result-meron .result-payout {
  color: var(--red);
}

.result-wala .result-winner,
.result-wala .result-payout {
  color: var(--blue);
}

.result-draw .result-winner,
.result-draw .result-payout {
  color: #16a34a;
}

.result-cancelled .result-winner,
.result-cancelled .result-payout {
  color: #000000;
}

.winner-banner {
  position: fixed;
  inset: 92px 12vw auto;
  padding: 26px;
  text-align: center;
  background: #ffffff;
  color: #111318;
  border: 6px solid #111318;
  border-radius: 8px;
  font-size: 56px;
  font-weight: 900;
  box-shadow: 0 20px 80px rgba(0, 0, 0, 0.45);
}

.history {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  min-height: 82px;
  padding: 14px 18px 18px;
  overflow: visible;
  background: rgba(0, 0, 0, 0.04);
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.chip {
  min-width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 5px;
  font-size: 18px;
  font-weight: 900;
  color: #ffffff;
}

.chip.red {
  background: var(--red);
}

.chip.blue {
  background: var(--blue);
}

.chip.green {
  background: #16a34a;
}

.chip.black {
  background: #000000;
}

.chip.neutral {
  background: #5f6673;
}

.teller-body {
  background: #ffffff;
}

.teller-screen {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 36px;
  padding: 26px 42px 18px;
  background: #ffffff;
}

.teller-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: calc(100vh - 56px);
}

.teller-code {
  width: 170px;
  margin-bottom: 18px;
}

.teller-code input {
  height: 36px;
  text-transform: uppercase;
  font-size: 20px;
  font-weight: 800;
  text-align: center;
}

.menu-btn {
  width: 170px;
  min-height: 34px;
  display: grid;
  place-items: center;
  margin: 0 0 8px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.menu-btn.green {
  background: #287c3d;
}

.menu-btn.red {
  background: #dd2700;
}

.menu-btn.amber {
  background: #d98600;
}

.menu-btn.lime {
  background: #25d44f;
}

.menu-btn.black {
  background: #000000;
}

.menu-btn.blue {
  background: #0800d8;
}

.menu-btn.soft-blue {
  background: #3b73de;
}

.link-btn {
  color: #ffffff;
}

.menu-spacer {
  height: 24px;
}

.menu-spacer.large {
  height: 34px;
}

.teller-workspace {
  width: 460px;
  justify-self: end;
  margin-right: 0;
}

.mini-label {
  color: #091848;
  font-weight: 900;
  font-size: 16px;
  line-height: 1;
  margin-bottom: 3px;
}

.status-block,
.side-strip {
  width: 460px;
}

.status-ribbon {
  height: 38px;
  display: grid;
  place-items: center;
  background: #f50808;
  color: #ffffff;
  font-size: 26px;
  font-weight: 900;
}

.side-strip {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  margin: 10px 0 14px;
}

.color-box {
  height: 38px;
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  padding: 0 12px;
  white-space: nowrap;
}

.color-box.meron {
  background: #de2600;
}

.color-box.wala {
  background: #302df0;
}

.summary-grid {
  display: none;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-bottom: 12px;
}

.summary-item {
  border: 1px solid #d7dce5;
  padding: 8px;
  text-align: center;
}

.summary-item span {
  display: block;
  color: #667085;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.summary-item strong {
  display: block;
  color: #091848;
  font-size: 21px;
  margin-top: 4px;
}

.ledger-block {
  width: fit-content;
  min-width: 460px;
  border: 1px solid #d7dce5;
  height: 188px;
  min-height: 0;
  margin-bottom: 10px;
  background: #ffffff;
}

.ledger-block h2 {
  height: 32px;
  display: grid;
  place-items: center;
  margin: 0;
  background: #087044;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.payout-ledger h2 {
  background: #c92c1d;
}

.cancel-ledger {
  height: 94px;
  margin-bottom: 0;
}

.cancel-ledger h2 {
  height: 26px;
  background: #000000;
  font-size: 19px;
}

.cancel-ledger .ledger-scroll {
  height: 67px;
}

.ledger-scroll {
  height: 155px;
  overflow: auto;
}

.ledger-block .table {
  width: 100%;
  table-layout: fixed;
}

.ledger-block .compact-table th:nth-child(1),
.ledger-block .compact-table td:nth-child(1) {
  width: 24%;
}

.ledger-block .compact-table th:nth-child(2),
.ledger-block .compact-table td:nth-child(2) {
  width: 21%;
}

.ledger-block .compact-table th:nth-child(3),
.ledger-block .compact-table td:nth-child(3) {
  width: 21%;
  text-align: right;
}

.ledger-block .compact-table th:nth-child(4),
.ledger-block .compact-table td:nth-child(4) {
  width: 34%;
  text-align: right;
}

.compact-table th,
.compact-table td {
  padding: 5px 12px;
  font-size: 16px;
  box-sizing: border-box;
  white-space: nowrap;
}

.bet-row td {
  color: #091848;
  font-size: 18px;
  font-weight: 900;
}

.ledger-block .compact-table td:nth-child(4) {
  font-variant-numeric: tabular-nums;
}

.bet-row.meron td:nth-child(2) {
  color: #e60000;
}

.bet-row.wala td:nth-child(2) {
  color: #0800d8;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(0, 0, 0, 0.58);
  z-index: 20;
}

.modal-backdrop[hidden] {
  display: none;
}

.teller-modal {
  position: relative;
  width: min(890px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  color: #091848;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.22);
}

.modal-close {
  position: absolute;
  top: 14px;
  right: 16px;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #091848;
  font-size: 36px;
  line-height: 1;
  cursor: pointer;
}

.betting-popup {
  width: min(640px, calc(100vw - 120px));
  padding: 24px 64px 20px;
  text-align: center;
}

.teller-modal h1 {
  margin: 0 0 26px;
  color: #091848;
  font-size: 64px;
  line-height: 0.95;
  font-weight: 500;
  letter-spacing: 0;
}

.betting-popup h1 {
  margin-bottom: 22px;
  font-size: 46px;
}

.payout-popup h1,
.simple-popup h1 {
  margin-bottom: 58px;
  font-size: 36px;
  font-weight: 900;
}

.payout-popup h1 {
  margin-bottom: 20px;
}

.popup-label {
  display: block;
  color: #091848;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.amount-input {
  width: 360px;
  max-width: 100%;
  height: 56px;
  margin: 4px auto 24px;
  display: block;
  border: 2px solid #0800ff;
  border-radius: 8px;
  color: #091848;
  font-size: 32px;
  text-align: center;
}

.amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px 36px;
  margin-bottom: 22px;
}

.amount-grid button,
.bet-side {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: #0800d8;
  color: #ffffff;
  font-size: 24px;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.08);
}

.bet-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  margin-bottom: 20px;
}

.bet-side.meron {
  background: #de2600;
}

.bet-side.wala {
  background: #302df0;
}

.closed-banner {
  margin: 16px -64px -20px;
  padding: 12px;
  background: #f50808;
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
}

.center-message {
  text-align: center;
  font-weight: 800;
}

.popup-ticket {
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.payout-popup {
  width: min(620px, calc(100vw - 72px));
  min-height: 0;
  max-height: calc(100vh - 64px);
  padding: 34px 54px 28px;
  text-align: center;
  overflow: hidden;
}

.ticket-search {
  width: 100%;
  max-width: 100%;
  height: 58px;
  border: 0;
  border-radius: 8px;
  background: #eeeeef;
  color: #091848;
  font-size: 30px;
  text-align: center;
}

.ticket-search::placeholder {
  color: #9da3b8;
}

.ticket-find-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: min(520px, 100%);
  margin: 0 auto;
}

.ticket-find-row .btn {
  height: 58px;
  padding: 0 18px;
  white-space: nowrap;
}

.cancel-ticket-popup {
  width: min(720px, calc(100vw - 72px));
}

.cancel-modal-history {
  margin-top: 24px;
  border: 1px solid #d7dce5;
  text-align: left;
}

.cancel-modal-history h2 {
  margin: 0;
  height: 34px;
  display: grid;
  place-items: center;
  background: #000000;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.cancel-modal-scroll {
  max-height: 218px;
  overflow: auto;
}

.cancel-modal-history .table {
  width: 100%;
}

.reprint-list {
  display: grid;
  gap: 12px;
}

.reprint-ticket-card {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 18px;
  min-height: 58px;
  border: 1px solid #d7dce5;
  border-radius: 6px;
  background: #ffffff;
  color: #091848;
  padding: 10px 14px;
  font-size: 22px;
  font-weight: 900;
  text-align: left;
  cursor: pointer;
}

.reprint-ticket-card strong {
  font-size: 24px;
}

.reprint-ticket-card.meron span:first-of-type {
  color: #e60000;
}

.reprint-ticket-card.wala span:first-of-type {
  color: #0800d8;
}

.empty-reprint {
  padding: 22px;
  border: 1px solid #d7dce5;
  color: #667085;
  font-size: 20px;
  font-weight: 800;
}

.list-popup {
  width: min(700px, calc(100vw - 72px));
}

.list-popup-scroll {
  max-height: min(520px, calc(100vh - 220px));
  overflow: auto;
  border: 1px solid #d7dce5;
  text-align: left;
}

.list-popup .table {
  width: 100%;
}

.list-popup .compact-table th,
.list-popup .compact-table td {
  padding: 9px 12px;
}

.list-popup .compact-table th {
  font-size: 20px;
}

.list-popup .bet-row td {
  font-size: 22px;
}

.cash-total {
  margin: 18px 0 0;
  color: #091848;
  font-size: 20px;
  font-weight: 900;
}

.cash-total strong {
  color: #068432;
}

.cash-in-history {
  margin-top: 18px;
}

.transfer-popup {
  width: min(720px, calc(100vw - 72px));
}

.transfer-entry-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.transfer-entry-row .btn {
  height: 58px;
  padding: 0 22px;
  white-space: nowrap;
}

.transfer-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 16px;
}

.transfer-summary div {
  border: 1px solid #d7dce5;
  padding: 10px;
  color: #091848;
  font-size: 14px;
  font-weight: 900;
}

.transfer-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 20px;
}

.transfer-history {
  margin-top: 18px;
}

.transfer-row.transfer-in td:first-child,
.transfer-row.transfer-in td:nth-child(3) {
  color: #087044;
}

.transfer-row.transfer-out td:first-child,
.transfer-row.transfer-out td:nth-child(3) {
  color: #c92c1d;
}

.payout-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 22px 0 24px;
}

.payout-detail div {
  display: grid;
  gap: 8px;
  min-height: 92px;
  align-content: center;
  border: 1px solid #d7dce5;
  background: #ffffff;
  padding: 12px;
}

.payout-detail span {
  color: #091848;
  font-size: 17px;
  font-weight: 900;
}

.payout-detail strong {
  color: #091848;
  font-size: 32px;
  font-weight: 400;
}

.modal-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
}

.simple-popup {
  min-height: 360px;
  padding: 48px;
  text-align: center;
}

.simple-popup p {
  margin: 0 auto;
  max-width: 520px;
  color: #667085;
  font-size: 20px;
  line-height: 1.5;
}

.confirm-popup {
  width: min(620px, calc(100vw - 80px));
  padding: 0 0 30px;
  text-align: center;
  overflow: hidden;
}

.confirm-header {
  height: 62px;
  display: grid;
  place-items: center;
  background: #f50808;
  color: #ffffff;
  font-size: 44px;
  font-weight: 900;
}

.confirm-header.wala {
  background: #0800d8;
}

.confirm-popup h1 {
  margin: 18px 0 28px;
  color: #091848;
  font-size: 28px;
  font-weight: 900;
}

.confirm-box {
  width: 300px;
  min-height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  border: 2px solid #cfd2d9;
  border-radius: 8px;
  background: #eeeeef;
  color: #000000;
  font-size: 36px;
  font-weight: 900;
}

.confirm-caption {
  margin: 2px 0 28px;
  color: #091848;
  font-size: 20px;
  font-style: italic;
  font-weight: 900;
}

.confirm-side {
  width: 300px;
  min-height: 58px;
  display: grid;
  place-items: center;
  margin: 0 auto;
  background: #f50808;
  color: #ffffff;
  font-size: 34px;
  font-weight: 900;
}

.confirm-side.wala {
  background: #0800d8;
}

.confirm-actions {
  display: flex;
  justify-content: space-between;
  gap: 44px;
  width: min(500px, calc(100% - 56px));
  margin: 0 auto;
}

.confirm-actions button {
  width: 210px;
  min-height: 60px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  font-size: 30px;
  font-weight: 900;
  cursor: pointer;
}

.confirm-ok {
  background: #2caf18;
}

.confirm-cancel {
  background: #e83100;
}

.print-popup {
  width: min(420px, calc(100vw - 40px));
  padding: 0 0 20px;
  text-align: center;
  overflow: hidden;
}

.receipt-card {
  width: 80mm;
  max-width: 100%;
  margin: 0 auto;
  padding: 14mm 7mm 26mm;
  background: #ffffff;
  color: #091848;
  box-sizing: border-box;
}

.receipt-card h1 {
  margin: 0 0 4px;
  font-size: 24px;
  font-weight: 900;
}

.report-popup {
  width: min(380px, calc(100vw - 40px));
  padding: 0 0 24px;
  text-align: center;
  overflow: hidden;
}

.report-card {
  width: 80mm;
  max-width: 100%;
  margin: 0 auto;
  padding: 10mm 7mm 8mm;
  background: #ffffff;
  color: #091848;
}

.report-card h1 {
  margin: 0 0 8px;
  font-size: 30px;
  font-weight: 900;
}

.report-date {
  margin-bottom: 12px;
  color: #091848;
  font-size: 16px;
  font-weight: 900;
}

.report-line {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: baseline;
  min-height: 26px;
  color: #000000;
  font-size: 20px;
  font-weight: 900;
  text-align: left;
}

.report-line strong {
  color: #091848;
  text-align: right;
}

.report-total {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: baseline;
  margin-top: 26px;
  color: #000000;
  font-size: 22px;
  font-weight: 900;
  text-align: left;
}

.report-total strong {
  color: #000000;
  font-size: 24px;
  white-space: nowrap;
}

.report-teller {
  margin-top: 24px;
  color: #091848;
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.receipt-date {
  font-size: 16px;
  margin-bottom: 10px;
}

.receipt-amount {
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
  margin-bottom: 14px;
}

.barcode {
  height: 54px;
  width: 100%;
  margin: 0 auto 5px;
}

.barcode svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #000000;
  shape-rendering: crispEdges;
}

.barcode-text {
  font-size: 20px;
  letter-spacing: 0;
  white-space: pre;
}

.receipt-side {
  margin-top: 4px;
  font-size: 28px;
  font-weight: 900;
}

.receipt-fight {
  margin-top: 6px;
  font-size: 16px;
  font-weight: 900;
}

.receipt-teller {
  margin-top: 18px;
  font-size: 16px;
}

.receipt-marker {
  min-height: 24px;
  margin-top: 10px;
  color: #f50808;
  font-size: 22px;
  font-weight: 900;
}

.receipt-reprint {
  width: 210px;
  min-height: 58px;
  margin-top: -64px;
  border: 0;
  border-radius: 8px;
  background: #0800d8;
  color: #ffffff;
  font-size: 32px;
  cursor: pointer;
}

.player-cash-popup h1 {
  margin-bottom: 26px;
}

.player-cash-popup {
  width: min(720px, calc(100vw - 72px));
}

.player-cash-detail {
  width: min(520px, 100%);
  margin: 18px auto 0;
  border: 1px solid #d7dce5;
  background: #ffffff;
  text-align: left;
}

.player-cash-detail div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 14px;
  border-bottom: 1px solid #edf0f5;
  color: #091848;
  font-size: 19px;
  font-weight: 800;
}

.player-cash-detail div:last-child {
  border-bottom: 0;
}

.player-cash-detail span {
  color: #667085;
}

.player-cash-detail strong {
  text-align: right;
}

.player-cash-complete {
  width: min(360px, 100%);
  min-height: 58px;
  margin-top: 18px;
  font-size: 24px;
}

.player-cash-history {
  margin-top: 18px;
  border: 1px solid #d7dce5;
  text-align: left;
}

.player-cash-history h2 {
  margin: 0;
  height: 34px;
  display: grid;
  place-items: center;
  background: #091848;
  color: #ffffff;
  font-size: 20px;
  line-height: 1;
}

.player-cash-history-scroll {
  height: 202px;
  overflow: auto;
}

.player-cash-history .table {
  width: 100%;
  table-layout: fixed;
}

.player-cash-history th,
.player-cash-history td {
  padding: 7px 10px;
  white-space: nowrap;
}

.player-cash-history th:nth-child(1),
.player-cash-history td:nth-child(1) {
  width: 44%;
}

.player-cash-history th:nth-child(2),
.player-cash-history td:nth-child(2) {
  width: 26%;
  text-align: right;
}

.player-cash-history th:nth-child(3),
.player-cash-history td:nth-child(3) {
  width: 30%;
  text-align: right;
}

.player-cash-history .bet-row td {
  font-size: 18px;
}

.player-cash-history .empty-row td {
  height: 150px;
  color: #667085;
  text-align: center;
}

.player-body {
  margin: 0;
  background: #000000;
  color: #ffffff;
}

.player-screen {
  width: min(100%, 620px);
  min-height: 100vh;
  margin: 0 auto;
  padding: 12px 7px 28px;
  background: #000000;
  font-family: Arial, Helvetica, sans-serif;
  display: flex;
  flex-direction: column;
}

.player-header h1 {
  margin: 0 0 10px;
  color: #ffffff;
  font-size: 32px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.player-status {
  min-height: 58px;
  display: grid;
  place-items: center;
  background: #ffffff;
  color: #18b94f;
  font-size: 30px;
  font-weight: 900;
  text-align: center;
}

.player-status.status-closed,
.player-status.status-done {
  color: #f50808;
}

.player-status.status-open {
  color: #18b94f;
}

.player-score {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.player-side {
  min-height: 82px;
  display: grid;
  place-items: center;
  align-content: center;
  color: #ffffff;
  font-weight: 900;
}

.player-side.meron {
  background: #f50808;
}

.player-side.wala {
  background: #0800d8;
}

.player-side span,
.player-side strong {
  font-size: 28px;
}

.player-payouts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid #ffffff;
  border-top: 0;
}

.player-payouts div {
  display: grid;
  place-items: center;
  min-height: 74px;
  border-right: 1px solid #ffffff;
}

.player-payouts div:last-child {
  border-right: 0;
}

.player-payouts span {
  font-size: 18px;
  font-weight: 900;
}

.player-payouts strong {
  font-size: 30px;
  font-weight: 900;
}

.player-account {
  min-height: 132px;
  display: grid;
  align-content: center;
  padding: 20px 10px 18px;
  color: #ffffff;
  text-align: center;
}

.player-balance-main {
  color: #ffffff;
  font-size: 63px;
  line-height: 1;
  font-weight: 900;
}

.player-balance-label,
.player-modal-label {
  color: #091848;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.player-account .player-balance-label {
  color: #ffffff;
  margin-top: 12px;
}

.player-identity {
  margin-top: 10px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
}

.player-identity span,
.player-identity strong {
  display: block;
}

.player-open-bets {
  margin: 0 0 14px;
  color: #ffffff;
}

.player-open-bets h2 {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.player-open-bets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.player-open-side {
  min-height: 80px;
  border: 1px solid rgba(255, 255, 255, 0.65);
  background: #111111;
}

.player-open-side h3 {
  margin: 0;
  padding: 4px 6px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.player-open-side.meron h3 {
  background: #f50808;
}

.player-open-side.wala h3 {
  background: #0800d8;
}

.player-open-bet-row {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 11px 8px;
  color: #ffffff;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.player-open-bet-row strong {
  text-align: center;
}

.player-total-panel {
  margin-top: 14px;
  padding-bottom: 12px;
  background: #176c78;
  color: #ffffff;
}

.player-total-panel h2 {
  min-height: 34px;
  display: grid;
  place-items: center;
  margin: 0 0 10px;
  background: #000000;
  color: #ffffff;
  font-size: 25px;
  font-weight: 900;
}

.player-total-panel div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  padding: 3px 10px;
  color: #ffffff;
  font-size: 26px;
  line-height: 1.25;
  font-weight: 900;
}

.player-menu-action {
  width: 100%;
  min-height: 60px;
  border: 0;
  border-radius: 4px;
  color: #ffffff;
  font-size: 32px;
  font-weight: 900;
}

.player-actions-stack {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 14px;
}

.player-menu-action.green,
.player-submit.green {
  background: #29b314;
}

.player-menu-action.blue {
  background: #0648ee;
}

.player-menu-action.orange {
  background: #f19900;
}

.player-menu-action.teal {
  background: #268a74;
}

.player-menu-action.red {
  background: #f31605;
}

.player-menu-action.install {
  background: #4f46e5;
}

.player-menu-action.gray {
  background: #85838d;
}

.player-modal-backdrop {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: start center;
  padding: 70px 0 22px;
  background: rgba(0, 0, 0, 0.58);
  overflow: auto;
  z-index: 50;
}

.player-modal-backdrop[hidden] {
  display: none;
}

#confirmBetModal {
  place-items: center;
  padding: 22px 0;
}

.player-modal {
  width: min(500px, calc(100vw - 92px));
  min-height: 0;
  border-radius: 6px;
  background: #ffffff;
  color: #091848;
  text-align: center;
  box-sizing: border-box;
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
}

.player-modal h2 {
  margin: 0;
  color: #091848;
  font-size: 31px;
  font-weight: 900;
}

.player-login-modal {
  width: min(430px, calc(100vw - 46px));
  padding: 22px 28px 26px;
  border-top: 10px solid #091848;
}

.player-login-modal h2 {
  font-size: 27px;
  letter-spacing: 0;
}

.player-login-modal label {
  margin: 20px 0 8px;
  color: #091848;
  font-size: 15px;
}

.player-login-modal .player-modal-amount {
  width: 100%;
  height: 52px;
  border: 2px solid #091848;
  border-radius: 4px;
  font-size: 24px;
  text-align: left;
  padding: 0 14px;
}

.player-login-modal .player-modal-amount:focus {
  outline: 3px solid rgba(9, 24, 72, 0.18);
  border-color: #091848;
}

.player-login-modal .player-submit {
  width: 100%;
  min-height: 56px;
  margin-top: 28px;
  background: #18a80d;
  font-size: 25px;
}

.signup-body {
  min-height: 100vh;
  display: grid;
  place-items: start center;
  padding: 34px 0;
}

.signup-screen {
  width: min(480px, calc(100vw - 34px));
}

.signup-card {
  width: 100%;
  margin: 0 auto;
}

.signup-link {
  display: inline-block;
  margin-top: 16px;
  color: #091848;
  font-size: 16px;
  font-weight: 900;
  text-decoration: none;
}

.signup-link:active,
.signup-link:focus,
.signup-link:hover {
  text-decoration: underline;
}

.player-betting-modal {
  min-height: 760px;
  padding: 18px 24px 24px;
}

.player-cash-modal {
  padding: 42px 32px 24px;
}

.player-cash-modal h2 {
  margin-top: 42px;
  font-size: 22px;
}

.player-modal label {
  display: block;
  margin: 22px 0 5px;
  color: #091848;
  font-size: 17px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.player-modal-amount {
  width: min(336px, 100%);
  height: 62px;
  border: 2px solid #0800d8;
  border-radius: 6px;
  background: #ffffff;
  color: #091848;
  font-size: 34px;
  font-weight: 900;
  text-align: center;
  box-sizing: border-box;
}

.player-modal-amount::placeholder {
  color: #cfd1d9;
}

.player-modal-balance {
  color: #091848;
  font-size: 24px;
  font-weight: 900;
}

.player-modal-balance-large {
  color: #091848;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
}

.player-bet-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  margin: 14px 0 40px;
}

.player-action {
  min-height: 62px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  font-size: 29px;
  font-weight: 900;
}

.player-action.red {
  background: #f50808;
}

.player-action.blue {
  background: #0800d8;
}

.player-action:disabled {
  opacity: 0.45;
}

.player-amount-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px 40px;
}

.player-amount-grid button {
  min-height: 56px;
  border: 0;
  border-radius: 6px;
  background: #0800d8;
  color: #ffffff;
  font-size: 27px;
  font-weight: 900;
}

.player-submit {
  width: min(268px, 100%);
  min-height: 66px;
  margin-top: 84px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  font-size: 29px;
  font-weight: 900;
}

.player-modal-close {
  min-width: 202px;
  min-height: 52px;
  margin-top: 22px;
  border: 0;
  border-radius: 6px;
  background: #000000;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-modal-close.red {
  min-height: 48px;
  margin: 0;
  background: #ef330f;
  font-size: 26px;
}

.player-message {
  min-height: 24px;
  padding: 10px 12px 0;
  color: #091848;
  font-size: 16px;
  font-weight: 900;
  text-align: center;
}

.player-message.error {
  color: #d61b12;
}

.player-closed-note {
  margin-top: 12px;
  padding: 8px;
  background: #000000;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.player-code-card {
  padding: 48px 32px 12px;
}

.player-code-card h2 {
  margin: 46px 0 20px;
  color: #e11b12;
  font-size: 25px;
  line-height: 1.15;
}

.player-code-amount {
  width: min(336px, 100%);
  min-height: 64px;
  display: grid;
  place-items: center;
  margin: 0 auto 8px;
  border: 1px solid #dedfe5;
  border-radius: 6px;
  color: #000000;
  font-size: 42px;
  font-weight: 900;
}

.player-code-barcode {
  width: min(384px, 100%);
  height: 122px;
  margin: 20px auto 10px;
}

.player-code-barcode svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: #000000;
  shape-rendering: crispEdges;
}

.player-code-text {
  color: #000000;
  font-size: 58px;
  line-height: 1;
  font-weight: 500;
  letter-spacing: 30px;
  text-indent: 30px;
}

.player-code-card p {
  margin: 18px 0 30px;
  color: #091848;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 900;
}

.player-valid-until {
  color: #268512;
  font-size: 24px;
  line-height: 1.2;
  font-weight: 900;
}

.player-cancel-request {
  min-width: 270px;
  min-height: 66px;
  margin-top: 46px;
  border: 0;
  border-radius: 5px;
  background: #ef330f;
  color: #ffffff;
  font-size: 25px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-history-modal {
  min-height: 686px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  padding: 0;
}

.player-history-modal h2 {
  min-height: 90px;
  display: grid;
  place-items: center;
  border-bottom: 1px solid #e5e7eb;
  font-size: 36px;
}

.player-history-content {
  padding: 14px;
  overflow: auto;
  text-align: left;
}

.player-history-empty {
  padding: 34px 10px;
  color: #091848;
  font-size: 24px;
  font-weight: 900;
  text-align: center;
}

.player-history-modal footer {
  min-height: 92px;
  display: grid;
  place-items: center;
  border-top: 1px solid #e5e7eb;
}

.player-result-modal {
  width: min(430px, calc(100vw - 70px));
  padding: 34px 28px 28px;
}

.player-result-modal h2 {
  color: #168a16;
  font-size: 42px;
  line-height: 1;
}

.player-modal-backdrop.lost .player-result-modal h2 {
  color: #f50808;
}

.player-modal-backdrop.won .player-result-modal h2 {
  color: #168a16;
}

.player-result-side {
  margin: 18px 0 20px;
  color: #091848;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.player-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 20px;
  align-items: center;
  margin: 0 auto 8px;
  color: #091848;
  font-weight: 900;
}

.player-result-grid span {
  font-size: 22px;
  text-align: left;
}

.player-result-grid strong {
  font-size: 30px;
  text-align: right;
}

.player-install-modal {
  width: min(430px, calc(100vw - 70px));
  padding: 34px 28px 28px;
}

.install-steps {
  margin: 22px 0 26px;
  color: #091848;
  font-size: 26px;
  line-height: 1.2;
  font-weight: 900;
}

.player-confirm-modal {
  width: min(430px, calc(100vw - 70px));
  padding: 36px 30px 30px;
}

.player-confirm-amount {
  color: #091848;
  font-size: 62px;
  line-height: 1;
  font-weight: 900;
}

.player-confirm-side {
  margin-top: 16px;
  font-size: 42px;
  line-height: 1;
  font-weight: 900;
}

.player-confirm-side.meron {
  color: #f50808;
}

.player-confirm-side.wala {
  color: #0800d8;
}

.player-confirm-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 34px;
}

.player-confirm-actions button {
  min-height: 58px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  font-size: 24px;
  font-weight: 900;
  text-transform: uppercase;
}

.player-history-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 12px;
  min-height: 68px;
  padding: 14px 8px;
  border-bottom: 1px solid #e5e7eb;
  color: #091848;
  font-size: 26px;
  line-height: 1.08;
  font-weight: 900;
}

.player-history-row.bet {
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "label status"
    "values values"
    "action action";
  align-items: start;
}

.player-history-row.bet > span {
  grid-area: label;
}

.player-bet-history-values {
  grid-area: values;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
}

.player-bet-history-values strong {
  display: block;
  min-width: 0;
  text-align: center;
}

.player-bet-history-values strong small {
  display: block;
  margin-bottom: 4px;
  color: #526071;
  font-size: 14px;
  line-height: 1;
}

.player-history-row.bet em {
  grid-area: status;
  min-width: 86px;
  text-align: right;
}

.player-history-row.bet button {
  grid-area: action;
  justify-self: end;
}

.player-history-row.balance {
  grid-template-columns: minmax(0, 1fr) auto;
}

.player-history-row.balance strong {
  grid-column: 2;
  grid-row: 1;
  min-width: 140px;
  text-align: right;
}

.player-history-row.balance span {
  min-width: 0;
}

.player-history-row.balance small {
  display: block;
  margin-top: 4px;
  color: #526071;
  font-size: 19px;
  line-height: 1.05;
  font-weight: 900;
}

.player-history-row.balance em {
  grid-column: 2;
  grid-row: 1;
  align-self: end;
  display: block;
  margin-top: 38px;
  color: #526071;
  font-size: 20px;
  line-height: 1.05;
  font-style: normal;
  font-weight: 900;
  text-align: right;
}

.player-history-row.bet.meron span {
  color: #e60000;
}

.player-history-row.bet.wala span {
  color: #0800d8;
}

.player-history-row button {
  min-height: 38px;
  border: 0;
  border-radius: 3px;
  background: #ef330f;
  color: #ffffff;
  font-size: 16px;
  font-weight: 900;
}

.player-history-row.in span {
  color: #087044;
}

.player-history-row.in strong {
  color: #087044;
}

.player-history-row.out span {
  color: #d61b12;
}

.player-history-row.out strong {
  color: #d61b12;
}

.player-history-row:not(.balance) em {
  font-style: normal;
  font-size: 20px;
}

.player-history-row em.bet-status-win {
  color: #087044;
}

.player-history-row em.bet-status-lose {
  color: #d61b12;
}

.player-history-row em.bet-status-draw {
  color: #168a16;
}

.player-history-row em.bet-status-cancelled {
  color: #091848;
}

@media (max-width: 480px) {
  .player-screen {
    min-height: 100dvh;
    padding: 8px 7px 12px;
  }

  .player-header h1 {
    margin-bottom: 8px;
    font-size: 30px;
  }

  .player-status {
    min-height: 50px;
    font-size: 28px;
  }

  .player-side {
    min-height: 66px;
  }

  .player-side span,
  .player-side strong {
    font-size: 26px;
  }

  .player-payouts div {
    min-height: 54px;
  }

  .player-payouts span {
    font-size: 16px;
  }

  .player-payouts strong {
    font-size: 27px;
  }

  .player-account {
    flex: 1;
    min-height: 134px;
    padding: 18px 10px 16px;
  }

  .player-balance-main {
    font-size: 57px;
  }

  .player-account .player-balance-label {
    margin-top: 9px;
    font-size: 16px;
  }

  .player-open-bets {
    margin-bottom: 10px;
  }

  .player-open-bets h2 {
    font-size: 21px;
  }

  .player-open-side {
    min-height: 74px;
  }

  .player-open-side h3 {
    font-size: 17px;
  }

  .player-open-bet-row {
    padding: 10px 7px;
    font-size: 28px;
  }

  .player-total-panel {
    margin-top: 10px;
    padding-bottom: 8px;
  }

  .player-total-panel h2 {
    min-height: 30px;
    margin-bottom: 6px;
    font-size: 22px;
  }

  .player-total-panel div {
    padding: 2px 12px;
    font-size: 23px;
    line-height: 1.18;
  }

  .player-menu-action {
    min-height: 54px;
    font-size: 29px;
  }

  .player-actions-stack {
    flex: 0 0 auto;
    gap: 10px;
  }

  .player-modal-backdrop {
    padding-top: 22px;
  }

  .player-modal {
    width: calc(100vw - 44px);
  }

  .player-betting-modal {
    min-height: 0;
    padding: 26px 30px 30px;
  }

  .player-modal h2 {
    font-size: 31px;
  }

  .player-modal label {
    margin-top: 24px;
  }

  .player-modal-amount {
    width: 100%;
    height: 58px;
    font-size: 31px;
  }

  .player-login-modal {
    width: calc(100vw - 54px);
    padding: 20px 22px 24px;
  }

  .player-login-modal h2 {
    font-size: 27px;
  }

  .player-login-modal label {
    margin-top: 18px;
    font-size: 15px;
  }

  .player-login-modal .player-modal-amount {
    height: 50px;
    font-size: 23px;
  }

  .player-login-modal .player-submit {
    min-height: 54px;
    margin-top: 26px;
    font-size: 24px;
  }

  .signup-body {
    padding: 22px 0;
  }

  .signup-screen {
    width: calc(100vw - 34px);
  }

  .player-modal-balance {
    font-size: 23px;
  }

  .player-bet-actions {
    gap: 28px;
    margin: 14px 0 42px;
  }

  .player-action {
    min-height: 62px;
    font-size: 29px;
  }

  .player-amount-grid {
    gap: 12px 24px;
  }

  .player-amount-grid button {
    min-width: 0;
    min-height: 56px;
    padding: 0 8px;
    font-size: 27px;
  }

  .player-modal-close {
    margin-top: 30px;
  }

  .player-result-modal {
    width: calc(100vw - 54px);
    padding: 30px 24px 26px;
  }

  .player-result-modal h2 {
    font-size: 39px;
  }

  .player-result-side {
    font-size: 28px;
  }

  .player-result-grid strong {
    font-size: 28px;
  }

  .player-history-row.bet {
    gap: 8px;
    font-size: 23px;
  }

  .player-bet-history-values {
    gap: 6px;
  }

  .player-bet-history-values strong {
    font-size: 22px;
  }

  .player-bet-history-values strong small {
    font-size: 12px;
  }

  .player-history-row.bet em {
    min-width: 72px;
    font-size: 19px;
  }

  .player-confirm-modal {
    width: calc(100vw - 54px);
    padding: 34px 24px 28px;
  }

  .player-confirm-amount {
    font-size: 58px;
  }

  .player-confirm-side {
    font-size: 39px;
  }

  .player-confirm-actions button {
    font-size: 23px;
  }
}

@media (max-width: 370px) {
  .player-header h1 {
    font-size: 27px;
  }

  .player-status {
    min-height: 46px;
    font-size: 25px;
  }

  .player-side {
    min-height: 58px;
  }

  .player-side span,
  .player-side strong {
    font-size: 23px;
  }

  .player-payouts div {
    min-height: 48px;
  }

  .player-payouts strong {
    font-size: 24px;
  }

  .player-balance-main {
    font-size: 51px;
  }

  .player-open-bets h2 {
    font-size: 19px;
  }

  .player-open-bet-row {
    font-size: 25px;
  }

  .player-total-panel div {
    font-size: 20px;
  }

  .player-menu-action {
    min-height: 50px;
    font-size: 25px;
  }

  .player-actions-stack {
    gap: 8px;
  }

  .player-modal {
    width: calc(100vw - 32px);
  }

  .player-betting-modal {
    padding-left: 22px;
    padding-right: 22px;
  }

  .player-bet-actions {
    gap: 18px;
  }

  .player-amount-grid {
    gap: 10px 14px;
  }

  .player-action,
  .player-amount-grid button {
    font-size: 24px;
  }

  .player-result-modal {
    width: calc(100vw - 34px);
    padding: 28px 20px 24px;
  }

  .player-result-modal h2 {
    font-size: 34px;
  }

  .player-result-side {
    font-size: 25px;
  }

  .player-result-grid {
    gap: 8px 14px;
  }

  .player-result-grid span {
    font-size: 20px;
  }

  .player-result-grid strong {
    font-size: 25px;
  }

  .player-history-row.bet {
    gap: 6px;
    font-size: 20px;
  }

  .player-bet-history-values {
    gap: 5px;
  }

  .player-bet-history-values strong {
    font-size: 18px;
  }

  .player-bet-history-values strong small {
    font-size: 10px;
  }

  .player-history-row.bet em {
    min-width: 62px;
    font-size: 16px;
  }

  .player-confirm-modal {
    width: calc(100vw - 34px);
    padding: 30px 18px 24px;
  }

  .player-confirm-amount {
    font-size: 52px;
  }

  .player-confirm-side {
    font-size: 34px;
  }

  .player-confirm-actions {
    gap: 12px;
  }

  .player-confirm-actions button {
    min-height: 54px;
    font-size: 20px;
  }
}

.admin-body {
  background: #ffffff;
  color: #091848;
}

.superuser-body {
  margin: 0;
  background: #eef1f5;
  color: #091848;
  font-family: Arial, Helvetica, sans-serif;
}

.superuser-screen {
  width: min(1160px, calc(100vw - 36px));
  margin: 24px auto;
}

.superuser-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.superuser-header h1 {
  margin: 0;
  font-size: 40px;
  line-height: 1;
  font-weight: 900;
}

.superuser-header p {
  margin: 8px 0 0;
  color: #526071;
  font-size: 15px;
  font-weight: 900;
}

.superuser-header button {
  min-width: 148px;
  min-height: 46px;
  border: 0;
  border-radius: 6px;
  background: #091848;
  color: #ffffff;
  font-size: 18px;
  font-weight: 900;
}

.superuser-cards {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.superuser-cards article,
.superuser-panel {
  border: 1px solid #d7dce5;
  border-radius: 6px;
  background: #ffffff;
}

.superuser-cards article {
  padding: 16px;
}

.superuser-cards span {
  display: block;
  color: #526071;
  font-size: 15px;
  font-weight: 900;
}

.superuser-cards strong {
  display: block;
  margin-top: 8px;
  font-size: 30px;
  line-height: 1;
  font-weight: 900;
}

.superuser-cards .ok strong {
  color: #087044;
}

.superuser-cards .bad strong {
  color: #d61b12;
}

.superuser-offset-card em,
.superuser-daily-cards em {
  display: block;
  margin-top: 8px;
  color: #526071;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.superuser-offset-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: 12px;
}

.superuser-offset-actions button {
  border: 0;
  border-radius: 5px;
  background: #0b1b4d;
  color: #ffffff;
  min-height: 36px;
  font-size: 15px;
  font-weight: 900;
}

.superuser-daily-cards {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.superuser-panel {
  overflow: hidden;
}

.superuser-panel h2 {
  margin: 0;
  padding: 14px 16px;
  border-bottom: 1px solid #d7dce5;
  font-size: 24px;
  line-height: 1;
  font-weight: 900;
}

.superuser-panel h2 strong {
  float: right;
  font-size: 22px;
}

.superuser-ticket-tool {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid #d7dce5;
}

.superuser-ticket-tool input {
  border: 1px solid #b9c2d0;
  border-radius: 5px;
  min-height: 42px;
  padding: 0 12px;
  color: #07143f;
  font-size: 18px;
  font-weight: 900;
  text-transform: uppercase;
}

.superuser-ticket-tool button {
  border: 0;
  border-radius: 5px;
  min-height: 42px;
  padding: 0 16px;
  background: #0b1b4d;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.superuser-ticket-tool button:disabled {
  background: #9aa3b2;
}

.superuser-ticket-result {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  color: #07143f;
  font-size: 16px;
  font-weight: 800;
}

.superuser-ticket-result strong {
  font-size: 22px;
}

.superuser-ticket-result span {
  color: #526071;
}

.superuser-ticket-result.error {
  color: #d61b12;
}

.superuser-table-wrap {
  max-height: calc(100vh - 260px);
  overflow: auto;
}

.superuser-table {
  width: 100%;
  border-collapse: collapse;
}

.superuser-table th,
.superuser-table td {
  padding: 12px 16px;
  border-bottom: 1px solid #e5e7eb;
  text-align: right;
  font-size: 18px;
  font-weight: 900;
  white-space: nowrap;
}

.superuser-table th:first-child,
.superuser-table td:first-child {
  text-align: left;
}

.superuser-table th {
  position: sticky;
  top: 0;
  background: #091848;
  color: #ffffff;
  z-index: 1;
}

.superuser-table td span {
  display: block;
  margin-top: 3px;
  color: #667085;
  font-size: 13px;
}

.superuser-table tr.ok td:nth-child(4) {
  color: #087044;
}

.superuser-table tr.bad td:nth-child(4) {
  color: #d61b12;
}

@media (max-width: 760px) {
  .superuser-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .superuser-header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.admin-screen {
  position: relative;
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: 178px minmax(0, 1fr);
  gap: 12px;
  padding: 14px 24px 16px;
  background: #ffffff;
}

.admin-menu {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-top: 118px;
  height: calc(100vh - 30px);
}

.admin-btn {
  width: 150px;
  min-height: 34px;
  display: grid;
  place-items: center;
  margin-bottom: 8px;
  border: 0;
  border-radius: 6px;
  color: #ffffff;
  font-size: 16px;
  line-height: 1;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
}

.admin-btn[hidden] {
  display: none;
}

.admin-btn.green {
  background: #3cad5b;
}

.admin-btn.orange {
  background: #df2b00;
}

.admin-btn.amber {
  background: #f18b00;
}

.admin-btn.orange-red {
  background: #ee3300;
}

.admin-btn.blue {
  background: #0800d8;
}

.admin-btn.black {
  background: #000000;
}

.admin-btn.red {
  background: #d60b0b;
}

.cash-report-popup {
  width: min(520px, calc(100vw - 48px));
  padding: 38px 46px 42px;
}

.cash-report-popup h1 {
  margin-bottom: 10px;
  font-size: 42px;
  font-weight: 900;
  text-align: center;
}

.cash-report-date {
  margin-bottom: 24px;
  color: #5b6478;
  font-size: 15px;
  font-weight: 700;
  text-align: center;
}

.cash-report-list {
  display: grid;
  gap: 12px;
}

.cash-report-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid #d9deea;
  color: #091848;
  font-size: 24px;
  font-weight: 800;
}

.cash-report-row strong {
  font-size: 28px;
  font-weight: 900;
}

.daily-report-popup {
  width: min(560px, calc(100vw - 48px));
  padding: 30px 34px 44px;
  text-align: center;
}

.daily-report-popup h1 {
  margin: 0 0 4px;
  color: #091848;
  font-size: 44px;
  line-height: 1;
  font-weight: 900;
}

.daily-report-date {
  margin-bottom: 22px;
  color: #4b5563;
  font-size: 16px;
  font-weight: 800;
}

.daily-report-lines {
  display: grid;
  gap: 4px;
}

.daily-report-row,
.daily-report-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: baseline;
  color: #111827;
  text-align: left;
}

.daily-report-row span,
.daily-report-row strong {
  font-size: 26px;
  font-weight: 850;
}

.daily-report-row strong,
.daily-report-total strong {
  text-align: right;
}

.daily-report-gap {
  height: 28px;
}

.daily-report-total {
  margin-top: 28px;
}

.daily-report-total span,
.daily-report-total strong {
  font-size: 28px;
  font-weight: 950;
}

.daily-report-print {
  width: 180px;
  min-height: 54px;
  margin-top: 30px;
  border-radius: 8px;
  font-size: 28px;
}

.permission-popup {
  width: min(680px, calc(100vw - 48px));
  padding: 38px 46px 42px;
}

.permission-popup h1 {
  margin-bottom: 8px;
  font-size: 40px;
  font-weight: 900;
  text-align: center;
}

.permission-date {
  margin-bottom: 18px;
  color: #5b6478;
  font-size: 15px;
  font-weight: 800;
  text-align: center;
}

.permission-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 22px;
}

.permission-table th,
.permission-table td {
  padding: 12px 10px;
  border-bottom: 1px solid #d9deea;
  color: #091848;
  font-size: 20px;
  font-weight: 850;
  text-align: center;
}

.permission-table th:first-child,
.permission-table td:first-child {
  text-align: left;
}

.permission-table th {
  color: #5b6478;
  font-size: 15px;
  text-transform: uppercase;
}

.permission-toggle {
  display: inline-grid;
  place-items: center;
  cursor: pointer;
}

.permission-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.permission-toggle span {
  width: 76px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: #d60b0b;
  color: #ffffff;
  font-size: 15px;
  font-weight: 900;
}

.permission-toggle span::before {
  content: attr(data-off);
}

.permission-toggle input:checked + span {
  background: #3cad5b;
}

.permission-toggle input:checked + span::before {
  content: attr(data-on);
}

.teller-account-popup {
  width: min(560px, calc(100vw - 64px));
}

.auto-code-note {
  margin: 4px 0 16px;
  padding: 10px 12px;
  border: 2px solid #091848;
  border-radius: 6px;
  background: #f2f5fb;
  color: #091848;
  font-size: 18px;
  font-weight: 900;
  text-align: center;
}

.teller-account-list {
  max-height: 210px;
  margin-top: 18px;
  overflow: auto;
  border: 1px solid #d7dce5;
  text-align: left;
}

.teller-account-row {
  display: grid;
  grid-template-columns: 90px 1fr 1fr;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid #e5e7eb;
  color: #091848;
  font-size: 18px;
  font-weight: 900;
}

.teller-account-row:last-child {
  border-bottom: 0;
}

.teller-account-row span {
  color: #0800d8;
}

.teller-account-row em {
  color: #526071;
  font-style: normal;
  text-align: right;
}

.admin-gap {
  height: 42px;
}

.admin-bottom-gap {
  flex: 1;
  min-height: 34px;
}

.admin-main {
  min-width: 0;
  max-width: 1620px;
  margin: 0 auto;
  width: 100%;
}

.admin-main h1 {
  margin: 8px 0 24px;
  color: #091848;
  font-size: 34px;
  line-height: 1;
  font-weight: 900;
  text-align: center;
}

.admin-content {
  display: grid;
  grid-template-columns: minmax(600px, 820px) 360px;
  gap: 72px;
  align-items: start;
  justify-content: center;
}

.fight-history {
  border: 1px solid #d7dce5;
  background: #ffffff;
}

.fight-history table {
  width: 100%;
  border-collapse: collapse;
  table-layout: auto;
}

.fight-history td {
  height: 42px;
  padding: 5px 18px;
  border-bottom: 1px solid #d7dce5;
  color: #091848;
  font-size: 21px;
  font-weight: 900;
  white-space: nowrap;
  overflow: visible;
  text-overflow: clip;
}

.fight-history td:nth-child(1) {
  width: 9%;
}

.fight-history td:nth-child(2) {
  width: 37%;
}

.fight-history td:nth-child(3) {
  width: 13%;
}

.fight-history td:nth-child(4) {
  width: 11%;
  text-align: center;
}

.fight-history td:nth-child(5) {
  text-align: center;
}

.status-open {
  color: #13a231 !important;
}

.status-closed {
  color: #f40000 !important;
}

.status-done,
.status-pending {
  color: #091848 !important;
}

.winner-meron {
  color: #f40000 !important;
}

.winner-wala {
  color: #000aff !important;
}

.winner-cancelled-fight,
.winner-draw {
  color: #091848 !important;
}

.admin-summary {
  padding-top: 38px;
}

.admin-pair {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  margin-bottom: 30px;
}

.admin-label {
  color: #091848;
  font-size: 18px;
  line-height: 1.08;
  text-transform: uppercase;
}

.admin-value,
.admin-status,
.admin-color,
.admin-green,
.winner-value {
  height: 54px;
  display: grid;
  place-items: center;
  color: #091848;
  font-size: 32px;
  font-weight: 900;
  line-height: 1;
}

.admin-value {
  background: #e8e8e6;
}

.admin-status {
  color: #ffffff;
}

.status-box-open {
  background: #39a158;
}

.status-box-closed {
  background: #df2b00;
}

.status-box-pending {
  background: #969292;
  font-size: 22px;
}

.status-box-done {
  background: #e8e8e6;
  color: #091848;
}

.admin-color {
  color: #ffffff;
  font-size: clamp(25px, 1.8vw, 31px);
  padding: 0 10px;
  white-space: nowrap;
}

.admin-color.red {
  background: #f50808;
}

.admin-color.blue {
  background: #0800ff;
}

.admin-green {
  background: #068432;
  color: #ffffff;
}

.winner-box {
  width: 220px;
  margin-left: auto;
}

.winner-value {
  height: auto;
  min-height: 54px;
  padding: 8px 10px;
  background: #969292;
  color: #ffffff;
  font-size: 28px;
  line-height: 1.08;
  text-align: center;
}

.admin-name {
  position: absolute;
  right: 26px;
  bottom: 16px;
  color: #091848;
  font-size: 24px;
  font-weight: 900;
}

.admin-start-popup {
  width: min(520px, calc(100vw - 64px));
  padding: 42px;
  text-align: center;
}

.admin-start-popup h1 {
  margin-bottom: 26px;
  font-size: 44px;
  font-weight: 900;
}

.admin-start-popup .ticket-search {
  margin: 8px auto 26px;
}

.winner-actions {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 1600px) {
  .admin-screen {
    grid-template-columns: 178px minmax(0, 1fr);
    gap: 28px;
    padding: 32px 56px 42px 42px;
  }

  .admin-main h1 {
    font-size: 38px;
  }

  .admin-content {
    grid-template-columns: minmax(660px, 860px) 380px;
    gap: 92px;
  }

  .fight-history td {
    height: 42px;
    padding: 5px 18px;
    font-size: 21px;
  }

  .admin-summary {
    padding-top: 42px;
  }

  .admin-pair {
    gap: 26px;
    margin-bottom: 34px;
  }

  .admin-label {
    font-size: 19px;
  }

  .admin-value,
  .admin-status,
  .admin-green,
  .winner-value {
    height: 56px;
    font-size: 33px;
  }

  .admin-color {
    height: 56px;
    font-size: clamp(26px, 1.6vw, 32px);
  }

  .status-box-pending {
    font-size: 23px;
  }

  .winner-box {
    width: 225px;
  }

  .winner-value {
    min-height: 70px;
    font-size: 36px;
  }
}

@media (max-width: 1400px) {
  .admin-content {
    grid-template-columns: minmax(0, 1fr) 310px;
    gap: 28px;
  }

  .fight-history td {
    height: 45px;
    padding: 6px 8px;
    font-size: 18px;
  }

  .fight-history td:nth-child(1) {
    width: 58px;
  }

  .fight-history td:nth-child(2) {
    width: 245px;
  }

  .fight-history td:nth-child(3) {
    width: 96px;
  }

  .fight-history td:nth-child(4) {
    width: 74px;
  }

  .admin-pair {
    gap: 18px;
    margin-bottom: 24px;
  }

  .admin-label {
    font-size: 19px;
  }

  .admin-value,
  .admin-status,
  .admin-color,
  .admin-green,
  .winner-value {
    height: 62px;
    font-size: 36px;
  }

  .status-box-pending {
    font-size: 23px;
  }

  .winner-box {
    width: 190px;
  }

  .winner-value {
    min-height: 62px;
    font-size: 29px;
  }
}

@media print {
  @page {
    size: 80mm auto;
    margin: 0;
  }

  html,
  body {
    width: 80mm !important;
    min-width: 80mm !important;
    margin: 0 !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body * {
    visibility: hidden !important;
  }

  body.printing-ticket #ticketPrintModal,
  body.printing-ticket #ticketPrintModal *,
  body.printing-report #reportPrintModal,
  body.printing-report #reportPrintModal *,
  body.printing-daily-report #dailyReportModal,
  body.printing-daily-report #dailyReportModal * {
    visibility: visible !important;
  }

  body.printing-ticket #ticketPrintModal,
  body.printing-report #reportPrintModal,
  body.printing-daily-report #dailyReportModal {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    width: 80mm !important;
    padding: 0 !important;
    background: #ffffff !important;
  }

  body.printing-ticket #ticketPrintModal .print-popup {
    width: 80mm !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  body.printing-ticket #ticketPrintModal .receipt-card {
    width: 80mm !important;
    padding: 7mm 5mm 9mm !important;
    box-shadow: none !important;
  }

  body.printing-ticket #ticketPrintModal .receipt-reprint {
    display: none !important;
  }

  body.printing-report #reportPrintModal .report-popup {
    width: 80mm !important;
    margin: 0 !important;
    padding: 0 !important;
    max-height: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  body.printing-report #reportPrintModal .report-card {
    width: 80mm !important;
    padding: 7mm 5mm 9mm !important;
    box-shadow: none !important;
  }

  body.printing-report #reportPrintModal .receipt-reprint,
  body.printing-report #reportPrintModal .modal-close,
  body.printing-report #reportPrintModal .message {
    display: none !important;
  }

  body.printing-daily-report #dailyReportModal .daily-report-popup {
    width: 80mm !important;
    margin: 0 !important;
    padding: 7mm 5mm 9mm !important;
    max-height: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
  }

  body.printing-daily-report #dailyReportModal .daily-report-popup h1 {
    font-size: 34px !important;
  }

  body.printing-daily-report #dailyReportModal .daily-report-row span,
  body.printing-daily-report #dailyReportModal .daily-report-row strong {
    font-size: 22px !important;
  }

  body.printing-daily-report #dailyReportModal .daily-report-total span,
  body.printing-daily-report #dailyReportModal .daily-report-total strong {
    font-size: 24px !important;
  }

  body.printing-daily-report #dailyReportModal .daily-report-print,
  body.printing-daily-report #dailyReportModal .modal-close {
    display: none !important;
  }
}

@media (max-width: 800px) {
  .grid,
  .scoreboard {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .side.red,
  .side.blue {
    grid-column: auto;
    justify-self: center;
  }

  .side-label {
    font-size: 48px;
  }

  .side {
    width: min(88vw, 520px);
    max-width: none;
  }

  .side-stack {
    width: 100%;
    max-width: none;
  }

  .side-total {
    font-size: 60px;
    min-height: 104px;
  }

  .side-payout {
    min-height: 68px;
  }

  .side-payout span {
    font-size: 42px;
  }

  .dash-brand {
    font-size: 48px;
  }

  .dash-fight {
    font-size: 46px;
  }

  .dash-status {
    min-width: 220px;
    font-size: 32px;
  }

  .result-winner {
    font-size: 68px;
  }

  .result-payout {
    font-size: 38px;
  }

  .teller-screen {
    grid-template-columns: 1fr;
    padding: 20px;
  }

  .teller-menu {
    align-items: stretch;
  }

  .menu-btn,
  .teller-code {
    width: 100%;
  }

  .side-strip {
    gap: 24px;
  }

  .summary-grid,
  .amount-grid,
  .bet-actions {
    grid-template-columns: 1fr;
  }

  .betting-popup {
    padding: 34px 24px 24px;
  }

  .teller-modal h1 {
    font-size: 48px;
  }

  .closed-banner {
    margin: 24px -24px -24px;
    font-size: 34px;
  }

  .admin-screen {
    height: auto;
    overflow: auto;
    grid-template-columns: 1fr;
  }

  .admin-menu {
    height: auto;
    padding-top: 0;
  }

  .admin-content {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}
