/* Locked card stays at one measured position through waiting/success/failure. */
body.card-collected .page{height:calc(100dvh - 84px);max-height:none;overflow:auto;padding-bottom:8px}body.card-collected .page>.bar{flex:none}body.card-collected .card-result{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;height:auto;overflow:visible;gap:8px;padding:0 0 16px;position:relative}body.card-collected #result-topic{display:none}body.card-collected #card-face-slot{flex:none;width:min(320px,calc((100dvh - 290px)*.716));min-width:180px;margin:0 auto;position:relative}body.card-collected #card-face-slot .card-face{width:100%;height:auto;max-height:none;aspect-ratio:63/88}body.card-collected .result-links{position:absolute;top:0;right:0;display:flex;gap:4px;flex-direction:column}body.card-collected .result-links button{min-height:44px;min-width:44px;font-size:12px;background:var(--card-material-color-1);border-radius:12px;padding:4px 8px}body.card-collected #card-image-note{display:none}body.card-collected #card-image{width:100%;text-align:center;max-width:480px;margin:0;padding:0}body.card-collected #card-image h2{font:600 20px/1.4 var(--serif);margin:0 0 4px}body.card-collected #card-image p{font:12px/1.5 system-ui;margin:4px 0}body.card-collected .dock-status{display:none}body.card-collected .dock-in{display:block}body.card-collected .result-actions{display:flex;width:100%;gap:10px}body.card-collected .result-actions button{flex:1;min-height:48px;font-size:16px}body.card-collected #make-image{background:var(--card-btn);color:var(--card-on-btn)}.collect-progress{width:72%;height:4px;overflow:hidden;margin:8px auto;background:var(--card-material-color-2);border-radius:2px}.collect-progress i{display:block;height:100%;width:45%;background:var(--card-material-color-3);animation:collect-progress 3s ease-in-out infinite}.collect-tools{margin-top:12px;text-align:left}.collect-tools>summary{min-height:44px;cursor:pointer;font-size:14px}.collect-tools button{min-height:44px;font-size:14px}.collect-receipt{color:var(--card-material-color-4)}.collect-title.failed{color:var(--card-material-color-5)}.collect-title.done{color:var(--card-material-color-6)}#lock-summary{font:12px/1.4 system-ui}#lock-summary button{font:16px system-ui;min-height:44px;text-decoration:underline}.seal-motion{pointer-events:none!important}.seal-motion.playing *{animation-duration:1200ms!important}.seal-motion.playing .motion-actions{display:none}#page.sealing{animation:none}.dock.sealing{animation-duration:1200ms}.sealing #card{transform-origin:center;animation:collect-paper 1200ms both}.sealing #card .fill-rows,.sealing #card .fill-heading{animation:collect-fade 400ms both}.motion-glyph{font-size:16px}.seal-motion.playing .motion-card{animation-duration:1200ms!important}
@keyframes collect-paper{0%,20%{transform:scale(1);opacity:1}70%,100%{transform:translate(var(--collect-dx,0),var(--collect-dy,0)) scale(var(--collect-scale,.6));opacity:0}}@keyframes collect-fade{to{opacity:0}}@keyframes collect-progress{50%{transform:translateX(120%)}}
.card-completion-banner{position:fixed;z-index:100;top:60px;left:12px;right:12px;max-width:520px;margin:auto;display:flex;align-items:center;gap:8px;padding:12px;background:var(--card-material-color-7);border:1px solid var(--card-material-color-8);border-radius:14px;color:var(--card-material-color-9);font:14px/1.5 system-ui;touch-action:pan-y}.card-completion-banner.failed{background:var(--card-material-color-10);border-color:var(--card-material-color-11);color:var(--card-material-color-12)}.card-completion-banner p{flex:1;margin:0}.card-completion-banner a,.card-completion-banner button{min-height:44px;min-width:44px;display:flex;align-items:center;justify-content:center;font-size:14px;border:0;background:none;color:inherit}.home-card-progress{display:block;min-height:44px;padding:12px;border:1px solid var(--card-material-color-13);border-radius:14px;font:14px/1.5 system-ui;color:var(--card-material-color-14);background:var(--card-material-color-15);margin:0 0 12px}[data-card-notice=ready]:after,[data-card-notice=failed]:after{content:'';position:absolute;width:7px;height:7px;border-radius:50%;background:var(--card-material-color-16)}[data-card-notice=failed]:after{background:var(--card-material-color-17)}.notebook-card-face{width:min(240px,100%);margin:auto}.notebook-ready-label{color:var(--card-material-color-16)}.notebook-failed-label{color:var(--card-material-color-18)}.notebook-leaving{animation:notebook-out .3s forwards}@keyframes notebook-out{to{opacity:0;transform:translateY(-6px)}}
@media(max-height:680px){body.card-collected #card-face-slot{width:210px;min-width:0}body.card-collected .page{padding-top:4px}body.card-collected .card-result{gap:4px}body.card-collected #card-image p{margin:3px 0}body.card-collected .result-links{right:0}}@media(prefers-reduced-motion:reduce){.seal-motion.playing *,.sealing #card,.dock.sealing{animation-duration:300ms!important}.seal-motion.playing .motion-shine{display:none!important}.seal-motion.playing .motion-stamp{animation:collect-fade-in 300ms both!important;transform:none!important}.sealing #card{animation:collect-fade 300ms both!important}.collect-progress i{animation:none}.notebook-leaving{animation:none}}@keyframes collect-fade-in{from{opacity:0}to{opacity:1}}
.card-flower-tip{position:absolute;z-index:8;top:8px;left:50%;transform:translateX(-50%);width:max-content;max-width:min(90vw,360px);padding:10px 14px;border-radius:12px;background:var(--card-material-color-7);border:1px solid var(--card-material-color-8);color:var(--card-material-color-9);box-shadow:0 4px 18px var(--card-material-color-21);font:12px/1.5 system-ui;text-align:center;pointer-events:none}

/* Duration is component configuration; only the animation name belongs to
   .playing. Removing that class must not reset the reduced duration to 0s. */
.seal-motion .motion-stamp{animation-duration:1200ms!important}
@media(prefers-reduced-motion:reduce){.seal-motion .motion-stamp{animation-duration:300ms!important}}

/* The lock receipt owns a row instead of overflowing the 59px status column.
   Reserve the same space on both filling faces, including short phones. */
body:has(#card):not(.card-collected){grid-template-rows:minmax(0,1fr) calc(124px + env(safe-area-inset-bottom))}
body:has(#card):not(.card-collected) .dock{height:calc(124px + env(safe-area-inset-bottom));min-height:124px}
body:has(#card):not(.card-collected) .dock-in{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:44px 59px;column-gap:8px;row-gap:4px;height:107px;min-height:107px}
body:has(#card):not(.card-collected) .dock .main{max-width:none;max-width:48vw;grid-column:2;grid-row:2}
#lock-summary{grid-column:1/-1;grid-row:1;display:flex;align-items:center;justify-content:space-between;gap:8px;min-width:0;height:44px}
#lock-summary span{min-width:0;overflow-wrap:anywhere}
#lock-summary button{flex:none;min-width:64px;padding:0 8px;white-space:nowrap}
