
        :root {
            --bg: #beaafd;
            --content-bg: #d4c7ff;
            --text: #471684;
            --accent: #764bb6;
            --accent-hover: #9677ec;
            --font-main: "Concert One", sans-serif;
            --font-head: "Concert One", sans-serif;
            --sidebar-w: 200px;
            --gap: 10px;
            --pad: 20px;
            --border: 2px solid #f777aa;
        }

        * { box-sizing: border-box; }
        body {
            margin: 0;
            padding: var(--gap);
            background-image: url("../img/ui/bg/pastelstarz.gif");
            background-size: 240px; 
            background-position: top left; 
            background-repeat: repeat; 
            color: var(--text);
            font-family: var(--font-main);
            font-size: 14px;
            line-height: 1.5;
            display: flex;
            justify-content: center;
        }

        img {
            max-width: 100%;
            height: auto;
            display: block;
            margin: 0 auto;
        }
        
        .layout {
            display: grid;
            width: 100%;
            max-width: 1200px;
            grid-gap: var(--gap);
            grid-template-areas: 
                "header  header  header"
                "left    main    right"
                "footer  footer  footer";
            grid-template-columns: var(--sidebar-w) 1fr var(--sidebar-w);
        }

        header { 
            grid-area: header; 
            border: var(--border); 
            background: var(--content-bg); 
            padding: var(--pad); 
        }

        .left-side { grid-area: left; }

        .right-side { grid-area: right; }

        main { 
            grid-area: main; 
            border: var(--border); 
            background: var(--content-bg); 
            padding: var(--pad); 
        }

        footer { 
            grid-area: footer; 
            border: var(--border); 
            background: var(--content-bg); 
            padding: var(--pad); 
            text-align: center; 
            min-width: none;
            max-width: 100%;
        }

        aside { border: var(--border); background: var(--content-bg); padding: var(--pad); }

        nav ul { 
            list-style: none; 
            padding: 0; 
            margin: 0;
            display: flex; 
            flex-direction: column;
            gap: 10px; 
        }
        
        .nav-title {
            font-family: var(--font-head);
            font-weight: bold;
            margin-bottom: 10px;
            border-bottom: 1px solid var(--text);
        }

        nav a { text-decoration: none; color: var(--accent); font-weight: bold; }
        nav a:hover { color: var(--accent-hover); text-decoration: underline; }

        .sidebar-title { font-family: var(--font-head); font-weight: bold; font-size: 1.1em; margin-bottom: 10px; }
        .section { margin-bottom: 2rem; }

        @media (max-width: 800px) {
            .layout {
                grid-template-areas: 
                    "header"
                    "right"
                    "main"
                    "left"
                    "footer";
                grid-template-columns: minmax(0, 1fr);
            }
            
            nav ul {
                flex-direction: row;
                justify-content: center;
                flex-wrap: wrap;
            }
        }

        /* --- Left Sidebar Button Layout Fixes --- */
.button-grid {
    display: flex;
    flex-direction: column;
    gap: 8px;
    align-items: center;
}

.button-grid a {
    width: 100%;
    display: block;
}

.button-grid img {
    width: 88px; /* Forces uniform retro 88x31 button size layout */
    height: 31px;
    object-fit: contain;
    image-rendering: pixelated; /* Keeps fine asset details crisp */
    transition: transform 0.1s ease;
}

.button-grid img:hover {
    transform: scale(1.05);
}

/* --- Support/Copy Box UI Component --- */
.support-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.site-button-display {
    width: 88px;
    height: 31px;
    border: 1px solid var(--text);
}

.support-text {
    font-size: 12px;
    text-align: center;
    line-height: 1.3;
}

.copy-box {
    width: 100%;
    height: 65px;
    font-family: monospace;
    font-size: 11px;
    background-color: #ffffff;
    color: #333333;
    border: 2px inset var(--accent);
    padding: 5px;
    resize: none;
    overflow-y: auto;
    cursor: pointer;
}

.copy-box:focus {
    outline: none;
    border-color: var(--accent-hover);
}

.copy-hint {
    font-size: 10px;
    color: var(--accent);
    font-style: italic;
    text-align: center;
}