/* ==========================================================================
   Temple of Nyvorin — Sacred Stylesheet
   Palette → Layout → Auth Gate → Cube → Chambers →
   Per-Chamber → Responsive → Reduced Motion
   ========================================================================== */

/* --------------------------------------------------------------------------
   Alchemical Spectrum Palette + Temple Layout
   -------------------------------------------------------------------------- */

.temple {
    /* --- Palette --- */
    --temple-purple: #b366ff;
    --temple-gold: #d4af37;
    --temple-white: #ffffff;
    --temple-emerald: #00c878;
    --temple-blue: #6495ed;
    --temple-red: #ff6464;
    --temple-void: #020204;
    --temple-text: rgba(255, 255, 255, 0.8);
    --temple-text-muted: rgba(255, 255, 255, 0.4);
    --temple-border: rgba(255, 255, 255, 0.06);

    /* --- Layout --- */
    min-height: 100vh;
    /* Transparent — the temple Bevy canvas provides the void background */
    background: transparent;
    position: relative;
    z-index: 1;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    font-weight: 400;
    color: var(--temple-text);
    padding: 4rem 2rem 6rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.temple > * {
    width: 100%;
    max-width: 900px;
}

/* --------------------------------------------------------------------------
   Temple Loading
   -------------------------------------------------------------------------- */

.temple-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    color: var(--temple-text-muted);
    font-size: 0.95rem;
    font-weight: 300;
    letter-spacing: 0.1em;
    animation: temple-pulse 2.4s ease-in-out infinite;
}

@keyframes temple-pulse {
    0%, 100% { opacity: 0.3; }
    50% { opacity: 0.7; }
}

/* --------------------------------------------------------------------------
   Home State — pointer-events pass through to Bevy canvas for 3D picking
   -------------------------------------------------------------------------- */

.temple.temple-home-state {
    pointer-events: none;
}

/* The #app div sits ABOVE the canvas (z-index:1 > canvas z-index:0) and would
   otherwise swallow all mouse events. When it contains a home-state temple,
   let the events pass through to the canvas so Bevy picking can see them. */
#app:has(.temple.temple-home-state) {
    pointer-events: none;
}

/* When a chamber IS active, restore pointer-events on the container */
.chamber-container {
    pointer-events: auto;
}

/* --------------------------------------------------------------------------
   Chamber Navigation (temporary — will be replaced by 3D cube picking)
   -------------------------------------------------------------------------- */

.chamber-nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    padding: 1rem 0 2rem;
    max-width: 900px;
    width: 100%;
}

.chamber-nav-btn {
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(180, 102, 255, 0.25);
    color: rgba(255, 255, 255, 0.55);
    padding: 0.5rem 0.9rem;
    border-radius: 2px;
    cursor: pointer;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 300;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    transition: all 0.35s ease;
    backdrop-filter: blur(4px);
}

.chamber-nav-btn:hover {
    border-color: rgba(180, 102, 255, 0.5);
    color: rgba(255, 255, 255, 0.85);
}

.chamber-nav-btn.chamber-nav-active {
    border-color: var(--temple-purple);
    color: var(--temple-white);
    box-shadow: 0 0 16px rgba(180, 102, 255, 0.25);
}

.chamber-nav-btn.chamber-wisdom.chamber-nav-active {
    border-color: var(--temple-gold);
    box-shadow: 0 0 16px rgba(212, 175, 55, 0.25);
}
.chamber-nav-btn.chamber-journal.chamber-nav-active {
    border-color: var(--temple-emerald);
    box-shadow: 0 0 16px rgba(0, 200, 120, 0.25);
}
.chamber-nav-btn.chamber-calendar.chamber-nav-active {
    border-color: var(--temple-blue);
    box-shadow: 0 0 16px rgba(100, 149, 237, 0.25);
}
.chamber-nav-btn.chamber-frequency.chamber-nav-active {
    border-color: var(--temple-red);
    box-shadow: 0 0 16px rgba(255, 100, 100, 0.25);
}

/* --------------------------------------------------------------------------
   Auth Gate
   -------------------------------------------------------------------------- */

.auth-gate {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    gap: 2rem;
}

.auth-prompt {
    font-size: clamp(1.2rem, 2.5vw, 1.6rem);
    font-weight: 200;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--temple-text-muted);
    text-align: center;
}

.auth-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--temple-purple);
    color: var(--temple-white);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    padding: 0.75rem 0.5rem;
    width: 100%;
    max-width: 320px;
    outline: none;
    transition: border-color 400ms ease-out;
}

.auth-input::placeholder {
    color: var(--temple-text-muted);
    font-weight: 300;
}

.auth-input:focus {
    border-bottom-color: rgba(179, 102, 255, 0.8); /* --temple-purple @ 80% */
}

.auth-submit {
    background: transparent;
    border: 1px solid var(--temple-purple);
    color: var(--temple-text);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.6rem 2rem;
    cursor: pointer;
    transition: box-shadow 400ms ease-out, border-color 400ms ease-out, color 400ms ease-out;
}

.auth-submit:hover {
    box-shadow: 0 0 16px rgba(179, 102, 255, 0.25);
    border-color: rgba(179, 102, 255, 0.8);
    color: var(--temple-white);
}

.auth-submit:focus-visible {
    outline: 1px solid var(--temple-purple);
    outline-offset: 4px;
}

.auth-toggle {
    background: none;
    border: none;
    color: var(--temple-text-muted);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 300;
    letter-spacing: 0.05em;
    cursor: pointer;
    padding: 0.25rem 0;
    transition: color 200ms ease-out;
}

.auth-toggle:hover {
    color: var(--temple-text);
    text-decoration: underline;
}

