/* ========================================
   Twimler — Dark Gaming Template
   ======================================== */

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

:root {
    --bg-primary: #0f1923;
    --bg-secondary: #1a2634;
    --bg-card: #1e2d3d;
    --bg-card-hover: #253545;
    --accent: #4fc3f7;
    --accent-dark: #0288d1;
    --accent-glow: rgba(79, 195, 247, 0.15);
    --text: #e0e6ed;
    --text-muted: #8899a6;
    --text-bright: #ffffff;
    --border: rgba(255, 255, 255, 0.08);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
    --transition: 0.3s ease;
    --max-width: 1200px;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 16px;
    line-height: 1.7;
    color: var(--text);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    color: var(--text-bright);
}

ul {
    list-style: none;
}

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(15, 25, 35, 0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 72px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
}

.logo-img {
    height: 50px;
    width: auto;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-bright);
    letter-spacing: -0.5px;
}

.main-nav ul {
    display: flex;
    gap: 4px;
}

.main-nav a {
    display: block;
    padding: 10px 20px;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.main-nav a:hover {
    color: var(--text-bright);
}

.main-nav a.active {
    color: var(--text-bright);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 1001;
}

.hamburger,
.hamburger::before,
.hamburger::after {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-bright);
    border-radius: 2px;
    transition: all var(--transition);
}

.hamburger {
    position: relative;
}

.hamburger::before,
.hamburger::after {
    content: '';
    position: absolute;
    left: 0;
}

.hamburger::before { top: -7px; }
.hamburger::after { top: 7px; }

.mobile-menu-toggle.active .hamburger { background: transparent; }
.mobile-menu-toggle.active .hamburger::before { top: 0; transform: rotate(45deg); }
.mobile-menu-toggle.active .hamburger::after { top: 0; transform: rotate(-45deg); }

/* --- Buttons --- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 28px;
    font-size: 0.95rem;
    font-weight: 700;
    border-radius: var(--radius);
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: var(--bg-primary);
}

.btn-primary:hover {
    background: var(--text-bright);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(79, 195, 247, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--text-bright);
    border: 2px solid var(--border);
}

.btn-outline:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

/* --- Store Badges --- */
.store-badges {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.store-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 20px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-bright);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: var(--radius-sm);
    transition: all var(--transition);
}

.store-badge:hover {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

.store-badge svg {
    flex-shrink: 0;
}

/* --- Home Hero --- */
.home-hero {
    position: relative;
    margin-top: 72px;
    height: 85vh;
    min-height: 500px;
    max-height: 800px;
    overflow: hidden;
    display: flex;
    align-items: center;
}

.home-hero-bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.home-hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.home-hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(135deg, rgba(15, 25, 35, 0.92) 0%, rgba(15, 25, 35, 0.6) 50%, rgba(15, 25, 35, 0.75) 100%);
}

.home-hero-content {
    position: relative;
    z-index: 2;
}

.home-hero-text {
    max-width: 580px;
}

.home-hero-label {
    display: inline-block;
    padding: 5px 14px;
    font-size: 0.78rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--accent);
    background: var(--accent-glow);
    border: 1px solid rgba(79, 195, 247, 0.25);
    border-radius: 20px;
    margin-bottom: 20px;
}

.home-hero-text h1 {
    font-size: 3.5rem;
    font-weight: 900;
    color: var(--text-bright);
    line-height: 1.1;
    margin-bottom: 20px;
    letter-spacing: -1px;
}

.text-glow {
    color: var(--accent);
    text-shadow: 0 0 30px rgba(79, 195, 247, 0.4);
}

.home-hero-desc {
    font-size: 1.15rem;
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 32px;
}

.home-hero-buttons {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}

/* --- Home Games Section --- */
.home-games {
    padding: 80px 0;
}

.home-section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 32px;
}

.home-section-header h2 {
    font-size: 1.8rem;
    font-weight: 900;
    color: var(--text-bright);
}

.view-all-link {
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--accent);
    transition: color var(--transition);
}

.view-all-link:hover {
    color: var(--text-bright);
}

