.lottery-page {
  background:
    linear-gradient(135deg, rgba(15, 114, 207, 0.08) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(315deg, rgba(240, 79, 88, 0.08) 25%, transparent 25%) 0 0 / 34px 34px,
    #f6f8fb;
  margin: 0 calc(50% - 50vw);
  padding: 32px max(18px, calc((100vw - 1180px) / 2)) 48px;
}

.lottery-dashboard {
  color: #172033;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.lottery-hero {
  display: grid;
  gap: 18px;
  margin-bottom: 20px;
}

.lottery-title-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.lottery-title {
  margin: 0;
  font-size: clamp(28px, 4vw, 48px);
  line-height: 1.08;
}

.lottery-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f72cf;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.lottery-eyebrow::before {
  content: "";
  width: 22px;
  height: 8px;
  clip-path: polygon(0 0, 75% 0, 100% 50%, 75% 100%, 0 100%);
  background: #f04f58;
}

.lottery-subtitle {
  margin: 8px 0 0;
  color: #687386;
  font-size: 14px;
}

.lottery-game-tabs,
.lottery-section-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.lottery-game-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(142px, 1fr));
  gap: 10px;
}

.lottery-game-card {
  appearance: none;
  position: relative;
  overflow: hidden;
  border: 1px solid #d7deea;
  background:
    linear-gradient(135deg, rgba(15, 114, 207, 0.08), rgba(240, 79, 88, 0.06)),
    #fff;
  border-radius: 8px;
  padding: 10px;
  min-height: 92px;
  display: grid;
  gap: 6px;
  align-content: center;
  justify-items: start;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.06);
}

.lottery-game-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(120deg, rgba(15, 114, 207, 0.12) 1px, transparent 1px),
    linear-gradient(30deg, rgba(240, 79, 88, 0.1) 1px, transparent 1px);
  background-size: 22px 22px, 30px 30px;
  opacity: 0.28;
  pointer-events: none;
}

.lottery-game-card img,
.lottery-game-card span {
  position: relative;
  z-index: 1;
}

.lottery-game-card img {
  width: min(132px, 100%);
  height: 42px;
  object-fit: contain;
  object-position: left center;
}

.lottery-game-card > span:not(.lottery-game-status) {
  color: #172033;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
}

.lottery-game-status {
  color: #0f72cf;
  background: rgba(15, 114, 207, 0.1);
  border: 1px solid rgba(15, 114, 207, 0.14);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 11px;
  font-weight: 800;
}

.lottery-game-card.is-active {
  border-color: #f04f58;
  box-shadow: 0 0 0 2px rgba(240, 79, 88, 0.18), 0 14px 34px rgba(23, 32, 51, 0.1);
}

.lottery-game-card.is-disabled {
  cursor: not-allowed;
  opacity: 0.58;
  filter: grayscale(0.4);
}

.lottery-tab {
  appearance: none;
  border: 1px solid #d7deea;
  background: #fff;
  color: #29354a;
  border-radius: 8px;
  padding: 9px 13px;
  font-weight: 700;
  cursor: pointer;
}

.lottery-tab.is-active {
  border-color: #f04f58;
  background: #f04f58;
  color: #fff;
}


.lottery-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 16px;
  align-items: start;
}

.lottery-panel {
  position: relative;
  overflow: hidden;
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  padding: 16px;
  min-width: 0;
}

.lottery-panel::before,
.lottery-feature::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(15, 114, 207, 0.08) 1px, transparent 1px),
    linear-gradient(30deg, rgba(240, 79, 88, 0.07) 1px, transparent 1px);
  background-size: 24px 24px, 32px 32px;
  opacity: 0.22;
}

.lottery-panel h2,
.lottery-panel h3 {
  margin: 0 0 12px;
  line-height: 1.25;
}

.lottery-caption {
  color: #6d7789;
  font-size: 13px;
  margin: -4px 0 12px;
}

.lottery-table-wrap {
  overflow: auto;
  max-height: 560px;
  border: 1px solid #e7ebf1;
  border-radius: 8px;
  background: #fff;
}

.lottery-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  white-space: nowrap;
}

.lottery-table th,
.lottery-table td {
  border-bottom: 1px solid #e7ebf1;
  padding: 8px 9px;
  text-align: right;
}


.lottery-click-row {
  cursor: pointer;
}

.lottery-click-row:hover td,
.lottery-click-row.is-active td {
  background: rgba(15, 114, 207, 0.08);
}

.lottery-table th {
  background: #f8fafc;
  color: #5a6577;
  font-size: 12px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.lottery-table th:nth-child(2),
.lottery-table td:nth-child(2) {
  text-align: left;
  font-weight: 800;
}

.lottery-bars {
  display: grid;
  gap: 9px;
}

.lottery-bar-row {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) 64px;
  gap: 8px;
  align-items: center;
  font-size: 13px;
}

.lottery-bar-label {
  font-weight: 800;
}

.lottery-bar-track {
  height: 10px;
  background: #edf1f6;
  border-radius: 999px;
  overflow: hidden;
}

.lottery-bar-fill {
  height: 100%;
  background: #0f72cf;
  border-radius: 999px;
}

.lottery-empty,
.lottery-loading {
  background: #fff;
  border: 1px solid #e0e6ef;
  border-radius: 8px;
  padding: 18px;
  color: #687386;
}

.lottery-empty.compact {
  padding: 10px;
  font-size: 13px;
}

.lottery-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(300px, 0.92fr);
  grid-template-areas:
    "latest prediction"
    "recent history";
  gap: 14px;
  margin: 0 0 18px;
}

