﻿:root {
  --page-bg: #f6ebcf;
  --page-glow: #fff8df;
  --ink: #1f252b;
  --muted: #52606b;
  --paper: #ffffff;
  --line: #d3c7aa;
  --table-head: #584b2d;
  --dark-head: #2f2f2f;
  --danger: #d00000;
  --blue: #3128ff;
  --green: #007a05;
  --yellow: #ffcc00;
  --shadow: 0 8px 18px rgba(42, 34, 14, 0.34);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 232, 0.82), transparent 34rem),
    linear-gradient(90deg, #f1dfb7 0%, var(--page-glow) 50%, #f1dfb7 100%);
  overflow-x: hidden;
}

body,
.site,
.site-content,
.inside-article,
.content-area,
.entry-content {
  background: var(--page-bg);
}

.sidebar .widget,
.comments-area,
.page-header,
.site-footer {
  background: #fff8e8;
}

.footer-widgets,
.footer-widgets-container,
.site-info {
  display: none !important;
}

.lucky4dnow-board {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 1px 0 34px;
  color: var(--ink);
  font-family: Arial, Helvetica, sans-serif;
  background:
    radial-gradient(circle at 50% 0, rgba(255, 255, 232, 0.82), transparent 34rem),
    linear-gradient(90deg, #f1dfb7 0%, var(--page-glow) 50%, #f1dfb7 100%);
  overflow-x: hidden;
}

.l4dn-inline-menu {
  width: min(1600px, calc(100% - 32px));
  margin: 0 auto 14px;
  background: #c90000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.22);
  position: sticky;
  top: 0;
  z-index: 40;
}

.l4dn-inline-menu-inner {
  min-height: 48px;
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
}

.l4dn-inline-menu a,
.l4dn-inline-menu button {
  appearance: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
}

.l4dn-inline-menu a:hover,
.l4dn-inline-menu button:hover,
.l4dn-menu-item:focus-within > button {
  background: #9f0000;
}

.l4dn-menu-item {
  position: relative;
  display: inline-flex;
}

.l4dn-menu-item > button::after {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid transparent;
  border-right: 5px solid transparent;
  border-top: 6px solid #fff;
  margin-left: 8px;
}

.l4dn-submenu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 300px;
  background: #fff8e8;
  border: 1px solid #d3c7aa;
  box-shadow: 0 8px 18px rgba(42, 34, 14, 0.28);
  display: none;
  padding: 6px 0;
}

.l4dn-menu-item:hover .l4dn-submenu,
.l4dn-menu-item:focus-within .l4dn-submenu {
  display: block;
}

.l4dn-submenu a {
  color: var(--ink);
  display: flex;
  justify-content: flex-start;
  min-height: auto;
  padding: 11px 16px;
  font-size: 16px;
  font-weight: 700;
  white-space: normal;
}

.l4dn-submenu a:hover {
  background: #f1dfb7;
  color: #000;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input {
  font: inherit;
}

.l4dn-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: #c90000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.24);
}

.l4dn-header-inner,
.board-shell,
.home-section,
.tools-grid,
.crawler-panel,
.disclaimer,
.l4dn-site-footer .l4dn-footer-inner {
  width: min(1600px, calc(100% - 32px));
  margin-inline: auto;
}

.l4dn-header-inner {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.l4dn-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}

.l4dn-brand-badge {
  width: 42px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 3px solid #fff;
  border-radius: 6px;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
}

.l4dn-brand strong,
.l4dn-brand small {
  display: block;
}

.l4dn-brand small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
}

.l4dn-top-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.l4dn-top-nav a,
.l4dn-nav-dropdown summary {
  padding: 10px 12px;
  border-radius: 4px;
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
  white-space: nowrap;
}

.l4dn-nav-dropdown {
  position: relative;
}

.l4dn-nav-dropdown summary::-webkit-details-marker {
  display: none;
}

.l4dn-nav-dropdown summary::after {
  content: "â–¾";
  margin-left: 6px;
  font-size: 11px;
}

