/* EP Arcade Page 1.1.0 — scoped to prevent theme/plugin bleed */
body.ep-arcade-page-active,
body.ep-arcade-page-active #page,
body.ep-arcade-page-active .site,
body.ep-arcade-page-active .site-content,
body.ep-arcade-page-active .content-area,
body.ep-arcade-page-active .entry-content {
    background: #06101d !important;
    color: #ffffff !important;
}

body.ep-arcade-page-active { overflow-x: hidden; }

body.ep-arcade-page-active #ppu-site-shell-top,
body.ep-arcade-page-active #ppu-site-shell-bottom,
body.ep-arcade-page-active #ipal-top,
body.ep-arcade-page-active .site-header,
body.ep-arcade-page-active .site-footer,
body.ep-arcade-page-active .entry-header,
body.ep-arcade-page-active .page-header,
body.ep-arcade-page-active .entry-title,
body.ep-arcade-page-active .page-title {
    display: none !important;
}

body.ep-arcade-page-active .entry-content,
body.ep-arcade-page-active .wp-block-post-content {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
}

.ep-arcade-shell,
.ep-arcade-shell * { box-sizing: border-box; }

.ep-arcade-shell {
    --ep-bg: #06101d;
    --ep-panel: #071828;
    --ep-white: #ffffff;
    --ep-mint: #63efa9;
    --ep-purple: #742fd4;
    --ep-blue: #8fc8ef;
    width: 100vw;
    min-height: 100vh;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    padding: 0 0 34px;
    overflow: hidden;
    color: var(--ep-white);
    background:
        radial-gradient(circle at 10% 14%, rgba(59, 106, 190, .42) 0 2px, transparent 3px),
        radial-gradient(circle at 88% 21%, rgba(255, 116, 207, .30) 0 2px, transparent 3px),
        linear-gradient(145deg, #06101d 0%, #0b1231 43%, #170929 71%, #06101d 100%);
    font-family: "Roboto Condensed", "Arial Narrow", Arial, sans-serif;
}

.ep-arcade-shell a { color: var(--ep-white); text-decoration: none; }
.ep-arcade-shell .screen-reader-text {
    position: absolute !important;
    width: 1px !important;
    height: 1px !important;
    padding: 0 !important;
    margin: -1px !important;
    overflow: hidden !important;
    clip: rect(0, 0, 0, 0) !important;
    white-space: nowrap !important;
    border: 0 !important;
}

.ep-arcade-nav {
    display: flex;
    align-items: center;
    gap: clamp(14px, 2.5vw, 36px);
    width: min(1240px, calc(100% - 32px));
    min-height: 82px;
    margin: 0 auto;
    padding: 10px 0;
    border-bottom: 1px solid rgba(143, 200, 239, .32);
}

.ep-arcade-logo { display: block; flex: 0 0 64px; width: 64px; height: 64px; }
.ep-arcade-logo img { display: block; width: 100%; height: 100%; object-fit: contain; }

.ep-arcade-nav-links {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 12px clamp(14px, 2.6vw, 36px);
    width: 100%;
    font-size: clamp(.88rem, 1.6vw, 1.12rem);
    font-weight: 800;
    text-transform: uppercase;
}

.ep-arcade-nav-links > a:not(.ep-pill) { white-space: nowrap; }

.ep-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0 20px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 10px;
    font-weight: 900;
    letter-spacing: .02em;
}