.lottery-feature {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dbe3ee;
  border-radius: 8px;
  padding: 16px;
  box-shadow: 0 12px 28px rgba(23, 32, 51, 0.06);
}

.lottery-latest-feature {
  grid-area: latest;
}

.lottery-card-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: #26344b;
  font-size: 15px;
  font-weight: 900;
}

.lottery-card-title::before {
  content: "";
  width: 10px;
  height: 18px;
  clip-path: polygon(0 0, 100% 18%, 100% 100%, 0 82%);
  background: #0f72cf;
}

.lottery-feature-main {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(210px, 0.9fr);
  gap: 14px;
  align-items: center;
}

.lottery-meta {
  display: block;
  color: #657083;
  font-size: 13px;
  font-weight: 800;
  margin-bottom: 10px;
}

.lottery-number-balls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 7px;
}

.lottery-ball {
  display: inline-grid;
  place-items: center;
  min-width: 40px;
  height: 40px;
  padding: 0 10px;
  color: #fff;
  background:
    linear-gradient(135deg, #0f72cf, #173d78);
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 8px;
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.14), 0 8px 18px rgba(15, 114, 207, 0.2);
  font-size: 20px;
  font-weight: 900;
}

.lottery-bonus-label {
  color: #6d7789;
  font-size: 12px;
  font-weight: 900;
  margin-left: 4px;
}

.lottery-bonus-ball {
  background: linear-gradient(135deg, #f04f58, #982f48);
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.14), 0 8px 18px rgba(240, 79, 88, 0.2);
}

.lottery-insight-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.lottery-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  color: #243047;
  background: rgba(246, 248, 251, 0.9);
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  padding: 7px 9px;
  font-size: 12px;
  font-weight: 800;
}

.lottery-chip b {
  color: #0f72cf;
}

  .lottery-analysis-metrics {
    grid-template-columns: 1fr;
  }

  
.lottery-result-analysis {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(15, 114, 207, 0.08), rgba(240, 79, 88, 0.05));
  border: 1px solid #dfe6f0;
  border-radius: 8px;
}

.lottery-analysis-title {
  color: #26344b;
  font-size: 13px;
  font-weight: 950;
}

.lottery-analysis-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.lottery-analysis-metrics span {
  display: grid;
  gap: 3px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  padding: 8px;
}

.lottery-analysis-metrics b {
  color: #657083;
  font-size: 11px;
}

.lottery-analysis-metrics em {
  color: #172033;
  font-size: 14px;
  font-style: normal;
  font-weight: 900;
}

.lottery-result-analysis p {
  margin: 0;
  color: #526074;
  font-size: 12px;
  line-height: 1.7;
}

.lottery-prize-list {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 14px;
}

.lottery-prize-row {
  display: grid;
  grid-template-columns: 68px 1fr 1.3fr;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  padding: 9px 10px;
  font-size: 13px;
}

.lottery-prize-row span {
  color: #657083;
  font-weight: 900;
}

