* {
    box-sizing: border-box;
}

/* Letter A Step 2 answer feedback. */
.phonetics-contrast-card.is-wrong { border-color: #e77777; background: linear-gradient(145deg,#fff6f6,#fff0f0); }

/* v2.5.195：仅 Unit 1 的听力选择与默写完成页复用已验收完成页的 NPC 参数。 */
body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="listen"] .complete-card) .lesson-mascot-image-frame,
body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="input"] .complete-card) .lesson-mascot-image-frame {
    display: contents;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    overflow: visible;
}

body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="listen"] .complete-card) #lesson-mascot-img,
body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="input"] .complete-card) #lesson-mascot-img {
    display: block;
    width: auto;
    height: 780px;
    max-width: none;
    max-height: none;
    flex-shrink: 0;
    object-fit: contain;
    transform: translateX(90px);
    transform-origin: center bottom;
}

/* v2.5.195：仅听力选择与默写的错题复习提示页复用听力训练页的大型 NPC 站位。 */
body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="listen"] .review-card) .lesson-mascot-rail,
body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="input"] .review-card) .lesson-mascot-rail {
    display: flex;
    align-items: flex-end;
    align-self: stretch;
    justify-content: flex-end;
    padding: 0 0 54px;
    overflow: visible;
}

body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="listen"] .review-card) .lesson-mascot,
body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="input"] .review-card) .lesson-mascot {
    justify-content: flex-end;
    overflow: visible;
}

body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="listen"] .review-card) .lesson-workspace,
body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="input"] .review-card) .lesson-workspace {
    align-items: start;
}

body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="listen"] .review-card) .lesson-mascot-image-frame,
body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="input"] .review-card) .lesson-mascot-image-frame {
    display: contents;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    overflow: visible;
}

body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="listen"] .review-card) #lesson-mascot-img,
body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="input"] .review-card) #lesson-mascot-img {
    display: block;
    width: auto;
    height: 780px;
    max-width: none;
    max-height: none;
    flex-shrink: 0;
    object-fit: contain;
    transform: translateX(90px);
    transform-origin: center bottom;
}

/* v2.5.198：仅 Unit 1 默认“开始练”的四词分组复习提示页复用大型 NPC 站位。 */
body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode=""] .review-card) .lesson-mascot-rail {
    display: flex;
    align-items: flex-end;
    align-self: stretch;
    justify-content: flex-end;
    padding: 0 0 54px;
    overflow: visible;
}

body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode=""] .review-card) .lesson-mascot {
    justify-content: flex-end;
    overflow: visible;
}

body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode=""] .review-card) .lesson-workspace {
    align-items: start;
}

body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode=""] .review-card) .lesson-mascot-image-frame {
    display: contents;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    overflow: visible;
}

body.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode=""] .review-card) #lesson-mascot-img {
    display: block;
    width: auto;
    height: 780px;
    max-width: none;
    max-height: none;
    flex-shrink: 0;
    object-fit: contain;
    transform: translate(90px, -38px);
    transform-origin: center bottom;
}

/* Unit 2/3：仅“单词配对”错题复习提示页复用已验收的大型 NPC 站位。 */
body.unit2-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot-rail,
body.unit3-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot-rail,
body.unit4-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot-rail,
body.unit5-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot-rail,
body.unit6-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot-rail,
body.primary3b-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot-rail,
body.primary4to6-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot-rail {
    display: flex;
    align-items: flex-end;
    align-self: stretch;
    justify-content: flex-end;
    padding: 0 0 54px;
    overflow: visible;
}

body.unit2-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot,
body.unit3-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot,
body.unit4-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot,
body.unit5-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot,
body.unit6-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot,
body.primary3b-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot,
body.primary4to6-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot {
    justify-content: flex-end;
    overflow: visible;
}

body.unit2-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-workspace,
body.unit3-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-workspace,
body.unit4-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-workspace,
body.unit5-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-workspace,
body.unit6-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-workspace,
body.primary3b-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-workspace,
body.primary4to6-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-workspace {
    align-items: start;
}

body.unit2-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot-image-frame,
body.unit3-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot-image-frame,
body.unit4-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot-image-frame,
body.unit5-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot-image-frame,
body.unit6-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot-image-frame,
body.primary3b-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot-image-frame,
body.primary4to6-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) .lesson-mascot-image-frame {
    display: contents;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    overflow: visible;
}

body.unit2-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) #lesson-mascot-img,
body.unit3-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) #lesson-mascot-img,
body.unit4-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) #lesson-mascot-img,
body.unit5-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) #lesson-mascot-img,
body.unit6-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) #lesson-mascot-img,
body.primary3b-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) #lesson-mascot-img,
body.primary4to6-ui-pilot-body .page:has([data-unit-app][data-training-mode="match"] .review-card) #lesson-mascot-img {
    display: block;
    width: auto;
    height: 780px;
    max-width: none;
    max-height: none;
    flex-shrink: 0;
    object-fit: contain;
    transform: translateX(90px);
    transform-origin: center bottom;
}

/* Grade 3 upper textbook landing: scoped visual skin, existing data and routes stay untouched. */
body.primary3a-textbook-page {
    min-height: 100vh;
    background: #d5f0ba url("/static/mascot/primary3a-textbook-forest-meadow-v1.png") center top / cover no-repeat;
}

.primary3a-textbook-page .page {
    width: min(1440px, calc(100% - 48px));
    padding: 16px 0;
}

body.primary3a-textbook-page .primary3a-textbook-page-shell {
    position: relative;
    display: grid;
    align-content: start;
    gap: 10px;
    width: min(78vw, 1050px);
    height: auto;
    aspect-ratio: 1050 / 720;
    min-height: 0;
    margin: 0 auto;
    padding: 24px 28px;
    overflow: visible;
    border: 1px solid rgba(233, 239, 219, 0.94);
    border-radius: 36px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 24px 56px rgba(30, 80, 36, 0.25), inset 0 1px rgba(255, 255, 255, 0.9);
}

body.primary3a-textbook-page .primary3a-textbook-page-shell::before {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at 16% 92%, rgba(214, 236, 168, 0.18), transparent 34%);
    content: "";
}

body.primary3a-textbook-page .primary3a-textbook-page-shell > * {
    position: relative;
    z-index: 1;
}

.primary3a-textbook-page .topbar {
    margin: 0;
}

.primary3a-textbook-page .topbar a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
    padding: 0 16px;
    border: 1px solid #eadfc8;
    border-radius: 999px;
    background: #fffaf0;
    box-shadow: 0 5px 12px rgba(62, 88, 42, 0.1);
    color: #2a6a38;
    font-weight: 900;
}

body.primary3a-textbook-page .primary3a-textbook-page-shell > .textbook-import-header {
    position: relative;
    z-index: 3;
    display: block;
    min-height: 125px;
    padding: 10px 220px 0 0;
    border: 0;
    background: transparent;
}

.primary3a-textbook-page .textbook-import-header > div {
    max-width: 620px;
}

.primary3a-textbook-page .textbook-import-header span {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 14px;
    border-radius: 999px;
    background: #67b93e;
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
}

.primary3a-textbook-page .textbook-import-header h1 {
    margin: 10px 0 8px;
    color: #203020;
    font-size: clamp(42px, 4.6vw, 56px);
    line-height: 1;
}

.primary3a-textbook-page .textbook-import-header p {
    max-width: 620px;
    color: #3d4b3d;
    font-size: 15px;
}

.primary3a-textbook-hero-mascot {
    position: absolute;
    top: -12px;
    right: 0;
    bottom: auto;
    z-index: 3;
    width: clamp(180px, 16vw, 205px);
    height: auto;
    object-fit: contain;
    filter: drop-shadow(0 16px 12px rgba(45, 83, 31, 0.2));
    pointer-events: none;
}

body.primary3a-textbook-page .primary3a-textbook-page-shell > .primary3a-textbook-left-mascot {
    position: absolute;
    z-index: 2;
    top: auto;
    bottom: -20px;
    left: -190px;
    width: 220px;
    height: auto;
    pointer-events: none;
    filter: drop-shadow(0 16px 14px rgba(45, 83, 31, 0.2));
}

.primary3a-textbook-page .textbook-import-summary {
    width: min(620px, 100%);
    margin-left: 0;
    gap: 16px;
}

.primary3a-textbook-page .textbook-import-summary div {
    position: relative;
    min-height: 76px;
    padding: 13px 68px 11px 20px;
    border: 1px solid #ecdfc5;
    border-radius: 22px;
    background: linear-gradient(145deg, #fffaf0, #fff2d7);
    box-shadow: 0 10px 18px rgba(84, 99, 50, 0.12);
}

.primary3a-textbook-page .textbook-import-summary div::after {
    position: absolute;
    right: 20px;
    bottom: 19px;
    width: auto;
    height: auto;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: #67a93f;
    content: "📗";
    font-size: 33px;
    line-height: 1;
}

.primary3a-textbook-page .textbook-import-summary div + div::after {
    color: #f5b93a;
    content: "⭐";
}

.primary3a-textbook-page .textbook-import-summary span {
    color: #637064;
    font-size: 14px;
}

.primary3a-textbook-page .textbook-import-summary strong {
    margin-top: 4px;
    color: #1f2d20;
    font-size: 32px;
    line-height: 1;
}

.primary3a-textbook-page .textbook-unit-map {
    width: 100%;
    margin: 0;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 16px;
}

.primary3a-textbook-page .unit-node {
    position: relative;
    min-height: 84px;
    border: 1px solid #e5dab7;
    border-radius: 16px;
    background: linear-gradient(145deg, #fffaf0, #f9efce);
    box-shadow: 0 8px 16px rgba(95, 118, 53, 0.14);
    color: #24753b;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.primary3a-textbook-page .unit-node.current,
.primary3a-textbook-page .unit-node.completed {
    border-color: #75bd44;
    background: linear-gradient(145deg, #fffaf0, #f9efce);
    color: #24753b;
    box-shadow: 0 10px 20px rgba(88, 160, 55, 0.18);
}

.primary3a-textbook-page a.unit-node:hover {
    transform: translateY(-3px);
    box-shadow: 0 14px 23px rgba(88, 160, 55, 0.23);
}

.primary3a-textbook-page .unit-node span {
    font-size: 16px;
    font-weight: 900;
}

.primary3a-textbook-page .unit-node::before {
    position: absolute;
    bottom: 11px;
    left: 11px;
    color: #6fb148;
    content: "🌱";
    font-size: 18px;
    line-height: 1;
}

.primary3a-textbook-page .unit-node strong {
    font-size: 23px;
}

.primary3a-textbook-page .batch-import-card {
    width: calc(100% - 82px);
    gap: 6px;
    margin: 0 0 0 82px;
    padding: 12px 18px;
    border: 1px solid #e7dbbb;
    border-radius: 22px;
    background: rgba(255, 254, 248, 0.92);
    box-shadow: inset 0 1px rgba(255, 255, 255, 0.9), 0 10px 20px rgba(108, 98, 53, 0.07);
}

/* The import form stays intact; this sign is only its new entry point. */
body.primary3a-textbook-page .primary3a-textbook-page-shell > .primary3a-import-sign {
    position: absolute;
    right: -94px;
    bottom: 8px;
    z-index: 5;
    width: 205px;
}

body.primary3a-textbook-page .primary3a-textbook-page-shell > .primary3a-import-sign[open] {
    z-index: 30;
}

.primary3a-textbook-page .primary3a-import-sign:not([open]) > .batch-import-card {
    display: none;
}

.primary3a-textbook-page .primary3a-import-sign > summary {
    display: block;
    list-style: none;
    cursor: pointer;
}

.primary3a-textbook-page .primary3a-import-sign > summary::-webkit-details-marker {
    display: none;
}

.primary3a-textbook-page .primary3a-import-sign-board {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 205px;
    height: 227px;
    padding: 42px 30px 72px;
    border: 0;
    border-radius: 0;
    background: url("/static/mascot/primary3a-add-words-sign-transparent-v2.png") center / contain no-repeat;
    box-shadow: none;
    color: #3d2515;
    font-size: 18px;
    font-weight: 900;
    line-height: 1.1;
    text-align: center;
    text-shadow: 0 1px rgba(255, 245, 210, 0.65);
}

.primary3a-textbook-page .primary3a-import-sign-board::before,
.primary3a-textbook-page .primary3a-import-sign-board::after {
    content: none;
}

.primary3a-textbook-page .primary3a-import-sign-board::before {
    left: 31px;
    transform: rotate(3deg);
}

.primary3a-textbook-page .primary3a-import-sign-board::after {
    right: 31px;
    transform: rotate(-3deg);
}

.primary3a-textbook-page .primary3a-import-sign-plus {
    display: inline-grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border: 2px solid #2f7937;
    border-radius: 50%;
    background: #6ec54a;
    box-shadow: inset 0 2px rgba(255, 255, 255, 0.38), 0 3px 0 #2e8139;
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
    text-shadow: none;
}

.primary3a-textbook-page .primary3a-import-sign[open] > .batch-import-card {
    position: absolute;
    right: 0;
    bottom: 154px;
    width: min(540px, calc(100vw - 48px));
    max-height: min(560px, calc(100vh - 100px));
    margin: 0;
    overflow: auto;
    box-shadow: 0 22px 48px rgba(38, 60, 28, 0.3);
}

.primary3a-textbook-page .primary3a-import-sign > .batch-import-card {
    position: relative;
}

.primary3a-textbook-page .primary3a-import-close {
    position: absolute;
    top: 12px;
    right: 14px;
    z-index: 2;
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    padding: 0;
    border: 1px solid #dfd3ae;
    border-radius: 50%;
    background: #fffdf6;
    box-shadow: 0 3px 0 rgba(126, 105, 52, 0.16);
    color: #705f30;
    cursor: pointer;
    font-size: 27px;
    font-weight: 800;
    line-height: 1;
}

.primary3a-textbook-page .primary3a-import-close:hover,
.primary3a-textbook-page .primary3a-import-close:focus-visible {
    border-color: #75b65d;
    color: #2f7937;
    outline: none;
}

.primary3a-textbook-page .primary3a-import-sign[open] .batch-import-heading {
    padding-right: 42px;
}

.primary3a-textbook-page .batch-import-heading h2 {
    color: #26432b;
    margin: 0;
    font-size: 20px;
}

.primary3a-textbook-page .batch-import-card .button.primary {
    min-height: 36px;
    border-radius: 14px;
    box-shadow: 0 5px 0 #3e9618;
}

.primary3a-textbook-page .batch-import-card label {
    color: #36513b;
}

.primary3a-textbook-page .batch-import-card .form {
    gap: 6px;
}

.primary3a-textbook-page .batch-import-card input,
.primary3a-textbook-page .batch-import-card textarea {
    border-color: #e2d7ba;
    border-radius: 14px;
    background: #fffdf6;
}

.primary3a-textbook-page .batch-import-help {
    color: #667060;
    margin: 0;
    overflow: hidden;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.primary3a-textbook-page .primary3a-import-entry {
    display: grid;
    gap: 4px;
}

.primary3a-textbook-page .primary3a-import-label {
    color: #273d2b;
    font-size: 15px;
    font-weight: 900;
}

.primary3a-textbook-page .primary3a-import-choice {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.92fr);
    align-items: stretch;
    min-height: 64px;
    overflow: hidden;
    border: 1px dashed #d9d5b9;
    border-radius: 18px;
    background: #fffdf5;
}

.primary3a-textbook-page .primary3a-import-file-choice {
    position: relative;
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 64px;
    padding: 8px 16px;
    cursor: pointer;
}

.primary3a-textbook-page .primary3a-import-file-choice::after {
    position: absolute;
    top: 12px;
    right: 0;
    bottom: 12px;
    width: 1px;
    background: #ebe7d5;
    content: "";
}

.primary3a-textbook-page .primary3a-import-file-choice input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.primary3a-textbook-page .primary3a-import-file-icon {
    display: inline-grid;
    width: 28px;
    height: 32px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid #63ad4a;
    border-radius: 6px;
    color: #4e9d3a;
    font-size: 24px;
    line-height: 1;
}

.primary3a-textbook-page .primary3a-import-file-choice > span:last-child {
    display: grid;
    gap: 2px;
}

.primary3a-textbook-page .primary3a-import-file-choice strong {
    color: #26392b;
    font-size: 15px;
}

.primary3a-textbook-page .primary3a-import-file-choice small {
    color: #667066;
    font-size: 10px;
    font-weight: 700;
}

.primary3a-textbook-page .primary3a-import-paste-choice {
    display: grid;
    align-content: center;
    min-width: 0;
    padding: 8px 16px;
}

.primary3a-textbook-page .primary3a-import-paste-choice summary {
    color: #667066;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
    list-style: none;
    text-align: center;
}

.primary3a-textbook-page .primary3a-import-paste-choice summary::-webkit-details-marker {
    display: none;
}

.primary3a-textbook-page .primary3a-import-paste-choice[open] {
    align-content: start;
    gap: 12px;
}

.primary3a-textbook-page .primary3a-import-paste-choice[open] textarea {
    min-height: 168px;
}

@media (max-width: 680px) {
    .primary3a-textbook-page .primary3a-import-choice {
        grid-template-columns: 1fr;
    }

    .primary3a-textbook-page .primary3a-import-file-choice::after {
        top: auto;
        right: 22px;
        bottom: 0;
        left: 22px;
        width: auto;
        height: 1px;
    }

    .primary3a-textbook-page .primary3a-import-paste-choice {
        min-height: 80px;
    }
}

@media (max-width: 760px) {
    .primary3a-textbook-page .page {
        width: min(100% - 24px, 620px);
        padding: 72px 0 28px;
    }

    .primary3a-textbook-page-shell {
        width: 100%;
        min-height: 0;
        margin-left: 0;
        padding: 24px;
        overflow: hidden;
        border-radius: 24px;
    }

    .primary3a-textbook-page .topbar {
        gap: 10px;
    }

    .primary3a-textbook-page .topbar a {
        min-height: 38px;
        padding: 0 12px;
        font-size: 13px;
    }

    .primary3a-textbook-page .textbook-import-header {
        min-height: 220px;
        padding: 28px 0 0;
    }

    .primary3a-textbook-page .textbook-import-header h1 {
        font-size: 42px;
    }

    .primary3a-textbook-page .textbook-import-header p {
        max-width: calc(100% - 118px);
        font-size: 14px;
    }

    .primary3a-textbook-hero-mascot {
        right: -32px;
        bottom: -10px;
        width: 190px;
    }

    .primary3a-textbook-left-mascot {
        display: none;
    }

    .primary3a-textbook-page .textbook-import-summary,
    .primary3a-textbook-page .textbook-unit-map {
        width: 100%;
        margin-left: 0;
    }

    .primary3a-textbook-page .textbook-unit-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
    }

    .primary3a-textbook-page .unit-node {
        min-height: 108px;
    }

    .primary3a-textbook-page .batch-import-card {
        width: 100%;
        margin-left: 0;
    }
}

/* v2.5.493: make the active Scene English learning stage unmistakable. */
body.scene-english-learning-page.scene-daily-learning-page .body-stage-progress-tile.is-current > button {
    color: #087cc1 !important;
}

body.scene-english-learning-page.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-stage-progress-tile.is-current > button {
    color: #087cc1 !important;
}

body.scene-english-learning-page.scene-daily-learning-page .body-stage-progress-tile.is-current .body-stage-progress-name {
    font-weight: 900;
}

@media (min-width: 761px) and (max-width: 1100px) {
    body.primary3a-textbook-page .primary3a-textbook-page-shell {
        width: calc(100% - 64px);
        min-height: 0;
        margin: 0 auto;
        overflow: hidden;
    }

    body.primary3a-textbook-page .primary3a-textbook-page-shell > .primary3a-textbook-left-mascot {
        display: none;
    }

    .primary3a-textbook-page .batch-import-card {
        width: 100%;
        margin-left: 0;
    }
}

/* Primary 3A fixed design canvas: 1050 x 720, positioned to the supplied layout. */
body.primary3a-textbook-page {
    min-width: 1050px;
    overflow: auto;
}

body.primary3a-textbook-page .page {
    position: relative;
    display: flow-root;
    width: 1050px;
    height: 720px;
    margin: 0 auto;
    padding: 0;
}

body.primary3a-textbook-page .primary3a-textbook-page-shell {
    display: block;
    width: 740px;
    height: 530px;
    min-height: 0;
    aspect-ratio: auto;
    margin: 55px 0 0 188px;
    padding: 0;
    overflow: visible;
}

body.primary3a-textbook-page .primary3a-textbook-page-shell > .topbar {
    position: absolute;
    top: 30px;
    right: 32px;
    left: 32px;
    z-index: 4;
    display: flex;
    justify-content: space-between;
}

body.primary3a-textbook-page .primary3a-textbook-page-shell > .textbook-import-header {
    position: absolute;
    top: 100px;
    left: 90px;
    z-index: 3;
    width: 500px;
    min-height: 0;
    padding: 0;
}

.primary3a-textbook-page .textbook-import-header > div,
.primary3a-textbook-page .textbook-import-header p {
    max-width: 500px;
}

.primary3a-textbook-page .textbook-import-header h1 {
    margin: 12px 0 10px;
    font-size: 44px;
}

.primary3a-textbook-page .textbook-import-header p {
    margin: 0;
    font-size: 15px;
}

body.primary3a-textbook-page .primary3a-textbook-page-shell > .primary3a-textbook-hero-mascot {
    position: absolute;
    z-index: 3;
    top: 0;
    right: -34px;
    width: 205px;
}

body.primary3a-textbook-page .primary3a-textbook-page-shell > .textbook-import-summary {
    position: absolute;
    top: 250px;
    left: 90px;
    z-index: 2;
    width: 520px;
    margin: 0;
    gap: 28px;
}

.primary3a-textbook-page .textbook-import-summary div {
    min-height: 82px;
    padding: 13px 64px 11px 18px;
}

.primary3a-textbook-page .textbook-import-summary strong {
    font-size: 30px;
}

body.primary3a-textbook-page .primary3a-textbook-page-shell > .textbook-unit-map {
    position: absolute;
    top: 350px;
    left: 90px;
    z-index: 2;
    display: grid;
    width: 574px;
    margin: 0;
    grid-template-columns: repeat(4, 130px);
    gap: 18px;
}

.primary3a-textbook-page .unit-node {
    min-height: 76px;
}

/* v2.5.209：仅 Unit 数量较多的初中教材入口切换为紧凑四列卡片。 */
body.junior7to9-textbook-page .textbook-unit-map:not(.unit-map--compact) .unit-node {
    width: 130px;
    min-height: 75px;
    height: 75px;
}

body.junior7to9-textbook-page .primary3a-textbook-page-shell > .textbook-unit-map.unit-map--compact {
    width: min(450px, 100%);
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
}

body.junior7to9-textbook-page .unit-map--compact .unit-node {
    width: 105px;
    min-height: 62px;
    height: 62px;
}

body.junior7to9-textbook-page .unit-map--compact .unit-node span {
    font-size: 16px;
}

body.junior7to9-textbook-page .unit-map--compact .unit-node strong {
    font-size: 20px;
}

body.junior7to9-textbook-page .unit-map--compact .unit-node::before {
    bottom: 8px;
    left: 8px;
    font-size: 15px;
}

/* v2.5.212：仅七年级上册的十张单元卡片使用统一紧凑组件，并排为两行五列。 */
body.junior7a-textbook-page .primary3a-textbook-page-shell > .textbook-unit-map.unit-map--compact {
    width: 500px;
    grid-template-columns: repeat(5, 92px);
    gap: 10px;
    justify-content: center;
    justify-items: center;
}

body.junior7a-textbook-page .unit-map--compact .unit-node {
    display: grid;
    width: 92px;
    min-height: 56px;
    height: 56px;
    align-content: center;
    justify-items: center;
    gap: 4px;
}

/* v2.5.215：Starter 标题按教材名称分两行，词数始终保留在同一卡片内。 */
body.junior7a-textbook-page .unit-map--compact .unit-node.unit-node--starter {
    grid-template-rows: 28px 18px;
    gap: 1px;
    padding: 4px 3px;
    box-sizing: border-box;
}

body.junior7a-textbook-page .unit-map--compact .unit-node.unit-node--starter span {
    max-width: 82px;
    font-size: 13px;
    line-height: 14px;
    text-align: center;
    white-space: normal;
    overflow-wrap: normal;
}

body.junior7a-textbook-page .unit-map--compact .unit-node.unit-node--starter strong {
    font-size: 18px;
    line-height: 18px;
    white-space: nowrap;
}

/* v2.5.215：初中七至九年级学习页上移主内容框，避开底部专项入口。 */
.unit1-ui-pilot.junior7to9-ui-pilot .lesson-content {
    transform: translate(-55px, -110px);
}

/* v2.5.215：七下至九下听音频填空的题号固定分三行，保留清晰间距。 */
.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade7_lower"] .audio-fill-stepper,
.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade8_upper"] .audio-fill-stepper,
.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade8_lower"] .audio-fill-stepper,
.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade9_upper"] .audio-fill-stepper,
.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade9_lower"] .audio-fill-stepper {
    grid-template-columns: repeat(var(--audio-fill-step-columns), 23px);
    justify-content: center;
    column-gap: 6px;
    row-gap: 12px;
    max-width: 100%;
    padding: 4px 0;
}

.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade7_lower"] .audio-fill-stepper::before,
.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade8_upper"] .audio-fill-stepper::before,
.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade8_lower"] .audio-fill-stepper::before,
.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade9_upper"] .audio-fill-stepper::before,
.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade9_lower"] .audio-fill-stepper::before {
    display: none;
}

.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade7_lower"] .audio-fill-step,
.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade8_upper"] .audio-fill-step,
.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade8_lower"] .audio-fill-step,
.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade9_upper"] .audio-fill-step,
.unit1-ui-pilot.junior7to9-ui-pilot[data-textbook-key="grade9_lower"] .audio-fill-step {
    width: 23px;
    height: 23px;
    font-size: 11px;
}

body.primary3a-textbook-page .primary3a-textbook-left-mascot-anchor {
    position: absolute;
    z-index: 2;
    left: -24px;
    bottom: 18px;
    width: 330px;
    pointer-events: none;
}

body.primary3a-textbook-page .primary3a-textbook-left-mascot-anchor > .primary3a-textbook-left-mascot {
    display: block;
    width: 100%;
    height: auto;
    filter: drop-shadow(0 16px 14px rgba(45, 83, 31, 0.2));
}

/* v2.5.206：三年级下册复用上册入口版式，同时明确保留高清 NPC 的完整等比显示。 */
body.primary3b-textbook-page .primary3a-textbook-hero-mascot,
body.primary3b-textbook-page .primary3a-textbook-left-mascot {
    object-fit: contain;
}

body.primary3a-textbook-page .primary3a-textbook-page-shell > .primary3a-import-sign {
    right: -70px;
    bottom: -87px;
}

@media (max-width: 1100px) {
    body.primary3a-textbook-page .page {
        width: 1050px;
        height: 720px;
        padding: 0;
    }

    body.primary3a-textbook-page .primary3a-textbook-page-shell {
        width: 900px;
        height: 550px;
        margin: 55px auto 0;
        overflow: visible;
    }

    body.primary3a-textbook-page .primary3a-textbook-page-shell > .primary3a-textbook-left-mascot {
        display: block;
    }
}

/* v2.5.79 单词连连看静态流程 */
body.word-match-page {
    overflow-x: hidden;
    background: #75b8ef;
}

.word-match-page .sound-toggle {
    display: none;
}

.word-match-page .page {
    width: 100%;
    margin: 0;
    padding: 0;
}

.word-match-page .app-version {
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 4px rgba(14, 55, 80, 0.6);
}

.match-world {
    position: relative;
    display: grid;
    min-height: 100vh;
    align-content: start;
    gap: 18px;
    padding: 18px 28px 34px;
    background-image:
        linear-gradient(rgba(2, 49, 104, 0.34), rgba(4, 65, 111, 0.22)),
        url("/static/mascot/scene-english-hero-v273.png");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-color: #07559b;
    background-blend-mode: multiply, normal;
    isolation: isolate;
}

.match-world::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    background:
        radial-gradient(circle at 50% 38%, transparent 26%, rgba(1, 26, 62, 0.12) 75%, rgba(0, 18, 45, 0.34) 100%),
        linear-gradient(180deg, rgba(12, 101, 188, 0.04), rgba(2, 44, 83, 0.18));
    content: "";
    pointer-events: none;
}

.match-game-header {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
    align-items: start;
    gap: 18px;
}

.match-player-card {
    display: grid;
    grid-template-columns: 70px 1fr auto;
    align-items: center;
    width: min(370px, 100%);
    min-height: 92px;
    padding: 10px 14px;
    border: 2px solid rgba(255, 255, 255, 0.7);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(7, 61, 122, 0.9), rgba(5, 44, 91, 0.82));
    box-shadow: inset 0 0 0 1px rgba(115, 196, 255, 0.22), 0 12px 28px rgba(3, 28, 65, 0.36);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.match-player-card img {
    width: 62px;
    height: 62px;
    border: 2px solid rgba(255, 255, 255, 0.72);
    border-radius: 12px;
    object-fit: cover;
}

.match-player-card > div {
    display: grid;
    gap: 5px;
    padding: 0 12px;
}

.match-player-card strong {
    font-size: 18px;
}

.match-player-card span,
.match-player-card b {
    font-size: 13px;
}

.match-exp-track,
.match-reward-track {
    position: relative;
    overflow: hidden;
    height: 8px;
    border-radius: 999px;
    background: rgba(7, 33, 55, 0.5);
}

.match-exp-track i,
.match-reward-track i {
    display: block;
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: #a9d93d;
}

.match-title-board {
    min-width: 390px;
    text-align: center;
}

.match-title-board h1,
.match-panel-board {
    border: 3px solid #43270f;
    background:
        linear-gradient(90deg, rgba(73, 39, 13, 0.2), transparent 18%, transparent 82%, rgba(73, 39, 13, 0.2)),
        #6e3e18;
    box-shadow: inset 0 0 0 3px #a76d31, inset 0 10px 14px rgba(255, 202, 109, 0.08), 0 9px 0 #2d1a0a, 0 16px 26px rgba(9, 28, 36, 0.42);
    color: #fff8e9;
    text-shadow: 0 3px 0 #2a190c;
}

.match-title-board h1 {
    margin: 0;
    padding: 12px 46px;
    border-radius: 8px 14px 7px 13px;
    font-size: 42px;
    letter-spacing: 0;
    clip-path: polygon(3% 7%, 23% 2%, 46% 5%, 70% 1%, 97% 6%, 100% 85%, 78% 98%, 53% 94%, 27% 100%, 0 88%);
}

.match-title-board p {
    width: fit-content;
    margin: 7px auto 0;
    padding: 6px 24px;
    border-radius: 0 0 12px 12px;
    background: rgba(12, 62, 111, 0.8);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
}

.match-home-link {
    justify-self: end;
    padding: 14px 20px;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(9, 68, 128, 0.92), rgba(4, 45, 93, 0.86));
    box-shadow: inset 0 0 0 1px rgba(115, 196, 255, 0.22), 0 8px 20px rgba(3, 28, 65, 0.32);
    color: #ffffff;
    font-size: 16px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

.match-stone-panel {
    position: relative;
    z-index: 1;
    width: min(690px, calc(100% - 32px));
    margin: 8px auto 0;
    padding: 72px 54px 28px;
    border: 10px solid #d4c29a;
    border-radius: 28px;
    background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
        linear-gradient(145deg, rgba(255, 250, 231, 0.96), rgba(225, 207, 169, 0.97));
    background-size: 18px 18px;
    box-shadow: inset 0 0 0 3px #a58e61, inset 0 0 36px rgba(117, 91, 49, 0.2), 0 12px 0 rgba(96, 76, 42, 0.45), 0 24px 48px rgba(3, 28, 50, 0.38);
}

.match-stone-panel::before {
    position: absolute;
    z-index: 0;
    top: -18px;
    right: 30px;
    left: 30px;
    height: 38px;
    background:
        radial-gradient(ellipse at 5% 70%, #506f20 0 10px, transparent 11px),
        radial-gradient(ellipse at 10% 35%, #7aa02e 0 8px, transparent 9px),
        radial-gradient(ellipse at 88% 45%, #6e9228 0 9px, transparent 10px),
        radial-gradient(ellipse at 94% 72%, #496c1f 0 11px, transparent 12px),
        linear-gradient(90deg, transparent 0 4%, rgba(63, 86, 28, 0.85) 8% 15%, transparent 20% 82%, rgba(63, 86, 28, 0.85) 87% 95%, transparent 98%);
    content: "";
    pointer-events: none;
}

.match-stone-panel > * {
    position: relative;
    z-index: 1;
}

.match-panel-board {
    position: absolute;
    top: -27px;
    left: 50%;
    display: flex;
    width: min(560px, calc(100% - 40px));
    min-height: 64px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 8px 24px;
    border-radius: 12px;
    transform: translateX(-50%);
    clip-path: polygon(2% 8%, 22% 2%, 49% 6%, 74% 1%, 98% 8%, 100% 88%, 76% 98%, 52% 94%, 25% 100%, 0 89%);
}

.match-panel-board span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border: 3px solid #44670e;
    border-radius: 50%;
    background: #7fae1f;
    box-shadow: 0 5px 0 #344d0c;
    color: #ffffff;
    font-size: 28px;
}

.match-panel-board h2 {
    margin: 0;
    color: #ffe28e;
    font-size: 30px;
}

.match-panel-subtitle,
.match-selected-book,
.match-panel-note {
    margin: 0 0 18px;
    color: #352718;
    text-align: center;
    font-weight: 800;
}

.match-book-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 34px;
}

.match-book {
    position: relative;
    display: grid;
    min-height: 82px;
    place-items: center;
    align-content: center;
    gap: 4px;
    padding: 12px 18px 24px;
    border: 3px solid rgba(42, 27, 20, 0.48);
    border-radius: 11px 15px 9px 12px;
    background: var(--match-book-color);
    box-shadow: inset 10px 0 0 rgba(40, 35, 46, 0.32), inset 0 8px 10px rgba(255, 255, 255, 0.12), 0 8px 0 var(--match-book-shadow), 0 15px 22px rgba(60, 42, 22, 0.24);
    color: #ffffff;
    text-shadow: 0 2px 0 rgba(28, 21, 26, 0.5);
}

.match-book strong {
    font-size: 20px;
}

.match-book > span {
    color: #ffd86d;
    font-size: 20px;
}

.match-book small {
    position: absolute;
    top: calc(100% + 11px);
    color: #423323;
    font-size: 13px;
    font-weight: 800;
    text-shadow: none;
}

.match-book-olive { --match-book-color: linear-gradient(#9dbd46, #708d25); --match-book-shadow: #42571a; }
.match-book-blue { --match-book-color: linear-gradient(#328edf, #1768b3); --match-book-shadow: #164a7c; }
.match-book-purple { --match-book-color: linear-gradient(#9868c2, #68418d); --match-book-shadow: #432c5c; }
.match-book-orange { --match-book-color: linear-gradient(#f19a2e, #c66d11); --match-book-shadow: #884a0d; }
.match-book-cyan { --match-book-color: linear-gradient(#55b6cc, #27849d); --match-book-shadow: #19596a; }
.match-book-pink { --match-book-color: linear-gradient(#e9678e, #b63861); --match-book-shadow: #7b2743; }
.match-book-sky { --match-book-color: linear-gradient(#5ba4dc, #3375aa); --match-book-shadow: #254f70; }
.match-book-gold { --match-book-color: linear-gradient(#eab72d, #bb8114); --match-book-shadow: #79540f; }

.match-books-panel {
    padding-bottom: 58px;
}

.match-guide {
    position: fixed;
    bottom: 14px;
    left: 24px;
    z-index: 3;
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.match-guide img {
    width: 132px;
    height: 132px;
    object-fit: contain;
    mix-blend-mode: multiply;
    filter: drop-shadow(0 9px 10px rgba(34, 57, 46, 0.28));
}

.match-guide p {
    max-width: 180px;
    margin: 0 0 40px;
    padding: 14px 16px;
    border: 2px solid #9c6f3b;
    border-radius: 10px;
    background: #f8e8c8;
    color: #49301a;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.45;
    transform: rotate(2deg);
}

.match-unit-list {
    display: grid;
    gap: 11px;
}

.match-unit-row {
    display: grid;
    grid-template-columns: 54px 1fr 42px;
    align-items: center;
    gap: 14px;
    min-height: 67px;
    padding: 8px 14px;
    border: 3px solid #a58d62;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(247, 234, 205, 0.98), rgba(216, 197, 161, 0.98));
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.42), 0 6px 0 rgba(118, 91, 52, 0.55), 0 11px 16px rgba(46, 38, 26, 0.19);
    color: #342719;
}

.match-unit-row > b {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: #ffffff;
    font-size: 17px;
    text-shadow: 0 1px 2px #7e4f08;
    clip-path: polygon(50% 0%, 61% 34%, 98% 36%, 68% 57%, 79% 94%, 50% 72%, 21% 94%, 32% 57%, 2% 36%, 39% 34%);
    background: #f0b52d;
}

.match-unit-row > div {
    position: relative;
    display: grid;
    gap: 4px;
    padding-bottom: 9px;
}

.match-unit-row strong {
    font-size: 18px;
}

.match-unit-row span {
    font-size: 12px;
    font-weight: 800;
}

.match-unit-row i {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: #6e6250;
}

.match-unit-row i::after {
    display: block;
    width: var(--match-progress);
    height: 100%;
    border-radius: inherit;
    background: #97bc32;
    content: "";
}

.match-unit-row em {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #78a51e;
    box-shadow: 0 4px 0 #4d6a14;
    color: #ffffff;
    font-size: 30px;
    font-style: normal;
}

.match-panel-note {
    margin: 18px 0 0;
}

.match-ready-unit {
    display: grid;
    max-width: 460px;
    margin: 0 auto 22px;
    padding: 18px;
    border: 4px solid #baa477;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(247, 235, 207, 0.98), rgba(217, 199, 165, 0.98));
    box-shadow: inset 0 0 0 2px #f8f0dd, 0 7px 0 rgba(119, 91, 52, 0.5), 0 14px 20px rgba(54, 43, 29, 0.16);
    color: #342719;
    text-align: center;
}

.match-ready-unit strong {
    font-size: 32px;
}

.match-ready-unit span {
    font-size: 25px;
    font-weight: 800;
}

.match-ready-count {
    display: grid;
    justify-items: center;
    gap: 6px;
    margin-bottom: 18px;
    color: #3a2c1d;
    font-weight: 800;
}

.match-ready-count strong {
    font-size: 24px;
}

.match-ready-meta {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

.match-ready-meta article {
    display: grid;
    min-height: 102px;
    place-items: center;
    align-content: center;
    gap: 3px;
    padding: 12px;
    border: 2px solid #bea983;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(253, 244, 224, 0.96), rgba(226, 210, 177, 0.96));
    color: #3a2b1d;
    text-align: center;
}

.match-ready-meta article > span {
    color: #7a9f22;
    font-size: 26px;
}

.match-ready-meta article p {
    margin: 0;
    font-size: 14px;
    font-weight: 800;
}

.match-start-button {
    display: flex;
    width: min(430px, 100%);
    min-height: 62px;
    align-items: center;
    justify-content: center;
    margin: 22px auto 0;
    border: 3px solid #526d13;
    border-radius: 16px;
    background: linear-gradient(#8eb637, #608716);
    box-shadow: inset 0 0 0 2px #a7cc50, 0 7px 0 #3c590e, 0 12px 20px rgba(50, 62, 17, 0.22);
    color: #ffffff;
    font-size: 26px;
    font-weight: 900;
    text-shadow: 0 2px 0 #35500c;
}

.match-play-layout {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(180px, 220px) minmax(520px, 720px) minmax(200px, 260px);
    align-items: center;
    justify-content: center;
    gap: 38px;
    min-height: calc(100vh - 160px);
}

.match-play-stats,
.match-reward-card {
    display: grid;
    gap: 12px;
}

.match-play-stats section,
.match-reward-card {
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.55);
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(8, 58, 108, 0.86), rgba(4, 42, 80, 0.78));
    box-shadow: inset 0 0 0 1px rgba(119, 202, 255, 0.2), 0 14px 30px rgba(3, 26, 57, 0.36);
    color: #ffffff;
    backdrop-filter: blur(10px);
}

.match-play-stats section > strong,
.match-reward-card > strong {
    display: flex;
    justify-content: space-between;
    padding: 11px 14px;
    background: rgba(255, 255, 255, 0.14);
}

.match-play-stats section p,
.match-play-stats section b {
    display: block;
    margin: 0;
    padding: 9px 14px;
    font-size: 18px;
}

.match-play-stats section p + p {
    border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.match-board-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 100px;
}

.match-board-grid > div {
    display: grid;
    gap: 28px;
}

.match-board-grid button {
    min-height: 104px;
    border: 7px solid #d4c19a;
    border-radius: 20px;
    background:
        radial-gradient(circle at 22% 24%, rgba(111, 93, 61, 0.12) 0 2px, transparent 3px),
        linear-gradient(#f2ead8, #cdbb94);
    background-size: 24px 24px, auto;
    box-shadow: inset 0 0 0 3px #fff7e6, inset 0 0 20px rgba(108, 81, 41, 0.18), 0 10px 0 #77664c, 0 17px 28px rgba(12, 39, 49, 0.35);
    color: #38291c;
    font: inherit;
    font-size: 34px;
    font-weight: 900;
    cursor: default;
}

.match-reward-card {
    justify-items: center;
    padding-bottom: 14px;
    text-align: center;
}

.match-reward-card > strong {
    width: 100%;
    justify-content: center;
}

.match-reward-card img {
    width: 132px;
    height: 132px;
    object-fit: contain;
}

.match-reward-card > b {
    color: #b9e34b;
    font-size: 22px;
}

.match-reward-card p,
.match-reward-card > span {
    margin: 0;
    font-size: 13px;
}

.match-reward-card .match-reward-track {
    width: calc(100% - 28px);
}

.match-reward-card > a {
    display: flex;
    width: calc(100% - 24px);
    min-height: 58px;
    align-items: center;
    justify-content: center;
    margin-top: 4px;
    border: 2px solid #769927;
    border-radius: 14px;
    background: linear-gradient(#a2c943, #6f9a20);
    box-shadow: inset 0 0 0 2px rgba(210, 242, 117, 0.3), 0 7px 0 #456414, 0 12px 18px rgba(30, 51, 12, 0.22);
    color: #ffffff;
    font-size: 20px;
    font-weight: 900;
}

@media (max-width: 1100px) {
    .match-game-header {
        grid-template-columns: 1fr auto;
    }

    .match-player-card {
        display: none;
    }

    .match-title-board {
        min-width: 330px;
    }

    .match-play-layout {
        grid-template-columns: 180px minmax(440px, 1fr);
        gap: 24px;
    }

    .match-reward-card {
        grid-column: 1 / -1;
        grid-template-columns: auto auto 1fr auto;
        align-items: center;
        justify-items: center;
        width: min(720px, 100%);
        justify-self: center;
        padding: 10px;
    }

    .match-reward-card > strong,
    .match-reward-card img,
    .match-reward-card > p,
    .match-reward-card .match-reward-track,
    .match-reward-card > span {
        display: none;
    }

    .match-reward-card > a {
        width: 160px;
        margin: 0;
    }
}

@media (max-width: 760px) {
    .match-world {
        gap: 14px;
        padding: 12px 12px 108px;
        background-position: 60% center;
        background-attachment: scroll;
    }

    .match-game-header {
        grid-template-columns: 1fr;
        justify-items: center;
    }

    .match-title-board {
        min-width: 0;
        width: min(360px, calc(100vw - 24px));
    }

    .match-title-board h1 {
        padding: 10px 14px;
        font-size: 30px;
    }

    .match-title-board p {
        font-size: 13px;
    }

    .match-home-link {
        position: absolute;
        top: 0;
        right: 0;
        padding: 9px 12px;
        font-size: 12px;
    }

    .match-stone-panel {
        width: 100%;
        margin-top: 18px;
        padding: 62px 18px 26px;
        border-width: 5px;
        border-radius: 22px;
    }

    .match-panel-board {
        min-height: 56px;
        padding: 8px 12px;
    }

    .match-panel-board span {
        width: 42px;
        height: 42px;
        font-size: 22px;
    }

    .match-panel-board h2 {
        font-size: 21px;
    }

    .match-book-grid {
        grid-template-columns: 1fr;
        gap: 26px;
    }

    .match-book {
        min-height: 68px;
    }

    .match-guide {
        bottom: 4px;
        left: 8px;
    }

    .match-guide img {
        width: 82px;
        height: 82px;
    }

    .match-guide p {
        max-width: 160px;
        margin-bottom: 24px;
        padding: 9px 11px;
        font-size: 11px;
    }

    .match-unit-row {
        grid-template-columns: 44px 1fr 34px;
        gap: 8px;
        padding: 7px 9px;
    }

    .match-unit-row > b {
        width: 40px;
        height: 40px;
    }

    .match-unit-row strong {
        font-size: 14px;
    }

    .match-ready-meta {
        grid-template-columns: 1fr;
    }

    .match-ready-meta article {
        min-height: 72px;
        grid-template-columns: auto 1fr;
        justify-items: start;
        text-align: left;
    }

    .match-ready-meta article p {
        grid-column: 2;
    }

    .match-play-layout {
        grid-template-columns: 1fr;
        gap: 18px;
        padding-top: 18px;
    }

    .match-play-stats {
        grid-template-columns: 1fr 1fr;
    }

    .match-play-stats section:first-child {
        grid-column: 1 / -1;
    }

    .match-board-grid {
        gap: 14px;
    }

    .match-board-grid > div {
        gap: 16px;
    }

    .match-board-grid button {
        min-height: 74px;
        border-width: 3px;
        border-radius: 14px;
        font-size: 23px;
    }

    .match-reward-card {
        display: grid;
        grid-template-columns: 1fr;
    }
}

/* v2.5.83 /word-match 年级页：书本单元贴合石板并收紧纵向节奏 */
.match-assets-world {
    /* PNG 画布带透明边：740 x 770 对应约 680 x 734 的可见石板。 */
    --match-stage-width: 740px;
    --match-stage-height: 770px;
    --match-stage-padding-x: 112px;
    --match-books-width: 516px;
    --match-book-width: 224px;
    --match-book-height: 92px;
    --match-book-column-gap: 68px;
    position: relative;
    min-height: max(100svh, 1024px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 22px 28px 24px;
    background: #1676c9 url("/static/assets/word_match/background/bg_floating_islands.png") center / cover no-repeat;
    color: #362513;
    isolation: isolate;
}

.match-assets-header {
    position: relative;
    z-index: 5;
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto minmax(250px, 1fr);
    align-items: start;
    min-height: 138px;
}

.match-assets-level {
    position: relative;
    display: grid;
    grid-template-columns: 76px 1fr auto;
    align-items: center;
    width: 372px;
    height: 104px;
    padding: 16px 20px 14px 16px;
    color: #ffffff;
    filter: drop-shadow(0 10px 14px rgba(2, 33, 68, 0.38));
}

.match-assets-level-bg {
    position: absolute;
    z-index: -2;
    top: 50%;
    left: 0;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
    filter: sepia(0.25) saturate(1.5) hue-rotate(155deg) brightness(0.58);
}

.match-assets-level::after {
    position: absolute;
    z-index: -1;
    inset: 7px 8px;
    border-radius: 20px;
    background: rgba(4, 57, 112, 0.72);
    content: "";
}

.match-assets-avatar {
    width: 68px;
    height: 68px;
    border: 2px solid rgba(255, 255, 255, 0.78);
    border-radius: 13px;
    object-fit: cover;
}

.match-assets-level-copy {
    display: grid;
    gap: 4px;
    padding: 0 10px;
}

.match-assets-level-copy strong {
    font-size: 20px;
    text-shadow: 0 2px 2px rgba(0, 28, 64, 0.65);
}

.match-assets-level-copy span,
.match-assets-level > b {
    font-size: 13px;
    font-weight: 800;
}

.match-assets-exp {
    overflow: hidden;
    height: 9px;
    border-radius: 999px;
    background: rgba(0, 24, 53, 0.52);
}

.match-assets-exp i {
    display: block;
    width: 68%;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #bddf43, #83b52d);
}

.match-assets-level > em {
    position: absolute;
    right: 17px;
    bottom: 10px;
    padding: 2px 7px;
    border-radius: 8px;
    background: #94bd2d;
    color: #fffbd7;
    font-size: 11px;
    font-style: normal;
    font-weight: 900;
}

.match-assets-title {
    position: relative;
    overflow: hidden;
    width: 420px;
    height: 132px;
    justify-self: center;
    text-align: center;
    filter: drop-shadow(0 11px 12px rgba(4, 31, 52, 0.34));
}

.match-assets-title > img,
.match-assets-section-title > img,
.match-assets-home > img {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    height: auto;
    transform: translateY(-50%);
    pointer-events: none;
}

.match-assets-title h1 {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-top: 24px;
    color: #ffffff;
    font-size: 48px;
    line-height: 1;
    text-shadow: 0 4px 0 #2d1808, 0 0 3px #1d1007;
}

.match-assets-title p {
    position: relative;
    z-index: 1;
    width: max-content;
    margin: 22px auto 0;
    padding: 6px 22px;
    border-radius: 0 0 13px 13px;
    background: rgba(4, 55, 105, 0.8);
    color: #ffffff;
    font-size: 16px;
    font-weight: 900;
    text-shadow: 0 2px 2px rgba(0, 24, 54, 0.62);
}

.match-assets-home {
    position: relative;
    display: grid;
    width: 190px;
    height: 72px;
    place-items: center;
    justify-self: end;
    color: #ffffff;
    filter: drop-shadow(0 8px 12px rgba(2, 28, 57, 0.35));
    transform: translateX(-2px);
}

.match-assets-home > img {
    filter: sepia(0.05) saturate(1.15) brightness(0.62);
}

.match-assets-home span {
    position: relative;
    z-index: 1;
    font-size: 17px;
    font-weight: 900;
    text-shadow: 0 2px 2px rgba(45, 24, 8, 0.85);
}

.match-assets-stage {
    position: relative;
    z-index: 2;
    isolation: isolate;
    width: var(--match-stage-width);
    min-height: var(--match-stage-height);
    height: var(--match-stage-height);
    margin: 0 auto;
    filter: drop-shadow(0 18px 24px rgba(3, 34, 52, 0.36));
}

.match-assets-stage::before {
    position: absolute;
    z-index: 0;
    inset: 0;
    border: 52px solid transparent;
    border-image-source: url("/static/assets/word_match/panels/panel_main_stone.png");
    border-image-slice: 110 110 140 110 fill;
    border-image-width: 52px;
    border-image-repeat: stretch;
    content: "";
    pointer-events: none;
}

.match-assets-stage-art {
    display: none;
}

.match-assets-stage-content {
    position: absolute;
    z-index: 1;
    inset: 0 var(--match-stage-padding-x) 6px;
    display: grid;
    grid-template-rows: 114px 49px 532px 69px;
}

.match-assets-section-title {
    position: relative;
    overflow: hidden;
    width: 496px;
    height: 82px;
    margin: 23px auto 0;
    text-align: center;
    filter: drop-shadow(0 8px 9px rgba(56, 37, 15, 0.3));
}

.match-assets-section-title h2 {
    position: relative;
    z-index: 1;
    margin: 0;
    padding-top: 25px;
    color: #ffe392;
    font-size: 31px;
    line-height: 1;
    text-shadow: 0 3px 0 #3a210d;
}

.match-assets-instruction {
    position: relative;
    z-index: 6;
    align-self: start;
    justify-self: center;
    width: max-content;
    margin: 0;
    padding: 0;
    background: transparent;
    font-size: 17px;
    font-weight: 900;
    line-height: 24px;
    text-align: center;
}

.match-assets-pages,
.match-assets-page,
.match-assets-book-grid {
    min-height: 0;
}

.match-assets-page[hidden] {
    display: none;
}

.match-assets-page {
    height: 100%;
}

.match-assets-book-grid {
    display: grid;
    width: var(--match-books-width);
    height: 100%;
    grid-template-columns: repeat(2, var(--match-book-width));
    grid-template-rows: 116px 14px 116px 14px 116px 14px 116px;
    column-gap: var(--match-book-column-gap);
    row-gap: 0;
    padding: 0;
}

.match-assets-book:nth-child(-n + 2) {
    grid-row: 1;
}

.match-assets-book:nth-child(n + 3):nth-child(-n + 4) {
    grid-row: 3;
}

.match-assets-book:nth-child(n + 5):nth-child(-n + 6) {
    grid-row: 5;
}

.match-assets-book:nth-child(n + 7):nth-child(-n + 8) {
    grid-row: 7;
}

.match-assets-book {
    display: grid;
    width: var(--match-book-width);
    height: 116px;
    min-width: 0;
    grid-template-rows: var(--match-book-height) 18px;
    row-gap: 6px;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #342313;
    filter: none;
    text-align: center;
    transform: none;
}

.match-assets-book-visual {
    position: relative;
    display: grid;
    width: var(--match-book-width);
    height: var(--match-book-height);
    min-height: 0;
    place-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    filter: none;
    transform: none;
}

.match-assets-book-visual > img {
    position: absolute;
    width: 142%;
    max-width: none;
    height: auto;
    left: 50%;
    top: 50%;
    object-fit: contain;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.match-assets-book strong,
.match-assets-book em {
    position: relative;
    z-index: 1;
    color: #ffffff;
    text-shadow: 0 2px 0 rgba(36, 24, 11, 0.75), 0 0 2px rgba(27, 18, 8, 0.8);
}

.match-assets-book strong {
    align-self: end;
    padding-bottom: 0;
    font-size: 20px;
}

.match-assets-book em {
    align-self: start;
    color: #ffd85e;
    font-size: 19px;
    font-style: normal;
}

.match-assets-book small {
    position: relative;
    z-index: 5;
    align-self: center;
    justify-self: center;
    padding: 0;
    background: transparent;
    box-shadow: none;
    color: #3f2c19;
    font-size: 14px;
    font-weight: 900;
    line-height: 18px;
}

.match-assets-book:hover .match-assets-book-visual,
.match-assets-book:active .match-assets-book-visual {
    transform: none;
}

.match-assets-book:active {
    opacity: 0.96;
}

@media (min-width: 1024px) {
    .match-assets-world {
        height: 100svh;
        overflow-y: hidden;
    }
}

.match-assets-pager {
    display: grid;
    width: calc(100% + 104px);
    height: 69px;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    margin-left: -52px;
    padding: 0;
}

.match-assets-pager > span {
    grid-column: 2;
    align-self: center;
    font-size: 20px;
    font-weight: 900;
}

.match-assets-pager > button {
    display: grid;
    width: 64px;
    height: 64px;
    grid-column: 3;
    place-items: center;
    justify-self: end;
    align-self: start;
    margin-top: -17px;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    filter: drop-shadow(0 6px 6px rgba(52, 44, 19, 0.28));
}

.match-assets-pager > button:focus {
    outline: none;
}

.match-assets-pager > button:focus-visible {
    border-radius: 50%;
    outline: 3px solid rgba(255, 238, 130, 0.95);
    outline-offset: 2px;
}

.match-assets-pager > button img {
    width: 170%;
    height: 170%;
    object-fit: contain;
    pointer-events: none;
}

.match-assets-pager > button.is-back img {
    transform: rotate(180deg);
}

.match-assets-guide {
    position: absolute;
    z-index: 4;
    bottom: 6px;
    left: 0;
    width: 430px;
    height: 320px;
    pointer-events: none;
}

.match-assets-guide-mascot {
    position: absolute;
    bottom: -120px;
    left: -165px;
    width: 480px;
    height: 480px;
    object-fit: contain;
    filter: drop-shadow(0 10px 12px rgba(30, 47, 28, 0.25));
}

.match-assets-guide-bubble {
    position: absolute;
    right: -10px;
    bottom: 112px;
    width: 240px;
    height: 150px;
}

.match-assets-guide-bubble > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    pointer-events: none;
}

.match-assets-guide-bubble p {
    position: absolute;
    z-index: 1;
    right: 17px;
    top: 50px;
    width: 134px;
    margin: 0;
    color: #49321f;
    font-size: 11px;
    font-weight: 900;
    line-height: 1.45;
    text-align: center;
}

@media (max-width: 1023px) {
    .match-assets-level {
        position: absolute;
        top: 104px;
        left: 0;
        display: grid;
        width: 260px;
        height: 76px;
        grid-template-columns: 56px 1fr auto;
        padding: 11px 13px 10px 11px;
    }

    .match-assets-avatar {
        width: 52px;
        height: 52px;
        border-radius: 10px;
    }

    .match-assets-level-copy {
        gap: 2px;
        padding-inline: 7px;
    }

    .match-assets-level-copy strong {
        font-size: 15px;
    }

    .match-assets-level-copy span,
    .match-assets-level > b {
        font-size: 10px;
    }

    .match-assets-level > em {
        right: 12px;
        bottom: 6px;
        font-size: 8px;
    }

    .match-assets-header {
        grid-template-columns: 1fr auto;
        min-height: 190px;
    }

    .match-assets-title {
        grid-column: 1 / -1;
        grid-row: 1;
    }

    .match-assets-home {
        position: absolute;
        top: 0;
        right: 0;
        width: 150px;
        height: 58px;
    }

    .match-assets-home span {
        font-size: 14px;
    }
}

@media (min-width: 768px) and (max-width: 1023px) {
    .match-assets-world {
        --match-stage-width: min(680px, calc(100vw - 48px));
        --match-stage-height: 734px;
        --match-stage-padding-x: 82px;
        padding-inline: 20px;
    }

    .match-assets-title {
        width: 380px;
    }

    .match-assets-stage-content {
        bottom: 0;
        grid-template-rows: 84px 49px 532px 69px;
    }

    .match-assets-section-title {
        margin-top: -7px;
    }
}

@media (max-width: 767px) {
    .match-assets-world {
        --match-stage-width: calc(100vw - 40px);
        --match-stage-height: 920px;
        --match-stage-padding-x: 35px;
        --match-books-width: 100%;
        --match-book-width: 150px;
        --match-book-height: 62px;
        min-height: 100svh;
        overflow-y: auto;
        padding: 8px 20px 18px;
        background-position: 58% center;
    }

    .match-assets-header {
        min-height: 186px;
    }

    .match-assets-title {
        width: min(280px, calc(100vw - 106px));
        height: 104px;
        justify-self: start;
    }

    .match-assets-title h1 {
        padding-top: 23px;
        font-size: 33px;
    }

    .match-assets-title p {
        margin-top: 20px;
        padding: 5px 14px;
        font-size: 12px;
    }

    .match-assets-home {
        top: 3px;
        right: 0;
        width: 98px;
        height: 44px;
    }

    .match-assets-home span {
        font-size: 11px;
    }

    .match-assets-level {
        top: 108px;
        width: 220px;
        height: 66px;
        grid-template-columns: 47px 1fr auto;
        padding: 9px 11px 8px 9px;
    }

    .match-assets-avatar {
        width: 44px;
        height: 44px;
    }

    .match-assets-level-copy strong {
        font-size: 13px;
    }

    .match-assets-level-copy span,
    .match-assets-level > b {
        font-size: 9px;
    }

    .match-assets-stage {
        width: var(--match-stage-width);
        min-height: var(--match-stage-height);
        height: var(--match-stage-height);
        margin-top: 0;
    }

    .match-assets-stage::before {
        border-width: 32px;
        border-image-width: 32px;
    }

    .match-assets-stage-content {
        inset: 0 var(--match-stage-padding-x);
        grid-template-rows: 58px 42px 748px 72px;
    }

    .match-assets-section-title {
        width: calc(100% + 28px);
        height: 62px;
        margin: -5px -14px 0;
    }

    .match-assets-section-title h2 {
        padding-top: 18px;
        font-size: 17px;
    }

    .match-assets-instruction {
        align-self: start;
        padding-top: 3px;
        font-size: 11px;
        line-height: 18px;
    }

    .match-assets-book-grid {
        width: 100%;
        grid-auto-flow: row;
        grid-auto-rows: 84px;
        grid-template-columns: 150px !important;
        grid-template-rows: none;
        justify-content: center;
        column-gap: 0;
        row-gap: 12px;
        padding: 0;
    }

    .match-assets-book:nth-child(n) {
        grid-column: 1;
        grid-row: auto !important;
    }

    .match-assets-pages {
        padding: 0;
    }

    .match-assets-book {
        width: 150px;
        height: 84px;
        grid-template-rows: 62px 16px;
        row-gap: 6px;
    }

    .match-assets-book-visual {
        width: 150px;
        height: 62px;
    }

    .match-assets-book-visual > img {
        width: 142%;
    }

    .match-assets-book strong {
        font-size: 12px;
    }

    .match-assets-book em {
        font-size: 11px;
    }

    .match-assets-book small {
        font-size: 9px;
        line-height: 16px;
    }

    .match-assets-pager {
        width: calc(100% + 30px);
        height: 72px;
        margin-left: -15px;
    }

    .match-assets-pager > button {
        width: 44px;
        height: 44px;
        align-self: center;
        margin-top: 0;
    }

    .match-assets-pager > button img {
        width: 168%;
        height: 168%;
    }

    .match-assets-guide {
        position: relative;
        bottom: auto;
        left: auto;
        width: 250px;
        height: 180px;
        margin: -8px auto 0;
    }

    .match-assets-guide-mascot {
        left: -34px;
        width: 230px;
        height: 230px;
        bottom: -42px;
    }

    .match-assets-guide-bubble {
        right: -18px;
        bottom: 60px;
        width: 180px;
        height: 108px;
    }

    .match-assets-guide-bubble p {
        top: 35px;
        right: 10px;
        width: 100px;
        font-size: 8px;
    }
}

body {
    margin: 0;
    min-height: 100vh;
    font-family: Arial, "Microsoft YaHei", sans-serif;
    background: #f5f7fb;
    color: #1f2937;
}

.sound-toggle {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10;
}

.sound-toggle label {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
    color: #374151;
    font-size: 14px;
    font-weight: 700;
}

.sound-toggle input {
    width: 16px;
    height: 16px;
    padding: 0;
    border: 0;
    accent-color: #58cc02;
}

.app-version {
    position: fixed;
    right: 10px;
    bottom: 8px;
    z-index: 20;
    color: #9ca3af;
    font-size: 0;
    font-weight: 700;
    pointer-events: none;
}

.app-version::after {
    content: "v2.5.880";
    font-size: 11px;
}

a {
    color: #1d4ed8;
    text-decoration: none;
}

.page {
    width: min(720px, calc(100% - 32px));
    margin: 0 auto;
    padding: 48px 0;
}

.home,
.panel {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 32px;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
}

.home {
    text-align: center;
}

body.industry-page {
    background: #f7f8fa;
}

.industry-page .page {
    width: min(1000px, calc(100% - 48px));
    padding: 48px 0 56px;
}

.industry-shell {
    display: grid;
    gap: 20px;
}

.industry-back {
    width: fit-content;
    color: #3578c8;
    font-size: 15px;
    font-weight: 700;
}

.industry-header {
    display: grid;
    gap: 8px;
}

.industry-header h1 {
    margin: 0;
    color: #1f2937;
    font-size: 36px;
    line-height: 1.2;
}

.industry-header p {
    margin: 0;
    color: #6b7280;
    font-size: 16px;
    font-weight: 600;
}

.industry-primary-list,
.industry-secondary-list,
.industry-word-list {
    display: grid;
    gap: 14px;
}

.industry-primary-card {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr) 28px;
    align-items: center;
    gap: 16px;
    min-height: 112px;
    padding: 20px 24px;
    border: 1px solid #d8edd8;
    border-radius: 16px;
    background: #f3fbf5;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    color: #1f2937;
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.industry-primary-card:hover,
.industry-secondary-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.08);
}

.industry-primary-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 50%;
    background: #dff4e0;
    color: #4aa45e;
}

.industry-primary-icon svg {
    width: 30px;
    height: 30px;
}

.industry-primary-title {
    color: #2b7a45;
    font-size: 22px;
    font-weight: 800;
}

.industry-primary-arrow,
.industry-circle-arrow {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #58bd38;
    color: #ffffff;
}

.industry-primary-arrow svg,
.industry-circle-arrow svg {
    width: 18px;
    height: 18px;
}

.industry-secondary-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 96px;
    padding: 20px 24px;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
    color: #1f2937;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.industry-secondary-copy {
    display: grid;
    gap: 6px;
    min-width: 0;
}

.industry-secondary-copy strong {
    color: #1f2937;
    font-size: 19px;
    font-weight: 800;
}

.industry-secondary-copy span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.industry-card-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.industry-word-count,
.industry-empty-count {
    padding: 6px 10px;
    border-radius: 999px;
    background: #edf5ff;
    color: #3974bb;
    font-size: 13px;
    font-weight: 800;
    white-space: nowrap;
}

.industry-secondary-card--empty {
    border-color: #e3e9ef;
    background: #fbfcfe;
}

.industry-secondary-card--empty .industry-secondary-copy strong,
.industry-secondary-card--empty .industry-secondary-copy span {
    color: #6b7280;
}

.industry-empty-count {
    background: #f1f3f5;
    color: #9ca3af;
}

.industry-learn-action,
.industry-import-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 106px;
    padding: 9px 12px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.industry-learn-action {
    background: #eff9eb;
    color: #4aa42b;
}

.industry-learn-action svg {
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #69bc40;
    color: #ffffff;
}

.industry-import-action {
    border: 1px solid #dce6f1;
    background: #f4f8fc;
    color: #4f7fae;
}

.industry-import-action svg {
    width: 17px;
    height: 17px;
}

.industry-import-summary,
.industry-import-result,
.industry-import-message {
    border: 1px solid #dcefd6;
    border-radius: 14px;
    background: #f7fcf5;
    color: #356d2b;
    font-size: 14px;
    line-height: 1.65;
}

.industry-import-summary,
.industry-import-result {
    display: grid;
    gap: 4px;
    padding: 16px 20px;
}

.industry-import-summary strong,
.industry-import-result strong {
    font-size: 16px;
}

.industry-import-summary ul,
.industry-import-result ul {
    margin: 2px 0 0;
    padding-left: 18px;
}

.industry-import-message {
    padding: 12px 16px;
    border-color: #f0d7c7;
    background: #fffaf6;
    color: #9a5b36;
}

.industry-import-form {
    display: grid;
    gap: 18px;
    padding: 24px;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.industry-file-field,
.industry-text-field {
    display: grid;
    gap: 9px;
    color: #374151;
    font-size: 15px;
    font-weight: 800;
}

.industry-file-field input,
.industry-text-field textarea {
    width: 100%;
    box-sizing: border-box;
    border: 1px solid #dfe5eb;
    border-radius: 12px;
    background: #fbfcfd;
    color: #1f2937;
    font: inherit;
}

.industry-file-field input {
    padding: 11px 12px;
    font-size: 14px;
    font-weight: 500;
}

.industry-text-field textarea {
    min-height: 210px;
    padding: 12px 14px;
    line-height: 1.6;
    resize: vertical;
}

.industry-import-help {
    color: #6b7280;
    font-size: 13px;
    line-height: 1.6;
}

.industry-import-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.industry-cancel-button,
.industry-submit-button {
    min-height: 42px;
    padding: 0 18px;
    border-radius: 10px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
}

.industry-cancel-button {
    display: inline-flex;
    align-items: center;
    border: 1px solid #dfe5eb;
    background: #ffffff;
    color: #667085;
}

.industry-submit-button {
    border: 0;
    background: #65b940;
    color: #ffffff;
    cursor: pointer;
}

.industry-submit-button:hover,
.industry-cancel-button:hover {
    transform: translateY(-1px);
}

.industry-word-card {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 20px;
    min-height: 118px;
    padding: 20px 24px;
    border: 1px solid #e8ecf1;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
}

.industry-word-card h2 {
    margin: 0 0 8px;
}

.industry-word-card .meaning {
    margin: 10px 0 0;
}

body.home-page {
    background: #f7faf7;
}

.home-page .page {
    width: min(1200px, calc(100% - 48px));
    padding: 32px 0 48px;
}

.home-page .home {
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.home-page .home > h1 {
    margin-bottom: 16px;
    color: #1f2937;
    font-size: 36px;
    text-align: left;
}

.mascot-welcome-card {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(360px, 0.95fr);
    align-items: center;
    gap: 14px;
    max-width: none;
    margin: 0;
    overflow: hidden;
    padding: 0;
    border: 1px solid #e3f2e4;
    border-radius: 16px;
    background: #f3fbf5;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
    text-align: left;
}

.mascot-welcome-card img {
    width: 100%;
    height: 100%;
    aspect-ratio: 1600 / 983;
    object-fit: cover;
    border-radius: 0;
}

.mascot-welcome-card div {
    display: grid;
    gap: 8px;
    min-width: 0;
    padding: 32px 32px 32px 0;
}

.mascot-welcome-card > div {
    position: relative;
    overflow: hidden;
    isolation: isolate;
}

.mascot-welcome-card > div::before,
.mascot-welcome-card > div::after {
    position: absolute;
    z-index: 0;
    content: "";
    pointer-events: none;
}

.mascot-welcome-card > div::before {
    right: 0;
    bottom: 0;
    width: 220px;
    height: 160px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 160'%3E%3Cpath d='M125 101c0-25 18-45 43-45s43 20 43 45H125Z' fill='none' stroke='%23C9EBC2' stroke-opacity='.58' stroke-width='4' stroke-linejoin='round'/%3E%3Cpath d='M151 101v29c0 5 4 9 9 9h16c5 0 9-4 9-9v-29M138 139h55' fill='none' stroke='%23C9EBC2' stroke-opacity='.58' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3Cpath d='m188 16 4 8 8 4-8 4-4 8-4-8-8-4 8-4z' fill='%23DDF2D6' fill-opacity='.82'/%3E%3C/svg%3E") right bottom / 220px 160px no-repeat;
}

.mascot-welcome-card > div::after {
    right: 142px;
    bottom: 34px;
    width: 20px;
    height: 20px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='m10 0 2.1 7.9L20 10l-7.9 2.1L10 20l-2.1-7.9L0 10l7.9-2.1z' fill='%23E8D38E' fill-opacity='.72'/%3E%3C/svg%3E") center / 20px 20px no-repeat;
}

.mascot-welcome-card > div > strong,
.mascot-welcome-card > div > span {
    position: relative;
    z-index: 2;
}

.mascot-welcome-card strong {
    color: #1f2937;
    font-size: 24px;
}

.mascot-welcome-card span {
    color: #58a700;
    font-size: 16px;
    font-weight: 700;
}

.mascot-welcome-card.home-game-hero {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1920 / 818;
    border: 0;
    background: #dcecf7;
}

.mascot-welcome-card.home-game-hero img {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: auto;
    object-fit: cover;
}

.mascot-welcome-card.home-game-hero .home-hero-live-stats,
.mascot-welcome-card.home-game-hero .home-streak-glow {
    position: absolute;
    pointer-events: none;
}

.mascot-welcome-card.home-game-hero .home-hero-live-stats {
    z-index: 3;
    inset: 0;
}

.mascot-welcome-card.home-game-hero .home-hero-stat-group {
    position: absolute;
    display: flex;
    align-items: center;
    gap: clamp(4px, 0.35vw, 7px);
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    white-space: nowrap;
}

.mascot-welcome-card.home-game-hero .home-hero-stat-value {
    display: block;
    padding: 0;
    font-size: clamp(30px, 4.35vw, 72px);
    font-weight: 800;
    line-height: 1;
    letter-spacing: 0;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.78);
}

.mascot-welcome-card.home-game-hero .home-hero-mastered-group {
    top: 50.5%;
    left: 32.7%;
}

.mascot-welcome-card.home-game-hero .home-hero-mastered-group .home-hero-stat-value {
    color: #3b6f36;
}

.mascot-welcome-card.home-game-hero .home-hero-stat-unit {
    display: block;
    color: #24303a;
    font-size: clamp(15px, 1.7vw, 28px);
    font-weight: 800;
    line-height: 1;
    text-shadow: 0 2px 8px rgba(255, 255, 255, 0.72);
}

.mascot-welcome-card.home-game-hero .home-hero-streak-group {
    top: 50.5%;
    left: 61.9%;
}

.mascot-welcome-card.home-game-hero .home-hero-streak-group .home-hero-stat-value {
    color: #c74d1c;
    text-shadow: 0 2px 8px rgba(255, 246, 236, 0.82);
}

.mascot-welcome-card.home-game-hero .home-hero-stat-value.is-updated {
    animation: home-stat-emphasis 0.48s ease-out;
}

.mascot-welcome-card.home-game-hero .home-streak-glow {
    z-index: 2;
    top: 48.8%;
    left: 51.2%;
    width: 10.2%;
    height: 25.5%;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 224, 104, 0.48) 0 18%, rgba(255, 144, 35, 0.22) 44%, transparent 72%);
    filter: blur(4px);
    will-change: transform, opacity;
    animation: home-flame-glow 2.3s ease-in-out infinite;
}

@keyframes home-flame-glow {
    0%, 100% { opacity: 0.34; transform: translateY(0) scale(0.92); }
    50% { opacity: 0.68; transform: translateY(-1.4%) scale(1.07); }
}

@keyframes home-stat-emphasis {
    0% { transform: scale(1); }
    45% { transform: scale(1.16); }
    100% { transform: scale(1); }
}

.mascot-welcome-card.home-game-hero::after {
    position: absolute;
    top: 2.5%;
    left: 0.45%;
    width: 4.1%;
    min-width: 34px;
    aspect-ratio: 1;
    border-radius: 50%;
    background:
        radial-gradient(circle at 63% 20%, rgba(255, 255, 255, 0.52) 0 23%, transparent 24%),
        linear-gradient(145deg, #9dd4fb 0%, #b9ddf7 52%, #cde5f5 100%);
    box-shadow: 0 0 12px 10px rgba(180, 220, 247, 0.2);
    content: "";
    pointer-events: none;
}

.home-page .home-stats {
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    margin-top: 24px;
    text-align: left;
}

.home-stats .stat {
    position: relative;
    min-height: 126px;
    padding: 20px 24px 18px 104px;
    border: 0;
    border-radius: 16px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 160 64'%3E%3Cpath d='M4 48 28 39 47 46 68 28 87 36 118 8 132 17 156 3' fill='none' stroke='%2358CC02' stroke-opacity='.12' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") right 18px bottom 17px / 150px 60px no-repeat, #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.home-stats .stat::before,
.home-stats .stat::after {
    position: absolute;
    content: "";
}

.home-stats .stat::before {
    top: 50%;
    left: 24px;
    width: 64px;
    height: 64px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='32' fill='%234F8CF7'/%3E%3Cpath d='M14 19c6.2-3.1 12.4-2.1 18 3v23c-5.6-5.1-11.8-6.1-18-3zM50 19c-6.2-3.1-12.4-2.1-18 3v23c5.6-5.1 11.8-6.1 18-3zM32 22v23' fill='none' stroke='white' stroke-width='3.3' stroke-linejoin='round'/%3E%3C/svg%3E") center / 64px 64px no-repeat;
    transform: translateY(-50%);
}

.home-stats .stat::after {
    display: none;
}

.home-stats .home-practice-stat::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Ccircle cx='32' cy='32' r='32' fill='%237BCB45'/%3E%3Cpath d='M32 17v16l10 6' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 64px 64px no-repeat;
}

.home-stats .home-stat-copy {
    position: relative;
    z-index: 1;
    display: grid;
    align-content: center;
    gap: 4px;
}

.home-stats .stat span {
    color: #6b7280;
    font-size: 15px;
    font-weight: 600;
}

.home-stats .stat strong {
    color: #1f2937;
    font-size: 34px;
    line-height: 1.05;
}

.home-stats .home-word-stat strong em {
    margin-left: 5px;
    color: #4b5563;
    font-size: 15px;
    font-style: normal;
    font-weight: 700;
}

.home-stats .stat small {
    color: #9ca3af;
    font-size: 12px;
    font-weight: 600;
    line-height: 1.35;
}

.home-practice-stat {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    text-align: left;
}

.home-reset-button {
    position: absolute;
    z-index: 1;
    top: 22px;
    right: 22px;
    min-height: 32px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #e5e7eb;
    color: #6b7280;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
    cursor: pointer;
}

.home-reset-button:hover {
    background: #dfe3e8;
}

.home-reset-button:disabled {
    cursor: wait;
    opacity: 0.7;
}

.actions.home-actions {
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 20px;
}

.button.home-action-button {
    position: relative;
    overflow: hidden;
    justify-content: flex-start;
    min-height: 80px;
    min-width: 0;
    padding: 0 34px 0 58px;
    border: 1px solid var(--home-action-border);
    border-radius: 16px;
    background: linear-gradient(135deg, #ffffff 0%, var(--home-action-background) 100%);
    color: #1f2937;
    font-weight: 600;
    box-shadow: 0 6px 16px rgba(15, 23, 42, 0.05);
    transition: transform 0.24s ease, box-shadow 0.24s ease, background 0.24s ease;
}

.button.home-action-button::before {
    position: absolute;
    top: 50%;
    left: 16px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: var(--home-action-accent);
    color: #ffffff;
    content: var(--home-action-icon);
    font-size: 19px;
    font-weight: 800;
    transform: translateY(-50%);
}

.button.home-action-button::after {
    position: absolute;
    top: 50%;
    right: 18px;
    color: var(--home-action-accent);
    content: "›";
    font-size: 28px;
    font-weight: 600;
    line-height: 1;
    transform: translateY(-50%);
}

.button.home-action-button:hover {
    transform: translateY(-2px);
    background: linear-gradient(135deg, #ffffff 0%, var(--home-action-hover-background) 100%);
    box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.button.home-continue-button {
    --home-action-accent: #5b8def;
    --home-action-icon: "▶";
    --home-action-background: #eef3fe;
    --home-action-hover-background: #e4edfd;
    --home-action-border: #dbe7fc;
}

.actions.home-actions .button.home-word-match-button {
    position: relative;
    z-index: 1;
    width: 100%;
    min-height: 80px;
    justify-self: start;
    overflow: hidden;
    padding: 0;
    border: 0;
    border-radius: 14px;
    background: transparent;
    box-shadow: none;
    pointer-events: auto;
}

.button.home-word-match-button::before,
.button.home-word-match-button::after {
    display: none;
}

.button.home-word-match-button img {
    display: block;
    width: 100%;
    height: 80px;
    object-fit: cover;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.actions.home-actions .button.home-word-match-button:hover {
    background: transparent;
    box-shadow: none;
    transform: translateY(-2px);
}

.actions.home-actions .button.home-word-match-button:active {
    transform: translateY(0);
}

.button.home-add-button {
    --home-action-accent: #8b7cff;
    --home-action-icon: "+";
    --home-action-background: #f1efff;
    --home-action-hover-background: #e9e6ff;
    --home-action-border: #dfdbff;
}

.button.home-phonetics-button {
    --home-action-accent: #9337e9;
    --home-action-icon: "/æ/";
    --home-action-background: #f8efff;
    --home-action-hover-background: #f2e4ff;
    --home-action-border: #ddc1ff;
}

.button.home-words-button {
    --home-action-accent: #ff8a6b;
    --home-action-icon: "☷";
    --home-action-background: #fff1ed;
    --home-action-hover-background: #ffe8e1;
    --home-action-border: #ffded4;
}

.button.home-wrong-button {
    --home-action-accent: #7ed957;
    --home-action-background: #eff9eb;
    --home-action-hover-background: #e5f5df;
    --home-action-border: #d7efcd;
}

.button.home-industry-button {
    --home-action-accent: #4fa8d8;
    --home-action-background: #ebf6fb;
    --home-action-hover-background: #e1f1f9;
    --home-action-border: #d3eaf5;
}

.button.home-preschool-button {
    --home-action-accent: #f0448c;
    --home-action-background: #fff0f7;
    --home-action-hover-background: #ffe6f1;
    --home-action-border: #f9bfd9;
}

.button.home-action-button .home-action-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
    line-height: 1.15;
    text-align: left;
}

.button.home-action-button .home-action-title {
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
}

.button.home-action-button .home-action-subtitle {
    color: #6b7280;
    font-size: 11px;
    font-weight: 600;
    white-space: nowrap;
}

.button.home-words-button .home-action-title {
    color: #e86f51;
}

.button.home-wrong-button .home-action-title {
    color: #5da832;
}

.button.home-industry-button .home-action-title {
    color: #388fc5;
}

.button.home-preschool-button .home-action-title {
    color: #eb2f81;
}

.button.home-phonetics-button .home-action-title {
    color: #8131d7;
}

.button.home-phonetics-button::before {
    width: 38px;
    height: 38px;
    border-radius: 11px;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 16px;
    letter-spacing: -1px;
}

.button.home-phonetics-button .home-new-badge {
    background: #9337e9;
    box-shadow: 0 4px 10px rgba(147, 55, 233, .2);
}

.button.home-preschool-button .home-action-subtitle {
    color: #4b5563;
}

.button.home-preschool-button::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='18' fill='%23FBD1E3'/%3E%3Ccircle cx='18' cy='19' r='10.5' fill='%23FFDAB7'/%3E%3Cpath d='M17.4 8.6c2.7-2 5.6-.2 4.8 2.7-.6 2-2.8 2.5-4.3 1.4 1.5-.5 2.1-1.5 1.6-2.5-.4-.7-1.2-.8-2.1-.2z' fill='%23D69228'/%3E%3Ccircle cx='14.5' cy='18.2' r='1.5' fill='%233C2E2B'/%3E%3Ccircle cx='21.5' cy='18.2' r='1.5' fill='%233C2E2B'/%3E%3Cpath d='M14.8 23.4c1.9 1.8 4.5 1.8 6.4 0' fill='none' stroke='%233C2E2B' stroke-width='1.7' stroke-linecap='round'/%3E%3Ccircle cx='11.3' cy='21.8' r='2' fill='%23FFB2B8' opacity='.85'/%3E%3Ccircle cx='24.7' cy='21.8' r='2' fill='%23FFB2B8' opacity='.85'/%3E%3C/svg%3E") center / 36px 36px no-repeat;
    content: "";
}

.button.home-preschool-button::after {
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m6 3 6 6-6 6' fill='none' stroke='%23F0448C' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
    content: "";
    font-size: 0;
}

.home-new-badge {
    position: absolute;
    top: 8px;
    right: 12px;
    padding: 3px 9px;
    border-radius: 999px;
    background: #f02f86;
    color: #ffffff;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 4px 10px rgba(240, 47, 134, 0.18);
}

.button.home-wrong-button::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='18' fill='%2372BD44'/%3E%3Ccircle cx='18' cy='18' r='7' fill='none' stroke='white' stroke-width='2.3'/%3E%3Ccircle cx='18' cy='18' r='2.2' fill='white'/%3E%3Cpath d='M18 7v4M18 25v4M7 18h4M25 18h4' stroke='white' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E") center / 36px 36px no-repeat;
    content: "";
}

.button.home-industry-button::before {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 36 36'%3E%3Ccircle cx='18' cy='18' r='18' fill='%234F9EDB'/%3E%3Ccircle cx='18' cy='18' r='8.5' fill='none' stroke='white' stroke-width='2'/%3E%3Cpath d='M9.5 18h17M18 9.5c2.4 2.5 3.6 5.3 3.6 8.5S20.4 24 18 26.5M18 9.5c-2.4 2.5-3.6 5.3-3.6 8.5S15.6 24 18 26.5' fill='none' stroke='white' stroke-width='1.7' stroke-linecap='round'/%3E%3C/svg%3E") center / 36px 36px no-repeat;
    content: "";
}

.button.home-wrong-button::after {
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m6 3 6 6-6 6' fill='none' stroke='%235DA832' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
    content: "";
    font-size: 0;
}

.button.home-industry-button::after {
    width: 18px;
    height: 18px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='m6 3 6 6-6 6' fill='none' stroke='%23388FC5' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px 18px no-repeat;
    content: "";
    font-size: 0;
}

.button.home-action-button:active {
    transform: translateY(0);
    box-shadow: 0 3px 10px rgba(15, 23, 42, 0.05);
}

@media (max-width: 767px) {
    .industry-page .page {
        width: min(1000px, calc(100% - 32px));
        padding: 28px 0 40px;
    }

    .industry-shell {
        gap: 16px;
    }

    .industry-header h1 {
        font-size: 28px;
    }

    .industry-header p {
        font-size: 15px;
    }

    .industry-primary-card {
        min-height: 92px;
        padding: 16px;
    }

    .industry-secondary-card {
        gap: 12px;
        min-height: 90px;
        padding: 16px;
    }

    .industry-secondary-copy strong {
        font-size: 17px;
    }

    .industry-secondary-copy span {
        font-size: 13px;
    }

    .industry-card-actions {
        gap: 10px;
    }

    .industry-word-count,
    .industry-empty-count {
        font-size: 12px;
    }

    .industry-learn-action,
    .industry-import-action {
        min-width: 82px;
        padding: 8px 10px;
        gap: 5px;
        font-size: 12px;
    }

    .industry-import-form {
        padding: 18px;
    }

    .industry-import-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .industry-cancel-button,
    .industry-submit-button {
        justify-content: center;
        min-width: 0;
        padding: 0 10px;
    }

    .industry-word-card {
        min-height: 104px;
        padding: 16px;
    }

    .home-page .page {
        width: min(1200px, calc(100% - 32px));
        padding: 24px 0 36px;
    }

    .home-page .home > h1 {
        font-size: 30px;
    }

    .mascot-welcome-card {
        grid-template-columns: 1fr;
        gap: 16px;
        max-width: 100%;
        text-align: center;
    }

    .mascot-welcome-card div {
        justify-items: center;
        padding: 0 24px 24px;
    }

    .mascot-welcome-card > div::before,
    .mascot-welcome-card > div::after {
        display: none;
    }

    .mascot-welcome-card strong {
        font-size: 20px;
    }

    .actions.home-actions {
        grid-template-columns: 1fr;
    }

    .button.home-action-button {
        min-height: 72px;
    }
}

@media (min-width: 768px) and (max-width: 980px) {
    .actions.home-actions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 12px;
    }

    .button.home-action-button {
        min-height: 74px;
        padding: 0 32px 0 54px;
    }

    .button.home-action-button::before {
        left: 12px;
        width: 32px;
        height: 32px;
        background-size: 32px 32px;
    }

    .button.home-action-button::after {
        right: 12px;
    }

    .button.home-action-button .home-action-title {
        font-size: 14px;
    }

    .button.home-action-button .home-action-subtitle {
        font-size: 9px;
    }

    .home-new-badge {
        top: 7px;
        right: 8px;
        padding: 2px 7px;
        font-size: 9px;
    }
}

.mascot-reminder-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 14px;
    margin: 8px 0 22px;
    padding: 14px 16px;
    border: 1px solid #d9f7c7;
    border-radius: 8px;
    background: #f4ffe9;
}

.mascot-reminder-card img {
    width: 74px;
    height: 74px;
    object-fit: contain;
}

.mascot-reminder-card div {
    display: grid;
    gap: 4px;
}

.mascot-reminder-card strong {
    color: #1f2937;
    font-size: 17px;
}

.mascot-reminder-card span {
    color: #58a700;
    font-size: 14px;
    font-weight: 800;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    font-size: 32px;
    margin-bottom: 12px;
}

h2 {
    font-size: 42px;
    margin-bottom: 16px;
}

.muted {
    color: #6b7280;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 28px;
}

.left-actions {
    justify-content: flex-start;
    margin-bottom: 18px;
}

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 18px;
    border: 0;
    border-radius: 8px;
    background: #e5e7eb;
    color: #111827;
    font-size: 16px;
    font-weight: 800;
    box-shadow: 0 4px 0 rgba(15, 23, 42, 0.12);
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease, background 0.14s ease;
}

.button:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 rgba(15, 23, 42, 0.12);
}

.button:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.12);
}

.button:disabled {
    cursor: not-allowed;
    opacity: 0.65;
    transform: none;
}

.button.primary {
    background: #58cc02;
    color: #ffffff;
    font-weight: 700;
}

.button.wide {
    width: 100%;
}

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

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

.stat {
    display: grid;
    gap: 8px;
    padding: 18px 12px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
}

.stat span {
    color: #6b7280;
    font-size: 14px;
}

.stat strong {
    font-size: 28px;
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
}

.topbar h1 {
    margin-bottom: 0;
}

.top-links {
    display: flex;
    gap: 14px;
}

.unit-map {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    margin-top: 34px;
}

.unit-node {
    display: grid;
    place-items: center;
    gap: 8px;
    min-height: 104px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: #f3f4f6;
    color: #6b7280;
    font-weight: 800;
}

.unit-node span {
    font-size: 15px;
}

.unit-node strong {
    font-size: 22px;
}

.unit-node.current {
    border-color: #58cc02;
    background: #ecfdf3;
    color: #15803d;
    box-shadow: 0 10px 24px rgba(88, 204, 2, 0.18);
}

.unit-node.completed {
    border-color: #58cc02;
    background: #58cc02;
    color: #ffffff;
}

.unit-node.locked {
    cursor: not-allowed;
    opacity: 0.72;
}

.textbook-catalog {
    display: grid;
    gap: 24px;
    margin-top: 32px;
    text-align: left;
}

.textbook-section {
    display: grid;
    gap: 14px;
}

.textbook-section h2 {
    margin: 0;
    color: #1f2937;
    font-size: 22px;
}

.textbook-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.textbook-card {
    display: grid;
    gap: 6px;
    min-height: 82px;
    padding: 16px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    color: #6b7280;
    box-shadow: 0 4px 0 #d1d5db;
}

.textbook-card span {
    color: #1f2937;
    font-size: 17px;
    font-weight: 900;
}

.textbook-card strong {
    font-size: 13px;
    font-weight: 900;
}

.textbook-card.open {
    border-color: #58cc02;
    background: #f4ffe9;
    color: #58a700;
    box-shadow: 0 5px 0 #46a302, 0 12px 24px rgba(88, 204, 2, 0.16);
}

.textbook-card.open:hover {
    transform: translateY(-1px);
}

.textbook-card.coming {
    cursor: not-allowed;
    opacity: 0.82;
}

.home-page .textbook-catalog {
    gap: 24px;
    margin-top: 24px;
    padding: 24px;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.home-page .textbook-section {
    gap: 12px;
}

.home-page .textbook-section h2 {
    color: #1f2937;
    font-size: 24px;
}

.home-page .textbook-grid {
    gap: 12px;
}

.home-page .textbook-card {
    position: relative;
    min-height: 72px;
    padding: 16px 64px 16px 72px;
    border: 1px solid #edf0f2;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 14px rgba(15, 23, 42, 0.04);
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.home-page .textbook-card::before {
    position: absolute;
    top: 50%;
    left: 24px;
    width: 32px;
    height: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cpath d='M4.5 7.5c3.6-1.5 7.1-1.1 10 1.2v15c-2.9-2.3-6.4-2.7-10-1.2zM27.5 7.5c-3.6-1.5-7.1-1.1-10 1.2v15c2.9-2.3 6.4-2.7 10-1.2zM16 8.7v15' fill='none' stroke='%2358CC02' stroke-width='2.4' stroke-linejoin='round'/%3E%3C/svg%3E") center / 28px 28px no-repeat;
    content: "";
    transform: translateY(-50%);
}

.home-page .textbook-card::after {
    position: absolute;
    top: 50%;
    right: 20px;
    width: 32px;
    height: 32px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='15' fill='%23F3F5F7'/%3E%3Crect x='10' y='15' width='12' height='9' rx='2' fill='%239CA3AF'/%3E%3Cpath d='M12.5 15v-2.2a3.5 3.5 0 017 0V15' fill='none' stroke='%239CA3AF' stroke-width='2.2' stroke-linecap='round'/%3E%3C/svg%3E") center / 32px 32px no-repeat;
    content: "";
    transform: translateY(-50%);
}

.home-page .textbook-card:hover {
    transform: translateY(-2px);
    border-color: #cbecc5;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06);
}

.home-page .textbook-card.open {
    border-color: #a9df8f;
    background: #f3fbf0;
    color: #58a700;
    box-shadow: 0 6px 16px rgba(88, 204, 2, 0.08);
}

.home-page .textbook-card.open::after {
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Ccircle cx='16' cy='16' r='16' fill='%2358CC02'/%3E%3Cpath d='m13 10 6 6-6 6' fill='none' stroke='white' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 32px 32px no-repeat;
    content: "";
}

.home-page .textbook-card.open:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(88, 204, 2, 0.1);
}

.home-page .textbook-card.coming {
    opacity: 1;
}

.home-page .textbook-card.coming strong {
    color: #9ca3af;
    font-weight: 700;
}

.textbook-units-page {
    display: grid;
    gap: 22px;
}

.textbook-title-card {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 18px;
    padding: 18px;
    border: 1px solid #d9f7c7;
    border-radius: 8px;
    background: #f4ffe9;
}

.textbook-title-card img {
    width: 88px;
    height: 88px;
    object-fit: contain;
}

.textbook-title-card span {
    color: #58a700;
    font-weight: 900;
}

.textbook-title-card h1 {
    margin: 4px 0 8px;
}

.textbook-title-card p {
    margin: 0;
    color: #4b5563;
    font-weight: 800;
    line-height: 1.5;
}

.textbook-unit-map {
    margin-top: 0;
}

.textbook-empty-units {
    display: grid;
    gap: 6px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    background: #ffffff;
    color: #6b7280;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.textbook-empty-units strong {
    color: #1f2937;
    font-size: 20px;
    font-weight: 900;
}

.textbook-import-page {
    display: grid;
    gap: 22px;
}

.textbook-import-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 18px;
    border: 1px solid #d9f7c7;
    border-radius: 12px;
    background: #f4ffe9;
}

.textbook-import-header span {
    color: #58a700;
    font-weight: 900;
}

.textbook-import-header h1 {
    margin: 4px 0 8px;
}

.textbook-import-header p,
.textbook-import-header strong {
    margin: 0;
    color: #4b5563;
    font-weight: 800;
    line-height: 1.5;
}

.textbook-import-summary {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.textbook-import-summary div,
.textbook-unit-list-card {
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    background: #ffffff;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.05);
}

.textbook-import-summary span,
.textbook-unit-list-card span {
    display: block;
    color: #6b7280;
    font-weight: 800;
}

.textbook-import-summary strong {
    display: block;
    margin-top: 6px;
    color: #1f2937;
    font-size: 28px;
    font-weight: 900;
}

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

.textbook-unit-list h2 {
    margin: 0;
}

.textbook-unit-list-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.textbook-unit-list-card {
    display: grid;
    gap: 6px;
}

.textbook-unit-list-card strong {
    color: #1f2937;
    font-size: 18px;
}

.form,
.answer-form {
    display: grid;
    gap: 16px;
}

.batch-import-card {
    display: grid;
    gap: 16px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.batch-import-heading {
    display: grid;
    gap: 6px;
}

.batch-import-heading h2 {
    margin: 0;
    color: #1f2937;
    font-size: 22px;
}

.batch-import-subtitle,
.batch-import-help {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
}

.batch-import-subtitle {
    margin-bottom: 18px;
}

.batch-import-result {
    display: grid;
    gap: 4px;
    padding: 14px 16px;
    border: 1px solid #dcefd6;
    border-radius: 12px;
    background: #f7fcf5;
    color: #356d2b;
    font-size: 14px;
    line-height: 1.65;
}

.batch-import-result ul {
    margin: 2px 0 0;
    padding-left: 18px;
}

label {
    display: grid;
    gap: 8px;
    font-weight: 700;
}

input,
textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    padding: 12px 14px;
    font: inherit;
    background: #ffffff;
}

textarea {
    resize: vertical;
}

.message,
.empty {
    padding: 12px 14px;
    border-radius: 8px;
    background: #eef6ff;
    color: #1e40af;
}

.question {
    margin-bottom: 24px;
    padding: 24px;
    border-radius: 8px;
    background: #f9fafb;
    text-align: center;
}

.example {
    margin-bottom: 0;
    color: #4b5563;
}

.word-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.word-meta.centered {
    justify-content: center;
}

.word-meta span {
    padding: 4px 8px;
    border-radius: 8px;
    background: #eef6ff;
    color: #1e40af;
    font-size: 13px;
    font-weight: 700;
}

.learn-status {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
    padding: 12px 14px;
    border-radius: 8px;
    background: #f9fafb;
    color: #374151;
    font-weight: 700;
}

.result {
    display: grid;
    gap: 4px;
    margin-bottom: 18px;
    padding: 14px 16px;
    border-radius: 8px;
}

.result.correct {
    background: #ecfdf3;
    color: #15803d;
}

.result.wrong {
    background: #fef2f2;
    color: #b91c1c;
}

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

.word-item {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 18px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.word-item h2 {
    margin-bottom: 6px;
    font-size: 24px;
}

body.vault-page {
    background: #f6f8f6;
}

.vault-page .page {
    width: min(1440px, calc(100% - 40px));
    padding: 24px 0 48px;
}

.vault-shell {
    display: grid;
    grid-template-columns: 250px minmax(0, 1fr);
    align-items: start;
    gap: 24px;
}

.vault-sidebar {
    position: sticky;
    top: 24px;
    max-height: calc(100vh - 48px);
    overflow-y: auto;
    padding: 18px;
    border: 1px solid #e5ebe4;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: 0 8px 28px rgba(31, 41, 55, 0.06);
}

.vault-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 2px 4px 16px;
    border-bottom: 1px solid #edf1ed;
}

.vault-brand img {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.vault-brand div {
    display: grid;
    gap: 3px;
}

.vault-brand strong {
    color: #172033;
    font-size: 18px;
}

.vault-brand span {
    color: #7a8495;
    font-size: 11px;
    font-weight: 600;
}

.vault-nav {
    display: grid;
    gap: 4px;
    margin-top: 14px;
}

.vault-nav > a,
.vault-nav-static,
.vault-nav-group-link {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 40px;
    padding: 0 12px;
    border-radius: 12px;
    color: #4b5563;
    font-size: 14px;
    font-weight: 700;
}

.vault-nav > a > span,
.vault-nav-static > span,
.vault-nav-group-link > span {
    width: 18px;
    color: #69b93b;
    text-align: center;
}

.vault-nav > a:hover,
.vault-nav > a.is-active,
.vault-nav-group-link:hover,
.vault-nav-group-link.is-active {
    background: #eff8e9;
    color: #438d27;
}

.vault-nav-static {
    cursor: default;
}

.vault-nav-group {
    display: grid;
    gap: 2px;
}

.vault-nav-children {
    display: grid;
    gap: 1px;
    padding: 0 0 5px 40px;
}

.vault-nav-children a {
    min-height: 28px;
    color: #7a8495;
    font-size: 12px;
    font-weight: 600;
    line-height: 28px;
}

.vault-nav-children a:hover {
    color: #438d27;
}

.vault-main {
    min-width: 0;
}

.vault-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 20px;
    padding: 4px 2px;
}

.vault-page-header h1 {
    margin: 3px 0 6px;
    color: #172033;
    font-size: 36px;
}

.vault-page-header p {
    margin: 0;
    color: #6f798a;
    font-size: 15px;
    font-weight: 600;
}

.vault-eyebrow {
    color: #56a932;
    font-size: 13px;
    font-weight: 800;
}

.vault-home-link {
    flex: 0 0 auto;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid #d8e9cf;
    border-radius: 999px;
    background: #f4faef;
    color: #438d27;
    font-size: 13px;
    font-weight: 800;
    line-height: 36px;
}

.vault-content-card,
.vault-import-card {
    border: 1px solid #e7ece7;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.06);
}

.vault-content-card {
    padding: 24px;
}

.vault-filter-card {
    display: grid;
    gap: 16px;
    margin-bottom: 16px;
    padding: 16px;
    border: 1px solid #e2eee0;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 30px rgba(31, 41, 55, 0.05);
}

.vault-filter-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    min-width: 0;
}

.vault-filter-primary {
    padding: 0 1px;
}

.vault-preschool-row {
    padding: 14px 16px;
    border: 1px solid #edf5e9;
    border-radius: 15px;
    background: linear-gradient(115deg, #f7fcf4 0%, #fbfdf8 100%);
}

.vault-filter-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 76px;
    min-height: 42px;
    padding: 0 18px;
    border: 1px solid #e3e9e2;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(31, 41, 55, 0.035);
    color: #4d596b;
    font-size: 14px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
}

.vault-filter-button:hover,
.vault-filter-button.is-active {
    border-color: #60bd39;
    background: #55b52d;
    box-shadow: 0 5px 12px rgba(75, 165, 45, 0.18);
    color: #ffffff;
}

.vault-filter-subpanel {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid #edf5e9;
    border-radius: 15px;
    background: linear-gradient(115deg, #f7fcf4 0%, #fbfdf8 100%);
}

.vault-filter-button--sub {
    min-width: 0;
    min-height: 38px;
    padding: 0 16px;
    border-radius: 9px;
    font-size: 13px;
}

.vault-filter-button--sub.is-active {
    border-color: #8cce77;
    background: #ffffff;
    box-shadow: inset 0 0 0 1px #8cce77;
    color: #38a131;
}

.vault-filter-lower-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 16px;
    align-items: center;
}

.vault-semester-row,
.vault-unit-row {
    flex-wrap: nowrap;
}

.vault-unit-row {
    justify-content: flex-end;
}

.vault-unit-more {
    position: relative;
}

.vault-unit-more summary {
    list-style: none;
    cursor: pointer;
}

.vault-unit-more summary::-webkit-details-marker {
    display: none;
}

.vault-unit-more summary span {
    margin-left: 4px;
    font-size: 17px;
}

.vault-unit-more-menu {
    position: absolute;
    z-index: 5;
    top: calc(100% + 7px);
    right: 0;
    display: grid;
    min-width: 118px;
    padding: 7px;
    border: 1px solid #dcebd7;
    border-radius: 11px;
    background: #ffffff;
    box-shadow: 0 12px 26px rgba(31, 41, 55, 0.13);
}

.vault-unit-more-menu a {
    padding: 9px 11px;
    border-radius: 7px;
    color: #4d596b;
    font-size: 13px;
    font-weight: 750;
}

.vault-unit-more-menu a:hover,
.vault-unit-more-menu a.is-active {
    background: #eff8e9;
    color: #3d9b2b;
}

.vault-search-form {
    display: grid;
    grid-template-columns: minmax(250px, 1fr) auto auto auto minmax(250px, auto);
    gap: 10px;
    align-items: center;
    padding-top: 4px;
}

.vault-search-field {
    position: relative;
    display: block;
}

.vault-search-field::before {
    content: "⌕";
    position: absolute;
    top: 50%;
    left: 17px;
    color: #9aa7b4;
    font-size: 27px;
    line-height: 1;
    transform: translateY(-54%);
}

.vault-search-field input {
    display: block;
    width: 100%;
    min-height: 52px;
    padding: 0 16px 0 50px;
    border: 1px solid #bdddaf;
    border-radius: 11px;
    outline: none;
    background: #ffffff;
    color: #29364a;
    font: inherit;
    font-weight: 650;
}

.vault-search-field input:focus {
    border-color: #63b946;
    box-shadow: 0 0 0 3px rgba(83, 181, 45, 0.12);
}

.vault-search-submit,
.vault-clear-search {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    border: 0;
    border-radius: 11px;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.vault-search-submit {
    background: #55b52d;
    box-shadow: 0 5px 12px rgba(75, 165, 45, 0.2);
    color: #ffffff;
}

.vault-search-submit:hover {
    background: #479e27;
}

.vault-clear-search {
    border: 1px solid #e3e9e2;
    background: #ffffff;
    color: #4f5b6c;
}

.vault-clear-search:hover {
    border-color: #bdddaf;
    color: #3d9b2b;
}

.vault-sort-control {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    gap: 4px;
    padding: 0 10px 0 14px;
    border: 1px solid #e3e9e2;
    border-radius: 11px;
    background: #ffffff;
    color: #576273;
    font-size: 13px;
    font-weight: 750;
    white-space: nowrap;
}

.vault-sort-control select {
    border: 0;
    outline: 0;
    background: transparent;
    color: #3d9b2b;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.vault-result-count {
    margin: 0 0 0 10px;
    color: #6a7483;
    font-size: 13px;
    font-weight: 650;
    line-height: 1.45;
    white-space: nowrap;
}

.vault-result-count strong {
    color: #41a62e;
    font-size: 15px;
    font-weight: 900;
}

.vault-word-meta {
    gap: 7px;
}

.vault-word-meta .vault-ipa,
.vault-source-label {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 1px 7px;
    border-radius: 6px;
    color: #0e65c4;
    font-size: 12px;
    font-weight: 800;
}

.vault-word-meta .vault-ipa {
    background: #edf5ff;
}

.vault-source-label {
    background: #e9f2ff;
}

.vault-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.vault-section-heading h2 {
    margin: 0 0 5px;
    color: #172033;
    font-size: 22px;
}

.vault-section-heading p {
    margin: 0;
    color: #7a8495;
    font-size: 13px;
}

.vault-count {
    flex: 0 0 auto;
    padding: 7px 12px;
    border-radius: 999px;
    background: #eff8e9;
    color: #4d9d2f;
    font-size: 12px;
    font-weight: 800;
}

.vault-word-list {
    gap: 12px;
}

.vault-word-item {
    padding: 18px 20px;
    border-color: #e8ede8;
    border-radius: 16px;
    box-shadow: 0 3px 12px rgba(31, 41, 55, 0.035);
}

.vault-word-item:hover {
    border-color: #cae6bd;
    background: #fbfef9;
}

.vault-pagination {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px solid #eef2ee;
}

.vault-pagination-pages {
    display: flex;
    align-items: center;
    gap: 8px;
}

.vault-page-button {
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e9e1;
    border-radius: 9px;
    background: #ffffff;
    color: #4e5a6a;
    font-size: 14px;
    font-weight: 800;
}

.vault-page-button:hover {
    border-color: #83c96b;
    color: #39952b;
}

.vault-page-button.is-active {
    border-color: #55b52d;
    background: #55b52d;
    box-shadow: 0 4px 10px rgba(75, 165, 45, 0.18);
    color: #ffffff;
}

.vault-page-button.is-disabled {
    color: #bcc5be;
    cursor: not-allowed;
}

.vault-page-ellipsis {
    min-width: 25px;
    color: #7a8495;
    text-align: center;
    font-weight: 900;
}

.vault-page-size-form label {
    display: inline-flex;
    min-height: 42px;
    align-items: center;
    gap: 4px;
    padding: 0 10px 0 14px;
    border: 1px solid #e2e9e1;
    border-radius: 10px;
    background: #ffffff;
    color: #576273;
    font-size: 13px;
    font-weight: 750;
}

.vault-page-size-form select {
    border: 0;
    outline: 0;
    background: transparent;
    color: #4f5a69;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.vault-word-item .small-button {
    border-radius: 10px;
}

.vault-word-item .small-button.is-source-locked {
    opacity: 0.55;
    cursor: not-allowed;
}

.vault-empty-state {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 64px 24px;
    border: 1px dashed #cfe2c7;
    border-radius: 16px;
    background: #f8fcf6;
    text-align: center;
}

.vault-empty-state strong {
    color: #172033;
    font-size: 20px;
}

.vault-empty-state p {
    max-width: 480px;
    margin: 0 0 8px;
    color: #7a8495;
    line-height: 1.7;
}

.vault-message {
    margin: 0 0 16px;
    border: 1px solid #d7ebcd;
    background: #f4faef;
    color: #438d27;
}

.vault-import-card {
    display: grid;
    gap: 22px;
    padding: 28px;
}

.vault-import-title {
    display: flex;
    align-items: center;
    gap: 14px;
}

.vault-import-icon {
    display: grid;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 50%;
    background: #edf8e8;
    color: #4da52b;
    font-size: 25px;
    font-weight: 900;
}

.vault-import-title h2 {
    margin: 0 0 4px;
    color: #172033;
    font-size: 25px;
}

.vault-import-title p {
    margin: 0;
    color: #7a8495;
    font-size: 14px;
}

.vault-import-form {
    display: grid;
    gap: 20px;
}

.vault-import-step {
    display: grid;
    gap: 14px;
    padding: 20px;
    border: 1px solid #e6ebe6;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 4px 14px rgba(31, 41, 55, 0.035);
}

.vault-import-step h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    color: #1f2937;
    font-size: 18px;
}

.vault-import-step h3 > span {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 50%;
    background: #62b63c;
    color: #ffffff;
    font-size: 14px;
}

.vault-upload-zone {
    display: grid;
    justify-items: center;
    gap: 8px;
    min-height: 176px;
    padding: 28px;
    border: 2px dashed #bcd8ae;
    border-radius: 16px;
    background: #f9fcf7;
    text-align: center;
}

.vault-upload-symbol {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: #eaf6e4;
    color: #4da52b;
    font-size: 30px;
}

.vault-upload-zone strong {
    color: #438d27;
    font-size: 16px;
}

.vault-upload-zone small {
    color: #7a8495;
    font-size: 12px;
}

.vault-upload-zone input[type="file"] {
    width: min(420px, 100%);
    padding: 8px;
    border: 0;
    background: transparent;
    color: #687385;
    font-size: 13px;
}

.vault-upload-zone input[type="file"]::file-selector-button {
    margin-right: 10px;
    padding: 9px 15px;
    border: 0;
    border-radius: 999px;
    background: #58aa32;
    color: #ffffff;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
}

.vault-import-step textarea {
    min-height: 220px;
    border-color: #dfe5df;
    border-radius: 14px;
    background: #fbfcfb;
    line-height: 1.65;
}

.vault-format-guide {
    display: grid;
    gap: 15px;
    padding: 18px;
    border: 1px solid #dcebd5;
    border-radius: 16px;
    background: linear-gradient(135deg, #f6fbf2, #f4f9fc);
}

.vault-format-title {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.vault-format-title > span {
    color: #e0aa21;
    font-size: 20px;
}

.vault-format-title strong {
    color: #438d27;
}

.vault-format-title p {
    margin: 4px 0 0;
    color: #687385;
    font-size: 13px;
}

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

.vault-format-grid > div {
    display: grid;
    gap: 8px;
    padding: 14px;
    border: 1px solid rgba(209, 224, 206, 0.85);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.78);
}

.vault-format-grid strong {
    color: #374151;
    font-size: 12px;
}

.vault-format-grid code {
    color: #596477;
    font: 13px/1.7 Arial, "Microsoft YaHei", sans-serif;
}

.vault-import-submit {
    width: min(520px, 100%);
    min-height: 52px;
    justify-self: center;
    border-radius: 14px;
    background: #58aa32;
    font-size: 17px;
    font-weight: 800;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.scene-shell {
    gap: 24px;
}

.scene-main {
    display: grid;
    gap: 18px;
}

.scene-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 44px;
    gap: 20px;
}

.scene-page-header > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scene-page-header h1 {
    margin: 0;
    color: #172033;
    font-size: 25px;
}

.scene-leaf {
    color: #6ab83f;
    font-size: 18px;
    transform: rotate(45deg);
}

.scene-hero {
    position: relative;
    min-height: 300px;
    overflow: hidden;
    border: 1px solid rgba(212, 227, 208, 0.9);
    border-radius: 20px;
    background: url("mascot/scene-english-hero-v273.png") center / cover no-repeat;
    box-shadow: 0 8px 28px rgba(31, 74, 42, 0.08);
}

.scene-hero::before {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.72) 49%, rgba(255, 255, 255, 0.16) 78%);
    content: "";
}

.scene-hero-copy {
    position: relative;
    z-index: 1;
    display: grid;
    justify-items: center;
    width: min(570px, 58%);
    margin-left: 28%;
    padding: 76px 24px 30px;
    text-align: center;
}

.scene-hero-copy h2 {
    margin: 0;
    color: #172033;
    font-size: clamp(27px, 3vw, 40px);
    line-height: 1.2;
}

.scene-hero-copy p {
    margin: 10px 0 26px;
    color: #536176;
    font-size: 15px;
    font-weight: 700;
}

.scene-search {
    display: flex;
    align-items: center;
    width: min(430px, 100%);
    min-height: 50px;
    padding: 0 8px 0 18px;
    border: 1px solid rgba(196, 215, 191, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 6px 20px rgba(35, 72, 43, 0.12);
}

.scene-search input {
    min-width: 0;
    flex: 1;
    border: 0;
    outline: 0;
    background: transparent;
    color: #273247;
    font: 600 14px Arial, "Microsoft YaHei", sans-serif;
}

.scene-search input::placeholder {
    color: #939cab;
}

.scene-search-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 50%;
    background: #6eb93e;
    color: #ffffff;
    font-size: 22px;
    font-weight: 800;
}

.scene-directory {
    min-width: 0;
}

.scene-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 0 0 16px;
}

.scene-filter {
    min-height: 40px;
    padding: 0 18px;
    border: 1px solid #e6ebe5;
    border-radius: 999px;
    background: #ffffff;
    color: #5e6878;
    font: 700 13px Arial, "Microsoft YaHei", sans-serif;
    cursor: pointer;
}

.scene-filter:hover,
.scene-filter.is-active {
    border-color: #72bb45;
    background: #72bb45;
    color: #ffffff;
}

.scene-directory > h2 {
    margin: 0 0 14px;
    color: #263145;
    font-size: 18px;
}

.scene-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.scene-card {
    --scene-accent: #68b83d;
    --scene-surface: #f1faed;
    --scene-icon-surface: #e0f3d7;
    display: grid;
    grid-template-columns: 52px minmax(0, 1fr) 20px;
    align-items: center;
    min-height: 108px;
    gap: 12px;
    padding: 15px;
    border: 1px solid color-mix(in srgb, var(--scene-accent) 20%, #ffffff);
    border-radius: 16px;
    background: var(--scene-surface);
    box-shadow: 0 4px 14px rgba(30, 51, 38, 0.045);
    color: #253045;
}

.scene-card:hover {
    border-color: color-mix(in srgb, var(--scene-accent) 42%, #ffffff);
    box-shadow: 0 7px 18px rgba(30, 51, 38, 0.075);
}

.scene-card[hidden] {
    display: none;
}

.scene-card-icon,
.scene-detail-icon {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 50%;
    background: var(--scene-icon-surface);
    color: var(--scene-accent);
    font-size: 24px;
    font-style: normal;
    font-weight: 800;
}

.scene-card-copy {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.scene-card-copy strong {
    color: #263145;
    font-size: 15px;
}

.scene-card-copy small {
    overflow: hidden;
    color: #788395;
    font-size: 11px;
    font-weight: 600;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.scene-card-copy em {
    color: #8b95a4;
    font-size: 11px;
    font-style: normal;
    font-weight: 700;
}

.scene-card-arrow {
    color: #687385;
    font-size: 25px;
}

.scene-tone-pink {
    --scene-accent: #e76c96;
    --scene-surface: #fff4f7;
    --scene-icon-surface: #fde2eb;
}

.scene-tone-orange,
.scene-tone-red {
    --scene-accent: #ef7d43;
    --scene-surface: #fff7f1;
    --scene-icon-surface: #ffe7d9;
}

.scene-tone-blue {
    --scene-accent: #4f91dd;
    --scene-surface: #f2f7ff;
    --scene-icon-surface: #deebff;
}

.scene-tone-cyan {
    --scene-accent: #38a7a4;
    --scene-surface: #effaf9;
    --scene-icon-surface: #d8f1ef;
}

.scene-tone-purple {
    --scene-accent: #8b6fe0;
    --scene-surface: #f7f3ff;
    --scene-icon-surface: #e9e0ff;
}

.scene-tone-yellow {
    --scene-accent: #d79b27;
    --scene-surface: #fff9ed;
    --scene-icon-surface: #ffedc8;
}

.scene-empty {
    margin: 20px 0 0;
    padding: 28px;
    border: 1px dashed #d9e2d6;
    border-radius: 16px;
    background: #ffffff;
    color: #7a8495;
    text-align: center;
}

.scene-detail-card {
    --scene-accent: #68b83d;
    --scene-surface: #f1faed;
    --scene-icon-surface: #e0f3d7;
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 28px;
    border: 1px solid color-mix(in srgb, var(--scene-accent) 22%, #ffffff);
    border-radius: 20px;
    background: var(--scene-surface);
}

.scene-detail-card > div {
    display: grid;
    gap: 6px;
}

.scene-detail-card span,
.scene-detail-card p {
    margin: 0;
    color: #748093;
    font-weight: 600;
}

.scene-detail-card h2 {
    margin: 0;
    color: #263145;
    font-size: 30px;
}

.scene-detail-card strong {
    color: var(--scene-accent);
}

.scene-detail-notice {
    display: grid;
    justify-items: center;
    gap: 10px;
    padding: 48px 24px;
    border: 1px solid #e4eae2;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 7px 22px rgba(31, 41, 55, 0.05);
    text-align: center;
}

.scene-detail-notice h2,
.scene-detail-notice p {
    margin: 0;
}

.scene-detail-notice p {
    color: #758093;
}

.scene-detail-notice > div {
    display: flex;
    gap: 10px;
    margin-top: 12px;
}

.scene-back-link {
    color: #4d9b2f;
    font-size: 14px;
    font-weight: 800;
}

.scene-back-link:hover {
    color: #34751f;
}

.scene-word-section {
    min-width: 0;
}

.scene-word-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.scene-word-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-width: 0;
    gap: 16px;
    padding: 20px;
    border: 1px solid #e5ebe4;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 5px 18px rgba(31, 41, 55, 0.045);
}

.scene-word-card > div {
    display: grid;
    min-width: 0;
    gap: 5px;
}

.scene-word-card h3,
.scene-word-card p,
.scene-word-card small {
    margin: 0;
}

.scene-word-card h3 {
    color: #202b3e;
    font-size: 21px;
}

.scene-word-card span,
.scene-word-card small {
    color: #7a8495;
    font-size: 12px;
    font-weight: 600;
}

.scene-word-card p {
    color: #3f4a5d;
    font-size: 15px;
    font-weight: 700;
}

.scene-word-card > .scene-word-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    flex: 0 0 auto;
    gap: 8px;
}

.scene-word-actions form {
    margin: 0;
}

.scene-word-edit,
.scene-word-delete {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 11px;
    border: 1px solid #dfe7dc;
    border-radius: 9px;
    background: #f8fbf6;
    color: #4e8f35;
    font: inherit;
    font-size: 12px;
    font-weight: 800;
    cursor: pointer;
}

.scene-word-delete {
    border-color: #f0dddd;
    background: #fff8f7;
    color: #bd6258;
}

.scene-import-success {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    padding: 14px 16px;
    border: 1px solid #d7ebcc;
    border-radius: 14px;
    background: #f5fbf1;
    color: #3f8528;
}

.scene-import-success span {
    color: #6f7b6a;
    font-size: 13px;
    font-weight: 700;
}

.scene-detail-empty {
    display: grid;
    justify-items: center;
    gap: 8px;
    padding: 64px 24px;
    border: 1px dashed #d8e2d5;
    border-radius: 20px;
    background: #ffffff;
    text-align: center;
}

.scene-detail-empty h2,
.scene-detail-empty p {
    margin: 0;
}

.scene-detail-empty h2 {
    color: #263145;
    font-size: 24px;
}

.scene-detail-empty p {
    color: #7a8495;
}

.scene-page-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.scene-add-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 0 18px;
    border-radius: 12px;
    background: #58aa32;
    box-shadow: 0 4px 12px rgba(69, 143, 39, 0.16);
    color: #ffffff;
    font-size: 14px;
    font-weight: 800;
}

.scene-add-button:hover {
    background: #4c9c2a;
}

.scene-import-header h1 {
    font-size: 32px;
}

.scene-upload-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.85fr);
    gap: 16px;
}

.scene-file-requirements {
    display: grid;
    align-content: center;
    gap: 10px;
    padding: 24px;
    border: 1px solid #dcebd5;
    border-radius: 16px;
    background: #f7fbf4;
}

.scene-file-requirements strong {
    margin-bottom: 2px;
    color: #438d27;
    font-size: 17px;
}

.scene-file-requirements span {
    color: #687385;
    font-size: 13px;
    font-weight: 600;
}

.scene-import-result {
    display: grid;
    gap: 6px;
    margin: 0 0 16px;
    padding: 14px 16px;
    border: 1px solid #f0ddca;
    border-radius: 14px;
    background: #fffaf4;
    color: #8a6548;
    font-size: 13px;
}

.scene-import-result strong:not(:first-child) {
    margin-top: 6px;
}

.scene-edit-card .form {
    margin: 0;
}

@media (max-width: 960px) {
    .vault-page .page {
        width: min(900px, calc(100% - 32px));
    }

    .vault-shell {
        grid-template-columns: 1fr;
    }

    .vault-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
    }

    .vault-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vault-nav-group {
        grid-column: 1 / -1;
    }

    .vault-nav-children {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .vault-filter-lower-row,
    .vault-search-form {
        grid-template-columns: 1fr;
    }

    .vault-unit-row {
        justify-content: flex-start;
    }

    .vault-semester-row,
    .vault-unit-row {
        flex-wrap: wrap;
    }

    .vault-result-count {
        margin-left: 0;
    }

    .scene-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .vault-page .page {
        width: min(100% - 24px, 620px);
        padding-top: 64px;
    }

    .vault-sidebar,
    .vault-content-card,
    .vault-import-card {
        border-radius: 16px;
    }

    .vault-nav {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .vault-nav-children {
        display: none;
    }

    .scene-page-header {
        align-items: flex-start;
        flex-direction: column;
    }

    .scene-hero {
        min-height: 280px;
        background-position: 60% center;
    }

    .scene-hero::before {
        background: rgba(255, 255, 255, 0.58);
    }

    .scene-hero-copy {
        width: 100%;
        margin: 0;
        padding: 54px 18px 26px;
    }

    .scene-hero-copy h2 {
        font-size: 27px;
    }

    .scene-hero-copy p {
        max-width: 280px;
        font-size: 13px;
    }

    .scene-toolbar {
        flex-wrap: nowrap;
        overflow-x: auto;
        padding-bottom: 4px;
    }

    .scene-filter {
        flex: 0 0 auto;
    }

    .scene-grid {
        grid-template-columns: 1fr;
    }

    .scene-card {
        min-height: 96px;
    }

    .scene-detail-card {
        align-items: flex-start;
        padding: 22px;
    }

    .scene-detail-notice > div {
        width: 100%;
        flex-direction: column;
    }

    .scene-page-actions {
        width: 100%;
        flex-wrap: wrap;
    }

    .scene-upload-layout {
        grid-template-columns: 1fr;
    }

    .scene-word-list {
        grid-template-columns: 1fr;
    }

    .vault-page-header,
    .vault-section-heading {
        align-items: flex-start;
        flex-direction: column;
    }

    .vault-page-header h1 {
        font-size: 30px;
    }

    .vault-content-card,
    .vault-import-card {
        padding: 18px;
    }

    .vault-filter-card {
        padding: 14px;
        border-radius: 16px;
    }

    .vault-filter-button {
        min-width: 68px;
        padding: 0 13px;
    }

    .vault-filter-lower-row {
        gap: 12px;
    }

    .vault-pagination {
        align-items: flex-start;
        flex-direction: column;
    }

    .vault-pagination-pages {
        flex-wrap: wrap;
    }

    .vault-format-grid {
        grid-template-columns: 1fr;
    }

    .vault-upload-zone {
        min-height: 150px;
        padding: 20px 14px;
    }

    .vault-word-item {
        align-items: stretch;
        flex-direction: column;
    }

    .vault-word-item .item-actions {
        flex-direction: row;
        flex-wrap: wrap;
    }
}

.meaning {
    margin-bottom: 8px;
    font-weight: 700;
}

.item-actions {
    display: flex;
    gap: 8px;
    flex-shrink: 0;
}

.item-actions form {
    margin: 0;
}

.training-count {
    align-self: center;
    color: #6b7280;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.wrong-training-panel {
    display: grid;
    gap: 22px;
}

.wrong-training-topbar {
    justify-content: space-between;
    gap: 20px;
}

.wrong-training-topbar h1 {
    margin: 0;
}

.wrong-training-eyebrow,
.wrong-training-question-title {
    margin-bottom: 8px;
    color: #58a700;
    font-size: 15px;
    font-weight: 900;
}

.wrong-training-progress-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 0;
    border-top: 1px solid #e5e7eb;
    border-bottom: 1px solid #e5e7eb;
}

.wrong-training-target {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 8px 12px;
    min-width: 0;
}

.wrong-training-target span:first-child {
    color: #1f2937;
    font-size: 22px;
    font-weight: 900;
}

.wrong-training-target span:not(:first-child) {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

#wrong-training-progress {
    flex: 0 0 auto;
    color: #374151;
    font-size: 18px;
}

.wrong-training-content {
    min-height: 360px;
}

.wrong-training-question,
.wrong-training-complete {
    display: grid;
    justify-items: center;
    gap: 18px;
    text-align: center;
}

.wrong-training-question h2,
.wrong-training-complete h2 {
    margin: 0;
    font-size: 40px;
}

.wrong-training-prompt {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-height: 86px;
}

.wrong-training-listen,
.wrong-training-instruction {
    margin: 0;
    color: #6b7280;
    font-weight: 700;
}

.wrong-training-sound {
    width: 64px;
    height: 64px;
    min-width: 64px;
    min-height: 64px;
}

.wrong-training-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    width: 100%;
}

.wrong-training-option {
    min-height: 58px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 0 #d1d5db;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.wrong-training-option:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 #d1d5db;
}

.wrong-training-option:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 2px 0 #d1d5db;
}

.wrong-training-option.is-selected {
    border-color: #60a5fa;
    background: #eff6ff;
    color: #1d4ed8;
}

.wrong-training-option.is-correct,
.wrong-training-spelling input.is-correct {
    border-color: #58cc02;
    background: #ecfdf3;
    color: #15803d;
    box-shadow: 0 4px 0 #58cc02;
}

.wrong-training-option.is-wrong,
.wrong-training-spelling input.is-wrong {
    border-color: #ef4444;
    background: #fff5f5;
    color: #b91c1c;
    box-shadow: 0 4px 0 #ef4444;
}

.wrong-training-option:disabled {
    cursor: default;
}

.wrong-training-match-board {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
}

.wrong-training-match-column {
    display: grid;
    gap: 10px;
}

.wrong-training-feedback {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 8px 16px;
    width: 100%;
    margin-top: 18px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    text-align: left;
}

.wrong-training-feedback strong {
    font-size: 17px;
}

.wrong-training-feedback span {
    grid-column: 1;
    font-weight: 700;
}

.wrong-training-feedback .button {
    grid-row: 1 / span 2;
    grid-column: 2;
}

.wrong-training-feedback.correct {
    border-color: #bbf7d0;
    background: #f0fdf4;
    color: #15803d;
}

.wrong-training-feedback.wrong {
    border-color: #fecaca;
    background: #fff7f7;
    color: #b91c1c;
}

.wrong-training-spelling {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 12px;
    width: min(520px, 100%);
}

.wrong-training-spelling input {
    min-width: 0;
    min-height: 48px;
    padding: 0 14px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    color: #1f2937;
    font: inherit;
    font-size: 18px;
    font-weight: 700;
}

.wrong-training-complete {
    min-height: 300px;
    align-content: center;
}

.wrong-training-complete p {
    margin: 0;
    color: #4b5563;
    font-size: 18px;
    font-weight: 700;
}

.wrong-training-count-result {
    color: #15803d !important;
}

.wrong-training-error {
    margin: 0;
    color: #b91c1c;
    font-weight: 800;
}

.small-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 36px;
    padding: 0 12px;
    border: 0;
    border-radius: 8px;
    background: #e5e7eb;
    color: #111827;
    font: inherit;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.14s ease;
}

.small-button:hover,
.speak-button:hover {
    transform: translateY(-1px);
}

.small-button:active,
.speak-button:active {
    transform: scale(0.96);
}

.small-button.danger {
    background: #fee2e2;
    color: #b91c1c;
}

.voice-preview-link {
    min-height: 38px;
    padding: 0 14px;
    font-size: 14px;
}

.voice-preview-page {
    display: grid;
    gap: 20px;
}

.voice-preview-subtitle {
    margin: 6px 0 0;
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

.voice-preview-sample {
    padding: 18px 20px;
    border: 1px solid #d9ead1;
    border-radius: 8px;
    background: #f8fff3;
}

.voice-preview-sample h2 {
    margin: 0 0 12px;
    color: #4c9f19;
    font-size: 20px;
}

.voice-preview-sample p {
    margin: 6px 0;
    color: #1f2937;
    font-size: 17px;
    font-weight: 700;
}

.voice-preview-status {
    color: #4b5563;
    font-weight: 700;
}

.voice-preview-list {
    display: grid;
    gap: 10px;
}

.voice-preview-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
}

.voice-preview-details {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 12px;
    min-width: 0;
}

.voice-preview-details strong {
    overflow-wrap: anywhere;
    color: #1f2937;
    font-size: 17px;
}

.voice-preview-details span {
    color: #6b7280;
    font-weight: 700;
}

.voice-preview-priority {
    padding: 3px 8px;
    border-radius: 999px;
    background: #eaf8df;
    color: #4c9f19;
    font-weight: 800;
}

.voice-preview-actions {
    display: flex;
    gap: 8px;
}

.speak-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    margin-left: 8px;
    border: 0;
    border-radius: 50%;
    background: transparent url("/static/mascot/audio-blank-play.png") center / contain no-repeat;
    font-size: 0;
    cursor: pointer;
    transition: transform 0.14s ease, box-shadow 0.2s ease;
}

.word-inline-speak {
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    cursor: pointer;
}

.word-inline-speak:hover {
    color: #58a700;
}

.speak-button.speaking,
.round-sound.speaking {
    animation: sound-pulse 0.7s ease;
}

.lesson-body {
    background: #ffffff;
}

.lesson-body .page {
    width: min(1240px, calc(100% - 48px));
    padding-top: 18px;
}

.lesson-body .sound-toggle {
    top: 112px;
}

.lesson-shell {
    min-height: calc(100vh - 56px);
}

.lesson-topbar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    min-height: 96px;
    margin-bottom: 0;
    padding: 18px 0;
    position: relative;
    z-index: 5;
    background: #ffffff;
}

.lesson-nav-left {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.lesson-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    color: #6b7280;
    font-size: 34px;
    font-weight: 700;
}

.lesson-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #e5e7eb;
    border-radius: 999px;
    background: #ffffff;
    color: #4b5563;
    font-size: 14px;
    font-weight: 900;
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    white-space: nowrap;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.lesson-home-link:hover {
    border-color: #58cc02;
    color: #58a700;
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(88, 204, 2, 0.16);
}

.lesson-home-link:active {
    transform: scale(0.97);
}

.lesson-unit-return-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.78);
    box-shadow: 0 6px 14px rgba(15, 23, 42, 0.08);
    color: #4c9f19;
    font-size: 14px;
    font-weight: 900;
    text-decoration: none;
    white-space: nowrap;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease;
}

.lesson-unit-return-link:hover {
    border-color: #8fd45d;
    box-shadow: 0 8px 18px rgba(88, 204, 2, 0.16);
    transform: translateY(-1px);
}

.lesson-unit-return-link:active {
    transform: scale(0.97);
}

.lesson-progress {
    height: 18px;
    overflow: hidden;
    border-radius: 999px;
    background: #e5e7eb;
}

#lesson-progress-bar {
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: #58cc02;
    transition: width 0.3s ease;
}

.lesson-hearts {
    min-width: 154px;
    color: #ef4444;
    font-size: 22px;
    letter-spacing: 2px;
    text-align: right;
}

.lesson-status-right {
    display: grid;
    justify-items: end;
    gap: 6px;
    color: #6b7280;
    font-weight: 900;
    white-space: nowrap;
}

.lesson-meta-line {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    min-height: 24px;
    margin-bottom: 0;
    color: #6b7280;
    font-weight: 800;
}

.lesson-workspace {
    display: grid;
    grid-template-columns: minmax(300px, 0.72fr) minmax(0, 1.55fr);
    align-items: start;
    gap: clamp(28px, 5vw, 72px);
    margin-top: 24px;
}

.lesson-mascot-rail {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
    padding-top: 48px;
}

.lesson-content {
    min-height: 560px;
    display: grid;
    align-content: center;
    gap: 20px;
    padding: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
    margin-top: 0;
    position: relative;
    transform: none;
}

.lesson-previous-screen {
    position: absolute;
    top: 16px;
    left: 16px;
    min-height: 38px;
    padding: 0 12px;
    border: 1px solid #d9ead1;
    border-radius: 999px;
    background: #ffffff;
    color: #4c9f19;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    cursor: pointer;
}

.lesson-previous-screen:hover {
    border-color: #58cc02;
    background: #f4ffe9;
}

.lesson-review-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    color: #1f2937;
    font-size: 20px;
    font-weight: 900;
}

.lesson-review-copy {
    width: 100%;
    color: #6b7280;
    font-size: 14px;
    font-weight: 800;
}

.lesson-review-snapshot {
    display: grid;
    gap: 20px;
    width: 100%;
}

.lesson-review-answer {
    display: grid;
    gap: 6px;
    padding: 14px 16px;
    border: 1px solid #d9ead1;
    border-radius: 8px;
    background: #f8fff3;
    color: #374151;
    font-weight: 800;
}

.lesson-review-answer p {
    margin: 0;
}

.lesson-review-answer strong {
    color: #4c9f19;
}

.lesson-review-snapshot .option.is-review-selected {
    border-color: #84d8ff;
    box-shadow: 0 4px 0 #84d8ff;
}

.study-card {
    display: grid;
    justify-items: center;
    gap: 22px;
    width: min(560px, 100%);
    margin: 0 auto;
    padding: 44px 28px;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
    text-align: center;
}

.study-word {
    margin-bottom: 0;
    color: #1f2937;
    font-size: clamp(48px, 11vw, 82px);
    line-height: 1;
}

.phonetic {
    display: block;
    color: #6b7280;
    font-size: clamp(18px, 4vw, 28px);
    font-weight: 800;
    line-height: 1.2;
}

.centered-text {
    text-align: center;
}

.english-option {
    display: grid;
    gap: 4px;
}

.english-option strong {
    font-size: 18px;
}

.english-option .phonetic {
    font-size: 14px;
}

.study-meaning {
    margin-bottom: 0;
    color: #374151;
    font-size: clamp(30px, 7vw, 48px);
}

.phonics-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 2px;
}

.sound-part {
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 999px;
    background: #eff6ff;
    font-size: clamp(18px, 4vw, 24px);
    font-weight: 900;
    cursor: pointer;
    box-shadow: 0 4px 0 rgba(15, 23, 42, 0.1);
    transition: transform 0.14s ease, box-shadow 0.14s ease, filter 0.14s ease;
}

.sound-part:hover {
    transform: translateY(-1px);
    filter: brightness(1.03);
}

.sound-part:active {
    transform: translateY(2px) scale(0.97);
    box-shadow: 0 2px 0 rgba(15, 23, 42, 0.1);
}

.sound-part.blue {
    background: #dbeafe;
    color: #1d4ed8;
}

.sound-part.green {
    background: #dcfce7;
    color: #15803d;
}

.sound-part.orange {
    background: #ffedd5;
    color: #ea580c;
}

.part-plus {
    color: #9ca3af;
    font-size: 20px;
    font-weight: 900;
}

.speak-word-title {
    border: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    cursor: pointer;
    transition: color 0.14s ease, transform 0.14s ease;
}

.speak-word-title:hover {
    color: #58a700;
    transform: translateY(-1px);
}

.streak-badge {
    justify-self: center;
    width: fit-content;
    margin: 0 auto 12px;
    padding: 7px 14px;
    border-radius: 999px;
    background: #fff7ed;
    color: #f97316;
    font-size: 16px;
    font-weight: 900;
    box-shadow: 0 8px 18px rgba(249, 115, 22, 0.16);
}

.lesson-title {
    text-align: center;
}

.lesson-title p {
    margin-bottom: 10px;
    color: #58a700;
    font-weight: 800;
}

.lesson-title h1 {
    font-size: 42px;
}

.audio-fill-title {
    display: grid;
    gap: 20px;
    width: min(940px, 100%);
    margin: 0 auto;
    text-align: left;
}

.audio-fill-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.audio-fill-title .audio-fill-heading p {
    margin: 0;
    color: #46a302;
    font-size: 32px;
    font-weight: 900;
}

.audio-fill-counter {
    flex: 0 0 auto;
    color: #374151;
    font-size: 24px;
    font-weight: 900;
}

.audio-fill-progress {
    display: flex;
    align-items: center;
    gap: 16px;
    width: min(760px, 100%);
    margin: 0 auto;
    padding: 3px 0;
}

.audio-fill-progress-track {
    position: relative;
    flex: 1 1 auto;
    height: 16px;
    overflow: hidden;
    border: 2px solid #d7ecd0;
    border-radius: 999px;
    background: #eef5eb;
    box-shadow: inset 0 2px 4px rgba(44, 106, 28, 0.10);
}

.audio-fill-progress-fill {
    display: block;
    height: 100%;
    min-width: 10px;
    border-radius: inherit;
    background: linear-gradient(90deg, #58cc02, #75df22);
    box-shadow: inset 0 -2px 0 rgba(47, 151, 8, 0.24);
    transition: width 180ms ease;
}

.audio-fill-stepper {
    position: relative;
    display: grid;
    grid-template-columns: repeat(var(--audio-fill-step-count, 10), minmax(0, 1fr));
    align-items: center;
    gap: 8px;
    max-width: 760px;
    padding: 4px 0;
}

.audio-fill-stepper::before {
    position: absolute;
    top: 50%;
    left: 5%;
    right: 5%;
    height: 3px;
    background: #dfe3e9;
    content: "";
    transform: translateY(-50%);
}

.audio-fill-step {
    position: relative;
    z-index: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    justify-self: center;
    width: 38px;
    height: 38px;
    border: 2px solid #dfe3e9;
    border-radius: 50%;
    background: #ffffff;
    color: #9ca3af;
    font-size: 17px;
    font-weight: 900;
}

.audio-fill-step.is-current {
    border-color: #58cc02;
    background: #58cc02;
    color: #ffffff;
    box-shadow: 0 4px 0 #46a302;
}

.audio-fill-prompt {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 28px;
    min-height: 190px;
    padding: 28px 38px;
    border: 2px solid #dff1cf;
    border-radius: 20px;
    background: #fbfff7;
    box-shadow: inset 0 0 0 1px rgba(88, 204, 2, 0.04);
}

.audio-fill-prompt.has-translation-bubble > .audio-fill-translation-bubble {
    position: absolute;
    top: 0;
    right: 2px;
    z-index: 2;
    margin: 0;
    transform: none;
}

.audio-fill-translation-bubble {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 230px;
    height: 108px;
    padding: 0;
    background: transparent url("/static/mascot/listening_translation_bubble_v2.png") center 54% / cover no-repeat;
    pointer-events: none;
}

.audio-fill-translation-safe-area {
    position: absolute;
    top: 20px;
    right: 50px;
    bottom: 20px;
    left: 72px;
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 108px;
    min-width: 0;
}

.audio-fill-translation-text {
    display: block;
    width: 100%;
    max-width: 100%;
    color: #4b2b20;
    font-size: 14px;
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: 0;
    overflow-wrap: break-word;
    text-align: center;
    text-wrap: balance;
    white-space: normal;
    word-break: normal;
}

.audio-fill-translation-text.is-long {
    font-size: 12px;
    line-height: 1.25;
}

.audio-fill-copy {
    display: grid;
    gap: 10px;
    width: 100%;
    min-width: 0;
}

.audio-fill-listen-hint {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10px;
    flex-wrap: nowrap;
    margin: 0;
    color: #58a700;
    font-size: 18px;
    font-weight: 900;
}

.audio-slow-read-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    min-height: 34px;
    padding: 4px 9px;
    border: 1px solid #b9e7a3;
    border-radius: 11px;
    background: #ffffff;
    color: #3f8f16;
    font: inherit;
    font-size: 14px;
    font-weight: 900;
    line-height: 1;
    box-shadow: 0 1px 4px rgba(67, 143, 22, 0.12);
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.16s ease, border-color 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

.slow-read-turtle {
    display: block;
    flex: 0 0 auto;
    width: auto;
    height: 26px;
    max-width: 34px;
    object-fit: contain;
    flex-shrink: 0;
    transform: none;
}

.slow-read-label {
    position: relative;
    left: -3px;
    top: 2px;
    line-height: 1;
}

.audio-slow-read-button:hover,
.audio-slow-read-button.is-playing {
    border-color: #8fdc61;
    background: #f4ffef;
    color: #2f7d13;
}

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

.audio-fill-prompt h1 {
    margin: 0;
    width: 100%;
    max-width: none;
    min-width: 0;
    color: #1f2937;
    font-size: 42px;
    line-height: 1.2;
    overflow-wrap: normal;
    text-align: left;
    white-space: normal;
    word-break: normal;
}

.round-sound.audio-fill-sound {
    flex: 0 0 auto;
    width: 88px;
    height: 88px;
    min-width: 88px;
    min-height: 88px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent url("/static/mascot/audio-blank-play.png") center / contain no-repeat;
    box-shadow: none;
    overflow: hidden;
}

.round-sound.audio-fill-sound:hover {
    background: transparent url("/static/mascot/audio-blank-play.png") center / contain no-repeat;
    box-shadow: none;
}

.round-sound.audio-fill-sound:active {
    transform: translateY(5px) scale(0.97);
}

.audio-fill-options {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    justify-self: center;
    width: min(940px, 100%);
    margin-top: 28px;
}

.audio-fill-option {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 82px;
    min-width: 0;
    padding: 0 18px;
    font-size: 21px;
}

.audio-fill-option strong {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.option-letter {
    flex: 0 0 auto;
    color: #4b5563;
    font-weight: 900;
}

.writing-hint {
    justify-self: center;
    width: min(460px, 100%);
    padding: 14px 12px;
    border-radius: 16px;
    cursor: help;
    user-select: none;
    transition: background 0.16s ease, transform 0.16s ease;
}

.writing-hint:hover,
.writing-hint:focus-visible,
.writing-hint.show-answer {
    background: #f7fee7;
}

.hint-answer {
    min-height: 34px;
    margin-top: 10px;
    color: #58a700;
    font-size: 30px;
    font-weight: 900;
    line-height: 1.15;
    opacity: 0;
    transform: translateY(6px);
    transition: opacity 0.16s ease, transform 0.16s ease;
    pointer-events: none;
}

.writing-hint:hover .hint-answer,
.writing-hint:focus-visible .hint-answer,
.writing-hint.show-answer .hint-answer {
    opacity: 1;
    transform: translateY(0);
}

.focus-word,
.translation {
    text-align: center;
}

.round-sound {
    justify-self: center;
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent url("/static/mascot/audio-blank-play.png") center / contain no-repeat;
    color: transparent;
    font-size: 0;
    cursor: pointer;
    box-shadow: none;
    transition: transform 0.16s ease, filter 0.2s ease;
}

.round-sound:hover {
    transform: translateY(-1px);
    filter: brightness(0.96);
}

.round-sound:active {
    transform: scale(0.94);
}

.study-sound-button {
    width: 44px;
    height: 44px;
}

.round-sound.big {
    width: 44px;
    height: 44px;
    min-width: 44px;
    min-height: 44px;
    padding: 0;
}

.match-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.match-board > div {
    display: grid;
    gap: 12px;
}

.match-card,
.option,
.token {
    min-height: 52px;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    background: #ffffff;
    color: #1f2937;
    font: inherit;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 0 #d1d5db;
    transition: transform 0.14s ease, box-shadow 0.14s ease, border-color 0.14s ease, background 0.14s ease;
}

.match-card:hover,
.option:hover,
.token:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 0 #d1d5db;
}

.match-card:active,
.option:active,
.token:active {
    transform: translateY(2px) scale(0.98);
    box-shadow: 0 2px 0 #d1d5db;
}

.match-card.selected,
.option:hover,
.token:hover {
    border-color: #84d8ff;
    background: #eef9ff;
}

.match-card.done,
.match-card.is-correct,
.option.is-correct {
    border-color: #58cc02;
    background: #ecfdf3;
    color: #15803d;
    box-shadow: 0 4px 0 #58cc02, 0 0 0 4px rgba(88, 204, 2, 0.12);
}

.match-card.is-wrong,
.option.is-wrong,
.answer-input.is-wrong,
.sentence-answer.is-wrong {
    border-color: #ef4444;
    background: #fff5f5;
    color: #b91c1c;
    box-shadow: 0 4px 0 #ef4444, 0 0 0 4px rgba(239, 68, 68, 0.1);
}

.option.is-correct:hover,
.option.is-wrong:hover,
.match-card.is-correct:hover,
.match-card.is-wrong:hover {
    transform: none;
}

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

.answer-input {
    max-width: 420px;
    justify-self: center;
    text-align: center;
    font-size: 24px;
    font-weight: 800;
}

/* v2.5.170：仅默写输入题，识别中文输入后提示切换英文输入法。 */
.spelling-input-wrap {
    position: relative;
    width: min(420px, 100%);
    justify-self: center;
}

.spelling-input-wrap .answer-input {
    width: 100%;
}

.spelling-static-ime-hint {
    position: absolute;
    top: 50%;
    left: calc(100% + 12px);
    transform: translateY(-50%);
    margin: 0;
    padding: 7px 12px;
    border: 1px solid #d9eeb9;
    border-radius: 999px;
    background: #f7fde9;
    color: #5f9227;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    pointer-events: none;
}

.speech-result,
.sentence-answer {
    min-height: 44px;
    padding: 12px;
    border-radius: 8px;
    background: #f9fafb;
    text-align: center;
    color: #374151;
    font-weight: 800;
}

.drop-zone {
    border: 2px dashed #bfdbfe;
}

.record-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.word-bank {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

.token {
    min-width: 88px;
    padding: 0 14px;
}

.token:disabled {
    opacity: 0.4;
}

.compact {
    margin-top: 0;
}

.lesson-banner {
    min-height: 36px;
    text-align: center;
    font-weight: 900;
    opacity: 0;
    transform: translateY(8px);
    transition: 0.2s ease;
}

.lesson-banner.show {
    opacity: 1;
    transform: translateY(0);
}

.lesson-banner.correct {
    color: #16a34a;
}

.lesson-banner.wrong {
    color: #dc2626;
}

/* 第一阶段 UI 试点：仅三年级上册 Unit 1。 */
.unit1-ui-pilot-body {
    background: #cfeaf5 url("/static/mascot/primary3a-unit1-learning-bg-v1.png") center / cover fixed;
}

.unit1-ui-pilot-body .page {
    width: min(1440px, calc(100% - 48px));
    padding-top: 18px;
}

.unit1-ui-pilot-body .sound-toggle {
    top: 88px;
    right: 24px;
    z-index: 20;
    border: 1px solid rgba(255, 255, 255, 0.82);
    border-radius: 12px;
    background: rgba(255, 253, 247, 0.88);
    box-shadow: 0 8px 22px rgba(38, 84, 91, 0.16);
    backdrop-filter: blur(8px);
}

.unit1-ui-pilot {
    min-height: calc(100vh - 36px);
    padding: 4px 0 40px;
}

.unit1-ui-pilot .lesson-topbar {
    min-height: 88px;
    margin: 0;
    padding: 12px 18px;
    border: 1px solid rgba(255, 255, 255, 0.88);
    border-radius: 22px;
    background: rgba(255, 253, 247, 0.9);
    box-shadow: 0 14px 30px rgba(35, 83, 85, 0.2);
    backdrop-filter: blur(10px);
}

.unit1-ui-pilot .lesson-close {
    width: 48px;
    height: 48px;
    border: 2px solid #eadfbf;
    background: #fffaf0;
    box-shadow: 0 4px 0 #d9cda8;
    color: #82743b;
    font-size: 30px;
}

.unit1-ui-pilot .lesson-home-link {
    min-height: 42px;
    border-color: #e7ddc6;
    background: #fffdf7;
    color: #6b5c39;
    box-shadow: 0 4px 0 #e2d8c4;
}

.unit1-ui-pilot .lesson-unit-return-link {
    min-height: 42px;
    border-color: rgba(231, 221, 198, 0.9);
    background: rgba(255, 253, 247, 0.82);
    box-shadow: 0 4px 0 rgba(226, 216, 196, 0.88);
    color: #5b9f28;
}

.unit1-ui-pilot .lesson-progress {
    position: relative;
    height: 12px;
    margin: 27px 20px 5px;
    overflow: visible;
    background: #e9eadf;
    box-shadow: inset 0 2px 4px rgba(91, 102, 72, 0.12);
}

.unit1-ui-pilot .lesson-progress::before {
    position: absolute;
    bottom: 20px;
    left: 0;
    color: #3d3428;
    content: "三年级上册 · Unit 1";
    font-size: 17px;
    font-weight: 900;
    white-space: nowrap;
}

/* v2.5.199 / v2.5.203：Unit 2/3 复用 Unit 1 页面模板，仅替换顶部单元标签。 */
.unit2-ui-pilot .lesson-progress::before {
    content: "三年级上册 · Unit 2";
}

.unit3-ui-pilot .lesson-progress::before {
    content: "三年级上册 · Unit 3";
}

.unit4-ui-pilot .lesson-progress::before {
    content: "三年级上册 · Unit 4";
}

.unit5-ui-pilot .lesson-progress::before {
    content: "三年级上册 · Unit 5";
}

.unit6-ui-pilot .lesson-progress::before {
    content: "三年级上册 · Unit 6";
}

.primary3b-unit1-ui-pilot .lesson-progress::before { content: "三年级下册 · Unit 1"; }
.primary3b-unit2-ui-pilot .lesson-progress::before { content: "三年级下册 · Unit 2"; }
.primary3b-unit3-ui-pilot .lesson-progress::before { content: "三年级下册 · Unit 3"; }
.primary3b-unit4-ui-pilot .lesson-progress::before { content: "三年级下册 · Unit 4"; }
.primary3b-unit5-ui-pilot .lesson-progress::before { content: "三年级下册 · Unit 5"; }
.primary3b-unit6-ui-pilot .lesson-progress::before { content: "三年级下册 · Unit 6"; }

.primary4to6-ui-pilot .lesson-progress::before,
.junior7to9-ui-pilot .lesson-progress::before,
.senior-ui-pilot .lesson-progress::before {
    content: attr(data-pilot-label);
}

/* v2.5.200 / v2.5.203：Unit 2/3 听音频填空保留答案完整文字，长单词自动换行。 */
.unit2-ui-pilot .audio-fill-option strong,
.unit3-ui-pilot .audio-fill-option strong,
.unit4-ui-pilot .audio-fill-option strong,
.unit5-ui-pilot .audio-fill-option strong,
.unit6-ui-pilot .audio-fill-option strong,
.primary3b-ui-pilot .audio-fill-option strong,
.primary4to6-ui-pilot .audio-fill-option strong {
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    overflow-wrap: anywhere;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
}

/* v2.5.208：初中七至九年级沿用统一答案按钮规格；长词、短语可自然增高换行。 */
.junior7to9-ui-pilot .audio-fill-option,
.junior7to9-ui-pilot .option,
.senior-ui-pilot .audio-fill-option,
.senior-ui-pilot .option {
    height: auto;
    min-height: 55px;
    border-radius: 18px;
    font-size: 28px;
}

.junior7to9-ui-pilot .audio-fill-option strong,
.junior7to9-ui-pilot .meaning-option-text,
.senior-ui-pilot .audio-fill-option strong,
.senior-ui-pilot .meaning-option-text {
    min-width: 0;
    max-width: 100%;
    overflow: visible;
    overflow-wrap: anywhere;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
    word-break: break-word;
}

/* 初中课程使用与小学稳定版相同的透明 PNG 主 NPC：不使用裁切容器。 */
.unit1-ui-pilot.junior7to9-ui-pilot .lesson-mascot-image-frame,
.unit1-ui-pilot.senior-ui-pilot .lesson-mascot-image-frame {
    display: contents;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
}

.unit1-ui-pilot.junior7to9-ui-pilot #lesson-mascot-img,
.unit1-ui-pilot.senior-ui-pilot #lesson-mascot-img {
    display: block;
    width: auto;
    height: 780px;
    max-width: none;
    max-height: none;
    flex-shrink: 0;
    object-fit: contain;
    transform: translateX(90px);
    transform-origin: center bottom;
}

.unit1-ui-pilot #lesson-progress-bar {
    background: #69c947;
    box-shadow: 0 0 0 2px rgba(105, 201, 71, 0.16), 0 3px 6px rgba(61, 151, 46, 0.26);
}

.unit1-ui-pilot .lesson-status-right {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #5a4827;
}

.unit1-ui-pilot .lesson-hearts {
    min-width: 0;
    font-size: 19px;
}

.unit1-ui-pilot #lesson-xp {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    padding: 0 14px;
    border: 1px solid #f1d47b;
    border-radius: 15px;
    background: #fff8df;
    box-shadow: 0 4px 0 #efd690;
    color: #70531a;
    font-size: 16px;
}

.unit1-ui-pilot #lesson-xp::before {
    display: inline-grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border-radius: 50%;
    background: #ffcc4d;
    box-shadow: inset 0 0 0 2px #fff3bd, 0 2px 0 #d9a72a;
    color: #fffdf3;
    content: "★";
    font-size: 15px;
}

.unit1-ui-pilot .lesson-meta-line {
    display: none;
}

.unit1-ui-pilot .lesson-workspace {
    grid-template-columns: minmax(420px, 0.85fr) minmax(0, 1.15fr);
    align-items: center;
    gap: clamp(28px, 4vw, 64px);
    margin-top: 30px;
}

.unit1-ui-pilot .lesson-mascot-rail {
    align-self: stretch;
    padding-top: 28px;
}

.unit1-ui-pilot .lesson-mascot {
    overflow: visible;
    gap: 18px;
}

.unit1-ui-pilot .lesson-mascot span {
    width: min(290px, 100%);
    padding: 14px 18px;
    border: 1px solid rgba(255, 255, 255, 0.94);
    border-radius: 18px;
    background: rgba(255, 253, 247, 0.93);
    box-shadow: 0 10px 24px rgba(35, 83, 85, 0.17);
    color: #397c29;
    transform: translate(102px, 38px);
}

.unit1-ui-pilot .lesson-mascot span::after {
    border-top-color: rgba(255, 255, 255, 0.94);
}

.unit1-ui-pilot .lesson-mascot span::before {
    border-top-color: rgba(255, 253, 247, 0.93);
}

.unit1-ui-pilot .lesson-mascot img {
    height: clamp(310px, 31vw, 430px);
    filter: drop-shadow(0 16px 16px rgba(31, 77, 59, 0.2));
}

.unit1-ui-pilot #lesson-mascot-img {
    width: auto;
    height: 600px;
    max-width: none;
    flex-shrink: 0;
    transform: translate(54px, 82px) scale(1.18);
    transform-origin: left bottom;
}

.unit1-ui-pilot .lesson-mascot::after {
    content: none;
}

.unit1-ui-pilot .lesson-content {
    min-height: 590px;
    padding: clamp(30px, 4vw, 54px);
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 28px;
    background: rgba(255, 253, 247, 0.94);
    box-shadow: 0 18px 0 rgba(74, 112, 87, 0.16), 0 26px 52px rgba(35, 83, 85, 0.24);
}

.unit1-ui-pilot .study-card {
    width: min(620px, 100%);
    padding: 24px 20px;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.unit1-ui-pilot .study-word {
    color: #29364b;
    text-shadow: 0 3px 0 rgba(255, 255, 255, 0.9);
}

.unit1-ui-pilot .round-sound {
    filter: drop-shadow(0 7px 0 rgba(62, 137, 45, 0.2));
}

.unit1-ui-pilot .round-sound:hover {
    filter: drop-shadow(0 9px 0 rgba(62, 137, 45, 0.24)) brightness(1.04);
}

.unit1-ui-pilot .audio-fill-prompt {
    border-color: #d2edc0;
    border-radius: 24px;
    background: #fcfff8;
    box-shadow: inset 0 0 0 1px rgba(109, 201, 71, 0.08), 0 8px 0 rgba(198, 222, 179, 0.38);
}

.unit1-ui-pilot .audio-fill-option,
.unit1-ui-pilot .option {
    border-color: #e8d9bd;
    border-radius: 18px;
    background: #fffaf1;
    box-shadow: 0 6px 0 #e6d5b9, 0 10px 20px rgba(107, 83, 42, 0.08);
}

.unit1-ui-pilot .audio-fill-option:hover,
.unit1-ui-pilot .option:hover {
    border-color: #95d35d;
    background: #f7ffef;
    box-shadow: 0 7px 0 #9ed360, 0 12px 22px rgba(75, 145, 45, 0.14);
}

.unit1-ui-pilot .audio-fill-option:active,
.unit1-ui-pilot .option:active {
    box-shadow: 0 2px 0 #9ed360;
}

.unit1-ui-pilot .option-letter {
    display: inline-grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 50%;
    background: #dcefbf;
    color: #579725;
}

/* v2.5.156 试点：仅三年级上册 Unit 1 的听音频填空放大阅读与点选区域。 */
.unit1-ui-pilot .lesson-content:has(.audio-fill-title) {
    min-height: 620px;
    padding: 30px 42px 34px;
}

.unit1-ui-pilot-body .page:has(.audio-fill-title) {
    overflow: clip;
}

.unit1-ui-pilot .audio-fill-title {
    gap: 12px;
    width: min(960px, 100%);
}

.unit1-ui-pilot .audio-fill-heading {
    gap: 14px;
}

.unit1-ui-pilot .audio-fill-title .audio-fill-heading p {
    font-size: 28px;
}

.unit1-ui-pilot .audio-fill-counter {
    font-size: 22px;
}

.unit1-ui-pilot .audio-fill-stepper {
    gap: 6px;
    max-width: 720px;
    padding: 0;
}

.unit1-ui-pilot .audio-fill-step {
    width: 34px;
    height: 34px;
    font-size: 15px;
}

.unit1-ui-pilot .audio-fill-prompt {
    gap: 30px;
    min-height: 230px;
    margin-top: 8px;
    padding: 32px 42px;
}

.unit1-ui-pilot .round-sound.audio-fill-sound {
    width: 108px;
    height: 108px;
    min-width: 108px;
    min-height: 108px;
}

.unit1-ui-pilot .audio-fill-copy {
    gap: 14px;
}

.unit1-ui-pilot .audio-fill-listen-hint {
    font-size: 20px;
}

.unit1-ui-pilot .audio-fill-prompt h1 {
    font-size: 60px;
    line-height: 1.18;
    text-align: left;
}

.unit1-ui-pilot .audio-fill-options {
    gap: 22px;
    width: min(960px, 100%);
    margin-top: 30px;
}

.unit1-ui-pilot .audio-fill-option {
    min-height: 112px;
    padding: 0 24px;
    font-size: 42px;
}

.unit1-ui-pilot .audio-fill-option .option-letter {
    width: 38px;
    height: 38px;
    font-size: 22px;
}

/* v2.5.160 试点：仅三年级上册 Unit 1 “英文选中文”答案按钮缩小一半。 */
.unit1-ui-pilot .lesson-content:has(.lesson-title .speak-word-title) .option-grid {
    gap: 11px;
}

.unit1-ui-pilot-body .page:has(.lesson-title .speak-word-title) {
    overflow: clip;
}

.unit1-ui-pilot .lesson-content:has(.lesson-title .speak-word-title) .option {
    display: inline-grid;
    min-height: 80px;
    place-items: center;
    padding: 7px 8px;
    font-size: 25px;
    line-height: 1.15;
    overflow: hidden;
}

.unit1-ui-pilot .lesson-content:has(.lesson-title .speak-word-title) .meaning-option-text {
    display: block;
    width: 100%;
    max-width: 100%;
    max-height: 2.44em;
    overflow: hidden;
    text-align: center;
    overflow-wrap: anywhere;
}

.unit1-ui-pilot .lesson-content:has(.lesson-title .speak-word-title) .option--long-text {
    font-size: 19px;
    line-height: 1.22;
}

/* v2.5.161 试点：仅三年级上册 Unit 1“中文选英文”与英文选中文保持一致。 */
.unit1-ui-pilot .lesson-content:has(.lesson-title + .translation) .option-grid {
    gap: 11px;
}

.unit1-ui-pilot .lesson-content:has(.lesson-title + .translation) .option {
    display: inline-grid;
    min-height: 80px;
    place-items: center;
    padding: 7px 8px;
    overflow: hidden;
}

.unit1-ui-pilot .lesson-content:has(.lesson-title + .translation) .english-option {
    display: grid;
    place-items: center;
    gap: 2px;
    line-height: 1.1;
}

.unit1-ui-pilot .lesson-content:has(.lesson-title + .translation) .english-option strong {
    font-size: 25px;
    line-height: 1.1;
}

.unit1-ui-pilot .lesson-content:has(.lesson-title + .translation) .english-option .phonetic {
    font-size: 14px;
    line-height: 1.1;
}

/* v2.5.162 试点：仅三年级上册 Unit 1“英中配对”复用 answer-button 尺寸。 */
.unit1-ui-pilot .unit1-match-board .match-card {
    display: inline-grid;
    min-height: 80px;
    place-items: center;
    padding: 7px 12px;
    border-radius: 18px;
    font-size: 28px;
    line-height: 1.1;
    overflow: hidden;
    overflow-wrap: anywhere;
    text-align: center;
}

.unit1-ui-pilot .unit1-match-board .english-option {
    display: grid;
    place-items: center;
    gap: 2px;
    line-height: 1.1;
}

.unit1-ui-pilot .unit1-match-board .english-option strong {
    font-size: 28px;
    line-height: 1.1;
}

.unit1-ui-pilot .unit1-match-board .english-option .phonetic {
    font-size: 14px;
    line-height: 1.1;
}

/* v2.5.163 试点：仅三年级上册 Unit 1“听力选择”缩小辅助图片并统一答案按钮。 */
.unit1-ui-pilot-body .page:has(.unit1-listen-question) .lesson-mascot-rail {
    padding-top: 112px;
}

.unit1-ui-pilot-body .page:has(.unit1-listen-question) #lesson-mascot-img {
    width: min(145px, 100%);
    height: auto;
    max-width: 145px;
    max-height: 170px;
    object-fit: contain;
    transform: none;
    transform-origin: center;
}

.unit1-ui-pilot .unit1-listen-question .option-grid {
    gap: 11px;
}

.unit1-ui-pilot .unit1-listen-question .option {
    display: inline-grid;
    min-height: 80px;
    place-items: center;
    padding: 7px 8px;
    border-radius: 18px;
    overflow: hidden;
}

.unit1-ui-pilot .unit1-listen-question .english-option {
    display: grid;
    place-items: center;
    gap: 2px;
    line-height: 1.1;
}

.unit1-ui-pilot .unit1-listen-question .english-option strong {
    font-size: 28px;
    line-height: 1.1;
}

.unit1-ui-pilot .unit1-listen-question .english-option .phonetic {
    font-size: 14px;
    line-height: 1.1;
}

/* v2.5.168 试点：仅三年级上册 Unit 1“听力选择”恢复 NPC 与喇叭定位。 */
.unit1-ui-pilot-body .page:has(.unit1-listen-question) .lesson-mascot-rail {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
    padding: 0 0 54px;
    overflow: visible;
}

.unit1-ui-pilot-body .page:has(.unit1-listen-question) .lesson-mascot {
    justify-content: flex-end;
    overflow: visible;
}

.unit1-ui-pilot-body .page:has(.unit1-listen-question) .lesson-workspace {
    align-items: start;
}

.unit1-ui-pilot-body .page:has(.unit1-listen-question) #lesson-mascot-img {
    width: auto;
    height: 780px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    transform: translateX(90px);
    transform-origin: center bottom;
}

.unit1-ui-pilot .unit1-listen-question {
    display: grid;
    width: 100%;
    min-height: 100%;
    align-content: center;
    justify-items: center;
    gap: 20px;
}

.unit1-ui-pilot .unit1-listen-question > .round-sound.big {
    justify-self: center;
    margin: 0;
}

.unit1-ui-pilot .unit1-listen-question > .option-grid {
    width: 100%;
}

/* v2.5.139：仅三年级上册 Unit 1 以固定游戏画布等比呈现。 */
.unit1-ui-pilot-body {
    height: 100vh;
    min-height: 0;
    overflow: hidden;
}

.unit1-ui-pilot-body .page {
    width: min(1280px, 100vw);
    height: min(720px, 100vh);
    min-height: 0;
    margin: 0 auto;
    padding: 0;
    overflow: hidden;
}

.unit1-ui-pilot {
    position: relative;
    width: calc(100% / 0.69);
    height: calc(100% / 0.69);
    min-height: 0;
    padding-bottom: 0;
    transform: scale(0.69);
    transform-origin: top left;
}

/* v2.5.173：仅三年级上册 Unit 1 学习页显示底部关卡入口。 */
.unit1-stage-nav {
    position: absolute;
    right: 110px;
    bottom: 94px;
    left: 110px;
    z-index: 4;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    min-height: 87px;
}

.unit1-stage-nav[hidden] {
    display: none;
}

.unit1-stage-nav-item {
    display: inline-flex;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    gap: 10px;
    height: 87px;
    min-width: 0;
    padding: 0 12px;
    border: 1px solid rgba(255, 255, 255, 0.96);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.84);
    box-shadow: 0 7px 0 rgba(137, 112, 60, 0.14), 0 10px 20px rgba(25, 73, 26, 0.12);
    color: #22324a;
    font-size: 20px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
}

.unit1-stage-nav-item i {
    display: inline-grid;
    flex: 0 0 auto;
    width: 62px;
    height: 62px;
    place-items: center;
    background: transparent;
    color: transparent;
    font-style: normal;
}

.unit1-stage-nav-item i img {
    display: block;
    width: 100px !important;
    height: 100px !important;
    object-fit: contain;
    transform: translate(-25px, -25px) translateZ(0);
}

/* 外层画布以 0.69 缩放；此处 -55px 对应屏幕约左移 10mm。 */
.unit1-ui-pilot .lesson-content {
    transform: translateX(-55px);
}

.lesson-mascot {
    display: flex;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 22px;
    min-height: 0;
    width: 100%;
    color: #58a700;
    font-size: 14px;
    font-weight: 900;
}

.lesson-mascot img {
    width: auto;
    height: 425px;
    max-width: 100%;
    flex: 0 0 auto;
    object-fit: contain;
}

.lesson-mascot-image-frame {
    display: contents;
}

.lesson-mascot span {
    position: relative;
    width: min(300px, 100%);
    max-width: 300px;
    min-width: 0;
    padding: 14px 16px;
    border: 1px solid #d9f7c7;
    border-radius: 18px;
    background: #f4ffe9;
    color: #58a700;
    font-size: 16px;
    line-height: 1.45;
    text-align: center;
}

.lesson-mascot span::after {
    position: absolute;
    bottom: -12px;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 12px solid #d9f7c7;
    border-right: 12px solid transparent;
    border-left: 12px solid transparent;
    content: "";
    transform: translateX(-50%);
}

.lesson-mascot span::before {
    position: absolute;
    bottom: -10px;
    left: 50%;
    width: 0;
    height: 0;
    border-top: 10px solid #f4ffe9;
    border-right: 10px solid transparent;
    border-left: 10px solid transparent;
    content: "";
    transform: translateX(-50%);
}

.feedback-bar {
    position: fixed;
    left: 50%;
    bottom: 18px;
    z-index: 30;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 14px;
    width: min(520px, calc(100% - 28px));
    padding: 14px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 24px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(15, 23, 42, 0.16);
    opacity: 0;
    transform: translate(-50%, 18px) scale(0.98);
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.feedback-bar.show {
    opacity: 1;
    transform: translate(-50%, 0) scale(1);
}

.feedback-bar.correct {
    background: #dcfce7;
    color: #166534;
}

.feedback-bar.wrong {
    border-color: #fecaca;
    background: #ffffff;
    color: #1f2937;
}

.feedback-copy {
    display: grid;
    gap: 3px;
}

.feedback-bar strong {
    color: #dc2626;
    font-size: 18px;
}

.feedback-bar span {
    color: #15803d;
    font-weight: 800;
}

.feedback-bar small {
    color: #6b7280;
    font-size: 13px;
    font-weight: 800;
}

.xp-fly {
    position: fixed;
    z-index: 60;
    padding: 8px 14px;
    border-radius: 999px;
    background: #58cc02;
    color: #ffffff;
    font-weight: 900;
    pointer-events: none;
    transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.8s ease;
    box-shadow: 0 10px 24px rgba(88, 204, 2, 0.28);
}

@keyframes sound-pulse {
    0% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0.35);
    }
    45% {
        transform: scale(1.1);
        box-shadow: 0 0 0 14px rgba(56, 189, 248, 0.16);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 0 0 0 rgba(56, 189, 248, 0);
    }
}

.correct-pop {
    animation: correct-pop 0.35s ease;
}

.wrong-shake {
    animation: wrong-shake 0.32s ease;
}

@keyframes correct-pop {
    0% {
        box-shadow: 0 0 0 rgba(88, 204, 2, 0);
        transform: scale(1);
    }
    45% {
        box-shadow: 0 0 0 8px rgba(88, 204, 2, 0.16);
        transform: scale(1.012);
    }
    100% {
        box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
        transform: scale(1);
    }
}

@keyframes wrong-shake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-8px);
        box-shadow: 0 0 0 8px rgba(239, 68, 68, 0.12);
    }
    50% {
        transform: translateX(8px);
    }
    75% {
        transform: translateX(-5px);
    }
}

.review-card,
.complete-card {
    display: grid;
    gap: 18px;
    text-align: center;
}

.complete-card.failed h1 {
    color: #dc2626;
}

/* v2.5.184：复习与完成状态统一使用固定透明素材安全框。 */
.lesson-body .page:has(.review-card) .lesson-mascot-image-frame,
.lesson-body .page:has(.complete-card) .lesson-mascot-image-frame {
    display: grid;
    width: 240px;
    height: 300px;
    max-width: 100%;
    place-items: center;
    overflow: hidden;
}

.lesson-body .page:has(.review-card) #lesson-mascot-img,
.lesson-body .page:has(.complete-card) #lesson-mascot-img {
    display: block;
    width: 100%;
    height: 100%;
    min-width: 0;
    min-height: 0;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    place-self: stretch;
    transform: none;
    transform-origin: center;
}

/* v2.5.185：只将完成页角色内收，复习提示页保持 v2.5.184 的尺寸与位置。 */
.lesson-body .page:has(.complete-card) .lesson-mascot-image-frame {
    width: 200px;
    height: 252px;
    margin: 0 0 30px 34px;
}

.lesson-body .page:has(.complete-card) #lesson-mascot-img {
    object-fit: contain;
    transform: none;
    transform-origin: center bottom;
    filter: drop-shadow(0 12px 14px rgba(31, 77, 59, 0.18));
}

/* v2.5.192：audio_blank 错题复习页复用正常听音频填空页的 NPC 尺寸与站位。 */
.lesson-body .page:has([data-unit-app][data-training-mode="audio_blank"] .review-card) .lesson-mascot-rail {
    display: flex;
    align-items: center;
    align-self: stretch;
    flex-direction: column;
    justify-content: flex-start;
    padding-top: 201px;
    overflow: visible;
}

.lesson-body .page:has([data-unit-app][data-training-mode="audio_blank"] .review-card) .lesson-mascot {
    width: 100%;
    align-items: center;
    gap: 18px;
    overflow: visible;
}

.lesson-body .page:has([data-unit-app][data-training-mode="audio_blank"] .review-card) .lesson-mascot span {
    width: min(290px, 100%);
    max-width: 290px;
    transform: translate(102px, 38px);
}

.lesson-body .page:has([data-unit-app][data-training-mode="audio_blank"] .review-card) .lesson-mascot-image-frame {
    display: contents;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
}

.lesson-body .page:has([data-unit-app][data-training-mode="audio_blank"] .review-card) #lesson-mascot-img {
    display: block;
    width: auto;
    height: 600px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    flex-shrink: 0;
    transform: translate(54px, 82px) scale(1.18);
    transform-origin: left bottom;
    filter: drop-shadow(0 16px 16px rgba(31, 77, 59, 0.2));
}

/* v2.5.191：中文选英文的错题复习提示页让 NPC 居中站在气泡下方。 */
.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="choice"] .review-card) .lesson-mascot-rail {
    display: flex;
    align-items: center;
    align-self: stretch;
    padding: 30px 0 24px;
    overflow: visible;
}

.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="choice"] .review-card) .lesson-mascot {
    align-items: center;
    gap: 14px;
    overflow: visible;
}

.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="choice"] .review-card) .lesson-mascot span {
    width: min(330px, 100%);
    max-width: 330px;
    transform: none;
}

.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="choice"] .review-card) .lesson-mascot-image-frame {
    display: grid;
    width: 576px;
    height: 640px;
    max-width: none;
    margin: 0;
    place-items: center;
    overflow: hidden;
}

.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="choice"] .review-card) #lesson-mascot-img {
    display: block;
    width: auto;
    height: 960px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    /* 外层画布缩放为 0.69；下移 54px 约等于屏幕上 1cm。 */
    transform: translateY(-170px);
    transform-origin: center top;
    filter: drop-shadow(0 14px 16px rgba(31, 77, 59, 0.2));
}

/* 保持中文选英文错题复习卡片在原始顶部高度，不受左侧 NPC 容器高度影响。 */
.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="choice"] .review-card) .lesson-workspace {
    align-items: start;
}

.unit1-ui-pilot-body .page:has([data-unit-app][data-training-mode="choice"] .review-card) .lesson-content {
    align-self: start;
    box-sizing: border-box;
    height: 590px;
    min-height: 590px;
    margin-top: 0;
}

/* v2.5.189：完成页复用听力选择页的大型左侧 NPC 站位。 */
.unit1-ui-pilot-body .page:has(.complete-card) .lesson-mascot-rail {
    display: flex;
    align-items: flex-end;
    align-self: stretch;
    justify-content: flex-end;
    padding: 0 0 54px;
    overflow: visible;
}

.unit1-ui-pilot-body .page:has(.complete-card) .lesson-mascot {
    justify-content: flex-end;
    overflow: visible;
}

.unit1-ui-pilot-body .page:has(.complete-card) .lesson-workspace {
    align-items: start;
}

.unit1-ui-pilot-body .page:has(.complete-card) .lesson-mascot-image-frame {
    display: contents;
    width: auto;
    height: auto;
    margin: 0;
    overflow: visible;
}

.unit1-ui-pilot-body .page:has(.complete-card) #lesson-mascot-img {
    width: auto;
    height: 780px;
    max-width: none;
    max-height: none;
    object-fit: contain;
    transform: translateX(90px);
    transform-origin: center bottom;
    filter: drop-shadow(0 16px 16px rgba(31, 77, 59, 0.2));
}

/* v2.5.208：初中各专项完成页、错题复习页统一使用 780px 透明 NPC，不影响小学已验收页面。 */
body.junior7to9-ui-pilot-body .page:has(.review-card) .lesson-mascot-rail,
body.junior7to9-ui-pilot-body .page:has(.complete-card) .lesson-mascot-rail {
    display: flex;
    align-items: flex-end;
    align-self: stretch;
    justify-content: flex-end;
    padding: 0 0 54px;
    overflow: visible;
}

body.junior7to9-ui-pilot-body .page:has(.review-card) .lesson-mascot,
body.junior7to9-ui-pilot-body .page:has(.complete-card) .lesson-mascot {
    justify-content: flex-end;
    overflow: visible;
}

body.junior7to9-ui-pilot-body .page:has(.review-card) .lesson-workspace,
body.junior7to9-ui-pilot-body .page:has(.complete-card) .lesson-workspace {
    align-items: start;
}

body.junior7to9-ui-pilot-body .page:has(.review-card) .lesson-mascot-image-frame,
body.junior7to9-ui-pilot-body .page:has(.complete-card) .lesson-mascot-image-frame {
    display: contents;
    width: auto;
    height: auto;
    max-width: none;
    max-height: none;
    margin: 0;
    overflow: visible;
}

body.junior7to9-ui-pilot-body .page:has(.review-card) #lesson-mascot-img,
body.junior7to9-ui-pilot-body .page:has(.complete-card) #lesson-mascot-img {
    display: block;
    width: auto;
    height: 780px;
    max-width: none;
    max-height: none;
    flex-shrink: 0;
    object-fit: contain;
    transform: translateX(90px);
    transform-origin: center bottom;
    filter: drop-shadow(0 16px 16px rgba(31, 77, 59, 0.2));
}

.confetti {
    animation: celebration-bounce 0.8s ease infinite alternate;
    font-size: 72px;
}

@keyframes celebration-bounce {
    from {
        transform: translateY(0) rotate(-4deg);
    }
    to {
        transform: translateY(-10px) rotate(4deg);
    }
}

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

.summary-grid div,
.wrong-list span {
    display: grid;
    gap: 6px;
    padding: 16px;
    border-radius: 8px;
    background: #f9fafb;
}

.summary-grid span {
    color: #6b7280;
    font-size: 14px;
    font-weight: 700;
}

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

.wrong-summary {
    margin-top: 28px;
}

.wrong-summary h2 {
    font-size: 24px;
}

.wrong-list {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.wrong-list span {
    color: #b91c1c;
    font-weight: 800;
}

@media (min-width: 1024px) {
    .lesson-workspace {
        align-items: stretch;
    }

    .lesson-mascot-rail {
        display: flex;
        align-items: center;
        align-self: stretch;
        flex-direction: column;
        justify-content: flex-start;
        padding-top: 201px;
        overflow: visible;
    }

    /* Unit 1 keeps its more specific pilot rules; other learning pages use this grounded NPC pose. */
    .lesson-mascot {
        gap: 18px;
        overflow: visible;
    }

    .lesson-mascot span {
        transform: translateY(48px);
    }

    .lesson-mascot img {
        /* The rail reserves 48px below the image; move the scaled feet onto that ground baseline. */
        transform: translateY(48px) scale(1.18);
        transform-origin: left bottom;
    }
}

@media (max-width: 1023px) {
    .lesson-body .page {
        width: min(860px, calc(100% - 32px));
    }

    .lesson-workspace {
        grid-template-columns: 1fr;
    }

    .lesson-mascot-rail {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: center;
        padding-top: 0;
    }

    .lesson-mascot {
        justify-content: center;
    }

    .lesson-body .page:has([data-unit-app][data-training-mode="audio_blank"] .review-card) .lesson-mascot-rail {
        min-height: 52vh;
        padding: 0 0 12px 28px;
    }
}

@media (max-width: 560px) {
    .voice-preview-row {
        grid-template-columns: 1fr;
        justify-items: stretch;
    }

    .voice-preview-actions .button {
        flex: 1;
    }

    .page {
        padding: 72px 0 24px;
    }

    .home,
    .panel {
        padding: 22px;
    }

    .home-page .home-stats {
        grid-template-columns: 1fr;
    }

    .mascot-welcome-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .mascot-reminder-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .actions,
    .topbar,
    .word-item,
    .item-actions {
        align-items: stretch;
        flex-direction: column;
    }

    .training-count {
        text-align: right;
    }

    .wrong-training-topbar {
        align-items: flex-start;
    }

    .wrong-training-progress-row {
        align-items: flex-start;
        flex-direction: column;
    }

    .wrong-training-options,
    .wrong-training-match-board,
    .wrong-training-spelling {
        grid-template-columns: 1fr;
    }

    .wrong-training-feedback {
        grid-template-columns: 1fr;
    }

    .wrong-training-feedback span,
    .wrong-training-feedback .button {
        grid-column: auto;
        grid-row: auto;
    }

    .wrong-training-feedback .button {
        width: 100%;
    }

    .wrong-training-question h2,
    .wrong-training-complete h2 {
        font-size: 30px;
    }

    .stats,
    .big-stats,
    .summary-grid,
    .option-grid,
    .unit-map,
    .match-board,
    .textbook-grid {
        grid-template-columns: 1fr;
    }

    .home-stats {
        grid-template-columns: 1fr;
    }

    .textbook-title-card {
        grid-template-columns: 1fr;
        justify-items: center;
        text-align: center;
    }

    .textbook-import-header {
        align-items: stretch;
        flex-direction: column;
    }

    .textbook-import-summary,
    .textbook-unit-list-grid {
        grid-template-columns: 1fr;
    }

    .learn-status {
        flex-direction: column;
    }

    .lesson-body .page {
        padding-top: 78px;
    }

    .lesson-topbar {
        grid-template-columns: auto 1fr;
        min-height: 100px;
        padding: 12px 0;
    }

    .lesson-nav-left {
        gap: 6px;
    }

    .lesson-home-link {
        min-height: 36px;
        padding: 0 10px;
        font-size: 13px;
    }

    .lesson-status-right {
        grid-column: 1 / -1;
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
    }

    .lesson-hearts {
        min-width: 0;
        text-align: left;
    }

    .lesson-content {
        min-height: 520px;
        padding: 22px;
        transform: none;
    }

    .lesson-workspace {
        gap: 14px;
        margin-top: 14px;
    }

    .lesson-mascot-rail {
        padding-top: 0;
    }

    .lesson-mascot {
        justify-content: center;
        gap: 16px;
    }

    .lesson-mascot img {
        width: auto;
        height: 155px;
    }

    .lesson-previous-screen {
        top: 12px;
        left: 12px;
        min-height: 36px;
        font-size: 13px;
    }

    .lesson-review-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 10px;
    }

    .lesson-mascot span {
        width: min(240px, 100%);
        max-width: 260px;
        padding: 11px 14px;
        font-size: 15px;
    }

    .lesson-title h1 {
        font-size: 32px;
    }

    .audio-fill-prompt {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 18px;
        min-height: 0;
        padding: 24px 18px;
        text-align: center;
    }

    .audio-fill-prompt.has-translation-bubble {
        padding: 104px 18px 24px;
    }

    .audio-fill-translation-bubble {
        top: 4px;
        right: 6px;
        width: 166px;
        height: 78px;
        padding: 0;
    }

    .audio-fill-translation-safe-area {
        top: 14px;
        right: 36px;
        bottom: 14px;
        left: 54px;
        max-width: 76px;
    }

    .audio-fill-translation-text {
        font-size: 12px;
    }

    .audio-fill-translation-text.is-long {
        font-size: 10px;
        line-height: 1.25;
    }

    .audio-fill-heading {
        gap: 12px;
    }

    .audio-fill-title .audio-fill-heading p {
        font-size: 26px;
    }

    .audio-fill-counter {
        font-size: 20px;
    }

    .audio-fill-stepper {
        gap: 2px;
    }

    .audio-fill-step {
        width: 27px;
        height: 27px;
        font-size: 12px;
    }

    .audio-fill-copy {
        justify-items: center;
    }

    .audio-fill-listen-hint {
        font-size: 16px;
    }

    .audio-slow-read-button {
        min-height: 30px;
        padding: 4px 10px;
        font-size: 13px;
    }

    .audio-fill-prompt h1 {
        font-size: 26px;
        white-space: normal;
    }

    .round-sound.audio-fill-sound {
        width: 88px;
        height: 88px;
        min-width: 88px;
        min-height: 88px;
        padding: 0;
    }

    .audio-fill-options {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 8px;
    }

    .audio-fill-option {
        gap: 4px;
        min-height: 64px;
        padding: 0 6px;
    }

    .audio-fill-option strong {
        font-size: 16px;
    }

    .study-card {
        padding: 34px 18px;
        border-radius: 20px;
    }

    .study-sound-button {
        width: 44px;
        height: 44px;
    }

    .feedback-bar {
        grid-template-columns: 1fr;
        gap: 12px;
        width: calc(100% - 24px);
        padding: 16px;
        border-radius: 24px;
    }

    .feedback-bar .button {
        width: 100%;
    }

    h1 {
        font-size: 26px;
    }

    h2 {
        font-size: 34px;
    }
}

/* v2.5.234：高中题目卡累计上移约 2cm，保持与底部公共模式条的安全间距。 */
.unit1-ui-pilot.senior-ui-pilot .lesson-content {
    position: relative;
    top: -110px;
}

/* v2.5.299：学前启蒙独立 UI，所有规则仅作用于新增页面。 */
body.preschool-page {
    background: #fffdfd;
}

.preschool-page .page {
    width: 100%;
    min-width: 0;
    max-width: none;
    margin: 0;
    padding: 0;
}

.preschool-shell {
    width: min(1500px, calc(100% - 40px));
    margin: 25px auto 46px;
    color: #1b3154;
}

.preschool-back {
    display: inline-flex;
    align-items: center;
    min-height: 34px;
    margin: 0 0 10px 4px;
    color: #7c7f90;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.preschool-back:hover {
    color: #f22a7b;
}

.preschool-hero {
    position: relative;
    display: grid;
    grid-template-columns: 210px minmax(0, 1.1fr) minmax(0, 1.25fr);
    align-items: center;
    min-height: 252px;
    overflow: hidden;
    padding: 25px 58px 24px 30px;
    border: 1px solid #ffd2e4;
    border-radius: 23px;
    background:
        radial-gradient(circle at 7% 18%, rgba(255,255,255,.93) 0 4px, transparent 34px),
        radial-gradient(circle at 91% 82%, rgba(255,255,255,.85) 0 4px, transparent 37px),
        linear-gradient(108deg, #fff5fa 0%, #fff0f7 44%, #fff8fb 100%);
    box-shadow: 0 11px 25px rgba(250, 98, 157, .08);
}

.preschool-hero-kid,
.preschool-hero-bear {
    position: relative;
    display: grid;
    place-items: center;
}

.preschool-hero-kid {
    align-self: end;
    height: 194px;
}

.preschool-hero-kid-face,
.preschool-hero-bear-face {
    position: relative;
    z-index: 1;
    display: grid;
    place-items: center;
    border-radius: 50%;
    filter: drop-shadow(0 9px 8px rgba(181, 91, 36, .13));
}

.preschool-hero-kid-face {
    width: 144px;
    height: 144px;
    border: 7px solid #ffb17d;
    background: #ffddbf;
    font-size: 92px;
}

.preschool-hero-block {
    position: absolute;
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    font-size: 23px;
    font-weight: 900;
    box-shadow: 0 5px 0 rgba(216, 86, 74, .2);
}

.preschool-hero-block--a { right: 25px; bottom: 13px; background: #ff6d92; transform: rotate(8deg); }
.preschool-hero-block--b { left: 22px; bottom: 2px; background: #ffbd43; transform: rotate(-8deg); }

.preschool-hero-copy { padding: 2px 10px 0 0; }

.preschool-hero-copy,
.preschool-hero-intro,
.preschool-category > header > div {
    min-width: 0;
}

.preschool-title-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 15px;
}

.preschool-title-row h1 {
    margin: 0;
    color: #fa2377;
    font-size: clamp(39px, 4vw, 58px);
    line-height: 1.05;
    letter-spacing: 2px;
    white-space: nowrap;
    word-break: keep-all;
}

.preschool-title-row span {
    padding: 9px 20px;
    border-radius: 99px;
    color: #fff;
    background: linear-gradient(135deg, #ff6ea2, #fa3988);
    font-size: 20px;
    font-weight: 800;
    white-space: nowrap;
}

.preschool-hero-subtitle {
    margin: 14px 0 25px;
    color: #203756;
    font-size: clamp(21px, 2.2vw, 28px);
    font-weight: 800;
    white-space: nowrap;
    word-break: keep-all;
}

.preschool-hero-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.preschool-hero-tags span {
    display: inline-flex;
    align-items: center;
    min-height: 53px;
    padding: 0 20px;
    border: 1px solid #f7e6ee;
    border-radius: 16px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 5px 12px rgba(140, 78, 99, .06);
    color: #fb3b83;
    font-size: 18px;
    font-weight: 800;
}

.preschool-hero-tags span + span { color: #37ad32; }

.preschool-hero-restart {
    min-height: 42px;
    align-self: center;
    padding: 0 15px;
    border: 1px solid #f3b6cf;
    border-radius: 14px;
    background: rgba(255,255,255,.82);
    color: #e65a90;
    cursor: pointer;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
}
.preschool-hero-restart:hover { background: #fff5f9; }

.preschool-hero-continue,
.preschool-hero-review {
    display: inline-flex;
    align-items: center;
    align-self: center;
    min-height: 42px;
    padding: 0 15px;
    border: 1px solid #f3b6cf;
    border-radius: 14px;
    background: #fff8fb;
    box-shadow: 0 3px 0 #f7dbe5;
    color: #e84a82;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .16s ease, background .16s ease;
}
.preschool-hero-continue:hover,
.preschool-hero-review:hover:not([aria-disabled="true"]) { background: #fff1f7; transform: translateY(-1px); }

.preschool-hero-review {
    border-color: #bfe5b4;
    background: #f6fcf3;
    box-shadow: 0 3px 0 #dcefd4;
    color: #459b36;
}

.preschool-hero-review[aria-disabled="true"] {
    border-color: #e5e8e5;
    background: #fafbfa;
    box-shadow: none;
    color: #99a19a;
    cursor: default;
}

.preschool-hero-intro {
    display: grid;
    grid-template-columns: 1fr 162px;
    align-items: center;
    gap: 8px;
    margin-left: 16px;
}

.preschool-hero-intro p {
    margin: 0;
    color: #243a58;
    font-size: clamp(16px, 1.55vw, 20px);
    font-weight: 700;
    line-height: 1.72;
    word-break: keep-all;
}

.preschool-hero-bear { height: 172px; }

.preschool-hero-bear-face {
    width: 112px;
    height: 112px;
    border: 7px solid #c97931;
    background: #d9964d;
    font-size: 68px;
}

.preschool-hero-book {
    position: absolute;
    z-index: 2;
    right: 3px;
    bottom: 2px;
    width: 67px;
    padding: 7px 5px;
    border: 3px solid #2e9d5c;
    border-radius: 7px 3px 8px 4px;
    background: #48be6e;
    color: #ffe04f;
    font-size: 16px;
    font-weight: 900;
    line-height: .75;
    text-align: center;
    transform: rotate(-8deg);
}

.preschool-hero-spark {
    position: absolute;
    z-index: 3;
    color: #ffcf47;
    font-size: 33px;
}

.preschool-hero-spark--one { top: 4px; left: 9px; }
.preschool-hero-spark--two { top: 3px; right: 13px; }

.preschool-categories { margin-top: 29px; }

.preschool-section-heading {
    display: grid;
    grid-template-columns: 25px auto 1fr;
    align-items: center;
    gap: 13px;
    margin: 0 5px 20px;
}

.preschool-section-heading > span {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: #ff9ec4;
}

.preschool-section-heading h2 {
    margin: 0;
    color: #1f3150;
    font-size: clamp(23px, 2vw, 28px);
}

.preschool-section-heading i { height: 1px; background: #f9dfe9; }

.preschool-category-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 18px;
}

.preschool-category {
    --pc: #188cf0;
    --pc-soft: #eff8ff;
    --pc-line: #d5ebfc;
    display: flex;
    min-width: 0;
    min-height: 508px;
    flex-direction: column;
    padding: 20px 12px 20px;
    border: 1px solid var(--pc-line);
    border-radius: 18px;
    background: linear-gradient(180deg, var(--pc-soft), #fff 43%);
    box-shadow: 0 5px 13px rgba(39, 95, 140, .04);
}

.preschool-category--animal { --pc: #39b840; --pc-soft: #f5fcf3; --pc-line: #d9efd8; }
.preschool-category--food { --pc: #ff8a10; --pc-soft: #fff9f2; --pc-line: #ffe3c7; }
.preschool-category--life { --pc: #893fcd; --pc-soft: #fbf7ff; --pc-line: #e8d9f8; }
.preschool-category--nature { --pc: #0faeaf; --pc-soft: #f1fcfc; --pc-line: #cceced; }

.preschool-category > header {
    display: flex;
    align-items: center;
    gap: 12px;
    min-height: 62px;
    padding: 0 10px;
}

.preschool-category-icon {
    display: grid;
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 50%;
    background: var(--pc);
    box-shadow: inset 0 -4px 0 rgba(0,0,0,.08);
    color: #fff;
    font-size: 31px;
    font-weight: 900;
}

.preschool-category h3 {
    margin: 0 0 4px;
    color: var(--pc);
    font-size: 22px;
    white-space: nowrap;
    word-break: keep-all;
}

.preschool-category header p { margin: 0; color: #293957; font-size: 16px; font-weight: 700; white-space: nowrap; }

.preschool-word-samples {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
    min-height: 80px;
    align-items: center;
    margin: 17px -1px 13px;
    padding: 8px 4px;
    border-radius: 12px;
    background: rgba(255,255,255,.78);
}

.preschool-word-samples span { display: grid; min-width: 0; justify-items: center; gap: 3px; }
.preschool-word-samples b { font-size: 29px; line-height: 1; }
.preschool-word-samples small { max-width: 100%; color: #35425b; font-size: 12px; font-weight: 700; line-height: 1.1; text-align: center; white-space: nowrap; }

.preschool-subcategories { display: grid; gap: 7px; }

.preschool-subcategories a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 37px;
    gap: 4px;
    padding: 0 10px 0 12px;
    border-radius: 8px;
    background: var(--pc-soft);
    color: var(--pc);
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
    white-space: nowrap;
    transition: transform .16s ease, filter .16s ease;
}

.preschool-subcategories a:hover { filter: brightness(.97); transform: translateX(3px); }
.preschool-subcategories b { flex: 0 0 auto; color: var(--pc); font-size: 13px; }

.preschool-category-goal {
    margin: auto 0 0;
    padding: 13px 11px;
    border-radius: 9px;
    background: var(--pc-soft);
    color: var(--pc);
    font-size: 13px;
    font-weight: 800;
    line-height: 1.35;
}

.preschool-feature-strip {
    display: flex;
    align-items: center;
    justify-content: space-around;
    gap: 18px;
    margin-top: 29px;
    padding: 23px 27px;
    border: 1px solid #ffd6e6;
    border-radius: 18px;
    background: linear-gradient(90deg, #fff5f9, #fffafa);
    color: #33425e;
    font-size: 16px;
    font-weight: 800;
}

.preschool-feature-strip strong { color: #f52e7d; font-size: 23px; }
.preschool-feature-strip span::first-letter { color: #3db53d; }

@media (max-width: 1180px) {
    .preschool-hero { grid-template-columns: 160px 1fr; padding-right: 34px; }
    .preschool-hero-intro { grid-column: 2; margin: 12px 0 0; }
    .preschool-hero-kid { height: 156px; }
    .preschool-hero-kid-face { width: 115px; height: 115px; font-size: 73px; }
    .preschool-category-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .preschool-category { min-height: 465px; }
}

@media (max-width: 820px) {
    .preschool-shell { width: min(100% - 28px, 680px); margin-top: 15px; }
    .preschool-hero { grid-template-columns: 1fr; min-height: 0; padding: 25px; }
    .preschool-hero-kid { position: absolute; right: 4px; bottom: 8px; opacity: .3; }
    .preschool-hero-copy { position: relative; z-index: 1; }
    .preschool-hero-intro { grid-column: auto; grid-template-columns: 1fr 120px; margin-top: 17px; }
    .preschool-hero-bear { height: 116px; }
    .preschool-hero-bear-face { width: 82px; height: 82px; font-size: 47px; }
    .preschool-category-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .preschool-feature-strip { flex-wrap: wrap; justify-content: flex-start; }
}

@media (max-width: 490px) {
    .preschool-title-row h1 { font-size: 38px; }
    .preschool-title-row span { padding: 7px 13px; font-size: 15px; }
    .preschool-hero-subtitle { margin-bottom: 18px; font-size: 20px; }
    .preschool-hero-tags { gap: 8px; }
    .preschool-hero-tags span { min-height: 42px; padding: 0 12px; font-size: 14px; }
    .preschool-hero-restart, .preschool-hero-continue, .preschool-hero-review { min-height: 38px; padding: 0 11px; font-size: 13px; }
    .preschool-hero-intro { grid-template-columns: 1fr 85px; }
    .preschool-hero-intro p { font-size: 14px; }
    .preschool-hero-bear { height: 91px; }
    .preschool-hero-bear-face { width: 62px; height: 62px; border-width: 4px; font-size: 34px; }
    .preschool-hero-book { right: -2px; bottom: 0; width: 42px; padding: 4px 2px; border-width: 2px; font-size: 11px; }
    .preschool-section-heading { grid-template-columns: 15px 1fr; gap: 8px; }
    .preschool-section-heading i { display: none; }
    .preschool-category-grid { grid-template-columns: 1fr; }
    .preschool-category { min-height: auto; }
    .preschool-feature-strip { padding: 19px; font-size: 14px; }
    .preschool-feature-strip strong { font-size: 19px; }
}

/* v2.5.423 cascade guard: legacy preschool-home CSS is above this block. */
.preschool-page .preschool-hero { display:block !important; min-height:0 !important; padding:28px !important; border:1px solid #ffd1df !important; border-radius:32px !important; background:linear-gradient(135deg,#fff7fa 0%,#fffdfd 52%,#fff4f8 100%) !important; box-shadow:0 16px 42px rgba(222,91,142,.12),inset 0 1px rgba(255,255,255,.95) !important; }
.preschool-page .preschool-hero-top { display:grid !important; grid-template-columns:220px minmax(0,1fr) minmax(280px,345px) !important; align-items:center !important; gap:clamp(26px,3vw,54px) !important; min-height:256px !important; padding:4px 0 25px !important; }
.preschool-page .preschool-hero-kid { display:grid !important; position:static !important; width:220px !important; height:256px !important; min-height:0 !important; align-self:auto !important; place-items:center !important; overflow:hidden !important; border:7px solid rgba(255,255,255,.88) !important; border-radius:28px !important; background:#fff !important; box-shadow:0 12px 22px rgba(143,89,86,.18) !important; opacity:1 !important; }
.preschool-page .preschool-hero-kid img { display:block !important; width:100% !important; height:100% !important; max-height:none !important; padding:0 !important; border:0 !important; border-radius:0 !important; object-fit:contain !important; filter:none !important; }
.preschool-page .preschool-hero-copy { display:flex !important; flex-direction:column !important; align-items:flex-start !important; justify-content:center !important; min-width:0 !important; min-height:0 !important; padding:0 !important; text-align:left !important; }
.preschool-page .preschool-title-row { display:flex !important; align-items:center !important; gap:18px !important; min-width:0 !important; }.preschool-page .preschool-title-row h1 { margin:0 !important; color:#fa2b74 !important; font-size:clamp(46px,4.1vw,68px) !important; font-weight:950 !important; letter-spacing:.02em !important; line-height:1.05 !important; white-space:nowrap !important; }.preschool-page .preschool-title-row > span { flex:0 0 auto !important; padding:9px 18px !important; border:0 !important; border-radius:999px !important; background:linear-gradient(135deg,#ff5791,#f61d6c) !important; color:#fff !important; font-size:clamp(16px,1.4vw,21px) !important; font-weight:900 !important; line-height:1.2 !important; }
.preschool-page .preschool-hero-subtitle { margin:14px 0 22px !important; color:#193d6b !important; font-size:clamp(25px,2.15vw,35px) !important; font-weight:900 !important; line-height:1.2 !important; white-space:nowrap !important; }.preschool-page .preschool-letter-tip { display:flex !important; align-items:center !important; gap:17px !important; margin:0 !important; color:#16365f !important; font-size:clamp(19px,1.8vw,29px) !important; line-height:1.3 !important; white-space:nowrap !important; }.preschool-page .preschool-letter-tip > span { color:#fb4588 !important; font-size:1.28em !important; }
.preschool-page .preschool-hero-utility { display:flex !important; align-items:center !important; gap:12px !important; margin-top:18px !important; }.preschool-page .preschool-hero-review { display:inline-flex !important; width:auto !important; min-height:auto !important; padding:7px 12px !important; border:1px solid #e7e3e6 !important; border-radius:999px !important; background:rgba(255,255,255,.72) !important; box-shadow:none !important; color:#858b94 !important; font-size:13px !important; font-weight:800 !important; text-decoration:none !important; }.preschool-page .preschool-hero-actions { display:flex !important; width:auto !important; gap:9px !important; margin:0 !important; }.preschool-page .preschool-hero-actions > * { min-height:35px !important; flex:0 0 auto !important; padding:0 13px !important; border-radius:999px !important; font-size:13px !important; }
.preschool-page .preschool-hero-data-cards { display:grid !important; grid-template-columns:1fr !important; gap:16px !important; width:100% !important; margin:0 !important; }.preschool-page .preschool-hero-data-card { display:flex !important; min-height:88px !important; align-items:center !important; gap:17px !important; padding:0 24px !important; border:0 !important; border-radius:22px !important; background:#fff !important; box-shadow:0 10px 20px rgba(188,109,139,.12) !important; font-size:clamp(18px,1.5vw,24px) !important; font-weight:900 !important; }.preschool-page .preschool-hero-data-card b { font-size:1.35em !important; }.preschool-page .preschool-hero-data-card--words { color:#f52b70 !important; }.preschool-page .preschool-hero-data-card--themes { color:#18a12d !important; }
.preschool-page .preschool-alphabet-panel { display:grid !important; grid-template-columns:repeat(13,minmax(0,1fr)) !important; gap:clamp(10px,1vw,18px) !important; padding:clamp(22px,2.3vw,34px) !important; border:1px solid rgba(255,255,255,.95) !important; border-radius:28px !important; background:rgba(255,255,255,.7) !important; box-shadow:0 11px 27px rgba(221,125,158,.09) !important; }.preschool-page .preschool-letter-button { display:block !important; width:100% !important; aspect-ratio:1 !important; min-width:0 !important; box-sizing:border-box !important; border:2px solid rgba(255,255,255,.72) !important; border-radius:22px !important; background:linear-gradient(145deg,hsl(var(--letter-hue) 100% 69%),hsl(var(--letter-hue) 87% 48%)) !important; box-shadow:inset 0 4px 0 rgba(255,255,255,.5),inset 0 -7px 0 rgba(93,35,112,.25),0 7px 12px rgba(96,54,102,.22) !important; color:#fff !important; font-family:inherit !important; font-size:clamp(28px,3.1vw,51px) !important; font-weight:950 !important; line-height:1 !important; text-shadow:0 3px 2px rgba(66,37,74,.32) !important; }.preschool-page .preschool-letter-button:nth-child(8n + 1) { --letter-hue:344; }.preschool-page .preschool-letter-button:nth-child(8n + 2) { --letter-hue:29; }.preschool-page .preschool-letter-button:nth-child(8n + 3) { --letter-hue:47; }.preschool-page .preschool-letter-button:nth-child(8n + 4) { --letter-hue:108; }.preschool-page .preschool-letter-button:nth-child(8n + 5) { --letter-hue:174; }.preschool-page .preschool-letter-button:nth-child(8n + 6) { --letter-hue:201; }.preschool-page .preschool-letter-button:nth-child(8n + 7) { --letter-hue:266; }.preschool-page .preschool-letter-button:nth-child(8n) { --letter-hue:331; }
.preschool-page .preschool-home-features { display:grid !important; grid-template-columns:repeat(4,minmax(0,1fr)) !important; align-items:stretch !important; margin-top:28px !important; padding:13px 18px !important; border:1px solid rgba(255,255,255,.9) !important; border-radius:25px !important; background:#fff !important; box-shadow:0 11px 27px rgba(221,125,158,.09) !important; }.preschool-page .preschool-home-features article { display:flex !important; min-width:0 !important; align-items:center !important; gap:14px !important; padding:13px clamp(12px,1.4vw,24px) !important; }.preschool-page .preschool-home-features article + article { border-left:1px dashed #f8dbe7 !important; }.preschool-page .preschool-home-features .preschool-hero-feature-icon { width:61px !important; height:61px !important; }.preschool-page .preschool-home-features strong { display:block !important; color:#173b68 !important; font-size:clamp(17px,1.5vw,23px) !important; line-height:1.2 !important; white-space:nowrap !important; }.preschool-page .preschool-home-features small { display:block !important; margin-top:6px !important; color:#637189 !important; font-size:clamp(12px,1.1vw,16px) !important; font-weight:700 !important; line-height:1.25 !important; white-space:nowrap !important; }
.preschool-page .preschool-hero-tip { display:flex !important; width:min(820px,75%) !important; min-height:74px !important; align-items:center !important; gap:12px !important; margin:24px auto 0 !important; padding:0 28px !important; border:0 !important; border-radius:24px !important; background:linear-gradient(90deg,#fff0b6,#fff8d9) !important; box-shadow:0 9px 18px rgba(217,165,48,.13) !important; color:#183863 !important; }.preschool-page .preschool-hero-tip > span { color:#ffb600 !important; font-size:34px !important; }.preschool-page .preschool-hero-tip > strong { font-size:clamp(16px,1.4vw,21px) !important; font-weight:900 !important; }.preschool-page .preschool-hero-bear { width:82px !important; height:68px !important; }.preschool-page .preschool-hero-bear > span { font-size:53px !important; }.preschool-page .preschool-hero-bear > b { display:grid !important; width:30px !important; height:33px !important; margin-left:-11px !important; margin-bottom:4px !important; place-items:center !important; border:2px solid #31a550 !important; border-radius:6px !important; background:#4bc16f !important; color:#fff066 !important; font-size:20px !important; line-height:1 !important; }
@media (max-width:1120px) { .preschool-page .preschool-hero-top { grid-template-columns:190px minmax(0,1fr) 255px !important; gap:24px !important; }.preschool-page .preschool-hero-kid { width:190px !important; height:232px !important; }.preschool-page .preschool-hero-data-card { min-height:78px !important; padding:0 18px !important; }.preschool-page .preschool-letter-tip { font-size:19px !important; }.preschool-page .preschool-home-features { padding-inline:7px !important; }.preschool-page .preschool-home-features article { gap:9px !important; padding-inline:9px !important; }.preschool-page .preschool-home-features .preschool-hero-feature-icon { width:50px !important; height:50px !important; } }
@media (max-width:850px) { .preschool-page .preschool-hero { padding:20px !important; }.preschool-page .preschool-hero-top { grid-template-columns:160px minmax(0,1fr) !important; }.preschool-page .preschool-hero-kid { width:160px !important; height:205px !important; }.preschool-page .preschool-hero-data-cards { grid-column:1 / -1 !important; grid-template-columns:repeat(2,minmax(0,1fr)) !important; }.preschool-page .preschool-hero-data-card { min-height:68px !important; }.preschool-page .preschool-alphabet-panel { grid-template-columns:repeat(7,minmax(0,1fr)) !important; }.preschool-page .preschool-home-features { grid-template-columns:repeat(2,minmax(0,1fr)) !important; }.preschool-page .preschool-home-features article:nth-child(3) { border-left:0 !important; border-top:1px dashed #f8dbe7 !important; }.preschool-page .preschool-home-features article:nth-child(4) { border-top:1px dashed #f8dbe7 !important; }.preschool-page .preschool-hero-tip { width:min(100%,600px) !important; } }
@media (max-width:580px) { .preschool-page .preschool-hero { padding:54px 14px 16px !important; }.preschool-page .preschool-hero-top { grid-template-columns:1fr !important; justify-items:center !important; text-align:center !important; }.preschool-page .preschool-hero-kid { width:174px !important; height:208px !important; }.preschool-page .preschool-hero-copy { align-items:center !important; text-align:center !important; }.preschool-page .preschool-title-row { justify-content:center !important; gap:10px !important; }.preschool-page .preschool-title-row h1 { font-size:44px !important; }.preschool-page .preschool-title-row > span { padding:7px 11px !important; font-size:14px !important; }.preschool-page .preschool-hero-subtitle { font-size:23px !important; white-space:normal !important; }.preschool-page .preschool-letter-tip { justify-content:center !important; gap:8px !important; font-size:16px !important; white-space:normal !important; }.preschool-page .preschool-hero-utility { flex-direction:column !important; }.preschool-page .preschool-hero-data-cards { grid-template-columns:1fr !important; }.preschool-page .preschool-alphabet-panel { grid-template-columns:repeat(5,minmax(0,1fr)) !important; gap:10px !important; padding:16px !important; }.preschool-page .preschool-letter-button { border-radius:16px !important; }.preschool-page .preschool-home-features { grid-template-columns:1fr !important; padding-block:5px !important; }.preschool-page .preschool-home-features article + article,.preschool-page .preschool-home-features article:nth-child(3) { border-top:1px dashed #f8dbe7 !important; border-left:0 !important; }.preschool-page .preschool-hero-tip { min-height:60px !important; padding:0 13px !important; border-radius:18px !important; }.preschool-page .preschool-hero-tip > strong { font-size:13px !important; }.preschool-page .preschool-hero-bear { display:none !important; } }

/* v2.5.423 final cascade: keep the new preschool home layout above legacy homepage rules. */
.preschool-page .preschool-hero {
    display: block;
    min-height: 0;
    padding: 28px;
    border: 1px solid #ffd1df;
    border-radius: 32px;
    background: linear-gradient(135deg, #fff7fa 0%, #fffdfd 52%, #fff4f8 100%);
    box-shadow: 0 16px 42px rgba(222, 91, 142, .12), inset 0 1px rgba(255, 255, 255, .95);
}
.preschool-page .preschool-hero-top { display: grid; grid-template-columns: 220px minmax(0, 1fr) minmax(280px, 345px); align-items: center; gap: clamp(26px, 3vw, 54px); min-height: 256px; padding: 4px 0 25px; }
.preschool-page .preschool-hero-kid { display: grid; position: static; width: 220px; height: 256px; place-items: center; overflow: hidden; border: 7px solid rgba(255, 255, 255, .88); border-radius: 28px; background: #fff; box-shadow: 0 12px 22px rgba(143, 89, 86, .18); opacity: 1; }
.preschool-page .preschool-hero-kid img { display: block; width: 100%; height: 100%; max-height: none; object-fit: contain; }
.preschool-page .preschool-hero-copy { display: flex; align-items: flex-start; justify-content: center; min-width: 0; min-height: 0; text-align: left; }
.preschool-page .preschool-title-row { display: flex; align-items: center; gap: 18px; min-width: 0; }
.preschool-page .preschool-title-row h1 { margin: 0; color: #fa2b74; font-size: clamp(46px, 4.1vw, 68px); font-weight: 950; letter-spacing: .02em; line-height: 1.05; white-space: nowrap; }
.preschool-page .preschool-title-row > span { flex: 0 0 auto; padding: 9px 18px; border: 0; border-radius: 999px; background: linear-gradient(135deg, #ff5791, #f61d6c); box-shadow: 0 7px 13px rgba(238, 60, 119, .2); color: #fff; font-size: clamp(16px, 1.4vw, 21px); font-weight: 900; line-height: 1.2; }
.preschool-page .preschool-hero-subtitle { margin: 14px 0 22px; color: #193d6b; font-size: clamp(25px, 2.15vw, 35px); font-weight: 900; letter-spacing: .01em; line-height: 1.2; white-space: nowrap; }
.preschool-page .preschool-letter-tip { display: flex; align-items: center; gap: 17px; margin: 0; color: #16365f; font-size: clamp(19px, 1.8vw, 29px); line-height: 1.3; white-space: nowrap; }
.preschool-page .preschool-letter-tip > span { color: #fb4588; font-size: 1.28em; }
.preschool-page .preschool-hero-utility { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.preschool-page .preschool-hero-review { min-height: auto; padding: 7px 12px; border: 1px solid #e7e3e6; border-radius: 999px; background: rgba(255, 255, 255, .72); box-shadow: none; color: #858b94; font-size: 13px; font-weight: 800; text-decoration: none; }
.preschool-page .preschool-hero-actions { display: flex; gap: 9px; margin: 0; }
.preschool-page .preschool-hero-actions > * { min-height: 35px; padding: 0 13px; border-radius: 999px; font-size: 13px; font-weight: 900; }
.preschool-page .preschool-hero-data-cards { display: grid; grid-template-columns: 1fr; gap: 16px; width: 100%; margin: 0; }
.preschool-page .preschool-hero-data-card { display: flex; min-height: 88px; align-items: center; gap: 17px; padding: 0 24px; border: 0; border-radius: 22px; background: #fff; box-shadow: 0 10px 20px rgba(188, 109, 139, .12); font-size: clamp(18px, 1.5vw, 24px); font-weight: 900; }
.preschool-page .preschool-hero-data-card b { font-size: 1.35em; line-height: 1; }
.preschool-page .preschool-hero-data-card--words { color: #f52b70; }.preschool-page .preschool-hero-data-card--themes { color: #18a12d; }
.preschool-page .preschool-alphabet-panel { display: grid; grid-template-columns: repeat(13, minmax(0, 1fr)); gap: clamp(10px, 1vw, 18px); padding: clamp(22px, 2.3vw, 34px); border: 1px solid rgba(255,255,255,.95); border-radius: 28px; background: rgba(255,255,255,.7); box-shadow: 0 11px 27px rgba(221,125,158,.09); }
.preschool-page .preschool-letter-button { width: 100%; aspect-ratio: 1; min-width: 0; border: 2px solid rgba(255,255,255,.72); border-radius: 22px; background: linear-gradient(145deg, hsl(var(--letter-hue) 100% 69%), hsl(var(--letter-hue) 87% 48%)); box-shadow: inset 0 4px 0 rgba(255,255,255,.5), inset 0 -7px 0 rgba(93,35,112,.25), 0 7px 12px rgba(96,54,102,.22); color: #fff; cursor: pointer; font-family: inherit; font-size: clamp(28px, 3.1vw, 51px); font-weight: 950; line-height: 1; text-shadow: 0 3px 2px rgba(66,37,74,.32); transition: transform .16s ease,filter .16s ease,box-shadow .16s ease; }
.preschool-page .preschool-letter-button:nth-child(8n + 1) { --letter-hue:344; }.preschool-page .preschool-letter-button:nth-child(8n + 2) { --letter-hue:29; }.preschool-page .preschool-letter-button:nth-child(8n + 3) { --letter-hue:47; }.preschool-page .preschool-letter-button:nth-child(8n + 4) { --letter-hue:108; }.preschool-page .preschool-letter-button:nth-child(8n + 5) { --letter-hue:174; }.preschool-page .preschool-letter-button:nth-child(8n + 6) { --letter-hue:201; }.preschool-page .preschool-letter-button:nth-child(8n + 7) { --letter-hue:266; }.preschool-page .preschool-letter-button:nth-child(8n) { --letter-hue:331; }
.preschool-page .preschool-letter-button:hover { filter: saturate(1.08) brightness(1.04); transform: translateY(-3px) scale(1.045); }.preschool-page .preschool-letter-button:active { box-shadow: inset 0 3px 0 rgba(255,255,255,.36), inset 0 -3px 0 rgba(93,35,112,.22); transform: translateY(3px) scale(.98); }.preschool-page .preschool-letter-button:focus-visible { outline: 4px solid rgba(255,63,134,.42); outline-offset: 3px; }
.preschool-page .preschool-home-features { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); align-items: stretch; margin-top: 28px; padding: 13px 18px; border: 1px solid rgba(255,255,255,.9); border-radius: 25px; background: #fff; box-shadow: 0 11px 27px rgba(221,125,158,.09); }
.preschool-page .preschool-home-features article { display: flex; min-width: 0; align-items: center; gap: 14px; padding: 13px clamp(12px,1.4vw,24px); }.preschool-page .preschool-home-features article + article { border-left: 1px dashed #f8dbe7; }.preschool-page .preschool-home-features .preschool-hero-feature-icon { width: 61px; height: 61px; }.preschool-page .preschool-home-features strong { display: block; color: #173b68; font-size: clamp(17px,1.5vw,23px); line-height: 1.2; white-space: nowrap; }.preschool-page .preschool-home-features small { display: block; margin-top: 6px; color: #637189; font-size: clamp(12px,1.1vw,16px); font-weight: 700; line-height: 1.25; white-space: nowrap; }
.preschool-page .preschool-hero-tip { width: min(820px,75%); min-height: 74px; margin: 24px auto 0; padding: 0 28px; border: 0; border-radius: 24px; background: linear-gradient(90deg,#fff0b6,#fff8d9); box-shadow: 0 9px 18px rgba(217,165,48,.13); color: #183863; }.preschool-page .preschool-hero-tip > span { color: #ffb600; font-size: 34px; }.preschool-page .preschool-hero-tip > strong { font-size: clamp(16px,1.4vw,21px); font-weight: 900; }.preschool-page .preschool-hero-bear { width: 82px; height: 68px; }.preschool-page .preschool-hero-bear > span { font-size: 53px; }.preschool-page .preschool-hero-bear > b { display: grid; width: 30px; height: 33px; margin-left: -11px; margin-bottom: 4px; place-items: center; border: 2px solid #31a550; border-radius: 6px; background: #4bc16f; color: #fff066; font-size: 20px; line-height: 1; }
.preschool-page .preschool-categories { margin-top: 42px; }

/* v2.5.429：Hero 文案归位；字母按钮本身的尺寸和网格保持不变。 */
.preschool-page .preschool-hero-message {
    display: flex !important;
    width: fit-content !important;
    min-height: 0 !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    margin: 16px 0 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: none !important;
    box-shadow: none !important;
    color: #183863 !important;
    box-sizing: border-box !important;
}

.preschool-page .preschool-hero-message > strong {
    font-size: clamp(18px, 1.6vw, 24px) !important;
    font-weight: 900 !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
}

.preschool-page .preschool-hero-message .preschool-hero-bear {
    display: flex !important;
    flex: 0 0 auto !important;
    align-items: flex-end !important;
    justify-content: flex-end !important;
    width: 74px !important;
    height: 57px !important;
}

.preschool-page .preschool-hero-message .preschool-hero-bear > span { font-size: 47px !important; }

.preschool-page .preschool-alphabet-panel {
    display: block !important;
}

.preschool-page .preschool-letter-tip {
    justify-content: center !important;
    margin: 0 0 clamp(15px, 1.45vw, 22px) !important;
    text-align: center !important;
}

.preschool-page .preschool-alphabet-grid {
    display: grid !important;
    grid-template-columns: repeat(13, minmax(0, 1fr)) !important;
    gap: clamp(10px, 1vw, 18px) !important;
}

@media (max-width: 850px) {
    .preschool-page .preschool-alphabet-grid { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; }
}

@media (max-width: 580px) {
    .preschool-page .preschool-hero-message { width: fit-content !important; min-height: 0 !important; padding-inline: 0 !important; }
    .preschool-page .preschool-hero-message > strong { font-size: 16px !important; }
    .preschool-page .preschool-hero-message .preschool-hero-bear { display: none !important; }
    .preschool-page .preschool-alphabet-grid { grid-template-columns: repeat(5, minmax(0, 1fr)) !important; gap: 10px !important; }
}


@media (max-width:1120px) { .preschool-page .preschool-hero-top { grid-template-columns:190px minmax(0,1fr) 255px; gap:24px; }.preschool-page .preschool-hero-kid { width:190px; height:232px; }.preschool-page .preschool-hero-data-card { min-height:78px; padding:0 18px; }.preschool-page .preschool-letter-tip { font-size:19px; }.preschool-page .preschool-home-features { padding-inline:7px; }.preschool-page .preschool-home-features article { gap:9px; padding-inline:9px; }.preschool-page .preschool-home-features .preschool-hero-feature-icon { width:50px; height:50px; } }
@media (max-width:850px) { .preschool-page .preschool-hero { padding:20px; }.preschool-page .preschool-hero-top { grid-template-columns:160px minmax(0,1fr); }.preschool-page .preschool-hero-kid { width:160px; height:205px; }.preschool-page .preschool-hero-data-cards { grid-column:1 / -1; grid-template-columns:repeat(2,minmax(0,1fr)); }.preschool-page .preschool-hero-data-card { min-height:68px; }.preschool-page .preschool-alphabet-panel { grid-template-columns:repeat(7,minmax(0,1fr)); }.preschool-page .preschool-home-features { grid-template-columns:repeat(2,minmax(0,1fr)); }.preschool-page .preschool-home-features article:nth-child(3) { border-left:0; border-top:1px dashed #f8dbe7; }.preschool-page .preschool-home-features article:nth-child(4) { border-top:1px dashed #f8dbe7; }.preschool-page .preschool-hero-tip { width:min(100%,600px); } }
@media (max-width:580px) { .preschool-page .preschool-hero { padding:54px 14px 16px; }.preschool-page .preschool-hero-top { grid-template-columns:1fr; justify-items:center; text-align:center; }.preschool-page .preschool-hero-kid { width:174px; height:208px; }.preschool-page .preschool-hero-copy { align-items:center; text-align:center; }.preschool-page .preschool-title-row { justify-content:center; gap:10px; }.preschool-page .preschool-title-row h1 { font-size:44px; }.preschool-page .preschool-title-row > span { padding:7px 11px; font-size:14px; }.preschool-page .preschool-hero-subtitle { font-size:23px; white-space:normal; }.preschool-page .preschool-letter-tip { justify-content:center; gap:8px; font-size:16px; white-space:normal; }.preschool-page .preschool-hero-utility { flex-direction:column; }.preschool-page .preschool-hero-data-cards { grid-template-columns:1fr; }.preschool-page .preschool-alphabet-panel { grid-template-columns:repeat(5,minmax(0,1fr)); gap:10px; padding:16px; }.preschool-page .preschool-letter-button { border-radius:16px; }.preschool-page .preschool-home-features { grid-template-columns:1fr; padding-block:5px; }.preschool-page .preschool-home-features article + article,.preschool-page .preschool-home-features article:nth-child(3) { border-top:1px dashed #f8dbe7; border-left:0; }.preschool-page .preschool-hero-tip { min-height:60px; padding:0 13px; border-radius:18px; }.preschool-page .preschool-hero-tip > strong { font-size:13px; }.preschool-page .preschool-hero-bear { display:none; } }

/* v2.5.423：学前启蒙首页视觉布局。仅作用于 preschool 首页。 */
body.preschool-page {
    background:
        radial-gradient(circle at 16% 7%, rgba(255, 210, 227, .38), transparent 25rem),
        linear-gradient(180deg, #fffafd 0%, #fff7fa 100%);
}

.preschool-page .page {
    width: min(1540px, calc(100% - 32px));
    max-width: none;
    padding: 20px 0 64px;
}

.preschool-page .preschool-shell {
    position: relative;
    width: 100%;
    max-width: none;
}

.preschool-page .preschool-back {
    position: static;
    z-index: auto;
    margin: 0 0 16px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 97, 153, .28);
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    color: #ee4d8d;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

.preschool-page .preschool-hero {
    display: block;
    min-height: 0;
    padding: 28px;
    border: 1px solid #ffd1df;
    border-radius: 32px;
    background: linear-gradient(135deg, #fff7fa 0%, #fffdfd 52%, #fff4f8 100%);
    box-shadow: 0 16px 42px rgba(222, 91, 142, .12), inset 0 1px rgba(255, 255, 255, .95);
}

.preschool-page .preschool-hero-top {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr) minmax(280px, 345px);
    align-items: center;
    gap: clamp(26px, 3vw, 54px);
    min-height: 256px;
    padding: 4px 0 25px;
}

.preschool-page .preschool-hero-kid {
    display: grid;
    width: 220px;
    height: 256px;
    place-items: center;
    overflow: hidden;
    border: 7px solid rgba(255, 255, 255, .88);
    border-radius: 28px;
    background: #fff;
    box-shadow: 0 12px 22px rgba(143, 89, 86, .18);
}

.preschool-page .preschool-hero-kid img {
    display: block;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
}

.preschool-page .preschool-hero-copy {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    text-align: left;
}

.preschool-page .preschool-title-row {
    display: flex;
    align-items: center;
    gap: 18px;
    min-width: 0;
}

.preschool-page .preschool-title-row h1 {
    margin: 0;
    color: #fa2b74;
    font-size: clamp(46px, 4.1vw, 68px);
    font-weight: 950;
    letter-spacing: .02em;
    line-height: 1.05;
    white-space: nowrap;
}

.preschool-page .preschool-title-row > span {
    flex: 0 0 auto;
    padding: 9px 18px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(135deg, #ff5791, #f61d6c);
    box-shadow: 0 7px 13px rgba(238, 60, 119, .2);
    color: #fff;
    font-size: clamp(16px, 1.4vw, 21px);
    font-weight: 900;
    line-height: 1.2;
}

.preschool-page .preschool-hero-subtitle {
    margin: 14px 0 22px;
    color: #193d6b;
    font-size: clamp(25px, 2.15vw, 35px);
    font-weight: 900;
    letter-spacing: .01em;
    line-height: 1.2;
    white-space: nowrap;
}

.preschool-page .preschool-letter-tip {
    display: flex;
    align-items: center;
    gap: 17px;
    margin: 0;
    color: #16365f;
    font-size: clamp(19px, 1.8vw, 29px);
    line-height: 1.3;
    white-space: nowrap;
}

.preschool-page .preschool-letter-tip > span {
    color: #fb4588;
    font-size: 1.28em;
}

.preschool-page .preschool-hero-utility {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

.preschool-page .preschool-hero-review {
    min-height: auto;
    padding: 7px 12px;
    border: 1px solid #e7e3e6;
    border-radius: 999px;
    background: rgba(255, 255, 255, .72);
    box-shadow: none;
    color: #858b94;
    font-size: 13px;
    font-weight: 800;
    text-decoration: none;
}

.preschool-page .preschool-hero-actions {
    display: flex;
    gap: 9px;
    margin: 0;
}

.preschool-page .preschool-hero-actions > * {
    min-height: 35px;
    padding: 0 13px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 900;
}

.preschool-page .preschool-hero-data-cards {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    width: 100%;
    margin: 0;
}

.preschool-page .preschool-hero-data-card {
    display: flex;
    min-height: 88px;
    align-items: center;
    gap: 17px;
    padding: 0 24px;
    border: 0;
    border-radius: 22px;
    background: #fff;
    box-shadow: 0 10px 20px rgba(188, 109, 139, .12);
    font-size: clamp(18px, 1.5vw, 24px);
    font-weight: 900;
}

.preschool-page .preschool-hero-data-card b {
    font-size: 1.35em;
    line-height: 1;
}

.preschool-page .preschool-hero-data-card--words { color: #f52b70; }
.preschool-page .preschool-hero-data-card--themes { color: #18a12d; }

.preschool-page .preschool-alphabet-panel {
    display: grid;
    grid-template-columns: repeat(13, minmax(0, 1fr));
    gap: clamp(10px, 1vw, 18px);
    padding: clamp(22px, 2.3vw, 34px);
    border: 1px solid rgba(255, 255, 255, .95);
    border-radius: 28px;
    background: rgba(255, 255, 255, .7);
    box-shadow: 0 11px 27px rgba(221, 125, 158, .09);
}

.preschool-page .preschool-letter-button {
    width: 100%;
    aspect-ratio: 1;
    min-width: 0;
    border: 2px solid rgba(255, 255, 255, .72);
    border-radius: 22px;
    background: linear-gradient(145deg, hsl(var(--letter-hue) 100% 69%), hsl(var(--letter-hue) 87% 48%));
    box-shadow: inset 0 4px 0 rgba(255, 255, 255, .5), inset 0 -7px 0 rgba(93, 35, 112, .25), 0 7px 12px rgba(96, 54, 102, .22);
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    font-size: clamp(28px, 3.1vw, 51px);
    font-weight: 950;
    line-height: 1;
    text-shadow: 0 3px 2px rgba(66, 37, 74, .32);
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease;
}

.preschool-page .preschool-letter-button:nth-child(8n + 1) { --letter-hue: 344; }
.preschool-page .preschool-letter-button:nth-child(8n + 2) { --letter-hue: 29; }
.preschool-page .preschool-letter-button:nth-child(8n + 3) { --letter-hue: 47; }
.preschool-page .preschool-letter-button:nth-child(8n + 4) { --letter-hue: 108; }
.preschool-page .preschool-letter-button:nth-child(8n + 5) { --letter-hue: 174; }
.preschool-page .preschool-letter-button:nth-child(8n + 6) { --letter-hue: 201; }
.preschool-page .preschool-letter-button:nth-child(8n + 7) { --letter-hue: 266; }
.preschool-page .preschool-letter-button:nth-child(8n) { --letter-hue: 331; }
.preschool-page .preschool-letter-button:hover { filter: saturate(1.08) brightness(1.04); transform: translateY(-3px) scale(1.045); }
.preschool-page .preschool-letter-button:active { box-shadow: inset 0 3px 0 rgba(255, 255, 255, .36), inset 0 -3px 0 rgba(93, 35, 112, .22); transform: translateY(3px) scale(.98); }
.preschool-page .preschool-letter-button:focus-visible { outline: 4px solid rgba(255, 63, 134, .42); outline-offset: 3px; }

.preschool-page .preschool-home-features {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    align-items: stretch;
    margin-top: 28px;
    padding: 13px 18px;
    border: 1px solid rgba(255, 255, 255, .9);
    border-radius: 25px;
    background: #fff;
    box-shadow: 0 11px 27px rgba(221, 125, 158, .09);
}

.preschool-page .preschool-home-features article {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 14px;
    padding: 13px clamp(12px, 1.4vw, 24px);
}

.preschool-page .preschool-home-features article + article { border-left: 1px dashed #f8dbe7; }
.preschool-page .preschool-home-features .preschool-hero-feature-icon { width: 61px; height: 61px; }
.preschool-page .preschool-home-features strong { display: block; color: #173b68; font-size: clamp(17px, 1.5vw, 23px); line-height: 1.2; white-space: nowrap; }
.preschool-page .preschool-home-features small { display: block; margin-top: 6px; color: #637189; font-size: clamp(12px, 1.1vw, 16px); font-weight: 700; line-height: 1.25; white-space: nowrap; }

.preschool-page .preschool-hero-tip {
    width: min(820px, 75%);
    min-height: 74px;
    margin: 24px auto 0;
    padding: 0 28px;
    border: 0;
    border-radius: 24px;
    background: linear-gradient(90deg, #fff0b6, #fff8d9);
    box-shadow: 0 9px 18px rgba(217, 165, 48, .13);
    color: #183863;
}

.preschool-page .preschool-hero-tip > span { color: #ffb600; font-size: 34px; }
.preschool-page .preschool-hero-tip > strong { font-size: clamp(16px, 1.4vw, 21px); font-weight: 900; }
.preschool-page .preschool-hero-bear { width: 82px; height: 68px; }
.preschool-page .preschool-hero-bear > span { font-size: 53px; }
.preschool-page .preschool-hero-bear > b { display: grid; width: 30px; height: 33px; margin-left: -11px; margin-bottom: 4px; place-items: center; border: 2px solid #31a550; border-radius: 6px; background: #4bc16f; color: #fff066; font-size: 20px; line-height: 1; }

.preschool-page .preschool-categories { margin-top: 42px; }

@media (max-width: 1120px) {
    .preschool-page .preschool-hero-top { grid-template-columns: 190px minmax(0, 1fr) 255px; gap: 24px; }
    .preschool-page .preschool-hero-kid { width: 190px; height: 232px; }
    .preschool-page .preschool-hero-data-card { min-height: 78px; padding: 0 18px; }
    .preschool-page .preschool-letter-tip { font-size: 19px; }
    .preschool-page .preschool-home-features { padding-inline: 7px; }
    .preschool-page .preschool-home-features article { gap: 9px; padding-inline: 9px; }
    .preschool-page .preschool-home-features .preschool-hero-feature-icon { width: 50px; height: 50px; }
}

@media (max-width: 850px) {
    .preschool-page .page { width: min(100% - 20px, 720px); }
    .preschool-page .preschool-hero { padding: 20px; border-radius: 26px; }
    .preschool-page .preschool-hero-top { grid-template-columns: 160px minmax(0, 1fr); }
    .preschool-page .preschool-hero-kid { width: 160px; height: 205px; }
    .preschool-page .preschool-hero-data-cards { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .preschool-page .preschool-hero-data-card { min-height: 68px; }
    .preschool-page .preschool-alphabet-panel { grid-template-columns: repeat(7, minmax(0, 1fr)); }
    .preschool-page .preschool-home-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .preschool-page .preschool-home-features article:nth-child(3) { border-left: 0; border-top: 1px dashed #f8dbe7; }
    .preschool-page .preschool-home-features article:nth-child(4) { border-top: 1px dashed #f8dbe7; }
    .preschool-page .preschool-hero-tip { width: min(100%, 600px); }
}

@media (max-width: 580px) {
    .preschool-page .preschool-back { position: static; margin-bottom: 14px; font-size: 12px; }
    .preschool-page .preschool-hero { padding: 16px 14px; }
    .preschool-page .preschool-hero-top { grid-template-columns: 1fr; justify-items: center; text-align: center; }
    .preschool-page .preschool-hero-kid { width: 174px; height: 208px; }
    .preschool-page .preschool-hero-copy { align-items: center; text-align: center; }
    .preschool-page .preschool-title-row { justify-content: center; gap: 10px; }
    .preschool-page .preschool-title-row h1 { font-size: 44px; }
    .preschool-page .preschool-title-row > span { padding: 7px 11px; font-size: 14px; }
    .preschool-page .preschool-hero-subtitle { font-size: 23px; white-space: normal; }
    .preschool-page .preschool-letter-tip { justify-content: center; gap: 8px; font-size: 16px; white-space: normal; }
    .preschool-page .preschool-hero-utility { flex-direction: column; }
    .preschool-page .preschool-hero-data-cards { grid-template-columns: 1fr; }
    .preschool-page .preschool-alphabet-panel { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; padding: 16px; }
    .preschool-page .preschool-letter-button { border-radius: 16px; }
    .preschool-page .preschool-home-features { grid-template-columns: 1fr; padding-block: 5px; }
    .preschool-page .preschool-home-features article + article { border-top: 1px dashed #f8dbe7; border-left: 0; }
    .preschool-page .preschool-home-features article:nth-child(3) { border-top: 1px dashed #f8dbe7; }
    .preschool-page .preschool-hero-tip { min-height: 60px; padding: 0 13px; border-radius: 18px; }
    .preschool-page .preschool-hero-tip > strong { font-size: 13px; }
    .preschool-page .preschool-hero-bear { display: none; }
}

/* v2.5.303：学前启蒙子分类的独立导入与单词展示入口。 */
body.preschool-subcategory-page { background: #fffafb; }

.preschool-subcategory-page .page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.preschool-subcategory-shell {
    width: min(960px, calc(100% - 40px));
    margin: 34px auto 52px;
    color: #243a58;
}

.preschool-subcategory-header {
    padding: 24px 28px;
    border: 1px solid #ffd4e5;
    border-radius: 20px;
    background: linear-gradient(115deg, #fff4f9, #fffafd);
}

.preschool-subcategory-header > a {
    color: #ee3d81;
    font-size: 15px;
    font-weight: 800;
    text-decoration: none;
}

.preschool-subcategory-header nav { margin: 16px 0 13px; color: #78869c; font-size: 14px; font-weight: 700; }
.preschool-subcategory-header nav span { margin: 0 7px; color: #f48ab2; }
.preschool-subcategory-header nav strong { color: #ed3f82; }
.preschool-subcategory-header h1 { margin: 5px 0; color: #e9367d; font-size: 34px; }
.preschool-subcategory-header > div > span { color: #ec6b9c; font-size: 14px; font-weight: 800; }
.preschool-subcategory-header p { margin: 0; color: #637187; }

.preschool-subcategory-message { margin-top: 18px; }

.preschool-import-card,
.preschool-imported-words {
    margin-top: 20px;
    padding: 24px 28px;
    border: 1px solid #f0e0e7;
    border-radius: 18px;
    background: #fff;
}

.preschool-import-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; }
.preschool-import-heading > div { display: flex; align-items: center; gap: 9px; }
.preschool-import-heading > div > span { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 50%; background: #ff7da8; color: #fff; font-weight: 900; }
.preschool-import-heading h2,
.preschool-words-heading h2 { margin: 0; font-size: 22px; }
.preschool-import-heading p { margin: 0; color: #758197; font-size: 14px; }

.preschool-import-form { margin-top: 18px; }
.preschool-import-form > p { margin: -4px 0 0; color: #7a8798; font-size: 13px; line-height: 1.6; }
.preschool-import-form textarea { resize: vertical; }

.preschool-words-heading { display: flex; align-items: center; justify-content: space-between; }
.preschool-words-heading span { padding: 5px 10px; border-radius: 99px; background: #fff0f6; color: #ec3a7e; font-size: 13px; font-weight: 800; }
.preschool-word-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 17px; }
.preschool-word-list article { position: relative; min-width: 0; padding: 15px; border: 1px solid #f3e5e9; border-radius: 12px; background: #fffafd; }
.preschool-word-list strong { display: block; overflow-wrap: anywhere; color: #263955; font-size: 19px; }
.preschool-word-list span { display: block; margin-top: 4px; color: #a06e88; font-size: 13px; }
.preschool-word-list p { margin: 8px 0 0; color: #5b697d; }
.preschool-word-list .preschool-imported-word-english { padding-right: 34px; }
.preschool-imported-word-sound {
    position: absolute;
    top: 10px;
    right: 10px;
    display: grid;
    width: 29px;
    height: 29px;
    padding: 0;
    place-items: center;
    border: 1px solid #ffd0df;
    border-radius: 50%;
    background: #fff6fa;
    color: #ef4b88;
    cursor: pointer;
    touch-action: manipulation;
}
.preschool-imported-word-sound:hover { border-color: #f690b7; background: #ffeaf2; color: #d92d70; }
.preschool-imported-word-sound:focus-visible { outline: 3px solid rgba(246, 144, 183, .25); outline-offset: 2px; }
.preschool-imported-word-sound svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 2; }
.preschool-no-words { margin: 17px 0 0; padding: 16px; border-radius: 12px; background: #fff8fb; color: #8994a4; text-align: center; }

@media (max-width: 680px) {
    .preschool-subcategory-shell { width: min(100% - 28px, 600px); margin-top: 18px; }
    .preschool-subcategory-header,
    .preschool-import-card,
    .preschool-imported-words { padding: 20px; }
    .preschool-import-heading { align-items: flex-start; flex-direction: column; }
    .preschool-word-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* v2.5.304：仅“认识自己 > 身体部位”的四词学习页 UI 母版。 */
body.preschool-body-parts-learning-page {
    background: radial-gradient(circle at 50% 0, #fffafb 0, #fff7fa 50%, #fffdfd 100%);
}

.preschool-body-parts-learning-page .page {
    width: 100%;
    max-width: none;
    margin: 0;
    padding: 0;
}

.preschool-learn-shell {
    width: min(860px, calc(100% - 40px));
    margin: 16px auto 24px;
}

.preschool-learn-panel {
    padding: 26px 34px 24px;
    border: 1px solid #f5dfe7;
    border-radius: 24px;
    background: linear-gradient(135deg, #fffdfd 0%, #fff8fa 100%);
    box-shadow: 0 15px 38px rgba(223, 91, 138, .09);
}

.preschool-learn-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.preschool-learn-breadcrumb {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
    font-size: 21px;
    font-weight: 800;
}

.preschool-learn-breadcrumb a { color: #ee407f; text-decoration: none; }
.preschool-learn-breadcrumb a + span { color: #978b90; font-size: 28px; font-weight: 400; line-height: .7; }
.preschool-learn-breadcrumb a:last-child { color: #71676d; }

.preschool-learn-header-actions { display: flex; align-items: center; gap: 11px; }
.preschool-learn-add { display: inline-flex; min-height: 42px; align-items: center; padding: 0 15px; border: 1px solid #ffc7dc; border-radius: 999px; background: #fff7fb; color: #ee3e80; font-size: 15px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.preschool-learn-add:hover { background: #ffedf5; }

.preschool-learn-sound {
    display: grid;
    width: 52px;
    height: 52px;
    flex: 0 0 auto;
    place-items: center;
    border: 2px solid #fb5b94;
    border-radius: 50%;
    background: #fff;
    color: #f64888;
    cursor: pointer;
    font-size: 24px;
    line-height: 1;
}

.preschool-learn-sound:hover { background: #fff3f7; transform: translateY(-1px); }

.preschool-learn-panel h1 {
    margin: 24px 0 20px;
    color: #203653;
    font-size: clamp(31px, 3.4vw, 39px);
    line-height: 1.15;
    letter-spacing: 1px;
}

.preschool-learn-card-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 20px;
}

.preschool-learn-word-card {
    display: flex;
    min-width: 0;
    min-height: 280px;
    flex-direction: column;
    align-items: center;
    padding: 17px 20px 18px;
    border: 1px solid #f1eaed;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 8px 16px rgba(117, 79, 93, .10);
    text-align: center;
}

.preschool-learn-image {
    display: grid;
    width: min(145px, 100%);
    aspect-ratio: 1;
    place-items: center;
    overflow: visible;
    margin-bottom: 13px;
    border-radius: 0;
    background: none;
    box-shadow: none;
    filter: none;
}

.preschool-learn-image::before,
.preschool-learn-image::after {
    content: none;
    background: none;
    box-shadow: none;
    filter: none;
}

.preschool-learn-image img { width: 100%; height: 100%; object-fit: contain; }
.preschool-learn-image span { font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 96px; line-height: 1; filter: drop-shadow(0 6px 6px rgba(224, 116, 151, .13)); }
.preschool-learn-word-card strong { color: #223856; font-size: 33px; line-height: 1.1; }
.preschool-learn-ipa { margin-top: 6px; color: #fa518d; font-size: 22px; font-weight: 700; }
.preschool-learn-chinese { margin-top: 4px; color: #4d5d77; font-size: 26px; font-weight: 700; }

.preschool-learn-empty {
    display: grid;
    justify-items: center;
    gap: 14px;
    padding: 52px 20px;
    border-radius: 24px;
    background: #fff6f9;
    color: #65738a;
}

.preschool-learn-empty a { color: #ef3f80; font-weight: 800; }

.preschool-learn-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 22px;
}

.preschool-learn-progress-group { display: grid; grid-template-columns: auto minmax(115px, 205px); align-items: center; gap: 16px; }
.preschool-learn-progress-group > span { color: #52617a; font-size: 23px; font-weight: 700; white-space: nowrap; }
.preschool-learn-progress { height: 14px; overflow: hidden; border-radius: 999px; background: #f8dce7; }
.preschool-learn-progress i { display: block; width: 18%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #fa518d, #ec3e79); }
.preschool-learn-footer-actions { display: flex; align-items: center; gap: 11px; }
.preschool-learn-footer-actions[hidden] { display: none !important; }
.preschool-learn-words,
.preschool-learn-practice { display: inline-flex; min-height: 52px; align-items: center; justify-content: center; border-radius: 999px; font-size: 20px; font-weight: 900; text-decoration: none; white-space: nowrap; }
.preschool-learn-words { min-width: 132px; border: 1px solid #fa96b8; background: #fff5f9; color: #ed3d7d; }
.preschool-learn-practice { min-width: 146px; border: 0; background: linear-gradient(135deg, #f75e99, #ed3a77); box-shadow: 0 7px 12px rgba(227, 64, 118, .18); color: #fff; cursor: pointer; }

@media (max-width: 620px) {
    .preschool-learn-shell { width: min(100% - 26px, 560px); margin: 12px auto 24px; }
    .preschool-learn-panel { padding: 21px 16px 20px; border-radius: 22px; }
    .preschool-learn-breadcrumb { gap: 8px; font-size: 18px; }
    .preschool-learn-breadcrumb a + span { font-size: 28px; }
    .preschool-learn-header-actions { gap: 7px; }
    .preschool-learn-add { min-height: 38px; padding: 0 10px; font-size: 13px; }
    .preschool-learn-sound { width: 46px; height: 46px; font-size: 22px; }
    .preschool-learn-panel h1 { margin: 23px 0 18px; font-size: 29px; }
    .preschool-learn-card-grid { gap: 15px; }
    .preschool-learn-word-card { min-height: 245px; padding: 15px 9px 16px; border-radius: 22px; }
    .preschool-learn-image { width: min(128px, 100%); margin-bottom: 12px; }
    .preschool-learn-image span { font-size: 77px; }
    .preschool-learn-word-card strong { font-size: 28px; }
    .preschool-learn-ipa { margin-top: 7px; font-size: 19px; }
    .preschool-learn-chinese { margin-top: 6px; font-size: 23px; }
    .preschool-learn-footer { align-items: stretch; flex-direction: column; gap: 14px; margin-top: 23px; }
    .preschool-learn-progress-group { grid-template-columns: auto 1fr; width: 100%; gap: 12px; }
    .preschool-learn-progress-group > span { font-size: 22px; }
    .preschool-learn-footer-actions { width: 100%; }
    .preschool-learn-words, .preschool-learn-practice { flex: 1; min-width: 0; min-height: 54px; font-size: 19px; }
}

/* v2.5.306：仅身体部位的四词一组七阶段学习流程。 */
.preschool-stage-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: 15px;
    padding: 5px 12px 5px 6px;
    border: 1px solid #e0f2d7;
    border-radius: 999px;
    background: #f7fff4;
    color: #48ad42;
    font-size: 14px;
    font-weight: 900;
}

.preschool-stage-label span {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 50%;
    background: #d7f5cc;
    color: #38a539;
}

.preschool-body-stage { min-height: 0; }

.body-study-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.body-study-grid.is-three .body-study-card:last-child {
    grid-column: 1 / -1;
    width: calc((100% - 16px) / 2);
    justify-self: center;
}

.body-study-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 246px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 18px 17px;
    border: 1px solid #f1e8eb;
    border-radius: 21px;
    background: #fff;
    box-shadow: 0 6px 14px rgba(117, 79, 93, .09);
    text-align: center;
}

.body-stage-image {
    display: grid;
    width: 132px;
    height: 132px;
    flex: 0 0 auto;
    place-items: center;
    overflow: visible;
    border-radius: 0;
    background: none;
    box-shadow: none;
    filter: none;
}

.body-stage-image::before,
.body-stage-image::after {
    content: none;
    background: none;
    box-shadow: none;
    filter: none;
}

.body-stage-image img { width: 100%; height: 100%; object-fit: contain; }
.body-stage-image span { font-family: "Apple Color Emoji", "Segoe UI Emoji", sans-serif; font-size: 82px; line-height: 1; filter: drop-shadow(0 5px 5px rgba(224, 116, 151, .13)); }
.body-study-image { width: 118px; height: 118px; margin-bottom: 9px; }
.body-study-card strong { color: #223856; font-size: 28px; line-height: 1.1; }
.body-study-card > span { margin-top: 4px; color: #fb4e8b; font-size: 18px; font-weight: 800; }
.body-study-card em { margin-top: 3px; color: #53617a; font-size: 22px; font-style: normal; font-weight: 800; }

.body-card-sound,
.body-stage-sound {
    display: inline-grid;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: #fff0f6;
    color: #f64484;
    cursor: pointer;
}

.body-card-sound {
    position: absolute;
    right: 14px;
    bottom: 14px;
    width: 34px;
    height: 34px;
    font-size: 17px;
}

.body-question-stage,
.body-fill-stage,
.body-listen-stage,
.body-dictation-stage {
    display: flex;
    min-height: 274px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.body-question-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 70px;
    color: #263955;
    font-size: clamp(29px, 3vw, 38px);
    font-weight: 900;
}

.body-stage-sound {
    width: 42px;
    height: 42px;
    border: 1px solid #ffb2cd;
    font-size: 21px;
}

.body-choice-grid {
    display: grid;
    width: min(520px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-top: 20px;
}

.body-choice {
    min-height: 53px;
    padding: 8px 13px;
    border: 1px solid #edf0ed;
    border-radius: 15px;
    background: #fff;
    color: #40516b;
    cursor: pointer;
    font-size: 20px;
    font-weight: 800;
}

.body-choice:hover { border-color: #ffc2da; background: #fff7fb; }
.body-choice.correct,
.body-listen-picture.correct { border-color: #a9e39a; background: #effbe9; color: #42a73b; }
.body-choice.wrong,
.body-listen-picture.wrong { border-color: #ffb5bd; background: #fff0f2; animation: body-shake .28s ease-in-out; }

.body-stage-feedback {
    min-height: 20px;
    margin: 14px 0 0;
    color: #8490a0;
    font-size: 14px;
    font-weight: 800;
}

.body-stage-feedback.correct { color: #42a73b; }
.body-stage-feedback.wrong { color: #ec6375; }

.body-large-image { width: 142px; height: 142px; margin-bottom: 12px; }
.body-green-sound { display: grid; width: 50px; height: 50px; place-items: center; border: 1px solid #a8dd9a; border-radius: 50%; background: #ebfae5; color: #48af3e; cursor: pointer; font-size: 25px; }

/* Daily Conversation pilot: the turtle selects an independent sentence slow
   MP3. It sits beside the existing normal-sentence speaker without changing
   any answer-grid or stage layout. */
.scene-sentence-audio-controls {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.scene-sentence-audio-controls .scene-sentence-slow-button {
    min-height: 38px;
    padding: 3px 8px;
}

.scene-sentence-audio-controls .scene-sentence-slow-button:disabled {
    cursor: wait;
    opacity: .82;
}

.body-spell-cells {
    display: flex;
    justify-content: center;
    gap: 9px;
    margin-top: 16px;
}

.body-spell-cells input {
    width: 43px;
    height: 46px;
    border: 0;
    border-bottom: 2px solid #b7c5bd;
    border-radius: 9px 9px 2px 2px;
    background: #f8faf9;
    color: #344b5c;
    font-size: 28px;
    font-weight: 900;
    text-align: center;
    text-transform: lowercase;
}

.body-spell-cells input:focus { outline: 2px solid #f8a7c3; background: #fff; }
.body-spell-cells input.correct { border-color: #82ca75; background: #ecf9e7; color: #44a23e; }

.body-word-input {
    width: min(240px, 100%);
    height: 55px;
    margin-top: 14px;
    padding: 0 16px;
    border: 1px solid #f1dbe4;
    border-radius: 16px;
    background: #fff;
    box-shadow: 0 4px 10px rgba(136, 89, 106, .07);
    color: #344b5c;
    font-size: 32px;
    font-weight: 900;
    letter-spacing: 2px;
    outline: 0;
    text-align: center;
    text-transform: lowercase;
}

.body-word-input:focus { border-color: #f8a7c3; box-shadow: 0 0 0 3px rgba(248, 167, 195, .15); }
.body-word-input.correct { border-color: #9bd789; background: #f3fbed; color: #46a043; }
.body-word-input.wrong { border-color: #f5b3bd; background: #fff7f8; }

.body-match-stage {
    display: grid;
    grid-template-columns: minmax(120px, 1fr) minmax(120px, 1fr);
    gap: 26px;
    width: min(510px, 100%);
    margin: 4px auto 0;
}

.body-match-words,
.body-match-images { display: grid; gap: 9px; }
.body-match-word { min-height: 47px; border: 1px solid #edf0ed; border-radius: 12px; background: #fff; color: #344c67; cursor: pointer; font-size: 18px; font-weight: 900; }
.body-match-word.selected { border-color: #fb83af; background: #fff1f6; color: #ed3e7e; }
.body-match-word.matched { border-color: #a9e39a; background: #effbe9; color: #42a73b; }
.body-match-image { display: flex; min-height: 47px; align-items: center; justify-content: center; border: 1px solid #f3dae4; border-radius: 12px; background: #fff; cursor: pointer; }
.body-match-image .body-stage-image { width: 42px; height: 42px; }
.body-match-image .body-stage-image span { font-size: 30px; }
.body-match-image.matched { border-color: #a9e39a; background: #effbe9; }

.body-listen-stage { min-height: 300px; }
.body-listen-picture-grid { display: grid; width: min(440px, 100%); grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.body-listen-picture { display: grid; min-height: 108px; place-items: center; border: 1px solid #f1e7eb; border-radius: 16px; background: #fff; cursor: pointer; }
.body-listen-picture .body-stage-image { width: 82px; height: 82px; }
.body-listen-picture .body-stage-image span { font-size: 56px; }

.body-dictation-stage { min-height: 294px; }
.body-dictation-cells { margin-top: 16px; }
.body-complete-stage { display: grid; min-height: 300px; place-items: center; align-content: center; gap: 10px; text-align: center; }
.body-complete-stage > div { font-size: 72px; }
.body-complete-stage strong { color: #e83c7c; font-size: 28px; }
.body-complete-stage p { margin: 0; color: #6e7b8d; font-weight: 700; }

@keyframes body-shake {
    0%, 100% { transform: translateX(0); }
    35% { transform: translateX(-4px); }
    70% { transform: translateX(4px); }
}

@media (max-width: 620px) {
    .preschool-stage-label { margin-top: 12px; font-size: 12px; }
    .body-study-grid { gap: 12px; }
    .body-study-grid.is-three .body-study-card:last-child { width: calc((100% - 12px) / 2); }
    .body-study-card { min-height: 218px; padding: 13px 9px 15px; border-radius: 18px; }
    .body-stage-image { width: 102px; height: 102px; }
    .body-stage-image span { font-size: 66px; }
    .body-study-image { width: 94px; height: 94px; margin-bottom: 7px; }
    .body-study-card strong { font-size: 24px; }
    .body-study-card > span { font-size: 15px; }
    .body-study-card em { font-size: 19px; }
    .body-card-sound { right: 9px; bottom: 9px; width: 30px; height: 30px; font-size: 15px; }
    .body-question-stage, .body-fill-stage, .body-listen-stage, .body-dictation-stage { min-height: 255px; }
    .body-question-prompt { min-height: 54px; font-size: 28px; }
    .body-choice-grid { gap: 10px; margin-top: 14px; }
    .body-choice { min-height: 48px; border-radius: 13px; font-size: 17px; }
    .body-large-image { width: 122px; height: 122px; }
    .body-spell-cells input { width: 37px; height: 42px; font-size: 24px; }
    .body-match-stage { gap: 14px; }
    .body-match-word { min-height: 43px; font-size: 16px; }
    .body-listen-picture { min-height: 94px; }
    .body-complete-stage { min-height: 260px; }
}

/* v2.5.307：仅“身体部位”七阶段练习题的紧凑粉彩 UI 母版。 */
.preschool-body-parts-learning-page .preschool-learn-shell {
    width: min(760px, calc(100% - 32px));
    margin: 10px auto 16px;
}

.preschool-body-parts-learning-page .preschool-learn-panel {
    position: relative;
    overflow: hidden;
    padding: 20px 30px 16px;
    border-color: #f7dfe8;
    border-radius: 20px;
    background: linear-gradient(135deg, #fffefd 0%, #fff8fb 62%, #fffdfc 100%);
    box-shadow: 0 7px 20px rgba(174, 109, 133, .09);
}

.preschool-learn-header,
.preschool-stage-label,
.preschool-learn-panel h1,
.preschool-body-stage,
.preschool-learn-footer { position: relative; z-index: 1; }

.body-stage-progress {
    /* 仅作为居中外壳；实际七项的宽度由下方 ol 固定，绝不分散拉满视口。 */
    display: flex;
    justify-content: center;
    width: 100%;
    margin: 16px 0 28px;
    color: #5d6c80;
}

.body-stage-progress ol {
    display: flex;
    flex: 0 0 auto;
    width: max-content;
    max-width: calc(100vw - 40px);
    justify-content: flex-start;
    gap: 8px;
    margin: 0 auto;
    padding: 0;
    list-style: none;
}

.body-stage-progress-tile {
    --stage-icon-light: #c8f0cf;
    --stage-icon-deep: #54bb68;
    min-width: 0;
    min-height: 138px;
    /* 进一步收紧为 7 × 120px + 6 × 8px = 888px，保留图标与标题原尺寸。 */
    flex: 0 0 120px;
    width: 120px;
}

.body-stage-progress-tile.is-stage-english-to-chinese { --stage-icon-light: #aee9df; --stage-icon-deep: #26ad9d; }
.body-stage-progress-tile.is-stage-chinese-to-english { --stage-icon-light: #ffe28c; --stage-icon-deep: #f1ad32; }
.body-stage-progress-tile.is-stage-word-match { --stage-icon-light: #ffb1c1; --stage-icon-deep: #e95679; }
.body-stage-progress-tile.is-stage-listening-choice { --stage-icon-light: #a9d9ff; --stage-icon-deep: #4e94e8; }
.body-stage-progress-tile.is-stage-sound-word-choice { --stage-icon-light: #d0b7ff; --stage-icon-deep: #8f65d9; }
.body-stage-progress-tile.is-stage-letter-spelling { --stage-icon-light: #ffd2a1; --stage-icon-deep: #ef914c; }

.body-stage-progress-tile > button {
    display: grid;
    width: 100%;
    min-height: 138px;
    align-content: center;
    justify-items: center;
    gap: 7px;
    padding: 4px;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: center;
    transition: transform .14s ease, filter .14s ease;
}

.body-stage-progress-tile > button:hover { transform: translateY(-2px); }
.body-stage-progress-tile > button:active { transform: translateY(1px) scale(.985); }
.body-stage-progress-tile > button:focus-visible { outline: 3px solid rgba(239, 74, 132, .23); outline-offset: 2px; }

.body-stage-progress-icon {
    display: grid;
    width: 92px;
    height: 92px;
    place-items: center;
    border-radius: 24px;
    background: transparent;
    box-shadow: none;
    overflow: visible;
}

.body-stage-progress-icon > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: none;
    user-select: none;
}

.body-stage-progress-name { overflow-wrap: anywhere; font-size: 22px; font-weight: 900; line-height: 1.15; }
.body-stage-progress-tile small { display: none; }
.body-stage-progress-tile.is-complete > button { background: transparent; color: #4ba443; }
.body-stage-progress-tile.is-complete .body-stage-progress-icon { filter: drop-shadow(0 5px 8px rgba(73, 149, 67, .28)) saturate(.9); }
.body-stage-progress-tile.is-current > button { background: transparent; color: #e83d7d; }
.body-stage-progress-tile.is-current .body-stage-progress-icon { filter: drop-shadow(0 5px 9px rgba(235, 85, 139, .32)) saturate(1.08); }

@media (max-width: 680px) {
    .body-stage-progress { width: calc(100vw - 24px); margin: 12px auto 20px; }
    .body-stage-progress ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
    .body-stage-progress-tile { flex: initial; width: auto; }
    .body-stage-progress-tile, .body-stage-progress-tile > button { min-height: 100px; }
    .body-stage-progress-tile > button { gap: 4px; padding: 3px; }
    .body-stage-progress-icon { width: 58px; height: 58px; border-radius: 17px; }
    .body-stage-progress-name { font-size: 14px; }
}

.preschool-learn-header { min-height: 40px; }
.preschool-learn-breadcrumb { gap: 9px; font-size: 15px; }
.preschool-learn-breadcrumb a + span { font-size: 22px; }
.preschool-learn-header-actions { gap: 9px; }
.preschool-learn-add { min-height: 36px; padding: 0 13px; border-color: #ff9ec2; background: #fff; box-shadow: 0 3px 8px rgba(239, 81, 137, .08); font-size: 14px; }
.preschool-learn-sound { width: 40px; height: 40px; border-width: 1.5px; background: #fff9fc; font-size: 0; }

.preschool-learn-sound svg,
.body-card-sound svg,
.body-stage-sound svg,
.body-green-sound svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.1;
}

.preschool-stage-label { margin-top: 12px; padding: 4px 10px 4px 5px; font-size: 12px; box-shadow: 0 2px 6px rgba(104, 176, 83, .08); }
.preschool-stage-label span { width: 21px; height: 21px; font-size: 12px; }
.preschool-learn-shell[data-stage="1"] .preschool-stage-label,
.preschool-learn-shell[data-stage="2"] .preschool-stage-label { border-color: #ffd4b5; background: #fffaf2; color: #f29542; }
.preschool-learn-shell[data-stage="1"] .preschool-stage-label span,
.preschool-learn-shell[data-stage="2"] .preschool-stage-label span { background: #ffedcf; color: #ed8c35; }
.preschool-learn-shell[data-stage="3"] .preschool-stage-label { border-color: #cfe6ff; background: #f6fbff; color: #398edb; }
.preschool-learn-shell[data-stage="4"] .preschool-stage-label { border-color: #ffd6e5; background: #fff8fb; color: #ef5b92; }

.preschool-learn-panel h1 {
    display: inline-block;
    margin: 13px 0 13px;
    padding-bottom: 8px;
    border-bottom: 2px dotted #fa9abb;
    color: #263c59;
    font-size: clamp(25px, 3vw, 31px);
    letter-spacing: .3px;
}

.preschool-learn-panel h1::before {
    content: "•";
    margin-right: 7px;
    color: #fa75a5;
}

.preschool-body-stage { min-height: 0; }
.body-question-stage,
.body-fill-stage,
.body-listen-stage,
.body-dictation-stage { min-height: 235px; }

.body-study-grid { gap: 12px; }
.body-study-grid.is-three .body-study-card:last-child { width: calc((100% - 12px) / 2); }
.body-study-card { min-height: 183px; padding: 10px 15px 12px; border-radius: 18px; }
.body-study-image { width: 82px; height: 82px; margin-bottom: 6px; }
.body-study-card strong { font-size: 23px; }
.body-study-card > span { margin-top: 2px; font-size: 15px; }
.body-study-card em { margin-top: 2px; font-size: 18px; }
.body-card-sound { right: 10px; bottom: 10px; width: 29px; height: 29px; }
.body-card-sound svg { width: 14px; height: 14px; }

.body-question-stage { position: relative; padding-top: 0; }
.body-question-prompt { gap: 10px; min-height: 50px; font-size: clamp(27px, 3vw, 32px); }
.body-question-prompt .body-stage-sound { width: 35px; height: 35px; border-color: #ffc0d7; background: #fff3f8; }
.body-question-prompt .body-stage-sound svg { width: 17px; height: 17px; }

.body-choice-grid { width: min(540px, 100%); gap: 11px 15px; margin-top: 13px; }
.body-choice {
    position: relative;
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    padding: 8px 17px;
    border-color: #f5e4ea;
    border-radius: 14px;
    box-shadow: 0 4px 9px rgba(136, 89, 106, .07);
    color: #3d506b;
    font-size: 18px;
    text-align: left;
}

.body-choice:hover { border-color: #ffbbd3; background: #fff9fc; }
.body-choice-image { width: 39px; height: 39px; border: 0; background: transparent; }
.body-choice-image span { font-size: 28px; }
.body-choice > span:last-of-type { font-weight: 900; }
.body-choice > i {
    position: absolute;
    top: -8px;
    right: -8px;
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 50%;
    background: #f34e8a;
    box-shadow: 0 3px 7px rgba(222, 63, 119, .2);
    color: #fff;
    font-size: 14px;
    font-style: normal;
    opacity: 0;
    transform: scale(.7);
    transition: .16s ease;
}

.body-choice.correct { border-color: #f776a5; background: #fffafd; box-shadow: 0 0 0 2px rgba(250, 126, 170, .1); color: #3d506b; }
.body-choice.correct > i { opacity: 1; transform: scale(1); }
.body-choice.wrong { border-color: #f6b5bf; background: #fff7f8; }
.body-listen-picture.correct { border-color: #f776a5; background: #fffafd; color: #3d506b; }

.body-choice.correct { animation: body-choice-pop 120ms ease-out; }
.body-choice.wrong { animation: body-choice-wiggle 200ms ease-in-out; }
.body-choice-sparkles { position: absolute; inset: -13px; pointer-events: none; }
.body-choice-sparkles b { position: absolute; color: #ffbd45; font-size: 14px; line-height: 1; opacity: 0; animation: body-choice-sparkle 300ms ease-out forwards; }
.body-choice-sparkles b:nth-child(1) { top: -1px; left: 18%; animation-delay: 10ms; }
.body-choice-sparkles b:nth-child(2) { top: 38%; right: -5px; color: #fa75a5; animation-delay: 35ms; }
.body-choice-sparkles b:nth-child(3) { bottom: -4px; left: 48%; color: #f7a641; animation-delay: 65ms; }

@keyframes body-choice-pop {
    0% { transform: scale(1); }
    55% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes body-choice-wiggle {
    0%, 100% { transform: translateX(0); }
    28% { transform: translateX(-3px); }
    72% { transform: translateX(3px); }
}

@keyframes body-choice-sparkle {
    0% { opacity: 0; transform: scale(.55) translateY(4px); }
    48% { opacity: 1; transform: scale(1) translateY(-1px); }
    100% { opacity: 0; transform: scale(.8) translateY(-6px); }
}

.body-stage-feedback { min-height: 17px; margin: 9px 0 0; font-size: 13px; }
.body-large-image { width: 118px; height: 118px; margin-bottom: 9px; }
.body-green-sound { width: 43px; height: 43px; border-color: #a8dd9a; font-size: 0; }
.body-green-sound svg { width: 21px; height: 21px; }

.body-sound-word-stage,
.body-letter-spelling-stage {
    display: grid;
    min-height: 250px;
    justify-items: center;
    align-content: center;
    gap: 8px;
}

.body-sound-word-stage .body-large-image,
.body-letter-spelling-stage .body-large-image { width: 84px; height: 84px; margin: 0; }
.body-sound-word-stage .body-green-sound,
.body-letter-spelling-stage .body-green-sound { width: 38px; height: 38px; }

.body-sound-word-grid {
    display: grid;
    width: min(360px, 100%);
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    margin-top: 2px;
}

.body-sound-word-choice,
.body-letter-choice {
    border: 1px solid #f3e4ea;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 3px 8px rgba(136, 89, 106, .06);
    color: #3d506b;
    cursor: pointer;
    font-weight: 900;
}

.body-sound-word-choice { min-height: 42px; font-size: 18px; }
.body-sound-word-choice.correct,
.body-letter-choice.correct { border-color: #a9e39a; background: #effbe9; color: #42a73b; }
.body-sound-word-choice.wrong,
.body-letter-choice.wrong { border-color: #f6b5bf; background: #fff7f8; animation: body-choice-wiggle 200ms ease-in-out; }

.body-letter-slots { display: flex; justify-content: center; gap: 7px; }
.body-letter-slot {
    display: grid;
    width: 34px;
    height: 38px;
    place-items: center;
    border-bottom: 2px solid #c9d3ce;
    border-radius: 8px 8px 2px 2px;
    background: #f8faf9;
    color: #344b5c;
    font-size: 23px;
    font-weight: 900;
    text-transform: lowercase;
}
.body-letter-slot.filled { border-color: #82ca75; background: #ecf9e7; color: #44a23e; }
.body-letter-choice-grid {
    display: flex;
    width: min(440px, 100%);
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}
.body-letter-choice {
    flex: 0 0 96px;
    width: 96px;
    min-width: 96px;
    height: 76px;
    min-height: 76px;
    padding: 0;
    font-size: 38px;
    line-height: 1;
    text-transform: lowercase;
}
.body-letter-choice.used { border-color: #d8e8d4; background: #f3f8f2; color: #8fa58d; cursor: default; }

.body-match-stage { gap: 18px; width: min(480px, 100%); }
.body-match-words,
.body-match-images { row-gap: 22px; }
.body-match-word { min-height: 42px; border-color: #f2e4ea; border-radius: 12px; font-size: 16px; }
.preschool-body-parts-learning-page .body-match-image {
    min-height: 74px;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 16px;
    border-color: #f2e4ea;
    border-radius: 12px;
}
.preschool-body-parts-learning-page .body-match-image .body-stage-image {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
}
.preschool-body-parts-learning-page .body-match-image .body-stage-image span { font-size: 31px; }
.preschool-body-parts-learning-page .body-match-image-label {
    flex: 0 0 auto;
    color: #49566f;
    font-size: 17px;
    font-weight: 800;
    line-height: 1;
}
.preschool-body-parts-learning-page .body-choice {
    justify-content: center;
    gap: 16px;
}
.preschool-body-parts-learning-page .body-choice-image { flex: 0 0 auto; }
.preschool-body-parts-learning-page .body-choice > span:last-of-type { flex: 0 0 auto; }
.body-match-word.matched,
.body-match-image.matched { border-color: #f776a5; background: #fffafd; color: #e84a82; }

.body-listen-stage { min-height: 250px; }
.body-listen-picture-grid { width: min(410px, 100%); gap: 10px; margin-top: 12px; }
.body-listen-picture { min-height: 91px; border-color: #f3e4ea; border-radius: 14px; box-shadow: 0 3px 8px rgba(136, 89, 106, .06); }
.body-listen-picture .body-stage-image { width: 68px; height: 68px; }
.body-listen-picture .body-stage-image span { font-size: 46px; }
.body-complete-stage { min-height: 250px; }
.body-complete-stage > div { font-size: 56px; }
.body-complete-stage strong { font-size: 24px; }

/* v2.5.391：学前单词素材统一采用放大后的安全画布；白色答案框和题型结构保持不变。 */
.preschool-body-parts-learning-page .body-stage-image {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preschool-body-parts-learning-page .body-stage-image img {
    display: block;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    flex-shrink: 0;
}

.preschool-body-parts-learning-page .body-study-card { overflow: hidden; }
.preschool-body-parts-learning-page .body-study-image { width: 110px; height: 110px; }

.preschool-body-parts-learning-page .body-choice {
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    overflow: hidden;
}

.preschool-body-parts-learning-page .body-choice-image {
    display: flex;
    width: 72px;
    height: 60px;
    flex: 0 0 72px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.preschool-body-parts-learning-page .body-match-image {
    height: 74px;
    min-height: 74px;
    max-height: 74px;
    overflow: hidden;
}

.preschool-body-parts-learning-page .body-match-image .body-stage-image { width: 84px; height: 72px; }
.preschool-body-parts-learning-page .body-listen-picture {
    height: 91px;
    min-height: 91px;
    max-height: 91px;
    overflow: hidden;
}
.preschool-body-parts-learning-page .body-listen-picture .body-stage-image { width: 104px; height: 89px; }

/* v2.5.403 / v2.5.409：餐具与甜品/零食的白框选项共用已验证的安全画布。 */
.preschool-learning-page:has(.preschool-learn-shell:is([data-subcategory-id="tableware"], [data-subcategory-id="snacks"])[data-stage="1"]) .body-choice-image,
.preschool-learning-page:has(.preschool-learn-shell:is([data-subcategory-id="tableware"], [data-subcategory-id="snacks"])[data-stage="2"]) .body-choice-image {
    width: 116px;
    height: 60px;
    flex: 0 0 116px;
}

.preschool-learning-page:has(.preschool-learn-shell:is([data-subcategory-id="tableware"], [data-subcategory-id="snacks"])[data-stage="1"]) .body-choice-image img,
.preschool-learning-page:has(.preschool-learn-shell:is([data-subcategory-id="tableware"], [data-subcategory-id="snacks"])[data-stage="2"]) .body-choice-image img {
    width: 116px;
    height: 116px;
    max-width: none;
    max-height: none;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="tableware"][data-stage="3"]) .body-match-image .body-stage-image {
    width: 136px;
    height: 72px;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="tableware"][data-stage="3"]) .body-match-image .body-stage-image img {
    width: 136px;
    height: 136px;
    max-width: none;
    max-height: none;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="tableware"][data-stage="4"]) .body-listen-picture .body-stage-image {
    width: 152px;
    height: 89px;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="tableware"][data-stage="4"]) .body-listen-picture .body-stage-image img {
    width: 152px;
    height: 152px;
    max-width: none;
    max-height: none;
}

/* v2.5.404 / v2.5.407：餐具与甜品/零食的顶部图片共用已验证的放大安全画布。 */
.preschool-learning-page:has(.preschool-learn-shell:is([data-subcategory-id="tableware"], [data-subcategory-id="snacks"])[data-stage="5"]) .body-large-image,
.preschool-learning-page:has(.preschool-learn-shell:is([data-subcategory-id="tableware"], [data-subcategory-id="snacks"])[data-stage="6"]) .body-large-image {
    width: 116px;
    height: 116px;
}

.preschool-learning-page:has(.preschool-learn-shell:is([data-subcategory-id="tableware"], [data-subcategory-id="snacks"])[data-stage="5"]) .body-large-image img,
.preschool-learning-page:has(.preschool-learn-shell:is([data-subcategory-id="tableware"], [data-subcategory-id="snacks"])[data-stage="6"]) .body-large-image img {
    width: 116px;
    height: 116px;
    max-width: none;
    max-height: none;
}

.preschool-learn-footer { gap: 14px; margin-top: 14px; padding-top: 11px; border-top: 1px solid rgba(248, 207, 222, .58); }
.preschool-learn-progress-group { grid-template-columns: auto minmax(100px, 168px); gap: 12px; }
.preschool-learn-progress-group > span { font-size: 17px; }
.preschool-learn-progress { height: 10px; background: #f8dce7; }
.preschool-learn-footer-actions { gap: 9px; }
.preschool-learn-words,
.preschool-learn-practice { min-height: 42px; font-size: 16px; }
.preschool-learn-words { min-width: 106px; background: #fff; }
.preschool-learn-practice { min-width: 113px; box-shadow: 0 5px 10px rgba(227, 64, 118, .15); }

/* 情绪表情在配对与听力题中保留同一套图片缩放规范；四选一答案框完全复用公共组件。 */
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .preschool-learn-shell {
    --feelings-option-image-scale: 1;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"][data-stage="3"]) .preschool-learn-shell {
    --feelings-option-image-scale: 1.28;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"][data-stage="4"]) .preschool-learn-shell {
    --feelings-option-image-scale: 1.2;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-choice-image img,
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-match-image .body-stage-image img,
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-listen-picture .body-stage-image img {
    object-fit: contain;
    transform: scale(var(--feelings-option-image-scale));
    transform-origin: center;
}

/* v2.5.381：情绪表情四选一只在白框内放大图片，公共答案框尺寸保持不变。 */
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-choice-image.emotion-choice-image {
    display: grid;
    width: 82px;
    height: 82px;
    max-width: 82px;
    max-height: 82px;
    flex: 0 0 82px;
    place-items: center;
    overflow: visible;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-choice-image.emotion-choice-image img {
    position: static;
    display: block;
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    transform: none;
}

/* v2.5.381：情绪表情单词配对的图片保持在配对按钮内，不允许越界。 */
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-match-option-image.emotion-match-image {
    display: grid;
    width: 82px;
    height: 82px;
    max-width: 82px;
    max-height: 82px;
    flex: 0 0 82px;
    place-items: center;
    overflow: visible;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-match-option-image.emotion-match-image img {
    position: static;
    display: block;
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    transform: none;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-choice,
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-match-image {
    overflow: hidden;
}

/* 图片画布变大不参与 Flex 高度计算：答案框继续复用身体部位的固定标准。 */
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-choice {
    height: 60px;
    min-height: 60px;
    max-height: 60px;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-match-image {
    height: 74px;
    min-height: 74px;
    max-height: 74px;
}

/* v2.5.383：仅情绪表情听力选择，使用整块按钮内容区统一居中四张人物图。 */
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"][data-stage="4"]) .body-listen-picture .body-stage-image {
    display: flex;
    width: 100%;
    height: 100%;
    max-width: none;
    max-height: none;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    overflow: hidden;
    line-height: 0;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"][data-stage="4"]) .body-listen-picture .body-stage-image img {
    position: static;
    display: block;
    width: 80px;
    height: 80px;
    max-width: 80px;
    max-height: 80px;
    object-fit: contain;
    transform: none;
    flex-shrink: 0;
    margin: 0;
}

/* v2.5.387：仅家庭成员的两种四选一和单词配对放大人物图；白色答案框尺寸保持公共标准。 */
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="family"][data-stage="1"]) .body-choice,
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="family"][data-stage="2"]) .body-choice {
    height: 60px;
    min-height: 60px;
    max-height: 60px;
    overflow: hidden;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="family"][data-stage="3"]) .body-match-image {
    height: 74px;
    min-height: 74px;
    max-height: 74px;
    overflow: hidden;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="family"][data-stage="1"]) .body-choice-image,
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="family"][data-stage="2"]) .body-choice-image,
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="family"][data-stage="3"]) .body-match-option-image {
    display: grid;
    width: 72px;
    height: 72px;
    max-width: 72px;
    max-height: 72px;
    flex: 0 0 72px;
    place-items: center;
    overflow: visible;
}

.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="family"][data-stage="1"]) .body-choice-image img,
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="family"][data-stage="2"]) .body-choice-image img,
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="family"][data-stage="3"]) .body-match-option-image img {
    position: static;
    display: block;
    width: 70px;
    height: 70px;
    max-width: 70px;
    max-height: 70px;
    object-fit: contain;
    flex-shrink: 0;
    margin: 0;
    transform: none;
}

/* v2.5.366：仅情绪表情的单词学习卡在原有居中位置继续等比放大图片。 */
.preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"][data-stage="0"]) .body-study-image {
    width: 128px;
    height: 128px;
}

@media (max-width: 620px) {
    .preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-choice-image.emotion-choice-image { width: 64px; height: 64px; max-width: 64px; max-height: 64px; flex-basis: 64px; }
    .preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-choice-image.emotion-choice-image img { width: 62px; height: 62px; max-width: 62px; max-height: 62px; }
    .preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-match-option-image.emotion-match-image { width: 70px; height: 70px; max-width: 70px; max-height: 70px; flex-basis: 70px; }
    .preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-match-option-image.emotion-match-image img { width: 68px; height: 68px; max-width: 68px; max-height: 68px; }
    .preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-listen-picture .body-stage-image { width: 70px; height: 70px; max-width: 70px; max-height: 70px; }
    .preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"]) .body-listen-picture .body-stage-image img { width: 68px; height: 68px; max-width: 68px; max-height: 68px; }

    .preschool-learning-page:has(.preschool-learn-shell[data-subcategory-id="feelings"][data-stage="0"]) .body-study-image {
        width: 116px;
        height: 116px;
    }

}

/* v2.5.330：学前学习现场的持久上一题 History 入口。 */
.preschool-learn-history {
    display: inline-flex;
    min-width: 126px;
    min-height: 42px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 13px;
    border: 1px solid #f5a8c2;
    border-radius: 999px;
    background: linear-gradient(180deg, #fffdfd, #fff1f6);
    box-shadow: 0 4px 0 #f4d7e2, 0 6px 11px rgba(227, 64, 118, .10);
    color: #e84a82;
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.preschool-learn-history > span:first-child { font-size: 20px; line-height: .7; }
.preschool-learn-history:hover:not(:disabled) { transform: translateY(-1px) scale(1.025); background: #fff8fb; box-shadow: 0 5px 0 #f3d0de, 0 8px 14px rgba(227, 64, 118, .14); }
.preschool-learn-history:active:not(:disabled) { transform: translateY(3px) scale(.99); box-shadow: 0 1px 0 #f3d0de, 0 3px 7px rgba(227, 64, 118, .10); }
.preschool-learn-history:focus-visible { outline: 3px solid rgba(239, 74, 132, .23); outline-offset: 3px; }
.preschool-learn-history:disabled { border-color: #e7dfe3; background: #f6f3f4; box-shadow: 0 3px 0 #ece7e9; color: #b8b0b5; cursor: not-allowed; }

.preschool-quiz-spark,
.preschool-quiz-plant { position: absolute; z-index: 0; pointer-events: none; user-select: none; }
.preschool-quiz-spark { color: #f8a6c3; font-size: 20px; opacity: .31; }
.preschool-quiz-spark-one { top: 105px; right: 18%; transform: rotate(-12deg); }
.preschool-quiz-spark-two { top: 172px; left: 6%; color: #ffc0d4; font-size: 17px; }
.preschool-quiz-plant { bottom: 2px; font-size: 30px; opacity: .36; }
.preschool-quiz-plant-left { left: 8px; }
.preschool-quiz-plant-right { right: 10px; color: #f6ba73; }

@media (max-width: 620px) {
    .preschool-body-parts-learning-page .preschool-learn-shell { width: min(100% - 22px, 560px); margin: 8px auto 16px; }
    .preschool-body-parts-learning-page .preschool-learn-panel { padding: 17px 15px 14px; }
    .preschool-learn-breadcrumb { font-size: 13px; }
    .preschool-learn-add { min-height: 33px; padding: 0 9px; font-size: 12px; }
    .preschool-learn-sound { width: 35px; height: 35px; }
    .preschool-learn-panel h1 { margin: 11px 0 11px; font-size: 24px; }
    .body-question-stage, .body-listen-stage, .body-sound-word-stage, .body-letter-spelling-stage { min-height: 225px; }
    .body-study-grid { gap: 10px; }
    .body-study-grid.is-three .body-study-card:last-child { width: calc((100% - 10px) / 2); }
    .body-study-card { min-height: 172px; padding: 9px 8px 11px; }
    .body-study-image { width: 74px; height: 74px; margin-bottom: 5px; }
    .body-study-card strong { font-size: 21px; }
    .body-study-card > span { font-size: 13px; }
    .body-study-card em { font-size: 17px; }
    .body-choice-grid { gap: 9px; }
    .body-choice { min-height: 55px; gap: 8px; padding: 7px 11px; font-size: 16px; }
    .body-choice-image { width: 34px; height: 34px; }
    .body-choice-image span { font-size: 24px; }
    .preschool-learn-footer { align-items: center; flex-direction: row; margin-top: 11px; }
    .preschool-learn-progress-group { grid-template-columns: auto minmax(54px, 1fr); flex: 1; gap: 7px; }
    .preschool-learn-progress-group > span { font-size: 14px; }
    .preschool-learn-footer-actions { width: auto; gap: 6px; }
    .preschool-learn-words, .preschool-learn-history, .preschool-learn-practice { flex: 0 0 auto; min-width: 76px; min-height: 38px; padding: 0 10px; font-size: 14px; }
    .preschool-learn-history { gap: 3px; min-width: 106px; font-size: 13px; }
    .preschool-learn-history > span:first-child { font-size: 17px; }
    .preschool-quiz-plant { display: none; }
}

/* v2.5.309：仅学前启蒙 Banner 左侧女孩英语学习主视觉的比例修正。 */
.preschool-page .preschool-hero {
    padding-top: 12px;
    padding-bottom: 12px;
}

.preschool-page .preschool-hero-kid {
    align-self: center;
    height: 262px;
    overflow: visible;
}

.preschool-page .preschool-hero-kid img {
    display: block;
    width: 172px;
    max-width: none;
    height: auto;
    max-height: none;
    object-fit: contain;
    object-position: center center;
    filter: drop-shadow(0 9px 9px rgba(166, 89, 107, .16));
}

@media (max-width: 1180px) {
    .preschool-page .preschool-hero-kid { height: 202px; }
    .preschool-page .preschool-hero-kid img { width: auto; height: 202px; }
}

@media (max-width: 820px) {
    .preschool-page .preschool-hero-kid { right: 12px; bottom: 4px; height: 164px; }
    .preschool-page .preschool-hero-kid img { height: 164px; }
}

@media (max-width: 490px) {
    .preschool-page .preschool-hero-kid { right: 5px; bottom: 2px; height: 118px; }
    .preschool-page .preschool-hero-kid img { height: 118px; }
}

/* v2.5.357：仅学前首页 Banner 的宽屏三栏排版。 */
.preschool-page .preschool-hero {
    display: grid;
    grid-template-columns: minmax(210px, 20fr) minmax(355px, 36fr) minmax(430px, 44fr);
    align-items: stretch;
    gap: clamp(22px, 2.4vw, 38px);
    min-height: clamp(520px, 38vw, 580px);
    padding: clamp(27px, 2.5vw, 38px);
    background:
        radial-gradient(circle at 7% 18%, rgba(255,255,255,.92) 0 4px, transparent 34px),
        radial-gradient(circle at 91% 82%, rgba(255,255,255,.82) 0 4px, transparent 37px),
        linear-gradient(108deg, #fff6fa 0%, #ffeff6 46%, #fff9fb 100%);
}

.preschool-page .preschool-hero-kid {
    display: flex;
    height: auto;
    min-height: 0;
    align-self: center;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.preschool-page .preschool-hero-kid img {
    display: block;
    width: min(130%, 328px);
    height: auto;
    max-height: 440px;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: transparent;
    box-shadow: 0 12px 24px rgba(178, 101, 126, .15);
    object-fit: contain;
    object-position: center;
    filter: none;
}

.preschool-page .preschool-hero-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-self: center;
    padding: 3px 0;
}

.preschool-page .preschool-title-row { gap: 16px; flex-wrap: nowrap; }
.preschool-page .preschool-title-row h1 { font-size: clamp(45px, 4.45vw, 68px); letter-spacing: 3px; }
.preschool-page .preschool-title-row span { padding: 10px 19px; font-size: clamp(16px, 1.45vw, 21px); }
.preschool-page .preschool-hero-subtitle { margin: 14px 0 24px; font-size: clamp(23px, 2.18vw, 31px); }

.preschool-hero-data-cards {
    display: grid;
    width: min(100%, 385px);
    gap: 13px;
}

.preschool-hero-data-card {
    display: flex;
    min-height: 59px;
    align-items: center;
    gap: 16px;
    padding: 0 22px;
    border: 1px solid #f6e8ee;
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 6px 14px rgba(140, 78, 99, .06);
    color: #fb3b83;
    font-size: clamp(17px, 1.55vw, 21px);
    font-weight: 900;
}

.preschool-hero-data-card b { font-size: 24px; line-height: 1; }
.preschool-hero-data-card--themes { color: #28ab32; }

.preschool-hero-review-row { width: min(100%, 385px); margin-top: 17px; }
.preschool-page .preschool-hero-review {
    display: flex;
    width: 100%;
    min-height: 57px;
    box-sizing: border-box;
    justify-content: center;
    padding: 0 17px;
    border-radius: 17px;
    font-size: 16px;
}

.preschool-hero-actions {
    display: flex;
    width: min(100%, 385px);
    gap: 13px;
    margin-top: 17px;
}

.preschool-page .preschool-hero-actions > * {
    display: inline-flex;
    min-width: 0;
    min-height: 57px;
    flex: 1 1 0;
    align-items: center;
    justify-content: center;
    padding: 0 15px;
    border-radius: 17px;
    box-sizing: border-box;
    font-size: 16px;
    font-weight: 900;
}

.preschool-page .preschool-hero-actions .preschool-hero-continue { background: #fff; }
.preschool-page .preschool-hero-actions .preschool-hero-restart { background: #fff9fb; }

.preschool-page .preschool-hero-intro {
    display: flex;
    min-width: 0;
    min-height: 442px;
    flex-direction: column;
    align-self: center;
    gap: 14px;
    margin: 0;
    padding: 25px 30px 25px;
    border: 1px solid rgba(255,255,255,.92);
    border-radius: 25px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 12px 25px rgba(162, 91, 119, .08);
}

.preschool-hero-intro-heading {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 18px;
    text-align: center;
}

.preschool-hero-intro-heading > div { flex: 1; min-width: 0; }
.preschool-hero-intro-heading h2 { margin: 0; color: #f62f7c; font-size: clamp(20px, 1.9vw, 28px); line-height: 1.28; }
.preschool-page .preschool-hero-intro .preschool-hero-intro-heading p { margin: 8px 0 0; color: #203756; font-size: clamp(15px, 1.34vw, 19px); font-weight: 800; line-height: 1.35; }
.preschool-hero-star { flex: 0 0 auto; color: #ffbf20; font-size: 38px; line-height: .9; transform: rotate(11deg); }

.preschool-hero-feature-list {
    display: grid;
    gap: 0;
    margin: 0;
    padding: 0;
    list-style: none;
}

.preschool-hero-feature-list li {
    display: flex;
    min-height: 61px;
    align-items: center;
    gap: 15px;
    padding: 9px 0;
    border-bottom: 1px dashed #f8dbe7;
}

.preschool-hero-feature-list li:last-child { border-bottom: 0; }
.preschool-hero-feature-icon {
    display: grid;
    width: 51px;
    height: 51px;
    flex: 0 0 auto;
    place-items: center;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}
.preschool-hero-feature-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.preschool-hero-feature-list strong { display: block; color: #233955; font-size: clamp(16px, 1.45vw, 20px); line-height: 1.2; }
.preschool-hero-feature-list small { display: block; margin-top: 4px; color: #7c8796; font-size: clamp(13px, 1.16vw, 16px); font-weight: 700; line-height: 1.25; }

.preschool-hero-tip {
    display: flex;
    min-height: 54px;
    align-items: center;
    gap: 12px;
    margin-top: auto;
    padding: 0 16px;
    border-radius: 14px;
    background: linear-gradient(90deg, #fff2b9, #fff8df);
    color: #5c6170;
}

.preschool-hero-tip > span { color: #ffb900; font-size: 25px; }
.preschool-hero-tip > strong { min-width: 0; flex: 1; font-size: clamp(13px, 1.16vw, 16px); line-height: 1.3; }
.preschool-page .preschool-hero-bear { display: flex; width: 78px; height: 62px; flex: 0 0 auto; align-items: flex-end; justify-content: flex-end; }
.preschool-page .preschool-hero-bear > span { position: relative; z-index: 1; font-size: 49px; line-height: 1; filter: drop-shadow(0 4px 4px rgba(170, 112, 47, .12)); }
.preschool-page .preschool-hero-bear > b { position: relative; z-index: 2; width: 27px; margin-left: -13px; margin-bottom: 1px; padding: 4px 1px; border: 2px solid #28a35c; border-radius: 4px; background: #4dbf70; color: #ffe263; font-size: 8px; line-height: .75; text-align: center; transform: rotate(-8deg); }

@media (max-width: 1180px) {
    .preschool-page .preschool-hero {
        grid-template-columns: minmax(180px, .33fr) minmax(0, .67fr);
        min-height: 0;
    }
    .preschool-page .preschool-hero-kid img { width: min(122%, 275px); max-height: 360px; }
    .preschool-page .preschool-hero-intro { grid-column: 1 / -1; min-height: 0; }
}

@media (max-width: 820px) {
    .preschool-page .preschool-hero { grid-template-columns: 1fr; gap: 22px; padding: 24px; }
    .preschool-page .preschool-hero-kid { position: static; height: auto; opacity: 1; }
    .preschool-page .preschool-hero-kid img { width: min(210px, 72vw); max-height: none; }
    .preschool-page .preschool-hero-copy { align-items: center; text-align: center; }
    .preschool-page .preschool-title-row { justify-content: center; }
    .preschool-page .preschool-hero-subtitle { white-space: normal; }
    .preschool-page .preschool-hero-intro { grid-column: auto; width: 100%; box-sizing: border-box; }
}

@media (max-width: 490px) {
    .preschool-page .preschool-hero { padding: 18px; border-radius: 20px; }
    .preschool-page .preschool-title-row { gap: 9px; flex-wrap: wrap; }
    .preschool-page .preschool-title-row h1 { font-size: 42px; }
    .preschool-page .preschool-title-row span { padding: 8px 13px; font-size: 15px; }
    .preschool-page .preschool-hero-subtitle { margin: 10px 0 18px; font-size: 21px; }
    .preschool-page .preschool-hero-data-card { min-height: 51px; padding: 0 15px; font-size: 16px; }
    .preschool-page .preschool-hero-review { min-height: 49px; font-size: 14px; }
    .preschool-page .preschool-hero-actions > * { min-height: 48px; padding: 0 9px; font-size: 14px; }
    .preschool-page .preschool-hero-intro { padding: 20px 17px; border-radius: 20px; }
    .preschool-hero-intro-heading h2 { font-size: 20px; }
    .preschool-hero-star { font-size: 30px; }
    .preschool-hero-feature-list li { gap: 11px; }
    .preschool-hero-feature-icon { width: 43px; height: 43px; }
    .preschool-hero-tip { padding: 9px 12px; }
    .preschool-page .preschool-hero-bear { width: 58px; height: 51px; }
    .preschool-page .preschool-hero-bear > span { font-size: 41px; }
}

/* v2.5.437：首页 A-Z Premium Soft Silicone：柔和儿童硅胶质感，无皮革纹理与缝线。 */
.preschool-page .preschool-letter-button {
    position: relative;
    isolation: isolate;
    border-color: hsl(var(--letter-hue) 66% 76% / .5) !important;
    background:
        linear-gradient(180deg, rgba(255, 253, 248, .05) 0 15%, transparent 15%),
        linear-gradient(155deg, hsl(var(--letter-hue) 80% 62%), hsl(var(--letter-hue) 71% 50%)) !important;
    box-shadow:
        inset 0 1px 0 rgba(255, 253, 248, .055),
        inset 0 -4px 0 hsl(var(--letter-hue) 57% 37% / .2),
        0 2px 4px rgba(52, 45, 63, .06) !important;
    color: #fffdf8 !important;
    text-shadow: none !important;
    transition: transform .16s ease, filter .16s ease, box-shadow .16s ease, background .16s ease;
}

.preschool-page .preschool-letter-button::after {
    content: none;
}

.preschool-page .preschool-letter-button:hover,
.preschool-page .preschool-letter-button:focus,
.preschool-page .preschool-letter-button:focus-visible {
    box-shadow:
        inset 0 1px 0 rgba(255, 253, 248, .06),
        inset 0 -4px 0 hsl(var(--letter-hue) 57% 37% / .2),
        0 3px 5px rgba(52, 45, 63, .07) !important;
    filter: saturate(.94) brightness(1.035) !important;
    transform: translateY(-2px) scale(1.02);
}

.preschool-page .preschool-letter-button:active {
    box-shadow:
        inset 0 1px 0 rgba(255, 253, 248, .04),
        inset 0 -2px 0 hsl(var(--letter-hue) 57% 37% / .19) !important;
    filter: saturate(.92) brightness(.99) !important;
    transform: translateY(2px) scale(.99);
}

/* v2.5.438：首个场景学习单元（日常交流）沿用学前七阶段组件，仅提供场景入口与键盘拼写控件。 */
.scene-learning-entry {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    gap: 24px;
    align-items: center;
    padding: 32px;
    border: 1px solid #dcebd5;
    border-radius: 24px;
    background: #f8fff5;
    box-shadow: 0 12px 28px rgba(70, 118, 65, .08);
}

.scene-learning-entry-icon { font-size: 42px; }
.scene-learning-entry-category { margin: 0 0 6px; color: #68a84a; font-weight: 800; }
.scene-learning-entry h2 { margin: 0; color: #263b59; font-size: 28px; }
.scene-learning-entry p:not(.scene-learning-entry-category) { margin: 8px 0 0; color: #64748b; }
.scene-learning-entry-progress { color: #426c37 !important; font-weight: 800; }
.scene-learning-entry-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
.scene-learning-entry-actions a,
.body-complete-stage-actions a {
    display: inline-flex;
    min-height: 46px;
    align-items: center;
    justify-content: center;
    padding: 0 21px;
    border-radius: 999px;
    background: #65ae45;
    color: #fff;
    font-weight: 800;
    text-decoration: none;
}
.scene-learning-entry-actions .scene-learning-restart,
.scene-learning-entry-actions .scene-learning-manage,
.body-complete-stage-actions .is-secondary { background: #fff; border: 1px solid #cfe0c8; color: #4d7c3e; }
.body-complete-stage-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 20px; }
.body-keyboard-spelling-stage { display: grid; justify-items: center; }
.body-keyboard-spelling-input-label { color: #53677f; font-size: 17px; font-weight: 800; }
.body-keyboard-spelling-input { width: min(360px, 90%); min-height: 54px; box-sizing: border-box; margin-top: 12px; padding: 0 18px; border: 2px solid #ff9abd; border-radius: 15px; color: #263b59; font: inherit; font-size: 22px; font-weight: 800; text-align: center; outline: none; }
.body-keyboard-spelling-input:focus { border-color: #f54989; box-shadow: 0 0 0 3px rgba(245, 73, 137, .13); }
.body-keyboard-spelling-input.wrong { border-color: #ef6b6b; }
@media (max-width: 720px) {
    .scene-learning-entry { grid-template-columns: 1fr; justify-items: center; text-align: center; }
.scene-learning-entry-actions { justify-content: center; }
}

/* v2.5.439：仅场景英语「日常交流」第一阶段使用热带岛屿度假视觉；不影响其它场景和学前题型。 */
.scene-daily-tropical-sidebar { display: none; }

@media (min-width: 981px) {
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) {
        min-height: 100vh;
        background: #9cdcf0 url("/static/assets/scene-english/daily-conversation-tropical-v25439.png") center center / cover fixed no-repeat;
    }

    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .page {
        min-height: 100vh;
        margin: 0;
        padding: 0 34px 28px 360px;
    }

    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .sound-toggle,
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .app-version {
        display: none;
    }

    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-sidebar {
        position: fixed;
        z-index: 20;
        inset: 0 auto 0 0;
        display: flex;
        width: 308px;
        box-sizing: border-box;
        flex-direction: column;
        padding: 36px 24px 30px;
        background: rgba(246, 252, 255, .76);
        box-shadow: 9px 0 26px rgba(44, 102, 119, .06);
        backdrop-filter: blur(14px);
        color: #15221e;
    }

    .scene-daily-tropical-brand { display: flex; align-items: center; gap: 15px; margin: 7px 10px 62px; }
    .scene-daily-tropical-brand > span { font-size: 50px; line-height: 1; filter: drop-shadow(0 5px 4px rgba(105, 44, 23, .14)); }
    .scene-daily-tropical-brand strong,
    .scene-daily-tropical-brand small { display: block; }
    .scene-daily-tropical-brand strong { font-size: 25px; letter-spacing: .02em; }
    .scene-daily-tropical-brand small { margin-top: 6px; color: #33443f; font-size: 16px; }
    .scene-daily-tropical-nav { display: grid; gap: 12px; }
    .scene-daily-tropical-nav a { display: flex; min-height: 52px; align-items: center; gap: 18px; padding: 0 14px; border-radius: 14px; color: #1b2623; font-size: 19px; font-weight: 700; text-decoration: none; transition: background .16s ease, color .16s ease; }
    .scene-daily-tropical-nav a span { display: grid; width: 24px; place-items: center; color: #53625e; font-size: 24px; line-height: 1; }
    .scene-daily-tropical-nav a:hover { background: rgba(255,255,255,.62); }
    .scene-daily-tropical-nav a.is-current { background: rgba(191, 223, 191, .65); color: #327c32; }
    .scene-daily-tropical-nav a.is-current span { color: #378b37; }
    .scene-daily-tropical-streak { position: relative; margin-top: auto; min-height: 170px; padding: 18px 21px; overflow: hidden; border: 1px solid rgba(255,255,255,.68); border-radius: 15px; background: rgba(255,255,255,.62); box-shadow: 0 10px 24px rgba(44, 102, 119, .06); }
    .scene-daily-tropical-streak small,
    .scene-daily-tropical-streak span { display: block; color: #61736b; font-size: 15px; }
    .scene-daily-tropical-streak strong { display: block; margin-top: 11px; color: #267231; font-size: 38px; line-height: 1; }
    .scene-daily-tropical-streak strong em { font-size: 16px; font-style: normal; }
    .scene-daily-tropical-streak span { margin-top: 20px; color: #267231; font-weight: 700; }
    .scene-daily-tropical-streak i { position: absolute; right: 16px; bottom: 24px; font-size: 55px; font-style: normal; }
    .scene-daily-tropical-streak b { display: block; width: 29px; height: 4px; margin-top: 18px; border-radius: 999px; background: #398f38; }

    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-shell {
        width: min(760px, calc(100vw - 408px));
        margin: 38px 0 0;
    }

    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-panel {
        overflow: visible;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
    }

    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-quiz-spark,
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-quiz-plant { display: none; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-header { min-height: 50px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-breadcrumb { color: #203d30; font-size: 17px; font-weight: 800; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-breadcrumb a:first-child { color: #3d8b36; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-breadcrumb a { color: #203d30; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-header-actions { gap: 12px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-add { min-height: 48px; padding: 0 22px; border: 0; border-radius: 24px; background: rgba(255,255,255,.92); box-shadow: 0 3px 12px rgba(30,85,51,.10); color: #317d35; font-size: 16px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-sound { width: 48px; height: 48px; border: 0; border-radius: 50%; background: rgba(255,255,255,.94); box-shadow: 0 3px 12px rgba(30,85,51,.10); color: #378b38; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-heading { margin: 56px 0 20px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-heading > div { display: flex; align-items: center; gap: 20px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-stage-label { display: inline-flex; margin: 0; padding: 8px 16px; border: 0; border-radius: 22px; background: rgba(248,255,247,.84); box-shadow: none; color: #367d35; font-size: 15px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-stage-label span { display: none; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-panel h1 { margin: 0; padding: 0; border: 0; color: #10241b; font-size: 31px; letter-spacing: .01em; text-shadow: 0 1px 1px rgba(255,255,255,.38); }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-panel h1::before { content: none; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-heading p { margin: 13px 0 0; color: #11231c; font-size: 19px; font-weight: 700; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-grid { width: 700px; max-width: 100%; gap: 24px; margin: 0 auto; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-card { min-height: 222px; box-sizing: border-box; justify-content: center; padding: 25px 24px 28px; overflow: hidden; border: 1px solid rgba(255,255,255,.68); border-radius: 21px; background: rgba(255,255,255,.63); box-shadow: 0 8px 24px rgba(15,87,105,.08); backdrop-filter: blur(8px); }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-image { display: none; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-card strong { color: #111; font-size: 30px; line-height: 1.15; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-card > span { margin-top: 11px; color: #2d822f; font-size: 20px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-card em { margin-top: 20px; color: #131b18; font-size: 25px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-card-sound { right: 17px; bottom: 17px; width: 42px; height: 42px; border: 0; background: rgba(255,255,255,.91); color: #348638; box-shadow: 0 2px 8px rgba(23,88,44,.10); }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-card-sound svg { width: 21px; height: 21px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer { margin-top: 58px; padding-top: 0; border: 0; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-progress-group { width: 100%; gap: 18px; color: #13251e; font-size: 20px; font-weight: 900; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-progress { height: 12px; background: rgba(255,255,255,.50); }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-progress i { background: #358e38; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions { width: 100%; margin-top: 30px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button { min-height: 64px; border: 0; border-radius: 12px; box-shadow: 0 5px 12px rgba(19,73,35,.09); font-size: 19px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-words,
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-practice { background: #378d38; color: #fff; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-history { background: rgba(255,255,255,.91); color: #36813a; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-stage-progress { display: none; }
}

/* v2.5.441：日常交流学习页使用 1440px 最大内容层；背景仍由 body 全屏承载。 */
@media (min-width: 981px) {
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .page {
        display: grid;
        grid-template-columns: 248px minmax(0, 1fr);
        width: min(1440px, 100%);
        max-width: 1440px;
        min-height: 100vh;
        margin: 0 auto;
        padding: 0;
        box-sizing: border-box;
    }

    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-sidebar {
        position: sticky;
        inset: 0 auto auto 0;
        z-index: 20;
        width: auto;
        min-height: 100vh;
        padding: 29px 20px 24px;
    }

    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-brand { gap: 12px; margin: 5px 8px 50px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-brand > span { font-size: 42px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-brand strong { font-size: 21px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-brand small { margin-top: 5px; font-size: 13px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-nav { gap: 9px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-nav a { min-height: 43px; gap: 14px; padding: 0 12px; border-radius: 12px; font-size: 16px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-nav a span { width: 20px; font-size: 20px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-streak { min-height: 136px; padding: 15px 17px; border-radius: 13px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-streak small,
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-streak span { font-size: 12px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-streak strong { margin-top: 9px; font-size: 30px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-streak strong em { font-size: 13px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-streak span { margin-top: 16px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-streak i { right: 13px; bottom: 19px; font-size: 44px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-streak b { width: 24px; height: 3px; margin-top: 14px; }

    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-shell {
        width: min(608px, calc(100% - 64px));
        margin: 30px auto 24px;
        justify-self: center;
    }

    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-header { min-height: 40px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-breadcrumb { font-size: 14px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-header-actions { gap: 10px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-add { min-height: 38px; padding: 0 18px; border-radius: 20px; font-size: 13px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-sound { width: 38px; height: 38px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-heading { margin: 45px 0 16px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-heading > div { gap: 16px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-stage-label { padding: 6px 13px; border-radius: 18px; font-size: 12px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-panel h1 { font-size: 25px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-heading p { margin-top: 10px; font-size: 15px; }

    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-grid { width: 560px; gap: 19px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-card { min-height: 178px; padding: 20px 19px 22px; border-radius: 17px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-card strong { font-size: 24px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-card > span { margin-top: 9px; font-size: 16px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-card em { margin-top: 16px; font-size: 20px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-card-sound { right: 14px; bottom: 14px; width: 34px; height: 34px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-card-sound svg { width: 17px; height: 17px; }

    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer {
        display: flex;
        align-items: stretch;
        flex-direction: column;
        gap: 16px;
        margin-top: 46px;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-progress-group { width: 100%; gap: 14px; font-size: 16px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-progress { height: 10px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions {
        display: flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 auto;
        width: 100%;
        margin-top: 0;
        gap: clamp(12px, 1.5vw, 24px);
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button {
        flex: 0 1 clamp(170px, 13vw, 186px);
        width: clamp(170px, 13vw, 186px);
        min-width: 0;
        min-height: 64px;
        border-radius: 10px;
        font-size: 15px;
    }

    /* v2.5.445：仅精修日常交流首组底部贝壳按钮的图标、间距与质感；沿用 v2.5.442 的独立 Flex 布局。 */
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions {
        align-self: center;
        width: 748px;
        max-width: calc(100vw - 340px);
        gap: 24px;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        flex: 0 0 220px;
        width: 220px;
        min-height: 64px;
        padding: 0 10px;
        border: 1px solid rgba(163, 227, 255, .72);
        border-radius: 18px;
        box-shadow:
            0 3px 0 rgba(5, 91, 151, .36),
            0 5px 9px rgba(21, 78, 103, .11),
            inset 0 0 0 2px rgba(206, 244, 255, .18),
            inset 0 1px 0 rgba(255, 255, 255, .22);
        color: #fffdfa;
        font-size: 32px;
        font-weight: 700;
        letter-spacing: .01em;
        line-height: 1;
        overflow: hidden;
        text-shadow: 0 1px 1px rgba(0, 66, 101, .22);
        transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button::before {
        display: block;
        flex: 0 0 46px;
        width: 46px;
        height: 46px;
        margin-right: 17px;
        background: url('/static/assets/scene-english/daily-conversation-pearl-shell-v25444.png') center / contain no-repeat;
        content: "";
        filter: drop-shadow(0 2px 1px rgba(83, 58, 32, .16));
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-words {
        background:
            radial-gradient(ellipse at 12% 118%, rgba(228, 249, 255, .16) 0 10%, transparent 11% 100%),
            radial-gradient(ellipse at 84% 118%, rgba(228, 249, 255, .13) 0 10%, transparent 11% 100%),
            linear-gradient(145deg, rgba(216, 247, 255, .16), transparent 42%),
            linear-gradient(180deg, #2b9fe2 0%, #0875be 76%, #0568aa 100%);
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-practice {
        border-color: rgba(170, 255, 248, .72) !important;
        box-shadow:
            0 3px 0 rgba(9, 132, 130, .36),
            0 5px 9px rgba(18, 96, 101, .11),
            inset 0 0 0 2px rgba(212, 255, 251, .2),
            inset 0 1px 0 rgba(255, 255, 255, .24) !important;
        background:
            radial-gradient(ellipse at 12% 118%, rgba(230, 255, 250, .17) 0 10%, transparent 11% 100%),
            radial-gradient(ellipse at 84% 118%, rgba(230, 255, 250, .15) 0 10%, transparent 11% 100%),
            linear-gradient(145deg, rgba(220, 255, 251, .15), transparent 42%),
            linear-gradient(180deg, #49d4cf 0%, #13afa8 76%, #0f9692 100%);
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-history {
        flex: 0 0 260px !important;
        width: 260px !important;
        border-color: rgba(222, 187, 138, .62) !important;
        background:
            radial-gradient(ellipse at 14% 118%, rgba(242, 210, 169, .14) 0 10%, transparent 11% 100%),
            linear-gradient(145deg, rgba(255, 255, 255, .74), transparent 45%),
            linear-gradient(180deg, #fffdf9 0%, #fff7ec 76%, #faead6 100%);
        box-shadow:
            0 2px 0 rgba(205, 169, 117, .2),
            0 5px 9px rgba(104, 77, 38, .08),
            inset 0 0 0 1px rgba(229, 196, 151, .3),
            inset 0 1px 0 rgba(255, 255, 255, .9) !important;
        color: #168fa3 !important;
        text-shadow: none;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-history > span[aria-hidden="true"] {
        flex: 0 0 auto;
        margin-right: -8px;
        color: currentColor;
        font-size: 16px;
        line-height: 1;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-history > span:not([aria-hidden="true"]) {
        font: inherit;
        white-space: nowrap;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button:hover:not(:disabled) {
        filter: brightness(1.04);
        transform: translateY(-2px);
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button:active:not(:disabled) {
        transform: translateY(1px);
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-history:disabled {
        cursor: default;
        opacity: 1;
    }

    /* v2.5.446：日常交流首组仅将既有底部三按钮替换为贝壳、海星、螃蟹 SVG 轮廓；保持 v2.5.442 的 Flex 布局与交互。 */
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button {
        height: 64px;
        min-height: 64px;
        padding: 0 26px;
        border: 0 !important;
        border-radius: 0;
        box-shadow: none !important;
        color: #fffdfa;
        font-size: 32px !important;
        font-weight: 700;
        line-height: 1;
        overflow: visible;
        text-shadow: 0 1px 1px rgba(0, 66, 101, .2);
        transition: transform 150ms ease, filter 150ms ease;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button::before {
        display: none;
        content: none;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-words {
        flex: 0 0 220px;
        width: 220px;
        background: url('/static/assets/scene-english/daily-conversation-shell-button-v25446.svg') center / 100% 100% no-repeat !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-history {
        flex: 0 0 240px !important;
        width: 240px !important;
        padding: 0 24px;
        background: url('/static/assets/scene-english/daily-conversation-starfish-button-v25446.svg') center / 100% 100% no-repeat !important;
        color: #168fa3 !important;
        text-shadow: none;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions .preschool-learn-practice {
        flex: 0 0 240px !important;
        width: 240px !important;
        background: url('/static/assets/scene-english/daily-conversation-crab-button-v25446.svg') center / 100% 100% no-repeat !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-history > span[aria-hidden="true"] {
        display: inline-flex;
        align-items: center;
        margin-right: 10px;
        font-size: 32px;
        font-weight: 700;
        line-height: 1;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-history > span:not([aria-hidden="true"]) {
        display: inline-flex;
        align-items: center;
        line-height: 1;
    }

    /* v2.5.448：按确认参考图精修日常交流首组的完整扇贝壳、五角海星、蟹壳蟹钳蟹腿轮廓。 */
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions {
        width: 983px;
        max-width: calc(100vw - 340px);
        gap: 24px;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button {
        height: 118px;
        min-height: 118px;
        padding: 0 26px;
        border: 0 !important;
        border-radius: 0;
        box-shadow: none !important;
        color: #168fa3 !important;
        font-size: 29px !important;
        font-weight: 700;
        line-height: 1;
        overflow: visible;
        text-shadow: none;
        transition: transform 150ms ease, filter 150ms ease;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button::before {
        display: none;
        content: none;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-words {
        flex: 0 0 300px !important;
        width: 300px !important;
        background: url('/static/assets/scene-english/daily-conversation-scallop-button-v25448.svg') center / 100% 100% no-repeat !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-history {
        flex: 0 0 310px !important;
        width: 310px !important;
        padding: 0 22px;
        background: url('/static/assets/scene-english/daily-conversation-starfish-button-v25448.svg') center / 100% 100% no-repeat !important;
        color: #168fa3 !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions .preschool-learn-practice {
        flex: 0 0 325px !important;
        width: 325px !important;
        background: url('/static/assets/scene-english/daily-conversation-crab-button-v25448.svg') center / 100% 100% no-repeat !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-history > span[aria-hidden="true"] {
        margin-right: 7px;
        font-size: 29px;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button:hover:not(:disabled) {
        filter: brightness(1.025);
        transform: translateY(-2px);
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button:active:not(:disabled) {
        transform: translateY(1px);
    }
}

@media (min-width: 981px) and (max-width: 1120px) {
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions {
        width: 100%;
        max-width: none;
        gap: 12px;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button {
        flex: 1 1 0;
        width: auto;
        min-width: 0;
        padding: 0 6px;
        font-size: clamp(18px, 2.5vw, 24px);
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button::before {
        flex-basis: 28px;
        width: 28px;
        height: 28px;
        margin-right: 5px;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-history > span[aria-hidden="true"] {
        display: none;
    }
}

/* v2.5.450：海岛照片是页面主背景；透明度只属于内容组件，避免整页被全局蒙层洗白。 */
body.scene-home-page {
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(220, 244, 250, .22), rgba(255, 247, 231, .16)),
        url("/static/assets/scene-english/daily-conversation-tropical-v25439.png") center / cover fixed no-repeat;
}

body.scene-daily-detail-page {
    min-height: 100vh;
    background: #9cdcf0 url("/static/assets/scene-english/daily-conversation-tropical-v25439.png") center / cover fixed no-repeat;
}

body.scene-home-page .page,
body.scene-daily-detail-page .page { background: transparent; }

/* 首页 Hero 只保留既有标题、副标题和搜索框坐标，去除旧的蘑菇老师插画 Banner。 */
body.scene-home-page .scene-hero {
    background: transparent;
    border-color: transparent;
    box-shadow: none;
}

body.scene-home-page .scene-hero::before { display: none; }

body.scene-home-page .vault-sidebar,
body.scene-daily-detail-page .vault-sidebar {
    background: rgba(255, 255, 255, .82);
    border-color: rgba(255, 255, 255, .82);
    box-shadow: 0 12px 30px rgba(19, 104, 125, .08);
    backdrop-filter: blur(12px);
}

body.scene-home-page .scene-toolbar,
body.scene-home-page .scene-directory > h2,
body.scene-daily-detail-page .scene-page-header { position: relative; z-index: 1; }

body.scene-home-page .scene-card {
    background: color-mix(in srgb, var(--scene-surface) 72%, rgba(255, 255, 255, .82));
    border-color: color-mix(in srgb, var(--scene-accent) 18%, rgba(255, 255, 255, .9));
    box-shadow: 0 8px 20px rgba(21, 104, 125, .06);
    backdrop-filter: blur(8px);
}

body.scene-home-page .scene-filter {
    background: rgba(255, 255, 255, .82);
    border-color: rgba(190, 224, 221, .76);
}

body.scene-home-page .scene-filter:hover,
body.scene-home-page .scene-filter.is-active {
    border-color: #2aa7a1;
    background: #2aa7a1;
}

body.scene-daily-detail-page .scene-detail-card,
body.scene-daily-detail-page .scene-learning-entry {
    border-color: rgba(255, 255, 255, .72);
    background: rgba(255, 253, 246, .82);
    box-shadow: 0 12px 28px rgba(16, 101, 122, .10);
    backdrop-filter: blur(14px);
}

body.scene-daily-detail-page .scene-detail-card { --scene-accent: #238eab; --scene-icon-surface: rgba(206, 246, 244, .86); }
body.scene-daily-detail-page .scene-learning-entry-category,
body.scene-daily-detail-page .scene-learning-entry-progress { color: #218894 !important; }
body.scene-daily-detail-page .scene-learning-entry-actions a { background: #218f9b; }
body.scene-daily-detail-page .scene-learning-entry-actions .scene-learning-restart,
body.scene-daily-detail-page .scene-learning-entry-actions .scene-learning-manage {
    border-color: rgba(34, 143, 155, .34);
    background: rgba(255, 255, 255, .84);
    color: #197e8c;
}

/* v2.5.452：场景英语统一采用 1440px 画布与 1200px 标准内容层；背景继续由 body 全屏承载。 */
@media (min-width: 981px) {
    body.scene-english-layout {
        --scene-canvas-width: 1440px;
        --scene-content-width: 1200px;
    }

    body.scene-english-layout .page {
        width: min(var(--scene-canvas-width), 100%);
        max-width: var(--scene-canvas-width);
        min-height: 100vh;
        margin-right: auto;
        margin-left: auto;
        box-sizing: border-box;
    }

    /* 首页与详情页共用 1200px 内容层，Hero 内部文案与搜索框仍按原组件坐标排版。 */
    body.scene-page.scene-english-layout .page {
        padding: 24px 20px 48px;
    }

    body.scene-page.scene-english-layout .scene-shell {
        width: min(var(--scene-content-width), 100%);
        margin-right: auto;
        margin-left: auto;
    }

    /* 学习页的导航、题区、进度和全部七阶段同属一个 1440px Grid。 */
    body.scene-english-learning-page .page {
        display: grid;
        grid-template-columns: 248px minmax(0, 1fr);
        align-items: start;
        padding: 0;
        background: transparent;
    }

    body.scene-english-learning-page .scene-daily-tropical-sidebar {
        position: sticky;
        inset: 0 auto auto 0;
        z-index: 20;
        display: flex;
        width: auto;
        min-height: 100vh;
        box-sizing: border-box;
        flex-direction: column;
        padding: 29px 20px 24px;
    }

    body.scene-english-learning-page .preschool-learn-shell {
        position: relative;
        justify-self: center;
        margin: 30px auto 24px;
    }
}

@media (min-width: 981px) {
    /* 首阶段已有独立稳定海岛布局；这里仅覆盖其余六阶段。 */
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) {
        min-height: 100vh;
        background: #9cdcf0 url("/static/assets/scene-english/daily-conversation-tropical-v25439.png") center / cover fixed no-repeat;
    }

    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .page {
        min-height: 100vh;
        background: transparent;
    }

    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-learn-shell {
        position: relative;
        z-index: 1;
    }

    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-quiz-spark,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-quiz-plant { display: none; }

    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-learn-breadcrumb a:first-child,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-stage-label,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-stage-label span { color: #168fa3; }

    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-stage-label {
        border-color: rgba(57, 175, 181, .28);
        background: rgba(242, 255, 253, .82);
    }

    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-stage-label span { background: rgba(204, 246, 240, .9); }
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-learn-panel h1 { border-bottom-color: rgba(35, 184, 178, .62); }
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-learn-panel h1::before { color: #23b8b2; }

    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-learn-add,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-learn-sound {
        border-color: rgba(34, 154, 169, .42);
        background: rgba(255, 255, 255, .78);
        color: #188e9d;
    }

    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-choice,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-match-word,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-match-image,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-match-translation {
        border-color: rgba(255, 255, 255, .82);
        background: rgba(255, 254, 249, .78);
        box-shadow: 0 5px 14px rgba(17, 101, 119, .07);
    }

    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-choice:hover,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-match-word:hover,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-match-image:hover,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-match-translation:hover {
        border-color: rgba(31, 169, 176, .55);
        background: rgba(248, 255, 253, .94);
    }
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-question-prompt .body-stage-sound {
        border-color: rgba(35, 184, 178, .36);
        background: rgba(237, 255, 252, .78);
        color: #168fa3;
    }

    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-choice.correct,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-match-word.matched,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-match-image.matched,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-match-translation.matched {
        border-color: rgba(59, 161, 107, .64);
        background: rgba(238, 255, 241, .88);
        color: #277a55;
    }

    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-keyboard-spelling-input {
        border-color: rgba(31, 159, 169, .55);
        background: rgba(255, 255, 255, .82);
    }
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-keyboard-spelling-input:focus { border-color: #168fa3; box-shadow: 0 0 0 3px rgba(22, 143, 163, .14); }
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-sound-word-choice,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-letter-choice {
        border-color: rgba(255, 255, 255, .78);
        background: rgba(255, 254, 249, .8);
        box-shadow: 0 4px 12px rgba(17, 101, 119, .07);
    }

    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-learn-footer { border-top-color: rgba(71, 176, 183, .28); }
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-learn-progress { background: rgba(255, 255, 255, .62); }
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-learn-progress i { background: linear-gradient(90deg, #2397b3, #2ab8ad); }
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-learn-words,
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-learn-practice {
        background: linear-gradient(135deg, #168fc4, #23b8b2) !important;
        color: #fff !important;
    }
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .preschool-learn-history {
        border-color: rgba(211, 180, 130, .44) !important;
        background: rgba(255, 250, 238, .9) !important;
        color: #187f92 !important;
    }
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-stage-progress-tile.is-current > button { color: #168fa3 !important; }
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-stage-progress-tile.is-current .body-stage-progress-icon { filter: drop-shadow(0 5px 9px rgba(35, 184, 178, .28)) saturate(1.02); }
    body.scene-daily-learning-page:not(:has(.preschool-learn-shell[data-stage="0"])) .body-stage-progress-tile > button:focus-visible { outline-color: rgba(22, 143, 163, .24); }
}

/* v2.5.454: Scene English uses text/audio choices instead of preschool image prompts. */
body.scene-english-learning-page .body-match-translations {
    display: grid;
    gap: 22px;
}

body.scene-english-learning-page .body-match-translation {
    display: flex;
    min-height: 60px;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 16px;
    background: rgba(255, 254, 249, .78);
    color: #173b58;
    font: inherit;
    font-size: clamp(18px, 1.55vw, 24px);
    font-weight: 700;
    cursor: pointer;
}

body.scene-english-learning-page .body-match-translation.selected,
body.scene-english-learning-page .body-match-translation:hover {
    border-color: rgba(31, 169, 176, .55);
    background: rgba(248, 255, 253, .94);
}

body.scene-english-learning-page .body-choice {
    justify-content: center;
    text-align: center;
}

body.scene-english-learning-page .body-choice > span {
    width: 100%;
    text-align: center;
}

body.scene-english-learning-page .body-sentence-cloze {
    width: min(720px, 100%);
    margin: 6px 0 8px;
    color: #173b58;
    font-size: clamp(24px, 2vw, 30px);
    font-weight: 600;
    line-height: 1.5;
    text-align: center;
}

body.scene-english-learning-page .body-sentence-cloze-blank {
    display: inline-block;
    width: var(--cloze-width, 3ch);
    min-width: 3ch;
    height: 1.05em;
    margin: 0 .08em;
    vertical-align: -.08em;
    border-bottom: 3px solid #168fa3;
    color: transparent;
    letter-spacing: 0;
    white-space: nowrap;
}

body.scene-english-learning-page .body-sound-word-stage {
    position: relative;
    padding-top: 96px;
}

body.scene-english-learning-page .scene-sentence-translation-bubble {
    position: absolute;
    top: 8px;
    right: max(12px, 3%);
    z-index: 1;
    width: min(284px, calc(100% - 24px));
    margin: 0;
    padding: 12px 18px 13px;
    border: 1px solid rgba(98, 192, 196, .5);
    border-radius: 19px 19px 5px 19px;
    background: rgba(255, 255, 250, .95);
    box-shadow: 0 7px 18px rgba(16, 112, 136, .14);
    color: #173b58;
    text-align: left;
}

body.scene-english-learning-page .scene-sentence-translation-bubble::after {
    position: absolute;
    right: 16px;
    bottom: -8px;
    width: 14px;
    height: 14px;
    border-right: 1px solid rgba(98, 192, 196, .5);
    border-bottom: 1px solid rgba(98, 192, 196, .5);
    background: rgba(255, 255, 250, .95);
    content: "";
    transform: rotate(45deg);
}

body.scene-english-learning-page .scene-sentence-translation-bubble > span {
    position: relative;
    z-index: 1;
    display: block;
    margin-bottom: 3px;
    color: #168fa3;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .04em;
}

body.scene-english-learning-page .scene-sentence-translation-bubble > p {
    position: relative;
    z-index: 1;
    margin: 0;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.4;
}

/* 首阶段曾有更高优先级的独立海岛覆盖；在此明确回归上述公共主卡。 */
@media (min-width: 981px) {
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-shell {
        width: min(760px, calc(100vw - 320px));
        margin: 30px auto 24px;
        justify-self: center;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-panel {
        overflow: hidden;
        padding: 20px 30px 16px;
        border: 1px solid rgba(255, 255, 255, .68);
        border-radius: 20px;
        background: rgba(255, 253, 246, .82);
        box-shadow: 0 12px 30px rgba(13, 93, 111, .12);
        backdrop-filter: blur(12px);
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-header { min-height: 40px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-breadcrumb a:first-child { color: #168fa3; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-breadcrumb a { color: #71676d; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-add { min-height: 33px; padding: 0 9px; border: 1px solid rgba(34, 154, 169, .42); border-radius: 999px; background: rgba(255, 255, 255, .78); box-shadow: none; color: #188e9d; font-size: 12px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-sound { width: 40px; height: 40px; border: 1.5px solid rgba(34, 154, 169, .42); background: rgba(255, 255, 255, .78); box-shadow: none; color: #188e9d; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-heading { margin: 0; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-heading > div { display: block; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-stage-label { display: inline-flex; margin-top: 12px; padding: 4px 10px 4px 5px; border: 1px solid rgba(57, 175, 181, .28); border-radius: 999px; background: rgba(242, 255, 253, .82); box-shadow: 0 2px 6px rgba(35, 184, 178, .08); color: #168fa3; font-size: 12px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-stage-label span { display: grid; width: 21px; height: 21px; background: rgba(204, 246, 240, .9); color: #168fa3; font-size: 12px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-panel h1 { display: inline-block; margin: 13px 0; padding-bottom: 8px; border-bottom: 2px dotted rgba(35, 184, 178, .62); color: #263c59; font-size: clamp(25px, 3vw, 31px); letter-spacing: .3px; text-shadow: none; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-panel h1::before { content: "•"; margin-right: 7px; color: #23b8b2; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .scene-daily-tropical-heading p { margin: 0 0 12px; color: #5d6c80; font-size: 15px; font-weight: 700; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer { align-items: center; flex-direction: row; gap: 14px; margin-top: 14px; padding-top: 11px; border-top: 1px solid rgba(71, 176, 183, .28); }
}

/* v2.5.457：日常交流七阶段共用同一张学习主卡；首阶段仅替换卡内题型内容。 */
@media (min-width: 981px) {
    body.scene-daily-learning-page {
        min-height: 100vh;
        background: #9cdcf0 url("/static/assets/scene-english/daily-conversation-tropical-v25439.png") center / cover fixed no-repeat;
    }

    body.scene-daily-learning-page .page {
        min-height: 100vh;
        background: transparent;
    }

    body.scene-daily-learning-page .preschool-learn-shell {
        width: min(760px, calc(100vw - 320px));
        margin: 30px auto 24px;
        justify-self: center;
        z-index: 1;
    }

    body.scene-daily-learning-page .preschool-learn-panel {
        overflow: hidden;
        padding: 20px 30px 16px;
        border: 1px solid rgba(255, 255, 255, .68);
        border-radius: 20px;
        background: rgba(255, 253, 246, .82);
        box-shadow: 0 12px 30px rgba(13, 93, 111, .12);
        backdrop-filter: blur(12px);
    }

    body.scene-daily-learning-page .preschool-quiz-spark,
    body.scene-daily-learning-page .preschool-quiz-plant { display: none; }

    body.scene-daily-learning-page .preschool-learn-breadcrumb a:first-child,
    body.scene-daily-learning-page .preschool-stage-label,
    body.scene-daily-learning-page .preschool-stage-label span { color: #168fa3; }

    body.scene-daily-learning-page .preschool-stage-label {
        margin-top: 12px;
        padding: 4px 10px 4px 5px;
        border-color: rgba(57, 175, 181, .28);
        background: rgba(242, 255, 253, .82);
        box-shadow: 0 2px 6px rgba(35, 184, 178, .08);
        font-size: 12px;
    }

    body.scene-daily-learning-page .preschool-stage-label span {
        display: grid;
        width: 21px;
        height: 21px;
        background: rgba(204, 246, 240, .9);
        font-size: 12px;
    }

    body.scene-daily-learning-page .scene-daily-tropical-heading { margin: 0; }
    body.scene-daily-learning-page .scene-daily-tropical-heading > div {
        display: block;
    }
    body.scene-daily-learning-page .preschool-learn-panel h1 {
        display: inline-block;
        margin: 13px 0;
        padding-bottom: 8px;
        border-bottom: 2px dotted rgba(35, 184, 178, .62);
        color: #263c59;
        font-size: clamp(25px, 3vw, 31px);
        letter-spacing: .3px;
        text-shadow: none;
    }
    body.scene-daily-learning-page .preschool-learn-panel h1::before {
        content: "•";
        margin-right: 7px;
        color: #23b8b2;
    }
    body.scene-daily-learning-page .scene-daily-tropical-heading p {
        margin: 0 0 12px;
        color: #5d6c80;
        font-size: 15px;
        font-weight: 700;
    }

    body.scene-daily-learning-page .preschool-learn-add,
    body.scene-daily-learning-page .preschool-learn-sound {
        border-color: rgba(34, 154, 169, .42);
        background: rgba(255, 255, 255, .78);
        color: #188e9d;
    }

    body.scene-daily-learning-page .preschool-learn-footer {
        align-items: center;
        gap: 14px;
        margin-top: 14px;
        padding-top: 11px;
        border-top-color: rgba(71, 176, 183, .28);
    }
    body.scene-daily-learning-page .preschool-learn-progress { background: rgba(255, 255, 255, .62); }
    body.scene-daily-learning-page .preschool-learn-progress i { background: linear-gradient(90deg, #2397b3, #2ab8ad); }
    body.scene-daily-learning-page .preschool-learn-words,
    body.scene-daily-learning-page .preschool-learn-practice {
        background: linear-gradient(135deg, #168fc4, #23b8b2) !important;
        color: #fff !important;
    }
    body.scene-daily-learning-page .preschool-learn-history {
        border-color: rgba(211, 180, 130, .44) !important;
        background: rgba(255, 250, 238, .9) !important;
        color: #187f92 !important;
    }

    /* 单词学习仍保留四词卡与海洋按钮，但它们全部位于同一张标准主卡内。 */
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-grid {
        width: 100%;
        gap: 12px;
        margin: 0;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-card {
        min-height: 140px;
        padding: 14px 15px;
        border: 1px solid rgba(255, 255, 255, .82);
        border-radius: 18px;
        background: rgba(255, 254, 249, .78);
        box-shadow: 0 5px 14px rgba(17, 101, 119, .07);
        backdrop-filter: none;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-card strong { color: #223856; font-size: 23px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-card > span { margin-top: 2px; color: #168fa3; font-size: 15px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-card em { margin-top: 2px; color: #53617a; font-size: 18px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-card-sound {
        right: 10px;
        bottom: 10px;
        width: 30px;
        height: 30px;
        border: 1px solid rgba(35, 184, 178, .28);
        background: rgba(255, 255, 255, .9);
        color: #168fa3;
        box-shadow: none;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-card-sound svg { width: 15px; height: 15px; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions {
        width: auto;
        margin-top: 0;
        display: flex;
        grid-template-columns: none;
        gap: 6px;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer-actions button {
        height: 68px;
        min-height: 68px;
        padding: 0 8px;
        font-size: 15px !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-words {
        flex: 0 0 112px !important;
        width: 112px !important;
        background: url('/static/assets/scene-english/daily-conversation-scallop-button-v25448.svg') center / 100% 100% no-repeat !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-history {
        flex: 0 0 128px !important;
        width: 128px !important;
        padding: 0 8px;
        background: url('/static/assets/scene-english/daily-conversation-starfish-button-v25448.svg') center / 100% 100% no-repeat !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-practice {
        flex: 0 0 134px !important;
        width: 134px !important;
        background: url('/static/assets/scene-english/daily-conversation-crab-button-v25448.svg') center / 100% 100% no-repeat !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-history > span[aria-hidden="true"] {
        display: none;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-stage-progress { display: flex; }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .app-version { display: block; }

    /* 统一的卡片高度与底部锚点，让切换阶段时外框、进度和阶段导航不跳动。 */
    body.scene-daily-learning-page .preschool-learn-panel {
        display: flex;
        min-height: 569px;
        flex-direction: column;
    }
    body.scene-daily-learning-page .preschool-body-stage { flex: 1 1 auto; }
    body.scene-daily-learning-page .preschool-learn-footer {
        min-height: 80px;
        margin-top: auto;
        box-sizing: border-box;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .preschool-learn-footer { margin-top: auto; }
}

/* v2.5.459：仅场景英语学习页左侧工具栏使用漂流木与帆布视觉；真实导航 DOM、页面 Grid 与学习区域均不变。 */
@media (min-width: 981px) {
    body.scene-english-learning-page .scene-daily-tropical-sidebar {
        position: sticky;
        isolation: isolate;
        overflow: visible;
        background:
            linear-gradient(90deg, rgba(228, 248, 250, .82), rgba(244, 250, 246, .36) 74%, transparent);
        box-shadow: inset -1px 0 rgba(118, 193, 202, .24);
    }

    body.scene-english-learning-page .scene-daily-tropical-brand {
        position: relative;
        z-index: 2;
        gap: 10px;
        margin: 0 5px 23px;
    }
    body.scene-english-learning-page .scene-daily-tropical-brand > span {
        width: 60px;
        height: 60px;
        flex: 0 0 60px;
        font-size: 0;
        background: url('/static/assets/scene-english/stage-ocean/learn-book-abc.png') center / contain no-repeat;
        filter: drop-shadow(0 4px 4px rgba(29, 95, 121, .17));
    }
    body.scene-english-learning-page .scene-daily-tropical-brand strong {
        color: #192b36;
        font-size: 20px;
        letter-spacing: .02em;
    }
    body.scene-english-learning-page .scene-daily-tropical-brand small {
        margin-top: 3px;
        color: #415e5e;
        font-size: 12px;
        font-weight: 700;
    }

    body.scene-english-learning-page .scene-daily-tropical-nav {
        position: relative;
        z-index: 1;
        display: grid;
        gap: 5px;
        margin: 0 1px;
        padding: 17px 13px 15px;
        border: 1px solid rgba(190, 151, 103, .42);
        border-radius: 9px 11px 8px 10px;
        background:
            radial-gradient(circle at 11px 10px, rgba(164, 116, 66, .7) 0 2px, transparent 2.8px),
            radial-gradient(circle at calc(100% - 11px) 10px, rgba(164, 116, 66, .7) 0 2px, transparent 2.8px),
            radial-gradient(circle at 11px calc(100% - 10px), rgba(164, 116, 66, .7) 0 2px, transparent 2.8px),
            radial-gradient(circle at calc(100% - 11px) calc(100% - 10px), rgba(164, 116, 66, .7) 0 2px, transparent 2.8px),
            repeating-linear-gradient(5deg, rgba(151, 112, 67, .035) 0 1px, transparent 1px 5px),
            linear-gradient(115deg, rgba(255, 254, 245, .94), rgba(247, 241, 221, .92));
        box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .4), 0 7px 14px rgba(74, 111, 109, .08);
    }
    body.scene-english-learning-page .scene-daily-tropical-nav::before,
    body.scene-english-learning-page .scene-daily-tropical-nav::after {
        position: absolute;
        z-index: -1;
        top: -5px;
        bottom: -5px;
        width: 10px;
        content: '';
        border: 1px solid rgba(105, 66, 36, .42);
        border-radius: 48% 43% 45% 52%;
        background:
            repeating-linear-gradient(168deg, rgba(103, 61, 29, .26) 0 1px, transparent 1px 7px),
            linear-gradient(90deg, #81512e, #d5a96d 44%, #8d592e);
        box-shadow: 0 1px 2px rgba(80, 48, 25, .28);
    }
    body.scene-english-learning-page .scene-daily-tropical-nav::before { left: -6px; transform: rotate(-.55deg); }
    body.scene-english-learning-page .scene-daily-tropical-nav::after { right: -6px; transform: rotate(.65deg); }
    body.scene-english-learning-page .scene-daily-tropical-nav a {
        position: relative;
        z-index: 1;
        min-height: 46px;
        gap: 11px;
        padding: 0 9px;
        border-radius: 999px;
        color: #263b43;
        font-size: 16px;
        font-weight: 800;
    }
    body.scene-english-learning-page .scene-daily-tropical-nav a:hover { background: rgba(204, 239, 238, .56); }
    body.scene-english-learning-page .scene-daily-tropical-nav a.is-current {
        background: linear-gradient(90deg, rgba(191, 235, 228, .9), rgba(184, 225, 233, .78));
        color: #247852;
        box-shadow: none;
    }
    body.scene-english-learning-page .scene-daily-tropical-nav a span {
        width: 31px;
        height: 31px;
        flex: 0 0 31px;
        font-size: 0;
        background: center / contain no-repeat;
        filter: drop-shadow(0 2px 2px rgba(37, 108, 118, .13));
    }
    body.scene-english-learning-page .scene-daily-tropical-nav a:nth-child(1) span { background-image: url('/static/assets/scene-english/sidebar-ocean/nav-home-seaside-hut.png'); }
    body.scene-english-learning-page .scene-daily-tropical-nav a:nth-child(2) span { background-image: url('/static/assets/scene-english/sidebar-ocean/nav-scene-coral.png'); }
    body.scene-english-learning-page .scene-daily-tropical-nav a:nth-child(3) span { background-image: url('/static/assets/scene-english/sidebar-ocean/nav-word-shell.png'); }
    body.scene-english-learning-page .scene-daily-tropical-nav a:nth-child(4) span { background-image: url('/static/assets/scene-english/sidebar-ocean/nav-record-starfish-orange.png'); }
    body.scene-english-learning-page .scene-daily-tropical-nav a:nth-child(5) span { background-image: url('/static/assets/scene-english/sidebar-ocean/nav-favorites-starfish-blue.png'); }
    body.scene-english-learning-page .scene-daily-tropical-nav a:nth-child(6) span { background-image: url('/static/assets/scene-english/sidebar-ocean/nav-settings-ocean-gear.png'); }

    body.scene-english-learning-page .scene-daily-tropical-streak {
        position: relative;
        z-index: 2;
        min-height: 144px;
        margin: auto 2px 0;
        padding: 15px 16px;
        overflow: visible;
        border: 1px solid rgba(188, 146, 96, .45);
        border-radius: 9px 11px 10px 8px;
        background:
            repeating-linear-gradient(-9deg, rgba(151, 112, 67, .035) 0 1px, transparent 1px 6px),
            linear-gradient(125deg, rgba(255, 254, 244, .96), rgba(244, 234, 210, .92));
        box-shadow: inset 0 0 0 3px rgba(255, 255, 255, .42), 0 7px 14px rgba(74, 92, 76, .1);
    }
    body.scene-english-learning-page .scene-daily-tropical-streak::before {
        position: absolute;
        z-index: -1;
        top: -4px;
        right: -5px;
        bottom: -4px;
        width: 9px;
        content: '';
        border: 1px solid rgba(105, 66, 36, .42);
        border-radius: 46% 52% 42% 48%;
        background: repeating-linear-gradient(170deg, rgba(103, 61, 29, .26) 0 1px, transparent 1px 7px), linear-gradient(90deg, #83512e, #d8ac70 45%, #8e592f);
    }
    body.scene-english-learning-page .scene-daily-tropical-streak::after {
        position: absolute;
        z-index: 0;
        right: -16px;
        bottom: -24px;
        width: 94px;
        height: 90px;
        content: '';
        pointer-events: none;
        background: url('/static/assets/scene-english/sidebar-ocean/sidebar-sand-decor.png') right bottom / contain no-repeat;
    }
    body.scene-english-learning-page .scene-daily-tropical-streak small,
    body.scene-english-learning-page .scene-daily-tropical-streak strong,
    body.scene-english-learning-page .scene-daily-tropical-streak span,
    body.scene-english-learning-page .scene-daily-tropical-streak b { position: relative; z-index: 1; }
    body.scene-english-learning-page .scene-daily-tropical-streak small { color: #778176; font-size: 12px; font-weight: 800; }
    body.scene-english-learning-page .scene-daily-tropical-streak strong { margin-top: 8px; color: #307733; font-size: 31px; }
    body.scene-english-learning-page .scene-daily-tropical-streak strong em { font-size: 13px; }
    body.scene-english-learning-page .scene-daily-tropical-streak span { margin-top: 15px; color: #357a39; font-size: 12px; }
    body.scene-english-learning-page .scene-daily-tropical-streak i {
        z-index: 1;
        right: 10px;
        bottom: 40px;
        font-size: 31px;
        filter: drop-shadow(0 2px 1px rgba(80, 120, 59, .14));
    }
    body.scene-english-learning-page .scene-daily-tropical-streak b { width: 27px; height: 3px; margin-top: 12px; background: #3d923d; }
}

/* v2.5.464：七阶段共用已验收的通透主卡；首阶段四词内卡仍单独保持更实的阅读层。 */
@media (min-width: 981px) {
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-panel {
        border-color: rgba(255, 255, 255, .66);
        background: rgba(245, 252, 252, .42);
        box-shadow: 0 12px 30px rgba(13, 93, 111, .10);
        backdrop-filter: blur(8px);
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage="0"]) .body-study-card {
        border-color: rgba(255, 255, 255, .80);
        background: rgba(255, 255, 255, .72);
        box-shadow: 0 5px 14px rgba(17, 101, 119, .06);
        backdrop-filter: blur(10px);
    }
}

/* v2.5.468：场景英语首页与学习页共用蓝白灯塔侧栏；菜单与进度仍为真实可交互 HTML。 */
@media (min-width: 981px) {
    body.scene-english-layout .scene-lighthouse-sidebar {
        position: fixed;
        z-index: 20;
        top: 58px;
        right: auto;
        bottom: auto;
        left: 54px;
        isolation: isolate;
        display: flex;
        width: 248px;
        min-height: 0;
        height: min(700px, 100vh);
        align-self: start;
        overflow: visible;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        transform: none;
    }
    /* v2.5.472：灯塔视觉主体脱离滚动网格，固定在 viewport；海景直接透到素材外围。 */
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .scene-lighthouse-sidebar {
        position: fixed;
        top: 58px;
        right: auto;
        bottom: auto;
        left: 54px;
        width: 248px;
        background: transparent;
        backdrop-filter: none;
        box-shadow: none;
        transform: none;
    }
    /* 固定层不再参加 Grid 自动排布；主内容明确保留原本的第二列。 */
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-shell,
    body.scene-home-page .scene-main {
        grid-column: 2;
    }
    body.scene-english-layout .scene-lighthouse-sidebar::before {
        position: absolute;
        z-index: -1;
        top: 0;
        left: -36px;
        display: block;
        width: 330px;
        aspect-ratio: 909 / 1730;
        background: url('/static/assets/scene-english/lighthouse-sidebar/lighthouse-sidebar-shell-v25465-transparent.png') center / contain no-repeat;
        content: '';
        pointer-events: none;
    }

    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-brand {
        display: none;
    }

    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-nav {
        position: absolute;
        z-index: 1;
        top: 168px;
        left: 44px;
        display: grid;
        width: 185px;
        margin: 0;
        padding: 0;
        gap: 3px !important;
        border: 0;
        background: transparent;
        box-shadow: none;
    }
    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-nav::before,
    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-nav::after {
        display: none;
        content: none;
    }
    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-nav a {
        min-height: 35px !important;
        gap: 8px;
        padding: 0 8px;
        border-radius: 999px;
        background: transparent;
        color: #35485b;
        font-size: 16px;
        font-weight: 800;
        text-shadow: 0 1px 1px rgba(255, 255, 255, .88);
    }
    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-nav a:hover {
        background: rgba(203, 239, 238, .45);
    }
    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-nav a.is-current {
        background: rgba(190, 234, 226, .78);
        color: #287b60;
        box-shadow: inset 0 1px 0 rgba(255, 255, 255, .5);
    }
    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-nav a span {
        width: 28px !important;
        height: 28px !important;
        flex: 0 0 28px !important;
        font-size: 0;
        background: center / contain no-repeat;
        filter: drop-shadow(0 2px 2px rgba(37, 108, 118, .13));
    }

    body.scene-english-layout .scene-lighthouse-sidebar [data-lighthouse-icon="home"] span { background-image: url('/static/assets/scene-english/sidebar-ocean/nav-home-seaside-hut.png') !important; }
    body.scene-english-layout .scene-lighthouse-sidebar [data-lighthouse-icon="textbook"] span { background-image: url('/static/assets/scene-english/stage-ocean/learn-book-abc.png') !important; }
    body.scene-english-layout .scene-lighthouse-sidebar [data-lighthouse-icon="scene"] span { background-image: url('/static/assets/scene-english/sidebar-ocean/nav-scene-coral.png') !important; }
    body.scene-english-layout .scene-lighthouse-sidebar [data-lighthouse-icon="word"] span,
    body.scene-english-layout .scene-lighthouse-sidebar [data-lighthouse-icon="new-words"] span { background-image: url('/static/assets/scene-english/sidebar-ocean/nav-word-shell.png') !important; }
    body.scene-english-layout .scene-lighthouse-sidebar [data-lighthouse-icon="wrong"] span,
    body.scene-english-layout .scene-lighthouse-sidebar [data-lighthouse-icon="record"] span { background-image: url('/static/assets/scene-english/sidebar-ocean/nav-record-starfish-orange.png') !important; }
    body.scene-english-layout .scene-lighthouse-sidebar [data-lighthouse-icon="favorites"] span { background-image: url('/static/assets/scene-english/sidebar-ocean/nav-favorites-starfish-blue.png') !important; }
    body.scene-english-layout .scene-lighthouse-sidebar [data-lighthouse-icon="settings"] span { background-image: url('/static/assets/scene-english/sidebar-ocean/nav-settings-ocean-gear.png') !important; }

    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-streak {
        position: absolute;
        z-index: 1;
        top: 448px;
        left: 39px;
        width: 198px;
        min-height: 126px;
        margin: 0;
        padding: 14px 15px;
        overflow: hidden;
        border: 1px solid rgba(217, 240, 246, .56);
        border-radius: 15px;
        background: linear-gradient(145deg, rgba(192, 229, 244, .40), rgba(113, 178, 218, .27));
        box-shadow: inset 0 1px rgba(255, 255, 255, .42), 0 3px 8px rgba(30, 85, 132, .12);
        box-sizing: border-box;
    }
    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-streak::before,
    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-streak::after {
        display: none;
        content: none;
    }
    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-streak small {
        color: rgba(241, 250, 255, .92);
        font-size: 12px;
        font-weight: 800;
        text-shadow: 0 1px 1px rgba(35, 102, 148, .42);
    }
    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-streak strong {
        margin-top: 7px;
        color: #eafaff;
        font-size: 31px;
        text-shadow: 0 2px 2px rgba(18, 87, 132, .32);
    }
    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-streak strong em {
        color: inherit;
        font-size: 13px;
    }
    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-streak span {
        margin-top: 11px;
        color: rgba(241, 250, 255, .94);
        font-size: 12px;
        font-weight: 800;
        text-shadow: 0 1px 1px rgba(35, 102, 148, .42);
    }
    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-streak i {
        display: none;
    }
    body.scene-english-layout .scene-lighthouse-sidebar .scene-daily-tropical-streak b {
        width: 31px;
        height: 3px;
        margin-top: 11px;
        background: #71d68a;
        box-shadow: 0 1px rgba(255, 255, 255, .32);
    }

    /* 首页仍在 1200px 内容壳中；固定层直接复用其最终静止屏幕坐标。 */
    body.scene-home-page .scene-lighthouse-sidebar.is-scene-home {
        position: fixed;
        top: 58px;
        right: auto;
        bottom: auto;
        left: max(0px, calc(50% - 658px));
        transform: none;
    }
    body.scene-home-page .scene-lighthouse-sidebar.is-scene-home .scene-daily-tropical-nav {
        top: 158px;
        gap: 1px !important;
    }
    body.scene-home-page .scene-lighthouse-sidebar.is-scene-home .scene-daily-tropical-nav a {
        min-height: 31px !important;
        gap: 6px;
        padding: 0 7px;
        font-size: 14px;
    }
    body.scene-home-page .scene-lighthouse-sidebar.is-scene-home .scene-daily-tropical-nav a span {
        width: 25px !important;
        height: 25px !important;
        flex-basis: 25px !important;
    }
}

/* v2.5.469：首页首屏仅压缩 Hero 的真实纵向留白；灯塔与学习页不受影响。 */
@media (min-width: 981px) {
    /* 仅场景英语首页的返回首页链接：固定在灯塔上方的左侧安全区，保留原有外观。 */
    body.scene-home-page .vault-home-link {
        position: fixed;
        z-index: 21;
        top: 12px;
        right: auto;
        bottom: auto;
        left: 24px;
        margin: 0;
    }
    body.scene-home-page .scene-main {
        gap: 12px;
    }
    body.scene-home-page .scene-hero {
        min-height: 220px;
    }
    body.scene-home-page .scene-hero-copy {
        padding: 40px 24px 20px;
    }
    body.scene-home-page .scene-hero-copy p {
        margin: 8px 0 16px;
    }
    body.scene-home-page .scene-toolbar {
        margin-bottom: 12px;
    }
    body.scene-home-page .scene-directory > h2 {
        margin-bottom: 10px;
    }
}

/* v2.5.463：场景英语七阶段共用同一组漂流木操作按钮；仅按钮文字与事件随阶段变化。 */
@media (min-width: 981px) {
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-footer-actions {
        gap: 4px;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-footer-actions button {
        height: 72px;
        min-height: 72px;
        padding: 0 8px;
        border: 0 !important;
        border-radius: 0;
        background-color: transparent !important;
        box-shadow: none !important;
        font-size: 16px !important;
        font-weight: 800;
        line-height: 1;
        transition: transform 150ms ease, filter 150ms ease;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-words,
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-practice {
        color: #fff !important;
        text-shadow: 0 1px 2px rgba(0, 54, 112, .45);
        background-position: center !important;
        background-repeat: no-repeat !important;
        background-size: contain !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-words {
        flex: 0 0 145px !important;
        width: 145px !important;
        background: url('/static/assets/scene-english/driftwood-buttons/learn-words-blue-driftwood.png') center / contain no-repeat !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-history {
        flex: 0 0 160px !important;
        width: 160px !important;
        padding: 0 6px;
        color: #176b87 !important;
        text-shadow: 0 1px 0 rgba(255, 255, 255, .82);
        background: url('/static/assets/scene-english/driftwood-buttons/back-bleached-driftwood.png') center / contain no-repeat !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-practice {
        flex: 0 0 145px !important;
        width: 145px !important;
        background: url('/static/assets/scene-english/driftwood-buttons/next-aqua-driftwood.png') center / contain no-repeat !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-history > span[aria-hidden="true"] {
        display: inline !important;
        margin-right: 3px;
        color: currentColor;
        font-size: inherit;
        line-height: 1;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-footer-actions button:hover:not(:disabled) {
        filter: brightness(1.04);
        transform: translateY(-1px);
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-footer-actions button:active:not(:disabled) {
        filter: brightness(.98);
        transform: translateY(1px);
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-footer-actions button:focus-visible {
        outline: 2px solid rgba(18, 140, 185, .7);
        outline-offset: 2px;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-footer-actions button:disabled {
        cursor: not-allowed;
        filter: saturate(.86) brightness(1.03);
        opacity: 1;
    }
    /* 旧首阶段把操作区与具体按钮连写，提高了选择器特异性；公共组件用同一完整链统一覆盖。 */
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-footer-actions .preschool-learn-words {
        flex: 0 0 145px !important;
        width: 145px !important;
        color: #fff !important;
        background: url('/static/assets/scene-english/driftwood-buttons/learn-words-blue-driftwood.png') center / contain no-repeat !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-footer-actions .preschool-learn-history {
        flex: 0 0 160px !important;
        width: 160px !important;
        color: #176b87 !important;
        text-shadow: 0 1px 0 rgba(255, 255, 255, .82);
        background: url('/static/assets/scene-english/driftwood-buttons/back-bleached-driftwood.png') center / contain no-repeat !important;
    }
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-footer-actions .preschool-learn-practice {
        flex: 0 0 145px !important;
        width: 145px !important;
        color: #fff !important;
        background: url('/static/assets/scene-english/driftwood-buttons/next-aqua-driftwood.png') center / contain no-repeat !important;
    }
}

/* v2.5.477：日常交流七阶段共用已验收的无灯塔居中外层布局。 */
@media (min-width: 981px) {
    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .scene-lighthouse-sidebar {
        display: none;
    }

    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .page {
        grid-template-columns: minmax(0, 1fr);
    }

    body.scene-daily-learning-page:has(.preschool-learn-shell[data-stage]) .preschool-learn-shell {
        grid-column: 1;
        justify-self: center;
    }
}

/* v2.5.478：首页仅移除灯塔固定层及原 Grid 占位，保留原主内容宽度后居中。 */
@media (min-width: 981px) {
    body.scene-home-page .scene-lighthouse-sidebar.is-scene-home {
        display: none;
    }

    body.scene-home-page .scene-shell {
        grid-template-columns: minmax(0, 1fr);
    }

    body.scene-home-page .scene-main {
        grid-column: 1;
        width: calc(100% - 274px);
        justify-self: center;
    }
}

/* v2.5.479：场景英语键盘拼写采用中文提示默写，仅在提交时判定。 */
body.scene-daily-learning-page .body-chinese-dictation-stage {
    grid-template-rows: auto auto auto auto;
    gap: 10px;
}

body.scene-daily-learning-page .body-dictation-kicker {
    margin: 0;
    color: #168fa3;
    font-size: 15px;
    font-weight: 800;
}

body.scene-daily-learning-page .body-dictation-prompt {
    margin: 0;
    color: #263b59;
    font-size: 30px;
    font-weight: 800;
    line-height: 1.25;
}

body.scene-daily-learning-page .body-keyboard-spelling-form {
    display: grid;
    width: min(360px, 90%);
    justify-items: center;
    gap: 10px;
}

body.scene-daily-learning-page .body-keyboard-spelling-input-row {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 10px;
    position: relative;
    box-sizing: border-box;
    padding-right: 50px;
}

body.scene-daily-learning-page .body-chinese-dictation-stage .body-keyboard-spelling-input {
    width: auto;
    min-width: 0;
    flex: 1 1 auto;
    margin-top: 0;
}

body.scene-daily-learning-page .body-keyboard-spelling-sound {
    display: grid;
    position: absolute;
    top: 50%;
    left: calc(100% - 40px);
    width: 80px;
    height: 80px;
    flex: 0 0 80px;
    margin: 0;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent url('/static/assets/scene-english/keyboard-spelling/blue-conch-audio-transparent-v2.5.482.png') center / contain no-repeat;
    box-shadow: none;
    color: transparent;
    cursor: pointer;
    overflow: visible;
    transform: translateY(-50%);
}

body.scene-daily-learning-page .body-keyboard-spelling-sound:hover {
    filter: none;
}

body.scene-daily-learning-page .body-keyboard-spelling-sound svg {
    display: none;
}

body.scene-daily-learning-page .body-keyboard-spelling-check {
    min-width: 104px;
    min-height: 40px;
    padding: 0 24px;
    border: 1px solid rgba(24, 142, 157, .35);
    border-radius: 14px;
    background: rgba(239, 255, 252, .9);
    box-shadow: 0 3px 8px rgba(17, 101, 119, .1);
    color: #167c8d;
    cursor: pointer;
    font: inherit;
    font-size: 16px;
    font-weight: 800;
}

body.scene-daily-learning-page .body-keyboard-spelling-check:hover:not(:disabled) {
    background: rgba(218, 249, 243, .98);
}

body.scene-daily-learning-page .body-keyboard-spelling-check:disabled {
    cursor: default;
    opacity: .65;
}

/* v2.5.485：首页 Hero 使用单层紧凑横向状态栏；实时数据选择器保持不变。 */
@media (min-width: 721px) {
    .mascot-welcome-card.home-game-hero {
        overflow: hidden;
        background: #dcecf7 url('/static/assets/word_match/background/bg_floating_islands.png') center / cover no-repeat;
    }

    .mascot-welcome-card.home-game-hero > img {
        clip-path: polygon(0 0, 100% 0, 100% 100%, 76% 100%, 76% 35%, 0 35%);
    }

    .mascot-welcome-card.home-game-hero .home-streak-glow {
        display: none;
    }

    .mascot-welcome-card.home-game-hero .home-hero-stats-cover {
        display: none;
    }

    .mascot-welcome-card.home-game-hero .home-hero-compact-statusbar {
        position: absolute;
        z-index: 2;
        bottom: 10%;
        left: 50%;
        display: grid;
        grid-template-columns: minmax(0, 1fr) 1px minmax(0, 1fr);
        grid-template-rows: 74px;
        width: 58%;
        height: 96px;
        min-height: 0;
        max-height: 96px;
        box-sizing: border-box;
        padding: 10px 16px;
        transform: translateX(-50%);
        border: 1px solid rgba(255, 255, 255, .68);
        border-radius: 24px;
        background: rgba(250, 255, 255, .58);
        box-shadow: 0 5px 14px rgba(43, 91, 109, .09), inset 0 1px rgba(255, 255, 255, .52);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .mascot-welcome-card.home-game-hero .home-hero-compact-statusbar .home-hero-stat-group {
        position: relative;
        top: auto;
        left: auto;
        display: flex;
        align-items: center;
        gap: 8px;
        height: 74px;
        min-height: 0;
        min-width: 0;
        padding: 0 7px;
    }

    .mascot-welcome-card.home-game-hero .home-hero-status-divider {
        align-self: stretch;
        width: 1px;
        margin: 3px 0;
        background: linear-gradient(180deg, transparent, rgba(95, 133, 136, .25), transparent);
    }

    .mascot-welcome-card.home-game-hero .home-hero-status-icon {
        display: block;
        width: 42px;
        height: 42px;
        flex: 0 0 42px;
        background-image: url('/static/mascot/home-game-hero-v271-dynamic-hud.png');
        background-repeat: no-repeat;
        background-size: 600px 255.625px;
    }

    .mascot-welcome-card.home-game-hero .home-hero-medal-icon { background-position: -142px -126px; }
    .mascot-welcome-card.home-game-hero .home-hero-flame-icon { background-position: -314px -126px; }

    .mascot-welcome-card.home-game-hero .home-hero-status-copy { min-width: 0; }
    .mascot-welcome-card.home-game-hero .home-hero-status-title { display: block; color: #41753f; font-size: 12px; font-weight: 800; line-height: 1; }
    .mascot-welcome-card.home-game-hero .home-hero-streak-group .home-hero-status-title { color: #c75e28; }
    .mascot-welcome-card.home-game-hero .home-hero-status-copy p { display: flex; align-items: baseline; gap: 3px; margin: 3px 0 2px; }
    .mascot-welcome-card.home-game-hero .home-hero-compact-statusbar .home-hero-stat-value { color: #3b6f36; font-size: 24px; text-shadow: 0 1px 4px rgba(255, 255, 255, .68); }
    .mascot-welcome-card.home-game-hero .home-hero-compact-statusbar .home-hero-stat-unit { color: #33424a; font-size: 12px; text-shadow: none; }
    .mascot-welcome-card.home-game-hero .home-hero-compact-statusbar .home-hero-streak-group .home-hero-stat-value { color: #c74d1c; }
    .mascot-welcome-card.home-game-hero .home-hero-status-copy small,
    .mascot-welcome-card.home-game-hero .home-hero-status-copy em { display: block; overflow: hidden; color: #596a6e; font-size: 10px; font-style: normal; font-weight: 700; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
    .mascot-welcome-card.home-game-hero .home-hero-status-copy em { color: #5b8556; }
    .mascot-welcome-card.home-game-hero .home-hero-streak-progress { display: flex; width: 72px; height: 5px; align-items: center; margin-top: 4px; overflow: visible; border-radius: 999px; background: rgba(207, 129, 61, .26); }
    .mascot-welcome-card.home-game-hero .home-hero-streak-progress i { display: block; width: 56%; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #e88a3c, #f3b950); }
    .mascot-welcome-card.home-game-hero .home-hero-streak-progress b { margin-left: -1px; color: #f2b63f; font-size: 13px; line-height: 1; text-shadow: 0 1px 2px #fff; }
}

/* v2.5.730: Scene English "Jeans Stall" is a scoped, content-free UI shell. */
body.jeans-stall-page {
    background: #f4f8fb;
}

.jeans-stall-main {
    gap: 20px;
    padding-bottom: 34px;
}

.jeans-stall-header {
    min-height: 38px;
}

.jeans-stall-phase {
    padding: 7px 12px;
    border: 1px solid #cfe0ef;
    border-radius: 999px;
    background: #ffffff;
    color: #58718a;
    font-size: 12px;
    font-weight: 800;
}

.jeans-stall-hero {
    position: relative;
    display: grid;
    min-height: 276px;
    grid-template-columns: minmax(0, 1.08fr) minmax(280px, .92fr);
    overflow: hidden;
    border: 1px solid #b7d1e7;
    border-radius: 24px;
    background:
        radial-gradient(circle at 75% 22%, rgba(116, 205, 238, .62) 0 6%, transparent 6.4%),
        linear-gradient(120deg, #075c9f 0%, #137fc0 53%, #8ad8eb 100%);
    box-shadow: 0 14px 30px rgba(20, 77, 125, .17);
}

.jeans-stall-hero::after {
    position: absolute;
    right: -58px;
    bottom: -92px;
    width: 270px;
    height: 270px;
    border: 22px solid rgba(255, 255, 255, .13);
    border-radius: 50%;
    content: "";
}

.jeans-stall-hero-copy {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    padding: 36px clamp(28px, 4vw, 54px);
    color: #ffffff;
}

.jeans-stall-eyebrow {
    display: inline-flex;
    padding: 7px 11px;
    border: 1px solid rgba(255, 255, 255, .32);
    border-radius: 999px;
    background: rgba(255, 255, 255, .13);
    color: #dff6ff;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .03em;
}

.jeans-stall-hero h1 {
    margin: 15px 0 4px;
    color: #ffffff;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.15;
    letter-spacing: .03em;
}

.jeans-stall-hero p {
    margin: 0;
    color: rgba(237, 250, 255, .94);
    font-size: 16px;
    font-weight: 700;
}

.jeans-stall-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 22px;
}

.jeans-stall-tags span {
    padding: 7px 13px;
    border-radius: 999px;
    background: #ffffff;
    color: #1466a3;
    font-size: 13px;
    font-weight: 900;
}

.jeans-stall-illustration {
    position: relative;
    min-height: 270px;
    overflow: hidden;
}

.jeans-stall-sign {
    position: absolute;
    top: 35px;
    right: 48px;
    padding: 8px 16px;
    border: 3px solid #fce4a3;
    border-radius: 8px;
    background: #ffe28b;
    box-shadow: 0 5px 0 rgba(131, 81, 21, .18);
    color: #77501e;
    font-family: Arial, sans-serif;
    font-size: 19px;
    font-weight: 1000;
    letter-spacing: .12em;
    transform: rotate(3deg);
}

.jeans-stall-hanger {
    position: absolute;
    color: rgba(235, 249, 255, .76);
    font-size: 86px;
    font-weight: 900;
    line-height: 1;
    transform: rotate(90deg);
}

.jeans-stall-hanger::before {
    position: absolute;
    top: 36px;
    left: 16px;
    width: 3px;
    height: 58px;
    background: currentColor;
    content: "";
}

.hanger-one { top: 32px; left: 62px; }
.hanger-two { top: 59px; left: 164px; opacity: .72; transform: rotate(90deg) scale(.78); }

.jeans-stall-denim {
    position: absolute;
    z-index: 1;
    bottom: -6px;
    filter: drop-shadow(0 10px 8px rgba(0, 44, 82, .32));
    font-size: 125px;
    line-height: 1;
}

.denim-one { left: 54px; transform: rotate(-8deg); }
.denim-two { right: 42px; font-size: 142px; transform: rotate(10deg); }

.jeans-stall-box {
    position: absolute;
    z-index: 2;
    right: 152px;
    bottom: 25px;
    display: grid;
    width: 58px;
    height: 46px;
    place-items: center;
    border: 3px solid #936633;
    border-radius: 6px;
    background: #d6a76c;
    box-shadow: inset 0 0 0 7px rgba(255, 234, 187, .42), 0 6px 8px rgba(5, 48, 82, .2);
    color: #f8dfad;
    font-size: 29px;
}

.jeans-stall-progress,
.jeans-stall-modules,
.jeans-stall-empty-note {
    border: 1px solid #dae6ef;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 7px 20px rgba(45, 79, 111, .055);
}

.jeans-stall-progress,
.jeans-stall-modules {
    padding: 22px;
}

.jeans-stall-section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 18px;
}

.jeans-stall-section-heading > div > span {
    color: #2575ad;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
}

.jeans-stall-section-heading h2 {
    margin: 4px 0 0;
    color: #20334b;
    font-size: 22px;
}

.jeans-stall-section-heading > p {
    margin: 0 0 2px;
    color: #8292a2;
    font-size: 12px;
    font-weight: 700;
}

.jeans-stall-stat-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.jeans-stall-stat-grid article {
    display: grid;
    grid-template-columns: 36px 1fr;
    grid-template-rows: 23px 18px;
    align-items: center;
    min-height: 76px;
    padding: 13px;
    border-radius: 15px;
    background: linear-gradient(145deg, #eef8ff, #f8fcff);
}

.jeans-stat-icon {
    grid-row: 1 / span 2;
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 10px;
    background: #d8ecfa;
    color: #2175ad;
    font-weight: 900;
}

.jeans-stall-stat-grid strong { color: #1c5f8e; font-size: 22px; line-height: 1; }
.jeans-stall-stat-grid small { color: #718498; font-size: 12px; font-weight: 700; }

.jeans-stall-module-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 13px;
}

.jeans-stall-module-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    grid-template-rows: auto auto;
    gap: 3px 12px;
    min-height: 115px;
    padding: 16px;
    border: 1px solid #dde8f0;
    border-radius: 16px;
    background: linear-gradient(145deg, #ffffff, #f5faff);
}

.jeans-stall-module-icon {
    grid-row: 1 / span 2;
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 12px;
    background: #e0f1fc;
    color: #1974af;
    font-size: 20px;
    font-weight: 900;
}

.jeans-stall-module-card h3 { margin: 0; color: #294058; font-size: 16px; }
.jeans-stall-module-card p { margin: 2px 0 6px; color: #8694a2; font-size: 12px; font-weight: 700; }
.jeans-stall-module-card button {
    grid-column: 2;
    align-self: end;
    justify-self: start;
    padding: 5px 10px;
    border: 0;
    border-radius: 999px;
    background: #e7eef4;
    color: #8292a0;
    font-size: 11px;
    font-weight: 800;
}

.jeans-stall-empty-note {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 20px;
    border-style: dashed;
    background: #f8fbfd;
}

.jeans-stall-empty-note > span {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    border-radius: 50%;
    background: #dceefa;
    color: #2576ad;
    font-size: 20px;
}

.jeans-stall-empty-note strong { color: #39526a; font-size: 14px; }
.jeans-stall-empty-note p { margin: 3px 0 0; color: #8090a0; font-size: 12px; font-weight: 700; }

@media (max-width: 980px) {
    .jeans-stall-hero { grid-template-columns: 1fr; }
    .jeans-stall-illustration { min-height: 180px; }
    .jeans-stall-hero-copy { padding-bottom: 22px; }
    .jeans-stall-sign { top: 8px; }
    .hanger-one { top: 3px; }
    .hanger-two { top: 24px; }
    .jeans-stall-denim { font-size: 104px; }
    .denim-two { font-size: 118px; }
    .jeans-stall-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .jeans-stall-module-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
    .jeans-stall-header { align-items: flex-start; flex-direction: column; gap: 9px; }
    .jeans-stall-section-heading { align-items: flex-start; flex-direction: column; gap: 6px; }
    .jeans-stall-module-grid { grid-template-columns: 1fr; }
    .jeans-stall-hero-copy { padding: 29px 22px; }
    .jeans-stall-hero h1 { font-size: 34px; }
}

.phonetics-entry-page {
    max-width: 880px;
    margin: 0 auto;
}

.phonetics-entry-page .phonetics-entry-group + .phonetics-entry-group {
    margin-top: 24px;
}

/* v2.5.506：教材同步学习的默写统一使用点击字母拼写；保留 Unit 1 已验收的视觉规格。 */
body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker {
    display: grid;
    width: min(560px, 100%);
    margin: 12px auto 0;
    justify-items: center;
    gap: 16px;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-slots {
    display: flex;
    min-height: 86px;
    flex-wrap: wrap;
    justify-content: center;
    gap: 14px;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-slot {
    display: grid;
    width: var(--unit1-letter-slot-size, 72px);
    height: 86px;
    flex: 0 0 var(--unit1-letter-slot-size, 72px);
    place-items: center;
    border: 1px solid #aeb7c1;
    border-bottom-width: 4px;
    border-radius: 16px 16px 5px 5px;
    background: #ffffff;
    box-shadow: 0 5px 9px rgba(84, 96, 110, .22);
    color: #31475c;
    font-size: 40px;
    font-weight: 900;
    line-height: 1;
    text-transform: lowercase;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-slot.is-filled {
    border-color: #68be52;
    background: #edf9e9;
    color: #3b9d3a;
}

/* Spaces and punctuation in multi-word answers are fixed separators, not
   selectable letter tiles. This keeps phrases intact without adding fake
   choices or changing the established single-word Unit 1 layout. */
body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-separator {
    align-self: center;
    color: #637586;
    font-size: 30px;
    font-weight: 900;
    line-height: 1;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-separator.is-space {
    width: 16px;
    height: 1px;
    flex: 0 0 16px;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-choice-grid {
    display: grid;
    width: min(520px, 100%);
    grid-template-columns: repeat(auto-fit, minmax(112px, 1fr));
    gap: 16px;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-choice {
    min-width: 0;
    height: 112px;
    padding: 0;
    border: 2px solid #d7e4ee;
    border-radius: 18px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 4px 0 rgba(97, 132, 151, .15), 0 7px 14px rgba(74, 112, 133, .1);
    color: #31566f;
    cursor: pointer;
    font-size: 56px;
    font-weight: 900;
    line-height: 1;
    text-transform: lowercase;
    transition: transform 150ms ease, filter 150ms ease, box-shadow 150ms ease;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-choice:hover:not(:disabled) {
    filter: brightness(1.03);
    transform: translateY(-2px);
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-choice:active:not(:disabled) {
    box-shadow: 0 1px 0 rgba(97, 132, 151, .14);
    transform: translateY(2px);
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-choice.is-used,
body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-choice:disabled {
    border-color: #d8e6d5;
    background: #f1f7f0;
    box-shadow: none;
    color: #91a78d;
    cursor: default;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-feedback {
    min-height: 20px;
    margin: -6px 0 0;
    color: #677b8d;
    font-size: 16px;
    font-weight: 800;
    line-height: 1.25;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-feedback.is-wrong { color: #d65e63; }
body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-feedback.is-correct { color: #3f9f3d; }

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-back,
body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-check {
    height: 55px;
    border-radius: 18px;
    font-size: 20px;
    font-weight: 900;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-back {
    min-width: 186px;
    border: 2px solid #d8e3ea;
    background: rgba(255, 255, 255, .92);
    box-shadow: 0 4px 0 rgba(97, 132, 151, .12);
    color: #536d80;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-check {
    min-width: 118px;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-back:disabled {
    opacity: .5;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .writing-hint .unit1-letter-picker-prompt {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-chinese-sound {
    display: inline-grid;
    width: 46px;
    height: 46px;
    flex: 0 0 46px;
    place-items: center;
    padding: 0;
    border: 2px solid #83c973;
    border-radius: 50%;
    background: #f4fff1;
    box-shadow: 0 3px 0 rgba(77, 151, 60, .16);
    color: #4aa83f;
    cursor: pointer;
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-chinese-sound:hover {
    filter: brightness(1.04);
    transform: translateY(-1px);
}

body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-picker-chinese-sound svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

@media (max-width: 680px) {
    body.unit1-ui-pilot-body .unit1-ui-pilot[data-training-mode="input"] .unit1-letter-choice-grid {
        grid-template-columns: repeat(auto-fit, minmax(96px, 1fr));
        gap: 10px;
    }
}

/* v2.5.587：仅单词宝库与错题训练脱离共享侧栏，主内容在桌面端回到页面视觉中心。 */
body.vault-standalone-page .page {
    width: min(calc(100% - 48px), 1240px);
}

body.vault-standalone-page .vault-shell {
    display: block;
    width: min(100%, 1180px);
    margin: 0 auto;
}

body.vault-standalone-page .vault-main {
    width: 100%;
}

body.vault-standalone-page .vault-standalone-home-link {
    display: inline-flex;
    align-items: center;
    margin: 0 0 18px;
    text-decoration: none;
    transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

body.vault-standalone-page .vault-standalone-home-link:hover {
    background: #eaf6e5;
    box-shadow: 0 4px 10px rgba(67, 141, 39, .11);
    transform: translateX(-1px);
}

@media (max-width: 640px) {
    body.vault-standalone-page .page {
        width: min(calc(100% - 32px), 620px);
    }

    body.vault-standalone-page .vault-standalone-home-link {
        margin-bottom: 14px;
    }
}

/* v2.5.515：音标学习主页 1440px 桌面端密度优化；限定在 /phonetics 页面。 */
body.phonetics-page {
    min-width: 0;
    background: #d7efff url('/static/assets/word_match/background/bg_floating_islands.png') center / cover fixed;
    color: #172b4d;
}

body.phonetics-page .page {
    width: min(1380px, calc(100% - 48px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 18px 0 24px;
}

body.phonetics-page .sound-toggle {
    top: 40px;
    right: max(34px, calc((100vw - 1380px) / 2 + 292px));
    z-index: 30;
}

body.phonetics-page .sound-toggle label {
    min-height: 40px;
    padding: 0 16px;
    border-radius: 13px;
    box-shadow: 0 8px 20px rgba(30, 85, 140, .12);
}

.phonetics-shell {
    display: grid;
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 18px;
    align-items: start;
}

.phonetics-sidebar,
.phonetics-hero-card,
.phonetics-map-card,
.phonetics-training-card,
.phonetics-tip-bar {
    border: 1px solid rgba(255, 255, 255, .86);
    border-radius: 24px;
    background: rgba(255, 255, 255, .94);
    box-shadow: 0 16px 34px rgba(20, 82, 136, .16);
}

.phonetics-sidebar {
    position: sticky;
    top: 18px;
    display: flex;
    min-height: calc(100vh - 36px);
    flex-direction: column;
    padding: 15px 11px 8px;
    overflow: hidden;
}

.phonetics-brand {
    display: grid;
    gap: 4px;
    padding: 3px 12px 14px;
    border-bottom: 1px solid #edf1f3;
    color: #17592d;
    text-align: center;
}

.phonetics-brand span { font-size: 25px; font-weight: 900; letter-spacing: .02em; }
.phonetics-brand b { color: #20a252; font-size: 19px; }
.phonetics-brand small { color: #273f3c; font-size: 14px; font-weight: 700; }

.phonetics-nav { display: grid; gap: 2px; margin-top: 10px; }
.phonetics-nav-item {
    display: grid;
    grid-template-columns: 35px minmax(0, 1fr);
    gap: 8px;
    align-items: center;
    min-height: 53px;
    padding: 7px 9px;
    border-radius: 15px;
    color: #192d4c;
}
.phonetics-nav-item:hover { background: rgba(230, 244, 255, .75); }
.phonetics-nav-item.is-active { min-height: 68px; background: linear-gradient(100deg, #e2f5dc, #f4fbed); }
.phonetics-nav-item i {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 10px;
    background: #e7f5df;
    color: #4fa62a;
    font-size: 18px;
    font-style: normal;
    font-weight: 900;
}
.phonetics-nav-item:nth-child(2) i { background: #ede6ff; color: #7252ce; }
.phonetics-nav-item:nth-child(3) i { background: #ebe0ff; color: #8752da; }
.phonetics-nav-item:nth-child(4) i { background: #e4efff; color: #3e7fee; }
.phonetics-nav-item:nth-child(5) i { background: #fff0c9; color: #f09a15; }
.phonetics-nav-item:nth-child(6) i { background: #ffe3ee; color: #e35c82; }
.phonetics-nav-item:nth-child(7) i { background: #fff2d8; color: #f0a21c; }
.phonetics-nav-item:nth-child(8) i { background: #dff7f2; color: #17a896; }
.phonetics-nav-item strong, .phonetics-nav-item small { display: block; }
.phonetics-nav-item strong { font-size: 15px; font-weight: 900; }
.phonetics-nav-item small { margin-top: 2px; color: #647080; font-size: 11px; font-weight: 700; }

.phonetics-sidebar-teacher {
    display: grid;
    height: 190px;
    align-items: end;
    justify-items: center;
    margin-top: auto;
    pointer-events: none;
}
.phonetics-sidebar-teacher img { width: 158px; max-height: 190px; object-fit: contain; object-position: center bottom; }

.phonetics-main { min-width: 0; display: grid; gap: 9px; }
.phonetics-hero-card { position: relative; min-height: 204px; padding: 18px 22px 16px; overflow: hidden; }
.phonetics-hero-card::after { position: absolute; inset: auto -40px -70px auto; width: 280px; height: 160px; border-radius: 50%; background: radial-gradient(circle, rgba(121, 194, 255, .27), transparent 70%); content: ""; pointer-events: none; }
.phonetics-hero-title { display: flex; min-width: 0; align-items: center; gap: 12px; padding-right: 292px; }
.phonetics-hero-title h1 { margin: 0; color: #172b4d; font-size: clamp(25px, 2vw, 28px); font-weight: 900; letter-spacing: .015em; }
.phonetics-hero-title .phonetics-home-back { position: relative; z-index: 1; min-height: 38px; flex: 0 0 auto; align-items: center; padding: 0 13px; border: 1px solid #d9e4ee; color: #345574; font-size: 14px; line-height: 38px; text-decoration: none; transition: border-color .15s ease, background-color .15s ease, color .15s ease, transform .15s ease; }
.phonetics-hero-title .phonetics-home-back:hover, .phonetics-hero-title .phonetics-home-back:focus-visible { border-color: #a9d2ed; background: #f0f8ff; color: #1d76b8; transform: translateY(-1px); }
.phonetics-head-status { position: absolute; top: 20px; right: 48px; display: flex; align-items: center; gap: 18px; }
.phonetics-xp { display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 6px 15px; border: 1px solid #ffd987; border-radius: 13px; background: #fff9eb; color: #94580e; font-size: 15px; font-weight: 900; }
.phonetics-xp img { display: block; width: 28px; height: 28px; object-fit: contain; }
.phonetics-hearts { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.phonetics-hearts img { display: block; width: 28px; height: 28px; object-fit: contain; }

.phonetics-stat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 20px; }
.phonetics-stat-card { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: center; min-width: 0; min-height: 108px; padding: 14px; border: 1px solid #e6eef5; border-radius: 18px; background: rgba(255, 255, 255, .96); box-shadow: 0 8px 16px rgba(25, 82, 125, .08); }
.phonetics-stat-icon { display: grid; width: 52px; height: 52px; place-items: center; }
.phonetics-stat-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.phonetics-stat-card small { display: block; color: #66758a; font-size: 14px; font-weight: 800; }
.phonetics-stat-card strong { display: block; margin-top: 6px; color: #122a4a; font-size: 28px; line-height: 1; }
.phonetics-stat-card strong em { color: #6d7a8d; font-size: 17px; font-style: normal; }
.phonetics-stat-card > div > span { display: block; height: 8px; margin-top: 11px; overflow: hidden; border-radius: 99px; background: #e6ebf0; }
.phonetics-stat-card > div > span > b { display: block; width: 0; height: 100%; border-radius: inherit; transition: width .2s ease; }
.phonetics-stat-card.tone-green > div > span > b { background: #58b733; }
.phonetics-stat-card.tone-purple > div > span > b { background: #7155d1; }
.phonetics-stat-card.tone-orange > div > span > b { background: #ff941a; }
.phonetics-stat-card.tone-blue > div > span > b { background: #1686ec; }

.phonetics-map-card, .phonetics-training-card { padding: 16px 20px; overflow: hidden; }
.phonetics-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.phonetics-section-heading h2 { display: flex; align-items: center; gap: 10px; margin: 0; color: #1a3356; font-size: 23px; font-weight: 900; }
.phonetics-section-heading h2 i { color: #23895a; font-size: 27px; font-style: normal; }
.phonetics-map-title-icon { display: grid; width: 25px; height: 25px; place-items: center; flex: 0 0 auto; }
.phonetics-map-title-icon img { display: block; width: 100%; height: 100%; object-fit: contain; }
.phonetics-map-filter { display: flex; align-items: center; gap: 6px; min-height: 38px; padding: 0 11px; border: 1px solid #dce5ee; border-radius: 13px; background: #fff; color: #657185; font-size: 13px; font-weight: 800; }
.phonetics-map-filter select { max-width: 90px; border: 0; outline: 0; background: transparent; color: #536279; font: inherit; cursor: pointer; }

.phonetics-map-viewport { position: relative; width: 100%; margin: 13px 0 0; overflow-x: auto; overflow-y: hidden; overscroll-behavior-x: contain; scrollbar-width: thin; }
.phonetics-map-track { position: relative; display: flex; align-items: flex-start; gap: 62px; width: max-content; min-width: 100%; padding: 12px 14px 142px; }
.phonetics-map-track::before { display: none; }
.phonetics-level-card { position: relative; z-index: 1; display: grid; grid-template-rows: auto auto auto auto auto; width: 140px; min-height: 156px; justify-items: center; padding: 14px 10px 11px; border: 1px solid #e1e6ec; border-radius: 20px; background: linear-gradient(180deg, #fff, #f8fafb); box-shadow: 0 8px 14px rgba(24, 63, 95, .09); color: #26364f; text-align: center; transition: transform .16s ease, box-shadow .16s ease; }
.phonetics-level-card:not(:last-child)::after { position: absolute; top: calc(100% + 70px); left: 100%; z-index: -1; width: 62px; border-top: 3px dashed #3196dd; content: ""; opacity: .9; pointer-events: none; transform: rotate(9deg); transform-origin: left center; }
.phonetics-level-card:nth-child(even):not(:last-child)::after { transform: rotate(-9deg); }
.phonetics-level-card:hover:not(.is-locked) { transform: translateY(-4px); box-shadow: 0 13px 24px rgba(24, 80, 130, .16); }
.phonetics-level-number { position: absolute; top: 13px; left: 12px; display: grid; width: 28px; height: 28px; place-items: center; border-radius: 50%; background: #9da3aa; color: #fff; font-size: 16px; font-weight: 900; }
.phonetics-level-card strong { min-height: 26px; padding-left: 26px; color: #374155; font-size: 16px; font-weight: 900; white-space: nowrap; }
.phonetics-level-symbols { display: flex; min-height: 38px; align-content: center; align-items: center; justify-content: center; flex-wrap: wrap; gap: 3px 7px; margin: 7px 0; color: #182d4d; font-size: 17px; line-height: 1.15; }
.phonetics-level-symbols b { font-weight: 800; }
.phonetics-level-stars { min-height: 24px; color: #c5cbd2; font-size: 24px; letter-spacing: 2px; line-height: 1; }
.phonetics-level-status { min-width: 74px; margin-top: 6px; padding: 5px 8px; border-radius: 8px; color: #738092; font-size: 13px; font-style: normal; font-weight: 900; }
.phonetics-level-island { position: absolute; bottom: -132px; left: 50%; display: grid; width: 178px; height: 118px; place-items: center; transform: translateX(-50%); }
.phonetics-level-card:nth-child(3n + 2) .phonetics-level-island { bottom: -139px; }
.phonetics-level-card:nth-child(3n) .phonetics-level-island { bottom: -125px; }
.phonetics-level-island img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 10px 7px rgba(41, 86, 112, .22)); }
.phonetics-level-card.is-current { border: 2px solid #4ea8ff; background: linear-gradient(180deg, #fff, #f5fbff); box-shadow: 0 11px 22px rgba(36, 142, 239, .2); }
.phonetics-level-card.is-current .phonetics-level-number { background: #1585ed; }
.phonetics-level-card.is-current .phonetics-level-status { background: linear-gradient(90deg, #37a4ff, #2489ed); color: #fff; }
.phonetics-level-card.is-completed { border-color: #b9e2ae; background: linear-gradient(180deg, #effbe9, #f7fcf3); }
.phonetics-level-card.is-completed .phonetics-level-number { background: #56a929; }
.phonetics-level-card.is-completed .phonetics-level-stars { color: #ffad12; }
.phonetics-level-card.is-completed .phonetics-level-status { background: #5da92c; color: #fff; }
.phonetics-level-card.is-locked { cursor: not-allowed; }
.phonetics-level-card.is-locked .phonetics-level-status { background: #e8ebee; }
.phonetics-level-card.is-locked .phonetics-level-island img { filter: drop-shadow(0 10px 7px rgba(41, 86, 112, .16)); }

.phonetics-training-card { margin-top: 0; }
.phonetics-mode-grid { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; margin-top: 13px; }
.phonetics-mode-card { position: relative; display: grid; min-height: 144px; justify-items: center; padding: 13px 8px 10px; border: 1px solid var(--mode-border); border-radius: 17px; background: linear-gradient(145deg, #fff, var(--mode-bg)); color: #243b59; text-align: center; box-shadow: 0 6px 12px rgba(26, 73, 108, .08); }
.phonetics-mode-card:hover { transform: translateY(-3px); }
.phonetics-mode-number { position: absolute; top: 10px; left: 10px; display: grid; width: 26px; height: 26px; place-items: center; border-radius: 50%; background: var(--mode-strong); color: #fff; font-size: 14px; font-weight: 900; }
.phonetics-mode-icon { display: grid; width: 42px; height: 42px; place-items: center; margin-top: 3px; }
.phonetics-mode-icon img { display: block; width: 42px !important; height: 42px !important; object-fit: contain; }
.phonetics-mode-card strong { margin-top: 7px; font-size: 15px; font-weight: 900; white-space: nowrap; }
.phonetics-mode-card small { margin-top: 5px; color: #52657b; font-size: 12px; font-weight: 700; line-height: 1.4; }
.phonetics-mode-card.tone-green { --mode-bg: #edf9e8; --mode-border: #addd9c; --mode-strong: #51aa30; }.phonetics-mode-card.tone-purple { --mode-bg: #f3efff; --mode-border: #d5c5ff; --mode-strong: #7652d4; }.phonetics-mode-card.tone-orange { --mode-bg: #fff4e4; --mode-border: #ffd09b; --mode-strong: #f28c1a; }.phonetics-mode-card.tone-blue { --mode-bg: #edf7ff; --mode-border: #a9d2ff; --mode-strong: #187cea; }.phonetics-mode-card.tone-cyan { --mode-bg: #e8fbfa; --mode-border: #a5e1dd; --mode-strong: #12a99e; }.phonetics-mode-card.tone-red { --mode-bg: #fff0f0; --mode-border: #ffc7c7; --mode-strong: #e85e61; }.phonetics-mode-card.tone-violet { --mode-bg: #f7f0ff; --mode-border: #dfc8fb; --mode-strong: #8654cf; }.phonetics-mode-card.tone-gold { --mode-bg: #fff8e9; --mode-border: #f7d486; --mode-strong: #ed9f11; }

.phonetics-tip-bar { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 13px; align-items: center; padding: 13px 18px; border-radius: 18px; color: #593d12; }
.phonetics-tip-bar > i { font-size: 23px; font-style: normal; }.phonetics-tip-bar strong { font-size: 17px; font-weight: 900; }.phonetics-tip-bar span { color: #705a38; font-size: 15px; font-weight: 700; }.phonetics-tip-bar a { padding: 9px 17px; border-radius: 10px; background: #57aa2d; color: #fff; font-size: 14px; font-weight: 900; }

.phonetics-lesson-shell { width: min(880px, calc(100% - 32px)); min-height: calc(100vh - 96px); margin: 0 auto; padding: 40px 0; }
.phonetics-lesson-back { display: inline-flex; padding: 11px 17px; border-radius: 13px; background: rgba(255,255,255,.94); box-shadow: 0 8px 18px rgba(20, 82, 136, .12); color: #1b5f98; font-weight: 900; }
.phonetics-lesson-panel { margin-top: 18px; padding: 56px 44px; border: 1px solid rgba(255,255,255,.86); border-radius: 28px; background: rgba(255,255,255,.94); box-shadow: 0 16px 34px rgba(20, 82, 136, .16); text-align: center; }
.phonetics-lesson-kicker { display: inline-block; padding: 8px 14px; border-radius: 999px; background: #e9f7df; color: #479330; font-weight: 900; }.phonetics-lesson-panel h1 { margin: 15px 0 8px; font-size: 34px; }.phonetics-lesson-panel p { max-width: 560px; margin: 0 auto; color: #637189; font-weight: 700; line-height: 1.7; }.phonetics-lesson-symbols { display: flex; flex-wrap: wrap; justify-content: center; gap: 16px; margin: 34px 0; }.phonetics-lesson-symbols span { min-width: 116px; padding: 20px; border: 2px solid #9fd0ff; border-radius: 20px; background: #f3faff; color: #1d6fc7; font-size: 30px; font-weight: 900; }.phonetics-lesson-return { min-width: 160px; }

/* v2.5.517: data-driven A-Z letter pronunciation lesson. */
body.phonetics-lesson-page .page { width: min(1380px, calc(100% - 40px)); padding: 18px 0 22px; }
body.phonetics-lesson-page .sound-toggle { top: 24px; right: max(320px, calc((100vw - 1380px) / 2 + 320px)); }
.phonetics-letter-learning { min-width: 0; }
.phonetics-letter-topbar { display: flex; min-height: 64px; align-items: stretch; gap: 14px; }
.phonetics-letter-back, .phonetics-letter-title-card, .phonetics-letter-steps, .phonetics-letter-directory, .phonetics-letter-main-panel { border: 1px solid rgba(255,255,255,.88); background: rgba(255,255,255,.94); box-shadow: 0 13px 28px rgba(20,82,136,.15); }
.phonetics-letter-back { display: inline-flex; min-width: 170px; align-items: center; justify-content: center; gap: 8px; padding: 0 17px; border-radius: 18px; color: #244b7d; font-size: 16px; font-weight: 900; white-space: nowrap; }
.phonetics-letter-back span { font-size: 23px; line-height: 1; }
.phonetics-letter-title-card { display: flex; width: 235px; align-items: center; gap: 12px; padding: 9px 17px; border-radius: 18px; color: #182f50; }
.phonetics-letter-title-card img { width: 28px; height: 28px; object-fit: contain; }
.phonetics-letter-title-card strong, .phonetics-letter-title-card small { display: block; }
.phonetics-letter-title-card strong { font-size: 25px; font-weight: 900; line-height: 1.05; }
.phonetics-letter-title-card small { margin-top: 5px; color: #68748a; font-size: 13px; font-weight: 800; }
.phonetics-letter-status { display: flex; align-items: center; gap: 15px; margin-left: auto; padding-right: 16px; }
.phonetics-letter-xp { display: inline-flex; min-height: 46px; align-items: center; gap: 8px; padding: 6px 16px; border: 1px solid #ffdc8a; border-radius: 15px; background: #fff9e9; color: #955611; font-size: 16px; font-weight: 900; white-space: nowrap; }
.phonetics-letter-xp img { width: 29px; height: 29px; object-fit: contain; }.phonetics-letter-hearts { display: inline-flex; gap: 6px; }.phonetics-letter-hearts img { width: 29px; height: 29px; object-fit: contain; }
.phonetics-letter-steps { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); min-height: 68px; gap: 3px; align-items: center; margin-top: 12px; padding: 8px 13px; border-radius: 20px; }
.phonetics-letter-step { display: flex; min-width: 0; align-items: center; justify-content: center; gap: 6px; padding: 8px 2px; border: 0; background: transparent; color: #667286; font: inherit; font-size: 12px; font-weight: 900; white-space: nowrap; }.phonetics-letter-step span { display: grid; width: 26px; height: 26px; flex: 0 0 auto; place-items: center; border-radius: 50%; background: #a7adb6; color: #fff; font-size: 14px; }.phonetics-letter-step b { overflow: hidden; text-overflow: ellipsis; }.phonetics-letter-step.is-current { color: #43962e; }.phonetics-letter-step.is-current span, .phonetics-letter-step.is-complete span { background: #5cad36; }.phonetics-letter-step.is-ready { color: #417d38; cursor: pointer; }.phonetics-letter-step:disabled { opacity: 1; cursor: default; }
.phonetics-letter-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: stretch; margin-top: 18px; }
.phonetics-letter-directory { position: relative; min-height: 638px; padding: 24px 20px 18px; overflow: hidden; border-radius: 24px; }.phonetics-letter-directory h2 { margin: 0 0 17px; color: #243652; font-size: 17px; font-weight: 900; }
.phonetics-directory-row { display: grid; grid-template-columns: minmax(0, 1fr) 42px; gap: 5px; min-height: 50px; margin-top: 9px; padding: 0 6px 0 13px; border: 1px solid #e0e5eb; border-radius: 13px; background: rgba(255,255,255,.9); transition: border-color .16s ease, background .16s ease; }.phonetics-directory-row.is-current { border-color: #d7edce; background: linear-gradient(115deg,#e3f4dc,#f3f9ee); }.phonetics-directory-row.is-complete:not(.is-current) { border-color: #d4ead2; }.phonetics-directory-row button { min-width: 0; border: 0; background: transparent; color: #243653; font: inherit; font-weight: 900; cursor: pointer; }.phonetics-directory-row button:first-child { text-align: left; font-size: 19px; }.phonetics-directory-row button:last-child { color: #54a837; font-size: 11px; }.phonetics-directory-row.is-current button:first-child { color: #42972e; }
.phonetics-letter-teacher-note { position: absolute; right: 18px; bottom: 151px; width: 175px; padding: 14px 14px; border: 1px solid #d8e0e9; border-radius: 15px; background: rgba(255,255,255,.96); color: #495b75; font-size: 14px; font-weight: 700; line-height: 1.45; }.phonetics-letter-teacher-note::after { position: absolute; bottom: -9px; left: 31px; width: 17px; height: 17px; border-right: 1px solid #d8e0e9; border-bottom: 1px solid #d8e0e9; background: #fff; content: ""; transform: rotate(45deg); }.phonetics-letter-teacher-note b { color: #3f8530; }.phonetics-letter-teacher { position: absolute; bottom: 4px; left: 18px; width: 190px; max-height: 155px; object-fit: contain; object-position: center bottom; }
.phonetics-letter-main-panel { min-width: 0; min-height: 638px; padding: 24px 32px 20px; border-radius: 24px; }.phonetics-pronunciation-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }.phonetics-pronunciation-heading h1, .phonetics-example-section h2, .phonetics-letter-next-step h1 { margin: 0; color: #1d3458; font-size: 30px; font-weight: 900; }.phonetics-pronunciation-heading p { margin: 8px 0 0; color: #3c4f6d; font-size: 16px; font-weight: 700; }.phonetics-pronunciation-tip { display: grid; min-width: 185px; grid-template-columns: auto 1fr; column-gap: 8px; padding: 12px 15px 12px 45px; border: 1px solid #d7ead2; border-radius: 20px; background: linear-gradient(145deg,#edf9e9,#f8fcf6); color: #56734b; font-size: 13px; line-height: 1.35; }.phonetics-pronunciation-tip strong { color: #4a9637; font-size: 15px; }.phonetics-pronunciation-stage { margin-top: 20px; padding: 26px 28px 18px; border: 1px solid #e1e7ed; border-radius: 18px; background: rgba(255,255,255,.8); }.phonetics-pronunciation-hero { display: flex; min-height: 126px; align-items: center; justify-content: center; gap: 54px; }.phonetics-pronunciation-hero strong { color: #162d50; font-size: 78px; font-weight: 900; letter-spacing: .02em; line-height: 1; }.phonetics-pronunciation-play { min-width: 112px; min-height: 66px; padding: 0 16px; border: 1px solid #d1e8cd; border-radius: 24px; background: linear-gradient(145deg,#eff9ec,#e3f2df); box-shadow: 0 6px 13px rgba(72,142,58,.12); color: #4d9e37; font: inherit; font-size: 17px; font-weight: 900; cursor: pointer; }.phonetics-pronunciation-play:hover, .phonetics-pronunciation-play:focus-visible { background: #dff0d9; transform: translateY(-1px); }.phonetics-articulation { margin-top: 13px; padding: 16px 24px; border-radius: 16px; background: linear-gradient(100deg,#f0f9ed,#f8fbf5); color: #344763; font-size: 16px; font-weight: 700; line-height: 1.5; }.phonetics-articulation b { color: #4b9a32; }.phonetics-pronunciation-hint { margin: 9px 5px 0; color: #758092; font-size: 13px; font-weight: 700; }
.phonetics-example-section { margin-top: 17px; padding: 17px 20px 18px; border: 1px solid #e2e8ed; border-radius: 17px; background: rgba(255,255,255,.8); }.phonetics-example-section h2 { font-size: 18px; }.phonetics-example-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 13px; margin-top: 14px; }.phonetics-example-card { min-width: 0; min-height: 144px; border: 1px solid #dce4eb; border-radius: 14px; background: linear-gradient(145deg,#fff,#f8fbfe); }.phonetics-example-card button { display: grid; width: 100%; min-height: 142px; align-content: center; gap: 7px; padding: 14px 8px; border: 0; border-radius: inherit; background: transparent; color: #243858; font: inherit; cursor: pointer; }.phonetics-example-card strong { overflow: hidden; font-size: 17px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }.phonetics-example-card span { color: #455d7e; font-size: 14px; font-weight: 800; }.phonetics-example-card em { color: #50627c; font-size: 14px; font-style: normal; font-weight: 800; }.phonetics-example-card i { color: #55a83b; font-size: 12px; font-style: normal; font-weight: 900; }.phonetics-example-card:hover { border-color: #a9d598; box-shadow: 0 5px 13px rgba(55,119,55,.1); transform: translateY(-1px); }
.phonetics-pronunciation-footer { display: grid; grid-template-columns: minmax(190px, 1fr) auto minmax(240px, 1fr); align-items: center; gap: 18px; margin-top: 17px; }.phonetics-pronunciation-footer button { min-height: 46px; padding: 0 17px; border: 1px solid #e0e5eb; border-radius: 13px; background: #f6f8fa; color: #657287; font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; }.phonetics-pronunciation-footer button:last-child { justify-self: end; border-color: #5aa92f; background: linear-gradient(105deg,#70b940,#55a12e); color: #fff; }.phonetics-pronunciation-footer button:disabled { cursor: default; opacity: .55; }.phonetics-pronunciation-footer strong { color: #182b4a; font-size: 18px; }.phonetics-letter-next-step { display: grid; min-height: 596px; place-content: center; justify-items: center; text-align: center; }.phonetics-letter-next-step p { max-width: 460px; margin: 15px 0 24px; color: #5c6d84; font-weight: 700; line-height: 1.6; }.phonetics-letter-next-step button { min-height: 44px; padding: 0 20px; border: 0; border-radius: 13px; background: #5aa934; color: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.phonetics-pronunciation[hidden], .phonetics-letter-next-step[hidden] { display: none !important; }
.phonetics-letter-contrast { min-height: 596px; }.phonetics-contrast-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; }.phonetics-contrast-heading h1 { margin: 0; color: #1d3458; font-size: 30px; font-weight: 900; }.phonetics-contrast-heading p { margin: 8px 0 0; color: #3c4f6d; font-size: 16px; font-weight: 700; }.phonetics-contrast-tip { display: grid; min-width: 185px; grid-template-columns: auto 1fr; column-gap: 8px; padding: 12px 15px 12px 45px; border: 1px solid #ded4f4; border-radius: 20px; background: linear-gradient(145deg,#f5f0ff,#fbf9ff); color: #6e6481; font-size: 13px; line-height: 1.35; }.phonetics-contrast-tip strong { color: #7653c6; font-size: 15px; }.phonetics-contrast-stage { display: grid; justify-items: center; min-height: 390px; margin-top: 20px; padding: 30px 28px 24px; border: 1px solid #e1e7ed; border-radius: 18px; background: rgba(255,255,255,.8); }.phonetics-contrast-prompt { min-height: 54px; padding: 0 25px; border: 1px solid #cfbff1; border-radius: 17px; background: linear-gradient(105deg,#7d59ce,#6745bd); box-shadow: 0 7px 16px rgba(98,68,180,.22); color: #fff; font: inherit; font-size: 16px; font-weight: 900; cursor: pointer; }.phonetics-contrast-prompt:hover, .phonetics-contrast-prompt:focus-visible { transform: translateY(-1px); }.phonetics-contrast-instruction { min-height: 24px; margin: 18px 0 19px; color: #58677e; font-size: 16px; font-weight: 800; }.phonetics-contrast-options { display: grid; width: min(630px,100%); grid-template-columns: repeat(2,minmax(0,1fr)); gap: 22px; }.phonetics-contrast-card { position: relative; min-height: 205px; overflow: hidden; border: 2px solid #dfe5ed; border-radius: 23px; background: linear-gradient(145deg,#fff,#f8fafc); box-shadow: 0 8px 18px rgba(42,68,104,.08); transition: border-color .18s ease, transform .18s ease, background .18s ease; }.phonetics-contrast-card:hover { border-color: #bba5ea; transform: translateY(-2px); }.phonetics-contrast-card.is-correct { border-color: #5baa39; background: linear-gradient(145deg,#f2faed,#e9f7e5); }.phonetics-contrast-preview { position: absolute; top: 14px; right: 14px; min-width: 48px; min-height: 35px; border: 1px solid #d5c8f2; border-radius: 12px; background: #f7f3ff; color: #7855c6; font: inherit; font-size: 12px; font-weight: 900; cursor: pointer; }.phonetics-contrast-choice { display: grid; width: 100%; min-height: 205px; place-content: center; gap: 13px; border: 0; background: transparent; color: #253a5b; cursor: pointer; }.phonetics-contrast-choice:disabled { cursor: default; }.phonetics-contrast-choice strong { font-size: 63px; font-weight: 900; line-height: 1; }.phonetics-contrast-choice span { color: #728098; font-size: 14px; font-weight: 800; }.phonetics-contrast-card.is-correct .phonetics-contrast-choice strong { color: #499631; }.phonetics-contrast-feedback { min-height: 24px; margin: 18px 0 0; color: #52952f; font-size: 15px; font-weight: 900; text-align: center; }.phonetics-contrast-footer { display: grid; grid-template-columns: minmax(180px,1fr) auto minmax(180px,1fr); align-items: center; gap: 18px; margin-top: 17px; }.phonetics-contrast-footer button, .phonetics-contrast-result button { min-height: 46px; padding: 0 17px; border: 1px solid #e0e5eb; border-radius: 13px; background: #f6f8fa; color: #657287; font: inherit; font-size: 15px; font-weight: 900; cursor: pointer; }.phonetics-contrast-footer button:last-child, .phonetics-contrast-result button:last-child { justify-self: end; border-color: #7553c5; background: linear-gradient(105deg,#8361d1,#6948bd); color: #fff; }.phonetics-contrast-footer button:disabled { cursor: default; opacity: .55; }.phonetics-contrast-footer strong { color: #182b4a; font-size: 18px; }.phonetics-contrast-result { display: grid; width: min(590px,100%); justify-items: center; gap: 22px; padding: 38px 24px; border: 1px solid #d7ead2; border-radius: 20px; background: linear-gradient(145deg,#f6fcf2,#edf8ea); color: #438830; }.phonetics-contrast-result > strong { font-size: 25px; }.phonetics-contrast-result > div { display: grid; width: 100%; grid-template-columns: repeat(3,1fr); gap: 12px; }.phonetics-contrast-result span { display: grid; gap: 5px; padding: 13px 8px; border-radius: 13px; background: rgba(255,255,255,.72); color: #66748b; font-size: 13px; font-weight: 800; text-align: center; }.phonetics-contrast-result b { color: #398428; font-size: 23px; }.phonetics-contrast-result button { justify-self: center; min-width: 160px; }.phonetics-contrast-result button:last-child { justify-self: center; }.phonetics-letter-contrast[hidden] { display: none !important; }

@media (max-width: 1040px) { body.phonetics-lesson-page .sound-toggle { right: 22px; }.phonetics-letter-status { margin-right: 92px; }.phonetics-letter-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }.phonetics-letter-layout { grid-template-columns: 220px minmax(0,1fr); }.phonetics-example-grid { grid-template-columns: repeat(3, minmax(0,1fr)); } }
@media (max-width: 720px) { body.phonetics-lesson-page .page { width: min(620px, calc(100% - 20px)); padding-top: 76px; }.phonetics-letter-topbar { flex-wrap: wrap; }.phonetics-letter-back { min-height: 52px; }.phonetics-letter-title-card { flex: 1; }.phonetics-letter-status { margin: 0; padding: 0; }.phonetics-letter-layout { grid-template-columns: 1fr; }.phonetics-letter-directory { min-height: 0; }.phonetics-letter-teacher-note, .phonetics-letter-teacher { display: none; }.phonetics-letter-main-panel { min-height: 0; padding: 20px 15px; }.phonetics-pronunciation-heading, .phonetics-contrast-heading { display: block; }.phonetics-pronunciation-tip, .phonetics-contrast-tip { margin-top: 13px; }.phonetics-pronunciation-hero { gap: 18px; }.phonetics-pronunciation-hero strong { font-size: 58px; }.phonetics-pronunciation-stage, .phonetics-contrast-stage { padding-inline: 15px; }.phonetics-example-grid, .phonetics-contrast-options { grid-template-columns: repeat(2, minmax(0,1fr)); }.phonetics-pronunciation-footer, .phonetics-contrast-footer { grid-template-columns: 1fr; justify-items: stretch; }.phonetics-pronunciation-footer button:last-child, .phonetics-contrast-footer button:last-child { justify-self: stretch; }.phonetics-contrast-choice strong { font-size: 51px; } }

@media (max-width: 1180px) {
    body.phonetics-page .page { width: min(1040px, calc(100% - 28px)); }
    .phonetics-shell { grid-template-columns: 220px minmax(0, 1fr); gap: 14px; }.phonetics-sidebar { padding-inline: 10px; }.phonetics-brand span { font-size: 24px; }.phonetics-nav-item { grid-template-columns: 34px minmax(0, 1fr); gap: 7px; }.phonetics-nav-item i { width: 30px; height: 30px; font-size: 17px; }.phonetics-nav-item strong { font-size: 14px; }.phonetics-nav-item small { font-size: 11px; }.phonetics-head-status { right: 164px; }.phonetics-stat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.phonetics-map-viewport { width: 100%; }.phonetics-mode-grid { grid-template-columns: repeat(4, minmax(128px, 1fr)); }
}

@media (max-width: 760px) {
    body.phonetics-page .page { width: min(calc(100% - 20px), 620px); padding-top: 12px; }.phonetics-shell { display: block; }.phonetics-sidebar { position: relative; top: 0; min-height: 0; margin-bottom: 12px; }.phonetics-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }.phonetics-sidebar-teacher { display: none; }.phonetics-nav-item { min-height: 54px; }.phonetics-main { gap: 11px; }.phonetics-hero-card { padding-top: 74px; }.phonetics-head-status { top: 17px; right: 18px; left: 18px; justify-content: space-between; }.phonetics-hero-title h1 { text-align: center; }.phonetics-stat-grid { grid-template-columns: 1fr; }.phonetics-mode-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }.phonetics-tip-bar { grid-template-columns: auto 1fr; }.phonetics-tip-bar a { grid-column: 1 / -1; justify-self: end; }.phonetics-map-card, .phonetics-training-card { padding-inline: 14px; }.phonetics-section-heading h2 { font-size: 22px; }.phonetics-map-filter { padding: 0 8px; font-size: 12px; }.phonetics-map-filter select { max-width: 66px; font-size: 12px; }
}

/* v2.5.551: formal A-Z phonetics learning-map layout without card number badges. */
body.phonetics-map-page {
    min-height: 100vh;
    background-color: #d8efff;
    background-image: url('/static/images/phonetics/map/phonetics-learning-map-final-background.png');
    background-position: center top;
    background-repeat: no-repeat;
    background-size: cover;
    background-attachment: fixed;
    color: #102d57;
}

body.phonetics-map-page .page {
    width: min(1512px, calc(100% - 32px));
    min-height: 100vh;
    margin: 0 auto;
    padding: 16px 0 28px;
}

body.phonetics-map-page .sound-toggle {
    top: 26px;
    right: max(344px, calc((100vw - 1512px) / 2 + 326px));
    z-index: 30;
}

body.phonetics-map-page .sound-toggle label {
    min-height: 49px;
    padding: 0 19px;
    border: 0;
    border-radius: 18px;
    background: rgba(255,255,255,.94);
    box-shadow: 0 10px 22px rgba(33,84,127,.16);
    color: #1c3a61;
    font-size: 16px;
    font-weight: 900;
}

.phonetics-map-world { position: relative; min-height: 1320px; }
.phonetics-map-topbar { position: relative; display: grid; min-height: 98px; grid-template-columns: minmax(180px,1fr) auto minmax(330px,1fr); align-items: start; }
.phonetics-map-home-link { display: inline-flex; width: max-content; min-height: 53px; align-items: center; justify-content: center; margin: 10px 0 0 10px; padding: 0 21px; border-radius: 23px; background: rgba(255,255,255,.94); box-shadow: 0 10px 22px rgba(32,82,127,.16); color: #15417b; font-size: 18px; font-weight: 900; transition: transform .16s ease, box-shadow .16s ease; }
.phonetics-map-home-link:hover, .phonetics-map-home-link:focus-visible { color: #0d6ed0; box-shadow: 0 13px 25px rgba(32,82,127,.22); transform: translateY(-2px); }
.phonetics-map-heading { display: grid; justify-items: center; gap: 4px; text-align: center; }
.phonetics-map-heading h1 { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 5px 0 0; color: #10366a; font-size: clamp(36px, 3.25vw, 48px); font-weight: 950; letter-spacing: .06em; line-height: 1.05; text-shadow: 0 2px 0 rgba(255,255,255,.52); }
.phonetics-map-heading h1 img { width: 48px; height: 48px; object-fit: contain; }
.phonetics-map-heading p { margin: 0; color: #17365f; font-size: 18px; font-weight: 900; letter-spacing: .08em; }
.phonetics-map-status { display: flex; align-items: center; justify-content: flex-end; gap: 16px; padding: 10px 10px 0 0; }
.phonetics-map-page .phonetics-xp { min-height: 50px; padding: 6px 19px; border: 1px solid #ffd77e; border-radius: 18px; background: rgba(255,251,238,.97); box-shadow: 0 9px 20px rgba(156,104,17,.12); color: #75410b; font-size: 17px; }
.phonetics-map-page .phonetics-xp img { width: 31px; height: 31px; }
.phonetics-map-page .phonetics-hearts { min-height: 50px; gap: 8px; padding: 0 18px; border-radius: 18px; background: rgba(255,255,255,.94); box-shadow: 0 9px 20px rgba(33,84,127,.14); }
.phonetics-map-page .phonetics-hearts img { width: 29px; height: 29px; }

.phonetics-map-canvas { position: relative; min-height: 1222px; overflow: hidden; }
.phonetics-map-route { position: absolute; inset: 1px 16px 0 138px; z-index: 0; width: calc(100% - 154px); height: 100%; overflow: visible; pointer-events: none; }
.phonetics-map-route path { fill: none; stroke: #178cf0; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 10 8; filter: drop-shadow(0 2px 0 rgba(255,255,255,.88)); }
.phonetics-map-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(7, minmax(112px, 1fr)); grid-template-rows: 289px repeat(3, 275px); column-gap: 14px; row-gap: 32px; min-height: 1222px; padding: 12px 12px 0 142px; }
.phonetics-map-page .phonetics-level-card { position: relative; z-index: 1; display: grid; width: min(100%, 140px); height: 275px; grid-template-columns: minmax(0,1fr); grid-template-rows: 120px 141px; row-gap: 14px; justify-self: center; grid-row: var(--map-row); grid-column: var(--map-column); min-height: 0; padding: 0; overflow: visible; border: 0; border-radius: 0; background: none; box-shadow: none; color: #143561; text-align: center; transition: transform .16s ease; }
.phonetics-map-page .phonetics-level-card::after { display: none; }
.phonetics-map-page .phonetics-level-card:hover:not(.is-locked) { box-shadow: none; transform: translateY(-5px); }
.phonetics-level-card-panel { position: relative; display: grid; min-width: 0; min-height: 0; grid-template-rows: 25px minmax(33px,auto) minmax(30px,1fr) 21px 25px; align-items: center; padding: 12px 8px 10px; border: 2px solid #1789f1; border-radius: 20px; background: linear-gradient(155deg,rgba(255,255,255,.98),rgba(248,252,255,.94)); box-shadow: 0 10px 17px rgba(39,105,163,.15); }
.phonetics-map-page .phonetics-level-number { position: absolute; top: 10px; left: 11px; display: grid; width: 25px; height: 25px; place-items: center; border-radius: 50%; background: #1685ec; color: #fff; font-size: 14px; font-weight: 950; line-height: 1; }
.phonetics-map-page .phonetics-level-card strong { display: block; min-height: 0; padding-left: 0; color: #16365f; font-size: 15px; font-weight: 950; line-height: 1.2; white-space: nowrap; }
.phonetics-map-page .phonetics-level-symbols { display: flex; min-height: 28px; align-content: center; align-items: center; justify-content: center; flex-wrap: wrap; gap: 1px 5px; margin: 0; color: #18365f; font-size: 15px; line-height: 1.12; }
.phonetics-map-page .phonetics-level-symbols b { font-weight: 900; }
.phonetics-map-page .phonetics-level-stars { min-height: 0; color: #bbc5cc; font-size: 21px; letter-spacing: 0; line-height: 1; }
.phonetics-map-page .phonetics-level-status { min-width: 71px; min-height: 23px; margin: 0 auto; padding: 4px 8px; border-radius: 9px; background: #dbe5ee; color: #637187; font-size: 12px; font-style: normal; font-weight: 900; line-height: 15px; }
.phonetics-map-page { --phonetics-map-island-width: 172px; --phonetics-map-island-height: 150px; --phonetics-map-standard-card-panel-width: 89px; }
.phonetics-map-page .phonetics-level-card[data-lesson-id="letter-a"] .phonetics-level-card-panel { width: var(--phonetics-map-standard-card-panel-width); grid-template-rows: 17px 27px 16px 21px; }
.phonetics-map-page .phonetics-level-card[data-lesson-id="letter-a"] .phonetics-level-symbols { min-height: 0; gap: 1px 2px; font-size: 11px; line-height: 1; }
.phonetics-map-page .phonetics-level-card[data-lesson-id="letter-a"] .phonetics-level-stars { font-size: 18px; line-height: .9; }
.phonetics-map-page .phonetics-level-island { position: relative; bottom: auto; left: auto; display: grid; width: var(--phonetics-map-island-width); height: var(--phonetics-map-island-height); place-items: center; justify-self: center; margin-top: 0; transform: none; }
.phonetics-map-page .phonetics-level-card:nth-child(3n + 2) .phonetics-level-island,
.phonetics-map-page .phonetics-level-card:nth-child(3n) .phonetics-level-island { bottom: auto; }
.phonetics-map-page .phonetics-level-island img { display: block; width: auto !important; height: 100% !important; max-width: 100% !important; max-height: 100% !important; object-fit: contain; filter: drop-shadow(0 8px 6px rgba(36,82,118,.26)); }
.phonetics-map-page .phonetics-level-card.is-current .phonetics-level-card-panel { border-color: #1689ef; background: linear-gradient(155deg,#fff,#edf8ff); box-shadow: 0 12px 21px rgba(21,133,237,.24); }
.phonetics-map-page .phonetics-level-card.is-current .phonetics-level-status { background: linear-gradient(90deg,#3ca4ff,#2087ed); color: #fff; }
.phonetics-map-page .phonetics-level-card.is-completed .phonetics-level-card-panel { border-color: #53af38; background: linear-gradient(155deg,#f7fff4,#eaf8e5); }
.phonetics-map-page .phonetics-level-card.is-completed .phonetics-level-number { background: #55aa35; }
.phonetics-map-page .phonetics-level-card.is-completed .phonetics-level-stars { color: #f3ab19; }
.phonetics-map-page .phonetics-level-card.is-completed .phonetics-level-status { background: #56aa35; color: #fff; }
.phonetics-map-page .phonetics-level-card.is-locked { cursor: not-allowed; }
.phonetics-map-page .phonetics-level-card.is-locked .phonetics-level-card-panel { border-color: #1d8cf0; background: linear-gradient(155deg,rgba(255,255,255,.93),rgba(246,250,254,.91)); }
.phonetics-map-page .phonetics-level-card.is-locked .phonetics-level-status { background: #e8eef4; color: #758295; }
.phonetics-map-page .phonetics-level-card.is-locked .phonetics-level-island img { filter: drop-shadow(0 8px 6px rgba(36,82,118,.26)); opacity: 1; }

.phonetics-map-tip { position: absolute; bottom: 4px; left: 3px; z-index: 3; display: flex; width: 310px; align-items: end; gap: 2px; pointer-events: none; }
.phonetics-map-tip > img { width: 107px; max-height: 156px; object-fit: contain; object-position: center bottom; }
.phonetics-map-tip > div { position: relative; width: 200px; margin-bottom: 8px; padding: 15px 16px 14px; border: 1px solid rgba(183,210,224,.9); border-radius: 17px; background: rgba(255,255,255,.93); box-shadow: 0 9px 19px rgba(26,83,120,.16); color: #264264; }
.phonetics-map-tip > div::after { position: absolute; bottom: 21px; left: -8px; width: 15px; height: 15px; border-bottom: 1px solid rgba(183,210,224,.9); border-left: 1px solid rgba(183,210,224,.9); background: rgba(255,255,255,.93); content: ""; transform: rotate(45deg); }
.phonetics-map-tip strong { display: block; color: #287a5a; font-size: 15px; font-weight: 950; }
.phonetics-map-tip p { margin: 8px 0 0; color: #24415f; font-size: 13px; font-weight: 800; line-height: 1.65; }

/* Keep the complete four-row desktop map in view in a 1440 × 900 classroom window. */
@media (min-width: 1000px) and (max-height: 930px) {
    body.phonetics-map-page .page { padding-top: 10px; padding-bottom: 10px; }
    .phonetics-map-world { min-height: 1197px; }
    .phonetics-map-topbar { min-height: 85px; }
    .phonetics-map-home-link { min-height: 48px; margin-top: 8px; }
    .phonetics-map-heading h1 { margin-top: 2px; font-size: 40px; }
    .phonetics-map-heading h1 img { width: 42px; height: 42px; }
    .phonetics-map-heading p { font-size: 16px; }
    .phonetics-map-canvas { min-height: 1112px; }
    .phonetics-map-grid { min-height: 1112px; grid-template-rows: 262px repeat(3, 248px); row-gap: 32px; padding-top: 10px; }
    .phonetics-map-page .phonetics-level-card { height: 248px; grid-template-rows: 104px 130px; row-gap: 14px; }
    .phonetics-level-card-panel { grid-template-rows: 22px minmax(28px,auto) minmax(25px,1fr) 18px 22px; padding: 10px 7px 8px; border-radius: 18px; }
    .phonetics-map-page .phonetics-level-number { top: 8px; left: 9px; width: 23px; height: 23px; font-size: 13px; }
    .phonetics-map-page .phonetics-level-card strong { font-size: 14px; }
    .phonetics-map-page .phonetics-level-symbols { font-size: 14px; }
    .phonetics-map-page .phonetics-level-stars { font-size: 19px; }
    .phonetics-map-page .phonetics-level-status { min-height: 21px; padding: 3px 7px; font-size: 11px; line-height: 15px; }
    .phonetics-map-page { --phonetics-map-island-width: 156px; --phonetics-map-island-height: 136px; --phonetics-map-standard-card-panel-width: 89px; }
    .phonetics-map-tip { transform: scale(.91); transform-origin: left bottom; }
}

@media (max-width: 1120px) {
    body.phonetics-map-page .page { width: min(1060px, calc(100% - 22px)); }
    body.phonetics-map-page .sound-toggle { right: 290px; }
    .phonetics-map-topbar { grid-template-columns: 154px 1fr 300px; }
    .phonetics-map-heading h1 { font-size: 35px; }
    .phonetics-map-grid { padding-left: 100px; column-gap: 8px; }
    .phonetics-map-route { left: 96px; width: calc(100% - 108px); }
    .phonetics-map-tip { transform: scale(.86); transform-origin: left bottom; }
}

@media (max-width: 760px) {
    body.phonetics-map-page .page { width: min(650px, calc(100% - 16px)); padding-top: 72px; }
    body.phonetics-map-page .sound-toggle { top: 14px; right: 15px; }
    .phonetics-map-topbar { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
    .phonetics-map-home-link { position: absolute; top: -58px; left: 0; min-height: 42px; margin: 0; padding: 0 15px; font-size: 14px; }
    .phonetics-map-status { padding: 0; }
    .phonetics-map-status .phonetics-xp { min-height: 42px; font-size: 14px; }
    .phonetics-map-status .phonetics-hearts { min-height: 42px; }
    .phonetics-map-heading h1 { font-size: 31px; }
    .phonetics-map-heading p { font-size: 13px; }
    .phonetics-map-canvas { min-height: 1170px; overflow-x: auto; }
    .phonetics-map-grid { width: 890px; min-height: 1060px; grid-template-columns: repeat(7, 116px); grid-template-rows: repeat(4, 210px); padding-left: 72px; }
    .phonetics-map-route { width: 850px; height: 1060px; left: 67px; }
    .phonetics-map-tip { bottom: 0; }
}

/* v2.5.568：首页 Hero 仅使用用户确认的固定背景 + 五岛 + 热气球分层。 */
.mascot-welcome-card.home-game-hero {
    isolation: isolate;
    overflow: hidden;
    background: #bce8ff;
}

.mascot-welcome-card.home-game-hero::after,
.mascot-welcome-card.home-game-hero .home-streak-glow {
    display: none;
}

.mascot-welcome-card.home-game-hero > .home-hero-background {
    position: absolute;
    z-index: 0;
    inset: 0;
    display: block;
    width: 100% !important;
    height: 100% !important;
    clip-path: none !important;
    object-fit: cover;
    object-position: center center;
    pointer-events: none;
    user-select: none;
}

.mascot-welcome-card.home-game-hero > .home-hero-floating-layer {
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block;
    min-width: 0;
    padding: 0;
    overflow: visible;
    isolation: auto;
    perspective: 1000px;
    pointer-events: none;
}

/* v2.5.578：首页 Hero 欢迎语保持为真实 HTML 层，背景图只承载天空、海面与草坪。 */
.mascot-welcome-card.home-game-hero > .home-hero-title {
    position: absolute;
    z-index: 3;
    top: 17%;
    left: 50%;
    width: min(610px, 49%);
    margin: 0;
    transform: translateX(-50%);
    color: #102b43;
    text-align: center;
    pointer-events: none;
    user-select: none;
}

.mascot-welcome-card.home-game-hero > .home-hero-title h2 {
    margin: 0;
    color: #102b43;
    font-size: clamp(35px, 4.05vw, 64px);
    font-weight: 900;
    letter-spacing: .025em;
    line-height: 1.12;
    text-shadow: 0 2px 5px rgba(255, 255, 255, .38);
}

.mascot-welcome-card.home-game-hero > .home-hero-title h2 span {
    color: #198346;
    font-size: inherit;
    font-weight: inherit;
}

.mascot-welcome-card.home-game-hero > .home-hero-title p {
    margin: clamp(7px, .8vw, 12px) 0 0;
    color: #112b42;
    font-size: clamp(17px, 1.75vw, 27px);
    font-weight: 800;
    letter-spacing: .05em;
    line-height: 1.25;
    text-shadow: 0 1px 4px rgba(255, 255, 255, .44);
}

/* v2.5.588：首页 Hero 邀请入口在桌面端贴齐 Hero 的右下边界；移动端保留安全边距。 */
.mascot-welcome-card.home-game-hero > .home-hero-referral-card {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 36px minmax(0, 1fr) 34px auto;
    justify-items: center;
    align-items: center;
    gap: 7px;
    width: clamp(72px, 6.8%, 86px);
    height: clamp(242px, 54%, 310px);
    padding: 10px 7px 9px;
    overflow: hidden;
    border: 1px solid rgba(67, 157, 77, .72);
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(255, 255, 255, .94), rgba(238, 250, 239, .84));
    box-shadow: 0 7px 16px rgba(30, 91, 49, .15), inset 0 1px rgba(255, 255, 255, .9);
    color: #176d34;
    text-decoration: none;
    transition: transform 210ms ease, box-shadow 210ms ease, border-color 210ms ease;
}

.mascot-welcome-card.home-game-hero > .home-hero-referral-card:hover {
    border-color: rgba(42, 140, 61, .92);
    box-shadow: 0 10px 21px rgba(30, 91, 49, .23), inset 0 1px rgba(255, 255, 255, .94);
    transform: translateY(-2px);
}

.mascot-welcome-card.home-game-hero .home-hero-referral-icon {
    grid-row: 1;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #62c85a, #2f9e44);
    box-shadow: inset 0 1px rgba(255, 255, 255, .38), 0 3px 7px rgba(35, 126, 52, .22);
    color: #ffffff;
}

.mascot-welcome-card.home-game-hero .home-hero-referral-icon svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.85;
}

.mascot-welcome-card.home-game-hero .home-hero-referral-copy {
    display: contents;
}

.mascot-welcome-card.home-game-hero .home-hero-referral-copy strong {
    grid-row: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    align-self: stretch;
    overflow: visible;
    color: #176d34;
    font-size: clamp(15px, 1.2vw, 17px);
    font-weight: 900;
    line-height: 1.04;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
}

.mascot-welcome-card.home-game-hero .home-hero-referral-copy small {
    grid-row: 4;
    overflow: visible;
    color: #64726b;
    font-size: clamp(8px, .63vw, 9px);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    text-overflow: clip;
    white-space: normal;
}

.mascot-welcome-card.home-game-hero .home-hero-referral-arrow {
    grid-row: 3;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 50%;
    background: #edf7ec;
    color: #238442;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
    transition: transform 210ms ease;
}

.mascot-welcome-card.home-game-hero > .home-hero-referral-card:hover .home-hero-referral-arrow {
    transform: translateX(3px);
}

.referral-placeholder {
    display: grid;
    justify-items: center;
    gap: 12px;
    width: min(460px, calc(100% - 32px));
    margin: 68px auto;
    text-align: center;
}

.referral-placeholder-icon {
    display: grid;
    width: 56px;
    height: 56px;
    place-items: center;
    border-radius: 18px;
    background: #e9f8ea;
    font-size: 30px;
}

.mascot-welcome-card.home-game-hero > .home-hero-floating-layer::before,
.mascot-welcome-card.home-game-hero > .home-hero-floating-layer::after,
.mascot-welcome-card.home-game-hero > .home-hero-live-stats::before,
.mascot-welcome-card.home-game-hero > .home-hero-live-stats::after {
    display: none;
}

.mascot-welcome-card.home-game-hero .home-hero-floating-island,
.mascot-welcome-card.home-game-hero > .home-hero-balloon {
    position: absolute;
    display: block;
    width: auto;
    height: auto;
    max-width: none;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    pointer-events: none;
    user-select: none;
    will-change: transform;
}

.mascot-welcome-card.home-game-hero .home-hero-floating-island {
    --hero-parallax-x: 0px;
    --hero-parallax-y: 0px;
    z-index: 1;
    filter: drop-shadow(0 14px 12px rgba(22, 65, 78, .17));
    transform-style: preserve-3d;
}

.mascot-welcome-card.home-game-hero .home-hero-island-spinner {
    display: block;
    width: 100%;
    height: auto;
    transform-origin: center center;
    backface-visibility: visible;
    transform-style: preserve-3d;
    will-change: transform, opacity;
}

.mascot-welcome-card.home-game-hero .home-hero-island-01 { --carousel-right-x: 14px; --carousel-left-x: -14px; --carousel-front-y: -6px; --carousel-back-y: 7px; --carousel-return-y: 8px; --carousel-back-scale: .89; --carousel-front-scale: 1.08; --carousel-return-scale: .84; --carousel-right-turn: 10deg; --carousel-left-turn: -10deg; top: 19%; left: 4.8%; width: clamp(126px, 14%, 210px); animation: home-hero-island-one 14s ease-in-out -2.1s infinite alternate; }
.mascot-welcome-card.home-game-hero .home-hero-island-02 { --carousel-right-x: 10px; --carousel-left-x: -10px; --carousel-front-y: -4px; --carousel-back-y: 5px; --carousel-return-y: 7px; --carousel-back-scale: .91; --carousel-front-scale: 1.06; --carousel-return-scale: .87; --carousel-right-turn: 8deg; --carousel-left-turn: -8deg; top: 58%; left: 10.8%; width: clamp(72px, 6.3%, 96px); animation: home-hero-island-two 10s ease-in-out -4.3s infinite alternate; }
.mascot-welcome-card.home-game-hero .home-hero-island-03 { --carousel-right-x: 13px; --carousel-left-x: -13px; --carousel-front-y: -6px; --carousel-back-y: 7px; --carousel-return-y: 9px; --carousel-back-scale: .88; --carousel-front-scale: 1.09; --carousel-return-scale: .83; --carousel-right-turn: 10deg; --carousel-left-turn: -10deg; top: 9%; left: 65.5%; width: clamp(92px, 8.4%, 126px); animation: home-hero-island-three 16s ease-in-out -7.6s infinite alternate; }
.mascot-welcome-card.home-game-hero .home-hero-island-04 { --carousel-right-x: 9px; --carousel-left-x: -9px; --carousel-front-y: -4px; --carousel-back-y: 5px; --carousel-return-y: 7px; --carousel-back-scale: .91; --carousel-front-scale: 1.06; --carousel-return-scale: .87; --carousel-right-turn: 8deg; --carousel-left-turn: -8deg; top: 12%; left: 75%; width: clamp(65px, 5.8%, 88px); animation: home-hero-island-four 12s ease-in-out -5.1s infinite alternate; }
.mascot-welcome-card.home-game-hero .home-hero-island-05 { --carousel-right-x: 12px; --carousel-left-x: -12px; --carousel-front-y: -5px; --carousel-back-y: 6px; --carousel-return-y: 8px; --carousel-back-scale: .89; --carousel-front-scale: 1.08; --carousel-return-scale: .85; --carousel-right-turn: 9deg; --carousel-left-turn: -9deg; top: 42%; right: 20%; width: clamp(88px, 8.2%, 124px); animation: home-hero-island-five 15s ease-in-out -9.4s infinite alternate; }
.mascot-welcome-card.home-game-hero .home-hero-island-01 .home-hero-island-spinner { animation: home-hero-island-carousel-orbit 14s linear 0s infinite normal; }
.mascot-welcome-card.home-game-hero .home-hero-island-02 .home-hero-island-spinner { animation: home-hero-island-carousel-orbit 17s linear -4s infinite normal; }
.mascot-welcome-card.home-game-hero .home-hero-island-03 .home-hero-island-spinner { animation: home-hero-island-carousel-orbit 20s linear -9s infinite normal; }
.mascot-welcome-card.home-game-hero .home-hero-island-04 .home-hero-island-spinner { animation: home-hero-island-carousel-orbit 15s linear -6s infinite normal; }
.mascot-welcome-card.home-game-hero .home-hero-island-05 .home-hero-island-spinner { animation: home-hero-island-carousel-orbit 18s linear -12s infinite normal; }

.mascot-welcome-card.home-game-hero > .home-hero-balloon {
    --hero-parallax-x: 0px;
    --hero-parallax-y: 0px;
    z-index: 2;
    top: 1%;
    right: -1.5%;
    width: clamp(380px, 34.5%, 520px);
    clip-path: none !important;
    object-fit: contain;
    filter: drop-shadow(0 16px 16px rgba(38, 69, 71, .19));
    animation: home-hero-balloon-float 8.5s ease-in-out -3.4s infinite alternate;
}

.mascot-welcome-card.home-game-hero .home-hero-live-stats {
    z-index: 3;
    padding: 0;
}

@keyframes home-hero-island-one {
    from { transform: translate3d(calc(var(--hero-parallax-x) - 3px), calc(var(--hero-parallax-y) - 7px), 0); }
    to { transform: translate3d(calc(var(--hero-parallax-x) + 3px), calc(var(--hero-parallax-y) + 7px), 0); }
}

@keyframes home-hero-island-two {
    from { transform: translate3d(calc(var(--hero-parallax-x) - 2px), calc(var(--hero-parallax-y) + 5px), 0); }
    to { transform: translate3d(calc(var(--hero-parallax-x) + 2px), calc(var(--hero-parallax-y) - 5px), 0); }
}

@keyframes home-hero-island-three {
    from { transform: translate3d(calc(var(--hero-parallax-x) + 4px), calc(var(--hero-parallax-y) - 9px), 0); }
    to { transform: translate3d(calc(var(--hero-parallax-x) - 4px), calc(var(--hero-parallax-y) + 9px), 0); }
}

@keyframes home-hero-island-four {
    from { transform: translate3d(calc(var(--hero-parallax-x) - 3px), calc(var(--hero-parallax-y) + 6px), 0); }
    to { transform: translate3d(calc(var(--hero-parallax-x) + 3px), calc(var(--hero-parallax-y) - 6px), 0); }
}

@keyframes home-hero-island-five {
    from { transform: translate3d(calc(var(--hero-parallax-x) + 4px), calc(var(--hero-parallax-y) + 8px), 0); }
    to { transform: translate3d(calc(var(--hero-parallax-x) - 4px), calc(var(--hero-parallax-y) - 8px), 0); }
}

@keyframes home-hero-island-carousel-orbit {
    0%, 100% {
        opacity: .72;
        transform: translate3d(var(--carousel-right-x), var(--carousel-back-y), 0) scale(var(--carousel-back-scale)) rotateY(var(--carousel-right-turn));
    }
    24% {
        opacity: 1;
        transform: translate3d(0, var(--carousel-front-y), 0) scale(var(--carousel-front-scale)) rotateY(0deg);
    }
    50% {
        opacity: .72;
        transform: translate3d(var(--carousel-left-x), var(--carousel-back-y), 0) scale(var(--carousel-back-scale)) rotateY(var(--carousel-left-turn));
    }
    76% {
        opacity: .64;
        transform: translate3d(0, var(--carousel-return-y), 0) scale(var(--carousel-return-scale)) rotateY(0deg);
    }
}

@keyframes home-hero-balloon-float {
    from { transform: translate3d(calc(var(--hero-parallax-x) - 2px), calc(var(--hero-parallax-y) + 8px), 0) rotate(-.45deg); }
    to { transform: translate3d(calc(var(--hero-parallax-x) + 2px), calc(var(--hero-parallax-y) - 8px), 0) rotate(.45deg); }
}

@media (max-width: 1100px) {
    .mascot-welcome-card.home-game-hero .home-hero-island-03 {
        top: 4%;
        width: clamp(80px, 7.3%, 96px);
    }
}

@media (max-width: 720px) {
    .mascot-welcome-card.home-game-hero > .home-hero-title {
        top: 13%;
        width: 72%;
    }
    .mascot-welcome-card.home-game-hero > .home-hero-title h2 {
        font-size: clamp(26px, 7vw, 38px);
    }
    .mascot-welcome-card.home-game-hero > .home-hero-title p {
        font-size: clamp(13px, 3.3vw, 18px);
    }
    .mascot-welcome-card.home-game-hero > .home-hero-referral-card {
        right: 1.2%;
        bottom: 2%;
        grid-template-rows: 29px minmax(0, 1fr) 27px auto;
        gap: 4px;
        width: clamp(52px, 14vw, 66px);
        height: clamp(194px, 48%, 238px);
        padding: 7px 5px 6px;
        border-radius: 16px;
    }
    .mascot-welcome-card.home-game-hero .home-hero-referral-icon {
        width: 29px;
        height: 29px;
        border-radius: 9px;
    }
    .mascot-welcome-card.home-game-hero .home-hero-referral-icon svg {
        width: 19px;
        height: 19px;
    }
    .mascot-welcome-card.home-game-hero .home-hero-referral-copy strong {
        font-size: clamp(12px, 3.3vw, 15px);
    }
    .mascot-welcome-card.home-game-hero .home-hero-referral-copy small {
        font-size: clamp(7px, 1.8vw, 8px);
    }
    .mascot-welcome-card.home-game-hero .home-hero-referral-arrow {
        width: 27px;
        height: 27px;
        font-size: 20px;
    }
    .mascot-welcome-card.home-game-hero .home-hero-island-01 { left: 2.5%; }
    .mascot-welcome-card.home-game-hero .home-hero-island-02 { left: 8.5%; }
    .mascot-welcome-card.home-game-hero .home-hero-island-03 { left: 63.5%; }
    .mascot-welcome-card.home-game-hero .home-hero-island-04 { left: 75%; }
    .mascot-welcome-card.home-game-hero .home-hero-island-05 { right: 19%; }
    .mascot-welcome-card.home-game-hero > .home-hero-balloon { right: 1%; }
}

@media (prefers-reduced-motion: reduce) {
    .mascot-welcome-card.home-game-hero .home-hero-floating-island,
    .mascot-welcome-card.home-game-hero .home-hero-island-spinner,
    .mascot-welcome-card.home-game-hero > .home-hero-balloon {
        animation: none;
        transform: none;
    }
}

/* v2.5.598：首页账户入口与品牌同属 Header 左侧，Hero 分层与动画不受影响。 */
.home-page .home-site-header { display: flex; min-height: 48px; align-items: center; justify-content: flex-start; margin-bottom: 16px; padding-right: 98px; }
.home-page .home-site-header-left { display: flex; min-width: 0; align-items: center; gap: 21px; }
.home-page .home-site-header h1 { margin: 0; color: #1f2937; font-size: 36px; text-align: left; }
.home-account-entry { position: relative; z-index: 12; flex: 0 0 auto; }
.home-account-desktop { display: none; }
.home-login-link { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 18px; border: 1px solid #bfe3d0; border-radius: 999px; background: rgba(255,255,255,.9); box-shadow: 0 6px 14px rgba(41,109,81,.1); color: #25814b; font-size: 14px; font-weight: 900; text-decoration: none; transition: transform 180ms ease, box-shadow 180ms ease; }
.home-login-link:hover { box-shadow: 0 9px 18px rgba(41,109,81,.16); transform: translateY(-1px); }
.home-account-menu { position: relative; }
.home-account-menu summary { display: flex; max-width: 218px; min-height: 42px; align-items: center; gap: 8px; padding: 3px 10px 3px 4px; border: 1px solid rgba(188,219,233,.9); border-radius: 999px; background: rgba(255,255,255,.92); box-shadow: 0 6px 14px rgba(38,93,141,.1); color: #2a425c; cursor: pointer; list-style: none; }
.home-account-menu summary::-webkit-details-marker { display: none; }
.home-account-menu summary img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%; object-fit: cover; }
.home-account-menu summary span { overflow: hidden; color: #2a425c; font-size: 14px; font-weight: 900; text-overflow: ellipsis; white-space: nowrap; }
.home-account-menu summary i { margin-left: 1px; color: #65809c; font-size: 17px; font-style: normal; line-height: 1; transition: transform 160ms ease; }
.home-account-menu[open] summary i { transform: rotate(180deg); }
.home-account-menu nav { position: absolute; top: calc(100% + 9px); right: 0; display: grid; width: 208px; padding: 7px; border: 1px solid #d8e8f3; border-radius: 16px; background: rgba(255,255,255,.98); box-shadow: 0 16px 30px rgba(37,79,119,.17); }
.home-account-menu nav > span, .home-account-menu nav > a, .home-account-menu nav form button { display: flex; min-height: 36px; align-items: center; padding: 0 11px; border: 0; border-radius: 10px; background: transparent; color: #49657e; font: inherit; font-size: 13px; font-weight: 800; text-align: left; text-decoration: none; box-sizing: border-box; }
.home-account-menu nav > span { color: #8a9aae; cursor: default; }
.home-account-menu nav > a:hover { background: #eef8f1; color: #25814b; }
.home-account-menu nav > .home-account-referral-link { color: #176d34; }
.home-account-menu nav > .home-account-referral-link:hover { color: #125a2b; }
.home-account-menu nav form { margin: 2px 0 0; padding-top: 5px; border-top: 1px solid #edf2f5; }
.home-account-menu nav form button { width: 100%; color: #d05645; cursor: pointer; }
.home-account-menu nav form button:hover { background: #fff2ee; }
@media (min-width: 1100px) {
    .home-account-menu { display: none; }
    .home-account-desktop { display: flex; align-items: center; gap: clamp(15px, 1.1vw, 18px); white-space: nowrap; }
    .home-account-identity { display: inline-flex; max-width: 188px; min-height: 44px; align-items: center; gap: 9px; padding: 2px 3px; color: #2a425c; font-size: clamp(19px, 1.4vw, 21px); font-weight: 700; text-decoration: none; }
    .home-account-identity:hover { color: #25814b; }
    .home-account-identity img { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; object-fit: cover; }
    .home-account-identity span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
    .home-account-direct-nav { display: flex; align-items: center; gap: clamp(4px, .55vw, 8px); }
    .home-account-direct-nav > a, .home-account-direct-nav form button { display: inline-flex; min-height: 44px; align-items: center; justify-content: center; padding: 0 clamp(7px, .75vw, 11px); border: 0; background: transparent; color: #49657e; font: inherit; font-size: clamp(19px, 1.4vw, 21px); font-weight: 700; text-decoration: none; cursor: pointer; transition: color 160ms ease; }
    .home-account-direct-nav > a:hover { color: #284f72; }
    .home-account-direct-nav > .home-account-referral-link { color: #176d34; }
    .home-account-direct-nav > .home-account-referral-link:hover { color: #125a2b; }
    .home-account-direct-nav form { margin: 0; }
    .home-account-direct-nav form button { color: #c36a60; }
    .home-account-direct-nav form button:hover { color: #b34e45; }
}
@media (max-width: 720px) { .home-page .home-site-header { min-height: 42px; margin-bottom: 11px; padding-right: 76px; }.home-page .home-site-header-left { max-width: 100%; gap: 14px; }.home-page .home-site-header h1 { flex: 0 1 auto; min-width: 0; font-size: 27px; white-space: nowrap; }.home-account-menu summary { max-width: 42px; padding: 3px; }.home-account-menu summary span, .home-account-menu summary i { display: none; }.home-account-menu summary img { width: 34px; height: 34px; }.home-account-menu nav { width: 192px; }.home-login-link { min-height: 34px; padding: 0 13px; font-size: 13px; } }

/* v2.5.577：首页 Hero 将练习与连击状态拆为两个独立的小型玻璃卡，数据与结构保持不变。 */
@media (min-width: 721px) {
    .mascot-welcome-card.home-game-hero .home-hero-compact-statusbar {
        bottom: 10%;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        grid-template-rows: 100px;
        gap: 16px;
        width: min(380px, 38%);
        height: 100px;
        max-height: none;
        padding: 0;
        border: 0;
        border-radius: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
    }

    .mascot-welcome-card.home-game-hero .home-hero-compact-statusbar .home-hero-stat-group {
        display: flex;
        width: 100%;
        height: 100px;
        min-height: 100px;
        align-items: center;
        gap: 6px;
        padding: 12px 10px;
        border: 1px solid rgba(223, 245, 250, .94);
        border-radius: 20px;
        background: linear-gradient(145deg, rgba(240, 252, 255, .78), rgba(201, 237, 248, .62));
        box-shadow: inset 0 1px rgba(255, 255, 255, .72), 0 5px 13px rgba(43, 91, 109, .11);
        backdrop-filter: blur(5px);
        -webkit-backdrop-filter: blur(5px);
    }

    .mascot-welcome-card.home-game-hero .home-hero-status-divider {
        display: none;
    }

    .mascot-welcome-card.home-game-hero .home-hero-compact-statusbar .home-hero-stat-value {
        font-size: 26px;
    }

    .mascot-welcome-card.home-game-hero .home-hero-status-copy small,
    .mascot-welcome-card.home-game-hero .home-hero-status-copy em {
        font-size: 9px;
    }
}