.home-games-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.home-game-tile {
    display: block;
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
    text-decoration: none;
}

.home-game-tile:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.home-game-tile-img {
    width: 100%;
    aspect-ratio: 1024 / 500;
    overflow: hidden;
}

.home-game-tile-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.home-game-tile:hover .home-game-tile-img img {
    transform: scale(1.05);
}

.home-game-tile-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
}

.home-game-tile-icon {
    width: 46px;
    height: 46px;
    border-radius: 10px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.home-game-tile-info h3 {
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--text-bright);
    line-height: 1.2;
    margin-bottom: 0;
}

.home-game-tile-cat {
    font-size: 0.72rem;
    color: var(--text-muted);
    font-weight: 500;
    line-height: 1;
    margin-top: -2px;
}

/* --- Home About Section --- */
.home-about {
    padding: 80px 0;
    border-top: 1px solid var(--border);
}

.home-about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.home-about-text h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-bright);
    margin-bottom: 16px;
}

.home-about-text p {
    color: var(--text-muted);
    line-height: 1.7;
    margin-bottom: 14px;
}

.home-about-text .btn {
    margin-top: 12px;
}

.home-about-stats {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 28px 20px;
    text-align: center;
    transition: all var(--transition);
}

.stat-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.stat-number {
    display: block;
    font-size: 2rem;
    font-weight: 900;
    color: var(--accent);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 500;
}

/* --- Home CTA --- */
.home-cta {
    padding: 0 0 80px;
}

.home-cta-box {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-secondary) 100%);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 60px 40px;
    text-align: center;
}

.home-cta-box h2 {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-bright);
    margin-bottom: 10px;
}

.home-cta-box p {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 24px;
}

.feature-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    transition: all var(--transition);
}

.feature-card:hover {
    border-color: var(--accent);
    background: var(--bg-card-hover);
    transform: translateY(-2px);
}

.feature-card h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 6px;
}

.feature-card p {
    font-size: 0.82rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* --- Games Grid --- */
.games-section {
    padding: 100px 0 80px;
    margin-top: 72px;
}

.games-section .section-header {
    margin-bottom: 40px;
}

.section-title {
    font-size: 2rem;
    font-weight: 900;
    color: var(--text-bright);
    margin-bottom: 24px;
}

/* Genre Filter */
.genre-filter {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.genre-filter .filter-label {
    font-size: 1.1rem;
    font-weight: 800;
    color: var(--text-bright);
}

.genre-filter button {
    padding: 8px 20px;
    font-size: 0.9rem;
    font-weight: 600;
    font-family: inherit;
    color: var(--text-muted);
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all var(--transition);
}

.genre-filter button:hover {
    color: var(--text-bright);
    border-color: var(--accent);
}

.genre-filter button.active {
    background: var(--accent);
    color: var(--bg-primary);
    border-color: var(--accent);
}

/* Game Cards */
.games-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.game-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: var(--bg-card);
    border: 1px solid var(--border);
    transition: all var(--transition);
    cursor: pointer;
    text-decoration: none;
    display: block;
}

.game-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
    border-color: var(--accent);
}

.game-card-poster {
    width: 100%;
    aspect-ratio: 1024 / 500;
    overflow: hidden;
}

.game-card-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition);
}

.game-card:hover .game-card-poster img {
    transform: scale(1.05);
}

.game-card-info {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px;
}

.game-card-icon {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.game-card-meta h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.game-card-badges {
    display: flex;
    gap: 8px;
}

.game-card-badges .mini-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 10px;
    font-size: 0.7rem;
    font-weight: 600;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.game-card-badges .mini-badge svg {
    width: 12px;
    height: 12px;
}

/* Uniform grid */
.games-grid-uniform {
    grid-template-columns: repeat(2, 1fr);
}

.game-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
}

.game-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 16px;
}

.game-card-left {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.game-card-left h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--text-bright);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.game-card-play {
    flex-shrink: 0;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.8rem;
}

/* --- Individual Game Page --- */
.game-page-hero {
    margin-top: 72px;
    position: relative;
}

.game-page-banner {
    width: 100%;
    height: 400px;
    overflow: hidden;
    position: relative;
}