.auth-error {
    color: var(--temple-red);
    font-size: 0.85rem;
    font-weight: 300;
}

/* --------------------------------------------------------------------------
   Temple Interior
   -------------------------------------------------------------------------- */

.temple-interior {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

/* --------------------------------------------------------------------------
   Metatron's Cube — Sacred Geometry Navigation
   -------------------------------------------------------------------------- */

.cube-container {
    display: flex;
    justify-content: center;
    max-width: 420px;
    margin: 0 auto;
    padding: 1rem;
}

.metatrons-cube {
    width: 100%;
    filter: drop-shadow(0 0 20px rgba(179, 102, 255, 0.15));
}

/* Connecting lines */
.cube-lines line {
    stroke: rgba(179, 102, 255, 0.12);
    stroke-width: 0.5;
}

/* Outer boundary circle */
.cube-boundary {
    stroke: rgba(179, 102, 255, 0.06);
    fill: none;
    stroke-width: 0.5;
}

/* Node base */
.cube-node {
    cursor: pointer;
    transition: filter 400ms ease-out;
}

.node-outer {
    stroke-width: 1;
    transition: fill 400ms ease-out, stroke 400ms ease-out;
}

.node-inner {
    stroke-width: 0.8;
    transition: fill 400ms ease-out, stroke 400ms ease-out;
}

.node-core {
    stroke: none;
    transition: fill 400ms ease-out;
}

.node-label {
    font-size: 9px;
    letter-spacing: 0.15em;
    font-weight: 300;
    text-anchor: middle;
    font-family: 'Inter', system-ui, sans-serif;
    text-transform: uppercase;
    transition: fill 400ms ease-out;
}

.node-sublabel {
    font-size: 8px;
    letter-spacing: 0.1em;
    text-anchor: middle;
    font-family: 'Inter', system-ui, sans-serif;
    font-weight: 300;
    transition: fill 400ms ease-out;
}

/* --------------------------------------------------------------------------
   Node Color Variants
   -------------------------------------------------------------------------- */

/* Meditation — purple (center) */
.node-meditation .node-outer { stroke: rgba(179, 102, 255, 0.5); fill: rgba(179, 102, 255, 0.08); }
.node-meditation .node-inner { stroke: rgba(179, 102, 255, 0.4); fill: rgba(179, 102, 255, 0.04); }
.node-meditation .node-core  { fill: rgba(179, 102, 255, 0.6); }
.node-meditation .node-label,
.node-meditation .node-sublabel { fill: rgba(255, 255, 255, 0.7); }

/* Wisdom — gold (crown) */
.node-wisdom .node-outer { stroke: rgba(212, 175, 55, 0.4); fill: rgba(212, 175, 55, 0.06); }
.node-wisdom .node-inner { stroke: rgba(212, 175, 55, 0.3); fill: rgba(212, 175, 55, 0.03); }
.node-wisdom .node-core  { fill: rgba(212, 175, 55, 0.5); }
.node-wisdom .node-label,
.node-wisdom .node-sublabel { fill: rgba(212, 175, 55, 0.8); }

/* Affirmation — white */
.node-affirmation .node-outer { stroke: rgba(255, 255, 255, 0.3); fill: rgba(255, 255, 255, 0.04); }
.node-affirmation .node-inner { stroke: rgba(255, 255, 255, 0.2); fill: rgba(255, 255, 255, 0.02); }
.node-affirmation .node-core  { fill: rgba(255, 255, 255, 0.4); }
.node-affirmation .node-label,
.node-affirmation .node-sublabel { fill: rgba(255, 255, 255, 0.6); }

/* Journal — emerald */
.node-journal .node-outer { stroke: rgba(0, 200, 120, 0.35); fill: rgba(0, 200, 120, 0.05); }
.node-journal .node-inner { stroke: rgba(0, 200, 120, 0.25); fill: rgba(0, 200, 120, 0.03); }
.node-journal .node-core  { fill: rgba(0, 200, 120, 0.5); }
.node-journal .node-label,
.node-journal .node-sublabel { fill: rgba(0, 200, 120, 0.7); }

/* Calendar — blue */
.node-calendar .node-outer { stroke: rgba(100, 149, 237, 0.4); fill: rgba(100, 149, 237, 0.06); }
.node-calendar .node-inner { stroke: rgba(100, 149, 237, 0.3); fill: rgba(100, 149, 237, 0.03); }
.node-calendar .node-core  { fill: rgba(100, 149, 237, 0.5); }
.node-calendar .node-label,
.node-calendar .node-sublabel { fill: rgba(100, 149, 237, 0.7); }

/* Frequency — red */
.node-frequency .node-outer { stroke: rgba(255, 100, 100, 0.35); fill: rgba(255, 100, 100, 0.05); }
.node-frequency .node-inner { stroke: rgba(255, 100, 100, 0.25); fill: rgba(255, 100, 100, 0.03); }
.node-frequency .node-core  { fill: rgba(255, 100, 100, 0.5); }
.node-frequency .node-label,
.node-frequency .node-sublabel { fill: rgba(255, 100, 100, 0.7); }

/* Threshold — purple dashed */
.node-threshold .node-outer { stroke: rgba(179, 102, 255, 0.25); stroke-dasharray: 3 3; fill: rgba(179, 102, 255, 0.04); }
.node-threshold .node-inner { stroke: rgba(179, 102, 255, 0.2); stroke-dasharray: 2 2; fill: rgba(179, 102, 255, 0.02); }
.node-threshold .node-core  { fill: rgba(179, 102, 255, 0.35); }
.node-threshold .node-label,
.node-threshold .node-sublabel { fill: rgba(179, 102, 255, 0.5); }

/* --------------------------------------------------------------------------
   Node Active State
   -------------------------------------------------------------------------- */

.cube-node.active {
    filter: drop-shadow(0 0 12px rgba(179, 102, 255, 0.3));
}

.cube-node.active .node-outer { stroke-opacity: 1; fill-opacity: 1; }

/* Active overrides per color */
.node-meditation.active .node-outer { stroke: rgba(179, 102, 255, 0.9); fill: rgba(179, 102, 255, 0.16); }
.node-meditation.active .node-inner { stroke: rgba(179, 102, 255, 0.7); fill: rgba(179, 102, 255, 0.1); }
.node-meditation.active .node-core  { fill: rgba(179, 102, 255, 1); }
.node-meditation.active .node-label,
.node-meditation.active .node-sublabel { fill: rgba(255, 255, 255, 1); }

.node-wisdom.active .node-outer { stroke: rgba(212, 175, 55, 0.8); fill: rgba(212, 175, 55, 0.14); }
.node-wisdom.active .node-inner { stroke: rgba(212, 175, 55, 0.6); fill: rgba(212, 175, 55, 0.08); }
.node-wisdom.active .node-core  { fill: rgba(212, 175, 55, 1); }
.node-wisdom.active .node-label,
.node-wisdom.active .node-sublabel { fill: rgba(212, 175, 55, 1); }

.node-affirmation.active .node-outer { stroke: rgba(255, 255, 255, 0.6); fill: rgba(255, 255, 255, 0.1); }
.node-affirmation.active .node-inner { stroke: rgba(255, 255, 255, 0.45); fill: rgba(255, 255, 255, 0.06); }
.node-affirmation.active .node-core  { fill: rgba(255, 255, 255, 0.9); }
.node-affirmation.active .node-label,
.node-affirmation.active .node-sublabel { fill: rgba(255, 255, 255, 1); }

.node-journal.active .node-outer { stroke: rgba(0, 200, 120, 0.7); fill: rgba(0, 200, 120, 0.12); }
.node-journal.active .node-inner { stroke: rgba(0, 200, 120, 0.5); fill: rgba(0, 200, 120, 0.07); }
.node-journal.active .node-core  { fill: rgba(0, 200, 120, 1); }
.node-journal.active .node-label,
.node-journal.active .node-sublabel { fill: rgba(0, 200, 120, 1); }

.node-calendar.active .node-outer { stroke: rgba(100, 149, 237, 0.8); fill: rgba(100, 149, 237, 0.14); }
.node-calendar.active .node-inner { stroke: rgba(100, 149, 237, 0.6); fill: rgba(100, 149, 237, 0.08); }
.node-calendar.active .node-core  { fill: rgba(100, 149, 237, 1); }
.node-calendar.active .node-label,
.node-calendar.active .node-sublabel { fill: rgba(100, 149, 237, 1); }

.node-frequency.active .node-outer { stroke: rgba(255, 100, 100, 0.7); fill: rgba(255, 100, 100, 0.12); }
.node-frequency.active .node-inner { stroke: rgba(255, 100, 100, 0.5); fill: rgba(255, 100, 100, 0.07); }
.node-frequency.active .node-core  { fill: rgba(255, 100, 100, 1); }
.node-frequency.active .node-label,
.node-frequency.active .node-sublabel { fill: rgba(255, 100, 100, 1); }

.node-threshold.active .node-outer { stroke: rgba(179, 102, 255, 0.6); fill: rgba(179, 102, 255, 0.1); }
.node-threshold.active .node-inner { stroke: rgba(179, 102, 255, 0.45); fill: rgba(179, 102, 255, 0.06); }
.node-threshold.active .node-core  { fill: rgba(179, 102, 255, 0.8); }
.node-threshold.active .node-label,
.node-threshold.active .node-sublabel { fill: rgba(179, 102, 255, 1); }

/* --------------------------------------------------------------------------
   Chamber Container
   -------------------------------------------------------------------------- */

.chamber-container {
    margin-top: 1rem;
    padding: 1.5rem 1.75rem 2rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    background: rgba(2, 2, 8, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 3px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

/* --------------------------------------------------------------------------
   Chamber
   -------------------------------------------------------------------------- */

.chamber-header {
    border-bottom: 1px solid var(--temple-border);
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chamber-header h2 {
    font-size: clamp(1rem, 2vw, 1.3rem);
    font-weight: 200;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--temple-text);
}

.return-to-cube {
    background: transparent;
    border: 1px solid rgba(180, 102, 255, 0.2);
    color: rgba(180, 102, 255, 0.6);
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.4s ease;
    padding: 0;
}

.return-to-cube:hover {
    border-color: rgba(180, 102, 255, 0.6);
    color: var(--temple-purple);
    box-shadow: 0 0 12px rgba(180, 102, 255, 0.2);
}

.chamber-content {
    padding-top: 0.5rem;
}

/* --------------------------------------------------------------------------
   Per-Chamber Color Overrides
   -------------------------------------------------------------------------- */

.chamber-meditation .chamber-header h2 { color: var(--temple-purple); }
.chamber-meditation .chamber-header { border-bottom-color: rgba(179, 102, 255, 0.15); }

.chamber-wisdom .chamber-header h2 { color: var(--temple-gold); }
.chamber-wisdom .chamber-header { border-bottom-color: rgba(212, 175, 55, 0.15); }

.chamber-affirmation .chamber-header h2 { color: var(--temple-white); }
.chamber-affirmation .chamber-header { border-bottom-color: rgba(255, 255, 255, 0.1); }

.chamber-journal .chamber-header h2 { color: var(--temple-emerald); }
.chamber-journal .chamber-header { border-bottom-color: rgba(0, 200, 120, 0.15); }

.chamber-calendar .chamber-header h2 { color: var(--temple-blue); }
.chamber-calendar .chamber-header { border-bottom-color: rgba(100, 149, 237, 0.15); }

.chamber-frequency .chamber-header h2 { color: var(--temple-red); }
.chamber-frequency .chamber-header { border-bottom-color: rgba(255, 100, 100, 0.15); }

.chamber-threshold .chamber-header h2 { color: var(--temple-purple); opacity: 0.7; }
.chamber-threshold .chamber-header { border-bottom-color: rgba(179, 102, 255, 0.1); }

/* --------------------------------------------------------------------------
   Meditation Chamber
   -------------------------------------------------------------------------- */

.meditation-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
}

.flower-of-life {
    width: 200px;
    margin: 0 auto;
    display: block;
}

.flower-circle {
    stroke: rgba(179, 102, 255, 0.25);
    stroke-width: 0.8;
    animation: meditation-breathe 6s ease-in-out infinite;
}

.flower-center {
    stroke: rgba(179, 102, 255, 0.35);
}

@keyframes meditation-breathe {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.9; }
}

.meditation-text {
    text-align: center;
    font-size: 1rem;
    font-weight: 300;
    font-style: italic;
    letter-spacing: 0.08em;
    color: var(--temple-text);
}

.meditation-sub {
    text-align: center;
    font-size: 0.85rem;
    color: var(--temple-text-muted);
    line-height: 1.6;
}

/* Meditation chamber — geometry selector */
.meditation-chamber {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1.5rem 0;
}

.meditation-prompt {
    color: var(--temple-text-muted);
    font-size: 0.95rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 1.5rem;
}

.geometry-selector {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 2rem;
}

.geometry-option {
    background: transparent;
    border: 1px solid rgba(180, 102, 255, 0.15);
    color: rgba(255, 255, 255, 0.55);
    padding: 1rem 1.25rem;
    border-radius: 2px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    min-width: 110px;
    transition: all 0.4s ease;
    font-family: inherit;
    letter-spacing: 1px;
}

.geometry-option:hover {
    border-color: rgba(180, 102, 255, 0.4);
    color: rgba(255, 255, 255, 0.85);
}

.geometry-option.geometry-active {
    border-color: rgba(180, 102, 255, 0.7);
    color: var(--temple-white);
    box-shadow: 0 0 20px rgba(180, 102, 255, 0.2);
}

.geometry-icon {
    font-size: 1.4rem;
    color: var(--temple-purple);
}

.geometry-label {
    font-size: 0.75rem;
    text-transform: uppercase;
}

.meditation-quote {
    color: var(--temple-text);
    font-style: italic;
    font-size: 1.1rem;
    text-align: center;
    margin-top: 1.5rem;
    letter-spacing: 1px;
}

/* --------------------------------------------------------------------------
   Wisdom Chamber — Hermetic Principles
   -------------------------------------------------------------------------- */

.wisdom-scroll {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.emerald-epigraph {
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 300;
    color: var(--temple-text-muted);
    line-height: 1.8;
    border-left: 2px solid rgba(212, 175, 55, 0.2);
    padding-left: 1.5rem;
    margin: 0;
}

.emerald-epigraph cite {
    display: block;
    margin-top: 0.5rem;
    font-size: 0.8rem;
    color: rgba(212, 175, 55, 0.5);
    font-style: normal;
}

.principles-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.principle {
    border-left: 2px solid rgba(212, 175, 55, 0.2);
    padding: 0.75rem 1rem 0.75rem 1.25rem;
    cursor: pointer;
    transition: background 300ms ease-out, border-color 300ms ease-out;
}

.principle:hover {
    background: rgba(212, 175, 55, 0.03);
    border-left-color: rgba(212, 175, 55, 0.4);
}

.principle-expanded {
    background: rgba(212, 175, 55, 0.04);
    border-left-color: rgba(212, 175, 55, 0.5);
}

.principle-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.principle-number {
    font-size: 0.75rem;
    font-weight: 300;
    color: var(--temple-text-muted);
    letter-spacing: 0.15em;
}

.principle-name {
    color: var(--temple-gold);
    font-weight: 300;
    font-size: 0.95rem;
    letter-spacing: 0.05em;
}

.principle-toggle {
    margin-left: auto;
    font-size: 0.7rem;
    color: var(--temple-text-muted);
}

.principle-body {
    margin-top: 1rem;
}

.principle-ancient {
    font-style: italic;
    font-size: 0.9rem;
    color: var(--temple-text);
    line-height: 1.7;
    margin: 0 0 0.5rem 0;
    padding: 0;
}

.principle-source {
    font-size: 0.75rem;
    color: var(--temple-text-muted);
    display: block;
    font-style: normal;
}

.principle-quantum {
    border-top: 1px solid var(--temple-border);
    margin-top: 1rem;
    padding-top: 0.75rem;
}

.quantum-label {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--temple-text-muted);
    margin-bottom: 0.25rem;
}

.quantum-text {
    font-size: 0.9rem;
    color: var(--temple-text);
    font-weight: 300;
    line-height: 1.6;
}

.quantum-source {
    font-size: 0.75rem;
    color: var(--temple-text-muted);
    display: block;
    margin-top: 0.25rem;
    font-style: normal;
}

.wisdom-footer {
    font-size: 0.8rem;
    color: var(--temple-text-muted);
    font-style: italic;
    text-align: center;
}

/* --------------------------------------------------------------------------
   Affirmation Engine
   -------------------------------------------------------------------------- */

.affirmation-engine {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.affirmation-input {
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--temple-purple);
    color: var(--temple-white);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 300;
    padding: 0.6rem 0.25rem;
    width: 100%;
    outline: none;
    transition: border-color 400ms ease-out;
}

.affirmation-input::placeholder {
    color: var(--temple-text-muted);
    font-weight: 300;
}

.affirmation-input:focus {
    border-bottom-color: rgba(179, 102, 255, 0.8);
}

.affirmation-empty {
    font-size: 0.85rem;
    color: var(--temple-text-muted);
    font-style: italic;
}

.affirmations {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.affirmation-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    border: 1px solid var(--temple-border);
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
}

.affirmation-text {
    color: var(--temple-text);
    font-weight: 300;
    flex: 1;
    min-width: 0;
}

.affirmation-state {
    font-size: 0.7rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--temple-text-muted);
    border: 1px solid var(--temple-border);
    padding: 2px 8px;
    border-radius: 3px;
    white-space: nowrap;
}

