* {
    font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    word-break: keep-all !important;
}

body {
    background: #f0f4f8;
    color: #1e293b;
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
h4,
h5,
h6,
.itm,
.so {
    word-wrap: normal;
}

/* V2: 지시문 스타일 */
section h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #0f172a;
    letter-spacing: -0.01em;
    margin-bottom: 0.4rem;
}
section h3 {
    font-size: 0.9rem;
    color: #475569;
}
section h3 small {
    font-size: 0.82rem;
    color: #64748b;
    line-height: 1.7;
}

/* wahl */
#wahl {
    position: fixed;
    left: 0;
    bottom: 0;
    z-index: 9999;
    width: 100%;
    background: rgba(255, 255, 255, 0.92) !important;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
}

.wahl_title {
    font-weight: 800 !important;
    color: white;
    border-radius: 10px !important;
    text-align: center !important;
    font-size: 1.1rem;
    line-height: 1.4;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    padding: 0.4rem 0;
}

/* TIPP */
.tipp {
    font-weight: bolder !important;
    border-radius: 0.5rem !important;
    background-color: #c6ff00 !important;
    color: black !important;
    padding: 0.25rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin: 0.25rem !important;
    border: 2px solid #dee2e6 !important;
    border-color: #28a745 !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* GR */
.gr {
    font-weight: bolder !important;
    border-radius: 0.5rem !important;
    background-color: #17a2b8 !important;
    color: white !important;
    padding: 0.25rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin: 0.25rem !important;
    border: 2px solid #dee2e6 !important;
    border-color: #007bff !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* prap */
.prap {
    font-weight: bolder !important;
    border-radius: 0.5rem !important;
    background-color: #ff008f !important;
    color: white !important;
    padding: 0.25rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    margin: 0.25rem !important;
    border: 2px solid #dee2e6 !important;
    border-color: #8300ff !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
}

/* 정답 표시 */
.ca {
    color: white !important;
    padding: 0.3rem 0.7rem !important;
    margin: 0.25rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    box-shadow: 0 2px 6px rgba(34, 197, 94, 0.25);
}

/* 오답 표시 */
.wa {
    color: white !important;
    padding: 0.3rem 0.7rem !important;
    margin: 0.25rem !important;
    font-weight: 600 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.25);
}

/* 정답 힌트 */
.ra {
    color: #1e293b !important;
    padding: 0.3rem 0.7rem !important;
    margin: 0.25rem !important;
    font-weight: 700 !important;
    border-radius: 8px !important;
    background: linear-gradient(135deg, #fbbf24, #f59e0b) !important;
    box-shadow: 0 2px 6px rgba(245, 158, 11, 0.25);
}

/* 문장 속 단어 강조 */
.wd_inline {
    border: 1px solid #dee2e6 !important;
    border-color: #6c757d !important;
    border-radius: 0.25rem !important;
    background-color: #f8f9fa !important;
    padding: 0.25rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    font-weight: bold !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.0625) !important;
}

.wd_inline_red {
    border: 1px solid #dee2e6 !important;
    border-color: #6c757d !important;
    border-radius: 0.25rem !important;
    background-color: #f8f9fa !important;
    padding: 0.25rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    font-weight: bold !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.0625) !important;
    color: red !important;
}

.wd_inline_inverted {
    color: white !important;
    border: 1px solid #dee2e6 !important;
    border-color: black !important;
    background-color: #6c757d !important;
    margin: 0.25rem !important;
    padding: 0.25rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    font-weight: bold !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.0625) !important;
}

.wd {
    border: 1px solid #dee2e6 !important;
    border-color: #6c757d !important;
    border-radius: 0.25rem !important;
    background-color: #f8f9fa !important;
    padding: 0.25rem !important;
    padding-left: 0.5rem !important;
    padding-right: 0.5rem !important;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.0625) !important;
}

/* 줄 간격 250% */
.lh250 {
    line-height: 250%;
}

/* 줄 간격 350% */
.lh350 {
    line-height: 350%;
}

/* 첫 줄 -1.5em */
.ti-15 {
    text-indent: -1.5em;
}

/* 첫 줄 -1em */
.ti-1 {
    text-indent: -1em;
}

/* 첫 줄 -2em */
.ti-2 {
    text-indent: -2em;
}

/* 위로 올리자 */
.t-6 {
    position: relative;
    top: -6px;
}

.t_add_6 {
    position: relative !important;
    top: 6px !important;
}

.t-35 {
    position: relative;
    top: -35px;
}

.t_add_3 {
    position: relative !important;
    top: 3px !important;
}

