/* Opening animation: the Chosen Road lettering writes itself in, then fades away. */
#splash { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: linear-gradient(180deg, #d9e4d0 0%, #ece3c8 55%, #f3e2c2 100%); animation: sp-out .5s ease 1.8s forwards; }
#splash .sp-in { display: flex; flex-direction: column; align-items: center; gap: 14px; width: min(320px, 74vw); }
#splash .sp-logo { width: 100%; aspect-ratio: 655 / 205; background: #85461a; -webkit-mask: var(--logo) center / contain no-repeat; mask: var(--logo) center / contain no-repeat; clip-path: inset(0 100% 0 0); transform: translateY(6px); animation: sp-write 1.15s cubic-bezier(.65, 0, .35, 1) .15s forwards; }
#splash .sp-rule { height: 2px; width: 0; border-radius: 2px; background: #c98a4b; animation: sp-rule .7s ease .95s forwards; }
#splash .sp-sub { font: 700 11px/1 "DM Sans", system-ui, sans-serif; letter-spacing: .34em; text-transform: uppercase; color: #5c7a4e; opacity: 0; transform: translateY(6px); animation: sp-sub .6s ease 1.1s forwards; }
@keyframes sp-write { to { clip-path: inset(0 0 0 0); transform: none; } }
@keyframes sp-rule { to { width: 62%; } }
@keyframes sp-sub { to { opacity: 1; transform: none; } }
@keyframes sp-out { to { opacity: 0; visibility: hidden; } }
@media (prefers-reduced-motion: reduce) {
  #splash .sp-logo { clip-path: none; transform: none; animation: none; }
  #splash .sp-rule { width: 62%; animation: none; }
  #splash .sp-sub { opacity: 1; transform: none; animation: none; }
  #splash { animation-delay: .7s; }
}

/* Sign-in email field spacing */
.gate-card .pwform { gap: 12px; }

/* Band page and profiles */
.pf-av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--sunk) center / cover no-repeat; border: 2px solid var(--surface); box-shadow: 0 0 0 1px var(--line); }
.pf-ini { background: linear-gradient(160deg, var(--sky1), var(--sky2)); color: var(--pine); font-family: var(--font-display); font-weight: 800; font-variation-settings: 'SOFT' 100, 'opsz' 72; }
.pf-me { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.pf-row, .pf-item { display: flex; align-items: center; gap: 14px; }
.pf-txt { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.pf-txt b { font-size: 17px; color: var(--ink); }
.pf-txt span { font-size: 14px; color: var(--muted); }
.pf-txt .pf-mail { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-out { color: var(--holly); }
.pf-list { padding: 4px 0; }
.pf-item { width: 100%; padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); background: none; font: inherit; color: inherit; }
.pf-item:last-child { border-bottom: 0; }
.pf-item .chev svg { width: 18px; height: 18px; color: var(--muted); }
.pf-empty { padding: 16px; color: var(--muted); font-size: 14px; }
.pf-photo { display: flex; align-items: center; gap: 16px; }
.pf-photo-btns { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.pf-photo-btns .linkbtn { font-size: 13px; color: var(--muted); text-decoration: underline; background: none; border: 0; padding: 4px 0; }

/* Personal welcome on the opening animation */
#splash.me { animation-delay: 2.7s; }
#splash .sp-me { display: flex; flex-direction: column; align-items: center; gap: 8px; margin-top: 14px; }
#splash .sp-av { position: relative; opacity: 0; transform: scale(.6); animation: sp-pop .55s cubic-bezier(.34, 1.56, .64, 1) 1.35s forwards; }
#splash .sp-av::after { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #c98a4b; opacity: 0; animation: sp-ring 1s ease-out 1.6s forwards; }
#splash .sp-av .pf-av { box-shadow: 0 8px 22px rgba(60, 30, 10, .22); border-color: #fff8ec; }
#splash .sp-hi { font: 800 24px/1.1 "Fraunces", Georgia, serif; font-variation-settings: 'SOFT' 100, 'opsz' 72; color: #85461a; opacity: 0; transform: translateY(8px); animation: sp-sub .5s ease 1.7s forwards; }
#splash .sp-role { font: 600 13px/1 "DM Sans", system-ui, sans-serif; color: #7a6a58; opacity: 0; animation: sp-sub .5s ease 1.85s forwards; }
@keyframes sp-pop { to { opacity: 1; transform: none; } }
@keyframes sp-ring { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.35); } }
@media (prefers-reduced-motion: reduce) {
  #splash .sp-av, #splash .sp-hi, #splash .sp-role { opacity: 1; transform: none; animation: none; }
  #splash .sp-av::after { display: none; }
  #splash.me { animation-delay: 1.4s; }
}

/* Admin tag and access switch */
.pf-txt b { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pf-tag { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 999px; font: 700 10px/1.4 var(--font-body); letter-spacing: .08em; text-transform: uppercase; color: #ffffff; background: #85461a; }
.pf-admin { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--sunk); cursor: pointer; }
.pf-admin input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--pine); flex: none; }
.pf-admin > span { display: flex; flex-direction: column; gap: 2px; }
.pf-admin > span span { font-size: 13px; color: var(--muted); }

/* PIN unlock and settings */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.gate-swap { align-self: flex-start; background: none; border: 0; padding: 2px 0; color: var(--muted); font: inherit; font-size: 13px; text-decoration: underline; cursor: pointer; }
.pin-card { align-items: stretch; }
.pin-who { display: flex; align-items: center; gap: 14px; }
.pin-who h2 { margin: 0; }
.pin-who p { margin: 2px 0 0; }
.pin-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 6px 0 2px; }
.pin-dots { display: flex; gap: 16px; }
.pin-dots span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--pine); transition: background .12s; }
.pin-dots span.on { background: var(--pine); }
.pin-dots.shake { animation: pin-shake .4s ease; }
@keyframes pin-shake { 20%, 60% { transform: translateX(-8px); } 40%, 80% { transform: translateX(8px); } }
.pin-grid { display: grid; grid-template-columns: repeat(3, 72px); gap: 12px 22px; justify-content: center; }
.pin-key { width: 72px; height: 72px; border-radius: 50%; background: var(--sunk); border: 1px solid var(--line); color: var(--ink); font: 600 26px/1 var(--font-body); display: grid; place-items: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pin-key:active { background: var(--line); }
.pin-key.del { background: none; border: 0; }
.pin-key svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linejoin: round; stroke-linecap: round; }
.pin-set { padding: 14px 16px; display: flex; align-items: center; gap: 14px; }
.pin-set .btn { flex: none; min-height: 40px; }
@media (prefers-reduced-motion: reduce) { .pin-dots.shake { animation: none; } }
