/* Shared visual system. Loaded last in both the site and child-mode layouts.
 * Keep game-state colours and interaction geometry in their owning stylesheets. */
:root {
    --brand: #26745b;
    --brand-hover: #1d5b47;
    --brand-dark: #223c32;
    --brand-light: #eaf3ee;
    --savanna: #26745b;
    --msasa: #a85632;
    --sun: #e9bd63;
    --sky: #508da8;
    --clay: #bf5650;
    --accent: #e9bd63;
    --bg: #f8f9f6;
    --cream: #f8f9f6;
    --text: #263a32;
    --ink: #263a32;
    --muted: #64736b;
    --border-color: #dfe6df;
    --ls-line: #dfe6df;
    --ls-card: #fff;
    --radius: 18px;
    --radius-lg: 24px;
    --font-body: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --font-heading: var(--font-body);
    --heading: var(--font-body);
    --body: var(--font-body);
    --shadow-sm: 0 2px 6px rgb(34 60 50 / 4%);
    --shadow: 0 6px 20px rgb(34 60 50 / 7%);
    --ls-shadow: var(--shadow);
    --shadow-lg: 0 16px 48px rgb(34 60 50 / 12%);
}
body { font-size: 16px; line-height: 1.6; background: var(--bg); }
h1, h2, h3, h4 { letter-spacing: -.025em; line-height: 1.2; }
button, input, select, textarea { font-family: var(--font-body); }
a, button { touch-action: manipulation; }
:where(a, button, input, select, textarea, summary):focus-visible {
    outline: 3px solid var(--brand); outline-offset: 3px;
}

/* Quiet navigation with one accent for the current destination. */
.navbar { border: 1px solid var(--ls-line); border-radius: 18px; box-shadow: var(--shadow-sm); }
.ls-brand, .ls-mbar-brand { font-weight: 800; letter-spacing: -.04em; }
.ls-brand b, .ls-mbar-brand b { color: var(--brand); }
.navbar-nav .nav-link { border-radius: 10px; font-size: 15px; }
.navbar-nav .nav-link:hover, .navbar-nav .nav-link.active { background: var(--brand-light); color: var(--brand-hover); }
.navbar-nav .nav-link.nav-link-play, .navbar-nav .nav-link[href$="/play"] { box-shadow: none; }
.ls-mbar { background: rgb(248 249 246 / 96%); }
.ls-mbar-btn { border-width: 1px; border-radius: 14px; }
.ls-mbar-me { background: var(--brand-light); border-color: var(--ls-line); }
.ls-tabbar { box-shadow: 0 -2px 12px rgb(34 60 50 / 3%); }
.ls-tab { border-radius: 12px; font-weight: 700; }
.ls-tab.active { background: var(--brand-light); color: var(--brand-hover); }
.navbar-nav .dropdown-menu, .ls-dropdown-menu, .ls-search-panel, .ls-sheet {
    border-color: var(--ls-line); background: #fff; box-shadow: var(--shadow-lg);
}
.ls-dropdown-item:hover, .ls-dropdown-item:focus, .ls-mega-link:hover { background: var(--brand-light); transform: none; }
.ls-search-btn, .ls-sheet-search { border-radius: 12px; border-color: var(--ls-line); }
.ls-tile, .ls-acc { border-radius: 14px; border-color: var(--ls-line); box-shadow: none; }

