/* 기도 응원 — 레이아웃·색만. 글꼴은 앱과 동일 Noto Sans KR */
.yp-wrap,
.yp-wrap input,
.yp-wrap button {
  font-family: "Noto Sans KR", sans-serif !important;
}

.yp-wrap {
  max-width: 720px;
  padding-bottom: 2.5rem;
}

.yp-wrap > h1 {
  margin: 0 0 0.55rem;
}

.yp-lead {
  margin: 0 0 0.45rem;
  max-width: 38em;
}

.yp-lead-sub {
  margin: 0 0 0.85rem;
  max-width: 38em;
  color: #6a5c48;
}

.yp-note {
  margin: 0 0 1.4rem;
  font-size: 0.85em;
  color: #8a7c68;
  max-width: 38em;
}

.yp-add-form {
  margin: 0 0 2rem;
  padding: 1.35rem 1.4rem 1.4rem;
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(255, 253, 248, 0.98) 0%, rgba(247, 238, 214, 0.92) 100%);
  border: 1.5px solid #e4d4aa;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.18),
    0 14px 36px rgba(90, 70, 30, 0.1);
}

.yp-label {
  display: block;
  margin-bottom: 0.55rem;
  color: #5c4a2e;
}

.yp-add-row {
  display: flex;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.yp-add-row input {
  flex: 1 1 240px;
  min-width: 0;
  padding: 0.85rem 1rem;
  border: 1px solid #d9c9a4;
  border-radius: 12px;
  background: #fffefb;
  color: inherit;
  font: inherit;
  box-shadow: inset 0 1px 2px rgba(80, 60, 20, 0.04);
}

.yp-add-row input:focus {
  outline: none;
  border-color: #c9a961;
  box-shadow: 0 0 0 3px rgba(201, 169, 97, 0.22);
}

.yp-add-row button {
  padding: 0.85rem 1.35rem;
  border: none;
  border-radius: 12px;
  background: linear-gradient(180deg, #d4b56a 0%, #c09a45 100%);
  color: #1a1208;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(160, 120, 40, 0.28);
}

.yp-err {
  color: #8b2e2e;
  margin: 0.7rem 0 0;
}

.yp-msg {
  margin: 0.7rem 0 0;
}

.yp-section {
  margin: 2rem 0 0;
  padding: 1.25rem 1.3rem 1.35rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(228, 212, 170, 0.85);
  box-shadow: 0 10px 28px rgba(70, 55, 25, 0.06);
}

.yp-section > h2,
.yp-section-head h2 {
  margin: 0;
  color: inherit;
}

.yp-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.95rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(228, 212, 170, 0.7);
}

.yp-section-head a {
  color: #8a7340;
  text-decoration: none;
}

.yp-section-head a:hover {
  text-decoration: underline;
}

.yp-section > h2 {
  margin-bottom: 0.95rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(228, 212, 170, 0.7);
}

.yp-grid {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 0.95rem;
}

.yp-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  text-decoration: none;
  color: inherit;
  padding: 1.05rem 0.7rem 0.95rem;
  border-radius: 16px;
  border: 1px solid #eadfca;
  background: linear-gradient(180deg, #fffefb 0%, #faf4e8 100%);
  box-shadow: 0 6px 18px rgba(80, 60, 25, 0.07);
  cursor: pointer;
  font: inherit;
  width: 100%;
  box-sizing: border-box;
}

.yp-card:hover {
  border-color: #d4af37;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.2),
    0 12px 28px rgba(90, 70, 30, 0.12);
}

.yp-card img {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  object-fit: cover;
  margin-bottom: 0.65rem;
  border: 2px solid #e8d9b0;
  box-shadow: 0 4px 12px rgba(80, 60, 25, 0.12);
}

.yp-card-title {
  line-height: 1.35;
}

.yp-card-meta {
  margin-top: 0.3rem;
  color: #8a7340;
  font-size: 0.9em;
}

.yp-rank-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.yp-rank-list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.35rem;
  border-bottom: 1px solid rgba(236, 228, 210, 0.95);
}

.yp-rank-list li:last-child {
  border-bottom: none;
}

.yp-rank-n {
  flex: 0 0 1.75rem;
  color: #b8953a;
  text-align: center;
}

.yp-rank-main {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  flex: 1;
  background: none;
  border: none;
  padding: 0;
  text-align: left;
  cursor: pointer;
  font: inherit;
}

.yp-rank-main img {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid #e4d4aa;
}

.yp-rank-main strong {
  display: block;
}

.yp-rank-main .seo-muted {
  color: #7a6a52;
}

.yp-detail-head {
  display: flex;
  gap: 1.15rem;
  align-items: flex-start;
  margin-bottom: 1.25rem;
  padding: 1.05rem 1.1rem;
  border-radius: 18px;
  background: linear-gradient(155deg, #fffdf8, #f6ecd8);
  border: 1.5px solid #e4d4aa;
}

.yp-detail-head h1,
.yp-detail-head h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.yp-detail-thumb {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid #e4d4aa;
  box-shadow: 0 6px 18px rgba(80, 60, 25, 0.14);
}

.yp-prayer-box {
  margin: 0 0 1.25rem;
  padding: 1.6rem 1.4rem 1.45rem;
  border-radius: 20px;
  background: linear-gradient(165deg, #fffdf8 0%, #f7f0e0 55%, #f3e8d0 100%);
  border: 1.5px solid #e4d4aa;
  box-shadow:
    0 0 0 1px rgba(212, 175, 55, 0.28),
    0 0 28px rgba(212, 175, 55, 0.22),
    0 16px 40px rgba(100, 84, 47, 0.12);
  text-align: center;
}

.yp-prayer-kicker {
  margin: 0 0 0.85rem;
  color: #6b3a2e;
}

.yp-prayer-body {
  margin: 0 auto 1.15rem;
  max-width: 34em;
  text-align: center;
  white-space: pre-wrap;
}

.yp-cheer-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  margin: 0 auto;
  padding: 0.75rem 1.45rem;
  border-radius: 14px;
  border: 1.5px solid #d4af37;
  background: linear-gradient(180deg, #fffef8 0%, #f8efd8 100%);
  color: #3a2a14;
  font: inherit;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(160, 120, 40, 0.18);
}

.yp-cheer-btn:disabled {
  opacity: 0.65;
  cursor: default;
}

.yp-prayer-foot {
  margin: 1rem 0 0;
  color: #6a5c48;
}

.yp-tos {
  margin-top: 2.25rem;
  color: #8a7c68;
}

.yp-empty-msg {
  list-style: none;
  grid-column: 1 / -1;
}

/* 팝업 */
body.yp-modal-open {
  overflow: hidden;
}

.yp-modal[hidden] {
  display: none !important;
}

.yp-modal {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.yp-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 24, 16, 0.45);
}

.yp-modal__panel {
  position: relative;
  z-index: 1;
  width: min(520px, 100%);
  max-height: min(88vh, 720px);
  overflow: auto;
  padding: 1.25rem 1.2rem 1.35rem;
  border-radius: 20px;
  background: #faf7f0;
  border: 1.5px solid #e4d4aa;
  box-shadow: 0 20px 50px rgba(40, 30, 15, 0.28);
  font-family: "Noto Sans KR", sans-serif;
}

.yp-modal__close {
  position: absolute;
  top: 0.55rem;
  right: 0.65rem;
  width: 2rem;
  height: 2rem;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: #5a4e3c;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 560px) {
  .yp-add-form,
  .yp-section {
    padding-left: 1.05rem;
    padding-right: 1.05rem;
  }
  .yp-detail-head {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
}