.affirmation-date {
    font-size: 0.7rem;
    color: var(--temple-text-muted);
    white-space: nowrap;
}

/* Affirmation ritual — inscription + state transition ceremonies */

.affirmation-input {
    transition: border-color 400ms ease-out, box-shadow 300ms ease, opacity 200ms ease;
}

.affirmation-input.affirm-inscribing {
    border-bottom-color: var(--temple-white);
    box-shadow: 0 0 24px rgba(255, 255, 255, 0.3);
    animation: affirm-pulse 200ms ease-out;
}

@keyframes affirm-pulse {
    0% { opacity: 0.3; }
    50% { opacity: 1; }
    100% { opacity: 0.8; }
}

.affirmation-item {
    position: relative;
    transition: all 400ms cubic-bezier(0.4, 0, 0.2, 1);
    border-left: 2px solid transparent;
}

.affirmation-item.affirm-confirmed {
    animation: affirm-confirm 1800ms ease-out forwards;
}

@keyframes affirm-confirm {
    0% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
    20% {
        box-shadow: 0 0 32px rgba(255, 255, 255, 0.5);
    }
    100% {
        box-shadow: 0 0 0 rgba(255, 255, 255, 0);
    }
}

.affirmation-item.affirm-transitioning {
    animation: affirm-transition 400ms cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes affirm-transition {
    0% { transform: scale(1); filter: brightness(1); }
    50% { transform: scale(1.02); filter: brightness(1.3); }
    100% { transform: scale(1); filter: brightness(1); }
}

/* State-specific left border via data attribute */
.affirmation-item[data-state="Active"] {
    border-left-color: rgba(255, 255, 255, 0.4);
}

.affirmation-item[data-state="Manifested"] {
    border-left-color: var(--temple-gold);
}

.affirmation-item[data-state="Released"] {
    border-left-color: rgba(200, 200, 210, 0.3);
}

/* --------------------------------------------------------------------------
   Manifestation Journal
   -------------------------------------------------------------------------- */

.journal {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.journal-input-area {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.journal-textarea {
    background: transparent;
    border: 1px solid var(--temple-border);
    color: var(--temple-white);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 300;
    line-height: 1.6;
    padding: 0.75rem;
    min-height: 80px;
    resize: vertical;
    outline: none;
    transition: border-color 400ms ease-out;
}

.journal-textarea::placeholder {
    color: var(--temple-text-muted);
    font-weight: 300;
}

.journal-textarea:focus {
    border-color: rgba(0, 200, 120, 0.3);
}

.journal-inscribe {
    background: transparent;
    border: 1px solid rgba(0, 200, 120, 0.4); /* emerald to match journal chamber */
    color: var(--temple-text);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.6rem 2rem;
    cursor: pointer;
    align-self: flex-start;
    transition: box-shadow 400ms ease-out, border-color 400ms ease-out, color 400ms ease-out;
}

.journal-inscribe:hover {
    box-shadow: 0 0 16px rgba(0, 200, 120, 0.2);
    border-color: rgba(0, 200, 120, 0.7);
    color: var(--temple-white);
}

.journal-inscribe:focus-visible {
    outline: 1px solid var(--temple-emerald);
    outline-offset: 4px;
}

.journal-empty {
    font-size: 0.85rem;
    color: var(--temple-text-muted);
    font-style: italic;
}

.journal-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.journal-entry {
    border-left: 2px solid rgba(0, 200, 120, 0.3);
    padding: 0.75rem 1rem;
}

.journal-entry-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.journal-entry-date {
    font-size: 0.7rem;
    color: var(--temple-text-muted);
}

.journal-entry-state {
    font-size: 0.65rem;
    font-weight: 400;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--temple-emerald);
    opacity: 0.6;
}

.journal-entry-text {
    font-size: 0.9rem;
    font-weight: 300;
    color: var(--temple-text);
    line-height: 1.6;
}

/* --------------------------------------------------------------------------
   Cosmic Calendar
   -------------------------------------------------------------------------- */

.calendar-content {
    display: flex;
    flex-direction: column;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.calendar-card {
    border: 1px solid var(--temple-border);
    border-radius: 8px;
    padding: 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    transition: border-color 400ms ease-out;
}

.calendar-card:hover {
    border-color: rgba(100, 149, 237, 0.2);
}

.calendar-card-icon {
    font-size: 1.8rem;
    color: var(--temple-blue);
    line-height: 1;
}

.calendar-card-title {
    font-size: 0.9rem;
    font-weight: 400;
    color: var(--temple-text);
    letter-spacing: 0.03em;
    margin: 0;
}

.calendar-card-description {
    font-size: 0.8rem;
    font-weight: 300;
    color: var(--temple-text-muted);
    line-height: 1.5;
}

.calendar-card-status {
    font-size: 0.7rem;
    color: var(--temple-text-muted);
    font-style: italic;
    margin-top: auto;
}

.calendar-value {
    color: var(--temple-blue);
    font-size: 1.1rem;
    font-weight: 500;
    letter-spacing: 1px;
    margin-top: 0.5rem;
}

.calendar-detail {
    color: var(--temple-text-muted);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

.planet-list {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0;
}

.planet-list li {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    padding: 0.2rem 0;
    color: var(--temple-text);
}

.planet-name {
    font-weight: 500;
}

.planet-sign {
    color: var(--temple-text-muted);
    font-style: italic;
}

.moon-icon {
    transition: opacity 2s ease;
}

/* --------------------------------------------------------------------------
   Frequency & Vibration — Solfeggio Grid
   -------------------------------------------------------------------------- */

.frequency-content {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.frequency-quote {
    font-size: 0.9rem;
    font-style: italic;
    font-weight: 300;
    color: var(--temple-text-muted);
    line-height: 1.7;
    border-left: 2px solid rgba(255, 100, 100, 0.2);
    padding-left: 1.25rem;
    margin: 0;
}

.frequency-quote cite {
    display: block;
    margin-top: 0.4rem;
    font-size: 0.75rem;
    color: rgba(255, 100, 100, 0.5);
    font-style: normal;
}

.frequency-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.frequency-btn {
    background: transparent;
    border: 1px solid rgba(255, 100, 100, 0.2);
    border-radius: 8px;
    padding: 1rem 0.75rem;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    transition: border-color 300ms ease-out, box-shadow 300ms ease-out, background 300ms ease-out;
}

.frequency-btn:hover {
    border-color: rgba(255, 100, 100, 0.4);
    background: rgba(255, 100, 100, 0.03);
}

.frequency-btn:focus-visible {
    outline: 1px solid var(--temple-red);
    outline-offset: 2px;
}

.frequency-active {
    border-color: rgba(255, 100, 100, 0.6);
    box-shadow: 0 0 16px rgba(255, 100, 100, 0.15);
    background: rgba(255, 100, 100, 0.05);
}

.frequency-hz {
    display: block;
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--temple-red);
}

.frequency-purpose {
    display: block;
    font-family: inherit;
    font-size: 0.7rem;
    font-weight: 300;
    color: var(--temple-text-muted);
    text-align: center;
    line-height: 1.3;
}

.frequency-status {
    font-size: 0.85rem;
    color: var(--temple-text-muted);
    text-align: center;
    font-style: italic;
}

/* --------------------------------------------------------------------------
   Hemi-Sync panel — headphone gate + brainwave presets + fine-tune slider
   -------------------------------------------------------------------------- */

.hemisync-panel {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--temple-border);
}

.hemisync-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.5rem;
}

.hemisync-toggle {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--temple-text-muted);
    cursor: pointer;
}

.hemisync-toggle input[type="checkbox"] {
    accent-color: var(--temple-purple);
    width: 16px;
    height: 16px;
}

.hemisync-controls {
    transition: opacity 0.3s ease;
}

.hemisync-controls[aria-disabled="true"] {
    opacity: 0.3;
    pointer-events: none;
}

.hemisync-presets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.hemisync-preset-btn {
    flex: 1 1 auto;
    min-width: 80px;
    padding: 0.5rem 0.75rem;
    background: transparent;
    border: 1px solid var(--temple-border);
    color: var(--temple-text-muted);
    font-family: inherit;
    font-size: 0.7rem;
    text-align: center;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.hemisync-preset-btn:hover {
    border-color: var(--temple-purple);
    color: var(--temple-text);
}

.hemisync-preset-active {
    border-color: var(--temple-purple);
    color: var(--temple-white);
    box-shadow: 0 0 12px rgba(179, 102, 255, 0.2);
}

.preset-label {
    font-weight: 500;
    font-size: 0.75rem;
}

.preset-hz {
    font-size: 0.6rem;
    color: var(--temple-text-muted);
}

.hemisync-slider-row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.hemisync-slider {
    flex: 1;
    height: 4px;
    accent-color: var(--temple-purple);
    cursor: pointer;
}

.hemisync-hz-readout {
    font-size: 0.85rem;
    font-family: 'Inter', monospace;
    color: var(--temple-text);
    min-width: 4rem;
    text-align: right;
}

/* Efficacy badges on Solfeggio buttons */
.frequency-btn {
    position: relative;
}

.frequency-efficacy-badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 0.55rem;
    line-height: 1;
}

.efficacy-borderline {
    color: #d4a017;
}

.efficacy-half-carrier {
    color: #d4a017;
    font-weight: 700;
}

/* --------------------------------------------------------------------------
   The Threshold — Gateway
   -------------------------------------------------------------------------- */

.threshold-content {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
}

.threshold-text {
    font-size: 0.95rem;
    font-weight: 300;
    font-style: italic;
    color: var(--temple-text);
    line-height: 1.7;
    max-width: 500px;
}

.threshold-sub {
    font-size: 0.85rem;
    font-weight: 300;
    color: var(--temple-text-muted);
    letter-spacing: 0.1em;
}

.threshold-exit {
    background: transparent;
    border: 1px solid var(--temple-purple);
    color: var(--temple-text);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.6rem 2rem;
    cursor: pointer;
    transition: box-shadow 400ms ease-out, border-color 400ms ease-out, color 400ms ease-out;
}

.threshold-exit:hover {
    box-shadow: 0 0 16px rgba(179, 102, 255, 0.25);
    border-color: rgba(179, 102, 255, 0.8);
    color: var(--temple-white);
}

.threshold-exit:focus-visible {
    outline: 1px solid var(--temple-purple);
    outline-offset: 4px;
}

.threshold-settings {
    margin-top: 2rem;
    border-top: 1px solid var(--temple-border);
    padding-top: 2rem;
    width: 100%;
}

.threshold-settings h3 {
    font-size: 0.8rem;
    font-weight: 400;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--temple-text-muted);
    margin-bottom: 1rem;
}

