:root {
    --bg: #f7f8f6;
    --surface: #ffffff;
    --ink: #191d29;
    --muted: #737986;
    --soft: #eef1f0;
    --green: #11b66a;
    --green-dark: #07834c;
    --green-soft: #d7f7e4;
    --yellow: #f4be13;
    --yellow-soft: #fff2a6;
    --coral: #fb6b67;
    --blue: #4cb3ef;
    --blue-soft: #e4f4ff;
    --lavender: #f0efff;
    --peach: #ffe8dc;
    --shadow: 0 18px 45px rgba(30, 36, 50, 0.13);
    --radius: 28px;
    --radius-small: 16px;
}

* {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: #11141b;
}

body {
    min-height: 100%;
    margin: 0;
    background: #11141b;
    color: var(--ink);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    letter-spacing: 0;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
textarea {
    font: inherit;
}

button {
    cursor: pointer;
}

.app-shell {
    position: relative;
    width: 100%;
    max-width: 460px;
    min-height: 100vh;
    margin: 0 auto;
    overflow: hidden;
    background: var(--bg);
    padding-bottom: 108px;
}

.screen-section {
    padding: 22px 18px 0;
}

.muted {
    color: var(--muted);
}

.lead {
    color: var(--muted);
    line-height: 1.7;
}

.topbar {
    display: grid;
    grid-template-columns: 54px 1fr 54px;
    align-items: center;
    padding: max(18px, env(safe-area-inset-top)) 18px 12px;
}

.topbar__title {
    font-size: 21px;
    font-weight: 800;
    text-align: center;
}

.topbar__side--right {
    display: flex;
    justify-content: flex-end;
}

.icon-button,
.round-soft {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.76);
    color: var(--ink);
}

.fa-icon {
    font-size: 19px;
    line-height: 1;
}

.avatar {
    display: inline-grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 50%;
    background: var(--coral);
    color: #fff;
    font-weight: 900;
}

.avatar--large {
    width: 82px;
    height: 82px;
    font-size: 34px;
}

.pill,
.tile-tag {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    min-height: 30px;
    padding: 6px 13px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 800;
}

.pill--light {
    background: rgba(255, 255, 255, 0.23);
    color: #fff;
}

.primary-button,
.secondary-button,
.white-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 58px;
    border: 0;
    border-radius: 20px;
    font-weight: 850;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
    width: 100%;
    background: var(--green);
    color: #fff;
    box-shadow: 0 12px 28px rgba(17, 182, 106, 0.28);
}

.secondary-button {
    min-width: 112px;
    padding: 0 18px;
    background: var(--ink);
    color: #fff;
}

.white-button {
    width: 100%;
    background: #fff;
    color: var(--ink);
}

.primary-button:active,
.secondary-button:active,
.white-button:active,
.hero-course__link:active {
    transform: translateY(1px);
}

.button-icon {
    margin-right: 12px;
    font-size: 18px;
    line-height: 1;
}

.fa-inline-icon {
    font-size: 13px;
    line-height: 1;
}

.welcome-view .app-shell {
    background: linear-gradient(180deg, #ffe66f 0%, #fff8c9 42%, #f7f8f6 42%);
}

.welcome-hero {
    min-height: 100vh;
    padding: max(22px, env(safe-area-inset-top)) 18px 28px;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 15px;
    background: var(--ink);
    color: #fff;
    font-weight: 900;
}

.brand-lockup strong {
    display: block;
    font-size: 21px;
}

.brand-lockup small {
    color: rgba(25, 29, 41, 0.7);
}

.mascot-card {
    position: relative;
    height: 290px;
    margin: 10px 0 -18px;
}

.mascot-card__sun {
    position: absolute;
    right: 34px;
    bottom: 52px;
    width: 126px;
    height: 126px;
    border-radius: 50%;
    background: radial-gradient(circle at 38% 38%, #fff9b5 0 20%, #ffd33f 21% 57%, #f3ae0d 58%);
    box-shadow: 0 24px 50px rgba(229, 168, 0, 0.26);
}

.mascot-card__phone {
    position: absolute;
    left: 42px;
    bottom: 20px;
    display: grid;
    width: 128px;
    height: 180px;
    place-items: center;
    border: 10px solid #202431;
    border-radius: 30px;
    background: #fff;
    transform: rotate(-8deg);
}

.mascot-card__phone span:first-child {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 18px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 26px;
    font-weight: 900;
}

.mascot-card__phone span:last-child {
    color: var(--muted);
    font-weight: 800;
}

.mascot-card__bubble {
    position: absolute;
    right: 52px;
    top: 44px;
    padding: 16px 20px;
    border-radius: 24px 24px 6px;
    background: var(--surface);
    color: var(--ink);
    font-weight: 900;
    box-shadow: var(--shadow);
}

.auth-panel {
    position: relative;
    z-index: 2;
    padding: 28px 22px 24px;
    border-radius: 34px;
    background: #fff;
    box-shadow: var(--shadow);
}

.auth-panel h1 {
    margin: 0 0 10px;
    font-size: 29px;
    line-height: 1.14;
}

.auth-panel p {
    margin: 0 0 18px;
    color: var(--muted);
    line-height: 1.55;
}

.auth-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    padding: 6px;
    margin-bottom: 16px;
    border-radius: 18px;
    background: var(--soft);
}

.auth-tabs button {
    min-height: 44px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--muted);
    font-weight: 800;
}

