.analysis-article .ai-generated-content h2 + p {
    margin-top: 12px;
}

.analysis-article .ai-generated-content ul,
.analysis-article .ai-generated-content ol {
    margin: 20px 0 28px 0;
    padding: 0;
    list-style: none;
    color: #374151;
}

.analysis-article .ai-generated-content li {
    margin-bottom: 10px;
    line-height: 1.8;
    padding: 14px 18px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    position: relative;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.analysis-article .ai-generated-content li::before {
    content: "•";
    position: absolute;
    left: 8px;
    color: #9ca3af;
    font-weight: normal;
    font-size: 1.2em;
    top: 14px;
    opacity: 0.6;
}

.analysis-article .ai-generated-content li:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

/* 금액 강조 스타일 */
.analysis-article .ai-generated-content li strong {
    color: #1d4ed8;
    font-weight: 700;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: inline;
    margin: 0;
    box-shadow: none;
}

/* 첫 번째 리스트 항목 강조 (보통 제목이나 중요한 정보) */
.analysis-article .ai-generated-content ul > li:first-child {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 16px 20px;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

/* 두 번째 리스트 항목 강조 */
.analysis-article .ai-generated-content ul > li:nth-child(2) {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    padding: 16px 20px;
    font-weight: 600;
    margin-bottom: 12px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.analysis-article .ai-generated-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.analysis-article .ai-generated-content th,
.analysis-article .ai-generated-content td {
    padding: 12px 14px;
    border-bottom: 1px solid #e5e7eb;
    text-align: left;
}

.analysis-article .ai-generated-content th {
    background: #f3f4f6;
    color: #1f2937;
    font-weight: 600;
}
@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+KR:wght@300;400;500;700&display=swap');
:root {
  --c-text-primary: #282a32;
  --c-text-secondary: #686b87;
  --c-text-action: #404089;
  --c-accent-primary: #434ce8;
  --c-accent-secondary: #fbc400;
  --c-accent: #fbc400;
  --c-primary: #434ce8;
  --c-primary-dark: #3a41d1;
  --c-border: #eff1f6;
  --c-border-primary: #eff1f6;
  --c-background-primary: #ffffff;
  --c-background-secondary: #fdfcff;
  --c-background-tertiary: #ecf3fe;
  --c-background-quaternary: #e9ecf4;
  --c-success: #28a745;
  --c-danger: #dc3545;
  --c-warning: #ffc107;
  --c-info: #17a2b8;
}

body {
  line-height: 1.5;
  min-height: 100vh;
  font-family: "Noto Sans KR", sans-serif;
  background-color: var(--c-background-secondary);
  color: var(--c-text-primary);
}

img {
  display: block;
  max-width: 100%;
}

:focus {
  outline: 0;
}

.responsive-wrapper {
  width: 90%;
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
}

.header {
  display: flex;
  align-items: center;
  height: 80px;
  border-bottom: 1px solid var(--c-border-primary);
  background-color: var(--c-background-primary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo {
  margin-right: 2.5rem;
  flex-shrink: 0;
}

.header-logo a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--c-text-primary);
}

.header-logo a h1 {
  font-size: 1.3rem;
  font-weight: 700;
  margin: 0;
  white-space: nowrap;
}

.header-logo a h1 i {
  color: var(--c-accent-secondary);
  margin-right: 0.5rem;
}

.header-navigation {
  display: flex;
  align-items: center;
  position: relative;
  flex: 1;
  justify-content: flex-end;
  min-width: 0;
}

.header-navigation-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  flex-wrap: nowrap;
  align-items: center;
}

@media (max-width: 1200px) {
  .header-navigation-links {
    gap: 1rem;
  }
}

@media (max-width: 1024px) {
  .header-navigation-links {
    gap: 0.75rem;
  }
  
  .header-navigation-links a {
    padding: 0.5rem 0.75rem;
  }
  
  .header-navigation-links a span {
    font-size: 0.85rem;
  }
}

.header-navigation-links a {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: var(--c-text-secondary);
  font-weight: 500;
  transition: all 0.3s ease;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  position: relative;
  white-space: nowrap;
  flex-shrink: 0;
}

.header-navigation-links a i {
  margin-right: 0.5rem;
  font-size: 0.9rem;
}

.header-navigation-links a span {
  font-size: 0.9rem;
}

.header-navigation-links a:hover {
  color: var(--c-accent-primary);
  background: var(--c-background-tertiary);
}

.header-navigation-links a.active {
  color: var(--c-accent-primary);
  background: var(--c-background-tertiary);
  font-weight: 600;
}

.header-navigation-links a.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 2px;
  background: var(--c-accent-primary);
  border-radius: 1px;
}

/* 햄버거 메뉴 버튼 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-around;
  width: 30px;
  height: 30px;
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  z-index: 1001;
  position: relative;
}

.mobile-menu-toggle span {
  width: 100%;
  height: 3px;
  background: #333333;
  border-radius: 2px;
  transition: all 0.3s ease;
  transform-origin: center;
  display: block;
}

.mobile-menu-toggle.active span:nth-child(1) {
  transform: rotate(45deg) translate(6px, 6px);
}

.mobile-menu-toggle.active span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
  transform: rotate(-45deg) translate(6px, -6px);
}

/* 모바일 메뉴 오버레이 */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  z-index: 999;
}

.mobile-menu-overlay.active {
  display: block;
}

/* 모바일 메뉴 패널 */
.mobile-menu-panel {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100vh;
  background: #ffffff;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  z-index: 1002;
  transition: right 0.3s ease;
  padding: 80px 0 0 0;
  overflow-y: auto;
  display: none;
  border-left: 1px solid #e0e0e0;
}

.mobile-menu-panel.active {
  right: 0;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.mobile-menu-panel .header-navigation-links {
  flex-direction: column;
  gap: 0;
  padding: 0;
  width: 100%;
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.mobile-menu-panel .header-navigation-links a {
  display: flex !important;
  align-items: center;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--c-border-primary);
  color: var(--c-text-primary);
  font-size: 1rem;
  font-weight: 500;
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  visibility: visible !important;
  opacity: 1 !important;
}

.mobile-menu-panel .header-navigation-links a:hover {
  background: var(--c-background-tertiary);
  color: var(--c-accent-primary);
  padding-left: 2.5rem;
}

.mobile-menu-panel .header-navigation-links a.active {
  background: var(--c-background-tertiary);
  color: var(--c-accent-primary);
  font-weight: 600;
  border-left: 4px solid var(--c-accent-primary);
}

.mobile-menu-panel .header-navigation-links a i {
  margin-right: 1rem;
  font-size: 1.1rem;
  width: 20px;
  text-align: center;
  color: var(--c-accent-primary);
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.mobile-menu-panel .header-navigation-links a span {
  font-size: 1rem;
  color: var(--c-text-primary);
  display: inline-block !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.button {
  display: inline-flex;
  align-items: center;
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 8px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.button i {
  margin-right: 0.5rem;
}

.button.primary-button {
  background-color: var(--c-accent-primary);
  color: white;
}

.button.primary-button:hover {
  background-color: #3a41d1;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(67, 76, 232, 0.3);
}

.button.secondary-button {
  background-color: var(--c-background-tertiary);
  color: var(--c-text-primary);
  border: 1px solid var(--c-border-primary);
}

.button.secondary-button:hover {
  background-color: var(--c-background-quaternary);
  transform: translateY(-1px);
}

.main {
  padding: 2rem 0;
}

.section {
  margin: 3rem 0;
}

.content-header {
  margin-bottom: 2rem;
  text-align: center;
}

.content-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--c-text-primary);
}

.content-header h2 i {
  color: var(--c-accent-secondary);
  margin-right: 0.5rem;
}

.content-header p {
  font-size: 1.1rem;
  color: var(--c-text-secondary);
  margin: 0;
}

.content-header-intro h2 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.content-header-intro p {
  font-size: 1rem;
  color: var(--c-text-secondary);
  margin-bottom: 0.5rem;
}

.horizontal-tabs {
  display: none !important;
}

.content {
  margin-bottom: 2rem;
}

.content-main {
  margin-bottom: 2rem;
}

.card-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

/* 번호 설정 카드 스타일 개선 */
.card {
  background: var(--c-background-primary);
  border-radius: 16px;
  padding: 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--c-border-primary);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--c-accent-primary), var(--c-accent-secondary));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::before {
  opacity: 1;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--c-border-primary);
}

.card-header div {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.card-header div h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text-primary);
}

.card-header div i {
  font-size: 1.2rem;
  color: var(--c-accent-primary);
}

.card-header div .ball_645 {
  width: 32px !important;
  height: 32px !important;
  line-height: 28px !important;
  font-size: 14px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.card-body {
  margin-bottom: 1rem;
}

.card-footer {
  font-size: 0.9rem;
  color: var(--c-text-secondary);
  text-align: center;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border-primary);
  font-style: italic;
}

