/* CSS Variables for consistent styling */
:root {
    --bg-color: #121212;
    --text-primary: #8BC5BF;
    --text-title: #E29BA8;
    --font-mono: 'IBM Plex Mono', monospace;
    --max-width: 75rem;
    --padding-x: 4rem;
    --padding-y: 4rem;
    --gap-spacing: 2rem;
    --border-radius: 1.5rem;
    --border-color: rgba(61, 61, 61, 0.212);
}

/* Reset and Base Styles */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-color);
    color: #e2f0f0;
    font-family: var(--font-mono);
    line-height: 1.75;
    font-size: 16pt;
    -webkit-font-smoothing: antialiased;
}

a {
    color: inherit;
    text-decoration: underline;
    transition: color 0.25s ease;
}

a:hover {
    text-decoration: none;
}

/* Layout */
.site-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 100vh;
}

.site-main {
    width: 100%;
    display: flex;
    justify-content: center;
}

.inner-container {
    width: 100%;
    max-width: var(--max-width);
    padding: var(--padding-y) var(--padding-x);
    display: flex;
    flex-direction: column;
    gap: 4rem;
}

/* Typography */
.heading-primary {
    color: var(--text-title);
    font-size: 2.25rem;
    font-weight: 300;
    line-height: 1.375;
    margin-bottom: 1rem;
}

.text-body {
    font-size: 1rem;
    font-weight: 400;
    margin-bottom: 1rem;
}

/* Containers */
.section-container {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: var(--padding-y) var(--padding-x);
}

.section-title {
    text-align: center;
    margin-bottom: -2rem; /* Pull section content closer */
}

/* Hero Section */
.hero-content {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.profile-image-container {
    flex: 0 0 20%;
    max-width: 20%;
}

.profile-image {
    width: 100%;
    border-radius: 0; /* original doesn't seem to have border radius on this image */
    display: block;
}

.bio-container {
    flex: 0 0 80%;
}

/* Social Icons */
.social-icons {
    display: flex;
    gap: 1.25rem;
    margin-top: 2rem;
}

.social-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid var(--border-color);
    border-radius: 50%;
    transition: all 0.25s ease;
    text-decoration: none;
}

.social-icon svg {
    width: 60%;
    height: 60%;
    fill: #3D3D3D;
    transition: fill 0.25s ease;
}

.social-icon:hover {
    border-color: #000000;
    background-color: rgba(255, 255, 255, 0.05);
}

.social-icon:hover svg {
    fill: #000000;
}

/* Projects Grid */
.games-grid, .tools-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 4rem;
}

.project-item {
    flex: 1 1 0%;
    min-width: 300px;
    display: flex;
    flex-direction: column;
}

.project-item.full-width {
    flex: 1 1 100%;
}

.project-header-info {
    margin-bottom: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.project-title-main {
    font-size: 1.25rem;
    color: var(--text-title);
    font-weight: 500;
    margin: 0;
    line-height: 1.2;
}

.project-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.project-tag {
    font-size: 0.9rem;
    font-family: var(--font-mono);
    color: var(--text-primary);
    background-color: rgba(139, 197, 191, 0.1);
    border: 1px solid rgba(139, 197, 191, 0.3);
    padding: 0.4rem 0.75rem;
    border-radius: 0.35rem;
    line-height: 1.2;
}

.project-thumbnail {
    position: relative;
    border-radius: var(--border-radius);
    overflow: hidden;
    display: block;
    text-decoration: none;
    cursor: pointer;
}

.thumbnail-wrapper {
    position: relative;
    width: 100%;
    height: 19.125rem;
    border-radius: var(--border-radius);
    overflow: hidden;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: transform 0.25s ease;
}

.project-thumbnail:hover .thumbnail-image {
    transform: scale(1.06);
}

.thumbnail-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    color: white;
    opacity: 0;
    transition: opacity 0.25s ease;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: 1.5rem;
    pointer-events: none;
    font-size: 0.95rem;
    line-height: 1.5;
}

.project-thumbnail:hover .thumbnail-overlay {
    opacity: 1;
}

