:root {
  --navy: #1E3A8A;
  --blue: #2563EB;
  --orange: #F97316;
  --slate: #F1F5F9;
  --dark: #0B1120;
  --panel: #111827;
  --border: rgba(37, 99, 235, 0.18);
  --muted: rgba(255, 255, 255, 0.55);
  --white: #fff;
  --line: rgba(255, 255, 255, 0.08);
  --surface: rgba(17, 24, 39, 0.82);
  --surface-strong: rgba(17, 24, 39, 0.92);
  --shadow: 0 14px 42px rgba(0, 0, 0, 0.24);
  --shadow-hover: 0 18px 54px rgba(0, 0, 0, 0.34);
  --focus: 0 0 0 3px rgba(249, 115, 22, 0.22);
  --radius: 8px;
  --font-sans: 'Sarabun', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-display: 'Prompt', 'Sarabun', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
}
body {
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(30, 58, 138, 0.18), transparent 300px),
    radial-gradient(circle at 76% -8%, rgba(249, 115, 22, 0.1), transparent 340px),
    var(--dark);
  color: var(--white);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible {
  outline: 0;
  box-shadow: var(--focus);
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
  font-family: var(--font-sans);
}
h1,
h2,
h3,
.brand,
.topbar,
button,
.primary-button,
.secondary-button,
.primary-link,
.button-link,
.status-pill,
.sponsor-badge,
.news-hero__cat,
.news-hero__cta,
.blog-card strong,
.prize span,
.tier-head strong,
.checker-result-title,
.article-meta,
.article-toc__head,
.footer,
footer {
  font-family: var(--font-display);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
  padding: 0 clamp(16px, 4vw, 48px);
  background: rgba(11, 17, 32, 0.88);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.brand {
  display: inline-flex;
  align-items: baseline;
  gap: 2px;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.brand strong {
  color: var(--orange);
}
.topbar nav {
  display: flex;
  gap: 4px;
}
.topbar nav a {
  padding: 8px 12px 9px;
  border-radius: var(--radius);
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.88rem;
  font-weight: 700;
  transition: background 0.16s ease, color 0.16s ease;
}
.topbar nav a:hover {
  background: rgba(37, 99, 235, 0.16);
  color: var(--white);
}
.topbar-search {
  display: flex;
  align-items: center;
  gap: 6px;
  width: min(300px, 28vw);
}
.topbar-search input[type=search] {
  width: 100%;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  padding: 0 10px;
  outline: 0;
  font-size: 0.82rem;
}
.topbar-search input[type=search]:focus {
  border-color: var(--orange);
  box-shadow: var(--focus);
}
.topbar-search button {
  height: 34px;
  border: 1px solid rgba(249, 115, 22, 0.42);
  border-radius: var(--radius);
  background: rgba(249, 115, 22, 0.16);
  color: var(--white);
  padding: 0 10px;
  font-size: 0.78rem;
  font-weight: 800;
  cursor: pointer;
}

main {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 42px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 16px;
  align-items: stretch;
}
.hero-main,
.side-stack,
.card,
.rail-health {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.hero-main {
  padding: clamp(20px, 3vw, 32px);
}
.result-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.section-icon {
  display: inline-block;
  margin-bottom: 6px;
  color: var(--orange);
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 700;
}
h1 {
  max-width: 720px;
  font-size: clamp(1.7rem, 3.4vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  line-height: 1.15;
  color: var(--white);
}
h2 {
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--white);
}

.result-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  min-width: 130px;
}
.result-meta small,
.source-note,
.checker p,
.next-draw small,
dt {
  color: var(--muted);
}
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.14);
  border: 1px solid var(--border);
  color: var(--slate);
  font-size: 0.76rem;
  font-weight: 800;
}
.status-pill span {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--orange);
}

.result-panel {
  margin-top: 14px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.14), transparent 62%), #0d1730;
}
.result-header,
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.result-header span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}
.result-header strong {
  font-weight: 700;
  font-size: 1.05rem;
}

.digits {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
  margin: 18px 0 16px;
}
.digits span,
.checker-slots span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: var(--radius);
  background: rgba(241, 245, 249, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: clamp(1.4rem, 3.8vw, 2.2rem);
  font-weight: 700;
}
.prize-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.prize {
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(37, 99, 235, 0.09);
  border: 1px solid rgba(37, 99, 235, 0.18);
}
.prize span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 500;
}
.prize strong {
  margin-top: 4px;
  display: block;
  color: #93c5fd;
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.prize.orange {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.28);
}
.prize.orange strong {
  color: var(--orange);
}
.source-note {
  margin-top: 14px;
  font-size: 0.84rem;
}

