:root {
    --bg-color: #000000;
    --text-color: #ffffff;
    --text-bright: #55CAF0;
    --accent: #55CAF0;
    --border-w: 3px;
    --nav-height: 65px;
    --font-main: 'Courier New', Courier, monospace;
}

[data-theme="light"] {
    --bg-color: #f4f4f0;
    --text-color: #000000;
    --text-bright: #ff3333;
    --accent: #ff3333;
}

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

body { 
    background: var(--bg-color); 
    color: var(--text-color); 
    font-family: var(--font-main); 
    height: 100dvh; 
    width: 100vw;
    overflow: hidden; 
    display: flex; flex-direction: column;
}

.top-bar { 
    height: var(--nav-height); 
    display: flex; justify-content: space-between; align-items: center; 
    padding: 0 15px; 
    margin: 15px auto 0 auto;
    width: calc(100% - 30px);
    max-width: 1600px; 
    border: var(--border-w) solid var(--text-color); 
    background: var(--bg-color); 
    flex-shrink: 0; 
    z-index: 10;
    box-shadow: 6px 6px 0px var(--accent);
}

.brand { display: flex; align-items: center; gap: 10px; }
.nav-logo { width: 40px; height: 40px; border: var(--border-w) solid var(--text-color); object-fit: cover; }
.brand-name { font-weight: 900; letter-spacing: 2px; color: var(--text-color); font-size: 1.2rem; text-transform: uppercase; }

.nav-controls { display: flex; align-items: center; gap: 8px; }

.brutal-btn {
    background: var(--bg-color);
    border: var(--border-w) solid var(--text-color);
    color: var(--text-color);
    font-family: var(--font-main);
    font-weight: 900;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    box-shadow: 4px 4px 0px var(--accent);
    transition: all 0.1s ease-in-out;
}

.brutal-btn:hover { background: var(--text-color); color: var(--bg-color); }
.brutal-btn:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px var(--accent); }

.icon-btn { width: 40px; height: 40px; font-size: 1.5rem; }
.text-btn { padding: 0 15px; height: 40px; font-size: 0.9rem; }

@media (max-width: 480px) {
    .top-bar { padding: 0 8px; margin-top: 10px; width: calc(100% - 20px); }
    .nav-logo { width: 32px; height: 32px; border-width: 2px; }
    .brand-name { font-size: 1rem; letter-spacing: 1px; gap: 5px; }
    .icon-btn { width: 32px; height: 32px; font-size: 1.1rem; border-width: 2px; box-shadow: 3px 3px 0px var(--accent); }
    .nav-controls { gap: 5px; }
    :root { --border-w: 2px; } 
}

.social-link { text-decoration: none; }
.icon-frame { width: 20px; height: 20px; display: flex; align-items: center; justify-content: center; }
.icon-frame img, .x-logo-img { width: 100%; height: 100%; object-fit: contain; filter: invert(1); display: block; }
[data-theme="light"] .x-logo-img, [data-theme="light"] .icon-frame img { filter: invert(0); }
.brutal-btn:hover .x-logo-img { filter: invert(0); }
[data-theme="light"] .brutal-btn:hover .x-logo-img { filter: invert(1); }

.overlay { 
    position: fixed; top: 0; left: 0; width: 100%; height: 100%; 
    background: var(--bg-color); z-index: 100; 
    flex-direction: column; display: flex; justify-content: center; align-items: center; 
}
.menu-list li { 
    list-style: none; font-size: 2rem; font-weight: 900; margin: 20px 0; 
    cursor: pointer; color: var(--text-color); border: var(--border-w) solid transparent; padding: 10px 20px;
}
.menu-list li:hover { border: var(--border-w) solid var(--text-color); box-shadow: 6px 6px 0px var(--accent); }
.close-btn { position: absolute; top: 20px; right: 20px; background:none; border:none; color:var(--text-color); font-size:2.5rem; cursor:pointer;}

.container { 
    flex-grow: 1; position: relative; 
    padding: 15px; 
    width: 100%; 
    max-width: 1600px; 
    margin: 0 auto; 
    display: flex; flex-direction: column; 
    overflow: hidden; 
}

