/* Record charts — same orange as the homepage, even spacing. */
body {
  background: #FFD7A8 !important;
  padding: 10px 10px calc(104px + env(safe-area-inset-bottom, 0px)) !important;
}

.logo {
  width: min(100%, 920px);
  margin: 4px auto 10px;
  padding: 12px 12px 8px;
  background: #FFD7A8;
  border: 1px solid #5b1e24;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(122, 53, 8, 0.11);
  box-sizing: border-box;
}

.logo a,
.logo a.brand-logo,
.logo a.brand-logo:hover {
  display: inline-flex;
  align-items: baseline;
  justify-content: center;
  gap: 0;
  color: #9a3412 !important;
  font-size: clamp(22px, 6.2vw, 36px);
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-decoration: none !important;
}

.logo .brand-name {
  color: #9a3412 !important;
}

.logo .brand-tld {
  color: #c2410c !important;
}

.texthead,
.live {
  width: min(100%, 920px);
  margin: 0 auto 12px;
  padding: 14px 16px 8px;
  background: #FFD7A8;
  border: 1px solid #5b1e24;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(122, 53, 8, 0.11);
  box-sizing: border-box;
}

.texthead h1,
.head_live,
h3.head_live {
  margin: 8px auto;
  padding: 10px 12px;
  color: #fff8ee !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  background: #5b1e24;
  background-image: linear-gradient(180deg, #7a2830 0%, #5b1e24 52%, #42151a 100%);
  border: 1px solid #3a1216;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18), 0 2px 6px rgba(40, 10, 14, .22);
}
.texthead h1 {
  margin: 0 0 8px;
  font-size: clamp(18px, 4.8vw, 26px);
}

.texthead p {
  margin: 0 auto 10px;
  max-width: 40rem;
  color: #431407;
  font-size: 15px;
  line-height: 1.6;
}

.head_live,
h3.head_live {
  margin: 8px auto;
  padding: 10px 12px;
  color: #fff8ee !important;
  font-weight: 900 !important;
  letter-spacing: 0.04em;
  line-height: 1.3;
  text-align: center;
  text-transform: uppercase;
  background: #5b1e24;
  background-image: linear-gradient(180deg, #7a2830 0%, #5b1e24 52%, #42151a 100%);
  border: 1px solid #3a1216;
  border-radius: 12px;
}

.live hr {
  border: 0;
  border-top: 1px solid #5b1e24;
  margin: 10px auto 4px;
}

.res-color,
.t24.res-color {
  color: #9a3412 !important;
  background: transparent !important;
  font-weight: 800;
}

.chart-nav-btn {
  display: inline-block;
  margin: 8px auto 12px;
  padding: 8px 16px;
  background: #c2410c;
  color: #fff;
  border: 0;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  cursor: pointer;
}

.chart-nav-btn-sm {
  margin: 6px auto;
  padding: 6px 12px;
  font-size: 12px;
}

.chart-wrap {
  display: block;
  width: min(100%, 960px);
  max-width: 960px;
  margin: 8px auto 16px;
  padding: 8px;
  overflow: hidden;
  background: #FFD7A8;
  border: 1px solid #5b1e24;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(122, 53, 8, 0.11);
  box-sizing: border-box;
}

.chart-wrap table,
.chart-wrap table.strong {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
  border-collapse: collapse !important;
  table-layout: fixed !important;
  background: #FFD7A8;
  font-style: normal;
  font-weight: 700;
}

.chart-wrap th,
.chart-wrap td {
  background: #FFD7A8 !important;
  border: 1px solid #E08A45 !important;
  color: #1c120c;
  min-width: 0 !important;
  max-width: none !important;
  padding: 6px 2px !important;
  text-align: center;
  vertical-align: middle;
  font-style: normal;
  line-height: 1.15;
  overflow: hidden;
  box-sizing: border-box;
}

.chart-wrap tr.tr,
.chart-wrap tr.tr th,
.chart-wrap thead th,
.chart-wrap th {
  background: #F4A261 !important;
  color: #7c2d12 !important;
  text-shadow: none;
  font-weight: 800;
  font-size: 12px;
  padding: 8px 2px !important;
}

.chart-wrap td.chart_date,
.chart-wrap th.chart-date-head {
  width: 18%;
  min-width: 0 !important;
  max-width: none !important;
  padding: 4px 2px !important;
  background: #FFD7A8 !important;
  word-break: keep-all;
  overflow-wrap: normal;
  white-space: normal;
}

.chart-wrap th.chart-date-head {
  background: #F4A261 !important;
  color: #7c2d12 !important;
  border-radius: 0;
}

.date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  width: 100%;
  min-height: 48px;
  padding: 4px 2px;
  border-radius: 8px;
  background: #c2410c;
  color: #fff;
  box-shadow: none;
  box-sizing: border-box;
}

.date-from,
.date-to,
.date-sep,
.date-year {
  color: #fff;
}

.chart-wrap .r,
.chart-wrap .red,
.chart-wrap .td_red,
.chart-wrap td.td_red {
  color: #c1121f !important;
  font-weight: 800;
}

.chart-wrap .black,
.chart-wrap .td_black,
.chart-wrap td.td_black {
  color: #1c120c !important;
  font-weight: 800;
}

.chart-wrap .td_blank,
.chart-wrap td.td_blank {
  color: #9a6b4f !important;
  font-weight: 700;
}

.panel-chart tbody td:nth-child(3n+2),
.panel-chart tbody td:nth-child(3n+3),
.panel-chart tbody td:nth-child(3n+4) {
  padding-left: 0 !important;
  padding-right: 0 !important;
}

.panel-chart tbody td:nth-child(3n+2),
.panel-chart tbody td:nth-child(3n+4) {
  font-size: 11px;
  line-height: 1.05;
  border-left-width: 0 !important;
  border-right-width: 0 !important;
}

.panel-chart tbody td:nth-child(3n+2) {
  border-left: 1px solid #c2410c !important;
}

.panel-chart tbody td:nth-child(3n+4) {
  border-right: 1px solid #c2410c !important;
}

.panel-chart tbody td:nth-child(3n+3) {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.04em;
  border-left: 0 !important;
  border-right: 0 !important;
}

.jodi-chart th,
.jodi-chart td {
  padding: 8px 4px !important;
  font-size: 15px;
}

@media (max-width: 767px) {
  body {
    padding: 8px 8px calc(104px + env(safe-area-inset-bottom, 0px)) !important;
  }

  .texthead,
  .live,
  .logo,
  .chart-wrap {
    padding-left: 8px;
    padding-right: 8px;
  }

  .chart-wrap {
    padding: 6px;
  }

  .chart-wrap th,
  .chart-wrap td {
    padding: 4px 0 !important;
    font-size: 10px;
  }

  .chart-wrap tr.tr th,
  .chart-wrap th {
    padding: 7px 0 !important;
    font-size: 10px;
  }

  .chart-wrap td.chart_date,
  .chart-wrap th.chart-date-head {
    width: 17%;
    padding: 3px 1px !important;
  }

  .date-box {
    min-height: 44px;
    border-radius: 7px;
  }

  .date-from,
  .date-to {
    font-size: 9px;
  }

  .panel-chart tbody td:nth-child(3n+2),
  .panel-chart tbody td:nth-child(3n+4) {
    font-size: 10px;
  }

  .panel-chart tbody td:nth-child(3n+3) {
    font-size: 11px !important;
  }

  .jodi-chart th,
  .jodi-chart td {
    padding: 7px 2px !important;
    font-size: 13px;
  }
}

@media (min-width: 768px) {
  .chart-wrap th,
  .chart-wrap td {
    padding: 7px 3px !important;
    font-size: 13px;
  }

  .panel-chart tbody td:nth-child(3n+3) {
    font-size: 18px !important;
  }

  .jodi-chart th,
  .jodi-chart td {
    padding: 10px 6px !important;
    font-size: 16px;
  }
}

a[href*="dpbosszone.com"],
a[href*="dpbosszone.com"]:hover,
a[href*="dpbosszone.com"]:focus {
  color: inherit !important;
  font-family: inherit !important;
  font-size: inherit !important;
  font-weight: inherit !important;
  letter-spacing: inherit !important;
  text-decoration: none !important;
  background: none !important;
  border: 0 !important;
  box-shadow: none !important;
}

.logo {
  background: linear-gradient(180deg, #fffaf2 0%, #ffe7c8 100%) !important;
  border: 2px solid #e8c56b !important;
  border-radius: 18px !important;
  padding: 14px 12px 16px !important;
  text-align: center !important;
  box-shadow: inset 0 0 0 1px #8d6428, 0 6px 14px rgba(91, 30, 36, .1) !important;
}
.logo a.brand-logo,
.logo a.brand-logo:hover {
  display: inline-flex !important;
  width: auto !important;
  margin: 0 auto !important;
  padding: 10px 22px !important;
  background: #5b1e24 !important;
  background-image: linear-gradient(180deg, #7a2830 0%, #5b1e24 52%, #42151a 100%) !important;
  border: 2px solid #e8c56b !important;
  border-radius: 16px !important;
  box-shadow: inset 0 0 0 1px #8d6428, inset 0 1px 0 rgba(255, 230, 160, .45), 0 4px 10px rgba(60, 16, 20, .28) !important;
  text-decoration: none !important;
  letter-spacing: 0.04em !important;
}
.logo a .brand-name,
.logo a .brand-tld {
  background-image: linear-gradient(180deg, #fff8dc 0%, #f3d98a 46%, #e0b45a 100%) !important;
  -webkit-background-clip: text !important;
  background-clip: text !important;
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  font-weight: 900 !important;
}
