.cbp-af-header .logo {
    width: 100px;
    height: 100px;
    margin: 24px 0 0 16px;
    background: url("../images/logo.png") no-repeat center;
    background-size: contain;
}

.cbp-af-header.cbp-af-header-shrink .logo {
    width: 70px;
    height: 70px;
    margin: 14px 0 0 16px;
}

.menu_arrow {
    background: url("../images/menu_arrow.svg") no-repeat center;
}

.menu_arrow_active {
    background: url("../images/menu_arrow_active.svg") no-repeat center;
}

.footer,
.footer_cont {
    display: none !important;
    background: #0f1014;
}

.footer_lines {
    display: none;
}

.pe_header.games-pe-header {
    display: none;
}

.games-case-page {
    background: #0f1014;
    color: #f5f7ff;
}

/* Light theme overrides */
body.theme-light .games-case-page{
    background: #ffffff;
    color: #222222;
}
body.theme-light .games-case-page .games-case-hero__title{
    color: #222222;
}
body.theme-light .games-case-page .games-case-hero__subtitle,
body.theme-light .games-case-page .games-case-section p,
body.theme-light .games-case-page .games-case-hero__metrics span{
    color: rgba(0,0,0,0.85);
}
body.theme-light .games-case-page .games-button--primary{
    background: #222222;
    color: #ffffff;
}
body.theme-light .games-case-page .games-button--ghost{
    border-color: rgba(0,0,0,0.8);
    color: #222222;
}
body.theme-light .games-case-page .games-case-section{
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.08);
}
body.theme-light .games-case-page .games-case-section h2{
    color: #222222;
}
.games-case-page .games-case-hero,
.games-case-page .games-case-section,
.games-case-page .games-case-video,
.games-case-page .games-related {
    max-width: 1180px;
    margin: 0 auto;
    padding: 80px 24px;
}

.games-case-page .games-case-hero {
    display: grid;
    gap: 48px;
    align-items: center;
    padding-top: 140px;
}