.threshold-placeholder {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--temple-text-muted);
    opacity: 0.6;
}

/* --------------------------------------------------------------------------
   Responsive
   -------------------------------------------------------------------------- */

@media (max-width: 768px) {
    .temple {
        padding: 2rem 1rem 3rem;
    }

    .cube-container {
        max-width: 300px;
    }

    /* Auth/Unlock controls — ensure 44px touch target minimum */
    .auth-input {
        min-height: 44px;
        width: 100%;
        max-width: 320px;
        font-size: 16px; /* prevents iOS zoom on focus */
    }

    .auth-submit {
        min-height: 44px;
        padding: 0.75rem 2rem;
        font-size: 0.95rem;
    }

    .auth-toggle {
        min-height: 44px;
        padding: 0.75rem 0;
    }

    /* Chamber layout — tighter on mobile */
    .chamber-container {
        padding: 0 0.25rem;
    }

    .chamber-header {
        padding: 0.75rem 0;
    }

    .chamber-header h2 {
        font-size: clamp(1.2rem, 5vw, 1.6rem);
    }

    .chamber-intro {
        font-size: 0.9rem;
    }

    /* Calendar — single column on narrow viewports */
    .calendar-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }

    /* Hemi-Sync presets — 2 rows x 3 columns on mobile */
    .hemisync-presets {
        gap: 0.35rem;
    }

    .hemisync-preset-btn {
        flex: 1 1 30%;
        min-width: 0;
        padding: 0.4rem 0.5rem;
        font-size: 0.65rem;
    }

    .hemisync-slider-row {
        gap: 0.5rem;
    }

    .hemisync-hz-readout {
        font-size: 0.75rem;
        min-width: 3.5rem;
    }

    /* Frequency grid — 2 columns with larger touch targets */
    .frequency-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    /* Meditation geometry selector — 5 options wrap to 2 rows on mobile */
    .geometry-selector {
        gap: 0.5rem;
    }

    .geometry-option {
        min-width: 0;
        flex: 1 1 30%;
        padding: 0.75rem 0.5rem;
    }

    .frequency-btn {
        min-height: 60px;
        font-size: 0.85rem;
    }

    /* Auth prompt — scale down */
    .auth-prompt {
        font-size: clamp(1rem, 2vw, 1.3rem);
    }

    /* Chamber nav buttons — keep touchable */
    .chamber-nav-btn {
        min-height: 44px;
        padding: 0.6rem 1rem;
    }

    /* Journal inputs — comfortable on mobile */
    .affirmation-input,
    .journal-textarea {
        font-size: 16px; /* prevents iOS zoom */
    }

    .journal-inscribe,
    .affirmation-submit {
        min-height: 44px;
    }
}

