

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --warden-black: #0a0a0a;
    --warden-gray: #1a1a1a;
    --warden-light-gray: #2a2a2a;
    --warden-white: #ffffff;
    --accent-purple: #7c3aed;
    --accent-purple-light: #c4b5fd;
    --accent-blue: #3b82f6;
    --accent-green: #16a34a;
    --accent-teal: #14b8a6;
    --accent-red: #dc2626;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--warden-black);
    color: var(--warden-white);
    line-height: 1.6;
    overflow-x: hidden;
}

/* Navigation */
nav {
    position: fixed;
    width: 100%;
    background-color: rgba(10, 10, 10, 0.98);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.5);
    z-index: 1000;
    transition: all 0.3s ease;
}

.nav-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 4.5rem;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    color: var(--warden-white);
    text-decoration: none;
    font-weight: 800;
    font-size: 1.25rem;
    letter-spacing: 1px;
}

.nav-logo:hover {
    color: var(--warden-white);
}

.nav-logo img {
    width: 2.5rem;
    height: 2.5rem;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: brightness(1);
}

.nav-logo:hover img {
    filter: brightness(1.3);
    transform: scale(1.15) rotate(5deg);
}

.nav-links {
    display: none;
    gap: 2.5rem;
}

.nav-links a {
    background: none;
    border: none;
    color: var(--warden-white);
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s ease;
    position: relative;
    padding: 0.5rem 0;
    opacity: 0.8;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    transition: width 0.3s ease;
}

.nav-links a:hover {
    color: var(--warden-white);
    opacity: 1;
}

.nav-links a:hover::after {
    width: 100%;
}

@media (min-width: 1024px) {
    .nav-links {
        display: flex;
    }
    .mobile-menu-btn {
        display: none;
    }
}

.mobile-menu-btn {
    display: block;
    background: none;
    border: none;
    color: var(--warden-white);
    cursor: pointer;
    padding: 0.5rem;
    transition: transform 0.3s ease;
}

.mobile-menu-btn:hover {
    transform: scale(1.1);
}

.mobile-menu-btn svg {
    width: 1.75rem;
    height: 1.75rem;
}

/* Mobile Menu */
#mobile-menu {
    display: none;
    background-color: var(--warden-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

#mobile-menu.show {
    display: block;
    animation: slideDown 0.3s ease;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.mobile-menu-content {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.mobile-menu-content a {
    display: block;
    padding: 1rem;
    color: var(--warden-white);
    text-decoration: none;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    font-weight: 500;
}

.mobile-menu-content a:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateX(5px);
}

/* Fox Glow Effect */
.fox-glow:hover {
    filter: drop-shadow(0 0 25px rgba(124, 58, 237, 0.4));
}

/* Sections */
.section {
    transition: opacity 0.3s ease;
    min-height: 100vh;
}

/* Home Section */
#home {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: 4.5rem;
    background: radial-gradient(circle at 50% 50%, rgba(124, 58, 237, 0.05) 0%, transparent 70%);
}

.home-content {
    text-align: center;
    padding: 2rem;
    max-width: 60rem;
}

.home-logo {
    width: 10rem;
    height: 10rem;
    margin: 0 auto 2.5rem;
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
    filter: drop-shadow(0 0 20px rgba(124, 58, 237, 0.2));
}

.home-logo:hover {
    filter: drop-shadow(0 0 40px rgba(124, 58, 237, 0.4));
    transform: scale(1.05);
}

