/* Tailwind 기본 스타일은 css/tailwind-base.css 로 분리했습니다 */

:root {
  --ink: #191919;
  --muted: #6b6f76;
  --line: #e8e9ec;
  --paper: #f6f7f9;
  --cream: #fff3da;
  --green: #f45140;
  --green-dark: #d83c2f;
  --green-soft: #fff0ed;
  --orange: #ffb600;
  --red: #f45b68;
  --blue: #2879b9;
  --gray: #69737b;
  --shadow: 0 10px 30px rgba(32, 37, 43, 0.055);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Pretendard Variable", Pretendard, "Noto Sans KR", "Malgun Gothic", Arial, sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
button { color: inherit; }

.shell { width: min(1280px, calc(100% - 64px)); margin: 0 auto; }
.desktop-site { min-width: 0; }
.mobile-gate { display: none; }

.app-download-float {
  display: none;
  position: fixed;
  z-index: 30;
  right: 18px;
  top: 50%;
  width: 174px;
  padding: 17px 14px 15px;
  transform: translateY(-50%);
  border-radius: 16px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 12px 34px rgba(28, 32, 38, .15);
  text-align: center;
  backdrop-filter: blur(12px);
  will-change: transform, opacity;
  transition: transform .28s cubic-bezier(.22, .8, .24, 1), opacity .22s ease, visibility .22s ease;
}
.app-download-float.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; transform: translate(1.6rem, -50%); }
.app-download-heading { display: flex; align-items: center; justify-content: center; gap: 7px; margin-bottom: 10px; }
.app-download-heading strong { font-size: 13px; letter-spacing: -.025em; }
.app-download-phone { position: relative; width: 10px; height: 16px; border: 1.5px solid #535861; border-radius: 2px; }
.app-download-phone::after { content: ""; position: absolute; left: 50%; bottom: 1px; width: 2px; height: 2px; margin-left: -1px; border-radius: 50%; background: #535861; }
.app-download-qr-link { display: block; padding: 7px; border-radius: 10px; background: #fff; box-shadow: inset 0 0 0 1px #e4e6e9; }
.app-download-qr { display: block; width: 100%; height: auto; image-rendering: pixelated; }
.app-download-float p { margin: 9px 0 2px; color: #454a52; font-size: 11px; font-weight: 800; }
.app-download-float > span { display: block; color: #8a8f96; font-size: 9px; line-height: 1.45; }
.app-download-store-links { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 12px; }
.app-download-store-links a { min-height: 37px; display: flex; align-items: center; justify-content: center; gap: 4px; padding: 5px 4px; border: 1px solid #e4e6e9; border-radius: 9px; background: #f8f9fa; color: #3d4249; font-size: 8px; font-weight: 800; letter-spacing: -.035em; transition: border-color .16s ease, background .16s ease, transform .16s ease; }
.app-download-store-links a:hover { border-color: #cfd3d8; background: #fff; transform: translateY(-1px); }
.app-download-store-links img { flex: 0 0 auto; width: 15px; height: 15px; object-fit: contain; }
.app-download-store-links span { display: block; white-space: nowrap; }
.app-download-contact { min-height: 35px; display: grid; place-items: center; margin-top: 7px; border-radius: 9px; background: #242629; color: #fff; font-size: 10px; font-weight: 850; transition: background .16s ease, transform .16s ease; }
.app-download-contact:hover { background: var(--green-dark); transform: translateY(-1px); }

.download-redirect-page { min-height: 100dvh; display: grid; place-items: center; padding: 28px; background: linear-gradient(135deg, #fff5f1, #ffe5dc); }
.download-redirect-card { width: min(440px, 100%); padding: 42px 36px; border-radius: 24px; background: #fff; box-shadow: 0 18px 48px rgba(107, 48, 34, .1); text-align: center; }
.download-redirect-card > img { width: 160px; height: auto; }
.download-redirect-kicker { margin: 26px 0 10px; color: var(--green); font-size: 10px; font-weight: 900; letter-spacing: .13em; }
.download-redirect-card h1 { margin: 0; font-size: 25px; letter-spacing: -.045em; }
.download-redirect-card > p:not(.download-redirect-kicker) { margin: 12px auto 25px; color: var(--muted); font-size: 13px; line-height: 1.65; }
.download-store-links { display: grid; gap: 9px; }
.download-store-links a { min-height: 48px; display: grid; place-items: center; border-radius: 10px; background: #242629; color: #fff; font-size: 13px; font-weight: 800; }
.download-store-links a:last-child { background: var(--green); }

.site-header { background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.header-inner { width: min(1280px, calc(100% - 64px)); height: 80px; margin: 0 auto; display: grid; grid-template-columns: 210px 1fr; align-items: center; gap: 36px; }
.brand { display: flex; align-items: center; width: fit-content; }
.brand-logo { width: 156px; height: auto; object-fit: contain; }
.site-header nav { display: flex; justify-content: flex-end; align-items: stretch; height: 80px; gap: 38px; }
nav a { display: grid; place-items: center; position: relative; font-size: 16px; font-weight: 750; letter-spacing: -.02em; white-space: nowrap; }
nav a.is-active::after { content: ""; position: absolute; bottom: 0; left: 0; right: 0; height: 3px; background: var(--green); }

.status-strip { background: #fff; border-bottom: 1px solid var(--line); }
.status-inner { height: 38px; display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: var(--muted); }
.status-inner p { margin: 0; }
.status-inner strong { color: #515751; margin-left: 8px; }
.status-dot { width: 7px; height: 7px; display: inline-block; margin-right: 7px; border-radius: 50%; background: var(--green); }

.brand-hero { position: relative; padding: 0; overflow: hidden; background: linear-gradient(115deg, #fff0ea 0%, #ffe1d5 53%, #ffb9a6 100%); }
.brand-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 76% 18%, rgba(255,255,255,.72), transparent 25%), radial-gradient(circle at 88% 72%, rgba(255,183,0,.2), transparent 20%); pointer-events: none; }
.brand-hero-inner { position: relative; min-height: 348px; overflow: visible; border-radius: 0; background: transparent; }
.brand-hero-copy { position: relative; z-index: 2; width: 52%; padding: 55px 0 50px 62px; }
.brand-hero-kicker { margin: 0 0 14px; color: var(--green); font-size: 11px; line-height: 1; font-weight: 900; letter-spacing: .13em; }
.brand-hero-copy h1 { margin: 0; font-size: 40px; line-height: 1.28; letter-spacing: -.055em; font-weight: 800; }
.brand-hero-copy h1 strong { color: var(--green); font-weight: 900; }
.brand-hero-copy > p:not(.brand-hero-kicker) { margin: 17px 0 0; color: #5c5f65; font-size: 16px; line-height: 1.65; letter-spacing: -.02em; }
.brand-hero-actions { display: flex; align-items: center; gap: 22px; margin-top: 26px; }
.hero-primary-action { min-width: 156px; min-height: 48px; padding: 0 22px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; background: #202124; color: #fff; font-size: 14px; font-weight: 800; }
.hero-secondary-action { color: #42464d; font-size: 14px; font-weight: 750; }
.hero-secondary-action span { margin-left: 7px; color: var(--green); }
.brand-hero-visual { position: absolute; z-index: 1; right: -28px; bottom: -58px; width: 63%; height: 410px; background: url('../images/hero-trophy-3d-numbers.png') right bottom / contain no-repeat; filter: drop-shadow(0 22px 24px rgba(120, 50, 18, .12)); }
.brand-hero-note { position: absolute; z-index: 3; right: 36px; top: 28px; min-width: 168px; padding: 12px 16px; border-radius: 14px; background: rgba(255,255,255,.78); box-shadow: 0 10px 24px rgba(124,52,25,.08); backdrop-filter: blur(12px); display: grid; gap: 2px; }
.brand-hero-note span { color: var(--green); font-size: 10px; font-weight: 900; }
.brand-hero-note strong { font-size: 12px; }

.result-grid { padding-top: 24px; display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(340px, .9fr); gap: 18px; }
.result-panel, .countdown-panel { background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
.result-panel { padding: 34px 38px 28px; }
.section-heading, .section-title-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; }
.eyebrow { margin: 0 0 7px; font-size: 11px; line-height: 1; font-weight: 800; letter-spacing: 1.2px; color: var(--green); }
h1, h2, h3, p { word-break: keep-all; }
.section-heading h1, .section-title-row h2 { margin: 0; font-size: 28px; letter-spacing: -.045em; line-height: 1.3; font-weight: 850; }
.draw-date { margin: 20px 0 0; font-size: 13px; color: var(--muted); }
.winning-row { min-height: 118px; display: flex; align-items: center; gap: 13px; }
.winning-numbers { display: flex; gap: 10px; }
.ball {
  --ball-top: #4c5358;
  --ball-bottom: #30363a;
  --ball-number: #fff;
  flex: 0 0 auto;
  width: 50px;
  height: 50px;
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--ball-top) 0%, var(--ball-bottom) 100%);
  color: var(--ball-number);
  font-size: 17px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: -.025em;
  box-shadow: 0 9px 16px rgba(29,35,40,.18), 0 2px 4px rgba(29,35,40,.08);
}
.ball-small { width: 30px; height: 30px; font-size: 11px; box-shadow: 0 5px 9px rgba(29,35,40,.17), 0 1px 3px rgba(29,35,40,.08); }
.ball-1, .number-band-1 { --ball-top: #ffc43d; --ball-bottom: #ffad0a; --ball-number: #5a4000; }
.ball-2, .number-band-2 { --ball-top: #3479e7; --ball-bottom: #2765d3; --ball-number: #fff; }
.ball-3, .number-band-3 { --ball-top: #ff6c5f; --ball-bottom: #f45143; --ball-number: #fff; }
.ball-4, .number-band-4 { --ball-top: #4c5358; --ball-bottom: #30363a; --ball-number: #fff; }
.ball-5, .number-band-5 { --ball-top: #4c9853; --ball-bottom: #35843f; --ball-number: #fff; }
.plus { font-size: 20px; font-weight: 400; color: #8b918b; }
.bonus-number { display: flex; align-items: center; gap: 8px; }
.bonus-number > span:last-child { color: var(--muted); font-size: 12px; }
.result-summary { border-top: 1px solid var(--line); padding-top: 19px; display: grid; grid-template-columns: 1fr .7fr auto; gap: 28px; align-items: end; }
.result-summary div { display: grid; gap: 4px; }
.result-summary div span { font-size: 12px; color: var(--muted); }
.result-summary strong { font-size: 15px; }
.result-summary a { font-size: 13px; font-weight: 700; color: var(--green); }
.result-summary a span { margin-left: 8px; }

.countdown-panel { position: relative; overflow: hidden; padding: 34px; background: linear-gradient(145deg, #ef4e3c 0%, #dc362b 100%); color: #fff; box-shadow: none; }
.countdown-panel::after { content: ""; position: absolute; right: -45px; bottom: -58px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #ffd866 0, #ffad00 45%, #e17c00 100%); opacity: .2; box-shadow: inset 10px 12px 20px rgba(255,255,255,.25); }
.countdown-panel > * { position: relative; z-index: 1; }
.countdown-panel .eyebrow { color: #ffd7d1; }
.countdown-panel h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.countdown { display: flex; align-items: flex-start; justify-content: space-between; margin: 30px 0 26px; }
.countdown div { display: grid; text-align: center; gap: 5px; }
.countdown strong { font-size: 27px; line-height: 1; letter-spacing: -.5px; font-variant-numeric: tabular-nums; }
.countdown span { font-size: 10px; color: #ffd0ca; }
.countdown i { margin-top: 1px; font-style: normal; opacity: .55; }
.draw-info { border-top: 1px solid rgba(255,255,255,.18); padding-top: 17px; display: flex; justify-content: space-between; font-size: 12px; color: #ffd0ca; }
.draw-info strong { color: #fff; }
.caption { margin: 12px 0 0; color: #f7b8b0; font-size: 10px; }

.tool-section { padding: 54px 0 42px; }
.section-title-row { align-items: end; margin-bottom: 18px; }
.section-title-row > p { margin: 0 0 3px; color: var(--muted); font-size: 14px; }
.tool-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tool-card { min-height: 220px; padding: 28px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; grid-template-rows: 1fr auto; column-gap: 20px; }
.tool-card.tool-primary { background: var(--green-soft); }
.tool-card.tool-muted { background: var(--cream); }
.tool-index { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: 1px; padding-top: 3px; }
.tool-card h3 { margin: 0 0 11px; font-size: 20px; letter-spacing: -.035em; }
.tool-card p { margin: 0; max-width: 310px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.tool-card button, .tool-card > a { grid-column: 2; justify-self: start; border: 0; background: none; padding: 10px 0 0; cursor: pointer; color: var(--green); font-size: 13px; font-weight: 800; }
.tool-card button span, .tool-card > a span { margin-left: 9px; }

.review-section {
  position: relative;
  margin-bottom: 56px;
  padding: 38px;
  overflow: hidden;
  border: 1px solid #eceef1;
  border-radius: 24px;
  background: linear-gradient(135deg, #fff 0%, #fff9f7 100%);
}

.review-section::after {
  content: "";
  position: absolute;
  right: -124px;
  top: -170px;
  width: 340px;
  height: 340px;
  border: 54px solid rgba(244, 81, 64, .055);
  border-radius: 50%;
  pointer-events: none;
}

.review-section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.review-section-heading h2 {
  margin: 0;
  color: #202226;
  font-size: 29px;
  line-height: 1.3;
  letter-spacing: -.05em;
}

.review-section-heading > p {
  max-width: 360px;
  margin: 0 0 2px;
  color: #737780;
  font-size: 13px;
  line-height: 1.55;
  text-align: right;
}

.review-card-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.review-card {
  min-height: 218px;
  padding: 24px;
  border: 1px solid #e7e9ed;
  border-radius: 17px;
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 26px rgba(42, 45, 51, .035);
}

.review-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.review-card-index {
  color: var(--green);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
}

.review-card-category {
  padding: 5px 9px;
  border-radius: 999px;
  background: #fff0ed;
  color: #d94a3d;
  font-size: 11px;
  font-weight: 800;
}

.review-card blockquote {
  margin: 18px 0 20px;
  color: #30343b;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.68;
  letter-spacing: -.027em;
}

.review-card-author {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid #eef0f2;
}

.review-card-author strong {
  color: #4b5058;
  font-size: 13px;
  font-weight: 800;
}

.review-card-author span {
  color: #9a9ea5;
  font-size: 11px;
}

.work-section { padding: 56px 0; background: #eff1f4; scroll-margin-top: 80px; }
.work-grid { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(340px, .75fr); gap: 18px; align-items: start; }
.work-main, .work-side { display: grid; gap: 18px; }
.panel { background: #fff; border-radius: 20px; box-shadow: var(--shadow); }
.workbench { min-height: 510px; padding: 32px 34px 34px; }
.panel-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; }
.panel-head h2 { margin: 0; font-size: 24px; letter-spacing: -.04em; }
.saved-count { padding: 6px 10px; border-radius: 4px; background: #f0f1ed; color: var(--muted); font-size: 11px; font-weight: 700; }
.work-tabs { display: flex; margin-top: 25px; border-bottom: 1px solid var(--line); }
.work-tabs button { position: relative; border: 0; background: none; padding: 14px 20px; color: var(--muted); font-size: 14px; font-weight: 750; cursor: pointer; }
.work-tabs button:first-child { padding-left: 0; }
.work-tabs button.active { color: var(--ink); }
.work-tabs button.active::after { content: ""; position: absolute; left: 17px; right: 17px; bottom: -1px; height: 2px; background: var(--ink); }
.work-tabs button:first-child.active::after { left: 0; }
.saved-list { padding-top: 6px; }
.list-labels, .number-row { display: grid; grid-template-columns: 135px minmax(330px, 1fr) 90px; align-items: center; gap: 18px; }
.list-labels { padding: 14px 12px 8px; color: #9a9f99; font-size: 10px; }
.number-row { min-height: 73px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.number-row > strong { font-size: 14px; }
.small-balls { display: flex; align-items: center; gap: 7px; }
.result-tag { justify-self: end; min-width: 54px; border-radius: 4px; background: var(--green-soft); padding: 5px 8px; text-align: center; color: var(--green); font-size: 10px; font-weight: 800; }
.result-tag.fail { background: #f1f1ee; color: #7d837e; }
.text-button { margin-top: 14px; border: 0; background: none; padding: 8px 0; color: var(--green); font-size: 12px; font-weight: 800; cursor: pointer; }
.text-button span { margin-left: 7px; }

.generator-layout { display: grid; grid-template-columns: 230px 1fr; gap: 24px; padding-top: 22px; }
.condition-box { padding: 18px; background: #f5f5f1; border-radius: 10px; }
.condition-box label { display: grid; gap: 6px; margin-bottom: 13px; color: var(--muted); font-size: 11px; font-weight: 700; }
.condition-box select { width: 100%; height: 36px; border: 1px solid var(--line); border-radius: 5px; background: #fff; padding: 0 10px; color: var(--ink); font-size: 12px; }
.condition-box button, .batch-layout > div > button { width: 100%; height: 40px; margin-top: 4px; border: 0; border-radius: 5px; background: var(--green); color: #fff; font-size: 12px; font-weight: 800; cursor: pointer; }
.generated-list { display: grid; }
.generated-list > div { min-height: 63px; display: grid; grid-template-columns: 28px 1fr auto; align-items: center; gap: 10px; border-bottom: 1px solid var(--line); }
.generated-list > div > span { color: #9da29d; font-size: 10px; }
.generated-list > div > button { border: 0; border-radius: 4px; background: #f0f1ed; padding: 6px 9px; font-size: 10px; font-weight: 700; cursor: pointer; }

.batch-layout { display: grid; grid-template-columns: 1.5fr .8fr; gap: 22px; padding-top: 23px; }
.batch-layout label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 11px; font-weight: 700; }
.batch-layout textarea { width: 100%; min-height: 190px; resize: vertical; border: 1px solid var(--line); border-radius: 8px; background: #fbfbf9; padding: 15px; color: var(--ink); font-size: 13px; line-height: 1.7; outline: none; }
.batch-layout textarea:focus, .search-field input:focus, .input-with-unit input:focus { box-shadow: 0 0 0 2px rgba(244,81,64,.12); }
.batch-result { min-height: 260px; display: flex; flex-direction: column; justify-content: center; border-radius: 10px; background: var(--green-soft); padding: 24px; }
.batch-result span { color: var(--green); font-size: 10px; font-weight: 800; }
.batch-result strong { margin: 9px 0 12px; font-size: 17px; letter-spacing: -.5px; }
.batch-result p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.6; }

.recent-panel { padding: 24px 28px 20px; }
.panel-head.compact { align-items: center; }
.panel-head.compact h2 { font-size: 18px; }
.panel-head.compact a { color: var(--green); font-size: 11px; font-weight: 800; }
/* .draw-table { margin-top: 12px; } */
.draw-row { min-height: 64px; display: grid; grid-template-columns: 94px 1fr auto; gap: 16px; align-items: center; border-bottom: 1px solid var(--line); }
.draw-row:last-child { border-bottom: 0; }
.draw-row > div:first-child { display: grid; gap: 2px; }
.draw-row > div:first-child strong { font-size: 13px; }
.draw-row > div:first-child span { color: var(--muted); font-size: 10px; }
.draw-row .small-balls i { margin: 0 2px; color: #9ca19b; font-style: normal; }
.draw-row > button { border: 0; background: none; color: var(--muted); font-size: 10px; cursor: pointer; }

.utility-panel { padding: 26px 27px; }
.utility-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 18px; }
.utility-head h3 { margin: 0; font-size: 17px; letter-spacing: -.035em; }
.utility-head button, .utility-head span { border: 0; background: none; padding: 0; color: var(--green); font-size: 10px; font-weight: 700; }
.calendar-head { display: grid; grid-template-columns: 30px 1fr 30px; align-items: center; text-align: center; margin-bottom: 13px; }
.calendar-head strong { font-size: 12px; }
.calendar-head button { border: 0; background: none; color: #969c96; cursor: pointer; }
.calendar-week, .calendar-days { display: grid; grid-template-columns: repeat(7, 1fr); text-align: center; }
.calendar-week { margin-bottom: 5px; color: #a3a7a2; font-size: 9px; }
.calendar-days { row-gap: 2px; }
.calendar-days span { position: relative; width: 27px; height: 27px; margin: auto; display: grid; place-items: center; border-radius: 50%; font-size: 10px; }
.calendar-days .draw-day::after { content: ""; position: absolute; bottom: 2px; width: 3px; height: 3px; border-radius: 50%; background: var(--green); }
.calendar-days .today { background: var(--ink); color: #fff; font-weight: 800; }
.calendar-note { margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.mini-dot { display: inline-block; width: 6px; height: 6px; margin-right: 6px; border-radius: 50%; background: var(--green); }

.calculator-panel > label { display: block; margin-bottom: 6px; color: var(--muted); font-size: 10px; }
.input-with-unit { position: relative; }
.input-with-unit input { width: 100%; height: 42px; border: 1px solid var(--line); border-radius: 6px; background: #fbfbf9; padding: 0 38px 0 12px; outline: none; font-size: 13px; font-weight: 700; text-align: right; }
.input-with-unit > span { position: absolute; right: 12px; top: 12px; color: var(--muted); font-size: 11px; }
.calc-result { margin-top: 14px; padding: 14px; border-radius: 7px; background: var(--green-soft); display: grid; gap: 4px; }
.calc-result span { color: var(--muted); font-size: 10px; }
.calc-result strong { color: var(--green-dark); font-size: 16px; }
.calculator-panel > p { margin: 10px 0 0; color: #999e99; font-size: 9px; }

.search-field { display: grid; grid-template-columns: 1fr 54px; }
.search-field input { min-width: 0; height: 40px; border: 1px solid var(--line); border-right: 0; border-radius: 6px 0 0 6px; background: #fbfbf9; padding: 0 11px; outline: none; font-size: 11px; }
.search-field button { border: 0; border-radius: 0 6px 6px 0; background: var(--ink); color: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.store-suggest { margin-top: 13px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.store-suggest > span { margin-right: 3px; color: #9ca19c; font-size: 9px; }
.store-suggest button { border: 0; border-radius: 4px; background: #f0f1ed; padding: 5px 7px; color: var(--muted); font-size: 9px; cursor: pointer; }
.store-result { margin-top: 12px; padding: 12px; border-radius: 6px; background: #f3f3ef; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; }
.store-result strong { font-size: 11px; }
.store-result span { color: var(--muted); font-size: 9px; }
.store-result a { grid-column: 2; grid-row: 1 / 3; align-self: center; color: var(--green); font-size: 9px; font-weight: 700; }

.insight-section { padding: 60px 0 72px; }
.insight-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.insight-card { min-height: 290px; padding: 27px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); }
.insight-head { display: flex; justify-content: space-between; align-items: center; }
.insight-head > span { color: var(--green); font-size: 11px; font-weight: 850; }
.insight-head a { color: var(--muted); font-size: 11px; }
.insight-card h3 { margin: 20px 0 22px; font-size: 18px; letter-spacing: -.035em; }
.frequency-list { display: grid; gap: 13px; }
.frequency-list > div { display: grid; grid-template-columns: 30px 1fr 28px; align-items: center; gap: 9px; }
.frequency-list > div > span { height: 5px; border-radius: 5px; background: #eceee9; overflow: hidden; }
.frequency-list i { display: block; height: 100%; border-radius: 5px; background: var(--green); }
.frequency-list strong { color: var(--muted); font-size: 10px; text-align: right; }
.bar-chart { height: 116px; display: flex; align-items: end; gap: 7px; border-bottom: 1px solid var(--line); }
.bar-chart i { flex: 1; min-height: 12px; border-radius: 3px 3px 0 0; background: #f7b4aa; }
.bar-chart i:nth-child(4), .bar-chart i:nth-child(6) { background: var(--green); }
.chart-caption { display: grid; gap: 3px; margin-top: 12px; }
.chart-caption span { color: var(--muted); font-size: 9px; }
.chart-caption strong { font-size: 11px; }
.region-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.region-list div { min-height: 61px; padding: 11px; background: #f5f5f1; border-radius: 7px; display: grid; align-content: space-between; }
.region-list span { color: var(--muted); font-size: 9px; }
.region-list strong { font-size: 14px; }
.guide-card { background: var(--cream); }
.guide-card ul { list-style: none; padding: 0; margin: 0; }
.guide-card li { border-bottom: 1px solid rgba(23,27,24,.1); }
.guide-card li:last-child { border-bottom: 0; }
.guide-card li a { padding: 11px 0; display: flex; justify-content: space-between; font-size: 11px; font-weight: 700; }
.guide-card li span { color: var(--green); }

footer { background: #272727; color: #fff; }
.footer-inner { min-height: 300px; padding: 48px 0; display: grid; grid-template-columns: 300px 1fr; gap: 56px; align-items: stretch; }
.customer-center-card { padding: 4px 56px 4px 0; border-right: 1px solid rgba(255,255,255,.12); background: transparent; color: #e6e6e6; display: flex; flex-direction: column; align-items: flex-start; text-align: left; }
.customer-center-kicker { margin: 0 0 8px; color: #8d8d8d; font-size: 10px; font-weight: 700; letter-spacing: .13em; }
.customer-center-card h2 { margin: 0; color: #f2f2f2; font-size: 18px; font-weight: 700; letter-spacing: -.04em; }
.customer-email { margin: 14px 0 18px; color: #d8d8d8; font-size: 15px; font-weight: 600; letter-spacing: -.01em; text-decoration: underline; text-decoration-color: rgba(255,255,255,.25); text-underline-offset: 4px; transition: color .18s ease; }
.customer-email:hover { color: #fff; }
.customer-hours { margin-bottom: 18px; padding: 0; background: transparent; color: #b5b5b5; }
.customer-hours p { margin: 0; font-size: 12px; line-height: 1.8; }
.customer-hours p + p { color: #8d8d8d; }
.customer-hours span { margin-right: 7px; color: #8d8d8d; }
.customer-hours strong { font-weight: 600; color: #d0d0d0; }
.customer-center-button { min-height: 40px; margin-top: auto; padding: 0 20px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid rgba(255,255,255,.28); background: transparent; color: #e6e6e6; font-size: 12px; font-weight: 600; transition: background .18s ease, color .18s ease, border-color .18s ease; }
.customer-center-button:hover { background: #fff; border-color: #fff; color: #232323; }
.footer-company { align-self: center; }
.footer-company-head { display: grid; grid-template-columns: 190px 1fr; gap: 34px; align-items: center; margin-bottom: 27px; padding-bottom: 25px; border-bottom: 1px solid rgba(255,255,255,.12); }
.footer-company-head > p { margin: 0; max-width: 650px; color: #9b9b9b; font-size: 11px; line-height: 1.75; }
.footer-brand { justify-self: start; }
.footer-logo {
  width: 184px;
  height: auto;
  filter: grayscale(1) invert(1) contrast(1.28);
  mix-blend-mode: screen;
  opacity: .94;
}
.company-info { color: #aaa; font-size: 11px; line-height: 1.85; }
.company-info p { margin: 0; }
.company-info span { color: #9b9b9b; }
.company-info strong, .company-info a { color: #f1f1f1; font-weight: 700; }
.company-info i { display: inline-block; width: 1px; height: 10px; margin: 0 10px; background: #595959; vertical-align: -1px; }
.company-info .copyright { margin-top: 13px; color: #737373; }

/* The 1280px content shell needs a full side gutter before the QR card appears. */
@media (min-width: 1680px) {
  .app-download-float { display: block; }
}

/* Dense PC data stays compact without falling below a comfortable reading size. */
.list-labels, .result-tag, .generated-list > div > span, .generated-list > div > button,
.batch-result span, .draw-row > div:first-child span, .draw-row > button,
.utility-head button, .utility-head span, .calendar-days span, .calendar-note,
.calculator-panel > label, .calc-result span, .search-field button,
.frequency-list strong { font-size: 11px; }
.caption, .calculator-panel > p, .store-suggest > span, .store-suggest button,
.store-result span, .store-result a, .chart-caption span, .region-list span { font-size: 10px; }
.calendar-week { font-size: 10px; }

@media (max-width: 1220px) {
  .header-inner { gap: 20px; grid-template-columns: 190px 1fr; }
  .site-header nav { gap: 24px; }
  .shell, .header-inner { width: calc(100% - 48px); }
  .ball { width: 46px; height: 46px; }
  .ball-small { width: 29px; height: 29px; }
  .work-grid { grid-template-columns: minmax(0, 1.65fr) 330px; }
  .footer-inner { grid-template-columns: 280px 1fr; gap: 44px; }
  .footer-company-head { grid-template-columns: 170px 1fr; gap: 26px; }
  .footer-logo { width: 164px; }
  .app-download-float { right: 10px; width: 158px; }
}

@media (max-width: 899px) {
  html, body { max-width: 100%; overflow-x: clip; }
  body { background: #fff; }
  .desktop-site { display: block; min-width: 0; }
  .app-download-float { display: none; }
  .mobile-gate { display: none; }
  .shell, .header-inner { width: min(100% - 32px, 1280px); }
  .site-header { position: sticky; }
  .header-inner { height: 62px; display: flex; gap: 18px; overflow: hidden; }
  .brand { flex: 0 0 auto; }
  .brand-logo { width: 122px; }
  .site-header nav { flex: 1 1 auto; justify-content: flex-start; height: 62px; gap: 22px; overflow-x: auto; scrollbar-width: none; }
  .site-header nav::-webkit-scrollbar { display: none; }
  nav a { flex: 0 0 auto; min-height: 62px; font-size: 14px; }
  nav a.is-active::after { height: 2px; }
  .subpage-hero { padding: 34px 0 30px; }
  .subpage-hero h1 { font-size: clamp(28px, 8vw, 36px); }
  .subpage-hero p { font-size: 14px; }
  .footer-inner { min-height: 0; grid-template-columns: 1fr; gap: 30px; padding: 38px 0 44px; }
  .footer-company-head { grid-template-columns: 1fr; gap: 14px; margin-bottom: 18px; padding-bottom: 18px; }
  .footer-logo { width: 150px; }
  .company-info p { font-size: 11px; }
  .customer-center-card { min-height: 0; padding: 0 0 26px; border-right: 0; border-bottom: 1px solid rgba(255,255,255,.12); }
  .result-grid, .work-grid { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .section-heading, .section-title-row { align-items: flex-start; flex-direction: column; gap: 10px; }
  .section-title-row > p { margin: 0; }
  .result-panel, .countdown-panel { border-radius: 16px; }
  .result-panel { padding: 24px 20px; }
  .winning-row { min-height: 0; flex-wrap: wrap; padding: 22px 0; gap: 10px; }
  .winning-numbers { flex-wrap: wrap; gap: 8px; }
  .ball { width: 42px; height: 42px; font-size: 15px; }
  .result-summary { grid-template-columns: 1fr 1fr; gap: 16px; }
  .result-summary a { grid-column: 1 / -1; }
  .tool-section, .work-section { padding: 38px 0; }
  .review-section { margin-bottom: 38px; padding: 24px 20px; border-radius: 18px; }
  .review-section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .review-section-heading h2 { font-size: 25px; }
  .review-section-heading > p { text-align: left; }
  .review-card-grid { grid-template-columns: 1fr; }
}

/* PC 브라우저: 창을 줄여도 레이아웃을 재배치하지 않고 고정 폭 유지 (좁아지면 가로 스크롤). 터치 기기는 반응형 유지 */
/* [반응형 수정] 원본: 마우스 환경에서 화면 최소 폭 1344px 고정 → PC 창을 줄여도 반응형이 안 되던 원인이라 제거
   @media (pointer: fine) { html, body { min-width: 1344px; } } */

/* 모바일로 이어보기: 스토어 버튼 글자/아이콘 키움 */
.app-download-store-links a { min-height: 42px; gap: 6px; font-size: 11px; }
.app-download-store-links img { width: 17px; height: 17px; }
