:root {
  --bg: #070a11;
  --bg-soft: #0b1018;
  --panel: #0f1622;
  --panel-2: #121b2a;
  --line: rgba(255, 255, 255, 0.07);
  --line-strong: rgba(255, 255, 255, 0.13);
  --text: #e9eef7;
  --text-2: #a7b4c9;
  --muted: #71809a;
  --gold: #e8b45a;
  --gold-2: #f6d79a;
  --red: #e4574f;
  --blue: #4d8fe8;
  --cyan: #45c7c9;
  --green: #5ec98a;
  --radius: 18px;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.42);
  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: "Bahnschrift", "DIN Alternate", "SFMono-Regular", Consolas, monospace;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

[id] { scroll-margin-top: 84px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background:
    radial-gradient(900px 520px at 10% -8%, rgba(228, 87, 79, 0.14), transparent 62%),
    radial-gradient(820px 480px at 92% 0%, rgba(69, 199, 201, 0.1), transparent 60%),
    radial-gradient(720px 620px at 50% 112%, rgba(232, 180, 90, 0.06), transparent 62%),
    var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 50% 0%, rgba(0, 0, 0, 0.55), transparent 72%);
  z-index: 0;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
canvas { display: block; width: 100%; }

.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 28px;
  position: relative;
  z-index: 1;
}

#site-header { position: sticky; top: 0; z-index: 50; }
#site-footer { position: relative; z-index: 1; }

.nav-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 28px;
  height: 68px;
  display: flex;
  align-items: center;
  gap: 34px;
  background: rgba(7, 10, 17, 0.78);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}

.brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.brand-mark {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(150deg, #1b2638, #0b111b);
  position: relative;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.brand-mark i { position: absolute; width: 9px; height: 9px; border-radius: 50%; }
.brand-mark i:nth-child(1) { background: var(--red); left: 8px; top: 9px; box-shadow: 0 0 10px rgba(228, 87, 79, 0.55); }
.brand-mark i:nth-child(2) { background: var(--gold); right: 8px; top: 14px; box-shadow: 0 0 10px rgba(232, 180, 90, 0.5); }
.brand-mark i:nth-child(3) { background: var(--cyan); left: 14px; bottom: 7px; box-shadow: 0 0 10px rgba(69, 199, 201, 0.45); }
.brand-mark.small { width: 34px; height: 34px; border-radius: 10px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-text strong { font-size: 17px; letter-spacing: 0.14em; }
.brand-text small { font-size: 8px; letter-spacing: 0.24em; color: var(--muted); margin-top: 4px; }

.nav-links { display: flex; align-items: center; gap: 6px; margin-left: 6px; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a {
  padding: 8px 11px;
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-2);
  white-space: nowrap;
  transition: color 0.18s, background 0.18s;
}
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-links a.active { color: var(--gold-2); background: rgba(232, 180, 90, 0.1); }

.nav-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
}
.nav-meta b { color: var(--text-2); font-weight: 600; font-family: var(--mono); }
.live-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(94, 201, 138, 0.12); animation: pulse 2.4s infinite; }

.hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 54px;
  align-items: center;
  padding: 74px 0 46px;
}

.eyebrow {
  margin: 0 0 14px;
  font-size: 11px;
  letter-spacing: 0.22em;
  color: var(--gold);
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 0 4px rgba(228, 87, 79, 0.14);
  animation: pulse 2.4s infinite;
}

.hero h1 {
  margin: 0;
  font-size: clamp(40px, 5.2vw, 64px);
  line-height: 1.14;
  letter-spacing: -0.03em;
  font-weight: 800;
}
.grad {
  background: linear-gradient(100deg, var(--gold-2), var(--gold) 46%, var(--red));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  margin: 24px 0 0;
  max-width: 540px;
  font-size: 15px;
  line-height: 1.9;
  color: var(--text-2);
}
.hero-actions { display: flex; gap: 12px; margin: 30px 0 38px; flex-wrap: wrap; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 22px;
  border-radius: 12px;
  border: 1px solid transparent;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s, border-color 0.18s;
}
.btn-primary {
  background: linear-gradient(135deg, #f3cf8a, var(--gold));
  color: #1a1205;
  box-shadow: 0 12px 30px rgba(232, 180, 90, 0.18);
}
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 16px 36px rgba(232, 180, 90, 0.26); }
.btn-ghost { border-color: var(--line-strong); color: var(--text); background: rgba(255, 255, 255, 0.03); }
.btn-ghost:hover { border-color: rgba(232, 180, 90, 0.45); color: var(--gold-2); background: rgba(232, 180, 90, 0.06); }
.btn.copied { color: var(--green); border-color: rgba(94, 201, 138, 0.4); }

