body, html {
    margin: 0;
    padding: 0;
    font-family: 'Orbitron', sans-serif;
    background-color: #000000;
    color: white;
    min-height: 100vh;
    overflow-x: hidden;
}

.landing-page {
    min-height: 100vh;
    position: relative;
}

.landing-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 2rem 2rem;
    position: relative;
    z-index: 1;
}

.landing-header {
    display: flex;
    align-items: center;
    min-height: 44px;
    margin-bottom: 1.5rem;
}

.landing-header:empty {
    display: none;
}

.title-section {
    text-align: center;
    margin-bottom: 3rem;
}

.title-section h1,
.title-section p {
    text-align: center;
}

.tagline {
    color: #94a3b8;
    font-size: 2rem;
    margin: 0;
    text-align: center;
}

#background-canvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 2rem;
    position: relative;
    z-index: 1;
}

header {
    text-align: center;
    margin-bottom: 3rem;
}

h1 {
    color: #60a5fa;
    font-size: 4rem;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.7);
}

.subtitle {
    color: #94a3b8;
    font-size: 2rem;
}

/* Base game grid styles */
.game-grid {
    display: grid;
    gap: 2rem;
    margin-bottom: 3rem;
}

/* Message container styles */
.message {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 200px;
    grid-column: 1 / -1;
    text-align: center;
    font-size: 1.5rem;
    color: #94a3b8;
    background-color: rgba(30, 41, 59, 0.8);
    border-radius: 1rem;
    padding: 2rem;
    margin: 2rem auto;
    max-width: 600px;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

/* Landscape layout */
.landscape-layout {
    grid-template-columns: repeat(auto-fit, minmax(750px, 1fr));
}

/* Portrait layout */
.portrait-layout {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    max-width: 1200px;
    margin-left: auto;
    margin-right: auto;
}

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

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

/* Base grid cell styles */
.grid-cell {
    position: relative;
    width: 100%;
    border-radius: 3rem;
    overflow: hidden;
    text-decoration: none;
    color: #60a5fa;
    transition: all 0.3s ease;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.1);
    background-color: #1e293b;
    cursor: pointer;
}

/* Landscape cell aspect ratio */
.landscape-cell {
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
}

/* Portrait cell aspect ratio */
.portrait-cell {
    padding-top: 133.33%; /* 3:4 Aspect Ratio */
}

.grid-cell:hover {
    transform: translateY(-15px);
    box-shadow: 0 30px 45px rgba(0, 0, 0, 0.2);
}

.grid-cell img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Dinkel has 4:3 image, show full image */
.grid-cell img[data-product="dinkel"] {
    object-fit: contain;
    background-color: #1e293b;
}

.back-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid #4ff;
    color: #4ff;
    border-radius: 5px;
    font-family: 'Orbitron', sans-serif;
    cursor: pointer;
    transition: all 0.3s ease;
}

.back-button:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
    box-shadow: 0 0 15px rgba(68, 255, 255, 0.5);
}

.back-button:active {
    transform: translateY(0);
}

footer {
    text-align: center;
    margin-top: 2rem;
}

.footer-links a {
    color: #60a5fa;
    text-decoration: none;
    margin: 0 1rem;
    transition: color 0.3s ease;
    font-size: 1.5rem;
}

.footer-links a:hover {
    color: #93c5fd;
    text-shadow: 0 0 5px rgba(96, 165, 250, 0.7);
}

/* Media queries for responsiveness */
@media (max-width: 1600px) {
    .container {
        max-width: 1200px;
    }

    h1 {
        font-size: 3rem;
    }

    .subtitle {
        font-size: 1.5rem;
    }

    .tagline {
        font-size: 1.5rem;
    }
}