/* --------------------------------------------------------------------------
   Reduced Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
    .flower-circle {
        animation: none;
        opacity: 0.7;
    }

    .temple-loading {
        animation: none;
        opacity: 0.5;
    }

    .cube-node,
    .node-outer,
    .node-inner,
    .node-core,
    .node-label,
    .node-sublabel,
    .auth-input,
    .auth-submit,
    .auth-toggle,
    .principle,
    .affirmation-input,
    .journal-textarea,
    .journal-inscribe,
    .calendar-card,
    .frequency-btn,
    .threshold-exit,
    .hemisync-controls,
    .hemisync-preset-btn {
        transition: none;
    }

    .affirmation-input.affirm-inscribing,
    .affirmation-item,
    .affirmation-item.affirm-confirmed,
    .affirmation-item.affirm-transitioning {
        animation: none !important;
        transition: none !important;
    }
}

/* --------------------------------------------------------------------------
   Entry Transition -- 3-phase CSS/SVG bridge animation
   Mounted at App level, outside the .temple scope, so the --temple-void
   palette variable isn't in scope. Void color is inlined.

   Phase 1 (0-400ms)    Dissolve  -- overlay fades in over portfolio
   Phase 2 (400-1000ms) Bridge    -- sigil contracts to a bright point
   Phase 3 (1000-1800ms) Emergence -- point expands, overlay fades to temple
   -------------------------------------------------------------------------- */

