/* ============================================================
   Hextual landing page
   Theme colours are defined once per theme as CSS variables.
   Light and dark both use real hex values so the contrast is
   predictable; every component below only ever uses variables.
   ============================================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body.light-theme {
    --bg: #E8ECF2;               /* page background */
    --surface: #FFFFFF;          /* cards, forms, comments */
    --surface-alt: #F1F4F8;      /* inputs sitting on a surface */
    --text: #1B2230;             /* main text */
    --text-muted: #5D6878;       /* secondary text */
    --border: #D5DBE4;
    --nav-bg: #1B2230;
    --nav-text: #F5F7FA;
    --accent: #1565C0;           /* buttons, active tab, links */
    --accent-hover: #0F4FA0;
    --accent-text: #FFFFFF;      /* text on top of accent */
    --success: #1B7F3B;          /* rating, toast */
    --danger: #C62828;           /* error messages */
    --card-overlay: rgba(27, 34, 48, 0.55); /* lower the last number to let the preview image show through more */
    --card-text: #F5F7FA;
    --shadow: 0 8px 30px rgba(27, 34, 48, 0.12);
    --sb-track: #D5DBE4;
    --sb-thumb: #8A96A8;
    --icon-filter: invert(100%); /* the nav bar is dark in both themes, so icons are always light */
}

body.dark-theme {
    --bg: #14171C;
    --surface: #1F242C;
    --surface-alt: #2A3039;
    --text: #E6EAF0;
    --text-muted: #9AA5B5;
    --border: #343B47;
    --nav-bg: #1F242C;
    --nav-text: #E6EAF0;
    --accent: #4C9BFF;
    --accent-hover: #74B3FF;
    --accent-text: #0E1420;
    --success: #5CD47A;
    --danger: #FF6B6B;
    --card-overlay: rgba(10, 13, 18, 0.55); /* same as above, dark theme */
    --card-text: #F5F7FA;
    --shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    --sb-track: #1F242C;
    --sb-thumb: #4A5363;
    --icon-filter: invert(100%);
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    background: var(--bg);
    color: var(--text);
    overflow-x: hidden;
    overflow-y: auto;
    user-select: none;
    font-family: 'Sour Gummy', 'Segoe UI', sans-serif;
}

#pageContainer {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 70px; /* room for the fixed nav bar */
}

input, textarea, select, button {
    font-family: inherit;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 14px;
}

::-webkit-scrollbar-track {
    background: var(--sb-track);
}

::-webkit-scrollbar-thumb {
    background: var(--sb-thumb);
    border-radius: 8px;
    border: 3px solid var(--sb-track);
}

/* ---------- Top navigation ---------- */
#topNavBar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 60px;
    padding: 0 20px;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 22px;
    background: var(--nav-bg);
    color: var(--nav-text);
    box-shadow: var(--shadow);
    z-index: 100;
}

#userInfoContainer {
    display: none;
    align-items: center;
    gap: 15px;
}

#navUsername {
    font-weight: 600;
    font-size: 18px;
}

.nav-btn {
    position: static;
    padding: 6px 14px;
    font-size: 14px;
}

#lightThemeSelect {
    position: relative;
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 10px;
}

#sunSvg, #moonSvg {
    width: 24px;
    height: 24px;
    cursor: pointer;
    padding-bottom: 4px;
    opacity: 0.45;
    transition: all 0.2s ease;
    filter: var(--icon-filter);
    border-bottom: 2px solid transparent;
}

#sunSvg.active, #moonSvg.active {
    opacity: 1;
    border-bottom-color: var(--accent);
}

#lightThemeText {
    width: 120px;
    text-align: right;
    flex-shrink: 0;
    font-size: 18px;
}

/* ---------- Log-in & Register ---------- */
#authContainer {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 40px 20px;
}

.auth-card {
    background: var(--surface);
    color: var(--text);
    width: 100%;
    max-width: 400px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    position: relative;
}

.auth-tabs {
    display: flex;
    background: var(--surface-alt);
    border-bottom: 1px solid var(--border);
}

.auth-tab {
    flex: 1;
    background: none;
    border: none;
    padding: 15px;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.2s ease;
    border-bottom: 3px solid transparent;
}

.auth-tab.active {
    color: var(--accent);
    background: var(--surface);
    border-bottom-color: var(--accent);
}

.auth-forms-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.auth-slider {
    display: flex;
    width: 200%;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.auth-form {
    width: 50%;
    padding: 30px;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
}

.auth-form h3 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 4px;
    color: var(--text);
    text-align: center;
}

.auth-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-field label {
    font-size: 14px;
    color: var(--text-muted);
}

.auth-field input {
    width: 100%;
    height: 48px;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--text);
    font-size: 16px !important;
}