.l4dn-top-nav a:hover,
.l4dn-nav-dropdown summary:hover,
.l4dn-nav-dropdown[open] summary {
  background: rgba(255, 255, 255, 0.14);
}

.l4dn-nav-menu {
  position: absolute;
  top: calc(100% + 7px);
  right: 0;
  z-index: 50;
  width: 270px;
  padding: 7px;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
}

.l4dn-nav-menu a {
  display: block;
  padding: 9px 10px;
  color: #18212a;
  font-size: 14px;
}

.l4dn-nav-menu a:hover {
  background: #f1e7c3;
}

.board-shell {
  padding: 18px 0 10px;
}

.result-title-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 62px;
  padding: 12px 16px;
  background: var(--dark-head);
  color: #fff;
  text-align: left;
}

.result-title-bar h1 {
  margin: 0;
  font-size: 27px;
  line-height: 1.1;
  letter-spacing: 0;
  text-shadow: 1px 1px #000;
}

.eyebrow {
  margin: 0 0 4px;
  color: #f1d989;
  font-size: 14px;
  font-weight: 800;
}

.update-box {
  min-width: 250px;
  padding: 9px 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(0, 0, 0, 0.18);
  text-align: right;
}

.update-box span,
.quick-summary span {
  display: block;
  color: #e8e8e8;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.update-box strong {
  display: block;
  margin-top: 3px;
  font-size: 14px;
}

.result-title-bar p:not(.eyebrow) {
  margin: 0;
  color: #e8e8e8;
  font-size: 14px;
}

.quick-summary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-left: 1px solid rgba(88, 75, 45, 0.24);
  border-bottom: 1px solid rgba(88, 75, 45, 0.24);
  background: rgba(255, 255, 255, 0.82);
}

.quick-summary div {
  min-height: 70px;
  padding: 12px 14px;
  border-right: 1px solid rgba(88, 75, 45, 0.24);
}

.quick-summary span {
  color: #5b5342;
}

.quick-summary strong {
  display: block;
  margin-top: 6px;
  font-size: 19px;
}

.market-tabs {
  display: none;
  flex-wrap: wrap;
  gap: 3px;
  margin-top: 12px;
}

.market-tab {
  min-height: 48px;
  border: 0;
  border-radius: 4px 4px 0 0;
  padding: 0 18px;
  background: rgba(255, 255, 255, 0.6);
  color: #222;
  font-size: 22px;
  cursor: pointer;
}

.market-tab.is-active {
  background: #463820;
  color: #fff;
  font-weight: 700;
}

.notice-strip {
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(88, 75, 45, 0.24);
  color: #4b4436;
  font-size: 14px;
}

.ad-slot {
  display: grid;
  place-items: center;
  min-height: 72px;
  margin-top: 10px;
  border: 1px dashed rgba(88, 75, 45, 0.45);
  background: rgba(255, 255, 255, 0.72);
  color: #6d624d;
  font-weight: 800;
}

.results-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 12px;
  padding: 12px 0 16px;
}

.result-card {
  min-width: 0;
  overflow: hidden;
  background: var(--paper);
  border: 6px solid #f3f3f3;
  box-shadow: var(--shadow);
  align-self: start;
}

.provider-header {
  display: grid;
  grid-template-columns: 112px 1fr;
  align-items: center;
  min-height: 78px;
  color: #fff;
}

.result-card.toto-lotto-card .provider-header,
.result-card.sabah-lotto-card .provider-header {
  grid-template-columns: 104px 1fr;
  min-height: 64px;
}

.provider-header.magnum,
.provider-header.magnum-gold,
.provider-header.magnum-life {
  background: var(--yellow);
  color: #263000;
}

.provider-header.damacai,
.provider-header.damacai-3d {
  background: #080078;
}

.provider-header.toto,
.provider-header.toto-fireball,
.provider-header.toto-5d,
.provider-header.toto-6d,
.provider-header.toto-lotto {
  background: #bd0007;
}