.auth-tabs button.is-active {
    background: #fff;
    color: var(--ink);
    box-shadow: 0 8px 22px rgba(34, 39, 52, 0.08);
}

.auth-form {
    display: none;
}

.auth-form.is-active {
    display: grid;
    gap: 12px;
}

.auth-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 760;
}

.auth-form input,
.answer-input {
    width: 100%;
    min-height: 56px;
    padding: 0 16px;
    border: 2px solid transparent;
    border-radius: 18px;
    outline: 0;
    background: #f3f5f4;
    color: var(--ink);
}

.auth-form input:focus,
.answer-input:focus {
    border-color: var(--green);
    background: #fff;
}

.form-message {
    min-height: 20px;
    margin: 0;
    color: var(--coral);
    font-size: 14px;
    font-weight: 750;
}

.home-head,
.profile-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.home-head h1,
.profile-head h1 {
    margin: 2px 0 0;
    font-size: 24px;
}

.hero-course,
.daily-card {
    position: relative;
    overflow: hidden;
    min-height: 220px;
    padding: 24px 22px;
    border-radius: 30px;
    background: var(--green);
    color: #fff;
}

.hero-course h2,
.daily-card h1 {
    max-width: 260px;
    margin: 16px 0 22px;
    font-size: 28px;
    line-height: 1.2;
}

.hero-course__link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    font-weight: 850;
}

.hero-course__art {
    position: absolute;
    right: -20px;
    bottom: -12px;
    width: 172px;
    height: 172px;
    border-radius: 46px;
    background: #fff;
    color: var(--green-dark);
    transform: rotate(-8deg);
    box-shadow: 0 18px 34px rgba(5, 73, 46, 0.25);
}

.hero-course__art span {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 18px;
    font-weight: 900;
}

.hero-course__art span:nth-child(1) {
    top: 24px;
    left: 25px;
    width: 58px;
    height: 58px;
    background: var(--yellow);
    color: var(--ink);
    font-size: 24px;
}

.hero-course__art span:nth-child(2) {
    right: 20px;
    top: 62px;
    padding: 12px 16px;
    background: var(--blue-soft);
}

.hero-course__art span:nth-child(3) {
    left: 34px;
    bottom: 30px;
    padding: 12px 18px;
    background: var(--green-soft);
}

.quick-chips,
.tag-row {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 20px 0;
    scrollbar-width: none;
}

.quick-chips::-webkit-scrollbar,
.tag-row::-webkit-scrollbar {
    display: none;
}

.quick-chips span,
.tag-row span {
    flex: 0 0 auto;
    padding: 12px 16px;
    border-radius: 18px;
    background: #fff;
    font-weight: 770;
}

.continue-card {
    display: grid;
    grid-template-columns: 76px 1fr 42px;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 24px;
    background: #c9f5d8;
}

.continue-card h3 {
    margin: 0 0 8px;
    font-size: 17px;
}

.continue-card p {
    margin: 6px 0 0;
    color: var(--green-dark);
    font-size: 14px;
    font-weight: 780;
}

.mini-picture,
.tile-art {
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    background: #fff;
}

.mini-picture {
    width: 76px;
    height: 76px;
}

.mini-picture--exam::before,
.tile-art--exam::before {
    position: absolute;
    inset: 20% 15%;
    content: "A1";
    display: grid;
    place-items: center;
    border-radius: 18px;
    background: var(--yellow);
    color: var(--ink);
    font-weight: 950;
}

