:root {
    --duo-bg: #fff8e9;
    --duo-card: rgba(255, 255, 255, 0.95);
    --duo-ink: #3b2b20;
    --duo-muted: #806b58;
    --duo-orange: #ff9f43;
    --duo-orange-dark: #f36c3d;
    --duo-green: #72c849;
    --duo-blue: #68b8f8;
    --duo-yellow: #ffd76b;
    --duo-red: #ff6f61;
    --duo-line: #f2dfbf;
    --duo-shadow: 0 18px 40px rgba(185, 132, 48, 0.16);
}

* {
    box-sizing: border-box;
}

.duo-idiom-page {
    margin: 0;
    padding-top: 0 !important;
    min-width: 320px;
    font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
    font-weight: 400;
    color: var(--duo-ink);
    background: linear-gradient(180deg, #fffaf0 0%, #fff4d7 100%);
    overflow-x: hidden;
}

.duo-idiom-page button {
    border: 0;
    cursor: pointer;
    font: inherit;
}

.duo-idiom-page img {
    display: block;
    max-width: 100%;
}

.duo-page-bg {
    position: fixed;
    inset: 0;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.duo-cloud {
    position: absolute;
    width: 130px;
    height: 44px;
    background: #fff;
    border-radius: 999px;
    opacity: 0.82;
}

.duo-cloud::before,
.duo-cloud::after {
    content: "";
    position: absolute;
    background: #fff;
    border-radius: 50%;
}

.duo-cloud::before {
    width: 54px;
    height: 54px;
    left: 22px;
    top: -24px;
}

.duo-cloud::after {
    width: 70px;
    height: 70px;
    right: 18px;
    top: -36px;
}

.duo-cloud-a {
    left: 3%;
    top: 17%;
}

.duo-cloud-b {
    right: 3%;
    top: 20%;
    transform: scale(0.8);
}

.duo-hill {
    position: absolute;
    bottom: -90px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #a9df6a, #71bd3c 68%, #5baa35);
    opacity: 0.8;
}

.duo-hill-left {
    left: -150px;
}

.duo-hill-right {
    right: -160px;
    background: radial-gradient(circle at 35% 35%, #ffd0da, #93d459 58%, #67b948);
}

.duo-header {
    min-height: 88px;
    padding: 0 clamp(18px, 5vw, 110px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(14px);
    border-bottom: 1px solid rgba(242, 223, 191, 0.8);
    position: sticky;
    top: 0;
    z-index: 10;
}

.duo-brand {
    min-width: max-content;
    display: flex;
    align-items: center;
    gap: 12px;
    color: inherit;
    text-decoration: none;
}

.duo-brand:hover,
.duo-brand:focus {
    color: inherit;
    text-decoration: none;
}

.duo-idiom-page a {
    text-decoration: none;
}

.duo-brand-logo {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    object-fit: cover;
    filter: drop-shadow(0 8px 16px rgba(185, 132, 48, 0.18));
}

.duo-brand-text {
    position: relative;
    display: inline-block;
    overflow: hidden;
    color: #f36c3d;
    font-size: clamp(25px, 3vw, 42px);
    font-weight: 900;
    letter-spacing: 0;
}

.duo-brand-text::after {
    content: "";
    position: absolute;
    top: -20%;
    bottom: -20%;
    left: -18%;
    width: 16%;
    background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, 0.18) 38%, rgba(255, 255, 255, 0.75) 50%, rgba(255, 226, 118, 0.34) 58%, transparent 100%);
    transform: translateX(-160%) skewX(-14deg);
    pointer-events: none;
    mix-blend-mode: screen;
}

.duo-brand:hover .duo-brand-text,
.duo-brand:focus .duo-brand-text {
    color: #f36c3d;
    text-decoration: none;
}

.duo-brand:hover .duo-brand-text::after,
.duo-brand:focus .duo-brand-text::after {
    animation: duoBrandShine 0.9s ease;
}

@keyframes duoBrandShine {
    from {
        transform: translateX(-160%) skewX(-14deg);
    }
    to {
        transform: translateX(760%) skewX(-14deg);
    }
}

.duo-nav,
.duo-header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
}

.duo-nav-link,
.duo-login-mini,
.duo-score-pill {
    min-height: 42px;
    padding: 0 16px;
    appearance: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    border: 1px solid #edcf9f;
    color: #8c5a1f;
    font-weight: 400;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(185, 132, 48, 0.1);
}

.duo-nav-link.is-active,
.duo-nav-link:hover,
.duo-login-mini:hover {
    background: #fff0c3;
    border-color: #edcf9f;
    color: #e36a28;
}

.duo-idiom-page .duo-nav-link {
    border: 1px solid #edcf9f;
}

.duo-avatar-link {
    width: 54px;
    height: 54px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--duo-line);
    border-radius: 50%;
    background: #fff;
    box-shadow: 0 4px 12px rgba(185, 132, 48, 0.1);
    overflow: hidden;
}

.duo-avatar-img {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    object-fit: cover;
}

.duo-shell {
    width: min(1280px, calc(100% - 32px));
    margin: 18px auto 38px;
}

.duo-screen {
    display: none;
}

.duo-screen.is-active {
    display: grid;
    animation: duoFadeUp 0.24s ease both;
}