.home-title {
    font-size: 3.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
    background: linear-gradient(135deg, #ffffff 0%, #d1d5db 50%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-transform: uppercase;
}

@media (min-width: 768px) {
    .home-title {
        font-size: 5rem;
    }
}

.home-subtitle {
    font-size: 1.5rem;
    color: #9ca3af;
    margin-bottom: 1rem;
    font-weight: 300;
}

.home-tagline {
    font-size: 1.125rem;
    color: #6b7280;
    margin-bottom: 2.5rem;
    font-style: italic;
}

@media (min-width: 768px) {
    .home-subtitle {
        font-size: 1.75rem;
    }
}

.cta-button {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    color: var(--warden-white);
    padding: 1rem 2.5rem;
    border-radius: 9999px;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform: scale(1);
    box-shadow: 0 4px 25px rgba(124, 58, 237, 0.3);
    letter-spacing: 0.5px;
    border: 2px solid transparent;
}

.cta-button:hover {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
    transform: scale(1.08) translateY(-2px);
    box-shadow: 0 8px 35px rgba(124, 58, 237, 0.4);
    border-color: rgba(255, 255, 255, 0.2);
}

.cta-button.secondary {
    background: transparent;
    border: 2px solid var(--accent-purple);
    color: var(--accent-purple);
    box-shadow: none;
}

.cta-button.secondary:hover {
    background: var(--accent-purple);
    color: var(--warden-white);
    box-shadow: 0 8px 35px rgba(124, 58, 237, 0.3);
}

/* About Section */
#about {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: linear-gradient(180deg, var(--warden-black) 0%, var(--warden-gray) 100%);
}

.about-container {
    max-width: 70rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.about-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3rem;
    align-items: center;
    margin-bottom: 4rem;
}

@media (min-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.about-image {
    background-color: var(--warden-light-gray);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.about-image:hover {
    box-shadow: 0 15px 40px rgba(124, 58, 237, 0.2), 0 0 30px rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
    transform: translateY(-5px);
}

.about-image img {
    width: 100%;
    max-width: 20rem;
    height: auto;
    margin: 0 auto;
    display: block;
    border-radius: 0.5rem;
}

.about-text {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    color: #d1d5db;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 2rem;
}

.stat-card {
    background-color: var(--warden-light-gray);
    padding: 2rem;
    border-radius: 1rem;
    text-align: center;
    transition: all 0.4s ease;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4), 0 0 25px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--warden-white);
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--warden-white), var(--accent-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    color: #9ca3af;
    font-size: 0.95rem;
    font-weight: 500;
}

/* Games Section */
#games {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: var(--warden-black);
}

.games-container {
    max-width: 90rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.games-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-blue) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.games-subtitle {
    color: #9ca3af;
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.125rem;
}

.games-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
}

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

@media (min-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.game-card {
    display: block;
    text-decoration: none;
    color: inherit;
    background-color: var(--warden-gray);
    border-radius: 1rem;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
}

.game-card:hover {
    transform: translateY(-15px);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.5), 0 0 50px rgba(124, 58, 237, 0.15);
    border-color: rgba(124, 58, 237, 0.3);
}

.game-card.coming-soon {
    opacity: 0.85;
}

.game-image-container {
    position: relative;
    height: 18rem;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.game-image-container.purple-blue {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
}

.game-image-container.green-teal {
    background: linear-gradient(135deg, var(--accent-green) 0%, var(--accent-teal) 100%);
}

.game-image-container.orange-red {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-red) 100%);
}

.game-image-container.blue-purple {
    background: linear-gradient(135deg, var(--accent-blue) 0%, var(--accent-purple) 100%);
}

.game-emoji {
    font-size: 4.5rem;
    z-index: 10;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    z-index: 10;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.game-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.game-overlay button {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: var(--warden-white);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    font-size: 0.95rem;
}

.game-overlay button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.game-overlay a,
.game-overlay span {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: var(--warden-white);
    padding: 0.75rem 2rem;
    border-radius: 9999px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.4);
    font-size: 0.95rem;
}

.game-card:hover .game-overlay a,
.game-card:hover .game-overlay span {
    transform: scale(1.1);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.6);
}

.game-card:hover .game-overlay {
    opacity: 1;
}

/* Touch / no-hover devices can't reveal the overlay on hover, so keep a
   faint "View Details" pill visible over the image. The whole card is the
   link either way. */
@media (hover: none) {
    .game-overlay {
        opacity: 1;
        background-color: rgba(0, 0, 0, 0.35);
        align-items: flex-end;
        padding-bottom: 1.25rem;
    }
    .game-overlay a,
    .game-overlay span {
        font-size: 0.85rem;
        padding: 0.55rem 1.5rem;
    }
}