.lottery-prize-row strong,
.lottery-prize-row em {
  color: #172033;
  font-style: normal;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.lottery-prediction-cards {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 9px;
}

.lottery-prediction-card {
  display: grid;
  grid-template-columns: minmax(88px, 0.8fr) minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  background: linear-gradient(90deg, rgba(15, 114, 207, 0.08), rgba(240, 79, 88, 0.05));
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  padding: 10px;
}

.lottery-prediction-card span {
  color: #657083;
  font-size: 12px;
  font-weight: 900;
}

.lottery-prediction-card strong {
  color: #172033;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
  word-break: break-word;
}

.lottery-prediction-card em {
  color: #0a8b48;
  background: rgba(10, 139, 72, 0.1);
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.lottery-prediction-card small {
  grid-column: 2 / -1;
  color: #6d7789;
  font-size: 12px;
}

.lottery-recent-feature {
  grid-area: recent;
  min-height: 0;
}

.lottery-prediction-feature {
  grid-area: prediction;
}

.lottery-history-feature {
  grid-area: history;
  min-height: 0;
}

.lottery-forecast-compare {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.lottery-forecast-compare > div {
  display: grid;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  padding: 10px;
}

.lottery-forecast-compare span {
  color: #657083;
  font-size: 12px;
  font-weight: 900;
}

.lottery-forecast-compare .lottery-ball {
  min-width: 32px;
  height: 32px;
  padding: 0 8px;
  font-size: 15px;
}

.lottery-history-chips {
  position: relative;
  z-index: 1;
  justify-content: flex-start;
}


.lottery-link-chip {
  appearance: none;
  cursor: pointer;
  font-family: inherit;
}

.lottery-link-chip:hover {
  border-color: #0f72cf;
  box-shadow: 0 0 0 2px rgba(15, 114, 207, 0.1);
}

.lottery-ball.is-dim {
  color: #7b8799;
  background: linear-gradient(135deg, #e9eef6, #d9e1ec);
  box-shadow: none;
}

.lottery-ball.is-straight-hit {
  background: linear-gradient(135deg, #0f72cf, #173d78);
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.14), 0 8px 18px rgba(15, 114, 207, 0.24);
}

.lottery-ball.is-box-hit {
  background: linear-gradient(135deg, #f04f58, #982f48);
  box-shadow: inset 0 -8px 14px rgba(0, 0, 0, 0.14), 0 8px 18px rgba(240, 79, 88, 0.22);
}

.lottery-number-balls.is-small {
  gap: 5px;
}

.lottery-number-balls.is-small .lottery-ball {
  min-width: 30px;
  height: 30px;
  padding: 0 7px;
  font-size: 14px;
}

.lottery-neighbor-strips {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.lottery-neighbor-strip,
.lottery-previous-strip {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  padding: 10px;
  color: inherit;
  text-align: left;
  background: rgba(248, 250, 252, 0.92);
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  cursor: pointer;
}

.lottery-neighbor-strip:hover,
.lottery-previous-strip:hover {
  border-color: rgba(15, 114, 207, 0.36);
  background: linear-gradient(135deg, rgba(15, 114, 207, 0.08), rgba(248, 250, 252, 0.95));
}

.lottery-next-strip {
  background: linear-gradient(135deg, rgba(236, 246, 255, 0.9), rgba(255, 246, 247, 0.78));
}

.lottery-neighbor-strip > span,
.lottery-previous-strip > span {
  color: #657083;
  font-size: 12px;
  font-weight: 900;
}

.lottery-filter-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 0 12px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(15, 114, 207, 0.08), rgba(240, 79, 88, 0.05));
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  color: #26344b;
  font-size: 13px;
  font-weight: 900;
}

.lottery-filter-note button {
  color: #0f72cf;
  background: #fff;
  border: 1px solid #cfe0f3;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 900;
  cursor: pointer;
}

.lottery-judge-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}

.lottery-judge-box {
  display: grid;
  gap: 7px;
  background: #f8fafc;
  border: 1px solid #e4eaf2;
  border-radius: 8px;
  padding: 10px;
}

.lottery-judge-box > span {
  color: #26344b;
  font-size: 13px;
  font-weight: 900;
}

.lottery-judge-box small {
  color: #657083;
  font-size: 11px;
  font-weight: 700;
}


.lottery-recent-list {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
}

.lottery-recent-item {
  appearance: none;
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) 82px;
  gap: 8px;
  align-items: center;
  width: 100%;
  border: 1px solid #e4eaf2;
  background: #f8fafc;
  border-radius: 8px;
  padding: 9px 10px;
  color: #172033;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
}

.lottery-recent-item:hover,
.lottery-recent-item.is-active {
  border-color: #0f72cf;
  background: linear-gradient(90deg, rgba(15, 114, 207, 0.1), rgba(240, 79, 88, 0.05));
  box-shadow: 0 0 0 2px rgba(15, 114, 207, 0.08);
}

.lottery-recent-kai,
.lottery-recent-item small,
.lottery-recent-item em {
  color: #657083;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.lottery-recent-item strong {
  font-size: 16px;
  font-weight: 950;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.lottery-recent-item em {
  grid-column: 2 / -1;
  text-align: right;
}

.lottery-compact-table {
  max-height: 250px;
}

.lottery-compact-table .lottery-table {
  font-size: 12px;
}

.lottery-compact-table .lottery-table th,
.lottery-compact-table .lottery-table td {
  padding: 7px;
}

@media (max-width: 900px) {
  .lottery-overview {
    grid-template-columns: 1fr;
    grid-template-areas:
      "latest"
      "recent"
      "prediction"
      "history";
  }

  .lottery-feature-main {
    grid-template-columns: 1fr;
  }

  .lottery-insight-list {
    justify-content: flex-start;
  }

  .lottery-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .lottery-page {
    padding-inline: 12px;
  }

  .lottery-analysis-metrics {
    grid-template-columns: 1fr;
  }

  .lottery-prize-list {
    grid-template-columns: 1fr;
  }

  .lottery-prize-row {
    grid-template-columns: 64px 1fr;
  }

  .lottery-prize-row em {
    grid-column: 2;
  }

  .lottery-prediction-card {
    grid-template-columns: 1fr auto;
  }

  .lottery-forecast-compare,
  .lottery-judge-grid {
    grid-template-columns: 1fr;
  }

  .lottery-prediction-card strong,
  .lottery-prediction-card small {
    grid-column: 1 / -1;
  }
}

.lottery-site-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
  align-items: stretch;
  margin-bottom: 22px;
}

.lottery-site-hero > div,
.lottery-home-section,
.lottery-disclaimer-box {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #dce4ef;
  border-radius: 8px;
  box-shadow: 0 18px 38px rgba(23, 32, 51, 0.08);
}

.lottery-site-hero > div:first-child {
  padding: clamp(24px, 5vw, 44px);
}

.lottery-site-hero h1 {
  margin: 10px 0 12px;
  max-width: 820px;
  color: #172033;
  font-size: clamp(30px, 4.8vw, 54px);
  line-height: 1.12;
}

.lottery-site-hero p {
  max-width: 720px;
  margin: 0;
  color: #5d687a;
  font-size: 15px;
  line-height: 1.8;
}

.lottery-hero-note {
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(15, 114, 207, 0.12), rgba(240, 79, 88, 0.08)),
    #fff;
}

.lottery-hero-note strong {
  color: #0f72cf;
  font-size: 18px;
}

.lottery-hero-note span {
  color: #526074;
  font-size: 13px;
  line-height: 1.7;
}

.lottery-home-section,
.lottery-disclaimer-box {
  margin-top: 18px;
  padding: clamp(18px, 3vw, 26px);
}

.lottery-section-heading {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: end;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.lottery-section-heading h2 {
  margin: 0;
  color: #172033;
  font-size: clamp(22px, 3vw, 32px);
}

.lottery-section-heading p {
  max-width: 560px;
  margin: 0;
  color: #687386;
  font-size: 13px;
  line-height: 1.7;
}

.lottery-home-game-grid,
.lottery-latest-board,
.lottery-column-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.lottery-home-game-card,
.lottery-latest-card,
.lottery-column-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
  color: #172033;
  text-decoration: none;
  background:
    linear-gradient(135deg, rgba(15, 114, 207, 0.08), rgba(240, 79, 88, 0.05)),
    #fff;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
}

.lottery-home-game-card:hover,
.lottery-latest-card:hover {
  border-color: rgba(15, 114, 207, 0.42);
  transform: translateY(-1px);
}

.lottery-home-game-card img {
  max-width: 148px;
  height: 54px;
  object-fit: contain;
  object-position: left center;
}

.lottery-home-game-card span,
.lottery-latest-card span,
.lottery-column-card span {
  color: #0f72cf;
  font-size: 12px;
  font-weight: 950;
}

.lottery-home-game-card em {
  align-self: end;
  color: #657083;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.lottery-latest-card strong {
  font-size: 24px;
  line-height: 1.2;
}

.lottery-latest-card small {
  color: #657083;
  font-size: 12px;
}

.lottery-feature-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lottery-feature-list span {
  display: inline-flex;
  padding: 10px 12px;
  color: #243047;
  background: #f8fafc;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
}

.lottery-column-card h3 {
  margin: 0;
  font-size: 17px;
  line-height: 1.45;
}

.lottery-column-card p {
  margin: 0;
  color: #8a94a5;
  font-size: 12px;
}

.lottery-disclaimer-box {
  color: #526074;
  font-size: 13px;
  line-height: 1.8;
}

@media (max-width: 760px) {
  .lottery-site-hero {
    grid-template-columns: 1fr;
  }

  .lottery-home-game-grid,
  .lottery-latest-board,
  .lottery-column-grid {
    grid-template-columns: 1fr;
  }
}

.lottery-game-card {
  color: #172033;
  text-decoration: none;
}

.lottery-game-card:hover {
  color: #172033;
  text-decoration: none;
}

.lottery-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 14px;
  color: #657083;
  font-size: 13px;
  font-weight: 900;
}