.t-3 {
    position: relative;
    top: -3px;
}

/* 한 쪽만 살리기 */
.border-top-only {
    border-right: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
}

.border-right-only {
    border-top: 0 !important;
    border-bottom: 0 !important;
    border-left: 0 !important;
}

.border-bottom-only {
    border-top: 0 !important;
    border-right: 0 !important;
    border-left: 0 !important;
}

.border-left-only {
    border-top: 0 !important;
    border-right: 0 !important;
    border-bottom: 0 !important;
}

/* 문장 내 보기 문제 테두리 없애기 */
.cbtn {
    border: 0 !important;
}

/* gray */
.table-gray,
.table-gray > th,
.table-gray > td {
    background-color: #dbdbdb;
}

.table-gray th,
.table-gray td,
.table-gray thead th,
.table-gray tbody + tbody {
    border-color: #bcbcbc;
}

.table-hover .table-gray:hover {
    background-color: #cfcfcf;
}

.table-hover .table-gray:hover > td,
.table-hover .table-gray:hover > th {
    background-color: #cfcfcf;
}

.btn-gray {
    color: #fff;
    background-color: #7f7f7f;
    border-color: #7f7f7f;
}

.btn-gray:hover {
    color: #fff;
    background-color: #6c6c6c;
    border-color: #666666;
}

.btn-gray:focus,
.btn-gray.focus {
    box-shadow: 0 0 0 0.2rem rgba(146, 146, 146, 0.5);
}

.btn-gray.disabled,
.btn-gray:disabled {
    color: #fff;
    background-color: #7f7f7f;
    border-color: #7f7f7f;
}

.btn-gray:not(:disabled):not(.disabled):active,
.btn-gray:not(:disabled):not(.disabled).active,
.show > .btn-gray.dropdown-toggle {
    color: #fff;
    background-color: #666666;
    border-color: #5f5f5f;
}

.btn-gray:not(:disabled):not(.disabled):active:focus,
.btn-gray:not(:disabled):not(.disabled).active:focus,
.show > .btn-gray.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(146, 146, 146, 0.5);
}

.btn-outline-gray {
    color: #7f7f7f;
    border-color: #7f7f7f;
}

.btn-outline-gray:hover {
    color: #fff;
    background-color: #7f7f7f;
    border-color: #7f7f7f;
}

.btn-outline-gray:focus,
.btn-outline-gray.focus {
    box-shadow: 0 0 0 0.2rem rgba(219, 219, 219, 0.5);
}

.btn-outline-gray.disabled,
.btn-outline-gray:disabled {
    color: #7f7f7f;
    background-color: transparent;
}

.btn-outline-gray:not(:disabled):not(.disabled):active,
.btn-outline-gray:not(:disabled):not(.disabled).active,
.show > .btn-outline-gray.dropdown-toggle {
    color: #fff;
    background-color: #7f7f7f;
    border-color: #7f7f7f;
}

.btn-outline-gray:not(:disabled):not(.disabled):active:focus,
.btn-outline-gray:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-gray.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(219, 219, 219, 0.5);
}

.bg-gray {
    color: #fff;
    background-color: #7f7f7f;
}

a.bg-gray:hover,
a.bg-gray:focus {
    color: #fff;
    background-color: #666666;
}

a.bg-gray:focus,
a.bg-gray.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(219, 219, 219, 0.5);
}

.alert-gray {
    color: #424242;
    background-color: #e5e5e5;
    border-color: #dbdbdb;
}

.alert-gray hr {
    border-top-color: #cfcfcf;
}

.alert-gray .alert-link {
    color: #292929;
}

.list-group-item-gray {
    color: #424242;
    background-color: #dbdbdb;
}

.list-group-item-gray.list-group-item-action:hover,
.list-group-item-gray.list-group-item-action:focus {
    color: #424242;
    background-color: #cfcfcf;
}

.list-group-item-gray.list-group-item-action.active {
    color: #fff;
    background-color: #424242;
    border-color: #424242;
}

.bg-gray {
    background-color: #7f7f7f !important;
}

a.bg-gray:hover,
a.bg-gray:focus,
button.bg-gray:hover,
button.bg-gray:focus {
    background-color: #666666 !important;
}

.border-gray {
    border-color: #7f7f7f !important;
}

.text-gray {
    color: #7f7f7f !important;
}

a.text-gray:hover,
a.text-gray:focus {
    color: #0056b3 !important;
}

/* purple */
.table-purple,
.table-purple > th,
.table-purple > td {
    background-color: #ddb8ff;
}

