html, body {
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

:root {
    --riot-red: #d13639;
    --bg-dark: #0f0f0f;
    --neon-cyan: #00ffcc;
    --nav-height: 80px;
}

* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background-color: var(--bg-dark);
    color: white;
    font-family: 'Helvetica Neue', Arial, sans-serif;
}

html {
    scroll-behavior: smooth;
}

/* ── Floating pill navbar ─────────────────────────────── */
.navbar {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0 8px;
    height: 50px;
    width: max-content;
    max-width: calc(100vw - 32px);
    background: rgba(10, 10, 10, 0.88);
    border: 1px solid rgba(255, 255, 255, 0.10);
    border-radius: 999px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: 0 4px 32px rgba(0, 0, 0, 0.55),
                inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.nav-left {
    display: flex;
    align-items: center;
    gap: 2px;
}

/* Thin separator after logo */
.nav-left::after {
    content: '';
    display: block;
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.12);
    margin: 0 6px;
}

.logo {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: inherit;
    padding: 0 6px;
    gap: 0;
}

.logo-img {
    height: 28px;
    width: auto;
    display: block;
    border-radius: 50%;
}

/* Hide wordmark — only icon shows in pill nav */
.logo-text { display: none; }

.nav-links {
    list-style: none;
    display: flex;
    gap: 2px;
    padding: 0;
    margin: 0;
}

.nav-links a {
    display: flex;
    align-items: center;
    gap: 6px;
    text-decoration: none;
    color: #888;
    font-weight: 600;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    padding: 7px 14px;
    border-radius: 999px;
    transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
    color: #fff;
    background: rgba(255, 255, 255, 0.08);
}

.nav-links a.nav-email {
    color: var(--neon-cyan);
}

.nav-links a.nav-email:hover {
    color: #fff;
    background: rgba(0, 255, 204, 0.1);
}

/* Thin separator before right controls */
.nav-right {
    display: flex;
    align-items: center;
    gap: 6px;
    border-left: 1px solid rgba(255, 255, 255, 0.12);
    margin-left: 6px;
    padding-left: 8px;
}

.language-selector {
    display: flex;
    align-items: center;
    gap: 4px;
    background: transparent;
    padding: 0;
    border-radius: 0;
}

#lang-select { 
    background: transparent; 
    color: white; 
    border: none; 
    cursor: pointer; 
    outline: none; 
    font-weight: bold;
}

.btn-signin {
    background: var(--riot-red);
    color: white;
    border: none;
    padding: 7px 16px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.75rem;
    letter-spacing: 0.08em;
    cursor: pointer;
    text-transform: uppercase;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: filter 0.2s, transform 0.2s;
    white-space: nowrap;
}

.btn-signin:hover {
    filter: brightness(1.15);
    transform: scale(1.04);
}

#lang-select {
    font-size: 0.75rem;
    padding: 2px 4px;
}

.hero {
    padding: 130px 40px 80px;
    text-align: center;
    background: linear-gradient(180deg, #1a1a1a 0%, var(--bg-dark) 100%);
    border-bottom: 1px solid #222;
}

.hero-eyebrow {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    margin-bottom: 16px;
}

.hero-title {
    font-size: 4rem;
    font-weight: 900;
    letter-spacing: -2px;
    margin: 0 0 20px;
    text-transform: uppercase;
}

.hero-intro {
    font-size: 1.1rem;
    line-height: 1.75;
    color: #bbb;
    max-width: 680px;
    margin: 0 auto;
}

.hero-badges {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    margin: 28px auto 36px;
}

.hero-badge {
    padding: 7px 16px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.13);
    border-radius: 999px;
    font-size: 0.82rem;
    font-weight: 700;
    color: #ccc;
    letter-spacing: 0.04em;
}

.hero-actions {
    display: flex;
    gap: 14px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-hero-primary {
    padding: 13px 34px;
    background: var(--riot-red);
    color: #fff;
    font-weight: 800;
    font-size: 0.88rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(209,54,57,0.38);
    transition: filter 0.2s, transform 0.2s, box-shadow 0.2s;
}

.btn-hero-primary:hover {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(209,54,57,0.55);
}

.btn-hero-secondary {
    padding: 13px 34px;
    background: transparent;
    color: #ccc;
    font-weight: 700;
    font-size: 0.88rem;
    letter-spacing: 0.08em;
    text-decoration: none;
    border: 1px solid rgba(255,255,255,0.18);
    border-radius: 8px;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.btn-hero-secondary:hover {
    color: #fff;
    border-color: rgba(255,255,255,0.45);
    background: rgba(255,255,255,0.05);
}

/* ── About / Experience section ───────────────────────── */
.about-section {
    background: #080808;
    border-top: 2px solid #181818;
    border-bottom: 2px solid #181818;
    padding: 80px 40px;
}

.about-inner {
    max-width: 1100px;
    margin: 0 auto;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 300px;
    gap: 64px;
    margin-top: 48px;
    align-items: start;
}

.exp-block {
    padding-bottom: 36px;
    margin-bottom: 36px;
    border-bottom: 1px solid #1e1e1e;
}

.exp-block:last-child {
    border-bottom: none;
    padding-bottom: 0;
    margin-bottom: 0;
}

.exp-role-title {
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.exp-company-name {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--riot-red);
    margin-bottom: 4px;
}

.exp-period {
    font-size: 0.8rem;
    color: #555;
    margin-bottom: 14px;
    letter-spacing: 0.03em;
}

.exp-bullets {
    list-style: none;
    padding: 0;
    margin: 0;
    color: #999;
    font-size: 0.9rem;
    line-height: 1.75;
}

.exp-bullets li {
    padding-left: 18px;
    position: relative;
    margin-bottom: 8px;
}

.exp-bullets li::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--riot-red);
}

.sidebar-block {
    margin-bottom: 32px;
}

.sidebar-heading {
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--neon-cyan);
    margin: 0 0 14px;
    padding-bottom: 8px;
    border-bottom: 1px solid #222;
}

.skills-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.skills-list li {
    font-size: 0.88rem;
    color: #bbb;
    padding: 8px 12px;
    background: #111;
    border-left: 3px solid var(--riot-red);
    border-radius: 0 6px 6px 0;
}

.edu-school {
    font-size: 0.98rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 4px;
}

.edu-degree {
    font-size: 0.88rem;
    color: #999;
    margin-bottom: 4px;
}

.edu-period {
    font-size: 0.8rem;
    color: #555;
}

.lang-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.lang-list li {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.88rem;
    color: #bbb;
}

.lang-level {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--neon-cyan);
    background: rgba(0,255,255,0.07);
    padding: 3px 10px;
    border-radius: 999px;
}

.games-section { 
    padding: 60px 40px; 
}

/* ── Platform filter buttons ──────────────────────────── */
.portfolio-filters {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}

.filter-btn {
    position: relative;
    padding: 9px 22px;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    cursor: pointer;
    background: transparent;
    color: #666;
    border: 1px solid #333;
    border-radius: 3px;
    transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.filter-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: var(--neon-cyan);
    opacity: 0;
    transition: opacity 0.2s ease;
    z-index: 0;
}

.filter-btn span,
.filter-btn {
    position: relative;
    z-index: 1;
}

.filter-btn:hover {
    color: #fff;
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 255, 204, 0.25);
}

.filter-btn.active {
    color: #000;
    border-color: var(--neon-cyan);
    background: var(--neon-cyan);
    box-shadow: 0 0 18px rgba(0, 255, 204, 0.4);
}

/* Hidden game cards via filter */
.game-card.gf-hidden {
    display: none !important;
}
/* ─────────────────────────────────────────────────────── */

/* ── Games hero row ──────────────────────────────────────── */
.games-hero {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 32px;
    margin-bottom: 40px;
}

