:root {
  --bg-top: #f7efe4;
  --bg-bottom: #dbe7f3;
  --card: rgba(255, 250, 244, 0.88);
  --card-strong: rgba(255, 255, 255, 0.95);
  --text: #1d1f24;
  --muted: #5d6470;
  --accent: #c44d2d;
  --accent-dark: #872e19;
  --line: rgba(29, 31, 36, 0.08);
  --shadow: 0 24px 60px rgba(37, 29, 20, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Space Grotesk", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 184, 107, 0.35), transparent 24%),
    radial-gradient(circle at bottom right, rgba(74, 144, 226, 0.22), transparent 30%),
    linear-gradient(160deg, var(--bg-top), var(--bg-bottom));
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.22) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.25), transparent 75%);
}

.page-shell {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 48px 0 56px;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 32px;
}

.brand {
  color: var(--text);
  text-decoration: none;
  font-family: "Do Hyeon", sans-serif;
  font-size: 1.7rem;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.site-nav a,
.footer-links a,
.link-button {
  color: var(--text);
  text-decoration: none;
}

.site-nav a {
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.75);
}

.hero {
  margin-bottom: 28px;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 24px;
  align-items: end;
}

.eyebrow,
.section-label {
  margin: 0 0 8px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.76rem;
  color: var(--accent-dark);
}

.hero h1,
.card-head h2 {
  margin: 0;
  font-family: "Do Hyeon", sans-serif;
  font-weight: 400;
}

.hero h1 {
  font-size: clamp(2.6rem, 7vw, 5.2rem);
  line-height: 0.95;
  max-width: 10ch;
}

.hero-copy {
  max-width: 54ch;
  margin: 16px 0 0;
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 22px;
}

.hero-panel {
  display: grid;
  gap: 14px;
}

.mini-stat,
.info-card,
.content-card,
.faq-card,
.page-hero {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.mini-stat {
  padding: 18px 20px;
}

.mini-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.86rem;
}

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

