:root {
    --color-bg: #000000;
    --color-text: #ffffff;
    --color-accent: #00ff41;
    /* Cyber green */
    --font-heading: 'Space Mono', monospace;
    --font-body: 'Inter', sans-serif;
    --spacing-unit: 1.5rem;
}

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

body {
    background-color: var(--color-bg);
    color: var(--color-text);
    font-family: var(--font-body);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

body.loaded {
    opacity: 1;
}

/* Loader */
#loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--color-bg);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity 0.5s ease-out, visibility 0.5s;
}

#loader.hidden {
    opacity: 0;
    visibility: hidden;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-accent);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* Typography */
h1,
h2,
h3 {
    font-family: var(--font-heading);
    font-weight: 700;
    text-transform: uppercase;
}

h3 {
    font-size: 1.25rem;
    margin-bottom: 1rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    display: inline-block;
}

p {
    max-width: 60ch;
    /* margin-bottom: 1.5rem; */
    color: #cccccc;
}

/* Layout Utilities */
.container {
    padding: 0 var(--spacing-unit);
    max-width: 1200px;
    margin: 0 auto;
}

section {
    padding: 4rem 0;
}

/* Header */
.site-header {
    padding: 1.25rem var(--spacing-unit);
    display: flex;
    align-items: center;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 10;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 0.5rem 1rem 0.5rem 0.5rem;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.logo-icon {
    width: 44px;
    height: 44px;
    object-fit: contain;
}

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

.logo-container::after {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    margin-left: 0.5rem;
    box-shadow: 0 0 8px var(--color-accent);
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.4; }
}

/* Hero */
.hero-section {
    min-height: 85vh;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 6rem var(--spacing-unit) 4rem;
    overflow: hidden;
}

#hero-particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.hero-card {
    position: relative;
    z-index: 2;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    width: 100%;
    max-width: 560px;
}

.hero-card-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.bar-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #333;
}

.bar-dot:nth-child(1) { background: #ff5f56; }
.bar-dot:nth-child(2) { background: #ffbd2e; }
.bar-dot:nth-child(3) { background: #27c93f; }

.bar-title {
    margin-left: auto;
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.35);
    letter-spacing: 0.5px;
}

.hero-card-body {
    padding: 2.5rem 2.5rem 2.75rem;
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.hero-logs {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.75rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.log-line {
    font-family: var(--font-heading);
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.3);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: 0.3px;
}

.hero-label {
    font-family: var(--font-heading);
    font-size: clamp(1.75rem, 6vw, 3rem);
    font-weight: 700;
    letter-spacing: -0.5px;
    text-transform: uppercase;
    color: var(--color-text);
    line-height: 1.15;
}

.hero-terminal {
    font-family: var(--font-heading);
    font-size: clamp(0.95rem, 3vw, 1.15rem);
    color: var(--color-accent);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    height: 1.4em;
    overflow: hidden;
}

.terminal-prefix {
    opacity: 0.4;
    flex-shrink: 0;
}

.terminal-text {
    white-space: nowrap;
    overflow: hidden;
    min-width: 0;
}

.terminal-cursor {
    animation: blink 530ms step-end infinite;
    flex-shrink: 0;
}

.hero-card-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.15) 2px,
        rgba(0, 0, 0, 0.15) 4px
    );
    pointer-events: none;
    opacity: 0.4;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Sections */
.about-section,
.games-section,
.careers-section {
    border-top: 1px solid #222;
}

.job-listing {
    font-family: var(--font-heading);
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    max-width: 400px;
    padding: 0.5rem;
    border: 1px solid transparent;
    transition: all 0.3s ease;
    text-decoration: none;
    color: inherit;
}

.job-listing:hover {
    border-color: #333;
    background: #111;
    color: var(--color-accent);
    cursor: pointer;
}

.status {
    color: #666;
    font-size: 0.9rem;
}

/* Footer */
.site-footer {
    padding: 4rem var(--spacing-unit);
    text-align: center;
    border-top: 1px solid #222;
    margin-top: 2rem;
    position: relative;
    overflow: hidden;
}

#footer-gol {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
}

.footer-content {
    position: relative;
    z-index: 2;
    display: inline-block;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 2.5rem 3rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.footer-columns {
    display: flex;
    gap: 4rem;
    text-align: left;
    margin-bottom: 2rem;
}

.footer-col {
    min-width: 180px;
}

.footer-heading {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    text-transform: uppercase;
    color: var(--color-accent);
    letter-spacing: 1px;
    margin-bottom: 0.75rem;
}

.footer-bottom {
    text-align: center;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.email-link {
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.25rem;
    position: relative;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.email-link:hover {
    opacity: 1;
    text-decoration: underline;
    text-decoration-color: var(--color-accent);
}

.phone-link {
    display: block;
    color: var(--color-text);
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 1.1rem;
    margin-top: 0.5rem;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.phone-link:hover {
    opacity: 1;
    color: var(--color-accent);
}

.footer-col .email-link,
.footer-col .phone-link {
    display: block;
    font-size: 1rem;
    margin-top: 0;
}

.footer-col .phone-link {
    margin-top: 0.25rem;
}

.footer-col .address {
    margin-top: 0;
    line-height: 1.5;
}

/* Games Section */
.game-card {
    position: relative;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
    overflow: hidden;
    max-width: 600px;
}

.game-card-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.game-card-body {
    padding: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.game-preview-box {
    position: relative;
    width: 100%;
    aspect-ratio: 5 / 3;
    overflow: hidden;
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.shine-overlay {
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, rgba(255, 255, 255, 0) 0%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 255, 255, 0) 100%);
    transform: skewX(-25deg);
    animation: shine 5s infinite;
    pointer-events: none;
}

@keyframes shine {
    0% { left: -100%; }
    25% { left: 200%; }
    100% { left: 200%; }
}

.game-card-scanlines {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: repeating-linear-gradient(
        0deg,
        transparent,
        transparent 2px,
        rgba(0, 0, 0, 0.12) 2px,
        rgba(0, 0, 0, 0.12) 4px
    );
    pointer-events: none;
    opacity: 0.5;
}

.game-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.5rem 0.25rem 0.25rem;
}

.game-title {
    font-family: var(--font-heading);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--color-text);
    letter-spacing: 0.5px;
}

.game-meta {
    font-family: var(--font-heading);
    font-size: 0.7rem;
    color: rgba(255, 255, 255, 0.55);
    letter-spacing: 0.3px;
}

.game-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 0.5rem;
    padding: 0.6rem 1rem;
    background: var(--color-accent);
    color: var(--color-bg);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.75rem;
    text-decoration: none;
    border-radius: 4px;
    width: fit-content;
    transition: transform 150ms ease, box-shadow 150ms ease, filter 150ms ease;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.2);
}