.hero-stats { display: flex; gap: 40px; }
.hero-stats > div { display: flex; flex-direction: column; gap: 5px; }
.hero-stats b { font-size: 26px; font-weight: 700; color: var(--gold-2); font-family: var(--mono); line-height: 1; }
.hero-stats span { font-size: 11px; color: var(--muted); letter-spacing: 0.06em; }
.hero-stats small { font-size: 10px; color: var(--muted); }

.hero-panel {
  background: linear-gradient(160deg, rgba(20, 29, 44, 0.92), rgba(10, 15, 24, 0.94));
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 18px 18px 16px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(232, 180, 90, 0.55), transparent);
}
.panel-head { display: flex; justify-content: space-between; align-items: center; padding: 4px 6px 14px; font-size: 13px; }
.panel-head > span:first-child { font-weight: 600; }
.live-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 9px; letter-spacing: 0.18em; color: var(--muted); }
.live-badge i { width: 5px; height: 5px; border-radius: 50%; background: var(--green); animation: pulse 2.4s infinite; }

.overview-list { display: flex; flex-direction: column; }
.overview-row {
  display: grid;
  grid-template-columns: 40px 1fr auto 14px;
  align-items: center;
  gap: 12px;
  padding: 12px 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.045);
  border-radius: 10px;
  transition: background 0.18s;
}
.overview-row:hover { background: rgba(255, 255, 255, 0.035); }
.overview-chip {
  width: 40px; height: 40px; border-radius: 10px;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 32%, transparent);
}
.overview-name { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.overview-name b { font-size: 14px; }
.overview-name small { font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.overview-hit { text-align: right; display: flex; flex-direction: column; gap: 2px; }
.overview-hit b { font-size: 17px; font-family: var(--mono); color: var(--gold-2); }
.overview-hit small { font-size: 9px; color: var(--muted); }
.overview-arrow { color: var(--muted); font-size: 13px; }
.overview-row:hover .overview-arrow { color: var(--gold); }
.panel-foot { display: flex; justify-content: space-between; padding: 14px 6px 2px; font-size: 10px; color: var(--muted); border-top: 1px solid var(--line); margin-top: 6px; }

.section { padding: 54px 0 12px; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; margin-bottom: 24px; }
.section-head h2 { margin: 0; font-size: clamp(25px, 3vw, 32px); letter-spacing: -0.02em; }
.section-head .eyebrow { margin-bottom: 9px; }
.section-head > p { margin: 0; max-width: 430px; text-align: right; font-size: 12px; line-height: 1.8; color: var(--muted); }

.rec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lottery-card {
  position: relative;
  padding: 20px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 29, 44, 0.82), rgba(11, 16, 26, 0.9));
  overflow: hidden;
  transition: transform 0.22s, border-color 0.22s, box-shadow 0.22s;
}
.lottery-card::before {
  content: "";
  position: absolute;
  top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--accent), transparent);
  opacity: 0.7;
}
.lottery-card:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--accent) 38%, transparent);
  box-shadow: 0 22px 46px rgba(0, 0, 0, 0.36);
}
.card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.card-name { display: flex; gap: 11px; align-items: center; min-width: 0; }
.chip {
  display: inline-grid;
  place-items: center;
  min-width: 38px; height: 38px;
  padding: 0 7px;
  border-radius: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--accent, var(--gold));
  background: color-mix(in srgb, var(--accent, var(--gold)) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent, var(--gold)) 30%, transparent);
  flex-shrink: 0;
}
.chip.big { min-width: 56px; height: 56px; border-radius: 14px; font-size: 12px; }
.card-name h3 { margin: 0; font-size: 18px; font-weight: 700; }
.card-name p { margin: 3px 0 0; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card-issue { font-size: 10px; color: var(--muted); white-space: nowrap; padding-top: 4px; font-family: var(--mono); }
.card-numbers {
  margin: 16px 0;
  padding: 13px 11px;
  border-radius: 11px;
  background: rgba(0, 0, 0, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.04);
  min-height: 56px;
  display: flex;
  align-items: center;
}
.card-foot {
  display: grid;
  grid-template-columns: auto auto 1fr;
  align-items: end;
  gap: 14px;
  padding-top: 13px;
  border-top: 1px solid rgba(255, 255, 255, 0.055);
}
.card-stat { display: flex; flex-direction: column; gap: 4px; }
.card-stat span { font-size: 9px; color: var(--muted); letter-spacing: 0.03em; }
.card-stat b { font-size: 15px; font-family: var(--mono); color: var(--text); }
.card-stat .date-val { font-size: 11px; color: var(--text-2); font-family: var(--font); }
.card-link { text-align: right; font-size: 11px; color: var(--gold); white-space: nowrap; }
.card-link span { display: inline-block; transition: transform 0.18s; }
.card-link:hover span { transform: translateX(3px); }

.method-teaser {
  padding: 26px;
  border-radius: var(--radius);
  border: 1px dashed rgba(232, 180, 90, 0.3);
  background: linear-gradient(150deg, rgba(232, 180, 90, 0.07), rgba(15, 22, 34, 0.75));
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.method-teaser .eyebrow { margin-bottom: 10px; }
.method-teaser h3 { margin: 0 0 10px; font-size: 21px; }
.method-teaser p { margin: 0 0 20px; font-size: 12px; line-height: 1.9; color: var(--text-2); }
.text-link { font-size: 12px; color: var(--gold); }

.balls { display: inline-flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.set-balls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ball {
  display: inline-grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38), 0 6px 14px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
}
.ball.red { background: radial-gradient(circle at 32% 26%, #f68076, #c8352e 72%); }
.ball.blue { background: radial-gradient(circle at 32% 26%, #75acf2, #2b5fb5 72%); }
.ball.gold { background: radial-gradient(circle at 32% 26%, #f9df9f, #b77b23 74%); color: #241704; }
.ball.sm { width: 28px; height: 28px; font-size: 11px; }
.plus { color: var(--muted); font-size: 13px; padding: 0 2px; }
.set-row {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.18s, background 0.18s;
}
.set-row:hover { border-color: rgba(232, 180, 90, 0.22); background: rgba(255, 255, 255, 0.04); }
.set-index { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.set-tag {
  font-size: 9px;
  letter-spacing: 0.12em;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 7px;
}
.set-tag.alt { color: var(--gold); border-color: rgba(232, 180, 90, 0.3); }
.complex-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding: 13px 16px;
  border-radius: 12px;
  border: 1px dashed rgba(232, 180, 90, 0.32);
  background: rgba(232, 180, 90, 0.045);
}
.complex-label { font-size: 11px; color: var(--gold); letter-spacing: 0.06em; }
.complex-digits { gap: 10px; }
.digit-group { display: inline-flex; gap: 4px; }
.pos-sep { color: var(--muted); }

.panel {
  background: linear-gradient(165deg, rgba(18, 26, 40, 0.9), rgba(10, 15, 24, 0.92));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.recommend { margin-top: 34px; }
.panel-title { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.panel-title .eyebrow { margin-bottom: 8px; }
.panel-title h2 { margin: 0; font-size: 25px; letter-spacing: -0.02em; }
.panel-actions { display: flex; gap: 10px; }
.panel-actions .btn { height: 40px; padding: 0 17px; font-size: 12px; }
.set-list { display: grid; gap: 8px; margin-top: 20px; }
.panel-note { margin: 16px 0 0; font-size: 11px; line-height: 1.8; color: var(--muted); }

.lottery-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 36px;
  align-items: center;
  padding: 26px 0 38px;
}
.lottery-title { display: flex; align-items: center; gap: 18px; }
.lottery-title .eyebrow { margin-bottom: 6px; }
.lottery-title h1 { margin: 0; font-size: clamp(32px, 4vw, 44px); letter-spacing: -0.02em; }
.hero-meta { margin: 9px 0 0; font-size: 12px; color: var(--muted); }
.latest-draw {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 15px 18px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(15, 22, 34, 0.72);
  width: fit-content;
  max-width: 100%;
}
.latest-label { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.latest-balls { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.latest-date { font-size: 10px; color: var(--muted); margin-left: 4px; }
.hero-stats.mini {
  display: grid;
  grid-template-columns: repeat(3, auto);
  gap: 30px;
  padding: 20px 24px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(20, 29, 44, 0.88), rgba(10, 15, 24, 0.92));
}
.hero-stats.mini b.date-val { font-size: 13px; color: var(--text); font-family: var(--font); font-weight: 600; }

.breadcrumb { display: flex; gap: 9px; align-items: center; padding-top: 24px; font-size: 11px; color: var(--muted); }
.breadcrumb a:hover { color: var(--gold); }
.breadcrumb b { color: var(--text-2); font-weight: 500; }

.chart-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.chart-grid.three { grid-template-columns: repeat(3, 1fr); }
.chart-card { padding: 20px 20px 14px; }
.chart-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.chart-head h3 { margin: 0; font-size: 14px; font-weight: 600; }
.chart-head span { font-size: 10px; color: var(--muted); }
.chart-card canvas, .wide-panel canvas { height: 240px; }
.chart-grid.three canvas { height: 210px; }
.wide-panel { margin-top: 18px; padding: 20px 20px 14px; }
.back-insights { display: flex; gap: 42px; flex-wrap: wrap; padding: 8px 2px 6px; }
.insight > span { display: block; font-size: 10px; color: var(--muted); margin-bottom: 10px; letter-spacing: 0.06em; }
.omit-chip {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  min-width: 46px;
  padding: 7px 8px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
}
.omit-chip small { font-family: var(--font); font-size: 8px; color: var(--muted); }

.heat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; margin: 6px 0 12px; }
.heat-cell {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 7px;
  border-radius: 7px;
  background: rgba(232, 180, 90, var(--heat, 0.1));
  border: 1px solid rgba(255, 255, 255, 0.045);
  font-family: var(--mono);
  font-size: 10px;
  transition: border-color 0.18s, transform 0.18s;
}
.heat-cell:hover { border-color: rgba(232, 180, 90, 0.6); transform: translateY(-1px); }
.heat-num { font-weight: 700; }
.heat-count { opacity: 0.65; font-size: 9px; }
.heat-legend { display: flex; align-items: center; gap: 8px; font-size: 9px; color: var(--muted); }
.heat-scale { display: inline-block; width: 90px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, rgba(232, 180, 90, 0.1), var(--gold)); }

.bt-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  padding-bottom: 20px;
  margin-bottom: 6px;
  border-bottom: 1px solid var(--line);
}
.bt-summary > div { display: flex; flex-direction: column; gap: 5px; }
.bt-summary span { font-size: 10px; color: var(--muted); letter-spacing: 0.06em; }
.bt-summary b { font-size: 28px; font-family: var(--mono); color: var(--gold-2); line-height: 1.1; }
.bt-summary small { font-size: 10px; color: var(--muted); }

.table-scroll { max-height: 430px; overflow: auto; border-radius: 12px; border: 1px solid var(--line); }
.table-scroll.tall { max-height: 620px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  text-align: left;
  padding: 11px 14px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: var(--muted);
  background: #0d1420;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.data-table td { padding: 11px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.04); vertical-align: middle; }
.data-table tbody tr:hover { background: rgba(255, 255, 255, 0.02); }
.data-table tbody tr:last-child td { border-bottom: 0; }
.issue-cell { font-family: var(--mono); font-size: 11.5px; white-space: nowrap; }
.issue-cell small { display: block; font-family: var(--font); font-size: 9px; color: var(--muted); margin-top: 2px; }
.mini-nums { font-family: var(--mono); font-size: 11px; letter-spacing: 0.05em; color: var(--text-2); white-space: pre-wrap; }
.hit-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--gold);
  background: rgba(232, 180, 90, 0.1);
  border: 1px solid rgba(232, 180, 90, 0.26);
  white-space: nowrap;
}
.table-lottery { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.table-lottery i { width: 7px; height: 7px; border-radius: 50%; }
.muted { color: var(--muted); }
.table-note { margin: 14px 2px 0; font-size: 11px; line-height: 1.8; color: var(--muted); }
.scroll-hint { display: none; }
.history-table .ball.sm { width: 25px; height: 25px; font-size: 9.5px; }
.history-table .set-balls { gap: 4px; }
.history-table.frontback .set-balls, .history-table.digits .set-balls { flex-wrap: nowrap; }
.history-table.frontback td:nth-child(3), .history-table.digits td:nth-child(3) { min-width: 230px; }
.history-table td { padding: 9px 14px; }

.method-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.method-card {
  padding: 22px;
  border-radius: 15px;
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(18, 26, 40, 0.82), rgba(10, 15, 24, 0.9));
}
.method-num { font-family: var(--mono); font-size: 11px; color: var(--gold); letter-spacing: 0.12em; }
.method-card h3 { margin: 14px 0 9px; font-size: 15px; }
.method-card p { margin: 0; font-size: 12px; line-height: 1.85; color: var(--text-2); }
.honest-note {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 18px;
  margin-top: 18px;
  padding: 20px 22px;
  border-radius: 14px;
  border: 1px solid rgba(232, 180, 90, 0.24);
  background: rgba(232, 180, 90, 0.055);
}
.honest-note b { font-size: 13px; color: var(--gold); }
.honest-note p { margin: 0; font-size: 12px; line-height: 1.9; color: var(--text-2); }

.disclaimer-band {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  margin: 52px 0 64px;
  padding: 24px 28px;
  border-radius: 16px;
  border: 1px solid rgba(228, 87, 79, 0.24);
  background: linear-gradient(100deg, rgba(228, 87, 79, 0.08), rgba(228, 87, 79, 0.012));
}
.disclaimer-band b { font-size: 14px; }
.disclaimer-band p { margin: 6px 0 0; font-size: 11px; line-height: 1.8; color: var(--muted); }
.disclaimer-mark {
  font-family: var(--mono);
  font-size: 24px;
  font-weight: 700;
  color: rgba(228, 87, 79, 0.7);
  border: 2px solid rgba(228, 87, 79, 0.35);
  border-radius: 50%;
  width: 56px; height: 56px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 38px 28px 30px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand strong { font-size: 15px; letter-spacing: 0.12em; }
.footer-brand p { margin: 4px 0 0; font-size: 10px; color: var(--muted); letter-spacing: 0.04em; }
.footer-warn { border-left: 2px solid rgba(232, 180, 90, 0.4); padding-left: 16px; }
.footer-warn p { margin: 0 0 6px; font-size: 11px; line-height: 1.85; color: var(--muted); }
.footer-warn b { color: var(--text-2); font-weight: 600; margin-right: 6px; }
.footer-links { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 11px; color: var(--muted); }
.footer-links b { color: var(--text-2); font-weight: 600; letter-spacing: 0.06em; }
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--gold); }
.footer-meta { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; font-size: 10px; color: var(--muted); padding-top: 6px; }
.footer-sell { margin-left: auto; }
.footer-sell a { color: var(--gold); text-decoration: none; letter-spacing: 0.04em; }
.footer-sell a:hover { text-decoration: underline; }
.noscript { padding: 40px 28px; text-align: center; color: var(--muted); }

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

a:focus-visible, button:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }

@media (max-width: 1080px) {
  .hero { grid-template-columns: 1fr; gap: 36px; padding-top: 54px; }
  .hero-panel { max-width: 640px; }
  .rec-grid { grid-template-columns: repeat(2, 1fr); }
  .method-grid { grid-template-columns: repeat(2, 1fr); }
  .lottery-hero { grid-template-columns: 1fr; gap: 24px; }
  .hero-stats.mini { justify-content: start; }
}

@media (max-width: 900px) {
  .nav-inner { gap: 18px; padding: 0 20px; }
  .nav-meta { display: none; }
  .nav-links { margin-left: 0; }
  .chart-grid, .chart-grid.three { grid-template-columns: 1fr; }
  .chart-grid.three { grid-template-columns: repeat(3, 1fr); }
  .chart-grid.three canvas { height: 170px; }
  .chart-grid.three .chart-card { padding: 16px 14px 10px; }
  .chart-grid.three .chart-head { flex-direction: column; gap: 3px; align-items: flex-start; }
}

@media (max-width: 720px) {
  .wrap { padding: 0 18px; }
  .nav-inner { height: 60px; padding: 0 16px; gap: 16px; }
  .brand-text small { display: none; }
  .brand-text strong { font-size: 14px; }
  .nav-links { gap: 3px; }
  .nav-links a { font-size: 12px; padding: 8px 7px; }
  .hero { padding: 42px 0 30px; }
  .hero-sub { font-size: 14px; }
  .hero-stats { gap: 26px; }
  .hero-stats b { font-size: 22px; }
  .section { padding: 42px 0 8px; }
  .section-head { flex-direction: column; align-items: flex-start; gap: 8px; margin-bottom: 18px; }
  .section-head > p { text-align: left; }
  .rec-grid, .method-grid { grid-template-columns: 1fr; }
  .panel { padding: 18px; }
  .recommend { margin-top: 24px; }
  .panel-title h2 { font-size: 21px; }
  .panel-actions { width: 100%; }
  .panel-actions .btn { flex: 1; }
  .set-row { grid-template-columns: 32px 1fr; gap: 10px; padding: 10px 12px; }
  .set-row .set-tag { display: none; }
  .ball { width: 32px; height: 32px; font-size: 12.5px; }
  .ball.sm { width: 26px; height: 26px; font-size: 10px; }
  .set-balls { gap: 5px; }
  .latest-draw { gap: 12px; padding: 13px 14px; }
  .latest-date { margin-left: 0; width: 100%; }
  .hero-stats.mini { grid-template-columns: repeat(2, 1fr); gap: 18px; width: 100%; }
  .bt-summary { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .bt-summary b { font-size: 24px; }
  .chart-grid.three { grid-template-columns: 1fr; }
  .chart-grid.three canvas { height: 200px; }
  .honest-note { grid-template-columns: 1fr; gap: 8px; }
  .disclaimer-band { margin: 40px 0 48px; padding: 20px; }
  .disclaimer-mark { width: 48px; height: 48px; font-size: 20px; }
  .footer-inner { padding: 30px 18px 26px; }
  .footer-meta { flex-direction: column; gap: 6px; }
  .heat-grid { grid-template-columns: repeat(auto-fill, minmax(40px, 1fr)); }
  .card-foot { grid-template-columns: auto auto 1fr; }
  .data-table { min-width: 560px; }
  .history-table { min-width: 620px; }
  .scroll-hint { display: block; margin: 0 2px 8px; text-align: right; font-size: 10px; color: var(--muted); }
  .history-table th:first-child, .history-table td:first-child {
    position: sticky;
    left: 0;
    z-index: 2;
    background: #0b111b;
    box-shadow: 8px 0 12px -8px rgba(0, 0, 0, 0.6);
  }
  .history-table th:first-child { z-index: 3; background: #0d1420; }
}

@media (max-width: 480px) {
  .nav-inner { gap: 10px; padding: 0 12px; }
  .brand-text { display: none; }
  .nav-links { gap: 1px; margin-left: 0; }
  .nav-links a { padding: 8px 5px; font-size: 12px; }
  .hero h1 { font-size: 36px; }
  .hero-actions .btn { flex: 1; }
  .set-row { grid-template-columns: 24px 1fr; gap: 8px; padding: 10px; }
  .set-row .ball { width: 28px; height: 28px; font-size: 11px; }
  .set-row .ball.sm { width: 24px; height: 24px; font-size: 9.5px; }
  .set-balls { gap: 4px; }
  .hero-panel { padding: 14px; }
  .overview-row { grid-template-columns: 36px 1fr auto; padding: 10px 6px; }
  .overview-arrow { display: none; }
  .overview-chip { width: 36px; height: 36px; }
  .card-numbers { padding: 11px 9px; }
  .card-foot { gap: 10px; }
  .card-stat .date-val { font-size: 10px; }
  .lottery-title { gap: 12px; }
  .chip.big { min-width: 46px; height: 46px; font-size: 10px; }
  .lottery-title h1 { font-size: 30px; }
  .latest-balls .ball { width: 28px; height: 28px; font-size: 11px; }
  .back-insights { gap: 24px; }
  .panel-note { font-size: 10px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  html { scroll-behavior: auto; }
}