@keyframes duoFadeUp {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.duo-start {
    gap: 18px;
}

.duo-hero,
.duo-flow,
.duo-quiz-card,
.duo-side > section,
.duo-answer-card,
.duo-story-card,
.duo-complete-card {
    background: var(--duo-card);
    border: 1px solid rgba(242, 223, 191, 0.95);
    box-shadow: var(--duo-shadow);
}

.duo-hero {
    border-radius: 28px;
    padding: clamp(22px, 4vw, 46px);
    display: grid;
    grid-template-columns: 1.05fr 0.95fr;
    gap: 28px;
    align-items: center;
    overflow: hidden;
}

.duo-eyebrow {
    display: inline-flex;
    padding: 8px 18px;
    border-radius: 999px;
    background: #fff0c2;
    color: #b46a12;
    font-weight: 900;
}

.duo-hero-copy h1 {
    margin: 18px 0 16px;
    color: #473121;
    font-size: clamp(34px, 5vw, 62px);
    line-height: 1.08;
    letter-spacing: 0;
}

.duo-hero-copy p {
    max-width: 630px;
    margin: 0;
    color: #765f4d;
    font-size: 19px;
    line-height: 1.8;
}

.duo-hero-actions {
    margin-top: 28px;
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.duo-hero-visual {
    position: relative;
    min-height: 360px;
}

.duo-main-image {
    overflow: hidden;
    border: 8px solid #fff7e7;
    border-radius: 28px;
    box-shadow: 0 24px 45px rgba(77, 54, 24, 0.18);
    transform: rotate(1.6deg);
}

.duo-main-image img {
    width: 100%;
    aspect-ratio: 680 / 390;
    object-fit: cover;
}

.duo-float-card {
    position: absolute;
    padding: 12px 18px;
    border: 2px solid #f2dfbf;
    border-radius: 18px;
    background: #fff;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(126, 91, 33, 0.14);
}

.duo-card-a {
    left: -4%;
    top: 16%;
    color: #2875c5;
}

.duo-card-b {
    right: 1%;
    top: -4%;
    color: #a35a16;
}

.duo-card-c {
    right: 5%;
    bottom: 8%;
    color: #dd7a19;
}

.duo-mode-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.duo-mode-card {
    padding: 20px 22px;
    border: 2px solid #f0dfc0;
    border-radius: 22px;
    background: #fff;
    text-align: left;
    box-shadow: 0 12px 28px rgba(185, 132, 48, 0.1);
}

.duo-mode-card b {
    display: block;
    margin-bottom: 8px;
    color: #2d6f36;
    font-size: 22px;
}

.duo-mode-card span {
    color: #765f4d;
    line-height: 1.5;
}

.duo-mode-card.is-selected {
    border-color: #90d85e;
    background: #f6fff0;
}

.duo-flow {
    padding: 26px;
    border-radius: 28px;
}

.duo-flow h2 {
    margin: 0 0 18px;
}

.duo-flow-steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
}

.duo-flow-steps div {
    padding: 18px;
    border: 1px solid #f0dfc0;
    border-radius: 20px;
    background: #fff9ed;
}

.duo-flow-steps strong {
    width: 38px;
    height: 38px;
    margin-bottom: 10px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #8fd65b;
    color: #fff;
}

.duo-flow-steps b {
    display: block;
    margin-bottom: 5px;
    font-size: 19px;
}

.duo-flow-steps span {
    color: #806b58;
}

.duo-quiz {
    grid-template-columns: minmax(0, 2fr) 360px;
    gap: 16px;
}

.duo-result {
    gap: 16px;
}

.duo-quiz-card {
    padding: 28px 34px 30px;
    border-radius: 28px;
}

.duo-quiz-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.duo-round-btn {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: #fff7ed;
    color: #b97941;
    font-size: 34px;
    line-height: 1;
    box-shadow: inset 0 0 0 2px #f2d8bd;
}

.duo-question-count,
.duo-score-badge {
    padding: 13px 20px;
    border-radius: 18px;
    background: #fff2c4;
    color: #9d601b;
    font-weight: 800;
}

.duo-question-count {
    padding-inline: 34px;
}

.duo-question-count strong {
    color: #f06e33;
}

.duo-quiz-card h2 {
    margin: 22px 0 20px;
    text-align: center;
    font-size: clamp(24px, 3vw, 34px);
    line-height: 1.35;
    letter-spacing: 0;
}

.duo-quiz-card h2 span,
[data-result-answer] {
    color: var(--duo-orange-dark);
}

.duo-picture {
    width: min(400px, 100%);
    margin: 0 auto 18px;
    overflow: hidden;
    border-radius: 22px;
    background: #eee;
    box-shadow: 0 10px 20px rgba(72, 50, 25, 0.12);
}

.duo-picture img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fffdf7;
}

.duo-small-picture {
    width: min(400px, 100%);
}

.duo-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 20px;
}

.duo-option {
    min-height: 64px;
    padding: 0 22px;
    display: flex;
    align-items: center;
    gap: 18px;
    border: 2px solid #f2e3c8;
    border-radius: 18px;
    background: #fffdf7;
    color: #332822;
    text-align: left;
    font-size: 23px;
    font-weight: 400;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}

.duo-option span {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--duo-blue);
    color: #fff;
    font-size: 22px;
}

.duo-option:nth-child(1) {
    background: #f4fff0;
    border-color: #cfecc4;
}

.duo-option:nth-child(1) span {
    background: #5fc36b;
}

.duo-option:nth-child(2) span {
    background: #f7c23f;
}

.duo-option:nth-child(3) {
    background: #f3f9ff;
    border-color: #cde7ff;
}

.duo-option:nth-child(4) {
    background: #fff5ff;
    border-color: #efd5f3;
}

.duo-option:nth-child(4) span {
    background: #d67be8;
}

.duo-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(185, 132, 48, 0.13);
}

.duo-option:disabled {
    cursor: default;
}

.duo-option.is-pending {
    opacity: 0.72;
    transform: scale(0.99);
}

.duo-option.is-wrong {
    position: relative;
    border-color: #ff9c91 !important;
    background: #fff0ee !important;
    color: #9a5148;
    box-shadow: inset 0 0 0 2px rgba(255, 111, 97, 0.12);
    animation: duoWrongShake 0.32s ease both;
}

.duo-option.is-wrong::after {
    content: "";
    position: absolute;
    left: 78px;
    right: 24px;
    top: 50%;
    height: 3px;
    border-radius: 999px;
    background: rgba(255, 111, 97, 0.82);
    transform: rotate(-2deg);
}

.duo-option.is-wrong span {
    background: #ff7a6c !important;
}

.duo-option.is-wrong:hover {
    transform: none;
    box-shadow: inset 0 0 0 2px rgba(255, 111, 97, 0.12);
}

.duo-options.is-compose-mode {
    display: block;
}