.game-page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.game-page-banner::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 70%;
    background: linear-gradient(to top, var(--bg-primary), transparent);
}

.game-page-content {
    padding: 40px 0 80px;
}

.game-page-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: start;
}

.game-page-title {
    display: flex;
    align-items: center;
    gap: 16px;
}

.game-page-icon {
    width: 80px;
    height: 80px;
    border-radius: 18px;
    flex-shrink: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
}

.game-page-info h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-bright);
    margin-bottom: 0;
}

.game-page-info .game-tagline {
    font-size: 1.1rem;
    color: var(--accent);
    font-weight: 600;
    margin-bottom: 20px;
}

.game-page-info .game-desc {
    color: var(--text-muted);
    line-height: 1.8;
    margin-top: 16px;
    margin-bottom: 28px;
}

.game-page-features h2 {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 20px;
}

/* --- Page Hero (About, Privacy, Terms, Contact) --- */
.page-hero {
    padding: 120px 0 40px;
    text-align: center;
}

.page-hero h1 {
    font-size: 2.5rem;
    font-weight: 900;
    color: var(--text-bright);
    margin-bottom: 12px;
}

.page-subtitle {
    color: var(--text-muted);
    font-size: 1.05rem;
}

/* --- About Page --- */
.about-section {
    padding: 40px 0 80px;
}

.about-grid {
    max-width: 800px;
    margin: 0 auto;
}

.about-block {
    margin-bottom: 48px;
}

.about-intro {
    display: flex;
    gap: 40px;
    align-items: center;
}

.about-intro-text {
    flex: 1;
}

.about-intro-img {
    flex-shrink: 0;
    width: 200px;
}

.about-intro-img img {
    width: 100%;
    height: auto;
    border-radius: var(--radius);
    filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.4));
}

/* --- Our Story Section --- */
.about-story h2 {
    margin-bottom: 28px;
}

.story-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 32px;
    align-items: center;
    margin-bottom: 36px;
}

.story-grid-reverse {
    grid-template-columns: 1fr 1.2fr;
    margin-bottom: 0;
}

.story-text p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.story-text p:last-child {
    margin-bottom: 0;
}

.story-image {
    position: relative;
}

.story-image img {
    width: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.story-image:hover img {
    transform: scale(1.03);
}

.story-caption {
    display: block;
    font-size: 0.72rem;
    color: var(--text-muted);
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* --- About Location --- */
.about-location {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    min-height: 300px;
    display: flex;
    align-items: center;
}

.about-location-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.about-location:hover .about-location-bg {
    transform: scale(1.05);
}

.about-location-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(15, 25, 35, 0.88) 0%, rgba(15, 25, 35, 0.7) 50%, rgba(15, 25, 35, 0.15) 100%);
}

.about-location-text {
    position: relative;
    z-index: 1;
    padding: 40px;
    max-width: 55%;
}

.about-location-text h2 {
    margin-bottom: 12px;
}

.about-location-text p {
    margin-bottom: 0;
}

@media (max-width: 768px) {
    .about-location-overlay {
        background: linear-gradient(180deg, rgba(15, 25, 35, 0.85) 0%, rgba(15, 25, 35, 0.7) 100%);
    }

    .about-location-text {
        max-width: 100%;
        padding: 32px 24px;
    }

    .about-location {
        min-height: 250px;
    }
}

.about-block h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 16px;
}

.about-block p {
    color: var(--text-muted);
    font-size: 1rem;
    margin-bottom: 14px;
    line-height: 1.7;
}

/* --- Careers Section --- */
.careers-section {
    padding: 40px 0 80px;
}

.careers-section .container {
    max-width: 800px;
    margin: 0 auto;
}

.careers-image {
    margin-bottom: 40px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    border: 1px solid var(--border);
}

.careers-image img {
    width: 100%;
    height: auto;
    display: block;
}

.careers-notice {
    text-align: center;
    padding: 48px 32px;
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
}

.careers-notice-icon {
    color: var(--accent);
    margin-bottom: 20px;
}

.careers-notice h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 16px;
}

