/* =============================================================
   2026 산림레포츠 축제 OL 대회 — 스타일시트
   디자인 토큰(CSS 변수) + 컴포넌트 클래스. 빌드 도구 없음.
   ============================================================= */

/* ---------- 디자인 토큰 ---------- */
:root {
  /* Forest green */
  --forest-50:  #f2f8f4;
  --forest-100: #e1efe5;
  --forest-200: #c9e2d3;
  --forest-300: #a9cbb8;
  --forest-400: #6fa588;
  --forest-500: #2e5a44;
  --forest-600: #244836;
  --forest-700: #1a3628;

  /* Azalea blossom */
  --blossom-100: #fce8e6;
  --blossom-200: #f7d3cb;
  --blossom-500: #e07a5f;
  --blossom-600: #c86349;

  /* Neutrals */
  --warmbg: #fdfbf7;
  --sand:   #f4f1de;
  --ink:        #2d3748;
  --ink-soft:   #4a5568;
  --ink-muted:  #718096;
  --ink-faint:  #a0aec0;
  --line:       #edf0ee;
  --line-strong:#e2e8f0;
  --white: #fff;

  /* Accent chips */
  --amber-bg: #fef3c7; --amber-fg: #92400e; --amber-soft-bg: #fffbeb; --amber-soft-line: #fde68a; --amber-soft-fg: #92400e;
  --emerald-bg: #d1fae5; --emerald-fg: #065f46; --emerald-soft-bg: #ecfdf5; --emerald-soft-line: #a7f3d0; --emerald-soft-fg: #065f46;
  --blue-bg: #dbeafe; --blue-fg: #1e40af;

  /* Scale */
  --container: 72rem;
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 999px;

  --shadow-xs: 0 1px 2px rgba(26, 54, 40, .06);
  --shadow-sm: 0 1px 3px rgba(26, 54, 40, .08), 0 1px 2px rgba(26, 54, 40, .04);
  --shadow-md: 0 4px 12px rgba(26, 54, 40, .10);
  --shadow-lg: 0 12px 32px rgba(26, 54, 40, .14);

  --ring: 0 0 0 3px rgba(46, 90, 68, .35);
}

/* ---------- 리셋 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--warmbg);
  color: var(--ink);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* 한글은 어절(띄어쓰기) 단위로만 줄바꿈 — 단어 중간에서 끊기지 않도록 */
  word-break: keep-all;
  overflow-wrap: break-word;
}
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.25; color: var(--forest-700); font-weight: 800; text-wrap: balance; }
p { margin: 0; }
.section-head p, .hero__lead { text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
img, svg { max-width: 100%; display: block; }
button { font: inherit; color: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--blossom-100); color: var(--blossom-600); }

:focus-visible { outline: 2px solid var(--forest-500); outline-offset: 2px; border-radius: 4px; }

/* ---------- 레이아웃 헬퍼 ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 1rem; }
.container--narrow { max-width: 56rem; }
.stack > * + * { margin-top: 1rem; }

.section { padding-block: 3rem; border-bottom: 1px solid var(--line); }
.section--tint { background: var(--warmbg); }
.section--plain { background: var(--white); }
@media (min-width: 768px) { .section { padding-block: 4rem; } }

.section-head { max-width: 42rem; margin-inline: auto; margin-bottom: 2rem; text-align: center; }
.section-head p { margin-top: .5rem; color: var(--ink-soft); font-size: .9rem; }
.section-title { font-size: clamp(1.5rem, 4vw, 1.9rem); margin-top: .25rem; }
.eyebrow { font-size: .72rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.eyebrow--forest { color: var(--forest-500); }
.eyebrow--blossom { color: var(--blossom-500); }

/* ---------- 스킵 링크 ---------- */
.skip-link {
  position: absolute; left: 1rem; top: -3rem; z-index: 100;
  background: var(--forest-700); color: #fff; padding: .6rem 1rem; border-radius: var(--radius-sm);
  transition: top .15s ease;
}
.skip-link:focus { top: 1rem; }