.table-purple th,
.table-purple td,
.table-purple thead th,
.table-purple tbody + tbody {
    border-color: #bf7aff;
}

.table-hover .table-purple:hover {
    background-color: #d19fff;
}

.table-hover .table-purple:hover > td,
.table-hover .table-purple:hover > th {
    background-color: #d19fff;
}

.btn-purple {
    color: #fff;
    background-color: #8300ff;
    border-color: #8300ff;
}

.btn-purple:hover {
    color: #fff;
    background-color: #7000d9;
    border-color: #6900cc;
}

.btn-purple:focus,
.btn-purple.focus {
    box-shadow: 0 0 0 0.2rem rgba(150, 38, 255, 0.5);
}

.btn-purple.disabled,
.btn-purple:disabled {
    color: #fff;
    background-color: #8300ff;
    border-color: #8300ff;
}

.btn-purple:not(:disabled):not(.disabled):active,
.btn-purple:not(:disabled):not(.disabled).active,
.show > .btn-purple.dropdown-toggle {
    color: #fff;
    background-color: #6900cc;
    border-color: #6200bf;
}

.btn-purple:not(:disabled):not(.disabled):active:focus,
.btn-purple:not(:disabled):not(.disabled).active:focus,
.show > .btn-purple.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(150, 38, 255, 0.5);
}

.btn-outline-purple {
    color: #8300ff;
    border-color: #8300ff;
}

.btn-outline-purple:hover {
    color: #fff;
    background-color: #8300ff;
    border-color: #8300ff;
}

.btn-outline-purple:focus,
.btn-outline-purple.focus {
    box-shadow: 0 0 0 0.2rem rgba(221, 184, 255, 0.5);
}

.btn-outline-purple.disabled,
.btn-outline-purple:disabled {
    color: #8300ff;
    background-color: transparent;
}

.btn-outline-purple:not(:disabled):not(.disabled):active,
.btn-outline-purple:not(:disabled):not(.disabled).active,
.show > .btn-outline-purple.dropdown-toggle {
    color: #fff;
    background-color: #8300ff;
    border-color: #8300ff;
}

.btn-outline-purple:not(:disabled):not(.disabled):active:focus,
.btn-outline-purple:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-purple.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(221, 184, 255, 0.5);
}

.bg-purple {
    color: #fff;
    background-color: #8300ff;
}

a.bg-purple:hover,
a.bg-purple:focus {
    color: #fff;
    background-color: #6900cc;
}

a.bg-purple:focus,
a.bg-purple.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(221, 184, 255, 0.5);
}

.alert-purple {
    color: #450085;
    background-color: #e6ccff;
    border-color: #ddb8ff;
}

.alert-purple hr {
    border-top-color: #d19fff;
}

.alert-purple .alert-link {
    color: #2b0052;
}

.list-group-item-purple {
    color: #450085;
    background-color: #ddb8ff;
}

.list-group-item-purple.list-group-item-action:hover,
.list-group-item-purple.list-group-item-action:focus {
    color: #450085;
    background-color: #d19fff;
}

.list-group-item-purple.list-group-item-action.active {
    color: #fff;
    background-color: #450085;
    border-color: #450085;
}

.bg-purple {
    background-color: #8300ff !important;
}

a.bg-purple:hover,
a.bg-purple:focus,
button.bg-purple:hover,
button.bg-purple:focus {
    background-color: #6900cc !important;
}

.border-purple {
    border-color: #8300ff !important;
}

.text-purple {
    color: #8300ff !important;
}

a.text-purple:hover,
a.text-purple:focus {
    color: #0056b3 !important;
}

/* orange */
.table-orange,
.table-orange > th,
.table-orange > td {
    background-color: #ffddb8;
}

.table-orange th,
.table-orange td,
.table-orange thead th,
.table-orange tbody + tbody {
    border-color: #ffbf7a;
}

.table-hover .table-orange:hover {
    background-color: #ffd19f;
}

.table-hover .table-orange:hover > td,
.table-hover .table-orange:hover > th {
    background-color: #ffd19f;
}

.btn-orange {
    color: #fff;
    background-color: #ff8300;
    border-color: #ff8300;
}

.btn-orange:hover {
    color: #fff;
    background-color: #d97000;
    border-color: #cc6900;
}

.btn-orange:focus,
.btn-orange.focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 150, 38, 0.5);
}

.btn-orange.disabled,
.btn-orange:disabled {
    color: #fff;
    background-color: #ff8300;
    border-color: #ff8300;
}

