:root {
    --color-bg: #12090d;
    --color-bg-soft: #1b0d12;
    --color-panel: #221116;
    --color-panel-strong: #2d171d;
    --color-panel-warm: #32191d;
    --color-text: #fff8f3;
    --color-muted: #d6c4bd;
    --color-faint: #a88f88;
    --color-border: #54323a;
    --color-border-strong: #7b4a52;
    --color-heart: #ff3d66;
    --color-coral: #ff6b4a;
    --color-green: #18d27a;
    --color-cyan: #4fc3ff;
    --color-gold: #f4b84c;
    --color-on-accent: #fff8f3;
    --color-dark-ink: #170a0f;
    --link-color: #f1d8d0;
    --link-hover: #ffd15a;
    --link-decoration: rgba(241, 216, 208, 0.48);
    --link-hover-decoration: rgba(255, 209, 90, 0.95);
    --shadow-panel: 0 24px 80px rgba(0, 0, 0, 0.42);
    --panel-outline: inset 0 1px 0 rgba(255, 248, 243, 0.06);
    --game-card-glow: rgba(255, 61, 102, 0.18);
    --game-card-hover-border: rgba(255, 184, 76, 0.72);
    --meta-console-bg: rgba(255, 184, 76, 0.1);
    --meta-console-border: rgba(255, 184, 76, 0.42);
    --meta-genre-bg: rgba(79, 195, 255, 0.1);
    --meta-genre-border: rgba(79, 195, 255, 0.42);
    --meta-player-bg: rgba(255, 61, 102, 0.12);
    --meta-player-border: rgba(255, 61, 102, 0.45);
    --e1up-surface: var(--color-panel);
    --e1up-surface-strong: var(--color-panel-strong);
    --e1up-surface-soft: var(--color-bg-soft);
    --e1up-transparent: transparent;
    --e1up-player-bg: #080306;
    --e1up-text: var(--color-text);
    --e1up-muted: var(--color-muted);
    --e1up-faint: var(--color-faint);
    --e1up-border: var(--color-border);
    --e1up-border-strong: var(--color-border-strong);
    --e1up-panel-outline: var(--panel-outline);
    --e1up-accent: #ff3d66;
    --e1up-accent-rgb: 255, 61, 102;
    --e1up-accent-contrast: #ffffff;
    --e1up-focus: rgba(255, 61, 102, 0.42);
    --e1up-overlay: rgba(8, 3, 6, 0.84);
    --e1up-overlay-title-border: rgba(255, 248, 243, 0.72);
    --e1up-player-menu-shadow: rgba(0, 0, 0, 0.5);
    --e1up-controls-player-bg: rgba(50, 25, 29, 0.72);
    --e1up-controls-player-border: rgba(123, 74, 82, 0.48);
    --e1up-control-row-bg: rgba(18, 9, 13, 0.58);
    --e1up-control-row-border: rgba(123, 74, 82, 0.34);
    --e1up-control-row-utility-bg: rgba(45, 23, 29, 0.48);
    --e1up-key-bg: linear-gradient(180deg, #fff6ee, #d8b8a7);
    --e1up-key-border: #b88372;
    --e1up-key-border-strong: #744339;
    --e1up-key-shadow: 0 2px 0 #744339, 0 5px 9px rgba(0, 0, 0, 0.28);
    --e1up-key-text: #19090a;
    --e1up-error-bg: #331016;
    --e1up-error-text: #ffd9df;
    --e1up-error-border: rgba(255, 61, 102, 0.42);
    --e1up-admin-bg: #ffffff;
    --e1up-admin-border: #dcdcde;
    --e1up-admin-warning-bg: #fff7ed;
    --e1up-admin-warning-text: #7c2d12;
    --e1up-admin-warning-border: #fed7aa;
    --radius: 8px;
    --max-site: 1180px;
    --space-page: clamp(18px, 4vw, 40px);
    --font-main: "Noto Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
    --font-display: var(--font-main);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    min-height: 100%;
    background: var(--color-bg);
    scroll-behavior: smooth;
}

body {
    min-width: 320px;
    margin: 0;
    background:
        radial-gradient(circle at 18% -8%, rgba(255, 61, 102, 0.15), transparent 30%),
        radial-gradient(circle at 84% 4%, rgba(244, 184, 76, 0.1), transparent 26%),
        repeating-linear-gradient(0deg, rgba(255, 248, 243, 0.022) 0, rgba(255, 248, 243, 0.022) 1px, transparent 1px, transparent 5px),
        linear-gradient(180deg, #170a0f 0%, var(--color-bg) 44%, #0b0407 100%);
    color: var(--color-text);
    font-family: var(--font-main);
    font-size: 16px;
    font-style: normal;
    line-height: 1.65;
    letter-spacing: 0;
    overflow-x: hidden;
}

body.is-nav-open {
    overflow-x: hidden;
}

body,
body * {
    font-style: normal !important;
}

img,
svg {
    display: block;
    max-width: 100%;
    height: auto;
}

a {
    color: var(--link-color);
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--link-decoration);
    text-underline-offset: 0.18em;
}

a:hover,
a:focus-visible {
    color: var(--link-hover);
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: var(--link-hover-decoration);
}

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

.screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.screen-reader-text:focus {
    z-index: 100000;
    top: 12px;
    left: 12px;
    width: auto;
    height: auto;
    padding: 10px 14px;
    clip: auto;
    background: var(--color-text);
    color: #061018;
    border-radius: var(--radius);
}

::selection {
    background: var(--color-heart);
    color: #fff;
}

:focus-visible {
    outline: 2px solid var(--color-gold);
    outline-offset: 3px;
}

.site-main {
    min-height: 66vh;
}

.site-header {
    z-index: 20000;
    position: relative;
    width: 100%;
    min-width: 0;
    background: linear-gradient(180deg, var(--color-panel), var(--color-bg));
    border-bottom: 1px solid rgba(255, 184, 76, 0.16);
    backdrop-filter: blur(18px);
}

.site-header-inner,
.site-footer-inner,
.home-hero-inner,
.section-band,
.archive-hero-inner,
.single-game-header,
.page-shell,
.error-404 {
    width: min(var(--max-site), calc(100% - (var(--space-page) * 2)));
    margin-inline: auto;
}

.site-header-inner {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 24px;
    min-height: 74px;
}

.site-branding {
    min-width: 0;
    overflow: hidden;
}

.site-logo-link,
.custom-logo-link {
    display: inline-flex;
    max-width: 100%;
    align-items: center;
    color: var(--color-text);
    text-decoration: none;
}

.site-logo-image,
.custom-logo-link img {
    width: auto;
    height: 34px;
    max-width: min(266px, 28vw);
    object-fit: contain;
}

.site-navigation {
    justify-self: center;
    min-width: 0;
}

.primary-menu,
.footer-menu {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.primary-menu {
    flex-wrap: wrap;
    justify-content: center;
}

.primary-menu li {
    position: relative;
}

.primary-menu a,
.footer-menu a {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    padding: 8px 12px;
    color: var(--color-muted);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
}

.primary-menu a:hover,
.primary-menu a:focus-visible,
.primary-menu .current-menu-item > a,
.footer-menu a:hover,
.footer-menu a:focus-visible {
    color: var(--color-text);
    background: rgba(255, 255, 255, 0.09);
    border-radius: var(--radius);
    text-decoration-line: underline;
}

.primary-menu .sub-menu {
    position: absolute;
    z-index: 21000;
    top: 100%;
    left: 50%;
    display: grid;
    width: max-content;
    min-width: 210px;
    max-width: 280px;
    gap: 4px;
    padding: 8px;
    margin: 0;
    list-style: none;
    background: rgba(12, 18, 28, 0.99);
    border: 1px solid var(--color-border-strong);
    border-radius: var(--radius);
    box-shadow: var(--shadow-panel);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 0);
}

.primary-menu .sub-menu .sub-menu {
    top: -8px;
    left: 100%;
    transform: translate(0, 0);
}

.primary-menu li:hover > .sub-menu,
.primary-menu li:focus-within > .sub-menu {
    opacity: 1;
    pointer-events: auto;
    transform: translate(-50%, 0);
}

.primary-menu .sub-menu li:hover > .sub-menu,
.primary-menu .sub-menu li:focus-within > .sub-menu {
    transform: translate(0, 0);
}

.primary-menu .sub-menu a {
    width: 100%;
    min-height: 38px;
    justify-content: space-between;
    padding: 8px 10px;
    color: var(--color-text);
    white-space: nowrap;
}

.primary-menu .menu-item-has-children > a::after {
    width: 0;
    height: 0;
    margin-left: 8px;
    border-top: 5px solid currentColor;
    border-right: 4px solid transparent;
    border-left: 4px solid transparent;
    content: "";
    opacity: 0.75;
}

.nav-toggle {
    display: none;
}

.header-search {
    position: relative;
    justify-self: end;
}

.search-toggle {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    cursor: pointer;
}

.search-toggle:hover,
.search-toggle:focus-visible,
.header-search.is-search-open .search-toggle {
    background: rgba(244, 184, 76, 0.12);
    border-color: rgba(244, 184, 76, 0.55);
    color: var(--color-gold);
}

.search-toggle-icon {
    position: relative;
    display: block;
    width: 17px;
    height: 17px;
    border: 2px solid currentColor;
    border-radius: 50%;
}

.search-toggle-icon::after {
    position: absolute;
    right: -6px;
    bottom: -4px;
    width: 8px;
    height: 2px;
    background: currentColor;
    border-radius: 2px;
    content: "";
    transform: rotate(45deg);
    transform-origin: center;
}

.header-search-panel {
    position: absolute;
    z-index: 21000;
    top: calc(100% + 10px);
    right: 0;
    width: min(360px, calc(100vw - 32px));
    opacity: 0;
    pointer-events: none;
    transform: translateY(-6px);
}

.header-search.is-search-open .header-search-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.search-form {
    display: grid;
    grid-template-columns: 1fr 42px;
    align-items: center;
    min-width: 0;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius);
    overflow: hidden;
}

