#index {
    min-width: 0;
}

#index #columns {
    width: 100%;
    max-width: none;
    padding-right: 0;
    padding-bottom: 0;
    padding-left: 0;
}

#index #columns > .row {
    margin-right: 0;
    margin-left: 0;
}

#index #center_column {
    float: none;
    width: 100%;
    padding-right: 0;
    padding-left: 0;
}

#hw-home-relaunch {
    --blue: var(--hd-primary, #2e4a43);
    --hover: var(--hd-primary, #2e4a43);
    --deep: var(--hd-primary-hover, #1f342f);
    --ink: var(--hd-text, #222a2d);
    --sub: var(--hd-muted, #5d686c);
    --line: var(--hd-border, #d7ddda);
    --sky: var(--hd-accent-soft, #fff3c4);
    --pale: var(--hd-primary-soft, #e7eeea);
    --warm: var(--hd-accent-soft, #fff3c4);
    --shadow: 0 18px 55px rgba(31, 52, 47, .10);
    min-width: 0;
    width: 100%;
    background: var(--hd-surface, #fff);
    color: var(--ink);
    font: 16px/1.62 "Noto Sans", Arial, sans-serif;
}

#hw-home-relaunch,
#hw-home-relaunch * {
    box-sizing: border-box;
}

#hw-home-relaunch :is(.hero, .dict, .core, .paths, .end) :where(h1, h2, h3, h4, p, figure, ul) {
    margin: 0;
}

#hw-home-relaunch :is(.hero, .dict, .core, .paths, .end) :where(h1, h2, h3, h4) {
    color: inherit;
    font-family: inherit;
    font-weight: 700;
    text-transform: none;
}

#hw-home-relaunch .hero h1 {
    font-size: clamp(38px, 4.5vw, 60px);
    line-height: 1.1;
    letter-spacing: -.035em;
}

#hw-home-relaunch :is(.dict, .core, .paths, .end) h2 {
    font-size: clamp(31px, 3.2vw, 42px);
    line-height: 1.17;
    letter-spacing: -.025em;
}

#hw-home-relaunch :is(.dict, .core, .paths, .end) h3 {
    font-size: 22px;
    line-height: 1.32;
}

#hw-home-relaunch :is(.hero, .dict, .core, .paths, .end) p {
    color: var(--sub);
}

#hw-home-relaunch :is(.hero, .dict, .core, .paths, .end) a {
    color: inherit;
    text-decoration: none;
}

#hw-home-relaunch :is(.hero, .dict, .core, .paths, .end) button,
#hw-home-relaunch :is(.hero, .dict, .core, .paths, .end) input {
    font: inherit;
}

#hw-home-relaunch :is(.hero, .dict, .core, .paths, .end) button {
    cursor: pointer;
    display: none
}

#hw-home-relaunch :is(.hero, .dict, .core, .paths, .end) img {
    display: block;
    max-width: 100%;
}

#hw-home-relaunch :is(.hero, .dict, .core, .paths, .end) :focus-visible {
    outline: 3px solid var(--deep);
    outline-offset: 3px;
}

#hw-home-relaunch .wrap {
    width: min(100% - 48px, 1200px);
    margin-inline: auto;
}

#hw-home-relaunch :is(.dict, .core, .paths).section {
    padding-block: 84px;
}

#hw-home-relaunch .hanzi,
#hw-home-relaunch .ff-simkai {
    font-family: "simkai", KaiTi, STKaiti, serif;
    font-weight: 400;
}

#hw-home-relaunch .btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 11px 22px;
    border: 1px solid var(--blue);
    border-radius: 11px;
    font-size: 15px;
    line-height: 1.4;
    font-weight: 700;
    text-align: center;
    transition: background .18s, border-color .18s, color .18s;
}

#hw-home-relaunch .btn-main,
#hw-home-relaunch a.btn-main {
    background: var(--hover);
    border-color: var(--hover);
    color: #fff;
}

#hw-home-relaunch .btn-main:hover,
#hw-home-relaunch a.btn-main:hover {
    background: var(--deep);
    border-color: var(--deep);
    color: #fff;
}

#hw-home-relaunch .btn-line,
#hw-home-relaunch a.btn-line {
    background: #fff;
    color: var(--deep);
}

#hw-home-relaunch .btn-line:hover,
#hw-home-relaunch a.btn-line:hover {
    background: var(--pale);
    color: var(--deep);
}

#hw-home-relaunch .actions {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 11px;
}

#hw-home-relaunch .muted {
    color: var(--sub);
    font-size: 13px;
    line-height: 1.55;
}

#hw-home-relaunch .section-title {
    max-width: 760px;
    margin-bottom: 36px;
}

#hw-home-relaunch .section-title p {
    max-width: 680px;
    margin-top: 17px;
    font-size: 18px;
    line-height: 1.65;
}

/* Opening scene and word journey. */
#hw-home-relaunch .hero {
    padding: 70px 0 50px;
    background: linear-gradient(var(--hd-canvas, #f6f7f3), #fff);
}

#hw-home-relaunch .hero-intro {
    max-width: 865px;
    margin-inline: auto;
    text-align: center;
}

#hw-home-relaunch .hero-intro h1 span {
    color: var(--deep);
}

#hw-home-relaunch .hero-intro > p:not(.hero-free) {
    max-width: 660px;
    margin: 20px auto 0;
    font-size: 19px;
    line-height: 1.6;
}

#hw-home-relaunch .search-form {
    position: relative;
    max-width: 705px;
    margin: 30px auto 0;
}

#hw-home-relaunch .search-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
}

#hw-home-relaunch .search-form__field {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: none;
    min-height: 60px;
    margin: 0;
    padding: 7px 7px 7px 20px;
    border: 1px solid var(--hd-border, #d7ddda);
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 12px 28px rgba(31, 52, 47, .08);
    text-align: left;
}

#hw-home-relaunch .search-form__field:focus-within {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(39, 94, 168, .18), 0 12px 28px rgba(31, 52, 47, .08);
}

#hw-home-relaunch .search-form input {
    flex: 1 1 auto;
    width: 100%;
    min-width: 0;
    min-height: 42px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--ink);
    font-size: 16px;
}

#hw-home-relaunch .search-form input::placeholder {
    color: var(--hd-muted, #5d686c);
    opacity: 1;
}

#hw-home-relaunch .search-form .btn {
    flex: none;
    min-height: 44px;
}