.auth-field input:focus,
.feedback-form select:focus,
.feedback-form textarea:focus,
.developer-reply-box input:focus {
    outline: 2px solid var(--accent);
    outline-offset: 1px;
}

.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: var(--text) !important;
    box-shadow: 0 0 0px 1000px var(--surface-alt) inset !important;
    transition: background-color 5000s ease-in-out 0s;
}

/* The Log In / Sign Up buttons: centred and only as wide as they need to be */
.auth-submit-btn {
    position: static;
    align-self: center;
    width: auto;
    min-width: 160px;
    height: 46px;
    padding: 0 32px;
    margin-top: 8px;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    font-size: 15px;
    border: none;
    cursor: pointer;
}

/* Error text sits underneath the button, centred, with breathing room */
.auth-error {
    min-height: 22px;
    margin-top: 10px;
    padding: 0 8px;
    text-align: center;
    color: var(--danger);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

/* ---------- Apps grid ---------- */
#appsContainer {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(450px, 100%), 1fr));
    justify-content: center;
    gap: 25px;
    width: 100%;
    max-width: 1500px;
    padding: 20px;
    margin-top: 20px;
}

.app-card {
    background-size: cover;
    background-position: center;
    background-color: var(--surface);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
    width: 100%;
    min-height: 250px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

.app-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--card-overlay);
    z-index: 1;
    transition: background 0.3s ease;
}

.app-card > * {
    position: relative;
    z-index: 2;
}

.app-card-info {
    display: flex;
    flex-direction: column;
    padding-right: 90px;
    padding-bottom: 60px;
}

.app-card h3 {
    font-size: 22px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--card-text);
}

.app-card p {
    font-size: 14px;
    color: var(--card-text);
    opacity: 0.85;
    line-height: 1.5;
}

.app-card:hover {
    transform: translateY(-5px);
}

.app-btn {
    padding: 12px 20px;
    background: var(--accent);
    color: var(--accent-text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    border-radius: 8px;
    border: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 3;
}

.app-btn:hover {
    background: var(--accent-hover);
    transform: scale(1.04);
}

/* Only inside an app card is the button pinned to the bottom-right corner */
.app-card .app-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
}

.app-tag {
    position: absolute;
    top: 24px;
    right: 24px;
    padding: 6px 14px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 20px;
    color: #FFFFFF;
    z-index: 3;
}

.tag-game {
    background-color: #2E7D32;
}

.tag-app {
    background-color: #1565C0;
}

/* ---------- Feedback ---------- */
#feedbackPromptText {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    font-size: clamp(20px, 3vw, 34px);
    padding: 20px;
    max-width: 1000px;
}

#feedbackSection {
    width: 100%;
    max-width: 1500px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 30px;
}

.feedback-form {
    background: var(--surface);
    color: var(--text);
    padding: 30px;
    border-radius: 16px;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
    gap: 20px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.feedback-form h3 {
    text-align: center;
    font-size: 26px;
}

.feedback-form div {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.feedback-form label {
    font-size: 14px;
    color: var(--text-muted);
}

.feedback-form select,
.feedback-form textarea {
    width: 100%;
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--text);
    font-size: 16px;
}

.feedback-submit-btn {
    position: static;
    align-self: center;
    width: auto;
    padding: 12px 28px;
    margin-top: 4px;
}

.rating-container input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

#commentsDisplayContainer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.comment-card {
    background: var(--surface);
    color: var(--text);
    padding: 24px;
    border-radius: 16px;
    width: 100%;
    max-width: 800px;
    position: relative;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.comment-header {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: 12px;
    border-bottom: 1px solid var(--border);
    padding-bottom: 8px;
}

.comment-user {
    font-weight: 700;
    font-size: 22px;
    color: var(--text);
}

.comment-user .comment-app {
    font-weight: normal;
    font-size: 14px;
    color: var(--text-muted);
}

.comment-body {
    margin-bottom: 12px;
    line-height: 1.5;
    white-space: pre-wrap;
    word-break: break-word;
    user-select: text;
}

.comment-rating {
    display: inline-block;
    font-weight: 700;
    color: var(--success);
    font-size: 19px;
}

.comment-actions {
    display: flex;
    gap: 12px;
    margin-top: 14px;
    font-size: 14px;
}

.action-btn {
    cursor: pointer;
    padding: 8px 16px;
    border-radius: 24px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--text);
    font-size: 20px;
    line-height: 1;
    transition: background 0.2s, border-color 0.2s, transform 0.1s;
}

.action-btn:hover {
    border-color: var(--accent);
}

.action-btn:active {
    transform: scale(0.96);
}