.header-search-panel .search-form {
    box-shadow: var(--shadow-panel);
}

.search-form label {
    min-width: 0;
}

.search-field {
    width: 100%;
    min-height: 42px;
    padding: 0 12px;
    background: transparent;
    border: 0;
    color: var(--color-text);
    outline: 0;
}

.search-field::placeholder {
    color: var(--color-faint);
    opacity: 1;
}

.search-submit {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    background: var(--color-green);
    border: 0;
    color: var(--color-dark-ink);
    cursor: pointer;
    font-size: 1.2rem;
    font-weight: 900;
}

.search-submit:hover,
.search-submit:focus-visible {
    background: var(--color-gold);
}

.button,
.wp-block-button__link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 18px;
    background: var(--color-heart);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    color: var(--color-on-accent);
    cursor: pointer;
    font-size: 0.94rem;
    font-weight: 900;
    line-height: 1.2;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
    box-shadow: 0 10px 24px rgba(255, 61, 102, 0.22);
}

.button:hover,
.button:focus-visible,
.wp-block-button__link:hover,
.wp-block-button__link:focus-visible {
    background: var(--color-coral);
    color: var(--color-on-accent);
    transform: translateY(-1px);
}

.button-secondary {
    background: var(--color-green);
    color: var(--color-dark-ink);
    box-shadow: 0 10px 24px rgba(0, 212, 143, 0.16);
}