.tier-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr)) auto;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed rgba(37, 99, 235, 0.22);
  border-radius: var(--radius);
  background: rgba(11, 17, 32, 0.45);
}
.tier-chip {
  display: grid;
  gap: 2px;
  padding: 8px 10px;
  border-radius: var(--radius);
  background: rgba(37, 99, 235, 0.12);
}
.tier-chip span {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 500;
}
.tier-chip strong {
  font-family: var(--font-mono);
  font-size: 1.18rem;
  font-weight: 700;
  color: #93c5fd;
}
.tier-chip small {
  color: var(--muted);
  font-size: 0.68rem;
}
.tier-cta {
  white-space: nowrap;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.84rem;
  padding: 8px 12px;
  border-radius: var(--radius);
  background: rgba(249, 115, 22, 0.12);
  border: 1px solid rgba(249, 115, 22, 0.28);
}
.tier-cta:hover {
  background: rgba(249, 115, 22, 0.2);
}

.tier-card {
  display: grid;
  gap: 18px;
}
.card-header-meta {
  color: var(--muted) !important;
  font-weight: 600 !important;
  font-size: 0.82rem !important;
}
.tier {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 17, 32, 0.45);
}
.tier-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.tier-head strong {
  color: #93c5fd;
  font-size: 1.02rem;
  font-weight: 700;
}
.tier-head small {
  color: var(--muted);
  font-size: 0.78rem;
}
.tier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(86px, 1fr));
  gap: 6px;
}
.tier-num {
  display: grid;
  place-items: center;
  height: 36px;
  border-radius: var(--radius);
  background: rgba(241, 245, 249, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 0.94rem;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.news-strip {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: linear-gradient(90deg, rgba(30, 58, 138, 0.28), rgba(17, 24, 39, 0.86));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.news-strip__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.32);
  color: #fed7aa;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}
.news-strip__tag strong {
  color: var(--orange);
  font-weight: 800;
}
.news-strip__headline {
  flex: 1;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: baseline;
  gap: 10px;
  min-width: 0;
}
.news-strip__headline > span {
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.news-strip__headline strong {
  font-weight: 600;
  color: var(--white);
  font-size: 0.95rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.news-strip__more {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.82rem;
  white-space: nowrap;
}

.rail-calendar {
  padding: 14px;
  background: rgba(17, 24, 39, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.rail-calendar__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.rail-calendar__head h2 {
  font-size: 0.96rem;
}
.rail-calendar__head small {
  color: var(--muted);
  font-size: 0.72rem;
}
.cal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
}
.cal-cell {
  display: grid;
  place-items: center;
  height: 30px;
  border-radius: 7px;
  font-size: 0.72rem;
  font-weight: 600;
  font-family: var(--font-sans);
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(241, 245, 249, 0.04);
  color: rgba(255, 255, 255, 0.38);
}
.cal-cell--past {
  color: #93c5fd;
  background: rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.2);
}
.cal-cell--past:hover {
  background: rgba(37, 99, 235, 0.24);
}
.cal-cell--next {
  color: var(--white);
  background: var(--orange);
  border-color: var(--orange);
  font-weight: 800;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.22);
}
.cal-cell--upcoming {
  color: rgba(255, 255, 255, 0.42);
}

.hotcold {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.hotcold__col {
  display: grid;
  gap: 8px;
}
.hotcold__label {
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 4px;
}
.hotcold__label--hot {
  color: var(--orange);
}
.hotcold__label--cold {
  color: #60a5fa;
}
.hc-row {
  display: grid;
  grid-template-columns: 30px 1fr 54px;
  align-items: center;
  gap: 8px;
}
.hc-digit {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  font-family: var(--font-mono);
  font-weight: 700;
}
.hc-digit--hot {
  background: rgba(249, 115, 22, 0.16);
  color: var(--orange);
}
.hc-digit--cold {
  background: rgba(37, 99, 235, 0.16);
  color: #93c5fd;
}
.hc-row small {
  color: var(--muted);
  font-size: 0.78rem;
}

.side-stack {
  display: grid;
  gap: 14px;
  padding: 16px;
}
.checker {
  display: grid;
  gap: 12px;
}
.checker p {
  font-size: 0.82rem;
  margin-top: 4px;
}
.checker-slots {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
}
.checker-slots span {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.3);
}
.checker-slots span.filled {
  color: var(--white);
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.42);
}
.checker-number {
  width: 100%;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius);
  background: rgba(11, 17, 32, 0.78);
  color: var(--white);
  font-family: var(--font-mono);
  font-size: 1.08rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  padding: 0 14px;
  outline: none;
}
.checker-number:focus {
  border-color: var(--blue);
  box-shadow: var(--focus);
}
.checker-number::placeholder {
  color: rgba(255, 255, 255, 0.35);
  font-family: var(--font-sans);
  font-weight: 500;
  letter-spacing: 0;
}
.primary-button {
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--orange);
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.15s ease, box-shadow 0.15s ease, transform 0.05s ease;
}
.primary-button:hover:not(:disabled) {
  background: #ea6a0c;
  box-shadow: 0 10px 28px rgba(249, 115, 22, 0.22);
}
.primary-button:active:not(:disabled) {
  transform: translateY(1px);
}
.primary-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
.check-result {
  display: grid;
  gap: 3px;
  padding: 12px;
  border-radius: var(--radius);
  background: rgba(241, 245, 249, 0.06);
  color: var(--muted);
  font-size: 0.88rem;
}
.check-result.win {
  background: rgba(37, 99, 235, 0.16);
  color: var(--white);
  border: 1px solid var(--border);
}
.check-result.win span {
  color: var(--orange);
  font-weight: 800;
}

