.memory-section{width:calc(100% - clamp(32px,8vw,128px));max-width:1400px;margin:auto;padding:0 0 80px}.memory-controls{flex-wrap:wrap;align-items:flex-end;gap:24px;font-size:clamp(1rem,.9rem + .15vw,1.18rem);display:flex}.memory-controls label{color:var(--gold);gap:8px;display:grid}.memory-controls select{color:#eee6db;border:1px solid var(--line);font:inherit;background:#16111c;min-height:48px;padding:13px 18px}.memory-controls .button{font-size:inherit}.memory-stats{border-block:1px solid var(--line);gap:clamp(28px,3vw,64px);margin:28px 0 18px;padding:20px 0;display:flex}.memory-stats dt{color:var(--muted);font-size:clamp(.85rem,.75rem + .15vw,1.12rem)}.memory-stats dd{font-variant-numeric:tabular-nums;color:var(--gold);margin:5px 0 0;font-size:clamp(1.4rem,1.1rem + .35vw,2rem)}.memory-instructions{max-width:70ch;font-size:clamp(.9rem,.8rem + .12vw,1.1rem);line-height:1.7}.memory-scroll{min-width:0;margin-top:24px;padding:8px 0 16px}.memory-board{grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:clamp(4px,.55vw,12px);width:100%;max-width:550px;margin:auto;display:grid}.memory-board[data-difficulty=witch]{max-width:800px}.memory-board[data-difficulty=archwitch]{max-width:1000px}.memory-card{aspect-ratio:1;cursor:pointer;color:#eee6db;touch-action:manipulation;perspective:1000px;background:#18101f;border:1px solid #6d523b;border-radius:7px;width:100%;min-width:0;padding:0;transition:border-color .18s,box-shadow .18s;position:relative;overflow:hidden}.memory-card:focus-visible{outline-offset:3px;outline:3px solid #dfb875}.memory-card-inner{transform-style:preserve-3d;transition:transform .42s cubic-bezier(.2,.7,.2,1);position:absolute;inset:0}.memory-back,.memory-front{-webkit-backface-visibility:hidden;backface-visibility:hidden;background:#18101f;border-radius:6px;place-items:center;display:grid;position:absolute;inset:0;overflow:hidden}.memory-back{background:radial-gradient(#59386555,#0000)}.memory-back:after{content:"";pointer-events:none;border:1px solid #70523985;position:absolute;inset:6%}.memory-back img{object-fit:contain;width:70%;height:70%}.memory-front{transform:rotateY(180deg)}.memory-front img{object-fit:contain;width:82%;max-width:82%;height:82%;max-height:82%;position:absolute;inset:9%}.memory-card[data-category=waffen] .memory-front img{width:88%;max-width:88%;height:88%;max-height:88%;inset:6%}.memory-card[data-state=revealed] .memory-card-inner,.memory-card[data-state=matched] .memory-card-inner{transform:rotateY(180deg)}.memory-card[data-state=matched]{cursor:default;border-color:#a6bf9a;box-shadow:0 0 10px #a6bf9a25}.memory-match-mark{aspect-ratio:1;color:#f6fff0;background:#263d29;border-radius:3px;place-items:center;width:clamp(12px,16%,22px);font-size:clamp(.6rem,1vw,.95rem);font-weight:700;display:none;position:absolute;top:3%;right:3%}.memory-card[data-state=matched] .memory-match-mark{display:grid}.memory-status{min-height:1.8em;color:var(--gold);margin:12px 0}.memory-record-opt{align-items:center;gap:10px;font-size:.85rem;line-height:1.7;display:flex}.memory-record-opt input{accent-color:#b88c51;width:20px;height:20px}.memory-record{font-size:.85rem}.memory-result-stats{grid-template-columns:1fr 1fr;gap:18px;margin:25px 0;display:grid}.memory-result-stats dd{color:var(--gold);margin:5px 0}#memory-result{max-width:650px;padding:35px}#memory-result h2{padding-right:25px;font-size:2.1rem}.memory-result-close{color:var(--gold);cursor:pointer;background:0 0;border:0;font-size:1.8rem;position:absolute;top:15px;right:20px}.memory-teaser{border-block:1px solid var(--line);justify-content:space-between;align-items:center;gap:35px;padding-block:35px;display:flex}.memory-teaser h2{margin:0 0 12px;font-size:2rem}.memory-teaser p{max-width:680px;margin:0}.memory-teaser .button{flex-shrink:0}.memory-section .memory-status{font-size:clamp(1rem,.9rem + .1vw,1.15rem)}.page-intro:has(+.memory-section){width:calc(100% - clamp(32px,8vw,128px));max-width:1400px;padding-inline:0}.page-intro:has(+.memory-section)>p:not(.eyebrow){max-width:70ch;font-size:clamp(1.1rem,1rem + .15vw,1.3rem)}@media (width<=1100px){.section.memory-section{padding:0 0 65px}}@media (width<=700px){.memory-controls{gap:14px}#memory-result{padding:25px 20px}.memory-teaser{display:block}.memory-teaser .button{margin-top:20px}.memory-card{border-radius:4px}}@media (prefers-reduced-motion:reduce){.memory-card,.memory-card-inner{transition:none}}.memory-leaderboard{max-width:1400px;margin-inline:auto}.memory-leaderboard select{min-width:220px;max-width:100%;margin-top:10px;display:block}.leaderboard-table{overflow-x:auto}.leaderboard-table table{border-collapse:collapse;font-variant-numeric:tabular-nums;width:100%}.leaderboard-table th,.leaderboard-table td{text-align:left;border-bottom:1px solid var(--line,#615165);padding:14px 12px}.leaderboard-table th:first-child,.leaderboard-table td:first-child{width:60px}.leaderboard-own{background:#59473155}.leaderboard-invite{border-top:1px solid #615165;padding-top:15px}.leaderboard-invite input{width:100%;max-width:320px;color:inherit;background:#17101e;border:1px solid #8c7796;margin:8px 0;padding:10px;display:block}.leaderboard-invite h3{font-size:1.25rem}.leaderboard-invite button:disabled{opacity:.6;cursor:default}#memory-result{max-height:90dvh;overflow-y:auto}.memory-leaderboard .media-caption{max-width:900px}@media (width<=450px){.leaderboard-table th,.leaderboard-table td{padding:12px 6px;font-size:.85rem}}