.btn-orange:not(:disabled):not(.disabled):active,
.btn-orange:not(:disabled):not(.disabled).active,
.show > .btn-orange.dropdown-toggle {
    color: #fff;
    background-color: #cc6900;
    border-color: #bf6200;
}

.btn-orange:not(:disabled):not(.disabled):active:focus,
.btn-orange:not(:disabled):not(.disabled).active:focus,
.show > .btn-orange.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 150, 38, 0.5);
}

.btn-outline-orange {
    color: #ff8300;
    border-color: #ff8300;
}

.btn-outline-orange:hover {
    color: #fff;
    background-color: #ff8300;
    border-color: #ff8300;
}

.btn-outline-orange:focus,
.btn-outline-orange.focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 221, 184, 0.5);
}

.btn-outline-orange.disabled,
.btn-outline-orange:disabled {
    color: #ff8300;
    background-color: transparent;
}

.btn-outline-orange:not(:disabled):not(.disabled):active,
.btn-outline-orange:not(:disabled):not(.disabled).active,
.show > .btn-outline-orange.dropdown-toggle {
    color: #fff;
    background-color: #ff8300;
    border-color: #ff8300;
}

.btn-outline-orange:not(:disabled):not(.disabled):active:focus,
.btn-outline-orange:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-orange.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 221, 184, 0.5);
}

.bg-orange {
    color: #fff;
    background-color: #ff8300;
}

a.bg-orange:hover,
a.bg-orange:focus {
    color: #fff;
    background-color: #cc6900;
}

a.bg-orange:focus,
a.bg-orange.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 221, 184, 0.5);
}

.alert-orange {
    color: #854500;
    background-color: #ffe6cc;
    border-color: #ffddb8;
}

.alert-orange hr {
    border-top-color: #ffd19f;
}

.alert-orange .alert-link {
    color: #522b00;
}

.list-group-item-orange {
    color: #854500;
    background-color: #ffddb8;
}

.list-group-item-orange.list-group-item-action:hover,
.list-group-item-orange.list-group-item-action:focus {
    color: #854500;
    background-color: #ffd19f;
}

.list-group-item-orange.list-group-item-action.active {
    color: #fff;
    background-color: #854500;
    border-color: #854500;
}

.bg-orange {
    background-color: #ff8300 !important;
}

a.bg-orange:hover,
a.bg-orange:focus,
button.bg-orange:hover,
button.bg-orange:focus {
    background-color: #cc6900 !important;
}

.border-orange {
    border-color: #ff8300 !important;
}

.text-orange {
    color: #ff8300 !important;
}

a.text-orange:hover,
a.text-orange:focus {
    color: #0056b3 !important;
}

/* gray-light */
.table-gray-light,
.table-gray-light > th,
.table-gray-light > td {
    background-color: #ededed;
}

.table-gray-light th,
.table-gray-light td,
.table-gray-light thead th,
.table-gray-light tbody + tbody {
    border-color: #dddddd;
}

.table-hover .table-gray-light:hover {
    background-color: #e7e7e7;
}

.table-hover .table-gray-light:hover > td,
.table-hover .table-gray-light:hover > th {
    background-color: #e7e7e7;
}

.btn-gray-light {
    color: #fff;
    background-color: #bfbfbf;
    border-color: #bfbfbf;
}

.btn-gray-light:hover {
    color: #fff;
    background-color: #b5b5b5;
    border-color: #b2b2b2;
}

.btn-gray-light:focus,
.btn-gray-light.focus {
    box-shadow: 0 0 0 0.2rem rgba(200, 200, 200, 0.5);
}

.btn-gray-light.disabled,
.btn-gray-light:disabled {
    color: #fff;
    background-color: #bfbfbf;
    border-color: #bfbfbf;
}

.btn-gray-light:not(:disabled):not(.disabled):active,
.btn-gray-light:not(:disabled):not(.disabled).active,
.show > .btn-gray-light.dropdown-toggle {
    color: #fff;
    background-color: #b2b2b2;
    border-color: #005cbf;
}

.btn-gray-light:not(:disabled):not(.disabled):active:focus,
.btn-gray-light:not(:disabled):not(.disabled).active:focus,
.show > .btn-gray-light.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(200, 200, 200, 0.5);
}

.btn-outline-gray-light {
    color: #bfbfbf;
    border-color: #bfbfbf;
}

.btn-outline-gray-light:hover {
    color: #fff;
    background-color: #bfbfbf;
    border-color: #bfbfbf;
}