.progress-line {
    overflow: hidden;
    width: 100%;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.68);
}

.progress-line span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--green);
}

.round-action {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: var(--green);
    color: #fff;
}

.round-action i {
    font-size: 13px;
    line-height: 1;
}

.section-heading {
    margin: 26px 0 12px;
}

.section-heading--inline {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
}

.section-heading h2 {
    margin: 0 0 6px;
    font-size: 21px;
}

.section-heading span {
    color: var(--muted);
    font-size: 14px;
}

.content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}

.course-tile {
    position: relative;
    min-height: 232px;
    overflow: hidden;
    padding: 18px 18px 128px;
    border-radius: 26px;
}

.course-tile--green {
    background: #dff8e8;
}

.course-tile--blue {
    background: #e6f5ff;
}

.course-tile--peach {
    background: var(--peach);
}

.course-tile--lavender {
    background: var(--lavender);
}

.course-tile h3 {
    position: relative;
    z-index: 1;
    margin: 18px 0 8px;
    font-size: 22px;
    line-height: 1.2;
}

.course-tile p {
    position: relative;
    z-index: 1;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.35;
}

.tile-art {
    position: absolute;
    right: 14px;
    bottom: 12px;
    width: 112px;
    height: 104px;
}

.tile-art--label {
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--green-dark);
    box-shadow: 0 14px 28px rgba(30, 36, 50, 0.08);
}

.tile-art--label span {
    display: grid;
    min-width: 64px;
    min-height: 56px;
    place-items: center;
    padding: 10px;
    border-radius: 18px;
    background: var(--yellow);
    color: var(--ink);
    font-size: 18px;
    font-weight: 950;
    text-align: center;
}

.tile-art--image img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tile-art--words {
    display: grid;
    place-items: center;
    background: #fff;
    color: var(--green-dark);
    box-shadow: 0 14px 28px rgba(30, 36, 50, 0.08);
}

.tile-art--words i {
    font-size: 42px;
    line-height: 1;
}

.streak-banner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin: 26px 0 0;
}

.streak-banner div,
.stat-grid article {
    display: grid;
    min-height: 112px;
    place-items: center;
    padding: 16px;
    border-radius: 24px;
    background: #fff;
}

.streak-banner strong {
    font-size: 24px;
}

.streak-banner small,
.stat-grid small {
    color: var(--muted);
}

.flame,
.bolt,
.stat-icon {
    display: inline-block;
    font-size: 30px;
    line-height: 1;
}

.flame {
    color: #f05a3e;
}

.flame--large {
    font-size: 58px;
}

.bolt {
    color: var(--yellow);
}

.bolt--large {
    font-size: 56px;
}

.course-hero {
    padding: 8px 18px 0;
    background: linear-gradient(180deg, #c9f5d8 0 72%, transparent 72%);
}

.course-preview {
    position: relative;
    width: min(78vw, 250px);
    min-height: 276px;
    margin: 22px auto 42px;
    padding: 24px;
    border: 8px solid #fff;
    border-radius: 34px;
    background: #dff8e8;
    box-shadow: 0 22px 55px rgba(50, 75, 62, 0.12);
}

.course-preview h1 {
    margin: 18px 0 14px;
    font-size: 30px;
    line-height: 1.2;
}

.course-preview .tile-art {
    right: 24px;
    bottom: 22px;
    width: 136px;
    height: 118px;
}

.tabs {
    padding: 0 18px;
}

.tabbar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    border-bottom: 1px solid #dfe3e3;
}

.tabbar button {
    min-height: 56px;
    border: 0;
    border-bottom: 4px solid transparent;
    background: transparent;
    color: var(--muted);
    font-weight: 840;
}

.tabbar button.is-active {
    border-color: var(--green);
    color: var(--green-dark);
}

.tab-panel {
    display: none;
    padding: 24px 0 0;
}

.tab-panel.is-active {
    display: block;
}

.info-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 20px;
    border-radius: 24px;
    background: #fff;
}

.info-card div {
    display: grid;
    gap: 6px;
}

.info-card strong {
    color: var(--green-dark);
    font-size: 20px;
}

.tab-panel h2,
.word-intro h1 {
    margin: 8px 0 12px;
    font-size: 28px;
}

.tab-panel h3 {
    margin: 24px 0 0;
}

