/* Mythica Journey — a self-contained "mist" timeline so it reads as the Akashi
   journey wherever it's placed (BuddyBoss profile tab, a page, etc.). */
.mythica-journey {
	--mj-gold: #e8c47a; --mj-fg: #e6ebfb; --mj-dim: #9fb0e6;
	--mj-card: rgba(20,26,54,.68); --mj-line: rgba(140,170,235,.16);
	max-width: 760px; margin: 0 auto; padding: 24px 16px 40px; border-radius: 16px;
	background: radial-gradient(120% 80% at 50% 0%, #1a1c40 0%, #0b0d20 62%, #08091a 100%);
	color: var(--mj-fg); box-sizing: border-box;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.mythica-journey * { box-sizing: border-box; }
.mythica-journey { position: relative; overflow: hidden; }
.mythica-journey > * { position: relative; z-index: 1; }

/* the member's chosen backdrop: their image, under a scrim so the timeline reads */
.mythica-journey.has-bg { background: #0a0b1e; }
.mythica-journey.has-bg::before {
	content: ''; position: absolute; inset: 0; z-index: 0;
	background-image: var(--mj-bg); background-size: cover; background-position: center;
}
.mythica-journey.has-bg::after {
	content: ''; position: absolute; inset: 0; z-index: 0;
	background: linear-gradient(180deg, rgba(8,9,26,.66) 0%, rgba(8,9,26,.82) 52%, rgba(8,9,26,.92) 100%);
}

/* the owner's backdrop picker */
.mj-backdrop { position: absolute; top: 12px; right: 12px; z-index: 4; text-align: right; }
.mj-bd-toggle {
	background: rgba(10,14,32,.6); border: 1px solid rgba(232,196,122,.35); color: #e8c47a;
	border-radius: 999px; padding: 5px 13px; font-size: 12px; cursor: pointer;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mj-bd-caret { transition: transform .2s ease; display: inline-block; }
.mj-backdrop.is-open .mj-bd-caret { transform: rotate(180deg); }
.mj-bd-panel {
	margin-top: 8px; width: 264px; max-width: 78vw; padding: 12px; border-radius: 12px; text-align: left;
	background: rgba(12,16,36,.95); border: 1px solid rgba(140,170,235,.2); box-shadow: 0 16px 40px rgba(0,0,0,.5);
}
.mj-bd-row { display: flex; gap: 8px; margin-bottom: 8px; }
.mj-bd-btn {
	flex: 1; text-align: center; cursor: pointer; font-size: 12px; padding: 8px 10px; border-radius: 8px;
	border: 1px solid rgba(140,170,235,.28); background: rgba(140,170,235,.08); color: #dbe4fb;
}
.mj-bd-btn:hover { border-color: rgba(232,196,122,.5); }
.mj-bd-hint { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #9fb0e6; margin: 4px 0 6px; }
.mj-bd-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; max-height: 176px; overflow-y: auto; }
.mj-bd-pick {
	aspect-ratio: 1; border: 2px solid transparent; border-radius: 8px; cursor: pointer; padding: 0;
	background: #222 center/cover no-repeat;
}
.mj-bd-pick.is-on { border-color: #e8c47a; }
.mj-backdrop.is-busy { opacity: .6; pointer-events: none; }

.mj-head { text-align: center; margin-bottom: 18px; }
.mj-title { margin: 0; font-family: "Cormorant Garamond", Georgia, serif; font-size: 30px; line-height: 1.1; color: var(--mj-gold); }
.mj-sub { margin: 5px 0 0; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mj-dim); }
.mj-empty { text-align: center; color: var(--mj-dim); padding: 34px 12px; line-height: 1.6; }

.mj-timeline { position: relative; padding-left: 30px; }
.mj-timeline::before {
	content: ''; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 2px;
	background: linear-gradient(180deg, rgba(232,196,122,.55), rgba(159,176,230,.18));
}
.mj-year {
	position: relative; margin: 20px 0 8px -30px; padding-left: 30px;
	font-family: "Cormorant Garamond", Georgia, serif; font-size: 21px; color: var(--mj-gold);
}

.mj-moment { position: relative; margin: 0 0 16px; }
.mj-dot {
	position: absolute; left: -26px; top: 15px; width: 12px; height: 12px; border-radius: 50%;
	background: var(--mj-gold); box-shadow: 0 0 0 4px rgba(232,196,122,.16);
}
.mj-card {
	background: var(--mj-card); border: 1px solid var(--mj-line); border-radius: 12px; padding: 12px 14px;
	-webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.mj-date { font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--mj-dim); margin-bottom: 6px; }

.mj-media { display: flex; gap: 6px; flex-wrap: wrap; margin: 4px 0 9px; }
.mj-media-item img { display: block; height: 96px; width: auto; max-width: 100%; border-radius: 8px; object-fit: cover; }

.mj-text { font-size: 14px; line-height: 1.55; color: var(--mj-fg); }
.mj-text p { margin: 0 0 .5em; }
.mj-text a { color: var(--mj-gold); }

.mj-people { display: flex; align-items: center; gap: 6px; margin-top: 11px; flex-wrap: wrap; }
.mj-people-label { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mj-dim); margin-right: 2px; }
.mj-person { display: inline-block; line-height: 0; }
.mj-person img { width: 30px; height: 30px; border-radius: 50%; display: block; border: 1px solid rgba(232,196,122,.4); }

/* the feed shortcut button + the journey modal */
.mj-feed-open {
	position: fixed; left: 20px; bottom: 20px; z-index: 9990; /* left: clears the chat bubble */
	display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
	padding: 11px 18px; border-radius: 999px; border: 1px solid rgba(232,196,122,.5);
	background: linear-gradient(180deg, rgba(20,26,54,.96), rgba(11,13,32,.96)); color: #e8c47a;
	font-size: 14px; font-weight: 600; box-shadow: 0 10px 30px rgba(0,0,0,.42);
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mj-feed-open .mj-ico { color: #e8c47a; }
.mj-feed-open:hover { border-color: #e8c47a; transform: translateY(-1px); }
.mj-modal { position: fixed; inset: 0; z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 4vh 12px; }
.mj-modal[hidden] { display: none; }
.mj-modal-scrim { position: absolute; inset: 0; background: rgba(4,5,14,.76); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.mj-modal-box { position: relative; z-index: 1; width: 800px; max-width: 96vw; max-height: 92vh; overflow-y: auto; border-radius: 16px; }
.mj-modal-box .mythica-journey { border-radius: 16px; }
.mj-modal-box .mj-backdrop { right: 58px; } /* clear the modal close */
.mj-modal-close {
	position: absolute; top: 12px; right: 12px; z-index: 6; width: 40px; height: 40px; border-radius: 50%;
	border: 0; cursor: pointer; background: rgba(10,14,32,.72); color: #e6ebfb; font-size: 22px; line-height: 40px;
	-webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.mj-loading { padding: 66px 20px; text-align: center; color: #9fb0e6; font-family: "Cormorant Garamond", Georgia, serif; font-style: italic; font-size: 17px; }
body.mj-modal-lock { overflow: hidden; }

/* ===================== the melody spine (kairos beats) ===================== */
/* The moments as a score: time L→R, each beat a moment, the resonant ones haloed.
   Teaches the eye to see the pattern beneath the story. */
.mj-melody { position: relative; margin: 2px 0 14px; border-radius: 10px; padding: 16px 4px 4px;
	background: rgba(9,11,28,.42); border: 1px solid rgba(140,170,235,.12); }
.mj-melody-cap { position: absolute; top: 5px; left: 10px; font-size: 9px; letter-spacing: .12em;
	text-transform: uppercase; color: var(--mj-dim, #9fb0e6); }
.mj-melody svg { display: block; }
.mj-staff { stroke: rgba(159,176,230,.14); stroke-width: 1; }
.mj-melody-line { stroke: rgba(232,196,122,.6); stroke-width: 1.6; }
.mj-beat { fill: #e8c47a; }
.mj-beat--kairos { fill: #f2d79a; }
.mj-beat-halo { fill: none; stroke: rgba(232,196,122,.5); stroke-width: 1; }

/* ===================== the slot primitive (base skin) ===================== */
.mythica-slot { position: relative; }
.mythica-slot__title { font-size: 10px; letter-spacing: .13em; text-transform: uppercase;
	color: var(--mj-dim, #9fb0e6); text-align: center; margin-bottom: 8px; }
.mythica-slot__img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
/* the hieroglyphic base — glyphs inherit currentColor (default gold on the profile) */
.mythica-glyphrow { display: flex; justify-content: center; gap: 12px; color: #e8c47a; }
.mythica-glyphrow__g { line-height: 0; }
.mythica-glyph { display: block; }

/* the activity-feed button */
.mythica-journey-toggle .mj-ico { color: #caa25a; }
.mythica-journey-toggle.is-in { color: #b98f3f; }
.mythica-journey-toggle.is-in .mj-ico { color: #e8c47a; }
.mythica-journey-toggle.is-busy { opacity: .6; pointer-events: none; }
