#wp-wordle-wrapper {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    background-color: #121213;
    color: #ffffff;
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 600px; 
    max-width: 100%;
    margin: 20px auto;
    padding: 20px;
    border-radius: 10px;
    position: relative;
    user-select: none;
    /* Variablen */
    --correct: #538d4e;
    --present: #b59f3b;
    --absent: #3a3a3c;
    --border-empty: #3a3a3c;
    --border-filled: #565758;
}

#wp-wordle-header { width: 100%; text-align: center; border-bottom: 1px solid var(--border-empty); padding-bottom: 10px; margin-bottom: 10px; }
#wp-wordle-header h2 { color: white !important; font-size: 1.8rem; margin: 0; letter-spacing: 2px; text-transform: uppercase; }
#wp-wordle-subtitle { font-size: 0.9rem; color: #818384; margin-top: 5px; font-weight: bold; text-transform: uppercase; letter-spacing: 1px; }

/* Start Screen */
#wordle-start-screen {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: #121213; z-index: 100;
    display: flex; justify-content: center; align-items: center;
    flex-direction: column; border-radius: 10px;
}
.wordle-start-btn {
    background-color: var(--correct); color: white; border: none;
    padding: 15px 30px; font-size: 1.2rem; font-weight: bold;
    border-radius: 5px; cursor: pointer; transition: transform 0.1s;
}
.wordle-start-btn:hover { transform: scale(1.05); }

#wordle-game-container {
    display: flex; justify-content: center; align-items: center;
    flex-grow: 1; position: relative; margin-bottom: 20px;
    width: 100%; min-height: 300px;
}

#wordle-board { display: grid; grid-gap: 5px; padding: 10px; }

.w-tile {
    width: 100%; height: 100%; border: 2px solid var(--border-empty);
    display: inline-flex; justify-content: center; align-items: center;
    font-size: 2rem; font-weight: bold; text-transform: uppercase;
    box-sizing: border-box; position: relative; line-height: 1;
}
.w-tile[data-state='filled'] { border-color: var(--border-filled); animation: w-pop 0.1s; }
.w-tile[data-state='correct'] { background-color: var(--correct); border-color: var(--correct); }
.w-tile[data-state='present'] { background-color: var(--present); border-color: var(--present); }
.w-tile[data-state='absent']  { background-color: var(--absent); border-color: var(--absent); }
.w-tile.flip { animation: w-flip 0.5s ease-in; }

.w-tile.multi::after {
    content: ''; position: absolute; bottom: 4px; width: 50%; height: 4px;
    background-color: rgba(255,255,255,0.8); border-radius: 2px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.5);
}

#wordle-keyboard { width: 100%; max-width: 500px; }
.w-key-row { display: flex; justify-content: center; margin-bottom: 8px; gap: 6px; }

.w-key {
    font-family: inherit; font-weight: bold; border: 0; padding: 0;
    height: 50px; border-radius: 4px; cursor: pointer;
    background-color: #818384; color: white; flex: 1;
    display: flex; justify-content: center; align-items: center;
    text-transform: uppercase; font-size: 1.1rem; touch-action: manipulation;
}
.w-key.big { flex: 1.5; font-size: 0.8rem; }
.w-key[data-state='correct'] { background-color: var(--correct); }
.w-key[data-state='present'] { background-color: var(--present); }
.w-key[data-state='absent']  { background-color: var(--absent); }

#wordle-modal {
    display: none; position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.8); justify-content: center; align-items: center;
    z-index: 200; border-radius: 10px;
}
.wordle-modal-content {
    background: #121213; padding: 30px; border-radius: 8px;
    border: 1px solid var(--border-filled); text-align: center; max-width: 80%;
}

@keyframes w-pop { 0% { transform: scale(1); } 50% { transform: scale(1.1); } 100% { transform: scale(1); } }
@keyframes w-flip { 
    0% { transform: rotateX(0); border-color: var(--border-filled); } 
    45% { transform: rotateX(90deg); border-color: var(--border-filled); } 
    55% { transform: rotateX(90deg); border-color: var(--border-filled); } 
    100% { transform: rotateX(0); } 
}
@keyframes w-shake { 
    10%, 90% { transform: translate3d(-1px, 0, 0); } 
    20%, 80% { transform: translate3d(2px, 0, 0); } 
    30%, 50%, 70% { transform: translate3d(-4px, 0, 0); } 
    40%, 60% { transform: translate3d(4px, 0, 0); } 
}
.w-shake { animation: w-shake 0.82s cubic-bezier(.36,.07,.19,.97) both; }