.full-height { height: 100%; display: flex; flex-direction: column; }
.hidden { display: none !important; }
.hidden-section { display: none; }
.active-section { display: flex; flex-direction: column; width: 100%; height: 100%; }

.scrollable-content {
    overflow-y: auto;
    height: 100%;
    padding-bottom: 20px;
}

.modal-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.8); z-index: 200; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(5px); }
.brutal-modal { background: var(--bg-color); border: var(--border-w) solid var(--text-color); padding: 30px; width: 90%; max-width: 400px; box-shadow: 10px 10px 0px var(--accent); position: relative; }
.modal-close { position: absolute; top: 10px; right: 10px; background: none; border: none; font-size: 1.5rem; color: var(--text-color); cursor: pointer; }
.modal-title { font-size: 1.5rem; font-weight: 900; margin-bottom: 20px; text-transform: uppercase; border-bottom: var(--border-w) solid var(--text-color); padding-bottom: 10px; }
.brutal-input { width: 100%; border: var(--border-w) solid var(--text-color); background: var(--bg-color); color: var(--text-color); padding: 12px; margin-bottom: 15px; font-family: var(--font-main); font-size: 1rem; font-weight: bold; outline: none; }
.brutal-input:focus { box-shadow: 4px 4px 0px var(--accent); }
.validator-text { font-size: 0.75rem; color: #ff3333; margin-top: -10px; margin-bottom: 15px; font-weight: bold; }
.validator-text.valid { color: var(--text-bright); }
.auth-submit { width: 100%; padding: 12px; font-size: 1rem; margin-bottom: 10px; }
.auth-submit:disabled { opacity: 0.5; cursor: not-allowed; box-shadow: none; transform: none; }
.auth-toggle { background: none; border: none; color: var(--text-color); font-family: var(--font-main); font-size: 0.8rem; cursor: pointer; text-decoration: underline; width: 100%; text-align: center; }
.auth-msg { margin-top: 10px; font-size: 0.8rem; font-weight: bold; text-align: center; }

.auth-separator { display: flex; align-items: center; margin: 15px 0; gap: 10px; }
.separator-line { flex: 1; height: 2px; background: var(--text-color); opacity: 0.3; }
.separator-text { font-size: 0.8rem; font-weight: 900; color: var(--text-color); }
.wallet-btn { width: 100%; padding: 12px; font-size: 0.9rem; margin-bottom: 10px; background: #512da8; border-color: #9945FF; }
.wallet-btn:hover { background: #9945FF; color: #ffffff; }

.brutal-code { 
    background: #111111; 
    border: var(--border-w) solid var(--text-color); 
    padding: 20px; 
    font-family: monospace; 
    font-weight: bold; 
    margin: 20px 0; 
    box-shadow: 6px 6px 0px var(--accent); 
    font-size: 0.9rem;
    line-height: 1.5;
    color: #ffffff;
    overflow-x: auto; 
}

[data-theme="light"] .brutal-code { background: #ffffff; }

.code-keyword { color: #ff00ff; font-weight: 900; }
.code-property { color: #00ccff; }
.code-string { color: var(--accent); }

.phase-banner-img {
    width: 100%;
    height: auto; 
    max-height: 500px; 
    object-fit: cover;
    border: var(--border-w) solid var(--text-color);
    margin-bottom: 20px;
    box-shadow: 4px 4px 0px var(--text-color);
    display: block;
}

@media (max-width: 768px) {
    .phase-banner-img {
        height: 120px; 
        max-height: none;
    }
}

@keyframes fadeUp { from {opacity:0; transform:translateY(10px);} to {opacity:1; transform:translateY(0);} }

::-webkit-scrollbar {
    width: 8px;
    height: 8px;
    background: var(--bg-color);
    border-left: var(--border-w) solid var(--text-color);
}
::-webkit-scrollbar-thumb {
    background: var(--text-color);
    border: 1px solid var(--bg-color);
}
::-webkit-scrollbar-thumb:hover {
    background: var(--accent);
}
* {
    scrollbar-width: thin;
    scrollbar-color: var(--text-color) var(--bg-color);
}