.memory-game{color:#203249;background:#fff8e9;border:3px solid #203249;font-family:ArcadePixel,system-ui,sans-serif}.memory-setup{border-bottom:2px solid #203249;grid-template-columns:1fr 1fr;gap:12px 24px;padding:20px 24px 12px;display:grid}.memory-setup fieldset{border:0;min-width:0;margin:0;padding:0}.memory-setup legend{margin-bottom:8px;font-size:12px}.memory-options{flex-wrap:wrap;gap:6px;display:flex}.memory-options button,.memory-button{color:#203249;min-height:44px;font:inherit;cursor:pointer;background:#fff8e9;border:2px solid #203249;padding:10px 12px;font-size:13px}.memory-options button[aria-pressed=true]{color:#fff8e9;background:#203249}.memory-setup-note{color:#52606d;grid-column:1/-1;margin:0;font-size:11px;line-height:1.6}.memory-layout{grid-template-columns:minmax(0,1.4fr) minmax(260px,1fr);align-items:start;gap:28px;padding:28px;display:grid}.memory-stage{background:#f0e4ca;border:2px solid #203249;min-width:0;padding:16px}.memory-stage-heading{justify-content:space-between;gap:8px;margin-bottom:16px;font-size:13px;display:flex}.memory-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;display:grid}.memory-card{aspect-ratio:4/5;cursor:pointer;background:#304967;border:2px solid #203249;justify-content:center;align-items:center;min-width:0;min-height:48px;padding:4px;display:flex;position:relative;box-shadow:0 3px #203249}.memory-card svg{width:85%;height:auto;max-height:90%}.memory-card.is-open{background:#fffdf3}.memory-card.is-matched{background:#d4e6c5;border-color:#427156;box-shadow:0 3px #427156}.memory-card[aria-disabled=true]{cursor:default}.memory-card-number{color:#fff8e9;font-size:9px;position:absolute;bottom:2px;left:4px}.memory-card.is-open .memory-card-number{color:#203249}.memory-card-check{color:#315c42;font-size:14px;position:absolute;top:0;right:3px}.memory-game button:focus-visible,.memory-game input:focus-visible{outline-offset:3px;z-index:1;outline:3px solid #b14d27}.memory-options button:hover,.memory-button:hover{color:#203249;background:#f6cb61}.memory-card:not([aria-disabled=true]):hover{border-color:#b96729}.memory-sidebar{min-width:0}.memory-eyebrow{text-transform:uppercase;letter-spacing:.08em;color:#965029;margin:0 0 8px;font-size:11px}.memory-sidebar h2{margin:0 0 12px;font-size:26px;line-height:1.35}.memory-instruction{min-height:65px;font-size:13px;line-height:1.75}.memory-stats{grid-template-columns:1fr 1fr;gap:12px;margin:18px 0;display:grid}.memory-stats div:last-child{grid-column:1/-1}.memory-stats dt{color:#52606d;font-size:11px}.memory-stats dd{margin:5px 0 0;font-size:24px}.memory-clock-option{cursor:pointer;align-items:center;gap:10px;width:fit-content;max-width:100%;min-height:44px;font-size:13px;line-height:1.5;display:flex}.memory-clock-option input{accent-color:#203249;cursor:pointer;flex:none;width:20px;height:20px;margin:0}.memory-clock-value{align-items:center;min-height:36px;line-height:1.5;display:flex}.memory-clock-value small{font-size:14px}.memory-players{grid-template-columns:1fr 1fr;gap:8px;margin-bottom:18px;display:grid}.memory-players>div{border:2px solid #c5bda9;padding:10px 8px;font-size:12px}.memory-players .is-current{background:#f8df9c;border-color:#203249}.memory-players strong,.memory-players small{margin-top:8px;display:block}.memory-players small{font-size:10px}.memory-actions{grid-template-columns:1fr 1fr;gap:8px;display:grid}.memory-primary{background:#f6cb61;grid-column:1/-1;font-size:16px}.memory-help,.memory-seed{font-size:11px;line-height:1.7}.memory-seed{overflow-wrap:anywhere;color:#52606d;margin:16px 0 0}.memory-notice{color:#315c42;font-size:12px}.memory-share{font-size:11px;display:block}.memory-share input{width:100%;min-height:44px;font:inherit;color:#203249;background:#fff;border:2px solid #203249;margin-top:8px;padding:8px}.memory-warning{color:#9b3f29;font-size:12px;line-height:1.6}@media (min-width:1050px){.memory-hard{grid-template-columns:repeat(6,minmax(0,1fr))}}@media (max-width:760px){.memory-setup{grid-template-columns:1fr;padding:16px}.memory-layout{grid-template-columns:1fr;gap:24px;padding:16px}.memory-stage,.memory-sidebar{width:100%;max-width:480px;margin:auto}.memory-card{aspect-ratio:1}.memory-instruction{min-height:0}}@media (max-width:360px){.memory-layout,.memory-stage{padding:8px}.memory-grid{gap:6px}.memory-setup{padding:12px 8px}.memory-options button,.memory-button{padding:8px;font-size:12px}.memory-card-number{font-size:8px}.memory-stage-heading{font-size:11px}.memory-sidebar h2{font-size:23px}}
