/* We Church 소개 — library.css 위에. 살아 있는 장면(하늘·해·달·날씨는 그 고장 지금 그대로) + 세계관 */

/* ===== 살아 있는 장면 ===== */
.wc-hero { max-width: 1120px; margin: 20px auto 0; padding: 0 16px; }
.wc-stage { position: relative; aspect-ratio: 2 / 1; border-radius: var(--r2); overflow: hidden; border: 1px solid var(--line); background: #BFD8EC; isolation: isolate; }
.wc-layer { position: absolute; inset: 0; }
.wc-sky { background: #BFD8EC center top / cover no-repeat; transition: opacity 1.2s ease; }
.wc-sky.b { opacity: 0; }
.wc-stars { opacity: 0; transition: opacity 1.5s ease; }
.wc-stars i { position: absolute; width: 2px; height: 2px; border-radius: 50%; background: #FFF8E8; }
.wc-clouds { background: center top / cover no-repeat; opacity: .4; transition: opacity 1.5s ease; }
.wc-body { position: absolute; border-radius: 50%; transform: translate(-50%, -50%); pointer-events: none; }
.wc-sun { width: 5.2%; aspect-ratio: 1; background: #FFF3D6; box-shadow: 0 0 0 10px rgba(255, 243, 214, .25), 0 0 46px 18px rgba(255, 226, 170, .55); }
.wc-moon { width: 4.2%; aspect-ratio: 1; }
.wc-moon svg { width: 100%; height: 100%; display: block; overflow: visible; }
.wc-rainbow { opacity: 0; transition: opacity 2s ease; }
.wc-land { background: center bottom / cover no-repeat; transition: filter 1.5s ease; }
.wc-tint { transition: background-color 1.5s ease; mix-blend-mode: multiply; pointer-events: none; }
.wc-haze { background: rgba(214, 205, 190, 0); transition: background-color 1.5s ease; pointer-events: none; }
.wc-fx { width: 100%; height: 100%; pointer-events: none; }
.wc-chip { position: absolute; left: 14px; bottom: 14px; z-index: 5; display: inline-flex; align-items: center; gap: 8px; max-width: calc(100% - 28px);
  padding: 7px 14px; border-radius: 999px; background: rgba(255, 251, 245, .92); border: 1px solid var(--line); font-size: 14px; font-weight: 700; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wc-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); flex: 0 0 8px; }
.wc-chip.demo .dot { background: var(--accent); }
.wc-intro { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: end; margin-top: 22px; }
.wc-intro h1 { margin: 0; }
.wc-intro .tag { font-size: clamp(18px, 2.2vw, 23px); font-weight: 800; color: var(--accent); margin: 6px 0 0; letter-spacing: -0.01em; }
.wc-intro p { margin: 0 0 14px; color: var(--sub); }

/* ===== 지금, 이 고장 ===== */
.now-head { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.now-pick { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.now-pick select { font: inherit; font-weight: 700; min-height: 44px; padding: 8px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); color: var(--ink); max-width: 100%; }
.now-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 1100px) { .now-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 14px 12px; min-width: 0; }
.stat .k { font-size: 13px; font-weight: 800; color: var(--mute); letter-spacing: .02em; }
.stat .v { font-size: 20px; font-weight: 800; margin: 2px 0 2px; line-height: 1.3; word-break: keep-all; }
.stat .s { font-size: 13.5px; color: var(--sub); line-height: 1.5; word-break: keep-all; }
.swatch { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border: 1px solid rgba(58, 40, 28, .25); vertical-align: -1px; margin-right: 6px; }
.fx-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.fx-list li { display: grid; grid-template-columns: 64px 1fr; gap: 10px; align-items: baseline; padding: 10px 14px; background: var(--paper); border: 1px solid var(--line); border-radius: 12px; font-size: 15px; }
.fx-list b { font-size: 13px; color: var(--accent); }
.nature-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.src-note { font-size: 12.5px; color: var(--mute); margin: 10px 0 0; }

/* ===== 네 자리 ===== */
.rings4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; counter-reset: ring; }
.ring { position: relative; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 0 0 16px; display: flex; flex-direction: column; }
.ring .pic { aspect-ratio: 1; background: var(--paper2) center / 92% no-repeat; border-bottom: 1px solid var(--line); border-radius: var(--r) var(--r) 0 0; }
.ring .body { padding: 14px 16px 0; flex: 1 1 auto; display: flex; flex-direction: column; }
.ring .no { font-size: 13px; font-weight: 800; color: var(--accent); }
.ring h3 { font-size: 20px; margin: 2px 0 2px; }
.ring .sub { font-size: 14px; font-weight: 700; color: var(--sub); margin: 0 0 8px; }
.ring p { margin: 0 0 10px; color: var(--sub); font-size: 14.5px; flex: 1 1 auto; }
.ring .badge { align-self: flex-start; }
.ring:not(:last-child)::after { content: "→"; position: absolute; right: -11px; top: 28%; z-index: 2; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.links-band { margin-top: 14px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.links-band .card h3 { font-size: 16px; }

/* ===== 규칙 표 ===== */
.rules { width: 100%; border-collapse: separate; border-spacing: 0; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 15px; }
.rules th, .rules td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.rules tr:last-child td { border-bottom: 0; }
.rules th { font-size: 13px; color: var(--sub); background: var(--paper2); }
.rules td:first-child { font-weight: 800; white-space: nowrap; }
.rules td.st { white-space: nowrap; }

/* ===== 두 문 · 이웃 · 땅 ===== */
.door { display: flex; flex-direction: column; }
.door ul { margin: 6px 0 16px; padding-left: 18px; color: var(--sub); }
.door li { margin: 5px 0; }
.door .acts { margin-top: auto; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 22px; align-items: center; }
.split .art { background: var(--paper2) center / 88% no-repeat; border: 1px solid var(--line); border-radius: var(--r2); aspect-ratio: 1; }
ol.steps { margin: 0; padding: 0; list-style: none; counter-reset: s; }
ol.steps li { counter-increment: s; position: relative; padding: 11px 0 11px 46px; border-bottom: 1px dashed var(--line); }
ol.steps li:last-child { border-bottom: 0; }
ol.steps li::before { content: counter(s); position: absolute; left: 0; top: 9px; width: 32px; height: 32px; border-radius: 50%; background: var(--mint); color: var(--ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
ol.steps li b { display: block; }
ol.steps li span { color: var(--sub); font-size: 14.5px; }
.map-box { position: relative; margin-top: 14px; border-radius: var(--r2); overflow: hidden; border: 1px solid var(--line); background: var(--paper2); aspect-ratio: 16 / 9; }
.map-box .map { position: absolute; inset: 0; }
.map-cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; text-align: center; padding: 16px; background: var(--paper2) center / cover no-repeat; }
.map-cover p { margin: 0; color: var(--sub); font-size: 14.5px; max-width: 34em; background: rgba(255, 251, 245, .88); padding: 6px 12px; border-radius: 10px; }
.map-legend { position: absolute; left: 10px; top: 10px; z-index: 3; background: rgba(255, 251, 245, .94); border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; font-size: 13px; font-weight: 700; color: var(--ink); max-width: calc(100% - 20px); }
.map-legend i { display: inline-block; width: 12px; height: 12px; border: 2px solid var(--accent); border-radius: 2px; vertical-align: -1px; margin-right: 6px; background: rgba(181, 86, 47, .15); }

/* ===== 단계 ===== */
.road { display: grid; gap: 10px; }
.road .step { display: grid; grid-template-columns: 120px 1fr; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; }
.road .step.now { border-color: #BFDCCB; box-shadow: inset 4px 0 0 var(--ok); }
.road .when { font-weight: 800; }
.road .when .badge { margin-top: 6px; }
.road h3 { font-size: 17px; }
.road p { margin: 0; color: var(--sub); font-size: 15px; }

@media (max-width: 980px) {
  .now-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .rings4, .links-band { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ring:nth-child(2)::after { display: none; }
}
@media (max-width: 820px) {
  .wc-stage { aspect-ratio: 4 / 3; }
  .wc-land { background-size: auto 100%; background-position: 30% bottom; }
  .wc-intro, .split { grid-template-columns: 1fr; }
  .split .art { max-width: 420px; width: 100%; margin: 0 auto; }
  .nature-row { grid-template-columns: 1fr; }
  .rules thead { display: none; }
  .rules, .rules tbody, .rules tr, .rules td { display: block; width: 100%; }
  .rules tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
  .rules td { border: 0; padding: 4px 14px; }
  .rules td.st { padding-bottom: 8px; }
  .road .step { grid-template-columns: 1fr; gap: 6px; }
  .map-box { aspect-ratio: 4 / 5; }
}
@media (max-width: 520px) {
  .now-grid, .rings4, .links-band { grid-template-columns: 1fr; }
  .ring::after { display: none !important; }
  .ring .pic { aspect-ratio: 16 / 10; background-size: auto 96%; }
  .fx-list li { grid-template-columns: 1fr; gap: 2px; }
}
@media (prefers-reduced-motion: reduce) { .wc-sky, .wc-stars, .wc-clouds, .wc-land, .wc-tint, .wc-haze { transition: none; } }
