/* 럭키스팟 모바일 우선 공용 스타일 (2026-10 개편) — 시·군·구·판매점 페이지 공용
   원칙: 흰 배경·검정 글자·강조색 파랑 1개, 이모지·그라데이션·그림자 카드 없음, 광고 래퍼는 화면 끝까지 넓히지 않음 */
.rg-page { --text: #111827; --muted: #6b7280; --line: #e5e7eb; --surface: #f6f7f9; --accent: #1d4ed8; --accent-soft: #eff4ff;
  color: var(--text); font-family: "Pretendard Variable", Pretendard, -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  font-size: 16px; line-height: 1.55; letter-spacing: -0.01em; }
.rg-page a { color: inherit; text-decoration: none; }
.rg-crumb { font-size: 13px; color: var(--muted); margin: 4px 0 6px; }
.rg-crumb a:hover { text-decoration: underline; }
.rg-page h1 { font-size: 24px; line-height: 1.3; margin: 0 0 6px; font-weight: 800; letter-spacing: -0.02em; }
.rg-lead { color: var(--muted); font-size: 15px; margin: 0; }
.rg-lead b { color: var(--text); font-weight: 700; }
.rg-period { font-size: 12px; color: var(--muted); margin: 4px 0 0; }
.rg-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; padding: 12px 14px; background: var(--accent-soft); border-radius: 12px; font-size: 14px; min-height: 48px; }
.rg-notice strong { color: var(--accent); font-weight: 700; margin-right: 6px; }
.rg-chev { color: var(--muted); flex-shrink: 0; }
.rg-page h2 { font-size: 19px; margin: 32px 0 12px; font-weight: 800; letter-spacing: -0.02em; line-height: 1.35; }
.rg-page h2 small { font-size: 13px; color: var(--muted); font-weight: 500; margin-left: 6px; }
/* 광고 폭은 애드센스 full-width-responsive 가 직접 맞추므로 래퍼를 넓히지 않음 (넓히면 광고가 옆으로 밀려 잘림) */
.rg-page .ad-slot-wrapper { margin: 20px auto; }

