.memory-view{color:#26334b}.memory-intro{display:flex;align-items:center;gap:18px;padding:20px 24px;border:1px solid #ead5a5;border-radius:24px;background:linear-gradient(120deg,#fff0be,#fffaf0);margin-bottom:18px}.memory-intro>span{font-size:54px}.memory-intro h3{font-size:28px;color:var(--navy);margin:0 0 6px}.memory-intro p{margin:0;line-height:1.55;color:#526178}.memory-layout{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:20px;align-items:start}.memory-play,.memory-ranking{background:#fffaf0;border:1px solid #e4d2b1;border-radius:26px;padding:22px;box-shadow:var(--shadow)}.memory-setup{display:grid;grid-template-columns:1fr 1fr;gap:16px}.memory-setup label:first-child,.memory-name-note,.memory-setup>.btn{grid-column:1/-1}.memory-view label{display:flex;flex-direction:column;gap:7px;color:#3c526c;font-size:14px;font-weight:800}.memory-view select,.memory-view input{font:inherit;background:#fffdf7;color:#243856;border:1px solid #bda980;min-height:48px;width:100%;max-width:100%;padding:12px;border-radius:13px;font-size:16px}.memory-name-note{font-weight:400;font-size:13px;line-height:1.5;color:#59677b;margin:0}.memory-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.memory-stats>span{text-align:center;background:#fff2d4;border:1px solid #e8d4a7;border-radius:15px;padding:10px 6px;font-size:12px;color:#586b81}.memory-stats b{display:block;font-size:23px;color:var(--navy);font-variant-numeric:tabular-nums;margin-bottom:3px}.memory-round-label{color:#5b6c7c;font-size:13px;line-height:1.4;margin:13px 0 10px}.memory-track{height:9px;overflow:hidden;background:#eadfc8;border-radius:12px;margin-bottom:18px}.memory-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#5eaa69,#b5d975);transition:width .2s}.memory-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.memory-card{position:relative;min-height:124px;min-width:0;border:2px solid #ddbd7e;border-radius:18px;padding:12px 8px;cursor:pointer;background:linear-gradient(135deg,#fbe1a2,#fff2c9);color:#3c4f67;box-shadow:0 4px 0 #cfaa66;touch-action:manipulation;transition:background .15s,transform .15s;text-align:center;overflow-wrap:anywhere}.memory-card:hover{transform:translateY(-1px)}.memory-cover{display:flex;flex-direction:column;align-items:center;gap:4px}.memory-cover>span{font-size:30px}.memory-cover>b{font-size:13px}.memory-cover>small{font-size:11px;color:#786945}.memory-front{display:flex;flex-direction:column;justify-content:center;gap:12px;min-height:86px}.memory-front>small{font-size:10px;font-weight:800;color:#58718e;letter-spacing:.08em}.memory-front>strong{font-size:16px;line-height:1.35;color:#243856}.memory-check{display:none}.memory-card.memory-open{background:#fffdf6;border-color:#86b5d1;box-shadow:0 4px 0 #6c97b4}.memory-card.memory-found{background:#f0f8e9;border-color:#89b473;box-shadow:0 4px 0 #789969;cursor:default}.memory-found .memory-check{display:block;color:#468345;font-weight:900}.memory-card.memory-miss{border-color:#dfb2a0;background:#fff1e8}.memory-view [hidden]{display:none!important}.memory-view button:focus-visible,.memory-view select:focus-visible,.memory-view input:focus-visible{outline:3px solid #237aaa;outline-offset:4px}.memory-status{min-height:42px;font-size:14px;line-height:1.5;color:#526378;margin:16px 0 10px}.memory-pair-help{display:flex;gap:12px;background:#fff6df;border:1px solid #e3d2ac;border-radius:18px;padding:14px;margin-bottom:15px}.memory-pair-help img{width:74px;height:92px;object-fit:cover;border-radius:12px;flex-shrink:0}.memory-pair-help>div{min-width:0}.memory-pair-help small{display:block;color:#4b7e51;font-size:10px;font-weight:800;letter-spacing:.08em;margin-bottom:5px}.memory-pair-help strong{display:block;font-size:15px;line-height:1.45}.memory-pair-help p{font-size:13px;line-height:1.45;margin:7px 0;color:#59677b}.memory-pair-help button,.memory-pages button{min-height:44px;background:#fff;border:1px solid #ceb893;border-radius:11px;padding:10px 12px;color:var(--navy);font-weight:800;cursor:pointer}.memory-pair-help button{margin:4px 4px 0 0}.memory-audio-status{font-size:12px;color:#913e36}.memory-result{background:linear-gradient(120deg,#e6f6df,#fff4d3);border:1px solid #adc996;border-radius:20px;padding:18px;margin-bottom:14px}.memory-result h3{margin:0 0 8px;font-size:28px;color:#254e37}.memory-result p{font-size:15px;line-height:1.5;margin:8px 0}.memory-error,.memory-confirm{background:#fff0de;border:1px solid #daae83;border-radius:16px;padding:16px;font-size:14px;line-height:1.5}.memory-error button,.memory-confirm button{margin:8px 8px 0 0}.memory-rank-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.memory-rank-head small{font-size:10px;font-weight:900;color:#618249;letter-spacing:.09em}.memory-rank-head h3{color:var(--navy);font-size:30px;margin:5px 0 0}.memory-ranking>p{font-size:14px;line-height:1.55;color:#586a7d}.memory-refresh{min-width:46px;height:46px;border:1px solid #ccb689;background:#fff2d4;color:var(--navy);border-radius:14px;font-size:25px;cursor:pointer}.memory-rank-filters{display:grid;grid-template-columns:1fr 1fr;gap:12px}.memory-rank-chapter{grid-column:1/-1}.memory-ranking .memory-rank-status{font-size:13px;margin:16px 0;min-height:20px}.memory-table{width:100%;min-width:0;table-layout:fixed;border-collapse:collapse}.memory-table thead th{position:static;text-align:left;background:#fff0cc;color:#4b5e78;font-size:11px;padding:10px 5px}.memory-table thead th:first-child{width:52%}.memory-table td,.memory-table tbody th{padding:13px 5px;border-bottom:1px solid #e5d9c1;font-size:13px;vertical-align:middle;text-align:left;overflow-wrap:anywhere}.memory-table tbody th{font-weight:400}.memory-table tbody th>span{display:inline-block;vertical-align:middle}.memory-table tbody th>span:last-child{width:calc(100% - 30px)}.memory-table strong{display:block;color:#293f60;font-size:14px}.memory-table small{display:block;font-size:10px;color:#607087;line-height:1.5;margin-top:4px}.memory-table strong small{display:inline;font-size:10px;color:#307557}.memory-rank-number{width:25px;font-weight:900;color:#708053;font-size:15px}.memory-table td b{color:#4c773e;font-size:16px}.memory-table .memory-you{background:#edf6e8}.memory-pages{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-top:16px;font-size:13px}.memory-view button:disabled{opacity:.5;cursor:default}.memory-scoring{font-size:12px;color:#59687a;line-height:1.6;border-top:1px dashed #cfb990;margin-top:18px;padding-top:14px}.memory-scoring summary{cursor:pointer;font-weight:800;min-height:44px;display:flex;align-items:center}.memory-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}
@media(max-width:900px){.memory-layout{grid-template-columns:minmax(0,1fr)}.memory-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.memory-play,.memory-ranking{padding:20px}.memory-intro{padding:18px}.memory-ranking{margin-top:4px}}
@media(max-width:550px){.memory-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.memory-card{min-height:120px}.memory-play,.memory-ranking{padding:16px;border-radius:22px}.memory-setup{grid-template-columns:1fr}.memory-setup label{grid-column:1/-1}.memory-intro{gap:12px}.memory-intro>span{font-size:37px}.memory-intro h3{font-size:23px}.memory-intro p{font-size:14px}.memory-view .sectionhead h2{font-size:28px}.memory-view .sectionhead{grid-template-columns:50px 1fr}.memory-table thead{display:none}.memory-table,.memory-table tbody{display:block}.memory-table tr{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));padding:12px 10px;border:1px solid #e4d5b6;border-radius:15px;margin-bottom:10px;background:#fffcf4}.memory-table tbody th{grid-column:1/-1;border:0;padding:0 0 10px}.memory-table td{padding:0 5px;border:0;font-size:15px;text-align:center}.memory-table td:before{content:attr(data-label);display:block;color:#6b7a8c;font-size:10px;margin-bottom:3px}.memory-table small{font-size:11px}.memory-table .memory-you{background:#edf6e8}.memory-pair-help{gap:10px;padding:12px}.memory-pair-help img{width:60px;height:80px}.memory-result h3{font-size:26px}}
@media(prefers-reduced-motion:reduce){.memory-card,.memory-track i{transition:none}.memory-card:hover{transform:none}}

.memory-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.memory-picture{font-family:"Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif;font-size:clamp(2.5rem,9vw,3.5rem);line-height:1.2}.memory-fixed-size{align-self:center;font-size:1rem;color:#526178}.memory-rank-filters{grid-template-columns:1fr}@media(max-width:550px){.memory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