.games-hero-left {
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.games-hero-left .section-title {
    margin-bottom: 0;
    text-align: left;
}

/* ── Mascot container ────────────────────────────────────── */
.games-mascot {
    width: 640px;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
}

/* HP hearts */
.gb-hearts {
    display: flex;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 1.6rem;
    line-height: 1;
}

.gb-heart {
    color: #ff4d6d;
    text-shadow: 0 0 12px rgba(255,77,109,0.7);
    transition: color 0.3s, text-shadow 0.3s, transform 0.2s;
    display: inline-block;
}

.gb-heart-lost {
    color: #333;
    text-shadow: none;
    transform: scale(0.7);
}

/* Hit popup */
.gb-hit-popup {
    position: absolute;
    top: 32px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 2.2rem;
    font-weight: 900;
    color: #ff4d6d;
    pointer-events: none;
    opacity: 0;
    z-index: 20;
    font-family: monospace;
    text-shadow: 0 0 20px rgba(255,77,109,0.8);
}

.gb-hit-show {
    animation: gb-hit-pop 0.55s ease-out forwards;
}

@keyframes gb-hit-pop {
    0%   { opacity: 1; transform: translateX(-50%) translateY(0)    scale(0.4); }
    40%  { opacity: 1; transform: translateX(-50%) translateY(-24px) scale(1.4); }
    100% { opacity: 0; transform: translateX(-50%) translateY(-48px) scale(0.9); }
}

/* Character wrap (shakes + faints as a unit) */
.gb-char-wrap {
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
}

.mascot-svg {
    width: 640px;
    max-width: 100%;
    height: auto;
    overflow: visible;
    cursor: pointer;
    filter: drop-shadow(0 12px 32px rgba(192,36,122,0.4));
    transition: filter 0.2s;
}

.mascot-svg:hover {
    filter: drop-shadow(0 12px 40px rgba(192,36,122,0.7));
}

/* Shake (hit) */
.gb-shake {
    animation: gb-shake 0.42s ease-in-out;
}

@keyframes gb-shake {
    0%,100% { transform: translateX(0) rotate(0deg); }
    15%     { transform: translateX(-14px) rotate(-6deg); }
    35%     { transform: translateX(14px)  rotate(6deg); }
    55%     { transform: translateX(-8px)  rotate(-3deg); }
    75%     { transform: translateX(8px)   rotate(3deg); }
    90%     { transform: translateX(-3px); }
}

/* Faint — freeze all movement, character stays in place */
.gb-faint .mascot-body,
.gb-faint .mascot-leg-l,
.gb-faint .mascot-leg-r,
.gb-faint .mascot-arm-l,
.gb-faint .mascot-arm-r {
    animation-play-state: paused;
}

/* Subtle fade on the SVG only — game screen div is outside gb-char-wrap so unaffected */
.gb-faint .mascot-svg {
    opacity: 0.35;
    transition: opacity 0.7s ease;
}

/* Faint stars — dizzy orbit above the head */
.gb-stars {
    position: absolute;
    top: -28px;
    left: 50%;
    width: 96px;
    height: 96px;
    transform: translateX(-50%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}

.gb-stars-show {
    opacity: 1;
}

.gb-stars-orbit {
    position: absolute;
    inset: 0;
    transform-origin: center center;
}

.gb-stars-show .gb-stars-orbit {
    animation: gb-orbit 2.6s linear infinite;
}

@keyframes gb-orbit {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}

/* Positioning slot — inline transform places it on the orbit ring */
.gb-star-slot {
    position: absolute;
    top: 50%;
    left: 50%;
    margin: -10px 0 0 -10px;
    width: 20px;
    height: 20px;
    display: block;
}

/* The actual star glyph — counter-stretched + twinkles */
.gb-star {
    width: 100%;
    height: 100%;
    fill: #ffd23f;
    filter: drop-shadow(0 0 5px rgba(255, 200, 40, 0.95));
    animation: gb-twinkle 0.9s ease-in-out infinite;
}

.gb-star--lg { transform: scale(1.25); }
.gb-star--md { transform: scale(0.95); animation-delay: 0.3s; }
.gb-star--sm { transform: scale(0.7);  animation-delay: 0.6s; }

@keyframes gb-twinkle {
    0%, 100% { opacity: 1;    }
    50%      { opacity: 0.45; }
}

/* Little spark dots between stars */
.gb-spark {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    margin: -2.5px 0 0 -2.5px;
    background: #fff6c2;
    border-radius: 50%;
    box-shadow: 0 0 6px 1px rgba(255, 230, 120, 0.9);
    animation: gb-spark-blink 0.7s ease-in-out infinite;
}

@keyframes gb-spark-blink {
    0%, 100% { opacity: 0.2; transform: scale(0.6); }
    50%      { opacity: 1;   transform: scale(1.2); }
}

/* ─────────────────────────────────────────────────────────── */

/* Running animation pieces */
.mascot-body {
    animation: mascot-bob 0.42s ease-in-out infinite alternate;
}

.mascot-shadow {
    animation: mascot-shadow 0.42s ease-in-out infinite alternate;
}

.mascot-leg-l {
    transform-box: fill-box;
    transform-origin: top center;
    animation: leg-l 0.42s ease-in-out infinite alternate;
}

.mascot-leg-r {
    transform-box: fill-box;
    transform-origin: top center;
    animation: leg-r 0.42s ease-in-out infinite alternate;
}

.mascot-arm-l {
    animation: arm-bob-l 0.42s ease-in-out infinite alternate;
}

.mascot-arm-r {
    animation: arm-bob-r 0.42s ease-in-out infinite alternate;
    animation-delay: 0.21s;
}

@keyframes mascot-bob {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(-7px); }
}

@keyframes mascot-shadow {
    0%   { rx: 16; transform: scaleX(1)   opacity(0.25); }
    100% { rx: 10; transform: scaleX(0.6) opacity(0.12); }
}

@keyframes leg-l {
    0%   { transform: rotate(-22deg); }
    100% { transform: rotate(14deg); }
}

@keyframes leg-r {
    0%   { transform: rotate(14deg); }
    100% { transform: rotate(-22deg); }
}

@keyframes arm-bob-l {
    0%   { transform: translateY(0px); }
    100% { transform: translateY(6px); }
}

@keyframes arm-bob-r {
    0%   { transform: translateY(6px); }
    100% { transform: translateY(0px); }
}

/* ─────────────────────────────────────────────────────── */

.section-title {
    font-size: 3.5rem;
    font-weight: 900;
    margin-bottom: 40px;
    letter-spacing: -2px;
}

/* Horizontal game portfolio slider (3 cards visible) */
.games-slider {
    position: relative;
    width: 100%;
    --slider-gap: 1.25rem;
    --cards-visible: 3;
    --card-skew: 15deg;
    /* Derived width tokens — change --card-expand-ratio to tune the accordion */
    --card-base-w: calc((100% - (var(--cards-visible) - 1) * var(--slider-gap)) / var(--cards-visible));
    --card-expand-ratio: 1.65;
    --card-hover-w: calc(var(--card-base-w) * var(--card-expand-ratio));
    padding: 0 3.25rem;
}

.games-slider__viewport {
    width: 100%;
    overflow: visible;
}

.games-slider__track {
    display: flex;
    gap: var(--slider-gap);
    width: 100%;
    height: 400px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.games-slider__track::-webkit-scrollbar {
    display: none;
}

.games-slider__track.is-dragging,
.games-slider__track.is-snapping {
    scroll-behavior: auto;
}

.games-slider__track.is-dragging {
    cursor: grabbing;
    user-select: none;
}

/* Cloned loop cards — hover effects (accordion, game-info) work on clones,
   but the play link must never be clickable on a clone */
.game-card.is-clone .card-play-link {
    pointer-events: none !important;
}

/* Static mode: 4 or fewer visible cards — slider disabled */
.games-slider--static .games-slider__nav {
    display: none !important;
}
.games-slider--static .game-card.is-clone {
    display: none !important;
}
.games-slider--static .games-slider__track {
    overflow: hidden;
    justify-content: center;
    cursor: default;
}

.games-slider__nav {
    position: absolute;
    top: 50%;
    z-index: 30;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    font-size: 1.35rem;
    line-height: 1;
    color: #fff;
    background: rgba(0, 0, 0, 0.72);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    cursor: pointer;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.45);
}

.games-slider__nav:hover {
    background: var(--riot-red);
    border-color: rgba(255, 255, 255, 0.35);
    transform: translateY(-50%) scale(1.06);
}

.games-slider__nav--prev {
    left: 0;
}

.games-slider__nav--next {
    right: 0;
}

.game-card {
    position: relative;
    /* Use token so the hover rule can expand via the same source of truth */
    flex: 0 0 var(--card-base-w);
    min-width: var(--card-base-w);
    height: 100%;
    overflow: hidden;
    color: white;
    transform: skewX(calc(-1 * var(--card-skew)));
    /* Width animation drives the accordion; other transitions stay as before */
    transition: flex-basis 0.4s ease-in-out,
                min-width  0.4s ease-in-out,
                box-shadow 0.35s ease,
                filter     0.35s ease;
}

.game-card:hover {
    /* Accordion expand — pushes siblings right, scroll width grows naturally */
    flex-basis: var(--card-hover-w);
    min-width:  var(--card-hover-w);
    z-index: 5;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.55);
    filter: brightness(1.05);
}

.card-shape {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    transform: skewX(var(--card-skew));
    outline: 3px solid transparent;
    outline-offset: 0px;
    transition: outline-color 0.3s ease, outline-offset 0.3s ease, transform 0.3s ease;
}

.game-card:hover .card-shape {
    outline-color: var(--riot-red);
    outline-offset: 4px;
    transform: skewX(var(--card-skew)) scale(1.055);
    box-shadow: 0 0 22px rgba(209, 54, 57, 0.45);
}

