/* 28pc.bid result-first homepage polish, 2026-10-29 */
html[data-theme] body[data-page='home'] {
  --layout-navy: #123b5b;
  --layout-cyan: #169f9f;
  --layout-blue: #2686d7;
  --layout-green: #1fa66f;
  --layout-purple: #7d55d9;
  --layout-orange: #ed7c32;
}

html[data-theme] body[data-page='home'] main {
  width: min(1280px, calc(100% - 48px));
  max-width: 1280px;
  padding-top: 24px;
}

html[data-theme] body[data-page='home'] .result-page-title {
  font-size: clamp(30px, 3vw, 40px) !important;
  letter-spacing: -0.04em;
}

html[data-theme] body[data-page='home'] .live-band {
  grid-template-columns: minmax(0, 1.72fr) minmax(300px, 0.78fr);
  gap: 0 20px;
}

html[data-theme] body[data-page='home'] .live-band::before,
html[data-theme] body[data-page='home'] .live-next,
html[data-theme] body[data-page='home'] .panel {
  border-radius: 18px !important;
}

html[data-theme] body[data-page='home'] .live-band::before {
  width: calc((100% - 20px) * 0.688);
}

html[data-theme] body[data-page='home'] .live-main {
  min-height: 248px;
}

html[data-theme] body[data-page='home'] .equation b,
html[data-theme] body[data-page='home'] .equation em {
  width: clamp(76px, 6.5vw, 90px) !important;
  height: clamp(76px, 6.5vw, 90px) !important;
}

html[data-theme] body[data-page='home'] .equation b:nth-of-type(1) {
  background: linear-gradient(145deg, #3c9be7, #1874cf) !important;
}

html[data-theme] body[data-page='home'] .equation b:nth-of-type(2) {
  background: linear-gradient(145deg, #31bd91, #128965) !important;
}

html[data-theme] body[data-page='home'] .equation b:nth-of-type(3) {
  background: linear-gradient(145deg, #9768e6, #7042c6) !important;
}

html[data-theme] body[data-page='home'] .equation em {
  background: linear-gradient(145deg, #f59a51, #df6820) !important;
}

html[data-theme] body[data-page='home'] .live-next strong[data-countdown] {
  color: var(--layout-cyan) !important;
  font-size: clamp(48px, 4.5vw, 66px) !important;
}

html[data-theme] body[data-page='home'] .history-panel .section-heading {
  min-height: 68px;
}

html[data-theme] body[data-page='home'] .history-panel .section-heading::before {
  color: var(--layout-navy);
  font-size: 22px;
}

html[data-theme] body[data-page='home'] .history-panel .table-wrap {
  border-top: 1px solid var(--ref-line) !important;
}

html[data-theme] body[data-page='home'] .data-table th {
  height: 42px;
  border-color: #1d4b6e;
  background: var(--layout-navy) !important;
  color: #ffffff !important;
  font-size: 12px;
  letter-spacing: 0.02em;
}

html[data-theme] body[data-page='home'] .data-table td {
  height: 46px;
  padding-top: 8px;
  padding-bottom: 8px;
}

html[data-theme] body[data-page='home'] .data-table tbody tr:first-child td {
  background: #edf9f8 !important;
}

html[data-theme] body[data-page='home'] .data-table tbody tr:hover td {
  background: #f5fbfb !important;
}

html[data-theme] body[data-page='home'] .history-panel .toolbar input,
html[data-theme] body[data-page='home'] .history-panel .toolbar select,
html[data-theme] body[data-page='home'] .pagination button {
  min-height: 38px;
  border-radius: 8px;
}

html[data-theme='dark'] body[data-page='home'] .history-panel .section-heading::before {
  color: #f1f5f7;
}

html[data-theme='dark'] body[data-page='home'] .data-table tbody tr:first-child td,
html[data-theme='dark'] body[data-page='home'] .data-table tbody tr:hover td {
  background: #17302f !important;
}

@media (max-width: 980px) {
  html[data-theme] body[data-page='home'] main {
    width: min(100% - 28px, 1280px);
  }

  html[data-theme] body[data-page='home'] .live-band {
    grid-template-columns: minmax(0, 1fr);
    gap: 12px;
  }

  html[data-theme] body[data-page='home'] .live-band::before {
    width: auto;
  }
}

@media (max-width: 650px) {
  html[data-theme] body[data-page='home'] .result-page-title {
    font-size: 28px !important;
    line-height: 1.24 !important;
  }

  html[data-theme] body[data-page='home'] .live-main {
    min-height: 226px;
    padding-right: 14px;
    padding-left: 14px;
  }

  html[data-theme] body[data-page='home'] .equation {
    gap: 4px !important;
  }

  html[data-theme] body[data-page='home'] .equation b,
  html[data-theme] body[data-page='home'] .equation em {
    width: 48px !important;
    height: 48px !important;
    font-size: 27px !important;
  }

  html[data-theme] body[data-page='home'] .equation em {
    width: 54px !important;
    height: 54px !important;
  }

  html[data-theme] body[data-page='home'] .equation i {
    font-size: 20px !important;
  }

  html[data-theme] body[data-page='home'] .equation .c28-draw-chime-toggle {
    flex: 0 0 28px !important;
  }

  html[data-theme] body[data-page='home'] .live-next {
    min-height: 220px;
  }
}