.lottery-breadcrumb a {
  color: #0f72cf;
  text-decoration: none;
}

.lottery-breadcrumb span::before {
  content: "/";
  margin-right: 8px;
  color: #9aa6b8;
}

.lottery-analysis-links a {
  display: inline-flex;
  padding: 10px 12px;
  color: #243047;
  background: #f8fafc;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.lottery-analysis-links a:hover {
  color: #0f72cf;
  border-color: rgba(15, 114, 207, 0.36);
  background: linear-gradient(135deg, rgba(15, 114, 207, 0.08), rgba(240, 79, 88, 0.05));
}

.lottery-comparison-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.lottery-comparison-card {
  display: grid;
  gap: 8px;
  min-height: 134px;
  padding: 14px;
  color: #172033;
  text-decoration: none;
  background: linear-gradient(135deg, rgba(15, 114, 207, 0.08), rgba(240, 79, 88, 0.05)), #fff;
  border: 1px solid #dfe6f0;
  border-radius: 8px;
}

.lottery-comparison-card:hover {
  color: #172033;
  text-decoration: none;
  border-color: rgba(15, 114, 207, 0.4);
  transform: translateY(-1px);
}

.lottery-comparison-card span {
  color: #0f72cf;
  font-size: 12px;
  font-weight: 950;
}

.lottery-comparison-card strong {
  font-size: 26px;
  line-height: 1.15;
}

.lottery-comparison-card small {
  color: #657083;
  font-size: 12px;
  line-height: 1.5;
}

.lottery-comparison-card em {
  color: #657083;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

.lottery-mini-bars {
  display: grid;
  gap: 7px;
  margin-top: 4px;
}

.lottery-mini-bars span {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  gap: 7px;
  align-items: center;
  color: #526074;
  font-size: 11px;
}

.lottery-mini-bars b,
.lottery-mini-bars strong {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-size: 11px;
}

.lottery-mini-bars i {
  display: block;
  height: 7px;
  overflow: hidden;
  background: #e9eef6;
  border-radius: 999px;
}

.lottery-mini-bars i em {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #0f72cf, #f04f58);
  border-radius: inherit;
}


.lottery-live-widget {
  margin: 24px 0;
  color: #172033;
}

.lottery-live-card {
  overflow: hidden;
  background: linear-gradient(135deg, rgba(15, 114, 207, 0.08), rgba(240, 79, 88, 0.05)), #fff;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
  box-shadow: 0 16px 36px rgba(14, 38, 70, 0.08);
}

.lottery-live-head {
  padding: 18px 18px 12px;
  border-bottom: 1px solid #e5edf7;
}

.lottery-live-head span {
  display: inline-flex;
  margin-bottom: 8px;
  color: #0f72cf;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.lottery-live-head h3 {
  margin: 0;
  color: #101929;
  font-size: clamp(20px, 2.8vw, 28px);
  line-height: 1.25;
}

.lottery-live-head p,
.lottery-live-note,
.lottery-live-loading,
.lottery-live-error {
  margin: 8px 0 0;
  color: #607087;
  font-size: 13px;
  line-height: 1.7;
}

.lottery-live-table-wrap {
  overflow-x: auto;
}

.lottery-live-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.lottery-live-table th,
.lottery-live-table td {
  padding: 11px 12px;
  border-bottom: 1px solid #e8eef6;
  text-align: right;
  white-space: nowrap;
}

.lottery-live-table th:nth-child(2),
.lottery-live-table td:nth-child(2) {
  text-align: left;
}

.lottery-live-table th {
  color: #64748b;
  background: rgba(248, 251, 255, 0.8);
  font-size: 12px;
  font-weight: 900;
}

.lottery-live-table td strong {
  display: inline-flex;
  min-width: 34px;
  justify-content: center;
  padding: 5px 8px;
  color: #fff;
  background: linear-gradient(135deg, #0f72cf, #034f9b);
  border-radius: 8px;
  box-shadow: 0 8px 16px rgba(15, 114, 207, 0.2);
}

.lottery-live-note {
  padding: 0 18px 16px;
}

.lottery-column-card {
  color: #172033;
  text-decoration: none;
}

.lottery-column-card:hover {
  color: #172033;
  text-decoration: none;
  border-color: rgba(15, 114, 207, 0.45);
  transform: translateY(-1px);
}

.lottery-home-game-grid,
.lottery-latest-board,
.lottery-column-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lottery-column-card--post {
  gap: 0;
  min-height: 0;
  padding: 0;
  overflow: hidden;
}

.lottery-column-thumb {
  position: relative;
  display: grid;
  min-height: 118px;
  margin: 0;
  place-items: center;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 114, 207, 0.2), rgba(240, 79, 88, 0.16)),
    repeating-linear-gradient(135deg, rgba(15, 114, 207, 0.08) 0 10px, rgba(255, 255, 255, 0.4) 10px 20px),
    #f8fbff;
  border-bottom: 1px solid #e1e9f4;
}

