/* Placement test, results, level badge and the personalised daily lesson */
.level-badge { display: inline-grid; place-items: center; min-width: 52px; height: 36px; padding: 0 12px; border-radius: 12px; font-weight: 900; letter-spacing: .02em; color: #fff; background: var(--brand-dark); box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .18); }
.level-badge.big { min-width: 84px; height: 56px; font-size: 1.6rem; border-radius: 16px; }
.lv-A0 { background: #52606d; } .lv-A1 { background: #0f6243; } .lv-A2 { background: #0b6a73; } .lv-B1 { background: #1f5cb0; } .lv-B2 { background: #5b3fb0; } .lv-C1 { background: #a1296b; } .lv-C2 { background: #8a2f0c; }
.level-link { display: inline-flex; text-decoration: none; }

.welcome { align-items: start; }
.welcome-wrap { width: min(100%, 560px); padding: 24px 0 40px; }
.welcome .mascot { display: block; margin: 0 auto 8px; }
.choice-card.recommended { border: 2px solid var(--brand); }
.check-list { list-style: none; margin: 10px 0 14px; padding: 0; display: grid; gap: 8px; }
.check-list li { display: flex; gap: 8px; align-items: flex-start; } .check-list svg { width: 20px; height: 20px; color: var(--ok); flex: none; margin-top: 2px; }
.level-options { display: grid; gap: 10px; margin-bottom: 14px; }
.level-option { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; padding: 12px; min-height: 56px; border: 2px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.level-option:hover { border-color: var(--brand); } .level-option[aria-checked="true"] { border-color: var(--brand); background: var(--brand-soft); box-shadow: var(--focus); }
.lo-text { display: grid; gap: 2px; min-width: 0; }

.placement .q-count { white-space: nowrap; }
.placement .lesson-foot .inner { justify-content: space-between; }
.q-in { animation: q-in .3s cubic-bezier(.2, .8, .3, 1) both; }
@keyframes q-in { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .q-in { animation: none; } }
html[data-motion="off"] .q-in { animation: none; }

.result-wrap { width: min(100%, 640px); margin: 0 auto; padding: 18px 14px 80px; }
.placement-result .result-hero img { margin-bottom: 4px; }
.placement-result .result-stats { margin: 14px 0; }
.skill-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.skill-row .progress > i { transition: width .9s cubic-bezier(.2, .8, .3, 1); }
.plan-list { margin: 0; padding-left: 22px; display: grid; gap: 10px; }
.notice.level-up { display: flex; gap: 10px; align-items: center; background: var(--gold-soft); color: var(--gold-ink); border-color: var(--gold); font-weight: 800; }
.notice.level-up svg { width: 22px; height: 22px; flex: none; }
.notice.reassess { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.daily-card { border: 2px solid var(--brand); background: linear-gradient(180deg, var(--brand-soft), var(--surface)); }
.daily-card h2 { margin-top: 2px; }
.level-card .row { gap: 12px; flex-wrap: wrap; align-items: center; }
.level-history ul { margin: 8px 0 0; padding-left: 20px; }

.info-card { padding-top: 8px; }
.info-card .q-title { display: flex; align-items: center; gap: 12px; }
.info-body { font-size: 1.15rem; font-weight: 700; margin: 0 0 12px; }
.info-examples { margin: 0; padding: 12px 14px 12px 32px; background: var(--surface); border: 2px solid var(--line); border-radius: 14px; display: grid; gap: 6px; }
.info-card.grammar .info-body { font-weight: 600; line-height: 1.5; }
.notice { padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--info-soft); color: var(--ink); }
.notice.small { padding: 10px 12px; }

/* roadmap */
.level-strip { list-style: none; margin: 0 0 14px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.level-strip li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 4px; border: 1px solid var(--line); border-radius: 999px; font-weight: 700; font-size: .85rem; }
.ls-dot { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-2); } .ls-dot svg { width: 14px; height: 14px; }
.ls-completed { color: var(--ok); border-color: var(--ok); } .ls-completed .ls-dot { background: var(--ok-soft); }
.ls-current { border-color: var(--brand); box-shadow: var(--focus); } .ls-current .ls-dot { background: var(--brand); }
.ls-locked, .ls-soon { opacity: .75; }
.test-results { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; } .test-results li { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.level-head.completed { border-color: var(--ok); }
.study-examples, .study-vocab { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; } .study-examples li { display: flex; gap: 10px; align-items: flex-start; }
.speak.small { width: 34px; height: 34px; flex: none; }
.objective { border-left: 4px solid var(--brand); }
.writing-area { width: 100%; min-height: 150px; resize: vertical; font: inherit; }
.writing-count.ok { color: var(--ok); }
.model-answer { margin-top: 14px; padding: 12px 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--surface); }
.writing-feedback { margin-top: 14px; }
.big-score b { font-size: 3rem; } .exam-result.passed .big-score b { color: var(--ok); } .exam-result.failed .big-score b { color: var(--danger); }
.node.kind-exam, .node.kind-topic_test { outline: 3px dashed var(--gold); outline-offset: 3px; }

/* IELTS center */
.ielts-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 10px; }
.ielts-lesson { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; }
.ielts-lesson .ico { display: inline-grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--surface-2); flex: none; } .ielts-lesson .ico svg { width: 20px; height: 20px; }
.ielts-lesson.completed .ico { background: var(--ok-soft); color: var(--ok); }
.ielts-info { flex: 1; min-width: 0; }
.band-estimate b { font-size: 1.3rem; }

