/* Read & Answer — student page (passage list + quiz). Rendered by read-answer-app.js. */
@import url('https://fonts.googleapis.com/css2?family=Baloo+2:wght@500;600;700;800&family=Comic+Neue:wght@400;700&display=swap');

html:has(.sc4k-ra-page),
html:has(.sc4k-ra-page) :is(body, .site, .site-content, #page, #primary, #content, #main, .entry-content) {
    background: #e5e4fa !important;
    background-color: #e5e4fa !important;
    background-image: none !important;
}
.sc4k-ra-page {
    font-family: 'Comic Neue', 'Baloo 2', cursive, system-ui, sans-serif;
    min-height: 100vh;
    background: #e5e4fa;
    background-image: radial-gradient(rgba(79,60,134,0.1) 1px, transparent 0);
    background-size: 24px 24px;
    padding: calc(var(--sc4k-header-h, 100px) + 20px) 16px 48px;
    box-sizing: border-box;
}

.sc4k-ra-wrap { max-width: 840px; margin: 0 auto; }
.sc4k-ra-wrap.quiz-mode { max-width: 1320px; }

.sc4k-ra-title { font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif; font-size: 30px; font-weight: 700; color: #4f3c86; margin: 0 0 6px; }
.sc4k-ra-sub   { font-size: 16px; font-weight: 700; color: #7c6aaa; margin: 0 0 32px; }

.sc4k-ra-locked {
    max-width: 560px; margin: 24px auto 32px; padding: clamp(24px, 5vw, 40px) clamp(18px, 5vw, 36px);
    background: #fff; border: 1.5px solid #ede9fe; border-radius: 24px; text-align: center;
    box-shadow: 0 2px 12px rgba(79,60,134,.08); box-sizing: border-box;
}
.sc4k-ra-locked-icon { font-size: 44px; line-height: 1; margin-bottom: 10px; }
.sc4k-ra-locked-eyebrow { margin: 0 0 4px; font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #7c6aaa; }
.sc4k-ra-locked-title { font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif; font-size: clamp(24px, 6vw, 30px); font-weight: 700; color: #4f3c86; margin: 0 0 10px; }
.sc4k-ra-locked-copy { margin: 0 0 8px; font-size: 16px; font-weight: 700; color: #334155; }
.sc4k-ra-locked-hint { margin: 0 0 20px; font-size: 15px; color: #64748b; line-height: 1.5; }
.sc4k-ra-locked-btn {
    display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 28px;
    border-radius: 999px; background: #4f3c86; color: #fff !important; font-weight: 800; font-size: 16px; text-decoration: none !important;
}
.sc4k-ra-locked-btn:hover { background: #3d2e6b; }
@media(max-width:480px){ .sc4k-ra-locked-btn { width: 100%; } }
.sc4k-ra-notice {
    margin: -16px 0 24px; padding: 12px 16px; border-radius: 14px;
    background: #fef3c7; color: #92400e; font-weight: 700; font-size: 15px;
}
.sc4k-ra-topbar {
    margin: 0 0 16px; background: rgba(255,255,255,0.92); border: 1px solid rgba(206,188,252,0.4);
    border-radius: 20px; padding: 14px 18px; display: flex; align-items: center;
    justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.sc4k-ra-topbar[hidden] { display: none; }
.sc4k-ra-topbar-title { font-size: 15px; font-weight: 800; color: #4f3c86; }
.sc4k-ra-loading { text-align: center; padding: 60px 20px; color: #7c6aaa; font-weight: 700; }
.sc4k-ra-loading .sc4k-submit-spinner { margin-bottom: 12px; }
.sc4k-ra-empty { text-align: center; padding: 60px 20px; color: #94a3b8; }
.sc4k-ra-empty-icon { font-size: 48px; margin-bottom: 14px; }
.sc4k-ra-empty-title { font-size: 18px; font-weight: 800; color: #4f3c86; margin-bottom: 8px; }
.sc4k-ra-empty-sub { font-size: 15px; font-weight: 700; color: #7c6aaa; }
.sc4k-ra-card-excerpt { font-size: 14px; color: #64748b; margin: 0 0 16px; line-height: 1.6; }
.sc4k-ra-noq { text-align: center; padding: 24px; color: #94a3b8; font-weight: 600; }
.sc4k-ra-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 32px; }
@media(max-width:680px){ .sc4k-ra-grid { grid-template-columns: 1fr; } }
.sc4k-ra-card {
    background: #fff; border: 1.5px solid #ede9fe; border-radius: 20px;
    padding: 24px 22px; text-decoration: none !important; color: inherit !important;
    display: block; transition: transform .15s, box-shadow .15s;
    box-shadow: 0 2px 12px rgba(79,60,134,.06);
}
.sc4k-ra-card:hover { transform: translateY(-3px); box-shadow: 0 8px 24px rgba(79,60,134,.1); border-color: #cebcfc; }
.sc4k-ra-card-title { font-size: 17px; font-weight: 800; color: #4f3c86; margin: 0 0 8px; }
.sc4k-ra-card-meta  { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sc4k-ra-chip { padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.chip-grade  { background: #ede9fe; color: #4f3c86; }
.chip-q      { background: #d1fae5; color: #065f46; }
.chip-new    { background: #f1f5f9; color: #64748b; }
.chip-tried  { background: #dbeafe; color: #1d4ed8; }
.chip-score  { background: #fef3c7; color: #92400e; }
.sc4k-ra-card-status {
    display: flex; align-items: center; justify-content: space-between; gap: 10px;
    margin: 0 0 12px; padding: 10px 12px; border-radius: 12px; font-size: 12px; font-weight: 800;
}
.sc4k-ra-card-status.is-new {
    background: #f8fafc; color: #64748b; border: 1px solid #e2e8f0;
}
.sc4k-ra-card-status.is-tried {
    background: #eff6ff; color: #1d4ed8; border: 1px solid #bfdbfe;
}
.sc4k-ra-card-status-score {
    background: #fff; color: #92400e; border: 1px solid #fde68a;
    padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 900;
}
.sc4k-ra-card-btn {
    display: inline-flex; align-items: center; gap: 6px;
    background: #f16434; color: #fff; padding: 9px 20px;
    border-radius: 99px; font-size: 13px; font-weight: 800;
    text-decoration: none !important;
}

.sc4k-ra-back { display: inline-flex; align-items: center; gap: 5px; color: #4f3c86; font-weight: 700; font-size: 13px; text-decoration: none; margin-bottom: 16px; }
.sc4k-ra-back:hover { color: #3d2e6b; }

.sc4k-ra-split {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 20px;
    align-items: stretch;
}
@media(max-width:960px){
    .sc4k-ra-split { grid-template-columns: 1fr; }
    .sc4k-ra-passage-panel,
    .sc4k-ra-quiz-panel {
        position: static !important;
        height: auto !important;
        max-height: none !important;
    }
}

.sc4k-ra-passage-panel {
    position: sticky;
    top: calc(var(--sc4k-header-h, 100px) + 8px);
    max-height: calc(100vh - var(--sc4k-header-h, 100px) - 56px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: #fff;
    border: 1.5px solid #ede9fe;
    border-radius: 18px;
    padding: 22px 24px;
    box-shadow: 0 4px 20px rgba(79,60,134,.07);
}
.sc4k-passage-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
}
.sc4k-passage-title {
    font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif;
    font-size: 28px; font-weight: 700; color: #4f3c86;
    margin: 0 0 10px; line-height: 1.25;
}
.sc4k-passage-meta { font-size: 14px; font-weight: 700; color: #7c6aaa; margin-bottom: 16px; }
.sc4k-passage-p {
    margin: 0 0 14px;
    font-family: 'Comic Neue', 'Baloo 2', cursive, system-ui, sans-serif;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.7;
    letter-spacing: 0.015em;
    color: #1e1b4b;
}
@media(max-width:600px){
    .sc4k-passage-p { font-size: 18px; line-height: 1.65; }
    .sc4k-passage-title { font-size: 24px; }
}

/* Text wraps under the image (no empty side column). Alternate float L/R. */
.sc4k-passage-beat {
    display: block;
    margin: 0 0 20px;
}
.sc4k-passage-beat::after,
.sc4k-passage-beat-clear {
    content: '';
    display: table;
    clear: both;
}
.sc4k-passage-beat-media {
    display: block;
    width: min(42%, 220px);
    margin: 0 0 10px;
}
.sc4k-passage-beat--media-right .sc4k-passage-beat-media {
    float: right;
    margin-left: 16px;
}
.sc4k-passage-beat--media-left .sc4k-passage-beat-media {
    float: left;
    margin-right: 16px;
}
.sc4k-passage-beat-text .sc4k-passage-p { margin-bottom: 0; }

.sc4k-passage-figure {
    margin: 0;
    border-radius: 12px;
    overflow: hidden;
    border: 1.5px solid #ede9fe;
    background: #faf9ff;
}
.sc4k-passage-figure img { display: block; width: 100%; height: auto; }
.sc4k-passage-figure--inline img {
    max-height: 180px;
    width: 100%;
    object-fit: cover;
    object-position: center;
}
.sc4k-passage-hero {
    margin: 0 0 16px;
    max-width: 320px;
}
.sc4k-passage-hero img {
    max-height: 200px;
    width: 100%;
    object-fit: cover;
}
.sc4k-passage-caption {
    font-size: 11px; color: #64748b; font-style: italic;
    padding: 6px 8px 8px; margin: 0; line-height: 1.35;
}

@media(max-width:720px){
    .sc4k-passage-beat-media {
        float: none !important;
        width: min(100%, 280px);
        margin: 0 auto 12px !important;
    }
    .sc4k-passage-figure--inline img { max-height: 180px; }
    .sc4k-passage-hero { max-width: 100%; }
}

.sc4k-ra-quiz-panel {
    background: #fff;
    border: 1.5px solid #ede9fe;
    border-radius: 18px;
    padding: 18px 18px 14px;
    box-shadow: 0 4px 20px rgba(79,60,134,.07);
    position: sticky;
    top: calc(var(--sc4k-header-h, 100px) + 8px);
    height: calc(100vh - var(--sc4k-header-h, 100px) - 56px);
    max-height: calc(100vh - var(--sc4k-header-h, 100px) - 56px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-sizing: border-box;
}
#sc4k-quiz-active {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    min-height: 0;
    height: 100%;
}
.sc4k-ra-progress-wrap { margin-bottom: 12px; flex-shrink: 0; }
.sc4k-ra-progress-label {
    display: flex; justify-content: space-between; align-items: center;
    font-size: 13px; font-weight: 800; color: #4f3c86; margin-bottom: 8px;
}
.sc4k-ra-progress-bar {
    height: 8px; background: #ede9fe; border-radius: 99px; overflow: hidden;
}
.sc4k-ra-progress-fill {
    height: 100%; width: 0; background: linear-gradient(90deg, #4f3c86, #7c5cbf);
    border-radius: 99px; transition: width .25s ease;
}
.sc4k-ra-progress-hint {
    font-size: 12px; font-weight: 600; color: #7c6aaa; margin-top: 8px;
}
.sc4k-q-nav {
    display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; flex-shrink: 0;
}
.sc4k-q-pill {
    min-width: 36px; height: 36px; padding: 0 10px;
    border: 2px solid #e2d9fc; border-radius: 10px;
    background: #fff; color: #4f3c86 !important;
    font-family: 'Comic Neue', 'Baloo 2', cursive, sans-serif; font-size: 13px; font-weight: 800;
    cursor: pointer; transition: all .15s;
}
.sc4k-q-pill:hover {
    border-color: #cebcfc;
    background: #ede9fe;
    color: #4f3c86 !important;
}
.sc4k-q-pill.current,
.sc4k-q-pill.current:hover {
    border-color: #4f3c86; background: #4f3c86; color: #fff !important;
}
.sc4k-q-pill.answered { border-color: #86efac; background: #ecfdf5; color: #065f46 !important; }
.sc4k-q-pill.answered:hover { background: #d1fae5; color: #065f46 !important; }
.sc4k-q-pill.answered.current,
.sc4k-q-pill.answered.current:hover {
    border-color: #059669; background: #059669; color: #fff !important;
}
.sc4k-q-pill.unanswered {
    border-color: #f59e0b; background: #fff7ed; color: #9a3412 !important;
    box-shadow: 0 0 0 2px rgba(245,158,11,.18);
}
.sc4k-q-pill.unanswered:hover { background: #ffedd5; color: #9a3412 !important; }
.sc4k-q-pill.unanswered.current,
.sc4k-q-pill.unanswered.current:hover {
    border-color: #ea580c; background: #ea580c; color: #fff !important;
}
.sc4k-ra-missing {
    display: none; margin: 0 0 8px; padding: 6px 8px;
    background: #fff7ed; border: 1.5px solid #fdba74; border-radius: 10px;
}
.sc4k-ra-missing.visible { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.sc4k-ra-missing-msg {
    font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif;
    font-size: 13px; font-weight: 700; color: #9a3412; margin: 0; line-height: 1.3;
}
.sc4k-ra-missing-jumps {
    display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
}
.sc4k-ra-missing-jump {
    min-width: 32px; height: 32px; padding: 0 8px;
    border: 2px solid #f59e0b; border-radius: 8px; background: #fff;
    color: #9a3412; font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif;
    font-size: 14px; font-weight: 800; cursor: pointer;
}
.sc4k-ra-missing-jump:hover { background: #ffedd5; }

.sc4k-questions-wrap {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    padding-right: 2px;
    margin-bottom: 8px;
}
.sc4k-q-card {
    display: none;
    animation: scRaFadeIn .2s ease;
    min-height: 100%;
}
.sc4k-q-card.active { display: block; }
.sc4k-ra-quiz-footer {
    flex-shrink: 0;
    margin-top: auto;
    padding-top: 8px;
    border-top: 1.5px solid #ede9fe;
    background: #fff;
}
@keyframes scRaFadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sc4k-q-num  { font-size: 11px; font-weight: 800; color: #7c6aaa; text-transform: uppercase; letter-spacing: .07em; margin-bottom: 6px; }
.sc4k-q-text {
    font-family: 'Comic Neue', 'Baloo 2', cursive, sans-serif;
    font-size: 17px; font-weight: 700; color: #1e1b4b;
    margin: 0 0 14px; line-height: 1.4;
}

.sc4k-mcq-opts { display: flex; flex-direction: column; gap: 10px; }
.sc4k-opt-label {
    display: flex; align-items: flex-start; gap: 10px;
    border: 2px solid #e2d9fc; border-radius: 12px; padding: 12px 14px;
    cursor: pointer; transition: all .15s; font-size: 15px; font-weight: 600; color: #1e1b4b;
}
.sc4k-opt-label:hover { border-color: #cebcfc; background: #faf9ff; }
.sc4k-opt-label input[type=radio] { accent-color: #4f3c86; width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; }
.sc4k-opt-label.selected { border-color: #4f3c86; background: #ede9fe; }
.sc4k-opt-label.correct  { border-color: #059669; background: #d1fae5; color: #065f46; }
.sc4k-opt-label.wrong    { border-color: #dc2626; background: #fee2e2; color: #991b1b; }

.sc4k-textarea {
    width: 100%; border: 2px solid #e2d9fc; border-radius: 12px; padding: 12px 14px;
    font-family: inherit; font-size: 15px; color: #1e1b4b; line-height: 1.6;
    box-sizing: border-box; outline: none; resize: vertical; min-height: 120px;
}
.sc4k-textarea:focus { border-color: #4f3c86; }

.sc4k-tf-row { display: flex; flex-direction: column; gap: 10px; }
.sc4k-tf-btn {
    border: 2px solid #e2d9fc; border-radius: 12px; padding: 14px;
    font-family: 'Comic Neue', 'Baloo 2', cursive, sans-serif; font-size: 15px; font-weight: 800;
    cursor: pointer; background: #fff; color: #1e1b4b !important; transition: all .15s; text-align: left;
}
.sc4k-tf-btn:hover   { border-color: #cebcfc; background: #faf9ff; color: #1e1b4b !important; }
.sc4k-tf-btn.sel     { border-color: #4f3c86; background: #ede9fe; color: #4f3c86 !important; }
.sc4k-tf-btn.correct { border-color: #059669; background: #d1fae5; color: #065f46; }
.sc4k-tf-btn.wrong   { border-color: #dc2626; background: #fee2e2; color: #991b1b; }

.sc4k-dd-area {
    display: flex; flex-direction: column; gap: 18px;
}
.sc4k-dd-section-title {
    font-size: 11px; font-weight: 800; color: #7c6aaa;
    text-transform: uppercase; letter-spacing: .06em; margin: 0 0 10px;
}
.sc4k-dd-words-bank {
    display: flex; flex-wrap: wrap; gap: 10px;
}
.sc4k-dd-meanings-list {
    display: flex; flex-direction: column; gap: 12px;
}
.sc4k-dd-item {
    background: #ede9fe; border: 2px dashed #cebcfc; border-radius: 10px;
    padding: 12px 16px; margin: 0; font-size: 14px; font-weight: 700;
    color: #4f3c86; cursor: grab; user-select: none; text-align: center;
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 48px; box-sizing: border-box; flex: 0 0 auto;
}
.sc4k-dd-item.dragging { opacity: .5; }
.sc4k-dd-item.selected { border-style: solid; border-color: #4f3c86; background: #4f3c86; color: #fff; }
.sc4k-dd-item.placed { opacity: .45; }
.sc4k-dd-hint { font-size: 13px; font-weight: 700; color: #7c6aaa; margin: 0 0 10px; }
.sc4k-dd-drop { cursor: pointer; }
.sc4k-dd-drop {
    background: #f9f7ff; border: 2px dashed #e2d9fc; border-radius: 10px;
    padding: 10px 14px; margin: 0; min-height: 64px;
    font-size: 13px; font-weight: 700; color: #94a3b8; text-align: center;
    display: flex; flex-direction: column; align-items: stretch; justify-content: center;
    gap: 6px; box-sizing: border-box; flex: 1;
}
.sc4k-dd-drop.over   { border-color: #4f3c86; background: #ede9fe; }
.sc4k-dd-drop.filled { color: #4f3c86; background: #ede9fe; border-style: solid; border-color: #cebcfc; }
.sc4k-dd-match-label { font-size: 13px; font-weight: 700; color: #7c6aaa; line-height: 1.35; }
.sc4k-dd-slot {
    display: block; width: 100%; box-sizing: border-box;
    border: 1.5px dashed #cebcfc; border-radius: 8px; padding: 8px;
    font-size: 13px; font-weight: 800; color: #94a3b8; background: #fff;
}
.sc4k-dd-drop.filled .sc4k-dd-slot { color: #4f3c86; border-style: solid; background: #f5f3ff; }

.sc4k-seq-list { display: flex; flex-direction: column; gap: 10px; }
.sc4k-seq-item {
    display: flex; align-items: center; gap: 10px;
    background: #f9f7ff; border: 2px solid #e2d9fc; border-radius: 12px; padding: 10px 12px;
}
.sc4k-seq-item.seq-correct { border-color: #059669; background: #d1fae5; }
.sc4k-seq-item.seq-wrong { border-color: #dc2626; background: #fee2e2; }
.sc4k-seq-text { flex: 1; font-size: 15px; font-weight: 700; color: #1e1b4b; line-height: 1.4; }
.sc4k-seq-move {
    width: 36px; height: 36px; border: 2px solid #e2d9fc; border-radius: 10px;
    background: #fff; font-size: 16px; font-weight: 800; color: #4f3c86; cursor: pointer;
}
.sc4k-seq-move:hover { border-color: #cebcfc; background: #ede9fe; }
.sc4k-seq-move:disabled { opacity: .35; cursor: default; }
.sc4k-seq-hint { font-size: 13px; font-weight: 700; color: #7c6aaa; margin: 0 0 10px; }

.sc4k-ra-nav {
    display: flex; justify-content: space-between; align-items: center;
    gap: 12px; margin-top: 8px; padding-top: 0; border-top: none;
}
.sc4k-ra-submit-ready {
    display: none; margin: 0 0 8px; padding: 10px 12px;
    background: linear-gradient(180deg, #fff7ed 0%, #ffedd5 100%);
    border: 2px solid #fdba74; border-radius: 12px; text-align: center;
    animation: sc4k-submit-in .35s ease;
}
.sc4k-ra-submit-ready.visible { display: block; }
@keyframes sc4k-submit-in {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.sc4k-ra-submit-ready-msg {
    font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif;
    font-size: 16px; font-weight: 700; color: #9a3412; margin: 0 0 12px; line-height: 1.45;
}
.sc4k-nav-btn.submit {
    background: #f16434; color: #fff; width: 100%; max-width: 300px;
    box-shadow: 0 4px 14px rgba(241,100,52,.35);
    font-size: 17px; padding: 14px 24px;
}
.sc4k-nav-btn.submit:hover { background: #ea580c; }
.sc4k-nav-btn.submit:disabled { opacity: .55; cursor: not-allowed; }
.sc4k-nav-btn {
    border: none; border-radius: 12px; padding: 12px 22px;
    font-family: 'Comic Neue', 'Baloo 2', cursive, sans-serif; font-size: 15px; font-weight: 800;
    cursor: pointer; transition: all .15s;
}
.sc4k-nav-btn.back {
    background: #fff; color: #4f3c86; border: 2px solid #cebcfc;
}
.sc4k-nav-btn.back:disabled { opacity: .4; cursor: not-allowed; }
.sc4k-nav-btn.next {
    background: #4f3c86; color: #fff;
    box-shadow: 0 4px 14px rgba(79,60,134,.25);
    margin-left: auto;
}
.sc4k-nav-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

.sc4k-results {
    display: none; text-align: center; padding: 12px 4px 8px;
}
.sc4k-results.visible { display: block; }
.sc4k-score-circle {
    width: 100px; height: 100px; border-radius: 50%;
    background: linear-gradient(135deg, #4f3c86, #7c5cbf);
    display: flex; align-items: center; justify-content: center;
    margin: 0 auto 16px;
}
.sc4k-score-num { font-size: 32px; font-weight: 900; color: #fff; }
.sc4k-score-ttl { font-size: 20px; font-weight: 900; color: #4f3c86; margin-bottom: 6px; }
.sc4k-score-sub { font-size: 14px; color: #7c6aaa; font-weight: 600; margin-bottom: 20px; }
.sc4k-results-btn {
    display: inline-block; background: #4f3c86; color: #fff;
    padding: 10px 24px; border-radius: 12px; font-size: 14px; font-weight: 800;
    text-decoration: none; margin: 4px;
}
.sc4k-results-btn.ghost { background: #fff; color: #4f3c86; border: 2px solid #cebcfc; }
@media(max-width:1024px){
    .sc4k-q-pill, .sc4k-seq-move, .sc4k-ra-missing-jump { min-width: 44px; height: 44px; }
    .sc4k-ra-back { min-height: 44px; margin-bottom: 8px; }
    .sc4k-ra-nav .sc4k-nav-btn,
    .sc4k-modal-start,
    .sc4k-modal-ok { min-height: 44px; }
}
@media(max-width:600px){
    .sc4k-results-btn { display: block; margin: 8px 0; min-height: 44px; box-sizing: border-box; }
    .sc4k-modal-box { max-width: calc(100vw - 24px); max-height: calc(100vh - 24px); overflow-y: auto; padding: 28px 20px 22px; }
}

.sc4k-modal-overlay {
    display: none; position: fixed; inset: 0; z-index: 999999;
    background: rgba(30,27,75,0.72); backdrop-filter: blur(6px);
    align-items: center; justify-content: center;
}
.sc4k-modal-overlay.open { display: flex; }
.sc4k-modal-box {
    background: #fff; border-radius: 28px; padding: 36px 32px 28px;
    max-width: 400px; width: 90%; text-align: center;
    box-shadow: 0 24px 64px rgba(79,60,134,0.25);
}
.sc4k-modal-ttl {
    font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif;
    font-size: 22px; font-weight: 800; color: #4f3c86; margin-bottom: 8px;
}
.sc4k-modal-msg {
    font-family: 'Comic Neue', 'Baloo 2', cursive, sans-serif;
    font-size: 16px; font-weight: 600; color: #7c6aaa; margin-bottom: 16px; line-height: 1.5;
}
.sc4k-modal-jumps {
    display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 16px;
}
.sc4k-modal-jump {
    min-width: 44px; height: 44px; padding: 0 12px;
    border: 2.5px solid #fbbf24; border-radius: 12px; background: #fffbeb;
    color: #92400e; font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif;
    font-size: 17px; font-weight: 800; cursor: pointer; transition: all .15s;
}
.sc4k-modal-jump:hover { background: #fef3c7; border-color: #f59e0b; }
.sc4k-modal-start {
    display: block; width: 100%; margin-bottom: 10px;
    background: #4f3c86; color: #fff; border: none; border-radius: 14px;
    padding: 12px 20px; font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif;
    font-size: 16px; font-weight: 800; cursor: pointer;
}
.sc4k-modal-ok {
    background: #f16434; color: #fff; border: none; border-radius: 14px;
    padding: 12px 36px; font-family: 'Comic Neue', 'Baloo 2', cursive, sans-serif; font-size: 15px;
    font-weight: 800; cursor: pointer;
}
.sc4k-submit-overlay {
    display: none; position: fixed; inset: 0; z-index: 1000000;
    background: rgba(30,27,75,0.78); backdrop-filter: blur(6px);
    align-items: center; justify-content: center;
}
.sc4k-submit-overlay.open { display: flex; }
.sc4k-submit-box {
    background: #fff; border-radius: 24px; padding: 32px 28px; max-width: 340px; width: 90%;
    text-align: center; box-shadow: 0 24px 64px rgba(79,60,134,0.28);
}
.sc4k-submit-spinner {
    width: 44px; height: 44px; border: 4px solid #e2d9fc; border-top-color: #4f3c86;
    border-radius: 50%; animation: sc4k-spin 0.8s linear infinite; margin: 0 auto 16px;
}
@keyframes sc4k-spin { to { transform: rotate(360deg); } }
.sc4k-submit-ttl { font-size: 18px; font-weight: 900; color: #4f3c86; margin-bottom: 8px; }
.sc4k-submit-msg { font-size: 14px; font-weight: 600; color: #7c6aaa; line-height: 1.5; }
.sc4k-review-wrap {
    margin: 0 0 20px; text-align: left;
    font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif;
}
.sc4k-review-wrap h4 {
    font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif;
    font-size: 20px; font-weight: 800; color: #4f3c86; margin: 0 0 14px; text-align: center;
}
.sc4k-review-tabs {
    display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 16px;
}
.sc4k-review-tab {
    border: 2.5px solid #cebcfc; background: #fff; color: #4f3c86;
    padding: 12px 22px; border-radius: 99px; font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif;
    font-size: 17px; font-weight: 800; cursor: pointer; transition: all .15s; min-height: 48px;
}
.sc4k-review-tab:hover { border-color: #a78bfa; background: #faf9ff; }
.sc4k-review-tab.active {
    background: #4f3c86; color: #fff; border-color: #4f3c86;
    box-shadow: 0 4px 14px rgba(79,60,134,.25);
}
.sc4k-review-list {
    max-height: 420px; overflow-y: auto; padding-right: 4px;
}
.sc4k-review-item {
    background: #faf9ff; border: 2px solid #ede9fe; border-radius: 16px;
    padding: 14px 16px; margin-bottom: 12px; font-size: 16px; line-height: 1.55;
    font-family: 'Comic Neue', 'Baloo 2', cursive, sans-serif;
}
.sc4k-review-item.is-hidden { display: none; }
.sc4k-review-item.ok { border-color: #a7f3d0; background: #f8fffb; }
.sc4k-review-item.wrong { border-color: #fecaca; background: #fffafa; }
.sc4k-review-item.warn { border-color: #fde68a; background: #fffdf5; }
.sc4k-review-head {
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px;
}
.sc4k-review-head strong {
    color: #4f3c86; font-size: 16px; font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif;
}
.sc4k-review-type { font-size: 14px; font-weight: 700; color: #7c6aaa; }
.sc4k-review-badge {
    margin-left: auto; font-size: 14px; font-weight: 800;
    padding: 5px 12px; border-radius: 99px;
    font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif;
}
.sc4k-review-badge.ok { background: #d1fae5; color: #065f46; }
.sc4k-review-badge.wrong { background: #fee2e2; color: #991b1b; }
.sc4k-review-q {
    font-size: 16px; font-weight: 700; color: #4f3c86; margin-bottom: 12px; line-height: 1.5;
}
.sc4k-review-label {
    display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; color: #7c6aaa; margin-bottom: 6px;
    font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif;
}
.sc4k-review-your-text {
    display: block; font-size: 16px; font-weight: 700; color: #1e1b4b; line-height: 1.55;
    background: #fff; border: 2px solid #ddd6fe; border-radius: 14px;
    padding: 11px 14px; margin-bottom: 10px;
}
.sc4k-review-feedback-bubble {
    border-radius: 18px; padding: 12px 16px;
}
.sc4k-review-feedback-bubble.ok {
    background: #1e3a5f; color: #e0f2fe;
}
.sc4k-review-feedback-bubble.wrong {
    background: #4c1d95; color: #f3e8ff;
}
.sc4k-review-feedback-bubble.warn {
    background: #92400e; color: #fef3c7;
}
.sc4k-review-feedback-label {
    display: block; font-size: 12px; font-weight: 800; letter-spacing: .06em;
    text-transform: uppercase; opacity: .9; margin-bottom: 6px;
    font-family: 'Baloo 2', 'Comic Neue', cursive, sans-serif;
}
.sc4k-review-feedback-text {
    font-size: 16px; font-weight: 600; line-height: 1.55; margin: 0;
}
.sc4k-review-match-list {
    list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px;
}
.sc4k-review-match-row {
    display: flex; align-items: flex-start; gap: 8px; font-size: 15px; font-weight: 600;
    line-height: 1.5; padding: 10px 12px; border-radius: 12px; border: 1px solid transparent;
}
.sc4k-review-match-row.ok {
    background: #ecfdf5; border-color: #a7f3d0; color: #065f46;
}
.sc4k-review-match-row.wrong {
    background: #fff1f2; border-color: #fecdd3; color: #9f1239;
}
.sc4k-review-match-icon {
    flex-shrink: 0; width: 18px; font-weight: 900; line-height: 1.45;
}
.sc4k-review-match-word { font-weight: 800; color: inherit; }
.sc4k-review-match-note {
    display: block; margin-top: 4px; font-size: 12px; font-weight: 600; opacity: .92;
}
.sc4k-review-feedback-summary {
    margin: 0 0 10px; font-size: 16px; font-weight: 700; line-height: 1.5;
}
.sc4k-review-feedback-list {
    list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px;
}
.sc4k-review-feedback-list li {
    font-size: 15px; font-weight: 600; line-height: 1.5; margin: 0;
}

/* Read & Answer — report card */
.sc4k-ra-report {
	max-width: 820px;
	margin: 0 auto;
	padding: calc(var(--sc4k-header-h, 100px) + 20px) 16px 48px;
	font-family: 'Fredoka', system-ui, sans-serif;
	color: #1e3a4c;
	box-sizing: border-box;
}
.sc4k-ra-report__hero {
	background: linear-gradient(145deg, #e6fffa 0%, #ccfbf1 55%, #99f6e4 100%);
	border-radius: 28px;
	padding: 28px 24px;
	margin-bottom: 22px;
	box-shadow: 0 8px 28px rgba(13, 148, 136, 0.12);
}
.sc4k-ra-report__hero-badge {
	display: inline-block;
	font-size: 14px;
	font-weight: 600;
	color: #0f766e;
	background: rgba(255,255,255,0.75);
	padding: 6px 12px;
	border-radius: 999px;
	margin-bottom: 10px;
}
.sc4k-ra-report__title {
	margin: 0 0 8px;
	font-size: clamp(24px, 4vw, 32px);
	font-weight: 700;
	color: #134e4a;
	line-height: 1.2;
}
.sc4k-ra-report__sub {
	margin: 0 0 18px;
	font-size: 15px;
	font-weight: 500;
	color: #0f766e;
	opacity: 0.9;
}
.sc4k-ra-report__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}
.sc4k-ra-report__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 10px 18px;
	border-radius: 999px;
	font-weight: 600;
	font-size: 14px;
	text-decoration: none !important;
	transition: transform 0.15s, box-shadow 0.15s;
}
.sc4k-ra-report__btn:hover { transform: translateY(-1px); }
.sc4k-ra-report__btn--primary {
	background: #0d9488;
	color: #fff !important;
	box-shadow: 0 4px 14px rgba(13, 148, 136, 0.35);
}
.sc4k-ra-report__btn--ghost {
	background: rgba(255,255,255,0.85);
	color: #0f766e !important;
	border: 1px solid #99f6e4;
}
.sc4k-ra-report__summary {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
	margin-bottom: 20px;
}
@media (max-width: 560px) {
	.sc4k-ra-report__summary { grid-template-columns: 1fr; }
}
.sc4k-ra-report__stat {
	background: #fff;
	border-radius: 18px;
	padding: 16px;
	text-align: center;
	border: 2px solid #ccfbf1;
	box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}
.sc4k-ra-report__stat-num {
	display: block;
	font-size: 28px;
	font-weight: 700;
	color: #0d9488;
	line-height: 1.1;
}
.sc4k-ra-report__stat-label {
	font-size: 13px;
	font-weight: 500;
	color: #64748b;
}
.sc4k-ra-report__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
}
.sc4k-ra-report__card {
	background: #fff;
	border-radius: 22px;
	padding: 18px 18px 14px;
	border: 2px solid #e2e8f0;
	box-shadow: 0 6px 18px rgba(15, 23, 42, 0.05);
}
.sc4k-ra-report__card-top {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
	gap: 12px;
	margin-bottom: 14px;
}
.sc4k-ra-report__grade {
	display: inline-block;
	font-size: 11px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	color: #0f766e;
	background: #ccfbf1;
	padding: 3px 8px;
	border-radius: 8px;
	margin-bottom: 6px;
}
.sc4k-ra-report__card-title {
	margin: 0 0 4px;
	font-size: 18px;
	font-weight: 700;
	color: #1e293b;
}
.sc4k-ra-report__meta {
	margin: 0;
	font-size: 13px;
	color: #64748b;
}
.sc4k-ra-report__retry {
	flex-shrink: 0;
	font-size: 13px;
	font-weight: 600;
	color: #0d9488 !important;
	text-decoration: none !important;
	padding: 8px 12px;
	border-radius: 999px;
	background: #f0fdfa;
	border: 1px solid #99f6e4;
}
@media (max-width: 1024px) {
	.sc4k-ra-report__retry { display: inline-flex; align-items: center; min-height: 44px; box-sizing: border-box; }
}
.sc4k-ra-report__scores {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 10px;
}
@media (max-width: 480px) {
	.sc4k-ra-report__scores { grid-template-columns: 1fr; }
	.sc4k-ra-report__card-top { flex-direction: column; }
}
.sc4k-ra-report__score {
	border-radius: 16px;
	padding: 12px 14px;
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.sc4k-ra-report__score--latest {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
}
.sc4k-ra-report__score--best {
	background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
	border: 1px solid #6ee7b7;
}
.sc4k-ra-report__score-label {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #64748b;
}
.sc4k-ra-report__score--best .sc4k-ra-report__score-label { color: #047857; }
.sc4k-ra-report__score-value {
	font-size: 22px;
	font-weight: 700;
	color: #0f172a;
}
.sc4k-ra-report__pct {
	font-size: 14px;
	font-weight: 600;
	color: #64748b;
}
.sc4k-ra-report__score-date {
	font-size: 12px;
	color: #94a3b8;
}
.sc4k-ra-report__history {
	margin-top: 12px;
	border-top: 1px dashed #e2e8f0;
	padding-top: 8px;
}
.sc4k-ra-report__history summary {
	cursor: pointer;
	font-size: 13px;
	font-weight: 600;
	color: #0f766e;
	padding: 4px 0;
}
.sc4k-ra-report__history-list {
	list-style: none;
	margin: 8px 0 0;
	padding: 0;
}
.sc4k-ra-report__history-list li {
	display: grid;
	grid-template-columns: 40px 1fr auto;
	gap: 8px;
	align-items: center;
	padding: 6px 0;
	font-size: 13px;
	border-bottom: 1px solid #f1f5f9;
	color: #334155;
}
.sc4k-ra-report__hist-n {
	font-weight: 700;
	color: #94a3b8;
}
.sc4k-ra-report__hist-date {
	color: #94a3b8;
	font-size: 12px;
}
.sc4k-ra-report__empty {
	text-align: center;
	padding: 40px 20px;
	background: #fff;
	border-radius: 22px;
	border: 2px dashed #99f6e4;
	color: #0f766e;
}
.sc4k-ra-report__empty p { margin: 0 0 16px; font-size: 16px; font-weight: 500; }
