/* ESLe Quiz 0.5.0 — climb look, matching the games page (Baloo 2, warm cream, level colour). */
.esq {
	--esq-c: #1E7A4C;
	--esq-ink: #2D2A3E;
	--esq-soft: #5C5468;
	--esq-line: #F1E1CD;
	--esq-sun: #FFD866;
	--esq-good: #1D9E75;
	--esq-wait: #B7791F;
	max-width: 720px;
	margin: 24px auto;
	color: var(--esq-ink);
	font-size: 17px;
	line-height: 1.45;
}
.esq * { box-sizing: border-box; }
.esq-card {
	background: #fff;
	border: 1px solid var(--esq-line);
	border-top: 6px solid var(--esq-c);
	border-radius: 18px;
	padding: 18px 18px 20px;
	box-shadow: 0 16px 30px -24px rgba(70, 45, 20, .55);
}
.esq-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.esq-title { margin: 0; font-family: 'Baloo 2', ui-rounded, 'Segoe UI', Verdana, sans-serif; font-size: 24px; font-weight: 800; line-height: 1.2; color: var(--esq-ink); }
.esq-chip { display: inline-flex; align-items: baseline; gap: 6px; padding: 3px 12px; border-radius: 999px; background: var(--esq-c); color: #fff; font-weight: 700; font-size: 15px; }
.esq-chip small { font-size: 11px; font-weight: 600; opacity: .85; }
.esq-step { font-size: 14px; font-weight: 700; color: var(--esq-soft); }
.esq-lead { margin: 6px 0 14px; color: var(--esq-soft); }
.esq-err { margin: 10px 0 0; color: var(--esq-wait); font-weight: 600; }

.esq-btn {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	min-height: 48px; padding: 10px 26px; border: 0; border-radius: 999px;
	background: var(--esq-c); color: #fff !important; text-decoration: none !important;
	font-family: 'Baloo 2', ui-rounded, 'Segoe UI', Verdana, sans-serif; font-size: 19px; font-weight: 700;
	cursor: pointer; transition: transform .12s, filter .12s;
}
.esq .esq-btn:hover, .esq .esq-btn:focus { background: var(--esq-c); color: #fff; filter: brightness(1.08); }
.esq .esq-btn-soft:hover, .esq .esq-btn-soft:focus { background: #F6EFE4; color: var(--esq-ink); }
.esq-btn:active { transform: scale(.97); }
.esq-btn:disabled { opacity: .45; cursor: default; filter: none; }
.esq-btn-soft { background: #F6EFE4; color: var(--esq-ink) !important; }
.esq-btn:focus-visible, .esq-opt:focus-visible, .esq-tile:focus-visible, .esq-mi:focus-visible, .esq-input:focus-visible, .esq-say:focus-visible, .esq-play-big:focus-visible { outline: 3px solid var(--esq-sun); outline-offset: 2px; }

/* The slope: one step per question, the flag at the top */
.esq-slope {
	position: relative; height: 112px; margin: 6px 0 14px; border-radius: 14px; overflow: hidden;
	background: linear-gradient(180deg, #FFF8EE 0%, #FFF1DC 100%);
}
.esq-slope::before {
	content: ''; position: absolute; inset: auto 0 0 0; height: 100%;
	background: color-mix(in srgb, var(--esq-c) 16%, #fff);
	clip-path: polygon(0 100%, 0 88%, 88% 14%, 100% 30%, 100% 100%);
}
.esq-dot { position: absolute; width: 12px; height: 12px; margin-left: -6px; border-radius: 50%; background: #fff; border: 2px solid color-mix(in srgb, var(--esq-c) 45%, #fff); }
.esq-dot.esq-done { background: var(--esq-c); border-color: var(--esq-c); }
.esq-flag { position: absolute; right: 5%; top: 6%; width: 30px; height: 36px; }
.esq-flag svg, .esq-climber svg, .esq-bigflag svg { width: 100%; height: 100%; display: block; }
.esq-climber { position: absolute; width: 26px; height: 33px; transition: left .6s ease, bottom .6s ease; }
.esq-hop { animation: esq-hop .6s ease; }
@keyframes esq-hop { 40% { transform: translateY(-8px); } }

/* Questions */
.esq-q { min-height: 120px; }
.esq-prompt { margin: 4px 0 12px; font-size: 20px; font-weight: 700; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.esq-pic { display: block; width: 170px; height: 170px; object-fit: contain; margin: 0 auto 14px; border-radius: 16px; background: #FFFCF6; border: 1px solid var(--esq-line); }
.esq .esq-say, .esq .esq-play-big, .esq .esq-say:hover, .esq .esq-play-big:hover, .esq .esq-say:focus, .esq .esq-play-big:focus {
	display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; cursor: pointer;
	background: var(--esq-sun); color: var(--esq-ink); border-radius: 999px; box-shadow: none; text-transform: none;
}
.esq .esq-say:hover, .esq .esq-play-big:hover { filter: brightness(1.04); }
.esq .esq-say { flex: none; width: 40px; height: 40px; min-width: 0; min-height: 0; padding: 0; line-height: 1; }
.esq .esq-say svg, .esq .esq-play-big svg { display: block; flex: none; width: 22px; height: 22px; color: var(--esq-ink); fill: none; overflow: visible; }
.esq .esq-say svg path:first-child, .esq .esq-play-big svg path:first-child { fill: currentColor; }
.esq-play-big { min-height: 56px; padding: 8px 26px; margin: 0 auto 16px; font-family: 'Baloo 2', ui-rounded, sans-serif; font-size: 20px; font-weight: 700; display: flex; }
.esq .esq-play-big svg { width: 28px; height: 28px; }

.esq-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.esq-opts-pic { grid-template-columns: repeat(3, 1fr); }
.esq-opt, .esq-mi {
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
	min-height: 56px; padding: 10px; border: 2px solid var(--esq-line); border-radius: 16px; background: #fff;
	color: var(--esq-ink); font-size: 19px; font-weight: 700; cursor: pointer; transition: border-color .12s, transform .12s, background .12s;
}
.esq .esq-opt, .esq .esq-mi, .esq .esq-tile { box-shadow: none; text-transform: none; letter-spacing: normal; }
.esq .esq-opt:hover, .esq .esq-opt:focus, .esq .esq-mi:hover, .esq .esq-mi:focus, .esq .esq-tile:hover, .esq .esq-tile:focus { background: #fff; color: var(--esq-ink); }
.esq-opt:hover:not(:disabled), .esq-mi:hover:not(:disabled) { border-color: var(--esq-c); transform: translateY(-2px); }
.esq-opt img { width: 100%; max-width: 150px; aspect-ratio: 1; object-fit: contain; }
.esq-opt:disabled, .esq-mi:disabled { cursor: default; }
.esq-yes { border-color: var(--esq-good) !important; background: #E6F6EF !important; }
.esq-no { animation: esq-shake .4s; }
.esq-opt.esq-no:disabled { opacity: .4; }
@keyframes esq-shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }

.esq-shape { display: flex; justify-content: center; gap: 5px; flex-wrap: wrap; margin: 0 0 12px; }
.esq-box { width: 30px; height: 38px; border-bottom: 3px solid var(--esq-c); font-size: 24px; font-weight: 800; text-align: center; line-height: 38px; }
.esq-gap { width: 14px; text-align: center; font-size: 24px; line-height: 38px; }
.esq-typerow { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.esq-input {
	flex: 1 1 220px; width: 100%; min-width: 0; max-width: 340px; min-height: 52px; padding: 8px 16px; border: 2px solid var(--esq-line); border-radius: 14px;
	font-size: 22px; font-weight: 700; color: var(--esq-ink); background: #fff;
}
.esq-input:focus { border-color: var(--esq-c); outline: none; }
.esq-reveal { margin: 12px 0 0; text-align: center; font-size: 24px; font-weight: 800; color: var(--esq-good); }

.esq-line { display: flex; flex-wrap: wrap; gap: 8px; min-height: 60px; padding: 10px; margin-bottom: 12px; border: 2px dashed var(--esq-line); border-radius: 14px; background: #FFFCF6; }
.esq-line.esq-yes { border-style: solid; }
.esq-bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 48px; }
.esq-tile { min-height: 44px; padding: 6px 14px; border: 2px solid var(--esq-line); border-radius: 12px; background: #fff; font-size: 19px; font-weight: 700; color: var(--esq-ink); cursor: pointer; }
.esq-tile:hover:not(:disabled) { border-color: var(--esq-c); }

.esq-match { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.esq-col { display: flex; flex-direction: column; gap: 10px; }
.esq-mi { flex-direction: row; min-height: 84px; }
.esq-mi img { width: 64px; height: 64px; object-fit: contain; }
.esq-mi span { font-size: 18px; }
.esq .esq-mi.esq-sel, .esq .esq-mi.esq-sel:hover, .esq .esq-mi.esq-sel:focus { border-color: var(--esq-c); background: color-mix(in srgb, var(--esq-c) 10%, #fff); }
.esq-p1.esq-yes { background: #E8F0FD !important; border-color: #1F5FBF !important; }
.esq-p2.esq-yes { background: #FDF0E6 !important; border-color: #B4520E !important; }
.esq-p3.esq-yes { background: #F2EAFB !important; border-color: #7A3FC0 !important; }

.esq-fb { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 28px; margin: 12px 0 0; text-align: center; font-size: 19px; font-weight: 700; }
.esq-fb.esq-good, .esq-fb.esq-wait { padding: 10px 16px; border-radius: 14px; animation: esq-pop .25s ease; }
.esq-fb.esq-good { color: #12704F; background: #E6F6EF; }
.esq-fb.esq-wait { color: #8A5A12; background: #FFF4DE; }
.esq-fbicon { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; color: #fff; font-size: 18px; line-height: 1; }
.esq-good .esq-fbicon { background: var(--esq-good); }
.esq-wait .esq-fbicon { background: var(--esq-wait); }
@keyframes esq-pop { from { transform: scale(.94); opacity: .4; } }
.esq-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }

/* The end */
.esq-end { text-align: center; }
.esq-bigflag { width: 64px; height: 76px; margin: 0 auto 4px; animation: esq-plant .7s ease; }
@keyframes esq-plant { from { transform: translateY(-30px) scale(.6); opacity: 0; } }
.esq-endtitle { margin: 4px 0; font-family: 'Baloo 2', ui-rounded, sans-serif; font-size: 28px; font-weight: 800; }
.esq-score { margin: 0; font-size: 20px; font-weight: 700; }
.esq-revtitle { margin: 20px 0 8px; font-family: 'Baloo 2', ui-rounded, sans-serif; font-size: 20px; font-weight: 800; text-align: left; }
.esq-review { text-align: left; }
.esq-rlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.esq-r { display: flex; align-items: flex-start; gap: 12px; padding: 10px 12px; border: 1px solid var(--esq-line); border-left-width: 5px; border-radius: 12px; background: #fff; }
.esq-r-ok { border-left-color: var(--esq-good); }
.esq-r-no { border-left-color: var(--esq-wait); background: #FFFCF4; }
.esq-rmark { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 16px; margin-top: 2px; }
.esq-r-ok .esq-rmark { background: var(--esq-good); }
.esq-r-no .esq-rmark { background: var(--esq-wait); }
.esq-rbody { flex: 1; min-width: 0; }
.esq-rq { margin: 0 0 4px; font-weight: 700; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.esq .esq-rq .esq-say { width: 32px; height: 32px; }
.esq .esq-rq .esq-say svg { width: 18px; height: 18px; }
.esq-rline { margin: 2px 0 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; }
.esq-rlab { color: var(--esq-soft); font-size: 14px; min-width: 58px; }
.esq-rgood { color: #12704F; font-weight: 700; }
.esq-rmiss { color: #8A5A12; }
.esq-rthumb { width: 40px; height: 40px; object-fit: contain; border-radius: 8px; background: #FFFCF6; border: 1px solid var(--esq-line); }
.esq-rpic { flex: none; width: 56px; height: 56px; object-fit: contain; border-radius: 10px; background: #FFFCF6; border: 1px solid var(--esq-line); }

@media (max-width: 520px) {
	.esq { font-size: 16px; }
	.esq-card { padding: 14px 12px 16px; border-radius: 14px; }
	.esq-title { font-size: 21px; }
	.esq-opts-pic { gap: 8px; }
	.esq-opt { padding: 6px; font-size: 17px; }
	.esq-pic { width: 140px; height: 140px; }
	.esq-match { gap: 8px; }
	.esq-mi { flex-direction: column; padding: 6px; }
	.esq-mi img { width: 72px; height: 72px; }
	.esq-input { flex-basis: 100%; max-width: none; }
	.esq-box { width: 24px; font-size: 20px; }
	.esq-fb { font-size: 17px; }
	.esq-rpic { width: 44px; height: 44px; }
	.esq-r { gap: 8px; padding: 8px 10px; }
}
@media (prefers-reduced-motion: reduce) {
	.esq-climber { transition: none; }
	.esq-hop, .esq-no, .esq-bigflag, .esq-fb { animation: none !important; }
}

/* ── Speaking (0.2.0) ── */
.esq-speakq .esq-prompt { font-size: 22px; }
.esq-word { margin: 4px 0 10px; text-align: center; font-family: 'Baloo 2', ui-rounded, 'Segoe UI', Verdana, sans-serif; font-size: 40px; font-weight: 800; color: var(--esq-c); }
.esq-speak { display: flex; flex-direction: column; align-items: center; gap: 10px; margin: 14px 0 4px; }
.esq .esq-talk {
	display: inline-flex !important; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
	width: 132px !important; height: 132px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important;
	border: 0 !important; border-radius: 50% !important; cursor: pointer;
	background: var(--esq-c) !important; color: #fff !important; box-shadow: 0 6px 0 rgba(0,0,0,.18) !important;
	font: 700 15px/1.15 'Baloo 2', ui-rounded, 'Segoe UI', Verdana, sans-serif !important; text-transform: none !important; letter-spacing: 0 !important;
	transition: transform .1s ease;
}
.esq .esq-talk svg { width: 46px !important; height: 46px !important; fill: #fff !important; flex: none; }
.esq .esq-talk:hover, .esq .esq-talk:focus { background: var(--esq-c) !important; color: #fff !important; filter: brightness(1.08); }
.esq .esq-talk:active { transform: translateY(3px); box-shadow: 0 3px 0 rgba(0,0,0,.18) !important; }
.esq .esq-talk.esq-on { animation: esq-pulse 1.1s ease-in-out infinite; background: #D0453A !important; }
.esq .esq-talk:disabled { opacity: .55; cursor: default; animation: none; }
@keyframes esq-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(208,69,58,.45) !important; } 50% { box-shadow: 0 0 0 16px rgba(208,69,58,0) !important; } }
.esq-heard { min-height: 1.4em; margin: 0; text-align: center; font-weight: 600; color: var(--esq-ink); }
.esq-speakrow { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; }
.esq .esq-link {
	background: none !important; border: 0 !important; padding: 6px 4px !important; margin: 0 !important; box-shadow: none !important;
	color: var(--esq-soft) !important; text-decoration: underline !important; font: 600 14px/1.2 inherit !important; cursor: pointer; text-transform: none !important;
}
.esq-privacy { margin: 4px 0 0; font-size: 12.5px; color: var(--esq-soft); text-align: center; max-width: 34em; }
.esq-done .esq-privacy { display: none; }
@media (prefers-reduced-motion: reduce) { .esq .esq-talk.esq-on { animation: none; } }
.esq-r .esq-rlab { min-width: 92px; display: inline-block; }
.esq-rmodel { color: var(--esq-ink); font-style: italic; }
.esq-rmodel .esq-rlab { font-style: normal; }

/* ── Sounds on/off (0.3.0) ── */
.esq-tools { display: inline-flex; align-items: center; gap: 10px; }
.esq .esq-mute {
	display: inline-flex !important; align-items: center; justify-content: center;
	width: 34px !important; height: 34px !important; min-width: 0 !important; padding: 0 !important; margin: 0 !important;
	border: 1px solid var(--esq-line) !important; border-radius: 50% !important; background: #fff !important; color: var(--esq-soft) !important;
	box-shadow: none !important; cursor: pointer; line-height: 1 !important;
}
.esq .esq-mute svg { width: 17px !important; height: 17px !important; flex: none; }
.esq .esq-mute:hover, .esq .esq-mute:focus { background: #F6EFE4 !important; color: var(--esq-ink) !important; }
.esq .esq-mute[aria-pressed="true"] { color: #A49CAE !important; }

/* ── Slow button (0.3.1) ── */
.esq-sounds { display: inline-flex; align-items: center; gap: 6px; vertical-align: middle; margin-left: 4px; }
.esq-sounds-big { display: flex; justify-content: center; gap: 10px; margin: 0 auto 16px; }
.esq-sounds-big .esq-play-big { margin: 0 !important; }
.esq .esq-slow {
	display: inline-flex !important; align-items: center; justify-content: center; gap: 6px;
	width: 34px !important; height: 34px !important; min-width: 0 !important; min-height: 0 !important; padding: 0 !important; margin: 0 !important;
	border: 2px solid var(--esq-sun) !important; border-radius: 999px !important; background: #fff !important; color: #6B5A1E !important;
	box-shadow: none !important; cursor: pointer; line-height: 1 !important; text-transform: none !important; letter-spacing: 0 !important;
	font: 700 16px/1 'Baloo 2', ui-rounded, 'Segoe UI', Verdana, sans-serif !important;
}
.esq .esq-slow svg { width: 21px !important; height: 21px !important; flex: none; }
.esq .esq-slow:hover, .esq .esq-slow:focus { background: #FFF7DA !important; color: #6B5A1E !important; }
.esq .esq-slow:focus-visible { outline: 3px solid var(--esq-sun); outline-offset: 2px; }
.esq-sounds-big .esq-slow { width: auto !important; height: 56px !important; padding: 0 18px !important; }
.esq-sounds-big .esq-slow svg { width: 26px !important; height: 26px !important; }

/* ── Hear yourself, Help me, speaking report (0.4.0) ── */
.esq-hint { margin: 0; padding: 8px 14px; border-radius: 12px; background: #FFF7DA; color: #5A4A12; font-weight: 700; text-align: center; }
.esq-compare { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px; }
.esq-cmplab { font-size: 14px; font-weight: 700; color: var(--esq-soft); }
.esq .esq-cmp {
	display: inline-flex !important; align-items: center; gap: 4px; min-height: 0 !important; height: 36px !important; padding: 0 14px !important; margin: 0 !important;
	border: 2px solid var(--esq-c) !important; border-radius: 999px !important; background: #fff !important; color: var(--esq-c) !important;
	font: 700 15px/1 'Baloo 2', ui-rounded, 'Segoe UI', Verdana, sans-serif !important; box-shadow: none !important; cursor: pointer; text-transform: none !important; letter-spacing: 0 !important;
}
.esq .esq-cmp:hover, .esq .esq-cmp:focus { background: #EEF6F1 !important; color: var(--esq-c) !important; }
.esq .esq-cmp-ans { border-color: var(--esq-sun) !important; color: #6B5A1E !important; }
.esq .esq-cmp-ans:hover, .esq .esq-cmp-ans:focus { background: #FFF7DA !important; color: #6B5A1E !important; }
.esq .esq-cmp-sm { height: 26px !important; padding: 0 9px !important; font-size: 12px !important; margin-left: 8px !important; }
.esq .esq-help { min-height: 0; }
.esq-sprep { margin: 4px 0 18px; padding: 14px 16px; border: 1px solid var(--esq-line); border-radius: 14px; background: #FFFCF6; text-align: left; }
.esq-sptext { margin: 4px 0; color: var(--esq-ink); }
.esq-spgood { color: #12704F; font-weight: 700; }
.esq-splist { list-style: none; margin: 8px 0 0; padding: 0; }
.esq-spitem { margin: 0 0 10px; padding: 10px 12px; border-radius: 12px; background: #fff; border: 1px solid var(--esq-line); }
.esq-spq { margin: 0 0 6px; font-weight: 700; }
.esq-spa { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }

/* ── Points (0.5.0) ── */
.esq-points { display: inline-block; margin: 6px auto 4px; padding: 6px 16px; border-radius: 999px; background: #FFF3C4; color: #6B4E00; font: 800 20px/1.2 'Baloo 2', ui-rounded, 'Segoe UI', Verdana, sans-serif; }
.esq-small { font-size: 14px; }