.next-draw {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), #14245b);
}
.next-draw span,
.next-draw small {
  display: block;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.78rem;
}
.next-draw strong {
  display: block;
  margin: 4px 0;
  font-size: 1.04rem;
  font-weight: 700;
}
.next-draw em {
  color: var(--orange);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
  font-size: 0.92rem;
}
.rail-health {
  padding: 16px;
}
.rail-health dl,
.health-card dl {
  display: grid;
  gap: 9px;
  margin-top: 10px;
}
.rail-health dl div,
.health-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.86rem;
}
.rail-health dd,
.health-card dd {
  font-weight: 700;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.82fr);
  gap: 16px;
  margin-top: 16px;
}

.news-hero {
  display: grid;
  grid-template-columns: minmax(0, 2.2fr) minmax(280px, 1fr);
  gap: 16px;
  align-items: stretch;
}
.news-hero__feature {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  color: var(--white);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.news-hero__feature:hover {
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: var(--shadow-hover);
  transform: translateY(-2px);
}
.news-hero__image {
  display: block;
  aspect-ratio: 16 / 9;
  background-color: rgba(255, 255, 255, 0.04);
  background-position: center;
  background-size: cover;
  border-bottom: 1px solid var(--line);
}
.news-hero__body {
  display: grid;
  gap: 10px;
  padding: 22px 26px 26px;
  align-content: start;
}
.news-hero__meta {
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
}
.news-hero__cat {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.16);
  border: 1px solid rgba(249, 115, 22, 0.32);
  color: var(--orange);
}
.news-hero__date {
  color: var(--muted);
  font-weight: 600;
}
.news-hero__title {
  font-size: clamp(1.4rem, 2.6vw, 2.2rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--white);
  letter-spacing: -0.01em;
}
.news-hero__excerpt {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.96rem;
  line-height: 1.7;
  max-width: 720px;
}
.news-hero__cta {
  margin-top: 4px;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.92rem;
}

.lotto-mini {
  display: grid;
  gap: 12px;
  padding: 16px;
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  align-self: stretch;
}
.lotto-mini__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.lotto-mini__head span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}
.lotto-mini__head strong {
  display: block;
  margin-top: 2px;
  font-size: 1rem;
  font-weight: 700;
  color: var(--white);
}
.digits--mini {
  margin: 4px 0 6px;
  gap: 5px;
}
.digits--mini span {
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 700;
}
.lotto-mini__chips {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.lotto-mini__chips > div {
  padding: 8px;
  border-radius: var(--radius);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.18);
  text-align: center;
}
.lotto-mini__chips span {
  display: block;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 500;
}
.lotto-mini__chips strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 0.92rem;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.04em;
}
.lotto-mini__link {
  display: inline-block;
  padding: 6px 10px;
  border-radius: var(--radius);
  background: rgba(249, 115, 22, 0.1);
  border: 1px solid rgba(249, 115, 22, 0.24);
  color: var(--orange);
  font-weight: 700;
  font-size: 0.82rem;
  text-align: center;
}
.checker-mini {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px;
  margin-top: 4px;
}
.checker-mini .checker-number {
  height: 40px;
  font-size: 0.95rem;
}
.checker-mini .primary-button {
  height: 40px;
  padding: 0 16px;
  font-size: 0.88rem;
}
.lotto-mini__next {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 4px 10px;
  margin-top: 4px;
  padding: 10px 12px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--navy), #14245b);
}
.lotto-mini__next span {
  grid-column: 1;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.72rem;
  font-weight: 600;
}
.lotto-mini__next strong {
  grid-column: 1;
  font-size: 0.96rem;
  font-weight: 700;
  color: var(--white);
}
.lotto-mini__next em {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  font-style: normal;
  font-weight: 800;
  color: var(--orange);
  font-size: 0.9rem;
  white-space: nowrap;
}

