/* ---------- word roots (v13) ---------- */
:root { --root: #7bd88f; }

/* home: the Word Roots button above Practice and Sentences */
.roots-btn { position: relative; text-align: left; padding: 9px 14px; border-radius: 16px; font-weight: 800; font-size: 16px;
  border: 1px solid rgba(123,216,143,.55); background: linear-gradient(90deg, rgba(14,52,26,.88), rgba(16,24,44,.85)); backdrop-filter: blur(8px);
  display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.roots-btn:hover { box-shadow: 0 0 20px rgba(123,216,143,.45); }
.roots-btn em { margin-left: auto; font-style: normal; font-size: 12px; padding: 3px 9px; border-radius: 12px; background: var(--red); color: #fff; box-shadow: 0 0 10px rgba(255,93,115,.5); }
.roots-btn em.go { background: var(--root); color: #062a12; box-shadow: 0 0 12px rgba(123,216,143,.7); }
.roots-btn small { margin-left: auto; color: var(--muted); font-weight: 700; }
.roots-btn.ready { animation: rootglow 1.6s ease-in-out infinite; }
@keyframes rootglow { 50% { box-shadow: 0 0 22px rgba(123,216,143,.6); border-color: rgba(123,216,143,.95); } }
@media (max-height: 790px) { .roots-btn { padding: 6px 12px; font-size: 14px; } }

/* the root card in a lesson */
.lc-tag.rt { background: linear-gradient(90deg, #9dffb8, #3fbf68); color: #052a10; }
.root-card { padding: 4px 0 0; }
.root-card .lc-word { color: var(--root); font-size: 44px; margin-top: 6px; }
.root-card .lc-def { margin: 8px 0; }
.root-card .lc-def b { color: #fff; }
.rc-tip { max-width: 600px; margin: 0 auto 10px; color: var(--muted); font-weight: 600; line-height: 1.4; }
.rc-ex { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 6px 0 4px; text-align: left; }
.quiz-foot #lcgo { margin: 0 auto; }
.rce { padding: 10px 12px; border-radius: 14px; background: rgba(0,0,0,.28); border: 1px solid rgba(123,216,143,.3); display: flex; flex-direction: column; gap: 5px; }
.rce-w { font-family: var(--head); font-size: 22px; }
.rce-w .spk { font-size: 14px; }
.rce-d { font-size: 14px; font-weight: 600; line-height: 1.35; }
.rce-x { font-size: 13px; color: var(--muted); font-style: italic; line-height: 1.35; }
.rce-x b { color: var(--gold); font-style: normal; }
.root-card mark, .q-big mark { background: none; color: var(--root); text-decoration: underline; text-underline-offset: 4px; }

/* word parts and what they mean (cards and questions) */
.rq-parts { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 6px; margin: 6px auto 2px; font-size: 14px; font-weight: 700; }
.quiz-body .rce .rq-parts { justify-content: flex-start; margin: 0; font-size: 12px; gap: 3px 4px; }
.rce .rq-parts span { padding: 2px 6px; }
.rq-parts span { padding: 3px 9px; border-radius: 10px; background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.rq-parts span b { color: #fff; }
.rq-parts span.me { border-color: var(--root); background: rgba(123,216,143,.14); }
.rq-parts span.me b { color: var(--root); }
.rq-parts i { color: var(--muted); font-style: normal; }
.quiz-body .rq-parts { font-size: 16px; }

/* the Word Roots panel */
.roots-wrap .rt-card .rc-t { color: var(--root); }
.rt-bar i { background: linear-gradient(90deg, #9dffb8, #3fbf68); }
.rt-card .btn em { font-style: normal; font-size: 12px; margin-left: 6px; padding: 2px 7px; border-radius: 10px; background: var(--red); color: #fff; }
.rt-go { white-space: normal; line-height: 1.25; }
.rt-scroll { display: block; padding: 10px 14px; }
.rt-list { display: flex; flex-direction: column; gap: 6px; max-width: 720px; margin: 0 auto; }
.rt-lv { margin: 10px 0 2px; font-family: var(--head); font-size: 18px; color: var(--root); }
.rt-row { display: grid; grid-template-columns: 34px 34px 1fr auto; gap: 8px; align-items: center; text-align: left; padding: 8px 12px; border-radius: 14px;
  border: 1px solid var(--line); background: var(--panel); font-size: 15px; transition: transform .1s, border-color .15s; }
.rt-row:hover { transform: translateX(3px); border-color: rgba(123,216,143,.6); }
.rt-ic { font-size: 22px; }
.rt-n { color: var(--muted); font-weight: 800; }
.rt-fs b { font-family: var(--head); font-weight: 400; font-size: 18px; }
.rt-fs small { color: var(--muted); font-weight: 600; }
.rt-fs i { color: var(--muted); font-style: normal; margin: 0 8px; }
.rt-row em { font-style: normal; font-size: 12px; font-weight: 800; color: var(--muted); }
.rt-row.done em, .rt-row.crown em { color: var(--root); }
.rt-row.next { border-color: var(--root); box-shadow: 0 0 16px rgba(123,216,143,.35); }
.rt-row.next em { color: #062a12; background: var(--root); padding: 3px 9px; border-radius: 10px; }
.rt-row.locked { opacity: .55; }
.rt-row.crown { background: linear-gradient(90deg, rgba(61,252,216,.12), var(--panel)); }
.rt-pw { grid-template-columns: 26px 80px 1fr auto; align-items: center; }

/* road map: leaves beside the path where root lessons open */
.rm-root { position: absolute; width: 48px; height: 48px; border-radius: 50%; font-size: 24px; display: grid; place-items: center; z-index: 3; border: none;
  background: radial-gradient(circle at 40% 30%, #4f6a55, #2a3a2e); box-shadow: 0 5px 0 #18221b, 0 8px 14px rgba(0,0,0,.4); transition: transform .12s; }
.rm-root:hover { transform: translateY(-3px); }
.rm-root em { position: absolute; top: -6px; right: -6px; font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 6px; border-radius: 10px; background: #0d1428; border: 1px solid var(--root); color: var(--root); }
.rm-root.open { background: radial-gradient(circle at 40% 30%, #b6ffc6, #3fbf68); box-shadow: 0 5px 0 #1f6a35, 0 0 18px rgba(123,216,143,.7); animation: bob 1.4s ease-in-out infinite; }
.rm-root.done { background: radial-gradient(circle at 40% 30%, #a8e7b5, #4f9e62); box-shadow: 0 5px 0 #2a5a36, 0 0 10px rgba(123,216,143,.4); }
.rm-root.crown { background: radial-gradient(circle at 40% 30%, #c7fff4, #2fd6b6); box-shadow: 0 5px 0 #137a66, 0 0 16px rgba(61,252,216,.6); }
.rm-root.locked { filter: grayscale(.7) brightness(.7); }
.rm-rootgo { border-color: rgba(123,216,143,.6); white-space: normal; line-height: 1.25; }
.rm-rootgo em { font-style: normal; font-size: 12px; margin-left: 6px; padding: 2px 7px; border-radius: 10px; background: var(--red); color: #fff; }