.content-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.article-section {
  margin-bottom: 20px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.article-card {
  padding: 24px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.article-card h3 {
  margin: 0;
  font-family: "Do Hyeon", sans-serif;
  font-size: 1.8rem;
  font-weight: 400;
}

.article-card h3 a {
  color: var(--text);
  text-decoration: none;
}

.article-card p:last-child {
  color: var(--muted);
  line-height: 1.7;
}

.info-card,
.content-card,
.faq-card,
.page-hero {
  padding: 28px;
}

.info-card h2,
.content-card h2,
.page-hero h1,
.section-intro h2,
.faq-item h3 {
  margin: 0;
  font-family: "Do Hyeon", sans-serif;
  font-weight: 400;
}

.info-card h2,
.content-card h2,
.section-intro h2 {
  font-size: 2rem;
}

.info-card p,
.content-card p,
.faq-item p,
.page-hero p {
  color: var(--muted);
  line-height: 1.7;
}

.content-list {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.8;
}

.card-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.draw-card,
.history-card {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.draw-card {
  padding: 28px;
}

.history-card {
  padding: 24px;
}

.card-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.card-head h2 {
  font-size: 2rem;
}

.draw-button,
.ghost-button {
  border: 0;
  border-radius: 999px;
  padding: 14px 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.draw-button {
  color: #fffaf1;
  background: linear-gradient(135deg, var(--accent), #db7a45);
  box-shadow: 0 12px 26px rgba(196, 77, 45, 0.28);
}

.ghost-button {
  color: var(--text);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.draw-button:hover,
.ghost-button:hover {
  transform: translateY(-2px);
}

.numbers-panel {
  margin-top: 28px;
  padding: 22px;
  border-radius: 24px;
  background: var(--card-strong);
  border: 1px solid var(--line);
}

.ball-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ball {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  color: #132033;
  background: #f1efe9;
  border: 2px solid rgba(19, 32, 51, 0.08);
  box-shadow: inset 0 -8px 16px rgba(0, 0, 0, 0.08);
}

.ball.placeholder {
  color: #94a0af;
  background: #eef2f5;
}

.ball.bonus {
  color: white;
  background: linear-gradient(135deg, #334c89, #4f79c7);
}

.bonus-wrap {
  margin-top: 22px;
}

.ball.band-yellow {
  background: linear-gradient(135deg, #ffd05c, #ffea9c);
}

.ball.band-blue {
  background: linear-gradient(135deg, #8cc7ff, #d8f0ff);
}

.ball.band-red {
  background: linear-gradient(135deg, #ff8d7d, #ffd3cd);
}

.ball.band-gray {
  background: linear-gradient(135deg, #d2d7df, #eef2f6);
}

.ball.band-green {
  background: linear-gradient(135deg, #8fe3a2, #dff8e5);
}

.draw-summary {
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.history-list {
  list-style: none;
  padding: 0;
  margin: 24px 0 0;
  display: grid;
  gap: 12px;
}

.history-item,
.history-empty {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.history-empty {
  color: var(--muted);
}

.history-draw {
  margin: 0 0 8px;
  font-size: 0.95rem;
  color: var(--muted);
}

.history-numbers {
  margin: 0;
  font-weight: 700;
  line-height: 1.5;
}

.faq-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.faq-item {
  padding: 18px 20px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.62);
  border: 1px solid var(--line);
}

.faq-item h3 {
  font-size: 1.4rem;
}

.faq-item p {
  margin-bottom: 0;
}

.contact-card {
  margin-top: 20px;
  padding: 28px;
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) 1.4fr;
  gap: 24px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.contact-copy h2 {
  margin: 0;
  font-family: "Do Hyeon", sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
}

.contact-copy p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.field {
  display: grid;
  gap: 8px;
}

.field span {
  font-size: 0.94rem;
  font-weight: 700;
}

.field input,
.field textarea {
  width: 100%;
  border: 1px solid rgba(29, 31, 36, 0.14);
  border-radius: 16px;
  padding: 14px 16px;
  font: inherit;
  color: var(--text);
  background: rgba(255, 255, 255, 0.82);
  transition: border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: rgba(196, 77, 45, 0.5);
  box-shadow: 0 0 0 4px rgba(196, 77, 45, 0.12);
  background: rgba(255, 255, 255, 0.96);
}

.field textarea {
  resize: vertical;
  min-height: 140px;
}

.field-full,
.form-actions {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  gap: 16px;
  align-items: center;
}

.form-status {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.form-status.is-success {
  color: #1d6b42;
}

.form-status.is-error {
  color: #9f2f23;
}

.comments-card {
  margin-top: 20px;
  padding: 28px;
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 28px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.comments-copy h2 {
  margin: 0;
  font-family: "Do Hyeon", sans-serif;
  font-size: 2.2rem;
  font-weight: 400;
}

.comments-copy p:last-child {
  margin: 14px 0 0;
  color: var(--muted);
  line-height: 1.7;
}

.comments-frame {
  margin-top: 22px;
  padding: 20px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--line);
}

.content-stack {
  display: grid;
  gap: 20px;
}

.page-hero {
  margin-bottom: 20px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  margin-top: 24px;
  padding: 24px 0 0;
  color: var(--muted);
}

.site-footer p {
  margin: 0;
  max-width: 64ch;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

@media (max-width: 860px) {
  .site-header,
  .site-footer,
  .hero-grid,
  .info-grid,
  .content-grid,
  .article-grid {
    grid-template-columns: 1fr;
  }

  .site-header,
  .site-footer {
    flex-direction: column;
    align-items: start;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .card-head {
    flex-direction: column;
  }

  .draw-button,
  .ghost-button {
    width: 100%;
  }

  .contact-card {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .page-shell {
    width: min(100% - 20px, 1120px);
    padding-top: 28px;
  }

  .draw-card,
  .history-card,
  .contact-card,
  .comments-card,
  .mini-stat,
  .info-card,
  .content-card,
  .article-card,
  .faq-card,
  .page-hero {
    padding: 18px;
    border-radius: 22px;
  }

  .numbers-panel {
    padding: 16px;
  }

  .ball {
    width: 52px;
    height: 52px;
    font-size: 1rem;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .form-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
