.memory-arena { --ma-paper: #f6f3ea; --ma-ink: #172b24; --ma-muted: #52655b; --ma-line: #c8cec2; --ma-accent: #91421d; --ma-tint: #e0eadc; color: var(--ma-ink); background: var(--ma-paper); }
.memory-arena [hidden] { display: none !important; }
.memory-arena .shell { max-width: 1160px; }
.memory-arena button, .memory-arena select, .memory-arena input { accent-color: var(--ma-ink); }
.memory-arena :is(button, a, input, select, summary):focus-visible { outline: 3px solid var(--ma-accent); outline-offset: 4px; }
.memory-arena ::selection { color: var(--ma-paper); background: var(--ma-ink); }
.memory-arena { scrollbar-color: #748777 var(--ma-paper); caret-color: var(--ma-accent); }
.memory-arena a { text-underline-offset: .2em; }
.ma-skip { position: absolute; top: -5rem; left: 1rem; padding: .8rem; background: var(--ma-paper); z-index: 2; }
.ma-skip:focus { top: 1rem; }
.ma-nav { justify-content: space-between; min-height: 64px; }
.ma-intro { margin: 1.5rem 0 1rem; max-width: 56rem; }
.ma-intro h1 { margin: 0 0 .65rem; font-size: clamp(2.5rem, 5.5vw, 4.4rem); line-height: 1.05; letter-spacing: -.025em; }
.ma-intro p { max-width: 46rem; font-size: 1.15rem; line-height: 1.55; }
.ma-status { min-height: 2.8rem; margin-bottom: 1rem; overflow-wrap: anywhere; }
.ma-status[data-error=true] { color: #842d20; }
.ma-recovery, .ma-confirm { margin: 0 0 1.5rem; }
.ma-confirm p { margin-top: 0; }
.ma-welcome { max-width: 52rem; margin-top: 2rem; }
.ma-welcome p, .ma-welcome li { line-height: 1.65; }
.ma-welcome li + li { margin-top: .5rem; }
.ma-welcome .button { margin-top: 1rem; }
.ma-route { list-style: none; margin: 1.6rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--ma-line); gap: 1.4rem; }
.ma-route li { padding: 0 0 .85rem; color: var(--ma-muted); font-size: .9rem; }
.ma-route li[aria-current=step] { color: var(--ma-ink); font-weight: 700; border-bottom: 3px solid var(--ma-ink); }
.ma-route small { display: block; margin-top: .25rem; font-weight: 400; }
.ma-mission { display: flex; align-items: start; justify-content: space-between; gap: 3rem; padding: 2rem 0 1.25rem; }
.ma-mission h2 { margin: 0 0 .65rem; font-size: clamp(1.7rem, 3vw, 2.4rem); }
.ma-mission p { margin: 0; max-width: 65ch; line-height: 1.6; }
.ma-budget { display: flex; gap: 2rem; flex-shrink: 0; margin: 0; font-variant-numeric: tabular-nums; }
.ma-budget dt { font-size: .85rem; color: var(--ma-muted); margin-bottom: .4rem; }
.ma-budget dd { margin: 0; font-size: 1.6rem; font-weight: 600; white-space: nowrap; }
.ma-conditions { border-top: 1px solid var(--ma-line); padding-top: 1rem; margin-bottom: 1.5rem; }
.ma-conditions h3 { margin: 0 0 .5rem; }
.ma-conditions ul { display: flex; flex-wrap: wrap; gap: .45rem 1.5rem; padding-left: 1.1rem; margin: 0; color: var(--ma-muted); line-height: 1.55; }
.ma-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin: 2.1rem 0 .8rem; }
.ma-section-head h2 { margin: 0; font-size: 1.65rem; }
.ma-section-head p { margin: .5rem 0 0; color: var(--ma-muted); line-height: 1.5; }
.ma-count { font-variant-numeric: tabular-nums; font-weight: 700; white-space: nowrap; }
.ma-loadout { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .6rem; padding: 0; margin: 0 0 1rem; }
.ma-loadout li { min-height: 60px; border: 1px solid var(--ma-line); border-radius: 12px; display: flex; align-items: center; padding: .8rem; gap: .65rem; }
.ma-loadout li.ma-empty { color: var(--ma-muted); border-style: dashed; }
.ma-loadout li span { flex: 1; min-width: 0; font-size: .92rem; }
.ma-remove { border: 0; padding: .4rem; background: transparent; color: var(--ma-accent); text-decoration: underline; text-underline-offset: .2em; cursor: pointer; min-height: 36px; font-size: .8rem; }
.ma-remove:hover { background: transparent; text-decoration-thickness: 2px; }
.ma-quiet:hover { text-decoration: underline; text-underline-offset: .2em; }
.ma-deploy { flex-wrap: wrap; margin-bottom: 1rem; }
.ma-quiet { background: transparent !important; color: var(--ma-ink) !important; border: 1px solid var(--ma-line) !important; }
.memory-arena button:disabled { cursor: not-allowed; opacity: .55; }
.ma-filter { display: flex; align-items: center; gap: .6rem; color: var(--ma-muted); font-size: .9rem; }
.ma-filter select { max-width: 100%; padding: .65rem; border: 1px solid var(--ma-line); border-radius: 8px; background: var(--ma-paper); color: var(--ma-ink); font: inherit; }
.ma-collection-help { max-width: 70ch; line-height: 1.5; }
.ma-memories { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 2.25rem; }
.ma-memory { padding: 1rem 0 1.1rem; border-top: 1px solid var(--ma-line); min-width: 0; }
.ma-memory[data-selected=true] .ma-memory-label { color: var(--ma-accent); }
.ma-memory-label { display: flex; align-items: flex-start; gap: .7rem; font-weight: 600; cursor: pointer; line-height: 1.4; }
.ma-memory-label input { width: 19px; height: 19px; min-height: 19px; padding: 0; flex-shrink: 0; margin: .15rem 0 0; }
.ma-memory-label span { flex: 1; }
.ma-memory-label small { font-weight: 400; font-size: .8rem; white-space: nowrap; }
.ma-memory p { margin: .65rem 0 .5rem 1.9rem; line-height: 1.55; font-size: .92rem; }
.ma-memory details { margin-left: 1.9rem; font-size: .84rem; line-height: 1.55; }
.ma-memory summary { cursor: pointer; color: var(--ma-muted); padding: .25rem 0; }
.ma-memory details p { margin: .45rem 0; }
.ma-result { background: var(--ma-tint); border-radius: 14px; padding: 1.5rem; margin: .6rem 0 1.8rem; }
.ma-result[data-outcome=missed] { background: #f2e7da; }
.ma-result h3 { margin: 0 0 .5rem; font-size: 1.5rem; }
.ma-result p { margin: 0 0 1rem; max-width: 65ch; line-height: 1.5; }
.ma-traces { margin: 2.5rem 0 1rem; }
.ma-traces > p { max-width: 70ch; line-height: 1.5; }
.ma-traces > ol { list-style: none; padding: 0; }
.ma-trace { border-top: 1px solid var(--ma-line); padding: 1.3rem 0; }
.ma-trace h3 { margin: 0 0 .5rem; font-size: 1.15rem; }
.ma-trace p { max-width: 72ch; line-height: 1.55; }
.ma-trace blockquote { margin: .8rem 0; padding: 0; color: var(--ma-muted); line-height: 1.55; }
.ma-trace details > summary { cursor: pointer; padding: .3rem 0; font-weight: 600; }
.ma-ranking { list-style: decimal; padding-left: 1.5rem; margin: .7rem 0; }
.ma-ranking li { padding: .5rem 0; }
.ma-ranking p { margin: .25rem 0 0; color: var(--ma-muted); font-size: .88rem; }
.ma-ranking strong { font-weight: 600; }
.ma-ranking .ma-chosen { color: var(--ma-accent); }
.ma-summary { padding: 1rem 0 2rem; }
.ma-summary h2 { font-size: 2rem; margin-bottom: .5rem; }
.ma-summary ol { padding: 0; list-style: none; margin: 1.5rem 0; }
.ma-summary li { padding: 1rem 0; border-top: 1px solid var(--ma-line); }
.ma-summary li p { margin-bottom: 0; color: var(--ma-muted); line-height: 1.5; }
.ma-method { border-top: 1px solid var(--ma-line); margin-top: 3rem; padding: 1.25rem 0 3rem; }
.ma-method summary { cursor: pointer; font-weight: 600; padding: .25rem 0; }
.ma-method p { max-width: 72ch; line-height: 1.6; color: var(--ma-muted); }
@media (max-width: 700px) { .ma-mission { display: block; padding-top: 1.5rem; } .ma-budget { margin-top: 1.2rem; gap: 2rem; } .ma-route { gap: .7rem; } .ma-route li { font-size: .8rem; } .ma-loadout { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ma-memories { grid-template-columns: 1fr; } .ma-section-head { flex-wrap: wrap; align-items: center; } .ma-filter { width: 100%; } .ma-filter select { flex: 1; } }
@media (max-width: 390px) { .ma-loadout { grid-template-columns: 1fr; } .ma-route li { overflow-wrap: anywhere; } .ma-memory-label small { white-space: normal; max-width: 3.5rem; } .ma-deploy .button { width: 100%; } }
@media (prefers-reduced-motion: no-preference) { .ma-result { animation: ma-reveal .28s cubic-bezier(.16, 1, .3, 1) both; } @keyframes ma-reveal { from { clip-path: inset(0 0 7% 0); } to { clip-path: inset(0); } } }