.lottery-column-thumb img {
  width: 100%;
  height: 148px;
  object-fit: cover;
  transition: transform 0.2s ease;
}

.lottery-column-card--post:hover .lottery-column-thumb img {
  transform: scale(1.03);
}

.lottery-column-thumb span {
  padding: 8px 12px;
  color: #0f72cf;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(15, 114, 207, 0.16);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.lottery-column-body {
  display: grid;
  gap: 8px;
  padding: 14px;
}

@media (max-width: 1024px) {
  .lottery-home-game-grid,
  .lottery-latest-board,
  .lottery-column-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* lottery-mobile-card-grid-fix */
@media (max-width: 720px) {
  .lottery-home-game-grid,
  .lottery-latest-board,
  .lottery-column-grid {
    grid-template-columns: 1fr;
  }

  .lottery-column-thumb img {
    height: 164px;
  }
}

/* lottery-game-rule-copy */
.lottery-home-game-card span {
  font-size: 15px;
  line-height: 1.3;
}

.lottery-home-game-card em {
  align-self: auto;
  max-width: 28em;
  color: #516073;
  font-size: 12px;
  line-height: 1.55;
  font-style: normal;
  font-weight: 800;
}

/* lottery-home-shell-reset */
body.page-template-page-lottery-home {
  background: #f6f8fb !important;
}

body.page-template-page-lottery-home #container,
body.page-template-page-lottery-home .container,
body.page-template-page-lottery-home .content,
body.page-template-page-lottery-home .content-in,
body.page-template-page-lottery-home .main,
body.page-template-page-lottery-home .article {
  margin-top: 0 !important;
  padding-top: 0 !important;
  background: transparent !important;
}

body.page-template-page-lottery-home .entry-title,
body.page-template-page-lottery-home .date-tags,
body.page-template-page-lottery-home .breadcrumb,
body.page-template-page-lottery-home .sns-share,
body.page-template-page-lottery-home .sns-follow,
body.page-template-page-lottery-home .article-footer {
  display: none !important;
}

body.page-template-page-lottery-home .content,
body.page-template-page-lottery-home .content-in {
  width: 100% !important;
  max-width: none !important;
}

body.page-template-page-lottery-home .main {
  width: 100% !important;
  max-width: none !important;
  border: 0 !important;
}

body.page-template-page-lottery-home .footer,
body.page-template-page-lottery-home .footer-container {
  margin-top: 0 !important;
}

body.page-template-page-lottery-home .lottery-page {
  margin-top: 0 !important;
  padding-top: clamp(18px, 3vw, 34px);
  min-height: calc(100vh - 36px);
}

.lottery-hero-visual {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 114, 207, 0.18), rgba(240, 79, 88, 0.12)),
    #fff;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(14, 38, 70, 0.1);
}

.lottery-hero-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(120deg, rgba(15, 114, 207, 0.12) 1px, transparent 1px),
    linear-gradient(30deg, rgba(240, 79, 88, 0.1) 1px, transparent 1px);
  background-size: 26px 26px, 34px 34px;
}

.lottery-hero-visual img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
  display: block;
}

.lottery-hero-placeholder {
  position: relative;
  z-index: 1;
  display: grid;
  min-height: 280px;
  place-items: center;
  align-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
}

.lottery-hero-placeholder span {
  color: #0f72cf;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
}

.lottery-hero-placeholder strong {
  color: #172033;
  font-size: 28px;
  line-height: 1.2;
}

.lottery-hero-placeholder small {
  color: #657083;
  font-size: 12px;
  line-height: 1.6;
}

@media (max-width: 720px) {
  .lottery-hero-visual,
  .lottery-hero-visual img,
  .lottery-hero-placeholder {
    min-height: 220px;
  }
}