.button-secondary:hover,
.button-secondary:focus-visible {
    background: var(--color-gold);
    color: var(--color-dark-ink);
}

.button-small {
    min-height: 36px;
    padding: 8px 12px;
    font-size: 0.8rem;
}

.home-hero {
    padding: clamp(30px, 6vw, 68px) 0 26px;
    border-bottom: 1px solid rgba(255, 184, 76, 0.14);
}

.home-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(360px, 1.1fr);
    align-items: center;
    gap: clamp(24px, 4vw, 56px);
}

.home-hero-copy h1,
.archive-hero h1,
.single-game-header h1,
.page-header h1,
.error-404 h1 {
    max-width: 820px;
    margin: 12px 0 18px;
    font-family: var(--font-display);
    font-size: clamp(2.3rem, 7vw, 5.4rem);
    font-weight: 900;
    line-height: 0.95;
    letter-spacing: 0;
    text-transform: uppercase;
}

.home-hero-copy p,
.archive-description,
.error-404 p {
    max-width: 620px;
    margin: 0 0 24px;
    color: var(--color-muted);
    font-size: clamp(1rem, 2vw, 1.16rem);
}

.home-hero-actions {
    display: grid;
    grid-template-columns: auto minmax(220px, 340px);
    align-items: center;
    gap: 14px;
}