.coming-soon-badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: rgba(0, 0, 0, 0.7);
    color: var(--warden-white);
    padding: 0.5rem 1rem;
    border-radius: 9999px;
    font-size: 0.85rem;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
}

.game-content {
    padding: 1.75rem;
}

.game-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--warden-white);
}

.game-description {
    color: #9ca3af;
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
    line-height: 1.6;
}

.game-tags {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.game-tag {
    padding: 0.35rem 0.875rem;
    background-color: rgba(124, 58, 237, 0.28);
    border-radius: 9999px;
    font-size: 0.8rem;
    line-height: 1.25;
    color: var(--accent-purple-light);
    font-weight: 600;
    border: 1px solid rgba(139, 92, 246, 0.55);
    white-space: nowrap;
}

.game-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.85rem;
    color: #6b7280;
}

/* Game detail page */
.game-detail-page {
    min-height: 100vh;
    padding: 8rem 2rem 4rem;
    background: radial-gradient(circle at top, rgba(124, 58, 237, 0.16), transparent 42%), var(--warden-black);
}

.game-detail-container {
    max-width: 72rem;
    margin: 0 auto;
}

.game-back-link {
    display: inline-block;
    margin-bottom: 2rem;
    color: #9ca3af;
    text-decoration: none;
    transition: color 0.3s ease;
}

.game-back-link:hover {
    color: var(--warden-white);
}

.game-detail-hero {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 3rem;
    align-items: center;
}

.game-detail-art {
    width: 100%;
    max-width: 28rem;
    aspect-ratio: 1;
    object-fit: cover;
    margin: 0 auto;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45), 0 0 45px rgba(124, 58, 237, 0.2);
}

.game-detail-eyebrow {
    color: var(--accent-blue);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.game-detail-title {
    margin: 0.75rem 0 1rem;
    font-size: clamp(2.25rem, 6vw, 4.5rem);
    line-height: 1.05;
}

.game-detail-description {
    max-width: 38rem;
    color: #c4c9d4;
    font-size: 1.15rem;
    line-height: 1.8;
}

.game-detail-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.75rem;
}

/* Screenshot carousel. Works as a swipeable scroll-snap strip with no JS;
   gallery.js adds prev/next buttons, dots and a shared caption. */
.carousel {
    position: relative;
    margin-top: 2rem;
}

.carousel-frame {
    position: relative;
}

.carousel-track {
    display: flex;
    gap: 1.5rem;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
}

.carousel-track::-webkit-scrollbar {
    display: none;
}

.carousel-slide {
    flex: 0 0 100%;
    scroll-snap-align: center;
    margin: 0;
}

.carousel-slide img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 26rem;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.carousel-caption {
    margin-top: 0.85rem;
    color: #6b7280;
    font-size: 0.85rem;
    text-align: center;
    min-height: 1.2em;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 2.75rem;
    height: 2.75rem;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 9999px;
    background: rgba(10, 10, 10, 0.65);
    color: var(--warden-white);
    font-size: 1.5rem;
    line-height: 1;
    cursor: pointer;
    backdrop-filter: blur(6px);
    transition: background 0.2s ease, transform 0.2s ease;
    z-index: 2;
}

.carousel-btn:hover {
    background: rgba(124, 58, 237, 0.75);
}

.carousel-btn:disabled {
    opacity: 0.3;
    cursor: default;
}

.carousel-prev {
    left: 0.75rem;
}

.carousel-next {
    right: 0.75rem;
}

