/* ============================================================
   Night-theme intro & home
   Dark starry background, narrative welcoming feel,
   light B-theme used for inner functional screens elsewhere.
   ============================================================ */

/* Night theme container — applied to .phone */
.phone.theme-night {
  background: #0A1228;
  color: #E8EDF8;
}

/* Hide normal status bar text on night theme (use light) */
.phone.theme-night .statusbar { color: #fff; }

/* Starry-sky background layer */
.night-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}
.ns-gradient {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 110%, rgba(60, 100, 180, 0.35) 0%, rgba(60, 100, 180, 0) 60%),
    linear-gradient(180deg, #050A1C 0%, #0C1635 35%, #1A2655 70%, #2D3D78 100%);
}
.ns-stars {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.ns-stars circle {
  animation: twinkle 4s ease-in-out infinite;
}
.ns-stars circle:nth-child(odd) { animation-delay: -2s; }
@keyframes twinkle {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.ns-moon {
  position: absolute;
  top: 80px;
  left: 28px;
  width: 28px;
  height: 28px;
}
.ns-moon-core {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #FFF7D8 0%, #F0CF6A 100%);
  z-index: 2;
}
.ns-moon-glow {
  position: absolute;
  inset: -16px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240,207,106,0.35) 0%, rgba(240,207,106,0) 70%);
  z-index: 1;
}
.ns-hills {
  position: absolute;
  bottom: 0;
  left: 0; right: 0;
  height: 90px;
  background:
    radial-gradient(ellipse 60% 100% at 20% 100%, #1F2C56 0%, #1F2C56 50%, transparent 51%),
    radial-gradient(ellipse 70% 100% at 70% 100%, #1A2348 0%, #1A2348 55%, transparent 56%),
    linear-gradient(180deg, transparent 0%, #0D1632 100%);
  opacity: 0.85;
}

/* Glowing cross brand mark */
.cross-glow {
  width: 24px;
  height: 24px;
  position: relative;
  filter: drop-shadow(0 0 10px rgba(255, 220, 120, 0.6));
  flex-shrink: 0;
}
.cross-glow.small { width: 16px; height: 16px; filter: drop-shadow(0 0 6px rgba(255, 220, 120, 0.5)); }
.cross-glow::before,
.cross-glow::after {
  content: '';
  position: absolute;
  background: linear-gradient(180deg, #FFE6A8 0%, #F0CF6A 100%);
  border-radius: 3px;
  box-shadow: 0 0 8px rgba(255, 220, 120, 0.7);
}
.cross-glow::before {
  width: 5px; height: 100%;
  left: 50%; transform: translateX(-50%);
}
.cross-glow::after {
  height: 5px; width: 70%;
  top: 35%; left: 50%; transform: translateX(-50%);
}
.cross-glow.small::before { width: 3.5px; }
.cross-glow.small::after { height: 3.5px; top: 38%; }

/* Welcome shell — wraps content above starry bg */
.welcome-shell {
  position: relative;
  z-index: 1;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 32px 24px 24px;
  text-align: center;
  color: #fff;
}

/* Home screen must scroll: allow the flex child to shrink (min-height:0)
   and scroll its overflow. Without this it grows past the viewport and the
   parent (overflow:hidden) clips it, so touch-scroll does nothing on iOS. */
.welcome-shell.home-night {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding-bottom: 28px;
}
.welcome-shell.home-night::-webkit-scrollbar { display: none; }

/* Same min-height:0 safeguard for the other scrollable screens */
.welcome-shell.about-screen,
.welcome-shell.growth-tree,
.welcome-shell.donation-screen { min-height: 0; -webkit-overflow-scrolling: touch; }

/* In a scrolling flex column, children must NOT shrink — otherwise they get
   vertically compressed (squished banner/cards) instead of overflowing. */
.welcome-shell.home-night > *,
.welcome-shell.about-screen > *,
.welcome-shell.growth-tree > *,
.welcome-shell.donation-screen > * { flex-shrink: 0; }

.welcome-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #fff;
}
.welcome-brand .wb-text { text-align: left; }
.welcome-brand .wb-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.6px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFE08A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.welcome-brand .wb-sub {
  font-size: 12px;
  color: #B3BEDC;
  margin-top: 4px;
  letter-spacing: -0.2px;
}

.welcome-hero {
  margin: 18px 0 4px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.welcome-tagline {
  margin-top: 4px;
  max-width: 320px;
}
.wt-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  line-height: 1.32;
  margin-bottom: 10px;
  text-wrap: pretty;
}
.wt-sub {
  font-size: 13.5px;
  color: #B6C2E2;
  line-height: 1.55;
  letter-spacing: -0.2px;
  text-wrap: pretty;
}

.welcome-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin-top: 24px;
}
.wa-primary, .wa-secondary {
  width: 100%;
  height: 50px;
  border-radius: 14px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
  cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.wa-primary {
  background: linear-gradient(180deg, #FFD56A 0%, #E5B954 100%);
  color: #2A1B05;
  border: 1.5px solid #C99A2E;
  box-shadow: 0 4px 0 #9C7A2E, 0 0 24px rgba(255, 220, 120, 0.3);
}
.wa-primary:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 #9C7A2E, 0 0 16px rgba(255, 220, 120, 0.4);
}
.wa-secondary {
  background: rgba(255,255,255,0.08);
  color: #E8EDF8;
  border: 1.5px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(6px);
}
.wa-secondary:active { background: rgba(255,255,255,0.12); }

/* Main avatar — narrative-scaled */
.main-avatar-wrap {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ma-glow {
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 224, 138, 0.28) 0%, rgba(255, 224, 138, 0) 70%);
  filter: blur(6px);
  z-index: 0;
}
.ma-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 12px 18px rgba(0,0,0,0.4));
}
.ma-img.placeholder { opacity: 0.85; }