.rg-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 4px; padding: 0 16px 4px; }
.rg-chips::-webkit-scrollbar { display: none; }
.rg-chip { flex-shrink: 0; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line); background: #fff; font: inherit; font-size: 14px; color: var(--text); cursor: pointer; }
.rg-chip.active { background: var(--text); color: #fff; border-color: var(--text); font-weight: 700; }

.rg-rank { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.rg-rank > li > a { display: grid; grid-template-columns: 28px 1fr auto 12px; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); min-height: 64px; }
.rg-no { font-weight: 800; font-size: 17px; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.rg-rank > li.rg-top .rg-no { color: var(--accent); }
.rg-name { display: block; font-weight: 700; font-size: 16px; line-height: 1.35; word-break: keep-all; }
.rg-addr { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.rg-new { display: inline-block; font-size: 11px; font-weight: 700; color: #b42318; background: #fef3f2; padding: 1px 6px; border-radius: 4px; margin-left: 4px; vertical-align: 2px; }
.rg-wins { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rg-wins b { font-size: 17px; font-weight: 800; }
.rg-wins span { display: block; font-size: 12px; color: var(--muted); }
.rg-rank > li.rg-ad { padding: 16px 0; border-bottom: 1px solid var(--line); }
.rg-rank > li.rg-ad .ad-slot-wrapper { margin: 0 auto; }

.rg-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 16px; margin: 0; }
.rg-facts dt { font-size: 13px; color: var(--muted); }
.rg-facts dd { margin: 2px 0 0; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; word-break: keep-all; }

.rg-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.rg-table th { text-align: left; font-weight: 600; color: var(--muted); font-size: 13px; padding: 0 0 8px; border-bottom: 1px solid var(--line); }
.rg-table td { padding: 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.rg-table td a { color: var(--accent); }
.rg-table .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; padding-left: 8px; }

.rg-text p { font-size: 15px; color: #374151; margin: 0 0 12px; word-break: keep-all; }

.rg-page .nc-card { margin: 0; padding: 0; border: 0; background: none; }
.rg-numrow { padding: 14px 0; border-bottom: 1px solid var(--line); }
.rg-numrow:first-child { border-top: 1px solid var(--line); }
.rg-numrow .rg-label { font-size: 14px; font-weight: 700; margin-bottom: 10px; display: flex; justify-content: space-between; gap: 8px; }
.rg-numrow .rg-label a { font-weight: 500; color: var(--accent); font-size: 13px; white-space: nowrap; }
.rg-balls { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.rg-ball { width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.rg-ball.ball-yellow { background: #f2b705; color: #3d2b00; } .rg-ball.ball-blue { background: #2f6fdf; } .rg-ball.ball-red { background: #e5484d; }
.rg-ball.ball-grey { background: #7c8591; } .rg-ball.ball-green { background: #30a46c; }
.rg-plus { color: var(--muted); font-weight: 700; }
.rg-stack { display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 44px; }
.rg-stack small { font-size: 11px; color: var(--muted); white-space: nowrap; }
.rg-stack small.rg-cold { color: #b42318; font-weight: 700; }

.rg-faq details { border-bottom: 1px solid var(--line); }
.rg-faq details:first-child { border-top: 1px solid var(--line); }
.rg-faq summary { list-style: none; cursor: pointer; padding: 15px 28px 15px 0; font-weight: 700; font-size: 15px; position: relative; }
.rg-faq summary::-webkit-details-marker { display: none; }
.rg-faq summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: translateY(-70%) rotate(45deg); transition: transform .15s; }
.rg-faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.rg-faq details p { margin: 0 0 16px; font-size: 15px; color: #374151; word-break: keep-all; }

.rg-near { display: flex; flex-wrap: wrap; gap: 8px; }
.rg-near a { height: 40px; padding: 0 14px; display: inline-flex; align-items: center; border-radius: 10px; background: var(--surface); font-size: 14px; }
.rg-figure { margin: 32px 0 8px; }
.rg-figure img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid var(--line); }
.rg-src { font-size: 12px; color: var(--muted); margin: 20px 0 8px; line-height: 1.7; }

/* ---- 판매점 상세 ---- */
.st-area { font-size: 14px; color: var(--muted); margin: 0 0 2px; }
.st-addr { font-size: 14px; color: #374151; margin: 4px 0 0; word-break: keep-all; }
.st-fresh { display: inline-block; margin-top: 10px; font-size: 13px; font-weight: 700; color: #b42318; background: #fef3f2; padding: 4px 10px; border-radius: 6px; }
.st-score { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 16px; border: 1px solid var(--line); border-radius: 12px; }
.st-score > div { padding: 12px 10px; text-align: center; }
.st-score > div + div { border-left: 1px solid var(--line); }
.st-score span { display: block; font-size: 12px; color: var(--muted); }
.st-score b { display: block; font-size: 22px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.st-score .st-main b { color: var(--accent); }
.st-score b.st-none { font-size: 16px; color: var(--muted); padding-top: 5px; }
.st-score b small { font-size: 14px; font-weight: 700; }
.st-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 14px; }
.st-actions a { height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-weight: 700; font-size: 15px; border: 1px solid var(--line); background: #fff; }
.st-actions a.st-primary { background: var(--text); color: #fff; border-color: var(--text); }

.st-hist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.st-hist li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.st-hist .st-h1 { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.st-hist .st-round { font-weight: 800; font-size: 16px; }
.st-hist .st-round a { color: var(--accent); }
.st-hist .st-tag { font-size: 11px; font-weight: 700; color: var(--accent); background: var(--accent-soft); padding: 1px 6px; border-radius: 4px; margin-left: 6px; vertical-align: 2px; }
.st-hist .st-money { font-size: 14px; font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.st-hist .st-meta { font-size: 13px; color: var(--muted); margin: 2px 0 10px; }
.st-hist .rg-ball { width: 32px; height: 32px; font-size: 14px; }

.st-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; background: var(--line); margin: 8px 0 8px; }
.st-bar i { display: block; height: 100%; }
.st-bar .a { background: var(--accent); } .st-bar .m { background: #93b4f5; } .st-bar .s { background: #cbd5e1; }
.st-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: #374151; }
.st-legend span::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 2px; margin-right: 5px; vertical-align: 1px; background: var(--c); }
.st-sub { font-size: 14px; font-weight: 700; margin: 18px 0 8px; }
.st-sub:first-child { margin-top: 0; }

/* ---- 회차 상세 ---- */
.nb-nav { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; font-size: 14px; margin: 4px 0 14px; }
.nb-nav a { color: var(--accent); min-height: 40px; display: flex; align-items: center; }
.nb-nav a:nth-child(2) { color: var(--muted); justify-content: center; }
.nb-nav a:last-child { justify-content: flex-end; }
/* 공 7개(+보너스)가 375px 화면에서 한 줄에 들어가도록 */
.nb-balls { margin-top: 12px; gap: 5px; flex-wrap: nowrap; }
.nb-balls .rg-ball { width: 39px; height: 39px; font-size: 16px; flex-shrink: 0; }
.nb-balls .rg-plus { margin: 0 1px; }
@media (max-width: 360px) { .nb-balls .rg-ball { width: 35px; height: 35px; font-size: 14px; } .nb-balls { gap: 4px; } }
.st-score b.nb-money { font-size: 18px; padding-top: 3px; }
.nb-cta { grid-template-columns: 1fr; }
.rg-rank > li > div.nb-row { display: grid; grid-template-columns: 28px 1fr auto 12px; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); min-height: 64px; }
.rg-wins b.nb-zero { color: var(--muted); font-weight: 600; }
.nb-reg { height: 34px; padding: 0 12px; display: inline-flex; align-items: center; border-radius: 8px; background: var(--surface); font-size: 14px; }

/* ---- 홈: 최근 회차 목록 ---- */
.hm-rounds { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.hm-rounds > li > a { display: block; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hm-r1 { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.hm-r1 b { font-size: 16px; font-weight: 800; color: var(--accent); }
.hm-r1 span { font-size: 13px; color: var(--muted); }
.hm-rounds .rg-ball { width: 32px; height: 32px; font-size: 14px; }
.hm-rounds > li.rg-ad { padding: 16px 0; border-bottom: 1px solid var(--line); }
.hm-rounds > li.rg-ad .ad-slot-wrapper { margin: 0 auto; }
