.home-page {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    color: var(--site-text, #e2e8f0);
}

.home-shell {
    display: grid;
    gap: 28px;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
    padding: 26px 0 30px;
}

.home-hero,
.home-archive {
    border: 1px solid var(--site-border, #ffffff14);
    border-radius: 18px;
    background: linear-gradient(135deg, #17243bef, #0d192cf2);
    box-shadow: 0 12px 32px #00000020;
}

.home-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 22px 30px;
}

.home-hero-copy {
    display: grid;
    justify-items: center;
    gap: 12px;
    min-width: 0;
    text-align: center;
}

.home-hero h1 {
    margin: 0;
    color: #f8fafc;
    font-size: clamp(30px, 3.5vw, 44px);
    line-height: 1.15;
    letter-spacing: -.025em;
}

.home-description {
    max-width: 780px;
    color: #b8c7dc;
    font-size: 14px;
    line-height: 1.65;
    text-wrap: pretty;
}

.home-description > span {
    display: block;
    margin-top: 6px;
    color: #9db5d0;
    font-size: 13px;
}

.home-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
    width: min(100%, 780px);
    margin-top: 4px;
}

.home-facts > div {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
    gap: 3px;
    min-width: 0;
    padding: 10px;
    border: 1px solid #7dd3fc20;
    border-radius: 10px;
    background: #07142645;
}

.home-facts dt {
    color: #a9bdd5;
    font-size: 11px;
    line-height: 1.4;
}

.home-facts dd {
    color: #7dd3fc;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.2;
}

.home-brand {
    display: grid;
    justify-items: center;
    padding: 0;
}

.home-brand img {
    width: 72px;
    height: 72px;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px #0007);
}

.home-section-heading {
    display: grid;
    justify-items: center;
    gap: 4px;
    margin-bottom: 16px;
    text-align: center;
}

.home-section-heading h2 {
    margin: 0;
    color: #f0f5fc;
    font-size: 23px;
    line-height: 1.25;
}

.home-section-heading p {
    color: #9bacc4;
    font-size: 12px;
}

.home-games {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 14px;
}

.home-game {
    --game-accent: #e7c56c;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 0;
    padding: 20px 20px 16px;
    border: 1px solid #b9954940;
    border-radius: 16px;
    background: radial-gradient(ellipse at top, #c69f4414, transparent 75%), #121e31ed;
    color: #ecf2fc;
    text-align: center;
    text-decoration: none;
    transition: border-color .18s ease, background-color .18s ease;
}

.home-game-promogod {
    --game-accent: #97dbbb;
    border-color: #6ec39e40;
    background: radial-gradient(ellipse at top, #6ec39e14, transparent 75%), #121e31ed;
}

.home-game-wheel {
    --game-accent: #cbb0f2;
    border-color: #b692ea40;
    background: radial-gradient(ellipse at top, #b692ea14, transparent 75%), #121e31ed;
}

.home-game-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.home-game h3 {
    margin: 0;
    font-size: 19px;
    line-height: 1.2;
}

.home-game > p {
    flex: 1;
    max-width: 285px;
    color: #adbed5;
    font-size: 13px;
    line-height: 1.5;
    text-wrap: pretty;
}

.home-game-tags {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.home-game-tags > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-height: 25px;
    padding: 3px 8px;
    border: 1px solid #ffffff12;
    border-radius: 7px;
    background: #060e1d38;
    color: #bac8dc;
    font-size: 10px;
}

.home-game-tags img {
    object-fit: contain;
}

.home-game-action {
    display: grid;
    grid-template-columns: 16px auto 16px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 34px;
    margin-top: 2px;
    border-top: 1px solid #ffffff12;
    padding-top: 10px;
    color: var(--game-accent);
    font-size: 13px;
    font-weight: 700;
}

.home-game-action > span {
    grid-column: 2;
}

.home-game-action img {
    grid-column: 3;
    object-fit: contain;
}

.home-utilities {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
    margin-top: 14px;
}

.home-utilities a {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 84px;
    padding: 14px 18px;
    border: 1px solid #ffffff14;
    border-radius: 13px;
    background: #121e31e8;
    color: #e2e8f0;
    text-align: center;
    text-decoration: none;
}

.home-utilities img {
    flex: 0 0 auto;
    object-fit: contain;
}

.home-utilities span {
    display: grid;
    gap: 3px;
    min-width: 0;
}

.home-utilities strong {
    font-size: 14px;
}

.home-utilities small {
    color: #9bacc4;
    font-size: 11px;
    line-height: 1.5;
}

.home-archive {
    padding: 22px;
    scroll-margin-top: 20px;
}

.home-years {
    display: grid;
    grid-template-columns: repeat(11, minmax(0, 1fr));
    gap: 7px;
}

.home-years a {
    display: grid;
    place-items: center;
    min-height: 44px;
    padding: 8px 2px;
    border: 1px solid #53678370;
    border-radius: 8px;
    background: #0c1728;
    color: #c1cfe2;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
}

.home-years .home-year-latest {
    border-color: #38bdf870;
    background: #16334b;
    color: #8edcff;
}

.home-directory {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    grid-auto-rows: 1fr;
    gap: 10px;
    margin-top: 18px;
}

.home-directory a {
    display: grid;
    justify-items: center;
    align-content: start;
    gap: 6px;
    min-width: 0;
    padding: 14px 8px;
    border: 1px solid #ffffff12;
    border-radius: 10px;
    background: #ffffff03;
    color: #e2e8f0;
    text-align: center;
    text-decoration: none;
}

.home-directory img {
    object-fit: contain;
}

.home-directory strong {
    font-size: 13px;
}

.home-directory span {
    color: #9bacc4;
    font-size: 11px;
    line-height: 1.4;
}

.home-shell a:focus-visible {
    outline: 2px solid #7dd3fc;
    outline-offset: 4px;
}

.home-page > footer {
    margin-top: auto;
}

@media (hover: hover) {
    .home-years a:hover,
    .home-utilities a:hover,
    .home-directory a:hover {
        border-color: #38bdf8a0;
        background-color: #17334a;
    }

    .home-game:hover {
        border-color: var(--game-accent);
        background-color: #19283e;
    }
}

@media (max-width: 900px) {
    .home-game {
        padding: 18px 12px 14px;
    }

    .home-years {
        grid-template-columns: repeat(6, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .home-shell {
        width: calc(100% - 24px);
        gap: 24px;
        padding: 18px 0 24px;
    }

    .home-hero {
        grid-template-columns: minmax(0, 1fr);
        gap: 16px;
        padding: 22px 18px;
    }

    .home-brand {
        justify-self: center;
    }

    .home-brand img {
        width: 64px;
        height: 64px;
    }

    .home-hero h1 {
        font-size: clamp(26px, 7.5vw, 36px);
    }

    .home-description {
        font-size: 13px;
    }

    .home-description > span {
        font-size: 12px;
    }

    .home-facts {
        gap: 7px;
    }

    .home-facts > div {
        padding: 9px 4px;
    }

    .home-facts dt {
        font-size: 10px;
    }

    .home-facts dd {
        font-size: 23px;
    }

    .home-games,
    .home-utilities {
        grid-template-columns: minmax(0, 1fr);
        gap: 12px;
    }

    .home-game {
        padding: 18px 20px 12px;
    }

    .home-game > p {
        max-width: 340px;
    }

    .home-game-icon {
        width: 52px;
        height: 52px;
    }

    .home-utilities a {
        gap: 12px;
        min-height: 76px;
        padding: 12px;
    }

    .home-archive {
        padding: 18px 14px;
    }

    .home-years {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .home-directory {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 14px;
    }
}