.temple-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 9999;
    background: #020204;
    pointer-events: none;
    opacity: 0;
    transition: opacity 400ms ease-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.transition-sigil {
    width: 200px;
    height: 200px;
    opacity: 0;
    transform: scale(1);
    transition: all 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Phase 1: Dissolve (0-400ms) -- overlay fades in */
.temple-transition.transition-dissolve {
    opacity: 1;
}

/* Phase 2: Bridge (400-1000ms) -- sigil contracts to a point, brightens */
.temple-transition.transition-bridge {
    opacity: 1;
}

.temple-transition.transition-bridge .transition-sigil {
    opacity: 1;
    transform: scale(0.05);
    filter: brightness(3);
}

/* Phase 3: Emergence (1000-1800ms) -- overlay fades, point expands outward */
.temple-transition.transition-emergence {
    opacity: 0;
    transition: opacity 800ms ease-in;
}

.temple-transition.transition-emergence .transition-sigil {
    opacity: 0;
    transform: scale(2.5);
    transition: all 800ms cubic-bezier(0.4, 0, 0.2, 1);
}

/* Complete: fully removed from flow */
.temple-transition.transition-complete {
    display: none !important;
}

/* --------------------------------------------------------------------------
   Cube Hover Label (floating tooltip when raycasting hits a node)
   -------------------------------------------------------------------------- */

.cube-hover-label {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, 120%);
    color: rgba(255, 255, 255, 0.75);
    font-size: 0.8rem;
    font-weight: 300;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    pointer-events: none;
    text-shadow: 0 0 20px rgba(180, 102, 255, 0.5);
    transition: opacity 0.3s ease;
    z-index: 100;
}

