.wrd-wrapper {
    max-width: 440px;
    margin: 20px auto;
    padding: 20px;
    background: #111827;
    border-radius: 16px;
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
    user-select: none;
    -webkit-user-select: none;
}

.wrd-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    border-bottom: 1px solid #374151;
    padding-bottom: 10px;
}

.wrd-header h2 {
    margin: 0;
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 2px;
}

.wrd-btn {
    background: #2563eb;
    color: #ffffff;
    border: none;
    padding: 8px 14px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 13px;
    cursor: pointer;
    transition: background 0.2s ease;
}

.wrd-btn:hover {
    background: #1d4ed8;
}

.wrd-grid {
    display: grid;
    grid-template-rows: repeat(6, 1fr);
    gap: 6px;
    margin-bottom: 20px;
    aspect-ratio: 5 / 6;
}

.wrd-row {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
}

.wrd-cell {
    background: #1f2937;
    border: 2px solid #374151;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: 800;
    color: #ffffff;
    text-transform: uppercase;
    transition: all 0.3s ease;
}

.wrd-cell.filled {
    border-color: #6b7280;
    transform: scale(1.03);
}

.wrd-cell.correct {
    background: #16a34a !important;
    border-color: #16a34a !important;
}

.wrd-cell.present {
    background: #ca8a04 !important;
    border-color: #ca8a04 !important;
}

.wrd-cell.absent {
    background: #374151 !important;
    border-color: #374151 !important;
}

.wrd-message {
    text-align: center;
    font-size: 15px;
    font-weight: 700;
    color: #38bdf8;
    min-height: 24px;
    margin-bottom: 15px;
}

.wrd-keyboard {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.wrd-keyboard-row {
    display: flex;
    justify-content: center;
    gap: 4px;
}

.wrd-key {
    background: #374151;
    border: none;
    color: #ffffff;
    font-weight: 700;
    font-size: 13px;
    padding: 12px 0;
    flex: 1;
    border-radius: 6px;
    cursor: pointer;
    transition: background 0.15s ease;
}

.wrd-key:hover {
    background: #4b5563;
}

.wrd-wide-key {
    flex: 1.5;
    font-size: 11px;
}

.wrd-key.correct {
    background: #16a34a !important;
}

.wrd-key.present {
    background: #ca8a04 !important;
}

.wrd-key.absent {
    background: #1f2937 !important;
    color: #6b7280 !important;
}
