/* Shared look for 당첨결과 · 번호 생성 · 통계 연구실, matched to the round detail page.
   Selectors are prefixed with .desktop-site so they win over the per-page sheets regardless of load order. */

/* ---- common: page background, hero ---- */
.desktop-site .results-page:not(.detail-page),
.desktop-site .subpage-main,
.desktop-site .generator-page { background: #f2f4f7; }

.desktop-site .results-page:not(.detail-page) .results-hero-inner,
.desktop-site .subpage-hero-inner,
.desktop-site .generator-hero-inner { min-height: 200px; }

/* ---- 당첨결과 (list) ---- */
.desktop-site .results-page:not(.detail-page) .results-hero-shortcut { gap: 10px; }
.desktop-site .results-hero-shortcut > span { font-size: 14px; font-weight: 700; }

.desktop-site .results-archive {
  margin-top: 28px;
  border: 1px solid #e2e6eb;
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(32, 42, 55, .045);
}

.desktop-site .draw-table-head,
.desktop-site .draw-list-row { grid-template-columns: 110px 440px minmax(280px, 1fr) 140px 140px; column-gap: 20px; }
.desktop-site .draw-table-head { min-height: 56px; background: #f7f9fc; color: #4b5666; font-size: 15px; font-weight: 700; }
.desktop-site .draw-list-row { min-height: 156px; padding: 20px 32px; border-bottom-color: #e6eaf0; }
.desktop-site .draw-list-row.latest { background: #fffaf8; }
.desktop-site .draw-list-round { gap: 8px; }
.desktop-site .draw-list-round span { padding: 5px 10px; font-size: 12px; }
.desktop-site .draw-list-round strong { font-size: 22px; font-weight: 400; }

.desktop-site .draw-number-row { gap: 10px; }
.desktop-site .draw-number-row .result-ball { width: 46px; height: 46px; flex: 0 0 46px; font-size: 19px; font-weight: 800; --ball-number: #fff; }
.desktop-site .draw-number-row .ball-1 { --ball-top: #e09000; --ball-bottom: #e09000; }
.desktop-site .draw-number-row .ball-2 { --ball-top: #0062cc; --ball-bottom: #0062cc; }
.desktop-site .draw-number-row .ball-3 { --ball-top: #d92e4d; --ball-bottom: #d92e4d; }
.desktop-site .draw-number-row .ball-4 { --ball-top: #6e7382; --ball-bottom: #6e7382; }
.desktop-site .draw-number-row .ball-5 { --ball-top: #2b9f41; --ball-bottom: #2b9f41; }
.desktop-site .draw-number-row > i { margin: 0 4px; color: #999; font-size: 24px; font-weight: 400; }

.desktop-site .draw-list-prizes { width: min(100%, 330px); }
.desktop-site .list-prize-line { min-height: 36px; grid-template-columns: 34px 1fr auto; gap: 8px; color: #555f6d; font-size: 15px; }
.desktop-site .list-prize-line small { color: #0a9a7e; font-size: 13px; }
.desktop-site .list-prize-1 strong { font-size: 18px; }
.desktop-site .draw-list-date { color: #333; font-size: 16px; }
.desktop-site .draw-list-action a { min-width: 108px; height: 48px; border-color: #ddd; border-radius: 12px; font-size: 15px; font-weight: 700; }
.desktop-site .draw-list-action a:hover { border-color: #f45140; background: #f45140; color: #fff; }

.desktop-site .results-notice { margin: 20px 32px 24px; color: #7b8391; font-size: 13px; }
.desktop-site .results-pagination { min-height: 84px; }
.desktop-site .results-pagination button { width: 46px; height: 46px; border-color: #ddd; }
.desktop-site .results-pagination strong { font-size: 17px; }

/* ---- 통계 연구실 ---- */
.desktop-site .subpage-content { padding-top: 28px; }

.desktop-site .filter-bar,
.desktop-site .metric-grid article,
.desktop-site .occurrence-card,
.desktop-site .pattern-card {
  border: 1px solid #e2e6eb;
  border-radius: 17px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(32, 42, 55, .045);
}

.desktop-site .filter-bar.stats-range-bar { min-height: 150px; padding: 26px 32px; gap: 40px; }
.desktop-site .filter-bar > div:first-child > span,
.desktop-site .range-preset-row > span,
.desktop-site .manual-range-row > span { font-size: 15px; font-weight: 700; color: #4b5666; }
.desktop-site .filter-bar button { padding: 11px 18px; border-radius: 12px; font-size: 15px; font-weight: 700; }
.desktop-site .range-count span { font-size: 14px; }
.desktop-site .range-count strong { font-size: 18px; }
.desktop-site .manual-range-row output { font-size: 15px; font-weight: 700; }
.desktop-site .data-basis { font-size: 14px; }

.desktop-site .metric-grid { gap: 18px; margin: 18px 0; }
.desktop-site .metric-grid article { min-height: 170px; padding: 28px 30px; }
.desktop-site .metric-grid article > span { font-size: 15px; font-weight: 800; color: #4b5666; }
.desktop-site .metric-grid article > strong { font-size: 40px; }
.desktop-site .metric-grid article > p { font-size: 14px; color: #707b8b; }

.desktop-site .occurrence-card { width: 100%; margin: 0; padding: 34px 36px 30px; }
.desktop-site .analysis-head > div:first-child > span,
.desktop-site .pattern-section-head > div > span { font-size: 12px; }
.desktop-site .occurrence-card .analysis-head h2,
.desktop-site .pattern-section-head h2 { font-size: 24px; font-weight: 850; }
.desktop-site .occurrence-head > div:first-child > p { font-size: 15px; }
.desktop-site .occurrence-tabs button,
.desktop-site .occurrence-gap-tab { min-height: 44px; padding: 10px 18px; border-radius: 12px; font-size: 15px; }
.desktop-site .occurrence-heatmap { gap: 10px; margin-top: 26px; }
.desktop-site .occurrence-cell { min-height: 78px; border-radius: 12px; gap: 6px; }
.desktop-site .occurrence-cell strong { font-size: 24px; }
.desktop-site .occurrence-cell span { font-size: 14px; }
.desktop-site .occurrence-legend { margin-top: 18px; font-size: 14px; }

.desktop-site .pattern-section { width: 100%; margin: 28px 0 0; padding: 0; background: none; box-shadow: none; border-radius: 0; }
.desktop-site .pattern-section-head > p { font-size: 15px; color: #707b8b; }
.desktop-site .pattern-grid { gap: 18px; margin-top: 20px; }
.desktop-site .pattern-card { min-height: 280px; padding: 28px 30px 26px; }
.desktop-site .pattern-card-head > span { width: 36px; height: 28px; border-radius: 8px; font-size: 13px; }
.desktop-site .pattern-card-head h3 { font-size: 20px; }
.desktop-site .pattern-main { margin-top: 22px; font-size: 42px; }
.desktop-site .pattern-main + p { margin-top: 10px; font-size: 14px; color: #707b8b; }
.desktop-site .pattern-rows { gap: 12px; margin-top: 20px; padding-top: 18px; }
.desktop-site .pattern-rows > div { grid-template-columns: 96px 1fr 54px; gap: 12px; }
.desktop-site .pattern-rows span { font-size: 14px; }
.desktop-site .pattern-rows i { height: 8px; }
.desktop-site .pattern-rows strong { font-size: 14px; }
.desktop-site .companion-pattern-card { min-height: 0; }
.desktop-site .companion-caption { font-size: 14px; }
.desktop-site .companion-pairs > div { min-height: 76px; border-radius: 13px; grid-template-columns: 28px 1fr 60px; }
.desktop-site .companion-pairs > div > span { font-size: 14px; }
.desktop-site .companion-pairs > div > strong { font-size: 16px; }

/* ---- 번호 생성 ---- */
.desktop-site .generator-workspace { margin-top: 28px; }

.desktop-site .generation-mode-switch strong { font-size: 18px; }
.desktop-site .generation-mode-switch span { font-size: 13px; }
.desktop-site .generator-toolbar h2,
.desktop-site .ai-recommendation-copy h2 { font-size: 24px; font-weight: 850; }
.desktop-site .generator-toolbar > div:first-child > p,
.desktop-site .ai-recommendation-copy p { font-size: 12px; }
.desktop-site .generator-toolbar h2 + span,
.desktop-site .ai-recommendation-copy > span { font-size: 14px; }
.desktop-site .preset-button, .desktop-site .reset-button { min-height: 44px; border-radius: 12px; font-size: 14px; font-weight: 700; }
.desktop-site .selection-preview-row > span { font-size: 15px; }
.desktop-site .selection-preview-row > strong { font-size: 13px; }
.desktop-site .generator-filter-chips span { font-size: 15px; }
.desktop-site .generator-filter-chips strong { font-size: 13px; }
.desktop-site .filter-panel-head strong { font-size: 20px; }
.desktop-site .filter-panel-copy strong,
.desktop-site .filter-description { font-size: 14px; }
.desktop-site .filter-option-grid button,
.desktop-site .filter-count-row button { font-size: 14px; }
.desktop-site .generator-results-head span { font-size: 14px; }
.desktop-site .generator-results-head strong { font-size: 22px; font-weight: 850; }
.desktop-site .generator-results-head p { font-size: 13px; }
.desktop-site .result-card-summary span { font-size: 12px; }
.desktop-site .result-card-summary strong { font-size: 14px; }
.desktop-site .result-card-actions button { min-height: 44px; font-size: 14px; }
.desktop-site .set-stepper strong { font-size: 17px; }
.desktop-site .set-stepper span { font-size: 12px; }
.desktop-site .generate-button { font-size: 17px; border-radius: 12px; }
.desktop-site .qr-create-button { font-size: 17px; border-radius: 12px; }
.desktop-site .generator-disclaimer { font-size: 13px; }

/* stats range bar: keep labels and buttons on one line */
.desktop-site .filter-bar.stats-range-bar { padding: 26px 28px; gap: 28px; }
.desktop-site .filter-bar.stats-range-bar button,
.desktop-site .filter-bar.stats-range-bar span,
.desktop-site .filter-bar.stats-range-bar strong,
.desktop-site .filter-bar.stats-range-bar output { white-space: nowrap; }
.desktop-site .filter-bar.stats-range-bar button { padding: 10px 14px; font-size: 14px; }
.desktop-site .range-count { margin-left: 8px; padding-left: 14px; }
.desktop-site .range-count strong { font-size: 16px; }
.desktop-site .manual-range-row { grid-template-columns: auto minmax(200px, 420px) auto; }
.desktop-site .data-basis { flex: 0 0 auto; }

/* 당첨결과 목록: 회차 번호와 당첨정보는 볼드 없이 */
.desktop-site .draw-list-round strong,
.desktop-site .list-prize-line span,
.desktop-site .list-prize-line strong,
.desktop-site .list-prize-line small,
.desktop-site .list-prize-1 strong { font-weight: 400; }

/* 1등 라인만 볼드 */
.desktop-site .list-prize-1 span,
.desktop-site .list-prize-1 strong,
.desktop-site .list-prize-1 small { font-weight: 800; }

/* 번호 생성: show all five slips at once (scaled down, no horizontal scroll at desktop widths) */
.desktop-site .generator-result-grid {
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 8px;
}

.desktop-site .generator-result-grid .generator-result-card {
  flex: 0 0 292px;
  zoom: .8;
}

@media (max-width: 1360px) {
  .desktop-site .generator-result-grid .generator-result-card { zoom: .7; }
}

/* 번호 생성: bigger, evenly scaled number text (slips are shown at 80%, so their base size is raised) */
.desktop-site .filter-number-grid { gap: 9px; }
.desktop-site .filter-number-grid button { font-size: 16px; font-weight: 800; }

.desktop-site .selection-preview-balls { gap: 8px; }
.desktop-site .selection-preview-balls .selection-ball { width: 38px; height: 38px; font-size: 15px; }
.desktop-site .selection-preview-balls em { font-size: 13px; }
.desktop-site .selection-preview-balls small { font-size: 12px; }

.desktop-site .generator-result-card .result-number-grid > button,
.desktop-site .generator-result-card .result-number-grid > span { font-size: 17px; }
.desktop-site .generator-result-card .result-number-grid > button.selected { font-size: 15px; letter-spacing: -.04em; }
.desktop-site .generator-result-card .result-card-summary span { font-size: 13px; }
.desktop-site .generator-result-card .result-card-summary strong { font-size: 15px; }
.desktop-site .generator-result-card .result-card-actions button { font-size: 14px; }
.desktop-site .generator-result-card .result-card-head strong { font-size: 30px; }
.desktop-site .generator-result-card .result-card-head em { font-size: 23px; }

/* 번호 생성: lighter weights on the filter chips, summary row and bottom buttons */
.desktop-site .generator-filter-chips span { font-weight: 600; }
.desktop-site .generator-filter-chips strong { font-weight: 500; }
.desktop-site .selection-preview-row > span { font-weight: 600; }
.desktop-site .selection-preview-row > strong { font-weight: 600; }
.desktop-site .generator-toolbar .reset-button,
.desktop-site .generator-toolbar .preset-button { font-weight: 600; }
.desktop-site .generate-button,
.desktop-site .qr-create-button { font-weight: 600; }
.desktop-site .generator-filter-chips button strong,
.desktop-site .generator-filter-chips button.configured strong { font-size: 13px; font-weight: 500; }
.desktop-site .generator-filter-chips button > span { font-weight: 600; }

/* 번호 생성: clean two-tab switch attached to the card (no notches, no helper text) */
.desktop-site .generator-workspace {
  border: 1px solid #e2e6eb;
  border-radius: 17px;
  box-shadow: 0 8px 24px rgba(32, 42, 55, .045);
}

.desktop-site .generator-workspace .generation-mode-switch {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.desktop-site .generator-workspace .generation-mode-switch::after { display: none; }

.desktop-site .generator-workspace .generation-mode-switch > button {
  min-height: 68px;
  border: 0;
  border-bottom: 1px solid #e2e6eb;
  border-radius: 0;
  background: #f7f9fc;
  box-shadow: none;
  gap: 0;
}

.desktop-site .generator-workspace .generation-mode-switch > button + button { border-left: 1px solid #e2e6eb; }
.desktop-site .generator-workspace .generation-mode-switch > button:first-child { border-radius: 16px 0 0 0; }
.desktop-site .generator-workspace .generation-mode-switch > button:last-child { border-radius: 0 16px 0 0; }

.desktop-site .generator-workspace .generation-mode-switch > button.active,
.desktop-site .generator-workspace .generation-mode-switch > button:first-child.active,
.desktop-site .generator-workspace .generation-mode-switch > button:last-child.active {
  border-bottom-color: #fff;
  background: #fff;
  box-shadow: inset 0 3px 0 #f45140;
}

.desktop-site .generator-workspace .generation-mode-switch > button.active::after { display: none; }
.desktop-site .generator-workspace .generation-mode-switch > button > span { display: none; }
.desktop-site .generator-workspace .generation-mode-switch strong { font-size: 17px; font-weight: 600; }

.desktop-site .generator-workspace .generator-studio {
  margin-top: 0;
  border-radius: 0 0 16px 16px !important;
}

.desktop-site .generator-workspace .generation-mode-switch {
  width: 100%;
  max-width: none;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.desktop-site .generator-workspace .generator-studio {
  border: 0;
  box-shadow: none;
}

/* 번호 생성 · AI 번호 추천: the studio is blurred and locked; only the app-download popup is usable */
.desktop-site .generator-workspace { position: relative; }

.desktop-site .ai-generator-studio {
  filter: blur(7px);
  pointer-events: none;
  user-select: none;
  min-height: 720px;
}

.desktop-site .ai-lock-overlay {
  position: absolute;
  z-index: 6;
  inset: 68px 0 0 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  border-radius: 0 0 16px 16px;
  background: rgba(255, 255, 255, .28);
}

/* sticky so the popup stays centered in the viewport while the page scrolls */
.desktop-site .ai-lock-dialog {
  position: sticky;
  top: calc(50vh - 200px);
  margin-top: 90px;
  z-index: 7;
}

.desktop-site .ai-lock-dialog .ai-app-download-close { display: grid; place-items: center; }

/* popup fixed at the center of the blurred panel (no longer follows the viewport) */
.desktop-site .ai-lock-overlay { align-items: center; }
.desktop-site .ai-lock-dialog { position: relative; top: auto; margin-top: 0; }

/* 번호 생성: slips start at the left; lighter "N개 조합" heading */
.desktop-site .generator-result-grid { justify-content: flex-start; }
.desktop-site .generator-results-head strong { font-weight: 600; }