#hw-home-relaunch .search-form .hanzi-search_result {
    position: absolute;
    top: calc(100% + 7px);
    left: 0;
    z-index: 20;
    display: none;
    width: 100%;
    max-height: min(390px, 60vh);
    margin: 0;
    padding: 7px;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 14px 38px rgba(31, 52, 47, .14);
    list-style: none;
}

#hw-home-relaunch .search-form .hanzi-search_result > li {
    padding: 0;
}

#hw-home-relaunch .search-form .hanzi-search_result > li > a {
    display: block;
    min-height: 44px;
    padding: 9px 11px;
    border-radius: 8px;
    color: var(--ink);
}

#hw-home-relaunch .hero-intro .hero-free {
    margin-top: 11px;
    font-size: 13px;
}

#hw-home-relaunch .hero-demo {
    margin-top: 52px;
    overflow: hidden;
    border: 1px solid var(--hd-border, #d7ddda);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
}

#hw-home-relaunch .hero-demo-head {
    display: flex;
    align-items: center;
    padding: 13px 22px;
    border-bottom: 1px solid var(--hd-border, #d7ddda);
    background: var(--pale);
    color: var(--deep);
    font-size: 13px;
    font-weight: 700;
}

#hw-home-relaunch .hero-flow {
    display: grid;
    grid-template-columns: 1.16fr 1.05fr 1fr;
    align-items: stretch;
}

#hw-home-relaunch .flow-cell {
    position: relative;
    min-width: 0;
    padding: 24px 27px;
}

#hw-home-relaunch .flow-cell + .flow-cell {
    border-left: 1px solid var(--hd-border, #d7ddda);
}

#hw-home-relaunch .flow-cell:not(:last-child)::after {
    position: absolute;
    top: 50%;
    right: -20px;
    z-index: 1;
    width: 40px;
    height: 40px;
    border: 1px solid var(--hd-control-border, #7d8983);
    border-radius: 50%;
    background: var(--hd-primary-soft, #e7eeea) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f342f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14m-6-6 6 6-6 6'/%3E%3C/svg%3E") center / 22px 22px no-repeat;
    box-shadow: 0 4px 12px rgba(31, 52, 47, .12);
    content: "";
    transform: translateY(-50%);
}

#hw-home-relaunch .flow-label {
    display: block;
    margin-bottom: 12px;
    color: var(--sub);
    font-size: 12px;
    font-weight: 700;
}

#hw-home-relaunch .flow-stage-head {
    display: flex;
    align-items: flex-start;
    min-height: 27px;
}

#hw-home-relaunch .flow-stage-head .flow-label {
    margin: 0;
}

#hw-home-relaunch .flow-word {
    display: grid;
    grid-template-columns: 72px 70px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    margin-top: 18px;
}

#hw-home-relaunch .flow-illustration {
    width: 72px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

#hw-home-relaunch .flow-word .hanzi {
    font-size: 70px;
    line-height: 1;
}

#hw-home-relaunch .flow-word-details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 3px;
    min-width: 0;
    min-height: 72px;
}

#hw-home-relaunch .flow-pronunciation {
    display: flex;
    align-items: center;
    gap: 9px;
}

#hw-home-relaunch .flow-pinyin {
    color: var(--deep);
    font-size: 18px;
    line-height: 1.15;
}

#hw-home-relaunch .flow-translation {
    color: var(--sub);
    font-size: 14px;
    line-height: 1.2;
}

#hw-home-relaunch .hero-audio,
#hw-home-relaunch .word-example-audio {
    position: relative;
    display: inline-flex;
    flex: none;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--deep);
}

#hw-home-relaunch .hero-audio::before,
#hw-home-relaunch .word-example-audio::before {
    position: absolute;
    inset: 9px;
    border-radius: 50%;
    background: var(--sky);
    content: "";
}

#hw-home-relaunch .hero-audio:hover::before,
#hw-home-relaunch .word-example-audio:hover::before {
    background: var(--hd-accent-soft, #fff3c4);
}

#hw-home-relaunch .hero-audio i,
#hw-home-relaunch .word-example-audio i {
    position: relative;
    font-size: 14px;
}

#hw-home-relaunch .hero-audio.is-playing::before,
#hw-home-relaunch .word-example-audio.is-playing::before {
    animation: hw-home-audio-pulse .7s ease-in-out infinite alternate;
}

@keyframes hw-home-audio-pulse {
    from { box-shadow: 0 0 0 0 rgba(46, 74, 67, .2); }
    to { box-shadow: 0 0 0 5px rgba(46, 74, 67, .2); }
}

#hw-home-relaunch .word-pills {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
    margin-top: 25px;
}

#hw-home-relaunch .word-pills span {
    padding: 8px 11px;
    border: 1px solid var(--hd-border, #d7ddda);
    border-radius: 8px;
    background: var(--hd-surface-muted, #eff2ef);
    font-size: 22px;
    line-height: 1.2;
}

#hw-home-relaunch .flow-modes {
    margin-top: 14px;
    color: var(--deep);
    font-size: 13px;
    line-height: 1.8;
    font-weight: 700;
    text-align: center;
}

#hw-home-relaunch .flow-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

#hw-home-relaunch .flow-status .status-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 31px;
    padding: 5px 9px;
    border-radius: 8px;
    color: var(--ink);
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
}

#hw-home-relaunch .flow-status .status-chip::before {
    display: block;
    flex: none;
    width: 8px;
    height: 8px;
    border-radius: 3px;
    background: currentColor;
    content: "";
}

#hw-home-relaunch .flow-status .status-learning { background: var(--hd-info-surface, #eaf2fc); color: var(--hd-info, #275ea8); }
#hw-home-relaunch .flow-status .status-review { background: var(--hd-warning-surface, #fff0df); color: var(--hd-warning, #94521d); }
#hw-home-relaunch .flow-status .status-known { background: var(--hd-success-surface, #eaf5ed); color: var(--hd-success, #286747); }
#hw-home-relaunch .flow-cell--progress .muted { margin-top: 13px; }

#hw-home-relaunch .flow-foot {
    padding: 13px 22px;
    border-top: 1px solid var(--hd-border, #d7ddda);
    color: var(--sub);
    font-size: 12px;
    text-align: center;
}

#hw-home-relaunch .hero-actions {
    justify-content: center;
    margin-top: 25px;
}

/* The word page scene. */
#hw-home-relaunch .dict {
    padding-block: 88px 96px;
    background: var(--deep);
    color: #fff;
}

#hw-home-relaunch .word-story {
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr);
    align-items: end;
    gap: 52px;
    margin-bottom: 35px;
}

#hw-home-relaunch .word-story h2 {
    max-width: 680px;
    font-size: clamp(38px, 3.9vw, 53px);
    line-height: 1.12;
}