/* Church footer */
.church-footer {
  margin-top: auto;
  padding-top: 18px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: -0.1px;
  color: var(--text-2);
  opacity: 0.85;
}
.church-footer.inverse {
  color: #B6C2E2;
  opacity: 0.7;
}
.church-footer .cf-mark { font-size: 14px; opacity: 0.9; }

/* ============================================================
   Home (logged in) night screen
   ============================================================ */
.welcome-shell.home-night {
  padding: 16px 18px 100px;
  align-items: stretch;
  text-align: left;
}

/* Gentle floating motion for the home avatar */
.ma-floating {
  display: inline-block;
  animation: ma-float-home 3.4s ease-in-out infinite;
}
@keyframes ma-float-home {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

.home-night-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}
.hnt-brand {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.3px;
  white-space: nowrap;
}
.hnt-icon {
  width: 34px; height: 34px;
  border-radius: 10px;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.15);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
}

.home-night-hello {
  margin: 14px 0 8px;
}
.hnh-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: #F0CF6A;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.85;
}
.hnh-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin-top: 4px;
}

/* Avatar + level (side by side) */
.home-night-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 6px 0 16px;
}
.home-night-hero .main-avatar-wrap {
  flex: 0 0 auto;
}
.hnh-level {
  flex: 1 1 auto;
  min-width: 0;
}
.hnl-label {
  font-size: 13px;
  font-weight: 800;
  color: #FFE08A;
  letter-spacing: -0.2px;
  margin-bottom: 6px;
}
.hnl-bar {
  position: relative;
  height: 12px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  overflow: visible;
}
.hnl-fill {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, #F0CF6A 0%, #FFE08A 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(255, 220, 120, 0.5);
  transition: width .5s ease;
}
.hnl-ticks {
  position: absolute; inset: 0;
}
.hnl-tick {
  position: absolute;
  top: 50%;
  width: 6px; height: 6px;
  margin-left: -3px;
  margin-top: -3px;
  border-radius: 50%;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
}
.hnl-tick.reached {
  background: #FFE08A;
  border-color: #FFE08A;
  box-shadow: 0 0 8px rgba(255, 220, 120, 0.7);
}
.hnl-next {
  font-size: 11.5px;
  color: #B6C2E2;
  margin-top: 8px;
  letter-spacing: -0.2px;
}
.hnl-next strong { color: #FFE08A; font-weight: 800; }

/* Today's verse — compact night card */
.hn-verse {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  padding: 14px 16px;
  backdrop-filter: blur(8px);
  margin-bottom: 12px;
}
.hnv-eyebrow {
  font-size: 11px;
  font-weight: 800;
  color: #F0CF6A;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  opacity: 0.8;
}
.hnv-quote {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.3px;
  margin-top: 4px;
  line-height: 1.4;
}
.hnv-ref {
  font-size: 11.5px;
  color: #B6C2E2;
  margin-top: 4px;
}

/* Small action buttons — 2 columns */
.hn-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 12px;
}
.hna-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 14px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 14px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-align: left;
  cursor: pointer;
  backdrop-filter: blur(6px);
  transition: background .15s, transform .12s;
}
.hna-btn:hover { background: rgba(255,255,255,0.12); }
.hna-btn:active { transform: scale(0.98); }
.hna-emoji { font-size: 22px; line-height: 1; }
.hna-label {
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  gap: 0;
  line-height: 1.15;
}
.hna-xp {
  font-size: 10px;
  font-weight: 700;
  color: #F0CF6A;
  opacity: 0.9;
  letter-spacing: -0.1px;
}

