[data-memory-study] .living-atlas__journey-arrival,
[data-memory-study] [data-atlas-journey-ending],
[data-memory-study] [data-atlas-journey-constellation]{display:none!important}
/* Keep every ACT II layer below the opaque boot logo before JS initializes.
   Visibility still belongs to the native ready/open/fail-open lifecycle. */
.home-game[data-memory-study] .home-fallback{isolation:isolate;z-index:0}
/* The secret uses the native world canvases, never the SSR/Atlas layer. */
.home-game[data-memory-edge] .dot-world-canvas{opacity:var(--memory-edge-reveal,1);transition:none}
.home-game[data-memory-edge] .memory-carry{transform:translateY(var(--memory-edge-carry-y,0px))}
/* ACT I is a fixed scene: focusing its bottom controls must not scroll it. */
.home-game[data-memory-study][data-game-ready=true]:not([data-links=open]):not([data-memory-unavailable]){overflow:clip}
.memory-carry{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:12}
.discovery-particle-canvas{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:14}
.home-game[data-memory-map-return=true] .journey-hub-threshold__direction::after{transform:rotate(180deg);transform-origin:center;order:-1}
[data-memory-study][data-links=open] .discovery-particle-canvas{display:none}
@media(prefers-reduced-motion:reduce){.discovery-particle-canvas{display:none}}
.memory-invitation-back{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3}
[data-memory-study][data-links=open] .memory-invitation-back{display:none}
[data-memory-study] .action-hint{visibility:hidden}
[data-memory-study] .journey-space-hint{font-style:italic;font-size:13px;color:#405d53;transition:opacity 180ms ease}
[data-memory-study][data-tone=dark] .journey-space-hint{color:#c2ded9}
[data-memory-study] .journey-space-hint.is-visible{opacity:1}
[data-memory-study] .journey-space-hint i{opacity:.7}
/* Keep functional labels independent of translucent world/ornament colors. */
[data-memory-study] .action-key-signal{--key-ink:#294a3a;--key-paper:#fcfcf8;--key-edge:#738479}
[data-memory-study] .media-sign--taupe .action-key-signal,
[data-memory-study] .media-sign--ojicra .action-key-signal,
[data-memory-study] .journey-discovery[data-world=taupe] .action-key-signal,
[data-memory-study] .journey-discovery[data-world=ojicra] .action-key-signal{--key-ink:#f2f4e9;--key-paper:#14151a;--key-edge:#9aa89f}
[data-memory-study] .action-key-signal .action-key-signal__label{opacity:1;margin:0;color:var(--key-ink);background:var(--key-paper);border-color:var(--key-edge);font:600 11px/1 var(--game-font-ui);letter-spacing:.02em}
[data-memory-study] .media-sign.is-reading .media-sign__enter{opacity:1;max-height:32px;overflow:visible}
[data-memory-study] .journey-discovery a{opacity:1}
[data-memory-study] .journey-discovery a,[data-memory-study] .moss-catch a{min-height:44px;box-sizing:border-box}
[data-memory-study] .journey-discovery > small{opacity:.85}
[data-memory-study] .journey-discovery__intro{color:var(--discovery-ink);opacity:.88}
[data-memory-study] .journey-discovery__cycle{opacity:1}
[data-memory-study] .moss-catch__kicker,[data-memory-study] .moss-catch__intro{color:#52695e}
[data-memory-unavailable] .memory-map,[data-memory-unavailable] [data-memory-tools],[data-memory-unavailable] [data-memory-continue],[data-memory-unavailable] [data-close-home-links],[data-memory-unavailable] [data-atlas-restart]{display:none!important}
.memory-tools{position:absolute;top:100px;left:clamp(24px,5vw,80px);z-index:35;color:#425e55;font-size:13px;max-width:calc(100% - 48px)}
.memory-tools small,.memory-eyebrow,.memory-evidence small{font:10px/1.8 monospace;letter-spacing:.10em}
.memory-tools div{display:flex;gap:18px;flex-wrap:wrap;margin-top:12px}
.memory-tools button,.memory-next button{font:inherit;background:none;border:0;border-bottom:1px solid #9baea4;padding:12px 2px;min-height:44px;color:inherit;cursor:pointer}
.memory-tools p{font-size:12px;line-height:1.8;margin-top:12px;max-width:340px}
[data-memory-study][data-tone=dark] .memory-tools{color:#c0dbd5}
.memory-map{border-bottom:1px solid #d9dfd9;padding:18px 0 52px;margin-bottom:60px;scroll-margin-top:110px}
.memory-map h2{font-family:var(--game-font-poetic);font-weight:400;font-size:clamp(24px,3vw,38px);letter-spacing:.06em;margin:12px 0 14px;line-height:1.6}
.memory-map>p{font-size:13px;line-height:1.9;color:#52685d}.memory-map canvas{display:block;width:100%;height:330px;margin:4px 0 8px}
.memory-evidence{display:grid;grid-template-columns:1fr 1fr;gap:36px;list-style:none;padding:0!important;margin:0!important}.memory-evidence li{border-top:1px solid #cfd8d0;padding-top:14px}.memory-evidence li[data-earned=true]{border-top-color:#588468}.memory-evidence li[data-memory-proof=taupe][data-earned=true]{border-top-color:#318e94}.memory-evidence small{color:#52695e}.memory-evidence p{font-size:13px;line-height:1.9;margin:12px 0}.memory-evidence a{font-size:13px;line-height:1.9;text-decoration:underline;text-underline-offset:4px}
.memory-next{display:flex;align-items:center;flex-wrap:wrap;gap:20px;margin-top:24px;font-size:13px}.memory-next a{padding:12px 0;line-height:1.8}.memory-map .memory-session-note{font-size:11px;margin-top:20px}
.memory-flight{position:fixed;inset:0;z-index:10000;background:transparent;outline:none}.memory-flight canvas{width:100%;height:100%;display:block}.memory-flight[hidden]{display:none}
.memory-flight .living-atlas-transition__character{pointer-events:none}
/* The flying actor hands off to the guide in one frame, without two bodies fading. */
.home-game[data-memory-study][data-atlas=active] .living-atlas__guide{transition:transform 280ms ease}
.memory-tools button:focus-visible,.memory-next button:focus-visible,.memory-map a:focus-visible{outline:2px solid #397e77;outline-offset:5px}
@media(max-width:600px){.memory-tools{top:92px;left:24px}.memory-tools div{gap:12px}.memory-tools button{font-size:12px}.memory-map canvas{height:260px}.memory-evidence{grid-template-columns:1fr;gap:22px}.memory-map{padding-top:4px}.memory-map h2{font-size:25px}.memory-next{align-items:flex-start;flex-direction:column;gap:6px}}
@media(prefers-reduced-motion:reduce){.memory-carry,.memory-invitation-back{display:none}}
[data-memory-study][data-journey-discovery] .memory-tools,
[data-memory-study]:has(.moss-catch.is-visible) .memory-tools{visibility:hidden}
.memory-map{container-type:inline-size}
.memory-map canvas{height:500px}
.memory-evidence{grid-template-columns:repeat(3,minmax(0,1fr))}
@container(max-width:599px){.memory-map canvas{height:660px}.memory-evidence{grid-template-columns:1fr}}
@media(min-width:601px) and (max-height:500px){.memory-tools{top:50px}.memory-tools p{max-width:220px}}
@media(min-width:601px) and (max-height:500px){
  /* Keep the real image and article below language/bookmark controls. */
  .home-game[data-memory-study] .journey-discovery{top:60px;padding-top:20px;padding-bottom:20px}
  .home-game[data-memory-study] .journey-discovery__memory{--memory-top:0px;--memory-width:58px}
}
/* Keep the original animated Atlas guide in its left column during arrival. */
.home-game[data-memory-study][data-links=open][data-atlas=active] .home-fallback{width:100%;padding-left:0;padding-right:0;padding-top:0;margin:0}
[data-memory-study] .living-atlas__content{margin-right:max(48px,calc((100vw - 1180px)/2));margin-top:90px}
[data-memory-study][data-memory-arrival-view=true] .living-atlas__scroll-cue{visibility:hidden!important}
.memory-map{position:relative;z-index:3;width:100%;box-sizing:border-box;container-type:normal;padding:28px 0 26px;margin:0;background:transparent;scroll-margin-top:0;min-height:0;border:0;color:#34413c}
.memory-brand{font:12px/1.6 monospace;letter-spacing:.12em;text-decoration:none;color:#52695e}
.memory-heading{position:relative;z-index:2;pointer-events:none;margin-top:52px}
.memory-heading .memory-eyebrow{font:12px/1.6 monospace;letter-spacing:.12em;color:#52695e;margin:0}
.memory-map h2{font-size:clamp(26px,3.15vw,44px);line-height:1.55;margin:14px 0 0;letter-spacing:.055em;max-width:100%;width:fit-content;text-wrap:balance}
.memory-map h2:focus:not(:focus-visible){outline:none}
.memory-map h2:focus-visible{outline:none}
.memory-sr{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
.memory-landscape{position:relative;margin-top:-10px}
.memory-map .memory-landscape canvas{width:100%;height:clamp(420px,68svh,760px);margin:0}
.memory-place{position:absolute;transform:translateX(-50%);font:11px/1.5 monospace;letter-spacing:.04em;min-height:44px;display:flex;align-items:center;white-space:nowrap;color:#52695e;text-underline-offset:5px;text-decoration:underline}
.memory-place[hidden]{display:none}
.memory-next{justify-content:space-between;align-items:center;margin:14px 0 0;gap:24px;font-size:15px}
.memory-next button{font-size:clamp(15px,1.5vw,20px);padding:8px 0;line-height:1.7;text-align:left;border-color:#588468}
.memory-next p{margin:5px 0 0;font-size:12px;color:#52695e;line-height:1.8}
.memory-next a{color:#52695e;text-decoration:none;display:inline-flex;align-items:center;min-height:44px}
.memory-stories{margin-top:50px;padding-top:18px;border-top:1px solid #e1e5df;color:#52695e;font-size:12px}
.memory-stories summary{cursor:pointer;width:fit-content;padding:12px 0;min-height:44px;box-sizing:border-box}
.memory-stories[open] .memory-evidence{margin-top:24px!important}
.memory-map .memory-session-note{font-size:11px;color:#697b71;margin:16px 0 0}
@media(min-width:601px) and (max-width:900px){.home-game[data-memory-study][data-atlas=active] .living-atlas__content{width:calc(100% - 210px);margin:70px 42px 0 168px}}
@media(max-width:600px){
  .memory-map{padding:24px 0}
  .memory-heading{margin-top:48px}
  .memory-map h2{font-size:26px;max-width:310px}
  .memory-heading .memory-eyebrow{font-size:10px}
  .memory-map .memory-landscape canvas{height:460px}
  .memory-landscape{margin-top:0}
  .memory-place{font-size:10px;letter-spacing:0}
  .memory-next{align-items:flex-start;gap:18px;margin-top:14px}
  .memory-next button{font-size:15px}
  .memory-next a{font-size:12px}
  .memory-evidence{grid-template-columns:1fr}
  .home-game[data-memory-study][data-atlas=active] .living-atlas__content{width:calc(100% - 210px);margin:70px 42px 0 168px}
}
/* One arrival, inside the original Atlas content and common header. */
.memory-tools[hidden],.memory-feature[hidden]{display:none}
.memory-atlas-header{display:flex;align-items:center;justify-content:space-between;gap:24px;flex-wrap:wrap;border-bottom:1px solid #d9dfd9;padding:0 0 24px;scroll-margin-top:24px}
.memory-atlas-header p{font:10px/1.6 var(--game-font-mono);letter-spacing:.1em;color:#52695e;margin:0}
.home-game[data-memory-study][data-atlas=active] .memory-atlas-header .atlas-world-return{margin:0;min-height:44px}
.memory-map{min-height:0;padding-bottom:44px}
.memory-heading{margin-top:22px;pointer-events:auto}
.memory-map h2{font-size:clamp(26px,3.4vw,44px);letter-spacing:.025em;width:100%;text-wrap:wrap}
.memory-arrival-summary{font:14px/1.9 var(--game-font-ui);max-width:680px;color:#52695e;margin:14px 0}
.memory-map .memory-landscape canvas{height:420px}
[data-memory-presentation=journey][data-memory-count="1"] .memory-map .memory-landscape canvas,
[data-memory-presentation=journey][data-memory-count="2"] .memory-map .memory-landscape canvas{height:280px}
[data-memory-count="0"] .memory-landscape,[data-memory-count="0"] .memory-feature{display:none}
.memory-feature{max-width:680px;border-top:1px solid #d9dfd9;padding-top:14px;margin:6px 0 20px;font:14px/1.8 var(--game-font-ui)}
.memory-feature span,.memory-feature small{display:block;font-size:11px;color:#52695e;margin:4px 0}
.memory-feature a{display:inline-block;min-height:44px;color:#34413c;text-underline-offset:5px}
.memory-feature a[href]:hover,.memory-feature a[href]:focus-visible{color:#397e77;text-decoration-color:currentColor}
[data-memory-study] .home-fallback__intro{margin-top:48px}
[data-memory-unavailable] .home-fallback__intro{display:block!important}
.memory-stories{margin-top:24px}
.memory-next{margin-top:8px}
.memory-landscape{container-type:inline-size}
@container(max-width:439px){
  [data-memory-presentation=journey] .memory-map .memory-landscape canvas{height:340px}
  [data-memory-presentation=journey][data-memory-count="1"] .memory-map .memory-landscape canvas,
  [data-memory-presentation=journey][data-memory-count="2"] .memory-map .memory-landscape canvas{height:280px}
}
@media(max-width:600px){
  /* A slimmer, still-present guide column gives the result room to breathe. */
  .memory-map{padding-top:24px}
  .memory-heading{margin-top:22px}
  [data-memory-count]:not([data-memory-count="0"]):not([data-memory-count="1"]):not([data-memory-count="2"]) .memory-map{padding-top:4px}
  [data-memory-count]:not([data-memory-count="0"]):not([data-memory-count="1"]):not([data-memory-count="2"]) .memory-heading{margin-top:4px}
  .memory-atlas-header{gap:12px;padding-bottom:20px;scroll-margin-top:80px}
  .memory-atlas-header p{font-size:9px;letter-spacing:.025em}
  .memory-map h2{font-size:25px;line-height:1.6;word-break:normal;overflow-wrap:anywhere}
  .memory-arrival-summary{font-size:13px;line-height:1.85}
  [data-memory-count]:not([data-memory-count="0"]):not([data-memory-count="1"]):not([data-memory-count="2"]) .memory-atlas-header{gap:8px;padding-bottom:12px}
  [data-memory-count]:not([data-memory-count="0"]):not([data-memory-count="1"]):not([data-memory-count="2"]) .memory-map h2{margin-top:8px}
  [data-memory-count]:not([data-memory-count="0"]):not([data-memory-count="1"]):not([data-memory-count="2"]) .memory-arrival-summary{margin:10px 0}
  .memory-map .memory-landscape canvas{height:420px}
  .memory-feature{font-size:13px}
  .home-game[data-memory-study][data-atlas=active] .living-atlas__content{width:calc(100% - 114px);margin:80px 20px 0 94px}
}
/* Measured utilities/consent clearance, without changing the shared header design. */
.home-game[data-memory-study][data-atlas=active] .living-atlas__content{margin-top:max(90px,var(--memory-header-clearance,24px))}
[data-memory-study] .memory-atlas-header{scroll-margin-top:var(--memory-header-clearance,24px)}
@media(prefers-reduced-motion:reduce){
  /* The global 0.01ms duration creates a transition even on static sections
     (whose default property is "all"). Commit Atlas padding before anchoring. */
  [data-memory-study] .home-fallback__section{transition-property:none!important}
}
@media(min-width:601px) and (max-width:900px){
  .home-game[data-memory-study][data-atlas=active] .living-atlas__content{margin-top:max(70px,var(--memory-header-clearance,80px))}
}
@media(max-width:600px){
  .home-game[data-memory-study][data-atlas=active] .living-atlas__content{margin-top:max(80px,var(--memory-header-clearance,80px))}
  [data-memory-study] .memory-atlas-header{scroll-margin-top:var(--memory-header-clearance,80px)}
}
