.ksf-ritual { max-width:760px; margin:2rem auto; padding:2rem; text-align:center; border:1px solid rgba(201,164,92,.35); border-radius:1.25rem; background:radial-gradient(circle at 50% 20%,rgba(201,164,92,.16),transparent 55%),#191612; color:#f2ebdd; }
.ksf-vessel { display:grid; place-items:center; width:130px; height:130px; margin:1rem auto; border:1px solid #c9a45c; border-radius:50%; color:#e6c783; font-size:4rem; box-shadow:0 0 35px rgba(201,164,92,.15),inset 0 0 25px rgba(201,164,92,.1); }
.ksf-stages { display:flex; flex-wrap:wrap; justify-content:center; gap:.75rem; margin:1.25rem 0; color:#e6c783; }
.ksf-stages span { padding:.4rem .7rem; border:1px solid rgba(201,164,92,.3); border-radius:999px; }
.ksf-progress { height:9px; overflow:hidden; margin:1rem 0; border-radius:99px; background:#393127; }
.ksf-progress span { display:block; width:0; height:100%; background:linear-gradient(90deg,#174a3a,#c9a45c); transition:width .15s linear; }
.ksf-ritual button,.ksf-library-search button { padding:.8rem 1.2rem; border:0; border-radius:999px; background:#c9a45c; color:#11100e; font-weight:700; cursor:pointer; }
.ksf-ritual button:focus-visible,.ksf-library-search button:focus-visible { outline:3px solid #f2ebdd; outline-offset:3px; }
.ksf-library-search { max-width:760px; margin:2rem auto; }
.ksf-library-search label { display:block; margin-bottom:.5rem; color:#e6c783; font-weight:700; }
.ksf-library-search div { display:flex; gap:.5rem; }
.ksf-library-search input { flex:1; min-width:0; padding:.8rem 1rem; border:1px solid rgba(201,164,92,.5); border-radius:.6rem; background:#191612; color:#f2ebdd; }
.ksf-resource-card { padding:1rem 1.25rem; margin:1rem 0; border:1px solid rgba(201,164,92,.25); border-radius:.8rem; background:#191612; }
@media(max-width:520px) { .ksf-ritual {padding:1rem;} .ksf-library-search div {flex-direction:column;} }

.ksf-reflection{max-width:760px;margin:2rem auto;padding:1.5rem;border:1px solid rgba(201,164,92,.3);border-radius:1rem;background:#191612;color:#f2ebdd}.ksf-reflection label{display:block;margin-bottom:.6rem;color:#e6c783;font-weight:700}.ksf-reflection textarea{display:block;width:100%;box-sizing:border-box;padding:1rem;border:1px solid rgba(201,164,92,.4);border-radius:.6rem;background:#11100e;color:#f2ebdd;font:inherit}.ksf-reflection-actions{display:flex;flex-wrap:wrap;align-items:center;gap:.7rem;margin-top:.8rem}.ksf-reflection button{padding:.65rem 1rem;border:0;border-radius:999px;background:#c9a45c;color:#11100e;font-weight:700;cursor:pointer}.ksf-reflection-note{font-size:.82rem;opacity:.75}

.ksf-v5{--phase:#888;max-width:960px;background:radial-gradient(ellipse at center,#28201a,#080707 70%);border:1px solid #cba54d;padding:clamp(12px,3vw,40px)}.ksf-v5[data-stage="1"]{--phase:#e5edf5}.ksf-v5[data-stage="2"]{--phase:#ffcf47}.ksf-v5[data-stage="3"]{--phase:#ff633e}.ksf-orbit{position:relative;max-width:580px;aspect-ratio:1;margin:auto;display:grid;place-items:center}.ksf-v5 .ksf-hold{width:56%;aspect-ratio:1;padding:0;background:#080809;border:2px solid #d9ad51;z-index:2;color:#e8bd60;touch-action:none;user-select:none;box-shadow:0 0 35px var(--phase);transition:box-shadow .5s}.ksf-hold svg{width:100%;display:block;fill:none;stroke:currentColor;stroke-width:1.1}.ksf-phase{position:absolute;font-size:clamp(.65rem,2vw,1rem);color:#d9bc7a;z-index:3;text-align:center}.ksf-phase small{display:block}.phase-0{top:3%;left:50%;transform:translateX(-50%)}.phase-1{right:0;top:46%}.phase-2{bottom:3%;left:50%;transform:translateX(-50%)}.phase-3{left:0;top:46%}.ksf-v5[data-stage="0"] .phase-0,.ksf-v5[data-stage="1"] .phase-1,.ksf-v5[data-stage="2"] .phase-2,.ksf-v5[data-stage="3"] .phase-3{color:#fff;text-shadow:0 0 12px var(--phase)}.ksf-aura{position:absolute;inset:14%;border-radius:50%;background:repeating-conic-gradient(from 0deg,transparent 0deg,var(--phase) 12deg,transparent 35deg);filter:blur(18px);opacity:.35;animation:ksf-spin 16s linear infinite}.ksf-v5[data-stage="0"] .ksf-aura{filter:blur(24px);opacity:.18}.ksf-v5[data-complete="true"] .ksf-hold{color:#ffe59b;box-shadow:0 0 60px #ffb52b}.ksf-v5 .ksf-progress span{background:linear-gradient(90deg,#555,#ddd,#e8b52f,#b63b24)}.ksf-complete[hidden]{display:none}.ksf-complete a{display:inline-block;margin:.5rem}.ksf-metal{color:#f4d27a}@keyframes ksf-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.ksf-aura{animation:none}.ksf-v5 *{transition:none!important}}

.ksf-v5 .ksf-hold{touch-action:manipulation;color:var(--phase)}.ksf-v5 .ksf-hold[aria-disabled="true"]{cursor:default}.ksf-v5 [hidden]{display:none!important}

.ksf-v5 .ksf-hold{touch-action:none;-webkit-touch-callout:none;cursor:pointer}.ksf-v5 .ksf-hold:focus-visible{outline:3px solid #fff0b0;outline-offset:5px}.ksf-v5 .ksf-progress span{transition:none}
