/* Gedächtnisbaustein – nutzt die Farbvariablen der jeweiligen Seite */
.mem-modal { width: min(calc(100% - 28px), 500px); max-height: calc(100dvh - 28px); padding: 0; border: 0; border-radius: 27px; background: var(--surface); color: var(--ink); box-shadow: 0 28px 70px rgba(4,20,32,.34); overflow-y: auto; }
.mem-modal::backdrop { background: rgba(6,19,29,.72); backdrop-filter: blur(4px); }
.mem-body { padding: 26px 22px calc(22px + env(safe-area-inset-bottom)); text-align: center; }
.mem-body .eyebrow { margin: 0 0 6px; color: var(--accent-dark); font-size: .77rem; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.mem-body h2 { margin: 0 0 14px; font-size: 1.55rem; line-height: 1.15; letter-spacing: -.02em; }
.mem-body p { margin: 0 0 14px; color: var(--muted); font-size: 1.04rem; line-height: 1.5; }
.mem-words { display: grid; gap: 10px; margin: 8px 0 18px; padding: 0; list-style: none; }
.mem-words li { padding: 16px 12px; border: 4px solid var(--ink); border-radius: 20px; background: var(--goal); color: #172b3c; font-size: 2.2rem; font-weight: 950; letter-spacing: -.01em; }
.mem-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 6px 0 12px; }
.mem-option { min-height: 74px; padding: 8px; border: 4px solid var(--ink); border-radius: 20px; background: var(--surface); color: var(--ink); font-size: 1.45rem; font-weight: 950; cursor: pointer; box-shadow: 0 5px 0 color-mix(in srgb, var(--ink) 26%, transparent); }
.mem-option:active { transform: translateY(3px); }
.mem-option.wrong { border-color: #b3261e; background: #fff2ef; color: #b3261e; opacity: .75; }
.mem-option:disabled { cursor: default; }
.mem-msg { min-height: 26px; margin: 0 0 8px; font-weight: 850; color: var(--muted); }
.mem-msg.bad { color: #b3261e; }
.mem-msg.good { color: #1b6b3a; }
.mem-primary { width: 100%; min-height: 63px; padding: 13px 20px; border: 0; border-radius: 19px; background: var(--accent); color: #fff; font-size: 1.12rem; font-weight: 900; box-shadow: 0 7px 0 var(--accent-dark); cursor: pointer; }
.mem-second { width: 100%; min-height: 55px; margin-top: 10px; border: 2px solid var(--line); border-radius: 16px; background: var(--surface); color: var(--ink); font-weight: 850; cursor: pointer; }
.mem-second.pulse { border-color: var(--accent-dark); border-width: 4px; }
.mem-off { min-height: 48px; margin-top: 12px; padding: 8px; border: 0; background: transparent; color: var(--muted); font-weight: 800; text-decoration: underline; cursor: pointer; }
.mem-modal button:focus-visible { outline: 5px solid #2b85d3; outline-offset: 4px; }
body.theme-high .mem-primary { color: #000; }
body.theme-high .mem-option.wrong { background: #000; color: #ff8a80; border-color: #ff8a80; }
body.theme-high .mem-msg.bad { color: #ff8a80; }
body.theme-high .mem-msg.good { color: #7dff9a; }
