:root {
    --bg-color: #0d0d0d;
    --text-primary: #e5e5e5;
    --text-secondary: #888;
    --accent: #e6c387;
    --font-heading: 'Oswald', sans-serif;
    --font-body: 'Roboto', sans-serif;
}

body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    overflow: hidden; /* Important for keeping canvas fixed */
    /* background-color: var(--bg-color); <-- REMOVED THIS LINE. It was hiding the canvas. */
    color: var(--text-primary);
    font-family: var(--font-body);
}

/* Starfield Canvas Background */
#starfieldCanvas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1; /* Places canvas behind everything */
    background-color: var(--bg-color); /* <-- ADDED THIS LINE to ensure the background is dark */
}

/* Main Menu Container with Scrolling */
.menu-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-y: auto; /* NATIVE SCROLLING! */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

header {
    padding: 3rem 1rem 1.5rem 1rem;
    text-align: center;
}

header h1 {
    font-family: var(--font-heading);
    font-size: clamp(3rem, 10vw, 4.5rem); /* Responsive font size */
    font-weight: 700;
    letter-spacing: 8px;
    margin: 0;
    text-shadow: 0 0 10px rgba(0,0,0,0.5);
}

nav#menu-tabs {
    width: 90%;
    max-width: 1200px;
    padding-bottom: 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem 1.5rem;
}

.tab-button {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-family: var(--font-heading);
    font-size: clamp(1.1rem, 3vw, 1.5rem);
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 2px;
    border-bottom: 2px solid transparent;
}

.tab-button.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
    text-shadow: 0 0 10px var(--accent);
}

main#menu-content {
    width: 90%;
    max-width: 1200px;
    padding: 3rem 0;
}

.menu-category {
    display: none; /* Hidden by default */
}
.menu-category.active {
    display: block; /* Shown when active */
    animation: fadeIn 0.5s ease-in-out;
}

.menu-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0.5rem 2rem;
    padding: 1.5rem 0;
    border-bottom: 1px dashed rgba(255,255,255,0.15);
}

.menu-item:last-child {
    border-bottom: none;
}

.item-details h3 {
    margin: 0;
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    font-weight: 400;
    color: var(--text-primary);
}

.item-details p {
    grid-column: 1 / -1; /* Description spans full width */
    margin: 0;
    font-size: clamp(0.9rem, 2.5vw, 1.1rem);
    color: var(--text-secondary);
    line-height: 1.6;
    max-width: 60ch; /* Limit line length for readability */
}

.item-price {
    font-family: var(--font-heading);
    font-size: clamp(1.5rem, 4vw, 2.2rem);
    color: var(--accent);
    font-weight: 700;
    text-align: right;
}

/* Loader Animation */
.loader {
    border: 4px solid var(--text-secondary);
    border-top: 4px solid var(--accent);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}