#canvas {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}

/* Header logo/domain text */
.t1-brand {
  text-transform: uppercase !important;
  font-size: 1.35rem !important;
  font-weight: 800 !important;
  letter-spacing: .03em;
  line-height: 1.15;
}

@media (max-width: 576px) {
  .t1-brand {
    font-size: 1.15rem !important;
  }
}

/* Theme1 live result: 8 time slots stay on-screen, no right scroll */
.t1-todayresult-section .container,
.t1-table-card .container {
  max-width: 100%;
}

.t1-todayresult-section .table-responsive,
.t1-table-card .table-responsive,
.t1-todayresult-section .table-responsive-sm {
  overflow-x: hidden !important;
  width: 100%;
}

.t1-todayresult-section .t1-table,
.t1-table-card .t1-table,
.t1-todayresult-section table.table {
  width: 100% !important;
  max-width: 100% !important;
  table-layout: fixed !important;
  margin-bottom: 0 !important;
}

.t1-todayresult-section .t1-table th,
.t1-todayresult-section .t1-table td,
.t1-table-card .t1-table th,
.t1-table-card .t1-table td,
.t1-todayresult-section table.table th,
.t1-todayresult-section table.table td {
  width: 12.5%;
  padding: .4rem .12rem !important;
  font-size: clamp(.62rem, 4vw, .92rem) !important;
  line-height: 1.15 !important;
  white-space: normal !important;
  word-break: break-word !important;
  overflow-wrap: anywhere !important;
  vertical-align: middle !important;
}

/* PC / tablet: original larger time size */
@media (min-width: 577px) {
  .t1-todayresult-section .t1-table thead th,
  .t1-table-card .t1-table thead th,
  .t1-todayresult-section table.table thead th,
  .t1-table-card thead th,
  .result-history thead th {
    font-size: .92rem !important;
    font-weight: 700 !important;
    letter-spacing: -.02em !important;
    word-spacing: normal !important;
    line-height: 1.15 !important;
    padding: .4rem .12rem !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
  }
}

/* Phone: compact time, still one line */
@media (max-width: 576px) {
  .t1-todayresult-section .container {
    padding-left: .4rem;
    padding-right: .4rem;
  }

  .t1-todayresult-section .t1-table td,
  .t1-table-card .t1-table td {
    padding: .28rem .04rem !important;
    font-size: clamp(.62rem, 4vw, .92rem) !important;
  }

  .t1-todayresult-section .t1-table thead th,
  .t1-table-card .t1-table thead th,
  .t1-todayresult-section table.table thead th,
  .t1-table-card thead th,
  .result-history thead th {
    font-size: .55rem !important;
    font-weight: 600 !important;
    letter-spacing: -.045em !important;
    word-spacing: -.06em !important;
    line-height: 1 !important;
    padding: .2rem 0 !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
    overflow-wrap: normal !important;
    overflow: hidden !important;
  }

  .t1-todayresult-section thead th br,
  .t1-table-card thead th br,
  .result-history thead th br {
    display: none !important;
  }
}