.btn-outline-gray-light:focus,
.btn-outline-gray-light.focus {
    box-shadow: 0 0 0 0.2rem rgba(237, 237, 237, 0.5);
}

.btn-outline-gray-light.disabled,
.btn-outline-gray-light:disabled {
    color: #bfbfbf;
    background-color: transparent;
}

.btn-outline-gray-light:not(:disabled):not(.disabled):active,
.btn-outline-gray-light:not(:disabled):not(.disabled).active,
.show > .btn-outline-gray-light.dropdown-toggle {
    color: #fff;
    background-color: #bfbfbf;
    border-color: #bfbfbf;
}

.btn-outline-gray-light:not(:disabled):not(.disabled):active:focus,
.btn-outline-gray-light:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-gray-light.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(237, 237, 237, 0.5);
}

.bg-gray-light {
    color: #fff;
    background-color: #bfbfbf;
}

a.bg-gray-light:hover,
a.bg-gray-light:focus {
    color: #fff;
    background-color: #b2b2b2;
}

a.bg-gray-light:focus,
a.bg-gray-light.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(237, 237, 237, 0.5);
}

.alert-gray-light {
    color: #a0a0a0;
    background-color: #f2f2f2;
    border-color: #ededed;
}

.alert-gray-light hr {
    border-top-color: #e7e7e7;
}

.alert-gray-light .alert-link {
    color: #939393;
}

.list-group-item-gray-light {
    color: #a0a0a0;
    background-color: #ededed;
}

.list-group-item-gray-light.list-group-item-action:hover,
.list-group-item-gray-light.list-group-item-action:focus {
    color: #a0a0a0;
    background-color: #e7e7e7;
}

.list-group-item-gray-light.list-group-item-action.active {
    color: #fff;
    background-color: #a0a0a0;
    border-color: #a0a0a0;
}

.bg-gray-light {
    background-color: #bfbfbf !important;
}

a.bg-gray-light:hover,
a.bg-gray-light:focus,
button.bg-gray-light:hover,
button.bg-gray-light:focus {
    background-color: #b2b2b2 !important;
}

.border-gray-light {
    border-color: #bfbfbf !important;
}

.text-gray-light {
    color: #bfbfbf !important;
}

a.text-gray-light:hover,
a.text-gray-light:focus {
    color: #0056b3 !important;
}

/* pink */
.table-pink,
.table-pink > th,
.table-pink > td {
    background-color: #ffb8e0;
}

.table-pink th,
.table-pink td,
.table-pink thead th,
.table-pink tbody + tbody {
    border-color: #ff7ac5;
}

.table-hover .table-pink:hover {
    background-color: #ff9fd5;
}

.table-hover .table-pink:hover > td,
.table-hover .table-pink:hover > th {
    background-color: #ff9fd5;
}

.btn-pink {
    color: #fff;
    background-color: #ff008f;
    border-color: #ff008f;
}

.btn-pink:hover {
    color: #fff;
    background-color: #d9007a;
    border-color: #cc0073;
}

.btn-pink:focus,
.btn-pink.focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 38, 160, 0.5);
}

.btn-pink.disabled,
.btn-pink:disabled {
    color: #fff;
    background-color: #ff008f;
    border-color: #ff008f;
}

.btn-pink:not(:disabled):not(.disabled):active,
.btn-pink:not(:disabled):not(.disabled).active,
.show > .btn-pink.dropdown-toggle {
    color: #fff;
    background-color: #cc0073;
    border-color: #bf006b;
}

.btn-pink:not(:disabled):not(.disabled):active:focus,
.btn-pink:not(:disabled):not(.disabled).active:focus,
.show > .btn-pink.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 38, 160, 0.5);
}

.btn-outline-pink {
    color: #ff008f;
    border-color: #ff008f;
}

.btn-outline-pink:hover {
    color: #fff;
    background-color: #ff008f;
    border-color: #ff008f;
}

.btn-outline-pink:focus,
.btn-outline-pink.focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 184, 224, 0.5);
}

.btn-outline-pink.disabled,
.btn-outline-pink:disabled {
    color: #ff008f;
    background-color: transparent;
}

.btn-outline-pink:not(:disabled):not(.disabled):active,
.btn-outline-pink:not(:disabled):not(.disabled).active,
.show > .btn-outline-pink.dropdown-toggle {
    color: #fff;
    background-color: #ff008f;
    border-color: #ff008f;
}

.btn-outline-pink:not(:disabled):not(.disabled):active:focus,
.btn-outline-pink:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-pink.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 184, 224, 0.5);
}

