:root {
    --bg-color: #080808;
    --bg-secondary: #0f0f0f;
    --text-primary: #f0f0f0;
    --text-secondary: #aaaaaa;
    --accent-gold: #c5a059;
    --accent-gold-bright: #ebd197;
    --accent-red: #7a0000;

    --font-display: 'Cinzel', serif;
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Lato', sans-serif;

    --spacing-container: 8%;
}

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

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-body);
    font-weight: 300;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}

/* Film Grain Overlay */
.film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noiseFilter'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noiseFilter)' opacity='0.05'/%3E%3C/svg%3E");
    z-index: 9999;
    opacity: 0.4;
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-display);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-primary);
}

a {
    text-decoration: none;
    color: inherit;
    transition: all 0.3s ease;
}

/* Header */
.cinematic-header {
    padding: 2rem var(--spacing-container);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9), transparent);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(2px);
}

.logo {
    font-family: var(--font-display);
    font-size: 1.8rem;
    font-weight: 700;
    letter-spacing: 0.2em;
}

.highlight {
    color: var(--accent-gold);
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 3rem;
}

.nav-links a {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    position: relative;
    padding-bottom: 5px;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 1px;
    background: var(--accent-gold);
    transition: width 0.3s ease;
}

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

.nav-links a:hover {
    color: var(--accent-gold);
    text-shadow: 0 0 10px rgba(197, 160, 89, 0.5);
}

/* Hero Section */
.hero-fullscreen {
    height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    position: relative;
    background: radial-gradient(circle at center, #1a1a1a 0%, #000000 70%);
}

.hero-fullscreen::before {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    /* Vignette */
    background: radial-gradient(circle, transparent 50%, #000 100%);
    pointer-events: none;
}

.main-title {
    font-size: 5rem;
    line-height: 1.1;
    margin-bottom: 1rem;
    background: linear-gradient(45deg, #fff, #999);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.tagline {
    font-family: var(--font-body);
    font-size: 1rem;
    letter-spacing: 0.4em;
    color: var(--accent-gold);
    margin-bottom: 3rem;
}

/* Buttons */
.cta-container {
    display: flex;
    gap: 2rem;
    z-index: 10;
}

.btn {
    padding: 1rem 3rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    border: 1px solid transparent;
    transition: all 0.4s ease;
    text-align: center;
    display: inline-block;
}

.btn-primary {
    background-color: var(--accent-gold);
    color: #000;
    font-weight: 700;
}

.btn-primary:hover {
    background-color: var(--accent-gold-bright);
    box-shadow: 0 0 20px rgba(197, 160, 89, 0.4);
    transform: translateY(-2px);
    color: #000;
}

.btn-outline {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

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

/* Scroll Indicator */
.scroll-indicator {
    position: absolute;
    bottom: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    opacity: 0.6;
}

.scroll-indicator .line {
    width: 1px;
    height: 50px;
    background: linear-gradient(to bottom, #fff, transparent);
}

/* Reviews */
.acclaim-section {
    padding: 6rem var(--spacing-container);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 4rem;
    background-color: var(--bg-secondary);
    text-align: center;
}

.review-card .stars {
    color: var(--accent-gold);
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.review-card .quote {
    font-family: var(--font-heading);
    font-style: italic;
    font-size: 1.5rem;
    color: var(--text-primary);
    margin-bottom: 1rem;
}

.review-card .author {
    font-size: 0.8rem;
    letter-spacing: 0.2em;
    color: var(--text-secondary);
    text-transform: uppercase;
}

/* Page Content Generic */
.page-container {
    padding: 8rem var(--spacing-container) 4rem;
    min-height: 80vh;
}

.section-title {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--accent-gold);
}

.section-subtitle {
    font-size: 1.2rem;
    color: var(--text-secondary);
    margin-bottom: 3rem;
    border-left: 2px solid var(--accent-red);
    padding-left: 1rem;
}

/* Portfolio Grid */
.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.portfolio-item {
    background: #111;
    border: 1px solid #222;
    padding: 2rem;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}

.portfolio-item:hover {
    transform: translateY(-10px);
    border-color: var(--accent-gold);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.portfolio-item h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.portfolio-cat {
    text-transform: uppercase;
    font-size: 0.7rem;
    letter-spacing: 0.2em;
    color: var(--accent-gold);
    margin-bottom: 1rem;
    display: block;
}

.portfolio-desc {
    font-size: 0.9rem;
    color: #888;
}

/* Generics */
.fade-in {
    animation: fadeIn 1.5s ease-out forwards;
    opacity: 0;
}

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

/* Footer */
.cinematic-footer {
    padding: 4rem var(--spacing-container);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    text-align: center;
    color: var(--text-secondary);
    font-size: 0.8rem;
    letter-spacing: 0.1em;
}

.citation {
    margin-top: 1rem;
    font-family: var(--font-heading);
    font-style: italic;
    color: var(--accent-gold);
    opacity: 0.8;
}

/* --- Game Styles (New) --- */

/* Quote Match */
.match-container {
    display: flex;
    justify-content: space-between;
    gap: 2rem;
}

.match-column {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

/* Emoji Cinema */
.options-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr 1fr;
}

/* Mobile Adjustments */
@media (max-width: 768px) {

    /* Hero Section Mobile */
    .main-title {
        font-size: 2.5rem;
        padding: 0 1rem;
    }

    .cta-container {
        flex-direction: column;
        width: 100%;
        max-width: 280px;
        gap: 1rem;
        margin: 0 auto;
        /* Center the container itself */
        align-items: center;
        /* Center the buttons inside */
    }

    .btn {
        width: 100%;
        padding: 1rem 0;
        /* consistent height */
    }

    /* Mobile Navigation */
    .cinematic-header {
        position: relative;
        flex-direction: column;
        gap: 1rem;
        padding: 1rem;
        background: rgba(0, 0, 0, 0.95);
    }

    .nav-links {
        gap: 1.5rem;
        font-size: 0.75rem;
        flex-wrap: wrap;
        justify-content: center;
    }

    /* Game Layouts Mobile */
    .match-container {
        flex-direction: column;
    }

    .match-column {
        width: 100%;
    }

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

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #000;
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 1s ease;
}

#intro-overlay video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#enter-btn {
    position: absolute;
    bottom: 50px;
    padding: 1rem 2rem;
    background: transparent;
    border: 1px solid #c5a059;
    color: #c5a059;
    font-family: 'Cinzel', serif;
    font-size: 1.2rem;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 10000;
    opacity: 0;
    animation: fadeInBtn 0.5s ease 2s forwards;
}

@keyframes fadeInBtn {
    to {
        opacity: 1;
    }
}

#enter-btn:hover {
    background: #c5a059;
    color: #000;
}