:root {
    --igd-ink: #15173a;
    --igd-blue: #324cf5;
    --igd-ice: #f2f5ff;
    --igd-lavender: #bda8ff;
    --igd-coral: #ff6c80;
    --igd-line: #cbd2eb;
}

[hidden] { display: none !important; }
body .wp-site-blocks > header { background: var(--igd-ice); box-shadow: none; border-color: var(--igd-line); }
.wp-block-site-title a { display: inline-flex; align-items: center; gap: .5rem; color: var(--igd-ink); }
.wp-block-site-title a::before {
    content: "";
    width: 1.4rem;
    height: 1.4rem;
    background: center / contain no-repeat url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23324cf5' stroke-width='2'%3E%3Cpath d='M9 5h6l3 4-1 11H7L6 9zm1 0V3h4v2M6 9h12M10 16l2-4 2 4-2 2z'/%3E%3C/svg%3E");
}
.wp-block-navigation a { border-radius: .55rem; color: var(--igd-ink); }
.wp-block-navigation a:hover { background: #e7e1ff; }
.wp-site-blocks main h1 { color: var(--igd-ink); font-weight: 800; letter-spacing: -.052em; line-height: 1.02; font-size: clamp(2.55rem, 6vw, 4.8rem); }
.igd-button, .igd-filter-actions .igd-button { background: var(--igd-blue); color: white; border: 1px solid var(--igd-blue); border-radius: 10px; min-height: 44px; }
.igd-button:hover, .igd-button:focus-visible { background: #263bd0; color: white; }
.igd-filter-actions .igd-ai-button, .igd-home-search .igd-ai-button { background: #e7e1ff; color: #253bd4; border: 1px solid #a5b4ff; }
.igd-card, .igd-collection-card, .igd-game-panel { border-color: var(--igd-line); border-radius: 16px; box-shadow: none; }
.igd-card:hover { border-color: #929ff1; box-shadow: 0 10px 28px #15173a12; }
.igd-card img { height: auto; object-fit: contain; background: #e3e9fb; }
.igd-card .igd-pill, .igd-game-panel .igd-pill { background: #e7e1ff; color: var(--igd-ink); }

.igd-home-discovery h1 { margin: 0; }
.igd-home-discovery > p { color: #41476f; }
.igd-home-search { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1rem 0 .5rem; }
.igd-home-search label { flex: 1; min-width: 210px; }
.igd-home-search input, .igd-cluster-search input {
    box-sizing: border-box;
    width: 100%;
    min-height: 46px;
    border: 1px solid #a6aee0;
    border-radius: 10px;
    padding: .55rem .8rem;
    background: white;
    color: var(--igd-ink);
    font: inherit;
}
.igd-search-example { margin: .4rem 0; font-size: .85rem; }
.igd-home-feature { margin: 1.4rem 0 2rem; background: #e7eaff; border: 1px solid var(--igd-line); border-radius: 16px; overflow: hidden; }
.igd-home-feature--with-image { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: center; }
.igd-home-feature figure { position: relative; margin: 0; }
.igd-home-feature figure img { display: block; width: 100%; height: auto; }
.igd-home-feature figcaption { padding: .4rem .75rem; color: #41476f; font-size: .76rem; }
.igd-home-feature > div { padding: clamp(1rem, 3vw, 2.3rem); }
.igd-home-feature h2 { margin: .3rem 0 .65rem; font-size: clamp(1.6rem, 3.7vw, 2.6rem); line-height: 1.07; letter-spacing: -.04em; }
.igd-home-feature .igd-eyebrow { color: #5139a2; }
.igd-game-breadcrumb a { color: #253bd4; font-weight: 700; }
.igd-game-hero-image { height: auto; object-fit: contain; }
.igd-game-hero-image--screen { aspect-ratio: auto; }
.igd-game-summary { background: #f3f4ff; border-color: var(--igd-line); }
.igd-game-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.igd-game-panel .igd-game-actions .igd-button { color: white; }
.igd-game-hero:has(.igd-game-hero-image) { align-items: start; }
.igd-game-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem 1rem; margin: .7rem 0; }
.igd-game-actions > p { margin: 0; }
.igd-game-traits { margin-block: 1rem; padding: .8rem 1rem; border: 1px solid var(--igd-line); border-radius: 12px; }
.igd-game-traits summary { cursor: pointer; color: #253bd4; font-weight: 700; }
.igd-screenshot-row img { background: #e3e9fb; object-fit: contain; }
.igd-editorial-shell a, .igd-articles-page .wp-block-post-title a { text-underline-offset: .2em; }
.igd-articles-page .wp-block-post-template > li { border-color: var(--igd-line); border-radius: 16px; overflow: hidden; }
.igd-articles-page .wp-block-post-featured-image img { height: auto; object-fit: contain; background: #e3e9fb; }
.igd-editorial-shell img, .igd-collection-page .wp-block-post-featured-image img { border-radius: 14px; height: auto; }
.igd-collection-page > .wp-block-post-featured-image { margin-block: 1rem; }

.igd-filter-panel, .igd-filter-panel--context { padding: 0; margin: .9rem 0 1.15rem; background: transparent; box-shadow: none; border: 0; }
.igd-filter-panel--context .igd-context-filter-title { display: none; }
.igd-filter-search input { border-color: #a6aee0; background: white; color: var(--igd-ink); }
.igd-filter-form { row-gap: .5rem; }
.igd-filter-actions { flex-wrap: wrap; }
.igd-filter-disclosure-actions .igd-filter-state-form { margin: 0; }
.igd-filter-disclosure-actions button { min-height: 44px; background: #e7e1ff; border: 1px solid #a5b4ff; border-radius: 10px; color: #253bd4; }
.igd-active-filter-row { margin: .45rem 0; }
.igd-cluster-dialog {
    position: fixed;
    inset: 0 0 0 auto;
    margin: 0;
    width: min(100%, 510px);
    height: 100dvh;
    max-width: none;
    max-height: none;
    box-sizing: border-box;
    padding: 1rem;
    border: 0;
    background: var(--igd-ice);
    color: var(--igd-ink);
    font: inherit;
}
.igd-cluster-dialog[open] { display: flex; flex-direction: column; gap: .7rem; }
.igd-cluster-dialog::backdrop { background: #15173a70; }
body:has(.igd-cluster-dialog[open]) { overflow: hidden; }
.igd-cluster-dialog button, .igd-cluster-dialog select { font: inherit; cursor: pointer; }
.igd-cluster-head, .igd-cluster-path, .igd-cluster-footer { display: flex; align-items: center; gap: .55rem; }
.igd-cluster-head { justify-content: space-between; }
.igd-cluster-head h2 { margin: 0; font-size: 2rem; letter-spacing: -.05em; }
.igd-cluster-head button, .igd-cluster-path button, .igd-cluster-path select, .igd-cluster-footer [data-sound] {
    min-height: 44px;
    padding: .35rem .65rem;
    border: 1px solid var(--igd-line);
    border-radius: 9px;
    background: white;
    color: var(--igd-ink);
}
.igd-cluster-path { flex-wrap: wrap; font-size: .85rem; }
.igd-cluster-path select { margin-left: auto; max-width: 10rem; }
.igd-cluster-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .35rem .65rem; overflow: auto; }
.igd-cluster-orb { display: grid; justify-items: center; align-content: center; gap: .3rem; border: 1px solid transparent; border-radius: 12px; background: transparent; color: var(--igd-ink); padding: .3rem; font-weight: 700 !important; }
.igd-cluster-orb:hover { border-color: var(--igd-line); }
.igd-cluster-orb span { display: grid; place-items: center; width: clamp(66px, 10dvh, 96px); aspect-ratio: 1; border-radius: 50%; font-size: 2rem; background: var(--igd-lavender); }
.igd-cluster-orb--blue span { background: var(--igd-blue); color: white; }
.igd-cluster-orb--coral span { background: var(--igd-coral); }
.igd-cluster-content { flex: 1 1 auto; min-height: 0; overflow: auto; }
.igd-cluster-content .igd-filter-controls { display: block; }
.igd-cluster-content .igd-filter-group { margin-bottom: .6rem; }
.igd-cluster-content .igd-filter-chip[aria-pressed="true"] { outline: 2px solid var(--igd-blue); color: #253bd4; background: #e7e1ff; }
.igd-cluster-content .igd-filter-option:not([hidden]) { animation: igd-filter-in 160ms ease-out both; }
.igd-cluster-content .igd-filter-option:nth-child(1) { animation-delay: 105ms; }
.igd-cluster-content .igd-filter-option:nth-child(2) { animation-delay: 160ms; }
.igd-cluster-content .igd-filter-option:nth-child(3) { animation-delay: 215ms; }
@keyframes igd-filter-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: translateY(0); } }
.igd-cluster-footer .igd-button { flex: 1; justify-content: center; }
.igd-cluster-dialog :focus-visible { outline: 2px solid #263bd0; outline-offset: 2px; }

@media (max-width: 600px) {
    body .wp-site-blocks > main { padding-inline: 1rem !important; }
    body .wp-site-blocks > header > .igd-site-header-inner { flex-wrap: nowrap; padding-block: .55rem !important; }
    .igd-filter-actions { gap: .55rem; }
    .igd-filter-search > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
    .igd-home-search label { flex-basis: 100%; }
    .igd-home-feature--with-image { grid-template-columns: 1fr; }
    .igd-card-grid { grid-template-columns: 1fr; }
    .igd-card:has(.igd-card-media) { display: grid; grid-template-columns: minmax(96px, 38%) minmax(0, 1fr); align-items: center; }
    .igd-card-body { padding: .6rem .65rem; }
    .igd-card h3 { font-size: 1.08rem; }
    .igd-card .igd-pill { font-size: .72rem; }
    .igd-game-panel { padding: .75rem; }
}
@media (min-width: 900px) {
    .igd-game-hero:has(.igd-game-hero-image) { grid-template-columns: minmax(0, 1.48fr) minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
    .igd-cluster-content .igd-filter-option:not([hidden]) { animation: none; }
}