.hover-list {
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0 0 0 1rem;
}

.hover-list li {
    font-size: 1.05rem;
    line-height: 1.5;
    margin: 0;
    list-style-type: disc;
}

/* Divider */
.divider {
    border: none;
    height: 1px;
    background-color: var(--border-color);
    margin: 3rem 0;
}

/* Credits */
.credits {
    text-align: center;
    margin-top: 2rem;
    color: color-mix(in srgb, var(--text-title) 50%, transparent);
    font-size: 0.75rem;
    font-family: Arial, sans-serif;
}

.credits a {
    color: inherit;
    text-decoration: none;
    transition: color 0.25s ease;
}

.credits a:hover {
    color: var(--text-primary);
}

/* Lightbox Modal */
.lightbox-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(10, 10, 10, 0.9);
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.lightbox-modal.visible {
    opacity: 1;
    visibility: visible;
}

.lightbox-inner {
    width: 90%;
    height: 80%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform: translateY(20px);
    transition: transform 0.3s ease;
}

.lightbox-modal.visible .lightbox-image {
    transform: translateY(0);
}

.lightbox-caption {
    color: white;
    margin-top: 1.5rem;
    text-align: center;
    max-width: 800px;
    padding: 0 2rem;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 3rem;
    height: 3rem;
    cursor: pointer;
    background-image: url('data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA2NCA2NCI+PGxpbmUgeDE9IjIwIiB5MT0iMjAiIHgyPSI0NCIgeTI9IjQ0IiBzdHJva2U9IiNGRkZGRkYiIHN0cm9rZS13aWR0aD0iMS41IiBzdHJva2UtbGluZWNhcD0icm91bmQiLz48bGluZSB4MT0iMjAiIHkxPSI0NCIgeDI9IjQ0IiB5Mj0iMjAiIHN0cm9rZT0iI0ZGRkZGRiIgc3Ryb2tlLXdpZHRoPSIxLjUiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIvPjwvc3ZnPg==');
    background-size: cover;
    opacity: 0.5;
    transition: opacity 0.2s ease;
}

.lightbox-close:hover {
    opacity: 1;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .games-grid, .tools-grid {
        flex-direction: column;
        gap: 2rem;
    }
}

@media (max-width: 768px) {
    body {
        font-size: 1rem;
        line-height: 1.6;
    }
    
    .hero-content {
        flex-direction: column;
        text-align: center;
    }
    
    .profile-image-container {
        max-width: 50%;
    }
    
    .social-icons {
        justify-content: center;
    }
    
    .inner-container {
        gap: 2rem;
        padding: 1rem;
    }
    
    .project-item {
        min-width: 100%;
    }
    
    /* Simulate zooming out on BlueprintUE iframes by making them 1.5x larger and scaling down */
    .content-placeholder:has(iframe[src*="blueprintue"]) {
        position: relative;
        height: 350px;
    }
    
    .content-placeholder iframe[src*="blueprintue"] {
        position: absolute;
        top: 0;
        left: 0;
        width: 150% !important;
        height: 525px !important;
        transform: scale(0.666666);
        transform-origin: 0 0;
    }
}

/* Project Layout Styles */
.portfolio-header {
    margin-bottom: 1rem;
    display: flex;
}

.portfolio-close {
    color: var(--text-title);
    white-space: nowrap;
    align-items: center;
    font-size: 1.125rem;
    text-decoration: none;
    display: inline-flex;
    transition: color 0.25s ease;
}

.portfolio-close:hover {
    color: #fff;
}

.portfolio-top {
    margin-bottom: 2rem;
}

.hero-image-placeholder {
    width: 100%;
    background-color: var(--border-color);
    border-top-left-radius: var(--border-radius);
    border-top-right-radius: var(--border-radius);
    overflow: hidden;
}

.hero-image {
    width: 100%;
    display: block;
    object-fit: cover;
}

.portfolio-top h2 {
    color: var(--text-primary);
    background-color: rgba(30, 30, 30, 0.8);
    backdrop-filter: blur(10px);
    margin-top: -3rem; /* overlap the image */
    padding: 1rem 1.5rem;
    font-size: 2rem;
    position: relative;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    display: block;
    margin-left: 0;
    margin-right: 0;
}