.featured-panel {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    overflow: hidden;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-panel);
}

.featured-media {
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--color-bg);
    text-decoration: none;
}

.featured-media img,
.featured-media .game-card-fallback {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.featured-copy {
    display: grid;
    gap: 12px;
    padding: clamp(18px, 3vw, 26px);
}

.featured-copy > span,
.game-card-meta,
.game-meta-label {
    color: var(--color-green);
    font-size: 0.72rem;
    font-weight: 900;
    text-transform: uppercase;
}

.featured-copy h2 {
    margin: 0;
    font-size: clamp(1.5rem, 3vw, 2.4rem);
    line-height: 1.05;
}

.featured-copy h2 a {
    text-decoration: none;
}

.featured-empty {
    min-height: 360px;
    display: grid;
    place-content: center;
    padding: 32px;
    text-align: center;
}

.breadcrumbs {
    display: inline-flex;
    width: fit-content;
    max-width: 100%;
    padding: 7px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--panel-outline);
    color: var(--color-faint);
    font-size: 0.82rem;
    font-weight: 800;
    margin-top: 14px;
}

.breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0;
    padding: 0;
    margin: 0;
    list-style: none;
}

.breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin: 0 8px;
    color: var(--color-border-strong);
}

.breadcrumbs a,
.breadcrumbs span {
    display: inline;
    padding: 2px 3px;
    background: transparent;
    border: 0;
    border-radius: 0;
    color: var(--link-color);
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--link-decoration);
}

.breadcrumbs li:first-child a {
    color: var(--color-green);
    text-decoration-color: rgba(0, 212, 143, 0.58);
}

.breadcrumbs a:hover,
.breadcrumbs a:focus-visible {
    color: var(--link-hover);
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: var(--link-hover-decoration);
}

.section-band {
    padding: clamp(34px, 5vw, 64px) 0;
}

.section-heading {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.section-heading h2 {
    margin: 0;
    font-size: clamp(1.45rem, 3vw, 2.2rem);
    line-height: 1.08;
}

.section-heading a {
    color: var(--link-color);
    font-size: 0.92rem;
    font-weight: 800;
    text-decoration: none;
}

.console-links {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 12px;
}

.console-links a {
    display: grid;
    gap: 2px;
    min-height: 78px;
    align-content: center;
    padding: 16px;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    text-decoration: none;
    box-shadow: var(--panel-outline);
}

.console-links a:hover,
.console-links a:focus-visible {
    border-color: var(--color-gold);
    background: var(--color-panel-strong);
}

.console-links span {
    font-weight: 900;
}

.console-links small {
    color: var(--color-muted);
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.game-grid--compact {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.oneupheart-games-shortcode {
    margin: 24px 0;
}

.oneupheart-games-shortcode .game-grid {
    grid-template-columns: repeat(var(--oneupheart-games-columns, 4), minmax(0, 1fr));
}

.game-card,
.content-card {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    overflow: hidden;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--panel-outline), 0 18px 48px rgba(0, 0, 0, 0.28);
}

.game-card:hover,
.game-card:focus-within,
.content-card:hover,
.content-card:focus-within {
    border-color: var(--game-card-hover-border);
    box-shadow: var(--panel-outline), 0 20px 54px rgba(0, 0, 0, 0.34), 0 0 0 1px var(--game-card-glow);
}

.game-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--color-bg);
    text-decoration: none;
}