/* lottery-home-header-space-fix */
body.page-template-page-lottery-home .header-container,
body.page-template-page-lottery-home .header-container-in,
body.page-template-page-lottery-home .header,
body.page-template-page-lottery-home .navi,
body.page-template-page-lottery-home .navi-in,
body.page-template-page-lottery-home .appeal,
body.page-template-page-lottery-home .appeal-in,
body.page-template-page-lottery-home .notice-area,
body.page-template-page-lottery-home .carousel {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.page-template-page-lottery-home #content,
body.page-template-page-lottery-home .content,
body.page-template-page-lottery-home .content-in,
body.page-template-page-lottery-home .main,
body.page-template-page-lottery-home .article,
body.page-template-page-lottery-home .entry-content {
  margin-bottom: 0 !important;
  padding-bottom: 0 !important;
}

body.page-template-page-lottery-home .entry-content > *:first-child {
  margin-top: 0 !important;
}

body.page-template-page-lottery-home .footer-container,
body.page-template-page-lottery-home .footer {
  background: #fff !important;
}

.lottery-analysis-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lottery-analysis-card {
  position: relative;
  display: grid;
  min-height: 142px;
  gap: 8px;
  padding: 16px;
  color: #172033;
  text-decoration: none;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(15, 114, 207, 0.09), rgba(255, 255, 255, 0.4)),
    #fff;
  border: 1px solid #dbe5f1;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(14, 38, 70, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.lottery-analysis-card::after {
  content: "";
  position: absolute;
  inset: auto -24px -28px auto;
  width: 96px;
  height: 96px;
  background: linear-gradient(135deg, rgba(15, 114, 207, 0.16), rgba(240, 79, 88, 0.12));
  transform: rotate(45deg);
}

.lottery-analysis-card:hover {
  color: #172033;
  text-decoration: none;
  border-color: rgba(15, 114, 207, 0.42);
  box-shadow: 0 18px 34px rgba(14, 38, 70, 0.1);
  transform: translateY(-2px);
}

.lottery-analysis-card span,
.lottery-analysis-card strong,
.lottery-analysis-card em {
  position: relative;
  z-index: 1;
}

.lottery-analysis-card span {
  width: fit-content;
  padding: 5px 9px;
  color: #0f72cf;
  background: rgba(15, 114, 207, 0.08);
  border: 1px solid rgba(15, 114, 207, 0.14);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
}

.lottery-analysis-card strong {
  font-size: 18px;
  line-height: 1.35;
}

.lottery-analysis-card em {
  color: #5f6c80;
  font-size: 12px;
  line-height: 1.65;
  font-style: normal;
  font-weight: 700;
}

.lottery-analysis-card--accent {
  background:
    linear-gradient(135deg, rgba(240, 79, 88, 0.12), rgba(15, 114, 207, 0.06)),
    #fff;
}

.lottery-analysis-card--accent span {
  color: #c92936;
  background: rgba(240, 79, 88, 0.1);
  border-color: rgba(240, 79, 88, 0.18);
}

@media (max-width: 1024px) {
  .lottery-analysis-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .lottery-analysis-card-grid {
    grid-template-columns: 1fr;
  }
}

/* lottery-hero-polish-v2 */
.lottery-site-hero {
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 20px;
  align-items: stretch;
}

.lottery-site-hero > .lottery-hero-copy {
  display: grid;
  align-content: center;
  padding: clamp(30px, 5vw, 56px);
}

.lottery-site-hero h1 {
  max-width: 760px;
  margin: 12px 0 14px;
  font-size: clamp(38px, 5.2vw, 66px);
  line-height: 1.04;
  letter-spacing: 0;
}

.lottery-hero-lead {
  max-width: 680px !important;
  color: #4d5b70 !important;
  font-size: clamp(14px, 1.5vw, 16px) !important;
  line-height: 1.9 !important;
}

.lottery-hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 22px;
}

.lottery-hero-points span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  color: #0f5499;
  background: rgba(15, 114, 207, 0.08);
  border: 1px solid rgba(15, 114, 207, 0.18);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 950;
}

.lottery-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}

.lottery-hero-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 10px 15px;
  color: #fff;
  text-decoration: none;
  background: linear-gradient(135deg, #0f72cf, #064f9f);
  border: 1px solid rgba(15, 114, 207, 0.28);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(15, 114, 207, 0.18);
}

.lottery-hero-actions a + a {
  color: #0f5499;
  background: #fff;
  box-shadow: none;
}

.lottery-hero-actions a:hover {
  color: #fff;
  text-decoration: none;
  transform: translateY(-1px);
}

.lottery-hero-actions a + a:hover {
  color: #0f5499;
}

.lottery-hero-visual {
  min-height: 360px;
  background: #f8fbff;
}

.lottery-hero-visual img {
  min-height: 360px;
  object-fit: cover;
  object-position: center;
}

.lottery-hero-placeholder {
  min-height: 360px;
}

@media (max-width: 960px) {
  .lottery-site-hero {
    grid-template-columns: 1fr;
  }

  .lottery-hero-visual,
  .lottery-hero-visual img,
  .lottery-hero-placeholder {
    min-height: 260px;
  }
}

@media (max-width: 720px) {
  .lottery-site-hero > .lottery-hero-copy {
    padding: 24px;
  }

  .lottery-site-hero h1 {
    font-size: clamp(32px, 10vw, 46px);
  }
}

/* lottery-home-template-strong-shell-fix */
body.lottery-home-template {
  background: #f6f8fb !important;
}

body.lottery-home-template #header-container,
body.lottery-home-template .header-container,
body.lottery-home-template .header-container-in,
body.lottery-home-template header#header,
body.lottery-home-template .header,
body.lottery-home-template #navi,
body.lottery-home-template .navi,
body.lottery-home-template .navi-in,
body.lottery-home-template .appeal,
body.lottery-home-template .appeal-in,
body.lottery-home-template .notice-area,
body.lottery-home-template .carousel {
  display: none !important;
  height: 0 !important;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: hidden !important;
}