/* Typography and a compact, breathable landing page. */
.ls-hero { padding: 64px 0 44px; }
.ls-hero::before, .ls-title span::after { display: none; }
.ls-hero-mini { padding: 44px 0 12px; }
.ls-kicker {
    background: var(--brand-light); color: var(--brand-hover); box-shadow: none;
    font-size: 12px; font-weight: 800; padding: 7px 12px; letter-spacing: .04em;
}
.ls-title { font-size: clamp(36px, 5vw, 64px); line-height: 1.08; letter-spacing: -.045em; margin: 20px 0; }
.ls-title span { white-space: normal; }
.ls-hero-mini .ls-title { font-size: clamp(32px, 4.2vw, 50px); }
.ls-lead { font-size: 18px; line-height: 1.7; color: var(--muted); }
.ls-small { font-size: 13px; font-weight: 600; }
.ls-h2 { font-size: clamp(28px, 3.5vw, 38px); }
.ls-h2 em { font-size: 14px; margin-top: 10px; color: var(--muted); }
.ls-btn {
    min-height: 48px; justify-content: center; padding: 12px 22px; border: 1px solid transparent;
    border-radius: 12px; font-size: 16px; line-height: 1.4; font-weight: 800;
    text-decoration: none; transition: background-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ls-btn-go, .ls-btn-go:active { background: var(--brand); box-shadow: none; color: #fff; }
.ls-btn-go:hover { background: var(--brand-hover); color: #fff; }
.ls-btn-ghost { background: #fff; border-color: var(--ls-line); box-shadow: none; }
.ls-btn-ghost:hover { background: var(--brand-light); }
.ls-btn:active { transform: translateY(1px); }
.ls-find { border: 1px solid var(--ls-line); border-radius: 14px; box-shadow: var(--shadow-sm); font-size: 15px; padding: 15px 18px; }
.ls-find:hover { border-color: var(--brand); transform: none; }
.ls-hero-art { height: 360px; }
.ls-hero-art::before { background: #eaf0e6; opacity: 1; inset: 30px 25px 10px; border-radius: 48% 52% 44% 56%; }
.ls-hero-shiri, .ls-hero-bubble, .ls-float { animation: none; }
.ls-hero-shiri { width: 260px; filter: none; }
.ls-hero-bubble { border: 1px solid var(--ls-line); border-radius: 18px 18px 18px 5px; padding: 16px 20px; }
.ls-hero-bubble b { font-size: 30px; color: var(--text); }
.ls-float { font-size: 36px; }
.ls-float.f2, .ls-float.f4 { display: none; }

/* Use a consistent card edge; colour lives in the illustration or icon. */
.ls-quick a, .ls-feature, .ls-hub-card, .ls-story-card, .ls-dict-card, .ls-page-card, .ls-dict-controls {
    background: #fff; border: 1px solid var(--ls-line); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.ls-quick { gap: 16px; }
.ls-quick a { padding: 22px; gap: 8px; }
.ls-quick b { font-size: 18px; }
.ls-quick small { font-weight: 600; line-height: 1.5; }
.ls-feature h3 { font-size: 23px; }
.ls-feature-icon { border-radius: 20px; width: 72px; height: 72px; font-size: 36px; }
.ls-topics-band { border: 1px solid var(--ls-line); border-radius: 24px; }
.ls-topic {
    background: color-mix(in srgb, var(--c) 12%, white); color: var(--text);
    border: 1px solid color-mix(in srgb, var(--c) 24%, white); border-radius: 18px; box-shadow: none; gap: 8px;
}
.ls-topic b { font-size: 22px; text-shadow: none; }
.ls-topic small { color: var(--muted); opacity: 1; }
.ls-topic:hover { transform: translateY(-2px); }
.ls-wotd { background: #eef3e9; border-radius: 20px; box-shadow: none; }
.ls-dzepfunde-banner > div { background: #f4f1e7; border: 1px solid #e5dfce; }
.ls-wotd-word { font-size: 44px; }
.ls-quote { border-radius: 24px; }
.ls-quote p { font-size: 26px; line-height: 1.4; }
.ls-hub-txt b { line-height: 1.35; }
.ls-hub-txt span { font-weight: 600; line-height: 1.5; }
.ls-xcard-title { font-family: var(--font-heading); line-height: 1.35; }
.ls-story-card:hover, .ls-dict-card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ls-story-card:hover .ls-story-card-cover img { transform: none; }
.ls-dict-search, .ls-dict-select, .ls-dict-toggle-btn { border: 1px solid var(--ls-line); border-radius: 12px; background: #fff; }
.ls-dict-stat-pill { border: 1px solid var(--ls-line); box-shadow: none; font-size: 13px; color: var(--muted); }
@media (min-width: 992px) {
    .ls-dict-controls > .row { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 12px; margin: 0; }
    .ls-dict-controls > .row > * { width: auto; padding: 0; margin: 0; min-width: 0; }
}
.ls-dict-alpha-bar { border-top: 1px solid var(--ls-line); gap: 6px; }
.ls-alpha-btn { border-color: var(--ls-line); background: #fff; }
.ls-alpha-btn.active { box-shadow: none; }
.ls-modal-card { background: var(--bg); border-radius: 20px; box-shadow: var(--shadow-lg); }
.ls-footer { border-top: 1px solid var(--ls-line); font-size: 14px; }

/* Child mode retains large picture targets and meaningful game feedback. */
body.play { background: var(--bg); }
.play .round-btn, .play .avatar, .play .lock { border: 1px solid var(--ls-line); box-shadow: var(--shadow-sm); }
.play .round-btn { border-radius: 18px; }
.play .screen-title { font-size: clamp(28px, 4vw, 44px); line-height: 1.2; }
.play .screen-title span, .play .hear, .play .big-play { animation: none; }
.play .screen-title em { opacity: 1; color: var(--muted); font-size: 16px; margin-top: 8px; }
.play .island {
    background: color-mix(in srgb, var(--c) 14%, white); color: var(--ink); text-shadow: none;
    border: 1px solid color-mix(in srgb, var(--c) 30%, white); border-radius: 22px;
    box-shadow: var(--shadow-sm); animation: refined-enter .22s ease-out both;
}
.play .island-icon { filter: none; }
.play .island-img {
    width: clamp(68px, 8vw, 86px);
    height: clamp(68px, 8vw, 86px);
    object-fit: cover;
    border-radius: 18px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 2px solid #fff;
    background: #fff;
    margin-bottom: 8px;
    transition: transform .18s ease;
}
.play .island:hover .island-img {
    transform: scale(1.05);
}
.play .island-name, .play .tile-label { font-size: 24px; line-height: 1.25; }
.play .island-en { opacity: 1; color: var(--muted); }
.play .stars { color: #9a6618; }
.play .tile { border: 1px solid var(--ls-line); border-bottom: 4px solid var(--c); animation: refined-enter .22s ease-out both; }
.play .tile-sub { opacity: 1; color: var(--muted); }
.play .card { border-width: 3px; border-radius: 24px; }
.play .choice { border-radius: 24px; }
.play .splash-title { color: var(--brand); text-shadow: none; font-size: clamp(42px, 7vw, 76px); }
.play .big-play, .play .big-play.small { box-shadow: 0 6px 18px rgb(38 116 91 / 20%); }
.play .shiri:not(.talking):not(.dancing):not(.hop) { animation: none; }
.play .lyrics li.on { background: var(--brand-light); box-shadow: 0 0 0 3px var(--brand), 0 8px 24px rgb(38 116 91 / 15%); transform: none; border-color: var(--brand); }
.play .lyrics li.next-up { border-color: rgb(38 116 91 / 40%); background: #fcfffd; }
/* The adventure trail is the default route after Start. */
.play .adventure-title, .play .island-meta h3 { color: var(--ink); }
.play .adventure-sub, .play .island-meta p { color: var(--muted); }
.play .adventure-trail { gap: 24px; padding: 10px 4px; }
.play .adventure-island { border: 1px solid var(--ls-line); border-radius: 20px; box-shadow: var(--shadow-sm); }
.play .adventure-island.active-island { border-color: var(--brand); box-shadow: 0 0 0 2px var(--brand-light); transform: none; }
.play .island-avatar-badge { border: 1px solid var(--ls-line); color: var(--brand); box-shadow: none; }
.play .island-icon-box { flex-shrink: 0; background: var(--brand-light); border-radius: 16px; }
.play .island-meta { min-width: 0; }
.play .island-steps { border-color: var(--ls-line); }
.play .step-chip { min-height: 44px; border-color: var(--ls-line); border-radius: 10px; background: var(--bg); color: var(--ink); }
.play .step-chip:hover, .play .step-chip.completed { background: var(--brand-light); color: var(--brand-hover); }
.play .cabinet-card { border: 1px solid var(--ls-line); border-radius: 20px; box-shadow: var(--shadow-sm); }
@keyframes refined-enter { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 575.98px) {
    .ls-hero { padding: 32px 0 28px; }
    .ls-hero-mini { padding: 28px 0 8px; }
    .ls-lead { font-size: 16px; line-height: 1.65; }
    .ls-title { margin: 16px 0; }
    .ls-hero-art { height: 240px; max-width: 320px; }
    .ls-hero-shiri { width: 180px; }
    .ls-hero-bubble { top: 8px; right: 4px; padding: 12px 16px; }
    .ls-hero-bubble b { font-size: 25px; }
    .ls-float.f1 { font-size: 28px; top: 60px; }
    .ls-float.f3 { font-size: 28px; bottom: 50px; }
    .ls-quick a { padding: 16px; }
    .ls-quick { gap: 12px; }
    .ls-topics-band { margin: 0 8px; border-radius: 20px; }
    .ls-dict-controls { padding: 16px; }
    .ls-wotd { padding: 22px; gap: 16px; }
    .ls-kicker { max-width: 100%; }
    .play .round-btn { border-radius: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
}

/* Locally rendered SVG icon family: consistent strokes at every screen size. */
.ls-icon { width: 22px; height: 22px; display: inline-block; flex-shrink: 0; vertical-align: -.2em; }
.navbar-nav .nav-link { display: inline-flex; align-items: center; gap: 7px; }
.navbar-nav .nav-link > .ls-icon { width: 18px; height: 18px; }
.ls-tab-ico { display: grid; place-items: center; height: 26px; filter: none; opacity: 1; }
.ls-tab-ico .ls-icon { width: 23px; height: 23px; }
.ls-tab.active .ls-icon { stroke-width: 2; }
.ls-mbar-btn .ls-icon, .ls-search-btn .ls-icon { width: 20px; height: 20px; }
.ls-quick a > span:first-child {
    width: 52px; height: 52px; display: grid; place-items: center; border-radius: 15px;
    background: color-mix(in srgb, var(--c) 12%, white); color: var(--brand);
    margin-bottom: 4px;
}
.ls-quick .ls-icon { width: 28px; height: 28px; }
.ls-topic-icon { width: 64px; height: 64px; display: grid; place-items: center; color: var(--brand-dark); }
.ls-topic-icon .ls-icon { width: 44px; height: 44px; stroke-width: 1.5; }
.ls-mega-ico, .ls-acc-ico { color: var(--brand); }
.ls-mega-ico .ls-icon, .ls-acc-ico .ls-icon { width: 24px; height: 24px; }
.ls-tile > span:first-child .ls-icon { width: 28px; height: 28px; color: var(--brand); }
.ls-explore-card h3 .ls-icon { width: 26px; height: 26px; color: var(--brand); }
.ls-explore-card li .ls-icon { width: 19px; height: 19px; color: var(--muted); }
.ls-btn .ls-icon { width: 19px; height: 19px; }
.ls-hero-bubble .ls-icon { width: 14px; height: 14px; }
.ls-dropdown-item .ls-icon, .ls-acct-links .ls-icon { width: 18px; height: 18px; margin-right: 5px; }
@media (min-width: 992px) and (max-width: 1199.98px) {
    .ls-brand { margin-right: .75rem; font-size: 22px; }
    .navbar-nav .nav-link { gap: 5px; padding-left: .65rem !important; padding-right: .65rem !important; }
    .navbar-nav .nav-link > .ls-icon { width: 16px; height: 16px; }
}
/* Keep icon labels and account controls within the desktop header. */
.ls-search-btn, .ls-search-btn > span:first-child { flex-shrink: 0; }
.ls-search-btn > span:first-child { display: inline-flex; }
.ls-navbar #user_logged_in { flex-shrink: 0; }
.ls-navbar #user_logged_in .badge { white-space: nowrap; }
.navbar-nav .nav-link.nav-link-play.active { background: var(--brand-hover); }
@media (min-width: 992px) {
    .ls-navbar .ls-brand { margin-right: 1rem; }
    .ls-navbar .navbar-nav .nav-link { padding-left: .7rem !important; padding-right: .7rem !important; }
}
@media (min-width: 992px) and (max-width: 1399.98px) {
    .ls-search-btn-text, .ls-search-btn kbd { display: none; }
    .ls-search-btn { padding: 10px; margin-right: 6px; }
    .ls-navbar .ls-chip-name { max-width: 100px; }
}
@media (min-width: 992px) and (max-width: 1199.98px) {
    .ls-navbar .ls-brand { font-size: 20px; margin-right: .5rem; gap: 6px; }
    .ls-navbar .ls-brand .nav-logo { width: 34px; height: 34px; }
    .ls-navbar .navbar-nav .nav-link { padding-left: .5rem !important; padding-right: .5rem !important; font-size: 14px; }
    .ls-navbar .ls-chip-name { display: none; }
}

/* Culture directory: spacious cards with a predictable reading order. */
.ls-culture-hub .ls-hub-group { margin-bottom: 40px; }
.ls-culture-hub .ls-hub-title { margin: 0 0 18px; font-size: 16px; letter-spacing: -.01em; text-transform: none; color: var(--text); }
.ls-culture-hub .ls-hub-title::after { height: 1px; background: var(--ls-line); }
.ls-culture-hub .ls-hub-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.ls-culture-hub .ls-hub-card {
    display: flex; flex-direction: column; align-items: flex-start; gap: 16px;
    padding: 24px; border: 1px solid var(--ls-line); border-radius: 20px;
    box-shadow: 0 2px 4px rgb(34 60 50 / 2%);
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.ls-culture-hub .ls-hub-ico {
    flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
    color: var(--c); background: color-mix(in srgb, var(--c) 9%, white);
}
.ls-culture-hub .ls-hub-ico .ls-icon { width: 26px; height: 26px; }
.ls-culture-hub .ls-hub-txt { width: 100%; }
.ls-culture-hub .ls-hub-txt small { font-size: 11px; letter-spacing: .08em; margin-bottom: 6px; }
.ls-culture-hub .ls-hub-txt b { font-size: 20px; line-height: 1.3; letter-spacing: -.025em; }
.ls-culture-hub .ls-hub-txt > span { margin-top: 8px; font-size: 14px; line-height: 1.6; font-weight: 500; }
.ls-culture-hub .ls-hub-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; padding-top: 14px; margin-top: 2px; border-top: 1px solid #edf0eb; }
.ls-culture-hub .ls-hub-n { display: inline; padding: 0; background: none; font-size: 12px; font-weight: 600; align-self: auto; white-space: normal; }
.ls-culture-hub .ls-hub-n b { font-weight: 800; }
.ls-culture-hub .ls-hub-arrow { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; color: var(--c); background: color-mix(in srgb, var(--c) 7%, white); }
.ls-culture-hub .ls-hub-arrow .ls-icon { width: 17px; height: 17px; }
.ls-culture-hub .ls-hub-card:focus-visible { outline: 3px solid var(--brand); outline-offset: 4px; }
@media (hover: hover) {
    .ls-culture-hub .ls-hub-card:hover { border-color: color-mix(in srgb, var(--c) 45%, white); box-shadow: 0 8px 24px rgb(34 60 50 / 7%); transform: translateY(-2px); }
}
.ls-culture-note { border: 1px solid var(--ls-line); background: #eef3ee; gap: 20px; }
.ls-culture-note .ls-wotd-pic { width: 52px; height: 52px; border-radius: 14px; flex-shrink: 0; color: var(--brand); }
.ls-culture-note .ls-wotd-pic .ls-icon { width: 28px; height: 28px; }
.ls-culture-note .flex-grow-1 { flex-basis: 400px; }
.ls-culture-note h3 { font-size: 20px; }

/* Matching rhythm on the illustrated cards inside each Culture topic. */
.ls-xcard { border-radius: 18px; overflow: hidden; }
.ls-xcard-head { padding: 20px; gap: 16px; border-radius: 16px; align-items: flex-start; }
.ls-xcard-head .ls-xcard-thumb, .ls-xcard-head .ls-xcard-emoji { width: 80px; height: 80px; border-radius: 12px; }
.ls-xcard-title { font-family: var(--font-body); font-size: 20px; font-weight: 800; line-height: 1.3; letter-spacing: -.02em; }
.ls-xcard-sub { white-space: normal; font-size: 14px; line-height: 1.5; margin-top: 4px; color: var(--muted); }
.ls-xcard-meta { gap: 6px; margin-top: 12px; }
.ls-xcard-meta .badge { font-weight: 600; font-size: 11px; line-height: 1.4; padding: 5px 9px; white-space: normal; text-align: left; }
.ls-xcard-head .ls-xcard-chevron { width: 28px; height: 28px; font-size: 11px; background: var(--brand-light); color: var(--brand); margin-top: 2px; }
.ls-xcard:hover .ls-xcard-chevron { background: var(--brand-light); color: var(--brand-hover); transform: none; }
.ls-xcard-hint { color: var(--muted); font-size: 11px; }
.ls-xcard-head:focus-visible { outline: 3px solid var(--brand); outline-offset: -3px; box-shadow: none; }
@media (max-width: 991.98px) {
    .ls-culture-hub .ls-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .ls-culture-hub .ls-hub-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .ls-culture-hub .ls-hub-card { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px 16px; padding: 20px; }
    .ls-culture-hub .ls-hub-ico { width: 44px; height: 44px; }
    .ls-culture-hub .ls-hub-foot { grid-column: 2; padding-top: 10px; }
    .ls-culture-hub .ls-hub-txt b { font-size: 19px; }
    .ls-culture-hub .ls-hub-group { margin-bottom: 30px; }
    .ls-xcard-head { padding: 16px; gap: 12px; }
    .ls-xcard-head .ls-xcard-thumb, .ls-xcard-head .ls-xcard-emoji { width: 64px; height: 64px; }
    .ls-xcard-title { font-size: 18px; }
}

/* Culture subsections share the hub's neutral surfaces and quieter accents. */
.ls-culture-section .card:not(.totem-accordion-card),
.ls-culture-section .ls-xcard {
    border: 1px solid var(--ls-line) !important;
    border-radius: 20px !important;
    background: #fff !important;
    box-shadow: 0 2px 6px rgb(34 60 50 / 3%) !important;
}
.ls-culture-section .card.totem-accordion-card {
    border: 1px solid var(--ls-line);
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-top-right-radius: 20px !important;
    border-bottom-right-radius: 20px !important;
    border-radius: 0 20px 20px 0 !important;
    background: #fff !important;
    box-shadow: 0 4px 18px rgba(0,0,0,0.06) !important;
    overflow: hidden !important;
}
.ls-culture-section .totem-header-img,
.ls-culture-section .totem-header-img img,
.ls-culture-section .totem-header-img picture {
    border-top-left-radius: 0 !important;
    border-bottom-left-radius: 0 !important;
    border-radius: 0 !important;
}
.ls-culture-section .ls-xcard-head { padding: 24px; gap: 18px; }
.ls-culture-section .ls-xcard-emoji {
    background: color-mix(in srgb, var(--culture-accent, #26745b) 8%, white);
    color: var(--culture-accent, var(--brand));
}
.ls-culture-section .ls-xcard-head .ls-xcard-thumb { width: 88px; height: 88px; }
.ls-culture-section .ls-xcard-meta { padding-top: 12px; border-top: 1px solid #edf0eb; }
.ls-culture-section .ls-xcard-meta .badge,
.ls-culture-section .card > .d-flex > .badge {
    background: var(--brand-light) !important; color: var(--brand-dark) !important;
    border: 0 !important; border-radius: 8px !important; font-weight: 700;
}
.ls-culture-section .ls-xcard-meta button.badge { background: #f6f8f5 !important; border: 1px solid var(--ls-line) !important; min-height: 32px; }
.ls-culture-section .ls-xcard-chevron { align-self: center; }
.ls-culture-section .card h2, .ls-culture-section .card h3 { letter-spacing: -.025em; line-height: 1.3; }
.ls-culture-section .card .text-secondary { line-height: 1.65; }
.ls-culture-section .form-control, .ls-culture-section .form-select { border: 1px solid var(--ls-line); border-radius: 12px !important; min-height: 44px; background-color: #fff; font-size: 15px; }
.ls-culture-section .form-control:focus, .ls-culture-section .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-light); }
.ls-culture-section button[class*="-cat-btn"],
.ls-culture-section button[class*="-type-btn"] { border-radius: 10px !important; font-size: 13px; min-height: 36px; }
.ls-culture-section button[class*="-cat-btn"].active,
.ls-culture-section button[class*="-type-btn"].active { background: var(--brand); color: #fff; border-color: var(--brand); }
.ls-culture-section .ls-xcard-title { font-family: var(--font-body); }
.ls-culture-section .ls-xcard-hint { flex-basis: 100%; margin-top: 2px; }
.ls-culture-modal .modal-content { border-radius: 20px; }
.ls-culture-modal .modal-title { font-family: var(--font-body) !important; color: var(--text) !important; letter-spacing: -.025em; }
.ls-culture-modal .modal-footer .btn { border-radius: 10px !important; min-height: 40px; border-color: var(--ls-line); }
@media (hover: hover) {
    .ls-culture-section .ls-xcard:hover,
    .ls-culture-section .totem-card:hover,
    .ls-culture-section .poem-card:hover,
    .ls-culture-section .riddle-card:hover { border-color: #b9cec0 !important; box-shadow: 0 8px 24px rgb(34 60 50 / 7%) !important; transform: translateY(-2px); }
}
@media (max-width: 575.98px) {
    .ls-culture-section .ls-xcard-head { padding: 18px; gap: 12px; }
    .ls-culture-section .ls-xcard-head .ls-xcard-thumb { width: 68px; height: 68px; }
    .ls-culture-section .ls-xcard-head { display: grid; grid-template-columns: 68px minmax(0, 1fr) 24px; }
    .ls-culture-section .ls-xcard-head .ls-xcard-chevron { width: 24px; height: 24px; }
}
.ls-culture-section .row:has(> [class*="-card-wrapper"]) { align-items: stretch !important; }
.ls-culture-section [class*="-card-wrapper"] > .ls-xcard { height: 100%; }

/* Remaining public screens: printables, word details, progress and reading. */
.ls-polished-page .card {
    border: 1px solid var(--ls-line) !important; border-radius: 20px !important;
    background: #fff !important; box-shadow: var(--shadow-sm) !important;
}
.ls-polished-page { background: var(--bg); }
.ls-polished-page .card-header { background: transparent; border-bottom: 1px solid var(--ls-line); padding: 18px 24px; }
.ls-polished-page .card h2, .ls-polished-page .card h3 { line-height: 1.3; letter-spacing: -.025em; }
.ls-polished-page .form-control, .ls-polished-page .form-select { border: 1px solid var(--ls-line); border-radius: 12px; min-height: 44px; }
.ls-polished-page .ls-feature { padding: 24px; }
.ls-polished-page .ls-feature-icon { width: 64px; height: 64px; border-radius: 16px; }
.ls-polished-page .ls-feature-icon .ls-icon { width: 32px; height: 32px; color: var(--brand); }
.ls-polished-page .ls-feature h3 { font-size: 22px; }
.ls-polished-page .ls-feature p { line-height: 1.6; }
.ls-polished-page .ls-feature a[href^="mailto:"] { overflow-wrap: anywhere; }
.ls-word-translation { background: var(--brand-light); border: 1px solid #d8e7dc; }
.ls-word-translation .display-5 { overflow-wrap: anywhere; line-height: 1.3; }
.ls-word-translation .text-danger { color: var(--brand-hover) !important; }
.ls-polished-page #btnSpeakWord { background: var(--brand) !important; border-radius: 16px !important; }
.ls-poem-reader-page .card { line-height: 1.75; }
.ls-poem-reader-page .ls-reader-bar .btn { border-radius: 10px !important; }
.ls-poem-reader-page .poem-line { border-left-width: 2px !important; }
.ls-progress-page .ls-hero { padding-bottom: 28px; background: var(--bg) !important; }
.ls-progress-page .ls-learner-avatar-wrap { border: 1px solid var(--ls-line) !important; border-radius: 22px !important; }
.ls-progress-page .progress { height: 10px; border-radius: 6px; background: #e8eee8; }
.ls-progress-page .progress-bar { background-color: var(--brand); }
.ls-progress-page .table { --bs-table-border-color: var(--ls-line); font-size: 14px; }
.ls-progress-page .badge { font-size: 12px !important; font-weight: 700; }
.ls-progress-page .card > .fs-1 { font-size: 28px !important; }
.ls-reader-page .ls-reader-toolbar .btn, .ls-reader-page .ls-reader-toolbar .btn-group { border-radius: 10px !important; }
.ls-reader-page .ls-scene-img:hover { transform: none; }
.ls-reader-page .ls-page-card { border-radius: 20px; }

/* Sign-in, registration, recovery and PIN screens. */
body.account-body { background: var(--bg); }
.az-signin-wrapper { padding: 40px 20px; }
.az-card-signin { border: 1px solid var(--ls-line); border-radius: 24px; box-shadow: var(--shadow); padding: 36px; }
.ls-auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; color: var(--text); font-size: 25px; font-weight: 800; letter-spacing: -.04em; text-decoration: none; }
.ls-auth-brand b { color: var(--brand); }
.ls-auth-brand img { flex-shrink: 0; }
.az-signin-header h2 { font-size: 24px; font-weight: 800; margin-bottom: 24px !important; }
.az-card-signin .input-group { min-height: 50px; border: 1px solid var(--ls-line) !important; border-radius: 12px !important; background: #fff; }
.az-card-signin .input-group:focus-within { border-color: var(--brand) !important; box-shadow: 0 0 0 3px var(--brand-light); }
.az-card-signin .input-group .form-control, .az-card-signin .input-group .input-group-text { background: transparent !important; }
.az-card-signin .input-group .form-control:focus { box-shadow: none; }
.az-signin-header .btn { min-height: 48px; border-radius: 12px !important; font-size: 16px; font-weight: 800; }
.az-card-signin .auth-link { font-size: 14px; color: var(--brand-hover); text-underline-offset: 3px; }
.ls-error-page { max-width: 720px; margin: 48px auto; padding: 12px; border: 1px solid var(--ls-line); border-radius: 24px; background: #fff; box-shadow: var(--shadow-sm); }
.ls-error-page h1 { font-size: clamp(30px, 5vw, 42px); }
.ls-error-page .btn { margin: 6px !important; border-radius: 12px !important; }
@media (max-width: 575.98px) {
    .az-signin-wrapper { padding: 24px 16px; }
    .az-card-signin { padding: 28px 22px; }
    .ls-auth-brand { font-size: 23px; }
    .ls-error-page { margin: 24px 16px; }
    .ls-polished-page .ls-wotd { gap: 16px; }
    .ls-polished-page .ls-wotd-pic { width: 64px; height: 64px; font-size: 36px; }
    .ls-progress-page .ls-kicker { font-size: 11px; }
}

.ls-polished-page .btn-primary, .ls-polished-page .btn-success {
    --bs-btn-bg: var(--brand); --bs-btn-border-color: var(--brand);
    --bs-btn-hover-bg: var(--brand-hover); --bs-btn-hover-border-color: var(--brand-hover);
    --bs-btn-active-bg: var(--brand-hover); --bs-btn-active-border-color: var(--brand-hover);
    border-radius: 12px !important; box-shadow: none;
}
.ls-progress-page .ls-hero .btn { min-height: 44px; font-size: 14px; padding: 10px 16px; }
.ls-reader-page .ls-reader-share { background: var(--brand-light); border: 1px solid var(--ls-line) !important; box-shadow: none !important; }
.ls-polished-page .ls-hero .d-flex > .ls-btn { max-width: 100%; }

.ls-poem-audio { max-width: 540px; padding: 12px; background: #fff; border: 1px solid var(--ls-line); border-radius: 16px; flex-wrap: wrap; }
.ls-poem-reader-page .btn-lang-mode.active { background: var(--brand) !important; color: #fff !important; }
.ls-poem-audio #reciteAllBtn { flex-basis: 240px; }
.ls-poem-audio #reciteSpeed { flex: 1 0 130px; }
@media (max-width: 575.98px) {
    .ls-poem-reader-page .ls-reader-bar { position: static !important; }
    .ls-poem-reader-page .ls-reader-bar > .container { padding: 0; }
    .ls-poem-reader-page .ls-reader-bar .btn { font-size: 12px; }
    .ls-poem-reader-page .ls-reader-bar > .container > .d-flex { gap: 6px !important; }
}

/* Spacious card reader: fixed controls, comfortably scrolling content. */
@media screen {
    .ls-culture-modal .modal-dialog { width: calc(100% - 48px); max-width: 1120px; margin: 24px auto; min-height: calc(100% - 48px); }
    .ls-culture-modal .modal-content { max-height: calc(100dvh - 48px); border-radius: 24px; box-shadow: 0 24px 80px #17382b30 !important; }
    .ls-culture-modal .ls-modal-accent { height: 4px !important; flex-shrink: 0; }
    .ls-culture-modal .modal-header { position: relative; display: flex; flex-wrap: wrap; gap: 18px; padding: 28px 32px 22px !important; border-bottom: 1px solid var(--ls-line) !important; }
    .ls-culture-modal .ls-modal-heading { flex-basis: 100%; padding-right: 44px !important; min-width: 0; }
    .ls-culture-modal .ls-modal-heading > div { min-width: 0; }
    .ls-culture-modal .modal-title { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.25; overflow-wrap: anywhere; }
    .ls-culture-modal #lsCultureModalSub { font-size: 16px; line-height: 1.5; margin-top: 6px; }
    .ls-culture-modal .ls-modal-actions { margin-left: 0 !important; gap: 8px !important; }
    .ls-culture-modal .btn { border-radius: 10px !important; min-height: 40px; }
    .ls-culture-modal .btn-close { position: absolute; right: 24px; top: 24px; width: 20px; height: 20px; min-height: 20px; }
    .ls-culture-modal .ls-modal-thumb-box .ls-xcard-thumb,
    .ls-culture-modal .ls-modal-thumb-box .ls-xcard-emoji { width: 80px; height: 80px; border-radius: 16px; object-fit: contain; background: #f5f7f2; }
    .ls-culture-modal #lsCultureModalMeta .badge { border-radius: 7px !important; padding: 6px 10px !important; line-height: 1.4; white-space: normal; }
    .ls-culture-modal .modal-body { max-height: none; padding: 28px 32px !important; line-height: 1.75; font-size: 17px; overscroll-behavior: contain; }
    .ls-culture-modal .modal-body .small { font-size: 16px !important; line-height: 1.75 !important; }
    .ls-culture-modal .modal-body > .bg-light { padding: 18px !important; border-radius: 14px !important; background: #f5f7f2 !important; }
    .ls-culture-modal .modal-body picture { height: auto !important; max-height: none !important; }
    .ls-culture-modal .modal-body .ls-xcard-hero { width: 100% !important; height: auto !important; max-height: 480px !important; object-fit: contain !important; box-shadow: none; }
    .ls-culture-modal .modal-footer { padding: 16px 32px !important; border-top: 1px solid var(--ls-line) !important; background: #fafbf8 !important; }
    .ls-culture-modal .modal-footer > div { flex-wrap: wrap; }
    .ls-culture-modal #lsCultureModalCopyBottom,
    .ls-culture-modal #lsCultureModalPdfBottom { display: none; }
}
@media screen and (max-width: 575.98px) {
    .ls-culture-modal .modal-dialog { width: calc(100% - 16px); margin: 8px auto; min-height: calc(100% - 16px); height: calc(100% - 16px); }
    .ls-culture-modal .modal-content { max-height: calc(100dvh - 16px); border-radius: 18px; }
    .ls-culture-modal .modal-header { padding: 20px 18px 16px !important; gap: 12px; }
    .ls-culture-modal .ls-modal-heading { gap: 12px !important; padding-right: 28px !important; align-items: flex-start !important; }
    .ls-culture-modal .ls-modal-thumb-box .ls-xcard-thumb,
    .ls-culture-modal .ls-modal-thumb-box .ls-xcard-emoji { width: 48px; height: 48px; font-size: 28px; border-radius: 12px; }
    .ls-culture-modal .modal-title { font-size: 22px; }
    .ls-culture-modal #lsCultureModalSub { font-size: 14px; }
    .ls-culture-modal .btn-close { right: 12px; top: 14px; }
    .ls-culture-modal .modal-body { padding: 20px 18px !important; }
    .ls-culture-modal .modal-footer { padding: 12px 18px !important; }
}

/* Keep the complete Mitupo artwork visible in the catalog and reader. */
.ls-culture-section .totem-card-cover { height: auto !important; aspect-ratio: 4 / 3; background: #f6f3ec !important; }
.ls-culture-section .totem-card-cover picture { display: block; width: 100%; height: 100%; }
.ls-culture-section .totem-card-cover .totem-img-hover { object-fit: contain !important; object-position: center; transform: none !important; }
.ls-culture-section .totem-card-cover > .position-absolute { background: none !important; }
@media screen {
    #totemModal #modalHeader { background: #f5f7f2 !important; color: var(--text); padding-right: 64px !important; }
    #totemModal #modalSubtitle { color: var(--muted); opacity: 1; }
    #totemModal .btn-close { filter: none; }
    #totemModal .modal-body { padding: 0 !important; }
    #totemModal #modalArtContainer { min-height: 0 !important; max-height: none !important; background: #f6f3ec !important; }
    #totemModal #modalArtImg { display: block; width: 100% !important; height: auto !important; max-height: 520px !important; object-fit: contain !important; }
    #totemModal .modal-body > .p-4 { padding: 28px 32px !important; }
    #totemModal .modal-body > .p-4 > .row { border: 1px solid var(--ls-line) !important; background: #f8faf6 !important; margin-left: 0; margin-right: 0; }
    #totemModal .poetry-text { font-size: 17px !important; line-height: 1.8 !important; }
    #totemModal .modal-footer { gap: 12px; }
}
@media screen and (max-width: 575.98px) {
    #totemModal #modalHeader { padding-right: 48px !important; }
    #totemModal #modalHeader > .ms-auto { margin-left: 0 !important; }
    #totemModal .modal-body > .p-4 { padding: 20px 18px !important; }
    #totemModal .modal-footer > div { gap: 6px !important; }
    #totemModal .modal-footer .btn, #totemModal .modal-footer .ls-btn { font-size: 12px; padding: 8px 10px !important; }
}

/* Secondary page actions stay available without crowding phone screens. */
.ls-hero-more { display: contents; }
.ls-hero-more > summary { display: none; }
.ls-hero-more > .ls-hero-more-actions { display: contents; }
@media screen and (max-width: 575.98px) {
    .ls-hero-more { display: block; width: 100%; }
    .ls-hero-more > summary { display: list-item; width: fit-content; margin: auto; padding: 12px 18px; min-height: 44px; color: var(--brand); font-size: 14px; font-weight: 800; cursor: pointer; border-radius: 10px; }
    .ls-hero-more > summary:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
    .ls-hero-more:not([open]) > .ls-hero-more-actions { display: none; }
    .ls-hero-more[open] > .ls-hero-more-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; padding-top: 8px; }
    /* Hidden decorative icons must not leave the text in the thumbnail column. */
    .ls-culture-section .ls-xcard-head:has(> .ls-xcard-emoji) { grid-template-columns: minmax(0, 1fr) 24px; }
    .ls-culture-section .ls-xcard-main { min-width: 0; }
    .ls-culture-section .ls-xcard-title { overflow-wrap: anywhere; line-height: 1.4; }
    .ls-culture-section .ls-xcard-meta { flex-wrap: wrap; gap: 8px; }
    .ls-culture-section .ls-xcard-meta > span.badge.border { white-space: normal; overflow: visible; flex: 0 1 auto; }
    .ls-culture-section .ls-xcard-meta button.badge,
    .ls-culture-section .ls-xcard-share-link { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    .ls-culture-section .ls-chip-row .btn,
    .ls-culture-section #quickTotemPills .btn,
    .ls-culture-section .totem-zvidao button { min-height: 44px; }
    .ls-culture-section .form-control,
    .ls-polished-page .form-control,
    .ls-culture-section .form-select { font-size: 16px !important; }
    .ls-culture-section .poem-actions { flex-wrap: wrap !important; gap: 10px !important; }
    .ls-culture-section .poem-actions > .ls-btn { flex: 1 0 100%; text-align: center; justify-content: center; }
    .ls-culture-section .poem-actions > .d-flex { width: 100%; gap: 8px !important; }
    .ls-culture-section .poem-actions > .d-flex > .btn { flex: 1; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; }
    #dictAlphaBar { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 8px; scrollbar-width: thin; overscroll-behavior-x: contain; }
    #dictAlphaBar .ls-alpha-btn { flex: 0 0 44px; min-height: 44px; }
    .ls-culture-modal .btn-close { box-sizing: border-box; margin: 0 !important; width: 44px; height: 44px; padding: 14px !important; background-size: 14px; right: 6px; top: 6px; }
    .ls-culture-modal .ls-modal-heading { padding-right: 36px !important; }
    .ls-culture-modal .modal-footer .btn { min-height: 44px; }
}

/* New Culture collections: calm panels and spacious bilingual content. */
.ls-new-culture .shadow-sm { box-shadow: 0 3px 14px #243e3306 !important; }
.ls-new-culture .border { border-color: var(--ls-line) !important; }
.ls-new-culture section > .border, .ls-new-culture section > .bg-white { border-radius: 18px !important; }
.ls-new-culture h2 { line-height: 1.4; letter-spacing: -.025em; }
.ls-new-culture .small { line-height: 1.7; }
.ls-new-culture .ls-say { min-height: 44px; }
.ls-new-culture .form-control { min-height: 48px; border-radius: 12px !important; }
.ls-zimbabwe-page [id] { scroll-margin-top: 100px; }
.ls-zimbabwe-page .zw-flag-explorer { margin-left: 0; margin-right: 0; padding: 24px !important; }
.ls-zimbabwe-page .zw-flag-frame { max-width: none !important; background: #f5f7f2 !important; border: 0 !important; padding: 24px !important; border-radius: 18px !important; }
.ls-zimbabwe-page .zw-flag-frame svg { display: block; height: auto; border-radius: 3px !important; box-shadow: 0 8px 24px #18342718 !important; }
.ls-zimbabwe-page .zw-flag-frame > .small { font-size: 12px; margin-top: 18px !important; }
.zw-flag-part { transition: opacity .15s ease; }
.zw-flag-part:hover { opacity: .8; }
.zw-flag-part:focus-visible { outline: 3px solid #176dba; outline-offset: -3px; }
.ls-zimbabwe-page .zw-flag-card > div { display: grid !important; grid-template-columns: 92px minmax(0,1fr); gap: 14px !important; border-radius: 14px !important; padding: 18px !important; transition: background .15s, box-shadow .15s; }
.ls-zimbabwe-page .zw-flag-card .zw-colour-label { min-width: 0 !important; width: 92px; white-space: normal; border-radius: 8px !important; padding: 8px !important; }
.ls-zimbabwe-page .zw-flag-card > .is-selected { background: #f3f8ef !important; box-shadow: inset 0 0 0 2px var(--brand); }
.ls-zimbabwe-page #rwiyo .h-100 { border-radius: 18px !important; }
.ls-zimbabwe-page #rwiyo .flex-grow-1 > .mb-3 { padding-bottom: 14px; border-bottom: 1px solid #edf0e9; }
.ls-zimbabwe-page .zw-prov-card h3 { font-size: 18px; line-height: 1.4; }
.ls-zimbabwe-page .zw-prov-card .badge { background: var(--brand-light) !important; color: var(--brand) !important; padding: 8px 10px; white-space: normal; }
.ls-mapazi-page #dialectProfilesGrid .ls-xcard-head { padding: 24px; }
@media (min-width: 992px) { .ls-zimbabwe-page .zw-flag-preview { position: sticky; top: 100px; } }
@media (max-width: 575.98px) {
 .ls-new-culture .ls-kicker { max-width: 100%; white-space: normal; line-height: 1.6; }
 .ls-zimbabwe-page .zw-flag-explorer { padding: 6px !important; }
 .ls-zimbabwe-page .zw-flag-frame { padding: 18px !important; }
 .ls-zimbabwe-page .zw-flag-card > div { grid-template-columns: minmax(0,1fr); gap: 10px !important; padding: 16px !important; }
 .ls-zimbabwe-page .zw-flag-card .zw-colour-label { width: fit-content; min-width: 88px !important; }
 .ls-zimbabwe-page .zw-prov-card > div > .d-flex { flex-wrap: wrap; }
 .ls-new-culture .ls-chip-row .btn { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) { .zw-flag-part, .ls-zimbabwe-page .zw-flag-card > div { transition: none; } }

/* A compact Culture directory, bounded by the available screen height. */
@media (min-width: 992px) {
 .ls-navbar .ls-mega { padding: 16px 18px 0; border-radius: 18px; border: 1px solid var(--ls-line); max-height: calc(100dvh - 120px); overflow-y: auto; overscroll-behavior: contain; }
 .ls-mega-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
 .ls-mega-title { padding: 0 8px 8px; font-size: 10px; line-height: 1.5; color: var(--muted); }
 .ls-mega-link { padding: 7px 8px; gap: 9px; min-height: 50px; border-radius: 10px; }
 .ls-mega-link > span:last-child { min-width: 0; }
 .ls-mega-link b { font-size: 13px; line-height: 1.35; }
 .ls-mega-link small { font-size: 11px; line-height: 1.4; font-weight: 600; }
 .ls-mega-ico { flex-basis: 28px; height: 28px; border-radius: 8px; box-shadow: none; background: transparent; }
 .ls-mega-ico .ls-icon { width: 21px; height: 21px; }
 .ls-mega-foot { margin: 12px -18px 0; padding: 12px 18px; font-size: 13px; background: var(--brand-light); }
 .ls-mega-link:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
}
