/* ---------- Mute button & sayings ---------- */
.mute-btn.muted { background: #FBE4E1; box-shadow: var(--shadow), inset 0 0 0 2px #E8695B; }
.game-head .mute-btn { flex: none; }
.link-btn { color: #C0392B; font-weight: 900; text-decoration: underline; min-height: 32px; padding: 0 4px; }
@media (max-width: 400px) {
  .topbar { gap: 6px; padding-left: 10px; padding-right: 10px; }
  .topbar .icon-btn { width: 40px; height: 40px; border-radius: 13px; font-size: 17px; }
  .meters { gap: 6px; }
}

/* ---------- Learn with Tommy ---------- */
.learn-btn { background: #FFF1C9; box-shadow: var(--shadow), inset 0 0 0 2px #F4C84A; }
.learn-stars { text-align: center; font-weight: 900; font-size: 18px; margin: 2px 0 4px; }
.learn-wrap { flex: 1; min-height: 0; overflow-y: auto; padding: 0 14px 20px; -webkit-overflow-scrolling: touch; touch-action: pan-y; }
.tutor { display: flex; align-items: center; gap: 10px; margin: 2px auto 12px; max-width: 560px; }
.l-avatar { width: 74px; height: 74px; flex: none; }
.l-avatar svg { width: 100%; height: 100%; display: block; }
.l-avatar.talking { animation: talkbob .32s ease-in-out infinite; }
@keyframes talkbob { 50% { transform: translateY(-4px) rotate(-3deg); } }
.l-bubble { position: relative; flex: 1; background: #fff; border-radius: 18px; padding: 10px 14px; font-weight: 800; font-size: 17px; line-height: 1.35; box-shadow: var(--shadow); min-height: 50px; }
.l-bubble::before { content: ""; position: absolute; left: -8px; top: 17px; border: 8px solid transparent; border-left: 0; border-right-color: #fff; }
.l-body { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.l-card { width: 100%; max-width: 440px; min-height: 290px; background: #fff; border-radius: 28px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 16px; }
.l-card.pop { animation: cardpop .35s ease; }
@keyframes cardpop { from { transform: scale(.86); opacity: .3; } }
.l-letter { font-size: 120px; font-weight: 900; line-height: 1; color: #E8695B; }
.l-letter small { font-size: 72px; color: #4D8FD6; margin-left: 12px; }
.l-emoji { font-size: 80px; line-height: 1.1; }
.l-emoji.huge { font-size: 130px; }
.l-word { font-size: 36px; font-weight: 900; text-align: center; }
.l-word b { color: #E8695B; }
.l-says { font-size: 22px; font-weight: 800; color: var(--muted); }
.l-num { font-size: 130px; font-weight: 900; line-height: 1; color: #4D8FD6; }
.l-count-row { font-size: 28px; line-height: 1.35; text-align: center; max-width: 330px; letter-spacing: 2px; }
.l-count-row.big { font-size: 42px; max-width: 380px; }
.l-swatch { display: inline-block; width: 170px; height: 170px; border-radius: 50%; border: 4px solid #EEDDCB; }
.l-shape svg { width: 190px; height: 190px; }
.l-day { font-size: 40px; font-weight: 900; color: #fff; padding: 22px 30px; border-radius: 24px; }
.l-week { display: flex; gap: 8px; }
.l-week i { width: 16px; height: 16px; border-radius: 50%; background: #EEDDCB; }
.l-week i.on { background: var(--accent); }
.l-opp { display: flex; gap: 16px; align-items: center; font-size: 26px; font-weight: 900; }
.l-opp div { display: flex; flex-direction: column; align-items: center; }
.l-opp span { font-size: 84px; line-height: 1.1; }
.l-opp b { color: var(--accent-d); font-size: 36px; }
.l-nav { display: flex; align-items: center; gap: 18px; }
.l-round { width: 64px; height: 64px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 24px; font-weight: 900; box-shadow: 0 4px 0 var(--accent-d); flex: none; }
.l-round:active { transform: translateY(3px); box-shadow: none; }
.l-round.small { width: 48px; height: 48px; font-size: 20px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.l-count { font-weight: 900; color: var(--muted); min-width: 64px; text-align: center; }
.l-actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.l-dots { display: flex; gap: 6px; justify-content: center; }
.l-dots i { width: 14px; height: 14px; border-radius: 50%; background: #EEDDCB; }
.l-dots i.ok { background: var(--good); }
.l-dots i.meh { background: var(--mid); }
.l-prompt { display: flex; align-items: center; justify-content: center; gap: 10px; font-size: 26px; font-weight: 900; text-align: center; }
.l-show { text-align: center; }
.l-options { display: grid; gap: 12px; width: 100%; max-width: 470px; grid-template-columns: repeat(3, 1fr); }
.l-opt { min-height: 116px; background: #fff; border-radius: 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 8px 4px; transition: transform .15s, opacity .15s; font-weight: 900; }
.l-opt small { font-size: 15px; }
.l-opt-emoji { font-size: 60px; line-height: 1.1; }
.l-optbig { font-size: 64px; font-weight: 900; color: #4D8FD6; line-height: 1; }
.l-opt svg { width: 80px; height: 80px; }
.l-opt .l-swatch { width: 78px; height: 78px; border-width: 3px; }
.l-opt-day { color: #fff; font-size: 15px; padding: 10px 6px; border-radius: 12px; width: 100%; text-align: center; }
.l-opt.right { background: #DDF3E4; box-shadow: inset 0 0 0 4px var(--good); transform: scale(1.05); }
.l-opt.wrong { opacity: .3; transform: scale(.94); }
.l-math { display: flex; align-items: center; gap: 10px; justify-content: center; flex-wrap: wrap; }
.l-math .grp { flex: 0 1 auto; min-width: 0; max-width: 40%; overflow-wrap: anywhere; font-size: 30px; text-align: center; line-height: 1.3; background: #fff; border-radius: 18px; padding: 8px 10px; box-shadow: var(--shadow); letter-spacing: 2px; }
.l-math .opr { font-size: 46px; font-weight: 900; color: var(--accent-d); }
.gone { position: relative; display: inline-block; opacity: .35; }
.gone::after { content: "\2715"; position: absolute; inset: 0; display: grid; place-items: center; color: #D93025; font-weight: 900; font-size: 1.1em; }
.l-result { text-align: center; padding-top: 10px; }
.l-result .big { font-size: 46px; letter-spacing: 4px; }
.l-result h3 { font-size: 28px; margin: 10px 0 16px; }
.l-lyrics { background: #fff; border-radius: 22px; padding: 14px 16px; box-shadow: var(--shadow); width: 100%; max-width: 540px; font-size: 23px; font-weight: 800; line-height: 1.7; text-align: center; }
.l-lyrics .ln { display: block; }
.l-lyrics [data-s] { border-radius: 8px; padding: 0 1px; transition: background .12s, color .12s; }
.l-lyrics [data-s].on { background: #FFE27A; color: #B4380F; }
.l-lyrics [data-s].done { color: #BBA592; }
.l-scene { font-size: 46px; text-align: center; letter-spacing: 6px; padding: 8px 16px; border-radius: 22px; }
.l-scene.night { background: #1D2A5C; }
.l-scene.water { background: #CFE8FA; }
.l-scene.farm { background: #DDF3E4; }
.l-scene .tw { display: inline-block; animation: twinkle 1.1s ease-in-out infinite alternate; }
@keyframes twinkle { from { opacity: .35; transform: scale(.85); } to { opacity: 1; transform: scale(1.1); } }
.l-cake { position: relative; font-size: 110px; line-height: 1; padding-top: 34px; }
.l-cake .candles { position: absolute; top: 0; left: 50%; transform: translateX(-50%); font-size: 34px; letter-spacing: -8px; transition: opacity .4s; }
.l-cake.out .candles { opacity: 0; }
.l-name { display: flex; gap: 8px; align-items: center; font-weight: 800; }
.l-name input { font: inherit; font-size: 18px; padding: 8px 12px; border-radius: 12px; border: 2px solid #EEDDCB; width: 170px; background: #fff; color: var(--ink); }
@media (min-width: 600px) {
  .l-card { max-width: 560px; min-height: 380px; }
  .l-letter, .l-num { font-size: 170px; }
  .l-emoji.huge { font-size: 170px; }
  .l-options { max-width: 620px; }
  .l-opt { min-height: 150px; }
  .l-lyrics { font-size: 28px; max-width: 680px; }
  .tutor { max-width: 680px; }
  .l-avatar { width: 96px; height: 96px; }
  .l-bubble { font-size: 21px; }
}
@media (max-height: 700px) {
  .l-card { min-height: 230px; }
  .l-letter, .l-num { font-size: 96px; }
  .l-emoji.huge { font-size: 100px; }
}
.rm .l-card.pop, .rm .l-avatar.talking, .rm .l-scene .tw { animation: none; }
