:root {
  --memory-accent: #7c6ff7;
  --memory-accent-rgb: 124, 111, 247;
}

.memory-page { padding-bottom: 64px; }
.memory-header h1 { letter-spacing: -.03em; }
.memory-mode-row { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; align-items:center; }
.memory-mode-row .game-nav-actions { margin-left:auto; }

.memory-stage {
  display:grid;
  grid-template-columns:minmax(0,1fr) 270px;
  align-items:start;
  gap:24px;
  min-height:590px;
}
.memory-play { min-width:0; padding:10px 0 30px; }
.memory-stage.is-results { grid-template-columns:minmax(0,1fr); }
.memory-stage.is-results .memory-sidebar,.memory-stage.is-omega .memory-sidebar { display:none; }
.memory-stage.is-omega { grid-template-columns:minmax(0,1fr); }
.memory-stage.is-omega .memory-play { padding-top:0; }
.memory-sidebar {
  position:sticky;
  top:18px;
  display:grid;
  gap:10px;
}
.memory-metrics { display:grid; grid-template-columns:1fr 1fr; gap:10px; }
.memory-metric { margin:0; padding:13px 8px; text-align:center; }
.memory-metric strong,.memory-metric span { display:block; }
.memory-metric strong { color:var(--memory-accent); font-size:1.55rem; line-height:1.1; font-weight:900; font-variant-numeric:tabular-nums; }
.memory-metric span { margin-top:4px; color:var(--text3,var(--text2)); font-size:.65rem; font-weight:800; letter-spacing:.08em; text-transform:uppercase; }
.memory-control-panel { margin:0; padding:16px; background:linear-gradient(145deg,rgba(var(--memory-accent-rgb),.075),transparent 55%),var(--surface,#17172a); }
.memory-stage__head { margin-bottom:14px; }
.memory-stage__head h2 { margin:0 0 4px; font-size:1.45rem; line-height:1.08; }
.memory-stage__head p { margin:0; color:var(--text2); font-size:.78rem; line-height:1.5; }
.memory-sidebar-controls { display:grid; gap:8px; margin-bottom:12px; }
.memory-sidebar-controls [hidden] { display:none; }
.memory-sidebar-controls label { display:grid; gap:7px; color:var(--text2); font-size:.67rem; font-weight:850; letter-spacing:.08em; text-transform:uppercase; }
.memory-sidebar-controls select { width:100%; min-width:0; padding:6px 8px; border:1px solid var(--border); border-radius:8px; background:var(--surface2,#24243a); color:var(--text); font:inherit; font-size:.75rem; font-weight:750; text-transform:none; letter-spacing:0; }
.memory-choice-row,.memory-choice-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:6px; }
.memory-choice-grid { grid-template-columns:repeat(3,minmax(0,1fr)); }
.memory-choice-row--four { grid-template-columns:repeat(4,minmax(0,1fr)); }
.memory-choice { min-width:0; padding:7px 5px; border:1px solid var(--border2,var(--border)); border-radius:8px; background:var(--surface2,#24243a); color:var(--text2); font:inherit; font-size:.72rem; font-weight:800; letter-spacing:0; text-transform:none; cursor:pointer; transition:border-color .15s,background .15s,color .15s,box-shadow .15s; }
.memory-choice:hover { border-color:var(--memory-accent); color:var(--text); }
.memory-choice.active { border-color:var(--memory-accent); background:rgba(var(--memory-accent-rgb),.14); color:var(--memory-accent); box-shadow:0 0 0 1px rgba(var(--memory-accent-rgb),.22); }
.memory-choice:disabled { opacity:.45; cursor:not-allowed; }
.memory-new-game { width:100%; justify-content:center; }
.memory-notice[hidden] { display:none; }
.memory-notice { min-height:36px; display:flex; align-items:center; justify-content:center; margin:8px 0 0; padding:7px 9px; border-radius:10px; background:rgba(0,0,0,.2); color:var(--text2); font-size:.73rem; font-weight:700; text-align:center; }
.memory-notice.is-good { color:#86efac; background:rgba(34,197,94,.12); }
.memory-notice.is-bad { color:#fca5a5; background:rgba(239,68,68,.12); }

.memory-panel { display:none; animation:memory-in .22s ease; }
.memory-panel.active { display:block; }
@keyframes memory-in { from { opacity:0; transform:translateY(6px); } to { opacity:1; transform:none; } }

.simon-layout { display:grid; grid-template-columns:minmax(280px,470px); align-items:center; justify-content:center; padding:10px 0 20px; }
.simon-board {
  position:relative; isolation:isolate; overflow:hidden;
  width:min(72vw,450px); aspect-ratio:1; display:grid; grid-template-columns:1fr 1fr; gap:15px; padding:17px;
  border:2px solid #050507; border-radius:50%;
  background:linear-gradient(145deg,#252832 0%,#101116 44%,#050507 100%);
  box-shadow:0 24px 55px rgba(0,0,0,.72), inset 0 6px 16px rgba(255,255,255,.13), inset 0 -14px 24px rgba(0,0,0,.86), 0 0 0 2px rgba(255,255,255,.025);
  -webkit-mask-image:-webkit-radial-gradient(white,black); mask-image:radial-gradient(white,black);
}
.simon-pad { position:relative; z-index:1; border:0; cursor:pointer; opacity:1; transition:filter .06s,transform .06s,box-shadow .06s; box-shadow:inset 7px 8px 16px rgba(255,255,255,.27),inset -12px -13px 22px rgba(0,0,0,.62),0 10px 16px rgba(0,0,0,.48); }
.simon-pad::after { content:""; position:absolute; inset:9% 10% 51%; border-radius:inherit; background:linear-gradient(155deg,rgba(255,255,255,.17),transparent 62%); pointer-events:none; }
.simon-pad:disabled { cursor:default; }
.simon-pad--green { background:radial-gradient(circle at 35% 30%,#36b75d,#076b2f 72%); border-radius:100% 10px 10px 10px; }
.simon-pad--red { background:radial-gradient(circle at 35% 30%,#e15656,#8e151f 72%); border-radius:10px 100% 10px 10px; }
.simon-pad--yellow { background:radial-gradient(circle at 35% 30%,#edbd32,#9c6604 72%); border-radius:10px 10px 10px 100%; }
.simon-pad--blue { background:radial-gradient(circle at 35% 30%,#4098ec,#124b9b 72%); border-radius:10px 10px 100% 10px; }
.simon-pad.is-lit { filter:brightness(1.65) saturate(1.35); transform:scale(.98) translateY(2px); box-shadow:0 0 38px currentColor,inset 6px 7px 14px rgba(255,255,255,.5),inset -8px -9px 17px rgba(0,0,0,.32); }
.simon-pad--green.is-lit { color:#4ade80; }.simon-pad--red.is-lit { color:#fb7185; }.simon-pad--yellow.is-lit { color:#fde047; }.simon-pad--blue.is-lit { color:#60a5fa; }
.simon-center { position:absolute; z-index:30; inset:50%; width:46%; aspect-ratio:1; transform:translate(-50%,-50%); display:flex; flex-direction:column; gap:4px; align-items:center; justify-content:center; border:11px solid #121319; border-radius:50%; background:radial-gradient(circle at 40% 28%,#303342,#171923 58%,#0c0d12); box-shadow:0 8px 25px rgba(0,0,0,.72),inset 0 3px 7px rgba(255,255,255,.12),inset 0 -8px 15px rgba(0,0,0,.6); }
.simon-key-engraving { position:absolute; opacity:0; color:#101117; font:950 clamp(.72rem,2.2vw,1.08rem)/1 system-ui,sans-serif; text-transform:uppercase; text-shadow:-1px -1px 0 rgba(0,0,0,.92),1px 1px 0 rgba(255,255,255,.17); transform:scale(.92); transition:opacity .18s,transform .18s; pointer-events:none; }
.simon-board.is-color-blind .simon-key-engraving { opacity:.9; transform:scale(1); }
.simon-key-engraving--green { left:19%; top:23%; transform:rotate(-18deg) scale(.92); }
.simon-key-engraving--red { right:19%; top:23%; transform:rotate(18deg) scale(.92); }
.simon-key-engraving--yellow { left:19%; bottom:21%; transform:rotate(18deg) scale(.92); }
.simon-key-engraving--blue { right:19%; bottom:21%; transform:rotate(-18deg) scale(.92); }
.simon-board.is-color-blind .simon-key-engraving--green { transform:rotate(-18deg); }
.simon-board.is-color-blind .simon-key-engraving--red { transform:rotate(18deg); }
.simon-board.is-color-blind .simon-key-engraving--yellow { transform:rotate(18deg); }
.simon-board.is-color-blind .simon-key-engraving--blue { transform:rotate(-18deg); }
.simon-brand { max-width:86%; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#e9eaf3; font:950 clamp(.95rem,3vw,1.5rem)/1 system-ui,sans-serif; letter-spacing:.12em; text-shadow:0 2px 3px #000,0 0 7px rgba(0,0,0,.55); }
.simon-brand.is-curved { position:absolute; inset:0; max-width:none; overflow:visible; pointer-events:none; }
.simon-brand.is-curved svg { display:block; width:100%; height:100%; filter:drop-shadow(0 1px 2px rgba(0,0,0,.85)); }
.simon-brand.is-curved text { fill:#e9eaf3; font-family:system-ui,sans-serif; font-weight:900; }
.simon-center strong { min-width:54px; padding:2px 7px; border:1px solid #411c27; border-radius:5px; background:#18070d; color:#ff566d; font:900 clamp(1.25rem,4vw,2.15rem)/1.05 monospace; text-align:center; text-shadow:0 0 10px #ff2349; box-shadow:inset 0 1px 5px #000; }
.memory-nav-sound,.memory-nav-help { appearance:none; font:inherit; cursor:pointer; }

#memoryTutorialOverlay { align-items:flex-end; padding:28px 20px; background:rgba(0,0,0,.42); backdrop-filter:none; }
#memoryTutorialOverlay.memory-tut-has-target { background:transparent; }
.memory-tut-modal { width:min(100%,410px); max-height:46vh; overflow-y:auto; }
.memory-tut-progress { margin-bottom:8px; color:var(--text3); font-size:.68rem; font-weight:700; letter-spacing:.06em; text-transform:uppercase; }
.memory-tut-body { margin-bottom:20px; line-height:1.6; }
.memory-tut-actions { justify-content:space-between; align-items:center; margin-top:0; }
.memory-tut-actions__right { display:flex; gap:8px; }
.memory-tut-dismiss-row { margin-top:12px; text-align:center; }
.memory-tut-dismiss { border:0; padding:4px; background:none; color:var(--text3); font:inherit; font-size:.75rem; text-decoration:underline; cursor:pointer; }
.memory-tut-spotlight { display:none; position:fixed; z-index:150; border-radius:12px; pointer-events:none; animation:memory-tut-pulse 1.4s ease-in-out infinite; }
.memory-tut-spotlight.visible { display:block; }
@keyframes memory-tut-pulse { 0%,100%{box-shadow:0 0 0 4px rgba(var(--memory-accent-rgb),.75),0 0 0 9999px rgba(0,0,0,.55)} 50%{box-shadow:0 0 0 6px rgba(var(--memory-accent-rgb),1),0 0 0 9999px rgba(0,0,0,.55)} }

.memory-toolbar { display:flex; align-items:end; justify-content:center; flex-wrap:wrap; gap:14px; margin:10px 0 22px; }
.memory-toolbar label { display:grid; gap:5px; color:var(--text2); font-size:.72rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.memory-toolbar select { min-width:130px; padding:9px 12px; color:var(--text); background:var(--surface-2,#24243a); border:1px solid var(--border); border-radius:10px; }
.memory-word-toolbar { margin-bottom:4px; }
.memory-grid { --grid-size:3; width:min(78vw,480px); aspect-ratio:1; margin:auto; padding:10px; display:grid; grid-template-columns:repeat(var(--grid-size),1fr); gap:6px; border:2px solid #30323c; border-radius:16px; background:linear-gradient(145deg,#171920,#090a0e); box-shadow:0 17px 42px rgba(0,0,0,.58),inset 0 5px 14px rgba(255,255,255,.08),inset 0 -8px 18px rgba(0,0,0,.7); }
.memory-grid-status { width:min(78vw,480px); margin:0 auto 10px; padding:8px 12px; border:1px solid rgba(var(--memory-accent-rgb),.28); border-radius:10px; background:rgba(var(--memory-accent-rgb),.08); color:var(--text2); font-size:.75rem; font-weight:800; text-align:center; }
.memory-grid__tile { position:relative; border:1px solid rgba(255,255,255,.08); border-radius:7px; background:linear-gradient(145deg,#41444e,#252730); cursor:pointer; box-shadow:inset 2px 2px 5px rgba(255,255,255,.11),inset -3px -3px 6px rgba(0,0,0,.48),0 3px 5px rgba(0,0,0,.28); transition:background .1s,transform .1s,box-shadow .1s; }
.memory-grid__tile.is-preview { background:var(--memory-accent); box-shadow:0 0 18px rgba(var(--memory-accent-rgb),.55); transform:scale(.94); }
.memory-grid__tile.is-decoy { background:#f97316; box-shadow:0 0 18px rgba(249,115,22,.5); transform:scale(.94); }
.memory-grid.is-color-blind .memory-grid__tile.is-preview::after,.memory-grid.is-color-blind .memory-grid__tile.is-decoy::after { position:absolute; inset:0; display:grid; place-items:center; color:rgba(255,255,255,.94); font:950 clamp(1rem,4vw,2rem)/1 system-ui,sans-serif; text-shadow:0 2px 3px rgba(0,0,0,.72); }
.memory-grid.is-color-blind .memory-grid__tile.is-preview::after { content:'○'; }
.memory-grid.is-color-blind .memory-grid__tile.is-decoy::after { content:'×'; }
.memory-grid__tile.is-found { background:#22c55e; transform:scale(.92); }
.memory-grid__tile.is-wrong { background:#ef4444; animation:memory-shake .3s; }
@keyframes memory-shake { 25%{transform:translateX(-4px)} 75%{transform:translateX(4px)} }

.word-stream-card { width:min(100%,620px); margin:25px auto; padding:24px; text-align:center; }
.word-phase { color:var(--text2); font-size:.72rem; font-weight:900; letter-spacing:.14em; text-transform:uppercase; }
.word-display { min-height:90px; display:flex; align-items:center; justify-content:center; margin-bottom:22px; color:var(--memory-accent); font-size:clamp(2rem,8vw,4rem); font-weight:950; letter-spacing:.05em; overflow-wrap:anywhere; }
.word-idle-help { max-width:480px; margin:-12px auto 22px; color:var(--text2); font-size:.86rem; line-height:1.55; }
.word-idle-help[hidden] { display:none; }
.word-stream-result { width:min(100%,680px); margin:24px auto; text-align:center; }
.word-stream-result[hidden] { display:none; }
.word-stream-result h3 { margin:8px 0 4px; color:var(--memory-accent); font-size:clamp(1.8rem,6vw,3rem); }
.word-stream-result > p { margin:0 auto 20px; color:var(--text2); line-height:1.55; }
.word-stream-order { display:flex; flex-wrap:wrap; justify-content:center; gap:7px; max-height:280px; overflow:auto; margin:0 auto 22px; padding:16px; border:1px solid rgba(255,255,255,.09); border-radius:14px; background:rgba(0,0,0,.18); }
.word-stream-order__item { padding:7px 9px; border-radius:8px; background:rgba(255,255,255,.07); color:var(--text); font-size:.76rem; font-weight:800; }
.word-stream-order__item.is-missed { border:1px solid #ef4444; background:rgba(239,68,68,.15); color:#fca5a5; }
.word-stream-result__actions { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }
.word-recall-intro { width:min(100%,620px); margin:30px auto 10px; text-align:center; }
.word-recall-intro h3 { margin:8px 0 6px; font-size:1.35rem; }.word-recall-intro p { margin:0; color:var(--text2); line-height:1.55; }
.word-recall-intro[hidden] { display:none; }
.word-actions { display:grid; grid-template-columns:1fr 1fr; gap:12px; margin-bottom:16px; }
.memory-new-btn { color:#fff; background:#c2414b; }.memory-seen-btn { color:#fff; background:#2563a9; }
.word-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; width:min(100%,760px); margin:0 auto 20px; }
.word-chip { min-height:52px; display:flex; align-items:center; justify-content:center; padding:8px; border:1px solid rgba(255,255,255,.12); border-radius:12px; background:rgba(255,255,255,.065); color:var(--text); font-weight:800; cursor:default; }
button.word-chip { cursor:pointer; }
.word-chip.is-selected { color:#fff; background:var(--memory-accent); border-color:rgba(255,255,255,.35); }
.word-chip.is-answer { color:#86efac; border-color:#22c55e; background:rgba(34,197,94,.12); }
.word-chip.is-wrong { color:#fca5a5; border-color:#ef4444; background:rgba(239,68,68,.12); }
.memory-recall-timer { min-width:74px; padding:9px 13px; border-radius:10px; background:rgba(0,0,0,.25); color:var(--memory-accent); text-align:center; font-weight:900; font-variant-numeric:tabular-nums; }
.memory-submit { display:block; margin:0 auto; }
.memory-submit[hidden] { display:none; }

.memory-result { max-width:650px; margin:34px auto; padding:34px; text-align:center; border-radius:24px; background:rgba(0,0,0,.22); border:1px solid rgba(251,191,36,.3); }
.memory-result__icon { font-size:3rem; }.memory-result h2 { margin:5px 0; }.memory-result p { color:var(--text2); }
.memory-result__metrics { display:grid; grid-template-columns:repeat(3,1fr); gap:10px; margin:24px 0; }
.memory-result__metrics div { padding:14px; border-radius:14px; background:rgba(255,255,255,.055); }
.memory-result__metrics strong,.memory-result__metrics span { display:block; }.memory-result__metrics strong { font-size:1.6rem; color:#fbbf24; }.memory-result__metrics span { color:var(--text2); font-size:.7rem; text-transform:uppercase; font-weight:800; }
.memory-result [data-result-actions] { display:flex; justify-content:center; flex-wrap:wrap; gap:10px; }

.memory-daily-run__summary { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:5px 14px; }
.memory-daily-run__summary strong { color:#fbbf24; font-size:1.15rem; }
.memory-daily-run__summary span,.memory-daily-legend,.memory-daily-legacy-note { color:var(--text2); font-size:.73rem; }
.memory-daily-streak-marks { display:flex; flex-wrap:wrap; align-items:center; gap:3px; margin-top:12px; padding:10px; border-radius:9px; background:rgba(0,0,0,.2); font-size:1.05rem; line-height:1; }
.memory-daily-streak-marks strong { margin-left:4px; color:#86efac; font-size:.72rem; }
.memory-daily-marks { display:flex; flex-wrap:wrap; gap:3px; margin-top:12px; padding:10px; border-radius:9px; background:rgba(0,0,0,.2); }
.memory-daily-mark { font-size:1.05rem; line-height:1; }
.memory-daily-mark.is-unreached { opacity:.22; filter:grayscale(1); }
.memory-daily-mark.is-fail { transform:scale(1.14); }
.memory-daily-legend { display:flex; flex-wrap:wrap; gap:6px 14px; margin-top:7px; }
.memory-daily-timing-summary { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; margin-top:7px; }
.memory-daily-timing-summary div { padding:8px 6px; border:1px solid var(--border); border-radius:8px; background:rgba(255,255,255,.035); text-align:center; font-variant-numeric:tabular-nums; }
.memory-daily-timing-summary strong,.memory-daily-timing-summary span { display:block; }
.memory-daily-timing-summary strong { font-size:.86rem; }
.memory-daily-timing-summary span { margin-top:3px; color:var(--text2); font-size:.58rem; font-weight:800; letter-spacing:.04em; text-transform:uppercase; }
.memory-daily-legacy-note { margin-top:4px; }
.memory-timing-charts { display:grid; gap:16px; margin-top:15px; }
.memory-timing-chart-head { display:flex; align-items:baseline; justify-content:space-between; flex-wrap:wrap; gap:4px 12px; }
.memory-timing-chart-head strong { color:var(--text); font-size:.82rem; }
.memory-timing-chart-head span { color:var(--text2); font-size:.66rem; }
.memory-timing-chart-scroll { overflow-x:auto; margin-top:6px; border:1px solid var(--border); border-radius:9px; background:rgba(0,0,0,.22); scrollbar-width:thin; }
.memory-timing-chart-scroll svg { display:block; max-width:none; font-family:system-ui,sans-serif; }
.memory-timing-grid { stroke:rgba(255,255,255,.09); stroke-width:1; }
.memory-timing-axis-label,.memory-timing-count { fill:var(--text2); font-size:9px; }
.memory-timing-count { font-size:8px; opacity:.76; }
.memory-timing-hesitation-line { stroke:#fbbf24; stroke-width:1; stroke-dasharray:5 4; opacity:.72; }
.memory-timing-threshold-label { fill:#fbbf24; font-size:8px; font-weight:800; }
.memory-box-whisker { stroke:#a9a1ff; stroke-width:1.4; }
.memory-box-body { fill:rgba(124,111,247,.28); stroke:#a9a1ff; stroke-width:1.3; }
.memory-box-median { stroke:#fff; stroke-width:2; }
.memory-box-public-body { fill:rgba(255,200,71,.16); stroke:#ffc847; stroke-width:1; stroke-dasharray:2 2; }
.memory-box-public-median { stroke:#ffc847; stroke-width:1.6; stroke-dasharray:2 2; }
.memory-timing-dot { fill:#6ee7f9; opacity:.68; }
.memory-timing-final-dot { fill:#fb923c; opacity:.9; }
.memory-timing-miss { fill:none; stroke:#ff5070; stroke-width:2.4; stroke-linecap:round; }
.memory-timeline-line { fill:none; stroke:#7c6ff7; stroke-width:1.4; opacity:.72; }
.memory-timeline-public-line { fill:none; stroke:#ffc847; stroke-width:1.4; stroke-dasharray:4 3; opacity:.8; }
.memory-timeline-miss { fill:#ff5070; stroke:#ffd1da; stroke-width:1.2; }
.memory-timing-chart-legend { display:flex; flex-wrap:wrap; gap:6px 14px; color:var(--text2); font-size:.62rem; }
.memory-timing-chart-legend span { display:flex; align-items:center; gap:5px; }
.memory-timing-chart-legend i { display:inline-block; width:11px; height:8px; border-radius:2px; }
.memory-timing-chart-legend .is-box { border:1px solid #a9a1ff; background:rgba(124,111,247,.35); }
.memory-timing-chart-legend .is-final { border-radius:50%; background:#fb923c; }
.memory-timing-chart-legend .is-miss { position:relative; background:none; }
.memory-timing-chart-legend .is-public { border:1px dashed #ffc847; background:rgba(255,200,71,.2); }
.memory-timing-chart-legend .is-public-line { height:2px; margin-top:3px; background:repeating-linear-gradient(90deg,#ffc847 0 4px,transparent 4px 7px); border-radius:0; }
.memory-timing-chart-legend .is-miss::before,.memory-timing-chart-legend .is-miss::after { content:''; position:absolute; left:5px; top:0; width:2px; height:10px; border-radius:1px; background:#ff5070; transform:rotate(45deg); }
.memory-timing-chart-legend .is-miss::after { transform:rotate(-45deg); }

@media (max-width:900px) {
  .memory-stage { grid-template-columns:1fr; gap:8px; min-height:560px; }
  .memory-sidebar { position:static; order:-1; grid-template-columns:minmax(0,1fr) minmax(0,1.35fr); align-items:start; }
  .memory-metrics { height:100%; }.memory-control-panel { height:100%; }.memory-notice { grid-column:1/-1; margin:0; }
  .simon-layout { grid-template-columns:1fr; }
}
@media (max-width:520px) {
  .memory-sidebar { grid-template-columns:1fr; }.memory-stage__head p { font-size:.82rem; }
  html:not(.force-desktop) .memory-mode-row.shell-mode-row { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); overflow:visible; flex-wrap:wrap !important; }
  html:not(.force-desktop) .memory-mode-row.shell-mode-row .tab-pill { width:100%; min-width:0; }
  /* Five mode pills in two columns leave the last cell free, and with only the
     help and settings buttons left on mobile the nav block fits in it — so it
     flows into the grid rather than claiming a fourth row to itself. */
  html:not(.force-desktop) .memory-mode-row.shell-mode-row .game-nav-actions { position:static; width:100%; margin:0; padding:0; justify-content:center; background:none; }
  /* The row wraps here instead of scrolling, so nothing passes under the nav
     buttons — games.css's sticky backdrop and its fade have no job to do. */
  html:not(.force-desktop) .memory-mode-row.shell-mode-row .game-nav-actions::before { display:none; }
  .simon-board { width:min(88vw,390px); gap:8px; padding:12px; }.simon-center { border-width:6px; }
  .word-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .memory-result__metrics { grid-template-columns:1fr; }
  .memory-daily-timing-summary { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