.news-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 16px;
}
.news-rail__item {
  display: grid;
  grid-template-columns: 96px 1fr;
  align-items: stretch;
  gap: 12px;
  padding: 10px;
  background: rgba(17, 24, 39, 0.74);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.news-rail__item:hover {
  background: rgba(17, 24, 39, 0.9);
  border-color: rgba(37, 99, 235, 0.34);
  transform: translateY(-1px);
}
.news-rail__thumb {
  width: 96px;
  height: 100%;
  min-height: 64px;
  border-radius: 6px;
  background-color: rgba(255, 255, 255, 0.04);
  background-position: center;
  background-size: cover;
}
.news-rail__body {
  display: grid;
  gap: 4px;
  align-content: center;
}
.news-rail__body small {
  color: var(--orange);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.news-rail__body strong {
  font-weight: 600;
  font-size: 0.9rem;
  line-height: 1.4;
  color: var(--white);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.history-section,
.split-grid > .card,
.faq-section {
  margin-top: 16px;
}
.history-section {
  padding: 18px;
}
.split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 16px;
}

.featured-blog {
  margin-top: 28px;
  display: grid;
  gap: 14px;
}
.trending-terms {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.home-trending {
  margin-top: 16px;
  padding: 14px;
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.trending-terms--hero {
  margin-top: 14px;
}
.trending-terms span,
.trending-terms a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.76rem;
  font-weight: 900;
}
.trending-terms span {
  color: rgba(255, 255, 255, 0.7);
  padding: 0 10px;
  background: rgba(11, 17, 32, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.trending-terms a {
  min-width: 44px;
  padding: 0 11px;
  color: #fef3c7;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.44);
}
.trending-terms a:hover {
  background: rgba(249, 115, 22, 0.28);
  border-color: rgba(249, 115, 22, 0.7);
}

.lottery-strip {
  padding: 18px 20px;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.28), rgba(11, 17, 32, 0.94));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
}
.lottery-strip__head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.lottery-strip__head > div {
  display: grid;
  gap: 2px;
}
.lottery-strip__head span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
}
.lottery-strip__head strong {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--white);
  letter-spacing: -0.01em;
}
.lottery-strip__head small {
  color: var(--muted);
  font-size: 0.72rem;
  margin-top: 2px;
}
.lottery-strip__body {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.9fr);
  gap: 18px;
  align-items: center;
}
.lottery-strip__digits {
  display: grid;
  gap: 4px;
}
.lottery-strip__digits-label {
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.digits--strip {
  margin: 0;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 5px;
}
.digits--strip span {
  font-size: clamp(1.1rem, 2.2vw, 1.6rem);
  aspect-ratio: 1 / 1.05;
}
.lottery-strip__chips {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}
.lottery-strip__chip {
  padding: 10px 12px;
  border-radius: var(--radius);
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.18);
}
.lottery-strip__chip span {
  display: block;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}
.lottery-strip__chip strong {
  display: block;
  margin-top: 3px;
  font-family: var(--font-mono);
  font-size: 1.02rem;
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.04em;
}
.lottery-strip__chip--orange {
  background: rgba(249, 115, 22, 0.12);
  border-color: rgba(249, 115, 22, 0.28);
}
.lottery-strip__chip--orange strong {
  color: var(--orange);
  font-size: 1.4rem;
}
.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}
.section-head h2 {
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}
.section-head p {
  margin-top: 4px;
  color: var(--muted);
  font-size: 0.88rem;
}

.faq-section {
  padding: 22px;
}
.faq-section .section-head {
  margin-bottom: 18px;
}
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(11, 17, 32, 0.55);
  transition: border-color 0.15s, background 0.15s;
}
.faq-item[open] {
  border-color: rgba(37, 99, 235, 0.34);
  background: rgba(37, 99, 235, 0.08);
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--white);
  border-radius: var(--radius);
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '+';
  color: var(--orange);
  font-weight: 800;
  font-size: 1.1rem;
}
.faq-item[open] summary::after {
  content: '−';
}
.faq-item summary strong {
  font-weight: 700;
}
.faq-item summary span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 500;
}
.faq-item p {
  padding: 0 16px 16px;
  margin: -4px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: none;
}

.ad-slot {
  display: block;
  margin: 16px 0;
  padding: 0;
  text-align: center;
  min-height: 50px;
}
.ad-slot--sidebar {
  margin: 0;
}
.ad-slot ins,
.ad-slot iframe,
.ad-slot img {
  max-width: 100%;
  height: auto;
}

