﻿:root {
  --bg: #f6f4ee;
  --panel: #ffffff;
  --text: #1f2937;
  --sub: #6b7280;
  --primary: #0f766e;
  --primary-strong: #0b5f59;
  --danger: #b91c1c;
  --border: #e5e7eb;
  --ad: #fff6cc;
  --radius: 14px;
  --shadow: 0 10px 24px rgba(0, 0, 0, 0.06);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Noto Sans KR', sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 10%, #dff5ef 0%, transparent 25%),
    radial-gradient(circle at 90% 20%, #ffe5bd 0%, transparent 22%),
    var(--bg);
}

.has-sticky-ad {
  padding-bottom: 120px;
}

.container {
  width: min(1100px, 92vw);
  margin: 0 auto;
}

.hero {
  background: linear-gradient(135deg, #0f766e, #155e75);
  color: #fff;
  padding: 34px 0;
  position: relative;
  overflow: hidden;
}

.hero h1 {
  margin: 0 0 10px;
  font-size: clamp(1.7rem, 4vw, 2.4rem);
}

.hero p {
  margin: 0;
  opacity: 0.95;
}

.hero-main {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.hero-copy {
  max-width: 720px;
}

.hero-badge {
  min-width: 230px;
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.16));
  border-radius: 16px;
  padding: 14px 16px;
  text-align: center;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(4px);
  position: relative;
  z-index: 4;
}

.hero-badge .badge-top {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  font-weight: 700;
  opacity: 0.9;
  margin-bottom: 6px;
}

.hero-badge strong {
  font-size: 1.18rem;
  line-height: 1.25;
}

.hero-float-balls {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 160px;
  height: calc(100% - 12px);
  pointer-events: none;
  z-index: 1;
}

.hero-mid-balls {
  position: absolute;
  top: 0;
  left: 50%;
  width: 220px;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.float-ball {
  position: absolute;
  width: 46px;
  height: 46px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.86rem;
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 8px 16px rgba(2, 6, 23, 0.24);
  animation: floatSpin 9s ease-in-out infinite;
}

.float-ball.c1 {
  background: radial-gradient(circle at 30% 25%, #fff 0%, #ffe8b7 50%, #ffc95f 100%);
}

.float-ball.c2 {
  background: radial-gradient(circle at 30% 25%, #fff 0%, #d8f0ff 50%, #8fd0ff 100%);
}

.float-ball.c3 {
  background: radial-gradient(circle at 30% 25%, #fff 0%, #ffe0ea 50%, #ff9fbe 100%);
}

.float-ball.c4 {
  background: radial-gradient(circle at 30% 25%, #fff 0%, #ece3ff 50%, #c3adff 100%);
}

.float-ball.c5 {
  background: radial-gradient(circle at 30% 25%, #fff 0%, #e2f8d0 50%, #b9e28a 100%);
}

.float-ball.c6 {
  background: radial-gradient(circle at 30% 25%, #fff 0%, #ffe3cc 50%, #ffb27a 100%);
}

.float-ball.p1 {
  top: 6%;
  left: 8%;
  animation-delay: 0s;
}

.float-ball.p2 {
  top: 22%;
  left: 56%;
  animation-delay: 0.9s;
}

.float-ball.p3 {
  top: 40%;
  left: 18%;
  animation-delay: 1.8s;
}

.float-ball.p4 {
  top: 56%;
  left: 60%;
  animation-delay: 2.7s;
}

.float-ball.p5 {
  top: 74%;
  left: 24%;
  animation-delay: 3.6s;
}

.float-ball.p6 {
  top: 12%;
  left: 74%;
  animation-delay: 4.2s;
}

.float-ball.pm1 {
  width: 36px;
  height: 36px;
  top: 22%;
  left: 8%;
  animation-delay: 0.6s;
}

.float-ball.pm2 {
  width: 32px;
  height: 32px;
  top: 48%;
  left: 54%;
  animation-delay: 1.6s;
}

.float-ball.pm3 {
  width: 34px;
  height: 34px;
  top: 70%;
  left: 18%;
  animation-delay: 2.4s;
}

.float-ball.pm4 {
  width: 30px;
  height: 30px;
  top: 16%;
  left: 78%;
  animation-delay: 1s;
}

.float-ball.pm5 {
  width: 28px;
  height: 28px;
  top: 40%;
  left: 84%;
  animation-delay: 2s;
}

.float-ball.pm6 {
  width: 30px;
  height: 30px;
  top: 64%;
  left: 72%;
  animation-delay: 3s;
}

.top-nav {
  margin-top: 14px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.top-nav a,
.footer-links a {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-decoration: none;
  padding: 7px 12px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.9rem;
}

.layout {
  display: grid;
  gap: 16px;
  margin: 20px auto 28px;
}

.lotto-ribbon {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 4px 0;
}

.ribbon-ball {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  font-weight: 800;
  color: #0f172a;
  border: 1px solid #cfe0fb;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #e9f1ff 55%, #cddfff 100%);
  box-shadow: 0 5px 12px rgba(30, 64, 175, 0.15);
  animation: bob 3.6s ease-in-out infinite;
}

.ribbon-ball.rb1 {
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #ffe3b4 55%, #ffc56a 100%);
}

.ribbon-ball.rb2 {
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #d9f0ff 55%, #9fd6ff 100%);
}

.ribbon-ball.rb3 {
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #ffdbe7 55%, #ffabc4 100%);
}

.ribbon-ball.rb4 {
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #ece1ff 55%, #cdb6ff 100%);
}

.ribbon-ball.rb5 {
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #e5f8d5 55%, #bfe79a 100%);
}

.ribbon-ball.rb6 {
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #ffe8d3 55%, #ffbe8a 100%);
}

.lotto-ribbon .ribbon-ball:nth-child(2) { animation-delay: 0.25s; }
.lotto-ribbon .ribbon-ball:nth-child(3) { animation-delay: 0.5s; }
.lotto-ribbon .ribbon-ball:nth-child(4) { animation-delay: 0.75s; }
.lotto-ribbon .ribbon-ball:nth-child(5) { animation-delay: 1s; }
.lotto-ribbon .ribbon-ball:nth-child(6) { animation-delay: 1.25s; }

.lotto-ribbon.subtle .ribbon-ball {
  width: 30px;
  height: 30px;
  font-size: 0.72rem;
  opacity: 0.9;
}

.static-page {
  display: grid;
  gap: 16px;
  margin: 20px auto 28px;
}

.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: var(--shadow);
}

.card h2 {
  margin: 0 0 12px;
}

.card h3 {
  margin: 16px 0 10px;
}

.quick-info {
  border: 1px solid #d6efe9;
  background: linear-gradient(140deg, #ffffff, #f3fffb);
}

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

.quick-item {
  border: 1px solid #d7e8e3;
  border-radius: 12px;
  padding: 12px;
  background: #ffffff;
}

.quick-item h3 {
  margin: 0 0 8px;
  font-size: 1rem;
  color: #0f766e;
}

.quick-item p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

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

.strategy-spotlight {
  border: 1px solid #8dd6cd;
  background: linear-gradient(135deg, #ebfffb, #f6ffec);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
}

.strategy-spotlight label {
  font-size: 1rem;
}

.strategy-spotlight select {
  border-color: #65b9ae;
  font-weight: 700;
}

.strategy-help {
  margin-top: 10px;
  border: 1px solid #c7e7e2;
  background: #f8fffd;
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 0.9rem;
  color: #155e75;
  font-weight: 600;
}

.mode-cards {
  display: grid;
  gap: 8px;
}

.mode-card {
  border: 1px solid #cde6e2;
  background: #f8fffd;
  border-radius: 10px;
  padding: 10px;
  font-weight: 700;
  color: #0f766e;
  cursor: help;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 600;
  font-size: 0.96rem;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
}

.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.btn {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 10px;
  padding: 10px 14px;
  cursor: pointer;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

.btn-primary:hover {
  background: var(--primary-strong);
}

.btn-danger {
  border-color: var(--danger);
  color: var(--danger);
}

.ticket-list,
.recent-draws {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ticket,
.recent-item,
.saved-item {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 10px;
  background: #fafafa;
}

.premium-ticket {
  align-items: center;
  border: 1px solid #cde6e2;
  background: linear-gradient(135deg, #ffffff, #f3fffb);
  padding: 12px;
}

.ticket-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.num-ball {
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.98rem;
  color: #0b1220;
  border: 1px solid #cfd8ea;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #eef3ff 45%, #d9e4ff 100%);
  box-shadow: 0 4px 10px rgba(16, 116, 106, 0.16);
}

.num-ball.tier-1 {
  border-color: #f6c36f;
  background: radial-gradient(circle at 30% 25%, #fffef9 0%, #ffe6b8 48%, #ffd27d 100%);
}

.num-ball.tier-2 {
  border-color: #8ecaf5;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #d9efff 45%, #adddff 100%);
}

.num-ball.tier-3 {
  border-color: #f59db0;
  background: radial-gradient(circle at 30% 25%, #fffdfd 0%, #ffd9e2 45%, #ffb7c8 100%);
}

.num-ball.tier-4 {
  border-color: #c6b0f7;
  background: radial-gradient(circle at 30% 25%, #ffffff 0%, #ece3ff 45%, #d4c2ff 100%);
}

.num-ball.tier-5 {
  border-color: #b4d68a;
  background: radial-gradient(circle at 30% 25%, #fcfff9 0%, #e4f3cf 45%, #cbe8a9 100%);
}

.bonus-ball {
  box-shadow: 0 0 0 2px #ffffff inset, 0 6px 12px rgba(0, 0, 0, 0.14);
}

.ticket-line {
  min-width: 68px;
  text-align: right;
  color: #0f766e;
  font-size: 1.02rem;
}

.saved-ticket {
  align-items: center;
  border: 1px solid #d9e6ff;
  background: linear-gradient(135deg, #ffffff, #f6f9ff);
}

.saved-numbers {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-line {
  min-width: 68px;
  text-align: right;
  color: #1d4ed8;
  font-size: 0.98rem;
}

.draw-box {
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  background: #f8fffc;
}

.balls,
.balls-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.bonus-wrap,
.balls-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.plus {
  font-size: 1rem;
  font-weight: 800;
  color: #334155;
}

.draw-summary {
  margin: 0 0 10px;
  color: #0f172a;
}

.draw-tools {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.draw-status {
  color: #475569;
  font-size: 0.88rem;
  font-weight: 600;
}

.winning-balls {
  border: 1px solid #dbe8ff;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #fcfdff, #f3f8ff);
}

.draw-legend {
  margin-top: 10px;
  color: #475569;
  font-size: 0.9rem;
  font-weight: 600;
}

.first-prize-box {
  margin-top: 12px;
  border: 1px solid #f5e2a5;
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(135deg, #fffdf3, #fff8db);
}

.first-prize-box h3 {
  margin: 0 0 10px;
}

.first-prize-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.first-prize-item {
  border: 1px solid #f2e4b8;
  border-radius: 10px;
  padding: 10px;
  background: #fffef6;
}

.first-prize-item .label {
  display: block;
  color: #6b7280;
  font-size: 0.88rem;
  margin-bottom: 5px;
}

.seo-section p {
  line-height: 1.7;
}

.seo-section a {
  color: #0f766e;
  font-weight: 700;
  text-decoration: none;
}

.muted {
  color: var(--sub);
}

.ad-slot {
  border: 2px dashed #f2cc49;
  border-radius: var(--radius);
  background: var(--ad);
  padding: 18px;
  text-align: center;
}

.ad-slot p {
  margin: 0;
  font-weight: 700;
}

.ad-slot small {
  color: #7c6500;
}

.bottom-ad-wrap {
  margin: 10px auto 8px;
}

.ad-bottom-large {
  min-height: 160px;
  display: grid;
  align-content: center;
  gap: 8px;
  border-style: solid;
  background: linear-gradient(135deg, #fff3c4, #ffe59a);
}

.side-ad {
  position: fixed;
  top: 220px;
  width: 140px;
  z-index: 5;
}

.side-ad-left {
  left: 16px;
}

.side-ad-right {
  right: 16px;
}

.ad-vertical {
  min-height: 420px;
  display: grid;
  align-content: start;
  gap: 8px;
}

.sticky-bottom-ad {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(980px, calc(100% - 24px));
  z-index: 20;
  padding: 0 0 8px;
}

.sticky-inner {
  border: 2px solid #f2cc49;
  border-radius: 14px;
  background: linear-gradient(135deg, #fff3c4, #ffe59a);
  padding: 12px;
  text-align: center;
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.15);
}

.sticky-inner p {
  margin: 0;
  font-weight: 800;
}

.sticky-inner small {
  color: #7c6500;
}

.footer {
  color: var(--sub);
  padding: 0 0 30px;
  text-align: center;
}

.footer-links {
  margin-top: 10px;
}

.footer-links a {
  color: #334155;
  background: #e2e8f0;
  border-color: #cbd5e1;
}

.footer-note {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #64748b;
}

.plain-list {
  margin: 0;
  padding-left: 20px;
  line-height: 1.7;
}

.contact-email {
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f766e;
  text-decoration: none;
}

@keyframes floatSpin {
  0% { transform: translateY(0) rotate(0deg) scale(1); }
  30% { transform: translateY(-9px) rotate(8deg) scale(1.04); }
  60% { transform: translateY(4px) rotate(-6deg) scale(0.98); }
  100% { transform: translateY(0) rotate(0deg) scale(1); }
}

@keyframes bob {
  0% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0); }
}

@media (max-width: 1400px) {
  .side-ad {
    display: none;
  }
}

@media (max-width: 800px) {
  .has-sticky-ad {
    padding-bottom: 110px;
  }

  .hero-main {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-badge {
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .hero-float-balls {
    display: none;
  }

  .hero-mid-balls {
    display: none;
  }

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

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

  .recent-item,
  .saved-item {
    flex-direction: column;
  }

  .premium-ticket {
    align-items: flex-start;
  }

  .ticket-line,
  .saved-line {
    text-align: left;
  }

  .first-prize-grid {
    grid-template-columns: 1fr;
  }

  .sticky-bottom-ad {
    width: calc(100% - 12px);
    padding-bottom: 6px;
  }

  .sticky-inner {
    padding: 10px 8px;
  }
}