#hw-home-relaunch .word-story h2 span { color: var(--hd-accent, #f3ce55); }

#hw-home-relaunch .word-story p {
    max-width: 570px;
    color: rgba(255, 255, 255, .82);
    font-size: 18px;
    line-height: 1.66;
}

#hw-home-relaunch .word-page {
    display: grid;
    grid-template-columns: 330px minmax(0, 1fr);
    overflow: hidden;
    border-radius: 18px;
    background: #fff;
    color: var(--ink);
}

#hw-home-relaunch .word-page-lead {
    padding: 27px;
    border-right: 1px solid var(--hd-border, #d7ddda);
    background: var(--hd-primary-soft, #e7eeea);
}

#hw-home-relaunch .word-page-lead > img {
    width: 100%;
    height: 238px;
    border-radius: 12px;
    object-fit: cover;
}

#hw-home-relaunch .word-page-mainline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 22px;
}

#hw-home-relaunch .word-page-mainline .hanzi {
    color: var(--ink);
    font-size: 77px;
    line-height: 1;
}

#hw-home-relaunch .word-page-sound {
    display: flex;
    align-items: center;
    gap: 9px;
    color: var(--deep);
    font-size: 20px;
    font-weight: 700;
}

#hw-home-relaunch .word-page-sound button {
    display: grid;
    place-items: center;
    flex: none;
    width: 39px;
    height: 39px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hd-primary-soft, #e7eeea);
    color: var(--deep);
}

#hw-home-relaunch .word-page-sound button:hover { background: var(--hd-accent-soft, #fff3c4); }
#hw-home-relaunch .word-page-sound button i { font-size: 15px; }

#hw-home-relaunch .word-page-translation {
    margin-top: 5px;
    color: var(--ink);
    font-size: 20px;
    font-weight: 700;
}

#hw-home-relaunch .word-page-badges {
    display: flex;
    gap: 7px;
    margin-top: 16px;
}

#hw-home-relaunch .word-page-badges span {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--hd-primary-soft, #e7eeea);
    color: var(--deep);
    font-size: 12px;
    font-weight: 700;
}

#hw-home-relaunch .word-page-radical {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    margin-top: 25px;
    padding-top: 16px;
    border-top: 1px solid var(--hd-border, #d7ddda);
    color: var(--sub);
    font-size: 13px;
}

#hw-home-relaunch .word-page-radical strong {
    color: var(--ink);
    font-size: 27px;
    line-height: 1;
}

#hw-home-relaunch .word-page-depth { min-width: 0; }

#hw-home-relaunch .word-depth-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(175px, .6fr);
    align-items: center;
    gap: 23px;
    min-height: 183px;
    padding: 26px 31px;
    border-bottom: 1px solid var(--hd-border, #d7ddda);
}

#hw-home-relaunch .word-depth-row:last-child { border-bottom: 0; }
#hw-home-relaunch .word-depth-row--meaning,
#hw-home-relaunch .word-depth-row--practice { background: #fff; }
#hw-home-relaunch .word-depth-row--links { background: var(--hd-surface-muted, #eff2ef); }

#hw-home-relaunch .word-depth-row h3 {
    color: var(--ink);
    font-size: 22px;
    line-height: 1.3;
}

#hw-home-relaunch .word-depth-row p {
    max-width: 49ch;
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
}

#hw-home-relaunch .word-example { padding: 13px 16px; }

#hw-home-relaunch .word-example-sentence {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 0 5px;
    max-width: 100%;
    color: var(--ink);
    font-family: "simkai", "Noto Sans", sans-serif;
    font-size: 23px;
    line-height: 1.15;
}

#hw-home-relaunch .word-example-sentence ruby { ruby-align: center; }

#hw-home-relaunch .word-example-sentence rt {
    padding-bottom: 5px;
    color: var(--deep);
    font-family: "Noto Sans", sans-serif;
    font-size: 12px;
    font-weight: 600;
}

#hw-home-relaunch .word-example-translation {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 7px;
    color: var(--sub);
    font-size: 13px;
    line-height: 1.4;
}

#hw-home-relaunch .word-example-audio { margin: -10px; }
#hw-home-relaunch .word-example-audio::before { inset: 12px; }
#hw-home-relaunch .word-example-audio i { font-size: 11px; }

#hw-home-relaunch .word-relations--capabilities {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 7px;
}

#hw-home-relaunch .word-relations--capabilities span {
    display: flex;
    align-items: center;
    min-height: 42px;
    padding: 7px 9px;
    border: 1px solid var(--hd-border, #d7ddda);
    border-radius: 8px;
    background: #fff;
    color: var(--deep);
    font-size: 12px;
    line-height: 1.25;
    font-weight: 700;
    overflow-wrap: anywhere;
}

#hw-home-relaunch .word-personal {
    display: grid;
    gap: 10px;
    min-width: 0;
}

#hw-home-relaunch .word-personal-statuses {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
}

#hw-home-relaunch .word-personal-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    min-height: 36px;
    padding: 6px 4px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    white-space: nowrap;
}

#hw-home-relaunch .word-personal-status::before {
    display: block;
    flex: none;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

#hw-home-relaunch .word-personal-status--learning { background: var(--hd-info-surface, #eaf2fc); color: var(--hd-info, #275ea8); }
#hw-home-relaunch .word-personal-status--review { background: var(--hd-warning-surface, #fff0df); color: var(--hd-warning, #94521d); }
#hw-home-relaunch .word-personal-status--known { background: var(--hd-success-surface, #eaf5ed); color: var(--hd-success, #286747); }
#hw-home-relaunch .word-personal-status--selected { border-color: currentColor; }

#hw-home-relaunch .word-personal-note {
    min-height: 73px;
    padding: 11px 13px;
    border: 1px solid var(--hd-border, #d7ddda);
    border-radius: 9px;
    background: var(--hd-surface-muted, #eff2ef);
}

#hw-home-relaunch .word-personal-note strong {
    display: block;
    color: var(--deep);
    font-size: 11px;
    line-height: 1.3;
}

#hw-home-relaunch .word-personal-note p {
    max-width: none;
    margin-top: 5px;
    color: var(--sub);
    font-size: 12px;
    line-height: 1.45;
}

#hw-home-relaunch .word-story-action {
    grid-column: 1 / -1;
    display: flex;
    justify-content: flex-end;
    padding: 20px 28px;
    border-top: 1px solid var(--hd-border, #d7ddda);
    background: #fff;
}