/* ============================================================
   Church event banner (white card, festive text)
   ============================================================ */
.hn-event-banner {
  margin-top: 0;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px 16px;
  border: none;
  border-radius: 18px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 30px rgba(0,0,0,0.32), 0 0 0 1px rgba(255,255,255,0.5);
  position: relative;
  overflow: hidden;
  transition: transform .12s ease, box-shadow .2s ease;
}
.hn-event-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 140% at 0% 0%, rgba(255,82,150,0.10), transparent 45%),
    radial-gradient(120% 140% at 100% 100%, rgba(74,156,216,0.12), transparent 50%);
  pointer-events: none;
}
.hn-event-banner:hover { transform: translateY(-1px); box-shadow: 0 14px 36px rgba(0,0,0,0.4), 0 0 0 1px rgba(255,255,255,0.6); }
.hn-event-banner:active { transform: scale(0.99); }
.heb-badge {
  flex: 0 0 auto;
  align-self: flex-start;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1px;
  color: #fff;
  padding: 4px 8px;
  border-radius: 7px;
  background: linear-gradient(135deg, #FF5C8A, #FF8A3D);
  position: relative;
}
.heb-text {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.heb-title {
  font-size: 17px;
  font-weight: 900;
  letter-spacing: -0.4px;
  line-height: 1.15;
  background: linear-gradient(92deg, #FF4D8D 0%, #A24BD6 38%, #4A7DE8 70%, #14B89A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: #A24BD6;
}
.heb-sub {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: -0.2px;
  color: #6B4A0E;
}
.heb-arrow {
  flex: 0 0 auto;
  color: #C13C7A;
  display: flex;
  align-items: center;
  position: relative;
}

/* ============================================================
   Lock placeholder badge (avatars not yet drawn)
   ============================================================ */
.main-avatar-wrap.locked .ma-img { opacity: 0.4; filter: grayscale(0.8) blur(0.5px); }
.ma-placeholder {
  position: relative;
  width: 100%; height: 100%;
}
.ma-lock-badge {
  position: absolute;
  bottom: 14%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(20, 26, 50, 0.85);
  border: 1.5px solid #F0CF6A;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 10.5px;
  font-weight: 800;
  color: #FFE08A;
  display: inline-flex; align-items: center; gap: 4px;
  letter-spacing: -0.2px;
  white-space: nowrap;
  z-index: 2;
}

/* Updated level label — split lv num + stage name */
.hnl-label {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 6px;
}
.hnl-stage-num {
  font-size: 14px;
  font-weight: 900;
  color: #FFE08A;
  letter-spacing: -0.3px;
}
.hnl-stage-name {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.hnl-xp {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 8px;
  font-size: 11.5px;
  color: #B6C2E2;
  letter-spacing: -0.2px;
  gap: 8px;
}
.hnl-xp-now { color: #fff; }
.hnl-xp-now strong { color: #FFE08A; font-size: 14px; font-weight: 900; margin-right: 2px; }
.hnl-xp-next { text-align: right; opacity: 0.85; }
.hnl-xp-next strong { color: #fff; font-weight: 800; }

/* ============================================================
   Welcome with mockup image as narrative backdrop
   Image's own dark bottom flows directly into the bottom dock.
   No fixed height / gradient mask — keeps the transition seamless.
   ============================================================ */
.welcome-mockup-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  background: #0D1632;
}
.welcome-mockup-stars { display: none; }

.welcome-shell.mockup-layout {
  position: relative;
  z-index: 1;
  padding: 0;
  align-items: stretch;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.welcome-mockup-art {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  line-height: 0;
}
.welcome-mockup-art img {
  display: block;
  width: 100%;
  height: auto;
}

/* Bottom dock — church chip + buttons, sits right below image */
.welcome-bottom {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 22px;
  padding: 28px 24px 28px;
  text-align: center;
  /* Same dark blue as image's bottom — seamless join */
  background: #0D1632;
}

.church-welcome.compact {
  margin: 0;
  text-align: center;
}
.church-welcome.compact .cw-eyebrow {
  font-size: 11px;
  letter-spacing: 0.5px;
}
.cw-title-sm {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -0.7px;
  color: #fff;
  margin-top: 12px;
  line-height: 1.25;
  text-wrap: pretty;
  text-shadow: 0 0 22px rgba(255, 224, 138, 0.3);
}

.welcome-shell.mockup-layout .welcome-actions {
  margin-top: 0;
  max-width: none;
  width: 100%;
}
/* Old (kept for reference, no longer used on E1) — Church welcome banner */
.church-welcome {
  margin: 18px 0 4px;
  text-align: center;
}
.cw-eyebrow {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.4px;
  color: #FFE08A;
  background: rgba(240, 207, 106, 0.12);
  border: 1px solid rgba(240, 207, 106, 0.35);
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
}
.cw-title {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.7px;
  color: #fff;
  margin-top: 12px;
  line-height: 1.25;
  text-shadow: 0 0 24px rgba(255, 224, 138, 0.25);
}
.welcome-tagline.compact { margin-top: 8px; }
.welcome-tagline.compact .wt-sub { font-size: 13px; }

/* ============================================================
   E4 · About / 중문교회 소개
   ============================================================ */
.about-screen {
  align-items: stretch;
  text-align: left;
  padding: 14px 18px 24px;
  overflow-y: auto;
}
.about-screen::-webkit-scrollbar { display: none; }

.about-hero {
  text-align: center;
  padding: 22px 0 26px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  margin-bottom: 22px;
}
.about-hero .ah-cross {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.about-hero .ah-name {
  font-size: 32px;
  font-weight: 900;
  letter-spacing: -0.8px;
  background: linear-gradient(180deg, #FFFFFF 0%, #FFE08A 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1.1;
}
.about-hero .ah-tag {
  font-size: 13px;
  color: #B6C2E2;
  margin-top: 4px;
  letter-spacing: -0.2px;
}
.about-hero .ah-desc {
  font-size: 13px;
  color: rgba(255,255,255,0.8);
  margin: 14px auto 0;
  letter-spacing: -0.2px;
  line-height: 1.55;
  max-width: 280px;
  text-wrap: pretty;
}
.about-hero .ah-version {
  margin-top: 12px;
  font-size: 10.5px;
  font-weight: 700;
  color: #FFE08A;
  letter-spacing: 0.3px;
  opacity: 0.7;
  text-transform: uppercase;
}

/* Church card — the centerpiece */
.church-card {
  background: linear-gradient(135deg, rgba(240, 207, 106, 0.12) 0%, rgba(74, 111, 165, 0.08) 100%);
  border: 1.5px solid rgba(240, 207, 106, 0.35);
  border-radius: 18px;
  padding: 18px 18px 16px;
  margin-bottom: 24px;
  box-shadow: 0 0 30px rgba(240, 207, 106, 0.1);
  backdrop-filter: blur(8px);
}

.cc-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 14px;
}
.cc-mark {
  font-size: 36px;
  line-height: 1;
  filter: drop-shadow(0 0 12px rgba(240, 207, 106, 0.5));
}
.cc-name-wrap { flex: 1; min-width: 0; }
.cc-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  color: #FFE08A;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  opacity: 0.85;
}
.cc-name {
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -0.7px;
  color: #fff;
  line-height: 1.15;
  margin-top: 2px;
}
.cc-name-en {
  font-size: 12px;
  color: #B6C2E2;
  margin-top: 2px;
  letter-spacing: -0.1px;
}

.cc-greeting {
  font-size: 13.5px;
  font-style: italic;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.2px;
  line-height: 1.55;
  padding: 0 4px 14px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin-bottom: 14px;
  text-wrap: pretty;
}
.cc-greeting-ref {
  display: block;
  font-style: normal;
  font-size: 11.5px;
  color: #FFE08A;
  font-weight: 700;
  margin-top: 6px;
  letter-spacing: -0.2px;
}

.cc-info-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}
.cc-info-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.cc-info-icon {
  font-size: 18px;
  width: 28px;
  flex: 0 0 28px;
  text-align: center;
}
.cc-info-label {
  font-size: 10.5px;
  font-weight: 700;
  color: #B6C2E2;
  letter-spacing: 0.2px;
  text-transform: uppercase;
  opacity: 0.85;
}
.cc-info-value {
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
  margin-top: 2px;
  line-height: 1.4;
}

.cc-mission {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.cc-mission-eyebrow {
  font-size: 10.5px;
  font-weight: 800;
  color: #FFE08A;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  opacity: 0.85;
}
.cc-mission-text {
  font-size: 13px;
  color: rgba(255,255,255,0.92);
  letter-spacing: -0.2px;
  line-height: 1.55;
  margin-top: 4px;
  text-wrap: pretty;
}

.cc-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cc-action-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 14px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 12px;
  color: #fff;
  font-family: inherit;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: -0.3px;
  cursor: pointer;
  text-align: left;
}
.cc-action-btn.primary {
  background: linear-gradient(180deg, rgba(240, 207, 106, 0.25) 0%, rgba(240, 207, 106, 0.1) 100%);
  border-color: rgba(240, 207, 106, 0.5);
  color: #FFE08A;
}
.cc-action-btn span:first-child { font-size: 16px; }

/* About sections (features, credits) */
.about-section {
  margin-bottom: 22px;
}
.about-section .as-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 12px;
}
.as-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.as-feat {
  padding: 12px 12px 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
}
.asf-icon { font-size: 22px; line-height: 1; }
.asf-label {
  font-size: 13px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
  margin-top: 6px;
}
.asf-desc {
  font-size: 11px;
  color: #B6C2E2;
  letter-spacing: -0.2px;
  margin-top: 2px;
  line-height: 1.4;
}

.credits-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  padding: 4px 14px;
}
.cr-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cr-row:last-child { border-bottom: none; }
.cr-label {
  font-size: 12px;
  font-weight: 700;
  color: #B6C2E2;
  letter-spacing: -0.2px;
}
.cr-value {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.2px;
}

.about-foot {
  text-align: center;
  font-size: 10.5px;
  font-weight: 600;
  color: rgba(255,255,255,0.45);
  letter-spacing: -0.1px;
  line-height: 1.55;
  padding-top: 12px;
}

/* ============================================================
   END About / Church
   ============================================================ */
.growth-tree {
  align-items: stretch;
  text-align: left;
  padding: 14px 18px 24px;
  overflow-y: auto;
}
.growth-tree::-webkit-scrollbar { display: none; }

.gt-header {
  margin: 12px 0 18px;
}
.gt-eyebrow {
  font-size: 11px; font-weight: 800;
  color: #F0CF6A; letter-spacing: 0.5px;
  text-transform: uppercase; opacity: 0.85;
}
.gt-title {
  font-size: 24px; font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px; line-height: 1.2;
  margin-top: 4px;
}
.gt-sub {
  font-size: 12.5px;
  color: #B6C2E2;
  margin-top: 6px;
  letter-spacing: -0.2px;
}

.gt-stages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}
.gt-stage {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 14px;
  position: relative;
  backdrop-filter: blur(6px);
}
.gt-stage.reached {
  background: rgba(240, 207, 106, 0.08);
  border-color: rgba(240, 207, 106, 0.3);
}
.gt-stage.current {
  background: linear-gradient(135deg, rgba(240, 207, 106, 0.16) 0%, rgba(240, 207, 106, 0.06) 100%);
  border-color: #F0CF6A;
  box-shadow: 0 0 16px rgba(240, 207, 106, 0.25);
}
.gt-stage.locked { opacity: 0.7; }

.gts-avatar {
  flex: 0 0 64px;
  width: 64px; height: 64px;
}
.gts-avatar .main-avatar-wrap {
  width: 64px !important; height: 64px !important;
}
.gts-avatar .ma-glow { display: none; }
.gts-avatar .ma-lock-badge { display: none; }

.gts-body { flex: 1 1 auto; min-width: 0; }
.gts-row1 {
  display: flex; align-items: center; gap: 6px;
  flex-wrap: wrap;
}
.gts-lv {
  font-size: 12px; font-weight: 900;
  color: #FFE08A;
  letter-spacing: -0.2px;
}
.gts-name {
  font-size: 14px; font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
}
.gts-badge {
  font-size: 10px; font-weight: 800;
  color: #2A1B05;
  background: #F0CF6A;
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: -0.1px;
}
.gts-badge-lock {
  font-size: 10px; font-weight: 700;
  color: #B6C2E2;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  padding: 2px 6px;
  border-radius: 999px;
  letter-spacing: -0.1px;
  white-space: nowrap;
}
.gts-xp {
  font-size: 11px;
  color: #B6C2E2;
  letter-spacing: -0.1px;
  margin-top: 2px;
  margin-bottom: 6px;
}
.gts-unlocks {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.gts-unlocks li {
  font-size: 11.5px;
  color: rgba(255,255,255,0.85);
  letter-spacing: -0.2px;
  line-height: 1.5;
  padding-left: 12px;
  position: relative;
}
.gts-unlocks li::before {
  content: '·';
  position: absolute;
  left: 4px;
  color: #F0CF6A;
  font-weight: 900;
}

/* Sections (objet, triggers) */
.gt-section {
  margin-bottom: 22px;
}
.gt-section-title {
  font-size: 13.5px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.3px;
  margin-bottom: 4px;
}
.gt-section-sub {
  font-size: 11.5px;
  color: #B6C2E2;
  letter-spacing: -0.2px;
  margin-bottom: 12px;
}

.gt-objet-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
}
.gt-objet {
  padding: 10px 4px 8px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  text-align: center;
  backdrop-filter: blur(6px);
}
.gto-icon {
  font-size: 22px;
  line-height: 1;
}
.gto-slot {
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.2px;
  margin-top: 4px;
}
.gto-desc {
  font-size: 9px;
  color: #B6C2E2;
  letter-spacing: -0.15px;
  line-height: 1.3;
  margin-top: 2px;
}

.gt-triggers {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.gt-trigger {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  padding: 10px 12px;
}
.gtt-icon {
  font-size: 20px;
  flex: 0 0 auto;
}
.gtt-body { flex: 1; min-width: 0; }
.gtt-label {
  font-size: 12.5px;
  font-weight: 800;
  color: #FFE08A;
  letter-spacing: -0.2px;
}
.gtt-desc {
  font-size: 11px;
  color: #B6C2E2;
  letter-spacing: -0.2px;
  margin-top: 2px;
  line-height: 1.4;
}

/* =================== Donation / 후원 =================== */
.donation-screen {
  overflow-y: auto;
  align-items: stretch;
  text-align: left;
  padding: 14px 0 40px;
}
.donation-screen .home-night-topbar {
  padding: 0 18px;
  margin-bottom: 6px;
}
.dn-hero { text-align: center; padding: 14px 24px 22px; }
.dn-hero-art { font-size: 52px; filter: drop-shadow(0 8px 18px rgba(255,197,41,0.3)); }
.dn-hero-title { font-size: 24px; font-weight: 900; color: #EAEFFB; letter-spacing: -0.6px; margin-top: 10px; }
.dn-hero-sub { font-size: 14px; color: #AEB9D6; margin-top: 7px; letter-spacing: -0.2px; }
.dn-modes { display: flex; gap: 8px; padding: 0 22px; }
.dn-mode {
  flex: 1; padding: 13px 0; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(180,196,240,0.18); background: rgba(255,255,255,0.04);
  color: #C3CCE2; font-weight: 800; font-size: 14.5px; transition: all .15s;
}
.dn-mode.on { border-color: #FFC529; background: rgba(255,197,41,0.14); color: #FFE6A8; }
.dn-label { font-size: 12.5px; font-weight: 800; color: #8A95B6; letter-spacing: 0.3px; padding: 20px 22px 9px; text-transform: uppercase; }
.dn-chips { display: flex; gap: 8px; padding: 0 22px; flex-wrap: wrap; }
.dn-chip {
  padding: 9px 15px; border-radius: 999px; cursor: pointer;
  border: 1px solid rgba(180,196,240,0.18); background: rgba(255,255,255,0.04);
  color: #C3CCE2; font-weight: 700; font-size: 13.5px; transition: all .15s;
}
.dn-chip.on { border-color: #FFC529; background: rgba(255,197,41,0.14); color: #FFE6A8; }
.dn-amounts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; padding: 0 22px; }
.dn-amt {
  padding: 15px 0; border-radius: 12px; cursor: pointer;
  border: 1px solid rgba(180,196,240,0.18); background: rgba(255,255,255,0.04);
  color: #EAEFFB; font-weight: 800; font-size: 16px; transition: all .15s;
}
.dn-amt.on { border-color: #FFC529; background: rgba(255,197,41,0.16); color: #FFE6A8; }
.dn-custom { display: flex; align-items: center; gap: 8px; margin: 8px 22px 0;
  border: 1px solid rgba(180,196,240,0.18); background: rgba(255,255,255,0.04); border-radius: 12px; padding: 0 16px; }
.dn-custom-input {
  flex: 1; height: 50px; border: none; background: none; outline: none;
  color: #EAEFFB; font-family: inherit; font-size: 16px; font-weight: 700; text-align: right;
}
.dn-custom-input::placeholder { color: #6E7AA0; font-weight: 500; }
.dn-won { font-size: 15px; font-weight: 800; color: #AEB9D6; }
.dn-cta {
  display: block; width: calc(100% - 44px); margin: 24px 22px 0; padding: 17px; border: none; cursor: pointer; border-radius: 14px;
  background: linear-gradient(135deg,#FFD874,#FBC02D); color: #3A2A05; font-weight: 900; font-size: 16px; letter-spacing: -0.3px;
  box-shadow: 0 10px 24px rgba(255,197,41,0.3); transition: transform .12s;
}
.dn-cta:active { transform: scale(0.98); }
.dn-cta.disabled { background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.4); box-shadow: none; pointer-events: none; }
.dn-foot { text-align: center; font-size: 12px; color: #8A95B6; padding: 14px 22px 30px; letter-spacing: -0.2px; }
.dn-done { text-align: center; padding: 50px 30px; display: flex; flex-direction: column; align-items: center; }
.dn-done-art { font-size: 60px; filter: drop-shadow(0 10px 22px rgba(255,197,41,0.35)); opacity: 1; }
@media (prefers-reduced-motion: no-preference) {
  .dn-done-art { animation: dn-pop-scale .5s cubic-bezier(.2,1.3,.4,1) both; }
}
@keyframes dn-pop-scale { from { transform: scale(0.4); } to { transform: scale(1); } }
@keyframes dn-pop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.dn-done-title { font-size: 26px; font-weight: 900; color: #EAEFFB; letter-spacing: -0.7px; margin-top: 18px; }
.dn-done-desc { font-size: 15.5px; color: #AEB9D6; line-height: 1.6; margin-top: 12px; letter-spacing: -0.2px; }
.dn-done-desc strong { color: #FFE6A8; }
.dn-receipt {
  margin-top: 22px; font-size: 13px; color: #B6C2E2; background: rgba(255,255,255,0.05);
  border: 1px solid rgba(180,196,240,0.16); border-radius: 12px; padding: 12px 18px; letter-spacing: -0.2px;
}
