/* Motor de idiomas: review.css. Aba Revisar: "Revisão de hoje" (mascote e contagem), cartões de palavra com
   virada 3D, "Palavras aprendidas" (busca, filtros, força fraca/média/forte) e estado vazio. Só tokens. */
.review-page > h2 { margin-bottom: 14px; }
/* ---------- revisão de hoje ---------- */
.rv-hero {
  display: flex; align-items: center; gap: 14px; margin-bottom: 20px; padding: 18px 16px; border-radius: 24px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.rv-hero.due { background: linear-gradient(150deg, var(--tint) 0%, var(--tint-2) 100%); border-color: var(--tint-edge); }
.rv-mascot { flex: none; align-self: flex-start; width: 84px; height: 84px; animation: medal .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.rv-hero-txt { flex: 1; min-width: 0; }
.rv-eyebrow { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-ink); font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.rv-eyebrow .ico { width: 15px; height: 15px; stroke-width: 2.6; }
.rv-count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin: 2px 0 2px; }
.rv-count b { font-family: var(--font-display); font-size: 46px; line-height: 1; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.rv-count span { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--ink); }
.rv-hero h3 { margin: 4px 0 4px; font-size: 22px; line-height: 1.2; letter-spacing: -.02em; }
.rv-hero p { margin: 0 0 14px; color: var(--ink-2); font-size: 14.5px; line-height: 1.45; }
.rv-go .ico { width: 20px; height: 20px; }
.rv-go .ico-play { fill: currentColor; }
.rv-note { display: block; margin-top: 10px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }

/* ---------- seções ---------- */
.rv-sec { margin-bottom: 22px; }
.rv-sec-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.rv-sec-head h3 { margin: 0; font-family: var(--font-body); font-size: 12.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ink-2); }
.rv-sec-head small { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------- cartões de palavra (virada 3D) ---------- */
.fc-host { perspective: 1200px; touch-action: pan-y; }
.fc { position: relative; height: 220px; }
.fc.in-r { animation: fcin-r .24s ease-out; }
.fc.in-l { animation: fcin-l .24s ease-out; }
@keyframes fcin-r { from { transform: translateX(24px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fcin-l { from { transform: translateX(-24px); opacity: 0; } to { transform: none; opacity: 1; } }
.fc-inner {
  position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer;
  transform-style: preserve-3d; transition: transform .3s cubic-bezier(.3, .7, .3, 1); border-radius: 24px;
}
.fc.flipped .fc-inner { transform: rotateY(180deg); }
.fc-face {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 20px 20px 18px;
  border-radius: 24px; backface-visibility: hidden; -webkit-backface-visibility: hidden; text-align: center;
  background: var(--card); border: 1.5px solid var(--line); box-shadow: var(--shadow-1), inset 0 -5px 0 var(--line);
}
.fc-face.back { transform: rotateY(180deg); background: var(--tint); border-color: var(--tint-edge); box-shadow: inset 0 -5px 0 var(--tint-2); }
.fc-tag { position: absolute; top: 16px; left: 18px; color: var(--muted); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.fc-word { max-width: 100%; font-family: var(--font-display); font-size: 34px; font-weight: 700; line-height: 1.15; letter-spacing: -.02em; overflow-wrap: anywhere; }
.fc-word.pt { font-size: 28px; color: var(--ink); }
.fc-ipa { color: var(--ink-2); font-size: 15px; }
.fc-hint { position: absolute; bottom: 16px; display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
.fc-hint .ico { width: 15px; height: 15px; }
.fc-face.back .str { position: absolute; bottom: 16px; }
.fc .fc-say { position: absolute; z-index: 2; top: 10px; right: 10px; width: 48px; height: 48px; }
.fc-nav { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 8px; }
.fc-count { min-width: 70px; text-align: center; color: var(--ink-2); font-size: 14px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* ---------- força da palavra ---------- */
.str { display: inline-flex; align-items: center; gap: 6px; flex: none; font-size: 12.5px; font-weight: 700; }
.str .bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 14px; }
.str .bars i { display: block; width: 4px; border-radius: 2px; background: var(--line-strong); }
.str .bars i:nth-child(1) { height: 6px; } .str .bars i:nth-child(2) { height: 10px; } .str .bars i:nth-child(3) { height: 14px; }
.str.s0 { color: var(--bad); } .str.s0 .bars i:nth-child(-n+1) { background: var(--bad-solid); }
.str.s1 { color: var(--accent-ink); } .str.s1 .bars i:nth-child(-n+2) { background: var(--accent-edge); }
.str.s2 { color: var(--ok); } .str.s2 .bars i { background: var(--ok-solid); }
.str .lbl { min-width: 42px; }

/* ---------- palavras aprendidas ---------- */
.rv-tools { display: flex; gap: 8px; margin-bottom: 10px; }
.rv-search-w {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 12px; border-radius: 14px;
  background: var(--card); border: 1.5px solid var(--line-strong); color: var(--muted); cursor: text; transition: border-color .15s;
}
.rv-search-w:focus-within { border-color: var(--focus); }
.rv-search-w .ico { width: 19px; height: 19px; }
.rv-search { flex: 1; min-width: 0; height: 44px; padding: 0; border: 0; outline: 0; background: none; color: var(--ink); font-size: 16px; }
.rv-search::placeholder { color: var(--muted); }
.rv-search:focus-visible { outline: none; }
.rv-unit {
  flex: none; width: 42%; min-height: 48px; padding: 0 32px 0 12px; border: 1.5px solid var(--line-strong); border-radius: 14px;
  background: var(--card) var(--ic-chev) right 10px center / 16px no-repeat; -webkit-appearance: none; appearance: none; font-size: 14.5px;
  text-overflow: ellipsis;
}
.rv-chips { display: flex; gap: 6px; margin: 0 -16px 10px; padding: 0 16px 2px; overflow-x: auto; scrollbar-width: none; }
.rv-chips::-webkit-scrollbar { display: none; }
.rv-chip {
  flex: none; display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1.5px solid var(--line-strong); background: var(--card); color: var(--ink-2); font-weight: 700; font-size: 14px;
  transition: background-color .15s, border-color .15s, color .15s;
}
.rv-chip > i { display: none; width: 8px; height: 8px; border-radius: 50%; }
.rv-chip.s0 > i { display: block; background: var(--bad-solid); }
.rv-chip.s1 > i { display: block; background: var(--accent-edge); }
.rv-chip.s2 > i { display: block; background: var(--ok-solid); }
.rv-chip span { color: var(--muted); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; }
.rv-chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--card); }
.rv-chip[aria-pressed="true"] span { color: var(--card); opacity: .8; }
.wl { margin: 0; padding: 0; list-style: none; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow-1); overflow: hidden; }
.wrow { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 8px 14px 8px 10px; border-top: 1px solid var(--line); }
.wrow:first-child { border-top: 0; }
.wrow .say { width: 44px; height: 44px; border-radius: 12px; }
.wrow .say .ico { width: 20px; height: 20px; }
.w-txt { flex: 1; min-width: 0; }
.w-txt b { display: block; font-size: 17px; line-height: 1.3; overflow-wrap: anywhere; }
.w-txt small { display: block; color: var(--ink-2); font-size: 14px; line-height: 1.35; }
.wl-none { padding: 22px 16px; text-align: center; color: var(--ink-2); font-size: 15px; }
.wl-more { display: flex; justify-content: center; margin-top: 12px; }
.wl-more:empty { display: none; }
.rv-empty { padding: 26px 20px; text-align: center; background: var(--card); border: 1.5px dashed var(--line-strong); border-radius: 22px; }
.rv-empty-ic { display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto 10px; border-radius: 18px; background: var(--tint); color: var(--primary-ink); }
.rv-empty-ic .ico { width: 28px; height: 28px; }
.rv-empty b { display: block; font-family: var(--font-display); font-size: 18px; }
.rv-empty p { margin: 6px auto 0; max-width: 34ch; color: var(--ink-2); font-size: 14.5px; line-height: 1.5; }
@media (min-width: 700px) { .fc { height: 240px; } .fc-word { font-size: 40px; } }

/* integração: em 390 px os 4 filtros cabem sem cortar "Fortes" */
@media (max-width: 420px) { .rv-chip { padding: 0 9px; gap: 4px; font-size: 13.5px; } .rv-chips { gap: 5px; } }
