/* «Escuchar» (js/escuchar.js): one medallion in the book's top bar, between «Mi kit» and «Índice». The book's
   own colors: a wine pill with a gold hairline, a gold seal with the wine ▶ (like the numbered steps of «Cómo se usa»),
   and around the seal a gold ring that fills as the chapter plays. The label says what a tap does: Escuchar · Pausar · Seguir. */
.esc { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 48px; margin: 0;
  padding: 0 15px 0 4px; border: 0; border-radius: 999px; background: linear-gradient(180deg, #8e2a1e 0%, #6e1b14 100%); color: #fff7e6;
  font: 900 16.5px/1 Lato, sans-serif; letter-spacing: .01em; white-space: nowrap; cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: inset 0 0 0 1.5px rgba(226, 189, 98, .62), 0 2px 0 #4a120d, 0 6px 14px rgba(110, 27, 20, .24); transition: transform .12s; }
.esc:active { transform: translateY(1px); box-shadow: inset 0 0 0 1.5px rgba(226, 189, 98, .62), 0 1px 0 #4a120d, 0 3px 8px rgba(110, 27, 20, .2); }
.esc:focus-visible { outline: 3px solid #e2bd62; outline-offset: 2px; }
.esc-m { position: relative; flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; }
.esc-m .r { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.esc-m .tk { fill: none; stroke: rgba(255, 247, 230, .16); stroke-width: 2.6; }
.esc-m .pg { fill: none; stroke: #f3d27a; stroke-width: 2.6; stroke-linecap: round; transition: stroke-dashoffset .35s linear; }
.esc-d { position: absolute; inset: 5px; border-radius: 50%; background: radial-gradient(circle at 34% 28%, #fbe7a6 0%, #e2bd62 36%, #c9a24e 62%, #8a6420 100%);
  box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -2px 3px rgba(90, 55, 10, .35), 0 1px 2px rgba(0, 0, 0, .35); }
.esc-i { position: relative; display: grid; place-items: center; }
.esc-ic { display: block; width: 14px; height: 14px; fill: #5a140e; }
.esc:not(.on) .esc-ic { translate: 1px 0; } /* the triangle, optically centered */
.esc-l { min-width: 4.4em; text-align: left; }
/* playing: the seal breathes, softly */
.esc.on .esc-d { animation: escb 2.6s ease-in-out infinite; }
@keyframes escb { 50% { box-shadow: inset 0 1px 1px rgba(255, 255, 255, .55), inset 0 -2px 3px rgba(90, 55, 10, .35), 0 0 0 3px rgba(243, 210, 122, .32); } }
@media (prefers-reduced-motion: reduce) { .esc.on .esc-d { animation: none; } }
/* a phone narrower than the two buttons and the label: the seal alone */
@media (max-width: 369px) { .esc { padding: 0 4px; } .esc-l { display: none; } }
/* three buttons in the bar: «‹ My kit», «Listen/Pause/Resume», «☰ Contents» fit one line at 375 px in English too */
.lbk .kp-top { gap: 6px; padding-left: 8px; padding-right: 8px; }
.lbk .kp-top .kp-back, .lbk .kp-top .lbk-ix { white-space: nowrap; padding: 0 12px; font-size: 16px; }
@media (max-width: 359px) { .lbk .kp-top .kp-back, .lbk .kp-top .lbk-ix, .esc { padding-right: 9px; font-size: 14.5px; } .lbk .kp-top .kp-back, .lbk .kp-top .lbk-ix { padding-left: 9px; } }