.ep-pill-purple { background: linear-gradient(180deg, #8f55ee, #5721ac); }
.ep-pill-green { color: #03111b !important; background: linear-gradient(180deg, #85fac2, #50d98f); }
.ep-arcade-nav a:hover, .ep-arcade-nav a:focus-visible { color: var(--ep-mint); }

.ep-arcade-hero,
.ep-arcade-content,
.ep-arcade-footer { width: min(1240px, calc(100% - 32px)); margin-left: auto; margin-right: auto; }

.ep-arcade-title-block { min-height: clamp(122px, 17vw, 210px); padding: 30px 0 20px; }
.ep-arcade-wordmark { display: block; width: min(390px, 72vw); height: auto; max-height: 210px; object-fit: contain; object-position: left center; filter: drop-shadow(0 0 9px rgba(198, 81, 145, .38)); }

.ep-arcade-feature-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    border: 1px solid rgba(143, 200, 239, .26);
    background: rgba(2, 8, 18, .72);
}

.ep-arcade-feature-strip div { min-height: 76px; padding: 14px 16px; border-left: 1px solid rgba(255, 255, 255, .12); }
.ep-arcade-feature-strip div:first-child { border-left: 0; }
.ep-arcade-feature-strip strong, .ep-arcade-feature-strip span { display: block; color: var(--ep-white); }
.ep-arcade-feature-strip strong { margin-bottom: 5px; color: var(--ep-mint); font-family: "Roboto Mono", Consolas, monospace; font-size: clamp(.76rem, 1.35vw, .98rem); text-transform: uppercase; }
.ep-arcade-feature-strip span { font-family: Arial, sans-serif; font-size: .83rem; line-height: 1.3; }

.ep-arcade-content {
    display: grid;
    grid-template-columns: 184px minmax(0, 1fr);
    gap: clamp(18px, 3vw, 32px);
    padding-top: 28px;
    padding-bottom: 46px;
}

.ep-arcade-filter {
    align-self: stretch;
    padding: 22px 18px;
    border-right: 2px solid rgba(255, 255, 255, .25);
    background: linear-gradient(160deg, rgba(12, 22, 54, .72), rgba(34, 8, 45, .62));
}

.ep-arcade-filter h2 { margin: 0 0 26px; color: var(--ep-white); font-family: "Roboto Mono", Consolas, monospace; font-size: 1.15rem; text-transform: uppercase; }
.ep-arcade-filter a { display: block; margin: 0 0 24px; color: var(--ep-white); font-family: "Roboto Mono", Consolas, monospace; font-size: 1rem; line-height: 1.15; }
.ep-arcade-filter a:hover, .ep-arcade-filter a:focus-visible { color: var(--ep-mint); }
.ep-arcade-filter a.is-active { color: var(--ep-mint); text-decoration: underline; text-underline-offset: 5px; }

.ep-arcade-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: start; gap: clamp(18px, 2.5vw, 30px); }

.ep-game-card {
    position: relative;
    isolation: isolate;
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(143, 200, 239, .48);
    border-radius: 21px;
    background: var(--ep-panel);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
    transition: transform .18s ease, box-shadow .18s ease;
}

.ep-game-card:hover, .ep-game-card:focus-within { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(0, 0, 0, .38), 0 0 18px rgba(99, 239, 169, .15); }
.ep-game-card img { display: block; width: 100%; height: auto; aspect-ratio: .72 / 1; object-fit: cover; background: var(--ep-panel); }
.ep-card-hitarea { position: absolute; inset: 0; z-index: 4; }
.ep-card-hitarea:focus-visible { outline: 3px solid var(--ep-mint); outline-offset: -5px; border-radius: 19px; }

.ep-card-overlay {
    position: absolute;
    inset: 0;
    z-index: 5;
    display: grid;
    place-items: center;
    padding: 20px;
    color: #ffffff;
    background: rgba(3, 9, 23, .78);
    font-family: "Roboto Mono", Consolas, monospace;
    font-size: clamp(1.2rem, 3vw, 2rem);
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
}

.ep-game-card-fallback { display: flex; flex-direction: column; min-height: 100%; aspect-ratio: .72 / 1; border: 3px solid var(--ep-card-accent, var(--ep-blue)); border-radius: 20px; background: var(--ep-panel); }
.ep-fallback-media { display: flex; align-items: center; justify-content: center; min-height: 43%; overflow: hidden; background: #020812; }
.ep-fallback-media img { width: 100%; height: 100%; aspect-ratio: auto; object-fit: cover; }
.ep-fallback-empty { color: var(--ep-mint); background: linear-gradient(145deg, #08172b, #24103d); font-family: "Roboto Mono", Consolas, monospace; font-size: clamp(2rem, 5vw, 4rem); font-weight: 900; }
.ep-fallback-copy { display: flex; flex: 1; flex-direction: column; gap: 8px; padding: 15px 16px 16px; }
.ep-fallback-copy > span:first-child { color: var(--ep-mint); font-family: "Roboto Mono", Consolas, monospace; font-size: .68rem; font-weight: 900; text-transform: uppercase; }
.ep-fallback-copy strong { color: var(--ep-white); font-size: clamp(1.25rem, 2vw, 1.75rem); line-height: 1.02; }
.ep-fallback-copy p { margin: 0; color: var(--ep-white); font-family: Arial, sans-serif; font-size: .82rem; line-height: 1.32; }
.ep-fallback-play { align-self: flex-end; margin-top: auto; padding: 8px 18px; border-radius: 8px; color: #03111b !important; background: var(--ep-mint); font-family: Arial, sans-serif; font-size: .78rem !important; font-weight: 900; }

.ep-no-cards {
    grid-column: 1 / -1;
    margin: 0;
    padding: 28px;
    border: 1px solid rgba(143, 200, 239, .42);
    border-radius: 14px;
    color: #ffffff;
    background: rgba(2, 8, 18, .72);
    font-size: 1rem;
}

.ep-arcade-footer { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 5vw, 70px); padding: 15px 18px; border: 1px solid rgba(255, 255, 255, .18); color: var(--ep-white); background: #030917; font-family: "Roboto Mono", Consolas, monospace; font-size: clamp(.68rem, 1.5vw, .92rem); letter-spacing: clamp(2px, .6vw, 8px); text-transform: uppercase; }
.ep-arcade-footer span:first-child { color: #19d9e6; }
.ep-arcade-footer span:last-child { color: #ff4bd2; }

@media (max-width: 980px) {
    .ep-arcade-feature-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ep-arcade-content { grid-template-columns: 1fr; }
    .ep-arcade-filter { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; padding: 16px 18px; border-right: 0; border-bottom: 1px solid rgba(255, 255, 255, .18); }
    .ep-arcade-filter h2, .ep-arcade-filter a { margin: 0; }
}

@media (max-width: 640px) {
    .ep-arcade-nav { align-items: flex-start; }
    .ep-arcade-logo { flex-basis: 52px; width: 52px; height: 52px; }
    .ep-arcade-nav-links { justify-content: flex-start; gap: 9px 13px; font-size: .78rem; }
    .ep-pill { min-height: 38px; padding: 0 13px; }
    .ep-arcade-title-block { min-height: 118px; padding-top: 25px; }
    .ep-arcade-feature-strip { grid-template-columns: 1fr; }
    .ep-arcade-feature-strip div, .ep-arcade-feature-strip div:first-child { border-top: 1px solid rgba(255, 255, 255, .12); border-left: 0; }
    .ep-arcade-feature-strip div:first-child { border-top: 0; }
    .ep-arcade-grid { grid-template-columns: 1fr; }
    .ep-game-card { width: min(390px, 100%); margin: 0 auto; }
}

/* EP Arcade Page 1.2.0 configurable layout additions */
.ep-arcade-shell { background-color: var(--ep-bg); }
.ep-arcade-feature-strip { background: var(--ep-feature-bg); }
.ep-arcade-content { grid-template-columns: var(--ep-sidebar-width, 184px) minmax(0, 1fr); }
.ep-arcade-content.no-sidebar { grid-template-columns: 1fr; }
.ep-arcade-grid { grid-template-columns: repeat(var(--ep-grid-cols, 3), minmax(0, 1fr)); }

.ep-game-search-wrap { position: relative; margin: 0 0 24px; }
.ep-game-search {
    width: 100%; min-height: 44px; padding: 9px 38px 9px 11px;
    border: 1px solid rgba(143, 200, 239, .58); border-radius: 8px;
    color: var(--ep-white); background: rgba(0, 0, 0, .28); font: 700 .9rem/1.2 Arial, sans-serif;
}
.ep-game-search::placeholder { color: rgba(255, 255, 255, .72); }
.ep-game-search:focus { outline: 3px solid var(--ep-mint); outline-offset: 2px; }
.ep-search-clear { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; border: 0; border-radius: 50%; color: var(--ep-white); background: transparent; cursor: pointer; font-size: 1.35rem; }
.ep-tag-links a:last-child { margin-bottom: 0; }
.ep-game-card[hidden] { display: none !important; }

.ep-arcade-hero-extra,
.ep-arcade-custom-blocks { width: 100%; }
.ep-arcade-hero-extra { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr); gap: clamp(20px, 4vw, 50px); align-items: center; padding: 0 0 28px; }
.ep-arcade-hero-extra.ep-align-center { text-align: center; }
.ep-arcade-hero-extra.ep-align-right { text-align: right; }
.ep-hero-extra-copy h2, .ep-custom-copy h2 { margin: 0 0 12px; color: var(--ep-white); font-size: clamp(1.5rem, 3vw, 2.5rem); line-height: 1.05; }
.ep-rich-text, .ep-rich-text p { color: var(--ep-white); }
.ep-rich-text p { margin: 0 0 12px; line-height: 1.55; }
.ep-hero-extra-media img, .ep-custom-media img { display: block; width: 100%; height: auto; border-radius: 16px; }
.ep-content-button { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; margin-top: 10px; padding: 10px 19px; border: 1px solid rgba(255,255,255,.24); border-radius: 9px; color: #fff !important; background: var(--ep-purple); font-weight: 900; }
.ep-content-button:hover, .ep-content-button:focus-visible { filter: brightness(1.12); outline: 3px solid var(--ep-mint); outline-offset: 2px; }

.ep-arcade-custom-blocks { width: min(1240px, calc(100% - 32px)); margin: 26px auto 0; }
.ep-custom-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(20px, 4vw, 46px); align-items: center; margin: 0 0 26px; padding: clamp(18px, 3vw, 34px); border: 1px solid rgba(143, 200, 239, .26); border-radius: 18px; background: rgba(2, 8, 18, .62); }
.ep-custom-block.ep-layout-image, .ep-custom-block.ep-layout-text { grid-template-columns: 1fr; }
.ep-custom-block.ep-align-center { text-align: center; }
.ep-custom-block.ep-align-right { text-align: right; }
.ep-custom-block.ep-align-center .ep-content-button { margin-left: auto; margin-right: auto; }
.ep-custom-block.ep-align-right .ep-content-button { margin-left: auto; }

@media (max-width: 980px) {
    .ep-arcade-content { grid-template-columns: 1fr; }
    .ep-arcade-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .ep-game-search-wrap { flex: 1 1 100%; margin: 0; }
    .ep-tag-links { display: flex; flex-wrap: wrap; gap: 12px 22px; flex: 1 1 100%; }
    .ep-tag-links a { margin: 0; }
}
@media (max-width: 720px) {
    .ep-arcade-hero-extra, .ep-custom-block { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
    .ep-arcade-grid { grid-template-columns: 1fr; }
}
