.memory-game{max-width:850px;margin:auto;color:var(--text,#f4e7ee)}
.memory-game p{overflow-wrap:anywhere}.memory-grid{display:grid;grid-template-columns:repeat(var(--columns),minmax(0,1fr));gap:6px;margin:16px 0}.memory-grid button{min-width:0;min-height:100px;padding:6px 3px;border:1px solid #b88793;border-radius:12px;background:linear-gradient(145deg,#452737,#251622);color:#f9e5e9;overflow-wrap:anywhere;font:inherit;font-size:1rem;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}.memory-grid small{font-size:.875rem;letter-spacing:.03em;color:#edbdb5}.memory-grid svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.5;flex-shrink:0}.memory-grid .revealed{background:#583547}.memory-grid .matched{opacity:1;border-color:#c4d6bd}.memory-game [data-continue]{min-height:48px}.memory-grid button:focus-visible{outline:3px solid #f2c4a7;outline-offset:2px}@media(max-width:400px){.memory-grid{gap:4px}.memory-grid button{border-radius:7px;min-height:108px;padding:5px 2px}}@media(orientation:landscape){.memory-grid button{min-height:88px}}

/* Seat colours also work while the shared player stylesheet loads. */
.memory-game .p0{--pc:var(--p0,#e8a4a4)}
.memory-game .p1{--pc:var(--p1,#f2c777)}
.memory-game{font-size:1rem;line-height:1.5;color:var(--ink)}
.memory-game .p0,.memory-game .p1{color:var(--pc)}
.memory-grid .matched.p0,.memory-grid .matched.p1{border:3px solid var(--pc);color:var(--ink)}
.memory-turn,.memory-game [role=status]{font-size:1.25rem;line-height:1.5}
@media(max-width:600px){.memory-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