.duo-compose-answerbar {
    padding: 18px 20px;
    border: 2px solid #f2e3c8;
    border-radius: 24px;
    background: linear-gradient(180deg, #fffaf0 0%, #fff5df 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.duo-compose-answerbar-input {
    background: linear-gradient(180deg, #fffaf3 0%, #fff8ea 100%);
}

.duo-compose-head,
.duo-compose-inputrow {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.duo-compose-copy,
.duo-compose-inputcopy {
    display: grid;
    gap: 6px;
}

.duo-compose-copy b,
.duo-compose-inputcopy b {
    color: #533622;
    font-size: 20px;
}

.duo-compose-copy span,
.duo-compose-inputcopy span {
    color: #8a6e4d;
    font-size: 15px;
}

.duo-compose-actions,
.duo-compose-inputactions {
    display: flex;
    gap: 10px;
    flex: 0 0 auto;
}

.duo-idiom-page .duo-compose-mini {
    min-width: 88px;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #6dc3ff 0%, #4ea5f0 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    box-shadow: 0 8px 14px rgba(78, 165, 240, 0.2);
}

.duo-compose-mini-light {
    background: linear-gradient(180deg, #fff1c9 0%, #ffe6a8 100%);
    color: #9f6c18;
    box-shadow: 0 8px 14px rgba(220, 184, 93, 0.18);
}

.duo-compose-slots {
    margin-top: 16px;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 78px));
    gap: 12px;
}

.duo-compose-slot {
    width: 78px;
    height: 78px;
    display: grid;
    place-items: center;
    border-radius: 22px;
    border: 2px dashed #e4cfa7;
    background: rgba(255, 255, 255, 0.82);
    color: #ccb797;
    font-size: 42px;
    font-weight: 800;
}

.duo-idiom-page button.duo-compose-slot {
    border-style: solid;
    border-color: #e4cfa7;
    color: #51321a;
    font-size: 42px;
    font-weight: 800;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.duo-idiom-page button.duo-compose-slot.is-filled:hover {
    transform: translateY(-1px);
    border-color: #d3ae67;
    box-shadow: 0 10px 18px rgba(185, 132, 48, 0.12);
}

.duo-compose-pool {
    margin-top: 18px;
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 14px 12px;
}

.duo-idiom-page .duo-compose-char {
    min-height: 64px;
    border: 2px solid #d9ebc9;
    border-radius: 18px;
    background: linear-gradient(180deg, #f7fff2 0%, #effcdf 100%);
    color: #2f5a25;
    font-size: 42px;
    font-weight: 800;
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.duo-compose-char:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(115, 170, 86, 0.16);
}

.duo-compose-char.is-used {
    opacity: 0.42;
    box-shadow: none;
    transform: none;
}

.duo-compose-inputbox {
    margin-top: 16px;
    display: block;
}

.duo-compose-inputbox input {
    width: 100%;
    height: 64px;
    padding: 0 20px;
    border: 2px solid #eddcb9;
    border-radius: 20px;
    background: #fffdf7;
    color: #4f3422;
    font-size: 27px;
    font-weight: 700;
}

.duo-compose-inputbox input::placeholder {
    color: #c8b49b;
    font-weight: 500;
}

.duo-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;
}

.duo-retry-feedback {
    margin-top: 16px;
    padding: 13px 18px;
    display: flex;
    align-items: center;
    gap: 12px;
    border: 2px solid #ffd0c8;
    border-radius: 18px;
    background: linear-gradient(90deg, #fff4f1, #fffaf0);
    color: #87542d;
    font-weight: 800;
    animation: duoHintIn 0.2s ease both;
}

.duo-retry-feedback[hidden] {
    display: none;
}

.duo-retry-feedback strong {
    padding: 6px 12px;
    flex: 0 0 auto;
    border-radius: 999px;
    background: #ff8a56;
    color: #fff;
}

.duo-retry-feedback span {
    line-height: 1.5;
}

@keyframes duoWrongShake {
    0%,
    100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    50% {
        transform: translateX(5px);
    }
    75% {
        transform: translateX(-3px);
    }
}

.duo-side {
    display: grid;
    align-content: start;
    gap: 14px;
}

.duo-side section {
    overflow: hidden;
    border-radius: 22px;
}

.duo-progress {
    padding: 20px 24px 22px;
    background: #f5ffe9 !important;
    text-align: center;
}

.duo-progress h2,
.duo-hints h2,
.duo-tip h2 {
    margin: 0;
    color: #287238;
    font-size: 23px;
}

.duo-progress-track {
    height: 18px;
    margin: 18px 0 12px;
    overflow: hidden;
    border: 2px solid #edd6b8;
    border-radius: 999px;
    background: #fff6e6;
}

.duo-progress-track span {
    display: block;
    height: 100%;
    width: 10%;
    border-radius: inherit;
    background: linear-gradient(90deg, #71c943, #a8dc54);
}

.duo-progress strong {
    color: #965711;
    font-size: 25px;
}

.duo-hints {
    padding: 16px 18px 20px;
    background: #edf7ff !important;
}

.duo-hints h2 {
    margin-bottom: 12px;
    color: #3276c8;
    text-align: center;
}

.duo-hint-reveal {
    width: 100%;
    min-height: 50px;
    border-radius: 16px;
    background: linear-gradient(#86ccff, #4fa9f3);
    color: #fff;
    font-size: 20px;
    font-weight: 900;
    box-shadow: 0 7px 0 rgba(64, 125, 194, 0.12);
}

.duo-hint-reveal:disabled {
    background: #d9e8f6;
    color: #6f8ba6;
    cursor: default;
    box-shadow: none;
}

.duo-hint-count {
    margin: 10px 0 0;
    color: #52749a;
    text-align: center;
    font-weight: 800;
}

.duo-hint-item {
    margin-top: 10px;
    padding: 12px 16px;
    border: 1px solid #d8eafb;
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 4px 10px rgba(62, 133, 204, 0.1);
    animation: duoHintIn 0.18s ease both;
}

.duo-hint-item[hidden] {
    display: none;
}

@keyframes duoHintIn {
    from {
        opacity: 0;
        transform: translateY(6px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.duo-hint-item b {
    color: #236ec3;
    font-size: 18px;
}

.duo-hint-item p {
    margin: 6px 0 0;
    color: #5f5147;
}

.duo-tip h2 {
    padding: 12px 0;
    background: #ffa849;
    color: #fff;
    text-align: center;
}

.duo-tip-body {
    padding: 16px 22px;
    display: flex;
    align-items: center;
    gap: 14px;
}

.duo-tip-body img {
    width: 94px;
    flex: 0 0 auto;
}

.duo-tip-body p {
    margin: 0;
    color: #87542d;
    font-weight: 800;
    line-height: 1.7;
}

.duo-answer-card {
    padding: 18px 32px;
    display: grid;
    grid-template-columns: 180px minmax(0, 1fr) 180px;
    align-items: center;
    gap: 20px;
    border-radius: 28px;
}

.duo-answer-card.is-success {
    border-color: #cfecc4;
    background: linear-gradient(180deg, #ffffff, #f7fff0);
}

.duo-answer-card.is-wrong {
    border-color: #ffd2cc;
    background: linear-gradient(180deg, #ffffff, #fff5f3);
}

.duo-mascot span {
    display: inline-block;
    padding: 10px 18px;
    border-radius: 0 0 16px 0;
    background: #70c248;
    color: #fff;
    font-size: 24px;
    font-weight: 900;
    transform: rotate(-6deg);
}

.duo-answer-card.is-wrong .duo-mascot span {
    background: #ff8a56;
}

.duo-mascot img {
    width: 130px;
    margin: -6px auto 0;
}

.duo-answer-title {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    font-size: 22px;
}

.duo-answer-title strong {
    color: var(--duo-orange-dark);
    font-size: 34px;
}

.duo-answer-content p {
    margin: 10px 0;
    padding: 10px 18px;
    border-radius: 999px;
    background: #fff8ee;
    color: #5c4d42;
}

.duo-answer-content b {
    color: #a35a22;
}

.duo-answer-deco {
    width: 150px;
    justify-self: center;
}

.duo-bottom-actions,
.duo-story-actions,
.duo-complete-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: clamp(12px, 4vw, 42px);
    padding: 0 36px;
}

.duo-big-btn {
    min-height: 66px;
    padding: 0 26px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 22px;
    color: #fff;
    font-size: 25px;
    font-weight: 900;
    box-shadow: 0 8px 0 rgba(0, 0, 0, 0.08), 0 14px 22px rgba(185, 132, 48, 0.15);
}

.duo-blue {
    background: linear-gradient(#86ccff, #4fa9f3);
}

.duo-green {
    background: linear-gradient(#9ddd66, #5fbd37);
}

.duo-orange {
    background: linear-gradient(#ffd966, #ff9e27);
}

.duo-light {
    color: #9b5c16;
    background: linear-gradient(#fff8df, #ffe8a3);
}

.duo-big-btn:active {
    transform: translateY(3px);
    box-shadow: 0 4px 0 rgba(0, 0, 0, 0.08), 0 10px 16px rgba(185, 132, 48, 0.12);
}

.duo-story,
.duo-complete {
    place-items: center;
}

.duo-big-link {
    color: #fff;
}

.duo-story-card,
.duo-complete-card {
    width: min(1100px, 100%);
    padding: clamp(20px, 4vw, 42px);
    position: relative;
    border-radius: 28px;
}

.duo-story-back {
    position: absolute;
    left: 24px;
    top: 24px;
}

.duo-my-shell {
    display: grid;
    place-items: center;
}

.duo-my-card {
    width: min(1120px, 100%);
    padding: clamp(20px, 4vw, 42px);
    border-radius: 28px;
    background: rgba(255, 255, 255, 0.96);
    box-shadow: var(--duo-shadow);
}

.duo-my-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 24px;
}

.duo-my-head h1 {
    margin: 10px 0 8px;
    font-size: clamp(34px, 5vw, 52px);
    color: #f36c3d;
}

.duo-my-head p {
    margin: 0;
    color: var(--duo-muted);
}

.duo-my-back-btn {
    min-width: 180px;
    font-size: 20px;
}

.duo-my-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-bottom: 24px;
}

.duo-my-summary-card {
    padding: 18px 20px;
    border-radius: 20px;
    background: linear-gradient(180deg, #fffdf7, #fff2cf);
    border: 1px solid var(--duo-line);
}

.duo-my-summary-card span {
    display: block;
    color: #8c5a1f;
    font-weight: 700;
}

.duo-my-summary-card strong {
    display: block;
    margin-top: 8px;
    font-size: 34px;
    color: #2b7c3e;
}

.duo-my-tabs {
    display: flex;
    gap: 12px;
    margin-bottom: 18px;
    flex-wrap: wrap;
}

.duo-my-tab {
    min-height: 48px;
    padding: 0 18px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--duo-line);
    color: #8c5a1f;
    font-weight: 800;
    box-shadow: 0 4px 12px rgba(185, 132, 48, 0.1);
}

.duo-my-tab.is-active {
    background: #fff0c3;
    color: #e36a28;
}

.duo-my-feedback,
.duo-my-empty,
.duo-my-login-card {
    padding: 20px 22px;
    border-radius: 20px;
    background: #fff9eb;
    border: 1px solid var(--duo-line);
    color: #8b6336;
}

.duo-my-list {
    display: grid;
    gap: 16px;
}

.duo-my-record-wrap {
    overflow-x: auto;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(242, 223, 191, 0.9);
    box-shadow: 0 8px 24px rgba(185, 132, 48, 0.08);
}

.duo-my-item {
    display: grid;
    gap: 16px;
    padding: 18px;
    border-radius: 22px;
    background: #fff;
    border: 1px solid rgba(242, 223, 191, 0.9);
    box-shadow: 0 8px 24px rgba(185, 132, 48, 0.08);
}

.duo-my-item-card {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
}

.duo-my-item-row {
    grid-template-columns: minmax(0, 1fr);
}

.duo-my-item-main h3 {
    margin: 0 0 6px;
    color: #287e3d;
    font-size: 28px;
}

.duo-my-item-main p {
    margin: 0 0 6px;
    color: #5c4d42;
}

.duo-my-item-pinyin,
.duo-my-item-meta {
    color: #92755a;
}

.duo-my-record-table {
    width: 100%;
    min-width: 640px;
    border-collapse: collapse;
}

.duo-my-record-table th,
.duo-my-record-table td {
    padding: 16px 18px;
    text-align: left;
    border-bottom: 1px solid rgba(242, 223, 191, 0.8);
    color: #5c4d42;
}

.duo-my-record-table th {
    color: #8c5a1f;
    font-size: 18px;
    font-weight: 800;
    background: #fff8e8;
}

.duo-my-record-table tbody tr:last-child td {
    border-bottom: none;
}

.duo-my-record-cell-idiom {
    color: #287e3d;
    font-size: 24px;
    font-weight: 800;
}

.duo-my-record-result {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 72px;
    min-height: 34px;
    padding: 0 12px;
    border-radius: 999px;
    font-weight: 800;
}

.duo-my-record-result.is-correct {
    color: #287e3d;
    background: #edf8e7;
}

.duo-my-record-result.is-wrong {
    color: #d06045;
    background: #fff0ea;
}

.duo-my-item-actions {
    display: grid;
    gap: 10px;
    justify-items: end;
}

.duo-my-link,
.duo-my-action {
    min-height: 40px;
    padding: 0 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    font-weight: 800;
}

.duo-my-link {
    color: #fff;
    background: linear-gradient(#86ccff, #4fa9f3);
}

.duo-my-action {
    color: #8c5a1f;
    background: #fff6df;
    border: 1px solid var(--duo-line);
}

.duo-my-action-danger {
    color: #e05b48;
}

.duo-my-login-actions {
    display: flex;
    gap: 14px;
    margin-top: 16px;
    flex-wrap: wrap;
}

.duo-my-pagination {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 16px;
    flex-wrap: wrap;
    color: #8c5a1f;
}

.duo-my-pagination-text {
    margin-right: auto;
}

.duo-my-page-btn {
    min-height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    border: 1px solid var(--duo-line);
    background: #fff;
    color: #8c5a1f;
    font-weight: 800;
}

.duo-my-page-btn[disabled] {
    opacity: 0.45;
    cursor: not-allowed;
}

.duo-story-header {
    text-align: center;
}

.duo-story-header span {
    padding: 8px 16px;
    border-radius: 999px;
    background: #e9f6ff;
    color: #2e78bf;
    font-weight: 900;
}

.duo-story-header h1 {
    margin: 8px 0 4px;
    color: var(--duo-orange-dark);
    font-size: clamp(36px, 6vw, 64px);
    letter-spacing: 0;
}

.duo-story-header p {
    margin: 16px 0 0;
    color: #7a6250;
    font-size: 22px;
}

.duo-story-layout {
    margin-top: 26px;
    display: grid;
    grid-template-columns: 210px minmax(0, 1fr);
    gap: 22px;
    align-items: stretch;
    min-height: 0;
}

.duo-story-layout > *,
.duo-story-body > * {
    min-width: 0;
}

.duo-story-picker {
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    gap: 12px;
    max-height: clamp(420px, 58vh, 620px);
    min-height: 0;
}

.duo-story-search {
    display: grid;
    gap: 8px;
}

.duo-story-search span {
    color: #7a5230;
    font-size: 15px;
    font-weight: 900;
}

.duo-story-search input {
    width: 100%;
    min-height: 46px;
    padding: 0 14px;
    border: 1px solid #f0dfc0;
    border-radius: 14px;
    background: #fffdf8;
    color: #5f5147;
    font-size: 17px;
    font-weight: 800;
    outline: none;
}

.duo-story-search input::placeholder {
    color: #c8b9aa;
    font-weight: 400;
    opacity: 1;
}

.duo-story-search input:focus {
    border-color: #90d85e;
    box-shadow: 0 0 0 4px rgba(144, 216, 94, 0.18);
}

.duo-story-list {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 0;
    overflow-y: auto;
    padding-right: 6px;
    scrollbar-color: #efb568 #fff8ee;
    scrollbar-width: thin;
}

.duo-story-list::-webkit-scrollbar {
    width: 8px;
}

.duo-story-list::-webkit-scrollbar-track {
    border-radius: 999px;
    background: #fff8ee;
}

.duo-story-list::-webkit-scrollbar-thumb {
    border-radius: 999px;
    background: #efb568;
}

.duo-story-item {
    min-height: 46px;
    border: 1px solid #f0dfc0;
    border-radius: 14px;
    background: #fff8ee;
    color: #7a5230;
    font-weight: 800;
}

.duo-story-item.is-active,
.duo-story-item:hover {
    background: #f6fff0;
    border-color: #90d85e;
    color: #2d6f36;
}

.duo-story-empty {
    margin: 0;
    padding: 10px 12px;
    border-radius: 14px;
    background: #fff8ee;
    color: #9b5c16;
    font-weight: 800;
    text-align: center;
}

.duo-story-body {
    display: grid;
    grid-template-columns: minmax(260px, 0.9fr) 1fr;
    gap: 24px;
    align-items: center;
}

.duo-story-body img {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 16px 32px rgba(72, 50, 25, 0.15);
}

.duo-story-body h2 {
    margin: 0 0 8px;
    color: #2d6f36;
}

.duo-story-body p {
    margin: 0 0 18px;
    padding: 16px;
    border-radius: 18px;
    background: #fff8ee;
    color: #5f5147;
    font-size: 19px;
    line-height: 1.9;
}

.duo-story-actions {
    grid-template-columns: repeat(3, 1fr);
    margin-top: 18px;
    padding: 0;
}

.duo-complete-card {
    text-align: center;
}

.duo-medal {
    width: 90px;
    height: 90px;
    margin: 0 auto;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(#ffd966, #ff9e27);
    color: #fff;
    font-size: 48px;
    font-weight: 900;
    box-shadow: 0 12px 24px rgba(185, 132, 48, 0.2);
}

.duo-complete-card h1 {
    margin: 14px 0 12px;
    color: var(--duo-orange-dark);
    font-size: clamp(34px, 5vw, 58px);
    letter-spacing: 0;
}

.duo-complete-card p {
    max-width: 720px;
    margin: 0 auto 24px;
    color: #765f4d;
    font-size: 20px;
    line-height: 1.7;
}

.duo-summary-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.duo-summary-grid div {
    padding: 22px;
    border: 1px solid #f0dfc0;
    border-radius: 22px;
    background: #fff8ee;
}

.duo-summary-grid b {
    display: block;
    color: #62b83c;
    font-size: 44px;
}

.duo-summary-grid span {
    color: #765f4d;
    font-weight: 800;
}

.duo-complete-actions {
    margin-top: 18px;
    padding: 0;
}

.duo-modal[hidden] {
    display: none;
}

.duo-modal {
    position: fixed;
    inset: 0;
    z-index: 1000;
    display: grid;
    place-items: center;
    padding: 20px;
    background: rgba(57, 42, 28, 0.42);
}

.duo-modal-panel {
    width: min(520px, 100%);
    position: relative;
    padding: 30px;
    border-radius: 24px;
    background: #fffdf7;
    box-shadow: 0 24px 60px rgba(57, 42, 28, 0.22);
    text-align: center;
}

.duo-modal-close {
    width: 36px;
    height: 36px;
    position: absolute;
    right: 14px;
    top: 14px;
    border-radius: 50%;
    background: #fff2c4;
    color: #8c5a1f;
    font-size: 24px;
}

.duo-modal-panel h2 {
    margin: 0 0 12px;
    color: #f36c3d;
    font-size: 32px;
    letter-spacing: 0;
}

.duo-modal-panel p {
    margin: 0;
    color: #765f4d;
    font-size: 18px;
    line-height: 1.7;
}

.duo-modal-actions {
    margin-top: 22px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

@media (max-width: 1100px) {
    .duo-header {
        padding-inline: 22px;
    }

    .duo-nav {
        display: none;
    }

    .duo-quiz {
        grid-template-columns: 1fr;
    }

    .duo-side {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .duo-tip-body {
        flex-direction: column;
        text-align: center;
    }

    .duo-hero,
    .duo-story-body {
        grid-template-columns: 1fr;
    }

    .duo-story-layout {
        grid-template-columns: minmax(170px, 210px) minmax(0, 1fr);
    }

    .duo-hero-visual {
        min-height: auto;
    }

    .duo-mode-grid,
    .duo-flow-steps {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) and (max-width: 1180px) and (orientation: landscape) {
    .duo-header {
        min-height: 72px;
        padding-inline: 20px;
    }

    .duo-brand-logo {
        width: 48px;
        height: 48px;
    }

    .duo-brand-text {
        font-size: 30px;
    }

    .duo-header-actions {
        gap: 8px;
    }

    .duo-score-pill,
    .duo-login-mini {
        min-height: 38px;
        padding-inline: 14px;
    }

    .duo-shell {
        width: min(100% - 28px, 1120px);
        margin-top: 12px;
    }

    .duo-hero {
        grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
        gap: 20px;
        padding: 24px;
        border-radius: 24px;
    }

    .duo-hero-copy h1 {
        margin: 12px 0 10px;
        font-size: 42px;
    }

    .duo-hero-copy p {
        font-size: 17px;
        line-height: 1.6;
    }

    .duo-hero-actions {
        margin-top: 18px;
    }

    .duo-hero-visual {
        min-height: 0;
    }

    .duo-main-image img {
        max-height: 260px;
    }

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

    .duo-mode-card {
        padding: 16px 18px;
    }

    .duo-mode-card b {
        font-size: 20px;
    }

    .duo-flow {
        padding: 18px;
    }

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

    .duo-flow-steps div {
        padding: 14px;
    }

    .duo-quiz {
        grid-template-columns: minmax(0, 1fr) 300px;
        gap: 14px;
    }

    .duo-quiz-card {
        display: grid;
        grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
        column-gap: 22px;
        align-items: start;
        padding: 18px 22px;
        border-radius: 24px;
    }

    .duo-quiz-head {
        grid-column: 1 / -1;
    }

    .duo-quiz-card h2 {
        grid-column: 1;
        margin: 16px 0 14px;
        font-size: 26px;
    }

    .duo-picture {
        grid-column: 1;
        width: min(320px, 42vw);
        margin-bottom: 0;
    }

    .duo-options {
        grid-column: 2;
        grid-row: 3;
        align-self: start;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .duo-option {
        min-height: 56px;
        padding-inline: 16px;
        font-size: 21px;
    }

    .duo-options.is-compose-mode {
        grid-column: 2;
        grid-row: 2 / span 3;
        display: block;
    }

    .duo-compose-answerbar {
        padding: 14px;
        border-radius: 20px;
    }

    .duo-compose-copy span,
    .duo-compose-inputcopy span {
        font-size: 14px;
    }

    .duo-compose-slots {
        grid-template-columns: repeat(4, minmax(0, 60px));
        gap: 8px;
    }

    .duo-compose-slot {
        width: 60px;
        height: 60px;
        border-radius: 18px;
        font-size: 34px;
    }

    .duo-idiom-page button.duo-compose-slot {
        font-size: 34px;
    }

    .duo-compose-pool {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .duo-idiom-page .duo-compose-char {
        min-height: 48px;
        border-radius: 14px;
        font-size: 30px;
    }

    .duo-side {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .duo-progress {
        display: none;
    }

    .duo-tip-body {
        flex-direction: column;
        padding: 12px 16px;
        text-align: center;
    }

    .duo-story-body {
        grid-template-columns: minmax(220px, 0.72fr) minmax(0, 1fr);
        align-items: start;
    }

    .duo-story-body img {
        max-height: 300px;
        object-fit: contain;
    }

    .duo-story-body p {
        font-size: 17px;
        line-height: 1.7;
    }

    .duo-story-actions {
        position: sticky;
        bottom: 12px;
        z-index: 6;
        padding: 10px;
        border-radius: 20px;
        background: rgba(255, 250, 240, 0.96);
        box-shadow: 0 12px 30px rgba(90, 62, 24, 0.14);
    }
}

@media (max-width: 760px) {
    .duo-header {
        min-height: auto;
        padding: 14px;
        gap: 10px;
    }

    .duo-brand-logo {
        width: 42px;
        height: 42px;
        border-radius: 11px;
    }

    .duo-brand-text {
        font-size: 25px;
    }

    .duo-score-pill,
    .duo-login-mini {
        min-height: 36px;
        padding: 0 12px;
    }

    .duo-avatar-link {
        width: 42px;
        height: 42px;
    }

    .duo-avatar-img {
        width: 34px;
        height: 34px;
    }

    .duo-shell {
        width: min(100% - 20px, 560px);
        margin-top: 12px;
    }

    .duo-hero {
        padding: 20px 16px;
        border-radius: 22px;
    }

    .duo-hero-copy h1 {
        font-size: 34px;
    }

    .duo-hero-copy p {
        font-size: 16px;
    }

    .duo-hero-actions {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .duo-float-card {
        position: static;
        display: inline-block;
        margin: 8px 6px 0 0;
        padding: 8px 10px;
        font-size: 14px;
    }

    .duo-mode-grid,
    .duo-flow-steps,
    .duo-side,
    .duo-options,
    .duo-bottom-actions,
    .duo-story-actions,
    .duo-summary-grid,
    .duo-complete-actions,
    .duo-modal-actions {
        grid-template-columns: 1fr;
    }

    .duo-flow {
        padding: 18px;
        border-radius: 22px;
    }

    .duo-quiz-card {
        padding: 16px 14px 18px;
        border-radius: 22px;
    }

    .duo-quiz-head {
        gap: 8px;
    }

    .duo-round-btn {
        width: 38px;
        height: 38px;
        font-size: 28px;
    }

    .duo-question-count {
        flex: 1;
        padding: 10px 8px;
        border-radius: 14px;
        text-align: center;
        font-size: 15px;
    }

    .duo-score-badge {
        padding: 10px 12px;
        border-radius: 14px;
        font-size: 14px;
    }

    .duo-quiz-card h2 {
        margin: 16px 0 14px;
    }

    .duo-picture {
        border-radius: 18px;
    }

    .duo-option {
        min-height: 56px;
        padding: 0 16px;
        border-radius: 16px;
        font-size: 20px;
    }

    .duo-option span {
        width: 36px;
        height: 36px;
        font-size: 19px;
    }

    .duo-compose-head,
    .duo-compose-inputrow {
        flex-direction: column;
        align-items: stretch;
    }

    .duo-compose-actions,
    .duo-compose-inputactions {
        width: 100%;
    }

    .duo-idiom-page .duo-compose-mini {
        flex: 1 1 0;
        min-width: 0;
    }

    .duo-compose-slots {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .duo-compose-slot {
        width: 100%;
        height: 64px;
        font-size: 34px;
        border-radius: 18px;
    }

    .duo-compose-pool {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .duo-idiom-page .duo-compose-char {
        min-height: 52px;
        font-size: 30px;
        border-radius: 14px;
    }

    .duo-idiom-page button.duo-compose-slot {
        font-size: 34px;
    }

    .duo-compose-inputbox input {
        height: 56px;
        font-size: 23px;
    }

    .duo-tip-body {
        flex-direction: row;
        padding: 12px 16px;
        text-align: left;
    }

    .duo-tip-body img {
        width: 78px;
    }

    .duo-answer-card {
        grid-template-columns: 1fr;
        padding: 16px;
        border-radius: 22px;
        text-align: left;
    }

    .duo-mascot {
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .duo-mascot span {
        border-radius: 12px;
        font-size: 20px;
        transform: rotate(-4deg);
    }

    .duo-mascot img {
        width: 82px;
        margin: 0;
    }

    .duo-answer-title {
        gap: 10px;
        font-size: 18px;
    }

    .duo-answer-title strong {
        font-size: 28px;
    }

    .duo-answer-content p {
        padding: 10px 12px;
        border-radius: 14px;
        line-height: 1.55;
    }

    .duo-answer-deco {
        display: none;
    }

    .duo-bottom-actions {
        padding: 0;
        gap: 10px;
    }

    .duo-big-btn {
        min-height: 56px;
        border-radius: 18px;
        font-size: 21px;
    }

    .duo-story-card,
    .duo-complete-card {
        padding: 18px 14px;
        border-radius: 22px;
    }

    .duo-story-back {
        left: 14px;
        top: 14px;
    }

    .duo-story-layout {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .duo-story-picker {
        display: block;
        max-height: none;
        min-width: 0;
        max-width: 100%;
    }

    .duo-story-search {
        gap: 6px;
    }

    .duo-story-search span {
        font-size: 14px;
    }

    .duo-story-search input {
        min-height: 42px;
        border-radius: 14px;
        font-size: 16px;
    }

    .duo-story-list {
        display: flex;
        gap: 8px;
        margin-top: 10px;
        min-width: 0;
        max-width: 100%;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 2px 8px;
        scrollbar-width: none;
        scroll-snap-type: x proximity;
    }

    .duo-story-list::-webkit-scrollbar {
        display: none;
    }

    .duo-story-item {
        flex: 0 0 auto;
        min-width: 106px;
        min-height: 38px;
        padding: 0 14px;
        border-radius: 999px;
        background: #fffaf1;
        font-size: 15px;
        scroll-snap-align: start;
    }

    .duo-story-item.is-active,
    .duo-story-item:hover {
        background: #e9f6ff;
        border-color: #bfe1ff;
        color: #2e78bf;
    }

    .duo-story-body p {
        padding: 12px;
        border-radius: 14px;
        font-size: 16px;
    }
}

@media (max-width: 760px) and (orientation: portrait) {
    .duo-quiz-card {
        padding: 14px 12px 16px;
    }

    .duo-quiz-card h2 {
        font-size: 26px;
        line-height: 1.28;
    }

    .duo-picture {
        width: min(100%, 260px);
    }

    .duo-option {
        min-height: 50px;
        font-size: 19px;
    }

    .duo-compose-answerbar {
        padding: 14px;
    }

    .duo-compose-copy span,
    .duo-compose-inputcopy span {
        font-size: 14px;
    }

    .duo-compose-pool {
        gap: 8px;
    }

    .duo-idiom-page .duo-compose-char {
        min-height: 48px;
        font-size: 28px;
    }

    .duo-progress,
    .duo-tip {
        display: none;
    }

    .duo-side {
        gap: 10px;
    }

    .duo-story-actions {
        position: static;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        margin: 12px 0 0;
        padding: 8px;
        border: 1px solid rgba(240, 223, 192, 0.72);
        border-radius: 18px;
        background: rgba(255, 250, 240, 0.68);
        box-shadow: none;
        backdrop-filter: none;
    }

    .duo-story-actions .duo-big-btn {
        min-height: 44px;
        border-radius: 14px;
        font-size: 16px;
    }

    .duo-story-actions a[href="/fan/hanzi/t/231"] {
        display: none;
    }
}

@media (max-width: 900px) and (orientation: landscape) {
    .duo-header {
        min-height: 58px;
        padding: 8px 18px;
    }

    .duo-brand-logo {
        width: 42px;
        height: 42px;
    }

    .duo-brand-text {
        font-size: 28px;
    }

    .duo-score-pill,
    .duo-login-mini {
        min-height: 34px;
    }

    .duo-avatar-link {
        width: 42px;
        height: 42px;
    }

    .duo-avatar-img {
        width: 34px;
        height: 34px;
    }

    .duo-shell {
        width: calc(100% - 20px);
        margin-top: 10px;
    }

    .duo-hero {
        grid-template-columns: minmax(0, 1fr) minmax(260px, 0.8fr);
        gap: 18px;
        padding: 18px;
    }

    .duo-hero-copy h1 {
        margin: 10px 0 8px;
        font-size: 34px;
    }

    .duo-hero-copy p,
    .duo-flow {
        display: none;
    }

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

    .duo-mode-card {
        padding: 12px 14px;
    }

    .duo-mode-card b {
        font-size: 17px;
    }

    .duo-mode-card span {
        display: none;
    }

    .duo-quiz {
        grid-template-columns: 1fr;
    }

    .duo-quiz-card {
        display: grid;
        grid-template-columns: minmax(160px, 0.72fr) minmax(0, 1fr);
        column-gap: 16px;
        align-items: start;
        padding: 12px 16px;
        border-radius: 22px;
    }

    .duo-quiz-head {
        grid-column: 1 / -1;
        margin-bottom: 8px;
    }

    .duo-round-btn {
        width: 34px;
        height: 34px;
        font-size: 24px;
    }

    .duo-question-count,
    .duo-score-badge {
        min-height: 34px;
        padding: 7px 14px;
        border-radius: 12px;
        font-size: 15px;
    }

    .duo-quiz-card h2 {
        grid-column: 2;
        grid-row: 2;
        margin: 0 0 10px;
        text-align: left;
        font-size: 22px;
        line-height: 1.25;
    }

    .duo-picture {
        grid-column: 1;
        grid-row: 2 / span 2;
        width: min(34vh, 220px);
        margin: 0 auto;
    }

    .duo-options {
        grid-column: 2;
        grid-row: 3;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .duo-option {
        min-height: 44px;
        padding: 0 10px;
        gap: 9px;
        border-radius: 14px;
        font-size: 17px;
    }

    .duo-option span {
        width: 30px;
        height: 30px;
        font-size: 17px;
    }

    .duo-options.is-compose-mode {
        grid-column: 2;
        grid-row: 3;
        display: block;
    }

    .duo-compose-answerbar {
        padding: 10px;
        border-radius: 18px;
    }

    .duo-compose-copy span,
    .duo-compose-inputcopy span {
        display: none;
    }

    .duo-compose-copy b,
    .duo-compose-inputcopy b {
        font-size: 17px;
    }

    .duo-idiom-page .duo-compose-mini {
        height: 34px;
        min-width: 76px;
        padding-inline: 12px;
        font-size: 14px;
    }

    .duo-compose-slots {
        margin-top: 8px;
        grid-template-columns: repeat(4, minmax(0, 44px));
        gap: 7px;
    }

    .duo-compose-slot {
        width: 44px;
        height: 44px;
        border-radius: 14px;
        font-size: 26px;
    }

    .duo-idiom-page button.duo-compose-slot {
        font-size: 26px;
    }

    .duo-compose-pool {
        margin-top: 10px;
        grid-template-columns: repeat(8, minmax(0, 1fr));
        gap: 7px;
    }

    .duo-idiom-page .duo-compose-char {
        min-height: 36px;
        border-radius: 11px;
        font-size: 22px;
    }

    .duo-side {
        display: none;
    }

    .duo-story-card {
        padding: 18px;
    }

    .duo-story-header h1 {
        font-size: 42px;
    }

    .duo-story-header p {
        margin-top: 8px;
    }

    .duo-story-layout {
        grid-template-columns: 190px minmax(0, 1fr);
        gap: 16px;
        margin-top: 18px;
    }

    .duo-story-picker {
        max-height: 330px;
    }

    .duo-story-body {
        grid-template-columns: minmax(180px, 0.68fr) minmax(0, 1fr);
        gap: 16px;
    }

    .duo-story-body img {
        max-height: 240px;
        object-fit: contain;
    }

    .duo-story-body p {
        margin-bottom: 10px;
        padding: 12px;
        font-size: 16px;
        line-height: 1.6;
    }

    .duo-story-actions {
        margin-top: 12px;
    }
}

@media (max-width: 390px) and (max-height: 720px) and (orientation: portrait) {
    .duo-header {
        padding-block: 10px;
    }

    .duo-brand-text {
        font-size: 23px;
    }

    .duo-quiz-card h2 {
        margin: 12px 0 10px;
        font-size: 23px;
    }

    .duo-picture {
        width: min(100%, 210px);
    }

    .duo-compose-head,
    .duo-compose-inputrow {
        gap: 8px;
    }

    .duo-compose-copy span,
    .duo-compose-inputcopy span {
        display: none;
    }

    .duo-compose-copy b,
    .duo-compose-inputcopy b {
        font-size: 18px;
    }

    .duo-compose-slots {
        margin-top: 10px;
    }

    .duo-compose-slot {
        height: 52px;
        border-radius: 15px;
        font-size: 30px;
    }

    .duo-idiom-page button.duo-compose-slot {
        font-size: 30px;
    }

    .duo-compose-pool {
        margin-top: 12px;
        gap: 7px;
    }

    .duo-idiom-page .duo-compose-char {
        min-height: 42px;
        font-size: 25px;
    }
}