/* Code Blocks */
pre {
    background-color: rgba(10, 10, 10, 0.8);
    padding: 1.5rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    border: 1px solid var(--border-color);
    margin: 1.5rem 0;
}

code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    color: #e2f0f0;
}

/* Inline code specifically */
p > code, li > code {
    background-color: rgba(10, 10, 10, 0.5);
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
}

.experience {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 2rem;
}

.job-card {
    background-color: rgba(35, 35, 35, 0.5);
    border: 1px solid var(--border-color);
    border-radius: var(--border-radius);
    padding: 1.5rem;
    flex: 1 1 calc(50% - 1rem);
    min-width: 300px;
}

.job-card h3 {
    font-size: 1.5rem;
    color: var(--text-title);
    margin-bottom: 1rem;
    font-weight: 500;
}

.job-card p {
    font-size: 1rem;
    line-height: 1.6;
}

.project-info-list {
    list-style: none;
    padding: 0;
}

.project-info-list li {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.project-info-list strong {
    color: var(--text-title);
    margin-right: 0.5rem;
}

.part {
    margin-bottom: 2rem;
}

.part-header {
    font-size: 1.5rem;
    color: var(--text-primary);
    margin: 2rem 0 1rem 0;
}

.part p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.videos_two {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 2rem 0;
    clear: both;
}

.videos_two .content-placeholder {
    flex: 1 1 calc(50% - 1rem);
    min-width: 300px;
    border-radius: var(--border-radius);
    overflow: hidden;
    background-color: var(--border-color);
}

.video-text {
    width: 100%;
    margin-top: 0.5rem;
    font-size: 0.875rem;
    font-style: italic;
    color: rgba(255,255,255,0.6);
}

.content-placeholder img,
.content-placeholder video {
    width: 100%;
    display: block;
    height: auto;
    object-fit: cover;
}

@media (max-width: 768px) {
    .portfolio-top h2 {
        font-size: 1.5rem;
        margin-top: -2rem;
    }
}

/* Language Toggle */
.lang-toggle-container {
    position: absolute;
    top: 2rem;
    right: 2rem;
    display: flex;
    gap: 0.75rem;
    z-index: 100;
}

.lang-btn {
    background: transparent;
    border: 2px solid transparent;
    cursor: pointer;
    padding: 0;
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    opacity: 0.4;
    filter: grayscale(100%);
}

.lang-btn:hover {
    opacity: 0.8;
    filter: grayscale(50%);
}

.lang-btn svg {
    display: block;
    width: 32px;
    height: 24px;
    object-fit: cover;
}

:root[lang="en"] .lang-btn-en,
:root[lang="es"] .lang-btn-es {
    opacity: 1;
    filter: grayscale(0%);
    border-color: var(--text-title);
    box-shadow: 0 0 10px rgba(226, 155, 168, 0.3);
}

/* Zero-Latency Language Toggling */
:root[lang="en"] .lang-es { display: none !important; }
:root[lang="es"] .lang-en { display: none !important; }

@media (max-width: 768px) {
    .lang-toggle-container {
        top: 1rem;
        right: 1rem;
    }
}

/* Companion Game Canvas & Interactions */
#bg-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -2;
    image-rendering: pixelated;
    pointer-events: none;
}

#interactive-layer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 0;
}

.site-wrapper {
    position: relative;
    z-index: 10;
    pointer-events: none; /* Let empty space clicks hit interactive layer */
}

.inner-container {
    pointer-events: auto; /* Re-enable clicks for actual portfolio content */
}

.lang-toggle-container {
    pointer-events: auto; /* Re-enable clicks for language buttons */
}

/* Header Anchor Links */
.header-anchor {
    text-decoration: none;
    color: var(--text-primary);
    opacity: 0;
    transition: opacity 0.2s ease;
    margin-left: 0.5rem;
    font-weight: normal;
}