.game-card-media::after {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, transparent 56%, rgba(18, 9, 13, 0.7)),
        radial-gradient(circle at 12% 10%, rgba(255, 184, 76, 0.18), transparent 30%);
    content: "";
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.game-card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 220ms ease, filter 220ms ease;
}

.game-card:hover .game-card-image,
.game-card:focus-within .game-card-image {
    filter: saturate(1.08) contrast(1.03);
    transform: scale(1.018);
}

.game-card:hover .game-card-media::after,
.game-card:focus-within .game-card-media::after {
    opacity: 1;
}

.game-card-fallback {
    display: grid;
    width: 100%;
    height: 100%;
    min-height: 178px;
    place-items: center;
    background:
        linear-gradient(135deg, rgba(255, 61, 102, 0.22), transparent 36%),
        linear-gradient(315deg, rgba(244, 184, 76, 0.18), transparent 42%),
        var(--color-bg-soft);
    color: var(--color-text);
    text-align: center;
}

.game-card-fallback-mark {
    font-family: var(--font-display);
    font-size: clamp(2rem, 7vw, 4.5rem);
    line-height: 1;
    text-shadow: 4px 4px 0 rgba(0, 0, 0, 0.55);
}

.game-card-fallback-console {
    align-self: end;
    margin-bottom: 16px;
    color: var(--color-gold);
    font-size: 0.8rem;
    font-weight: 900;
    text-transform: uppercase;
}

.game-card-body,
.content-card {
    padding: 15px;
}

.game-card-body {
    display: flex;
    min-height: 232px;
    flex: 1;
    flex-direction: column;
}

.game-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.game-card-badge {
    display: inline-flex;
    min-height: 26px;
    align-items: center;
    padding: 4px 8px;
    border: 1px solid var(--color-border);
    border-radius: 5px;
    font-size: 0.72rem;
    font-weight: 900;
    line-height: 1.1;
    text-decoration: none;
}

.game-card-badge:hover,
.game-card-badge:focus-visible {
    text-decoration-line: underline;
}

.game-card-badge--console {
    background: var(--meta-console-bg);
    border-color: var(--meta-console-border);
    color: var(--color-gold);
}

.game-card-badge--genre {
    background: var(--meta-genre-bg);
    border-color: var(--meta-genre-border);
    color: var(--color-cyan);
}

.game-card-badge--players {
    background: var(--meta-player-bg);
    border-color: var(--meta-player-border);
    color: var(--color-heart);
}

.game-card-title,
.content-card h2 {
    margin: 8px 0 8px;
    font-size: 1.08rem;
    line-height: 1.22;
}

.game-card-title a,
.content-card h2 a {
    text-decoration: none;
}

.game-card-title a:hover,
.game-card-title a:focus-visible,
.content-card h2 a:hover,
.content-card h2 a:focus-visible,
.featured-copy h2 a:hover,
.featured-copy h2 a:focus-visible,
.section-heading a:hover,
.section-heading a:focus-visible,
.game-meta-group a:hover,
.game-meta-group a:focus-visible,
.entry-content a:hover,
.entry-content a:focus-visible,
.game-sidebar .widget a:hover,
.game-sidebar .widget a:focus-visible {
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: var(--link-hover-decoration);
}

.game-card-excerpt,
.content-card p {
    margin: 0;
    color: var(--color-muted);
    font-size: 0.9rem;
}

.game-card-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-top: auto;
    padding-top: 16px;
}

.game-card-players {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 5px;
    min-width: 0;
}

.archive-hero {
    padding: clamp(30px, 6vw, 70px) 0 28px;
    border-bottom: 1px solid rgba(255, 184, 76, 0.14);
}

.archive-hero-inner {
    display: grid;
    gap: 14px;
}

.archive-hero h1 {
    margin-bottom: 4px;
}

.archive-tools {
    max-width: 420px;
}

.archive-description p {
    margin: 0;
}

.game-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.game-meta-group {
    display: inline-flex;
    min-height: 34px;
    align-items: center;
    gap: 8px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.065);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--panel-outline);
}

