/* First Moment — independent, no changes to game layout */
.first-moment{width:min(92%,510px);max-width:510px;max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);overflow:auto;overscroll-behavior:contain;border:1px solid #c9785a99;border-radius:22px;padding:clamp(16px,4vw,28px);background:radial-gradient(ellipse at 80% 0,#4a2a3b,#201522 60%,#17101b);color:#f5e3c4;box-shadow:0 24px 80px #0009;margin:auto}
.first-moment::backdrop{background:#0e0a14dc}.fm-top{display:flex;justify-content:space-between;align-items:center;gap:8px;flex-wrap:wrap}.fm-top .textbtn{min-height:44px;text-decoration:underline;text-underline-offset:3px}.fm-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin:10px 0}.fm-steps i{height:4px;background:#725045;border-radius:8px}.fm-steps i.filled{background:#e3a47f}.fm-story{text-align:center;margin:12px 0 18px}.fm-mark{display:grid;place-items:center;width:58px;height:58px;margin:0 auto 12px;border:1px solid #c9785a99;border-radius:50%;color:#e3a47f;font:36px/1 Georgia,serif}.fm-story h2{font:normal clamp(29px,7vw,43px)/1.13 var(--display,Georgia,serif);overflow-wrap:anywhere;margin:8px 0 14px}.fm-story p{font-size:15px;line-height:1.55;color:#e5cfc6}.fm-actions{display:flex;flex-wrap:wrap;gap:8px;margin:12px 0}.fm-actions button{flex:1 1 110px;min-width:0;white-space:normal;overflow-wrap:anywhere;min-height:44px}.fm-demo{padding:14px;background:#2b1c2e;border:1px solid #c9785a77;border-radius:14px;text-align:center}.fm-demo>p:first-of-type{font:normal clamp(23px,6vw,32px)/1.2 var(--display,Georgia,serif);margin:10px 0 14px}.fm-demo #fmFeedback{font-size:13px;line-height:1.5;color:#e5cfc6;margin:6px 0}.fm-entry{border-color:#c9785a88}.first-moment :focus-visible{outline:2px solid #f5d3a6;outline-offset:3px}.first-moment #fmTitle:focus{outline:none}.first-moment .hint{line-height:1.6;color:#d6bfc5}@media(max-height:480px){.fm-mark{width:40px;height:40px;font-size:26px}.fm-story{margin:6px 0}.first-moment{padding:14px}}