#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: 0 !important;
  gap: 0 !important;
  line-height: 1.15;
}

#t1-home-extra a.fw-bold.text-danger {
  color: #dc3545 !important;
}

.t1-prev-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .65rem;
  margin-bottom: 1rem;
}

.t1-game-pick {
  position: relative;
}

.t1-game-pick-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  border: 1px solid var(--t1-border, #e5e7eb);
  background: var(--t1-surface, #fff);
  color: var(--t1-text, #0f172a);
  border-radius: 8px;
  padding: .2rem .55rem;
  font-size: .82rem;
  font-weight: 700;
  line-height: 1.2;
}

.t1-game-pick-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 100%;
  background: var(--t1-surface, #fff);
  color: var(--t1-text, #0f172a);
  border: 1px solid var(--t1-border, #e5e7eb);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .08);
  z-index: 30;
  padding: .2rem;
}

.t1-game-pick-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  color: inherit;
  padding: .4rem .55rem;
  border-radius: 6px;
  font-size: .82rem;
  font-weight: 600;
  white-space: nowrap;
}

.t1-game-pick-menu button:hover {
  background: rgba(0, 0, 0, .06);
}

@keyframes t1-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.t1-skeleton {
  display: inline-block;
  background: linear-gradient(90deg, rgba(0, 0, 0, .06), rgba(0, 0, 0, .14), rgba(0, 0, 0, .06));
  background-size: 200% 100%;
  animation: t1-shimmer 1.3s ease-in-out infinite;
  border-radius: 6px;
}

.t1-skel-pick {
  width: 92px;
  height: 28px;
}

.t1-skel-date {
  width: 180px;
  height: 22px;
}

.t1-skel-cell {
  display: block;
  width: 70%;
  height: 14px;
  margin: 0 auto;
}

.t1-smart-card {
  background: var(--t1-surface, #fff);
  border: 1px solid var(--t1-border, #eef0f4);
  border-radius: 18px;
  padding: 1.25rem 1.25rem .4rem;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .04);
}

.t1-smart-head {
  display: flex;
  align-items: center;
  gap: .75rem;
  margin-bottom: 1rem;
}

.t1-smart-badge {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8f8ef;
  color: #16a34a;
  font-size: 1.15rem;
}

.t1-smart-head h3 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 800;
}

.t1-smart-head p {
  margin: 0;
  color: var(--t1-muted, #64748b);
  font-size: .92rem;
}

.t1-tip-row {
  display: flex;
  align-items: center;
  gap: .75rem;
  background: #f4f6f8;
  border-radius: 12px;
  padding: .85rem 1rem;
  margin-bottom: .75rem;
  font-weight: 600;
}

.t1-tip-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex: 0 0 22px;
  font-size: .75rem;
}

.t1-tip-ok { background: #22c55e; }
.t1-tip-no { background: #ef4444; }

.t1-disclaimer {
  margin-top: 1rem;
  background: #fff6dc;
  border-radius: 16px;
  padding: 1rem 1.15rem;
  color: #9a6412;
}

.t1-disclaimer-title {
  display: flex;
  align-items: center;
  gap: .45rem;
  font-weight: 800;
  color: #8a4b12;
  margin-bottom: .25rem;
}

.t1-disclaimer p {
  margin: 0;
  font-weight: 600;
}

/*
 * Live + Previous must share identical side gaps.
 * Next chunk used to force .t1-todayresult-section .container { padding: .4rem }
 * which made the top table wider than Old & Previous Results.
 */
.t1-todayresult-section > .container,
section.py-4 > .container {
  padding-left: 1rem !important;
  padding-right: 1rem !important;
}

@media (min-width: 576px) {
  .t1-todayresult-section > .container,
  section.py-4 > .container {
    padding-left: 1.25rem !important;
    padding-right: 1.25rem !important;
  }
}

/* Suspense slots between live results and previous results stay empty when React does not hydrate. */
.t1-todayresult-section ~ div[style*="min-height"],
main.container.py-4:empty {
  display: none !important;
}

/* Live + previous result tables: fit inside shared gutters */
.t1-todayresult-section .t1-table td,
.t1-table-card .t1-table td,
.t1-todayresult-section table.table td {
  font-weight: 600 !important;
}
.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;
  }
}

.t1-table th.t1-sunday-dash,
.t1-table-card .t1-table th.t1-sunday-dash,
.t1-table td.t1-sunday,
.t1-table-card .t1-table td.t1-sunday {
  width: 50% !important;
  text-align: center !important;
  vertical-align: middle !important;
}

.t1-table td.t1-sunday,
.t1-table-card .t1-table td.t1-sunday {
  color: #dc3545 !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  letter-spacing: 0 !important;
  text-transform: uppercase !important;
  white-space: nowrap !important;
}