.provider-header.grand-dragon {
  background: #f60000;
}

.result-card.grand-dragon-card .provider-header {
  grid-template-columns: 116px 1fr;
  min-height: 66px;
}

.provider-header.sabah,
.provider-header.sabah-3d,
.provider-header.sabah-lotto {
  background: #322cff;
}

.provider-header.sandakan {
  background: var(--yellow);
  color: #07520a;
}

.provider-header.cashsweep {
  background: #008000;
}

.provider-header.singapore,
.provider-header.singapore-toto {
  background: #118ed0;
}

.logo-box {
  min-height: 78px;
  display: grid;
  place-items: center;
  padding: 6px;
}

.logo-mark {
  width: 76px;
  min-height: 54px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: #fff;
  color: #111;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  text-align: center;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.08);
}

.logo-mark small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 800;
}

.logo-mark.damacai {
  color: #18356e;
}

.logo-mark.magnum {
  background: #050505;
  color: #ffea00;
  font-size: 24px;
  font-style: italic;
}

.logo-mark.toto {
  color: #d00000;
  font-size: 32px;
}

.logo-mark.dragon {
  color: #d80000;
  font-size: 28px;
}

.logo-mark.sabah {
  color: #ff1818;
  font-size: 34px;
}

.logo-mark.sandakan {
  color: #0c8d38;
  font-size: 25px;
}

.logo-mark.cash {
  color: #007a05;
  font-size: 20px;
}

.logo-mark.sg {
  background: #087dc8;
  color: #fff;
  font-size: 38px;
}

.provider-title {
  padding: 7px 10px 7px 0;
}

.provider-title h2 {
  margin: 0 0 4px;
  font-size: 25px;
  line-height: 1.06;
  letter-spacing: 0;
}

.result-card.grand-dragon-card .provider-title h2 {
  font-size: 23px;
}

.result-card.grand-dragon-card .provider-title p {
  font-size: 18px;
}

.result-card.grand-dragon-card .logo-box {
  min-height: 66px;
}

.result-card.grand-dragon-card .logo-mark {
  width: 72px;
  min-height: 50px;
}

.result-card.grand-dragon-card .top-prize-label {
  padding: 6px 4px;
  font-size: 19px;
}

.result-card.grand-dragon-card .top-prize-number {
  padding: 3px 4px 5px;
  font-size: 39px;
}

.result-card.grand-dragon-card .section-head {
  padding: 7px 4px;
  font-size: 22px;
}

.result-card.grand-dragon-card .number-cell {
  min-height: 47px;
  font-size: 29px;
}

.provider-header.toto-lotto .provider-title h2 {
  font-size: 24px;
}

.provider-header.toto-lotto .provider-title p {
  font-size: 18px;
}