/* Trainer: the board is an illustration, the four branches show the actual directions. */
#hw-home-relaunch .core { background: var(--pale); }
#hw-home-relaunch .core .wrap { width: min(100% - 48px, 1312px); }

#hw-home-relaunch .trainer-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    min-height: 168px;
    margin-bottom: 24px;
}

#hw-home-relaunch .trainer-heading .section-title {
    max-width: 970px;
    margin: 0;
}

#hw-home-relaunch .trainer-heading h2 span { color: var(--deep); }

#hw-home-relaunch .trainer-heading p {
    max-width: 890px;
    margin-top: 16px;
    font-size: 17px;
    line-height: 1.58;
}

#hw-home-relaunch .trainer-heading .btn {
    flex: none;
    margin-bottom: 8px;
}

#hw-home-relaunch #trainer-lattice {
    position: relative;
    height: 688px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--hd-canvas, #f6f7f3);
    box-shadow: var(--shadow);
}

#hw-home-relaunch #trainer-lattice .board-bar {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 22px;
    height: 65px;
    padding: 0 27px;
    border-bottom: 1px solid var(--hd-border, #d7ddda);
    background: var(--hd-surface, #fff);
}

#hw-home-relaunch #trainer-lattice .board-title {
    color: var(--hd-text, #222a2d);
    font-size: 17px;
    font-weight: 700;
    white-space: nowrap;
}

#hw-home-relaunch #trainer-lattice .board-tabs {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 4px;
    border: 1px solid var(--hd-border, #d7ddda);
    border-radius: 11px;
    background: var(--hd-surface-muted, #eff2ef);
}

#hw-home-relaunch #trainer-lattice .board-tabs span {
    padding: 6px 11px;
    border-radius: 7px;
    color: var(--hd-muted, #5d686c);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

#hw-home-relaunch #trainer-lattice .board-tabs .active {
    background: var(--hd-surface, #fff);
    color: var(--deep);
    box-shadow: 0 1px 4px rgba(31, 52, 47, .10);
}

#hw-home-relaunch #trainer-lattice .status-legend {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-left: auto;
    color: var(--hd-muted, #5d686c);
    font-size: 11px;
    white-space: nowrap;
}

#hw-home-relaunch #trainer-lattice .status-legend span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

#hw-home-relaunch #trainer-lattice .status-legend i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}

#hw-home-relaunch #trainer-lattice .status-legend .learning { background: var(--hd-info, #275ea8); }
#hw-home-relaunch #trainer-lattice .status-legend .review { background: #94521d; }
#hw-home-relaunch #trainer-lattice .status-legend .known { background: #286747; }

#hw-home-relaunch #trainer-lattice .board {
    position: absolute;
    inset: 65px 0 0;
    background: var(--hd-canvas, #f6f7f3) radial-gradient(rgba(93, 104, 108, .22) .85px, transparent .85px) 0 0 / 24px 24px;
}

#hw-home-relaunch #trainer-lattice .level {
    position: absolute;
    inset: 17px 23px 18px;
    border-radius: 16px;
    background: linear-gradient(135deg, var(--hd-canvas, #f6f7f3), var(--hd-surface-muted, #eff2ef));
    box-shadow: inset 0 1px 0 #fff;
}

#hw-home-relaunch #trainer-lattice .level-label,
#hw-home-relaunch #trainer-lattice .level-detail {
    position: absolute;
    top: 22px;
    color: var(--hd-muted, #5d686c);
    font-size: 12px;
}

#hw-home-relaunch #trainer-lattice .level-label { left: 29px; font-weight: 700; }
#hw-home-relaunch #trainer-lattice .level-detail { right: 30px; font-size: 11px; }

#hw-home-relaunch #trainer-lattice .word-grid {
    position: absolute;
    inset: 62px 27px 26px;
    display: grid;
    grid-template-columns: repeat(15, minmax(0, 1fr));
    grid-template-rows: repeat(7, minmax(0, 1fr));
    gap: 10px;
    opacity: .65;
}

#hw-home-relaunch #trainer-lattice .grid-word {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--hd-border, #d7ddda);
    border-radius: 9px;
    background: var(--hd-surface, #fff);
    color: var(--hd-text, #222a2d);
    font: 25px/1 "simkai", KaiTi, serif;
    white-space: nowrap;
    box-shadow: inset 0 1px 3px rgba(31, 52, 47, .07);
}

#hw-home-relaunch #trainer-lattice .grid-word.long { font-size: 18px; }
#hw-home-relaunch #trainer-lattice .grid-word.longer { font-size: 14px; }
#hw-home-relaunch #trainer-lattice .grid-word.learning { border-color: var(--hd-info, #275ea8); background: var(--hd-info-surface, #eaf2fc); color: var(--hd-info, #275ea8); }
#hw-home-relaunch #trainer-lattice .grid-word.review { border-color: var(--hd-warning, #94521d); background: var(--hd-warning-surface, #fff0df); color: var(--hd-warning, #94521d); }
#hw-home-relaunch #trainer-lattice .grid-word.known { border-color: var(--hd-success, #286747); background: var(--hd-success-surface, #eaf5ed); color: var(--hd-success, #286747); }

#hw-home-relaunch #trainer-lattice .focus-wash {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 260px 300px at 50% 50%, rgba(246, 247, 243, .94), rgba(246, 247, 243, .30) 68%, transparent 100%);
}

#hw-home-relaunch #trainer-lattice .lattice {
    position: absolute;
    inset: 65px 0 0;
    z-index: 2;
    width: 100%;
    height: calc(100% - 65px);
    pointer-events: none;
}

#hw-home-relaunch #trainer-lattice .lattice path {
    fill: none;
    stroke: var(--hd-primary, #2e4a43);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

#hw-home-relaunch #trainer-lattice .lattice circle {
    fill: var(--hd-surface, #fff);
    stroke: var(--hd-primary, #2e4a43);
    stroke-width: 2.5;
}

#hw-home-relaunch #trainer-lattice .branch {
    position: absolute;
    z-index: 3;
    width: 400px;
    height: 200px;
    padding: 16px 18px 17px;
    border: 1px solid var(--hd-border, #d7ddda);
    border-radius: 14px;
    background: var(--hd-surface, #fff);
    box-shadow: 0 12px 28px rgba(31, 52, 47, .11);
}

#hw-home-relaunch #trainer-lattice .branch.reading { top: 141px; left: 43px; }
#hw-home-relaunch #trainer-lattice .branch.meaning { top: 141px; right: 43px; }
#hw-home-relaunch #trainer-lattice .branch.writing { bottom: 40px; left: 43px; }
#hw-home-relaunch #trainer-lattice .branch.listening { bottom: 40px; right: 43px; }

#hw-home-relaunch #trainer-lattice .branch-title {
    color: var(--deep);
    font-size: 19px;
    line-height: 1.2;
    font-weight: 700;
}

#hw-home-relaunch #trainer-lattice .branch-question {
    margin: 4px 0 12px;
    color: var(--hd-muted, #5d686c);
    font-size: 12.5px;
    line-height: 1.35;
}

#hw-home-relaunch #trainer-lattice .branch-content {
    display: grid;
    grid-template-columns: 150px minmax(0, 1fr);
    align-items: stretch;
    gap: 14px;
    height: 112px;
}

#hw-home-relaunch #trainer-lattice .cue {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--hd-border, #d7ddda);
    border-radius: 10px;
    background: var(--hd-primary-soft, #e7eeea);
}

#hw-home-relaunch #trainer-lattice .cue.hanzi-cue {
    color: var(--hd-text, #222a2d);
    font: 81px/1 "simkai", KaiTi, serif;
}

#hw-home-relaunch #trainer-lattice .cue.illustration-cue { background: var(--hd-surface-muted, #eff2ef); }
#hw-home-relaunch #trainer-lattice .cue.illustration-cue img { width: 100%; height: 100%; object-fit: cover; }

#hw-home-relaunch #trainer-lattice .branch.writing .writing-layout {
    display: grid;
    grid-template-columns: 180px 166px;
    gap: 14px;
    height: 100%;
}

#hw-home-relaunch #trainer-lattice .branch.writing .writing-left { min-width: 0; }
#hw-home-relaunch #trainer-lattice .branch.writing .branch-question { margin: 4px 0 8px; white-space: nowrap; }

#hw-home-relaunch #trainer-lattice .branch.writing .cue.stroke-cue {
    width: 150px;
    height: 112px;
    margin: 0;
    border-color: var(--hd-border, #d7ddda);
    background: var(--hd-surface, #fff);
}

#hw-home-relaunch #trainer-lattice .writing-animation {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 110px;
    height: 110px;
    color: var(--hd-text, #222a2d);
    font-size: 82px;
    text-align: center;
}

#hw-home-relaunch #trainer-lattice .writing-animation svg { display: block; width: 110px; height: 110px; }

#hw-home-relaunch #trainer-lattice .stroke-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-template-rows: repeat(3, minmax(0, 1fr));
    gap: 4px;
    width: 166px;
    height: 100%;
}

#hw-home-relaunch #trainer-lattice .stroke-step {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 0;
    min-height: 0;
    overflow: hidden;
    border: 1px solid var(--hd-border, #d7ddda);
    border-radius: 5px;
    background: var(--hd-surface, #fff);
}

#hw-home-relaunch #trainer-lattice .stroke-step svg { display: block; flex: none; width: 44px; height: 44px; }

#hw-home-relaunch #trainer-lattice .stroke-step b {
    position: absolute;
    top: 1px;
    left: 3px;
    color: var(--hd-muted, #5d686c);
    font-size: 10px;
    line-height: 1;
}

#hw-home-relaunch #trainer-lattice .cue.audio-cue { gap: 5px; background: #e7f3fc; }

#hw-home-relaunch #trainer-lattice .audio-control {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 58px;
    height: 58px;
    border: 0;
    border-radius: 50%;
    background: #fff;
    color: var(--deep);
    box-shadow: 0 3px 10px rgba(10, 75, 132, .12);
}

#hw-home-relaunch #trainer-lattice .audio-control i { font-size: 22px; }

#hw-home-relaunch #trainer-lattice .audio-bars {
    display: flex;
    align-items: center;
    gap: 3px;
    height: 30px;
    margin-left: 3px;
}

#hw-home-relaunch #trainer-lattice .audio-bars i {
    width: 3px;
    height: 11px;
    border-radius: 3px;
    background: #74afd7;
}