.carousel-dots {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.carousel-dot {
    width: 0.5rem;
    height: 0.5rem;
    padding: 0;
    border: none;
    border-radius: 9999px;
    background: rgba(255, 255, 255, 0.25);
    cursor: pointer;
    transition: width 0.2s ease, background 0.2s ease;
}

.carousel-dot[aria-current="true"] {
    width: 1.5rem;
    background: var(--accent-purple);
}

.game-detail-section {
    margin-top: 7rem;
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-detail-section-heading {
    max-width: 42rem;
    margin-bottom: 2rem;
}

.game-detail-section h2 {
    margin-top: 0.5rem;
    font-size: clamp(1.8rem, 4vw, 3rem);
    line-height: 1.15;
}

.game-detail-copy-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2rem;
    max-width: 62rem;
    color: #c4c9d4;
    font-size: 1.05rem;
    line-height: 1.8;
}

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

.game-detail-feature {
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
}

.game-detail-feature h3 {
    margin-bottom: 0.75rem;
    color: var(--warden-white);
    font-size: 1.1rem;
}

.game-detail-feature p {
    color: #9ca3af;
    line-height: 1.7;
}

.game-detail-facts {
    padding-bottom: 2rem;
}

.game-detail-fact-list {
    max-width: 48rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-detail-fact-list div {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
    padding: 1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-detail-fact-list dt {
    color: #9ca3af;
}

.game-detail-fact-list dd {
    color: var(--warden-white);
    text-align: right;
}

.game-detail-content-note {
    margin-top: 1.25rem;
    max-width: 48rem;
    color: #9ca3af;
    font-size: 0.95rem;
    line-height: 1.6;
}

.sysreq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 3rem;
    max-width: 66rem;
}

.sysreq-tier {
    color: var(--warden-white);
    font-size: 1.05rem;
    margin-bottom: 0.25rem;
}

.sysreq-grid .game-detail-fact-list {
    max-width: none;
}

/* Keep the label next to its value instead of pushing them to opposite
   edges of the card (the wide space-between reads as disconnected). */
@media (min-width: 768px) {
    .sysreq-col .game-detail-fact-list div {
        justify-content: flex-start;
        gap: 1rem;
    }

    .sysreq-col .game-detail-fact-list dt {
        flex: 0 0 6.5rem;
    }

    .sysreq-col .game-detail-fact-list dd {
        flex: 1;
        text-align: left;
    }
}

@media (max-width: 767px) {
    .sysreq-grid {
        grid-template-columns: 1fr;
    }
}

.game-detail-faq details {
    max-width: 48rem;
    padding: 1.1rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.game-detail-faq details:first-of-type {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.game-detail-faq summary {
    cursor: pointer;
    list-style: none;
    color: var(--warden-white);
    font-weight: 600;
    font-size: 1.05rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
}

.game-detail-faq summary::-webkit-details-marker {
    display: none;
}

.game-detail-faq summary::after {
    content: "+";
    color: var(--accent-purple);
    font-size: 1.4rem;
    line-height: 1;
    transition: transform 0.2s ease;
}

.game-detail-faq details[open] summary::after {
    transform: rotate(45deg);
}

.game-detail-faq details p {
    margin-top: 0.85rem;
    color: #9ca3af;
    line-height: 1.7;
}

/* Devlog link-out card (CSP blocks embedding the player, so this opens YouTube). */
.devlog-card {
    position: relative;
    display: block;
    max-width: 40rem;
    border-radius: 1rem;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    text-decoration: none;
}

.devlog-card img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    filter: brightness(0.5);
    transition: filter 0.3s ease, transform 0.4s ease;
}

.devlog-card:hover img,
.devlog-card:focus-visible img {
    filter: brightness(0.68);
    transform: scale(1.03);
}

.devlog-play {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 4rem;
    height: 4rem;
    display: grid;
    place-items: center;
    border-radius: 9999px;
    background: rgba(124, 58, 237, 0.92);
    color: #fff;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.45);
    transition: transform 0.2s ease;
}

.devlog-card:hover .devlog-play {
    transform: translate(-50%, -50%) scale(1.08);
}

.devlog-play svg {
    width: 1.6rem;
    height: 1.6rem;
    margin-left: 0.2rem;
}

.devlog-label {
    position: absolute;
    left: 1.25rem;
    bottom: 1rem;
    color: #fff;
    font-weight: 600;
    font-size: 0.95rem;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.7);
}

@media (max-width: 767px) {
    .game-detail-hero {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .game-detail-art {
        max-width: 20rem;
    }

    .game-detail-copy-grid,
    .game-detail-feature-grid {
        grid-template-columns: 1fr;
    }

    .game-detail-section {
        margin-top: 4rem;
    }

    .carousel-btn {
        width: 2.25rem;
        height: 2.25rem;
        font-size: 1.25rem;
    }

    .game-detail-fact-list div {
        align-items: flex-start;
        flex-direction: column;
        gap: 0.25rem;
    }

    .game-detail-fact-list dd {
        text-align: left;
    }
}

.release-date {
    font-weight: 500;
}

.platforms {
    font-weight: 600;
    color: #9ca3af;
}

.price {
    font-weight: 700;
    color: var(--accent-purple);
}

/* DevLog Section */
#devlog {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: linear-gradient(180deg, var(--warden-gray) 0%, var(--warden-black) 100%);
}

.devlog-container {
    max-width: 70rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.devlog-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-green) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.devlog-subtitle {
    color: #9ca3af;
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.125rem;
}

.devlog-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

.devlog-post {
    background-color: var(--warden-light-gray);
    padding: 2rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.3s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
}

.devlog-post:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 0 20px rgba(22, 163, 74, 0.1);
    border-color: rgba(22, 163, 74, 0.3);
}

.devlog-post.featured {
    border-left: 4px solid var(--accent-green);
    background: linear-gradient(135deg, var(--warden-light-gray) 0%, rgba(22, 163, 74, 0.05) 100%);
}

.devlog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.devlog-date {
    color: #6b7280;
    font-size: 0.9rem;
    font-weight: 500;
}

.devlog-category {
    background-color: rgba(22, 163, 74, 0.15);
    color: var(--accent-green);
    padding: 0.35rem 0.875rem;
    border-radius: 9999px;
    font-size: 0.8rem;
    font-weight: 600;
    border: 1px solid rgba(22, 163, 74, 0.2);
}

.devlog-post-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--warden-white);
    line-height: 1.4;
}

