/* Memoria: an open, suspended reliquary, never an inventory grid. */
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .hm-relic-box.memory-sanctuary {
  --memory-gold: #d7c399;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, .85fr);
  align-items: center;
  gap: clamp(18px, 2.8vw, 70px);
  min-height: 0;
  padding: 0 0 22px;
  border: 0;
  background: none;
  box-shadow: none;
  overflow: visible;
  isolation: isolate;
}
.memory-firmament { min-width: 0; position: relative; align-self: start; }
.memory-orbit-field { position: relative; width: min(100%, max(330px, calc(100dvh - 310px))); max-width: 800px; aspect-ratio: 1; margin-inline: auto; isolation: isolate; container: memory-sky / inline-size; }
.memory-nebula { position: absolute; inset: 6%; pointer-events: none; border-radius: 50%; background: radial-gradient(ellipse at 48% 46%, color-mix(in srgb, var(--memory-accent) 9%, transparent), transparent 55%), radial-gradient(ellipse at 38% 57%, #b0c7d10d, transparent 67%); }
.memory-nebula::after { content: ''; position: absolute; inset: 15%; border-radius: 50%; background: conic-gradient(from 20deg, transparent, #c7bd9420 19%, transparent 33%, color-mix(in srgb, var(--memory-accent) 8%, transparent) 60%, transparent 80%); filter: blur(30px); opacity: .65; }
.memory-cartography { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.memory-ticks { stroke: #c2c8c7; stroke-opacity: .23; stroke-width: 1; }
.memory-armillary { stroke-width: .9; }
.memory-compass { stroke-width: 1; }
.memory-thread { stroke: #b9c9d1; stroke-opacity: .13; stroke-width: .8; transition: stroke .3s, stroke-opacity .3s, stroke-width .3s; }
.memory-thread.is-awakened { stroke: var(--memory-accent); stroke-opacity: .25; stroke-dasharray: 2 9; }
.memory-thread.is-selected { stroke: #f0d9a9; stroke-opacity: .8; stroke-width: 1.5; stroke-dasharray: none; filter: drop-shadow(0 0 4px var(--memory-accent)); }
.memory-pole-label { position: absolute; top: 1%; left: 0; color: #b8c5c174; font: 500 9px/1.4 Montserrat, sans-serif; letter-spacing: .22em; }
.memory-stars { position: absolute; inset: 8%; pointer-events: none; }
.memory-stars i { position: absolute; left: var(--star-x); top: var(--star-y); width: 2px; height: 2px; border-radius: 50%; background: #f1deae; box-shadow: 0 0 6px #e6d8a96b; opacity: .35; }

.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-node {
  position: absolute;
  z-index: 4;
  left: var(--node-x);
  top: var(--node-y);
  width: calc(clamp(44px, 15cqw, 126px) * var(--node-size));
  min-width: 44px;
  aspect-ratio: 1;
  height: auto;
  min-height: 0;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 50%;
  background: none;
  box-shadow: none;
  color: #a8b8be;
  cursor: pointer;
  outline: none;
  transform: translate(-50%, -50%);
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.memory-node-position { position: absolute; inset: 0; display: block; }
.memory-bubble { position: absolute; inset: 0; display: grid; place-items: center; border-radius: 50%; background: radial-gradient(ellipse at 27% 18%, #e1ecf916, #19334412 27%, #0c1c25a8 68%, #9cbdd00c 91%); border: 1px solid #bad4dc38; box-shadow: inset 0 1px 2px #eef5ff21, inset 0 -10px 22px #01080e51, 0 12px 25px #00000024; transition: border-color .35s, box-shadow .35s, background .35s, transform .35s; }
.memory-bubble::before { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 1px solid #9eb5be0e; pointer-events: none; }
.memory-bubble::after { content: ''; position: absolute; width: 37%; height: 12%; left: 17%; top: 8%; border-radius: 50%; transform: rotate(-33deg); background: linear-gradient(#edf3fb30, #c1e2f100); pointer-events: none; }
.memory-bubble-rim { position: absolute; inset: -1px; border-radius: 50%; border: 1px solid transparent; border-top-color: #eff8ff5c; border-right-color: #c7dce729; transform: rotate(-38deg); pointer-events: none; }
.memory-asset { position: relative; display: block; width: 81%; height: 81%; object-fit: contain; filter: grayscale(1) brightness(.98) contrast(1.06) drop-shadow(0 6px 5px #0007); opacity: .88; transition: filter .45s, opacity .45s, transform .4s; user-select: none; }
.memory-numeral { position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%); color: #a9b8ba8a; font: 12px/1 Georgia, serif; letter-spacing: .12em; transition: color .3s; }
.memory-spark { position: absolute; width: 4px; height: 4px; border-radius: 50%; top: 5%; right: 19%; background: var(--memory-accent); box-shadow: 0 0 12px 3px color-mix(in srgb, var(--memory-accent) 45%, transparent); opacity: 0; }
.memory-node:is(:hover, :focus-visible, .is-selected) { z-index: 5; }
.memory-node:is(:hover, :focus-visible, .is-selected) .memory-bubble { border-color: #e9d6aa9e; box-shadow: inset 0 1px 2px #fff6d947, inset 0 -10px 22px #01080e51, 0 0 26px #d6c7a51a; transform: scale(1.09); }
.memory-node:is(:hover, :focus-visible, .is-selected) .memory-asset { opacity: 1; filter: grayscale(1) brightness(1.1) drop-shadow(0 5px 8px #0008); }
.memory-node:is(:hover, :focus-visible, .is-selected) .memory-numeral { color: #f1d9a3; }
.memory-node:focus-visible .memory-bubble::before { border-color: #f0dfb9; inset: -7px; border-style: dashed; }
.memory-node.is-awakened .memory-bubble { border-color: color-mix(in srgb, var(--memory-accent) 54%, #d6c08a 12%); background: radial-gradient(ellipse at 26% 18%, #fff7d522, transparent 29%), radial-gradient(circle at 50% 60%, color-mix(in srgb, var(--memory-accent) 14%, #10232e), #112a3680 70%); box-shadow: inset 0 1px 2px #fff9df4f, inset 0 -10px 22px #01080e51, 0 0 22px color-mix(in srgb, var(--memory-accent) 16%, transparent); }
.memory-node.is-awakened .memory-bubble::before { border-color: color-mix(in srgb, var(--memory-accent) 15%, transparent); }
.memory-node.is-awakened .memory-bubble-rim { border-top-color: #ffefbbbf; border-right-color: color-mix(in srgb, var(--memory-accent) 55%, transparent); }
.memory-node.is-awakened .memory-asset, .memory-node.is-awakened:is(:hover, :focus-visible, .is-selected) .memory-asset { filter: drop-shadow(0 5px 7px #0009); opacity: 1; }
.memory-node.is-awakened .memory-spark { opacity: .9; }
.memory-node.is-awakened .memory-numeral { color: #d9c797; }

.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .journey-relic-shrine { position: absolute; z-index: 2; inset: 29% 31% 33% 29%; width: auto; min-height: 0; height: auto; margin: 0; pointer-events: none; }
.memory-sanctuary .journey-relic-shrine::before { width: 132%; max-width: none; border-color: #d5c49b42; box-shadow: 0 0 0 10px #bfc9c104, 0 0 0 11px #c8c8ae13, inset 0 0 50px #b6cfd209; }
.memory-sanctuary .journey-relic-shrine::after { bottom: -10%; opacity: .7; }
.memory-sanctuary .journey-relic-orbit { display: none; }
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .hm-relic-img,
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .journey-relic-shrine.is-active > .hm-relic-img { width: 100%; height: 100%; max-width: none; object-fit: contain; margin: 0; filter: drop-shadow(0 0 20px #c5d1b833); }
.memory-heart-caption { position: absolute; z-index: 3; top: 68%; left: 29%; width: 40%; text-align: center; pointer-events: none; }
.memory-heart-caption > span { display: block; color: #b9cccb86; font: 600 8px/1.4 Montserrat, sans-serif; letter-spacing: .19em; text-transform: uppercase; }
.memory-heart-caption strong { display: block; margin-top: 8px; color: #e9ddbd; font: clamp(12px, 1.06vw, 21px)/1.4 var(--at-serif, Georgia, serif); text-wrap: balance; }
.memory-orbit-hint { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 2px 0 0; color: #a8bdbb8f; font: 500 10px/1.5 Montserrat, sans-serif; letter-spacing: .08em; }
.memory-orbit-hint svg { width: 14px; height: 14px; stroke: #d7c39991; stroke-width: 1; }
.memory-orbit-hint > i { width: 45px; height: 1px; background: linear-gradient(90deg, #d7c3995c, transparent); }

.memory-journal { position: relative; min-width: 0; padding: 22px 0 22px clamp(20px, 2vw, 42px); border-left: 1px solid #b4c9c520; }
.memory-journal::before { content: ''; position: absolute; top: 0; left: -3px; width: 5px; height: 5px; transform: rotate(45deg); background: #d3c19c; box-shadow: 0 0 12px #d3c19c3b; }
.memory-eyebrow { display: block; color: #d3c399; font: 600 clamp(10px, .48vw, 13px)/1.6 Montserrat, sans-serif; letter-spacing: .17em; text-transform: uppercase; }
.memory-collection-total { display: flex; align-items: center; gap: 13px; margin-top: 14px; }
.memory-collection-total > strong { color: #eae1c7; font: 46px/1 var(--at-serif, Georgia, serif); font-variant-numeric: tabular-nums; font-weight: 400; }
.memory-collection-total > span { color: #8ea4ad; font: 15px/1.4 var(--at-serif, Georgia, serif); }
.memory-collection-total small { display: block; margin-top: 2px; color: #9ab0b6; font: 500 clamp(10px, .48vw, 13px)/1.6 Montserrat, sans-serif; letter-spacing: .06em; }
.memory-seals { display: flex; align-items: center; gap: 12px; margin: 22px 0 30px 2px; }
.memory-seals i { position: relative; width: 5px; height: 5px; flex: 0 0 5px; border: 1px solid #8fa4ac6b; transform: rotate(45deg); transition: background .4s, box-shadow .4s; }
.memory-seals i.is-awakened { background: var(--memory-accent); border-color: #f0deb4; box-shadow: 0 0 8px var(--memory-accent); }
.memory-detail-slot { position: relative; min-height: 290px; display: grid; align-items: center; }
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .hm-relic-info { grid-area: 1 / 1; width: 100%; flex: none; transition: opacity .22s, transform .3s, filter .3s; }
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .hm-relic-overline { color: #8db5b4; font-size: 9px; letter-spacing: .13em; }
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .hm-relic-name { margin: 12px 0 20px; font: clamp(25px, 1.9vw, 39px)/1.25 var(--at-serif, Georgia, serif); text-wrap: balance; }
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary :is(.hm-relic-locked-msg, .hm-relic-hint) { color: #a2b7c2; font-size: 12px; line-height: 1.8; }
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .hm-relic-progress-label { font-size: 11px; color: #c4d2d6; }
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .hm-relic-stat-row { padding: 11px 0; font-size: 12px; }
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .hm-relic-charm-row { font-size: 12px; margin-top: 18px; }
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .hm-relic-upgrade-btn { min-height: 42px; padding: 10px 12px; font-size: 12px; margin-top: 12px; }
.memory-inspector { position: relative; grid-area: 1 / 1; display: flex; flex-direction: column; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(8px); pointer-events: none; transition: opacity .25s, transform .3s, visibility .25s; }
.memory-sanctuary.is-inspecting .hm-relic-info { opacity: 0; filter: blur(3px); transform: translateY(-6px); pointer-events: none; }
.memory-sanctuary.is-inspecting .memory-inspector { opacity: 1; visibility: visible; transform: translateY(0); pointer-events: auto; }
.memory-inspector-top { display: flex; align-items: center; gap: 17px; margin: 0 0 18px; }
.memory-inspector-art { position: relative; display: grid; place-items: center; width: 82px; height: 82px; flex: 0 0 82px; background: radial-gradient(ellipse, #d0c49a12, transparent 70%); }
.memory-inspector-art::before { position: absolute; inset: 5px; border: 1px solid #d5c49b33; content: ''; border-radius: 50%; }
.memory-inspector-art img { width: 94%; height: 94%; object-fit: contain; filter: grayscale(1) brightness(.92) drop-shadow(0 5px 9px #0008); }
.memory-inspector.is-awakened .memory-inspector-art img { filter: drop-shadow(0 0 15px color-mix(in srgb, var(--memory-accent) 25%, transparent)); }
.memory-item-state { display: flex; gap: 6px; align-items: center; margin-top: 8px; color: #8fa6b1; font: 11px/1.5 Montserrat, sans-serif; }
.memory-item-state svg { width: 12px; height: 12px; stroke: currentColor; stroke-width: 1.2; }
.memory-inspector.is-awakened .memory-item-state { color: var(--memory-accent); }
.sanctuary #sanctuary-drawer #hm-wrap .memory-inspector h3 { margin: 0 0 14px; color: #f0e2bf; font: clamp(24px, 1.8vw, 36px)/1.2 var(--at-serif, Georgia, serif); text-wrap: balance; letter-spacing: 0; }
.memory-item-story { margin: 0 0 17px; color: #a6b9bf; font: 12px/1.8 Montserrat, sans-serif; }
.memory-bond { padding-top: 17px; border-top: 1px solid #b3c7cc1e; }
.memory-bond > span { display: flex; align-items: center; gap: 7px; color: #9db3b4; font: 600 8px/1.5 Montserrat, sans-serif; letter-spacing: .1em; text-transform: uppercase; }
.memory-bond svg { width: 13px; height: 13px; stroke: #cbb88f; stroke-width: 1; }
.memory-bond strong { display: block; color: #d7c8a6; font: 17px/1.5 var(--at-serif, Georgia, serif); margin-top: 8px; }
.memory-bond p { color: #879fa9; font: 11px/1.7 Montserrat, sans-serif; margin: 6px 0 0; }
.memory-preview-controls { padding-top: 28px; margin-top: 12px; }
.memory-growth { margin-top:18px; padding-top:15px; border-top:1px solid #d6c99b35; font:12px/1.6 Arial,sans-serif; }
.memory-growth-line { display:grid;grid-template-columns:1fr auto;gap:6px 18px;color:#9eb7bc; }
.memory-growth-line strong { color:#e4d8b7;font-weight:400; }
.memory-stat-bond { display:flex;flex-direction:column;gap:4px;margin:16px 0 10px;color:#a5cfc4; }
.memory-stat-bond strong { font-size:21px;color:#ecdfbd; }
.memory-stat-bond strong small { color:#9fdcc9;font-size:14px; }
.memory-stat-bond>small,.memory-unlock-band { color:#8fa7ac;font-size:10px; }
.memory-development-cost { color:#d6c9a6;font-size:11px;margin:12px 0; }
.memory-develop { width:100%;min-height:46px;padding:12px 18px;border:1px solid #d8c59c77;background:linear-gradient(120deg,#dcd0ac,#9ab7a6);color:#0d2933;font:12px Arial,sans-serif;cursor:pointer; }
.memory-develop:disabled { opacity:.4;cursor:default; }
.memory-action-note { color:#b1c5c8;font:11px/1.6 Arial,sans-serif;min-height:18px;margin:9px 0 0; }
.memory-return { align-self:flex-start;background:none;border:0;border-bottom:1px solid #a8bfc047;color:#9bb8bd;font:11px Arial,sans-serif;padding:12px 0;min-height:44px;cursor:pointer; }
.memory-refresh { display:block;min-height:44px;padding:10px 0;background:none;border:0;color:#94b8b8;font:11px Arial,sans-serif;cursor:pointer; }
.hm-keepsake-bonus { display:block;color:#91d6c1;font-size:9px;font-weight:400;margin-top:3px; }
.hm-relic-action-error { color:#e6bda0;font-size:11px; }
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-preview-button { display: inline-flex; align-items: center; gap: 9px; min-height: 41px; padding: 10px 16px; margin: 0; border: 1px solid #caba9766; border-radius: 30px; background: #d1c09a08; box-shadow: inset 0 1px #fbefd90c; color: #d9caa7; font: 500 11px/1.5 Montserrat, sans-serif; cursor: pointer; transition: background .2s, border-color .2s; }
.memory-preview-button svg { width: 15px; height: 15px; stroke: currentColor; stroke-width: 1.2; }
.memory-preview-button > i { width: 5px; height: 5px; border: 1px solid #d6c8a57a; border-radius: 50%; margin-left: 4px; }
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-preview-button:hover { background: #e0cc9917; border-color: #d9c399aa; }
.memory-preview-button:focus-visible { outline: 2px solid #e5d4ab; outline-offset: 5px; }
.memory-preview-button[aria-pressed="true"] > i { background: var(--memory-accent); border-color: #f0dba8; box-shadow: 0 0 10px var(--memory-accent); }
.memory-preview-controls > p { max-width: 270px; margin: 13px 0 0; color: #8fa8af; font: 10px/1.8 Montserrat, sans-serif; }
.memory-sanctuary.is-preview .memory-collection-total > strong { color: #f1dfb8; text-shadow: 0 0 30px color-mix(in srgb, var(--memory-accent) 30%, transparent); }

/* Successful development: spectral copies, a tempered seal, then a relic pulse. */
.memory-development-vfx { position:fixed; left:0; top:0; z-index:32; display:block; width:100%; height:100%; pointer-events:none; background:transparent; border:0; max-width:none; max-height:none; }
.memory-node.is-memory-gathering { z-index:6; }
.memory-node.is-memory-gathering .memory-node-position,
.memory-node.is-memory-gathering .memory-asset { animation-play-state:paused !important; }
.memory-node.is-memory-tempered .memory-bubble { border-color:#fff0c2; box-shadow:inset 0 0 22px #b3e7d62e,0 0 26px #f1d3995c,0 0 65px color-mix(in srgb,var(--memory-accent) 30%,transparent); }
.memory-node.is-memory-tempered .memory-numeral { color:#fff0c2; text-shadow:0 0 16px #ffe2a1; }
.memory-inspector.is-memory-tempered .memory-inspector-art::before { border-color:#f7dfaa; box-shadow:0 0 22px #e9d49a36; }
.memory-orbit-hint.is-memory-celebrating { color:#f3dfb3 !important; letter-spacing:.04em; }
.memory-orbit-hint.is-memory-celebrating svg { stroke:#a6ead8; filter:drop-shadow(0 0 5px #9ee9dc80); }
.memory-orbit-hint.is-memory-celebrating>i { background:linear-gradient(90deg,#f6dfad,#9ee9dc55,transparent); }
@keyframes memory-tempering {
  0% { transform:scale(1); filter:brightness(1); }
  24% { transform:scale(1.16) translateY(-2px); filter:brightness(1.55) drop-shadow(0 0 13px #ffe3a6); }
  62% { transform:scale(1.04); filter:brightness(1.13) drop-shadow(0 0 9px #a6ead8); }
  100% { transform:scale(1); filter:brightness(1); }
}
@keyframes memory-stat-revelation {
  0%,100% { text-shadow:0 0 0 transparent; }
  30% { text-shadow:0 0 20px #f4dfb1b3,0 0 38px #a5ead65c; }
}
@keyframes memory-relic-resonance {
  0%,100% { filter:drop-shadow(0 0 20px #c5d1b833); }
  32% { filter:brightness(1.25) drop-shadow(0 0 25px #f5daa36b) drop-shadow(0 0 42px #9ee9dc45); }
}
@media (prefers-reduced-motion:no-preference) {
  .memory-node.is-memory-tempered .memory-asset,
  .memory-inspector.is-memory-tempered .memory-inspector-art img { animation:memory-tempering 1400ms cubic-bezier(.18,.7,.2,1) both !important; }
  .memory-inspector.is-memory-tempered .memory-stat-bond>strong,
  .memory-inspector.is-memory-tempered .memory-growth-line strong { animation:memory-stat-revelation 1500ms ease-out both !important; }
  .sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary.is-memory-resonating .journey-relic-shrine.is-active>.hm-relic-img { animation:memory-relic-resonance 1450ms ease-out both !important; }
}

@keyframes memory-suspend { 0%, 100% { transform: translate3d(0, 0, 0) rotate(-1deg); } 50% { transform: translate3d(var(--node-drift), -7px, 0) rotate(1.5deg); } }
@keyframes memory-lens { from { transform: rotate(-38deg); } to { transform: rotate(322deg); } }
@keyframes memory-sparkle { 0%, 100% { opacity: .25; transform: scale(.65); } 50% { opacity: .95; transform: scale(1.3); } }
@keyframes memory-flow { to { stroke-dashoffset: -110; } }
@keyframes memory-asset-float { 0%, 100% { transform: translateY(1px); } 50% { transform: translateY(-3px); } }
@keyframes memory-vapour { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: no-preference) {
  .memory-node-position { animation: memory-suspend var(--node-period) ease-in-out var(--node-delay) infinite !important; }
  .memory-node:is(:hover, :focus-within, .is-selected) .memory-node-position { animation-play-state: paused !important; }
  .memory-node.is-awakened .memory-bubble-rim { animation: memory-lens 15s linear var(--node-delay) infinite !important; }
  .memory-node.is-awakened .memory-asset { animation: memory-asset-float 5s ease-in-out var(--node-delay) infinite !important; }
  .memory-node.is-awakened .memory-spark { animation: memory-sparkle 4s ease-in-out var(--node-delay) infinite !important; }
  .memory-thread.is-awakened:not(.is-selected) { animation: memory-flow 16s linear infinite !important; }
  .memory-stars i { animation: memory-sparkle 6s ease-in-out var(--star-delay) infinite !important; }
  .memory-nebula::after { animation: memory-vapour 90s linear infinite !important; }
}
/* Profile-wide type rules target every paragraph; keep this composition's hierarchy. */
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .memory-orbit-hint { font: 500 clamp(10px, .55vw, 14px)/1.5 Montserrat, sans-serif; letter-spacing: .08em; }
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .memory-preview-controls > p { font: clamp(11px, .54vw, 14px)/1.8 Montserrat, sans-serif; }
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .memory-bond p { font: clamp(11px, .52vw, 14px)/1.7 Montserrat, sans-serif; }
.sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .memory-item-story { font: clamp(12px, .55vw, 15px)/1.8 Montserrat, sans-serif; }
.memory-sanctuary.is-paused *, .memory-sanctuary.is-paused *::before, .memory-sanctuary.is-paused *::after,
.sanctuary.sanctuary-motion-paused .memory-sanctuary *, .sanctuary.sanctuary-motion-paused .memory-sanctuary *::before, .sanctuary.sanctuary-motion-paused .memory-sanctuary *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) { .memory-sanctuary *, .memory-sanctuary *::before, .memory-sanctuary *::after { animation: none !important; transition: none !important; } }

@container sanctuary-panel (max-width: 85rem) {
  .sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .hm-relic-box.memory-sanctuary { grid-template-columns: minmax(0, 1.35fr) minmax(245px, .8fr); gap: 18px; }
  .memory-journal { padding-left: 22px; }
  .memory-collection-total > strong { font-size: 38px; }
  .memory-collection-heading .memory-eyebrow { font-size: 8px; }
  .memory-seals { gap: 10px; margin-block: 19px 24px; }
  .memory-detail-slot { min-height: 270px; }
}
@container sanctuary-panel (max-width: 65rem) {
  .sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .hm-relic-box.memory-sanctuary { grid-template-columns: minmax(0, 1.5fr) minmax(230px, .8fr); gap: 18px; }
  .sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-node { width: calc(clamp(44px, 15cqw, 80px) * var(--node-size)); }
  .memory-journal { padding: 12px 0 12px 19px; }
  .memory-preview-controls { padding-top: 16px; }
  .memory-inspector-top { gap: 11px; margin-bottom: 12px; }
  .memory-inspector-art { width: 65px; height: 65px; flex-basis: 65px; }
  .memory-heart-caption strong { font-size: 13px; }
  .memory-item-story { font-size: 11px; }
}
@container sanctuary-panel (max-width: 48rem) {
  .sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .hm-relic-box.memory-sanctuary { grid-template-columns: minmax(0, 1.35fr) minmax(210px, .85fr); gap: 13px; }
  .memory-collection-total > strong { font-size: 32px; }
  .memory-collection-total { margin-top: 9px; gap: 9px; }
  .memory-detail-slot { min-height: 255px; }
  .memory-seals { gap: 9px; margin-block: 15px 20px; }
  .memory-journal { padding-left: 15px; }
  .memory-pole-label, .memory-heart-caption > span { font-size: 7px; }
  .memory-orbit-hint { font-size: 9px; }
  .sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-sanctuary .hm-relic-name { font-size: 25px; }
  .sanctuary #sanctuary-drawer #hm-wrap .memory-inspector h3 { font-size: 23px; }
}
@container sanctuary-panel (max-width: 36rem) {
  .sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .hm-relic-box.memory-sanctuary { grid-template-columns: minmax(0, 1fr); gap: 30px; }
  .memory-orbit-field { max-width: 500px; }
  .sanctuary #sanctuary-drawer[data-category="heroMastery"] #hm-wrap .memory-node { width: calc(clamp(44px, 15cqw, 75px) * var(--node-size)); }
  .memory-journal { margin-inline: 12px; padding-left: 22px; }
  .memory-detail-slot { min-height: 245px; }
  .memory-preview-controls > p { max-width: 100%; }
}
@media (max-height: 850px) {
  .memory-journal { padding-block: 12px; }
  .memory-collection-total > strong { font-size: 34px; }
  .memory-collection-total { margin-top: 10px; }
  .memory-seals { margin-block: 15px 20px; }
  .memory-detail-slot { min-height: 205px; }
  .memory-preview-controls { padding-top: 12px; margin-top: 8px; }
  .memory-preview-controls > p { margin-top: 10px; }
}