.game-meta-group a {
    color: var(--link-color);
    font-size: 0.84rem;
    font-weight: 800;
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--link-decoration);
}

.game-meta-group a:hover,
.game-meta-group a:focus-visible {
    color: var(--link-hover);
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: var(--link-hover-decoration);
}

.single-game-header {
    padding: clamp(20px, 4vw, 42px) 0 14px;
}

.single-game-header h1 {
    font-size: clamp(2.1rem, 5.6vw, 4.8rem);
}

.single-game-player {
    width: 100%;
}

.single-game-player .emu1up-wrap {
    max-width: none;
    padding: 12px;
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--panel-outline);
}

.theme-notice,
.content-none,
.ad-slot,
.entry-content,
.game-details,
.game-sidebar .widget {
    background: var(--color-panel);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--panel-outline);
}

.theme-notice {
    padding: 20px;
    color: var(--color-muted);
}

.ad-slot {
    display: grid;
    width: min(var(--max-site), calc(100% - (var(--space-page) * 2)));
    min-height: 92px;
    place-items: center;
    margin: 22px auto;
    color: var(--color-faint);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
    border-style: dashed;
}

.ad-slot--filled {
    display: block;
    padding: 12px;
    border-style: solid;
}

.single-game-layout {
    display: grid;
    gap: 24px;
    padding-top: 18px;
}

.single-game-layout.has-sidebar {
    grid-template-columns: minmax(0, 1fr) 338px;
    align-items: start;
}

.single-game-main {
    display: grid;
    min-width: 0;
    gap: 28px;
}

.single-game-main .ad-slot {
    width: 100%;
    margin: 0;
}

.single-game-content,
.game-details,
.related-games.section-band {
    padding-top: 0;
}

.single-game-main .related-games.section-band {
    width: 100%;
    margin-inline: 0;
    padding-bottom: 0;
}

.single-game-main .comments-area.section-band {
    width: 100%;
    margin-inline: 0;
    padding: 0;
}

.entry-content {
    padding: clamp(20px, 4vw, 34px);
    color: var(--color-text);
}

.entry-content > *:first-child {
    margin-top: 0;
}

.entry-content > *:last-child {
    margin-bottom: 0;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
    color: var(--color-text);
    line-height: 1.15;
}

.entry-content a {
    color: var(--link-color);
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--link-decoration);
}

.entry-content img,
.wp-block-image img {
    border-radius: var(--radius);
}

.details-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1px;
    overflow: hidden;
    margin: 0;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    background: var(--color-border);
}

.game-sidebar {
    position: sticky;
    top: 24px;
    display: grid;
    width: 338px;
    max-width: 338px;
    gap: 16px;
}

.game-sidebar .widget {
    width: 338px;
    max-width: 338px;
    padding: 18px;
    overflow: hidden;
}

.game-sidebar .widget > * {
    max-width: min(300px, 100%);
}

.game-sidebar iframe,
.game-sidebar img,
.game-sidebar table,
.game-sidebar embed,
.game-sidebar object {
    max-width: min(300px, 100%);
}

.game-sidebar .widget > *:first-child {
    margin-top: 0;
}

.game-sidebar .widget > *:last-child {
    margin-bottom: 0;
}

.game-sidebar .widget ul,
.game-sidebar .widget ol {
    padding-left: 1.2rem;
    margin-bottom: 0;
}

.game-sidebar .widget a {
    color: var(--link-color);
    text-decoration-line: underline;
    text-decoration-style: dotted;
    text-decoration-color: var(--link-decoration);
}

.game-sidebar .widget a:hover,
.game-sidebar .widget a:focus-visible {
    color: var(--link-hover);
    text-decoration-line: underline;
    text-decoration-style: solid;
    text-decoration-color: var(--link-hover-decoration);
}

.game-sidebar .ad-widget {
    overflow: hidden;
}

.details-list div {
    display: grid;
    gap: 4px;
    padding: 15px;
    background: #221116;
}

.details-list dt {
    color: var(--color-green);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
}