.affiliate-banner {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  margin: 16px 0;
  padding: 8px;
  background: rgba(17, 24, 39, 0.7);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.affiliate-banner img {
  width: 100%;
  height: auto;
  border-radius: 6px;
  display: block;
}
.affiliate-banner__label {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(11, 17, 32, 0.78);
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.affiliate-banner--footer {
  width: min(1180px, calc(100% - 32px));
  margin: 16px auto;
}

.search-section {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}
.search-draw-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.search-draw-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.search-draw-card:hover {
  transform: translateY(-2px);
  border-color: rgba(249, 115, 22, 0.45);
}
.search-draw-card small,
.search-draw-card span {
  color: var(--muted);
  font-size: 0.82rem;
}
.search-draw-card strong {
  color: #f3c15f;
  font-family: var(--font-mono);
  font-size: 1.55rem;
  letter-spacing: 0.04em;
}

.subscribe-block {
  display: grid;
  grid-template-columns: 64px 1fr;
  align-items: center;
  gap: 12px;
  padding: 12px;
  margin-top: 4px;
  background: linear-gradient(135deg, rgba(6, 199, 85, 0.18), rgba(17, 24, 39, 0.88));
  border: 1px solid rgba(6, 199, 85, 0.34);
  border-radius: var(--radius);
  color: var(--white);
}
.subscribe-block:hover {
  border-color: rgba(6, 199, 85, 0.58);
}
.subscribe-block__qr {
  width: 64px;
  height: 64px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.92);
}
.subscribe-block__body {
  display: grid;
  gap: 2px;
}
.subscribe-block__body small {
  color: #6ee7b7;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.subscribe-block__body strong {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.4;
}
.subscribe-block__body em {
  color: #6ee7b7;
  font-style: normal;
  font-weight: 700;
  font-size: 0.8rem;
}

.sponsor-badge {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.34);
  color: var(--orange);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.sponsor-disclosure {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-left: 3px solid var(--orange);
  background: rgba(249, 115, 22, 0.08);
  color: #fed7aa;
  font-size: 0.84rem;
  border-radius: 0 var(--radius) var(--radius) 0;
}

.cookie-banner {
  position: fixed;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  background: rgba(11, 17, 32, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(12px);
  color: var(--white);
  transform: translateY(0);
  transition: transform 0.22s ease-out, opacity 0.22s ease-out;
}
.cookie-banner--hide {
  transform: translateY(120%);
  opacity: 0;
  pointer-events: none;
}
.cookie-banner__body {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.cookie-banner__body strong {
  font-size: 0.94rem;
  font-weight: 700;
}
.cookie-banner__body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.84rem;
  line-height: 1.55;
}
.cookie-banner__body a {
  color: var(--orange);
  font-weight: 700;
}
.cookie-banner__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}
.cookie-banner__btn {
  height: 38px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 0;
  font-weight: 700;
  font-size: 0.86rem;
  cursor: pointer;
  font-family: inherit;
}
.cookie-banner__btn--primary {
  background: var(--orange);
  color: var(--white);
}
.cookie-banner__btn--primary:hover {
  background: #ea6a0c;
}
.cookie-banner__btn--ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.78);
}
.cookie-banner__btn--ghost:hover {
  border-color: var(--border);
  background: rgba(255, 255, 255, 0.06);
}
@media (max-width: 640px) {
  .cookie-banner {
    grid-template-columns: 1fr;
    bottom: 88px;
  }
  .cookie-banner__actions {
    justify-content: flex-end;
  }
}
.card {
  padding: 18px;
}
.card,
.blog-card,
.news-hero__feature,
.news-rail__item,
.lotto-mini,
.lottery-strip {
  will-change: transform;
}
.card-header {
  margin-bottom: 14px;
}
.card-header a,
.card-header span,
.table-link,
.primary-link {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.82rem;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}
th,
td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
th {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.mono {
  font-family: var(--font-mono);
  font-weight: 700;
  color: #93c5fd;
  letter-spacing: 0.04em;
}

.stat-list,
.news-card {
  display: grid;
  gap: 10px;
}
.stat-row {
  display: grid;
  grid-template-columns: 22px 30px 1fr 54px;
  align-items: center;
  gap: 8px;
}
.stat-row > span {
  color: var(--muted);
  font-size: 0.76rem;
}
.stat-row strong {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius);
  background: rgba(249, 115, 22, 0.16);
  color: var(--orange);
  font-family: var(--font-mono);
  font-weight: 700;
}
.bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(241, 245, 249, 0.08);
}
.bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--blue);
}
.news-item {
  display: grid;
  grid-template-columns: 76px 1fr;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.news-item:last-child {
  border-bottom: 0;
}
.news-thumb {
  width: 76px;
  height: 54px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background-color: rgba(255, 255, 255, 0.04);
  background-position: center;
  background-size: cover;
}
.news-item span:last-child {
  display: grid;
  gap: 3px;
}
.news-item strong {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--white);
}
.news-item small,
.stat-row small,
footer span,
dd,
dt {
  color: var(--muted);
  font-size: 0.78rem;
}

.page-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 42px;
}
.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--orange);
  font-weight: 700;
  font-size: 0.88rem;
}
.detail-result {
  margin-bottom: 18px;
}

