.play-mode-bar{grid-column:2;display:flex;flex-wrap:wrap;align-items:stretch;gap:8px;padding:0;margin-bottom:11px}
.play-mode-bar .play-choice{flex:1;min-width:0;min-height:94px;display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:6px;padding:12px 10px;border:1px solid #cbd1bc;border-radius:16px;background:linear-gradient(120deg,#f1f1e4,#f9f6eb);color:#7a856b;text-align:left;box-shadow:0 3px 0 #c9cdb544;transition:flex-grow .25s ease,border-color .2s,background .2s,box-shadow .2s}
.play-choice strong{font-size:14px;letter-spacing:.2px;white-space:nowrap}.play-choice small{font-size:9px;line-height:1.5}.play-choice-state{font-size:9px;color:#8a947a;line-height:1.4}
.play-mode-bar .play-choice[aria-pressed="true"]{flex-grow:1.4;border:2px solid #92aa79;padding:11px 9px;color:#48613d;background:linear-gradient(120deg,#dce9ca,#f1f3df);box-shadow:0 3px 0 #a7b98b,0 5px 13px #73835c12}
.play-mode-bar #play-next[aria-pressed="true"]{border-color:#b19bb4;background:linear-gradient(120deg,#e7dbe7,#f5ebef);color:#75597a;box-shadow:0 3px 0 #bfacc2,0 5px 13px #8e6c9512}
.play-choice[aria-pressed="true"] .play-choice-state{font-weight:750;color:inherit}.play-choice:focus-visible{outline:3px solid #c4a264;outline-offset:3px}.play-mode-description{flex-basis:100%;font-size:9px;line-height:1.4;color:#869176;padding:0 3px}.play-mode-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
.memory-flower-tags{grid-column:2;border:1px solid #d8d3b7;border-radius:15px;padding:10px 12px;background:#faf5e6;margin-bottom:10px}.memory-flower-tags[hidden],#memory-ceremony[hidden],#memory-gift-words[hidden]{display:none}
.memory-tags-head{display:flex;align-items:center;justify-content:space-between;gap:7px;font-size:10px;color:#778164}.memory-tags-head b{color:#547249;margin-left:4px}.memory-tags-head button{font-size:10px;border:1px solid #b7c39e;border-radius:12px;background:#e8eed8;padding:5px 10px;color:#566d48}.memory-tag-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;margin-top:8px}.memory-mini-tag{display:flex;align-items:center;gap:4px;padding:5px 6px;border:1px dashed #c9ceb6;border-radius:8px;background:#eeeddf;color:#8e947f;font-size:10px;overflow-wrap:anywhere}.memory-mini-tag i{font-style:normal;font-size:15px;flex-shrink:0}.memory-mini-tag.collected{color:#476745;background:#e1ebcc;border:1px solid #a6bb8c}.memory-mini-tag.collected i{color:#bc934c}.memory-flower-tags>small{display:block;font-size:9px;color:#8a8d75;line-height:1.6;margin-top:7px}
.steps.memory-completion strong{font-size:12px;line-height:1.6}.steps.memory-completion small{font-size:9px}
#play-switch{z-index:35}.memory-match-dialog{max-width:580px;padding:23px 20px;background:radial-gradient(at 30% 0,#e7edda,#fbf5e8 65%)}.memory-eyebrow{font-size:8px;letter-spacing:3px;color:#96a183}.memory-match-dialog h2{font-family:Georgia,SimSun,serif;font-size:23px;color:#4d6549;margin:12px 0}.memory-match-dialog .memory-instructions{font-size:10px;line-height:1.75;margin:9px 0 12px;color:#858b74}.memory-match-count{font-size:11px;color:#697e54;border-radius:12px;background:#e6ebd7;padding:7px 12px;display:inline-block;margin-bottom:14px}
.memory-table{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:34px;text-align:left;isolation:isolate}.memory-column{display:grid;grid-template-rows:repeat(6,minmax(56px,auto));gap:8px;z-index:2}.memory-word-row{display:flex;align-items:stretch;min-width:0;gap:3px}.memory-pair{width:100%;min-width:0;min-height:56px;display:flex;align-items:center;justify-content:center;gap:3px;padding:8px 6px;border-radius:12px;border:1px solid #c9c8aa;background:linear-gradient(#fffbef,#f0e7cf);box-shadow:0 3px 0 #ccbea0;color:#536849;font-size:12px;font-weight:650;line-height:1.4;overflow-wrap:anywhere;text-align:center}.memory-pair[data-memory-word]{touch-action:none;font-size:12px;flex:1}.memory-pair.selected{border:2px solid #b18c44;background:#fff0bf;box-shadow:0 0 0 3px #ddbc6f44}.memory-pair.paired{opacity:1;color:#4c7048;background:#e4edcf;border-color:#a6bd8d;box-shadow:0 2px 0 #9fb184}.memory-pair.paired span{color:#b9954a}.memory-listen{padding:0;width:23px;flex-shrink:0;border:0;background:transparent;color:#7d8f6d}.memory-listen svg{width:16px;height:16px}.memory-pair.memory-hinted{outline:3px solid #d7ae55;outline-offset:2px;background:#fff0c5}
#memory-lines{position:absolute;inset:0;width:100%;height:100%;overflow:visible;pointer-events:none;z-index:1}#memory-lines path{fill:none;stroke:#9db27d;stroke-width:3;stroke-linecap:round}#memory-lines circle{fill:#d0ad59;stroke:#fff4ce;stroke-width:2}#memory-lines .drawing{stroke:#cba452;stroke-dasharray:4 5}.memory-match-dialog .memory-status{font-size:10px;line-height:1.6;color:#788662;min-height:32px;margin:17px 0 0}.memory-match-actions{display:flex;justify-content:center;gap:10px}.memory-match-actions button{width:auto;font-size:10px;padding:9px 10px}.memory-match-actions #memory-hint{color:#8c713a}
.memory-reward #result-icon{position:relative;width:250px;max-width:100%;margin:0 auto;isolation:isolate}.memory-reward #result-icon .bouquet-gift{position:relative;z-index:2;animation:memory-bouquet-reveal 1.5s ease-out both}.memory-reward #result-title{font-family:Georgia,SimSun,serif;font-size:22px;line-height:1.5;color:#546b4b}.memory-reward #result-description{font-size:11px}
.ceremony-gather{position:absolute;inset:0;z-index:3;pointer-events:none}.ceremony-gather i{font-style:normal;position:absolute;left:46%;top:35%;font-size:25px;color:#d7ad5b;text-shadow:0 2px 0 #ffebc4;--angle:calc(var(--flower-index)*60deg);animation:memory-gather .9s ease-in both;transform:rotate(var(--angle)) translateX(90px)}.ceremony-paper{position:absolute;width:100px;height:110px;bottom:10px;left:25px;z-index:1;clip-path:polygon(0 0,100% 18%,90% 100%,65% 95%);background:linear-gradient(120deg,#eee1c2,#f9f1dc);transform-origin:bottom right;animation:memory-wrap 1.1s .7s both}.ceremony-paper.right{left:auto;right:25px;transform:scaleX(-1);animation-name:memory-wrap-right}.ceremony-ribbon{position:absolute;z-index:4;left:38%;bottom:18px;font-size:46px;line-height:1;color:#8f9f78;text-shadow:0 1px 0 #f8f3e6;animation:memory-ribbon .5s 1.7s both}
.ceremony-steps{display:flex;gap:5px;justify-content:center;padding:0;list-style:none;margin:4px 0 14px}.ceremony-steps li{font-size:8px;color:#8e9b7b;border-radius:10px;border:1px solid #d0d6bc;padding:4px 6px;animation:memory-step .5s both}.ceremony-steps li:nth-child(2){animation-delay:.7s}.ceremony-steps li:nth-child(3){animation-delay:1.4s}.ceremony-steps li:nth-child(4){animation-delay:2s}.memory-gift-tag{border:1px solid #d5c69c;background:linear-gradient(120deg,#fcf6e6,#efe8d4);padding:15px 12px;border-radius:3px 18px 18px 3px;box-shadow:0 4px 12px #69634310;animation:memory-tag-arrive .55s 2s both}.memory-gift-tag>span{display:block;color:#9a773a;font-size:12px;font-weight:750}.memory-gift-tag>p{font-size:10px!important;margin:7px 0 0!important}.memory-gift-tag>button{padding:8px 0 0;font-size:10px}.memory-gift-tag #memory-gift-words,.memory-archive-words{margin-top:11px;text-align:left}.memory-gift-tag #memory-gift-words>div,.memory-archive-words>div{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:7px 0;border-top:1px solid #d9d3bb;font-size:11px;overflow-wrap:anywhere}.memory-gift-tag #memory-gift-words span,.memory-archive-words span{color:#7a846b}.memory-reward #memory-skip{font-size:10px;padding:10px 0 3px}
.ceremony-finished .ceremony-gather{display:none}.ceremony-finished .ceremony-paper,.ceremony-finished .ceremony-ribbon,.ceremony-finished .ceremony-steps li,.ceremony-finished .memory-gift-tag,.ceremony-finished #result-icon .bouquet-gift{animation:none!important;opacity:1;transform:none}.ceremony-finished .ceremony-paper.right{transform:scaleX(-1)}
.ceremony-finished .ceremony-paper,.ceremony-finished .ceremony-ribbon{display:none}
#memory-card-pick{width:100%;border:1px solid #c3caaf;border-radius:10px;padding:10px;margin:8px 0 4px;background:#f5f4e6;color:#5b704f;font-size:12px}#memory-archive label{font-size:10px;color:#849271}#memory-archive-open{grid-column:1/-1;font-size:11px;color:#7f8c69}
@keyframes memory-bouquet-reveal{0%,35%{opacity:0;transform:translateY(18px) scale(.7)}100%{opacity:1;transform:translateY(0) scale(1)}}
@keyframes memory-gather{0%{opacity:0;transform:rotate(var(--angle)) translateX(90px) rotate(calc(-1*var(--angle)))}30%{opacity:1}100%{opacity:0;transform:rotate(var(--angle)) translateX(0) scale(.5)}}
@keyframes memory-wrap{from{opacity:0;transform:rotate(-40deg) translateX(-30px)}to{opacity:.9;transform:rotate(0) translateX(0)}}
@keyframes memory-wrap-right{from{opacity:0;transform:scaleX(-1) rotate(-40deg) translateX(-30px)}to{opacity:.9;transform:scaleX(-1) rotate(0) translateX(0)}}
@keyframes memory-ribbon{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:scale(1)}}
@keyframes memory-tag-arrive{from{opacity:0;transform:translateY(14px) rotate(-4deg)}to{opacity:1;transform:translateY(0) rotate(0)}}
@keyframes memory-step{from{opacity:.3}to{opacity:1;background:#e3e9d0;color:#637a51}}
@media(max-width:900px){.play-mode-bar,.memory-flower-tags{grid-column:1/-1}.memory-match-dialog{padding:20px 14px}.memory-table{gap:25px}.memory-pair{font-size:11px}.memory-pair[data-memory-word]{font-size:11px}.memory-listen{width:20px}.memory-word-row{gap:1px}.play-mode-bar{margin:4px 0 10px}.memory-tags-head button{padding:5px 8px}}
@media(prefers-reduced-motion:reduce){.ceremony-gather,.ceremony-paper,.ceremony-ribbon{display:none}.memory-gift-tag,.ceremony-steps li,.memory-reward #result-icon .bouquet-gift{animation:none!important;opacity:1;transform:none}}
