/* ============================================================
   Spacejeux — latest-results.css (latest-results.php)
   ============================================================ */

/* ---------- PAGE TITLE ---------- */
.lr-intro { background: var(--white); padding-block: 48px 16px; }
.lr-intro h1 { font-size: 36px; font-weight: 700; line-height: 1.2; color: #111b2d; }
.lr-intro p { margin-top: 16px; font-size: 16px; line-height: 1.3; color: #616b7a; }

/* ---------- SHARED SECTION HEAD (24px variant) ---------- */
.lr-head { display: grid; gap: 8px; }
.lr-head h2 { font-size: 24px; font-weight: 700; line-height: 1.25; color: #111b2d; }
.lr-head p { font-size: 14px; line-height: 1.3; color: #616b7a; }

/* ---------- LATEST DRAW RESULTS ---------- */
.lr-latest { background: var(--white); padding-block: 24px 48px; }
.lr-latest .lr-head { margin-bottom: 32px; }
.lr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.lr-card {
  background: var(--bg-soft); border-radius: 12px; padding: 24px;
  display: grid; gap: 16px; align-content: start;
}
.lr-card__top { display: grid; gap: 4px; }
.lr-card__top h3 { font-size: 18px; font-weight: 700; color: #111b2d; }
.lr-card__date { font-size: 13px; color: #616b7a; }

.lr-card__panel {
  background: var(--ink); border-radius: 8px; padding: 12px 16px;
  display: grid; gap: 8px;
}
.lr-card__panel-label {
  font-size: 11px; font-weight: 500; letter-spacing: 1px;
  color: rgba(255, 255, 255, .7);
}
.lr-card__balls { display: flex; flex-wrap: wrap; gap: 8px; }
.lr-ball {
  flex: none; width: 34px; height: 34px; border-radius: 50%;
  background: var(--white); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 15px; font-weight: 700;
}
.lr-card--daily .lr-card__panel { background: var(--night); }
.lr-card--daily .lr-ball { width: 38px; height: 38px; font-size: 18px; color: var(--night); }

.lr-card hr { border-color: var(--border); }

.lr-card__meta { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.lr-card__stat span {
  display: block; font-size: 11px; font-weight: 500; letter-spacing: .5px; color: #525e6e;
}
.lr-card__stat strong {
  display: block; margin-top: 2px;
  font-family: var(--font-display); font-size: 16px; font-weight: 700; color: #111b2d;
}
.lr-card__stat em {
  display: block; margin-top: 2px; font-style: normal;
  font-size: 14px; font-weight: 500; color: #1c2a4a;
}
.lr-card__stat--right { text-align: right; }
.lr-card__link { font-size: 14px; font-weight: 500; color: var(--teal); }
.lr-card__link:hover { color: var(--teal-dark); }

/* ---------- PREVIOUS DRAWS ---------- */
.lr-prev { background: var(--bg-soft); padding-block: 64px 48px; }
.lr-prev .lr-head { margin-bottom: 24px; }

.lr-list {
  background: var(--white); border: 1px solid var(--border);
  border-radius: 12px; overflow: hidden;
}
.lr-list__labels {
  display: flex; align-items: center; gap: 24px;
  height: 32px; padding-inline: 24px;
  border-bottom: 1px solid var(--border);
}
.lr-list__label { font-size: 11px; font-weight: 500; letter-spacing: .5px; color: var(--slate-500); }
.lr-list__label--game { flex: 0 0 200px; }
.lr-list__label--date { flex: 0 0 120px; }
.lr-list__label--nums { flex: 1; }
.lr-list__label--details { flex: 0 0 100px; text-align: right; }

.lr-row {
  display: flex; align-items: center; gap: 24px;
  min-height: 80px; padding-inline: 24px;
}
.lr-row + .lr-row { border-top: 1px solid var(--border); }
.lr-row__game { flex: 0 0 200px; display: flex; align-items: center; gap: 12px; }
.lr-row__icon { flex: none; width: 36px; height: 36px; border-radius: 8px; display: block; }
.lr-row__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.lr-row__date { flex: 0 0 120px; font-size: 13px; color: var(--slate-500); }
.lr-row__nums { flex: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-block: 12px; }
.lr-chip {
  flex: none; width: 28px; height: 28px; border-radius: 50%;
  background: var(--white); border: 1px solid var(--border); color: var(--ink);
  display: grid; place-items: center;
  font-family: var(--font-display); font-size: 12px; font-weight: 700;
}
.lr-row__link { flex: 0 0 100px; text-align: right; font-size: 13px; font-weight: 500; color: var(--teal); }
.lr-row__link:hover { color: var(--teal-dark); }

/* pagination */
.lr-pagination {
  margin-top: 24px;
  display: flex; align-items: center; justify-content: center; gap: 8px;
}
.lr-page { font-size: 14px; line-height: 1.3; color: #1c2a4a; border-radius: 6px; }
.lr-page--num { padding: 8px 10px; }
a.lr-page--num:not(.is-active):hover { background: var(--border); }
.lr-page--nav { padding: 8px 0; font-weight: 500; color: var(--teal); }
.lr-page--nav:hover { color: var(--teal-dark); }
.lr-page.is-active { background: var(--teal); color: var(--white); }

/* ---------- PLAY BRIGHT ---------- */
.lr-bright { background: var(--bg-tint); padding-block: 80px; }
.lr-bright__head { max-width: 680px; display: grid; gap: 12px; margin-bottom: 48px; }
.lr-bright__head h2 { font-size: 40px; font-weight: 700; line-height: 1.1; }
.lr-bright__head p { font-size: 16px; line-height: 1.5; color: var(--slate-700); }

.lr-help {
  position: relative; overflow: hidden;
  background: var(--white); border: 1px solid var(--border);
  border-radius: 16px;
  display: grid; grid-template-columns: 1fr 320px; gap: 32px; align-items: center;
  padding-left: 38px;
  margin-bottom: 48px;
}
.lr-help::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: var(--teal);
}
.lr-help__content { display: grid; gap: 16px; padding-block: 24px; }
.lr-help__content h3 { font-size: 24px; font-weight: 700; }
.lr-help__content > p { font-size: 15px; line-height: 1.6; color: var(--slate-700); }
.lr-help__phone { display: flex; align-items: center; gap: 12px; }
.lr-help__phone-icon {
  flex: none; width: 24px; height: 24px; border-radius: 6px;
  background: var(--teal); color: var(--white);
  display: grid; place-items: center;
}
.lr-help__phone a { font-size: 18px; font-weight: 700; color: var(--ink); }
.lr-help__call { padding-inline: 30px; }

/* support illustration */
.lr-support {
  position: relative; height: 220px; border-radius: 12px;
  background-image: radial-gradient(circle, rgba(217,226,235,.45) 1px, transparent 1.2px);
  background-size: 24px 24px; background-position: 11px 11px;
}
.lr-support__line {
  position: absolute; left: 64px; right: 68px; top: 90px; height: 2px;
  background: rgba(9,162,159,.25); border-radius: 1px;
}
.lr-node { position: absolute; display: grid; justify-items: center; width: 92px; text-align: center; }
.lr-node--1 { left: 22px; top: 50px; }
.lr-node--2 { left: 114px; top: 50px; }
.lr-node--3 { right: 24px; top: 42px; }
.lr-node__num { font-size: 9px; color: rgba(9,162,159,.55); margin-bottom: 4px; }
.lr-node__circle {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--white); border: 1px solid rgba(97,128,163,.25);
  display: grid; place-items: center; color: rgba(28,42,74,.6);
}
.lr-node__circle--accent {
  width: 48px; height: 48px;
  border: 1.5px solid rgba(9,162,159,.5); color: #09a29f;
  box-shadow: 0 0 0 6px rgba(9,162,159,.06), 0 0 0 12px rgba(9,162,159,.04);
}
.lr-node__title {
  margin-top: 10px; font-size: 8px; font-weight: 600; letter-spacing: .6px;
  text-transform: uppercase; color: #1c2a4a;
}
.lr-node__title.accent { color: #09a29f; }
.lr-node__sub { font-size: 7.5px; color: rgba(97,128,163,.75); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1100px) {
  .lr-grid { grid-template-columns: repeat(2, 1fr); }

  .lr-list__labels, .lr-row { gap: 16px; }
  .lr-list__label--game, .lr-row__game { flex-basis: 160px; }
  .lr-list__label--date, .lr-row__date { flex-basis: 100px; }

  .lr-help { grid-template-columns: 1fr; padding: 0 24px 0 38px; }
  .lr-support { max-width: 360px; margin-bottom: 24px; }
}

@media (max-width: 720px) {
  .lr-intro { padding-block: 32px 16px; }
  .lr-intro h1 { font-size: 28px; }
  .lr-intro p { margin-top: 12px; font-size: 14px; }

  .lr-head h2 { font-size: 20px; }
  .lr-head p { font-size: 13px; }

  .lr-latest { padding-block: 24px 32px; }
  .lr-latest .lr-head { margin-bottom: 16px; }
  .lr-grid { gap: 16px; }
  .lr-card { padding: 20px; gap: 12px; }
  .lr-card__top h3 { font-size: 16px; }
  .lr-card__date { font-size: 12px; }
  .lr-card__panel { padding: 10px 14px; }
  .lr-card__panel-label { font-size: 10px; letter-spacing: .5px; }
  .lr-card__balls { gap: 6px; }
  .lr-ball, .lr-card--daily .lr-ball { width: 32px; height: 32px; font-size: 14px; }
  .lr-card__meta { justify-content: flex-start; gap: 24px; }
  .lr-card__stat--right { text-align: left; }
  .lr-card__stat span { font-size: 10px; }
  .lr-card__stat strong { font-size: 15px; }
  .lr-card__stat em { font-size: 13px; }
  .lr-card__link { font-size: 13px; }

  .lr-prev { padding-block: 40px 32px; }
  .lr-prev .lr-head { margin-bottom: 20px; }

  /* list rows become stacked cards */
  .lr-list__labels { display: none; }
  .lr-row {
    display: grid; grid-template-columns: 1fr auto;
    grid-template-areas:
      "game date"
      "nums nums"
      "link link";
    gap: 10px; align-items: center;
    min-height: 0; padding: 16px;
  }
  .lr-row__game { grid-area: game; flex-basis: auto; }
  .lr-row__icon { display: none; }
  .lr-row__date { grid-area: date; flex-basis: auto; font-size: 12px; }
  .lr-row__nums { grid-area: nums; gap: 5px; padding-block: 0; }
  .lr-chip { background: var(--bg-soft); border: 0; }
  .lr-row__link { grid-area: link; flex-basis: auto; text-align: left; }

  .lr-pagination { margin-top: 20px; gap: 4px; }
  .lr-page { font-size: 13px; }
  .lr-page--nav { padding: 8px 10px; font-weight: 400; }

  .lr-bright { padding-block: 40px; }
  .lr-bright__head { gap: 8px; margin-bottom: 24px; }
  .lr-bright__head h2 { font-size: 28px; line-height: 1.2; }
  .lr-bright__head p { font-size: 14px; }
  .lr-help { padding: 20px; margin-bottom: 24px; }
  .lr-help::before { display: none; }
  .lr-help__content { gap: 12px; padding-block: 0; }
  .lr-help__content h3 { font-size: 20px; }
  .lr-help__content > p { font-size: 13px; }
  .lr-help__phone { gap: 8px; }
  .lr-help__phone a { font-size: 16px; }
  .lr-help__call { width: 100%; height: 42px; }
  .lr-support { display: none; }
}

@media (max-width: 640px) {
  .lr-grid { grid-template-columns: 1fr; }
}