/* The vote the logged-in user currently has on this comment */
.action-btn.voted {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

.owner-reply {
    margin-top: 15px;
    padding: 15px;
    background: var(--surface-alt);
    border-left: 4px solid var(--accent);
    border-radius: 4px;
    user-select: text;
}

.owner-title {
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    margin-bottom: 4px;
    color: var(--accent);
}

.developer-reply-box {
    margin-top: 15px;
    display: flex;
    gap: 10px;
    width: 100%;
    max-width: 500px;
}

.developer-reply-box input {
    flex-grow: 1;
    min-width: 0;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: var(--surface-alt);
    color: var(--text);
}

.reply-submit-btn {
    position: static;
    padding: 6px 14px;
    font-size: 13px;
}

/* Toast notification after feedback submission */
.toast-notification {
    position: fixed;
    bottom: 24px;
    right: -400px;
    background: var(--success);
    color: #FFFFFF;
    padding: 16px 24px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 9999;
    transition: right 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.toast-notification.show {
    right: 24px;
}

.toast-close-btn {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.75);
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    padding: 0 4px;
}

.toast-close-btn:hover {
    color: #FFFFFF;
}

/* ---------- Small screens ---------- */
@media (max-width: 600px) {
    #topNavBar {
        height: 56px;
        padding: 0 12px;
        font-size: 18px;
    }
    #lightThemeText {
        display: none;
    }
    #navUsername {
        font-size: 15px;
    }
    #pageContainer {
        padding-top: 64px;
    }
    #authContainer {
        padding: 20px 12px;
    }
    .auth-form {
        padding: 22px 18px;
    }
    #appsContainer, #feedbackSection {
        padding: 12px;
    }
    .app-card {
        padding: 18px;
    }
    .app-card-info {
        padding-right: 0;
        padding-top: 36px;
    }
    .feedback-form, .comment-card {
        padding: 18px;
    }
    .toast-notification {
        left: 12px;
        right: auto;
        bottom: 12px;
        max-width: calc(100% - 24px);
        transform: translateY(150%);
        transition: transform 0.4s ease;
    }
    .toast-notification.show {
        right: auto;
        transform: translateY(0);
    }
}

/* ---------- Feedback page controls ---------- */
#feedbackPager {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    max-width: 800px;
}

#feedbackPager:empty {
    display: none;
}

.pager-btn {
    min-width: 40px;
    padding: 8px 12px;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color 0.2s, background 0.2s;
}

.pager-btn:hover:not(:disabled):not(.active) {
    border-color: var(--accent);
}

.pager-btn.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
    cursor: default;
}

.pager-btn:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.pager-gap {
    color: var(--text-muted);
    padding: 0 2px;
}

.pager-info {
    width: 100%;
    text-align: center;
    font-size: 13px;
    color: var(--text-muted);
}

/* ---------- Feedback form details ---------- */
/* The textarea can only grow downwards, and never wider than the form */
.feedback-form textarea {
    resize: vertical;
    min-height: 110px;
    max-height: 60vh;
    max-width: 100%;
}

/* The live number next to the rating slider */
#ratingValue {
    display: inline-block;
    min-width: 2.2em;
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
}

/* Date on a feedback post */
.comment-date {
    font-size: 16px;
    align-self: center;
}

/* Vote buttons keep a fixed width and use equal-width digits, so toggling a vote
   does not nudge the neighbouring button sideways */
.action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-width: 84px;
    font-variant-numeric: tabular-nums;
}

/* ---------- Account, forgot-password and reset pages ---------- */
.auth-form--single {
    width: 100%;
}

.auth-form h4 {
    font-size: 20px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 2px;
}

.auth-text {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.4;
    text-align: center;
}

.auth-hint {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: normal;
}

/* text-style buttons: "Forgot your password?", "Back to log in", "Close" */
.auth-link {
    background: none;
    border: none;
    padding: 4px;
    align-self: center;
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.auth-link:hover {
    color: var(--accent-hover);
}

.auth-success {
    min-height: 22px;
    margin-top: 2px;
    padding: 0 8px;
    text-align: center;
    color: var(--success);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.auth-success:empty, .auth-error:empty {
    margin-top: 0;
    min-height: 0;
}

#accountContainer {
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 20px;
}

.account-card {
    max-width: 480px;
}

.account-card .auth-form + .auth-form {
    border-top: 1px solid var(--border);
}

.account-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 30px 0;
}

.account-header h3 {
    font-size: 26px;
    font-weight: 600;
}

.email-reminder {
    width: 100%;
    max-width: 800px;
    margin: 10px 20px 0;
    padding: 12px 18px;
    border-radius: 10px;
    background: var(--surface);
    border: 1px solid var(--accent);
    color: var(--text);
    font-size: 15px;
    text-align: center;
}

.email-reminder .auth-link {
    display: inline;
    padding: 0;
}

.nav-home-link {
    color: var(--nav-text);
    text-decoration: none;
    font-weight: 700;
}

