@charset "UTF-8";

/* ============================================================
   game-rules/desktop.css — 게임룰 & 개인정보/면책고지 페이지 전용
   (dashboard/desktop.css 와 완전히 독립)
   역할: CSS 변수 + 리셋만. 컴포넌트 스타일은 각 HTML <style>에 정의.
   ============================================================ */

/* ── CSS 변수 ─────────────────────────────────────────────── */
:root {
  /* 주색상 */
  --color-primary:        #1e2530;
  --color-primary-dark:   #151c26;
  --color-primary-light:  #e8eef7;

  /* 포인트색 */
  --color-accent:         #10b981;
  --color-accent-light:   #d1fae5;
  --color-accent-bg:      #f0f8f4;

  /* 성공(= 초록 액센트) */
  --success:              #10b981;

  /* 텍스트 */
  --color-text:           #0f1c2e;
  --color-text-sub:       #4a5f7a;
  --color-text-muted:     #8fa3b8;

  /* 배경 & 선 */
  --color-bg:             #f0f4f8;
  --color-bg-white:       #ffffff;
  --color-border:         #dde5f0;

  /* 상태색 */
  --color-danger:         #ef4444;
  --color-warning:        #f59e0b;

  /* 폰트 */
  --font-base: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;

  /* 폰트 크기 */
  --text-xs:    clamp(0.625rem, 2.2vw, 0.75rem);
  --text-sm:    clamp(0.6875rem,2.5vw, 0.875rem);
  --text-base:  clamp(0.75rem,  2.8vw, 0.9375rem);
  --text-md:    clamp(0.8125rem,3.0vw, 1rem);
  --text-lg:    clamp(0.875rem, 3.2vw, 1.125rem);
  --text-xl:    clamp(1rem,     3.5vw, 1.375rem);
  --text-2xl:   clamp(1.25rem,  4.5vw, 1.75rem);

  /* 간격 */
  --space-xs:   clamp(4px,  1vw,  6px);
  --space-sm:   clamp(8px,  2vw,  12px);
  --space-md:   clamp(12px, 2.5vw,16px);
  --space-lg:   clamp(16px, 3vw,  24px);
  --space-xl:   clamp(20px, 4vw,  32px);

  /* 둥글기 */
  --radius-sm:   8px;
  --radius-md:   14px;
  --radius-lg:   22px;
  --radius-xl:   32px;
  --radius-full: 9999px;

  /* 전환 */
  --transition: 0.15s ease;
}

/* ── 리셋 & 기본 설정 ────────────────────────────────────── */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  font-family: var(--font-base);
  font-size: var(--text-base);
  color: var(--color-text);
  background: var(--color-bg);
  min-height: 100vh;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a            { color: inherit; text-decoration: none; }
button       { font-family: var(--font-base); cursor: pointer; border: none; background: none; }
input,
select,
textarea     { font-family: var(--font-base); }
img          { max-width: 100%; display: block; }
ul, ol       { list-style: none; }

/* ── 헤더 ────────────────────────────────────────────────── */
body { padding-bottom: 70px; }