#hw-home-relaunch #trainer-lattice .audio-bars i:nth-child(2),
#hw-home-relaunch #trainer-lattice .audio-bars i:nth-child(5) { height: 19px; }
#hw-home-relaunch #trainer-lattice .audio-bars i:nth-child(3) { height: 29px; }
#hw-home-relaunch #trainer-lattice .audio-bars i:nth-child(4) { height: 24px; }

#hw-home-relaunch #trainer-lattice .answer-parts {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
    color: var(--hd-text, #222a2d);
}

#hw-home-relaunch #trainer-lattice .answer-top {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 46px;
    font-size: 23px;
    line-height: 1.1;
    font-weight: 700;
}

#hw-home-relaunch #trainer-lattice .answer-top .hanzi {
    color: var(--hd-text, #222a2d);
    font-size: 42px;
    line-height: 1;
}

#hw-home-relaunch #trainer-lattice .answer-top .pinyin { color: var(--deep); }

#hw-home-relaunch #trainer-lattice .answer-audio {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: var(--hd-primary-soft, #e7eeea);
    color: var(--deep);
}

#hw-home-relaunch #trainer-lattice .answer-audio i { font-size: 13px; }
#hw-home-relaunch #trainer-lattice .answer-audio:hover,
#hw-home-relaunch #trainer-lattice .audio-control:hover { background: var(--hd-accent-soft, #fff3c4); }