.details-list dd {
    margin: 0;
    color: var(--color-text);
    font-weight: 800;
}

.content-none {
    display: grid;
    gap: 10px;
    padding: clamp(24px, 5vw, 42px);
    text-align: center;
}

.content-none h2 {
    margin: 0;
}

.content-none p {
    margin: 0 0 10px;
    color: var(--color-muted);
}

.content-none .search-form {
    width: min(100%, 420px);
    margin-inline: auto;
}

.navigation.pagination {
    margin-top: 30px;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.page-numbers {
    display: inline-grid;
    min-width: 40px;
    min-height: 40px;
    place-items: center;
    padding: 8px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
    font-weight: 900;
    text-decoration: none;
}

.page-numbers.current,
.page-numbers:hover,
.page-numbers:focus-visible {
    background: var(--color-heart);
    color: #fff;
}

.post-list {
    display: grid;
    gap: 16px;
}

.content-card {
    gap: 10px;
}

.content-card h2,
.content-card p {
    margin: 0;
}

.content-card .button {
    align-self: start;
}

.page-header {
    padding: clamp(30px, 5vw, 58px) 0 20px;
}

.page-shell .entry-content {
    margin-bottom: 48px;
}

.post-byline {
    color: var(--color-muted);
    font-size: 0.92rem;
    font-weight: 800;
}

.comments-area {
    display: grid;
    gap: 22px;
    margin-bottom: 48px;
    padding: 0;
    background: transparent;
    border: 0;
    box-shadow: none;
}

.comments-title,
.comment-reply-title {
    margin: 0;
    font-size: clamp(1.25rem, 2.4vw, 1.8rem);
    line-height: 1.15;
}

.comment-list {
    display: grid;
    gap: 14px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.comment-body {
    padding: 18px;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--panel-outline);
}

.comment-meta {
    color: var(--color-muted);
    font-size: 0.88rem;
}

.comment-form {
    display: grid;
    gap: 14px;
}

.comment-form p {
    margin: 0;
}

.comment-form-author,
.comment-form-email {
    display: grid;
    gap: 6px;
}

.comment-form label {
    color: var(--color-muted);
    font-size: 0.86rem;
    font-weight: 900;
}

.comment-form .required {
    color: var(--color-heart);
}

.comment-form .optional,
.comment-notes {
    color: var(--color-faint);
    font-size: 0.86rem;
    font-weight: 700;
}

.comment-form input:not([type="submit"]),
.comment-form textarea {
    width: 100%;
    padding: 12px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    color: var(--color-text);
}

.comment-form input:not([type="submit"]):focus,
.comment-form textarea:focus {
    border-color: rgba(244, 184, 76, 0.68);
    outline: none;
}

.comment-form input[type="submit"] {
    display: inline-flex;
    width: fit-content;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    padding: 10px 18px;
    background: var(--color-heart);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius);
    color: #fff;
    cursor: pointer;
    font-weight: 900;
    text-transform: uppercase;
}

.error-404 {
    display: grid;
    min-height: 58vh;
    align-content: center;
    gap: 14px;
    padding: clamp(38px, 8vw, 90px) 0;
}

.error-actions {
    display: grid;
    grid-template-columns: minmax(220px, 420px) auto;
    gap: 14px;
    align-items: center;
}

.site-footer {
    margin-top: 36px;
    border-top: 1px solid rgba(255, 184, 76, 0.14);
    background: #0b0407;
}

.site-footer-inner {
    display: grid;
    gap: 28px;
    padding: 38px 0;
}

.footer-brand {
    display: grid;
    gap: 10px;
}

.footer-brand p,
.footer-bottom p {
    max-width: 520px;
    margin: 0;
    color: var(--color-muted);
}

