:root {
  --bg: #fffaf3;
  --ink: #2b2420;
  --muted: #6b5f57;
  --card: #ffffff;
  --line: #eadfd2;
  --accent: #e0673a;
  --accent-ink: #ffffff;
  --sun: #f4b63f;
  --leaf: #4f9a78;
  --sky: #4b86c5;
  --berry: #b9527a;
  --notice-bg: #2b2420;
  --notice-ink: #fff3e2;
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", system-ui, sans-serif;
  font-size: 18px;
  line-height: 1.65;
  word-break: keep-all;
  overflow-wrap: break-word;
}

h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5em; }
p { margin: 0 0 .75em; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.notice-bar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--notice-bg);
  color: var(--notice-ink);
  text-align: center;
  font-size: 15px;
  font-weight: 700;
  padding: 8px 16px;
  letter-spacing: .02em;
}

/* 첫 화면 */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ffe6cf 0%, #ffd2b8 55%, #fbc6a4 100%);
  padding: 40px 16px 48px;
}
.hero-inner { position: relative; z-index: 1; max-width: 720px; margin: 0 auto; }
.hero-photo {
  margin: 0 0 22px;
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(120, 60, 30, .18);
}
.hero-photo img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center 60%;
}
.hero-photo figcaption {
  font-size: 14px;
  color: var(--muted);
  padding: 8px 14px;
  text-align: right;
}
.hero-host {
  display: inline-block;
  background: rgba(255,255,255,.7);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 14px;
}
.hero h1 { font-size: clamp(32px, 8vw, 52px); letter-spacing: -.02em; }
.hero-lead { font-size: 19px; color: #4a3d35; max-width: 34em; }

.hero-facts {
  background: rgba(255,255,255,.85);
  border-radius: 18px;
  padding: 8px 18px;
  margin: 22px 0;
}
.hero-facts li, .host-list li {
  display: flex;
  gap: 14px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.hero-facts li:last-child, .host-list li:last-child { border-bottom: 0; }
.label {
  flex: 0 0 4.2em;
  font-weight: 700;
  color: var(--accent);
}
.hero-facts small, .host-list small { display: block; color: var(--muted); font-size: 15px; }

.hero-cta { margin: 4px 0 8px; }
.btn {
  display: inline-block;
  min-height: 56px;
  padding: 14px 28px;
  border-radius: 14px;
  font-size: 19px;
  font-weight: 700;
  text-decoration: none;
  width: 100%;
  text-align: center;
}
.btn-disabled { background: #d9cbbd; color: #5d5047; cursor: not-allowed; }
.hero-sub { font-size: 15px; color: var(--muted); }

.hero-shapes .dot { position: absolute; border-radius: 50%; opacity: .55; }
.hero-shapes .d1 { width: 160px; height: 160px; background: var(--sun); top: -50px; right: -40px; }
.hero-shapes .d2 { width: 90px; height: 90px; background: var(--leaf); top: 120px; right: -30px; }
.hero-shapes .d3 { width: 70px; height: 70px; background: var(--sky); bottom: -20px; left: 10%; }
.hero-shapes .d4 { width: 48px; height: 48px; background: var(--berry); bottom: 40px; right: 18%; }

/* 섹션 */
.section { max-width: 720px; margin: 0 auto; padding: 40px 16px 8px; }
.section h2 {
  font-size: 26px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section h2::before {
  content: "";
  width: 10px;
  height: 26px;
  border-radius: 4px;
  background: var(--accent);
}
.section-lead { color: var(--muted); font-size: 16px; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  margin-bottom: 14px;
}
.card h3 { font-size: 19px; }
.card p:last-child { margin-bottom: 0; }

/* 프로그램 */
.timeline { display: grid; gap: 14px; }
.prog {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 8px solid var(--accent);
  border-radius: 16px;
  padding: 18px 18px 16px;
}
.prog.common { border-left-color: #c7b8aa; background: #fbf6f0; }
.prog-time { font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 4px; }
.prog.common .prog-time { color: var(--muted); }
.prog h3 { font-size: 20px; margin-bottom: 4px; }
.prog p { margin-bottom: 10px; }
.tag {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  padding: 3px 12px;
  border-radius: 999px;
  background: #fde3d6;
  color: #a6431d;
}
.tag-common { background: #eee5dc; color: var(--muted); }

/* 참가 안내 */
.todo-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
}
.todo-list li:last-child { border-bottom: 0; }
.todo-list em {
  flex: 0 0 auto;
  font-style: normal;
  font-size: 14px;
  font-weight: 700;
  color: var(--sky);
  background: #e6effa;
  border-radius: 999px;
  padding: 2px 10px;
}

/* 주최 */
.mission {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  background: #fff1e4;
  font-weight: 700;
  color: #8a3d1c;
}
.sub-title { font-size: 20px; margin-top: 24px; }
.activity-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.activity { border-radius: 16px; padding: 16px 18px; color: #fff; }
.activity h4 { font-size: 18px; margin-bottom: 4px; }
.activity p { margin: 0; font-size: 16px; opacity: .95; }
.a1 { background: var(--sky); }
.a2 { background: var(--leaf); }
.a3 { background: var(--berry); }
.a4 { background: var(--accent); }
.small-note { font-size: 15px; color: var(--muted); margin-top: 10px; }
.break { word-break: break-all; }

.footer {
  margin-top: 40px;
  background: var(--notice-bg);
  color: var(--notice-ink);
  padding: 28px 16px 36px;
  text-align: center;
  font-size: 15px;
}
.footer p { max-width: 640px; margin: 0 auto 6px; }

/* 버튼 */
.btn-primary { background: var(--accent); color: var(--accent-ink); border: 0; cursor: pointer; font-family: inherit; }
.btn-primary:hover { background: #c95427; }
.btn-primary:disabled { background: #d9cbbd; color: #5d5047; cursor: wait; }
.btn-ghost { background: #fff; color: var(--ink); border: 2px solid var(--line); cursor: pointer; font-family: inherit; min-height: 48px; padding: 10px 18px; font-size: 17px; }
.btn-block { width: 100%; }
.btn:focus-visible, input:focus-visible { outline: 3px solid var(--sky); outline-offset: 2px; }

.steps { list-style: decimal; padding-left: 1.4em; }
.steps li { padding: 4px 0; }

/* 신청 폼 */
.form-notice {
  background: #2b2420;
  color: var(--notice-ink);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 16px;
}
.form-notice strong { display: block; font-size: 17px; }
.form .field { border: 0; margin: 0 0 22px; padding: 0; min-width: 0; }
.form label, .form legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
.form em { font-style: normal; font-size: 14px; color: var(--accent); font-weight: 700; margin-left: 4px; }
.form input[type=text], .form input[type=tel], .form input[type=number], .form input[type=password] {
  width: 100%;
  min-height: 54px;
  font-size: 18px;
  font-family: inherit;
  padding: 10px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
}
.form input[aria-invalid=true] { border-color: #c0392b; }
.check {
  display: flex !important;
  gap: 12px;
  align-items: flex-start;
  font-weight: 400 !important;
  padding: 12px 14px;
  border: 2px solid var(--line);
  border-radius: 12px;
  margin-bottom: 8px;
  cursor: pointer;
  background: #fff;
}
.check input { width: 24px; height: 24px; margin: 2px 0 0; flex: 0 0 auto; accent-color: var(--accent); }
.check small { display: block; color: var(--muted); font-size: 15px; }
.hint { font-size: 15px; color: var(--muted); margin: 6px 0 0; }
.err { color: #b0281b; font-size: 15px; font-weight: 700; margin: 6px 0 0; }
.err:empty { display: none; }
.consent-box { background: #fbf6f0; border-radius: 14px; padding: 16px !important; }
.consent-title { font-weight: 700; margin-bottom: 6px; }
.consent-list { list-style: disc; padding-left: 1.2em; font-size: 15px; color: var(--muted); margin-bottom: 12px; }

.status { border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; font-size: 16px; font-weight: 700; }
.status-warn { background: #fff4d6; color: #7a5200; }
.status-error { background: #fde4e1; color: #8f1f14; }

.section, .done { scroll-margin-top: 64px; } /* 고정 띠에 가리지 않게 */
.done { text-align: center; border: 3px solid var(--leaf); }
.done-badge { display: inline-block; background: var(--leaf); color: #fff; font-weight: 700; border-radius: 999px; padding: 4px 16px; }
.receipt { font-size: 20px; }
.receipt strong { display: block; font-size: 26px; letter-spacing: .06em; color: var(--leaf); }
.done .btn { margin-top: 8px; }

.footer-link { color: var(--notice-ink); }

/* 관리자 */
.back-link { color: var(--muted); }
.admin-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.admin-summary { font-weight: 700; margin: 0; }
.admin-actions { display: flex; gap: 8px; }
.app-list { display: grid; gap: 12px; }
.app-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px; margin-bottom: 8px; }
.app-head strong { color: var(--accent); letter-spacing: .04em; }
.app-time { font-size: 14px; color: var(--muted); }
.app-rows { display: grid; grid-template-columns: 5em 1fr; gap: 4px 10px; margin: 0; }
.app-rows dt { font-weight: 700; color: var(--muted); }
.app-rows dd { margin: 0; }

@media (min-width: 640px) {
  .btn { width: auto; }
  .activity-grid { grid-template-columns: 1fr 1fr; }
  .hero { padding: 64px 24px 72px; }
}
