/* HPOfficial result-first homepage */
.home-page main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.home-page .home-hero-layout,
.home-page .hp-public-draw-intro,
.home-page .result-hub,
.home-page .home-tools-grid,
.home-page .weekly-records-section,
.home-page .share-panel {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}

.home-hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(310px, .7fr);
  align-items: stretch;
  gap: 14px;
}

/* Public draw mission: a clear claim boundary before the result directory. */
.home-page .hp-public-draw-intro {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  padding: clamp(26px, 4vw, 46px);
  gap: clamp(24px, 5vw, 68px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.home-page .hp-public-draw-copy > span {
  display: block;
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .11em;
}

.home-page .hp-public-draw-copy h2 {
  max-width: 13ch;
  margin: 0 0 18px;
  font-size: clamp(2rem, 4vw, 3.9rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.home-page .hp-public-draw-copy h2 em { display: block; color: var(--blue); font-style: normal; }
.home-page .hp-public-draw-copy p { max-width: 62ch; margin: 0; color: var(--text); font-size: 1rem; line-height: 1.75; }
.home-page .hp-public-draw-copy p + p { margin-top: 11px; color: var(--muted); font-size: .9rem; }

.home-page .hp-public-draw-proof {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  padding: 22px;
  border-radius: 17px;
  background: var(--navy);
  color: #fff;
}

.home-page .hp-public-draw-proof > strong {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffdda1;
  font-size: 12px;
  line-height: 1.45;
  letter-spacing: .065em;
}

.home-page .hp-public-draw-proof > strong i {
  width: 8px;
  height: 8px;
  flex: 0 0 8px;
  border-radius: 50%;
  background: #ffcb66;
  box-shadow: 0 0 0 4px rgba(255, 203, 102, .12);
}

.home-page .hp-public-draw-proof ul { display: grid; margin: 20px 0; padding: 0; border-top: 1px solid rgba(255, 255, 255, .1); list-style: none; }
.home-page .hp-public-draw-proof li { display: grid; grid-template-columns: 34px 1fr; align-items: center; min-height: 47px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.home-page .hp-public-draw-proof li b { color: #86a8ff; font-family: var(--mono); font-size: 12px; }
.home-page .hp-public-draw-proof li span { color: #e4e9f1; font-size: .84rem; font-weight: 750; }
.home-page .hp-public-draw-proof > a { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 15px; border-radius: 10px; background: #fff; color: var(--navy); font-size: .82rem; font-weight: 850; }
.home-page .hp-public-draw-proof > a span { color: var(--blue); font-size: 1.05rem; }
.home-page .hp-public-draw-proof > small { display: block; margin-top: 11px; color: #99a6b9; font-size: 12px !important; line-height: 1.45; }

/* Primary result */
.home-page .hira-feature {
  position: relative;
  display: grid;
  grid-template-rows: auto 1fr auto;
  min-width: 0;
  min-height: 430px;
  margin: 0;
  padding: clamp(26px, 3.5vw, 42px);
  overflow: hidden;
  border: 0;
  border-radius: 26px;
  background:
    radial-gradient(circle at 92% 0, rgba(73, 120, 233, .3), transparent 20rem),
    linear-gradient(145deg, #17243a 0%, #0d1523 72%);
  box-shadow: 0 24px 64px rgba(16, 26, 42, .18);
  color: #fff;
}

.home-page .hira-feature::before {
  position: absolute;
  top: -190px;
  right: -190px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, .08);
  border-radius: 50%;
  box-shadow: inset 0 0 0 66px rgba(255, 255, 255, .018), inset 0 0 0 134px rgba(255, 255, 255, .014);
  content: "";
  pointer-events: none;
}

.home-page .hira-feature-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-page .hira-feature-head > div > span {
  display: block;
  margin-bottom: 8px;
  color: #86a8ff;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.home-page .hira-feature h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(2rem, 4.3vw, 4rem);
  line-height: .98;
  letter-spacing: -.06em;
}

.home-page .hira-feature h1 em {
  display: block;
  margin-top: 9px;
  color: #aeb9ca;
  font-size: clamp(.82rem, 1.4vw, 1rem);
  font-style: normal;
  font-weight: 650;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.home-page .hira-feature .market-state {
  flex: 0 0 auto;
  background: rgba(255, 255, 255, .1);
  color: #dce5f3;
}

.home-page .hira-feature .market-state.is-live,
.home-page .hira-feature .market-state.is-open { background: rgba(101, 213, 183, .14); color: #8cf0d5; }
.home-page .hira-feature .market-state.is-published { background: rgba(134, 168, 255, .14); color: #b6c9ff; }

.home-page .hira-feature-board {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  align-items: end;
  gap: 26px;
  margin-top: 28px;
}

.home-page .hira-feature-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.home-page .verified-result-label {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #8795aa;
  font-size: .72rem;
  font-weight: 750;
  letter-spacing: .09em;
}

.home-page .verified-result-label time { color: #dce2ed; }

.home-page .hira-number {
  display: flex;
  align-items: center;
  max-width: 100%;
  margin: 10px 0 18px;
  gap: clamp(4px, .8vw, 10px);
  color: #fff;
  font-family: var(--mono);
  font-size: clamp(2.7rem, 6.4vw, 5.75rem);
  font-weight: 850;
  line-height: .92;
  letter-spacing: -.1em;
  white-space: nowrap;
}

.home-page .hira-number span,
.home-page .hira-number strong { color: inherit; font: inherit; }
.home-page .hira-number strong { color: #ffcb66; }
.home-page .hira-number i { color: #526078; font-family: var(--sans); font-size: .42em; font-style: normal; font-weight: 400; letter-spacing: 0; }

.home-page .hira-times {
  display: flex;
  gap: 8px;
}

.home-page .hira-times > span {
  display: flex;
  align-items: baseline;
  min-height: 40px;
  padding: 9px 12px;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 10px;
  background: rgba(255, 255, 255, .045);
}

.home-page .hira-times small { color: #8795aa; font-size: .67rem !important; font-weight: 800; letter-spacing: .08em; }
.home-page .hira-times b { color: #fff; font-family: var(--mono); font-size: .82rem; }
.home-page .hira-times b { white-space: nowrap; }

.home-page .hira-chart-actions {
  display: grid;
  gap: 8px;
}

.home-page .chart-record-link {
  display: flex;
  align-items: center;
  min-height: 66px;
  padding: 10px 12px;
  gap: 10px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 12px;
  background: rgba(255, 255, 255, .055);
  color: #fff;
  transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.home-page .hira-chart-actions .chart-record-link:hover {
  border-color: rgba(134, 168, 255, .55);
  background: rgba(134, 168, 255, .1);
  transform: translateY(-1px);
}

.home-page .chart-record-mark {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-family: var(--mono);
  font-size: .78rem;
  font-weight: 900;
}

.home-page .chart-record-copy { display: grid; margin-right: auto; }
.home-page .chart-record-copy b { color: inherit; font-size: .72rem; letter-spacing: .06em; }
.home-page .chart-record-copy small { color: #8e9aad; font-size: .62rem !important; letter-spacing: .035em; }
.home-page .chart-record-arrow { color: #86a8ff; }

.home-page .hira-feature > footer {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 28px;
  padding: 18px 0 0;
  gap: 14px;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, .09);
  background: transparent;
  color: #8e9aad;
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .055em;
}

.home-page .hira-feature > footer > span { display: inline-flex; align-items: center; gap: 7px; }
.home-page .hira-feature > footer i,
.home-page .hub-sync i,
.home-page .hp-flip-note i { width: 7px; height: 7px; border-radius: 50%; background: #667085; }
.home-page .hira-feature > footer i.is-online,
.home-page .hub-sync i.is-online,
.home-page .hp-flip-note i.is-online { background: #65d5b7; box-shadow: 0 0 0 4px rgba(101, 213, 183, .1); }

.home-page .hira-feature > footer button {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 13px;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, .13);
  border-radius: 9px;
  background: transparent;
  color: #dce2ed;
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .07em;
}

/* Current status sidecar */
.home-page .current-market-status {
  display: flex;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  padding: 26px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.home-page .current-market-status > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin: 0;
  padding: 0 0 20px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}

.home-page .current-status-title span { display: block; margin-bottom: 5px; color: var(--blue); font-size: .7rem; font-weight: 850; letter-spacing: .12em; }
.home-page .current-status-title h2 { margin: 0; font-size: clamp(1.4rem, 2.2vw, 1.8rem); line-height: 1.05; }
.home-page .current-status-actions { display: flex; align-items: center; gap: 6px; }

.home-page .current-state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 9px;
  gap: 6px;
  border-radius: 999px;
  background: #e8f7f1;
  color: #08705e;
  font-size: .65rem;
  font-weight: 850;
  letter-spacing: .06em;
}

.home-page .current-state-pill i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.home-page .current-status-refresh,
.home-page .refresh-results {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  min-height: 44px;
  padding: 0 12px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-size: .72rem;
  font-weight: 800;
}

.home-page .current-status-refresh span { display: none; }
.home-page .current-status-refresh b,
.home-page .refresh-results b { color: var(--blue); font-size: 1rem; }

.home-page .current-live-list {
  display: grid;
  align-content: start;
  max-height: 242px;
  margin: 0;
  padding: 7px 0 0;
  overflow: auto;
  border: 0;
  background: transparent;
  scrollbar-width: thin;
}

.home-page .current-live-list article {
  display: grid;
  padding: 16px 0;
  gap: 4px;
  border: 0;
  border-bottom: 1px solid var(--line-soft);
  background: transparent;
}

.home-page .current-live-list article:last-child { border-bottom: 0; }
.home-page .current-live-list article > span { color: var(--muted); font-size: .69rem; font-weight: 850; letter-spacing: .08em; }
.home-page .current-live-list article > strong { color: var(--navy); font-family: var(--mono); font-size: clamp(1.15rem, 2.4vw, 1.6rem); letter-spacing: -.045em; }
.home-page .current-live-list article > strong.pending { color: var(--muted); font-family: var(--sans); font-size: .92rem; }
.home-page .current-live-list article p { margin: 0; color: var(--muted); font-size: .79rem; line-height: 1.45; }

.home-page .hp-status-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding: 16px 0 0;
  gap: 10px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 750;
  letter-spacing: .045em;
}

.home-page .hp-status-foot a { display: inline-flex; align-items: center; min-height: 36px; color: var(--blue); font-weight: 850; }

/* Result board */
.home-page .result-hub {
  margin-top: 0;
  padding: clamp(24px, 3.5vw, 38px);
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.home-page .result-board-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin: 0 0 24px;
  padding: 0;
  gap: 24px;
  border: 0;
  background: transparent;
}

.home-page .result-board-heading > div > span,
.home-page .hp-daily-ank > header > div > span,
.home-page .hp-lucky-wheel > header > div > span,
.home-page .weekly-records-heading > div > span {
  display: block;
  margin-bottom: 5px;
  color: var(--blue);
  font-size: .72rem;
  font-weight: 850;
  letter-spacing: .12em;
}

.home-page .result-board-heading h2,
.home-page .hp-daily-ank h2,
.home-page .hp-lucky-wheel h2,
.home-page .weekly-records-heading h2 {
  margin: 0;
  font-size: clamp(1.75rem, 4vw, 2.8rem);
  line-height: 1.04;
}

.home-page .result-board-heading p { max-width: 60ch; margin: 8px 0 0; color: var(--muted); font-size: .9rem; }

.home-page .hub-sync {
  display: grid;
  grid-template-columns: 8px auto;
  align-items: center;
  min-width: 165px;
  padding: 11px 13px;
  gap: 1px 9px;
  border-radius: 11px;
  background: var(--surface-2);
  color: var(--muted);
}

.home-page .hub-sync i { grid-row: 1 / 3; }
.home-page .hub-sync span { font-size: .64rem; font-weight: 750; letter-spacing: .07em; }
.home-page .hub-sync span b { color: var(--green); }
.home-page .hub-sync > strong { color: var(--navy); font-family: var(--mono); font-size: .69rem; }

.home-page .command-bar {
  position: sticky;
  top: 8px;
  z-index: 10;
  display: grid;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  align-items: center;
  margin: 0 0 14px;
  padding: 8px;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 10px 28px rgba(16, 26, 42, .08);
  backdrop-filter: blur(16px);
}

.home-page .market-search {
  display: flex;
  align-items: center;
  min-width: 0;
  min-height: 46px;
  padding: 0 12px;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface-2);
}

.home-page .market-search b { color: var(--blue); font-size: 1rem; }
.home-page .market-search input { width: 100%; min-width: 0; height: 42px; padding: 0; border: 0; outline: 0; background: transparent; color: var(--navy); font-size: .88rem; }
.home-page .market-search input::placeholder { color: #8a92a2; }

.home-page .filter-chips {
  display: flex;
  align-items: center;
  gap: 4px;
}

.home-page .filter-chips button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 12px;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  font-size: .7rem;
  font-weight: 850;
  letter-spacing: .045em;
}

.home-page .filter-chips button b { min-width: 19px; padding: 2px 5px; border-radius: 999px; background: #e6e9ee; color: var(--navy); font-family: var(--mono); font-size: .63rem; }
.home-page .filter-chips button:hover { background: #f2f4f8; color: var(--navy); }
.home-page .filter-chips button.is-active { background: var(--navy); color: #fff; }
.home-page .filter-chips button.is-active b { background: rgba(255, 255, 255, .15); color: #fff; }
.home-page .refresh-results { min-width: 102px; }

.home-page .market-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px;
}

.home-page .market-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 174px;
  min-width: 0;
  overflow: hidden;
  padding: 0;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: #fff;
  color: var(--text);
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
  content-visibility: visible;
  contain-intrinsic-size: none;
}

.home-page .market-card:hover {
  border-color: #b9c8eb;
  box-shadow: 0 10px 26px rgba(16, 26, 42, .07);
  transform: translateY(-1px);
}

.home-page .market-card.is-primary { border-color: #b8c9f1; background: #fbfcff; }
.home-page .market-card.is-live { border-color: #9ed8c9; }

.home-page .result-row-main {
  display: grid;
  grid-template-columns: 132px minmax(145px, 1.15fr) minmax(235px, .95fr) minmax(150px, .75fr);
  align-items: center;
  min-width: 0;
  min-height: 104px;
  padding: 13px 18px;
  gap: 16px;
}

.home-page .result-row-top {
  display: grid;
  grid-template-columns: auto 44px;
  align-items: center;
  justify-content: start;
  gap: 6px 9px;
}

.home-page .market-index {
  color: #667085;
  font-family: var(--mono);
  font-size: .68rem;
  font-weight: 800;
}

.home-page .result-row-top .market-state { grid-column: 1 / -1; justify-self: start; }
.home-page .result-row-top .market-state { max-width: none; margin-left: 0; }

.home-page .favorite-market {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: #8991a0;
  font-size: 1.25rem;
}

.home-page .favorite-market.is-favorite,
.home-page .favorite-market[aria-pressed="true"] { border-color: #eac36f; background: #fff7df; color: #b56c00; }

.home-page .market-title-block { min-width: 0; }
.home-page .market-title-block h3 { margin: 0 0 5px; overflow: hidden; font-size: 1.02rem; line-height: 1.16; text-overflow: ellipsis; white-space: nowrap; }
.home-page .market-result-date { display: block; color: var(--muted); font-size: .65rem; font-weight: 750; letter-spacing: .045em; }

.home-page .card-result {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  min-width: 0;
  gap: 4px;
  color: var(--navy);
  font-family: var(--mono);
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 850;
  line-height: 1;
  letter-spacing: -.075em;
  white-space: nowrap;
}

.home-page .card-result span,
.home-page .card-result strong { color: inherit; font: inherit; }
.home-page .card-result strong { color: var(--blue); }
.home-page .card-result i { color: #b7bcc5; font-family: var(--sans); font-size: .55em; font-style: normal; font-weight: 400; letter-spacing: 0; }

.home-page .result-row-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  background: var(--surface-2);
}

.home-page .result-row-meta > span { display: grid; min-width: 0; padding: 8px 9px; border-right: 1px solid var(--line-soft); }
.home-page .result-row-meta > span:last-child { border-right: 0; }
.home-page .result-row-meta small { color: var(--muted); font-size: .62rem !important; font-weight: 800; letter-spacing: .06em; }
.home-page .result-row-meta b { overflow: hidden; color: var(--navy); font-family: var(--mono); font-size: .72rem; text-overflow: ellipsis; white-space: nowrap; }

.home-page .market-chart-dock {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  border-left: 1px solid var(--line-soft);
  background: #f8f8f5;
}

.home-page .market-chart-dock .chart-record-link {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 100%;
  padding: 14px;
  gap: 7px;
  border: 0;
  border-right: 1px solid var(--line-soft);
  border-radius: 0;
  background: transparent;
  color: var(--navy);
}

.home-page .market-chart-dock .chart-record-link:last-child { border-right: 0; }
.home-page .market-chart-dock .chart-record-link:hover { background: #edf2ff; }
.home-page .market-chart-dock .chart-record-copy b { color: var(--navy); font-size: .7rem; }
.home-page .market-chart-dock .chart-record-copy small { color: var(--muted); font-size: .61rem !important; }
.home-page .market-chart-dock .chart-record-arrow { color: var(--blue); }

.home-page .empty-filter {
  margin-top: 12px;
  padding: 40px 20px;
  border: 1px dashed var(--line);
  border-radius: 14px;
  color: var(--muted);
  text-align: center;
}

.home-page .empty-filter span { color: var(--blue); font-size: 1.5rem; }
.home-page .empty-filter strong { display: block; margin-top: 8px; color: var(--navy); }
.home-page .empty-filter p { margin: 4px 0 0; font-size: .86rem; }

/* Daily ank and secondary tool */
.home-page .home-tools-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(310px, .7fr);
  align-items: stretch;
  gap: 14px;
}

.home-page .hp-daily-ank,
.home-page .hp-lucky-wheel,
.home-page .weekly-records-section {
  margin: 0;
  padding: clamp(24px, 3.2vw, 34px);
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.home-page .hp-daily-ank > header,
.home-page .hp-lucky-wheel > header,
.home-page .weekly-records-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin: 0 0 22px;
  padding: 0;
  gap: 18px;
  border: 0;
  background: transparent;
}

.home-page .hp-daily-ank > header > time,
.home-page .hp-lucky-wheel > header > strong,
.home-page .weekly-records-heading > p {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  margin: 0;
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--surface-2);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .67rem;
  font-weight: 750;
  letter-spacing: .04em;
}

.home-page .hp-daily-ank-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.home-page .hp-daily-ank-grid article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 52px;
  padding: 8px 12px;
  gap: 12px;
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  background: var(--surface-2);
}

.home-page .hp-daily-ank-grid article > strong { color: var(--text); font-size: .78rem; }
.home-page .hp-ank-value { display: flex; align-items: center; gap: 3px; color: var(--navy); font-family: var(--mono); }
.home-page .hp-ank-value b { display: grid; place-items: center; min-width: 78px; height: 32px; padding: 0 8px; border-radius: 7px; background: #fff; color: var(--blue); font-size: .9rem; letter-spacing: .04em; }
.home-page .hp-ank-value i { color: #adb3be; font-style: normal; }

.home-page .hp-daily-ank > footer {
  margin-top: 15px;
  padding: 14px 0 0;
  border: 0;
  border-top: 1px solid var(--line-soft);
  background: transparent;
}

.home-page .hp-daily-ank > footer strong { color: var(--navy); font-size: .7rem; letter-spacing: .06em; }
.home-page .hp-daily-ank > footer p { margin: 5px 0 0; color: var(--muted); font-size: .78rem; }

.home-page .hp-lucky-wheel { overflow: hidden; background: var(--navy); color: #fff; }
.home-page .hp-lucky-wheel h2 { color: #fff; }
.home-page .hp-lucky-wheel > header > div > span { color: #86a8ff; }
.home-page .hp-lucky-wheel > header > strong { border-color: rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .06); color: #bcc6d5; }

.home-page .hp-lucky-layout { display: grid; justify-items: center; gap: 18px; }
.home-page .hp-wheel-stage { position: relative; display: grid; place-items: center; width: min(230px, 75vw); aspect-ratio: 1; }
.home-page .hp-wheel-rotor { position: absolute; inset: 5px; border: 8px solid rgba(255, 255, 255, .1); border-radius: 50%; background: conic-gradient(from -18deg, #244477 0 10%, #1a3157 10% 20%, #244477 20% 30%, #1a3157 30% 40%, #244477 40% 50%, #1a3157 50% 60%, #244477 60% 70%, #1a3157 70% 80%, #244477 80% 90%, #1a3157 90% 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12); transition: transform 2.4s cubic-bezier(.12,.7,.18,1); }
.home-page .hp-wheel-rotor > span { position: absolute; top: 50%; left: 50%; display: block; width: 34px; margin: -10px 0 0 -17px; color: #e9eef7; font-family: var(--mono); font-size: .8rem; text-align: center; transform-origin: 17px 10px; }
.home-page .hp-wheel-rotor > span:nth-child(1) { transform: rotate(0deg) translateY(-87px) rotate(0deg); }
.home-page .hp-wheel-rotor > span:nth-child(2) { transform: rotate(36deg) translateY(-87px) rotate(-36deg); }
.home-page .hp-wheel-rotor > span:nth-child(3) { transform: rotate(72deg) translateY(-87px) rotate(-72deg); }
.home-page .hp-wheel-rotor > span:nth-child(4) { transform: rotate(108deg) translateY(-87px) rotate(-108deg); }
.home-page .hp-wheel-rotor > span:nth-child(5) { transform: rotate(144deg) translateY(-87px) rotate(-144deg); }
.home-page .hp-wheel-rotor > span:nth-child(6) { transform: rotate(180deg) translateY(-87px) rotate(-180deg); }
.home-page .hp-wheel-rotor > span:nth-child(7) { transform: rotate(216deg) translateY(-87px) rotate(-216deg); }
.home-page .hp-wheel-rotor > span:nth-child(8) { transform: rotate(252deg) translateY(-87px) rotate(-252deg); }
.home-page .hp-wheel-rotor > span:nth-child(9) { transform: rotate(288deg) translateY(-87px) rotate(-288deg); }
.home-page .hp-wheel-rotor > span:nth-child(10) { transform: rotate(324deg) translateY(-87px) rotate(-324deg); }
.home-page .hp-wheel-pointer { position: absolute; top: -1px; z-index: 3; width: 0; height: 0; border-right: 9px solid transparent; border-left: 9px solid transparent; border-top: 20px solid #ffcb66; filter: drop-shadow(0 2px 3px rgba(0,0,0,.3)); }
.home-page .hp-wheel-stage > button { position: relative; z-index: 2; display: grid; place-items: center; width: 92px; height: 92px; border: 6px solid rgba(255, 255, 255, .16); border-radius: 50%; background: #fff; color: var(--navy); font-size: 1rem; font-weight: 900; letter-spacing: .04em; box-shadow: 0 12px 30px rgba(0,0,0,.23); }
.home-page .hp-wheel-stage > button small { display: block; color: var(--blue); font-size: .55rem !important; }
.home-page .hp-lucky-feedback { text-align: center; }
.home-page .hp-lucky-feedback strong { color: #fff; font-size: .82rem; }
.home-page .hp-lucky-feedback p { margin: 5px 0; color: #c0c9d7; font-size: .8rem; }
.home-page .hp-lucky-feedback small { display: block; color: #8795aa; font-size: .69rem !important; }

.home-page .hp-lucky-dialog {
  width: min(420px, calc(100% - 28px));
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 22px;
  background: var(--navy);
  color: #fff;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .35);
}
.home-page .hp-lucky-dialog::backdrop { background: rgba(16, 26, 42, .7); backdrop-filter: blur(5px); }
.home-page .hp-lucky-dialog > div { padding: 34px; text-align: center; }
.home-page .hp-lucky-dialog span { color: #86a8ff; font-size: .72rem; font-weight: 850; letter-spacing: .1em; }
.home-page .hp-lucky-dialog h2 { margin: 5px 0 14px; color: #fff; }
.home-page .hp-lucky-dialog [data-lucky-dialog-digit] { display: grid; place-items: center; width: 110px; height: 110px; margin: 0 auto 14px; border-radius: 50%; background: #fff; color: var(--blue); font-family: var(--mono); font-size: 4rem; }
.home-page .hp-lucky-dialog p { color: #aeb9ca; font-size: .86rem; }
.home-page .hp-lucky-dialog button { min-width: 130px; min-height: 44px; border: 0; border-radius: 10px; background: #fff; color: var(--navy); font-size: .75rem; font-weight: 850; }

/* Seven-day records */
.home-page .weekly-records-section { order: 5; }
.home-page .home-tools-grid { order: 6; }
.home-page .share-panel { order: 7; }
.home-page .home-hero-layout { order: 1; }
.home-page .hp-public-draw-intro { order: 2; }
.home-page .result-hub { order: 3; }
.home-page .hp-lucky-dialog { order: 4; }

.home-page .weekly-records-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.home-page .weekly-record-box { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.home-page .weekly-record-box-head { display: grid; grid-template-columns: 1fr auto; padding: 20px; gap: 12px 16px; border: 0; border-bottom: 1px solid var(--line-soft); background: var(--surface-2); }
.home-page .weekly-record-box-head > div > span { color: var(--blue); font-size: .66rem; font-weight: 850; letter-spacing: .08em; }
.home-page .weekly-record-box-head h3 { margin: 3px 0 0; font-size: 1.3rem; }
.home-page .weekly-record-box-head > b { align-self: start; color: var(--muted); font-family: var(--mono); font-size: .67rem; }
.home-page .weekly-record-box-head nav { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, 1fr); gap: 7px; }
.home-page .weekly-chart-link { display: grid; grid-template-columns: 1fr auto; align-items: center; min-height: 48px; padding: 7px 11px; border: 1px solid var(--line); border-radius: 9px; background: #fff; }
.home-page .weekly-chart-link strong { color: var(--navy); font-size: .72rem; }
.home-page .weekly-chart-link small { grid-row: 2; color: var(--muted); font-size: .61rem !important; }
.home-page .weekly-chart-link i { grid-column: 2; grid-row: 1 / 3; color: var(--blue); font-style: normal; }
.home-page .weekly-record-list { margin: 0; padding: 0; list-style: none; }
.home-page .weekly-record-list li { display: grid; grid-template-columns: minmax(120px, .8fr) minmax(130px, 1fr) auto; align-items: center; min-height: 58px; padding: 8px 16px; gap: 10px; border-bottom: 1px solid var(--line-soft); }
.home-page .weekly-record-list li:last-child { border-bottom: 0; }
.home-page .weekly-record-list li.is-today { background: #f1f5ff; }
.home-page .weekly-record-list time { display: grid; }
.home-page .weekly-record-list time strong { color: var(--navy); font-size: .71rem; letter-spacing: .06em; }
.home-page .weekly-record-list time span { color: var(--muted); font-family: var(--mono); font-size: .64rem; }
.home-page .weekly-record-value { color: var(--navy); font-family: var(--mono); font-size: .98rem; letter-spacing: -.035em; }
.home-page .weekly-record-marker { padding: 3px 6px; border-radius: 5px; background: var(--blue); color: #fff; font-size: .59rem !important; font-weight: 850; }
.home-page .weekly-record-box > footer { padding: 10px 16px; border: 0; border-top: 1px solid var(--line-soft); background: var(--surface-2); color: var(--muted); font-family: var(--mono); font-size: .63rem; }
.home-page .weekly-record-empty { margin: 0; padding: 24px; color: var(--muted); }

@media (max-width: 1040px) {
  .home-hero-layout { grid-template-columns: minmax(0, 1.35fr) minmax(290px, .7fr); }
  .home-page .hira-feature-board { grid-template-columns: 1fr; }
  .home-page .hira-chart-actions { grid-template-columns: repeat(2, 1fr); }
  .home-page .result-row-main { grid-template-columns: 104px minmax(140px, 1fr) minmax(205px, .9fr); }
  .home-page .result-row-meta { display: none; }
  .home-page .command-bar { grid-template-columns: 1fr auto; }
  .home-page .filter-chips { grid-column: 1 / -1; grid-row: 2; overflow-x: auto; }
  .home-page .filter-chips button { flex: 1 0 auto; }
}

@media (max-width: 800px) {
  .home-page .home-hero-layout,
  .home-page .hp-public-draw-intro,
  .home-page .home-tools-grid { grid-template-columns: 1fr; }
  .home-page .hira-feature { min-height: 390px; }
  .home-page .current-market-status { min-height: 240px; }
  .home-page .weekly-records-grid { grid-template-columns: 1fr; }
  .home-page .market-card { grid-template-columns: 1fr 160px; }
  .home-page .result-row-main { grid-template-columns: 128px minmax(148px, 1fr) minmax(154px, .9fr); gap: 12px; }
}

@media (max-width: 700px) {
  .home-page main { padding-top: 16px; gap: 12px; }
  .home-page .home-hero-layout,
  .home-page .hp-public-draw-intro,
  .home-page .result-hub,
  .home-page .home-tools-grid,
  .home-page .weekly-records-section,
  .home-page .share-panel { width: calc(100% - 24px); }

  .home-page .home-hero-layout { gap: 10px; }
  .home-page .hp-public-draw-intro { padding: 22px 18px; gap: 20px; border-radius: 18px; }
  .home-page .hp-public-draw-copy h2 { max-width: none; font-size: clamp(2rem, 10vw, 3rem); }
  .home-page .hp-public-draw-copy p { font-size: .94rem; line-height: 1.68; }
  .home-page .hp-public-draw-proof { padding: 18px; }
  .home-page .hira-feature { min-height: 330px; padding: 22px 18px 18px; border-radius: 20px; }
  .home-page .hira-feature-head { min-height: 72px; }
  .home-page .hira-feature-head > div { min-width: 0; width: 100%; }
  .home-page .hira-feature-head > div > span { margin-bottom: 6px; font-size: .75rem; }
  .home-page .hira-feature h1 { padding-right: 0; font-size: clamp(1.8rem, 9vw, 2.65rem); white-space: nowrap; }
  .home-page .hira-feature h1 em { margin-top: 6px; font-size: .7rem; }
  .home-page .hira-feature-head .market-state { position: absolute; top: 0; right: 0; min-height: 26px; padding: 3px 7px; }
  .home-page .hira-feature-board { margin-top: 22px; gap: 19px; }
  .home-page .hira-number { margin: 8px 0 14px; font-size: clamp(2.3rem, 12.8vw, 3.55rem); }
  .home-page .hira-times > span { min-height: 38px; padding: 7px 9px; }
  .home-page .hira-chart-actions { gap: 7px; }
  .home-page .chart-record-link { min-height: 56px; padding: 8px 9px; }
  .home-page .chart-record-mark { width: 28px; height: 28px; flex-basis: 28px; }
  .home-page .hira-feature > footer { margin-top: 20px; padding-top: 14px; font-size: .61rem; }
  .home-page .hira-feature > footer > span { max-width: 190px; }
  .home-page .hira-feature > footer button { min-width: 44px; min-height: 44px; padding-inline: 10px; }

  .home-page .current-market-status { min-height: 0; padding: 18px; border-radius: 18px; }
  .home-page .current-market-status > header { align-items: center; flex-direction: row; padding-bottom: 11px; }
  .home-page .current-status-title h2 { font-size: 1.3rem; }
  .home-page .current-state-pill { display: none; }
  .home-page .current-live-list { max-height: 76px; }
  .home-page .current-live-list article:nth-child(n+2) { display: none; }
  .home-page .current-live-list article { grid-template-columns: minmax(0, 1fr) auto; align-items: center; padding: 10px 0; }
  .home-page .current-live-list article > strong { font-size: 1.1rem; }
  .home-page .current-live-list article > strong { text-align: right; }
  .home-page .current-live-list article p { display: none; }
  .home-page .hp-status-foot { padding-top: 12px; }

  .home-page .result-hub,
  .home-page .hp-daily-ank,
  .home-page .hp-lucky-wheel,
  .home-page .weekly-records-section { padding: 20px 14px; border-radius: 18px; }
  .home-page .result-board-heading { align-items: flex-start; margin-bottom: 18px; }
  .home-page .result-board-heading h2,
  .home-page .hp-daily-ank h2,
  .home-page .hp-lucky-wheel h2,
  .home-page .weekly-records-heading h2 { font-size: 1.68rem; }
  .home-page .result-board-heading p { font-size: .82rem; }
  .home-page .hub-sync { display: none; }

  .home-page .command-bar {
    top: 7px;
    grid-template-columns: minmax(0, 1fr) 48px;
    margin-inline: -6px;
    padding: 6px;
    border-radius: 12px;
  }
  .home-page .market-search { min-height: 46px; }
  .home-page .refresh-results { min-width: 46px; width: 46px; padding: 0; }
  .home-page .refresh-results span { display: none; }
  .home-page .filter-chips { margin: 0 -1px; padding-bottom: 1px; gap: 2px; overflow: visible; }
  .home-page .filter-chips button { min-width: 0; min-height: 44px; flex: 1 1 0; padding: 0 4px; white-space: nowrap; }

  .home-page .market-grid { gap: 8px; }
  .home-page .market-card { display: block; border-radius: 13px; }
  .home-page .market-card:hover { transform: none; }
  .home-page .result-row-main {
    grid-template-columns: 1fr auto;
    min-height: 0;
    padding: 10px 12px;
    gap: 7px 12px;
  }
  .home-page .result-row-top { grid-column: 1 / -1; grid-row: 1; display: flex; min-height: 27px; padding-right: 45px; justify-content: flex-start; }
  .home-page .result-row-top .market-state { order: 2; }
  .home-page .market-index { order: 1; margin-right: auto; }
  .home-page .favorite-market { position: absolute; top: 7px; right: 7px; z-index: 2; order: 3; width: 44px; min-width: 44px; height: 44px; margin: 0; }
  .home-page .market-title-block { grid-column: 1; grid-row: 2; align-self: center; }
  .home-page .market-title-block h3 { overflow: visible; font-size: .9rem; line-height: 1.12; text-overflow: clip; white-space: normal; }
  .home-page .market-result-date { font-size: .62rem; }
  .home-page .card-result { grid-column: 2; grid-row: 2; justify-content: flex-end; font-size: clamp(1.43rem, 7vw, 1.9rem); }
  .home-page .result-row-meta { display: none; }
  .home-page .market-chart-dock { display: grid; grid-template-columns: repeat(2, 1fr); border-top: 1px solid var(--line-soft); border-left: 0; }
  .home-page .market-chart-dock .chart-record-link { flex-direction: row; align-items: center; min-height: 47px; padding: 8px 13px; }
  .home-page .market-chart-dock .chart-record-copy { display: flex; align-items: baseline; gap: 5px; }
  .home-page .market-chart-dock .chart-record-arrow { margin-left: auto; }

  .home-page .hp-daily-ank > header,
  .home-page .hp-lucky-wheel > header,
  .home-page .weekly-records-heading { margin-bottom: 17px; }
  .home-page .hp-daily-ank-grid { grid-template-columns: 1fr; }
  .home-page .hp-daily-ank-grid article { min-height: 49px; }
  .home-page .hp-wheel-stage { width: 220px; }
  .home-page .weekly-records-grid { gap: 9px; }
  .home-page .weekly-record-list li { grid-template-columns: 104px 1fr auto; padding: 8px 12px; }
  .home-page .weekly-record-value { font-size: .88rem; }
}

@media (max-width: 380px) {
  .home-page .hira-feature { padding-inline: 15px; }
  .home-page .hira-number { font-size: 2.25rem; }
  .home-page .chart-record-copy small { display: none; }
  .home-page .hira-feature > footer > span { max-width: 155px; }
  .home-page .current-status-title h2 { font-size: 1.18rem; }
  .home-page .hp-status-foot > span { display: none; }
  .home-page .weekly-record-list li { grid-template-columns: 94px 1fr auto; }
  .home-page .weekly-record-marker { display: none; }
}

/* No microtype: result metadata remains readable on every phone. */
.home-page small,
.home-page .hira-feature-head > div > span,
.home-page .hira-feature h1 em,
.home-page .market-state,
.home-page .market-state span,
.home-page .verified-result-label,
.home-page .verified-result-label time,
.home-page .hira-feature > footer,
.home-page .hira-feature > footer button,
.home-page .current-status-title span,
.home-page .current-status-refresh,
.home-page .current-live-list article > span,
.home-page .hp-status-foot,
.home-page .hp-status-foot *,
.home-page .result-board-heading > div > span,
.home-page .hp-daily-ank > header > div > span,
.home-page .hp-lucky-wheel > header > div > span,
.home-page .weekly-records-heading > div > span,
.home-page .hub-sync span,
.home-page .hub-sync strong,
.home-page .filter-chips button,
.home-page .filter-chips button b,
.home-page .refresh-results,
.home-page .market-index,
.home-page .market-result-date,
.home-page .market-chart-dock .chart-record-copy b,
.home-page .hp-daily-ank > footer strong,
.home-page .weekly-record-box-head > div > span,
.home-page .weekly-record-box-head > b,
.home-page .weekly-record-list time strong,
.home-page .weekly-record-list time span,
.home-page .weekly-record-box > footer {
  font-size: 12px !important;
}

.home-page .market-state .status-short { display: none; }
.home-page .market-search input { min-height: 44px; }
.home-page .market-search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(31, 85, 213, .24);
}
.home-page .hp-status-foot a { min-height: 44px; }

.home-page.home-page small,
.home-page.home-page .hira-times small,
.home-page.home-page .chart-record-copy b,
.home-page.home-page .chart-record-copy small,
.home-page.home-page .hp-daily-ank > header > time,
.home-page.home-page .hp-lucky-wheel > header > strong,
.home-page.home-page .weekly-records-heading > p,
.home-page.home-page .weekly-chart-link strong,
.home-page.home-page .weekly-chart-link small,
.home-page.home-page .weekly-record-marker,
.home-page.home-page .share-panel > header > span,
.home-page.home-page .share-action,
.home-page.home-page .site-support-copy span,
.home-page.home-page .site-support-email strong {
  font-size: 12px !important;
}

body.home-page.home-page small,
.home-page.home-page .current-state-pill,
.home-page.home-page .current-state-pill span,
.home-page.home-page .result-row-meta b,
.home-page.home-page .hp-wheel-stage > button small {
  font-size: 12px !important;
}

@media (prefers-reduced-motion: reduce) {
  .home-page .market-card:hover,
  .home-page .hira-chart-actions .chart-record-link:hover { transform: none; }
}
