/* Guided Meditations - styles. No web fonts or images; uses the theme's font. */

/* ------------------------------------------------------------------ *
 * Theme tokens
 * ------------------------------------------------------------------ */
.gmx-root {
	--gmx-accent: #a78bfa;
	--gmx-bg: #110f26;
	--gmx-surface: #1b1838;
	--gmx-surface-2: #252149;
	--gmx-border: rgba(255, 255, 255, 0.12);
	--gmx-text: #ece9ff;
	--gmx-muted: #a8a3c7;
	--gmx-good: #34d399;
	--gmx-warn: #f87171;
	--gmx-stage: radial-gradient(ellipse at 50% 40%, #1f1b44 0%, #0b0a1c 75%);
}
.gmx-root.gmx-theme-light {
	--gmx-bg: #f6f4ff;
	--gmx-surface: #ffffff;
	--gmx-surface-2: #efebff;
	--gmx-border: rgba(31, 27, 58, 0.13);
	--gmx-text: #1f1b3a;
	--gmx-muted: #5d587a;
	--gmx-good: #059669;
	--gmx-warn: #dc2626;
	--gmx-stage: radial-gradient(ellipse at 50% 40%, #ffffff 0%, #e9e4fb 80%);
}

/* ------------------------------------------------------------------ *
 * Divi-proof reset. Divi (and Divi Builder on other themes) styles
 * p, ol, headings and links inside modules, sometimes with ID-level
 * selectors, so the essentials are pinned here.
 * ------------------------------------------------------------------ */
.gmx-root, .gmx-root * { box-sizing: border-box !important; }
.gmx-root p, .gmx-root ol, .gmx-root li, .gmx-root dl, .gmx-root dt, .gmx-root dd,
.gmx-root h2, .gmx-root h3 {
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	line-height: 1.5 !important;
	letter-spacing: normal;
	text-transform: none;
}
.gmx-root h2, .gmx-root h3 { color: var(--gmx-text) !important; font-family: inherit !important; }
.gmx-root button { font-family: inherit !important; text-transform: none !important; letter-spacing: normal !important; line-height: 1.2 !important; box-shadow: none; }
.gmx-root button::after, .gmx-root .gmx-btn::after { content: none !important; display: none !important; } /* Divi button arrow icons */
.gmx-root a.gmx-btn { color: var(--gmx-text) !important; text-decoration: none !important; }
.gmx-root a.gmx-btn-primary { color: #fff !important; }

/* ------------------------------------------------------------------ *
 * Card + layout
 * ------------------------------------------------------------------ */
.gmx-root {
	max-width: 760px;
	margin: 1.5rem auto;
	color: var(--gmx-text);
	font-family: inherit;
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}
.gmx-card {
	padding: clamp(1.1rem, 3vw, 2rem);
	border-radius: 22px;
	background: var(--gmx-bg);
	border: 1px solid var(--gmx-border);
}
.gmx-root .gmx-h { font-size: clamp(1.35rem, 3.2vw, 1.75rem) !important; font-weight: 600 !important; }
.gmx-root .gmx-lead { color: var(--gmx-muted); font-size: 1rem; max-width: 60ch; margin-top: 0.4rem !important; }
.gmx-root .gmx-footnote { margin-top: 1.1rem !important; font-size: 0.8rem; color: var(--gmx-muted); }
.gmx-root .gmx-h:focus { outline: none; }

.gmx-row { display: flex; flex-wrap: wrap; gap: 0.6rem; justify-content: center; margin-top: 1.2rem; }

/* ------------------------------------------------------------------ *
 * Buttons
 * ------------------------------------------------------------------ */
.gmx-root .gmx-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	min-height: 46px;
	padding: 0.65rem 1.3rem !important;
	border-radius: 999px !important;
	border: 1px solid var(--gmx-border) !important;
	background: var(--gmx-surface) !important;
	color: var(--gmx-text) !important;
	font-size: 0.97rem !important;
	font-weight: 500 !important;
	cursor: pointer;
	transition: border-color 0.2s, transform 0.1s, filter 0.2s;
	-webkit-tap-highlight-color: transparent;
}
.gmx-root .gmx-btn:hover { border-color: var(--gmx-accent) !important; }
.gmx-root .gmx-btn:active { transform: scale(0.97); }
.gmx-root .gmx-btn:focus-visible, .gmx-root .gmx-tile:focus-visible, .gmx-root .gmx-cell:focus-visible, .gmx-root .gmx-breath-circle:focus-visible {
	outline: 3px solid var(--gmx-accent) !important;
	outline-offset: 3px;
}
.gmx-root .gmx-btn-primary {
	background: var(--gmx-accent) !important;
	border-color: var(--gmx-accent) !important;
	color: #fff !important;
	font-weight: 600 !important;
}
.gmx-root .gmx-btn-primary:hover { filter: brightness(1.08); }
.gmx-root .gmx-btn-quiet { background: transparent !important; color: var(--gmx-muted) !important; }
.gmx-root .gmx-wide { min-width: min(100%, 15rem); }

.gmx-root .gmx-back {
	min-height: 36px;
	padding: 0.3rem 0.8rem !important;
	margin-bottom: 0.8rem;
	font-size: 0.85rem !important;
	background: transparent !important;
	color: var(--gmx-muted) !important;
}

/* ------------------------------------------------------------------ *
 * Menu tiles
 * ------------------------------------------------------------------ */
.gmx-menu {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
	gap: 0.8rem;
	margin-top: 1.4rem;
}
.gmx-root .gmx-tile {
	display: flex;
	gap: 0.9rem;
	align-items: flex-start;
	width: 100%;
	padding: 1rem !important;
	border-radius: 16px !important;
	border: 1px solid var(--gmx-border) !important;
	background: var(--gmx-surface) !important;
	color: var(--gmx-text) !important;
	text-align: left;
	cursor: pointer;
	transition: border-color 0.2s, transform 0.15s;
}
.gmx-root .gmx-tile:hover { border-color: var(--gmx-accent) !important; transform: translateY(-1px); }
.gmx-tile-text { display: flex; flex-direction: column; gap: 0.25rem; min-width: 0; }
.gmx-tile-title { font-weight: 600; font-size: 1.05rem; }
.gmx-tile-blurb { font-size: 0.88rem; color: var(--gmx-muted); line-height: 1.45; }
.gmx-tile-meta { display: flex; flex-wrap: wrap; gap: 0.3rem 0.8rem; margin-top: 0.2rem; font-size: 0.78rem; color: var(--gmx-muted); }
.gmx-tile-best { color: var(--gmx-accent); font-weight: 600; }


/* ------------------------------------------------------------------ *
 * Guided Meditations
 * ------------------------------------------------------------------ */
.gmx-tile-icon {
	position: relative; flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
	background: color-mix(in srgb, var(--gmx-accent) 18%, transparent);
}
.gmx-tile-icon::before, .gmx-tile-icon::after { content: ""; position: absolute; }
.gmx-icon-scan::before { left: 19px; top: 8px; width: 10px; height: 10px; border-radius: 50%; background: var(--gmx-accent); box-shadow: 0 0 0 0 transparent; }
.gmx-icon-scan::after { left: 16px; top: 20px; width: 16px; height: 20px; border-radius: 8px 8px 4px 4px; background: color-mix(in srgb, var(--gmx-accent) 60%, transparent); }
.gmx-icon-senses::before { left: 10px; top: 21px; width: 6px; height: 6px; border-radius: 50%; background: var(--gmx-accent); box-shadow: 7px 0 0 var(--gmx-accent), 14px 0 0 var(--gmx-accent), 21px 0 0 color-mix(in srgb, var(--gmx-accent) 50%, transparent), 28px 0 0 color-mix(in srgb, var(--gmx-accent) 30%, transparent); }
.gmx-icon-leaves::before { left: 8px; top: 30px; width: 32px; height: 6px; border-radius: 3px; background: #2f6b78; }
.gmx-icon-leaves::after { left: 16px; top: 18px; width: 16px; height: 10px; border-radius: 50% 0; background: #9cc97e; transform: rotate(-12deg); }
.gmx-icon-kindness::before { inset: 10px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--gmx-accent) 50%, transparent); }
.gmx-icon-kindness::after { inset: 18px; border-radius: 50%; background: #fde7d6; box-shadow: 0 0 10px #fde7d6; }
.gmx-icon-place::before { left: 8px; right: 8px; top: 12px; height: 18px; border-radius: 6px 6px 0 0; background: linear-gradient(#e89b6f, #3b3f7a); }
.gmx-icon-place::after { left: 8px; right: 8px; top: 30px; height: 7px; background: #2d4a2a; border-radius: 0 0 6px 6px; }
.gmx-icon-release::before { inset: 17px; border-radius: 50%; background: var(--gmx-accent); }
.gmx-icon-release::after { inset: 9px; border-radius: 50%; border: 2px dashed color-mix(in srgb, var(--gmx-accent) 55%, transparent); }

.gmx-root .gmx-streak { display: inline-block; margin-top: 0.8rem !important; padding: 0.3rem 0.8rem !important; border-radius: 999px !important; background: color-mix(in srgb, var(--gmx-accent) 16%, transparent); font-size: 0.85rem; }
.gmx-tile-done { color: var(--gmx-accent); font-weight: 600; }

/* Intro */
.gmx-root .gmx-caution { margin-top: 0.8rem !important; padding: 0.7rem 0.9rem !important; border-radius: 12px !important; border: 1px solid color-mix(in srgb, #f59e0b 45%, transparent) !important; background: color-mix(in srgb, #f59e0b 10%, transparent); font-size: 0.9rem; }
.gmx-root .gmx-how { margin: 1rem 0 0 !important; padding: 0 0 0 1.2rem !important; list-style: disc !important; color: var(--gmx-muted); }
.gmx-root .gmx-how li { margin: 0 0 0.35rem !important; padding: 0 !important; list-style: disc !important; font-size: 0.95rem; }
.gmx-opts { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 1.2rem; }

/* Stage */
.gmx-stage {
	position: relative;
	min-height: clamp(360px, 60vh, 480px);
	border-radius: 18px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 2.5rem 1.25rem 2rem;
	isolation: isolate;
}
.gmx-ambient {
	--gmx-bg-a: #221c4a; --gmx-bg-b: #0b0a1c;
	position: absolute; inset: 0; z-index: -2;
	background: radial-gradient(ellipse at 50% 35%, var(--gmx-bg-a) 0%, var(--gmx-bg-b) 75%), #0b0a1c;
	transition: background 3s ease;
}
.gmx-theme-light .gmx-ambient { --gmx-bg-a: #ffffff; --gmx-bg-b: #e6e0fa; }
.gmx-orb {
	position: absolute; left: 50%; top: 42%; z-index: -1;
	width: min(260px, 56vw); height: min(260px, 56vw); border-radius: 50%;
	background: radial-gradient(circle, color-mix(in srgb, var(--gmx-accent) 70%, #fff) 0%, color-mix(in srgb, var(--gmx-accent) 35%, transparent) 45%, transparent 70%);
	transform: translate(-50%, -50%) scale(0.6);
	pointer-events: none;
}
.gmx-layers { position: absolute; inset: 0; z-index: -1; }
.gmx-canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gmx-caption {
	max-width: 30ch;
	text-align: center;
	font-size: clamp(1.25rem, 3.6vw, 1.75rem);
	line-height: 1.45;
	font-weight: 400;
	color: #fff;
	text-shadow: 0 2px 18px rgba(0, 0, 0, 0.55);
	min-height: 2.9em;
	display: flex; align-items: center; justify-content: center;
}
.gmx-theme-light .gmx-caption { color: var(--gmx-text); text-shadow: none; }
.gmx-caption.is-in { animation: gmx-in 1.1s ease both; }
@keyframes gmx-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.gmx-sub { min-height: 1.4em; margin-top: 0.5rem; max-width: 40ch; text-align: center; font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); font-variant-numeric: tabular-nums; }
.gmx-theme-light .gmx-sub { color: var(--gmx-muted); }
.gmx-panel { width: 100%; max-width: 560px; margin-top: 1rem; }
.gmx-panel:empty { display: none; }
.gmx-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255, 255, 255, 0.08); }
.gmx-progress span { display: block; height: 100%; width: 0; background: var(--gmx-accent); transition: width 0.8s ease; }
.gmx-paused { position: absolute; top: 12px; right: 14px; font-size: 0.8rem; color: rgba(255, 255, 255, 0.75); display: none; }
.gmx-stage.is-paused .gmx-paused { display: block; }
.gmx-stage.is-paused .gmx-caption { opacity: 0.55; }
.gmx-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin-top: 1rem; }
.gmx-root .gmx-btn[hidden] { display: none !important; }

/* Body scan: figure on the left on wide screens, behind text on narrow */
.gmx-figure { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0.9; }
.gmx-figure svg { height: 88%; max-height: 420px; width: auto; }
.gmx-part { fill: rgba(255, 255, 255, 0.07); stroke: rgba(255, 255, 255, 0.28); stroke-width: 1.2; transition: fill 1.2s ease, stroke 1.2s ease; }
.gmx-part.is-focus { fill: color-mix(in srgb, var(--gmx-accent) 45%, transparent); stroke: color-mix(in srgb, var(--gmx-accent) 90%, #fff); }
.gmx-part.is-marked { fill: rgba(251, 191, 36, 0.35); stroke: #fbbf24; }
.gmx-part.is-marked.is-focus { fill: color-mix(in srgb, #fbbf24 45%, var(--gmx-accent)); }
.gmx-figure.is-picking .gmx-part { cursor: pointer; }
.gmx-figure.is-picking .gmx-part:hover, .gmx-figure.is-picking .gmx-part:focus { stroke: #fff; outline: none; }
.gmx-stage.has-body .gmx-orb { display: none; }
@media (min-width: 700px) {
	.gmx-stage.has-body { padding-left: 42%; }
	.gmx-stage.has-body .gmx-figure { right: auto; width: 42%; }
}
@media (max-width: 699px) {
	.gmx-stage.has-body .gmx-figure { opacity: 0.45; }
	.gmx-stage.has-body .gmx-figure.is-picking { opacity: 1; position: relative; inset: auto; height: 260px; order: 3; }
}
.gmx-stage.has-canvas .gmx-caption { text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8); }

/* Choices, counting, inputs */
.gmx-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0.5rem; }
.gmx-root .gmx-option {
	min-height: 48px; padding: 0.6rem 0.9rem !important; border-radius: 14px !important;
	border: 1px solid rgba(255, 255, 255, 0.2) !important; background: rgba(12, 10, 30, 0.55) !important;
	color: #fff !important; font-size: 0.95rem !important; cursor: pointer; backdrop-filter: blur(4px);
}
.gmx-root .gmx-option:hover, .gmx-root .gmx-option.is-on { border-color: var(--gmx-accent) !important; background: color-mix(in srgb, var(--gmx-accent) 30%, rgba(12, 10, 30, 0.6)) !important; }
.gmx-theme-light .gmx-root .gmx-option, .gmx-theme-light .gmx-option { color: var(--gmx-text) !important; background: rgba(255, 255, 255, 0.85) !important; border-color: var(--gmx-border) !important; }
.gmx-input-row { display: flex; gap: 0.5rem; margin-top: 0.7rem; }
.gmx-root .gmx-input {
	flex: 1; min-width: 0; min-height: 46px; padding: 0.55rem 0.9rem !important; border-radius: 999px !important;
	border: 1px solid rgba(255, 255, 255, 0.25) !important; background: rgba(12, 10, 30, 0.6) !important;
	color: #fff !important; font: inherit !important; font-size: 0.95rem !important; box-shadow: none !important;
}
.gmx-root .gmx-input::placeholder { color: rgba(255, 255, 255, 0.5); }
.gmx-theme-light .gmx-input { background: #fff !important; color: var(--gmx-text) !important; border-color: var(--gmx-border) !important; }
.gmx-dots { display: flex; justify-content: center; gap: 0.6rem; margin-bottom: 0.4rem; }
.gmx-dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--gmx-accent) 70%, #fff); transition: background 0.5s ease, transform 0.5s ease; }
.gmx-dot.is-on { background: var(--gmx-accent); transform: scale(1.15); }

/* Check-ins and results */
.gmx-checkin { text-align: center; padding: 1rem 0; }
.gmx-root .gmx-q { font-size: clamp(1.15rem, 3vw, 1.4rem); font-weight: 500; }
.gmx-root .gmx-sub-lead { color: var(--gmx-muted); font-size: 0.9rem; margin-top: 0.3rem !important; }
.gmx-scale { display: grid; grid-template-columns: repeat(10, 1fr); gap: 0.35rem; max-width: 560px; margin: 1.2rem auto 0; }
.gmx-root .gmx-scale-btn { min-height: 48px; padding: 0 !important; border-radius: 12px !important; border: 1px solid var(--gmx-border) !important; background: var(--gmx-surface) !important; color: var(--gmx-text) !important; font-size: 1rem !important; cursor: pointer; }
.gmx-root .gmx-scale-btn:hover { border-color: var(--gmx-accent) !important; background: color-mix(in srgb, var(--gmx-accent) 22%, var(--gmx-surface)) !important; }
@media (max-width: 480px) { .gmx-scale { grid-template-columns: repeat(5, 1fr); } }
.gmx-results { text-align: center; padding: 0.5rem 0; }
.gmx-root .gmx-headline { font-size: clamp(1.2rem, 3vw, 1.5rem); font-weight: 600; }
.gmx-compare { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.1rem; }
.gmx-compare-n { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; border: 1px solid var(--gmx-border); background: var(--gmx-surface); font-size: 1.6rem; font-weight: 600; }
.gmx-compare-n.is-after { background: color-mix(in srgb, var(--gmx-accent) 28%, var(--gmx-surface)); border-color: var(--gmx-accent); }
.gmx-compare-arrow { color: var(--gmx-muted); font-size: 1.4rem; }
.gmx-root .gmx-note { max-width: 52ch; margin: 1rem auto 0 !important; color: var(--gmx-muted); }

@media (prefers-reduced-motion: reduce) {
	.gmx-root * { animation: none !important; transition: none !important; }
}

.gmx-stage { user-select: auto; -webkit-user-select: auto; background: transparent; }
