/* Connect → share → Memory Card, within the existing recovery panel. */
.restore-panel h1:focus{outline:none}
.restore-application{width:100%;max-width:940px;margin:auto;display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:center;gap:48px}
.restore-application .restore-heading{font-size:clamp(30px,3.5vw,44px);line-height:1.12;max-width:430px}
.restore-response-field{min-width:0;display:flex;flex-direction:column}
.restore-response-label{margin-bottom:12px;color:#bfb6b0;font:10px/1.5 Silkscreen,monospace;letter-spacing:.08em}
.restore-response-input{display:block;box-sizing:border-box;width:100%;min-height:230px;max-height:360px;resize:vertical;padding:18px;border:1px solid #b4a59c50;border-radius:0;background:linear-gradient(145deg,#44322d33,#0b090bcc);box-shadow:inset 0 1px #fff3e80d;color:#f5f1e9;font:16px/1.65 'Geist Mono',monospace;caret-color:#e75858;transition:border-color .2s,box-shadow .2s;scrollbar-width:thin;scrollbar-color:#93413a #141010}
.restore-response-input::placeholder{color:#948983}
.restore-response-input:focus{outline:none;border-color:#e75858;box-shadow:inset 0 0 0 1px #e7585833,0 0 24px #b51e241a}
.restore-response-limit{min-height:18px;margin:8px 0 12px;color:#ef8984;font:11px/1.6 'Geist Mono',monospace}
.restore-application .restore-response-continue:disabled{opacity:.38;cursor:default;box-shadow:none}
.restore-response-continue:disabled:hover{background:#d94449;box-shadow:none}
@media(max-width:700px){.restore-content:has(.restore-application){padding:20px}.restore-application{grid-template-columns:1fr;gap:20px;margin:auto 0}.restore-application .restore-tag{font-size:9px;margin-bottom:10px}.restore-application .restore-heading{font-size:clamp(25px,6.6vw,32px);max-width:100%;text-wrap:pretty}.restore-application .restore-watermark{font-size:112px;top:-22px}.restore-response-label{font-size:9px;margin-bottom:8px}.restore-response-input{height:clamp(152px,25dvh,230px);min-height:152px;max-height:none;resize:none;padding:14px;line-height:1.5}.restore-response-limit{font-size:10px;margin:6px 0 10px}.restore-response-continue{min-height:48px}}
@media(max-width:700px) and (max-height:620px){.restore-content:has(.restore-application){padding:12px 20px}.restore-application{gap:12px}.restore-application .restore-heading{font-size:22px}.restore-response-label{margin-bottom:6px}.restore-response-input{height:120px;min-height:120px;padding:12px}.restore-response-limit{margin-bottom:4px}.restore-application .restore-response-continue{min-height:46px;padding:9px 14px}}
.memory-unlock h1{font-size:clamp(32px,3.7vw,48px);line-height:1.03;max-width:440px}
.memory-unlock-description{font:13px/1.75 'Geist Mono',monospace;color:#bfb6b0;margin:18px 0 22px;max-width:none}
.memory-unlock:not(.is-connecting) .memory-primary{margin-top:26px}
.memory-unlock-steps{list-style:none;padding:0;margin:0 0 22px;border-top:1px solid #e758582e}
.memory-unlock-steps li{display:flex;align-items:center;gap:13px;min-height:58px;padding:5px 0;border-bottom:1px solid #e758582e;color:#8e817a}.memory-step-number{display:grid;place-items:center;width:27px;height:27px;flex:none;border:1px solid #8e817a55;font:10px 'Share Tech Mono',monospace}.memory-unlock-steps li>div{flex:1;min-width:0}.memory-unlock-steps strong{display:block;font:11px/1.3 Silkscreen,monospace;font-weight:400}.memory-unlock-steps div>span{display:block;margin-top:6px;font:11px/1.3 'Chakra Petch',sans-serif}.memory-step-status{font:8px 'Share Tech Mono',monospace;letter-spacing:.08em}.memory-unlock-steps .is-current{color:#f5f1e9}.memory-unlock-steps .is-current .memory-step-number{color:#f5f1e9;border-color:#e75858;background:#9c292d}.memory-unlock-steps .is-current .memory-step-status{color:#e75858}.memory-unlock-steps .is-complete{color:#dfd7ce}.memory-unlock-steps .is-complete .memory-step-number{border-color:#f5f1e955;background:#f5f1e911}.memory-unlock-steps .is-complete .memory-step-status{color:#f5f1e9}
.memory-primary{width:100%;min-height:49px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 18px;box-sizing:border-box;background:#d94449;border:1px solid #f2807b;box-shadow:inset 0 1px #ffb2a94d,0 0 22px #b51e2433;color:#fff3ed;cursor:pointer;font:12px/1.3 Silkscreen,monospace;letter-spacing:.03em;text-align:left}.memory-primary:hover{background:#ed575c;box-shadow:0 0 28px #c9363a44}.memory-primary[aria-disabled="true"]{opacity:.6;cursor:wait}.memory-primary>span:last-child{font-size:20px}
.memory-unlock-secondary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:17px}.memory-text-button{border:0;background:none;padding:3px 0;color:#b3a6a0;font:9px/1.5 Silkscreen,monospace;letter-spacing:.025em;cursor:pointer}.memory-text-button:hover{color:#f5f1e9}.memory-text-button[aria-disabled="true"]{opacity:.5;cursor:wait}.memory-demo-label{display:inline-block;font:8px/1 'Share Tech Mono',monospace;letter-spacing:.1em;padding:5px 7px;border:1px solid #a6998f33;color:#a6998f;white-space:nowrap}.memory-demo-explanation{font:10px/1.6 'Geist Mono',monospace;color:#94857e;margin:14px 0}.memory-auth{box-sizing:border-box;width:min(100%,470px);margin:auto;padding:27px 30px;border:1px solid #e758583d;background:linear-gradient(135deg,#29151980,#0c090b);box-shadow:0 20px 50px #0004}.memory-auth-top{display:flex;align-items:center;justify-content:space-between;margin-bottom:23px}.memory-x-logo{font:36px/1 'Geist',sans-serif;color:#f5f1e9}.memory-auth .restore-tag{font-size:10px;margin-bottom:10px}.memory-auth h1{font:600 34px/1.05 'Chakra Petch',sans-serif;margin:0;letter-spacing:-.03em}.memory-auth .memory-unlock-description{font-size:12px;margin:15px 0 20px}.memory-demo-profile{display:flex;align-items:center;gap:12px}.memory-demo-profile>div{min-width:0;flex:1}.memory-demo-profile strong{display:block;font:500 15px 'Chakra Petch',sans-serif;color:#f5f1e9}.memory-demo-profile div>span{display:block;font:10px 'Geist Mono',monospace;color:#ad9d96;margin-top:3px}.memory-profile-avatar{display:grid;place-items:center;width:38px;height:38px;border:1px solid #f4a19b66;background:#912329;color:#fff;font:20px Silkscreen,monospace;flex:none}.memory-profile-tag{font:8px 'Share Tech Mono',monospace;color:#bb8b81}.memory-auth>.memory-demo-profile{background:#f3c5ac08;border:1px solid #e1baad26;padding:14px}.memory-cancel{display:block;margin:16px auto 0}.memory-share-layout .restore-card-mount{width:min(100%,285px)}.memory-share-layout h1{font-size:clamp(32px,3.7vw,46px);max-width:420px}.memory-share-layout .restore-tag{font-size:11px}.memory-attachment-label{text-align:center;color:#ac8c81;font:9px Silkscreen,monospace;margin:18px 0 0}.memory-tweet{border:1px solid #bda89f35;border-radius:9px;background:#080708a6;padding:20px;margin:22px 0}.memory-tweet .memory-profile-avatar{width:32px;height:32px;font-size:17px}.memory-tweet .memory-x-logo{font-size:24px}.memory-tweet p{font:16px/1.6 'Chakra Petch',sans-serif;color:#e8e0da;margin:22px 0}.memory-tweet-footer{display:flex;justify-content:space-between;gap:10px;border-top:1px solid #bda89f22;padding-top:13px;font:9px 'Share Tech Mono',monospace;letter-spacing:.08em;color:#b38679}
.memory-save-icon{position:relative;width:78px;height:94px;border:2px solid #e75858;border-radius:8px 8px 17px 17px;background:linear-gradient(135deg,#7d202e,#2d1015);box-shadow:0 0 25px #e7585833}.memory-save-icon span{position:absolute;inset:12px 17px auto;height:14px;border:1px solid #e75858}.memory-save-icon i{position:absolute;inset:40px 12px 15px;background:#e7585822;border:1px solid #e75858}
.memory-reward{width:100%;max-width:980px;margin:auto;display:grid;grid-template-columns:1.1fr 1fr;align-items:center;gap:38px}.memory-reward-object{min-width:0}.memory-reward-copy{min-width:0}.memory-reward-copy .restore-tag{font-size:11px;margin-bottom:15px}.memory-reward h1{font:600 clamp(36px,4vw,52px)/1.02 'Chakra Petch',sans-serif;letter-spacing:-.04em;margin:0;color:#f5f1e9}.memory-reward-description{font:13px/1.8 'Geist Mono',monospace;color:#bfaea5;margin:22px 0}.memory-reward-identity{padding:16px 0;border-top:1px solid #b2645638;border-bottom:1px solid #b2645638}.memory-reward-identity strong{display:block;color:#eee2d8;font:500 20px/1.3 'Chakra Petch',sans-serif}.memory-reward-checks{display:flex;flex-wrap:wrap;gap:10px 18px;margin:20px 0;font:9px Silkscreen,monospace;color:#c9b7ab}.memory-spin-toggle{border:1px solid #a27a693d;background:#ac6d4a0a;padding:10px 12px;color:#dfcbbf;font:9px Silkscreen,monospace;cursor:pointer}.memory-spin-toggle:hover{border-color:#e75858;background:#e7585811}.memory-reward .memory-demo-explanation{font-size:8px;letter-spacing:.1em;margin-bottom:0}
@media(max-width:700px){.memory-unlock .restore-card-mount{width:min(65%,210px)}.memory-unlock h1{font-size:34px;max-width:360px;margin:auto}.memory-unlock-description{font-size:12px;margin:15px auto 20px}.memory-unlock-steps{text-align:left;margin-bottom:20px}.memory-unlock-steps li{gap:10px;min-height:60px}.memory-unlock-steps strong{font-size:9px}.memory-unlock-steps div>span{font-size:10px}.memory-step-status{font-size:7px}.memory-unlock-secondary{gap:8px}.memory-text-button{font-size:8px}.memory-primary{font-size:11px;min-height:48px}.memory-auth{padding:22px 18px}.memory-auth h1{font-size:30px}.memory-demo-profile div>span{font-size:9px}.memory-share-layout .restore-card-mount{width:min(58%,190px)}.memory-share-layout h1{font-size:32px}.memory-tweet{text-align:left;padding:16px;margin:18px 0}.memory-tweet p{font-size:15px}.memory-reward{grid-template-columns:1fr;gap:18px}.memory-reward-copy{text-align:center}.memory-reward h1{font-size:37px}.memory-reward-description{font-size:11px;margin:16px 0}.memory-reward-identity strong{font-size:19px}.memory-reward-checks{justify-content:center;font-size:8px}.memory-reward-copy .restore-tag{font-size:10px}.memory-reward-identity{padding:13px 0}.memory-reward .memory-demo-explanation{margin-bottom:10px}}
/* Reserve space for the share action before sizing the card on shorter phones. */
@media(max-width:700px){
  .restore-content:has(.memory-unlock:not(.is-connecting)){padding:12px 20px 16px}
  .memory-unlock:not(.is-connecting){flex:1;min-height:0;margin:0 auto;grid-template-rows:minmax(0,1fr) auto;gap:12px;align-items:center}
  .memory-unlock:not(.is-connecting) .restore-card-mount{width:min(64%,205px,max(94px,calc((100dvh - 390px) * .72)))}
  .memory-unlock:not(.is-connecting) .restore-result-copy{width:100%;align-self:end}
  .memory-unlock:not(.is-connecting) .restore-tag{font-size:9px;line-height:1.5;margin:0 0 6px}
  .memory-unlock:not(.is-connecting) h1{font-size:clamp(20px,6.3vw,28px);line-height:1.06;max-width:360px;margin:0 auto}
  .memory-unlock:not(.is-connecting) .memory-primary{min-height:46px;margin-top:12px;padding:10px 14px;font-size:clamp(10px,2.8vw,11px)}
  .memory-unlock:not(.is-connecting) .memory-primary>span:last-child{font-size:18px;line-height:1.1}
  .memory-unlock:not(.is-connecting) .memory-unlock-secondary{justify-content:center;margin-top:6px}
  .memory-unlock:not(.is-connecting) .memory-text-button{min-height:26px;padding:4px 0}
}
@media(max-height:650px) and (min-width:701px){.memory-unlock h1,.memory-share-layout h1{font-size:34px}.memory-unlock-description{font-size:11px;margin:12px 0 14px}.memory-unlock-steps{margin-bottom:14px}.memory-unlock-steps li{min-height:48px}.memory-auth{padding:20px 26px}.memory-auth-top{margin-bottom:15px}.memory-reward{gap:26px}.memory-reward h1{font-size:38px}.memory-reward-description{font-size:11px;margin:16px 0}.memory-reward-identity{padding:11px 0}.memory-reward-checks{margin:15px 0}}

/* The full lore and its action occupy their final footprint while text types.
   Keep the card animation intact; shorter phones reserve space for Continue. */
.memory-lore-copy{min-width:0}
.memory-lore-description{display:grid;grid-template-columns:minmax(0,1fr);max-width:40ch;margin:20px 0 0;color:#c8bfba;font:19px/1.6 'Geist Mono',monospace;text-wrap:pretty}
.memory-lore-reserve,.memory-lore-typed{grid-area:1 / 1;min-width:0;overflow-wrap:break-word}
.memory-lore-reserve{visibility:hidden;pointer-events:none;user-select:none}
.memory-lore-reserve::after,.memory-lore-cursor{display:inline-block;width:.55em;height:.95em;margin-left:.15em;vertical-align:-.08em}
.memory-lore-reserve::after{content:""}
.memory-lore-cursor{background:var(--accent,#e75858);box-shadow:0 0 9px #e7585838;animation:memoryLoreBlink .85s step-end infinite}
@keyframes memoryLoreBlink{0%,48%{opacity:1}49%,100%{opacity:0}}
@media(max-width:700px){
  .memory-unlock.is-lore .memory-lore-copy{text-align:center}
  .memory-lore-description{max-width:36ch;margin:10px auto 0;font-size:16px;line-height:1.45}
}
@media(max-height:650px) and (min-width:701px){.memory-lore-description{margin-top:15px;font-size:17px;line-height:1.5}}
@media(prefers-reduced-motion:reduce){.memory-lore-cursor{animation:none;opacity:1}}

/* Reserve the button before it appears so typing never shifts the card or copy. */
.memory-lore-action{display:grid;align-items:start;min-height:49px;margin-top:26px}
.memory-unlock .memory-lore-action .memory-primary{margin-top:0}
@media(max-width:700px){
  .restore-content:has(.memory-unlock.is-lore){padding-top:8px;padding-bottom:10px}
  .memory-unlock.is-lore{gap:8px}
  .memory-unlock.is-lore .restore-card-mount{width:min(64%,205px,max(94px,calc((100dvh - 450px) * .72)))}
  .memory-unlock.is-lore .memory-lore-description{margin-top:8px}
  .memory-lore-action{min-height:46px;margin-top:10px}
}

/* Keep the recovered archetype's story beside the finished Memory Card. */
.memory-reward-copy>.memory-reward-identity{margin-top:24px}
.memory-reward-lore{max-width:43ch;margin:12px 0 0;color:#bfaea5;font:13px/1.65 'Geist Mono',monospace;overflow-wrap:break-word;text-wrap:pretty}
@media(max-width:700px){.memory-reward-lore{margin:10px auto 0;font-size:12px;line-height:1.6}}
/* Real sign-in and share check: an error above CONNECT X, and CHECKING POST blinking until the post is found. */
.memory-connect-error{margin:0 0 14px}
.memory-primary[aria-disabled="true"]{opacity:.6;cursor:wait}
.memory-check-pending{animation:toastBlink 1.2s steps(2) infinite}
.memory-check-done{color:#9fe6b4}
@media(prefers-reduced-motion:reduce){.memory-check-pending{animation:none}}
/* The share screen's note: the person attaches the saved card to their post (X can't take it from the link). */
.memory-share-note{font:10px/1.6 'Geist Mono',monospace;color:#94857e;margin:10px 0 0;max-width:420px}

/* Tasks (decision 16): after CONNECT X, before the player card. */
.memory-tasks{width:100%;max-width:560px;margin:auto;text-align:center}@media(min-width:701px){.memory-tasks{max-width:none}.memory-tasks h1{white-space:nowrap;max-width:none}.memory-tasks .memory-task-list,.memory-tasks .memory-task-continue{max-width:560px;margin-left:auto;margin-right:auto}}
.memory-tasks h1{font:600 clamp(32px,3.7vw,48px)/1.03 'Chakra Petch',sans-serif;letter-spacing:-.035em;margin:0 0 26px;color:#f5f1e9}
.memory-task-list{list-style:none;margin:0;padding:0;display:grid;gap:10px;text-align:left}
.memory-task{display:flex;align-items:center;gap:16px;min-height:66px;padding:10px 12px 10px 16px;box-sizing:border-box;border:1px solid #b4a59c3b;background:linear-gradient(145deg,#44322d40,#110e0d99);box-shadow:inset 0 1px #fff3e80d;transition:border-color .15s}
.memory-task.is-done{border-color:#e7585899}
.memory-task-number{flex:none;color:#9c8e88;font:11px 'Share Tech Mono',monospace}
.memory-task-copy{flex:1;min-width:0}.memory-tasks .memory-task-copy strong{display:block;color:#f5f1e9;font:500 17px/1.3 'Chakra Petch',sans-serif;letter-spacing:0}.memory-tasks .memory-task-copy>span{display:block;margin-top:3px;color:#9c8e88;font:11px/1.4 'Geist Mono',monospace}
.memory-task-button{flex:none;display:flex;align-items:center;justify-content:space-between;gap:14px;min-width:112px;min-height:38px;padding:8px 12px;box-sizing:border-box;border:1px solid #f5f1e9cc;background:none;color:#f5f1e9;font:10px/1 Silkscreen,monospace;letter-spacing:.04em;cursor:pointer}
.memory-task-button:hover{background:#f5f1e914}.memory-task-button>span:last-child{font-size:15px}
.memory-task.is-done .memory-task-button{border-color:#e75858;color:#e75858}
.memory-tasks .memory-task-continue{margin-top:14px}
.memory-tasks .memory-task-continue:disabled{background:#2a1f1f;border-color:#4a3634;color:#8e817a;box-shadow:none;cursor:default}
@media(max-width:700px){.memory-tasks{margin:auto 0}.memory-tasks h1{font-size:30px;margin-bottom:18px}.memory-task{gap:12px;padding:8px 10px 8px 12px;min-height:60px}.memory-tasks .memory-task-copy strong{font-size:14px}.memory-tasks .memory-task-copy>span{font-size:10px}.memory-task-button{min-width:88px;gap:8px;font-size:9px}}
.memory-tasks .memory-tasks-tag{margin:0 0 12px}
.memory-tasks .memory-task-connect{margin:0 0 14px}@media(min-width:701px){.memory-tasks .memory-task-connect{max-width:560px;margin-left:auto;margin-right:auto}}
.memory-tasks .memory-task-connected{justify-content:center;align-items:center;min-height:49px;margin:0 0 14px;box-sizing:border-box}
.memory-task.is-locked{opacity:.4}.memory-task.is-locked .memory-task-button{cursor:default}.memory-task.is-locked .memory-task-button:hover{background:none}
.memory-tasks .memory-connect-error{margin:-4px 0 14px;text-align:center}
/* NEAR WALLET: the written answer's field, one line. */
.restore-response-field .restore-near-input{height:auto;min-height:0;max-height:none;resize:none;padding:16px 18px;line-height:1.4;text-transform:lowercase}
.restore-response-field .restore-near-input::placeholder{text-transform:none}
.restore-near-input[aria-invalid="true"]{border-color:#ef8984}
@media(max-width:700px){.restore-response-field .restore-near-input{height:auto;min-height:0;padding:14px}}
/* NEAR placeholder (Tyler mc4e568febccb): while the field is empty, the two examples fade into each other; the
   real placeholder (both examples) is what assistive tech reads, and what reduced motion shows instead. */
.restore-near-box{position:relative}
.restore-near-hint{position:absolute;inset:0;display:none;align-items:center;padding:16px 19px;border:1px solid transparent;pointer-events:none;color:#948983;font:16px/1.4 'Geist Mono',monospace;white-space:nowrap;overflow:hidden}
.restore-near-hint span{grid-area:1/1;animation:near-a 5s ease-in-out infinite}
.restore-near-hint span+span{animation-name:near-b}
.restore-near-input:placeholder-shown+.restore-near-hint{display:grid}
.restore-response-field .restore-near-input:placeholder-shown::placeholder{color:transparent}
@keyframes near-a{0%,40%{opacity:1}50%,90%{opacity:0}100%{opacity:1}}
@keyframes near-b{0%,40%{opacity:0}50%,90%{opacity:1}100%{opacity:0}}
@media(max-width:700px){.restore-near-hint{padding:14px 15px}}
@media(prefers-reduced-motion:reduce){.restore-near-input:placeholder-shown+.restore-near-hint{display:none}.restore-response-field .restore-near-input:placeholder-shown::placeholder{color:#948983}}
/* Both examples on one line in a phone-wide field: the field is the viewport less 124px wide inside; the text is ~21em. */
@media(prefers-reduced-motion:reduce) and (max-width:700px){.restore-response-field .restore-near-input::placeholder{font-size:min(14px,calc((100vw - 124px) / 21.5))}}
