/* Listen (index.php + scripts/listen.js): the start card (the choices), the bar (progress, score, time), the big
   "Hear it again" button or the letter just found, the letter pad (the shared .ec-abc in css/ui.css), and the end card. The page header is the shared
   play-page shell (.ec-play-*). */
.ec-ls-card { display: grid; gap: 14px; max-width: 620px; margin: 8px auto; padding: 22px 22px 26px;
	border: 1px solid var(--ec-line); border-radius: 14px; background: var(--ec-surface); box-shadow: var(--ec-shadow); }
.ec-ls-card[hidden], .ec-ls-run[hidden] { display: none; }
.ec-ls-start fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
.ec-ls-start legend { margin: 0 0 6px; padding: 0; float: none; width: auto; font-size: 14px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--ec-ink-2); }
.ec-ls-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ec-ls-opt { position: relative; margin: 0; cursor: pointer; }
.ec-ls-opt input { position: absolute; opacity: 0; pointer-events: none; }
.ec-ls-opt span { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; height: 100%; min-height: 52px; padding: 10px 14px;
	border: 2px solid var(--ec-line); border-radius: 10px; background: var(--ec-surface); font-weight: 700; font-size: 17px; color: var(--ec-ink); line-height: 1.25; }
.ec-ls-opt span .fa { color: var(--t-ink); }
.ec-ls-opt small { flex-basis: 100%; font-size: 14px; font-weight: 400; color: var(--ec-ink-2); }
.ec-ls-opt:hover span { border-color: var(--t-ink); }
.ec-ls-opt input:checked + span { border-color: var(--t-ink); background: var(--t-bg); box-shadow: inset 0 0 0 1px var(--t-ink); }
.ec-ls-opt input:focus-visible + span { outline: 3px solid var(--ec-focus); outline-offset: 2px; }
.ec-ls-abc { font: 600 19px "Poppins", sans-serif; color: var(--t-ink); }
.ec-ls-checks { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.ec-ls-checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; margin: 0; font-weight: 700; cursor: pointer; }
.ec-ls-checks input { width: 20px; height: 20px; margin: 0; accent-color: var(--t-ink); }
.ec-ls-note { margin: 0; color: var(--ec-ink-2); text-align: center; }
.ec-ls-note[hidden] { display: none; }
.ec-ls-go { justify-self: center; justify-content: center; min-width: 180px; font-size: 18px; }

/* ---- playing */
.ec-ls-run { max-width: 760px; margin: 0 auto; }
.ec-ls-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 20px; margin-bottom: 10px; }
.ec-ls-stat { margin: 0; color: var(--ec-ink-2); }
.ec-ls-stat[hidden] { display: none; }
.ec-ls-stat span { font-size: 14px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; }
.ec-ls-stat b { font: 600 22px "Rubik", sans-serif; color: var(--t-ink); font-variant-numeric: tabular-nums; }
.ec-ls-change { margin-left: auto; }

/* the big button (or the letter once it's found) */
.ec-ls-ask { display: grid; place-content: center; justify-items: center; gap: 4px; height: 236px; margin-bottom: 14px; /* one height for both states, so the pad doesn't move */ padding: 14px; border-radius: 14px;
	background: linear-gradient(180deg, var(--t-bg), var(--ec-surface)); border: 1px solid var(--ec-line); }
.ec-ls-hear { display: grid; justify-items: center; gap: 8px; padding: 18px 28px; border: 0; border-radius: 16px; background: none; color: var(--t-ink); cursor: pointer; }
.ec-ls-hear[hidden] { display: none; }
.ec-ls-hear .fa { display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%; background: var(--t-ink); color: #fff; font-size: 52px;
	box-shadow: 0 6px 16px rgba(11, 101, 132, .3); transition: transform .12s ease; }
.ec-ls-hear:hover .fa { transform: scale(1.05); }
.ec-ls-hear:active .fa { transform: scale(.96); }
.ec-ls-hear span { font-size: 17px; font-weight: 700; }
.ec-ls-hear:focus-visible { outline: 3px solid var(--ec-focus); outline-offset: 2px; }
/* the found letter, what's said about it, then Next (the note is outside .ec-ls-found, so it can show while guessing too) */
.ec-ls-found { display: contents; }
.ec-ls-big { order: 1; } .ec-ls-said { order: 2; } .ec-ls-next { order: 3; margin-top: 4px; }
.ec-ls-found[hidden] { display: none; }
.ec-ls-big { display: grid; place-items: center; width: 104px; height: 112px; padding: 0; border: 3px solid var(--ec-green); border-radius: 14px;
	background: var(--ec-surface); font: 600 64px/1 "Poppins", sans-serif; color: var(--ec-ink); cursor: pointer; animation: ec-ls-pop .35s ease; }
.ec-ls-big.is-right { background: var(--ec-green-soft); }
.ec-ls-big.is-wrong { border-color: var(--ec-ink); border-style: dashed; }
.ec-ls-big.is-vowel { color: #c9302c; }
@keyframes ec-ls-pop { 0% { transform: scale(.7); opacity: 0; } 70% { transform: scale(1.06); opacity: 1; } 100% { transform: none; } }
.ec-ls-said { min-height: 1.4em; margin: 0; font-weight: 700; font-size: 17px; text-align: center; color: var(--ec-ink); }
.ec-ls-next { justify-content: center; min-width: 170px; font-size: 17px; }

.ec-ls-tools { margin: 10px 0 0; text-align: center; }
.ec-ls-tools .ec-btn[hidden] { display: none; }

/* ---- the end */
.ec-ls-end { justify-items: center; text-align: center; }
.ec-ls-end h2 { margin: 0; font: 600 26px "Rubik", sans-serif; }
.ec-ls-end p { margin: 0; color: var(--ec-ink-2); }
.ec-ls-final { font-size: 18px; }
.ec-ls-final b { display: block; font: 600 54px/1.1 "Rubik", sans-serif; color: var(--t-ink); }
.ec-ls-missed { width: 100%; }
.ec-ls-missed[hidden] { display: none; }
.ec-ls-missed h3 { margin: 6px 0 8px; font-size: 17px; font-weight: 700; }
.ec-ls-missed h3 small { font-weight: 400; color: var(--ec-ink-2); }
.ec-ls-missed > div { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.ec-ls-missed .ec-abc-key { flex: none; width: 52px; }
.ec-ls-endbtns { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ---- about the game (on /listen/ itself, for visitors from a search engine): quiet, under the game */
.ec-ls-about { max-width: 620px; margin: 40px auto 0; padding-top: 18px; border-top: 1px solid var(--ec-line); color: var(--ec-ink-2); font-size: 15px; }
.ec-ls-about h2 { margin: 0 0 8px; font: 600 18px "Rubik", sans-serif; color: var(--ec-ink); }
.ec-ls-about p { margin: 0 0 8px; }
.ec-ls-about ul { margin: 0 0 8px; padding-left: 20px; }
.ec-ls-about li { margin-bottom: 4px; }

@media (max-width: 575px) {
	.ec-ls-card { padding: 18px 14px 22px; }
	.ec-ls-opt span { font-size: 16px; padding: 8px 10px; }
	.ec-ls-ask { height: 218px; }
	.ec-ls-hear .fa, .ec-ls-big { width: 88px; height: 88px; }
	.ec-ls-hear .fa { font-size: 44px; }
	.ec-ls-big { font-size: 54px; height: 96px; }
}