.ipa { color: var(--ink-2); font-weight: 600; font-family: "Segoe UI", "Noto Sans", "DejaVu Sans", sans-serif; }

/* vocabulary progress by level (dashboard) */
.vocab-progress { margin-top: 14px; }
.vocab-levels { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 8px; }
.vocab-levels li { display: grid; grid-template-columns: 52px 1fr 70px; gap: 10px; align-items: center; }
.vocab-levels .vl-code { font-weight: 700; }
.vocab-levels .muted { text-align: right; }

/* welcome screen: the LEXIO KIDS option (playful colours, on purpose different from the other two) */
.choice-card.kids-choice { background: linear-gradient(135deg, #ffd23f 0%, #ff8fc0 55%, #8fd8ff 100%); border: 4px solid #fff; color: #3a2a63; text-align: center; }
.choice-card.kids-choice h2, .choice-card.kids-choice p { color: #3a2a63; }
.choice-card.kids-choice .kids-choice-art { font-size: 2.4rem; letter-spacing: .15em; margin-bottom: 4px; }
.choice-card.kids-choice .kids-btn { background: #ff4f9a; color: #fff; border-radius: 999px; font-weight: 800; box-shadow: 0 5px 0 rgba(0, 0, 0, .2); }

/* welcome screen: the three ways to start fall diagonally from the top left to the bottom right (a staircase of slightly tilted cards) */
.welcome { overflow-x: hidden; }
.welcome .welcome-wrap { width: min(100%, 1120px); padding: 24px 16px 56px; }
.welcome-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; align-items: start; position: relative; padding: 8px 0 130px; isolation: isolate; }
.welcome-grid::before { content: ""; position: absolute; inset: -30px -40px; z-index: -1; pointer-events: none; border-radius: 40px;
  background: linear-gradient(118deg, transparent 0 30%, rgba(255, 138, 107, .12) 30% 33%, transparent 33% 47%, rgba(94, 242, 255, .10) 47% 50%, transparent 50% 64%, rgba(255, 79, 154, .12) 64% 67%, transparent 67%); }
.welcome-grid .choice-card { margin: 0; position: relative; transition: transform .25s ease, box-shadow .25s ease; box-shadow: 0 18px 36px rgba(0, 0, 0, .28); }
.welcome-grid .choice-card:nth-child(1) { transform: translateY(0) rotate(-2.4deg); }
.welcome-grid .choice-card:nth-child(2) { transform: translateY(58px) rotate(-.6deg); }
.welcome-grid .choice-card:nth-child(3) { transform: translateY(116px) rotate(1.6deg); }
.welcome-grid .choice-card:hover, .welcome-grid .choice-card:focus-within { transform: translateY(var(--lift, 0)) rotate(0) scale(1.025); box-shadow: 0 24px 44px rgba(0, 0, 0, .36); z-index: 2; }
.welcome-grid .choice-card:nth-child(2) { --lift: 58px; } .welcome-grid .choice-card:nth-child(3) { --lift: 116px; }
.welcome-grid .choice-card:nth-child(1)::after, .welcome-grid .choice-card:nth-child(2)::after, .welcome-grid .choice-card:nth-child(3)::after { position: absolute; top: -16px; left: -12px; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: #fff; color: #3a2a63; box-shadow: 0 4px 10px rgba(0, 0, 0, .3); }
.welcome-grid .choice-card:nth-child(1)::after { content: "1"; } .welcome-grid .choice-card:nth-child(2)::after { content: "2"; } .welcome-grid .choice-card:nth-child(3)::after { content: "3"; }
.choice-art { font-size: 2.8rem; line-height: 1; margin-bottom: 6px; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .25)); }
.welcome #choose-card { margin-top: 20px; max-width: 760px; margin-inline: auto; }
@media (max-width: 899px) {
  .welcome .welcome-wrap { width: min(100%, 560px); }
  .welcome-grid { grid-template-columns: 1fr; gap: 26px; padding: 14px 0 20px; }
  .welcome-grid::before { inset: -20px -16px; background: linear-gradient(112deg, transparent 0 35%, rgba(255, 138, 107, .12) 35% 40%, transparent 40% 60%, rgba(94, 242, 255, .10) 60% 65%, transparent 65%); }
  /* a zigzag: the cards step to the right, then to the left, then to the right again */
  .welcome-grid .choice-card:nth-child(1) { transform: rotate(-1.4deg); margin-right: 8%; --lift: 0px; }
  .welcome-grid .choice-card:nth-child(2) { transform: rotate(1deg); margin-left: 8%; --lift: 0px; }
  .welcome-grid .choice-card:nth-child(3) { transform: rotate(-1deg); margin-right: 6%; --lift: 0px; }
}
@media (prefers-reduced-motion: reduce) { .welcome-grid .choice-card { transition: none; } }
