:root {
  color-scheme: light;
  --bg: #f4f4f0;
  --surface: #ffffff;
  --surface-2: #eaeae4;
  --text: #171713;
  --muted: #6e6e65;
  --line: #d8d8d0;
  --accent: #ff4d24;
  --accent-ink: #ffffff;
  --shadow: 0 18px 55px rgb(30 30 20 / 9%);
  --radius: 22px;
  --sans: Inter, Pretendard, "Apple SD Gothic Neo", system-ui, sans-serif;
}

[data-theme="dark"] {
  color-scheme: dark;
  --bg: #11110f;
  --surface: #1b1b18;
  --surface-2: #262622;
  --text: #f5f4ed;
  --muted: #adada2;
  --line: #393934;
  --accent: #ff6845;
  --accent-ink: #11110f;
  --shadow: 0 18px 55px rgb(0 0 0 / 28%);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { min-height: 100vh; min-height: 100svh; margin: 0; display: flex; flex-direction: column; background: var(--bg); color: var(--text); font: 16px/1.7 var(--sans); transition: background .2s, color .2s; }
main { flex: 1 0 auto; }
a { color: inherit; text-decoration: none; }
button { color: inherit; font: inherit; }
.container { width: min(1160px, calc(100% - 40px)); margin-inline: auto; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 16px; top: 16px; z-index: 100; padding: 10px 14px; background: var(--surface); border-radius: 8px; }

.site-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.nav { min-height: 72px; display: flex; align-items: center; gap: 28px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; letter-spacing: -.04em; }
.brand-mark { width: 29px; aspect-ratio: 1; display: grid; place-items: center; border-radius: 9px; background: var(--accent); color: var(--accent-ink); font-size: 15px; transform: rotate(-5deg); }
.nav-links { display: flex; gap: 22px; margin-left: auto; font-size: 14px; font-weight: 750; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--accent); }
.nav-divider { color: var(--line); font-weight: 500; user-select: none; }
.header-actions { display: flex; align-items: center; gap: 8px; }
.theme-button, .menu-button { width: 40px; height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.theme-button:hover, .menu-button:hover { border-color: var(--accent); }
.menu-button { display: none; }

.hero { padding: 92px 0 68px; }
.hero-kicker { display: flex; gap: 9px; align-items: center; color: var(--accent); font-size: 13px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.hero-kicker::before { content: ""; width: 28px; height: 2px; background: currentColor; }
.hero h1 { max-width: 900px; margin: 20px 0; font-size: clamp(46px, 7.4vw, 92px); line-height: 1.02; letter-spacing: -.075em; }
.hero h1 span { color: var(--accent); }
.hero-copy { max-width: 650px; color: var(--muted); font-size: 19px; }
.home-hero { padding: clamp(50px, 8vw, 104px) 0 56px; overflow: hidden; }
.home-hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr); gap: clamp(36px, 7vw, 90px); align-items: center; }
.home-hero-copy h1 { max-width: 760px; margin: 22px 0 26px; font-size: clamp(52px, 7vw, 92px); line-height: .98; letter-spacing: -.078em; }
.home-hero-copy h1 span { color: var(--accent); }
.home-hero-copy > p { max-width: 600px; margin: 0; color: var(--muted); font-size: clamp(17px, 1.7vw, 20px); }
.home-hero-link { margin-top: 34px; display: inline-flex; align-items: center; gap: 22px; padding-bottom: 7px; border-bottom: 2px solid var(--text); font-size: 14px; font-weight: 850; }
.home-hero-link span { color: var(--accent); font-size: 18px; transition: transform .2s; }
.home-hero-link:hover span { transform: translateY(3px); }
.home-brand-board { min-height: 480px; padding: clamp(28px, 4vw, 48px); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; background: var(--text); color: var(--bg); border-radius: 34px; box-shadow: var(--shadow); transform: rotate(1.5deg); }
.home-board-row { display: flex; justify-content: space-between; align-items: baseline; gap: 20px; font-size: clamp(42px, 5.8vw, 74px); font-weight: 950; line-height: .9; letter-spacing: -.075em; }
.home-board-row small { font-size: 11px; font-weight: 800; letter-spacing: .08em; }
.home-brand-board strong { align-self: center; color: var(--accent); font-size: clamp(100px, 13vw, 170px); line-height: .65; font-weight: 950; font-style: italic; }
.home-brand-board > p { margin: 0; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--bg) 28%, transparent); font-size: 11px; font-weight: 850; letter-spacing: .18em; }
.home-latest { padding: 58px 0 28px; }
.home-section-head { margin-bottom: 28px; display: flex; justify-content: space-between; align-items: end; gap: 30px; }
.home-section-head span { color: var(--accent); font-size: 12px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.home-section-head h2 { margin: 6px 0 0; font-size: clamp(36px, 5vw, 60px); line-height: 1; letter-spacing: -.06em; }
.home-section-head > p { max-width: 390px; margin: 0; color: var(--muted); text-align: right; }
.status-line { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.status-pill { padding: 8px 13px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; font-size: 13px; font-weight: 750; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: #22a65a; }

.section { padding: 52px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 26px; }
.section-head h2, .page-title { margin: 0; font-size: clamp(34px, 4.5vw, 58px); line-height: 1.1; letter-spacing: -.055em; }
.section-head p { max-width: 500px; margin: 0; color: var(--muted); }
.category-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.category-card { min-height: 260px; padding: 24px; display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); transition: transform .2s, border-color .2s, box-shadow .2s; }
.category-card:first-child, .category-card:nth-child(2) { grid-column: span 3; }
.category-card:nth-child(n+3) { grid-column: span 2; }
.category-card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: var(--shadow); }
.category-icon { width: 45px; height: 45px; display: grid; place-items: center; background: var(--surface-2); border-radius: 14px; font-size: 22px; }
.category-card h3 { margin: auto 0 4px; font-size: 26px; letter-spacing: -.04em; }
.category-card p { margin: 0; color: var(--muted); font-size: 14px; }
.category-card .arrow { margin-top: 18px; font-weight: 800; color: var(--accent); }

.empty-feed { padding: 54px; display: grid; grid-template-columns: 1fr auto; gap: 30px; align-items: center; border: 1px dashed var(--line); border-radius: var(--radius); background: var(--surface); }
.empty-feed h2 { margin: 0 0 8px; font-size: 26px; }
.empty-feed p { margin: 0; color: var(--muted); }
.empty-mark { font-size: 54px; opacity: .75; }
.guide { margin-top: 24px; padding: 18px 20px; background: var(--surface-2); border-radius: 15px; color: var(--muted); font-size: 14px; }
.guide code { color: var(--text); font-weight: 750; }

.page-hero { padding: 76px 0 38px; max-width: 820px; }
.page-hero p { color: var(--muted); font-size: 18px; }
.breadcrumbs { margin-bottom: 18px; color: var(--muted); font-size: 13px; }
.category-empty { min-height: 330px; display: grid; place-items: center; padding: 45px; text-align: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.category-empty .category-icon { margin-inline: auto; }
.category-empty h2 { margin: 18px 0 7px; font-size: 26px; }
.category-empty p { margin: 0; color: var(--muted); }
.path-box { display: inline-block; margin-top: 20px; padding: 9px 13px; background: var(--surface-2); border-radius: 9px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 260px; gap: 56px; align-items: start; }
.article { padding: clamp(26px, 5vw, 56px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.article .lead { font-size: 20px; }
.article h2 { margin: 46px 0 12px; font-size: 29px; letter-spacing: -.04em; }
.article h3 { margin: 32px 0 9px; font-size: 21px; }
.article a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 22px; color: var(--muted); font-size: 13px; }
.article-image { margin: 0 0 34px; }
.article-image img { width: 100%; height: auto; display: block; border-radius: 18px; background: var(--surface-2); }
.article-image figcaption { margin-top: 9px; color: var(--muted); font-size: 12px; }
.article-tags { margin-top: 42px; padding-top: 22px; border-top: 1px solid var(--line); }
.article-tags > strong { display: block; margin-bottom: 12px; font-size: 14px; }
.article-tags > div, .post-card-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.keyword-tag, .post-card-tags span { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--muted); font-weight: 750; white-space: nowrap; }
.keyword-tag { padding: 7px 11px; font-size: 12px; }
.answer-box { margin: 28px 0; padding: 20px; background: var(--surface-2); border-left: 4px solid var(--accent); border-radius: 12px; }
.toc { position: sticky; top: 104px; color: var(--muted); font-size: 14px; }
.toc h2 { color: var(--text); font-size: 17px; }
.toc ol { padding-left: 20px; }
.scoreboard { margin: 30px 0; padding: 30px; display: grid; grid-template-columns: 1fr auto 1fr; gap: 22px; align-items: center; text-align: center; background: var(--text); color: var(--bg); border-radius: 18px; }
.scoreboard .team { font-size: 25px; font-weight: 850; }
.scoreboard .score { font-size: 42px; font-weight: 900; letter-spacing: -.05em; }
.scoreboard small { display: block; color: var(--muted); font-size: 12px; }
.fact-table { width: 100%; border-collapse: collapse; margin: 24px 0; }
.fact-table th, .fact-table td { padding: 13px 14px; border-bottom: 1px solid var(--line); text-align: left; }
.fact-table th { width: 34%; color: var(--muted); font-size: 13px; }
.timeline { margin: 24px 0; padding-left: 22px; border-left: 2px solid var(--line); }
.timeline p { position: relative; margin: 0; padding: 0 0 24px 16px; }
.timeline p::before { content: ""; position: absolute; left: -23px; top: 8px; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.faq details { padding: 17px 0; border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 800; }
.service-link-grid { margin: 22px 0 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 11px; }
.service-link-card { min-width: 0; padding: 17px 18px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 13px; border: 1px solid var(--line); border-radius: 15px; background: var(--surface-2); color: var(--text); text-decoration: none !important; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.service-link-card:hover { transform: translateY(-2px); border-color: var(--accent); box-shadow: 0 10px 24px rgba(24, 28, 34, .09); }
.service-link-number { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #fff; font-size: .82rem; font-weight: 900; }
.service-link-card strong { display: block; margin-bottom: 3px; font-size: 1rem; }
.service-link-card p { margin: 0; color: var(--muted); font-size: .84rem; line-height: 1.45; }
.service-link-arrow { color: var(--accent); font-size: 1.15rem; font-weight: 900; }
.post-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.category-filter { margin: 0 0 18px; padding: 14px; display: grid; grid-template-columns: minmax(220px, 1fr) auto auto; align-items: center; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.category-search { min-width: 0; padding: 0 14px; display: flex; align-items: center; gap: 9px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--muted); }
.category-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.category-search input { width: 100%; min-width: 0; padding: 12px 0; border: 0; outline: 0; background: transparent; color: var(--text); font: inherit; }
.category-search input::placeholder { color: var(--muted); }
.category-search:has(input:disabled), .category-sort:has(select:disabled) { opacity: .55; }
.category-sort { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 13px; font-weight: 750; }
.category-sort select { padding: 11px 34px 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--bg); color: var(--text); font: inherit; font-weight: 750; }
.category-result-count { min-width: 68px; margin: 0; padding: 0 4px; color: var(--muted); font-size: 12px; font-weight: 750; text-align: center; white-space: nowrap; }
.category-no-results { margin: 18px 0 0; padding: 34px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; }
.post-card[hidden], .category-no-results[hidden] { display: none !important; }
.post-card { min-width: 0; padding: 22px; display: grid; grid-template-columns: 1fr; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.post-card.has-image { min-height: 180px; padding: 0; grid-template-columns: minmax(190px, 1fr) minmax(0, 4fr); align-items: stretch; }
.post-card.has-image > div { padding: 24px 28px; display: flex; flex-direction: column; justify-content: center; }
.post-thumbnail { width: 100%; height: 100%; min-height: 180px; display: block; object-fit: contain; background: #08111d; border-radius: 0; }
.post-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.post-card h2, .post-card h3 { margin: 6px 0 8px; font-size: 23px; line-height: 1.35; letter-spacing: -.035em; }
.post-card p { margin: 0 0 13px; color: var(--muted); font-size: 14px; }
.post-card time, .post-label { color: var(--accent); font-size: 12px; font-weight: 800; }
.post-card-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.post-card-meta time { flex: 0 0 auto; }
.post-card-tags { justify-content: flex-end; }
.post-card-tags span { padding: 4px 8px; font-size: 10px; }
.post-card .arrow { display: none; }

.lotto-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(340px, .75fr); gap: 22px; align-items: start; }
.lotto-card { padding: clamp(22px, 3vw, 34px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lotto-card-head { display: flex; justify-content: space-between; align-items: start; gap: 20px; }
.lotto-card h2 { margin: 5px 0 0; font-size: 27px; line-height: 1.25; letter-spacing: -.04em; }
.lotto-help { margin: 14px 0 20px; color: var(--muted); font-size: 14px; }
.lotto-reset { padding: 8px 12px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); cursor: pointer; font-size: 12px; font-weight: 750; }
.lotto-mode { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 18px; padding: 5px; background: var(--surface-2); border-radius: 13px; }
.lotto-mode button { padding: 10px; border: 0; border-radius: 9px; background: transparent; cursor: pointer; font-weight: 800; }
.lotto-mode button.is-active { background: var(--surface); color: var(--accent); box-shadow: 0 4px 16px rgb(0 0 0 / 8%); }
.lotto-number-grid { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; }
.lotto-pick { aspect-ratio: 1; min-width: 0; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); cursor: pointer; font-weight: 850; }
.lotto-pick:hover { border-color: var(--accent); transform: translateY(-1px); }
.lotto-pick.is-include { border-color: var(--accent); background: var(--accent); color: var(--accent-ink); }
.lotto-pick.is-exclude { border-color: #d94b4b; background: color-mix(in srgb, #d94b4b 16%, var(--surface)); color: #d94b4b; text-decoration: line-through; }
.lotto-selection-summary { margin: 22px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lotto-selection-summary > div { min-height: 82px; padding: 13px; border: 1px solid var(--line); border-radius: 13px; }
.lotto-selection-summary strong { display: block; margin-bottom: 8px; font-size: 12px; color: var(--muted); }
.lotto-mini-balls { display: flex; flex-wrap: wrap; gap: 5px; color: var(--muted); font-size: 13px; }
.lotto-actions { display: flex; align-items: end; gap: 12px; }
.lotto-actions label { flex: 1; color: var(--muted); font-size: 12px; font-weight: 750; }
.lotto-actions select { width: 100%; margin-top: 5px; padding: 11px 12px; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); color: var(--text); font: inherit; }
.lotto-generate { padding: 12px 22px; border: 0; border-radius: 11px; background: var(--accent); color: var(--accent-ink); cursor: pointer; font-weight: 850; }
.lotto-message { min-height: 26px; margin: 13px 0 0; color: var(--muted); font-size: 13px; }
.lotto-message.is-error { color: #d94b4b; font-weight: 750; }
.lotto-generated { display: grid; gap: 9px; margin-top: 14px; }
.lotto-game { min-width: 0; padding: 12px; display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface-2); }
.lotto-game strong { width: 48px; flex: 0 0 48px; font-size: 12px; color: var(--muted); }
.lotto-ball { width: 36px; height: 36px; display: inline-grid; place-items: center; flex: 0 0 36px; border-radius: 50%; color: #fff; font-size: 13px; font-weight: 900; box-shadow: inset 0 -3px 0 rgb(0 0 0 / 12%); }
.lotto-ball-small { width: 25px; height: 25px; flex-basis: 25px; font-size: 10px; }
.ball-yellow { background: #e8a61a; }
.ball-blue { background: #3d82d5; }
.ball-red { background: #d95454; }
.ball-gray { background: #68717b; }
.ball-green { background: #38a269; }
.lotto-draw-list { margin: 0; padding: 0; list-style: none; }
.lotto-draw-list li { padding: 17px 0; border-bottom: 1px solid var(--line); }
.lotto-draw-meta { margin-bottom: 10px; display: flex; justify-content: space-between; gap: 15px; }
.lotto-draw-meta time { color: var(--muted); font-size: 12px; }
.lotto-draw-balls { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.lotto-plus { margin-inline: 2px; color: var(--muted); font-weight: 900; }
.lotto-official-link { display: inline-block; margin-top: 20px; color: var(--accent); font-size: 13px; font-weight: 800; }
.lotto-info { width: 100%; margin-top: 28px; padding: clamp(24px, 4vw, 42px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.lotto-info-head { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.lotto-info-head h2 { margin: 6px 0 0; font-size: clamp(28px, 3.5vw, 42px); line-height: 1.1; letter-spacing: -.05em; }
.lotto-info-head > p { flex: 0 0 auto; margin: 0; color: var(--muted); text-align: right; white-space: nowrap; }
.lotto-guide-steps { margin: 0; padding: 26px 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); list-style: none; border-bottom: 1px solid var(--line); }
.lotto-guide-steps li { min-width: 0; padding: 0 22px; display: flex; gap: 14px; border-right: 1px solid var(--line); }
.lotto-guide-steps li:first-child { padding-left: 0; }
.lotto-guide-steps li:last-child { padding-right: 0; border-right: 0; }
.lotto-guide-steps li > span { color: var(--accent); font-size: 12px; font-weight: 900; }
.lotto-guide-steps strong { display: block; margin-bottom: 6px; line-height: 1.35; }
.lotto-guide-steps p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.55; }
.lotto-guide-grid { margin-top: 26px; display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.lotto-guide-grid article { padding: 24px; border-radius: 17px; }
.lotto-guide-notice { background: var(--text); color: var(--bg); }
.lotto-guide-update { background: var(--surface-2); }
.lotto-guide-grid h3 { margin: 7px 0 10px; font-size: 21px; line-height: 1.35; letter-spacing: -.035em; }
.lotto-guide-grid p { margin: 0; color: var(--muted); font-size: 13px; }
.lotto-guide-notice p { color: color-mix(in srgb, var(--bg) 74%, transparent); }
.lotto-guide-update a { display: inline-block; margin-top: 14px; color: var(--accent); font-size: 13px; font-weight: 850; }
.lotto-age-note { margin: 18px 0 0; color: var(--muted); font-size: 12px; text-align: center; }

.site-footer { margin-top: 78px; padding: 40px 0 24px; border-top: 1px solid var(--line); }
.footer-row { display: flex; justify-content: space-between; gap: 30px; align-items: start; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; color: var(--muted); font-size: 13px; }
.footer-note { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; }

@media (max-width: 900px) {
  .nav-links { display: none; position: absolute; inset: 72px 0 auto; padding: 20px; flex-direction: column; background: var(--surface); border-bottom: 1px solid var(--line); }
  .nav-links.open { display: flex; }
  .nav-divider { width: 100%; height: 1px; background: var(--line); font-size: 0; }
  .header-actions { margin-left: auto; }
  .menu-button { display: grid; }
  .hero { padding-top: 60px; }
  .home-hero { padding-top: 58px; }
  .home-hero-grid { grid-template-columns: 1fr; }
  .home-brand-board { min-height: 350px; transform: none; }
  .home-section-head { display: block; }
  .home-section-head > p { margin-top: 12px; text-align: left; }
  .category-grid { grid-template-columns: 1fr; }
  .category-card:first-child, .category-card:nth-child(2), .category-card:nth-child(n+3) { grid-column: auto; min-height: 210px; }
  .section-head, .footer-row { display: block; }
  .article-layout { grid-template-columns: 1fr; }
  .toc { display: none; }
  .scoreboard { padding: 22px 14px; gap: 10px; }
  .scoreboard .team { font-size: 19px; }
  .scoreboard .score { font-size: 34px; }
  .post-card.has-image { min-height: 150px; grid-template-columns: 34% minmax(0, 1fr); }
  .post-card.has-image > div { padding: 18px 20px; }
  .post-thumbnail { min-height: 150px; }
  .section-head p { margin-top: 10px; }
  .footer-links { margin-top: 20px; }
  .lotto-layout { grid-template-columns: 1fr; }
  .lotto-info-head { display: block; }
  .lotto-info-head > p { margin-top: 12px; text-align: left; white-space: normal; }
  .lotto-guide-steps { grid-template-columns: 1fr 1fr; gap: 0; }
  .lotto-guide-steps li { padding: 18px; border-bottom: 1px solid var(--line); }
  .lotto-guide-steps li:nth-child(2) { padding-right: 0; border-right: 0; }
  .lotto-guide-steps li:nth-child(3) { padding-left: 0; border-bottom: 0; }
  .lotto-guide-steps li:nth-child(4) { padding-right: 0; border-right: 0; border-bottom: 0; }
}

@media (max-width: 520px) {
  .service-link-grid { grid-template-columns: 1fr; }
  .container { width: min(100% - 28px, 1160px); }
  .hero h1 { font-size: 48px; }
  .home-hero-copy h1 { font-size: 47px; }
  .home-brand-board { min-height: 290px; padding: 28px; border-radius: 25px; }
  .home-board-row { font-size: 42px; }
  .home-brand-board strong { font-size: 100px; }
  .home-latest { padding-top: 38px; }
  .category-filter { grid-template-columns: minmax(0, 1fr) auto; }
  .category-search { grid-column: 1 / -1; }
  .category-result-count { min-width: 0; padding-left: 4px; text-align: left; }
  .post-card.has-image { min-height: 130px; grid-template-columns: 36% minmax(0, 1fr); }
  .post-card.has-image > div { padding: 14px 15px; }
  .post-card-meta { align-items: flex-start; flex-direction: column; gap: 7px; }
  .post-card-tags { justify-content: flex-start; gap: 5px; }
  .post-card-tags span { padding: 3px 6px; font-size: 9px; }
  .post-thumbnail { min-height: 130px; }
  .post-card h2, .post-card h3 { font-size: 17px; line-height: 1.35; }
  .post-card p { display: none; }
  .empty-feed { padding: 30px; grid-template-columns: 1fr; }
  .empty-mark { display: none; }
  .lotto-card { padding: 20px 16px; }
  .lotto-card-head { display: block; }
  .lotto-reset { margin-top: 12px; }
  .lotto-number-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 7px; }
  .lotto-selection-summary { grid-template-columns: 1fr; }
  .lotto-info { padding: 22px 17px; }
  .lotto-guide-steps, .lotto-guide-grid { grid-template-columns: 1fr; }
  .lotto-guide-steps li, .lotto-guide-steps li:first-child, .lotto-guide-steps li:last-child, .lotto-guide-steps li:nth-child(2), .lotto-guide-steps li:nth-child(3), .lotto-guide-steps li:nth-child(4) { padding: 16px 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .lotto-guide-steps li:last-child { border-bottom: 0; }
  .lotto-actions { align-items: stretch; flex-direction: column; }
  .lotto-generate { width: 100%; }
  .lotto-game { gap: 5px; }
  .lotto-game strong { width: 40px; flex-basis: 40px; }
  .lotto-game .lotto-ball { width: 31px; height: 31px; flex-basis: 31px; font-size: 11px; }
}

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