.careers-notice p {
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 14px;
}

.careers-notice p:last-child {
    margin-bottom: 0;
}

.careers-notice a {
    color: var(--accent);
    text-decoration: none;
    font-weight: 600;
    transition: color var(--transition);
}

.careers-notice a:hover {
    color: var(--accent-hover);
}

.values-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-top: 20px;
}

.value-card {
    padding: 24px;
    background: var(--bg-card);
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: all var(--transition);
}

.value-card:hover {
    border-color: var(--accent);
    transform: translateY(-3px);
}

.value-icon {
    color: var(--accent);
    margin-bottom: 14px;
}

.value-card h3 {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 6px;
}

.value-card p {
    font-size: 0.88rem;
    color: var(--text-muted);
    margin: 0;
}

/* --- Legal Pages --- */
.legal-section {
    padding: 20px 0 80px;
}

.legal-content {
    max-width: 800px;
    margin: 0 auto;
}

.legal-content h2 {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-top: 36px;
    margin-bottom: 14px;
    padding-top: 20px;
    border-top: 1px solid var(--border);
}

.legal-content h2:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.legal-content h3 {
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-bright);
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-content p {
    color: var(--text-muted);
    margin-bottom: 14px;
}

.legal-content ul {
    margin-bottom: 14px;
    padding-left: 24px;
}

.legal-content ul li {
    color: var(--text-muted);
    margin-bottom: 8px;
    list-style: disc;
}

/* --- Contact Page --- */
.contact-section {
    padding: 20px 0 80px;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.3fr;
    gap: 60px;
    max-width: 900px;
    margin: 0 auto;
}

.contact-info h2 {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--text-bright);
    margin-bottom: 14px;
}

.contact-info > p {
    color: var(--text-muted);
    margin-bottom: 28px;
}

.contact-method {
    display: flex;
    gap: 14px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-method svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}

.contact-method h3 {
    font-size: 0.9rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 2px;
}

.contact-method p,
.contact-method a {
    font-size: 0.88rem;
    color: var(--text-muted);
}

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

.form-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.form-group label {
    font-size: 0.88rem;
    font-weight: 600;
    color: var(--text);
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 12px 16px;
    font-size: 0.95rem;
    font-family: inherit;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    background: var(--bg-card);
    color: var(--text);
    transition: border-color var(--transition);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-glow);
}

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

.form-success {
    text-align: center;
    padding: 60px 24px;
}

.form-success svg {
    color: var(--accent);
    margin-bottom: 20px;
}

.form-success h2 {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-bottom: 10px;
}

.form-success p {
    color: var(--text-muted);
}

.form-errors {
    background: rgba(231, 76, 60, 0.15);
    border: 1px solid rgba(231, 76, 60, 0.4);
    border-radius: var(--radius-sm);
    padding: 14px 18px;
    margin-bottom: 16px;
}

.form-errors p {
    color: #e74c3c;
    font-size: 0.88rem;
    margin-bottom: 4px;
}

.form-errors p:last-child {
    margin-bottom: 0;
}

/* --- Social Icons --- */
.social-icons {
    display: flex;
    gap: 10px;
    align-items: center;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
    transition: all var(--transition);
}

.social-icon:hover {
    background: var(--accent);
    color: var(--bg-primary);
    transform: translateY(-2px);
}

.game-social-heading {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--text-bright);
    margin-top: 24px;
    margin-bottom: 10px;
}

/* --- Footer --- */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 24px 0;
    margin-top: 40px;
}