h2:hover .header-anchor,
h3:hover .header-anchor,
h4:hover .header-anchor,
h5:hover .header-anchor,
h6:hover .header-anchor {
    opacity: 0.7;
}

.header-anchor:hover {
    opacity: 1 !important;
}

/* Offset for fixed headers or spacing when jumping to an anchor */
h2[id], h3[id], h4[id], h5[id], h6[id] {
    scroll-margin-top: 2rem;
}

/* Game testing page and homepage entry point */
.game-testing-promo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 1.75rem 2rem;
    border: 1px solid rgba(139, 197, 191, 0.2);
    border-radius: 0.75rem;
    background: linear-gradient(110deg, rgba(139, 197, 191, 0.07), rgba(226, 155, 168, 0.04));
}

.game-testing-promo-copy {
    min-width: 0;
}

.game-testing-eyebrow {
    color: var(--text-primary);
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    line-height: 1.5;
    text-transform: uppercase;
}

.game-testing-promo-title {
    margin: 0.15rem 0 0.25rem;
    color: var(--text-title);
    font-size: 1.4rem;
    font-weight: 400;
    line-height: 1.4;
}

.game-testing-promo-description {
    margin: 0;
    color: rgba(226, 240, 240, 0.72);
    font-size: 0.82rem;
    line-height: 1.6;
}

.game-testing-promo-link,
.game-testing-home-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.65rem;
    flex: 0 0 auto;
    color: var(--text-primary);
    font-size: 0.82rem;
    text-decoration: none;
}

.game-testing-promo-link {
    padding: 0.7rem 0.95rem;
    border: 1px solid rgba(139, 197, 191, 0.35);
    border-radius: 0.45rem;
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.game-testing-promo-link:hover {
    border-color: var(--text-primary);
    background: rgba(139, 197, 191, 0.1);
    transform: translateY(-1px);
}

.game-testing-arrow,
.game-testing-entry-arrow {
    font-size: 1.1rem;
    line-height: 1;
}

.game-testing-page {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.game-testing-back {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    color: rgba(226, 240, 240, 0.72);
    font-size: 0.82rem;
    text-decoration: none;
}

.game-testing-back:hover,
.game-testing-home-link:hover {
    color: var(--text-title);
}

.game-testing-header {
    padding: clamp(1.5rem, 5vw, 3.5rem);
    border-color: rgba(139, 197, 191, 0.18);
    background: radial-gradient(ellipse at 85% 5%, rgba(226, 155, 168, 0.09), transparent 48%),
                linear-gradient(125deg, rgba(139, 197, 191, 0.055), rgba(18, 18, 18, 0.25));
}

.game-testing-header .game-testing-eyebrow {
    margin-bottom: 0.75rem;
}

.game-testing-title {
    margin: 0 0 0.65rem;
    color: var(--text-title);
    font-size: clamp(2rem, 5vw, 3.25rem);
    font-weight: 300;
    line-height: 1.2;
}

.game-testing-intro {
    max-width: 48rem;
    margin: 0;
    color: rgba(226, 240, 240, 0.78);
    font-size: 0.95rem;
    line-height: 1.8;
}

.game-testing-player {
    width: 100%;
    padding: clamp(1rem, 3vw, 1.6rem);
    border: 1px solid rgba(139, 197, 191, 0.2);
    border-radius: 0.8rem;
    background: radial-gradient(ellipse at 90% 0%, rgba(226, 155, 168, 0.08), transparent 42%),
                linear-gradient(145deg, rgba(139, 197, 191, 0.055), rgba(18, 18, 18, 0.55));
    box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.15);
}

.game-testing-player-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    margin-bottom: 1.1rem;
}

.game-testing-player-copy {
    min-width: 0;
}

.game-testing-player-copy .game-testing-eyebrow {
    margin-bottom: 0.25rem;
}

.game-testing-player-title {
    margin: 0;
    color: var(--text-title);
    font-size: clamp(1.2rem, 2.5vw, 1.65rem);
    font-weight: 400;
    line-height: 1.4;
}

.game-testing-player-description {
    margin: 0.3rem 0 0;
    color: rgba(226, 240, 240, 0.65);
    font-size: 0.78rem;
    line-height: 1.6;
}