.legal-card {
  display: grid;
  gap: 18px;
}
.legal-card h1 {
  font-size: clamp(1.6rem, 4vw, 2.4rem);
  line-height: 1.2;
}
.legal-card p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.75;
}
.legal-head {
  display: grid;
  gap: 4px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.legal-head .source-note {
  font-size: 0.84rem;
}
.legal-section {
  display: grid;
  gap: 10px;
  padding: 4px 0;
}
.legal-section h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 700;
  color: #bfdbfe;
}
.legal-step {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.2);
  color: #93c5fd;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  font-weight: 700;
}
.legal-section ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.7;
}
.legal-section li {
  max-width: 760px;
}
.legal-section a {
  color: var(--orange);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.legal-section strong {
  color: var(--white);
  font-weight: 700;
}
.legal-section--warn {
  padding: 18px;
  border-left: 3px solid rgba(249, 115, 22, 0.6);
  background: rgba(249, 115, 22, 0.08);
  border-radius: var(--radius);
}
.legal-section--warn p {
  color: #fed7aa;
}
.legal-section--warn strong {
  color: #fff7ed;
}
.legal-step--warn {
  background: rgba(249, 115, 22, 0.22);
  color: #fed7aa;
}

.blog-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 42px;
}
.blog-hero {
  margin-bottom: 18px;
  padding: 24px;
  background: rgba(17, 24, 39, 0.86);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.blog-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.15;
}
.blog-hero p {
  margin-top: 8px;
  max-width: 680px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.blog-search {
  display: flex;
  gap: 8px;
  margin-top: 16px;
  flex-wrap: nowrap;
  align-items: stretch;
}
.blog-search input[type=search] {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 17, 32, 0.78);
  color: var(--white);
  font-size: 0.94rem;
  outline: none;
}
.blog-search input[type=search]:focus {
  border-color: var(--blue);
  box-shadow: var(--focus);
}
.blog-search .primary-button {
  flex: 0 0 96px;
  min-width: 96px;
  padding: 0 18px;
  white-space: nowrap;
}
.blog-search .secondary-button {
  flex: 0 0 auto;
  height: 44px;
  padding: 0 16px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.06);
  color: var(--white);
  font-weight: 700;
  font-size: 0.88rem;
  display: inline-flex;
  align-items: center;
}
.blog-search__meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.86rem;
}

.pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: center;
  margin: 20px 0 0;
}
.pagination__item {
  display: inline-grid;
  place-items: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: rgba(17, 24, 39, 0.7);
  color: rgba(255, 255, 255, 0.78);
  font-weight: 700;
  font-size: 0.88rem;
}
.pagination__item:hover {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.34);
  color: var(--white);
}
.pagination__item--current {
  background: var(--orange);
  border-color: var(--orange);
  color: var(--white);
}