/* Present for password managers, invisible to people */
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    margin: -1px;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

/* Rating slider and value take the colour of the current score (script.js sets --rating-color) */
.rating-container input[type="range"] {
    accent-color: var(--rating-color, var(--accent));
}

#ratingValue {
    transition: color 0.15s ease;
}

/* ---------- Leaderboards ---------- */
#leaderboardSection {
    width: 100%;
    max-width: 1500px;
    padding: 10px 20px 20px;
    text-align: center;
}

#leaderboardSection h2 {
    font-size: clamp(24px, 3vw, 34px);
    margin-bottom: 6px;
}

.leaderboard-intro {
    color: var(--text-muted);
    margin-bottom: 16px;
}

.leaderboard-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
    flex-wrap: wrap;
}

.leaderboard-tab {
    padding: 8px 18px;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--surface);
    color: var(--text);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.leaderboard-tab.active {
    background: var(--accent);
    border-color: var(--accent);
    color: var(--accent-text);
}

.leaderboard-boards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
    gap: 16px;
}

.leaderboard {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow);
    text-align: left;
}

.leaderboard h3 {
    font-size: 18px;
    margin-bottom: 10px;
    text-align: center;
}

.leaderboard ol {
    list-style: none;
    counter-reset: rank;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.leaderboard li {
    counter-increment: rank;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 10px;
    border-radius: 8px;
    background: var(--surface-alt);
}

.leaderboard li::before {
    content: counter(rank);
    width: 22px;
    font-weight: 700;
    color: var(--text-muted);
}

.leaderboard li:nth-child(1)::before { color: #D4A017; }
.leaderboard li:nth-child(2)::before { color: #9AA5B5; }
.leaderboard li:nth-child(3)::before { color: #B87333; }

.leaderboard li.me {
    outline: 2px solid var(--accent);
}

.lb-name {
    flex: 1;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.lb-value {
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.leaderboard-note {
    color: var(--text-muted);
    text-align: center;
    padding: 10px;
}

/* "Your stats" in the Account panel */
.my-stats {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.my-stat {
    background: var(--surface-alt);
    border-radius: 10px;
    padding: 10px 12px;
}

.my-stat-title {
    font-weight: 700;
    margin-bottom: 4px;
}

.my-stat-row {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 16px;
    font-size: 14px;
    color: var(--text-muted);
}

.my-stat-row b {
    color: var(--text);
}

/* The boards keep a floor height so switching games never jumps the page */
.leaderboard-boards {
    min-height: 220px;
    transition: min-height 0.15s ease;
}


/* Background music volume (Account section) */
.bgm-field input[type="range"] {
    width: 100%;
    accent-color: var(--accent);
}

/* Site tabs, footer version and patch notes */
.site-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; width: 100%; margin: 4px 0 12px; }
.site-tab { background: var(--surface); color: var(--text); border: 2px solid var(--accent); border-radius: 999px; padding: 8px 18px; font: inherit; font-weight: 700; cursor: pointer; transition: background 0.15s, color 0.15s; }
.site-tab:hover { background: var(--surface-alt); }
.site-tab.active { background: var(--accent); color: #fff; }
.site-tab.unread::after { content: ''; display: inline-block; width: 9px; height: 9px; margin-left: 7px; border-radius: 50%; background: #ff4d4d; box-shadow: 0 0 0 2px var(--surface); vertical-align: middle; } /* patch notes you have not read */
#patchNotesSection { width: min(900px, 100%); display: flex; flex-direction: column; align-items: center; gap: 14px; }
#patchNotesList { width: 100%; display: flex; flex-direction: column; gap: 16px; }
.patch-note { background: var(--surface); color: var(--text); border-radius: 14px; padding: 18px 22px; box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12); }
.patch-note header { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.patch-version { font-weight: 800; font-size: 1.2em; color: var(--accent); }
.patch-number { font-size: 0.9em; opacity: 0.75; }
.patch-note time { margin-left: auto; font-size: 0.9em; opacity: 0.75; }
.patch-note h3 { margin: 6px 0 10px; }
.patch-category h4 { margin: 10px 0 4px; font-size: 1em; }
.patch-category ul { margin: 0 0 4px 18px; padding: 0; }
.patch-category li { margin: 2px 0; }

.leaderboard.community h3 { font-size: 0.95em; }
.leaderboard.community { border-style: dashed; }

/* Phones: single-column cards, full-width cards and boards */
@media (max-width: 560px) { #appsContainer { grid-template-columns: 1fr !important; } .auth-card, .account-card { width: 94vw !important; max-width: 94vw; } .site-tab { padding: 6px 12px; font-size: 0.95em; } #leaderboardBoards { grid-template-columns: 1fr !important; } #pageContainer { padding-left: 8px; padding-right: 8px; } }