#hw-home-relaunch #trainer-lattice .answer-bottom {
    display: flex;
    align-items: center;
    min-height: 42px;
    margin-top: 7px;
    border-top: 1px solid var(--hd-border, #d7ddda);
    color: var(--hd-muted, #5d686c);
    font-size: 16px;
}

#hw-home-relaunch #trainer-lattice .branch.reading .answer-parts,
#hw-home-relaunch #trainer-lattice .branch.listening .answer-parts { align-items: center; text-align: center; }

#hw-home-relaunch #trainer-lattice .branch.reading .answer-top,
#hw-home-relaunch #trainer-lattice .branch.listening .answer-top { justify-content: center; width: 100%; min-height: 112px; }

#hw-home-relaunch #trainer-lattice .hero-word {
    position: absolute;
    top: 260px;
    left: 50%;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 238px;
    height: 268px;
    border: 2px solid var(--deep);
    border-radius: 18px;
    background: var(--hd-surface, #fff);
    box-shadow: 0 27px 55px rgba(31, 52, 47, .23), 0 6px 15px rgba(31, 52, 47, .09);
    transform: translateX(-50%);
}

#hw-home-relaunch #trainer-lattice .hero-pinyin { color: var(--deep); font-size: 29px; font-weight: 700; }
#hw-home-relaunch #trainer-lattice .hero-hanzi { margin: 5px 0 12px; color: var(--hd-text, #222a2d); font-size: 137px; line-height: 1; }

#hw-home-relaunch #trainer-lattice .hero-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 6px 12px;
    border-radius: 999px;
    background: var(--hd-info-surface, #eaf2fc);
    color: var(--hd-info, #275ea8);
    font-size: 12px;
    font-weight: 700;
}

#hw-home-relaunch #trainer-lattice .hero-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--hd-info, #275ea8); }

#hw-home-relaunch #trainer-lattice .hero-evaluation {
    position: absolute;
    top: 543px;
    left: 50%;
    z-index: 4;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 7px;
    width: 238px;
    transform: translateX(-50%);
}

#hw-home-relaunch #trainer-lattice .hero-evaluation span {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 37px;
    border: 1px solid var(--hd-control-border, #7d8983);
    border-radius: 8px;
    background: var(--hd-surface, #fff);
    color: var(--deep);
    font-size: 12px;
    font-weight: 700;
    box-shadow: 0 5px 15px rgba(31, 52, 47, .09);
}

#hw-home-relaunch #trainer-lattice .hero-evaluation .know { border-color: var(--hover); background: var(--hover); color: #fff; }

/* Practice and ready-made materials. */
#hw-home-relaunch .paths { background: #fff; }
#hw-home-relaunch .paths-head .section-title { margin-bottom: 29px; }
#hw-home-relaunch .paths-head .section-title p { max-width: 760px; }

#hw-home-relaunch .practice-lanes {
    display: grid;
    grid-template-columns: .9fr 1.1fr;
    gap: 22px;
}

#hw-home-relaunch .make-lane,
#hw-home-relaunch .buy-lane {
    min-width: 0;
    padding: 29px;
    border-radius: 19px;
}

#hw-home-relaunch .make-lane { background: var(--pale); }
#hw-home-relaunch .buy-lane { background: var(--warm); }

#hw-home-relaunch .lane-head { margin-bottom: 19px; }
#hw-home-relaunch .lane-head h3 { font-size: 24px; }
#hw-home-relaunch .lane-head p { max-width: 44ch; margin-top: 7px; font-size: 14px; }

#hw-home-relaunch .make-list { border-top: 1px solid var(--hd-border, #d7ddda); }

#hw-home-relaunch .make-list a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 66px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hd-border, #d7ddda);
}

#hw-home-relaunch .make-list strong { display: block; color: var(--deep); font-size: 15px; }
#hw-home-relaunch .make-list small { display: block; margin-top: 3px; color: var(--sub); font-size: 12px; }
#hw-home-relaunch .make-list a > span:last-child { color: var(--deep); font-size: 21px; }
#hw-home-relaunch .make-list a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
#hw-home-relaunch .make-lane .actions { margin-top: 21px; }

#hw-home-relaunch .goods {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 11px;
}

#hw-home-relaunch .good {
    min-width: 0;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
}

#hw-home-relaunch .good figure {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 175px;
    padding: 12px;
    background: var(--hd-surface-muted, #eff2ef);
}

#hw-home-relaunch .good img { max-width: 100%; width: auto; height: 100%; object-fit: contain; }
#hw-home-relaunch .good-copy { padding: 12px; }
#hw-home-relaunch .good h4 { min-height: 36px; font-size: 12px; line-height: 1.45; }
#hw-home-relaunch .good a { display: inline-block; margin-top: 7px; color: var(--deep); font-size: 12px; font-weight: 700; }
#hw-home-relaunch .good a:hover { text-decoration: underline; text-underline-offset: 4px; }
#hw-home-relaunch .buy-lane .actions { justify-content: space-between; margin-top: 19px; }
#hw-home-relaunch .buy-lane .muted { margin-top: 10px; }

/* The final action stays part of the page, never the theme footer. */
#hw-home-relaunch .end { padding: 67px 0; background: var(--hd-primary-soft, #e7eeea); }
#hw-home-relaunch .end-inner { display: flex; align-items: center; justify-content: space-between; gap: 35px; }
#hw-home-relaunch .end h2 { max-width: 650px; }
#hw-home-relaunch .end p { max-width: 580px; margin-top: 11px; font-size: 16px; }
#hw-home-relaunch .end .actions { flex: none; }

@media (max-width: 1200px) {
    #hw-home-relaunch #trainer-lattice {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
        height: auto;
        padding: 0 24px 24px;
    }

    #hw-home-relaunch #trainer-lattice .board-bar { grid-column: 1 / -1; height: 65px; margin: 0 -24px; }
    #hw-home-relaunch #trainer-lattice .board { inset: 0; pointer-events: none; }

    #hw-home-relaunch #trainer-lattice .word-grid {
        inset: 70px 27px auto;
        grid-template-columns: repeat(10, minmax(0, 1fr));
        grid-template-rows: repeat(11, minmax(0, 1fr));
        gap: 8px;
        height: 500px;
    }

    #hw-home-relaunch #trainer-lattice .grid-word.long { font-size: 16px; }
    #hw-home-relaunch #trainer-lattice .grid-word.longer { font-size: 12px; }
    #hw-home-relaunch #trainer-lattice .lattice { display: none; }

    #hw-home-relaunch #trainer-lattice .hero-word {
        position: relative;
        top: auto;
        left: auto;
        grid-column: 1 / -1;
        grid-row: 2;
        justify-self: center;
        width: 220px;
        height: 230px;
        margin-top: 20px;
        transform: none;
    }

    #hw-home-relaunch #trainer-lattice .hero-hanzi { font-size: 116px; }

    #hw-home-relaunch #trainer-lattice .hero-evaluation {
        position: relative;
        top: auto;
        left: auto;
        grid-column: 1 / -1;
        grid-row: 3;
        justify-self: center;
        width: 220px;
        margin-top: -12px;
        transform: none;
    }

    #hw-home-relaunch #trainer-lattice .branch { position: static; width: 100%; height: 200px; }
    #hw-home-relaunch #trainer-lattice .branch.reading { grid-column: 1; grid-row: 4; }
    #hw-home-relaunch #trainer-lattice .branch.meaning { grid-column: 2; grid-row: 4; }
    #hw-home-relaunch #trainer-lattice .branch.writing { grid-column: 1; grid-row: 5; }
    #hw-home-relaunch #trainer-lattice .branch.listening { grid-column: 2; grid-row: 5; }
}

