.memory-guide{width:min(100%,780px);margin:28px auto;padding:0 12px 20px;text-align:start;line-height:1.65;color:#27374e;overflow-wrap:anywhere}
.memory-guide h2{font-size:clamp(20px,4vw,27px);line-height:1.2;margin:21px 0 8px}
.memory-guide p,.memory-guide ol{margin:0 0 12px}
.memory-guide details{border:1px solid #d6e7f5;border-radius:10px;background:#f5faff;padding:10px 13px;margin:8px 0}
.memory-guide summary{cursor:pointer;font-weight:700}
.memory-guide details p{margin:7px 0 0}
.memory-guide a{color:#185a91}
@media print{.memory-guide{display:none}}
.memory-catalog .games{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
@media(max-width:850px){.memory-catalog .games{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:600px){.memory-catalog .games{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}}
@media(max-width:430px){.memory-catalog .games{grid-template-columns:repeat(2,minmax(0,1fr))}}
.games .game{min-width:0;display:grid;grid-template-rows:1fr auto;gap:10px;padding:10px 8px 12px;background:linear-gradient(150deg,#fff,#eaf6ff);border:1px solid #cfe5f5;border-radius:14px;box-shadow:0 4px 0 #cce4f5,0 8px 12px #35255212;text-align:center;text-decoration:none;font-weight:700;color:#302050}
.games .game > span:first-child{height:2.5em;line-height:1.25;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.games .game:hover,.games .game:focus-visible{border-color:#70afd7}
.games .previews{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
.games .preview{display:block;position:relative;overflow:hidden;aspect-ratio:1;min-width:0;border:2px solid white;border-radius:7px;background:#ece1fa;box-shadow:0 3px 0 #bda9df,0 5px 6px #48306526}
.games .preview-word{position:absolute;inset:0;display:block;align-content:center;text-align:center;padding:1px;font-size:clamp(9px,1.5vw,13px);white-space:nowrap;overflow:hidden;line-height:1.1}
.games .preview:nth-child(2){background:#def5ec}
.games .preview:nth-child(3){background:#ffeedb}
.games .preview img{position:absolute;inset:0;display:block;width:100%;height:100%;border-radius:4px}

.memory-related{width:100%;max-width:1160px;margin:18px auto 24px;padding:0 10px;text-align:center;box-sizing:border-box}
.memory-related h2{font-size:clamp(19px,4vw,26px);margin:0 0 14px}
.memory-related .games{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:16px}
.memory-related .game{font-size:clamp(13px,1.8vw,17px)}
@media(max-width:700px){
  .memory-related .games{grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
  .memory-related .game:nth-child(15){display:none}
}
@media print{.memory-related,.print-share{display:none!important}}
