/* ==================================================================
 * فهمني learner space (/my/) — hub, journey map, daily challenge, card album,
 * wardrobe, missions, teach-فهيم, saved lessons, parents' corner, sessions,
 * plus lesson tools, time-up screen, voice controls and night mode.
 *
 * Look: the Knowledge-Compass language — deep cosmic purple, gold accents,
 * glowing orbs, soft large-radius cards, spring easing, reveal on scroll.
 * ================================================================== */

/* ------------------------------------------------------------------ tokens + page frame */
.fh-my {
	--sv-deep: #120830;
	--sv-ink: #22124f;
	--sv-violet: #9b7bff;
	--sv-gold: var(--fh-secondary, #ffc531);
	--sv-ease: cubic-bezier(.22, 1, .36, 1);
	--sv-spring: cubic-bezier(.34, 1.56, .64, 1);
	--sv-line: #ebe5f7;
	--sv-card: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 18px 44px -30px rgba(34, 18, 79, .5), 0 2px 6px -3px rgba(34, 18, 79, .08);
	--sv-card-hover: 0 1px 0 rgba(255, 255, 255, .9) inset, 0 28px 56px -30px rgba(34, 18, 79, .55), 0 4px 10px -4px rgba(34, 18, 79, .1);
	--sv-cosmos:
		radial-gradient(620px 320px at 88% -20%, rgba(91, 51, 214, .75), transparent 62%),
		radial-gradient(480px 300px at 2% 120%, rgba(255, 197, 49, .2), transparent 62%),
		radial-gradient(420px 260px at 45% 60%, rgba(20, 184, 166, .08), transparent 70%),
		linear-gradient(160deg, #1d0e4f, var(--sv-deep) 58%, #0b0420);
	min-height: 70vh;
	padding: 28px 0 70px;
	background:
		radial-gradient(900px 420px at 100% -8%, rgba(255, 197, 49, .14), transparent 62%),
		radial-gradient(760px 520px at -10% 28%, rgba(106, 61, 232, .11), transparent 62%),
		radial-gradient(rgba(106, 61, 232, .06) 1.4px, transparent 1.6px) 0 0 / 24px 24px,
		linear-gradient(180deg, #fbf9ff, #f6f2ff);
	font-family: var(--fh-font-body);
	color: var(--fh-ink);
}
.fh-my__wrap { width: min(1100px, 100% - 32px); margin-inline: auto; }
.fh-my h1, .fh-my h2 { font-family: var(--fh-font-heading); color: var(--fh-ink); letter-spacing: 0; }
.fh-my :focus-visible { outline: 3px solid var(--sv-gold); outline-offset: 3px; }
.fh-my-chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; background: #fff; color: var(--fh-primary); font-size: 13.5px; font-weight: 700; box-shadow: 0 6px 16px -10px rgba(34, 18, 79, .4), inset 0 0 0 1px var(--sv-line, #ebe5f7); }
.fh-note { display: flex; gap: 8px; margin: 0 0 18px; padding: 13px 18px; border: 1px solid #fde9a8; border-radius: 18px; background: linear-gradient(135deg, #fffaeb, #fff6dc); color: #6b5310; font-size: 14px; line-height: 1.75; }
.fh-muted { color: var(--fh-muted); }

/* A field of soft twinkling stars, laid over any cosmic surface (.fh-sky is decorative). */
.fh-sky {
	position: absolute;
	inset: 0;
	z-index: 0;
	pointer-events: none;
	border-radius: inherit;
	background-image:
		radial-gradient(1.6px 1.6px at 12% 22%, #fff, transparent 70%),
		radial-gradient(1.2px 1.2px at 28% 70%, rgba(255, 255, 255, .8), transparent 70%),
		radial-gradient(1.8px 1.8px at 46% 14%, #ffe8a3, transparent 70%),
		radial-gradient(1.2px 1.2px at 63% 48%, rgba(255, 255, 255, .7), transparent 70%),
		radial-gradient(1.6px 1.6px at 78% 82%, #fff, transparent 70%),
		radial-gradient(1.2px 1.2px at 88% 30%, rgba(255, 255, 255, .75), transparent 70%),
		radial-gradient(1.4px 1.4px at 6% 86%, #d9ccff, transparent 70%),
		radial-gradient(1px 1px at 55% 90%, #fff, transparent 70%),
		radial-gradient(1.4px 1.4px at 36% 40%, #d9ccff, transparent 70%),
		radial-gradient(1px 1px at 94% 62%, #fff, transparent 70%);
	opacity: .85;
	animation: fhv-twinkle 5s ease-in-out infinite alternate;
}
.fh-sky::after {
	content: "";
	position: absolute;
	inset: 0;
	background-image:
		radial-gradient(1.4px 1.4px at 20% 52%, #fff, transparent 70%),
		radial-gradient(1.2px 1.2px at 70% 18%, #ffe8a3, transparent 70%),
		radial-gradient(1px 1px at 84% 50%, #fff, transparent 70%),
		radial-gradient(1.2px 1.2px at 40% 78%, #fff, transparent 70%);
	animation: fhv-twinkle 3.6s ease-in-out -1.8s infinite alternate;
}
@keyframes fhv-twinkle { from { opacity: .35; } to { opacity: 1; } }

/* ------------------------------------------------------------------ page head (every sub-view): a cosmic banner */
.fh-my-head {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
	padding: 22px 26px;
	overflow: hidden;
	border-radius: 30px;
	background: var(--sv-cosmos);
	color: #fff;
	box-shadow: 0 30px 60px -36px rgba(18, 8, 48, .95), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.fh-my-head > :not(.fh-sky):not(.fh-my-head__orbit) { position: relative; z-index: 1; }
.fh-my-head__orbit { position: absolute; z-index: 0; top: 50%; inset-inline-end: -70px; width: 260px; height: 260px; margin-top: -130px; border: 1px dashed rgba(255, 255, 255, .16); border-radius: 50%; animation: fhv-spin 60s linear infinite; }
.fh-my-head__orbit::before { content: ""; position: absolute; inset: 34px; border: 1px solid rgba(155, 123, 255, .22); border-radius: 50%; }
.fh-my-head__orbit i { position: absolute; top: 18px; inset-inline-start: 40px; width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff3c4, var(--sv-gold) 60%, #e09a10); box-shadow: 0 0 16px 4px rgba(255, 197, 49, .55); }
@keyframes fhv-spin { to { transform: rotate(360deg); } }
.fh-my-head__icon { display: grid; place-items: center; width: 68px; height: 68px; flex: none; border-radius: 22px; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .28), rgba(255, 255, 255, .06) 60%), linear-gradient(145deg, rgba(155, 123, 255, .45), rgba(106, 61, 232, .2)); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .22), 0 0 0 6px rgba(255, 255, 255, .04), 0 14px 30px -12px rgba(0, 0, 0, .6), 0 0 34px -6px rgba(155, 123, 255, .7); }
.fh-my-head__icon span { font-size: 34px; line-height: 1; filter: drop-shadow(0 6px 8px rgba(0, 0, 0, .35)); animation: fhv-bob 4.5s var(--sv-ease) infinite; }
@keyframes fhv-bob { 50% { transform: translateY(-4px) rotate(-4deg); } }
.fh-my-head__t { flex: 1; min-width: 0; }
.fh-my-head__crumb { display: inline-block; margin-bottom: 2px; color: #ffe08a; font-size: 12.5px; font-weight: 800; letter-spacing: .02em; }
.fh-my-head h1 { margin: 0; color: #fff; font-size: clamp(26px, 4.4vw, 38px); line-height: 1.25; background: linear-gradient(100deg, #fff 35%, #e3d9ff 65%, #ffe08a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.fh-my-head p { margin: 4px 0 0; color: #cfc4f5; font-size: 15px; line-height: 1.7; }
.fh-my-back { display: grid; place-items: center; width: 46px; height: 46px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .1); color: #fff !important; border: 1px solid rgba(255, 255, 255, .22); backdrop-filter: blur(6px); transition: transform .35s var(--sv-spring), background-color .2s ease; }
.fh-my-back:hover { transform: translateX(3px); background: rgba(255, 255, 255, .2); }
.fh-my-back svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
[dir="ltr"] .fh-my-back svg { transform: scaleX(-1); }

/* ------------------------------------------------------------------ shared cards */
.fh-panel { position: relative; margin-bottom: 18px; padding: 24px; border: 1px solid rgba(235, 229, 247, .9); border-radius: 28px; background: #fff; box-shadow: var(--sv-card); }
.fh-panel h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font-size: 21px; }
.fh-count { display: inline-grid; place-items: center; min-width: 28px; height: 28px; padding: 0 9px; border-radius: 999px; background: linear-gradient(135deg, #7c4dff, var(--fh-primary)); color: #fff; font: 800 13px/1 var(--fh-font-body); box-shadow: 0 6px 14px -6px rgba(106, 61, 232, .8); }

.fh-empty { display: grid; justify-items: center; gap: 8px; padding: 44px 20px; border: 1px solid var(--sv-line, #ebe5f7); border-radius: 30px; background: radial-gradient(400px 200px at 50% 0, #f6f2ff, transparent 70%), #fff; text-align: center; box-shadow: var(--sv-card); }
.fh-empty .fh-fahim { width: 130px; height: 130px; animation: fhv-bob 4.5s var(--sv-ease) infinite; }
.fh-empty > span { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 30px; background: linear-gradient(145deg, #f6f2ff, #ece4ff); font-size: 46px; box-shadow: inset 0 0 0 1px #e2d8ff; }
.fh-empty h2 { margin: 6px 0 0; font-size: 22px; }
.fh-empty p { margin: 0 0 8px; color: var(--fh-muted); }
.fh-empty--sm { padding: 30px 18px; }

/* Reveal on scroll (classes added by hub.js only when motion is welcome). */
.fh-rv-on .fh-rv { opacity: 0; transform: translateY(22px) scale(.985); }
.fh-rv-on .fh-rv.is-in { opacity: 1; transform: none; transition: opacity .6s ease, transform .9s var(--sv-ease, cubic-bezier(.22, 1, .36, 1)); transition-delay: var(--rv-d, 0ms); }

/* ------------------------------------------------------------------ guest teaser */
.fh-my-guest { position: relative; display: grid; justify-items: center; gap: 12px; max-width: 660px; margin: 10px auto; padding: 40px 24px 32px; overflow: hidden; border-radius: 34px; background: var(--sv-cosmos); color: #fff; text-align: center; box-shadow: 0 40px 80px -40px rgba(18, 8, 48, .95); }
.fh-my-guest__art { position: relative; display: grid; place-items: center; width: 178px; height: 178px; border-radius: 50%; background: radial-gradient(circle, rgba(155, 123, 255, .35), transparent 68%); }
.fh-my-guest__fahim { width: 150px; height: 150px; animation: fh-float 3.6s ease-in-out infinite; }
.fh-my-guest .fh-my-chip { background: rgba(255, 197, 49, .14); color: #ffe08a; box-shadow: inset 0 0 0 1px rgba(255, 197, 49, .3); }
.fh-my-guest h1 { margin: 6px 0 0; color: #fff; font-size: clamp(26px, 6vw, 38px); }
.fh-my-guest p { max-width: 460px; margin: 0; color: #d9d0f7; font-size: 16px; line-height: 1.9; }
.fh-my-guest__perks { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 8px 0 6px; padding: 0; list-style: none; }
.fh-my-guest__perks li { padding: 7px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 12px; background: rgba(255, 255, 255, .07); font-size: 14px; font-weight: 700; }
.fh-my-guest__cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.fh-my-guest .fh-btn--primary { background: linear-gradient(135deg, #ffe08a, var(--fh-secondary) 45%, #f2a93b) !important; color: #2a1660 !important; box-shadow: 0 12px 30px -10px rgba(255, 197, 49, .7) !important; }
.fh-my-guest .fh-btn--soft { background: rgba(255, 255, 255, .1) !important; color: #fff !important; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .25) !important; }
@keyframes fh-float { 50% { transform: translateY(-10px) rotate(-3deg); } }

/* ------------------------------------------------------------------ hub */
.fh-hub-hero {
	position: relative;
	isolation: isolate;
	display: grid;
	grid-template-columns: auto 1fr auto;
	align-items: center;
	gap: 26px;
	margin-bottom: 18px;
	padding: 30px 32px;
	overflow: hidden;
	border-radius: 34px;
	background: var(--sv-cosmos);
	color: #fff;
	box-shadow: 0 40px 80px -40px rgba(18, 8, 48, .95), inset 0 1px 0 rgba(255, 255, 255, .08);
}
.fh-hub-hero > :not(.fh-sky):not(.fh-hub-hero__bg) { position: relative; z-index: 1; }
.fh-hub-hero__bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.fh-hub-hero__bg i { position: absolute; border-radius: 50%; }
.fh-hub-hero__bg i:nth-child(1) { width: 340px; height: 340px; top: -170px; inset-inline-end: 12%; border: 1px dashed rgba(255, 255, 255, .14); animation: fhv-spin 80s linear infinite; }
.fh-hub-hero__bg i:nth-child(2) { width: 220px; height: 220px; bottom: -120px; inset-inline-start: 26%; background: radial-gradient(circle, rgba(155, 123, 255, .3), transparent 70%); }
.fh-hub-hero__bg i:nth-child(3) { width: 10px; height: 10px; top: 30px; inset-inline-start: 44%; background: var(--sv-gold); box-shadow: 0 0 18px 6px rgba(255, 197, 49, .5); animation: fhv-drift 9s ease-in-out infinite; }
@keyframes fhv-drift { 50% { transform: translate(-30px, 14px); } }
.fh-hub-hero__fahim { position: relative; display: grid; place-items: center; width: 140px; height: 140px; border-radius: 50%; background: radial-gradient(circle at 50% 38%, #fff 0 50%, #ece4ff 100%); box-shadow: 0 0 0 8px rgba(255, 255, 255, .07), 0 0 0 9px rgba(255, 255, 255, .12), 0 0 60px -6px rgba(155, 123, 255, .9), 0 22px 36px -16px rgba(0, 0, 0, .55); transition: transform .45s var(--sv-spring); }
.fh-hub-hero__fahim::before { content: ""; position: absolute; inset: -18px; border: 1.5px dashed rgba(255, 224, 138, .45); border-radius: 50%; animation: fhv-spin 26s linear infinite; }
.fh-hub-hero__fahim::after { content: ""; position: absolute; top: -22px; left: 50%; width: 9px; height: 9px; margin-left: -4px; border-radius: 50%; background: #ffe08a; box-shadow: 0 0 12px 3px rgba(255, 197, 49, .8); transform-origin: 4px 92px; animation: fhv-spin 9s linear infinite; }
.fh-hub-hero__fahim:hover { transform: scale(1.05) rotate(-4deg); }
.fh-hub-fahim { width: 118px; height: 118px; }
.fh-hub-hero__fahim > span { position: absolute; bottom: 0; inset-inline-end: 0; z-index: 1; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: linear-gradient(135deg, #ffe08a, var(--sv-gold) 50%, #f2a93b); font-size: 19px; box-shadow: 0 0 0 4px rgba(18, 8, 48, .6), 0 8px 16px -6px rgba(0, 0, 0, .5); }
.fh-hub-hero__text { min-width: 0; }
.fh-hub-hero__text small { color: #ffe08a; font-size: 15px; font-weight: 700; }
.fh-hub-hero__text h1 { margin: 2px 0 8px; font-size: clamp(30px, 5vw, 46px); line-height: 1.15; background: linear-gradient(100deg, #fff 35%, #e3d9ff 65%, #ffe08a); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: #fff; }
.fh-hub-level { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.fh-hub-level__badge { padding: 5px 13px; border: 1px solid rgba(255, 197, 49, .35); border-radius: 999px; background: rgba(255, 197, 49, .14); color: #ffe08a; font-size: 13.5px; font-weight: 800; }
.fh-hub-level b { font: 700 19px/1.3 var(--fh-font-heading); color: #fff; }
.fh-hub-xp { display: grid; gap: 6px; max-width: 380px; }
.fh-hub-xp i { position: relative; height: 12px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .12); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .35); }
.fh-hub-xp i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p) * 1%); border-radius: inherit; background: linear-gradient(90deg, #f2a93b, var(--sv-gold), #ffe9a6) 0 0 / 200% 100%; box-shadow: 0 0 16px rgba(255, 197, 49, .75); animation: fh-grow 1.4s var(--sv-ease) both, fhv-flow 3s linear 1.4s infinite; }
.fh-hub-xp small { color: #d4cbf2; font-size: 13px; }
@keyframes fh-grow { from { width: 0; } }
@keyframes fhv-flow { to { background-position: -200% 0; } }
.fh-hub-stats { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.fh-hub-stats li { display: grid; gap: 2px; min-width: 112px; padding: 12px 16px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 20px; background: linear-gradient(160deg, rgba(255, 255, 255, .12), rgba(255, 255, 255, .04)); backdrop-filter: blur(8px); text-align: center; transition: transform .35s var(--sv-spring), border-color .2s ease; }
.fh-hub-stats li:hover { transform: translateY(-3px); border-color: rgba(255, 197, 49, .45); }
.fh-hub-stats b { font: 800 26px/1.1 var(--fh-font-heading); color: #ffe08a; text-shadow: 0 0 18px rgba(255, 197, 49, .45); }
.fh-hub-stats small { color: #d4cbf2; font-size: 12.5px; }

.fh-hub-banner, .fh-hub-continue { position: relative; display: flex; align-items: center; gap: 16px; margin-bottom: 16px; padding: 16px 20px; overflow: hidden; border-radius: 26px; text-decoration: none !important; transition: transform .4s var(--sv-spring), box-shadow .3s ease; }
.fh-hub-banner:hover, .fh-hub-continue:hover { transform: translateY(-3px); }
.fh-hub-banner { background: linear-gradient(120deg, #ffcf4a, #ff9a3d 55%, #ff6b6b); color: #fff !important; box-shadow: 0 22px 40px -22px rgba(255, 122, 61, .9), inset 0 1px 0 rgba(255, 255, 255, .35); }
.fh-hub-banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 35%, rgba(255, 255, 255, .38) 50%, transparent 65%) 0 0 / 250% 100%; animation: fh-sheen 4.5s ease-in-out infinite; pointer-events: none; }
.fh-hub-banner__flame { position: relative; display: grid; place-items: center; width: 56px; height: 56px; flex: none; border-radius: 18px; background: rgba(255, 255, 255, .25); font-size: 30px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .4), 0 0 26px rgba(255, 255, 255, .35); animation: fh-flicker 1.4s ease-in-out infinite; }
.fh-hub-banner > span:nth-child(2) { flex: 1; min-width: 0; }
.fh-hub-banner b { display: block; font: 800 19px/1.3 var(--fh-font-heading); text-shadow: 0 1px 2px rgba(120, 40, 0, .25); }
.fh-hub-banner small { display: block; font-size: 14px; font-weight: 600; text-shadow: 0 1px 2px rgba(120, 40, 0, .25); }
.fh-hub-banner__go { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 50%; background: #fff; color: #e2622b; font-size: 20px; font-weight: 800; box-shadow: 0 8px 18px -8px rgba(120, 40, 0, .6); transition: transform .35s var(--sv-spring); }
.fh-hub-banner:hover .fh-hub-banner__go { transform: translateX(-4px); }
[dir="ltr"] .fh-hub-banner:hover .fh-hub-banner__go { transform: translateX(4px); }
@keyframes fh-flicker { 50% { transform: scale(1.08) rotate(-4deg); } }
.fh-hub-continue { border: 1px solid var(--sv-line, #ebe5f7); background: radial-gradient(420px 160px at 100% 0, color-mix(in srgb, var(--c) 10%, transparent), transparent 70%), #fff; color: var(--fh-ink) !important; box-shadow: var(--sv-card); }
.fh-hub-continue::before { content: ""; position: absolute; inset-block: 14px; inset-inline-start: 0; width: 5px; border-radius: 0 6px 6px 0; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 50%, #ffc531)); }
[dir="rtl"] .fh-hub-continue::before { border-radius: 6px 0 0 6px; }
.fh-hub-continue:hover { box-shadow: var(--sv-card-hover); }
.fh-hub-continue img { width: 104px; height: 68px; flex: none; object-fit: cover; border-radius: 16px !important; box-shadow: 0 10px 20px -12px rgba(34, 18, 79, .6); }
.fh-hub-continue__t { flex: 1; min-width: 0; }
.fh-hub-continue__t small { color: var(--fh-primary); font-size: 12.5px; font-weight: 800; }
.fh-hub-continue__t b { display: block; overflow: hidden; font: 700 18px/1.4 var(--fh-font-heading); text-overflow: ellipsis; white-space: nowrap; }
.fh-hub-continue__bar { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.fh-hub-continue__bar i { position: relative; flex: 1; height: 9px; overflow: hidden; border-radius: 9px; background: #efe9ff; }
.fh-hub-continue__bar i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--fh-teal), var(--fh-primary)); animation: fh-grow 1.2s var(--sv-ease) both; }
.fh-hub-continue__bar em { color: var(--fh-primary); font-size: 13px; font-style: normal; font-weight: 800; }
.fh-hub-continue__play { position: relative; display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 50%; background: linear-gradient(135deg, #8b5cff, var(--fh-primary) 60%, #4a1fc0); color: #fff; font-size: 17px; box-shadow: 0 12px 24px -10px rgba(106, 61, 232, .9); }
.fh-hub-continue__play::after { content: ""; position: absolute; inset: -6px; border: 2px solid rgba(106, 61, 232, .35); border-radius: 50%; animation: fhv-ring 2.2s var(--sv-ease) infinite; }
@keyframes fhv-ring { from { transform: scale(.85); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
[dir="rtl"] .fh-hub-continue__play { transform: scaleX(-1); }

.fh-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 20px; }
.fh-hub-tile {
	position: relative;
	isolation: isolate;
	display: flex;
	align-items: center;
	gap: 14px;
	min-height: 96px;
	padding: 16px 18px;
	overflow: hidden;
	border: 1px solid var(--sv-line, #ebe5f7);
	border-radius: 26px;
	background: #fff;
	color: var(--fh-ink) !important;
	text-decoration: none !important;
	box-shadow: var(--sv-card);
	animation: fh-rise .6s var(--sv-ease) both;
	animation-delay: var(--d);
	transition: transform .45s var(--sv-spring), box-shadow .3s ease, border-color .3s ease;
}
.fh-hub-tile::before { content: ""; position: absolute; z-index: -1; top: -60px; inset-inline-start: -50px; width: 170px; height: 170px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%); transition: transform .6s var(--sv-ease); }
.fh-hub-tile::after { content: ""; position: absolute; inset-inline: 22px; bottom: 0; height: 3px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 40%, #ffc531)); transform: scaleX(0); transition: transform .45s var(--sv-ease); }
.fh-hub-tile:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 30%, #fff); box-shadow: 0 30px 50px -30px color-mix(in srgb, var(--c) 75%, transparent), 0 4px 10px -4px rgba(34, 18, 79, .1); }
.fh-hub-tile:hover::before { transform: scale(1.6); }
.fh-hub-tile:hover::after { transform: scaleX(1); }
.fh-hub-tile__icon { display: grid; place-items: center; width: 60px; height: 60px; flex: none; border-radius: 20px; background: radial-gradient(circle at 30% 25%, #fff, transparent 60%), linear-gradient(145deg, color-mix(in srgb, var(--c) 26%, #fff), color-mix(in srgb, var(--c) 10%, #fff)); font-size: 30px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 22%, transparent), 0 10px 20px -12px var(--c); transition: transform .5s var(--sv-spring); }
.fh-hub-tile:hover .fh-hub-tile__icon { transform: rotate(-8deg) scale(1.1); }
.fh-hub-tile__t { display: grid; flex: 1; min-width: 0; gap: 2px; }
.fh-hub-tile b { font: 700 18px/1.3 var(--fh-font-heading); }
.fh-hub-tile small { color: var(--fh-muted); font-size: 13px; line-height: 1.5; }
.fh-hub-tile__go { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: color-mix(in srgb, var(--c) 10%, #fff); color: var(--c); opacity: .55; transition: transform .4s var(--sv-spring), opacity .3s ease, background-color .3s ease, color .3s ease; }
.fh-hub-tile__go svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
[dir="ltr"] .fh-hub-tile__go svg { transform: scaleX(-1); }
.fh-hub-tile:hover .fh-hub-tile__go { opacity: 1; background: var(--c); color: #fff; transform: translateX(-4px); }
[dir="ltr"] .fh-hub-tile:hover .fh-hub-tile__go { transform: translateX(4px); }
@keyframes fh-rise { from { opacity: 0; transform: translateY(16px) scale(.98); } }

.fh-hub-tree, .fh-missions-tree { position: relative; display: flex; align-items: center; gap: 20px; margin-bottom: 18px; padding: 20px 24px; overflow: hidden; border: 1px solid #c9f0d8; border-radius: 30px; background: radial-gradient(360px 200px at 0 0, rgba(255, 236, 160, .55), transparent 70%), radial-gradient(400px 240px at 100% 120%, rgba(34, 197, 94, .2), transparent 70%), linear-gradient(135deg, #ecfdf3, #f7fff9); box-shadow: 0 20px 44px -32px rgba(22, 101, 52, .7); }
.fh-hub-tree b, .fh-missions-tree b { display: block; margin-bottom: 4px; font: 700 19px/1.4 var(--fh-font-heading); color: #14532d; }
.fh-hub-tree p, .fh-missions-tree p { margin: 0 0 10px; color: #3f6b52; font-size: 14.5px; line-height: 1.75; }
.fh-hub-tree .fh-btn--soft { background: #fff !important; color: #15803d !important; box-shadow: 0 8px 18px -12px rgba(22, 101, 52, .7) !important; }
.fh-tree { width: 140px; height: 140px; flex: none; filter: drop-shadow(0 10px 14px rgba(22, 101, 52, .18)); }
.fh-tree__plant { transform-origin: 100px 186px; transform: scale(var(--s)); transition: transform .8s var(--fh-bounce); animation: fhv-sway 6s ease-in-out infinite; }
@keyframes fhv-sway { 0%, 100% { rotate: 0deg; } 50% { rotate: 1.5deg; } }
.fh-tree__leaf { transform-box: fill-box; transform-origin: center; animation: fh-leaf .5s var(--fh-bounce) both; animation-delay: calc(var(--i) * 18ms); }
.fh-tree__leaf.is-ghost { opacity: .35; animation: none; }
@keyframes fh-leaf { from { transform: scale(0); } }
.fh-hub-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 4px; }
.fh-hub-foot .fh-btn--soft { background: #fff !important; box-shadow: inset 0 0 0 1px var(--sv-line, #ebe5f7), 0 8px 18px -14px rgba(34, 18, 79, .5) !important; }
.fh-hub-foot .fh-btn--soft:hover { transform: translateY(-2px); box-shadow: inset 0 0 0 1px #d8ccff, 0 12px 22px -14px rgba(106, 61, 232, .6) !important; }
.fh-hub-out { color: #d6455d !important; }

/* Compass workspace on /my/: the tools strip under it. */
.kc-extra { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin: 26px 0 0; padding: 16px; border: 1px solid var(--sv-line, #ebe5f7); border-radius: 26px; background: rgba(255, 255, 255, .75); backdrop-filter: blur(8px); box-shadow: 0 18px 40px -32px rgba(34, 18, 79, .5); }
.kc-extra a { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 16px; border-radius: 14px; background: #fff; color: var(--fh-ink) !important; font: 700 14.5px/1.3 var(--fh-font-body); text-decoration: none !important; box-shadow: inset 0 0 0 1px var(--sv-line, #ebe5f7), 0 6px 14px -10px rgba(34, 18, 79, .45); transition: transform .4s var(--sv-spring, ease), box-shadow .25s ease, color .2s ease; }
.kc-extra a:hover { transform: translateY(-3px); color: var(--fh-primary) !important; box-shadow: inset 0 0 0 1.5px rgba(106, 61, 232, .35), 0 14px 24px -14px rgba(106, 61, 232, .6); }
.kc-extra a:focus-visible { outline: 3px solid var(--fh-secondary); outline-offset: 2px; }

/* ------------------------------------------------------------------ journey map */
.fh-map { position: relative; display: grid; gap: 22px; padding: 18px 12px 14px; }
.fh-map__sea { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 36px; background: radial-gradient(500px 300px at 85% 0, rgba(255, 224, 138, .35), transparent 70%), radial-gradient(rgba(106, 61, 232, .08) 1.3px, transparent 1.5px) 0 0 / 26px 26px, linear-gradient(180deg, #dff1fd, #ebe6ff 55%, #fbefff); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7); }
.fh-map__sea i { position: absolute; width: 150px; height: 18px; border-radius: 50%; border-top: 3px solid rgba(255, 255, 255, .85); animation: fh-wave 6s ease-in-out infinite; }
.fh-map__sea i:nth-child(1) { top: 12%; left: 8%; }
.fh-map__sea i:nth-child(2) { top: 38%; right: 6%; animation-delay: -2s; }
.fh-map__sea i:nth-child(3) { top: 64%; left: 14%; animation-delay: -4s; }
.fh-map__sea i:nth-child(4) { top: 86%; right: 18%; animation-delay: -1s; }
@keyframes fh-wave { 50% { transform: translateX(24px); } }
.fh-island {
	position: relative;
	z-index: 1;
	padding: 16px 16px 8px;
	border-radius: 34px;
	background: radial-gradient(circle at 50% 118%, color-mix(in srgb, var(--c) 18%, #fff8e1), rgba(255, 253, 246, .96) 68%);
	box-shadow: 0 0 0 6px rgba(255, 255, 255, .7), 0 30px 50px -32px color-mix(in srgb, var(--c) 85%, #000);
	transition: transform .5s var(--sv-spring);
}
.fh-island__head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 0; }
.fh-island__head span { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 17px; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .55), transparent 55%), var(--c); font-size: 25px; box-shadow: 0 12px 22px -12px var(--c), inset 0 -3px 0 rgba(0, 0, 0, .12); }
.fh-island__head b { flex: 1; font: 700 20px/1.3 var(--fh-font-heading); }
.fh-island__head small { padding: 5px 11px; border-radius: 999px; background: #fff; color: var(--c); font-weight: 800; box-shadow: 0 6px 14px -10px var(--c); }
.fh-stops { position: relative; margin-top: 4px; }
.fh-stops__path { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.fh-stops__path path { fill: none; stroke: color-mix(in srgb, var(--c) 50%, #fff); stroke-width: 6; stroke-dasharray: 2 14; stroke-linecap: round; animation: fhv-march 1.6s linear infinite; }
@keyframes fhv-march { to { stroke-dashoffset: -32; } }
.fh-stop {
	position: absolute;
	top: var(--y);
	left: var(--x);
	display: flex;
	align-items: center;
	gap: 10px;
	width: max-content;
	max-width: 46%;
	transform: translate(-50%, -50%);
	color: var(--fh-ink) !important;
	text-decoration: none !important;
	animation: fhv-pop-in .6s var(--sv-spring) both;
	animation-delay: calc(var(--i) * 90ms);
}
@keyframes fhv-pop-in { from { opacity: 0; scale: .6; } }
.fh-stop[style*="--x: 72"] { flex-direction: row-reverse; transform: translate(-70%, -50%); }
.fh-stop[style*="--x: 28"] { transform: translate(-30%, -50%); }
.fh-stop__ring {
	position: relative;
	display: grid;
	place-items: center;
	width: 80px;
	height: 80px;
	flex: none;
	padding: 6px;
	border-radius: 50%;
	background: conic-gradient(var(--c) calc(var(--p) * 1%), rgba(34, 18, 79, .1) 0);
	box-shadow: 0 14px 24px -12px rgba(34, 18, 79, .6);
	transition: transform .4s var(--sv-spring);
}
.fh-stop:hover .fh-stop__ring, .fh-stop:focus-visible .fh-stop__ring { transform: scale(1.1) translateY(-3px); }
.fh-stop__core { display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; background: #fff; font-size: 28px; box-shadow: inset 0 -5px 0 rgba(34, 18, 79, .08); }
.fh-stop.is-done .fh-stop__ring { background: conic-gradient(from 200deg, #ffe08a, #ffb000, #ffd54a, #f2a93b, #ffe08a); box-shadow: 0 0 22px -4px rgba(255, 176, 0, .65), 0 14px 24px -12px rgba(160, 100, 0, .6); }
.fh-stop.is-done .fh-stop__core { background: radial-gradient(circle at 35% 30%, #fff, #fff4d1); }
.fh-stop.is-next .fh-stop__ring { background: rgba(255, 255, 255, .55); border: 3px dashed color-mix(in srgb, var(--c) 60%, #fff); box-shadow: none; animation: fh-pulse 2.2s ease-in-out infinite; }
.fh-stop.is-next .fh-stop__core { background: rgba(255, 255, 255, .85); }
.fh-stop.is-here .fh-stop__ring::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 3px solid color-mix(in srgb, var(--c) 55%, #ffc531); animation: fhv-ring 2s var(--sv-ease) infinite; }
@keyframes fh-pulse { 50% { transform: scale(1.06); } }
.fh-stop__label { display: grid; min-width: 0; padding: 8px 13px; border: 1px solid rgba(255, 255, 255, .9); border-radius: 16px; background: rgba(255, 255, 255, .95); box-shadow: 0 12px 24px -16px rgba(34, 18, 79, .6); backdrop-filter: blur(6px); }
.fh-stop__label b { display: -webkit-box; overflow: hidden; font: 700 14px/1.4 var(--fh-font-heading); -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fh-stop__label small { color: color-mix(in srgb, var(--c) 80%, #22124f); font-size: 12.5px; font-weight: 800; }
.fh-stop__fahim { position: absolute; top: -52px; inset-inline-start: 14px; width: 64px; height: 64px; filter: drop-shadow(0 8px 8px rgba(34, 18, 79, .3)); animation: fh-hop 1.6s ease-in-out infinite; pointer-events: none; }
.fh-stop__fahim .fh-fahim { width: 100%; height: 100%; }
@keyframes fh-hop { 50% { transform: translateY(-8px); } }
/* The unexplored island: a mystery card under the night sky. */
.fh-island--fog { isolation: isolate; display: grid; justify-items: center; gap: 8px; padding: 34px 20px 28px; overflow: hidden; text-align: center; color: #fff !important; text-decoration: none !important; background: radial-gradient(420px 220px at 50% 0, color-mix(in srgb, var(--c) 45%, transparent), transparent 70%), var(--sv-cosmos); box-shadow: 0 0 0 6px rgba(255, 255, 255, .6), 0 34px 60px -34px rgba(18, 8, 48, .95); }
.fh-island--fog > :not(.fh-sky) { position: relative; z-index: 1; }
.fh-island--fog:hover { transform: translateY(-4px); }
.fh-island--fog__cloud { position: absolute !important; top: 14px; inset-inline-end: 26px; font-size: 40px; opacity: .55; animation: fh-wave 5s ease-in-out infinite; }
.fh-island--fog__emoji { display: grid; place-items: center; width: 92px; height: 92px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .2), rgba(255, 255, 255, .03) 70%); font-size: 46px; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .2), 0 0 40px -6px color-mix(in srgb, var(--c) 80%, #9b7bff); animation: fhv-bob 4.5s var(--sv-ease) infinite; }
.fh-island--fog b { font: 700 21px/1.3 var(--fh-font-heading); color: #fff; }
.fh-island--fog small { color: #cfc4f5; }
.fh-island--fog .fh-btn--primary { margin-top: 6px; background: linear-gradient(135deg, #ffe08a, var(--fh-secondary) 45%, #f2a93b) !important; color: #2a1660 !important; box-shadow: 0 12px 26px -10px rgba(255, 197, 49, .7) !important; }

/* ------------------------------------------------------------------ daily challenge */
.fh-daily { display: grid; grid-template-columns: 310px 1fr; gap: 20px; align-items: start; }
.fh-daily__flame { position: sticky; top: 100px; isolation: isolate; display: grid; justify-items: center; gap: 4px; padding: 26px 18px 22px; overflow: hidden; border-radius: 32px; background: radial-gradient(260px 200px at 50% 20%, rgba(255, 150, 40, .32), transparent 70%), var(--sv-cosmos); color: #fff; text-align: center; box-shadow: 0 40px 70px -40px rgba(18, 8, 48, .95); }
.fh-daily__flame > :not(.fh-sky) { position: relative; z-index: 1; }
.fh-daily__flame b { font: 800 60px/1 var(--fh-font-heading); background: linear-gradient(180deg, #fff3c4, var(--sv-gold) 55%, #f2a93b); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; filter: drop-shadow(0 0 18px rgba(255, 197, 49, .45)); }
.fh-daily__flame small { color: #d4cbf2; }
.fh-flame { position: relative; display: grid; place-items: center; width: 128px; height: 128px; filter: grayscale(1) opacity(.5); transition: filter .6s ease; }
.fh-flame.is-lit { filter: none; }
.fh-flame span { position: relative; font-size: calc(56px + var(--n) * 1.2px); animation: fh-flicker 1.2s ease-in-out infinite; }
.fh-flame i { position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255, 170, 0, .55), transparent 70%); animation: fhv-glow 1.8s ease-in-out infinite; }
.fh-flame i:nth-child(1) { inset: 0; }
.fh-flame i:nth-child(2) { inset: 18%; animation-delay: -.6s; }
.fh-flame i:nth-child(3) { inset: 34%; animation-delay: -1.2s; }
@keyframes fhv-glow { 50% { transform: scale(1.15); opacity: .7; } }
.fh-flame.is-burst span { animation: fh-burst .8s var(--fh-bounce); }
@keyframes fh-burst { 40% { transform: scale(1.6) rotate(-8deg); } }
.fh-daily__week { display: flex; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; }
.fh-daily__week li { display: grid; gap: 2px; justify-items: center; width: 34px; padding: 7px 0; border: 1px solid rgba(255, 255, 255, .1); border-radius: 13px; background: rgba(255, 255, 255, .06); font-size: 11px; font-weight: 700; }
.fh-daily__week li.is-on { border-color: rgba(255, 197, 49, .45); background: rgba(255, 197, 49, .2); box-shadow: 0 0 16px -4px rgba(255, 197, 49, .6); }
.fh-daily__week li.is-today { box-shadow: inset 0 0 0 2px var(--sv-gold); }
.fh-daily__week i { font-style: normal; font-size: 15px; }

.fh-quizcards { position: relative; }
.fh-qcard { position: relative; margin: 0; padding: 30px 26px 24px; overflow: hidden; border: 1px solid var(--sv-line, #ebe5f7); border-radius: 32px; background: #fff; box-shadow: 0 30px 60px -36px rgba(34, 18, 79, .6); animation: fh-card-in .55s var(--sv-ease); }
.fh-qcard::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: linear-gradient(90deg, var(--fh-primary), #9b7bff, var(--sv-gold)); }
.fh-qcard.is-out { animation: fh-card-out .28s ease forwards; }
@keyframes fh-card-in { from { opacity: 0; transform: translateX(-30px) rotate(-2deg); } }
@keyframes fh-card-out { to { opacity: 0; transform: translateX(40px) rotate(3deg); } }
.fh-qcard legend { display: grid; gap: 10px; float: left; width: 100%; margin-bottom: 20px; padding: 0; font: 700 clamp(20px, 3.6vw, 27px)/1.5 var(--fh-font-heading); color: var(--fh-ink); }
.fh-qcard legend span { justify-self: start; padding: 5px 13px; border-radius: 999px; background: linear-gradient(135deg, #f1eaff, #e7dcff); color: var(--fh-primary); font: 800 13px/1.4 var(--fh-font-body); }
.fh-qcard__opt { display: block; clear: both; margin: 0 0 10px; cursor: pointer; }
.fh-qcard__why { clear: both; }
.fh-qcard__opt input { position: absolute; opacity: 0; pointer-events: none; }
.fh-qcard__opt span { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 2px solid #ece6ff; border-radius: 20px; background: #fbfaff; font-size: 17px; font-weight: 700; transition: transform .35s var(--sv-spring), border-color .2s ease, background-color .2s ease, box-shadow .2s ease; }
.fh-qcard__opt span em { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 12px; background: #fff; color: var(--fh-primary); font-style: normal; box-shadow: 0 3px 8px -4px rgba(34, 18, 79, .4), inset 0 0 0 1px #ece6ff; transition: background-color .2s ease, color .2s ease; }
.fh-qcard__opt:hover span { border-color: rgba(106, 61, 232, .4); background: #fff; transform: translateX(-4px); box-shadow: 0 10px 20px -16px rgba(106, 61, 232, .8); }
[dir="ltr"] .fh-qcard__opt:hover span { transform: translateX(4px); }
.fh-qcard__opt input:checked + span { border-color: var(--fh-primary); background: var(--fh-soft); color: var(--fh-primary); box-shadow: 0 0 0 4px rgba(106, 61, 232, .12); }
.fh-qcard__opt input:checked + span em { background: linear-gradient(135deg, #8b5cff, var(--fh-primary)); color: #fff; }
.fh-qcard__opt input:focus-visible + span { outline: 3px solid var(--sv-gold); outline-offset: 2px; }
.fh-quizcards__dots { display: flex; justify-content: center; gap: 8px; margin: 18px 0 0; }
.fh-quizcards__dots i { width: 10px; height: 10px; border-radius: 99px; background: #ddd3fb; transition: width .45s var(--sv-spring), background-color .3s ease; }
.fh-quizcards__dots i.is-on { width: 30px; background: linear-gradient(90deg, var(--fh-primary), #9b7bff); }
.fh-daily__result, .fh-daily__done { display: grid; justify-items: center; gap: 10px; padding: 30px 22px; border: 1px solid var(--sv-line, #ebe5f7); border-radius: 32px; background: radial-gradient(420px 200px at 50% 0, #fff6d8, transparent 70%), #fff; text-align: center; box-shadow: 0 30px 60px -36px rgba(34, 18, 79, .6); animation: fh-rise .5s var(--sv-ease); }
.fh-daily__done .fh-fahim, .fh-daily__fahim { width: 126px; height: 126px; animation: fhv-bob 4s var(--sv-ease) infinite; }
.fh-daily__result h2, .fh-daily__done h2 { margin: 0; font-size: 25px; }
.fh-daily__done p { margin: 0 0 6px; color: var(--fh-muted); line-height: 1.8; }
.fh-daily__stars { display: flex; gap: 8px; font-size: 46px; }
.fh-daily__stars i { font-style: normal; filter: grayscale(1) opacity(.3); }
.fh-daily__stars i.is-on { filter: drop-shadow(0 0 12px rgba(255, 197, 49, .7)); animation: fh-star .7s var(--fh-bounce) both; animation-delay: var(--d); }
@keyframes fh-star { from { transform: scale(0) rotate(-90deg); } }
.fh-daily__xp { margin: 0; padding: 7px 18px; border-radius: 999px; background: linear-gradient(135deg, #fff3c4, #ffe08a); color: #7a5600; font-weight: 800; box-shadow: 0 8px 18px -10px rgba(224, 165, 0, .8); }
.fh-daily__review { display: grid; gap: 8px; width: 100%; margin: 6px 0 10px; padding: 0; list-style: none; text-align: start; }
.fh-daily__review li { display: grid; gap: 2px; padding: 12px 16px; border-radius: 18px; background: #f0fdf6; border: 1px solid #c9f0d8; }
.fh-daily__review li.is-wrong { background: #fff6f6; border-color: #fbd5d5; }
.fh-daily__review small { color: var(--fh-muted); line-height: 1.6; }
.fh-daily__push { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border: 1px solid var(--sv-line, #ebe5f7); border-radius: 24px; background: #fff; box-shadow: var(--sv-card); }
.fh-daily__push > span { display: grid; place-items: center; width: 52px; height: 52px; flex: none; border-radius: 17px; background: linear-gradient(145deg, #fff3c4, #ffe08a); font-size: 26px; box-shadow: 0 10px 20px -12px rgba(224, 165, 0, .8); }
.fh-daily__push div { flex: 1; min-width: 0; }
.fh-daily__push b { display: block; font-size: 16px; }
.fh-daily__push small { color: var(--fh-muted); font-size: 13.5px; }
.fh-daily__push.is-on { border-color: #c9f0d8; background: linear-gradient(135deg, #ecfdf3, #fff); }

/* ------------------------------------------------------------------ album */
.fh-album__tip { position: relative; margin-bottom: 20px; padding: 14px 18px; overflow: hidden; border: 1px solid #fde9a8; border-radius: 20px; background: linear-gradient(120deg, #fffaeb, #fff3d1 60%, #fdeaff); font-weight: 600; box-shadow: 0 14px 30px -24px rgba(224, 165, 0, .8); }
.fh-album__tip::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 40%, rgba(255, 255, 255, .7) 50%, transparent 60%) 0 0 / 250% 100%; animation: fh-sheen 5s ease-in-out infinite; pointer-events: none; }
.fh-shine-text { background: linear-gradient(90deg, #ff6b9a, #e0a500, #14b8a6, #6a3de8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.fh-set { margin-bottom: 22px; padding: 20px; border: 1px solid var(--sv-line, #ebe5f7); border-radius: 30px; background: radial-gradient(500px 160px at 100% 0, color-mix(in srgb, var(--c) 9%, transparent), transparent 70%), #fff; box-shadow: var(--sv-card); }
.fh-set header { position: relative; display: flex; align-items: center; gap: 12px; margin-bottom: 16px; padding-bottom: 14px; }
.fh-set header span { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 15px; background: radial-gradient(circle at 30% 25%, #fff, transparent 60%), color-mix(in srgb, var(--c) 18%, #fff); font-size: 24px; box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--c) 25%, transparent); }
.fh-set header b { flex: 1; font: 700 21px/1.3 var(--fh-font-heading); }
.fh-set header small { padding: 5px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, #fff); color: color-mix(in srgb, var(--c) 75%, #22124f); font-weight: 800; }
.fh-set header i { position: absolute; bottom: 0; inset-inline: 0; height: 6px; border-radius: 9px; background: rgba(34, 18, 79, .07); }
.fh-set header i::after { content: ""; position: absolute; inset-block: 0; inset-inline-start: 0; width: calc(var(--p) * 1%); border-radius: inherit; background: linear-gradient(90deg, var(--c), color-mix(in srgb, var(--c) 50%, #ffc531)); box-shadow: 0 0 12px -2px var(--c); animation: fh-grow 1.2s var(--sv-ease) both; }
.fh-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.fh-tcard {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 5 / 7;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 20px !important;
	background: transparent !important;
	perspective: 900px;
	cursor: pointer;
	box-shadow: none !important;
	transition: transform .45s var(--sv-spring);
}
.fh-tcard.is-owned:hover { transform: translateY(-6px) rotate(-1.5deg); }
.fh-tcard:disabled { cursor: default; }
.fh-tcard__front, .fh-tcard__back {
	position: absolute;
	inset: 0;
	display: grid;
	align-content: center;
	justify-items: center;
	gap: 8px;
	padding: 14px 10px;
	border-radius: 20px;
	backface-visibility: hidden;
	transition: transform .7s var(--sv-ease);
	text-align: center;
}
.fh-tcard__front { background: radial-gradient(circle at 50% 30%, #fff, color-mix(in srgb, var(--c) 16%, #fff)); box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--c) 30%, #fff), 0 16px 28px -18px rgba(34, 18, 79, .6); }
.fh-tcard__back { background: radial-gradient(circle at 30% 0, rgba(255, 255, 255, .25), transparent 60%), linear-gradient(160deg, var(--c), color-mix(in srgb, var(--c) 60%, #22124f)); color: #fff; transform: rotateY(180deg); box-shadow: 0 16px 28px -18px rgba(34, 18, 79, .7); }
.fh-tcard[aria-pressed="true"] .fh-tcard__front { transform: rotateY(-180deg); }
.fh-tcard[aria-pressed="true"] .fh-tcard__back { transform: rotateY(0); }
.fh-tcard__emoji { font-size: 54px; line-height: 1; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .16)); transition: transform .45s var(--sv-spring); }
.fh-tcard.is-owned:hover .fh-tcard__emoji { transform: scale(1.12) translateY(-2px); }
.fh-tcard__front b { font: 700 15px/1.3 var(--fh-font-heading); color: var(--fh-ink); }
.fh-tcard__back small { opacity: .85; font-size: 12px; }
.fh-tcard__back b { font-size: 13.5px; line-height: 1.6; }
.fh-tcard__rar { position: absolute; top: 8px; inset-inline-start: 8px; padding: 2px 8px; border-radius: 999px; background: #fff; color: color-mix(in srgb, var(--c) 75%, #22124f); font-size: 11px; font-weight: 800; box-shadow: 0 3px 8px -4px rgba(34, 18, 79, .4); }
.fh-tcard__n { position: absolute; top: 8px; inset-inline-end: 8px; padding: 2px 7px; border-radius: 999px; background: var(--fh-ink); color: #fff; font-size: 11px; font-weight: 700; }
.fh-tcard--r .fh-tcard__front { box-shadow: inset 0 0 0 3px #7cc0ff, 0 0 0 3px rgba(59, 130, 246, .15), 0 16px 30px -18px rgba(59, 130, 246, .7); }
.fh-tcard--l .fh-tcard__front { box-shadow: inset 0 0 0 3px #ffc531, 0 0 24px -4px rgba(255, 197, 49, .85), 0 16px 30px -18px rgba(224, 165, 0, .9); }
.fh-tcard--l.is-owned .fh-tcard__front::before { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .7) 45%, transparent 60%) 0 0 / 250% 100%; animation: fh-sheen 3s ease-in-out infinite; pointer-events: none; }
.fh-tcard.is-shiny .fh-tcard__front { background: linear-gradient(135deg, #ffe0ec, #fff4c2, #d7fff5, #e6dcff); background-size: 300% 300%; animation: fh-holo 5s ease infinite; }
.fh-tcard.is-shiny .fh-tcard__front::after { content: "✨ لامع"; position: absolute; bottom: 8px; padding: 2px 8px; border-radius: 999px; background: #fff; color: #b07f00; font-size: 11px; font-weight: 800; }
@keyframes fh-sheen { 0%, 60% { background-position: 150% 0; } 100% { background-position: -50% 0; } }
@keyframes fh-holo { 50% { background-position: 100% 100%; } }
.fh-tcard.is-locked .fh-tcard__front { background: radial-gradient(circle at 50% 40%, #fff, transparent 70%), repeating-linear-gradient(45deg, #f4f1fb 0 10px, #eeeaf8 10px 20px); box-shadow: inset 0 0 0 2px #e4ddf7; }
.fh-tcard.is-locked .fh-tcard__emoji { filter: grayscale(1) opacity(.4); }
.fh-tcard.is-locked b { color: #a39bbd; }
.fh-tcard.is-reveal { animation: fh-reveal 1s var(--fh-bounce); }
@keyframes fh-reveal { 0% { transform: scale(.6) rotate(-12deg); } 60% { transform: scale(1.12) rotate(4deg); } }

/* ------------------------------------------------------------------ wardrobe */
.fh-wardrobe { display: grid; grid-template-columns: 350px 1fr; gap: 22px; align-items: start; }
.fh-wardrobe__stage { position: sticky; top: 100px; isolation: isolate; display: grid; justify-items: center; gap: 12px; padding: 30px 24px 24px; overflow: hidden; border-radius: 34px; background: var(--sv-cosmos); color: #fff; box-shadow: 0 40px 70px -40px rgba(18, 8, 48, .95); }
.fh-wardrobe__stage > :not(.fh-sky):not(.fh-wardrobe__spot):not(.fh-wardrobe__floor) { position: relative; z-index: 2; }
.fh-wardrobe__spot { position: absolute; z-index: 1; top: -40px; left: 50%; width: 300px; height: 400px; transform: translateX(-50%); background: radial-gradient(ellipse at top, rgba(255, 230, 140, .4), transparent 70%); clip-path: polygon(38% 0, 62% 0, 100% 100%, 0 100%); animation: fhv-spot 6s ease-in-out infinite; }
@keyframes fhv-spot { 50% { opacity: .7; } }
.fh-wardrobe__floor { position: absolute; z-index: 1; bottom: 66px; left: 50%; width: 230px; height: 46px; margin-left: -115px; border-radius: 50%; background: radial-gradient(ellipse, rgba(255, 224, 138, .35), rgba(155, 123, 255, .15) 55%, transparent 72%); box-shadow: inset 0 0 0 1.5px rgba(255, 224, 138, .35); }
.fh-wardrobe__fahim { width: 240px; height: 240px; transition: transform .45s var(--sv-spring), opacity .2s ease; }
.fh-wardrobe__fahim .fh-fahim { width: 100%; height: 100%; animation: fhv-bob 4.5s var(--sv-ease) infinite; }
.fh-wardrobe__fahim.is-changing { opacity: .4; transform: scale(.92); }
.fh-wardrobe__fahim.is-pop { animation: fh-reveal .6s var(--fh-bounce); }
.fh-wardrobe__hint { margin: 0; padding: 9px 16px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 999px; background: rgba(255, 255, 255, .1); backdrop-filter: blur(6px); font-size: 14px; text-align: center; }
.fh-wardrobe__racks { padding: 18px; border: 1px solid var(--sv-line, #ebe5f7); border-radius: 30px; background: #fff; box-shadow: var(--sv-card); }
.fh-seg--4 { grid-template-columns: repeat(4, 1fr); background: #f3eeff; box-shadow: inset 0 1px 3px rgba(34, 18, 79, .08); }
.fh-seg--4 button { transition: color .2s ease, background-color .25s ease, box-shadow .25s ease !important; }
.fh-seg--4 button[aria-selected="true"] { background: linear-gradient(135deg, #8b5cff, var(--fh-primary)) !important; color: #fff !important; box-shadow: 0 8px 18px -8px rgba(106, 61, 232, .8) !important; }
.fh-rack { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; animation: fh-rise .45s var(--sv-ease); }
.fh-item {
	position: relative;
	display: grid;
	justify-items: center;
	gap: 4px;
	width: 100%;
	padding: 14px 8px 14px !important;
	border: 2px solid transparent !important;
	border-radius: 24px !important;
	background: radial-gradient(circle at 50% 30%, #fff, #faf7ff) !important;
	color: var(--fh-ink) !important;
	font: inherit !important;
	cursor: pointer;
	box-shadow: inset 0 0 0 1px var(--sv-line, #ebe5f7), 0 12px 26px -22px rgba(34, 18, 79, .6) !important;
	transition: transform .4s var(--sv-spring), border-color .2s ease, box-shadow .25s ease !important;
}
.fh-item:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px #d8ccff, 0 20px 30px -22px rgba(106, 61, 232, .7) !important; }
.fh-item.is-on { border-color: var(--fh-primary) !important; background: radial-gradient(circle at 50% 30%, #fff, var(--fh-soft)) !important; box-shadow: 0 0 0 4px rgba(106, 61, 232, .12), 0 18px 30px -20px rgba(106, 61, 232, .8) !important; }
.fh-item.is-on::after { content: "✓"; position: absolute; top: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--fh-primary); color: #fff; font-size: 12px; font-weight: 800; }
.fh-item__art { width: 86px; height: 86px; transition: transform .45s var(--sv-spring); }
.fh-item:hover .fh-item__art { transform: scale(1.08) rotate(-4deg); }
.fh-item__art .fh-fahim { width: 100%; height: 100%; }
.fh-item b { font-size: 14px; }
.fh-item small { color: var(--fh-muted); font-size: 12px; }
.fh-item.is-on small { color: var(--fh-primary); font-weight: 700; }
.fh-item.is-locked .fh-item__art { filter: grayscale(1) brightness(1.1) opacity(.45); }
.fh-item.is-locked { background: #f8f6fd !important; }
.fh-item.is-locked:hover .fh-item__art { transform: none; }
.fh-item.is-nope { animation: fh-shake .4s ease; }
@keyframes fh-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

/* ------------------------------------------------------------------ missions */
.fh-mgroup { margin-bottom: 18px; padding: 22px; border: 1px solid var(--sv-line, #ebe5f7); border-radius: 28px; background: radial-gradient(420px 140px at 100% 0, rgba(34, 197, 94, .07), transparent 70%), #fff; box-shadow: var(--sv-card); }
.fh-mgroup h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 4px; font-size: 21px; }
.fh-mgroup h2 span { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px; background: linear-gradient(145deg, #ecfdf3, #d1fae5); font-size: 22px; box-shadow: inset 0 0 0 1px #bbf0cf; }
.fh-mgroup > p { margin: 0 0 14px; color: var(--fh-muted); font-size: 14px; line-height: 1.7; }
.fh-mlist { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fh-mission { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid #f0ecfa; border-radius: 20px; background: #fbfaff; transition: background-color .3s ease, transform .35s var(--sv-spring), border-color .3s ease; }
.fh-mission:hover { transform: translateX(-3px); border-color: #e2d8ff; }
[dir="ltr"] .fh-mission:hover { transform: translateX(3px); }
.fh-mission p { flex: 1; margin: 0; font-size: 15px; line-height: 1.6; }
.fh-mission small { color: var(--fh-muted); font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.fh-mission__check { display: grid; place-items: center; width: 36px; height: 36px; flex: none; border-radius: 50%; background: #fff; color: #c4bbe2; font-size: 18px; box-shadow: inset 0 0 0 2px #e4ddf7; }
.fh-mission.is-pending { border-color: #fde9a8; background: #fffaeb; }
.fh-mission.is-pending .fh-mission__check { box-shadow: inset 0 0 0 2px #fcd877; }
.fh-mission.is-confirmed { border-color: #c9f0d8; background: linear-gradient(135deg, #ecfdf3, #f7fff9); }
.fh-mission.is-confirmed .fh-mission__check { background: linear-gradient(135deg, #fff3c4, #ffe08a); box-shadow: 0 0 14px -2px rgba(255, 197, 49, .8); }
.fh-mission.is-confirmed small { color: #15803d; }
.fh-mission.is-flash { animation: fh-reveal .6s var(--fh-bounce); }

/* ------------------------------------------------------------------ teach فهيم */
.fh-teach { display: grid; gap: 18px; }
.fh-teach__pick { padding: 18px 20px; border: 1px solid var(--sv-line, #ebe5f7); border-radius: 26px; background: #fff; box-shadow: var(--sv-card); }
.fh-teach__pick b { display: block; margin-bottom: 10px; font: 700 17px/1.4 var(--fh-font-heading); }
.fh-teach__lessons { display: flex; flex-wrap: wrap; gap: 8px; }
.fh-teach__lessons .fh-chip-btn { transition: transform .35s var(--sv-spring), background-color .2s ease, border-color .2s ease, color .2s ease !important; }
.fh-teach__lessons .fh-chip-btn:hover { transform: translateY(-2px); }
.fh-teach__lessons .fh-chip-btn.is-on { border-color: transparent !important; background: linear-gradient(135deg, #8b5cff, var(--fh-primary)) !important; color: #fff !important; box-shadow: 0 10px 20px -10px rgba(106, 61, 232, .8) !important; }
.fh-teach__stage { position: relative; display: flex; align-items: flex-end; gap: 16px; padding: 22px 24px 0; overflow: hidden; border-radius: 30px; background: radial-gradient(360px 200px at 100% 0, rgba(255, 224, 138, .45), transparent 70%), radial-gradient(400px 220px at 0 100%, rgba(155, 123, 255, .22), transparent 70%), linear-gradient(135deg, #f6f2ff, #fff); border: 1px solid #e7defe; }
.fh-teach__fahim { width: 130px; height: 130px; flex: none; }
.fh-teach__fahim .fh-fahim { width: 100%; height: 100%; }
.fh-teach.is-thinking .fh-teach__fahim { animation: fh-hop .8s ease-in-out infinite; }
.fh-teach__bubble { position: relative; flex: 1; margin-bottom: 34px; padding: 18px 20px; border-radius: 26px; border-end-start-radius: 6px; background: #fff; font-size: 17px; font-weight: 500; line-height: 1.8; box-shadow: 0 20px 40px -26px rgba(34, 18, 79, .6), inset 0 0 0 1px #efe9ff; animation: fh-rise .5s var(--sv-ease); }
.fh-teach__bubble span { color: var(--fh-primary); font-weight: 800; }
.fh-teach__form { display: grid; gap: 10px; padding: 18px; border: 1px solid var(--sv-line, #ebe5f7); border-radius: 28px; background: #fff; box-shadow: var(--sv-card); }
.fh-teach__form textarea { width: 100%; min-height: 130px; padding: 14px 16px !important; border: 2px solid #ece6ff !important; border-radius: 20px !important; background: #fbfaff !important; color: var(--fh-ink); font: 500 16px/1.8 var(--fh-font-body) !important; resize: vertical; box-shadow: none !important; transition: border-color .2s ease, box-shadow .25s ease, background-color .2s ease; }
.fh-teach__form textarea:focus { border-color: var(--fh-primary) !important; outline: none; background: #fff !important; box-shadow: 0 0 0 5px rgba(106, 61, 232, .12) !important; }
.fh-teach__actions { display: flex; justify-content: flex-end; gap: 10px; }
.fh-teach__result { display: grid; justify-items: center; gap: 10px; padding: 26px; border: 1px solid var(--sv-line, #ebe5f7); border-radius: 30px; background: radial-gradient(420px 200px at 50% 0, #fff6d8, transparent 70%), #fff; text-align: center; box-shadow: var(--sv-card); animation: fh-rise .45s var(--sv-ease); }
.fh-teach__fb { margin: 0; font-size: 17px; line-height: 1.8; }
.fh-teach__next { margin: 0; padding: 10px 16px; border-radius: 16px; background: var(--fh-soft); color: var(--fh-primary); font-weight: 700; }

/* ------------------------------------------------------------------ saved */
.fh-saved__how { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; padding: 16px 18px; border: 1px solid #c8efe9; border-radius: 24px; background: radial-gradient(360px 160px at 100% 0, rgba(20, 184, 166, .14), transparent 70%), #fff; box-shadow: var(--sv-card); }
.fh-saved__how > span { display: grid; place-items: center; width: 54px; height: 54px; flex: none; border-radius: 18px; background: linear-gradient(145deg, #e6fffa, #c8f5ec); font-size: 27px; box-shadow: inset 0 0 0 1px #a7eadd; }
.fh-saved__how p { margin: 0; line-height: 1.8; }
.fh-saved__how small { color: var(--fh-muted); }
.fh-saved__list { display: grid; gap: 10px; margin: 0 0 16px; padding: 0; list-style: none; }
.fh-saved__list:empty { margin: 0; }
.fh-saved__item { display: flex; align-items: center; gap: 8px; padding: 10px; border: 1px solid var(--sv-line, #ebe5f7); border-radius: 22px; background: #fff; box-shadow: var(--sv-card); animation: fh-rise .45s var(--sv-ease) both; transition: transform .4s var(--sv-spring); }
.fh-saved__item:hover { transform: translateY(-2px); }
.fh-saved__item a { display: flex; flex: 1; align-items: center; gap: 12px; min-width: 0; color: var(--fh-ink) !important; text-decoration: none !important; }
.fh-saved__icon { display: grid; place-items: center; width: 50px; height: 50px; flex: none; border-radius: 16px; background: var(--fh-soft); font-size: 24px; }
.fh-saved__item b { display: block; overflow: hidden; font: 700 15px/1.4 var(--fh-font-heading); text-overflow: ellipsis; white-space: nowrap; }
.fh-saved__item small { color: var(--fh-muted); font-size: 12.5px; }
.fh-saved__item .fh-chat__tool { background: #fff0f2 !important; color: #d6455d !important; }
.fh-saved__item.is-ready .fh-saved__icon { background: #ecfdf3; }

/* ------------------------------------------------------------------ PIN boxes + parents */
.fh-pin { position: relative; isolation: isolate; display: grid; justify-items: center; gap: 10px; max-width: 440px; margin: 0 auto; padding: 34px 26px 28px; overflow: hidden; border-radius: 34px; background: var(--sv-cosmos); color: #fff; text-align: center; box-shadow: 0 40px 70px -40px rgba(18, 8, 48, .95); }
.fh-pin > :not(.fh-sky) { position: relative; z-index: 1; }
.fh-pin form { display: grid; gap: 12px; width: 100%; }
.fh-pin__lock { display: grid; place-items: center; width: 88px; height: 88px; border-radius: 28px; background: radial-gradient(circle at 30% 25%, rgba(255, 255, 255, .5), transparent 55%), linear-gradient(135deg, #ffe08a, var(--fh-secondary) 50%, #f2a93b); font-size: 42px; box-shadow: 0 0 0 8px rgba(255, 197, 49, .1), 0 0 50px -6px rgba(255, 197, 49, .7), 0 18px 30px -14px rgba(0, 0, 0, .5); animation: fhv-bob 4.5s var(--sv-ease) infinite; }
.fh-pin h2 { margin: 8px 0 0; color: #fff; font-size: 25px; }
.fh-pin p { margin: 0; color: #cfc4f5; line-height: 1.75; }
.fh-pin__boxes { display: flex; justify-content: center; gap: 10px; }
.fh-pin__boxes input { width: 60px !important; height: 68px !important; padding: 0 !important; border: 2px solid #e4ddf7 !important; border-radius: 18px !important; background: #fbfaff !important; color: var(--fh-ink) !important; font: 700 28px/1 var(--fh-font-heading) !important; text-align: center; box-shadow: none !important; transition: border-color .2s ease, transform .3s var(--sv-spring, ease), box-shadow .2s ease; }
.fh-pin__boxes input:focus { border-color: var(--fh-primary) !important; background: #fff !important; outline: none; transform: translateY(-3px); box-shadow: 0 0 0 4px rgba(106, 61, 232, .14) !important; }
.fh-pin .fh-pin__boxes input { border-color: rgba(255, 255, 255, .22) !important; background: rgba(255, 255, 255, .1) !important; color: #fff !important; }
.fh-pin .fh-pin__boxes input:focus { border-color: var(--fh-secondary) !important; background: rgba(255, 255, 255, .16) !important; box-shadow: 0 0 0 4px rgba(255, 197, 49, .25), 0 0 26px -4px rgba(255, 197, 49, .6) !important; }
.fh-pin .fh-btn--primary { background: linear-gradient(135deg, #ffe08a, var(--fh-secondary) 45%, #f2a93b) !important; color: #2a1660 !important; box-shadow: 0 12px 28px -10px rgba(255, 197, 49, .7) !important; }
.fh-pin .fh-form__msg { color: #ffd2d2; }
.fh-pin__boxes.is-shake { animation: fh-shake .4s ease; }
.fh-pin--inline { max-width: none; margin-top: 12px; padding: 16px; background: var(--fh-soft); color: var(--fh-ink); box-shadow: none; }
.fh-pin--inline .fh-pin__boxes input { border-color: #e4ddf7 !important; background: #fff !important; color: var(--fh-ink) !important; }

.fh-parent__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 16px; }
.fh-parent__top .fh-my-chip { background: #ecfdf3; color: #15803d; box-shadow: inset 0 0 0 1px #bbf0cf; }
.fh-parent__top .fh-btn--soft { background: #fff !important; box-shadow: inset 0 0 0 1px var(--sv-line, #ebe5f7), 0 8px 18px -14px rgba(34, 18, 79, .5) !important; }
.fh-parent__letter { width: 100%; margin-bottom: 18px; }
.fh-parent__letter:empty { display: none; }
.fh-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.fh-kpi { position: relative; display: grid; gap: 4px; padding: 18px 18px 16px; overflow: hidden; border: 1px solid var(--sv-line, #ebe5f7); border-radius: 24px; background: #fff; box-shadow: var(--sv-card); transition: transform .4s var(--sv-spring); }
.fh-kpi:hover { transform: translateY(-3px); }
.fh-kpi::before { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 13px; background: var(--k, #f1eaff); font-size: 20px; }
.fh-kpi::after { content: ""; position: absolute; top: -40px; inset-inline-end: -40px; width: 110px; height: 110px; border-radius: 50%; background: var(--k, #f1eaff); opacity: .5; }
.fh-kpi:nth-child(1) { --k: #efe8ff; } .fh-kpi:nth-child(1)::before { content: "📚" / ""; }
.fh-kpi:nth-child(2) { --k: #e3f8f4; } .fh-kpi:nth-child(2)::before { content: "⏱️" / ""; }
.fh-kpi:nth-child(3) { --k: #ffeef0; } .fh-kpi:nth-child(3)::before { content: "💜" / ""; }
.fh-kpi:nth-child(4) { --k: #fff4d6; } .fh-kpi:nth-child(4)::before { content: "🔥" / ""; }
.fh-kpi small { color: var(--fh-muted); font-size: 13px; }
.fh-kpi b { overflow: hidden; color: var(--fh-ink); font: 800 28px/1.2 var(--fh-font-heading); text-overflow: ellipsis; white-space: nowrap; }
.fh-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 8px; height: 180px; padding: 10px 6px 0; border-radius: 18px; background: repeating-linear-gradient(0deg, transparent 0 39px, #f3effb 39px 40px); }
.fh-week__day { display: grid; grid-template-rows: 1fr auto; gap: 6px; text-align: center; }
.fh-week__day small { color: var(--fh-muted); font-size: 12px; font-weight: 700; }
.fh-week__bars { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.fh-week__bars i { position: relative; width: 16px; height: max(4px, var(--h)); border-radius: 9px 9px 4px 4px; animation: fh-bar 1s var(--sv-ease) both; }
.fh-week__day:nth-child(2) i { animation-delay: 50ms; } .fh-week__day:nth-child(3) i { animation-delay: 100ms; } .fh-week__day:nth-child(4) i { animation-delay: 150ms; }
.fh-week__day:nth-child(5) i { animation-delay: 200ms; } .fh-week__day:nth-child(6) i { animation-delay: 250ms; } .fh-week__day:nth-child(7) i { animation-delay: 300ms; }
.fh-week__l { background: linear-gradient(180deg, #a98bff, var(--fh-primary)); box-shadow: 0 6px 14px -6px rgba(106, 61, 232, .7); }
.fh-week__m { background: linear-gradient(180deg, #6ee7cf, var(--fh-teal)); opacity: .85; }
.fh-week__l em { position: absolute; top: -20px; left: 50%; transform: translateX(-50%); color: var(--fh-primary); font-size: 12px; font-style: normal; font-weight: 800; }
@keyframes fh-bar { from { height: 4px; } }
.fh-week__legend { display: flex; justify-content: center; gap: 6px 14px; align-items: center; margin: 12px 0 0; color: var(--fh-muted); font-size: 13px; }
.fh-week__legend span { display: inline-block; width: 12px; height: 12px; border-radius: 4px; }
.fh-week__legend .is-l { background: var(--fh-primary); }
.fh-week__legend .is-m { background: var(--fh-teal); }
.fh-panel--tip { display: flex; align-items: center; gap: 18px; overflow: hidden; border-color: #e7defe; background: radial-gradient(360px 200px at 100% 0, rgba(255, 224, 138, .4), transparent 70%), linear-gradient(135deg, #fff, #f6f2ff); }
.fh-panel--tip p { margin: 0 0 12px; line-height: 1.8; }
.fh-panel__fahim { width: 96px; height: 96px; flex: none; animation: fhv-bob 4.5s var(--sv-ease) infinite; }
.fh-confirm { display: grid; gap: 8px; margin: 0; padding: 0; list-style: none; }
.fh-confirm li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border: 1px solid #fde9a8; border-radius: 20px; background: #fffaeb; transition: opacity .35s ease, transform .35s ease; }
.fh-confirm li.is-gone { opacity: 0; transform: translateX(40px); }
.fh-confirm li > span { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 14px; background: #fff; font-size: 22px; }
.fh-confirm p { flex: 1; margin: 0; line-height: 1.6; }
.fh-confirm p small { display: block; color: var(--fh-muted); font-size: 12.5px; }
.fh-settings { display: grid; gap: 12px; }
.fh-setting { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin: 0; padding: 16px; border: 1px solid #f0ecfa; border-radius: 20px; background: #fbfaff; transition: border-color .2s ease; }
.fh-setting:hover { border-color: #e2d8ff; }
.fh-setting b { display: block; font-size: 15px; }
.fh-setting small { display: block; color: var(--fh-muted); font-size: 13px; line-height: 1.6; }
.fh-setting select, .fh-host select { min-width: 150px; height: 48px; padding: 0 14px !important; border: 2px solid #e4ddf7 !important; border-radius: 14px !important; background: #fff !important; color: var(--fh-ink); font: 700 15px var(--fh-font-body) !important; transition: border-color .2s ease, box-shadow .2s ease; }
.fh-setting select { flex: 0 0 auto; width: 220px; max-width: 45%; }
.fh-setting select:focus, .fh-host select:focus { border-color: var(--fh-primary) !important; box-shadow: 0 0 0 4px rgba(106, 61, 232, .12) !important; outline: none; }
.fh-settings__row { display: flex; flex-wrap: wrap; gap: 10px; }

/* ------------------------------------------------------------------ library session */
.fh-host .fh-field select { width: 100%; }
.fh-host__new { max-width: 540px; margin-inline: auto; display: grid; gap: 14px; }
.fh-screen { position: relative; display: grid; gap: 18px; padding: 28px; border-radius: 34px; background: var(--sv-cosmos, radial-gradient(circle at 90% 0, #4b2aa8, var(--fh-ink) 60%)); color: #fff; box-shadow: 0 40px 70px -40px rgba(18, 8, 48, .95); }
.fh-screen:fullscreen { padding: 5vh 6vw; border-radius: 0; overflow: auto; }
.fh-screen__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 14px; }
.fh-screen__code, .fh-screen__players { display: grid; gap: 2px; padding: 14px 22px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 24px; background: rgba(255, 255, 255, .08); }
.fh-screen__code b { color: var(--fh-secondary); font: 700 clamp(46px, 8vw, 84px)/1 var(--fh-font-heading); letter-spacing: .08em; direction: ltr; text-shadow: 0 0 30px rgba(255, 197, 49, .5); }
.fh-screen__code span { opacity: .8; font-size: 14px; direction: ltr; }
.fh-screen__players { justify-items: center; }
.fh-screen__players b { font: 700 clamp(36px, 6vw, 60px)/1 var(--fh-font-heading); }
.fh-screen__q h2 { margin: 6px 0 18px; color: #fff; font-size: clamp(26px, 4.4vw, 48px); line-height: 1.4; }
.fh-screen__q small { padding: 4px 12px; border-radius: 999px; background: rgba(255, 255, 255, .14); font-weight: 700; }
.fh-screen__q ol { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 0; padding: 0; list-style: none; }
.fh-screen__q li { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border: 1px solid rgba(255, 255, 255, .12); border-radius: 22px; background: rgba(255, 255, 255, .1); font-size: clamp(18px, 2.4vw, 28px); font-weight: 700; transition: all .3s ease; }
.fh-screen__q li em { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 14px; background: var(--fh-secondary); color: var(--fh-ink); font-style: normal; }
.fh-screen__q li.is-right { background: #22c55e; transform: scale(1.03); }
.fh-screen__q li.is-dim { opacity: .35; }
.fh-screen__why { margin: 14px 0 0; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .12); font-size: clamp(16px, 2vw, 22px); }
.fh-screen__bar { height: 22px; overflow: hidden; border-radius: 99px; background: rgba(255, 255, 255, .14); }
.fh-screen__bar i { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--fh-teal), var(--fh-secondary)); transition: width .8s var(--fh-ease); }
.fh-screen__goal p { margin: 8px 0 0; font-size: 17px; }
.fh-screen__goal b { color: var(--fh-secondary); }
.fh-screen__actions { display: flex; flex-wrap: wrap; gap: 10px; }
.fh-screen .fh-btn--soft { background: rgba(255, 255, 255, .14) !important; color: #fff !important; }
.fh-play { display: grid; gap: 16px; }
.fh-play__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.fh-play h2 { margin: 0; font-size: clamp(22px, 5vw, 30px); line-height: 1.5; text-align: center; }
.fh-play__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.fh-play__opt { display: grid; justify-items: center; gap: 8px; min-height: 120px; padding: 16px !important; border: 0 !important; border-radius: 26px !important; background: var(--c) !important; color: #fff !important; font: 700 18px/1.4 var(--fh-font-body) !important; cursor: pointer; box-shadow: 0 8px 0 color-mix(in srgb, var(--c) 70%, #000) !important; transition: transform .1s ease, box-shadow .1s ease, opacity .2s ease !important; }
.fh-play__opt em { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 14px; background: rgba(255, 255, 255, .25); font-style: normal; }
.fh-play__opt:active { transform: translateY(6px); box-shadow: 0 2px 0 color-mix(in srgb, var(--c) 70%, #000) !important; }
.fh-play__opt:disabled { opacity: .45; cursor: default; }
.fh-play__opt.is-picked { opacity: 1; outline: 5px solid #fff; outline-offset: -9px; }
.fh-play__wait { display: grid; justify-items: center; gap: 4px; text-align: center; }
.fh-play__wait .fh-fahim { width: 100px; height: 100px; animation: fh-hop 1.4s ease-in-out infinite; }
.fh-play__wait p { margin: 0; font-size: 17px; font-weight: 700; }

/* ------------------------------------------------------------------ lesson tools */
.fh-lessontools { position: fixed; bottom: 22px; inset-inline-end: 22px; z-index: 9989; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; font-family: var(--fh-font-body); }
.fh-lt { display: inline-flex; align-items: center; gap: 8px; padding: 12px 18px !important; border: 0 !important; border-radius: 999px !important; background: #fff !important; color: var(--fh-ink) !important; font: 700 15px/1 var(--fh-font-body) !important; cursor: pointer; box-shadow: 0 14px 30px -14px rgba(34, 18, 79, .55) !important; transition: transform .2s var(--fh-bounce) !important; }
.fh-lt:hover { transform: translateY(-3px); }
.fh-lt--ask { background: linear-gradient(135deg, #7c4dff, var(--fh-primary)) !important; color: #fff !important; animation: fh-nudge 4s ease-in-out 3s 2; }
.fh-lt.is-on { background: #ecfdf3 !important; color: #15803d !important; }
@keyframes fh-nudge { 0%, 90%, 100% { transform: none; } 92%, 96% { transform: rotate(-4deg) scale(1.04); } 94%, 98% { transform: rotate(4deg) scale(1.04); } }

/* ------------------------------------------------------------------ time-up screen */
.fh-timeup[hidden], .fh-lessontools[hidden] { display: none !important; } /* pages without the .fh-app body class (Tutor 4 dashboard) must still honour [hidden] */
.fh-timeup { position: fixed; inset: 0; z-index: 100020; display: grid; place-items: center; padding: 20px; background: radial-gradient(circle at 50% 20%, rgba(124, 77, 255, .92), rgba(34, 18, 79, .97)); backdrop-filter: blur(10px); font-family: var(--fh-font-body); }
.fh-timeup__card { display: grid; justify-items: center; gap: 10px; max-width: 440px; padding: 30px 24px; border-radius: 32px; background: #fff; text-align: center; box-shadow: var(--fh-shadow-lg); animation: fh-rise .5s var(--fh-ease); }
.fh-timeup__fahim { width: 130px; height: 130px; }
.fh-timeup h2 { margin: 0; color: var(--fh-ink); font-size: 24px; }
.fh-timeup p { margin: 0; color: var(--fh-muted); line-height: 1.8; }
.fh-timeup details { width: 100%; margin-top: 8px; padding: 10px; border-radius: 18px; background: var(--fh-soft); }
.fh-timeup summary { color: var(--fh-primary); font-weight: 700; cursor: pointer; }
.fh-timeup form { display: grid; justify-items: center; gap: 10px; margin-top: 12px; }

/* ------------------------------------------------------------------ toast, voice, chat extras */
.fh-toast { position: fixed; left: 50%; bottom: calc(26px + var(--fh-safe-b)); z-index: 100030; max-width: min(440px, calc(100vw - 32px)); padding: 12px 20px; border-radius: 18px; background: var(--fh-ink); color: #fff; font: 700 15px/1.6 var(--fh-font-body); text-align: center; box-shadow: 0 20px 40px -16px rgba(34, 18, 79, .7); opacity: 0; transform: translate(-50%, 20px); transition: opacity .3s ease, transform .35s var(--fh-ease); pointer-events: none; }
.fh-toast.is-in { opacity: 1; transform: translate(-50%, 0); }

.fh-mic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; padding: 0 !important; border: 0 !important; border-radius: 50% !important; background: var(--fh-soft) !important; font-size: 18px !important; cursor: pointer; box-shadow: none !important; }
.fh-mic.is-on { background: #ffe4e8 !important; animation: fh-mic 1s ease-in-out infinite; }
@keyframes fh-mic { 0%, 100% { box-shadow: 0 0 0 0 rgba(229, 72, 77, .45) !important; } 50% { box-shadow: 0 0 0 10px rgba(229, 72, 77, 0) !important; } }
.fh-chat__tool.is-on { background: var(--fh-secondary) !important; }
.fh-msg__quiz { display: grid; gap: 8px; width: 88%; margin-top: 8px; }
.fh-msg__quiz button { display: flex; align-items: center; gap: 10px; padding: 10px 12px !important; border: 2px solid #ece6ff !important; border-radius: 16px !important; background: #fff !important; color: var(--fh-ink) !important; font: 700 14.5px/1.4 var(--fh-font-body) !important; text-align: start; cursor: pointer; box-shadow: none !important; }
.fh-msg__quiz button em { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 10px; background: var(--fh-soft); color: var(--fh-primary); font-style: normal; }
.fh-msg__quiz.is-done button { cursor: default; opacity: .55; }
.fh-msg__quiz button.is-right { border-color: #22c55e !important; background: #ecfdf3 !important; opacity: 1; }
.fh-msg__quiz button.is-wrong { border-color: #f87171 !important; background: #fff5f5 !important; opacity: 1; }
.fh-msg__why { margin: 2px 0 0; padding: 10px 12px; border-radius: 14px; background: #fffaeb; font-size: 14px; line-height: 1.7; }

.fh-avatar__fahim { display: grid; place-items: center; width: 100%; height: 100%; background: radial-gradient(circle at 50% 40%, #fff 0 55%, #efe7ff 100%); }
.fh-avatar__fahim .fh-fahim { width: 118%; height: 118%; margin-top: 8%; }
.fh-acct-menu .is-my { background: var(--fh-soft) !important; color: var(--fh-primary) !important; font-weight: 700 !important; }

/* ------------------------------------------------------------------ night mode (9 pm – 6 am) */
html.fh-night body::after { content: ""; position: fixed; inset: 0; z-index: 2147483000; background: rgba(255, 150, 60, .06); mix-blend-mode: multiply; pointer-events: none; }
html.fh-night .fh-my, html.fh-night .fh-chat__panel { background: #170d36; color: #ece8ff; }
html.fh-night .fh-my { --sv-line: #33236b; }
html.fh-night .fh-my h1, html.fh-night .fh-my h2, html.fh-night .fh-my-head p { color: #f3efff; }
html.fh-night .fh-panel, html.fh-night .fh-hub-tile, html.fh-night .fh-mgroup, html.fh-night .fh-qcard, html.fh-night .fh-empty, html.fh-night .fh-pin--inline, html.fh-night .fh-kpi, html.fh-night .fh-hub-continue, html.fh-night .fh-saved__item, html.fh-night .fh-teach__bubble, html.fh-night .fh-teach__form, html.fh-night .fh-teach__pick, html.fh-night .fh-teach__stage, html.fh-night .fh-daily__result, html.fh-night .fh-daily__done, html.fh-night .fh-daily__push, html.fh-night .fh-album__tip, html.fh-night .fh-saved__how, html.fh-night .fh-item, html.fh-night .fh-teach__result, html.fh-night .fh-set, html.fh-night .fh-wardrobe__racks, html.fh-night .fh-note, html.fh-night .fh-hub-foot .fh-btn--soft, html.fh-night .kc-extra, html.fh-night .kc-extra a, html.fh-night .fh-msg__bubble, html.fh-night .fh-cc, html.fh-night .fh-chat__compose { background: #241552 !important; color: #ece8ff !important; border-color: #33236b !important; }
html.fh-night .fh-msg--user .fh-msg__bubble { background: linear-gradient(135deg, #7c4dff, var(--fh-primary)) !important; }
html.fh-night .fh-qcard__opt span, html.fh-night .fh-mission, html.fh-night .fh-setting, html.fh-night .fh-pin--inline .fh-pin__boxes input, html.fh-night .fh-teach__form textarea, html.fh-night .fh-confirm li, html.fh-night .fh-seg--4 { background: #2e1d63 !important; border-color: #3d2a7a !important; color: #ece8ff !important; }
html.fh-night .fh-muted, html.fh-night .fh-hub-tile small, html.fh-night .fh-kpi small, html.fh-night .fh-mgroup > p, html.fh-night .fh-setting small, html.fh-night .fh-daily__push small, html.fh-night .fh-saved__how small { color: #b9b0dc !important; }
html.fh-night .fh-kpi b { color: #f3efff; }
html.fh-night .fh-map__sea { background: radial-gradient(rgba(255, 255, 255, .05) 1.3px, transparent 1.5px) 0 0 / 26px 26px, linear-gradient(180deg, #1b1145, #23124f); }
html.fh-night .fh-island:not(.fh-island--fog) { background: radial-gradient(circle at 50% 120%, #3b2a7a, #241552 70%); box-shadow: 0 0 0 6px rgba(255, 255, 255, .05); }
html.fh-night .fh-stop__label, html.fh-night .fh-stop__core { background: #2e1d63; border-color: #3d2a7a; color: #ece8ff; }
html.fh-night .fh-tabbar { background: rgba(23, 13, 54, .94); border-top-color: rgba(255, 255, 255, .08); }
html.fh-night .fh-nav-tab { color: #a79dd4 !important; }
html.fh-night .fh-nav-tab.is-active { color: #c9b6ff !important; }
html.fh-night .fh-hub-tree, html.fh-night .fh-missions-tree { background: linear-gradient(135deg, #10301f, #163a26); border-color: #1d4a31; }
html.fh-night .fh-hub-tree p, html.fh-night .fh-missions-tree p { color: #a7d7b8; }
html.fh-night .fh-hub-tree b, html.fh-night .fh-missions-tree b { color: #d1fae5; }

/* ------------------------------------------------------------------ responsive */
@media (max-width: 1024px) {
	.fh-my { padding-top: 18px; }
	.fh-lessontools { bottom: calc(var(--fh-tabbar-h) + var(--fh-safe-b) + 14px); inset-inline-end: 12px; }
	.fh-daily, .fh-wardrobe { grid-template-columns: 1fr; }
	.fh-daily__flame, .fh-wardrobe__stage { position: relative; top: 0; }
	.fh-wardrobe__fahim { width: 190px; height: 190px; }
	.fh-wardrobe__floor { bottom: 62px; width: 190px; margin-left: -95px; }
	.fh-kpis { grid-template-columns: 1fr 1fr; }
	.fh-hub-grid { grid-template-columns: 1fr 1fr; }
	.fh-toast { bottom: calc(var(--fh-tabbar-h) + var(--fh-safe-b) + 16px); }
}
@media (max-width: 767px) {
	.fh-my { padding-bottom: calc(var(--fh-tabbar-h, 64px) + var(--fh-safe-b, 0px) + 28px); }
	.fh-my__wrap { width: calc(100% - 24px); }
	.fh-my-head { gap: 12px; margin-bottom: 18px; padding: 18px 16px; border-radius: 26px; }
	.fh-my-head__icon { width: 54px; height: 54px; border-radius: 18px; }
	.fh-my-head__icon span { font-size: 27px; }
	.fh-my-head p { font-size: 13.5px; }
	.fh-my-head__crumb { font-size: 11.5px; }
	.fh-my-back { width: 40px; height: 40px; }
	.fh-my-head__orbit { display: none; }
	.fh-hub-hero { grid-template-columns: auto 1fr; gap: 16px; padding: 24px 18px 18px; border-radius: 30px; }
	.fh-hub-hero__fahim { width: 98px; height: 98px; }
	.fh-hub-hero__fahim::before { inset: -12px; }
	.fh-hub-hero__fahim::after { top: -16px; transform-origin: 4px 65px; }
	.fh-hub-fahim { width: 84px; height: 84px; }
	.fh-hub-hero__fahim > span { width: 32px; height: 32px; font-size: 15px; }
	.fh-hub-stats { grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); gap: 8px; }
	.fh-hub-stats li { min-width: 0; padding: 10px 6px; border-radius: 18px; }
	.fh-hub-stats b { font-size: 23px; }
	.fh-hub-banner, .fh-hub-continue { gap: 12px; padding: 14px; border-radius: 22px; }
	.fh-hub-banner__flame { width: 48px; height: 48px; font-size: 26px; }
	.fh-hub-banner b { font-size: 17px; }
	.fh-hub-banner small { font-size: 13px; }
	.fh-hub-banner__go { width: 36px; height: 36px; font-size: 17px; }
	.fh-hub-grid { gap: 10px; }
	.fh-hub-tile { flex-direction: column; align-items: flex-start; gap: 10px; min-height: 0; padding: 14px; border-radius: 22px; }
	.fh-hub-grid > .fh-hub-tile:last-child:nth-child(odd) { grid-column: 1 / -1; flex-direction: row; align-items: center; }
	.fh-hub-tile__icon { width: 48px; height: 48px; font-size: 25px; border-radius: 16px; }
	.fh-hub-tile b { font-size: 16px; }
	.fh-hub-tile small { font-size: 12.5px; }
	.fh-hub-tile__go { position: absolute; top: 12px; inset-inline-end: 12px; width: 28px; height: 28px; }
	.fh-hub-grid > .fh-hub-tile:last-child:nth-child(odd) .fh-hub-tile__go { position: static; }
	.fh-hub-tree, .fh-missions-tree { padding: 16px; gap: 12px; border-radius: 24px; }
	.fh-tree { width: 96px; height: 96px; }
	.fh-hub-continue img { width: 70px; height: 52px; }
	.fh-hub-continue__play { width: 46px; height: 46px; }
	.fh-map { padding: 12px 6px; }
	.fh-island { padding: 14px 10px 6px; border-radius: 28px; }
	.fh-stop { max-width: 58%; gap: 6px; }
	.fh-stop__ring { width: 64px; height: 64px; padding: 5px; }
	.fh-stop__core { font-size: 22px; }
	.fh-stop__label { padding: 6px 9px; }
	.fh-stop__label b { font-size: 12.5px; }
	.fh-stop__fahim { top: -42px; width: 50px; height: 50px; }
	.fh-set { padding: 16px 14px; border-radius: 24px; }
	.fh-set header b { font-size: 18px; }
	.fh-cards { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 10px; }
	.fh-tcard__emoji { font-size: 40px; }
	.fh-tcard__front b { font-size: 13px; }
	.fh-tcard__back b { font-size: 12px; }
	.fh-wardrobe__racks { padding: 12px; border-radius: 24px; }
	.fh-rack { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
	.fh-item__art { width: 66px; height: 66px; }
	.fh-seg--4 button { font-size: 12.5px !important; }
	.fh-mgroup { padding: 16px 14px; border-radius: 24px; }
	.fh-mission { flex-wrap: wrap; }
	.fh-mission p { flex-basis: calc(100% - 50px); }
	.fh-mission .fh-btn, .fh-mission small { margin-inline-start: 48px; }
	.fh-teach__stage { padding: 16px 14px 0; gap: 10px; }
	.fh-teach__fahim { width: 86px; height: 86px; }
	.fh-teach__bubble { margin-bottom: 22px; font-size: 15.5px; }
	.fh-qcard { padding: 26px 16px 18px; border-radius: 26px; }
	.fh-panel { padding: 18px 16px; border-radius: 24px; }
	.fh-kpis { gap: 10px; }
	.fh-kpi { padding: 14px; border-radius: 20px; }
	.fh-kpi b { font-size: 23px; }
	.fh-setting { flex-direction: column; align-items: stretch; }
	.fh-setting select { width: 100%; max-width: none; }
	.fh-confirm li { flex-wrap: wrap; }
	.fh-confirm p { flex-basis: calc(100% - 54px); }
	.fh-pin { padding: 28px 18px 22px; border-radius: 28px; }
	.fh-pin__boxes input { width: 54px !important; height: 62px !important; }
	.fh-panel--tip { flex-direction: column; text-align: center; }
	.fh-lt { padding: 10px 14px !important; font-size: 14px !important; }
	.fh-daily__push { flex-wrap: wrap; }
	.fh-my-guest { padding: 30px 18px 26px; }
	.kc-extra { gap: 8px; padding: 12px; }
	.kc-extra a { flex: 1 1 calc(50% - 8px); justify-content: center; font-size: 13.5px; }
}

@media (prefers-reduced-motion: reduce) {
	.fh-hub-tile, .fh-stop, .fh-tree__leaf, .fh-tree__plant, .fh-qcard, .fh-hub-xp i::after, .fh-week__bars i, .fh-hub-continue__bar i::after, .fh-set header i::after, .fh-rack, .fh-saved__item, .fh-daily__result, .fh-daily__done, .fh-teach__bubble, .fh-teach__result { animation: none !important; }
	.fh-my-guest__fahim, .fh-stop__fahim, .fh-flame span, .fh-flame i, .fh-hub-banner__flame, .fh-map__sea i, .fh-stop.is-next .fh-stop__ring, .fh-stops__path path, .fh-stop.is-here .fh-stop__ring::after { animation: none !important; }
	.fh-sky, .fh-sky::after, .fh-my-head__orbit, .fh-my-head__icon span, .fh-hub-hero__bg i, .fh-hub-hero__fahim::before, .fh-hub-hero__fahim::after, .fh-hub-banner::after, .fh-hub-continue__play::after, .fh-album__tip::after, .fh-tcard--l.is-owned .fh-tcard__front::before, .fh-tcard.is-shiny .fh-tcard__front { animation: none !important; }
	.fh-empty .fh-fahim, .fh-daily__fahim, .fh-daily__done .fh-fahim, .fh-wardrobe__spot, .fh-wardrobe__fahim .fh-fahim, .fh-island--fog__emoji, .fh-island--fog__cloud, .fh-pin__lock, .fh-panel__fahim { animation: none !important; }
	.fh-hub-tile, .fh-hub-tile__icon, .fh-hub-tile__go, .fh-tcard, .fh-item, .fh-item__art, .fh-mission, .fh-island, .fh-kpi, .fh-hub-stats li, .fh-hub-banner, .fh-hub-continue, .kc-extra a, .fh-stop__ring, .fh-qcard__opt span { transition: none !important; }
	.fh-rv-on .fh-rv { opacity: 1 !important; transform: none !important; }
}
@media print {
	.fh-lessontools, .fh-timeup, .fh-toast { display: none !important; }
}

/* ------------------------------------------------------------------ theme button reset
 * Edumall gives every <button> a fixed 52px height and 50px line-height; these are composite buttons. */
.fh-tcard, .fh-item, .fh-play__opt, .fh-msg__quiz button, .fh-chip-btn, .fh-lt, .fh-qcard button, .fh-seg button, .fh-acct-menu button, .fh-hub-foot button {
	height: auto;
	line-height: 1.4;
}
.fh-tcard { height: auto !important; }
.fh-tcard__front, .fh-tcard__back, .fh-item b, .fh-item small { line-height: 1.45; white-space: normal; }
.fh-seg button { height: 42px; }
.fh-daily__week li { width: 34px; font-weight: 700; }

/* App feel: no site footer inside the learner space on phones and tablets. */
@media (max-width: 1024px) {
	.fh-my-page .page-footer, .fh-my-page #page-footer-wrapper, .fh-my-page .site-footer { display: none !important; }
}

/* Lesson page on phones: icon-only tools, and room so they never cover Tutor's buttons. */
@media (max-width: 767px) {
	body.single-lesson.fh-app { padding-bottom: calc(var(--fh-tabbar-h) + var(--fh-safe-b) + 130px); }
	.fh-lessontools { flex-direction: row; gap: 8px; }
	.fh-lt { width: 50px; height: 50px !important; padding: 0 !important; justify-content: center; font-size: 0 !important; }
	.fh-lt > span[aria-hidden] { font-size: 22px; }
	.fh-lt [data-label] { display: none; }
}

/* Desktop: stats sit in a row beside the greeting; islands share the width. */
@media (min-width: 768px) {
	.fh-hub-stats { grid-auto-flow: column; align-self: end; }
	.fh-hub-hero { align-items: center; }
}
@media (min-width: 1025px) {
	.fh-map { grid-template-columns: 1fr 1fr; align-items: start; }
	.fh-island--fog { grid-column: 1 / -1; }
	.fh-stop { max-width: 54%; }
}