@media (max-width: 1060px) {
    #hw-home-relaunch .practice-lanes { grid-template-columns: 1fr; }
    #hw-home-relaunch .good figure { height: 190px; }
}

@media (max-width: 1000px) {
    #hw-home-relaunch .word-story { grid-template-columns: 1fr; gap: 13px; }
    #hw-home-relaunch .word-story p { max-width: 720px; }
    #hw-home-relaunch .word-page { grid-template-columns: 275px minmax(0, 1fr); }
    #hw-home-relaunch .word-page-lead { padding: 21px; }
    #hw-home-relaunch .word-page-lead > img { height: 210px; }
    #hw-home-relaunch .word-depth-row { grid-template-columns: 1fr; gap: 12px; min-height: 0; padding: 22px; }
}

@media (max-width: 900px) {
    #hw-home-relaunch .hero-flow { display: block; }
    #hw-home-relaunch .flow-cell { padding: 20px 22px; }
    #hw-home-relaunch .flow-cell + .flow-cell { border-top: 1px solid var(--hd-border, #d7ddda); border-left: 0; }
    #hw-home-relaunch .flow-cell:not(:last-child)::after { top: auto; right: calc(50% - 20px); bottom: -20px; transform: rotate(90deg); }
    #hw-home-relaunch .trainer-heading { display: block; min-height: 0; }
    #hw-home-relaunch .trainer-heading .btn { margin: 23px 0 0; }
    #hw-home-relaunch #trainer-lattice { grid-template-columns: minmax(0, 1fr); justify-items: center; }
    #hw-home-relaunch #trainer-lattice .board-bar { grid-column: 1; justify-self: stretch; }
    #hw-home-relaunch #trainer-lattice .branch { max-width: 520px; }
    #hw-home-relaunch #trainer-lattice .branch.reading { grid-column: 1; grid-row: 4; }
    #hw-home-relaunch #trainer-lattice .branch.meaning { grid-column: 1; grid-row: 5; }
    #hw-home-relaunch #trainer-lattice .branch.writing { grid-column: 1; grid-row: 6; }
    #hw-home-relaunch #trainer-lattice .branch.listening { grid-column: 1; grid-row: 7; }
}

@media (min-width: 761px) and (max-width: 900px) {
    #hw-home-relaunch #trainer-lattice .board-bar { gap: 10px; padding-inline: 18px; }
    #hw-home-relaunch #trainer-lattice .status-legend { gap: 10px; }
}

@media (max-width: 760px) {
    #hw-home-relaunch .wrap { width: min(100% - 32px, 580px); }
    #hw-home-relaunch :is(.dict, .core, .paths).section { padding-block: 66px; }
    #hw-home-relaunch .section-title { margin-bottom: 26px; }
    #hw-home-relaunch .section-title p { font-size: 16px; }
    #hw-home-relaunch .hero { padding: 51px 0 42px; }
    #hw-home-relaunch .hero-intro > p:not(.hero-free) { margin-top: 16px; font-size: 16px; }
    #hw-home-relaunch .search-form { margin-top: 24px; }
    #hw-home-relaunch .search-form__field { padding-left: 13px; }
    #hw-home-relaunch .search-form input { font-size: 14px; }
    #hw-home-relaunch .search-form .btn { padding: 8px 12px; font-size: 13px; }
    #hw-home-relaunch .hero-demo { margin-top: 35px; }
    #hw-home-relaunch .hero-demo-head { padding: 11px 14px; }
    #hw-home-relaunch .flow-cell { padding: 19px 20px; }
    #hw-home-relaunch .flow-label { margin-bottom: 7px; }
    #hw-home-relaunch .flow-word { grid-template-columns: 66px 59px minmax(0, 1fr); gap: 12px; margin-top: 15px; }
    #hw-home-relaunch .flow-illustration { width: 66px; height: 66px; }
    #hw-home-relaunch .flow-word .hanzi { font-size: 61px; }
    #hw-home-relaunch .flow-word-details { min-height: 66px; }
    #hw-home-relaunch .word-pills { margin-top: 18px; }
    #hw-home-relaunch .flow-modes { font-size: 13px; }
    #hw-home-relaunch .flow-status { margin-top: 18px; }
    #hw-home-relaunch .hero-actions .btn { width: 100%; }

    #hw-home-relaunch .dict { padding-block: 67px 72px; }
    #hw-home-relaunch .word-story { margin-bottom: 25px; }
    #hw-home-relaunch .word-story h2 { font-size: clamp(34px, 8.5vw, 42px); }
    #hw-home-relaunch .word-story p { font-size: 16px; }
    #hw-home-relaunch .word-page { display: block; }

    #hw-home-relaunch .word-page-lead {
        display: grid;
        grid-template-columns: 105px minmax(0, 1fr);
        align-items: start;
        column-gap: 15px;
        padding: 15px;
        border-right: 0;
        border-bottom: 1px solid var(--hd-border, #d7ddda);
    }

    #hw-home-relaunch .word-page-lead > img { grid-row: 1 / 4; width: 105px; height: 105px; }
    #hw-home-relaunch .word-page-mainline { margin: 0; }
    #hw-home-relaunch .word-page-mainline .hanzi { font-size: 50px; }
    #hw-home-relaunch .word-page-sound { gap: 3px; font-size: 16px; }
    #hw-home-relaunch .word-page-sound button { width: 34px; height: 34px; }
    #hw-home-relaunch .word-page-translation { margin: 0; font-size: 16px; }
    #hw-home-relaunch .word-page-badges { grid-column: 2; margin-top: 7px; }
    #hw-home-relaunch .word-page-radical { grid-column: 1 / -1; margin-top: 12px; padding-top: 9px; }
    #hw-home-relaunch .word-depth-row { padding: 20px 17px; }
    #hw-home-relaunch .word-depth-row h3 { font-size: 20px; }
    #hw-home-relaunch .word-depth-row p { font-size: 14px; }
    #hw-home-relaunch .word-story-action { justify-content: stretch; padding: 16px; }
    #hw-home-relaunch .word-story-action .btn { width: 100%; }

    #hw-home-relaunch .core .wrap { width: min(100% - 32px, 580px); }
    #hw-home-relaunch .trainer-heading h2 { font-size: clamp(29px, 7.3vw, 42px); }
    #hw-home-relaunch .trainer-heading p { font-size: 16px; }
    #hw-home-relaunch .trainer-heading .btn { width: 100%; margin-top: 20px; }
    #hw-home-relaunch #trainer-lattice { gap: 12px; padding: 0 14px 18px; }

    #hw-home-relaunch #trainer-lattice .board-bar {
        justify-content: center;
        flex-wrap: wrap;
        gap: 8px 10px;
        height: auto;
        min-height: 65px;
        margin: 0 -14px;
        padding: 12px 10px;
    }

    #hw-home-relaunch #trainer-lattice .board-title { width: 100%; text-align: center; }
    #hw-home-relaunch #trainer-lattice .board-tabs { max-width: 100%; }
    #hw-home-relaunch #trainer-lattice .board-tabs span { padding: 5px 6px; font-size: 11px; }
    #hw-home-relaunch #trainer-lattice .status-legend { justify-content: center; flex-wrap: wrap; width: 100%; gap: 5px 11px; margin: 0; }
    #hw-home-relaunch #trainer-lattice .level { inset: 14px 9px auto; height: 565px; }
    #hw-home-relaunch #trainer-lattice .level-label { top: 18px; left: 16px; }
    #hw-home-relaunch #trainer-lattice .level-detail { top: 18px; right: 16px; }

    #hw-home-relaunch #trainer-lattice .word-grid {
        inset: 55px 10px auto;
        grid-template-columns: repeat(10, minmax(0, 1fr));
        grid-template-rows: repeat(11, minmax(0, 1fr));
        gap: 4px;
        height: 485px;
    }

    #hw-home-relaunch #trainer-lattice .grid-word { border-radius: 5px; font-size: 16px; }
    #hw-home-relaunch #trainer-lattice .grid-word.double { font-size: 12px; }
    #hw-home-relaunch #trainer-lattice .grid-word.long { font-size: 12px; }
    #hw-home-relaunch #trainer-lattice .grid-word.longer { font-size: 10px; }
    #hw-home-relaunch #trainer-lattice .hero-word { width: 190px; height: 202px; margin-top: 14px; }
    #hw-home-relaunch #trainer-lattice .hero-pinyin { font-size: 24px; }
    #hw-home-relaunch #trainer-lattice .hero-hanzi { margin: 3px 0 9px; font-size: 98px; }
    #hw-home-relaunch #trainer-lattice .hero-evaluation { width: 190px; }
    #hw-home-relaunch #trainer-lattice .branch { height: 194px; padding: 14px; }
    #hw-home-relaunch #trainer-lattice .branch-content { grid-template-columns: minmax(0, 44%) minmax(0, 1fr); gap: 10px; }
    #hw-home-relaunch #trainer-lattice .cue.hanzi-cue { font-size: 68px; }
    #hw-home-relaunch #trainer-lattice .answer-top { gap: 6px; font-size: 20px; }
    #hw-home-relaunch #trainer-lattice .answer-top .hanzi { font-size: 35px; }
    #hw-home-relaunch #trainer-lattice .branch.writing .writing-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
    #hw-home-relaunch #trainer-lattice .branch.writing .cue.stroke-cue { width: 100%; max-width: 150px; }
    #hw-home-relaunch #trainer-lattice .branch.writing .stroke-steps { width: 100%; }
    #hw-home-relaunch #trainer-lattice .stroke-step svg { width: min(100%, 44px); height: auto; }

    #hw-home-relaunch .make-lane,
    #hw-home-relaunch .buy-lane { padding: 20px; }
    #hw-home-relaunch .practice-lanes { gap: 15px; }
    #hw-home-relaunch .goods { grid-template-columns: 1fr; gap: 10px; }
    #hw-home-relaunch .good { display: grid; grid-template-columns: 108px minmax(0, 1fr); }
    #hw-home-relaunch .good figure { height: 124px; padding: 9px; }
    #hw-home-relaunch .good-copy { padding: 13px 15px; }
    #hw-home-relaunch .good h4 { font-size: 15px; }
    #hw-home-relaunch .good a { font-size: 13px; }
    #hw-home-relaunch .buy-lane .actions { gap: 4px; }
    #hw-home-relaunch .buy-lane .btn { width: 100%; }

    #hw-home-relaunch .end-inner { display: block; }
    #hw-home-relaunch .end .actions { margin-top: 20px; }
    #hw-home-relaunch .end .btn { width: 100%; }
}

