:root {
  --bg: #f2f6f2;
  --ink: #111827;
  --ink-soft: #475569;
  --card: #ffffff;
  --brand: #0f7a57;
  --brand-2: #ea7c14;
  --line: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 10%, #d4f5e2 0%, transparent 32%),
    radial-gradient(circle at 88% 84%, #ffe5c9 0%, transparent 34%),
    var(--bg);
}

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

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px min(30px, 4vw);
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}

.logo {
  font-family: "Bebas Neue", sans-serif;
  font-size: 1.4rem;
  letter-spacing: 0.08em;
  color: var(--brand);
}

.topbar nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.topbar nav a {
  font-size: 0.92rem;
  color: #334155;
  padding: 6px 10px;
  border-radius: 999px;
}

.topbar nav a:hover {
  background: #e9f8f1;
  color: #0a6d4d;
}

.bg-shape {
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  filter: blur(34px);
  opacity: 0.5;
}

.bg-shape.one {
  width: 300px;
  height: 300px;
  right: -70px;
  top: -80px;
  background: #86efc5;
}

.bg-shape.two {
  width: 220px;
  height: 220px;
  left: -50px;
  bottom: -70px;
  background: #ffd9ad;
}

.container {
  width: min(1060px, 92vw);
  margin: 28px auto 40px;
  display: grid;
  gap: 18px;
}

.hero {
  border-radius: 22px;
  padding: 30px 24px;
  background: linear-gradient(135deg, #0f7a57, #1f9a70 56%, #36b884);
  color: #fff;
  box-shadow: 0 20px 40px rgba(16, 34, 27, 0.2);
}

.kicker {
  margin: 0;
  display: inline-block;
  font-family: "Bebas Neue", sans-serif;
  letter-spacing: 0.11em;
  font-size: 1rem;
  padding: 4px 10px;
  border: 1px solid rgba(255, 255, 255, 0.44);
  border-radius: 999px;
}

.hero h1 {
  margin: 12px 0 8px;
  font-family: "Noto Serif KR", serif;
  font-size: clamp(2rem, 4.8vw, 3.1rem);
  line-height: 1.24;
  letter-spacing: -0.02em;
}

.hero-desc {
  margin: 0;
  color: rgba(255, 255, 255, 0.92);
  font-weight: 500;
}

.ad-card,
.card,
.info-card {
  background: var(--card);
  border-radius: 18px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.ad-card {
  padding: 14px;
}

.ad-card p {
  margin: 0 0 8px;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.ad-slot {
  min-height: 90px;
}

.card {
  padding: 20px;
}

.card h2 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: 1.35rem;
}

.card h3,
.page h2 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
  font-size: 1.08rem;
}

.section-desc {
  margin: 8px 0 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.content-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.content-grid article {
  border: 1px solid #e9eef5;
  border-radius: 12px;
  background: #f8fbff;
  padding: 14px;
}

.content-grid p {
  margin: 8px 0 0;
  color: #334155;
  line-height: 1.7;
}

.updated-note {
  margin: 12px 0 0;
  color: #64748b;
  font-size: 0.88rem;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list article {
  border: 1px solid #e9eef5;
  border-radius: 12px;
  background: #f8fbff;
  padding: 12px;
}

.faq-list p {
  margin: 8px 0 0;
  color: #334155;
  line-height: 1.7;
}

.controls {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.preset-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.preset-row > span {
  font-size: 0.86rem;
  color: #334155;
  margin-right: 4px;
}

.preset-btn {
  border: 1px solid #bfd2e8;
  background: #eef5ff;
  color: #1e3a5f;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 7px 12px;
}

.preset-btn:hover {
  background: #e2efff;
}

.option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.picker-panel {
  border: 1px solid #e5edf6;
  border-radius: 12px;
  background: #f8fbff;
  padding: 10px;
}

.picker-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: #334155;
}

.mini-actions {
  display: flex;
  gap: 6px;
}

.picker-head button {
  padding: 6px 10px;
  font-size: 0.78rem;
  border-radius: 999px;
}

.number-picker {
  display: grid;
  grid-template-columns: repeat(9, minmax(0, 1fr));
  gap: 5px;
}

.pick-btn {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 6px 0;
  background: #fff;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.pick-btn:hover {
  background: #eef6ff;
}

.pick-btn.active-include {
  background: #0f7a57;
  color: #fff;
  border-color: #0f7a57;
}

.pick-btn.active-exclude {
  background: #9f1239;
  color: #fff;
  border-color: #9f1239;
}

.pick-btn.active-lastdraw {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

.picker-summary {
  margin: 8px 0 0;
  font-size: 0.82rem;
  color: #475569;
}

.option-grid label {
  display: grid;
  gap: 6px;
  font-size: 0.88rem;
  color: #334155;
}

.inline-check {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-height: 42px;
}

.inline-check input[type="checkbox"] {
  width: auto;
}

.row-wrap {
  flex-wrap: wrap;
}

label {
  color: #334155;
  font-size: 0.9rem;
}

button,
select,
input {
  font: inherit;
  border-radius: 10px;
  padding: 10px 12px;
}

select,
input {
  border: 1px solid #cbd5e1;
  background: #fff;
}

button {
  border: none;
  background: linear-gradient(135deg, var(--brand), #1a9a6e);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

button:hover {
  filter: brightness(1.04);
}

.number-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}

.number-set {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  background: #f8fafc;
  border: 1px solid #e9eef5;
}

.ball {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  font-size: 0.9rem;
  font-weight: 800;
  color: #fff;
}

.bonus-label {
  margin-left: 4px;
  color: #475569;
  font-size: 0.9rem;
}

.result-box {
  min-height: 78px;
  border-radius: 12px;
  border: 1px solid #e8edf4;
  background: #fbfdff;
  padding: 14px;
  line-height: 1.55;
}

.result-meta {
  margin: 10px 0 0;
  color: #334155;
}

.store-list {
  margin: 8px 0 0;
  padding-left: 18px;
  color: #1f2937;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.info-card {
  padding: 16px;
}

.info-card h3 {
  margin: 0;
  font-family: "Noto Serif KR", serif;
}

.info-card p {
  margin: 8px 0 0;
  color: var(--ink-soft);
}

.footer {
  padding: 20px min(30px, 4vw) 32px;
  text-align: center;
  color: #475569;
  font-size: 0.92rem;
}

.page {
  width: min(850px, 92vw);
  margin: 34px auto;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.07);
}

.page h1 {
  margin-top: 0;
  font-family: "Noto Serif KR", serif;
}

.page p,
.page li {
  color: #334155;
  line-height: 1.7;
}

.page ul {
  margin-top: 8px;
}

@media (max-width: 820px) {
  .topbar {
    position: static;
  }

  .topbar nav {
    gap: 6px;
  }

  .content-grid,
  .info-grid,
  .option-grid {
    grid-template-columns: 1fr;
  }

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

  .controls {
    align-items: stretch;
  }

  button,
  select,
  input {
    width: 100%;
  }

  .preset-row .preset-btn {
    width: auto;
  }
}
