/* Carried — a night vigil for the world. Midnight blue, candle gold, prayers as light. */

:root {
  --bg: #0A1226;          /* midnight */
  --bg-2: #0E1830;
  --surface: #121E3B;     /* cards */
  --surface-2: #192A50;   /* raised */
  --line: rgba(163, 182, 220, .16);
  --line-2: rgba(163, 182, 220, .28);
  --text: #EEF1F7;
  --muted: #A6B3CE;
  --gold: #F2A93B;        /* candlelight */
  --gold-hi: #FFD27A;
  --gold-soft: rgba(242, 169, 59, .14);
  --gold-line: rgba(242, 169, 59, .45);
  --ember: #E0782E;
  --teal: #3CC2B4;        /* answered, prayed */
  --land: #1B2B52;
  --error-bg: rgba(255, 128, 100, .14);
  --error: #FFB8A6;
  --display: "Bricolage Grotesque", "DM Sans", system-ui, sans-serif;
  --body: "DM Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --max: 1180px;
  --ease: cubic-bezier(.45, 0, .2, 1);
}

* { box-sizing: border-box; min-width: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 16px; background: var(--bg); }
body {
  margin: 0; color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; overflow-x: clip;
  background:
    radial-gradient(900px 520px at 78% 0%, rgba(242, 169, 59, .10), transparent 70%),
    radial-gradient(1000px 700px at 0% 30%, rgba(60, 90, 170, .16), transparent 70%),
    var(--bg);
}
a { color: var(--gold-hi); }
a:hover { color: var(--gold); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { max-width: var(--max); margin: 0 auto; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.03em; word-spacing: -0.02em; margin: 0; line-height: 1.05; }

/* ---------- Buttons ---------- */
.btn { font: inherit; font-weight: 700; border-radius: 999px; padding: 0 22px; min-height: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; text-decoration: none; border: 1px solid transparent; transition: background-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), border-color .25s var(--ease); }
.btn-gold { background: var(--gold); color: #1A1204; box-shadow: 0 0 0 0 rgba(242,169,59,0); }
.btn-gold:hover { background: var(--gold-hi); color: #1A1204; box-shadow: 0 0 28px -4px rgba(242,169,59,.65); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--gold-line); color: var(--gold-hi); }
.btn[disabled] { opacity: .5; cursor: not-allowed; box-shadow: none; }
.btn[aria-pressed="true"] { background: transparent; color: var(--teal); border-color: rgba(60,194,180,.5); box-shadow: none; }
.pray { font: inherit; font-weight: 700; border-radius: 999px; padding: 0 18px; min-height: 44px; cursor: pointer; border: 1px solid var(--gold-line); background: var(--gold-soft); color: var(--gold-hi); display: inline-flex; align-items: center; gap: 8px; transition: background-color .25s var(--ease), box-shadow .25s var(--ease); }
.pray:hover { background: rgba(242,169,59,.24); box-shadow: 0 0 22px -6px rgba(242,169,59,.7); }
.pray::before { content: ""; width: 8px; height: 11px; border-radius: 50% 50% 50% 50% / 62% 62% 38% 38%; background: currentColor; }
.pray[aria-pressed="true"] { background: rgba(60,194,180,.12); border-color: rgba(60,194,180,.45); color: var(--teal); cursor: default; box-shadow: none; }

/* ---------- Header ---------- */
.site-head { padding: 0 24px; position: relative; z-index: 2; }
.site-head .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--display); font-weight: 800; font-size: 23px; letter-spacing: -0.02em; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 24px; }
.main-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.main-nav a:hover, .main-nav a[aria-current] { color: var(--text); }
.main-nav .btn { color: #1A1204; min-height: 44px; padding: 0 20px; }

.preview-note { background: var(--gold-soft); color: var(--gold-hi); text-align: center; font-size: 14px; padding: 8px 16px; }

/* ---------- Hero with the living map ---------- */
.hero { padding: 24px 24px 40px; }
.hero-top { display: flex; flex-wrap: wrap; gap: 24px 48px; align-items: flex-end; justify-content: space-between; margin-bottom: 26px; }
.hero-copy { flex: 999 1 520px; display: flex; flex-direction: column; gap: 18px; }
.live-pill { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; background: var(--gold-soft); color: var(--gold-hi); font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px; margin: 0; border: 1px solid rgba(242,169,59,.25); }
.live-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: pulse 2.4s var(--ease) infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(242,169,59,.6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(242,169,59,0); } }
.hero h1 { font-weight: 800; font-size: clamp(40px, 6.4vw, 76px); line-height: .98; letter-spacing: -0.04em; max-width: 13ch; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold); text-shadow: 0 0 40px rgba(242,169,59,.45); }
.hero-sub { margin: 0; font-size: 19px; color: var(--muted); max-width: 560px; line-height: 1.5; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-actions .btn { min-height: 54px; padding: 0 28px; font-size: 17px; }
.stats { flex: 1 1 300px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; max-width: 460px; }
.stats div { border-left: 1px solid var(--line-2); padding: 4px 0 4px 14px; display: flex; flex-direction: column-reverse; justify-content: flex-end; }
.stats dt { color: var(--muted); font-size: 14px; }
.stats dd { margin: 0; font-family: var(--display); font-weight: 800; font-size: 34px; letter-spacing: -0.03em; color: var(--text); font-variant-numeric: tabular-nums; }
.stats div:first-child dd { color: var(--gold-hi); }
.first-light { flex: 1 1 300px; max-width: 420px; margin: 0; color: var(--muted); border-left: 2px solid var(--gold-line); padding-left: 14px; }
.first-light b { color: var(--text); display: block; font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }

.stage { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 300px; border-radius: 28px; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #13234A 0%, #0B142B 70%); border: 1px solid var(--line); box-shadow: 0 40px 80px -40px rgba(0,0,0,.8), inset 0 0 120px rgba(5,10,25,.7); }
.map-wrap { position: relative; padding-bottom: 40px; }
.map { position: relative; width: 100%; aspect-ratio: 2 / 1; }
.map svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.map .land { fill: var(--land); stroke: #0B142B; stroke-width: .6; cursor: pointer; transition: fill .8s var(--ease); }
.map .land:hover { fill: #26396A; }
.map .land.sel { stroke: var(--gold-hi); stroke-width: 1.2; }
.map .trail { fill: none; stroke: url(#trailGrad); stroke-width: 2.2; stroke-linecap: round; filter: url(#glow); }
.map .spark { fill: var(--gold-hi); filter: url(#glow); }
.map .ring { fill: none; stroke: var(--gold-hi); stroke-width: 1.5; }
.map .ring.teal { stroke: var(--teal); }
.map .star { fill: #DDE6FF; }
.map .loading { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); }
.map-caption { position: absolute; left: 22px; bottom: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; color: var(--muted); font-size: 13px; pointer-events: none; }
.map-caption i { display: inline-block; width: 70px; height: 6px; border-radius: 999px; background: linear-gradient(90deg, var(--land), var(--gold)); vertical-align: middle; margin: 0 6px; }

.now { border-left: 1px solid var(--line); background: rgba(8, 14, 32, .55); padding: 20px 20px; display: flex; flex-direction: column; gap: 6px; }
.now h2 { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.now ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.now li { display: flex; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.now li:last-child { border-bottom: 0; }
.now li .dot { flex: 0 0 auto; width: 7px; height: 7px; border-radius: 50%; margin-top: 8px; background: var(--muted); }
.now li.k-pray .dot, .now li.k-nation .dot { background: var(--gold); box-shadow: 0 0 10px var(--gold); }
.now li.k-answered .dot { background: var(--teal); box-shadow: 0 0 10px var(--teal); }
.now li span { display: flex; flex-direction: column; }
.now li b { font-weight: 400; font-size: 14px; line-height: 1.4; }
.now li small { color: var(--muted); font-size: 12px; }
.now li.is-new { animation: slidein .6s var(--ease); }
@keyframes slidein { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.now .empty { color: var(--muted); font-size: 14px; line-height: 1.45; }

.picked { position: absolute; left: 18px; top: 18px; max-width: min(360px, 55%); display: flex; flex-direction: column; gap: 10px; background: rgba(10, 18, 38, .85); backdrop-filter: blur(10px); border: 1px solid var(--gold-line); border-radius: 18px; padding: 14px 16px; }
.picked b { font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; }
.picked small { display: block; color: var(--muted); }
.picked .acts { display: flex; flex-wrap: wrap; gap: 8px; }
.picked .btn { min-height: 42px; padding: 0 16px; font-size: 15px; }
.picked .x { position: absolute; top: 6px; right: 6px; width: 36px; height: 36px; border: 0; background: none; color: var(--muted); border-radius: 10px; cursor: pointer; font-size: 18px; }

/* ---------- Sections ---------- */
.section { padding: 64px 24px 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; margin-bottom: 22px; }
.section-head h2 { font-weight: 800; font-size: clamp(30px, 4vw, 44px); }
.section-head p { margin: 6px 0 0; color: var(--muted); max-width: 560px; }
.verse { margin: 0; color: var(--muted); font-size: 15px; max-width: 520px; }
.verse q { color: var(--text); font-style: italic; quotes: "“" "”"; }

/* How it works */
.how ol { list-style: none; margin: 0 auto; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) { .how ol { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .how ol { grid-template-columns: 1fr; } }
.how li { border: 1px solid var(--line); background: var(--bg-2); border-radius: 20px; padding: 20px; display: flex; gap: 14px; align-items: flex-start; }
.how .num { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 12px; background: var(--surface-2); color: var(--gold-hi); font-family: var(--display); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.how li:last-child .num { background: var(--gold); color: #1A1204; box-shadow: 0 0 20px -4px rgba(242,169,59,.7); }
.how li > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.how b { font-size: 17px; }
.how small { color: var(--muted); font-size: 15px; }

/* Unprayed */
.first .box { border-radius: 28px; padding: 32px; display: flex; flex-direction: column; gap: 20px; background: linear-gradient(160deg, rgba(242,169,59,.16), rgba(242,169,59,.04) 60%); border: 1px solid rgba(242,169,59,.28); }
.first h2 { font-weight: 800; font-size: clamp(28px, 3.6vw, 38px); }
.first p.lead { margin: 6px 0 0; color: var(--muted); }
.first .grid { display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 14px; }
@media (max-width: 1100px) {
  .first .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .first .grid > :last-child:nth-child(odd) { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .first .grid { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -22px; padding: 2px 22px 8px; scrollbar-width: none; }
  .first .grid::-webkit-scrollbar { display: none; }
  .first .grid > * { flex: 0 0 82%; scroll-snap-align: start; }
}
.first article .carried { color: var(--gold-hi); font-size: 13px; font-weight: 700; }
.first article.ask { background: transparent; border: 1px dashed rgba(242,169,59,.45); justify-content: center; }
.first article.ask b { font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; }
.first article.ask p { color: var(--muted); font-size: 15px; }
.first article.ask .btn { align-self: flex-start; }
.first article { background: var(--bg-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px; }
.first article p { margin: 0; font-size: 17px; line-height: 1.45; }
.first article .meta { color: var(--muted); font-size: 13px; }
.first article .pray { margin-top: auto; align-self: flex-start; }
.first .invite { margin: 0; color: var(--text); font-size: 17px; }

/* Wall */
.wall-sec > .wrap { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; }
.wall-main { flex: 999 1 560px; display: flex; flex-direction: column; gap: 18px; }
.wall-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; }
.wall-top h2 { font-weight: 800; font-size: clamp(30px, 4vw, 44px); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; background: var(--bg-2); border: 1px solid var(--line); padding: 4px; border-radius: 14px; min-width: min(320px, 100%); }
.seg button { border: 0; border-radius: 10px; min-height: 44px; font: inherit; font-weight: 700; cursor: pointer; background: transparent; color: var(--muted); padding: 0 10px; transition: background-color .25s var(--ease), color .25s var(--ease); }
.seg button[aria-pressed="true"] { background: var(--surface-2); color: var(--text); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips button { border-radius: 999px; padding: 8px 16px; min-height: 44px; font: inherit; font-weight: 500; cursor: pointer; background: transparent; color: var(--muted); border: 1px solid var(--line); transition: all .25s var(--ease); }
.chips button:hover { color: var(--text); border-color: var(--line-2); }
.chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.chips .country-chip { border-color: var(--gold-line); color: var(--gold-hi); background: var(--gold-soft); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.card {
  --glow: 0;
  position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 0 calc(var(--glow) * 46px) calc(var(--glow) * 2px) rgba(242,169,59, calc(var(--glow) * .38)), inset 0 1px 0 rgba(255,255,255,.04);
  border-color: rgba(242,169,59, calc(.12 + var(--glow) * .4));
  transition: box-shadow 1s var(--ease), border-color 1s var(--ease);
}
.card.is-new { animation: slidein .6s var(--ease); }
.card.lit { animation: lit 2.4s var(--ease); }
@keyframes lit { 0% { box-shadow: 0 0 0 0 rgba(242,169,59,.0); } 25% { box-shadow: 0 0 60px 6px rgba(242,169,59,.55); } 100% { box-shadow: 0 0 calc(var(--glow) * 46px) calc(var(--glow) * 2px) rgba(242,169,59, calc(var(--glow) * .38)); } }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tag { background: rgba(255,255,255,.06); color: var(--muted); font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.tag.answered { background: rgba(60,194,180,.16); color: var(--teal); }
.when { color: var(--muted); font-size: 13px; }
.card p { margin: 0; font-size: 17px; line-height: 1.45; overflow-wrap: anywhere; }
.card .answer { background: rgba(60,194,180,.08); border-left: 2px solid var(--teal); border-radius: 4px 12px 12px 4px; padding: 10px 12px; font-size: 15px; }
.card .answer b { display: block; font-size: 12px; color: var(--teal); }
.card .meta { color: var(--muted); font-size: 13px; text-decoration: none; }
.card .meta span { color: var(--gold-hi); font-weight: 700; }
.card-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; }
.card-foot b { font-size: 14px; color: var(--muted); font-weight: 500; }
.card-foot b em { font-style: normal; color: var(--text); font-weight: 700; }
.empty-box { border: 1px dashed var(--line-2); border-radius: 18px; padding: 32px 24px; text-align: center; color: var(--muted); }
.empty-box b { display: block; color: var(--text); font-family: var(--display); font-size: 22px; letter-spacing: -0.02em; margin-bottom: 6px; }
.empty-box .btn { margin-top: 14px; }
.more { display: flex; justify-content: center; }

/* Post form */
.post { flex: 1 1 320px; background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line-2); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 14px; position: sticky; top: 16px; box-shadow: 0 30px 60px -30px rgba(0,0,0,.7); }
.post h2 { font-weight: 800; font-size: 30px; }
.post .intro { margin: -6px 0 2px; color: var(--muted); font-size: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label, .field legend { font-weight: 700; font-size: 14px; }
.field legend { padding: 0; margin-bottom: 6px; }
.field small { color: var(--muted); font-weight: 400; }
.post textarea, .post input[type="text"], .post input[type="email"], .post select { border: 1px solid var(--line-2); border-radius: 12px; padding: 12px; font: inherit; font-size: 16px; color: var(--text); background: rgba(5,10,25,.5); width: 100%; }
.post textarea::placeholder, .post input::placeholder { color: #7D8BA8; }
.post select option { background: var(--bg-2); color: var(--text); }
.post textarea { resize: vertical; min-height: 120px; font-size: 17px; }
.post textarea:focus, .post input:focus, .post select:focus { outline: 2px solid var(--gold); outline-offset: 0; border-color: transparent; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
fieldset.field { border: 0; padding: 0; margin: 0; }
.mini-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.mini-chips label { position: relative; }
.mini-chips input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.mini-chips span { display: inline-block; border: 1px solid var(--line-2); border-radius: 999px; padding: 6px 12px; font-size: 14px; font-weight: 500; cursor: pointer; color: var(--muted); }
.mini-chips input:checked + span { background: var(--gold); color: #1A1204; border-color: var(--gold); }
.mini-chips input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.check { display: flex; align-items: center; gap: 10px; min-height: 44px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--gold); }
.counter { align-self: flex-end; font-size: 12px; color: var(--muted); margin-top: -2px; }
.form-error { background: var(--error-bg); color: var(--error); border-radius: 12px; padding: 10px 12px; font-size: 14px; margin: 0; }
.post .note { margin: 0; font-size: 14px; color: var(--muted); }
.post .btn-gold { min-height: 54px; font-size: 17px; width: 100%; }

/* Nations */
.nations > .wrap { display: flex; flex-wrap: wrap; gap: 24px; align-items: stretch; }
.today { flex: 999 1 460px; border-radius: 28px; padding: 36px; display: flex; flex-direction: column; gap: 16px; background: radial-gradient(600px 300px at 100% 0%, rgba(242,169,59,.16), transparent 70%), var(--surface); border: 1px solid var(--line); }
.today .kicker { margin: 0; color: var(--gold-hi); font-weight: 700; font-size: 15px; }
.today h2 { font-weight: 800; font-size: clamp(32px, 4.4vw, 48px); }
.today ol { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 17px; }
.today ol li::marker { color: var(--gold); font-weight: 700; }
.today .row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.today .row small { color: var(--muted); font-size: 14px; }
.find { flex: 1 1 300px; border-radius: 28px; padding: 28px; background: var(--bg-2); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 12px; }
.find h3 { font-size: 22px; font-weight: 700; }
.find p { margin: 0; color: var(--muted); font-size: 15px; }
.nation-search { display: flex; gap: 8px; }
.nation-search input { flex: 1; border: 1px solid var(--line-2); border-radius: 999px; padding: 0 16px; min-height: 46px; font: inherit; font-size: 16px; background: rgba(5,10,25,.5); color: var(--text); }
.top-nations { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.top-nations li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); }
.top-nations li:last-child { border-bottom: 0; }
.top-nations span:last-child { color: var(--gold-hi); font-variant-numeric: tabular-nums; }

/* Support + footer */
.support { padding: 72px 24px 0; }
.support .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); padding-top: 32px; }
.support p { margin: 0; color: var(--muted); max-width: 620px; }
.site-foot { margin-top: 80px; border-top: 1px solid var(--line); color: var(--muted); padding: 48px 24px 56px; }
.site-foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; }
.site-foot .about { display: flex; flex-direction: column; gap: 10px; max-width: 400px; }
.site-foot .about b { font-family: var(--display); font-weight: 800; font-size: 22px; color: var(--text); }
.site-foot .about p { margin: 0; }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: flex-start; }
.site-foot nav a, .site-foot nav button { color: var(--text); text-decoration: none; background: none; border: 0; font: inherit; padding: 0; cursor: pointer; }
.site-foot nav a:hover, .site-foot nav button:hover { color: var(--gold-hi); }

/* Sheets, dialogs, toast, prayer moment */
.sheet { border: 1px solid var(--line-2); padding: 0; background: var(--bg-2); color: var(--text); width: min(470px, 100vw); max-width: 100vw; max-height: 100dvh; border-radius: 24px; }
.sheet::backdrop { background: rgba(3, 7, 18, .78); backdrop-filter: blur(3px); }
.sheet-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sheet-head b { font-family: var(--display); font-weight: 800; font-size: 18px; }
.icon-btn { background: transparent; border: 0; color: inherit; width: 44px; height: 44px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sheet-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.steps { display: flex; flex-direction: column; gap: 8px; }
.steps small { color: var(--muted); font-weight: 700; }
.bars { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.bars span { height: 6px; border-radius: 999px; background: var(--line-2); transition: background-color .4s var(--ease), box-shadow .4s var(--ease); }
.bars span.on { background: var(--gold); box-shadow: 0 0 12px rgba(242,169,59,.7); }
.sheet h2 { font-weight: 800; font-size: 28px; }
.sheet .lead { margin: 0; color: var(--muted); }
.sheet article { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.sheet article p { margin: 0; font-size: 17px; }
.sheet article .meta { color: var(--muted); font-size: 13px; }
.sheet article .pray { align-self: flex-start; }
.sheet .yours { border: 1px dashed var(--line-2); border-radius: 14px; padding: 12px 14px; font-size: 14px; color: var(--muted); }
.sheet .yours b { display: block; color: var(--text); font-size: 12px; }
.sheet-foot { padding: 0 22px 22px; }
.sheet-foot .btn { width: 100%; }
.done-box { text-align: center; display: flex; flex-direction: column; gap: 12px; align-items: center; }
.done-box .big { width: 72px; height: 72px; border-radius: 50%; background: var(--gold); display: flex; align-items: center; justify-content: center; box-shadow: 0 0 50px rgba(242,169,59,.6); }
.help { background: var(--gold-soft); border: 1px solid var(--gold-line); border-radius: 14px; padding: 14px; text-align: left; font-size: 15px; }
.help b { display: block; margin-bottom: 4px; }

.info { border: 1px solid var(--line-2); border-radius: 20px; padding: 0; max-width: min(520px, calc(100vw - 32px)); color: var(--text); background: var(--bg-2); }
.info::backdrop { background: rgba(3, 7, 18, .7); }
.info form { padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.info h2 { font-size: 26px; font-weight: 800; }
.info ul { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.info p { margin: 0; color: var(--muted); }
.info .btn { align-self: flex-end; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2); padding: 12px 20px; border-radius: 999px; font-weight: 700; box-shadow: 0 16px 40px -12px rgba(0,0,0,.6); z-index: 50; max-width: calc(100vw - 32px); text-align: center; }

.install-bar { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 40; max-width: 520px; margin: 0 auto; display: flex; align-items: center; gap: 12px; padding: 10px 8px 10px 12px; background: linear-gradient(160deg, #1C2C55, #111C38); border: 1px solid var(--gold-line); border-radius: 20px; box-shadow: 0 0 40px -12px rgba(242,169,59,.5), 0 20px 50px -16px rgba(0,0,0,.8); animation: rise .5s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.install-bar img { flex: none; border-radius: 11px; }
.install-bar span { flex: 1; display: flex; flex-direction: column; line-height: 1.3; }
.install-bar b { font-size: 15px; }
.install-bar small { color: var(--muted); font-size: 13px; }
.install-bar .btn { min-height: 42px; padding: 0 16px; }
.install-bar .icon-btn { flex: none; width: 36px; height: 36px; color: var(--muted); font-size: 22px; }
.info p b { color: var(--text); }

.moment { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 16px); opacity: 0; z-index: 60; width: min(440px, calc(100vw - 32px)); background: linear-gradient(160deg, #1C2C55, #111C38); border: 1px solid var(--gold-line); border-radius: 22px; padding: 18px 20px; box-shadow: 0 0 60px -10px rgba(242,169,59,.55), 0 30px 60px -20px rgba(0,0,0,.8); transition: opacity .6s var(--ease), transform .6s var(--ease); pointer-events: none; }
.moment.show { opacity: 1; transform: translate(-50%, 0); }
.moment b { display: block; font-family: var(--display); font-size: 20px; letter-spacing: -0.02em; margin-bottom: 8px; }
.moment q { display: block; color: var(--text); font-style: italic; quotes: "“" "”"; line-height: 1.5; }
.moment small { display: block; color: var(--gold-hi); margin-top: 6px; font-size: 13px; }

@media (max-width: 900px) {
  .stage { grid-template-columns: 1fr; }
  .now { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .map-wrap { padding-bottom: 0; }
  .map-caption { position: static; padding: 0 16px 14px; }
  .picked { position: static; max-width: none; margin: 0 12px 12px; }
}
@media (max-width: 600px) {
  .site-head { padding: 0 16px; }
  .main-nav { gap: 4px 16px; }
  .main-nav .hide-sm { display: none; }
  .hero, .section, .support { padding-left: 16px; padding-right: 16px; }
  .stage { border-radius: 20px; margin: 0 -8px; }
  .stats dd { font-size: 26px; }
  .first .box, .today, .find { padding: 22px; }
  .two { grid-template-columns: 1fr; }
  .post { position: static; padding: 22px; }
  .seg { width: 100%; }
  .sheet { border-radius: 0; width: 100vw; height: 100dvh; max-height: 100dvh; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