.footer-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-copy {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.footer-links {
    display: flex;
    gap: 24px;
}

.footer-links a {
    font-size: 0.85rem;
    color: var(--text-muted);
    transition: color var(--transition);
}

.footer-links a:hover {
    color: var(--text-bright);
}

/* ========================================
   ANIMATIONS & EFFECTS
   ======================================== */

/* --- Scroll-triggered stagger animations --- */
.animate-in {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.animate-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* --- Hero text reveal --- */
.hero-text-reveal .home-hero-label {
    animation: slideUp 0.6s cubic-bezier(0.16, 1, 0.3, 1) 0.2s both;
}

.hero-text-reveal h1 {
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;
}

.hero-text-reveal .home-hero-desc {
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.6s both;
}

.hero-text-reveal .home-hero-buttons {
    animation: slideUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) 0.8s both;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(40px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* --- Glow text pulse on hero --- */
.text-glow {
    animation: glowPulse 3s ease-in-out infinite;
}

@keyframes glowPulse {
    0%, 100% {
        text-shadow: 0 0 20px rgba(79, 195, 247, 0.4), 0 0 40px rgba(79, 195, 247, 0.1);
    }
    50% {
        text-shadow: 0 0 30px rgba(79, 195, 247, 0.6), 0 0 60px rgba(79, 195, 247, 0.2), 0 0 80px rgba(79, 195, 247, 0.1);
    }
}

/* --- Floating gem particles --- */
.floating-gem {
    position: absolute;
    z-index: 1;
    pointer-events: none;
    border-radius: 2px;
    animation: floatGem linear infinite;
}

.gem-diamond {
    transform: rotate(45deg);
    border-radius: 2px;
}

.gem-circle {
    border-radius: 50%;
}

.gem-square {
    border-radius: 3px;
}

@keyframes floatGem {
    0% {
        transform: translateY(0) rotate(0deg) scale(1);
        opacity: 0;
    }
    10% {
        opacity: var(--gem-opacity, 0.3);
    }
    90% {
        opacity: var(--gem-opacity, 0.3);
    }
    100% {
        transform: translateY(-120px) rotate(360deg) scale(0.5);
        opacity: 0;
    }
}

/* --- 3D card tilt glow overlay --- */
.game-card,
.home-game-tile {
    transition: transform 0.15s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    will-change: transform;
    --glow-x: 50%;
    --glow-y: 50%;
}

.game-card::before,
.home-game-tile::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: radial-gradient(circle at var(--glow-x) var(--glow-y), rgba(79, 195, 247, 0.12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1;
    pointer-events: none;
}

.game-card:hover::before,
.home-game-tile:hover::before {
    opacity: 1;
}

.game-card:hover,
.home-game-tile:hover {
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.4), 0 0 20px rgba(79, 195, 247, 0.1);
}

/* --- Card pop animation for genre filter --- */
@keyframes cardPop {
    0% {
        opacity: 0;
        transform: scale(0.9) translateY(16px);
    }
    100% {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

/* --- Button sparkle effect --- */
.btn-primary {
    position: relative;
    overflow: hidden;
}

.btn-primary::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
    transform: skewX(-20deg);
    transition: left 0.6s ease;
    pointer-events: none;
}

.btn-primary:hover::after {
    left: 125%;
}

.sparkle {
    position: absolute;
    width: 6px;
    height: 6px;
    background: #fff;
    border-radius: 50%;
    pointer-events: none;
    animation: sparkleAnim 0.6s ease-out forwards;
}

@keyframes sparkleAnim {
    0% {
        opacity: 1;
        transform: scale(0) translate(0, 0);
    }
    100% {
        opacity: 0;
        transform: scale(1) translate(
            calc((var(--random, 0.5) - 0.5) * 40px),
            calc((var(--random, 0.5) - 0.5) * 40px)
        );
    }
}

/* --- Button pulse glow --- */
.btn-primary {
    animation: buttonGlow 3s ease-in-out infinite;
}

@keyframes buttonGlow {
    0%, 100% {
        box-shadow: 0 0 8px rgba(79, 195, 247, 0.2);
    }
    50% {
        box-shadow: 0 0 20px rgba(79, 195, 247, 0.35), 0 0 40px rgba(79, 195, 247, 0.1);
    }
}

/* --- Stat card glow on reveal --- */
.stat-card.visible {
    animation: statReveal 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes statReveal {
    from {
        opacity: 0;
        transform: scale(0.85) translateY(20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.stat-number {
    background: linear-gradient(135deg, var(--accent), #a29bfe);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Feature card hover bounce --- */
.feature-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.feature-card:hover {
    transform: translateY(-8px) scale(1.03);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3), 0 0 12px rgba(79, 195, 247, 0.15);
}

/* --- Value card colour border on hover --- */
.value-card {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
    overflow: hidden;
}

.value-card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #a29bfe, #ff6b6b);
    transition: width 0.4s ease;
}

.value-card:hover::after {
    width: 100%;
}

.value-card:hover {
    transform: translateY(-6px);
}

/* --- Game card poster zoom --- */
.game-card-poster img,
.home-game-tile-img img {
    transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.game-card:hover .game-card-poster img,
.home-game-tile:hover .home-game-tile-img img {
    transform: scale(1.08);
}

/* --- Game page banner parallax-like shimmer --- */
.game-page-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.05) 0%, transparent 50%, rgba(155, 89, 182, 0.05) 100%);
    z-index: 1;
    animation: bannerShimmer 8s ease-in-out infinite alternate;
}

@keyframes bannerShimmer {
    0% {
        opacity: 0.3;
    }
    100% {
        opacity: 0.8;
    }
}

/* --- Social icon bounce --- */
.social-icon {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.social-icon:hover {
    transform: translateY(-4px) scale(1.15);
}

/* --- Store badge shine --- */
.store-badge {
    position: relative;
    overflow: hidden;
}

.store-badge::after {
    content: '';
    position: absolute;
    top: -50%;
    left: -75%;
    width: 50%;
    height: 200%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transform: skewX(-20deg);
    transition: left 0.5s ease;
    pointer-events: none;
}

.store-badge:hover::after {
    left: 125%;
}

/* --- CTA box gradient animation --- */
.home-cta-box {
    position: relative;
    overflow: hidden;
}

.home-cta-box::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: inherit;
    background: linear-gradient(135deg, var(--accent), #a29bfe, #ff6b6b, var(--accent));
    background-size: 300% 300%;
    animation: gradientBorder 6s ease infinite;
    z-index: -1;
    opacity: 0.15;
}

@keyframes gradientBorder {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

/* --- Header scroll effect --- */
.site-header.scrolled {
    background: rgba(15, 25, 35, 0.98);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
}

/* --- About image float animation --- */
.about-intro-img img {
    animation: gentleFloat 4s ease-in-out infinite;
}

@keyframes gentleFloat {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* --- Play Now button game-style pulse --- */
.game-card-play {
    animation: buttonGlow 3s ease-in-out infinite, playPulse 2s ease-in-out infinite;
}

@keyframes playPulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
}

/* --- Nav link hover underline animation --- */
.main-nav a {
    position: relative;
}

.main-nav a::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--accent);
    transition: width 0.3s ease, left 0.3s ease;
    border-radius: 1px;
}

.main-nav a:hover::after,
.main-nav a.active::after {
    width: 60%;
    left: 20%;
}

/* --- Genre filter button transition --- */
.genre-filter button {
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.genre-filter button:hover {
    transform: translateY(-2px);
}

.genre-filter button.active {
    transform: scale(1.05);
}

/* --- Logo hover --- */
.logo-img {
    transition: transform 0.3s ease, filter 0.3s ease;
}

.logo:hover .logo-img {
    transform: scale(1.08);
    filter: drop-shadow(0 0 8px rgba(79, 195, 247, 0.4));
}

/* --- Page hero subtle gradient animation --- */
.page-hero {
    position: relative;
    overflow: hidden;
}

.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(79, 195, 247, 0.04) 0%, transparent 40%, rgba(155, 89, 182, 0.04) 100%);
    animation: heroGradient 10s ease infinite alternate;
}

@keyframes heroGradient {
    0% { opacity: 0.5; transform: scale(1); }
    100% { opacity: 1; transform: scale(1.05); }
}

/* --- Smooth page load --- */
main {
    animation: pageLoad 0.5s ease both;
}

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

/* --- 404 --- */
.error-section {
    padding: 60px 0 100px;
    text-align: center;
}

.error-section p {
    color: var(--text-muted);
    margin-bottom: 24px;
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .games-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .feature-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: block;
    }

    .main-nav {
        position: fixed;
        top: 0;
        right: -100%;
        width: 280px;
        height: 100vh;
        background: var(--bg-secondary);
        padding: 80px 24px 24px;
        box-shadow: -4px 0 24px rgba(0, 0, 0, 0.4);
        transition: right var(--transition);
        z-index: 999;
    }

    .main-nav.open {
        right: 0;
    }

    .main-nav ul {
        flex-direction: column;
        gap: 4px;
    }

    .main-nav a {
        padding: 12px 16px;
        font-size: 1rem;
    }

    .home-hero {
        height: 70vh;
        min-height: 400px;
    }

    .home-hero-text h1 {
        font-size: 2.2rem;
    }

    .home-hero-desc {
        font-size: 1rem;
    }

    .home-games-row {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-about-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .feature-cards {
        grid-template-columns: 1fr;
    }

    .page-hero {
        padding: 100px 0 30px;
    }

    .page-hero h1 {
        font-size: 2rem;
    }

    .games-section {
        padding: 20px 0 60px;
    }

    .genre-filter {
        gap: 6px;
        margin-bottom: 20px;
    }

    .genre-filter .filter-label {
        font-size: 0.8rem;
    }

    .genre-filter button {
        padding: 5px 12px;
        font-size: 0.75rem;
    }

    .games-grid {
        grid-template-columns: 1fr;
    }

    .game-card-bottom {
        padding: 10px 12px;
        gap: 8px;
    }

    .game-card-icon {
        width: 34px;
        height: 34px;
        border-radius: 8px;
    }

    .game-card-left {
        gap: 8px;
    }

    .game-card-left h3 {
        font-size: 0.85rem;
    }

    .game-card-play {
        padding: 6px 10px;
        font-size: 0.72rem;
        gap: 4px;
    }

    .game-card-play svg {
        width: 13px;
        height: 13px;
    }

    .game-page-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .game-page-banner {
        height: 250px;
    }

    .game-page-icon {
        width: 60px;
        height: 60px;
        border-radius: 14px;
    }

    .game-page-title {
        gap: 12px;
        align-items: center;
    }

    .game-page-info h1 {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .game-page-info .game-tagline {
        font-size: 0.85rem;
        margin-bottom: 0;
    }

    .story-grid,
    .story-grid-reverse {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .story-grid-reverse .story-image {
        order: -1;
    }

    .about-intro {
        flex-direction: column;
        text-align: center;
    }

    .about-intro-img {
        width: 160px;
        order: -1;
    }

    .values-grid {
        grid-template-columns: 1fr;
    }

    .contact-grid {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .footer-content {
        flex-direction: column;
        gap: 16px;
        text-align: center;
    }

    .store-badges {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .home-hero-text h1 {
        font-size: 1.8rem;
    }

    .home-games-row {
        grid-template-columns: 1fr;
    }

    .home-about-stats {
        grid-template-columns: repeat(2, 1fr);
    }

    .home-hero-buttons {
        flex-direction: column;
    }

    .store-badges {
        flex-direction: column;
    }

    .store-badge {
        justify-content: center;
    }

    .game-card-badges {
        flex-direction: column;
    }

    .game-card-bottom {
        padding: 8px 10px;
        gap: 6px;
    }

    .game-card-icon {
        width: 32px;
        height: 32px;
        border-radius: 7px;
    }

    .game-card-left h3 {
        font-size: 0.82rem;
    }

    .game-card-play,
    .btn-sm {
        padding: 5px 10px;
        font-size: 0.7rem;
        gap: 4px;
    }

    .game-card-play svg {
        width: 12px;
        height: 12px;
    }

    .game-page-icon {
        width: 56px;
        height: 56px;
        border-radius: 12px;
    }

    .game-page-title {
        gap: 10px;
        align-items: center;
    }

    .game-page-info h1 {
        font-size: 1.15rem;
        line-height: 1.2;
    }

    .game-page-info .game-tagline {
        font-size: 0.78rem;
        margin-bottom: 0;
    }

    .game-page-info .game-desc {
        font-size: 0.9rem;
    }

    .game-social-heading {
        font-size: 0.85rem;
    }
}