@media (prefers-reduced-motion: reduce) {
    .temple-transition,
    .transition-sigil {
        transition: opacity 200ms linear !important;
    }
    .temple-transition.transition-bridge .transition-sigil,
    .temple-transition.transition-emergence .transition-sigil {
        transform: none !important;
        filter: none !important;
    }
}

/* --------------------------------------------------------------------------
   Citrinitas — affirmation particle dissolve
   -------------------------------------------------------------------------- */

.affirmation-input-area {
    position: relative;
}

.affirm-dissolve-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: visible;
}

.affirm-dissolve-text {
    position: absolute;
    top: 0.6rem;
    left: 0.25rem;
    color: var(--temple-white);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 300;
    white-space: nowrap;
    pointer-events: none;
}

@keyframes affirm-dissolve {
    0%   { opacity: 1; filter: blur(0px); transform: translateY(0); letter-spacing: 0.02em; }
    70%  { opacity: 0.6; filter: blur(1px); transform: translateY(-4px); letter-spacing: 0.2em; }
    100% { opacity: 0; filter: blur(4px); transform: translateY(-12px); letter-spacing: 0.6em; }
}

.affirm-dissolving {
    animation: affirm-dissolve 800ms ease-out forwards;
    display: inline-block;
    will-change: opacity, filter, transform, letter-spacing;
}

