/* lingo.dad-look.com - Lingo: a bright violet language app with a book mascot and chunky buttons */
body { margin: 0; background: #f7f5ff; color: #2b2340; font-family: -apple-system, "Segoe UI", Helvetica, Arial, sans-serif; }
[hidden] { display: none !important; }
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 3px solid #6c4bd8; outline-offset: 3px; }
.lg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; margin: -1px; }
.lg-small { margin: 18px 0 0; font-size: 14px; line-height: 1.5; color: #6e6688; }
.lg-kicker { margin: 0; font-size: 13px; font-weight: 900; letter-spacing: 0.14em; text-transform: uppercase; color: #6c4bd8; }

/* The mascot: a book with two eyes */
.lg-mascot { position: relative; display: inline-flex; justify-content: center; gap: 12px; flex: none; width: 110px; height: 130px; border-radius: 10px 18px 18px 10px; background: #2b2340; box-shadow: inset 12px 0 0 #3d3358, 0 8px 0 #1c1630; box-sizing: border-box; padding-top: 34px; }
.lg-mascot::after { content: ""; position: absolute; left: 32px; right: 18px; bottom: 30px; height: 6px; border-radius: 3px; background: #ffc43d; }
.lg-mascot i { display: block; width: 26px; height: 30px; border-radius: 50%; background: #ffffff; position: relative; }
.lg-mascot i::after { content: ""; position: absolute; left: 8px; top: 9px; width: 12px; height: 14px; border-radius: 50%; background: #2b2340; }
.lg-mascot-small { width: 30px; height: 36px; gap: 4px; padding-top: 9px; border-radius: 4px 7px 7px 4px; box-shadow: inset 4px 0 0 #3d3358; }
.lg-mascot-small::after { left: 9px; right: 5px; bottom: 8px; height: 2px; }
.lg-mascot-small i { width: 8px; height: 9px; }
.lg-mascot-small i::after { left: 2px; top: 2px; width: 4px; height: 5px; }

/* Bar */
.lg-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 10px 20px; background: #ffffff; border-bottom: 2px solid #e6e1f5; }
.lg-logo { margin: 0; display: flex; align-items: center; gap: 10px; font-size: 26px; font-weight: 900; color: #6c4bd8; letter-spacing: -0.02em; }
.lg-stats { margin: 0; padding: 0; list-style: none; display: flex; gap: 18px; }
.lg-stats li { display: flex; align-items: center; gap: 6px; font-size: 17px; font-weight: 900; }
.lg-flame { width: 16px; height: 20px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: radial-gradient(circle at 50% 70%, #ffe27a 0 30%, #ff9b2f 60%); }
.lg-xp { padding: 2px 6px; border-radius: 6px; background: #ffc43d; color: #2b2340; font-size: 11px; }
.lg-heart { color: #ff4b6e; font-size: 20px; }

.lg-page { max-width: 760px; margin: 0 auto; padding: 28px 20px 0; }

/* Home */
.lg-hero { display: flex; gap: 26px; align-items: center; padding: 26px; border-radius: 22px; background: #ffffff; border: 2px solid #e6e1f5; }
.lg-hero h1 { margin: 0; font-size: clamp(26px, 4.5vw, 36px); line-height: 1.15; }
.lg-hero p { margin: 12px 0 0; font-size: 17px; line-height: 1.5; }
.lg-progress-text { font-size: 15px !important; color: #6e6688; }
.lg-bar-track { height: 16px; margin-top: 8px; border-radius: 8px; background: #e6e1f5; overflow: hidden; }
.lg-bar-track span { display: block; width: 0; height: 100%; border-radius: 8px; background: #ffc43d; transition: width 0.6s ease; }
.lg-section { margin: 30px 0 14px; font-size: 22px; }
.lg-courses { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.lg-course { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 64px; padding: 10px 14px; border: 2px solid #e6e1f5; border-bottom-width: 5px; border-radius: 16px; background: #ffffff; color: inherit; font: inherit; font-size: 16px; font-weight: 800; text-align: left; cursor: pointer; }
.lg-course:hover { border-color: #c8bdf0; background: #faf8ff; }
.lg-course:active { transform: translateY(2px); border-bottom-width: 3px; }
.lg-flag { flex: none; display: flex; align-items: center; justify-content: center; width: 40px; height: 30px; border-radius: 6px; background: #6c4bd8; color: #ffffff; font-size: 13px; font-weight: 900; letter-spacing: 0.05em; }
.lg-done { display: none; position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: #2fbf71; color: #ffffff; font-size: 14px; align-items: center; justify-content: center; }
.lg-course.is-done { border-color: #2fbf71; }
.lg-course.is-done .lg-done { display: flex; }
.lg-course.is-done .lg-flag { background: #2fbf71; }
.lg-exam { margin-top: 30px; padding: 22px; border-radius: 18px; background: #2b2340; color: #ffffff; }
.lg-exam h2 { margin: 0; font-size: 22px; }
.lg-exam p { margin: 6px 0 14px; color: #c9c0e6; }

/* Buttons */
.lg-button { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 30px; border: 0; border-radius: 14px; background: #6c4bd8; box-shadow: 0 5px 0 #4b2fb0; color: #ffffff; font: inherit; font-size: 17px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.04em; cursor: pointer; }
.lg-button:hover { background: #7b5be6; }
.lg-button:active { transform: translateY(3px); box-shadow: 0 2px 0 #4b2fb0; }
.lg-button:disabled { background: #d8d2ea; box-shadow: 0 5px 0 #bfb7d6; color: #8f88a6; cursor: default; transform: none; }
.lg-button-green { background: #2fbf71; box-shadow: 0 5px 0 #1f8f53; }
.lg-button-green:hover { background: #36cf7c; }

/* Lesson */
.lg-lesson { padding: 10px 0 20px; }
.lg-lesson-top { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.lg-quit { flex: none; width: 40px; height: 40px; border: 0; border-radius: 50%; background: none; color: #8f88a6; font-size: 30px; line-height: 1; cursor: pointer; }
.lg-lesson-track { flex: 1; margin: 0; }
.lg-lesson-track span { background: #2fbf71; }
.lg-heart-count { display: flex; align-items: center; gap: 4px; font-weight: 900; color: #ff4b6e; }
.lg-lesson h2 { margin: 6px 0 22px; font-size: clamp(22px, 4vw, 30px); line-height: 1.25; }
.lg-prompt { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.lg-speech { position: relative; padding: 14px 18px; border: 2px solid #e6e1f5; border-radius: 16px; background: #ffffff; font-size: 20px; font-weight: 700; }
.lg-speak { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border: 0; border-radius: 12px; background: #3a9cf0; box-shadow: 0 4px 0 #2477c0; color: #ffffff; font-size: 22px; cursor: pointer; }
.lg-options { display: flex; flex-direction: column; gap: 10px; }
.lg-option { min-height: 56px; padding: 10px 18px; border: 2px solid #e6e1f5; border-bottom-width: 5px; border-radius: 14px; background: #ffffff; color: inherit; font: inherit; font-size: 17px; font-weight: 700; text-align: left; cursor: pointer; }
.lg-option:hover { background: #faf8ff; }
.lg-option[aria-pressed="true"] { border-color: #6c4bd8; background: #efe9ff; color: #4b2fb0; }
.lg-answer { display: flex; flex-wrap: wrap; gap: 8px; min-height: 60px; padding: 10px 0; border-top: 2px solid #e6e1f5; border-bottom: 2px solid #e6e1f5; margin-bottom: 20px; }
.lg-bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.lg-tile { min-height: 46px; padding: 0 16px; border: 2px solid #e6e1f5; border-bottom-width: 4px; border-radius: 12px; background: #ffffff; color: inherit; font: inherit; font-size: 18px; font-weight: 700; cursor: pointer; }
.lg-tile:hover { background: #faf8ff; }
.lg-tile.is-used { visibility: hidden; }
.lg-rtl { direction: rtl; }
.lg-check-row { position: sticky; bottom: 0; padding: 16px 0; background: linear-gradient(transparent, #f7f5ff 30%); display: flex; justify-content: flex-end; }
.lg-check-row .lg-button { min-width: 180px; }
.lg-feedback { min-height: 0; border-radius: 16px; font-size: 17px; font-weight: 800; }
.lg-feedback:not(:empty) { margin-top: 20px; padding: 16px 18px; }
.lg-feedback.is-right { background: #d9f7e6; color: #1f8f53; }
.lg-feedback.is-wrong { background: #ffe1e7; color: #c4234a; }
.lg-feedback small { display: block; margin-top: 4px; font-size: 15px; font-weight: 600; }
.lg-finish { text-align: center; padding: 20px 0; }
.lg-finish .lg-mascot { margin-bottom: 18px; }
.lg-finish p { font-size: 18px; line-height: 1.5; }
.lg-finish-stats { display: flex; justify-content: center; gap: 14px; margin: 20px 0; }
.lg-finish-stats div { min-width: 110px; padding: 12px; border: 2px solid #ffc43d; border-radius: 14px; background: #fff8e2; font-weight: 900; }
.lg-finish-stats b { display: block; font-size: 26px; color: #e09a00; }

.lg-toast { position: fixed; left: 50%; bottom: 20px; z-index: 20; max-width: calc(100% - 40px); margin: 0; padding: 14px 20px; border-radius: 14px; background: #2b2340; color: #ffffff; font-size: 15px; font-weight: 700; transform: translateX(-50%); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25); }
.lg-toast:empty { display: none; }

/* Bottom */
.lg-bottom { max-width: 1000px; margin: 0 auto; padding: 56px 20px 48px; display: flex; flex-direction: column; gap: 28px; }
.lg-cta { padding: 40px 24px; border-radius: 26px; background: #6c4bd8; color: #ffffff; display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; }
.lg-cta h2 { margin: 8px 0 0; font-size: 38px; }
.lg-cta p { margin: 0; max-width: 560px; font-size: 17px; line-height: 1.5; color: #ece6ff; }
.lg-cta-button { display: inline-flex; align-items: center; justify-content: center; gap: 12px; box-sizing: border-box; width: 100%; max-width: 560px; min-height: 72px; padding: 18px 24px; border-radius: 999px; background: #ec6e6a; color: #ffffff; font-size: 21px; font-weight: 900; text-transform: uppercase; text-decoration: none; }
.lg-cta-button:hover { background: #d95450; }
.lg-cta-arrow { display: inline-block; }
.lg-share { min-height: 48px; padding: 0 22px; border: 2px solid #ffffff; border-radius: 999px; background: none; color: #ffffff; font: inherit; font-size: 16px; font-weight: 800; cursor: pointer; }
.lg-share:hover { background: #ffffff; color: #6c4bd8; }
.lg-status { margin: 0; font-size: 14px; font-weight: 700; color: #ffe27a; }
.lg-status:empty { display: none; }
.lg-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; line-height: 1.5; color: #6e6688; border-top: 2px solid #e6e1f5; padding-top: 14px; }

@media (max-width: 600px) {
	.lg-bar { padding: 8px 14px; }
	.lg-logo { font-size: 22px; }
	.lg-stats { gap: 12px; }
	.lg-page { padding: 18px 14px 0; }
	.lg-hero { flex-direction: column; text-align: center; padding: 22px 16px; }
	.lg-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.lg-check-row .lg-button { width: 100%; }
	.lg-bottom { padding: 44px 14px 40px; }
	.lg-cta h2 { font-size: 30px; }
	.lg-cta-button { font-size: 17px; min-height: 64px; }
}

/* Animations - only with JavaScript and when the visitor allows motion */
@media (prefers-reduced-motion: no-preference) {
	.lg-mascot { animation: lg-bob 2.4s ease-in-out infinite; }
	.lg-mascot i::after { animation: lg-look 5s ease-in-out infinite; }
	.lg-mascot.is-happy { animation: lg-jump 0.5s ease 2; }
	.lg-mascot.is-sad i { height: 14px; margin-top: 10px; transition: height 0.2s ease; }
	.lg-flame { animation: lg-flicker 1.2s ease-in-out infinite; }
	.js .lg-course { animation: lg-pop 0.4s ease both; }
	.lg-tile, .lg-option { transition: transform 0.1s ease; }
	.lg-tile:active, .lg-option:active { transform: translateY(2px); }
	.lg-feedback:not(:empty) { animation: lg-slide 0.25s ease both; }
	.lg-heart-count.is-hit { animation: lg-shake 0.4s ease; }
	.lg-stats b.is-bump { display: inline-block; animation: lg-bump 0.4s ease; }
	.lg-cta-button { animation: lg-glow 2.2s ease-in-out infinite; transition: transform 0.15s ease; }
	.lg-cta-button:hover { transform: scale(1.02); }
	.lg-cta-arrow { animation: lg-nudge 1.1s ease-in-out infinite; }
}

@keyframes lg-bob { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-6px) rotate(2deg); } }
@keyframes lg-look { 0%, 40%, 100% { transform: none; } 50%, 70% { transform: translateX(5px); } 80%, 90% { transform: translateX(-3px); } }
@keyframes lg-jump { 0%, 100% { transform: none; } 50% { transform: translateY(-22px) rotate(-6deg); } }
@keyframes lg-flicker { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12) rotate(4deg); } }
@keyframes lg-pop { from { opacity: 0; transform: scale(0.94); } to { opacity: 1; transform: none; } }
@keyframes lg-slide { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes lg-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-5px); } 75% { transform: translateX(5px); } }
@keyframes lg-bump { 0% { transform: scale(1); } 50% { transform: scale(1.4); } 100% { transform: scale(1); } }
@keyframes lg-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(236, 110, 106, 0.5); } 50% { box-shadow: 0 0 0 12px rgba(236, 110, 106, 0); } }
@keyframes lg-nudge { 0%, 100% { transform: none; } 50% { transform: translateX(8px); } }
