* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;

}

body {
min-height: 100vh;
text-align: center;
padding: 20px;
background: linear-gradient(135deg, #667eea 0%, #764ba2 25%, #688dd6 50%, #8e3707 75%, #4facfe 100%);
background-size: 400% 400%;
animation: gradientShift 15s ease infinite;
position: relative;
overflow-x: hidden;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}
@keyframes float {
    0% {
        transform: translateY(100vh) rotate(0deg);
        opacity: 0;
    }
    10%, 90% {
        opacity: 0.1;
    }
    100% {
        transform: translateY(-100vh) rotate(360deg);
        opacity: 0;
    }
}
.wmark-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1;
}
.wmark {
    position: absolute;
    font-size: 3rem;
    opacity: 0.1;
    user-select: none;
    animation: float 20s infinite linear;
}
.modal.content {
    position: relative;
    z-index: 2;
    padding: 50px;
    text-align: center;
    color: white;
}

h1 {
    font-size: 28px;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

h2 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #000;
}

p {
    font-size: 1.2rem;
    max-width: 600px;
    margin: 0 auto;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

#phrase-display {
    display: flex;
    font-size: 24px;
    font-weight: bold;
    min-height: 0px;
    margin-bottom: 0px;
    color: #fff;
    text-shadow: 2px 2px 4px #0000004d;
}

.container {
    display: flex;
    justify-content: center;
    gap: 15px;
    font-size: 20px;
    margin-bottom: 20px;

}
#moves, #timer, #runInput, #match {
    padding: 10px 15px;
    border-radius: 10px;
    background: #eff304;
    box-shadow: 0 0 8px #0000001a;
}

#rebootBtn,
.brain-btn, 
.bitsbytes-btn {
    padding: 10px 24px;
    font-size: 17px;
    background: #d06254;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    margin: 10px;
    box-shadow: 0 0 8 #0000001a;
    transition:  transform 0.2s ease, background 0.2s ease;
}

#rebootBtn:hover,
.brain-btn:hover, 
.bitsbytes-btn:hover,
.mode.btn:hover {
    transform: scale(1.05);
    background: #b8cd6d;
}



#key {
    background: #f9f8f6e6;
    border-radius: 15px;
    padding: 10px 10px;
    margin: 8px auto;
    max-width: 650px;
    box-shadow: 0 4px 12px #0000004d;
    
    
}
#key h3 {
    font-size: 16px;
    margin-bottom: 14px;
    color: #0d0d0d;
}
#key-combos {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}

#key-combo {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    justify-content: center;
}
.key-combo {
    display: flex;
    align-items: center;
    gap: 1px;
    padding: 1px;
    border-radius: 10px;
    font-size: 15px;
}

.key-glyph {
    font-size: 15px;
}

.key-id {
    font-weight: bold;
    color: #0d0d0d;
}


#board {
    display: grid;
    grid-template-columns: repeat(8, 60px);
    gap: 15px;
    justify-content: center;
    margin: 0 auto 0;
    max-width: 450px;
}

.hidden-draw {
    width: 50px;
    height: 50px;
    background: #fbfbf9;
    border-radius: 50px;
    border: 2px solid #1f201f;
    box-shadow: 0 0 8px #00000014;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 40px;
    transition: transform 0.2s ease, background 0.2s ease;

}

.hidden-draw:not(.flicked) {
    color: transparent;
}

.hidden-draw.flicked {
    transform:  scale(1.07);
    background: #ede748;
    color: #ede748;
}

.hidden-draw.mate {
    background: #8bd98b !important;
    border-color: #8bd98b !important;
}

.hidden-draw:hover {
    transform: scale(1.04);
}

#vibe-switchboard {
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.07);
    display: flex;
    justify-content: space-around;
    align-items: center;
    z-index: 100;
}

#vibe-switchboard.hidden {
    display: none;
}

#vibe-switchboard .modal-content {
    background:white;
    padding: 10px 24px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
} 

