/*
 * Content page refinements.
 * Loaded after base.css for the home page and single entries.
 */

.gw-front-page {
    padding-bottom: 88px;
}

.gw-home-hero {
    margin-bottom: 0;
}

.gw-home-quick {
    position: relative;
    z-index: 2;
    margin-top: -30px;
}

.gw-home-quick__inner {
    border: 1px solid rgba(255, 255, 255, .7);
    box-shadow: 0 14px 36px rgba(31, 35, 53, .1);
}

.gw-home-quick__item {
    min-height: 90px;
    border-radius: 0;
}

.gw-home-quick__item:first-child {
    border-radius: 8px 0 0 8px;
}

.gw-home-quick__item:last-child {
    border-radius: 0 8px 8px 0;
}

.gw-home-section {
    padding-top: 72px;
}

.gw-home-section__header {
    align-items: end;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--gw-border);
}

.gw-home-section__header h2,
.gw-home-list-card__header h2 {
    letter-spacing: 0;
}

.gw-home-section__label,
.gw-section-label,
.gw-page-kicker {
    color: var(--gw-primary);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .12em;
    line-height: 1.2;
}

.gw-home-games__grid,
.gw-home-tutorial-grid {
    gap: 18px;
}

.gw-home-knowledge-map {
    gap: 12px;
}

.gw-home-knowledge-card {
    min-height: 194px;
    background: var(--gw-white);
    border: 1px solid var(--gw-border);
    border-top: 3px solid var(--gw-primary);
    border-radius: 8px;
    box-shadow: none;
}

.gw-home-knowledge-card::before {
    opacity: .3;
}

.gw-home-knowledge-card--orange {
    border-top-color: #d18a37;
}

.gw-home-knowledge-card--cyan {
    border-top-color: #2b9bb2;
}

.gw-home-knowledge-card--pink {
    border-top-color: #bf6284;
}

.gw-home-knowledge-card--green {
    border-top-color: #4f9a6f;
}

.gw-home-knowledge-card__number {
    color: #d9deea;
}

.gw-home-knowledge-card__english,
.gw-home-knowledge-card p {
    color: var(--gw-text-secondary);
}

.gw-home-knowledge-card h3 {
    color: var(--gw-heading);
}

.gw-home-knowledge-card__links a {
    border-radius: 4px;
}

.gw-home-game-card,
.gw-home-tutorial-card,
.gw-home-list-card {
    border: 1px solid var(--gw-border);
    border-radius: 8px;
    box-shadow: none;
}

.gw-home-game-card:hover,
.gw-home-tutorial-card:hover,
.gw-home-list-card:hover {
    box-shadow: 0 12px 28px rgba(26, 31, 48, .08);
}

.gw-home-list-card {
    background: var(--gw-white);
}

.gw-home-list-card__header {
    border-bottom: 1px solid var(--gw-border-light);
}

.gw-home-content-item {
    min-height: 112px;
}

.gw-home-content-item__thumb {
    border-radius: 6px;
}

.gw-home-community {
    border-radius: 8px;
}

.gw-wiki-single {
    --gw-article-primary: #6b58cf;
    --gw-article-primary-dark: #5745b6;
    padding: 42px 0 88px;
}

.gw-wiki-breadcrumb {
    margin-bottom: 22px;
}

.gw-wiki-hero-card,
.gw-wiki-content,
.gw-author-card {
    border-radius: 8px;
    box-shadow: none;
}

.gw-wiki-hero-card {
    overflow: hidden;
}

.gw-wiki-content {
    padding: 42px clamp(24px, 5vw, 62px);
}

.gw-wiki-content__topline {
    margin-bottom: 30px;
}

.gw-wiki-content__body {
    font-size: 16px;
    line-height: 1.9;
}

.gw-wiki-content__body h2 {
    margin-top: 2.45em;
    padding-top: .1em;
    font-size: 25px;
}