/* ---------- 버튼 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .8rem 1.4rem; border-radius: var(--radius);
  font-size: .875rem; font-weight: 700; border: 1px solid transparent;
  transition: background-color .15s ease, transform .1s ease, box-shadow .15s ease;
  text-align: center;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--primary { background: var(--forest-500); color: #fff; box-shadow: var(--shadow-md); }
.btn--primary:hover { background: var(--forest-600); }
.btn--accent { background: var(--blossom-500); color: #fff; box-shadow: var(--shadow-md); }
.btn--accent:hover { background: var(--blossom-600); }
.btn--ghost { background: var(--white); color: var(--forest-700); border-color: var(--forest-200); }
.btn--ghost:hover { background: var(--forest-50); }
.btn--outline-light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--outline-light:hover { background: rgba(255,255,255,.2); }
.btn--sm { padding: .55rem .9rem; font-size: .8rem; }
.btn--pill { border-radius: var(--radius-pill); }
.btn--block { display: flex; width: 100%; }

/* ---------- 배지 ---------- */
.badge {
  display: inline-block; font-size: .72rem; font-weight: 700;
  padding: .15rem .5rem; border-radius: 6px; white-space: nowrap;
}
.badge--forest  { background: var(--forest-100);  color: var(--forest-700); }
.badge--amber   { background: var(--amber-bg);    color: var(--amber-fg); }
.badge--emerald { background: var(--emerald-bg);  color: var(--emerald-fg); }
.badge--blue    { background: var(--blue-bg);     color: var(--blue-fg); }
.badge--soft    { background: var(--forest-50);   color: var(--forest-700); font-weight: 600; }
/* 경기 방식 — 카테고리(채움) 배지와 구분되도록 테두리형, 스코어=코랄 / 포인트=그린 */
.badge--method  { background: var(--white); border: 1px solid currentColor; }
.badge--score   { color: var(--blossom-600); }
.badge--point   { color: var(--forest-600); }
.badge--method::before { content: ""; display: inline-block; width: .4rem; height: .4rem; margin-right: .3rem; border-radius: 50%; background: currentColor; vertical-align: 1px; }

/* ---------- 카드 ---------- */
.card {
  background: var(--white); border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.card--pad { padding: 1.5rem; }

/* ---------- 헤더 / 네비 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(253, 251, 247, .9); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--forest-100); box-shadow: var(--shadow-xs);
}
.site-header__inner {
  max-width: var(--container); margin-inline: auto; padding: .7rem 1rem;
  display: flex; align-items: center; justify-content: space-between; gap: .75rem;
}
.brand { display: flex; align-items: center; gap: .5rem; min-width: 0; }
.brand__mark { font-size: 1.5rem; flex-shrink: 0; }
.brand__title { font-size: 1rem; font-weight: 700; color: var(--forest-700); line-height: 1.2; }
@media (max-width: 400px) { .brand__title { font-size: .85rem; white-space: nowrap; } }
.brand__sub { font-size: .72rem; color: var(--forest-500); margin-top: 1px; }
@media (max-width: 480px) { .brand__sub { display: none; } }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a { font-size: .875rem; font-weight: 500; color: var(--ink-soft); transition: color .15s ease; white-space: nowrap; }
.nav a:hover { color: var(--forest-500); }
.nav a.is-active { color: var(--forest-600); font-weight: 700; }
@media (min-width: 981px) {
  .nav a { position: relative; }
  .nav a.is-active::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: -.4rem;
    height: 2px; background: var(--forest-500); border-radius: 2px;
  }
}

.header-actions { display: flex; align-items: center; gap: .5rem; }

.nav-toggle {
  display: none; width: 2.5rem; height: 2.5rem; align-items: center; justify-content: center;
  border: 1px solid var(--forest-200); border-radius: var(--radius-sm); background: var(--white);
}
.nav-toggle__bar, .nav-toggle__bar::before, .nav-toggle__bar::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--forest-700); border-radius: 2px;
  transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle__bar { position: relative; }
.nav-toggle__bar::before { position: absolute; top: -6px; }
.nav-toggle__bar::after  { position: absolute; top: 6px; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 980px) {
  .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--warmbg); border-bottom: 1px solid var(--forest-100);
    box-shadow: var(--shadow-md); padding: .5rem 1rem 1rem;
  }
  .nav[hidden] { display: none; }
  .nav a { padding: .75rem .25rem; border-bottom: 1px solid var(--line); }
  .nav a:last-child { border-bottom: 0; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(to bottom, var(--forest-50), var(--warmbg) 55%); }
.hero__grid { display: grid; gap: 2rem; align-items: center; }
@media (min-width: 768px) { .hero__grid { grid-template-columns: 7fr 5fr; } }

.pill-live {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--forest-100); color: var(--forest-700);
  font-size: .75rem; font-weight: 500; padding: .35rem .75rem; border-radius: var(--radius-pill);
}
.pill-live__dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--blossom-500); animation: pulse 2s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
.pill-live--closed { background: #f0e2de; color: var(--blossom-600); }
.pill-live--closed .pill-live__dot { background: var(--blossom-600); animation: none; }

.reg-closed-line { font-size: .85rem; font-weight: 700; color: var(--blossom-600); }

.hero__title { font-size: clamp(1.9rem, 6vw, 3rem); font-weight: 800; letter-spacing: -.02em; }
.hero__title .accent { color: var(--blossom-500); }
.hero__lead { color: var(--ink-soft); font-size: 1.05rem; }

.stat-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }
.stat { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-xs); padding: .85rem; text-align: center; display: flex; flex-direction: column; justify-content: center; }
.stat__label { display: block; font-size: .72rem; color: var(--ink-muted); }
.stat__value { display: block; font-weight: 700; font-size: .95rem; color: var(--forest-700); margin-top: .2rem; line-height: 1.25; }
.stat__value--accent { color: var(--blossom-500); }
.stat__sub { display: block; font-size: .72rem; color: var(--ink-muted); margin-top: .1rem; }
/* 개최 장소: '원미산' + '진달래동산 일대' 는 한 지명이라 두 줄 글씨체를 동일하게 */
.stat--place .stat__sub { font-size: .95rem; font-weight: 700; color: var(--forest-700); line-height: 1.25; margin-top: 0; }

.hero__cta { display: flex; flex-wrap: wrap; gap: .6rem; }
.hero__cta .btn { flex: 1 1 13rem; }
/* 오리엔티어링 기초 교육 영상 카드 (히어로 우측, 정보 카드 아래) */
.edu-card {
  display: flex; align-items: center; gap: .8rem;
  margin-top: 1rem; padding: 1rem 1.15rem;
  background: var(--white); border: 1px solid var(--blossom-200);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-xs);
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}
.edu-card:hover { border-color: var(--blossom-500); background: var(--blossom-100); box-shadow: var(--shadow-sm); }
.edu-card__icon { font-size: 1.4rem; flex-shrink: 0; }
.edu-card__body { display: flex; flex-direction: column; gap: .1rem; line-height: 1.35; }
.edu-card__body strong { font-size: .875rem; color: var(--forest-700); }
.edu-card__body span { font-size: .8rem; font-weight: 700; color: var(--blossom-600); }
.edu-card__arrow { margin-left: auto; font-size: 1.1rem; font-weight: 700; color: var(--blossom-500); flex-shrink: 0; }
.hero__note { font-size: .78rem; color: var(--ink-soft); line-height: 1.6; background: var(--forest-50); border: 1px solid var(--forest-100); border-radius: var(--radius-sm); padding: .6rem .8rem; }