.footer-widgets {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.widget,
.footer-widget {
    color: var(--color-muted);
}

.widget-title,
.footer-widget-title {
    margin: 0 0 10px;
    color: var(--color-text);
    font-size: 1rem;
}

@media (prefers-reduced-motion: no-preference) {
    a,
    button,
    .button,
    .game-card,
    .content-card,
    .game-card-image,
    .game-card-media::after,
    .primary-menu .sub-menu,
    .header-search-panel {
        transition:
            background-color 160ms ease,
            border-color 160ms ease,
            box-shadow 180ms ease,
            color 160ms ease,
            filter 220ms ease,
            opacity 180ms ease,
            transform 160ms ease;
    }
}

@media (max-width: 1100px) {
    .site-header-inner {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 16px;
    }

    .site-navigation {
        justify-self: center;
    }

    .game-grid,
    .game-grid--compact {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (max-width: 1209px) {
    .single-game-layout.has-sidebar {
        grid-template-columns: 1fr;
    }

    .game-sidebar {
        position: static;
        width: 100%;
        max-width: none;
    }

    .game-sidebar .widget {
        width: 100%;
        max-width: none;
    }

    .game-sidebar .widget > *,
    .game-sidebar iframe,
    .game-sidebar img,
    .game-sidebar table,
    .game-sidebar embed,
    .game-sidebar object {
        max-width: min(300px, 100%);
    }
}

@media (max-width: 860px) {
    .site-header-inner {
        grid-template-columns: 1fr auto auto;
        min-height: 68px;
    }

    .nav-toggle {
        display: inline-grid;
        width: 44px;
        height: 44px;
        place-items: center;
        background: rgba(255, 255, 255, 0.06);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
        color: var(--color-text);
    }

    .nav-toggle-bars,
    .nav-toggle-bars::before,
    .nav-toggle-bars::after {
        display: block;
        width: 20px;
        height: 2px;
        background: currentColor;
        content: "";
    }

    .nav-toggle-bars::before {
        transform: translateY(-7px);
    }

    .nav-toggle-bars::after {
        transform: translateY(5px);
    }

    .site-navigation {
        display: none;
    }

    .header-search {
        justify-self: end;
    }

    .header-search-panel {
        position: fixed;
        top: 76px;
        right: var(--space-page);
        left: var(--space-page);
        width: auto;
    }

    .is-nav-open .site-navigation {
        display: block;
        grid-column: 1 / -1;
        width: 100%;
    }

    .is-nav-open .site-header-inner {
        align-content: start;
        padding: 12px 0 24px;
    }

    .primary-menu {
        display: grid;
        gap: 4px;
        padding: 12px 0;
    }

    .primary-menu li {
        display: grid;
        gap: 4px;
    }

    .primary-menu a {
        min-height: 48px;
        padding-inline: 14px;
        background: rgba(255, 255, 255, 0.04);
        border: 1px solid var(--color-border);
        border-radius: var(--radius);
    }

    .primary-menu .sub-menu,
    .primary-menu .sub-menu .sub-menu {
        position: static;
        display: grid;
        width: 100%;
        min-width: 0;
        max-width: none;
        gap: 4px;
        padding: 0 0 0 14px;
        background: transparent;
        border: 0;
        box-shadow: none;
        opacity: 1;
        pointer-events: auto;
        transform: none;
    }

    .primary-menu .sub-menu a {
        min-height: 42px;
        white-space: normal;
        background: rgba(255, 255, 255, 0.025);
    }

    .home-hero-inner {
        grid-template-columns: 1fr;
    }

    .home-hero-actions {
        grid-template-columns: 1fr;
        align-items: stretch;
    }

    .console-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .game-grid,
    .game-grid--compact {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .details-list,
    .footer-widgets,
    .error-actions {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 560px) {
    :root {
        --space-page: 16px;
    }

    body {
        font-size: 15px;
    }

    .site-logo-image,
    .custom-logo-link img {
        height: 30px;
        max-width: min(235px, calc(100vw - 148px));
    }

    .home-hero-copy h1,
    .archive-hero h1,
    .single-game-header h1,
    .page-header h1,
    .error-404 h1 {
        font-size: clamp(2rem, 14vw, 3.8rem);
    }

    .game-grid,
    .game-grid--compact,
    .console-links {
        grid-template-columns: 1fr;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .game-card-body {
        min-height: auto;
    }

    .game-meta-group {
        width: 100%;
        justify-content: space-between;
    }
}