.devlog-excerpt {
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 1.25rem;
}

.read-more {
    color: var(--accent-green);
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.read-more:hover {
    color: var(--warden-white);
    transform: translateX(5px);
}

.devlog-cta {
    text-align: center;
}

/* Community Section */
#community {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: var(--warden-black);
}

.community-container {
    max-width: 70rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.community-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.community-subtitle {
    color: #9ca3af;
    text-align: center;
    margin-bottom: 4rem;
    font-size: 1.125rem;
}

.community-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 4rem;
}

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

.community-card {
    background-color: var(--warden-gray);
    padding: 2.5rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    transition: all 0.4s ease;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.community-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3), 0 0 25px rgba(124, 58, 237, 0.1);
    border-color: rgba(124, 58, 237, 0.3);
}

.community-icon {
    font-size: 3rem;
    margin-bottom: 1.5rem;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.community-card-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--warden-white);
}

.community-card-desc {
    color: #9ca3af;
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.community-link {
    color: var(--accent-purple);
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    display: inline-block;
}

.community-link:hover {
    color: var(--warden-white);
    transform: translateX(5px);
}

.newsletter-signup {
    background: linear-gradient(135deg, var(--warden-light-gray) 0%, rgba(124, 58, 237, 0.05) 100%);
    padding: 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(124, 58, 237, 0.2);
    text-align: center;
}

.newsletter-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--warden-white);
}

.newsletter-desc {
    color: #9ca3af;
    font-size: 1rem;
    margin-bottom: 2rem;
    max-width: 40rem;
    margin-left: auto;
    margin-right: auto;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
    max-width: 35rem;
    margin: 0 auto;
}

@media (max-width: 640px) {
    .newsletter-form {
        flex-direction: column;
    }
}

.newsletter-input {
    flex: 1;
    padding: 1rem 1.5rem;
    background-color: var(--warden-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--warden-white);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.newsletter-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.2);
}

.newsletter-button {
    padding: 1rem 2rem;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: var(--warden-white);
    border: none;
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.newsletter-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(124, 58, 237, 0.4);
}

/* Contact Section */
#contact {
    padding-top: 8rem;
    padding-bottom: 4rem;
    background: linear-gradient(180deg, var(--warden-black) 0%, var(--warden-gray) 100%);
}

.contact-container {
    max-width: 50rem;
    margin: 0 auto;
    padding: 0 2rem;
}

