:root {
    --background: #6e5c62;
    --background-deep: #58494e;
    --text: #fafaff;
    --muted: #d6cfd2;
    --correct: #3aa394;
    --present: #d3ad69;
}

* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
    margin: 0;
}

body {
    display: grid;
    min-height: 100dvh;
    place-items: center;
    padding: max(1.25rem, env(safe-area-inset-top)) 1.25rem max(1.25rem, env(safe-area-inset-bottom));
    background: var(--background);
    color: var(--text);
    font-family: ui-rounded, "Arial Rounded MT Bold", system-ui, sans-serif;
    font-weight: 650;
}

.selector {
    width: min(100%, 36rem);
}

.selector header {
    margin-bottom: 2rem;
    text-align: center;
}

.selector h1 {
    margin: .25rem 0 .65rem;
    font-size: clamp(2rem, 9vw, 3.4rem);
    line-height: 1.05;
}

.selector header > p:last-child {
    max-width: 29rem;
    margin: 0 auto;
    color: var(--muted);
    font-weight: 500;
    line-height: 1.5;
}

.eyebrow {
    margin: 0;
    color: var(--present);
    font-size: .75rem;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.game-list {
    display: grid;
    gap: .85rem;
}

.game-card {
    display: grid;
    grid-template-columns: 3.4rem minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    min-height: 5.5rem;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(255, 255, 255, .18);
    border-radius: 1rem;
    background: var(--background-deep);
    color: inherit;
    text-decoration: none;
    transition: border-color .16s, transform .16s, background .16s;
}

.game-card:hover {
    border-color: rgba(255, 255, 255, .55);
    background: #514348;
    transform: translateY(-2px);
}

.game-card:focus-visible {
    outline: 3px solid #fff;
    outline-offset: 3px;
}

.board-mark {
    display: grid;
    width: 3.4rem;
    height: 3.4rem;
    gap: 3px;
}

.board-mark.four {
    grid-template: repeat(2, 1fr) / repeat(2, 1fr);
}

.board-mark.eight {
    grid-template: repeat(2, 1fr) / repeat(4, 1fr);
}

.board-mark i {
    border-radius: 3px;
    background: var(--correct);
}

.board-mark i:nth-child(3n) {
    background: var(--present);
}

.game-copy {
    display: grid;
    gap: .25rem;
}

.game-copy strong {
    font-size: 1.25rem;
}

.game-copy small {
    color: var(--muted);
    font-size: .78rem;
    font-weight: 500;
}

.arrow {
    color: var(--muted);
    font-size: 1.5rem;
}