.provider-title p {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.source-link {
  display: none !important;
  margin-top: 5px;
  color: inherit;
  font-size: 13px;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.provider-title .source-link,
.provider-title a.source-link,
.provider-title a[href*="magnum"],
.provider-title a[href*="damacai"],
.provider-title a[href*="sportstoto"],
.provider-title a[href*="singaporepools"],
.provider-title a[href*="diriwan88"],
.provider-title a[href*="stc4d"],
.provider-title a[href*="cashsweep"],
.provider-title a[href*="gdlotto"] {
  display: none !important;
}

.status-note {
  display: inline-block;
  margin-top: 5px;
  padding: 3px 6px;
  background: rgba(255, 255, 255, 0.86);
  color: #4b3a12;
  font-size: 12px;
  font-weight: 800;
}

.meta-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px;
  font-size: 18px;
}

.date-pill {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid #8d9ba8;
  border-radius: 5px;
  color: #5c6b78;
}

.draw-no {
  text-align: right;
}

.top-prizes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.top-prize-label,
.top-prize-number,
.result-row-label,
.result-row-number {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  text-align: center;
}

.top-prize-label {
  padding: 8px 4px;
  background: var(--table-head);
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}

.top-prize-number {
  padding: 4px 4px 6px;
  background: #fff;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.04;
  font-variant-numeric: tabular-nums;
}

.six-digit .top-prize-number {
  font-size: 34px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.six-digit .number-cell {
  font-size: 29px;
}

.classic-layout {
  display: grid;
  grid-template-columns: 216px 1fr;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}

.result-row-label {
  display: grid;
  place-items: center;
  min-height: 70px;
  padding: 6px;
  background: var(--dark-head);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
}

.result-row-number {
  min-height: 70px;
  display: grid;
  place-items: center;
  background: #fff;
  font-size: 44px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.section-head {
  padding: 9px 6px;
  background: var(--dark-head);
  color: #fff;
  text-align: center;
  font-size: 21px;
  font-weight: 800;
}

.number-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.number-cell {
  min-width: 0;
  overflow: hidden;
  min-height: 52px;
  display: grid;
  place-items: center;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 28px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.result-card.toto-lotto-card .section-head,
.result-card.sabah-lotto-card .section-head {
  padding: 6px 4px;
  font-size: 22px;
}

.result-card.toto-lotto-card .number-cell,
.result-card.sabah-lotto-card .number-cell {
  min-height: 37px;
  font-size: 24px;
}

.result-card.sabah-lotto-card .logo-box {
  min-height: 64px;
}

.result-card.sabah-lotto-card .logo-mark {
  width: 74px;
  min-height: 52px;
}

.result-card.sabah-lotto-card .provider-title h2 {
  font-size: 23px;
}

.result-card.sabah-lotto-card .provider-title p {
  font-size: 17px;
}

.number-cell.empty {
  color: #111;
  letter-spacing: 0;
}

.jackpot-table,
.lotto-prize-table,
.lotto-table,
.wide-table {
  width: 100%;
  border-collapse: collapse;
}

.jackpot-table th,
.jackpot-table td,
.lotto-prize-table td,
.lotto-table th,
.lotto-table td,
.wide-table th,
.wide-table td {
  border: 1px solid var(--line);
  padding: 7px 10px;
  background: #fff;
  text-align: center;
  font-size: 19px;
}

.jackpot-table th,
.lotto-table th,
.wide-table th {
  background: var(--table-head);
  color: #fff;
  font-weight: 800;
}

.jackpot-table td:first-child,
.wide-table td.label {
  background: #d8ccb2;
  color: #000;
}

.result-card.toto-6d-card .wide-table td {
  padding: 6px 8px;
}

.result-card.toto-6d-card .wide-table td.label {
  width: 14%;
  color: #fff;
  background: var(--table-head);
}

.result-card.toto-6d-card .wide-table .wide-main-number {
  text-align: center;
  font-size: 31px;
  font-weight: 400;
  line-height: 1.1;
}

.result-card.toto-6d-card .wide-table .wide-row-main td.label {
  width: 14%;
}

.result-card.toto-6d-card .wide-table .wide-row-main .wide-main-number {
  width: 86%;
}

.result-card.magnum-gold-card .provider-header,
.result-card.magnum-life-card .provider-header {
  grid-template-columns: 112px 1fr;
  min-height: 66px;
}

.result-card.magnum-gold-card .logo-box,
.result-card.magnum-life-card .logo-box {
  min-height: 66px;
}

.result-card.magnum-gold-card .provider-title h2,
.result-card.magnum-life-card .provider-title h2 {
  font-size: 24px;
  line-height: 1.02;
}

.result-card.magnum-gold-card .provider-title p,
.result-card.magnum-life-card .provider-title p {
  font-size: 17px;
}

.formula-line {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  font-size: 24px;
  line-height: 1;
}

.formula-part {
  min-width: 42px;
  padding: 5px 8px;
  border: 1px solid var(--line);
  background: #fff;
  text-align: center;
}

.formula-plus {
  color: #7b8588;
  font-weight: 900;
}

.formula-options {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.formula-options .formula-line {
  min-height: 38px;
  border: 0;
}

.formula-or {
  display: grid;
  place-items: center;
  min-width: 28px;
  color: #000;
  font-size: 19px;
  font-weight: 900;
}

.magnum-gold-prize td {
  padding: 2px 8px;
  font-size: 20px;
  line-height: 1.12;
}

.result-card.magnum-life-card .section-head {
  padding: 7px 4px;
  font-size: 22px;
}

.result-card.magnum-life-card .number-cell {
  min-height: 42px;
  font-size: 25px;
}

.amount {
  color: var(--danger);
  font-weight: 800;
}

.lotto-draw-section + .lotto-draw-section {
  margin-top: 8px;
}

.lotto-line {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.lotto-line-6 {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.lotto-line-7 {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.lotto-line-8 {
  grid-template-columns: repeat(8, minmax(0, 1fr));
}

.result-card.toto-lotto-card .lotto-draw-section + .lotto-draw-section,
.result-card.sabah-lotto-card .lotto-draw-section + .lotto-draw-section {
  margin-top: 8px;
}

.result-card.toto-lotto-card .lotto-draw-section:last-child,
.result-card.sabah-lotto-card .lotto-draw-section:last-child {
  margin-bottom: 0;
}

.result-card.toto-lotto-card .lotto-prize-table td,
.result-card.sabah-lotto-card .lotto-prize-table td {
  padding: 2px 8px;
  font-size: 20px;
  line-height: 1.15;
}

.result-card.sabah-lotto-card .lotto-prize-table td:first-child {
  width: 38%;
}

.lotto-prize-table td:first-child {
  width: 36%;
  background: #d8ccb2;
  color: #000;
}

.home-section {
  margin-top: 16px;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}

.lucky-tool {
  max-width: 760px;
  margin-inline: auto;
}

.insight-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.tool-card,
.crawler-panel,
.source-panel,
.faq-section,
.disclaimer {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(88, 75, 45, 0.24);
  box-shadow: var(--shadow);
}

.tool-card {
  padding: 18px;
}

.tool-card h2,
.crawler-panel h2,
.source-panel h2,
.faq-section h2,
.disclaimer h2 {
  margin: 0 0 8px;
  font-size: 25px;
}

.tool-card p,
.crawler-panel p,
.source-panel p,
.faq-section p,
.disclaimer p {
  margin: 0 0 12px;
  color: #4d4d4d;
}

.lucky-tool {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 18px;
}

.lucky-picker {
  min-width: 280px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.lucky-number {
  min-height: 74px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 44px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.lucky-picker button {
  min-height: 74px;
  min-width: 132px;
  border: 0;
  border-radius: 4px;
  background: #c90000;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
}

.mini-result-list,
.hot-number-grid,
.url-list,
.crawler-steps,
.source-list {
  display: grid;
  gap: 7px;
}

.url-list span,
.url-list a,
.mini-result-list span,
.hot-number-grid span,
.source-list a,
.crawler-steps span {
  display: block;
  padding: 8px 10px;
  background: #fff;
  border: 1px solid var(--line);
}

.url-list span,
.url-list a,
.crawler-steps span {
  font-family: Consolas, "Courier New", monospace;
}

.mini-result-list span,
.hot-number-grid span,
.source-list a {
  font-weight: 800;
}

.mini-result-list small,
.source-list small {
  display: block;
  margin-top: 3px;
  color: #6d624d;
  font-weight: 400;
}

.hot-number-grid {
  grid-template-columns: repeat(4, 1fr);
}

.hot-number-grid span {
  text-align: center;
}

.hot-number-grid strong {
  display: block;
  font-size: 24px;
}

.small-note {
  margin-top: 10px !important;
  font-size: 13px;
}

.crawler-panel {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 16px;
  padding: 18px;
}

.source-panel {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: 20px;
  padding: 18px;
}

.source-list {
  grid-template-columns: repeat(2, 1fr);
}

.faq-section {
  padding: 18px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.faq-grid article {
  padding: 14px;
  border: 1px solid var(--line);
  background: #fff;
}

.faq-grid h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.disclaimer {
  margin-top: 16px;
  margin-bottom: 0;
  padding: 18px;
}

.l4dn-site-footer {
  width: min(1600px, calc(100% - 32px));
  margin: 0 auto 24px;
  padding: 18px 0 24px;
  background: rgba(47, 47, 47, 0.95);
  color: #fff;
}

.l4dn-footer-inner {
  width: min(100% - 32px, 1500px);
  margin-inline: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  font-weight: 800;
}

.l4dn-footer-inner > div {
  display: grid;
  gap: 4px;
}

.l4dn-footer-inner span {
  color: #f5df94;
  font-size: 14px;
}

.l4dn-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.l4dn-footer-links a {
  color: #fff;
  font-size: 15px;
  text-decoration: none;
}

.l4dn-footer-links a:hover {
  color: #f5df94;
  text-decoration: underline;
}

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

  .faq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 820px) {
  .l4dn-inline-menu {
    width: min(100% - 16px, 1600px);
    margin-bottom: 10px;
  }

  .l4dn-inline-menu-inner {
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .l4dn-inline-menu a,
  .l4dn-inline-menu button {
    min-height: 42px;
    padding: 0 12px;
    font-size: 15px;
  }

  .l4dn-menu-item {
    position: static;
  }

  .l4dn-submenu {
    left: 8px;
    right: 8px;
    width: auto;
  }

  .tools-grid,
  .insight-grid,
  .crawler-panel,
  .source-panel,
  .quick-summary,
  .source-list {
    grid-template-columns: 1fr;
  }

  .l4dn-header-inner,
  .result-title-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .update-box {
    width: 100%;
    text-align: left;
  }

  .l4dn-top-nav {
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .l4dn-nav-dropdown {
    position: static;
  }

  .l4dn-nav-menu {
    position: fixed;
    top: 58px;
    left: 8px;
    right: 8px;
    width: auto;
    max-height: min(70vh, 460px);
    overflow-y: auto;
  }

  .results-grid {
    grid-template-columns: 1fr;
  }

  .market-tab {
    flex: 1 1 46%;
    font-size: 18px;
  }

  .l4dn-footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .l4dn-footer-links {
    justify-content: flex-start;
  }

  .provider-header {
    grid-template-columns: 88px 1fr;
  }

  .logo-mark {
    width: 64px;
    min-height: 48px;
    font-size: 16px;
  }

  .provider-title h2 {
    font-size: 24px;
  }

  .provider-title p,
  .meta-row {
    font-size: 16px;
  }

  .top-prize-label {
    font-size: 16px;
  }

  .top-prize-number {
    font-size: 34px;
  }

  .classic-layout {
    grid-template-columns: 44% 56%;
  }

  .result-row-label {
    font-size: 18px;
  }

  .result-row-number {
    font-size: 38px;
  }

  .number-cell {
    min-height: 48px;
    font-size: 26px;
  }
}

@media (max-width: 520px) {
  .l4dn-header-inner,
  .board-shell,
  .home-section,
  .tools-grid,
  .crawler-panel,
  .source-panel,
  .faq-section,
  .disclaimer,
  .l4dn-site-footer .l4dn-footer-inner {
    width: min(100% - 16px, 1600px);
  }

  .result-title-bar h1 {
    font-size: 23px;
  }

  .hot-number-grid,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .number-cell {
    min-height: 44px;
    font-size: 23px;
  }

  .meta-row {
    grid-template-columns: 1fr;
  }

  .draw-no {
    text-align: left;
  }

  .lucky-tool,
  .lucky-picker {
    grid-template-columns: 1fr;
  }

  .lucky-picker {
    min-width: 0;
  }

  .lucky-picker button {
    min-height: 52px;
  }
}