body.lottery-home-template #container,
body.lottery-home-template .container,
body.lottery-home-template #content,
body.lottery-home-template .content,
body.lottery-home-template .content-in,
body.lottery-home-template .main,
body.lottery-home-template .article,
body.lottery-home-template .entry-content {
  width: 100% !important;
  max-width: none !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  background: transparent !important;
  border: 0 !important;
}

body.lottery-home-template .footer,
body.lottery-home-template .footer-container {
  margin-top: 0 !important;
  background: #fff !important;
}

/* lottery standalone home shell */
html:has(body.lottery-standalone-page) {
  margin: 0 !important;
  background: #f5f8fc;
}

body.lottery-standalone-page {
  min-height: 100vh;
  margin: 0 !important;
  color: #07152e;
  background:
    linear-gradient(135deg, rgba(15, 114, 207, 0.06) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(315deg, rgba(241, 78, 90, 0.06) 25%, transparent 25%) 0 0 / 28px 28px,
    #f5f8fc !important;
}

body.lottery-standalone-page.admin-bar {
  min-height: calc(100vh - 32px);
}

body.lottery-standalone-page .lottery-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 34px 20px 28px;
}

body.lottery-standalone-page .lottery-site-hero {
  margin-top: 0;
}

.lottery-site-footer {
  color: #31415b;
  background: #fff;
  border-top: 1px solid #d9e4f2;
}

.lottery-site-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
  padding: 22px 20px;
  font-size: 13px;
}

.lottery-site-footer p {
  margin: 0;
  color: #52637b;
}

.lottery-site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 18px;
}

.lottery-site-footer a {
  color: #0f62b6;
  font-weight: 800;
  text-decoration: none;
}

.lottery-site-footer a:hover {
  color: #ef4656;
  text-decoration: none;
}

@media (max-width: 782px) {
  body.lottery-standalone-page.admin-bar {
    min-height: calc(100vh - 46px);
  }

  body.lottery-standalone-page .lottery-page {
    padding: 18px 12px 22px;
  }

  .lottery-site-footer-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 18px 14px;
  }
}

/* article polish for lottery columns */
body.single-post {
  background:
    linear-gradient(135deg, rgba(15, 114, 207, 0.045) 25%, transparent 25%) 0 0 / 28px 28px,
    linear-gradient(315deg, rgba(241, 78, 90, 0.045) 25%, transparent 25%) 0 0 / 28px 28px,
    #f6f8fb !important;
  color: #07152e;
}

body.single-post .content,
body.single-post .content-in {
  background: transparent !important;
}

body.single-post .main,
body.single-post .article {
  max-width: 920px;
  margin-inline: auto;
  background: rgba(255, 255, 255, 0.96) !important;
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(14, 38, 70, 0.08);
}

body.single-post .article {
  padding: clamp(24px, 4vw, 48px) !important;
}

body.single-post .entry-title,
body.single-post h1.entry-title {
  margin: 0 0 28px !important;
  color: #07152e;
  font-size: clamp(34px, 5vw, 54px) !important;
  font-weight: 950;
  line-height: 1.12;
  letter-spacing: 0;
}

body.single-post .entry-content {
  color: #10213a;
  font-size: 17px;
  line-height: 2.05;
  letter-spacing: 0.01em;
}

body.single-post .entry-content > * + * {
  margin-top: 1.35em;
}

body.single-post .entry-content p {
  margin-bottom: 0;
}

body.single-post .entry-content strong {
  color: #06142b;
  font-weight: 950;
  background: linear-gradient(transparent 62%, rgba(15, 114, 207, 0.14) 62%);
}

body.single-post .entry-content h2,
body.single-post .entry-content h3 {
  position: relative;
  margin-top: 2.4em;
  margin-bottom: 0.85em;
  padding: 18px 20px 18px 24px;
  color: #07152e;
  line-height: 1.35;
  background: linear-gradient(135deg, rgba(15, 114, 207, 0.08), rgba(241, 78, 90, 0.035)), #f8fbff;
  border: 1px solid #dce8f6;
  border-radius: 10px;
}

