/* bro i spent so long on this because my DAMN G KEY decided to not work every 5 seconds bro it sometimes works and then it doesnt wth */
/* and if yk my previous scripts you just know i gotta put this in: 

The Spaceflight Authors, 2025 (chromium ahh) */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: monospace;
    background: url('https://512pixels.net/downloads/macos-wallpapers-thumbs/10-6--thumb.png');
    background-size: cover;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    position: relative;
    overflow: hidden;
}

.window {
    width: 90%;
    max-width: 1000px;
    background: rgba(0,0,0,1);
    border-radius: 6px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.8);
    /*backdrop-filter: blur(10px);*/
    border: 1px solid rgba(255,255,255,0.1);
}

.titlebar {
    background: linear-gradient(to bottom, #d4d4d4 0%, #bcbcbc 50%, #a8a8a8 51%, #949494 100%);
    border-radius: 6px 6px 0 0;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid #6e6e6e;
    box-shadow: inset 0 1px 0 rgba(255,255,255,0.6);
}

.btns {
    display: flex;
    gap: 8px;
}

.btn {
    width: 13px;
    height: 13px;
    border-radius: 50%;
    border: 0.5px solid rgba(0,0,0,0.3);
    box-shadow: inset 0 1px 1px rgba(255,255,255,0.4), 0 1px 2px rgba(0,0,0,0.2);
    position: relative;
}

.btn::after {
    content: '';
    position:absolute;
    top:1px;
    left:2px;
    right:2px;
    height: 40%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.6), transparent);
    border-radius: 50% 50% 0 0;
}

.btn.close {
    background: radial-gradient(circle at 35% 30%, #fc6a61, #fc5753 45%, #e4453e 50%, #d73e37 100%);
}

.btn.min {
    background: radial-gradient(circle at 35% 30%, #fdcf52, #fdbc40 45%, #f5ab31 50%, #e89c29 100%);
}

.btn.max {
    background: radial-gradient(circle at 35% 30%, #5bcf5e, #53c453 45%, #3fb83f 50%, #29a129 100%);
}

.title {
    flex: 1;
    text-align: center;
    font-size: 13px;
    color: #3c3c3c;
    font-weight: 600;
    font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
    text-shadow: 0 1px 0 rgba(255,255,255,0.8);
}

.content {
    padding: 20px;
    color: #00ff00;
    font-size: 13px;
    line-height: 1.5;
    height: 600px;
    overflow-y: auto;
    font-weight: 400;
}

.prompt {
    color: #00ff00;
}

.prompt::before {
    content: '$ ';
    color: #ffffff;
}

.cmd {
    color: #ffffff;
}

.output {
    color: #00ff00;
    margin: 5px 0;
}

.sec-head {
    color: #00ffff;
    font-weight: 700;
    margin: 15px 0 10px 0;
    text-transform: uppercase;
}

.metric-ln {
    display: grid;
    grid-template-columns: 220px auto;
    margin: 3px 0;
}

.metric-lb {
    color: #00ffff;
}

.metric-val {
    color: #ffffff;
    font-weight: 700;
}

.metric-val.warning {
    color: #ffff00;
}

.metric-val.critical {
    color: #ff0000;
    animation: blink 1s infinite;
}

@keyframes blink {
    0%,50%,100% {opacity: 1;}
    25%,75% {opacity: 0.4;}
}

.progbar {
    display: inline-block;
    width: 200px;
}

.progfill {
    color: #00ff00;
}

.progempty {
    color: #003300;
}

.btn-prompt {
    margin: 20px 0;
    padding: 10px;
    background: rgba(0,255,0,0.1);
    border: 1px solid #00ff00;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s;
    user-select: none;
}

.btn-prompt:hover {
    background: rgba(0,255,0,0.2);
    box-shadow: 0 0 20px rgba(0,255,0,0.3);
}

.btn-prompt:active {
    background: rgba(0,255,0,0.3);
}

.btn-prompt.locked {
    opacity: 0.4;
    cursor: not-allowed;
    border-color: #666666; /* wow spoopy number again! */
    background: rgba(100,100,100,0.1);
}

.btn-prompt.locked:hover {
    background: rgba(100,100,100,0.1);
    box-shadow: none;
}

.btn-prompt.locked .btn-txt {
    color: #666666; /* wow its spoopy AGAIN!!!! */
}

.btn-txt {
    color: #00ff00;
    font-weight: 700;
}

.upg-sec {
    margin: 15px 0;
}

.upg-ln {
    margin: 5px 0;
    padding: 8px;
    background: rgba(0,255,255,0.05);
    border-left: 2px solid #00ffff;
    cursor: pointer;
    transition: all 0.2s;
    display: grid;
    grid-template-columns: 1fr 100px 80px;
    align-items: center;
    gap: 10px;
    user-select: none;
}

.upg-ln:hover {
    background: rgba(0,255,255,0.1);
    border-left-color: #00ff00;
}

.upg-ln.locked {
    opacity: 0.4;
    cursor: not-allowed;
}

.upg-ln.locked:hover {
    background: rgba(0,255,255,0.05);
    border-left-color: #00ffff;
}

.upg-name {
    color: #00ffff;
}

.upg-lvl {
    color: #00ff00;
    text-align: right;
}

.upg-cost {
    color: #ffff00;
    text-align: right;
}

.log-sec {
    margin: 15px 0;
    max-height: 150px;
    overflow-y: auto;
    background: rgba(0,0,0,0.3);
    padding: 10px;
    border: 1px solid #003300;
}

.log-entry {
    margin: 2px 0;
    font-size: 11px;
    animation: slideIn 0.3s;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-5px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.log-time {
    color: #666666; /* wow so spoopy */
}

.log-msg {
    color: #00ff00;
}

.cursor {
    display: inline-block;
    width: 8px;
    height: 14px;
    background: #00ff00;
    animation: cursorBlink 1s infinite;
    margin-left: 2px;
}

@keyframes cursorBlink {
    0%, 50% {opacity: 1;}
    51%, 100% {opacity: 0;}
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.3);
}

::-webkit-scrollbar-thumb {
    background: rgba(0,255,0,0.3);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(0,255,0,0.5);
}

.gen-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 10px;
    margin: 10px 0;
}

.gen-box {
    background: rgba(0,255,255,0.05);
    border: 1px solid #00ffff;
    padding: 10px;
    text-align: center;
}

.gen-icon {
    font-size: 20px;
    margin-bottom: 5px;
}

.gen-name {
    color: #00ffff;
    font-size: 11px;
    margin-bottom: 3px;
}

.float-txt {
    position: fixed;
    color: #00ff00;
    font-weight: 700;
    font-size: 16px;
    pointer-events: none;
    animation: floatUp 1s ease-out forwards;
    text-shadow: 0 0 10px #00ff00;
    z-index: 999;
}

@keyframes floatUp {
    0% {
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        opacity: 0;
        transform: translateY(-60px);
    }
}