.memory-page { color: #f7f9ff; background: #171d26; }
.memory-shell { display: flex; flex-direction: column; gap: 10px; width: min(100%, 670px); height: 100vh; height: 100dvh; min-height: 435px; margin: auto; padding: max(8px, env(safe-area-inset-top)) max(10px, env(safe-area-inset-right)) max(10px, env(safe-area-inset-bottom)) max(10px, env(safe-area-inset-left)); }
.memory-bar { display: flex; flex: none; align-items: center; justify-content: space-between; gap: 9px; min-height: 48px; padding-inline: 4px; }
.memory-bar .wordmark { white-space: nowrap; gap: 6px; font-size: 1rem; }
.memory-bar .logo { scale: .86; }
.memory-question { padding: 6px 10px; border: 1px solid #6d778c; border-radius: 100px; font-weight: 800; white-space: nowrap; }
.memory-secondary { color: #f7f9ff; background: #ffffff10; border-color: #657187; }
.memory-secondary:hover:enabled { background: #ffffff22; }
.memory-primary { padding-inline: 21px; font-size: 1rem; }
.memory-intro, .memory-results { border: 1px solid #435269; border-radius: 26px; background: #242f40; }
.memory-intro { display: grid; align-content: center; flex: 1; padding: clamp(16px, 5vw, 36px); }
.memory-art { display: flex; align-items: center; justify-content: center; gap: 3%; overflow: hidden; background: radial-gradient(ellipse at 50% 12%, #e5f5dc, #b3d0c2 84%); }
.memory-intro .memory-art { height: clamp(112px, 32vh, 270px); border-radius: 20px; }
.memory-art span { width: 13%; height: 59%; border-radius: 50px; rotate: 14deg; background: #76ae7a; box-shadow: 0 5px 13px #20463828, inset 0 1px 3px #ffffff28; }
.memory-art span:nth-child(2) { background: #69a98c; translate: 0 -9%; }
.memory-art span:nth-child(3) { background: #3d886c; translate: 0 7%; }
.memory-art span:nth-child(4) { background: #4e9678; translate: 0 -9%; }
.memory-art span:nth-child(5) { background: #85b58d; }
.memory-intro-copy { padding-top: clamp(18px, 4vw, 34px); }
.memory-intro h1 { font-size: clamp(2.5rem, 10vw, 5rem); }
.memory-intro p { max-width: 34ch; line-height: 1.45; }
.memory-intro .memory-rules { max-width: none; margin-bottom: 0; color: #d5dfed; font-size: .89rem; }
.memory-play { display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 8px; flex: 1; min-height: 0; }
.memory-stage { position: relative; display: grid; place-items: center; overflow: hidden; min-height: 0; border-radius: 23px; background: var(--paint, #eef2fc); color: var(--ink, #171d26); isolation: isolate; }
.memory-stage-copy { text-align: center; padding: 12px; }
.memory-stage-copy h2 { margin: 0; font-size: clamp(1.65rem, 6vw, 2.6rem); letter-spacing: -.04em; }
.memory-stage-copy p { margin: 7px 0 0; font-weight: 700; }
.memory-display { font-size: clamp(2.9rem, 14vw, 6.5rem); line-height: 1; letter-spacing: -.062em; }
.memory-clock { display: flex; gap: 5px; align-items: baseline; justify-content: center; margin-top: 12px; font-variant-numeric: tabular-nums; }
.memory-time { width: min(194px, 63vw); height: 6px; margin: 15px auto 0; border-radius: 99px; background: #ffffff50; overflow: hidden; }
.memory-time span { display: block; width: 100%; height: 100%; transform-origin: left; background: currentColor; }
.memory-mask { position: absolute; inset: 0; display: grid; grid-template-columns: repeat(6, 1fr); grid-template-rows: repeat(8, 1fr); }
.memory-mask span { background: var(--paint); }
.memory-controls { padding: 9px; border: 1px solid #435269; border-radius: 19px; background: #242f40; text-align: center; }
.memory-options { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin-bottom: 9px; }
.memory-option { display: grid; place-items: center; grid-template-rows: minmax(34px, 1fr) auto; width: 100%; min-height: 59px; padding: 3px 3px 2px; border: 2px solid transparent; border-radius: 11px; background: #f6f9ff; color: #1b2230; font-weight: 800; }
.memory-option span { display: block; width: 100%; height: 100%; min-height: 34px; border-radius: 5px; background: var(--paint); border: 1px solid #0004; }
.memory-option[aria-pressed='true'] { border-color: #c9ef85; background: #c9ef85; }
.memory-reveal { position: absolute; inset: 0; display: grid; grid-template-rows: repeat(2, minmax(0, 1fr)); }
.memory-reveal section { display: grid; place-items: center; align-content: center; gap: 7px; padding: 10px 12px; text-align: center; background: var(--paint); color: var(--ink); }
.memory-reveal section > span { font-weight: 800; }
#memory-score { font-size: clamp(2rem, 11vw, 4.5rem); line-height: 1; letter-spacing: -.06em; }
#memory-hint { margin: 5px 0 0; }
.memory-results { flex: 1; overflow: auto; padding: clamp(10px, 3vw, 22px); text-align: center; }
.memory-results h2 { margin: 0 0 5px; }
.memory-total strong { font-size: clamp(2.65rem, 10vw, 4.5rem); letter-spacing: -.07em; line-height: 1; }
#memory-verdict { margin: 5px 0 9px; color: #d5dfed; }
.memory-row-labels, .memory-rows li { display: grid; grid-template-columns: 1fr 1fr 55px; gap: 5px; align-items: center; }
.memory-row-labels { font-size: .85rem; }
.memory-rows { display: grid; gap: 5px; padding: 0; margin: 5px 0 8px; list-style: none; }
.memory-rows li span { height: clamp(20px, 5vh, 45px); border-radius: 7px; background: var(--paint); }
.memory-stats { margin: 0 0 10px; color: #d5dfed; font-size: .89rem; }
.memory-actions { display: flex; justify-content: center; gap: 7px; margin-top: 7px; flex-wrap: wrap; }
.club-card-art.memory-art { display: flex; }
@media (max-width: 350px) { .memory-bar .logo { margin-inline: -3px; } .memory-bar .pill { padding-inline: 9px; } }