.bg-pink {
    color: #fff;
    background-color: #ff008f;
}

a.bg-pink:hover,
a.bg-pink:focus {
    color: #fff;
    background-color: #cc0073;
}

a.bg-pink:focus,
a.bg-pink.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(255, 184, 224, 0.5);
}

.alert-pink {
    color: #85004b;
    background-color: #ffcce9;
    border-color: #ffb8e0;
}

.alert-pink hr {
    border-top-color: #ff9fd5;
}

.alert-pink .alert-link {
    color: #52002d;
}

.list-group-item-pink {
    color: #85004b;
    background-color: #ffb8e0;
}

.list-group-item-pink.list-group-item-action:hover,
.list-group-item-pink.list-group-item-action:focus {
    color: #85004b;
    background-color: #ff9fd5;
}

.list-group-item-pink.list-group-item-action.active {
    color: #fff;
    background-color: #85004b;
    border-color: #85004b;
}

.bg-pink {
    background-color: #ff008f !important;
}

a.bg-pink:hover,
a.bg-pink:focus,
button.bg-pink:hover,
button.bg-pink:focus {
    background-color: #cc0073 !important;
}

.border-pink {
    border-color: #ff008f !important;
}

.text-pink {
    color: #ff008f !important;
}

a.text-pink:hover,
a.text-pink:focus {
    color: #0056b3 !important;
}

/* lime */
.table-lime,
.table-lime > th,
.table-lime > td {
    background-color: #efffb8;
}

.table-lime th,
.table-lime td,
.table-lime thead th,
.table-lime tbody + tbody {
    border-color: #e1ff7a;
}

.table-hover .table-lime:hover {
    background-color: #5f5f5f;
}

.table-hover .table-lime:hover > td,
.table-hover .table-lime:hover > th {
    background-color: #5f5f5f;
}

.btn-lime {
    color: #fff;
    background-color: #c6ff00;
    border-color: #c6ff00;
}

.btn-lime:hover {
    color: #fff;
    background-color: #a9d900;
    border-color: #9fcc00;
}

.btn-lime:focus,
.btn-lime.focus {
    box-shadow: 0 0 0 0.2rem rgba(207, 255, 38, 0.5);
}

.btn-lime.disabled,
.btn-lime:disabled {
    color: #fff;
    background-color: #c6ff00;
    border-color: #c6ff00;
}

.btn-lime:not(:disabled):not(.disabled):active,
.btn-lime:not(:disabled):not(.disabled).active,
.show > .btn-lime.dropdown-toggle {
    color: #fff;
    background-color: #9fcc00;
    border-color: #94bf00;
}

.btn-lime:not(:disabled):not(.disabled):active:focus,
.btn-lime:not(:disabled):not(.disabled).active:focus,
.show > .btn-lime.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(207, 255, 38, 0.5);
}

.btn-outline-lime {
    color: #c6ff00;
    border-color: #c6ff00;
}

.btn-outline-lime:hover {
    color: #fff;
    background-color: #c6ff00;
    border-color: #c6ff00;
}

.btn-outline-lime:focus,
.btn-outline-lime.focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}

.btn-outline-lime.disabled,
.btn-outline-lime:disabled {
    color: #c6ff00;
    background-color: transparent;
}

.btn-outline-lime:not(:disabled):not(.disabled):active,
.btn-outline-lime:not(:disabled):not(.disabled).active,
.show > .btn-outline-lime.dropdown-toggle {
    color: #fff;
    background-color: #c6ff00;
    border-color: #c6ff00;
}

.btn-outline-lime:not(:disabled):not(.disabled):active:focus,
.btn-outline-lime:not(:disabled):not(.disabled).active:focus,
.show > .btn-outline-lime.dropdown-toggle:focus {
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}

.bg-lime {
    color: #fff;
    background-color: #c6ff00;
}

a.bg-lime:hover,
a.bg-lime:focus {
    color: #fff;
    background-color: #9fcc00;
}

a.bg-lime:focus,
a.bg-lime.focus {
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.5);
}

.alert-lime {
    color: #678500;
    background-color: #f4ffcc;
    border-color: #efffb8;
}

.alert-lime hr {
    border-top-color: #5f5f5f;
}

.alert-lime .alert-link {
    color: #3f5200;
}

.list-group-item-lime {
    color: #678500;
    background-color: #efffb8;
}

.list-group-item-lime.list-group-item-action:hover,
.list-group-item-lime.list-group-item-action:focus {
    color: #678500;
    background-color: #5f5f5f;
}