.gw-entry--article .gw-wiki-main-layout {
    grid-template-columns: minmax(0, 820px) 250px;
    justify-content: center;
}

.gw-entry--article .gw-wiki-content {
    border-top: 3px solid var(--gw-primary);
}

.gw-entry--article .gw-wiki-author-sidebar {
    padding-top: 0;
}

.gw-entry--article .gw-wiki-recommend {
    margin-top: 44px;
}

@media (max-width: 900px) {
    .gw-home-section {
        padding-top: 54px;
    }

    .gw-home-quick__item:first-child,
    .gw-home-quick__item:last-child {
        border-radius: 0;
    }

    .gw-wiki-single {
        padding-top: 26px;
    }

    .gw-entry--article .gw-wiki-main-layout {
        display: block;
    }

    .gw-entry--article .gw-wiki-author-sidebar {
        margin-top: 24px;
    }
}

@media (max-width: 640px) {
    .gw-front-page {
        padding-bottom: 56px;
    }

    .gw-home-quick {
        margin-top: -18px;
    }

    .gw-home-section {
        padding-top: 42px;
    }

    .gw-wiki-content {
        padding: 28px 20px;
    }

}

.gw-submission-references{margin-top:34px;padding-top:22px;border-top:1px solid var(--gw-border-light)}.gw-submission-references h2{margin:0 0 12px;color:var(--gw-heading);font-size:18px}.gw-submission-references ul{margin:0;padding-left:20px}.gw-submission-references a{color:var(--gw-primary)}

