/* GO-LIVE /character/: Become a Sunlight City character. Sunlight City palette from css/shops.css (loaded first). */
.cr-body{background:var(--sc-mid);color:#fff;min-height:100vh}
.cr-preview-note{background:#1A0B33;color:#FDDC49;text-align:center;font:600 13px/1.4 var(--sans);padding:6px 12px;border-bottom:1px solid rgba(253,220,73,.4)}
.cr-top{background:linear-gradient(180deg,#1A0B33 0%,#3a1568 55%,#7A32C4 100%);padding:22px 0 18px}
.cr-top-in{display:flex;flex-direction:column;align-items:center;gap:2px}
.cr-logo img{width:min(240px,62vw);height:auto;display:block}
.cr-kicker{font-family:var(--sc-disp);color:var(--sc-yellow);font-size:clamp(18px,2.6vw,24px);letter-spacing:.03em;margin-top:-4px}
.cr-steps{list-style:none;display:flex;justify-content:center;gap:8px 18px;flex-wrap:wrap;margin:16px auto 0;padding:0;font:600 13px/1 var(--sans);color:#d9cdf0}
.cr-steps li{display:flex;align-items:center;gap:7px}
.cr-steps span{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:50%;border:2px solid rgba(255,255,255,.5);font-size:12px}
.cr-steps .cur{color:#fff}.cr-steps .cur span{background:var(--sc-pink);border-color:var(--sc-pink)}
.cr-steps .done span{background:var(--sc-cyan);border-color:var(--sc-cyan);color:#1A0B33}
.cr-main{padding-block:28px 40px;max-width:820px}
.cr-card{background:#24123f;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:clamp(18px,4vw,36px);box-shadow:0 20px 60px -30px rgba(0,0,0,.8)}
.cr-center{text-align:center}
.cr-h1{font-family:var(--sc-disp);font-weight:400;font-size:clamp(26px,4vw,36px);line-height:1.15;color:#fff}
.cr-lede{color:#e6dcf7;font-size:17px;line-height:1.55;margin-top:10px}
.cr-doc{margin-top:20px;background:#fff;color:#1A0B33;border-radius:12px;padding:clamp(16px,3.4vw,30px);max-height:52vh;overflow:auto;font-size:15.5px;line-height:1.6;border:1px solid #d6cbe8}
.cr-doc:focus-visible{outline:3px solid var(--sc-cyan);outline-offset:3px}
.cr-doc p+p{margin-top:.55em}
.cr-doc h3{font:700 16px/1.35 var(--sans);margin:1.15em 0 .35em;color:#3a1568}
.cr-doc-title{font-family:var(--sc-disp);font-weight:400;font-size:clamp(20px,3vw,25px);line-height:1.2;color:#1A0B33;margin-top:8px}
.cr-ver{color:#6b5a86;font-size:13.5px;margin-top:2px}
.cr-alpha{list-style:none;margin:.4em 0 .4em 1.1em;padding:0}.cr-alpha li+li{margin-top:.25em}
.cr-paper{max-height:46vh;box-shadow:inset 0 0 0 6px #f4efe6;background:#fffdf8;font-family:Georgia,"Times New Roman",serif}
.cr-paper h3{font-family:var(--sans)}
.cr-paper-sig{margin-top:1.4em!important;padding-top:.9em;border-top:1px dashed #b9a9d4;font-style:italic;color:#4b3b66}
.cr-form{margin-top:22px;display:flex;flex-direction:column;gap:12px}
.cr-check{display:flex;gap:12px;align-items:flex-start;background:#2f1952;border:1px solid rgba(255,255,255,.18);border-radius:12px;padding:14px 16px;font-size:17px;font-weight:600;cursor:pointer}
.cr-check input{width:22px;height:22px;margin-top:1px;accent-color:var(--sc-pink);flex:none}
.cr-field{display:flex;flex-direction:column;gap:6px;font-weight:600;font-size:15px}
.cr-field input{font:16px/1.3 var(--sans);padding:12px 14px;border-radius:10px;border:2px solid rgba(255,255,255,.25);background:#fff;color:#1A0B33;min-height:48px}
.cr-field input:focus{outline:3px solid var(--sc-cyan);outline-offset:1px}
.cr-field input[aria-invalid=true]{border-color:#FF2C8B}
.cr-ferr{color:#ffb3d3;font-size:14px;margin-top:-6px}
.cr-err{background:#4a0f2e;border:2px solid #FF2C8B;color:#fff;border-radius:12px;padding:12px 14px;font-weight:600}
.cr-err p+p{margin-top:4px}
.cr-note{background:#2f1952;border-left:4px solid var(--sc-cyan);padding:10px 12px;border-radius:8px;margin-top:14px;color:#e6dcf7}
.cr-note a,.cr-small a{color:var(--sc-cyan)}
.cr-hp{position:absolute!important;left:-10000px!important;width:1px;height:1px;overflow:hidden}
.cr-go{align-self:flex-start;cursor:pointer;border:0}
.cr-center .cr-go,.cr-center .cr-btn-ghost{align-self:center}
.cr-btn-ghost{background:transparent;box-shadow:0 0 0 2px var(--sc-cyan);color:#fff}.cr-btn-ghost:hover{background:rgba(5,210,250,.15)}
.cr-privacy{margin-top:22px;font-size:14px;line-height:1.55;color:#cbbde6;border-top:1px solid rgba(255,255,255,.14);padding-top:14px}
.cr-small{font-size:13.5px;color:#cbbde6;margin-top:12px}
.cr-tick{width:64px;height:64px;margin:0 auto 10px;border-radius:50%;display:grid;place-items:center;font-size:34px;background:var(--sc-cyan);color:#1A0B33;font-weight:800}
.cr-facts{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;text-align:left;max-width:440px;margin:20px auto;background:#2f1952;padding:14px 18px;border-radius:12px}
.cr-facts dt{color:#cbbde6;font-size:14px}.cr-facts dd{margin:0;font-weight:600;word-break:break-word}
.cr-center p{margin-top:12px}
code{font-family:ui-monospace,SFMono-Regular,Menlo,monospace;font-size:.92em}
.cr-slot{border:2px dashed rgba(255,255,255,.3);border-radius:14px;padding:16px}
.cr-slot legend{font-weight:700;padding:0 6px}
.cr-count{color:var(--sc-cyan);margin-left:6px}
.cr-pick{display:flex;flex-wrap:wrap;gap:12px;margin-top:6px}
.cr-pick label{position:relative}
.cr-pick label.off{opacity:.45;pointer-events:none}
.vh{position:absolute;width:1px;height:1px;opacity:0;overflow:hidden}
.cr-thumbs{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px;margin-bottom:12px}
.cr-thumb{position:relative;aspect-ratio:1;border-radius:10px;overflow:hidden;background:#000}
.cr-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.cr-thumb .x{position:absolute;top:4px;right:4px;width:28px;height:28px;border-radius:50%;border:0;background:rgba(26,11,51,.85);color:#fff;font-size:18px;cursor:pointer}
.cr-submit[disabled]{opacity:.5;cursor:not-allowed}
.cr-foot{background:transparent;border:0;padding:18px 0 34px;text-align:center;color:#9d8cbc}
.cr-invite{padding-block:30px 10px}
.cr-invite-in{max-width:760px;margin:0 auto;text-align:center;border-radius:22px;padding:30px clamp(18px,4vw,40px);background:linear-gradient(135deg,rgba(122,50,196,.55),rgba(255,44,139,.4));box-shadow:0 0 0 2px rgba(253,220,73,.7)}
.cr-invite .sc-h2{font-size:clamp(20px,2.8vw,28px);line-height:1.3}
.cr-invite .sc-btn{margin-top:20px}
@media (max-width:520px){.cr-steps{gap:8px 12px;font-size:12px}.cr-go,.cr-btn-ghost{align-self:stretch;justify-content:center}.cr-pick label{flex:1 1 100%;justify-content:center}}

/* staging pipeline additions (2026-11-09) */
.cr-staging{background:#FDC049;color:#1A0B33;padding:.7rem 1rem;text-align:center;font-size:.95rem}
.cr-staging strong{display:block;letter-spacing:.04em}
.cr-name-row{display:grid;grid-template-columns:1fr 1fr;gap:1rem}
@media(max-width:640px){.cr-name-row{grid-template-columns:1fr}}
.cr-optin{margin:1.1rem 0;padding:1rem 1.1rem;border:1px solid rgba(122,50,196,.35);border-radius:12px;background:rgba(255,255,255,.04)}
.cr-optin .cr-check{margin:0}
.cr-optin-note{margin:.4rem 0 0;font-size:.85rem;opacity:.85}

/* Meet the Locals */
.mtl-wrap{max-width:1100px;margin:0 auto;padding:1.5rem 1rem 3rem}
.mtl-banner{background:#FDC049;color:#1A0B33;padding:.75rem 1rem;text-align:center;margin:0 0 1.25rem;border-radius:8px}
.mtl-h1{font-family:Fraunces,Georgia,serif;font-size:clamp(1.8rem,4vw,2.6rem);margin:.2rem 0 .6rem;color:#1A0B33}
.mtl-lede{max-width:40rem;margin:0 0 1.4rem;line-height:1.5}
.mtl-figure{margin:0 0 1.6rem;max-width:100%}
.mtl-figure picture{display:block;width:100%}
.mtl-group{display:block;width:100%;height:auto;aspect-ratio:1/1;object-fit:contain;border-radius:16px;background:#1A0B33}
.mtl-group-caption{font-size:.9rem;margin:.5rem 0 0;opacity:.8}
@media (max-width:420px){
  .mtl-wrap{padding:1rem .75rem 2.4rem}
  .mtl-group{border-radius:12px}
}
.mtl-table{width:100%;border-collapse:collapse}
.mtl-table th,.mtl-table td{text-align:left;padding:.7rem .6rem;border-bottom:1px solid rgba(26,11,51,.12);vertical-align:middle}
.mtl-table th{font-size:.8rem;letter-spacing:.04em;text-transform:uppercase}
.mtl-thumb{width:72px;height:72px;object-fit:cover;border-radius:8px;display:block;cursor:pointer;border:0;padding:0;background:none}
.mtl-lightbox{position:fixed;inset:0;background:rgba(10,4,20,.88);display:none;align-items:center;justify-content:center;z-index:80;padding:1.5rem}
.mtl-lightbox.open{display:flex}
.mtl-lightbox img{max-width:min(1254px,96vw);max-height:92vh;border-radius:8px}
.mtl-lightbox button{position:absolute;top:1rem;right:1rem;background:#FDC049;color:#1A0B33;border:0;border-radius:999px;width:2.4rem;height:2.4rem;font-size:1.3rem;cursor:pointer}

/* Admin table */
.cr-admin{overflow-x:auto}
.cr-admin table{width:100%;border-collapse:collapse;font-size:.88rem}
.cr-admin th,.cr-admin td{border-bottom:1px solid #ddd;padding:.45rem .5rem;text-align:left;vertical-align:top;white-space:nowrap}
.cr-admin form{display:inline}
.cr-admin .btn-row{display:flex;flex-wrap:wrap;gap:.35rem}

.cr-btn-blocked{background:#ccc !important;color:#555 !important;border:0;border-radius:999px;padding:.45rem .9rem;cursor:not-allowed;opacity:.85}
