: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-brand {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .85rem;
}

.selector-brand > div {
    min-width: 0;
}

.selector-mascot {
    flex: 0 0 auto;
    width: clamp(4rem, 15vw, 5.75rem);
    height: clamp(4rem, 15vw, 5.75rem);
    object-fit: cover;
    transform: rotate(-3deg);
    transition: transform .18s ease;
}

.selector-brand:hover .selector-mascot {
    transform: translateY(-2px) rotate(2deg);
}

.selector-brand-simple {
    margin-inline: auto;
}

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

.selector-brand-simple h1 {
    max-width: 25rem;
    text-align: left;
}

.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[data-board-count="1"] {
    padding: .7rem;
    grid-template: 1fr / 1fr;
}

.board-mark[data-board-count="2"] {
    grid-template: 1fr / repeat(2, 1fr);
}

.board-mark[data-board-count="4"] {
    grid-template: repeat(2, 1fr) / repeat(2, 1fr);
}

.board-mark[data-board-count="8"] {
    grid-template: repeat(2, 1fr) / repeat(4, 1fr);
}

.board-mark[data-board-count="16"] {
    grid-template: repeat(4, 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;
}

.about-games {
    margin-top: 2.75rem;
    padding-top: 2rem;
    border-top: 1px solid rgba(255, 255, 255, .18);
}

.about-games h2 {
    margin: 0 0 1rem;
    color: var(--muted);
    font-size: clamp(1.15rem, 4vw, 1.4rem);
    font-weight: 500;
    line-height: 1.2;
}

.about-games p {
    margin: 0;
    color: var(--muted);
    font-size: .9rem;
    font-weight: 400;
    line-height: 1.7;
}

.about-games p + p {
    margin-top: .9rem;
}

@media (max-width: 420px) {
    .selector-brand {
        gap: .45rem;
    }

    .selector-brand-simple h1 {
        font-size: clamp(1.7rem, 8.5vw, 2rem);
    }
}

@media (prefers-reduced-motion: reduce) {
    .selector-mascot {
        transition-duration: .01ms;
    }
}