.list-group-item-lime.list-group-item-action.active {
    color: #fff;
    background-color: #678500;
    border-color: #678500;
}

.bg-lime {
    background-color: #c6ff00 !important;
}

a.bg-lime:hover,
a.bg-lime:focus,
button.bg-lime:hover,
button.bg-lime:focus {
    background-color: #9fcc00 !important;
}

.border-lime {
    border-color: #c6ff00 !important;
}

.text-lime {
    color: #c6ff00 !important;
}

a.text-lime:hover,
a.text-lime:focus {
    color: #0056b3 !important;
}

/* ========================================
   nagehtsQ Section Structure (nq-)
   Added: 2026-02-28
   ======================================== */
.nq-exercise {
    position: relative;
    background: #fff;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 4px 16px rgba(0, 0, 0, 0.04);
    padding: 1.5rem 1rem;
    margin: 0.75rem auto;
    max-width: 960px;
}

/* V2: 보기 섹션 */
.nq-wahl {
    border-radius: 16px !important;
    box-shadow: 0 -2px 12px rgba(0, 0, 0, 0.04);
}
.nq-instruction { margin-bottom: 1rem; text-align: center; }
.nq-content { margin-bottom: 1.5rem; }
.nq-answer { margin-bottom: 1rem; }
.nq-action { text-align: center; padding: 1rem 0; }

/* Inline edit hints (future) */
.nq-instruction,
.nq-content,
.nq-answer,
.nq-action {
    position: relative;
}

/* ========================================
   Design Modernization (B5)
   ======================================== */

/* Rounded items + hover animation */
button.itm,
.itm {
    border-radius: 12px !important;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border-width: 2px !important;
    font-weight: 500;
}
button.itm:hover,
.itm:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.1);
}
button.itm:active,
.itm:active {
    transform: scale(0.97);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

/* Drop zone modern style */
.itm-lst {
    border-radius: 16px !important;
    border: 2px solid #e2e8f0 !important;
    border-style: solid !important;
    background: #f8fafc;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}
.itm-lst:hover {
    border-color: #94a3b8 !important;
    background: #f1f5f9;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* Check/Done button modern style */
#chk,
#done {
    border-radius: 14px !important;
    font-weight: 700 !important;
    font-size: 1.05rem;
    padding: 0.75rem 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.25);
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    letter-spacing: 0.02em;
}
#chk:hover,
#done:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
}
#chk:active,
#done:active {
    transform: scale(0.98);
}

/* Answer feedback icons (B3) */
.ca::before { content: "\2713 "; }
.wa::before { content: "\2717 "; }
.ra::before { content: "\279C "; }

/* Answer appear animation */
@keyframes nq-answer-appear {
    from { opacity: 0; transform: translateY(-6px) scale(0.95); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}
.ca, .wa, .ra {
    animation: nq-answer-appear 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ========================================
   Mobile Responsive - Exercise Types
   Updated: 2026-02-28
   ======================================== */

/* --- Small screens (< 768px) --- */
@media (max-width: 767.98px) {

    /* B1: #wahl sticky top instead of fixed bottom */
    #wahl {
        position: sticky !important;
        top: 48px !important;
        bottom: auto !important;
    }

    /* B1: Hide margin spacer on mobile */
    #marg {
        display: none !important;
    }

    /* B2: Touch targets */
    .btn {
        min-height: 48px;
        min-width: 48px;
    }

    /* V2: 모바일 카드/버튼 조정 */
    .nq-exercise {
        border-radius: 12px;
        padding: 1rem 0.75rem;
        margin: 0.5rem;
    }
    button.itm, .itm {
        min-height: 48px;
        padding: 0.6rem 0.8rem;
    }
    #chk, #done {
        min-height: 52px;
        font-size: 1.1rem;
    }

    /* B2: iOS zoom prevention (font-size >= 16px) */
    input.form-control {
        min-height: 44px;
        font-size: 16px;
    }

    /* B4: Section spacing */
    section {
        margin-bottom: 16px;
    }
    section .container {
        padding-left: 8px;
        padding-right: 8px;
    }

    /* nq- section mobile spacing */
    .nq-instruction { margin-bottom: 0.75rem; }
    .nq-content { margin-bottom: 1rem; }
    .nq-answer { margin-bottom: 0.75rem; }

    /* [fill-blank] input-group 내 input이 줄바꿈 가능 */
    .input-group {
        flex-wrap: wrap;
    }

    /* [fill-blank] input 최소 너비 + inline max-width 무효화 */
    .form-control.q {
        min-width: 80px !important;
        max-width: none !important;
        flex: 1 1 auto !important;
    }

    /* [dragtogroup] drop zone 최소 높이 축소 */
    .itm-lst {
        min-height: 100px !important;
    }

    /* [dragtogroup] 드래그 아이템 터치 영역 */
    button.itm,
    .itm {
        font-size: 0.95rem;
        padding: 0.5rem 0.75rem;
        min-height: 44px;
    }

    /* [click-select] btn-group 줄바꿈 허용 */
    .btn-group.q {
        flex-wrap: wrap;
    }

    /* [click-select] 선택 버튼 터치 영역 확대 */
    .btn-group .pop {
        min-height: 44px;
        min-width: 44px;
        padding: 0.5rem 0.75rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* [공통] 정답확인 버튼 터치 영역 */
    #chk {
        min-height: 48px;
        font-size: 1.1rem;
    }

    /* [공통] 이미지 오버플로 방지 */
    section img {
        max-width: 100% !important;
        height: auto !important;
    }

    /* [공통] 테이블 고정 너비 해제 */
    .table th[width],
    .table td[width] {
        width: auto !important;
    }

    /* [공통] wahl(보기) 제목 크기 축소 */
    .wahl_title {
        font-size: 0.95rem;
    }
}