/* 토글 스타일 개선 */
.toggle {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 30px;
  cursor: pointer;
}

.toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle span {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #ccc;
  transition: 0.4s;
  border-radius: 30px;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle span:before {
  position: absolute;
  content: "";
  height: 24px;
  width: 24px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.4s;
  border-radius: 50%;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.toggle input:checked + span {
  background: linear-gradient(135deg, var(--c-accent-primary), #6366f1);
}

.toggle input:checked + span:before {
  transform: translateX(30px);
}

/* 행운번호 설정 카드 특별 스타일 */
.lucky-number-card {
  border: 2px solid var(--c-accent-secondary);
  background: linear-gradient(135deg, #fff9e6 0%, #fff 100%);
}

.lucky-number-card::before {
  background: linear-gradient(90deg, var(--c-accent-secondary), #ffd700);
}

.lucky-number-card .card-header div .ball_645 {
  background: var(--c-accent-secondary) !important;
  color: #fff !important;
  text-shadow: 0px 0px 3px rgba(73, 57, 0, .8) !important;
}

/* 번호 선택 영역 개선 */
.numbers {
  display: none; /* 기본적으로 숨김, 토글 시 표시 */
  grid-template-columns: repeat(10, 1fr);
  gap: 0.5rem;
  padding: 1rem;
  background: var(--c-background-tertiary);
  border-radius: 12px;
  margin-bottom: 1rem;
  min-height: 200px;
}

.numbers .lotto-checkbox {
  display: none;
}

.numbers .lotto-checkbox + label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-weight: 600;
  font-size: 0.75rem;
  cursor: pointer;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  color: white;
  text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.8);
}

.numbers .lotto-checkbox + label:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.numbers .lotto-checkbox:checked + label {
  border-color: white;
  box-shadow: 0 0 0 3px var(--c-accent-primary), 0 4px 12px rgba(0, 0, 0, 0.3);
  transform: scale(1.1);
}

.numbers .lotto-checkbox.ball1 + label {background:#fbc400; text-shadow: 0px 0px 3px rgba(73, 57, 0, .8)}
.numbers .lotto-checkbox.ball2 + label {background:#69c8f2; text-shadow: 0px 0px 3px rgba(0, 49, 70, .8)}
.numbers .lotto-checkbox.ball3 + label {background:#ff7272; text-shadow: 0px 0px 3px rgba(64, 0, 0, .8)}
.numbers .lotto-checkbox.ball4 + label {background:#aaa; text-shadow: 0px 0px 3px rgba(61, 61, 61, .8)}
.numbers .lotto-checkbox.ball5 + label {background:#b0d840; text-shadow: 0px 0px 3px rgba(41, 56, 0, .8)}

/* 선택된 번호 표시 영역 */
.current {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 1rem;
  background: linear-gradient(135deg, #e3f2fd, #f3e5f5);
  border-radius: 12px;
  border: 2px dashed var(--c-accent-primary);
  min-height: 60px;
  align-items: center;
}

.current .ball {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-weight: 700;
  font-size: 1rem;
  color: white;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  position: relative;
}

.current .ball:hover {
  transform: scale(1.1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.current .ball::after {
  content: '×';
  position: absolute;
  top: -5px;
  right: -5px;
  background: #dc3545;
  color: white;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.current .ball:hover::after {
  opacity: 1;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}

.save-btn, .share-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
}

.save-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.save-btn:hover {
  background: linear-gradient(135deg, #218838, #1ea085);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.share-btn {
  background: linear-gradient(135deg, #17a2b8, #6f42c1);
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.share-btn:hover {
  background: linear-gradient(135deg, #138496, #5a32a3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.number-info {
  padding: 1.5rem;
  background: var(--c-background-primary);
}

.stats-info {
  margin-bottom: 1rem;
}

.stats-info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
}

.stats-info strong {
  color: var(--c-accent-primary);
  font-weight: 700;
}

.wish-message {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 1px solid #ffeaa7;
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
  font-weight: 600;
  color: #856404;
  font-size: 1rem;
}

.wish-message i {
  color: #f39c12;
  margin-right: 0.5rem;
}

.generation-time {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border-primary);
}

.generation-time small {
  color: var(--c-text-secondary);
  font-size: 0.85rem;
}

.generation-time i {
  margin-right: 0.25rem;
  color: var(--c-accent-secondary);
}

/* FAQ 스타일 */
.faq-container {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background-color: var(--c-background-primary);
  border: 1px solid var(--c-border-primary);
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.faq-question:hover {
  background-color: var(--c-background-tertiary);
}

.faq-question h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--c-text-primary);
}

.faq-question i {
  color: var(--c-accent-primary);
  transition: transform 0.3s ease;
}

.faq-answer {
  display: none;
  padding: 0 1.5rem 1.5rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
}

/* 저장된 번호 스타일 */
.saved-numbers-container {
  max-width: 800px;
  margin: 0 auto;
}

.saved-number-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--c-background-primary);
  border: 1px solid var(--c-border-primary);
  border-radius: 8px;
  padding: 1rem;
  margin-bottom: 1rem;
  transition: all 0.3s ease;
}

.saved-number-item:hover {
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.saved-number-balls {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.saved-number-info {
  flex: 1;
  margin: 0 1rem;
}

.saved-number-info p {
  margin: 0.25rem 0;
  font-size: 0.9rem;
  color: var(--c-text-secondary);
}

.delete-btn {
  background-color: var(--c-danger);
  color: white;
  border: none;
  border-radius: 4px;
  padding: 0.5rem;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.delete-btn:hover {
  background-color: #c82333;
}

.no-saved-numbers {
  text-align: center;
  color: var(--c-text-secondary);
  font-style: italic;
  padding: 2rem;
}

/* 푸터 스타일 */
.footer {
  background-color: var(--c-background-primary);
  border-top: 1px solid var(--c-border-primary);
  padding: 2rem 0;
  margin-top: 3rem;
  text-align: center;
}

.footer p {
  margin: 0.5rem 0;
  color: var(--c-text-secondary);
  font-size: 0.9rem;
}

/* 기존 스타일 유지 */
.ball_645 {display:inline-block; border-radius:100%; text-align:center; vertical-align:middle; color:#fff; font-weight:500; /* text-shadow: 0px 0px 2px rgba(0, 0, 0, 1); */}
.ball_645.lrg {width:60px; height:60px; line-height:56px; font-size:28px}
.ball_645.mid {width:34px; height:34px; line-height:22px; font-size:24px}
.ball_645.sml {width:24px; height:24px; line-height:22px; font-size:13px}
.ball_645.not {color:#777}
.ball_645.sml.not {font-weight:300}
.ball_645.ball1 {background:#fbc400; text-shadow: 0px 0px 3px rgba(73, 57, 0, .8)}
.ball_645.ball2 {background:#69c8f2; text-shadow: 0px 0px 3px rgba(0, 49, 70, .8)}
.ball_645.ball3 {background:#ff7272; text-shadow: 0px 0px 3px rgba(64, 0, 0, .8)}
.ball_645.ball4 {background:#aaa; text-shadow: 0px 0px 3px rgba(61, 61, 61, .8)}
.ball_645.ball5 {background:#b0d840; text-shadow: 0px 0px 3px rgba(41, 56, 0, .8)}

.current {
	display: flex;
	flex-wrap: wrap;
	gap: 0.5rem;
	margin-top: 1rem;
}

.current .ball {
	display: inline-block;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	border-radius: 50%;
	background-color: var(--c-accent-primary);
	color: white;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.current .ball:hover {
	transform: scale(1.1);
}

.numbers {
	display: flex;
	flex-wrap: wrap;
	gap: 0.25rem;
	margin-top: 1rem;
}

.numbers .lotto-checkbox {
	display: none;
}

.numbers .lotto-checkbox + label {
	display: inline-block;
	width: 30px;
	height: 30px;
	line-height: 30px;
	text-align: center;
	border-radius: 50%;
	background-color: #ddd;
	color: #666;
	font-weight: 500;
	cursor: pointer;
	transition: all 0.3s ease;
}

.numbers .lotto-checkbox:checked + label {
	background-color: var(--c-accent-primary);
	color: white;
	transform: scale(1.1);
}

.numbers .lotto-checkbox.ball1 + label {background:#fbc400; text-shadow: 0px 0px 3px rgba(73, 57, 0, .8)}
.numbers .lotto-checkbox.ball2 + label {background:#69c8f2; text-shadow: 0px 0px 3px rgba(0, 49, 70, .8)}
.numbers .lotto-checkbox.ball3 + label {background:#ff7272; text-shadow: 0px 0px 3px rgba(64, 0, 0, .8)}
.numbers .lotto-checkbox.ball4 + label {background:#aaa; text-shadow: 0px 0px 3px rgba(61, 61, 61, .8)}
.numbers .lotto-checkbox.ball5 + label {background:#b0d840; text-shadow: 0px 0px 3px rgba(41, 56, 0, .8)}

.numbers .lotto-checkbox:checked + label {
	background-color: var(--c-accent-primary);
	color: white;
}

/* 선택된 번호에 대한 색상 적용 */
.current .ball[data-value*="1"], .current .ball[data-value*="2"], .current .ball[data-value*="3"], .current .ball[data-value*="4"], .current .ball[data-value*="5"], .current .ball[data-value*="6"], .current .ball[data-value*="7"], .current .ball[data-value*="8"], .current .ball[data-value*="9"], .current .ball[data-value*="10"] { background: #fbc400; }
.current .ball[data-value*="11"], .current .ball[data-value*="12"], .current .ball[data-value*="13"], .current .ball[data-value*="14"], .current .ball[data-value*="15"], .current .ball[data-value*="16"], .current .ball[data-value*="17"], .current .ball[data-value*="18"], .current .ball[data-value*="19"], .current .ball[data-value*="20"] { background: #69c8f2; }
.current .ball[data-value*="21"], .current .ball[data-value*="22"], .current .ball[data-value*="23"], .current .ball[data-value*="24"], .current .ball[data-value*="25"], .current .ball[data-value*="26"], .current .ball[data-value*="27"], .current .ball[data-value*="28"], .current .ball[data-value*="29"], .current .ball[data-value*="30"] { background: #ff7272; }
.current .ball[data-value*="31"], .current .ball[data-value*="32"], .current .ball[data-value*="33"], .current .ball[data-value*="34"], .current .ball[data-value*="35"], .current .ball[data-value*="36"], .current .ball[data-value*="37"], .current .ball[data-value*="38"], .current .ball[data-value*="39"], .current .ball[data-value*="40"] { background: #aaa; }
.current .ball[data-value*="41"], .current .ball[data-value*="42"], .current .ball[data-value*="43"], .current .ball[data-value*="44"], .current .ball[data-value*="45"] { background: #b0d840; }

.numbers .lotto-checkbox:before {
	content: "✓";
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: white;
	font-weight: bold;
}

/* 모바일 반응형 - 사용자 편의성 개선 */
@media (max-width: 768px) {
  /* 전체 텍스트 크기 최적화 */
  body {
    font-size: 14px;
    line-height: 1.4;
  }
  
  /* 헤더 간소화 */
  .header {
    height: 60px;
    padding: 0 1rem;
  }
  
  .header-logo a h1 {
    font-size: 1.1rem;
  }
  
  /* 모바일에서 데스크톱 네비게이션 완전 숨김 */
  .header-navigation-links {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
  }
  
  /* 햄버거 메뉴 버튼 강제 표시 */
  .mobile-menu-toggle {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 1003 !important;
  }
  
  /* 모바일에서 햄버거 메뉴 버튼 위치 조정 */
  .header-navigation {
    justify-content: flex-end !important;
    align-items: center !important;
    position: relative !important;
  }
  
  /* 메인 콘텐츠 간격 조정 */
  .main {
    padding: 1rem 0;
  }
  
  .responsive-wrapper {
    width: 95%;
    padding: 0 0.5rem;
  }
  
  /* 당첨자 통계 섹션 간소화 */
  .winner-stats-section {
    padding: 1.5rem 1rem;
    margin: 1rem 0;
    border-radius: 12px;
  }
  
  .stats-header h2 {
    font-size: 1.4rem;
    margin-bottom: 0.5rem;
  }
  
  .stats-header p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
  }
  
  .stat-card {
    padding: 1rem;
    border-radius: 8px;
  }
  
  .stat-icon i {
    font-size: 1.5rem;
  }
  
  .stat-number {
    font-size: 1.4rem;
  }
  
  .stat-label {
    font-size: 0.8rem;
  }
  
  .stats-footer {
    flex-direction: column;
    gap: 0.5rem;
    text-align: center;
    padding-top: 1rem;
  }
  
  .prize-amount {
    font-size: 1.1rem;
  }
  
  /* 소원 입력 섹션 간소화 */
  .wish-section {
    padding: 1.5rem 1rem;
    margin: 1rem 0;
    border-radius: 12px;
  }
  
  .wish-container h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
  }
  
  .wish-container p {
    font-size: 0.9rem;
    margin-bottom: 1rem;
  }
  
  .wish-input-container input {
    padding: 0.75rem;
    font-size: 1rem;
    margin-bottom: 0.75rem;
  }
  
  .wish-examples {
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
  }
  
  .wish-example {
    font-size: 0.85rem;
    padding: 0.5rem 0.75rem;
  }
  
  .quick-action-buttons {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  .large-button {
    width: 100%;
    font-size: 1.1rem !important;
    padding: 1rem 1.5rem !important;
    text-align: center;
  }
  
  /* 콘텐츠 헤더 간소화 */
  .content-header-intro {
    margin-bottom: 1rem;
  }
  
  .content-header-intro h2 {
    font-size: 1.3rem;
    margin-bottom: 0.75rem;
  }
  
  .content-header-intro p {
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
    line-height: 1.4;
  }
  
  /* 카드 그리드 최적화 */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  
  .card {
    padding: 1rem;
    border-radius: 8px;
  }
  
  .card-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }
  
  .card-header div h3 {
    font-size: 1rem;
  }
  
  .card-header div .ball_645 {
    width: 28px !important;
    height: 28px !important;
    line-height: 24px !important;
    font-size: 12px !important;
  }
  
  .card-footer {
    font-size: 0.8rem;
    padding-top: 0.75rem;
  }
  
  /* 토글 스위치 크기 조정 */
  .toggle {
    width: 50px;
    height: 25px;
  }
  
  .toggle span:before {
    height: 20px;
    width: 20px;
    left: 2px;
    bottom: 2px;
  }
  
  .toggle input:checked + span:before {
    transform: translateX(25px);
  }
  
  /* 행운번호 설정 간소화 */
  .numbers {
    grid-template-columns: repeat(9, 1fr);
    gap: 0.4rem;
    padding: 0.75rem;
    min-height: 150px;
  }
  
  .numbers .lotto-checkbox + label {
    width: 22px !important;
    height: 22px !important;
    font-size: 0.6rem !important;
  }
  
  .current {
    padding: 0.75rem;
    min-height: 50px;
  }
  
  .current .ball {
    width: 35px;
    height: 35px;
    line-height: 35px;
    font-size: 0.9rem;
  }
  
  /* 생성된 번호 섹션 간소화 */
  .generated-number-card {
    margin-bottom: 1rem;
  }
  
  .generated-number-card .card-header {
    padding: 1rem;
  }
  
  .lotto-numbers-container {
    gap: 0.4rem;
  }
  
  .lotto-number-item .ball_645 {
    width: 45px !important;
    height: 45px !important;
    line-height: 41px !important;
    font-size: 18px !important;
  }
  
  .number-text {
    font-size: 1rem;
  }
  
  .card-actions {
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 0.75rem;
  }
  
  .save-btn, .share-btn {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  .wish-message {
    font-size: 0.85rem;
    padding: 0.75rem;
    margin: 0.75rem 0;
  }
  
  /* 액션 버튼 간소화 */
  .content-header-actions {
    flex-direction: column;
    gap: 0.75rem;
    margin-top: 1rem;
  }
  
  .button {
    width: 100%;
    justify-content: center;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
  }
  
  /* 저장된 번호 섹션 간소화 */
  .saved-number-item {
    flex-direction: column;
    gap: 0.75rem;
    padding: 1rem;
  }
  
  .saved-number-info {
    text-align: center;
  }
  
  .saved-number-info p {
    font-size: 0.85rem;
    margin: 0.25rem 0;
  }
}

/* 작은 모바일 화면 최적화 */
@media (max-width: 480px) {
  /* 전체 텍스트 크기 더욱 최적화 */
  body {
    font-size: 13px;
    line-height: 1.3;
  }
  
  /* 헤더 더욱 간소화 */
  .header {
    height: 50px;
    padding: 0 0.5rem;
  }
  
  .header-logo a h1 {
    font-size: 1rem;
  }
  
  .header-navigation-links {
    gap: 0.25rem;
  }
  
  /* 메인 콘텐츠 더욱 간소화 */
  .main {
    padding: 0.5rem 0;
  }
  
  .responsive-wrapper {
    width: 98%;
    padding: 0 0.25rem;
  }
  
  /* 당첨자 통계 섹션 더욱 간소화 */
  .winner-stats-section {
    padding: 1rem 0.75rem;
    margin: 0.75rem 0;
  }
  
  .stats-header h2 {
    font-size: 1.2rem;
    margin-bottom: 0.25rem;
  }
  
  .stats-header p {
    font-size: 0.8rem;
    margin-bottom: 0.75rem;
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    margin-bottom: 0.75rem;
  }
  
  .stat-card {
    padding: 0.75rem;
  }
  
  .stat-icon i {
    font-size: 1.2rem;
  }
  
  .stat-number {
    font-size: 1.2rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .prize-amount {
    font-size: 1rem;
  }
  
  /* 소원 입력 섹션 더욱 간소화 */
  .wish-section {
    padding: 1rem 0.75rem;
    margin: 0.75rem 0;
  }
  
  .wish-container h3 {
    font-size: 1.1rem;
    margin-bottom: 0.5rem;
  }
  
  .wish-container p {
    font-size: 0.85rem;
    margin-bottom: 0.75rem;
  }
  
  .wish-input-container input {
    padding: 0.75rem;
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
  }
  
  .wish-examples {
    gap: 0.4rem;
    margin-bottom: 0.75rem;
  }
  
  .wish-example {
    font-size: 0.8rem;
    padding: 0.4rem 0.6rem;
  }
  
  .large-button {
    font-size: 1rem !important;
    padding: 0.875rem 1.25rem !important;
  }
  
  /* 콘텐츠 헤더 더욱 간소화 */
  .content-header-intro h2 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
  }
  
  .content-header-intro p {
    font-size: 0.85rem;
    margin-bottom: 0.4rem;
    line-height: 1.3;
  }
  
  /* 카드 더욱 간소화 */
  .card {
    padding: 0.75rem;
  }
  
  .card-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
  }
  
  .card-header div h3 {
    font-size: 0.9rem;
  }
  
  .card-header div .ball_645 {
    width: 24px !important;
    height: 24px !important;
    line-height: 20px !important;
    font-size: 10px !important;
  }
  
  .card-footer {
    font-size: 0.75rem;
    padding-top: 0.5rem;
  }
  
  /* 토글 스위치 더 작게 */
  .toggle {
    width: 45px;
    height: 22px;
  }
  
  .toggle span:before {
    height: 18px;
    width: 18px;
    left: 2px;
    bottom: 2px;
  }
  
  .toggle input:checked + span:before {
    transform: translateX(23px);
  }
  
  /* 행운번호 설정 더욱 간소화 */
  .numbers {
    grid-template-columns: repeat(9, 1fr);
    gap: 0.3rem;
    padding: 0.5rem;
    min-height: 120px;
  }
  
  .numbers .lotto-checkbox + label {
    width: 20px !important;
    height: 20px !important;
    font-size: 0.55rem !important;
  }
  
  .current {
    padding: 0.5rem;
    min-height: 40px;
  }
  
  .current .ball {
    width: 30px;
    height: 30px;
    line-height: 30px;
    font-size: 0.8rem;
  }
  
  /* 생성된 번호 섹션 더욱 간소화 */
  .lotto-number-item .ball_645 {
    width: 40px !important;
    height: 40px !important;
    line-height: 36px !important;
    font-size: 16px !important;
  }
  
  .number-text {
    font-size: 0.9rem;
  }
  
  .save-btn, .share-btn {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  .wish-message {
    font-size: 0.8rem;
    padding: 0.6rem;
    margin: 0.6rem 0;
  }
  
  /* 버튼 더욱 간소화 */
  .button {
    padding: 0.6rem 0.8rem;
    font-size: 0.85rem;
  }
  
  /* 저장된 번호 섹션 더욱 간소화 */
  .saved-number-item {
    padding: 0.75rem;
  }
  
  .saved-number-info p {
    font-size: 0.8rem;
  }
  
  /* 모바일 설정 토글 */
  .mobile-toggle {
    display: inline-block;
    margin-left: 0.5rem;
    cursor: pointer;
    color: var(--c-primary);
    transition: transform 0.3s ease;
  }
  
  .mobile-toggle.rotated {
    transform: rotate(180deg);
  }
  
  .settings-collapsed {
    display: none;
  }
}

/* 데스크톱에서는 모바일 토글 숨김 */
@media (min-width: 769px) {
  .mobile-toggle {
    display: none !important;
  }
}

.content-header-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 2rem;
}

/* 감성적 접근 기능 스타일 */
.wish-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 16px;
  padding: 2rem;
  margin-bottom: 2rem;
  color: white;
  text-align: center;
  overflow: hidden;
}

.wish-container h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

.wish-container h3 i {
  color: #ffd700;
  margin-right: 0.5rem;
}

.wish-container p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  opacity: 0.9;
}

.wish-input-container {
  max-width: 500px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

.wish-input-container input {
  width: 100%;
  padding: 1rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  margin-bottom: 1rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  box-sizing: border-box;
}

.wish-examples {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
}

.wish-example {
  padding: 0.5rem 1rem;
  background-color: rgba(255,255,255,0.2);
  border-radius: 20px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.wish-example:hover {
  background-color: rgba(255,255,255,0.3);
  transform: translateY(-1px);
}

/* Quick Action Buttons */
.quick-action-buttons {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255,255,255,0.2);
  justify-content: center;
  width: 100%;
  box-sizing: border-box;
}

.large-button {
  font-size: 1.2rem !important;
  padding: 1.2rem 2rem !important;
  font-weight: 600 !important;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-sizing: border-box;
  max-width: 100%;
}

.large-button:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 35px rgba(0,0,0,0.3);
}

.large-button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: left 0.5s;
}

.large-button:hover::before {
  left: 100%;
}

/* 생성된 번호 카드 스타일 */
.generated-number-card {
  border: 2px solid var(--c-accent-primary);
  box-shadow: 0 8px 25px rgba(67, 76, 232, 0.15);
  transition: all 0.3s ease;
}

.generated-number-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 35px rgba(67, 76, 232, 0.25);
}

.generated-number-card .card-header {
  background: linear-gradient(135deg, var(--c-accent-primary), #6366f1);
  color: white;
  border-radius: 12px 12px 0 0;
  padding: 1.5rem;
}

.number-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.lotto-numbers-container {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

.lotto-number-item {
  display: flex;
  align-items: center;
  justify-content: center;
}

.lotto-number-item .ball_645 {
  width: 50px !important;
  height: 50px !important;
  line-height: 46px !important;
  font-size: 20px !important;
  font-weight: 700 !important;
  border: 3px solid rgba(255, 255, 255, 0.3);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
}

.lotto-number-item .ball_645:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.number-summary {
  background: rgba(255, 255, 255, 0.1);
  padding: 0.5rem 1rem;
  border-radius: 20px;
  backdrop-filter: blur(10px);
}

.number-text {
  font-size: 1.1rem;
  font-weight: 600;
  color: white;
  letter-spacing: 1px;
}

.card-actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1rem;
  justify-content: center;
}

.save-btn, .share-btn {
  padding: 0.75rem 1.5rem;
  border: none;
  border-radius: 25px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: white;
}

.save-btn {
  background: linear-gradient(135deg, #28a745, #20c997);
  box-shadow: 0 4px 15px rgba(40, 167, 69, 0.3);
}

.save-btn:hover {
  background: linear-gradient(135deg, #218838, #1ea085);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(40, 167, 69, 0.4);
}

.share-btn {
  background: linear-gradient(135deg, #17a2b8, #6f42c1);
  box-shadow: 0 4px 15px rgba(23, 162, 184, 0.3);
}

.share-btn:hover {
  background: linear-gradient(135deg, #138496, #5a32a3);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23, 162, 184, 0.4);
}

.number-info {
  padding: 1.5rem;
  background: var(--c-background-primary);
}

.stats-info {
  margin-bottom: 1rem;
}

.stats-info p {
  margin: 0;
  font-size: 0.95rem;
  color: var(--c-text-secondary);
  line-height: 1.6;
}

.stats-info strong {
  color: var(--c-accent-primary);
  font-weight: 700;
}

.wish-message {
  background: linear-gradient(135deg, #fff3cd, #ffeaa7);
  border: 1px solid #ffeaa7;
  border-radius: 10px;
  padding: 1rem;
  margin: 1rem 0;
  text-align: center;
  font-weight: 600;
  color: #856404;
  font-size: 1rem;
}

.wish-message i {
  color: #f39c12;
  margin-right: 0.5rem;
}

.generation-time {
  text-align: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--c-border-primary);
}

.generation-time small {
  color: var(--c-text-secondary);
  font-size: 0.85rem;
}

.generation-time i {
  margin-right: 0.25rem;
  color: var(--c-accent-secondary);
}

/* 댓글 섹션 스타일 */
.comments-stats {
  display: flex;
  gap: 2rem;
  justify-content: center;
  margin-bottom: 2rem;
  padding: 1rem;
  background: var(--c-background-secondary);
  border-radius: 12px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--c-text-secondary);
  font-weight: 500;
}

.stat-item i {
  color: var(--c-primary);
}

#comments-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 2rem;
}

.comment-item {
  background: var(--c-background-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

.comment-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--c-border);
}

.comment-numbers {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.number-display {
  font-weight: 600;
  color: var(--c-primary);
  font-size: 1.1rem;
}

.comment-wish {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--c-accent);
  font-size: 0.9rem;
}

.comment-time {
  color: var(--c-text-secondary);
  font-size: 0.85rem;
}

.comment-content p {
  margin: 0;
  line-height: 1.6;
  color: var(--c-text-primary);
}

.loading-comments {
  text-align: center;
  padding: 2rem;
  color: var(--c-text-secondary);
}

.no-comments {
  text-align: center;
  padding: 2rem;
  color: var(--c-text-secondary);
  font-style: italic;
}

.error-message {
  text-align: center;
  padding: 2rem;
  color: var(--c-danger);
}

.load-more-btn {
  background: var(--c-primary);
  color: white;
  border: none;
  padding: 1rem 2rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto;
}

.load-more-btn:hover {
  background: var(--c-primary-dark);
  transform: translateY(-2px);
}

/* 댓글 작성 폼 스타일 */
.comment-section {
  margin-top: 1.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eff1f6;
  background: #fdfcff;
  border-radius: 8px;
  padding: 1.5rem;
}

.comment-form h4 {
  margin-bottom: 1rem;
  color: #282a32;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.comment-input-group {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comment-input-group textarea {
  width: 100%;
  min-height: 100px;
  padding: 1rem;
  border: 2px solid #eff1f6;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  resize: vertical;
  transition: border-color 0.3s ease;
  box-sizing: border-box;
}

.comment-input-group textarea:focus {
  outline: none;
  border-color: #434ce8;
}

.comment-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.comment-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.9rem;
  color: #686b87;
}

.comment-checkbox input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid #eff1f6;
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.comment-checkbox input[type="checkbox"]:checked + .checkmark {
  background: #434ce8;
  border-color: #434ce8;
}

.comment-checkbox input[type="checkbox"]:checked + .checkmark::after {
  content: '✓';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 12px;
  font-weight: bold;
}

.comment-submit-btn {
  background: #434ce8;
  color: white;
  border: none;
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
}

.comment-submit-btn:hover {
  background: #3a41d1;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(67, 76, 232, 0.3);
}

.comment-submit-btn:disabled {
  background: #686b87;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
  .comments-stats {
    flex-direction: column;
    gap: 1rem;
    text-align: center;
  }
  
  .comment-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .comment-numbers {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }
  
  .comment-options {
    flex-direction: column;
    align-items: stretch;
  }
  
  .comment-submit-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .comment-item {
    padding: 1rem;
  }
  
  .comment-form h4 {
    font-size: 1.1rem;
  }
  
  .comment-input-group textarea {
    min-height: 80px;
    font-size: 0.9rem;
  }
}

/* Winner Page Styles */
.page-description {
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    color: white;
    padding: 30px;
    border-radius: 16px;
    margin-bottom: 30px;
    text-align: center;
}

.description-text {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
}

.news-content {
    font-size: 1.1em;
    line-height: 1.6;
    margin: 0;
}

/* DB에서 가져온 HTML 콘텐츠 스타일링 */
.news-content h1 {
    color: #333;
    font-size: 1.8em;
    margin: 0 0 20px 0;
    font-weight: 700;
}

.news-content h2 {
    color: #444;
    font-size: 1.5em;
    margin: 20px 0 15px 0;
    font-weight: 600;
}

.news-content h3 {
    color: #555;
    font-size: 1.3em;
    margin: 15px 0 10px 0;
    font-weight: 600;
}

.news-content p {
    margin: 10px 0;
    line-height: 1.6;
}

.news-content ul {
    margin: 10px 0;
    padding-left: 20px;
}

.news-content li {
    margin: 5px 0;
    line-height: 1.5;
}

.news-content strong {
    font-weight: 700;
    color: var(--c-primary);
}

.news-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.news-content table th {
    background: var(--c-primary);
    color: white;
    padding: 12px;
    text-align: left;
    font-weight: 600;
}

.news-content table td {
    padding: 10px 12px;
    border-bottom: 1px solid #eee;
}

.news-content table tr:hover {
    background: #f8f9fa;
}

/* AI 생성 콘텐츠 스타일링 - 깔끔하고 가독성 높은 버전 */
.ai-generated-content {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(74, 144, 226, 0.1);
    line-height: 1.7;
    color: #2c3e50;
    border: 1px solid rgba(74, 144, 226, 0.1);
}

.ai-generated-content h1 {
    color: #1f2937;
    font-size: 2em;
    margin: 0 0 25px 0;
    font-weight: 700;
    text-align: left;
    border: none;
    padding-bottom: 12px;
}

.ai-generated-content h2,
.ai-generated-content .main-title {
    margin-top: 32px;
    margin-bottom: 18px;
    font-size: 1.6em;
    color: #1f2937;
    background: transparent;
    padding: 0;
    border: none;
    font-weight: 700;
}

.ai-generated-content h3,
.ai-generated-content .section-title {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 1.2em;
    color: #1f2937;
    padding: 0;
    border: none;
    font-weight: 600;
}

.ai-generated-content p {
    margin-bottom: 18px;
    color: #374151;
    line-height: 1.75;
}

.ai-generated-content ul {
    margin: 20px 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    border: none;
    box-shadow: none;
    list-style: none;
}

.ai-generated-content li {
    margin: 10px 0;
    line-height: 1.8;
    color: #2d3748;
    font-size: 1.02em;
    position: relative;
    padding: 14px 18px 14px 32px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.ai-generated-content li::before {
    content: "•";
    position: absolute;
    left: 10px;
    color: #9ca3af;
    font-weight: normal;
    font-size: 1.2em;
    top: 14px;
    opacity: 0.6;
}

.ai-generated-content li:hover {
    background: #f9fafb;
    border-color: #d1d5db;
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
}

.ai-generated-content strong {
    font-weight: 700;
    color: #1d4ed8;
    background: transparent;
    padding: 0;
    border-radius: 0;
    display: inline;
    margin: 0;
}

.ai-generated-content em {
    color: #e53e3e;
    font-weight: 600;
    font-style: italic;
}

/* 당첨 번호 하이라이트 - 아름다운 버전 */
.ai-generated-content .winning-numbers {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 18px 24px;
    border-radius: 12px;
    margin: 15px 0;
    text-align: center;
    font-weight: 700;
    font-size: 1.1em;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
    border: none;
    text-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

/* 당첨 번호 표 스타일 - 심플하고 미니멀하게 */
.winner_summary table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #fff;
    border-radius: 0;
    box-shadow: none;
    font-size: 1em;
    border: 1px solid #e0e0e0;
}

.winner_summary table thead {
    background: none;
}

.winner_summary table th {
    color: #222;
    padding: 12px 8px;
    text-align: center;
    font-weight: 600;
    font-size: 1em;
    text-transform: none;
    letter-spacing: 0;
    border-bottom: 1px solid #e0e0e0;
    background: none;
}

.winner_summary table td {
    padding: 12px 8px;
    text-align: center;
    border-bottom: 1px solid #f0f0f0;
    color: #222;
    font-weight: 400;
    background: none;
}

.winner_summary table tr {
    background: none;
}

.winner_summary table tr:last-child td {
    border-bottom: none;
}

/* 등수별, 컬럼별, 호버 강조 모두 제거 */
.winner_summary table tr:nth-child(even),
.winner_summary table tr:hover,
.winner_summary table tr:nth-child(1) td:first-child,
.winner_summary table tr:nth-child(2) td:first-child,
.winner_summary table tr:nth-child(3) td:first-child,
.winner_summary table tr:nth-child(4) td:first-child,
.winner_summary table tr:nth-child(5) td:first-child,
.winner_summary table td:nth-child(3),
.winner_summary table td:nth-child(2),
.winner_summary table td:nth-child(4) {
    background: none !important;
    color: #222 !important;
    font-weight: 400 !important;
    border: none;
}

/* 당첨금 강조 */
.winner_summary table td:nth-child(3) {
    font-weight: 600;
    color: var(--c-primary);
}

/* 당첨자 수 강조 */
.winner_summary table td:nth-child(2) {
    font-weight: 600;
    color: #2c3e50;
}

/* Howtodoit 당첨자 강조 */
.winner_summary table td:nth-child(4) {
    font-weight: 600;
    color: #e74c3c;
}

/* 당첨금 하이라이트 - 아름다운 버전 */
.ai-generated-content .prize-amount {
    background: linear-gradient(135deg, #f7fafc 0%, #edf2f7 100%);
    border: 2px solid #4299e1;
    color: #2b6cb0;
    padding: 10px 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-weight: 700;
    font-size: 0.95em;
    box-shadow: 0 2px 8px rgba(66, 153, 225, 0.15);
    display: inline-block;
}

/* 지역 정보 스타일 - 아름다운 버전 */
.ai-generated-content .location-info {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-left: 4px solid #2196f3;
    padding: 15px 18px;
    margin: 12px 0;
    border-radius: 0 10px 10px 0;
    color: #1565c0;
    font-weight: 500;
    box-shadow: 0 2px 8px rgba(33, 150, 243, 0.15);
}

/* 결론 섹션 - 아름다운 버전 */
.ai-generated-content .conclusion {
    background: linear-gradient(135deg, #f1f8e9 0%, #c8e6c9 100%);
    border: 2px solid #4caf50;
    padding: 20px;
    border-radius: 12px;
    margin: 25px 0;
    color: #2e7d32;
    font-weight: 500;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
}

/* 추가 AI 콘텐츠 클래스 - 심플하게 */
.ai-generated-content .main-title {
    font-weight: 700;
    font-size: 1.6em;
    color: #1f2937;
    margin: 0 0 24px 0;
    padding: 0;
    border: none;
}

.ai-generated-content .section-title {
    font-weight: 600;
    font-size: 1.25em;
    color: #1f2937;
    margin: 24px 0 12px 0;
    padding: 0;
    border: none;
}

.ai-generated-content .subsection-title {
    font-weight: 600;
    font-size: 1.1em;
    color: #374151;
    margin: 16px 0 10px 0;
    padding: 0;
    border: none;
}

.analysis-article {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.analysis-article-header {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.analysis-article-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.article-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #f1f3f5;
    color: var(--c-text-secondary);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 0.85em;
}

.article-chip i {
    color: var(--c-primary);
}

.analysis-article-title {
    font-size: 1.75em;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--c-text-primary);
}

.analysis-article-subtitle {
    color: var(--c-text-secondary);
    font-size: 1em;
}

.analysis-article-body {
    margin-top: 24px;
}

.analysis-article-body > .ai-generated-content,
.analysis-article-body > .winner-article-empty {
    max-width: 760px;
    margin: 0 auto;
    width: 100%;
}

.analysis-article .ai-generated-content {
    font-size: 1.02em;
    line-height: 1.75;
    color: var(--c-text-primary);
}

.analysis-article .ai-generated-content h2,
.analysis-article .ai-generated-content .main-title,
.analysis-article .ai-generated-content h3,
.analysis-article .ai-generated-content .section-title {
    margin-top: 0;
    margin-bottom: 0;
    padding: 0;
    border: none;
}

.analysis-article .ai-generated-content p {
    margin-bottom: inherit;
    color: inherit;
    line-height: inherit;
}

/* 큰 숫자 강조 (천 단위 구분 포함) */
.analysis-article .ai-generated-content li {
    word-break: keep-all;
}

.winner-article-empty {
    padding: 22px;
    border-radius: 12px;
    border: 1px dashed #ced4da;
    background: #f8f9fa;
    color: var(--c-text-secondary);
    text-align: center;
    font-size: 0.95em;
}

.winner-section {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 40px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.winner-header {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 28px;
}

.winner-header-intro h1 {
    font-size: 1.9em;
    margin: 0 0 8px 0;
}

.winner-header-actions {
    display: flex;
    gap: 12px;
}

.winner-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.winner-card {
    background: linear-gradient(135deg, #ffffff 0%, #f9fbff 100%);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.08);
    border: 1px solid #e5ecff;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.winner-card.numbers-card {
    align-items: center;
    text-align: center;
}

.card-title {
    font-size: 1.2em;
    color: var(--c-text-primary);
    margin: 0;
}

.winner-card-meta {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.9em;
    color: var(--c-text-secondary);
}

.winner-card-meta span i {
    color: var(--c-primary);
    margin-right: 6px;
}

.performance-metrics {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.metric {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    padding: 12px 16px;
    border-radius: 12px;
    background: rgba(79, 70, 229, 0.08);
}

.metric-label {
    color: var(--c-text-secondary);
    font-weight: 600;
}

.metric-value {
    color: var(--c-primary-dark);
    font-size: 1.2em;
    font-weight: 700;
}

.performance-footnote {
    font-size: 0.9em;
    color: var(--c-text-secondary);
    margin: 0;
}

.winner-summary table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
}

.winner-summary th,
.winner-summary td {
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.95em;
}

.winner-summary th {
    background: rgba(79, 70, 229, 0.12);
    color: var(--c-text-primary);
}

.winner-summary tr:last-child td {
    border-bottom: none;
}

.winner-detail-section {
    background: white;
    border-radius: 20px;
    padding: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08);
}

.winner-detail-grid {
    margin-top: 24px;
}

.nav-button {
    background: var(--c-primary);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    margin: 0 10px;
}

.nav-button:hover {
    background: var(--c-primary-dark);
    transform: translateY(-2px);
}

.stats-section {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.stats-info {
    margin-top: 20px;
}

.prize-count, .prize-rating {
    font-size: 1.1em;
    color: var(--c-primary);
    font-weight: 600;
    margin: 10px 0;
}

.stats-description {
    color: var(--c-text-secondary);
    margin: 15px 0;
}

.additional-info {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.info-card {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    border-radius: 12px;
    padding: 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.info-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.info-icon {
    font-size: 2.5em;
    color: var(--c-primary);
    margin-bottom: 15px;
}

.info-card h3 {
    color: var(--c-text-primary);
    margin: 0 0 10px 0;
    font-size: 1.1em;
}

.info-number {
    font-size: 1.5em;
    font-weight: 700;
    color: var(--c-primary);
    margin: 10px 0;
}

.info-detail {
    color: var(--c-text-secondary);
    font-size: 0.9em;
    margin: 0;
}

.related-links {
    background: white;
    border-radius: 16px;
    padding: 30px;
    margin-bottom: 30px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}

.link-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.link-card {
    background: linear-gradient(135deg, var(--c-primary), var(--c-accent));
    color: white;
    border-radius: 12px;
    padding: 25px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-align: center;
}

.link-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    color: white;
}

.link-card i {
    font-size: 2.5em;
    margin-bottom: 15px;
    display: block;
}

.link-card h3 {
    margin: 0 0 10px 0;
    font-size: 1.2em;
}

.link-card p {
    margin: 0;
    opacity: 0.9;
    line-height: 1.5;
}

.footer {
    background: var(--c-background);
    padding: 30px 0;
    text-align: center;
    margin-top: 50px;
    border-top: 1px solid var(--c-border);
}

.footer p {
    margin: 5px 0;
    color: var(--c-text-secondary);
}

/* Tab Styles */
.horizontal-tabs {
    display: flex;
    background: white;
    border-radius: 12px;
    padding: 5px;
    margin-bottom: 30px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    overflow: hidden;
}

.tab-link {
    flex: 1;
    padding: 15px 20px;
    text-decoration: none;
    color: var(--c-text-secondary);
    text-align: center;
    transition: all 0.3s ease;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-link:hover {
    color: var(--c-primary);
    background: rgba(0,0,0,0.05);
}

.tab-link.active {
    background: var(--c-primary);
    color: white;
}

.tab-link i {
    font-size: 1.1em;
}

/* Responsive Design for Winner Page */
@media (max-width: 768px) {
    .page-description {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .winner-section, .stats-section, .additional-info, .related-links {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .link-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .nav-button {
        padding: 10px 15px;
        font-size: 0.9em;
        margin: 5px;
    }
    
    .horizontal-tabs {
        flex-direction: column;
    }
    
    .tab-link {
        padding: 12px 15px;
    }
    
    .winner-display {
        margin: 20px 0;
    }
    
    .info-number {
        font-size: 1.3em;
    }
}

@media (max-width: 480px) {
    .page-description {
        padding: 15px;
    }
    
    .winner-section, .stats-section, .additional-info, .related-links {
        padding: 15px;
    }
    
    .info-card, .link-card {
        padding: 20px;
    }
    
    .nav-button {
        padding: 8px 12px;
        font-size: 0.8em;
    }
    
    .info-icon, .link-card i {
        font-size: 2em;
    }
    
    /* AI 생성 콘텐츠 모바일 스타일 - 깔끔하게 */
    .ai-generated-content {
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .ai-generated-content h1 {
        font-size: 1.5em;
        margin: 0 0 15px 0;
    }
    
    .ai-generated-content h2 {
        font-size: 1.3em;
        margin: 20px 0 12px 0;
    }
    
    .ai-generated-content h3 {
        font-size: 1.1em;
        margin: 15px 0 10px 0;
        padding: 8px 10px;
    }
    
    .ai-generated-content ul {
        padding: 12px 15px;
    }
    
    .ai-generated-content li {
        margin: 5px 0;
        font-size: 0.9em;
    }
    
    .ai-generated-content .winning-numbers {
        padding: 12px 16px;
        font-size: 0.95em;
        border-radius: 8px;
    }
    
    .ai-generated-content .prize-amount {
        padding: 8px 12px;
        font-size: 0.85em;
        border-radius: 6px;
    }
    
    /* 모바일에서 표 스타일 */
    .winner_summary table {
        font-size: 0.8em;
        margin: 15px 0;
    }
    
    .winner_summary table th,
    .winner_summary table td {
        padding: 8px 6px;
    }
    
    .winner_summary table th {
        font-size: 0.75em;
        letter-spacing: 0.3px;
    }
}

/* 당첨자 통계 섹션 스타일 */
.winner-stats-section {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    padding: 30px;
    margin: 30px 0;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    color: white;
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
}

.stats-header {
    text-align: center;
    margin-bottom: 30px;
}

.stats-header h2 {
    font-size: 2.2em;
    margin: 0 0 10px 0;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-header h2 i {
    margin-right: 10px;
    color: #ffd700;
}

.stats-header p {
    font-size: 1.1em;
    margin: 0;
    opacity: 0.9;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 25px;
    text-align: center;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.stat-card:hover::before {
    left: 100%;
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    margin-bottom: 15px;
}

.stat-icon i {
    font-size: 2.5em;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-content {
    position: relative;
    z-index: 1;
}

.stat-number {
    font-size: 2.2em;
    font-weight: bold;
    margin-bottom: 8px;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stat-label {
    font-size: 1em;
    opacity: 0.9;
    color: white;
}

/* 각 등급별 색상 차별화 */
.total-winners .stat-icon i {
    color: #ffd700;
}

.first-winners .stat-icon i {
    color: #ff6b6b;
}

.second-winners .stat-icon i {
    color: #4ecdc4;
}

.third-winners .stat-icon i {
    color: #45b7d1;
}

.fourth-winners .stat-icon i {
    color: #96ceb4;
}

.fifth-winners .stat-icon i {
    color: #feca57;
}

.stats-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.total-prize {
    display: flex;
    align-items: center;
    gap: 10px;
}

.prize-label {
    font-size: 1.1em;
    opacity: 0.9;
}

.prize-amount {
    font-size: 1.3em;
    font-weight: bold;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.stats-update-info {
    opacity: 0.7;
    font-size: 0.9em;
}

/* 모바일 광고 최적화 */
@media (max-width: 768px) {
    /* 모바일에서 광고 크기 제한 */
    .adsbygoogle {
        max-width: 100% !important;
        height: auto !important;
        margin: 10px 0 !important;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    }
    
    /* 모바일에서 광고 간격 조정 */
    .ad-container {
        margin: 15px 0;
        padding: 10px;
        background: #f8f9fa;
        border-radius: 8px;
        text-align: center;
        border: 1px solid #e9ecef;
    }
    
    /* 광고 숨김 토글 버튼 */
    .ad-toggle {
        position: fixed;
        bottom: 20px;
        right: 20px;
        background: var(--c-primary);
        color: white;
        border: none;
        border-radius: 50%;
        width: 50px;
        height: 50px;
        font-size: 1.2rem;
        cursor: pointer;
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        z-index: 1000;
        transition: all 0.3s ease;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    
    .ad-toggle:hover {
        transform: scale(1.1);
        box-shadow: 0 6px 16px rgba(0,0,0,0.4);
    }
    
    .ad-toggle.hidden {
        background: #6c757d;
    }
    
    /* 광고 숨김 상태 */
    .ads-hidden .adsbygoogle {
        display: none !important;
    }
    
    .ads-hidden .ad-container {
        display: none !important;
    }
    
    /* 모바일에서 광고 라벨 */
    .ad-label {
        font-size: 0.7rem;
        color: #6c757d;
        text-align: center;
        margin: 5px 0;
        font-weight: 500;
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    /* 모바일에서 광고 간격을 더 넓게 */
    .ad-container + .winner-stats-section {
        margin-top: 30px;
    }
    
    .ad-container + .page-description {
        margin-top: 30px;
    }
}

/* 데스크톱에서는 광고 토글 버튼 숨김 */
@media (min-width: 769px) {
    .ad-toggle {
        display: none !important;
    }
    
    .ad-label {
        display: none !important;
    }
}

/* 모바일 기본 설정 */
@media (max-width: 768px) {
    /* 전체 페이지 오버플로우 방지 */
    body {
        overflow-x: hidden;
        width: 100%;
        box-sizing: border-box;
    }
    
    /* 모든 컨테이너에 박스 사이징 적용 */
    *, *::before, *::after {
        box-sizing: border-box;
    }
    
    /* 메인 컨테이너 */
    .main {
        padding: 0;
        margin: 0;
        width: 100%;
        overflow-x: hidden;
    }
    
    /* 섹션별 오버플로우 방지 */
    .section {
        width: 100%;
        padding: 15px 10px;
        margin: 0;
        box-sizing: border-box;
        overflow-x: hidden;
    }
    
    /* 카드 그리드 모바일 최적화 */
    .card-grid {
        display: grid;
        grid-template-columns: 1fr;
        gap: 15px;
        width: 100%;
        padding: 0 5px;
        box-sizing: border-box;
    }
    
    /* 개별 카드 */
    .card {
        width: 100%;
        margin: 0;
        padding: 15px;
        border-radius: 12px;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    /* 헤더 모바일 최적화 */
    .header {
        padding: 0 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .header-content {
        width: 100%;
        padding: 0 5px;
    }
    
    /* 버튼 모바일 최적화 */
    .button {
        padding: 12px 20px;
        font-size: 0.9em;
        border-radius: 8px;
        width: auto;
        min-width: 120px;
        box-sizing: border-box;
    }
    
    /* 입력 필드 모바일 최적화 */
    input, textarea, select {
        width: 100%;
        max-width: 100%;
        padding: 12px;
        font-size: 16px; /* iOS 줌 방지 */
        border-radius: 8px;
        box-sizing: border-box;
    }
    
    .winner-stats-section {
        padding: 15px;
        margin: 15px 0;
        border-radius: 15px;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .stats-container {
        width: 100%;
        max-width: 100%;
        overflow: hidden;
    }
    
    .stats-header {
        margin-bottom: 20px;
        padding: 0 5px;
    }
    
    .stats-header h2 {
        font-size: 1.6em;
        line-height: 1.3;
        word-break: keep-all;
    }
    
    .stats-header p {
        font-size: 0.9em;
        line-height: 1.4;
        word-break: keep-all;
    }
    
    .stats-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        width: 100%;
        box-sizing: border-box;
    }
    
    .stat-card {
        padding: 15px 10px;
        border-radius: 10px;
        min-height: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        text-align: center;
        box-sizing: border-box;
        overflow: hidden;
    }
    
    .stat-icon {
        margin-bottom: 8px;
    }
    
    .stat-icon i {
        font-size: 1.6em;
    }
    
    .stat-content {
        width: 100%;
    }
    
    .stat-number {
        font-size: 1.4em;
        font-weight: 700;
        line-height: 1.2;
        word-break: break-all;
    }
    
    .stat-label {
        font-size: 0.8em;
        line-height: 1.3;
        word-break: keep-all;
    }
    
    .stats-footer {
        flex-direction: column;
        gap: 10px;
        text-align: center;
        padding: 0 5px;
    }
    
    .total-prize {
        flex-direction: column;
        gap: 5px;
    }
    
    .prize-label {
        font-size: 0.9em;
    }
    
    .prize-amount {
        font-size: 1.2em;
        word-break: break-all;
    }
    
    .stats-update-info {
        font-size: 0.8em;
    }
}

@media (max-width: 480px) {
    /* 매우 작은 화면 최적화 */
    .responsive-wrapper {
        width: 98%;
        padding: 0 5px;
    }
    
    .winner-stats-section {
        padding: 12px;
        margin: 12px 0;
        border-radius: 12px;
    }
    
    .stats-header {
        margin-bottom: 15px;
        padding: 0 2px;
    }
    
    .stats-header h2 {
        font-size: 1.4em;
        line-height: 1.2;
    }
    
    .stats-header p {
        font-size: 0.8em;
        line-height: 1.3;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }
    
    .stat-card {
        padding: 12px 8px;
        border-radius: 8px;
    }
    
    .stat-icon i {
        font-size: 1.4em;
    }
    
    .stat-number {
        font-size: 1.2em;
    }
    
    .stat-label {
        font-size: 0.75em;
    }
    
    .stats-footer {
        gap: 8px;
        padding: 0 2px;
    }
    
    .prize-label {
        font-size: 0.8em;
    }
    
    .prize-amount {
        font-size: 1.1em;
    }
    
    .stats-update-info {
        font-size: 0.75em;
    }
}

/* 작은 모바일 화면에서도 햄버거 메뉴 강제 표시 */
@media (max-width: 1024px) {
    .header-navigation-links {
        display: none !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
    }
}

/* 번호 생성 개수 선택 스타일 */
.generation-count-section {
    margin: 20px 0;
    padding: 20px;
    background: var(--c-background-primary);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.generation-count-section h4 {
    margin: 0 0 15px 0;
    color: var(--c-text-primary);
    font-size: 1.1em;
    font-weight: 500;
}

.generation-count-section h4 i {
    color: var(--c-accent-primary);
    margin-right: 8px;
}

.count-selector {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.count-btn {
    padding: 10px 20px;
    border: 2px solid var(--c-border);
    background: var(--c-background-primary);
    color: var(--c-text-secondary);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 500;
    font-size: 0.95em;
}

.count-btn:hover {
    border-color: var(--c-accent-primary);
    color: var(--c-accent-primary);
    transform: translateY(-2px);
}

.count-btn.active {
    background: var(--c-accent-primary);
    border-color: var(--c-accent-primary);
    color: white;
    box-shadow: 0 4px 12px rgba(67, 76, 232, 0.3);
}

/* 간결한 로또 번호 카드 스타일 */
.generated-number-card {
    margin-bottom: 20px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.generated-number-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.generated-number-card .card-header {
    background: linear-gradient(135deg, var(--c-accent-primary), var(--c-primary-dark));
    padding: 15px 20px;
    color: white;
}

.generated-number-card .number-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.generated-number-card .lotto-numbers-container {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.generated-number-card .lotto-number-item {
    width: 45px;
    height: 45px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1em;
    color: white;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.2);
}

.generated-number-card .card-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 15px;
}

.generated-number-card .save-btn,
.generated-number-card .share-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 20px;
    font-size: 0.9em;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.generated-number-card .save-btn {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.generated-number-card .save-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

.generated-number-card .share-btn {
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.generated-number-card .share-btn:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-1px);
}

.generated-number-card .card-body {
    padding: 15px 20px;
    background: var(--c-background-primary);
}

.generated-number-card .stats-info {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 15px;
}

.generated-number-card .stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
}

.generated-number-card .stat-label {
    font-size: 0.9em !important;
    color: #333 !important;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.generated-number-card .stat-label i {
    font-size: 1em !important;
    color: #667eea !important;
}

.generated-number-card .stat-value {
    font-size: 1.3em !important;
    font-weight: 700 !important;
    color: #000 !important;
    text-shadow: none !important;
}

.generated-number-card .wish-message {
    background: var(--c-background-tertiary);
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 15px;
    font-size: 0.9em;
    color: var(--c-text-primary);
    text-align: center;
}

.generated-number-card .generation-time {
    text-align: center;
    font-size: 0.8em;
    color: var(--c-text-secondary);
}

.generated-number-card .generation-time i {
    margin-right: 4px;
}

/* 전체 댓글 섹션 스타일 */
.global-comment-section {
    margin-top: 30px;
    padding: 25px;
    background: var(--c-background-primary);
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--c-border);
}

.global-comment-section .comment-form h4 {
    margin: 0 0 20px 0;
    color: var(--c-text-primary);
    font-size: 1.2em;
    font-weight: 600;
}

.global-comment-section .comment-form h4 i {
    color: var(--c-accent-primary);
    margin-right: 8px;
}

.global-comment-section .comment-input-group {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.global-comment-section textarea {
    width: 100%;
    min-height: 120px;
    padding: 15px;
    border: 2px solid var(--c-border);
    border-radius: 8px;
    font-family: "Noto Sans KR", sans-serif;
    font-size: 0.95em;
    resize: vertical;
    transition: border-color 0.3s ease;
}

.global-comment-section textarea:focus {
    border-color: var(--c-accent-primary);
    outline: none;
}

.global-comment-section .comment-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.global-comment-section .comment-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 0.9em;
    color: var(--c-text-secondary);
}

.global-comment-section .comment-checkbox input[type="checkbox"] {
    margin-right: 8px;
    transform: scale(1.1);
}

.global-comment-section .comment-submit-btn {
    padding: 12px 24px;
    background: var(--c-accent-primary);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    font-size: 0.95em;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.global-comment-section .comment-submit-btn:hover {
    background: var(--c-primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(67, 76, 232, 0.3);
}

.global-comment-section .comment-submit-btn:disabled {
    background: var(--c-text-secondary);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .generation-count-section {
        margin: 15px 0;
        padding: 15px;
    }
    
    .count-selector {
        justify-content: center;
    }
    
    .count-btn {
        flex: 1;
        min-width: 60px;
        text-align: center;
    }
    
    .global-comment-section {
        margin-top: 20px;
        padding: 20px;
    }
    
    .global-comment-section .comment-options {
        flex-direction: column;
        align-items: stretch;
    }
    
    .global-comment-section .comment-submit-btn {
        width: 100%;
        justify-content: center;
    }
    
    /* 로또 번호 카드 모바일 스타일 */
    .generated-number-card {
        margin: 0 5px 15px 5px;
        border-radius: 12px;
        overflow: hidden;
        box-sizing: border-box;
    }
    
    .generated-number-card .card-header {
        padding: 15px 10px;
    }
    
    .generated-number-card .lotto-numbers-container {
        gap: 6px;
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .generated-number-card .lotto-number-item {
        width: 40px;
        height: 40px;
        font-size: 0.9em;
        flex-shrink: 0;
    }
    
    .generated-number-card .card-body {
        padding: 12px 10px;
    }
    
    .generated-number-card .stats-info {
        flex-direction: column;
        gap: 12px;
    }
    
    .generated-number-card .stat-item {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 0 5px;
    }
    
    .generated-number-card .stat-label {
        margin-bottom: 0;
        font-size: 0.8em;
    }
    
    .generated-number-card .stat-value {
        font-size: 0.9em;
    }
    
    /* 전체 댓글 섹션 모바일 최적화 */
    .global-comment-section {
        margin: 15px 5px;
        padding: 15px;
        border-radius: 10px;
        box-sizing: border-box;
    }
    
    .global-comment-section textarea {
        min-height: 100px;
        font-size: 0.9em;
    }
    
    .global-comment-section .comment-submit-btn {
        padding: 10px 20px;
        font-size: 0.9em;
    }
}

/* 데스크톱에서 모바일 전용 요소 숨기기 */
@media (min-width: 1025px) {
    .ad-toggle,
    .ad-label,
    .mobile-menu-toggle {
        display: none !important;
    }
    
    .header-navigation-links {
        display: flex !important;
    }
    
    /* PC 버전에서 통계 정보 더 명확하게 표시 */
    .generated-number-card .stats-info {
        gap: 30px;
        margin-bottom: 20px;
    }
    
    .generated-number-card .stat-label {
        font-size: 1em !important;
        color: #000 !important;
        font-weight: 700 !important;
        text-transform: none;
        letter-spacing: 0;
    }
    
    .generated-number-card .stat-value {
        font-size: 1.5em !important;
        font-weight: 800 !important;
        color: #000 !important;
    }
}

/* 강제로 텍스트 색상 지정 - 다른 모든 스타일을 덮어씀 */
.generated-number-card .number-info .stat-label,
.generated-number-card .card-body .stat-label,
.generated-number-card .stats-info .stat-label {
    color: #000 !important;
    font-weight: bold !important;
}

.generated-number-card .number-info .stat-value,
.generated-number-card .card-body .stat-value,
.generated-number-card .stats-info .stat-value {
    color: #000 !important;
    font-weight: bold !important;
}

/* 댓글 섹션 스타일 */
.comments-section {
    margin-top: 30px;
    padding: 20px;
    background: var(--c-background-primary);
    border-radius: 15px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.comments-section h4 {
    margin-bottom: 20px;
    color: var(--c-text-primary);
    font-size: 1.2em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.comments-container {
    margin-bottom: 20px;
}

.comment-item {
    background: white;
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    border-left: 4px solid #667eea;
}

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

.comment-numbers {
    font-family: 'Courier New', monospace;
    font-weight: bold;
    color: #333;
    font-size: 1.1em;
}

.comment-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.round-info {
    background: #e3f2fd;
    color: #1976d2;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.winning-badge {
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 600;
    color: white;
}

.winning-badge.first-place {
    background: linear-gradient(45deg, #ffd700, #ffed4e);
    color: #b8860b;
}

.winning-badge.second-place {
    background: linear-gradient(45deg, #c0c0c0, #e8e8e8);
    color: #666;
}

.winning-badge.third-place {
    background: linear-gradient(45deg, #cd7f32, #daa520);
    color: white;
}

.winning-badge.fourth-place {
    background: #2196f3;
}

.winning-badge.fifth-place {
    background: #4caf50;
}

.no-win-badge {
    background: #9e9e9e;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 0.85em;
    font-weight: 500;
}

.comment-time {
    color: #666;
    font-size: 0.85em;
}

.comment-text {
    color: #333;
    line-height: 1.5;
    margin-bottom: 8px;
}

.comment-wish {
    color: #ff9800;
    font-style: italic;
    font-size: 0.9em;
    display: flex;
    align-items: center;
    gap: 5px;
}

.load-comments-btn {
    background: #667eea;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 auto;
}

.load-comments-btn:hover {
    background: #5a6fd8;
}

.no-comments {
    text-align: center;
    color: #666;
    padding: 40px 20px;
    font-style: italic;
}

.error {
    text-align: center;
    color: #f44336;
    padding: 20px;
    background: #ffebee;
    border-radius: 8px;
    border: 1px solid #ffcdd2;
}

/* 모바일 반응형 */
@media (max-width: 768px) {
    .comments-section {
        padding: 15px;
        margin-top: 20px;
    }
    
    .comment-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .comment-meta {
        width: 100%;
        justify-content: space-between;
    }
    
    .comment-numbers {
        font-size: 1em;
        margin-bottom: 5px;
    }
}