.media-box {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.base-img,
.gif-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 150%;
    height: 100%;
    margin-left: -25%;
    object-fit: cover;
    transform: none;
}

.gif-img { display: none; }
.game-card.has-gif:hover .gif-img { display: block; }
.game-card.has-gif:hover .base-img { display: none; }

.game-info {
    position: absolute;
    bottom: 0;
    left: -72px;
    right: -72px;
    padding: 36px 30px 80px;
    background: linear-gradient(transparent, rgba(0,0,0,0.92) 60%);
    z-index: 2;
}

.game-info h3 {
    margin: 0;
    font-size: 1.6rem;
    text-transform: uppercase;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    text-align: center;
    max-width: 100%;
    padding: 0 12px;
}

.game-info p { margin-top: 10px; font-size: 0.95rem; color: var(--neon-cyan); opacity: 0; transform: translateY(15px); transition: 0.4s ease; }
.game-card:hover .game-info p { opacity: 1; transform: translateY(0); }

.game-card:hover .game-info {
    padding-bottom: 98px;
}

/* Game grid cards: green PLAY CTA to detail page */
.game-card .card-shape {
    pointer-events: none;
}

.game-card .game-info p {
    font-size: 0.82rem;
    line-height: 1.45;
    padding: 0 8px;
    text-align: center;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.game-card .game-info p::before { content: '----- '; }
.game-card .game-info p::after  { content: ' -----'; }

@keyframes play-pulse {
    0%, 100% { transform: translateX(-50%) translateY(0) scale(1); }
    50%       { transform: translateX(-50%) translateY(0) scale(1.13); }
}

.card-play-link {
    position: absolute;
    bottom: 54px;
    left: 50%;
    z-index: 25;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 155px;
    padding: 13px 36px;
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
    color: #fff;
    background: linear-gradient(180deg, #34ce57 0%, #28a745 55%, #218838 100%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 999px;
    box-shadow:
        0 4px 16px rgba(0, 0, 0, 0.45),
        0 0 12px rgba(40, 167, 69, 0.35);
    opacity: 0;
    transform: translateX(-50%) translateY(8px);
    transition: opacity 0.35s ease, transform 0.35s ease, background 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
    pointer-events: none;
}

.game-card:hover .card-play-link {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
    pointer-events: auto;
    animation: play-pulse 1.1s ease-in-out infinite;
}

.card-play-link:hover {
    color: #fff;
    filter: brightness(1.08);
    box-shadow:
        0 6px 22px rgba(0, 0, 0, 0.5),
        0 0 18px rgba(40, 167, 69, 0.55);
}

.detail-body { background-color: #050505; }

.detail-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 28px 20px 32px;
    border-top: 1px solid #1e1e1e;
    margin-top: 40px;
}
.detail-footer-inner {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}
.detail-footer-link {
    color: #28a745;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: opacity 0.2s;
}
.detail-footer-link:hover { opacity: 0.75; }
.detail-footer-sep { color: #444; font-size: 0.8rem; }
.detail-footer-copy { color: #444; font-size: 0.75rem; }

.detail-nav {
    position: fixed;
    top: 24px;
    left: 24px;
    z-index: 200;
}

.btn-back {
    display: inline-block;
    padding: 12px 24px;
    background: var(--riot-red);
    color: white;
    text-decoration: none;
    font-weight: bold;
    font-size: 0.9rem;
    border-radius: 10px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: 0.2s;
    border: none;
    cursor: pointer;
}

.btn-back:hover {
    filter: brightness(1.2);
    transform: scale(1.03);
}

.game-banner { 
    position: relative;
    height: 65vh; background-size: cover; background-position: center; 
    display: flex; flex-direction: column; justify-content: center; 
    align-items: center; text-align: center; border-bottom: 2px solid #222;
}

.banner-content h1 { font-size: 5rem; text-transform: uppercase; margin: 0; text-shadow: 0 5px 15px rgba(0,0,0,0.8); }
.content-wrapper { padding: 80px 40px; max-width: 1100px; margin: auto; }

.game-play-area { 
    display: flex; justify-content: center; margin: 40px 0 80px; 
    background: #000; border: 4px solid var(--riot-red); 
    border-radius: 12px; overflow: hidden; position: relative;
    min-height: 600px;
}

.play-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    display: flex; justify-content: center; align-items: center; cursor: pointer;
}

.play-overlay img {
    position: absolute; width: 100%; height: 100%; object-fit: cover;
    filter: brightness(0.4); transition: 0.3s;
}

.play-overlay:hover img { filter: brightness(0.6); }

.play-now { 
    position: relative; z-index: 10; padding: 20px 60px; 
    background: var(--riot-red); color: white; border: none; 
    font-weight: 900; font-size: 1.2rem; cursor: pointer; 
    border-radius: 5px; text-transform: uppercase; transition: 0.2s;
}

.play-now:hover { transform: scale(1.1); filter: brightness(1.2); }

.description h2 { color: white; font-size: 2.5rem; border-left: 5px solid var(--riot-red); padding-left: 20px; margin-bottom: 30px; }
.description p, .description ul { color: #bbb; line-height: 1.7; margin-bottom: 16px; }
.description h3 { color: #ddd; font-size: 1.2rem; margin: 24px 0 10px; }
.description-tip { color: var(--neon-cyan); font-size: 0.95rem; }
.description-tagline { font-style: italic; color: #ccc; }
.controls-list { list-style: none; padding-left: 0; }
.controls-list li { margin-bottom: 6px; }
.description a { color: var(--neon-cyan); text-decoration: none; }
.description a:hover { text-decoration: underline; }

.more-info { margin-top: 60px; padding-top: 40px; border-top: 1px solid #333; }
.more-info h3 { color: white; font-size: 1.5rem; margin: 0 0 20px; }
.more-info-grid { display: grid; grid-template-columns: 140px 1fr; gap: 10px 24px; max-width: 560px; font-size: 0.95rem; }
.more-info-label { color: #666; }
.more-info-value { color: #ccc; }
.more-info-value a { color: var(--neon-cyan); text-decoration: none; }
.more-info-value a:hover { text-decoration: underline; }

/* ── See Other Games strip (reuses .home-spotlight card styles) ── */
.more-games { margin-top: 60px; }

.comments { margin-top: 60px; padding-top: 40px; border-top: 1px solid #222; }
.comments-list { margin-bottom: 24px; }
.comment-item { background: #111; border: 1px solid #333; border-radius: 8px; padding: 16px; margin-bottom: 12px; }
.comment-meta { margin-bottom: 8px; font-size: 0.9rem; }
.comment-author { font-weight: bold; color: var(--neon-cyan); }
.comment-date { color: #666; margin-left: 8px; font-size: 0.85rem; }
.comment-text { color: #ccc; line-height: 1.5; white-space: pre-wrap; word-break: break-word; }
.comments-empty { color: #666; font-style: italic; margin: 20px 0; }
.comments textarea { width: 100%; height: 120px; background: #111; border: 1px solid #333; color: white; padding: 15px; margin: 20px 0; border-radius: 8px; resize: none; }
.btn-comment { background: #333; color: white; border: none; padding: 12px 30px; border-radius: 5px; cursor: pointer; font-weight: bold; }
.btn-comment:hover { background: var(--riot-red); }

.download-container { text-align: center; margin-bottom: 50px; }
.download-container img { width: 100%; border-radius: 10px; border: 2px solid #333; }

/* Featured video with native controls (Twar Bots style hero) */
.video-wrapper--featured {
    aspect-ratio: auto;
    cursor: default;
    margin-bottom: 15px;
}

.video-wrapper--featured video {
    position: static;
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #000;
}

/* Detail pages: hero media, play on web, GitHub repo */
.media-hero {
    position: relative;
    width: 100%;
    border-radius: 10px;
    border: 2px solid #333;
    overflow: hidden;
    background: #000;
    margin-bottom: 15px;
}

.media-hero img {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 520px;
}

/* Shared slot: cover image/video and WebGL embed occupy the same area */
.media-slot {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    width: 100%;
    margin-bottom: 15px;
}

.media-slot > .media-hero,
.media-slot > .video-wrapper,
.media-slot > .game-embed-area {
    grid-area: 1 / 1;
    margin-bottom: 0;
}

.media-slot > .media-hero[hidden],
.media-slot > .video-wrapper[hidden],
.media-slot > .game-embed-area[hidden] {
    display: none !important;
}

.media-slot > .game-embed-area:not([hidden]) {
    min-height: 0;
    margin: 0;
}

.btn-github-repo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #f0f6fc;
    background: linear-gradient(145deg, #2d333b 0%, #161b22 55%, #0d1117 100%);
    border: 1px solid rgba(240, 246, 252, 0.2);
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.25);
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
}

.btn-github-repo::before {
    content: "";
    width: 18px;
    height: 18px;
    background: url("https://cdn.jsdelivr.net/gh/devicons/devicon@latest/icons/github/github-original.svg") center / contain no-repeat;
}

.btn-github-repo:hover {
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    transform: scale(1.03);
}

.game-embed-area {
    width: 100%;
    margin: 0 0 40px;
    min-height: 620px;
    background: #000;
    border: 4px solid var(--riot-red);
    border-radius: 12px;
    overflow: hidden;
}

.game-embed-area[hidden] {
    display: none;
}

.game-embed-area--inline {
    margin: 0 0 15px;
}

.game-embed-area iframe {
    width: 100%;
    height: 600px;
    border: 0;
    display: block;
}

.video-wrapper {
    position: relative;
    width: 100%;
    display: block;
    border-radius: 10px;
    border: 2px solid #333;
    overflow: hidden;
    cursor: pointer;
    aspect-ratio: 16 / 9;
}

.download-preview-video {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.video-wrapper .download-preview-video {
    position: absolute;
    top: 0;
    left: 0;
}

.video-play-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: none;
    background: rgba(0, 0, 0, 0.35);
}

.video-wrapper.is-paused .video-play-overlay {
    display: flex;
}

.video-play-icon {
    width: 0;
    height: 0;
    border-left: 48px solid rgba(255, 255, 255, 0.95);
    border-top: 28px solid transparent;
    border-bottom: 28px solid transparent;
    margin-left: 8px;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.6));
}

.video-mute-btn {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 5;
    width: 40px;
    height: 40px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    cursor: pointer;
    color: #fff;
    transition: background 0.2s, color 0.2s;
}

.video-mute-btn:hover {
    background: rgba(0, 0, 0, 0.75);
    color: var(--neon-cyan, #0ff);
}

.video-mute-btn .video-unmute-icon[hidden],
.video-mute-btn .video-mute-icon[hidden] {
    display: none !important;
}

.video-mute-btn svg {
    display: block;
}

.footer {
    background: #0a0a0a;
    border-top: 2px solid var(--riot-red);
    padding: 60px 40px 50px;
    margin-top: 0;
}

.footer-content { max-width: 900px; margin: 0 auto; }

.footer-title {
    font-size: 1.8rem;
    font-weight: 900;
    margin: 0 0 20px;
    color: white;
    letter-spacing: -0.5px;
}

.footer-skills {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
    color: #ccc;
    line-height: 1.9;
    font-size: 1.05rem;
}

.footer-about, .footer-cta {
    color: #aaa;
    line-height: 1.7;
    margin: 0 0 20px;
    font-size: 1rem;
}

.footer-cta { margin-bottom: 36px; }

.footer-logos {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: center;
    margin-bottom: 40px;
}

.footer-logos a { display: inline-block; }

.tech-logo {
    width: 40px;
    height: 40px;
    object-fit: contain;
    opacity: 0.85;
    transition: opacity 0.2s;
}

.footer-logos a:hover .tech-logo { opacity: 1; }

.connect-title {
    font-size: 2rem;
    font-weight: 900;
    margin: 0 0 24px;
    color: white;
    letter-spacing: -0.5px;
    border-left: 4px solid var(--riot-red);
    padding-left: 16px;
}

.contact-form {
    max-width: 540px;
    margin-bottom: 36px;
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 28px 32px;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 18px;
    font-size: 1rem;
    color: #fff;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-left: 3px solid var(--riot-red);
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-color: var(--neon-cyan, #0ff);
    border-left-color: var(--neon-cyan, #0ff);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.08);
}

.contact-textarea {
    resize: vertical;
    min-height: 110px;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: #555;
}

.btn-submit {
    padding: 13px 36px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--riot-red);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 4px 18px rgba(209, 54, 57, 0.35);
}

.btn-submit:hover:not(:disabled) {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(209, 54, 57, 0.5);
}

.btn-submit:active:not(:disabled) {
    transform: translateY(0);
}

.btn-submit:disabled {
    cursor: not-allowed;
    opacity: 0.7;
}

.btn-submit.success { background: #22c55e; box-shadow: 0 4px 18px rgba(34,197,94,0.35); }
.btn-submit.error   { background: #dc2626; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ddd;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 18px;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.2s, box-shadow 0.22s;
}

.footer-link:hover {
    color: #fff;
    background: var(--riot-red);
    border-color: var(--riot-red);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(209, 54, 57, 0.4);
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}


/* ==========================================================
   TWAR BOTS UPDATE: VIDEO SWITCHER & ACTION BUTTONS
   ========================================================== */

/* Action buttons container */
.action-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
    margin-top: 10px;
    margin-bottom: 30px;
}

/* Wrapping <a> tags shrink to content width */
.action-buttons > a {
    display: inline-flex;
    text-decoration: none;
}

/* Inner buttons natural width */
.action-buttons > a > button {
    width: auto;
}

/* Base style for Web and APK buttons */
.play-web, .play-now {
    padding: 10px 20px !important; /* Forces smaller padding */
    font-size: 14px !important; /* Forces smaller font */
    font-weight: bold;
    text-align: center;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    text-transform: uppercase;
    margin: 0;
}

/* Play on Web button specific colors */
.play-web {
    background-color: #28a745;
    color: white;
}

.play-web:hover {
    background-color: #218838;
    transform: scale(1.05);
}

/* Existing play-now (APK) hover override to match scale */
.play-now:hover {
    transform: scale(1.05);
}

/* ── Play-on-Web overlay button (centered on cover image) ── */
.media-hero--playable {
    cursor: pointer;
}

.media-hero--playable img {
    filter: brightness(0.7);
    transition: filter 0.25s;
}

.media-hero--playable:hover img {
    filter: brightness(0.55);
}

.play-web--overlay {
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    z-index: 5;
    width: auto !important;
    height: auto !important;
    padding: 14px 36px !important;
    font-size: 1rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.12em !important;
    border-radius: 999px !important;
    background: #28a745 !important;
    border: 2px solid rgba(255, 255, 255, 0.85) !important;
    color: white !important;
    cursor: pointer;
    text-transform: uppercase;
    white-space: nowrap;
    box-shadow: 0 4px 28px rgba(0, 0, 0, 0.55);
    animation: play-overlay-pulse 1.6s ease-in-out infinite !important;
}

@keyframes play-overlay-pulse {
    0%, 100% { transform: translate(-50%, -50%) scale(1); }
    50%       { transform: translate(-50%, -50%) scale(1.1); }
}

.play-web--overlay::after {
    display: none;
}

.play-web--overlay:hover {
    background: #218838 !important;
    animation-play-state: paused !important;
    transform: translate(-50%, -50%) scale(1.12) !important;
    box-shadow: 0 6px 36px rgba(40, 167, 69, 0.6);
}

/* Video Switcher Layout */
.video-switcher {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 25px;
}

/* Neon Tech Style Buttons */
.btn-switch {
    padding: 10px 22px;
    font-size: 14px;
    font-weight: bold;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    
    /* Neon styles */
    background: transparent;
    color: var(--neon-cyan); /* Using your existing neon-cyan variable */
    border: 2px solid var(--neon-cyan);
    border-radius: 4px;
    box-shadow: 0 0 5px rgba(0, 255, 204, 0.3);
}

/* Active state for Neon button */
.btn-switch.active {
    background-color: var(--neon-cyan);
    color: #000; /* Dark text for contrast against neon background */
    box-shadow: 0 0 15px rgba(0, 255, 204, 0.7);
}

/* Hover state for inactive Neon buttons */
.btn-switch:hover:not(.active) {
    background-color: rgba(0, 255, 204, 0.1);
    box-shadow: 0 0 10px rgba(0, 255, 204, 0.5);
}

@media (max-width: 768px) {
    .navbar {
        padding: 15px 16px;
        flex-wrap: wrap;
        justify-content: space-between;
        height: auto;
    }

    .nav-left {
        gap: 16px;
    }

    .logo-text {
        font-size: 1.4rem;
    }

    .nav-right {
        margin-top: 8px;
    }

    .nav-links {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        justify-items: center;
        width: 100%;
        order: 3;
        margin-top: 20px;
    }

    .hero {
        padding: 60px 20px 40px;
    }

    .hero-title {
        font-size: 2.4rem;
    }

    .hero-intro {
        font-size: 1rem;
        padding: 0 4px;
    }

    .games-section {
        padding: 40px 16px;
    }

    .section-title {
        font-size: 2.4rem;
        margin-bottom: 24px;
    }

    .games-slider {
        --cards-visible: 1;
        padding: 0 2.75rem;
    }

    .games-slider__track {
        height: 220px;
    }

    .games-slider__nav {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.1rem;
    }

    .game-card {
        transform: skewX(calc(-1 * var(--card-skew)));
    }

    .card-shape {
        transform: skewX(var(--card-skew));
    }

    .base-img,
    .gif-img {
        width: 100%;
        max-width: 100%;
        height: 100%;
        margin-left: 0;
        object-fit: cover;
    }

    .game-info {
        left: 0;
        right: 0;
        padding: 32px 20px 24px;
        text-align: left;
    }

    .game-card .game-info p,
    .game-card:hover .game-info p {
        opacity: 1;
        transform: translateY(0);
    }

    .game-card:hover .game-info {
        padding-bottom: 52px;
    }

    .card-play-link {
        opacity: 1;
        pointer-events: auto;
        transform: translateX(-50%);
        bottom: 10px;
    }

    .footer {
        padding: 40px 20px 32px;
    }

    .footer-links {
        flex-direction: column;
        align-items: flex-start;
    }
}: 36px;
    background: #111;
    border: 1px solid #222;
    border-radius: 16px;
    padding: 28px 32px;
}

.contact-label {
    display: block;
    font-size: 0.85rem;
    font-weight: 700;
    color: var(--neon-cyan);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.contact-input,
.contact-textarea {
    width: 100%;
    padding: 13px 16px;
    margin-bottom: 18px;
    font-size: 1rem;
    color: #fff;
    background: #1a1a1a;
    border: 1px solid #2a2a2a;
    border-left: 3px solid var(--riot-red);
    border-radius: 8px;
    box-sizing: border-box;
    transition: border-color 0.25s, box-shadow 0.25s;
}

.contact-input:focus,
.contact-textarea:focus {
    outline: none;
    border-color: var(--neon-cyan, #0ff);
    border-left-color: var(--neon-cyan, #0ff);
    box-shadow: 0 0 0 3px rgba(0, 255, 255, 0.08);
}

.contact-textarea {
    resize: vertical;
    min-height: 110px;
}

.contact-input::placeholder,
.contact-textarea::placeholder {
    color: #555;
}

.btn-submit {
    padding: 13px 36px;
    font-size: 0.95rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #fff;
    background: var(--riot-red);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.25s, transform 0.2s, box-shadow 0.25s;
    box-shadow: 0 4px 18px rgba(209, 54, 57, 0.35);
}

.btn-submit:hover:not(:disabled) {
    filter: brightness(1.12);
    transform: translateY(-2px);
    box-shadow: 0 8px 28px rgba(209, 54, 57, 0.5);
}

.btn-submit:active:not(:disabled) { transform: translateY(0); }

.btn-submit:disabled { cursor: not-allowed; opacity: 0.7; }

.btn-submit.success { background: #22c55e; box-shadow: 0 4px 18px rgba(34,197,94,0.35); }
.btn-submit.error   { background: #dc2626; }

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    margin-top: 4px;
}

.footer-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: #ddd;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.9rem;
    padding: 10px 18px;
    background: #161616;
    border: 1px solid #2a2a2a;
    border-radius: 999px;
    transition: background 0.22s, color 0.22s, border-color 0.22s, transform 0.2s, box-shadow 0.22s;
}

.footer-link:hover {
    color: #fff;
    background: var(--riot-red);
    border-color: var(--riot-red);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(209, 54, 57, 0.4);
}

.social-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 70px 20px 60px; }
    .hero-title { font-size: 2.6rem; letter-spacing: -1px; }
    .hero-intro { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 280px; text-align: center; }

    .about-section { padding: 60px 20px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }

    .games-section { padding: 40px 16px; }
    .games-slider { --cards-visible: 1; padding: 0 2.75rem; }
    .games-slider__track { height: 220px; }
    .games-slider__nav { width: 2.25rem; height: 2.25rem; font-size: 1.1rem; }
    .game-card { transform: skewX(calc(-1 * var(--card-skew))); }
    .card-shape { transform: skewX(var(--card-skew)); }
    .base-img, .gif-img { width: 100%; max-width: 100%; height: 100%; margin-left: 0; object-fit: cover; }
    .game-info { left: 0; right: 0; padding: 32px 20px 24px; text-align: left; }
    .game-card .game-info p, .game-card:hover .game-info p { opacity: 1; transform: translateY(0); }

    .footer { padding: 40px 20px; }
    .footer-links { gap: 8px; }
    .contact-form { padding: 20px; }
}

/* ── Responsive ─────────────────────────────────────────── */
@media (max-width: 768px) {
    .hero { padding: 70px 20px 60px; }
    .hero-title { font-size: 2.6rem; letter-spacing: -1px; }
    .hero-intro { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 280px; text-align: center; }

    .about-section { padding: 60px 20px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }

    .games-section { padding: 40px 16px; }
    .games-slider { --cards-visible: 1; padding: 0 2.75rem; }
    .games-slider__track { height: 220px; }
    .games-slider__nav { width: 2.25rem; height: 2.25rem; font-size: 1.1rem; }
    .game-card { transform: skewX(calc(-1 * var(--card-skew))); }
    .card-shape { transform: skewX(var(--card-skew)); }
    .base-img, .gif-img { width: 100%; max-width: 100%; height: 100%; margin-left: 0; object-fit: cover; }
    .game-info { left: 0; right: 0; padding: 32px 20px 24px; }
    .game-card .game-info p, .game-card:hover .game-info p { opacity: 1; transform: translateY(0); }

    .footer { padding: 40px 20px; }
    .footer-links { gap: 8px; }
    .contact-form { padding: 20px; }
}

@media (max-width: 768px) {
    .navbar { padding: 0 6px; gap: 1px; flex-wrap: nowrap; height: 50px; justify-content: unset; width: auto; }
    .nav-left { gap: 2px; }
    .nav-right { margin-top: 0; }
    .nav-links { display: flex; width: auto; order: unset; margin-top: 0; gap: 2px; }
    .nav-links a { padding: 5px 7px; font-size: 0.68rem; }
    .nav-links a svg { display: none; }
    .btn-signin { padding: 5px 10px; font-size: 0.68rem; }
    .hero { padding: 100px 20px 60px; }
    .hero-title { font-size: 2.6rem; letter-spacing: -1px; }
    .hero-intro { font-size: 1rem; }
    .hero-actions { flex-direction: column; align-items: center; }
    .btn-hero-primary, .btn-hero-secondary { width: 100%; max-width: 280px; text-align: center; }
    .about-section { padding: 60px 20px; }
    .about-grid { grid-template-columns: 1fr; gap: 40px; }
    .games-section { padding: 40px 16px; }
    .games-slider { --cards-visible: 1; padding: 0 2.75rem; }
    .games-slider__track { height: 220px; }
    .games-slider__nav { width: 2.25rem; height: 2.25rem; font-size: 1.1rem; }
    .game-card { transform: skewX(calc(-1 * var(--card-skew))); }
    .card-shape { transform: skewX(var(--card-skew)); }
    .base-img, .gif-img { width: 100%; max-width: 100%; height: 100%; margin-left: 0; object-fit: cover; }
    .game-info { left: 0; right: 0; padding: 32px 20px 24px; }
    .game-card .game-info p, .game-card:hover .game-info p { opacity: 1; transform: translateY(0); }
    .footer { padding: 40px 20px; }
    .footer-links { gap: 8px; }
    .contact-form { padding: 20px; }
}

/* ── Home page ────────────────────────────────────────── */
.home-main {
    max-width: 1100px;
    margin: 0 auto;
    padding: 100px 48px 80px;
}

.home-hero {
    display: flex;
    align-items: center;
    gap: 60px;
    padding: 40px 0 56px;
}

.home-hero-text {
    flex: 1;
    min-width: 0;
}

/* 3D canvas container */
.home-hero-3d {
    flex-shrink: 0;
    width: 400px;
    height: 400px;
    position: relative;
}

#hero-canvas {
    width: 100% !important;
    height: 100% !important;
    cursor: grab;
    display: block;
}

#hero-canvas:active { cursor: grabbing; }

.home-name {
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.home-subtitle {
    font-size: 1.25rem;
    color: #666;
    font-weight: 400;
    margin: 0 0 28px;
}

.home-bio {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #999;
    max-width: 640px;
    margin: 0 0 36px;
}

.home-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #111;
    border: 1px solid #222;
    border-radius: 999px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.18s;
}

.home-social-link:hover {
    background: #1a1a1a;
    border-color: #3a3a3a;
    color: #fff;
    transform: translateY(-2px);
}

.home-social-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ── Stats counters ─────────────────────────────────── */
.home-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 40px 0 48px;
    border-top: 1px solid #1c1c1c;
    border-bottom: 1px solid #1c1c1c;
    margin-bottom: 56px;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    flex: 1;
}

.stat-number-wrap {
    display: flex;
    align-items: baseline;
    gap: 2px;
}

.stat-num {
    font-size: 3rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -2px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.stat-suffix {
    font-size: 1.8rem;
    font-weight: 900;
    color: #28a745;
    line-height: 1;
}

.stat-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #666;
}

.stat-divider {
    width: 1px;
    height: 48px;
    background: #222;
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .home-stats { flex-wrap: wrap; gap: 28px; padding: 32px 0; }
    .stat-divider { display: none; }
    .stat-item { flex: 1 1 40%; }
    .stat-num { font-size: 2.2rem; }
}

/* ── Experience timeline ─────────────────────────────── */
.timeline {
    position: relative;
    padding-left: 32px;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 8px;
    top: 8px;
    bottom: 8px;
    width: 2px;
    background: linear-gradient(to bottom, #28a745, #1a5c2a);
    border-radius: 2px;
}

.timeline-item {
    position: relative;
    margin-bottom: 40px;
}

.timeline-item:last-child { margin-bottom: 0; }

.timeline-dot {
    position: absolute;
    left: -28px;
    top: 6px;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #28a745;
    border: 2px solid #0a0a0a;
    box-shadow: 0 0 0 2px #28a745;
}
.timeline-dot--active {
    background: #28a745;
    box-shadow: 0 0 0 3px #28a74544, 0 0 10px #28a74566;
    animation: dotPulse 2s ease-in-out infinite;
}
@keyframes dotPulse {
    0%, 100% { box-shadow: 0 0 0 3px #28a74544, 0 0 10px #28a74566; }
    50% { box-shadow: 0 0 0 6px #28a74520, 0 0 18px #28a74588; }
}

.timeline-item .exp-role-title {
    font-size: 1rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 2px;
}

.timeline-item .exp-company-name {
    font-size: 0.85rem;
    font-weight: 600;
    color: #28a745;
    margin-bottom: 4px;
}

.timeline-item .exp-period {
    font-size: 0.75rem;
    color: #555;
    letter-spacing: 0.06em;
    margin-bottom: 10px;
}

.timeline-item .exp-bullets {
    margin: 0;
    padding-left: 16px;
    color: #999;
    font-size: 0.85rem;
    line-height: 1.65;
}

.timeline-item .exp-bullets li { margin-bottom: 4px; }

/* Spotlight */
.home-spotlight {
    border-top: 1px solid #1a1a1a;
    padding: 56px 0 0;
}

.home-section-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0 0 28px;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 28px;
}

.spotlight-card {
    --spot-skew: 10deg;
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 16 / 10;
    border: 1px solid #1a1a1a;
    background: #111;
    /* Skew matches the games slider aesthetic */
    transform: skewX(calc(-1 * var(--spot-skew)));
    transition: transform 0.25s, box-shadow 0.25s;
}

.spotlight-card:hover {
    transform: skewX(calc(-1 * var(--spot-skew))) translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.65);
}

/* Counter-skew the image to fill the card correctly */
.spotlight-card img {
    width: 115%;
    height: 100%;
    margin-left: -7.5%;
    object-fit: cover;
    display: block;
    transform: skewX(var(--spot-skew));
    transition: transform 0.35s;
}

.spotlight-card:hover img {
    transform: skewX(var(--spot-skew)) scale(1.05);
}

/* Counter-skew the info overlay so text reads straight */
.spotlight-info {
    position: absolute;
    bottom: 0;
    left: -16px;
    right: -16px;
    padding: 28px 24px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.92));
    transform: skewX(var(--spot-skew));
}

.spotlight-info h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.spotlight-info p {
    margin: 0;
    font-size: 0.75rem;
    color: #888;
}

.home-see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: gap 0.2s;
}

.home-see-all:hover { gap: 13px; }

/* Nav active state */
.nav-links a.nav-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.logo.logo-active {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

/* About page wrapper */
.about-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 48px 80px;
}

/* Games page wrapper */
.games-page {
    padding: 100px 0 60px;
}

/* Minimal shared footer */
.page-footer {
    border-top: 1px solid #1a1a1a;
    padding: 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
    color: #444;
    font-size: 0.82rem;
}

.page-footer-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.page-footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.page-footer-links a:hover { color: #fff; }

@media (max-width: 900px) {
    .home-hero { flex-direction: column; gap: 32px; }
    .home-hero-3d { width: 300px; height: 300px; }
}

@media (max-width: 768px) {
    .home-main { padding: 90px 24px 60px; }
    .home-name { font-size: 3rem; letter-spacing: -2px; }
    .spotlight-grid { grid-template-columns: 1fr; }
    .about-page { padding: 90px 24px 60px; }
    .games-page { padding: 90px 0 40px; }
    .page-footer { padding: 24px; flex-direction: column; }
    .home-hero-3d { width: 260px; height: 260px; }
}

/* ── Available badge + hero CTAs ─────────────────────── */
.hero-avail-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 5px 14px;
    border-radius: 999px;
    background: rgba(40, 167, 69, 0.12);
    border: 1px solid rgba(40, 167, 69, 0.35);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #28a745;
    margin-bottom: 16px;
}

.hero-avail-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #28a745;
    box-shadow: 0 0 0 2px rgba(40,167,69,0.3);
    animation: avail-pulse 2s ease-in-out infinite;
}

@keyframes avail-pulse {
    0%, 100% { box-shadow: 0 0 0 2px rgba(40,167,69,0.3); }
    50%       { box-shadow: 0 0 0 5px rgba(40,167,69,0.1); }
}

.hero-cta-row {
    display: flex;
    gap: 12px;
    margin: 24px 0 20px;
    flex-wrap: wrap;
}

.hero-hire-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 8px;
    background: #28a745;
    color: #fff;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    transition: background 0.2s, transform 0.15s;
}
.hero-hire-btn:hover { background: #218838; transform: translateY(-2px); }

.hero-games-btn {
    display: inline-flex;
    align-items: center;
    padding: 12px 28px;
    border-radius: 8px;
    background: transparent;
    color: #ccc;
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.06em;
    text-decoration: none;
    text-transform: uppercase;
    border: 1px solid #333;
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
}
.hero-games-btn:hover { border-color: #666; color: #fff; transform: translateY(-2px); }

/* ── Spotlight status badges ──────────────────────────── */
.spotlight-card { position: relative; }

.game-status-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 5;
    padding: 3px 10px;
    border-radius: 999px;
    font-size: 0.65rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}
.badge--web     { background: rgba(40,167,69,0.85);  color: #fff; }
.badge--mobile  { background: rgba(0,122,255,0.85);  color: #fff; }
.badge--pc      { background: rgba(150,80,255,0.85); color: #fff; }

/* ── Sidebar skill bars (about page) ─────────────────── */
.skill-bars { display: flex; flex-direction: column; gap: 10px; }

.skill-bar-item {}

.skill-bar-meta {
    display: flex;
    justify-content: space-between;
    font-size: 0.78rem;
    color: #bbb;
    margin-bottom: 4px;
}

.skill-bar-pct { color: #28a745; font-weight: 600; }

.skill-bar-track {
    height: 4px;
    background: #1e1e1e;
    border-radius: 999px;
    overflow: hidden;
}

.skill-bar-fill {
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, #28a745, #34ce57);
    border-radius: 999px;
    transition: width 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

/* ── Resume CTA section (about page) ─────────────────── */
.resume-cta-section {
    margin-bottom: 48px;
}

/* ── IP disclaimer (fan game notice) ──────────────────── */
.ip-disclaimer {
    margin: 14px 0 0;
    padding: 10px 14px;
    background: #1a1200;
    border: 1px solid #5a3e00;
    border-radius: 6px;
    color: #c9a84c;
    font-size: 0.8rem;
    line-height: 1.5;
}

/* ── itch.io stats strip (detail pages) ──────────────── */
.itch-stats {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0;
    margin-top: 14px;
    padding: 12px 16px;
    background: #0d0d0d;
    border: 1px solid #1e1e1e;
    border-radius: 10px;
}

.itch-stat {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 4px 16px 4px 0;
    margin-right: 16px;
    border-right: 1px solid #1e1e1e;
    flex-shrink: 0;
}

.itch-stat:last-child {
    border-right: none;
    margin-right: 0;
}

.itch-stat-icon { font-size: 0.85rem; }

.itch-stat-num {
    font-size: 0.95rem;
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.02em;
}

.itch-stat-label {
    font-size: 0.7rem;
    color: #555;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.itch-stat--solo .itch-stat-label,
.itch-stat--new .itch-stat-label {
    color: #28a745;
    font-weight: 700;
}

@media (max-width: 600px) {
    .itch-stats { gap: 10px; padding: 10px 12px; }
    .itch-stat { border-right: none; margin-right: 0; padding-right: 0; }
}

.resume-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 28px 32px;
    border-radius: 12px;
    background: linear-gradient(135deg, #0e1f12 0%, #0a0a0a 100%);
    border: 1px solid rgba(40, 167, 69, 0.2);
}

.resume-cta-text h3 {
    font-size: 1.1rem;
    font-weight: 700;
    color: #fff;
    margin: 0 0 4px;
}

.resume-cta-text p {
    font-size: 0.82rem;
    color: #777;
    margin: 0;
}

.resume-download-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    border-radius: 8px;
    background: #28a745;
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    transition: background 0.2s, transform 0.15s;
    flex-shrink: 0;
}
.resume-download-btn:hover { background: #218838; transform: translateY(-2px); }

@media (max-width: 600px) {
    .resume-cta-inner { flex-direction: column; align-items: flex-start; }
}

/* ── Rich footer ──────────────────────────────────────── */
.page-footer--rich {
    flex-direction: column;
    gap: 0;
    padding: 48px 48px 24px;
    border-top: 1px solid #1a1a1a;
}

.footer-rich-top {
    display: flex;
    justify-content: space-between;
    gap: 48px;
    padding-bottom: 36px;
    border-bottom: 1px solid #1a1a1a;
    flex-wrap: wrap;
}

.footer-rich-brand {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-logo-img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
    object-fit: contain;
}

.footer-brand-name {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    color: #fff;
}

.footer-tagline {
    font-size: 0.75rem;
    color: #555;
    margin: 0;
}

.footer-cta-btn {
    display: inline-flex;
    align-items: center;
    padding: 9px 20px;
    margin-top: 8px;
    border-radius: 8px;
    background: #28a745;
    color: #fff;
    font-weight: 700;
    font-size: 0.8rem;
    text-decoration: none;
    letter-spacing: 0.05em;
    width: fit-content;
    transition: background 0.2s;
}
.footer-cta-btn:hover { background: #218838; }

.footer-rich-nav {
    display: flex;
    gap: 64px;
    flex-wrap: wrap;
}

.footer-nav-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-nav-heading {
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #444;
    margin-bottom: 4px;
}

.footer-nav-col a {
    font-size: 0.82rem;
    color: #666;
    text-decoration: none;
    transition: color 0.15s;
}
.footer-nav-col a:hover { color: #fff; }

.footer-rich-bottom {
    display: flex;
    justify-content: space-between;
    padding-top: 20px;
    font-size: 0.75rem;
    color: #333;
}

@media (max-width: 700px) {
    .page-footer--rich { padding: 36px 24px 20px; }
    .footer-rich-top { flex-direction: column; gap: 32px; }
    .footer-rich-nav { gap: 32px; }
}

/* ── Particle background (index only) ───────────────── */
#particles-bg {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    pointer-events: none;
}

/* ── Home page ────────────────────────────────────────── */
.home-main {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 48px 80px;
}

.home-hero { padding: 40px 0 56px; }

.home-name {
    font-size: 5.5rem;
    font-weight: 900;
    letter-spacing: -4px;
    line-height: 1;
    margin: 0 0 16px;
    text-transform: uppercase;
}

.home-subtitle {
    font-size: 1.25rem;
    color: #666;
    font-weight: 400;
    margin: 0 0 28px;
}

.home-bio {
    font-size: 1.05rem;
    line-height: 1.75;
    color: #999;
    max-width: 640px;
    margin: 0 0 36px;
}

.home-social {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.home-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #111;
    border: 1px solid #222;
    border-radius: 999px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.18s;
}

.home-social-link:hover {
    background: #1a1a1a;
    border-color: #3a3a3a;
    color: #fff;
    transform: translateY(-2px);
}

.home-social-link img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* ── Spotlight grid with skew ──────────────────────── */
.home-spotlight {
    border-top: 1px solid #1a1a1a;
    padding: 56px 0 0;
}

.home-section-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0 0 28px;
}

.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}

/* Card skew matches the games slider (--card-skew = 10deg for spotlight) */
.spotlight-card {
    --spot-skew: 10deg;
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 16 / 10;
    background: #111;
    border: 1px solid #1a1a1a;
    /* Apply skew to the card itself */
    transform: skewX(calc(-1 * var(--spot-skew)));
    transition: transform 0.25s, box-shadow 0.25s;
}

.spotlight-card:hover {
    transform: skewX(calc(-1 * var(--spot-skew))) translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.65);
}

/* Counter-skew the image so it fills correctly */
.spotlight-card img {
    width: 115%;
    height: 100%;
    margin-left: -7.5%;
    object-fit: cover;
    display: block;
    transform: skewX(var(--spot-skew));
    transition: transform 0.35s;
}

.spotlight-card:hover img {
    transform: skewX(var(--spot-skew)) scale(1.05);
}

/* Counter-skew the info overlay */
.spotlight-info {
    position: absolute;
    bottom: 0;
    left: -16px;
    right: -16px;
    padding: 28px 24px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.92));
    transform: skewX(var(--spot-skew));
}

.spotlight-info h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}

.spotlight-info p {
    margin: 0;
    font-size: 0.75rem;
    color: #888;
}

.home-see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: gap 0.2s;
}

.home-see-all:hover { gap: 13px; }

/* Nav active state */
.nav-links a.nav-active {
    color: #fff;
    background: rgba(255, 255, 255, 0.1);
}

.logo.logo-active {
    background: rgba(255, 255, 255, 0.08);
    border-radius: 999px;
}

/* About page wrapper */
.about-page {
    max-width: 1000px;
    margin: 0 auto;
    padding: 100px 48px 80px;
}

/* Games page wrapper */
.games-page { padding: 100px 0 60px; }

/* Shared minimal footer */
.page-footer {
    border-top: 1px solid #1a1a1a;
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
    color: #444;
    font-size: 0.82rem;
}

.page-footer-links {
    display: flex;
    gap: 16px;
    align-items: center;
}

.page-footer-links a {
    color: #555;
    text-decoration: none;
    font-size: 0.82rem;
    transition: color 0.2s;
}

.page-footer-links a:hover { color: #fff; }

@media (max-width: 768px) {
    .home-main { padding: 90px 20px 60px; }
    .home-name { font-size: 3rem; letter-spacing: -2px; }
    .spotlight-grid { grid-template-columns: 1fr; gap: 24px; }
    .spotlight-card { transform: skewX(calc(-1 * var(--spot-skew))); }
    .about-page { padding: 90px 20px 60px; }
    .games-page { padding: 90px 0 40px; }
    .page-footer { padding: 20px; flex-direction: column; align-items: flex-start; }
}

.home-social-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    background: #111;
    border: 1px solid #222;
    border-radius: 999px;
    color: #ccc;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 600;
    transition: background 0.2s, color 0.2s, border-color 0.2s, transform 0.18s;
}
.home-social-link:hover {
    background: #1a1a1a;
    border-color: #3a3a3a;
    color: #fff;
    transform: translateY(-2px);
}
.home-social-link img { width: 18px; height: 18px; object-fit: contain; }

.home-spotlight {
    border-top: 1px solid #1a1a1a;
    padding: 56px 0 0;
}
.home-section-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0 0 28px;
}
.spotlight-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 28px;
}
.spotlight-card {
    --spot-skew: 10deg;
    display: block;
    position: relative;
    overflow: hidden;
    text-decoration: none;
    aspect-ratio: 16 / 10;
    background: #111;
    border: 1px solid #1a1a1a;
    transform: skewX(calc(-1 * var(--spot-skew)));
    transition: transform 0.25s, box-shadow 0.25s;
}
.spotlight-card:hover {
    transform: skewX(calc(-1 * var(--spot-skew))) translateY(-5px);
    box-shadow: 0 16px 48px rgba(0,0,0,0.65);
}
.spotlight-card img {
    width: 115%;
    height: 100%;
    margin-left: -7.5%;
    object-fit: cover;
    display: block;
    transform: skewX(var(--spot-skew));
    transition: transform 0.35s;
}
.spotlight-card:hover img {
    transform: skewX(var(--spot-skew)) scale(1.05);
}
.spotlight-info {
    position: absolute;
    bottom: 0;
    left: -16px;
    right: -16px;
    padding: 28px 24px 16px;
    background: linear-gradient(transparent, rgba(0,0,0,0.92));
    transform: skewX(var(--spot-skew));
}
.spotlight-info h3 {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}
.spotlight-info p {
    margin: 0;
    font-size: 0.75rem;
    color: #888;
}
.home-see-all {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--neon-cyan);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.88rem;
    transition: gap 0.2s;
}
.home-see-all:hover { gap: 13px; }
.nav-links a.nav-active { color: #fff; background: rgba(255,255,255,0.1); }
.logo.logo-active { background: rgba(255,255,255,0.08); border-radius: 999px; }
.about-page { max-width: 1000px; margin: 0 auto; padding: 100px 48px 80px; }
.games-page { padding: 100px 0 60px; }
.page-footer {
    border-top: 1px solid #1a1a1a;
    padding: 28px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    max-width: 1000px;
    margin: 0 auto;
    color: #444;
    font-size: 0.82rem;
}
.page-footer-links { display: flex; gap: 16px; align-items: center; }
.page-footer-links a { color: #555; text-decoration: none; font-size: 0.82rem; transition: color 0.2s; }
.page-footer-links a:hover { color: #fff; }
@media (max-width: 768px) {
    .home-main { padding: 90px 20px 60px; }
    .home-name { font-size: 3rem; letter-spacing: -2px; }
    .spotlight-grid { grid-template-columns: 1fr; gap: 24px; }
    .about-page { padding: 90px 20px 60px; }
    .games-page { padding: 90px 0 40px; }
    .page-footer { padding: 20px; flex-direction: column; }
}

/* ── Achievement Unlocked widget ────────────────────── */
.achievement {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px 14px 14px;
    background: rgba(12, 12, 12, 0.96);
    border: 1px solid rgba(255, 215, 0, 0.3);
    border-left: 3px solid #ffd700;
    border-radius: 14px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 32px rgba(255,215,0,0.06);
    text-decoration: none;
    color: inherit;
    max-width: 320px;
    /* Start off-screen to the right */
    transform: translateX(calc(100% + 40px));
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}
.achievement--visible {
    transform: translateX(0);
}
.achievement--hiding {
    transform: translateX(calc(100% + 40px));
    transition: transform 0.4s ease-in;
}
.achievement-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    line-height: 1;
    filter: drop-shadow(0 0 10px rgba(255,215,0,0.55));
    animation: ach-pulse 2s ease-in-out infinite;
}
@keyframes ach-pulse {
    0%,100% { filter: drop-shadow(0 0 8px rgba(255,215,0,0.5)); }
    50%      { filter: drop-shadow(0 0 18px rgba(255,215,0,0.9)); }
}
.achievement-body {
    flex: 1;
    min-width: 0;
}
.achievement-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffd700;
    margin-bottom: 3px;
}
.achievement-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.achievement-desc {
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 10px;
}
.achievement-cta {
    display: inline-block;
    padding: 5px 14px;
    background: #ffd700;
    color: #000;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: filter 0.2s, transform 0.2s;
}
.achievement:hover .achievement-cta {
    filter: brightness(1.1);
    transform: translateX(2px);
}
.achievement-close {
    flex-shrink: 0;
    background: transparent;
    border: none;
    color: #555;
    font-size: 0.75rem;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
    align-self: flex-start;
    transition: color 0.2s;
    border-radius: 4px;
}
.achievement-close:hover { color: #fff; }
@media (max-width: 480px) {
    .achievement { bottom: 16px; right: 16px; left: 16px; max-width: none; }
}

/* ── Achievement Unlocked widget ────────────────────────── */
.achievement {
    position: fixed;
    bottom: 24px;
    right: 24px;
    z-index: 2000;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 16px 14px 14px;
    background: rgba(12, 12, 12, 0.97);
    border: 1px solid rgba(255, 215, 0, 0.28);
    border-left: 3px solid #ffd700;
    border-radius: 14px;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 8px 40px rgba(0,0,0,0.7), 0 0 32px rgba(255,215,0,0.06);
    text-decoration: none;
    color: inherit;
    max-width: 320px;
    transform: translateX(calc(100% + 40px));
    transition: transform 0.55s cubic-bezier(0.34, 1.56, 0.64, 1);
    cursor: pointer;
}

.achievement--visible {
    transform: translateX(0);
}

.achievement--hiding {
    transform: translateX(calc(100% + 40px));
    transition: transform 0.4s ease-in;
}

.achievement-icon {
    font-size: 2.2rem;
    flex-shrink: 0;
    line-height: 1;
    animation: ach-pulse 2s ease-in-out infinite;
}

@keyframes ach-pulse {
    0%,100% { filter: drop-shadow(0 0 8px rgba(255,215,0,0.45)); }
    50%      { filter: drop-shadow(0 0 20px rgba(255,215,0,0.9)); }
}

.achievement-body {
    flex: 1;
    min-width: 0;
}

.achievement-label {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: #ffd700;
    margin-bottom: 3px;
}

.achievement-title {
    font-size: 0.98rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.achievement-desc {
    font-size: 0.78rem;
    color: #999;
    margin-bottom: 10px;
}

.achievement-cta {
    display: inline-block;
    padding: 5px 14px;
    background: #ffd700;
    color: #000;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    transition: filter 0.2s, transform 0.2s;
}

/* ── Games CTA row ─────────────────────────────── */
.games-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin: 20px 0 32px;
}

.games-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 22px;
    background: transparent;
    border: 1px solid rgba(255,215,0,0.35);
    border-radius: 999px;
    color: #ffd700;
    text-decoration: none;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    transition: background 0.2s, border-color 0.2s, transform 0.18s, box-shadow 0.2s;
}

.games-cta-btn:hover {
    background: rgba(255,215,0,0.1);
    border-color: #ffd700;
    transform: translateY(-2px);
    box-shadow: 0 4px 18px rgba(255,215,0,0.18);
}

@media (max-width: 600px) {
    .games-cta-row { flex-direction: column; }
    .games-cta-btn { justify-content: center; }
}

/* ── Game contact modal ────────────────────────── */
/* ── Game form — half-screen side panel ─────────── */
.gf-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.55);
    backdrop-filter: blur(4px);
    z-index: 3000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.35s ease;
}
.gf-overlay.is-open {
    opacity: 1;
    pointer-events: all;
}

.gf-modal {
    position: fixed;
    top: 0; right: 0;
    width: 50%;
    height: 100vh;
    background: #080808;
    border-left: 1px solid rgba(255,215,0,0.18);
    padding: 56px 48px 48px;
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform 0.45s cubic-bezier(0.34, 1.1, 0.64, 1);
    box-shadow: -24px 0 80px rgba(0,0,0,0.7);
}
.gf-overlay.is-open .gf-modal {
    transform: translateX(0);
}

.gf-close {
    position: absolute;
    top: 20px; right: 24px;
    background: transparent;
    border: none;
    color: #444;
    font-size: 1rem;
    cursor: pointer;
    padding: 6px 10px;
    border-radius: 6px;
    transition: color 0.2s;
}
.gf-close:hover { color: #fff; }

.gf-title {
    font-size: 2rem;
    font-weight: 900;
    letter-spacing: -1px;
    margin: 0 0 8px;
    color: #fff;
    text-transform: uppercase;
    line-height: 1.1;
}
.gf-sub {
    font-size: 0.85rem;
    color: #555;
    margin: 0 0 32px;
}

@media (max-width: 768px) {
    .gf-modal { width: 100%; border-left: none; padding: 56px 24px 32px; }
}

.gf-form { display: flex; flex-direction: column; gap: 18px; }

.gf-row { display: flex; flex-direction: column; gap: 18px; }
.gf-two { flex-direction: row; gap: 14px; }
.gf-two .gf-field { flex: 1; }

.gf-field { display: flex; flex-direction: column; gap: 7px; }

.gf-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #aaa;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}
.gf-req { color: #ffd700; }

.gf-input {
    background: #161616;
    border: 1px solid #282828;
    border-radius: 10px;
    color: #fff;
    font-size: 0.9rem;
    padding: 11px 14px;
    outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
    font-family: inherit;
    width: 100%;
    box-sizing: border-box;
}
.gf-input:focus {
    border-color: rgba(255,215,0,0.5);
    box-shadow: 0 0 0 3px rgba(255,215,0,0.08);
}
.gf-textarea { resize: vertical; min-height: 80px; }

/* Checkboxes */
.gf-checks {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.gf-check {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 0.88rem;
    color: #ccc;
}
.gf-check input[type=checkbox] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px; height: 18px;
    border: 1.5px solid #333;
    border-radius: 5px;
    background: #161616;
    cursor: pointer;
    flex-shrink: 0;
    transition: background 0.2s, border-color 0.2s;
    position: relative;
}
.gf-check input[type=checkbox]:checked {
    background: #ffd700;
    border-color: #ffd700;
}
.gf-check input[type=checkbox]:checked::after {
    content: '✓';
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    color: #000;
}

.gf-submit {
    margin-top: 6px;
    padding: 14px;
    background: #ffd700;
    color: #000;
    border: none;
    border-radius: 10px;
    font-size: 0.9rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    cursor: pointer;
    text-transform: uppercase;
    transition: filter 0.2s, transform 0.18s;
}
.gf-submit:hover { filter: brightness(1.1); transform: translateY(-1px); }
.gf-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }

@media (max-width: 520px) {
    .gf-modal { padding: 28px 20px 24px; }
    .gf-two { flex-direction: column; }
}
