/* --- LOCAL FILE PATH FONT COUPLING --- */
@font-face {
    font-family: 'MinecraftSeven';
    src: url('assets/fonts/minecraft/MinecraftRegular-Bmg3.otf') format('opentype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'MinecraftSeven';
    src: url('assets/fonts/minecraft/MinecraftBold-nMK1.otf') format('opentype');
    font-weight: bold;
    font-style: normal;
}

@font-face {
    font-family: 'MinecraftTen';
    src: url('assets/fonts/minecraft-ten/MinecraftTen-VGORe.ttf') format('truetype');
    font-weight: 900; 
    font-style: normal;
}

:root {
    --font-title: 'MinecraftTen', 'Courier New', monospace;
    --font-body: 'MinecraftSeven', monospace;
    
    /* Design Tokens Sampled From Image */
    --bg-dark: #1e1e24; 
    --panel-bg: #323237; 
    --border-black: #000000; 

    /* Green Colors (Primary Action Theme) */
    --green-active-bg: #4ca326;
    --green-active-bottom: #2c6317;
    --green-hover-bg: #5abf2f;
    --green-pressed-bg: #215112;
    --green-pressed-bottom: #123009;

    /* Grey / White Colors (Secondary/Default Base Theme) */
    --grey-default-bg: #cccccc;
    --grey-default-bottom: #999999;
    --white-selected-bg: #ffffff;
    --white-selected-bottom: #cccccc;
    
    /* True Pressed / Inset Secondary Gray States */
    --grey-pressed-bg: #b3b3b3;       /* Balanced natural dark-gray press state */
    --grey-pressed-bottom: #808080;   /* Underline lip for gray active press */
    
    /* Disabled States */
    --grey-disabled-bg: #48484d;      /* Solid dark gray reserved ONLY for disabled states */
    --grey-disabled-bottom: #2d2d31;

    /* UI Accents */
    --tooltip-blue: #1b65e3; 
    --text-muted: #aaaaaa;
}

/* --- GLOBAL STABLE RESETS --- */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    border-radius: 0 !important; 
    image-rendering: pixelated; 
    -webkit-tap-highlight-color: transparent; 
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-dark);
    color: #ffffff;
    padding: 40px 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
}

.site-container {
    width: 100%;
    max-width: 1024px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* --- AUTOMATED HEADERS ELEMENT CONFIGURATION --- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-shadow: 4px 4px 0px #000000;
}
h1 { font-size: 3rem; margin-bottom: 4px; }
h2 { font-size: 1.5rem; text-shadow: 2px 2px 0px #000000; }
h3 { font-size: 1.25rem; text-shadow: 2px 2px 0px #000000; }

/* --- AUTOMATED CONTAINERS & TEXTURES --- */
.card {
    background-color: var(--panel-bg);
    border: 2px solid var(--border-black);
    padding: 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 24px;
}

.tooltip {
    background-color: var(--tooltip-blue);
    color: #ffffff;
    font-size: 0.95rem;
    padding: 12px 16px;
    border: 2px solid var(--border-black);
    text-shadow: 2px 2px 0px #000000;
    line-height: 1.4;
}

p {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-shadow: 1px 1px 0px #000000;
    line-height: 1.5;
}

/* --- AUTOMATED BUTTON SELECTION SYSTEM --- */

/* Default Secondary Base Structure */
button, .button, a.button {
    display: block;
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.1rem;
    text-align: center;
    padding: 12px;
    border: 2px solid var(--border-black);
    cursor: pointer;
    text-decoration: none;
    outline: none;
    
    background-color: var(--grey-default-bg);
    color: #1e1e24;
    box-shadow: inset 0 -4px 0px var(--grey-default-bottom);
}

/* Default / Secondary States (Gray/White Framework) */
button:not(.primary):not(:disabled):hover, 
button:not(.primary):not(:disabled):focus {
    background-color: var(--white-selected-bg);
    box-shadow: inset 0 -4px 0px var(--white-selected-bottom);
}
button:not(.primary):not(:disabled):active {
    /* Adjusted: Slightly darker gray inset, matching the pressure mechanics of the primary button */
    background-color: var(--grey-pressed-bg);
    box-shadow: inset 0 -4px 0px var(--grey-pressed-bottom);
    color: #1e1e24;
    padding-top: 14px;
    padding-bottom: 10px;
}

/* Disabled State Rule (Forced entirely into dark gray container tones) */
button:disabled, .button:disabled {
    background-color: var(--grey-disabled-bg);
    box-shadow: inset 0 -4px 0px var(--grey-disabled-bottom);
    color: #777777;
    cursor: not-allowed;
    pointer-events: none;
}

/* Primary Button Overrides (.primary) */
button.primary, .button.primary {
    background-color: var(--green-active-bg);
    color: #ffffff;
    text-shadow: 2px 2px 0px #000000;
    box-shadow: inset 0 -4px 0px var(--green-active-bottom);
}
button.primary:not(:disabled):hover, .button.primary:not(:disabled):hover {
    background-color: var(--green-hover-bg);
}
button.primary:not(:disabled):focus, .button.primary:not(:disabled):focus {
    outline: 2px solid #ffffff;
    outline-offset: -4px;
}
button.primary:not(:disabled):active, .button.primary:not(:disabled):active {
    background-color: var(--green-pressed-bg);
    box-shadow: inset 0 -4px 0px var(--green-pressed-bottom);
    color: #ffffff;
    padding-top: 14px;
    padding-bottom: 10px;
}

/* --- AUTOMATED CORE INPUT PARAMETERS --- */
input[type="number"] {
    width: 100%;
    font-family: var(--font-body);
    font-size: 1.1rem;
    color: #ffffff;
    background-color: #1b1b20;
    border: 2px solid var(--border-black);
    padding: 12px;
    outline: none;
    text-shadow: 1px 1px 0px #000000;
    box-shadow: inset 2px 2px 0px #0a0a0c;
}
input[type="number"]:focus {
    border-color: #ffffff;
}

/* Dynamic Track Sliders */
input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 12px;
    background-color: #88888c;
    border: 2px solid var(--border-black);
    border-bottom-width: 4px;
    outline: none;
}

/* Slider Track Square Selector Handle */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 28px;
    background-color: #e3e3e9;
    border: 2px solid var(--border-black);
    box-shadow: inset 0 -4px 0px #aaaaaa;
    cursor: pointer;
    margin-top: -2px; 
}

/* --- THE MAIN HOMEPAGE INTERFACE GRID --- */
.utility-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}