@media (max-width: 1000px) {
    .container {
        max-width: 800px;
    }

    h1 {
        font-size: 2.5rem;
    }

    .subtitle {
        font-size: 1.25rem;
    }

    .tagline {
        font-size: 1.25rem;
    }

    .footer-links a {
        font-size: 1rem;
    }

    .landscape-layout {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .message {
        font-size: 1.25rem;
        min-height: 150px;
        padding: 1.5rem;
    }
}

/* Disabled product styling */
.grid-cell.disabled {
    opacity: 0.5;
    filter: grayscale(80%);
    cursor: not-allowed;
}

.grid-cell.disabled:hover {
    transform: none;
    box-shadow: 0 12px 18px rgba(0, 0, 0, 0.1);
}

.grid-cell.disabled::after {
    content: "Coming Soon";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: #60a5fa;
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid #60a5fa;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.5);
    z-index: 10;
}

/* Paid/locked product styling */
.grid-cell.locked {
    cursor: pointer;
}

.grid-cell.locked img {
    filter: brightness(0.7);
}

.buy-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.grid-cell.locked:hover .buy-overlay {
    background: rgba(0, 0, 0, 0.5);
}

.buy-badge {
    background: linear-gradient(135deg, #d4a532 0%, #e6b84d 100%);
    color: #1a1a1a;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.5rem;
    font-weight: bold;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(212, 165, 50, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-cell.locked:hover .buy-badge {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(230, 184, 77, 0.7);
}

/* Available Soon product styling */
.grid-cell.available-soon {
    cursor: pointer;
}

.grid-cell.available-soon img {
    filter: brightness(0.8);
}

.available-soon-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.4);
    transition: background 0.3s ease;
}

.grid-cell.available-soon:hover .available-soon-overlay {
    background: rgba(0, 0, 0, 0.3);
}

.available-soon-badge {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: white;
    padding: 0.75rem 2rem;
    border-radius: 0.5rem;
    font-size: 1.25rem;
    font-weight: bold;
    text-transform: uppercase;
    border: 2px solid #f59e0b;
    box-shadow: 0 0 20px rgba(245, 158, 11, 0.5);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.grid-cell.available-soon:hover .available-soon-badge {
    transform: scale(1.05);
    box-shadow: 0 0 30px rgba(245, 158, 11, 0.7);
}

/* Not Found Page Styles */
.not-found-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    position: relative;
    z-index: 1;
    background: linear-gradient(135deg, #001428 0%, #000a14 100%);
}

.not-found-content {
    text-align: center;
    max-width: 600px;
    padding: 3rem;
    background: rgba(0, 255, 255, 0.05);
    border-radius: 1.5rem;
    border: 2px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 0 40px rgba(0, 255, 255, 0.2);
}

.not-found-content h1 {
    font-size: 8rem;
    margin: 0;
    color: #00ffff;
    text-shadow: 0 0 30px rgba(0, 255, 255, 0.8);
    line-height: 1;
}

.not-found-content h2 {
    font-size: 2rem;
    color: #ff6464;
    margin: 1rem 0;
    text-transform: uppercase;
    letter-spacing: 0.2em;
}

.not-found-content p {
    font-size: 1.2rem;
    color: #80ffff;
    margin: 1.5rem 0 2rem;
    line-height: 1.6;
}

.not-found-content .btn-primary {
    display: inline-block;
    padding: 1rem 2.5rem;
    background: linear-gradient(135deg, #00ffff 0%, #00cccc 100%);
    color: #001428;
    border: none;
    border-radius: 0.5rem;
    font-family: 'Orbitron', sans-serif;
    font-size: 1.1rem;
    font-weight: bold;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 255, 255, 0.4);
}

.not-found-content .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 255, 0.6);
}

/* Product-specific note callout for legal pages */
.product-note {
    background: rgba(96, 165, 250, 0.1);
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-left: 4px solid #60a5fa;
    border-radius: 6px;
    padding: 12px 16px;
    margin: 0 0 24px 0;
    font-size: 0.95em;
    color: #94a3b8;
}

/* Global Site Footer - styled like menu */
.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 15px 20px;
    background: linear-gradient(135deg, #001428 0%, #000a14 100%);
    border-top: 1px solid rgba(0, 255, 255, 0.3);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

.site-footer .footer-links {
    display: flex;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.site-footer .footer-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: rgba(0, 255, 255, 0.1);
    border: 1px solid rgba(0, 255, 255, 0.3);
    border-radius: 0.5rem;
    color: #00ffff;
    text-decoration: none;
    font-family: 'Orbitron', sans-serif;
    font-size: 0.85rem;
    transition: all 0.3s ease;
    cursor: pointer;
}

.site-footer .footer-btn:hover {
    background: rgba(0, 255, 255, 0.2);
    border-color: #00ffff;
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.3);
}

@media (max-width: 480px) {
    .site-footer .footer-btn {
        padding: 0.4rem 0.8rem;
        font-size: 0.75rem;
    }
}

.site-footer .footer-info {
    margin-top: 0.75rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.75rem;
}

.site-footer .footer-info p {
    margin: 0.25rem 0;
}

/* Contact page reveal button and details */
.btn-reveal {
    display: inline-block;
    padding: 1rem 2rem;
    background: rgba(0, 255, 255, 0.1);
    border: 2px solid #00ffff;
    border-radius: 0.5rem;
    color: #00ffff;
    font-family: 'Orbitron', sans-serif;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-reveal:hover {
    background: rgba(0, 255, 255, 0.2);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.5);
    transform: translateY(-2px);
}

.contact-details {
    background: rgba(0, 255, 255, 0.05);
    border: 1px solid rgba(0, 255, 255, 0.2);
    border-radius: 0.75rem;
    padding: 1.5rem;
}

.contact-item {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 255, 255, 0.1);
}

.contact-item:last-child {
    border-bottom: none;
}

.contact-label {
    color: #80ffff;
    font-weight: bold;
    min-width: 80px;
}

.contact-details a {
    color: #00ffff;
    text-decoration: none;
    transition: all 0.3s ease;
}

.contact-details a:hover {
    text-shadow: 0 0 10px rgba(0, 255, 255, 0.5);
}