/* Hero 정보 카드 */
.infocard { position: relative; overflow: hidden; padding: 1.5rem; background: var(--white); border: 1px solid var(--forest-100); border-radius: var(--radius-xl); box-shadow: var(--shadow-lg); }
.infocard__flag { position: absolute; top: 0; right: 0; background: var(--blossom-500); color: #fff; font-size: .72rem; font-weight: 700; padding: .25rem .75rem; border-bottom-left-radius: var(--radius); }
.infocard__title { font-size: 1.05rem; font-weight: 700; }
.infocard__note { font-size: .75rem; color: var(--ink-muted); margin-top: .15rem; }

.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; text-align: center; margin: 1rem 0; background: rgba(244, 241, 222, .5); border: 1px solid var(--sand); border-radius: var(--radius); padding: .75rem; }
.countdown__num { display: block; font-size: 1.35rem; font-weight: 900; color: var(--forest-700); font-variant-numeric: tabular-nums; }
.countdown__num--accent { color: var(--blossom-500); }
.countdown__unit { font-size: .625rem; color: var(--ink-muted); }
.countdown__done { grid-column: 1 / -1; font-weight: 700; color: var(--forest-700); padding: .5rem 0; }

.checklist { display: grid; gap: .6rem; font-size: .85rem; color: var(--ink-soft); padding-top: .5rem; }
.checklist li { display: flex; gap: .5rem; align-items: flex-start; }
.checklist b { color: var(--forest-500); flex-shrink: 0; }