/* Shared recommendation stream on the home page. */
.gw-home-recommendations { background: #fbfbfe; }
.gw-home-recommendations__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.gw-home-recommendation-card { overflow: hidden; background: var(--gw-white); border: 1px solid var(--gw-border); border-radius: 8px; box-shadow: 0 8px 24px rgba(31, 35, 53, .04); }
.gw-home-recommendation-card__media { display: block; aspect-ratio: 5 / 3; overflow: hidden; background: #edf0f7; }
.gw-home-recommendation-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.gw-home-recommendation-card:hover .gw-home-recommendation-card__media img { transform: scale(1.03); }
.gw-home-recommendation-card__media > span { display: grid; width: 100%; height: 100%; place-items: center; color: var(--gw-text-muted); font-size: 11px; font-weight: 800; letter-spacing: .12em; }
.gw-home-recommendation-card__body { padding: 13px; }
.gw-home-recommendation-card__category { color: var(--gw-primary); font-size: 11px; font-weight: 800; }
.gw-home-recommendation-card h3 { margin: 6px 0 0; font-size: 15px; line-height: 1.4; }
.gw-home-recommendation-card h3 a:hover { color: var(--gw-primary); }
.gw-home-recommendation-card p { display: -webkit-box; margin: 7px 0 0; overflow: hidden; color: var(--gw-text-secondary); font-size: 12px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.gw-home-recommendation-card__meta { display: flex; flex-wrap: wrap; gap: 6px 10px; margin-top: 10px; color: var(--gw-text-muted); font-size: 11px; }
.gw-home-recommendation-card__meta span:nth-child(2) { color: #b87820; font-weight: 700; }
@media (max-width: 1050px) { .gw-home-recommendations__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 800px) { .gw-home-recommendations__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .gw-home-recommendations__grid { grid-template-columns: 1fr; } }

.gw-home-random-galgame { display: block; width: 100%; margin-top: 14px; }
.gw-home-random-galgame__label { color: var(--gw-text-muted); font-size: 12px; font-weight: 700; }
.gw-home-random-galgame__button {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    width: 100%;
    min-height: 52px;
    padding: 8px 14px;
    border: 1px solid rgba(124, 92, 255, .24);
    border-radius: 8px;
    background: var(--gw-primary);
    color: #fff;
    font: inherit;
    cursor: pointer;
    box-shadow: 0 12px 24px rgba(124, 92, 255, .18);
    transition: background var(--gw-transition-fast), transform var(--gw-transition-fast), box-shadow var(--gw-transition-fast);
}
.gw-home-random-galgame__button span,
.gw-home-random-galgame__button small { min-width: 0; text-align: left; }
.gw-home-random-galgame__button span { font-size: 15px; font-weight: 800; line-height: 1.2; }
.gw-home-random-galgame__button small { grid-column: 1; margin-top: 3px; color: rgba(255,255,255,.76); font-size: 12px; font-weight: 650; line-height: 1.2; }
.gw-home-random-galgame__button b { grid-column: 2; grid-row: 1 / span 2; font-size: 18px; line-height: 1; }
.gw-home-random-galgame__button:hover { background: var(--gw-primary-hover); color: #fff; box-shadow: 0 14px 28px rgba(124, 92, 255, .24); transform: translateY(-1px); }
.gw-home-random-galgame__button:disabled { cursor: wait; opacity: .65; }

/* Home page readability tuning. */
.gw-home-hero__description { font-size: 17px; line-height: 1.85; }
.gw-home-quick__item { gap: 11px; padding: 0 13px; }
.gw-home-quick__icon { width: 34px; height: 34px; font-size: 12px; }
.gw-home-quick__item strong { font-size: 15px; line-height: 1.15; }
.gw-home-quick__item small { font-size: 10px; line-height: 1.1; }
.gw-home-quick__item b { font-size: 15px; }
.gw-home-section__header p,
.gw-home-section__more,
.gw-home-section__label,
.gw-section-label,
.gw-page-kicker { font-size: 13px; }
.gw-home-game-card__meta,
.gw-home-content-item__type,
.gw-home-content-item__meta,
.gw-home-tutorial-card__body > span,
.gw-home-tutorial-card__meta { font-size: 13px; }
.gw-home-game-card__body h3,
.gw-home-content-item__main h3,
.gw-home-tutorial-card h3 { font-size: 21px; line-height: 1.45; }
.gw-home-game-card__body p,
.gw-home-content-item__main p,
.gw-home-tutorial-card p { font-size: 14px; line-height: 1.72; }
.gw-home-recommendation-card__category,
.gw-home-recommendation-card__meta,
.gw-home-random-galgame__label,
.gw-home-random-galgame__button { font-size: 13px; }
.gw-home-recommendation-card h3 { font-size: 18px; line-height: 1.45; }
.gw-home-recommendation-card p { font-size: 14px; line-height: 1.7; }

@media (max-width: 640px) {
    .gw-home-hero__description { font-size: 15px; }
    .gw-home-section__header p,
    .gw-home-section__more,
    .gw-home-section__label,
    .gw-section-label,
    .gw-page-kicker,
    .gw-home-game-card__meta,
    .gw-home-content-item__type,
    .gw-home-content-item__meta,
    .gw-home-tutorial-card__body > span,
    .gw-home-tutorial-card__meta,
    .gw-home-recommendation-card__category,
    .gw-home-recommendation-card__meta,
    .gw-home-random-galgame__label,
    .gw-home-random-galgame__button { font-size: 12px; }
    .gw-home-game-card__body h3,
    .gw-home-content-item__main h3,
    .gw-home-tutorial-card h3 { font-size: 18px; }
    .gw-home-game-card__body p,
    .gw-home-content-item__main p,
    .gw-home-tutorial-card p { font-size: 13px; }
    .gw-home-recommendation-card h3 { font-size: 16px; }
    .gw-home-recommendation-card p { font-size: 13px; }
    .gw-home-quick__item { gap: 8px; padding: 0 10px; }
    .gw-home-quick__icon { width: 31px; height: 31px; font-size: 11px; }
    .gw-home-quick__item strong { font-size: 14px; }
    .gw-home-quick__item small { font-size: 9px; }
    .gw-home-random-galgame__button { min-height: 50px; padding: 8px 12px; }
    .gw-home-random-galgame__button span { font-size: 14px; }
    .gw-home-random-galgame__button small { font-size: 11px; }
}
