.game-icon {
    position: relative;
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 1em;
    height: 1em;
    overflow: hidden;
    border-radius: .15em;
    background: #dddce4;
    color: #24362f;
    font-size: var(--game-icon-size, 42px);
    line-height: 1;
}

.game-icon--mini-crossword { background: #a9d2b6; }
.game-icon--mini-sudoku { background: #a8cbe9; }
.game-icon-grid {
    display: grid;
    width: .72em;
    height: .72em;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: .025em;
    padding: .025em;
    background: #253a32;
    border-radius: .035em;
    transform: rotate(-6deg);
}
.game-icon-grid > span {
    display: grid;
    place-items: center;
    background: #fffdf5;
    font: 750 .18em/1 var(--sans);
}
.game-icon--mini-crossword .game-icon-grid > :nth-child(3),
.game-icon--mini-crossword .game-icon-grid > :nth-child(5) { background: #253a32; }
.game-icon--mini-sudoku .game-icon-grid { background: #2d5273; transform: rotate(5deg); }
.game-icon--mini-sudoku .game-icon-grid > :nth-child(odd) { background: #dcecf8; }

.game-icon--daily-news-quiz { background: #edc674; }
.game-icon--headline-match { background: #a7d8d3; }
.game-icon-paper {
    width: .55em;
    height: .69em;
    border-radius: .045em;
    background:
        linear-gradient(#314443, #314443) center .12em / .35em .065em no-repeat,
        repeating-linear-gradient(to bottom, #7a8883 0 .025em, transparent .025em .085em) center .26em / .35em .31em no-repeat,
        #fffdf7;
    box-shadow: .04em .045em 0 #24362f36;
    transform: translate(-.055em, -.025em) rotate(-10deg);
}
.game-icon-check {
    position: absolute;
    right: .42em;
    bottom: .45em;
    display: grid;
    place-items: center;
    width: 1.55em;
    height: 1.55em;
    border-radius: 50%;
    background: #28754f;
    color: #fff;
    font: 750 .24em/1 var(--sans);
}
.game-icon-paper--second {
    position: absolute;
    transform: translate(.16em, .075em) rotate(11deg) scale(.83);
}

.game-icon--word-groups { background: #c9b7e0; }
.game-icon-groups {
    display: grid;
    width: .69em;
    height: .69em;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: .055em;
    transform: rotate(-7deg);
}
.game-icon-groups > span { border-radius: .075em; background: #fff3c1; }
.game-icon-groups > :nth-child(2) { background: #71ac82; }
.game-icon-groups > :nth-child(3) { background: #739fcd; }
.game-icon-groups > :nth-child(4) { background: #8055ac; }

.game-icon--word-ladder { background: #edb4a1; }
.game-icon-steps {
    display: grid;
    width: .72em;
    gap: .035em;
}
.game-icon-steps > span {
    display: grid;
    place-items: center;
    width: 3em;
    min-height: 1.4em;
    border-radius: .3em;
    background: #fff5e6;
    color: #592d29;
    font: 800 .15em/1 var(--sans);
    letter-spacing: .1em;
}
.game-icon-steps > :nth-child(2) { justify-self: center; }
.game-icon-steps > :last-child { justify-self: end; background: #813f38; color: white; }

.game-icon--uganda-map-challenge { background: #c8df9f; }
.game-icon-map {
    width: .72em;
    height: .75em;
    background: #39724d;
    /* Simplified from the Uganda outline used by the game. */
    clip-path: polygon(79% 91%, 42% 93%, 22% 92%, 4% 100%, 0 98%, 0 85%, 4% 78%, 5% 64%, 9% 56%, 16% 47%, 23% 42%, 29% 36%, 22% 34%, 23% 13%, 31% 8%, 42% 12%, 57% 8%, 70% 8%, 81% 0, 90% 12%, 92% 21%, 100% 41%, 93% 54%, 84% 66%, 79% 73%);
}
.game-icon-pin {
    position: absolute;
    top: .39em;
    left: .49em;
    width: .22em;
    height: .22em;
    border: .035em solid #fff9e9;
    border-radius: 50% 50% 50% 0;
    background: #bc4737;
    transform: rotate(-45deg);
}

.game-icon--photo-puzzle { background: #e2c89c; }
.game-icon--photo-puzzle > img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.game-icon--photo-puzzle::after {
    position: absolute;
    inset: 0;
    content: '';
    background:
        linear-gradient(90deg, transparent 32%, #fffdf2 32% 34%, transparent 34% 65%, #fffdf2 65% 67%, transparent 67%),
        linear-gradient(0deg, transparent 32%, #fffdf2 32% 34%, transparent 34% 65%, #fffdf2 65% 67%, transparent 67%);
}
