@font-face {
    font-family: Instrument Sans;
    src: url("instrument-sans.woff2") format("woff2");
    font-style: normal;
    font-weight: 400 700;
    font-display: swap;
}

:root {
    --igd-reference-gutter: clamp(22px, 4vw, 60px);
    --igd-reference-content: 1320px;
    --igd-reference-blue: #243bf5;
    --igd-reference-base: #eef2fd;
    --igd-reference-card: #e9eefb;
    --igd-reference-ink: #10112e;
}
.wp-site-blocks { font-family: "Instrument Sans", "Segoe UI", sans-serif; color: var(--igd-reference-ink); background: var(--igd-reference-base); }
body .wp-site-blocks > header { background: var(--igd-reference-base); }
body .wp-site-blocks > header > .igd-site-header-inner {
    max-width: min(var(--igd-reference-content), calc(100% - 2 * var(--igd-reference-gutter)));
    min-height: 58px;
    display: grid;
    grid-template-columns: max-content 1fr auto;
    gap: clamp(1rem, 8vw, 6rem);
    align-items: center;
}
.igd-site-header-inner .wp-block-site-title { margin: 0; }
.igd-site-header-inner .wp-block-site-title a { font-size: clamp(1.2rem, 3.1vw, 1.85rem); font-weight: 700; }
.igd-site-header-inner .wp-block-navigation { justify-content: start; }
.igd-site-header-inner .wp-block-navigation a { font-size: clamp(.9rem, 1.95vw, 1.1rem); padding: .45rem .25rem; white-space: nowrap; }
.igd-header-search { display: grid; place-items: center; color: var(--igd-reference-ink); width: 44px; height: 44px; }
main ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    padding: 0;
    margin: 2rem 0 1rem;
    list-style: none;
}
main ul.page-numbers > li { margin: 0; padding: 0; list-style: none; }
main ul.page-numbers :is(a, span) {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: .35rem .75rem;
    box-sizing: border-box;
    border: 1px solid #cbd2eb;
    border-radius: 10px;
    color: #2039df;
    background: #f7f9ff;
    text-decoration: none;
    font-size: .92rem;
    font-weight: 650;
}
main ul.page-numbers .current { background: #243bf5; border-color: #243bf5; color: white; }
main ul.page-numbers a:hover { background: #e7e1ff; border-color: #324cf5; }
main ul.page-numbers .dots { min-width: 20px; padding-inline: .2rem; border-color: transparent; background: transparent; }
.igd-home-filter-entry { display: flex; justify-content: flex-end; margin-top: 12px; }
.igd-home-filter-entry a {
    display: inline-flex; align-items: center; justify-content: center; gap: .4rem;
    min-height: 42px; padding: .35rem .9rem; box-sizing: border-box;
    color: #2039df; border: 1px solid var(--igd-reference-blue); border-radius: 10px;
    text-decoration: none; font-size: .92rem; font-weight: 700;
}
.igd-home-filter-entry a:hover { background: #e7e1ff; }
.igd-home-filter-entry + .igd-home-feature { margin-top: 20px; }
[data-igd-icon="search"] { --igd-icon-x: 63.5%; --igd-icon-y: 35.5%; }

body .wp-site-blocks > :is(.igd-site-shell, .igd-games-shell, .igd-collection-page, .igd-tag-page, .igd-editorial-shell, .igd-articles-page, .igd-game-page, .igd-about-page) {
    padding: 32px var(--igd-reference-gutter) 4rem !important;
    margin: 0;
}
.wp-site-blocks > :is(.igd-site-shell, .igd-games-shell, .igd-collection-page, .igd-tag-page, .igd-articles-page, .igd-game-page, .igd-about-page) > * {
    max-width: var(--igd-reference-content) !important;
    width: 100%;
    box-sizing: border-box;
}
.wp-site-blocks main h1, .igd-home-intro h1, .igd-games-intro h1 {
    font-weight: 700;
    letter-spacing: -.055em;
    line-height: .99;
    font-size: clamp(2.35rem, 6.15vw, 4.65rem) !important;
}
.igd-home-intro {
    grid-template-columns: minmax(0, 1fr) 34%;
    gap: .25rem;
    min-height: 132px;
    position: relative;
}
.igd-home-intro > div:first-child { grid-column: 1 / -1; z-index: 1; }
.igd-home-intro h1 { max-width: 86%; letter-spacing: -.035em; }
.igd-home-intro p, .igd-games-intro p { margin-top: .58rem; font-size: clamp(1.06rem, 2.35vw, 1.38rem); color: var(--igd-reference-ink); line-height: 1.26; }
.igd-home-lighthouse {
    position: absolute;
    right: 0;
    bottom: 0;
    width: 31%;
    max-width: 385px;
    max-height: none;
    aspect-ratio: 253 / 139;
    background: url("home-reference-art.png") 40.105% 11.23% / 701.186% 638.129% no-repeat;
}
.igd-home-search { display: grid; grid-template-columns: minmax(0, 1fr) 120px minmax(160px, 185px); margin-top: 15px; gap: 15px; }
.igd-home-search input { min-height: 48px; font: inherit; font-size: 1.04rem; padding-left: 3.15rem; }
.igd-home-search label::after { left: .9rem; }
.igd-home-search .igd-button, .igd-games-shell .igd-filter-actions .igd-button {
    min-height: 47px; font-size: 1.05rem; font-weight: 700; padding: .45rem .85rem;
    justify-content: center; border-radius: 10px; background: var(--igd-reference-blue); border-color: var(--igd-reference-blue);
}
.igd-home-search .igd-ai-button, .igd-games-shell .igd-filter-actions .igd-ai-button {
    border: 1px solid var(--igd-reference-blue); background: transparent; color: #2039df;
}
.igd-home-search .igd-ai-button:disabled, .igd-games-shell .igd-ai-button:disabled { opacity: .73; cursor: default; }
.igd-home-feature { margin: 34px 0 0; background: var(--igd-reference-card); border-color: #e2e8f7; border-radius: 14px; }
.igd-home-feature--with-image { grid-template-columns: 55% 45%; }
.igd-home-feature figure.igd-reference-cover {
    width: 100%;
    min-width: 0;
    align-self: start;
    aspect-ratio: 455 / 271;
    background: url("home-reference-art.png") 2.729% 52.273% / 389.89% 327.306% no-repeat;
}
.igd-home-feature > div { padding: clamp(17px, 2.75vw, 34px); }
.igd-home-feature .igd-eyebrow { color: #6545bb; font-size: .92rem; margin: 0 0 .3rem; font-weight: 700; }
.igd-home-feature h2 { font-size: clamp(1.9rem, 4.7vw, 3.65rem); line-height: .99; letter-spacing: -.055em; margin: 0 0 .65rem; max-width: none; }
.igd-home-feature p { font-size: clamp(1rem, 2vw, 1.27rem); line-height: 1.3; margin: .5rem 0; }
.igd-home-feature-facts { margin: 1rem 0; }
.igd-home-feature-facts span { font-size: .9rem; }
.igd-home-feature .igd-button { font-weight: 700; padding: .55rem 1rem; }
.igd-home-games { margin: 17px 0 2rem; }
.igd-home-games header { margin-bottom: 14px; }
.igd-home-games header h2 { font-size: clamp(1.55rem, 3.7vw, 2.5rem); line-height: 1.05; }
.igd-home-games header > p { margin: 0; }
.igd-home-games header a { font-size: clamp(.86rem, 1.75vw, 1.05rem); text-decoration: none; }
.igd-home-game, .igd-games-shell .igd-card, .igd-site-shell .igd-collection-card, .igd-articles-page .wp-block-post-template > li { background: var(--igd-reference-card); }
.igd-home-game-media { aspect-ratio: 2.54; overflow: hidden; border-radius: 11px 11px 9px 9px; }
.igd-home-game-media img { object-fit: cover; }
.igd-home-game-copy { padding: .35rem .8rem .65rem; }
.igd-home-game-copy h3 { font-size: clamp(1.1rem, 2.3vw, 1.5rem); margin-bottom: .15rem; }
.igd-home-game-copy p { line-height: 1.16; }
.igd-home-game-copy .igd-home-feature-facts { margin: .45rem 0 0; }
.igd-home-game-copy h3, .igd-games-shell .igd-card h3,
.igd-collection-page .igd-card h3, .igd-tag-page .igd-card h3 {
    min-block-size: 2lh;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    overflow-wrap: anywhere;
}
.igd-home-game-copy p { min-block-size: 2lh; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.igd-home-game-copy .igd-home-feature-facts { align-items: center; min-height: 1.35rem; }
.igd-home-game-copy .igd-home-feature-facts span { min-width: 0; }
.igd-games-intro { min-height: 136px; }
.igd-games-intro::after { width: 31%; background: url("home-reference-art.png") 40.105% 11.23% / 701.186% 638.129% no-repeat; aspect-ratio: 253 / 139; height: auto; }
.igd-games-shell .igd-card-body { padding: .7rem .8rem .8rem; }
.igd-collection-page .igd-card-grid, .igd-tag-page .igd-card-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: .9rem;
}
.igd-collection-page .igd-card, .igd-tag-page .igd-card { background: var(--igd-reference-card); }
.igd-collection-page .igd-card-body, .igd-tag-page .igd-card-body { padding: .7rem .8rem .8rem; }
:is(.igd-games-shell, .igd-collection-page, .igd-tag-page) .igd-card-meta {
    min-height: 25px;
    gap: .28rem;
    font-size: clamp(.68rem, 1.2vw, .83rem);
    white-space: nowrap;
}
.igd-card-meta .igd-score { margin-inline-start: auto; }
:is(.igd-games-shell, .igd-collection-page, .igd-tag-page) .igd-card h3 {
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin: .3rem 0 .45rem;
}
:is(.igd-games-shell, .igd-collection-page, .igd-tag-page) .igd-card .igd-pill-row {
    display: flex;
    flex-wrap: nowrap;
    gap: .35rem;
    min-height: 27px;
    margin: 0;
}
:is(.igd-games-shell, .igd-collection-page, .igd-tag-page) .igd-card .igd-pill {
    display: block;
    min-width: 0;
    max-width: 52%;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
:is(.igd-games-shell, .igd-collection-page, .igd-tag-page) .igd-card .igd-pill:nth-child(n+3) { display: none; }
.igd-games-shell .igd-filter-panel:not(:has(.igd-active-filter-row)) .igd-filter-form:has(input[name="q"][value=""]) :is(.igd-filter-reset, .igd-filter-count) { display: none; }
.igd-filter-disclosure-actions [data-igd-filter-toggle] { border-color: var(--igd-reference-blue); }
.igd-collection-page .igd-home-feature { margin-block: 1.4rem; }
.igd-game-page .igd-game-panel { background: transparent; padding: 0; border: 0; }
.igd-game-page .igd-game-summary { border: 0; padding: .5rem 0; background: transparent; }
.igd-game-page .igd-game-hero-image { border-radius: 12px; }
.igd-game-page .igd-game-actions { display: flex; flex-wrap: wrap; }
.igd-editorial-shell > .wp-block-post-title { max-width: 780px !important; }
.igd-editorial-shell .entry-content { max-width: 780px !important; }
.igd-article-reading-layout { max-width: 1100px !important; display: grid; gap: 1.3rem; align-items: start; }
.igd-article-reading-layout:has(.igd-article-related-game) { grid-template-columns: minmax(0, 1fr) minmax(180px, 23%); }
.igd-article-reading-layout .entry-content { margin: 0; min-width: 0; }
.igd-article-reading-layout .entry-content img { max-width: 100%; }
.igd-articles-page .wp-block-post-template { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.igd-articles-page .wp-block-post-template > li:first-child { grid-column: 1 / -1; }
.igd-articles-page .wp-block-post-template > li:first-child .wp-block-post-featured-image img { aspect-ratio: 3 / 1; object-fit: cover; }
.igd-article-reference-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px; }
.igd-article-reference-card, .igd-article-related-game { background: #f7f9ff; border: 1px solid #dce4f6; border-radius: 13px; overflow: hidden; }
.igd-article-reference-card, .igd-article-reference-card > div { display: flex; flex-direction: column; }
.igd-article-reference-card > div { flex: 1; }
.igd-article-reference-card .igd-button { align-self: start; margin-top: auto; }
.igd-article-reference-feature { grid-column: 1 / -1; }
.igd-article-reference-media { display: block; aspect-ratio: 2.65; }
.igd-article-reference-feature .igd-article-reference-media { aspect-ratio: 3.06; }
.igd-article-reference-media img { width: 100%; height: 100%; object-fit: cover; }
.igd-article-reference-card > div, .igd-article-related-game { padding: 1rem 1.2rem; }
.igd-article-reference-card h2 { font-size: clamp(1.4rem, 3.2vw, 2.55rem); line-height: 1.05; letter-spacing: -.045em; margin: 0; }
.igd-article-reference-card h2 a { color: var(--igd-reference-ink); text-decoration: none; }
.igd-article-reference-card p { margin: .55rem 0 .85rem; line-height: 1.35; }
.igd-article-related-game { max-width: 780px !important; }
.igd-article-related-game img { max-width: 260px; width: 100%; height: auto; }
.igd-about-page > .igd-about-art {
    width: min(100%, 540px);
    aspect-ratio: 411 / 168;
    margin-left: auto;
    background: url("home-reference-art.png") 99.78% 34.49% / 431.63% 527.98% no-repeat;
}

@media (min-width: 731px) {
    .igd-game-page .igd-game-hero:has(.igd-game-hero-image) { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
}

@media (max-width: 730px) {
    body .wp-site-blocks > header > .igd-site-header-inner { min-height: 86px; grid-template-columns: 1fr auto; gap: 1px 8px; padding-block: 4px !important; }
    .igd-site-header-inner .wp-block-site-title { grid-area: 1 / 1; }
    .igd-site-header-inner .igd-header-search { grid-area: 1 / 2; }
    .igd-site-header-inner .wp-block-navigation { grid-column: 1 / -1; grid-row: 2; justify-content: space-around; }
    .igd-site-header-inner .wp-block-navigation__container { width: 100%; justify-content: space-around; }
    .igd-site-header-inner .wp-block-navigation a { font-size: .86rem; padding: .3rem; }
    body .wp-site-blocks > :is(.igd-site-shell, .igd-games-shell, .igd-collection-page, .igd-tag-page, .igd-articles-page, .igd-editorial-shell, .igd-game-page, .igd-about-page) { padding-top: 23px !important; }
    .igd-home-intro { min-height: 122px; align-content: start; }
    .igd-home-intro h1 { max-width: 65%; font-size: clamp(2.1rem, 9.1vw, 3rem) !important; }
    .igd-home-intro p { max-width: 68%; font-size: 1rem; }
    .igd-home-lighthouse {
        width: 36%; aspect-ratio: 120 / 104; bottom: 0;
        background-position: 68.077% 16.603%; background-size: 1478.334% 852.885%;
    }
    .igd-home-search { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-top: 14px; }
    .igd-home-search input, .igd-home-search .igd-button { min-height: 36px; font-size: .9rem; padding-block: .26rem; }
    .igd-home-search input { padding-left: 2.55rem; }
    .igd-home-feature { margin-top: 20px; }
    .igd-home-feature--with-image { grid-template-columns: minmax(0, 1fr); }
    .igd-home-feature figure.igd-reference-cover { aspect-ratio: 328 / 168; background-position: 63.209% 55.076%; background-size: 540.854% 527.977%; }
    .igd-home-feature > div { padding: 9px 15px 13px; }
    .igd-home-feature h2 { margin-bottom: .25rem; max-width: none; }
    .igd-home-feature .igd-eyebrow { margin: 0; font-size: .78rem; }
    .igd-home-feature p { margin-block: .35rem; line-height: 1.2; }
    .igd-home-feature-facts { margin: .6rem 0; gap: .4rem .7rem; }
    .igd-home-feature-facts span { font-size: .77rem; }
    .igd-home-feature .igd-button { display: flex; width: 100%; box-sizing: border-box; justify-content: center; }
    .igd-home-games { margin-top: 18px; }
    .igd-games-intro { min-height: 0; }
    .igd-games-shell .igd-filter-actions .igd-button { min-height: 38px; }
    .igd-games-shell .igd-filter-form input[type="search"] { min-height: 42px; }
    .igd-articles-page .wp-block-post-template { grid-template-columns: 1fr; }
    .igd-article-reference-grid { grid-template-columns: 1fr; }
    .igd-article-reference-feature .igd-article-reference-media { aspect-ratio: 1.36; }
    .igd-article-reading-layout:has(.igd-article-related-game) { grid-template-columns: 1fr; }
    .igd-collection-page .igd-card-grid, .igd-tag-page .igd-card-grid { grid-template-columns: 1fr; }
    .igd-tag-page .igd-card:has(.igd-card-media) { display: grid; grid-template-columns: minmax(90px, 43%) 1fr; align-items: start; }
}
