.memory-page{max-width:1080px;margin:24px auto 55px;padding:0 18px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Noto Sans KR",sans-serif;color:#263447}.memory-topbar{display:flex;justify-content:space-between;align-items:flex-end;gap:20px;margin-bottom:14px}.memory-kicker{font-size:11px;letter-spacing:.16em;color:#8c775f;font-weight:800}.memory-title-line{display:flex;align-items:center;gap:10px;flex-wrap:wrap}.memory-title-line h2{margin:4px 0;font-size:28px;color:#3d3a43}.memory-topbar p{margin:0;color:#7b7c87;font-size:13px}.memory-mode-badge{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:11px;font-weight:800}.memory-mode-badge.is-practice{background:#f3eee7;color:#806f5f}.memory-mode-badge.is-event{background:#eaf2ff;color:#2367c4}.memory-user-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.memory-login-user{font-size:12px;font-weight:700;color:#66758a;white-space:nowrap}.memory-action-icon{width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;border-radius:10px;text-decoration:none!important;font-size:21px;font-weight:800;line-height:1;transition:.15s}.memory-action-icon:hover{transform:translateY(-1px);box-shadow:0 5px 13px rgba(38,77,120,.13)}.memory-home{background:#eaf2fb;color:#2367c4;border:1px solid #d5e4f5}.memory-exit{background:#f7efef;color:#a25e64;border:1px solid #ead9db}.memory-history{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin-bottom:14px}.memory-stat-card{background:linear-gradient(135deg,#fbfcff,#f7f5f1);border:1px solid #e0e6ec;border-radius:14px;padding:12px 14px;box-shadow:0 5px 17px rgba(49,67,91,.05)}.memory-stat-title{display:block;font-size:12px;font-weight:800;color:#6a7585;margin-bottom:6px}.memory-stat-triple{display:flex;flex-direction:column;gap:3px}.memory-stat-triple span{font-size:12px;color:#46596f;line-height:1.45}.memory-stat-triple i{font-style:normal;display:inline-block;min-width:38px;color:#929aa5;font-size:10.5px}.memory-stat-card.points .memory-stat-triple span{color:#a75f67}.memory-tabs{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:6px;background:#f0f2f5;border-radius:14px;margin-bottom:12px}.memory-tab{border:0;background:transparent;color:#687587;border-radius:10px;padding:11px 14px;font-size:14px;font-weight:800;cursor:pointer}.memory-tab.is-active{background:#fff;color:#2367c4;box-shadow:0 3px 12px rgba(40,61,88,.09)}.memory-game-panel{display:none;background:linear-gradient(135deg,#f9fbff 0%,#faf8fb 54%,#fcf8f2 100%);border:1px solid #e1e7ed;border-radius:18px;padding:18px;box-shadow:0 9px 28px rgba(45,64,90,.07)}.memory-game-panel.is-active{display:block}.memory-notice{display:none;margin:0 0 12px;padding:10px 13px;border-radius:10px;background:#eef3f8;color:#597087;font-size:13px;font-weight:650}.memory-notice.is-show{display:block}.memory-notice.is-success{background:#edf7f2;color:#39735a;border:1px solid #d6eade}.memory-notice.is-error{background:#fbefef;color:#98565b;border:1px solid #efd9dc}.memory-verse-card,.memory-question-card{background:rgba(255,255,255,.82);border:1px solid #dfe5ec;border-radius:14px;padding:17px;margin-bottom:12px}.memory-small-label{font-size:11px;font-weight:800;color:#7a8796;letter-spacing:.04em;margin-bottom:7px}.memory-verse{min-height:72px;font-size:18px;line-height:1.8;color:#29394c;word-break:keep-all}.memory-verse.is-hidden-verse{color:#748296;font-size:15px;display:flex;align-items:center}.study-countdown{margin-top:8px;color:#a06e50;font-size:12px;font-weight:800}.memory-input-area label{display:block;font-size:12px;font-weight:800;color:#68798c;margin-bottom:7px}.memory-input-area textarea{width:100%;min-height:105px;resize:vertical;box-sizing:border-box;border:1.5px solid #d7e0e9;border-radius:13px;background:#fff;padding:13px 14px;font:inherit;font-size:16px;line-height:1.65;outline:none}.memory-input-area textarea:focus{border-color:#7aa6df;box-shadow:0 0 0 3px rgba(35,103,196,.08)}.memory-primary-btn,.memory-secondary-btn{border:0;border-radius:10px;padding:10px 17px;font-size:13px;font-weight:800;cursor:pointer}.memory-primary-btn{background:#2367c4;color:#fff}.memory-secondary-btn{background:#e9edf2;color:#566778}.memory-input-area .memory-primary-btn{margin-top:10px}.memory-decision{padding:14px;border-radius:13px;background:#fff8f0;border:1px solid #ecdcc8;color:#755f49}.memory-decision strong{font-size:13px}.memory-decision div{display:flex;gap:8px;margin-top:10px}.is-hidden{display:none!important}.memory-choice-hint{font-size:16px;color:#43566c}.memory-choice-list{display:grid;gap:9px}.memory-choice-btn{width:100%;display:grid;grid-template-columns:36px 1fr;gap:10px;align-items:flex-start;text-align:left;border:1px solid #dfe5ec;border-radius:13px;background:#fff;padding:12px 13px;cursor:pointer;color:#34475d;font-size:14px;line-height:1.55;transition:.15s}.memory-choice-btn:hover{border-color:#aac2df;background:#fbfdff;transform:translateY(-1px)}.memory-choice-btn:disabled{cursor:default}.choice-number{display:flex;align-items:center;justify-content:center;width:28px;height:28px;border-radius:50%;background:#edf3fa;color:#2367c4;font-weight:900}.memory-choice-btn.is-correct{background:#edf8f2;border-color:#a9d7bd}.memory-choice-btn.is-wrong{background:#fbefef;border-color:#dfb7bb}@media(max-width:760px){.memory-page{margin-top:15px;padding:0 12px}.memory-topbar{align-items:flex-start}.memory-title-line h2{font-size:23px}.memory-topbar p{display:none}.memory-history{grid-template-columns:1fr}.memory-game-panel{padding:13px}.memory-verse{font-size:16px}.memory-login-user{font-size:11px;max-width:110px;overflow:hidden;text-overflow:ellipsis}.memory-action-icon{width:31px;height:31px;font-size:19px}.memory-choice-btn{font-size:13px}}
/* v2 */
.study-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:8px}
.study-row .study-countdown{margin-top:0}
.memory-skip-btn{border:1px solid #d9e2eb;background:#fff;color:#65778b;border-radius:9px;padding:7px 11px;font-size:11px;font-weight:800;cursor:pointer;white-space:nowrap}
.memory-skip-btn:hover{background:#f5f8fb;border-color:#c9d8e7}
.memory-question-card.compact{padding:12px 14px}
.memory-stat-triple i{min-width:50px}
@media(max-width:620px){
  .study-row{align-items:flex-start}
  .memory-skip-btn{padding:6px 9px}
  .memory-stat-triple i{min-width:48px}
}

/* v5: verses_ko.json 성경 책/장/절 표시 */
.memory-reference{
    display:block;
    margin:0 0 6px 3px;
    color:#826d55;
    font-size:13px;
    font-weight:900;
    line-height:1.35;
    letter-spacing:-.01em;
}
@media(max-width:620px){
    .memory-reference{font-size:12px;margin-left:2px}
}


/* =========================================================
   BiblePang Bible Memorization
   ========================================================= */
.memory-page{
    width:min(1360px,calc(100% - 40px))!important;
    max-width:1360px!important;
    margin:28px auto 58px!important;
    padding:0!important;
    color:#24364B!important;
}
.memory-kicker{color:#155EEF!important;font-weight:900!important}
.memory-title-line h2{color:#0B2348!important;font-weight:900!important}
.memory-title-line h2 small{font-size:.55em;color:#6B7F96;font-weight:750}
.memory-topbar p,.memory-login-user{color:#71839B!important}
.memory-mode-badge.is-practice{background:#EAF2FF!important;color:#155EEF!important;border:1px solid #B5CBED}
.memory-home{background:#EAF2FF!important;color:#155EEF!important;border-color:#B5CBED!important}

.memory-content-ad{margin:18px 0 20px}

.memory-version-switch{
    display:flex;
    justify-content:flex-end;
    gap:7px;
    margin:0 0 11px;
}
.memory-version-switch button{
    min-height:36px;
    padding:0 15px;
    border:1px solid #BCD0E7;
    border-radius:10px;
    background:#FFFFFF;
    color:#60758D;
    font-size:11px;
    font-weight:850;
    cursor:pointer;
}
.memory-version-switch button.is-active{
    background:#EAF2FF;
    border-color:#91B4E4;
    color:#155EEF;
}

.memory-stat-card{
    background:linear-gradient(135deg,#FFFFFF,#F3F8FF)!important;
    border-color:#BFD0E4!important;
    box-shadow:0 5px 18px rgba(32,73,120,.06)!important;
}
.memory-stat-title{color:#526B86!important}
.memory-stat-triple span{color:#405A75!important}
.memory-stat-triple i{color:#8A9AAE!important;min-width:42px!important}
.memory-stat-card.points .memory-stat-triple span{color:#155EEF!important;font-weight:750}
.memory-unique-stat{
    display:block;
    margin-top:5px;
    color:#7A8EA5;
    font-size:10px;
}

.memory-tabs{
    background:#EAF1F8!important;
    border:1px solid #C8D6E8!important;
}
.memory-tab{border:1px solid transparent!important;color:#61758C!important}
.memory-tab small{
    display:block;
    margin-top:2px;
    color:#8D9CAF;
    font-size:10px;
    font-weight:650;
}
.memory-tab.is-active{
    color:#155EEF!important;
    border-color:#BFD2EB!important;
}

.memory-game-panel{
    background:linear-gradient(135deg,#F9FCFF 0%,#EEF5FF 64%,#F8FBFF 100%)!important;
    border-color:#B9CDE5!important;
    box-shadow:0 9px 28px rgba(35,76,122,.07)!important;
}
.memory-verse-card,.memory-question-card{
    background:#FFFFFF!important;
    border-color:#BFD0E4!important;
}
.memory-reference,.memory-small-label,.memory-input-area label{color:#4F7198!important}
.memory-verse{color:#263F5B!important}
.study-countdown{color:#155EEF!important}
.memory-input-area textarea{
    border-color:#AFC4DD!important;
}
.memory-input-area textarea:focus{
    border-color:#5F94D2!important;
    box-shadow:0 0 0 3px rgba(21,94,239,.10)!important;
}
.memory-primary-btn{background:#155EEF!important;border:1px solid #0B4BD4!important}
.memory-secondary-btn,.memory-skip-btn{
    background:#F1F5FA!important;
    color:#506780!important;
    border:1px solid #B9C9DB!important;
}
.memory-choice-btn{
    border-color:#BFD0E4!important;
    color:#344E6A!important;
}
.memory-choice-btn:hover{
    border-color:#75A0D7!important;
    background:#F5F9FF!important;
}
.choice-number{
    background:#E8F2FF!important;
    color:#155EEF!important;
    border:1px solid #C4D8EF;
}

/* Dark Mode */
html.bp-dark .memory-page{color:#DCE6F2!important}
html.bp-dark .memory-title-line h2{color:#F1F5FC!important}
html.bp-dark .memory-title-line h2 small,
html.bp-dark .memory-topbar p,
html.bp-dark .memory-login-user{color:#97A6B9!important}

html.bp-dark .memory-version-switch button{
    background:#111B2A;
    border-color:#334A64;
    color:#A6B5C7;
}
html.bp-dark .memory-version-switch button.is-active{
    background:#182B47;
    border-color:#426592;
    color:#9FC0FF;
}
html.bp-dark .memory-stat-card,
html.bp-dark .memory-game-panel,
html.bp-dark .memory-verse-card,
html.bp-dark .memory-question-card{
    background:#151F2E!important;
    border-color:#36506D!important;
    box-shadow:none!important;
}
html.bp-dark .memory-stat-title,
html.bp-dark .memory-small-label,
html.bp-dark .memory-input-area label{color:#AEBED0!important}
html.bp-dark .memory-stat-triple span{color:#D5E1ED!important}
html.bp-dark .memory-stat-triple i{color:#8195AA!important}
html.bp-dark .memory-stat-card.points .memory-stat-triple span{color:#9FC0FF!important}
html.bp-dark .memory-tabs{background:#111D2C!important;border-color:#31465F!important}
html.bp-dark .memory-tab{color:#A7B8CA!important}
html.bp-dark .memory-tab.is-active{
    background:#1B3048!important;
    color:#9FC0FF!important;
    border-color:#42658D!important;
}
html.bp-dark .memory-reference{color:#8FB7EA!important}
html.bp-dark .memory-verse{color:#E7EEF7!important}
html.bp-dark .memory-input-area textarea{
    background:#101B29!important;
    color:#EDF3FB!important;
    border-color:#405C79!important;
}
html.bp-dark .memory-choice-btn{
    background:#131F2E!important;
    border-color:#36506D!important;
    color:#DCE8F4!important;
}
html.bp-dark .memory-choice-btn:hover{
    background:#192E45!important;
    border-color:#5689BD!important;
}
html.bp-dark .choice-number{
    background:#173A60!important;
    border-color:#315F8E!important;
    color:#9AC7FF!important;
}

@media(max-width:720px){
    .memory-page{
        width:calc(100% - 24px)!important;
        max-width:none!important;
        padding:0!important;
    }
    .memory-version-switch{justify-content:stretch}
    .memory-version-switch button{flex:1}
}


/* BiblePang Memory unified 7-color theme */
.memory-page{--memory-light:#edf7ff;--memory-soft:#cde8ff;--memory-mid:#68afe8;--memory-dark:#337ab8;--memory-deep:#1b4f81;--memory-ink:#183652}
.memory-dashboard{display:grid;grid-template-columns:minmax(315px,1.25fr) minmax(0,2.5fr) 90px;gap:9px;align-items:stretch;padding:9px 11px;margin-bottom:17px;border:1px solid var(--memory-mid);border-radius:18px;background:radial-gradient(circle at 3% 12%,var(--memory-soft),transparent 25%),linear-gradient(110deg,var(--memory-light),#fff 48%,var(--memory-light));box-shadow:0 7px 20px rgba(35,62,82,.07)}
.memory-brand{display:flex;align-items:center;gap:10px;min-width:0}.memory-game-logo{width:70px;height:70px;flex:0 0 70px;border-radius:18px;overflow:hidden;border:1px solid var(--memory-mid)}.memory-game-logo svg{width:100%;height:100%;display:block}.memory-brand-copy h2{font-size:23px!important;margin:2px 0!important;color:var(--memory-ink)!important}.memory-brand-copy h2 small{font-size:.52em;color:var(--memory-dark)!important}.memory-brand-copy .memory-kicker{color:var(--memory-dark)!important}.memory-brand-copy p{font-size:10.5px!important;color:var(--memory-dark)!important;white-space:nowrap}
.memory-dashboard .memory-history{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:7px!important;margin:0!important;min-width:0}
.memory-dashboard .memory-stat-card{display:grid!important;grid-template-columns:35px minmax(0,1fr);gap:7px;align-items:center;padding:7px 8px!important;background:linear-gradient(145deg,#fff,var(--memory-light))!important;border:1px solid var(--memory-soft)!important;border-radius:12px!important;box-shadow:none!important}
.memory-stat-icon{width:33px;height:33px;display:flex;align-items:center;justify-content:center;color:var(--memory-dark)}.memory-stat-icon svg{width:29px;height:29px;fill:none;stroke:currentColor;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.memory-stat-copy{min-width:0}.memory-dashboard .memory-stat-title{font-size:10.5px!important;margin-bottom:2px!important;color:var(--memory-deep)!important;white-space:nowrap}.memory-dashboard .memory-stat-triple{gap:0!important}.memory-dashboard .memory-stat-triple span{font-size:11px!important;line-height:1.35;color:var(--memory-ink)!important}.memory-dashboard .memory-stat-triple i{font-size:9px!important;min-width:31px!important;color:var(--memory-dark)!important}.memory-dashboard .memory-unique-stat{display:block;font-size:7.5px;line-height:1.2;color:var(--memory-dark);white-space:nowrap}
.memory-dashboard .memory-user-actions{display:flex;flex-direction:column;justify-content:center;align-items:center;gap:7px}.memory-dashboard .memory-home{width:39px!important;height:39px!important;padding:0!important;background:linear-gradient(145deg,#fff,var(--memory-light))!important;color:var(--memory-deep)!important;border:1px solid var(--memory-mid)!important}.memory-dashboard .memory-home svg{width:23px;height:23px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.memory-version-switch{background:linear-gradient(135deg,var(--memory-soft),var(--memory-light))!important;border-color:var(--memory-mid)!important}.memory-version-switch button.is-active{color:var(--memory-deep)!important;border-color:var(--memory-dark)!important;background:#fff!important}
.memory-tabs{background:linear-gradient(135deg,var(--memory-soft),var(--memory-light))!important;border:1px solid var(--memory-mid)!important}.memory-tab.is-active{color:var(--memory-deep)!important;border-color:var(--memory-mid)!important}
.memory-game-panel{background:radial-gradient(circle at 5% 4%,var(--memory-soft),transparent 28%),linear-gradient(145deg,var(--memory-light),#fff 52%,var(--memory-soft))!important;border-color:var(--memory-mid)!important}.memory-verse-card,.memory-question-card{border-color:var(--memory-soft)!important}.memory-reference,.memory-small-label,.memory-input-area label{color:var(--memory-dark)!important}
.memory-primary-btn{background:#4d91d5!important;border-color:#3c7fbe!important}.memory-secondary-btn,.memory-skip-btn{background:#eef6ff!important;color:#356b9f!important;border-color:#bcd3ea!important}.memory-input-area textarea:focus{border-color:#77a9d8!important;box-shadow:0 0 0 3px rgba(55,125,190,.09)!important}
@media(max-width:1000px){.memory-dashboard{grid-template-columns:1fr}.memory-dashboard .memory-user-actions{flex-direction:row;justify-content:flex-end}}
@media(max-width:700px){.memory-dashboard .memory-history{grid-template-columns:1fr!important}}
html.bp-dark .memory-dashboard{background:linear-gradient(145deg,#17231f,#111a17)!important;border-color:var(--memory-dark)!important}html.bp-dark .memory-dashboard .memory-stat-card{background:#172720!important;border-color:var(--memory-dark)!important}


/* 2026-08-13 comprehensive dark-mode patch */
html.bp-dark .memory-page{color:#dbe7f2!important}
html.bp-dark .memory-dashboard{background:linear-gradient(145deg,#172334,#111b29)!important;border-color:#36516d!important}
html.bp-dark .memory-game-logo{background:#1a2b3d!important;border-color:#41617f!important}
html.bp-dark .memory-brand-copy h2,html.bp-dark .memory-login-user{color:#eef6ff!important}
html.bp-dark .memory-brand-copy h2 small,html.bp-dark .memory-kicker,html.bp-dark .memory-brand-copy p{color:#9eb5ca!important}
html.bp-dark .memory-dashboard .memory-stat-card{background:#162638!important;border-color:#36516d!important}
html.bp-dark .memory-dashboard .memory-stat-title,html.bp-dark .memory-dashboard .memory-stat-triple span,html.bp-dark .memory-dashboard .memory-unique-stat{color:#dbe8f4!important}
html.bp-dark .memory-dashboard .memory-stat-triple i{color:#91afca!important}
html.bp-dark .memory-dashboard .memory-home{background:#17283b!important;border-color:#405f7e!important;color:#acd3f7!important}
html.bp-dark .memory-version-switch,html.bp-dark .memory-tabs{background:#111d2c!important;border-color:#314a63!important}
html.bp-dark .memory-version-switch button,html.bp-dark .memory-tab{color:#a9bbcc!important;background:transparent!important}
html.bp-dark .memory-version-switch button.is-active,html.bp-dark .memory-tab.is-active{background:#1a3048!important;color:#b8dcff!important;border-color:#47709a!important}
html.bp-dark .memory-game-panel{background:linear-gradient(145deg,#151f2e,#111c2a)!important;border-color:#36506d!important}
html.bp-dark .memory-verse-card,html.bp-dark .memory-question-card,html.bp-dark .memory-input-area,html.bp-dark .study-row{background:#111d2b!important;border-color:#334d67!important;color:#dce8f3!important}
html.bp-dark .memory-reference,html.bp-dark .memory-small-label,html.bp-dark .memory-input-area label,html.bp-dark .memory-notice{color:#9fb6cb!important}
html.bp-dark .memory-verse,html.bp-dark .memory-question-card strong,html.bp-dark .memory-question-card p{color:#edf5fc!important}
html.bp-dark .memory-input-area textarea,html.bp-dark .memory-input-area input{background:#0f1a28!important;border-color:#3a5875!important;color:#eef6ff!important}
html.bp-dark .memory-secondary-btn,html.bp-dark .memory-skip-btn{background:#17283b!important;border-color:#405f7e!important;color:#b8d7f4!important}
html.bp-dark .memory-content-ad,html.bp-dark .bp-content-ad{background:#121d2b!important;border-color:#31465f!important;color:#a7b8ca!important}

/* v7: memorization stats font one step up */
.memory-dashboard .memory-stat-title{font-size:11.5px!important}
.memory-dashboard .memory-stat-triple span{font-size:12px!important;line-height:1.4!important}
.memory-dashboard .memory-stat-triple i{font-size:10px!important;min-width:34px!important}
.memory-dashboard .memory-unique-stat{font-size:8.5px!important}