.cta-icon {
    font-size: 0.65rem;
}

@media (hover: hover) and (pointer: fine) {
    .game-cta:hover {
        transform: translateY(-2px);
        box-shadow: 0 6px 24px rgba(0, 255, 65, 0.3);
        filter: brightness(1.1);
    }
}

.game-cta:active {
    transform: translateY(0);
    box-shadow: 0 2px 12px rgba(0, 255, 65, 0.2);
}

@media (max-width: 768px) {
    .game-card {
        max-width: none;
    }

    .game-card-body {
        padding: 0.75rem;
    }

    .game-title {
        font-size: 1rem;
    }

    .game-cta {
        font-size: 0.7rem;
        padding: 0.5rem 0.85rem;
    }
}

.address {
    margin-top: 2rem;
    font-size: 0.9rem;
    color: #666;
    font-style: normal;
    max-width: none;
    /* Override global p max-width */
}

.copyright {
    font-size: 0.95rem;
    color: #666;
    max-width: none;
}

.copyright a {
    color: #777;
    text-decoration: none;
    transition: color 0.2s;
}

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

.powered-by {
    font-size: 0.7rem;
    color: #444;
    max-width: none;
    letter-spacing: 0.3px;
}

.powered-by a {
    color: #555;
    text-decoration: none;
    transition: color 0.2s;
}

.powered-by a:hover {
    color: var(--color-accent);
}

/* Responsive */
@media (max-width: 768px) {
    .hero-section {
        min-height: 70vh;
        padding: 5rem 1rem 3rem;
    }

    .hero-card {
        max-width: none;
        margin: 0 0.5rem;
    }

    .hero-card-body {
        padding: 1.75rem 1.5rem 2rem;
    }

    .hero-label {
        font-size: 1.6rem;
    }

    .hero-terminal {
        font-size: 0.9rem;
    }

    .log-line {
        font-size: 0.7rem;
    }

    .bar-dot {
        width: 10px;
        height: 10px;
    }

    .bar-title {
        font-size: 0.7rem;
    }

    .logo-text {
        font-size: 1.15rem;
        letter-spacing: 1px;
    }

    .logo-icon {
        width: 36px;
        height: 36px;
    }

    .logo-container {
        padding: 0.5rem 0.9rem 0.5rem 0.5rem;
        gap: 0.6rem;
    }

    .logo-container::after {
        width: 6px;
        height: 6px;
        margin-left: 0.4rem;
    }

    .footer-columns {
        flex-direction: column;
        gap: 0;
        text-align: center;
    }

    .footer-col {
        min-width: unset;
        padding: 1.25rem 0;
    }

    .footer-col:first-child {
        border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    }

    .footer-heading {
        margin-bottom: 0.5rem;
    }

    .footer-content {
        padding: 1.5rem 1rem;
    }

    .footer-bottom {
        padding-top: 1.25rem;
    }
}

@media (max-width: 380px) {
    .hero-card-body {
        padding: 1.5rem 1.25rem 1.75rem;
    }

    .hero-label {
        font-size: 1.4rem;
    }

    .hero-terminal {
        font-size: 0.8rem;
    }

    .hero-logs {
        gap: 0.15rem;
    }

    .log-line {
        font-size: 0.6rem;
    }
}

/* Privacy Policy Page */
.privacy-page-main {
    padding-top: 100px;
    /* Offset for fixed header */
    min-height: 80vh;
}

.privacy-section {
    padding: 4rem 0;
}

.privacy-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 3rem;
    color: var(--color-text);
}

.privacy-content {
    max-width: 800px;
}

.policy-block {
    margin-bottom: 3rem;
}

.policy-block h3 {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
    border-bottom: 1px solid #333;
    padding-bottom: 0.5rem;
    display: inline-block;
}

.policy-block p {
    margin-bottom: 1rem;
    color: #cccccc;
}

.policy-block ul {
    list-style-type: none;
    margin-left: 0;
    margin-bottom: 1.5rem;
}

.policy-block li {
    margin-bottom: 1rem;
    color: #cccccc;
    position: relative;
    padding-left: 1.5rem;
}

.policy-block li::before {
    content: '>';
    color: var(--color-accent);
    position: absolute;
    left: 0;
    font-family: var(--font-heading);
}

.policy-block strong {
    color: white;
}

.policy-block a {
    color: var(--color-accent);
    text-decoration: none;
}

.policy-block a:hover {
    text-decoration: underline;
}