.game-testing-player-toggle {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    min-height: 2.7rem;
    padding: 0.55rem 0.85rem;
    border: 1px solid rgba(139, 197, 191, 0.32);
    border-radius: 0.45rem;
    background: rgba(139, 197, 191, 0.07);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.75rem;
    line-height: 1.3;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.game-testing-player-toggle:hover {
    border-color: var(--text-primary);
    background: rgba(139, 197, 191, 0.14);
    color: #e2f0f0;
}

.game-testing-player-toggle:focus-visible,
.game-testing-card-art-link:focus-visible {
    outline: 2px solid var(--text-title);
    outline-offset: 4px;
}

.game-testing-player-toggle-icon {
    font-size: 1.15rem;
    line-height: 0.8;
    transition: transform 0.2s ease;
}

.game-testing-player-toggle[aria-expanded="false"] .game-testing-player-toggle-icon {
    transform: rotate(-90deg);
}

.game-testing-player-toggle [data-label="show"] {
    display: none;
}

.game-testing-player-toggle[aria-expanded="false"] [data-label="hide"] {
    display: none;
}

.game-testing-player-toggle[aria-expanded="false"] [data-label="show"] {
    display: inline;
}

.game-testing-player-screen {
    position: relative;
    width: 100%;
    min-height: 200px;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.6rem;
    background: #050707;
    box-shadow: 0 0.65rem 2rem rgba(0, 0, 0, 0.32);
}

.game-testing-player-body[hidden] {
    display: none;
}

.game-testing-player-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(15rem, 28%);
    gap: 1rem;
    align-items: start;
}

.game-testing-player-main { min-width: 0; }

.game-testing-playlist {
    min-width: 0;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 0.6rem;
    background: #0d1415;
    overflow: hidden;
}