@media (min-width: 1024px) {
    .games-case-page .games-case-hero {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.games-case-page .games-case-hero__title {
    font-size: 44px;
    line-height: 1.15;
    margin-bottom: 24px;
    color: #fff;
    font-family: 'Neue Helvetica Paneuropean W1G 35 Thin', "Segoe Ui", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 100;
}

.games-case-page .games-case-hero__subtitle,
.games-case-page .games-case-section p,
.games-case-page .games-case-hero__metrics span {
    color: rgba(245, 247, 255, 0.9);
}

.games-case-page .games-case-hero__metrics {
    gap: 32px;
}

.games-case-page .games-case-hero__metrics li {
    flex: 1 1 160px;
    font-size: 30px;
}

.games-case-page .games-case-hero__metrics li span {
    font-size: 14px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.games-case-page .games-button--primary {
    background: #ffffff;
    color: #0f1014;
}

.games-case-page .games-button--ghost {
    border-color: rgba(255, 255, 255, 0.8);
    color: #ffffff;
}

.games-case-page .games-case-section {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 36px;
    margin-bottom: 32px;
}

.games-case-page .games-case-section h2 {
    color: #ffffff;
    font-size: 36px;
    margin-bottom: 24px;
    font-family: 'Neue Helvetica Paneuropean W1G 35 Thin', "Segoe Ui", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 100;
}

.games-case-page .games-case-columns {
    display: grid;
    gap: 40px;
}

@media (min-width: 900px) {
    .games-case-page .games-case-columns {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.games-case-page .games-case-results {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.games-case-page .games-case-results li {
    list-style: none;
    padding: 24px;
    border-radius: 24px;
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25);
}

.games-case-page .games-case-results h3 {
    font-size: 22px;
    margin-bottom: 12px;
    color: #ffffff;
}

.games-case-page .games-case-gallery {
    display: grid;
    gap: 32px;
    align-items: center;
}

@media (min-width: 992px) {
    .games-case-page .games-case-gallery {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

.games-case-page .games-case-gallery__media img {
    border-radius: 28px;
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.35);
}

.games-case-page .games-case-video iframe {
    width: 100%;
    height: 520px;
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4);
    margin: 0;
}

.games-case-page .games-process__steps li {
    background: rgba(255, 255, 255, 0.04);
    box-shadow: 0 24px 40px rgba(0, 0, 0, 0.25);
    min-height: 220px;
}

.games-case-page .games-related {
    background: transparent;
    padding-bottom: 120px;
}

.games-case-page .games-related h2 {
    text-align: center;
}

.games-case-page .games-case-card {
    background: rgba(255, 255, 255, 0.02);
    border-radius: 32px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.games-case-page .games-case-card__body {
    background: transparent;
}

.games-case-page .games-case-card p,
.games-case-page .games-case-card h3 {
    color: #ffffff;
}

.games-case-page .games-case-card .games-button--link {
    color: #ffffff;
}

.games-case-page .games-case-card .games-button--link::after {
    background: #ffffff;
}

.games-test-hero__cta .games-button--primary {
    background: #ffffff;
    color: #0f1014;
}

.games-test-hero__cta .games-button--primary:hover {
    background: transparent;
    color: #f5f7ff;
    border: 1px solid #f5f7ff;
}

.games-test-hero__cta .games-button--ghost {
    border: 1px solid #ffffff;
    color: #ffffff;
}

.games-test-hero__cta .games-button--ghost:hover {
    background: #000000;
    color: #FCC756 !important;
    border-color: #000000;
}

.games-test-hero__cta .games-button {
    cursor: pointer;
}

.games-button{
    border-radius: 0;
    padding: 14px 30px;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 14px;
    font-family: "Segoe Ui","Helvetica","Arial",sans-serif;
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    cursor: pointer;
    background: transparent;
    border: 1px solid rgba(245, 247, 255, 0.6);
    color: #f5f7ff;
    transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

/* Disable legacy center-scaling hover from games.css */
.games-button::before{
    content: none !important;
    display: none !important;
}

.games-button--primary{
    background: #f5f7ff;
    color: #05060b;
    border-color: #f5f7ff;
}
.games-button--primary:hover{
    background: transparent;
    color: #f5f7ff;
    border-color: #f5f7ff;
}
.games-button--primary:hover{
    background: transparent;
    color: #f5f7ff;
}
.games-button--ghost:hover{
    background: #000000;
    color: #FCC756 !important;
    border-color: #000000;
}

.games-test {
    background-color: #0f1014;
    color: #f5f7ff;
    overflow: hidden;
}

/* Light theme for games listing */
body.theme-light .games-test{
    background-color: #ffffff;
    color: #222222;
}
body.theme-light .games-test-section p{
    color: rgba(0,0,0,0.85);
}
body.theme-light .games-test-hero__content h1{
    color: #222222;
}
body.theme-light .games-test-section h2{
    color: #222222;
}
body.theme-light .games-test-grid article h3,
body.theme-light .games-test-why__text h3,
body.theme-light .games-test-case__body h3,
body.theme-light .games-test-showcase-card__body h3,
body.theme-light .games-test-faq__items article h3,
body.theme-light .games-test-process__steps li h3{
    color: #222222;
}
body.theme-light .games-test-hero__cta .games-button--primary{
    background: #222222;
    color: #ffffff;
    border-color: #222222;
}
body.theme-light .games-test-hero__cta .games-button--ghost{
    border-color: rgba(0,0,0,0.7);
    color: #222222;
}
body.theme-light .games-button{
    border-color: rgba(0,0,0,0.6);
    color: #222222;
}
body.theme-light .games-button--primary:hover{
    background: transparent;
    color: #222222;
    border-color: rgba(0,0,0,0.6);
}
body.theme-light .games-button--ghost:hover{
    background: #000000;
    color: #ffffff;
    border-color: #000000;
}

/* Light theme primary to match homepage behavior */
body.theme-light .games-button--primary{
    background: #222222;
    color: #ffffff;
    border-color: #222222;
}
body.theme-light .games-button--primary:hover{
    background: transparent;
    color: #222222;
    border-color: rgba(0,0,0,0.6);
}
body.theme-light .games-test-grid article{
    background: rgba(0,0,0,0.02);
    border: 1px solid rgba(0,0,0,0.08);
}
body.theme-light .games-test-showcase-card{
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.08);
    color: #222222;
}
body.theme-light .games-test-showcase-card__body p{
    color: rgba(0,0,0,0.8);
}
body.theme-light .games-test-case__badge{
    color: #222222;
}
body.theme-light .games-test-case__body p,
body.theme-light .games-test-case__body li{
    color: rgba(0,0,0,0.85);
}
body.theme-light .games-test-process__steps li{
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.08);
}
body.theme-light .games-test-process__steps li p{
    color: rgba(0,0,0,0.85);
}
body.theme-light .games-test-faq__items article{
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.08);
}
body.theme-light .games-test-faq__items article p{
    color: rgba(0,0,0,0.85);
}
body.theme-light .games-test-hero__media::after,
body.theme-light .games-test-directions__viewer::after{
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,1) 100%);
}

/* Testimonials */
body.theme-light .games-test-grid--testimonials blockquote{
    background: rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.08);
    color: #222222;
}
body.theme-light .games-test-grid--testimonials blockquote p{
    color: rgba(0,0,0,0.85);
}
.games-test-section {
    max-width: 1180px;
    margin: 0 auto;
    padding: 96px 24px;
}

.games-test-section h2 {
    font-size: 40px;
    line-height: 1.2;
    margin-bottom: 32px;
    color: #ffffff;
    font-family: 'Neue Helvetica Paneuropean W1G 35 Thin', "Segoe Ui", "Helvetica Neue", "Helvetica", "Arial", sans-serif;
    font-weight: 100;
    text-transform: none;
    letter-spacing: 0;
    position: relative;
    z-index: 2;
}

.games-test-section p {
    color: rgba(245, 247, 255, 1);
}

.games-test-directions__viewer {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.games-test-directions__viewer spline-viewer {
    display: block;
    width: 100%;
    height: clamp(320px, 55vh, 640px);
    border: 0;
    background: transparent;
    pointer-events: auto;
}

.games-test-hero {
    position: relative;
    display: grid;
	gap: 48px;
	align-items: center;
	padding: 140px 24px 120px;
	max-width: 1320px;
	margin: 0 auto;
	min-height: 100vh;
}

@media (min-width: 1024px) {
	.games-test-hero {
		grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
	}
}

.games-test-hero__content h1 {
    font-size: clamp(44px, 5vw, 60px);
    line-height: 1.1;
    margin-bottom: 24px;
}

.games-test-hero__content p {
    font-size: 20px;
    line-height: 1.6;
    margin-bottom: 40px;
    max-width: 640px;
}

.games-test-hero__cta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.games-test-hero__media {
	position: relative;
	width: min(70vw, 960px);
	height: clamp(380px, 70vh, 860px);
	justify-self: end;
	align-self: center;
	transform: translateX(150px);
}

.games-test-hero__media spline-viewer {
	width: 100%;
	height: 100%;
	border: 0;
	background: transparent;
	pointer-events: auto;
}

.games-test-hero__media::after,
.games-test-directions__viewer::after {
    content: "";
    position: absolute;
    right: 17px;
    bottom: 17px;
    width: 140px;
    height: 43px;
    background: #0f1014;
    pointer-events: none;
    z-index: 5;
}

@media (max-width: 1023px) {
	.games-test-hero__media {
		width: 100%;
		justify-self: stretch;
		order: 2;
		transform: none;
	}
}

.games-test-grid {
    display: grid;
    gap: 24px;
}

@media (min-width: 768px) {
    .games-test-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1180px) {
    .games-test-grid.games-test-grid--directions {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.games-test-grid article {
    padding: 28px;
    border-radius: 20px;
    background: rgba(42, 46, 58, 0.55);
    border: none;
    backdrop-filter: blur(16px);
}

.games-test-grid article h3 {
    margin-bottom: 12px;
    font-size: 22px;
}

.games-test-grid.games-test-grid--directions article h3 {
    font-size: 26px;
    line-height: 1.4;
}

.games-test-grid article p {
    line-height: 1.6;
    font-size: 16px;
}

.games-test-cases__grid {
    display: grid;
    gap: 28px;
}

.games-test-case {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 32px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(67, 85, 212, 0.16), rgba(25, 197, 255, 0.12));
    border: none;
}

@media (min-width: 1024px) {
    .games-test-case {
        grid-template-columns: 0.9fr 1.1fr;
        align-items: center;
    }
}

.games-test-case__badge {
    font-weight: 600;
    font-size: 18px;
}

.games-test-case__body h3 {
    margin-top: 24px;
    margin-bottom: 12px;
    font-size: 20px;
}

.games-test-case__body p {
    margin: 0;
    line-height: 1.6;
}

.games-test-case__body ul {
    margin: 16px 0 0;
    padding-left: 20px;
    line-height: 1.6;
}

.games-test-process__steps {
    counter-reset: process;
    display: grid;
    gap: 16px;
}

@media (min-width: 900px) {
    .games-test-process__steps {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

.games-test-process__steps li {
    list-style: none;
    padding: 28px;
    border-radius: 20px;
    background: rgba(35, 40, 52, 0.75);
    border: none;
    position: relative;
    min-height: 220px;
}

.games-test-process__steps li h3 {
    margin-bottom: 18px;
}

.games-test-process__step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: linear-gradient(135deg, #3b5bff, #18d8ff);
    margin-bottom: 18px;
    font-weight: 700;
    font-size: 18px;
}

.games-test-tech .games-test-grid {
    gap: 20px;
}

.games-test-tech article {
    padding: 24px;
}

.games-test-section__lead {
    font-size: 20px;
    margin-bottom: 32px;
    color: rgba(245, 247, 255, 0.9);
}

.games-test-team__list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0;
    margin: 0;
    list-style: none;
}

.games-test-team__list li {
    padding: 16px 24px;
    border-radius: 16px;
    background: rgba(58, 63, 78, 0.6);
    border: none;
    font-size: 16px;
}

.games-test-section.games-test-why .games-test-grid article {
    display: flex;
    flex-direction: row;
    gap: 18px;
    text-align: left;
    align-items: flex-start;
}

.games-test-why__icon {
    font-size: 48px;
    display: inline-flex;
    line-height: 1;
    flex-shrink: 0;
}

.games-test-why__text h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.games-test-why__text p {
    margin: 0;
}

.games-test-showcase__grid {
    display: grid;
    gap: 32px;
}

@media (min-width: 900px) {
    .games-test-showcase__grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.games-test-showcase-card {
    display: flex;
    flex-direction: column;
    background: rgba(30, 34, 46, 0.75);
    border: none;
    border-radius: 24px;
    overflow: hidden;
    height: 100%;
    text-decoration: none;
    color: inherit;
}

.games-test-showcase-card img {
    width: 100%;
    aspect-ratio: 11 / 9;
    object-fit: cover;
}

.games-test-showcase-card__body {
    display: flex;
    flex-direction: column;
    gap: 16px;
    padding: 28px;
    flex: 1 1 auto;
}

.games-test-showcase-card__body h3 {
    font-size: 22px;
    margin: 0;
}

.games-test-showcase-card__body p {
    flex: 1 1 auto;
    line-height: 1.6;
    color: rgba(245, 247, 255, 0.9);
}

/* removed inner link styling since entire card is clickable */

.games-test-grid--testimonials {
    gap: 24px;
}

.games-test-grid--testimonials blockquote {
    margin: 0;
    padding: 28px;
    border-radius: 20px;
    background: rgba(36, 42, 57, 0.75);
    border: none;
}

.games-test-grid--testimonials blockquote p {
    font-size: 18px;
    line-height: 1.6;
    margin-bottom: 18px;
}

.games-test-grid--testimonials blockquote cite {
    font-style: normal;
    opacity: 0.7;
}

.games-test-faq__items {
    display: grid;
    gap: 20px;
}

@media (min-width: 900px) {
    .games-test-faq__items {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.games-test-faq__items article {
    padding: 28px;
    border-radius: 20px;
    background: rgba(34, 39, 50, 0.8);
    border: none;
}

.games-test-faq__items article h3 {
    margin-bottom: 12px;
    font-size: 20px;
}

.games-test-cta {
    text-align: center;
}

.games-test-cta p {
    max-width: 640px;
    margin: 0 auto 32px;
    font-size: 20px;
}

.games-test-cta__buttons {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.games-test-cta__buttons .games-button--primary {
    background: #ffffff;
    color: #0f1014;
}

.games-test-cta__buttons .games-button--primary:hover {
    background: transparent;
    color: #f5f7ff;
    border: 1px solid #f5f7ff;
}

.games-test-cta__buttons .games-button--ghost {
    border: 1px solid #ffffff;
    color: #ffffff;
}

.games-test-cta__buttons .games-button--ghost:hover {
    background: #000000;
    color: #FCC756 !important;
    border-color: #000000;
}

@media (max-width: 767px) {
    .games-test-section {
        padding: 64px 20px;
    }

    .games-test-hero {
        padding: 96px 20px 64px;
    }

    .games-test-hero__content h1 {
        font-size: 38px;
    }

    .games-test-grid article,
    .games-test-case,
    .games-test-process__steps li {
        padding: 24px;
    }

    .games-test-grid,
    .games-test-showcase__grid,
    .games-test-cases__grid,
    .games-test-process__steps,
    .games-test-grid--testimonials,
    .games-test-faq__items {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .games-test-section {
        padding: 56px 16px;
    }

    .games-test {
        font-size: 18px;
        line-height: 1.6;
    }

    #order_link {
        display: none !important;
    }

    .games-test-section h2 {
        font-size: 32px;
        text-align: center;
    }

    .games-test-hero {
        text-align: center;
        padding: 80px 16px 48px;
    }

    .games-test-hero__content p {
        font-size: 18px;
    }

    .games-test-hero__cta {
        flex-direction: column;
        align-items: stretch;
    }

    .games-test-hero__cta .games-button {
        width: 100%;
        justify-content: center;
    }

    .games-test-hero__media img {
        border-radius: 16px;
    }

    .games-test-grid article {
        padding: 20px;
    }

    .games-test-grid article h3,
    .games-test-why__text h3 {
        font-size: 20px;
    }

    .games-test-grid.games-test-grid--directions article h3 {
        font-size: 22px;
    }

    .games-test-why .games-test-grid article {
        flex-direction: column;
        text-align: center;
        align-items: center;
    }

    .games-test-why__icon {
        font-size: 40px;
    }

    .games-test-showcase-card__body {
        padding: 24px;
    }

    .games-test-case {
        padding: 24px;
    }

    .games-test-case__badge {
        font-size: 16px;
    }

    .games-test-process__steps li {
        min-height: auto;
        margin-bottom: 8px;
    }

    .games-test-process__steps li h3 {
        margin-bottom: 12px;
    }

    .games-test-section__lead,
    .games-test-cta p {
        font-size: 18px;
        text-align: center;
    }

    .games-test-team__list {
        flex-direction: column;
    }

    .games-test-team__list li {
        width: 100%;
        text-align: center;
    }

    .games-test-grid--testimonials blockquote {
        padding: 24px;
    }

    .games-test-faq__items article {
        padding: 24px;
    }

    .games-test-cta__buttons {
        flex-direction: column;
    }

    .games-test-cta__buttons .games-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .games-test-section {
        padding: 48px 14px;
    }

    .games-test-section h2 {
        font-size: 28px;
    }

    .games-test-hero__content h1 {
        font-size: 32px;
    }

    .games-test-hero__content p {
        font-size: 16px;
    }

    .games-test-grid article {
        padding: 18px;
    }

    .games-test-showcase-card__body {
        padding: 20px;
    }

    .games-test-case {
        padding: 20px;
    }

    .games-test-team__list li {
        padding: 12px 16px;
    }

    .games-test-cta p {
        font-size: 16px;
    }
}