body.single-post .entry-content h2::before,
body.single-post .entry-content h3::before {
  content: "";
  position: absolute;
  left: 0;
  top: 18px;
  bottom: 18px;
  width: 6px;
  background: linear-gradient(180deg, #0f72cf, #ef4656);
  border-radius: 0 8px 8px 0;
}

body.single-post .entry-content ul,
body.single-post .entry-content ol,
body.single-post .entry-content pre,
body.single-post .entry-content blockquote,
body.single-post .entry-content .wp-block-code,
body.single-post .entry-content .wp-block-preformatted {
  padding: 18px 20px;
  background: #f7f9fc;
  border: 1px solid #dbe5f1;
  border-radius: 10px;
}

body.single-post .entry-content li + li {
  margin-top: 8px;
}

body.single-post .entry-content pre,
body.single-post .entry-content code,
body.single-post .entry-content .wp-block-code code {
  color: #0b1d38;
  font-family: Consolas, Monaco, monospace;
  font-size: 0.95em;
  white-space: pre-wrap;
}

body.single-post .entry-content blockquote {
  border-left: 6px solid #0f72cf;
  color: #263954;
}

body.single-post .entry-content .lottery-live-widget {
  margin: 34px 0;
}

@media (max-width: 782px) {
  body.single-post .main,
  body.single-post .article {
    border-radius: 0;
  }

  body.single-post .article {
    padding: 22px 16px !important;
  }

  body.single-post .entry-content {
    font-size: 16px;
    line-height: 1.9;
  }
}

/* static site pages */
.lottery-static-page {
  max-width: 960px;
}

.lottery-static-hero,
.lottery-static-card {
  margin: 0 0 22px;
  padding: clamp(24px, 4vw, 42px);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid #dbe5f1;
  border-radius: 12px;
  box-shadow: 0 18px 46px rgba(14, 38, 70, 0.08);
}

.lottery-static-hero h1 {
  margin: 12px 0 14px;
  color: #07152e;
  font-size: clamp(36px, 5vw, 58px);
  line-height: 1.12;
}

.lottery-static-hero p,
.lottery-static-card p {
  color: #334761;
  font-size: 16px;
  line-height: 1.95;
}

.lottery-static-card h2 {
  position: relative;
  margin: 28px 0 12px;
  padding-left: 16px;
  color: #07152e;
  font-size: 24px;
}

.lottery-static-card h2:first-child {
  margin-top: 0;
}

.lottery-static-card h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.24em;
  width: 6px;
  height: 1.1em;
  background: linear-gradient(180deg, #0f72cf, #ef4656);
  border-radius: 8px;
}

.lottery-contact-form {
  display: grid;
  gap: 18px;
}

.lottery-contact-form label {
  display: grid;
  gap: 8px;
  color: #10213a;
  font-size: 14px;
  font-weight: 900;
}

.lottery-contact-form input,
.lottery-contact-form textarea {
  width: 100%;
  padding: 13px 14px;
  color: #07152e;
  background: #f8fbff;
  border: 1px solid #cfdced;
  border-radius: 8px;
  font: inherit;
  line-height: 1.6;
}

.lottery-contact-form input:focus,
.lottery-contact-form textarea:focus {
  outline: 3px solid rgba(15, 114, 207, 0.14);
  border-color: #0f72cf;
}

.lottery-contact-form button {
  justify-self: start;
  min-width: 180px;
  padding: 13px 20px;
  color: #fff;
  background: linear-gradient(135deg, #0f72cf, #064f9f);
  border: 0;
  border-radius: 8px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 14px 28px rgba(15, 114, 207, 0.2);
}

.lottery-hp-field {
  position: absolute !important;
  left: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}

.lottery-form-notice {
  margin-bottom: 18px;
  padding: 14px 16px;
  border-radius: 8px;
  font-weight: 850;
}

.lottery-form-notice p {
  margin: 0;
}

.lottery-form-notice--success {
  color: #075c33;
  background: #e8f8ef;
  border: 1px solid #bce7cd;
}

.lottery-form-notice--error {
  color: #8a1f2d;
  background: #fff0f2;
  border: 1px solid #f4c4cc;
}

.lottery-live-widget-stack {
  display: grid;
  gap: 22px;
  margin: 30px 0;
}

/* analysis theme balance and widget strong fix */
body.single-post .entry-content .lottery-live-table td strong,
.lottery-live-table td strong {
  color: #fff !important;
  background: linear-gradient(135deg, #0f72cf, #034f9b) !important;
  background-image: linear-gradient(135deg, #0f72cf, #034f9b) !important;
}

.lottery-theme-page .lottery-comparison-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lottery-theme-page .lottery-comparison-card {
  min-height: 210px;
  padding: 18px;
}

.lottery-theme-page .lottery-comparison-card > strong {
  color: #07152e;
  background: none !important;
  font-size: clamp(22px, 2.4vw, 30px);
}

.lottery-theme-page .lottery-mini-bars {
  margin-top: 8px;
}

.lottery-theme-page .lottery-mini-bars strong {
  background: none !important;
}

.lottery-related-section .lottery-section-heading {
  align-items: end;
}

.lottery-related-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lottery-related-card {
  min-height: 100%;
}

@media (max-width: 1024px) {
  .lottery-theme-page .lottery-comparison-grid,
  .lottery-related-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .lottery-theme-page .lottery-comparison-grid,
  .lottery-related-grid {
    grid-template-columns: 1fr;
  }

  .lottery-theme-page .lottery-comparison-card {
    min-height: 0;
  }
}

/* column archive links */
.lottery-heading-side {
  display: flex;
  align-items: flex-end;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px 14px;
  max-width: 640px;
}

.lottery-heading-side p {
  flex: 1 1 360px;
}

.lottery-section-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 14px;
  color: #0f5499;
  background: linear-gradient(135deg, rgba(15, 114, 207, 0.08), rgba(240, 79, 88, 0.04)), #fff;
  border: 1px solid #cfdced;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
  white-space: nowrap;
}

.lottery-section-link:hover {
  color: #fff;
  background: linear-gradient(135deg, #0f72cf, #034f9b);
  text-decoration: none;
  transform: translateY(-1px);
}

.lottery-columns-archive-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.lottery-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-top: 24px;
}

.lottery-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  min-height: 38px;
  padding: 8px 12px;
  color: #0f5499;
  background: #fff;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  font-weight: 900;
  text-decoration: none;
}

.lottery-pagination .page-numbers.current,
.lottery-pagination .page-numbers:hover {
  color: #fff;
  background: linear-gradient(135deg, #0f72cf, #ef4656);
  border-color: transparent;
}

@media (max-width: 1024px) {
  .lottery-columns-archive-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .lottery-heading-side {
    justify-content: flex-start;
  }

  .lottery-columns-archive-grid {
    grid-template-columns: 1fr;
  }
}