.sa-header { position: fixed; top: 0; left: 0; right: 0; height: 60px; background: linear-gradient(135deg, #1e2530 0%, #2a4a72 100%); display: flex; align-items: center; padding: 0; z-index: 200; box-shadow: 0 1px 4px rgba(0,0,0,0.18); }
.sa-header-inner { max-width: 1200px; margin: 0 auto; padding: 0 40px; width: 100%; display: flex; align-items: center; gap: 20px; }

@keyframes logo-text-shine {
  0%   { background-position: 200% center, 0% center; }
  50%  { background-position: -200% center, 0% center; }
  100% { background-position: -200% center, 0% center; }
}
.sa-logo { display: inline-flex; align-items: center; background: linear-gradient(90deg, transparent 0%, rgba(255,255,255,0.75) 50%, transparent 100%), linear-gradient(90deg, #38bdf8 0%, #38bdf8 11%, rgba(255,255,255,0.8) 11%, rgba(255,255,255,0.8) 38%, #4ade80 38%, #4ade80 49%, rgba(255,255,255,0.8) 49%); background-size: 200% auto, 100% auto; background-position: 200% center, 0% center; background-repeat: no-repeat, no-repeat; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; font-size: 18px; font-weight: 800; text-decoration: none; letter-spacing: -0.3px; font-family: var(--font-base); flex-shrink: 0; animation: logo-text-shine 2.4s ease-in-out infinite; }
.sa-nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.sa-nav a { color: rgba(255,255,255,0.75); font-size: 14px; font-weight: 500; text-decoration: none; padding: 6px 12px; border-radius: var(--radius-sm); transition: background 0.15s, color 0.15s; }
.sa-nav a:hover { background: rgba(255,255,255,0.12); color: #fff; }
.sa-nav a.is-active { background: rgba(255,255,255,0.18); color: #fff; }

/* ── 메인 레이아웃 ────────────────────────────────────────── */
.sa-main { padding-top: 60px; background: var(--color-bg); min-height: 100vh; }
.sa-wrap { max-width: 1200px; margin: 0 auto; padding: var(--space-xl); }

/* ── 카드 공통 ───────────────────────────────────────────── */
.card { background: var(--color-bg-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-md) var(--space-lg); }
.card-title { font-size: calc(var(--text-base) * 1.15); font-weight: 700; color: var(--color-text); margin-bottom: var(--space-sm); }

/* ── 브레드크럼 ──────────────────────────────────────────── */
.gr-breadcrumb { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--color-text-muted); margin-bottom: var(--space-md); flex-wrap: wrap; }
.gr-breadcrumb a { color: var(--color-text-muted); text-decoration: none; transition: color 0.15s; }
.gr-breadcrumb a:hover { color: var(--color-primary); }
.gr-breadcrumb-sep { color: var(--color-text-muted); opacity: 0.5; }
.gr-breadcrumb-cur { color: var(--color-text-sub); }

/* ── 페이지 타이틀 ───────────────────────────────────────── */
.gr-page-title { display: flex; align-items: center; gap: 12px; margin-bottom: var(--space-lg); }
.gr-page-title h1 { font-size: 24px; font-weight: 700; color: var(--color-text); letter-spacing: -0.5px; margin: 0; }
.gr-country-badge { font-size: 12px; font-weight: 600; color: var(--color-primary); background: rgba(30,68,160,0.08); border: 1px solid rgba(30,68,160,0.18); border-radius: 20px; padding: 3px 10px; flex-shrink: 0; }

/* 게임룰 업데이트 날짜 */
.gr-updated  { font-size: 12px; color: var(--color-text-muted); margin: -16px 0 20px; }

/* ── 2단 그리드 ──────────────────────────────────────────── */
.gr-layout { display: grid; grid-template-columns: minmax(0,1fr) 300px; gap: var(--space-sm); }
.gr-content { display: flex; flex-direction: column; gap: var(--space-sm); min-width: 0; align-self: start; }
.gr-ad-col { display: none; /* AdSense 승인 후 flex로 변경 */ flex-direction: column; gap: var(--space-sm); }
.gr-ad-sticky { position: sticky; top: 72px; }

/* ── 광고 플레이스홀더 ───────────────────────────────────── */
.gr-ad-box { background: #f8fafc; border: 2px dashed #c8d8e8; border-radius: var(--radius-md); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--color-text-muted); font-size: 12px; }
.gr-ad-box-label { font-weight: 600; font-size: 11px; text-transform: uppercase; letter-spacing: 0.5px; }
.gr-ad-half { width: 300px; height: 600px; }
.gr-ad-rect { width: 100%; height: 90px; }
.gr-ad-leader { width: 100%; height: 90px; margin-bottom: var(--space-xs); }

/* ── 개요 배지 ───────────────────────────────────────────── */
.gr-overview-badges { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: var(--space-sm); }
.gr-badge { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 500; color: var(--color-text-sub); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: 20px; padding: 4px 12px; }
.gr-badge-label { font-size: 11px; color: var(--color-text-muted); font-weight: 400; }

/* ── 당첨 등급 테이블 ────────────────────────────────────── */
.gr-prize-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.gr-prize-table th { background: #a0b4c8; color: #fff; padding: 10px 14px; font-weight: 600; text-align: center; font-size: 13px; }
.gr-prize-table th:first-child { border-radius: 6px 0 0 0; }
.gr-prize-table th:last-child { border-radius: 0 6px 0 0; }
.gr-prize-table td { padding: 10px 14px; border-bottom: 1px solid var(--color-border); color: var(--color-text); text-align: center; }
.gr-prize-table tbody tr:hover { background: #f5f8fc; }
.gr-prize-rank-1 { color: #c8960c; font-weight: 700; font-size: 15px; }
.gr-prize-rank-2 { color: #8c8c8c; font-weight: 700; }
.gr-prize-rank-3 { color: #b07536; font-weight: 700; }
.gr-prize-cond { text-align: left !important; }
.gr-prize-prob { color: var(--color-text-sub); font-size: 13px; }
.gr-prize-fixed { color: var(--color-primary); font-weight: 600; font-size: 13px; }

/* ── 설명 텍스트 ─────────────────────────────────────────── */
.gr-desc { font-size: 14px; color: var(--color-text-sub); line-height: 1.75; }
.gr-desc strong { color: var(--color-text); font-weight: 600; }

/* ── CTA 카드 ────────────────────────────────────────────── */
.gr-cta-card { background: linear-gradient(135deg, var(--color-primary) 0%, #2563eb 100%); border-radius: var(--radius-lg); padding: var(--space-lg); display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.gr-cta-text { color: #fff; }
.gr-cta-text h3 { font-size: 16px; font-weight: 700; margin: 0 0 4px; }
.gr-cta-text p { font-size: 13px; margin: 0; opacity: 0.85; }
.gr-cta-btn { background: #fff; color: var(--color-primary); font-size: 14px; font-weight: 700; padding: 10px 20px; border-radius: var(--radius-md); text-decoration: none; white-space: nowrap; flex-shrink: 0; transition: background 0.15s; }
.gr-cta-btn:hover { background: #f0f4ff; }

/* ── FAQ 아코디언 ────────────────────────────────────────── */
.gr-faq-item { border-bottom: 1px solid var(--color-border); }
.gr-faq-q { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; cursor: pointer; font-size: 14px; font-weight: 600; color: var(--color-text); gap: 12px; }
.gr-faq-q:hover { color: var(--color-primary); }
.gr-faq-arrow { font-size: 16px; color: var(--color-text-muted); flex-shrink: 0; transition: transform 0.2s; }
.gr-faq-item.is-open .gr-faq-arrow { transform: rotate(180deg); }
.gr-faq-a { display: none; padding: 0 4px 14px; font-size: 13px; color: var(--color-text-sub); line-height: 1.7; }
.gr-faq-item.is-open .gr-faq-a { display: block; }

/* ── 구매 방법 ───────────────────────────────────────────── */
.gr-buy-items { display: flex; flex-direction: column; gap: 10px; margin-top: var(--space-sm); }
.gr-buy-item { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.gr-buy-label { font-weight: 700; color: var(--color-primary); flex-shrink: 0; }

/* ── 관련 게임 ───────────────────────────────────────────── */
.gr-related-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.gr-related-card { padding: 12px 14px; border: 1px solid var(--color-border); border-radius: var(--radius-md); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, background 0.15s; display: flex; flex-direction: column; gap: 4px; }
.gr-related-card:hover { border-color: #8fa3b8; box-shadow: 0 2px 8px rgba(30,37,48,0.10); background: #f0f4ff; }
.gr-related-country { font-size: 11px; color: var(--color-text); }
.gr-related-name { font-size: 14px; font-weight: 600; color: var(--color-text); }
.gr-related-range { font-size: 12px; color: var(--color-text-sub); }

/* ── 하단 고정 광고 바 ───────────────────────────────────── */
.gr-bottom-bar { position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid #dde5f0; display: none; /* AdSense 승인 후 flex로 변경 */ align-items: center; justify-content: center; height: 70px; z-index: 300; }
.gr-bottom-bar-inner { display: flex; align-items: center; gap: 16px; width: 100%; max-width: 1200px; padding: 0 28px; }
.gr-bottom-bar-label { font-size: 10px; font-weight: 700; letter-spacing: 0.08em; color: #b0bcc8; white-space: nowrap; }
.gr-bottom-bar-slot { flex: 1; height: 50px; background: #f8fafc; border: 2px dashed #c8d8e8; border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; color: #8fa3b8; }

/* ── 반응형 ──────────────────────────────────────────────── */
@media (max-width: 767px) { .sim-desktop-only { display: none !important; } .sim-mobile-notice { display: flex !important; } }

.top-btn { position: fixed; right: 32px; bottom: 32px; width: 44px; height: 44px; border-radius: 50%; background: #1e44a0; color: #fff; border: none; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 400; box-shadow: 0 2px 8px rgba(0,0,0,0.22); opacity: 0; pointer-events: none; transition: opacity 0.2s, transform 0.2s; }
.top-btn:hover { transform: translateY(-2px); }
.top-btn--visible { opacity: 1; pointer-events: auto; }

/* ── Exclude Numbers Widget ─────────────────────────────────── */
.gr-ex-card { background: var(--color-bg-white); border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-md) var(--space-lg); }
.gr-ex-header { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 14px; }
.gr-ex-title { font-size: calc(var(--text-base) * 1.15); font-weight: 700; color: var(--color-text); margin: 0 0 4px; }
.gr-ex-sub { font-size: 13px; color: var(--color-text-sub); margin: 0; }
.gr-ex-reset { font-size: 12px; color: var(--color-text-sub); background: var(--color-bg); border: 1px solid var(--color-border); border-radius: var(--radius-sm); padding: 5px 12px; cursor: pointer; flex-shrink: 0; transition: background 0.12s; }
.gr-ex-reset:hover { background: var(--color-border); }
.gr-ex-section { margin-bottom: 20px; }
.gr-ex-label-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.gr-ex-label { font-size: 11px; font-weight: 700; color: var(--color-text-sub); text-transform: uppercase; letter-spacing: 0.6px; }
.gr-ex-grid { display: flex; flex-wrap: wrap; gap: 5px; }
.gr-ex-btn { width: 34px; height: 34px; border-radius: 50%; border: 1.5px solid var(--color-primary); background: #fff; color: var(--color-primary); font-size: 12px; font-weight: 600; cursor: pointer; transition: all 0.12s; display: flex; align-items: center; justify-content: center; padding: 0; font-family: var(--font-base); }
.gr-ex-btn:hover { background: rgba(30,68,160,0.07); }
.gr-ex-btn.is-excluded { background: var(--color-primary); color: #fff; opacity: 0.45; }
.gr-ex-btn--bonus { border-color: #e63946; color: #e63946; }
.gr-ex-btn--bonus:hover { background: rgba(230,57,70,0.07); }
.gr-ex-btn--bonus.is-excluded { background: #e63946; color: #fff; opacity: 0.45; }
.gr-ex-stats { background: #f4fbf5; border: 1px solid #c2dfc8; border-radius: var(--radius-md); padding: 11px 16px; margin-top: 14px; margin-bottom: 20px; font-size: 13px; color: var(--color-text-sub); line-height: 1.7; }
.gr-ex-stats-val { font-weight: 700; color: var(--color-text); }
.gr-ex-stats-boost { font-weight: 700; color: #2a8a4a; }
.gr-ex-foot { margin-top: 14px; }
.gr-ex-foot-note { font-size: 13px; color: var(--color-text-sub); }