.affirm-particle {
    position: absolute;
    width: 3px; height: 3px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(212, 175, 55, 0.9) 0%, rgba(212, 175, 55, 0) 70%);
    pointer-events: none;
    will-change: transform, opacity;
    animation: affirm-particle-flow 900ms ease-out forwards;
}

@keyframes affirm-particle-flow {
    0%   { opacity: 0.9; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--particle-dx, 0), var(--particle-dy, -60px)) scale(0.2); }
}

@media (prefers-reduced-motion: reduce) {
    .affirm-dissolving { animation: none; opacity: 0; }
    .affirm-particle   { display: none; }
}

/* --- Rubedo II: Threshold closing ritual --- */
.threshold-close-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 2rem 0;
    height: 240px;
}
.breathing-ring {
    position: absolute;
    width: 240px;
    height: 240px;
    opacity: 0;
    pointer-events: none;
    transform-origin: center;
    transition: opacity 300ms ease-out, transform 300ms ease-out;
}
.breathing-ring.ring-inhaling {
    opacity: 1;
    animation: ring-inhale 3000ms ease-in-out forwards;
}
.breathing-ring.ring-exhaling {
    opacity: 1;
    animation: ring-exhale 3000ms ease-in-out forwards;
}
.breathing-ring.ring-completing {
    opacity: 1;
    animation: ring-flare 200ms ease-out forwards;
}
.breathing-ring.ring-cancelling {
    opacity: 0;
    transform: scale(1.0);
    transition: opacity 300ms ease-out, transform 300ms ease-out;
}
@keyframes ring-inhale  { from { transform: scale(1.0); opacity: 0.4; } to { transform: scale(1.6); opacity: 1.0; } }
@keyframes ring-exhale  { from { transform: scale(1.6); opacity: 1.0; } to { transform: scale(1.0); opacity: 0.3; } }
@keyframes ring-flare   { from { transform: scale(1.0); opacity: 0.3; } to { transform: scale(1.8); opacity: 1.0; filter: drop-shadow(0 0 24px rgba(255, 195, 60, 0.9)); } }

.threshold-close-ritual {
    font-size: 1.15rem;
    padding: 1rem 2rem;
    position: relative;
    z-index: 2;
    background: rgba(40, 30, 60, 0.8);
    color: rgba(255, 215, 0, 0.9);
    border: 1px solid rgba(255, 195, 60, 0.5);
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    font-family: inherit;
    letter-spacing: 0.05em;
    transition: all 200ms ease-out;
}
.threshold-close-ritual:hover {
    color: rgba(255, 225, 100, 1);
    border-color: rgba(255, 215, 0, 0.8);
}

.threshold-direct-exit {
    display: inline-block;
    margin-top: 1rem;
    color: rgba(200, 190, 220, 0.5);
    font-size: 0.85rem;
    text-decoration: none;
    cursor: pointer;
    transition: color 200ms ease-out;
}
.threshold-direct-exit:hover {
    color: rgba(220, 210, 240, 0.8);
}

.blessing-inhale, .blessing-exhale {
    color: rgba(255, 215, 0, 0.8);
    font-style: italic;
    text-align: center;
    margin: 1rem 0;
    clip-path: inset(0 100% 0 0);
    transition: clip-path 300ms ease-out, opacity 200ms ease-out;
    min-height: 1.4em;
}
.blessing-inhale.blessing-revealing { animation: blessing-reveal 3000ms linear forwards; }
.blessing-exhale.blessing-revealing { animation: blessing-reveal 3000ms linear forwards; }
.blessing-inhale.blessing-fading, .blessing-exhale.blessing-fading { opacity: 0; }
@keyframes blessing-reveal { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }
