/* Heart Check. Book 8's theme colours: wine red and aqua, with the green of Koa's T-shirt. */
:root {
  --main: #8E1B3A; --main-dark: #6C132B; --accent: #7FD3CB; --accent-dark: #4FA79E; --soft: #FCE8EE;
  --bg: #F8EEF1; --bg-deep: #EFDDE3; --line: #E8D2DA; --hint: #1E7C76;
}
.who-koa { left: 3%; bottom: 3%; }
.who-mom { right: 2%; bottom: 3%; }
.who.is-jump { animation: jump .5s ease-in-out infinite; }
@keyframes jump { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8%); } }
.say-grown { max-width: 30%; }

/* the big heart to tap for every beat */
.tap-heart { position: relative; display: grid; place-items: center; width: 100%; max-width: 220px; margin: 4px auto 10px; border: 0; background: none; cursor: pointer; padding: 0; }
.tap-heart svg { width: 100%; height: auto; fill: #D7263D; filter: drop-shadow(0 4px 0 #8E1B3A); transition: transform .08s; }
.tap-heart:active svg, .tap-heart.is-beat svg { transform: scale(.92); }
.tap-heart:disabled { cursor: default; opacity: .6; }
.tap-n { position: absolute; top: 34%; color: #FFFFFF; font-weight: 900; font-size: 2.6rem; }
.timer { height: 12px; border-radius: 999px; background: var(--bg-deep); overflow: hidden; }
.timer span { display: block; height: 100%; width: 0; background: var(--accent-dark); }

/* the heart picture graph */
.beat-row { display: grid; grid-template-columns: 128px 1fr; align-items: center; gap: 8px; }
.beat-name { font-weight: 800; font-size: .84rem; line-height: 1.15; }
.beat-name span { display: block; font-weight: 600; font-size: .74rem; color: var(--muted); }
.beat-row svg { width: 100%; height: 26px; }
.cell-icon svg { width: 66px; height: 30px; }