.related-section {
  margin-top: 22px;
}
.blog-card {
  overflow: hidden;
  display: grid;
  grid-template-rows: auto 1fr;
  min-height: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.blog-card:hover {
  transform: translateY(-2px);
  border-color: rgba(37, 99, 235, 0.34);
  box-shadow: var(--shadow-hover);
}
.blog-card__image {
  display: block;
  aspect-ratio: 16 / 9;
  background-position: center;
  background-size: cover;
  background-color: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid var(--line);
}
.blog-card__body {
  display: grid;
  gap: 6px;
  padding: 14px;
}
.blog-card small,
.article-meta {
  color: var(--orange);
  font-size: 0.74rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.blog-card strong {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.4;
}
.blog-card em {
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  font-style: normal;
  line-height: 1.5;
}

.article-shell {
  width: min(1040px, calc(100% - 32px));
  margin: 0 auto;
  padding: 84px 0 42px;
}
.article-card {
  padding: clamp(24px, 3.2vw, 38px);
  background: var(--surface-strong);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.article-hero {
  position: relative;
  display: grid;
  grid-template-rows: 1fr auto 1fr;
  justify-items: center;
  align-items: center;
  min-height: clamp(430px, 58vw, 620px);
  margin-bottom: 24px;
  padding: clamp(22px, 4vw, 48px);
  overflow: hidden;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(11, 17, 32, 0.96), rgba(11, 17, 32, 0.82)),
    var(--surface);
  box-shadow: var(--shadow);
}
.article-hero--cover {
  background-position: center;
  background-size: cover;
}
.article-hero--cover::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(11, 17, 32, 0.72), rgba(11, 17, 32, 0.9) 34%, rgba(11, 17, 32, 0.9) 66%, rgba(11, 17, 32, 0.72)),
    linear-gradient(180deg, rgba(11, 17, 32, 0.42), rgba(11, 17, 32, 0.84));
}
.article-hero--cover::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: inherit;
  pointer-events: none;
}
.article-hero__copy {
  position: relative;
  z-index: 1;
  grid-row: 2;
  min-width: 0;
  width: min(760px, 100%);
  text-align: center;
  display: grid;
  justify-items: center;
}
.article-card h1 {
  max-width: 920px;
  margin: 12px 0 14px;
  font-size: clamp(2.25rem, 5vw, 4.8rem);
  line-height: 1.08;
  font-weight: 900;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 3px 24px rgba(0, 0, 0, 0.44);
}
.article-excerpt {
  max-width: 700px;
  margin-inline: auto;
  color: rgba(255, 255, 255, 0.78);
  font-size: 1.04rem;
  line-height: 1.7;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.42);
}
.article-number-strip {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  max-width: none;
  margin-top: 0;
}
.article-number-strip--below {
  justify-content: flex-start;
  margin: 22px 0 6px;
  padding: 14px;
  border: 1px solid rgba(37, 99, 235, 0.24);
  border-radius: var(--radius);
  background: rgba(30, 58, 138, 0.14);
}
.article-number-strip span,
.article-number-strip a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
}
.article-number-strip span {
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(11, 17, 32, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.article-number-strip a {
  min-width: 48px;
  padding: 0 12px;
  color: #fef3c7;
  background: rgba(249, 115, 22, 0.18);
  border: 1px solid rgba(249, 115, 22, 0.46);
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.22);
  transition: transform 0.14s ease, background 0.14s ease, border-color 0.14s ease;
}
.article-number-strip a:hover {
  transform: translateY(-1px);
  background: rgba(249, 115, 22, 0.28);
  border-color: rgba(249, 115, 22, 0.7);
}
.article-share-panel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 10px 0 6px;
}
.article-share-label {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(11, 17, 32, 0.52);
  color: rgba(255, 255, 255, 0.74);
  font-family: var(--font-display);
  font-size: 0.78rem;
  font-weight: 900;
}
.article-share-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(249, 115, 22, 0.46);
  border-radius: 999px;
  background: rgba(249, 115, 22, 0.16);
  color: var(--white);
  padding: 0 14px;
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.18);
  transition: transform 0.16s ease, background 0.16s ease, border-color 0.16s ease;
}
.article-share-button:hover {
  transform: translateY(-1px);
  background: rgba(249, 115, 22, 0.28);
  border-color: rgba(249, 115, 22, 0.72);
}
.article-share-button--facebook {
  border-color: rgba(59, 130, 246, 0.58);
  background: rgba(37, 99, 235, 0.22);
}
.article-share-button--facebook:hover {
  background: rgba(37, 99, 235, 0.36);
  border-color: rgba(96, 165, 250, 0.84);
}
.article-share-button--line {
  border-color: rgba(34, 197, 94, 0.58);
  background: rgba(22, 163, 74, 0.2);
}
.article-share-button--line:hover {
  background: rgba(22, 163, 74, 0.34);
  border-color: rgba(74, 222, 128, 0.84);
}
.article-share-button--copy {
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.08);
}
.article-share-button--copy:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}
.article-floating-actions {
  position: fixed;
  right: clamp(12px, 3vw, 24px);
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 32;
  display: grid;
  justify-items: end;
  gap: 8px;
  pointer-events: none;
}
.article-fab {
  pointer-events: auto;
  min-width: 48px;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(17, 24, 39, 0.9);
  color: var(--white);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  cursor: pointer;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 900;
  transition: transform 0.16s ease, background 0.16s ease, opacity 0.16s ease;
}
.article-fab:hover {
  transform: translateY(-1px);
  background: rgba(30, 58, 138, 0.94);
}
.article-fab--top {
  width: 44px;
  min-width: 44px;
  opacity: 0;
  transform: translateY(8px);
}
.article-fab--top.is-visible {
  opacity: 1;
  transform: translateY(0);
}
.article-share-status {
  min-height: 0;
  max-width: 220px;
  padding: 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(11, 17, 32, 0.9);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: var(--shadow);
}
.article-share-panel.has-status .article-share-status {
  padding: 8px 10px;
}
.article-body {
  display: grid;
  gap: 13px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 1.02rem;
  line-height: 1.85;
}
.article-body h2,
.article-body h3 {
  margin-top: 12px;
  color: var(--white);
  font-weight: 700;
}
.article-body h2 {
  font-size: 1.34rem;
}
.article-body h3 {
  font-size: 1.12rem;
}
.article-body p,
.article-body li {
  max-width: 880px;
}
.article-body ul,
.article-body ol {
  display: grid;
  gap: 6px;
  padding-left: 22px;
}
.article-body strong {
  color: #bfdbfe;
  font-weight: 700;
}
.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid var(--line);
}
.article-body a,
.article-source a {
  color: var(--orange);
  font-weight: 700;
}
.article-body hr {
  width: 100%;
  height: 1px;
  border: 0;
  background: var(--line);
}
.article-source {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 22px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}
code {
  padding: 2px 6px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.08);
  color: #bfdbfe;
  font-family: var(--font-mono);
  font-size: 0.84rem;
}
footer {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 24px 16px 86px;
  color: var(--white);
  font-size: 0.85rem;
}
footer strong {
  font-weight: 700;
}
footer a {
  color: var(--orange);
  font-size: 0.84rem;
  font-weight: 700;
}
.mobile-nav {
  display: none;
}

.article-toc {
  margin: 18px 0 20px;
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 235, 0.26);
  border-radius: var(--radius);
  background: rgba(30, 58, 138, 0.18);
}
.article-toc__head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 10px;
}
.article-toc__head strong {
  color: var(--white);
  font-size: 0.98rem;
  font-weight: 700;
}
.article-toc__head span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 600;
}
.article-toc ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding-left: 20px;
}
.article-toc li {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.95rem;
}
.article-toc li.level-h3 {
  margin-left: 16px;
  font-size: 0.88rem;
}
.article-toc a {
  color: #bfdbfe;
  font-weight: 600;
}
.article-toc a:hover {
  color: var(--orange);
}
.article-body h2,
.article-body h3 {
  scroll-margin-top: 84px;
}