.contact-title {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 1rem;
    text-align: center;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.contact-subtitle {
    color: #9ca3af;
    text-align: center;
    margin-bottom: 3rem;
    font-size: 1.125rem;
}

.contact-form-wrapper {
    background-color: var(--warden-light-gray);
    border-radius: 1rem;
    padding: 2.5rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

@media (min-width: 640px) {
    .form-row {
        grid-template-columns: 1fr 1fr;
    }
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.form-label {
    display: block;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--warden-white);
}

.form-input,
.form-textarea,
select.form-input {
    padding: 0.875rem 1.25rem;
    background-color: var(--warden-black);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 0.5rem;
    color: var(--warden-white);
    font-family: system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-input:focus,
.form-textarea:focus,
select.form-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    background-color: rgba(26, 26, 26, 0.8);
    box-shadow: 0 0 20px rgba(124, 58, 237, 0.15);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

select.form-input {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%239ca3af'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    background-size: 1.25rem;
    padding-right: 3rem;
}

.form-submit {
    width: 100%;
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    color: var(--warden-white);
    padding: 1rem;
    border-radius: 0.5rem;
    font-weight: 700;
    border: none;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    letter-spacing: 0.5px;
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
    font-size: 1.05rem;
    margin-top: 1rem;
}

.form-submit:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.contact-footer {
    margin-top: 2.5rem;
    padding-top: 2.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    color: #9ca3af;
}

.contact-email {
    color: var(--accent-purple);
    margin-top: 0.75rem;
    display: inline-block;
    font-weight: 600;
    font-size: 1.1rem;
    transition: all 0.3s ease;
}

.contact-email:hover {
    color: var(--warden-white);
    transform: scale(1.05);
}

/* Footer */
footer {
    background-color: var(--warden-gray);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding: 3rem 2rem;
    box-shadow: 0 -2px 20px rgba(0, 0, 0, 0.3);
}

.footer-container {
    max-width: 90rem;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-weight: 800;
    font-size: 1.25rem;
}

.footer-logo img {
    width: 2.5rem;
    height: 2.5rem;
}

.footer-copyright {
    color: #9ca3af;
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

.footer-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    font-weight: 500;
    letter-spacing: 0.3px;
    position: relative;
    font-size: 0.95rem;
}

.footer-links a::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, var(--accent-purple), var(--accent-blue));
    transition: width 0.3s ease;
}

.footer-links a:hover {
    color: var(--warden-white);
}

.footer-links a:hover::after {
    width: 100%;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    font-size: 1.5rem;
}

.social-links a {
    color: #9ca3af;
    text-decoration: none;
    transition: all 0.3s ease;
    filter: grayscale(100%);
}

.social-links svg {
    width: 1.5rem;
    height: 1.5rem;
    display: block;
}

.social-links a:hover {
    color: var(--warden-white);
    filter: grayscale(0%);
    transform: scale(1.2) rotate(5deg);
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

section {
    animation: fadeIn 0.6s ease-out;
}

/* Utility Classes */
.text-gradient {
    background: linear-gradient(135deg, var(--accent-purple), var(--accent-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .home-title {
        font-size: 2.5rem;
    }
    
    .about-title,
    .games-title,
    .devlog-title,
    .community-title,
    .contact-title {
        font-size: 2rem;
    }
    
    .stat-value {
        font-size: 2rem;
    }
}

/* Member area: login page + downloads */
.auth-page {
    min-height: 100vh;
    padding: 8rem 1.5rem 4rem;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    background: linear-gradient(180deg, var(--warden-gray) 0%, var(--warden-black) 100%);
}

.auth-card,
.downloads-card {
    background-color: var(--warden-light-gray);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.35);
}

.auth-card {
    width: 100%;
    max-width: 26rem;
}

.auth-title,
.downloads-title {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 0.75rem;
    background: linear-gradient(135deg, #ffffff 0%, var(--accent-purple) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.auth-subtitle,
.downloads-subtitle {
    color: #9ca3af;
    font-size: 0.95rem;
    margin-bottom: 1.5rem;
}

.auth-error {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.45);
    color: #fca5a5;
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
}

.auth-form {
    display: flex;
    flex-direction: column;
}

.auth-label {
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: #9ca3af;
    margin-bottom: 0.4rem;
}

.auth-input {
    background-color: var(--warden-black);
    color: var(--warden-white);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    margin-bottom: 1.25rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.auth-input:focus {
    outline: none;
    border-color: var(--accent-purple);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.25);
}

.auth-submit {
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    color: var(--warden-white);
    border: none;
    border-radius: 0.5rem;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.auth-submit:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    transform: translateY(-2px);
    box-shadow: 0 8px 30px rgba(124, 58, 237, 0.4);
}

.downloads-card {
    width: 100%;
    max-width: 56rem;
}

.downloads-latest-line {
    color: var(--accent-teal);
    font-weight: 600;
    margin-bottom: 1.5rem;
}

.downloads-list {
    display: grid;
    gap: 1.25rem;
}

.download-card {
    background-color: rgba(10, 10, 10, 0.55);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 0.75rem;
    padding: 1.5rem;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

.download-card:hover {
    border-color: rgba(124, 58, 237, 0.4);
    transform: translateY(-2px);
}

.download-card-head {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.download-version {
    font-size: 1.2rem;
    font-weight: 800;
}

.download-latest {
    background: linear-gradient(135deg, var(--accent-green), var(--accent-teal));
    color: var(--warden-white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
}

.download-platform {
    color: #9ca3af;
    font-size: 0.85rem;
    font-weight: 600;
}

.download-date {
    color: #6b7280;
    font-size: 0.85rem;
    margin-bottom: 0.5rem;
}

.download-notes {
    color: #9ca3af;
    font-size: 0.95rem;
    margin-bottom: 1rem;
}

.download-actions {
    display: flex;
}

.download-btn {
    display: inline-block;
    background: linear-gradient(135deg, var(--accent-purple) 0%, var(--accent-blue) 100%);
    color: var(--warden-white);
    text-decoration: none;
    font-weight: 700;
    border-radius: 0.5rem;
    padding: 0.6rem 1.25rem;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    box-shadow: 0 4px 20px rgba(124, 58, 237, 0.3);
}

.download-btn:hover {
    background: linear-gradient(135deg, var(--accent-blue), var(--accent-purple));
    transform: translateY(-2px);
}

.logout-link {
    color: var(--accent-red);
}

.download-btn-locked {
    opacity: 0.65;
    border: 1px dashed rgba(255, 255, 255, 0.35);
    box-shadow: none;
}

.activation-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
}

.activation-badge.activated {
    background: rgba(40, 167, 69, 0.15);
    color: #4cd964;
    border: 1px solid rgba(40, 167, 69, 0.4);
}

.activation-badge.locked {
    background: rgba(255, 159, 10, 0.12);
    color: #ffa90a;
    border: 1px solid rgba(255, 159, 10, 0.4);
}

.activation-badge.locked a {
    color: inherit;
    text-decoration: underline;
}

.new-code-box {
    margin: 1.25rem 0;
    padding: 1rem 1.25rem;
    border: 1px solid var(--accent-purple);
    border-radius: 8px;
    background: rgba(124, 58, 237, 0.08);
}

.new-code-label {
    margin: 0 0 0.5rem;
    font-size: 0.85rem;
    opacity: 0.8;
}

.new-code-value {
    margin: 0;
    font-family: 'Courier New', monospace;
    font-size: 1.3rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--accent-purple);
    user-select: all;
}

.admin-subheading {
    margin-top: 2rem;
    font-size: 1.1rem;
}

.codes-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 0.9rem;
}

.codes-table th,
.codes-table td {
    text-align: left;
    padding: 0.5rem 0.75rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.codes-table th {
    opacity: 0.6;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.code-prefix {
    font-family: 'Courier New', monospace;
    font-weight: 700;
}

.code-status.available {
    color: #4cd964;
}

.code-status.redeemed {
    color: #ffa90a;
}

@media (max-width: 768px) {
    .auth-card,
    .downloads-card {
        padding: 1.5rem;
    }
}