.game-testing-playlist h3 { margin: 0; padding: 0.85rem; font-size: 0.85rem; }
.game-testing-playlist-status { padding: 0 0.85rem; font-size: 0.75rem; line-height: 1.6; }
.game-testing-playlist-items {
    position: relative;
    margin: 0;
    padding: 0;
    list-style: none;
    max-height: clamp(15rem, 32vw, 31rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-color: #527e79 #0d1415;
}
.game-testing-playlist-items button {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.65rem;
    border: 0;
    border-left: 3px solid transparent;
    background: transparent;
    color: var(--text-title);
    font: inherit;
    font-size: 0.72rem;
    line-height: 1.5;
    text-align: left;
    cursor: pointer;
}
.game-testing-playlist-items img { width: 5rem; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 0.2rem; flex-shrink: 0; }
.game-testing-playlist-items button:hover { background: rgba(139, 197, 191, 0.08); }
.game-testing-playlist-items button[aria-current="true"] { background: rgba(139, 197, 191, 0.16); border-left-color: #8bc5bf; }
.game-testing-playlist-controls { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; margin-top: 0.65rem; }
.game-testing-playlist-controls button { border: 1px solid rgba(139, 197, 191, 0.35); border-radius: 0.35rem; padding: 0.55rem 0.7rem; color: var(--text-title); background: #101b1c; font: inherit; font-size: 0.75rem; cursor: pointer; }
.game-testing-playlist-controls button:disabled { opacity: 0.4; cursor: default; }
.game-testing-playlist-position { font-size: 0.72rem; color: #8bc5bf; }
.game-testing-playlist-items button:focus-visible,
.game-testing-playlist-controls button:focus-visible { outline: 2px solid #8bc5bf; outline-offset: -2px; }

@media (max-width: 850px) {
    .game-testing-player-body { grid-template-columns: 1fr; }
    .game-testing-playlist-items { max-height: 17rem; }
}

.game-testing-player-screen iframe {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    border: 0;
}

.game-testing-player-fallback {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 0.9rem;
    color: rgba(139, 197, 191, 0.82);
    font-size: 0.74rem;
    text-decoration: none;
}

.game-testing-player-fallback:hover {
    color: var(--text-title);
}

.game-testing-list-section {
    width: 100%;
}

.game-testing-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 1.5rem;
    list-style: none;
}

.game-testing-card {
    min-width: 0;
}

.game-testing-card article {
    height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--border-color);
    border-radius: 0.75rem;
    background: linear-gradient(145deg, rgba(139, 197, 191, 0.06), rgba(226, 155, 168, 0.035));
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.game-testing-card:hover article {
    transform: translateY(-3px);
    border-color: rgba(139, 197, 191, 0.4);
}

.game-testing-card-art {
    position: relative;
    width: 100%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    background: radial-gradient(ellipse at 25% 20%, rgba(139, 197, 191, 0.25), transparent 42%),
                linear-gradient(145deg, #27262d, #121212 78%);
}

.game-testing-card-art-link {
    position: relative;
    display: block;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
}

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

.game-testing-card-art-link .game-testing-card-art {
    border-radius: 0;
}

.game-testing-cover-action {
    position: absolute;
    right: 0.6rem;
    bottom: 0.6rem;
    left: 0.6rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.45rem 0.55rem;
    border: 1px solid rgba(139, 197, 191, 0.35);
    border-radius: 0.4rem;
    background: rgba(12, 16, 17, 0.86);
    color: #e2f0f0;
    font-size: 0.68rem;
    line-height: 1.35;
    text-align: center;
    opacity: 0;
    transform: translateY(0.3rem);
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.game-testing-card-art-link:hover .game-testing-cover-action,
.game-testing-card-art-link:focus-visible .game-testing-cover-action {
    opacity: 1;
    transform: translateY(0);
}

.game-testing-card-art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.game-testing-card:hover .game-testing-card-art img {
    transform: scale(1.035);
}

.game-testing-art-placeholder {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: flex-end;
    padding: 1rem;
    color: var(--text-title);
    font-size: 1rem;
    line-height: 1.4;
}

.game-testing-card-copy {
    flex: 1;
    min-height: 7rem;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    gap: 0.6rem;
    padding: 0.8rem 0.9rem;
}

.game-testing-entry-title,
.game-testing-entry-link h2 {
    min-height: 4.2em;
    margin: 0;
    color: #e2f0f0;
    font-size: 0.92rem;
    font-weight: 400;
    line-height: 1.5;
}

.game-testing-card-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.35rem;
    color: rgba(226, 240, 240, 0.5);
    font-size: 0.75rem;
    line-height: 1.2;
}

.game-testing-card-meta-separator {
    color: rgba(226, 240, 240, 0.32);
}

.game-testing-entry-link {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 0.5rem;
    color: inherit;
    text-decoration: none;
}

.game-testing-entry-link:hover h2,
.game-testing-entry-link:hover .game-testing-entry-arrow {
    color: var(--text-title);
}

.game-testing-entry-arrow {
    flex: 0 0 auto;
    color: var(--text-primary);
    transition: transform 0.2s ease;
}

.game-testing-entry-link:hover .game-testing-entry-arrow {
    transform: translate(2px, -2px);
}

.game-testing-home-link {
    align-self: flex-start;
    margin-top: 0.5rem;
}

.game-testing-empty {
    padding: 1.35rem 1.5rem;
    border: 1px solid var(--border-color);
    border-radius: 0.55rem;
    color: rgba(226, 240, 240, 0.72);
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .game-testing-promo {
        align-items: flex-start;
        flex-direction: column;
        gap: 1rem;
        padding: 1.35rem;
    }

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

    .game-testing-player-heading {
        align-items: flex-start;
        gap: 1rem;
    }

    .game-testing-card-copy {
        min-height: 6.3rem;
        padding: 0.65rem;
    }

    .game-testing-entry-title,
    .game-testing-entry-link h2 {
        font-size: 0.82rem;
    }
}

@media (max-width: 520px) {
    .game-testing-player-heading {
        flex-direction: column;
    }

    .game-testing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.85rem;
    }

    .game-testing-cover-action {
        right: 0.4rem;
        bottom: 0.4rem;
        left: 0.4rem;
        font-size: 0.62rem;
    }
}
