footer .site-footer {
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--white);
    padding: 12px 0;
}
footer nav {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 24px;
}
footer a {
    color: var(--cyan);
    text-decoration: none;
}
footer a:hover {
    text-decoration: underline;
}

section.page {
    text-align: left;
}
section.page > div {
    max-width: 800px;
}
section.page h1 {
    text-align: center;
}
section.page h2 {
    color: var(--dark-blue);
    margin-top: 28px;
    margin-bottom: 8px;
}
section.page h3 {
    color: var(--purple);
    font-size: 1.15em;
    margin-top: 18px;
    margin-bottom: 6px;
}
section.page p,
section.page li {
    line-height: 1.6em;
    margin-bottom: 0.8em;
}
section.page ul {
    list-style: disc;
    padding-left: 24px;
    margin-bottom: 1em;
}
section.page a {
    color: var(--dark-blue);
}
section.page .updated {
    text-align: center;
    color: var(--grey);
    margin-bottom: 30px;
}
section.page > div.narrow {
    max-width: 420px;
}

/* Game sound toggle */
.sound-toggle {
    position: fixed;
    left: 14px;
    bottom: 14px;
    z-index: 200;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 50%;
    background: var(--purple);
    color: var(--cyan);
    font-size: 24px;
    line-height: 44px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    opacity: 0.85;
}
.sound-toggle:hover {
    opacity: 1;
}

/* Contributor pages */
.stacked-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 24px;
}
.stacked-form label {
    font-weight: 600;
}
.stacked-form input[type='text'],
.stacked-form input[type='password'],
.stacked-form textarea {
    border: 1px solid var(--light-grey);
    border-radius: 6px;
    padding: 10px;
    font-size: 1em;
    width: 100%;
}
.stacked-form small {
    color: var(--grey);
}
.stacked-form button,
.button-link {
    align-self: flex-start;
    display: inline-block;
    text-decoration: none;
}
.form-error,
.messages .error,
.messages .warning {
    color: var(--red);
}
.messages {
    list-style: none;
    padding: 0;
    margin-bottom: 16px;
}
.messages .success {
    color: var(--dark-green);
}
.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}
@media (max-width: 700px) {
    .two-col { grid-template-columns: 1fr; }
}
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 16px;
    margin-bottom: 24px;
}
.card-tile img {
    width: 100%;
    border-radius: 8px;
    background: var(--light-grey);
}
.card-tile > div {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 6px;
}
.card-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 24px;
}
.card-table td {
    padding: 8px 6px;
    border-bottom: 1px solid var(--light-grey);
    vertical-align: middle;
}
.badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.8em;
    font-weight: 600;
    color: var(--white);
    background: var(--grey);
}
.badge.pool {
    background: var(--dark-green);
}
.badge.private {
    background: var(--light-purple);
}
.link-button {
    background: none;
    border: 0;
    padding: 0;
    color: var(--red);
    font-size: 0.9em;
    text-decoration: underline;
}