/* ---------- 클래스 찾기 ---------- */
.finder { background: var(--warmbg); border: 1px solid var(--forest-100); border-radius: var(--radius-xl); padding: 1.5rem; max-width: 56rem; margin-inline: auto; box-shadow: var(--shadow-sm); }
@media (min-width: 768px) { .finder { padding: 2rem; } }
.finder__row { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .finder__row { grid-template-columns: repeat(3, 1fr); } }
.field label { display: block; font-size: .72rem; font-weight: 700; color: var(--forest-700); margin-bottom: .4rem; }
.select {
  width: 100%; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius);
  padding: .7rem .75rem; font-size: .875rem; color: var(--ink);
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%232e5a44' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right .7rem center; padding-right: 2rem;
}
.finder__result { margin-top: 1.5rem; background: var(--white); border: 2px solid var(--forest-500); border-radius: var(--radius); padding: 1.25rem; }
.finder__result-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.finder__result h4 { font-size: 1.1rem; font-weight: 900; margin-top: .35rem; }
.finder__result .sub { font-size: .8rem; color: var(--ink-soft); margin-top: .25rem; }
.finder__result .desc { font-size: .8rem; color: var(--ink-muted); margin-top: .15rem; }
.finder__result .btn { margin-top: 1rem; }
.finder__tip { font-size: .75rem; color: var(--ink-muted); margin-top: .75rem; text-align: center; }

/* ---------- 클래스별 상세 가이드 (가로 배치) ---------- */
.class-list { display: grid; gap: .6rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 560px)  { .class-list { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 800px)  { .class-list { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1080px) { .class-list { grid-template-columns: repeat(7, 1fr); } }
.class-item { width: 100%; height: 100%; display: flex; flex-direction: column; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: .85rem; transition: border-color .15s ease, box-shadow .15s ease; }
.class-item:hover { border-color: var(--forest-400); box-shadow: var(--shadow-xs); }
.class-item__top { display: flex; align-items: center; justify-content: flex-start; gap: .3rem; flex-wrap: wrap; }
.class-item h5 { font-size: .875rem; font-weight: 700; margin-top: .3rem; }
.class-item p { font-size: .75rem; color: var(--ink-muted); margin-top: .15rem; }
.class-item__fmt { display: block; }
.list-hint { font-size: .72rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-muted); margin-bottom: .5rem; }

.prize-grid { display: grid; gap: 1rem; margin-top: 2rem; }
@media (min-width: 768px) { .prize-grid { grid-template-columns: repeat(3, 1fr); } }
.prize { background: var(--white); border: 1px solid var(--forest-100); border-radius: var(--radius); padding: 1rem; text-align: center; box-shadow: var(--shadow-xs); }
.prize__medal { font-size: 1.5rem; }
.prize__name { font-weight: 700; font-size: .875rem; color: var(--forest-700); margin-top: .25rem; }
.prize__note { font-size: .75rem; color: var(--ink-muted); margin-top: .25rem; }

/* ---------- 부스 / 스탬프 ---------- */
.booth-grid { display: grid; gap: 1.5rem; }
@media (min-width: 768px) { .booth-grid { grid-template-columns: repeat(3, 1fr); } }
.booth { display: flex; flex-direction: column; justify-content: space-between; gap: 1rem; background: var(--warmbg); border: 1px solid var(--forest-100); border-radius: var(--radius-xl); padding: 1.25rem; transition: box-shadow .15s ease; }
.booth:hover { box-shadow: var(--shadow-md); }
.booth__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.booth__icon { font-size: 1.75rem; }
.booth h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.booth p { font-size: .78rem; color: var(--ink-soft); }
.stamp-btn { width: 100%; background: var(--white); border: 1px solid var(--forest-300); color: var(--forest-700); font-weight: 600; font-size: .78rem; padding: .55rem; border-radius: var(--radius-sm); transition: background-color .15s ease, color .15s ease; }
.stamp-btn:hover { background: var(--forest-50); }
.stamp-btn[data-stamped="true"] { background: var(--forest-500); color: #fff; border-color: var(--forest-500); }

.stamp-tracker { margin-top: 2rem; background: var(--forest-50); border: 1px solid var(--forest-200); border-radius: var(--radius-xl); padding: 1.5rem; text-align: center; }
.stamp-tracker h3 { font-size: .875rem; font-weight: 700; margin-bottom: .5rem; }
.progress { width: 100%; max-width: 36rem; height: 1rem; margin: 0 auto .75rem; background: var(--line-strong); border-radius: var(--radius-pill); overflow: hidden; }
.progress__fill { height: 100%; width: 0; background: var(--blossom-500); border-radius: inherit; transition: width .5s ease; }
.stamp-tracker__status { font-size: .78rem; color: var(--forest-700); font-weight: 500; }
.stamp-tracker__status b { color: var(--blossom-500); }

/* ---------- 오시는 길 / 주차 ---------- */
.transit-grid { display: grid; gap: 1.5rem; max-width: 64rem; margin-inline: auto; align-items: start; }
@media (min-width: 768px) { .transit-grid { grid-template-columns: 1fr 1fr; } }
.transit-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-xl); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.transit-card--rec { border-color: var(--forest-200); }
.transit-card__head { display: flex; align-items: center; gap: .75rem; margin-bottom: .75rem; }
.transit-card__icon { font-size: 1.75rem; }
.transit-card__head h3 { font-size: 1rem; font-weight: 700; }
.transit-card__head span { font-size: .75rem; color: var(--forest-500); font-weight: 600; }
.transit-card p { font-size: .85rem; color: var(--ink-soft); }
.fee-table { font-size: .78rem; color: var(--ink-soft); background: rgba(244, 241, 222, .4); border: 1px solid var(--sand); border-radius: var(--radius); padding: .75rem; margin-top: .75rem; display: grid; gap: .35rem; }
.fineprint { margin-top: 1rem; font-size: .7rem; color: var(--ink-faint); text-align: center; }

.transit-card__map { margin-top: 1.25rem; }

/* ---------- FAQ ---------- */
.faq-search { width: 100%; background: var(--warmbg); border: 1px solid var(--forest-100); border-radius: var(--radius); padding: .8rem 1rem; font-size: .875rem; margin-bottom: 1.5rem; }
.faq-list { display: grid; gap: .75rem; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--warmbg); }
.faq-item__q { width: 100%; padding: 1rem; text-align: left; font-weight: 700; color: var(--forest-700); font-size: .875rem; display: flex; justify-content: space-between; align-items: center; gap: 1rem; transition: background-color .15s ease; }
.faq-item__q:hover { background: var(--forest-50); }
.faq-item__icon { color: var(--ink-faint); font-size: 1.1rem; flex-shrink: 0; transition: transform .2s ease; }
.faq-item__q[aria-expanded="true"] .faq-item__icon { transform: rotate(45deg); }
.faq-item__a { padding: 1rem; background: var(--white); border-top: 1px solid var(--line); font-size: .8rem; color: var(--ink-soft); display: grid; gap: .75rem; }
.faq-item__a p { line-height: 1.7; }
.faq-note { padding: .75rem; border-radius: var(--radius-sm); font-size: .8rem; }
.faq-note--tip  { background: var(--emerald-soft-bg); border: 1px solid var(--emerald-soft-line); color: var(--emerald-soft-fg); }
.faq-note--warn { background: var(--amber-soft-bg);   border: 1px solid var(--amber-soft-line);   color: var(--amber-soft-fg); }
.faq-note p { line-height: 1.6; }
.faq-empty { font-size: .85rem; color: var(--ink-muted); text-align: center; padding: 1.5rem; }
mark { background: var(--sand); color: inherit; padding: 0 .1em; border-radius: 3px; }