/* --- Extra small screens (< 576px) --- */
@media (max-width: 575.98px) {

    /* V2: 초소형 화면 카드 조정 */
    .nq-exercise {
        border-radius: 8px;
        padding: 0.75rem 0.5rem;
    }

    .form-control.q {
        min-width: 60px !important;
    }

    .itm-lst {
        min-height: 80px !important;
    }

    /* [dragtogroup] 제목 폰트 축소 */
    .itm-lst .ttl {
        font-size: 0.85rem;
        padding: 0.25rem 0.5rem;
    }

    /* [click-select] 문장 블록 표시 */
    .sen {
        display: block;
        word-break: keep-all;
    }
}

/* ========================================
   Unified Exercise Card (.nq-card)
   Added: 2026-03-01
   ======================================== */

/* 통일 카드: 모든 문제 유형 드롭존/문항 래퍼 */
.nq-card {
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    min-height: 150px;
    padding: 1rem;
    background-color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}
.nq-card:hover {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.nq-exercise[data-type="multiple-choice"] .nq-card,
.nq-exercise[data-type="fill-blank"] .nq-card {
    min-height: auto;
}

/* 선택지 팝오버 버튼 통일 */
.nq-exercise .pop {
    border-radius: 10px;
    transition: all 0.15s ease;
}

/* V2: fill-blank 입력란 모던 스타일 */
input.form-control.q {
    border: none !important;
    border-bottom: 2px solid #cbd5e1 !important;
    border-radius: 0 !important;
    background: transparent;
    font-weight: 600;
    transition: border-color 0.2s ease;
    padding: 0.4rem 0.5rem;
}
input.form-control.q:focus {
    border-bottom-color: #3b82f6 !important;
    box-shadow: none !important;
    outline: none;
}
input.form-control.q.border-success,
input.form-control.q.bg-success-subtle {
    border-bottom-color: #22c55e !important;
}
input.form-control.q.border-danger,
input.form-control.q.bg-danger-subtle {
    border-bottom-color: #ef4444 !important;
}

/* V2: grammar 아코디언 스타일 */
.accordion-item {
    border: 1px solid #e2e8f0 !important;
    border-radius: 12px !important;
    margin-bottom: 0.5rem;
    overflow: hidden;
}
.accordion-button {
    font-weight: 600;
    font-size: 1rem;
    padding: 1rem 1.2rem;
    background: #f8fafc !important;
}
.accordion-button:not(.collapsed) {
    background: #eff6ff !important;
    color: #1e40af !important;
    box-shadow: none !important;
}
.accordion-body {
    padding: 1rem 1.2rem;
    font-size: 0.95rem;
    line-height: 1.8;
}

/* V2: 번역 텍스트 */
.tran {
    opacity: 0.7;
    transition: opacity 0.3s ease;
}
.tran small {
    font-size: 0.82rem;
    color: #64748b;
    font-style: italic;
}

/* 결과 표시 애니메이션 */
@keyframes nq-result-appear {
    from { opacity: 0; transform: scale(0.9); }
    to   { opacity: 1; transform: scale(1); }
}
#done h4 {
    animation: nq-result-appear 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 모바일 nq-card 최소 높이 축소 */
@media (max-width: 767.98px) {
    .nq-card {
        min-height: 120px;
    }
}