@media (max-width: 560px) {
    #hw-home-relaunch #trainer-lattice .grid-word.long,
    #hw-home-relaunch #trainer-lattice .grid-word.longer { font-size: 0; }

    #hw-home-relaunch #trainer-lattice .grid-word.long::after,
    #hw-home-relaunch #trainer-lattice .grid-word.longer::after { content: attr(data-short); font-size: 12px; }
}

@media (max-width: 390px) {
    #hw-home-relaunch .wrap { width: min(100% - 24px, 360px); }
    #hw-home-relaunch .search-form__field { padding-left: 10px; }
    #hw-home-relaunch .search-form .btn { padding-inline: 9px; font-size: 12px; }
    #hw-home-relaunch .word-page-lead { grid-template-columns: 84px minmax(0, 1fr); column-gap: 12px; }
    #hw-home-relaunch .word-page-lead > img { width: 84px; height: 84px; }
    #hw-home-relaunch .word-page-mainline .hanzi { font-size: 44px; }
    #hw-home-relaunch .word-page-sound { font-size: 15px; }
    #hw-home-relaunch .word-page-sound button { width: 30px; height: 30px; }
    #hw-home-relaunch .word-page-badges { margin-top: 4px; }
    #hw-home-relaunch .word-personal-status { font-size: 10px; }
    #hw-home-relaunch #trainer-lattice .word-grid { grid-template-columns: repeat(8, minmax(0, 1fr)); grid-template-rows: repeat(14, minmax(0, 1fr)); }
    #hw-home-relaunch .good { grid-template-columns: 82px minmax(0, 1fr); }
    #hw-home-relaunch .good figure { height: 102px; }
    #hw-home-relaunch .good-copy { padding: 10px 12px; }
    #hw-home-relaunch .good h4 { font-size: 13px; }
}

@media (max-width: 360px) {
    #hw-home-relaunch #trainer-lattice .branch.writing { height: 218px; }
    #hw-home-relaunch #trainer-lattice .branch.writing .branch-question { white-space: normal; }
    #hw-home-relaunch #trainer-lattice .writing-animation,
    #hw-home-relaunch #trainer-lattice .writing-animation svg { width: 105px; height: 105px; }
}

@media (prefers-reduced-motion: reduce) {
    #hw-home-relaunch .btn { transition: none; }
    #hw-home-relaunch .hero-audio.is-playing::before,
    #hw-home-relaunch .word-example-audio.is-playing::before { animation: none; box-shadow: 0 0 0 3px rgba(46, 74, 67, .2); }
}
