:root {
  --ink: #51444f;
  --forest: #8d6c63;
  --sage: #b8c8b5;
  --mint: #edf4ed;
  --cream: #fff6f3;
  --paper: #fffdfb;
  --gold: #c69a72;
  --rose: #f2d2cf;
  --blush: #ffe7e3;
  --mauve: #7d6574;
  --line: rgba(115, 86, 94, .12);
  --shadow: 0 22px 60px rgba(133, 103, 109, .12);
}

* { box-sizing: border-box; }
html { background: #f3ebe8; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.92), transparent 26rem),
    radial-gradient(circle at 100% 12%, rgba(255,220,214,.8), transparent 24rem),
    linear-gradient(150deg, #fbf3f0, #efe8e4);
  font-family: "Noto Sans JP", sans-serif;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; }
[hidden] { display: none !important; }

.grain {
  position: fixed; inset: 0; pointer-events: none; z-index: 20; opacity: .17;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 180 180' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.12'/%3E%3C/svg%3E");
}
.app-shell {
  width: min(100%, 480px); min-height: 100vh; margin: 0 auto;
  background:
    radial-gradient(circle at 115% 20%, rgba(255, 210, 203, .28), transparent 16rem),
    radial-gradient(circle at -10% 60%, rgba(184, 200, 181, .22), transparent 17rem),
    var(--cream);
  box-shadow: 0 0 60px rgba(112, 84, 91, .12);
  position: relative; overflow: hidden;
}
.view { min-height: 100vh; }

.login-view {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 48px 30px; position: relative;
  background:
    radial-gradient(circle at 50% 30%, rgba(255,255,255,.9), transparent 18rem),
    radial-gradient(circle at 85% 20%, rgba(255,228,223,.58), transparent 14rem),
    var(--cream);
}
.login-view::before, .login-view::after {
  content: ""; position: absolute; width: 280px; height: 280px;
  border: 1px solid rgba(139,164,143,.22); border-radius: 48% 52% 58% 42%;
  animation: spin 22s linear infinite;
}
.login-view::before { top: -150px; right: -110px; }
.login-view::after { bottom: -180px; left: -140px; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }
.login-mark {
  width: 132px; height: 132px; border: 1px solid var(--gold); border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  margin-bottom: 34px; box-shadow: inset 0 0 0 7px var(--cream), inset 0 0 0 8px rgba(183,146,85,.3);
  background: linear-gradient(180deg, rgba(255,255,255,.8), rgba(255,239,235,.66));
}
.login-mark span { font: 54px/1 "Cormorant Garamond", serif; color: var(--mauve); font-weight: 700; }
.login-mark small { font-size: 9px; letter-spacing: .35em; color: var(--gold); margin-left: .35em; }
.eyebrow, .mini-label, .hero-kicker, .section-kicker {
  letter-spacing: .19em; font-size: 9px; font-weight: 700; color: var(--gold);
}
.login-view h1 { font-size: 27px; margin: 9px 0 14px; letter-spacing: .03em; }
.login-view h1 em { color: var(--gold); font: italic 24px "Cormorant Garamond", serif; font-weight: 700; }
.level-lockup { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.rainbow-logo {
  display: inline-block; position: relative; width: 29px; height: 21px;
  overflow: hidden; transform: translateY(2px);
}
.rainbow-logo i {
  position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%);
  border-style: solid; border-radius: 50% 50% 0 0;
}
.rainbow-logo i:nth-child(1) { width: 28px; height: 28px; border-width: 3px; border-color: #e58f8e; }
.rainbow-logo i:nth-child(2) { width: 20px; height: 20px; border-width: 3px; border-color: #e7b777; }
.rainbow-logo i:nth-child(3) { width: 12px; height: 12px; border-width: 3px; border-color: #9bb8a7; }
.rainbow-logo b {
  position: absolute; bottom: 0; left: 1px; width: 5px; height: 5px;
  border-radius: 50%; background: #e58f8e; box-shadow: 22px 0 #e58f8e;
}
.rainbow-logo-light { filter: saturate(.82) brightness(1.2); }
.login-copy { font-size: 13px; line-height: 2; color: #85767f; margin: 0 0 37px; }
.line-button, .complete-button {
  border: 0; cursor: pointer; transition: transform .18s, filter .18s;
}
.line-button:active, .complete-button:active { transform: scale(.98); }
.line-button {
  width: 100%; max-width: 330px; height: 58px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  color: white; background: #06c755; font-weight: 700; box-shadow: 0 12px 28px rgba(6,199,85,.22);
}
.line-button svg { width: 25px; height: 25px; }
.demo-button { border: 0; background: transparent; color: #768078; font-size: 12px; text-decoration: underline; padding: 18px; cursor: pointer; }
.privacy-note { font-size: 10px; color: #9ba29d; margin: 8px 0; }

.home-view { padding-bottom: 1px; }
.topbar { display: flex; align-items: center; justify-content: space-between; padding: 25px 22px 19px; }
.mini-label { margin: 0 0 3px; }
.avatar { width: 40px; height: 40px; padding: 0; border: 1px solid rgba(255,255,255,.88); border-radius: 50%; overflow: hidden; background: linear-gradient(160deg, #fff4f1, #ebf3ea); color: var(--mauve); font-weight: 700; box-shadow: 0 8px 20px rgba(138, 104, 112, .12); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }

.hero-card {
  margin: 0 15px; padding: 42px 24px 29px; text-align: center; color: white;
  background:
    radial-gradient(circle at 83% 8%, rgba(255,220,214,.26), transparent 10rem),
    linear-gradient(145deg, #c79a8d, #7b6273 72%);
  border: 1px solid rgba(255,255,255,.2); border-radius: 28px;
  position: relative; overflow: hidden; box-shadow: 0 22px 48px rgba(122, 94, 105, .22);
}
.hero-card::after {
  content: ""; position: absolute; inset: 0; opacity: .11;
  background-image: radial-gradient(#fff 1px, transparent 1px); background-size: 18px 18px;
}
.hero-orbit { position: absolute; border: 1px solid rgba(255,255,255,.12); border-radius: 50%; }
.orbit-one { width: 230px; height: 230px; top: -140px; right: -80px; }
.orbit-two { width: 180px; height: 180px; bottom: -120px; left: -70px; }
.hero-card > *:not(.hero-orbit) { position: relative; z-index: 1; }
.hero-kicker { color: #f8dfd5; margin: 0 0 9px; }
.hero-card h1 { font-size: 27px; margin: 0 0 13px; letter-spacing: .04em; }
.hero-card h1 em { color: #fff1df; font: italic 24px "Cormorant Garamond", serif; font-weight: 700; }
.hero-sparkles { position: absolute !important; inset: 17px 20px auto; display: flex; justify-content: space-between; color: #d7c296; opacity: .65; font-size: 10px; }
.hero-sparkles span:nth-child(2) { margin-top: 8px; }
.subtitle { margin: 0; font-size: 13px; line-height: 1.85; color: rgba(255,255,255,.9); }
.slogan {
  display: inline-block; margin: 19px 0; padding: 8px 15px;
  border-top: 1px solid rgba(255,232,214,.45); border-bottom: 1px solid rgba(255,232,214,.45);
  font-weight: 700; font-size: 14px; color: #f9f4e6;
}
.period { display: flex; align-items: baseline; justify-content: center; gap: 8px; color: #ffe6da; }
.period strong { font: 28px "Cormorant Garamond", serif; color: white; font-weight: 700; }
.period span { font-size: 8px; letter-spacing: .17em; }
.period i { font-style: normal; opacity: .5; }

.progress-section, .prayer-section { padding: 35px 18px 0; }
.section-heading { display: flex; justify-content: space-between; align-items: end; margin: 0 2px 14px; }
.section-kicker { margin: 0 0 3px; }
.section-heading h2 { font-size: 19px; margin: 0; }
.section-heading .english-title {
  font: 23px/1 "DM Serif Display", serif; letter-spacing: .1em;
  color: var(--forest);
}
.status-pill { font-size: 10px; font-weight: 700; padding: 6px 11px; border-radius: 20px; background: linear-gradient(180deg, #fff8f7, #f2ebe8); color: var(--mauve); }
.progress-card {
  background: linear-gradient(145deg, rgba(255,255,255,.92), rgba(255,253,248,.75));
  border: 1px solid rgba(255,255,255,.9); outline: 1px solid var(--line);
  border-radius: 28px; display: flex; padding: 23px;
  box-shadow: 0 14px 34px rgba(120,92,101,.08);
  backdrop-filter: blur(12px);
}
.day-count { min-width: 103px; border-right: 1px solid var(--line); }
.day-count span { display: block; font-size: 9px; letter-spacing: .2em; color: var(--gold); font-weight: 700; }
.day-count strong { font: 52px/1.1 "Cormorant Garamond", serif; color: var(--mauve); font-weight: 700; }
.day-count small { font-size: 11px; color: #8a928d; }
.progress-detail { flex: 1; padding: 7px 0 0 20px; }
.progress-copy { display: flex; justify-content: space-between; align-items: center; font-size: 10px; color: #7e8781; }
.progress-copy strong { font: 22px "Cormorant Garamond", serif; color: var(--mauve); font-weight: 700; }
.progress-track { height: 7px; border-radius: 9px; background: #e9ece7; overflow: hidden; margin: 9px 0; }
.progress-bar { width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #ebc3bd, #a98579); transition: width .8s ease; }
.progress-detail p { margin: 0; font: 11px "Cormorant Garamond", serif; letter-spacing: .08em; color: #9f8f96; }
.tap-hint { color: #929a94; font-size: 9px; }

.prayer-groups { display: grid; gap: 12px; }
.prayer-group {
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255,255,255,.91), rgba(255,253,248,.8));
  border: 1px solid rgba(255,255,255,.88); outline: 1px solid var(--line);
  overflow: hidden; box-shadow: 0 10px 28px rgba(120,92,101,.055);
}
.group-toggle { width: 100%; padding: 17px 18px; border: 0; background: transparent; display: flex; align-items: center; text-align: left; cursor: pointer; color: var(--ink); }
.group-number {
  font: 18px "Cormorant Garamond", serif; color: var(--gold); width: 34px; height: 34px;
  display: grid; place-items: center; border: 1px solid rgba(183,146,85,.35); border-radius: 50%;
  margin-right: 10px;
}
.group-title { flex: 1; font-weight: 700; font-size: 14px; }
.group-count { font-size: 9px; color: #939b96; margin-right: 12px; }
.chevron { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; background: #f7efed; transition: transform .25s; }
.prayer-group.open .chevron { transform: rotate(180deg); }
.group-content { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s ease; }
.prayer-group.open .group-content { grid-template-rows: 1fr; }
.group-content-inner { overflow: hidden; }
.prayer-list { list-style: none; padding: 0 18px 7px; margin: 0; }
.prayer-list li { position: relative; padding: 15px 4px 15px 26px; border-top: 1px solid var(--line); font-size: 12px; line-height: 1.9; color: #526159; }
.prayer-list li::before { content: ""; position: absolute; left: 3px; top: 22px; width: 7px; height: 7px; border: 1px solid var(--gold); border-radius: 50%; }

.complete-area { padding: 24px 18px 42px; text-align: center; }
.complete-button {
  width: 100%; border-radius: 24px; color: white;
  background: linear-gradient(135deg, #d4a092, #866a7b); min-height: 78px;
  display: flex; align-items: center; justify-content: center; gap: 14px;
  box-shadow: 0 15px 30px rgba(138,104,112,.24); position: relative; overflow: hidden;
}
.complete-button::after { content: "✦"; position: absolute; right: 20px; color: rgba(255,240,229,.65); font-size: 10px; }
.button-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.14); }
.complete-button span:last-child { text-align: left; }
.complete-button strong, .complete-button small { display: block; }
.complete-button strong { font-size: 14px; }
.complete-button small { color: rgba(255,255,255,.65); font-size: 9px; margin-top: 2px; }
.complete-button:disabled { background: #91a097; box-shadow: none; cursor: default; }
.recorded-note { font-size: 10px; color: #8b9290; }
.gallery-button {
  width: 100%;
  margin-top: 12px;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #fffdfc, #f6ece8);
  color: var(--mauve);
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(133,103,109,.08);
  cursor: pointer;
}
.participant-section { padding: 0 18px 28px; }
.participant-copy { margin: -2px 2px 12px; font-size: 11px; color: #9b8e96; }
.participant-list { display: grid; gap: 10px; }
.participant-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255,255,255,.94), rgba(255,249,247,.82));
  border: 1px solid rgba(255,255,255,.88);
  outline: 1px solid var(--line);
  box-shadow: 0 10px 24px rgba(120,92,101,.05);
}
.participant-card strong { display: block; font-size: 14px; color: #4f4450; }
.participant-card small { display: block; margin-top: 4px; font-size: 10px; color: #9a8e95; }
.participant-card.prayed strong { color: #78525c; }
.participant-card.subtle { color: #9a8e95; justify-content: center; font-size: 12px; }
.participant-flame { min-width: 42px; text-align: center; font-size: 20px; color: #d6a57a; }
footer { text-align: center; font: 11px "Cormorant Garamond", serif; letter-spacing: .25em; color: #b49ea6; padding: 0 0 26px; }

.message-view { position: relative; background: linear-gradient(160deg, #fff7f5, #f8eeeb 58%, #eef4ec); color: var(--ink); padding: 25px 27px; overflow: hidden; }
.message-view::before { content: ""; position: absolute; inset: 0; opacity: .24; background-image: radial-gradient(rgba(198,154,114,.35) 1px, transparent 1px); background-size: 22px 22px; }
.message-glow { position: absolute; width: 360px; height: 360px; left: calc(50% - 180px); top: 5%; background: rgba(242, 210, 207, .55); filter: blur(75px); border-radius: 50%; }
.back-button { position: relative; z-index: 2; color: var(--mauve); background: rgba(255,255,255,.66); border: 1px solid rgba(198,154,114,.16); border-radius: 50%; width: 40px; height: 40px; cursor: pointer; box-shadow: 0 10px 22px rgba(133,103,109,.1); }
.message-content { position: relative; z-index: 1; min-height: calc(100vh - 90px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.message-check { width: 78px; height: 78px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 25px; color: #8d6c63; background: linear-gradient(160deg, #fffdfc, #fff1ee); font-size: 30px; box-shadow: 0 0 0 12px rgba(255,255,255,.35), 0 18px 40px rgba(133,103,109,.1); }
.message-content .eyebrow { color: var(--gold); margin: 0 0 10px; }
.message-card { width: 100%; min-height: 300px; padding: 34px 28px 26px; border: 1px solid rgba(198,154,114,.2); border-radius: 34px; background: linear-gradient(180deg, rgba(255,255,255,.82), rgba(255,249,247,.9)); display: flex; flex-direction: column; justify-content: center; position: relative; box-shadow: 0 22px 48px rgba(133,103,109,.11); overflow: hidden; }
.message-aura { position: absolute; inset: auto -30px -40px auto; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, rgba(184,200,181,.35), rgba(184,200,181,0)); }
.quote-mark { position: absolute; top: 16px; left: 26px; font: 52px "Cormorant Garamond", serif; color: var(--gold); opacity: .78; }
.message-date { margin: 0 0 16px; font: 600 16px "Cormorant Garamond", serif; letter-spacing: .14em; color: #b08d82; }
.message-text { font: 600 24px/1.9 "Cormorant Garamond", serif; color: #423a46; margin: 0 0 24px; }
.message-signoff { display: flex; flex-direction: column; gap: 8px; align-items: center; }
.message-label { font-size: 8px; letter-spacing: .2em; color: var(--gold); }
.message-signoff strong { font: 700 15px "Noto Sans JP", sans-serif; color: #8d6c63; }
.saved-status { font-size: 10px; color: #8f858f; margin: 21px 0 12px; }
.saved-status::before { content: "✓ "; color: var(--gold); }
.save-image-button {
  border: 0;
  width: 100%;
  margin: 0 0 12px;
  min-height: 54px;
  border-radius: 999px;
  background: linear-gradient(135deg, #fffdfc, #f6ece8);
  color: var(--mauve);
  font-weight: 700;
  box-shadow: 0 12px 30px rgba(133,103,109,.1);
  cursor: pointer;
}
.save-image-button:disabled { opacity: .72; cursor: default; }
.home-button { border: 0; background: transparent; color: var(--mauve); padding: 10px 20px; text-decoration: underline; text-underline-offset: 5px; cursor: pointer; font-size: 12px; }
.gallery-view {
  padding: 24px 22px 42px;
  background:
    radial-gradient(circle at 82% 18%, rgba(255,215,209,.38), transparent 14rem),
    radial-gradient(circle at 10% 85%, rgba(206,220,202,.24), transparent 15rem),
    var(--cream);
}
.gallery-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.gallery-header h2 {
  margin: 2px 0 0;
  font-size: 24px;
  color: var(--mauve);
}
.gallery-copy {
  margin: 0 0 18px;
  font-size: 12px;
  line-height: 1.8;
  color: #8f858f;
}
.gallery-empty {
  padding: 28px 18px;
  border-radius: 24px;
  text-align: center;
  color: #9a8e95;
  background: rgba(255,255,255,.64);
  border: 1px solid rgba(255,255,255,.85);
}
.gallery-list { display: grid; gap: 14px; }
.stone-card {
  border-radius: 28px;
  padding: 20px 18px 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.95), rgba(255,249,247,.85));
  border: 1px solid rgba(255,255,255,.88);
  outline: 1px solid var(--line);
  box-shadow: 0 16px 30px rgba(120,92,101,.06);
}
.stone-date {
  margin: 0 0 10px;
  font: 600 13px "Cormorant Garamond", serif;
  letter-spacing: .12em;
  color: #b08d82;
}
.stone-card h3 {
  margin: 0 0 14px;
  font: 600 20px/1.8 "Cormorant Garamond", serif;
  color: #453a46;
}
.stone-owner {
  margin: 0;
  font-size: 11px;
  color: #8d6c63;
}
.stone-save-button {
  width: 100%;
  margin-top: 16px;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #f9efeb, #efe3df);
  color: var(--mauve);
  font-weight: 700;
  cursor: pointer;
}
.toast { position: fixed; z-index: 50; left: 50%; bottom: 24px; transform: translate(-50%, 20px); width: max-content; max-width: calc(100% - 32px); background: #27362e; color: white; padding: 12px 17px; border-radius: 12px; font-size: 11px; opacity: 0; pointer-events: none; transition: .25s; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 481px) {
  body { padding: 24px 0; }
  .app-shell { min-height: calc(100vh - 48px); border-radius: 28px; }
  .view { min-height: calc(100vh - 48px); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* 聖地使役21 — midnight / steel / gold */
:root {
  --ink: #dce5ef;
  --forest: #d3aa58;
  --sage: #5f7690;
  --mint: #152537;
  --cream: #081321;
  --paper: #101e2d;
  --gold: #d3aa58;
  --rose: #3d536a;
  --blush: #172a3c;
  --mauve: #e4ebf2;
  --line: rgba(151, 177, 202, .15);
  --shadow: 0 22px 60px rgba(0, 5, 12, .38);
}
html { background: #030912; }
body {
  background:
    radial-gradient(circle at 12% 0%, rgba(39, 72, 105, .55), transparent 28rem),
    radial-gradient(circle at 100% 35%, rgba(143, 101, 37, .16), transparent 25rem),
    linear-gradient(155deg, #030912, #0a1725);
}
.app-shell {
  background:
    linear-gradient(118deg, transparent 48%, rgba(255,255,255,.018) 49%, transparent 50%),
    radial-gradient(circle at 115% 17%, rgba(211, 170, 88, .1), transparent 18rem),
    radial-gradient(circle at -10% 62%, rgba(41, 83, 123, .25), transparent 18rem),
    #081321;
  box-shadow: 0 0 70px rgba(0, 0, 0, .48);
}
.login-view {
  background:
    linear-gradient(135deg, transparent 45%, rgba(255,255,255,.025) 46%, transparent 47%),
    radial-gradient(circle at 50% 30%, rgba(37, 74, 108, .48), transparent 18rem),
    #07111f;
}
.login-view::before, .login-view::after { border-color: rgba(211,170,88,.18); border-radius: 16%; }
.login-mark {
  border-color: var(--gold);
  box-shadow: inset 0 0 0 7px #07111f, inset 0 0 0 8px rgba(211,170,88,.42), 0 18px 45px rgba(0,0,0,.28);
  background: linear-gradient(145deg, rgba(33,59,84,.85), rgba(8,19,33,.92));
  border-radius: 18%;
  transform: rotate(45deg);
}
.login-mark span, .login-mark small { transform: rotate(-45deg); }
.login-mark span { color: #f0d18d; }
.login-copy, .privacy-note, .demo-button { color: #8fa0b2; }
.title-number {
  margin-left: .22em;
  color: #f0cf82;
  font: italic 1.08em "Cormorant Garamond", serif;
  letter-spacing: .02em;
}
.avatar { background: linear-gradient(145deg, #22384c, #0b1826); color: #e8c777; border-color: rgba(211,170,88,.36); }
.hero-card {
  background:
    linear-gradient(122deg, transparent 35%, rgba(255,255,255,.035) 36%, transparent 37%),
    radial-gradient(circle at 80% 5%, rgba(211,170,88,.2), transparent 12rem),
    linear-gradient(145deg, #1e3851, #07111f 74%);
  border-color: rgba(211,170,88,.26);
  border-radius: 10px;
  box-shadow: 0 24px 52px rgba(0,0,0,.4);
}
.hero-card::before {
  content: "";
  position: absolute;
  inset: 10px;
  border: 1px solid rgba(211,170,88,.15);
  pointer-events: none;
}
.hero-card h1 { font-size: 31px; }
.hero-kicker, .period, .slogan { color: #e5c574; }
.slogan { letter-spacing: .16em; font-size: 11px; }
.progress-card, .prayer-group, .participant-card, .stone-card {
  background: linear-gradient(145deg, rgba(20,37,54,.96), rgba(8,20,33,.92));
  border-color: rgba(94,124,151,.2);
  outline-color: rgba(211,170,88,.1);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0,0,0,.22);
}
.day-count strong, .progress-copy strong, .group-number { color: #e8c878; }
.progress-track { background: #020913; }
.progress-bar { background: linear-gradient(90deg, #587b9b, #d3aa58); }
.group-toggle { color: #dce5ef; }
.group-number { border-radius: 5px; border-color: rgba(211,170,88,.45); }
.chevron { background: #1b3044; }
.prayer-list li { color: #b7c5d2; }
.complete-button {
  border-radius: 9px;
  background: linear-gradient(135deg, #315b7d, #142b40 62%, #8d6b31);
  box-shadow: 0 16px 34px rgba(0,0,0,.32);
}
.gallery-button, .save-image-button, .stone-save-button {
  background: linear-gradient(135deg, #172c40, #0c1b29);
  color: #e3c472;
}
.participant-card strong, .participant-card.prayed strong { color: #dce5ef; }
.message-view {
  background:
    radial-gradient(circle at 50% 18%, rgba(42,79,111,.42), transparent 22rem),
    linear-gradient(160deg, #07111f, #0c1b29 58%, #121d28);
}
.message-glow { background: rgba(45,82,114,.42); }
.message-card { background: linear-gradient(180deg, rgba(19,37,54,.94), rgba(7,18,30,.96)); border-color: rgba(211,170,88,.24); border-radius: 12px; }
.message-text { color: #e5ebf1; }
.message-check { color: #e2c06e; background: linear-gradient(160deg, #1b344b, #0b1927); }
.gallery-view { background: #081321; }
.toast { background: #d3aa58; color: #07111f; font-weight: 700; }

/* Sacred-land photography */
body {
  background:
    linear-gradient(rgba(3, 10, 12, .56), rgba(3, 10, 12, .82)),
    url("assets/sacred-land/07.jpg") center / cover fixed;
}
.app-shell {
  background:
    linear-gradient(rgba(5, 17, 20, .72), rgba(6, 19, 25, .9)),
    url("assets/sacred-land/08.jpg") center / cover fixed;
}
.login-view {
  background:
    linear-gradient(rgba(5, 17, 20, .48), rgba(5, 17, 20, .86)),
    url("assets/sacred-land/07.jpg") center / cover;
}
.hero-card {
  background:
    linear-gradient(145deg, rgba(8, 24, 27, .55), rgba(5, 16, 22, .86)),
    url("assets/sacred-land/08.jpg") center / cover;
}
.progress-card, .prayer-group, .participant-card, .stone-card {
  backdrop-filter: blur(14px);
  background: linear-gradient(145deg, rgba(14, 35, 38, .9), rgba(7, 23, 29, .9));
}
.participant-section { padding-top: 4px; }
.sacred-carousel {
  position: relative;
  margin: 0 0 18px;
  overflow: hidden;
  border: 1px solid rgba(235, 211, 149, .32);
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(0,0,0,.32);
}
.sacred-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-inline: contain;
}
.sacred-track::-webkit-scrollbar { display: none; }
.sacred-slide {
  flex: 0 0 100%;
  min-width: 100%;
  height: 238px;
  margin: 0;
  position: relative;
  scroll-snap-align: center;
  background: #081719;
}
.sacred-slide::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 56%, rgba(2,10,12,.82));
  pointer-events: none;
}
.sacred-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.sacred-slide figcaption {
  position: absolute;
  z-index: 1;
  left: 18px;
  bottom: 18px;
  color: white;
  font: 700 10px "Noto Sans JP", sans-serif;
  letter-spacing: .18em;
  text-shadow: 0 2px 12px rgba(0,0,0,.6);
}
.sacred-slide figcaption span {
  color: #efd183;
  margin-right: 8px;
}
.carousel-arrow {
  position: absolute;
  z-index: 2;
  top: 50%;
  width: 38px;
  height: 38px;
  margin-top: -26px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 50%;
  background: rgba(4, 16, 19, .7);
  color: white;
  cursor: pointer;
  backdrop-filter: blur(8px);
}
.carousel-prev { left: 10px; }
.carousel-next { right: 10px; }
.carousel-dots {
  position: absolute;
  z-index: 2;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
}
.carousel-dots i {
  width: 4px;
  height: 4px;
  border-radius: 99px;
  background: rgba(255,255,255,.42);
  transition: width .2s, background .2s;
}
.carousel-dots i.active { width: 14px; background: #efd183; }