@media (max-width: 880px) {
  .topbar nav {
    display: none;
  }
  .topbar-search {
    width: min(220px, 52vw);
  }
  .topbar-search button {
    width: 34px;
    padding: 0;
    overflow: hidden;
    color: transparent;
    position: relative;
  }
  .topbar-search button::after {
    content: '⌕';
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: var(--white);
    font-size: 1rem;
  }
  main {
    width: min(100% - 24px, 680px);
    padding-top: 78px;
  }
  .hero,
  .content-grid,
  .blog-grid {
    grid-template-columns: 1fr;
  }
  .result-title {
    display: grid;
  }
  .result-meta {
    justify-items: start;
  }
  h1 {
    font-size: clamp(1.6rem, 6.5vw, 2rem);
  }
  .digits {
    grid-template-columns: repeat(6, 1fr);
    gap: 5px;
  }
  .digits span {
    font-size: 1.2rem;
  }
  .prize-grid {
    grid-template-columns: 1fr;
  }
  .tier-summary {
    grid-template-columns: repeat(2, 1fr);
  }
  .news-strip {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
  .news-strip__headline {
    grid-template-columns: 1fr;
  }
  .news-strip__headline strong {
    white-space: normal;
  }
  .cal-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .hotcold {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .news-hero {
    grid-template-columns: 1fr;
  }
  .news-hero__title {
    font-size: clamp(1.4rem, 5vw, 1.8rem);
  }
  .news-rail {
    grid-template-columns: 1fr;
  }
  .lotto-mini__chips {
    grid-template-columns: 1fr;
  }
  .lotto-mini__chips > div {
    text-align: left;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: center;
  }
  .lotto-mini__chips strong {
    margin: 0;
    text-align: right;
  }
  .lottery-strip__body {
    grid-template-columns: 1fr;
  }
  .lottery-strip__chips {
    grid-template-columns: repeat(2, 1fr);
  }
  .search-draw-grid {
    grid-template-columns: 1fr;
  }
  .split-grid {
    grid-template-columns: 1fr;
  }
  .faq-grid {
    grid-template-columns: 1fr;
  }
  .section-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .blog-search {
    display: grid;
    grid-template-columns: 1fr;
  }
  .blog-search input[type=search],
  .blog-search .primary-button,
  .blog-search .secondary-button {
    width: 100%;
  }
  .blog-search .primary-button,
  .blog-search .secondary-button {
    justify-content: center;
  }
  .tier-cta {
    grid-column: 1 / -1;
    text-align: center;
  }
  .tier-grid {
    grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  }
  table {
    font-size: 0.82rem;
  }
  .article-card {
    padding: 20px;
  }
  .article-hero {
    min-height: 460px;
    padding: 20px;
    background-position: center top;
  }
  .article-hero--cover::before {
    background:
      linear-gradient(180deg, rgba(11, 17, 32, 0.48) 0%, rgba(11, 17, 32, 0.84) 44%, rgba(11, 17, 32, 0.96) 100%),
      linear-gradient(90deg, rgba(11, 17, 32, 0.62), rgba(11, 17, 32, 0.42), rgba(11, 17, 32, 0.62));
  }
  .article-card h1 {
    font-size: clamp(1.9rem, 9.4vw, 2.85rem);
  }
  .article-excerpt {
    font-size: 0.96rem;
    line-height: 1.62;
  }
  .article-number-strip {
    gap: 6px;
  }
  .article-number-strip span,
  .article-number-strip a {
    min-height: 32px;
    font-size: 0.74rem;
  }
  .article-number-strip a {
    min-width: 44px;
    padding: 0 10px;
  }
  .article-share-panel {
    justify-content: flex-start;
  }
  .article-share-label {
    width: 100%;
    justify-content: center;
  }
  .article-share-button {
    flex: 1 1 calc(50% - 6px);
    min-width: 132px;
  }
  .article-floating-actions {
    right: 12px;
    bottom: max(88px, env(safe-area-inset-bottom));
  }
  .article-fab {
    min-height: 42px;
  }
  .article-toc__head {
    display: grid;
  }
  .article-toc li.level-h3 {
    margin-left: 8px;
  }
  .article-source,
  footer {
    display: grid;
    text-align: center;
  }
  .mobile-nav {
    position: fixed;
    left: 12px;
    right: 12px;
    bottom: 12px;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    background: rgba(17, 24, 39, 0.94);
    box-shadow: var(--shadow);
    backdrop-filter: blur(16px);
  }
  .mobile-nav a {
    padding: 12px 8px;
    color: rgba(255, 255, 255, 0.72);
    text-align: center;
    font-size: 0.78rem;
    font-weight: 600;
  }
}

.error-card .legal-head h1 {
  font-size: clamp(2rem, 6vw, 3rem);
  background: linear-gradient(135deg, #fca5a5, #fcd34d);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.error-card .legal-head .source-note {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(252, 165, 165, 0.85);
  font-weight: 700;
}
.error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  padding-top: 4px;
}
.error-actions .primary-link {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  padding: 10px 16px;
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.2s ease;
}
.error-actions .primary-link:hover {
  background: rgba(255, 255, 255, 0.12);
  transform: translateY(-1px);
}
