.bible-memory-game{position:relative;box-sizing:border-box;min-width:0;padding:clamp(16px,4vw,30px);color:#f4f8ff;background:radial-gradient(circle at 48% -10%,#403d76 0,#173655 45%,#0b1c34 100%);font-family:"Segoe UI",Arial,sans-serif}
.bible-memory-game *{box-sizing:border-box}
.bible-memory-game [hidden]{display:none!important}
.memory-topline{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;color:#ffe18b;font:800 12px Consolas,monospace;letter-spacing:1px}
.bible-memory-game h2{margin:19px 0 5px;color:#fff;font-size:clamp(23px,5vw,34px);line-height:1.15}
.memory-intro{margin:0 0 20px;color:#dce9fa;line-height:1.5}
.memory-board{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(6,minmax(62px,1fr));gap:10px;max-width:800px;margin:auto;padding:14px;border:2px solid #5a84ad;border-radius:16px;background:#0c223b;box-shadow:inset 0 1px 0 #ffffff26,0 14px 34px #06132a66}
.memory-card{display:grid;place-items:center;min-width:0;min-height:clamp(62px,8vw,90px);padding:7px 12px;border:2px solid #ffd372;border-radius:11px;background:linear-gradient(145deg,#6446a1,#2c427b 65%,#173559);color:#fff;font-size:clamp(18px,3.3vw,27px);font-weight:900;letter-spacing:.02em;line-height:1.1;cursor:pointer;box-shadow:0 4px 0 #152c4e,0 0 12px #6752c333;transition:transform .15s ease,background .15s ease}
.memory-card:hover:not(:disabled){transform:translateY(-2px);background:linear-gradient(145deg,#8054be,#395890 65%,#1d426e)}
.memory-card.is-open{background:linear-gradient(#376a89,#19445f);border-color:#82d7ff;color:#fff}
.memory-card.is-matched{background:linear-gradient(#138c77,#0c635b);border-color:#a7f2c5;color:#fff;box-shadow:0 4px 0 #06493f,0 0 16px #57e6aa55}
.memory-card:disabled{cursor:default;opacity:1}
.memory-card:focus-visible,.memory-new:focus-visible,.memory-modal-accept:focus-visible,.memory-continue:focus-visible{outline:3px solid #fff;outline-offset:3px}
.memory-card-label{overflow-wrap:anywhere;text-align:center}
.memory-card:not(.is-open) .memory-card-label{color:#ffe18b;font-size:clamp(27px,5vw,41px);line-height:1}
.memory-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;max-width:800px;margin:18px auto 0}
.memory-feedback{min-height:24px;margin:0;color:#d9edff;font-size:17px;font-weight:800;line-height:1.4}
.memory-new{flex:none;min-height:46px;padding:9px 17px;border:2px solid #ffda75;border-radius:9px;background:linear-gradient(#e94d64,#b71d3e);color:#fff;font-size:16px;font-weight:900;cursor:pointer;box-shadow:0 4px 0 #741029}
.memory-modal{position:absolute;inset:0;z-index:10;display:grid;place-items:center;padding:15px;background:#061426c9;backdrop-filter:blur(3px)}
.memory-dialog{position:relative;width:min(100%,420px);padding:27px 24px 24px;border:3px solid #ffe18b;border-radius:20px;background:radial-gradient(circle at 50% 0,#355e83,#123650 60%,#102842);color:#fff;text-align:center;box-shadow:0 12px 0 #061c33,0 20px 50px #0009}
.memory-modal-accept{position:absolute;top:13px;right:13px;display:grid;place-items:center;width:44px;height:44px;border:2px solid #d0ffe8;border-radius:50%;background:#168a6d;color:#fff;font-size:26px;font-weight:900;cursor:pointer;box-shadow:0 3px 0 #075643}
.memory-dialog-icon{display:grid;place-items:center;width:74px;height:74px;margin:4px auto 14px;border:4px solid #ccffe7;border-radius:50%;background:#1b9878;color:#fff;font-size:47px;font-weight:900;box-shadow:0 0 25px #53e8a677}
.memory-dialog-kicker{margin:0;color:#ffe18b;font:800 12px Consolas,monospace;letter-spacing:2px}
.memory-dialog h3{margin:8px 0;color:#fff;font-size:clamp(27px,6vw,35px);line-height:1.1}
.memory-dialog-name{min-height:45px;margin:10px 0 20px;color:#e2f5ff;font-size:18px;line-height:1.4;font-weight:700}
.memory-continue{min-height:48px;padding:9px 23px;border:2px solid #ffe18b;border-radius:9px;background:linear-gradient(#e94d64,#b71d3e);color:#fff;font-size:17px;font-weight:900;cursor:pointer;box-shadow:0 4px 0 #741029}
@media(max-width:480px){.bible-memory-game{padding:15px 9px}.memory-board{gap:7px;padding:8px}.memory-card{min-height:62px;padding:5px 4px;font-size:clamp(16px,5vw,21px)}.memory-footer{align-items:stretch;flex-direction:column}.memory-new{width:100%}.memory-dialog{padding:22px 15px}.memory-dialog-name{font-size:16px}}