/* ---------- 최종 CTA ---------- */
.final-cta { background: var(--forest-500); color: #fff; text-align: center; }
.final-cta h2 { color: #fff; font-size: clamp(1.5rem, 4vw, 1.9rem); }
.final-cta p { color: var(--forest-100); font-size: .9rem; max-width: 34rem; margin: 1rem auto 0; }
.final-cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .75rem; margin-top: 1.5rem; }

/* ---------- 푸터 ---------- */
.site-footer { background: var(--forest-700); color: var(--forest-100); font-size: .78rem; padding-block: 2rem; }
.site-footer__inner { max-width: var(--container); margin-inline: auto; padding-inline: 1rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-footer strong { color: #fff; font-size: .875rem; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.site-footer__right { text-align: right; color: #cbd5c8; }

/* ---------- 모달 ---------- */
.modal { position: fixed; inset: 0; z-index: 50; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, .6); backdrop-filter: blur(2px); }
.modal[hidden] { display: none; }
.modal__panel { position: relative; background: var(--white); border-radius: var(--radius-xl); max-width: 28rem; width: 100%; padding: 1.5rem; box-shadow: var(--shadow-lg); max-height: 90vh; overflow-y: auto; }
.modal__panel--wide { max-width: 30rem; }
.modal__close { position: absolute; top: .9rem; right: .9rem; width: 2rem; height: 2rem; border-radius: 50%; border: 0; background: transparent; color: var(--ink-faint); font-size: 1.1rem; }
.modal__close:hover { color: var(--ink-soft); background: var(--line); }
.modal__head { text-align: center; }
.modal__head .icon { font-size: 1.75rem; }
.modal__head h2 { font-size: 1.25rem; font-weight: 700; margin-top: .5rem; }
.modal__head p { font-size: .75rem; color: var(--ink-muted); margin-top: .25rem; }
.modal__body { margin-top: 1rem; display: grid; gap: 1rem; }
.modal__facts { background: var(--warmbg); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; display: grid; gap: .5rem; font-size: .8rem; color: var(--ink-soft); }
.modal__actions { display: grid; gap: .5rem; }

@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.modal:not([hidden]) .modal__panel { animation: fade-in .18s ease; }

/* ---------- 접근성 전용 텍스트 ---------- */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ---------- 복권기금 고지 ---------- */
.infocard__funding { margin-top: 1rem; padding-top: .75rem; border-top: 1px solid var(--line); font-size: .68rem; color: var(--ink-muted); line-height: 1.5; }
.final-cta__funding { margin-top: 1.5rem; font-size: .72rem; color: var(--forest-100); opacity: .9; }
.site-footer__funding { margin-top: .5rem; color: #a9c3b6; }

/* ---------- 타임테이블 ---------- */
.timetable-wrap { overflow-x: auto; margin-bottom: 2rem; }
.timetable { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); overflow: hidden; font-size: .85rem; }
.timetable thead th { background: var(--forest-500); color: #fff; text-align: left; padding: .7rem 1rem; font-size: .8rem; font-weight: 700; }
.timetable tbody th { text-align: left; vertical-align: top; padding: .8rem 1rem; white-space: nowrap; font-weight: 700; color: var(--forest-700); font-variant-numeric: tabular-nums; width: 8.5rem; }
.timetable tbody td { padding: .8rem 1rem; color: var(--ink-soft); }
.timetable tbody td strong { display: block; color: var(--ink); font-weight: 700; margin-bottom: .15rem; }
.timetable tbody td span { display: block; font-size: .8rem; }
.timetable tbody tr + tr th, .timetable tbody tr + tr td { border-top: 1px solid var(--line); }

.stamp-tracker__lead { font-size: .8rem; color: var(--ink-soft); max-width: 34rem; margin: 0 auto .9rem; }

/* ---------- 대회 진행 안내 카드 ---------- */
.notice-grid { display: grid; gap: 1rem; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 900px) { .notice-grid { grid-template-columns: repeat(4, 1fr); } }
.notice-card { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 1.25rem; box-shadow: var(--shadow-xs); }
.notice-card--accent { border-color: var(--blossom-500); box-shadow: 0 0 0 1px var(--blossom-500) inset, var(--shadow-xs); }
.notice-card a { color: var(--forest-700); text-decoration: underline; text-underline-offset: 2px; }
.notice-card__icon { font-size: 1.6rem; }
.notice-card h3 { font-size: .95rem; font-weight: 700; margin-top: .35rem; }
.notice-card__status { display: inline-block; margin: .45rem 0 .55rem; font-size: .72rem; font-weight: 700; color: var(--forest-600); background: var(--forest-50); border-radius: var(--radius-pill); padding: .2rem .65rem; }
.notice-card__status--live { color: var(--blossom-600); background: var(--blossom-100); }
.notice-card p:last-child { font-size: .8rem; color: var(--ink-soft); line-height: 1.6; }

/* ---------- 개인정보·촬영 동의 안내 ---------- */
.prose { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.prose h3 { font-size: .95rem; font-weight: 700; margin-top: 1.5rem; }
.prose h3:first-child { margin-top: 0; }
.prose ul { margin: .6rem 0 0; padding-left: 1.15rem; list-style: disc; display: grid; gap: .45rem; }
.prose li { font-size: .85rem; color: var(--ink-soft); line-height: 1.65; }
.prose li b { color: var(--forest-700); }
.prose__contact { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: .85rem; font-weight: 600; color: var(--forest-700); }
.prose__contact a:hover { text-decoration: underline; }

.modal__closed-note { font-size: .8rem; font-weight: 600; color: var(--blossom-600); background: var(--blossom-100); border-radius: var(--radius-sm); padding: .6rem .75rem; text-align: center; }

/* ---------- 유틸 ---------- */
.text-center { text-align: center; }
.muted { color: var(--ink-muted); }
[hidden] { display: none !important; }

/* ---------- 모션 최소화 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
