:root {
    --cream: #f9ecd8;
    --card: #fffaf1;
    --maroon: #7a2e1f;
    --maroon-dark: #5c2116;
    --orange: #f2803c;
    --orange-dark: #d9632a;
    --wood: #a85c34;
    --wood-dark: #8a4726;
    --text: #4a2d1f;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 32px 16px;
    background-color: var(--cream);
    background-image:
        linear-gradient(rgba(122, 46, 31, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(122, 46, 31, 0.06) 1px, transparent 1px);
    background-size: 48px 48px;
    animation: grid-drift 9s linear infinite;
    font-family: "Nunito", sans-serif;
    color: var(--text);
}

@keyframes grid-drift {
    from {
        background-position: 0 0;
    }
    to {
        background-position: 48px 48px;
    }
}

@media (prefers-reduced-motion: reduce) {
    body {
        animation: none;
    }
}

.card {
    width: 100%;
    max-width: 570px;
    background: var(--card);
    border: 4px solid var(--maroon);
    border-radius: 28px;
    box-shadow: 0 8px 0 var(--maroon), 0 12px 24px rgba(90, 40, 20, 0.25);
    padding: 36px 32px 28px;
    text-align: center;
}

.icon {
    display: block;
    width: 64px;
    height: 64px;
    margin: 0 auto 8px;
}

.title-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    column-gap: 8px;
    margin: 8px 0 2px;
}

.badge {
    grid-column: 3;
    justify-self: start;
    background: var(--maroon);
    color: var(--card);
    font-family: "Baloo 2", sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 4px 12px;
    border-radius: 999px;
}

h1 {
    grid-column: 2;
    font-family: "Baloo 2", sans-serif;
    font-size: 2.4rem;
    margin: 0;
    color: var(--maroon);
    white-space: nowrap;
}

@media (max-width: 420px) {
    .title-row {
        grid-template-columns: 1fr;
        row-gap: 2px;
        margin-bottom: 14px;
    }

    .badge {
        grid-column: 1;
        justify-self: center;
    }

    h1 {
        grid-column: 1;
    }
}

.subtitle {
    margin: 0 0 20px;
    font-weight: 600;
    color: var(--wood-dark);
}

.subtitle a {
    color: inherit;
    text-decoration: underline;
    text-decoration-color: var(--orange-dark);
    text-underline-offset: 2px;
}

.subtitle a:hover {
    color: var(--maroon);
}

.feedback {
    background: rgba(122, 46, 31, 0.06);
    border: 2px dashed var(--wood);
    border-radius: 14px;
    padding: 12px 18px;
    margin: 0 0 24px;
    font-size: 0.88rem;
    line-height: 1.5;
    color: var(--wood-dark);
}

.feedback a {
    color: var(--maroon);
    font-weight: 600;
}

.gallery {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.screenshot {
    flex: 1 1 200px;
    min-width: 0;
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    border-radius: 16px;
    border: 3px solid var(--maroon);
    display: block;
}

.tagline {
    margin: 0 0 24px;
    line-height: 1.5;
}

.downloads {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 10px;
}

.notice {
    font-size: 0.8rem;
    color: var(--wood-dark);
    opacity: 0.75;
    margin: 0 0 4px;
}

.notice:last-of-type {
    margin-bottom: 24px;
}

.notice a {
    color: var(--maroon);
    font-weight: 600;
    opacity: 1;
}

.discord-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: rgba(122, 46, 31, 0.06);
    border: 2px solid var(--wood);
    border-radius: 16px;
    padding: 12px 16px;
    margin-bottom: 24px;
    text-align: left;
}

.discord-icon {
    display: block;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid var(--maroon);
}

.discord-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.discord-name {
    font-family: "Baloo 2", sans-serif;
    font-weight: 600;
    color: var(--maroon);
}

.discord-stats {
    font-size: 0.82rem;
    color: var(--wood-dark);
}

.discord-join {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 999px;
    border: 2px solid var(--maroon-dark);
    background: var(--wood);
    color: #fff;
    font-weight: 600;
    font-size: 0.85rem;
    text-decoration: none;
    box-shadow: 0 3px 0 var(--maroon-dark);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.discord-join svg {
    width: 16px;
    height: 16px;
}

.discord-join:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 0 var(--maroon-dark);
}

.discord-join:active {
    transform: translateY(2px);
    box-shadow: 0 1px 0 var(--maroon-dark);
}

.button {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 22px;
    border-radius: 16px;
    border: 3px solid var(--maroon-dark);
    background: var(--orange);
    color: #fff;
    text-decoration: none;
    box-shadow: 0 4px 0 var(--maroon-dark);
    transition: transform 0.1s ease, box-shadow 0.1s ease;
}

.button:nth-child(2) {
    background: var(--wood);
}

.button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 0 var(--maroon-dark);
}

.button:active {
    transform: translateY(2px);
    box-shadow: 0 2px 0 var(--maroon-dark);
}

.button-icon {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.button-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
}

.button-label {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    opacity: 0.85;
}

.button-platform {
    font-family: "Baloo 2", sans-serif;
    font-size: 1.1rem;
}

.social-links {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    margin: 0 0 20px;
}

.social-row {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin: 0;
    padding: 0;
}

.social-links a,
.social-discord {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--wood-dark);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.85rem;
}

.social-links a:hover {
    color: var(--maroon);
}

.social-links svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

footer {
    font-size: 0.8rem;
    color: var(--wood-dark);
    opacity: 0.8;
}
