/* Home: the greeting, how many words she learned, and the topics. */

.hm-hello { margin-top: 12px; }
.hm-greet {
  display: flex; align-items: center; gap: 10px; max-width: 100%;
  padding: 0; border: none; background: none; color: var(--ink);
  font: 700 26px/1.25 var(--font); text-align: start; cursor: pointer;
}
.hm-greet .es { font-weight: 700; overflow-wrap: anywhere; }
.hm-spk { font-size: 18px; opacity: .55; }
.hm-greet-he { margin: 2px 0 16px; color: var(--muted); }

.hm-stat { display: flex; align-items: baseline; gap: 10px; }
.hm-num { font-size: 46px; font-weight: 700; line-height: 1; color: var(--accent); }
.hm-num-label { font-size: 17px; font-weight: 500; }
.hm-sub { margin: 6px 0 0; color: var(--muted); font-size: 15px; }

.hm-voice {
  display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 12px;
  padding: 12px 14px; border-radius: 14px; border: 1.5px dashed var(--c-saffron);
  background: var(--surface); color: var(--ink); font: 500 15.5px var(--font); text-align: start; cursor: pointer;
}

.hm-h { margin: 26px 2px 14px; font-size: 19px; }

.hm-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hm-topic {
  position: relative;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 18px 10px 14px;
  border: 2px solid transparent; border-radius: var(--radius);
  background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
  text-align: center; cursor: pointer;
  transition: transform .12s ease;
}
.hm-topic:active { transform: scale(.98); }
.hm-next { border-color: var(--tc); }
.hm-tag {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  padding: 2px 10px; border-radius: 999px;
  background: var(--tc); color: var(--tag-ink);
  font-size: 12.5px; font-weight: 600; white-space: nowrap;
}
.hm-ring-box { position: relative; width: 74px; height: 74px; display: grid; place-items: center; margin-bottom: 6px; }
.hm-ring { position: absolute; inset: 0; width: 100%; height: 100%; }
.hm-ring-track { fill: none; stroke: var(--surface-2); stroke-width: 6; }
.hm-ring-fill { fill: none; stroke: var(--tc); stroke-width: 6; stroke-linecap: round; }
.hm-icon { font-family: var(--emoji); font-size: 32px; line-height: 1; }
.hm-tname { font-size: 16.5px; font-weight: 600; line-height: 1.3; }
.hm-tes { color: var(--muted); font-size: 14px; }
.hm-tcount { margin-top: 2px; color: var(--tc); font-size: 13.5px; font-weight: 600; direction: ltr; }

.hm-foot { margin-top: 28px; text-align: center; color: var(--muted); font-size: 13px; }