.tag-row span {
    background: #f0f2f1;
}

.tag-row--skills span {
    background: #fff;
}

.lesson-explainer {
    display: grid;
    gap: 14px;
    margin: 22px 0;
}

.lesson-explainer article {
    padding: 18px;
    border-radius: 24px;
    background: #fff;
}

.lesson-explainer h3 {
    margin: 0 0 8px;
}

.lesson-explainer p {
    margin: 0;
    color: var(--muted);
    line-height: 1.65;
}

.example-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.example-list span {
    padding: 9px 11px;
    border-radius: 999px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 13px;
    font-weight: 850;
}

.difficulty-list {
    display: grid;
    gap: 14px;
}

.difficulty-card {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(30, 36, 50, 0.06);
}

.difficulty-card.is-complete {
    outline: 2px solid rgba(17, 182, 106, 0.25);
}

.difficulty-card__label {
    color: var(--green-dark);
    font-weight: 900;
}

.difficulty-card h3 {
    margin: 7px 0;
    font-size: 17px;
    line-height: 1.35;
}

.difficulty-card p {
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.word-intro {
    padding: 20px 18px 12px;
}

.word-intro p {
    color: var(--muted);
    line-height: 1.65;
}

.word-strip {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 12px 0 2px;
    scrollbar-width: none;
}

.word-strip .word-photo {
    flex: 0 0 88px;
    width: 88px;
    height: 88px;
}

.word-photo {
    position: relative;
    display: block;
    width: 180px;
    height: 180px;
    margin: 0;
    overflow: hidden;
    border-radius: 28px;
    background: var(--blue-soft);
}

.word-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.word-photo__missing {
    display: grid;
    width: 100%;
    height: 100%;
    place-items: center;
    padding: 14px;
    color: var(--muted);
    font-weight: 850;
    text-align: center;
}

.word-photo__credit {
    position: absolute;
    right: 8px;
    bottom: 8px;
    left: 8px;
    overflow: hidden;
    padding: 4px 7px;
    border-radius: 999px;
    background: rgba(17, 20, 27, 0.55);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
    backdrop-filter: blur(8px);
}

.word-photo__credit a {
    color: inherit;
}

.word-strip .word-photo__credit {
    display: none;
}

.practice-view .app-shell {
    background: #fff;
    overflow-anchor: none;
}

.practice-shell {
    min-height: 100vh;
    padding: max(20px, env(safe-area-inset-top)) 18px 28px;
}

.practice-top {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
    margin-bottom: 26px;
}

.practice-top a {
    font-weight: 900;
}

.practice-progress {
    overflow: hidden;
    height: 10px;
    border-radius: 999px;
    background: #e4e6e5;
}

.practice-progress span {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: var(--yellow);
    transition: width 0.25s ease;
}

.practice-area {
    display: grid;
    min-height: calc(100vh - 110px);
    align-content: start;
    gap: 18px;
    overflow-anchor: none;
}

.question-kicker {
    color: var(--muted);
    font-size: 15px;
    font-weight: 800;
}

.question-title {
    margin: 0;
    font-size: 28px;
    line-height: 1.22;
}

.hint-card,
.result-card,
.feedback-card {
    padding: 16px;
    border-radius: 22px;
    background: #fff8db;
    color: #5c4700;
    line-height: 1.55;
}

.feedback-card {
    visibility: hidden;
    min-height: 58px;
    opacity: 0;
    text-align: center;
    font-weight: 850;
    transition: opacity 0.16s ease;
}

.feedback-card.is-visible {
    visibility: visible;
    opacity: 1;
}

.feedback-card.is-correct {
    background: #e1f8ea;
    color: var(--green-dark);
}

.feedback-card.is-wrong {
    background: #ffe8e6;
    color: #b3342e;
}

.option-list {
    display: grid;
    gap: 13px;
}

.choice-with-audio {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 10px;
    align-items: center;
}

.option-button {
    min-height: 62px;
    padding: 0 18px;
    border: 2px solid #e6e8e8;
    border-radius: 19px;
    background: #fff;
    color: var(--ink);
    font-weight: 830;
    text-align: center;
}

.option-button.is-picked {
    border-color: var(--green);
    background: var(--green);
    color: #fff;
}

.option-button.is-wrong {
    border-color: #ffb8b3;
    background: #ffe8e6;
}

.practice-actions {
    display: flex;
    gap: 12px;
    margin-top: 4px;
    visibility: hidden;
    min-height: 58px;
    opacity: 0;
    pointer-events: none;
}

.practice-actions.is-visible {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.practice-actions .primary-button,
.practice-actions .secondary-button {
    flex: 1;
}

.study-card {
    display: grid;
    justify-items: center;
    gap: 16px;
    padding-top: 18px;
    text-align: center;
}

.study-card .word-photo {
    width: min(72vw, 240px);
    height: min(72vw, 240px);
}

.study-card h1 {
    margin: 4px 0 0;
    font-size: 38px;
}

.word-heading {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.word-heading h1 {
    margin: 0;
}

.audio-button {
    display: inline-grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: var(--green-soft);
    color: var(--green-dark);
    font-size: 18px;
    box-shadow: none;
}

.audio-button:active {
    transform: translateY(1px);
}

.study-card p {
    margin: 0;
    color: var(--muted);
    font-size: 20px;
    font-weight: 800;
}

.quiz-picture-wrap {
    display: grid;
    justify-items: center;
    gap: 14px;
    margin: 8px 0;
}

.quiz-picture-wrap .word-photo {
    width: min(72vw, 230px);
    height: min(72vw, 230px);
}

.azeri-word {
    display: inline-flex;
    padding: 10px 16px;
    border-radius: 999px;
    background: var(--soft);
    color: var(--ink);
    font-weight: 900;
}

.azeri-word-wrap {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.youtube-audio-frame {
    position: fixed;
    right: 0;
    bottom: 0;
    width: 1px;
    height: 1px;
    border: 0;
    opacity: 0.01;
    pointer-events: none;
}

.result-card {
    display: grid;
    gap: 14px;
    justify-items: center;
    padding: 28px 20px;
    background: #fff;
    color: var(--ink);
    text-align: center;
    box-shadow: var(--shadow);
}

.result-card strong {
    font-size: 54px;
}

.daily-card {
    display: grid;
    align-content: space-between;
    gap: 22px;
    min-height: 238px;
}

.daily-card p {
    margin: 0;
    font-size: 22px;
    font-weight: 800;
}

.leader-list {
    display: grid;
    gap: 12px;
}

.leader-row {
    display: grid;
    grid-template-columns: 34px 54px 1fr auto;
    align-items: center;
    gap: 12px;
    min-height: 72px;
    padding: 10px 12px;
    border-radius: 22px;
    background: #fff;
}

.leader-row.is-you {
    background: var(--green-soft);
}

.leader-rank {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: var(--yellow);
    color: #fff;
    font-weight: 900;
}

.leader-avatar {
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    border-radius: 50%;
    background: var(--blue);
    color: #fff;
    font-weight: 900;
}

.leader-row span:last-child {
    color: var(--muted);
    font-weight: 800;
}

.empty-state {
    padding: 22px;
    border-radius: 22px;
    background: #fff;
    color: var(--muted);
    text-align: center;
}

.profile-section {
    display: grid;
    gap: 18px;
}

.profile-head {
    justify-content: flex-start;
}

.profile-head p {
    margin: 5px 0 0;
    color: var(--muted);
}

.stat-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
}

.stat-grid article {
    min-height: 132px;
}

.stat-grid strong {
    font-size: 26px;
}

.stat-icon--completed {
    color: var(--green);
}

.stat-icon--attempts {
    color: var(--blue);
}

.stat-icon--streak {
    color: #f05a3e;
}

.streak-card,
.xp-card {
    padding: 24px;
    border-radius: 28px;
}

.streak-card {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 18px;
    align-items: center;
    background: var(--yellow);
    color: #fff;
}

.streak-card strong {
    font-size: 42px;
}

.streak-card p,
.xp-card p {
    margin: 0;
    font-weight: 820;
}

.week-dots {
    grid-column: 1 / -1;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 8px;
    padding: 14px;
    border-radius: 22px;
    background: #fff;
}

.week-dots span {
    display: block;
    height: 28px;
    border-radius: 999px;
    background: var(--yellow);
}

.xp-card {
    overflow: hidden;
    background: #fff;
}

.xp-card > div:first-child {
    display: flex;
    align-items: center;
    gap: 18px;
}

.xp-card strong {
    font-size: 38px;
}

.xp-wave {
    position: relative;
    height: 150px;
    margin: 12px -24px -24px;
    background: linear-gradient(180deg, transparent, #dff8e8);
}

.xp-wave span {
    position: absolute;
    left: -8%;
    right: -8%;
    bottom: 38px;
    height: 92px;
    border-top: 9px solid var(--green);
    border-radius: 50%;
    transform: rotate(-7deg);
}

.logout-link {
    display: grid;
    min-height: 58px;
    place-items: center;
    border-radius: 20px;
    background: #fff;
    color: var(--coral);
    font-weight: 880;
}

.admin-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    min-height: 58px;
    border-radius: 20px;
    background: var(--ink);
    color: #fff;
    font-weight: 880;
}

.admin-section h3 {
    margin: 22px 0 12px;
}

.admin-list {
    display: grid;
    gap: 12px;
}

.admin-list a {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 22px;
    background: #fff;
}

.admin-list span {
    color: var(--muted);
    font-size: 14px;
    font-weight: 760;
}

.admin-form,
.admin-block,
.admin-word-row {
    display: grid;
    gap: 14px;
}

.admin-form {
    padding-bottom: 28px;
}

.admin-form label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 780;
}

.admin-form input,
.admin-form textarea {
    width: 100%;
    min-height: 50px;
    padding: 12px 14px;
    border: 2px solid #e3e7e6;
    border-radius: 16px;
    outline: 0;
    background: #fff;
    color: var(--ink);
}

.admin-form textarea {
    min-height: 112px;
    resize: vertical;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
    font-size: 13px;
    line-height: 1.5;
}

.admin-form input:focus,
.admin-form textarea:focus {
    border-color: var(--green);
}

.admin-two,
.admin-three {
    display: grid;
    gap: 12px;
}

.admin-block,
.admin-word-row {
    padding: 16px;
    border-radius: 22px;
    background: #fff;
}

.admin-word-row {
    margin-bottom: 12px;
}

.admin-flash {
    padding: 14px 16px;
    border-radius: 18px;
    background: var(--green-soft);
    color: var(--green-dark);
    font-weight: 850;
}

.admin-flash--error {
    background: #ffe8e6;
    color: #b3342e;
}

.bottom-nav {
    position: fixed;
    right: 12px;
    bottom: max(12px, env(safe-area-inset-bottom));
    left: 12px;
    z-index: 20;
    display: grid;
    max-width: 436px;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    padding: 9px;
    margin: 0 auto;
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 16px 40px rgba(30, 36, 50, 0.14);
    backdrop-filter: blur(16px);
}

.bottom-nav__item {
    display: grid;
    min-height: 58px;
    place-items: center;
    gap: 4px;
    border-radius: 21px;
    color: #6d737e;
    font-size: 12px;
    font-weight: 850;
}

.bottom-nav__item.is-active {
    background: #e8f9ef;
    color: var(--green-dark);
}

.nav-icon {
    display: inline-block;
    color: currentColor;
    font-size: 21px;
    line-height: 1;
}

@media (min-width: 520px) {
    body {
        padding: 18px 0;
    }

    .app-shell {
        min-height: calc(100vh - 36px);
        border-radius: 36px;
        box-shadow: 0 28px 90px rgba(0, 0, 0, 0.3);
    }
}

@media (min-width: 900px) {
    .app-shell {
        max-width: 980px;
    }

    .screen-section,
    .tabs,
    .word-intro {
        padding-right: 34px;
        padding-left: 34px;
    }

    .welcome-hero {
        display: grid;
        grid-template-columns: 1fr 440px;
        gap: 34px;
        align-items: center;
        min-height: calc(100vh - 36px);
        padding: 42px;
    }

    .brand-lockup {
        position: absolute;
        top: 34px;
        left: 42px;
    }

    .mascot-card {
        height: 520px;
        margin: 0;
    }

    .auth-panel {
        grid-column: 2;
    }

    .content-grid {
        grid-template-columns: repeat(4, 1fr);
    }

    .course-tile {
        min-height: 260px;
    }

    .difficulty-list {
        grid-template-columns: repeat(3, 1fr);
    }

    .difficulty-card {
        grid-template-columns: 1fr;
        align-content: space-between;
        min-height: 260px;
    }

    .admin-two {
        grid-template-columns: repeat(2, 1fr);
    }

    .admin-three {
        grid-template-columns: repeat(3, 1fr);
    }

    .practice-area {
        max-width: 720px;
        margin: 0 auto;
    }

    .bottom-nav {
        left: 50%;
        transform: translateX(-50%);
    }
}
